handsontable
Version:
Handsontable is a JavaScript Data Grid available for React, Angular and Vue.
35 lines • 1.06 MB
JavaScript
/*!
* 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.0.1
* Release date: 10/07/2025 (built at 10/07/2025 10:59:13)
*/
!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,s)=>(()=>{var i={57:(e,t,o)=>{"use strict";o(44065),o(56060)},155:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(13795),i=o(40799);const r=t.CELL_TYPE="select";t.SelectCellType={CELL_TYPE:r,editor:s.SelectEditor,renderer:i.selectRenderer}},184:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(89255);const i={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,s.defineGetter)(i,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});t.default=i},214:e=>{"use strict";e.exports=function(e){return null==e}},226:(e,t,o)=>{"use strict";t.__esModule=!0,t.htmlRenderer=n;var s=o(55934),i=o(58741);const r=t.RENDERER_TYPE="html";function n(e,t,o,r,n,l,a){s.baseRenderer.apply(this,[e,t,o,r,n,l,a]),(0,i.fastInnerHTML)(t,null==l?"":l,!1)}n.RENDERER_TYPE=r},281:(e,t,o)=>{"use strict";var s=o(39157),i=o(9370),r=o(96891);e.exports=function(e,t,o){s?i.f(e,t,r(0,o)):e[t]=o}},578:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDownByViewportHeight",callback(e){const{selection:t}=e,{navigableHeaders:o}=e.getSettings(),s=o?e.countColHeaders():0,{row:i}=e.getSelectedRangeLast().highlight;let r=e.countVisibleRows()+s;r=0===r?1:r,i===e.countRows()-1?r=1:i+r>e.countRows()&&(r=e.countRows()-i-1),t.markSource("keyboard"),t.transformStart(r,0),t.markEndSource(),e.getSelectedRangeLast().highlight.row<0&&e.scrollViewportTo({row:0})}}},642:(e,t,o)=>{"use strict";var s=o(21313),i=o(14499).has,r=o(30845),n=o(18622),l=o(98304),a=o(78016),h=o(63884);e.exports=function(e){var t=s(this),o=n(e);if(r(t)<=o.size)return!1!==l(t,function(e){if(o.includes(e))return!1},!0);var c=o.getIterator();return!1!==a(c,function(e){if(i(t,e))return h(c,"normal",!1)})}},721:(e,t,o)=>{"use strict";var s,i=o(77618),r=o(65126),n=o(60370),l=o(13884),a=o(3034),h=o(4158),c=o(86224),u="prototype",d="script",g=c("IE_PROTO"),f=function(){},p=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,o;w="undefined"!=typeof document?document.domain&&s?m(s):(t=h("iframe"),o="java"+d+":",t.style.display="none",a.appendChild(t),t.src=String(o),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):m(s);for(var i=n.length;i--;)delete w[u][n[i]];return w()};l[g]=!0,e.exports=Object.create||function(e,t){var o;return null!==e?(f[u]=i(e),o=new f,f[u]=null,o[g]=e):o=w(),void 0===t?o:r.f(o,t)}},739:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726));t.default=class{constructor(e,t,o){(0,i.default)(this,"offset",void 0),(0,i.default)(this,"total",void 0),(0,i.default)(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=o}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleRowHeadedColumnToSourceColumn(e){return this.renderedToSource(this.offsettedTH(e))}sourceColumnToVisibleRowHeadedColumn(e){return this.unOffsettedTH(this.sourceToRendered(e))}}},1024:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(22121);class i extends s.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=i},1325:(e,t,o)=>{"use strict";var s=o(25225),i=o(6996),r=o(30334),n=s(Function.toString);i(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),e.exports=r.inspectSource},1403:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new r.default({className:"highlight",...t,selectionType:i.HIGHLIGHT_AREA_TYPE})};var i=o(33674),r=s(o(97616))},1478:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(69326),o(90795),o(89663),o(82141);var i=s(o(53726)),r=o(89255),n=o(5455),l=s(o(28494)),a=o(85296),h=o(44725),c=o(32201),u=o(97213),d=o(43393);const g="ConditionCollection.filteringStates";class f{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,i.default)(this,"hot",void 0),(0,i.default)(this,"isMapRegistrable",void 0),(0,i.default)(this,"filteringStates",new d.LinkedPhysicalIndexToValueMap),this.hot=e,this.isMapRegistrable=t,!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap(g,this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexes())}isEmpty(){return 0===this.getFilteredColumns().length}isMatch(e,t){var o;const s=this.filteringStates.getValueAtIndex(t),i=null!==(o=null==s?void 0:s.conditions)&&void 0!==o?o:[],r=null==s?void 0:s.operation;return this.isMatchInConditions(i,e,r)}isMatchInConditions(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.OPERATION_ID;return!e.length||(0,c.getOperationFunc)(o)(e,t)}addCondition(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.OPERATION_ID,s=arguments.length>3?arguments[3]:void 0;const i=this.hot.getCellMeta(0,e).locale,r=t.args.map(e=>"string"==typeof e?e.toLocaleLowerCase(i):e),l=t.name||t.command.key;this.runLocalHooks("beforeAdd",e);const d=this.getOperation(e);if(d){if(d!==o)throw Error(n.toSingleLine`The column of index ${e} has been already applied with a \`${d}\`\x20
filter operation. Use \`removeConditions\` to clear the current conditions and then add new ones.\x20
Mind that you cannot mix different types of operations (for instance, if you use \`conjunction\`,\x20
use it consequently for a particular column).`)}else if((0,u.isUndefined)(c.operations[o]))throw new Error(n.toSingleLine`Unexpected operation named \`${o}\`. Possible ones are\x20
\`disjunction\` and \`conjunction\`.`);const g=this.getConditions(e);0===g.length?this.filteringStates.setValueAtIndex(e,{operation:o,conditions:[{name:l,args:r,func:(0,a.getCondition)(l,r)}]},s):g.push({name:l,args:r,func:(0,a.getCondition)(l,r)}),this.runLocalHooks("afterAdd",e)}getConditions(e){var t,o;return null!==(t=null===(o=this.filteringStates.getValueAtIndex(e))||void 0===o?void 0:o.conditions)&&void 0!==t?t:[]}getOperation(e){var t;return null===(t=this.filteringStates.getValueAtIndex(e))||void 0===t?void 0:t.operation}getFilteredColumns(){return this.filteringStates.getEntries().map(e=>{let[t]=e;return t})}getColumnStackPosition(e){return this.getFilteredColumns().indexOf(e)}exportAllConditions(){return this.filteringStates.getEntries().reduce((e,t)=>{let[o,{operation:s,conditions:i}]=t;return e.push({column:o,operation:s,conditions:i.map(e=>{let{name:t,args:o}=e;return{name:t,args:[...o]}})}),e},[])}importAllConditions(e){this.clean(),e.forEach(e=>{e.conditions.forEach(t=>this.addCondition(e.column,t))})}removeConditions(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}clean(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}hasConditions(e,t){const o=this.getConditions(e);return t?o.some(e=>e.name===t):o.length>0}destroy(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(g),this.filteringStates=null,this.clearLocalHooks()}}(0,r.mixin)(f,l.default);t.default=f},1508:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(34726);var i=s(o(53726)),r=o(13351),n=o(89255);t.CommandExecutor=class{constructor(e){(0,i.default)(this,"hot",void 0),(0,i.default)(this,"commands",{}),(0,i.default)(this,"commonCallback",null),this.hot=e}registerCommand(e,t){this.commands[e]=t}setCommonCallback(e){this.commonCallback=e}execute(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];const i=e.split(":"),l=i[0],a=2===i.length?i[1]:null;let h=this.commands[l];if(!h)throw new Error(`Menu command '${l}' not exists.`);if(a&&h.submenu&&(h=function(e,t){let o;return(0,r.arrayEach)(t,t=>{const s=t.key?t.key.split(":"):null;if(Array.isArray(s)&&s[1]===e)return o=t,!1}),o}(a,h.submenu.items)),!0===h.disabled)return;if("function"==typeof h.disabled&&!0===h.disabled.call(this.hot))return;if((0,n.hasOwnProperty)(h,"submenu"))return;const c=[];"function"==typeof h.callback&&c.push(h.callback),"function"==typeof this.commonCallback&&c.push(this.commonCallback),o.unshift(i.join(":")),(0,r.arrayEach)(c,e=>e.apply(this.hot,o))}}},1974:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(52682);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.DropdownMenu=s.DropdownMenu},2163:(e,t,o)=>{"use strict";var s=o(30784),i=Math.min;e.exports=function(e){var t=s(e);return t>0?i(t,9007199254740991):0}},2354:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:o,from:s,to:i}=e.getSelectedRangeLast();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(s.col,i.col,o),t.markEndSource()}}},2411:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=o(58741),r=s(o(48622)),n=s(o(61854)),l=s(o(184)),a=o(89255);class h extends r.default{constructor(e,t,o,s){super(e,t,o,s,"master")}alignOverlaysWithTrimmingContainer(){const e=(0,i.getTrimmingContainer)(this.wtRootElement),{rootWindow:t}=this.domBindings;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{const o=e.parentElement,s=(0,i.getStyle)(e,"height",t),r=(0,i.getStyle)(e,"overflow",t),n=this.holder.style,{scrollWidth:l,scrollHeight:a}=e;let h=e.offsetWidth,c=e.offsetHeight;if(o&&["auto","hidden","scroll"].includes(r)){const s=e.cloneNode(!1);s.style.overflow="auto",s.style.position="absolute",e.nextElementSibling?o.insertBefore(s,e.nextElementSibling):o.appendChild(s);const i=parseInt(t.getComputedStyle(s).height,10);o.removeChild(s),0===i&&(c=0)}c=Math.min(c,a),n.height="auto"===s?"auto":`${c}px`,h=Math.min(h,l),n.width=`${h}px`,n.overflow="",this.hasTableHeight="auto"===n.height||c>0,this.hasTableWidth=h>0}this.isTableVisible=(0,i.isVisible)(this.TABLE)}markOversizedColumnHeaders(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject,o="master",s=e.getSetting("columnHeaders").length;if(s&&!t.hasOversizedColumnHeadersMarked[o]){const i=e.getSetting("rowHeaders").length,r=this.getRenderedColumnsCount();for(let e=0;e<s;e++)for(let e=-1*i;e<r;e++)this.markIfOversizedColumnHeader(e);t.hasOversizedColumnHeadersMarked[o]=!0}}}(0,a.mixin)(h,n.default),(0,a.mixin)(h,l.default);t.default=h},2454:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(48622)),r=s(o(69414)),n=s(o(71929)),l=o(89255),a=o(40457);class h extends i.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,l.mixin)(h,r.default),(0,l.mixin)(h,n.default);t.default=h},2599:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(94218),n=o(94293),l=o(13351);class a extends r.BaseAction{constructor(e){let{stateBefore:t,range:o,type:s,alignment:r}=e;super("cell_alignment"),(0,i.default)(this,"stateBefore",void 0),(0,i.default)(this,"range",void 0),(0,i.default)(this,"type",void 0),(0,i.default)(this,"alignment",void 0),this.stateBefore=t,this.range=o,this.type=s,this.alignment=r}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",(e,o,s,i)=>{t.done(()=>new a({stateBefore:e,range:o,type:s,alignment:i}))})}undo(e,t){(0,l.arrayEach)(this.range,t=>{t.forAll((t,o)=>{t>=0&&o>=0&&e.setCellMeta(t,o,"className",this.stateBefore[t][o]||" htLeft")})}),e.addHookOnce("afterViewRender",t),e.render()}redo(e,t){(0,n.align)(this.range,this.type,this.alignment,(t,o)=>e.getCellMeta(t,o),(t,o,s,i)=>e.setCellMeta(t,o,s,i)),e.addHookOnce("afterViewRender",t),e.render()}}t.CellAlignmentAction=a},2737:(e,t,o)=>{"use strict";var s=o(19895),i=o(53385),r=o(92754)("match");e.exports=function(e){var t;return s(e)&&(void 0!==(t=e[r])?!!t:"RegExp"===i(e))}},2940:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(16410),n=s(o(80277)),l=o(8874),a=o(58741),h=o(79501),c=o(25875),u=o(97213),d=o(68223),g=o(6532);const f="ht_editor_hidden",p="textEditor",m=t.EDITOR_TYPE="text";class w extends r.BaseEditor{static get EDITOR_TYPE(){return m}constructor(e){super(e),(0,i.default)(this,"eventManager",new n.default(this)),(0,i.default)(this,"autoResize",(0,c.createInputElementResizer)(this.hot.rootDocument)),(0,i.default)(this,"TEXTAREA",void 0),(0,i.default)(this,"textareaStyle",void 0),(0,i.default)(this,"TEXTAREA_PARENT",void 0),(0,i.default)(this,"textareaParentStyle",void 0),(0,i.default)(this,"layerClass",void 0),this.eventManager=new n.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,a.isInternalElement)(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,o,s,i,n){const l=this.state;if(super.prepare(e,t,o,s,i,n),!n.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=n;e&&!this.isOpened()&&(this.TEXTAREA.value=""),l===r.EDITOR_STATE.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===r.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),(0,a.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){const{rootDocument:e}=this.hot;this.TEXTAREA=e.createElement("TEXTAREA"),(0,a.setAttribute)(this.TEXTAREA,[["data-hot-input",""],(0,g.A11Y_TABINDEX)(-1)]),(0,a.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,a.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,a.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,a.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,a.addClass)(this.TEXTAREA_PARENT,f),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){(0,l.isEdge)()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,a.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,a.addClass)(this.TEXTAREA_PARENT,f)}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,o=>{const s=e[o];if((0,a.hasClass)(s,"handsontableEditor"))return t=!0,!1}),(0,a.hasClass)(this.TEXTAREA_PARENT,f)&&(0,a.removeClass)(this.TEXTAREA_PARENT,f),t?(this.layerClass="ht_editor_visible",(0,a.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,a.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!==r.EDITOR_STATE.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD)return void(e||this.close());const{top:t,start:o,width:s,maxWidth:i,height:n,maxHeight:l}=this.getEditedCellRect();this.textareaParentStyle.top=`${t}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${o}px`,this.showEditableElement();const a=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=a.fontSize,this.TEXTAREA.style.fontFamily=a.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(s,i),minHeight:Math.min(n,l),maxWidth:i,maxHeight:l},!0)}bindEvents(){(0,l.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===r.EDITOR_STATE.EDITING&&this.focus()}),this.addHook("afterRowResize",()=>{this.refreshDimensions(),this.state===r.EDITOR_STATE.EDITING&&this.focus()})}allowKeyEventPropagation(){}destroy(){this.eventManager.destroy(),this.clearHooks()}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={runOnlyIf:()=>(0,u.isDefined)(this.hot.getSelected()),group:p},o=()=>{this.hot.rootDocument.execCommand("insertText",!1,"\n")};e.addShortcuts([{keys:[["Control","Enter"]],callback:()=>(o(),!1),runOnlyIf:e=>!this.hot.selection.isMultiple()&&!e.altKey},{keys:[["Meta","Enter"]],callback:()=>(o(),!1),runOnlyIf:()=>!this.hot.selection.isMultiple()},{keys:[["Alt","Enter"]],callback:()=>(o(),!1)},{keys:[["Home"]],callback:(e,t)=>{let[o]=t;(0,d.updateCaretPosition)(o,this.TEXTAREA)}},{keys:[["End"]],callback:(e,t)=>{let[o]=t;(0,d.updateCaretPosition)(o,this.TEXTAREA)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(p)}}t.TextEditor=w},3034:(e,t,o)=>{"use strict";var s=o(10028);e.exports=s("document","documentElement")},3066:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(94218);class n extends r.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_row"),(0,i.default)(this,"index",void 0),(0,i.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateRow",(e,o,s)=>{t.done(()=>new n({index:e,amount:o}),s)})}undo(e,t){const o=e.countRows(),s=e.getSettings().minSpareRows;this.index>=o&&this.index-s<o&&(this.index-=s),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row_above",this.index,this.amount,"UndoRedo.redo")}}t.CreateRowAction=n},3140:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,o(88443),o(85639),o(73741),o(82141);var i=o(76549),r=o(12945),n=o(13351),l=o(58741),a=o(79501),h=s(o(20899)),c=s(o(20268));function u(e,t,o){d(e,t),t.set(e,o)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t,o){return e.set(p(e,t),o),o}function f(e,t){return e.get(p(e,t))}function p(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}r.Hooks.getSingleton().register("beforeRowMove"),r.Hooks.getSingleton().register("afterRowMove");const m=t.PLUGIN_KEY="manualRowMove",w=t.PLUGIN_PRIORITY=140,C="ht__manualRowMove",v="show-ui",y="on-moving--rows",E="after-selection--rows";var S=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakSet;class O extends i.BasePlugin{constructor(){var e,t;super(...arguments),d(e=this,t=I),t.add(e),u(this,S,new h.default(this.hot)),u(this,R,new c.default(this.hot)),u(this,b,[]),u(this,_,void 0),u(this,T,{}),u(this,M,void 0)}static get PLUGIN_KEY(){return m}static get PLUGIN_PRIORITY(){return w}isEnabled(){return!!this.hot.getSettings()[m]}enablePlugin(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return p(I,e,N).call(e,...o)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return p(I,e,H).call(e,...o)}),this.addHook("afterScrollHorizontally",()=>p(I,this,P).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return p(I,e,k).call(e,...o)}),this.buildPluginUI(),this.registerEvents(),(0,l.addClass)(this.hot.rootElement,C),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){(0,l.removeClass)(this.hot.rootElement,C),this.unregisterEvents(),f(S,this).destroy(),f(R,this).destroy(),super.disablePlugin()}moveRow(e,t){return this.moveRows([e],t)}moveRows(e,t){const o=f(M,this),s=this.isMovePossible(e,t),i=this.hot.runHooks("beforeRowMove",e,t,o,s);if(g(M,this,void 0),!1===i)return;s&&this.hot.rowIndexMapper.moveIndexes(e,t);const r=s&&this.isRowOrderChanged(e,t);return this.hot.runHooks("afterRowMove",e,t,o,s,r),r}dragRow(e,t){return this.dragRows([e],t)}dragRows(e,t){const o=this.countFinalIndex(e,t);return g(M,this,t),this.moveRows(e,o)}isMovePossible(e,t){const o=this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),s=e.length+t>o,i=t<0,r=e.some(e=>e<0),n=e.some(e=>e>=o);return!(s||i||r||n)}isRowOrderChanged(e,t){return e.some((e,o)=>e-o!==t)}countFinalIndex(e,t){const o=(0,n.arrayReduce)(e,(e,o)=>(o<t&&(e+=1),e),0);return t-o}getRowsHeight(e,t){const o=this.hot.rowIndexMapper;let s=0;for(let i=e;i<=t;i++){const e=o.getRenderableFromVisualIndex(i);null!==e&&(s+=this.hot.view._wt.wtTable.getRowHeight(e)||this.hot.stylesHandler.getDefaultRowHeight())}return s}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:o,to:s}=e,i=Math.min(o.row,s.row),r=Math.max(o.row,s.row);return(0,a.rangeEach)(i,r,e=>{t.push(e)}),t}refreshPositions(){const e=f(T,this).coords,t=this.hot.getFirstFullyVisibleRow(),o=this.hot.getLastFullyVisibleRow(),s=this.hot.countRows();this.isFixedRowTop(e.row)&&t>0&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(t-1,-1)),this.isFixedRowBottom(e.row)&&o<s&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(o+1,1),void 0,!0);const i=this.hot.view._wt.wtTable,r=f(T,this).TD,n=this.hot.rootElement,a=(0,l.offset)(n),h=(0,l.getTrimmingContainer)(n),c=i.holder.scrollTop,u=this.hot.rootWindow!==h?h.scrollTop:0,d=a.top-u,g=f(T,this).eventPageY-d+c,p=i.hider.offsetHeight,m=i.TBODY.offsetTop,w=f(S,this).getOffset().top,C=f(S,this).getSize().height,v=r.offsetHeight/2,y=r.offsetHeight;let E=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,e.row-1);const b=g>=E+v;this.isFixedRowTop(e.row)&&(E+=this.hot.view._wt.wtOverlays.topOverlay.getOverlayOffset()),e.row<0?f(T,this).row=t>0?t-1:t:b?(f(T,this).row=e.row+1,E+=0===e.row?y-1:y):f(T,this).row=e.row;let _=g,M=E;g+C+w>=p?_=p-C-w:g+w<m&&(_=m+Math.abs(w)),E>=p-1&&(M=p-1),f(S,this).setPosition(_),f(R,this).setPosition(M)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",e=>p(I,this,A).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>p(I,this,x).call(this))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){f(S,this).build(),f(R,this).build()}destroy(){f(S,this).destroy(),f(R,this).destroy(),super.destroy()}}function N(e,t,o,s){const{wtTable:i,wtViewport:r}=this.hot.view._wt,n=this.hot.selection.isSelectedByRowHeader(),a=this.hot.getSelectedRangeLast();if(!a||!n||f(_,this)||0!==e.button)return g(_,this,!1),f(b,this).length=0,void(0,l.removeClass)(this.hot.rootElement,[y,v]);const h=f(R,this).isBuilt()&&!f(R,this).isAppended(),c=f(S,this).isBuilt()&&!f(S,this).isAppended();h&&c&&(f(R,this).appendTo(i.hider),f(S,this).appendTo(i.hider));const{from:u,to:d}=a,p=Math.min(u.row,d.row),m=Math.max(u.row,d.row);if(t.col<0&&t.row>=p&&t.row<=m){s.row=!0,g(_,this,!0),f(T,this).eventPageY=e.pageY,f(T,this).coords=t,f(T,this).TD=o,g(b,this,this.prepareRowsToMoving());const n=i.holder.scrollLeft+r.getRowHeaderWidth(),a=this.getRowsHeight(p,t.row-1)+(e.clientY-o.getBoundingClientRect().top);f(S,this).setPosition(null,n),f(S,this).setSize(i.hider.offsetWidth-n,this.getRowsHeight(p,m)),f(S,this).setOffset(-a,null),(0,l.addClass)(this.hot.rootElement,y),this.refreshPositions()}else(0,l.removeClass)(this.hot.rootElement,E),g(_,this,!1),f(b,this).length=0}function A(e){f(_,this)&&(f(T,this).eventPageY=e.pageY,this.refreshPositions())}function H(e,t,o,s){this.hot.getSelectedRangeLast()&&f(_,this)&&(f(b,this).indexOf(t.row)>-1?(0,l.removeClass)(this.hot.rootElement,v):(0,l.addClass)(this.hot.rootElement,v),s.row=!0,s.column=!0,s.cell=!0,f(T,this).coords=t,f(T,this).TD=o)}function x(){const e=f(T,this).row,t=f(b,this).length;if(g(_,this,!1),(0,l.removeClass)(this.hot.rootElement,[y,v,E]),this.hot.selection.isSelectedByRowHeader()&&(0,l.addClass)(this.hot.rootElement,E),t<1||void 0===e)return;const o=f(b,this)[0],s=this.hot.toPhysicalRow(o),i=this.dragRows(f(b,this),e);if(f(b,this).length=0,!0===i){this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize();const e=this.hot.toVisualRow(s),o=e+t-1;this.hot.selectRows(e,o)}}function P(){const e=this.hot.view._wt.wtTable,t=this.hot.view._wt.wtViewport.getRowHeaderWidth()+e.holder.scrollLeft;f(S,this).setPosition(null,t),f(S,this).setSize(e.hider.offsetWidth-t)}function k(){this.moveBySettingsOrLoad()}t.ManualRowMove=O},3385:(e,t,o)=>{"use strict";t.__esModule=!0,o(88443),o(62705),o(78495),o(43554),o(15247),o(18472),o(89711),o(78675);var s=o(58741);function i(e,t,o){r(e,t),t.set(e,o)}function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(e,t){return e.get(a(e,t))}function l(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakSet;function d(e){let[t,o,i,r]=n(h,this).getCorners();if(t<0&&i<0||o<0&&r<0)return;const{wtTable:l}=n(c,this),a=t!==i||o!==r;if(o=Math.max(o,0),r=Math.max(r,0),t=Math.max(t,0),i=Math.max(i,0),a){if(o=Math.max(o,l.getFirstRenderedColumn()),r=Math.min(r,l.getLastRenderedColumn()),t=Math.max(t,l.getFirstRenderedRow()),i=Math.min(i,l.getLastRenderedRow()),r<o||i<t)return}else{const e=l.getCell(n(c,this).createCellCoords(t,o));if(!(0,s.isHTMLElement)(e))return}for(let s=t;s<=i;s+=1)for(let t=o;t<=r;t+=1)e(s,t)}function g(e){const{wtTable:t}=n(c,this),o=t.getRenderedRowsCount(),s=t.getRenderedColumnsCount();for(let i=0;i<o;i+=1){const o=t.rowFilter.renderedToSource(i);for(let i=0;i<s;i+=1)e(o,t.columnFilter.renderedToSource(i))}}t.SelectionScanner=class{constructor(){var e,t;r(e=this,t=u),t.add(e),i(this,h,void 0),i(this,c,void 0)}setActiveOverlay(e){return l(c,this,e),this}setActiveSelection(e){return l(h,this,e),this}scan(){const e=n(h,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"area"===e?this.scanCellsRange(e=>t.add(e)):"focus"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e)),this.scanCellsRange(e=>t.add(e))):"fill"===e?this.scanCellsRange(e=>t.add(e)):"header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"row"===e?(this.scanRowsInHeadersRange(e=>t.add(e)),this.scanRowsInCellsRange(e=>t.add(e))):"column"===e&&(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanColumnsInCellsRange(e=>t.add(e))),t}scanColumnsInHeadersRange(e){const[t,o,s,i]=n(h,this).getCorners(),{wtTable:r}=n(c,this),l=r.getRenderedColumnsCount(),a=r.getColumnHeadersCount();let u=0;for(let d=-r.getRowHeadersCount();d<l;d++){const l=r.columnFilter.renderedToSource(d);if(!(l<o||l>i)){for(let d=-a;d<0;d++){if(d<t||d>s)continue;const g=d+a;let f=r.getColumnHeader(l,g);const p=n(c,this).getSetting("onBeforeHighlightingColumnHeader",l,g,{selectionType:n(h,this).settings.selectionType,columnCursor:u,selectionWidth:i-o+1});null!==p&&(p!==l&&(f=r.getColumnHeader(p,g)),e(f))}u+=1}}}scanRowsInHeadersRange(e){const[t,o,s,i]=n(h,this).getCorners(),{wtTable:r}=n(c,this),l=r.getRenderedRowsCount(),a=r.getRowHeadersCount();let u=0;for(let d=-r.getColumnHeadersCount();d<l;d++){const l=r.rowFilter.renderedToSource(d);if(!(l<t||l>s)){for(let d=-a;d<0;d++){if(d<o||d>i)continue;const g=d+a;let f=r.getRowHeader(l,g);const p=n(c,this).getSetting("onBeforeHighlightingRowHeader",l,g,{selectionType:n(h,this).settings.selectionType,rowCursor:u,selectionHeight:s-t+1});null!==p&&(p!==l&&(f=r.getRowHeader(p,g)),e(f))}u+=1}}}scanCellsRange(e){const{wtTable:t}=n(c,this);a(u,this,d).call(this,(o,i)=>{const r=t.getCell(n(c,this).createCellCoords(o,i)),l=n(c,this).getSetting("onAfterDrawSelection",o,i,n(h,this).settings.layerLevel);"string"==typeof l&&(0,s.addClass)(r,l),e(r)})}scanRowsInCellsRange(e){const[t,,o]=n(h,this).getCorners(),{wtTable:s}=n(c,this);a(u,this,g).call(this,(i,r)=>{if(i>=t&&i<=o){const t=s.getCell(n(c,this).createCellCoords(i,r));e(t)}})}scanColumnsInCellsRange(e){const[,t,,o]=n(h,this).getCorners(),{wtTable:s}=n(c,this);a(u,this,g).call(this,(i,r)=>{if(r>=t&&r<=o){const t=s.getCell(n(c,this).createCellCoords(i,r));e(t)}})}}},3430:(e,t,o)=>{"use strict";o(73741),o(69326),t.__esModule=!0;var s=o(9531);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))});var i=o(40828);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))})},3583:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.createHighlight=function(e){let{areaCornerVisible:t,...o}=e;return new r.default({className:"area",createLayers:!0,border:{width:1,color:"#4b89ff",cornerVisible:t},...o,selectionType:i.HIGHLIGHT_AREA_TYPE})};var i=o(33674),r=s(o(97616))},3603:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(3140);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ManualRowMove=s.ManualRowMove},3702:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback(e,t){const o=t[0].start.col,s=t[0].end.col;this.countRows()&&this.populateFromArray(0,o,[[null]],Math.max(t[0].start.row,t[0].end.row),s,"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,o)=>{if(e<0||o<0)return!0;const{readOnly:s}=this.getCellMeta(e,o);return!!s||(t=!0,!1)}),!t}}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372));const i=t.KEY="clear_column"},4158:(e,t,o)=>{"use strict";var s=o(88005),i=o(19895),r=s.document,n=i(r)&&i(r.createElement);e.exports=function(e){return n?r.createElement(e):{}}},4336:(e,t,o)=>{"use strict";var s=o(19895);e.exports=function(e){return s(e)||null===e}},4388:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){return this.getTranslatedPhrase(s.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 s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372));const i=t.KEY="row_below"},4409:(e,t,o)=>{"use strict";t.__esModule=!0,t.numericValidator=r;var s=o(79501);const i=t.VALIDATOR_TYPE="numeric";function r(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):t(""!==o&&(0,s.isNumeric)(e))}r.VALIDATOR_TYPE=i},4649:(e,t,o)=>{"use strict";o(73741),o(69326);var s=o(60423);t.__esModule=!0;var i={Selection:!0,handleMouseEvent:!0,detectSelectionType:!0,normalizeSelectionFactory:!0},r=s(o(17259));t.Selection=r.default;var n=o(88006);t.handleMouseEvent=n.handleMouseEvent;var l=o(43748);t.detectSelectionType=l.detectSelectionType,t.normalizeSelectionFactory=l.normalizeSelectionFactory;var a=o(34794);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))})},4922:(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}}},5006:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},5080:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(16066),n=o(7378),l=o(31299),a=o(58741),h=o(34649),c=o(67616),u=o(76107);const d=t.PLUGIN_KEY="multiColumnSorting",g=t.PLUGIN_PRIORITY=170,f=d;(0,n.registerRootComparator)(d,h.rootComparator);class p extends r.ColumnSorting{constructor(){super(...arguments),(0,i.default)(this,"pluginKey",d)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){super.enablePlugin()}disablePlugin(){super.disablePlugin()}registerShortcuts(){super.registerShortcuts(),this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Shift","Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();return-1===e.row&&e.col>=0&&this.sort(this.getNextSortConfig(e.col,r.APPEND_COLUMN_CONFIG_STRATEGY)),!1},runOnlyIf:()=>{var e,t;const o=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return o&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(o)&&o.isHeader()},relativeToGroup:u.EDITOR_EDIT_GROUP,position:"before",group:f})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(f)}sort(e){super.sort(e)}clearSort(){super.clearSort()}isSorted(){return super.isSorted()}getSortConfig(e){return super.getSortConfig(e)}setSortConfig(e){super.setSortConfig(e)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}updateHeaderClasses(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];super.updateHeaderClasses(e,...o),(0,a.removeClass)(e,(0,c.getClassesToRemove)(e)),!1!==this.enabled&&(0,a.addClass)(e,(0,c.getClassesToAdd)(...o))}onAfterOnCellMouseDown(e,t){!1!==(0,l.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,r.APPEND_COLUMN_CONFIG_STRATEGY))):this.sort(this.getColumnNextConfig(t.col)))}}t.MultiColumnSorting=p},5115:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(92560);t.RENDERER_TYPE=s.RENDERER_TYPE,t.dateRenderer=s.dateRenderer},5433:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(89255),n=o(9335),l=s(o(40114));const a=["data","width"];t.default=class{constructor(e){(0,i.default)(this,"globalMeta",void 0),(0,i.default)(this,"metas",new l.default(()=>this._createMeta())),this.globalMeta=e,this.metas=new l.default(()=>this._createMeta())}updateMeta(e,t){const o=this.getMeta(e);(0,r.extend)(o,t),(0,n.extendByMetaType)(o,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return(0,n.columnFactory)(this.globalMeta.getMetaConstructor(),a).prototype}}},5455:(e,t,o)=>{"use strict";t.__esModule=!0,t.toSingleLine=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return(0,s.arrayReduce)(e,(e,t,s)=>e+t.replace(/\r?\n\s*/g,"")+(o[s]?o[s]:""),"").trim()};var s=o(13351)},6097:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostTop",callback(e){const{selection:t}=e,{col:o}=e.getSelectedRangeLast().highlight;let s=e.rowIndexMapper.getNearestNotHiddenIndex(0,1);null===s&&(s=-e.countColHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s,o)),t.markEndSource()}}},6228:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0,t.createHighlight=function(e){let{columnClassName:t,...o}=e;return new r.default({className:t,...o,selectionType:i.HIGHLIGHT_COLUMN_TYPE})};var i=o(33674),r=s(o(97616))},6263:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottom",callback(e){const{selection:t}=e,{col:o}=e.getSelectedRangeLast().highlight;let s=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===s&&(s=-1),t.setRangeStart(e._createCellCoords(s,o))}}},6330:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},6353:(e,t,o)=>{"use strict";var s=o(88005),i=o(6996),r=s.WeakMap;e.exports=i(r)&&/native code/.test(String(r))},6532:(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_SCOPE_COL=()=>["scope","col"];t.A11Y_SCOPE_ROW=()=>["scope","row"];t.A11Y_TEXT=()=>["type","text"];t.A11Y_LABEL=e=>["aria-label",e];t.A11Y_HIDDEN=()=>["aria-hidden","true"];t.A11Y_DISABLED=()=>["aria-disabled","true"];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]},6574:(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"},6687:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,checkable:!0,ariaChecked(){return(0,s.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)},ariaLabel(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_READ_ONLY);return(0,s.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)&&(e=(0,s.markLabelAsSelected)(e)),e},callback(){const e=this.getSelectedRange(),t=(0,s.checkSelectionConsistency)(e,(e,t)=>this.getCellMeta(e,t).readOnly);(0,i.arrayEach)(e,e=>{e.forAll((e,o)=>{e>=0&&o>=0&&this.setCellMeta(e,o,"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 s=o(94293),i=o(13351),r=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372));const n=t.KEY="make_read_only"},6723:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionInlineStart",callback(e,t){const{selection:o}=e,s=e.getSettings(),i=e.getSelectedRangeLast(),r="function"==typeof s.tabMoves?s.tabMoves(t):s.tabMoves;o.markSource("keyboard"),o.isMultiple()&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(r.row,r.col):o.transformStart(r.row,r.col),o.markEndSource()}}},6996:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},7307:(e,t,o)=>{"use strict";o(55010)},7308:(e,t,o)=>{"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(i.CONTEXTMENU_ITEMS_SHOW_COLUMN,e)},callback(){var o,s;if(0===t.length)return;let i=t[0],r=t[t.length-1];i=null!==(o=this.columnIndexMapper.getNearestNotHiddenIndex(i-1,-1))&&void 0!==o?o:0,r=null!==(s=this.columnIndexMapper.getNearestNotHiddenIndex(r+1,1))&&void 0!==s?s:this.countCols()-1,e.showColumns(t),this.render(),this.view.adjustElementsSize();r-i+1===this.countCols()||this.selectColumns(i,r)},disabled:!1,hidden(){const o=(0,s.arrayMap)(e.getHiddenColumns(),e=>this.toPhysicalColumn(e));if(!this.selection.isSelectedByColumnHeader()&&!this.selection.isSelectedByCorner()||o.length<1)return!0;t.length=0;const i=this.getSelectedRangeLast(),r=i.getTopStartCorner().col,n=i.getBottomEndCorner().col,l=this.columnIndexMapper,a=l.getRenderableFromVisualIndex(r),h=l.getRenderableFromVisualIndex(n),c=l.getNotTrimmedIndexes(),u=[];if(r!==n){if(n-r+1>h-a+1){const e=c.slice(r,n+1);u.push(...e.filter(e=>o.includes(e)))}}else if(0===a&&a<r)u.push(...c.slice(0,r));else if(null===a)u.push(...c.slice(0,this.countCols()));else{const e=this.countCols()-1;h===l.getRenderableFromVisualIndex(l.getNearestNotHiddenIndex(e,-1))&&e>n&&u.push(...c.slice(n+1))}return(0,s.arrayEach)(u,e=>{t.push(this.toVisualColumn(e))}),0===t.length}}},o(85639),o(73741),o(7307);var s=o(13351),i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,r,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(i=t?s:o){if(i.has(e))return i.get(e);i.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(n,t,r):n[t]=e[t]);return n}(e,t)}(o(16372))},7378:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(44531);t.registerRootComparator=s.registerRootComparator,t.getRootComparator=s.getRootComparator,t.getCompareFunctionFactory=s.getCompareFunctionFactory;var i=o(53318);t.FIRST_AFTER_SECOND=i.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=i.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=i.DO_NOT_SWAP,t.sort=i.sort},7678:(e,t,o)=>{"use strict";var s=o(76277),i=o(25225),r=o(77181),n=o(30784),l=o(13794),a=o(82314),h=i("".charAt);s({target:"String",proto:!0,forced:a(function(){return"\ud842"!=="𠮷".at(-2)})},{at:function(e){var t=l(r(this)),o=t.length,s=n(e),i=s>=0?s:o+s;return i<0||i>=o?void 0:h(t,i)}})},8092:(e,t,o)=>{"use strict";var s=o(76277),i=o(64976),r=o(86713),n=o(77618),l=o(74218),a=o(46963),h=o(45556),c=o(63884),u=o(15435),d=o(69498),g=o(8302),f=!g&&!u("map",function(){}),p=!g&&!f&&d("map",TypeError),m=g||f||p,w=a(function(){var e=this.iterator,t=n(i(this.next,e));if(!(this.done=!!t.done))return h(e,this.mapper,[t.value,this.counter++],!0)});s({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){n(this);try{r(e)}catch(e){c(this,"throw",e)}return p?i(p,this,e):new w(l(this),{mapper:e})}})},8302:e=>{"use strict";e.exports=!1},8344:(e,t,o)=>{"use strict";var s=o(60423);t.__esModule=!0;var i=s(o(53726)),r=o(76549),n=s(o(50671)),l=o(12945);l.Hooks.getSingleton().register("persistentStateSave"),l.Hooks.getSingleton().register("persistentStateLoad"),l.Hooks.getSingleton().register("persistentStateReset");const a=t.PLUGIN_KEY="persistentState",h=t.PLUGIN_PRIORITY=0;class c extends r.BasePlugin{constructor(){super(...arguments),(0,i.default)(this,"storage",void 0)}static get PLUGIN_KEY(){return a}static get PLUGIN_PRIORITY(){return h}isEnabled(){return!!this.hot.getSettings()[a]}enablePlugin(){this.enabled||(this.storage||(this.storage=new n.default(this.hot.rootContainer.id||this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",(e,t)=>this.saveValue(e,t)),this.addHook("persistentStateLoad",(e,t)=>this.loadValue(e,t)),this.addHook("persistentStateReset",()=>this.resetValue()),super.enablePlugin())}disablePlugin(){this.storage=void 0,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}loadValue(e,t){t.value=this.storage.loadValue(e)}saveValue(e,t){this.storage.saveValue(e,t)}resetValue(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}destroy(){super.destroy()}}t.PersistentState=c},8625:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var s=o(85296);const i=t.CONDITION_NAME="true";function r()