UNPKG

handsontable

Version:

Handsontable is a JavaScript Data Grid available for React, Angular and Vue.

32 lines • 1.14 MB
/*! * Copyright (c) HANDSONCODE sp. z o. o. * * HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in * Gdynia, Poland, at Aleja Zwyciestwa 96-98, registered by the District Court in Gdansk under number * 538651, EU tax ID number: PL5862294002, share capital: PLN 62,800.00. * * This software is protected by applicable copyright laws, including international treaties, and dual- * licensed - depending on whether your use for commercial purposes, meaning intended for or * resulting in commercial advantage or monetary compensation, or not. * * If your use is strictly personal or solely for evaluation purposes, meaning for the purposes of testing * the suitability, performance, and usefulness of this software outside the production environment, * you agree to be bound by the terms included in the "handsontable-non-commercial-license.pdf" file. * * Your use of this software for commercial purposes is subject to the terms included in an applicable * license agreement. * * In any case, you must not make any such use of this software as to develop software which may be * considered competitive with this software. * * UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS" * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO * LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM * USE OR INABILITY TO USE THIS SOFTWARE. * * Version: 16.2.0 * Release date: 25/11/2025 (built at 20/11/2025 13:27:06) */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("dompurify"),require("@handsontable/pikaday"),require("moment"),require("numbro")):"function"==typeof define&&define.amd?define("Handsontable",["dompurify","@handsontable/pikaday","moment","numbro"],t):"object"==typeof exports?exports.Handsontable=t(require("dompurify"),require("@handsontable/pikaday"),require("moment"),require("numbro")):e.Handsontable=t(e.DOMPurify,e.Pikaday,e.moment,e.numbro)}("undefined"!=typeof self?self:this,(e,t,o,i)=>(()=>{var s={58:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(29342);t.RENDERER_TYPE=i.RENDERER_TYPE,t.numericRenderer=i.numericRenderer,t.getRenderedValue=i.getRenderedValue},67:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(72586);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.MultiColumnSorting=i.MultiColumnSorting},96:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];let o=e;D[o]||(o=x);return(0,s.arrayEach)(D[o],e=>{let o;o=e===n.SEPARATOR?{name:n.SEPARATOR}:(0,i.clone)((0,r.getConditionDescriptor)(e)),t.push(o)}),t},o(66182);var i=o(78437),s=o(94857),n=o(50151),r=o(76742),a=o(12557);t.CONDITION_NONE=a.CONDITION_NAME;var l=o(76978);t.CONDITION_EMPTY=l.CONDITION_NAME;var h=o(86485);t.CONDITION_NOT_EMPTY=h.CONDITION_NAME;var c=o(26447);t.CONDITION_EQUAL=c.CONDITION_NAME;var u=o(52392);t.CONDITION_NOT_EQUAL=u.CONDITION_NAME;var d=o(52958);t.CONDITION_GREATER_THAN=d.CONDITION_NAME;var g=o(39267);t.CONDITION_GREATER_THAN_OR_EQUAL=g.CONDITION_NAME;var f=o(2721);t.CONDITION_LESS_THAN=f.CONDITION_NAME;var p=o(27810);t.CONDITION_LESS_THAN_OR_EQUAL=p.CONDITION_NAME;var m=o(54687);t.CONDITION_BETWEEN=m.CONDITION_NAME;var w=o(14760);t.CONDITION_NOT_BETWEEN=w.CONDITION_NAME;var C=o(9961);t.CONDITION_BEGINS_WITH=C.CONDITION_NAME;var v=o(89161);t.CONDITION_ENDS_WITH=v.CONDITION_NAME;var y=o(66058);t.CONDITION_CONTAINS=y.CONDITION_NAME;var S=o(9091);t.CONDITION_NOT_CONTAINS=S.CONDITION_NAME;var E=o(6077);t.CONDITION_DATE_BEFORE=E.CONDITION_NAME;var R=o(43382);t.CONDITION_DATE_AFTER=R.CONDITION_NAME;var b=o(33429);t.CONDITION_TOMORROW=b.CONDITION_NAME;var _=o(46301);t.CONDITION_TODAY=_.CONDITION_NAME;var T=o(65688);t.CONDITION_YESTERDAY=T.CONDITION_NAME;var M=o(46485);t.CONDITION_BY_VALUE=M.CONDITION_NAME;var I=o(58583);t.CONDITION_TRUE=I.CONDITION_NAME;var O=o(33536);t.CONDITION_FALSE=O.CONDITION_NAME;var A=o(59311);t.OPERATION_AND=A.OPERATION_ID;var N=o(14119);t.OPERATION_OR=N.OPERATION_ID;var P=o(65192);t.OPERATION_OR_THEN_VARIABLE=P.OPERATION_ID;const H=t.TYPE_NUMERIC="numeric",x=t.TYPE_TEXT="text",k=t.TYPE_DATE="date",D=t.TYPES={[H]:[a.CONDITION_NAME,n.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,n.SEPARATOR,c.CONDITION_NAME,u.CONDITION_NAME,n.SEPARATOR,d.CONDITION_NAME,g.CONDITION_NAME,f.CONDITION_NAME,p.CONDITION_NAME,m.CONDITION_NAME,w.CONDITION_NAME],[x]:[a.CONDITION_NAME,n.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,n.SEPARATOR,c.CONDITION_NAME,u.CONDITION_NAME,n.SEPARATOR,C.CONDITION_NAME,v.CONDITION_NAME,n.SEPARATOR,y.CONDITION_NAME,S.CONDITION_NAME],[k]:[a.CONDITION_NAME,n.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,n.SEPARATOR,c.CONDITION_NAME,u.CONDITION_NAME,n.SEPARATOR,E.CONDITION_NAME,R.CONDITION_NAME,m.CONDITION_NAME,n.SEPARATOR,b.CONDITION_NAME,_.CONDITION_NAME,T.CONDITION_NAME]}},224:(e,t,o)=>{"use strict";var i=o(19596);e.exports=function(e,t){var o=i[e],s=o&&o.prototype;return s&&s[t]}},412:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=i(o(86798)),r=i(o(75972)),a=o(95220),l=o(73050),h=o(76651),c=o(78437),u=o(57455),d=o(12108);function g(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function f(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const p=t.EDITOR_TYPE="date",m="dateEditor";var w=new WeakSet;class C extends l.TextEditor{constructor(){super(...arguments),g(this,w),(0,s.default)(this,"parentDestroyed",!1),(0,s.default)(this,"$datePicker",null)}static get EDITOR_TYPE(){return p}init(){if("function"!=typeof n.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof r.default)throw new Error("You need to include Pikaday to your project.");super.init(),this.hot.addHook("afterDestroy",()=>{this.parentDestroyed=!0,this.destroyElements()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}createElements(){super.createElements(),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,h.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootPortalElement.appendChild(this.datePicker),this.eventManager.addEventListener(this.datePicker,"mousedown",e=>{(0,h.hasClass)(e.target,"pika-day")&&this.hideDatepicker(),e.stopPropagation()})}destroyElements(){const e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n)}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.hot.getShortcutManager().getContext("editor");this.showDatepicker(e),super.open(),t.addShortcuts([{keys:[["ArrowLeft"]],callback:()=>{this.$datePicker.adjustDate("subtract",1)}},{keys:[["ArrowRight"]],callback:()=>{this.$datePicker.adjustDate("add",1)}},{keys:[["ArrowUp"]],callback:()=>{this.$datePicker.adjustDate("subtract",7)}},{keys:[["ArrowDown"]],callback:()=>{this.$datePicker.adjustDate("add",7)}}],{group:m})}close(){var e;null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.hot._registerTimeout(()=>{const e=this.hot._getEditorManager();e.closeEditor(),this.hot.view.render(),e.prepareEditor()});this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(m),super.close()}finishEditing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.finishEditing(e,t)}showDatepicker(e){const t=f(w,this,v).call(this),o=this.hot.view.isMouseDown(),i=!!e&&(0,u.isFunctionKey)(e.keyCode);let s;this.datePicker.style.display="block",this.$datePicker=new r.default(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(n.default),this.$datePicker._onInputFocus=function(){},this.originalValue?(s=this.originalValue,(0,n.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,n.default)(s,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),i||o||this.setValue("")):this.cellProperties.defaultDate?(s=this.cellProperties.defaultDate,(0,n.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,n.default)(s,t),!0),i||o||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){var e;const t=this.TEXTAREA,o={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,c.deepExtend)(o,this.cellProperties.datePickerConfig);const i=o.onSelect,s=o.onClose;return o.field=t,o.trigger=t,o.container=this.datePicker,o.bound=!1,o.keyboardInput=!1,o.format=null!==(e=o.format)&&void 0!==e?e:f(w,this,v).call(this),o.reposition=o.reposition||!1,o.isRTL=!1,o.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=(0,n.default)(t).format(f(w,this,v).call(this))),this.setValue(t),i&&i(),(0,d.isMobileBrowser)()&&this.hideDatepicker()},o.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),s&&s()},o}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==a.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:o,columnIndexMapper:i}=this.hot,{wtOverlays:s}=this.hot.view._wt,{wtTable:n}=null!==(t=s.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,r=o.getVisualFromRenderableIndex(n.getFirstPartiallyVisibleRow()),l=o.getVisualFromRenderableIndex(n.getLastPartiallyVisibleRow()),c=i.getVisualFromRenderableIndex(n.getFirstPartiallyVisibleColumn()),u=i.getVisualFromRenderableIndex(n.getLastPartiallyVisibleColumn());if(this.row>=r&&this.row<=l&&this.col>=c&&this.col<=u){const e=this.TD.getBoundingClientRect();this.datePickerStyle.top=`${this.hot.rootWindow.pageYOffset+e.top+(0,h.outerHeight)(this.TD)}px`;let t=this.hot.rootWindow.pageXOffset;this.hot.isRtl()?t+=e.right-(0,h.outerWidth)(this.datePicker):t+=e.left,this.datePickerStyle.left=`${t}px`}else this.hideDatepicker()}}function v(){var e;return null!==(e=this.cellProperties.dateFormat)&&void 0!==e?e:"DD/MM/YYYY"}t.DateEditor=C},428:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(26599),s=o(78437);t.default=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dialog:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,emptyDataState:!1,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,initialState:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,o,s;for(t=0,o=this.countRows();t<o;t++)if(s=this.getDataAtCell(t,e),!1===(0,i.isEmpty)(s))return!1;return!0},isEmptyRow(e){let t,o,n,r;for(t=0,o=this.countCols();t<o;t++)if(n=this.getDataAtCell(e,t),!1===(0,i.isEmpty)(n))return"object"==typeof n&&(r=this.getCellMeta(e,t),(0,s.isObjectEqual)(this.getSchema()[r.prop],n));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",loading:!1,manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRowHeights:void 0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,pagination:void 0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,textEllipsis:!1,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,valueGetter:void 0,valueSetter:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0})},497:(e,t,o)=>{"use strict";var i=o(8467),s=o(14326),n=o(17621),r=o(83916),a=Object;e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return s(t)&&n(t.prototype,a(e))}},518:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(42479),r=o(97819),a=o(94857),l=o(78437),h=o(13726),c=o(97718),u=o(61276),d=o(32971),g=o(76651),f=o(50151);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 m(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const w=t.PLUGIN_KEY="contextMenu",C=t.PLUGIN_PRIORITY=70,v=w;r.Hooks.getSingleton().register("afterContextMenuDefaultOptions"),r.Hooks.getSingleton().register("beforeContextMenuShow"),r.Hooks.getSingleton().register("afterContextMenuShow"),r.Hooks.getSingleton().register("afterContextMenuHide"),r.Hooks.getSingleton().register("afterContextMenuExecute");var y=new WeakSet;class S extends n.BasePlugin{constructor(){super(...arguments),p(this,y),(0,s.default)(this,"commandExecutor",new h.CommandExecutor(this.hot)),(0,s.default)(this,"itemsFactory",null),(0,s.default)(this,"menu",null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return C}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[f.ROW_ABOVE,f.ROW_BELOW,f.SEPARATOR,f.COLUMN_LEFT,f.COLUMN_RIGHT,f.SEPARATOR,f.REMOVE_ROW,f.REMOVE_COLUMN,f.SEPARATOR,f.UNDO,f.REDO,f.SEPARATOR,f.READ_ONLY,f.SEPARATOR,f.ALIGNMENT]}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[w];"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.menu=new u.Menu(this.hot,{className:"htContextMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootPortalElement}),this.menu.addLocalHook("beforeOpen",()=>m(y,this,R).call(this)),this.menu.addLocalHook("afterOpen",()=>m(y,this,b).call(this)),this.menu.addLocalHook("afterClose",()=>m(y,this,_).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.executeCommand.call(e,...o)}),this.addHook("afterOnCellContextMenu",e=>m(y,this,E).call(this,e)),this.addHook("beforeDialogShow",()=>this.close()),this.registerShortcuts(),super.enablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control/Meta","Shift","Backslash"],["Shift","F10"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive();this.hot.scrollToFocusedCell();const t=this.hot.getCell(e.row,e.col,!0).getBoundingClientRect(),o=(0,d.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument);this.open({left:t.left+o.left,top:t.top+o.top-1+t.height},{left:t.width,above:-t.height}),this.menu.getNavigator().toFirstItem()},runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&!this.menu.isOpened()},group:v})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(v)}open(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};null!==(t=this.menu)&&void 0!==t&&t.isOpened()||(this.prepareMenuItems(),this.menu.open(),(0,l.objectEach)(o,(e,t)=>{this.menu.setOffset(t,e)}),this.menu.setPosition(e))}close(){var e;null===(e=this.menu)||void 0===e||e.close(),this.itemsFactory=null}executeCommand(e){null===this.itemsFactory&&this.prepareMenuItems();for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];this.commandExecutor.execute(e,...o)}prepareMenuItems(){this.itemsFactory=new c.ItemsFactory(this.hot,S.DEFAULT_ITEMS);const e=this.hot.getSettings()[w],t={items:this.itemsFactory.getItems(e)};this.hot.runHooks("afterContextMenuDefaultOptions",t),this.itemsFactory.setPredefinedItems(t.items);const o=this.itemsFactory.getItems(e);this.hot.runHooks("beforeContextMenuSetItems",o),this.menu.setMenuItems(o),(0,a.arrayEach)(o,e=>this.commandExecutor.registerCommand(e.key,e))}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function E(e){const t=this.hot.getSettings(),o=t.rowHeaders,i=t.colHeaders;const s=e.target;if(this.close(),(0,g.hasClass)(s,"handsontableInput"))return;if(e.preventDefault(),e.stopPropagation(),!o&&!i&&!(function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(s)||(0,g.hasClass)(s,"current")&&(0,g.hasClass)(s,"wtBorder")))return;const n=(0,d.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument);this.open({top:e.clientY+n.top,left:e.clientX+n.left})}function R(){this.hot.runHooks("beforeContextMenuShow",this)}function b(){this.hot.runHooks("afterContextMenuShow",this)}function _(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}t.ContextMenu=S,S.SEPARATOR={name:f.SEPARATOR}},624:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(67383);t.CELL_TYPE=i.CELL_TYPE,t.PasswordCellType=i.PasswordCellType},654:(e,t,o)=>{"use strict";o.r(t)},688:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(2289);t.registerRootComparator=i.registerRootComparator,t.getRootComparator=i.getRootComparator,t.getCompareFunctionFactory=i.getCompareFunctionFactory;var s=o(20152);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},730:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(44803);t.CELL_TYPE=i.CELL_TYPE,t.TextCellType=i.TextCellType},771:(e,t,o)=>{"use strict";var i=o(19596).navigator,s=i&&i.userAgent;e.exports=s?String(s):""},794:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(81396),o(81124),o(88633),o(14618);var s=o(34149),n=o(78437),r=i(o(86248)),a=o(76651),l=o(3226),h=o(28394),c=o(41323);function u(e,t,o){d(e,t),t.set(e,o)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t){return e.get(p(e,t))}function f(e,t,o){return e.set(p(e,t),o),o}function p(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const m=`\n<div data-ref="dialogElement" class="${c.DIALOG_CLASS_NAME}">\n <div data-ref="dialogWrapperElement" class="${c.DIALOG_CLASS_NAME}__content-wrapper">\n</div>\n`;var w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakSet;class b{constructor(e){let{rootElement:t,isRtl:o}=e;var i,s;d(i=this,s=R),s.add(i),u(this,w,void 0),u(this,C,void 0),u(this,v,!1),u(this,y,!1),u(this,S,h.TEMPLATES.get("base")),u(this,E,[]),f(w,this,t),f(v,this,o),this.install()}useTemplate(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!h.TEMPLATES.has(e)||"base"===e){const t=Array.from(h.TEMPLATES.keys()).filter(e=>"base"!==e).join(", ");throw new Error(s.toSingleLine`Invalid template: ${e}.\x20 Valid templates are: ${t}.`)}f(S,this,h.TEMPLATES.get(e)(o)),f(E,this,(null!==(t=o.buttons)&&void 0!==t?t:[]).map(e=>e.callback))}useDefaultTemplate(){f(S,this,h.TEMPLATES.get("base")()),f(E,this,[])}install(){var e;if(null!==(e=g(C,this))&&void 0!==e&&e.dialogElement)return;const t=s.html`${m}`;f(C,this,t.refs);const{dialogElement:o}=g(C,this);(0,a.setAttribute)(o,[(0,l.A11Y_MODAL)(),["dir",g(v,this)?"rtl":"ltr"]]),o.addEventListener("transitionstart",()=>p(R,this,T).call(this)),o.addEventListener("transitionend",()=>p(R,this,_).call(this)),g(w,this).after(t.fragment)}getContainer(){return g(C,this).dialogElement}getFocusableElements(){return g(S,this).focusableElements()}updateDialog(e){let{isVisible:t,content:o,customClassName:i,background:s,contentBackground:n,animation:r,a11y:h}=e;const u=g(S,this).compile(),{dialogElement:d,dialogWrapperElement:f}=g(C,this);f.innerHTML="",f.appendChild(u.fragment),Object.assign(g(C,this),u.refs);const{contentElement:p,buttonsContainer:m}=g(C,this);"base"!==g(S,this).TEMPLATE_NAME&&Object.assign(h,g(S,this).dialogA11YOptions());const w=i?` ${i}`:"",v=s?` ${c.DIALOG_CLASS_NAME}--background-${s}`:"",y=r?` ${c.DIALOG_CLASS_NAME}--animation`:"",R=t?` ${c.DIALOG_CLASS_NAME}--show`:"";d.className=[c.DIALOG_CLASS_NAME,`${c.DIALOG_CLASS_NAME}--${g(S,this).TEMPLATE_NAME}`,"handsontable",w,v,y,R].join(" "),(0,a.setAttribute)(d,["base"===g(S,this).TEMPLATE_NAME?(0,l.A11Y_TABINDEX)(-1):void 0]),(0,a.setAttribute)(d,["alertdialog"===h.role?(0,l.A11Y_ALERTDIALOG)():(0,l.A11Y_DIALOG)()]),h.ariaLabel&&!h.ariaLabelledby?(0,a.setAttribute)(d,[h.ariaLabel?(0,l.A11Y_LABEL)(h.ariaLabel):void 0]):(0,a.removeAttribute)(d,"aria-label"),h.ariaLabelledby?(0,a.setAttribute)(d,[(0,l.A11Y_LABELED_BY)(h.ariaLabelledby)]):(0,a.removeAttribute)(d,"aria-labelledby"),h.ariaDescribedby?(0,a.setAttribute)(d,[(0,l.A11Y_DESCRIBED_BY)(h.ariaDescribedby)]):(0,a.removeAttribute)(d,"aria-describedby");const b=n?` ${c.DIALOG_CLASS_NAME}__content--background`:"";return(0,a.addClass)(p,`${c.DIALOG_CLASS_NAME}__content${b}`),"base"===g(S,this).TEMPLATE_NAME?(p.innerHTML="","string"==typeof o?(0,a.fastInnerHTML)(p,o):(o instanceof HTMLElement||o instanceof DocumentFragment)&&p.appendChild(o)):m&&Array.from(m.children).forEach((e,t)=>{const o=g(E,this)[t];o&&e.addEventListener("click",o)}),this}showDialog(e){const{dialogElement:t}=g(C,this);return t.style.display="block",e&&t.offsetHeight,(0,a.addClass)(t,`${c.DIALOG_CLASS_NAME}--show`),f(y,this,!1),this}hideDialog(e){const{dialogElement:t}=g(C,this);return(0,a.removeClass)(t,`${c.DIALOG_CLASS_NAME}--show`),(e&&!g(y,this)||!e)&&(t.style.display="none"),f(y,this,!1),this}focusDialog(){g(C,this).dialogElement.focus()}updateWidth(e){return g(C,this).dialogElement.style.width=`${e}px`,this}updateHeight(e){return g(C,this).dialogElement.style.height=`calc(100% - ${e}px)`,this}destroyDialog(){var e;null===(e=g(C,this))||void 0===e||e.dialogElement.remove(),f(C,this,null)}}function _(){const{dialogElement:e}=g(C,this);(0,a.hasClass)(e,`${c.DIALOG_CLASS_NAME}--show`)||(e.style.display="none")}function T(){f(y,this,!0)}t.DialogUI=b,(0,n.mixin)(b,r.default)},843:(e,t)=>{"use strict";t.__esModule=!0,t.announce=function(e){if(!o)return;o.textContent="",setTimeout(()=>{o&&(o.textContent=e)},100)},t.install=function(e){const t=e.ownerDocument;if(!o){o=t.createElement("div"),o.setAttribute("role","status"),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true");const i=o.style;i.position="absolute",i.width="1px",i.height="1px",i.margin="-1px",i.overflow="hidden",i.clipPath="rect(0 0 0 0)",i.whiteSpace="nowrap",e.appendChild(o)}i+=1},t.uninstall=function(){if(0===i)return;1===i&&(o.remove(),o=null);i-=1};let o=null,i=0},1002:(e,t,o)=>{"use strict";t.__esModule=!0,t.normalizeSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;const o=[];if(0===t)return o;(0,i.arrayEach)(e,e=>{const a=[];let l=0;o.push(a),(0,i.arrayEach)(e,e=>{const o=(0,r.createDefaultHeaderSettings)();if((0,s.isObject)(e)){const{label:t,colspan:i,headerClassName:s}=e;o.label=(0,n.stringify)(t),"number"==typeof i&&i>1&&(o.colspan=i,o.origColspan=i),"string"==typeof s&&(o.headerClassNames=[...s.split(" ")])}else o.label=(0,n.stringify)(e);l+=o.origColspan;let i=!1;if(l>=t&&(o.colspan=o.origColspan-(l-t),o.origColspan=o.colspan,i=!0),a.push(o),o.colspan>1)for(let e=0;e<o.colspan-1;e++)a.push((0,r.createPlaceholderHeaderSettings)());return!i})});const a=Math.max(...(0,i.arrayMap)(o,e=>e.length));return(0,i.arrayEach)(o,e=>{if(e.length<a){const t=(0,i.arrayMap)(new Array(a-e.length),()=>(0,r.createDefaultHeaderSettings)());e.splice(e.length,0,...t)}}),o},o(66182);var i=o(94857),s=o(78437),n=o(26599),r=o(4983)},1195:(e,t,o)=>{"use strict";var i=o(14326),s=o(52270),n=o(97931);e.exports=function(e,t,o){var r,a;return n&&i(r=t.constructor)&&r!==o&&s(a=r.prototype)&&a!==o.prototype&&n(e,a),e}},1316:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(12290);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.CustomBorders=i.CustomBorders},1402:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(77494);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.AutoRowSize=i.AutoRowSize},2224:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback(e,t){const o=t[0].start.col,i=t[0].end.col;this.countRows()&&this.populateFromArray(0,o,[[null]],Math.max(t[0].start.row,t[0].end.row),i,"ContextMenu.clearColumn")},disabled(){const e=this.getSelectedRangeActive();if(!e||e.isSingleHeader()&&e.highlight.col<0||!this.selection.isSelectedByColumnHeader())return!0;let t=!1;return e.forAll((e,o)=>{if(e<0||o<0)return!0;const{readOnly:i}=this.getCellMeta(e,o);return!!i||(t=!0,!1)}),!t}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278));const s=t.KEY="clear_column"},2289:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(u(e))return c(e);return c(i.COLUMN_DATA_TYPE)};var i=o(6888),s=o(99658),n=o(46808),r=o(9549),a=o(19348),l=o(43641);const{register:h,getItem:c,hasItem:u}=(0,l.staticRegister)("sorting.compareFunctionFactory"),{register:d,getItem:g}=(0,l.staticRegister)("sorting.mainSortComparator");t.getRootComparator=g,t.registerRootComparator=d,h(n.COLUMN_DATA_TYPE,n.compareFunctionFactory),h(r.COLUMN_DATA_TYPE,r.compareFunctionFactory),h(i.COLUMN_DATA_TYPE,i.compareFunctionFactory),h(s.COLUMN_DATA_TYPE,s.compareFunctionFactory),h(a.COLUMN_DATA_TYPE,a.compareFunctionFactory)},2721:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(8278)),s=o(76742);const n=t.CONDITION_NAME="lt";function r(e,t){let[o]=t,i=o;return"numeric"===e.meta.type&&(i=parseFloat(i,10)),e.value<i}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},3182:(e,t,o)=>{"use strict";t.__esModule=!0,t.getPlugin=u,t.getPluginsNames=function(){return[...l.getItems(),...h.getItems()]},t.hasPlugin=function(e){return!!u(e)},t.registerPlugin=function(e,t,o){[e,t,o]=function(e,t,o){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,o=t.PLUGIN_PRIORITY);return[e,t,o]}(e,t,o),void 0===u(e)&&function(e,t,o){const s=(0,i.toUpperCaseFirst)(e);if(c.hasItem(s))throw new Error(a(s));void 0===o?h.addItem(s):l.addItem(o,s);c.addItem(s,t)}(e,t,o)},o(22588);var i=o(73983),s=o(25281),n=o(79836),r=o(76030);const a=e=>`There is already registered "${e}" plugin.`,l=(0,s.createPriorityMap)({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),h=(0,r.createUniqueSet)({errorItemExists:a}),c=(0,n.createUniqueMap)({errorIdExists:a});function u(e){const t=(0,i.toUpperCaseFirst)(e);return c.getItem(t)}},3226:(e,t)=>{"use strict";t.__esModule=!0;t.A11Y_TABINDEX=e=>["tabindex",e];t.A11Y_TREEGRID=()=>["role","treegrid"];t.A11Y_PRESENTATION=()=>["role","presentation"];t.A11Y_GRIDCELL=()=>["role","gridcell"];t.A11Y_GRIDCELL_BUTTON=()=>["role","gridcell button"];t.A11Y_ROWHEADER=()=>["role","rowheader"];t.A11Y_ROWGROUP=()=>["role","rowgroup"];t.A11Y_COLUMNHEADER=()=>["role","columnheader"];t.A11Y_ROW=()=>["role","row"];t.A11Y_MENU=()=>["role","menu"];t.A11Y_MENU_ITEM=()=>["role","menuitem"];t.A11Y_MENU_ITEM_CHECKBOX=()=>["role","menuitemcheckbox"];t.A11Y_COMBOBOX=()=>["role","combobox"];t.A11Y_LISTBOX=()=>["role","listbox"];t.A11Y_OPTION=()=>["role","option"];t.A11Y_CHECKBOX=()=>["role","checkbox"];t.A11Y_DIALOG=()=>["role","dialog"];t.A11Y_ALERTDIALOG=()=>["role","alertdialog"];t.A11Y_SCOPE_COL=()=>["scope","col"];t.A11Y_SCOPE_ROW=()=>["scope","row"];t.A11Y_TEXT=()=>["type","text"];t.A11Y_LABEL=e=>["aria-label",e];t.A11Y_LABELED_BY=e=>["aria-labelledby",e];t.A11Y_DESCRIBED_BY=e=>["aria-describedby",e];t.A11Y_HIDDEN=()=>["aria-hidden","true"];t.A11Y_DISABLED=function(){return["aria-disabled",!(arguments.length>0&&void 0!==arguments[0])||arguments[0]]};t.A11Y_MULTISELECTABLE=()=>["aria-multiselectable","true"];t.A11Y_HASPOPUP=e=>["aria-haspopup",e];t.A11Y_ROWCOUNT=e=>["aria-rowcount",e];t.A11Y_COLCOUNT=e=>["aria-colcount",e];t.A11Y_ROWINDEX=e=>["aria-rowindex",e];t.A11Y_COLINDEX=e=>["aria-colindex",e];t.A11Y_EXPANDED=e=>["aria-expanded",e];t.A11Y_SORT=e=>["aria-sort",e];t.A11Y_READONLY=()=>["aria-readonly","true"];t.A11Y_INVALID=()=>["aria-invalid","true"];t.A11Y_CHECKED=e=>["aria-checked",e];t.A11Y_SELECTED=()=>["aria-selected","true"];t.A11Y_AUTOCOMPLETE=()=>["aria-autocomplete","list"];t.A11Y_CONTROLS=e=>["aria-controls",e];t.A11Y_ACTIVEDESCENDANT=e=>["aria-activedescendant",e];t.A11Y_LIVE=e=>["aria-live",e];t.A11Y_RELEVANT=e=>["aria-relevant",e];t.A11Y_SETSIZE=e=>["aria-setsize",e];t.A11Y_POSINSET=e=>["aria-posinset",e];t.A11Y_MODAL=()=>["aria-modal","true"]},3229:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(81396),o(88633);var s=i(o(81115)),n=o(93232),r=o(70270);class a extends n.BaseAction{constructor(e){let{rows:t,finalIndex:o}=e;super("row_move"),(0,s.default)(this,"rows",void 0),(0,s.default)(this,"finalRowIndex",void 0),this.rows=t.slice(),this.finalRowIndex=o}static startRegisteringEvents(e,t){e.addHook("beforeRowMove",(e,o)=>{!1!==e&&t.done(()=>new a({rows:e,finalIndex:o}))})}undo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t);(0,r.getMoves)(this.rows,this.finalRowIndex,e.rowIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:i}=e;t<i&&(i-=1),o.moveRow(i,t)}),e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)}redo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),o.moveRows(this.rows.slice(),this.finalRowIndex),e.render(),e.deselectCell(),e.selectRows(this.finalRowIndex,this.finalRowIndex+this.rows.length-1)}}t.RowMoveAction=a},3284:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588);var s=i(o(81115)),n=o(76651),r=i(o(19544)),a=o(61651),l=o(13533),h=o(82858);class c extends a.Overlay{constructor(e,t,o,i){super(e,t,h.CLONE_TOP,o,i),(0,s.default)(this,"cachedFixedRowsTop",-1),this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop")}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new r.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode,{rootWindow:t}=this.domBindings,o=this.wtSettings.getSetting("preventOverflow");let i=0,s=!1;if(this.trimmingContainer!==t||o&&"vertical"===o)i=this.getScrollPosition(),(0,n.resetCssTransform)(e);else{const{wtTable:t}=this.wot,o=t.hider.getBoundingClientRect();s=Math.ceil(o.bottom)===e.offsetHeight,i=this.getOverlayOffset(),(0,n.setOverlayPosition)(e,"0px",`${i}px`)}const r=this.adjustHeaderBordersPosition(i,s);return this.adjustElementsSize(),r}setScrollPosition(e){const{rootWindow:t}=this.domBindings,o=this.mainTableScrollableElement;let i=!1;if(o===t&&e!==t.scrollY){const o=t.scrollY;t.scrollTo((0,n.getWindowScrollLeft)(t),e),i=o!==t.scrollY}else if(e!==o.scrollTop){const t=o.scrollTop;o.scrollTop=e,i=t!==o.scrollTop}return i}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const o=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let i=e,s=0;for(;i<t;){const e=this.wot.wtTable.getRowHeight(i);s+=void 0===e?o:e,i+=1}return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o,rootWindow:i}=this.domBindings,s=this.clone.wtTable.holder.parentNode.style,r=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===r){let i=t.getWorkspaceWidth();t.hasVerticalScroll()&&(i-=(0,n.getScrollbarWidth)(o)),i=Math.min(i,e.wtRootElement.scrollWidth),s.width=`${i}px`}else s.width="";this.clone.wtTable.holder.style.width=s.width;let a=(0,n.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(a=0),s.height=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,l.getCornerStyle)(this.wot),o=this.wot.selectionManager.getFocusSelection()?parseInt(t.height,10)/2:0;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=`${parseInt(e.parentNode.style.height,10)+o}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){const{wot:o,wtSettings:i}=this,s=(o.cloneSource?o.cloneSource:o).wtTable.holder,r=i.getSetting("columnHeaders"),a=0===i.getSetting("fixedRowsTop")&&r.length>0&&!(0,n.hasClass)(s.parentNode,"innerBorderTop")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1)}if(t&&s.offsetHeight!==s.clientHeight&&(h=(0,n.getScrollbarWidth)(this.domBindings.rootDocument)),t){const t=i.getSetting("fixedRowsBottom"),s=i.getSetting("totalRows");l+=this.sumCellSizes(0,e+1),l-=o.wtViewport.getViewportHeight()-this.sumCellSizes(s-t,s),l+=1,l+=a}else l+=this.sumCellSizes(i.getSetting("fixedRowsTop"),e);return l+=h,(0,n.getMaximumScrollTop)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderVerticallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,n.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let o=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();o=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0),o>e&&(o=0)}return o}adjustHeaderBordersPosition(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wtSettings:o}=this,i=this.wot.wtTable.holder.parentNode,s=o.getSetting("totalColumns"),r="horizontal"===o.getSetting("preventOverflow");s?(0,n.removeClass)(i,"emptyColumns"):(0,n.addClass)(i,"emptyColumns");let a=!1;if(!t&&!r){const t=o.getSetting("fixedRowsTop"),s=this.cachedFixedRowsTop!==t,r=o.getSetting("columnHeaders");if((s||0===t)&&r.length>0){const t=(0,n.hasClass)(i,"innerBorderTop");this.cachedFixedRowsTop=o.getSetting("fixedRowsTop"),e||0===o.getSetting("totalRows")?((0,n.addClass)(i,"innerBorderTop"),a=!t):((0,n.removeClass)(i,"innerBorderTop"),a=t)}}return a}}t.TopOverlay=c},3343:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(14618);const i=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=e=>e.map(e=>{const t=e.toLowerCase();return i.has(t)?i.get(t):t}).sort().join("+");t.getKeysList=e=>e.split("+");const s=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]);t.normalizeEventKey=e=>{let{which:t,key:o}=e;if(s.has(t))return s.get(t);const i=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(i)?i:o.toLowerCase()}},3536:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(68390);t.EDITOR_TYPE=i.EDITOR_TYPE,t.TimeEditor=i.TimeEditor},3561:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,t.createHighlight=function(e){let{border:t,visualCellRange:o,...i}=e;return new n.default({...t,...i,selectionType:s.HIGHLIGHT_CUSTOM_SELECTION_TYPE},o)};var s=o(24496),n=i(o(73358))},3921:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(71154);t.RENDERER_TYPE=i.RENDERER_TYPE,t.autocompleteRenderer=i.autocompleteRenderer},4114:(e,t,o)=>{"use strict";var i=o(27538),s=o(8467),n=o(99949),r=o(19617),a=o(94988),l=o(89035),h=o(14326),c=o(497),u=o(4660),d=o(17169),g=o(71763),f=String,p=s("JSON","stringify"),m=a(/./.exec),w=a("".charAt),C=a("".charCodeAt),v=a("".replace),y=a(1.1.toString),S=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,R=/^[\uDC00-\uDFFF]$/,b=!g||l(function(){var e=s("Symbol")("stringify detection");return"[null]"!==p([e])||"{}"!==p({a:e})||"{}"!==p(Object(e))}),_=l(function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")}),T=function(e,t){var o=u(arguments),i=d(t);if(h(i)||void 0!==e&&!c(e))return o[1]=function(e,t){if(h(i)&&(t=r(i,this,f(e),t)),!c(t))return t},n(p,null,o)},M=function(e,t,o){var i=w(o,t-1),s=w(o,t+1);return m(E,e)&&!m(R,s)||m(R,e)&&!m(E,i)?"\\u"+y(C(e,0),16):e};p&&i({target:"JSON",stat:!0,arity:3,forced:b||_},{stringify:function(e,t,o){var i=u(arguments),s=n(b?T:p,null,i);return _&&"string"==typeof s?v(s,S,M):s}})},4360:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(50148);t.RENDERER_TYPE=i.RENDERER_TYPE,t.passwordRenderer=i.passwordRenderer},4369:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(30301),s=o(28617);const n=t.CELL_TYPE="select";t.SelectCellType={CELL_TYPE:n,editor:i.SelectEditor,renderer:s.selectRenderer}},4436:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"populateSelectedCellsData",callback(e){const t=e.getSelectedRange(),{row:o,col:i}=t[t.length-1].highlight.normalize(),s=e.getDataAtCell(o,i),n=new Map;for(let r=0;r<t.length;r++)t[r].forAll((t,r)=>{if(t>=0&&r>=0&&(t!==o||r!==i)){const{readOnly:o}=e.getCellMeta(t,r);o||n.set(`${t}x${r}`,[t,r,s])}});e.setDataAtCell(Array.from(n.values()))}}},4580:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(36647);t.CELL_TYPE=i.CELL_TYPE,t.TimeCellType=i.TimeCellType},4660:(e,t,o)=>{"use strict";var i=o(94988);e.exports=i([].slice)},4983:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){let{label:e="",colspan:t=1,origColspan:o=1,collapsible:i=!1,crossHiddenColumns:s=[],isCollapsed:n=!1,isHidden:r=!1,isRoot:a=!1,isPlaceholder:l=!1,headerClassNames:h=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:e,colspan:t,origColspan:o,collapsible:i,isCollapsed:n,crossHiddenColumns:s,isHidden:r,isRoot:a,isPlaceholder:l,headerClassNames:h}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},5e3:(e,t,o)=>{"use strict";t.__esModule=!0,t.createFocusScope=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n={shortcutsContextName:s.DEFAULT_SHORTCUTS_CONTEXT,type:s.SCOPE_TYPES.INLINE,contains:e=>e===t||t.contains(e),runOnlyIf:()=>!0,...o},r=(0,i.installFocusDetector)(e,t);return{getType:()=>n.type,hasContainerDetached:()=>!e.rootWrapperElement.contains(t),getShortcutsContextName:()=>n.shortcutsContextName,runOnlyIf:()=>n.runOnlyIf(),contains:e=>n.contains(e),activate:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.FOCUS_SOURCES.UNKNOWN;null===(e=n.onActivate)||void 0===e||e.call(n,t)},deactivate:()=>{var e;null===(e=n.onDeactivate)||void 0===e||e.call(n)},activateFocusCatchers:()=>{null==r||r.activate()},deactivateFocusCatchers:()=>{null==r||r.deactivate()},enable:()=>{t.removeAttribute("inert")},disable:()=>{t.setAttribute("inert","true")},destroy:()=>{null==r||r.destroy()}}};var i=o(60780),s=o(49669)},5172:e=>{function t(o){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(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5232:(e,t,o)=>{"use strict";t.__esModule=!0,o(81396),o(19874);t.command={name:"moveCellSelectionInlineEnd",callback(e,t){const{selection:o}=e,i=e.getSettings(),s=e.getSelectedRange(),n=e.getSelectedRangeActive(),r="function"==typeof i.tabMoves?i.tabMoves(t):i.tabMoves;o.markSource("keyboard"),(s.some(e=>o.isMultiple(e))||s.length>1)&&!n.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(-r.row,-r.col):o.transformStart(-r.row,-r.col),o.markEndSource()}}},5271:(e,t,o)=>{"use strict";var i=o(27538),s=o(19617),n=o(81576),r=o(49510),a=o(16539),l=o(83203),h=o(13479),c=o(57625)("some",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{some:function(e){a(this);try{r(e)}catch(e){h(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),o=0;return n(t,function(t,i){if(e(t,o++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},5326:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0;var s=i(o(81115));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.default)(this,"rootNode",void 0),(0,s.default)(this,"rootDocument",void 0),(0,s.default)(this,"rowHeaders",null),(0,s.default)(this,"columnHeaders",null),(0,s.default)(this,"colGroup",null),(0,s.default)(this,"rows",null),(0,s.default)(this,"cells",null),(0,s.default)(this,"rowFilter",null),(0,s.default)(this,"columnFilter",null),(0,s.default)(this,"rowUtils",null),(0,s.default)(this,"columnUtils",null),(0,s.default)(this,"rowsToRender",0),(0,s.default)(this,"columnsToRender",0),(0,s.default)(this,"rowHeaderFunctions",[]),(0,s.default)(this,"rowHeadersCount",0),(0,s.default)(this,"columnHeaderFunctions",[]),(0,s.default)(this,"columnHeadersCount",0),(0,s.default)(this,"cellRenderer",void 0),(0,s.default)(this,"activeOverlayName",void 0),(0,s.default)(this,"stylesHandler",void 0),this.rootNode=e,this.rootDocument=this.rootNode.ownerDocument,this.cellRenderer=t,this.stylesHandler=o}setActiveOverlayName(e){this.activeOverlayName=e}setAxisUtils(e,t){this.rowUtils=e,this.columnUtils=t}setViewportSize(e,t){this.rowsToRender=e,this.columnsToRender=t}setFilters(e,t){this.rowFilter=e,this.columnFilter=t}setHeaderContentRenderers(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}setRenderers(){let{rowHeaders:e,columnHeaders:t,colGroup:o,rows:i,cells:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),o.setTable(this),i.setTable(this),s.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=o,this.rows=i,this.cells=s}renderedRowToSource(e){return this.rowFilter.renderedToSource(e)}renderedColumnToSource(e){return this.columnFilter.renderedToSource(e)}isAriaEnabled(){return this.rowUtils.wtSettings.getSetting("ariaTags")}render(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();const{rowsToRender:e,rows:t}=this;for(let o=0;o<e;o++){const e=t.getRenderedNode(o),i=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(o),s=i.getHeightByOverlayName(t,this.activeOverlayName),n=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=s?s-n+"px":""}}}}},5363:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,i=parseInt(e.getSettings().fixedColumnsStart,10),s=e.getSelectedRangeActive().highlight.row,n=o.getNearestNotHiddenIndex(i,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s,n)),t.markEndSource()}}},5476:(e,t,o)=>{"use strict";t.__esModule=!0,o(22588);var i=o(76651),s=o(78437),n=o(42732);function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(l(e,t))}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakSet;class u extends n.BaseUI{static get DEFAULTS(){return(0,s.clone)({placeholder:"",type:"text",tagName:"input",tabIndex:-1})}constructor(e,t){var o,i;super(e,(0,s.extend)(u.DEFAULTS,t)),r(o=this,i=c),i.add(o),function(e,t,o){r(e,t),t.set(e,o)}(this,h,void 0),this.registerHooks()}registerHooks(){this.addLocalHook("keyup",e=>l(c,this,d).call(this,e))}build(){super.build();const e=this.hot.rootDocument.createElement("div");var t,o,s;t=h,o=this,s=this._element.firstChild,t.set(l(t,o),s),(0,i.addClass)(this._element,"htUIInput"),(0,i.addClass)(e,"htUIInputIcon"),this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(a(h,this).type=this.options.type,a(h,this).placeholder=this.translateIfPossible(this.options.placeholder),a(h,this).value=this.translateIfPossible(this.options.value))}focus(){this.isBuilt()&&a(h,this).focus()}}function d(e){this.options.value=e.target.value}t.InputUI=u},5760:(e,t,o)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,o){return[...e.slice(0,t),...o,...e.slice(t)]},t.getListWithRemovedItems=function(e,t){return(0,i.arrayFilter)(e,e=>!1===t.includes(e))};var i=o(94857)},5774:(e,t,o)=>{"use strict";var i=o(78656);t.__esModule=!0,o(22588),o(66182),o(33166),o(78822),o(86192),o(80729),o(99888),o(12767),o(78644),o(97550),o(81396),o(88633),o(14618);var s=o(76651),n=o(54259),r=i(o(24384));function a(e,t,o){l(e,t),t.set(e,o)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakSet;function v(){const e=h(p,this).get(h(d,this)),t=h(d,this).wtSettings.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(t))for(let o=0;o<t.length;o++)e.add(t[o]);e.forEach(e=>{var t,o;const i=h(d,this).wtTable.TABLE.query