handsontable 0.0.0-next-9779557-20250113 → 0.0.0-next-211192a-20250114
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.js +6 -8
- package/core.mjs +3 -5
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +87 -53
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +9 -9
- package/dist/handsontable.js +76 -37
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +8 -8
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/comments/comments.js +2 -3
- package/plugins/comments/comments.mjs +2 -3
- package/plugins/mergeCells/mergeCells.js +1 -2
- package/plugins/mergeCells/mergeCells.mjs +1 -2
- package/plugins/nestedHeaders/stateManager/index.js +1 -2
- package/plugins/nestedHeaders/stateManager/index.mjs +1 -2
- package/styles/handsontable.css +2 -2
- package/styles/handsontable.min.css +2 -2
- package/styles/ht-theme-horizon.css +2 -2
- package/styles/ht-theme-horizon.min.css +2 -2
- package/styles/ht-theme-main.css +2 -2
- package/styles/ht-theme-main.min.css +2 -2
package/dist/handsontable.min.js
CHANGED
@@ -25,16 +25,16 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 16/12/2024 (built at
|
28
|
+
* Version: 0.0.0-next-211192a-20250114
|
29
|
+
* Release date: 16/12/2024 (built at 14/01/2025 12:17:56)
|
30
30
|
*/
|
31
31
|
!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 r={96656:(e,t)=>{"use strict";t.__esModule=!0,t.parse=function(e){const t=[[""]];if(0===e.length)return t;let n,i=0,l=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(r))e=e.replace(r,""),i+=1,t[l][i]="";else if(e.match(o))e=e.replace(o,""),i=0,l+=1,t[l]=[""];else{let o="";if(e.startsWith('"')){let t=0,s=!0;for(;s;){const r=e.slice(0,1);'"'===r&&(t+=1),o+=r,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&t%2==0)&&(s=!1)}o=o.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,(e=>new Array(Math.floor(e.length/2)).fill('"').join("")))}else{const t=e.match(s);o=t?t[0]:"",e=e.slice(o.length)}t[l][i]=o}return t},t.stringify=function(e){let t,o,s,r,n,i="";for(t=0,o=e.length;t<o;t+=1){for(r=e[t].length,s=0;s<r;s+=1)s>0&&(i+="\t"),n=e[t][s],"string"==typeof n?n.indexOf("\n")>-1?i+=`"${n.replace(/"/g,'""')}"`:i+=n:i+=null==n?"":n;t!==o-1&&(i+="\n")}return i};const o=/^(\r\n|\n\r|\r|\n)/,s=/^[^\t\r\n]+/,r=/^\t/},74961:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(96656);t.parse=s.parse,t.stringify=s.stringify},95113:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(95913),o(12587);var r=s(o(85707));t.FullyVisibleColumnsCalculationType=class{constructor(){(0,r.default)(this,"count",0),(0,r.default)(this,"startColumn",null),(0,r.default)(this,"endColumn",null),(0,r.default)(this,"startPosition",null),(0,r.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:o,zeroBasedScrollOffset:s,viewportWidth:r,columnWidth:n}=t;o>=s&&o+n<=s+(s>0?r+1:r)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e),this.endColumn=e)}finalize(e){var t;const{scrollOffset:o,viewportWidth:s,inlineStartOffset:r,zeroBasedScrollOffset:n,totalColumns:i,needReverse:l,startPositions:a,columnWidth:h}=e;if(this.endColumn===i-1&&l)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=a[this.endColumn]+h-a[this.startColumn-1];if(e<=s&&(this.startColumn-=1),e>=s)break}this.startPosition=null!==(t=a[this.startColumn])&&void 0!==t?t:null;const c=o+s-(n>0?s+1:s),u=null===this.startColumn?0:e.getColumnWidth(this.startColumn);c<-1*r||o>a.at(-1)||-1*o-s>-1*u?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,i<this.endColumn&&(this.endColumn=i-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},67977:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(95913),o(12587);var r=s(o(85707));t.FullyVisibleRowsCalculationType=class{constructor(){(0,r.default)(this,"count",0),(0,r.default)(this,"startRow",null),(0,r.default)(this,"endRow",null),(0,r.default)(this,"startPosition",null),(0,r.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:o,zeroBasedScrollOffset:s,innerViewportHeight:r,rowHeight:n}=t;o>=s&&o+n<=r&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:o,viewportHeight:s,horizontalScrollbarHeight:r,totalRows:n,needReverse:i,startPositions:l,rowHeight:a}=e;if(this.endRow===n-1&&i)for(this.startRow=this.endRow;this.startRow>0;){const e=l[this.endRow]+a-l[this.startRow-1];if(e<=s-r&&(this.startRow-=1),e>=s-r)break}this.startPosition=null!==(t=l[this.startRow])&&void 0!==t?t:null;o+s-r<(null===this.startRow?0:e.getRowHeight(this.startRow))||o>l.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endRow&&(this.endRow=n-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},69347:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(95913),o(12587);var r=s(o(85707));t.PartiallyVisibleColumnsCalculationType=class{constructor(){(0,r.default)(this,"count",0),(0,r.default)(this,"startColumn",null),(0,r.default)(this,"endColumn",null),(0,r.default)(this,"startPosition",null),(0,r.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:o,zeroBasedScrollOffset:s,viewportWidth:r}=t;o<=s&&(this.startColumn=e);o>=s&&o<=s+(s>0?r+1:r)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e)),this.endColumn=e}finalize(e){var t;const{scrollOffset:o,viewportWidth:s,inlineStartOffset:r,zeroBasedScrollOffset:n,totalColumns:i,needReverse:l,startPositions:a,columnWidth:h}=e;if(this.endColumn===i-1&&l)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=a[this.endColumn]+h-a[this.startColumn-1];if(this.startColumn-=1,e>s)break}this.startPosition=null!==(t=a[this.startColumn])&&void 0!==t?t:null;o+s-(n>0?s+1:s)<-1*r||o>a.at(-1)+h||-1*o-s>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,i<this.endColumn&&(this.endColumn=i-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},5271:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(95913),o(12587);var r=s(o(85707));t.PartiallyVisibleRowsCalculationType=class{constructor(){(0,r.default)(this,"count",0),(0,r.default)(this,"startRow",null),(0,r.default)(this,"endRow",null),(0,r.default)(this,"startPosition",null),(0,r.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:o,zeroBasedScrollOffset:s,innerViewportHeight:r}=t;o<=s&&(this.startRow=e),o>=s&&o<=r&&null===this.startRow&&(this.startRow=e),this.endRow=e}finalize(e){var t;const{scrollOffset:o,viewportHeight:s,horizontalScrollbarHeight:r,totalRows:n,needReverse:i,startPositions:l,rowHeight:a}=e;if(this.endRow===n-1&&i)for(this.startRow=this.endRow;this.startRow>0;){const e=l[this.endRow]+a-l[this.startRow-1];if(this.startRow-=1,e>=s-r)break}this.startPosition=null!==(t=l[this.startRow])&&void 0!==t?t:null;o+s-r<0||o>l.at(-1)+a?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endRow&&(this.endRow=n-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},18349:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.RenderedAllColumnsCalculationType=class{constructor(){(0,r.default)(this,"count",0),(0,r.default)(this,"startColumn",0),(0,r.default)(this,"endColumn",0),(0,r.default)(this,"startPosition",0),(0,r.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:t}=e;this.count=t,this.endColumn=this.count-1}process(){}finalize(){}}},89613:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.RenderedAllRowsCalculationType=class{constructor(){(0,r.default)(this,"count",0),(0,r.default)(this,"startRow",0),(0,r.default)(this,"endRow",0),(0,r.default)(this,"startPosition",0),(0,r.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalRows:t}=e;this.count=t,this.endRow=this.count-1}process(){}finalize(){}}},18180:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(69347);class i extends n.PartiallyVisibleColumnsCalculationType{constructor(){super(...arguments),(0,r.default)(this,"columnStartOffset",0),(0,r.default)(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:o,totalColumns:s,startPositions:r}=e;if(null!==this.startColumn&&"function"==typeof o){const e=this.startColumn,t=this.endColumn;o(this),this.columnStartOffset=e-this.startColumn,this.columnEndOffset=this.endColumn-t}this.startColumn<0&&(this.startColumn=0),this.startPosition=null!==(t=r[this.startColumn])&&void 0!==t?t:null,s<this.endColumn&&(this.endColumn=s-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}t.RenderedColumnsCalculationType=i},36906:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(5271);class i extends n.PartiallyVisibleRowsCalculationType{constructor(){super(...arguments),(0,r.default)(this,"rowStartOffset",0),(0,r.default)(this,"rowEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:o,totalRows:s,startPositions:r}=e;if(null!==this.startRow&&"function"==typeof o){const e=this.startRow,t=this.endRow;o(this),this.rowStartOffset=e-this.startRow,this.rowEndOffset=this.endRow-t}this.startRow<0&&(this.startRow=0),this.startPosition=null!==(t=r[this.startRow])&&void 0!==t?t:null,s<this.endRow&&(this.endRow=s-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}t.RenderedRowsCalculationType=i},14426:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95113);t.FullyVisibleColumnsCalculationType=s.FullyVisibleColumnsCalculationType;var r=o(67977);t.FullyVisibleRowsCalculationType=r.FullyVisibleRowsCalculationType;var n=o(69347);t.PartiallyVisibleColumnsCalculationType=n.PartiallyVisibleColumnsCalculationType;var i=o(5271);t.PartiallyVisibleRowsCalculationType=i.PartiallyVisibleRowsCalculationType;var l=o(18349);t.RenderedAllColumnsCalculationType=l.RenderedAllColumnsCalculationType;var a=o(89613);t.RenderedAllRowsCalculationType=a.RenderedAllRowsCalculationType;var h=o(18180);t.RenderedColumnsCalculationType=h.RenderedColumnsCalculationType;var c=o(36906);t.RenderedRowsCalculationType=c.RenderedRowsCalculationType;var u=o(67623);t.ViewportColumnsCalculator=u.ViewportColumnsCalculator,t.DEFAULT_COLUMN_WIDTH=u.DEFAULT_WIDTH;var d=o(72459);t.ViewportRowsCalculator=d.ViewportRowsCalculator},99163:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(14846),o(69655);var r=s(o(85707));t.ViewportBaseCalculator=class{constructor(e){(0,r.default)(this,"calculationTypes",[]),(0,r.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach((t=>{let[o,s]=t;this.calculationResults.set(o,s),s.initialize(e)}))}_process(e,t){this.calculationTypes.forEach((o=>{let[,s]=o;return s.process(e,t)}))}_finalize(e){this.calculationTypes.forEach((t=>{let[,o]=t;return o.finalize(e)}))}getResultsFor(e){return this.calculationResults.get(e)}}},67623:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(99163);const i=t.DEFAULT_WIDTH=50;class l extends n.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportWidth:o,scrollOffset:s,totalColumns:n,columnWidthFn:i,overrideFn:l,inlineStartOffset:a}=e;super(t),(0,r.default)(this,"viewportWidth",0),(0,r.default)(this,"scrollOffset",0),(0,r.default)(this,"zeroBasedScrollOffset",0),(0,r.default)(this,"totalColumns",0),(0,r.default)(this,"columnWidthFn",null),(0,r.default)(this,"columnWidth",0),(0,r.default)(this,"overrideFn",null),(0,r.default)(this,"inlineStartOffset",0),(0,r.default)(this,"totalCalculatedWidth",0),(0,r.default)(this,"startPositions",[]),(0,r.default)(this,"needReverse",!0),this.viewportWidth=o,this.scrollOffset=s,this.zeroBasedScrollOffset=Math.max(s,0),this.totalColumns=n,this.columnWidthFn=i,this.overrideFn=l,this.inlineStartOffset=a,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalColumns;e++)if(this.columnWidth=this.getColumnWidth(e),this._process(e,this),this.startPositions.push(this.totalCalculatedWidth),this.totalCalculatedWidth+=this.columnWidth,this.totalCalculatedWidth>=this.zeroBasedScrollOffset+this.viewportWidth){this.needReverse=!1;break}this._finalize(this)}getColumnWidth(e){const t=this.columnWidthFn(e);return isNaN(t)?i:t}}t.ViewportColumnsCalculator=l},72459:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(99163);class i extends n.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportHeight:o,scrollOffset:s,totalRows:n,defaultRowHeight:i,rowHeightFn:l,overrideFn:a,horizontalScrollbarHeight:h}=e;super(t),(0,r.default)(this,"viewportHeight",0),(0,r.default)(this,"scrollOffset",0),(0,r.default)(this,"zeroBasedScrollOffset",0),(0,r.default)(this,"totalRows",0),(0,r.default)(this,"rowHeightFn",null),(0,r.default)(this,"rowHeight",0),(0,r.default)(this,"overrideFn",null),(0,r.default)(this,"horizontalScrollbarHeight",0),(0,r.default)(this,"innerViewportHeight",0),(0,r.default)(this,"totalCalculatedHeight",0),(0,r.default)(this,"startPositions",[]),(0,r.default)(this,"needReverse",!0),this.defaultHeight=i,this.viewportHeight=o,this.scrollOffset=s,this.zeroBasedScrollOffset=Math.max(s,0),this.totalRows=n,this.rowHeightFn=l,this.overrideFn=a,this.horizontalScrollbarHeight=null!=h?h:0,this.innerViewportHeight=this.zeroBasedScrollOffset+this.viewportHeight-this.horizontalScrollbarHeight,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalRows;e++)if(this.rowHeight=this.getRowHeight(e),this._process(e,this),this.startPositions.push(this.totalCalculatedHeight),this.totalCalculatedHeight+=this.rowHeight,this.totalCalculatedHeight>=this.innerViewportHeight){this.needReverse=!1;break}this._finalize(this)}getRowHeight(e){const t=this.rowHeightFn(e);return isNaN(t)?this.defaultHeight:t}}t.ViewportRowsCalculator=i},53666:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707));function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function i(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;class c{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,r.default)(this,"row",null),(0,r.default)(this,"col",null),n(this,h,!1),l(h,this,o),void 0!==e&&void 0!==t&&(this.row=e,this.col=t)}isValid(e){const{countRows:t,countCols:o,countRowHeaders:s,countColHeaders:r}={countRows:0,countCols:0,countRowHeaders:0,countColHeaders:0,...e};return!(!Number.isInteger(this.row)||!Number.isInteger(this.col))&&(!(this.row<-r||this.col<-s)&&!(this.row>=t||this.col>=o))}isEqual(e){return e===this||this.row===e.row&&this.col===e.col}isHeader(){return!this.isCell()}isCell(){return this.row>=0&&this.col>=0}isRtl(){return i(h,this)}isSouthEastOf(e){return this.row>=e.row&&(i(h,this)?this.col<=e.col:this.col>=e.col)}isNorthWestOf(e){return this.row<=e.row&&(i(h,this)?this.col>=e.col:this.col<=e.col)}isSouthWestOf(e){return this.row>=e.row&&(i(h,this)?this.col>=e.col:this.col<=e.col)}isNorthEastOf(e){return this.row<=e.row&&(i(h,this)?this.col<=e.col:this.col>=e.col)}normalize(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}assign(e){return Number.isInteger(null==e?void 0:e.row)&&(this.row=e.row),Number.isInteger(null==e?void 0:e.col)&&(this.col=e.col),e instanceof c&&l(h,this,e.isRtl()),this}clone(){return new c(this.row,this.col,i(h,this))}toObject(){return{row:this.row,col:this.col}}}t.default=c},35175:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=s(o(53666));function i(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function l(e,t){return e.get(a(e,t))}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;class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var n,l,c;(0,r.default)(this,"highlight",null),(0,r.default)(this,"from",null),(0,r.default)(this,"to",null),i(this,h,!1),this.highlight=e.clone(),this.from=t.clone(),this.to=o.clone(),l=this,c=s,(n=h).set(a(n,l),c)}setHighlight(e){return this.highlight=e.clone(),this}setFrom(e){return this.from=e.clone(),this}setTo(e){return this.to=e.clone(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return!(!this.from.isHeader()||!this.to.isHeader())||(this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0)}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:t,col:o}=e,s=this.getOuterTopStartCorner(),r=this.getOuterBottomEndCorner();return s.row<=t&&r.row>=t&&s.col<=o&&r.col>=o}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const t=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>o.row||e.col>o.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(o.row,e.row),Math.max(o.col,e.col)),!0)}expandByRange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.includesRange(e)||!this.overlaps(e))return!1;const o=this.getOuterTopStartCorner(),s=this.getOuterBottomEndCorner(),r=this.getDirection(),n=e.getOuterTopStartCorner(),i=e.getOuterBottomEndCorner(),l=Math.min(o.row,n.row),a=Math.min(o.col,n.col),h=Math.max(s.row,i.row),c=Math.max(s.col,i.col),u=this._createCellCoords(l,a),d=this._createCellCoords(h,c);return this.from=u,this.to=d,this.setDirection(r),t&&(this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally()),!0}getDirection(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()]}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return l(h,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return l(h,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return l(h,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return l(h,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return l(h,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return l(h,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return l(h,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return l(h,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){return e instanceof n.default&&(e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0)}getBordersSharedWith(e){if(!this.includesRange(e))return[];const t=Math.min(this.from.row,this.to.row),o=Math.max(this.from.row,this.to.row),s=Math.min(this.from.col,this.to.col),r=Math.max(this.from.col,this.to.col),n=Math.min(e.from.row,e.to.row),i=Math.max(e.from.row,e.to.row),a=Math.min(e.from.col,e.to.col),c=Math.max(e.from.col,e.to.col),u=[];return t===n&&u.push("top"),r===c&&u.push(l(h,this)?"left":"right"),o===i&&u.push("bottom"),s===a&&u.push(l(h,this)?"right":"left"),u}getInner(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),o=[];for(let s=e.row;s<=t.row;s++)for(let r=e.col;r<=t.col;r++)this.from.row===s&&this.from.col===r||this.to.row===s&&this.to.col===r||o.push(this._createCellCoords(s,r));return o}getAll(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),o=[];for(let s=e.row;s<=t.row;s++)for(let r=e.col;r<=t.col;r++)e.row===s&&e.col===r?o.push(e):t.row===s&&t.col===r?o.push(t):o.push(this._createCellCoords(s,r));return o}forAll(e){const t=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();for(let s=t.row;s<=o.row;s++)for(let r=t.col;r<=o.col;r++){if(!1===e(s,r))return}}clone(){return new c(this.highlight,this.from,this.to,l(h,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,t){return new n.default(e,t,l(h,this))}}t.default=c},3885:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(94916),i=o(83414),l=s(o(12370)),a=s(o(82276)),h=s(o(53666)),c=s(o(35175));t.default=class{get eventManager(){return new l.default(this)}constructor(e,t){(0,r.default)(this,"wtTable",void 0),(0,r.default)(this,"wtScroll",void 0),(0,r.default)(this,"wtViewport",void 0),(0,r.default)(this,"wtOverlays",void 0),(0,r.default)(this,"selectionManager",void 0),(0,r.default)(this,"wtEvent",void 0),(0,r.default)(this,"guid",`wt_${(0,i.randomString)()}`),(0,r.default)(this,"drawInterrupted",!1),(0,r.default)(this,"drawn",!1),(0,r.default)(this,"activeOverlayName","master"),(0,r.default)(this,"domBindings",void 0),(0,r.default)(this,"wtSettings",void 0),this.domBindings={rootTable:e,rootDocument:e.ownerDocument,rootWindow:e.ownerDocument.defaultView},this.wtSettings=t,this.wtScroll=new a.default(this.createScrollDao())}findOriginalHeaders(){const e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(let t=0,o=this.wtTable.THEAD.childNodes[0].childNodes.length;t<o;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,o){(0,n.fastInnerText)(o,e[t])}])}}createCellCoords(e,t){return new h.default(e,t,this.wtSettings.getSetting("rtlMode"))}createCellRange(e,t,o){return new c.default(e,t,o,this.wtSettings.getSetting("rtlMode"))}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,this.wtTable.isVisible()?this.wtTable.draw(e):this.drawInterrupted=!0,this}getCell(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);const t=this.wtSettings.getSetting("totalRows"),o=this.wtSettings.getSetting("fixedRowsTop"),s=this.wtSettings.getSetting("fixedRowsBottom"),r=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<o&&e.col<r)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<o)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<r&&e.row>=t-s){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<r)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-s&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}scrollViewport(e,t,o){return this.wtScroll.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this.wtScroll.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this.wtScroll.scrollViewportVertically(e,t)}getViewport(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}destroy(){this.wtOverlays.destroy(),this.wtEvent.destroy()}createScrollDao(){const e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}getTableDao(){const e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selectionManager(){return e.selectionManager},get stylesHandler(){return e.stylesHandler},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get startColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get endColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get startRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get endRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count},get columnHeaders(){return e.wtSettings.getSetting("columnHeaders")},get rowHeaders(){return e.wtSettings.getSetting("rowHeaders")}}}}},98900:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=s(o(87597)),i=s(o(3885));class l extends i.default{constructor(e,t,o){super(e,t),(0,r.default)(this,"cloneSource",void 0),(0,r.default)(this,"cloneOverlay",void 0);const s=this.wtSettings.getSetting("facade",this);this.cloneSource=o.source,this.cloneOverlay=o.overlay,this.stylesHandler=o.stylesHandler,this.wtTable=this.cloneOverlay.createTable(this.getTableDao(),s,this.domBindings,this.wtSettings),this.wtViewport=o.viewport,this.selectionManager=o.selectionManager,this.wtEvent=new n.default(s,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager,o.event),this.findOriginalHeaders()}}t.default=l},31278:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(87597)),n=s(o(7052)),i=o(19938),l=s(o(5352)),a=s(o(69910)),h=s(o(4255)),c=s(o(3885)),u=o(47491),d=o(95016),g=o(94916),f=o(47873);class p extends c.default{constructor(e,t){super(e,new l.default(t)),this.stylesHandler=new f.StylesHandler(this.domBindings);const o=this.wtSettings.getSetting("facade",this);this.wtTable=new a.default(this.getTableDao(),o,this.domBindings,this.wtSettings),this.wtViewport=new h.default(this.getViewportDao(),this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.selectionManager=new u.SelectionManager(this.wtSettings.getSetting("selections")),this.wtEvent=new r.default(o,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager),this.wtOverlays=new n.default(this,o,this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.exportSettingsAsClassNames(),this.findOriginalHeaders()}exportSettingsAsClassNames(){const e=[],t=[];(0,d.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},((o,s)=>{this.wtSettings.getSetting(s).length&&t.push(o),e.push(o)})),(0,g.removeClass)(this.wtTable.wtRootElement.parentNode,e),(0,g.addClass)(this.wtTable.wtRootElement.parentNode,t)}getOverlayByName(e){var t;if(!i.CLONE_TYPES.includes(e))return null;const o=e.replace(/_([a-z])/g,(e=>e[1].toUpperCase()));return null!==(t=this.wtOverlays[`${o}Overlay`])&&void 0!==t?t:null}getViewportDao(){const e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}t.default=p},87597:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834);var s=o(94916),r=o(77515),n=o(37725),i=o(99275),l=o(95768);function a(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}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 WeakMap,v=new WeakMap,y=new WeakMap,E=new WeakMap;t.default=class{constructor(e,t,o,s,r,n){let i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;a(this,d,void 0),a(this,g,void 0),a(this,f,void 0),a(this,p,void 0),a(this,m,void 0),a(this,w,void 0),a(this,C,void 0),a(this,v,void 0),a(this,y,[null,null]),a(this,E,[null,null]),c(d,this,o),c(g,this,t),c(f,this,r),c(p,this,n),c(m,this,i),c(w,this,s),c(C,this,e),this.registerEvents()}registerEvents(){h(w,this).addEventListener(h(f,this).holder,"contextmenu",(e=>this.onContextMenu(e))),h(w,this).addEventListener(h(f,this).TABLE,"mouseover",(e=>this.onMouseOver(e))),h(w,this).addEventListener(h(f,this).TABLE,"mouseout",(e=>this.onMouseOut(e)));const e=()=>{h(w,this).addEventListener(h(f,this).holder,"touchstart",(e=>this.onTouchStart(e))),h(w,this).addEventListener(h(f,this).holder,"touchend",(e=>this.onTouchEnd(e))),this.momentumScrolling||(this.momentumScrolling={}),h(w,this).addEventListener(h(f,this).holder,"scroll",(()=>{clearTimeout(this.momentumScrolling._timeout),this.momentumScrolling.ongoing||h(d,this).getSetting("onBeforeTouchScroll"),this.momentumScrolling.ongoing=!0,this.momentumScrolling._timeout=setTimeout((()=>{this.touchApplied||(this.momentumScrolling.ongoing=!1,h(d,this).getSetting("onAfterMomentumScroll"))}),200)}))},t=()=>{h(w,this).addEventListener(h(f,this).holder,"mouseup",(e=>this.onMouseUp(e))),h(w,this).addEventListener(h(f,this).holder,"mousedown",(e=>this.onMouseDown(e)))};(0,i.isMobileBrowser)()?e():((0,n.isTouchSupported)()&&e(),t())}selectedCellWasTouched(e){const t=this.parentCell(e).coords;if(h(v,this)&&t){const[e,o]=[t.row,h(v,this).from.row],[s,r]=[t.col,h(v,this).from.col];return e===o&&s===r}return!1}parentCell(e){const t={},o=h(f,this).TABLE,r=(0,s.closestDown)(e,["TD","TH"],o);return r?(t.coords=h(f,this).getCoords(r),t.TD=r):(0,s.hasClass)(e,"wtBorder")&&(0,s.hasClass)(e,"current")?(t.coords=h(p,this).getFocusSelection().cellRange.highlight,t.TD=h(f,this).getCell(t.coords)):(0,s.hasClass)(e,"wtBorder")&&(0,s.hasClass)(e,"area")&&h(p,this).getAreaSelection().cellRange&&(t.coords=h(p,this).getAreaSelection().cellRange.to,t.TD=h(f,this).getCell(t.coords)),t}onMouseDown(e){const t=h(g,this).rootDocument.activeElement,o=(0,r.partial)(s.getParent,e.target),n=e.target;if(!["TD","TH"].includes(t.nodeName)&&(n===t||o(0)===t||o(1)===t))return;const i=this.parentCell(n);(0,s.hasClass)(n,"corner")?h(d,this).getSetting("onCellCornerMouseDown",e,n):i.TD&&h(d,this).has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,i.coords,i.TD),(0===e.button||this.touchApplied)&&i.TD&&(h(E,this)[0]=i.TD,clearTimeout(h(y,this)[0]),h(y,this)[0]=setTimeout((()=>{h(E,this)[0]=null}),1e3))}onContextMenu(e){if(h(d,this).has("onCellContextMenu")){const t=this.parentCell(e.target);t.TD&&this.callListener("onCellContextMenu",e,t.coords,t.TD)}}onMouseOver(e){if(!h(d,this).has("onCellMouseOver"))return;const t=h(f,this).TABLE,o=(0,s.closestDown)(e.target,["TD","TH"],t),r=h(m,this)||this;o&&o!==r.lastMouseOver&&(0,s.isChildOf)(o,t)&&(r.lastMouseOver=o,this.callListener("onCellMouseOver",e,h(f,this).getCoords(o),o))}onMouseOut(e){if(!h(d,this).has("onCellMouseOut"))return;const t=h(f,this).TABLE,o=(0,s.closestDown)(e.target,["TD","TH"],t),r=(0,s.closestDown)(e.relatedTarget,["TD","TH"],t),n=h(m,this)||this;o&&o!==r&&(0,s.isChildOf)(o,t)&&(this.callListener("onCellMouseOut",e,h(f,this).getCoords(o),o),null===r&&(n.lastMouseOver=null))}onMouseUp(e){const t=this.parentCell(e.target);t.TD&&h(d,this).has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,t.coords,t.TD),(0===e.button||this.touchApplied)&&(t.TD===h(E,this)[0]&&t.TD===h(E,this)[1]?((0,s.hasClass)(e.target,"corner")?this.callListener("onCellCornerDblClick",e,t.coords,t.TD):this.callListener("onCellDblClick",e,t.coords,t.TD),h(E,this)[0]=null,h(E,this)[1]=null):t.TD===h(E,this)[0]&&(h(E,this)[1]=t.TD,clearTimeout(h(y,this)[1]),h(y,this)[1]=setTimeout((()=>{h(E,this)[1]=null}),500)))}onTouchStart(e){c(v,this,h(p,this).getFocusSelection().cellRange),this.touchApplied=!0,this.onMouseDown(e)}onTouchEnd(e){var t;const o=e.target,s=null===(t=this.parentCell(o))||void 0===t?void 0:t.coords,r=(0,l.isDefined)(s)&&s.row>=0&&s.col>=0;if(e.cancelable&&r&&h(d,this).getSetting("isDataViewInstance")){const t=["A","BUTTON","INPUT"];(0,i.isIOS)()&&((0,i.isChromeWebKit)()||(0,i.isFirefoxWebKit)())&&this.selectedCellWasTouched(o)&&!t.includes(o.tagName)?e.preventDefault():this.selectedCellWasTouched(o)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}callListener(e,t,o,s){const r=h(d,this).getSettingPure(e);r&&r(t,o,s,h(C,this).call(this))}destroy(){clearTimeout(h(y,this)[0]),clearTimeout(h(y,this)[1]),h(w,this).destroy()}}},41009:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(31278)),n=s(o(3885));class i{constructor(e){e instanceof n.default?this._wot=e:this._initFromSettings(e)}_initFromSettings(e){e.facade=e=>{const t=new i(e);return()=>t},this._wot=new r.default(e.table,e)}get guid(){return this._wot.guid}get rootDocument(){return this._wot.domBindings.rootDocument}get rootWindow(){return this._wot.domBindings.rootWindow}get wtSettings(){return this._wot.wtSettings}get cloneSource(){return this._wot.cloneSource}get cloneOverlay(){return this._wot.cloneOverlay}get selectionManager(){return this._wot.selectionManager}get wtViewport(){return this._wot.wtViewport}get wtOverlays(){return this._wot.wtOverlays}get wtTable(){return this._wot.wtTable}get wtEvent(){return this._wot.wtEvent}get wtScroll(){return this._wot.wtScroll}get drawn(){return this._wot.drawn}set drawn(e){this._wot.drawn=e}get activeOverlayName(){return this._wot.activeOverlayName}get drawInterrupted(){return this._wot.drawInterrupted}set drawInterrupted(e){this._wot.drawInterrupted=e}get lastMouseOver(){return this._wot.lastMouseOver}set lastMouseOver(e){this._wot.lastMouseOver=e}get momentumScrolling(){return this._wot.momentumScrolling}set momentumScrolling(e){this._wot.momentumScrolling=e}get touchApplied(){return this._wot.touchApplied}set touchApplied(e){this._wot.touchApplied=e}get domBindings(){return this._wot.domBindings}get eventListeners(){return this._wot.eventListeners}set eventListeners(e){this._wot.eventListeners=e}get eventManager(){return this._wot.eventManager}get stylesHandler(){return this._wot.stylesHandler}createCellCoords(e,t){return this._wot.createCellCoords(e,t)}createCellRange(e,t,o){return this._wot.createCellRange(e,t,o)}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}getCell(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}scrollViewport(e,t,o){return this._wot.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this._wot.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wot.scrollViewportVertically(e,t)}getViewport(){return this._wot.getViewport()}getOverlayName(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}getOverlayByName(e){return this._wot.getOverlayByName(e)}exportSettingsAsClassNames(){return this._wot.exportSettingsAsClassNames()}update(e,t){return this._wot.wtSettings.update(e,t),this}getSetting(e,t,o,s,r){return this._wot.wtSettings.getSetting(e,t,o,s,r)}hasSetting(e){return this._wot.wtSettings.hasSetting(e)}destroy(){this._wot.destroy()}}t.default=i},18316:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.default=class{constructor(e,t,o){(0,r.default)(this,"offset",void 0),(0,r.default)(this,"total",void 0),(0,r.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))}}},25800:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.default=class{constructor(e,t,o){(0,r.default)(this,"offset",void 0),(0,r.default)(this,"total",void 0),(0,r.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}visibleColHeadedRowToSourceRow(e){return this.renderedToSource(this.offsettedTH(e))}sourceRowToVisibleColHeadedRow(e){return this.unOffsettedTH(this.sourceToRendered(e))}}},7749:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=o(14426);t.ViewportColumnsCalculator=r.ViewportColumnsCalculator,t.ViewportRowsCalculator=r.ViewportRowsCalculator,t.DEFAULT_COLUMN_WIDTH=r.DEFAULT_COLUMN_WIDTH;var n=s(o(53666));t.CellCoords=n.default;var i=s(o(35175));t.CellRange=i.default;var l=s(o(41009));t.default=l.default,t.Core=l.default;var a=o(39304);t.Selection=a.Selection,t.HIGHLIGHT_ACTIVE_HEADER_TYPE=a.ACTIVE_HEADER_TYPE,t.HIGHLIGHT_AREA_TYPE=a.AREA_TYPE,t.HIGHLIGHT_FOCUS_TYPE=a.FOCUS_TYPE,t.HIGHLIGHT_FILL_TYPE=a.FILL_TYPE,t.HIGHLIGHT_HEADER_TYPE=a.HEADER_TYPE,t.HIGHLIGHT_ROW_TYPE=a.ROW_TYPE,t.HIGHLIGHT_COLUMN_TYPE=a.COLUMN_TYPE,t.HIGHLIGHT_CUSTOM_SELECTION_TYPE=a.CUSTOM_SELECTION_TYPE;var h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=g(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(39597));t.Renderer=h;var c=o(95397);t.OrderView=c.OrderView,t.SharedOrderView=c.SharedOrderView;var u=o(87300);t.NodesPool=u.NodesPool;var d=o(12370);function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(g=function(e){return e?o:t})(e)}t.getListenersCounter=d.getListenersCounter},63074:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(14846),o(69655);var r=s(o(85707)),n=o(94916),i=o(95016),l=o(59350),a=o(72787),h=s(o(98900)),c=o(45551);t.Overlay=class{constructor(e,t,o,s,l){(0,r.default)(this,"wtSettings",null),(0,i.defineGetter)(this,"wot",e,{writable:!1}),this.domBindings=l,this.facadeGetter=t,this.wtSettings=s;const{TABLE:a,hider:h,spreader:c,holder:u,wtRootElement:d}=this.wot.wtTable;this.instance=this.wot,this.type=o,this.mainTableScrollableElement=null,this.TABLE=a,this.hider=h,this.spreader=c,this.holder=u,this.wtRootElement=d,this.trimmingContainer=(0,n.getTrimmingContainer)(this.hider.parentNode.parentNode),this.needFullRender=this.shouldBeRendered(),this.clone=this.makeClone()}hasRenderingStateChanged(){return this.needFullRender!==this.shouldBeRendered()}updateStateOfRendering(e){"before"===e&&this.shouldBeRendered()?this.needFullRender=!0:"after"!==e||this.shouldBeRendered()||(this.needFullRender=!1)}shouldBeRendered(){return!0}updateTrimmingContainer(){this.trimmingContainer=(0,n.getTrimmingContainer)(this.hider.parentNode.parentNode)}updateMainScrollableElement(){const{wtTable:e}=this.wot,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,n.getScrollableElement)(e.TABLE)}getRelativeCellPosition(e,t,o){if(!1===this.clone.wtTable.holder.contains(e))return void(0,l.warn)(`The provided element is not a child of the ${this.type} overlay`);const s=this.mainTableScrollableElement===this.domBindings.rootWindow,r=o<this.wtSettings.getSetting("fixedColumnsStart"),n=t<this.wtSettings.getSetting("fixedRowsTop"),i=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),a=this.clone.wtTable.spreader,h={start:this.getRelativeStartPosition(a),top:a.offsetTop},c={start:this.getRelativeStartPosition(e),top:e.offsetTop};let u=null;return u=s?this.getRelativeCellPositionWithinWindow(n,r,c,h):this.getRelativeCellPositionWithinHolder(n,i,r,c,h),u}getRelativeStartPosition(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}getRelativeCellPositionWithinWindow(e,t,o,s){const r=this.wot.wtTable.wtRootElement.getBoundingClientRect();let i=0,l=0;if(t){let e=r.left;this.isRtl()&&(e=this.domBindings.rootWindow.innerWidth-(r.left+r.width+(0,n.getScrollbarWidth)())),i=e<=0?-1*e:0}else i=s.start;if(e){l=this.clone.wtTable.TABLE.getBoundingClientRect().top-r.top}else l=s.top;return{start:o.start+i,top:o.top+l}}getRelativeCellPositionWithinHolder(e,t,o,s,r){const n=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),i=this.wot.wtOverlays.topOverlay.getScrollPosition();let l=0,a=0;if(o||(l=n-r.start),t){const e=this.wot.wtTable.wtRootElement.getBoundingClientRect();a=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+e.top}else e||(a=i-r.top);return{start:s.start-l,top:s.top-a}}makeClone(){if(-1===a.CLONE_TYPES.indexOf(this.type))throw new Error(`Clone type "${this.type}" is not supported.`);const{wtTable:e,wtSettings:t}=this.wot,{rootDocument:o,rootWindow:s}=this.domBindings,r=o.createElement("div"),i=o.createElement("table"),l=e.wtRootElement.parentNode;r.className=`${a.CLONE_CLASS_NAMES.get(this.type)} handsontable`,r.setAttribute("dir",this.isRtl()?"rtl":"ltr"),r.style.position="absolute",r.style.top=0,r.style.overflow="visible",this.isRtl()?r.style.right=0:r.style.left=0,t.getSetting("ariaTags")&&(0,n.setAttribute)(r,[(0,c.A11Y_PRESENTATION)()]),i.className=e.TABLE.className;e.TABLE.getAttribute("role")&&i.setAttribute("role",e.TABLE.getAttribute("role")),r.appendChild(i),l.appendChild(r);const u=this.wtSettings.getSetting("preventOverflow");return!0===u||"horizontal"===u&&this.type===a.CLONE_TOP||"vertical"===u&&this.type===a.CLONE_INLINE_START?this.mainTableScrollableElement=s:"hidden"===s.getComputedStyle(l).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=(0,n.getScrollableElement)(e.TABLE),new h.default(i,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selectionManager:this.wot.selectionManager,stylesHandler:this.wot.stylesHandler})}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.needFullRender){const t=this.clone.cloneSource;t.activeOverlayName=this.clone.wtTable.name,this.clone.draw(e),t.activeOverlayName="master"}}reset(){const e=this.clone.wtTable.holder,t=this.clone.wtTable.hider;[e.style,t.style,e.parentNode.style].forEach((e=>{e.width="",e.height=""}))}isRtl(){return this.wtSettings.getSetting("rtlMode")}destroy(){this.clone.eventManager.destroy()}}},45323:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(94916),i=s(o(12207)),l=o(63074),a=o(72787);class h extends l.Overlay{constructor(e,t,o,s){super(e,t,a.CLONE_BOTTOM,o,s),(0,r.default)(this,"cachedFixedRowsBottom",-1),this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom")}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new i.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const{rootWindow:e}=this.domBindings,t=this.clone.wtTable.holder.parentNode;t.style.top="";let o=0;const s=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||s&&"vertical"===s?(o=this.getScrollPosition(),this.repositionOverlay()):(o=this.getOverlayOffset(),t.style.bottom=`${o}px`);const r=this.adjustHeaderBordersPosition(o);return this.adjustElementsSize(),r}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o}=this.domBindings,s=this.clone.wtTable.holder.parentNode;let r=0;t.hasVerticalScroll()||(r+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(r+=(0,n.getScrollbarWidth)(o)),s.style.bottom=`${r}px`}setScrollPosition(e){const{rootWindow:t}=this.domBindings;let o=!1;return this.mainTableScrollableElement===t?(t.scrollTo((0,n.getWindowScrollLeft)(t),e),o=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,o=!0),o}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const{wtTable:o,stylesHandler:s}=this.wot,r=s.getDefaultRowHeight();let n=e,i=0;for(;n<t;){const e=o.getRowHeight(n);i+=void 0===e?r:e,n+=1}return i}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o,rootWindow:s}=this.domBindings,r=this.clone.wtTable.holder.parentNode.style,i=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==s||"horizontal"===i){let s=t.getWorkspaceWidth();t.hasVerticalScroll()&&(s-=(0,n.getScrollbarWidth)(o)),s=Math.min(s,e.wtRootElement.scrollWidth),r.width=`${s}px`}else r.width="";this.clone.wtTable.holder.style.width=r.width;let l=(0,n.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(l=0),r.height=`${l}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}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){let o=this.getTableParentOffset();const s=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder;let r=0;t&&s.offsetHeight!==s.clientHeight&&(r=(0,n.getScrollbarWidth)(this.domBindings.rootDocument)),t?(o+=this.sumCellSizes(0,e+1),o-=this.wot.wtViewport.getViewportHeight(),o+=1):o+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),o+=r,this.setScrollPosition(o)}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(),t=e-this.clone.wtTable.getTotalHeight(),s=this.domBindings.rootDocument.documentElement.clientHeight;o=Math.max(this.getTableParentOffset()-this.getScrollPosition()-s+e,0),o>t&&(o=0)}return o}adjustHeaderBordersPosition(e){const t=this.wtSettings.getSetting("fixedRowsBottom"),o=this.cachedFixedRowsBottom!==t,s=this.wtSettings.getSetting("columnHeaders");let r=!1;if((o||0===t)&&s.length>0){const t=this.wot.wtTable.holder.parentNode,o=(0,n.hasClass)(t,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,n.addClass)(t,"innerBorderBottom"),r=!o):((0,n.removeClass)(t,"innerBorderBottom"),r=o)}return r}}t.BottomOverlay=h},3813:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=o(94916),n=s(o(89353)),i=o(63074),l=o(72787);class a extends i.Overlay{constructor(e,t,o,s,r,n){super(e,t,l.CLONE_BOTTOM_INLINE_START_CORNER,o,s),this.bottomOverlay=r,this.inlineStartOverlay=n}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new n.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wot:e}=this;if(this.updateTrimmingContainer(),!e.wtTable.holder.parentNode)return!1;const t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===this.domBindings.rootWindow){const e=this.inlineStartOverlay.getOverlayOffset(),o=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]=`${e}px`,t.style.bottom=`${o}px`}else(0,r.resetCssTransform)(t),this.repositionOverlay();let o=(0,r.outerHeight)(this.clone.wtTable.TABLE);const s=(0,r.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(o=0),t.style.height=`${o}px`,t.style.width=`${s}px`,!1}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o}=this.domBindings,s=this.clone.wtTable.holder.parentNode;let n=0;t.hasVerticalScroll()||(n+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(n+=(0,r.getScrollbarWidth)(o)),s.style.bottom=`${n}px`}}t.BottomInlineStartCornerOverlay=a},72787:(e,t)=>{"use strict";t.__esModule=!0;const o=t.CLONE_TOP="top",s=t.CLONE_BOTTOM="bottom",r=t.CLONE_INLINE_START="inline_start",n=t.CLONE_TOP_INLINE_START_CORNER="top_inline_start_corner",i=t.CLONE_BOTTOM_INLINE_START_CORNER="bottom_inline_start_corner";t.CLONE_TYPES=[o,s,r,n,i],t.CLONE_CLASS_NAMES=new Map([[o,`ht_clone_${o}`],[s,`ht_clone_${s}`],[r,`ht_clone_${r} ht_clone_left`],[n,`ht_clone_${n} ht_clone_top_left_corner`],[i,`ht_clone_${i} ht_clone_bottom_left_corner`]])},19938:(e,t,o)=>{"use strict";o(14846),o(69655),t.__esModule=!0;var s={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0},r=o(3813);t.BottomInlineStartCornerOverlay=r.BottomInlineStartCornerOverlay;var n=o(45323);t.BottomOverlay=n.BottomOverlay;var i=o(71197);t.InlineStartOverlay=i.InlineStartOverlay;var l=o(63074);t.Overlay=l.Overlay;var a=o(52895);t.TopInlineStartCornerOverlay=a.TopInlineStartCornerOverlay;var h=o(29253);t.TopOverlay=h.TopOverlay;var c=o(72787);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}))},71197:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=o(94916),n=s(o(83281)),i=o(63074),l=o(39304),a=o(72787);class h extends i.Overlay{constructor(e,t,o,s){super(e,t,a.CLONE_INLINE_START,o,s)}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new n.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wtTable:e}=this.wot;if(!this.needFullRender||!this.shouldBeRendered()||!e.holder.parentNode)return!1;const{rootWindow:t}=this.domBindings,o=this.clone.wtTable.holder.parentNode,s=this.wtSettings.getSetting("preventOverflow");let n=0;this.trimmingContainer!==t||s&&"horizontal"===s?(n=this.getScrollPosition(),(0,r.resetCssTransform)(o)):(n=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,r.setOverlayPosition)(o,`${n}px`,"0px"));const i=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),i}setScrollPosition(e){const{rootWindow:t}=this.domBindings;let o=!1;return this.isRtl()&&(e=-e),this.mainTableScrollableElement===t&&t.scrollX!==e?(t.scrollTo(e,(0,r.getWindowScrollTop)(t)),o=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,o=!0),o}onScroll(){this.wtSettings.getSetting("onScrollVertically")}sumCellSizes(e,t){const o=this.wtSettings.getSetting("defaultColumnWidth");let s=e,r=0;for(;s<t;)r+=this.wot.wtTable.getColumnWidth(s)||o,s+=1;return r}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o,rootWindow:s}=this.domBindings,n=this.clone.wtTable.holder.parentNode.style,i=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==s||"vertical"===i){let s=t.getWorkspaceHeight();t.hasHorizontalScroll()&&(s-=(0,r.getScrollbarWidth)(o)),s=Math.min(s,e.wtRootElement.scrollHeight),n.height=`${s}px`}else n.height="";this.clone.wtTable.holder.style.height=n.height;const l=(0,r.outerWidth)(this.clone.wtTable.TABLE);n.width=`${l}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,l.getCornerStyle)(this.wot),o=this.wot.selectionManager.getFocusSelection()?parseInt(t.width,10)/2:0;this.clone.wtTable.hider.style.height=this.hider.style.height,e.style.height=e.parentNode.style.height,e.style.width=`${parseInt(e.parentNode.style.width,10)+o}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`:this.clone.wtTable.spreader.style.top=""}scrollTo(e,t){const{wtSettings:o}=this,s=o.getSetting("rowHeaders"),n=o.getSetting("fixedColumnsStart"),i=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,l=0===n&&s.length>0&&!(0,r.hasClass)(i.parentNode,"innerBorderInlineStart")?1:0;let a=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1)}return t&&i.offsetWidth!==i.clientWidth&&(h=(0,r.getScrollbarWidth)(this.domBindings.rootDocument)),t?(a+=this.sumCellSizes(0,e+1),a-=this.wot.wtViewport.getViewportWidth(),a+=l):a+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),a+=h,(0,r.getMaximumScrollLeft)(this.mainTableScrollableElement)===a-l&&l>0&&this.wot.wtOverlays.expandHiderHorizontallyBy(l),this.setScrollPosition(a)}getTableParentOffset(){let e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}getScrollPosition(){return Math.abs((0,r.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let o=0;if(this.trimmingContainer===e&&(!t||"horizontal"!==t)){o=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0);o>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(o=0)}return o}adjustHeaderBordersPosition(e){const{wtSettings:t}=this,o=this.wot.wtTable.holder.parentNode,s=t.getSetting("rowHeaders"),n=t.getSetting("fixedColumnsStart"),i=t.getSetting("totalRows"),l="vertical"===t.getSetting("preventOverflow");i?(0,r.removeClass)(o,"emptyRows"):(0,r.addClass)(o,"emptyRows");let a=!1;if(!l)if(n&&!s.length)(0,r.addClass)(o,"innerBorderLeft innerBorderInlineStart");else if(!n&&s.length){const t=(0,r.hasClass)(o,"innerBorderInlineStart");e?((0,r.addClass)(o,"innerBorderLeft innerBorderInlineStart"),a=!t):((0,r.removeClass)(o,"innerBorderLeft innerBorderInlineStart"),a=t)}return a}}t.InlineStartOverlay=h},29253:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(94916),i=s(o(39001)),l=o(63074),a=o(39304),h=o(72787);class c extends l.Overlay{constructor(e,t,o,s){super(e,t,h.CLONE_TOP,o,s),(0,r.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 i.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode,{rootWindow:t}=this.domBindings,o=this.wtSettings.getSetting("preventOverflow");let s=0,r=!1;if(this.trimmingContainer!==t||o&&"vertical"===o)s=this.getScrollPosition(),(0,n.resetCssTransform)(e);else{const{wtTable:t}=this.wot,o=t.hider.getBoundingClientRect();r=Math.ceil(o.bottom)===e.offsetHeight,s=this.getOverlayOffset(),(0,n.setOverlayPosition)(e,"0px",`${s}px`)}const i=this.adjustHeaderBordersPosition(s,r);return this.adjustElementsSize(),i}setScrollPosition(e){const t=this.domBindings.rootWindow;let o=!1;return this.mainTableScrollableElement===t&&t.scrollY!==e?(t.scrollTo((0,n.getWindowScrollLeft)(t),e),o=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,o=!0),o}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const o=this.wot.stylesHandler.getDefaultRowHeight();let s=e,r=0;for(;s<t;){const e=this.wot.wtTable.getRowHeight(s);r+=void 0===e?o:e,s+=1}return r}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o,rootWindow:s}=this.domBindings,r=this.clone.wtTable.holder.parentNode.style,i=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==s||"horizontal"===i){let s=t.getWorkspaceWidth();t.hasVerticalScroll()&&(s-=(0,n.getScrollbarWidth)(o)),s=Math.min(s,e.wtRootElement.scrollWidth),r.width=`${s}px`}else r.width="";this.clone.wtTable.holder.style.width=r.width;let l=(0,n.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(l=0),r.height=`${l}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,a.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:s}=this,r=(o.cloneSource?o.cloneSource:o).wtTable.holder,i=s.getSetting("columnHeaders"),l=0===s.getSetting("fixedRowsTop")&&i.length>0&&!(0,n.hasClass)(r.parentNode,"innerBorderTop")?1:0;let a=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1)}if(t&&r.offsetHeight!==r.clientHeight&&(h=(0,n.getScrollbarWidth)(this.domBindings.rootDocument)),t){const t=s.getSetting("fixedRowsBottom"),r=s.getSetting("totalRows");a+=this.sumCellSizes(0,e+1),a-=o.wtViewport.getViewportHeight()-this.sumCellSizes(r-t,r),a+=1,a+=l}else a+=this.sumCellSizes(s.getSetting("fixedRowsTop"),e);return a+=h,(0,n.getMaximumScrollTop)(this.mainTableScrollableElement)===a-l&&l>0&&this.wot.wtOverlays.expandHiderVerticallyBy(l),this.setScrollPosition(a)}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,s=this.wot.wtTable.holder.parentNode,r=o.getSetting("totalColumns"),i="horizontal"===o.getSetting("preventOverflow");r?(0,n.removeClass)(s,"emptyColumns"):(0,n.addClass)(s,"emptyColumns");let l=!1;if(!t&&!i){const t=o.getSetting("fixedRowsTop"),r=this.cachedFixedRowsTop!==t,i=o.getSetting("columnHeaders");if((r||0===t)&&i.length>0){const t=(0,n.hasClass)(s,"innerBorderTop");this.cachedFixedRowsTop=o.getSetting("fixedRowsTop"),e||0===o.getSetting("totalRows")?((0,n.addClass)(s,"innerBorderTop"),l=!t):((0,n.removeClass)(s,"innerBorderTop"),l=t)}}return l}}t.TopOverlay=c},52895:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(94916),i=s(o(76547)),l=o(63074),a=o(72787);class h extends l.Overlay{constructor(e,t,o,s,n,i){super(e,t,a.CLONE_TOP_INLINE_START_CORNER,o,s),(0,r.default)(this,"topOverlay",void 0),(0,r.default)(this,"inlineStartOverlay",void 0),this.topOverlay=n,this.inlineStartOverlay=i}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new i.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){const t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),o=this.topOverlay.getOverlayOffset();(0,n.setOverlayPosition)(e,`${t}px`,`${o}px`)}else(0,n.resetCssTransform)(e);let t=(0,n.outerHeight)(this.clone.wtTable.TABLE);const o=(0,n.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${o}px`,!1}}t.TopInlineStartCornerOverlay=h},7052:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(69655),o(90458);var r=s(o(85707)),n=o(94916),i=o(37725),l=o(47154),a=o(83644),h=o(99275),c=o(59350),u=o(19938);function d(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}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")}var m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap;t.default=class{constructor(e,t,o,s,l,a){(0,r.default)(this,"wot",null),d(this,m,[]),(0,r.default)(this,"topOverlay",null),(0,r.default)(this,"bottomOverlay",null),(0,r.default)(this,"inlineStartOverlay",null),(0,r.default)(this,"topInlineStartCornerOverlay",null),(0,r.default)(this,"bottomInlineStartCornerOverlay",null),(0,r.default)(this,"browserLineHeight",void 0),(0,r.default)(this,"wtSettings",null),d(this,w,!1),d(this,C,0),d(this,v,null),(0,r.default)(this,"resizeObserver",new ResizeObserver((e=>{(0,i.requestAnimationFrame)((()=>{Array.isArray(e)&&e.length&&(g(C,this,f(C,this)+1),100===f(C,this)&&((0,c.warn)("The ResizeObserver callback was fired too many times in direct succession.\nThis may be due to an infinite loop caused by setting a dynamic height/width (for example, with the `dvh` units) to a Handsontable container's parent. \nThe observer will be disconnected."),this.resizeObserver.disconnect()),null!==f(v,this)&&clearTimeout(f(v,this)),g(v,this,setTimeout((()=>{g(C,this,0)}),100)),this.wtSettings.getSetting("onContainerElementResize"))}))}))),this.wot=e,this.wtSettings=s,this.domBindings=o,this.facadeGetter=t,this.wtTable=a;const{rootDocument:h,rootWindow:u}=this.domBindings;this.instance=this.wot,this.eventManager=l,this.scrollbarSize=(0,n.getScrollbarWidth)(h);const p="hidden"===u.getComputedStyle(a.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=p?a.holder:(0,n.getScrollableElement)(a.TABLE),this.initOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=u.scrollX,this.lastScrollY=u.scrollY}getOverlays(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[...f(m,this)];return e&&t.push(this.wtTable),t}initBrowserLineHeight(){const{rootWindow:e,rootDocument:t}=this.domBindings,o=e.getComputedStyle(t.body),s=parseInt(o.lineHeight,10),r=1.2*parseInt(o.fontSize,10);this.browserLineHeight=s||r}initOverlays(){const e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=new u.TopOverlay(...e),this.bottomOverlay=new u.BottomOverlay(...e),this.inlineStartOverlay=new u.InlineStartOverlay(...e),this.topInlineStartCornerOverlay=new u.TopInlineStartCornerOverlay(...e,this.topOverlay,this.inlineStartOverlay),this.bottomInlineStartCornerOverlay=new u.BottomInlineStartCornerOverlay(...e,this.bottomOverlay,this.inlineStartOverlay),g(m,this,[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay])}beforeDraw(){g(w,this,f(m,this).reduce(((e,t)=>t.hasRenderingStateChanged()||e),!1)),f(m,this).forEach((e=>e.updateStateOfRendering("before")))}afterDraw(){this.syncScrollWithMaster(),f(m,this).forEach((e=>{const t=e.hasRenderingStateChanged();e.updateStateOfRendering("after"),t&&!e.needFullRender&&e.reset()}))}refreshAll(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}registerListeners(){const{rootDocument:e,rootWindow:t}=this.domBindings,{mainTableScrollableElement:o}=this.topOverlay,{mainTableScrollableElement:s}=this.inlineStartOverlay;this.eventManager.addEventListener(e.documentElement,"keydown",(e=>this.onKeyDown(e))),this.eventManager.addEventListener(e.documentElement,"keyup",(()=>this.onKeyUp())),this.eventManager.addEventListener(e,"visibilitychange",(()=>this.onKeyUp())),this.eventManager.addEventListener(o,"scroll",(e=>this.onTableScroll(e)),{passive:!0}),o!==s&&this.eventManager.addEventListener(s,"scroll",(e=>this.onTableScroll(e)),{passive:!0});const r=t.devicePixelRatio&&t.devicePixelRatio>1,n=this.scrollableElement===t,l=this.wtSettings.getSetting("preventWheel"),a={passive:n};(l||r||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(e=>this.onCloneWheel(e,l)),a);let c;[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach((e=>{this.eventManager.addEventListener(e.clone.wtTable.holder,"wheel",(e=>this.onCloneWheel(e,l)),a)})),this.eventManager.addEventListener(t,"resize",(()=>{(0,i.requestAnimationFrame)((()=>{clearTimeout(c),this.wtSettings.getSetting("onWindowResize"),c=setTimeout((()=>{g(C,this,0)}),200)}))})),n||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}onTableScroll(e){const t=this.domBindings.rootWindow,o=this.inlineStartOverlay.mainTableScrollableElement,s=this.topOverlay.mainTableScrollableElement,r=e.target;this.keyPressed&&(s!==t&&r!==t&&!e.target.contains(s)||o!==t&&r!==t&&!e.target.contains(o))||this.syncScrollPositions(e)}onCloneWheel(e,t){const{rootWindow:o}=this.domBindings,s=this.inlineStartOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,n=e.target,i=r!==o&&n!==o&&!n.contains(r),l=s!==o&&n!==o&&!n.contains(s);if(this.keyPressed&&(i||l)||this.scrollableElement===o)return;const a=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==o&&a)&&e.preventDefault()}onKeyDown(e){this.keyPressed=(0,a.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}onKeyUp(){this.keyPressed=!1}translateMouseWheelToScroll(e){let t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,o=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(o+=o*this.browserLineHeight,t+=t*this.browserLineHeight);const s=this.scrollVertically(t),r=this.scrollHorizontally(o);return s||r}scrollVertically(e){const t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}scrollHorizontally(e){const t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}syncScrollPositions(){if(this.destroyed)return;const{rootWindow:e}=this.domBindings,t=this.topOverlay.clone.wtTable.holder,o=this.inlineStartOverlay.clone.wtTable.holder,[s,r]=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop];if(this.horizontalScrolling=t.scrollLeft!==s||this.lastScrollX!==e.scrollX,this.verticalScrolling=o.scrollTop!==r||this.lastScrollY!==e.scrollY,this.lastScrollX=e.scrollX,this.lastScrollY=e.scrollY,this.horizontalScrolling){t.scrollLeft=s;const e=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;e&&(e.scrollLeft=s)}this.verticalScrolling&&(o.scrollTop=r),this.refreshAll()}syncScrollWithMaster(){if(!f(w,this))return;const e=this.topOverlay.mainTableScrollableElement,{scrollLeft:t,scrollTop:o}=e;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=o),g(w,this,!1)}destroy(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateLastSpreaderSize()&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}updateLastSpreaderSize(){const e=this.wtTable.spreader,t=e.clientWidth,o=e.clientHeight,s=t!==this.spreaderLastSize.width||o!==this.spreaderLastSize.height;return s&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=o),s}adjustElementsSize(){const{wtViewport:e}=this.wot,{wtTable:t}=this,{rootWindow:o}=this.domBindings,s=this.scrollableElement===o,r=this.wtSettings.getSetting("totalColumns"),n=this.wtSettings.getSetting("totalRows"),i=e.getRowHeaderWidth(),l=e.getColumnHeaderHeight()+this.topOverlay.sumCellSizes(0,n)+1,a=i+this.inlineStartOverlay.sumCellSizes(0,r),h=t.hider.style,c=(()=>!s&&this.scrollableElement.scrollTop>Math.max(0,l-t.holder.clientHeight))()?1:0,u=(()=>!s&&this.scrollableElement.scrollLeft>Math.max(0,a-t.holder.clientWidth))()?1:0;h.width=`${a+u}px`,h.height=`${l+c}px`,this.topOverlay.adjustElementsSize(),this.inlineStartOverlay.adjustElementsSize(),this.bottomOverlay.adjustElementsSize()}expandHiderVerticallyBy(e){const{wtTable:t}=this;t.hider.style.height=`${parseInt(t.hider.style.height,10)+e}px`}expandHiderHorizontallyBy(e){const{wtTable:t}=this;t.hider.style.width=`${parseInt(t.hider.style.width,10)+e}px`}applyToDOM(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}getParentOverlay(e){if(!e)return null;const t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];let o=null;return(0,l.arrayEach)(t,(t=>{t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(o=t.clone)})),o}syncOverlayTableClassNames(){const e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,l.arrayEach)(t,(t=>{t&&(t.clone.wtTable.TABLE.className=e.className)}))}}},20601:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(87300);t.BaseRenderer=class{constructor(e,t){(0,r.default)(this,"nodesPool",null),(0,r.default)(this,"nodeType",void 0),(0,r.default)(this,"rootNode",void 0),(0,r.default)(this,"table",null),(0,r.default)(this,"renderedNodes",0),this.nodesPool="string"==typeof e?new n.NodesPool(e):null,this.nodeType=e,this.rootNode=t}setTable(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}adjust(){}render(){}}},3988:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(94916),i=o(95397),l=o(20601),a=o(45551);class h extends l.BaseRenderer{constructor(){super("TD"),(0,r.default)(this,"orderViews",new WeakMap),(0,r.default)(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new i.SharedOrderView(e,(e=>this.nodesPool.obtain(this.sourceRowIndex,e)),this.nodeType),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,columnsToRender:t,rows:o,rowHeaders:s}=this.table;for(let l=0;l<e;l++){const e=this.table.renderedRowToSource(l),h=o.getRenderedNode(l);this.sourceRowIndex=e;const c=this.obtainOrderView(h),u=s.obtainOrderView(h);c.prependView(u).setSize(t).setOffset(this.table.renderedColumnToSource(0)).start();for(let o=0;o<t;o++){c.render();const t=this.table.renderedColumnToSource(o),s=c.getCurrentNode();var r,i;if((0,n.hasClass)(s,"hide")||(s.className=""),s.removeAttribute("style"),s.removeAttribute("dir"),(0,n.removeAttribute)(s,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.cellRenderer(e,t,s),this.table.isAriaEnabled())(0,n.setAttribute)(s,[...s.hasAttribute("role")?[]:[(0,a.A11Y_GRIDCELL)()],(0,a.A11Y_TABINDEX)(-1),(0,a.A11Y_COLINDEX)(t+(null!==(r=null===(i=this.table.rowUtils)||void 0===i||null===(i=i.dataAccessObject)||void 0===i?void 0:i.rowHeaders.length)&&void 0!==r?r:0)+1)])}c.end()}}}t.CellsRenderer=h},61836:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(20601),r=o(59350),n=o(20944),i=o(94916);let l=!1;class a extends s.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnsToRender:e,rowHeadersCount:t}=this.table,o=e+t;for(;this.renderedNodes<o;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>o;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}render(){this.adjust();const{columnsToRender:e,rowHeadersCount:t}=this.table;!l&&e>1e3&&(l=!0,(0,r.warn)(n.toSingleLine`Performance tip: Handsontable rendered more than 1000 visible columns.\x20
|
32
32
|
Consider limiting the number of rendered columns by specifying the table width and/or\x20
|
33
33
|
turning off the "renderAllColumns" option.`));for(let e=0;e<t;e++){const t=this.table.renderedColumnToSource(e),o=this.table.columnUtils.getHeaderWidth(t);this.rootNode.childNodes[e].style.width=`${o}px`}for(let o=0;o<e;o++){const e=this.table.renderedColumnToSource(o),s=this.table.columnUtils.getWidth(e);this.rootNode.childNodes[o+t].style.width=`${s}px`}const o=this.rootNode.firstChild;o&&(0,i.addClass)(o,"rowHeader")}}t.ColGroupRenderer=a},97297:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(94916),r=o(20601),n=o(45551);class i extends r.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnHeadersCount:e,rowHeadersCount:t}=this.table;let o=this.rootNode.firstChild;if(e){const{columnsToRender:s}=this.table,r=s+t;for(let t=0,s=e;t<s;t++){for(o=this.rootNode.childNodes[t],o||(o=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(o)),this.renderedNodes=o.childNodes.length;this.renderedNodes<r;)o.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>r;)o.removeChild(o.lastChild),this.renderedNodes-=1}const n=this.rootNode.childNodes.length;if(n>e)for(let t=e;t<n;t++)this.rootNode.removeChild(this.rootNode.lastChild)}else o&&(0,s.empty)(o)}render(){const{columnHeadersCount:e}=this.table;this.table.isAriaEnabled()&&(0,s.setAttribute)(this.rootNode,[(0,n.A11Y_ROWGROUP)()]);for(let t=0;t<e;t+=1){const{columnHeaderFunctions:e,columnsToRender:o,rowHeadersCount:r}=this.table,i=this.rootNode.childNodes[t];this.table.isAriaEnabled()&&(0,s.setAttribute)(i,[(0,n.A11Y_ROW)(),(0,n.A11Y_ROWINDEX)(t+1)]);for(let l=-1*r;l<o;l+=1){const o=this.table.renderedColumnToSource(l),a=i.childNodes[l+r];a.className="",a.removeAttribute("style"),(0,s.removeAttribute)(a,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,s.setAttribute)(a,[(0,n.A11Y_COLINDEX)(l+1+this.table.rowHeadersCount),(0,n.A11Y_TABINDEX)(-1),(0,n.A11Y_COLUMNHEADER)(),...l>=0?[(0,n.A11Y_SCOPE_COL)()]:[(0,n.A11Y_ROW)()]]),e[t](o,a,t)}}}}t.ColumnHeadersRenderer=i},39597:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(53495);t.RowHeadersRenderer=s.RowHeadersRenderer;var r=o(97297);t.ColumnHeadersRenderer=r.ColumnHeadersRenderer;var n=o(61836);t.ColGroupRenderer=n.ColGroupRenderer;var i=o(67344);t.RowsRenderer=i.RowsRenderer;var l=o(3988);t.CellsRenderer=l.CellsRenderer;var a=o(73229);t.TableRenderer=a.TableRenderer;t.Renderer=class{constructor(){let{TABLE:e,THEAD:t,COLGROUP:o,TBODY:h,rowUtils:c,columnUtils:u,cellRenderer:d,stylesHandler:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.renderer=new a.TableRenderer(e,{cellRenderer:d,stylesHandler:g}),this.renderer.setRenderers({rowHeaders:new s.RowHeadersRenderer,columnHeaders:new r.ColumnHeadersRenderer(t),colGroup:new n.ColGroupRenderer(o),rows:new i.RowsRenderer(h),cells:new l.CellsRenderer}),this.renderer.setAxisUtils(c,u)}setActiveOverlayName(e){return this.renderer.setActiveOverlayName(e),this}setFilters(e,t){return this.renderer.setFilters(e,t),this}setViewportSize(e,t){return this.renderer.setViewportSize(e,t),this}setHeaderContentRenderers(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}adjust(){this.renderer.adjust()}render(){this.renderer.render()}}},53495:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(95397),i=o(20601),l=o(94916),a=o(45551);class h extends i.BaseRenderer{constructor(){super("TH"),(0,r.default)(this,"orderViews",new WeakMap),(0,r.default)(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new n.SharedOrderView(e,(e=>this.nodesPool.obtain(this.sourceRowIndex,e))),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,rowHeaderFunctions:t,rowHeadersCount:o,rows:s,cells:r}=this.table;for(let n=0;n<e;n++){const e=this.table.renderedRowToSource(n),i=s.getRenderedNode(n);this.sourceRowIndex=e;const h=this.obtainOrderView(i),c=r.obtainOrderView(i);h.appendView(c).setSize(o).setOffset(this.table.renderedColumnToSource(0)).start();for(let s=0;s<o;s++){h.render();const o=h.getCurrentNode();o.className="",o.removeAttribute("style"),(0,l.removeAttribute)(o,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,l.setAttribute)(o,[(0,a.A11Y_ROWHEADER)(),(0,a.A11Y_SCOPE_ROW)(),(0,a.A11Y_COLINDEX)(s+1),(0,a.A11Y_TABINDEX)(-1)]),t[s](e,o,s)}h.end()}}}t.RowHeadersRenderer=h},67344:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(20601),i=o(59350),l=o(20944),a=o(95397),h=o(94916),c=o(45551);const u="ht__row_even",d="ht__row_odd";let g=!1;class f extends n.BaseRenderer{constructor(e){super("TR",e),(0,r.default)(this,"orderView",void 0),this.orderView=new a.OrderView(e,(e=>this.nodesPool.obtain(e)))}getRenderedNode(e){return this.orderView.getNode(e)}hasStaleContent(e){return this.orderView.hasStaleContent(e)}render(){const{rowsToRender:e}=this.table;!g&&e>1e3&&(g=!0,(0,i.warn)(l.toSingleLine`Performance tip: Handsontable rendered more than 1000 visible rows.\x20
|
34
34
|
Consider limiting the number of rendered rows by specifying the table height and/or\x20
|
35
|
-
turning off the "renderAllRows" option.`)),this.table.isAriaEnabled()&&(0,h.setAttribute)(this.rootNode,[(0,c.A11Y_ROWGROUP)()]),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(let s=0;s<e;s++){this.orderView.render();const e=this.orderView.getCurrentNode(),r=this.table.renderedRowToSource(s);var t,o;if(this.table.isAriaEnabled())(0,h.setAttribute)(e,[(0,c.A11Y_ROW)(),(0,c.A11Y_ROWINDEX)(r+(null!==(t=null===(o=this.table.rowUtils)||void 0===o||null===(o=o.dataAccessObject)||void 0===o?void 0:o.columnHeaders.length)&&void 0!==t?t:0)+1)]);(r+1)%2==0?(0,h.hasClass)(e,u)||((0,h.removeClass)(e,d),(0,h.addClass)(e,u)):(0,h.hasClass)(e,d)||((0,h.removeClass)(e,u),(0,h.addClass)(e,d))}this.orderView.end()}}t.RowsRenderer=f},73229:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(this,"rootNode",void 0),(0,r.default)(this,"rootDocument",void 0),(0,r.default)(this,"rowHeaders",null),(0,r.default)(this,"columnHeaders",null),(0,r.default)(this,"colGroup",null),(0,r.default)(this,"rows",null),(0,r.default)(this,"cells",null),(0,r.default)(this,"rowFilter",null),(0,r.default)(this,"columnFilter",null),(0,r.default)(this,"rowUtils",null),(0,r.default)(this,"columnUtils",null),(0,r.default)(this,"rowsToRender",0),(0,r.default)(this,"columnsToRender",0),(0,r.default)(this,"rowHeaderFunctions",[]),(0,r.default)(this,"rowHeadersCount",0),(0,r.default)(this,"columnHeaderFunctions",[]),(0,r.default)(this,"columnHeadersCount",0),(0,r.default)(this,"cellRenderer",void 0),(0,r.default)(this,"activeOverlayName",void 0),(0,r.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:s,cells:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),o.setTable(this),s.setTable(this),r.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=o,this.rows=s,this.cells=r}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),s=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(o),r=s.getHeightByOverlayName(t,this.activeOverlayName),n=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=r?r-n+"px":""}}}}},82276:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(94916),i=o(95016);function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}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 WeakSet;function c(e){const{wtSettings:t,inlineStartOverlay:o,wtTable:s,wtViewport:r,totalColumns:i,rootWindow:l}=this.dataAccessObject;if(o.mainTableScrollableElement===l){let a=null;if(t.getSetting("rtlMode")){const e=s.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;a=Math.abs(e.right-t)}else{a=(0,n.offset)(s.wtRootElement).left}const h=Math.abs((0,n.getScrollLeft)(l,l));if(a>h){const t=(0,n.innerWidth)(l);let s=r.getRowHeaderWidth();for(let r=1;r<=i;r++)if(s+=o.sumCellSizes(r-1,r),a+s-h>=t){e=r-2;break}}}return e}function u(e){const{topOverlay:t,wtTable:o,wtViewport:s,totalRows:r,rootWindow:i}=this.dataAccessObject;if(t.mainTableScrollableElement===i){const l=(0,n.offset)(o.wtRootElement),a=(0,n.getScrollTop)(i,i);if(l.top>a){const o=(0,n.innerHeight)(i);let h=s.getColumnHeaderHeight();for(let s=1;s<=r;s++)if(h+=t.sumCellSizes(s-1,s),l.top+h-a>=o){e=s-2;break}}}return e}t.default=class{constructor(e){l(this,h),(0,r.default)(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,o){if(e.col<0||e.row<0)return!1;const s=this.scrollViewportHorizontally(e.col,t),r=this.scrollViewportVertically(e.row,o);return s||r}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalColumns:s}=this.dataAccessObject;if(!o)return!1;const r=(0,i.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,r),!Number.isInteger(e)||e<0||e>s)return!1;t=r.value;const{fixedColumnsStart:n,inlineStartOverlay:l}=this.dataAccessObject,a="auto"===t;if(a&&e<n)return!1;const h=this.getFirstVisibleColumn(),c=this.getLastVisibleColumn();let u=!1;return(a&&(e<h||e>c)||!a)&&(u=l.scrollTo(e,a?e>=this.getLastPartiallyVisibleColumn():"end"===t)),u}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalRows:s}=this.dataAccessObject;if(!o)return!1;const r=(0,i.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,r),!Number.isInteger(e)||e<0||e>s)return!1;t=r.value;const{fixedRowsBottom:n,fixedRowsTop:l,topOverlay:a}=this.dataAccessObject,h="auto"===t;if(h&&(e<l||e>s-n-1))return!1;const c=this.getFirstVisibleRow(),u=this.getLastVisibleRow();let d=!1;return(h&&(e<c||e>u)||!h)&&(d=a.scrollTo(e,h?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return a(h,this,u).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return a(h,this,u).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return a(h,this,c).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return a(h,this,c).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}}},8185:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(94916),r=o(40892),n=o(95016),i=o(99275),l=o(6822);t.default=class{constructor(e,t){t&&(this.eventManager=e.eventManager,this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle=(0,l.getCornerStyle)(this.instance),this.cornerCenterPointOffset=-Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())}registerListeners(){const e=this.wot.rootDocument.body;this.eventManager.addEventListener(e,"mousedown",(()=>this.onMouseDown())),this.eventManager.addEventListener(e,"mouseup",(()=>this.onMouseUp()));for(let e=0,t=this.main.childNodes.length;e<t;e++){const t=this.main.childNodes[e];this.eventManager.addEventListener(t,"mouseenter",(t=>this.onMouseEnter(t,this.main.childNodes[e])))}}onMouseDown(){this.mouseDown=!0}onMouseUp(){this.mouseDown=!1}onMouseEnter(e,t){if(!this.mouseDown||!this.wot.getSetting("hideBorderOnMouseDownOver"))return;e.preventDefault(),(0,r.stopImmediatePropagation)(e);const o=this,s=this.wot.rootDocument.body,n=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(s,"mousemove",(function e(r){var i;((i=r).clientY<Math.floor(n.top)||i.clientY>Math.ceil(n.top+n.height)||i.clientX<Math.floor(n.left)||i.clientX>Math.ceil(n.left+n.width))&&(o.eventManager.removeEventListener(s,"mousemove",e),t.style.display="block")}))}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const o=["top","start","bottom","end","corner"];let s=this.main.style;s.position="absolute",s.top=0,s.left=0;for(let r=0;r<5;r++){const n=o[r],i=t.createElement("div");i.className=`wtBorder ${this.settings.className||""}`,this.settings[n]&&this.settings[n].hide&&(i.className+=" hidden"),s=i.style,s.backgroundColor=this.settings[n]&&this.settings[n].color?this.settings[n].color:e.border.color,s.height=this.settings[n]&&this.settings[n].width?`${this.settings[n].width}px`:`${e.border.width}px`,s.width=this.settings[n]&&this.settings[n].width?`${this.settings[n].width}px`:`${e.border.width}px`,this.main.appendChild(i)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=`${this.cornerDefaultStyle.width}px`,this.cornerStyle.height=`${this.cornerDefaultStyle.height}px`,this.cornerStyle.border=[`${this.cornerDefaultStyle.borderWidth}px`,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,i.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:r}=this.wot;let n=r.bordersHolder;n||(n=t.createElement("div"),n.className="htBorders",r.bordersHolder=n,r.spreader.appendChild(n)),n.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e}=this.wot;this.selectionHandles={top:e.createElement("DIV"),topHitArea:e.createElement("DIV"),bottom:e.createElement("DIV"),bottomHitArea:e.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};const t={position:"absolute",height:"40px",width:"40px","border-radius":`${parseInt(40/1.5,10)}px`};(0,n.objectEach)(t,((e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e}));const o={position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"};(0,n.objectEach)(o,((e,t)=>{this.selectionHandles.styles.bottom[t]=e,this.selectionHandles.styles.top[t]=e})),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}isPartRange(e,t){const o=this.wot.selectionManager.getAreaSelection();return!(!o.cellRange||e===o.cellRange.to.row&&t===o.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,o,s,r,n){const i=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:l,topHitArea:a,bottom:h,bottomHitArea:c}=this.selectionHandles.styles,u=parseInt(l.borderWidth,10),d=parseInt(l.width,10),g=parseInt(a.width,10),f=this.wot.wtTable.getWidth(),p=this.wot.wtTable.getHeight();l.top=`${parseInt(o-d-1,10)}px`,l[i]=`${parseInt(s-d-1,10)}px`,a.top=`${parseInt(o-g/4*3,10)}px`,a[i]=`${parseInt(s-g/4*3,10)}px`;const m=Math.min(parseInt(s+r,10),f-d-2*u),w=Math.min(parseInt(s+r-g/4,10),f-g-2*u);h[i]=`${m}px`,c[i]=`${w}px`;const C=Math.min(parseInt(o+n,10),p-d-2*u),v=Math.min(parseInt(o+n-g/4,10),p-g-2*u);h.top=`${C}px`,c.top=`${v}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(l.display="block",a.display="block",this.isPartRange(e,t)?(h.display="none",c.display="none"):(h.display="block",c.display="block")):(l.display="none",h.display="none",a.display="none",c.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(l.zIndex="9999",a.zIndex="9999"):(l.zIndex="",a.zIndex="")}appear(e){if(this.disabled)return;let[t,o,r,n]=e;if(t<0&&r<0||o<0&&n<0)return void this.disappear();const{wtTable:l,rootDocument:a,rootWindow:h}=this.wot,c=t!==r||o!==n,u=l.getFirstRenderedRow(),d=l.getLastRenderedRow(),g=l.getFirstRenderedColumn(),f=l.getLastRenderedColumn();let p;if(c){if(o=Math.max(o,g),n=Math.min(n,f),t=Math.max(t,u),r=Math.min(r,d),n<o||r<t)return void this.disappear();p=l.getCell(this.wot.createCellCoords(t,o))}else if(p=l.getCell(this.wot.createCellCoords(t,o)),!(p instanceof HTMLElement))return void this.disappear();const m=c?l.getCell(this.wot.createCellCoords(r,n)):p,w=(0,s.offset)(p),C=c?(0,s.offset)(m):w,v=(0,s.offset)(l.TABLE),y=w.top,E=w.left,S=this.wot.wtSettings.getSetting("rtlMode");let R=0,b=0;if(S){const e=(0,s.outerWidth)(l.TABLE),t=(0,s.outerWidth)(p),o=h.innerWidth-v.left-e;b=E+t-C.left,R=h.innerWidth-E-t-o-1}else b=C.left+(0,s.outerWidth)(m)-E,R=E-v.left-1;if(this.isEntireColumnSelected(t,r)){const e=t,s=this.getDimensionsFromHeader("columns",o,n,e,v);let r=null;s&&([r,R,b]=s),r&&(p=r)}let _=y-v.top-1,T=C.top+(0,s.outerHeight)(m)-y;if(this.isEntireRowSelected(o,n)){const e=o,s=this.getDimensionsFromHeader("rows",t,r,e,v);let n=null;s&&([n,_,T]=s),n&&(p=n)}const M=h.getComputedStyle(p);parseInt(M.borderTopWidth,10)>0&&(_+=1,T=T>0?T-1:0),parseInt(M[S?"borderRightWidth":"borderLeftWidth"],10)>0&&(R+=1,b=b>0?b-1:0);const O=S?"right":"left";this.topStyle.top=`${_}px`,this.topStyle[O]=`${R}px`,this.topStyle.width=`${b}px`,this.topStyle.display="block",this.startStyle.top=`${_}px`,this.startStyle[O]=`${R}px`,this.startStyle.height=`${T}px`,this.startStyle.display="block";const I=Math.floor(this.settings.border.width/2);this.bottomStyle.top=_+T-I+"px",this.bottomStyle[O]=`${R}px`,this.bottomStyle.width=`${b}px`,this.bottomStyle.display="block",this.endStyle.top=`${_}px`,this.endStyle[O]=R+b-I+"px",this.endStyle.height=`${T+1}px`,this.endStyle.display="block";let N=this.settings.border.cornerVisible;N="function"==typeof N?N(this.settings.layerLevel):N;const A=this.wot.getSetting("onModifyGetCellCoords",r,n,!1,"render");let[P,H]=[r,n];if(A&&Array.isArray(A)&&([,,P,H]=A),(0,i.isMobileBrowser)()||!N||this.isPartRange(P,H))this.cornerStyle.display="none";else{this.cornerStyle.top=_+T+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[O]=R+b+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle.borderRightWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderLeftWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderBottomWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";let e=(0,s.getTrimmingContainer)(l.TABLE);const t=e===h;t&&(e=a.documentElement);const o=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,i=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),c=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(n===this.wot.getSetting("totalColumns")-1){const r=t?m.getBoundingClientRect().left:m.offsetLeft;let n=!1,l=0;S?(l=r-parseInt(this.cornerDefaultStyle.width,10)/2,n=l<0):(l=r+(0,s.outerWidth)(m)+parseInt(this.cornerDefaultStyle.width,10)/2,n=l>=(0,s.innerWidth)(e)),n&&(this.cornerStyle[O]=`${Math.floor(R+b+this.cornerCenterPointOffset-i-o)}px`,this.cornerStyle[S?"borderLeftWidth":"borderRightWidth"]=0)}if(r===this.wot.getSetting("totalRows")-1){const r=(t?m.getBoundingClientRect().top:m.offsetTop)+(0,s.outerHeight)(m)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(e),n=this.wot.stylesHandler.isClassicTheme();if(r){const e=Math.floor(_+T+this.cornerCenterPointOffset-c-o);n?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}(0,i.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(r,n,_,R,b,T)}isEntireColumnSelected(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}isEntireRowSelected(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}getDimensionsFromHeader(e,t,o,r,n){const{wtTable:i}=this.wot,l=i.wtRootElement.parentNode;let a=null,h=null,c=null,u=null,d=null,g=null,f=null,p=null;switch(e){case"rows":a=function(){return i.getRowHeader(...arguments)},h=function(){return(0,s.outerHeight)(...arguments)},c="ht__selection--rows",g="top";break;case"columns":a=function(){return i.getColumnHeader(...arguments)},h=function(){return(0,s.outerWidth)(...arguments)},c="ht__selection--columns",g="left"}if(l.classList.contains(c)){const e=this.wot.getSetting("columnHeaders").length;if(f=a(t,e-r),p=a(o,e-r),!f||!p)return!1;const i=(0,s.offset)(f),l=(0,s.offset)(p);return f&&p&&(u=i[g]-n[g]-1,d=l[g]+h(p)-i[g]),[f,u,d]}return!1}changeBorderStyle(e,t){const o=this[e].style,r=t[e];!r||r.hide?(0,s.addClass)(this[e],"hidden"):((0,s.hasClass)(this[e],"hidden")&&(0,s.removeClass)(this[e],"hidden"),o.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(o.height=`${r.width}px`),"start"!==e&&"end"!==e||(o.width=`${r.width}px`))}changeBorderToDefaultStyle(e){const t=1,o="#000",s=this[e].style;s.backgroundColor=o,s.width=`${t}px`,s.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,s.addClass)(this[e],"hidden"):(0,s.removeClass)(this[e],"hidden")}disappear(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,i.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}destroy(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}},6822:(e,t)=>{"use strict";t.__esModule=!0;t.getCornerStyle=e=>{const t=e.stylesHandler;if(t.isClassicTheme())return Object.freeze({width:6,height:6,borderWidth:1,borderStyle:"solid",borderColor:"#FFF"});const o=t.getCSSVariableValue("cell-autofill-size"),s=t.getCSSVariableValue("cell-autofill-border-width"),r=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:o,height:o,borderWidth:s,borderStyle:"solid",borderColor:r})}},20765:(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"},39304:(e,t,o)=>{"use strict";o(14846),o(69655);var s=o(96784);t.__esModule=!0;var r={SelectionManager:!0,Selection:!0},n=s(o(64758));t.Selection=n.default;var i=o(20765);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||(t[e]=i[e]))}));var l=o(6822);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))}));var a=o(47491);t.SelectionManager=a.SelectionManager},47491:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(25352),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(69655),o(94364);var r=o(94916),n=o(20654),i=s(o(8185));function l(e,t,o){a(e,t),t.set(e,o)}function a(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 s=h(d,this).wtTable.TABLE.querySelectorAll(`.${e}`);let n=[];Array.isArray(null===(t=h(g,this).options)||void 0===t?void 0:t.cellAttributes)&&(n=h(g,this).options.cellAttributes.map((e=>e[0]))),Array.isArray(null===(o=h(g,this).options)||void 0===o?void 0:o.headerAttributes)&&(n=[...n,...h(g,this).options.headerAttributes.map((e=>e[0]))]);for(let t=0,o=s.length;t<o;t++)(0,r.removeClass)(s[t],e),(0,r.removeAttribute)(s[t],n)})),e.clear()}t.SelectionManager=class{constructor(e){var t,o;a(t=this,o=C),o.add(t),l(this,d,void 0),l(this,g,void 0),l(this,f,new n.SelectionScanner),l(this,p,new WeakMap),l(this,m,new WeakSet),l(this,w,new Map),c(g,this,e)}setActiveOverlay(e){return c(d,this,e),h(f,this).setActiveOverlay(h(d,this)),h(p,this).has(h(d,this))||h(p,this).set(h(d,this),new Set),this}getFocusSelection(){return null!==h(g,this)?h(g,this).getFocus():null}getAreaSelection(){return null!==h(g,this)?h(g,this).createLayeredArea():null}getBorderInstance(e){if(!e.settings.border)return null;if(h(w,this).has(e)){const t=h(w,this).get(e);if(t.has(h(d,this)))return t.get(h(d,this));const o=new i.default(h(d,this),e.settings);return t.set(h(d,this),o),o}const t=new i.default(h(d,this),e.settings);return h(w,this).set(e,new Map([[h(d,this),t]])),t}getBorderInstances(e){var t,o;return Array.from(null!==(t=null===(o=h(w,this).get(e))||void 0===o?void 0:o.values())&&void 0!==t?t:[])}destroyBorders(e){h(w,this).get(e).forEach((e=>e.destroy())),h(w,this).delete(e)}render(e){if(null===h(g,this))return;e&&u(C,this,v).call(this);const t=Array.from(h(g,this)),o=new Map,s=new Map;for(let e=0;e<t.length;e++){const r=t[e],{className:n,headerAttributes:i,createLayers:l,selectionType:a}=r.settings;h(m,this).has(r)||(h(m,this).add(r),r.addLocalHook("destroy",(()=>this.destroyBorders(r))));const c=this.getBorderInstance(r);if(r.isEmpty()){null==c||c.disappear();continue}if(n){h(f,this).setActiveSelection(r).scan().forEach((e=>{if(o.has(e)){const t=o.get(e);t.has(n)&&!0===l?t.set(n,t.get(n)+1):t.set(n,1)}else o.set(e,new Map([[n,1]]));i&&(s.has(e)||s.set(e,[]),"TH"===e.nodeName&&s.get(e).push(...i))}))}const u=r.getCorners();h(d,this).getSetting("onBeforeDrawBorders",u,a),null==c||c.appear(u)}o.forEach(((e,t)=>{var o;const s=Array.from(e).map((e=>{let[t,o]=e;return 1===o?t:[t,...Array.from({length:o-1},((e,o)=>`${t}-${o+1}`))]})).flat();s.forEach((e=>h(p,this).get(h(d,this)).add(e))),(0,r.addClass)(t,s),"TD"===t.nodeName&&Array.isArray(null===(o=h(g,this).options)||void 0===o?void 0:o.cellAttributes)&&(0,r.setAttribute)(t,h(g,this).options.cellAttributes)})),Array.from(s.keys()).forEach((e=>{(0,r.setAttribute)(e,[...s.get(e)])}))}}},20654:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var s=o(94916);function r(e,t,o){n(e,t),t.set(e,o)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function i(e,t){return e.get(a(e,t))}function 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,s,r]=i(h,this).getCorners();if(t<0&&s<0||o<0&&r<0)return;const{wtTable:n}=i(c,this),l=t!==s||o!==r;if(o=Math.max(o,0),r=Math.max(r,0),t=Math.max(t,0),s=Math.max(s,0),l){if(o=Math.max(o,n.getFirstRenderedColumn()),r=Math.min(r,n.getLastRenderedColumn()),t=Math.max(t,n.getFirstRenderedRow()),s=Math.min(s,n.getLastRenderedRow()),r<o||s<t)return}else{if(!(n.getCell(i(c,this).createCellCoords(t,o))instanceof HTMLElement))return}for(let n=t;n<=s;n+=1)for(let t=o;t<=r;t+=1)e(n,t)}function g(e){const{wtTable:t}=i(c,this),o=t.getRenderedRowsCount(),s=t.getRenderedColumnsCount();for(let r=0;r<o;r+=1){const o=t.rowFilter.renderedToSource(r);for(let r=0;r<s;r+=1)e(o,t.columnFilter.renderedToSource(r))}}t.SelectionScanner=class{constructor(){var e,t;n(e=this,t=u),t.add(e),r(this,h,void 0),r(this,c,void 0)}setActiveOverlay(e){return l(c,this,e),this}setActiveSelection(e){return l(h,this,e),this}scan(){const e=i(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,r]=i(h,this).getCorners(),{wtTable:n}=i(c,this),l=n.getRenderedColumnsCount(),a=n.getColumnHeadersCount();let u=0;for(let d=-n.getRowHeadersCount();d<l;d++){const l=n.columnFilter.renderedToSource(d);if(!(l<o||l>r)){for(let d=-a;d<0;d++){if(d<t||d>s)continue;const g=d+a;let f=n.getColumnHeader(l,g);const p=i(c,this).getSetting("onBeforeHighlightingColumnHeader",l,g,{selectionType:i(h,this).settings.selectionType,columnCursor:u,selectionWidth:r-o+1});null!==p&&(p!==l&&(f=n.getColumnHeader(p,g)),e(f))}u+=1}}}scanRowsInHeadersRange(e){const[t,o,s,r]=i(h,this).getCorners(),{wtTable:n}=i(c,this),l=n.getRenderedRowsCount(),a=n.getRowHeadersCount();let u=0;for(let d=-n.getColumnHeadersCount();d<l;d++){const l=n.rowFilter.renderedToSource(d);if(!(l<t||l>s)){for(let d=-a;d<0;d++){if(d<o||d>r)continue;const g=d+a;let f=n.getRowHeader(l,g);const p=i(c,this).getSetting("onBeforeHighlightingRowHeader",l,g,{selectionType:i(h,this).settings.selectionType,rowCursor:u,selectionHeight:s-t+1});null!==p&&(p!==l&&(f=n.getRowHeader(p,g)),e(f))}u+=1}}}scanCellsRange(e){const{wtTable:t}=i(c,this);a(u,this,d).call(this,((o,r)=>{const n=t.getCell(i(c,this).createCellCoords(o,r)),l=i(c,this).getSetting("onAfterDrawSelection",o,r,i(h,this).settings.layerLevel);"string"==typeof l&&(0,s.addClass)(n,l),e(n)}))}scanRowsInCellsRange(e){const[t,,o]=i(h,this).getCorners(),{wtTable:s}=i(c,this);a(u,this,g).call(this,((r,n)=>{if(r>=t&&r<=o){const t=s.getCell(i(c,this).createCellCoords(r,n));e(t)}}))}scanColumnsInCellsRange(e){const[,t,,o]=i(h,this).getCorners(),{wtTable:s}=i(c,this);a(u,this,g).call(this,((r,n)=>{if(n>=t&&n<=o){const t=s.getCell(i(c,this).createCellCoords(r,n));e(t)}}))}}},64758:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=o(95016),n=s(o(32943));class i{constructor(e,t){this.settings=e,this.cellRange=t||null}isEmpty(){return null===this.cellRange}add(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}replace(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}clear(){return this.cellRange=null,this}getCorners(){const e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}destroy(){this.runLocalHooks("destroy")}}(0,r.mixin)(i,n.default);t.default=i},5352:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(94916),i=o(95016);t.default=class{constructor(e){(0,r.default)(this,"settings",{}),(0,r.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,i.objectEach)(this.defaults,((t,o)=>{if(void 0!==e[o])this.settings[o]=e[o];else{if(void 0===t)throw new Error(`A required setting "${o}" was not provided`);this.settings[o]=t}}))}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,o)=>{const s=this.getSetting("data",e,t);(0,n.fastInnerText)(o,null==s?"":s)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0}}update(e,t){return void 0===t?(0,i.objectEach)(e,((e,t)=>{this.settings[t]=e})):this.settings[e]=t,this}getSetting(e,t,o,s,r){return"function"==typeof this.settings[e]?this.settings[e](t,o,s,r):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}getSettingPure(e){return this.settings[e]}has(e){return!!this.settings[e]}}},76325:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(69655);var r=s(o(85707)),n=o(94916),i=o(77515),l=s(o(18316)),a=s(o(25800)),h=o(39597),c=s(o(5505)),u=s(o(40799)),d=o(19938),g=o(45551);t.default=class{constructor(e,t,o,s,i){(0,r.default)(this,"wtSettings",null),(0,r.default)(this,"domBindings",void 0),(0,r.default)(this,"TBODY",null),(0,r.default)(this,"THEAD",null),(0,r.default)(this,"COLGROUP",null),(0,r.default)(this,"hasTableHeight",!0),(0,r.default)(this,"hasTableWidth",!0),(0,r.default)(this,"isTableVisible",!1),(0,r.default)(this,"tableOffset",0),(0,r.default)(this,"holderOffset",0),this.domBindings=o,this.isMaster="master"===i,this.name=i,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=s,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=o.rootTable,(0,n.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const l=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",(()=>this._modifyRowHeaderWidth(l))),this.rowUtils=new u.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new c.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new h.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer"),stylesHandler:this.dataAccessObject.stylesHandler})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.className="wtSpreader",t&&t.insertBefore(o,e),o.appendChild(e)),o.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHider(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.className="wtHider",t&&t.insertBefore(o,e),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHolder(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.style.position="relative",o.className="wtHolder",t&&t.insertBefore(o,e),this.isMaster&&(o.parentNode.className+="ht_master handsontable",o.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,n.setAttribute)(o.parentNode,[(0,g.A11Y_PRESENTATION)()])),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:o,wtViewport:s}=this.dataAccessObject,r=t.getSetting("totalRows"),i=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),c=h.length,u=t.getSetting("columnHeaders"),g=u.length;let f=e;if(this.isMaster&&(o.beforeDraw(),this.holderOffset=(0,n.offset)(this.holder),f=s.createCalculators(f),c&&!t.getSetting("fixedColumnsStart"))){const e=o.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(f=!1)}if(f)this.isMaster&&o.refresh(!0);else{this.isMaster?this.tableOffset=(0,n.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=r>0?this.getFirstRenderedRow():0,t=i>0?this.getFirstRenderedColumn():0;this.rowFilter=new a.default(e,r,g),this.columnFilter=new l.default(t,i,c);let f=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),f=!0!==e.skipRender}f&&(this.tableRenderer.setHeaderContentRenderers(h,u),(this.is(d.CLONE_BOTTOM)||this.is(d.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(h,[]),this.resetOversizedRows(),this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(d.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster?(this.wtSettings.getSetting("externalRowCalculator")||s.createVisibleCalculators(),o.refresh(!1),o.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let p=!1;return this.isMaster&&(p=o.topOverlay.resetFixedPosition(),o.bottomOverlay.clone&&(p=o.bottomOverlay.resetFixedPosition()||p),p=o.inlineStartOverlay.resetFixedPosition()||p,o.topInlineStartCornerOverlay&&o.topInlineStartCornerOverlay.resetFixedPosition(),o.bottomInlineStartCornerOverlay&&o.bottomInlineStartCornerOverlay.clone&&o.bottomInlineStartCornerOverlay.resetFixedPosition()),p?(o.refreshAll(),o.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(f),this.isMaster&&o.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let o=this.wtSettings.getSetting("columnHeaders").length;const s=this.dataAccessObject.stylesHandler.getDefaultRowHeight();let r,i,l;const a=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;o;)o-=1,r=this.getColumnHeaderHeight(o),i=this.getColumnHeader(t,o),i&&(l=(0,n.innerHeight)(i),(!r&&s<l||r<l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l),Array.isArray(a)?null!==a[o]&&void 0!==a[o]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a[o]):isNaN(a)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a),this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]<(a[o]||a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a[o]||a))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,o=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let s=0,r=e.getSetting("columnHeaders").length;s<r;s++)if(o[s]){if(!t[s]||0===t[s].childNodes.length)return;t[s].childNodes[0].style.height=`${o[s]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(d.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let o=0;o<e;o++){const e=this.rowFilter.renderedToSource(o);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,o=e.col;const s=this.wtSettings.getSetting("onModifyGetCellCoords",t,o,!this.isMaster,"render");if(s&&Array.isArray(s)&&([t,o]=s),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(o))return-3;if(this.isColumnAfterRenderedColumns(o))return-4;const r=this.getRow(t);if(!r&&t>=0)throw new Error("TR was expected to be rendered but is not");const n=r.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(o)];if(!n&&o>=0)throw new Error("TD or TH was expected to be rendered but is not");return n}getRow(e){let t=null,o=null;var s,r;e<0?(t=null===(s=this.rowFilter)||void 0===s?void 0:s.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(t=null===(r=this.rowFilter)||void 0===r?void 0:r.sourceToRendered(e),o=this.TBODY);return void 0!==t&&void 0!==o&&(!(o.childNodes.length<t+1)&&o.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const o=this.THEAD.childNodes[t];return null==o?void 0:o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],o=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach((e=>{const s=e.childNodes[o];s&&t.push(s)})),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const o=this.rowFilter.sourceToRendered(e),s=o<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):o,r=(o<0?this.THEAD:this.TBODY).childNodes[s];return null==r?void 0:r.childNodes[t]}getRowHeaders(e){const t=[],o=this.wtSettings.getSetting("rowHeaders").length;for(let s=0;s<o;s++){const o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],r=null==o?void 0:o.childNodes[s];r&&t.push(r)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,n.closest)(t,["TD","TH"])),null===t)return null;const o=t.parentNode,s=o.parentNode;let r=(0,n.index)(o),i=t.cellIndex;if((0,n.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===s.nodeName&&(r-=s.childNodes.length);else if((0,n.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){r=this.wtSettings.getSetting("totalRows")-s.childNodes.length+r}else r=s===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(r):this.rowFilter.renderedToSource(r);i=(0,n.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i);const l=this.wtSettings.getSetting("onModifyGetCoordsElement",r,i);return l&&Array.isArray(l)&&([r,i]=l),this.wot.createCellCoords(r,i)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=e*this.dataAccessObject.stylesHandler.getDefaultRowHeight(),o=(0,n.innerHeight)(this.TBODY)-1,s=this.wot.stylesHandler.areCellsBorderBox(),r=s?n.outerHeight:n.innerHeight,i=s?0:1,l=s?1:0;let a,h,c,u,d;if(t!==o||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,c=this.rowFilter.renderedToSource(e),a=this.getRowHeight(c),u=this.getTrForRow(c),d=u.querySelector("th");const t=0===c?l:0;h=d?r(d):r(u)-i,(!a&&this.dataAccessObject.stylesHandler.getDefaultRowHeight()<h-t||a<h)&&(s||(h+=1),this.dataAccessObject.wtViewport.oversizedRows[c]=h)}}getTrForRow(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}isColumnHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}isRowHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}isRowBeforeRenderedRows(e){const t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}isRowAfterRenderedRows(e){return e>this.getLastRenderedRow()}isColumnBeforeRenderedColumns(e){const t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}isColumnAfterRenderedColumns(e){return this.columnFilter&&e>this.getLastRenderedColumn()}isColumnAfterViewport(e){return this.columnFilter&&e>this.getLastVisibleColumn()}isRowAfterViewport(e){return this.rowFilter&&e>this.getLastVisibleRow()}isColumnBeforeViewport(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}isLastRowFullyVisible(){return this.getLastVisibleRow()===this.getLastRenderedRow()}isLastColumnFullyVisible(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}allRowsInViewport(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}allColumnsInViewport(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}getRowHeight(e){return this.rowUtils.getHeight(e)}getColumnHeaderHeight(e){return this.columnUtils.getHeaderHeight(e)}getColumnWidth(e){return this.columnUtils.getWidth(e)}hasDefinedSize(){return this.hasTableHeight&&this.hasTableWidth}getWidth(){return(0,n.outerWidth)(this.TABLE)}getHeight(){return(0,n.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,n.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,n.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,n.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,i.isFunction)(e)?e():null;return Array.isArray(t)?(t=[...t],t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}_correctRowHeaderWidth(e){let t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}},12207:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(76325)),n=s(o(63043)),i=s(o(65483)),l=o(95016),a=o(19938);class h extends r.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_BOTTOM)}}(0,l.mixin)(h,n.default),(0,l.mixin)(h,i.default);t.default=h},89353:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(76325)),n=s(o(63043)),i=s(o(57676)),l=o(95016),a=o(19938);class h extends r.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,l.mixin)(h,n.default),(0,l.mixin)(h,i.default);t.default=h},83281:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(76325)),n=s(o(15711)),i=s(o(57676)),l=o(95016),a=o(19938);class h extends r.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_INLINE_START)}}(0,l.mixin)(h,n.default),(0,l.mixin)(h,i.default);t.default=h},69910:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=o(94916),n=s(o(76325)),i=s(o(15711)),l=s(o(65483)),a=o(95016);class h extends n.default{constructor(e,t,o,s){super(e,t,o,s,"master")}alignOverlaysWithTrimmingContainer(){const e=(0,r.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,r.getStyle)(e,"height",t),n=(0,r.getStyle)(e,"overflow",t),i=this.holder.style,{scrollWidth:l,scrollHeight:a}=e;let h=e.offsetWidth,c=e.offsetHeight;if(o&&["auto","hidden","scroll"].includes(n)){const s=e.cloneNode(!1);s.style.overflow="auto",s.style.position="absolute",e.nextElementSibling?o.insertBefore(s,e.nextElementSibling):o.appendChild(s);const r=parseInt(t.getComputedStyle(s).height,10);o.removeChild(s),0===r&&(c=0)}c=Math.min(c,a),i.height="auto"===s?"auto":`${c}px`,h=Math.min(h,l),i.width=`${h}px`,i.overflow="",this.hasTableHeight="auto"===i.height||c>0,this.hasTableWidth=h>0}this.isTableVisible=(0,r.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 r=e.getSetting("rowHeaders").length,n=this.getRenderedColumnsCount();for(let e=0;e<s;e++)for(let e=-1*r;e<n;e++)this.markIfOversizedColumnHeader(e);t.hasOversizedColumnHeadersMarked[o]=!0}}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,l.default);t.default=h},65483:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95016);const r={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)(r,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});t.default=r},15711:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95016);const r={getFirstRenderedRow(){const e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow(){const e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getFirstPartiallyVisibleRow(){const e=this.dataAccessObject.startRowPartiallyVisible;return null===e?-1:e},getLastRenderedRow(){const e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow(){const e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getLastPartiallyVisibleRow(){const e=this.dataAccessObject.endRowPartiallyVisible;return null===e?-1:e},getRenderedRowsCount(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount(){return this.dataAccessObject.countRowsVisible},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,s.defineGetter)(r,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});t.default=r},57676:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95016);const r={getFirstRenderedColumn(){return 0===this.wtSettings.getSetting("totalColumns")?-1:0},getFirstVisibleColumn(){return this.getFirstRenderedColumn()},getFirstPartiallyVisibleColumn(){return this.getFirstRenderedColumn()},getLastRenderedColumn(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn(){return this.getLastRenderedColumn()},getLastPartiallyVisibleColumn(){return this.getLastRenderedColumn()},getRenderedColumnsCount(){const e=this.wtSettings.getSetting("totalColumns");return Math.min(this.wtSettings.getSetting("fixedColumnsStart"),e)},getVisibleColumnsCount(){return this.getRenderedColumnsCount()},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,s.defineGetter)(r,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});t.default=r},63043:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95016);const r={getFirstRenderedRow(){const e=this.wtSettings.getSetting("totalRows"),t=this.wtSettings.getSetting("fixedRowsBottom"),o=e-t;return 0===e||0===t?-1:o<0?0:o},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){const e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsBottom"),e)},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,s.defineGetter)(r,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=r},76749:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95016);const r={getFirstRenderedRow(){return 0===this.wtSettings.getSetting("totalRows")?-1:0},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.getRenderedRowsCount()-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){const e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsTop"),e)},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,s.defineGetter)(r,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});t.default=r},39001:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(76325)),n=s(o(76749)),i=s(o(65483)),l=o(95016),a=o(19938);class h extends r.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_TOP)}}(0,l.mixin)(h,n.default),(0,l.mixin)(h,i.default);t.default=h},76547:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(76325)),n=s(o(76749)),i=s(o(57676)),l=o(95016),a=o(19938);class h extends r.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_TOP_INLINE_START_CORNER)}}(0,l.mixin)(h,n.default),(0,l.mixin)(h,i.default);t.default=h},5505:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.default=class{constructor(e,t){(0,r.default)(this,"dataAccessObject",void 0),(0,r.default)(this,"wtSettings",void 0),(0,r.default)(this,"headerWidths",new Map),this.dataAccessObject=e,this.wtSettings=t}getWidth(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}getHeaderHeight(e){let t=this.dataAccessObject.stylesHandler.getDefaultRowHeight();const o=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==o&&(t=t?Math.max(t,o):o),t}getHeaderWidth(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}calculateWidths(){const{wtSettings:e}=this;let t=e.getSetting("rowHeaderWidth");if(t=e.getSetting("onModifyRowHeaderWidth",t),null!=t){const o=e.getSetting("rowHeaders").length,s=e.getSetting("defaultColumnWidth");for(let e=0;e<o;e++){let o=Array.isArray(t)?t[e]:t;o=null==o?s:o,this.headerWidths.set(e,o)}}}}},87300:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.NodesPool=class{constructor(e){(0,r.default)(this,"nodeType",void 0),(0,r.default)(this,"pool",new Map),this.nodeType=e.toUpperCase()}setRootDocument(e){this.rootDocument=e}obtain(e,t){const o="number"==typeof t?`${e}x${t}`:e.toString();if(this.pool.has(o))return this.pool.get(o);const s=this.rootDocument.createElement(this.nodeType);return this.pool.set(o,s),s}}},49596:(e,t)=>{"use strict";t.__esModule=!0;t.WORKING_SPACE_ALL=0,t.WORKING_SPACE_TOP=1,t.WORKING_SPACE_BOTTOM=2},95397:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(28564);t.OrderView=s.OrderView;var r=o(72041);t.SharedOrderView=r.SharedOrderView},72041:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(28564);class r 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=r},28564:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(59313),i=o(92039);t.OrderView=class{constructor(e,t){(0,r.default)(this,"rootNode",void 0),(0,r.default)(this,"nodesPool",void 0),(0,r.default)(this,"sizeSet",new n.ViewSizeSet),(0,r.default)(this,"collectedNodes",[]),(0,r.default)(this,"viewDiffer",new i.ViewDiffer(this.sizeSet)),(0,r.default)(this,"leads",[]),this.rootNode=e,this.nodesPool=t}setSize(e){return this.sizeSet.setSize(e),this}setOffset(e){return this.sizeSet.setOffset(e),this}isSharedViewSet(){return this.sizeSet.isShared()}getNode(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}getCurrentNode(){const e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}applyCommand(e){const{rootNode:t}=this,[o,s,r,n]=e,i=this.nodesPool(s);switch(this.collectedNodes.push(i),o){case"prepend":t.insertBefore(i,t.firstChild);break;case"append":t.appendChild(i);break;case"insert_before":t.insertBefore(i,this.nodesPool(r)),t.removeChild(this.nodesPool(n));break;case"replace":t.replaceChild(i,this.nodesPool(r));break;case"remove":t.removeChild(i)}}start(){this.collectedNodes.length=0,this.leads=this.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}},92039:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(49596),i=o(70348);t.ViewDiffer=class{constructor(e){(0,r.default)(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:t,nextSize:o}=e.getViewSize();let s=Math.max(o,t);if(0===s)return[];const{currentOffset:r,nextOffset:l}=e.getViewSize(),a=new i.ViewOrder(r,t),h=new i.ViewOrder(l,o),c=[];for(let t=0;t<s;t++){const r=a.get(t),i=h.get(t);if(-1===i)c.push(["remove",r]);else if(-1===r)!e.isShared()||e.isShared()&&e.isPlaceOn(n.WORKING_SPACE_BOTTOM)?c.push(["append",i]):c.push(["prepend",i]);else if(i>r)a.has(i)&&(a.remove(i),o<=a.length&&(s-=1)),c.push(["replace",i,r]);else if(i<r){const e=a.prepend(i);c.push(["insert_before",i,r,e])}else c.push(["none",i])}return c}}},70348:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(54999),o(94364);var r=s(o(85707));t.ViewOrder=class{constructor(e,t){(0,r.default)(this,"order",[]),this.order=[...Array(t).keys()].map((t=>e+t))}get length(){return this.order.length}has(e){return this.order.indexOf(e)>-1}get(e){return e<this.order.length?this.order[e]:-1}remove(e){this.order.splice(this.order.indexOf(e),1)}prepend(e){return this.order.unshift(e),this.order.pop()}}},53537:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.ViewSize=class{constructor(){(0,r.default)(this,"currentSize",0),(0,r.default)(this,"nextSize",0),(0,r.default)(this,"currentOffset",0),(0,r.default)(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}},59313:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(53537),i=o(49596);t.ViewSizeSet=class{constructor(){(0,r.default)(this,"size",new n.ViewSize),(0,r.default)(this,"workingSpace",i.WORKING_SPACE_ALL),(0,r.default)(this,"sharedSize",null)}setSize(e){this.size.setSize(e)}setOffset(e){this.size.setOffset(e)}getViewSize(){return this.size}isShared(){return null!==this.sharedSize}isPlaceOn(e){return this.workingSpace===e}append(e){this.workingSpace=i.WORKING_SPACE_TOP,e.workingSpace=i.WORKING_SPACE_BOTTOM,this.sharedSize=e.getViewSize()}prepend(e){this.workingSpace=i.WORKING_SPACE_BOTTOM,e.workingSpace=i.WORKING_SPACE_TOP,this.sharedSize=e.getViewSize()}}},40799:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.default=class{constructor(e,t){(0,r.default)(this,"dataAccessObject",void 0),(0,r.default)(this,"wtSettings",void 0),this.dataAccessObject=e,this.wtSettings=t}getHeight(e){let t=this.wtSettings.getSetting("rowHeight",e);const o=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==o&&(t=void 0===t?o:Math.max(t,o)),t}getHeightByOverlayName(e,t){let o=this.wtSettings.getSetting("rowHeightByOverlayName",e,t);const s=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==s&&(o=void 0===o?s:Math.max(o,s)),o}}},47873:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834),o(14846),o(69655);var s=o(94916),r=o(59350);function n(e,t,o){i(e,t),t.set(e,o)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(h(e,t))}function a(e,t,o){return e.set(h(e,t),o),o}function h(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 c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(){const e=this.getCSSVariableValue("line-height"),t=this.getCSSVariableValue("cell-vertical-padding"),o=Math.ceil(parseFloat(this.getStyleForTD("border-bottom-width")));return null===e||null===t||isNaN(o)?null:e+2*t+o}function v(){(0,s.removeClass)(l(u,this),/ht-theme-.*/g),(0,s.addClass)(l(u,this),l(c,this))}function y(){this.isClassicTheme()||a(d,this,getComputedStyle(l(u,this)));const e=h(w,this,E).call(this,["box-sizing","border-bottom-width"]);l(m,this).td={...l(m,this).td,"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}function E(e){const t=l(g,this),o=l(u,this),s=t.createElement("table"),r=t.createElement("tbody"),n=t.createElement("tr"),i=t.createElement("tr"),a=t.createElement("td");i.appendChild(a),r.appendChild(n),r.appendChild(i),s.appendChild(r),o.appendChild(s);const h=getComputedStyle(a),c={};return e.forEach((e=>{c[e]=h.getPropertyValue(e)})),o.removeChild(s),c}function S(e){const t=Math.ceil(parseFloat(h(w,this,R).call(this,e)));return Number.isNaN(t)?null:t}function R(e){const t=l(d,this).getPropertyValue(e);return""===t?null:t}function b(){a(m,this,{}),a(p,this,{}),a(f,this,!0)}t.StylesHandler=class{constructor(e){var t,o;i(t=this,o=w),o.add(t),n(this,c,void 0),n(this,u,void 0),n(this,d,void 0),n(this,g,void 0),n(this,f,!0),n(this,p,{}),n(this,m,{}),a(u,this,e.rootTable.parentElement.parentElement),a(g,this,e.rootDocument)}isClassicTheme(){return l(f,this)}getCSSVariableValue(e){var t;if(l(f,this))return null;if(l(p,this)[`--ht-${e}`])return l(p,this)[`--ht-${e}`];const o=null!==(t=h(w,this,S).call(this,`--ht-${e}`))&&void 0!==t?t:h(w,this,R).call(this,`--ht-${e}`);return null!==o?(l(p,this)[`--ht-${e}`]=o,o):void 0}getStyleForTD(e){var t;return null===(t=l(m,this))||void 0===t?void 0:t.td[e]}getDefaultRowHeight(){if(l(f,this))return 23;const e=h(w,this,C).call(this);return!e&&(0,s.hasClass)(l(u,this),"ht-wrapper")?((0,r.warn)(`The "${l(c,this)}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`),a(f,this,!0),this.useTheme(),23):e}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){if(!e)return h(w,this,y).call(this),a(f,this,!0),void a(c,this,e||void 0);e&&e!==l(c,this)&&(l(c,this)&&h(w,this,b).call(this),a(c,this,e),a(f,this,!1),h(w,this,v).call(this),h(w,this,y).call(this))}getThemeName(){return l(c,this)}removeClassNames(){(0,s.hasClass)(l(u,this),l(c,this))&&(0,s.removeClass)(l(u,this),l(c,this))}}},4255:(e,t,o)=>{"use strict";t.__esModule=!0,o(94364);var s=o(94916),r=o(95016),n=o(14426);t.default=class{constructor(e,t,o,s,r){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=o,this.wtTable=r,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.rowsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllRows")?new n.RenderedAllRowsCalculationType:new n.RenderedRowsCalculationType],["fullyVisible",()=>new n.FullyVisibleRowsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleRowsCalculationType]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new n.RenderedAllColumnsCalculationType:new n.RenderedColumnsCalculationType],["fullyVisible",()=>new n.FullyVisibleColumnsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleColumnsCalculationType]]),this.eventManager=s,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",(()=>{this.clientHeight=this.getWorkspaceHeight()}))}getWorkspaceHeight(){const e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer;let o=0;if(t===this.domBindings.rootWindow)o=e.documentElement.clientHeight;else{o=(0,s.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0}return o}getViewportHeight(){let e=this.getWorkspaceHeight();if(e===1/0)return e;const t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}getWorkspaceWidth(){const{rootDocument:e,rootWindow:t}=this.domBindings,o=this.dataAccessObject.inlineStartOverlayTrimmingContainer;let s;if(o===t){const t=this.wtSettings.getSetting("totalColumns");s=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>s&&(s=e.documentElement.clientWidth)}else s=o.clientWidth;return s}getViewportWidth(){const e=this.getWorkspaceWidth();if(e===1/0)return e;const t=this.getRowHeaderWidth();return t>0?e-t:e}hasVerticalScroll(){return this.wtTable.hider.offsetHeight>this.getWorkspaceHeight()}hasHorizontalScroll(){return this.wtTable.hider.offsetWidth>this.getWorkspaceWidth()}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let o=0,s=e;for(;s<t;)o+=this.wtTable.getColumnWidth(s),s+=1;return o}getWorkspaceOffset(){return(0,s.offset)(this.wtTable.TABLE)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,s.outerHeight)(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}getRowHeaderWidth(){const e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(let o=0,s=t.length;o<s;o++)this.rowHeaderWidth+=e[o]||e}if(isNaN(this.rowHeaderWidth))if(t.length){let e=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(let o=0,r=t.length;o<r;o++)e?(this.rowHeaderWidth+=(0,s.outerWidth)(e),e=e.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}createRowsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let r,i,l=this.getViewportHeight();this.rowHeaderWidth=NaN;let a=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const h=t.getSetting("fixedRowsTop"),c=t.getSetting("fixedRowsBottom"),u=t.getSetting("totalRows");return h&&a>=0&&(i=this.dataAccessObject.topOverlay.sumCellSizes(0,h),a+=i,l-=i),c&&this.dataAccessObject.bottomOverlay.clone&&(i=this.dataAccessObject.bottomOverlay.sumCellSizes(u-c,u),l-=i),r=o.holder.clientHeight===o.holder.offsetHeight?0:(0,s.getScrollbarWidth)(this.domBindings.rootDocument),new n.ViewportRowsCalculator({calculationTypes:e.map((e=>[e,this.rowsCalculatorTypes.get(e)()])),viewportHeight:l,scrollOffset:a,totalRows:t.getSetting("totalRows"),defaultRowHeight:this.instance.stylesHandler.getDefaultRowHeight(),rowHeightFn:e=>o.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:r})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let r=this.getViewportWidth(),i=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const l=t.getSetting("fixedColumnsStart");if(l&&i>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,l);i+=e,r-=e}return o.holder.clientWidth!==o.holder.offsetWidth&&(r-=(0,s.getScrollbarWidth)(this.domBindings.rootDocument)),new n.ViewportColumnsCalculator({calculationTypes:e.map((e=>[e,this.columnsCalculatorTypes.get(e)()])),viewportWidth:r,scrollOffset:i,totalColumns:t.getSetting("totalColumns"),columnWidthFn:e=>o.getColumnWidth(e),overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}createCalculators(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,o=this.createRowsCalculator(),s=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=o.getResultsFor("fullyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t)}if(e&&!t.getSetting("renderAllColumns")){const t=s.getResultsFor("fullyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t)}return e||(this.rowsRenderCalculator=o.getResultsFor("rendered"),this.columnsRenderCalculator=s.getResultsFor("rendered")),this.rowsVisibleCalculator=o.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=s.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=o.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=s.getResultsFor("partiallyVisible"),e}createVisibleCalculators(){const e=this.createRowsCalculator(["fullyVisible","partiallyVisible"]),t=this.createColumnsCalculator(["fullyVisible","partiallyVisible"]);this.rowsVisibleCalculator=e.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=t.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=e.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=t.getResultsFor("partiallyVisible")}areAllProposedVisibleRowsAlreadyRendered(e){if(!this.rowsVisibleCalculator)return!1;let{startRow:t,endRow:o}=e;if(null===t&&null===o){if(!e.isVisibleInTrimmingContainer)return!0;t=this.rowsPartiallyVisibleCalculator.startRow,o=this.rowsPartiallyVisibleCalculator.endRow}const{startRow:s,endRow:r,rowStartOffset:n,rowEndOffset:i}=this.rowsRenderCalculator,l=this.wtSettings.getSetting("totalRows")-1,a=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(a)&&a>0?(t=Math.max(0,t-Math.min(n,a)),o=Math.min(l,o+Math.min(i,a))):"auto"===a&&(t=Math.max(0,t-Math.ceil(n/2)),o=Math.min(l,o+Math.ceil(i/2))),!(t<s||t===s&&t>0)&&!(o>r||o===r&&o<l)}areAllProposedVisibleColumnsAlreadyRendered(e){if(!this.columnsVisibleCalculator)return!1;let{startColumn:t,endColumn:o}=e;if(null===t&&null===o){if(!e.isVisibleInTrimmingContainer)return!0;t=this.columnsPartiallyVisibleCalculator.startColumn,o=this.columnsPartiallyVisibleCalculator.endColumn}const{startColumn:s,endColumn:r,columnStartOffset:n,columnEndOffset:i}=this.columnsRenderCalculator,l=this.wtSettings.getSetting("totalColumns")-1,a=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(a)&&a>0?(t=Math.max(0,t-Math.min(n,a)),o=Math.min(l,o+Math.min(i,a))):"auto"===a&&(t=Math.max(0,t-Math.ceil(n/2)),o=Math.min(l,o+Math.ceil(i/2))),!(t<s||t===s&&t>0)&&!(o>r||o===r&&o<l)}resetHasOversizedColumnHeadersMarked(){(0,r.objectEach)(this.hasOversizedColumnHeadersMarked,((e,t,o)=>{o[t]=void 0}))}}},19984:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(76006);var r=s(o(47098)),n=o(91980),i=o(8752),l=o(29398),a=o(84435),h=o(39548),c=o(77867),u=o(95605),d=o(7749);function g(e,t){const o=new r.default(e,t||{},n.rootInstanceSymbol);return o.init(),o}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(c.TextCellType),g.editors={BaseEditor:u.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new r.default(e,t,n.rootInstanceSymbol)},g.DefaultSettings=(0,i.metaSchemaFactory)(),g.hooks=l.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="13/01/2025 13:48:05",g.version="0.0.0-next-9779557-20250113",g.languages={dictionaryKeys:a.dictionaryKeys,getLanguageDictionary:a.getLanguageDictionary,getLanguagesDictionaries:a.getLanguagesDictionaries,registerLanguageDictionary:a.registerLanguageDictionary,getTranslatedPhrase:a.getTranslatedPhrase};t.default=g},25306:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(85588),r=o(8132),n=o(77924);const i=t.CELL_TYPE="autocomplete";t.AutocompleteCellType={CELL_TYPE:i,editor:s.AutocompleteEditor,renderer:r.autocompleteRenderer,validator:n.autocompleteValidator}},37924:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(25306);t.AutocompleteCellType=s.AutocompleteCellType,t.CELL_TYPE=s.CELL_TYPE},93620:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(60213),r=o(50437);const n=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:n,editor:s.CheckboxEditor,renderer:r.checkboxRenderer}},26705:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(93620);t.CELL_TYPE=s.CELL_TYPE,t.CheckboxCellType=s.CheckboxCellType},86846:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(48584),r=o(69868),n=o(21304);const i=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:i,editor:s.DateEditor,renderer:r.dateRenderer,validator:n.dateValidator}},36164:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(86846);t.CELL_TYPE=s.CELL_TYPE,t.DateCellType=s.DateCellType},9364:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(73717),r=o(16293),n=o(25479);const i=t.CELL_TYPE="dropdown";t.DropdownCellType={CELL_TYPE:i,editor:s.DropdownEditor,renderer:r.dropdownRenderer,validator:n.dropdownValidator,filter:!1,strict:!0}},40037:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(9364);t.CELL_TYPE=s.CELL_TYPE,t.DropdownCellType=s.DropdownCellType},52644:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(27973),r=o(89629);const n=t.CELL_TYPE="handsontable";t.HandsontableCellType={CELL_TYPE:n,editor:s.HandsontableEditor,renderer:r.handsontableRenderer}},74505:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(52644);t.CELL_TYPE=s.CELL_TYPE,t.HandsontableCellType=s.HandsontableCellType},23651:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllCellTypes=function(){(0,g.registerCellType)(s.AutocompleteCellType),(0,g.registerCellType)(r.CheckboxCellType),(0,g.registerCellType)(n.DateCellType),(0,g.registerCellType)(i.DropdownCellType),(0,g.registerCellType)(l.HandsontableCellType),(0,g.registerCellType)(a.NumericCellType),(0,g.registerCellType)(h.PasswordCellType),(0,g.registerCellType)(c.SelectCellType),(0,g.registerCellType)(u.TextCellType),(0,g.registerCellType)(d.TimeCellType)};var s=o(37924);t.AutocompleteCellType=s.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=s.CELL_TYPE;var r=o(26705);t.CheckboxCellType=r.CheckboxCellType,t.CHECKBOX_TYPE=r.CELL_TYPE;var n=o(36164);t.DateCellType=n.DateCellType,t.DATE_TYPE=n.CELL_TYPE;var i=o(40037);t.DropdownCellType=i.DropdownCellType,t.DROPDOWN_TYPE=i.CELL_TYPE;var l=o(74505);t.HandsontableCellType=l.HandsontableCellType,t.HANDSONTABLE_TYPE=l.CELL_TYPE;var a=o(80087);t.NumericCellType=a.NumericCellType,t.NUMERIC_TYPE=a.CELL_TYPE;var h=o(28033);t.PasswordCellType=h.PasswordCellType,t.PASSWORD_TYPE=h.CELL_TYPE;var c=o(78568);t.SelectCellType=c.SelectCellType,t.SELECT_TYPE=c.CELL_TYPE;var u=o(77867);t.TextCellType=u.TextCellType,t.TEXT_TYPE=u.CELL_TYPE;var d=o(80721);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var g=o(39548);t.registerCellType=g.registerCellType,t.getCellType=g.getCellType,t.getRegisteredCellTypeNames=g.getRegisteredCellTypeNames,t.getRegisteredCellTypes=g.getRegisteredCellTypes,t.hasCellType=g.hasCellType},80087:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(9404);t.CELL_TYPE=s.CELL_TYPE,t.NumericCellType=s.NumericCellType},9404:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(67045),r=o(65617),n=o(28029);const i=t.CELL_TYPE="numeric";t.NumericCellType={CELL_TYPE:i,editor:s.NumericEditor,renderer:r.numericRenderer,validator:n.numericValidator,dataType:"number"}},28033:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(14508);t.CELL_TYPE=s.CELL_TYPE,t.PasswordCellType=s.PasswordCellType},14508:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(75669),r=o(24677);const n=t.CELL_TYPE="password";t.PasswordCellType={CELL_TYPE:n,editor:s.PasswordEditor,renderer:r.passwordRenderer,copyable:!1}},39548:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.getCellType=function(e){if(!c(e))throw Error(`You declared cell type "${e}" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by\n "Handsontable.cellTypes.registerCellType" method`);return h(e)},t.registerCellType=function(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);const{editor:o,renderer:s,validator:r}=t;o&&(0,n.registerEditor)(e,o);s&&(0,i.registerRenderer)(e,s);r&&(0,l.registerValidator)(e,r);a(e,t)},o(67834);var r=s(o(29328)),n=o(45973),i=o(58151),l=o(57006);const{register:a,getItem:h,hasItem:c,getNames:u,getValues:d}=(0,r.default)("cellTypes");t.getRegisteredCellTypes=d,t.getRegisteredCellTypeNames=u,t.hasCellType=c},78568:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(90910);t.CELL_TYPE=s.CELL_TYPE,t.SelectCellType=s.SelectCellType},90910:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(31572),r=o(9608);const n=t.CELL_TYPE="select";t.SelectCellType={CELL_TYPE:n,editor:s.SelectEditor,renderer:r.selectRenderer}},77867:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(83580);t.CELL_TYPE=s.CELL_TYPE,t.TextCellType=s.TextCellType},83580:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(53423),r=o(5819);const n=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:n,editor:s.TextEditor,renderer:r.textRenderer}},80721:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(49176);t.CELL_TYPE=s.CELL_TYPE,t.TimeCellType=s.TimeCellType},49176:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(3833),r=o(35133),n=o(40711);const i=t.CELL_TYPE="time";t.TimeCellType={CELL_TYPE:i,editor:s.TimeEditor,renderer:r.timeRenderer,validator:n.timeValidator}},47098:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.default=function(e,t){var o,s=this;let V=arguments.length>2&&void 0!==arguments[2]&&arguments[2],F=this;const W=new h.default(F);let B,U,j,Y,z,G,K=!0;(0,b.hasValidParameter)(V)&&(0,b.registerAsRootInstance)(this);this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const $=null!==(o=null==t?void 0:t.layoutDirection)&&void 0!==o?o:"inherit",X=["rtl","ltr"].includes($)?$:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",X),this.isRtl=function(){return"rtl"===X},this.isLtr=function(){return!F.isRtl()},this.getDirectionFactor=function(){return F.isLtr()?1:-1},t.language=(0,M.getValidLanguageCode)(t.language);const q=new N.MetaManager(F,t,[N.DynamicCellMetaMod,N.ExtendMetaPropertiesMod]),Q=q.getTableMeta(),J=q.getGlobalMeta(),Z=(0,P.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),(0,b.isRootInstance)(this)&&((0,i._injectProductInfo)(t.licenseKey,e),(0,r.addClass)(e,"ht-wrapper"));this.guid=`ht_${(0,C.randomString)()}`,L.set(this.guid,this),this.columnIndexMapper=new R.IndexMapper,this.rowIndexMapper=new R.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",(e=>{F.runHooks("afterColumnSequenceChange",e)})),this.rowIndexMapper.addLocalHook("indexesSequenceChange",(e=>{F.runHooks("afterRowSequenceChange",e)})),U=new E.default(F),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let ee=new I.Selection(Q,{rowIndexMapper:F.rowIndexMapper,columnIndexMapper:F.columnIndexMapper,countCols:()=>F.countCols(),countRows:()=>F.countRows(),propToCol:e=>B.propToCol(e),isEditorOpened:()=>!!F.getActiveEditor()&&F.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return s.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return s.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>F.getShortcutManager(),createCellCoords:(e,t)=>F._createCellCoords(e,t),createCellRange:(e,t,o)=>F._createCellRange(e,t,o),visualToRenderableCoords:e=>{const{row:t,col:o}=e;return F._createCellCoords(t>=0?F.rowIndexMapper.getRenderableFromVisualIndex(t):t,o>=0?F.columnIndexMapper.getRenderableFromVisualIndex(o):o)},renderableToVisualCoords:e=>{const{row:t,col:o}=e;return F._createCellCoords(t>=0?F.rowIndexMapper.getVisualFromRenderableIndex(t):t,o>=0?F.columnIndexMapper.getVisualFromRenderableIndex(o):o)},findFirstNonHiddenRenderableRow:(e,t)=>{const o=t>e?1:-1,s=Math.min(e,t),r=Math.max(e,t),n=F.rowIndexMapper.getNearestNotHiddenIndex(e,o);return null===n||1===o&&n>r||-1===o&&n<s?null:n>=0?F.rowIndexMapper.getRenderableFromVisualIndex(n):n},findFirstNonHiddenRenderableColumn:(e,t)=>{const o=t>e?1:-1,s=Math.min(e,t),r=Math.max(e,t),n=F.columnIndexMapper.getNearestNotHiddenIndex(e,o);return null===n||1===o&&n>r||-1===o&&n<s?null:n>=0?F.columnIndexMapper.getRenderableFromVisualIndex(n):n},isDisabledCellSelection:(e,t)=>e<0||t<0?F.getSettings().disableVisualSelection:F.getCellMeta(e,t).disableVisualSelection});this.selection=ee;const te=e=>{let{hiddenIndexesChanged:t}=e;t&&this.selection.commit()};function oe(e){const t=(0,O.normalizeLanguageCode)(e);(0,M.hasLanguageDictionary)(t)?(F.runHooks("beforeLanguageChange",t),J.language=t,F.runHooks("afterLanguageChange",t)):(0,O.warnUserAboutLanguageRegistration)(e)}function se(e,t){const o="className"===e?F.rootElement:F.table;if(K)(0,r.addClass)(o,t);else{let s=[],n=[];J[e]&&(s=Array.isArray(J[e])?J[e]:(0,d.stringToArray)(J[e])),t&&(n=Array.isArray(t)?t:(0,d.stringToArray)(t));const i=(0,d.getDifferenceOfArrays)(s,n),l=(0,d.getDifferenceOfArrays)(n,s);i.length&&(0,r.removeClass)(o,i),l.length&&(0,r.addClass)(o,l)}J[e]=t}function re(){let e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty(){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function ne(e){const t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function ie(e,t,o){if(!e.length)return void o();const s=F.getActiveEditor(),r=new re;let n=!0;r.onQueueEmpty=()=>{s&&n&&s.cancelChanges(),o()};for(let o=e.length-1;o>=0;o--){const[s,i]=e[o],l=B.propToCol(i);let a;a=Number.isInteger(l)?F.getCellMeta(s,l):{...Object.getPrototypeOf(Q),...Q},F.getCellValidator(a)&&(r.addValidatorToQueue(),F.validateCell(e[o][3],a,function(t,o){return function(s){if("boolean"!=typeof s)throw new Error("Validation error: result is not boolean");!1===s&&!1===o.allowInvalid&&(n=!1,e.splice(t,1),o.valid=!0),r.removeValidatorFormQueue()}}(o,a),t))}r.checkIfQueueIsEmpty()}function le(e,t){for(let t=e.length-1;t>=0;t--){let o=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(Q.allowInsertRow)for(;e[t][0]>F.countRows()-1;){const{delta:e}=B.createRow(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}if("array"===F.dataType&&(!Q.columns||0===Q.columns.length)&&Q.allowInsertColumn)for(;B.propToCol(e[t][1])>F.countCols()-1;){const{delta:e}=B.createCol(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}o||B.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}const o=e.length>0;if(F.forceFullRender=!0,o){j.adjustRowsAndCols(),F.runHooks("beforeChangeRender",e,t),Y.closeEditor(),F.view.render(),Y.prepareEditor(),F.view.adjustElementsSize(),F.runHooks("afterChange",e,t||"edit");const o=F.getActiveEditor();o&&(0,i.isDefined)(o.refreshValue)&&o.refreshValue()}else F.view.render()}function ae(e,t,o){return Array.isArray(e)?e:[[e,t,o]]}function he(e,t){const o=F.runHooks("beforeChange",e,t||"edit"),s=e.filter((e=>null!==e));var r;if(!1===o||0===s.length)return null===(r=F.getActiveEditor())||void 0===r||r.cancelChanges(),[];for(let e=s.length-1;e>=0;e--){const[t,o,,r]=s[e],n=B.propToCol(o);let i;i=Number.isInteger(n)?F.getCellMeta(t,n):{...Object.getPrototypeOf(Q),...Q},"numeric"===i.type&&"string"==typeof r&&(0,v.isNumericLike)(r)&&(s[e][3]=ne(r))}return s}this.columnIndexMapper.addLocalHook("cacheUpdated",te),this.rowIndexMapper.addLocalHook("cacheUpdated",te),this.selection.addLocalHook("afterSetRangeEnd",((e,t)=>{const o=(0,c.createObjectPropListener)(!1),s=this.selection.getSelectedRange(),{from:n,to:i}=s.current(),l=s.size()-1;this.runHooks("afterSelection",n.row,n.col,i.row,i.col,o,l),this.runHooks("afterSelectionByProp",n.row,F.colToProp(n.col),i.row,F.colToProp(i.col),o,l),t&&(!o.isTouched()||o.isTouched()&&!o.value)&&G.scrollTo(e);const a=ee.isSelectedByRowHeader(),h=ee.isSelectedByColumnHeader();a&&h?(0,r.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):a?((0,r.removeClass)(this.rootElement,"ht__selection--columns"),(0,r.addClass)(this.rootElement,"ht__selection--rows")):h?((0,r.removeClass)(this.rootElement,"ht__selection--rows"),(0,r.addClass)(this.rootElement,"ht__selection--columns")):(0,r.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),"shift"!==ee.getSelectionSource()&&Y.closeEditor(null),F.view.render(),Y.prepareEditor()})),this.selection.addLocalHook("beforeSetFocus",(e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)})),this.selection.addLocalHook("afterSetFocus",(e=>{const t=(0,c.createObjectPropListener)(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&G.scrollTo(e),Y.closeEditor(),F.view.render(),Y.prepareEditor()})),this.selection.addLocalHook("afterSelectionFinished",(e=>{const t=e.length-1,{from:o,to:s}=e[t];this.runHooks("afterSelectionEnd",o.row,o.col,s.row,s.col,t),this.runHooks("afterSelectionEndByProp",o.row,F.colToProp(o.col),s.row,F.colToProp(s.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("afterDeselect",(()=>{Y.closeEditor(),F.view.render(),(0,r.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")})),this.selection.addLocalHook("beforeHighlightSet",(()=>this.runHooks("beforeSelectionHighlightSet"))).addLocalHook("beforeSetRangeStart",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSetRangeStart",...t)})).addLocalHook("beforeSetRangeStartOnly",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSetRangeStartOnly",...t)})).addLocalHook("beforeSetRangeEnd",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSetRangeEnd",...t)})).addLocalHook("beforeSelectColumns",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSelectColumns",...t)})).addLocalHook("afterSelectColumns",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterSelectColumns",...t)})).addLocalHook("beforeSelectRows",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSelectRows",...t)})).addLocalHook("afterSelectRows",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterSelectRows",...t)})).addLocalHook("beforeModifyTransformStart",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("modifyTransformStart",...t)})).addLocalHook("afterModifyTransformStart",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterModifyTransformStart",...t)})).addLocalHook("beforeModifyTransformFocus",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("modifyTransformFocus",...t)})).addLocalHook("afterModifyTransformFocus",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterModifyTransformFocus",...t)})).addLocalHook("beforeModifyTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("modifyTransformEnd",...t)})).addLocalHook("afterModifyTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterModifyTransformEnd",...t)})).addLocalHook("beforeRowWrap",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeRowWrap",...t)})).addLocalHook("beforeColumnWrap",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeColumnWrap",...t)})).addLocalHook("insertRowRequire",(e=>this.alter("insert_row_above",e,1,"auto"))).addLocalHook("insertColRequire",(e=>this.alter("insert_col_start",e,1,"auto"))),j={alter(e,t){var o,s;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0;const a=e=>{if(0===e.length)return[];const t=[...e];t.sort(((e,t)=>{let[o]=e,[s]=t;return o===s?0:o>s?1:-1}));return(0,d.arrayReduce)(t,((e,t)=>{let[o,s]=t;const r=e[e.length-1],[n,i]=r,l=n+i;if(o<=l){const e=Math.max(s-(l-o),0);r[1]+=e}else e.push([o,s]);return e}),[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const l=F.countSourceRows();if(Q.maxRows===l)return;const h="insert_row_below"===e?"below":"above";t=null!==(o=t)&&void 0!==o?o:"below"===h?l:0;const{delta:c,startPhysicalIndex:u}=B.createRow(t,r,{source:n,mode:h});ee.shiftRows(F.toVisualRow(u),c);break;case"insert_col_start":case"insert_col_end":const g="insert_col_end"===e?"end":"start";t=null!==(s=t)&&void 0!==s?s:"end"===g?F.countSourceCols():0;const{delta:f,startPhysicalIndex:p}=B.createCol(t,r,{source:n,mode:g});if(f){if(Array.isArray(Q.colHeaders)){const e=[F.toVisualColumn(p),0];e.length+=f,Array.prototype.splice.apply(Q.colHeaders,e)}ee.shiftColumns(F.toVisualColumn(p),f)}break;case"remove_row":const m=e=>{let t=0;(0,d.arrayEach)(e,(e=>{let[o,s]=e;const r=(0,i.isEmpty)(o)?F.countRows()-1:Math.max(o-t,0);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!B.removeRow(o,s,n))return;if(ee.isSelected()){const{row:e}=F.getSelectedRangeLast().highlight;e>=o&&e<=o+s-1&&Y.closeEditor(!0)}const l=F.countRows();0===l?ee.deselect():"ContextMenu.removeRow"===n?ee.refresh():ee.shiftRows(o,-s);const a=Q.fixedRowsTop;a>=r+1&&(Q.fixedRowsTop-=Math.min(s,a-r));const h=Q.fixedRowsBottom;h&&r>=l-h&&(Q.fixedRowsBottom-=Math.min(s,h)),t+=s}))};Array.isArray(t)?m(a(t)):m([[t,r]]);break;case"remove_col":const w=e=>{let t=0;(0,d.arrayEach)(e,(e=>{let[o,s]=e;const r=(0,i.isEmpty)(o)?F.countCols()-1:Math.max(o-t,0);let l=F.toPhysicalColumn(r);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!B.removeCol(o,s,n))return;if(ee.isSelected()){const{col:e}=F.getSelectedRangeLast().highlight;e>=o&&e<=o+s-1&&Y.closeEditor(!0)}0===F.countCols()?ee.deselect():"ContextMenu.removeColumn"===n?ee.refresh():ee.shiftColumns(o,-s);const a=Q.fixedColumnsStart;a>=r+1&&(Q.fixedColumnsStart-=Math.min(s,a-r)),Array.isArray(Q.colHeaders)&&(void 0===l&&(l=-1),Q.colHeaders.splice(l,s)),t+=s}))};Array.isArray(t)?w(a(t)):w([[t,r]]);break;default:throw new Error(`There is no such action "${e}"`)}l||j.adjustRowsAndCols(),F.view.render(),F.view.adjustElementsSize()},adjustRowsAndCols(){const e=Q.minRows,t=Q.minSpareRows,o=Q.minCols,s=Q.minSpareCols;if(e){const t=F.countRows();t<e&&B.createRow(t,e-t,{source:"auto"})}if(t){const e=F.countEmptyRows(!0);if(e<t){const o=t-e,s=Math.min(o,Q.maxRows-F.countSourceRows());B.createRow(F.countRows(),s,{source:"auto"})}}{let e;(o||s)&&(e=F.countEmptyCols(!0));let t=F.countCols();if(o&&!Q.columns&&t<o){const s=o-t;e+=s,B.createCol(t,s,{source:"auto"})}if(s&&!Q.columns&&"array"===F.dataType&&e<s){t=F.countCols();const o=s-e,r=Math.min(o,Q.maxCols-t);B.createCol(t,r,{source:"auto"})}}},populateFromArray(e,t,o,s,r){let n,i,l,a;const h=[],u={},g=[],f=e.row,p=e.col;if(i=t.length,0===i)return!1;let m=0,w=0;switch((0,c.isObject)(o)&&(m=o.col-p+1,w=o.row-f+1),r){case"shift_down":const r=(0,d.pivot)(t),C=r.length,v=Math.max(C,m),y=F.getData().slice(f),E=(0,d.pivot)(y).slice(p,p+v);for(l=0;l<v;l+=1)if(l<C){for(n=0,i=r[l].length;n<w-i;n+=1)r[l].push(r[l][n%i]);l<E.length?g.push(r[l].concat(E[l])):g.push(r[l].concat(new Array(y.length).fill(null)))}else g.push(r[l%C].concat(E[l]));F.populateFromArray(f,p,(0,d.pivot)(g));break;case"shift_right":const S=t.length,R=Math.max(S,w),b=F.getData().slice(f).map((e=>e.slice(p)));for(n=0;n<R;n+=1)if(n<S){for(l=0,a=t[n].length;l<m-a;l+=1)t[n].push(t[n][l%a]);if(n<b.length)for(let e=0;e<b[n].length;e+=1)t[n].push(b[n][e]);else t[n].push(...new Array(b[0].length).fill(null))}else t.push(t[n%i].slice(0,R).concat(b[n]));F.populateFromArray(f,p,t);break;default:u.row=e.row,u.col=e.col;let _,T=0,M=0,O=!0;const I=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const s=t[e%t.length];return null!==o?s[o%s.length]:s},N=t.length,A=o?o.row-e.row+1:0;for(i=o?A:Math.max(N,A),n=0;n<i&&!(o&&u.row>o.row&&A>N||!Q.allowInsertRow&&u.row>F.countRows()-1||u.row>=Q.maxRows);n++){const t=n-T,r=I(t).length,d=o?o.col-e.col+1:0;if(a=o?d:Math.max(r,d),u.col=e.col,_=F.getCellMeta(u.row,u.col),"CopyPaste.paste"!==s&&"Autofill.fill"!==s||!_.skipRowOnPaste){for(M=0,l=0;l<a&&!(o&&u.col>o.col&&d>r||!Q.allowInsertColumn&&u.col>F.countCols()-1||u.col>=Q.maxCols);l++){if(_=F.getCellMeta(u.row,u.col),("CopyPaste.paste"===s||"Autofill.fill"===s)&&_.skipColumnOnPaste){M+=1,u.col+=1,a+=1;continue}if(_.readOnly&&"UndoRedo.undo"!==s){u.col+=1;continue}let e=I(t,l-M),o=F.getDataAtCell(u.row,u.col);if(null!==e&&"object"==typeof e)if(Array.isArray(e)&&null===o&&(o=[]),null===o||"object"!=typeof o)O=!1;else{const t=(0,c.duckSchema)(Array.isArray(o)?o:o[0]||o),s=(0,c.duckSchema)(Array.isArray(e)?e:e[0]||e);(0,c.isObjectEqual)(t,s)||Array.isArray(t)&&Array.isArray(s)?e=(0,c.deepClone)(e):O=!1}else null!==o&&"object"==typeof o&&(O=!1);O&&h.push([u.row,u.col,e]),O=!0,u.col+=1}u.row+=1}else T+=1,u.row+=1,i+=1}F.setDataAtCell(h,null,null,s||"populateFromArray")}}},this.init=function(){U.setData(Q.data),F.runHooks("beforeInit"),((0,l.isMobileBrowser)()||(0,l.isIpadOS)())&&(0,r.addClass)(F.rootElement,"mobile"),this.updateSettings(Q,!0),this.view=new y.default(this);const e=Q.themeName||(0,D.getThemeClassName)(F.rootElement);F.useTheme(e),F.view.addClassNameToLicenseElement(F.getCurrentThemeName()),Y=a.default.getInstance(F,Q,ee),G=(0,A.createViewportScroller)(F),z=new u.FocusManager(F),(0,b.isRootInstance)(this)&&(0,A.installFocusCatcher)(F),F.runHooks("init"),this.forceFullRender=!0,this.view.render(),K&&null===F.rootElement.offsetParent&&(0,r.observeVisibilityChangeOnce)(F.rootElement,(()=>{F.view._wt.wtOverlays.updateLastSpreaderSize(),F.render(),F.view.adjustElementsSize()})),"object"==typeof K&&(F.runHooks("afterChange",K[0],K[1]),K=!1),F.runHooks("afterInit")},this._createCellCoords=function(e,t){return F.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,o){return F.view._wt.createCellRange(e,t,o)},this.validateCell=function(e,t,o,s){let r=F.getCellValidator(t);function l(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void o(e);const s=t.visualCol,r=t.visualRow,n=F.getCell(r,s,!0);if(n&&"TH"!==n.nodeName){const e=F.rowIndexMapper.getRenderableFromVisualIndex(r),t=F.columnIndexMapper.getRenderableFromVisualIndex(s);F.view._wt.getSetting("cellRenderer",e,t,n)}o(e)}var a;(0,i.isRegExp)(r)&&(a=r,r=function(e,t){t(a.test(e))}),(0,n.isFunction)(r)?(e=F.runHooks("beforeValidate",e,t.visualRow,t.prop,s),F._registerImmediate((()=>{r.call(t,e,(o=>{F&&(o=F.runHooks("afterValidate",o,e,t.visualRow,t.prop,s),t.valid=o,l(o),F.runHooks("postAfterValidate",o,e,t.visualRow,t.prop,s))}))}))):F._registerImmediate((()=>{t.valid=!0,l(t.valid,!1)}))},this.setDataAtCell=function(e,t,o,s){const r=ae(e,t,o),n=[];let i,l,a,h=s;for(i=0,l=r.length;i<l;i++){if("object"!=typeof r[i])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof r[i][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");a=r[i][1]>=this.countCols()?r[i][1]:B.colToProp(r[i][1]),n.push([r[i][0],a,U.getAtCell(this.toPhysicalRow(r[i][0]),r[i][1]),r[i][2]])}h||"object"!=typeof e||(h=t);const c=he(n,h);F.runHooks("afterSetDataAtCell",c,h),ie(c,h,(()=>{le(c,h)}))},this.setDataAtRowProp=function(e,t,o,s){const r=ae(e,t,o),n=[];let i,l,a=s;for(i=0,l=r.length;i<l;i++)n.push([r[i][0],r[i][1],U.getAtCell(this.toPhysicalRow(r[i][0]),r[i][1]),r[i][2]]);a||"object"!=typeof e||(a=t);const h=he(n,s);F.runHooks("afterSetDataAtRowProp",h,a),ie(h,a,(()=>{le(h,a)}))},this.listen=function(){F&&!F.isListening()&&(L.forEach((e=>{F!==e&&e.unlisten()})),k=F.guid,F.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(k=null,F.runHooks("afterUnlisten"))},this.isListening=function(){return k===F.guid},this.destroyEditor=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Y.closeEditor(e),F.view.render(),t&&ee.isSelected()&&Y.prepareEditor()},this.populateFromArray=function(e,t,o,s,r,n,i){if("object"!=typeof o||"object"!=typeof o[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const l="number"==typeof s?F._createCellCoords(s,r):null;return j.populateFromArray(F._createCellCoords(e,t),o,l,n,i)},this.spliceCol=function(e,t,o){for(var s=arguments.length,r=new Array(s>3?s-3:0),n=3;n<s;n++)r[n-3]=arguments[n];return B.spliceCol(e,t,o,...r)},this.spliceRow=function(e,t,o){for(var s=arguments.length,r=new Array(s>3?s-3:0),n=3;n<s;n++)r[n-3]=arguments[n];return B.spliceRow(e,t,o,...r)},this.getSelected=function(){if(ee.isSelected())return(0,d.arrayMap)(ee.getSelectedRange(),(e=>{let{from:t,to:o}=e;return[t.row,t.col,o.row,o.col]}))},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRange=function(){if(ee.isSelected())return Array.from(ee.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.emptySelectedCells=function(e){if(!ee.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,d.arrayEach)(ee.getSelectedRange(),(e=>{if(e.isSingleHeader())return;const o=e.getTopStartCorner(),s=e.getBottomEndCorner();(0,v.rangeEach)(o.row,s.row,(e=>{(0,v.rangeEach)(o.col,s.col,(o=>{this.getCellMeta(e,o).readOnly||t.push([e,o,null])}))}))})),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||(this.renderCall?this.render():F.view.render())},this.render=function(){this.view&&(this.renderCall=!0,this.forceFullRender=!0,this.isRenderSuspended()||F.view.render())},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const o=e();return this.resumeExecution(t),o},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!F.view)return;const e=F.view,{width:t,height:o}=e.getLastSize(),{width:s,height:r}=F.rootElement.getBoundingClientRect(),n=s!==t||r!==o;!1===F.runHooks("beforeRefreshDimensions",{width:t,height:o},{width:s,height:r},n)||((n||e._wt.wtOverlays.scrollableElement===F.rootWindow)&&(e.setLastSize(s,r),F.render(),e.adjustElementsSize()),F.runHooks("afterRefreshDimensions",{width:t,height:o},{width:s,height:r},n))},this.updateData=function(e,t){(0,N.replaceData)(e,(e=>{B=e}),(e=>{B=e,F.columnIndexMapper.fitToLength(this.getInitialColumnCount()),F.rowIndexMapper.fitToLength(this.countSourceRows()),j.adjustRowsAndCols(),ee.refresh()}),{hotInstance:F,dataMap:B,dataSource:U,internalSource:"updateData",source:t,metaManager:q,firstRun:K})},this.loadData=function(e,t){(0,N.replaceData)(e,(e=>{B=e}),(()=>{q.clearCellsCache(),F.initIndexMappers(),j.adjustRowsAndCols(),ee.refresh(),K&&(K=[null,"loadData"])}),{hotInstance:F,dataMap:B,dataSource:U,internalSource:"loadData",source:t,metaManager:q,firstRun:K})},this.getInitialColumnCount=function(){const e=Q.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,n.isFunction)(e))if("array"===F.dataType){const o=this.countSourceCols();for(let s=0;s<o;s+=1)e(s)&&(t+=1)}else"object"!==F.dataType&&"function"!==F.dataType||(t=B.colToPropCache.length);else if((0,i.isDefined)(Q.dataSchema)){const e=B.getSchema();t=Array.isArray(e)?e.length:(0,c.deepObjectSize)(e)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,o,s){return(0,i.isUndefined)(e)?B.getAll():B.getRange(F._createCellCoords(e,t),F._createCellCoords(o,s),B.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,o,s){return B.getCopyableText(F._createCellCoords(e,t),F._createCellCoords(o,s))},this.getCopyableData=function(e,t){return B.getCopyable(e,B.colToProp(t))},this.getSchema=function(){return B.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(K?F.loadData:F.updateData).bind(this);let s,r,l=!1;if((0,i.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,i.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,i.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(s in e)"data"===s||("language"===s?oe(e.language):"className"===s?se("className",e.className):"tableClassName"===s&&F.table?(se("tableClassName",e.tableClassName),F.view._wt.wtOverlays.syncOverlayTableClassNames()):T.Hooks.getSingleton().isRegistered(s)||T.Hooks.getSingleton().isDeprecated(s)?(0,n.isFunction)(e[s])?T.Hooks.getSingleton().addAsFixed(s,e[s],F):Array.isArray(e[s])&&T.Hooks.getSingleton().add(s,e[s],F):!t&&(0,c.hasOwnProperty)(e,s)&&(J[s]=e[s]));void 0===e.data&&void 0===Q.data?o(null,"updateSettings"):void 0!==e.data?o(e.data,"updateSettings"):void 0!==e.columns&&(B.createMap(),F.initIndexMappers());const a=F.countCols(),h=Q.columns;if(h&&(0,n.isFunction)(h)&&(l=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||q.clearCache(),a>0)for(s=0,r=0;s<a;s++){if(h){const e=l?h(s):h[r];e&&q.updateColumnMeta(r,e)}r+=1}(0,i.isDefined)(e.cell)&&(0,c.objectEach)(e.cell,(e=>{F.setCellMetaObject(e.row,e.col,e)})),F.runHooks("afterCellMetaReset");let u=F.rootElement.style.height;""!==u&&(u=parseInt(F.rootElement.style.height,10));let d=e.height;if((0,n.isFunction)(d)&&(d=d()),t){F.rootElement.getAttribute("style")&&F.rootElement.setAttribute("data-initialstyle",F.rootElement.getAttribute("style"))}if(null===d){const e=F.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?F.rootElement.setAttribute("style",e):(F.rootElement.style.height="",F.rootElement.style.overflow="")}else void 0!==d&&(F.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,F.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,n.isFunction)(t)&&(t=t()),F.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}if(!t){if(F.view){F.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),F.view._wt.exportSettingsAsClassNames();const t=F.getCurrentThemeName(),o=(0,c.hasOwnProperty)(e,"themeName");t&&o&&t!==e.themeName&&(F.view.getStylesHandler().removeClassNames(),F.view.removeClassNameFromLicenseElement(t));const s=o&&e.themeName||(0,D.getThemeClassName)(F.rootElement);F.useTheme(s),F.view.addClassNameToLicenseElement(F.getCurrentThemeName())}F.runHooks("afterUpdateSettings",e)}j.adjustRowsAndCols(),F.view&&!K&&(F.forceFullRender=!0,F.view.render(),F.view._wt.wtOverlays.adjustElementsSize())},this.getValue=function(){const e=F.getSelectedLast();if(Q.getValue){if((0,n.isFunction)(Q.getValue))return Q.getValue.call(F);if(e)return F.getData()[e[0][0]][Q.getValue]}else if(e)return F.getDataAtCell(e[0],e[1])},this.getSettings=function(){return Q},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,o,s,r){j.alter(e,t,o,s,r)},this.getCell=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=t,r=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;s=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;r=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===r||null===s||void 0===r||void 0===s?null:F.view.getCellAtCoords(F._createCellCoords(r,s),o)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:o,col:s}=t;let r=o,n=s;return o>=0&&(r=this.rowIndexMapper.getVisualFromRenderableIndex(o)),s>=0&&(n=this.columnIndexMapper.getVisualFromRenderableIndex(s)),F._createCellCoords(r,n)},this.colToProp=function(e){return B.colToProp(e)},this.propToCol=function(e){return B.propToCol(e)},this.toVisualRow=e=>this.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>this.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>this.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>this.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getDataAtCell=function(e,t){return B.get(e,B.colToProp(t))},this.getDataAtRowProp=function(e,t){return B.get(e,t)},this.getDataAtCol=function(e){const t=[],o=B.getRange(F._createCellCoords(0,e),F._createCellCoords(Q.data.length-1,e),B.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let s=0;s<o[e].length;s+=1)t.push(o[e][s]);return t},this.getDataAtProp=function(e){const t=[],o=B.getRange(F._createCellCoords(0,B.propToCol(e)),F._createCellCoords(Q.data.length-1,B.propToCol(e)),B.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let s=0;s<o[e].length;s+=1)t.push(o[e][s]);return t},this.getSourceData=function(e,t,o,s){let r;return r=void 0===e?U.getData():U.getByRange(F._createCellCoords(e,t),F._createCellCoords(o,s)),r},this.getSourceDataArray=function(e,t,o,s){let r;return r=void 0===e?U.getData(!0):U.getByRange(F._createCellCoords(e,t),F._createCellCoords(o,s),!0),r},this.getSourceDataAtCol=function(e){return U.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,o,s){const r=ae(e,t,o),n=this.hasHook("afterSetSourceDataAtCell"),l=[];n&&(0,d.arrayEach)(r,(e=>{let[t,o,s]=e;l.push([t,o,U.getAtCell(t,o),s])})),(0,d.arrayEach)(r,(e=>{let[t,o,s]=e;U.setAtCell(t,o,s)})),n&&this.runHooks("afterSetSourceDataAtCell",l,s),this.render();const a=F.getActiveEditor();a&&(0,i.isDefined)(a.refreshValue)&&a.refreshValue()},this.getSourceDataAtRow=function(e){return U.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return U.getAtCell(e,t)},this.getDataAtRow=function(e){return B.getRange(F._createCellCoords(e,0),F._createCellCoords(e,this.countCols()-1),B.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,o,s){const r=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,o,s],[n,i]=r;let[,,l,a]=r,h=null,c=null;void 0===l&&(l=n),void 0===a&&(a=i);let u="mixed";return(0,v.rangeEach)(Math.max(Math.min(n,l),0),Math.max(n,l),(e=>{let t=!0;return(0,v.rangeEach)(Math.max(Math.min(i,a),0),Math.max(i,a),(o=>{const s=this.getCellMeta(e,o);return c=s.type,h?t=h===c:h=c,t})),u=t?c:"mixed",t})),u},this.removeCellMeta=function(e,t,o){const[s,r]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let n=q.getCellMetaKeyValue(s,r,o);!1!==F.runHooks("beforeRemoveCellMeta",e,t,o,n)&&(q.removeCellMeta(s,r,o),F.runHooks("afterRemoveCellMeta",e,t,o,n)),n=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var o=arguments.length,s=new Array(o>2?o-2:0),r=2;r<o;r++)s[r-2]=arguments[r];if(s.length>0&&!Array.isArray(s[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&q.removeRow(this.toPhysicalRow(e),t),s.length>0&&(0,d.arrayEach)(s.reverse(),(t=>{q.createRow(this.toPhysicalRow(e)),(0,d.arrayEach)(t,((t,o)=>this.setCellMetaObject(e,o,t)))})),F.render()},this.setCellMetaObject=function(e,t,o){"object"==typeof o&&(0,c.objectEach)(o,((o,s)=>{this.setCellMeta(e,t,s,o)}))},this.setCellMeta=function(e,t,o,s){if(!1===F.runHooks("beforeSetCellMeta",e,t,o,s))return;let r=e,n=t;e<this.countRows()&&(r=this.toPhysicalRow(e)),t<this.countCols()&&(n=this.toPhysicalColumn(t)),q.setCellMeta(r,n,o,s),F.runHooks("afterSetCellMeta",e,t,o,s)},this.getCellsMeta=function(){return q.getCellsMeta()},this.getCellMeta=function(e,t){let o=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===o&&(o=e),null===s&&(s=t),q.getCellMeta(o,s,{visualRow:e,visualColumn:t})},this.getColumnMeta=function(e){return q.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return q.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===F.dataType||Q.columns)},this.getCellRenderer=function(e,t){const o="number"==typeof e?F.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof o?(0,p.getRenderer)(o):(0,i.isUndefined)(o)?(0,p.getRenderer)("text"):o},this.getCellEditor=function(e,t){const o="number"==typeof e?F.getCellMeta(e,t).editor:e.editor;return"string"==typeof o?(0,m.getEditor)(o):(0,i.isUndefined)(o)?(0,m.getEditor)("text"):o},this.getCellValidator=function(e,t){const o="number"==typeof e?F.getCellMeta(e,t).validator:e.validator;return"string"==typeof o?(0,w.getValidator)(o):o},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,o){const s=new re;e&&(s.onQueueEmpty=e);let r=F.countRows()-1;for(;r>=0;){if(void 0!==t&&-1===t.indexOf(r)){r-=1;continue}let e=F.countCols()-1;for(;e>=0;)void 0===o||-1!==o.indexOf(e)?(s.addValidatorToQueue(),F.validateCell(F.getDataAtCell(r,e),F.getCellMeta(r,e),(e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(s.valid=!1),s.removeValidatorFormQueue()}),"validateCells"),e-=1):e-=1;r-=1}s.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=Q.rowHeaders,o=e;return void 0!==o&&(o=F.runHooks("modifyRowHeader",o)),void 0===o?(t=[],(0,v.rangeEach)(F.countRows()-1,(e=>{t.push(F.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[o]?t=t[o]:(0,n.isFunction)(t)?t=t(o):t&&"string"!=typeof t&&"number"!=typeof t&&(t=o+1),t},this.hasRowHeaders=function(){return!!Q.rowHeaders},this.hasColHeaders=function(){if(void 0!==Q.colHeaders&&null!==Q.colHeaders)return!!Q.colHeaders;for(let e=0,t=F.countCols();e<t;e++)if(F.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const o=F.runHooks("modifyColHeader",e);if(void 0===o){const e=[],t=F.countCols();for(let o=0;o<t;o++)e.push(F.getColHeader(o));return e}let s=Q.colHeaders;const r=F.toPhysicalColumn(o),i=function(e){const t=[],o=F.countCols();let s=0;for(;s<o;s++)(0,n.isFunction)(Q.columns)&&Q.columns(s)&&t.push(s);return t[e]}(r);return!1===Q.colHeaders?s=null:Q.columns&&(0,n.isFunction)(Q.columns)&&Q.columns(i)&&Q.columns(i).title?s=Q.columns(i).title:Q.columns&&Q.columns[r]&&Q.columns[r].title?s=Q.columns[r].title:Array.isArray(Q.colHeaders)&&void 0!==Q.colHeaders[r]?s=Q.colHeaders[r]:(0,n.isFunction)(Q.colHeaders)?s=Q.colHeaders(r):Q.colHeaders&&"string"!=typeof Q.colHeaders&&"number"!=typeof Q.colHeaders&&(s=(0,S.spreadsheetColumnLabel)(o)),s=F.runHooks("modifyColumnHeaderValue",s,e,t),s},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=F.getCellMeta(0,e).width}if(void 0!==t&&t!==Q.width||(t=Q.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e,t){let o=F._getColWidthFromSettings(e);return o=F.runHooks("modifyColWidth",o,e,t),void 0===o&&(o=_.DEFAULT_COLUMN_WIDTH),o},this._getRowHeightFromSettings=function(e){let t=Q.rowHeights;if(null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e,t){let o=F._getRowHeightFromSettings(e);return o=F.runHooks("modifyRowHeight",o,e,t),o},this.countSourceRows=function(){return U.countRows()},this.countSourceCols=function(){return U.countFirstRowKeys()},this.countRows=function(){return B.getLength()},this.countCols=function(){const e=Q.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return F.view._wt.drawn?F.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return F.view._wt.drawn?F.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return F.view._wt.drawn?F.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return F.view._wt.drawn?F.view._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){return this.view.getRowHeadersCount()},this.countColHeaders=function(){return this.view.getColumnHeadersCount()},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,v.rangeEachReverse)(F.countRows()-1,(o=>{if(F.isEmptyRow(o))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,v.rangeEachReverse)(F.countCols()-1,(o=>{if(F.isEmptyCol(o))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return Q.isEmptyRow.call(F,e)},this.isEmptyCol=function(e){return Q.isEmptyCol.call(F,e)},this.selectCell=function(e,t,o,s){let r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,i.isUndefined)(e)&&!(0,i.isUndefined)(t)&&this.selectCells([[e,t,o,s]],r,n)},this.selectCells=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&G.suspend();const o=ee.selectCells(e);return o&&t&&F.listen(),G.resume(),o},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2?arguments[2]:void 0;return ee.selectColumns(e,t,o)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2?arguments[2]:void 0;return ee.selectRows(e,t,o)},this.deselectCell=function(){ee.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2?arguments[2]:void 0;G.skipNextScrollCycle(),ee.selectAll(e,t,o)};const ce=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e){var t,o;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(o=arguments[4])||void 0===o||o});const{row:s,col:r,considerHiddenIndexes:n}=null!==(t=e)&&void 0!==t?t:{};let i=s,l=r;if(void 0===n||n){const e=Number.isInteger(s)&&s>=0,t=Number.isInteger(r)&&r>=0,o=e?ce(this.rowIndexMapper,s):void 0,n=t?ce(this.columnIndexMapper,r):void 0;if(null===o||null===n)return!1;i=e?F.rowIndexMapper.getRenderableFromVisualIndex(o):s,l=t?F.columnIndexMapper.getRenderableFromVisualIndex(n):r}const a=Number.isInteger(i),h=Number.isInteger(l);return a&&i>=0&&h&&l>=0?F.view.scrollViewport(F._createCellCoords(i,l),e.horizontalSnap,e.verticalSnap):a&&i>=0&&(h&&l<0||!h)?F.view.scrollViewportVertically(i,e.verticalSnap):!!(h&&l>=0&&(a&&i<0||!a))&&F.view.scrollViewportHorizontally(l,e.horizontalSnap)},this.scrollToFocusedCell=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};if(!this.selection.isSelected())return;this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeLast();this.scrollViewportTo(t.toObject())?this.view.render():(this.removeHook("afterScroll",e),this._registerImmediate((()=>e())))},this.destroy=function(){if(F._clearTimeouts(),F._clearImmediates(),F.view&&F.view.destroy(),U&&U.destroy(),U=null,this.getShortcutManager().destroy(),q.clearCache(),L.delete(this.guid),(0,b.isRootInstance)(F)){const e=this.rootDocument.querySelector(".hot-display-license-info");e&&e.parentNode.removeChild(e)}(0,r.empty)(F.rootElement),W.destroy(),Y&&Y.destroy(),F.batchExecution((()=>{F.rowIndexMapper.unregisterAll(),F.columnIndexMapper.unregisterAll(),Z.getItems().forEach((e=>{let[,t]=e;t.destroy()})),Z.clear(),F.runHooks("afterDestroy")}),!0),T.Hooks.getSingleton().destroy(F),(0,c.objectEach)(F,((e,t,o)=>{var s;(0,n.isFunction)(e)?o[t]=(s=t,()=>{throw new Error(`The "${s}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(o[t]=null)})),F.isDestroyed=!0,B&&B.destroy(),B=null,j=null,ee=null,Y=null,F=null},this.getActiveEditor=function(){return Y.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return F.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return F.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return F.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return F.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return F.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return F.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return F.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return F.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return F.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return F.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return F.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return F.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return Z.getItem((0,C.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:Z.getId(e)},this.getInstance=function(){return F},this.addHook=function(e,t,o){T.Hooks.getSingleton().add(e,t,F,o)},this.hasHook=function(e){return T.Hooks.getSingleton().has(e,F)||T.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,o){T.Hooks.getSingleton().once(e,t,F,o)},this.removeHook=function(e,t){T.Hooks.getSingleton().remove(e,t,F)},this.runHooks=function(e,t,o,s,r,n,i){return T.Hooks.getSingleton().run(F,e,t,o,s,r,n,i)},this.getTranslatedPhrase=function(e,t){return(0,M.getTranslatedPhrase)(Q.language,e,t)},this.toHTML=()=>(0,g.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,g.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{this.view.getStylesHandler().useTheme(e),this.runHooks("afterSetTheme",e,!!K)},this.getCurrentThemeName=()=>this.view.getStylesHandler().getThemeName(),this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,d.arrayEach)(this.timeouts,(e=>{clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,d.arrayEach)(this.immediates,(e=>{clearImmediate(e)}))},this._getEditorManager=function(){return Y},this.isRtl=function(){return"rtl"===F.rootWindow.getComputedStyle(F.rootElement).direction},this.isLtr=function(){return!F.isRtl()},this.getDirectionFactor=function(){return F.isLtr()?1:-1};const ue=(0,H.createShortcutManager)({handleEvent:()=>F.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||F.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",(e=>{!1===e.ctrlKey&&!1===e.metaKey&&ue.releasePressedKeys()})),this.getShortcutManager=function(){return ue},this.getFocusManager=function(){return z},(0,f.getPluginsNames)().forEach((e=>{const t=(0,f.getPlugin)(e);Z.addItem(e,new t(this))})),(0,x.registerAllShortcutContexts)(F),ue.setActiveContextName("grid"),T.Hooks.getSingleton().run(F,"construct")},o(67834),o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458),o(69655),o(94364),o(71766);var r=o(94916),n=o(77515),i=o(95768),l=o(99275),a=s(o(5289)),h=s(o(12370)),c=o(95016),u=o(94810),d=o(47154),g=o(19310),f=o(42427),p=o(58151),m=o(45973),w=o(57006),C=o(83414),v=o(36926),y=s(o(20328)),E=s(o(88687)),S=o(42379),R=o(57466),b=o(91980),_=o(7749),T=o(29398),M=o(84435),O=o(20115),I=o(63480),N=o(8752),A=o(18393),P=o(78697),H=o(63313),x=o(9528),D=o(83033);let k=null;const L=new Map;new Set},92008:(e,t,o)=>{"use strict";t.__esModule=!0,t.installFocusDetector=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=e.rootElement,s=n(e),r=n(e);return s.addEventListener("focus",(()=>null==t?void 0:t.onFocusFromTop())),r.addEventListener("focus",(()=>null==t?void 0:t.onFocusFromBottom())),o.firstChild.before(s),o.lastChild.after(r),{activate(){e._registerTimeout((()=>{s.tabIndex=0,r.tabIndex=0}),10)},deactivate(){e._registerTimeout((()=>{s.tabIndex=-1,r.tabIndex=-1}),10)}}};var s=o(94916),r=o(45551);function n(e){const t=e.rootDocument.createElement("input");return t.type="text",t.name="__htFocusCatcher",t.classList.add("htFocusCatcher"),e.getSettings().ariaTags&&(0,s.setAttribute)(t,[(0,r.A11Y_PRESENTATION)(),(0,r.A11Y_HIDDEN)()]),t}},69998:(e,t,o)=>{"use strict";t.__esModule=!0,t.installFocusCatcher=function(e){const t=function(e){return t=>{if(!t)return null;const o=n(e),s=i(e);return t.col<o.col&&(t.col=o.col),t.col>s.col&&(t.col=s.col),t.row<o.row&&(t.row=o.row),t.row>s.row&&(t.row=s.row),t}}(e);let o;const{activate:l,deactivate:a}=(0,r.installFocusDetector)(e,{onFocusFromTop(){var s;const r=null!==(s=t(o))&&void 0!==s?s:n(e);r&&(e.runHooks("modifyFocusOnTabNavigation","from_above",r),e.selectCell(r.row,r.col)),e.listen()},onFocusFromBottom(){var s;const r=null!==(s=t(o))&&void 0!==s?s:i(e);r&&(e.runHooks("modifyFocusOnTabNavigation","from_below",r),e.selectCell(r.row,r.col)),e.listen()}}),h={wrapped:!1,flipped:!1};let c=!0,u=!1,d=!1;e.addHook("afterListen",(()=>a())),e.addHook("afterUnlisten",(()=>l())),e.addHook("afterSelection",((t,s,r,n,i)=>{var l;(u&&(h.wrapped&&h.flipped||d)&&(d=!1,i.value=!0),c)&&(o=null===(l=e.getSelectedRangeLast())||void 0===l?void 0:l.highlight)})),e.addHook("beforeRowWrap",((e,t,o)=>{h.wrapped=!0,h.flipped=o}));const g={keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:s.GRID_GROUP,group:"focusCatcher"};e.getShortcutManager().getContext("grid").addShortcuts([{...g,callback:()=>{const{tabNavigation:t}=e.getSettings();u=!0,e.getSelectedRangeLast()&&!t&&(c=!1),t||(d=!0)},position:"before"},{...g,callback:t=>{const{tabNavigation:s,autoWrapRow:r}=e.getSettings();if(u=!1,c=!0,!s||!e.selection.isSelected()||r&&h.wrapped&&h.flipped||!r&&h.wrapped)return r&&h.wrapped&&h.flipped&&(o=t.shiftKey?n(e):i(e)),h.wrapped=!1,h.flipped=!1,e.deselectCell(),e.unlisten(),!1;t.preventDefault()},position:"after"}])};var s=o(9528),r=o(92008);function n(e){const{rowIndexMapper:t,columnIndexMapper:o}=e,{navigableHeaders:s}=e.getSettings();let r=s&&e.countColHeaders()>0?-e.countColHeaders():0,n=s&&e.countRowHeaders()>0?-e.countRowHeaders():0;return 0===r&&(r=t.getVisualFromRenderableIndex(r)),0===n&&(n=o.getVisualFromRenderableIndex(n)),null===r||null===n?null:e._createCellCoords(r,n)}function i(e){var t,o;const{rowIndexMapper:s,columnIndexMapper:r}=e,{navigableHeaders:n}=e.getSettings();let i=s.getRenderableIndexesLength()-1,l=r.getRenderableIndexesLength()-1;if(i<0){if(!n||0===e.countColHeaders())return null;i=-1}if(l<0){if(!n||0===e.countColHeaders())return null;l=-1}return e._createCellCoords(null!==(t=s.getVisualFromRenderableIndex(i))&&void 0!==t?t:i,null!==(o=r.getVisualFromRenderableIndex(l))&&void 0!==o?o:l)}},47158:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834),o(15724),o(79747),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458),o(6211),o(69655);var s=o(17991);function r(e,t,o){n(e,t),t.set(e,o)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function i(e,t,o){return e.set(a(e,t),o),o}function l(e,t){return e.get(a(e,t))}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 WeakMap,d=new WeakSet;function g(e){l(h,this).set(e,[]),l(c,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;n(e=this,t=d),t.add(e),r(this,h,new Map),r(this,c,new Map),r(this,u,new Set),s.REGISTERED_HOOKS.forEach((e=>a(d,this,g).call(this,e)))}getHooks(e){var t;return null!==(t=l(h,this).get(e))&&void 0!==t?t:[]}add(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};l(h,this).has(e)||(a(d,this,g).call(this,e),s.REGISTERED_HOOKS.push(e));const r=l(h,this).get(e);if(r.find((e=>e.callback===t)))return;const n=Number.isInteger(o.orderIndex)?o.orderIndex:0,i=!!o.runOnce,c=!!o.initialHook;let f=!1;if(c){const e=r.find((e=>e.initialHook));e&&(e.callback=t,f=!0)}if(!f){r.push({callback:t,orderIndex:n,runOnce:i,initialHook:c,skip:!1});let o=l(u,this).has(e);o||0===n||(o=!0,l(u,this).add(e)),o&&r.length>1&&l(h,this).set(e,r.toSorted(((e,t)=>e.orderIndex-t.orderIndex)))}}has(e){return l(h,this).has(e)&&l(h,this).get(e).length>0}remove(e,t){if(!l(h,this).has(e))return!1;const o=l(h,this).get(e),s=o.find((e=>e.callback===t));if(s){let t=l(c,this).get(e);return s.skip=!0,t+=1,t>100&&(l(h,this).set(e,o.filter((e=>!e.skip))),t=0),l(c,this).set(e,t),!0}return!1}destroy(){l(h,this).clear(),l(c,this).clear(),i(h,this,null),i(c,this,null)}}},17991:(e,t)=>{"use strict";t.__esModule=!0;t.REGISTERED_HOOKS=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceChange","beforeViewportScrollVertically","beforeViewportScrollHorizontally","beforeViewportScroll","afterScrollHorizontally","afterScrollVertically","afterScroll","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSelectionFocusSet","beforeSelectColumns","afterSelectColumns","beforeSelectRows","afterSelectRows","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterSetTheme","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","beforeBeginEditing","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],t.REMOVED_HOOKS=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),t.DEPRECATED_HOOKS=new Map([[]])},29398:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(47154),i=o(83414),l=o(59350),a=o(20944),h=o(77515),c=o(17991),u=o(47158);const d=a.toSingleLine`The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\x20
|
35
|
+
turning off the "renderAllRows" option.`)),this.table.isAriaEnabled()&&(0,h.setAttribute)(this.rootNode,[(0,c.A11Y_ROWGROUP)()]),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(let s=0;s<e;s++){this.orderView.render();const e=this.orderView.getCurrentNode(),r=this.table.renderedRowToSource(s);var t,o;if(this.table.isAriaEnabled())(0,h.setAttribute)(e,[(0,c.A11Y_ROW)(),(0,c.A11Y_ROWINDEX)(r+(null!==(t=null===(o=this.table.rowUtils)||void 0===o||null===(o=o.dataAccessObject)||void 0===o?void 0:o.columnHeaders.length)&&void 0!==t?t:0)+1)]);(r+1)%2==0?(0,h.hasClass)(e,u)||((0,h.removeClass)(e,d),(0,h.addClass)(e,u)):(0,h.hasClass)(e,d)||((0,h.removeClass)(e,u),(0,h.addClass)(e,d))}this.orderView.end()}}t.RowsRenderer=f},73229:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(this,"rootNode",void 0),(0,r.default)(this,"rootDocument",void 0),(0,r.default)(this,"rowHeaders",null),(0,r.default)(this,"columnHeaders",null),(0,r.default)(this,"colGroup",null),(0,r.default)(this,"rows",null),(0,r.default)(this,"cells",null),(0,r.default)(this,"rowFilter",null),(0,r.default)(this,"columnFilter",null),(0,r.default)(this,"rowUtils",null),(0,r.default)(this,"columnUtils",null),(0,r.default)(this,"rowsToRender",0),(0,r.default)(this,"columnsToRender",0),(0,r.default)(this,"rowHeaderFunctions",[]),(0,r.default)(this,"rowHeadersCount",0),(0,r.default)(this,"columnHeaderFunctions",[]),(0,r.default)(this,"columnHeadersCount",0),(0,r.default)(this,"cellRenderer",void 0),(0,r.default)(this,"activeOverlayName",void 0),(0,r.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:s,cells:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),o.setTable(this),s.setTable(this),r.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=o,this.rows=s,this.cells=r}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),s=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(o),r=s.getHeightByOverlayName(t,this.activeOverlayName),n=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=r?r-n+"px":""}}}}},82276:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(94916),i=o(95016);function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}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 WeakSet;function c(e){const{wtSettings:t,inlineStartOverlay:o,wtTable:s,wtViewport:r,totalColumns:i,rootWindow:l}=this.dataAccessObject;if(o.mainTableScrollableElement===l){let a=null;if(t.getSetting("rtlMode")){const e=s.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;a=Math.abs(e.right-t)}else{a=(0,n.offset)(s.wtRootElement).left}const h=Math.abs((0,n.getScrollLeft)(l,l));if(a>h){const t=(0,n.innerWidth)(l);let s=r.getRowHeaderWidth();for(let r=1;r<=i;r++)if(s+=o.sumCellSizes(r-1,r),a+s-h>=t){e=r-2;break}}}return e}function u(e){const{topOverlay:t,wtTable:o,wtViewport:s,totalRows:r,rootWindow:i}=this.dataAccessObject;if(t.mainTableScrollableElement===i){const l=(0,n.offset)(o.wtRootElement),a=(0,n.getScrollTop)(i,i);if(l.top>a){const o=(0,n.innerHeight)(i);let h=s.getColumnHeaderHeight();for(let s=1;s<=r;s++)if(h+=t.sumCellSizes(s-1,s),l.top+h-a>=o){e=s-2;break}}}return e}t.default=class{constructor(e){l(this,h),(0,r.default)(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,o){if(e.col<0||e.row<0)return!1;const s=this.scrollViewportHorizontally(e.col,t),r=this.scrollViewportVertically(e.row,o);return s||r}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalColumns:s}=this.dataAccessObject;if(!o)return!1;const r=(0,i.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,r),!Number.isInteger(e)||e<0||e>s)return!1;t=r.value;const{fixedColumnsStart:n,inlineStartOverlay:l}=this.dataAccessObject,a="auto"===t;if(a&&e<n)return!1;const h=this.getFirstVisibleColumn(),c=this.getLastVisibleColumn();let u=!1;return(a&&(e<h||e>c)||!a)&&(u=l.scrollTo(e,a?e>=this.getLastPartiallyVisibleColumn():"end"===t)),u}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalRows:s}=this.dataAccessObject;if(!o)return!1;const r=(0,i.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,r),!Number.isInteger(e)||e<0||e>s)return!1;t=r.value;const{fixedRowsBottom:n,fixedRowsTop:l,topOverlay:a}=this.dataAccessObject,h="auto"===t;if(h&&(e<l||e>s-n-1))return!1;const c=this.getFirstVisibleRow(),u=this.getLastVisibleRow();let d=!1;return(h&&(e<c||e>u)||!h)&&(d=a.scrollTo(e,h?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return a(h,this,u).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return a(h,this,u).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return a(h,this,c).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return a(h,this,c).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}}},8185:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(94916),r=o(40892),n=o(95016),i=o(99275),l=o(6822);t.default=class{constructor(e,t){t&&(this.eventManager=e.eventManager,this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle=(0,l.getCornerStyle)(this.instance),this.cornerCenterPointOffset=-Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())}registerListeners(){const e=this.wot.rootDocument.body;this.eventManager.addEventListener(e,"mousedown",(()=>this.onMouseDown())),this.eventManager.addEventListener(e,"mouseup",(()=>this.onMouseUp()));for(let e=0,t=this.main.childNodes.length;e<t;e++){const t=this.main.childNodes[e];this.eventManager.addEventListener(t,"mouseenter",(t=>this.onMouseEnter(t,this.main.childNodes[e])))}}onMouseDown(){this.mouseDown=!0}onMouseUp(){this.mouseDown=!1}onMouseEnter(e,t){if(!this.mouseDown||!this.wot.getSetting("hideBorderOnMouseDownOver"))return;e.preventDefault(),(0,r.stopImmediatePropagation)(e);const o=this,s=this.wot.rootDocument.body,n=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(s,"mousemove",(function e(r){var i;((i=r).clientY<Math.floor(n.top)||i.clientY>Math.ceil(n.top+n.height)||i.clientX<Math.floor(n.left)||i.clientX>Math.ceil(n.left+n.width))&&(o.eventManager.removeEventListener(s,"mousemove",e),t.style.display="block")}))}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const o=["top","start","bottom","end","corner"];let s=this.main.style;s.position="absolute",s.top=0,s.left=0;for(let r=0;r<5;r++){const n=o[r],i=t.createElement("div");i.className=`wtBorder ${this.settings.className||""}`,this.settings[n]&&this.settings[n].hide&&(i.className+=" hidden"),s=i.style,s.backgroundColor=this.settings[n]&&this.settings[n].color?this.settings[n].color:e.border.color,s.height=this.settings[n]&&this.settings[n].width?`${this.settings[n].width}px`:`${e.border.width}px`,s.width=this.settings[n]&&this.settings[n].width?`${this.settings[n].width}px`:`${e.border.width}px`,this.main.appendChild(i)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=`${this.cornerDefaultStyle.width}px`,this.cornerStyle.height=`${this.cornerDefaultStyle.height}px`,this.cornerStyle.border=[`${this.cornerDefaultStyle.borderWidth}px`,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,i.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:r}=this.wot;let n=r.bordersHolder;n||(n=t.createElement("div"),n.className="htBorders",r.bordersHolder=n,r.spreader.appendChild(n)),n.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e}=this.wot;this.selectionHandles={top:e.createElement("DIV"),topHitArea:e.createElement("DIV"),bottom:e.createElement("DIV"),bottomHitArea:e.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};const t={position:"absolute",height:"40px",width:"40px","border-radius":`${parseInt(40/1.5,10)}px`};(0,n.objectEach)(t,((e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e}));const o={position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"};(0,n.objectEach)(o,((e,t)=>{this.selectionHandles.styles.bottom[t]=e,this.selectionHandles.styles.top[t]=e})),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}isPartRange(e,t){const o=this.wot.selectionManager.getAreaSelection();return!(!o.cellRange||e===o.cellRange.to.row&&t===o.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,o,s,r,n){const i=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:l,topHitArea:a,bottom:h,bottomHitArea:c}=this.selectionHandles.styles,u=parseInt(l.borderWidth,10),d=parseInt(l.width,10),g=parseInt(a.width,10),f=this.wot.wtTable.getWidth(),p=this.wot.wtTable.getHeight();l.top=`${parseInt(o-d-1,10)}px`,l[i]=`${parseInt(s-d-1,10)}px`,a.top=`${parseInt(o-g/4*3,10)}px`,a[i]=`${parseInt(s-g/4*3,10)}px`;const m=Math.min(parseInt(s+r,10),f-d-2*u),w=Math.min(parseInt(s+r-g/4,10),f-g-2*u);h[i]=`${m}px`,c[i]=`${w}px`;const C=Math.min(parseInt(o+n,10),p-d-2*u),v=Math.min(parseInt(o+n-g/4,10),p-g-2*u);h.top=`${C}px`,c.top=`${v}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(l.display="block",a.display="block",this.isPartRange(e,t)?(h.display="none",c.display="none"):(h.display="block",c.display="block")):(l.display="none",h.display="none",a.display="none",c.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(l.zIndex="9999",a.zIndex="9999"):(l.zIndex="",a.zIndex="")}appear(e){if(this.disabled)return;let[t,o,r,n]=e;if(t<0&&r<0||o<0&&n<0)return void this.disappear();const{wtTable:l,rootDocument:a,rootWindow:h}=this.wot,c=t!==r||o!==n,u=l.getFirstRenderedRow(),d=l.getLastRenderedRow(),g=l.getFirstRenderedColumn(),f=l.getLastRenderedColumn();let p;if(c){if(o=Math.max(o,g),n=Math.min(n,f),t=Math.max(t,u),r=Math.min(r,d),n<o||r<t)return void this.disappear();p=l.getCell(this.wot.createCellCoords(t,o))}else if(p=l.getCell(this.wot.createCellCoords(t,o)),!(p instanceof HTMLElement))return void this.disappear();const m=c?l.getCell(this.wot.createCellCoords(r,n)):p,w=(0,s.offset)(p),C=c?(0,s.offset)(m):w,v=(0,s.offset)(l.TABLE),y=w.top,E=w.left,S=this.wot.wtSettings.getSetting("rtlMode");let R=0,b=0;if(S){const e=(0,s.outerWidth)(l.TABLE),t=(0,s.outerWidth)(p),o=h.innerWidth-v.left-e;b=E+t-C.left,R=h.innerWidth-E-t-o-1}else b=C.left+(0,s.outerWidth)(m)-E,R=E-v.left-1;if(this.isEntireColumnSelected(t,r)){const e=t,s=this.getDimensionsFromHeader("columns",o,n,e,v);let r=null;s&&([r,R,b]=s),r&&(p=r)}let _=y-v.top-1,T=C.top+(0,s.outerHeight)(m)-y;if(this.isEntireRowSelected(o,n)){const e=o,s=this.getDimensionsFromHeader("rows",t,r,e,v);let n=null;s&&([n,_,T]=s),n&&(p=n)}const M=h.getComputedStyle(p);parseInt(M.borderTopWidth,10)>0&&(_+=1,T=T>0?T-1:0),parseInt(M[S?"borderRightWidth":"borderLeftWidth"],10)>0&&(R+=1,b=b>0?b-1:0);const O=S?"right":"left";this.topStyle.top=`${_}px`,this.topStyle[O]=`${R}px`,this.topStyle.width=`${b}px`,this.topStyle.display="block",this.startStyle.top=`${_}px`,this.startStyle[O]=`${R}px`,this.startStyle.height=`${T}px`,this.startStyle.display="block";const I=Math.floor(this.settings.border.width/2);this.bottomStyle.top=_+T-I+"px",this.bottomStyle[O]=`${R}px`,this.bottomStyle.width=`${b}px`,this.bottomStyle.display="block",this.endStyle.top=`${_}px`,this.endStyle[O]=R+b-I+"px",this.endStyle.height=`${T+1}px`,this.endStyle.display="block";let N=this.settings.border.cornerVisible;N="function"==typeof N?N(this.settings.layerLevel):N;const A=this.wot.getSetting("onModifyGetCellCoords",r,n,!1,"render");let[P,H]=[r,n];if(A&&Array.isArray(A)&&([,,P,H]=A),(0,i.isMobileBrowser)()||!N||this.isPartRange(P,H))this.cornerStyle.display="none";else{this.cornerStyle.top=_+T+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[O]=R+b+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle.borderRightWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderLeftWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderBottomWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";let e=(0,s.getTrimmingContainer)(l.TABLE);const t=e===h;t&&(e=a.documentElement);const o=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,i=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),c=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(n===this.wot.getSetting("totalColumns")-1){const r=t?m.getBoundingClientRect().left:m.offsetLeft;let n=!1,l=0;S?(l=r-parseInt(this.cornerDefaultStyle.width,10)/2,n=l<0):(l=r+(0,s.outerWidth)(m)+parseInt(this.cornerDefaultStyle.width,10)/2,n=l>=(0,s.innerWidth)(e)),n&&(this.cornerStyle[O]=`${Math.floor(R+b+this.cornerCenterPointOffset-i-o)}px`,this.cornerStyle[S?"borderLeftWidth":"borderRightWidth"]=0)}if(r===this.wot.getSetting("totalRows")-1){const r=(t?m.getBoundingClientRect().top:m.offsetTop)+(0,s.outerHeight)(m)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(e),n=this.wot.stylesHandler.isClassicTheme();if(r){const e=Math.floor(_+T+this.cornerCenterPointOffset-c-o);n?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}(0,i.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(r,n,_,R,b,T)}isEntireColumnSelected(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}isEntireRowSelected(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}getDimensionsFromHeader(e,t,o,r,n){const{wtTable:i}=this.wot,l=i.wtRootElement.parentNode;let a=null,h=null,c=null,u=null,d=null,g=null,f=null,p=null;switch(e){case"rows":a=function(){return i.getRowHeader(...arguments)},h=function(){return(0,s.outerHeight)(...arguments)},c="ht__selection--rows",g="top";break;case"columns":a=function(){return i.getColumnHeader(...arguments)},h=function(){return(0,s.outerWidth)(...arguments)},c="ht__selection--columns",g="left"}if(l.classList.contains(c)){const e=this.wot.getSetting("columnHeaders").length;if(f=a(t,e-r),p=a(o,e-r),!f||!p)return!1;const i=(0,s.offset)(f),l=(0,s.offset)(p);return f&&p&&(u=i[g]-n[g]-1,d=l[g]+h(p)-i[g]),[f,u,d]}return!1}changeBorderStyle(e,t){const o=this[e].style,r=t[e];!r||r.hide?(0,s.addClass)(this[e],"hidden"):((0,s.hasClass)(this[e],"hidden")&&(0,s.removeClass)(this[e],"hidden"),o.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(o.height=`${r.width}px`),"start"!==e&&"end"!==e||(o.width=`${r.width}px`))}changeBorderToDefaultStyle(e){const t=1,o="#000",s=this[e].style;s.backgroundColor=o,s.width=`${t}px`,s.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,s.addClass)(this[e],"hidden"):(0,s.removeClass)(this[e],"hidden")}disappear(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,i.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}destroy(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}},6822:(e,t)=>{"use strict";t.__esModule=!0;t.getCornerStyle=e=>{const t=e.stylesHandler;if(t.isClassicTheme())return Object.freeze({width:6,height:6,borderWidth:1,borderStyle:"solid",borderColor:"#FFF"});const o=t.getCSSVariableValue("cell-autofill-size"),s=t.getCSSVariableValue("cell-autofill-border-width"),r=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:o,height:o,borderWidth:s,borderStyle:"solid",borderColor:r})}},20765:(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"},39304:(e,t,o)=>{"use strict";o(14846),o(69655);var s=o(96784);t.__esModule=!0;var r={SelectionManager:!0,Selection:!0},n=s(o(64758));t.Selection=n.default;var i=o(20765);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||(t[e]=i[e]))}));var l=o(6822);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))}));var a=o(47491);t.SelectionManager=a.SelectionManager},47491:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(25352),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(69655),o(94364);var r=o(94916),n=o(20654),i=s(o(8185));function l(e,t,o){a(e,t),t.set(e,o)}function a(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 s=h(d,this).wtTable.TABLE.querySelectorAll(`.${e}`);let n=[];Array.isArray(null===(t=h(g,this).options)||void 0===t?void 0:t.cellAttributes)&&(n=h(g,this).options.cellAttributes.map((e=>e[0]))),Array.isArray(null===(o=h(g,this).options)||void 0===o?void 0:o.headerAttributes)&&(n=[...n,...h(g,this).options.headerAttributes.map((e=>e[0]))]);for(let t=0,o=s.length;t<o;t++)(0,r.removeClass)(s[t],e),(0,r.removeAttribute)(s[t],n)})),e.clear()}t.SelectionManager=class{constructor(e){var t,o;a(t=this,o=C),o.add(t),l(this,d,void 0),l(this,g,void 0),l(this,f,new n.SelectionScanner),l(this,p,new WeakMap),l(this,m,new WeakSet),l(this,w,new Map),c(g,this,e)}setActiveOverlay(e){return c(d,this,e),h(f,this).setActiveOverlay(h(d,this)),h(p,this).has(h(d,this))||h(p,this).set(h(d,this),new Set),this}getFocusSelection(){return null!==h(g,this)?h(g,this).getFocus():null}getAreaSelection(){return null!==h(g,this)?h(g,this).createLayeredArea():null}getBorderInstance(e){if(!e.settings.border)return null;if(h(w,this).has(e)){const t=h(w,this).get(e);if(t.has(h(d,this)))return t.get(h(d,this));const o=new i.default(h(d,this),e.settings);return t.set(h(d,this),o),o}const t=new i.default(h(d,this),e.settings);return h(w,this).set(e,new Map([[h(d,this),t]])),t}getBorderInstances(e){var t,o;return Array.from(null!==(t=null===(o=h(w,this).get(e))||void 0===o?void 0:o.values())&&void 0!==t?t:[])}destroyBorders(e){h(w,this).get(e).forEach((e=>e.destroy())),h(w,this).delete(e)}render(e){if(null===h(g,this))return;e&&u(C,this,v).call(this);const t=Array.from(h(g,this)),o=new Map,s=new Map;for(let e=0;e<t.length;e++){const r=t[e],{className:n,headerAttributes:i,createLayers:l,selectionType:a}=r.settings;h(m,this).has(r)||(h(m,this).add(r),r.addLocalHook("destroy",(()=>this.destroyBorders(r))));const c=this.getBorderInstance(r);if(r.isEmpty()){null==c||c.disappear();continue}if(n){h(f,this).setActiveSelection(r).scan().forEach((e=>{if(o.has(e)){const t=o.get(e);t.has(n)&&!0===l?t.set(n,t.get(n)+1):t.set(n,1)}else o.set(e,new Map([[n,1]]));i&&(s.has(e)||s.set(e,[]),"TH"===e.nodeName&&s.get(e).push(...i))}))}const u=r.getCorners();h(d,this).getSetting("onBeforeDrawBorders",u,a),null==c||c.appear(u)}o.forEach(((e,t)=>{var o;const s=Array.from(e).map((e=>{let[t,o]=e;return 1===o?t:[t,...Array.from({length:o-1},((e,o)=>`${t}-${o+1}`))]})).flat();s.forEach((e=>h(p,this).get(h(d,this)).add(e))),(0,r.addClass)(t,s),"TD"===t.nodeName&&Array.isArray(null===(o=h(g,this).options)||void 0===o?void 0:o.cellAttributes)&&(0,r.setAttribute)(t,h(g,this).options.cellAttributes)})),Array.from(s.keys()).forEach((e=>{(0,r.setAttribute)(e,[...s.get(e)])}))}}},20654:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var s=o(94916);function r(e,t,o){n(e,t),t.set(e,o)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function i(e,t){return e.get(a(e,t))}function 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,s,r]=i(h,this).getCorners();if(t<0&&s<0||o<0&&r<0)return;const{wtTable:n}=i(c,this),l=t!==s||o!==r;if(o=Math.max(o,0),r=Math.max(r,0),t=Math.max(t,0),s=Math.max(s,0),l){if(o=Math.max(o,n.getFirstRenderedColumn()),r=Math.min(r,n.getLastRenderedColumn()),t=Math.max(t,n.getFirstRenderedRow()),s=Math.min(s,n.getLastRenderedRow()),r<o||s<t)return}else{if(!(n.getCell(i(c,this).createCellCoords(t,o))instanceof HTMLElement))return}for(let n=t;n<=s;n+=1)for(let t=o;t<=r;t+=1)e(n,t)}function g(e){const{wtTable:t}=i(c,this),o=t.getRenderedRowsCount(),s=t.getRenderedColumnsCount();for(let r=0;r<o;r+=1){const o=t.rowFilter.renderedToSource(r);for(let r=0;r<s;r+=1)e(o,t.columnFilter.renderedToSource(r))}}t.SelectionScanner=class{constructor(){var e,t;n(e=this,t=u),t.add(e),r(this,h,void 0),r(this,c,void 0)}setActiveOverlay(e){return l(c,this,e),this}setActiveSelection(e){return l(h,this,e),this}scan(){const e=i(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,r]=i(h,this).getCorners(),{wtTable:n}=i(c,this),l=n.getRenderedColumnsCount(),a=n.getColumnHeadersCount();let u=0;for(let d=-n.getRowHeadersCount();d<l;d++){const l=n.columnFilter.renderedToSource(d);if(!(l<o||l>r)){for(let d=-a;d<0;d++){if(d<t||d>s)continue;const g=d+a;let f=n.getColumnHeader(l,g);const p=i(c,this).getSetting("onBeforeHighlightingColumnHeader",l,g,{selectionType:i(h,this).settings.selectionType,columnCursor:u,selectionWidth:r-o+1});null!==p&&(p!==l&&(f=n.getColumnHeader(p,g)),e(f))}u+=1}}}scanRowsInHeadersRange(e){const[t,o,s,r]=i(h,this).getCorners(),{wtTable:n}=i(c,this),l=n.getRenderedRowsCount(),a=n.getRowHeadersCount();let u=0;for(let d=-n.getColumnHeadersCount();d<l;d++){const l=n.rowFilter.renderedToSource(d);if(!(l<t||l>s)){for(let d=-a;d<0;d++){if(d<o||d>r)continue;const g=d+a;let f=n.getRowHeader(l,g);const p=i(c,this).getSetting("onBeforeHighlightingRowHeader",l,g,{selectionType:i(h,this).settings.selectionType,rowCursor:u,selectionHeight:s-t+1});null!==p&&(p!==l&&(f=n.getRowHeader(p,g)),e(f))}u+=1}}}scanCellsRange(e){const{wtTable:t}=i(c,this);a(u,this,d).call(this,((o,r)=>{const n=t.getCell(i(c,this).createCellCoords(o,r)),l=i(c,this).getSetting("onAfterDrawSelection",o,r,i(h,this).settings.layerLevel);"string"==typeof l&&(0,s.addClass)(n,l),e(n)}))}scanRowsInCellsRange(e){const[t,,o]=i(h,this).getCorners(),{wtTable:s}=i(c,this);a(u,this,g).call(this,((r,n)=>{if(r>=t&&r<=o){const t=s.getCell(i(c,this).createCellCoords(r,n));e(t)}}))}scanColumnsInCellsRange(e){const[,t,,o]=i(h,this).getCorners(),{wtTable:s}=i(c,this);a(u,this,g).call(this,((r,n)=>{if(n>=t&&n<=o){const t=s.getCell(i(c,this).createCellCoords(r,n));e(t)}}))}}},64758:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=o(95016),n=s(o(32943));class i{constructor(e,t){this.settings=e,this.cellRange=t||null}isEmpty(){return null===this.cellRange}add(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}replace(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}clear(){return this.cellRange=null,this}getCorners(){const e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}destroy(){this.runLocalHooks("destroy")}}(0,r.mixin)(i,n.default);t.default=i},5352:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(94916),i=o(95016);t.default=class{constructor(e){(0,r.default)(this,"settings",{}),(0,r.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,i.objectEach)(this.defaults,((t,o)=>{if(void 0!==e[o])this.settings[o]=e[o];else{if(void 0===t)throw new Error(`A required setting "${o}" was not provided`);this.settings[o]=t}}))}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,o)=>{const s=this.getSetting("data",e,t);(0,n.fastInnerText)(o,null==s?"":s)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0}}update(e,t){return void 0===t?(0,i.objectEach)(e,((e,t)=>{this.settings[t]=e})):this.settings[e]=t,this}getSetting(e,t,o,s,r){return"function"==typeof this.settings[e]?this.settings[e](t,o,s,r):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}getSettingPure(e){return this.settings[e]}has(e){return!!this.settings[e]}}},76325:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(69655);var r=s(o(85707)),n=o(94916),i=o(77515),l=s(o(18316)),a=s(o(25800)),h=o(39597),c=s(o(5505)),u=s(o(40799)),d=o(19938),g=o(45551);t.default=class{constructor(e,t,o,s,i){(0,r.default)(this,"wtSettings",null),(0,r.default)(this,"domBindings",void 0),(0,r.default)(this,"TBODY",null),(0,r.default)(this,"THEAD",null),(0,r.default)(this,"COLGROUP",null),(0,r.default)(this,"hasTableHeight",!0),(0,r.default)(this,"hasTableWidth",!0),(0,r.default)(this,"isTableVisible",!1),(0,r.default)(this,"tableOffset",0),(0,r.default)(this,"holderOffset",0),this.domBindings=o,this.isMaster="master"===i,this.name=i,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=s,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=o.rootTable,(0,n.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const l=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",(()=>this._modifyRowHeaderWidth(l))),this.rowUtils=new u.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new c.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new h.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer"),stylesHandler:this.dataAccessObject.stylesHandler})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.className="wtSpreader",t&&t.insertBefore(o,e),o.appendChild(e)),o.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHider(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.className="wtHider",t&&t.insertBefore(o,e),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHolder(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.style.position="relative",o.className="wtHolder",t&&t.insertBefore(o,e),this.isMaster&&(o.parentNode.className+="ht_master handsontable",o.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,n.setAttribute)(o.parentNode,[(0,g.A11Y_PRESENTATION)()])),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:o,wtViewport:s}=this.dataAccessObject,r=t.getSetting("totalRows"),i=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),c=h.length,u=t.getSetting("columnHeaders"),g=u.length;let f=e;if(this.isMaster&&(o.beforeDraw(),this.holderOffset=(0,n.offset)(this.holder),f=s.createCalculators(f),c&&!t.getSetting("fixedColumnsStart"))){const e=o.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(f=!1)}if(f)this.isMaster&&o.refresh(!0);else{this.isMaster?this.tableOffset=(0,n.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=r>0?this.getFirstRenderedRow():0,t=i>0?this.getFirstRenderedColumn():0;this.rowFilter=new a.default(e,r,g),this.columnFilter=new l.default(t,i,c);let f=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),f=!0!==e.skipRender}f&&(this.tableRenderer.setHeaderContentRenderers(h,u),(this.is(d.CLONE_BOTTOM)||this.is(d.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(h,[]),this.resetOversizedRows(),this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(d.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster?(this.wtSettings.getSetting("externalRowCalculator")||s.createVisibleCalculators(),o.refresh(!1),o.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let p=!1;return this.isMaster&&(p=o.topOverlay.resetFixedPosition(),o.bottomOverlay.clone&&(p=o.bottomOverlay.resetFixedPosition()||p),p=o.inlineStartOverlay.resetFixedPosition()||p,o.topInlineStartCornerOverlay&&o.topInlineStartCornerOverlay.resetFixedPosition(),o.bottomInlineStartCornerOverlay&&o.bottomInlineStartCornerOverlay.clone&&o.bottomInlineStartCornerOverlay.resetFixedPosition()),p?(o.refreshAll(),o.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(f),this.isMaster&&o.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let o=this.wtSettings.getSetting("columnHeaders").length;const s=this.dataAccessObject.stylesHandler.getDefaultRowHeight();let r,i,l;const a=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;o;)o-=1,r=this.getColumnHeaderHeight(o),i=this.getColumnHeader(t,o),i&&(l=(0,n.innerHeight)(i),(!r&&s<l||r<l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l),Array.isArray(a)?null!==a[o]&&void 0!==a[o]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a[o]):isNaN(a)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a),this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]<(a[o]||a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a[o]||a))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,o=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let s=0,r=e.getSetting("columnHeaders").length;s<r;s++)if(o[s]){if(!t[s]||0===t[s].childNodes.length)return;t[s].childNodes[0].style.height=`${o[s]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(d.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let o=0;o<e;o++){const e=this.rowFilter.renderedToSource(o);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,o=e.col;const s=this.wtSettings.getSetting("onModifyGetCellCoords",t,o,!this.isMaster,"render");if(s&&Array.isArray(s)&&([t,o]=s),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(o))return-3;if(this.isColumnAfterRenderedColumns(o))return-4;const r=this.getRow(t);if(!r&&t>=0)throw new Error("TR was expected to be rendered but is not");const n=r.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(o)];if(!n&&o>=0)throw new Error("TD or TH was expected to be rendered but is not");return n}getRow(e){let t=null,o=null;var s,r;e<0?(t=null===(s=this.rowFilter)||void 0===s?void 0:s.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(t=null===(r=this.rowFilter)||void 0===r?void 0:r.sourceToRendered(e),o=this.TBODY);return void 0!==t&&void 0!==o&&(!(o.childNodes.length<t+1)&&o.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const o=this.THEAD.childNodes[t];return null==o?void 0:o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],o=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach((e=>{const s=e.childNodes[o];s&&t.push(s)})),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const o=this.rowFilter.sourceToRendered(e),s=o<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):o,r=(o<0?this.THEAD:this.TBODY).childNodes[s];return null==r?void 0:r.childNodes[t]}getRowHeaders(e){const t=[],o=this.wtSettings.getSetting("rowHeaders").length;for(let s=0;s<o;s++){const o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],r=null==o?void 0:o.childNodes[s];r&&t.push(r)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,n.closest)(t,["TD","TH"])),null===t)return null;const o=t.parentNode,s=o.parentNode;let r=(0,n.index)(o),i=t.cellIndex;if((0,n.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===s.nodeName&&(r-=s.childNodes.length);else if((0,n.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){r=this.wtSettings.getSetting("totalRows")-s.childNodes.length+r}else r=s===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(r):this.rowFilter.renderedToSource(r);i=(0,n.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i);const l=this.wtSettings.getSetting("onModifyGetCoordsElement",r,i);return l&&Array.isArray(l)&&([r,i]=l),this.wot.createCellCoords(r,i)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=e*this.dataAccessObject.stylesHandler.getDefaultRowHeight(),o=(0,n.innerHeight)(this.TBODY)-1,s=this.wot.stylesHandler.areCellsBorderBox(),r=s?n.outerHeight:n.innerHeight,i=s?0:1,l=s?1:0;let a,h,c,u,d;if(t!==o||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,c=this.rowFilter.renderedToSource(e),a=this.getRowHeight(c),u=this.getTrForRow(c),d=u.querySelector("th");const t=0===c?l:0;h=d?r(d):r(u)-i,(!a&&this.dataAccessObject.stylesHandler.getDefaultRowHeight()<h-t||a<h)&&(s||(h+=1),this.dataAccessObject.wtViewport.oversizedRows[c]=h)}}getTrForRow(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}isColumnHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}isRowHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}isRowBeforeRenderedRows(e){const t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}isRowAfterRenderedRows(e){return e>this.getLastRenderedRow()}isColumnBeforeRenderedColumns(e){const t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}isColumnAfterRenderedColumns(e){return this.columnFilter&&e>this.getLastRenderedColumn()}isColumnAfterViewport(e){return this.columnFilter&&e>this.getLastVisibleColumn()}isRowAfterViewport(e){return this.rowFilter&&e>this.getLastVisibleRow()}isColumnBeforeViewport(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}isLastRowFullyVisible(){return this.getLastVisibleRow()===this.getLastRenderedRow()}isLastColumnFullyVisible(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}allRowsInViewport(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}allColumnsInViewport(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}getRowHeight(e){return this.rowUtils.getHeight(e)}getColumnHeaderHeight(e){return this.columnUtils.getHeaderHeight(e)}getColumnWidth(e){return this.columnUtils.getWidth(e)}hasDefinedSize(){return this.hasTableHeight&&this.hasTableWidth}getWidth(){return(0,n.outerWidth)(this.TABLE)}getHeight(){return(0,n.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,n.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,n.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,n.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,i.isFunction)(e)?e():null;return Array.isArray(t)?(t=[...t],t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}_correctRowHeaderWidth(e){let t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}},12207:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(76325)),n=s(o(63043)),i=s(o(65483)),l=o(95016),a=o(19938);class h extends r.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_BOTTOM)}}(0,l.mixin)(h,n.default),(0,l.mixin)(h,i.default);t.default=h},89353:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(76325)),n=s(o(63043)),i=s(o(57676)),l=o(95016),a=o(19938);class h extends r.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,l.mixin)(h,n.default),(0,l.mixin)(h,i.default);t.default=h},83281:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(76325)),n=s(o(15711)),i=s(o(57676)),l=o(95016),a=o(19938);class h extends r.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_INLINE_START)}}(0,l.mixin)(h,n.default),(0,l.mixin)(h,i.default);t.default=h},69910:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=o(94916),n=s(o(76325)),i=s(o(15711)),l=s(o(65483)),a=o(95016);class h extends n.default{constructor(e,t,o,s){super(e,t,o,s,"master")}alignOverlaysWithTrimmingContainer(){const e=(0,r.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,r.getStyle)(e,"height",t),n=(0,r.getStyle)(e,"overflow",t),i=this.holder.style,{scrollWidth:l,scrollHeight:a}=e;let h=e.offsetWidth,c=e.offsetHeight;if(o&&["auto","hidden","scroll"].includes(n)){const s=e.cloneNode(!1);s.style.overflow="auto",s.style.position="absolute",e.nextElementSibling?o.insertBefore(s,e.nextElementSibling):o.appendChild(s);const r=parseInt(t.getComputedStyle(s).height,10);o.removeChild(s),0===r&&(c=0)}c=Math.min(c,a),i.height="auto"===s?"auto":`${c}px`,h=Math.min(h,l),i.width=`${h}px`,i.overflow="",this.hasTableHeight="auto"===i.height||c>0,this.hasTableWidth=h>0}this.isTableVisible=(0,r.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 r=e.getSetting("rowHeaders").length,n=this.getRenderedColumnsCount();for(let e=0;e<s;e++)for(let e=-1*r;e<n;e++)this.markIfOversizedColumnHeader(e);t.hasOversizedColumnHeadersMarked[o]=!0}}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,l.default);t.default=h},65483:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95016);const r={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)(r,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});t.default=r},15711:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95016);const r={getFirstRenderedRow(){const e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow(){const e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getFirstPartiallyVisibleRow(){const e=this.dataAccessObject.startRowPartiallyVisible;return null===e?-1:e},getLastRenderedRow(){const e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow(){const e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getLastPartiallyVisibleRow(){const e=this.dataAccessObject.endRowPartiallyVisible;return null===e?-1:e},getRenderedRowsCount(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount(){return this.dataAccessObject.countRowsVisible},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,s.defineGetter)(r,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});t.default=r},57676:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95016);const r={getFirstRenderedColumn(){return 0===this.wtSettings.getSetting("totalColumns")?-1:0},getFirstVisibleColumn(){return this.getFirstRenderedColumn()},getFirstPartiallyVisibleColumn(){return this.getFirstRenderedColumn()},getLastRenderedColumn(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn(){return this.getLastRenderedColumn()},getLastPartiallyVisibleColumn(){return this.getLastRenderedColumn()},getRenderedColumnsCount(){const e=this.wtSettings.getSetting("totalColumns");return Math.min(this.wtSettings.getSetting("fixedColumnsStart"),e)},getVisibleColumnsCount(){return this.getRenderedColumnsCount()},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,s.defineGetter)(r,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});t.default=r},63043:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95016);const r={getFirstRenderedRow(){const e=this.wtSettings.getSetting("totalRows"),t=this.wtSettings.getSetting("fixedRowsBottom"),o=e-t;return 0===e||0===t?-1:o<0?0:o},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){const e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsBottom"),e)},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,s.defineGetter)(r,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=r},76749:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95016);const r={getFirstRenderedRow(){return 0===this.wtSettings.getSetting("totalRows")?-1:0},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.getRenderedRowsCount()-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){const e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsTop"),e)},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,s.defineGetter)(r,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});t.default=r},39001:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(76325)),n=s(o(76749)),i=s(o(65483)),l=o(95016),a=o(19938);class h extends r.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_TOP)}}(0,l.mixin)(h,n.default),(0,l.mixin)(h,i.default);t.default=h},76547:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(76325)),n=s(o(76749)),i=s(o(57676)),l=o(95016),a=o(19938);class h extends r.default{constructor(e,t,o,s){super(e,t,o,s,a.CLONE_TOP_INLINE_START_CORNER)}}(0,l.mixin)(h,n.default),(0,l.mixin)(h,i.default);t.default=h},5505:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.default=class{constructor(e,t){(0,r.default)(this,"dataAccessObject",void 0),(0,r.default)(this,"wtSettings",void 0),(0,r.default)(this,"headerWidths",new Map),this.dataAccessObject=e,this.wtSettings=t}getWidth(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}getHeaderHeight(e){let t=this.dataAccessObject.stylesHandler.getDefaultRowHeight();const o=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==o&&(t=t?Math.max(t,o):o),t}getHeaderWidth(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}calculateWidths(){const{wtSettings:e}=this;let t=e.getSetting("rowHeaderWidth");if(t=e.getSetting("onModifyRowHeaderWidth",t),null!=t){const o=e.getSetting("rowHeaders").length,s=e.getSetting("defaultColumnWidth");for(let e=0;e<o;e++){let o=Array.isArray(t)?t[e]:t;o=null==o?s:o,this.headerWidths.set(e,o)}}}}},87300:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.NodesPool=class{constructor(e){(0,r.default)(this,"nodeType",void 0),(0,r.default)(this,"pool",new Map),this.nodeType=e.toUpperCase()}setRootDocument(e){this.rootDocument=e}obtain(e,t){const o="number"==typeof t?`${e}x${t}`:e.toString();if(this.pool.has(o))return this.pool.get(o);const s=this.rootDocument.createElement(this.nodeType);return this.pool.set(o,s),s}}},49596:(e,t)=>{"use strict";t.__esModule=!0;t.WORKING_SPACE_ALL=0,t.WORKING_SPACE_TOP=1,t.WORKING_SPACE_BOTTOM=2},95397:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(28564);t.OrderView=s.OrderView;var r=o(72041);t.SharedOrderView=r.SharedOrderView},72041:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(28564);class r 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=r},28564:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(59313),i=o(92039);t.OrderView=class{constructor(e,t){(0,r.default)(this,"rootNode",void 0),(0,r.default)(this,"nodesPool",void 0),(0,r.default)(this,"sizeSet",new n.ViewSizeSet),(0,r.default)(this,"collectedNodes",[]),(0,r.default)(this,"viewDiffer",new i.ViewDiffer(this.sizeSet)),(0,r.default)(this,"leads",[]),this.rootNode=e,this.nodesPool=t}setSize(e){return this.sizeSet.setSize(e),this}setOffset(e){return this.sizeSet.setOffset(e),this}isSharedViewSet(){return this.sizeSet.isShared()}getNode(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}getCurrentNode(){const e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}applyCommand(e){const{rootNode:t}=this,[o,s,r,n]=e,i=this.nodesPool(s);switch(this.collectedNodes.push(i),o){case"prepend":t.insertBefore(i,t.firstChild);break;case"append":t.appendChild(i);break;case"insert_before":t.insertBefore(i,this.nodesPool(r)),t.removeChild(this.nodesPool(n));break;case"replace":t.replaceChild(i,this.nodesPool(r));break;case"remove":t.removeChild(i)}}start(){this.collectedNodes.length=0,this.leads=this.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}},92039:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(49596),i=o(70348);t.ViewDiffer=class{constructor(e){(0,r.default)(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:t,nextSize:o}=e.getViewSize();let s=Math.max(o,t);if(0===s)return[];const{currentOffset:r,nextOffset:l}=e.getViewSize(),a=new i.ViewOrder(r,t),h=new i.ViewOrder(l,o),c=[];for(let t=0;t<s;t++){const r=a.get(t),i=h.get(t);if(-1===i)c.push(["remove",r]);else if(-1===r)!e.isShared()||e.isShared()&&e.isPlaceOn(n.WORKING_SPACE_BOTTOM)?c.push(["append",i]):c.push(["prepend",i]);else if(i>r)a.has(i)&&(a.remove(i),o<=a.length&&(s-=1)),c.push(["replace",i,r]);else if(i<r){const e=a.prepend(i);c.push(["insert_before",i,r,e])}else c.push(["none",i])}return c}}},70348:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(54999),o(94364);var r=s(o(85707));t.ViewOrder=class{constructor(e,t){(0,r.default)(this,"order",[]),this.order=[...Array(t).keys()].map((t=>e+t))}get length(){return this.order.length}has(e){return this.order.indexOf(e)>-1}get(e){return e<this.order.length?this.order[e]:-1}remove(e){this.order.splice(this.order.indexOf(e),1)}prepend(e){return this.order.unshift(e),this.order.pop()}}},53537:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.ViewSize=class{constructor(){(0,r.default)(this,"currentSize",0),(0,r.default)(this,"nextSize",0),(0,r.default)(this,"currentOffset",0),(0,r.default)(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}},59313:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(53537),i=o(49596);t.ViewSizeSet=class{constructor(){(0,r.default)(this,"size",new n.ViewSize),(0,r.default)(this,"workingSpace",i.WORKING_SPACE_ALL),(0,r.default)(this,"sharedSize",null)}setSize(e){this.size.setSize(e)}setOffset(e){this.size.setOffset(e)}getViewSize(){return this.size}isShared(){return null!==this.sharedSize}isPlaceOn(e){return this.workingSpace===e}append(e){this.workingSpace=i.WORKING_SPACE_TOP,e.workingSpace=i.WORKING_SPACE_BOTTOM,this.sharedSize=e.getViewSize()}prepend(e){this.workingSpace=i.WORKING_SPACE_BOTTOM,e.workingSpace=i.WORKING_SPACE_TOP,this.sharedSize=e.getViewSize()}}},40799:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.default=class{constructor(e,t){(0,r.default)(this,"dataAccessObject",void 0),(0,r.default)(this,"wtSettings",void 0),this.dataAccessObject=e,this.wtSettings=t}getHeight(e){let t=this.wtSettings.getSetting("rowHeight",e);const o=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==o&&(t=void 0===t?o:Math.max(t,o)),t}getHeightByOverlayName(e,t){let o=this.wtSettings.getSetting("rowHeightByOverlayName",e,t);const s=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==s&&(o=void 0===o?s:Math.max(o,s)),o}}},47873:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834),o(14846),o(69655);var s=o(94916),r=o(59350);function n(e,t,o){i(e,t),t.set(e,o)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(h(e,t))}function a(e,t,o){return e.set(h(e,t),o),o}function h(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 c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(){const e=this.getCSSVariableValue("line-height"),t=this.getCSSVariableValue("cell-vertical-padding"),o=Math.ceil(parseFloat(this.getStyleForTD("border-bottom-width")));return null===e||null===t||isNaN(o)?null:e+2*t+o}function v(){(0,s.removeClass)(l(u,this),/ht-theme-.*/g),(0,s.addClass)(l(u,this),l(c,this))}function y(){this.isClassicTheme()||a(d,this,getComputedStyle(l(u,this)));const e=h(w,this,E).call(this,["box-sizing","border-bottom-width"]);l(m,this).td={...l(m,this).td,"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}function E(e){const t=l(g,this),o=l(u,this),s=t.createElement("table"),r=t.createElement("tbody"),n=t.createElement("tr"),i=t.createElement("tr"),a=t.createElement("td");i.appendChild(a),r.appendChild(n),r.appendChild(i),s.appendChild(r),o.appendChild(s);const h=getComputedStyle(a),c={};return e.forEach((e=>{c[e]=h.getPropertyValue(e)})),o.removeChild(s),c}function S(e){const t=Math.ceil(parseFloat(h(w,this,R).call(this,e)));return Number.isNaN(t)?null:t}function R(e){const t=l(d,this).getPropertyValue(e);return""===t?null:t}function b(){a(m,this,{}),a(p,this,{}),a(f,this,!0)}t.StylesHandler=class{constructor(e){var t,o;i(t=this,o=w),o.add(t),n(this,c,void 0),n(this,u,void 0),n(this,d,void 0),n(this,g,void 0),n(this,f,!0),n(this,p,{}),n(this,m,{}),a(u,this,e.rootTable.parentElement.parentElement),a(g,this,e.rootDocument)}isClassicTheme(){return l(f,this)}getCSSVariableValue(e){var t;if(l(f,this))return null;if(l(p,this)[`--ht-${e}`])return l(p,this)[`--ht-${e}`];const o=null!==(t=h(w,this,S).call(this,`--ht-${e}`))&&void 0!==t?t:h(w,this,R).call(this,`--ht-${e}`);return null!==o?(l(p,this)[`--ht-${e}`]=o,o):void 0}getStyleForTD(e){var t;return null===(t=l(m,this))||void 0===t?void 0:t.td[e]}getDefaultRowHeight(){if(l(f,this))return 23;const e=h(w,this,C).call(this);return!e&&(0,s.hasClass)(l(u,this),"ht-wrapper")?((0,r.warn)(`The "${l(c,this)}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`),a(f,this,!0),this.useTheme(),23):e}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){if(!e)return h(w,this,y).call(this),a(f,this,!0),void a(c,this,e||void 0);e&&e!==l(c,this)&&(l(c,this)&&h(w,this,b).call(this),a(c,this,e),a(f,this,!1),h(w,this,v).call(this),h(w,this,y).call(this))}getThemeName(){return l(c,this)}removeClassNames(){(0,s.hasClass)(l(u,this),l(c,this))&&(0,s.removeClass)(l(u,this),l(c,this))}}},4255:(e,t,o)=>{"use strict";t.__esModule=!0,o(94364);var s=o(94916),r=o(95016),n=o(14426);t.default=class{constructor(e,t,o,s,r){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=o,this.wtTable=r,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.rowsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllRows")?new n.RenderedAllRowsCalculationType:new n.RenderedRowsCalculationType],["fullyVisible",()=>new n.FullyVisibleRowsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleRowsCalculationType]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new n.RenderedAllColumnsCalculationType:new n.RenderedColumnsCalculationType],["fullyVisible",()=>new n.FullyVisibleColumnsCalculationType],["partiallyVisible",()=>new n.PartiallyVisibleColumnsCalculationType]]),this.eventManager=s,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",(()=>{this.clientHeight=this.getWorkspaceHeight()}))}getWorkspaceHeight(){const e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer;let o=0;if(t===this.domBindings.rootWindow)o=e.documentElement.clientHeight;else{o=(0,s.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0}return o}getViewportHeight(){let e=this.getWorkspaceHeight();if(e===1/0)return e;const t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}getWorkspaceWidth(){const{rootDocument:e,rootWindow:t}=this.domBindings,o=this.dataAccessObject.inlineStartOverlayTrimmingContainer;let s;if(o===t){const t=this.wtSettings.getSetting("totalColumns");s=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>s&&(s=e.documentElement.clientWidth)}else s=o.clientWidth;return s}getViewportWidth(){const e=this.getWorkspaceWidth();if(e===1/0)return e;const t=this.getRowHeaderWidth();return t>0?e-t:e}hasVerticalScroll(){return this.wtTable.hider.offsetHeight>this.getWorkspaceHeight()}hasHorizontalScroll(){return this.wtTable.hider.offsetWidth>this.getWorkspaceWidth()}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let o=0,s=e;for(;s<t;)o+=this.wtTable.getColumnWidth(s),s+=1;return o}getWorkspaceOffset(){return(0,s.offset)(this.wtTable.TABLE)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,s.outerHeight)(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}getRowHeaderWidth(){const e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(let o=0,s=t.length;o<s;o++)this.rowHeaderWidth+=e[o]||e}if(isNaN(this.rowHeaderWidth))if(t.length){let e=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(let o=0,r=t.length;o<r;o++)e?(this.rowHeaderWidth+=(0,s.outerWidth)(e),e=e.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}createRowsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let r,i,l=this.getViewportHeight();this.rowHeaderWidth=NaN;let a=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const h=t.getSetting("fixedRowsTop"),c=t.getSetting("fixedRowsBottom"),u=t.getSetting("totalRows");return h&&a>=0&&(i=this.dataAccessObject.topOverlay.sumCellSizes(0,h),a+=i,l-=i),c&&this.dataAccessObject.bottomOverlay.clone&&(i=this.dataAccessObject.bottomOverlay.sumCellSizes(u-c,u),l-=i),r=o.holder.clientHeight===o.holder.offsetHeight?0:(0,s.getScrollbarWidth)(this.domBindings.rootDocument),new n.ViewportRowsCalculator({calculationTypes:e.map((e=>[e,this.rowsCalculatorTypes.get(e)()])),viewportHeight:l,scrollOffset:a,totalRows:t.getSetting("totalRows"),defaultRowHeight:this.instance.stylesHandler.getDefaultRowHeight(),rowHeightFn:e=>o.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:r})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:o}=this;let r=this.getViewportWidth(),i=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const l=t.getSetting("fixedColumnsStart");if(l&&i>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,l);i+=e,r-=e}return o.holder.clientWidth!==o.holder.offsetWidth&&(r-=(0,s.getScrollbarWidth)(this.domBindings.rootDocument)),new n.ViewportColumnsCalculator({calculationTypes:e.map((e=>[e,this.columnsCalculatorTypes.get(e)()])),viewportWidth:r,scrollOffset:i,totalColumns:t.getSetting("totalColumns"),columnWidthFn:e=>o.getColumnWidth(e),overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}createCalculators(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,o=this.createRowsCalculator(),s=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=o.getResultsFor("fullyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t)}if(e&&!t.getSetting("renderAllColumns")){const t=s.getResultsFor("fullyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t)}return e||(this.rowsRenderCalculator=o.getResultsFor("rendered"),this.columnsRenderCalculator=s.getResultsFor("rendered")),this.rowsVisibleCalculator=o.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=s.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=o.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=s.getResultsFor("partiallyVisible"),e}createVisibleCalculators(){const e=this.createRowsCalculator(["fullyVisible","partiallyVisible"]),t=this.createColumnsCalculator(["fullyVisible","partiallyVisible"]);this.rowsVisibleCalculator=e.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=t.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=e.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=t.getResultsFor("partiallyVisible")}areAllProposedVisibleRowsAlreadyRendered(e){if(!this.rowsVisibleCalculator)return!1;let{startRow:t,endRow:o}=e;if(null===t&&null===o){if(!e.isVisibleInTrimmingContainer)return!0;t=this.rowsPartiallyVisibleCalculator.startRow,o=this.rowsPartiallyVisibleCalculator.endRow}const{startRow:s,endRow:r,rowStartOffset:n,rowEndOffset:i}=this.rowsRenderCalculator,l=this.wtSettings.getSetting("totalRows")-1,a=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(a)&&a>0?(t=Math.max(0,t-Math.min(n,a)),o=Math.min(l,o+Math.min(i,a))):"auto"===a&&(t=Math.max(0,t-Math.ceil(n/2)),o=Math.min(l,o+Math.ceil(i/2))),!(t<s||t===s&&t>0)&&!(o>r||o===r&&o<l)}areAllProposedVisibleColumnsAlreadyRendered(e){if(!this.columnsVisibleCalculator)return!1;let{startColumn:t,endColumn:o}=e;if(null===t&&null===o){if(!e.isVisibleInTrimmingContainer)return!0;t=this.columnsPartiallyVisibleCalculator.startColumn,o=this.columnsPartiallyVisibleCalculator.endColumn}const{startColumn:s,endColumn:r,columnStartOffset:n,columnEndOffset:i}=this.columnsRenderCalculator,l=this.wtSettings.getSetting("totalColumns")-1,a=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(a)&&a>0?(t=Math.max(0,t-Math.min(n,a)),o=Math.min(l,o+Math.min(i,a))):"auto"===a&&(t=Math.max(0,t-Math.ceil(n/2)),o=Math.min(l,o+Math.ceil(i/2))),!(t<s||t===s&&t>0)&&!(o>r||o===r&&o<l)}resetHasOversizedColumnHeadersMarked(){(0,r.objectEach)(this.hasOversizedColumnHeadersMarked,((e,t,o)=>{o[t]=void 0}))}}},19984:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(76006);var r=s(o(47098)),n=o(91980),i=o(8752),l=o(29398),a=o(84435),h=o(39548),c=o(77867),u=o(95605),d=o(7749);function g(e,t){const o=new r.default(e,t||{},n.rootInstanceSymbol);return o.init(),o}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(c.TextCellType),g.editors={BaseEditor:u.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new r.default(e,t,n.rootInstanceSymbol)},g.DefaultSettings=(0,i.metaSchemaFactory)(),g.hooks=l.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="14/01/2025 12:17:56",g.version="0.0.0-next-211192a-20250114",g.languages={dictionaryKeys:a.dictionaryKeys,getLanguageDictionary:a.getLanguageDictionary,getLanguagesDictionaries:a.getLanguagesDictionaries,registerLanguageDictionary:a.registerLanguageDictionary,getTranslatedPhrase:a.getTranslatedPhrase};t.default=g},25306:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(85588),r=o(8132),n=o(77924);const i=t.CELL_TYPE="autocomplete";t.AutocompleteCellType={CELL_TYPE:i,editor:s.AutocompleteEditor,renderer:r.autocompleteRenderer,validator:n.autocompleteValidator}},37924:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(25306);t.AutocompleteCellType=s.AutocompleteCellType,t.CELL_TYPE=s.CELL_TYPE},93620:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(60213),r=o(50437);const n=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:n,editor:s.CheckboxEditor,renderer:r.checkboxRenderer}},26705:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(93620);t.CELL_TYPE=s.CELL_TYPE,t.CheckboxCellType=s.CheckboxCellType},86846:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(48584),r=o(69868),n=o(21304);const i=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:i,editor:s.DateEditor,renderer:r.dateRenderer,validator:n.dateValidator}},36164:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(86846);t.CELL_TYPE=s.CELL_TYPE,t.DateCellType=s.DateCellType},9364:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(73717),r=o(16293),n=o(25479);const i=t.CELL_TYPE="dropdown";t.DropdownCellType={CELL_TYPE:i,editor:s.DropdownEditor,renderer:r.dropdownRenderer,validator:n.dropdownValidator,filter:!1,strict:!0}},40037:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(9364);t.CELL_TYPE=s.CELL_TYPE,t.DropdownCellType=s.DropdownCellType},52644:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(27973),r=o(89629);const n=t.CELL_TYPE="handsontable";t.HandsontableCellType={CELL_TYPE:n,editor:s.HandsontableEditor,renderer:r.handsontableRenderer}},74505:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(52644);t.CELL_TYPE=s.CELL_TYPE,t.HandsontableCellType=s.HandsontableCellType},23651:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllCellTypes=function(){(0,g.registerCellType)(s.AutocompleteCellType),(0,g.registerCellType)(r.CheckboxCellType),(0,g.registerCellType)(n.DateCellType),(0,g.registerCellType)(i.DropdownCellType),(0,g.registerCellType)(l.HandsontableCellType),(0,g.registerCellType)(a.NumericCellType),(0,g.registerCellType)(h.PasswordCellType),(0,g.registerCellType)(c.SelectCellType),(0,g.registerCellType)(u.TextCellType),(0,g.registerCellType)(d.TimeCellType)};var s=o(37924);t.AutocompleteCellType=s.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=s.CELL_TYPE;var r=o(26705);t.CheckboxCellType=r.CheckboxCellType,t.CHECKBOX_TYPE=r.CELL_TYPE;var n=o(36164);t.DateCellType=n.DateCellType,t.DATE_TYPE=n.CELL_TYPE;var i=o(40037);t.DropdownCellType=i.DropdownCellType,t.DROPDOWN_TYPE=i.CELL_TYPE;var l=o(74505);t.HandsontableCellType=l.HandsontableCellType,t.HANDSONTABLE_TYPE=l.CELL_TYPE;var a=o(80087);t.NumericCellType=a.NumericCellType,t.NUMERIC_TYPE=a.CELL_TYPE;var h=o(28033);t.PasswordCellType=h.PasswordCellType,t.PASSWORD_TYPE=h.CELL_TYPE;var c=o(78568);t.SelectCellType=c.SelectCellType,t.SELECT_TYPE=c.CELL_TYPE;var u=o(77867);t.TextCellType=u.TextCellType,t.TEXT_TYPE=u.CELL_TYPE;var d=o(80721);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var g=o(39548);t.registerCellType=g.registerCellType,t.getCellType=g.getCellType,t.getRegisteredCellTypeNames=g.getRegisteredCellTypeNames,t.getRegisteredCellTypes=g.getRegisteredCellTypes,t.hasCellType=g.hasCellType},80087:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(9404);t.CELL_TYPE=s.CELL_TYPE,t.NumericCellType=s.NumericCellType},9404:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(67045),r=o(65617),n=o(28029);const i=t.CELL_TYPE="numeric";t.NumericCellType={CELL_TYPE:i,editor:s.NumericEditor,renderer:r.numericRenderer,validator:n.numericValidator,dataType:"number"}},28033:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(14508);t.CELL_TYPE=s.CELL_TYPE,t.PasswordCellType=s.PasswordCellType},14508:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(75669),r=o(24677);const n=t.CELL_TYPE="password";t.PasswordCellType={CELL_TYPE:n,editor:s.PasswordEditor,renderer:r.passwordRenderer,copyable:!1}},39548:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.getCellType=function(e){if(!c(e))throw Error(`You declared cell type "${e}" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by\n "Handsontable.cellTypes.registerCellType" method`);return h(e)},t.registerCellType=function(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);const{editor:o,renderer:s,validator:r}=t;o&&(0,n.registerEditor)(e,o);s&&(0,i.registerRenderer)(e,s);r&&(0,l.registerValidator)(e,r);a(e,t)},o(67834);var r=s(o(29328)),n=o(45973),i=o(58151),l=o(57006);const{register:a,getItem:h,hasItem:c,getNames:u,getValues:d}=(0,r.default)("cellTypes");t.getRegisteredCellTypes=d,t.getRegisteredCellTypeNames=u,t.hasCellType=c},78568:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(90910);t.CELL_TYPE=s.CELL_TYPE,t.SelectCellType=s.SelectCellType},90910:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(31572),r=o(9608);const n=t.CELL_TYPE="select";t.SelectCellType={CELL_TYPE:n,editor:s.SelectEditor,renderer:r.selectRenderer}},77867:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(83580);t.CELL_TYPE=s.CELL_TYPE,t.TextCellType=s.TextCellType},83580:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(53423),r=o(5819);const n=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:n,editor:s.TextEditor,renderer:r.textRenderer}},80721:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(49176);t.CELL_TYPE=s.CELL_TYPE,t.TimeCellType=s.TimeCellType},49176:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(3833),r=o(35133),n=o(40711);const i=t.CELL_TYPE="time";t.TimeCellType={CELL_TYPE:i,editor:s.TimeEditor,renderer:r.timeRenderer,validator:n.timeValidator}},47098:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.default=function(e,t){var o,s=this;let V=arguments.length>2&&void 0!==arguments[2]&&arguments[2],F=this;const W=new h.default(F);let B,U,j,Y,z,G,K=!0;(0,b.hasValidParameter)(V)&&(0,b.registerAsRootInstance)(this);this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const $=null!==(o=null==t?void 0:t.layoutDirection)&&void 0!==o?o:"inherit",X=["rtl","ltr"].includes($)?$:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",X),this.isRtl=function(){return"rtl"===X},this.isLtr=function(){return!F.isRtl()},this.getDirectionFactor=function(){return F.isLtr()?1:-1},t.language=(0,M.getValidLanguageCode)(t.language);const q=new N.MetaManager(F,t,[N.DynamicCellMetaMod,N.ExtendMetaPropertiesMod]),Q=q.getTableMeta(),J=q.getGlobalMeta(),Z=(0,P.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),(0,b.isRootInstance)(this)&&((0,i._injectProductInfo)(t.licenseKey,e),(0,r.addClass)(e,"ht-wrapper"));this.guid=`ht_${(0,C.randomString)()}`,L.set(this.guid,this),this.columnIndexMapper=new R.IndexMapper,this.rowIndexMapper=new R.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",(e=>{F.runHooks("afterColumnSequenceChange",e)})),this.rowIndexMapper.addLocalHook("indexesSequenceChange",(e=>{F.runHooks("afterRowSequenceChange",e)})),U=new E.default(F),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let ee=new I.Selection(Q,{rowIndexMapper:F.rowIndexMapper,columnIndexMapper:F.columnIndexMapper,countCols:()=>F.countCols(),countRows:()=>F.countRows(),propToCol:e=>B.propToCol(e),isEditorOpened:()=>!!F.getActiveEditor()&&F.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return s.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return s.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>F.getShortcutManager(),createCellCoords:(e,t)=>F._createCellCoords(e,t),createCellRange:(e,t,o)=>F._createCellRange(e,t,o),visualToRenderableCoords:e=>{const{row:t,col:o}=e;return F._createCellCoords(t>=0?F.rowIndexMapper.getRenderableFromVisualIndex(t):t,o>=0?F.columnIndexMapper.getRenderableFromVisualIndex(o):o)},renderableToVisualCoords:e=>{const{row:t,col:o}=e;return F._createCellCoords(t>=0?F.rowIndexMapper.getVisualFromRenderableIndex(t):t,o>=0?F.columnIndexMapper.getVisualFromRenderableIndex(o):o)},findFirstNonHiddenRenderableRow:(e,t)=>{const o=t>e?1:-1,s=Math.min(e,t),r=Math.max(e,t),n=F.rowIndexMapper.getNearestNotHiddenIndex(e,o);return null===n||1===o&&n>r||-1===o&&n<s?null:n>=0?F.rowIndexMapper.getRenderableFromVisualIndex(n):n},findFirstNonHiddenRenderableColumn:(e,t)=>{const o=t>e?1:-1,s=Math.min(e,t),r=Math.max(e,t),n=F.columnIndexMapper.getNearestNotHiddenIndex(e,o);return null===n||1===o&&n>r||-1===o&&n<s?null:n>=0?F.columnIndexMapper.getRenderableFromVisualIndex(n):n},isDisabledCellSelection:(e,t)=>e<0||t<0?F.getSettings().disableVisualSelection:F.getCellMeta(e,t).disableVisualSelection});this.selection=ee;const te=e=>{let{hiddenIndexesChanged:t}=e;t&&this.selection.commit()};function oe(e){const t=(0,O.normalizeLanguageCode)(e);(0,M.hasLanguageDictionary)(t)?(F.runHooks("beforeLanguageChange",t),J.language=t,F.runHooks("afterLanguageChange",t)):(0,O.warnUserAboutLanguageRegistration)(e)}function se(e,t){const o="className"===e?F.rootElement:F.table;if(K)(0,r.addClass)(o,t);else{let s=[],n=[];J[e]&&(s=Array.isArray(J[e])?J[e]:(0,d.stringToArray)(J[e])),t&&(n=Array.isArray(t)?t:(0,d.stringToArray)(t));const i=(0,d.getDifferenceOfArrays)(s,n),l=(0,d.getDifferenceOfArrays)(n,s);i.length&&(0,r.removeClass)(o,i),l.length&&(0,r.addClass)(o,l)}J[e]=t}function re(){let e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty(){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function ne(e){const t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function ie(e,t,o){if(!e.length)return void o();const s=F.getActiveEditor(),r=new re;let n=!0;r.onQueueEmpty=()=>{s&&n&&s.cancelChanges(),o()};for(let o=e.length-1;o>=0;o--){const[s,i]=e[o],l=B.propToCol(i);let a;a=Number.isInteger(l)?F.getCellMeta(s,l):{...Object.getPrototypeOf(Q),...Q},F.getCellValidator(a)&&(r.addValidatorToQueue(),F.validateCell(e[o][3],a,function(t,o){return function(s){if("boolean"!=typeof s)throw new Error("Validation error: result is not boolean");!1===s&&!1===o.allowInvalid&&(n=!1,e.splice(t,1),o.valid=!0),r.removeValidatorFormQueue()}}(o,a),t))}r.checkIfQueueIsEmpty()}function le(e,t){for(let t=e.length-1;t>=0;t--){let o=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(Q.allowInsertRow)for(;e[t][0]>F.countRows()-1;){const{delta:e}=B.createRow(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}if("array"===F.dataType&&(!Q.columns||0===Q.columns.length)&&Q.allowInsertColumn)for(;B.propToCol(e[t][1])>F.countCols()-1;){const{delta:e}=B.createCol(void 0,void 0,{source:"auto"});if(0===e){o=!0;break}}o||B.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}const o=e.length>0;if(F.forceFullRender=!0,o){j.adjustRowsAndCols(),F.runHooks("beforeChangeRender",e,t),Y.closeEditor(),F.view.render(),Y.prepareEditor(),F.view.adjustElementsSize(),F.runHooks("afterChange",e,t||"edit");const o=F.getActiveEditor();o&&(0,i.isDefined)(o.refreshValue)&&o.refreshValue()}else F.view.render()}function ae(e,t,o){return Array.isArray(e)?e:[[e,t,o]]}function he(e,t){const o=F.runHooks("beforeChange",e,t||"edit"),s=e.filter((e=>null!==e));var r;if(!1===o||0===s.length)return null===(r=F.getActiveEditor())||void 0===r||r.cancelChanges(),[];for(let e=s.length-1;e>=0;e--){const[t,o,,r]=s[e],n=B.propToCol(o);let i;i=Number.isInteger(n)?F.getCellMeta(t,n):{...Object.getPrototypeOf(Q),...Q},"numeric"===i.type&&"string"==typeof r&&(0,v.isNumericLike)(r)&&(s[e][3]=ne(r))}return s}this.columnIndexMapper.addLocalHook("cacheUpdated",te),this.rowIndexMapper.addLocalHook("cacheUpdated",te),this.selection.addLocalHook("afterSetRangeEnd",((e,t)=>{const o=(0,c.createObjectPropListener)(!1),s=this.selection.getSelectedRange(),{from:n,to:i}=s.current(),l=s.size()-1;this.runHooks("afterSelection",n.row,n.col,i.row,i.col,o,l),this.runHooks("afterSelectionByProp",n.row,F.colToProp(n.col),i.row,F.colToProp(i.col),o,l),t&&(!o.isTouched()||o.isTouched()&&!o.value)&&G.scrollTo(e);const a=ee.isSelectedByRowHeader(),h=ee.isSelectedByColumnHeader();a&&h?(0,r.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):a?((0,r.removeClass)(this.rootElement,"ht__selection--columns"),(0,r.addClass)(this.rootElement,"ht__selection--rows")):h?((0,r.removeClass)(this.rootElement,"ht__selection--rows"),(0,r.addClass)(this.rootElement,"ht__selection--columns")):(0,r.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),"shift"!==ee.getSelectionSource()&&Y.closeEditor(null),F.view.render(),Y.prepareEditor()})),this.selection.addLocalHook("beforeSetFocus",(e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)})),this.selection.addLocalHook("afterSetFocus",(e=>{const t=(0,c.createObjectPropListener)(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&G.scrollTo(e),Y.closeEditor(),F.view.render(),Y.prepareEditor()})),this.selection.addLocalHook("afterSelectionFinished",(e=>{const t=e.length-1,{from:o,to:s}=e[t];this.runHooks("afterSelectionEnd",o.row,o.col,s.row,s.col,t),this.runHooks("afterSelectionEndByProp",o.row,F.colToProp(o.col),s.row,F.colToProp(s.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("afterDeselect",(()=>{Y.closeEditor(),F.view.render(),(0,r.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")})),this.selection.addLocalHook("beforeHighlightSet",(()=>this.runHooks("beforeSelectionHighlightSet"))).addLocalHook("beforeSetRangeStart",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSetRangeStart",...t)})).addLocalHook("beforeSetRangeStartOnly",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSetRangeStartOnly",...t)})).addLocalHook("beforeSetRangeEnd",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSetRangeEnd",...t)})).addLocalHook("beforeSelectColumns",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSelectColumns",...t)})).addLocalHook("afterSelectColumns",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterSelectColumns",...t)})).addLocalHook("beforeSelectRows",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeSelectRows",...t)})).addLocalHook("afterSelectRows",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterSelectRows",...t)})).addLocalHook("beforeModifyTransformStart",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("modifyTransformStart",...t)})).addLocalHook("afterModifyTransformStart",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterModifyTransformStart",...t)})).addLocalHook("beforeModifyTransformFocus",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("modifyTransformFocus",...t)})).addLocalHook("afterModifyTransformFocus",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterModifyTransformFocus",...t)})).addLocalHook("beforeModifyTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("modifyTransformEnd",...t)})).addLocalHook("afterModifyTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("afterModifyTransformEnd",...t)})).addLocalHook("beforeRowWrap",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeRowWrap",...t)})).addLocalHook("beforeColumnWrap",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.runHooks("beforeColumnWrap",...t)})).addLocalHook("insertRowRequire",(e=>this.alter("insert_row_above",e,1,"auto"))).addLocalHook("insertColRequire",(e=>this.alter("insert_col_start",e,1,"auto"))),j={alter(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;const n=e=>{if(0===e.length)return[];const t=[...e];t.sort(((e,t)=>{let[o]=e,[s]=t;return o===s?0:o>s?1:-1}));return(0,d.arrayReduce)(t,((e,t)=>{let[o,s]=t;const r=e[e.length-1],[n,i]=r,l=n+i;if(o<=l){const e=Math.max(s-(l-o),0);r[1]+=e}else e.push([o,s]);return e}),[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const r=F.countSourceRows();if(Q.maxRows===r)return;const l="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===l?r:0;const{delta:a,startPhysicalIndex:h}=B.createRow(t,o,{source:s,mode:l});ee.shiftRows(F.toVisualRow(h),a);break;case"insert_col_start":case"insert_col_end":const c="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===c?F.countSourceCols():0;const{delta:u,startPhysicalIndex:g}=B.createCol(t,o,{source:s,mode:c});if(u){if(Array.isArray(Q.colHeaders)){const e=[F.toVisualColumn(g),0];e.length+=u,Array.prototype.splice.apply(Q.colHeaders,e)}ee.shiftColumns(F.toVisualColumn(g),u)}break;case"remove_row":const f=e=>{let t=0;(0,d.arrayEach)(e,(e=>{let[o,r]=e;const n=(0,i.isEmpty)(o)?F.countRows()-1:Math.max(o-t,0);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!B.removeRow(o,r,s))return;if(ee.isSelected()){const{row:e}=F.getSelectedRangeLast().highlight;e>=o&&e<=o+r-1&&Y.closeEditor(!0)}const l=F.countRows();0===l?ee.deselect():"ContextMenu.removeRow"===s?ee.refresh():ee.shiftRows(o,-r);const a=Q.fixedRowsTop;a>=n+1&&(Q.fixedRowsTop-=Math.min(r,a-n));const h=Q.fixedRowsBottom;h&&n>=l-h&&(Q.fixedRowsBottom-=Math.min(r,h)),t+=r}))};Array.isArray(t)?f(n(t)):f([[t,o]]);break;case"remove_col":const p=e=>{let t=0;(0,d.arrayEach)(e,(e=>{let[o,r]=e;const n=(0,i.isEmpty)(o)?F.countCols()-1:Math.max(o-t,0);let l=F.toPhysicalColumn(n);Number.isInteger(o)&&(o=Math.max(o-t,0));if(!B.removeCol(o,r,s))return;if(ee.isSelected()){const{col:e}=F.getSelectedRangeLast().highlight;e>=o&&e<=o+r-1&&Y.closeEditor(!0)}0===F.countCols()?ee.deselect():"ContextMenu.removeColumn"===s?ee.refresh():ee.shiftColumns(o,-r);const a=Q.fixedColumnsStart;a>=n+1&&(Q.fixedColumnsStart-=Math.min(r,a-n)),Array.isArray(Q.colHeaders)&&(void 0===l&&(l=-1),Q.colHeaders.splice(l,r)),t+=r}))};Array.isArray(t)?p(n(t)):p([[t,o]]);break;default:throw new Error(`There is no such action "${e}"`)}r||j.adjustRowsAndCols(),F.view.render(),F.view.adjustElementsSize()},adjustRowsAndCols(){const e=Q.minRows,t=Q.minSpareRows,o=Q.minCols,s=Q.minSpareCols;if(e){const t=F.countRows();t<e&&B.createRow(t,e-t,{source:"auto"})}if(t){const e=F.countEmptyRows(!0);if(e<t){const o=t-e,s=Math.min(o,Q.maxRows-F.countSourceRows());B.createRow(F.countRows(),s,{source:"auto"})}}{let e;(o||s)&&(e=F.countEmptyCols(!0));let t=F.countCols();if(o&&!Q.columns&&t<o){const s=o-t;e+=s,B.createCol(t,s,{source:"auto"})}if(s&&!Q.columns&&"array"===F.dataType&&e<s){t=F.countCols();const o=s-e,r=Math.min(o,Q.maxCols-t);B.createCol(t,r,{source:"auto"})}}},populateFromArray(e,t,o,s,r){let n,i,l,a;const h=[],u={},g=[],f=e.row,p=e.col;if(i=t.length,0===i)return!1;let m=0,w=0;switch((0,c.isObject)(o)&&(m=o.col-p+1,w=o.row-f+1),r){case"shift_down":const r=(0,d.pivot)(t),C=r.length,v=Math.max(C,m),y=F.getData().slice(f),E=(0,d.pivot)(y).slice(p,p+v);for(l=0;l<v;l+=1)if(l<C){for(n=0,i=r[l].length;n<w-i;n+=1)r[l].push(r[l][n%i]);l<E.length?g.push(r[l].concat(E[l])):g.push(r[l].concat(new Array(y.length).fill(null)))}else g.push(r[l%C].concat(E[l]));F.populateFromArray(f,p,(0,d.pivot)(g));break;case"shift_right":const S=t.length,R=Math.max(S,w),b=F.getData().slice(f).map((e=>e.slice(p)));for(n=0;n<R;n+=1)if(n<S){for(l=0,a=t[n].length;l<m-a;l+=1)t[n].push(t[n][l%a]);if(n<b.length)for(let e=0;e<b[n].length;e+=1)t[n].push(b[n][e]);else t[n].push(...new Array(b[0].length).fill(null))}else t.push(t[n%i].slice(0,R).concat(b[n]));F.populateFromArray(f,p,t);break;default:u.row=e.row,u.col=e.col;let _,T=0,M=0,O=!0;const I=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const s=t[e%t.length];return null!==o?s[o%s.length]:s},N=t.length,A=o?o.row-e.row+1:0;for(i=o?A:Math.max(N,A),n=0;n<i&&!(o&&u.row>o.row&&A>N||!Q.allowInsertRow&&u.row>F.countRows()-1||u.row>=Q.maxRows);n++){const t=n-T,r=I(t).length,d=o?o.col-e.col+1:0;if(a=o?d:Math.max(r,d),u.col=e.col,_=F.getCellMeta(u.row,u.col),"CopyPaste.paste"!==s&&"Autofill.fill"!==s||!_.skipRowOnPaste){for(M=0,l=0;l<a&&!(o&&u.col>o.col&&d>r||!Q.allowInsertColumn&&u.col>F.countCols()-1||u.col>=Q.maxCols);l++){if(_=F.getCellMeta(u.row,u.col),("CopyPaste.paste"===s||"Autofill.fill"===s)&&_.skipColumnOnPaste){M+=1,u.col+=1,a+=1;continue}if(_.readOnly&&"UndoRedo.undo"!==s){u.col+=1;continue}let e=I(t,l-M),o=F.getDataAtCell(u.row,u.col);if(null!==e&&"object"==typeof e)if(Array.isArray(e)&&null===o&&(o=[]),null===o||"object"!=typeof o)O=!1;else{const t=(0,c.duckSchema)(Array.isArray(o)?o:o[0]||o),s=(0,c.duckSchema)(Array.isArray(e)?e:e[0]||e);(0,c.isObjectEqual)(t,s)||Array.isArray(t)&&Array.isArray(s)?e=(0,c.deepClone)(e):O=!1}else null!==o&&"object"==typeof o&&(O=!1);O&&h.push([u.row,u.col,e]),O=!0,u.col+=1}u.row+=1}else T+=1,u.row+=1,i+=1}F.setDataAtCell(h,null,null,s||"populateFromArray")}}},this.init=function(){U.setData(Q.data),F.runHooks("beforeInit"),((0,l.isMobileBrowser)()||(0,l.isIpadOS)())&&(0,r.addClass)(F.rootElement,"mobile"),this.updateSettings(Q,!0),this.view=new y.default(this);const e=Q.themeName||(0,D.getThemeClassName)(F.rootElement);F.useTheme(e),F.view.addClassNameToLicenseElement(F.getCurrentThemeName()),Y=a.default.getInstance(F,Q,ee),G=(0,A.createViewportScroller)(F),z=new u.FocusManager(F),(0,b.isRootInstance)(this)&&(0,A.installFocusCatcher)(F),F.runHooks("init"),this.forceFullRender=!0,this.view.render(),K&&null===F.rootElement.offsetParent&&(0,r.observeVisibilityChangeOnce)(F.rootElement,(()=>{F.view._wt.wtOverlays.updateLastSpreaderSize(),F.render(),F.view.adjustElementsSize()})),"object"==typeof K&&(F.runHooks("afterChange",K[0],K[1]),K=!1),F.runHooks("afterInit")},this._createCellCoords=function(e,t){return F.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,o){return F.view._wt.createCellRange(e,t,o)},this.validateCell=function(e,t,o,s){let r=F.getCellValidator(t);function l(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void o(e);const s=t.visualCol,r=t.visualRow,n=F.getCell(r,s,!0);if(n&&"TH"!==n.nodeName){const e=F.rowIndexMapper.getRenderableFromVisualIndex(r),t=F.columnIndexMapper.getRenderableFromVisualIndex(s);F.view._wt.getSetting("cellRenderer",e,t,n)}o(e)}var a;(0,i.isRegExp)(r)&&(a=r,r=function(e,t){t(a.test(e))}),(0,n.isFunction)(r)?(e=F.runHooks("beforeValidate",e,t.visualRow,t.prop,s),F._registerImmediate((()=>{r.call(t,e,(o=>{F&&(o=F.runHooks("afterValidate",o,e,t.visualRow,t.prop,s),t.valid=o,l(o),F.runHooks("postAfterValidate",o,e,t.visualRow,t.prop,s))}))}))):F._registerImmediate((()=>{t.valid=!0,l(t.valid,!1)}))},this.setDataAtCell=function(e,t,o,s){const r=ae(e,t,o),n=[];let i,l,a,h=s;for(i=0,l=r.length;i<l;i++){if("object"!=typeof r[i])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof r[i][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");a=r[i][1]>=this.countCols()?r[i][1]:B.colToProp(r[i][1]),n.push([r[i][0],a,U.getAtCell(this.toPhysicalRow(r[i][0]),r[i][1]),r[i][2]])}h||"object"!=typeof e||(h=t);const c=he(n,h);F.runHooks("afterSetDataAtCell",c,h),ie(c,h,(()=>{le(c,h)}))},this.setDataAtRowProp=function(e,t,o,s){const r=ae(e,t,o),n=[];let i,l,a=s;for(i=0,l=r.length;i<l;i++)n.push([r[i][0],r[i][1],U.getAtCell(this.toPhysicalRow(r[i][0]),r[i][1]),r[i][2]]);a||"object"!=typeof e||(a=t);const h=he(n,s);F.runHooks("afterSetDataAtRowProp",h,a),ie(h,a,(()=>{le(h,a)}))},this.listen=function(){F&&!F.isListening()&&(L.forEach((e=>{F!==e&&e.unlisten()})),k=F.guid,F.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(k=null,F.runHooks("afterUnlisten"))},this.isListening=function(){return k===F.guid},this.destroyEditor=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Y.closeEditor(e),F.view.render(),t&&ee.isSelected()&&Y.prepareEditor()},this.populateFromArray=function(e,t,o,s,r,n,i){if("object"!=typeof o||"object"!=typeof o[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const l="number"==typeof s?F._createCellCoords(s,r):null;return j.populateFromArray(F._createCellCoords(e,t),o,l,n,i)},this.spliceCol=function(e,t,o){for(var s=arguments.length,r=new Array(s>3?s-3:0),n=3;n<s;n++)r[n-3]=arguments[n];return B.spliceCol(e,t,o,...r)},this.spliceRow=function(e,t,o){for(var s=arguments.length,r=new Array(s>3?s-3:0),n=3;n<s;n++)r[n-3]=arguments[n];return B.spliceRow(e,t,o,...r)},this.getSelected=function(){if(ee.isSelected())return(0,d.arrayMap)(ee.getSelectedRange(),(e=>{let{from:t,to:o}=e;return[t.row,t.col,o.row,o.col]}))},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRange=function(){if(ee.isSelected())return Array.from(ee.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.emptySelectedCells=function(e){if(!ee.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,d.arrayEach)(ee.getSelectedRange(),(e=>{if(e.isSingleHeader())return;const o=e.getTopStartCorner(),s=e.getBottomEndCorner();(0,v.rangeEach)(o.row,s.row,(e=>{(0,v.rangeEach)(o.col,s.col,(o=>{this.getCellMeta(e,o).readOnly||t.push([e,o,null])}))}))})),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||(this.renderCall?this.render():F.view.render())},this.render=function(){this.view&&(this.renderCall=!0,this.forceFullRender=!0,this.isRenderSuspended()||F.view.render())},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const o=e();return this.resumeExecution(t),o},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!F.view)return;const e=F.view,{width:t,height:o}=e.getLastSize(),{width:s,height:r}=F.rootElement.getBoundingClientRect(),n=s!==t||r!==o;!1===F.runHooks("beforeRefreshDimensions",{width:t,height:o},{width:s,height:r},n)||((n||e._wt.wtOverlays.scrollableElement===F.rootWindow)&&(e.setLastSize(s,r),F.render(),e.adjustElementsSize()),F.runHooks("afterRefreshDimensions",{width:t,height:o},{width:s,height:r},n))},this.updateData=function(e,t){(0,N.replaceData)(e,(e=>{B=e}),(e=>{B=e,F.columnIndexMapper.fitToLength(this.getInitialColumnCount()),F.rowIndexMapper.fitToLength(this.countSourceRows()),j.adjustRowsAndCols(),ee.refresh()}),{hotInstance:F,dataMap:B,dataSource:U,internalSource:"updateData",source:t,metaManager:q,firstRun:K})},this.loadData=function(e,t){(0,N.replaceData)(e,(e=>{B=e}),(()=>{q.clearCellsCache(),F.initIndexMappers(),j.adjustRowsAndCols(),ee.refresh(),K&&(K=[null,"loadData"])}),{hotInstance:F,dataMap:B,dataSource:U,internalSource:"loadData",source:t,metaManager:q,firstRun:K})},this.getInitialColumnCount=function(){const e=Q.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,n.isFunction)(e))if("array"===F.dataType){const o=this.countSourceCols();for(let s=0;s<o;s+=1)e(s)&&(t+=1)}else"object"!==F.dataType&&"function"!==F.dataType||(t=B.colToPropCache.length);else if((0,i.isDefined)(Q.dataSchema)){const e=B.getSchema();t=Array.isArray(e)?e.length:(0,c.deepObjectSize)(e)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,o,s){return(0,i.isUndefined)(e)?B.getAll():B.getRange(F._createCellCoords(e,t),F._createCellCoords(o,s),B.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,o,s){return B.getCopyableText(F._createCellCoords(e,t),F._createCellCoords(o,s))},this.getCopyableData=function(e,t){return B.getCopyable(e,B.colToProp(t))},this.getSchema=function(){return B.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(K?F.loadData:F.updateData).bind(this);let s,r,l=!1;if((0,i.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,i.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,i.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(s in e)"data"===s||("language"===s?oe(e.language):"className"===s?se("className",e.className):"tableClassName"===s&&F.table?(se("tableClassName",e.tableClassName),F.view._wt.wtOverlays.syncOverlayTableClassNames()):T.Hooks.getSingleton().isRegistered(s)||T.Hooks.getSingleton().isDeprecated(s)?(0,n.isFunction)(e[s])?T.Hooks.getSingleton().addAsFixed(s,e[s],F):Array.isArray(e[s])&&T.Hooks.getSingleton().add(s,e[s],F):!t&&(0,c.hasOwnProperty)(e,s)&&(J[s]=e[s]));void 0===e.data&&void 0===Q.data?o(null,"updateSettings"):void 0!==e.data?o(e.data,"updateSettings"):void 0!==e.columns&&(B.createMap(),F.initIndexMappers());const a=F.countCols(),h=Q.columns;if(h&&(0,n.isFunction)(h)&&(l=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||q.clearCache(),a>0)for(s=0,r=0;s<a;s++){if(h){const e=l?h(s):h[r];e&&q.updateColumnMeta(r,e)}r+=1}(0,i.isDefined)(e.cell)&&(0,c.objectEach)(e.cell,(e=>{F.setCellMetaObject(e.row,e.col,e)})),F.runHooks("afterCellMetaReset");let u=F.rootElement.style.height;""!==u&&(u=parseInt(F.rootElement.style.height,10));let d=e.height;if((0,n.isFunction)(d)&&(d=d()),t){F.rootElement.getAttribute("style")&&F.rootElement.setAttribute("data-initialstyle",F.rootElement.getAttribute("style"))}if(null===d){const e=F.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?F.rootElement.setAttribute("style",e):(F.rootElement.style.height="",F.rootElement.style.overflow="")}else void 0!==d&&(F.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,F.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,n.isFunction)(t)&&(t=t()),F.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}if(!t){if(F.view){F.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),F.view._wt.exportSettingsAsClassNames();const t=F.getCurrentThemeName(),o=(0,c.hasOwnProperty)(e,"themeName");t&&o&&t!==e.themeName&&(F.view.getStylesHandler().removeClassNames(),F.view.removeClassNameFromLicenseElement(t));const s=o&&e.themeName||(0,D.getThemeClassName)(F.rootElement);F.useTheme(s),F.view.addClassNameToLicenseElement(F.getCurrentThemeName())}F.runHooks("afterUpdateSettings",e)}j.adjustRowsAndCols(),F.view&&!K&&(F.forceFullRender=!0,F.view.render(),F.view._wt.wtOverlays.adjustElementsSize())},this.getValue=function(){const e=F.getSelectedLast();if(Q.getValue){if((0,n.isFunction)(Q.getValue))return Q.getValue.call(F);if(e)return F.getData()[e[0][0]][Q.getValue]}else if(e)return F.getDataAtCell(e[0],e[1])},this.getSettings=function(){return Q},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,o,s,r){j.alter(e,t,o,s,r)},this.getCell=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=t,r=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;s=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;r=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===r||null===s||void 0===r||void 0===s?null:F.view.getCellAtCoords(F._createCellCoords(r,s),o)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:o,col:s}=t;let r=o,n=s;return o>=0&&(r=this.rowIndexMapper.getVisualFromRenderableIndex(o)),s>=0&&(n=this.columnIndexMapper.getVisualFromRenderableIndex(s)),F._createCellCoords(r,n)},this.colToProp=function(e){return B.colToProp(e)},this.propToCol=function(e){return B.propToCol(e)},this.toVisualRow=e=>this.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>this.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>this.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>this.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getDataAtCell=function(e,t){return B.get(e,B.colToProp(t))},this.getDataAtRowProp=function(e,t){return B.get(e,t)},this.getDataAtCol=function(e){const t=[],o=B.getRange(F._createCellCoords(0,e),F._createCellCoords(Q.data.length-1,e),B.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let s=0;s<o[e].length;s+=1)t.push(o[e][s]);return t},this.getDataAtProp=function(e){const t=[],o=B.getRange(F._createCellCoords(0,B.propToCol(e)),F._createCellCoords(Q.data.length-1,B.propToCol(e)),B.DESTINATION_RENDERER);for(let e=0;e<o.length;e+=1)for(let s=0;s<o[e].length;s+=1)t.push(o[e][s]);return t},this.getSourceData=function(e,t,o,s){let r;return r=void 0===e?U.getData():U.getByRange(F._createCellCoords(e,t),F._createCellCoords(o,s)),r},this.getSourceDataArray=function(e,t,o,s){let r;return r=void 0===e?U.getData(!0):U.getByRange(F._createCellCoords(e,t),F._createCellCoords(o,s),!0),r},this.getSourceDataAtCol=function(e){return U.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,o,s){const r=ae(e,t,o),n=this.hasHook("afterSetSourceDataAtCell"),l=[];n&&(0,d.arrayEach)(r,(e=>{let[t,o,s]=e;l.push([t,o,U.getAtCell(t,o),s])})),(0,d.arrayEach)(r,(e=>{let[t,o,s]=e;U.setAtCell(t,o,s)})),n&&this.runHooks("afterSetSourceDataAtCell",l,s),this.render();const a=F.getActiveEditor();a&&(0,i.isDefined)(a.refreshValue)&&a.refreshValue()},this.getSourceDataAtRow=function(e){return U.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return U.getAtCell(e,t)},this.getDataAtRow=function(e){return B.getRange(F._createCellCoords(e,0),F._createCellCoords(e,this.countCols()-1),B.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,o,s){const r=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,o,s],[n,i]=r;let[,,l,a]=r,h=null,c=null;void 0===l&&(l=n),void 0===a&&(a=i);let u="mixed";return(0,v.rangeEach)(Math.max(Math.min(n,l),0),Math.max(n,l),(e=>{let t=!0;return(0,v.rangeEach)(Math.max(Math.min(i,a),0),Math.max(i,a),(o=>{const s=this.getCellMeta(e,o);return c=s.type,h?t=h===c:h=c,t})),u=t?c:"mixed",t})),u},this.removeCellMeta=function(e,t,o){const[s,r]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let n=q.getCellMetaKeyValue(s,r,o);!1!==F.runHooks("beforeRemoveCellMeta",e,t,o,n)&&(q.removeCellMeta(s,r,o),F.runHooks("afterRemoveCellMeta",e,t,o,n)),n=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var o=arguments.length,s=new Array(o>2?o-2:0),r=2;r<o;r++)s[r-2]=arguments[r];if(s.length>0&&!Array.isArray(s[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&q.removeRow(this.toPhysicalRow(e),t),s.length>0&&(0,d.arrayEach)(s.reverse(),(t=>{q.createRow(this.toPhysicalRow(e)),(0,d.arrayEach)(t,((t,o)=>this.setCellMetaObject(e,o,t)))})),F.render()},this.setCellMetaObject=function(e,t,o){"object"==typeof o&&(0,c.objectEach)(o,((o,s)=>{this.setCellMeta(e,t,s,o)}))},this.setCellMeta=function(e,t,o,s){if(!1===F.runHooks("beforeSetCellMeta",e,t,o,s))return;let r=e,n=t;e<this.countRows()&&(r=this.toPhysicalRow(e)),t<this.countCols()&&(n=this.toPhysicalColumn(t)),q.setCellMeta(r,n,o,s),F.runHooks("afterSetCellMeta",e,t,o,s)},this.getCellsMeta=function(){return q.getCellsMeta()},this.getCellMeta=function(e,t){let o=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===o&&(o=e),null===s&&(s=t),q.getCellMeta(o,s,{visualRow:e,visualColumn:t})},this.getColumnMeta=function(e){return q.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return q.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===F.dataType||Q.columns)},this.getCellRenderer=function(e,t){const o="number"==typeof e?F.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof o?(0,p.getRenderer)(o):(0,i.isUndefined)(o)?(0,p.getRenderer)("text"):o},this.getCellEditor=function(e,t){const o="number"==typeof e?F.getCellMeta(e,t).editor:e.editor;return"string"==typeof o?(0,m.getEditor)(o):(0,i.isUndefined)(o)?(0,m.getEditor)("text"):o},this.getCellValidator=function(e,t){const o="number"==typeof e?F.getCellMeta(e,t).validator:e.validator;return"string"==typeof o?(0,w.getValidator)(o):o},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,o){const s=new re;e&&(s.onQueueEmpty=e);let r=F.countRows()-1;for(;r>=0;){if(void 0!==t&&-1===t.indexOf(r)){r-=1;continue}let e=F.countCols()-1;for(;e>=0;)void 0===o||-1!==o.indexOf(e)?(s.addValidatorToQueue(),F.validateCell(F.getDataAtCell(r,e),F.getCellMeta(r,e),(e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(s.valid=!1),s.removeValidatorFormQueue()}),"validateCells"),e-=1):e-=1;r-=1}s.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=Q.rowHeaders,o=e;return void 0!==o&&(o=F.runHooks("modifyRowHeader",o)),void 0===o?(t=[],(0,v.rangeEach)(F.countRows()-1,(e=>{t.push(F.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[o]?t=t[o]:(0,n.isFunction)(t)?t=t(o):t&&"string"!=typeof t&&"number"!=typeof t&&(t=o+1),t},this.hasRowHeaders=function(){return!!Q.rowHeaders},this.hasColHeaders=function(){if(void 0!==Q.colHeaders&&null!==Q.colHeaders)return!!Q.colHeaders;for(let e=0,t=F.countCols();e<t;e++)if(F.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const o=F.runHooks("modifyColHeader",e);if(void 0===o){const e=[],t=F.countCols();for(let o=0;o<t;o++)e.push(F.getColHeader(o));return e}let s=Q.colHeaders;const r=F.toPhysicalColumn(o),i=function(e){const t=[],o=F.countCols();let s=0;for(;s<o;s++)(0,n.isFunction)(Q.columns)&&Q.columns(s)&&t.push(s);return t[e]}(r);return!1===Q.colHeaders?s=null:Q.columns&&(0,n.isFunction)(Q.columns)&&Q.columns(i)&&Q.columns(i).title?s=Q.columns(i).title:Q.columns&&Q.columns[r]&&Q.columns[r].title?s=Q.columns[r].title:Array.isArray(Q.colHeaders)&&void 0!==Q.colHeaders[r]?s=Q.colHeaders[r]:(0,n.isFunction)(Q.colHeaders)?s=Q.colHeaders(r):Q.colHeaders&&"string"!=typeof Q.colHeaders&&"number"!=typeof Q.colHeaders&&(s=(0,S.spreadsheetColumnLabel)(o)),s=F.runHooks("modifyColumnHeaderValue",s,e,t),s},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=F.getCellMeta(0,e).width}if(void 0!==t&&t!==Q.width||(t=Q.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e,t){let o=F._getColWidthFromSettings(e);return o=F.runHooks("modifyColWidth",o,e,t),void 0===o&&(o=_.DEFAULT_COLUMN_WIDTH),o},this._getRowHeightFromSettings=function(e){let t=Q.rowHeights;if(null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e,t){let o=F._getRowHeightFromSettings(e);return o=F.runHooks("modifyRowHeight",o,e,t),o},this.countSourceRows=function(){return U.countRows()},this.countSourceCols=function(){return U.countFirstRowKeys()},this.countRows=function(){return B.getLength()},this.countCols=function(){const e=Q.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return F.view._wt.drawn?F.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return F.view._wt.drawn?F.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return F.view._wt.drawn?F.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return F.view._wt.drawn?F.view._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){return this.view.getRowHeadersCount()},this.countColHeaders=function(){return this.view.getColumnHeadersCount()},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,v.rangeEachReverse)(F.countRows()-1,(o=>{if(F.isEmptyRow(o))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,v.rangeEachReverse)(F.countCols()-1,(o=>{if(F.isEmptyCol(o))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return Q.isEmptyRow.call(F,e)},this.isEmptyCol=function(e){return Q.isEmptyCol.call(F,e)},this.selectCell=function(e,t,o,s){let r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,i.isUndefined)(e)&&!(0,i.isUndefined)(t)&&this.selectCells([[e,t,o,s]],r,n)},this.selectCells=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&G.suspend();const o=ee.selectCells(e);return o&&t&&F.listen(),G.resume(),o},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2?arguments[2]:void 0;return ee.selectColumns(e,t,o)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2?arguments[2]:void 0;return ee.selectRows(e,t,o)},this.deselectCell=function(){ee.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2?arguments[2]:void 0;G.skipNextScrollCycle(),ee.selectAll(e,t,o)};const ce=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e){var t;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(t=arguments[4])||void 0===t||t});const{row:o,col:s,considerHiddenIndexes:r}=null!=e?e:{};let n=o,i=s;if(void 0===r||r){const e=Number.isInteger(o)&&o>=0,t=Number.isInteger(s)&&s>=0,r=e?ce(this.rowIndexMapper,o):void 0,l=t?ce(this.columnIndexMapper,s):void 0;if(null===r||null===l)return!1;n=e?F.rowIndexMapper.getRenderableFromVisualIndex(r):o,i=t?F.columnIndexMapper.getRenderableFromVisualIndex(l):s}const l=Number.isInteger(n),a=Number.isInteger(i);return l&&n>=0&&a&&i>=0?F.view.scrollViewport(F._createCellCoords(n,i),e.horizontalSnap,e.verticalSnap):l&&n>=0&&(a&&i<0||!a)?F.view.scrollViewportVertically(n,e.verticalSnap):!!(a&&i>=0&&(l&&n<0||!l))&&F.view.scrollViewportHorizontally(i,e.horizontalSnap)},this.scrollToFocusedCell=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};if(!this.selection.isSelected())return;this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeLast();this.scrollViewportTo(t.toObject())?this.view.render():(this.removeHook("afterScroll",e),this._registerImmediate((()=>e())))},this.destroy=function(){if(F._clearTimeouts(),F._clearImmediates(),F.view&&F.view.destroy(),U&&U.destroy(),U=null,this.getShortcutManager().destroy(),q.clearCache(),L.delete(this.guid),(0,b.isRootInstance)(F)){const e=this.rootDocument.querySelector(".hot-display-license-info");e&&e.parentNode.removeChild(e)}(0,r.empty)(F.rootElement),W.destroy(),Y&&Y.destroy(),F.batchExecution((()=>{F.rowIndexMapper.unregisterAll(),F.columnIndexMapper.unregisterAll(),Z.getItems().forEach((e=>{let[,t]=e;t.destroy()})),Z.clear(),F.runHooks("afterDestroy")}),!0),T.Hooks.getSingleton().destroy(F),(0,c.objectEach)(F,((e,t,o)=>{var s;(0,n.isFunction)(e)?o[t]=(s=t,()=>{throw new Error(`The "${s}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(o[t]=null)})),F.isDestroyed=!0,B&&B.destroy(),B=null,j=null,ee=null,Y=null,F=null},this.getActiveEditor=function(){return Y.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return F.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return F.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return F.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return F.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return F.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return F.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return F.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return F.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return F.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return F.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return F.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return F.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return Z.getItem((0,C.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:Z.getId(e)},this.getInstance=function(){return F},this.addHook=function(e,t,o){T.Hooks.getSingleton().add(e,t,F,o)},this.hasHook=function(e){return T.Hooks.getSingleton().has(e,F)||T.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,o){T.Hooks.getSingleton().once(e,t,F,o)},this.removeHook=function(e,t){T.Hooks.getSingleton().remove(e,t,F)},this.runHooks=function(e,t,o,s,r,n,i){return T.Hooks.getSingleton().run(F,e,t,o,s,r,n,i)},this.getTranslatedPhrase=function(e,t){return(0,M.getTranslatedPhrase)(Q.language,e,t)},this.toHTML=()=>(0,g.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,g.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{this.view.getStylesHandler().useTheme(e),this.runHooks("afterSetTheme",e,!!K)},this.getCurrentThemeName=()=>this.view.getStylesHandler().getThemeName(),this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,d.arrayEach)(this.timeouts,(e=>{clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,d.arrayEach)(this.immediates,(e=>{clearImmediate(e)}))},this._getEditorManager=function(){return Y},this.isRtl=function(){return"rtl"===F.rootWindow.getComputedStyle(F.rootElement).direction},this.isLtr=function(){return!F.isRtl()},this.getDirectionFactor=function(){return F.isLtr()?1:-1};const ue=(0,H.createShortcutManager)({handleEvent:()=>F.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||F.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",(e=>{!1===e.ctrlKey&&!1===e.metaKey&&ue.releasePressedKeys()})),this.getShortcutManager=function(){return ue},this.getFocusManager=function(){return z},(0,f.getPluginsNames)().forEach((e=>{const t=(0,f.getPlugin)(e);Z.addItem(e,new t(this))})),(0,x.registerAllShortcutContexts)(F),ue.setActiveContextName("grid"),T.Hooks.getSingleton().run(F,"construct")},o(67834),o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458),o(69655),o(94364),o(71766);var r=o(94916),n=o(77515),i=o(95768),l=o(99275),a=s(o(5289)),h=s(o(12370)),c=o(95016),u=o(94810),d=o(47154),g=o(19310),f=o(42427),p=o(58151),m=o(45973),w=o(57006),C=o(83414),v=o(36926),y=s(o(20328)),E=s(o(88687)),S=o(42379),R=o(57466),b=o(91980),_=o(7749),T=o(29398),M=o(84435),O=o(20115),I=o(63480),N=o(8752),A=o(18393),P=o(78697),H=o(63313),x=o(9528),D=o(83033);let k=null;const L=new Map;new Set},92008:(e,t,o)=>{"use strict";t.__esModule=!0,t.installFocusDetector=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=e.rootElement,s=n(e),r=n(e);return s.addEventListener("focus",(()=>null==t?void 0:t.onFocusFromTop())),r.addEventListener("focus",(()=>null==t?void 0:t.onFocusFromBottom())),o.firstChild.before(s),o.lastChild.after(r),{activate(){e._registerTimeout((()=>{s.tabIndex=0,r.tabIndex=0}),10)},deactivate(){e._registerTimeout((()=>{s.tabIndex=-1,r.tabIndex=-1}),10)}}};var s=o(94916),r=o(45551);function n(e){const t=e.rootDocument.createElement("input");return t.type="text",t.name="__htFocusCatcher",t.classList.add("htFocusCatcher"),e.getSettings().ariaTags&&(0,s.setAttribute)(t,[(0,r.A11Y_PRESENTATION)(),(0,r.A11Y_HIDDEN)()]),t}},69998:(e,t,o)=>{"use strict";t.__esModule=!0,t.installFocusCatcher=function(e){const t=function(e){return t=>{if(!t)return null;const o=n(e),s=i(e);return t.col<o.col&&(t.col=o.col),t.col>s.col&&(t.col=s.col),t.row<o.row&&(t.row=o.row),t.row>s.row&&(t.row=s.row),t}}(e);let o;const{activate:l,deactivate:a}=(0,r.installFocusDetector)(e,{onFocusFromTop(){var s;const r=null!==(s=t(o))&&void 0!==s?s:n(e);r&&(e.runHooks("modifyFocusOnTabNavigation","from_above",r),e.selectCell(r.row,r.col)),e.listen()},onFocusFromBottom(){var s;const r=null!==(s=t(o))&&void 0!==s?s:i(e);r&&(e.runHooks("modifyFocusOnTabNavigation","from_below",r),e.selectCell(r.row,r.col)),e.listen()}}),h={wrapped:!1,flipped:!1};let c=!0,u=!1,d=!1;e.addHook("afterListen",(()=>a())),e.addHook("afterUnlisten",(()=>l())),e.addHook("afterSelection",((t,s,r,n,i)=>{var l;(u&&(h.wrapped&&h.flipped||d)&&(d=!1,i.value=!0),c)&&(o=null===(l=e.getSelectedRangeLast())||void 0===l?void 0:l.highlight)})),e.addHook("beforeRowWrap",((e,t,o)=>{h.wrapped=!0,h.flipped=o}));const g={keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:s.GRID_GROUP,group:"focusCatcher"};e.getShortcutManager().getContext("grid").addShortcuts([{...g,callback:()=>{const{tabNavigation:t}=e.getSettings();u=!0,e.getSelectedRangeLast()&&!t&&(c=!1),t||(d=!0)},position:"before"},{...g,callback:t=>{const{tabNavigation:s,autoWrapRow:r}=e.getSettings();if(u=!1,c=!0,!s||!e.selection.isSelected()||r&&h.wrapped&&h.flipped||!r&&h.wrapped)return r&&h.wrapped&&h.flipped&&(o=t.shiftKey?n(e):i(e)),h.wrapped=!1,h.flipped=!1,e.deselectCell(),e.unlisten(),!1;t.preventDefault()},position:"after"}])};var s=o(9528),r=o(92008);function n(e){const{rowIndexMapper:t,columnIndexMapper:o}=e,{navigableHeaders:s}=e.getSettings();let r=s&&e.countColHeaders()>0?-e.countColHeaders():0,n=s&&e.countRowHeaders()>0?-e.countRowHeaders():0;return 0===r&&(r=t.getVisualFromRenderableIndex(r)),0===n&&(n=o.getVisualFromRenderableIndex(n)),null===r||null===n?null:e._createCellCoords(r,n)}function i(e){var t,o;const{rowIndexMapper:s,columnIndexMapper:r}=e,{navigableHeaders:n}=e.getSettings();let i=s.getRenderableIndexesLength()-1,l=r.getRenderableIndexesLength()-1;if(i<0){if(!n||0===e.countColHeaders())return null;i=-1}if(l<0){if(!n||0===e.countColHeaders())return null;l=-1}return e._createCellCoords(null!==(t=s.getVisualFromRenderableIndex(i))&&void 0!==t?t:i,null!==(o=r.getVisualFromRenderableIndex(l))&&void 0!==o?o:l)}},47158:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834),o(15724),o(79747),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458),o(6211),o(69655);var s=o(17991);function r(e,t,o){n(e,t),t.set(e,o)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function i(e,t,o){return e.set(a(e,t),o),o}function l(e,t){return e.get(a(e,t))}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 WeakMap,d=new WeakSet;function g(e){l(h,this).set(e,[]),l(c,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;n(e=this,t=d),t.add(e),r(this,h,new Map),r(this,c,new Map),r(this,u,new Set),s.REGISTERED_HOOKS.forEach((e=>a(d,this,g).call(this,e)))}getHooks(e){var t;return null!==(t=l(h,this).get(e))&&void 0!==t?t:[]}add(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};l(h,this).has(e)||(a(d,this,g).call(this,e),s.REGISTERED_HOOKS.push(e));const r=l(h,this).get(e);if(r.find((e=>e.callback===t)))return;const n=Number.isInteger(o.orderIndex)?o.orderIndex:0,i=!!o.runOnce,c=!!o.initialHook;let f=!1;if(c){const e=r.find((e=>e.initialHook));e&&(e.callback=t,f=!0)}if(!f){r.push({callback:t,orderIndex:n,runOnce:i,initialHook:c,skip:!1});let o=l(u,this).has(e);o||0===n||(o=!0,l(u,this).add(e)),o&&r.length>1&&l(h,this).set(e,r.toSorted(((e,t)=>e.orderIndex-t.orderIndex)))}}has(e){return l(h,this).has(e)&&l(h,this).get(e).length>0}remove(e,t){if(!l(h,this).has(e))return!1;const o=l(h,this).get(e),s=o.find((e=>e.callback===t));if(s){let t=l(c,this).get(e);return s.skip=!0,t+=1,t>100&&(l(h,this).set(e,o.filter((e=>!e.skip))),t=0),l(c,this).set(e,t),!0}return!1}destroy(){l(h,this).clear(),l(c,this).clear(),i(h,this,null),i(c,this,null)}}},17991:(e,t)=>{"use strict";t.__esModule=!0;t.REGISTERED_HOOKS=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceChange","beforeViewportScrollVertically","beforeViewportScrollHorizontally","beforeViewportScroll","afterScrollHorizontally","afterScrollVertically","afterScroll","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSelectionFocusSet","beforeSelectColumns","afterSelectColumns","beforeSelectRows","afterSelectRows","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterSetTheme","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","beforeBeginEditing","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],t.REMOVED_HOOKS=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),t.DEPRECATED_HOOKS=new Map([[]])},29398:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(47154),i=o(83414),l=o(59350),a=o(20944),h=o(77515),c=o(17991),u=o(47158);const d=a.toSingleLine`The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\x20
|
36
36
|
Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\x20
|
37
|
-
learn about the migration path.`;class g{constructor(){(0,r.default)(this,"globalBucket",new u.HooksBucket)}static getSingleton(){return f}getBucket(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=new u.HooksBucket),e.pluginHookBucket):this.globalBucket}add(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,n.arrayEach)(t,(t=>this.add(e,t,o))):(c.REMOVED_HOOKS.has(e)&&(0,l.warn)((0,i.substitute)(d,{hookName:e,removedInVersion:c.REMOVED_HOOKS.get(e)})),c.DEPRECATED_HOOKS.has(e)&&(0,l.warn)(c.DEPRECATED_HOOKS.get(e)),this.getBucket(o).add(e,t,{orderIndex:s,runOnce:!1})),this}once(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,n.arrayEach)(t,(t=>this.once(e,t,o))):this.getBucket(o).add(e,t,{orderIndex:s,runOnce:!0}),this}addAsFixed(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Array.isArray(t)?(0,n.arrayEach)(t,(t=>this.addAsFixed(e,t,o))):this.getBucket(o).add(e,t,{initialHook:!0}),this}remove(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.getBucket(o).remove(e,t)}has(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.getBucket(t).has(e)}run(e,t,o,s,r,n,i,l){{const a=this.getBucket().getHooks(t),c=a?a.length:0;let u=0;if(c)for(;u<c;){if(!a[u]||a[u].skip){u+=1;continue}const c=(0,h.fastCall)(a[u].callback,e,o,s,r,n,i,l);void 0!==c&&(o=c),a[u]&&a[u].runOnce&&this.remove(t,a[u].callback),u+=1}}{const a=this.getBucket(e).getHooks(t),c=a?a.length:0;let u=0;if(c)for(;u<c;){if(!a[u]||a[u].skip){u+=1;continue}const c=(0,h.fastCall)(a[u].callback,e,o,s,r,n,i,l);void 0!==c&&(o=c),a[u]&&a[u].runOnce&&this.remove(t,a[u].callback,e),u+=1}}return o}destroy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.getBucket(e).destroy()}register(e){this.isRegistered(e)||c.REGISTERED_HOOKS.push(e)}deregister(e){this.isRegistered(e)&&c.REGISTERED_HOOKS.splice(c.REGISTERED_HOOKS.indexOf(e),1)}isDeprecated(e){return c.DEPRECATED_HOOKS.has(e)||c.REMOVED_HOOKS.has(e)}isRegistered(e){return c.REGISTERED_HOOKS.indexOf(e)>=0}getRegistered(){return c.REGISTERED_HOOKS}}t.Hooks=g;const f=new g;t.default=g},18393:(e,t,o)=>{"use strict";o(14846),o(69655),t.__esModule=!0;var s=o(69998);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var r=o(82837);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},82837:(e,t,o)=>{"use strict";t.__esModule=!0,t.createViewportScroller=function(e){const{selection:t}=e;let o=!1,c=!1;return{resume(){c=!1},suspend(){c=!0},skipNextScrollCycle(){o=!0},scrollTo(u){var d;if(o||c)return void(o=!1);let g;t.isFocusSelectionChanged()?g=(0,n.focusScrollStrategy)(e):t.isSelectedByCorner()?g=(0,r.cornerHeaderScrollStrategy)(e):t.isSelectedByRowHeader()?g=(0,a.rowHeaderScrollStrategy)(e):t.isSelectedByColumnHeader()?g=(0,s.columnHeaderScrollStrategy)(e):1===t.getSelectedRange().size()&&t.isMultiple()?g=(0,i.multipleScrollStrategy)(e):1!==t.getSelectedRange().size()||t.isMultiple()?t.getSelectedRange().size()>1&&(g=(0,l.noncontiguousScrollStrategy)(e)):g=(0,h.singleScrollStrategy)(e),null===(d=g)||void 0===d||d(u)}}};var s=o(77474),r=o(51761),n=o(71071),i=o(83525),l=o(13772),a=o(52834),h=o(47537)},77474:(e,t)=>{"use strict";t.__esModule=!0,t.columnHeaderScrollStrategy=function(e){return t=>{let{col:o}=t;e.scrollViewportTo({col:o})}}},51761:(e,t)=>{"use strict";t.__esModule=!0,t.cornerHeaderScrollStrategy=function(){return()=>{}}},71071:(e,t)=>{"use strict";t.__esModule=!0,t.focusScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject())}}},83525:(e,t)=>{"use strict";t.__esModule=!0,t.multipleScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject())}}},13772:(e,t)=>{"use strict";t.__esModule=!0,t.noncontiguousScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject())}}},52834:(e,t)=>{"use strict";t.__esModule=!0,t.rowHeaderScrollStrategy=function(e){return t=>{let{row:o}=t;e.scrollViewportTo({row:o})}}},47537:(e,t)=>{"use strict";t.__esModule=!0,t.singleScrollStrategy=function(e){return t=>{const o=e.selection.getSelectionSource(),{row:s,col:r}=t;if(s<0&&r>=0)e.scrollViewportTo({col:r});else if(r<0&&s>=0)e.scrollViewportTo({row:s});else{if("mouse"===o&&(r===e.view.getLastPartiallyVisibleColumn()||s===e.view.getLastPartiallyVisibleRow()))return;e.scrollViewportTo({row:s,col:r})}}}},22410:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(27458),o(69655);var r=s(o(85707)),n=o(74961),i=o(42379),l=o(95016),a=o(47154),h=o(36926),c=o(95768);class u{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,t,o){(0,r.default)(this,"hot",void 0),(0,r.default)(this,"metaManager",void 0),(0,r.default)(this,"tableMeta",void 0),(0,r.default)(this,"dataSource",void 0),(0,r.default)(this,"duckSchema",void 0),(0,r.default)(this,"colToPropCache",void 0),(0,r.default)(this,"propToColCache",void 0),this.hot=e,this.metaManager=o,this.tableMeta=o.getTableMeta(),this.dataSource=t,this.duckSchema=this.createDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");const t=this.tableMeta.columns;let o;if(this.colToPropCache=[],this.propToColCache=new Map,t){let s=0,r=0,n=!1;if("function"==typeof t){const t=(0,l.deepObjectSize)(e);s=t>0?t:this.countFirstRowKeys(),n=!0}else{const e=this.tableMeta.maxCols;s=Math.min(e,t.length)}for(o=0;o<s;o++){const e=n?t(o):t[o];if((0,l.isObject)(e)){if(void 0!==e.data){const t=n?r:o;this.colToPropCache[t]=e.data,this.propToColCache.set(e.data,t)}r+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return(0,i.countFirstRowKeys)(this.dataSource)}recursiveDuckColumns(e,t,o){let s,r=t,n=o;return void 0===r&&(r=0,n=""),"object"!=typeof e||Array.isArray(e)||(0,l.objectEach)(e,((e,t)=>{null===e?(s=n+t,this.colToPropCache.push(s),this.propToColCache.set(s,r),r+=1):r=this.recursiveDuckColumns(e,r,`${t}.`)})),r}colToProp(e){if(!1===Number.isInteger(e))return e;const t=this.hot.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&(0,c.isDefined)(this.colToPropCache[t])?this.colToPropCache[t]:t}propToCol(e){const t=this.propToColCache.get(e);if((0,c.isDefined)(t))return this.hot.toVisualColumn(t);const o=this.hot.toVisualColumn(e);return null===o?e:o}getSchema(){const e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?(0,l.duckSchema)(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:o,mode:s="above"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.hot.countSourceRows();let n=r,i=0,a=e;("number"!=typeof a||a>=r)&&(a=r),a<this.hot.countRows()&&(n=this.hot.toPhysicalRow(a));if(!1===this.hot.runHooks("beforeCreateRow",a,t,o)||null===n)return{delta:0};const c=this.tableMeta.maxRows,u=this.getSchema().length,d=[];for(;i<t&&r+i<c;){let e=null;"array"===this.hot.dataType?this.tableMeta.dataSchema?e=(0,l.deepClone)(this.getSchema()):(e=[],(0,h.rangeEach)(u-1,(()=>e.push(null)))):"function"===this.hot.dataType?e=this.tableMeta.dataSchema(a+i):(e={},(0,l.deepExtend)(e,this.getSchema())),d.push(e),i+=1}this.hot.rowIndexMapper.insertIndexes(a,i),"below"===s&&(n=Math.min(n+1,r)),this.spliceData(n,0,d);const g=this.hot.toVisualRow(n);return this.hot.countSourceRows()===d.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),i>0&&(null==e?this.metaManager.createRow(null,i):"auto"!==o&&this.metaManager.createRow(n,t)),this.hot.runHooks("afterCreateRow",g,i,o),this.hot.forceFullRender=!0,{delta:i,startPhysicalIndex:n}}createCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:o,mode:s="start"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.hot.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");const r=this.dataSource,n=this.tableMeta.maxCols,i=this.hot.countSourceCols();let l=e;("number"!=typeof l||l>=i)&&(l=i);if(!1===this.hot.runHooks("beforeCreateCol",l,t,o))return{delta:0};let a=i;l<this.hot.countCols()&&(a=this.hot.toPhysicalColumn(l));const h=this.hot.countSourceRows();let c=this.hot.countCols(),u=0,d=a;"end"===s&&(d=Math.min(d+1,i));const g=d;for(;u<t&&c<n;){if("number"!=typeof l||l>=c)if(h>0)for(let e=0;e<h;e+=1)void 0===r[e]&&(r[e]=[]),r[e].push(null);else r.push([null]);else for(let e=0;e<h;e++)r[e].splice(d,0,null);u+=1,d+=1,c+=1}this.hot.columnIndexMapper.insertIndexes(l,u),u>0&&(null==e?this.metaManager.createColumn(null,u):"auto"!==o&&this.metaManager.createColumn(g,t));const f=this.hot.toVisualColumn(g);return this.hot.runHooks("afterCreateCol",f,u,o),this.hot.forceFullRender=!0,this.refreshDuckSchema(),{delta:u,startPhysicalIndex:g}}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0,s=Number.isInteger(e)?e:-t;const r=this.visualRowsToPhysical(s,t),n=this.hot.countSourceRows();s=(n+s)%n;if(!1===this.hot.runHooks("beforeRemoveRow",s,r.length,r,o))return!1;const i=r.length;if(this.filterData(s,i,r),s<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(r);const e=(0,c.isDefined)(this.tableMeta.columns)||(0,c.isDefined)(this.tableMeta.dataSchema);0===this.hot.rowIndexMapper.getNotTrimmedIndexesLength()&&!1===e&&this.hot.columnIndexMapper.setIndexesSequence([])}return r.slice(0).sort(((e,t)=>t-e)).forEach((e=>{this.metaManager.removeRow(e,1)})),this.hot.runHooks("afterRemoveRow",s,i,r,o),this.hot.forceFullRender=!0,!0}removeCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if("object"===this.hot.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");let s="number"!=typeof e?-t:e;s=(this.hot.countCols()+s)%this.hot.countCols();const r=this.visualColumnsToPhysical(s,t),n=r.slice(0).sort(((e,t)=>t-e));if(!1===this.hot.runHooks("beforeRemoveCol",s,t,r,o))return!1;let i=!0;const l=n.length,a=this.dataSource;for(let e=0;e<l;e++)i&&r[0]!==r[e]-e&&(i=!1);if(i)for(let e=0,o=this.hot.countSourceRows();e<o;e++)a[e].splice(r[0],t),0===e&&this.metaManager.removeColumn(r[0],t);else for(let e=0,t=this.hot.countSourceRows();e<t;e++)for(let t=0;t<l;t++)a[e].splice(n[t],1),0===e&&this.metaManager.removeColumn(n[t],1);return s<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(r),0===this.hot.columnIndexMapper.getNotTrimmedIndexesLength()&&this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",s,t,r,o),this.hot.forceFullRender=!0,this.refreshDuckSchema(),!0}spliceCol(e,t,o){const s=this.hot.getDataAtCol(e),r=s.slice(t,t+o),n=s.slice(t+o);for(var i=arguments.length,l=new Array(i>3?i-3:0),h=3;h<i;h++)l[h-3]=arguments[h];(0,a.extendArray)(l,n);let c=0;for(;c<o;)l.push(null),c+=1;return(0,a.to2dArray)(l),this.hot.populateFromArray(t,e,l,null,null,"spliceCol"),r}spliceRow(e,t,o){const s=this.hot.getSourceDataAtRow(e),r=s.slice(t,t+o),n=s.slice(t+o);for(var i=arguments.length,l=new Array(i>3?i-3:0),h=3;h<i;h++)l[h-3]=arguments[h];(0,a.extendArray)(l,n);let c=0;for(;c<o;)l.push(null),c+=1;return this.hot.populateFromArray(e,t,[l],null,null,"spliceRow"),r}spliceData(e,t,o){if(!1!==this.hot.runHooks("beforeDataSplice",e,t,o)){const t=[...this.dataSource.slice(0,e),...o,...this.dataSource.slice(e)];this.dataSource.length=0,t.forEach((e=>this.dataSource.push(e)))}}filterData(e,t,o){let s=this.hot.runHooks("filterData",e,t,o);!1===Array.isArray(s)&&(s=this.dataSource.filter(((e,t)=>-1===o.indexOf(t)))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,s)}get(e,t){const o=this.hot.toPhysicalRow(e);let s=this.dataSource[o];const r=this.hot.runHooks("modifyRowData",o);s=isNaN(r)?r:s;const{dataDotNotation:n}=this.hot.getSettings();let i=null;if(s&&s.hasOwnProperty&&(0,l.hasOwnProperty)(s,t))i=s[t];else if(n&&"string"==typeof t&&t.indexOf(".")>-1){let e=s;if(!e)return null;const o=t.split(".");for(let t=0,s=o.length;t<s;t++)if(e=e[o[t]],void 0===e)return null;i=e}else"function"==typeof t&&(i=t(this.dataSource.slice(o,o+1)[0]));if(this.hot.hasHook("modifyData")){const e=(0,l.createObjectPropListener)(i);this.hot.runHooks("modifyData",o,this.propToCol(t),e,"get"),e.isTouched()&&(i=e.value)}return i}getCopyable(e,t){return this.hot.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}set(e,t,o){const s=this.hot.toPhysicalRow(e);let r=o,n=this.dataSource[s];const i=this.hot.runHooks("modifyRowData",s);if(n=isNaN(i)?i:n,this.hot.hasHook("modifyData")){const e=(0,l.createObjectPropListener)(r);this.hot.runHooks("modifyData",s,this.propToCol(t),e,"set"),e.isTouched()&&(r=e.value)}const{dataDotNotation:a}=this.hot.getSettings();if(n&&n.hasOwnProperty&&(0,l.hasOwnProperty)(n,t))n[t]=r;else if(a&&"string"==typeof t&&t.indexOf(".")>-1){let e,o=n,s=0;const i=t.split(".");for(s=0,e=i.length-1;s<e;s++)void 0===o[i[s]]&&(o[i[s]]={}),o=o[i[s]];o[i[s]]=r}else"function"==typeof t?t(this.dataSource.slice(s,s+1)[0],r):n[t]=r}visualRowsToPhysical(e,t){const o=this.hot.countSourceRows(),s=[];let r,n=(o+e)%o,i=t;for(;n<o&&i;)r=this.hot.toPhysicalRow(n),s.push(r),i-=1,n+=1;return s}visualColumnsToPhysical(e,t){const o=this.hot.countCols(),s=[];let r=(o+e)%o,n=t;for(;r<o&&n;){const e=this.hot.toPhysicalColumn(r);s.push(e),n-=1,r+=1}return s}clear(){for(let e=0;e<this.hot.countSourceRows();e++)for(let t=0;t<this.hot.countCols();t++)this.set(e,this.colToProp(t),"")}getLength(){const e=this.tableMeta.maxRows;let t;t=e<0||0===e?0:e||1/0;const o=this.hot.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(o,t)}getAll(){const e={row:0,col:0},t={row:Math.max(this.hot.countRows()-1,0),col:Math.max(this.hot.countCols()-1,0)};return e.row-t.row!=0||this.hot.countSourceRows()?this.getRange(e,t,u.DESTINATION_RENDERER):[]}countCachedColumns(){return this.colToPropCache.length}getRange(e,t,o){const s=[];let r,n,i;const l=this.tableMeta.maxRows,a=this.tableMeta.maxCols;if(0===l||0===a)return[];const h=o===u.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,c=Math.min(Math.max(l-1,0),Math.max(e.row,t.row)),d=Math.min(Math.max(a-1,0),Math.max(e.col,t.col));for(r=Math.min(e.row,t.row);r<=c;r++){i=[];const o=r>=0?this.hot.toPhysicalRow(r):r;for(n=Math.min(e.col,t.col);n<=d&&null!==o;n++)i.push(h.call(this,r,this.colToProp(n)));null!==o&&s.push(i)}return s}getText(e,t){return(0,n.stringify)(this.getRange(e,t,u.DESTINATION_RENDERER))}getCopyableText(e,t){return(0,n.stringify)(this.getRange(e,t,u.DESTINATION_CLIPBOARD_GENERATOR))}destroy(){this.hot=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}t.default=u},88687:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724),o(14846),o(69655);var r=s(o(85707)),n=o(95016),i=o(42379),l=o(47154),a=o(36926),h=o(77515);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,r.default)(this,"hot",void 0),(0,r.default)(this,"data",void 0),(0,r.default)(this,"dataType","array"),(0,r.default)(this,"colToProp",(()=>{})),(0,r.default)(this,"propToCol",(()=>{})),this.hot=e,this.data=t}modifyRowData(e){let t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}getData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}setData(e){this.data=e}getAtColumn(e){const t=[];return(0,l.arrayEach)(this.data,((o,s)=>{const r=this.getAtCell(s,e);t.push(r)})),t}getAtRow(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=void 0===t&&void 0===o,{dataDotNotation:i}=this.hot.getSettings();let l=null,c=null;if(l=this.modifyRowData(e),Array.isArray(l))c=[],r?l.forEach(((t,o)=>{c[o]=this.getAtPhysicalCell(e,o,l)})):(0,a.rangeEach)(t,o,(o=>{c[o-t]=this.getAtPhysicalCell(e,o,l)}));else if((0,n.isObject)(l)||(0,h.isFunction)(l))if(c=s?[]:{},!r||s){const r=0,h=this.countFirstRowKeys()-1;(0,a.rangeEach)(r,h,(a=>{const u=this.colToProp(a);if(a>=(t||r)&&a<=(o||h)&&!Number.isInteger(u)){const t=this.getAtPhysicalCell(e,u,l);s?c.push(t):i?(0,n.setProperty)(c,u,t):c[u]=t}}))}else(0,n.objectEach)(l,((t,o)=>{const s=this.getAtPhysicalCell(e,o,l);i?(0,n.setProperty)(c,o,s):c[o]=s}));return c}setAtCell(e,t,o){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){const s=(0,n.createObjectPropListener)(o);this.hot.runHooks("modifySourceData",e,t,s,"set"),s.isTouched()&&(o=s.value)}Number.isInteger(t)?this.data[e][t]=o:(0,n.setProperty)(this.data[e],t,o)}}getAtPhysicalCell(e,t,o){let s=null;if(o)if("string"==typeof t){const{dataDotNotation:e}=this.hot.getSettings();s=e?(0,n.getProperty)(o,t):o[t]}else s="function"==typeof t?t(o):o[t];if(this.hot.hasHook("modifySourceData")){const o=(0,n.createObjectPropListener)(s);this.hot.runHooks("modifySourceData",e,t,o,"get"),o.isTouched()&&(s=o.value)}return s}getAtCell(e,t){const o=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),o)}getByRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=!1,r=null,n=null,i=null,l=null;null===e||null===t?(s=!0,r=0,i=this.countRows()-1):(r=Math.min(e.row,t.row),n=Math.min(e.col,t.col),i=Math.max(e.row,t.row),l=Math.max(e.col,t.col));const h=[];return(0,a.rangeEach)(r,i,(e=>{h.push(s?this.getAtRow(e,void 0,void 0,o):this.getAtRow(e,n,l,o))})),h}countRows(){if(this.hot.hasHook("modifySourceLength")){const e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}countFirstRowKeys(){return(0,i.countFirstRowKeys)(this.data)}destroy(){this.data=null,this.hot=null}}},8752:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(22410));t.DataMap=r.default;var n=s(o(58651));t.MetaManager=n.default;var i=s(o(87441));t.metaSchemaFactory=i.default;var l=o(41024);t.replaceData=l.replaceData;var a=o(36749);t.DynamicCellMetaMod=a.DynamicCellMetaMod;var h=o(40353);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},58651:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(14846),o(69655);var r=s(o(54197)),n=s(o(6194)),i=s(o(92580)),l=s(o(65202)),a=s(o(32943)),h=o(95016);class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.hot=e,this.globalMeta=new r.default(e),this.tableMeta=new n.default(this.globalMeta),this.columnMeta=new i.default(this.globalMeta),this.cellMeta=new l.default(this.columnMeta),o.forEach((e=>new e(this))),this.globalMeta.updateMeta(t)}getGlobalMeta(){return this.globalMeta.getMeta()}updateGlobalMeta(e){this.globalMeta.updateMeta(e)}getTableMeta(){return this.tableMeta.getMeta()}updateTableMeta(e){this.tableMeta.updateMeta(e)}getColumnMeta(e){return this.columnMeta.getMeta(e)}updateColumnMeta(e,t){this.columnMeta.updateMeta(e,t)}getCellMeta(e,t,o){let{visualRow:s,visualColumn:r}=o;const n=this.cellMeta.getMeta(e,t);return n.visualRow=s,n.visualCol=r,n.row=e,n.col=t,this.runLocalHooks("afterGetCellMeta",n),n}getCellMetaKeyValue(e,t,o){if("string"!=typeof o)throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,t,o)}setCellMeta(e,t,o,s){this.cellMeta.setMeta(e,t,o,s)}updateCellMeta(e,t,o){this.cellMeta.updateMeta(e,t,o)}removeCellMeta(e,t,o){this.cellMeta.removeMeta(e,t,o)}getCellsMeta(){return this.cellMeta.getMetas()}getCellsMetaAtRow(e){return this.cellMeta.getMetasAtRow(e)}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}createColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}removeColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}clearCellsCache(){this.cellMeta.clearCache()}clearCache(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}t.default=c,(0,h.mixin)(c,a.default)},88333:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458);var r=s(o(85707)),n=o(85414);class i{constructor(e){(0,r.default)(this,"valueFactory",void 0),(0,r.default)(this,"data",[]),(0,r.default)(this,"index",[]),(0,r.default)(this,"holes",new Set),this.valueFactory=e}obtain(e){(0,n.assert)((()=>(0,n.isUnsignedNumber)(e)),"Expecting an unsigned number.");const t=this._getStorageIndexByKey(e);let o;if(t>=0)o=this.data[t],void 0===o&&(o=this.valueFactory(e),this.data[t]=o);else if(o=this.valueFactory(e),this.holes.size>0){const t=this.holes.values().next().value;this.holes.delete(t),this.data[t]=o,this.index[e]=t}else this.data.push(o),this.index[e]=this.data.length-1;return o}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,n.assert)((()=>(0,n.isUnsignedNumber)(e)||(0,n.isNullish)(e)),"Expecting an unsigned number or null/undefined argument.");const o=[],s=this.data.length;for(let e=0;e<t;e++)o.push(s+e),this.data.push(void 0);const r=(0,n.isNullish)(e)?this.index.length:e;this.index=[...this.index.slice(0,r),...o,...this.index.slice(r)]}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,n.assert)((()=>(0,n.isUnsignedNumber)(e)||(0,n.isNullish)(e)),"Expecting an unsigned number or null/undefined argument.");const o=this.index.splice((0,n.isNullish)(e)?this.index.length-t:e,t);for(let e=0;e<o.length;e++){const t=o[e];"number"==typeof t&&this.holes.add(t)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter(((e,t)=>void 0!==e&&!this.holes.has(t)))[Symbol.iterator]()}entries(){const e=[];for(let t=0;t<this.data.length;t++){const o=this._getKeyByStorageIndex(t);-1!==o&&void 0!==this.data[t]&&e.push([o,this.data[t]])}let t=0;return{next:()=>{if(t<e.length){const o=e[t];return t+=1,{value:o,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}t.default=i},65202:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(95016),i=o(85414),l=s(o(88333)),a=o(95768);t.default=class{constructor(e){(0,r.default)(this,"columnMeta",void 0),(0,r.default)(this,"metas",new l.default((()=>this._createRow()))),this.columnMeta=e}updateMeta(e,t,o){const s=this.getMeta(e,t);(0,n.extend)(s,o),(0,i.extendByMetaType)(s,o)}createRow(e,t){this.metas.insert(e,t)}createColumn(e,t){for(let o=0;o<this.metas.size();o++)this.metas.obtain(o).insert(e,t)}removeRow(e,t){this.metas.remove(e,t)}removeColumn(e,t){for(let o=0;o<this.metas.size();o++)this.metas.obtain(o).remove(e,t)}getMeta(e,t,o){const s=this.metas.obtain(e).obtain(t);return void 0===o?s:s[o]}setMeta(e,t,o,s){var r;const n=this.metas.obtain(e).obtain(t);null===(r=n._automaticallyAssignedMetaProps)||void 0===r||r.delete(o),n[o]=s}removeMeta(e,t,o){delete this.metas.obtain(e).obtain(t)[o]}getMetas(){const e=[],t=Array.from(this.metas.values());for(let o=0;o<t.length;o++)(0,a.isDefined)(t[o])&&e.push(...t[o].values());return e}getMetasAtRow(e){(0,i.assert)((()=>(0,i.isUnsignedNumber)(e)),"Expecting an unsigned number.");const t=new Map(this.metas);return t.has(e)?Array.from(t.get(e).values()):[]}clearCache(){this.metas.clear()}_createRow(){return new l.default((e=>this._createMeta(e)))}_createMeta(e){return new(this.columnMeta.getMetaConstructor(e))}}},92580:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(95016),i=o(85414),l=s(o(88333));const a=["data","width"];t.default=class{constructor(e){(0,r.default)(this,"globalMeta",void 0),(0,r.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,n.extend)(o,t),(0,i.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,i.columnFactory)(this.globalMeta.getMetaConstructor(),a).prototype}}},54197:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(95016),i=o(85414),l=s(o(87441));t.default=class{constructor(e){(0,r.default)(this,"metaCtor",class{}),(0,r.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,n.extend)(this.meta,(0,l.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,n.extend)(this.meta,e),(0,i.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},6194:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(95016),i=o(85414);t.default=class{constructor(e){(0,r.default)(this,"meta",void 0);const t=e.getMetaConstructor();this.meta=new t}getMeta(){return this.meta}updateMeta(e){(0,n.extend)(this.meta,e),(0,i.extendByMetaType)(this.meta,e,e)}}},87441:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95768),r=o(95016);t.default=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,o,r;for(t=0,o=this.countRows();t<o;t++)if(r=this.getDataAtCell(t,e),!1===(0,s.isEmpty)(r))return!1;return!0},isEmptyRow(e){let t,o,n,i;for(t=0,o=this.countCols();t<o;t++)if(n=this.getDataAtCell(e,t),!1===(0,s.isEmpty)(n))return"object"==typeof n&&(i=this.getCellMeta(e,t),(0,r.isObjectEqual)(this.getSchema()[i.prop],n));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0})},36749:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var r=s(o(85707)),n=o(29398),i=o(95016),l=o(77515);t.DynamicCellMetaMod=class{constructor(e){(0,r.default)(this,"metaManager",void 0),(0,r.default)(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",(e=>this.extendCellMeta(e))),n.Hooks.getSingleton().add("beforeRender",(e=>{e&&this.metaSyncMemo.clear()}),this.metaManager.hot)}extendCellMeta(e){var t;const{row:o,col:s}=e;if(null!==(t=this.metaSyncMemo.get(o))&&void 0!==t&&t.has(s))return;const{visualRow:r,visualCol:n}=e,a=this.metaManager.hot,h=a.colToProp(n);e.prop=h,a.runHooks("beforeGetCellMeta",r,n,e);const c=(0,i.hasOwnProperty)(e,"type")?e.type:null;let u=(0,l.isFunction)(e.cells)?e.cells(o,s,h):null;var d;c&&(u?u.type=null!==(d=u.type)&&void 0!==d?d:c:u={type:c});u&&this.metaManager.updateCellMeta(o,s,u),a.runHooks("afterGetCellMeta",r,n,e),this.metaSyncMemo.has(o)||this.metaSyncMemo.set(o,new Set),this.metaSyncMemo.get(o).add(s)}}},40353:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(69655);var r=s(o(85707));function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function i(e,t){return e.get(function(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")}(e,t))}var l=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,r.default)(this,"metaManager",void 0),(0,r.default)(this,"usageTracker",new Set),(0,r.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),n(this,l,((e,t,o)=>{if(!o)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)})),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach(((e,t)=>{const{initOnly:o,target:s,onChange:r}=e,n="string"==typeof s,a=n?s:t,h=`_${a}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[a],r?(this.installPropWatcher(t,h,r),n&&this.installPropWatcher(s,h,r)):o&&(this.installPropWatcher(t,h,i(l,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))}))}installPropWatcher(e,t,o){const s=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(r){const n=!s.usageTracker.has(e);s.usageTracker.add(e),o.call(s,e,r,n),this[t]=r},enumerable:!0,configurable:!0})}}},85414:(e,t,o)=>{"use strict";t.__esModule=!0,t.assert=function(e,t){if(!e())throw new Error(`Assertion failed: ${t}`)},t.columnFactory=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function o(){}(0,s.inherit)(o,e);for(let e=0;e<t.length;e++)o.prototype[t[e]]=void 0;return o},t.extendByMetaType=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const n="string"==typeof t.type?(0,r.getCellType)(t.type):t.type;e._automaticallyAssignedMetaProps&&(0,s.objectEach)(t,((t,o)=>{e._automaticallyAssignedMetaProps.delete(o)}));if(!(0,s.isObject)(n))return;o!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);const i={};(0,s.objectEach)(n,((t,r)=>{var n;(function(e,t){var o;if("CELL_TYPE"===e)return!1;return(null===(o=t._automaticallyAssignedMetaProps)||void 0===o?void 0:o.has(e))||!(0,s.hasOwnProperty)(t,e)})(r,o)&&(i[r]=t,null===(n=e._automaticallyAssignedMetaProps)||void 0===n||n.add(r))})),(0,s.extend)(e,i)},t.isNullish=function(e){return null==e},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},o(67834),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var s=o(95016),r=o(39548)},41024:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.replaceData=function(e,t,o,s){const{hotInstance:c,dataMap:u,dataSource:d,internalSource:g,source:f,metaManager:p,firstRun:m}=s,w=(0,r.toUpperCaseFirst)(g),C=c.getSettings();Array.isArray(C.dataSchema)?c.dataType="array":(0,n.isFunction)(C.dataSchema)?c.dataType="function":c.dataType="object";u&&u.destroy();e=c.runHooks(`before${w}`,e,m,f);const v=new i.default(c,e,p);if(t(v),"object"==typeof e&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error(`${g} only accepts array of objects or array of arrays (${typeof e} given)`);{const t=v.getSchema();let o;e=[];let s=0,r=0;for(s=0,r=C.startRows;s<r;s++)if("object"!==c.dataType&&"function"!==c.dataType||!C.dataSchema)if("array"===c.dataType)o=(0,l.deepClone)(t[0]),e.push(o);else{o=[];for(let e=0,t=C.startCols;e<t;e++)o.push(null);e.push(o)}else o=(0,l.deepClone)(t),e.push(o)}}Array.isArray(e[0])&&(c.dataType="array");C.data=e,v.dataSource=e,d.data=e,d.dataType=c.dataType,d.colToProp=v.colToProp.bind(v),d.propToCol=v.propToCol.bind(v),d.countCachedColumns=v.countCachedColumns.bind(v),o(v),c.runHooks(`after${w}`,e,m,f),m||(c.runHooks("afterChange",null,g),c.render());c.getSettings().ariaTags&&(0,a.setAttribute)(c.rootElement,[(0,h.A11Y_ROWCOUNT)(-1),(0,h.A11Y_COLCOUNT)(c.countCols()+(c.view?c.countRowHeaders():0))])},o(67834),o(15724);var r=o(83414),n=o(77515),i=s(o(22410)),l=o(95016),a=o(94916),h=o(45551)},5289:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(83644),i=o(40892),l=o(45973),a=s(o(12370));function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(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 u=new WeakSet;class d{constructor(e,t,o){h(this,u),(0,r.default)(this,"hot",void 0),(0,r.default)(this,"tableMeta",void 0),(0,r.default)(this,"selection",void 0),(0,r.default)(this,"eventManager",void 0),(0,r.default)(this,"destroyed",!1),(0,r.default)(this,"activeEditor",void 0),(0,r.default)(this,"cellProperties",void 0),this.hot=e,this.tableMeta=t,this.selection=o,this.eventManager=new a.default(e),this.hot.addHook("afterDocumentKeyDown",(e=>c(u,this,g).call(this,e))),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"compositionstart",(e=>{!this.destroyed&&this.hot.isListening()&&this.openEditor("",e)})),this.hot.view._wt.update("onCellDblClick",((e,t,o)=>c(u,this,f).call(this,e,t,o)))}getActiveEditor(){return this.activeEditor}prepareEditor(){var e;if(this.activeEditor&&this.activeEditor.isWaiting())return void this.closeEditor(!1,!1,(e=>{e&&this.prepareEditor()}));const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;if(!t||t.isHeader())return;const{row:o,col:s}=t,r=this.hot.runHooks("modifyGetCellCoords",o,s,!1,"meta");let n=o,i=s;if(Array.isArray(r)&&([n,i]=r),this.cellProperties=this.hot.getCellMeta(n,i),!this.isCellEditable())return void this.clearActiveEditor();const a=this.hot.getCell(o,s,!0);if(a){const e=this.hot.getCellEditor(this.cellProperties),t=this.hot.colToProp(i),r=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(n),i);this.activeEditor=(0,l.getEditorInstance)(e,this.hot),this.activeEditor.prepare(o,s,t,a,r,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.isCellEditable())return void this.clearActiveEditor();const s=this.hot.getSelectedRangeLast();let r=this.hot.runHooks("beforeBeginEditing",s.highlight.row,s.highlight.col,e,t,o);t instanceof MouseEvent&&"boolean"!=typeof r&&(r=0===this.hot.selection.getLayerLevel()&&s.isSingle()),!1!==r?(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(o&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))):this.clearActiveEditor()}closeEditor(e,t,o){this.activeEditor?this.activeEditor.finishEditing(e,t,o):o&&o(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeLast();if(!e)return!1;const t=this.hot.getCellEditor(this.cellProperties),{row:o,col:s}=e.highlight,{rowIndexMapper:r,columnIndexMapper:n}=this.hot,i=r.isHidden(this.hot.toPhysicalRow(o))||n.isHidden(this.hot.toPhysicalColumn(s));return!(this.cellProperties.readOnly||!t||i)}moveSelectionAfterEnter(e){const t={..."function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(t.row=-t.row,t.col=-t.col),this.hot.selection.isMultiple()?this.selection.transformFocus(t.row,t.col):this.selection.transformStart(t.row,t.col,!0)}destroy(){this.destroyed=!0,this.eventManager.destroy()}}function g(e){const t=this.hot.getSelectedRangeLast();if(!this.hot.isListening()||!t||t.highlight.isHeader()||(0,i.isImmediatePropagationStopped)(e))return;const{keyCode:o}=e,s=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&((0,n.isFunctionKey)(o)||(0,n.isCtrlMetaKey)(o)||s||this.isEditorOpened()||this.openEditor("",e))}function f(e,t){t.isCell()&&this.openEditor(null,e,!0)}const p=new WeakMap;d.getInstance=function(e,t,o){let s=p.get(e);return s||(s=new d(e,t,o),p.set(e,s)),s};t.default=d},52227:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(27458),o(6211),o(90458);var r=s(o(85707)),n=o(27973),i=o(47154),l=o(94916),a=o(95768),h=o(83414),c=o(83644),u=o(5819),d=o(45551);function g(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function f(e,t){return e.get(function(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")}(e,t))}const p=t.EDITOR_TYPE="autocomplete";var m=new WeakMap;class w extends n.HandsontableEditor{constructor(){super(...arguments),(0,r.default)(this,"query",null),(0,r.default)(this,"strippedChoices",[]),(0,r.default)(this,"rawChoices",[]),g(this,m,this.hot.guid.slice(0,9)),(0,r.default)(this,"sortByRelevance",(function(e,t,o){const s=[],r=[],n=e.length;let i,l,c,u,d=t.length;if(0===n){for(c=0;c<d;c++)r.push(c);return r}for(c=0;c<d;c++){if(l=(0,h.stripTags)((0,a.stringify)(t[c])),o)u=l.indexOf(e);else{const t=this.cellProperties.locale;u=l.toLocaleLowerCase(t).indexOf(e.toLocaleLowerCase(t))}-1!==u&&(i=l.length-u-n,s.push({baseIndex:c,index:u,charsLeft:i,value:l}))}for(s.sort(((e,t)=>{if(-1===t.index)return-1;if(-1===e.index)return 1;if(e.index<t.index)return-1;if(t.index<e.index)return 1;if(e.index===t.index){if(e.charsLeft<t.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0})),c=0,d=s.length;c<d;c++)r.push(s[c].baseIndex);return r}))}static get EDITOR_TYPE(){return p}getValue(){const e=this.rawChoices.find((e=>this.stripValueIfNeeded(e)===this.TEXTAREA.value));return(0,a.isDefined)(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,d.A11Y_TEXT)(),(0,d.A11Y_COMBOBOX)(),(0,d.A11Y_HASPOPUP)("listbox"),(0,d.A11Y_AUTOCOMPLETE)()])}prepare(e,t,o,s,r,n){super.prepare(e,t,o,s,r,n),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,d.A11Y_EXPANDED)("false"),(0,d.A11Y_CONTROLS)(`${f(m,this)}-listbox-${e}-${t}`)])}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,o=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,s=null==o?void 0:o.length,{row:r,col:n}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",(e=>this.onBeforeKeyDown(e))),this.htEditor.updateSettings({colWidths:e?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,autoRowSize:!0,renderer:(e,r,n,i,h,c,g)=>{(0,u.textRenderer)(e,r,n,i,h,c,g);const{filteringCaseSensitive:f,allowHtml:p,locale:m}=this.cellProperties,w=this.query;let C,v,y=(0,a.stringify)(c);y&&!p&&(C=!0===f?y.indexOf(w):y.toLocaleLowerCase(m).indexOf(w.toLocaleLowerCase(m)),-1!==C&&(v=y.substr(C,w.length),y=y.replace(v,`<strong>${v}</strong>`))),t&&(0,l.setAttribute)(r,[(0,d.A11Y_OPTION)(),...o?[(0,d.A11Y_SETSIZE)(s)]:[],...o?[(0,d.A11Y_POSINSET)(o.indexOf(c)+1)]:[],["id",`${this.htEditor.rootElement.id}_${n}-${i}`]]),r.innerHTML=y},afterSelectionEnd:(e,o)=>{if(t){const t=this.htEditor.getCell(e,o,!0);(0,l.setAttribute)(t,[(0,d.A11Y_SELECTED)()]),(0,l.setAttribute)(this.TEXTAREA,...(0,d.A11Y_ACTIVEDESCENDANT)(t.id))}}}),t&&((0,l.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,d.A11Y_PRESENTATION)()),(0,l.setAttribute)(this.htEditor.rootElement,[(0,d.A11Y_LISTBOX)(),(0,d.A11Y_LIVE)("polite"),(0,d.A11Y_RELEVANT)("text"),["id",`${f(m,this)}-listbox-${r}-${n}`]]),(0,l.setAttribute)(this.TEXTAREA,...(0,d.A11Y_EXPANDED)("true"))),this.hot._registerTimeout((()=>{this.queryChoices(this.TEXTAREA.value)}))}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,d.A11Y_EXPANDED)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,(e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))})):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=(0,l.getCaretPosition)(this.TEXTAREA),o=(0,l.getSelectionEndPosition)(this.TEXTAREA),s=this.cellProperties.sortByRelevance,r=this.cellProperties.filter;let n=null,a=null,h=e;s&&(n=this.sortByRelevance(this.stripValueIfNeeded(this.getValue()),h,this.cellProperties.filteringCaseSensitive));const c=Array.isArray(n)?n.length:0;if(!1===r)a=c>0?n[0]:0;else{const e=[];for(let t=0,o=h.length;t<o&&!(s&&c<=t);t++)c?e.push(h[n[t]]):e.push(h[t]);a=0,h=e}this.strippedChoices=h,0===h.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,i.pivot)([h])),h.length>0&&(this.updateDropdownDimensions(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(a)),this.hot.listen(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===o?void 0:o)}flipDropdownIfNeeded(){const e=(0,l.getTrimmingContainer)(this.hot.view._wt.wtTable.TABLE),t=e===this.hot.rootWindow,o=this.cellProperties.preventOverflow;if(t||!t&&(o||"horizontal"===o))return!1;const s=(0,l.offset)(this.TEXTAREA),r=(0,l.outerHeight)(this.TEXTAREA),n=this.getHeight(),i=e.scrollTop,a=(0,l.outerHeight)(this.hot.view._wt.wtTable.THEAD),h=(0,l.offset)(e),c=s.top-h.top-a+i,u=e.scrollHeight-c-a-r,d=n>u&&c>u;return d?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(d?c:u,n),d}limitDropdownIfNeeded(e,t){if(t>e){let o=0,s=0,r=0,n=null;do{r=this.htEditor.getRowHeight(s)||this.htEditor.view.getDefaultRowHeight(),o+=r,s+=1}while(o<e);n=o-r,this.htEditor.flipped&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-n+"px"),this.setDropdownHeight(o-r)}}flipDropdown(e){const t=this.htEditor.rootElement.style;t.position="absolute",t.top=-e+"px",this.htEditor.flipped=!0}unflipDropdown(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.htEditor.flipped=void 0}updateDropdownDimensions(){this.htEditor.updateSettings({width:this.getWidth(),height:this.getHeight()}),this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.htEditor.getSettings().width+(0,l.getScrollbarWidth)(this.hot.rootDocument)}),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e})}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getHeight(){const e=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore")),t=parseInt(e.borderTopWidth,10)+parseInt(e.borderBottomWidth,10),o=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:o},((e,t)=>t)).reduce(((e,t)=>e+this.htEditor.getRowHeight(t)),0)+t+1}getWidth(){const e=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore")),t=parseInt(e.borderInlineStartWidth,10)+parseInt(e.borderInlineEndWidth,10);return this.htEditor.getColWidth(0)+t}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,o=(0,i.arrayMap)(e,(e=>(0,a.stringify)(e)));return(0,i.arrayMap)(o,(e=>t?e:(0,h.stripTags)(e)))}allowKeyEventPropagation(e){const t=this.htEditor.getSelectedRangeLast(),o=t?t.from.row:-1;let s=!1;return e===c.KEY_CODES.ARROW_DOWN&&o>0&&o<this.htEditor.countRows()-1&&(s=!0),e===c.KEY_CODES.ARROW_UP&&o>-1&&(s=!0),s}onBeforeKeyDown(e){if((0,c.isPrintableChar)(e.keyCode)||e.keyCode===c.KEY_CODES.BACKSPACE||e.keyCode===c.KEY_CODES.DELETE||e.keyCode===c.KEY_CODES.INSERT){let t=10;if(e.keyCode===c.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout((()=>{this.queryChoices(this.TEXTAREA.value)}),t)}}}t.AutocompleteEditor=w},85588:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(52227);t.EDITOR_TYPE=s.EDITOR_TYPE,t.AutocompleteEditor=s.AutocompleteEditor},43785:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(95768),i=o(95016),l=s(o(30933)),a=o(94916);const h=t.EDITOR_TYPE="base",c=t.EDITOR_STATE=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});class u{static get EDITOR_TYPE(){return h}constructor(e){(0,r.default)(this,"hot",void 0),(0,r.default)(this,"state",c.VIRGIN),(0,r.default)(this,"_opened",!1),(0,r.default)(this,"_fullEditMode",!1),(0,r.default)(this,"_closeCallback",null),(0,r.default)(this,"TD",null),(0,r.default)(this,"row",null),(0,r.default)(this,"col",null),(0,r.default)(this,"prop",null),(0,r.default)(this,"originalValue",null),(0,r.default)(this,"cellProperties",null),this.hot=e,this.init()}_fireCallbacks(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}init(){}getValue(){throw Error("Editor getValue() method unimplemented")}setValue(){throw Error("Editor setValue() method unimplemented")}open(){throw Error("Editor open() method unimplemented")}close(){throw Error("Editor close() method unimplemented")}prepare(e,t,o,s,r,n){this.TD=s,this.row=e,this.col=t,this.prop=o,this.originalValue=r,this.cellProperties=n,this.state=this.isOpened()?this.state:c.VIRGIN}extend(){return class extends this.constructor{}}saveValue(e,t){let o,s,r,n;if(t){const e=this.hot.getSelectedLast();o=Math.max(Math.min(e[0],e[2]),0),s=Math.max(Math.min(e[1],e[3]),0),r=Math.max(e[0],e[2]),n=Math.max(e[1],e[3])}else[o,s,r,n]=[this.row,this.col,null,null];const i=this.hot.runHooks("modifyGetCellCoords",o,s,!1,"meta");Array.isArray(i)&&([o,s]=i),this.hot.populateFromArray(o,s,e,r,n,"edit")}beginEditing(e,t){if(this.state!==c.VIRGIN)return;const o=this.hot,s=o.rowIndexMapper.getRenderableFromVisualIndex(this.row),r=o.columnIndexMapper.getRenderableFromVisualIndex(this.col),i=()=>{if(this.state=c.EDITING,this.isInFullEditMode()){const t="string"==typeof e?e:(0,n.stringify)(this.originalValue);this.setValue(t)}this.open(t),this._opened=!0,this.focus(),o.view.render(),o.runHooks("afterBeginEditing",this.row,this.col)};this.hot.addHookOnce("afterScroll",i);o.view.scrollViewport(o._createCellCoords(s,r))||(this.hot.removeHook("afterScroll",i),i())}finishEditing(e,t,o){let s;if(o){const e=this._closeCallback;this._closeCallback=t=>{e&&e(t),o(t),this.hot.view.render()}}if(!this.isWaiting())if(this.state!==c.VIRGIN){if(this.state===c.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();const o=this.getValue();s=this.cellProperties.trimWhitespace?[["string"==typeof o?String.prototype.trim.call(o||""):o]]:[[o]],this.state=c.WAITING,this.saveValue(s,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(e=>{this.state=c.FINISHED,this.discardEditor(e)})):(this.state=c.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout((()=>{this._fireCallbacks(!0)}))}cancelChanges(){this.state=c.FINISHED,this.discardEditor()}discardEditor(e){if(this.state===c.FINISHED)if(!1===e&&!0!==this.cellProperties.allowInvalid)this.hot.selectCell(this.row,this.col),this.focus(),this.state=c.EDITING,this._fireCallbacks(!1);else{this.close(),this._opened=!1,this._fullEditMode=!1,this.state=c.VIRGIN,this._fireCallbacks(!0);this.hot.getShortcutManager().setActiveContextName("grid")}}enableFullEditMode(){this._fullEditMode=!0}isInFullEditMode(){return this._fullEditMode}isOpened(){return this._opened}isWaiting(){return this.state===c.WAITING}getEditedCellRect(){var e;const t=this.getEditedCell();if(!t)return;const{wtOverlays:o,wtViewport:s}=this.hot.view._wt,r=this.hot.rootWindow,n=(0,a.offset)(t),i=(0,a.outerWidth)(t),l=(0,a.offset)(this.hot.rootElement),h=(0,a.outerWidth)(this.hot.rootElement),c=o.topOverlay.holder,u=o.inlineStartOverlay.holder,d=c!==r?c.scrollTop:0,g=u!==r?u.scrollLeft:0,f=r.innerWidth-l.left-h,{wtTable:p}=null!==(e=o.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt,m=p.name,w=["master","inline_start"].includes(m)?d:0,C=["master","top","bottom"].includes(m)?g:0,v=n.top===l.top?0:1;let y=n.top-l.top-v-w,E=0;E=this.hot.isRtl()?r.innerWidth-n.left-i-f-1+C:n.left-l.left-1-C,["top","top_inline_start_corner"].includes(m)&&(y+=o.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(m)&&(E+=Math.abs(o.inlineStartOverlay.getOverlayOffset()));const S=this.hot.hasColHeaders(),R=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),b=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),_=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(S&&R<=0||R===_)&&(y+=1),b<=0&&(E+=1);const T=s.rowsRenderCalculator.startPosition,M=s.columnsRenderCalculator.startPosition,O=Math.abs(o.inlineStartOverlay.getScrollPosition()),I=o.topOverlay.getScrollPosition(),N=(0,a.getScrollbarWidth)(this.hot.rootDocument);let A=t.offsetTop;if(["inline_start","master"].includes(m)&&(A+=T-I),["bottom","bottom_inline_start_corner"].includes(m)){const{wtViewport:e,wtTable:t}=o.bottomOverlay.clone;A+=e.getWorkspaceHeight()-t.getHeight()-N}let P=t.offsetLeft;this.hot.isRtl()?(P=P>=0?p.getWidth()-t.offsetLeft:Math.abs(P),P+=M-O-i):["top","master","bottom"].includes(m)&&(P+=M-O);const H=r.getComputedStyle(this.TD),x=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",D=parseInt(H[x],10)>0?0:1,k=parseInt(H.borderTopWidth,10)>0?0:1,L=(0,a.outerWidth)(t)+D,V=(0,a.outerHeight)(t)+k,F=(0,a.hasVerticalScrollbar)(c)?N:0,W=(0,a.hasHorizontalScrollbar)(u)?N:0,B=this.hot.view.maximumVisibleElementWidth(P)-F+D;return{top:y,start:E,height:V,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(A)-W+k,this.hot.view.getDefaultRowHeight()),width:L,maxWidth:B}}getEditedCellsLayerClass(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}getEditedCell(){return this.hot.getCell(this.row,this.col,!0)}checkEditorSection(){const e=this.hot.countRows();let t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(t="inline-start"),t}}t.BaseEditor=u,(0,i.mixin)(u,l.default)},95605:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(43785);t.EDITOR_STATE=s.EDITOR_STATE,t.EDITOR_TYPE=s.EDITOR_TYPE,t.BaseEditor=s.BaseEditor},69609:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95605),r=o(94916);const n=t.EDITOR_TYPE="checkbox";class i extends s.BaseEditor{static get EDITOR_TYPE(){return n}beginEditing(e,t){if(t&&"mouseup"===t.type&&"TD"===t.target.nodeName){const e=this.TD.querySelector('input[type="checkbox"]');(0,r.hasClass)(e,"htBadValue")||e.click()}}finishEditing(){}init(){}open(){}close(){}getValue(){}setValue(){}focus(){}}t.CheckboxEditor=i},60213:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(69609);t.EDITOR_TYPE=s.EDITOR_TYPE,t.CheckboxEditor=s.CheckboxEditor},33491:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=s(o(86798)),i=s(o(75972)),l=o(95605),a=o(53423),h=o(94916),c=o(95016),u=o(83644);const d=t.EDITOR_TYPE="date",g="dateEditor";class f extends a.TextEditor{constructor(){super(...arguments),(0,r.default)(this,"defaultDateFormat","DD/MM/YYYY"),(0,r.default)(this,"parentDestroyed",!1),(0,r.default)(this,"$datePicker",null)}static get EDITOR_TYPE(){return d}init(){if("function"!=typeof n.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof i.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||((0,h.removeClass)(this.datePicker,/ht-theme-.*/g),(0,h.addClass)(this.datePicker,e))}))}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");const e=this.hot.getCurrentThemeName();(0,h.removeClass)(this.datePicker,/ht-theme-.*/g),(0,h.addClass)(this.datePicker,e),this.hot.rootDocument.body.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,s,r,n){super.prepare(e,t,o,s,r,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:g})}close(){var e;this._opened=!1,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(g),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=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.hot.view.isMouseDown(),s=!!e&&(0,u.isFunctionKey)(e.keyCode);let r;this.datePicker.style.display="block",this.$datePicker=new i.default(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(n.default),this.$datePicker._onInputFocus=function(){},this.originalValue?(r=this.originalValue,(0,n.default)(r,t,!0).isValid()&&this.$datePicker.setMoment((0,n.default)(r,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),s||o||this.setValue("")):this.cellProperties.defaultDate?(r=this.cellProperties.defaultDate,(0,n.default)(r,t,!0).isValid()&&this.$datePicker.setMoment((0,n.default)(r,t),!0),s||o||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){const e=this.TEXTAREA,t={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,c.deepExtend)(t,this.cellProperties.datePickerConfig);const o=t.onSelect,s=t.onClose;return t.field=e,t.trigger=e,t.container=this.datePicker,t.bound=!1,t.keyboardInput=!1,t.format=t.format||this.defaultDateFormat,t.reposition=t.reposition||!1,t.isRTL=!1,t.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=(0,n.default)(t).format(this.cellProperties.dateFormat||this.defaultDateFormat)),this.setValue(t),o&&o()},t.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),s&&s()},t}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==l.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:o,columnIndexMapper:s}=this.hot,{wtOverlays:r}=this.hot.view._wt,{wtTable:n}=null!==(t=r.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,i=o.getVisualFromRenderableIndex(n.getFirstPartiallyVisibleRow()),a=o.getVisualFromRenderableIndex(n.getLastPartiallyVisibleRow()),c=s.getVisualFromRenderableIndex(n.getFirstPartiallyVisibleColumn()),u=s.getVisualFromRenderableIndex(n.getLastPartiallyVisibleColumn());if(this.row>=i&&this.row<=a&&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()}}t.DateEditor=f},48584:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(33491);t.EDITOR_TYPE=s.EDITOR_TYPE,t.DateEditor=s.DateEditor},28629:(e,t,o)=>{"use strict";t.__esModule=!0,o(14846),o(27458);var s=o(85588);const r=t.EDITOR_TYPE="dropdown";class n extends s.AutocompleteEditor{static get EDITOR_TYPE(){return r}prepare(e,t,o,s,r,n){n.filter=!1,n.strict=!0,super.prepare(e,t,o,s,r,n)}}t.DropdownEditor=n},73717:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(28629);t.EDITOR_TYPE=s.EDITOR_TYPE,t.DropdownEditor=s.DropdownEditor},85065:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(53423),r=o(94916),n=o(40892),i=o(95016),l=o(9528);const a="handsontableEditor",h=t.EDITOR_TYPE="handsontable";class c extends s.TextEditor{static get EDITOR_TYPE(){return h}open(){super.open();const e=this.htContainer.style;this.htEditor&&(this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,r.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.htEditor.updateSettings({width:this.getWidth(),height:this.getHeight()}),this.refreshDimensions()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,t,o,s,r,n){super.prepare(e,t,o,s,r,n);const l=this,a={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){const o=this.getSourceData(t.row,t.col);void 0!==o&&l.setValue(o),l.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,i.extend)(a,n.handsontable),this.htOptions=a}beginEditing(e,t){const o=this.hot.getSettings().onBeginEditing;o&&!1===o()||super.beginEditing(e,t)}createElements(){super.createElements();const e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,o){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){const e=this.htEditor.getValue();void 0!==e&&this.setValue(e)}super.finishEditing(e,t,o)}getHeight(){return this.htEditor.view.getTableHeight()+1}getWidth(){return this.htEditor.view.getTableWidth()}assignHooks(){this.hot.addHook("afterDestroy",(()=>{var e;null===(e=this.htEditor)||void 0===e||e.destroy()})),this.hot.addHook("afterSetTheme",((e,t)=>{var o;t||(null===(o=this.htEditor)||void 0===o||o.useTheme(e))}))}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const t={group:a,relativeToGroup:l.EDITOR_EDIT_GROUP,position:"before"},o=(e,t)=>{const o=this.htEditor;if(void 0!==e&&(e<0||o.flipped&&e>o.countRows()-1?o.deselectCell():o.selectCell(e,0),o.getData().length))return t.preventDefault(),(0,n.stopImmediatePropagation)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let s,r;return!t.getSelectedLast()&&t.flipped?s=t.countRows()-1:t.getSelectedLast()&&(t.flipped?(r=t.getSelectedLast()[0],s=Math.max(0,r-1)):(r=t.getSelectedLast()[0],s=r-1)),o(s,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let s,r;if(t.getSelectedLast()||t.flipped){if(t.getSelectedLast())if(t.flipped)s=t.getSelectedLast()[0]+1;else if(!t.flipped){const e=t.countRows()-1;r=t.getSelectedLast()[0],s=Math.min(e,r+1)}}else s=0;return o(s,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts();this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(a)}}t.HandsontableEditor=c},27973:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(85065);t.EDITOR_TYPE=s.EDITOR_TYPE,t.HandsontableEditor=s.HandsontableEditor},39004:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,f.registerEditor)(r.BaseEditor),(0,f.registerEditor)(s.AutocompleteEditor),(0,f.registerEditor)(n.CheckboxEditor),(0,f.registerEditor)(i.DateEditor),(0,f.registerEditor)(l.DropdownEditor),(0,f.registerEditor)(a.HandsontableEditor),(0,f.registerEditor)(h.NumericEditor),(0,f.registerEditor)(c.PasswordEditor),(0,f.registerEditor)(u.SelectEditor),(0,f.registerEditor)(d.TextEditor),(0,f.registerEditor)(g.TimeEditor)};var s=o(85588);t.AutocompleteEditor=s.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=s.EDITOR_TYPE;var r=o(95605);t.BaseEditor=r.BaseEditor,t.BASE_EDITOR=r.EDITOR_TYPE;var n=o(60213);t.CheckboxEditor=n.CheckboxEditor,t.CHECKBOX_EDITOR=n.EDITOR_TYPE;var i=o(48584);t.DateEditor=i.DateEditor,t.DATE_EDITOR=i.EDITOR_TYPE;var l=o(73717);t.DropdownEditor=l.DropdownEditor,t.DROPDOWN_EDITOR=l.EDITOR_TYPE;var a=o(27973);t.HandsontableEditor=a.HandsontableEditor,t.HANDSONTABLE_EDITOR=a.EDITOR_TYPE;var h=o(67045);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var c=o(75669);t.PasswordEditor=c.PasswordEditor,t.PASSWORD_EDITOR=c.EDITOR_TYPE;var u=o(31572);t.SelectEditor=u.SelectEditor,t.SELECT_EDITOR=u.EDITOR_TYPE;var d=o(53423);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var g=o(3833);t.TimeEditor=g.TimeEditor,t.TIME_EDITOR=g.EDITOR_TYPE;var f=o(45973);t.registerEditor=f.registerEditor,t.RegisteredEditor=f.RegisteredEditor,t._getEditorInstance=f._getEditorInstance,t.getEditor=f.getEditor,t.getEditorInstance=f.getEditorInstance,t.getRegisteredEditorNames=f.getRegisteredEditorNames,t.getRegisteredEditors=f.getRegisteredEditors,t.hasEditor=f.hasEditor},67045:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(73971);t.EDITOR_TYPE=s.EDITOR_TYPE,t.NumericEditor=s.NumericEditor},73971:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(53423);const r=t.EDITOR_TYPE="numeric";class n extends s.TextEditor{static get EDITOR_TYPE(){return r}}t.NumericEditor=n},75669:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(64137);t.EDITOR_TYPE=s.EDITOR_TYPE,t.PasswordEditor=s.PasswordEditor},64137:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(53423),i=o(64144),l=o(94916);const a=t.EDITOR_TYPE="password";class h extends n.TextEditor{constructor(){super(...arguments),(0,r.default)(this,"autoResize",(0,i.createInputElementResizer)(this.hot.rootDocument,{textContent:e=>"•".repeat(e.value.length)}))}static get EDITOR_TYPE(){return a}createElements(){super.createElements(),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,l.empty)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}t.PasswordEditor=h},45973:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.RegisteredEditor=d,t.getEditorInstance=t._getEditorInstance=function(e,t){let o;if("function"==typeof e)i.get(e)||g(null,e),o=i.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');o=a(e)}if(!o)throw Error(`No editor registered under name "${e}"`);return o.getInstance(t)},t.getEditor=function(e){if("function"==typeof e)return e;if(!h(e))throw Error(`No registered editor found under "${e}" name`);return a(e).getConstructor()},t.registerEditor=g,o(67834);var r=o(29398),n=s(o(29328));const i=new WeakMap,{register:l,getItem:a,hasItem:h,getNames:c,getValues:u}=(0,n.default)("editors");function d(e){const t={},o=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new o(e)),t[e.guid]},r.Hooks.getSingleton().add("afterDestroy",(function(){t[this.guid]=null}))}function g(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);const o=new d(t);"string"==typeof e&&l(e,o),i.set(t,o)}t.getRegisteredEditors=u,t.getRegisteredEditorNames=c,t.hasEditor=h},31572:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(7539);t.EDITOR_TYPE=s.EDITOR_TYPE,t.SelectEditor=s.SelectEditor},7539:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95605),r=o(94916),n=o(95016),i=o(45551);const l="ht_editor_visible",a="selectEditor",h=t.EDITOR_TYPE="select";class c extends s.BaseEditor{static get EDITOR_TYPE(){return h}init(){this.selectWrapper=this.hot.rootDocument.createElement("div"),this.select=this.hot.rootDocument.createElement("select"),this.select.setAttribute("data-hot-input","true"),this.selectWrapper.style.display="none";const e=this.hot.rootDocument.createElement("DIV"),t=this.hot.getSettings().ariaTags;e.className="htAutocompleteArrow",t&&e.setAttribute(...(0,i.A11Y_HIDDEN)()),e.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660))),(0,r.addClass)(this.selectWrapper,"htSelectEditor"),this.selectWrapper.appendChild(this.select),this.selectWrapper.insertBefore(e,this.selectWrapper.firstChild),this.hot.rootElement.appendChild(this.selectWrapper),this.registerHooks()}getValue(){return this.select.value}setValue(e){this.select.value=e}open(){this._opened=!0,this.refreshDimensions(),this.selectWrapper.style.display="";this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.selectWrapper.style.display="none",(0,r.hasClass)(this.selectWrapper,l)&&(0,r.removeClass)(this.selectWrapper,l),this.unregisterShortcuts(),this.clearHooks()}focus(){this.select.focus()}registerHooks(){this.addHook("afterScrollHorizontally",(()=>this.refreshDimensions())),this.addHook("afterScrollVertically",(()=>this.refreshDimensions())),this.addHook("afterColumnResize",(()=>this.refreshDimensions())),this.addHook("afterRowResize",(()=>this.refreshDimensions()))}prepare(e,t,o,s,i,l){super.prepare(e,t,o,s,i,l);const a=this.cellProperties.selectOptions;let h;h="function"==typeof a?this.prepareOptions(a(this.row,this.col,this.prop)):this.prepareOptions(a),(0,r.empty)(this.select),(0,n.objectEach)(h,((e,t)=>{const o=this.hot.rootDocument.createElement("OPTION");o.value=t,(0,r.fastInnerHTML)(o,e),this.select.appendChild(o)}))}prepareOptions(e){let t={};if(Array.isArray(e))for(let o=0,s=e.length;o<s;o++)t[e[o]]=e[o];else"object"==typeof e&&(t=e);return t}refreshValue(){const e=this.hot.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()}refreshDimensions(){if(this.state!==s.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.close();const{top:e,start:t,width:o,height:n}=this.getEditedCellRect(),i=this.selectWrapper.style;i.height=`${n}px`,i.width=`${o}px`,i.top=`${e}px`,i[this.hot.isRtl()?"right":"left"]=`${t}px`,i.margin="0px",(0,r.addClass)(this.selectWrapper,l)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={group:a};this.isInFullEditMode()&&e.addShortcuts([{keys:[["ArrowUp"]],callback:()=>{const e=this.select.selectedIndex-1;e>=0&&(this.select[e].selected=!0)}},{keys:[["ArrowDown"]],callback:()=>{const e=this.select.selectedIndex+1;e<=this.select.length-1&&(this.select[e].selected=!0)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(a)}}t.SelectEditor=c},23212:(e,t,o)=>{"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){const o=(0,s.getCaretPosition)(t),r=t.value.split("\n");let n=o,i=0;for(let t=0;t<r.length;t++){const s=r[t];0!==t&&(i+=r[t-1].length+1);const l=i+s.length;if("home"===e?n=i:"end"===e&&(n=l),o<=l)break}(0,s.setCaretPosition)(t,n)};var s=o(94916)},53423:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(63417);t.EDITOR_TYPE=s.EDITOR_TYPE,t.TextEditor=s.TextEditor},63417:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(95605),i=s(o(12370)),l=o(99275),a=o(94916),h=o(36926),c=o(64144),u=o(95768),d=o(23212),g=o(45551);const f="ht_editor_hidden",p="textEditor",m=t.EDITOR_TYPE="text";class w extends n.BaseEditor{static get EDITOR_TYPE(){return m}constructor(e){super(e),(0,r.default)(this,"eventManager",new i.default(this)),(0,r.default)(this,"autoResize",(0,c.createInputElementResizer)(this.hot.rootDocument)),(0,r.default)(this,"TEXTAREA",void 0),(0,r.default)(this,"textareaStyle",void 0),(0,r.default)(this,"TEXTAREA_PARENT",void 0),(0,r.default)(this,"textareaParentStyle",void 0),(0,r.default)(this,"layerClass",void 0),this.eventManager=new i.default(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",(()=>this.destroy()))}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e}open(){this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this.autoResize.unObserve(),(0,a.isThisHotChild)(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,o,s,r,i){const l=this.state;if(super.prepare(e,t,o,s,r,i),!i.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=i;e&&!this.isOpened()&&(this.TEXTAREA.value=""),l===n.EDITOR_STATE.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===n.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!==n.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:r,height:i,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,r),minHeight:Math.min(i,l),maxWidth:r,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===n.EDITOR_STATE.EDITING&&this.focus()})),this.addHook("afterRowResize",(()=>{this.refreshDimensions(),this.state===n.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},3833:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(27969);t.EDITOR_TYPE=s.EDITOR_TYPE,t.TimeEditor=s.TimeEditor},27969:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(53423);const r=t.EDITOR_TYPE="time";class n extends s.TextEditor{static get EDITOR_TYPE(){return r}prepare(e,t,o,s,r,n){super.prepare(e,t,o,s,r,n),this.TEXTAREA.dir="ltr"}}t.TimeEditor=n},12370:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.getListenersCounter=function(){return i},o(15724);var r=s(o(85707)),n=o(40892);let i=0;t.default=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,r.default)(this,"context",void 0),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}addEventListener(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function r(e){o.call(this,function(e){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),(0,n.stopImmediatePropagation)(this)},e}(e))}return this.context.eventListeners.push({element:e,event:t,callback:o,callbackProxy:r,options:s,eventManager:this}),e.addEventListener(t,r,s),i+=1,()=>{this.removeEventListener(e,t,o)}}removeEventListener(e,t,o){let s,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=this.context.eventListeners.length;for(;n;)if(n-=1,s=this.context.eventListeners[n],s.event===t&&s.element===e){if(o&&o!==s.callback)continue;if(r&&s.eventManager!==this)continue;this.context.eventListeners.splice(n,1),s.element.removeEventListener(s.event,s.callbackProxy,s.options),i-=1}}clearEvents(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.context)return;let t=this.context.eventListeners.length;for(;t;){t-=1;const o=this.context.eventListeners[t];e&&o.eventManager!==this||(this.context.eventListeners.splice(t,1),o.element.removeEventListener(o.event,o.callbackProxy,o.options),i-=1)}}clear(){this.clearEvents()}destroy(){this.clearEvents(),this.context=null}destroyWithOwnEventsOnly(){this.clearEvents(!0),this.context=null}fireEvent(e,t){let o=e.document,s=e;o||(o=e.ownerDocument?e.ownerDocument:e,s=o.defaultView);const r={bubbles:!0,cancelable:"mousemove"!==t,view:s,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};let n;o.createEvent?(n=o.createEvent("MouseEvents"),n.initMouseEvent(t,r.bubbles,r.cancelable,r.view,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget||o.body.parentNode)):n=o.createEventObject(),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(`on${t}`,n)}}},94810:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834);var s=o(59350),r=o(94916),n=o(77515);function i(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 a(e,t){return e.get(c(e,t))}function h(e,t,o){return e.set(c(e,t),o),o}function c(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 u=Object.freeze({CELL:"cell",MIXED:"mixed"});var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(e){var t;const o=null===(t=a(d,this).getSelectedRangeLast())||void 0===t?void 0:t.highlight;if(!o||!a(d,this).selection.isCellVisible(o))return void e(null);const s=a(d,this).getCell(o.row,o.col,!0);null===s?a(d,this).addHookOnce("afterScroll",(()=>{e(a(d,this).getCell(o.row,o.col,!0))})):e(s)}function v(){c(w,this,C).call(this,(e=>{const{activeElement:t}=a(d,this).rootDocument;t&&(0,r.isOutsideInput)(t)&&t.blur(),this.focusOnHighlightedCell(e)}))}function y(){c(w,this,C).call(this,(e=>{this.getFocusMode()===u.MIXED&&"TD"===(null==e?void 0:e.nodeName)&&this.refocusToEditorTextarea()}))}function E(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?u.MIXED:u.CELL)}t.FocusManager=class{constructor(e){var t,o,s=this;l(t=this,o=w),o.add(t),i(this,d,void 0),i(this,g,void 0),i(this,f,1),i(this,p,null),i(this,m,new Map);const r=e.getSettings();h(d,this,e),h(g,this,r.imeFastEdit?u.MIXED:u.CELL),a(d,this).addHook("afterUpdateSettings",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,E).call(s,...t)})),a(d,this).addHook("afterSelection",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,v).call(s,...t)})),a(d,this).addHook("afterSelectionFocusSet",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,v).call(s,...t)})),a(d,this).addHook("afterSelectionEnd",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,y).call(s,...t)}))}getFocusMode(){return a(g,this)}setFocusMode(e){Object.values(u).includes(e)?h(g,this,e):(0,s.warn)(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return a(f,this)}setRefocusDelay(e){h(f,this,e)}setRefocusElementGetter(e){h(p,this,e)}getRefocusElement(){var e;return"function"==typeof a(p,this)?a(p,this).call(this):null===(e=a(d,this).getActiveEditor())||void 0===e?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const t=e=>{var t,o;const s=null===(t=a(d,this).getSelectedRangeLast())||void 0===t?void 0:t.highlight;if(!s)return;let r=a(d,this).runHooks("modifyFocusedElement",s.row,s.col,e);r instanceof HTMLElement||(r=e),!r||null!==(o=a(d,this).getActiveEditor())&&void 0!==o&&o.isOpened()||r.focus({preventScroll:!0})};e?t(e):c(w,this,C).call(this,(e=>t(e)))}refocusToEditorTextarea(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a(f,this);!a(d,this).getSettings().imeFastEdit||null!==(e=a(d,this).getActiveEditor())&&void 0!==e&&e.isOpened()||(a(m,this).has(t)||a(m,this).set(t,(0,n.debounce)((()=>{var e;null===(e=this.getRefocusElement())||void 0===e||e.select()}),t)),a(m,this).get(t)())}}},45551:(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_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]},47154:(e,t,o)=>{"use strict";function s(e,t,o,s){let r=-1,n=e,i=o;Array.isArray(e)||(n=Array.from(e));const l=n.length;for(s&&l&&(r+=1,i=n[r]),r+=1;r<l;)i=t(i,n[r],r,n),r+=1;return i}function r(e,t){let o=0,s=e;Array.isArray(e)||(s=Array.from(e));const r=s.length;for(;o<r&&!1!==t(s[o],o,s);)o+=1;return e}function n(e){return s(e,((e,t)=>e+t),0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return n(e)/e.length},t.arrayEach=r,t.arrayFilter=function(e,t){let o=0,s=e;Array.isArray(e)||(s=Array.from(e));const r=s.length,n=[];let i=-1;for(;o<r;){const e=s[o];t(e,o,s)&&(i+=1,n[i]=e),o+=1}return n},t.arrayFlatten=function e(t){return s(t,((t,o)=>t.concat(Array.isArray(o)?e(o):o)),[])},t.arrayMap=function(e,t){let o=0,s=e;Array.isArray(e)||(s=Array.from(e));const r=s.length,n=[];let i=-1;for(;o<r;){const e=s[o];i+=1,n[i]=t(e,o,s),o+=1}return n},t.arrayMax=function(e){return s(e,((e,t)=>e>t?e:t),Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return s(e,((e,t)=>e<t?e:t),Array.isArray(e)?e[0]:void 0)},t.arrayReduce=s,t.arraySum=n,t.arrayUnique=function(e){const t=[];return r(e,(e=>{-1===t.indexOf(e)&&t.push(e)})),t},t.extendArray=function(e,t){const o=t.length;let s=0;for(;s<o;)e.push(t[s]),s+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[s,...n]=[...t];let i=s;return r(n,(e=>{i=i.filter((t=>!e.includes(t)))})),i},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[s,...n]=[...t];let i=s;return r(n,(e=>{i=i.filter((t=>e.includes(t)))})),i},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[s,...n]=[...t],i=new Set(s);return r(n,(e=>{r(e,(e=>{i.has(e)||i.add(e)}))})),Array.from(i)},t.pivot=function(e){const t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;const o=e.length,s=e[0].length;for(let r=0;r<o;r++)for(let o=0;o<s;o++)t[o]||(t[o]=[]),t[o][r]=e[r][o];return t},t.stringToArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){const t=e.length;let o=0;for(;o<t;)e[o]=[e[o]],o+=1},o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458)},99275:(e,t,o)=>{"use strict";t.__esModule=!0,t.isChrome=function(){return i.chrome.value},t.isChromeWebKit=function(){return i.chromeWebKit.value},t.isEdge=function(){return i.edge.value},t.isEdgeWebKit=function(){return i.edgeWebKit.value},t.isFirefox=function(){return i.firefox.value},t.isFirefoxWebKit=function(){return i.firefoxWebKit.value},t.isIOS=function(){return l.ios.value},t.isIpadOS=function(){let{maxTouchPoints:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return e>2&&l.mac.value},t.isLinuxOS=function(){return l.linux.value},t.isMacOS=function(){return l.mac.value},t.isMobileBrowser=function(){return i.mobile.value},t.isSafari=function(){return i.safari.value},t.isWindowsOS=function(){return l.win.value},t.setBrowserMeta=a,t.setPlatformMeta=h;var s=o(95016),r=o(37725);const n=e=>{const t={value:!1,test:(o,s)=>{t.value=e(o,s)}};return t},i={chrome:n(((e,t)=>/Chrome/.test(e)&&/Google/.test(t))),chromeWebKit:n((e=>/CriOS/.test(e))),edge:n((e=>/Edge/.test(e))),edgeWebKit:n((e=>/EdgiOS/.test(e))),firefox:n((e=>/Firefox/.test(e))),firefoxWebKit:n((e=>/FxiOS/.test(e))),mobile:n((e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e))),safari:n(((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t)))},l={mac:n((e=>/^Mac/.test(e))),win:n((e=>/^Win/.test(e))),linux:n((e=>/^Linux/.test(e))),ios:n((e=>/iPhone|iPad|iPod/i.test(e)))};function a(){let{userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.objectEach)(i,(o=>{let{test:s}=o;s(e,t)}))}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.objectEach)(l,(t=>{let{test:o}=t;o(e)}))}(0,r.isCSR)()&&(a(),h())},59350:(e,t,o)=>{"use strict";t.__esModule=!0,t.error=function(){(0,s.isDefined)(console)&&console.error(...arguments)},t.info=function(){(0,s.isDefined)(console)&&console.info(...arguments)},t.log=function(){(0,s.isDefined)(console)&&console.log(...arguments)},t.warn=function(){(0,s.isDefined)(console)&&console.warn(...arguments)};var s=o(95768)},42379:(e,t,o)=>{"use strict";t.__esModule=!0,t.countFirstRowKeys=function(e){let t=0;Array.isArray(e)&&(e[0]&&Array.isArray(e[0])?t=e[0].length:e[0]&&(0,s.isObject)(e[0])&&(t=(0,s.deepObjectSize)(e[0])));return t},t.createEmptySpreadsheetData=function(e,t){const o=[];let s;for(let r=0;r<e;r++){s=[];for(let e=0;e<t;e++)s.push("");o.push(s)}return o},t.createSpreadsheetData=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const o=[];let s,r;for(s=0;s<e;s++){const e=[];for(r=0;r<t;r++)e.push(i(r)+(s+1));o.push(e)}return o},t.createSpreadsheetObjectData=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const o=[];let s,r;for(s=0;s<e;s++){const e={};for(r=0;r<t;r++)e[`prop${r}`]=i(r)+(s+1);o.push(e)}return o},t.dataRowToChangesArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=e;const s=[];Array.isArray(e)&&Array.isArray(e[0])||(o=[e]);return o.forEach(((e,o)=>{Array.isArray(e)?e.forEach(((e,r)=>{s.push([o+t,r,e])})):Object.keys(e).forEach((r=>{s.push([o+t,r,e[r]])}))})),s},t.isArrayOfArrays=function(e){return!!(Array.isArray(e)&&e.length&&e.every((e=>Array.isArray(e))))},t.isArrayOfObjects=function(e){return!!(Array.isArray(e)&&e.length&&e.every((e=>"object"==typeof e&&!Array.isArray(e)&&null!==e)))},t.spreadsheetColumnIndex=function(e){let t=0;if(e)for(let o=0,s=e.length-1;o<e.length;o+=1,s-=1)t+=n**s*(r.indexOf(e[o])+1);return t-=1,t},t.spreadsheetColumnLabel=i,o(15724),o(14846),o(63333),o(69655);var s=o(95016);const r="ABCDEFGHIJKLMNOPQRSTUVWXYZ",n=r.length;function i(e){let t,o=e+1,s="";for(;o>0;)t=(o-1)%n,s=String.fromCharCode(65+t)+s,o=parseInt((o-t)/n,10);return s}},96431:(e,t)=>{"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){const t=new Date(e);if(!isNaN(new Date(`${e}T00:00`).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},94916:(e,t,o)=>{"use strict";t.__esModule=!0,t.addClass=h,t.addEvent=function(e,t,o){e.addEventListener(t,o,!1)},t.clearTextSelection=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.getSelection&&(e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges())},t.closest=i,t.closestDown=function(e,t,o){const s=[];let r=e;for(;r&&(r=i(r,t,o),r&&(!o||o.contains(r)));)s.push(r),r=r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r.host:r.parentNode;const n=s.length;return n?s[n-1]:null},t.empty=d,t.fastInnerHTML=function(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];g.test(t)?e.innerHTML=o?(0,s.sanitize)(t):t:f(e,t)},t.fastInnerText=f,t.findFirstParentWithClass=function(e,t){const o={element:void 0,classNames:[]};let s=e;for(;null!==s&&s!==e.ownerDocument.documentElement&&!o.element;){if("string"==typeof t&&s.classList.contains(t))o.element=s,o.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(s.classList).filter((e=>t.test(e)));e.length&&(o.element=s,o.classNames.push(...e))}s=s.parentElement}return o},t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;return 0},t.getCssTransform=function(e){let t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];return-1},t.getFrameElement=n,t.getMaximumScrollLeft=function(e){return e.scrollWidth-e.clientWidth},t.getMaximumScrollTop=function(e){return e.scrollHeight-e.clientHeight},t.getParent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=-1,s=null,r=e;for(;null!==r;){if(o===t){s=r;break}r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r=r.host:(o+=1,r=r.parentNode)}return s},t.getParentWindow=function(e){return n(e)&&e.parent},t.getScrollLeft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return m(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return p(t);return e.scrollTop},t.getScrollableElement=function(e){let t=e.ownerDocument,o=t?t.defaultView:void 0;t||(t=e.document?e.document:e,o=t.defaultView);const s=["auto","scroll"];let r=e.parentNode;for(;r&&r.style&&t.body!==r;){let{overflow:e,overflowX:t,overflowY:n}=r.style;if([e,t,n].includes("scroll"))return r;if(({overflow:e,overflowX:t,overflowY:n}=o.getComputedStyle(r)),s.includes(e)||s.includes(t)||s.includes(n))return r;if(r.clientHeight<=r.scrollHeight+1&&(s.includes(n)||s.includes(e)))return r;if(r.clientWidth<=r.scrollWidth+1&&(s.includes(t)||s.includes(e)))return r;r=r.parentNode}return o},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===w&&(w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const o=e.createElement("div");o.style.boxSizing="content-box",o.style.height="150px",o.style.left="0px",o.style.overflow="hidden",o.style.position="absolute",o.style.top="0px",o.style.width="200px",o.style.visibility="hidden",o.appendChild(t),(e.body||e.documentElement).appendChild(o);const s=t.offsetWidth;o.style.overflow="scroll";let r=t.offsetWidth;s===r&&(r=o.clientWidth);return(e.body||e.documentElement).removeChild(o),s-r}(e));return w},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;return 0},t.getSelectionText=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const t=e.document;let o="";e.getSelection?o=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(o=t.selection.createRange().text);return o},t.getStyle=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===o)return"width"===t?`${o.innerWidth}px`:"height"===t?`${o.innerHeight}px`:void 0;const s=e.style[t];if(""!==s&&void 0!==s)return s;const r=o.getComputedStyle(e);if(""!==r[t]&&void 0!==r[t])return r[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,o=t.defaultView;let s=e.parentNode;for(;s&&s.style&&t.body!==s;){if("visible"!==s.style.overflow&&""!==s.style.overflow)return s;const e=o.getComputedStyle(s),t=["scroll","hidden","auto"],r=e.getPropertyValue("overflow"),n=e.getPropertyValue("overflow-y"),i=e.getPropertyValue("overflow-x");if(t.includes(r)||t.includes(n)||t.includes(i))return s;s=s.parentNode}return o},t.getWindowScrollLeft=m,t.getWindowScrollTop=p,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){if(void 0===e.classList||"string"!=typeof t||""===t)return!1;return e.classList.contains(t)},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.index=function(e){let t=0,o=e;if(o.previousSibling)for(;o=o.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){let o=e.parentNode,s=[];"string"==typeof t?s=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):s.push(t);for(;null!==o;){if(s.indexOf(o)>-1)return!0;o=o.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isInput=C,t.isOutsideInput=v,t.isThisHotChild=function(e,t){const o=e.closest(".handsontable");return!!o&&(o.parentNode===t||o===t)},t.isVisible=function e(t){const o=t.ownerDocument.documentElement,s=t.ownerDocument.defaultView;let r=t;for(;r!==o;){if(null===r)return!1;if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r.host){if(r.host.impl)return e(r.host.impl);if(r.host)return e(r.host);throw new Error("Lost in Web Components world")}return!1}if("none"===s.getComputedStyle(r).display)return!1;r=r.parentNode}return!0},t.makeElementContentEditableAndSelectItsContent=y,t.matchesCSSRules=function(e,t){const{selectorText:o}=t;let s=!1;t.type===CSSRule.STYLE_RULE&&o&&(e.msMatchesSelector?s=e.msMatchesSelector(o):e.matches&&(s=e.matches(o)));return s},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver(((o,s)=>{o.forEach((o=>{o.isIntersecting&&null!==e.offsetParent&&(t(),s.unobserve(e))}))}),{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){const t=e.ownerDocument,o=t.defaultView,s=t.documentElement;let r,n,i,l=e;r=l.offsetLeft,n=l.offsetTop,i=l;for(;(l=l.offsetParent)&&l!==t.body&&"offsetLeft"in l;)r+=l.offsetLeft,n+=l.offsetTop,i=l;i&&"fixed"===i.style.position&&(r+=o.pageXOffset||s.scrollLeft,n+=o.pageYOffset||s.scrollTop);return{left:r,top:n}},t.outerHeight=function(e){return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,o){const s=o.parentElement.querySelector(`.ht_clone_${e}`);return s?s.contains(t):null},t.removeAttribute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);const{regexFree:o,regexes:s}=a(t,!0);o.forEach((t=>{""!==t&&e.removeAttribute(t)})),s.forEach((t=>{e.getAttributeNames().forEach((o=>{t.test(o)&&e.removeAttribute(o)}))}))},t.removeClass=c,t.removeContentEditableFromElementAndDeselect=E,t.removeEvent=function(e,t,o){e.removeEventListener(t,o,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1){const o=t.childNodes;for(let t=o.length-1;t>=0;t--)e(o[t])}},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")},t.runWithSelectedContendEditableElement=function(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];y(e,o),t(),E(e,o)},t.selectElementIfAllowed=function(e){v(e.ownerDocument.activeElement)||e.select()},t.setAttribute=u,t.setCaretPosition=function(e,t,o){void 0===o&&(o=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,o)}catch(s){const r=e.parentNode,n=r.style.display;r.style.display="block",e.setSelectionRange(t,o),r.style.display=n}}},t.setOverlayPosition=function(e,t,o){e.style.transform=`translate3d(${t},${o},0)`},o(67834),o(15724),o(14846),o(27458),o(69655);var s=o(83414),r=o(45551);function n(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:s,DOCUMENT_FRAGMENT_NODE:r}=Node;let n=e;for(;null!=n&&n!==o;){const{nodeType:e,nodeName:o}=n;if(e===s&&(t.includes(o)||t.includes(n)))return n;const{host:i}=n;n=i&&e===r?i:n.parentNode}return null}function l(e){return e&&e.length?e.filter((e=>!!e)):[]}function a(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];const o=[],s=[];return s.push(...e.filter((e=>{const s=e instanceof RegExp;return s&&t&&o.push(e),!s}))),t?{regexFree:s,regexes:o}:s}function h(e,t){"string"==typeof t&&(t=t.split(" ")),(t=l(t)).length>0&&e.classList.add(...t)}function c(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:o,regexes:s}=a(t,!0);o=l(o),o.length>0&&e.classList.remove(...o),s.forEach((t=>{e.classList.forEach((o=>{t.test(o)&&e.classList.remove(o)}))}))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;Array.isArray(t)||(t=[[t,o]]),t.forEach((t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(...t)}))}function d(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const g=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/;function f(e,t){const o=e.firstChild;o&&3===o.nodeType&&null===o.nextSibling?o.textContent=t:(d(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function p(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function m(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}let w;function C(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function v(e){return C(e)&&!1===e.hasAttribute("data-hot-input")}function y(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=e.ownerDocument,n=s.createRange(),i=s.defaultView.getSelection();u(e,"contenteditable",!0),o&&u(e,...(0,r.A11Y_HIDDEN)()),t&&h(e,"invisibleSelection"),n.selectNodeContents(e),i.removeAllRanges(),i.addRange(n)}function E(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=e.ownerDocument.defaultView.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),o.removeAllRanges(),t&&c(e,"invisibleSelection"),e.removeAttribute("contenteditable")}},40892:(e,t)=>{"use strict";t.__esModule=!0,t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.isLeftClick=function(e){return 0===e.button},t.isRightClick=function(e){return 2===e.button},t.isTouchEvent=function(e){return e instanceof TouchEvent},t.offsetRelativeTo=function(e,t){const o={x:e.offsetX,y:e.offsetY};let s=e.target;if(!(t instanceof HTMLElement)||s!==t&&s.contains(t))return o;for(;s!==t;)o.x+=s.offsetLeft,o.y+=s.offsetTop,s=s.offsetParent;return o},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}},37725:(e,t)=>{"use strict";let o;t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o)return o;o="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1;return o},t.isCSR=function(){return"undefined"!=typeof window},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)}},77515:(e,t,o)=>{"use strict";t.__esModule=!0,t.curry=function(e){const t=e.length;return function o(s){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];const l=s.concat(n);let a;return a=l.length>=t?e.apply(this,l):o(l),a}}([])},t.curryRight=function(e){const t=e.length;return function o(s){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];const l=s.concat(n.reverse());let a;return a=l.length>=t?e.apply(this,l):o(l),a}}([])},t.debounce=function(e){let t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,s=null;return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return s&&clearTimeout(s),s=setTimeout((()=>{t=e.apply(this,n)}),o),t}},t.fastCall=function(e,t,o,s,n,i,l,a){if((0,r.isDefined)(a))return e.call(t,o,s,n,i,l,a);if((0,r.isDefined)(l))return e.call(t,o,s,n,i,l);if((0,r.isDefined)(i))return e.call(t,o,s,n,i);if((0,r.isDefined)(n))return e.call(t,o,s,n);if((0,r.isDefined)(s))return e.call(t,o,s);if((0,r.isDefined)(o))return e.call(t,o);return e.call(t)},t.isFunction=function(e){return"function"==typeof e},t.partial=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];return function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return e.apply(this,o.concat(s))}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[r,...n]=t;return function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return(0,s.arrayReduce)(n,((e,t)=>t(e)),r.apply(this,t))}},t.throttle=n,t.throttleAfterHits=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const s=n(e,t);let r=o;function i(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return r?(r-=1,e.apply(this,o)):s.apply(this,o)}return i.clearHits=function(){r=o},i};var s=o(47154),r=o(95768);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=0;const s={lastCallThrottled:!0};let r=null;return function(){for(var n=arguments.length,i=new Array(n),l=0;l<n;l++)i[l]=arguments[l];const a=Date.now();let h=!1;s.lastCallThrottled=!0,o||(o=a,h=!0);const c=t-(a-o);return h?(s.lastCallThrottled=!1,e.apply(this,i)):(r&&clearTimeout(r),r=setTimeout((()=>{s.lastCallThrottled=!1,e.apply(this,i),o=0,r=void 0}),c)),s}}},95768:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!l(e),s="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),n="0.0.0-next-9779557-20250113";let i,v="invalid",y="invalid";const E=function(e){let t=[][a],o=t;if(e[a]!==d("Z"))return!1;for(let t="",s="B<H4P+".split(""),r=d(s.shift());r;r=d(s.shift()||"A"))--r<""[a]?o|=(c(`${c(h(t)+(h(u(e,Math.abs(r),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=u(e,r,r?1===s[a]?9:8:6);return o===t}(e=g(e||""));if(o||s||E)if(E){const t=(0,r.default)("16/12/2024","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),s=f(e);i=(0,r.default)(864e5*(s+1),"x").format("MMMM DD, YYYY"),o>s?(v="expired",y="expired"):(v="valid",y="valid")}else s?(v="non_commercial",y="valid"):(v="invalid",y="invalid");else v="missing",y="missing";p()&&(v="valid",y="valid");if(!m&&"valid"!==v){w[v]({keyValidityDate:i,hotVersion:n})&&console["non_commercial"===v?"info":"warn"](w[v]({keyValidityDate:i,hotVersion:n})),m=!0}if("valid"!==y&&t.parentNode){if(C[y]({keyValidityDate:i,hotVersion:n})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=C[y]({keyValidityDate:i,hotVersion:n}),t.parentNode.insertBefore(e,t.nextSibling)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=l,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=i,t.stringify=function(e){let t;switch(typeof e){case"string":case"number":t=`${e}`;break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var r=s(o(86798)),n=o(20944);function i(e){return void 0===e}function l(e){return null===e||""===e||i(e)}const a="length",h=e=>parseInt(e,16),c=e=>parseInt(e,10),u=(e,t,o)=>e.substr(t,o),d=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),f=e=>h(u(g(e),h("12"),d("F")))/(h(u(g(e),d("B"),~~![][a]))||9),p=()=>"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host);let m=!1;const w={invalid:()=>n.toSingleLine`
|
37
|
+
learn about the migration path.`;class g{constructor(){(0,r.default)(this,"globalBucket",new u.HooksBucket)}static getSingleton(){return f}getBucket(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=new u.HooksBucket),e.pluginHookBucket):this.globalBucket}add(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,n.arrayEach)(t,(t=>this.add(e,t,o))):(c.REMOVED_HOOKS.has(e)&&(0,l.warn)((0,i.substitute)(d,{hookName:e,removedInVersion:c.REMOVED_HOOKS.get(e)})),c.DEPRECATED_HOOKS.has(e)&&(0,l.warn)(c.DEPRECATED_HOOKS.get(e)),this.getBucket(o).add(e,t,{orderIndex:s,runOnce:!1})),this}once(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,n.arrayEach)(t,(t=>this.once(e,t,o))):this.getBucket(o).add(e,t,{orderIndex:s,runOnce:!0}),this}addAsFixed(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Array.isArray(t)?(0,n.arrayEach)(t,(t=>this.addAsFixed(e,t,o))):this.getBucket(o).add(e,t,{initialHook:!0}),this}remove(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.getBucket(o).remove(e,t)}has(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.getBucket(t).has(e)}run(e,t,o,s,r,n,i,l){{const a=this.getBucket().getHooks(t),c=a?a.length:0;let u=0;if(c)for(;u<c;){if(!a[u]||a[u].skip){u+=1;continue}const c=(0,h.fastCall)(a[u].callback,e,o,s,r,n,i,l);void 0!==c&&(o=c),a[u]&&a[u].runOnce&&this.remove(t,a[u].callback),u+=1}}{const a=this.getBucket(e).getHooks(t),c=a?a.length:0;let u=0;if(c)for(;u<c;){if(!a[u]||a[u].skip){u+=1;continue}const c=(0,h.fastCall)(a[u].callback,e,o,s,r,n,i,l);void 0!==c&&(o=c),a[u]&&a[u].runOnce&&this.remove(t,a[u].callback,e),u+=1}}return o}destroy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.getBucket(e).destroy()}register(e){this.isRegistered(e)||c.REGISTERED_HOOKS.push(e)}deregister(e){this.isRegistered(e)&&c.REGISTERED_HOOKS.splice(c.REGISTERED_HOOKS.indexOf(e),1)}isDeprecated(e){return c.DEPRECATED_HOOKS.has(e)||c.REMOVED_HOOKS.has(e)}isRegistered(e){return c.REGISTERED_HOOKS.indexOf(e)>=0}getRegistered(){return c.REGISTERED_HOOKS}}t.Hooks=g;const f=new g;t.default=g},18393:(e,t,o)=>{"use strict";o(14846),o(69655),t.__esModule=!0;var s=o(69998);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var r=o(82837);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},82837:(e,t,o)=>{"use strict";t.__esModule=!0,t.createViewportScroller=function(e){const{selection:t}=e;let o=!1,c=!1;return{resume(){c=!1},suspend(){c=!0},skipNextScrollCycle(){o=!0},scrollTo(u){var d;if(o||c)return void(o=!1);let g;t.isFocusSelectionChanged()?g=(0,n.focusScrollStrategy)(e):t.isSelectedByCorner()?g=(0,r.cornerHeaderScrollStrategy)(e):t.isSelectedByRowHeader()?g=(0,a.rowHeaderScrollStrategy)(e):t.isSelectedByColumnHeader()?g=(0,s.columnHeaderScrollStrategy)(e):1===t.getSelectedRange().size()&&t.isMultiple()?g=(0,i.multipleScrollStrategy)(e):1!==t.getSelectedRange().size()||t.isMultiple()?t.getSelectedRange().size()>1&&(g=(0,l.noncontiguousScrollStrategy)(e)):g=(0,h.singleScrollStrategy)(e),null===(d=g)||void 0===d||d(u)}}};var s=o(77474),r=o(51761),n=o(71071),i=o(83525),l=o(13772),a=o(52834),h=o(47537)},77474:(e,t)=>{"use strict";t.__esModule=!0,t.columnHeaderScrollStrategy=function(e){return t=>{let{col:o}=t;e.scrollViewportTo({col:o})}}},51761:(e,t)=>{"use strict";t.__esModule=!0,t.cornerHeaderScrollStrategy=function(){return()=>{}}},71071:(e,t)=>{"use strict";t.__esModule=!0,t.focusScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject())}}},83525:(e,t)=>{"use strict";t.__esModule=!0,t.multipleScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject())}}},13772:(e,t)=>{"use strict";t.__esModule=!0,t.noncontiguousScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject())}}},52834:(e,t)=>{"use strict";t.__esModule=!0,t.rowHeaderScrollStrategy=function(e){return t=>{let{row:o}=t;e.scrollViewportTo({row:o})}}},47537:(e,t)=>{"use strict";t.__esModule=!0,t.singleScrollStrategy=function(e){return t=>{const o=e.selection.getSelectionSource(),{row:s,col:r}=t;if(s<0&&r>=0)e.scrollViewportTo({col:r});else if(r<0&&s>=0)e.scrollViewportTo({row:s});else{if("mouse"===o&&(r===e.view.getLastPartiallyVisibleColumn()||s===e.view.getLastPartiallyVisibleRow()))return;e.scrollViewportTo({row:s,col:r})}}}},22410:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(27458),o(69655);var r=s(o(85707)),n=o(74961),i=o(42379),l=o(95016),a=o(47154),h=o(36926),c=o(95768);class u{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,t,o){(0,r.default)(this,"hot",void 0),(0,r.default)(this,"metaManager",void 0),(0,r.default)(this,"tableMeta",void 0),(0,r.default)(this,"dataSource",void 0),(0,r.default)(this,"duckSchema",void 0),(0,r.default)(this,"colToPropCache",void 0),(0,r.default)(this,"propToColCache",void 0),this.hot=e,this.metaManager=o,this.tableMeta=o.getTableMeta(),this.dataSource=t,this.duckSchema=this.createDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");const t=this.tableMeta.columns;let o;if(this.colToPropCache=[],this.propToColCache=new Map,t){let s=0,r=0,n=!1;if("function"==typeof t){const t=(0,l.deepObjectSize)(e);s=t>0?t:this.countFirstRowKeys(),n=!0}else{const e=this.tableMeta.maxCols;s=Math.min(e,t.length)}for(o=0;o<s;o++){const e=n?t(o):t[o];if((0,l.isObject)(e)){if(void 0!==e.data){const t=n?r:o;this.colToPropCache[t]=e.data,this.propToColCache.set(e.data,t)}r+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return(0,i.countFirstRowKeys)(this.dataSource)}recursiveDuckColumns(e,t,o){let s,r=t,n=o;return void 0===r&&(r=0,n=""),"object"!=typeof e||Array.isArray(e)||(0,l.objectEach)(e,((e,t)=>{null===e?(s=n+t,this.colToPropCache.push(s),this.propToColCache.set(s,r),r+=1):r=this.recursiveDuckColumns(e,r,`${t}.`)})),r}colToProp(e){if(!1===Number.isInteger(e))return e;const t=this.hot.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&(0,c.isDefined)(this.colToPropCache[t])?this.colToPropCache[t]:t}propToCol(e){const t=this.propToColCache.get(e);if((0,c.isDefined)(t))return this.hot.toVisualColumn(t);const o=this.hot.toVisualColumn(e);return null===o?e:o}getSchema(){const e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?(0,l.duckSchema)(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:o,mode:s="above"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.hot.countSourceRows();let n=r,i=0,a=e;("number"!=typeof a||a>=r)&&(a=r),a<this.hot.countRows()&&(n=this.hot.toPhysicalRow(a));if(!1===this.hot.runHooks("beforeCreateRow",a,t,o)||null===n)return{delta:0};const c=this.tableMeta.maxRows,u=this.getSchema().length,d=[];for(;i<t&&r+i<c;){let e=null;"array"===this.hot.dataType?this.tableMeta.dataSchema?e=(0,l.deepClone)(this.getSchema()):(e=[],(0,h.rangeEach)(u-1,(()=>e.push(null)))):"function"===this.hot.dataType?e=this.tableMeta.dataSchema(a+i):(e={},(0,l.deepExtend)(e,this.getSchema())),d.push(e),i+=1}this.hot.rowIndexMapper.insertIndexes(a,i),"below"===s&&(n=Math.min(n+1,r)),this.spliceData(n,0,d);const g=this.hot.toVisualRow(n);return this.hot.countSourceRows()===d.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),i>0&&(null==e?this.metaManager.createRow(null,i):"auto"!==o&&this.metaManager.createRow(n,t)),this.hot.runHooks("afterCreateRow",g,i,o),this.hot.forceFullRender=!0,{delta:i,startPhysicalIndex:n}}createCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:o,mode:s="start"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.hot.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");const r=this.dataSource,n=this.tableMeta.maxCols,i=this.hot.countSourceCols();let l=e;("number"!=typeof l||l>=i)&&(l=i);if(!1===this.hot.runHooks("beforeCreateCol",l,t,o))return{delta:0};let a=i;l<this.hot.countCols()&&(a=this.hot.toPhysicalColumn(l));const h=this.hot.countSourceRows();let c=this.hot.countCols(),u=0,d=a;"end"===s&&(d=Math.min(d+1,i));const g=d;for(;u<t&&c<n;){if("number"!=typeof l||l>=c)if(h>0)for(let e=0;e<h;e+=1)void 0===r[e]&&(r[e]=[]),r[e].push(null);else r.push([null]);else for(let e=0;e<h;e++)r[e].splice(d,0,null);u+=1,d+=1,c+=1}this.hot.columnIndexMapper.insertIndexes(l,u),u>0&&(null==e?this.metaManager.createColumn(null,u):"auto"!==o&&this.metaManager.createColumn(g,t));const f=this.hot.toVisualColumn(g);return this.hot.runHooks("afterCreateCol",f,u,o),this.hot.forceFullRender=!0,this.refreshDuckSchema(),{delta:u,startPhysicalIndex:g}}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0,s=Number.isInteger(e)?e:-t;const r=this.visualRowsToPhysical(s,t),n=this.hot.countSourceRows();s=(n+s)%n;if(!1===this.hot.runHooks("beforeRemoveRow",s,r.length,r,o))return!1;const i=r.length;if(this.filterData(s,i,r),s<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(r);const e=(0,c.isDefined)(this.tableMeta.columns)||(0,c.isDefined)(this.tableMeta.dataSchema);0===this.hot.rowIndexMapper.getNotTrimmedIndexesLength()&&!1===e&&this.hot.columnIndexMapper.setIndexesSequence([])}return r.slice(0).sort(((e,t)=>t-e)).forEach((e=>{this.metaManager.removeRow(e,1)})),this.hot.runHooks("afterRemoveRow",s,i,r,o),this.hot.forceFullRender=!0,!0}removeCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if("object"===this.hot.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");let s="number"!=typeof e?-t:e;s=(this.hot.countCols()+s)%this.hot.countCols();const r=this.visualColumnsToPhysical(s,t),n=r.slice(0).sort(((e,t)=>t-e));if(!1===this.hot.runHooks("beforeRemoveCol",s,t,r,o))return!1;let i=!0;const l=n.length,a=this.dataSource;for(let e=0;e<l;e++)i&&r[0]!==r[e]-e&&(i=!1);if(i)for(let e=0,o=this.hot.countSourceRows();e<o;e++)a[e].splice(r[0],t),0===e&&this.metaManager.removeColumn(r[0],t);else for(let e=0,t=this.hot.countSourceRows();e<t;e++)for(let t=0;t<l;t++)a[e].splice(n[t],1),0===e&&this.metaManager.removeColumn(n[t],1);return s<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(r),0===this.hot.columnIndexMapper.getNotTrimmedIndexesLength()&&this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",s,t,r,o),this.hot.forceFullRender=!0,this.refreshDuckSchema(),!0}spliceCol(e,t,o){const s=this.hot.getDataAtCol(e),r=s.slice(t,t+o),n=s.slice(t+o);for(var i=arguments.length,l=new Array(i>3?i-3:0),h=3;h<i;h++)l[h-3]=arguments[h];(0,a.extendArray)(l,n);let c=0;for(;c<o;)l.push(null),c+=1;return(0,a.to2dArray)(l),this.hot.populateFromArray(t,e,l,null,null,"spliceCol"),r}spliceRow(e,t,o){const s=this.hot.getSourceDataAtRow(e),r=s.slice(t,t+o),n=s.slice(t+o);for(var i=arguments.length,l=new Array(i>3?i-3:0),h=3;h<i;h++)l[h-3]=arguments[h];(0,a.extendArray)(l,n);let c=0;for(;c<o;)l.push(null),c+=1;return this.hot.populateFromArray(e,t,[l],null,null,"spliceRow"),r}spliceData(e,t,o){if(!1!==this.hot.runHooks("beforeDataSplice",e,t,o)){const t=[...this.dataSource.slice(0,e),...o,...this.dataSource.slice(e)];this.dataSource.length=0,t.forEach((e=>this.dataSource.push(e)))}}filterData(e,t,o){let s=this.hot.runHooks("filterData",e,t,o);!1===Array.isArray(s)&&(s=this.dataSource.filter(((e,t)=>-1===o.indexOf(t)))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,s)}get(e,t){const o=this.hot.toPhysicalRow(e);let s=this.dataSource[o];const r=this.hot.runHooks("modifyRowData",o);s=isNaN(r)?r:s;const{dataDotNotation:n}=this.hot.getSettings();let i=null;if(s&&s.hasOwnProperty&&(0,l.hasOwnProperty)(s,t))i=s[t];else if(n&&"string"==typeof t&&t.indexOf(".")>-1){let e=s;if(!e)return null;const o=t.split(".");for(let t=0,s=o.length;t<s;t++)if(e=e[o[t]],void 0===e)return null;i=e}else"function"==typeof t&&(i=t(this.dataSource.slice(o,o+1)[0]));if(this.hot.hasHook("modifyData")){const e=(0,l.createObjectPropListener)(i);this.hot.runHooks("modifyData",o,this.propToCol(t),e,"get"),e.isTouched()&&(i=e.value)}return i}getCopyable(e,t){return this.hot.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}set(e,t,o){const s=this.hot.toPhysicalRow(e);let r=o,n=this.dataSource[s];const i=this.hot.runHooks("modifyRowData",s);if(n=isNaN(i)?i:n,this.hot.hasHook("modifyData")){const e=(0,l.createObjectPropListener)(r);this.hot.runHooks("modifyData",s,this.propToCol(t),e,"set"),e.isTouched()&&(r=e.value)}const{dataDotNotation:a}=this.hot.getSettings();if(n&&n.hasOwnProperty&&(0,l.hasOwnProperty)(n,t))n[t]=r;else if(a&&"string"==typeof t&&t.indexOf(".")>-1){let e,o=n,s=0;const i=t.split(".");for(s=0,e=i.length-1;s<e;s++)void 0===o[i[s]]&&(o[i[s]]={}),o=o[i[s]];o[i[s]]=r}else"function"==typeof t?t(this.dataSource.slice(s,s+1)[0],r):n[t]=r}visualRowsToPhysical(e,t){const o=this.hot.countSourceRows(),s=[];let r,n=(o+e)%o,i=t;for(;n<o&&i;)r=this.hot.toPhysicalRow(n),s.push(r),i-=1,n+=1;return s}visualColumnsToPhysical(e,t){const o=this.hot.countCols(),s=[];let r=(o+e)%o,n=t;for(;r<o&&n;){const e=this.hot.toPhysicalColumn(r);s.push(e),n-=1,r+=1}return s}clear(){for(let e=0;e<this.hot.countSourceRows();e++)for(let t=0;t<this.hot.countCols();t++)this.set(e,this.colToProp(t),"")}getLength(){const e=this.tableMeta.maxRows;let t;t=e<0||0===e?0:e||1/0;const o=this.hot.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(o,t)}getAll(){const e={row:0,col:0},t={row:Math.max(this.hot.countRows()-1,0),col:Math.max(this.hot.countCols()-1,0)};return e.row-t.row!=0||this.hot.countSourceRows()?this.getRange(e,t,u.DESTINATION_RENDERER):[]}countCachedColumns(){return this.colToPropCache.length}getRange(e,t,o){const s=[];let r,n,i;const l=this.tableMeta.maxRows,a=this.tableMeta.maxCols;if(0===l||0===a)return[];const h=o===u.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,c=Math.min(Math.max(l-1,0),Math.max(e.row,t.row)),d=Math.min(Math.max(a-1,0),Math.max(e.col,t.col));for(r=Math.min(e.row,t.row);r<=c;r++){i=[];const o=r>=0?this.hot.toPhysicalRow(r):r;for(n=Math.min(e.col,t.col);n<=d&&null!==o;n++)i.push(h.call(this,r,this.colToProp(n)));null!==o&&s.push(i)}return s}getText(e,t){return(0,n.stringify)(this.getRange(e,t,u.DESTINATION_RENDERER))}getCopyableText(e,t){return(0,n.stringify)(this.getRange(e,t,u.DESTINATION_CLIPBOARD_GENERATOR))}destroy(){this.hot=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}t.default=u},88687:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724),o(14846),o(69655);var r=s(o(85707)),n=o(95016),i=o(42379),l=o(47154),a=o(36926),h=o(77515);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,r.default)(this,"hot",void 0),(0,r.default)(this,"data",void 0),(0,r.default)(this,"dataType","array"),(0,r.default)(this,"colToProp",(()=>{})),(0,r.default)(this,"propToCol",(()=>{})),this.hot=e,this.data=t}modifyRowData(e){let t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}getData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}setData(e){this.data=e}getAtColumn(e){const t=[];return(0,l.arrayEach)(this.data,((o,s)=>{const r=this.getAtCell(s,e);t.push(r)})),t}getAtRow(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=void 0===t&&void 0===o,{dataDotNotation:i}=this.hot.getSettings();let l=null,c=null;if(l=this.modifyRowData(e),Array.isArray(l))c=[],r?l.forEach(((t,o)=>{c[o]=this.getAtPhysicalCell(e,o,l)})):(0,a.rangeEach)(t,o,(o=>{c[o-t]=this.getAtPhysicalCell(e,o,l)}));else if((0,n.isObject)(l)||(0,h.isFunction)(l))if(c=s?[]:{},!r||s){const r=0,h=this.countFirstRowKeys()-1;(0,a.rangeEach)(r,h,(a=>{const u=this.colToProp(a);if(a>=(t||r)&&a<=(o||h)&&!Number.isInteger(u)){const t=this.getAtPhysicalCell(e,u,l);s?c.push(t):i?(0,n.setProperty)(c,u,t):c[u]=t}}))}else(0,n.objectEach)(l,((t,o)=>{const s=this.getAtPhysicalCell(e,o,l);i?(0,n.setProperty)(c,o,s):c[o]=s}));return c}setAtCell(e,t,o){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){const s=(0,n.createObjectPropListener)(o);this.hot.runHooks("modifySourceData",e,t,s,"set"),s.isTouched()&&(o=s.value)}Number.isInteger(t)?this.data[e][t]=o:(0,n.setProperty)(this.data[e],t,o)}}getAtPhysicalCell(e,t,o){let s=null;if(o)if("string"==typeof t){const{dataDotNotation:e}=this.hot.getSettings();s=e?(0,n.getProperty)(o,t):o[t]}else s="function"==typeof t?t(o):o[t];if(this.hot.hasHook("modifySourceData")){const o=(0,n.createObjectPropListener)(s);this.hot.runHooks("modifySourceData",e,t,o,"get"),o.isTouched()&&(s=o.value)}return s}getAtCell(e,t){const o=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),o)}getByRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=!1,r=null,n=null,i=null,l=null;null===e||null===t?(s=!0,r=0,i=this.countRows()-1):(r=Math.min(e.row,t.row),n=Math.min(e.col,t.col),i=Math.max(e.row,t.row),l=Math.max(e.col,t.col));const h=[];return(0,a.rangeEach)(r,i,(e=>{h.push(s?this.getAtRow(e,void 0,void 0,o):this.getAtRow(e,n,l,o))})),h}countRows(){if(this.hot.hasHook("modifySourceLength")){const e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}countFirstRowKeys(){return(0,i.countFirstRowKeys)(this.data)}destroy(){this.data=null,this.hot=null}}},8752:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(22410));t.DataMap=r.default;var n=s(o(58651));t.MetaManager=n.default;var i=s(o(87441));t.metaSchemaFactory=i.default;var l=o(41024);t.replaceData=l.replaceData;var a=o(36749);t.DynamicCellMetaMod=a.DynamicCellMetaMod;var h=o(40353);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},58651:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(14846),o(69655);var r=s(o(54197)),n=s(o(6194)),i=s(o(92580)),l=s(o(65202)),a=s(o(32943)),h=o(95016);class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.hot=e,this.globalMeta=new r.default(e),this.tableMeta=new n.default(this.globalMeta),this.columnMeta=new i.default(this.globalMeta),this.cellMeta=new l.default(this.columnMeta),o.forEach((e=>new e(this))),this.globalMeta.updateMeta(t)}getGlobalMeta(){return this.globalMeta.getMeta()}updateGlobalMeta(e){this.globalMeta.updateMeta(e)}getTableMeta(){return this.tableMeta.getMeta()}updateTableMeta(e){this.tableMeta.updateMeta(e)}getColumnMeta(e){return this.columnMeta.getMeta(e)}updateColumnMeta(e,t){this.columnMeta.updateMeta(e,t)}getCellMeta(e,t,o){let{visualRow:s,visualColumn:r}=o;const n=this.cellMeta.getMeta(e,t);return n.visualRow=s,n.visualCol=r,n.row=e,n.col=t,this.runLocalHooks("afterGetCellMeta",n),n}getCellMetaKeyValue(e,t,o){if("string"!=typeof o)throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,t,o)}setCellMeta(e,t,o,s){this.cellMeta.setMeta(e,t,o,s)}updateCellMeta(e,t,o){this.cellMeta.updateMeta(e,t,o)}removeCellMeta(e,t,o){this.cellMeta.removeMeta(e,t,o)}getCellsMeta(){return this.cellMeta.getMetas()}getCellsMetaAtRow(e){return this.cellMeta.getMetasAtRow(e)}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}createColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}removeColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}clearCellsCache(){this.cellMeta.clearCache()}clearCache(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}t.default=c,(0,h.mixin)(c,a.default)},88333:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458);var r=s(o(85707)),n=o(85414);class i{constructor(e){(0,r.default)(this,"valueFactory",void 0),(0,r.default)(this,"data",[]),(0,r.default)(this,"index",[]),(0,r.default)(this,"holes",new Set),this.valueFactory=e}obtain(e){(0,n.assert)((()=>(0,n.isUnsignedNumber)(e)),"Expecting an unsigned number.");const t=this._getStorageIndexByKey(e);let o;if(t>=0)o=this.data[t],void 0===o&&(o=this.valueFactory(e),this.data[t]=o);else if(o=this.valueFactory(e),this.holes.size>0){const t=this.holes.values().next().value;this.holes.delete(t),this.data[t]=o,this.index[e]=t}else this.data.push(o),this.index[e]=this.data.length-1;return o}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,n.assert)((()=>(0,n.isUnsignedNumber)(e)||(0,n.isNullish)(e)),"Expecting an unsigned number or null/undefined argument.");const o=[],s=this.data.length;for(let e=0;e<t;e++)o.push(s+e),this.data.push(void 0);const r=(0,n.isNullish)(e)?this.index.length:e;this.index=[...this.index.slice(0,r),...o,...this.index.slice(r)]}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,n.assert)((()=>(0,n.isUnsignedNumber)(e)||(0,n.isNullish)(e)),"Expecting an unsigned number or null/undefined argument.");const o=this.index.splice((0,n.isNullish)(e)?this.index.length-t:e,t);for(let e=0;e<o.length;e++){const t=o[e];"number"==typeof t&&this.holes.add(t)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter(((e,t)=>void 0!==e&&!this.holes.has(t)))[Symbol.iterator]()}entries(){const e=[];for(let t=0;t<this.data.length;t++){const o=this._getKeyByStorageIndex(t);-1!==o&&void 0!==this.data[t]&&e.push([o,this.data[t]])}let t=0;return{next:()=>{if(t<e.length){const o=e[t];return t+=1,{value:o,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}t.default=i},65202:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(95016),i=o(85414),l=s(o(88333)),a=o(95768);t.default=class{constructor(e){(0,r.default)(this,"columnMeta",void 0),(0,r.default)(this,"metas",new l.default((()=>this._createRow()))),this.columnMeta=e}updateMeta(e,t,o){const s=this.getMeta(e,t);(0,n.extend)(s,o),(0,i.extendByMetaType)(s,o)}createRow(e,t){this.metas.insert(e,t)}createColumn(e,t){for(let o=0;o<this.metas.size();o++)this.metas.obtain(o).insert(e,t)}removeRow(e,t){this.metas.remove(e,t)}removeColumn(e,t){for(let o=0;o<this.metas.size();o++)this.metas.obtain(o).remove(e,t)}getMeta(e,t,o){const s=this.metas.obtain(e).obtain(t);return void 0===o?s:s[o]}setMeta(e,t,o,s){var r;const n=this.metas.obtain(e).obtain(t);null===(r=n._automaticallyAssignedMetaProps)||void 0===r||r.delete(o),n[o]=s}removeMeta(e,t,o){delete this.metas.obtain(e).obtain(t)[o]}getMetas(){const e=[],t=Array.from(this.metas.values());for(let o=0;o<t.length;o++)(0,a.isDefined)(t[o])&&e.push(...t[o].values());return e}getMetasAtRow(e){(0,i.assert)((()=>(0,i.isUnsignedNumber)(e)),"Expecting an unsigned number.");const t=new Map(this.metas);return t.has(e)?Array.from(t.get(e).values()):[]}clearCache(){this.metas.clear()}_createRow(){return new l.default((e=>this._createMeta(e)))}_createMeta(e){return new(this.columnMeta.getMetaConstructor(e))}}},92580:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(95016),i=o(85414),l=s(o(88333));const a=["data","width"];t.default=class{constructor(e){(0,r.default)(this,"globalMeta",void 0),(0,r.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,n.extend)(o,t),(0,i.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,i.columnFactory)(this.globalMeta.getMetaConstructor(),a).prototype}}},54197:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(95016),i=o(85414),l=s(o(87441));t.default=class{constructor(e){(0,r.default)(this,"metaCtor",class{}),(0,r.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,n.extend)(this.meta,(0,l.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,n.extend)(this.meta,e),(0,i.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},6194:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(95016),i=o(85414);t.default=class{constructor(e){(0,r.default)(this,"meta",void 0);const t=e.getMetaConstructor();this.meta=new t}getMeta(){return this.meta}updateMeta(e){(0,n.extend)(this.meta,e),(0,i.extendByMetaType)(this.meta,e,e)}}},87441:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95768),r=o(95016);t.default=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,o,r;for(t=0,o=this.countRows();t<o;t++)if(r=this.getDataAtCell(t,e),!1===(0,s.isEmpty)(r))return!1;return!0},isEmptyRow(e){let t,o,n,i;for(t=0,o=this.countCols();t<o;t++)if(n=this.getDataAtCell(e,t),!1===(0,s.isEmpty)(n))return"object"==typeof n&&(i=this.getCellMeta(e,t),(0,r.isObjectEqual)(this.getSchema()[i.prop],n));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0})},36749:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var r=s(o(85707)),n=o(29398),i=o(95016),l=o(77515);t.DynamicCellMetaMod=class{constructor(e){(0,r.default)(this,"metaManager",void 0),(0,r.default)(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",(e=>this.extendCellMeta(e))),n.Hooks.getSingleton().add("beforeRender",(e=>{e&&this.metaSyncMemo.clear()}),this.metaManager.hot)}extendCellMeta(e){var t;const{row:o,col:s}=e;if(null!==(t=this.metaSyncMemo.get(o))&&void 0!==t&&t.has(s))return;const{visualRow:r,visualCol:n}=e,a=this.metaManager.hot,h=a.colToProp(n);e.prop=h,a.runHooks("beforeGetCellMeta",r,n,e);const c=(0,i.hasOwnProperty)(e,"type")?e.type:null;let u=(0,l.isFunction)(e.cells)?e.cells(o,s,h):null;var d;c&&(u?u.type=null!==(d=u.type)&&void 0!==d?d:c:u={type:c});u&&this.metaManager.updateCellMeta(o,s,u),a.runHooks("afterGetCellMeta",r,n,e),this.metaSyncMemo.has(o)||this.metaSyncMemo.set(o,new Set),this.metaSyncMemo.get(o).add(s)}}},40353:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(69655);var r=s(o(85707));function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function i(e,t){return e.get(function(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")}(e,t))}var l=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,r.default)(this,"metaManager",void 0),(0,r.default)(this,"usageTracker",new Set),(0,r.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),n(this,l,((e,t,o)=>{if(!o)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)})),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach(((e,t)=>{const{initOnly:o,target:s,onChange:r}=e,n="string"==typeof s,a=n?s:t,h=`_${a}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[a],r?(this.installPropWatcher(t,h,r),n&&this.installPropWatcher(s,h,r)):o&&(this.installPropWatcher(t,h,i(l,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))}))}installPropWatcher(e,t,o){const s=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(r){const n=!s.usageTracker.has(e);s.usageTracker.add(e),o.call(s,e,r,n),this[t]=r},enumerable:!0,configurable:!0})}}},85414:(e,t,o)=>{"use strict";t.__esModule=!0,t.assert=function(e,t){if(!e())throw new Error(`Assertion failed: ${t}`)},t.columnFactory=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function o(){}(0,s.inherit)(o,e);for(let e=0;e<t.length;e++)o.prototype[t[e]]=void 0;return o},t.extendByMetaType=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const n="string"==typeof t.type?(0,r.getCellType)(t.type):t.type;e._automaticallyAssignedMetaProps&&(0,s.objectEach)(t,((t,o)=>{e._automaticallyAssignedMetaProps.delete(o)}));if(!(0,s.isObject)(n))return;o!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);const i={};(0,s.objectEach)(n,((t,r)=>{var n;(function(e,t){var o;if("CELL_TYPE"===e)return!1;return(null===(o=t._automaticallyAssignedMetaProps)||void 0===o?void 0:o.has(e))||!(0,s.hasOwnProperty)(t,e)})(r,o)&&(i[r]=t,null===(n=e._automaticallyAssignedMetaProps)||void 0===n||n.add(r))})),(0,s.extend)(e,i)},t.isNullish=function(e){return null==e},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},o(67834),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var s=o(95016),r=o(39548)},41024:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.replaceData=function(e,t,o,s){const{hotInstance:c,dataMap:u,dataSource:d,internalSource:g,source:f,metaManager:p,firstRun:m}=s,w=(0,r.toUpperCaseFirst)(g),C=c.getSettings();Array.isArray(C.dataSchema)?c.dataType="array":(0,n.isFunction)(C.dataSchema)?c.dataType="function":c.dataType="object";u&&u.destroy();e=c.runHooks(`before${w}`,e,m,f);const v=new i.default(c,e,p);if(t(v),"object"==typeof e&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error(`${g} only accepts array of objects or array of arrays (${typeof e} given)`);{const t=v.getSchema();let o;e=[];let s=0,r=0;for(s=0,r=C.startRows;s<r;s++)if("object"!==c.dataType&&"function"!==c.dataType||!C.dataSchema)if("array"===c.dataType)o=(0,l.deepClone)(t[0]),e.push(o);else{o=[];for(let e=0,t=C.startCols;e<t;e++)o.push(null);e.push(o)}else o=(0,l.deepClone)(t),e.push(o)}}Array.isArray(e[0])&&(c.dataType="array");C.data=e,v.dataSource=e,d.data=e,d.dataType=c.dataType,d.colToProp=v.colToProp.bind(v),d.propToCol=v.propToCol.bind(v),d.countCachedColumns=v.countCachedColumns.bind(v),o(v),c.runHooks(`after${w}`,e,m,f),m||(c.runHooks("afterChange",null,g),c.render());c.getSettings().ariaTags&&(0,a.setAttribute)(c.rootElement,[(0,h.A11Y_ROWCOUNT)(-1),(0,h.A11Y_COLCOUNT)(c.countCols()+(c.view?c.countRowHeaders():0))])},o(67834),o(15724);var r=o(83414),n=o(77515),i=s(o(22410)),l=o(95016),a=o(94916),h=o(45551)},5289:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(83644),i=o(40892),l=o(45973),a=s(o(12370));function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(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 u=new WeakSet;class d{constructor(e,t,o){h(this,u),(0,r.default)(this,"hot",void 0),(0,r.default)(this,"tableMeta",void 0),(0,r.default)(this,"selection",void 0),(0,r.default)(this,"eventManager",void 0),(0,r.default)(this,"destroyed",!1),(0,r.default)(this,"activeEditor",void 0),(0,r.default)(this,"cellProperties",void 0),this.hot=e,this.tableMeta=t,this.selection=o,this.eventManager=new a.default(e),this.hot.addHook("afterDocumentKeyDown",(e=>c(u,this,g).call(this,e))),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"compositionstart",(e=>{!this.destroyed&&this.hot.isListening()&&this.openEditor("",e)})),this.hot.view._wt.update("onCellDblClick",((e,t,o)=>c(u,this,f).call(this,e,t,o)))}getActiveEditor(){return this.activeEditor}prepareEditor(){var e;if(this.activeEditor&&this.activeEditor.isWaiting())return void this.closeEditor(!1,!1,(e=>{e&&this.prepareEditor()}));const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;if(!t||t.isHeader())return;const{row:o,col:s}=t,r=this.hot.runHooks("modifyGetCellCoords",o,s,!1,"meta");let n=o,i=s;if(Array.isArray(r)&&([n,i]=r),this.cellProperties=this.hot.getCellMeta(n,i),!this.isCellEditable())return void this.clearActiveEditor();const a=this.hot.getCell(o,s,!0);if(a){const e=this.hot.getCellEditor(this.cellProperties),t=this.hot.colToProp(i),r=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(n),i);this.activeEditor=(0,l.getEditorInstance)(e,this.hot),this.activeEditor.prepare(o,s,t,a,r,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.isCellEditable())return void this.clearActiveEditor();const s=this.hot.getSelectedRangeLast();let r=this.hot.runHooks("beforeBeginEditing",s.highlight.row,s.highlight.col,e,t,o);t instanceof MouseEvent&&"boolean"!=typeof r&&(r=0===this.hot.selection.getLayerLevel()&&s.isSingle()),!1!==r?(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(o&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))):this.clearActiveEditor()}closeEditor(e,t,o){this.activeEditor?this.activeEditor.finishEditing(e,t,o):o&&o(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeLast();if(!e)return!1;const t=this.hot.getCellEditor(this.cellProperties),{row:o,col:s}=e.highlight,{rowIndexMapper:r,columnIndexMapper:n}=this.hot,i=r.isHidden(this.hot.toPhysicalRow(o))||n.isHidden(this.hot.toPhysicalColumn(s));return!(this.cellProperties.readOnly||!t||i)}moveSelectionAfterEnter(e){const t={..."function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(t.row=-t.row,t.col=-t.col),this.hot.selection.isMultiple()?this.selection.transformFocus(t.row,t.col):this.selection.transformStart(t.row,t.col,!0)}destroy(){this.destroyed=!0,this.eventManager.destroy()}}function g(e){const t=this.hot.getSelectedRangeLast();if(!this.hot.isListening()||!t||t.highlight.isHeader()||(0,i.isImmediatePropagationStopped)(e))return;const{keyCode:o}=e,s=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&((0,n.isFunctionKey)(o)||(0,n.isCtrlMetaKey)(o)||s||this.isEditorOpened()||this.openEditor("",e))}function f(e,t){t.isCell()&&this.openEditor(null,e,!0)}const p=new WeakMap;d.getInstance=function(e,t,o){let s=p.get(e);return s||(s=new d(e,t,o),p.set(e,s)),s};t.default=d},52227:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(27458),o(6211),o(90458);var r=s(o(85707)),n=o(27973),i=o(47154),l=o(94916),a=o(95768),h=o(83414),c=o(83644),u=o(5819),d=o(45551);function g(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function f(e,t){return e.get(function(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")}(e,t))}const p=t.EDITOR_TYPE="autocomplete";var m=new WeakMap;class w extends n.HandsontableEditor{constructor(){super(...arguments),(0,r.default)(this,"query",null),(0,r.default)(this,"strippedChoices",[]),(0,r.default)(this,"rawChoices",[]),g(this,m,this.hot.guid.slice(0,9)),(0,r.default)(this,"sortByRelevance",(function(e,t,o){const s=[],r=[],n=e.length;let i,l,c,u,d=t.length;if(0===n){for(c=0;c<d;c++)r.push(c);return r}for(c=0;c<d;c++){if(l=(0,h.stripTags)((0,a.stringify)(t[c])),o)u=l.indexOf(e);else{const t=this.cellProperties.locale;u=l.toLocaleLowerCase(t).indexOf(e.toLocaleLowerCase(t))}-1!==u&&(i=l.length-u-n,s.push({baseIndex:c,index:u,charsLeft:i,value:l}))}for(s.sort(((e,t)=>{if(-1===t.index)return-1;if(-1===e.index)return 1;if(e.index<t.index)return-1;if(t.index<e.index)return 1;if(e.index===t.index){if(e.charsLeft<t.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0})),c=0,d=s.length;c<d;c++)r.push(s[c].baseIndex);return r}))}static get EDITOR_TYPE(){return p}getValue(){const e=this.rawChoices.find((e=>this.stripValueIfNeeded(e)===this.TEXTAREA.value));return(0,a.isDefined)(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,d.A11Y_TEXT)(),(0,d.A11Y_COMBOBOX)(),(0,d.A11Y_HASPOPUP)("listbox"),(0,d.A11Y_AUTOCOMPLETE)()])}prepare(e,t,o,s,r,n){super.prepare(e,t,o,s,r,n),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,d.A11Y_EXPANDED)("false"),(0,d.A11Y_CONTROLS)(`${f(m,this)}-listbox-${e}-${t}`)])}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,o=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,s=null==o?void 0:o.length,{row:r,col:n}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",(e=>this.onBeforeKeyDown(e))),this.htEditor.updateSettings({colWidths:e?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,autoRowSize:!0,renderer:(e,r,n,i,h,c,g)=>{(0,u.textRenderer)(e,r,n,i,h,c,g);const{filteringCaseSensitive:f,allowHtml:p,locale:m}=this.cellProperties,w=this.query;let C,v,y=(0,a.stringify)(c);y&&!p&&(C=!0===f?y.indexOf(w):y.toLocaleLowerCase(m).indexOf(w.toLocaleLowerCase(m)),-1!==C&&(v=y.substr(C,w.length),y=y.replace(v,`<strong>${v}</strong>`))),t&&(0,l.setAttribute)(r,[(0,d.A11Y_OPTION)(),...o?[(0,d.A11Y_SETSIZE)(s)]:[],...o?[(0,d.A11Y_POSINSET)(o.indexOf(c)+1)]:[],["id",`${this.htEditor.rootElement.id}_${n}-${i}`]]),r.innerHTML=y},afterSelectionEnd:(e,o)=>{if(t){const t=this.htEditor.getCell(e,o,!0);(0,l.setAttribute)(t,[(0,d.A11Y_SELECTED)()]),(0,l.setAttribute)(this.TEXTAREA,...(0,d.A11Y_ACTIVEDESCENDANT)(t.id))}}}),t&&((0,l.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,d.A11Y_PRESENTATION)()),(0,l.setAttribute)(this.htEditor.rootElement,[(0,d.A11Y_LISTBOX)(),(0,d.A11Y_LIVE)("polite"),(0,d.A11Y_RELEVANT)("text"),["id",`${f(m,this)}-listbox-${r}-${n}`]]),(0,l.setAttribute)(this.TEXTAREA,...(0,d.A11Y_EXPANDED)("true"))),this.hot._registerTimeout((()=>{this.queryChoices(this.TEXTAREA.value)}))}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,d.A11Y_EXPANDED)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,(e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))})):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=(0,l.getCaretPosition)(this.TEXTAREA),o=(0,l.getSelectionEndPosition)(this.TEXTAREA),s=this.cellProperties.sortByRelevance,r=this.cellProperties.filter;let n=null,a=null,h=e;s&&(n=this.sortByRelevance(this.stripValueIfNeeded(this.getValue()),h,this.cellProperties.filteringCaseSensitive));const c=Array.isArray(n)?n.length:0;if(!1===r)a=c>0?n[0]:0;else{const e=[];for(let t=0,o=h.length;t<o&&!(s&&c<=t);t++)c?e.push(h[n[t]]):e.push(h[t]);a=0,h=e}this.strippedChoices=h,0===h.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,i.pivot)([h])),h.length>0&&(this.updateDropdownDimensions(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(a)),this.hot.listen(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===o?void 0:o)}flipDropdownIfNeeded(){const e=(0,l.getTrimmingContainer)(this.hot.view._wt.wtTable.TABLE),t=e===this.hot.rootWindow,o=this.cellProperties.preventOverflow;if(t||!t&&(o||"horizontal"===o))return!1;const s=(0,l.offset)(this.TEXTAREA),r=(0,l.outerHeight)(this.TEXTAREA),n=this.getHeight(),i=e.scrollTop,a=(0,l.outerHeight)(this.hot.view._wt.wtTable.THEAD),h=(0,l.offset)(e),c=s.top-h.top-a+i,u=e.scrollHeight-c-a-r,d=n>u&&c>u;return d?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(d?c:u,n),d}limitDropdownIfNeeded(e,t){if(t>e){let o=0,s=0,r=0,n=null;do{r=this.htEditor.getRowHeight(s)||this.htEditor.view.getDefaultRowHeight(),o+=r,s+=1}while(o<e);n=o-r,this.htEditor.flipped&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-n+"px"),this.setDropdownHeight(o-r)}}flipDropdown(e){const t=this.htEditor.rootElement.style;t.position="absolute",t.top=-e+"px",this.htEditor.flipped=!0}unflipDropdown(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.htEditor.flipped=void 0}updateDropdownDimensions(){this.htEditor.updateSettings({width:this.getWidth(),height:this.getHeight()}),this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.htEditor.getSettings().width+(0,l.getScrollbarWidth)(this.hot.rootDocument)}),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e})}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getHeight(){const e=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore")),t=parseInt(e.borderTopWidth,10)+parseInt(e.borderBottomWidth,10),o=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:o},((e,t)=>t)).reduce(((e,t)=>e+this.htEditor.getRowHeight(t)),0)+t+1}getWidth(){const e=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore")),t=parseInt(e.borderInlineStartWidth,10)+parseInt(e.borderInlineEndWidth,10);return this.htEditor.getColWidth(0)+t}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,o=(0,i.arrayMap)(e,(e=>(0,a.stringify)(e)));return(0,i.arrayMap)(o,(e=>t?e:(0,h.stripTags)(e)))}allowKeyEventPropagation(e){const t=this.htEditor.getSelectedRangeLast(),o=t?t.from.row:-1;let s=!1;return e===c.KEY_CODES.ARROW_DOWN&&o>0&&o<this.htEditor.countRows()-1&&(s=!0),e===c.KEY_CODES.ARROW_UP&&o>-1&&(s=!0),s}onBeforeKeyDown(e){if((0,c.isPrintableChar)(e.keyCode)||e.keyCode===c.KEY_CODES.BACKSPACE||e.keyCode===c.KEY_CODES.DELETE||e.keyCode===c.KEY_CODES.INSERT){let t=10;if(e.keyCode===c.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout((()=>{this.queryChoices(this.TEXTAREA.value)}),t)}}}t.AutocompleteEditor=w},85588:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(52227);t.EDITOR_TYPE=s.EDITOR_TYPE,t.AutocompleteEditor=s.AutocompleteEditor},43785:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(95768),i=o(95016),l=s(o(30933)),a=o(94916);const h=t.EDITOR_TYPE="base",c=t.EDITOR_STATE=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});class u{static get EDITOR_TYPE(){return h}constructor(e){(0,r.default)(this,"hot",void 0),(0,r.default)(this,"state",c.VIRGIN),(0,r.default)(this,"_opened",!1),(0,r.default)(this,"_fullEditMode",!1),(0,r.default)(this,"_closeCallback",null),(0,r.default)(this,"TD",null),(0,r.default)(this,"row",null),(0,r.default)(this,"col",null),(0,r.default)(this,"prop",null),(0,r.default)(this,"originalValue",null),(0,r.default)(this,"cellProperties",null),this.hot=e,this.init()}_fireCallbacks(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}init(){}getValue(){throw Error("Editor getValue() method unimplemented")}setValue(){throw Error("Editor setValue() method unimplemented")}open(){throw Error("Editor open() method unimplemented")}close(){throw Error("Editor close() method unimplemented")}prepare(e,t,o,s,r,n){this.TD=s,this.row=e,this.col=t,this.prop=o,this.originalValue=r,this.cellProperties=n,this.state=this.isOpened()?this.state:c.VIRGIN}extend(){return class extends this.constructor{}}saveValue(e,t){let o,s,r,n;if(t){const e=this.hot.getSelectedLast();o=Math.max(Math.min(e[0],e[2]),0),s=Math.max(Math.min(e[1],e[3]),0),r=Math.max(e[0],e[2]),n=Math.max(e[1],e[3])}else[o,s,r,n]=[this.row,this.col,null,null];const i=this.hot.runHooks("modifyGetCellCoords",o,s,!1,"meta");Array.isArray(i)&&([o,s]=i),this.hot.populateFromArray(o,s,e,r,n,"edit")}beginEditing(e,t){if(this.state!==c.VIRGIN)return;const o=this.hot,s=o.rowIndexMapper.getRenderableFromVisualIndex(this.row),r=o.columnIndexMapper.getRenderableFromVisualIndex(this.col),i=()=>{if(this.state=c.EDITING,this.isInFullEditMode()){const t="string"==typeof e?e:(0,n.stringify)(this.originalValue);this.setValue(t)}this.open(t),this._opened=!0,this.focus(),o.view.render(),o.runHooks("afterBeginEditing",this.row,this.col)};this.hot.addHookOnce("afterScroll",i);o.view.scrollViewport(o._createCellCoords(s,r))||(this.hot.removeHook("afterScroll",i),i())}finishEditing(e,t,o){let s;if(o){const e=this._closeCallback;this._closeCallback=t=>{e&&e(t),o(t),this.hot.view.render()}}if(!this.isWaiting())if(this.state!==c.VIRGIN){if(this.state===c.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();const o=this.getValue();s=this.cellProperties.trimWhitespace?[["string"==typeof o?String.prototype.trim.call(o||""):o]]:[[o]],this.state=c.WAITING,this.saveValue(s,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(e=>{this.state=c.FINISHED,this.discardEditor(e)})):(this.state=c.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout((()=>{this._fireCallbacks(!0)}))}cancelChanges(){this.state=c.FINISHED,this.discardEditor()}discardEditor(e){if(this.state===c.FINISHED)if(!1===e&&!0!==this.cellProperties.allowInvalid)this.hot.selectCell(this.row,this.col),this.focus(),this.state=c.EDITING,this._fireCallbacks(!1);else{this.close(),this._opened=!1,this._fullEditMode=!1,this.state=c.VIRGIN,this._fireCallbacks(!0);this.hot.getShortcutManager().setActiveContextName("grid")}}enableFullEditMode(){this._fullEditMode=!0}isInFullEditMode(){return this._fullEditMode}isOpened(){return this._opened}isWaiting(){return this.state===c.WAITING}getEditedCellRect(){var e;const t=this.getEditedCell();if(!t)return;const{wtOverlays:o,wtViewport:s}=this.hot.view._wt,r=this.hot.rootWindow,n=(0,a.offset)(t),i=(0,a.outerWidth)(t),l=(0,a.offset)(this.hot.rootElement),h=(0,a.outerWidth)(this.hot.rootElement),c=o.topOverlay.holder,u=o.inlineStartOverlay.holder,d=c!==r?c.scrollTop:0,g=u!==r?u.scrollLeft:0,f=r.innerWidth-l.left-h,{wtTable:p}=null!==(e=o.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt,m=p.name,w=["master","inline_start"].includes(m)?d:0,C=["master","top","bottom"].includes(m)?g:0,v=n.top===l.top?0:1;let y=n.top-l.top-v-w,E=0;E=this.hot.isRtl()?r.innerWidth-n.left-i-f-1+C:n.left-l.left-1-C,["top","top_inline_start_corner"].includes(m)&&(y+=o.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(m)&&(E+=Math.abs(o.inlineStartOverlay.getOverlayOffset()));const S=this.hot.hasColHeaders(),R=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),b=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),_=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(S&&R<=0||R===_)&&(y+=1),b<=0&&(E+=1);const T=s.rowsRenderCalculator.startPosition,M=s.columnsRenderCalculator.startPosition,O=Math.abs(o.inlineStartOverlay.getScrollPosition()),I=o.topOverlay.getScrollPosition(),N=(0,a.getScrollbarWidth)(this.hot.rootDocument);let A=t.offsetTop;if(["inline_start","master"].includes(m)&&(A+=T-I),["bottom","bottom_inline_start_corner"].includes(m)){const{wtViewport:e,wtTable:t}=o.bottomOverlay.clone;A+=e.getWorkspaceHeight()-t.getHeight()-N}let P=t.offsetLeft;this.hot.isRtl()?(P=P>=0?p.getWidth()-t.offsetLeft:Math.abs(P),P+=M-O-i):["top","master","bottom"].includes(m)&&(P+=M-O);const H=r.getComputedStyle(this.TD),x=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",D=parseInt(H[x],10)>0?0:1,k=parseInt(H.borderTopWidth,10)>0?0:1,L=(0,a.outerWidth)(t)+D,V=(0,a.outerHeight)(t)+k,F=(0,a.hasVerticalScrollbar)(c)?N:0,W=(0,a.hasHorizontalScrollbar)(u)?N:0,B=this.hot.view.maximumVisibleElementWidth(P)-F+D;return{top:y,start:E,height:V,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(A)-W+k,this.hot.view.getDefaultRowHeight()),width:L,maxWidth:B}}getEditedCellsLayerClass(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}getEditedCell(){return this.hot.getCell(this.row,this.col,!0)}checkEditorSection(){const e=this.hot.countRows();let t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(t="inline-start"),t}}t.BaseEditor=u,(0,i.mixin)(u,l.default)},95605:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(43785);t.EDITOR_STATE=s.EDITOR_STATE,t.EDITOR_TYPE=s.EDITOR_TYPE,t.BaseEditor=s.BaseEditor},69609:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95605),r=o(94916);const n=t.EDITOR_TYPE="checkbox";class i extends s.BaseEditor{static get EDITOR_TYPE(){return n}beginEditing(e,t){if(t&&"mouseup"===t.type&&"TD"===t.target.nodeName){const e=this.TD.querySelector('input[type="checkbox"]');(0,r.hasClass)(e,"htBadValue")||e.click()}}finishEditing(){}init(){}open(){}close(){}getValue(){}setValue(){}focus(){}}t.CheckboxEditor=i},60213:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(69609);t.EDITOR_TYPE=s.EDITOR_TYPE,t.CheckboxEditor=s.CheckboxEditor},33491:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=s(o(86798)),i=s(o(75972)),l=o(95605),a=o(53423),h=o(94916),c=o(95016),u=o(83644);const d=t.EDITOR_TYPE="date",g="dateEditor";class f extends a.TextEditor{constructor(){super(...arguments),(0,r.default)(this,"defaultDateFormat","DD/MM/YYYY"),(0,r.default)(this,"parentDestroyed",!1),(0,r.default)(this,"$datePicker",null)}static get EDITOR_TYPE(){return d}init(){if("function"!=typeof n.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof i.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||((0,h.removeClass)(this.datePicker,/ht-theme-.*/g),(0,h.addClass)(this.datePicker,e))}))}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");const e=this.hot.getCurrentThemeName();(0,h.removeClass)(this.datePicker,/ht-theme-.*/g),(0,h.addClass)(this.datePicker,e),this.hot.rootDocument.body.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,s,r,n){super.prepare(e,t,o,s,r,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:g})}close(){var e;this._opened=!1,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(g),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=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.hot.view.isMouseDown(),s=!!e&&(0,u.isFunctionKey)(e.keyCode);let r;this.datePicker.style.display="block",this.$datePicker=new i.default(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(n.default),this.$datePicker._onInputFocus=function(){},this.originalValue?(r=this.originalValue,(0,n.default)(r,t,!0).isValid()&&this.$datePicker.setMoment((0,n.default)(r,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),s||o||this.setValue("")):this.cellProperties.defaultDate?(r=this.cellProperties.defaultDate,(0,n.default)(r,t,!0).isValid()&&this.$datePicker.setMoment((0,n.default)(r,t),!0),s||o||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){const e=this.TEXTAREA,t={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,c.deepExtend)(t,this.cellProperties.datePickerConfig);const o=t.onSelect,s=t.onClose;return t.field=e,t.trigger=e,t.container=this.datePicker,t.bound=!1,t.keyboardInput=!1,t.format=t.format||this.defaultDateFormat,t.reposition=t.reposition||!1,t.isRTL=!1,t.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=(0,n.default)(t).format(this.cellProperties.dateFormat||this.defaultDateFormat)),this.setValue(t),o&&o()},t.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),s&&s()},t}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==l.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:o,columnIndexMapper:s}=this.hot,{wtOverlays:r}=this.hot.view._wt,{wtTable:n}=null!==(t=r.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,i=o.getVisualFromRenderableIndex(n.getFirstPartiallyVisibleRow()),a=o.getVisualFromRenderableIndex(n.getLastPartiallyVisibleRow()),c=s.getVisualFromRenderableIndex(n.getFirstPartiallyVisibleColumn()),u=s.getVisualFromRenderableIndex(n.getLastPartiallyVisibleColumn());if(this.row>=i&&this.row<=a&&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()}}t.DateEditor=f},48584:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(33491);t.EDITOR_TYPE=s.EDITOR_TYPE,t.DateEditor=s.DateEditor},28629:(e,t,o)=>{"use strict";t.__esModule=!0,o(14846),o(27458);var s=o(85588);const r=t.EDITOR_TYPE="dropdown";class n extends s.AutocompleteEditor{static get EDITOR_TYPE(){return r}prepare(e,t,o,s,r,n){n.filter=!1,n.strict=!0,super.prepare(e,t,o,s,r,n)}}t.DropdownEditor=n},73717:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(28629);t.EDITOR_TYPE=s.EDITOR_TYPE,t.DropdownEditor=s.DropdownEditor},85065:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(53423),r=o(94916),n=o(40892),i=o(95016),l=o(9528);const a="handsontableEditor",h=t.EDITOR_TYPE="handsontable";class c extends s.TextEditor{static get EDITOR_TYPE(){return h}open(){super.open();const e=this.htContainer.style;this.htEditor&&(this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,r.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.htEditor.updateSettings({width:this.getWidth(),height:this.getHeight()}),this.refreshDimensions()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,t,o,s,r,n){super.prepare(e,t,o,s,r,n);const l=this,a={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){const o=this.getSourceData(t.row,t.col);void 0!==o&&l.setValue(o),l.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,i.extend)(a,n.handsontable),this.htOptions=a}beginEditing(e,t){const o=this.hot.getSettings().onBeginEditing;o&&!1===o()||super.beginEditing(e,t)}createElements(){super.createElements();const e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,o){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){const e=this.htEditor.getValue();void 0!==e&&this.setValue(e)}super.finishEditing(e,t,o)}getHeight(){return this.htEditor.view.getTableHeight()+1}getWidth(){return this.htEditor.view.getTableWidth()}assignHooks(){this.hot.addHook("afterDestroy",(()=>{var e;null===(e=this.htEditor)||void 0===e||e.destroy()})),this.hot.addHook("afterSetTheme",((e,t)=>{var o;t||(null===(o=this.htEditor)||void 0===o||o.useTheme(e))}))}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const t={group:a,relativeToGroup:l.EDITOR_EDIT_GROUP,position:"before"},o=(e,t)=>{const o=this.htEditor;if(void 0!==e&&(e<0||o.flipped&&e>o.countRows()-1?o.deselectCell():o.selectCell(e,0),o.getData().length))return t.preventDefault(),(0,n.stopImmediatePropagation)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let s,r;return!t.getSelectedLast()&&t.flipped?s=t.countRows()-1:t.getSelectedLast()&&(t.flipped?(r=t.getSelectedLast()[0],s=Math.max(0,r-1)):(r=t.getSelectedLast()[0],s=r-1)),o(s,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let s,r;if(t.getSelectedLast()||t.flipped){if(t.getSelectedLast())if(t.flipped)s=t.getSelectedLast()[0]+1;else if(!t.flipped){const e=t.countRows()-1;r=t.getSelectedLast()[0],s=Math.min(e,r+1)}}else s=0;return o(s,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts();this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(a)}}t.HandsontableEditor=c},27973:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(85065);t.EDITOR_TYPE=s.EDITOR_TYPE,t.HandsontableEditor=s.HandsontableEditor},39004:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,f.registerEditor)(r.BaseEditor),(0,f.registerEditor)(s.AutocompleteEditor),(0,f.registerEditor)(n.CheckboxEditor),(0,f.registerEditor)(i.DateEditor),(0,f.registerEditor)(l.DropdownEditor),(0,f.registerEditor)(a.HandsontableEditor),(0,f.registerEditor)(h.NumericEditor),(0,f.registerEditor)(c.PasswordEditor),(0,f.registerEditor)(u.SelectEditor),(0,f.registerEditor)(d.TextEditor),(0,f.registerEditor)(g.TimeEditor)};var s=o(85588);t.AutocompleteEditor=s.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=s.EDITOR_TYPE;var r=o(95605);t.BaseEditor=r.BaseEditor,t.BASE_EDITOR=r.EDITOR_TYPE;var n=o(60213);t.CheckboxEditor=n.CheckboxEditor,t.CHECKBOX_EDITOR=n.EDITOR_TYPE;var i=o(48584);t.DateEditor=i.DateEditor,t.DATE_EDITOR=i.EDITOR_TYPE;var l=o(73717);t.DropdownEditor=l.DropdownEditor,t.DROPDOWN_EDITOR=l.EDITOR_TYPE;var a=o(27973);t.HandsontableEditor=a.HandsontableEditor,t.HANDSONTABLE_EDITOR=a.EDITOR_TYPE;var h=o(67045);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var c=o(75669);t.PasswordEditor=c.PasswordEditor,t.PASSWORD_EDITOR=c.EDITOR_TYPE;var u=o(31572);t.SelectEditor=u.SelectEditor,t.SELECT_EDITOR=u.EDITOR_TYPE;var d=o(53423);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var g=o(3833);t.TimeEditor=g.TimeEditor,t.TIME_EDITOR=g.EDITOR_TYPE;var f=o(45973);t.registerEditor=f.registerEditor,t.RegisteredEditor=f.RegisteredEditor,t._getEditorInstance=f._getEditorInstance,t.getEditor=f.getEditor,t.getEditorInstance=f.getEditorInstance,t.getRegisteredEditorNames=f.getRegisteredEditorNames,t.getRegisteredEditors=f.getRegisteredEditors,t.hasEditor=f.hasEditor},67045:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(73971);t.EDITOR_TYPE=s.EDITOR_TYPE,t.NumericEditor=s.NumericEditor},73971:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(53423);const r=t.EDITOR_TYPE="numeric";class n extends s.TextEditor{static get EDITOR_TYPE(){return r}}t.NumericEditor=n},75669:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(64137);t.EDITOR_TYPE=s.EDITOR_TYPE,t.PasswordEditor=s.PasswordEditor},64137:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(53423),i=o(64144),l=o(94916);const a=t.EDITOR_TYPE="password";class h extends n.TextEditor{constructor(){super(...arguments),(0,r.default)(this,"autoResize",(0,i.createInputElementResizer)(this.hot.rootDocument,{textContent:e=>"•".repeat(e.value.length)}))}static get EDITOR_TYPE(){return a}createElements(){super.createElements(),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,l.empty)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}t.PasswordEditor=h},45973:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.RegisteredEditor=d,t.getEditorInstance=t._getEditorInstance=function(e,t){let o;if("function"==typeof e)i.get(e)||g(null,e),o=i.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');o=a(e)}if(!o)throw Error(`No editor registered under name "${e}"`);return o.getInstance(t)},t.getEditor=function(e){if("function"==typeof e)return e;if(!h(e))throw Error(`No registered editor found under "${e}" name`);return a(e).getConstructor()},t.registerEditor=g,o(67834);var r=o(29398),n=s(o(29328));const i=new WeakMap,{register:l,getItem:a,hasItem:h,getNames:c,getValues:u}=(0,n.default)("editors");function d(e){const t={},o=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new o(e)),t[e.guid]},r.Hooks.getSingleton().add("afterDestroy",(function(){t[this.guid]=null}))}function g(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);const o=new d(t);"string"==typeof e&&l(e,o),i.set(t,o)}t.getRegisteredEditors=u,t.getRegisteredEditorNames=c,t.hasEditor=h},31572:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(7539);t.EDITOR_TYPE=s.EDITOR_TYPE,t.SelectEditor=s.SelectEditor},7539:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95605),r=o(94916),n=o(95016),i=o(45551);const l="ht_editor_visible",a="selectEditor",h=t.EDITOR_TYPE="select";class c extends s.BaseEditor{static get EDITOR_TYPE(){return h}init(){this.selectWrapper=this.hot.rootDocument.createElement("div"),this.select=this.hot.rootDocument.createElement("select"),this.select.setAttribute("data-hot-input","true"),this.selectWrapper.style.display="none";const e=this.hot.rootDocument.createElement("DIV"),t=this.hot.getSettings().ariaTags;e.className="htAutocompleteArrow",t&&e.setAttribute(...(0,i.A11Y_HIDDEN)()),e.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660))),(0,r.addClass)(this.selectWrapper,"htSelectEditor"),this.selectWrapper.appendChild(this.select),this.selectWrapper.insertBefore(e,this.selectWrapper.firstChild),this.hot.rootElement.appendChild(this.selectWrapper),this.registerHooks()}getValue(){return this.select.value}setValue(e){this.select.value=e}open(){this._opened=!0,this.refreshDimensions(),this.selectWrapper.style.display="";this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.selectWrapper.style.display="none",(0,r.hasClass)(this.selectWrapper,l)&&(0,r.removeClass)(this.selectWrapper,l),this.unregisterShortcuts(),this.clearHooks()}focus(){this.select.focus()}registerHooks(){this.addHook("afterScrollHorizontally",(()=>this.refreshDimensions())),this.addHook("afterScrollVertically",(()=>this.refreshDimensions())),this.addHook("afterColumnResize",(()=>this.refreshDimensions())),this.addHook("afterRowResize",(()=>this.refreshDimensions()))}prepare(e,t,o,s,i,l){super.prepare(e,t,o,s,i,l);const a=this.cellProperties.selectOptions;let h;h="function"==typeof a?this.prepareOptions(a(this.row,this.col,this.prop)):this.prepareOptions(a),(0,r.empty)(this.select),(0,n.objectEach)(h,((e,t)=>{const o=this.hot.rootDocument.createElement("OPTION");o.value=t,(0,r.fastInnerHTML)(o,e),this.select.appendChild(o)}))}prepareOptions(e){let t={};if(Array.isArray(e))for(let o=0,s=e.length;o<s;o++)t[e[o]]=e[o];else"object"==typeof e&&(t=e);return t}refreshValue(){const e=this.hot.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()}refreshDimensions(){if(this.state!==s.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.close();const{top:e,start:t,width:o,height:n}=this.getEditedCellRect(),i=this.selectWrapper.style;i.height=`${n}px`,i.width=`${o}px`,i.top=`${e}px`,i[this.hot.isRtl()?"right":"left"]=`${t}px`,i.margin="0px",(0,r.addClass)(this.selectWrapper,l)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={group:a};this.isInFullEditMode()&&e.addShortcuts([{keys:[["ArrowUp"]],callback:()=>{const e=this.select.selectedIndex-1;e>=0&&(this.select[e].selected=!0)}},{keys:[["ArrowDown"]],callback:()=>{const e=this.select.selectedIndex+1;e<=this.select.length-1&&(this.select[e].selected=!0)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(a)}}t.SelectEditor=c},23212:(e,t,o)=>{"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){const o=(0,s.getCaretPosition)(t),r=t.value.split("\n");let n=o,i=0;for(let t=0;t<r.length;t++){const s=r[t];0!==t&&(i+=r[t-1].length+1);const l=i+s.length;if("home"===e?n=i:"end"===e&&(n=l),o<=l)break}(0,s.setCaretPosition)(t,n)};var s=o(94916)},53423:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(63417);t.EDITOR_TYPE=s.EDITOR_TYPE,t.TextEditor=s.TextEditor},63417:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(95605),i=s(o(12370)),l=o(99275),a=o(94916),h=o(36926),c=o(64144),u=o(95768),d=o(23212),g=o(45551);const f="ht_editor_hidden",p="textEditor",m=t.EDITOR_TYPE="text";class w extends n.BaseEditor{static get EDITOR_TYPE(){return m}constructor(e){super(e),(0,r.default)(this,"eventManager",new i.default(this)),(0,r.default)(this,"autoResize",(0,c.createInputElementResizer)(this.hot.rootDocument)),(0,r.default)(this,"TEXTAREA",void 0),(0,r.default)(this,"textareaStyle",void 0),(0,r.default)(this,"TEXTAREA_PARENT",void 0),(0,r.default)(this,"textareaParentStyle",void 0),(0,r.default)(this,"layerClass",void 0),this.eventManager=new i.default(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",(()=>this.destroy()))}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e}open(){this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this.autoResize.unObserve(),(0,a.isThisHotChild)(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,o,s,r,i){const l=this.state;if(super.prepare(e,t,o,s,r,i),!i.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=i;e&&!this.isOpened()&&(this.TEXTAREA.value=""),l===n.EDITOR_STATE.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===n.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!==n.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:r,height:i,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,r),minHeight:Math.min(i,l),maxWidth:r,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===n.EDITOR_STATE.EDITING&&this.focus()})),this.addHook("afterRowResize",(()=>{this.refreshDimensions(),this.state===n.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},3833:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(27969);t.EDITOR_TYPE=s.EDITOR_TYPE,t.TimeEditor=s.TimeEditor},27969:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(53423);const r=t.EDITOR_TYPE="time";class n extends s.TextEditor{static get EDITOR_TYPE(){return r}prepare(e,t,o,s,r,n){super.prepare(e,t,o,s,r,n),this.TEXTAREA.dir="ltr"}}t.TimeEditor=n},12370:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.getListenersCounter=function(){return i},o(15724);var r=s(o(85707)),n=o(40892);let i=0;t.default=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,r.default)(this,"context",void 0),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}addEventListener(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function r(e){o.call(this,function(e){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),(0,n.stopImmediatePropagation)(this)},e}(e))}return this.context.eventListeners.push({element:e,event:t,callback:o,callbackProxy:r,options:s,eventManager:this}),e.addEventListener(t,r,s),i+=1,()=>{this.removeEventListener(e,t,o)}}removeEventListener(e,t,o){let s,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=this.context.eventListeners.length;for(;n;)if(n-=1,s=this.context.eventListeners[n],s.event===t&&s.element===e){if(o&&o!==s.callback)continue;if(r&&s.eventManager!==this)continue;this.context.eventListeners.splice(n,1),s.element.removeEventListener(s.event,s.callbackProxy,s.options),i-=1}}clearEvents(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.context)return;let t=this.context.eventListeners.length;for(;t;){t-=1;const o=this.context.eventListeners[t];e&&o.eventManager!==this||(this.context.eventListeners.splice(t,1),o.element.removeEventListener(o.event,o.callbackProxy,o.options),i-=1)}}clear(){this.clearEvents()}destroy(){this.clearEvents(),this.context=null}destroyWithOwnEventsOnly(){this.clearEvents(!0),this.context=null}fireEvent(e,t){let o=e.document,s=e;o||(o=e.ownerDocument?e.ownerDocument:e,s=o.defaultView);const r={bubbles:!0,cancelable:"mousemove"!==t,view:s,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};let n;o.createEvent?(n=o.createEvent("MouseEvents"),n.initMouseEvent(t,r.bubbles,r.cancelable,r.view,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget||o.body.parentNode)):n=o.createEventObject(),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(`on${t}`,n)}}},94810:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834);var s=o(59350),r=o(94916),n=o(77515);function i(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 a(e,t){return e.get(c(e,t))}function h(e,t,o){return e.set(c(e,t),o),o}function c(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 u=Object.freeze({CELL:"cell",MIXED:"mixed"});var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(e){var t;const o=null===(t=a(d,this).getSelectedRangeLast())||void 0===t?void 0:t.highlight;if(!o||!a(d,this).selection.isCellVisible(o))return void e(null);const s=a(d,this).getCell(o.row,o.col,!0);null===s?a(d,this).addHookOnce("afterScroll",(()=>{e(a(d,this).getCell(o.row,o.col,!0))})):e(s)}function v(){c(w,this,C).call(this,(e=>{const{activeElement:t}=a(d,this).rootDocument;t&&(0,r.isOutsideInput)(t)&&t.blur(),this.focusOnHighlightedCell(e)}))}function y(){c(w,this,C).call(this,(e=>{this.getFocusMode()===u.MIXED&&"TD"===(null==e?void 0:e.nodeName)&&this.refocusToEditorTextarea()}))}function E(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?u.MIXED:u.CELL)}t.FocusManager=class{constructor(e){var t,o,s=this;l(t=this,o=w),o.add(t),i(this,d,void 0),i(this,g,void 0),i(this,f,1),i(this,p,null),i(this,m,new Map);const r=e.getSettings();h(d,this,e),h(g,this,r.imeFastEdit?u.MIXED:u.CELL),a(d,this).addHook("afterUpdateSettings",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,E).call(s,...t)})),a(d,this).addHook("afterSelection",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,v).call(s,...t)})),a(d,this).addHook("afterSelectionFocusSet",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,v).call(s,...t)})),a(d,this).addHook("afterSelectionEnd",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,s,y).call(s,...t)}))}getFocusMode(){return a(g,this)}setFocusMode(e){Object.values(u).includes(e)?h(g,this,e):(0,s.warn)(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return a(f,this)}setRefocusDelay(e){h(f,this,e)}setRefocusElementGetter(e){h(p,this,e)}getRefocusElement(){var e;return"function"==typeof a(p,this)?a(p,this).call(this):null===(e=a(d,this).getActiveEditor())||void 0===e?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const t=e=>{var t,o;const s=null===(t=a(d,this).getSelectedRangeLast())||void 0===t?void 0:t.highlight;if(!s)return;let r=a(d,this).runHooks("modifyFocusedElement",s.row,s.col,e);r instanceof HTMLElement||(r=e),!r||null!==(o=a(d,this).getActiveEditor())&&void 0!==o&&o.isOpened()||r.focus({preventScroll:!0})};e?t(e):c(w,this,C).call(this,(e=>t(e)))}refocusToEditorTextarea(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a(f,this);!a(d,this).getSettings().imeFastEdit||null!==(e=a(d,this).getActiveEditor())&&void 0!==e&&e.isOpened()||(a(m,this).has(t)||a(m,this).set(t,(0,n.debounce)((()=>{var e;null===(e=this.getRefocusElement())||void 0===e||e.select()}),t)),a(m,this).get(t)())}}},45551:(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_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]},47154:(e,t,o)=>{"use strict";function s(e,t,o,s){let r=-1,n=e,i=o;Array.isArray(e)||(n=Array.from(e));const l=n.length;for(s&&l&&(r+=1,i=n[r]),r+=1;r<l;)i=t(i,n[r],r,n),r+=1;return i}function r(e,t){let o=0,s=e;Array.isArray(e)||(s=Array.from(e));const r=s.length;for(;o<r&&!1!==t(s[o],o,s);)o+=1;return e}function n(e){return s(e,((e,t)=>e+t),0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return n(e)/e.length},t.arrayEach=r,t.arrayFilter=function(e,t){let o=0,s=e;Array.isArray(e)||(s=Array.from(e));const r=s.length,n=[];let i=-1;for(;o<r;){const e=s[o];t(e,o,s)&&(i+=1,n[i]=e),o+=1}return n},t.arrayFlatten=function e(t){return s(t,((t,o)=>t.concat(Array.isArray(o)?e(o):o)),[])},t.arrayMap=function(e,t){let o=0,s=e;Array.isArray(e)||(s=Array.from(e));const r=s.length,n=[];let i=-1;for(;o<r;){const e=s[o];i+=1,n[i]=t(e,o,s),o+=1}return n},t.arrayMax=function(e){return s(e,((e,t)=>e>t?e:t),Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return s(e,((e,t)=>e<t?e:t),Array.isArray(e)?e[0]:void 0)},t.arrayReduce=s,t.arraySum=n,t.arrayUnique=function(e){const t=[];return r(e,(e=>{-1===t.indexOf(e)&&t.push(e)})),t},t.extendArray=function(e,t){const o=t.length;let s=0;for(;s<o;)e.push(t[s]),s+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[s,...n]=[...t];let i=s;return r(n,(e=>{i=i.filter((t=>!e.includes(t)))})),i},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[s,...n]=[...t];let i=s;return r(n,(e=>{i=i.filter((t=>e.includes(t)))})),i},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[s,...n]=[...t],i=new Set(s);return r(n,(e=>{r(e,(e=>{i.has(e)||i.add(e)}))})),Array.from(i)},t.pivot=function(e){const t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;const o=e.length,s=e[0].length;for(let r=0;r<o;r++)for(let o=0;o<s;o++)t[o]||(t[o]=[]),t[o][r]=e[r][o];return t},t.stringToArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){const t=e.length;let o=0;for(;o<t;)e[o]=[e[o]],o+=1},o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458)},99275:(e,t,o)=>{"use strict";t.__esModule=!0,t.isChrome=function(){return i.chrome.value},t.isChromeWebKit=function(){return i.chromeWebKit.value},t.isEdge=function(){return i.edge.value},t.isEdgeWebKit=function(){return i.edgeWebKit.value},t.isFirefox=function(){return i.firefox.value},t.isFirefoxWebKit=function(){return i.firefoxWebKit.value},t.isIOS=function(){return l.ios.value},t.isIpadOS=function(){let{maxTouchPoints:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return e>2&&l.mac.value},t.isLinuxOS=function(){return l.linux.value},t.isMacOS=function(){return l.mac.value},t.isMobileBrowser=function(){return i.mobile.value},t.isSafari=function(){return i.safari.value},t.isWindowsOS=function(){return l.win.value},t.setBrowserMeta=a,t.setPlatformMeta=h;var s=o(95016),r=o(37725);const n=e=>{const t={value:!1,test:(o,s)=>{t.value=e(o,s)}};return t},i={chrome:n(((e,t)=>/Chrome/.test(e)&&/Google/.test(t))),chromeWebKit:n((e=>/CriOS/.test(e))),edge:n((e=>/Edge/.test(e))),edgeWebKit:n((e=>/EdgiOS/.test(e))),firefox:n((e=>/Firefox/.test(e))),firefoxWebKit:n((e=>/FxiOS/.test(e))),mobile:n((e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e))),safari:n(((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t)))},l={mac:n((e=>/^Mac/.test(e))),win:n((e=>/^Win/.test(e))),linux:n((e=>/^Linux/.test(e))),ios:n((e=>/iPhone|iPad|iPod/i.test(e)))};function a(){let{userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.objectEach)(i,(o=>{let{test:s}=o;s(e,t)}))}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.objectEach)(l,(t=>{let{test:o}=t;o(e)}))}(0,r.isCSR)()&&(a(),h())},59350:(e,t,o)=>{"use strict";t.__esModule=!0,t.error=function(){(0,s.isDefined)(console)&&console.error(...arguments)},t.info=function(){(0,s.isDefined)(console)&&console.info(...arguments)},t.log=function(){(0,s.isDefined)(console)&&console.log(...arguments)},t.warn=function(){(0,s.isDefined)(console)&&console.warn(...arguments)};var s=o(95768)},42379:(e,t,o)=>{"use strict";t.__esModule=!0,t.countFirstRowKeys=function(e){let t=0;Array.isArray(e)&&(e[0]&&Array.isArray(e[0])?t=e[0].length:e[0]&&(0,s.isObject)(e[0])&&(t=(0,s.deepObjectSize)(e[0])));return t},t.createEmptySpreadsheetData=function(e,t){const o=[];let s;for(let r=0;r<e;r++){s=[];for(let e=0;e<t;e++)s.push("");o.push(s)}return o},t.createSpreadsheetData=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const o=[];let s,r;for(s=0;s<e;s++){const e=[];for(r=0;r<t;r++)e.push(i(r)+(s+1));o.push(e)}return o},t.createSpreadsheetObjectData=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const o=[];let s,r;for(s=0;s<e;s++){const e={};for(r=0;r<t;r++)e[`prop${r}`]=i(r)+(s+1);o.push(e)}return o},t.dataRowToChangesArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=e;const s=[];Array.isArray(e)&&Array.isArray(e[0])||(o=[e]);return o.forEach(((e,o)=>{Array.isArray(e)?e.forEach(((e,r)=>{s.push([o+t,r,e])})):Object.keys(e).forEach((r=>{s.push([o+t,r,e[r]])}))})),s},t.isArrayOfArrays=function(e){return!!(Array.isArray(e)&&e.length&&e.every((e=>Array.isArray(e))))},t.isArrayOfObjects=function(e){return!!(Array.isArray(e)&&e.length&&e.every((e=>"object"==typeof e&&!Array.isArray(e)&&null!==e)))},t.spreadsheetColumnIndex=function(e){let t=0;if(e)for(let o=0,s=e.length-1;o<e.length;o+=1,s-=1)t+=n**s*(r.indexOf(e[o])+1);return t-=1,t},t.spreadsheetColumnLabel=i,o(15724),o(14846),o(63333),o(69655);var s=o(95016);const r="ABCDEFGHIJKLMNOPQRSTUVWXYZ",n=r.length;function i(e){let t,o=e+1,s="";for(;o>0;)t=(o-1)%n,s=String.fromCharCode(65+t)+s,o=parseInt((o-t)/n,10);return s}},96431:(e,t)=>{"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){const t=new Date(e);if(!isNaN(new Date(`${e}T00:00`).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},94916:(e,t,o)=>{"use strict";t.__esModule=!0,t.addClass=h,t.addEvent=function(e,t,o){e.addEventListener(t,o,!1)},t.clearTextSelection=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.getSelection&&(e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges())},t.closest=i,t.closestDown=function(e,t,o){const s=[];let r=e;for(;r&&(r=i(r,t,o),r&&(!o||o.contains(r)));)s.push(r),r=r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r.host:r.parentNode;const n=s.length;return n?s[n-1]:null},t.empty=d,t.fastInnerHTML=function(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];g.test(t)?e.innerHTML=o?(0,s.sanitize)(t):t:f(e,t)},t.fastInnerText=f,t.findFirstParentWithClass=function(e,t){const o={element:void 0,classNames:[]};let s=e;for(;null!==s&&s!==e.ownerDocument.documentElement&&!o.element;){if("string"==typeof t&&s.classList.contains(t))o.element=s,o.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(s.classList).filter((e=>t.test(e)));e.length&&(o.element=s,o.classNames.push(...e))}s=s.parentElement}return o},t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;return 0},t.getCssTransform=function(e){let t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];return-1},t.getFrameElement=n,t.getMaximumScrollLeft=function(e){return e.scrollWidth-e.clientWidth},t.getMaximumScrollTop=function(e){return e.scrollHeight-e.clientHeight},t.getParent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=-1,s=null,r=e;for(;null!==r;){if(o===t){s=r;break}r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r=r.host:(o+=1,r=r.parentNode)}return s},t.getParentWindow=function(e){return n(e)&&e.parent},t.getScrollLeft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return m(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return p(t);return e.scrollTop},t.getScrollableElement=function(e){let t=e.ownerDocument,o=t?t.defaultView:void 0;t||(t=e.document?e.document:e,o=t.defaultView);const s=["auto","scroll"];let r=e.parentNode;for(;r&&r.style&&t.body!==r;){let{overflow:e,overflowX:t,overflowY:n}=r.style;if([e,t,n].includes("scroll"))return r;if(({overflow:e,overflowX:t,overflowY:n}=o.getComputedStyle(r)),s.includes(e)||s.includes(t)||s.includes(n))return r;if(r.clientHeight<=r.scrollHeight+1&&(s.includes(n)||s.includes(e)))return r;if(r.clientWidth<=r.scrollWidth+1&&(s.includes(t)||s.includes(e)))return r;r=r.parentNode}return o},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===w&&(w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const o=e.createElement("div");o.style.boxSizing="content-box",o.style.height="150px",o.style.left="0px",o.style.overflow="hidden",o.style.position="absolute",o.style.top="0px",o.style.width="200px",o.style.visibility="hidden",o.appendChild(t),(e.body||e.documentElement).appendChild(o);const s=t.offsetWidth;o.style.overflow="scroll";let r=t.offsetWidth;s===r&&(r=o.clientWidth);return(e.body||e.documentElement).removeChild(o),s-r}(e));return w},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;return 0},t.getSelectionText=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const t=e.document;let o="";e.getSelection?o=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(o=t.selection.createRange().text);return o},t.getStyle=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===o)return"width"===t?`${o.innerWidth}px`:"height"===t?`${o.innerHeight}px`:void 0;const s=e.style[t];if(""!==s&&void 0!==s)return s;const r=o.getComputedStyle(e);if(""!==r[t]&&void 0!==r[t])return r[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,o=t.defaultView;let s=e.parentNode;for(;s&&s.style&&t.body!==s;){if("visible"!==s.style.overflow&&""!==s.style.overflow)return s;const e=o.getComputedStyle(s),t=["scroll","hidden","auto"],r=e.getPropertyValue("overflow"),n=e.getPropertyValue("overflow-y"),i=e.getPropertyValue("overflow-x");if(t.includes(r)||t.includes(n)||t.includes(i))return s;s=s.parentNode}return o},t.getWindowScrollLeft=m,t.getWindowScrollTop=p,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){if(void 0===e.classList||"string"!=typeof t||""===t)return!1;return e.classList.contains(t)},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.index=function(e){let t=0,o=e;if(o.previousSibling)for(;o=o.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){let o=e.parentNode,s=[];"string"==typeof t?s=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):s.push(t);for(;null!==o;){if(s.indexOf(o)>-1)return!0;o=o.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isInput=C,t.isOutsideInput=v,t.isThisHotChild=function(e,t){const o=e.closest(".handsontable");return!!o&&(o.parentNode===t||o===t)},t.isVisible=function e(t){const o=t.ownerDocument.documentElement,s=t.ownerDocument.defaultView;let r=t;for(;r!==o;){if(null===r)return!1;if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r.host){if(r.host.impl)return e(r.host.impl);if(r.host)return e(r.host);throw new Error("Lost in Web Components world")}return!1}if("none"===s.getComputedStyle(r).display)return!1;r=r.parentNode}return!0},t.makeElementContentEditableAndSelectItsContent=y,t.matchesCSSRules=function(e,t){const{selectorText:o}=t;let s=!1;t.type===CSSRule.STYLE_RULE&&o&&(e.msMatchesSelector?s=e.msMatchesSelector(o):e.matches&&(s=e.matches(o)));return s},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver(((o,s)=>{o.forEach((o=>{o.isIntersecting&&null!==e.offsetParent&&(t(),s.unobserve(e))}))}),{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){const t=e.ownerDocument,o=t.defaultView,s=t.documentElement;let r,n,i,l=e;r=l.offsetLeft,n=l.offsetTop,i=l;for(;(l=l.offsetParent)&&l!==t.body&&"offsetLeft"in l;)r+=l.offsetLeft,n+=l.offsetTop,i=l;i&&"fixed"===i.style.position&&(r+=o.pageXOffset||s.scrollLeft,n+=o.pageYOffset||s.scrollTop);return{left:r,top:n}},t.outerHeight=function(e){return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,o){const s=o.parentElement.querySelector(`.ht_clone_${e}`);return s?s.contains(t):null},t.removeAttribute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);const{regexFree:o,regexes:s}=a(t,!0);o.forEach((t=>{""!==t&&e.removeAttribute(t)})),s.forEach((t=>{e.getAttributeNames().forEach((o=>{t.test(o)&&e.removeAttribute(o)}))}))},t.removeClass=c,t.removeContentEditableFromElementAndDeselect=E,t.removeEvent=function(e,t,o){e.removeEventListener(t,o,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1){const o=t.childNodes;for(let t=o.length-1;t>=0;t--)e(o[t])}},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")},t.runWithSelectedContendEditableElement=function(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];y(e,o),t(),E(e,o)},t.selectElementIfAllowed=function(e){v(e.ownerDocument.activeElement)||e.select()},t.setAttribute=u,t.setCaretPosition=function(e,t,o){void 0===o&&(o=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,o)}catch(s){const r=e.parentNode,n=r.style.display;r.style.display="block",e.setSelectionRange(t,o),r.style.display=n}}},t.setOverlayPosition=function(e,t,o){e.style.transform=`translate3d(${t},${o},0)`},o(67834),o(15724),o(14846),o(27458),o(69655);var s=o(83414),r=o(45551);function n(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:s,DOCUMENT_FRAGMENT_NODE:r}=Node;let n=e;for(;null!=n&&n!==o;){const{nodeType:e,nodeName:o}=n;if(e===s&&(t.includes(o)||t.includes(n)))return n;const{host:i}=n;n=i&&e===r?i:n.parentNode}return null}function l(e){return e&&e.length?e.filter((e=>!!e)):[]}function a(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];const o=[],s=[];return s.push(...e.filter((e=>{const s=e instanceof RegExp;return s&&t&&o.push(e),!s}))),t?{regexFree:s,regexes:o}:s}function h(e,t){"string"==typeof t&&(t=t.split(" ")),(t=l(t)).length>0&&e.classList.add(...t)}function c(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:o,regexes:s}=a(t,!0);o=l(o),o.length>0&&e.classList.remove(...o),s.forEach((t=>{e.classList.forEach((o=>{t.test(o)&&e.classList.remove(o)}))}))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;Array.isArray(t)||(t=[[t,o]]),t.forEach((t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(...t)}))}function d(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const g=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/;function f(e,t){const o=e.firstChild;o&&3===o.nodeType&&null===o.nextSibling?o.textContent=t:(d(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function p(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function m(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}let w;function C(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function v(e){return C(e)&&!1===e.hasAttribute("data-hot-input")}function y(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=e.ownerDocument,n=s.createRange(),i=s.defaultView.getSelection();u(e,"contenteditable",!0),o&&u(e,...(0,r.A11Y_HIDDEN)()),t&&h(e,"invisibleSelection"),n.selectNodeContents(e),i.removeAllRanges(),i.addRange(n)}function E(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=e.ownerDocument.defaultView.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),o.removeAllRanges(),t&&c(e,"invisibleSelection"),e.removeAttribute("contenteditable")}},40892:(e,t)=>{"use strict";t.__esModule=!0,t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.isLeftClick=function(e){return 0===e.button},t.isRightClick=function(e){return 2===e.button},t.isTouchEvent=function(e){return e instanceof TouchEvent},t.offsetRelativeTo=function(e,t){const o={x:e.offsetX,y:e.offsetY};let s=e.target;if(!(t instanceof HTMLElement)||s!==t&&s.contains(t))return o;for(;s!==t;)o.x+=s.offsetLeft,o.y+=s.offsetTop,s=s.offsetParent;return o},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}},37725:(e,t)=>{"use strict";let o;t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o)return o;o="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1;return o},t.isCSR=function(){return"undefined"!=typeof window},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)}},77515:(e,t,o)=>{"use strict";t.__esModule=!0,t.curry=function(e){const t=e.length;return function o(s){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];const l=s.concat(n);let a;return a=l.length>=t?e.apply(this,l):o(l),a}}([])},t.curryRight=function(e){const t=e.length;return function o(s){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];const l=s.concat(n.reverse());let a;return a=l.length>=t?e.apply(this,l):o(l),a}}([])},t.debounce=function(e){let t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,s=null;return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return s&&clearTimeout(s),s=setTimeout((()=>{t=e.apply(this,n)}),o),t}},t.fastCall=function(e,t,o,s,n,i,l,a){if((0,r.isDefined)(a))return e.call(t,o,s,n,i,l,a);if((0,r.isDefined)(l))return e.call(t,o,s,n,i,l);if((0,r.isDefined)(i))return e.call(t,o,s,n,i);if((0,r.isDefined)(n))return e.call(t,o,s,n);if((0,r.isDefined)(s))return e.call(t,o,s);if((0,r.isDefined)(o))return e.call(t,o);return e.call(t)},t.isFunction=function(e){return"function"==typeof e},t.partial=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];return function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return e.apply(this,o.concat(s))}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[r,...n]=t;return function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return(0,s.arrayReduce)(n,((e,t)=>t(e)),r.apply(this,t))}},t.throttle=n,t.throttleAfterHits=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const s=n(e,t);let r=o;function i(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return r?(r-=1,e.apply(this,o)):s.apply(this,o)}return i.clearHits=function(){r=o},i};var s=o(47154),r=o(95768);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=0;const s={lastCallThrottled:!0};let r=null;return function(){for(var n=arguments.length,i=new Array(n),l=0;l<n;l++)i[l]=arguments[l];const a=Date.now();let h=!1;s.lastCallThrottled=!0,o||(o=a,h=!0);const c=t-(a-o);return h?(s.lastCallThrottled=!1,e.apply(this,i)):(r&&clearTimeout(r),r=setTimeout((()=>{s.lastCallThrottled=!1,e.apply(this,i),o=0,r=void 0}),c)),s}}},95768:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!l(e),s="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),n="0.0.0-next-211192a-20250114";let i,v="invalid",y="invalid";const E=function(e){let t=[][a],o=t;if(e[a]!==d("Z"))return!1;for(let t="",s="B<H4P+".split(""),r=d(s.shift());r;r=d(s.shift()||"A"))--r<""[a]?o|=(c(`${c(h(t)+(h(u(e,Math.abs(r),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=u(e,r,r?1===s[a]?9:8:6);return o===t}(e=g(e||""));if(o||s||E)if(E){const t=(0,r.default)("16/12/2024","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),s=f(e);i=(0,r.default)(864e5*(s+1),"x").format("MMMM DD, YYYY"),o>s?(v="expired",y="expired"):(v="valid",y="valid")}else s?(v="non_commercial",y="valid"):(v="invalid",y="invalid");else v="missing",y="missing";p()&&(v="valid",y="valid");if(!m&&"valid"!==v){w[v]({keyValidityDate:i,hotVersion:n})&&console["non_commercial"===v?"info":"warn"](w[v]({keyValidityDate:i,hotVersion:n})),m=!0}if("valid"!==y&&t.parentNode){if(C[y]({keyValidityDate:i,hotVersion:n})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=C[y]({keyValidityDate:i,hotVersion:n}),t.parentNode.insertBefore(e,t.nextSibling)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=l,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=i,t.stringify=function(e){let t;switch(typeof e){case"string":case"number":t=`${e}`;break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var r=s(o(86798)),n=o(20944);function i(e){return void 0===e}function l(e){return null===e||""===e||i(e)}const a="length",h=e=>parseInt(e,16),c=e=>parseInt(e,10),u=(e,t,o)=>e.substr(t,o),d=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),f=e=>h(u(g(e),h("12"),d("F")))/(h(u(g(e),d("B"),~~![][a]))||9),p=()=>"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host);let m=!1;const w={invalid:()=>n.toSingleLine`
|
38
38
|
The license key for Handsontable is invalid.\x20
|
39
39
|
If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:o}=e;return n.toSingleLine`
|
40
40
|
The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
|
@@ -64,7 +64,7 @@
|
|
64
64
|
* Description: Definition file for English - United States language-country.
|
65
65
|
*/}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n={languageCode:"en-US",[s.CONTEXTMENU_ITEMS_NO_ITEMS]:"No available options",[s.CONTEXTMENU_ITEMS_ROW_ABOVE]:"Insert row above",[s.CONTEXTMENU_ITEMS_ROW_BELOW]:"Insert row below",[s.CONTEXTMENU_ITEMS_INSERT_LEFT]:"Insert column left",[s.CONTEXTMENU_ITEMS_INSERT_RIGHT]:"Insert column right",[s.CONTEXTMENU_ITEMS_REMOVE_ROW]:["Remove row","Remove rows"],[s.CONTEXTMENU_ITEMS_REMOVE_COLUMN]:["Remove column","Remove columns"],[s.CONTEXTMENU_ITEMS_UNDO]:"Undo",[s.CONTEXTMENU_ITEMS_REDO]:"Redo",[s.CONTEXTMENU_ITEMS_READ_ONLY]:"Read only",[s.CONTEXTMENU_ITEMS_CLEAR_COLUMN]:"Clear column",[s.CONTEXTMENU_ITEMS_ALIGNMENT]:"Alignment",[s.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT]:"Left",[s.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER]:"Center",[s.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT]:"Right",[s.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY]:"Justify",[s.CONTEXTMENU_ITEMS_ALIGNMENT_TOP]:"Top",[s.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE]:"Middle",[s.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM]:"Bottom",[s.CONTEXTMENU_ITEMS_FREEZE_COLUMN]:"Freeze column",[s.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN]:"Unfreeze column",[s.CONTEXTMENU_ITEMS_BORDERS]:"Borders",[s.CONTEXTMENU_ITEMS_BORDERS_TOP]:"Top",[s.CONTEXTMENU_ITEMS_BORDERS_RIGHT]:"Right",[s.CONTEXTMENU_ITEMS_BORDERS_BOTTOM]:"Bottom",[s.CONTEXTMENU_ITEMS_BORDERS_LEFT]:"Left",[s.CONTEXTMENU_ITEMS_REMOVE_BORDERS]:"Remove border(s)",[s.CONTEXTMENU_ITEMS_ADD_COMMENT]:"Add comment",[s.CONTEXTMENU_ITEMS_EDIT_COMMENT]:"Edit comment",[s.CONTEXTMENU_ITEMS_REMOVE_COMMENT]:"Delete comment",[s.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT]:"Read-only comment",[s.CONTEXTMENU_ITEMS_MERGE_CELLS]:"Merge cells",[s.CONTEXTMENU_ITEMS_UNMERGE_CELLS]:"Unmerge cells",[s.CONTEXTMENU_ITEMS_COPY]:"Copy",[s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS]:["Copy with header","Copy with headers"],[s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS]:["Copy with group header","Copy with group headers"],[s.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY]:["Copy header only","Copy headers only"],[s.CONTEXTMENU_ITEMS_CUT]:"Cut",[s.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD]:"Insert child row",[s.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD]:"Detach from parent",[s.CONTEXTMENU_ITEMS_HIDE_COLUMN]:["Hide column","Hide columns"],[s.CONTEXTMENU_ITEMS_SHOW_COLUMN]:["Show column","Show columns"],[s.CONTEXTMENU_ITEMS_HIDE_ROW]:["Hide row","Hide rows"],[s.CONTEXTMENU_ITEMS_SHOW_ROW]:["Show row","Show rows"],[s.FILTERS_CONDITIONS_NONE]:"None",[s.FILTERS_CONDITIONS_EMPTY]:"Is empty",[s.FILTERS_CONDITIONS_NOT_EMPTY]:"Is not empty",[s.FILTERS_CONDITIONS_EQUAL]:"Is equal to",[s.FILTERS_CONDITIONS_NOT_EQUAL]:"Is not equal to",[s.FILTERS_CONDITIONS_BEGINS_WITH]:"Begins with",[s.FILTERS_CONDITIONS_ENDS_WITH]:"Ends with",[s.FILTERS_CONDITIONS_CONTAINS]:"Contains",[s.FILTERS_CONDITIONS_NOT_CONTAIN]:"Does not contain",[s.FILTERS_CONDITIONS_GREATER_THAN]:"Greater than",[s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL]:"Greater than or equal to",[s.FILTERS_CONDITIONS_LESS_THAN]:"Less than",[s.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL]:"Less than or equal to",[s.FILTERS_CONDITIONS_BETWEEN]:"Is between",[s.FILTERS_CONDITIONS_NOT_BETWEEN]:"Is not between",[s.FILTERS_CONDITIONS_AFTER]:"After",[s.FILTERS_CONDITIONS_BEFORE]:"Before",[s.FILTERS_CONDITIONS_TODAY]:"Today",[s.FILTERS_CONDITIONS_TOMORROW]:"Tomorrow",[s.FILTERS_CONDITIONS_YESTERDAY]:"Yesterday",[s.FILTERS_VALUES_BLANK_CELLS]:"Blank cells",[s.FILTERS_DIVS_FILTER_BY_CONDITION]:"Filter by condition",[s.FILTERS_DIVS_FILTER_BY_VALUE]:"Filter by value",[s.FILTERS_LABELS_CONJUNCTION]:"And",[s.FILTERS_LABELS_DISJUNCTION]:"Or",[s.FILTERS_BUTTONS_SELECT_ALL]:"Select all",[s.FILTERS_BUTTONS_CLEAR]:"Clear",[s.FILTERS_BUTTONS_OK]:"OK",[s.FILTERS_BUTTONS_CANCEL]:"Cancel",[s.FILTERS_BUTTONS_PLACEHOLDER_SEARCH]:"Search",[s.FILTERS_BUTTONS_PLACEHOLDER_VALUE]:"Value",[s.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]:"Second value",[s.CHECKBOX_CHECKED]:"Checked",[s.CHECKBOX_UNCHECKED]:"Unchecked"};t.default=n},20417:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=a;var r=s(o(29328)),n=s(o(77121));const{register:i,getValues:l}=(0,r.default)("phraseFormatters");function a(e,t){i(e,t)}a("pluralize",n.default)},77121:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e}},84435:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.getDefaultLanguageDictionary=function(){return c.default},t.getLanguageDictionary=v,t.getLanguagesDictionaries=function(){return w()},t.getTranslatedPhrase=function(e,t,o){const s=v(e);if(null===s)return null;const r=s[t];if((0,i.isUndefined)(r))return null;const l=function(e,t){let o=e;return(0,n.arrayEach)((0,h.getPhraseFormatters)(),(s=>{o=s(e,t)})),o}(r,o);if(Array.isArray(l))return l[0];return l},t.getValidLanguageCode=function(e){let t=(0,l.normalizeLanguageCode)(e);y(t)||(t=g,(0,l.warnUserAboutLanguageRegistration)(e));return t},t.hasLanguageDictionary=y,t.registerLanguageDictionary=C;var r=o(95016),n=o(47154),i=o(95768),l=o(20115),a=s(o(29328)),h=o(20417),c=s(o(32932)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=d(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(d=function(e){return e?o:t})(e)}t.dictionaryKeys=u;const g=t.DEFAULT_LANGUAGE_CODE=c.default.languageCode,{register:f,getItem:p,hasItem:m,getValues:w}=(0,a.default)("languagesDictionaries");function C(e,t){let o=e,s=t;return(0,r.isObject)(e)&&(s=e,o=s.languageCode),function(e,t){e!==g&&(0,l.extendNotExistingKeys)(t,p(g))}(o,s),f(o,(0,r.deepClone)(s)),(0,r.deepClone)(s)}function v(e){return y(e)?(0,r.deepClone)(p(e)):null}function y(e){return m(e)}C(c.default)},20115:(e,t,o)=>{"use strict";t.__esModule=!0,t.createCellHeadersRange=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,[r,n]=[o,s];e>t&&([r,n]=[n,r]);return`${r}-${n}`},t.extendNotExistingKeys=function(e,t){return(0,r.objectEach)(t,((t,o)=>{(0,s.isUndefined)(e[o])&&(e[o]=t)})),e},t.normalizeLanguageCode=function(e){const t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);if(t)return`${t[1].toLowerCase()}-${t[2].toUpperCase()}`;return e},t.warnUserAboutLanguageRegistration=function(e){(0,s.isDefined)(e)&&(0,n.error)(i.toSingleLine`Language with code "${e}" was not found. You should register particular language\x20
|
66
66
|
before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)};var s=o(95768),r=o(95016),n=o(59350),i=o(20944)},30933:(e,t,o)=>{"use strict";t.__esModule=!0,o(15724);var s=o(47154),r=o(95016);const n={_hooksStorage:Object.create(null),addHook(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey(e){(0,s.arrayEach)(this._hooksStorage[e]||[],(t=>{this.hot.removeHook(e,t)}))},clearHooks(){(0,r.objectEach)(this._hooksStorage,((e,t)=>this.removeHooksByKey(t))),this._hooksStorage={}}};(0,r.defineGetter)(n,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});t.default=n},32943:(e,t,o)=>{"use strict";t.__esModule=!0,o(15724);var s=o(95016),r=o(77515);const n={_localHooks:Object.create(null),addLocalHook(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},runLocalHooks(e,t,o,s,n,i,l){if(this._localHooks[e]){const a=this._localHooks[e].length;for(let h=0;h<a;h++)(0,r.fastCall)(this._localHooks[e][h],this,t,o,s,n,i,l)}},clearLocalHooks(){return this._localHooks={},this}};(0,s.defineGetter)(n,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});t.default=n},14967:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(27458),o(69655),o(90458);var r=s(o(85707)),n=o(9458),i=o(37725),l=s(o(81838)),a=o(29398),h=o(95016),c=o(36926),u=s(o(70907)),d=o(83414),g=o(7749),f=o(57466);function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(v(e,t))}function C(e,t,o){return e.set(v(e,t),o),o}function v(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")}a.Hooks.getSingleton().register("modifyAutoColumnSizeSeed");const y=t.PLUGIN_KEY="autoColumnSize",E=t.PLUGIN_PRIORITY=10;var S=new WeakMap,R=new WeakMap,b=new WeakSet;class _ extends n.BasePlugin{static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return E}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 50}constructor(e){var t,o;super(e),m(t=this,o=b),o.add(t),(0,r.default)(this,"ghostTable",new l.default(this.hot)),(0,r.default)(this,"samplesGenerator",new u.default(((e,t)=>{const o=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(o)||this.hot.columnIndexMapper.isHidden(s))return!1;const r=this.hot.getCellMeta(e,t);let n="";r.spanned||(n=this.hot.getDataAtCell(e,t));let i="";return this.hot.hasHook("modifyAutoColumnSizeSeed")&&(i=this.hot.runHooks("modifyAutoColumnSizeSeed",i,r,n)),{value:n,bundleSeed:i}}))),(0,r.default)(this,"inProgress",!1),(0,r.default)(this,"measuredColumns",0),(0,r.default)(this,"columnWidthsMap",new f.PhysicalIndexToValueMap),p(this,S,[]),p(this,R,[]),this.hot.columnIndexMapper.registerMap("autoColumnSize",this.columnWidthsMap),this.addHook("beforeColumnResize",((e,t,o)=>v(b,this,N).call(this,e,t,o)))}isEnabled(){return!1!==this.hot.getSettings()[y]&&!this.hot.getSettings().colWidths}enablePlugin(){var e=this;if(this.enabled)return;this.ghostTable.setSetting("useHeaders",this.getSetting("useHeaders")),this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(b,e,O).call(e,...o)})),this.addHook("beforeChangeRender",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(b,e,I).call(e,...o)})),this.addHook("afterFormulasValuesUpdate",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(b,e,P).call(e,...o)})),this.addHook("beforeRender",(()=>v(b,this,M).call(this))),this.addHook("modifyColWidth",((e,t)=>this.getColumnWidth(t,e))),this.addHook("init",(()=>v(b,this,A).call(this))),super.enablePlugin()}updatePlugin(){C(R,this,this.findColumnsWhereHeaderWasChanged()),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.addHook("beforeColumnResize",((e,t,o)=>v(b,this,N).call(this,e,t,o)))}calculateVisibleColumnsWidth(){if(!this.hot.countRows())return;const e=this.getFirstVisibleColumn(),t=this.getLastVisibleColumn();if(-1===e||-1===t)return;const o=this.hot.renderCall;this.calculateColumnsWidth({from:e,to:t},void 0,o)}calculateColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s="number"==typeof e?{from:e,to:e}:e,r="number"==typeof t?{from:t,to:t}:t;(0,c.rangeEach)(s.from,s.to,(e=>{let t=this.hot.toPhysicalColumn(e);if(null===t&&(t=e),o||null===this.columnWidthsMap.getValueAtIndex(t)&&!this.hot._getColWidthFromSettings(t)){this.samplesGenerator.generateColumnSamples(e,r).forEach(((e,t)=>this.ghostTable.addColumn(t,e)))}})),this.ghostTable.columns.length&&(this.hot.batchExecution((()=>{this.ghostTable.getWidths(((e,t)=>{const o=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(o,t)}))}),!0),this.measuredColumns=s.to+1,this.ghostTable.clean())}calculateAllColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=0;const s=this.hot.countCols()-1;let r=null;this.inProgress=!0;const n=()=>{if(!this.hot)return(0,i.cancelAnimationFrame)(r),void(this.inProgress=!1);this.calculateColumnsWidth({from:o,to:Math.min(o+_.CALCULATION_STEP,s)},e,t),o=o+_.CALCULATION_STEP+1,o<s?r=(0,i.requestAnimationFrame)(n):((0,i.cancelAnimationFrame)(r),this.inProgress=!1,this.hot.view.adjustElementsSize())},l=this.getSyncCalculationLimit();l>=0&&(this.calculateColumnsWidth({from:0,to:l},e,t),o=l+1),o<s?n():this.inProgress=!1}recalculateAllColumnsWidth(){this.hot.view.isVisible()&&this.calculateAllColumnsWidth({from:0,to:this.hot.countRows()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[y];let t=_.SYNC_CALCULATION_LIMIT;const o=this.hot.countCols()-1;return(0,h.isObject)(e)&&(t=e.syncLimit,(0,d.isPercentValue)(t)?t=(0,c.valueAccordingPercent)(o,t):t>>=0),Math.min(t,o)}getColumnWidth(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=t;return void 0===s&&(s=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),o&&"number"==typeof s&&(s=Math.max(s,g.DEFAULT_COLUMN_WIDTH))),s}getFirstVisibleColumn(){var e;return null!==(e=this.hot.getFirstRenderedVisibleColumn())&&void 0!==e?e:-1}getLastVisibleColumn(){var e;return null!==(e=this.hot.getLastRenderedVisibleColumn())&&void 0!==e?e:-1}findColumnsWhereHeaderWasChanged(){return this.hot.getColHeader().reduce(((e,t,o)=>{const s=w(S,this).length;return(s-1<o||w(S,this)[o]!==t)&&e.push(this.hot.toVisualColumn(o)),s-1<o?w(S,this).push(t):w(S,this)[o]=t,e}),[])}clearCache(e){Array.isArray(e)?this.hot.batchExecution((()=>{e.forEach((e=>{this.columnWidthsMap.setValueAtIndex(e,null)}))}),!0):this.columnWidthsMap.clear()}isNeedRecalculate(){return!!this.columnWidthsMap.getValues().slice(0,this.measuredColumns).filter((e=>null===e)).length}destroy(){this.ghostTable.clean(),super.destroy()}}function T(e){const t={from:0,to:this.hot.countRows()-1};e.forEach((e=>{const o=this.hot.toPhysicalColumn(e);if(null!==o&&!this.hot._getColWidthFromSettings(o)){this.samplesGenerator.generateColumnSamples(e,t).forEach(((e,t)=>this.ghostTable.addColumn(t,e)))}})),this.ghostTable.columns.length&&(this.hot.batchExecution((()=>{this.ghostTable.getWidths(((e,t)=>{const o=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(o,t)}))}),!0),this.ghostTable.clean())}function M(){this.calculateVisibleColumnsWidth(),this.inProgress||(v(b,this,T).call(this,w(R,this)),C(R,this,[]))}function O(e,t){t||this.recalculateAllColumnsWidth()}function I(e){const t=e.reduce(((e,t)=>{let[,o]=t;const s=this.hot.propToCol(o);return Number.isInteger(s)&&-1===e.indexOf(s)&&e.push(s),e}),[]);w(R,this).push(...t)}function N(e,t,o){let s=e;return o&&(this.calculateColumnsWidth(t,void 0,!0),s=this.getColumnWidth(t,void 0,!1)),s}function A(){C(S,this,this.hot.getColHeader()),this.recalculateAllColumnsWidth()}function P(e){const t=e.reduce(((e,t)=>{var o;const s=null===(o=t.address)||void 0===o?void 0:o.col;if(Number.isInteger(s)){const t=this.hot.toVisualColumn(s);-1===e.indexOf(t)&&e.push(t)}return e}),[]);w(R,this).push(...t)}t.AutoColumnSize=_},8055:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(14967);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.AutoColumnSize=s.AutoColumnSize},89817:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(27458),o(69655),o(90458);var r=s(o(85707)),n=o(9458),i=o(37725),l=s(o(81838)),a=o(95016),h=o(36926),c=s(o(70907)),u=o(83414),d=o(57466);function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(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")}const m=t.PLUGIN_KEY="autoRowSize",w=t.PLUGIN_PRIORITY=40;var C=new WeakMap,v=new WeakSet;class y extends n.BasePlugin{static get PLUGIN_KEY(){return m}static get PLUGIN_PRIORITY(){return w}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 500}constructor(e){var t,o;super(e),g(t=this,o=v),o.add(t),(0,r.default)(this,"headerHeight",null),(0,r.default)(this,"ghostTable",new l.default(this.hot)),(0,r.default)(this,"samplesGenerator",new c.default(((e,t)=>{const o=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(o)||this.hot.columnIndexMapper.isHidden(s))return!1;if(e>=0&&t>=0){if(this.hot.getCellMeta(e,t).hidden)return!1}let r;return e>=0?r=this.hot.getDataAtCell(e,t):-1===e&&(r=this.hot.getColHeader(t)),{value:r}}))),(0,r.default)(this,"inProgress",!1),(0,r.default)(this,"measuredRows",0),(0,r.default)(this,"rowHeightsMap",new d.PhysicalIndexToValueMap),function(e,t,o){g(e,t),t.set(e,o)}(this,C,[]),this.hot.rowIndexMapper.registerMap("autoRowSize",this.rowHeightsMap),this.addHook("beforeRowResize",((e,t,o)=>p(v,this,R).call(this,e,t,o)))}isEnabled(){const e=this.hot.getSettings()[m];return!0===e||(0,a.isObject)(e)}enablePlugin(){var e=this;if(this.enabled)return;this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return p(v,e,b).call(e,...o)})),this.addHook("beforeChangeRender",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return p(v,e,_).call(e,...o)})),this.addHook("beforeColumnResize",(()=>this.recalculateAllRowsHeight())),this.addHook("afterFormulasValuesUpdate",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return p(v,e,M).call(e,...o)})),this.addHook("beforeRender",(()=>p(v,this,S).call(this))),this.addHook("modifyRowHeight",((e,t)=>this.getRowHeight(t,e))),this.addHook("init",(()=>p(v,this,T).call(this))),this.addHook("modifyColumnHeaderHeight",(()=>this.getColumnHeaderHeight())),super.enablePlugin()}disablePlugin(){this.headerHeight=null,super.disablePlugin(),this.addHook("beforeRowResize",((e,t,o)=>p(v,this,R).call(this,e,t,o)))}calculateVisibleRowsHeight(){if(!this.hot.countCols())return;const e=this.getFirstVisibleRow(),t=this.getLastVisibleRow();if(-1===e||-1===t)return;const o=this.hot.renderCall;this.calculateRowsHeight({from:e,to:t},void 0,o)}calculateRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s="number"==typeof e?{from:e,to:e}:e,r="number"==typeof t?{from:t,to:t}:t;if(null!==this.hot.getColHeader(0)){const e=this.samplesGenerator.generateRowSamples(-1,r);this.ghostTable.addColumnHeadersRow(e.get(-1))}(0,h.rangeEach)(s.from,s.to,(e=>{let t=this.hot.toPhysicalRow(e);if(null===t&&(t=e),o||null===this.rowHeightsMap.getValueAtIndex(t)){this.samplesGenerator.generateRowSamples(e,r).forEach(((e,t)=>this.ghostTable.addRow(t,e)))}})),this.ghostTable.rows.length&&(this.hot.batchExecution((()=>{this.ghostTable.getHeights(((e,t)=>{e<0?this.headerHeight=t:this.rowHeightsMap.setValueAtIndex(this.hot.toPhysicalRow(e),t)}))}),!0),this.measuredRows=s.to+1,this.ghostTable.clean())}calculateAllRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=0;const s=this.hot.countRows()-1;let r=null;this.inProgress=!0;const n=()=>{if(!this.hot)return(0,i.cancelAnimationFrame)(r),void(this.inProgress=!1);this.calculateRowsHeight({from:o,to:Math.min(o+y.CALCULATION_STEP,s)},e,t),o=o+y.CALCULATION_STEP+1,o<s?r=(0,i.requestAnimationFrame)(n):((0,i.cancelAnimationFrame)(r),this.inProgress=!1,this.hot.view.adjustElementsSize(),this.hot.view._wt.wtOverlays.inlineStartOverlay.needFullRender&&this.hot.view._wt.wtOverlays.inlineStartOverlay.clone.draw())},l=this.getSyncCalculationLimit();l>=0&&(this.calculateRowsHeight({from:0,to:l},e,t),o=l+1),o<s?n():(this.inProgress=!1,this.hot.view.adjustElementsSize())}recalculateAllRowsHeight(){this.hot.view.isVisible()&&this.calculateAllRowsHeight({from:0,to:this.hot.countCols()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[m];let t=y.SYNC_CALCULATION_LIMIT;const o=this.hot.countRows()-1;return(0,a.isObject)(e)&&(t=e.syncLimit,(0,u.isPercentValue)(t)?t=(0,h.valueAccordingPercent)(o,t):t>>=0),Math.min(t,o)}getRowHeight(e,t){const o=e<0?this.headerHeight:this.rowHeightsMap.getValueAtIndex(this.hot.toPhysicalRow(e));let s=t;return null!==o&&o>(t||0)&&(s=o),s}getColumnHeaderHeight(){return this.headerHeight}getFirstVisibleRow(){var e;return null!==(e=this.hot.getFirstRenderedVisibleRow())&&void 0!==e?e:-1}getLastVisibleRow(){var e;return null!==(e=this.hot.getLastRenderedVisibleRow())&&void 0!==e?e:-1}clearCache(e){this.headerHeight=null,Array.isArray(e)?this.hot.batchExecution((()=>{e.forEach((e=>{this.rowHeightsMap.setValueAtIndex(e,null)}))}),!0):this.rowHeightsMap.clear()}clearCacheByRange(e){const{from:t,to:o}="number"==typeof e?{from:e,to:e}:e;this.hot.batchExecution((()=>{(0,h.rangeEach)(Math.min(t,o),Math.max(t,o),(e=>{this.rowHeightsMap.setValueAtIndex(e,null)}))}),!0)}isNeedRecalculate(){return!!this.rowHeightsMap.getValues().slice(0,this.measuredRows).filter((e=>null===e)).length}destroy(){this.ghostTable.clean(),super.destroy()}}function E(e){const t={from:0,to:this.hot.countCols()-1};e.forEach((e=>{this.samplesGenerator.generateRowSamples(e,t).forEach(((e,t)=>this.ghostTable.addRow(t,e)))})),this.ghostTable.rows.length&&(this.hot.batchExecution((()=>{this.ghostTable.getHeights(((e,t)=>{const o=this.hot.toPhysicalRow(e);this.rowHeightsMap.setValueAtIndex(o,t)}))}),!0),this.ghostTable.clean())}function S(){var e,t,o;this.calculateVisibleRowsHeight(),this.inProgress||(p(v,this,E).call(this,f(C,this)),t=this,o=[],(e=C).set(p(e,t),o))}function R(e,t,o){let s=e;return o&&(this.calculateRowsHeight(t,void 0,!0),s=this.getRowHeight(t)),s}function b(e,t){t||this.recalculateAllRowsHeight()}function _(e){const t=e.reduce(((e,t)=>{let[o]=t;return-1===e.indexOf(o)&&e.push(o),e}),[]);f(C,this).push(...t)}function T(){this.recalculateAllRowsHeight()}function M(e){const t=e.reduce(((e,t)=>{var o;const s=null===(o=t.address)||void 0===o?void 0:o.row;if(Number.isInteger(s)){const t=this.hot.toVisualRow(s);-1===e.indexOf(t)&&e.push(t)}return e}),[]);f(C,this).push(...t)}t.AutoRowSize=y},20133:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(89817);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.AutoRowSize=s.AutoRowSize},37268:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(9458),i=o(29398),l=o(94916),a=o(47154),h=o(95768),c=o(53764);function u(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function d(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")}i.Hooks.getSingleton().register("modifyAutofillRange"),i.Hooks.getSingleton().register("beforeAutofill"),i.Hooks.getSingleton().register("afterAutofill");const g=t.PLUGIN_KEY="autofill",f=t.PLUGIN_PRIORITY=20,p=["fillHandle"];var m=new WeakSet;class w extends n.BasePlugin{constructor(){super(...arguments),u(this,m),(0,r.default)(this,"addingStarted",!1),(0,r.default)(this,"mouseDownOnCellCorner",!1),(0,r.default)(this,"mouseDragOutside",!1),(0,r.default)(this,"handleDraggedCells",0),(0,r.default)(this,"directions",[]),(0,r.default)(this,"autoInsertRow",!1)}static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return f}static get SETTING_KEYS(){return[g,...p]}isEnabled(){return this.hot.getSettings().fillHandle}enablePlugin(){this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",(e=>d(m,this,v).call(this,e))),this.addHook("afterOnCellCornerDblClick",(e=>d(m,this,C).call(this,e))),this.addHook("beforeOnCellMouseOver",((e,t)=>d(m,this,y).call(this,t))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.clearMappedSettings(),super.disablePlugin()}getSelectionData(){const e=this.hot.getSelectedRangeLast(),{row:t,col:o}=e.getTopStartCorner(),{row:s,col:r}=e.getBottomEndCorner(),n=this.hot.runHooks("modifyCopyableRange",[{startRow:t,startCol:o,endRow:s,endCol:r}]),i=[],l=[],h=[];return(0,a.arrayEach)(n,(e=>{for(let t=e.startRow;t<=e.endRow;t+=1)-1===i.indexOf(t)&&i.push(t);for(let t=e.startCol;t<=e.endCol;t+=1)-1===l.indexOf(t)&&l.push(t)})),(0,a.arrayEach)(i,(e=>{const t=[];(0,a.arrayEach)(l,(o=>{t.push(this.hot.getCopyableData(e,o))})),h.push(t)})),h}fillIn(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;const[e,t,o,s]=this.hot.selection.highlight.getFill().getVisualCorners(),r=this.hot.getSelectedRangeLast(),n=r.getTopStartCorner(),i=r.getBottomEndCorner();this.resetSelectionOfDraggedArea();const l=[n.row,n.col,i.row,i.col],a=this.hot.runHooks("modifyAutofillRange",[Math.min(n.row,e),Math.min(n.col,t),Math.max(i.row,o),Math.max(i.col,s)],l),{directionOfDrag:h,startOfDragCoords:u,endOfDragCoords:d}=(0,c.getDragDirectionAndRange)(l,a,((e,t)=>this.hot._createCellCoords(e,t)));if(u&&u.row>-1&&u.col>-1){const e=this.getSelectionData(),t=r.clone(),o=this.hot._createCellRange(u,u,d),s=this.hot.runHooks("beforeAutofill",e,t,o,h);if(!1===s)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;let n=s;const i=s;if(["up","left"].indexOf(h)>-1&&(1!==i.length||0!==i[0].length))if(n=[],"up"===h){const e=d.row-u.row+1,t=e%i.length;for(let o=0;o<e;o++)n.push(i[(o+(i.length-t))%i.length])}else{const e=d.col-u.col+1,t=e%i[0].length;for(let o=0;o<i.length;o++){n.push([]);for(let s=0;s<e;s++)n[o].push(i[o][(s+(i[o].length-t))%i[o].length])}}this.hot.populateFromArray(u.row,u.col,n,d.row,d.col,`${this.pluginName}.fill`,null),this.setSelection(a),this.hot.runHooks("afterAutofill",n,t,o,h),this.hot.render()}else this.hot.view.render();return!0}reduceSelectionAreaIfNeeded(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}getCoordsOfDragAndDropBorders(e){const t=this.hot.getSelectedRangeLast(),o=t.getBottomEndCorner();let s=e;if(this.directions.includes(c.DIRECTIONS.vertical)&&this.directions.includes(c.DIRECTIONS.horizontal)){const r=t.getTopStartCorner();(o.col<=e.col||r.col>=e.col)&&(s=this.hot._createCellCoords(o.row,e.col)),(o.row<e.row||r.row>e.row)&&(s=this.hot._createCellCoords(e.row,o.col))}else if(this.directions.includes(c.DIRECTIONS.vertical))s=this.hot._createCellCoords(e.row,o.col);else{if(!this.directions.includes(c.DIRECTIONS.horizontal))return;s=this.hot._createCellCoords(o.row,e.col)}return this.reduceSelectionAreaIfNeeded(s)}showBorder(e){const t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}addRow(){this.hot._registerTimeout((()=>{this.hot.alter("insert_row_below",void 0,1,`${this.pluginName}.fill`),this.addingStarted=!1}),200)}addNewRowIfNeeded(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){const e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),o=this.hot.countRows();e[2]<o-1&&t[2]===o-1&&(this.addingStarted=!0,this.addRow())}}getIndexOfLastAdjacentFilledInRow(e){const t=this.hot.getData(),o=this.hot.countRows();let s;for(let r=e[2]+1;r<o;r++){for(let o=e[1];o<=e[3];o++){const e=t[r][o];if(!(0,h.isEmpty)(e))return-1}const o=t[r][e[1]-1],n=t[r][e[3]+1];(0,h.isEmpty)(o)&&(0,h.isEmpty)(n)||(s=r)}return s}addSelectionFromStartAreaToSpecificRowIndex(e,t){this.hot.selection.highlight.getFill().clear().add(this.hot._createCellCoords(e[0],e[1])).add(this.hot._createCellCoords(t,e[3])).commit()}setSelection(e){this.hot.selectCell(...(0,a.arrayMap)(e,(e=>Math.max(e,0))),!1,!1)}selectAdjacent(){const e=this.hot.getSelectedLast(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}resetSelectionOfDraggedArea(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}redrawBorders(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e).commit(),this.hot.view.render()}getIfMouseWasDraggedOutside(e){const{documentElement:t}=this.hot.rootDocument,o=(0,l.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,l.outerHeight)(this.hot.table),s=(0,l.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,l.outerWidth)(this.hot.table);return e.clientY>o&&e.clientX<=s}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mouseup",(()=>d(m,this,E).call(this))),this.eventManager.addEventListener(e,"mousemove",(e=>d(m,this,S).call(this,e)))}clearMappedSettings(){this.directions.length=0,this.autoInsertRow=!1}mapSettings(){const e=(0,c.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}destroy(){super.destroy()}}function C(){this.selectAdjacent()&&this.fillIn()}function v(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}function y(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}function E(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}function S(e){const t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}t.Autofill=w},12745:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(37268);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.Autofill=s.Autofill},53764:(e,t,o)=>{"use strict";t.__esModule=!0,t.getDragDirectionAndRange=function(e,t,o){let s,r,n;t[0]===e[0]&&t[1]<e[1]?(n="left",s=o(t[0],t[1]),r=o(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(n="right",s=o(t[0],e[3]+1),r=o(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(n="up",s=o(t[0],t[1]),r=o(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(n="down",s=o(e[2]+1,t[1]),r=o(t[2],t[3]));s&&s.normalize();r&&r.normalize();return{directionOfDrag:n,startOfDragCoords:s,endOfDragCoords:r}},t.getMappedFillHandleSetting=function(e){const t={};!0===e?(t.directions=Object.keys(n),t.autoInsertRow=!0):(0,s.isObject)(e)?((0,r.isDefined)(e.autoInsertRow)?e.direction===n.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,r.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(n)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1);return t};var s=o(95016),r=o(95768);const n=t.DIRECTIONS={horizontal:"horizontal",vertical:"vertical"}},43793:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(69655);var r=s(o(85707)),n=o(95016),i=o(47154),l=o(42427),a=o(39548),h=o(45973),c=o(58151),u=o(57006),d=s(o(12370));function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(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")}const m=new Map([["plugin",l.hasPlugin],["cell-type",a.hasCellType],["editor",h.hasEditor],["renderer",c.hasRenderer],["validator",u.hasValidator]]),w=t.defaultMainSettingSymbol=Symbol("mainSetting"),C=t.PLUGIN_KEY="base",v=[];let y=null;var E=new WeakMap,S=new WeakSet;function R(e){if(!e)return!1;const t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(let o=0;o<t.length;o++)if(void 0!==e[t[o]])return!0;return!1}t.BasePlugin=class{static get PLUGIN_KEY(){return C}static get SETTING_KEYS(){return[this.PLUGIN_KEY]}static get DEFAULT_SETTINGS(){return{}}constructor(e){var t,o;g(t=this,o=S),o.add(t),(0,r.default)(this,"eventManager",new d.default(this)),(0,r.default)(this,"pluginName",null),(0,r.default)(this,"pluginsInitializedCallbacks",[]),(0,r.default)(this,"isPluginsReady",!1),(0,r.default)(this,"enabled",!1),(0,r.default)(this,"initialized",!1),function(e,t,o){g(e,t),t.set(e,o)}(this,E,{}),(0,n.defineGetter)(this,"hot",e,{writable:!1}),y=null,this.hot.addHook("afterPluginsInitialized",(()=>this.onAfterPluginsInitialized())),this.hot.addHook("afterUpdateSettings",(e=>this.onUpdateSettings(e))),this.hot.addHook("beforeInit",(()=>this.init()))}init(){this.pluginName=this.hot.getPluginName(this);const e=this.constructor.PLUGIN_DEPS,t=Array.isArray(e)?e:[];if(t.length>0){const e=[];if(t.forEach((t=>{const[o,s]=t.split(":");if(!m.has(o))throw new Error(`Unknown plugin dependency type "${o}" was found.`);m.get(o)(s)||e.push(` - ${s} (${o})`)})),e.length>0){const t=[`The ${this.pluginName} plugin requires the following modules:\n`,`${e.join("\n")}\n`].join("");v.push(t)}}y||(y=(0,l.getPluginsNames)()),y.indexOf(this.pluginName)>=0&&y.splice(y.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",(()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()}));if(0===y.length){if(v.length>0){const e=[`${v.join("\n")}\n`,"You have to import and register them manually."].join("");throw v.length=0,new Error(e)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}enablePlugin(){this.enabled=!0}disablePlugin(){var e;null===(e=this.eventManager)||void 0===e||e.clear(),this.clearHooks(),this.enabled=!1}getSetting(e){const t=this.hot.getSettings()[this.constructor.PLUGIN_KEY];if(void 0===e)return t;const o=this.constructor.DEFAULT_SETTINGS;var s,r;return(Array.isArray(t)||(0,n.isObject)(t))&&o[w]===e?Array.isArray(t)?t:null!==(s=t[e])&&void 0!==s?s:o[e]:(0,n.isObject)(t)&&null!==(r=t[e])&&void 0!==r?r:o[e]}addHook(e,t,o){f(E,this)[e]=f(E,this)[e]||[];const s=f(E,this)[e];this.hot.addHook(e,t,o),s.push(t),f(E,this)[e]=s}removeHooks(e){(0,i.arrayEach)(f(E,this)[e]||[],(t=>{this.hot.removeHook(e,t)}))}clearHooks(){const e=f(E,this);(0,n.objectEach)(e,((e,t)=>this.removeHooks(t))),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){(0,i.arrayEach)(this.pluginsInitializedCallbacks,(e=>e())),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const t=p(S,this,R).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&this.updatePlugin(e))}updatePlugin(){}destroy(){var e;null===(e=this.eventManager)||void 0===e||e.destroy(),this.clearHooks(),(0,n.objectEach)(this,((e,t)=>{"hot"!==t&&(this[t]=null)})),delete this.t,delete this.hot}}},9458:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(43793);t.PLUGIN_KEY=s.PLUGIN_KEY,t.BasePlugin=s.BasePlugin,t.defaultMainSettingSymbol=s.defaultMainSettingSymbol},39761:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(9458),i=s(o(5925)),l=s(o(61678));function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="bindRowsWithHeaders",c=t.PLUGIN_PRIORITY=210,u=new Map([["loose",i.default],["strict",l.default]]);var d=new WeakSet;class g extends n.BasePlugin{constructor(){super(...arguments),a(this,d),(0,r.default)(this,"headerIndexes",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){var e;if(this.enabled)return;const t=null!==(e=u.get(this.getSetting()))&&void 0!==e?e:u.get("loose");this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new t),this.addHook("modifyRowHeader",(e=>function(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")}(d,this,f).call(this,e))),super.enablePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),super.disablePlugin()}destroy(){super.destroy()}}function f(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}t.BindRowsWithHeaders=g},25977:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(39761);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.BindRowsWithHeaders=s.BindRowsWithHeaders},5925:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(57466);const{getListWithInsertedItems:r,getListWithRemovedItems:n}=(0,s.alterUtilsFactory)("physicallyIndexed");class i extends s.IndexMap{constructor(){super((e=>e))}insert(e,t){const o=(0,s.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=r(o,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){const t=n(this.indexedValues,e);this.indexedValues=(0,s.getDecreasedIndexes)(t,e),super.remove(e)}}t.default=i},61678:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(57466);const{getListWithInsertedItems:r,getListWithRemovedItems:n}=(0,s.alterUtilsFactory)("physicallyIndexed");class i extends s.IndexMap{constructor(){super((e=>e))}insert(e,t){this.indexedValues=r(this.indexedValues,e,t,((e,t)=>this.getNextValue(t))),super.insert(e,t)}remove(e){this.indexedValues=n(this.indexedValues,e),super.remove(e)}getNextValue(e){return Math.max(...this.getValues())+1+e}}t.default=i},83805:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(9458),i=o(47154),l=o(36926),a=o(59350),h=o(94916),c=o(40892),u=o(9528),d=o(45551);function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(m(e,t))}function p(e,t,o){return e.set(m(e,t),o),o}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="collapsibleColumns",C=t.PLUGIN_PRIORITY=290,v=["nestedHeaders"],y="collapsibleIndicator",E=w,S=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]);var R=new WeakMap,b=new WeakSet;class _ extends n.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=b),t.add(e),(0,r.default)(this,"nestedHeadersPlugin",null),(0,r.default)(this,"headerStateManager",null),function(e,t,o){g(e,t),t.set(e,o)}(this,R,null)}static get PLUGIN_KEY(){return w}static get PLUGIN_PRIORITY(){return C}static get PLUGIN_DEPS(){return["plugin:NestedHeaders"]}static get SETTING_KEYS(){return[w,...v]}isEnabled(){return!!this.hot.getSettings()[w]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();t||(0,a.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),p(R,this,this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.addHook("init",(()=>m(b,this,O).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 m(b,e,I).call(e,...o)})),this.addHook("afterGetColHeader",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return m(b,e,T).call(e,...o)})),this.addHook("beforeOnCellMouseDown",((e,t,o)=>m(b,this,M).call(this,e,t,o))),this.registerShortcuts(),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(this.hot.view){if(!this.nestedHeadersPlugin.detectedOverlappedHeaders){const{collapsibleColumns:e}=this.hot.getSettings();"boolean"==typeof e?this.headerStateManager.mapState((e=>({collapsible:e.origColspan>1}))):Array.isArray(e)&&(this.headerStateManager.mapState((()=>({collapsible:!1}))),this.headerStateManager.mergeStateWith(e))}super.updatePlugin()}}disablePlugin(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),p(R,this,null),this.nestedHeadersPlugin=null,this.unregisterShortcuts(),this.clearButtons(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{var e;const{row:t,col:o}=this.hot.getSelectedRangeLast().highlight,{collapsible:s,isCollapsed:r,columnIndex:n}=null!==(e=this.headerStateManager.getHeaderTreeNodeData(t,o))&&void 0!==e?e:{};if(s)return r?this.expandSection({row:t,col:n}):this.collapseSection({row:t,col:n}),!1},runOnlyIf:()=>{var e,t;return(null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.isSingle())&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isHeader())},group:E,relativeToGroup:u.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(E)}clearButtons(){if(!this.hot.view)return;const e=this.hot.view._wt.getSetting("columnHeaders").length,t=this.hot.view._wt.wtTable.THEAD,o=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.THEAD,s=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,r=function(e){e&&e.parentNode.removeChild(e)};(0,l.rangeEach)(0,e-1,(e=>{const n=t.childNodes[e],i=o.childNodes[e],a=s?s.childNodes[e]:null;(0,l.rangeEach)(0,n.childNodes.length-1,(e=>{let t=n.childNodes[e].querySelector(`.${y}`);r(t),i&&i.childNodes[e]&&(t=i.childNodes[e].querySelector(`.${y}`),r(t)),s&&a&&a.childNodes[e]&&(t=a.childNodes[e].querySelector(`.${y}`),r(t))}))}),!0)}expandSection(e){this.toggleCollapsibleSection([e],"expand")}collapseSection(e){this.toggleCollapsibleSection([e],"collapse")}toggleAllCollapsibleSections(e){const t=this.headerStateManager.mapNodes((t=>{const{collapsible:o,origColspan:s,headerLevel:r,columnIndex:n,isCollapsed:i}=t;if(!0===o&&s>1&&(i&&"expand"===e||!i&&"collapse"===e))return{row:this.headerStateManager.levelToRowCoords(r),col:n}}));this.toggleCollapsibleSection(t,e)}collapseAll(){this.toggleAllCollapsibleSections("collapse")}expandAll(){this.toggleAllCollapsibleSections("expand")}toggleCollapsibleSection(e,t){if(!S.has(t))throw new Error(`Unsupported action is passed (${t}).`);if(!Array.isArray(e))return;const o=(0,i.arrayFilter)(e,(e=>{let{row:t}=e;return t<0}));let s=o.length>0;(0,i.arrayEach)(o,(e=>{var o;let{row:r,col:n}=e;const{collapsible:i,isCollapsed:l}=null!==(o=this.headerStateManager.getHeaderSettings(r,n))&&void 0!==o?o:{};if(!i||l&&"collapse"===t||!l&&"expand"===t)return s=!1,!1}));const r=[],n=[];s&&(0,i.arrayEach)(o,(e=>{let{row:o,col:s}=e;const{colspanCompensation:i,affectedColumns:l,rollbackModification:a}=this.headerStateManager.triggerNodeModification(t,o,s);i>0&&(n.push(...l),r.push(a))}));const l=this.getCollapsedColumns();let a=[];"collapse"===t?a=(0,i.arrayUnique)([...l,...n]):"expand"===t&&(a=(0,i.arrayFilter)(l,(e=>!n.includes(e))));const h=S.get(t);if(!1===this.hot.runHooks(h.beforeHook,l,a,s))return void(0,i.arrayEach)(r,(e=>{e()}));this.hot.batchExecution((()=>{(0,i.arrayEach)(n,(e=>{f(R,this).setValueAtIndex(this.hot.toPhysicalColumn(e),h.hideColumn)}))}),!0);const c=this.getCollapsedColumns().length!==l.length,u=this.hot.getSelectedRangeLast();if("collapse"===t&&c&&u){const{row:e,col:t}=u.highlight;if((this.hot.rowIndexMapper.isHidden(e)||this.hot.columnIndexMapper.isHidden(t))&&n.includes(t)){const o=e>=0?this.hot.rowIndexMapper.getNearestNotHiddenIndex(e,1,!0):e,s=t>=0?this.hot.columnIndexMapper.getNearestNotHiddenIndex(t,1,!0):t;null!==o&&null!==s&&this.hot.selectCell(o,s)}}this.hot.runHooks(h.afterHook,l,a,s,c),this.hot.render(),this.hot.view.adjustElementsSize()}getCollapsedColumns(){return f(R,this).getHiddenIndexes()}destroy(){p(R,this,null),super.destroy()}}function T(e,t,o){var s;const{collapsible:r,origColspan:n,isCollapsed:i}=null!==(s=this.headerStateManager.getHeaderSettings(o,e))&&void 0!==s?s:{},l=r&&n>1&&e>=this.hot.getSettings().fixedColumnsStart,a=this.hot.getSettings().ariaTags;let c=t.querySelector(`.${y}`);var u;((0,h.removeAttribute)(t,[(0,d.A11Y_EXPANDED)("")[0]]),l)?(c||(c=this.hot.rootDocument.createElement("div"),(0,h.addClass)(c,y),t.querySelector("div:first-child").appendChild(c)),(0,h.removeClass)(c,["collapsed","expanded"]),i?((0,h.addClass)(c,"collapsed"),(0,h.fastInnerText)(c,"+"),a&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!1))):((0,h.addClass)(c,"expanded"),(0,h.fastInnerText)(c,"-"),a&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!0))),a&&(0,h.setAttribute)(c,...(0,d.A11Y_HIDDEN)())):null===(u=c)||void 0===u||u.remove()}function M(e,t){(0,h.hasClass)(e.target,y)&&((0,h.hasClass)(e.target,"expanded")?(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):(0,h.hasClass)(e.target,"collapsed")&&(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"expand")),(0,c.stopImmediatePropagation)(e))}function O(){this.updatePlugin()}function I(e,t){t||this.updatePlugin()}t.CollapsibleColumns=_},14004:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(83805);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.CollapsibleColumns=s.CollapsibleColumns},95661:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(63333);var r=s(o(85707)),n=o(94916),i=o(95768),l=o(95016),a=o(77515),h=o(47154),c=o(9458),u=o(57466),d=o(29398),g=o(83180),f=o(9528),p=o(20986),m=o(14882),w=o(94271),C=o(5919),v=o(45551);function y(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function E(e,t,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 S=t.PLUGIN_KEY="columnSorting",R=t.PLUGIN_PRIORITY=50,b=t.APPEND_COLUMN_CONFIG_STRATEGY="append",_=t.REPLACE_COLUMN_CONFIG_STRATEGY="replace",T=S;(0,C.registerRootComparator)(S,w.rootComparator),d.Hooks.getSingleton().register("beforeColumnSort"),d.Hooks.getSingleton().register("afterColumnSort");var M=new WeakSet;class O extends c.BasePlugin{constructor(){super(...arguments),y(this,M),(0,r.default)(this,"columnStatesManager",null),(0,r.default)(this,"columnMetaCache",null),(0,r.default)(this,"pluginKey",S),(0,r.default)(this,"indexesSequenceCache",null)}static get PLUGIN_KEY(){return S}static get PLUGIN_PRIORITY(){return R}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){var e=this;this.enabled||(this.columnStatesManager=new g.ColumnStatesManager(this.hot,`${this.pluginKey}.sortingStates`),this.columnMetaCache=new u.PhysicalIndexToValueMap((e=>{let t=this.hot.toVisualColumn(e);return null===t&&(t=e),this.getMergedPluginSettings(t)})),this.hot.columnIndexMapper.registerMap(`${this.pluginKey}.columnMeta`,this.columnMetaCache),this.addHook("afterGetColHeader",((e,t)=>E(M,this,N).call(this,e,t))),this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return E(M,e,P).call(e,...o)})),this.addHook("afterOnCellMouseDown",((e,t)=>this.onAfterOnCellMouseDown(e,t))),this.addHook("afterInit",(()=>E(M,this,I).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 E(M,e,A).call(e,...o)})),this.hot.view&&E(M,this,I).call(this),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){const e=(e,t)=>{const o=(0,p.getHeaderSpanElement)(t);!1!==(0,p.isFirstLevelColumnHeader)(e,t)&&null!==o&&this.updateHeaderClasses(o)};this.hot.addHook("afterGetColHeader",e),this.hot.addHookOnce("afterViewRender",(()=>{this.hot.removeHook("afterGetColHeader",e)})),this.hot.batchExecution((()=>{null!==this.indexesSequenceCache&&(this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginKey),this.indexesSequenceCache=null)}),!0),this.hot.columnIndexMapper.unregisterMap(`${this.pluginKey}.columnMeta`),this.columnStatesManager.destroy(),this.columnMetaCache=null,this.columnStatesManager=null,this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();return this.sort(this.getColumnNextConfig(e.col)),!1},runOnlyIf:()=>{var e,t;const 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)&&-1===o.row&&o.col>=0},relativeToGroup:f.EDITOR_EDIT_GROUP,position:"before",group:T})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(T)}sort(e){const t=this.getSortConfig(),o=this.getNormalizedSortConfigs(e),s=this.areValidSortConfigs(o);!1!==this.hot.runHooks("beforeColumnSort",t,o,s)&&(0===t.length&&null===this.indexesSequenceCache&&(this.indexesSequenceCache=this.hot.rowIndexMapper.registerMap(this.pluginKey,new u.IndexesSequence),this.indexesSequenceCache.setValues(this.hot.rowIndexMapper.getIndexesSequence())),s&&(this.columnStatesManager.setSortStates(o),this.sortByPresetSortStates(o),this.saveAllSortSettings(o)),this.hot.runHooks("afterColumnSort",t,s?o:t,s),s&&(this.hot.render(),this.hot.forceFullRender=!1,this.hot.view.render()))}clearSort(){this.sort([])}isSorted(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}getSortConfig(e){return(0,i.isDefined)(e)?this.columnStatesManager.getColumnSortState(e):this.columnStatesManager.getSortStates()}setSortConfig(e){const t=this.getNormalizedSortConfigs(e);this.areValidSortConfigs(t)&&this.columnStatesManager.setSortStates(t)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.slice(0,1):[e]}areValidSortConfigs(e){const t=this.hot.countCols();return(0,p.areValidSortStates)(e)&&e.every((e=>{let{column:o}=e;return o<=t&&o>=0}))}saveAllSortSettings(e){const t=this.columnStatesManager.getAllColumnsProperties();t.initialConfig=(0,h.arrayMap)(e,(e=>{let{column:t,...o}=e;return{column:this.hot.toPhysicalColumn(t),...o}})),this.hot.runHooks("persistentStateSave","columnSorting",t)}getAllSavedSortSettings(){const e={};this.hot.runHooks("persistentStateLoad","columnSorting",e);const t=e.value,o=e=>{let{column:t,...o}=e;return{column:this.hot.toVisualColumn(t),...o}};return(0,i.isDefined)(t)&&Array.isArray(t.initialConfig)&&(t.initialConfig=(0,h.arrayMap)(t.initialConfig,o)),t}getColumnNextConfig(e){const t=this.columnStatesManager.getSortOrderOfColumn(e);if((0,i.isDefined)(t)){const o=(0,p.getNextSortOrder)(t);return(0,i.isDefined)(o)?{column:e,sortOrder:o}:void 0}const o=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&e<o)return{column:e,sortOrder:(0,p.getNextSortOrder)()}}getNextSortConfig(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;const o=this.columnStatesManager.getIndexOfColumnInSortQueue(e),s=-1!==o,r=this.getSortConfig(),n=this.getColumnNextConfig(e);if(s){if((0,i.isUndefined)(n))return[...r.slice(0,o),...r.slice(o+1)];if(t===b)return[...r.slice(0,o),...r.slice(o+1),n];if(t===_)return[...r.slice(0,o),n,...r.slice(o+1)]}return(0,i.isDefined)(n)?r.concat(n):r}getPluginColumnConfig(e){if((0,l.isObject)(e)){const t=e[this.pluginKey];if((0,l.isObject)(t))return t}return{}}getMergedPluginSettings(e){const t=this.hot.getSettings()[this.pluginKey],o=this.columnStatesManager.getAllColumnsProperties(),s=this.hot.getCellMeta(0,e),r=Object.getPrototypeOf(s);return Array.isArray(r.columns)?Object.assign(o,t,this.getPluginColumnConfig(r.columns[e])):(0,a.isFunction)(r.columns)?Object.assign(o,t,this.getPluginColumnConfig(r.columns(e))):Object.assign(o,t)}getFirstCellSettings(e){const t=this.hot.getCellMeta(0,e),o=Object.create(t);return o[this.pluginKey]=this.columnMetaCache.getValueAtIndex(this.hot.toPhysicalColumn(e)),o}getNumberOfRowsToSort(e){const t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}sortByPresetSortStates(e){if(this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues()),0===e.length)return;const t=[],o=this.hot.countRows(),s=t=>(0,h.arrayMap)(e,(e=>this.hot.getDataAtCell(t,e.column)));for(let e=0;e<this.getNumberOfRowsToSort(o);e+=1)t.push([this.hot.toPhysicalRow(e)].concat(s(e)));const r=(0,h.arrayMap)(t,(e=>e[0]));(0,C.sort)(t,this.pluginKey,(0,h.arrayMap)(e,(e=>e.sortOrder)),(0,h.arrayMap)(e,(e=>this.getFirstCellSettings(e.column))));for(let e=t.length;e<o;e+=1)t.push([e].concat(s(e)));const n=(0,h.arrayMap)(t,(e=>e[0])),i=new Map((0,h.arrayMap)(r,((e,t)=>[e,n[t]]))),l=(0,h.arrayMap)(this.hot.rowIndexMapper.getIndexesSequence(),(e=>i.has(e)?i.get(e):e));this.hot.rowIndexMapper.setIndexesSequence(l)}sortBySettings(e){if((0,l.isObject)(e)){this.columnStatesManager.updateAllColumnsProperties(e);const t=e.initialConfig;(Array.isArray(t)||(0,l.isObject)(t))&&this.sort(t)}else this.hot.render()}updateHeaderClasses(e){if((0,n.removeClass)(e,(0,m.getClassesToRemove)(e)),!1!==this.enabled){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];(0,n.addClass)(e,(0,m.getClassesToAdd)(...o))}}onUpdateSettings(e){super.onUpdateSettings(),null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexes()),(0,i.isDefined)(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}wasClickableHeaderClicked(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&(0,n.hasClass)(e.target,p.HEADER_SPAN_CLASS)}onAfterOnCellMouseDown(e,t){if(!1!==(0,p.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)){this.hot.getShortcutManager().isCtrlPressed()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col));const e=this.hot.getActiveEditor(),o=this.getColumnNextConfig(t.col);null!=e&&e.isOpened()&&this.hot.getCellValidator(e.row,e.col)?this.hot.addHookOnce("postAfterValidate",(()=>{this.sort(o)})):this.sort(o)}}destroy(){var e;null===(e=this.columnStatesManager)||void 0===e||e.destroy(),super.destroy()}}function I(){const e=this.getAllSavedSortSettings();if((0,l.isObject)(e))this.sortBySettings(e);else{const e=this.hot.getSettings()[this.pluginKey];this.sortBySettings(e)}}function N(e,t){const o=(0,p.getHeaderSpanElement)(t);if(!1===(0,p.isFirstLevelColumnHeader)(e,t)||null===o)return;const s=this.getFirstCellSettings(e)[this.pluginKey],r=s.indicator,i=s.headerAction;if(this.updateHeaderClasses(o,this.columnStatesManager,e,r,i),this.hot.getSettings().ariaTags){const o=this.columnStatesManager.getSortOrderOfColumn(e);(0,n.setAttribute)(t,...(0,v.A11Y_SORT)(o?`${o}ending`:"none"))}}function A(e){!0===e&&this.hot.view&&E(M,this,I).call(this)}function P(e,t,o,s){!1!==(0,p.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&this.hot.getShortcutManager().isCtrlPressed()&&(s.column=!0)}t.ColumnSorting=O},83180:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(94364);var r=s(o(85707)),n=o(95016),i=o(57466),l=o(95768);const a=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"];t.ColumnStatesManager=class{constructor(e,t){(0,r.default)(this,"hot",void 0),(0,r.default)(this,"sortingStates",new i.LinkedPhysicalIndexToValueMap),(0,r.default)(this,"sortEmptyCells",false),(0,r.default)(this,"indicator",true),(0,r.default)(this,"headerAction",true),(0,r.default)(this,"compareFunctionFactory",void 0),(0,r.default)(this,"mapName",void 0),this.hot=e,this.mapName=t,this.hot.columnIndexMapper.registerMap(t,this.sortingStates)}updateAllColumnsProperties(e){(0,n.isObject)(e)&&(0,n.objectEach)(e,((e,t)=>{a.includes(t)&&(this[t]=e)}))}getAllColumnsProperties(){const e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}getSortOrderOfColumn(e){var t;return null===(t=this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))||void 0===t?void 0:t.sortOrder}getIndexOfColumnInSortQueue(e){return e=this.hot.toPhysicalColumn(e),this.sortingStates.getEntries().findIndex((t=>{let[o]=t;return o===e}))}getNumberOfSortedColumns(){return this.sortingStates.getLength()}isListOfSortedColumnsEmpty(){return 0===this.getNumberOfSortedColumns()}isColumnSorted(e){return(0,n.isObject)(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))}getSortStates(){if(null===this.sortingStates)return[];return this.sortingStates.getEntries().map((e=>{let[t,o]=e;return{column:this.hot.toVisualColumn(t),...o}}))}getColumnSortState(e){const t=this.getSortOrderOfColumn(e);if((0,l.isDefined)(t))return{column:e,sortOrder:t}}setSortStates(e){this.sortingStates.clear();for(let t=0;t<e.length;t+=1)this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(e[t].column),{sortOrder:e[t].sortOrder})}destroy(){this.hot.columnIndexMapper.unregisterMap(this.mapName),this.sortingStates=null}}},14882:(e,t,o)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,o,r){const h=[i];r&&h.push(l);if(!1===o)return h.push(n),h;const c=e.getSortOrderOfColumn(t);(0,s.isDefined)(c)&&h.push(a.get(c));return h},t.getClassesToRemove=function(){return Array.from(a.values()).concat(l,n,i)},o(15724);var s=o(95768),r=o(20986);const n="indicatorDisabled",i="columnSorting",l="sortAction",a=new Map([[r.ASC_SORT_STATE,"ascending"],[r.DESC_SORT_STATE,"descending"]])},97887:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95661);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ColumnSorting=s.ColumnSorting,t.APPEND_COLUMN_CONFIG_STRATEGY=s.APPEND_COLUMN_CONFIG_STRATEGY,t.REPLACE_COLUMN_CONFIG_STRATEGY=s.REPLACE_COLUMN_CONFIG_STRATEGY},94271:(e,t,o)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(o,r){const[,...n]=o,[,...i]=r;return function(o){const r=e[o],l=t[o],a=n[o],h=i[o],c=l.columnSorting;return(c.compareFunctionFactory?c.compareFunctionFactory:(0,s.getCompareFunctionFactory)(l.type))(r,l,c)(a,h)}(0)}};var s=o(5919)},6359:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const i=t.checkedTemplate,l=t.uncheckedTemplate,{sortEmptyCells:a}=o;return function(h,c){const u=(0,n.isEmpty)(h),d=(0,n.isEmpty)(c),g=u?l:h,f=d?l:c,p=g===l||g===i,m=f===l||f===i;if(!1===a){if(u&&!1===d)return s.FIRST_AFTER_SECOND;if(!1===u&&d)return s.FIRST_BEFORE_SECOND}return!1===p&&m?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:p&&!1===m?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:!1===p&&!1===m?(0,r.compareFunctionFactory)(e,t,o)(h,c):g===l&&f===i?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:g===i&&f===l?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP}};var s=o(5919),r=o(39681),n=o(95768);t.COLUMN_DATA_TYPE="checkbox"},94090:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){return(0,s.createDateTimeCompareFunction)(e,t.dateFormat,o)};var s=o(20986);t.COLUMN_DATA_TYPE="date"},39681:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const n=t.locale;return function(t,i){const{sortEmptyCells:l}=o;return"string"==typeof t&&(t=t.toLocaleLowerCase(n)),"string"==typeof i&&(i=i.toLocaleLowerCase(n)),t===i?r.DO_NOT_SWAP:(0,s.isEmpty)(t)?(0,s.isEmpty)(i)?r.DO_NOT_SWAP:l&&"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:(0,s.isEmpty)(i)?l&&"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(i)?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(i)?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(i)||(t=parseFloat(t),i=parseFloat(i)),t<i?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:t>i?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:r.DO_NOT_SWAP)}};var s=o(95768),r=o(5919);t.COLUMN_DATA_TYPE="default"},48687:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){return function(t,n){const i=parseFloat(t),l=parseFloat(n),{sortEmptyCells:a}=o;if(i===l||isNaN(i)&&isNaN(l))return r.DO_NOT_SWAP;if(a){if((0,s.isEmpty)(t))return"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND;if((0,s.isEmpty)(n))return"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND}return isNaN(i)?r.FIRST_AFTER_SECOND:isNaN(l)?r.FIRST_BEFORE_SECOND:i<l?"asc"===e?r.FIRST_BEFORE_SECOND:r.FIRST_AFTER_SECOND:i>l?"asc"===e?r.FIRST_AFTER_SECOND:r.FIRST_BEFORE_SECOND:r.DO_NOT_SWAP}};var s=o(95768),r=o(5919);t.COLUMN_DATA_TYPE="numeric"},20755:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){return(0,s.createDateTimeCompareFunction)(e,t.timeFormat,o)};var s=o(20986);t.COLUMN_DATA_TYPE="time"},95633:(e,t,o)=>{"use strict";t.__esModule=!0,t.sort=function(e,t){const o=(0,s.getRootComparator)(t);for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];e.sort(o(...n))};var s=o(89472);t.DO_NOT_SWAP=0,t.FIRST_BEFORE_SECOND=-1,t.FIRST_AFTER_SECOND=1},5919:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(89472);t.registerRootComparator=s.registerRootComparator,t.getRootComparator=s.getRootComparator,t.getCompareFunctionFactory=s.getCompareFunctionFactory;var r=o(95633);t.FIRST_AFTER_SECOND=r.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=r.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=r.DO_NOT_SWAP,t.sort=r.sort},89472:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(d(e))return u(e);return u(r.COLUMN_DATA_TYPE)};var r=o(39681),n=o(48687),i=o(6359),l=o(94090),a=o(20755),h=s(o(29328));const{register:c,getItem:u,hasItem:d}=(0,h.default)("sorting.compareFunctionFactory"),{register:g,getItem:f}=(0,h.default)("sorting.mainSortComparator");t.getRootComparator=f,t.registerRootComparator=g,c(i.COLUMN_DATA_TYPE,i.compareFunctionFactory),c(l.COLUMN_DATA_TYPE,l.compareFunctionFactory),c(r.COLUMN_DATA_TYPE,r.compareFunctionFactory),c(n.COLUMN_DATA_TYPE,n.compareFunctionFactory),c(a.COLUMN_DATA_TYPE,a.compareFunctionFactory)},20986:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.areValidSortStates=function(e){if(e.some((e=>!1===function(e){if(!1===(0,n.isObject)(e))return!1;const{column:t,sortOrder:o}=e;return Number.isInteger(t)&&[h,c].includes(o)}(e))))return!1;const t=e.map((e=>{let{column:t}=e;return t}));return new Set(t).size===t.length},t.createDateTimeCompareFunction=function(e,t,o){return function(s,n){const{sortEmptyCells:i}=o;if(s===n)return a.DO_NOT_SWAP;if((0,l.isEmpty)(s))return(0,l.isEmpty)(n)?a.DO_NOT_SWAP:i&&"asc"===e?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND;if((0,l.isEmpty)(n))return i&&"asc"===e?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND;const h=(0,r.default)(s,t),c=(0,r.default)(n,t);return h.isValid()?c.isValid()?c.isAfter(h)?"asc"===e?a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND:c.isBefore(h)?"asc"===e?a.FIRST_AFTER_SECOND:a.FIRST_BEFORE_SECOND:a.DO_NOT_SWAP:a.FIRST_BEFORE_SECOND:a.FIRST_AFTER_SECOND}},t.getHeaderSpanElement=function(e){return e.querySelector(`.${u}`)},t.getNextSortOrder=function(e){if(e===c)return;if(e===h)return c;return h},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;const o=t.parentNode.parentNode.childNodes;if(Array.from(o).indexOf(t.parentNode)-o.length!=-1)return!1;return!0},t.wasHeaderClickedProperly=function(e,t,o){return-1===e&&t>=0&&!1===(0,i.isRightClick)(o)},o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(94364),o(75568);var r=s(o(86798)),n=o(95016),i=o(40892),l=o(95768),a=o(5919);const h=t.ASC_SORT_STATE="asc",c=t.DESC_SORT_STATE="desc",u=t.HEADER_SPAN_CLASS="colHeader"},85729:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(9458),i=o(95016),l=s(o(87553)),a=o(20944),h=o(57990);function c(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function 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")}const d=t.PLUGIN_KEY="columnSummary",g=t.PLUGIN_PRIORITY=220;var f=new WeakSet;class p extends n.BasePlugin{constructor(){super(...arguments),c(this,f),(0,r.default)(this,"endpoints",null)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){var e=this;this.enabled||(this.settings=this.hot.getSettings()[d],this.endpoints=new l.default(this,this.settings),this.addHook("afterInit",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return u(f,e,m).call(e,...o)})),this.addHook("afterChange",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return u(f,e,C).call(e,...o)})),this.addHook("afterUpdateSettings",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return u(f,e,w).call(e,...o)})),this.addHook("beforeCreateRow",((e,t,o)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_row",e,t,null,o))),this.addHook("beforeCreateCol",((e,t,o)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_col",e,t,null,o))),this.addHook("beforeRemoveRow",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.endpoints.resetSetupBeforeStructureAlteration("remove_row",...o)})),this.addHook("beforeRemoveCol",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.endpoints.resetSetupBeforeStructureAlteration("remove_col",...o)})),this.addHook("afterCreateRow",((e,t,o)=>this.endpoints.resetSetupAfterStructureAlteration("insert_row",e,t,null,o))),this.addHook("afterCreateCol",((e,t,o)=>this.endpoints.resetSetupAfterStructureAlteration("insert_col",e,t,null,o))),this.addHook("afterRemoveRow",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.endpoints.resetSetupAfterStructureAlteration("remove_row",...o)})),this.addHook("afterRemoveCol",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.endpoints.resetSetupAfterStructureAlteration("remove_col",...o)})),this.addHook("afterRowMove",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return u(f,e,v).call(e,...o)})),super.enablePlugin())}disablePlugin(){this.endpoints=null,this.settings=null,this.currentEndpoint=null,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.endpoints.initEndpoints(),super.updatePlugin()}calculate(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}}calculateSum(e){let t=0;return(0,i.objectEach)(e.ranges,(o=>{t+=this.getPartialSum(o,e.sourceColumn)})),t}getPartialSum(e,t){let o=0,s=e[1]||e[0],r=null,n=0;do{if(r=this.getCellValue(s,t),r=(0,h.isNullishOrNaN)(r)?null:r,null!==r){const e=(`${r}`.split(".")[1]||[]).length||1;e>n&&(n=e)}o+=r||0,s-=1}while(s>=e[0]);return Math.round(o*10**n)/10**n}calculateMinMax(e,t){let o=null;return(0,i.objectEach)(e.ranges,(s=>{const r=this.getPartialMinMax(s,e.sourceColumn,t);if(null===o&&null!==r&&(o=r),null!==r)switch(t){case"min":o=Math.min(o,r);break;case"max":o=Math.max(o,r)}})),null===o?"Not enough data":o}getPartialMinMax(e,t,o){let s,r=null,n=e[1]||e[0];do{if(s=this.getCellValue(n,t),s=(0,h.isNullishOrNaN)(s)?null:s,null===r)r=s;else if(null!==s)switch(o){case"min":r=Math.min(r,s);break;case"max":r=Math.max(r,s)}n-=1}while(n>=e[0]);return r}countEmpty(e,t){let o,s=0,r=e[1]||e[0];do{o=this.getCellValue(r,t),o=(0,h.isNullishOrNaN)(o)?null:o,null===o&&(s+=1),r-=1}while(r>=e[0]);return s}countEntries(e){let t=0;const o=e.ranges;return(0,i.objectEach)(o,(o=>{const s=void 0===o[1]?1:o[1]-o[0]+1,r=this.countEmpty(o,e.sourceColumn);t+=s,t-=r})),t}calculateAverage(e){return this.calculateSum(e)/this.countEntries(e)}getCellValue(e,t){const o=this.hot.toVisualRow(e),s=this.hot.toVisualColumn(t);let r=this.hot.getSourceDataAtCell(e,t),n="";if(null!==o&&null!==s&&(n=this.hot.getCellMeta(o,s).className||""),n.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof r&&(r=r.replace(/,/,".")),r=parseFloat(r)),isNaN(r)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error(a.toSingleLine`ColumnSummary plugin: cell at (${e}, ${t}) is not in a\x20
|
67
|
-
numeric format. Cannot do the calculation.`);return r}}function m(){this.endpoints.initEndpoints()}function w(e){void 0!==e.columns&&this.endpoints.refreshCellMetas()}function C(e,t){e&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(e)}function v(e,t){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}t.ColumnSummary=p},87553:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(69655),o(75568);var r=s(o(85707)),n=o(47154),i=o(59350);t.default=class{constructor(e,t){(0,r.default)(this,"plugin",void 0),(0,r.default)(this,"hot",void 0),(0,r.default)(this,"endpoints",[]),(0,r.default)(this,"settings",void 0),(0,r.default)(this,"settingsType","array"),(0,r.default)(this,"currentEndpoint",null),(0,r.default)(this,"cellsToSetCache",[]),this.plugin=e,this.hot=this.plugin.hot,this.settings=t}initEndpoints(){this.endpoints=this.parseSettings(),this.refreshAllEndpoints()}getEndpoint(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}getAllEndpoints(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}fillMissingEndpointData(e){return this.parseSettings(e.call(this))}parseSettings(e){const t=[];let o=e;if(o||"function"!=typeof this.settings)return o||(o=this.settings),(0,n.arrayEach)(o,(e=>{const o={};this.assignSetting(e,o,"ranges",[[0,this.hot.countRows()-1]]),this.assignSetting(e,o,"reversedRowCoords",!1),this.assignSetting(e,o,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,o,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,o,"sourceColumn",e.destinationColumn),this.assignSetting(e,o,"type","sum"),this.assignSetting(e,o,"forceNumeric",!1),this.assignSetting(e,o,"suppressDataTypeErrors",!0),this.assignSetting(e,o,"customFunction",null),this.assignSetting(e,o,"readOnly",!0),this.assignSetting(e,o,"roundFloat",!1),t.push(o)})),t;this.settingsType="function"}assignSetting(e,t,o,s){if("ranges"!==o||void 0!==e[o]){if("ranges"!==o||0!==e[o].length)if(void 0===e[o]){if(s instanceof Error)throw s;t[o]=s}else"destinationRow"===o&&t.reversedRowCoords?t[o]=this.hot.countRows()-e[o]-1:t[o]=e[o]}else t[o]=s}resetSetupBeforeStructureAlteration(e,t,o){if("function"!==this.settingsType)return;const s=e.indexOf("row")>-1?"row":"col",r=this.getAllEndpoints();(0,n.arrayEach)(r,(r=>{"row"===s&&r.destinationRow>=t&&("insert_row"===e?r.alterRowOffset=o:"remove_row"===e&&(r.alterRowOffset=-1*o)),"col"===s&&r.destinationColumn>=t&&("insert_col"===e?r.alterColumnOffset=o:"remove_col"===e&&(r.alterColumnOffset=-1*o))})),this.resetAllEndpoints(r,!1)}resetSetupAfterStructureAlteration(e,t,o,s,r){let i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"===this.settingsType){const e=()=>(this.hot.removeHook("beforeViewRender",e),this.refreshAllEndpoints());return void this.hot.addHookOnce("beforeViewRender",e)}const l=e.indexOf("row")>-1?"row":"col",a=e.indexOf("remove")>-1?-1:1,h=this.getAllEndpoints(),c=0===e.indexOf("move_row"),u=t;(0,n.arrayEach)(h,(e=>{"row"===l&&e.destinationRow>=u&&(e.alterRowOffset=a*o),"col"===l&&e.destinationColumn>=u&&(e.alterColumnOffset=a*o)})),this.resetAllEndpoints(h,!c),c?(0,n.arrayEach)(h,(e=>{this.extendEndpointRanges(e,u,s[0],s.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)})):(0,n.arrayEach)(h,(e=>{this.shiftEndpointCoordinates(e,u)})),i&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,o,s){(0,n.arrayEach)(e.ranges,(e=>{e[1]&&(t>=e[0]&&t<=e[1]?o>e[1]?e[1]+=s:o<e[0]&&(e[0]-=s):o>=e[0]&&o<=e[1]&&(e[1]-=s,t<=e[0]&&(e[0]+=1,e[1]+=1)))}))}recreatePhysicalRanges(e){const t=e.ranges,o=[],s=[];(0,n.arrayEach)(t,(e=>{const t=[];if(e[1])for(let o=e[0];o<=e[1];o++)t.push(this.hot.toPhysicalRow(o));else t.push(this.hot.toPhysicalRow(e[0]));s.push(t)})),(0,n.arrayEach)(s,(e=>{let t=[];(0,n.arrayEach)(e,((s,r)=>{0===r?t.push(s):e[r]!==e[r-1]+1&&(t.push(e[r-1]),o.push(t),t=[],t.push(s)),r===e.length-1&&(t.push(s),o.push(t))}))})),e.ranges=o}shiftEndpointCoordinates(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,n.arrayEach)(e.ranges,(o=>{(0,n.arrayEach)(o,((s,r)=>{s>=t&&(o[r]+=e.alterRowOffset||0)}))}))):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.some((e=>{const t=e.alterRowOffset||0,o=e.alterColumnOffset||0;return e.destinationRow+t>=this.hot.countRows()||e.destinationColumn+o>=this.hot.countCols()}))||(this.cellsToSetCache=[],(0,n.arrayEach)(e,(e=>{this.resetEndpointValue(e,t)})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,n.arrayEach)(this.getAllEndpoints(),(e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")})),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const t=[];this.cellsToSetCache=[],(0,n.arrayEach)(e,((e,o,s)=>{`${e[2]||""}`!=`${e[3]}`&&(0,n.arrayEach)(this.getAllEndpoints(),((e,r)=>{this.hot.propToCol(s[o][1])===e.sourceColumn&&-1===t.indexOf(r)&&t.push(r)}))})),(0,n.arrayEach)(t,(e=>{this.refreshEndpoint(this.getEndpoint(e))})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshCellMetas(){this.endpoints.forEach((e=>{const t=this.hot.toVisualRow(e.destinationRow);if(null!==t){const o=this.hot.getCellMeta(t,e.destinationColumn);o.readOnly=e.readOnly,o.className="columnSummaryResult"}}))}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}resetEndpointValue(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=e.alterRowOffset||0,s=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?o:0)),this.hot.toVisualColumn(e.destinationColumn+(t?s:0)),""])}setEndpointValue(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())return void this.throwOutOfBoundsWarning();const r=this.hot.toVisualRow(e.destinationRow);if(null!==r){const o=this.hot.getCellMeta(r,e.destinationColumn);"init"!==t&&o.readOnly===e.readOnly||(o.readOnly=e.readOnly,o.className="columnSummaryResult")}if((!0===e.roundFloat||Number.isInteger(e.roundFloat))&&!isNaN(e.result)){const t=e.roundFloat;let o=0;Number.isInteger(t)&&(o=Math.min(Math.max(0,t),100)),e.result=e.result.toFixed(o)}o?this.hot.setDataAtCell(s,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([s,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}throwOutOfBoundsWarning(){(0,i.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}},14875:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(85729);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ColumnSummary=s.ColumnSummary},57990:(e,t)=>{"use strict";t.__esModule=!0,t.isNullishOrNaN=function(e){return null==e||isNaN(e)}},71313:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=o(94916),n=o(95016),i=s(o(32943)),l=o(63962);function a(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}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 WeakMap;class v{static get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"}static get CLASS_EDITOR(){return"htComments"}static get CLASS_INPUT(){return"htCommentTextArea"}static get CLASS_CELL(){return"htCommentCell"}constructor(e,t){var o=this;a(this,d,void 0),a(this,g,!1),a(this,f,null),a(this,p,void 0),a(this,m,void 0),a(this,w,!0),a(this,C,new l.EditorResizeObserver),c(d,this,e),c(g,this,t),c(p,this,this.createEditor()),c(m,this,h(p,this).style),h(C,this).setObservedElement(this.getInputElement()),h(C,this).addLocalHook("resize",(function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.runLocalHooks("resize",...t)})),this.hide()}setPosition(e,t){h(m,this).left=`${e}px`,h(m,this).top=`${t}px`}setSize(e,t){if(e&&t){const o=this.getInputElement();o.style.width=`${e}px`,o.style.height=`${t}px`}}getSize(){return{width:(0,r.outerWidth)(this.getInputElement()),height:(0,r.outerHeight)(this.getInputElement())}}observeSize(){h(C,this).observe()}resetSize(){const e=this.getInputElement();e.style.width="",e.style.height=""}setReadOnlyState(e){this.getInputElement().readOnly=e}show(){h(m,this).display="block",c(w,this,!1)}hide(){h(C,this).unobserve(),h(w,this)||(h(m,this).display="none"),c(w,this,!0)}isVisible(){return"block"===h(m,this).display}setValue(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=e}getValue(){return this.getInputElement().value}isFocused(){return h(d,this).activeElement===this.getInputElement()}focus(){this.getInputElement().focus()}createEditor(){const e=h(d,this).createElement("div"),t=h(d,this).createElement("textarea");return e.style.display="none",c(f,this,h(d,this).createElement("div")),h(f,this).setAttribute("dir",h(g,this)?"rtl":"ltr"),(0,r.addClass)(h(f,this),v.CLASS_EDITOR_CONTAINER),h(d,this).body.appendChild(h(f,this)),(0,r.addClass)(e,v.CLASS_EDITOR),(0,r.addClass)(t,v.CLASS_INPUT),t.setAttribute("data-hot-input",!0),e.appendChild(t),h(f,this).appendChild(e),e}getInputElement(){return h(p,this).querySelector(`.${v.CLASS_INPUT}`)}getEditorElement(){return h(p,this)}destroy(){const e=h(f,this)?h(f,this).parentNode:null;h(p,this).parentNode.removeChild(h(p,this)),c(p,this,null),c(m,this,null),h(C,this).destroy(),e&&e.removeChild(h(f,this))}}(0,n.mixin)(v,i.default);t.default=v},33671:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(94916),i=o(40892),l=o(95016),a=o(9458),h=s(o(71313)),c=s(o(8983)),u=o(37660),d=s(o(34605)),g=s(o(5180)),f=s(o(48990));function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,o){return e.set(v(e,t),o),o}function C(e,t){return e.get(v(e,t))}function v(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 y=t.PLUGIN_KEY="comments",E=t.PLUGIN_PRIORITY=60,S=t.META_COMMENT="comment",R=t.META_COMMENT_VALUE="value",b=t.META_STYLE="style",_=t.META_READONLY="readOnly",T=y,M=`plugin:${y}`;var O=new WeakMap,I=new WeakMap,N=new WeakMap,A=new WeakMap,P=new WeakMap,H=new WeakMap,x=new WeakSet;class D extends a.BasePlugin{constructor(){var e,t;super(...arguments),m(e=this,t=x),t.add(e),(0,r.default)(this,"range",{}),p(this,O,null),p(this,I,null),p(this,N,!1),p(this,A,!1),p(this,P,null),p(this,H,"")}static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return E}static get DEFAULT_SETTINGS(){return{displayDelay:250}}isEnabled(){return!!this.hot.getSettings()[y]}enablePlugin(){var e=this;this.enabled||(C(O,this)||(w(O,this,new h.default(this.hot.rootDocument,this.hot.isRtl())),C(O,this).addLocalHook("resize",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(x,e,U).call(e,...o)}))),C(I,this)||w(I,this,new c.default(this.getSetting("displayDelay"))),this.addHook("afterContextMenuDefaultOptions",(e=>this.addToContextMenu(e))),this.addHook("afterRenderer",((e,t,o,s,r,n)=>v(x,this,F).call(this,e,n))),this.addHook("afterScroll",(()=>v(x,this,Y).call(this))),this.addHook("afterBeginEditing",(()=>this.hide())),this.addHook("afterDocumentKeyDown",(e=>v(x,this,j).call(this,e))),this.addHook("afterSetTheme",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(x,e,z).call(e,...o)})),C(I,this).addLocalHook("hide",(()=>this.hide())),C(I,this).addLocalHook("show",((e,t)=>this.showAtCell(e,t))),this.registerShortcuts(),this.registerListeners(),super.enablePlugin())}updatePlugin(){C(I,this).updateDelay(this.getSetting("displayDelay")),super.updatePlugin()}disablePlugin(){this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=this.hot.getShortcutManager(),t=e.getContext("grid"),o=e.addContext(M);t.addShortcut({keys:[["Control","Alt","M"]],callback:()=>{const t=this.hot.getSelectedRangeLast();w(A,this,!0),this.hot.scrollToFocusedCell((()=>{this.setRange(t),this.show(),this.focusEditor(),e.setActiveContextName(M),this.hot._registerTimeout((()=>{w(A,this,!1)}))}))},stopPropagation:!0,runOnlyIf:()=>{var e;return null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight.isCell()},group:T}),o.addShortcut({keys:[["Escape"]],callback:()=>{C(O,this).setValue(C(H,this)),this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>C(O,this).isVisible()&&C(O,this).isFocused(),group:T}),o.addShortcut({keys:[["Control/Meta","Enter"]],callback:()=>{this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>C(O,this).isVisible()&&C(O,this).isFocused(),group:T}),o.addShortcut({keys:[["Shift","Tab"],["Tab"]],forwardToContext:e.getContext("grid"),callback:()=>{C(O,this).setValue(C(H,this)),this.hide(),e.setActiveContextName("grid")},group:T})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(T)}registerListeners(){const{rootDocument:e}=this.hot,t=this.getEditorInputElement();this.eventManager.addEventListener(e,"mouseover",(e=>v(x,this,L).call(this,e))),this.eventManager.addEventListener(e,"mousedown",(e=>v(x,this,k).call(this,e))),this.eventManager.addEventListener(e,"mouseup",(()=>v(x,this,V).call(this))),this.eventManager.addEventListener(t,"focus",(()=>v(x,this,B).call(this))),this.eventManager.addEventListener(t,"blur",(()=>v(x,this,W).call(this)))}setRange(e){this.range=e}clearRange(){this.range={}}targetIsCellWithComment(e){const t=(0,n.closest)(e.target,"TD","TBODY");return!!(t&&(0,n.hasClass)(t,"htCommentCell")&&(0,n.closest)(t,[this.hot.rootElement]))}targetIsCommentTextArea(e){return this.getEditorInputElement()===e.target}setComment(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const t=C(O,this).getValue();let o="";null!=e?o=e:null!=t&&(o=t);const s=this.range.from.row,r=this.range.from.col;this.updateCommentMeta(s,r,{[R]:o}),this.hot.render()}setCommentAtCell(e,t,o){this.setRange({from:this.hot._createCellCoords(e,t)}),this.setComment(o)}removeComment(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.setCellMeta(this.range.from.row,this.range.from.col,S),e&&this.hot.render(),this.hide()}removeCommentAtCell(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(e,t)}),this.removeComment(o)}getComment(){const e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,R)}getCommentAtCell(e,t){return this.getCommentMeta(e,t,R)}show(){var e;if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{from:{row:t,col:o}}=this.range;if(t<0||t>this.hot.countSourceRows()-1||o<0||o>this.hot.countSourceCols()-1)return!1;const s=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return C(I,this).cancelHiding(),C(O,this).setValue(null!==(e=s[S]?s[S][R]:null)&&void 0!==e?e:""),C(O,this).show(),this.refreshEditor(!0),!0}showAtCell(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}hide(){C(O,this).hide()}refreshEditor(){var e,t;if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&C(O,this).isVisible()))return;const{rowIndexMapper:o,columnIndexMapper:s}=this.hot,{row:r,col:i}=this.range.from;let l=o.getRenderableFromVisualIndex(r),a=s.getRenderableFromVisualIndex(i);const h=null===l;C(O,this).setPosition(0,0),null===l&&(l=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(r,-1))),null===a&&(a=s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(i,-1)));const c=null===l,u=null===a;l=null!==(e=l)&&void 0!==e?e:0,a=null!==(t=a)&&void 0!==t?t:0;const{rootWindow:d,view:{_wt:g}}=this.hot,{wtTable:f}=g,p=g.getCell({row:l,col:a},!0),m=this.getCommentMeta(r,i,b);m?C(O,this).setSize(m.width,m.height):C(O,this).resetSize();const w=u?0:f.getColumnWidth(a),v=h&&!c?(0,n.outerHeight)(p):0,{left:y,top:E,width:S,height:R}=p.getBoundingClientRect(),{width:T,height:M}=C(O,this).getSize(),{innerWidth:I,innerHeight:N}=this.hot.rootWindow,A=this.hot.rootDocument.documentElement;let P=y+d.scrollX+w,H=E+d.scrollY+v;this.hot.isRtl()&&(P-=T+w),this.hot.isLtr()&&y+S+T>I?P=y+d.scrollX-T-1:this.hot.isRtl()&&P<-(A.scrollWidth-A.clientWidth)&&(P=y+d.scrollX+w+1),E+M>N&&(H-=M-R+1),C(O,this).setPosition(P,H),C(O,this).setReadOnlyState(this.getCommentMeta(r,i,_)),C(O,this).observeSize()}focusEditor(){C(O,this).focus()}updateCommentMeta(e,t,o){const s=this.hot.getCellMeta(e,t)[S];let r;s?(r=(0,l.deepClone)(s),(0,l.deepExtend)(r,o)):r=o,this.hot.setCellMeta(e,t,S,r)}getCommentMeta(e,t,o){const s=this.hot.getCellMeta(e,t);if(s[S])return s[S][o]}addToContextMenu(e){e.items.push({name:u.SEPARATOR},(0,d.default)(this),(0,g.default)(this),(0,f.default)(this))}getEditorInputElement(){return C(O,this).getInputElement()}destroy(){var e,t;null===(e=C(O,this))||void 0===e||e.destroy(),null===(t=C(I,this))||void 0===t||t.destroy(),super.destroy()}}function k(e){if(this.hot.view&&this.hot.view._wt&&!C(N,this)&&!this.targetIsCommentTextArea(e)){const t=(0,n.closest)(e.target,"TD","TBODY");let o=null;t&&(o=this.hot.getCoords(t)),(!t||this.range.from&&o&&(this.range.from.row!==o.row||this.range.from.col!==o.col))&&this.hide()}}function L(e){const{rootDocument:t}=this.hot;if(!(C(N,this)||C(O,this).isFocused()||(0,n.hasClass)(e.target,"wtBorder")||C(P,this)===e.target)&&C(O,this))if(w(P,this,t.elementFromPoint(e.clientX,e.clientY)),this.targetIsCellWithComment(e)){const t=this.hot._createCellRange(this.hot.getCoords(e.target));C(I,this).show(t)}else(0,n.isChildOf)(e.target,t)&&!this.targetIsCommentTextArea(e)&&C(I,this).hide()}function V(){w(N,this,!1)}function F(e,t){t[S]&&t[S][R]&&(0,n.addClass)(e,t.commentedCellClassName)}function W(){w(H,this,""),this.hot.getShortcutManager().setActiveContextName("grid"),this.setComment()}function B(){w(H,this,this.getComment()),this.hot.listen(),this.hot.getShortcutManager().setActiveContextName(M)}function U(e,t){this.updateCommentMeta(this.range.from.row,this.range.from.col,{[b]:{width:e,height:t}})}function j(e){C(O,this).isFocused()&&(0,i.stopImmediatePropagation)(e)}function Y(){C(A,this)||this.hide()}function z(){const e=C(O,this).getEditorElement();(0,n.removeClass)(e,/ht-theme-.*/g),(0,n.addClass)(e,this.hot.getCurrentThemeName())}t.Comments=D},34605:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsAddEdit",name(){var t;const o=null===(t=this.getSelectedRangeLast())||void 0===t?void 0:t.highlight;return null!=o&&o.isCell()&&e.getCommentAtCell(o.row,o.col)?this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_EDIT_COMMENT):this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback(){const t=this.getSelectedRangeLast();e.setRange(t),e.show(),e.focusEditor()},disabled(){const e=this.getSelectedRangeLast();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}},48990:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsReadOnly",name(){const t=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),((t,o)=>e.getCommentMeta(t,o,n.META_READONLY)))?(0,r.markLabelAsSelected)(t):t},callback(){this.getSelectedRangeLast().forAll(((t,o)=>{if(t>=0&&o>=0){const s=!!e.getCommentMeta(t,o,n.META_READONLY);e.updateCommentMeta(t,o,{[n.META_READONLY]:!s})}}))},disabled(){const t=this.getSelectedRangeLast();return!!(!t||t.highlight.isHeader()||!e.getCommentAtCell(t.highlight.row,t.highlight.col)||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(76368),n=o(33671);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}},5180:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsRemove",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback(){this.getSelectedRangeLast().forAll(((t,o)=>{t>=0&&o>=0&&e.removeCommentAtCell(t,o,!1)})),this.render()},disabled(){const e=this.getSelectedRangeLast();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}},8983:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(77515),i=o(95016),l=s(o(32943));class a{constructor(e){(0,r.default)(this,"wasLastActionShow",!0),(0,r.default)(this,"showDebounced",null),(0,r.default)(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout((()=>{!1===this.wasLastActionShow&&this.runLocalHooks("hide")}),250)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,n.debounce)((e=>{this.wasLastActionShow&&this.runLocalHooks("show",e.from.row,e.from.col)}),e)}destroy(){this.clearLocalHooks()}}(0,i.mixin)(a,l.default);t.default=a},63962:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(14846),o(69655);var r=o(95016),n=s(o(32943));function i(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 a(e,t){return e.get(c(e,t))}function h(e,t,o){return e.set(c(e,t),o),o}function c(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 u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakSet;class p{constructor(){var e,t;l(e=this,t=f),t.add(e),i(this,u,!0),i(this,d,null),i(this,g,new ResizeObserver((e=>c(f,this,m).call(this,e))))}setObservedElement(e){h(d,this,e)}unobserve(){a(g,this).unobserve(a(d,this))}observe(){h(u,this,!0),a(g,this).observe(a(d,this))}destroy(){a(g,this).disconnect()}}function m(e){!a(u,this)&&Array.isArray(e)&&e.length?e.forEach((e=>{let{borderBoxSize:t}=e;const{inlineSize:o,blockSize:s}=t[0];this.runLocalHooks("resize",o,s)})):h(u,this,!1)}t.EditorResizeObserver=p,(0,r.mixin)(p,n.default)},28925:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(33671);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.Comments=s.Comments},41485:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(54999);var r=s(o(85707)),n=o(47154),i=o(95016);t.CommandExecutor=class{constructor(e){(0,r.default)(this,"hot",void 0),(0,r.default)(this,"commands",{}),(0,r.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 r=e.split(":"),l=r[0],a=2===r.length?r[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,n.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,i.hasOwnProperty)(h,"submenu"))return;const c=[];"function"==typeof h.callback&&c.push(h.callback),"function"==typeof this.commonCallback&&c.push(this.commonCallback),o.unshift(r.join(":")),(0,n.arrayEach)(c,(e=>e.apply(this.hot,o)))}}},8537:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(9458),i=o(29398),l=o(47154),a=o(95016),h=o(41485),c=o(47843),u=o(43001),d=o(76368),g=o(94916),f=o(37660);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;i.Hooks.getSingleton().register("afterContextMenuDefaultOptions"),i.Hooks.getSingleton().register("beforeContextMenuShow"),i.Hooks.getSingleton().register("afterContextMenuShow"),i.Hooks.getSingleton().register("afterContextMenuHide"),i.Hooks.getSingleton().register("afterContextMenuExecute");var y=new WeakSet;class E extends n.BasePlugin{constructor(){super(...arguments),p(this,y),(0,r.default)(this,"commandExecutor",new h.CommandExecutor(this.hot)),(0,r.default)(this,"itemsFactory",null),(0,r.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.rootDocument.body}),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),s=0;s<t;s++)o[s]=arguments[s];return e.executeCommand.call(e,...o)})),this.addHook("afterOnCellContextMenu",(e=>m(y,this,S).call(this,e))),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.getSelectedRangeLast();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.getSelectedRangeLast())||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};if(null!==(t=this.menu)&&void 0!==t&&t.isOpened())return;this.prepareMenuItems(),this.menu.open();this.menu.tableBorderWidth>0||(o.below+=1,o.right+=1,o.above-=1,o.left-=1),(0,a.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),s=1;s<t;s++)o[s-1]=arguments[s];this.commandExecutor.execute(e,...o)}prepareMenuItems(){this.itemsFactory=new c.ItemsFactory(this.hot,E.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,l.arrayEach)(o,(e=>this.commandExecutor.registerCommand(e.key,e)))}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function S(e){const t=this.hot.getSettings(),o=t.rowHeaders,s=t.colHeaders;const r=e.target;if(this.close(),(0,g.hasClass)(r,"handsontableInput"))return;if(e.preventDefault(),e.stopPropagation(),!o&&!s&&!(function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(r)||(0,g.hasClass)(r,"current")&&(0,g.hasClass)(r,"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=E,E.SEPARATOR={name:f.SEPARATOR}},96917:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(8537);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ContextMenu=s.ContextMenu},47843:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(95016),i=o(47154),l=o(37660);t.ItemsFactory=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,r.default)(this,"hot",void 0),(0,r.default)(this,"predefinedItems",(0,l.predefinedItems)()),(0,r.default)(this,"defaultOrderPattern",void 0),this.hot=e,this.defaultOrderPattern=t}setPredefinedItems(e){const t={};this.defaultOrderPattern.length=0,(0,n.objectEach)(e,((e,o)=>{let s="";e.name===l.SEPARATOR?(t[l.SEPARATOR]=e,s=l.SEPARATOR):isNaN(parseInt(o,10))?(e.key=void 0===e.key?o:e.key,t[o]=e,s=e.key):(t[e.key]=e,s=e.key),this.defaultOrderPattern.push(s)})),this.predefinedItems=t}getItems(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=[];let r=e;r&&r.items?r=r.items:Array.isArray(r)||(r=t);(0,n.isObject)(r)?(0,n.objectEach)(r,((e,t)=>{let r=o["string"==typeof e?e:t];r||(r=e),(0,n.isObject)(e)?(0,n.extend)(r,e):"string"==typeof r&&(r={name:r}),void 0===r.key&&(r.key=t),s.push(r)})):(0,i.arrayEach)(r,((e,t)=>{let r=o[e];!r&&l.ITEMS.indexOf(e)>=0||(r||(r={name:e,key:`${t}`}),(0,n.isObject)(e)&&(0,n.extend)(r,e),void 0===r.key&&(r.key=t),s.push(r))}));return s}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}},61895:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.Cursor=class{constructor(e,t){(0,r.default)(this,"top",void 0),(0,r.default)(this,"topRelative",void 0),(0,r.default)(this,"left",void 0),(0,r.default)(this,"leftRelative",void 0),(0,r.default)(this,"scrollTop",void 0),(0,r.default)(this,"scrollLeft",void 0),(0,r.default)(this,"cellHeight",void 0),(0,r.default)(this,"cellWidth",void 0);const o=t.scrollY,s=t.scrollX;let n,i,l,a,h,c;this.rootWindow=t,this.type=this.getSourceType(e),"literal"===this.type?(n=parseInt(e.top,10),l=parseInt(e.left,10),h=e.height||0,c=e.width||0,i=n,a=l,n+=o,l+=s):"event"===this.type&&(n=parseInt(e.pageY,10),l=parseInt(e.pageX,10),h=e.target.clientHeight,c=e.target.clientWidth,i=n-o,a=l-s),this.top=n,this.topRelative=i,this.left=l,this.leftRelative=a,this.scrollTop=o,this.scrollLeft=s,this.cellHeight=h,this.cellWidth=c}getSourceType(e){let t="literal";return e instanceof Event&&(t="event"),t}fitsAbove(e){return this.topRelative>=e.offsetHeight}fitsBelow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}fitsOnRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}fitsOnLeft(e){return this.leftRelative>=e.offsetWidth}}},61849:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultShortcutsList=function(e){const{hot:t,hotMenu:o}=e;return[{keys:[["Control/Meta","A"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:()=>e.close(!0)},{keys:[["Tab"],["Shift","Tab"]],callback:(o,s)=>{const r=t.getSettings(),n="function"==typeof r.tabMoves?r.tabMoves(o):r.tabMoves;s.includes("shift")?t.selection.transformStart(-n.row,-n.col):t.selection.transformStart(n.row,n.col),e.close(!0)}},{keys:[["Escape"]],callback:()=>e.close()},{keys:[["ArrowDown"]],callback:()=>e.getNavigator().toNextItem()},{keys:[["ArrowUp"]],callback:()=>e.getNavigator().toPreviousItem()},{keys:[["ArrowRight"]],callback:()=>{const t=o.getSelectedLast();if(t){const o=e.openSubMenu(t[0]);o&&o.getNavigator().toFirstItem()}}},{keys:[["ArrowLeft"]],callback:()=>{o.getSelectedLast()&&e.isSubMenu()&&(e.close(),e.isSubMenu()&&e.parentMenu.hotMenu.listen())}},{keys:[["Control/Meta","ArrowUp"],["Home"]],callback:()=>e.getNavigator().toFirstItem()},{keys:[["Control/Meta","ArrowDown"],["End"]],callback:()=>e.getNavigator().toLastItem()},{keys:[["Enter"],["Space"]],callback:t=>{const s=o.getSelectedLast();s&&(o.getSourceDataAtRow(s[0]).submenu?e.openSubMenu(s[0]).getNavigator().toFirstItem():(e.executeCommand(t),e.close(!0)))}},{keys:[["PageUp"]],callback:()=>{o.getSelectedLast()?o.selection.transformStart(-o.countVisibleRows(),0):e.getNavigator().toFirstItem()}},{keys:[["PageDown"]],callback:()=>{o.getSelectedLast()?o.selection.transformStart(o.countVisibleRows(),0):e.getNavigator().toLastItem()}}]}},43001:(e,t,o)=>{"use strict";o(14846),o(69655),t.__esModule=!0;var s=o(19646);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}))},19646:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(56569),i=o(87032),l=o(15022),a=o(37660),h=o(99380),c=s(o(12370)),u=o(47154),d=o(99275),g=o(94916),f=o(40892),p=o(77515),m=o(95768),w=o(95016),C=s(o(32943)),v=o(90534),y=o(45551);function E(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function S(e,t,o){return e.set(b(e,t),o),o}function R(e,t){return e.get(b(e,t))}function b(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 _=new WeakMap,T=new WeakMap,M=new WeakMap;class O{get tableBorderWidth(){return void 0===R(M,this)&&this.hotMenu&&S(M,this,parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth,10)),R(M,this)}constructor(e,t){var o=this;(0,r.default)(this,"hot",void 0),(0,r.default)(this,"options",void 0),(0,r.default)(this,"eventManager",new c.default(this)),(0,r.default)(this,"container",void 0),(0,r.default)(this,"positioner",void 0),(0,r.default)(this,"hotMenu",null),(0,r.default)(this,"hotSubMenus",{}),(0,r.default)(this,"parentMenu",void 0),(0,r.default)(this,"menuItems",null),(0,r.default)(this,"origOutsideClickDeselects",null),E(this,_,void 0),E(this,T,void 0),E(this,M,void 0),this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootDocument.documentElement},this.container=this.createContainer(this.options.name),this.positioner=new n.Positioner(this.options.keepInViewport),this.parentMenu=this.options.parent||null,this.registerEvents(),this.isSubMenu()&&this.addLocalHook("afterSelectionChange",(function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.parentMenu.runLocalHooks("afterSelectionChange",...t)})),this.hot.addHook("afterSetTheme",((e,t)=>{var o;t||(null===(o=this.hotMenu)||void 0===o||o.useTheme(e))}))}registerEvents(){let e=this.hot.rootWindow;for(;e;)this.eventManager.addEventListener(e.document,"mousedown",(e=>this.onDocumentMouseDown(e))),this.eventManager.addEventListener(e.document,"touchstart",(e=>this.onDocumentMouseDown(e))),this.eventManager.addEventListener(e.document,"contextmenu",(e=>this.onDocumentContextMenu(e))),e=(0,g.getParentWindow)(e)}setMenuItems(e){this.menuItems=e}getNavigator(){return R(_,this)}getKeyboardShortcutsCtrl(){return R(T,this)}getSelectedItem(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedLast())}isSubMenu(){return null!==this.parentMenu}open(){this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";const e=(0,p.debounce)((e=>this.openSubMenu(e)),300),t=this.options.minWidth||215;let o=!1,s=(0,u.arrayFilter)(this.menuItems,(e=>(e.key===a.NO_ITEMS&&(o=!0),(0,h.isItemHidden)(e,this.hot))));if(s.length<1&&!o)s.push((0,a.predefinedItems)()[a.NO_ITEMS]);else if(0===s.length)return;s=(0,h.filterSeparators)(s,a.SEPARATOR);let r=!1;const n={data:s,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:e=>(0,m.isDefined)(e)&&e<t?t:e,autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,hiddenRows:!0,maxCols:1,columns:[{data:"name",renderer:(0,v.createMenuItemRenderer)(this.hot)}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",ariaTags:!1,themeName:this.hot.getCurrentThemeName(),beforeOnCellMouseOver:(e,t)=>{R(_,this).setCurrentPage(t.row)},afterOnCellMouseOver:(t,o)=>{this.isAllSubMenusClosed()?e(o.row):this.openSubMenu(o.row)},rowHeights:e=>s[e].name===a.SEPARATOR?1:void 0,afterOnCellContextMenu:e=>{e.preventDefault(),(0,d.isWindowsOS)()&&r&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,o,s,r)=>{this.hotMenu.view.isMouseDown()&&(r.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(r=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,f.isRightClick)(e)||!r||!this.hasSelectedItem()||((0,d.isMobileBrowser)()||(0,d.isIpadOS)()?this.hot._registerTimeout((()=>this.close(!0)),325):this.close(!0))},afterUnlisten:()=>{!this.hasSelectedItem()&&this.isOpened()&&this.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new this.hot.constructor(this.container,n),this.hotMenu.addHook("afterInit",(()=>this.onAfterInit())),this.hotMenu.init(),S(_,this,(0,i.createMenuNavigator)(this.hotMenu)),S(T,this,(0,l.createKeyboardShortcutsCtrl)(this)),R(T,this).listen(),this.focus(),this.isSubMenu()&&this.addLocalHook("afterOpen",(()=>this.parentMenu.runLocalHooks("afterSubmenuOpen",this))),this.runLocalHooks("afterOpen",this)}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isOpened())if(e&&this.isSubMenu())this.parentMenu.close();else if(R(_,this).clear(),this.closeAllSubMenus(),this.container.style.display="none",this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.isSubMenu()){if(this.hot.getSettings().ariaTags){const e=this.parentMenu.hotMenu.getSelectedLast();if(e){const t=this.parentMenu.hotMenu.getCell(e[0],0);(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!1)])}}this.parentMenu.hotMenu.listen()}}openSubMenu(e){if(!this.hotMenu)return!1;const t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!(0,h.hasSubMenu)(t))return!1;const o=this.hotMenu.getSourceDataAtRow(e),s=new O(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return s.setMenuItems(o.submenu.items),s.open(),s.setPosition(t.getBoundingClientRect()),this.hotSubMenus[o.key]=s,this.hot.getSettings().ariaTags&&(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!0)]),s}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),o=this.hotSubMenus[t.key];if(o){o.destroy(),delete this.hotSubMenus[t.key];const s=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,g.setAttribute)(s,[(0,y.A11Y_EXPANDED)(!1)])}}closeAllSubMenus(){(0,u.arrayEach)(this.hotMenu.getData(),((e,t)=>this.closeSubMenu(t)))}isAllSubMenusClosed(){return 0===Object.keys(this.hotSubMenus).length}focus(){this.isOpened()&&(this.hotMenu.rootElement.focus({preventScroll:!0}),this.getKeyboardShortcutsCtrl().listen(),this.hotMenu.listen())}destroy(){const e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}isOpened(){return null!==this.hotMenu}executeCommand(e){if(!this.isOpened()||!this.hasSelectedItem())return;const t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),this.isCommandPassive(t))return;const o=this.hot.getSelectedRange(),s=o?(0,h.normalizeSelection)(o):[];this.runLocalHooks("executeCommand",t.key,s,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,s,e)}isCommandPassive(e){return!1===e.isCommand||(0,h.isItemSeparator)(e)||(0,h.isItemDisabled)(e,this.hot)||(0,h.isItemSubMenu)(e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.positioner.setOffset(e,t)}setPosition(e){this.isSubMenu()&&this.positioner.setParentElement(this.parentMenu.container),this.positioner.setElement(this.container).updatePosition(e)}updateMenuDimensions(){const{wtTable:e}=this.hotMenu.view._wt,t=this.hotMenu.getSettings().data,o=e.hider.style,s=e.holder.style,r=parseInt(o.width,10),n=(0,u.arrayReduce)(t,((e,t,o)=>{const s=this.hotMenu.getCell(o,0)?(0,g.outerHeight)(this.hotMenu.getCell(o,0)):0;return e+(t.name===a.SEPARATOR?1:s)}),0);s.width=`${r}px`,s.height=`${n}px`,o.height=s.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let o,s=e;return s&&((0,p.isFunction)(s)&&(s=s.call(this.hot),s=null===s||(0,m.isUndefined)(s)?"":s.toString()),s=s.replace(/[^A-z0-9]/g,"_"),s=`${this.options.className}Sub_${s}`,o=t.querySelector(`.${this.options.className}.${s}`)),o||(o=t.createElement("div"),(0,g.addClass)(o,`htMenu ${this.options.className}`),s&&(0,g.addClass)(o,s),this.options.container.appendChild(o)),o}onAfterInit(){this.updateMenuDimensions(),this.hot.getSettings().ariaTags&&(0,g.setAttribute)(this.hotMenu.rootElement,[(0,y.A11Y_MENU)(),(0,y.A11Y_TABINDEX)(-1)])}onDocumentMouseDown(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,g.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,g.isChildOf)(e.target,".htMenu")||this.close(!0))}onDocumentContextMenu(e){this.isOpened()&&(0,g.hasClass)(e.target,"htCore")&&(0,g.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}t.Menu=O,(0,w.mixin)(O,C.default)},90534:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMenuItemRenderer=function(e){return(t,o,i,l,a,h)=>{const c=t.getSourceDataAtRow(i),u=e.rootDocument.createElement("div"),d="function"==typeof h?h.call(e):h,g="function"==typeof c.ariaLabel?c.ariaLabel.call(e):c.ariaLabel,f="function"==typeof c.ariaChecked?c.ariaChecked.call(e):c.ariaChecked;if((0,r.empty)(o),(0,r.addClass)(u,"htItemWrapper"),e.getSettings().ariaTags){const t=!(0,s.isItemDisabled)(c,e)&&!(0,s.isItemSelectionDisabled)(c)&&!(0,s.isItemSeparator)(c);(0,r.setAttribute)(o,[...(0,s.isItemCheckable)(c)?[(0,n.A11Y_MENU_ITEM_CHECKBOX)(),(0,n.A11Y_LABEL)(g),(0,n.A11Y_CHECKED)(f)]:[(0,n.A11Y_MENU_ITEM)(),(0,n.A11Y_LABEL)(d)],...t?[(0,n.A11Y_TABINDEX)(-1)]:[],...(0,s.isItemDisabled)(c,e)?[(0,n.A11Y_DISABLED)()]:[],...(0,s.isItemSubMenu)(c)?[(0,n.A11Y_EXPANDED)(!1)]:[]])}o.className="",o.appendChild(u),(0,s.isItemSeparator)(c)?(0,r.addClass)(o,"htSeparator"):"function"==typeof c.renderer?((0,r.addClass)(o,"htCustomMenuRenderer"),o.appendChild(c.renderer(t,u,i,l,a,d))):(0,r.fastInnerHTML)(u,d),(0,s.isItemDisabled)(c,e)?(0,r.addClass)(o,"htDisabled"):(0,s.isItemSelectionDisabled)(c)?(0,r.addClass)(o,"htSelectionDisabled"):(0,s.isItemSubMenu)(c)&&(0,r.addClass)(o,"htSubmenu")}};var s=o(99380),r=o(94916),n=o(45551)},87032:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMenuNavigator=function(e){return(0,s.createPaginator)({size:()=>e.countRows(),onItemSelect(t,o){const s=e.getCell(t,0);if(!s||(0,r.isSeparator)(s)||(0,r.isDisabled)(s)||(0,r.isSelectionDisabled)(s))return!1;e.selectCell(t,0,...o?[t,0,!1,!1]:[])},onClear(){e.deselectCell()}})};var s=o(77316),r=o(99380)},56569:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834);var s=o(61895);function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(l(e,t))}function i(e,t,o){return e.set(l(e,t),o),o}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 a=new WeakMap,h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap;t.Positioner=class{constructor(e){r(this,a,void 0),r(this,h,void 0),r(this,c,void 0),r(this,u,!1),r(this,d,{above:0,below:0,left:0,right:0}),i(u,this,e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n(d,this)[e]=t,this}setElement(e){return i(a,this,e),this}setParentElement(e){return i(h,this,e),this}updatePosition(e){i(c,this,new s.Cursor(e,n(a,this).ownerDocument.defaultView)),n(u,this)?(n(c,this).fitsBelow(n(a,this))?this.setPositionBelowCursor():n(c,this).fitsAbove(n(a,this))?this.setPositionAboveCursor():this.setPositionBelowCursor(),this.updateHorizontalPosition()):(this.setPositionBelowCursor(),this.setPositionOnRightOfCursor())}updateHorizontalPosition(){"rtl"===n(a,this).dir?n(c,this).fitsOnLeft(n(a,this))?this.setPositionOnLeftOfCursor():this.setPositionOnRightOfCursor():n(c,this).fitsOnRight(n(a,this))?this.setPositionOnRightOfCursor():this.setPositionOnLeftOfCursor()}setPositionAboveCursor(){let e=n(d,this).above+n(c,this).top-n(a,this).offsetHeight;n(h,this)&&(e=n(c,this).top+n(c,this).cellHeight-n(a,this).offsetHeight+3),n(a,this).style.top=`${e}px`}setPositionBelowCursor(){let e=n(d,this).below+n(c,this).top+1;n(h,this)&&(e=n(c,this).top-1),n(a,this).style.top=`${e}px`}setPositionOnRightOfCursor(){let e=n(c,this).left;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView,o=Number.parseInt(t.getComputedStyle(n(h,this).querySelector(".htCore")).borderRightWidth,10);e+=n(c,this).cellWidth+o}else e+=n(d,this).right;n(a,this).style.left=`${e}px`}setPositionOnLeftOfCursor(){let e=n(d,this).left+n(c,this).left-n(a,this).offsetWidth;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView;e-=Number.parseInt(t.getComputedStyle(n(h,this).querySelector(".htCore")).borderLeftWidth,10)}n(a,this).style.left=`${e}px`}}},15022:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutsCtrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const o=[];function i(e,t){h(t).addShortcuts(e,{group:r})}function l(e,t){const s=h(t);e.forEach((e=>{let{keys:t}=e;t.forEach((e=>s.removeShortcutsByKeys(e)))})),o.push({shortcuts:e,contextName:t}),i(e,t)}function a(e){return e?`${n}:${e}`:n}function h(t){var o;const s=e.hotMenu.getShortcutManager(),r=a(t);return null!==(o=s.getContext(r))&&void 0!==o?o:s.addContext(r)}return i((0,s.createDefaultShortcutsList)(e)),t.forEach((e=>{let{shortcuts:t,contextName:o}=e;l(t,o)})),{addCustomShortcuts:l,getCustomShortcuts:function(){return[...o]},getContext:h,listen:function(t){e.hotMenu.getShortcutManager().setActiveContextName(a(t))}}},o(15724),o(14846),o(69655);var s=o(61849);const r="menu",n=r},99380:(e,t,o)=>{"use strict";t.__esModule=!0,t.filterSeparators=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.SEPARATOR,o=e.slice(0);return o=l(o,t),o=function(e,t){let o=e.slice(0);return o.reverse(),o=l(o,t),o.reverse(),o}(o,t),o=function(e){const t=[];return(0,s.arrayEach)(e,((e,o)=>{o>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)})),t}(o),o},t.hasSubMenu=function(e){return(0,n.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,n.hasClass)(e,"htDisabled")},t.isItemCheckable=function(e){return!0===e.checkable},t.isItemDisabled=function(e,t){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(t)},t.isItemHidden=function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))},t.isItemSelectionDisabled=function(e){return(0,r.hasOwnProperty)(e,"disableSelection")},t.isItemSeparator=function(e){return new RegExp(i.SEPARATOR,"i").test(e.name)},t.isItemSubMenu=function(e){return(0,r.hasOwnProperty)(e,"submenu")},t.isSelectionDisabled=function(e){return(0,n.hasClass)(e,"htSelectionDisabled")},t.isSeparator=function(e){return(0,n.hasClass)(e,"htSeparator")},t.normalizeSelection=function(e){return(0,s.arrayMap)(e,(e=>({start:e.getTopStartCorner(),end:e.getBottomEndCorner()})))},o(15724);var s=o(47154),r=o(95016),n=o(94916),i=o(37660);function l(e,t){const o=e.slice(0);for(let e=0;e<o.length&&o[e].name===t;)o.shift();return o}},91077:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:l,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();return!e||(!!e.isSingleHeader()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner()))},submenu:{items:[{key:`${l}:left`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="horizontal",r="htLeft";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1},{key:`${l}:center`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="horizontal",r="htCenter";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1},{key:`${l}:right`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="horizontal",r="htRight";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1},{key:`${l}:justify`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="horizontal",r="htJustify";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1},{name:r.KEY},{key:`${l}:top`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_TOP)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="vertical",r="htTop";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1},{key:`${l}:middle`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="vertical",r="htMiddle";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1},{key:`${l}:bottom`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="vertical",r="htBottom";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1}]}}};var s=o(76368),r=o(20127),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.KEY="alignment"},98299:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,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(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="clear_column"},39573:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback(){const e=this.getSelectedRangeLast().getTopLeftCorner(),t=this.isRtl()?"insert_col_end":"insert_col_start";this.alter(t,e.col,1,"ContextMenu.columnLeft")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;if(this.selection.isSelectedByCorner()){return 0===this.countCols()}return this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols},hidden(){return!this.getSettings().allowInsertColumn}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="col_left"},55988:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback(){const e=this.getSelectedRangeLast().getTopRightCorner(),t=this.isRtl()?"insert_col_start":"insert_col_end";this.alter(t,e.col,1,"ContextMenu.columnRight")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();return!e||(!!(e.isSingleHeader()&&e.highlight.col<0)||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols))},hidden(){return!this.getSettings().allowInsertColumn}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="col_right"},37660:(e,t,o)=>{"use strict";t.__esModule=!0,t.addItem=function(e,t){-1===v.indexOf(e)&&(y[e]=t)},t.predefinedItems=function(){const e={};return(0,s.objectEach)(y,((t,o)=>{e[o]=t()})),e};var s=o(95016),r=C(o(91077));t.ALIGNMENT=r.KEY;var n=C(o(98299));t.CLEAR_COLUMN=n.KEY;var i=C(o(39573));t.COLUMN_LEFT=i.KEY;var l=C(o(55988));t.COLUMN_RIGHT=l.KEY;var a=C(o(57296));t.READ_ONLY=a.KEY;var h=C(o(3934));t.REDO=h.KEY;var c=C(o(98904));t.REMOVE_COLUMN=c.KEY;var u=C(o(9380));t.REMOVE_ROW=u.KEY;var d=C(o(81899));t.ROW_ABOVE=d.KEY;var g=C(o(69707));t.ROW_BELOW=g.KEY;var f=C(o(20127));t.SEPARATOR=f.KEY;var p=C(o(9133));t.NO_ITEMS=p.KEY;var m=C(o(46952));function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(w=function(e){return e?o:t})(e)}function C(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=w(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}t.UNDO=m.KEY;const v=t.ITEMS=[d.KEY,g.KEY,i.KEY,l.KEY,n.KEY,u.KEY,c.KEY,m.KEY,h.KEY,a.KEY,r.KEY,f.KEY,p.KEY],y={[f.KEY]:f.default,[p.KEY]:p.default,[d.KEY]:d.default,[g.KEY]:g.default,[i.KEY]:i.default,[l.KEY]:l.default,[n.KEY]:n.default,[u.KEY]:u.default,[c.KEY]:c.default,[m.KEY]:m.default,[h.KEY]:h.default,[a.KEY]:a.default,[r.KEY]:r.default}},9133:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_NO_ITEMS)},disabled:!0,isCommand:!1}};var s=o(21571);const r=t.KEY="no_items"},57296:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:l,checkable:!0,ariaChecked(){return(0,s.checkSelectionConsistency)(this.getSelectedRange(),((e,t)=>this.getCellMeta(e,t).readOnly))},ariaLabel(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(n.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,r.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(76368),r=o(47154),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.KEY="make_read_only"},3934:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REDO)},callback(){this.redo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="redo"},98904:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,o,,s]=e[0];o-s!=0&&(t=1)}return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,s.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}};var s=o(85569),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.KEY="remove_col"},9380:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[o,,s]=e[0];o-s!=0&&(t=1)}return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_REMOVE_ROW,t)},callback(){this.alter("remove_row",(0,s.transformSelectionToRowDistance)(this),1,"ContextMenu.removeRow")},disabled(){const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.row<0)return!0;const t=this.countRows();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByColumnHeader()||0===t},hidden(){return!this.getSettings().allowRemoveRow}}};var s=o(85569),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.KEY="remove_row"},81899:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback(){const e=this.getSelectedRangeLast().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled(){const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.row<0)return!0;if(this.selection.isSelectedByCorner()){return 0===this.countRows()}return this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows},hidden(){return!this.getSettings().allowInsertRow}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="row_above"},69707:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,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||(!!(e.isSingleHeader()&&e.highlight.row<0)||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows))},hidden(){return!this.getSettings().allowInsertRow}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="row_below"},20127:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){return{name:o}};const o=t.KEY="---------"},46952:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_UNDO)},callback(){this.undo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isUndoAvailable()}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="undo"},76368:(e,t,o)=>{"use strict";t.__esModule=!0,t.align=function(e,t,o,i,l){(0,s.arrayEach)(e,(e=>{e.forAll(((e,s)=>{e>=0&&s>=0&&function(e,t,o,s,i,l){const a=i(e,t);let h=s;a.className&&(h="vertical"===o?r(a.className,s):n(a.className,s));l(e,t,"className",h)}(e,s,t,o,i,l)}))}))},t.checkSelectionConsistency=function(e,t){let o=!1;Array.isArray(e)&&(0,s.arrayEach)(e,(e=>(e.forAll(((e,s)=>{if(e>=0&&s>=0&&t(e,s))return o=!0,!1})),o)));return o},t.getAlignmentClasses=function(e,t){const o={};return(0,s.arrayEach)(e,(e=>{e.forAll(((e,s)=>{e>=0&&s>=0&&(o[e]||(o[e]=[]),o[e][s]=t(e,s))}))})),o},t.getAlignmentComparatorByClass=function(e){return function(t,o){const s=this.getCellMeta(t,o).className;return s&&-1!==s.indexOf(e)}},t.getDocumentOffsetByElement=function(e,t){const o={top:0,left:0};if(t!==e.ownerDocument){const{frameElement:e}=t.defaultView,{top:s,left:r}=e.getBoundingClientRect();o.top=s,o.left=r}return o},t.markLabelAsSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.prepareHorizontalAlignClass=n,t.prepareVerticalAlignClass=r;var s=o(47154);function r(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","")} ${t}`}function n(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","")} ${t}`}},68431:(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}}},59824:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY)},callback(){e.copyCellsOnly()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(21571)},35636:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_column_headers_only",name(){const e=this.getSelectedRangeLast(),t=e?(0,r.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,t)},callback(){e.copyColumnHeadersOnly()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(21571),r=o(36926)},21869:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeLast(),t=e?(0,r.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(21571),r=o(36926)},5574:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_headers",name(){const e=this.getSelectedRangeLast(),t=e?(0,r.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS,t)},callback(){e.copyWithColumnHeaders()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(21571),r=o(36926)},83721:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"cut",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_CUT)},callback(){e.cut()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}},57401:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(27458),o(94364);var r=s(o(85707)),n=o(9458),i=o(29398),l=o(74961),a=o(47154),h=o(83414),c=o(94916),u=o(99275),d=s(o(59824)),g=s(o(35636)),f=s(o(21869)),p=s(o(5574)),m=s(o(83721)),w=s(o(94304)),C=o(33174),v=o(19310);function y(e,t,o){E(e,t),t.set(e,o)}function E(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function S(e,t){return e.get(b(e,t))}function R(e,t,o){return e.set(b(e,t),o),o}function b(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")}i.Hooks.getSingleton().register("afterCopyLimit"),i.Hooks.getSingleton().register("modifyCopyableRange"),i.Hooks.getSingleton().register("beforeCut"),i.Hooks.getSingleton().register("afterCut"),i.Hooks.getSingleton().register("beforePaste"),i.Hooks.getSingleton().register("afterPaste"),i.Hooks.getSingleton().register("beforeCopy"),i.Hooks.getSingleton().register("afterCopy");const _=t.PLUGIN_KEY="copyPaste",T=t.PLUGIN_PRIORITY=80,M=["fragmentSelection"],O=['<meta name="generator" content="Handsontable"/>','<style type="text/css">td{white-space:normal}br{mso-data-placement:same-cell}</style>'].join("");var I=new WeakMap,N=new WeakMap,A=new WeakMap,P=new WeakMap,H=new WeakMap,x=new WeakMap,D=new WeakMap,k=new WeakMap,L=new WeakSet;class V extends n.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=L),t.add(e),(0,r.default)(this,"columnsLimit",1/0),(0,r.default)(this,"rowsLimit",1/0),(0,r.default)(this,"pasteMode","overwrite"),(0,r.default)(this,"uiContainer",this.hot.rootDocument.body),y(this,I,!1),y(this,N,!1),y(this,A,!1),y(this,P,"cells-only"),y(this,H,!1),y(this,x,!1),y(this,D,new C.CopyableRangesFactory({countRows:()=>this.hot.countRows(),countColumns:()=>this.hot.countCols(),rowsLimit:()=>this.rowsLimit,columnsLimit:()=>this.columnsLimit,countColumnHeaders:()=>this.hot.view.getColumnHeadersCount()})),y(this,k,!1),(0,r.default)(this,"copyableRanges",[])}static get PLUGIN_KEY(){return _}static get SETTING_KEYS(){return[_,...M]}static get PLUGIN_PRIORITY(){return T}static get DEFAULT_SETTINGS(){return{pasteMode:"overwrite",rowsLimit:1/0,columnsLimit:1/0,copyColumnHeaders:!1,copyColumnGroupHeaders:!1,copyColumnHeadersOnly:!1}}isEnabled(){return!!this.hot.getSettings()[_]}enablePlugin(){var e,t,o=this;this.enabled||(this.pasteMode=null!==(e=this.getSetting("pasteMode"))&&void 0!==e?e:this.pasteMode,this.rowsLimit=isNaN(this.getSetting("rowsLimit"))?this.rowsLimit:this.getSetting("rowsLimit"),this.columnsLimit=isNaN(this.getSetting("columnsLimit"))?this.columnsLimit:this.getSetting("columnsLimit"),R(I,this,this.getSetting("copyColumnHeaders")),R(N,this,this.getSetting("copyColumnGroupHeaders")),R(A,this,this.getSetting("copyColumnHeadersOnly")),this.uiContainer=null!==(t=this.getSetting("uiContainer"))&&void 0!==t?t:this.uiContainer,this.addHook("afterContextMenuDefaultOptions",(e=>b(L,this,j).call(this,e))),this.addHook("afterSelection",(function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return b(L,o,Y).call(o,...t)})),this.addHook("afterSelectionEnd",(()=>b(L,this,z).call(this))),this.eventManager.addEventListener(this.hot.rootDocument,"copy",(function(){return o.onCopy(...arguments)})),this.eventManager.addEventListener(this.hot.rootDocument,"cut",(function(){return o.onCut(...arguments)})),this.eventManager.addEventListener(this.hot.rootDocument,"paste",(function(){return o.onPaste(...arguments)})),(0,u.isSafari)()&&(this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseenter",(function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return b(L,o,G).call(o,...t)})),this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseleave",(function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return b(L,o,K).call(o,...t)})),this.addHook("afterSelection",(()=>b(L,this,$).call(this)))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin()}copy(){R(P,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cells-only"),R(H,this,!0),b(L,this,F).call(this,"copy")}copyCellsOnly(){this.copy("cells-only")}copyColumnHeadersOnly(){this.copy("column-headers-only")}copyWithAllColumnHeaders(){this.copy("with-column-group-headers")}copyWithColumnHeaders(){this.copy("with-column-headers")}cut(){R(x,this,!0),b(L,this,F).call(this,"cut")}getRangedCopyableData(e){return(0,l.stringify)(this.getRangedData(e))}getRangedData(e){const t=[],{rows:o,columns:s}=(0,C.normalizeRanges)(e);return(0,a.arrayEach)(o,(e=>{const o=[];(0,a.arrayEach)(s,(t=>{e<0?o.push(this.hot.getColHeader(t,e)):o.push(this.hot.getCopyableData(e,t))})),t.push(o)})),t}paste(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(!e&&!t)return;const o=new w.default;e&&o.clipboardData.setData("text/plain",e),t&&o.clipboardData.setData("text/html",t),this.onPaste(o)}setCopyableText(){const e=this.hot.getSelectedRangeLast();if(!e)return;if(e.isSingleHeader())return void(this.copyableRanges=[]);S(D,this).setSelectedRange(e);const t=new Map([["headers",null],["cells",null]]);"column-headers-only"===S(P,this)?t.set("headers",S(D,this).getMostBottomColumnHeadersRange()):("with-column-headers"===S(P,this)?t.set("headers",S(D,this).getMostBottomColumnHeadersRange()):"with-column-group-headers"===S(P,this)&&t.set("headers",S(D,this).getAllColumnHeadersRange()),t.set("cells",S(D,this).getCellsRange())),this.copyableRanges=Array.from(t.values()).filter((e=>null!==e)).map((e=>{let{startRow:t,startCol:o,endRow:s,endCol:r}=e;return{startRow:t,startCol:o,endRow:s,endCol:r}})),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges);const o=t.get("cells");if(null!==o&&o.isRangeTrimmed){const{startRow:e,startCol:t,endRow:s,endCol:r}=o;this.hot.runHooks("afterCopyLimit",s-e+1,r-t+1,this.rowsLimit,this.columnsLimit)}}isEditorOpened(){var e;return null===(e=this.hot.getActiveEditor())||void 0===e?void 0:e.isOpened()}populateValues(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.getSelectedRangeLast();if(!e.length)return;const o=e.length,s=e[0].length,r=[],{row:n,col:i}=t.getTopStartCorner(),{row:l,col:a}=t.getBottomEndCorner();let h=n,c=i,u=n,d=i;for(;r.length<o||h<=l;){const{skipRowOnPaste:t,visualRow:l}=this.hot.getCellMeta(h,i);if(h=l+1,!0===t)continue;u=l,c=i;const g=[],f=r.length%o;for(;g.length<s||c<=a;){const{skipColumnOnPaste:t,visualCol:o}=this.hot.getCellMeta(n,c);if(c=o+1,!0===t)continue;d=o;const r=g.length%s;g.push(e[f][r])}r.push(g)}return R(k,this,!0),this.hot.populateFromArray(n,i,r,void 0,void 0,"CopyPaste.paste",this.pasteMode),[n,i,u,d]}onCopy(e){var t;const o=this.hot.getFocusManager().getRefocusElement(),s=null===(t=e.target)||void 0===t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!S(H,this)||this.isEditorOpened()||e.target instanceof HTMLElement&&(s&&e.target!==o||!s&&e.target!==this.hot.rootDocument.body))return;e.preventDefault(),this.setCopyableText(),R(H,this,!1);const r=this.getRangedData(this.copyableRanges),n=b(L,this,W).call(this,this.copyableRanges);if(!!this.hot.runHooks("beforeCopy",r,this.copyableRanges,n)){const t=(0,l.stringify)(r);if(e&&e.clipboardData){const o=(0,v._dataToHTML)(r,this.hot.rootDocument);e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",[O,o].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",t);this.hot.runHooks("afterCopy",r,this.copyableRanges,n)}R(P,this,"cells-only")}onCut(e){var t;const o=this.hot.getFocusManager().getRefocusElement(),s=null===(t=e.target)||void 0===t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!S(x,this)||this.isEditorOpened()||e.target instanceof HTMLElement&&(s&&e.target!==o||!s&&e.target!==this.hot.rootDocument.body))return;e.preventDefault(),this.setCopyableText(),R(x,this,!1);const r=this.getRangedData(this.copyableRanges);if(!!this.hot.runHooks("beforeCut",r,this.copyableRanges)){const t=(0,l.stringify)(r);if(e&&e.clipboardData){const o=(0,v._dataToHTML)(r,this.hot.rootDocument);e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",[O,o].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",t);this.hot.emptySelectedCells("CopyPaste.cut"),this.hot.runHooks("afterCut",r,this.copyableRanges)}}onPaste(e){var t;const o=this.hot.getFocusManager().getRefocusElement(),s=null===(t=e.target)||void 0===t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()||this.isEditorOpened()||!this.hot.getSelected()||e.target instanceof HTMLElement&&(s&&e.target!==o||!s&&e.target!==this.hot.rootDocument.body))return;let r;if(e.preventDefault(),e&&void 0!==e.clipboardData){const t=(0,h.sanitize)(e.clipboardData.getData("text/html"),{ADD_TAGS:["meta"],ADD_ATTR:["content"],FORCE_BODY:!0});if(t&&/(<table)|(<TABLE)/g.test(t)){r=(0,v.htmlToGridSettings)(t,this.hot.rootDocument).data}else r=e.clipboardData.getData("text/plain")}else"undefined"==typeof ClipboardEvent&&void 0!==this.hot.rootWindow.clipboardData&&(r=this.hot.rootWindow.clipboardData.getData("Text"));if("string"==typeof r&&(r=(0,l.parse)(r)),void 0===r||r&&0===r.length)return;if(!1===this.hot.runHooks("beforePaste",r,this.copyableRanges))return;const[n,i,a,c]=this.populateValues(r);this.hot.selectCell(n,i,Math.min(this.hot.countRows()-1,a),Math.min(this.hot.countCols()-1,c)),this.hot.runHooks("afterPaste",r,this.copyableRanges)}destroy(){super.destroy()}}function F(e){if((0,u.isSafari)()){const t=this.hot.getSelectedRangeLast();if(t){const{row:o,col:s}=t.highlight,r=this.hot.getCell(o,s,!0);r&&(0,c.runWithSelectedContendEditableElement)(r,(()=>{this.hot.rootDocument.execCommand(e)}))}}else this.hot.rootDocument.execCommand(e)}function W(e){const{rows:t}=(0,C.normalizeRanges)(e);let o=0;for(let e=0;e<t.length&&!(t[e]>=0);e++)o+=1;return{columnHeadersCount:o}}function B(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeLast();if(e){const{row:t,col:o}=e.highlight,s=this.hot.getCell(t,o,!0);s&&(0,c.makeElementContentEditableAndSelectItsContent)(s)}}}function U(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeLast();if(e){const{row:t,col:o}=e.highlight,s=this.hot.getCell(t,o,!0);null!=s&&s.hasAttribute("contenteditable")&&(0,c.removeContentEditableFromElementAndDeselect)(s)}}}function j(e){e.items.push({name:"---------"},(0,d.default)(this)),S(I,this)&&e.items.push((0,p.default)(this)),S(N,this)&&e.items.push((0,f.default)(this)),S(A,this)&&e.items.push((0,g.default)(this)),e.items.push((0,m.default)(this))}function Y(e,t,o,s,r){S(k,this)&&(r.value=!0),R(k,this,!1)}function z(){this.isEditorOpened()||this.hot.getSettings().fragmentSelection||this.setCopyableText()}function G(){b(L,this,U).call(this)}function K(){b(L,this,B).call(this)}function $(){b(L,this,U).call(this)}t.CopyPaste=V},33174:(e,t,o)=>{"use strict";t.__esModule=!0,t.normalizeRanges=function(e){const t=[],o=[];return(0,s.arrayEach)(e,(e=>{const s=Math.min(e.startRow,e.endRow),n=Math.max(e.startRow,e.endRow);(0,r.rangeEach)(s,n,(e=>{-1===t.indexOf(e)&&t.push(e)}));const i=Math.min(e.startCol,e.endCol),l=Math.max(e.startCol,e.endCol);(0,r.rangeEach)(i,l,(e=>{-1===o.indexOf(e)&&o.push(e)}))})),{rows:t,columns:o}},o(67834),o(15724);var s=o(47154),r=o(36926);function n(e,t,o){i(e,t),t.set(e,o)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(h(e,t))}function a(e,t,o){return e.set(h(e,t),o),o}function h(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 c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakSet;function w(e,t){return Math.min(t,Math.max(e+l(f,this).call(this)-1,e))}function C(e,t){return Math.min(t,Math.max(e+l(g,this).call(this)-1,e))}t.CopyableRangesFactory=class{constructor(e){let{countRows:t,countColumns:o,rowsLimit:s,columnsLimit:r,countColumnHeaders:l}=e;var h,w;i(h=this,w=m),w.add(h),n(this,c,void 0),n(this,u,void 0),n(this,d,void 0),n(this,g,void 0),n(this,f,void 0),n(this,p,void 0),a(u,this,t),a(d,this,o),a(g,this,s),a(f,this,r),a(p,this,l)}setSelectedRange(e){a(c,this,e)}getCellsRange(){if(0===l(u,this).call(this)||0===l(d,this).call(this))return null;const{row:e,col:t}=l(c,this).getTopStartCorner(),{row:o,col:s}=l(c,this).getBottomEndCorner(),r=h(m,this,C).call(this,e,o),n=h(m,this,w).call(this,t,s);return{isRangeTrimmed:o!==r||s!==n,startRow:e,startCol:t,endRow:r,endCol:n}}getMostBottomColumnHeadersRange(){if(0===l(d,this).call(this)||0===l(p,this).call(this))return null;const{col:e}=l(c,this).getTopStartCorner(),{col:t}=l(c,this).getBottomEndCorner(),o=h(m,this,w).call(this,e,t);return{isRangeTrimmed:t!==o,startRow:-1,startCol:e,endRow:-1,endCol:o}}getAllColumnHeadersRange(){if(0===l(d,this).call(this)||0===l(p,this).call(this))return null;const{col:e}=l(c,this).getTopStartCorner(),{col:t}=l(c,this).getBottomEndCorner(),o=h(m,this,w).call(this,e,t);return{isRangeTrimmed:t!==o,startRow:-l(p,this).call(this),startCol:e,endRow:-1,endCol:o}}}},35333:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(57401);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.CopyPaste=s.CopyPaste},94304:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(68431));t.default=class{constructor(){this.clipboardData=new r.default}preventDefault(){}}},87428:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name(){let e=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,r.checkSelectionBorders)(this,"bottom")&&(e=(0,r.markSelected)(e)),e},callback(t,o){const s=(0,r.checkSelectionBorders)(this,"bottom");e.prepareBorder(o,"bottom",s)}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(8606);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}},53711:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(87428));t.bottom=r.default;var n=s(o(21158));t.left=n.default;var i=s(o(84085));t.noBorders=i.default;var l=s(o(43729));t.right=l.default;var a=s(o(87548));t.top=a.default},21158:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name(){let e=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,r.checkSelectionBorders)(this,t)&&(e=(0,r.markSelected)(e)),e},callback(o,s){const n=(0,r.checkSelectionBorders)(this,t);e.prepareBorder(s,t,n)}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(8606);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}},84085:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback(t,o){e.prepareBorder(o,"noBorders")},disabled(){return!(0,r.checkSelectionBorders)(this)}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(8606);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}},43729:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name(){let e=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,r.checkSelectionBorders)(this,t)&&(e=(0,r.markSelected)(e)),e},callback(o,s){const n=(0,r.checkSelectionBorders)(this,t);e.prepareBorder(s,t,n)}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(8606);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}},87548:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:top",name(){let e=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,r.checkSelectionBorders)(this,"top")&&(e=(0,r.markSelected)(e)),e},callback(t,o){const s=(0,r.checkSelectionBorders)(this,"top");e.prepareBorder(o,"top",s)}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(8606);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}},79485:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(9458),i=o(95016),l=o(36926),a=o(47154),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=g(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),c=o(53711),u=o(8606),d=o(63480);function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(g=function(e){return e?o:t})(e)}function f(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function p(e,t,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=t.PLUGIN_KEY="customBorders",w=t.PLUGIN_PRIORITY=90;var C=new WeakSet;class v extends n.BasePlugin{constructor(){super(...arguments),f(this,C),(0,r.default)(this,"savedBorders",[])}static get PLUGIN_KEY(){return m}static get PLUGIN_PRIORITY(){return w}isEnabled(){return!!this.hot.getSettings()[m]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",(e=>p(C,this,y).call(this,e))),this.addHook("init",(()=>p(C,this,E).call(this))),super.enablePlugin())}disablePlugin(){this.hideBorders(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),super.updatePlugin()}setBorders(e,t){let o=["top","bottom","start","end"],s=null;t&&(this.checkSettingsCohesion([t]),o=Object.keys(t),s=(0,u.normalizeBorder)(t));const r=(0,d.detectSelectionType)(e),n=(0,d.normalizeSelectionFactory)(r,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)});(0,a.arrayEach)(e,(e=>{n(e).forAll(((e,t)=>{(0,a.arrayEach)(o,(o=>{this.prepareBorderFromCustomAdded(e,t,s,(0,u.toInlinePropName)(o))}))}))})),this.hot.view.render()}getBorders(e){if(!Array.isArray(e))return this.savedBorders;const t=(0,d.detectSelectionType)(e),o=(0,d.normalizeSelectionFactory)(t,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)}),s=[];return(0,a.arrayEach)(e,(e=>{o(e).forAll(((e,t)=>{(0,a.arrayEach)(this.savedBorders,(o=>{o.row===e&&o.col===t&&s.push((0,u.denormalizeBorder)(o))}))}))})),s}clearBorders(e){e?this.setBorders(e):((0,a.arrayEach)(this.savedBorders,(e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),this.hot.removeCellMeta(e.row,e.col,"borders")})),this.savedBorders.length=0)}insertBorderIntoSettings(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);const o=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,o,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:o})}prepareBorderFromCustomAdded(e,t,o,s){const r=this.hot.countRows(),n=this.hot.countCols();if(e>=r||t>=n)return;let i=(0,u.createEmptyBorders)(e,t);o&&(i=(0,u.extendDefaultBorder)(i,o),(0,a.arrayEach)(this.hot.selection.highlight.customSelections,(e=>{if(i.id===e.settings.id)return Object.assign(e.settings,o),i.id=e.settings.id,i.top=e.settings.top,i.bottom=e.settings.bottom,i.start=e.settings.start,i.end=e.settings.end,!1}))),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(i)),this.insertBorderIntoSettings(i,s)}prepareBorderFromCustomAddedRange(e,t){const o=Math.min(e.to.row,this.hot.countRows()-1),s=Math.min(e.to.col,this.hot.countCols()-1);(0,l.rangeEach)(e.from.row,o,(o=>{(0,l.rangeEach)(e.from.col,s,(s=>{const r=(0,u.createEmptyBorders)(o,s);let n=0;o===e.from.row&&(0,i.hasOwnProperty)(t,"top")&&(n+=1,r.top=t.top),o===e.to.row&&(0,i.hasOwnProperty)(t,"bottom")&&(n+=1,r.bottom=t.bottom),s===e.from.col&&(0,i.hasOwnProperty)(t,"start")&&(n+=1,r.start=t.start),s===e.to.col&&(0,i.hasOwnProperty)(t,"end")&&(n+=1,r.end=t.end),n>0&&(this.hot.setCellMeta(o,s,"borders",(0,u.denormalizeBorder)(r)),this.insertBorderIntoSettings(r))}))}))}removeAllBorders(e,t){const o=(0,u.createId)(e,t);this.spliceBorder(o),this.clearBordersFromSelectionSettings(o),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}setBorder(e,t,o,s){let r=this.hot.getCellMeta(e,t).borders;if(r=r&&void 0!==r.border?(0,u.normalizeBorder)(r):(0,u.createEmptyBorders)(e,t),s){r[o]=(0,u.createSingleEmptyBorder)();if(4===this.countHide(r))this.removeAllBorders(e,t);else{this.checkCustomSelectionsFromContextMenu(r,o,s)||this.insertBorderIntoSettings(r),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(r))}}else{r[o]=(0,u.createDefaultCustomBorder)();this.checkCustomSelectionsFromContextMenu(r,o,s)||this.insertBorderIntoSettings(r),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(r))}}prepareBorder(e,t,o){(0,a.arrayEach)(e,(e=>{let{start:s,end:r}=e;if(s.row===r.row&&s.col===r.col)"noBorders"===t?this.removeAllBorders(s.row,s.col):this.setBorder(s.row,s.col,t,o);else switch(t){case"noBorders":(0,l.rangeEach)(s.col,r.col,(e=>{(0,l.rangeEach)(s.row,r.row,(t=>{this.removeAllBorders(t,e)}))}));break;case"top":(0,l.rangeEach)(s.col,r.col,(e=>{this.setBorder(s.row,e,t,o)}));break;case"bottom":(0,l.rangeEach)(s.col,r.col,(e=>{this.setBorder(r.row,e,t,o)}));break;case"start":(0,l.rangeEach)(s.row,r.row,(e=>{this.setBorder(e,s.col,t,o)}));break;case"end":(0,l.rangeEach)(s.row,r.row,(e=>{this.setBorder(e,r.col,t,o)}))}}))}createCustomBorders(e){(0,a.arrayEach)(e,(e=>{const t=(0,u.normalizeBorder)(e);e.range?this.prepareBorderFromCustomAddedRange(e.range,t):this.prepareBorderFromCustomAdded(e.row,e.col,t)}))}countHide(e){const{top:t,bottom:o,start:s,end:r}=e,n=[t,o,s,r];return(0,a.arrayReduce)(n,((e,t)=>{let o=e;return t&&t.hide&&(o+=1),o}),0)}clearBordersFromSelectionSettings(e){const t=(0,a.arrayMap)(this.hot.selection.highlight.customSelections,(e=>e.settings.id)).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}clearNullCellRange(){(0,a.arrayEach)(this.hot.selection.highlight.customSelections,((e,t)=>{if(null===e.cellRange)return this.hot.selection.highlight.customSelections[t].destroy(),this.hot.selection.highlight.customSelections.splice(t,1),!1}))}hideBorders(){(0,a.arrayEach)(this.savedBorders,(e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange()}))}spliceBorder(e){const t=(0,a.arrayMap)(this.savedBorders,(e=>e.id)).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}checkSavedBorders(e){let t=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),t=!0):(0,a.arrayEach)(this.savedBorders,((o,s)=>{if(e.id===o.id)return this.savedBorders[s]=e,t=!0,!1})),t}checkCustomSelectionsFromContextMenu(e,t,o){let s=!1;return(0,a.arrayEach)(this.hot.selection.highlight.customSelections,(r=>{if(e.id===r.settings.id){const e=this.hot.view._wt.selectionManager.getBorderInstances(r);return(0,a.arrayEach)(e,(e=>{e.toggleHiddenClass(t,o)})),s=!0,!1}})),s}checkCustomSelections(e,t,o){const s=this.countHide(e);let r=!1;return 4===s?(this.removeAllBorders(e.row,e.col),r=!0):(0,a.arrayEach)(this.hot.selection.highlight.customSelections,(s=>{if(e.id===s.settings.id){if(s.visualCellRange=t,s.commit(),o){const t=this.hot.view._wt.selectionManager.getBorderInstances(s);(0,a.arrayEach)(t,(t=>{t.changeBorderStyle(o,e)}))}return r=!0,!1}})),r}changeBorderSettings(){const e=this.hot.getSettings()[m];if(Array.isArray(e)){const t=(0,i.deepClone)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}checkSettingsCohesion(e){const t=(0,u.hasLeftRightTypeOptions)(e),o=(0,u.hasStartEndTypeOptions)(e);if(t&&o)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".')}destroy(){super.destroy()}}function y(e){this.hot.getSettings()[m]&&e.items.push({name:"---------"},{key:"borders",name(){return this.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_BORDERS)},disabled(){const e=this.getSelectedRangeLast();return!e||(!!e.isSingleHeader()||this.selection.isSelectedByCorner())},submenu:{items:[(0,c.top)(this),(0,c.right)(this),(0,c.bottom)(this),(0,c.left)(this),(0,c.noBorders)(this)]}})}function E(){this.changeBorderSettings()}t.CustomBorders=v},11043:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(79485);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.CustomBorders=s.CustomBorders},8606:(e,t,o)=>{"use strict";t.__esModule=!0,t.checkSelectionBorders=function(e,t){let o=!1;return(0,n.arrayEach)(e.getSelectedRange(),(r=>{r.forAll(((r,n)=>{if(r<0||n<0)return;const i=e.getCellMeta(r,n).borders;if(i){if(!t)return o=!0,!1;if(!(0,s.hasOwnProperty)(i[t],"hide")||!1===i[t].hide)return o=!0,!1}}))})),o},t.createDefaultCustomBorder=l,t.createDefaultHtBorder=h,t.createEmptyBorders=function(e,t){return{id:i(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}},t.createId=i,t.createSingleEmptyBorder=a,t.denormalizeBorder=function(e){(0,r.isDefined)(e.start)&&(e.left=e.start);(0,r.isDefined)(e.end)&&(e.right=e.end);return e},t.extendDefaultBorder=function(e,t){(0,s.hasOwnProperty)(t,"border")&&t.border&&(e.border=t.border);(0,s.hasOwnProperty)(t,"top")&&(0,r.isDefined)(t.top)&&(t.top?((0,s.isObject)(t.top)||(t.top={width:1,color:"#000"}),e.top=t.top):(t.top={hide:!0},e.top=t.top));(0,s.hasOwnProperty)(t,"bottom")&&(0,r.isDefined)(t.bottom)&&(t.bottom?((0,s.isObject)(t.bottom)||(t.bottom={width:1,color:"#000"}),e.bottom=t.bottom):(t.bottom={hide:!0},e.bottom=t.bottom));(0,s.hasOwnProperty)(t,"start")&&(0,r.isDefined)(t.start)&&(t.start?((0,s.isObject)(t.start)||(t.start={width:1,color:"#000"}),e.start=t.start):(t.start={hide:!0},e.start=t.start));(0,s.hasOwnProperty)(t,"end")&&(0,r.isDefined)(t.end)&&(t.end?((0,s.isObject)(t.end)||(t.end={width:1,color:"#000"}),e.end=t.end):(t.end={hide:!0},e.end=t.end));return e},t.hasLeftRightTypeOptions=function(e){return e.some((e=>(0,r.isDefined)(e.left)||(0,r.isDefined)(e.right)))},t.hasStartEndTypeOptions=function(e){return e.some((e=>(0,r.isDefined)(e.start)||(0,r.isDefined)(e.end)))},t.markSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.normalizeBorder=function(e){var t,o;((0,r.isDefined)(e.start)||(0,r.isDefined)(e.left))&&(e.start=null!==(t=e.start)&&void 0!==t?t:e.left);((0,r.isDefined)(e.end)||(0,r.isDefined)(e.right))&&(e.end=null!==(o=e.end)&&void 0!==o?o:e.right);return delete e.left,delete e.right,e},t.toInlinePropName=function(e){var t;return null!==(t=c.get(e))&&void 0!==t?t:e},o(14846),o(75568);var s=o(95016),r=o(95768),n=o(47154);function i(e,t){return`border_row${e}col${t}`}function l(){return{width:1,color:"#000"}}function a(){return{hide:!0}}function h(){return{width:1,color:"#000",cornerVisible:!1}}const c=new Map([["left","start"],["right","end"]])},62291:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(9458),i=o(40892),l=o(94916);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function h(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 c=t.PLUGIN_KEY="dragToScroll",u=t.PLUGIN_PRIORITY=100;var d=new WeakSet;class g extends n.BasePlugin{constructor(){super(...arguments),a(this,d),(0,r.default)(this,"boundaries",null),(0,r.default)(this,"callback",null),(0,r.default)(this,"listening",!1)}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[c]}enablePlugin(){this.enabled||(this.addHook("afterOnCellMouseDown",(e=>h(d,this,f).call(this,e))),this.addHook("afterOnCellCornerMouseDown",(e=>h(d,this,f).call(this,e))),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.unregisterEvents(),super.disablePlugin()}setBoundaries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,right:this.hot.rootWindow.innerWidth,top:0,bottom:this.hot.rootWindow.innerHeight};this.boundaries=e}setCallback(e){this.callback=e}check(e,t){let o=0,s=0;t<this.boundaries.top?s=t-this.boundaries.top:t>this.boundaries.bottom&&(s=t-this.boundaries.bottom),e<this.boundaries.left?o=e-this.boundaries.left:e>this.boundaries.right&&(o=e-this.boundaries.right),this.callback(o,s)}listen(){this.listening=!0}unlisten(){this.listening=!1}isListening(){return this.listening}registerEvents(){const{rootWindow:e}=this.hot;let t=e;for(;t;)this.eventManager.addEventListener(t.document,"contextmenu",(()=>this.unlisten())),this.eventManager.addEventListener(t.document,"mouseup",(()=>this.unlisten())),this.eventManager.addEventListener(t.document,"mousemove",(e=>this.onMouseMove(e))),t=(0,l.getParentWindow)(t)}unregisterEvents(){this.eventManager.clear()}onMouseMove(e){this.isListening()&&this.check(e.clientX,e.clientY)}destroy(){super.destroy()}}function f(e){if((0,i.isRightClick)(e))return;const t=this.hot.view._wt.wtOverlays.topOverlay.mainTableScrollableElement;this.setBoundaries(t!==this.hot.rootWindow?t.getBoundingClientRect():void 0),this.setCallback(((e,o)=>{var s,r;const n=null!==(s=t.scrollLeft)&&void 0!==s?s:t.scrollX,i=null!==(r=t.scrollTop)&&void 0!==r?r:t.scrollY;t.scroll(n+50*Math.sign(e),i+20*Math.sign(o))})),this.listen()}t.DragToScroll=g},96361:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(62291);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.DragToScroll=s.DragToScroll},36743:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(9458),i=o(47154),l=o(95016),a=o(41485),h=o(76368),c=o(94916),u=o(47843),d=o(43001),g=o(29398),f=o(37660),p=o(45551);function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,o){return e.set(C(e,t),o),o}function C(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")}g.Hooks.getSingleton().register("afterDropdownMenuDefaultOptions"),g.Hooks.getSingleton().register("beforeDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuHide"),g.Hooks.getSingleton().register("afterDropdownMenuExecute");const v=t.PLUGIN_KEY="dropdownMenu",y=t.PLUGIN_PRIORITY=230,E="changeType",S=v;var R=new WeakMap,b=new WeakSet;class _ extends n.BasePlugin{static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[f.COLUMN_LEFT,f.COLUMN_RIGHT,f.SEPARATOR,f.REMOVE_COLUMN,f.SEPARATOR,f.CLEAR_COLUMN,f.SEPARATOR,f.READ_ONLY,f.SEPARATOR,f.ALIGNMENT]}constructor(e){var t,o;super(e),m(t=this,o=b),o.add(t),(0,r.default)(this,"commandExecutor",new a.CommandExecutor(this.hot)),(0,r.default)(this,"itemsFactory",null),(0,r.default)(this,"menu",null),function(e,t,o){m(e,t),t.set(e,o)}(this,R,!1),this.hot.addHook("afterGetColHeader",((e,t)=>C(b,this,O).call(this,e,t)))}isEnabled(){return this.hot.getSettings()[v]}enablePlugin(){var e=this;if(this.enabled)return;this.itemsFactory=new u.ItemsFactory(this.hot,_.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(b,e,x).call(e,...o)})),this.addHook("beforeViewportScrollHorizontally",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(b,e,H).call(e,...o)}));const t=this.hot.getSettings()[v],o={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.registerShortcuts(),super.enablePlugin(),this.callOnPluginsReady((()=>{this.hot.runHooks("afterDropdownMenuDefaultOptions",o),this.itemsFactory.setPredefinedItems(o.items);const s=this.itemsFactory.getItems(t);this.menu&&this.menu.destroy(),this.menu=new d.Menu(this.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootDocument.body}),this.hot.runHooks("beforeDropdownMenuSetItems",s),this.menu.setMenuItems(s),this.menu.addLocalHook("beforeOpen",(()=>C(b,this,I).call(this))),this.menu.addLocalHook("afterOpen",(()=>C(b,this,N).call(this))),this.menu.addLocalHook("afterSubmenuOpen",(e=>C(b,this,A).call(this,e))),this.menu.addLocalHook("afterClose",(()=>C(b,this,P).call(this))),this.menu.addLocalHook("executeCommand",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.executeCommand.call(e,...o)})),(0,i.arrayEach)(s,(e=>this.commandExecutor.registerCommand(e.key,e)))}))}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&this.menu.destroy(),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=()=>{const{highlight:e}=this.hot.getSelectedRangeLast();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeLast(),o=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),s=this.hot.getCell(-1,t.col,!0).querySelector(`.${E}`),r=s.getBoundingClientRect();this.open({left:r.left+o.left,top:r.top+s.offsetHeight+o.top},{left:r.width,right:0,above:0,below:3}),this.menu.getNavigator().toFirstItem()}};this.hot.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Shift","Alt","ArrowDown"],["Control/Meta","Enter"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:S},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:S}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}registerEvents(){this.eventManager.addEventListener(this.hot.rootElement,"click",(e=>C(b,this,M).call(this,e)))}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.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()}executeCommand(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];this.commandExecutor.execute(e,...o)}setListening(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function T(e){e.getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Control/Meta","A"]],callback:()=>!1}])}function M(e){if((0,c.hasClass)(e.target,E)){const t=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),o=e.target.getBoundingClientRect();e.stopPropagation(),w(R,this,!1),this.open({left:o.left+t.left,top:o.top+e.target.offsetHeight+t.top},{left:o.width,right:0,above:0,below:3})}}function O(e,t){const o=t.parentNode;if(!o)return;const s=o.parentNode.childNodes,r=Array.prototype.indexOf.call(s,o);if(e<0||r!==s.length-1)return;const n=t.querySelector(`.${E}`);if(this.enabled&&n)return;if(!this.enabled)return void(n&&n.parentNode.removeChild(n));const i=this.hot.rootDocument.createElement("button");i.className=E,i.type="button",i.tabIndex=-1,this.hot.getSettings().ariaTags&&((0,c.setAttribute)(i,[(0,p.A11Y_HIDDEN)(),(0,p.A11Y_LABEL)(" ")]),(0,c.setAttribute)(t,[(0,p.A11Y_HASPOPUP)("menu")])),i.onclick=function(){return!1},t.firstChild.insertBefore(i,t.firstChild.firstChild)}function I(){this.hot.runHooks("beforeDropdownMenuShow",this)}function N(){this.hot.runHooks("afterDropdownMenuShow",this),C(b,this,T).call(this,this.menu)}function A(e){C(b,this,T).call(this,e)}function P(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function H(e){return o=this,(t=R).get(C(t,o))?null:e;var t,o}function x(e){(0,c.hasClass)(e.target,E)&&w(R,this,!0)}t.DropdownMenu=_,_.SEPARATOR={name:f.SEPARATOR}},47821:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(36743);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.DropdownMenu=s.DropdownMenu},15406:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(36926);t.default=class{constructor(e){(0,r.default)(this,"hot",void 0),(0,r.default)(this,"options",{}),this.hot=e}setOptions(e){this.options=e}getData(){const{startRow:e,startCol:t,endRow:o,endCol:s}=this._getDataRange(),r=this.options,i=[];return(0,n.rangeEach)(e,o,(e=>{const o=[];!r.exportHiddenRows&&this._isHiddenRow(e)||((0,n.rangeEach)(t,s,(t=>{!r.exportHiddenColumns&&this._isHiddenColumn(t)||o.push(this.hot.getDataAtCell(e,t))})),i.push(o))})),i}getRowHeaders(){const e=[];if(this.options.rowHeaders){const{startRow:t,endRow:o}=this._getDataRange(),s=this.hot.getRowHeader();(0,n.rangeEach)(t,o,(t=>{!this.options.exportHiddenRows&&this._isHiddenRow(t)||e.push(s[t])}))}return e}getColumnHeaders(){const e=[];if(this.options.columnHeaders){const{startCol:t,endCol:o}=this._getDataRange(),s=this.hot.getColHeader();(0,n.rangeEach)(t,o,(t=>{!this.options.exportHiddenColumns&&this._isHiddenColumn(t)||e.push(s[t])}))}return e}_getDataRange(){const e=this.hot.countCols()-1,t=this.hot.countRows()-1;let[o=0,s=0,r=t,n=e]=this.options.range;return o=Math.max(o,0),s=Math.max(s,0),r=Math.min(r,t),n=Math.min(n,e),{startRow:o,startCol:s,endRow:r,endCol:n}}_isHiddenRow(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}_isHiddenColumn(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}},68407:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=o(9458),n=s(o(15406)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(72473));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.PLUGIN_KEY="exportFile",h=t.PLUGIN_PRIORITY=240;class c extends r.BasePlugin{static get PLUGIN_KEY(){return a}static get PLUGIN_PRIORITY(){return h}isEnabled(){return!0}exportAsString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}exportAsBlob(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}downloadFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{rootDocument:o,rootWindow:s}=this.hot,r=this._createTypeFormatter(e,t),n=this._createBlob(r),i=s.URL||s.webkitURL,l=o.createElement("a"),a=`${r.options.filename}.${r.options.fileExtension}`;if(void 0!==l.download){const e=i.createObjectURL(n);l.style.display="none",l.setAttribute("href",e),l.setAttribute("download",a),o.body.appendChild(l),l.dispatchEvent(new MouseEvent("click")),o.body.removeChild(l),setTimeout((()=>{i.revokeObjectURL(e)}),100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(n,a)}_createTypeFormatter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i.EXPORT_TYPES[e])throw new Error(`Export format type "${e}" is not supported.`);return(0,i.default)(e,new n.default(this.hot),t)}_createBlob(e){let t=null;return"undefined"!=typeof Blob&&(t=new Blob([e.export()],{type:`${e.options.mimeType};charset=${e.options.encoding}`})),t}}t.ExportFile=c},4875:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(68407);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ExportFile=s.ExportFile},72473:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.default=function(e,t,o){if("function"==typeof i[e])return new i[e](t,o);return null};var r=s(o(15677));const n=t.TYPE_CSV="csv",i=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[n]:r.default})},53261:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(95016),i=o(83414);class l{static get DEFAULT_OPTIONS(){return{mimeType:"text/plain",fileExtension:"txt",filename:"Handsontable [YYYY]-[MM]-[DD]",encoding:"utf-8",bom:!1,columnHeaders:!1,rowHeaders:!1,exportHiddenColumns:!1,exportHiddenRows:!1,range:[]}}constructor(e,t){(0,r.default)(this,"dataProvider",void 0),(0,r.default)(this,"options",void 0),this.dataProvider=e,this.options=this._mergeOptions(t),this.dataProvider.setOptions(this.options)}_mergeOptions(e){let t=(0,n.clone)(this.constructor.DEFAULT_OPTIONS);const o=new Date;return t=(0,n.extend)((0,n.clone)(l.DEFAULT_OPTIONS),t),t=(0,n.extend)(t,e),t.filename=(0,i.substitute)(t.filename,{YYYY:o.getFullYear(),MM:`${o.getMonth()+1}`.padStart(2,"0"),DD:`${o.getDate()}`.padStart(2,"0")}),t}}t.default=l},15677:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(94364);var r=o(47154),n=o(95768),i=s(o(53261));const l=String.fromCharCode(13),a=String.fromCharCode(34),h=String.fromCharCode(10);class c extends i.default{static get DEFAULT_OPTIONS(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n"}}export(){const e=this.options,t=this.dataProvider.getData();let o=this.dataProvider.getColumnHeaders();const s=o.length>0,n=this.dataProvider.getRowHeaders(),i=n.length>0;let l=e.bom?String.fromCharCode(65279):"";return s&&(o=(0,r.arrayMap)(o,(e=>this._escapeCell(e,!0))),i&&(l+=e.columnDelimiter),l+=o.join(e.columnDelimiter),l+=e.rowDelimiter),(0,r.arrayEach)(t,((t,o)=>{o>0&&(l+=e.rowDelimiter),i&&(l+=this._escapeCell(n[o])+e.columnDelimiter),l+=t.map((e=>this._escapeCell(e))).join(e.columnDelimiter)})),l}_escapeCell(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=(0,n.stringify)(e);return""!==o&&(t||o.indexOf(l)>=0||o.indexOf(a)>=0||o.indexOf(h)>=0||o.indexOf(this.options.columnDelimiter)>=0)&&(o=o.replace(new RegExp('"',"g"),'""'),o=`"${o}"`),o}}t.default=c},81822:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(47154),i=o(95016),l=s(o(32943)),a=o(57466);class h{constructor(e,t){let{id:o,stateless:s=!0}=t;(0,r.default)(this,"hot",void 0),(0,r.default)(this,"id",void 0),(0,r.default)(this,"elements",[]),(0,r.default)(this,"hidden",!1),(0,r.default)(this,"stateId",""),(0,r.default)(this,"state",void 0),this.hot=e,this.id=o,this.stateId=`Filters.component.${this.id}`,this.state=s?null:this.hot.columnIndexMapper.registerMap(this.stateId,new a.LinkedPhysicalIndexToValueMap)}getElements(){return this.elements}reset(){(0,n.arrayEach)(this.elements,(e=>e.reset()))}hide(){this.hidden=!0}show(){this.hidden=!1}isHidden(){return null===this.hot||this.hidden}restoreState(e){this.state&&this.setState(this.state.getValueAtIndex(e))}setState(){throw new Error("The state setting logic is not implemented")}saveState(e){this.state&&this.state.setValueAtIndex(e,this.getState())}getState(){throw new Error("The state gathering logic is not implemented")}destroy(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),(0,n.arrayEach)(this.elements,(e=>e.destroy())),this.state=null,this.elements=null,this.hot=null}}t.BaseComponent=h,(0,i.mixin)(h,l.default)},41549:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r,n=s(o(85707)),i=o(94916),l=o(47154),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=u(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),h=o(81822),c=o(84509);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(u=function(e){return e?o:t})(e)}function d(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}var g=new WeakSet;class f extends h.BaseComponent{static get BUTTON_OK(){return"ok"}static get BUTTON_CANCEL(){return"cancel"}constructor(e,t){super(e,{id:t.id,stateless:!0}),d(this,g),(0,n.default)(this,"name",""),this.name=t.name,this.elements.push(new c.InputUI(this.hot,{type:"button",value:a.FILTERS_BUTTONS_OK,className:"htUIButton htUIButtonOK",identifier:f.BUTTON_OK})),this.elements.push(new c.InputUI(this.hot,{type:"button",value:a.FILTERS_BUTTONS_CANCEL,className:"htUIButton htUIButtonCancel",identifier:f.BUTTON_CANCEL})),this.registerHooks()}registerHooks(){(0,l.arrayEach)(this.elements,(e=>{e.addLocalHook("click",((e,t)=>function(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")}(g,this,p).call(this,e,t)))}))}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>((0,i.addClass)(t.parentNode,"htFiltersMenuActionBar"),(0,l.arrayEach)(this.elements,(e=>t.appendChild(e.element))),t)}}accept(){this.runLocalHooks("accept")}cancel(){this.runLocalHooks("cancel")}}function p(e,t){t.options.identifier===r.BUTTON_OK?this.accept():this.cancel()}t.ActionBarComponent=f,r=f},88703:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(27458);var r=s(o(85707)),n=o(94916),i=o(40892),l=o(47154),a=o(83644),h=o(95016),c=w(o(21571)),u=o(81822),d=w(o(81479)),g=o(84509),f=o(36713),p=o(7309);function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(m=function(e){return e?o:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=m(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}function C(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function v(e,t,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 y=new WeakSet;class E extends u.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),C(this,y),(0,r.default)(this,"name",""),(0,r.default)(this,"addSeparator",!1),this.name=t.name,this.addSeparator=t.addSeparator,this.elements.push(new f.SelectUI(this.hot,{menuContainer:t.menuContainer})),this.elements.push(new g.InputUI(this.hot,{placeholder:c.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),this.elements.push(new g.InputUI(this.hot,{placeholder:c.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),this.registerHooks()}registerHooks(){this.getSelectElement().addLocalHook("select",(e=>v(y,this,S).call(this,e))).addLocalHook("afterClose",(()=>this.runLocalHooks("afterClose"))).addLocalHook("tabKeydown",(e=>this.runLocalHooks("selectTabKeydown",e))),(0,l.arrayEach)(this.getInputElements(),(e=>{e.addLocalHook("keydown",(e=>v(y,this,R).call(this,e)))}))}setState(e){if(this.reset(),!e)return;const t=(0,h.clone)(e.command);t.name.startsWith(c.FILTERS_CONDITIONS_NAMESPACE)&&(t.name=this.hot.getTranslatedPhrase(t.name)),this.getSelectElement().setValue(t),(0,l.arrayEach)(e.args,((e,o)=>{if(o>t.inputsCount-1)return!1;const s=this.getInputElement(o);s.setValue(e),s[t.inputsCount>o?"show":"hide"](),o||this.hot._registerTimeout((()=>s.focus()),10)}))}getState(){const e=this.getSelectElement().getValue()||(0,p.getConditionDescriptor)(d.CONDITION_NONE),t=[];return(0,l.arrayEach)(this.getInputElements(),((o,s)=>{e.inputsCount>s&&t.push(o.getValue())})),{command:e,args:t}}updateState(e,t){const o=e?(0,p.getConditionDescriptor)(e.name):(0,p.getConditionDescriptor)(d.CONDITION_NONE);this.state.setValueAtIndex(t,{command:o,args:e?e.args:[]}),e||(0,l.arrayEach)(this.getInputElements(),(e=>e.setValue(null)))}getSelectElement(){return this.elements.filter((e=>e instanceof f.SelectUI))[0]}getInputElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}getInputElements(){return this.elements.filter((e=>e instanceof g.InputUI))}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,o,s,r,i)=>{(0,n.addClass)(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&(0,n.addClass)(t.parentNode,"border");const a=this.hot.rootDocument.createElement("div");return(0,n.addClass)(a,"htFiltersMenuLabel"),a.textContent=i,t.appendChild(a),t.parentElement.hasAttribute("ghost-table")||(0,l.arrayEach)(this.elements,(e=>t.appendChild(e.element))),t}}}reset(){const e=this.hot.getPlugin("filters").getSelectedColumn();let t=[(0,p.getConditionDescriptor)(d.CONDITION_NONE)];if(null!==e){const{visualIndex:o}=e;t=(0,d.default)(this.hot.getDataType(0,o,this.hot.countRows(),o))}(0,l.arrayEach)(this.getInputElements(),(e=>e.hide())),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function S(e){(0,l.arrayEach)(this.getInputElements(),((t,o)=>{t[e.inputsCount>o?"show":"hide"](),0===o&&this.hot._registerTimeout((()=>t.focus()),10)})),this.runLocalHooks("change",e)}function R(e){(0,a.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,i.stopImmediatePropagation)(e))}t.ConditionComponent=E},36595:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(6211);var r=s(o(85707)),n=o(94916),i=o(47154),l=o(20944),a=o(81822),h=o(53834),c=o(69308),u=o(3120),d=o(85415),g=o(91600);function f(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}var p=new WeakSet;class m extends a.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),f(this,p),(0,r.default)(this,"name",""),this.name=t.name,this.buildOperatorsElement()}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>((0,n.addClass)(t.parentNode,"htFiltersMenuOperators"),(0,i.arrayEach)(this.elements,(e=>t.appendChild(e.element))),t)}}buildOperatorsElement(){const e=[c.OPERATION_ID,u.OPERATION_ID];(0,i.arrayEach)(e,(t=>{const o=new g.RadioInputUI(this.hot,{name:"operator",label:{htmlFor:t,textContent:(0,h.getOperationName)(t)},value:t,checked:t===e[0],id:t});o.addLocalHook("change",(e=>function(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")}(p,this,w).call(this,e))),this.elements.push(o)}))}setChecked(e){if(this.elements.length<e)throw Error(l.toSingleLine`Radio button with index ${e} doesn't exist.`);(0,i.arrayEach)(this.elements,((t,o)=>{t.setChecked(o===e)}))}getActiveOperationId(){const e=this.elements.find((e=>e instanceof g.RadioInputUI&&e.isChecked()));return e?e.getValue():c.OPERATION_ID}getState(){return this.getActiveOperationId()}setState(e){this.reset(),e&&this.getActiveOperationId()!==e&&(0,i.arrayEach)(this.elements,(t=>{t.setChecked(t.getValue()===e)}))}updateState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.OPERATION_ID,t=arguments.length>1?arguments[1]:void 0,o=e;o===d.OPERATION_ID&&(o=u.OPERATION_ID),this.state.setValueAtIndex(t,o)}reset(){this.setChecked(0)}}function w(e){this.setState(e.target.value)}t.OperatorsComponent=m},83507:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(27458),o(94364);var r=s(o(85707)),n=o(94916),i=o(40892),l=o(47154),a=o(83644),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=m(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),c=o(25015),u=o(81822),d=o(23469),g=o(81479),f=o(7309),p=o(65617);function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(m=function(e){return e?o:t})(e)}function w(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function C(e,t,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 v=new WeakSet;class y extends u.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),w(this,v),(0,r.default)(this,"name",""),this.name=t.name,this.elements.push(new d.MultipleSelectUI(this.hot)),this.registerHooks()}registerHooks(){this.getMultipleSelectElement().addLocalHook("keydown",(e=>C(v,this,E).call(this,e))).addLocalHook("listTabKeydown",(e=>this.runLocalHooks("listTabKeydown",e))),this.hot.addHook("modifyFiltersMultiSelectValue",((e,t)=>C(v,this,R).call(this,e,t)))}getElements(){const e=this.getMultipleSelectElement();return[e.getSearchInputElement(),e.getSelectAllElement(),e.getClearAllElement(),this.getMultipleSelectElement()]}setState(e){if(this.reset(),e&&e.command.key===g.CONDITION_BY_VALUE){const t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}getState(){const e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?g.CONDITION_NONE:g.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}updateState(e){const t=(t,o,s,r,n)=>{const[i]=(0,l.arrayFilter)(o,(e=>e.name===g.CONDITION_BY_VALUE)),a={},u=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS);if(i){const o=r(t,n),h=(0,l.arrayMap)(o,(e=>e.value)),d=new Map(o.map((e=>[e.value,this.hot.getCellMeta(e.meta.visualRow,e.meta.visualCol)]))),p=(0,c.unifyColumnValues)(h);s&&(i.args[0]=s);const m=[],w=(0,c.intersectValues)(p,i.args[0],u,(e=>{e.checked&&m.push(e.value),C(v,this,S).call(this,e,d)})),y=e.editedConditionStack.column;a.locale=this.hot.getCellMeta(0,y).locale,a.args=[m],a.command=(0,f.getConditionDescriptor)(g.CONDITION_BY_VALUE),a.itemsSnapshot=w}else a.args=[],a.command=(0,f.getConditionDescriptor)(g.CONDITION_NONE);this.state.setValueAtIndex(t,a)};t(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&t(e.dependentConditionStacks[0].column,e.dependentConditionStacks[0].conditions,e.conditionArgsChange,e.filteredRowsFactory,e.editedConditionStack)}getMultipleSelectElement(){return this.elements.filter((e=>e instanceof d.MultipleSelectUI))[0]}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,o,s,r,i)=>{(0,n.addClass)(t.parentNode,"htFiltersMenuValue");const a=this.hot.rootDocument.createElement("div");return(0,n.addClass)(a,"htFiltersMenuLabel"),a.textContent=i,t.appendChild(a),t.parentElement.hasAttribute("ghost-table")||(0,l.arrayEach)(this.elements,(e=>t.appendChild(e.element))),t}}}reset(){const e=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS),t=this._getColumnVisibleValues(),o=t.map((e=>e.value)),s=new Map(t.map((e=>[e.value,e.meta]))),r=(0,c.unifyColumnValues)(o),n=(0,c.intersectValues)(r,r,e,(e=>{C(v,this,S).call(this,e,s)}));this.getMultipleSelectElement().setItems(n),super.reset(),this.getMultipleSelectElement().setValue(r);const i=this.hot.getPlugin("filters").getSelectedColumn();null!==i&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,i.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,l.arrayMap)(this.hot.getDataAtCol(e.visualIndex),((t,o)=>({value:(0,c.toEmptyString)(t),meta:this.hot.getCellMeta(o,e.visualIndex)})))}}function E(e){(0,a.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,i.stopImmediatePropagation)(e))}function S(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function R(e,t){return"numeric"===t.type?(0,p.getRenderedValue)(e,t):e}t.ValueComponent=y},92252:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(95768),n=o(7309);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="begins_with";function a(e,t){let[o]=t;return(0,r.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,r.stringify)(o))}(0,n.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},43852:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=h;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309),n=o(97079),i=o(90414);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.CONDITION_NAME="between";function h(e,t){let[o,s]=t,l=o,a=s;if("numeric"===e.meta.type){const e=parseFloat(l,10),t=parseFloat(a,10);l=Math.min(e,t),a=Math.max(e,t)}else if("date"===e.meta.type){const t=(0,r.getCondition)(i.CONDITION_NAME,[a]),o=(0,r.getCondition)(n.CONDITION_NAME,[l]);return t(e)&&o(e)}return e.value>=l&&e.value<=a}(0,r.registerCondition)(a,h,{name:s.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},16478:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=i;var s=o(7309),r=o(25015);const n=t.CONDITION_NAME="by_value";function i(e,t){let[o]=t;return o(e.value)}(0,s.registerCondition)(n,i,{name:"By value",inputsCount:0,inputValuesDecorator(e){let[t]=e;return[(0,r.createArrayAssertion)(t)]},showOperators:!1})},24837:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(95768),n=o(7309);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="contains";function a(e,t){let[o]=t;return(0,r.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,r.stringify)(o))>=0}(0,n.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},97079:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.condition=h;var r=s(o(86798)),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),i=o(7309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.CONDITION_NAME="date_after";function h(e,t){let[o]=t;const s=(0,r.default)(e.value,e.meta.dateFormat),n=(0,r.default)(o,e.meta.dateFormat);return!(!s.isValid()||!n.isValid())&&s.diff(n)>=0}(0,i.registerCondition)(a,h,{name:n.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},90414:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.condition=h;var r=s(o(86798)),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),i=o(7309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.CONDITION_NAME="date_before";function h(e,t){let[o]=t;const s=(0,r.default)(e.value,e.meta.dateFormat),n=(0,r.default)(o,e.meta.dateFormat);return!(!s.isValid()||!n.isValid())&&s.diff(n)<=0}(0,i.registerCondition)(a,h,{name:n.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},25192:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.condition=h;var r=s(o(86798)),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),i=o(7309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.CONDITION_NAME="date_today";function h(e){const t=(0,r.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,r.default)().startOf("day"),"d")}(0,i.registerCondition)(a,h,{name:n.FILTERS_CONDITIONS_TODAY,inputsCount:0})},33538:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.condition=h;var r=s(o(86798)),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),i=o(7309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.CONDITION_NAME="date_tomorrow";function h(e){const t=(0,r.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,r.default)().subtract(-1,"days").startOf("day"),"d")}(0,i.registerCondition)(a,h,{name:n.FILTERS_CONDITIONS_TOMORROW,inputsCount:0})},86525:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.condition=h;var r=s(o(86798)),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),i=o(7309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.CONDITION_NAME="date_yesterday";function h(e){const t=(0,r.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,r.default)().subtract(1,"days").startOf("day"),"d")}(0,i.registerCondition)(a,h,{name:n.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},40545:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309),n=o(95768);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="empty";function a(e){return(0,n.isEmpty)(e.value)}(0,r.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},89320:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(95768),n=o(7309);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="ends_with";function a(e,t){let[o]=t;return(0,r.stringify)(e.value).toLocaleLowerCase(e.meta.locale).endsWith((0,r.stringify)(o))}(0,n.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},21140:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(95768),n=o(7309);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="eq";function a(e,t){let[o]=t;return(0,r.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,r.stringify)(o)}(0,n.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},8239:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var s=o(7309);const r=t.CONDITION_NAME="false";function n(){return!1}(0,s.registerCondition)(r,n,{name:"False"})},28681:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.CONDITION_NAME="gt";function l(e,t){let[o]=t,s=o;return"numeric"===e.meta.type&&(s=parseFloat(s,10)),e.value>s}(0,r.registerCondition)(i,l,{name:s.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},86842:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.CONDITION_NAME="gte";function l(e,t){let[o]=t,s=o;return"numeric"===e.meta.type&&(s=parseFloat(s,10)),e.value>=s}(0,r.registerCondition)(i,l,{name:s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},37520:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.CONDITION_NAME="lt";function l(e,t){let[o]=t,s=o;return"numeric"===e.meta.type&&(s=parseFloat(s,10)),e.value<s}(0,r.registerCondition)(i,l,{name:s.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},17585:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.CONDITION_NAME="lte";function l(e,t){let[o]=t,s=o;return"numeric"===e.meta.type&&(s=parseFloat(s,10)),e.value<=s}(0,r.registerCondition)(i,l,{name:s.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},22024:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.CONDITION_NAME="none";function l(){return!0}(0,r.registerCondition)(i,l,{name:s.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},73749:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309),n=o(43852);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="not_between";function a(e,t){return!(0,r.getCondition)(n.CONDITION_NAME,t)(e)}(0,r.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},26684:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309),n=o(24837);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="not_contains";function a(e,t){return!(0,r.getCondition)(n.CONDITION_NAME,t)(e)}(0,r.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},388:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309),n=o(40545);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="not_empty";function a(e,t){return!(0,r.getCondition)(n.CONDITION_NAME,t)(e)}(0,r.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_NOT_EMPTY,inputsCount:0,showOperators:!0})},74017:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309),n=o(21140);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="neq";function a(e,t){return!(0,r.getCondition)(n.CONDITION_NAME,t)(e)}(0,r.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},61382:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var s=o(7309);const r=t.CONDITION_NAME="true";function n(){return!0}(0,s.registerCondition)(r,n,{name:"True"})},53355:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(69655),o(94364),o(90458),o(75568);var r=s(o(85707)),n=o(95016),i=o(20944),l=s(o(32943)),a=o(7309),h=o(69308),c=o(53834),u=o(95768),d=o(57466);const g="ConditionCollection.filteringStates";class f{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,r.default)(this,"hot",void 0),(0,r.default)(this,"isMapRegistrable",void 0),(0,r.default)(this,"filteringStates",new d.LinkedPhysicalIndexToValueMap),(0,r.default)(this,"previousConditionStack",null),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),r=null!==(o=null==s?void 0:s.conditions)&&void 0!==o?o:[],n=null==s?void 0:s.operation;return this.isMatchInConditions(r,e,n)}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 r=this.hot.getCellMeta(0,e).locale,n=t.args.map((e=>"string"==typeof e?e.toLocaleLowerCase(r):e)),l=t.name||t.command.key;null===this.previousConditionStack&&this.setPreviousConditionStack(this.exportAllConditions()),this.runLocalHooks("beforeAdd",e);const d=this.getOperation(e);if(d){if(d!==o)throw Error(i.toSingleLine`The column of index ${e} has been already applied with a \`${d}\`\x20
|
67
|
+
numeric format. Cannot do the calculation.`);return r}}function m(){this.endpoints.initEndpoints()}function w(e){void 0!==e.columns&&this.endpoints.refreshCellMetas()}function C(e,t){e&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(e)}function v(e,t){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}t.ColumnSummary=p},87553:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(69655),o(75568);var r=s(o(85707)),n=o(47154),i=o(59350);t.default=class{constructor(e,t){(0,r.default)(this,"plugin",void 0),(0,r.default)(this,"hot",void 0),(0,r.default)(this,"endpoints",[]),(0,r.default)(this,"settings",void 0),(0,r.default)(this,"settingsType","array"),(0,r.default)(this,"currentEndpoint",null),(0,r.default)(this,"cellsToSetCache",[]),this.plugin=e,this.hot=this.plugin.hot,this.settings=t}initEndpoints(){this.endpoints=this.parseSettings(),this.refreshAllEndpoints()}getEndpoint(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}getAllEndpoints(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}fillMissingEndpointData(e){return this.parseSettings(e.call(this))}parseSettings(e){const t=[];let o=e;if(o||"function"!=typeof this.settings)return o||(o=this.settings),(0,n.arrayEach)(o,(e=>{const o={};this.assignSetting(e,o,"ranges",[[0,this.hot.countRows()-1]]),this.assignSetting(e,o,"reversedRowCoords",!1),this.assignSetting(e,o,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,o,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,o,"sourceColumn",e.destinationColumn),this.assignSetting(e,o,"type","sum"),this.assignSetting(e,o,"forceNumeric",!1),this.assignSetting(e,o,"suppressDataTypeErrors",!0),this.assignSetting(e,o,"customFunction",null),this.assignSetting(e,o,"readOnly",!0),this.assignSetting(e,o,"roundFloat",!1),t.push(o)})),t;this.settingsType="function"}assignSetting(e,t,o,s){if("ranges"!==o||void 0!==e[o]){if("ranges"!==o||0!==e[o].length)if(void 0===e[o]){if(s instanceof Error)throw s;t[o]=s}else"destinationRow"===o&&t.reversedRowCoords?t[o]=this.hot.countRows()-e[o]-1:t[o]=e[o]}else t[o]=s}resetSetupBeforeStructureAlteration(e,t,o){if("function"!==this.settingsType)return;const s=e.indexOf("row")>-1?"row":"col",r=this.getAllEndpoints();(0,n.arrayEach)(r,(r=>{"row"===s&&r.destinationRow>=t&&("insert_row"===e?r.alterRowOffset=o:"remove_row"===e&&(r.alterRowOffset=-1*o)),"col"===s&&r.destinationColumn>=t&&("insert_col"===e?r.alterColumnOffset=o:"remove_col"===e&&(r.alterColumnOffset=-1*o))})),this.resetAllEndpoints(r,!1)}resetSetupAfterStructureAlteration(e,t,o,s,r){let i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"===this.settingsType){const e=()=>(this.hot.removeHook("beforeViewRender",e),this.refreshAllEndpoints());return void this.hot.addHookOnce("beforeViewRender",e)}const l=e.indexOf("row")>-1?"row":"col",a=e.indexOf("remove")>-1?-1:1,h=this.getAllEndpoints(),c=0===e.indexOf("move_row"),u=t;(0,n.arrayEach)(h,(e=>{"row"===l&&e.destinationRow>=u&&(e.alterRowOffset=a*o),"col"===l&&e.destinationColumn>=u&&(e.alterColumnOffset=a*o)})),this.resetAllEndpoints(h,!c),c?(0,n.arrayEach)(h,(e=>{this.extendEndpointRanges(e,u,s[0],s.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)})):(0,n.arrayEach)(h,(e=>{this.shiftEndpointCoordinates(e,u)})),i&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,o,s){(0,n.arrayEach)(e.ranges,(e=>{e[1]&&(t>=e[0]&&t<=e[1]?o>e[1]?e[1]+=s:o<e[0]&&(e[0]-=s):o>=e[0]&&o<=e[1]&&(e[1]-=s,t<=e[0]&&(e[0]+=1,e[1]+=1)))}))}recreatePhysicalRanges(e){const t=e.ranges,o=[],s=[];(0,n.arrayEach)(t,(e=>{const t=[];if(e[1])for(let o=e[0];o<=e[1];o++)t.push(this.hot.toPhysicalRow(o));else t.push(this.hot.toPhysicalRow(e[0]));s.push(t)})),(0,n.arrayEach)(s,(e=>{let t=[];(0,n.arrayEach)(e,((s,r)=>{0===r?t.push(s):e[r]!==e[r-1]+1&&(t.push(e[r-1]),o.push(t),t=[],t.push(s)),r===e.length-1&&(t.push(s),o.push(t))}))})),e.ranges=o}shiftEndpointCoordinates(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,n.arrayEach)(e.ranges,(o=>{(0,n.arrayEach)(o,((s,r)=>{s>=t&&(o[r]+=e.alterRowOffset||0)}))}))):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.some((e=>{const t=e.alterRowOffset||0,o=e.alterColumnOffset||0;return e.destinationRow+t>=this.hot.countRows()||e.destinationColumn+o>=this.hot.countCols()}))||(this.cellsToSetCache=[],(0,n.arrayEach)(e,(e=>{this.resetEndpointValue(e,t)})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,n.arrayEach)(this.getAllEndpoints(),(e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")})),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const t=[];this.cellsToSetCache=[],(0,n.arrayEach)(e,((e,o,s)=>{`${e[2]||""}`!=`${e[3]}`&&(0,n.arrayEach)(this.getAllEndpoints(),((e,r)=>{this.hot.propToCol(s[o][1])===e.sourceColumn&&-1===t.indexOf(r)&&t.push(r)}))})),(0,n.arrayEach)(t,(e=>{this.refreshEndpoint(this.getEndpoint(e))})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshCellMetas(){this.endpoints.forEach((e=>{const t=this.hot.toVisualRow(e.destinationRow);if(null!==t){const o=this.hot.getCellMeta(t,e.destinationColumn);o.readOnly=e.readOnly,o.className="columnSummaryResult"}}))}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}resetEndpointValue(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=e.alterRowOffset||0,s=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?o:0)),this.hot.toVisualColumn(e.destinationColumn+(t?s:0)),""])}setEndpointValue(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())return void this.throwOutOfBoundsWarning();const r=this.hot.toVisualRow(e.destinationRow);if(null!==r){const o=this.hot.getCellMeta(r,e.destinationColumn);"init"!==t&&o.readOnly===e.readOnly||(o.readOnly=e.readOnly,o.className="columnSummaryResult")}if((!0===e.roundFloat||Number.isInteger(e.roundFloat))&&!isNaN(e.result)){const t=e.roundFloat;let o=0;Number.isInteger(t)&&(o=Math.min(Math.max(0,t),100)),e.result=e.result.toFixed(o)}o?this.hot.setDataAtCell(s,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([s,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}throwOutOfBoundsWarning(){(0,i.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}},14875:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(85729);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ColumnSummary=s.ColumnSummary},57990:(e,t)=>{"use strict";t.__esModule=!0,t.isNullishOrNaN=function(e){return null==e||isNaN(e)}},71313:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=o(94916),n=o(95016),i=s(o(32943)),l=o(63962);function a(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}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 WeakMap;class v{static get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"}static get CLASS_EDITOR(){return"htComments"}static get CLASS_INPUT(){return"htCommentTextArea"}static get CLASS_CELL(){return"htCommentCell"}constructor(e,t){var o=this;a(this,d,void 0),a(this,g,!1),a(this,f,null),a(this,p,void 0),a(this,m,void 0),a(this,w,!0),a(this,C,new l.EditorResizeObserver),c(d,this,e),c(g,this,t),c(p,this,this.createEditor()),c(m,this,h(p,this).style),h(C,this).setObservedElement(this.getInputElement()),h(C,this).addLocalHook("resize",(function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.runLocalHooks("resize",...t)})),this.hide()}setPosition(e,t){h(m,this).left=`${e}px`,h(m,this).top=`${t}px`}setSize(e,t){if(e&&t){const o=this.getInputElement();o.style.width=`${e}px`,o.style.height=`${t}px`}}getSize(){return{width:(0,r.outerWidth)(this.getInputElement()),height:(0,r.outerHeight)(this.getInputElement())}}observeSize(){h(C,this).observe()}resetSize(){const e=this.getInputElement();e.style.width="",e.style.height=""}setReadOnlyState(e){this.getInputElement().readOnly=e}show(){h(m,this).display="block",c(w,this,!1)}hide(){h(C,this).unobserve(),h(w,this)||(h(m,this).display="none"),c(w,this,!0)}isVisible(){return"block"===h(m,this).display}setValue(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=e}getValue(){return this.getInputElement().value}isFocused(){return h(d,this).activeElement===this.getInputElement()}focus(){this.getInputElement().focus()}createEditor(){const e=h(d,this).createElement("div"),t=h(d,this).createElement("textarea");return e.style.display="none",c(f,this,h(d,this).createElement("div")),h(f,this).setAttribute("dir",h(g,this)?"rtl":"ltr"),(0,r.addClass)(h(f,this),v.CLASS_EDITOR_CONTAINER),h(d,this).body.appendChild(h(f,this)),(0,r.addClass)(e,v.CLASS_EDITOR),(0,r.addClass)(t,v.CLASS_INPUT),t.setAttribute("data-hot-input",!0),e.appendChild(t),h(f,this).appendChild(e),e}getInputElement(){return h(p,this).querySelector(`.${v.CLASS_INPUT}`)}getEditorElement(){return h(p,this)}destroy(){const e=h(f,this)?h(f,this).parentNode:null;h(p,this).parentNode.removeChild(h(p,this)),c(p,this,null),c(m,this,null),h(C,this).destroy(),e&&e.removeChild(h(f,this))}}(0,n.mixin)(v,i.default);t.default=v},33671:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(94916),i=o(40892),l=o(95016),a=o(9458),h=s(o(71313)),c=s(o(8983)),u=o(37660),d=s(o(34605)),g=s(o(5180)),f=s(o(48990));function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,o){return e.set(v(e,t),o),o}function C(e,t){return e.get(v(e,t))}function v(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 y=t.PLUGIN_KEY="comments",E=t.PLUGIN_PRIORITY=60,S=t.META_COMMENT="comment",R=t.META_COMMENT_VALUE="value",b=t.META_STYLE="style",_=t.META_READONLY="readOnly",T=y,M=`plugin:${y}`;var O=new WeakMap,I=new WeakMap,N=new WeakMap,A=new WeakMap,P=new WeakMap,H=new WeakMap,x=new WeakSet;class D extends a.BasePlugin{constructor(){var e,t;super(...arguments),m(e=this,t=x),t.add(e),(0,r.default)(this,"range",{}),p(this,O,null),p(this,I,null),p(this,N,!1),p(this,A,!1),p(this,P,null),p(this,H,"")}static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return E}static get DEFAULT_SETTINGS(){return{displayDelay:250}}isEnabled(){return!!this.hot.getSettings()[y]}enablePlugin(){var e=this;this.enabled||(C(O,this)||(w(O,this,new h.default(this.hot.rootDocument,this.hot.isRtl())),C(O,this).addLocalHook("resize",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(x,e,U).call(e,...o)}))),C(I,this)||w(I,this,new c.default(this.getSetting("displayDelay"))),this.addHook("afterContextMenuDefaultOptions",(e=>this.addToContextMenu(e))),this.addHook("afterRenderer",((e,t,o,s,r,n)=>v(x,this,F).call(this,e,n))),this.addHook("afterScroll",(()=>v(x,this,Y).call(this))),this.addHook("afterBeginEditing",(()=>this.hide())),this.addHook("afterDocumentKeyDown",(e=>v(x,this,j).call(this,e))),this.addHook("afterSetTheme",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(x,e,z).call(e,...o)})),C(I,this).addLocalHook("hide",(()=>this.hide())),C(I,this).addLocalHook("show",((e,t)=>this.showAtCell(e,t))),this.registerShortcuts(),this.registerListeners(),super.enablePlugin())}updatePlugin(){C(I,this).updateDelay(this.getSetting("displayDelay")),super.updatePlugin()}disablePlugin(){this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=this.hot.getShortcutManager(),t=e.getContext("grid"),o=e.addContext(M);t.addShortcut({keys:[["Control","Alt","M"]],callback:()=>{const t=this.hot.getSelectedRangeLast();w(A,this,!0),this.hot.scrollToFocusedCell((()=>{this.setRange(t),this.show(),this.focusEditor(),e.setActiveContextName(M),this.hot._registerTimeout((()=>{w(A,this,!1)}))}))},stopPropagation:!0,runOnlyIf:()=>{var e;return null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight.isCell()},group:T}),o.addShortcut({keys:[["Escape"]],callback:()=>{C(O,this).setValue(C(H,this)),this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>C(O,this).isVisible()&&C(O,this).isFocused(),group:T}),o.addShortcut({keys:[["Control/Meta","Enter"]],callback:()=>{this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>C(O,this).isVisible()&&C(O,this).isFocused(),group:T}),o.addShortcut({keys:[["Shift","Tab"],["Tab"]],forwardToContext:e.getContext("grid"),callback:()=>{C(O,this).setValue(C(H,this)),this.hide(),e.setActiveContextName("grid")},group:T})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(T)}registerListeners(){const{rootDocument:e}=this.hot,t=this.getEditorInputElement();this.eventManager.addEventListener(e,"mouseover",(e=>v(x,this,L).call(this,e))),this.eventManager.addEventListener(e,"mousedown",(e=>v(x,this,k).call(this,e))),this.eventManager.addEventListener(e,"mouseup",(()=>v(x,this,V).call(this))),this.eventManager.addEventListener(t,"focus",(()=>v(x,this,B).call(this))),this.eventManager.addEventListener(t,"blur",(()=>v(x,this,W).call(this)))}setRange(e){this.range=e}clearRange(){this.range={}}targetIsCellWithComment(e){const t=(0,n.closest)(e.target,"TD","TBODY");return!!(t&&(0,n.hasClass)(t,"htCommentCell")&&(0,n.closest)(t,[this.hot.rootElement]))}targetIsCommentTextArea(e){return this.getEditorInputElement()===e.target}setComment(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const t=C(O,this).getValue();let o="";null!=e?o=e:null!=t&&(o=t);const s=this.range.from.row,r=this.range.from.col;this.updateCommentMeta(s,r,{[R]:o}),this.hot.render()}setCommentAtCell(e,t,o){this.setRange({from:this.hot._createCellCoords(e,t)}),this.setComment(o)}removeComment(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.setCellMeta(this.range.from.row,this.range.from.col,S),e&&this.hot.render(),this.hide()}removeCommentAtCell(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(e,t)}),this.removeComment(o)}getComment(){const e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,R)}getCommentAtCell(e,t){return this.getCommentMeta(e,t,R)}show(){var e;if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{from:{row:t,col:o}}=this.range;if(t<0||t>this.hot.countSourceRows()-1||o<0||o>this.hot.countSourceCols()-1)return!1;const s=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return C(I,this).cancelHiding(),C(O,this).setValue(null!==(e=s[S]?s[S][R]:null)&&void 0!==e?e:""),C(O,this).show(),this.refreshEditor(!0),!0}showAtCell(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}hide(){C(O,this).hide()}refreshEditor(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&C(O,this).isVisible()))return;const{rowIndexMapper:e,columnIndexMapper:t}=this.hot,{row:o,col:s}=this.range.from;let r=e.getRenderableFromVisualIndex(o),i=t.getRenderableFromVisualIndex(s);const l=null===r;C(O,this).setPosition(0,0),null===r&&(r=e.getRenderableFromVisualIndex(e.getNearestNotHiddenIndex(o,-1))),null===i&&(i=t.getRenderableFromVisualIndex(t.getNearestNotHiddenIndex(s,-1)));const a=null===r,h=null===i;r=null!=r?r:0,i=null!=i?i:0;const{rootWindow:c,view:{_wt:u}}=this.hot,{wtTable:d}=u,g=u.getCell({row:r,col:i},!0),f=this.getCommentMeta(o,s,b);f?C(O,this).setSize(f.width,f.height):C(O,this).resetSize();const p=h?0:d.getColumnWidth(i),m=l&&!a?(0,n.outerHeight)(g):0,{left:w,top:v,width:y,height:E}=g.getBoundingClientRect(),{width:S,height:R}=C(O,this).getSize(),{innerWidth:T,innerHeight:M}=this.hot.rootWindow,I=this.hot.rootDocument.documentElement;let N=w+c.scrollX+p,A=v+c.scrollY+m;this.hot.isRtl()&&(N-=S+p),this.hot.isLtr()&&w+y+S>T?N=w+c.scrollX-S-1:this.hot.isRtl()&&N<-(I.scrollWidth-I.clientWidth)&&(N=w+c.scrollX+p+1),v+R>M&&(A-=R-E+1),C(O,this).setPosition(N,A),C(O,this).setReadOnlyState(this.getCommentMeta(o,s,_)),C(O,this).observeSize()}focusEditor(){C(O,this).focus()}updateCommentMeta(e,t,o){const s=this.hot.getCellMeta(e,t)[S];let r;s?(r=(0,l.deepClone)(s),(0,l.deepExtend)(r,o)):r=o,this.hot.setCellMeta(e,t,S,r)}getCommentMeta(e,t,o){const s=this.hot.getCellMeta(e,t);if(s[S])return s[S][o]}addToContextMenu(e){e.items.push({name:u.SEPARATOR},(0,d.default)(this),(0,g.default)(this),(0,f.default)(this))}getEditorInputElement(){return C(O,this).getInputElement()}destroy(){var e,t;null===(e=C(O,this))||void 0===e||e.destroy(),null===(t=C(I,this))||void 0===t||t.destroy(),super.destroy()}}function k(e){if(this.hot.view&&this.hot.view._wt&&!C(N,this)&&!this.targetIsCommentTextArea(e)){const t=(0,n.closest)(e.target,"TD","TBODY");let o=null;t&&(o=this.hot.getCoords(t)),(!t||this.range.from&&o&&(this.range.from.row!==o.row||this.range.from.col!==o.col))&&this.hide()}}function L(e){const{rootDocument:t}=this.hot;if(!(C(N,this)||C(O,this).isFocused()||(0,n.hasClass)(e.target,"wtBorder")||C(P,this)===e.target)&&C(O,this))if(w(P,this,t.elementFromPoint(e.clientX,e.clientY)),this.targetIsCellWithComment(e)){const t=this.hot._createCellRange(this.hot.getCoords(e.target));C(I,this).show(t)}else(0,n.isChildOf)(e.target,t)&&!this.targetIsCommentTextArea(e)&&C(I,this).hide()}function V(){w(N,this,!1)}function F(e,t){t[S]&&t[S][R]&&(0,n.addClass)(e,t.commentedCellClassName)}function W(){w(H,this,""),this.hot.getShortcutManager().setActiveContextName("grid"),this.setComment()}function B(){w(H,this,this.getComment()),this.hot.listen(),this.hot.getShortcutManager().setActiveContextName(M)}function U(e,t){this.updateCommentMeta(this.range.from.row,this.range.from.col,{[b]:{width:e,height:t}})}function j(e){C(O,this).isFocused()&&(0,i.stopImmediatePropagation)(e)}function Y(){C(A,this)||this.hide()}function z(){const e=C(O,this).getEditorElement();(0,n.removeClass)(e,/ht-theme-.*/g),(0,n.addClass)(e,this.hot.getCurrentThemeName())}t.Comments=D},34605:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsAddEdit",name(){var t;const o=null===(t=this.getSelectedRangeLast())||void 0===t?void 0:t.highlight;return null!=o&&o.isCell()&&e.getCommentAtCell(o.row,o.col)?this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_EDIT_COMMENT):this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback(){const t=this.getSelectedRangeLast();e.setRange(t),e.show(),e.focusEditor()},disabled(){const e=this.getSelectedRangeLast();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}},48990:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsReadOnly",name(){const t=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,r.checkSelectionConsistency)(this.getSelectedRange(),((t,o)=>e.getCommentMeta(t,o,n.META_READONLY)))?(0,r.markLabelAsSelected)(t):t},callback(){this.getSelectedRangeLast().forAll(((t,o)=>{if(t>=0&&o>=0){const s=!!e.getCommentMeta(t,o,n.META_READONLY);e.updateCommentMeta(t,o,{[n.META_READONLY]:!s})}}))},disabled(){const t=this.getSelectedRangeLast();return!!(!t||t.highlight.isHeader()||!e.getCommentAtCell(t.highlight.row,t.highlight.col)||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(76368),n=o(33671);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}},5180:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsRemove",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback(){this.getSelectedRangeLast().forAll(((t,o)=>{t>=0&&o>=0&&e.removeCommentAtCell(t,o,!1)})),this.render()},disabled(){const e=this.getSelectedRangeLast();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}},8983:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(77515),i=o(95016),l=s(o(32943));class a{constructor(e){(0,r.default)(this,"wasLastActionShow",!0),(0,r.default)(this,"showDebounced",null),(0,r.default)(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout((()=>{!1===this.wasLastActionShow&&this.runLocalHooks("hide")}),250)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,n.debounce)((e=>{this.wasLastActionShow&&this.runLocalHooks("show",e.from.row,e.from.col)}),e)}destroy(){this.clearLocalHooks()}}(0,i.mixin)(a,l.default);t.default=a},63962:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(14846),o(69655);var r=o(95016),n=s(o(32943));function i(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 a(e,t){return e.get(c(e,t))}function h(e,t,o){return e.set(c(e,t),o),o}function c(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 u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakSet;class p{constructor(){var e,t;l(e=this,t=f),t.add(e),i(this,u,!0),i(this,d,null),i(this,g,new ResizeObserver((e=>c(f,this,m).call(this,e))))}setObservedElement(e){h(d,this,e)}unobserve(){a(g,this).unobserve(a(d,this))}observe(){h(u,this,!0),a(g,this).observe(a(d,this))}destroy(){a(g,this).disconnect()}}function m(e){!a(u,this)&&Array.isArray(e)&&e.length?e.forEach((e=>{let{borderBoxSize:t}=e;const{inlineSize:o,blockSize:s}=t[0];this.runLocalHooks("resize",o,s)})):h(u,this,!1)}t.EditorResizeObserver=p,(0,r.mixin)(p,n.default)},28925:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(33671);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.Comments=s.Comments},41485:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(54999);var r=s(o(85707)),n=o(47154),i=o(95016);t.CommandExecutor=class{constructor(e){(0,r.default)(this,"hot",void 0),(0,r.default)(this,"commands",{}),(0,r.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 r=e.split(":"),l=r[0],a=2===r.length?r[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,n.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,i.hasOwnProperty)(h,"submenu"))return;const c=[];"function"==typeof h.callback&&c.push(h.callback),"function"==typeof this.commonCallback&&c.push(this.commonCallback),o.unshift(r.join(":")),(0,n.arrayEach)(c,(e=>e.apply(this.hot,o)))}}},8537:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(9458),i=o(29398),l=o(47154),a=o(95016),h=o(41485),c=o(47843),u=o(43001),d=o(76368),g=o(94916),f=o(37660);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;i.Hooks.getSingleton().register("afterContextMenuDefaultOptions"),i.Hooks.getSingleton().register("beforeContextMenuShow"),i.Hooks.getSingleton().register("afterContextMenuShow"),i.Hooks.getSingleton().register("afterContextMenuHide"),i.Hooks.getSingleton().register("afterContextMenuExecute");var y=new WeakSet;class E extends n.BasePlugin{constructor(){super(...arguments),p(this,y),(0,r.default)(this,"commandExecutor",new h.CommandExecutor(this.hot)),(0,r.default)(this,"itemsFactory",null),(0,r.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.rootDocument.body}),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),s=0;s<t;s++)o[s]=arguments[s];return e.executeCommand.call(e,...o)})),this.addHook("afterOnCellContextMenu",(e=>m(y,this,S).call(this,e))),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.getSelectedRangeLast();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.getSelectedRangeLast())||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};if(null!==(t=this.menu)&&void 0!==t&&t.isOpened())return;this.prepareMenuItems(),this.menu.open();this.menu.tableBorderWidth>0||(o.below+=1,o.right+=1,o.above-=1,o.left-=1),(0,a.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),s=1;s<t;s++)o[s-1]=arguments[s];this.commandExecutor.execute(e,...o)}prepareMenuItems(){this.itemsFactory=new c.ItemsFactory(this.hot,E.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,l.arrayEach)(o,(e=>this.commandExecutor.registerCommand(e.key,e)))}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function S(e){const t=this.hot.getSettings(),o=t.rowHeaders,s=t.colHeaders;const r=e.target;if(this.close(),(0,g.hasClass)(r,"handsontableInput"))return;if(e.preventDefault(),e.stopPropagation(),!o&&!s&&!(function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(r)||(0,g.hasClass)(r,"current")&&(0,g.hasClass)(r,"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=E,E.SEPARATOR={name:f.SEPARATOR}},96917:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(8537);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ContextMenu=s.ContextMenu},47843:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(95016),i=o(47154),l=o(37660);t.ItemsFactory=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,r.default)(this,"hot",void 0),(0,r.default)(this,"predefinedItems",(0,l.predefinedItems)()),(0,r.default)(this,"defaultOrderPattern",void 0),this.hot=e,this.defaultOrderPattern=t}setPredefinedItems(e){const t={};this.defaultOrderPattern.length=0,(0,n.objectEach)(e,((e,o)=>{let s="";e.name===l.SEPARATOR?(t[l.SEPARATOR]=e,s=l.SEPARATOR):isNaN(parseInt(o,10))?(e.key=void 0===e.key?o:e.key,t[o]=e,s=e.key):(t[e.key]=e,s=e.key),this.defaultOrderPattern.push(s)})),this.predefinedItems=t}getItems(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=[];let r=e;r&&r.items?r=r.items:Array.isArray(r)||(r=t);(0,n.isObject)(r)?(0,n.objectEach)(r,((e,t)=>{let r=o["string"==typeof e?e:t];r||(r=e),(0,n.isObject)(e)?(0,n.extend)(r,e):"string"==typeof r&&(r={name:r}),void 0===r.key&&(r.key=t),s.push(r)})):(0,i.arrayEach)(r,((e,t)=>{let r=o[e];!r&&l.ITEMS.indexOf(e)>=0||(r||(r={name:e,key:`${t}`}),(0,n.isObject)(e)&&(0,n.extend)(r,e),void 0===r.key&&(r.key=t),s.push(r))}));return s}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}},61895:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.Cursor=class{constructor(e,t){(0,r.default)(this,"top",void 0),(0,r.default)(this,"topRelative",void 0),(0,r.default)(this,"left",void 0),(0,r.default)(this,"leftRelative",void 0),(0,r.default)(this,"scrollTop",void 0),(0,r.default)(this,"scrollLeft",void 0),(0,r.default)(this,"cellHeight",void 0),(0,r.default)(this,"cellWidth",void 0);const o=t.scrollY,s=t.scrollX;let n,i,l,a,h,c;this.rootWindow=t,this.type=this.getSourceType(e),"literal"===this.type?(n=parseInt(e.top,10),l=parseInt(e.left,10),h=e.height||0,c=e.width||0,i=n,a=l,n+=o,l+=s):"event"===this.type&&(n=parseInt(e.pageY,10),l=parseInt(e.pageX,10),h=e.target.clientHeight,c=e.target.clientWidth,i=n-o,a=l-s),this.top=n,this.topRelative=i,this.left=l,this.leftRelative=a,this.scrollTop=o,this.scrollLeft=s,this.cellHeight=h,this.cellWidth=c}getSourceType(e){let t="literal";return e instanceof Event&&(t="event"),t}fitsAbove(e){return this.topRelative>=e.offsetHeight}fitsBelow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}fitsOnRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}fitsOnLeft(e){return this.leftRelative>=e.offsetWidth}}},61849:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultShortcutsList=function(e){const{hot:t,hotMenu:o}=e;return[{keys:[["Control/Meta","A"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:()=>e.close(!0)},{keys:[["Tab"],["Shift","Tab"]],callback:(o,s)=>{const r=t.getSettings(),n="function"==typeof r.tabMoves?r.tabMoves(o):r.tabMoves;s.includes("shift")?t.selection.transformStart(-n.row,-n.col):t.selection.transformStart(n.row,n.col),e.close(!0)}},{keys:[["Escape"]],callback:()=>e.close()},{keys:[["ArrowDown"]],callback:()=>e.getNavigator().toNextItem()},{keys:[["ArrowUp"]],callback:()=>e.getNavigator().toPreviousItem()},{keys:[["ArrowRight"]],callback:()=>{const t=o.getSelectedLast();if(t){const o=e.openSubMenu(t[0]);o&&o.getNavigator().toFirstItem()}}},{keys:[["ArrowLeft"]],callback:()=>{o.getSelectedLast()&&e.isSubMenu()&&(e.close(),e.isSubMenu()&&e.parentMenu.hotMenu.listen())}},{keys:[["Control/Meta","ArrowUp"],["Home"]],callback:()=>e.getNavigator().toFirstItem()},{keys:[["Control/Meta","ArrowDown"],["End"]],callback:()=>e.getNavigator().toLastItem()},{keys:[["Enter"],["Space"]],callback:t=>{const s=o.getSelectedLast();s&&(o.getSourceDataAtRow(s[0]).submenu?e.openSubMenu(s[0]).getNavigator().toFirstItem():(e.executeCommand(t),e.close(!0)))}},{keys:[["PageUp"]],callback:()=>{o.getSelectedLast()?o.selection.transformStart(-o.countVisibleRows(),0):e.getNavigator().toFirstItem()}},{keys:[["PageDown"]],callback:()=>{o.getSelectedLast()?o.selection.transformStart(o.countVisibleRows(),0):e.getNavigator().toLastItem()}}]}},43001:(e,t,o)=>{"use strict";o(14846),o(69655),t.__esModule=!0;var s=o(19646);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}))},19646:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(56569),i=o(87032),l=o(15022),a=o(37660),h=o(99380),c=s(o(12370)),u=o(47154),d=o(99275),g=o(94916),f=o(40892),p=o(77515),m=o(95768),w=o(95016),C=s(o(32943)),v=o(90534),y=o(45551);function E(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function S(e,t,o){return e.set(b(e,t),o),o}function R(e,t){return e.get(b(e,t))}function b(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 _=new WeakMap,T=new WeakMap,M=new WeakMap;class O{get tableBorderWidth(){return void 0===R(M,this)&&this.hotMenu&&S(M,this,parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth,10)),R(M,this)}constructor(e,t){var o=this;(0,r.default)(this,"hot",void 0),(0,r.default)(this,"options",void 0),(0,r.default)(this,"eventManager",new c.default(this)),(0,r.default)(this,"container",void 0),(0,r.default)(this,"positioner",void 0),(0,r.default)(this,"hotMenu",null),(0,r.default)(this,"hotSubMenus",{}),(0,r.default)(this,"parentMenu",void 0),(0,r.default)(this,"menuItems",null),(0,r.default)(this,"origOutsideClickDeselects",null),E(this,_,void 0),E(this,T,void 0),E(this,M,void 0),this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootDocument.documentElement},this.container=this.createContainer(this.options.name),this.positioner=new n.Positioner(this.options.keepInViewport),this.parentMenu=this.options.parent||null,this.registerEvents(),this.isSubMenu()&&this.addLocalHook("afterSelectionChange",(function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return o.parentMenu.runLocalHooks("afterSelectionChange",...t)})),this.hot.addHook("afterSetTheme",((e,t)=>{var o;t||(null===(o=this.hotMenu)||void 0===o||o.useTheme(e))}))}registerEvents(){let e=this.hot.rootWindow;for(;e;)this.eventManager.addEventListener(e.document,"mousedown",(e=>this.onDocumentMouseDown(e))),this.eventManager.addEventListener(e.document,"touchstart",(e=>this.onDocumentMouseDown(e))),this.eventManager.addEventListener(e.document,"contextmenu",(e=>this.onDocumentContextMenu(e))),e=(0,g.getParentWindow)(e)}setMenuItems(e){this.menuItems=e}getNavigator(){return R(_,this)}getKeyboardShortcutsCtrl(){return R(T,this)}getSelectedItem(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedLast())}isSubMenu(){return null!==this.parentMenu}open(){this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";const e=(0,p.debounce)((e=>this.openSubMenu(e)),300),t=this.options.minWidth||215;let o=!1,s=(0,u.arrayFilter)(this.menuItems,(e=>(e.key===a.NO_ITEMS&&(o=!0),(0,h.isItemHidden)(e,this.hot))));if(s.length<1&&!o)s.push((0,a.predefinedItems)()[a.NO_ITEMS]);else if(0===s.length)return;s=(0,h.filterSeparators)(s,a.SEPARATOR);let r=!1;const n={data:s,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:e=>(0,m.isDefined)(e)&&e<t?t:e,autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,hiddenRows:!0,maxCols:1,columns:[{data:"name",renderer:(0,v.createMenuItemRenderer)(this.hot)}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",ariaTags:!1,themeName:this.hot.getCurrentThemeName(),beforeOnCellMouseOver:(e,t)=>{R(_,this).setCurrentPage(t.row)},afterOnCellMouseOver:(t,o)=>{this.isAllSubMenusClosed()?e(o.row):this.openSubMenu(o.row)},rowHeights:e=>s[e].name===a.SEPARATOR?1:void 0,afterOnCellContextMenu:e=>{e.preventDefault(),(0,d.isWindowsOS)()&&r&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,o,s,r)=>{this.hotMenu.view.isMouseDown()&&(r.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(r=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,f.isRightClick)(e)||!r||!this.hasSelectedItem()||((0,d.isMobileBrowser)()||(0,d.isIpadOS)()?this.hot._registerTimeout((()=>this.close(!0)),325):this.close(!0))},afterUnlisten:()=>{!this.hasSelectedItem()&&this.isOpened()&&this.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new this.hot.constructor(this.container,n),this.hotMenu.addHook("afterInit",(()=>this.onAfterInit())),this.hotMenu.init(),S(_,this,(0,i.createMenuNavigator)(this.hotMenu)),S(T,this,(0,l.createKeyboardShortcutsCtrl)(this)),R(T,this).listen(),this.focus(),this.isSubMenu()&&this.addLocalHook("afterOpen",(()=>this.parentMenu.runLocalHooks("afterSubmenuOpen",this))),this.runLocalHooks("afterOpen",this)}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isOpened())if(e&&this.isSubMenu())this.parentMenu.close();else if(R(_,this).clear(),this.closeAllSubMenus(),this.container.style.display="none",this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.isSubMenu()){if(this.hot.getSettings().ariaTags){const e=this.parentMenu.hotMenu.getSelectedLast();if(e){const t=this.parentMenu.hotMenu.getCell(e[0],0);(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!1)])}}this.parentMenu.hotMenu.listen()}}openSubMenu(e){if(!this.hotMenu)return!1;const t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!(0,h.hasSubMenu)(t))return!1;const o=this.hotMenu.getSourceDataAtRow(e),s=new O(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return s.setMenuItems(o.submenu.items),s.open(),s.setPosition(t.getBoundingClientRect()),this.hotSubMenus[o.key]=s,this.hot.getSettings().ariaTags&&(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!0)]),s}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),o=this.hotSubMenus[t.key];if(o){o.destroy(),delete this.hotSubMenus[t.key];const s=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,g.setAttribute)(s,[(0,y.A11Y_EXPANDED)(!1)])}}closeAllSubMenus(){(0,u.arrayEach)(this.hotMenu.getData(),((e,t)=>this.closeSubMenu(t)))}isAllSubMenusClosed(){return 0===Object.keys(this.hotSubMenus).length}focus(){this.isOpened()&&(this.hotMenu.rootElement.focus({preventScroll:!0}),this.getKeyboardShortcutsCtrl().listen(),this.hotMenu.listen())}destroy(){const e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}isOpened(){return null!==this.hotMenu}executeCommand(e){if(!this.isOpened()||!this.hasSelectedItem())return;const t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),this.isCommandPassive(t))return;const o=this.hot.getSelectedRange(),s=o?(0,h.normalizeSelection)(o):[];this.runLocalHooks("executeCommand",t.key,s,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,s,e)}isCommandPassive(e){return!1===e.isCommand||(0,h.isItemSeparator)(e)||(0,h.isItemDisabled)(e,this.hot)||(0,h.isItemSubMenu)(e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.positioner.setOffset(e,t)}setPosition(e){this.isSubMenu()&&this.positioner.setParentElement(this.parentMenu.container),this.positioner.setElement(this.container).updatePosition(e)}updateMenuDimensions(){const{wtTable:e}=this.hotMenu.view._wt,t=this.hotMenu.getSettings().data,o=e.hider.style,s=e.holder.style,r=parseInt(o.width,10),n=(0,u.arrayReduce)(t,((e,t,o)=>{const s=this.hotMenu.getCell(o,0)?(0,g.outerHeight)(this.hotMenu.getCell(o,0)):0;return e+(t.name===a.SEPARATOR?1:s)}),0);s.width=`${r}px`,s.height=`${n}px`,o.height=s.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let o,s=e;return s&&((0,p.isFunction)(s)&&(s=s.call(this.hot),s=null===s||(0,m.isUndefined)(s)?"":s.toString()),s=s.replace(/[^A-z0-9]/g,"_"),s=`${this.options.className}Sub_${s}`,o=t.querySelector(`.${this.options.className}.${s}`)),o||(o=t.createElement("div"),(0,g.addClass)(o,`htMenu ${this.options.className}`),s&&(0,g.addClass)(o,s),this.options.container.appendChild(o)),o}onAfterInit(){this.updateMenuDimensions(),this.hot.getSettings().ariaTags&&(0,g.setAttribute)(this.hotMenu.rootElement,[(0,y.A11Y_MENU)(),(0,y.A11Y_TABINDEX)(-1)])}onDocumentMouseDown(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,g.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,g.isChildOf)(e.target,".htMenu")||this.close(!0))}onDocumentContextMenu(e){this.isOpened()&&(0,g.hasClass)(e.target,"htCore")&&(0,g.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}t.Menu=O,(0,w.mixin)(O,C.default)},90534:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMenuItemRenderer=function(e){return(t,o,i,l,a,h)=>{const c=t.getSourceDataAtRow(i),u=e.rootDocument.createElement("div"),d="function"==typeof h?h.call(e):h,g="function"==typeof c.ariaLabel?c.ariaLabel.call(e):c.ariaLabel,f="function"==typeof c.ariaChecked?c.ariaChecked.call(e):c.ariaChecked;if((0,r.empty)(o),(0,r.addClass)(u,"htItemWrapper"),e.getSettings().ariaTags){const t=!(0,s.isItemDisabled)(c,e)&&!(0,s.isItemSelectionDisabled)(c)&&!(0,s.isItemSeparator)(c);(0,r.setAttribute)(o,[...(0,s.isItemCheckable)(c)?[(0,n.A11Y_MENU_ITEM_CHECKBOX)(),(0,n.A11Y_LABEL)(g),(0,n.A11Y_CHECKED)(f)]:[(0,n.A11Y_MENU_ITEM)(),(0,n.A11Y_LABEL)(d)],...t?[(0,n.A11Y_TABINDEX)(-1)]:[],...(0,s.isItemDisabled)(c,e)?[(0,n.A11Y_DISABLED)()]:[],...(0,s.isItemSubMenu)(c)?[(0,n.A11Y_EXPANDED)(!1)]:[]])}o.className="",o.appendChild(u),(0,s.isItemSeparator)(c)?(0,r.addClass)(o,"htSeparator"):"function"==typeof c.renderer?((0,r.addClass)(o,"htCustomMenuRenderer"),o.appendChild(c.renderer(t,u,i,l,a,d))):(0,r.fastInnerHTML)(u,d),(0,s.isItemDisabled)(c,e)?(0,r.addClass)(o,"htDisabled"):(0,s.isItemSelectionDisabled)(c)?(0,r.addClass)(o,"htSelectionDisabled"):(0,s.isItemSubMenu)(c)&&(0,r.addClass)(o,"htSubmenu")}};var s=o(99380),r=o(94916),n=o(45551)},87032:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMenuNavigator=function(e){return(0,s.createPaginator)({size:()=>e.countRows(),onItemSelect(t,o){const s=e.getCell(t,0);if(!s||(0,r.isSeparator)(s)||(0,r.isDisabled)(s)||(0,r.isSelectionDisabled)(s))return!1;e.selectCell(t,0,...o?[t,0,!1,!1]:[])},onClear(){e.deselectCell()}})};var s=o(77316),r=o(99380)},56569:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834);var s=o(61895);function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(l(e,t))}function i(e,t,o){return e.set(l(e,t),o),o}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 a=new WeakMap,h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap;t.Positioner=class{constructor(e){r(this,a,void 0),r(this,h,void 0),r(this,c,void 0),r(this,u,!1),r(this,d,{above:0,below:0,left:0,right:0}),i(u,this,e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n(d,this)[e]=t,this}setElement(e){return i(a,this,e),this}setParentElement(e){return i(h,this,e),this}updatePosition(e){i(c,this,new s.Cursor(e,n(a,this).ownerDocument.defaultView)),n(u,this)?(n(c,this).fitsBelow(n(a,this))?this.setPositionBelowCursor():n(c,this).fitsAbove(n(a,this))?this.setPositionAboveCursor():this.setPositionBelowCursor(),this.updateHorizontalPosition()):(this.setPositionBelowCursor(),this.setPositionOnRightOfCursor())}updateHorizontalPosition(){"rtl"===n(a,this).dir?n(c,this).fitsOnLeft(n(a,this))?this.setPositionOnLeftOfCursor():this.setPositionOnRightOfCursor():n(c,this).fitsOnRight(n(a,this))?this.setPositionOnRightOfCursor():this.setPositionOnLeftOfCursor()}setPositionAboveCursor(){let e=n(d,this).above+n(c,this).top-n(a,this).offsetHeight;n(h,this)&&(e=n(c,this).top+n(c,this).cellHeight-n(a,this).offsetHeight+3),n(a,this).style.top=`${e}px`}setPositionBelowCursor(){let e=n(d,this).below+n(c,this).top+1;n(h,this)&&(e=n(c,this).top-1),n(a,this).style.top=`${e}px`}setPositionOnRightOfCursor(){let e=n(c,this).left;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView,o=Number.parseInt(t.getComputedStyle(n(h,this).querySelector(".htCore")).borderRightWidth,10);e+=n(c,this).cellWidth+o}else e+=n(d,this).right;n(a,this).style.left=`${e}px`}setPositionOnLeftOfCursor(){let e=n(d,this).left+n(c,this).left-n(a,this).offsetWidth;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView;e-=Number.parseInt(t.getComputedStyle(n(h,this).querySelector(".htCore")).borderLeftWidth,10)}n(a,this).style.left=`${e}px`}}},15022:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutsCtrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const o=[];function i(e,t){h(t).addShortcuts(e,{group:r})}function l(e,t){const s=h(t);e.forEach((e=>{let{keys:t}=e;t.forEach((e=>s.removeShortcutsByKeys(e)))})),o.push({shortcuts:e,contextName:t}),i(e,t)}function a(e){return e?`${n}:${e}`:n}function h(t){var o;const s=e.hotMenu.getShortcutManager(),r=a(t);return null!==(o=s.getContext(r))&&void 0!==o?o:s.addContext(r)}return i((0,s.createDefaultShortcutsList)(e)),t.forEach((e=>{let{shortcuts:t,contextName:o}=e;l(t,o)})),{addCustomShortcuts:l,getCustomShortcuts:function(){return[...o]},getContext:h,listen:function(t){e.hotMenu.getShortcutManager().setActiveContextName(a(t))}}},o(15724),o(14846),o(69655);var s=o(61849);const r="menu",n=r},99380:(e,t,o)=>{"use strict";t.__esModule=!0,t.filterSeparators=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.SEPARATOR,o=e.slice(0);return o=l(o,t),o=function(e,t){let o=e.slice(0);return o.reverse(),o=l(o,t),o.reverse(),o}(o,t),o=function(e){const t=[];return(0,s.arrayEach)(e,((e,o)=>{o>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)})),t}(o),o},t.hasSubMenu=function(e){return(0,n.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,n.hasClass)(e,"htDisabled")},t.isItemCheckable=function(e){return!0===e.checkable},t.isItemDisabled=function(e,t){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(t)},t.isItemHidden=function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))},t.isItemSelectionDisabled=function(e){return(0,r.hasOwnProperty)(e,"disableSelection")},t.isItemSeparator=function(e){return new RegExp(i.SEPARATOR,"i").test(e.name)},t.isItemSubMenu=function(e){return(0,r.hasOwnProperty)(e,"submenu")},t.isSelectionDisabled=function(e){return(0,n.hasClass)(e,"htSelectionDisabled")},t.isSeparator=function(e){return(0,n.hasClass)(e,"htSeparator")},t.normalizeSelection=function(e){return(0,s.arrayMap)(e,(e=>({start:e.getTopStartCorner(),end:e.getBottomEndCorner()})))},o(15724);var s=o(47154),r=o(95016),n=o(94916),i=o(37660);function l(e,t){const o=e.slice(0);for(let e=0;e<o.length&&o[e].name===t;)o.shift();return o}},91077:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:l,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();return!e||(!!e.isSingleHeader()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner()))},submenu:{items:[{key:`${l}:left`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="horizontal",r="htLeft";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1},{key:`${l}:center`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="horizontal",r="htCenter";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1},{key:`${l}:right`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="horizontal",r="htRight";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1},{key:`${l}:justify`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="horizontal",r="htJustify";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1},{name:r.KEY},{key:`${l}:top`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_TOP)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="vertical",r="htTop";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1},{key:`${l}:middle`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="vertical",r="htMiddle";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1},{key:`${l}:bottom`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM)},callback(){const e=this.getSelectedRange(),t=(0,s.getAlignmentClasses)(e,((e,t)=>this.getCellMeta(e,t).className)),o="vertical",r="htBottom";this.runHooks("beforeCellAlignment",t,e,o,r),(0,s.align)(e,o,r,((e,t)=>this.getCellMeta(e,t)),((e,t,o,s)=>this.setCellMeta(e,t,o,s))),this.render()},disabled:!1}]}}};var s=o(76368),r=o(20127),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.KEY="alignment"},98299:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,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(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="clear_column"},39573:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback(){const e=this.getSelectedRangeLast().getTopLeftCorner(),t=this.isRtl()?"insert_col_end":"insert_col_start";this.alter(t,e.col,1,"ContextMenu.columnLeft")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;if(this.selection.isSelectedByCorner()){return 0===this.countCols()}return this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols},hidden(){return!this.getSettings().allowInsertColumn}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="col_left"},55988:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback(){const e=this.getSelectedRangeLast().getTopRightCorner(),t=this.isRtl()?"insert_col_start":"insert_col_end";this.alter(t,e.col,1,"ContextMenu.columnRight")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();return!e||(!!(e.isSingleHeader()&&e.highlight.col<0)||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols))},hidden(){return!this.getSettings().allowInsertColumn}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="col_right"},37660:(e,t,o)=>{"use strict";t.__esModule=!0,t.addItem=function(e,t){-1===v.indexOf(e)&&(y[e]=t)},t.predefinedItems=function(){const e={};return(0,s.objectEach)(y,((t,o)=>{e[o]=t()})),e};var s=o(95016),r=C(o(91077));t.ALIGNMENT=r.KEY;var n=C(o(98299));t.CLEAR_COLUMN=n.KEY;var i=C(o(39573));t.COLUMN_LEFT=i.KEY;var l=C(o(55988));t.COLUMN_RIGHT=l.KEY;var a=C(o(57296));t.READ_ONLY=a.KEY;var h=C(o(3934));t.REDO=h.KEY;var c=C(o(98904));t.REMOVE_COLUMN=c.KEY;var u=C(o(9380));t.REMOVE_ROW=u.KEY;var d=C(o(81899));t.ROW_ABOVE=d.KEY;var g=C(o(69707));t.ROW_BELOW=g.KEY;var f=C(o(20127));t.SEPARATOR=f.KEY;var p=C(o(9133));t.NO_ITEMS=p.KEY;var m=C(o(46952));function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(w=function(e){return e?o:t})(e)}function C(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=w(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}t.UNDO=m.KEY;const v=t.ITEMS=[d.KEY,g.KEY,i.KEY,l.KEY,n.KEY,u.KEY,c.KEY,m.KEY,h.KEY,a.KEY,r.KEY,f.KEY,p.KEY],y={[f.KEY]:f.default,[p.KEY]:p.default,[d.KEY]:d.default,[g.KEY]:g.default,[i.KEY]:i.default,[l.KEY]:l.default,[n.KEY]:n.default,[u.KEY]:u.default,[c.KEY]:c.default,[m.KEY]:m.default,[h.KEY]:h.default,[a.KEY]:a.default,[r.KEY]:r.default}},9133:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_NO_ITEMS)},disabled:!0,isCommand:!1}};var s=o(21571);const r=t.KEY="no_items"},57296:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:l,checkable:!0,ariaChecked(){return(0,s.checkSelectionConsistency)(this.getSelectedRange(),((e,t)=>this.getCellMeta(e,t).readOnly))},ariaLabel(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(n.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,r.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(76368),r=o(47154),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.KEY="make_read_only"},3934:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REDO)},callback(){this.redo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="redo"},98904:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,o,,s]=e[0];o-s!=0&&(t=1)}return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,s.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}};var s=o(85569),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.KEY="remove_col"},9380:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[o,,s]=e[0];o-s!=0&&(t=1)}return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_REMOVE_ROW,t)},callback(){this.alter("remove_row",(0,s.transformSelectionToRowDistance)(this),1,"ContextMenu.removeRow")},disabled(){const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.row<0)return!0;const t=this.countRows();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByColumnHeader()||0===t},hidden(){return!this.getSettings().allowRemoveRow}}};var s=o(85569),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.KEY="remove_row"},81899:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback(){const e=this.getSelectedRangeLast().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled(){const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.row<0)return!0;if(this.selection.isSelectedByCorner()){return 0===this.countRows()}return this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows},hidden(){return!this.getSettings().allowInsertRow}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="row_above"},69707:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,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||(!!(e.isSingleHeader()&&e.highlight.row<0)||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows))},hidden(){return!this.getSettings().allowInsertRow}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="row_below"},20127:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){return{name:o}};const o=t.KEY="---------"},46952:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_UNDO)},callback(){this.undo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isUndoAvailable()}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}const n=t.KEY="undo"},76368:(e,t,o)=>{"use strict";t.__esModule=!0,t.align=function(e,t,o,i,l){(0,s.arrayEach)(e,(e=>{e.forAll(((e,s)=>{e>=0&&s>=0&&function(e,t,o,s,i,l){const a=i(e,t);let h=s;a.className&&(h="vertical"===o?r(a.className,s):n(a.className,s));l(e,t,"className",h)}(e,s,t,o,i,l)}))}))},t.checkSelectionConsistency=function(e,t){let o=!1;Array.isArray(e)&&(0,s.arrayEach)(e,(e=>(e.forAll(((e,s)=>{if(e>=0&&s>=0&&t(e,s))return o=!0,!1})),o)));return o},t.getAlignmentClasses=function(e,t){const o={};return(0,s.arrayEach)(e,(e=>{e.forAll(((e,s)=>{e>=0&&s>=0&&(o[e]||(o[e]=[]),o[e][s]=t(e,s))}))})),o},t.getAlignmentComparatorByClass=function(e){return function(t,o){const s=this.getCellMeta(t,o).className;return s&&-1!==s.indexOf(e)}},t.getDocumentOffsetByElement=function(e,t){const o={top:0,left:0};if(t!==e.ownerDocument){const{frameElement:e}=t.defaultView,{top:s,left:r}=e.getBoundingClientRect();o.top=s,o.left=r}return o},t.markLabelAsSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.prepareHorizontalAlignClass=n,t.prepareVerticalAlignClass=r;var s=o(47154);function r(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","")} ${t}`}function n(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","")} ${t}`}},68431:(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}}},59824:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY)},callback(){e.copyCellsOnly()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(21571)},35636:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_column_headers_only",name(){const e=this.getSelectedRangeLast(),t=e?(0,r.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,t)},callback(){e.copyColumnHeadersOnly()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(21571),r=o(36926)},21869:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeLast(),t=e?(0,r.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(21571),r=o(36926)},5574:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_headers",name(){const e=this.getSelectedRangeLast(),t=e?(0,r.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS,t)},callback(){e.copyWithColumnHeaders()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=o(21571),r=o(36926)},83721:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"cut",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_CUT)},callback(){e.cut()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}},57401:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(27458),o(94364);var r=s(o(85707)),n=o(9458),i=o(29398),l=o(74961),a=o(47154),h=o(83414),c=o(94916),u=o(99275),d=s(o(59824)),g=s(o(35636)),f=s(o(21869)),p=s(o(5574)),m=s(o(83721)),w=s(o(94304)),C=o(33174),v=o(19310);function y(e,t,o){E(e,t),t.set(e,o)}function E(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function S(e,t){return e.get(b(e,t))}function R(e,t,o){return e.set(b(e,t),o),o}function b(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")}i.Hooks.getSingleton().register("afterCopyLimit"),i.Hooks.getSingleton().register("modifyCopyableRange"),i.Hooks.getSingleton().register("beforeCut"),i.Hooks.getSingleton().register("afterCut"),i.Hooks.getSingleton().register("beforePaste"),i.Hooks.getSingleton().register("afterPaste"),i.Hooks.getSingleton().register("beforeCopy"),i.Hooks.getSingleton().register("afterCopy");const _=t.PLUGIN_KEY="copyPaste",T=t.PLUGIN_PRIORITY=80,M=["fragmentSelection"],O=['<meta name="generator" content="Handsontable"/>','<style type="text/css">td{white-space:normal}br{mso-data-placement:same-cell}</style>'].join("");var I=new WeakMap,N=new WeakMap,A=new WeakMap,P=new WeakMap,H=new WeakMap,x=new WeakMap,D=new WeakMap,k=new WeakMap,L=new WeakSet;class V extends n.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=L),t.add(e),(0,r.default)(this,"columnsLimit",1/0),(0,r.default)(this,"rowsLimit",1/0),(0,r.default)(this,"pasteMode","overwrite"),(0,r.default)(this,"uiContainer",this.hot.rootDocument.body),y(this,I,!1),y(this,N,!1),y(this,A,!1),y(this,P,"cells-only"),y(this,H,!1),y(this,x,!1),y(this,D,new C.CopyableRangesFactory({countRows:()=>this.hot.countRows(),countColumns:()=>this.hot.countCols(),rowsLimit:()=>this.rowsLimit,columnsLimit:()=>this.columnsLimit,countColumnHeaders:()=>this.hot.view.getColumnHeadersCount()})),y(this,k,!1),(0,r.default)(this,"copyableRanges",[])}static get PLUGIN_KEY(){return _}static get SETTING_KEYS(){return[_,...M]}static get PLUGIN_PRIORITY(){return T}static get DEFAULT_SETTINGS(){return{pasteMode:"overwrite",rowsLimit:1/0,columnsLimit:1/0,copyColumnHeaders:!1,copyColumnGroupHeaders:!1,copyColumnHeadersOnly:!1}}isEnabled(){return!!this.hot.getSettings()[_]}enablePlugin(){var e,t,o=this;this.enabled||(this.pasteMode=null!==(e=this.getSetting("pasteMode"))&&void 0!==e?e:this.pasteMode,this.rowsLimit=isNaN(this.getSetting("rowsLimit"))?this.rowsLimit:this.getSetting("rowsLimit"),this.columnsLimit=isNaN(this.getSetting("columnsLimit"))?this.columnsLimit:this.getSetting("columnsLimit"),R(I,this,this.getSetting("copyColumnHeaders")),R(N,this,this.getSetting("copyColumnGroupHeaders")),R(A,this,this.getSetting("copyColumnHeadersOnly")),this.uiContainer=null!==(t=this.getSetting("uiContainer"))&&void 0!==t?t:this.uiContainer,this.addHook("afterContextMenuDefaultOptions",(e=>b(L,this,j).call(this,e))),this.addHook("afterSelection",(function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return b(L,o,Y).call(o,...t)})),this.addHook("afterSelectionEnd",(()=>b(L,this,z).call(this))),this.eventManager.addEventListener(this.hot.rootDocument,"copy",(function(){return o.onCopy(...arguments)})),this.eventManager.addEventListener(this.hot.rootDocument,"cut",(function(){return o.onCut(...arguments)})),this.eventManager.addEventListener(this.hot.rootDocument,"paste",(function(){return o.onPaste(...arguments)})),(0,u.isSafari)()&&(this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseenter",(function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return b(L,o,G).call(o,...t)})),this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseleave",(function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return b(L,o,K).call(o,...t)})),this.addHook("afterSelection",(()=>b(L,this,$).call(this)))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin()}copy(){R(P,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cells-only"),R(H,this,!0),b(L,this,F).call(this,"copy")}copyCellsOnly(){this.copy("cells-only")}copyColumnHeadersOnly(){this.copy("column-headers-only")}copyWithAllColumnHeaders(){this.copy("with-column-group-headers")}copyWithColumnHeaders(){this.copy("with-column-headers")}cut(){R(x,this,!0),b(L,this,F).call(this,"cut")}getRangedCopyableData(e){return(0,l.stringify)(this.getRangedData(e))}getRangedData(e){const t=[],{rows:o,columns:s}=(0,C.normalizeRanges)(e);return(0,a.arrayEach)(o,(e=>{const o=[];(0,a.arrayEach)(s,(t=>{e<0?o.push(this.hot.getColHeader(t,e)):o.push(this.hot.getCopyableData(e,t))})),t.push(o)})),t}paste(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(!e&&!t)return;const o=new w.default;e&&o.clipboardData.setData("text/plain",e),t&&o.clipboardData.setData("text/html",t),this.onPaste(o)}setCopyableText(){const e=this.hot.getSelectedRangeLast();if(!e)return;if(e.isSingleHeader())return void(this.copyableRanges=[]);S(D,this).setSelectedRange(e);const t=new Map([["headers",null],["cells",null]]);"column-headers-only"===S(P,this)?t.set("headers",S(D,this).getMostBottomColumnHeadersRange()):("with-column-headers"===S(P,this)?t.set("headers",S(D,this).getMostBottomColumnHeadersRange()):"with-column-group-headers"===S(P,this)&&t.set("headers",S(D,this).getAllColumnHeadersRange()),t.set("cells",S(D,this).getCellsRange())),this.copyableRanges=Array.from(t.values()).filter((e=>null!==e)).map((e=>{let{startRow:t,startCol:o,endRow:s,endCol:r}=e;return{startRow:t,startCol:o,endRow:s,endCol:r}})),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges);const o=t.get("cells");if(null!==o&&o.isRangeTrimmed){const{startRow:e,startCol:t,endRow:s,endCol:r}=o;this.hot.runHooks("afterCopyLimit",s-e+1,r-t+1,this.rowsLimit,this.columnsLimit)}}isEditorOpened(){var e;return null===(e=this.hot.getActiveEditor())||void 0===e?void 0:e.isOpened()}populateValues(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.getSelectedRangeLast();if(!e.length)return;const o=e.length,s=e[0].length,r=[],{row:n,col:i}=t.getTopStartCorner(),{row:l,col:a}=t.getBottomEndCorner();let h=n,c=i,u=n,d=i;for(;r.length<o||h<=l;){const{skipRowOnPaste:t,visualRow:l}=this.hot.getCellMeta(h,i);if(h=l+1,!0===t)continue;u=l,c=i;const g=[],f=r.length%o;for(;g.length<s||c<=a;){const{skipColumnOnPaste:t,visualCol:o}=this.hot.getCellMeta(n,c);if(c=o+1,!0===t)continue;d=o;const r=g.length%s;g.push(e[f][r])}r.push(g)}return R(k,this,!0),this.hot.populateFromArray(n,i,r,void 0,void 0,"CopyPaste.paste",this.pasteMode),[n,i,u,d]}onCopy(e){var t;const o=this.hot.getFocusManager().getRefocusElement(),s=null===(t=e.target)||void 0===t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!S(H,this)||this.isEditorOpened()||e.target instanceof HTMLElement&&(s&&e.target!==o||!s&&e.target!==this.hot.rootDocument.body))return;e.preventDefault(),this.setCopyableText(),R(H,this,!1);const r=this.getRangedData(this.copyableRanges),n=b(L,this,W).call(this,this.copyableRanges);if(!!this.hot.runHooks("beforeCopy",r,this.copyableRanges,n)){const t=(0,l.stringify)(r);if(e&&e.clipboardData){const o=(0,v._dataToHTML)(r,this.hot.rootDocument);e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",[O,o].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",t);this.hot.runHooks("afterCopy",r,this.copyableRanges,n)}R(P,this,"cells-only")}onCut(e){var t;const o=this.hot.getFocusManager().getRefocusElement(),s=null===(t=e.target)||void 0===t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!S(x,this)||this.isEditorOpened()||e.target instanceof HTMLElement&&(s&&e.target!==o||!s&&e.target!==this.hot.rootDocument.body))return;e.preventDefault(),this.setCopyableText(),R(x,this,!1);const r=this.getRangedData(this.copyableRanges);if(!!this.hot.runHooks("beforeCut",r,this.copyableRanges)){const t=(0,l.stringify)(r);if(e&&e.clipboardData){const o=(0,v._dataToHTML)(r,this.hot.rootDocument);e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",[O,o].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",t);this.hot.emptySelectedCells("CopyPaste.cut"),this.hot.runHooks("afterCut",r,this.copyableRanges)}}onPaste(e){var t;const o=this.hot.getFocusManager().getRefocusElement(),s=null===(t=e.target)||void 0===t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()||this.isEditorOpened()||!this.hot.getSelected()||e.target instanceof HTMLElement&&(s&&e.target!==o||!s&&e.target!==this.hot.rootDocument.body))return;let r;if(e.preventDefault(),e&&void 0!==e.clipboardData){const t=(0,h.sanitize)(e.clipboardData.getData("text/html"),{ADD_TAGS:["meta"],ADD_ATTR:["content"],FORCE_BODY:!0});if(t&&/(<table)|(<TABLE)/g.test(t)){r=(0,v.htmlToGridSettings)(t,this.hot.rootDocument).data}else r=e.clipboardData.getData("text/plain")}else"undefined"==typeof ClipboardEvent&&void 0!==this.hot.rootWindow.clipboardData&&(r=this.hot.rootWindow.clipboardData.getData("Text"));if("string"==typeof r&&(r=(0,l.parse)(r)),void 0===r||r&&0===r.length)return;if(!1===this.hot.runHooks("beforePaste",r,this.copyableRanges))return;const[n,i,a,c]=this.populateValues(r);this.hot.selectCell(n,i,Math.min(this.hot.countRows()-1,a),Math.min(this.hot.countCols()-1,c)),this.hot.runHooks("afterPaste",r,this.copyableRanges)}destroy(){super.destroy()}}function F(e){if((0,u.isSafari)()){const t=this.hot.getSelectedRangeLast();if(t){const{row:o,col:s}=t.highlight,r=this.hot.getCell(o,s,!0);r&&(0,c.runWithSelectedContendEditableElement)(r,(()=>{this.hot.rootDocument.execCommand(e)}))}}else this.hot.rootDocument.execCommand(e)}function W(e){const{rows:t}=(0,C.normalizeRanges)(e);let o=0;for(let e=0;e<t.length&&!(t[e]>=0);e++)o+=1;return{columnHeadersCount:o}}function B(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeLast();if(e){const{row:t,col:o}=e.highlight,s=this.hot.getCell(t,o,!0);s&&(0,c.makeElementContentEditableAndSelectItsContent)(s)}}}function U(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeLast();if(e){const{row:t,col:o}=e.highlight,s=this.hot.getCell(t,o,!0);null!=s&&s.hasAttribute("contenteditable")&&(0,c.removeContentEditableFromElementAndDeselect)(s)}}}function j(e){e.items.push({name:"---------"},(0,d.default)(this)),S(I,this)&&e.items.push((0,p.default)(this)),S(N,this)&&e.items.push((0,f.default)(this)),S(A,this)&&e.items.push((0,g.default)(this)),e.items.push((0,m.default)(this))}function Y(e,t,o,s,r){S(k,this)&&(r.value=!0),R(k,this,!1)}function z(){this.isEditorOpened()||this.hot.getSettings().fragmentSelection||this.setCopyableText()}function G(){b(L,this,U).call(this)}function K(){b(L,this,B).call(this)}function $(){b(L,this,U).call(this)}t.CopyPaste=V},33174:(e,t,o)=>{"use strict";t.__esModule=!0,t.normalizeRanges=function(e){const t=[],o=[];return(0,s.arrayEach)(e,(e=>{const s=Math.min(e.startRow,e.endRow),n=Math.max(e.startRow,e.endRow);(0,r.rangeEach)(s,n,(e=>{-1===t.indexOf(e)&&t.push(e)}));const i=Math.min(e.startCol,e.endCol),l=Math.max(e.startCol,e.endCol);(0,r.rangeEach)(i,l,(e=>{-1===o.indexOf(e)&&o.push(e)}))})),{rows:t,columns:o}},o(67834),o(15724);var s=o(47154),r=o(36926);function n(e,t,o){i(e,t),t.set(e,o)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(h(e,t))}function a(e,t,o){return e.set(h(e,t),o),o}function h(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 c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakSet;function w(e,t){return Math.min(t,Math.max(e+l(f,this).call(this)-1,e))}function C(e,t){return Math.min(t,Math.max(e+l(g,this).call(this)-1,e))}t.CopyableRangesFactory=class{constructor(e){let{countRows:t,countColumns:o,rowsLimit:s,columnsLimit:r,countColumnHeaders:l}=e;var h,w;i(h=this,w=m),w.add(h),n(this,c,void 0),n(this,u,void 0),n(this,d,void 0),n(this,g,void 0),n(this,f,void 0),n(this,p,void 0),a(u,this,t),a(d,this,o),a(g,this,s),a(f,this,r),a(p,this,l)}setSelectedRange(e){a(c,this,e)}getCellsRange(){if(0===l(u,this).call(this)||0===l(d,this).call(this))return null;const{row:e,col:t}=l(c,this).getTopStartCorner(),{row:o,col:s}=l(c,this).getBottomEndCorner(),r=h(m,this,C).call(this,e,o),n=h(m,this,w).call(this,t,s);return{isRangeTrimmed:o!==r||s!==n,startRow:e,startCol:t,endRow:r,endCol:n}}getMostBottomColumnHeadersRange(){if(0===l(d,this).call(this)||0===l(p,this).call(this))return null;const{col:e}=l(c,this).getTopStartCorner(),{col:t}=l(c,this).getBottomEndCorner(),o=h(m,this,w).call(this,e,t);return{isRangeTrimmed:t!==o,startRow:-1,startCol:e,endRow:-1,endCol:o}}getAllColumnHeadersRange(){if(0===l(d,this).call(this)||0===l(p,this).call(this))return null;const{col:e}=l(c,this).getTopStartCorner(),{col:t}=l(c,this).getBottomEndCorner(),o=h(m,this,w).call(this,e,t);return{isRangeTrimmed:t!==o,startRow:-l(p,this).call(this),startCol:e,endRow:-1,endCol:o}}}},35333:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(57401);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.CopyPaste=s.CopyPaste},94304:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(68431));t.default=class{constructor(){this.clipboardData=new r.default}preventDefault(){}}},87428:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name(){let e=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,r.checkSelectionBorders)(this,"bottom")&&(e=(0,r.markSelected)(e)),e},callback(t,o){const s=(0,r.checkSelectionBorders)(this,"bottom");e.prepareBorder(o,"bottom",s)}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(8606);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}},53711:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(87428));t.bottom=r.default;var n=s(o(21158));t.left=n.default;var i=s(o(84085));t.noBorders=i.default;var l=s(o(43729));t.right=l.default;var a=s(o(87548));t.top=a.default},21158:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name(){let e=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,r.checkSelectionBorders)(this,t)&&(e=(0,r.markSelected)(e)),e},callback(o,s){const n=(0,r.checkSelectionBorders)(this,t);e.prepareBorder(s,t,n)}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(8606);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}},84085:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name(){return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback(t,o){e.prepareBorder(o,"noBorders")},disabled(){return!(0,r.checkSelectionBorders)(this)}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(8606);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}},43729:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name(){let e=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,r.checkSelectionBorders)(this,t)&&(e=(0,r.markSelected)(e)),e},callback(o,s){const n=(0,r.checkSelectionBorders)(this,t);e.prepareBorder(s,t,n)}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(8606);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}},87548:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:top",name(){let e=this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,r.checkSelectionBorders)(this,"top")&&(e=(0,r.markSelected)(e)),e},callback(t,o){const s=(0,r.checkSelectionBorders)(this,"top");e.prepareBorder(o,"top",s)}}};var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(8606);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}},79485:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(9458),i=o(95016),l=o(36926),a=o(47154),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=g(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),c=o(53711),u=o(8606),d=o(63480);function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(g=function(e){return e?o:t})(e)}function f(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function p(e,t,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=t.PLUGIN_KEY="customBorders",w=t.PLUGIN_PRIORITY=90;var C=new WeakSet;class v extends n.BasePlugin{constructor(){super(...arguments),f(this,C),(0,r.default)(this,"savedBorders",[])}static get PLUGIN_KEY(){return m}static get PLUGIN_PRIORITY(){return w}isEnabled(){return!!this.hot.getSettings()[m]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",(e=>p(C,this,y).call(this,e))),this.addHook("init",(()=>p(C,this,E).call(this))),super.enablePlugin())}disablePlugin(){this.hideBorders(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),super.updatePlugin()}setBorders(e,t){let o=["top","bottom","start","end"],s=null;t&&(this.checkSettingsCohesion([t]),o=Object.keys(t),s=(0,u.normalizeBorder)(t));const r=(0,d.detectSelectionType)(e),n=(0,d.normalizeSelectionFactory)(r,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)});(0,a.arrayEach)(e,(e=>{n(e).forAll(((e,t)=>{(0,a.arrayEach)(o,(o=>{this.prepareBorderFromCustomAdded(e,t,s,(0,u.toInlinePropName)(o))}))}))})),this.hot.view.render()}getBorders(e){if(!Array.isArray(e))return this.savedBorders;const t=(0,d.detectSelectionType)(e),o=(0,d.normalizeSelectionFactory)(t,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)}),s=[];return(0,a.arrayEach)(e,(e=>{o(e).forAll(((e,t)=>{(0,a.arrayEach)(this.savedBorders,(o=>{o.row===e&&o.col===t&&s.push((0,u.denormalizeBorder)(o))}))}))})),s}clearBorders(e){e?this.setBorders(e):((0,a.arrayEach)(this.savedBorders,(e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),this.hot.removeCellMeta(e.row,e.col,"borders")})),this.savedBorders.length=0)}insertBorderIntoSettings(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);const o=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,o,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:o})}prepareBorderFromCustomAdded(e,t,o,s){const r=this.hot.countRows(),n=this.hot.countCols();if(e>=r||t>=n)return;let i=(0,u.createEmptyBorders)(e,t);o&&(i=(0,u.extendDefaultBorder)(i,o),(0,a.arrayEach)(this.hot.selection.highlight.customSelections,(e=>{if(i.id===e.settings.id)return Object.assign(e.settings,o),i.id=e.settings.id,i.top=e.settings.top,i.bottom=e.settings.bottom,i.start=e.settings.start,i.end=e.settings.end,!1}))),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(i)),this.insertBorderIntoSettings(i,s)}prepareBorderFromCustomAddedRange(e,t){const o=Math.min(e.to.row,this.hot.countRows()-1),s=Math.min(e.to.col,this.hot.countCols()-1);(0,l.rangeEach)(e.from.row,o,(o=>{(0,l.rangeEach)(e.from.col,s,(s=>{const r=(0,u.createEmptyBorders)(o,s);let n=0;o===e.from.row&&(0,i.hasOwnProperty)(t,"top")&&(n+=1,r.top=t.top),o===e.to.row&&(0,i.hasOwnProperty)(t,"bottom")&&(n+=1,r.bottom=t.bottom),s===e.from.col&&(0,i.hasOwnProperty)(t,"start")&&(n+=1,r.start=t.start),s===e.to.col&&(0,i.hasOwnProperty)(t,"end")&&(n+=1,r.end=t.end),n>0&&(this.hot.setCellMeta(o,s,"borders",(0,u.denormalizeBorder)(r)),this.insertBorderIntoSettings(r))}))}))}removeAllBorders(e,t){const o=(0,u.createId)(e,t);this.spliceBorder(o),this.clearBordersFromSelectionSettings(o),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}setBorder(e,t,o,s){let r=this.hot.getCellMeta(e,t).borders;if(r=r&&void 0!==r.border?(0,u.normalizeBorder)(r):(0,u.createEmptyBorders)(e,t),s){r[o]=(0,u.createSingleEmptyBorder)();if(4===this.countHide(r))this.removeAllBorders(e,t);else{this.checkCustomSelectionsFromContextMenu(r,o,s)||this.insertBorderIntoSettings(r),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(r))}}else{r[o]=(0,u.createDefaultCustomBorder)();this.checkCustomSelectionsFromContextMenu(r,o,s)||this.insertBorderIntoSettings(r),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(r))}}prepareBorder(e,t,o){(0,a.arrayEach)(e,(e=>{let{start:s,end:r}=e;if(s.row===r.row&&s.col===r.col)"noBorders"===t?this.removeAllBorders(s.row,s.col):this.setBorder(s.row,s.col,t,o);else switch(t){case"noBorders":(0,l.rangeEach)(s.col,r.col,(e=>{(0,l.rangeEach)(s.row,r.row,(t=>{this.removeAllBorders(t,e)}))}));break;case"top":(0,l.rangeEach)(s.col,r.col,(e=>{this.setBorder(s.row,e,t,o)}));break;case"bottom":(0,l.rangeEach)(s.col,r.col,(e=>{this.setBorder(r.row,e,t,o)}));break;case"start":(0,l.rangeEach)(s.row,r.row,(e=>{this.setBorder(e,s.col,t,o)}));break;case"end":(0,l.rangeEach)(s.row,r.row,(e=>{this.setBorder(e,r.col,t,o)}))}}))}createCustomBorders(e){(0,a.arrayEach)(e,(e=>{const t=(0,u.normalizeBorder)(e);e.range?this.prepareBorderFromCustomAddedRange(e.range,t):this.prepareBorderFromCustomAdded(e.row,e.col,t)}))}countHide(e){const{top:t,bottom:o,start:s,end:r}=e,n=[t,o,s,r];return(0,a.arrayReduce)(n,((e,t)=>{let o=e;return t&&t.hide&&(o+=1),o}),0)}clearBordersFromSelectionSettings(e){const t=(0,a.arrayMap)(this.hot.selection.highlight.customSelections,(e=>e.settings.id)).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}clearNullCellRange(){(0,a.arrayEach)(this.hot.selection.highlight.customSelections,((e,t)=>{if(null===e.cellRange)return this.hot.selection.highlight.customSelections[t].destroy(),this.hot.selection.highlight.customSelections.splice(t,1),!1}))}hideBorders(){(0,a.arrayEach)(this.savedBorders,(e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange()}))}spliceBorder(e){const t=(0,a.arrayMap)(this.savedBorders,(e=>e.id)).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}checkSavedBorders(e){let t=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),t=!0):(0,a.arrayEach)(this.savedBorders,((o,s)=>{if(e.id===o.id)return this.savedBorders[s]=e,t=!0,!1})),t}checkCustomSelectionsFromContextMenu(e,t,o){let s=!1;return(0,a.arrayEach)(this.hot.selection.highlight.customSelections,(r=>{if(e.id===r.settings.id){const e=this.hot.view._wt.selectionManager.getBorderInstances(r);return(0,a.arrayEach)(e,(e=>{e.toggleHiddenClass(t,o)})),s=!0,!1}})),s}checkCustomSelections(e,t,o){const s=this.countHide(e);let r=!1;return 4===s?(this.removeAllBorders(e.row,e.col),r=!0):(0,a.arrayEach)(this.hot.selection.highlight.customSelections,(s=>{if(e.id===s.settings.id){if(s.visualCellRange=t,s.commit(),o){const t=this.hot.view._wt.selectionManager.getBorderInstances(s);(0,a.arrayEach)(t,(t=>{t.changeBorderStyle(o,e)}))}return r=!0,!1}})),r}changeBorderSettings(){const e=this.hot.getSettings()[m];if(Array.isArray(e)){const t=(0,i.deepClone)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}checkSettingsCohesion(e){const t=(0,u.hasLeftRightTypeOptions)(e),o=(0,u.hasStartEndTypeOptions)(e);if(t&&o)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".')}destroy(){super.destroy()}}function y(e){this.hot.getSettings()[m]&&e.items.push({name:"---------"},{key:"borders",name(){return this.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_BORDERS)},disabled(){const e=this.getSelectedRangeLast();return!e||(!!e.isSingleHeader()||this.selection.isSelectedByCorner())},submenu:{items:[(0,c.top)(this),(0,c.right)(this),(0,c.bottom)(this),(0,c.left)(this),(0,c.noBorders)(this)]}})}function E(){this.changeBorderSettings()}t.CustomBorders=v},11043:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(79485);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.CustomBorders=s.CustomBorders},8606:(e,t,o)=>{"use strict";t.__esModule=!0,t.checkSelectionBorders=function(e,t){let o=!1;return(0,n.arrayEach)(e.getSelectedRange(),(r=>{r.forAll(((r,n)=>{if(r<0||n<0)return;const i=e.getCellMeta(r,n).borders;if(i){if(!t)return o=!0,!1;if(!(0,s.hasOwnProperty)(i[t],"hide")||!1===i[t].hide)return o=!0,!1}}))})),o},t.createDefaultCustomBorder=l,t.createDefaultHtBorder=h,t.createEmptyBorders=function(e,t){return{id:i(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}},t.createId=i,t.createSingleEmptyBorder=a,t.denormalizeBorder=function(e){(0,r.isDefined)(e.start)&&(e.left=e.start);(0,r.isDefined)(e.end)&&(e.right=e.end);return e},t.extendDefaultBorder=function(e,t){(0,s.hasOwnProperty)(t,"border")&&t.border&&(e.border=t.border);(0,s.hasOwnProperty)(t,"top")&&(0,r.isDefined)(t.top)&&(t.top?((0,s.isObject)(t.top)||(t.top={width:1,color:"#000"}),e.top=t.top):(t.top={hide:!0},e.top=t.top));(0,s.hasOwnProperty)(t,"bottom")&&(0,r.isDefined)(t.bottom)&&(t.bottom?((0,s.isObject)(t.bottom)||(t.bottom={width:1,color:"#000"}),e.bottom=t.bottom):(t.bottom={hide:!0},e.bottom=t.bottom));(0,s.hasOwnProperty)(t,"start")&&(0,r.isDefined)(t.start)&&(t.start?((0,s.isObject)(t.start)||(t.start={width:1,color:"#000"}),e.start=t.start):(t.start={hide:!0},e.start=t.start));(0,s.hasOwnProperty)(t,"end")&&(0,r.isDefined)(t.end)&&(t.end?((0,s.isObject)(t.end)||(t.end={width:1,color:"#000"}),e.end=t.end):(t.end={hide:!0},e.end=t.end));return e},t.hasLeftRightTypeOptions=function(e){return e.some((e=>(0,r.isDefined)(e.left)||(0,r.isDefined)(e.right)))},t.hasStartEndTypeOptions=function(e){return e.some((e=>(0,r.isDefined)(e.start)||(0,r.isDefined)(e.end)))},t.markSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.normalizeBorder=function(e){var t,o;((0,r.isDefined)(e.start)||(0,r.isDefined)(e.left))&&(e.start=null!==(t=e.start)&&void 0!==t?t:e.left);((0,r.isDefined)(e.end)||(0,r.isDefined)(e.right))&&(e.end=null!==(o=e.end)&&void 0!==o?o:e.right);return delete e.left,delete e.right,e},t.toInlinePropName=function(e){var t;return null!==(t=c.get(e))&&void 0!==t?t:e},o(14846),o(75568);var s=o(95016),r=o(95768),n=o(47154);function i(e,t){return`border_row${e}col${t}`}function l(){return{width:1,color:"#000"}}function a(){return{hide:!0}}function h(){return{width:1,color:"#000",cornerVisible:!1}}const c=new Map([["left","start"],["right","end"]])},62291:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(9458),i=o(40892),l=o(94916);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function h(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 c=t.PLUGIN_KEY="dragToScroll",u=t.PLUGIN_PRIORITY=100;var d=new WeakSet;class g extends n.BasePlugin{constructor(){super(...arguments),a(this,d),(0,r.default)(this,"boundaries",null),(0,r.default)(this,"callback",null),(0,r.default)(this,"listening",!1)}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[c]}enablePlugin(){this.enabled||(this.addHook("afterOnCellMouseDown",(e=>h(d,this,f).call(this,e))),this.addHook("afterOnCellCornerMouseDown",(e=>h(d,this,f).call(this,e))),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.unregisterEvents(),super.disablePlugin()}setBoundaries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,right:this.hot.rootWindow.innerWidth,top:0,bottom:this.hot.rootWindow.innerHeight};this.boundaries=e}setCallback(e){this.callback=e}check(e,t){let o=0,s=0;t<this.boundaries.top?s=t-this.boundaries.top:t>this.boundaries.bottom&&(s=t-this.boundaries.bottom),e<this.boundaries.left?o=e-this.boundaries.left:e>this.boundaries.right&&(o=e-this.boundaries.right),this.callback(o,s)}listen(){this.listening=!0}unlisten(){this.listening=!1}isListening(){return this.listening}registerEvents(){const{rootWindow:e}=this.hot;let t=e;for(;t;)this.eventManager.addEventListener(t.document,"contextmenu",(()=>this.unlisten())),this.eventManager.addEventListener(t.document,"mouseup",(()=>this.unlisten())),this.eventManager.addEventListener(t.document,"mousemove",(e=>this.onMouseMove(e))),t=(0,l.getParentWindow)(t)}unregisterEvents(){this.eventManager.clear()}onMouseMove(e){this.isListening()&&this.check(e.clientX,e.clientY)}destroy(){super.destroy()}}function f(e){if((0,i.isRightClick)(e))return;const t=this.hot.view._wt.wtOverlays.topOverlay.mainTableScrollableElement;this.setBoundaries(t!==this.hot.rootWindow?t.getBoundingClientRect():void 0),this.setCallback(((e,o)=>{var s,r;const n=null!==(s=t.scrollLeft)&&void 0!==s?s:t.scrollX,i=null!==(r=t.scrollTop)&&void 0!==r?r:t.scrollY;t.scroll(n+50*Math.sign(e),i+20*Math.sign(o))})),this.listen()}t.DragToScroll=g},96361:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(62291);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.DragToScroll=s.DragToScroll},36743:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(9458),i=o(47154),l=o(95016),a=o(41485),h=o(76368),c=o(94916),u=o(47843),d=o(43001),g=o(29398),f=o(37660),p=o(45551);function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,o){return e.set(C(e,t),o),o}function C(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")}g.Hooks.getSingleton().register("afterDropdownMenuDefaultOptions"),g.Hooks.getSingleton().register("beforeDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuHide"),g.Hooks.getSingleton().register("afterDropdownMenuExecute");const v=t.PLUGIN_KEY="dropdownMenu",y=t.PLUGIN_PRIORITY=230,E="changeType",S=v;var R=new WeakMap,b=new WeakSet;class _ extends n.BasePlugin{static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[f.COLUMN_LEFT,f.COLUMN_RIGHT,f.SEPARATOR,f.REMOVE_COLUMN,f.SEPARATOR,f.CLEAR_COLUMN,f.SEPARATOR,f.READ_ONLY,f.SEPARATOR,f.ALIGNMENT]}constructor(e){var t,o;super(e),m(t=this,o=b),o.add(t),(0,r.default)(this,"commandExecutor",new a.CommandExecutor(this.hot)),(0,r.default)(this,"itemsFactory",null),(0,r.default)(this,"menu",null),function(e,t,o){m(e,t),t.set(e,o)}(this,R,!1),this.hot.addHook("afterGetColHeader",((e,t)=>C(b,this,O).call(this,e,t)))}isEnabled(){return this.hot.getSettings()[v]}enablePlugin(){var e=this;if(this.enabled)return;this.itemsFactory=new u.ItemsFactory(this.hot,_.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(b,e,x).call(e,...o)})),this.addHook("beforeViewportScrollHorizontally",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(b,e,H).call(e,...o)}));const t=this.hot.getSettings()[v],o={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.registerShortcuts(),super.enablePlugin(),this.callOnPluginsReady((()=>{this.hot.runHooks("afterDropdownMenuDefaultOptions",o),this.itemsFactory.setPredefinedItems(o.items);const s=this.itemsFactory.getItems(t);this.menu&&this.menu.destroy(),this.menu=new d.Menu(this.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootDocument.body}),this.hot.runHooks("beforeDropdownMenuSetItems",s),this.menu.setMenuItems(s),this.menu.addLocalHook("beforeOpen",(()=>C(b,this,I).call(this))),this.menu.addLocalHook("afterOpen",(()=>C(b,this,N).call(this))),this.menu.addLocalHook("afterSubmenuOpen",(e=>C(b,this,A).call(this,e))),this.menu.addLocalHook("afterClose",(()=>C(b,this,P).call(this))),this.menu.addLocalHook("executeCommand",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return e.executeCommand.call(e,...o)})),(0,i.arrayEach)(s,(e=>this.commandExecutor.registerCommand(e.key,e)))}))}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&this.menu.destroy(),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=()=>{const{highlight:e}=this.hot.getSelectedRangeLast();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeLast(),o=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),s=this.hot.getCell(-1,t.col,!0).querySelector(`.${E}`),r=s.getBoundingClientRect();this.open({left:r.left+o.left,top:r.top+s.offsetHeight+o.top},{left:r.width,right:0,above:0,below:3}),this.menu.getNavigator().toFirstItem()}};this.hot.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Shift","Alt","ArrowDown"],["Control/Meta","Enter"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:S},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:S}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}registerEvents(){this.eventManager.addEventListener(this.hot.rootElement,"click",(e=>C(b,this,M).call(this,e)))}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.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()}executeCommand(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];this.commandExecutor.execute(e,...o)}setListening(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function T(e){e.getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Control/Meta","A"]],callback:()=>!1}])}function M(e){if((0,c.hasClass)(e.target,E)){const t=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),o=e.target.getBoundingClientRect();e.stopPropagation(),w(R,this,!1),this.open({left:o.left+t.left,top:o.top+e.target.offsetHeight+t.top},{left:o.width,right:0,above:0,below:3})}}function O(e,t){const o=t.parentNode;if(!o)return;const s=o.parentNode.childNodes,r=Array.prototype.indexOf.call(s,o);if(e<0||r!==s.length-1)return;const n=t.querySelector(`.${E}`);if(this.enabled&&n)return;if(!this.enabled)return void(n&&n.parentNode.removeChild(n));const i=this.hot.rootDocument.createElement("button");i.className=E,i.type="button",i.tabIndex=-1,this.hot.getSettings().ariaTags&&((0,c.setAttribute)(i,[(0,p.A11Y_HIDDEN)(),(0,p.A11Y_LABEL)(" ")]),(0,c.setAttribute)(t,[(0,p.A11Y_HASPOPUP)("menu")])),i.onclick=function(){return!1},t.firstChild.insertBefore(i,t.firstChild.firstChild)}function I(){this.hot.runHooks("beforeDropdownMenuShow",this)}function N(){this.hot.runHooks("afterDropdownMenuShow",this),C(b,this,T).call(this,this.menu)}function A(e){C(b,this,T).call(this,e)}function P(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function H(e){return o=this,(t=R).get(C(t,o))?null:e;var t,o}function x(e){(0,c.hasClass)(e.target,E)&&w(R,this,!0)}t.DropdownMenu=_,_.SEPARATOR={name:f.SEPARATOR}},47821:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(36743);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.DropdownMenu=s.DropdownMenu},15406:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(36926);t.default=class{constructor(e){(0,r.default)(this,"hot",void 0),(0,r.default)(this,"options",{}),this.hot=e}setOptions(e){this.options=e}getData(){const{startRow:e,startCol:t,endRow:o,endCol:s}=this._getDataRange(),r=this.options,i=[];return(0,n.rangeEach)(e,o,(e=>{const o=[];!r.exportHiddenRows&&this._isHiddenRow(e)||((0,n.rangeEach)(t,s,(t=>{!r.exportHiddenColumns&&this._isHiddenColumn(t)||o.push(this.hot.getDataAtCell(e,t))})),i.push(o))})),i}getRowHeaders(){const e=[];if(this.options.rowHeaders){const{startRow:t,endRow:o}=this._getDataRange(),s=this.hot.getRowHeader();(0,n.rangeEach)(t,o,(t=>{!this.options.exportHiddenRows&&this._isHiddenRow(t)||e.push(s[t])}))}return e}getColumnHeaders(){const e=[];if(this.options.columnHeaders){const{startCol:t,endCol:o}=this._getDataRange(),s=this.hot.getColHeader();(0,n.rangeEach)(t,o,(t=>{!this.options.exportHiddenColumns&&this._isHiddenColumn(t)||e.push(s[t])}))}return e}_getDataRange(){const e=this.hot.countCols()-1,t=this.hot.countRows()-1;let[o=0,s=0,r=t,n=e]=this.options.range;return o=Math.max(o,0),s=Math.max(s,0),r=Math.min(r,t),n=Math.min(n,e),{startRow:o,startCol:s,endRow:r,endCol:n}}_isHiddenRow(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}_isHiddenColumn(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}},68407:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=o(9458),n=s(o(15406)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(72473));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.PLUGIN_KEY="exportFile",h=t.PLUGIN_PRIORITY=240;class c extends r.BasePlugin{static get PLUGIN_KEY(){return a}static get PLUGIN_PRIORITY(){return h}isEnabled(){return!0}exportAsString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}exportAsBlob(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}downloadFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{rootDocument:o,rootWindow:s}=this.hot,r=this._createTypeFormatter(e,t),n=this._createBlob(r),i=s.URL||s.webkitURL,l=o.createElement("a"),a=`${r.options.filename}.${r.options.fileExtension}`;if(void 0!==l.download){const e=i.createObjectURL(n);l.style.display="none",l.setAttribute("href",e),l.setAttribute("download",a),o.body.appendChild(l),l.dispatchEvent(new MouseEvent("click")),o.body.removeChild(l),setTimeout((()=>{i.revokeObjectURL(e)}),100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(n,a)}_createTypeFormatter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i.EXPORT_TYPES[e])throw new Error(`Export format type "${e}" is not supported.`);return(0,i.default)(e,new n.default(this.hot),t)}_createBlob(e){let t=null;return"undefined"!=typeof Blob&&(t=new Blob([e.export()],{type:`${e.options.mimeType};charset=${e.options.encoding}`})),t}}t.ExportFile=c},4875:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(68407);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.ExportFile=s.ExportFile},72473:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.default=function(e,t,o){if("function"==typeof i[e])return new i[e](t,o);return null};var r=s(o(15677));const n=t.TYPE_CSV="csv",i=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[n]:r.default})},53261:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(95016),i=o(83414);class l{static get DEFAULT_OPTIONS(){return{mimeType:"text/plain",fileExtension:"txt",filename:"Handsontable [YYYY]-[MM]-[DD]",encoding:"utf-8",bom:!1,columnHeaders:!1,rowHeaders:!1,exportHiddenColumns:!1,exportHiddenRows:!1,range:[]}}constructor(e,t){(0,r.default)(this,"dataProvider",void 0),(0,r.default)(this,"options",void 0),this.dataProvider=e,this.options=this._mergeOptions(t),this.dataProvider.setOptions(this.options)}_mergeOptions(e){let t=(0,n.clone)(this.constructor.DEFAULT_OPTIONS);const o=new Date;return t=(0,n.extend)((0,n.clone)(l.DEFAULT_OPTIONS),t),t=(0,n.extend)(t,e),t.filename=(0,i.substitute)(t.filename,{YYYY:o.getFullYear(),MM:`${o.getMonth()+1}`.padStart(2,"0"),DD:`${o.getDate()}`.padStart(2,"0")}),t}}t.default=l},15677:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(94364);var r=o(47154),n=o(95768),i=s(o(53261));const l=String.fromCharCode(13),a=String.fromCharCode(34),h=String.fromCharCode(10);class c extends i.default{static get DEFAULT_OPTIONS(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n"}}export(){const e=this.options,t=this.dataProvider.getData();let o=this.dataProvider.getColumnHeaders();const s=o.length>0,n=this.dataProvider.getRowHeaders(),i=n.length>0;let l=e.bom?String.fromCharCode(65279):"";return s&&(o=(0,r.arrayMap)(o,(e=>this._escapeCell(e,!0))),i&&(l+=e.columnDelimiter),l+=o.join(e.columnDelimiter),l+=e.rowDelimiter),(0,r.arrayEach)(t,((t,o)=>{o>0&&(l+=e.rowDelimiter),i&&(l+=this._escapeCell(n[o])+e.columnDelimiter),l+=t.map((e=>this._escapeCell(e))).join(e.columnDelimiter)})),l}_escapeCell(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=(0,n.stringify)(e);return""!==o&&(t||o.indexOf(l)>=0||o.indexOf(a)>=0||o.indexOf(h)>=0||o.indexOf(this.options.columnDelimiter)>=0)&&(o=o.replace(new RegExp('"',"g"),'""'),o=`"${o}"`),o}}t.default=c},81822:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(47154),i=o(95016),l=s(o(32943)),a=o(57466);class h{constructor(e,t){let{id:o,stateless:s=!0}=t;(0,r.default)(this,"hot",void 0),(0,r.default)(this,"id",void 0),(0,r.default)(this,"elements",[]),(0,r.default)(this,"hidden",!1),(0,r.default)(this,"stateId",""),(0,r.default)(this,"state",void 0),this.hot=e,this.id=o,this.stateId=`Filters.component.${this.id}`,this.state=s?null:this.hot.columnIndexMapper.registerMap(this.stateId,new a.LinkedPhysicalIndexToValueMap)}getElements(){return this.elements}reset(){(0,n.arrayEach)(this.elements,(e=>e.reset()))}hide(){this.hidden=!0}show(){this.hidden=!1}isHidden(){return null===this.hot||this.hidden}restoreState(e){this.state&&this.setState(this.state.getValueAtIndex(e))}setState(){throw new Error("The state setting logic is not implemented")}saveState(e){this.state&&this.state.setValueAtIndex(e,this.getState())}getState(){throw new Error("The state gathering logic is not implemented")}destroy(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),(0,n.arrayEach)(this.elements,(e=>e.destroy())),this.state=null,this.elements=null,this.hot=null}}t.BaseComponent=h,(0,i.mixin)(h,l.default)},41549:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r,n=s(o(85707)),i=o(94916),l=o(47154),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=u(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),h=o(81822),c=o(84509);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(u=function(e){return e?o:t})(e)}function d(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}var g=new WeakSet;class f extends h.BaseComponent{static get BUTTON_OK(){return"ok"}static get BUTTON_CANCEL(){return"cancel"}constructor(e,t){super(e,{id:t.id,stateless:!0}),d(this,g),(0,n.default)(this,"name",""),this.name=t.name,this.elements.push(new c.InputUI(this.hot,{type:"button",value:a.FILTERS_BUTTONS_OK,className:"htUIButton htUIButtonOK",identifier:f.BUTTON_OK})),this.elements.push(new c.InputUI(this.hot,{type:"button",value:a.FILTERS_BUTTONS_CANCEL,className:"htUIButton htUIButtonCancel",identifier:f.BUTTON_CANCEL})),this.registerHooks()}registerHooks(){(0,l.arrayEach)(this.elements,(e=>{e.addLocalHook("click",((e,t)=>function(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")}(g,this,p).call(this,e,t)))}))}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>((0,i.addClass)(t.parentNode,"htFiltersMenuActionBar"),(0,l.arrayEach)(this.elements,(e=>t.appendChild(e.element))),t)}}accept(){this.runLocalHooks("accept")}cancel(){this.runLocalHooks("cancel")}}function p(e,t){t.options.identifier===r.BUTTON_OK?this.accept():this.cancel()}t.ActionBarComponent=f,r=f},88703:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(27458);var r=s(o(85707)),n=o(94916),i=o(40892),l=o(47154),a=o(83644),h=o(95016),c=w(o(21571)),u=o(81822),d=w(o(81479)),g=o(84509),f=o(36713),p=o(7309);function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(m=function(e){return e?o:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=m(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}function C(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function v(e,t,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 y=new WeakSet;class E extends u.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),C(this,y),(0,r.default)(this,"name",""),(0,r.default)(this,"addSeparator",!1),this.name=t.name,this.addSeparator=t.addSeparator,this.elements.push(new f.SelectUI(this.hot,{menuContainer:t.menuContainer})),this.elements.push(new g.InputUI(this.hot,{placeholder:c.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),this.elements.push(new g.InputUI(this.hot,{placeholder:c.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),this.registerHooks()}registerHooks(){this.getSelectElement().addLocalHook("select",(e=>v(y,this,S).call(this,e))).addLocalHook("afterClose",(()=>this.runLocalHooks("afterClose"))).addLocalHook("tabKeydown",(e=>this.runLocalHooks("selectTabKeydown",e))),(0,l.arrayEach)(this.getInputElements(),(e=>{e.addLocalHook("keydown",(e=>v(y,this,R).call(this,e)))}))}setState(e){if(this.reset(),!e)return;const t=(0,h.clone)(e.command);t.name.startsWith(c.FILTERS_CONDITIONS_NAMESPACE)&&(t.name=this.hot.getTranslatedPhrase(t.name)),this.getSelectElement().setValue(t),(0,l.arrayEach)(e.args,((e,o)=>{if(o>t.inputsCount-1)return!1;const s=this.getInputElement(o);s.setValue(e),s[t.inputsCount>o?"show":"hide"](),o||this.hot._registerTimeout((()=>s.focus()),10)}))}getState(){const e=this.getSelectElement().getValue()||(0,p.getConditionDescriptor)(d.CONDITION_NONE),t=[];return(0,l.arrayEach)(this.getInputElements(),((o,s)=>{e.inputsCount>s&&t.push(o.getValue())})),{command:e,args:t}}updateState(e,t){const o=e?(0,p.getConditionDescriptor)(e.name):(0,p.getConditionDescriptor)(d.CONDITION_NONE);this.state.setValueAtIndex(t,{command:o,args:e?e.args:[]}),e||(0,l.arrayEach)(this.getInputElements(),(e=>e.setValue(null)))}getSelectElement(){return this.elements.filter((e=>e instanceof f.SelectUI))[0]}getInputElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}getInputElements(){return this.elements.filter((e=>e instanceof g.InputUI))}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,o,s,r,i)=>{(0,n.addClass)(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&(0,n.addClass)(t.parentNode,"border");const a=this.hot.rootDocument.createElement("div");return(0,n.addClass)(a,"htFiltersMenuLabel"),a.textContent=i,t.appendChild(a),t.parentElement.hasAttribute("ghost-table")||(0,l.arrayEach)(this.elements,(e=>t.appendChild(e.element))),t}}}reset(){const e=this.hot.getPlugin("filters").getSelectedColumn();let t=[(0,p.getConditionDescriptor)(d.CONDITION_NONE)];if(null!==e){const{visualIndex:o}=e;t=(0,d.default)(this.hot.getDataType(0,o,this.hot.countRows(),o))}(0,l.arrayEach)(this.getInputElements(),(e=>e.hide())),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function S(e){(0,l.arrayEach)(this.getInputElements(),((t,o)=>{t[e.inputsCount>o?"show":"hide"](),0===o&&this.hot._registerTimeout((()=>t.focus()),10)})),this.runLocalHooks("change",e)}function R(e){(0,a.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,i.stopImmediatePropagation)(e))}t.ConditionComponent=E},36595:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(6211);var r=s(o(85707)),n=o(94916),i=o(47154),l=o(20944),a=o(81822),h=o(53834),c=o(69308),u=o(3120),d=o(85415),g=o(91600);function f(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}var p=new WeakSet;class m extends a.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),f(this,p),(0,r.default)(this,"name",""),this.name=t.name,this.buildOperatorsElement()}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>((0,n.addClass)(t.parentNode,"htFiltersMenuOperators"),(0,i.arrayEach)(this.elements,(e=>t.appendChild(e.element))),t)}}buildOperatorsElement(){const e=[c.OPERATION_ID,u.OPERATION_ID];(0,i.arrayEach)(e,(t=>{const o=new g.RadioInputUI(this.hot,{name:"operator",label:{htmlFor:t,textContent:(0,h.getOperationName)(t)},value:t,checked:t===e[0],id:t});o.addLocalHook("change",(e=>function(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")}(p,this,w).call(this,e))),this.elements.push(o)}))}setChecked(e){if(this.elements.length<e)throw Error(l.toSingleLine`Radio button with index ${e} doesn't exist.`);(0,i.arrayEach)(this.elements,((t,o)=>{t.setChecked(o===e)}))}getActiveOperationId(){const e=this.elements.find((e=>e instanceof g.RadioInputUI&&e.isChecked()));return e?e.getValue():c.OPERATION_ID}getState(){return this.getActiveOperationId()}setState(e){this.reset(),e&&this.getActiveOperationId()!==e&&(0,i.arrayEach)(this.elements,(t=>{t.setChecked(t.getValue()===e)}))}updateState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.OPERATION_ID,t=arguments.length>1?arguments[1]:void 0,o=e;o===d.OPERATION_ID&&(o=u.OPERATION_ID),this.state.setValueAtIndex(t,o)}reset(){this.setChecked(0)}}function w(e){this.setState(e.target.value)}t.OperatorsComponent=m},83507:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(27458),o(94364);var r=s(o(85707)),n=o(94916),i=o(40892),l=o(47154),a=o(83644),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=m(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),c=o(25015),u=o(81822),d=o(23469),g=o(81479),f=o(7309),p=o(65617);function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(m=function(e){return e?o:t})(e)}function w(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function C(e,t,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 v=new WeakSet;class y extends u.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),w(this,v),(0,r.default)(this,"name",""),this.name=t.name,this.elements.push(new d.MultipleSelectUI(this.hot)),this.registerHooks()}registerHooks(){this.getMultipleSelectElement().addLocalHook("keydown",(e=>C(v,this,E).call(this,e))).addLocalHook("listTabKeydown",(e=>this.runLocalHooks("listTabKeydown",e))),this.hot.addHook("modifyFiltersMultiSelectValue",((e,t)=>C(v,this,R).call(this,e,t)))}getElements(){const e=this.getMultipleSelectElement();return[e.getSearchInputElement(),e.getSelectAllElement(),e.getClearAllElement(),this.getMultipleSelectElement()]}setState(e){if(this.reset(),e&&e.command.key===g.CONDITION_BY_VALUE){const t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}getState(){const e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?g.CONDITION_NONE:g.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}updateState(e){const t=(t,o,s,r,n)=>{const[i]=(0,l.arrayFilter)(o,(e=>e.name===g.CONDITION_BY_VALUE)),a={},u=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS);if(i){const o=r(t,n),h=(0,l.arrayMap)(o,(e=>e.value)),d=new Map(o.map((e=>[e.value,this.hot.getCellMeta(e.meta.visualRow,e.meta.visualCol)]))),p=(0,c.unifyColumnValues)(h);s&&(i.args[0]=s);const m=[],w=(0,c.intersectValues)(p,i.args[0],u,(e=>{e.checked&&m.push(e.value),C(v,this,S).call(this,e,d)})),y=e.editedConditionStack.column;a.locale=this.hot.getCellMeta(0,y).locale,a.args=[m],a.command=(0,f.getConditionDescriptor)(g.CONDITION_BY_VALUE),a.itemsSnapshot=w}else a.args=[],a.command=(0,f.getConditionDescriptor)(g.CONDITION_NONE);this.state.setValueAtIndex(t,a)};t(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&t(e.dependentConditionStacks[0].column,e.dependentConditionStacks[0].conditions,e.conditionArgsChange,e.filteredRowsFactory,e.editedConditionStack)}getMultipleSelectElement(){return this.elements.filter((e=>e instanceof d.MultipleSelectUI))[0]}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,o,s,r,i)=>{(0,n.addClass)(t.parentNode,"htFiltersMenuValue");const a=this.hot.rootDocument.createElement("div");return(0,n.addClass)(a,"htFiltersMenuLabel"),a.textContent=i,t.appendChild(a),t.parentElement.hasAttribute("ghost-table")||(0,l.arrayEach)(this.elements,(e=>t.appendChild(e.element))),t}}}reset(){const e=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS),t=this._getColumnVisibleValues(),o=t.map((e=>e.value)),s=new Map(t.map((e=>[e.value,e.meta]))),r=(0,c.unifyColumnValues)(o),n=(0,c.intersectValues)(r,r,e,(e=>{C(v,this,S).call(this,e,s)}));this.getMultipleSelectElement().setItems(n),super.reset(),this.getMultipleSelectElement().setValue(r);const i=this.hot.getPlugin("filters").getSelectedColumn();null!==i&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,i.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,l.arrayMap)(this.hot.getDataAtCol(e.visualIndex),((t,o)=>({value:(0,c.toEmptyString)(t),meta:this.hot.getCellMeta(o,e.visualIndex)})))}}function E(e){(0,a.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,i.stopImmediatePropagation)(e))}function S(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function R(e,t){return"numeric"===t.type?(0,p.getRenderedValue)(e,t):e}t.ValueComponent=y},92252:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(95768),n=o(7309);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="begins_with";function a(e,t){let[o]=t;return(0,r.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,r.stringify)(o))}(0,n.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},43852:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=h;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309),n=o(97079),i=o(90414);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.CONDITION_NAME="between";function h(e,t){let[o,s]=t,l=o,a=s;if("numeric"===e.meta.type){const e=parseFloat(l,10),t=parseFloat(a,10);l=Math.min(e,t),a=Math.max(e,t)}else if("date"===e.meta.type){const t=(0,r.getCondition)(i.CONDITION_NAME,[a]),o=(0,r.getCondition)(n.CONDITION_NAME,[l]);return t(e)&&o(e)}return e.value>=l&&e.value<=a}(0,r.registerCondition)(a,h,{name:s.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},16478:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=i;var s=o(7309),r=o(25015);const n=t.CONDITION_NAME="by_value";function i(e,t){let[o]=t;return o(e.value)}(0,s.registerCondition)(n,i,{name:"By value",inputsCount:0,inputValuesDecorator(e){let[t]=e;return[(0,r.createArrayAssertion)(t)]},showOperators:!1})},24837:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(95768),n=o(7309);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="contains";function a(e,t){let[o]=t;return(0,r.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,r.stringify)(o))>=0}(0,n.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},97079:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.condition=h;var r=s(o(86798)),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),i=o(7309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.CONDITION_NAME="date_after";function h(e,t){let[o]=t;const s=(0,r.default)(e.value,e.meta.dateFormat),n=(0,r.default)(o,e.meta.dateFormat);return!(!s.isValid()||!n.isValid())&&s.diff(n)>=0}(0,i.registerCondition)(a,h,{name:n.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},90414:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.condition=h;var r=s(o(86798)),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),i=o(7309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.CONDITION_NAME="date_before";function h(e,t){let[o]=t;const s=(0,r.default)(e.value,e.meta.dateFormat),n=(0,r.default)(o,e.meta.dateFormat);return!(!s.isValid()||!n.isValid())&&s.diff(n)<=0}(0,i.registerCondition)(a,h,{name:n.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},25192:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.condition=h;var r=s(o(86798)),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),i=o(7309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.CONDITION_NAME="date_today";function h(e){const t=(0,r.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,r.default)().startOf("day"),"d")}(0,i.registerCondition)(a,h,{name:n.FILTERS_CONDITIONS_TODAY,inputsCount:0})},33538:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.condition=h;var r=s(o(86798)),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),i=o(7309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.CONDITION_NAME="date_tomorrow";function h(e){const t=(0,r.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,r.default)().subtract(-1,"days").startOf("day"),"d")}(0,i.registerCondition)(a,h,{name:n.FILTERS_CONDITIONS_TOMORROW,inputsCount:0})},86525:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.condition=h;var r=s(o(86798)),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=l(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),i=o(7309);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(e){return e?o:t})(e)}const a=t.CONDITION_NAME="date_yesterday";function h(e){const t=(0,r.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,r.default)().subtract(1,"days").startOf("day"),"d")}(0,i.registerCondition)(a,h,{name:n.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},40545:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309),n=o(95768);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="empty";function a(e){return(0,n.isEmpty)(e.value)}(0,r.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},89320:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(95768),n=o(7309);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="ends_with";function a(e,t){let[o]=t;return(0,r.stringify)(e.value).toLocaleLowerCase(e.meta.locale).endsWith((0,r.stringify)(o))}(0,n.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},21140:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(95768),n=o(7309);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="eq";function a(e,t){let[o]=t;return(0,r.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,r.stringify)(o)}(0,n.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},8239:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var s=o(7309);const r=t.CONDITION_NAME="false";function n(){return!1}(0,s.registerCondition)(r,n,{name:"False"})},28681:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.CONDITION_NAME="gt";function l(e,t){let[o]=t,s=o;return"numeric"===e.meta.type&&(s=parseFloat(s,10)),e.value>s}(0,r.registerCondition)(i,l,{name:s.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},86842:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.CONDITION_NAME="gte";function l(e,t){let[o]=t,s=o;return"numeric"===e.meta.type&&(s=parseFloat(s,10)),e.value>=s}(0,r.registerCondition)(i,l,{name:s.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},37520:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.CONDITION_NAME="lt";function l(e,t){let[o]=t,s=o;return"numeric"===e.meta.type&&(s=parseFloat(s,10)),e.value<s}(0,r.registerCondition)(i,l,{name:s.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},17585:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.CONDITION_NAME="lte";function l(e,t){let[o]=t,s=o;return"numeric"===e.meta.type&&(s=parseFloat(s,10)),e.value<=s}(0,r.registerCondition)(i,l,{name:s.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},22024:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=l;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(s,i,l):s[i]=e[i]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}const i=t.CONDITION_NAME="none";function l(){return!0}(0,r.registerCondition)(i,l,{name:s.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},73749:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309),n=o(43852);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="not_between";function a(e,t){return!(0,r.getCondition)(n.CONDITION_NAME,t)(e)}(0,r.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},26684:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309),n=o(24837);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="not_contains";function a(e,t){return!(0,r.getCondition)(n.CONDITION_NAME,t)(e)}(0,r.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},388:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309),n=o(40545);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="not_empty";function a(e,t){return!(0,r.getCondition)(n.CONDITION_NAME,t)(e)}(0,r.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_NOT_EMPTY,inputsCount:0,showOperators:!0})},74017:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),r=o(7309),n=o(21140);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}const l=t.CONDITION_NAME="neq";function a(e,t){return!(0,r.getCondition)(n.CONDITION_NAME,t)(e)}(0,r.registerCondition)(l,a,{name:s.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},61382:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var s=o(7309);const r=t.CONDITION_NAME="true";function n(){return!0}(0,s.registerCondition)(r,n,{name:"True"})},53355:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(69655),o(94364),o(90458),o(75568);var r=s(o(85707)),n=o(95016),i=o(20944),l=s(o(32943)),a=o(7309),h=o(69308),c=o(53834),u=o(95768),d=o(57466);const g="ConditionCollection.filteringStates";class f{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,r.default)(this,"hot",void 0),(0,r.default)(this,"isMapRegistrable",void 0),(0,r.default)(this,"filteringStates",new d.LinkedPhysicalIndexToValueMap),(0,r.default)(this,"previousConditionStack",null),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),r=null!==(o=null==s?void 0:s.conditions)&&void 0!==o?o:[],n=null==s?void 0:s.operation;return this.isMatchInConditions(r,e,n)}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 r=this.hot.getCellMeta(0,e).locale,n=t.args.map((e=>"string"==typeof e?e.toLocaleLowerCase(r):e)),l=t.name||t.command.key;null===this.previousConditionStack&&this.setPreviousConditionStack(this.exportAllConditions()),this.runLocalHooks("beforeAdd",e);const d=this.getOperation(e);if(d){if(d!==o)throw Error(i.toSingleLine`The column of index ${e} has been already applied with a \`${d}\`\x20
|
68
68
|
filter operation. Use \`removeConditions\` to clear the current conditions and then add new ones.\x20
|
69
69
|
Mind that you cannot mix different types of operations (for instance, if you use \`conjunction\`,\x20
|
70
70
|
use it consequently for a particular column).`)}else if((0,u.isUndefined)(c.operations[o]))throw new Error(i.toSingleLine`Unexpected operation named \`${o}\`. Possible ones are\x20
|
@@ -78,10 +78,10 @@
|
|
78
78
|
and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.`}static ZERO_SPAN_WARNING(e){let{row:t,col:o}=e;return n.toSingleLine`The merged cell declared at [${t}, ${o}] has "rowspan"\x20
|
79
79
|
or "colspan" declared as "0", which is not supported. It cannot be added to the collection.`}static containsNegativeValues(e){let{row:t,col:o,rowspan:s,colspan:r}=e;return t<0||o<0||s<0||r<0}static isSingleCell(e){let{rowspan:t,colspan:o}=e;return 1===o&&1===t}static containsZeroSpan(e){let{rowspan:t,colspan:o}=e;return 0===o||0===t}static isOutOfBounds(e,t,o){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=o||e.col+e.colspan-1>=o}normalize(e){const t=e.countRows(),o=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>o-1&&(this.col=o-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>o-1&&(this.colspan=o-this.col),a(c,this,null)}includes(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}includesHorizontally(e){return this.col<=e&&this.col+this.colspan-1>=e}includesVertically(e){return this.row<=e&&this.row+this.rowspan-1>=e}shift(e,t){const o=e[0]||e[1],s=t+Math.abs(e[0]||e[1])-1,r=e[0]?"colspan":"rowspan",n=e[0]?"col":"row",i=Math.min(t,s),l=Math.max(t,s),h=this[n],u=this[n]+this[r]-1;if(h>=t&&(this[n]+=o),o>0)t<=u&&t>h&&(this[r]+=o);else if(o<0){if(i<=h&&l>=u)return this.removed=!0,a(c,this,null),!1;if(h>=i&&h<=l){const e=l-h+1,t=Math.abs(o)-e;this[n]-=t+o,this[r]-=e}else if(h<=i&&u>=l)this[r]+=o;else if(h<=i&&u>=i&&u<l){const e=u-i+1;this[r]-=e}}return a(c,this,null),!0}isFarther(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}getLastRow(){return this.row+this.rowspan-1}getLastColumn(){return this.col+this.colspan-1}getRange(){return l(c,this)||a(c,this,this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))),l(c,this)}}},55279:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(63979),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458),o(49748),o(69655);var r=s(o(85707)),n=s(o(53190)),i=o(36926),l=o(59350),a=o(47154),h=o(20944);function c(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function 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 WeakSet;class g{constructor(e){c(this,d),(0,r.default)(this,"plugin",void 0),(0,r.default)(this,"mergedCells",[]),(0,r.default)(this,"mergedCellsMatrix",new Map),(0,r.default)(this,"hot",void 0),this.plugin=e,this.hot=e.hot}static IS_OVERLAPPING_WARNING(e){let{row:t,col:o}=e;return h.toSingleLine`The merged cell declared at [${t}, ${o}], overlaps\x20
|
80
80
|
with the other declared merged cell. The overlapping merged cell was not added to the table, please\x20
|
81
|
-
fix your setup.`}get(e,t){var o;return!!this.mergedCellsMatrix.has(e)&&(null!==(o=this.mergedCellsMatrix.get(e).get(t))&&void 0!==o&&o)}getByRange(e){const{row:t,col:o}=e.getTopStartCorner(),{row:s,col:r}=e.getBottomEndCorner(),n=this.mergedCells.length;let i=!1;for(let e=0;e<n;e++){const n=this.mergedCells[e],{row:l,col:a,rowspan:h,colspan:c}=n;if(l>=t&&l+h-1<=s&&a>=o&&a+c-1<=r){i=n;break}}return i}filterOverlappingMergeCells(e){const t=new Set;this.mergedCells.forEach((e=>{const{row:o,col:s,colspan:r,rowspan:n}=e;for(let e=o;e<o+n;e++)for(let o=s;o<s+r;o++)t.add(`r${e},c${o}`)}));return e.filter((e=>{const{row:o,col:s,colspan:r,rowspan:n}=e,i=new Set;let a=!1;for(let h=o;h<o+n;h++){for(let o=s;o<s+r;o++){const s=`r${h},c${o}`;if(t.has(s)){(0,l.warn)(g.IS_OVERLAPPING_WARNING(e)),a=!0;break}i.add(s)}if(a)break}return a||t.add(...i),!a}))}getWithinRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{row:o,col:s}=e.getTopStartCorner(),{row:r,col:n}=e.getBottomEndCorner(),i=[];for(let e=o;e<=r;e++)for(let o=s;o<=n;o++){const s=this.get(e,o);s&&(t||!t&&s.row===e&&s.col===o)&&i.push(s)}return i}add(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=e.row,s=e.col,r=e.rowspan,i=e.colspan,a=new n.default(o,s,r,i,this.hot._createCellCoords,this.hot._createCellRange),h=this.get(o,s),c=!t&&this.isOverlapping(a);return h||c?(c&&(0,l.warn)(g.IS_OVERLAPPING_WARNING(a)),!1):(this.hot&&a.normalize(this.hot),this.mergedCells.push(a),u(d,this,p).call(this,a),a)}remove(e,t){const o=this.get(e,t),s=o?this.mergedCells.indexOf(o):-1;return!(!o||-1===s)&&(this.mergedCells.splice(s,1),u(d,this,m).call(this,o),o)}clear(){(0,a.arrayEach)(this.mergedCells,(e=>{let{row:t,col:o,rowspan:s,colspan:r}=e;(0,i.rangeEach)(t,t+s,(e=>{(0,i.rangeEach)(o,o+r,(t=>{const o=this.hot.getCell(e,t);o&&(o.removeAttribute("rowspan"),o.removeAttribute("colspan"),o.style.display="")}))}))})),this.mergedCells.length=0,this.mergedCellsMatrix=new Map}isOverlapping(e){const t=e.getRange();for(let e=0;e<this.mergedCells.length;e++){if(this.mergedCells[e].getRange().overlaps(t))return!0}return!1}isFirstRenderableMergedCell(e,t){const o=this.get(e,t);if(!o)return!1;const{row:s,col:r,rowspan:n,colspan:l}=o,a=this.hot.view.getActiveOverlayName(),h=["top","top_inline_start_corner"].includes(a)?0:this.hot.getFirstRenderedVisibleRow(),c=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(a)?0:this.hot.getFirstRenderedVisibleColumn(),u=(0,i.clamp)(h,s,s+n-1),d=(0,i.clamp)(c,r,r+l-1);return this.hot.rowIndexMapper.getNearestNotHiddenIndex(u,1)===e&&this.hot.columnIndexMapper.getNearestNotHiddenIndex(d,1)===t}getFirstRenderableCoords(e,t){const o=this.get(e,t);if(!o||this.isFirstRenderableMergedCell(e,t))return this.hot._createCellCoords(e,t);const s=this.hot.rowIndexMapper.getNearestNotHiddenIndex(o.row,1),r=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o.col,1);return this.hot._createCellCoords(s,r)}getStartMostColumnIndex(e,t){const o=u(d,this,f).call(this,e,"col",-1);let s=t;for(let e=0;e<o.length;e++)if(o[e]<=t){s=o[e];break}return s}getEndMostColumnIndex(e,t){const o=u(d,this,f).call(this,e,"col",1);let s=t;for(let e=0;e<o.length;e++)if(o[e]>=t){s=o[e];break}return s}getTopMostRowIndex(e,t){const o=u(d,this,f).call(this,e,"row",-1);let s=t;for(let e=0;e<o.length;e++)if(o[e]<=t){s=o[e];break}return s}getBottomMostRowIndex(e,t){const o=u(d,this,f).call(this,e,"row",1);let s=t;for(let e=0;e<o.length;e++)if(o[e]>=t){s=o[e];break}return s}shiftCollections(e,t,o){const s=[0,0];switch(e){case"right":s[0]+=o;break;case"left":s[0]-=o;break;case"down":s[1]+=o;break;case"up":s[1]-=o}const r=[];this.mergedCells.forEach((e=>{e.shift(s,t),e.removed&&r.push(e)})),r.forEach((e=>{this.mergedCells.splice(this.mergedCells.indexOf(e),1)})),this.mergedCellsMatrix.clear(),this.mergedCells.forEach((e=>{u(d,this,p).call(this,e)}))}}function f(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const s=new Map,r=1===o?e.getTopStartCorner():e.getBottomEndCorner(),n=1===o?e.getBottomEndCorner():e.getTopStartCorner();for(let e=r.row;1===o?e<=n.row:e>=n.row;e+=o)for(let i=r.col;1===o?i<=n.col:i>=n.col;i+=o){const r="row"===t?e:i,n=this.get(e,i);let l=r;n&&(l=1===o?n[t]+n[`${t}span`]-1:n[t]),s.has(r)||s.set(r,new Set),s.get(r).add(l)}return Array.from(new Set(Array.from(s.entries()).filter((e=>{let[,t]=e;return 1===t.size})).flatMap((e=>{let[,t]=e;return Array.from(t)}))))}function p(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let o=e.col;o<e.col+e.colspan;o++)this.mergedCellsMatrix.has(t)||this.mergedCellsMatrix.set(t,new Map),this.mergedCellsMatrix.get(t).set(o,e)}function m(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let o=e.col;o<e.col+e.colspan;o++)this.mergedCellsMatrix.get(t).delete(o)}t.default=g},32030:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.default=function(e){return{key:"mergeCells",name(){const t=this.getSelectedLast();if(t){const o=e.mergedCellsCollection.get(t[0],t[1]);if(o.row===t[0]&&o.col===t[1]&&o.row+o.rowspan-1===t[2]&&o.col+o.colspan-1===t[3])return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback(){const t=this.getSelectedRangeLast();if(!t)return;t.setDirection(this.isRtl()?"NE-SW":"NW-SE");const{from:o,to:s}=t;e.toggleMerge(t),this.selectCell(o.row,o.col,s.row,s.col,!1)},disabled(){const e=this.getSelectedLast();if(!e)return!0;return n.default.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner()},hidden:!1}};var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),n=s(o(53190));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}},59812:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(39389));function n(e,t,o){i(e,t),t.set(e,o)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(h(e,t))}function a(e,t,o){return e.set(h(e,t),o),o}function h(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 c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(e,t,o,s,r){const n=e.getTopStartCorner(),i=e.getBottomEndCorner(),a=e.highlight.clone().normalize(),h=l(f,this).call(this,s,r);if(h&&o.has(h))return null;const c={colStart:r,colEnd:r,rowStart:s,rowEnd:s};if(h){if(o.add(h),h.row<n.row||h.row+h.rowspan-1>i.row||h.col<n.col||h.col+h.colspan-1>i.col)return null;c.colStart=h.col,c.colEnd=h.col+h.colspan-1,c.rowStart=h.row,c.rowEnd=h.row+h.rowspan-1}const u=t.push(c);return s===a.row&&r===a.col||h&&a.row>=h.row&&a.row<=h.row+h.rowspan-1&&a.col>=h.col&&a.col<=h.col+h.colspan-1?u:null}t.FocusOrder=class{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:o,columnIndexMapper:s}=e;var l,h;i(l=this,h=w),h.add(l),n(this,c,new r.default),n(this,u,new r.default),n(this,d,null),n(this,g,null),n(this,f,null),n(this,p,null),n(this,m,null),a(f,this,t),a(p,this,o),a(m,this,s)}getCurrentVerticalNode(){return l(g,this).data}getFirstVerticalNode(){return l(u,this).first.data}getNextVerticalNode(){return l(g,this).next.data}getPrevVerticalNode(){return l(g,this).prev.data}getCurrentHorizontalNode(){return l(d,this).data}getFirstHorizontalNode(){return l(c,this).first.data}getNextHorizontalNode(){return l(d,this).next.data}getPrevHorizontalNode(){return l(d,this).prev.data}setPrevNodeAsActive(){a(g,this,l(g,this).prev),a(d,this,l(d,this).prev)}setNextNodeAsActive(){a(g,this,l(g,this).next),a(d,this,l(d,this).next)}buildFocusOrder(e){const t=e.getTopStartCorner(),o=e.getBottomEndCorner(),s=new WeakSet;a(c,this,new r.default);for(let r=t.row;r<=o.row;r++)if(!l(p,this).isHidden(r))for(let n=t.col;n<=o.col;n++){if(l(m,this).isHidden(n))continue;const t=h(w,this,C).call(this,e,l(c,this),s,r,n);t&&a(d,this,t)}l(c,this).first&&(l(c,this).first.prev=l(c,this).last,l(c,this).last.next=l(c,this).first);const n=new WeakSet;a(u,this,new r.default);for(let s=t.col;s<=o.col;s++)if(!l(m,this).isHidden(s))for(let r=t.row;r<=o.row;r++){if(l(p,this).isHidden(r))continue;const t=h(w,this,C).call(this,e,l(u,this),n,r,s);t&&a(g,this,t)}l(u,this).first&&(l(u,this).first.prev=l(u,this).last,l(u,this).last.next=l(u,this).first)}setActiveNode(e,t){return l(c,this).inorder((o=>{const{rowStart:s,rowEnd:r,colStart:n,colEnd:i}=o.data;if(e>=s&&e<=r&&t>=n&&t<=i)return a(d,this,o),!1})),l(u,this).inorder((o=>{const{rowStart:s,rowEnd:r,colStart:n,colEnd:i}=o.data;if(e>=s&&e<=r&&t>=n&&t<=i)return a(g,this,o),!1})),this}}},13250:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(60321);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.MergeCells=s.MergeCells},60321:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458),o(69655),o(94364),o(90458);var r=s(o(85707)),n=o(9458),i=o(29398),l=s(o(55279)),a=s(o(53190)),h=s(o(43255)),c=s(o(86267)),u=s(o(32030)),d=o(47154),g=o(95016),f=o(59350),p=o(36926),m=o(94916),w=o(99275),C=o(59812),v=o(8635);function y(e,t,o){E(e,t),t.set(e,o)}function E(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function S(e,t,o){return e.set(b(e,t),o),o}function R(e,t){return e.get(b(e,t))}function b(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")}i.Hooks.getSingleton().register("beforeMergeCells"),i.Hooks.getSingleton().register("afterMergeCells"),i.Hooks.getSingleton().register("beforeUnmergeCells"),i.Hooks.getSingleton().register("afterUnmergeCells");const _=t.PLUGIN_KEY="mergeCells",T=t.PLUGIN_PRIORITY=150,M=_;var O=new WeakMap,I=new WeakMap,N=new WeakMap,A=new WeakMap,P=new WeakSet;class H extends n.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=P),t.add(e),(0,r.default)(this,"mergedCellsCollection",null),(0,r.default)(this,"autofillCalculations",null),(0,r.default)(this,"selectionCalculations",null),y(this,O,null),y(this,I,{row:0,col:0}),y(this,N,new C.FocusOrder({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),y(this,A,(0,v.createMergeCellRenderer)(this))}static get PLUGIN_KEY(){return _}static get PLUGIN_PRIORITY(){return T}static get DEFAULT_SETTINGS(){return{[n.defaultMainSettingSymbol]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[_]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new l.default(this),this.autofillCalculations=new h.default(this),this.selectionCalculations=new c.default(this),this.addHook("afterInit",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,x).call(e,...o)})),this.addHook("modifyTransformFocus",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,k).call(e,...o)})),this.addHook("modifyTransformStart",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,L).call(e,...o)})),this.addHook("modifyTransformEnd",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,V).call(e,...o)})),this.addHook("beforeSelectionHighlightSet",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,F).call(e,...o)})),this.addHook("beforeSetRangeStart",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,U).call(e,...o)})),this.addHook("beforeSetRangeStartOnly",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,U).call(e,...o)})),this.addHook("beforeSelectionFocusSet",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,j).call(e,...o)})),this.addHook("afterSelectionFocusSet",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,Y).call(e,...o)})),this.addHook("afterSelectionEnd",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,z).call(e,...o)})),this.addHook("modifyGetCellCoords",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,W).call(e,...o)})),this.addHook("modifyGetCoordsElement",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,W).call(e,...o)})),this.addHook("afterIsMultipleSelection",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,D).call(e,...o)})),this.addHook("afterRenderer",(function(){return R(A,e).after(...arguments)})),this.addHook("afterContextMenuDefaultOptions",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,B).call(e,...o)})),this.addHook("afterGetCellMeta",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,G).call(e,...o)})),this.addHook("afterViewportRowCalculatorOverride",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,K).call(e,...o)})),this.addHook("afterViewportColumnCalculatorOverride",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,$).call(e,...o)})),this.addHook("modifyAutofillRange",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,X).call(e,...o)})),this.addHook("afterCreateCol",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,q).call(e,...o)})),this.addHook("afterRemoveCol",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,Q).call(e,...o)})),this.addHook("afterCreateRow",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,J).call(e,...o)})),this.addHook("afterRemoveRow",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,Z).call(e,...o)})),this.addHook("afterChange",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,ee).call(e,...o)})),this.addHook("beforeDrawBorders",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,te).call(e,...o)})),this.addHook("afterDrawSelection",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,oe).call(e,...o)})),this.addHook("beforeRemoveCellClassNames",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,se).call(e,...o)})),this.addHook("beforeBeginEditing",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,re).call(e,...o)})),this.addHook("modifyRowHeightByOverlayName",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,ne).call(e,...o)})),this.addHook("beforeUndoStackChange",((e,t)=>{if("MergeCells"===t)return!1})),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(),super.updatePlugin()}ifChromeForceRepaint(){if(!(0,w.isChrome)())return;const e=[];let t=[];this.mergedCellsCollection.mergedCells.forEach((e=>{const{row:o,rowspan:s}=e;for(let e=o+1;e<o+s;e++)t.push(e)})),t=[...new Set(t)],t.forEach((t=>{const o=this.hot.rowIndexMapper.getRenderableFromVisualIndex(t);this.hot.view._wt.wtOverlays.getOverlays(!0).map((e=>"master"===(null==e?void 0:e.name)?e:e.clone.wtTable)).forEach((t=>{const s=t.getRow(o);s&&(s.style.background=(0,m.getStyle)(s,"backgroundColor").replace(")",", 0.99)"),e.push(s))}))})),this.hot._registerTimeout((()=>{e.forEach((e=>{e.style.background=(0,m.getStyle)(e,"backgroundColor").replace(", 0.99)",")")}))}),1)}validateSetting(e){return!!e&&(a.default.containsNegativeValues(e)?((0,f.warn)(a.default.NEGATIVE_VALUES_WARNING(e)),!1):a.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,f.warn)(a.default.IS_OUT_OF_BOUNDS_WARNING(e)),!1):a.default.isSingleCell(e)?((0,f.warn)(a.default.IS_SINGLE_CELL(e)),!1):!a.default.containsZeroSpan(e)||((0,f.warn)(a.default.ZERO_SPAN_WARNING(e)),!1))}generateFromSettings(){const e=this.getSetting("cells").filter((e=>this.validateSetting(e))),t=this.mergedCellsCollection.filterOverlappingMergeCells(e),o=[];t.forEach((e=>{const{row:t,col:s,rowspan:r,colspan:n}=e,i=this.hot._createCellCoords(t,s),l=this.hot._createCellCoords(t+r-1,s+n-1),a=this.hot._createCellRange(i,i,l);this.mergeRange(a,!0,!0);for(let e=t;e<t+r;e++)for(let r=s;r<s+n;r++)e===t&&r===s||o.push([e,r,null])})),0!==o.length&&this.hot.setDataAtCell(o,void 0,void 0,this.pluginName)}clearCollections(){this.mergedCellsCollection.clear()}canMergeRange(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}mergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");const{from:t,to:o}=e;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}unmergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;const{from:t,to:o}=e;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}mergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=e.getTopStartCorner(),r=e.getBottomEndCorner(),n={row:s.row,col:s.col,rowspan:r.row-s.row+1,colspan:r.col-s.col+1},i=[];let l=null;if(!this.canMergeRange(n,t))return!1;this.hot.runHooks("beforeMergeCells",e,t),(0,p.rangeEach)(0,n.rowspan-1,(e=>{(0,p.rangeEach)(0,n.colspan-1,(t=>{let o=null;i[e]||(i[e]=[]),0===e&&0===t?o=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(n.row),this.hot.toPhysicalColumn(n.col)):this.hot.setCellMeta(n.row+e,n.col+t,"hidden",!0),i[e][t]=o}))})),this.hot.setCellMeta(n.row,n.col,"spanned",!0);return!this.mergedCellsCollection.add(n,t)||(o?l=[n.row,n.col,i]:this.hot.populateFromArray(n.row,n.col,i,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,n,t),l)}unmergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=this.mergedCellsCollection.getWithinRange(e);0!==o.length&&(this.hot.runHooks("beforeUnmergeCells",e,t),(0,d.arrayEach)(o,(e=>{this.mergedCellsCollection.remove(e.row,e.col),(0,p.rangeEach)(0,e.rowspan-1,(t=>{(0,p.rangeEach)(0,e.colspan-1,(o=>{this.hot.removeCellMeta(e.row+t,e.col+o,"hidden"),this.hot.removeCellMeta(e.row+t,e.col+o,"copyable")}))})),this.hot.removeCellMeta(e.row,e.col,"spanned")})),this.hot.runHooks("afterUnmergeCells",e,t),this.hot.render())}toggleMerge(e){const t=this.mergedCellsCollection.get(e.from.row,e.from.col);t.row===e.from.row&&t.col===e.from.col&&t.row+t.rowspan-1===e.to.row&&t.col+t.colspan-1===e.to.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,o,s){const r=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,s);this.mergeRange(this.hot._createCellRange(r,r,n))}unmerge(e,t,o,s){const r=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,s);this.unmergeRange(this.hot._createCellRange(r,r,n))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeLast();e&&!e.isSingleHeader()&&(this.toggleMerge(e),this.hot.render())},runOnlyIf:e=>!e.altKey,group:M})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(M)}modifyViewportRowStart(e,t){const o=this.hot.rowIndexMapper,s=o.getVisualFromRenderableIndex(e.startRow);for(let r=0;r<t;r+=1){const n=this.mergedCellsCollection.get(s,r);if((0,g.isObject)(n)){const s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.row,1));if(s<e.startRow)return e.startRow=s,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const o=this.hot.rowIndexMapper,s=o.getVisualFromRenderableIndex(e.endRow);for(let r=0;r<t;r+=1){const n=this.mergedCellsCollection.get(s,r);if((0,g.isObject)(n)){const s=n.row+n.rowspan-1,r=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,-1));if(r>e.endRow)return e.endRow=r,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const o=this.hot.columnIndexMapper,s=o.getVisualFromRenderableIndex(e.startColumn);for(let r=0;r<t;r+=1){const n=this.mergedCellsCollection.get(r,s);if((0,g.isObject)(n)){const s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.col,1));if(s<e.startColumn)return e.startColumn=s,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const o=this.hot.columnIndexMapper,s=o.getVisualFromRenderableIndex(e.endColumn);for(let r=0;r<t;r+=1){const n=this.mergedCellsCollection.get(r,s);if((0,g.isObject)(n)){const s=n.col+n.colspan-1,r=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,-1));if(r>e.endColumn)return e.endColumn=r,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,o,s){const{rowIndexMapper:r,columnIndexMapper:n}=this.hot;let i,l;i=0===t?r.getNearestNotHiddenIndex(e,1):r.getNearestNotHiddenIndex(e+t-1,-1),l=0===s?n.getNearestNotHiddenIndex(o,1):n.getNearestNotHiddenIndex(o+s-1,-1);return[e>=0?r.getRenderableFromVisualIndex(i):e,o>=0?n.getRenderableFromVisualIndex(l):o]}}function x(){this.generateFromSettings(),this.hot.render()}function D(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeLast(),o=t.getTopStartCorner(),s=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(o.row===e[t].row&&o.col===e[t].col&&s.row===e[t].row+e[t].rowspan-1&&s.col===e[t].col+e[t].colspan-1)return!1}return e}function k(e){R(I,this).row=e.row,R(I,this).col=e.col}function L(e){const t=this.hot.getSelectedRangeLast(),{highlight:o}=t,{columnIndexMapper:s,rowIndexMapper:r}=this.hot;R(O,this)&&(null!==r.getRenderableFromVisualIndex(R(O,this).row)&&(o.row=R(O,this).row),null!==s.getRenderableFromVisualIndex(R(O,this).col)&&(o.col=R(O,this).col),S(O,this,null));const n=this.mergedCellsCollection.get(o.row,o.col);if(!n)return;const i=n.col,l=n.col+n.colspan-1;if(e.col<0){const t=o.col>=i&&o.col<=l?i-1:l,r=s.getNearestNotHiddenIndex(t,-1);e.col=null===r?-this.hot.view.countRenderableColumnsInRange(0,o.col):-Math.max(this.hot.view.countRenderableColumnsInRange(r,o.col)-1,1)}else if(e.col>0){const t=o.col>=i&&o.col<=l?l+1:i,r=s.getNearestNotHiddenIndex(t,1);e.col=null===r?this.hot.view.countRenderableColumnsInRange(o.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(o.col,r)-1,1)}const a=n.row,h=n.row+n.rowspan-1;if(e.row<0){const t=o.row>=a&&o.row<=h?a-1:h,s=r.getNearestNotHiddenIndex(t,-1);e.row=null===s?-this.hot.view.countRenderableRowsInRange(0,o.row):-Math.max(this.hot.view.countRenderableRowsInRange(s,o.row)-1,1)}else if(e.row>0){const t=o.row>=a&&o.row<=h?h+1:a,s=r.getNearestNotHiddenIndex(t,1);e.row=null===s?this.hot.view.countRenderableRowsInRange(o.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(o.row,s)-1,1)}}function V(e){const t=this.hot.getSelectedRangeLast(),o=t.clone(),{to:s}=t,{columnIndexMapper:r,rowIndexMapper:n}=this.hot,i=(e,t)=>{o.expand(this.hot._createCellCoords(e,t));for(let e=0;e<this.mergedCellsCollection.mergedCells.length;e+=1)o.expandByRange(this.mergedCellsCollection.mergedCells[e].getRange())};if(e.col<0){let n=this.mergedCellsCollection.getStartMostColumnIndex(t,s.col)+e.col;i(s.row,n),"E-W"===t.getHorizontalDirection()&&"E-W"===o.getHorizontalDirection()&&(n=o.getTopStartCorner().col);const l=r.getNearestNotHiddenIndex(n,1);null!==l&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(l,s.col)-1,1))}else if(e.col>0){let n=this.mergedCellsCollection.getEndMostColumnIndex(t,s.col)+e.col;i(s.row,n),"W-E"===t.getHorizontalDirection()&&"W-E"===o.getHorizontalDirection()&&(n=o.getBottomEndCorner().col);const l=r.getNearestNotHiddenIndex(n,-1);null!==l&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(s.col,l)-1,1))}if(e.row<0){let r=this.mergedCellsCollection.getTopMostRowIndex(t,s.row)+e.row;i(r,s.col),"S-N"===t.getVerticalDirection()&&"S-N"===o.getVerticalDirection()&&(r=o.getTopStartCorner().row);const l=n.getNearestNotHiddenIndex(r,1);null!==l&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(l,s.row)-1,1))}else if(e.row>0){let r=this.mergedCellsCollection.getBottomMostRowIndex(t,s.row)+e.row;i(r,s.col),"N-S"===t.getVerticalDirection()&&"N-S"===o.getVerticalDirection()&&(r=o.getBottomStartCorner().row);const l=n.getNearestNotHiddenIndex(r,-1);null!==l&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(s.row,l)-1,1))}}function F(){const e=this.hot.getSelectedRangeLast(),{highlight:t}=e;if(this.hot.selection.isSelectedByColumnHeader()||this.hot.selection.isSelectedByRowHeader())return void S(O,this,t.clone());for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);const o=this.mergedCellsCollection.get(t.row,t.col);S(O,this,t.clone()),o&&t.assign(o)}function W(e,t,o,s){if(e<0||t<0)return;const r=this.mergedCellsCollection.get(e,t);if(!r)return;const{row:n,col:i,colspan:l,rowspan:a}=r,h=n,c=i,u=n+a-1,d=i+l-1;if("render"===s&&this.getSetting("virtualized")){const e=this.hot.view.getActiveOverlayName(),t=["top","top_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleRow(),o=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleColumn();return[(0,p.clamp)(t,h,u),(0,p.clamp)(o,c,d),(0,p.clamp)(this.hot.getLastRenderedVisibleRow(),h,u),(0,p.clamp)(this.hot.getLastRenderedVisibleColumn(),c,d)]}return[h,c,u,d]}function B(e){e.items.push({name:"---------"},(0,u.default)(this))}function U(){S(O,this,null)}function j(){if(R(O,this).isCell())return;const e=this.hot.getSelectedRangeLast(),t=e.getVerticalDirection(),o=e.getHorizontalDirection(),s=R(O,this).clone().normalize();R(N,this).setActiveNode(s.row,s.col),R(I,this).row>0||R(I,this).col>0?R(N,this).setPrevNodeAsActive():("E-W"===o&&R(I,this).col<0||"S-N"===t&&R(I,this).row<0)&&R(N,this).setNextNodeAsActive()}function Y(e,t){const o=this.hot.getSelectedRangeLast(),{columnIndexMapper:s,rowIndexMapper:r}=this.hot;let n=null,i=null;if(R(I,this).col<0){const{rowEnd:e,colEnd:t}=R(N,this).getPrevHorizontalNode();i=s.getNearestNotHiddenIndex(t,-1),n=r.getNearestNotHiddenIndex(e,-1)}else if(R(I,this).col>0){const{rowStart:e,colStart:t}=R(N,this).getNextHorizontalNode();i=s.getNearestNotHiddenIndex(t,1),n=r.getNearestNotHiddenIndex(e,1)}else if(R(I,this).row<0){const{rowEnd:e,colEnd:t}=R(N,this).getPrevVerticalNode();i=s.getNearestNotHiddenIndex(t,-1),n=r.getNearestNotHiddenIndex(e,-1)}else if(R(I,this).row>0){const{rowStart:e,colStart:t}=R(N,this).getNextVerticalNode();i=s.getNearestNotHiddenIndex(t,1),n=r.getNearestNotHiddenIndex(e,1)}if(null!==n||null!==i){const s=this.hot._createCellCoords(n,i),r=this.mergedCellsCollection.get(s.row,s.col),l=this.hot.selection.highlight.getFocus();e=s.row,t=s.col,r?o.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(r.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(r.col,1)}):o.highlight.assign(s),l.clear(),l.add(s).commit()}R(N,this).setActiveNode(e,t),S(I,this,{row:0,col:0})}function z(){this.hot.getSelectedRangeLast().isHeader()||R(N,this).buildFocusOrder(this.hot.getSelectedRangeLast())}function G(e,t,o){const s=this.mergedCellsCollection.get(e,t);s&&(s.row!==e||s.col!==t?o.copyable=!1:(o.rowspan=s.rowspan,o.colspan=s.colspan))}function K(e){if(this.getSetting("virtualized"))return;const t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}function $(e){if(this.getSetting("virtualized"))return;const t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}function X(e,t){const o=this.autofillCalculations.getDirection(t,e);if(this.autofillCalculations.dragAreaOverlapsCollections(t,e,o))return t;const s=this.hot._createCellCoords(t[0],t[1]),r=this.hot._createCellCoords(t[2],t[3]),n=this.hot._createCellRange(s,s,r),i=this.mergedCellsCollection.getWithinRange(n);return 0===i.length?e:this.autofillCalculations.snapDragArea(t,e,o,i)}function q(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}function Q(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}function J(e,t,o){"auto"!==o&&this.mergedCellsCollection.shiftCollections("down",e,t)}function Z(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}function ee(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}function te(e,t){if(t&&"area"===t){const t=this.hot.getSelectedRangeLast(),o=this.mergedCellsCollection.getWithinRange(t);(0,d.arrayEach)(o,(o=>{t.getBottomEndCorner().row===o.getLastRow()&&t.getBottomEndCorner().col===o.getLastColumn()&&(e[2]=o.row,e[3]=o.col)}))}}function oe(e,t,o,s){if(o)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,o,s)}function se(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function re(e,t,o,s){if(!(s instanceof MouseEvent))return;const r=this.hot.getSelectedRangeLast(),n=this.mergedCellsCollection.getByRange(r);if(!n)return;const i=this.hot._createCellCoords(n.row,n.col),l=this.hot._createCellCoords(n.row+n.rowspan-1,n.col+n.colspan-1);return 0===this.hot.selection.getLayerLevel()&&r.isEqual(this.hot._createCellRange(i,i,l))}function ne(e,t,o){if(this.hot.getSettings().rowHeaders||"bottom"===o||"bottom_inline_start_corner"===o)return e;let s,r;if("master"===o)s=this.hot.getFirstRenderedVisibleColumn(),r=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(o);s=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),r=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,s))return e;const n=this.hot._createCellCoords(t,s),i=this.hot._createCellCoords(t,r),l=this.hot._createCellRange(n,n,i),a=this.mergedCellsCollection.getWithinRange(l,!0),h=a.reduce(((e,t)=>{let{rowspan:o}=t;return Math.max(e,o)}),1);let c=0;return a.length>1&&a[0].rowspan<h&&(c=h-a[0].rowspan),a.forEach((s=>{var r;let{rowspan:n}=s,i=0;i="top"===o||"top_inline_start_corner"===o?Math.min(h,this.hot.view.countNotHiddenFixedRowsTop()-t):n-c,e=Math.max(null!==(r=e)&&void 0!==r?r:0,b(P,this,ie).call(this,t,i))})),e}function ie(e,t){const o=this.hot.view.getDefaultRowHeight(),s=this.hot.getPlugin("autoRowSize");let r=0;for(let i=e;i<e+t;i++){var n;if(!this.hot.rowIndexMapper.isHidden(i))r+=null!==(n=null==s?void 0:s.getRowHeight(i))&&void 0!==n?n:o}return r}t.MergeCells=H},8635:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMergeCellRenderer=function(e){const{hot:t}=e,{rowIndexMapper:o,columnIndexMapper:r}=t;return{before:function(){},after:function(n,i,l){const a=e.mergedCellsCollection.get(i,l);if(!(0,s.isObject)(a))return n.removeAttribute("rowspan"),n.removeAttribute("colspan"),void(n.style.display="");const{row:h,col:c,colspan:u,rowspan:d}=a,[g,f]=e.translateMergedCellToRenderable(h,d,c,u),p=e.getSetting("virtualized"),m=g-o.getRenderableFromVisualIndex(i)+1,w=f-r.getRenderableFromVisualIndex(l)+1;let C=o.getNearestNotHiddenIndex(h,1),v=r.getNearestNotHiddenIndex(c,1);if(p){const e=t.view.getActiveOverlayName();["top","top_inline_start_corner"].includes(e)||(C=Math.max(C,t.getFirstRenderedVisibleRow())),["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)||(v=Math.max(v,t.getFirstRenderedVisibleColumn()))}const y=Math.min(d,m),E=Math.min(u,w);C===i&&v===l?(n.setAttribute("rowspan",y),n.setAttribute("colspan",E)):(n.removeAttribute("rowspan"),n.removeAttribute("colspan"),n.style.display="none")}}};var s=o(95016)},72733:(e,t,o)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,o){const r=[];if(!1===o)return r;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&r.push(`${s}-${e.getIndexOfColumnInSortQueue(t)+1}`);return r},t.getClassesToRemove=function(e){const t=e.className.split(" "),o=new RegExp(`^${s}-[0-9]{1,2}$`);return t.filter((e=>o.test(e)))},o(15724),o(14846),o(27458);const s="sort"},49350:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(12017);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.MultiColumnSorting=s.MultiColumnSorting},12017:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(97887),i=o(5919),l=o(20986),a=o(94916),h=o(424),c=o(47719),u=o(72733),d=o(9528);const g=t.PLUGIN_KEY="multiColumnSorting",f=t.PLUGIN_PRIORITY=170,p="columnSorting",m=g;(0,i.registerRootComparator)(g,h.rootComparator);class w extends n.ColumnSorting{constructor(){super(...arguments),(0,r.default)(this,"pluginKey",g)}static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return f}isEnabled(){return super.isEnabled()}enablePlugin(){!this.enabled&&this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings()[p]&&((0,c.warnAboutPluginsConflict)(),this.hot.getPlugin(p).disablePlugin()),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,n.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:d.EDITOR_EDIT_GROUP,position:"before",group:m})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(m)}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,u.getClassesToRemove)(e)),!1!==this.enabled&&(0,a.addClass)(e,(0,u.getClassesToAdd)(...o))}onUpdateSettings(e){this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings()[p]&&(0,c.warnAboutPluginsConflict)(),super.onUpdateSettings(e)}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,n.APPEND_COLUMN_CONFIG_STRATEGY))):this.sort(this.getColumnNextConfig(t.col)))}}t.MultiColumnSorting=w},424:(e,t,o)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(o,r){const[,...n]=o,[,...i]=r;return function o(r){const l=e[r],a=t[r],h=n[r],c=i[r],u=a.multiColumnSorting,d=(u.compareFunctionFactory?u.compareFunctionFactory:(0,s.getCompareFunctionFactory)(a.type))(l,a,u)(h,c);if(d===s.DO_NOT_SWAP){const e=r+1;if(void 0!==t[e])return o(e)}return d}(0)}};var s=o(5919)},47719:(e,t,o)=>{"use strict";t.__esModule=!0,t.warnAboutPluginsConflict=function(){(0,s.warn)(r.toSingleLine`Plugins \`columnSorting\` and \`multiColumnSorting\` should not be enabled simultaneously.
|
81
|
+
fix your setup.`}get(e,t){var o;return!!this.mergedCellsMatrix.has(e)&&(null!==(o=this.mergedCellsMatrix.get(e).get(t))&&void 0!==o&&o)}getByRange(e){const{row:t,col:o}=e.getTopStartCorner(),{row:s,col:r}=e.getBottomEndCorner(),n=this.mergedCells.length;let i=!1;for(let e=0;e<n;e++){const n=this.mergedCells[e],{row:l,col:a,rowspan:h,colspan:c}=n;if(l>=t&&l+h-1<=s&&a>=o&&a+c-1<=r){i=n;break}}return i}filterOverlappingMergeCells(e){const t=new Set;this.mergedCells.forEach((e=>{const{row:o,col:s,colspan:r,rowspan:n}=e;for(let e=o;e<o+n;e++)for(let o=s;o<s+r;o++)t.add(`r${e},c${o}`)}));return e.filter((e=>{const{row:o,col:s,colspan:r,rowspan:n}=e,i=new Set;let a=!1;for(let h=o;h<o+n;h++){for(let o=s;o<s+r;o++){const s=`r${h},c${o}`;if(t.has(s)){(0,l.warn)(g.IS_OVERLAPPING_WARNING(e)),a=!0;break}i.add(s)}if(a)break}return a||t.add(...i),!a}))}getWithinRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{row:o,col:s}=e.getTopStartCorner(),{row:r,col:n}=e.getBottomEndCorner(),i=[];for(let e=o;e<=r;e++)for(let o=s;o<=n;o++){const s=this.get(e,o);s&&(t||!t&&s.row===e&&s.col===o)&&i.push(s)}return i}add(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=e.row,s=e.col,r=e.rowspan,i=e.colspan,a=new n.default(o,s,r,i,this.hot._createCellCoords,this.hot._createCellRange),h=this.get(o,s),c=!t&&this.isOverlapping(a);return h||c?(c&&(0,l.warn)(g.IS_OVERLAPPING_WARNING(a)),!1):(this.hot&&a.normalize(this.hot),this.mergedCells.push(a),u(d,this,p).call(this,a),a)}remove(e,t){const o=this.get(e,t),s=o?this.mergedCells.indexOf(o):-1;return!(!o||-1===s)&&(this.mergedCells.splice(s,1),u(d,this,m).call(this,o),o)}clear(){(0,a.arrayEach)(this.mergedCells,(e=>{let{row:t,col:o,rowspan:s,colspan:r}=e;(0,i.rangeEach)(t,t+s,(e=>{(0,i.rangeEach)(o,o+r,(t=>{const o=this.hot.getCell(e,t);o&&(o.removeAttribute("rowspan"),o.removeAttribute("colspan"),o.style.display="")}))}))})),this.mergedCells.length=0,this.mergedCellsMatrix=new Map}isOverlapping(e){const t=e.getRange();for(let e=0;e<this.mergedCells.length;e++){if(this.mergedCells[e].getRange().overlaps(t))return!0}return!1}isFirstRenderableMergedCell(e,t){const o=this.get(e,t);if(!o)return!1;const{row:s,col:r,rowspan:n,colspan:l}=o,a=this.hot.view.getActiveOverlayName(),h=["top","top_inline_start_corner"].includes(a)?0:this.hot.getFirstRenderedVisibleRow(),c=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(a)?0:this.hot.getFirstRenderedVisibleColumn(),u=(0,i.clamp)(h,s,s+n-1),d=(0,i.clamp)(c,r,r+l-1);return this.hot.rowIndexMapper.getNearestNotHiddenIndex(u,1)===e&&this.hot.columnIndexMapper.getNearestNotHiddenIndex(d,1)===t}getFirstRenderableCoords(e,t){const o=this.get(e,t);if(!o||this.isFirstRenderableMergedCell(e,t))return this.hot._createCellCoords(e,t);const s=this.hot.rowIndexMapper.getNearestNotHiddenIndex(o.row,1),r=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o.col,1);return this.hot._createCellCoords(s,r)}getStartMostColumnIndex(e,t){const o=u(d,this,f).call(this,e,"col",-1);let s=t;for(let e=0;e<o.length;e++)if(o[e]<=t){s=o[e];break}return s}getEndMostColumnIndex(e,t){const o=u(d,this,f).call(this,e,"col",1);let s=t;for(let e=0;e<o.length;e++)if(o[e]>=t){s=o[e];break}return s}getTopMostRowIndex(e,t){const o=u(d,this,f).call(this,e,"row",-1);let s=t;for(let e=0;e<o.length;e++)if(o[e]<=t){s=o[e];break}return s}getBottomMostRowIndex(e,t){const o=u(d,this,f).call(this,e,"row",1);let s=t;for(let e=0;e<o.length;e++)if(o[e]>=t){s=o[e];break}return s}shiftCollections(e,t,o){const s=[0,0];switch(e){case"right":s[0]+=o;break;case"left":s[0]-=o;break;case"down":s[1]+=o;break;case"up":s[1]-=o}const r=[];this.mergedCells.forEach((e=>{e.shift(s,t),e.removed&&r.push(e)})),r.forEach((e=>{this.mergedCells.splice(this.mergedCells.indexOf(e),1)})),this.mergedCellsMatrix.clear(),this.mergedCells.forEach((e=>{u(d,this,p).call(this,e)}))}}function f(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const s=new Map,r=1===o?e.getTopStartCorner():e.getBottomEndCorner(),n=1===o?e.getBottomEndCorner():e.getTopStartCorner();for(let e=r.row;1===o?e<=n.row:e>=n.row;e+=o)for(let i=r.col;1===o?i<=n.col:i>=n.col;i+=o){const r="row"===t?e:i,n=this.get(e,i);let l=r;n&&(l=1===o?n[t]+n[`${t}span`]-1:n[t]),s.has(r)||s.set(r,new Set),s.get(r).add(l)}return Array.from(new Set(Array.from(s.entries()).filter((e=>{let[,t]=e;return 1===t.size})).flatMap((e=>{let[,t]=e;return Array.from(t)}))))}function p(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let o=e.col;o<e.col+e.colspan;o++)this.mergedCellsMatrix.has(t)||this.mergedCellsMatrix.set(t,new Map),this.mergedCellsMatrix.get(t).set(o,e)}function m(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let o=e.col;o<e.col+e.colspan;o++)this.mergedCellsMatrix.get(t).delete(o)}t.default=g},32030:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.default=function(e){return{key:"mergeCells",name(){const t=this.getSelectedLast();if(t){const o=e.mergedCellsCollection.get(t[0],t[1]);if(o.row===t[0]&&o.col===t[1]&&o.row+o.rowspan-1===t[2]&&o.col+o.colspan-1===t[3])return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback(){const t=this.getSelectedRangeLast();if(!t)return;t.setDirection(this.isRtl()?"NE-SW":"NW-SE");const{from:o,to:s}=t;e.toggleMerge(t),this.selectCell(o.row,o.col,s.row,s.col,!1)},disabled(){const e=this.getSelectedLast();if(!e)return!0;return n.default.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner()},hidden:!1}};var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(s,n,l):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),n=s(o(53190));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:t})(e)}},59812:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(39389));function n(e,t,o){i(e,t),t.set(e,o)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(h(e,t))}function a(e,t,o){return e.set(h(e,t),o),o}function h(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 c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(e,t,o,s,r){const n=e.getTopStartCorner(),i=e.getBottomEndCorner(),a=e.highlight.clone().normalize(),h=l(f,this).call(this,s,r);if(h&&o.has(h))return null;const c={colStart:r,colEnd:r,rowStart:s,rowEnd:s};if(h){if(o.add(h),h.row<n.row||h.row+h.rowspan-1>i.row||h.col<n.col||h.col+h.colspan-1>i.col)return null;c.colStart=h.col,c.colEnd=h.col+h.colspan-1,c.rowStart=h.row,c.rowEnd=h.row+h.rowspan-1}const u=t.push(c);return s===a.row&&r===a.col||h&&a.row>=h.row&&a.row<=h.row+h.rowspan-1&&a.col>=h.col&&a.col<=h.col+h.colspan-1?u:null}t.FocusOrder=class{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:o,columnIndexMapper:s}=e;var l,h;i(l=this,h=w),h.add(l),n(this,c,new r.default),n(this,u,new r.default),n(this,d,null),n(this,g,null),n(this,f,null),n(this,p,null),n(this,m,null),a(f,this,t),a(p,this,o),a(m,this,s)}getCurrentVerticalNode(){return l(g,this).data}getFirstVerticalNode(){return l(u,this).first.data}getNextVerticalNode(){return l(g,this).next.data}getPrevVerticalNode(){return l(g,this).prev.data}getCurrentHorizontalNode(){return l(d,this).data}getFirstHorizontalNode(){return l(c,this).first.data}getNextHorizontalNode(){return l(d,this).next.data}getPrevHorizontalNode(){return l(d,this).prev.data}setPrevNodeAsActive(){a(g,this,l(g,this).prev),a(d,this,l(d,this).prev)}setNextNodeAsActive(){a(g,this,l(g,this).next),a(d,this,l(d,this).next)}buildFocusOrder(e){const t=e.getTopStartCorner(),o=e.getBottomEndCorner(),s=new WeakSet;a(c,this,new r.default);for(let r=t.row;r<=o.row;r++)if(!l(p,this).isHidden(r))for(let n=t.col;n<=o.col;n++){if(l(m,this).isHidden(n))continue;const t=h(w,this,C).call(this,e,l(c,this),s,r,n);t&&a(d,this,t)}l(c,this).first&&(l(c,this).first.prev=l(c,this).last,l(c,this).last.next=l(c,this).first);const n=new WeakSet;a(u,this,new r.default);for(let s=t.col;s<=o.col;s++)if(!l(m,this).isHidden(s))for(let r=t.row;r<=o.row;r++){if(l(p,this).isHidden(r))continue;const t=h(w,this,C).call(this,e,l(u,this),n,r,s);t&&a(g,this,t)}l(u,this).first&&(l(u,this).first.prev=l(u,this).last,l(u,this).last.next=l(u,this).first)}setActiveNode(e,t){return l(c,this).inorder((o=>{const{rowStart:s,rowEnd:r,colStart:n,colEnd:i}=o.data;if(e>=s&&e<=r&&t>=n&&t<=i)return a(d,this,o),!1})),l(u,this).inorder((o=>{const{rowStart:s,rowEnd:r,colStart:n,colEnd:i}=o.data;if(e>=s&&e<=r&&t>=n&&t<=i)return a(g,this,o),!1})),this}}},13250:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(60321);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.MergeCells=s.MergeCells},60321:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458),o(69655),o(94364),o(90458);var r=s(o(85707)),n=o(9458),i=o(29398),l=s(o(55279)),a=s(o(53190)),h=s(o(43255)),c=s(o(86267)),u=s(o(32030)),d=o(47154),g=o(95016),f=o(59350),p=o(36926),m=o(94916),w=o(99275),C=o(59812),v=o(8635);function y(e,t,o){E(e,t),t.set(e,o)}function E(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function S(e,t,o){return e.set(b(e,t),o),o}function R(e,t){return e.get(b(e,t))}function b(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")}i.Hooks.getSingleton().register("beforeMergeCells"),i.Hooks.getSingleton().register("afterMergeCells"),i.Hooks.getSingleton().register("beforeUnmergeCells"),i.Hooks.getSingleton().register("afterUnmergeCells");const _=t.PLUGIN_KEY="mergeCells",T=t.PLUGIN_PRIORITY=150,M=_;var O=new WeakMap,I=new WeakMap,N=new WeakMap,A=new WeakMap,P=new WeakSet;class H extends n.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=P),t.add(e),(0,r.default)(this,"mergedCellsCollection",null),(0,r.default)(this,"autofillCalculations",null),(0,r.default)(this,"selectionCalculations",null),y(this,O,null),y(this,I,{row:0,col:0}),y(this,N,new C.FocusOrder({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),y(this,A,(0,v.createMergeCellRenderer)(this))}static get PLUGIN_KEY(){return _}static get PLUGIN_PRIORITY(){return T}static get DEFAULT_SETTINGS(){return{[n.defaultMainSettingSymbol]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[_]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new l.default(this),this.autofillCalculations=new h.default(this),this.selectionCalculations=new c.default(this),this.addHook("afterInit",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,x).call(e,...o)})),this.addHook("modifyTransformFocus",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,k).call(e,...o)})),this.addHook("modifyTransformStart",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,L).call(e,...o)})),this.addHook("modifyTransformEnd",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,V).call(e,...o)})),this.addHook("beforeSelectionHighlightSet",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,F).call(e,...o)})),this.addHook("beforeSetRangeStart",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,U).call(e,...o)})),this.addHook("beforeSetRangeStartOnly",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,U).call(e,...o)})),this.addHook("beforeSelectionFocusSet",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,j).call(e,...o)})),this.addHook("afterSelectionFocusSet",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,Y).call(e,...o)})),this.addHook("afterSelectionEnd",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,z).call(e,...o)})),this.addHook("modifyGetCellCoords",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,W).call(e,...o)})),this.addHook("modifyGetCoordsElement",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,W).call(e,...o)})),this.addHook("afterIsMultipleSelection",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,D).call(e,...o)})),this.addHook("afterRenderer",(function(){return R(A,e).after(...arguments)})),this.addHook("afterContextMenuDefaultOptions",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,B).call(e,...o)})),this.addHook("afterGetCellMeta",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,G).call(e,...o)})),this.addHook("afterViewportRowCalculatorOverride",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,K).call(e,...o)})),this.addHook("afterViewportColumnCalculatorOverride",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,$).call(e,...o)})),this.addHook("modifyAutofillRange",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,X).call(e,...o)})),this.addHook("afterCreateCol",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,q).call(e,...o)})),this.addHook("afterRemoveCol",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,Q).call(e,...o)})),this.addHook("afterCreateRow",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,J).call(e,...o)})),this.addHook("afterRemoveRow",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,Z).call(e,...o)})),this.addHook("afterChange",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,ee).call(e,...o)})),this.addHook("beforeDrawBorders",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,te).call(e,...o)})),this.addHook("afterDrawSelection",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,oe).call(e,...o)})),this.addHook("beforeRemoveCellClassNames",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,se).call(e,...o)})),this.addHook("beforeBeginEditing",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,re).call(e,...o)})),this.addHook("modifyRowHeightByOverlayName",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return b(P,e,ne).call(e,...o)})),this.addHook("beforeUndoStackChange",((e,t)=>{if("MergeCells"===t)return!1})),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(),super.updatePlugin()}ifChromeForceRepaint(){if(!(0,w.isChrome)())return;const e=[];let t=[];this.mergedCellsCollection.mergedCells.forEach((e=>{const{row:o,rowspan:s}=e;for(let e=o+1;e<o+s;e++)t.push(e)})),t=[...new Set(t)],t.forEach((t=>{const o=this.hot.rowIndexMapper.getRenderableFromVisualIndex(t);this.hot.view._wt.wtOverlays.getOverlays(!0).map((e=>"master"===(null==e?void 0:e.name)?e:e.clone.wtTable)).forEach((t=>{const s=t.getRow(o);s&&(s.style.background=(0,m.getStyle)(s,"backgroundColor").replace(")",", 0.99)"),e.push(s))}))})),this.hot._registerTimeout((()=>{e.forEach((e=>{e.style.background=(0,m.getStyle)(e,"backgroundColor").replace(", 0.99)",")")}))}),1)}validateSetting(e){return!!e&&(a.default.containsNegativeValues(e)?((0,f.warn)(a.default.NEGATIVE_VALUES_WARNING(e)),!1):a.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,f.warn)(a.default.IS_OUT_OF_BOUNDS_WARNING(e)),!1):a.default.isSingleCell(e)?((0,f.warn)(a.default.IS_SINGLE_CELL(e)),!1):!a.default.containsZeroSpan(e)||((0,f.warn)(a.default.ZERO_SPAN_WARNING(e)),!1))}generateFromSettings(){const e=this.getSetting("cells").filter((e=>this.validateSetting(e))),t=this.mergedCellsCollection.filterOverlappingMergeCells(e),o=[];t.forEach((e=>{const{row:t,col:s,rowspan:r,colspan:n}=e,i=this.hot._createCellCoords(t,s),l=this.hot._createCellCoords(t+r-1,s+n-1),a=this.hot._createCellRange(i,i,l);this.mergeRange(a,!0,!0);for(let e=t;e<t+r;e++)for(let r=s;r<s+n;r++)e===t&&r===s||o.push([e,r,null])})),0!==o.length&&this.hot.setDataAtCell(o,void 0,void 0,this.pluginName)}clearCollections(){this.mergedCellsCollection.clear()}canMergeRange(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}mergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");const{from:t,to:o}=e;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}unmergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;const{from:t,to:o}=e;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}mergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=e.getTopStartCorner(),r=e.getBottomEndCorner(),n={row:s.row,col:s.col,rowspan:r.row-s.row+1,colspan:r.col-s.col+1},i=[];let l=null;if(!this.canMergeRange(n,t))return!1;this.hot.runHooks("beforeMergeCells",e,t),(0,p.rangeEach)(0,n.rowspan-1,(e=>{(0,p.rangeEach)(0,n.colspan-1,(t=>{let o=null;i[e]||(i[e]=[]),0===e&&0===t?o=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(n.row),this.hot.toPhysicalColumn(n.col)):this.hot.setCellMeta(n.row+e,n.col+t,"hidden",!0),i[e][t]=o}))})),this.hot.setCellMeta(n.row,n.col,"spanned",!0);return!this.mergedCellsCollection.add(n,t)||(o?l=[n.row,n.col,i]:this.hot.populateFromArray(n.row,n.col,i,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,n,t),l)}unmergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=this.mergedCellsCollection.getWithinRange(e);0!==o.length&&(this.hot.runHooks("beforeUnmergeCells",e,t),(0,d.arrayEach)(o,(e=>{this.mergedCellsCollection.remove(e.row,e.col),(0,p.rangeEach)(0,e.rowspan-1,(t=>{(0,p.rangeEach)(0,e.colspan-1,(o=>{this.hot.removeCellMeta(e.row+t,e.col+o,"hidden"),this.hot.removeCellMeta(e.row+t,e.col+o,"copyable")}))})),this.hot.removeCellMeta(e.row,e.col,"spanned")})),this.hot.runHooks("afterUnmergeCells",e,t),this.hot.render())}toggleMerge(e){const t=this.mergedCellsCollection.get(e.from.row,e.from.col);t.row===e.from.row&&t.col===e.from.col&&t.row+t.rowspan-1===e.to.row&&t.col+t.colspan-1===e.to.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,o,s){const r=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,s);this.mergeRange(this.hot._createCellRange(r,r,n))}unmerge(e,t,o,s){const r=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,s);this.unmergeRange(this.hot._createCellRange(r,r,n))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeLast();e&&!e.isSingleHeader()&&(this.toggleMerge(e),this.hot.render())},runOnlyIf:e=>!e.altKey,group:M})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(M)}modifyViewportRowStart(e,t){const o=this.hot.rowIndexMapper,s=o.getVisualFromRenderableIndex(e.startRow);for(let r=0;r<t;r+=1){const n=this.mergedCellsCollection.get(s,r);if((0,g.isObject)(n)){const s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.row,1));if(s<e.startRow)return e.startRow=s,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const o=this.hot.rowIndexMapper,s=o.getVisualFromRenderableIndex(e.endRow);for(let r=0;r<t;r+=1){const n=this.mergedCellsCollection.get(s,r);if((0,g.isObject)(n)){const s=n.row+n.rowspan-1,r=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,-1));if(r>e.endRow)return e.endRow=r,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const o=this.hot.columnIndexMapper,s=o.getVisualFromRenderableIndex(e.startColumn);for(let r=0;r<t;r+=1){const n=this.mergedCellsCollection.get(r,s);if((0,g.isObject)(n)){const s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.col,1));if(s<e.startColumn)return e.startColumn=s,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const o=this.hot.columnIndexMapper,s=o.getVisualFromRenderableIndex(e.endColumn);for(let r=0;r<t;r+=1){const n=this.mergedCellsCollection.get(r,s);if((0,g.isObject)(n)){const s=n.col+n.colspan-1,r=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,-1));if(r>e.endColumn)return e.endColumn=r,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,o,s){const{rowIndexMapper:r,columnIndexMapper:n}=this.hot;let i,l;i=0===t?r.getNearestNotHiddenIndex(e,1):r.getNearestNotHiddenIndex(e+t-1,-1),l=0===s?n.getNearestNotHiddenIndex(o,1):n.getNearestNotHiddenIndex(o+s-1,-1);return[e>=0?r.getRenderableFromVisualIndex(i):e,o>=0?n.getRenderableFromVisualIndex(l):o]}}function x(){this.generateFromSettings(),this.hot.render()}function D(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeLast(),o=t.getTopStartCorner(),s=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(o.row===e[t].row&&o.col===e[t].col&&s.row===e[t].row+e[t].rowspan-1&&s.col===e[t].col+e[t].colspan-1)return!1}return e}function k(e){R(I,this).row=e.row,R(I,this).col=e.col}function L(e){const t=this.hot.getSelectedRangeLast(),{highlight:o}=t,{columnIndexMapper:s,rowIndexMapper:r}=this.hot;R(O,this)&&(null!==r.getRenderableFromVisualIndex(R(O,this).row)&&(o.row=R(O,this).row),null!==s.getRenderableFromVisualIndex(R(O,this).col)&&(o.col=R(O,this).col),S(O,this,null));const n=this.mergedCellsCollection.get(o.row,o.col);if(!n)return;const i=n.col,l=n.col+n.colspan-1;if(e.col<0){const t=o.col>=i&&o.col<=l?i-1:l,r=s.getNearestNotHiddenIndex(t,-1);e.col=null===r?-this.hot.view.countRenderableColumnsInRange(0,o.col):-Math.max(this.hot.view.countRenderableColumnsInRange(r,o.col)-1,1)}else if(e.col>0){const t=o.col>=i&&o.col<=l?l+1:i,r=s.getNearestNotHiddenIndex(t,1);e.col=null===r?this.hot.view.countRenderableColumnsInRange(o.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(o.col,r)-1,1)}const a=n.row,h=n.row+n.rowspan-1;if(e.row<0){const t=o.row>=a&&o.row<=h?a-1:h,s=r.getNearestNotHiddenIndex(t,-1);e.row=null===s?-this.hot.view.countRenderableRowsInRange(0,o.row):-Math.max(this.hot.view.countRenderableRowsInRange(s,o.row)-1,1)}else if(e.row>0){const t=o.row>=a&&o.row<=h?h+1:a,s=r.getNearestNotHiddenIndex(t,1);e.row=null===s?this.hot.view.countRenderableRowsInRange(o.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(o.row,s)-1,1)}}function V(e){const t=this.hot.getSelectedRangeLast(),o=t.clone(),{to:s}=t,{columnIndexMapper:r,rowIndexMapper:n}=this.hot,i=(e,t)=>{o.expand(this.hot._createCellCoords(e,t));for(let e=0;e<this.mergedCellsCollection.mergedCells.length;e+=1)o.expandByRange(this.mergedCellsCollection.mergedCells[e].getRange())};if(e.col<0){let n=this.mergedCellsCollection.getStartMostColumnIndex(t,s.col)+e.col;i(s.row,n),"E-W"===t.getHorizontalDirection()&&"E-W"===o.getHorizontalDirection()&&(n=o.getTopStartCorner().col);const l=r.getNearestNotHiddenIndex(n,1);null!==l&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(l,s.col)-1,1))}else if(e.col>0){let n=this.mergedCellsCollection.getEndMostColumnIndex(t,s.col)+e.col;i(s.row,n),"W-E"===t.getHorizontalDirection()&&"W-E"===o.getHorizontalDirection()&&(n=o.getBottomEndCorner().col);const l=r.getNearestNotHiddenIndex(n,-1);null!==l&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(s.col,l)-1,1))}if(e.row<0){let r=this.mergedCellsCollection.getTopMostRowIndex(t,s.row)+e.row;i(r,s.col),"S-N"===t.getVerticalDirection()&&"S-N"===o.getVerticalDirection()&&(r=o.getTopStartCorner().row);const l=n.getNearestNotHiddenIndex(r,1);null!==l&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(l,s.row)-1,1))}else if(e.row>0){let r=this.mergedCellsCollection.getBottomMostRowIndex(t,s.row)+e.row;i(r,s.col),"N-S"===t.getVerticalDirection()&&"N-S"===o.getVerticalDirection()&&(r=o.getBottomStartCorner().row);const l=n.getNearestNotHiddenIndex(r,-1);null!==l&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(s.row,l)-1,1))}}function F(){const e=this.hot.getSelectedRangeLast(),{highlight:t}=e;if(this.hot.selection.isSelectedByColumnHeader()||this.hot.selection.isSelectedByRowHeader())return void S(O,this,t.clone());for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);const o=this.mergedCellsCollection.get(t.row,t.col);S(O,this,t.clone()),o&&t.assign(o)}function W(e,t,o,s){if(e<0||t<0)return;const r=this.mergedCellsCollection.get(e,t);if(!r)return;const{row:n,col:i,colspan:l,rowspan:a}=r,h=n,c=i,u=n+a-1,d=i+l-1;if("render"===s&&this.getSetting("virtualized")){const e=this.hot.view.getActiveOverlayName(),t=["top","top_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleRow(),o=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleColumn();return[(0,p.clamp)(t,h,u),(0,p.clamp)(o,c,d),(0,p.clamp)(this.hot.getLastRenderedVisibleRow(),h,u),(0,p.clamp)(this.hot.getLastRenderedVisibleColumn(),c,d)]}return[h,c,u,d]}function B(e){e.items.push({name:"---------"},(0,u.default)(this))}function U(){S(O,this,null)}function j(){if(R(O,this).isCell())return;const e=this.hot.getSelectedRangeLast(),t=e.getVerticalDirection(),o=e.getHorizontalDirection(),s=R(O,this).clone().normalize();R(N,this).setActiveNode(s.row,s.col),R(I,this).row>0||R(I,this).col>0?R(N,this).setPrevNodeAsActive():("E-W"===o&&R(I,this).col<0||"S-N"===t&&R(I,this).row<0)&&R(N,this).setNextNodeAsActive()}function Y(e,t){const o=this.hot.getSelectedRangeLast(),{columnIndexMapper:s,rowIndexMapper:r}=this.hot;let n=null,i=null;if(R(I,this).col<0){const{rowEnd:e,colEnd:t}=R(N,this).getPrevHorizontalNode();i=s.getNearestNotHiddenIndex(t,-1),n=r.getNearestNotHiddenIndex(e,-1)}else if(R(I,this).col>0){const{rowStart:e,colStart:t}=R(N,this).getNextHorizontalNode();i=s.getNearestNotHiddenIndex(t,1),n=r.getNearestNotHiddenIndex(e,1)}else if(R(I,this).row<0){const{rowEnd:e,colEnd:t}=R(N,this).getPrevVerticalNode();i=s.getNearestNotHiddenIndex(t,-1),n=r.getNearestNotHiddenIndex(e,-1)}else if(R(I,this).row>0){const{rowStart:e,colStart:t}=R(N,this).getNextVerticalNode();i=s.getNearestNotHiddenIndex(t,1),n=r.getNearestNotHiddenIndex(e,1)}if(null!==n||null!==i){const s=this.hot._createCellCoords(n,i),r=this.mergedCellsCollection.get(s.row,s.col),l=this.hot.selection.highlight.getFocus();e=s.row,t=s.col,r?o.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(r.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(r.col,1)}):o.highlight.assign(s),l.clear(),l.add(s).commit()}R(N,this).setActiveNode(e,t),S(I,this,{row:0,col:0})}function z(){this.hot.getSelectedRangeLast().isHeader()||R(N,this).buildFocusOrder(this.hot.getSelectedRangeLast())}function G(e,t,o){const s=this.mergedCellsCollection.get(e,t);s&&(s.row!==e||s.col!==t?o.copyable=!1:(o.rowspan=s.rowspan,o.colspan=s.colspan))}function K(e){if(this.getSetting("virtualized"))return;const t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}function $(e){if(this.getSetting("virtualized"))return;const t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}function X(e,t){const o=this.autofillCalculations.getDirection(t,e);if(this.autofillCalculations.dragAreaOverlapsCollections(t,e,o))return t;const s=this.hot._createCellCoords(t[0],t[1]),r=this.hot._createCellCoords(t[2],t[3]),n=this.hot._createCellRange(s,s,r),i=this.mergedCellsCollection.getWithinRange(n);return 0===i.length?e:this.autofillCalculations.snapDragArea(t,e,o,i)}function q(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}function Q(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}function J(e,t,o){"auto"!==o&&this.mergedCellsCollection.shiftCollections("down",e,t)}function Z(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}function ee(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}function te(e,t){if(t&&"area"===t){const t=this.hot.getSelectedRangeLast(),o=this.mergedCellsCollection.getWithinRange(t);(0,d.arrayEach)(o,(o=>{t.getBottomEndCorner().row===o.getLastRow()&&t.getBottomEndCorner().col===o.getLastColumn()&&(e[2]=o.row,e[3]=o.col)}))}}function oe(e,t,o,s){if(o)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,o,s)}function se(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function re(e,t,o,s){if(!(s instanceof MouseEvent))return;const r=this.hot.getSelectedRangeLast(),n=this.mergedCellsCollection.getByRange(r);if(!n)return;const i=this.hot._createCellCoords(n.row,n.col),l=this.hot._createCellCoords(n.row+n.rowspan-1,n.col+n.colspan-1);return 0===this.hot.selection.getLayerLevel()&&r.isEqual(this.hot._createCellRange(i,i,l))}function ne(e,t,o){if(this.hot.getSettings().rowHeaders||"bottom"===o||"bottom_inline_start_corner"===o)return e;let s,r;if("master"===o)s=this.hot.getFirstRenderedVisibleColumn(),r=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(o);s=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),r=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,s))return e;const n=this.hot._createCellCoords(t,s),i=this.hot._createCellCoords(t,r),l=this.hot._createCellRange(n,n,i),a=this.mergedCellsCollection.getWithinRange(l,!0),h=a.reduce(((e,t)=>{let{rowspan:o}=t;return Math.max(e,o)}),1);let c=0;return a.length>1&&a[0].rowspan<h&&(c=h-a[0].rowspan),a.forEach((s=>{let{rowspan:r}=s,n=0;n="top"===o||"top_inline_start_corner"===o?Math.min(h,this.hot.view.countNotHiddenFixedRowsTop()-t):r-c,e=Math.max(null!=e?e:0,b(P,this,ie).call(this,t,n))})),e}function ie(e,t){const o=this.hot.view.getDefaultRowHeight(),s=this.hot.getPlugin("autoRowSize");let r=0;for(let i=e;i<e+t;i++){var n;if(!this.hot.rowIndexMapper.isHidden(i))r+=null!==(n=null==s?void 0:s.getRowHeight(i))&&void 0!==n?n:o}return r}t.MergeCells=H},8635:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMergeCellRenderer=function(e){const{hot:t}=e,{rowIndexMapper:o,columnIndexMapper:r}=t;return{before:function(){},after:function(n,i,l){const a=e.mergedCellsCollection.get(i,l);if(!(0,s.isObject)(a))return n.removeAttribute("rowspan"),n.removeAttribute("colspan"),void(n.style.display="");const{row:h,col:c,colspan:u,rowspan:d}=a,[g,f]=e.translateMergedCellToRenderable(h,d,c,u),p=e.getSetting("virtualized"),m=g-o.getRenderableFromVisualIndex(i)+1,w=f-r.getRenderableFromVisualIndex(l)+1;let C=o.getNearestNotHiddenIndex(h,1),v=r.getNearestNotHiddenIndex(c,1);if(p){const e=t.view.getActiveOverlayName();["top","top_inline_start_corner"].includes(e)||(C=Math.max(C,t.getFirstRenderedVisibleRow())),["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)||(v=Math.max(v,t.getFirstRenderedVisibleColumn()))}const y=Math.min(d,m),E=Math.min(u,w);C===i&&v===l?(n.setAttribute("rowspan",y),n.setAttribute("colspan",E)):(n.removeAttribute("rowspan"),n.removeAttribute("colspan"),n.style.display="none")}}};var s=o(95016)},72733:(e,t,o)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,o){const r=[];if(!1===o)return r;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&r.push(`${s}-${e.getIndexOfColumnInSortQueue(t)+1}`);return r},t.getClassesToRemove=function(e){const t=e.className.split(" "),o=new RegExp(`^${s}-[0-9]{1,2}$`);return t.filter((e=>o.test(e)))},o(15724),o(14846),o(27458);const s="sort"},49350:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(12017);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.MultiColumnSorting=s.MultiColumnSorting},12017:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(97887),i=o(5919),l=o(20986),a=o(94916),h=o(424),c=o(47719),u=o(72733),d=o(9528);const g=t.PLUGIN_KEY="multiColumnSorting",f=t.PLUGIN_PRIORITY=170,p="columnSorting",m=g;(0,i.registerRootComparator)(g,h.rootComparator);class w extends n.ColumnSorting{constructor(){super(...arguments),(0,r.default)(this,"pluginKey",g)}static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return f}isEnabled(){return super.isEnabled()}enablePlugin(){!this.enabled&&this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings()[p]&&((0,c.warnAboutPluginsConflict)(),this.hot.getPlugin(p).disablePlugin()),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,n.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:d.EDITOR_EDIT_GROUP,position:"before",group:m})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(m)}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,u.getClassesToRemove)(e)),!1!==this.enabled&&(0,a.addClass)(e,(0,u.getClassesToAdd)(...o))}onUpdateSettings(e){this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings()[p]&&(0,c.warnAboutPluginsConflict)(),super.onUpdateSettings(e)}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,n.APPEND_COLUMN_CONFIG_STRATEGY))):this.sort(this.getColumnNextConfig(t.col)))}}t.MultiColumnSorting=w},424:(e,t,o)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(o,r){const[,...n]=o,[,...i]=r;return function o(r){const l=e[r],a=t[r],h=n[r],c=i[r],u=a.multiColumnSorting,d=(u.compareFunctionFactory?u.compareFunctionFactory:(0,s.getCompareFunctionFactory)(a.type))(l,a,u)(h,c);if(d===s.DO_NOT_SWAP){const e=r+1;if(void 0!==t[e])return o(e)}return d}(0)}};var s=o(5919)},47719:(e,t,o)=>{"use strict";t.__esModule=!0,t.warnAboutPluginsConflict=function(){(0,s.warn)(r.toSingleLine`Plugins \`columnSorting\` and \`multiColumnSorting\` should not be enabled simultaneously.
|
82
82
|
Only \`multiColumnSorting\` will work. The \`columnSorting\` plugin will be disabled.`)};var s=o(59350),r=o(20944)},38350:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(54873);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.MultipleSelectionHandles=s.MultipleSelectionHandles},54873:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(94916),i=o(99275),l=o(9458);const a=t.PLUGIN_KEY="multipleSelectionHandles",h=t.PLUGIN_PRIORITY=160;class c extends l.BasePlugin{constructor(){super(...arguments),(0,r.default)(this,"dragged",[]),(0,r.default)(this,"lastSetCell",null)}static get PLUGIN_KEY(){return a}static get PLUGIN_PRIORITY(){return h}isEnabled(){return(0,i.isMobileBrowser)()}enablePlugin(){this.enabled||(this.registerListeners(),super.enablePlugin())}registerListeners(){const e=this,{rootElement:t}=this.hot;function o(t){if(1===e.dragged.length)return e.dragged.splice(0,e.dragged.length),!0;const o=e.dragged.indexOf(t);if(-1===o)return!1;0===o?e.dragged=e.dragged.slice(0,1):1===o&&(e.dragged=e.dragged.slice(-1))}this.eventManager.addEventListener(t,"touchstart",(t=>{let o;return(0,n.hasClass)(t.target,"topSelectionHandle-HitArea")?(o=e.hot.getSelectedRangeLast(),e.dragged.push("top"),e.touchStartRange={width:o.getWidth(),height:o.getHeight(),direction:o.getDirection()},t.preventDefault(),!1):(0,n.hasClass)(t.target,"bottomSelectionHandle-HitArea")?(o=e.hot.getSelectedRangeLast(),e.dragged.push("bottom"),e.touchStartRange={width:o.getWidth(),height:o.getHeight(),direction:o.getDirection()},t.preventDefault(),!1):void 0})),this.eventManager.addEventListener(t,"touchend",(t=>(0,n.hasClass)(t.target,"topSelectionHandle-HitArea")?(o.call(e,"top"),e.touchStartRange=void 0,t.preventDefault(),!1):(0,n.hasClass)(t.target,"bottomSelectionHandle-HitArea")?(o.call(e,"bottom"),e.touchStartRange=void 0,t.preventDefault(),!1):void 0)),this.eventManager.addEventListener(t,"touchmove",(t=>{const{rootDocument:o}=this.hot;let s,r,n,i,l,a;if(0===e.dragged.length)return;const h=o.elementFromPoint(t.touches[0].clientX,t.touches[0].clientY);h&&h!==e.lastSetCell&&("TD"!==h.nodeName&&"TH"!==h.nodeName||(s=e.hot.getCoords(h),-1===s.col&&(s.col=0),r=e.hot.getSelectedRangeLast(),n=r.getWidth(),i=r.getHeight(),l=r.getDirection(),1===n&&1===i&&e.hot.selection.setRangeEnd(s),a=e.getCurrentRangeCoords(r,s,e.touchStartRange.direction,l,e.dragged[0]),null!==a.start&&e.hot.selection.setRangeStart(a.start),e.hot.selection.setRangeEnd(a.end),e.lastSetCell=h),t.preventDefault())}))}getCurrentRangeCoords(e,t,o,s,r){const n=e.getTopStartCorner(),i=e.getBottomEndCorner(),l=e.getBottomStartCorner(),a=e.getTopEndCorner();let h={start:null,end:null};switch(o){case"NE-SW":switch(s){case"NE-SW":case"NW-SE":h="top"===r?{start:this.hot._createCellCoords(t.row,e.highlight.col),end:this.hot._createCellCoords(l.row,t.col)}:{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,n.col)};break;case"SE-NW":"bottom"===r&&(h={start:this.hot._createCellCoords(i.row,t.col),end:this.hot._createCellCoords(t.row,n.col)})}break;case"NW-SE":switch(s){case"NE-SW":"top"===r?h={start:t,end:l}:h.end=t;break;case"NW-SE":"top"===r?h={start:t,end:i}:h.end=t;break;case"SE-NW":"top"===r?h={start:t,end:n}:h.end=t;break;case"SW-NE":"top"===r?h={start:t,end:a}:h.end=t}break;case"SW-NE":switch(s){case"NW-SE":h="bottom"===r?{start:this.hot._createCellCoords(t.row,n.col),end:this.hot._createCellCoords(l.row,t.col)}:{start:this.hot._createCellCoords(n.row,t.col),end:this.hot._createCellCoords(t.row,i.col)};break;case"SW-NE":h="top"===r?{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,i.col)}:{start:this.hot._createCellCoords(t.row,n.col),end:this.hot._createCellCoords(n.row,t.col)};break;case"SE-NW":"bottom"===r?h={start:this.hot._createCellCoords(t.row,a.col),end:this.hot._createCellCoords(n.row,t.col)}:"top"===r&&(h={start:l,end:t})}break;case"SE-NW":switch(s){case"NW-SE":case"NE-SW":case"SW-NE":"top"===r&&(h.end=t);break;case"SE-NW":"top"===r?h.end=t:h={start:t,end:n}}}return h}isDragged(){return this.dragged.length>0}}t.MultipleSelectionHandles=c},80790:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(74545);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.NestedHeaders=s.NestedHeaders},74545:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(69655);var r=s(o(85707)),n=o(94916),i=o(36926),l=o(20944),a=o(40892),h=o(59350),c=o(63480),u=o(9458),d=s(o(6779)),g=s(o(43355));function f(e,t,o){p(e,t),t.set(e,o)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,o){return e.set(C(e,t),o),o}function w(e,t){return e.get(C(e,t))}function C(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 v=t.PLUGIN_KEY="nestedHeaders",y=t.PLUGIN_PRIORITY=280;var E=new WeakMap,S=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;class M extends u.BasePlugin{constructor(){var e,t;super(...arguments),p(e=this,t=T),t.add(e),f(this,E,new d.default),f(this,S,null),f(this,R,null),f(this,b,!1),f(this,_,null),(0,r.default)(this,"ghostTable",new g.default(this.hot,((e,t)=>this.getHeaderSettings(e,t)))),(0,r.default)(this,"detectedOverlappedHeaders",!1)}static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}isEnabled(){return!!this.hot.getSettings()[v]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();Array.isArray(t)&&Array.isArray(t[0])||(0,h.warn)(l.toSingleLine`Your Nested Headers plugin configuration is invalid. The settings has to be\x20
|
83
83
|
passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]`),this.addHook("init",(()=>C(T,this,Y).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 C(T,e,z).call(e,...o)})),this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,P).call(e,...o)})),this.addHook("afterOnCellMouseDown",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,H).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 C(T,e,x).call(e,...o)})),this.addHook("beforeOnCellMouseUp",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,D).call(e,...o)})),this.addHook("beforeSelectionHighlightSet",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,k).call(e,...o)})),this.addHook("modifyTransformStart",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,L).call(e,...o)})),this.addHook("afterSelection",(()=>C(T,this,O).call(this))),this.addHook("afterSelectionFocusSet",(()=>C(T,this,O).call(this))),this.addHook("beforeViewportScrollHorizontally",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,I).call(e,...o)})),this.addHook("afterGetColumnHeaderRenderers",(e=>C(T,this,F).call(this,e))),this.addHook("modifyColWidth",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,B).call(e,...o)})),this.addHook("modifyColumnHeaderValue",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,U).call(e,...o)})),this.addHook("beforeHighlightingColumnHeader",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,N).call(e,...o)})),this.addHook("beforeCopy",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,A).call(e,...o)})),this.addHook("beforeSelectColumns",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,V).call(e,...o)})),this.addHook("afterViewportColumnCalculatorOverride",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,W).call(e,...o)})),this.addHook("modifyFocusedElement",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return C(T,e,j).call(e,...o)})),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",(()=>C(T,this,O).call(this))),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",(()=>C(T,this,O).call(this))),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();w(E,this).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=w(E,this).setState(e)),this.detectedOverlappedHeaders&&(0,h.warn)(l.toSingleLine`Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\x20
|
84
|
-
is currently not supported.`),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach(((e,t)=>{const o=!0===e?"hide-column":"show-column";w(E,this).triggerColumnModification(o,t)})),!w(S,this)&&this.enabled&&m(S,this,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe((e=>{e.forEach((e=>{let{op:t,index:o,newValue:s}=e;if("replace"===t){const e=!0===s?"hide-column":"show-column";w(E,this).triggerColumnModification(e,o)}})),this.ghostTable.buildWidthsMap()}))),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),super.updatePlugin()}disablePlugin(){this.clearColspans(),w(E,this).clear(),w(S,this).unsubscribe(),m(S,this,null),this.ghostTable.clear(),super.disablePlugin()}getStateManager(){return w(E,this)}getLayersCount(){return w(E,this).getLayersCount()}getHeaderSettings(e,t){return w(E,this).getHeaderSettings(e,t)}clearColspans(){if(!this.hot.view)return;const{_wt:e}=this.hot.view,t=e.getSetting("columnHeaders").length,o=e.wtTable.THEAD,s=e.wtOverlays.topOverlay.clone.wtTable.THEAD,r=e.wtOverlays.topInlineStartCornerOverlay?e.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null;for(let e=0;e<t;e++){const t=o.childNodes[e];if(!t)break;const i=s.childNodes[e],l=r?r.childNodes[e]:null;for(let e=0,o=t.childNodes.length;e<o;e++)t.childNodes[e].removeAttribute("colspan"),(0,n.removeClass)(t.childNodes[e],"hiddenHeader"),i&&i.childNodes[e]&&(i.childNodes[e].removeAttribute("colspan"),(0,n.removeClass)(i.childNodes[e],"hiddenHeader")),r&&l&&l.childNodes[e]&&(l.childNodes[e].removeAttribute("colspan"),(0,n.removeClass)(l.childNodes[e],"hiddenHeader"))}}headerRendererFactory(e){var t=this;const o=this.hot.view._wt.getSetting("fixedColumnsStart");return(s,r)=>{var i;const{columnIndexMapper:l,view:a}=this.hot;let h=l.getVisualFromRenderableIndex(s);null===h&&(h=s),r.removeAttribute("colspan"),(0,n.removeClass)(r,"hiddenHeader");const{colspan:c,isHidden:u,isPlaceholder:d,headerClassNames:g}=null!==(i=w(E,this).getHeaderSettings(e,h))&&void 0!==i?i:{label:""};if(d||u)(0,n.addClass)(r,"hiddenHeader");else if(c>1){var f,p;const{wtOverlays:e}=a._wt,t=null===(f=e.topInlineStartCornerOverlay)||void 0===f?void 0:f.clone.wtTable.THEAD.contains(r),n=null===(p=e.inlineStartOverlay)||void 0===p?void 0:p.clone.wtTable.THEAD.contains(r),i=t||n?Math.min(c,o-s):c;i>1&&r.setAttribute("colspan",i)}if(this.hot.view.appendColHeader(h,r,(function(){return t.getColumnHeaderValue(...arguments)}),e),!d&&!u){const e=r.querySelector("div.relative");e&&g&&g.length>0&&((0,n.removeClass)(e,this.hot.getColumnMeta(h).headerClassName),(0,n.addClass)(e,g))}}}getColumnHeaderValue(e,t){var o;const{isHidden:s,isPlaceholder:r}=null!==(o=w(E,this).getHeaderSettings(t,e))&&void 0!==o?o:{};return r||s?"":this.hot.getColHeader(e,t)}destroy(){m(E,this,null),null!==w(S,this)&&(w(S,this).unsubscribe(),m(S,this,null)),super.destroy()}_getHeaderTreeNodeDataByCoords(e){if(!(e.row>=0||e.col<0))return w(E,this).getHeaderTreeNodeData(e.row,e.col)}}function O(){var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeLast();if(!t)return;const{highlight:o}=t;if(o.isHeader()&&o.col>=0){const e=w(E,this).findLeftMostColumnIndex(o.row,o.col),t=this.hot.selection.highlight.getFocus();t.visualCellRange.highlight.col=e,t.visualCellRange.from.col=e,t.visualCellRange.to.col=e,t.commit()}}function I(e,t){var o;const s=this.hot.getSelectedRangeLast();if(!s)return e;const{highlight:r}=s,{navigableHeaders:n}=this.hot.getSettings(),i=this.hot.selection.isSelectedByColumnHeader(),l=n?r.row:null===(o=w(_,this))||void 0===o?void 0:o.row,a=i?e:r.col,h=l<0&&a>=0;if(m(_,this,null),!h)return e;const c=this.hot.getFirstFullyVisibleColumn(),u=this.hot.getLastFullyVisibleColumn(),d=u-c+1,g=w(E,this).findLeftMostColumnIndex(l,a),f=w(E,this).findRightMostColumnIndex(l,a),p=f-g+1;if(g<c&&f>u)return g;if(i){let e=null;return g>=c&&f>u?p>d?(t.value="start",e=g):(t.value="end",e=f):g<c&&f<=u&&(p>d?(t.value="end",e=f):(t.value="start",e=g)),e}return g<=c?g:f}function N(e,t,o){const s=w(E,this).getHeaderTreeNodeData(t,e);if(!s)return e;const{columnCursor:r,selectionType:n,selectionWidth:i}=o,{isRoot:l,colspan:a}=w(E,this).getHeaderSettings(t,e);if(n===c.HEADER_TYPE){if(!l)return s.columnIndex}else if(n===c.ACTIVE_HEADER_TYPE&&(a>i-r||!l))return null;return e}function A(e,t,o){let{columnHeadersCount:s}=o;if(0!==s)for(let o=0;o<t.length;o++){const{startRow:s,startCol:n,endRow:i,endCol:l}=t[o],a=i-s+1;if(s>=0||1===n-l+1)break;for(let t=n;t<=l;t++)for(let o=s;o<=i;o++){var r;const s=a+o,i=t-n;if(0===i)continue;!1===(null===(r=w(E,this).getHeaderTreeNodeData(o,t))||void 0===r?void 0:r.isRoot)&&(e[s][i]="")}}}function P(e,t,o,s){this._getHeaderTreeNodeDataByCoords(t)&&(s.column=!0)}function H(e,t){const o=this._getHeaderTreeNodeDataByCoords(t);if(!o)return;m(R,this,t.clone()),m(b,this,!0);const{selection:s}=this.hot,r=s.isSelected()?s.getSelectedRange().current():null,n=[],{columnIndex:i,origColspan:l}=o,h=!s.inInSelection(t);e.shiftKey&&r?t.col<r.from.col?n.push(r.getTopEndCorner().col,i,t.row):t.col>r.from.col?n.push(r.getTopStartCorner().col,i+l-1,t.row):n.push(i,i+l-1,t.row):((0,a.isLeftClick)(e)||(0,a.isRightClick)(e)&&h||(0,a.isTouchEvent)(e))&&n.push(i,i+l-1,t.row),s.selectColumns(...n)}function x(e,t,o,s){if(!this.hot.view.isMouseDown()||s.column)return;const r=this._getHeaderTreeNodeDataByCoords(t);if(!r)return;const{columnIndex:n,origColspan:l}=r,a=this.hot.getSelectedRangeLast(),h=a.getTopStartCorner(),c=a.getBottomEndCorner(),{from:u}=a;s.column=!0,s.cell=!0;const d=[],g=(0,i.clamp)(t.row,-1/0,-1);t.col<u.col?d.push(c.col,n,g):t.col>u.col?d.push(h.col,n+l-1,g):d.push(n,n+l-1,g),this.hot.selection.selectColumns(...d)}function D(){m(b,this,!1)}function k(){const{navigableHeaders:e}=this.hot.getSettings();if(!this.hot.view.isMouseDown()||!w(b,this)||!e)return;const t=this.hot.getSelectedRangeLast(),o=t.getTopStartCorner().col,s=t.getBottomEndCorner().col,{columnIndex:r,origColspan:n}=w(E,this).getHeaderTreeNodeData(w(R,this).row,w(R,this).col);if(t.setHighlight(w(R,this)),n>t.getWidth()||r<o||r+n-1>s){const e=w(E,this).findTopMostEntireHeaderLevel((0,i.clamp)(o,r,r+n-1),(0,i.clamp)(s,r,r+n-1));t.highlight.row=e,t.highlight.col=t.from.col}}function L(e){const{highlight:t}=this.hot.getSelectedRangeLast(),o=this.hot._createCellCoords(t.row+e.row,t.col+e.col);if(!(o.isHeader()&&o.col>=0))return;const s=w(E,this).findLeftMostColumnIndex(o.row,o.col),r=w(E,this).findRightMostColumnIndex(o.row,o.col);if(e.col<0){const o=t.col>=s&&t.col<=r?s-1:r,n=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o,-1);e.col=null===n?-this.hot.view.countRenderableColumnsInRange(0,t.col):-Math.max(this.hot.view.countRenderableColumnsInRange(n,t.col)-1,1)}else if(e.col>0){const o=t.col>=s&&t.col<=r?r+1:s,n=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o,1);e.col=null===n?this.hot.view.countRenderableColumnsInRange(t.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(t.col,n)-1,1)}}function V(e,t,o){const s=e.row,r=this._getHeaderTreeNodeDataByCoords({row:s,col:e.col}),n=this._getHeaderTreeNodeDataByCoords({row:s,col:t.col});m(_,this,o.clone()),t.col<e.col?(r&&(e.col=r.columnIndex+r.origColspan-1),n&&(t.col=n.columnIndex)):t.col>=e.col&&(r&&(e.col=r.columnIndex),n&&(t.col=n.columnIndex+n.origColspan-1))}function F(e){e.length=0;for(let t=0;t<w(E,this).getLayersCount();t++)e.push(this.headerRendererFactory(t))}function W(e){const t=w(E,this).getLayersCount();let o=e.startColumn,s=!!t;for(let r=0;r<t;r++){const t=w(E,this).findLeftMostColumnIndex(r,e.startColumn),n=this.hot.columnIndexMapper.getRenderableFromVisualIndex(t);if(t>=0&&(s=!1),(0,i.isNumeric)(n)&&n<e.startColumn){o=n;break}}e.startColumn=s?w(E,this).getHeaderTreeNodeData(0,o).columnIndex:o}function B(e,t){const o=this.ghostTable.getWidth(t);return e>o?e:o}function U(e,t,o){var s;const{label:r}=null!==(s=w(E,this).getHeaderTreeNodeData(o,t))&&void 0!==s?s:{label:""};return r}function j(e,t){if(e<0)return this.hot.getCell(e,w(E,this).findLeftMostColumnIndex(e,t),!0)}function Y(){this.updatePlugin()}function z(e,t){t||this.updatePlugin()}t.NestedHeaders=M},48297:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=o(47154),n=s(o(6524));function i(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function l(e,t){return e.get(a(e,t))}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 WeakMap;t.default=class{constructor(e){var t,o,s;i(this,h,new Map),i(this,c,new Map),i(this,u,null),o=this,s=e,(t=u).set(a(t,o),s)}getRoots(){return Array.from(l(h,this).values())}getRootByColumn(e){let t;return l(c,this).has(e)&&(t=l(h,this).get(l(c,this).get(e))),t}getNode(e,t){const o=this.getRootByColumn(t);if(!o)return;const s=t-l(c,this).get(t);let r,n=0;return o.walkDown((o=>{const{data:{origColspan:i,headerLevel:l}}=o;if(e===l){if(s>=n&&s<=n+i-1)return r=o,r.data.isRoot=t===r.data.columnIndex,!1;n+=i}})),r}rebuildTreeIndex(){let e=0;l(c,this).clear(),(0,r.arrayEach)(l(h,this),(t=>{let[,{data:{colspan:o}}]=t;for(let t=e;t<e+o;t++)l(c,this).set(t,e);e+=o}))}buildTree(){this.clear();const e=l(u,this).getColumnsCount();let t=0;for(;t<e;){const e=l(u,this).getHeaderSettings(0,t),o=new n.default;l(h,this).set(t,o),this.buildLeaves(o,t,0,e.origColspan),t+=e.origColspan}this.rebuildTreeIndex()}buildLeaves(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const i=l(u,this).getHeadersSettings(o,t,s);o+=1,(0,r.arrayEach)(i,(s=>{const r={...s,headerLevel:o-1,columnIndex:t};let i;1===o?(e.data=r,i=e):(i=new n.default(r),e.addChild(i)),o<l(u,this).getLayersCount()&&this.buildLeaves(i,t,o,s.origColspan),t+=s.origColspan}))}clear(){l(h,this).clear(),l(c,this).clear()}}},6779:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(94364);var r=o(47154),n=s(o(24863)),i=s(o(48297)),l=o(45038),a=o(86905),h=o(6524);function c(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function u(e,t,o){return e.set(g(e,t),o),o}function d(e,t){return e.get(g(e,t))}function g(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 f=new WeakMap,p=new WeakMap,m=new WeakMap;t.default=class{constructor(){c(this,f,new n.default),c(this,p,new i.default(d(f,this))),c(this,m,[[]])}setState(e){d(f,this).setData(e);let t=!1;try{d(p,this).buildTree()}catch(e){d(p,this).clear(),d(f,this).clear(),t=!0}return u(m,this,(0,a.generateMatrix)(d(p,this).getRoots())),t}setColumnsLimit(e){d(f,this).setColumnsLimit(e)}mergeStateWith(e){const t=(0,r.arrayMap)(e,(e=>{let{row:t,...o}=e;return{row:t<0?this.rowCoordsToLevel(t):t,...o}}));d(f,this).mergeWith(t),d(p,this).buildTree(),u(m,this,(0,a.generateMatrix)(d(p,this).getRoots()))}mapState(e){d(f,this).map(e),d(p,this).buildTree(),u(m,this,(0,a.generateMatrix)(d(p,this).getRoots()))}mapNodes(e){return(0,r.arrayReduce)(d(p,this).getRoots(),((t,o)=>(o.walkDown((o=>{const s=e(o.data);void 0!==s&&t.push(s)})),t)),[])}triggerNodeModification(e,t,o){t<0&&(t=this.rowCoordsToLevel(t));const s=d(p,this).getNode(t,o);let r;return s&&(r=(0,l.triggerNodeModification)(e,s,o),u(m,this,(0,a.generateMatrix)(d(p,this).getRoots()))),r}triggerColumnModification(e,t){return this.triggerNodeModification(e,-1,t)}rowCoordsToLevel(e){if(e>=0)return null;const t=e+Math.max(this.getLayersCount(),1);return t<0?null:t}levelToRowCoords(e){if(e<0)return null;const t=e-Math.max(this.getLayersCount(),1);return t>=0?null:t}getHeaderSettings(e,t){var o,s;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(o=null===(s=d(m,this)[e])||void 0===s?void 0:s[t])&&void 0!==o?o:null}getHeaderTreeNodeData(e,t){const o=this.getHeaderTreeNode(e,t);return o?{...o.data}:null}getHeaderTreeNode(e,t){if(e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount())return null;const o=d(p,this).getNode(e,t);return o||null}findTopMostEntireHeaderLevel(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const s=o-e+1;let r=!1,n=null;for(let t=e;t<=o;t++){const i=d(p,this).getRootByColumn(t);if(!i)break;r=!0,i.walkDown((t=>{const{columnIndex:r,headerLevel:i,origColspan:l,isHidden:a}=t.data;a||l<=s&&r>=e&&r+l-1<=o&&(null===n||i<n)&&(n=i)}),h.TRAVERSAL_DF_PRE)}return r&&null===n?-1:this.levelToRowCoords(null!==(t=n)&&void 0!==t?t:0)}findLeftMostColumnIndex(e,t){var o;const{isRoot:s}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0};if(s)return t;let r=t-1;for(;r>=0;){var n;const{isRoot:t}=null!==(n=this.getHeaderSettings(e,r))&&void 0!==n?n:{isRoot:!0};if(t)break;r-=1}return r}findRightMostColumnIndex(e,t){var o;const{isRoot:s,origColspan:r}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0,origColspan:1};if(s)return t+r-1;let n=t+1;for(;n<this.getColumnsCount();){var i;const{isRoot:t}=null!==(i=this.getHeaderSettings(e,n))&&void 0!==i?i:{isRoot:!0};if(t)break;n+=1}return n-1}getLayersCount(){return d(f,this).getLayersCount()}getColumnsCount(){return d(f,this).getColumnsCount()}clear(){u(m,this,[]),d(f,this).clear(),d(p,this).clear()}}},86905:(e,t,o)=>{"use strict";t.__esModule=!0,t.generateMatrix=function(e){const t=[];return(0,s.arrayEach)(e,(e=>{e.walkDown((e=>{const o=e.data,{origColspan:s,columnIndex:i,headerLevel:l,crossHiddenColumns:a}=o,h=function(e,t){let o;Array.isArray(e[t])?o=e[t]:(o=[],e[t]=o);return o}(t,l);let c=!1;for(let e=i;e<i+s;e++){if(a.includes(e)||c)h.push((0,r.createPlaceholderHeaderSettings)(o));else{const e=n(o);e.isRoot=!0,h.push(e),c=!0}}}))})),t},o(15724);var s=o(47154),r=o(63750);function n(e){const{crossHiddenColumns:t,...o}=(0,r.createDefaultHeaderSettings)(e);return o}},99:(e,t,o)=>{"use strict";t.__esModule=!0,t.collapseNode=function e(t){var o;const{data:i,childs:l}=t;if(i.isCollapsed||i.isHidden||i.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,n.isNodeReflectsFirstChildColspan)(t))return e(l[0]);i.isCollapsed=!0;const a=l.slice(1),h=new Set;if(a.length>0)(0,s.arrayEach)(a,(e=>{(0,n.traverseHiddenNodeColumnIndexes)(e,(e=>{h.add(e)})),e.data.clonedTree=e.cloneTree(),e.walkDown((e=>{let{data:t}=e;t.isHidden=!0}))}));else{const{origColspan:e,columnIndex:t}=i;for(let o=1;o<e;o++){const e=t+o;h.add(e)}}const c=i.colspan-(null!==(o=(0,n.getFirstChildProperty)(t,"colspan"))&&void 0!==o?o:1);return t.walkUp((e=>{const{data:t}=e;t.colspan-=c,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,n.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,n.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:()=>(0,r.expandNode)(t),affectedColumns:Array.from(h),colspanCompensation:c}},o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var s=o(47154),r=o(88188),n=o(65302)},88188:(e,t,o)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:o,childs:i}=t;if(!o.isCollapsed||o.isHidden||o.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,n.isNodeReflectsFirstChildColspan)(t))return e(i[0]);o.isCollapsed=!1;const l=i.slice(1),a=new Set;let h=0;if(l.length>0)(0,s.arrayEach)(l,(e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,n.traverseHiddenNodeColumnIndexes)(e,(e=>{a.add(e)}))}));else{const{colspan:e,origColspan:t,columnIndex:s}=o;h=t-e;for(let e=1;e<t;e++)a.add(s+e)}return t.walkUp((e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,n.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,n.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:()=>(0,r.collapseNode)(t),affectedColumns:Array.from(a),colspanCompensation:h}},o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var s=o(47154),r=o(99),n=o(65302)},73358:(e,t,o)=>{"use strict";t.__esModule=!0,t.hideColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(s.toSingleLine`The passed node is not the last node on the tree. Only for\x20
|
84
|
+
is currently not supported.`),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach(((e,t)=>{const o=!0===e?"hide-column":"show-column";w(E,this).triggerColumnModification(o,t)})),!w(S,this)&&this.enabled&&m(S,this,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe((e=>{e.forEach((e=>{let{op:t,index:o,newValue:s}=e;if("replace"===t){const e=!0===s?"hide-column":"show-column";w(E,this).triggerColumnModification(e,o)}})),this.ghostTable.buildWidthsMap()}))),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),super.updatePlugin()}disablePlugin(){this.clearColspans(),w(E,this).clear(),w(S,this).unsubscribe(),m(S,this,null),this.ghostTable.clear(),super.disablePlugin()}getStateManager(){return w(E,this)}getLayersCount(){return w(E,this).getLayersCount()}getHeaderSettings(e,t){return w(E,this).getHeaderSettings(e,t)}clearColspans(){if(!this.hot.view)return;const{_wt:e}=this.hot.view,t=e.getSetting("columnHeaders").length,o=e.wtTable.THEAD,s=e.wtOverlays.topOverlay.clone.wtTable.THEAD,r=e.wtOverlays.topInlineStartCornerOverlay?e.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null;for(let e=0;e<t;e++){const t=o.childNodes[e];if(!t)break;const i=s.childNodes[e],l=r?r.childNodes[e]:null;for(let e=0,o=t.childNodes.length;e<o;e++)t.childNodes[e].removeAttribute("colspan"),(0,n.removeClass)(t.childNodes[e],"hiddenHeader"),i&&i.childNodes[e]&&(i.childNodes[e].removeAttribute("colspan"),(0,n.removeClass)(i.childNodes[e],"hiddenHeader")),r&&l&&l.childNodes[e]&&(l.childNodes[e].removeAttribute("colspan"),(0,n.removeClass)(l.childNodes[e],"hiddenHeader"))}}headerRendererFactory(e){var t=this;const o=this.hot.view._wt.getSetting("fixedColumnsStart");return(s,r)=>{var i;const{columnIndexMapper:l,view:a}=this.hot;let h=l.getVisualFromRenderableIndex(s);null===h&&(h=s),r.removeAttribute("colspan"),(0,n.removeClass)(r,"hiddenHeader");const{colspan:c,isHidden:u,isPlaceholder:d,headerClassNames:g}=null!==(i=w(E,this).getHeaderSettings(e,h))&&void 0!==i?i:{label:""};if(d||u)(0,n.addClass)(r,"hiddenHeader");else if(c>1){var f,p;const{wtOverlays:e}=a._wt,t=null===(f=e.topInlineStartCornerOverlay)||void 0===f?void 0:f.clone.wtTable.THEAD.contains(r),n=null===(p=e.inlineStartOverlay)||void 0===p?void 0:p.clone.wtTable.THEAD.contains(r),i=t||n?Math.min(c,o-s):c;i>1&&r.setAttribute("colspan",i)}if(this.hot.view.appendColHeader(h,r,(function(){return t.getColumnHeaderValue(...arguments)}),e),!d&&!u){const e=r.querySelector("div.relative");e&&g&&g.length>0&&((0,n.removeClass)(e,this.hot.getColumnMeta(h).headerClassName),(0,n.addClass)(e,g))}}}getColumnHeaderValue(e,t){var o;const{isHidden:s,isPlaceholder:r}=null!==(o=w(E,this).getHeaderSettings(t,e))&&void 0!==o?o:{};return r||s?"":this.hot.getColHeader(e,t)}destroy(){m(E,this,null),null!==w(S,this)&&(w(S,this).unsubscribe(),m(S,this,null)),super.destroy()}_getHeaderTreeNodeDataByCoords(e){if(!(e.row>=0||e.col<0))return w(E,this).getHeaderTreeNodeData(e.row,e.col)}}function O(){var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeLast();if(!t)return;const{highlight:o}=t;if(o.isHeader()&&o.col>=0){const e=w(E,this).findLeftMostColumnIndex(o.row,o.col),t=this.hot.selection.highlight.getFocus();t.visualCellRange.highlight.col=e,t.visualCellRange.from.col=e,t.visualCellRange.to.col=e,t.commit()}}function I(e,t){var o;const s=this.hot.getSelectedRangeLast();if(!s)return e;const{highlight:r}=s,{navigableHeaders:n}=this.hot.getSettings(),i=this.hot.selection.isSelectedByColumnHeader(),l=n?r.row:null===(o=w(_,this))||void 0===o?void 0:o.row,a=i?e:r.col,h=l<0&&a>=0;if(m(_,this,null),!h)return e;const c=this.hot.getFirstFullyVisibleColumn(),u=this.hot.getLastFullyVisibleColumn(),d=u-c+1,g=w(E,this).findLeftMostColumnIndex(l,a),f=w(E,this).findRightMostColumnIndex(l,a),p=f-g+1;if(g<c&&f>u)return g;if(i){let e=null;return g>=c&&f>u?p>d?(t.value="start",e=g):(t.value="end",e=f):g<c&&f<=u&&(p>d?(t.value="end",e=f):(t.value="start",e=g)),e}return g<=c?g:f}function N(e,t,o){const s=w(E,this).getHeaderTreeNodeData(t,e);if(!s)return e;const{columnCursor:r,selectionType:n,selectionWidth:i}=o,{isRoot:l,colspan:a}=w(E,this).getHeaderSettings(t,e);if(n===c.HEADER_TYPE){if(!l)return s.columnIndex}else if(n===c.ACTIVE_HEADER_TYPE&&(a>i-r||!l))return null;return e}function A(e,t,o){let{columnHeadersCount:s}=o;if(0!==s)for(let o=0;o<t.length;o++){const{startRow:s,startCol:n,endRow:i,endCol:l}=t[o],a=i-s+1;if(s>=0||1===n-l+1)break;for(let t=n;t<=l;t++)for(let o=s;o<=i;o++){var r;const s=a+o,i=t-n;if(0===i)continue;!1===(null===(r=w(E,this).getHeaderTreeNodeData(o,t))||void 0===r?void 0:r.isRoot)&&(e[s][i]="")}}}function P(e,t,o,s){this._getHeaderTreeNodeDataByCoords(t)&&(s.column=!0)}function H(e,t){const o=this._getHeaderTreeNodeDataByCoords(t);if(!o)return;m(R,this,t.clone()),m(b,this,!0);const{selection:s}=this.hot,r=s.isSelected()?s.getSelectedRange().current():null,n=[],{columnIndex:i,origColspan:l}=o,h=!s.inInSelection(t);e.shiftKey&&r?t.col<r.from.col?n.push(r.getTopEndCorner().col,i,t.row):t.col>r.from.col?n.push(r.getTopStartCorner().col,i+l-1,t.row):n.push(i,i+l-1,t.row):((0,a.isLeftClick)(e)||(0,a.isRightClick)(e)&&h||(0,a.isTouchEvent)(e))&&n.push(i,i+l-1,t.row),s.selectColumns(...n)}function x(e,t,o,s){if(!this.hot.view.isMouseDown()||s.column)return;const r=this._getHeaderTreeNodeDataByCoords(t);if(!r)return;const{columnIndex:n,origColspan:l}=r,a=this.hot.getSelectedRangeLast(),h=a.getTopStartCorner(),c=a.getBottomEndCorner(),{from:u}=a;s.column=!0,s.cell=!0;const d=[],g=(0,i.clamp)(t.row,-1/0,-1);t.col<u.col?d.push(c.col,n,g):t.col>u.col?d.push(h.col,n+l-1,g):d.push(n,n+l-1,g),this.hot.selection.selectColumns(...d)}function D(){m(b,this,!1)}function k(){const{navigableHeaders:e}=this.hot.getSettings();if(!this.hot.view.isMouseDown()||!w(b,this)||!e)return;const t=this.hot.getSelectedRangeLast(),o=t.getTopStartCorner().col,s=t.getBottomEndCorner().col,{columnIndex:r,origColspan:n}=w(E,this).getHeaderTreeNodeData(w(R,this).row,w(R,this).col);if(t.setHighlight(w(R,this)),n>t.getWidth()||r<o||r+n-1>s){const e=w(E,this).findTopMostEntireHeaderLevel((0,i.clamp)(o,r,r+n-1),(0,i.clamp)(s,r,r+n-1));t.highlight.row=e,t.highlight.col=t.from.col}}function L(e){const{highlight:t}=this.hot.getSelectedRangeLast(),o=this.hot._createCellCoords(t.row+e.row,t.col+e.col);if(!(o.isHeader()&&o.col>=0))return;const s=w(E,this).findLeftMostColumnIndex(o.row,o.col),r=w(E,this).findRightMostColumnIndex(o.row,o.col);if(e.col<0){const o=t.col>=s&&t.col<=r?s-1:r,n=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o,-1);e.col=null===n?-this.hot.view.countRenderableColumnsInRange(0,t.col):-Math.max(this.hot.view.countRenderableColumnsInRange(n,t.col)-1,1)}else if(e.col>0){const o=t.col>=s&&t.col<=r?r+1:s,n=this.hot.columnIndexMapper.getNearestNotHiddenIndex(o,1);e.col=null===n?this.hot.view.countRenderableColumnsInRange(t.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(t.col,n)-1,1)}}function V(e,t,o){const s=e.row,r=this._getHeaderTreeNodeDataByCoords({row:s,col:e.col}),n=this._getHeaderTreeNodeDataByCoords({row:s,col:t.col});m(_,this,o.clone()),t.col<e.col?(r&&(e.col=r.columnIndex+r.origColspan-1),n&&(t.col=n.columnIndex)):t.col>=e.col&&(r&&(e.col=r.columnIndex),n&&(t.col=n.columnIndex+n.origColspan-1))}function F(e){e.length=0;for(let t=0;t<w(E,this).getLayersCount();t++)e.push(this.headerRendererFactory(t))}function W(e){const t=w(E,this).getLayersCount();let o=e.startColumn,s=!!t;for(let r=0;r<t;r++){const t=w(E,this).findLeftMostColumnIndex(r,e.startColumn),n=this.hot.columnIndexMapper.getRenderableFromVisualIndex(t);if(t>=0&&(s=!1),(0,i.isNumeric)(n)&&n<e.startColumn){o=n;break}}e.startColumn=s?w(E,this).getHeaderTreeNodeData(0,o).columnIndex:o}function B(e,t){const o=this.ghostTable.getWidth(t);return e>o?e:o}function U(e,t,o){var s;const{label:r}=null!==(s=w(E,this).getHeaderTreeNodeData(o,t))&&void 0!==s?s:{label:""};return r}function j(e,t){if(e<0)return this.hot.getCell(e,w(E,this).findLeftMostColumnIndex(e,t),!0)}function Y(){this.updatePlugin()}function z(e,t){t||this.updatePlugin()}t.NestedHeaders=M},48297:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=o(47154),n=s(o(6524));function i(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function l(e,t){return e.get(a(e,t))}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 WeakMap;t.default=class{constructor(e){var t,o,s;i(this,h,new Map),i(this,c,new Map),i(this,u,null),o=this,s=e,(t=u).set(a(t,o),s)}getRoots(){return Array.from(l(h,this).values())}getRootByColumn(e){let t;return l(c,this).has(e)&&(t=l(h,this).get(l(c,this).get(e))),t}getNode(e,t){const o=this.getRootByColumn(t);if(!o)return;const s=t-l(c,this).get(t);let r,n=0;return o.walkDown((o=>{const{data:{origColspan:i,headerLevel:l}}=o;if(e===l){if(s>=n&&s<=n+i-1)return r=o,r.data.isRoot=t===r.data.columnIndex,!1;n+=i}})),r}rebuildTreeIndex(){let e=0;l(c,this).clear(),(0,r.arrayEach)(l(h,this),(t=>{let[,{data:{colspan:o}}]=t;for(let t=e;t<e+o;t++)l(c,this).set(t,e);e+=o}))}buildTree(){this.clear();const e=l(u,this).getColumnsCount();let t=0;for(;t<e;){const e=l(u,this).getHeaderSettings(0,t),o=new n.default;l(h,this).set(t,o),this.buildLeaves(o,t,0,e.origColspan),t+=e.origColspan}this.rebuildTreeIndex()}buildLeaves(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const i=l(u,this).getHeadersSettings(o,t,s);o+=1,(0,r.arrayEach)(i,(s=>{const r={...s,headerLevel:o-1,columnIndex:t};let i;1===o?(e.data=r,i=e):(i=new n.default(r),e.addChild(i)),o<l(u,this).getLayersCount()&&this.buildLeaves(i,t,o,s.origColspan),t+=s.origColspan}))}clear(){l(h,this).clear(),l(c,this).clear()}}},6779:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(94364);var r=o(47154),n=s(o(24863)),i=s(o(48297)),l=o(45038),a=o(86905),h=o(6524);function c(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function u(e,t,o){return e.set(g(e,t),o),o}function d(e,t){return e.get(g(e,t))}function g(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 f=new WeakMap,p=new WeakMap,m=new WeakMap;t.default=class{constructor(){c(this,f,new n.default),c(this,p,new i.default(d(f,this))),c(this,m,[[]])}setState(e){d(f,this).setData(e);let t=!1;try{d(p,this).buildTree()}catch(e){d(p,this).clear(),d(f,this).clear(),t=!0}return u(m,this,(0,a.generateMatrix)(d(p,this).getRoots())),t}setColumnsLimit(e){d(f,this).setColumnsLimit(e)}mergeStateWith(e){const t=(0,r.arrayMap)(e,(e=>{let{row:t,...o}=e;return{row:t<0?this.rowCoordsToLevel(t):t,...o}}));d(f,this).mergeWith(t),d(p,this).buildTree(),u(m,this,(0,a.generateMatrix)(d(p,this).getRoots()))}mapState(e){d(f,this).map(e),d(p,this).buildTree(),u(m,this,(0,a.generateMatrix)(d(p,this).getRoots()))}mapNodes(e){return(0,r.arrayReduce)(d(p,this).getRoots(),((t,o)=>(o.walkDown((o=>{const s=e(o.data);void 0!==s&&t.push(s)})),t)),[])}triggerNodeModification(e,t,o){t<0&&(t=this.rowCoordsToLevel(t));const s=d(p,this).getNode(t,o);let r;return s&&(r=(0,l.triggerNodeModification)(e,s,o),u(m,this,(0,a.generateMatrix)(d(p,this).getRoots()))),r}triggerColumnModification(e,t){return this.triggerNodeModification(e,-1,t)}rowCoordsToLevel(e){if(e>=0)return null;const t=e+Math.max(this.getLayersCount(),1);return t<0?null:t}levelToRowCoords(e){if(e<0)return null;const t=e-Math.max(this.getLayersCount(),1);return t>=0?null:t}getHeaderSettings(e,t){var o,s;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(o=null===(s=d(m,this)[e])||void 0===s?void 0:s[t])&&void 0!==o?o:null}getHeaderTreeNodeData(e,t){const o=this.getHeaderTreeNode(e,t);return o?{...o.data}:null}getHeaderTreeNode(e,t){if(e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount())return null;const o=d(p,this).getNode(e,t);return o||null}findTopMostEntireHeaderLevel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const o=t-e+1;let s=!1,r=null;for(let n=e;n<=t;n++){const i=d(p,this).getRootByColumn(n);if(!i)break;s=!0,i.walkDown((s=>{const{columnIndex:n,headerLevel:i,origColspan:l,isHidden:a}=s.data;a||l<=o&&n>=e&&n+l-1<=t&&(null===r||i<r)&&(r=i)}),h.TRAVERSAL_DF_PRE)}return s&&null===r?-1:this.levelToRowCoords(null!=r?r:0)}findLeftMostColumnIndex(e,t){var o;const{isRoot:s}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0};if(s)return t;let r=t-1;for(;r>=0;){var n;const{isRoot:t}=null!==(n=this.getHeaderSettings(e,r))&&void 0!==n?n:{isRoot:!0};if(t)break;r-=1}return r}findRightMostColumnIndex(e,t){var o;const{isRoot:s,origColspan:r}=null!==(o=this.getHeaderSettings(e,t))&&void 0!==o?o:{isRoot:!0,origColspan:1};if(s)return t+r-1;let n=t+1;for(;n<this.getColumnsCount();){var i;const{isRoot:t}=null!==(i=this.getHeaderSettings(e,n))&&void 0!==i?i:{isRoot:!0};if(t)break;n+=1}return n-1}getLayersCount(){return d(f,this).getLayersCount()}getColumnsCount(){return d(f,this).getColumnsCount()}clear(){u(m,this,[]),d(f,this).clear(),d(p,this).clear()}}},86905:(e,t,o)=>{"use strict";t.__esModule=!0,t.generateMatrix=function(e){const t=[];return(0,s.arrayEach)(e,(e=>{e.walkDown((e=>{const o=e.data,{origColspan:s,columnIndex:i,headerLevel:l,crossHiddenColumns:a}=o,h=function(e,t){let o;Array.isArray(e[t])?o=e[t]:(o=[],e[t]=o);return o}(t,l);let c=!1;for(let e=i;e<i+s;e++){if(a.includes(e)||c)h.push((0,r.createPlaceholderHeaderSettings)(o));else{const e=n(o);e.isRoot=!0,h.push(e),c=!0}}}))})),t},o(15724);var s=o(47154),r=o(63750);function n(e){const{crossHiddenColumns:t,...o}=(0,r.createDefaultHeaderSettings)(e);return o}},99:(e,t,o)=>{"use strict";t.__esModule=!0,t.collapseNode=function e(t){var o;const{data:i,childs:l}=t;if(i.isCollapsed||i.isHidden||i.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,n.isNodeReflectsFirstChildColspan)(t))return e(l[0]);i.isCollapsed=!0;const a=l.slice(1),h=new Set;if(a.length>0)(0,s.arrayEach)(a,(e=>{(0,n.traverseHiddenNodeColumnIndexes)(e,(e=>{h.add(e)})),e.data.clonedTree=e.cloneTree(),e.walkDown((e=>{let{data:t}=e;t.isHidden=!0}))}));else{const{origColspan:e,columnIndex:t}=i;for(let o=1;o<e;o++){const e=t+o;h.add(e)}}const c=i.colspan-(null!==(o=(0,n.getFirstChildProperty)(t,"colspan"))&&void 0!==o?o:1);return t.walkUp((e=>{const{data:t}=e;t.colspan-=c,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,n.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,n.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:()=>(0,r.expandNode)(t),affectedColumns:Array.from(h),colspanCompensation:c}},o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var s=o(47154),r=o(88188),n=o(65302)},88188:(e,t,o)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:o,childs:i}=t;if(!o.isCollapsed||o.isHidden||o.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,n.isNodeReflectsFirstChildColspan)(t))return e(i[0]);o.isCollapsed=!1;const l=i.slice(1),a=new Set;let h=0;if(l.length>0)(0,s.arrayEach)(l,(e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,n.traverseHiddenNodeColumnIndexes)(e,(e=>{a.add(e)}))}));else{const{colspan:e,origColspan:t,columnIndex:s}=o;h=t-e;for(let e=1;e<t;e++)a.add(s+e)}return t.walkUp((e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,n.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,n.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:()=>(0,r.collapseNode)(t),affectedColumns:Array.from(a),colspanCompensation:h}},o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var s=o(47154),r=o(99),n=o(65302)},73358:(e,t,o)=>{"use strict";t.__esModule=!0,t.hideColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(s.toSingleLine`The passed node is not the last node on the tree. Only for\x20
|
85
85
|
the last node, the hide column modification can be applied.`);const{crossHiddenColumns:o}=e.data;if(o.includes(t))return;let r=!1;if(e.walkUp((e=>{const{data:{collapsible:t}}=e;if(t)return r=!0,!1})),r)return;e.walkUp((e=>{const{data:o}=e;o.crossHiddenColumns.push(t),o.colspan>1?o.colspan-=1:o.isHidden=!0}))},o(67834),o(15724);var s=o(20944)},45038:(e,t,o)=>{"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,o){if(!l.has(e))throw new Error(`The node modifier action ("${e}") does not exist.`);return l.get(e)(t,o)},o(67834);var s=o(99),r=o(88188),n=o(73358),i=o(20175);const l=new Map([["collapse",s.collapseNode],["expand",r.expandNode],["hide-column",n.hideColumn],["show-column",i.showColumn]])},20175:(e,t,o)=>{"use strict";t.__esModule=!0,t.showColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(s.toSingleLine`The passed node is not the last node on the tree. Only for\x20
|
86
86
|
the last node, the show column modification can be applied.`);const{crossHiddenColumns:o}=e.data;if(!o.includes(t))return;let r=!1;if(e.walkUp((e=>{const{data:{collapsible:t}}=e;if(t)return r=!0,!1})),r)return;e.walkUp((e=>{const{data:o}=e;o.crossHiddenColumns.splice(o.crossHiddenColumns.indexOf(t),1),!o.isHidden&&o.colspan<o.origColspan&&(o.colspan+=1),o.isHidden=!1}))},o(67834);var s=o(20944)},65302:(e,t)=>{"use strict";function o(e,t){let{childs:o}=e;if(0!==o.length)return o[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=o,t.isNodeReflectsFirstChildColspan=function(e){return o(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown((e=>{let{data:o,childs:s}=e;if(!o.isHidden&&(t(o.columnIndex),0===s.length))for(let e=1;e<o.colspan;e++)t(o.columnIndex+e)}))}},90653:(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,s.arrayEach)(e,(e=>{const l=[];let a=0;o.push(l),(0,s.arrayEach)(e,(e=>{const o=(0,i.createDefaultHeaderSettings)();if((0,r.isObject)(e)){const{label:t,colspan:s,headerClassName:r}=e;o.label=(0,n.stringify)(t),"number"==typeof s&&s>1&&(o.colspan=s,o.origColspan=s),"string"==typeof r&&(o.headerClassNames=[...r.split(" ")])}else o.label=(0,n.stringify)(e);a+=o.origColspan;let s=!1;if(a>=t&&(o.colspan=o.origColspan-(a-t),o.origColspan=o.colspan,s=!0),l.push(o),o.colspan>1)for(let e=0;e<o.colspan-1;e++)l.push((0,i.createPlaceholderHeaderSettings)());return!s}))}));const l=Math.max(...(0,s.arrayMap)(o,(e=>e.length)));return(0,s.arrayEach)(o,(e=>{if(e.length<l){const t=(0,s.arrayMap)(new Array(l-e.length),(()=>(0,i.createDefaultHeaderSettings)()));e.splice(e.length,0,...t)}})),o},o(15724);var s=o(47154),r=o(95016),n=o(95768),i=o(63750)},24863:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834),o(15724);var s=o(95016),r=o(47154),n=o(90653);function i(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function l(e,t){return e.get(h(e,t))}function a(e,t,o){return e.set(h(e,t),o),o}function h(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 c=t.HEADER_CONFIGURABLE_PROPS=["label","collapsible"];var u=new WeakMap,d=new WeakMap,g=new WeakMap;t.default=class{constructor(){i(this,u,[]),i(this,d,0),i(this,g,1/0)}setColumnsLimit(e){a(g,this,e)}setData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(u,this,(0,n.normalizeSettings)(e,l(g,this))),a(d,this,l(u,this).length)}getData(){return l(u,this)}mergeWith(e){(0,r.arrayEach)(e,(e=>{let{row:t,col:o,...r}=e;const n=this.getHeaderSettings(t,o);null!==n&&(0,s.extend)(n,r,c)}))}map(e){(0,r.arrayEach)(l(u,this),(t=>{(0,r.arrayEach)(t,(t=>{const o=e({...t});(0,s.isObject)(o)&&(0,s.extend)(t,o,c)}))}))}getHeaderSettings(e,t){var o;if(e>=l(d,this)||e<0)return null;const s=l(u,this)[e];return!1===Array.isArray(s)||t>=s.length?null:null!==(o=s[t])&&void 0!==o?o:null}getHeadersSettings(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const s=[];if(e>=l(d,this)||e<0)return s;const r=l(u,this)[e];let n=0;for(let e=t;e<r.length;e++){const t=r[e];if(t.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(n+=t.colspan,s.push(t),t.colspan>1&&(e+=t.colspan-1),n===o)break;if(n>o)throw new Error("The last column settings cannot overlap the other header layers")}return s}getLayersCount(){return l(d,this)}getColumnsCount(){return l(d,this)>0?l(u,this)[0].length:0}clear(){a(u,this,[]),a(d,this,0)}}},63750:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){let{label:e="",colspan:t=1,origColspan:o=1,collapsible:s=!1,crossHiddenColumns:r=[],isCollapsed:n=!1,isHidden:i=!1,isRoot:l=!1,isPlaceholder:a=!1,headerClassNames:h=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:e,colspan:t,origColspan:o,collapsible:s,isCollapsed:n,crossHiddenColumns:r,isHidden:i,isRoot:l,isPlaceholder:a,headerClassNames:h}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},43355:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(94916);t.default=class{constructor(e,t){(0,r.default)(this,"hot",void 0),(0,r.default)(this,"nestedHeaderSettingsGetter",void 0),(0,r.default)(this,"layersCount",0),(0,r.default)(this,"container",void 0),(0,r.default)(this,"widthsMap",void 0),this.hot=e,this.nestedHeaderSettingsGetter=t,this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap","physicalIndexToValue")}setLayersCount(e){return this.layersCount=e,this}getWidth(e){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e))}buildWidthsMap(){this.container=this.hot.rootDocument.createElement("div"),this.container.classList.add("handsontable","htGhostTable","htAutoSize"),this._buildGhostTable(this.container),this.hot.rootDocument.body.appendChild(this.container);const e=this.container.querySelectorAll("tr:last-of-type th"),t=e.length;this.widthsMap.clear();for(let o=0;o<t;o++){const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(o),s=this.hot.toPhysicalColumn(t);this.widthsMap.setValueAtIndex(s,e[o].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}_buildGhostTable(e){const{rootDocument:t,columnIndexMapper:o}=this.hot,s=t.createDocumentFragment(),r=t.createElement("table"),i=!!this.hot.getSettings().dropdownMenu,l=o.getRenderableIndexesLength();for(let e=0;e<this.layersCount;e++){const s=t.createElement("tr");for(let r=0;r<l;r++){let l=o.getVisualFromRenderableIndex(r);null===l&&(l=r);const a=t.createElement("th"),h=this.nestedHeaderSettingsGetter(e,l);if(h&&(!h.isPlaceholder||h.isHidden)){let e=h.label;i&&(e+='<button class="changeType"></button>'),(0,n.fastInnerHTML)(a,e),a.colSpan=h.colspan,s.appendChild(a)}}r.appendChild(s)}s.appendChild(r),e.appendChild(s)}clear(){this.widthsMap.clear(),this.container=null}}},75053:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(36926),i=o(95016),l=o(47154);t.default=class{constructor(e,t){(0,r.default)(this,"hot",void 0),(0,r.default)(this,"data",null),(0,r.default)(this,"plugin",void 0),(0,r.default)(this,"parentReference",new WeakMap),(0,r.default)(this,"cache",{levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}),this.hot=t,this.plugin=e}setData(e){this.data=e}getData(){return this.data}getRawSourceData(){let e=null;return this.plugin.disableCoreAPIModifiers(),e=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),e}updateWithData(e){this.setData(e),this.rewriteCache()}rewriteCache(){this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},(0,n.rangeEach)(0,this.data.length-1,(e=>{this.cacheNode(this.data[e],0,null)}))}cacheNode(e,t,o){this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:o,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&(0,l.arrayEach)(e.__children,(o=>{this.cacheNode(o,t+1,e)}))}getDataObject(e){return null==e?null:this.cache.rows[e]}readTreeNodes(e,t,o,s){let r=!1,n=t;if(isNaN(n)&&n.end)return n;let i=e;return i||(i={__children:this.data},r=!0,n-=1),null!=o&&n===o?{result:i,end:!0}:null!=s&&i===s?{result:n,end:!0}:(n+=1,i.__children&&(0,l.arrayEach)(i.__children,(e=>{if(this.parentReference.set(e,r?null:i),n=this.readTreeNodes(e,n,o,s),isNaN(n)&&n.end)return!1})),n)}mockParent(){const e=this.mockNode();return e.__children=this.data,e}mockNode(){const e={};return(0,i.objectEach)(this.data[0],((t,o)=>{e[o]=null})),e}getRowIndex(e){return null==e?null:this.cache.nodeInfo.get(e).row}getRowIndexWithinParent(e){let t=null;t=isNaN(e)?e:this.getDataObject(e);const o=this.getRowParent(e);return null==o?this.data.indexOf(t):o.__children.indexOf(t)}countAllRows(){const e={__children:this.data};return this.countChildren(e)}countChildren(e){let t=0,o=e;return isNaN(o)||(o=this.getDataObject(o)),o&&o.__children?((0,l.arrayEach)(o.__children,(e=>{t+=1,e.__children&&(t+=this.countChildren(e))})),t):0}getRowParent(e){let t;return t=isNaN(e)?e:this.getDataObject(e),this.getRowObjectParent(t)}getRowObjectParent(e){return e&&"object"==typeof e?this.cache.nodeInfo.get(e).parent:null}getRowLevel(e){let t=null;return t=isNaN(e)?e:this.getDataObject(e),t?this.getRowObjectLevel(t):null}getRowObjectLevel(e){return null==e?null:this.cache.nodeInfo.get(e).level}hasChildren(e){let t=e;return isNaN(t)||(t=this.getDataObject(t)),!(!t.__children||!t.__children.length)}isChild(e){return null!==this.getRowParent(e)}getChild(e,t){var o;return(null===(o=e.__children)||void 0===o?void 0:o[t])||null}isRowHighestLevel(e){return!this.isChild(e)}isParent(e){var t;let o=e;return isNaN(o)||(o=this.getDataObject(o)),o&&!!o.__children&&0!==(null===(t=o.__children)||void 0===t?void 0:t.length)}addChild(e,t){let o=t;this.hot.runHooks("beforeAddChild",e,o);let s=null;e&&(s=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",s+this.countChildren(e)+1,1);let r=e;e||(r=this.mockParent()),r.__children||(r.__children=[]),o||(o=this.mockNode()),r.__children.push(o),this.rewriteCache();const n=this.getRowIndex(o);this.hot.rowIndexMapper.insertIndexes(n,1),this.hot.runHooks("afterCreateRow",n,1),this.hot.runHooks("afterAddChild",e,o)}addChildAtIndex(e,t,o){let s,r=o;if(r||(r=this.mockNode()),this.hot.runHooks("beforeAddChild",e,r,t),e){const o=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",o,1),e.__children.splice(t,null,r),this.rewriteCache(),this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(e),"__children",e.__children,"NestedRows.addChildAtIndex"),this.hot.rowIndexMapper.insertIndexes(o,1),this.plugin.enableCoreAPIModifiers(),this.hot.runHooks("afterCreateRow",o,1),s=o}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row_above",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),s=this.getRowIndex(this.data[t]);r=this.getDataObject(s),this.hot.runHooks("afterAddChild",e,r,t)}addSibling(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below";const o=this.translateTrimmedRow(e),s=this.getRowParent(o),r=this.getRowIndexWithinParent(o);switch(t){case"below":this.addChildAtIndex(s,r+1,null);break;case"above":this.addChildAtIndex(s,r,null)}}detachFromParent(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=null;const s=[];Array.isArray(e)?((0,n.rangeEach)(e[0],e[2],(e=>{const t=this.translateTrimmedRow(e);s.push(this.getDataObject(t))})),(0,n.rangeEach)(0,s.length-2,(e=>{this.detachFromParent(s[e],!1)})),o=s[s.length-1]):o=e;const r=this.getRowIndex(o),i=this.countChildren(o),l=this.getRowIndexWithinParent(o),a=this.getRowParent(o),h=this.getRowParent(a),c=this.getRowIndex(h);let u=null;if(this.hot.runHooks("beforeDetachChild",a,o),null!=l){const e=Array.from(new Array(r+i+1).keys()).splice(-1*(i+1));if(this.hot.runHooks("beforeRemoveRow",r,i+1,e,this.plugin.pluginName),a.__children.splice(l,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",r,i+1,e,this.plugin.pluginName),h){u=c+this.countChildren(h);const e=this.getChild(h,this.countChildren(h)-1),t=this.getRowIndex(e);this.hot.runHooks("beforeCreateRow",t+1,i+1,this.plugin.pluginName),h.__children.push(o)}else u=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",u-2,i+1,this.plugin.pluginName),this.data.push(o)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",u-2,i+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",a,o,this.getRowIndex(o)),t&&this.hot.render()}filterData(e,t,o){const s=[];(0,l.arrayEach)(o,(e=>{s.push(this.getDataObject(e))})),(0,l.arrayEach)(s,(e=>{const t=this.getRowIndexWithinParent(e),o=this.getRowParent(e);null===o?this.data.splice(t,1):o.__children.splice(t,1)})),this.rewriteCache()}spliceData(e,t,o){const s=this.getDataObject(e-1);let r=null,n=e;s&&s.__children&&0===s.__children.length?(r=s,n=0):e<this.countAllRows()&&(r=this.getRowParent(e),n=this.getRowIndexWithinParent(e)),r?o?r.__children.splice(n,t,...o):r.__children.splice(n,t):o?this.data.splice(n,t,...o):this.data.splice(n,t),this.rewriteCache()}syncRowWithRawSource(e){let t=e,o=null;do{o=this.getRowParent(o),null!==o&&(t=o)}while(null!==o);this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndex(t),"__children",t.__children,"NestedRows.syncRowWithRawSource"),this.plugin.enableCoreAPIModifiers()}moveRow(e,t,o,s){const r=t===this.hot.countRows(),n=this.getRowParent(e),i=this.getRowIndexWithinParent(e),l=n.__children.slice(i,i+1),a=e>t;let h=r?this.getRowParent(t-1):this.getRowParent(t);null==h&&(h=this.getRowParent(t-1)),null==h&&(h=this.getDataObject(t-1)),h?h.__children||(h.__children=[]):(h=this.getDataObject(t),h.__children=[]);const c=r||o||s?h.__children.length:this.getRowIndexWithinParent(t),u=n===h;h.__children.splice(c,0,l[0]),n.__children.splice(i+(a&&u?1:0),1),this.syncRowWithRawSource(n),u||this.syncRowWithRawSource(h)}translateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}untranslateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}}},24893:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(48699);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.NestedRows=s.NestedRows},48699:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(69655),o(90458);var r=s(o(85707)),n=o(9458),i=s(o(75053)),l=s(o(55962)),a=s(o(882)),h=s(o(98472)),c=o(59350),u=o(42379),d=o(57466),g=o(9528),f=s(o(53618));function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(v(e,t))}function C(e,t,o){return e.set(v(e,t),o),o}function v(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 y=t.PLUGIN_KEY="nestedRows",E=t.PLUGIN_PRIORITY=300,S=y;var R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends n.BasePlugin{constructor(){var e,t;super(...arguments),m(e=this,t=_),t.add(e),(0,r.default)(this,"dataManager",null),(0,r.default)(this,"headersUI",null),(0,r.default)(this,"collapsedRowsMap",null),p(this,R,!1),p(this,b,!1)}static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return E}isEnabled(){return!!this.hot.getSettings()[y]}enablePlugin(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new d.TrimmingMap),this.dataManager=new i.default(this,this.hot),this.collapsingUI=new l.default(this,this.hot),this.headersUI=new a.default(this,this.hot),this.contextMenuUI=new h.default(this,this.hot),this.rowMoveController=new f.default(this),this.addHook("afterInit",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,W).call(e,...o)})),this.addHook("beforeViewRender",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,B).call(e,...o)})),this.addHook("modifyRowData",(function(){return e.onModifyRowData(...arguments)})),this.addHook("modifySourceLength",(function(){return e.onModifySourceLength(...arguments)})),this.addHook("beforeDataSplice",(function(){return e.onBeforeDataSplice(...arguments)})),this.addHook("filterData",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,I).call(e,...o)})),this.addHook("afterContextMenuDefaultOptions",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,N).call(e,...o)})),this.addHook("afterGetRowHeader",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,A).call(e,...o)})),this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,O).call(e,...o)})),this.addHook("beforeRemoveRow",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,x).call(e,...o)})),this.addHook("afterRemoveRow",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,H).call(e,...o)})),this.addHook("beforeAddChild",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,D).call(e,...o)})),this.addHook("afterAddChild",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,k).call(e,...o)})),this.addHook("beforeDetachChild",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,L).call(e,...o)})),this.addHook("afterDetachChild",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,V).call(e,...o)})),this.addHook("modifyRowHeaderWidth",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,P).call(e,...o)})),this.addHook("afterCreateRow",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,F).call(e,...o)})),this.addHook("beforeRowMove",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return v(_,e,M).call(e,...o)})),this.addHook("beforeLoadData",(e=>v(_,this,U).call(this,e))),this.addHook("beforeUpdateData",(e=>v(_,this,U).call(this,e))),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),this.unregisterShortcuts(),super.disablePlugin()}updatePlugin(){this.disablePlugin();const e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),super.updatePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast(),t=this.collapsingUI.translateTrimmedRow(e.row);return this.collapsingUI.areChildrenCollapsed(t)?this.collapsingUI.expandChildren(t):this.collapsingUI.collapseChildren(t),!1},runOnlyIf:()=>{var e,t;const 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)&&-1===o.col&&o.row>=0},group:S,relativeToGroup:g.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}disableCoreAPIModifiers(){C(b,this,!0)}enableCoreAPIModifiers(){C(b,this,!1)}onModifyRowData(e){if(!w(b,this))return this.dataManager.getDataObject(e)}onModifySourceLength(){if(!w(b,this))return this.dataManager.countAllRows()}onBeforeDataSplice(e,t,o){return!(!w(b,this)&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,o),!1)}destroy(){super.destroy()}}function M(e,t,o,s){return this.rowMoveController.onBeforeRowMove(e,t,o,s)}function O(e,t,o){this.collapsingUI.toggleState(e,t,o)}function I(e,t,o){return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(o[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(o[0],null,-1*t),this.dataManager.filterData(e,t,o),C(R,this,!0),this.dataManager.getData().slice()}function N(e){return this.contextMenuUI.appendOptions(e)}function A(e,t){this.headersUI.appendLevelIndicators(e,t)}function P(e){return Math.max(this.headersUI.rowHeaderWidthCache,e)}function H(e,t,o,s){s!==this.pluginName&&this.hot._registerTimeout((()=>{C(R,this,!1),this.headersUI.updateRowHeaderWidth(),this.collapsingUI.collapsedRowsStash.applyStash()}))}function x(e,t,o){const s=Array.from(o.reduce(((e,t)=>{if(this.dataManager.isParent(t)){const o=this.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(o)&&o.forEach((t=>e.add(this.dataManager.getRowIndex(t)))),e}return e.add(t)}),new Set));o.length=0,o.push(...s)}function D(){this.collapsingUI.collapsedRowsStash.stash()}function k(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function L(){this.collapsingUI.collapsedRowsStash.stash()}function V(e,t,o){this.collapsingUI.collapsedRowsStash.shiftStash(o,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function F(){this.dataManager.rewriteCache()}function W(){this.headersUI.updateRowHeaderWidth()}function B(e,t){w(R,this)&&(t.skipRender=!0)}function U(e){if(!(0,u.isArrayOfObjects)(e))return(0,c.error)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings()[y]=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}t.NestedRows=T},23152:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.default=class{constructor(e,t){(0,r.default)(this,"hot",void 0),(0,r.default)(this,"plugin",void 0),this.hot=t,this.plugin=e}}},55962:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=o(40892),n=o(47154),i=o(36926),l=o(94916),a=s(o(23152)),h=s(o(882));class c extends a.default{constructor(e,t){var o;super(e,t),o=this,this.dataManager=this.plugin.dataManager,this.collapsedRows=[],this.collapsedRowsStash={stash:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o.lastCollapsedRows=o.collapsedRows.slice(0),o.expandMultipleChildren(o.lastCollapsedRows,e)},shiftStash:function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;null==t&&(t=1/0),(0,n.arrayEach)(o.lastCollapsedRows,((r,n)=>{r>=e&&r<t&&(o.lastCollapsedRows[n]=r+s)}))},applyStash:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o.collapseMultipleChildren(o.lastCollapsedRows,e),o.lastCollapsedRows=void 0},trimStash:(e,t)=>{(0,i.rangeEach)(e,e+t-1,(e=>{const t=this.lastCollapsedRows.indexOf(e);t>-1&&this.lastCollapsedRows.splice(t,1)}))}}}collapseChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=[];let r=null,i=null,l=null;return isNaN(e)?(r=e,i=this.dataManager.getRowIndex(r)):(r=this.dataManager.getDataObject(e),i=e),this.dataManager.hasChildren(r)&&(0,n.arrayEach)(r.__children,(e=>{s.push(this.dataManager.getRowIndex(e))})),l=this.collapseRows(s,!0,!1),o&&this.trimRows(l),t&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(i)&&this.collapsedRows.push(i),l}collapseMultipleChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=[];(0,n.arrayEach)(e,(e=>{s.push(...this.collapseChildren(e,!1,!1))})),o&&this.trimRows(s),t&&this.renderAndAdjust()}collapseRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.collapseRows([e],t)}collapseRows(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=[];return(0,n.arrayEach)(e,(e=>{s.push(e),t&&this.collapseChildRows(e,s)})),o&&this.trimRows(s),s}collapseChildRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.dataManager.hasChildren(e)){const o=this.dataManager.getDataObject(e);(0,n.arrayEach)(o.__children,(e=>{const o=this.dataManager.getRowIndex(e);t.push(o),this.collapseChildRows(o,t)}))}o&&this.trimRows(t)}expandRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.expandRows([e],t)}expandRows(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=[];return(0,n.arrayEach)(e,(e=>{s.push(e),t&&this.expandChildRows(e,s)})),o&&this.untrimRows(s),s}expandChildRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.dataManager.hasChildren(e)){const o=this.dataManager.getDataObject(e);(0,n.arrayEach)(o.__children,(e=>{if(!this.isAnyParentCollapsed(e)){const o=this.dataManager.getRowIndex(e);t.push(o),this.expandChildRows(o,t)}}))}o&&this.untrimRows(t)}expandChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=[];let r=null,i=null,l=null;return isNaN(e)?(r=e,i=this.dataManager.getRowIndex(e)):(r=this.dataManager.getDataObject(e),i=e),this.collapsedRows.splice(this.collapsedRows.indexOf(i),1),this.dataManager.hasChildren(r)&&(0,n.arrayEach)(r.__children,(e=>{const t=this.dataManager.getRowIndex(e);s.push(t)})),l=this.expandRows(s,!0,!1),o&&this.untrimRows(l),t&&this.renderAndAdjust(),l}expandMultipleChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=[];(0,n.arrayEach)(e,(e=>{s.push(...this.expandChildren(e,!1,!1))})),o&&this.untrimRows(s),t&&this.renderAndAdjust()}collapseAll(){const e=this.dataManager.getData(),t=[];(0,n.arrayEach)(e,(e=>{this.dataManager.hasChildren(e)&&t.push(e)})),this.collapseMultipleChildren(t),this.renderAndAdjust()}expandAll(){const e=this.dataManager.getData(),t=[];(0,n.arrayEach)(e,(e=>{this.dataManager.hasChildren(e)&&t.push(e)})),this.expandMultipleChildren(t),this.renderAndAdjust()}trimRows(e){this.hot.batchExecution((()=>{(0,n.arrayEach)(e,(e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!0)}))}),!0)}untrimRows(e){this.hot.batchExecution((()=>{(0,n.arrayEach)(e,(e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!1)}))}),!0)}areChildrenCollapsed(e){let t=isNaN(e)?e:this.dataManager.getDataObject(e),o=!0;return null===t&&(t={__children:this.dataManager.data}),this.dataManager.hasChildren(t)&&(0,n.arrayEach)(t.__children,(e=>{const t=this.dataManager.getRowIndex(e);if(!this.plugin.collapsedRowsMap.getValueAtIndex(t))return o=!1,!1})),o}isAnyParentCollapsed(e){let t=e;for(;null!==t;){t=this.dataManager.getRowParent(t);const e=this.dataManager.getRowIndex(t);if(this.collapsedRows.indexOf(e)>-1)return!0}return!1}toggleState(e,t){if(t.col>=0)return;const o=this.translateTrimmedRow(t.row);(0,l.hasClass)(e.target,h.default.CSS_CLASSES.button)&&(this.areChildrenCollapsed(o)?this.expandChildren(o):this.collapseChildren(o),(0,r.stopImmediatePropagation)(e))}translateTrimmedRow(e){return this.hot.toPhysicalRow(e)}untranslateTrimmedRow(e){return this.hot.toVisualRow(e)}renderAndAdjust(){this.hot.render(),this.hot.view.adjustElementsSize()}}t.default=c},98472:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=s(o(85707)),n=o(36926),i=o(47154),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=h(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(o(21571)),a=s(o(23152));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(h=function(e){return e?o:t})(e)}function c(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function u(e,t){return e.get(function(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")}(e,t))}var d=new WeakMap;class g extends a.default{constructor(){super(...arguments),(0,r.default)(this,"dataManager",this.plugin.dataManager),c(this,d,{row_above:(e,t)=>{const o=t[t.length-1];this.dataManager.addSibling(o.start.row,"above")},row_below:(e,t)=>{const o=t[t.length-1];this.dataManager.addSibling(o.start.row,"below")}})}appendOptions(e){const t=[{key:"add_child",name(){return this.getTranslatedPhrase(l.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:()=>{const e=this.dataManager.translateTrimmedRow(this.hot.getSelectedLast()[0]),t=this.dataManager.getDataObject(e);this.dataManager.addChild(t)},disabled:()=>{const e=this.hot.getSelectedLast();return!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{key:"detach_from_parent",name(){return this.getTranslatedPhrase(l.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:()=>{this.dataManager.detachFromParent(this.hot.getSelectedLast())},disabled:()=>{const e=this.hot.getSelectedLast(),t=this.dataManager.translateTrimmedRow(e[0]);return!this.dataManager.getRowParent(t)||!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{name:"---------"}];return(0,n.rangeEach)(0,e.items.length-1,(o=>{if(0===o)return(0,i.arrayEach)(t,((t,s)=>{e.items.splice(o+s,0,t)})),!1})),this.modifyRowInsertingOptions(e)}modifyRowInsertingOptions(e){return(0,n.rangeEach)(0,e.items.length-1,(t=>{const o=u(d,this)[e.items[t].key];null!=o&&(e.items[t].callback=o)})),e}}t.default=g},882:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=o(47154),n=o(36926),i=o(94916),l=s(o(23152)),a=o(45551);class h extends l.default{static get CSS_CLASSES(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}constructor(e,t){super(e,t),this.dataManager=this.plugin.dataManager,this.collapsingUI=this.plugin.collapsingUI,this.rowHeaderWidthCache=null}appendLevelIndicators(e,t){const o=this.hot.toPhysicalRow(e),s=this.dataManager.getRowLevel(o),l=this.dataManager.getDataObject(o),c=t.getElementsByTagName("DIV")[0],u=c.querySelector("span.rowHeader"),d=c.querySelectorAll('[class^="ht_nesting"]'),g=this.hot.getSettings().ariaTags;if((0,r.arrayEach)(d,(e=>{e&&c.removeChild(e)})),(0,i.addClass)(t,h.CSS_CLASSES.indicatorContainer),s){const{rootDocument:e}=this.hot,t=u.cloneNode(!0);c.innerHTML="",(0,n.rangeEach)(0,s-1,(()=>{const t=e.createElement("SPAN");(0,i.addClass)(t,h.CSS_CLASSES.emptyIndicator),c.appendChild(t)})),c.appendChild(t)}if(this.dataManager.hasChildren(l)){const e=this.hot.rootDocument.createElement("DIV");g&&(0,i.setAttribute)(e,[(0,a.A11Y_HIDDEN)()]),(0,i.addClass)(t,h.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(o)?((0,i.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.expandButton}`),g&&(0,i.setAttribute)(t,[(0,a.A11Y_EXPANDED)(!1)])):((0,i.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.collapseButton}`),g&&(0,i.setAttribute)(t,[(0,a.A11Y_EXPANDED)(!0)])),c.appendChild(e)}}updateRowHeaderWidth(e){let t=e;t||(t=this.dataManager.cache.levelCount);const o=this.hot.view.getStylesHandler();let s=11;if(!o.isClassicTheme()){s=2*o.getCSSVariableValue("cell-horizontal-padding")}this.rowHeaderWidthCache=Math.max(50,s+10*t+25),this.hot.render()}}t.default=h},53618:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724),o(14846),o(69655),o(94364),o(75568);var r=s(o(85707)),n=o(95768),i=o(59350),l=o(20944);t.default=class{constructor(e){(0,r.default)(this,"plugin",void 0),(0,r.default)(this,"hot",void 0),(0,r.default)(this,"dataManager",void 0),(0,r.default)(this,"collapsingUI",void 0),this.plugin=e,this.hot=e.hot,this.dataManager=e.dataManager,this.collapsingUI=e.collapsingUI}onBeforeRowMove(e,t,o,s){if(this.displayAPICompatibilityWarning({rows:e,finalIndex:t,dropIndex:o,movePossible:s}))return!1;this.movedToCollapsed=!1;const r=o===this.hot.countRows(),n=r?this.hot.countSourceRows():this.dataManager.translateTrimmedRow(o);let i=!0;const l=e.map((e=>{if(!i)return!1;const t=this.dataManager.translateTrimmedRow(e);return i=this.shouldAllowMoving(t,n),t})),a=-1===l.indexOf(n);if(!i||!a)return!1;const h=this.getBaseParent(l),c=this.getTargetParent(r,n),u=h===c;return this.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(c),this.collapsingUI.collapsedRowsStash.stash(),this.shiftCollapsibleParentsLocations(l,n,u),this.moveRows(l,n,c),this.dataManager.rewriteCache(),this.moveCellsMeta(l,n),this.collapsingUI.collapsedRowsStash.applyStash(!1),this.hot.runHooks("afterRowMove",e,t,o,s,s&&this.isRowOrderChanged(e,t)),this.hot.render(),this.selectCells(e,o),!1}displayAPICompatibilityWarning(e){const{rows:t,finalIndex:o,dropIndex:s,movePossible:r}=e;let a=!1;return(0,n.isUndefined)(s)&&((0,i.warn)(l.toSingleLine`Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows\x20
|
87
87
|
when the NestedRows plugin is enabled. Please use the 'dragRows' method instead.`),this.hot.runHooks("afterRowMove",t,o,s,r,!1),a=!0),a}shouldAllowMoving(e,t){return!(this.dataManager.isParent(e)||this.dataManager.isRowHighestLevel(e)||e===t||0===t)}getBaseParent(e){return this.dataManager.getRowParent(e[0])}getTargetParent(e,t){let o=this.dataManager.getRowParent(e?t-1:t);return null==o&&(o=this.dataManager.getRowParent(t-1)),o}shiftCollapsibleParentsLocations(e,t,o){o||(Math.max(...e)<=t?this.collapsingUI.collapsedRowsStash.shiftStash(e[0],t,-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(t,e[0],e.length))}moveRows(e,t,o){const s=t===this.dataManager.getRowIndex(o)+this.dataManager.countChildren(o)+1;this.hot.batchRender((()=>{e.forEach((e=>{this.dataManager.moveRow(e,t,this.movedToCollapsed,s)}))}))}moveCellsMeta(e,t){const o=[],s=Math.max(...e)<t;e.forEach((e=>{o.push(this.hot.getCellMetaAtRow(e))})),this.hot.spliceCellsMeta(e[0],e.length),this.hot.spliceCellsMeta(t-(s?o.length:0),0,...o)}selectCells(e,t){const o=e.length;let s=0,r=0;if(this.movedToCollapsed){let n=null;n=e[o-1]<t?this.dataManager.translateTrimmedRow(t-o):this.dataManager.translateTrimmedRow(t);const i=this.dataManager.getRowParent(null===n?this.hot.countSourceRows()-1:n-1),l=this.dataManager.getRowIndex(i);s=this.dataManager.untranslateTrimmedRow(l),r=s}else e[o-1]<t?(r=t-1,s=r-o+1):(s=t,r=s+o-1);this.hot.selectCells([[s,0,r,this.hot.countCols()-1]],!1)}isRowOrderChanged(e,t){return e.some(((e,o)=>e-o!==t))}}},21551:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(33341);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.PersistentState=s.PersistentState},33341:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(9458),i=s(o(59590)),l=o(29398);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 n.BasePlugin{constructor(){super(...arguments),(0,r.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 i.default(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},59590:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724),o(66184);var r=s(o(85707)),n=o(47154);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;(0,r.default)(this,"rootWindow",void 0),(0,r.default)(this,"prefix",void 0),(0,r.default)(this,"savedKeys",[]),this.rootWindow=t,this.prefix=e,this.loadSavedKeys()}saveValue(e,t){this.rootWindow.localStorage.setItem(`${this.prefix}_${e}`,JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}loadValue(e,t){const o=void 0===e?t:e,s=this.rootWindow.localStorage.getItem(`${this.prefix}_${o}`);return null===s?void 0:JSON.parse(s)}reset(e){this.rootWindow.localStorage.removeItem(`${this.prefix}_${e}`)}resetAll(){(0,n.arrayEach)(this.savedKeys,((e,t)=>{this.rootWindow.localStorage.removeItem(`${this.prefix}_${this.savedKeys[t]}`)})),this.clearSavedKeys()}loadSavedKeys(){const e=this.rootWindow.localStorage.getItem(`${this.prefix}__persistentStateKeys`),t="string"==typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}saveSavedKeys(){this.rootWindow.localStorage.setItem(`${this.prefix}__persistentStateKeys`,JSON.stringify(this.savedKeys))}clearSavedKeys(){this.savedKeys.length=0,this.saveSavedKeys()}}},42427:(e,t,o)=>{"use strict";t.__esModule=!0,t.getPlugin=u,t.getPluginsNames=function(){return[...a.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 r=(0,s.toUpperCaseFirst)(e);if(c.hasItem(r))throw new Error(l(r));void 0===o?h.addItem(r):a.addItem(o,r);c.addItem(r,t)}(e,t,o)},o(67834);var s=o(83414),r=o(75080),n=o(78697),i=o(11311);const l=e=>`There is already registered "${e}" plugin.`,a=(0,r.createPriorityMap)({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),h=(0,i.createUniqueSet)({errorItemExists:l}),c=(0,n.createUniqueMap)({errorIdExists:l});function u(e){const t=(0,s.toUpperCaseFirst)(e);return c.getItem(t)}},83303:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(83543);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.Search=s.Search},83543:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(9458),i=o(95016),l=o(36926),a=o(95768);function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(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 u=t.PLUGIN_KEY="search",d=t.PLUGIN_PRIORITY=190,g=function(e,t,o,s,r){e.getCellMeta(t,o).isSearchResult=r},f=function(e,t,o){return!((0,a.isUndefined)(e)||null===e||!e.toLocaleLowerCase||0===e.length)&&(!(0,a.isUndefined)(t)&&null!==t&&-1!==t.toString().toLocaleLowerCase(o.locale).indexOf(e.toLocaleLowerCase(o.locale)))};var p=new WeakSet;class m extends n.BasePlugin{constructor(){super(...arguments),h(this,p),(0,r.default)(this,"callback",g),(0,r.default)(this,"queryMethod",f),(0,r.default)(this,"searchResultClass","htSearchResult")}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return d}isEnabled(){return this.hot.getSettings()[u]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[u];this.updatePluginSettings(t),this.addHook("beforeRenderer",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return c(p,e,w).call(e,...o)})),super.enablePlugin()}disablePlugin(){var e=this;const t=function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return c(p,e,w).call(e,...o)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",(()=>{this.hot.removeHook("beforeRenderer",t)})),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}query(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod();const s=this.hot.countRows(),r=this.hot.countCols(),n=[],i=this.hot;return(0,l.rangeEach)(0,s-1,(s=>{(0,l.rangeEach)(0,r-1,(r=>{const l=this.hot.getDataAtCell(s,r),a=this.hot.getCellMeta(s,r),h=a.search.callback||t,c=(a.search.queryMethod||o)(e,l,a);if(c){const e={row:s,col:r,data:l};n.push(e)}h&&h(i,s,r,l,c)}))})),n}getCallback(){return this.callback}setCallback(e){this.callback=e}getQueryMethod(){return this.queryMethod}setQueryMethod(e){this.queryMethod=e}getSearchResultClass(){return this.searchResultClass}setSearchResultClass(e){this.searchResultClass=e}updatePluginSettings(e){(0,i.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}destroy(){super.destroy()}}function w(e,t,o,s,r,n){const i=n.className||[];let l=[];"string"==typeof i?l=i.split(" "):l.push(...i),this.isEnabled()&&n.isSearchResult?l.includes(this.searchResultClass)||l.push(`${this.searchResultClass}`):l.includes(this.searchResultClass)&&l.splice(l.indexOf(this.searchResultClass),1),n.className=l.join(" ")}t.Search=m},97099:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834),o(14846),o(69655);var s=o(7749),r=o(94916),n=o(62894),i=o(33405);function l(e,t,o){a(e,t),t.set(e,o)}function a(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 WeakSet;function w(){const{view:e}=h(d,this);if(e.isVerticallyScrollableByWindow())return!1;const t=e.getViewportHeight(),o=h(d,this).countRows(),s=e.getStylesHandler().getDefaultRowHeight();let r=0,n=!1;for(let e=0;e<o;e++){var i;if(r+=(null!==(i=h(d,this).getRowHeight(e))&&void 0!==i?i:s)+(0===e?1:0),r>t){n=!0;break}}return n}function C(e){var t;return null!==(t=h(d,this).getColWidth(e,"StretchColumns"))&&void 0!==t?t:s.DEFAULT_COLUMN_WIDTH}function v(e,t){return h(d,this).runHooks("beforeStretchingColumnWidth",e,t)}t.StretchCalculator=class{constructor(e){var t,o;a(t=this,o=m),o.add(t),l(this,d,void 0),l(this,g,void 0),l(this,f,new Map([["all",new n.StretchAllStrategy(u(m,this,v).bind(this))],["last",new i.StretchLastStrategy(u(m,this,v).bind(this))]])),l(this,p,"none"),c(d,this,e),c(g,this,h(d,this).columnIndexMapper.createAndRegisterIndexMap("stretchColumns","physicalIndexToValue"))}useStrategy(e){c(p,this,h(f,this).has(e)?e:"none")}refreshStretching(){"none"!==h(p,this)?h(d,this).batchExecution((()=>{h(g,this).clear();const e=h(f,this).get(h(p,this));let t=h(d,this).view.getViewportWidth();u(m,this,w).call(this)&&(t-=(0,r.getScrollbarWidth)(h(d,this).rootDocument)),e.prepare({viewportWidth:t});for(let t=0;t<h(d,this).countCols();t++)h(d,this).columnIndexMapper.isHidden(h(d,this).toPhysicalColumn(t))||e.setColumnBaseWidth(t,u(m,this,C).call(this,t));e.calculate(),e.getWidths().forEach((e=>{let[t,o]=e;h(g,this).setValueAtIndex(h(d,this).toPhysicalColumn(t),o)}))}),!0):h(g,this).clear()}getStretchedWidth(e){return h(g,this).getValueAtIndex(h(d,this).toPhysicalColumn(e))}}},18303:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(34503);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.StretchColumns=s.StretchColumns},72553:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));t.StretchStrategy=class{constructor(e){(0,r.default)(this,"viewportWidth",void 0),(0,r.default)(this,"overwriteColumnWidthFn",void 0),(0,r.default)(this,"baseWidths",new Map),(0,r.default)(this,"stretchedWidths",new Map),this.overwriteColumnWidthFn=e}prepare(e){let{viewportWidth:t}=e;this.viewportWidth=t,this.baseWidths.clear(),this.stretchedWidths.clear()}setColumnBaseWidth(e,t){this.baseWidths.set(e,t)}calculate(){}getWidths(){return Array.from(this.stretchedWidths)}}},62894:(e,t,o)=>{"use strict";t.__esModule=!0,o(15724),o(14846),o(69655),o(90458);var s=o(7749),r=o(72553);class n extends r.StretchStrategy{calculate(){const e=Array.from(this.baseWidths).reduce(((e,t)=>{let[,o]=t;return e+o}),0);if(this.viewportWidth-e<0)return void this.stretchedWidths.clear();const t=this.viewportWidth/e,o=[],r=[];let n=this.viewportWidth,i=0;if(this.baseWidths.forEach(((e,l)=>{const a=Math.round(e*t),h=this.overwriteColumnWidthFn(a,l);a===h&&a>=s.DEFAULT_COLUMN_WIDTH?(o.push([l,h]),i+=h):a!==h&&(o.push([l,h]),r.push(l),n-=h)})),n<=s.DEFAULT_COLUMN_WIDTH)return void this.stretchedWidths.clear();const l=n/i;let a=-1,h=0;o.forEach(((e,t)=>{let[s,n]=e,i=n;r.includes(s)||(i=Math.round(n*l)),this.stretchedWidths.set(s,i),a=s,t<o.length-1&&(h+=i)})),this.stretchedWidths.size>1&&this.stretchedWidths.set(a,Math.round(this.viewportWidth-h))}}t.StretchAllStrategy=n},33405:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834),o(14846),o(90458);var s=o(72553);function r(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function n(e,t){return e.get(l(e,t))}function i(e,t,o){return e.set(l(e,t),o),o}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 a=new WeakMap,h=new WeakMap;class c extends s.StretchStrategy{constructor(){super(...arguments),r(this,a,0),r(this,h,-1)}prepare(e){super.prepare(e),i(a,this,0),i(h,this,-1)}setColumnBaseWidth(e,t){super.setColumnBaseWidth(e,t),i(h,this,e),i(a,this,t)}calculate(){if(-1===n(h,this))return;const e=Array.from(this.baseWidths).reduce(((e,t)=>{let[,o]=t;return e+o}),0),t=Math.max(this.viewportWidth-e+n(a,this),0);this.stretchedWidths.set(n(h,this),t)}}t.StretchLastStrategy=c},34503:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834),o(14846),o(69655);var s=o(9458),r=o(97099);function n(e,t,o){i(e,t),t.set(e,o)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t,o){return e.set(h(e,t),o),o}function a(e,t){return e.get(h(e,t))}function h(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 c=t.PLUGIN_KEY="stretchColumns",u=t.PLUGIN_PRIORITY=155;var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakSet;class m extends s.BasePlugin{constructor(){var e,t;super(...arguments),i(e=this,t=p),t.add(e),n(this,d,new r.StretchCalculator(this.hot)),n(this,g,null),n(this,f,new ResizeObserver((e=>{requestAnimationFrame((()=>{var t;null!==(t=this.hot)&&void 0!==t&&t.view.isHorizontallyScrollableByWindow()&&e.forEach((e=>{let{contentRect:t}=e;null!==a(g,this)&&a(g,this)!==t.width&&(this.hot.refreshDimensions(),this.hot.view.adjustElementsSize()),l(g,this,t.width)}))}))})))}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}static get SETTING_KEYS(){return!0}isEnabled(){return["all","last"].includes(this.hot.getSettings().stretchH)}enablePlugin(){var e=this;this.enabled||(a(d,this).useStrategy(this.hot.getSettings().stretchH),a(f,this).observe(this.hot.rootElement),this.addHook("beforeRender",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return h(p,e,C).call(e,...o)})),this.addHook("modifyColWidth",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return h(p,e,w).call(e,...o)}),10),super.enablePlugin())}updatePlugin(){a(d,this).useStrategy(this.hot.getSettings().stretchH),super.updatePlugin()}disablePlugin(){super.disablePlugin(),a(f,this).unobserve(this.hot.rootElement)}getColumnWidth(e){return a(d,this).getStretchedWidth(e)}destroy(){a(f,this).disconnect(),l(f,this,null),l(d,this,null),super.destroy()}}function w(e,t,o){if(o===this.pluginName)return;const s=this.getColumnWidth(t);return"number"==typeof s?s:e}function C(e){e&&a(d,this).refreshStretching()}t.StretchColumns=m},98575:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(37485);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.TouchScroll=s.TouchScroll},37485:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(94916),i=o(47154),l=o(9458),a=o(37725);function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(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 u=t.PLUGIN_KEY="touchScroll",d=t.PLUGIN_PRIORITY=200;var g=new WeakSet;class f extends l.BasePlugin{constructor(){super(...arguments),h(this,g),(0,r.default)(this,"scrollbars",[]),(0,r.default)(this,"clones",[]),(0,r.default)(this,"lockedCollection",!1),(0,r.default)(this,"freezeOverlays",!1)}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return d}static get SETTING_KEYS(){return!0}isEnabled(){return(0,a.isTouchSupported)()}enablePlugin(){this.enabled||(this.addHook("afterViewRender",(()=>c(g,this,p).call(this))),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.lockedCollection=!1,super.updatePlugin()}disablePlugin(){super.disablePlugin()}registerEvents(){this.addHook("beforeTouchScroll",(()=>c(g,this,m).call(this))),this.addHook("afterMomentumScroll",(()=>c(g,this,w).call(this)))}}function p(){if(this.lockedCollection)return;const{topOverlay:e,bottomOverlay:t,inlineStartOverlay:o,topInlineStartCornerOverlay:s,bottomInlineStartCornerOverlay:r}=this.hot.view._wt.wtOverlays;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(e),t.clone&&this.scrollbars.push(t),this.scrollbars.push(o),s&&this.scrollbars.push(s),r&&r.clone&&this.scrollbars.push(r),this.clones=[],e.needFullRender&&this.clones.push(e.clone.wtTable.holder.parentNode),t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),o.needFullRender&&this.clones.push(o.clone.wtTable.holder.parentNode),s&&this.clones.push(s.clone.wtTable.holder.parentNode),r&&r.clone&&this.clones.push(r.clone.wtTable.holder.parentNode)}function m(){this.freezeOverlays=!0,(0,i.arrayEach)(this.clones,(e=>{(0,n.addClass)(e,"hide-tween")}))}function w(){this.freezeOverlays=!1,(0,i.arrayEach)(this.clones,(e=>{(0,n.removeClass)(e,"hide-tween"),(0,n.addClass)(e,"show-tween")})),this.hot._registerTimeout((()=>{(0,i.arrayEach)(this.clones,(e=>{(0,n.removeClass)(e,"show-tween")}))}),400),(0,i.arrayEach)(this.scrollbars,(e=>{e.refresh(),e.resetFixedPosition()})),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}t.TouchScroll=f},63090:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(86657);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.TrimRows=s.TrimRows},86657:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(63333);var r=s(o(85707)),n=o(9458),i=o(57466),l=o(47154);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="trimRows",c=t.PLUGIN_PRIORITY=330;var u=new WeakSet;class d extends n.BasePlugin{constructor(){super(...arguments),a(this,u),(0,r.default)(this,"trimmedRowsMap",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new i.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",(()=>function(e,t,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")}(u,this,g).call(this))),super.enablePlugin())}updatePlugin(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution((()=>{this.trimmedRowsMap.clear(),(0,l.arrayEach)(e,(e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)}))}),!0),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("trimRows"),super.disablePlugin()}getTrimmedRows(){return this.trimmedRowsMap.getTrimmedIndexes()}trimRows(e){const t=this.getTrimmedRows(),o=this.isValidConfig(e);let s=t;o&&(s=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeTrimRow",t,s,o)&&(o&&this.hot.batchExecution((()=>{(0,l.arrayEach)(e,(e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)}))}),!0),this.hot.runHooks("afterTrimRow",t,s,o,o&&s.length>t.length))}trimRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.trimRows(t)}untrimRows(e){const t=this.getTrimmedRows(),o=this.isValidConfig(e);let s=t;const r=this.trimmedRowsMap.getValues().slice(),n=e.length>0;o&&n&&((0,l.arrayEach)(e,(e=>{r[e]=!1})),s=(0,l.arrayReduce)(r,((e,t,o)=>(t&&e.push(o),e)),[]));!1!==this.hot.runHooks("beforeUntrimRow",t,s,o&&n)&&(o&&n&&this.trimmedRowsMap.setValues(r),this.hot.runHooks("afterUntrimRow",t,s,o&&n,o&&s.length<t.length))}untrimRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.untrimRows(t)}isTrimmed(e){return this.trimmedRowsMap.getValueAtIndex(e)||!1}untrimAll(){this.untrimRows(this.getTrimmedRows())}isValidConfig(e){const t=this.hot.countSourceRows();return e.every((e=>Number.isInteger(e)&&e>=0&&e<t))}destroy(){super.destroy()}}function g(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution((()=>{(0,l.arrayEach)(e,(e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)}))}),!0)}t.TrimRows=d},99773:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834);t.BaseAction=class{undo(){throw new Error("Not implemented")}redo(){throw new Error("Not implemented")}}},60964:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(99773),i=o(76368),l=o(47154);class a extends n.BaseAction{constructor(e){let{stateBefore:t,range:o,type:s,alignment:n}=e;super(),(0,r.default)(this,"stateBefore",void 0),(0,r.default)(this,"range",void 0),(0,r.default)(this,"type",void 0),(0,r.default)(this,"alignment",void 0),this.stateBefore=t,this.range=o,this.type=s,this.alignment=n}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",((e,o,s,r)=>{t.done((()=>new a({stateBefore:e,range:o,type:s,alignment:r})))}))}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,i.align)(this.range,this.type,this.alignment,((t,o)=>e.getCellMeta(t,o)),((t,o,s,r)=>e.setCellMeta(t,o,s,r))),e.addHookOnce("afterViewRender",t),e.render()}}t.CellAlignmentAction=a},12590:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(14846),o(69655);var r=s(o(85707)),n=o(99773),i=o(77569);class l extends n.BaseAction{constructor(e){let{columns:t,finalIndex:o}=e;super(),(0,r.default)(this,"columns",void 0),(0,r.default)(this,"finalColumnIndex",void 0),this.columns=t.slice(),this.finalColumnIndex=o}static startRegisteringEvents(e,t){e.addHook("beforeColumnMove",((e,o)=>{!1!==e&&t.done((()=>new l({columns:e,finalIndex:o})))}))}undo(e,t){const o=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t);(0,i.getMoves)(this.columns,this.finalColumnIndex,e.columnIndexMapper.getNumberOfIndexes()).reverse().forEach((e=>{let{from:t,to:s}=e;t<s&&(s-=1),o.moveColumn(s,t)})),e.render(),e.deselectCell(),e.selectColumns(this.columns[0],this.columns[0]+this.columns.length-1)}redo(e,t){const o=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),o.moveColumns(this.columns.slice(),this.finalColumnIndex),e.render(),e.deselectCell(),e.selectColumns(this.finalColumnIndex,this.finalColumnIndex+this.columns.length-1)}}t.ColumnMoveAction=l},58531:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(99773);class i extends n.BaseAction{constructor(e){let{currentSortState:t,newSortState:o}=e;super(),(0,r.default)(this,"previousSortState",void 0),(0,r.default)(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=o}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",((e,o,s)=>{s&&t.done((()=>new i({currentSortState:e,newSortState:o})))}))}undo(e,t){const o=e.getPlugin("columnSorting"),s=e.getPlugin("multiColumnSorting"),r=s.isEnabled()?s:o;this.previousSortState.length?r.sort(this.previousSortState):r.clearSort(),t()}redo(e,t){const o=e.getPlugin("columnSorting"),s=e.getPlugin("multiColumnSorting");(s.isEnabled()?s:o).sort(this.nextSortState),t()}}t.ColumnSortAction=i},13707:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(99773);class i extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super(),(0,r.default)(this,"index",void 0),(0,r.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateCol",((e,o,s)=>{t.done((()=>new i({index:e,amount:o})),s)}))}undo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")}}t.CreateColumnAction=i},44645:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(99773);class i extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super(),(0,r.default)(this,"index",void 0),(0,r.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateRow",((e,o,s)=>{t.done((()=>new i({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=i},3169:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724),o(14846),o(6211),o(69655),o(90458);var r=s(o(85707)),n=o(99773),i=o(95016);class l extends n.BaseAction{constructor(e){let{changes:t,selected:o,countCols:s,countRows:n}=e;super(),(0,r.default)(this,"changes",void 0),(0,r.default)(this,"selected",void 0),(0,r.default)(this,"countCols",void 0),(0,r.default)(this,"countRows",void 0),this.changes=t,this.selected=o,this.countCols=s,this.countRows=n}static startRegisteringEvents(e,t){e.addHook("beforeChange",(function(o,s){const r=o&&o.length;if(!r)return;if(!o.find((e=>{const[,,t,o]=e;return t!==o})))return;t.done((()=>{const t=o.reduce(((e,t)=>(e.push([...t]),e)),[]);t.forEach((t=>{t[1]=e.propToCol(t[1])}));const s=r>1?this.getSelected():[[t[0][0],t[0][1]]];return new l({changes:t,selected:s,countCols:e.countCols(),countRows:e.countRows()})}),s)}))}undo(e,t){const o=(0,i.deepClone)(this.changes);for(let e=0,t=o.length;e<t;e++)o[e].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtCell(o,null,null,"UndoRedo.undo");const s=e.countRows()-this.countRows;s>0&&e.alter("remove_row",null,s,"UndoRedo.undo");const r=e.countCols()-this.countCols;r>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,r,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1)}redo(e,t){const o=(0,i.deepClone)(this.changes);for(let e=0,t=o.length;e<t;e++)o[e].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtCell(o,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)}}t.DataChangeAction=l},18286:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(14846),o(27458);var r=s(o(85707)),n=o(99773);class i extends n.BaseAction{constructor(e){let{conditionsStack:t,previousConditionsStack:o}=e;super(),(0,r.default)(this,"conditionsStack",void 0),(0,r.default)(this,"previousConditionsStack",void 0),this.conditionsStack=t,this.previousConditionsStack=o}static startRegisteringEvents(e,t){e.addHook("beforeFilter",((e,o)=>{t.done((()=>new i({conditionsStack:e,previousConditionsStack:o})))}))}undo(e,t){const o=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),o.conditionCollection.importAllConditions(this.previousConditionsStack),o.filter()}redo(e,t){const o=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),o.conditionCollection.importAllConditions(this.conditionsStack),o.filter()}}t.FiltersAction=i},77241:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerActions=function(e,t){[s.CellAlignmentAction,r.ColumnMoveAction,n.ColumnSortAction,i.CreateColumnAction,l.CreateRowAction,a.DataChangeAction,h.FiltersAction,c.MergeCellsAction,u.RemoveColumnAction,d.RemoveRowAction,g.RowMoveAction,f.UnmergeCellsAction].forEach((o=>o.startRegisteringEvents(e,t)))},o(14846),o(69655);var s=o(60964),r=o(12590),n=o(58531),i=o(13707),l=o(44645),a=o(3169),h=o(18286),c=o(48592),u=o(28363),d=o(70693),g=o(16352),f=o(93283)},48592:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(99773);class i extends n.BaseAction{constructor(e){let{data:t,cellRange:o}=e;super(),(0,r.default)(this,"cellRange",void 0),this.cellRange=o,this.data=t}static startRegisteringEvents(e,t){e.addHook("beforeMergeCells",((o,s)=>{if(s)return;const r=o.getTopStartCorner(),n=o.getBottomEndCorner(),l=e.getData(r.row,r.col,n.row,n.col);t.done((()=>new i({data:l,cellRange:o})))}))}undo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.unmergeRange(this.cellRange,!0);const s=this.cellRange.getTopStartCorner();e.populateFromArray(s.row,s.col,this.data,void 0,void 0,"MergeCells")}redo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.mergeRange(this.cellRange)}}t.MergeCellsAction=i},28363:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724),o(14846),o(69655);var r=s(o(85707)),n=o(99773),i=o(93972),l=o(36926),a=o(47154);class h extends n.BaseAction{constructor(e){let{index:t,indexes:o,data:s,headers:n,columnPositions:i,rowPositions:l,fixedColumnsStart:a,removedCellMetas:h}=e;super(),(0,r.default)(this,"index",void 0),(0,r.default)(this,"indexes",void 0),(0,r.default)(this,"data",void 0),(0,r.default)(this,"amount",void 0),(0,r.default)(this,"headers",void 0),(0,r.default)(this,"columnPositions",void 0),(0,r.default)(this,"rowPositions",void 0),(0,r.default)(this,"fixedColumnsStart",void 0),(0,r.default)(this,"removedCellMetas",void 0),this.index=t,this.indexes=o,this.data=s,this.amount=this.data[0].length,this.headers=n,this.columnPositions=i.slice(0),this.rowPositions=l.slice(0),this.fixedColumnsStart=a,this.removedCellMetas=h}static startRegisteringEvents(e,t){e.addHook("beforeRemoveCol",((o,s,r,n)=>{t.done((()=>{const t=e.getSourceDataArray(),r=(e.countCols()+o)%e.countCols(),n=r+s-1,a=[],c=[],u=[];(0,l.rangeEach)(t.length-1,(o=>{const s=[],i=t[o];(0,l.rangeEach)(r,n,(t=>{s.push(i[e.toPhysicalColumn(t)])})),a.push(s)})),(0,l.rangeEach)(s-1,(t=>{u.push(e.toPhysicalColumn(r+t))})),Array.isArray(e.getSettings().colHeaders)&&(0,l.rangeEach)(s-1,(t=>{c.push(e.getSettings().colHeaders[e.toPhysicalColumn(r+t)]||null)}));const d=e.columnIndexMapper.getIndexesSequence(),g=e.rowIndexMapper.getIndexesSequence();return new h({index:r,indexes:u,data:a,headers:c,columnPositions:d,rowPositions:g,fixedColumnsStart:e.getSettings().fixedColumnsStart,removedCellMetas:(0,i.getCellMetas)(e,0,e.countRows(),r,n)})}),n)}))}undo(e,t){e.getSettings().fixedColumnsStart=this.fixedColumnsStart;const o=this.indexes.slice(0).sort(),s=(e,t,s)=>s[this.indexes.indexOf(o[t])],r=this.data.length,n=[];for(let e=0;e<r;e++)n.push((0,a.arrayMap)(this.data[e],s));const i=(0,a.arrayMap)(this.headers,s),l=[];e.alter("insert_col_start",this.indexes[0],this.indexes.length,"UndoRedo.undo"),(0,a.arrayEach)(e.getSourceDataArray(),((e,t)=>{(0,a.arrayEach)(o,((o,s)=>{e[o]=n[t][s],l.push([t,o,e[o]])}))})),e.setSourceDataAtCell(l,void 0,void 0,"UndoRedo.undo"),void 0!==this.headers&&(0,a.arrayEach)(i,((t,s)=>{e.getSettings().colHeaders[o[s]]=t})),this.removedCellMetas.forEach((t=>{let[o,s,r]=t;e.setCellMetaObject(o,s,r)})),e.batchExecution((()=>{e.rowIndexMapper.setIndexesSequence(this.rowPositions),e.columnIndexMapper.setIndexesSequence(this.columnPositions)}),!0),e.addHookOnce("afterViewRender",t),e.render()}redo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")}}t.RemoveColumnAction=h},70693:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724),o(14846),o(69655);var r=s(o(85707)),n=o(99773),i=o(93972),l=o(95016);class a extends n.BaseAction{constructor(e){let{index:t,data:o,fixedRowsBottom:s,fixedRowsTop:n,rowIndexesSequence:i,removedCellMetas:l}=e;super(),(0,r.default)(this,"index",void 0),(0,r.default)(this,"data",void 0),(0,r.default)(this,"fixedRowsBottom",void 0),(0,r.default)(this,"fixedRowsTop",void 0),(0,r.default)(this,"rowIndexesSequence",void 0),(0,r.default)(this,"removedCellMetas",void 0),this.index=t,this.data=o,this.fixedRowsBottom=s,this.fixedRowsTop=n,this.rowIndexesSequence=i,this.removedCellMetas=l}static startRegisteringEvents(e,t){e.addHook("beforeRemoveRow",((o,s,r,n)=>{t.done((()=>{const t=e.toPhysicalRow(o),r=t+s-1,n=(0,l.deepClone)(e.getSourceData(t,0,t+s-1,e.countSourceCols()-1));return new a({index:t,data:n,fixedRowsBottom:e.getSettings().fixedRowsBottom,fixedRowsTop:e.getSettings().fixedRowsTop,rowIndexesSequence:e.rowIndexMapper.getIndexesSequence(),removedCellMetas:(0,i.getCellMetas)(e,t,r,0,e.countCols()-1)})}),n)}))}undo(e,t){const o=e.getSettings(),s=[];o.fixedRowsBottom=this.fixedRowsBottom,o.fixedRowsTop=this.fixedRowsTop,this.data.forEach(((e,t)=>{Object.keys(e).forEach((o=>{const r=parseInt(o,10);s.push([this.index+t,isNaN(r)?o:r,e[o]])}))})),e.alter("insert_row_above",this.index,this.data.length,"UndoRedo.undo"),this.removedCellMetas.forEach((t=>{let[o,s,r]=t;e.setCellMetaObject(o,s,r)})),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(s,null,null,"UndoRedo.undo"),e.rowIndexMapper.setIndexesSequence(this.rowIndexesSequence)}redo(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")}}t.RemoveRowAction=a},16352:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(14846),o(69655);var r=s(o(85707)),n=o(99773),i=o(77569);class l extends n.BaseAction{constructor(e){let{rows:t,finalIndex:o}=e;super(),(0,r.default)(this,"rows",void 0),(0,r.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 l({rows:e,finalIndex:o})))}))}undo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t);(0,i.getMoves)(this.rows,this.finalRowIndex,e.rowIndexMapper.getNumberOfIndexes()).reverse().forEach((e=>{let{from:t,to:s}=e;t<s&&(s-=1),o.moveRow(s,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=l},93283:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707)),n=o(99773);class i extends n.BaseAction{constructor(e){let{cellRange:t}=e;super(),(0,r.default)(this,"cellRange",void 0),this.cellRange=t}static startRegisteringEvents(e,t){e.addHook("afterUnmergeCells",((e,o)=>{o||t.done((()=>new i({cellRange:e})))}))}undo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.mergeRange(this.cellRange,!0)}redo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.unmergeRange(this.cellRange,!0),e.render()}}t.UnmergeCellsAction=i},37593:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(99287);t.PLUGIN_KEY=s.PLUGIN_KEY,t.PLUGIN_PRIORITY=s.PLUGIN_PRIORITY,t.UndoRedo=s.UndoRedo},99287:(e,t,o)=>{"use strict";o(67834);var s=o(96784);t.__esModule=!0;var r=s(o(85707));o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var n=o(9458),i=o(29398),l=o(95016),a=o(20944),h=o(59350),c=o(77241);function u(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function d(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 g="undoRedo",f=t.PLUGIN_KEY="undoRedo",p=t.PLUGIN_PRIORITY=1e3;i.Hooks.getSingleton().register("beforeUndo"),i.Hooks.getSingleton().register("afterUndo"),i.Hooks.getSingleton().register("beforeRedo"),i.Hooks.getSingleton().register("afterRedo");const m=new Set;var w=new WeakSet;class C extends n.BasePlugin{static get PLUGIN_KEY(){return f}static get PLUGIN_PRIORITY(){return p}static get SETTING_KEYS(){return!0}constructor(e){super(e),u(this,w),(0,r.default)(this,"doneActions",[]),(0,r.default)(this,"undoneActions",[]),(0,r.default)(this,"ignoreNewActions",!1),(0,c.registerActions)(e,this)}isEnabled(){return!!this.hot.getSettings().undo}enablePlugin(){var e=this;this.enabled||(this.addHook("afterChange",(function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return d(w,e,v).call(e,...o)})),this.registerShortcuts(),d(w,this,y).call(this),super.enablePlugin())}disablePlugin(){super.disablePlugin(),this.clear(),this.unregisterShortcuts(),d(w,this,E).call(this)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("grid"),t={runOnlyIf:e=>!e.altKey,group:g};e.addShortcuts([{keys:[["Control/Meta","z"]],callback:()=>{this.undo()}},{keys:[["Control/Meta","y"],["Control/Meta","Shift","z"]],callback:()=>{this.redo()}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(g)}done(e,t){if(this.ignoreNewActions)return;if("UndoRedo.undo"===t||"UndoRedo.redo"===t||"auto"===t)return;const o=this.doneActions.slice();if(!1===this.hot.runHooks("beforeUndoStackChange",o,t))return;const s=e(),r=this.undoneActions.slice();this.doneActions.push(s),this.hot.runHooks("afterUndoStackChange",o,this.doneActions.slice()),this.hot.runHooks("beforeRedoStackChange",r),this.undoneActions.length=0,this.hot.runHooks("afterRedoStackChange",r,this.undoneActions.slice())}undo(){if(!this.isUndoAvailable())return;const e=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",e);const t=this.doneActions.pop();this.hot.runHooks("afterUndoStackChange",e,this.doneActions.slice());const o=(0,l.deepClone)(t);if(!1===this.hot.runHooks("beforeUndo",o))return;this.ignoreNewActions=!0;const s=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",s),t.undo(this.hot,(()=>{this.ignoreNewActions=!1,this.undoneActions.push(t)})),this.hot.runHooks("afterRedoStackChange",s,this.undoneActions.slice()),this.hot.runHooks("afterUndo",o)}redo(){if(!this.isRedoAvailable())return;const e=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",e);const t=this.undoneActions.pop();this.hot.runHooks("afterRedoStackChange",e,this.undoneActions.slice());const o=(0,l.deepClone)(t);if(!1===this.hot.runHooks("beforeRedo",o))return;this.ignoreNewActions=!0;const s=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",s),t.redo(this.hot,(()=>{this.ignoreNewActions=!1,this.doneActions.push(t)})),this.hot.runHooks("afterUndoStackChange",s,this.doneActions.slice()),this.hot.runHooks("afterRedo",o)}isUndoAvailable(){return this.doneActions.length>0}isRedoAvailable(){return this.undoneActions.length>0}clear(){this.doneActions.length=0,this.undoneActions.length=0}destroy(){this.clear(),this.doneActions=null,this.undoneActions=null,super.destroy()}}function v(e,t){"loadData"===t&&this.clear()}function y(){const e=e=>{m.has(e)||((0,h.warn)(a.toSingleLine`The "${e}" method is deprecated and it will be removed\x20
|
@@ -91,4 +91,4 @@ the last node, the show column modification can be applied.`);const{crossHiddenC
|
|
91
91
|
columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);const s=(0,g.normalizeSelectionFactory)(o,{createCellCoords:function(){return t.tableProps.createCellCoords(...arguments)},createCellRange:function(){return t.tableProps.createCellRange(...arguments)},propToCol:e=>this.tableProps.propToCol(e),keepDirection:!0}),r=this.settings.navigableHeaders,n={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:r?this.tableProps.countRowHeaders():0,countColHeaders:r?this.tableProps.countColHeaders():0},i=!e.some((e=>{const t=s(e),o=t.isValid(n);return!(o&&!t.containsHeaders()||o&&t.containsHeaders()&&t.isSingleHeader())}));return i&&(this.clear(),this.setExpectedLayers(e.length),(0,c.arrayEach)(e,(e=>{const{from:t,to:o}=s(e);this.setRangeStartOnly(t.clone(),!1),this.setRangeEnd(o.clone())})),this.finish()),i}selectColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const s="string"==typeof e?this.tableProps.propToCol(e):e,r="string"==typeof t?this.tableProps.propToCol(t):t,n=this.tableProps.countRows(),i=this.tableProps.countCols(),l=this.tableProps.countColHeaders(),a=0===l?0:-l,c=this.tableProps.createCellCoords(a,s),u=this.tableProps.createCellCoords(n-1,r),d=this.tableProps.createCellRange(c,c,u).isValid({countRows:n,countCols:i,countRowHeaders:0,countColHeaders:l});if(d){let e=0,t=0;Number.isInteger(null==o?void 0:o.row)&&Number.isInteger(null==o?void 0:o.col)?(e=(0,h.clamp)(o.row,a,n-1),t=(0,h.clamp)(o.col,Math.min(s,r),Math.max(s,r))):(e=(0,h.clamp)(o,a,n-1),t=s);const i=this.tableProps.createCellCoords(e,t),c=0===l?0:(0,h.clamp)(i.row,a,-1),u=n-1,d=this.tableProps.createCellCoords(c,s),g=this.tableProps.createCellCoords(u,r);this.runLocalHooks("beforeSelectColumns",d,g,i),d.row=c,g.row=u,this.setRangeStartOnly(d,void 0,i),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.runLocalHooks("afterSelectColumns",d,g,i),this.finish()}return d}selectRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const s=this.tableProps.countRows(),r=this.tableProps.countCols(),n=this.tableProps.countRowHeaders(),i=0===n?0:-n,l=this.tableProps.createCellCoords(e,i),a=this.tableProps.createCellCoords(t,r-1),c=this.tableProps.createCellRange(l,l,a).isValid({countRows:s,countCols:r,countRowHeaders:n,countColHeaders:0});if(c){let s=0,l=0;Number.isInteger(null==o?void 0:o.row)&&Number.isInteger(null==o?void 0:o.col)?(s=(0,h.clamp)(o.row,Math.min(e,t),Math.max(e,t)),l=(0,h.clamp)(o.col,i,r-1)):(s=e,l=(0,h.clamp)(o,i,r-1));const a=this.tableProps.createCellCoords(s,l),c=0===n?0:(0,h.clamp)(a.col,i,-1),u=r-1,d=this.tableProps.createCellCoords(e,c),g=this.tableProps.createCellCoords(t,u);this.runLocalHooks("beforeSelectRows",d,g,a),d.col=c,g.col=u,this.setRangeStartOnly(d,void 0,a),this.selectedByRowHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.runLocalHooks("afterSelectRows",d,g,a),this.finish()}return c}refresh(){if(!this.isSelected())return;const e=this.tableProps.countRows(),t=this.tableProps.countCols();if(0===e||0===t)return void this.deselect();const o=this.selectedRange.peekByIndex(this.selectedRange.size()-1),{from:s,to:r,highlight:n}=o;this.clear(),n.assign({row:(0,h.clamp)(n.row,-1/0,e-1),col:(0,h.clamp)(n.col,-1/0,t-1)}),s.assign({row:(0,h.clamp)(s.row,-1/0,e-1),col:(0,h.clamp)(s.col,-1/0,t-1)}),r.assign({row:(0,h.clamp)(r.row,0,e-1),col:(0,h.clamp)(r.col,0,t-1)}),this.selectedRange.ranges.push(o),this.highlight.getFocus().add(n).commit().syncWith(o),this.applyAndCommit(o)}commit(){if(this.highlight.getCustomSelections().forEach((e=>{e.commit()})),!this.isSelected())return;const e=this.getLayerLevel(),t=this.selectedRange.current();this.highlight.isEnabledFor(n.FOCUS_TYPE,t.highlight)&&this.highlight.getFocus().commit().syncWith(t);for(let e=0;e<this.selectedRange.size();e+=1){this.highlight.useLayerLevel(e);const t=this.highlight.createArea(),o=this.highlight.createLayeredArea(),s=this.highlight.createRowHeader(),r=this.highlight.createColumnHeader(),n=this.highlight.createActiveRowHeader(),i=this.highlight.createActiveColumnHeader(),l=this.highlight.createActiveCornerHeader(),a=this.highlight.createRowHighlight(),h=this.highlight.createColumnHighlight();t.commit(),o.commit(),s.commit(),r.commit(),n.commit(),i.commit(),l.commit(),a.commit(),h.commit()}this.highlight.useLayerLevel(e)}}(0,l.mixin)(M,u.default);t.default=M},63895:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=o(95016),n=s(o(32943));function i(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 a(e,t){return e.get(c(e,t))}function h(e,t,o){return e.set(c(e,t),o),o}function c(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 u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakSet;class p{constructor(e,t){var o,s;l(o=this,s=f),s.add(o),i(this,u,void 0),i(this,d,void 0),i(this,g,{x:0,y:0}),h(u,this,e),h(d,this,t)}transformStart(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=a(d,this).createCellCoords(e,t);let n=a(u,this).current().highlight;const i=a(d,this).visualToRenderableCoords(n);let l=0,h=0;if(this.runLocalHooks("beforeTransformStart",s),null!==i.row&&null!==i.col){const{width:e,height:t}=c(f,this,w).call(this),{row:i,col:u}=c(f,this,y).call(this,n),g=a(d,this).fixedRowsBottom(),p=a(d,this).minSpareRows(),C=a(d,this).minSpareCols(),v=a(d,this).autoWrapRow(),S=a(d,this).autoWrapCol(),R=a(d,this).createCellCoords(i+s.row,u+s.col);if(R.row>=t){const s=(0,r.createObjectPropListener)(o&&p>0&&0===g),n=R.col+1,i=a(d,this).createCellCoords(R.row-t,n>=e?n-e:n);this.runLocalHooks("beforeColumnWrap",s,c(f,this,E).call(this,i),n>=e),s.value?this.runLocalHooks("insertRowRequire",a(d,this).countRenderableRows()):S&&R.assign(i)}else if(R.row<0){const o=(0,r.createObjectPropListener)(S),s=R.col-1,n=a(d,this).createCellCoords(t+R.row,s<0?e+s:s);this.runLocalHooks("beforeColumnWrap",o,c(f,this,E).call(this,n),s<0),S&&R.assign(n)}if(R.col>=e){const s=(0,r.createObjectPropListener)(o&&C>0),n=R.row+1,i=a(d,this).createCellCoords(n>=t?n-t:n,R.col-e);this.runLocalHooks("beforeRowWrap",s,c(f,this,E).call(this,i),n>=t),s.value?this.runLocalHooks("insertColRequire",a(d,this).countRenderableColumns()):v&&R.assign(i)}else if(R.col<0){const o=(0,r.createObjectPropListener)(v),s=R.row-1,n=a(d,this).createCellCoords(s<0?t+s:s,e+R.col);this.runLocalHooks("beforeRowWrap",o,c(f,this,E).call(this,n),s<0),v&&R.assign(n)}const{rowDir:b,colDir:_}=c(f,this,m).call(this,R);l=b,h=_,n=c(f,this,E).call(this,R)}return this.runLocalHooks("afterTransformStart",n,l,h),n}transformEnd(e,t){const o=a(d,this).createCellCoords(e,t),s=a(u,this).current(),r=a(d,this).visualToRenderableCoords(s.highlight),n=c(f,this,C).call(this,s.to.row,s.from.row),i=c(f,this,v).call(this,s.to.col,s.from.col),l=s.to.clone();let h=0,g=0;if(this.runLocalHooks("beforeTransformEnd",o),null!==r.row&&null!==r.col&&null!==n&&null!==i){const{row:e,col:t}=c(f,this,y).call(this,s.highlight),r=a(d,this).createCellCoords(n+o.row,i+o.col),u=s.getTopStartCorner(),p=s.getTopEndCorner(),w=s.getBottomEndCorner();if(o.col<0&&i>=t&&r.col<t){const e=r.col-t;r.col=c(f,this,v).call(this,u.col,p.col)+e}else if(o.col>0&&i<=t&&r.col>t){const e=c(f,this,v).call(this,p.col,u.col),t=Math.max(r.col-e,1);r.col=e+t}if(o.row<0&&n>=e&&r.row<e){const t=r.row-e;r.row=c(f,this,C).call(this,u.row,w.row)+t}else if(o.row>0&&n<=e&&r.row>e){const e=c(f,this,C).call(this,w.row,u.row),t=Math.max(r.row-e,1);r.row=e+t}const{rowDir:S,colDir:R}=c(f,this,m).call(this,r);h=S,g=R;const b=c(f,this,E).call(this,r);0===o.row&&0!==o.col?l.col=b.col:0!==o.row&&0===o.col?l.row=b.row:(l.row=b.row,l.col=b.col)}return this.runLocalHooks("afterTransformEnd",l,h,g),l}setOffsetSize(e){let{x:t,y:o}=e;h(g,this,{x:t,y:o})}resetOffsetSize(){h(g,this,{x:0,y:0})}}function m(e){const{width:t,height:o}=c(f,this,w).call(this);let s=0,r=0;return e.row<0?(s=-1,e.row=0):e.row>0&&e.row>=o&&(s=1,e.row=o-1),e.col<0?(r=-1,e.col=0):e.col>0&&e.col>=t&&(r=1,e.col=t-1),{rowDir:s,colDir:r}}function w(){return{width:a(g,this).x+a(d,this).countRenderableColumns(),height:a(g,this).y+a(d,this).countRenderableRows()}}function C(e,t){const o=a(d,this).findFirstNonHiddenRenderableRow(e,t);return null===o?null:a(g,this).y+o}function v(e,t){const o=a(d,this).findFirstNonHiddenRenderableColumn(e,t);return null===o?null:a(g,this).x+o}function y(e){const{row:t,col:o}=a(d,this).visualToRenderableCoords(e);if(null===t||null===o)throw new Error("Renderable coords are not visible.");return a(d,this).createCellCoords(a(g,this).y+t,a(g,this).x+o)}function E(e){const t=e.clone();return t.col=e.col-a(g,this).x,t.row=e.row-a(g,this).y,a(d,this).renderableToVisualCoords(t)}(0,r.mixin)(p,n.default);t.default=p},85569:(e,t,o)=>{"use strict";t.__esModule=!0,t.detectSelectionType=f,t.normalizeSelectionFactory=p,t.transformSelectionToColumnDistance=function(e){const t=f(e.getSelected());if(t===i||t===l)return[];const o=p(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),s=new Set;(0,r.arrayEach)(e.getSelected(),(e=>{const{from:t,to:n}=o(e),i=Math.max(t.col,0),l=n.col-i+1;(0,r.arrayEach)(Array.from(new Array(l),((e,t)=>i+t)),(e=>{s.has(e)||s.add(e)}))}));const n=Array.from(s).sort(((e,t)=>e-t));return(0,r.arrayReduce)(n,((e,t,o,s)=>(0!==o&&t===s[o-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e)),[])},t.transformSelectionToRowDistance=function(e){const t=f(e.getSelected());if(t===i||t===l)return[];const o=p(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),s=new Set;(0,r.arrayEach)(e.getSelected(),(e=>{const{from:t,to:n}=o(e),i=Math.max(t.row,0),l=n.row-i+1;(0,r.arrayEach)(Array.from(new Array(l),((e,t)=>i+t)),(e=>{s.has(e)||s.add(e)}))}));const n=Array.from(s).sort(((e,t)=>e-t));return(0,r.arrayReduce)(n,((e,t,o,s)=>(0!==o&&t===s[o-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e)),[])},o(67834),o(15724),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(75568);var s=o(7749),r=o(47154),n=o(95768);const i=t.SELECTION_TYPE_UNRECOGNIZED=0,l=t.SELECTION_TYPE_EMPTY=1,a=t.SELECTION_TYPE_ARRAY=2,h=t.SELECTION_TYPE_OBJECT=3,c=t.SELECTION_TYPES=[h,a],u=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],d=Symbol("root"),g=Symbol("child");function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(t!==d&&t!==g)throw new Error("The second argument is used internally only and cannot be overwritten.");const o=Array.isArray(e),r=t===d;let n=i;if(o){const t=e[0];if(0===e.length)n=l;else if(r&&t instanceof s.CellRange)n=h;else if(r&&Array.isArray(t))n=f(t,g);else if(e.length>=2&&e.length<=4){!e.some(((e,t)=>!u[t].includes(typeof e)))&&(n=a)}}return n}function p(e){let{createCellCoords:t,createCellRange:o,keepDirection:s=!1,propToCol:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!c.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(i){const l=e===h;let a=l?i.from.row:i[0],c=l?i.from.col:i[1],u=l?i.to.row:i[2],d=l?i.to.col:i[3];if("function"==typeof r&&("string"==typeof c&&(c=r(c)),"string"==typeof d&&(d=r(d))),(0,n.isUndefined)(u)&&(u=a),(0,n.isUndefined)(d)&&(d=c),!s){const e=a,t=c,o=u,s=d;a=Math.min(e,o),c=Math.min(t,s),u=Math.max(e,o),d=Math.max(t,s)}const g=t(a,c),f=t(u,d);return o(g,g,f)}}},43377:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}}},88743:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(95605);t.command={name:"editorCloseAndSaveByArrowKeys",callback(e,t,o){const r=e._getEditorManager(),n=r.getActiveEditor();n.isInFullEditMode()&&n.state===s.EDITOR_STATE.EDITING||(r.closeEditorAndSaveChanges(),e.getSelected()&&(o.includes("arrowdown")?e.selection.transformStart(1,0):o.includes("arrowup")?e.selection.transformStart(-1,0):o.includes("arrowleft")?e.selection.transformStart(0,-1*e.getDirectionFactor()):o.includes("arrowright")&&e.selection.transformStart(0,e.getDirectionFactor())),t.preventDefault())}}},73240:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSaveByEnter",callback(e,t){const o=e._getEditorManager();o.closeEditorAndSaveChanges(t.ctrlKey||t.metaKey),o.moveSelectionAfterEnter(t)}}},24399:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseWithoutSaving",callback(e){const t=e._getEditorManager();t.closeEditorAndRestoreOriginalValue(e.getShortcutManager().isCtrlPressed()),t.activeEditor.focus()}}},63003:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorFastOpen",callback(e,t){const{highlight:o}=e.getSelectedRangeLast();o.isHeader()||e._getEditorManager().openEditor(null,t,!0)}}},38909:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[s.command,r.command,n.command,i.command,l.command,a.command]};var s=o(43377),r=o(88743),n=o(73240),i=o(24399),l=o(63003),a=o(91913)},91913:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(40892);t.command={name:"editorOpen",callback(e,t,o){const r=e._getEditorManager(),n=e.getSelectedRangeLast(),{highlight:i}=n;if(e.selection.isMultiple()&&!n.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const s=e.getSettings(),r="function"==typeof s.enterMoves?s.enterMoves(t):s.enterMoves;o.includes("shift")?e.selection.transformFocus(-r.row,-r.col):e.selection.transformFocus(r.row,r.col)}else i.isHeader()||(e.getSettings().enterBeginsEditing?r.cellProperties.readOnly?r.moveSelectionAfterEnter(t):r.openEditor(null,t,!0):r.moveSelectionAfterEnter(t),(0,s.stopImmediatePropagation)(t))}}},70090:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"emptySelectedCells",callback(e){e.emptySelectedCells(),e._getEditorManager().prepareEditor()}}},21989:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDown",callback(e){const{highlight:t}=e.getSelectedRangeLast();e.selection.isSelectedByColumnHeader()||e.selection.isSelectedByCorner()||!(t.isCell()||t.isHeader()&&e.selection.isSelectedByRowHeader())||e.selection.transformEnd(1,0)}}},89481:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDownByViewportHeight",callback(e){const{to:t}=e.getSelectedRangeLast(),o=Math.min(t.row+e.countVisibleRows(),e.countRows()-1),s=e.rowIndexMapper.getNearestNotHiddenIndex(o,-1);if(null!==s){const o=e._createCellCoords(s,t.col),r=t.row-e.getFirstFullyVisibleRow(),n=Math.min(o.row-r,e.countRows()-1);e.selection.setRangeEnd(o),e.scrollViewportTo({row:n,verticalSnap:"top",horizontalSnap:"start"})}}}},76153:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[s.command,r.command,n.command,i.command,l.command,a.command,h.command,c.command,u.command,d.command,g.command,f.command,p.command,m.command]};var s=o(21989),r=o(89481),n=o(83204),i=o(26815),l=o(88525),a=o(19260),h=o(39977),c=o(69752),u=o(44766),d=o(65993),g=o(54404),f=o(26509),p=o(41500),m=o(51532)},83204:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionLeft",callback(e){const{highlight:t}=e.getSelectedRangeLast();e.selection.isSelectedByRowHeader()||e.selection.isSelectedByCorner()||!(t.isCell()||t.isHeader()&&e.selection.isSelectedByColumnHeader())||e.selection.transformEnd(0,-1*e.getDirectionFactor())}}},26815:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{highlight:t}=e.getSelectedRangeLast();e.selection.isSelectedByRowHeader()||e.selection.isSelectedByCorner()||!(t.isCell()||t.isHeader()&&e.selection.isSelectedByColumnHeader())||e.selection.transformEnd(0,e.getDirectionFactor())}}},88525:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToColumns",callback(e){const{highlight:t,from:o,to:s}=e.getSelectedRangeLast();e.selection.isSelectedByRowHeader()?e.selection.selectAll(!0,!0):e.selectColumns(o.col,s.col,t)}}},19260:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:o}=e,{highlight:s,from:r,to:n}=e.getSelectedRangeLast(),i=s.isHeader()&&e.selection.isSelectedByRowHeader();if(s.isCell()||i){const l=o.getNearestNotHiddenIndex(e.countRows()-1,-1),a=r.clone();a.row=s.row,t.setRangeStart(a,void 0,!1,s.clone()),i&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(l,n.col))}}}},39977:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:s,from:r,to:n}=e.getSelectedRangeLast();if(!e.selection.isSelectedByRowHeader()&&!e.selection.isSelectedByCorner()&&s.isCell()){const i=o.getNearestNotHiddenIndex(e.countCols()-1,-1),l=r.clone();l.col=s.col,t.setRangeStart(l,void 0,!1,s.clone()),t.setRangeEnd(e._createCellCoords(n.row,i))}}}},69752:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:s,from:r,to:n}=e.getSelectedRangeLast();if(!e.selection.isSelectedByRowHeader()&&!e.selection.isSelectedByCorner()&&s.isCell()){const i=parseInt(e.getSettings().fixedColumnsStart,10),l=o.getNearestNotHiddenIndex(i,1),a=r.clone();a.col=s.col,t.setRangeStart(a,void 0,!1,s.clone()),t.setRangeEnd(e._createCellCoords(n.row,l))}}}},44766:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:s,from:r,to:n}=e.getSelectedRangeLast(),i=s.isHeader()&&e.selection.isSelectedByColumnHeader();if(s.isCell()||i){const l=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),a=r.clone();a.col=s.col,t.setRangeStart(a,void 0,!1,s.clone()),i&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(n.row,l))}}}},65993:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:s,from:r,to:n}=e.getSelectedRangeLast(),i=s.isHeader()&&e.selection.isSelectedByColumnHeader();if(s.isCell()||i){const l=o.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]),a=r.clone();a.col=s.col,t.setRangeStart(a,void 0,!1,s.clone()),i&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(n.row,l))}}}},54404:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostTop",callback(e){const{selection:t,rowIndexMapper:o}=e,{highlight:s,from:r,to:n}=e.getSelectedRangeLast(),i=s.isHeader()&&e.selection.isSelectedByRowHeader();if(s.isCell()||i){const l=o.getNearestNotHiddenIndex(0,1),a=r.clone();a.row=s.row,t.setRangeStart(a,void 0,!1,s.clone()),i&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(l,n.col))}}}},26509:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToRows",callback(e){const{highlight:t,from:o,to:s}=e.getSelectedRangeLast();e.selection.isSelectedByColumnHeader()?e.selection.selectAll(!0,!0):e.selectRows(o.row,s.row,t)}}},41500:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUp",callback(e){const{highlight:t}=e.getSelectedRangeLast();e.selection.isSelectedByColumnHeader()||e.selection.isSelectedByCorner()||!(t.isCell()||t.isHeader()&&e.selection.isSelectedByRowHeader())||e.selection.transformEnd(-1,0)}}},51532:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{to:t}=e.getSelectedRangeLast(),o=Math.max(t.row-e.countVisibleRows(),0),s=e.rowIndexMapper.getNearestNotHiddenIndex(o,1);if(null!==s){const o=e._createCellCoords(s,t.col),r=t.row-e.getFirstFullyVisibleRow(),n=Math.max(o.row-r,0);e.selection.setRangeEnd(o),e.scrollViewportTo({row:n,verticalSnap:"top",horizontalSnap:"start"})}}}},64575:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return u.forEach((o=>{let{name:s,callback:r}=o;t[s]=function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return r(e,...o)}})),t},o(14846),o(69655);var s=o(38909),r=o(76153),n=o(19929),i=o(70090),l=o(87894),a=o(58143),h=o(13238),c=o(29999);const u=[...(0,s.getAllCommands)(),...(0,r.getAllCommands)(),...(0,n.getAllCommands)(),i.command,l.command,a.command,h.command,c.command]},43109:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDown",callback(e){let{selection:t}=e;t.transformStart(1,0)}}},89289:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDownByViewportHeight",callback(e){const{navigableHeaders:t}=e.getSettings(),o=t?e.countColHeaders():0,{row:s}=e.getSelectedRangeLast().highlight;let r=e.countVisibleRows()+o;r=0===r?1:r,s===e.countRows()-1?r=1:s+r>e.countRows()&&(r=e.countRows()-s-1),e.selection.transformStart(r,0),e.getSelectedRangeLast().highlight.row<0&&e.scrollViewportTo({row:0})}}},19929:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[s.command,r.command,n.command,i.command,l.command,a.command,h.command,c.command,u.command,d.command,g.command,f.command,p.command,m.command,w.command,C.command]};var s=o(43109),r=o(89289),n=o(59355),i=o(14758),l=o(93764),a=o(11263),h=o(66076),c=o(36584),u=o(51977),d=o(16824),g=o(33246),f=o(97545),p=o(13028),m=o(39137),w=o(42652),C=o(45484)},59355:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionInlineEnd",callback(e,t){const o=e.getSettings(),s=e.getSelectedRangeLast(),r="function"==typeof o.tabMoves?o.tabMoves(t):o.tabMoves;e.selection.isMultiple()&&!s.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?e.selection.transformFocus(-r.row,-r.col):e.selection.transformStart(-r.row,-r.col)}}},14758:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionInlineStart",callback(e,t){const o=e.getSettings(),s=e.getSelectedRangeLast(),r="function"==typeof o.tabMoves?o.tabMoves(t):o.tabMoves;e.selection.isMultiple()&&!s.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?e.selection.transformFocus(r.row,r.col):e.selection.transformStart(r.row,r.col)}}},93764:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionLeft",callback(e){e.selection.transformStart(0,-1*e.getDirectionFactor())}}},11263:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionRight",callback(e){e.selection.transformStart(0,e.getDirectionFactor())}}},66076:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottom",callback(e){const{col:t}=e.getSelectedRangeLast().highlight;let o=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===o&&(o=-1),e.selection.setRangeStart(e._createCellCoords(o,t))}}},36584:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:o,columnIndexMapper:s}=e,r=parseInt(e.getSettings().fixedRowsBottom,10),n=o.getNearestNotHiddenIndex(e.countRows()-r-1,-1),i=s.getNearestNotHiddenIndex(e.countCols()-1,-1);t.setRangeStart(e._createCellCoords(n,i))}}},51977:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e;t.setRangeStart(e._createCellCoords(e.getSelectedRangeLast().highlight.row,o.getNearestNotHiddenIndex(e.countCols()-1,-1)))}}},16824:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:o}=e,s=parseInt(e.getSettings().fixedColumnsStart,10),r=e.getSelectedRangeLast().highlight.row,n=o.getNearestNotHiddenIndex(s,1);t.setRangeStart(e._createCellCoords(r,n))}}},33246:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,s=e.getSelectedRangeLast().highlight.row;let r=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]);null===r&&(r=e.isRtl()?-1:-e.countRowHeaders()),t.setRangeStart(e._createCellCoords(s,r))}}},97545:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:o}=e,{row:s}=e.getSelectedRangeLast().highlight;let r=o.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]);null===r&&(r=e.isRtl()?-e.countRowHeaders():-1),t.setRangeStart(e._createCellCoords(s,r))}}},13028:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostTop",callback(e){const{col:t}=e.getSelectedRangeLast().highlight;let o=e.rowIndexMapper.getNearestNotHiddenIndex(0,1);null===o&&(o=-e.countColHeaders()),e.selection.setRangeStart(e._createCellCoords(o,t))}}},39137:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostTopInlineStart",callback(e){const{selection:t,rowIndexMapper:o,columnIndexMapper:s}=e,r=parseInt(e.getSettings().fixedRowsTop,10),n=parseInt(e.getSettings().fixedColumnsStart,10),i=o.getNearestNotHiddenIndex(r,1),l=s.getNearestNotHiddenIndex(n,1);t.setRangeStart(e._createCellCoords(i,l))}}},42652:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUp",callback(e){let{selection:t}=e;t.transformStart(-1,0)}}},45484:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUpByViewportHight",callback(e){const{navigableHeaders:t}=e.getSettings(),o=t?e.countColHeaders():0,{row:s}=e.getSelectedRangeLast().highlight;let r=e.countVisibleRows()+o;r=0===r?-1:-r,s===-o?r=-1:s+r<o&&(r=-(s+o)),e.selection.transformStart(r,0),e.getSelectedRangeLast().highlight.row<0&&e.scrollViewportTo({row:0})}}},29999:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"populateSelectedCellsData",callback(e){const t=e.getSelectedRange(),{row:o,col:s}=t[t.length-1].highlight.normalize(),r=e.getDataAtCell(o,s),n=new Map;for(let i=0;i<t.length;i++)t[i].forAll(((t,i)=>{if(t>=0&&i>=0&&(t!==o||i!==s)){const{readOnly:o}=e.getCellMeta(t,i);o||n.set(`${t}x${i}`,[t,i,r])}}));e.setDataAtCell(Array.from(n.values()))}}},87894:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeLast(),o=e.getFirstFullyVisibleRow()-1,s=e.getFirstFullyVisibleColumn()-1,r=e.getLastFullyVisibleRow()+1,n=e.getLastFullyVisibleColumn()+1,i=e._createCellCoords(o,s),l=e._createCellCoords(r,n);if(!e._createCellRange(i,i,l).includes(t)&&(t.row>=0||t.col>=0)){const o={};if(t.col>=0){const s=Math.floor(e.countVisibleCols()/2);o.col=Math.max(t.col-s,0)}if(t.row>=0){const s=Math.floor(e.countVisibleRows()/2);o.row=Math.max(t.row-s,0)}e.scrollViewportTo({...o,verticalSnap:"top",horizontalSnap:"start"})}}}},58143:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCells",callback(e){e.selection.selectAll(!0,!0,{disableHeadersHighlight:!0})}}},13238:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCellsAndHeaders",callback(e){e.selection.selectAll(!0,!0,{disableHeadersHighlight:!1})}}},19341:(e,t)=>{"use strict";t.__esModule=!0;t.GRID_GROUP="gridDefault",t.EDITOR_EDIT_GROUP="editorManager.handlingEditor"},21087:(e,t,o)=>{"use strict";t.__esModule=!0,t.shortcutsEditorContext=function(e){const t=e.getShortcutManager().addContext("editor"),o=(0,r.createKeyboardShortcutCommandsPool)(e),n={group:s.EDITOR_EDIT_GROUP};t.addShortcuts([{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>o.editorCloseAndSaveByEnter(e,t)},{keys:[["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],captureCtrl:!0,callback:(e,t)=>o.editorCloseAndSaveByEnter(e,t)},{keys:[["Tab"],["Tab","Shift"],["PageDown"],["PageUp"]],forwardToContext:e.getShortcutManager().getContext("grid"),callback:(e,t)=>o.editorCloseAndSave(e,t)},{keys:[["ArrowDown"],["ArrowUp"],["ArrowLeft"],["ArrowRight"]],preventDefault:!1,callback:(e,t)=>o.editorCloseAndSaveByArrowKeys(e,t)},{keys:[["Escape"],["Escape","Control/Meta"]],callback:()=>o.editorCloseWithoutSaving()}],n)};var s=o(19341),r=o(64575)},67602:(e,t,o)=>{"use strict";t.__esModule=!0,t.shortcutsGridContext=function(e){const t=e.getShortcutManager().addContext("grid"),o=(0,n.createKeyboardShortcutCommandsPool)(e),i={runOnlyIf:()=>{const{navigableHeaders:t}=e.getSettings();return(0,s.isDefined)(e.getSelected())&&(t||!t&&e.countRenderedRows()>0&&e.countRenderedCols()>0)},group:r.GRID_GROUP};t.addShortcuts([{keys:[["F2"]],callback:e=>o.editorFastOpen(e)},{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>o.editorOpen(e,t)},{keys:[["Backspace"],["Delete"]],callback:()=>o.emptySelectedCells()}],{group:r.EDITOR_EDIT_GROUP,runOnlyIf:()=>(0,s.isDefined)(e.getSelected())}),t.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>o.selectAllCells(),runOnlyIf:()=>{var t;return!(null!==(t=e.getSelectedRangeLast())&&void 0!==t&&t.highlight.isHeader())}},{keys:[["Control/Meta","A"]],callback:()=>{},runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isHeader()},preventDefault:!0},{keys:[["Control/Meta","Shift","Space"]],callback:()=>o.selectAllCellsAndHeaders()},{keys:[["Control/Meta","Enter"]],callback:()=>o.populateSelectedCellsData(),runOnlyIf:()=>{var t,o;return!(null!==(t=e.getSelectedRangeLast())&&void 0!==t&&t.highlight.isHeader())&&(null===(o=e.getSelectedRangeLast())||void 0===o?void 0:o.getCellsCount())>1}},{keys:[["Control","Space"]],captureCtrl:!0,callback:()=>o.extendCellsSelectionToColumns()},{keys:[["Shift","Space"]],stopPropagation:!0,callback:()=>o.extendCellsSelectionToRows()},{keys:[["ArrowUp"]],callback:()=>o.moveCellSelectionUp()},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostTop()},{keys:[["ArrowUp","Shift"]],callback:()=>o.extendCellsSelectionUp()},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>o.extendCellsSelectionToMostTop(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>o.moveCellSelectionDown()},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostBottom()},{keys:[["ArrowDown","Shift"]],callback:()=>o.extendCellsSelectionDown()},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>o.extendCellsSelectionToMostBottom(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>o.moveCellSelectionLeft()},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostLeft()},{keys:[["ArrowLeft","Shift"]],callback:()=>o.extendCellsSelectionLeft()},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>o.extendCellsSelectionToMostLeft(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>o.moveCellSelectionRight()},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostRight()},{keys:[["ArrowRight","Shift"]],callback:()=>o.extendCellsSelectionRight()},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>o.extendCellsSelectionToMostRight(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>o.extendCellsSelectionToMostInlineStart()},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostTopInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>o.extendCellsSelectionToMostInlineEnd()},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>o.moveCellSelectionToMostBottomInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>o.moveCellSelectionUpByViewportHight()},{keys:[["PageUp","Shift"]],callback:()=>o.extendCellsSelectionUpByViewportHeight()},{keys:[["PageDown"]],callback:()=>o.moveCellSelectionDownByViewportHeight()},{keys:[["PageDown","Shift"]],callback:()=>o.extendCellsSelectionDownByViewportHeight()},{keys:[["Tab"]],preventDefault:!1,callback:e=>o.moveCellSelectionInlineStart(e)},{keys:[["Shift","Tab"]],preventDefault:!1,callback:e=>o.moveCellSelectionInlineEnd(e)},{keys:[["Control/Meta","Backspace"]],callback:()=>o.scrollToFocusedCell()}],i)};var s=o(95768),r=o(19341),n=o(64575)},9528:(e,t,o)=>{"use strict";t.__esModule=!0;var s={registerAllShortcutContexts:!0};t.registerAllShortcutContexts=function(e){[n.shortcutsGridContext,r.shortcutsEditorContext].forEach((t=>t(e)))},o(14846),o(69655);var r=o(21087),n=o(67602),i=o(19341);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===i[e]||(t[e]=i[e]))}))},6990:(e,t,o)=>{"use strict";t.__esModule=!0,t.isContextObject=c,o(67834),o(15724),o(14846),o(27458),o(69655);var s=o(78697),r=o(84764),n=o(95768),i=o(77515),l=o(95016),a=o(20944);const h=Symbol("shortcut-context");function c(e){return(0,l.isObject)(e)&&e.__kindOf===h}t.createContext=e=>{const t=(0,s.createUniqueMap)({errorIdExists:t=>`The "${t}" shortcut is already registered in the "${e}" context.`}),o=function(){let{keys:e,callback:o,group:s,runOnlyIf:l=()=>!0,captureCtrl:h=!1,preventDefault:u=!0,stopPropagation:d=!1,relativeToGroup:g,position:f,forwardToContext:p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,n.isUndefined)(s))throw new Error("You need to define the shortcut's group.");if(!1===(0,i.isFunction)(o))throw new Error("The shortcut's callback needs to be a function.");if(!1===Array.isArray(e))throw new Error(a.toSingleLine`Pass the shortcut\'s keys as an array of arrays,\x20
|
92
92
|
using the KeyboardEvent.key properties:\x20
|
93
93
|
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values.`);const m={callback:o,group:s,runOnlyIf:l,captureCtrl:h,preventDefault:u,stopPropagation:d};(0,n.isDefined)(g)&&(m.relativeToGroup=g,m.position=f),c(p)&&(m.forwardToContext=p),e.forEach((e=>{const o=(0,r.normalizeKeys)(e);if(t.hasItem(o)){const e=t.getItem(o);let s=e.findIndex((e=>e.group===g));-1!==s?"before"===f?s-=1:s+=1:s=e.length,e.splice(s,0,m)}else t.addItem(o,[m])}))},u=e=>{const o=(0,r.normalizeKeys)(e);t.removeItem(o)};return{__kindOf:h,addShortcut:o,addShortcuts:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((e=>{(0,l.objectEach)(t,((o,s)=>{!1===Object.prototype.hasOwnProperty.call(e,s)&&(e[s]=t[s])})),o(e)}))},getShortcuts:e=>{const o=(0,r.normalizeKeys)(e),s=t.getItem(o);return(0,n.isDefined)(s)?s.slice():[]},hasShortcut:e=>{const o=(0,r.normalizeKeys)(e);return t.hasItem(o)},removeShortcutsByKeys:u,removeShortcutsByGroup:e=>{t.getItems().forEach((t=>{let[o,s]=t;const n=s.filter((t=>t.group!==e));0===n.length?u((0,r.getKeysList)(o)):(s.length=0,s.push(...n))}))}}}},63313:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(58778);t.createShortcutManager=s.createShortcutManager},29728:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeysObserver=function(){const e=new Set;return{press(t){e.add(t)},release(t){e.delete(t)},releaseAll(){e.clear()},isPressed:t=>e.has(t)}},o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620)},58778:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834);var s=o(78697),r=o(40892),n=o(6990),i=o(99427),l=o(20944);t.createShortcutManager=e=>{let{ownerWindow:t,handleEvent:o,beforeKeyDown:a,afterKeyDown:h}=e;const c=(0,s.createUniqueMap)({errorIdExists:e=>`The "${e}" context name is already registered.`});let u="grid";const d=()=>u,g=e=>c.getItem(e);let f=!1;const p=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d();const s=(0,n.isContextObject)(o)?o:g(o);let i=!1;if(!s.hasShortcut(t))return i;const l=s.getShortcuts(t);for(let o=0;o<l.length;o++){const{callback:s,runOnlyIf:n,preventDefault:a,stopPropagation:h,captureCtrl:c,forwardToContext:u}=l[o];if(!0===n(e)){if(f=c,i=!1===s(e,t),f=!1,a&&e.preventDefault(),h&&((0,r.stopImmediatePropagation)(e),e.stopPropagation()),i)break;u&&p(e,t,u)}}return i},m=(0,i.useRecorder)(t,o,a,h,p);return m.mount(),{addContext:e=>{const t=(0,n.createContext)(e);return c.addItem(e,t),t},getActiveContextName:d,getContext:g,setActiveContextName:e=>{if(!c.hasItem(e))throw new Error(l.toSingleLine`You've tried to activate the "${e}" shortcut context\x20
|
94
|
-
that does not exist. Before activation, register the context using the "addContext" method.`);u=e},isCtrlPressed:()=>!f&&(m.isPressed("control")||m.isPressed("meta")),releasePressedKeys:()=>m.releasePressedKeys(),destroy:()=>m.unmount()}}},99427:(e,t,o)=>{"use strict";t.__esModule=!0,t.useRecorder=function(e,t,o,s,d){const g=e=>a.includes(e),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=[];return e.altKey&&o.push("alt"),t&&(e.ctrlKey||e.metaKey)?o.push("control/meta"):(e.ctrlKey&&o.push("control"),e.metaKey&&o.push("meta")),e.shiftKey&&o.push("shift"),o},p=e=>{if(!1===t(e))return;if(!1===o(e)||229===e.keyCode||"string"!=typeof e.key||(0,n.isImmediatePropagationStopped)(e))return;const i=(0,r.normalizeEventKey)(e);let a=[];g(i)||(a=f(e));const h=[i].concat(a);!d(e,h)&&((0,l.isMacOS)()&&a.includes("meta")||!(0,l.isMacOS)()&&a.includes("control"))&&d(e,[i].concat(f(e,!0))),s(e)},m=e=>{if("string"==typeof e.key){const t=(0,r.normalizeEventKey)(e);g(t)&&h.press(t)}},w=e=>{if("string"==typeof e.key){const t=(0,r.normalizeEventKey)(e);g(t)&&h.release(t)}},C=()=>{h.releaseAll()};return{mount:()=>{let t=e;for(u+=1;t;)1===u&&(t.document.documentElement.addEventListener("keydown",m),c.push({event:"keydown",listener:m}),t.document.documentElement.addEventListener("keyup",w),c.push({event:"keyup",listener:w})),t.document.documentElement.addEventListener("keydown",p),t.document.documentElement.addEventListener("blur",C),t=(0,i.getParentWindow)(t)},unmount:()=>{let t=e;for(u-=1;t;){if(0===u){for(let e=0;e<c.length;e++){const{event:o,listener:s}=c[e];t.document.documentElement.removeEventListener(o,s)}c.length=0}t.document.documentElement.removeEventListener("keydown",p),t.document.documentElement.removeEventListener("blur",C),t=(0,i.getParentWindow)(t)}},isPressed:e=>h.isPressed(e),releasePressedKeys:()=>h.releaseAll()}},o(15724);var s=o(29728),r=o(84764),n=o(40892),i=o(94916),l=o(99275);const a=["meta","alt","shift","control"],h=(0,s.createKeysObserver)(),c=[];let u=0},84764:(e,t,o)=>{"use strict";t.__esModule=!0,o(94364);const s=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 s.has(t)?s.get(t):t})).sort().join("+");t.getKeysList=e=>e.split("+");const r=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(r.has(t))return r.get(t);const s=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(s)?s:o.toLowerCase()}},20328:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(94916),i=s(o(12370)),l=o(40892),a=s(o(7749)),h=o(43127),c=o(91980),u=o(45551);function d(e,t,o){g(e,t),t.set(e,o)}function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(m(e,t))}function p(e,t,o){return e.set(m(e,t),o),o}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")}var w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,E=new WeakMap,S=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakSet;function T(){return parseInt(this.hot.rootElement.getAttribute((0,u.A11Y_COLCOUNT)()[0]),10)}function M(e){const t=m(_,this,T).call(this)+e;(0,n.setAttribute)(this.hot.rootElement,...(0,u.A11Y_COLCOUNT)(t))}function O(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,n.addClass)(e,"htHasScrollY"):(0,n.removeClass)(e,"htHasScrollY"),this.hasHorizontalScroll()?(0,n.addClass)(e,"htHasScrollX"):(0,n.removeClass)(e,"htHasScrollX")}t.default=class{constructor(e){var t,o;g(t=this,o=_),o.add(t),(0,r.default)(this,"hot",void 0),(0,r.default)(this,"eventManager",void 0),(0,r.default)(this,"settings",void 0),(0,r.default)(this,"THEAD",void 0),(0,r.default)(this,"TBODY",void 0),(0,r.default)(this,"_wt",void 0),(0,r.default)(this,"activeWt",void 0),d(this,w,0),d(this,C,0),(0,r.default)(this,"postponedAdjustElementsSize",!1),d(this,v,!1),d(this,y,void 0),d(this,E,void 0),d(this,S,0),d(this,R,0),d(this,b,null),this.hot=e,this.eventManager=new i.default(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){this.hot.isRenderSuspended()||(this.hot.runHooks("beforeRender",this.hot.forceFullRender),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize()),this._wt.draw(!this.hot.forceFullRender),m(_,this,O).call(this),this.hot.runHooks("afterRender",this.hot.forceFullRender),this.hot.forceFullRender=!1,this.hot.renderCall=!1)}adjustElementsSize(){this.hot.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this._wt.wtOverlays.adjustElementsSize()}getCellAtCoords(e,t){const o=this._wt.getCell(e,t);return o<0?null:o}scrollViewport(e,t,o){return this._wt.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,o=e.getAttribute("style");o&&e.setAttribute("data-originalstyle",o),(0,n.addClass)(e,"handsontable"),p(E,this,t.createElement("TABLE")),(0,n.addClass)(f(E,this),"htCore"),this.hot.getSettings().tableClassName&&(0,n.addClass)(f(E,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,n.setAttribute)(f(E,this),[(0,u.A11Y_PRESENTATION)()]),(0,n.setAttribute)(e,[(0,u.A11Y_TREEGRID)(),(0,u.A11Y_ROWCOUNT)(-1),(0,u.A11Y_COLCOUNT)(this.hot.countCols()),(0,u.A11Y_MULTISELECTABLE)()])),this.THEAD=t.createElement("THEAD"),f(E,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),f(E,this).appendChild(this.TBODY),this.hot.table=f(E,this),this.hot.container.insertBefore(f(E,this),this.hot.container.firstChild)}registerEvents(){const{rootElement:e,rootDocument:t,selection:o,rootWindow:s}=this.hot,r=t.documentElement;this.eventManager.addEventListener(e,"mousedown",(e=>{p(v,this,!0),this.isTextSelectionAllowed(e.target)||((0,n.clearTextSelection)(s),e.preventDefault(),s.focus())})),this.eventManager.addEventListener(e,"mouseup",(()=>{p(v,this,!1)})),this.eventManager.addEventListener(e,"mousemove",(e=>{f(v,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,n.clearTextSelection)(s),e.preventDefault())})),this.eventManager.addEventListener(r,"keyup",(e=>{o.isInProgress()&&!e.shiftKey&&o.finish()})),this.eventManager.addEventListener(r,"mouseup",(s=>{o.isInProgress()&&(0,l.isLeftClick)(s)&&o.finish(),p(y,this,!1);const r=(0,n.isOutsideInput)(t.activeElement);(0,n.isInput)(t.activeElement)&&!r||!r&&(o.isSelected()||o.isSelectedByAnyHeader()||e.contains(s.target)||(0,l.isRightClick)(s))||this.hot.unlisten()})),this.eventManager.addEventListener(r,"contextmenu",(e=>{o.isInProgress()&&(0,l.isRightClick)(e)&&(o.finish(),p(y,this,!1))})),this.eventManager.addEventListener(r,"touchend",(()=>{o.isInProgress()&&o.finish(),p(y,this,!1)})),this.eventManager.addEventListener(r,"mousedown",(o=>{const s=o.target,i=o.x||o.clientX,l=o.y||o.clientY;let a=o.target;if(f(y,this)||!e||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(a===h){const e=(0,n.getScrollbarWidth)(t);if(t.elementFromPoint(i+e,l)!==h||t.elementFromPoint(i,l+e)!==h)return}else for(;a!==r;){if(null===a){if(o.isTargetWebComponent)break;return}if(a===e)return;a=a.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(s):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)}));let i=(0,n.getParentWindow)(s);for(;null!==i;)this.eventManager.addEventListener(i.document.documentElement,"click",(()=>{this.hot.unlisten()})),i=(0,n.getParentWindow)(i);this.eventManager.addEventListener(f(E,this),"selectstart",(e=>{this.settings.fragmentSelection||(0,n.isInput)(e.target)||e.preventDefault()}))}translateFromRenderableToVisualCoords(e){let{row:t,col:o}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,o))}translateFromRenderableToVisualIndex(e,t){let o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,s=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===o&&(o=e),null===s&&(s=t),[o,s]}countRenderableIndexes(e,t){const o=Math.min(e.getNotTrimmedIndexesLength(),t),s=e.getNearestNotHiddenIndex(o-1,-1);return null===s?0:e.getRenderableFromVisualIndex(s)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,o,s){if(isNaN(e)||e<0)return 0;const r=o.getNearestNotHiddenIndex(e,t),n=o.getRenderableFromVisualIndex(r);if(!Number.isInteger(n))return 0;let i=0;return t<0?i=n+1:t>0&&(i=s-n),i}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let o=0;for(let s=e;s<=t;s++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(s)&&(o+=1);return o}countRenderableRowsInRange(e,t){let o=0;for(let s=e;s<=t;s++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(s)&&(o+=1);return o}getStylesHandler(){return this._wt.stylesHandler}getDefaultRowHeight(){return this._wt.stylesHandler.getDefaultRowHeight()}addClassNameToLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,n.addClass)(o,e)}removeClassNameFromLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,n.removeClass)(o,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:f(E,this),isDataViewInstance:()=>(0,c.isRootInstance)(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push(((e,t)=>{const o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(o,t)})),this.hot.runHooks("afterGetRowHeaderRenderers",e),p(C,this,e.length),this.hot.getSettings().ariaTags&&m(_,this,T).call(this)===this.hot.countCols()&&m(_,this,M).call(this,f(C,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push(((e,t)=>{const o=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(o,t)})),this.hot.runHooks("afterGetColumnHeaderRenderers",e),p(w,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const o=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),s=null===o?e:o;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(s),s,t)},cellRenderer:(e,t,o)=>{const[s,r]=this.translateFromRenderableToVisualIndex(e,t),n=this.hot.runHooks("modifyGetCellCoords",s,r,!1,"meta");let i=s,l=r;Array.isArray(n)&&([i,l]=n);const a=this.hot.getCellMeta(i,l),h=this.hot.colToProp(l);let c=this.hot.getDataAtRowProp(i,h);this.hot.hasHook("beforeValueRender")&&(c=this.hot.runHooks("beforeValueRender",c,a)),this.hot.runHooks("beforeRenderer",o,s,r,h,c,a),this.hot.getCellRenderer(a)(this.hot,o,s,r,h,c,a),this.hot.runHooks("afterRenderer",o,s,r,h,c,a)},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,n.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,o,s)=>{const r=this.translateFromRenderableToVisualCoords(t),n={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=s,p(y,this,!0),p(b,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,r,o,n),(0,l.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:r,selection:this.hot.selection,controller:n,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,r,o),this.activeWt=this._wt)},onCellContextMenu:(e,t,o,s)=>{const r=this.translateFromRenderableToVisualCoords(t);this.activeWt=s,p(y,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,r,o),(0,l.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,r,o),this.activeWt=this._wt)},onCellMouseOut:(e,t,o,s)=>{const r=this.translateFromRenderableToVisualCoords(t);this.activeWt=s,this.hot.runHooks("beforeOnCellMouseOut",e,r,o),(0,l.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,r,o),this.activeWt=this._wt)},onCellMouseOver:(e,t,o,s)=>{const r=this.translateFromRenderableToVisualCoords(t),n={row:!1,column:!1,cell:!1};this.activeWt=s,this.hot.runHooks("beforeOnCellMouseOver",e,r,o,n),(0,l.isImmediatePropagationStopped)(e)||(!f(y,this)||f(b,this)&&f(b,this).x===e.clientX&&f(b,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:r,selection:this.hot.selection,controller:n,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,r,o),this.activeWt=this._wt,p(b,this,null))},onCellMouseUp:(e,t,o,s)=>{const r=this.translateFromRenderableToVisualCoords(t);this.activeWt=s,this.hot.runHooks("beforeOnCellMouseUp",e,r,o),(0,l.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||(this.hot.runHooks("afterOnCellMouseUp",e,r,o),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const o=this.hot.rowIndexMapper,s=e<0;let r=e;return s||(r=o.getVisualFromRenderableIndex(e),null!==r)?(r=this.hot.runHooks("beforeViewportScrollVertically",r,t),this.hot.runHooks("beforeViewportScroll"),s?r:o.getRenderableFromVisualIndex(r)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const o=this.hot.columnIndexMapper,s=e<0;let r=e;return s||(r=o.getVisualFromRenderableIndex(e),null!==r)?(r=this.hot.runHooks("beforeViewportScrollHorizontally",r,t),this.hot.runHooks("beforeViewportScroll"),s?r:o.getRenderableFromVisualIndex(r)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,o)=>{const s=this.hot.rowIndexMapper,r=e<0;let n=e;r||(n=s.getVisualFromRenderableIndex(e));const i=this.hot.runHooks("beforeHighlightingRowHeader",n,t,o);return r?i:s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(i,1))},onBeforeHighlightingColumnHeader:(e,t,o)=>{const s=this.hot.columnIndexMapper,r=e<0;let n=e;r||(n=s.getVisualFromRenderableIndex(e));const i=this.hot.runHooks("beforeHighlightingColumnHeader",n,t,o);return r?i:s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(i,1))},onAfterDrawSelection:(e,t,o)=>{let s;const[r,n]=this.translateFromRenderableToVisualIndex(e,t),i=this.hot.selection.getSelectedRange();if(i.size()>0){const e=i.peekByIndex(null!=o?o:0);s=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",r,n,s,o)},onBeforeDrawBorders:(e,t)=>{const[o,s,r,n]=e,i=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(o),this.hot.columnIndexMapper.getVisualFromRenderableIndex(s),this.hot.rowIndexMapper.getVisualFromRenderableIndex(r),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)];return this.hot.runHooks("beforeDrawBorders",i,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,o,s)=>{const r=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,i=t>=0?n.getVisualFromRenderableIndex(t):t,l=e>=0?r.getVisualFromRenderableIndex(e):e,a=this.hot.runHooks("modifyGetCellCoords",l,i,o,s);if(Array.isArray(a)){const[e,t,o,s]=a;return[e>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(e,1)):e,t>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(t,1)):t,o>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(o,-1)):o,s>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(s,-1)):s]}},onModifyGetCoordsElement:(e,t)=>{const o=this.hot.rowIndexMapper,s=this.hot.columnIndexMapper,r=t>=0?s.getVisualFromRenderableIndex(t):t,n=e>=0?o.getVisualFromRenderableIndex(e):e,i=this.hot.runHooks("modifyGetCoordsElement",n,r);if(Array.isArray(i)){const[e,t]=i;return[e>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(e,1)):e,t>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const o=this.countRenderableRows(),s=e.startRow,r=e.endRow;if("number"==typeof t)e.startRow=Math.max(s-t,0),e.endRow=Math.min(r+t,o-1);else if("auto"===t){const t=Math.max(1,Math.ceil(r/o*12));e.startRow=Math.max(s-t,0),e.endRow=Math.min(r+t,o-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const o=this.countRenderableColumns(),s=e.startColumn,r=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(s-t,0),e.endColumn=Math.min(r+t,o-1)),"auto"===t){const t=Math.max(1,Math.ceil(r/o*6));e.startColumn=Math.max(s-t,0),e.endColumn=Math.min(r+t,o-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e}};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new a.default(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:o,height:s}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(o,s),this.eventManager.addEventListener(t,"mousedown",(e=>{e.target===t&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(t,"contextmenu",(e=>{e.target===t&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",(()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&(this.hot.forceFullRender=!0,this.render())}))}isTextSelectionAllowed(e){if((0,n.isInput)(e))return!0;const t=(0,n.isChildOf)(e,this._wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))}isMouseDown(){return f(y,this)}isSelectedOnlyCell(){var e,t;return null!==(e=null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingleCell())&&void 0!==e&&e}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const o=t.firstChild;if(!(0,n.hasClass)(o,"relative"))return(0,n.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(o.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:o,getRowHeader:s}=this.hot,r=o.createElement("div"),n=o.createElement("span");r.className="relative",n.className="rowHeader",this.updateCellHeader(n,e,s),r.appendChild(n),t.appendChild(r)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const r=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const i=t.firstChild;(0,n.hasClass)(i,"relative")?(this.updateCellHeader(i.querySelector(".colHeader"),e,o,s),i.className="",(0,n.addClass)(i,["relative",...r()])):((0,n.empty)(t),this.appendColHeader(e,t,o,s))}else{const{rootDocument:i}=this.hot,l=i.createElement("div"),a=i.createElement("span"),h=r();l.classList.add("relative",...h),a.className="colHeader",this.settings.ariaTags&&((0,n.setAttribute)(l,...(0,u.A11Y_PRESENTATION)()),(0,n.setAttribute)(a,...(0,u.A11Y_PRESENTATION)())),this.updateCellHeader(a,e,o,s),l.appendChild(a),t.appendChild(l)}this.hot.runHooks("afterGetColHeader",e,t,s)}updateCellHeader(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=t;const i=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,n.hasClass)(e,"colHeader")?r=i.wtTable.columnFilter.sourceToRendered(t):(0,n.hasClass)(e,"rowHeader")&&(r=i.wtTable.rowFilter.sourceToRendered(t))),r>-1?(0,n.fastInnerHTML)(e,o(t,s)):((0,n.fastInnerText)(e,String.fromCharCode(160)),(0,n.addClass)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){p(S,this,e),p(R,this,t)}getLastSize(){return{width:f(S,this),height:f(R,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return f(w,this)}getRowHeadersCount(){return f(C,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getRowHeaderWidth(){return this._wt.wtViewport.getRowHeaderWidth()}getColumnHeaderHeight(){return this._wt.wtViewport.getColumnHeaderHeight()}isVerticallyScrollableByWindow(){return this._wt.wtViewport.isVerticallyScrollableByWindow()}isHorizontallyScrollableByWindow(){return this._wt.wtViewport.isHorizontallyScrollableByWindow()}destroy(){this._wt.destroy(),this.eventManager.destroy()}}},88340:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(69655);var s=o(33855),r=o(55744);function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function i(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 WeakMap,d=new WeakMap,g=new WeakMap;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,h,new Set),n(this,c,[]),n(this,u,[]),n(this,d,!1),n(this,g,!1),l(g,this,null!=e&&e)}createObserver(){const e=new s.ChangesObserver;return i(h,this).add(e),e.addLocalHook("unsubscribe",(()=>{i(h,this).delete(e)})),e._writeInitialChanges((0,r.arrayDiff)(i(c,this),i(u,this))),e}emit(e){let t=i(u,this);i(d,this)&&i(c,this).length===e.length||(0===e.length?e=new Array(t.length).fill(i(g,this)):l(c,this,new Array(e.length).fill(i(g,this))),i(d,this)||(l(d,this,!0),t=i(c,this)));const o=(0,r.arrayDiff)(t,e);i(h,this).forEach((e=>e._write(o))),l(u,this,e)}}},33855:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=o(95016),n=s(o(32943));function i(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}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 a=new WeakMap;class h{constructor(){i(this,a,[])}subscribe(e){var t,o;return this.addLocalHook("change",e),this._write((o=this,(t=a).get(l(t,o)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,o,s;o=this,s=e,(t=a).set(l(t,o),s)}}t.ChangesObserver=h,(0,r.mixin)(h,n.default)},55744:(e,t,o)=>{"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){const o=[];let s=0,r=0;for(;s<e.length&&r<t.length;s++,r++)e[s]!==t[r]&&o.push({op:"replace",index:r,oldValue:e[s],newValue:t[r]});for(;s<t.length;s++)o.push({op:"insert",index:s,oldValue:void 0,newValue:t[s]});for(;r<e.length;r++)o.push({op:"remove",index:r,oldValue:e[r],newValue:void 0});return o},o(15724)},57466:(e,t,o)=>{"use strict";o(14846),o(69655),t.__esModule=!0;var s={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0},r=o(42531);t.IndexMapper=r.IndexMapper;var n=o(11926);t.getRegisteredMapsCounter=n.getRegisteredMapsCounter;var i=o(82794);t.getIncreasedIndexes=i.getIncreasedIndexes,t.getDecreasedIndexes=i.getDecreasedIndexes,t.alterUtilsFactory=i.alterUtilsFactory;var l=o(6600);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))}))},42531:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));o(67834),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458),o(94364),o(75568);var n=o(47154),i=o(6600),l=o(82600),a=s(o(32943)),h=o(95016),c=o(95768),u=o(88340);new Set;class d{constructor(){(0,r.default)(this,"indexesSequence",new i.IndexesSequence),(0,r.default)(this,"trimmingMapsCollection",new l.AggregatedCollection((e=>e.some((e=>!0===e))),!1)),(0,r.default)(this,"hidingMapsCollection",new l.AggregatedCollection((e=>e.some((e=>!0===e))),!1)),(0,r.default)(this,"variousMapsCollection",new l.MapCollection),(0,r.default)(this,"hidingChangesObservable",new u.ChangesObservable({initialIndexValue:!1})),(0,r.default)(this,"notTrimmedIndexesCache",[]),(0,r.default)(this,"notHiddenIndexesCache",[]),(0,r.default)(this,"isBatched",!1),(0,r.default)(this,"indexesSequenceChanged",!1),(0,r.default)(this,"indexesChangeSource",void 0),(0,r.default)(this,"trimmedIndexesChanged",!1),(0,r.default)(this,"hiddenIndexesChanged",!1),(0,r.default)(this,"renderablePhysicalIndexesCache",[]),(0,r.default)(this,"fromPhysicalToVisualIndexesCache",new Map),(0,r.default)(this,"fromVisualToRenderableIndexesCache",new Map),this.indexesSequence.addLocalHook("change",(()=>{this.indexesSequenceChanged=!0,this.updateCache(),this.runLocalHooks("indexesSequenceChange",this.indexesChangeSource),this.runLocalHooks("change",this.indexesSequence,null)})),this.trimmingMapsCollection.addLocalHook("change",(e=>{this.trimmedIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.trimmingMapsCollection)})),this.hidingMapsCollection.addLocalHook("change",(e=>{this.hiddenIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.hidingMapsCollection)})),this.variousMapsCollection.addLocalHook("change",(e=>{this.runLocalHooks("change",e,this.variousMapsCollection)}))}suspendOperations(){this.isBatched=!0}resumeOperations(){this.isBatched=!1,this.updateCache()}createChangesObserver(e){if("hiding"!==e)throw new Error(`Unsupported index map type "${e}".`);return this.hidingChangesObservable.createObserver()}createAndRegisterIndexMap(e,t,o){return this.registerMap(e,(0,i.createIndexMap)(t,o))}registerMap(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error(`Map with name "${e}" has been already registered.`);t instanceof i.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof i.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);const o=this.getNumberOfIndexes();return o>0&&t.init(o),t}unregisterMap(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}unregisterAll(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}getPhysicalFromVisualIndex(e){const t=this.notTrimmedIndexesCache[e];return(0,c.isDefined)(t)?t:null}getPhysicalFromRenderableIndex(e){const t=this.renderablePhysicalIndexesCache[e];return(0,c.isDefined)(t)?t:null}getVisualFromPhysicalIndex(e){const t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getVisualFromRenderableIndex(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}getRenderableFromVisualIndex(e){const t=this.fromVisualToRenderableIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getNearestNotHiddenIndex(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(e))return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;const s=Array.from(this.fromVisualToRenderableIndexesCache.keys());let r=-1;return r=t>0?s.findIndex((t=>t>e)):s.reverse().findIndex((t=>t<e)),-1===r?o?this.getNearestNotHiddenIndex(e,-t,!1):null:s[r]}initToLength(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=[...new Array(e).keys()],this.notHiddenIndexesCache=[...new Array(e).keys()],this.suspendOperations(),this.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}fitToLength(e){const t=this.getNumberOfIndexes();if(e<t){const t=[...Array(this.getNumberOfIndexes()-e).keys()].map((t=>t+e));this.removeIndexes(t)}else this.insertIndexes(t,e-t)}getIndexesSequence(){return this.indexesSequence.getValues()}setIndexesSequence(e){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}getNotTrimmedIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notTrimmedIndexesCache;return this.getIndexesSequence().filter((e=>!1===this.isTrimmed(e)))}getNotTrimmedIndexesLength(){return this.getNotTrimmedIndexes().length}getNotHiddenIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notHiddenIndexesCache;return this.getIndexesSequence().filter((e=>!1===this.isHidden(e)))}getNotHiddenIndexesLength(){return this.getNotHiddenIndexes().length}getRenderableIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.renderablePhysicalIndexesCache;return this.getNotTrimmedIndexes().filter((e=>!1===this.isHidden(e)))}getRenderableIndexesLength(){return this.getRenderableIndexes().length}getNumberOfIndexes(){return this.getIndexesSequence().length}moveIndexes(e,t){"number"==typeof e&&(e=[e]);const o=(0,n.arrayMap)(e,(e=>this.getPhysicalFromVisualIndex(e))),s=this.getNotTrimmedIndexesLength(),r=e.length,l=(0,i.getListWithRemovedItems)(this.getIndexesSequence(),o),a=l.filter((e=>!1===this.isTrimmed(e)));let h=l.indexOf(a[a.length-1])+1;if(t+r<s){const e=a[t];h=l.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,i.getListWithInsertedItems)(l,h,o)),this.indexesChangeSource=void 0}isTrimmed(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}isHidden(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}insertIndexes(e,t){const o=this.getNotTrimmedIndexes()[e],s=(0,c.isDefined)(o)?o:this.getNumberOfIndexes(),r=this.getIndexesSequence().includes(o)?this.getIndexesSequence().indexOf(o):this.getNumberOfIndexes(),i=(0,n.arrayMap)(new Array(t).fill(s),((e,t)=>e+t));this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(r,i),this.indexesChangeSource=void 0,this.trimmingMapsCollection.insertToEvery(r,i),this.hidingMapsCollection.insertToEvery(r,i),this.variousMapsCollection.insertToEvery(r,i),this.resumeOperations()}removeIndexes(e){this.suspendOperations(),this.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}updateCache(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}cacheFromPhysicalToVisualIndexes(){const e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(e,t)}}cacheFromVisualToRenderableIndexes(){const e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromRenderableIndex(t),o=this.getVisualFromPhysicalIndex(e);this.fromVisualToRenderableIndexesCache.set(o,t)}}}t.IndexMapper=d,(0,h.mixin)(d,a.default)},67983:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(11926),i=o(47154),l=o(95768);class a extends n.MapCollection{constructor(e,t){super(),(0,r.default)(this,"mergedValuesCache",[]),(0,r.default)(this,"aggregationFunction",void 0),(0,r.default)(this,"fallbackValue",void 0),this.aggregationFunction=e,this.fallbackValue=t}getMergedValues(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.mergedValuesCache;if(0===this.getLength())return[];const e=(0,i.arrayMap)(this.get(),(e=>e.getValues())),t=[],o=(0,l.isDefined)(e[0])&&e[0].length||0;for(let s=0;s<o;s+=1){const o=[];for(let t=0;t<this.getLength();t+=1)o.push(e[t][s]);t.push(o)}return(0,i.arrayMap)(t,this.aggregationFunction)}getMergedValueAtIndex(e,t){const o=this.getMergedValues(t)[e];return(0,l.isDefined)(o)?o:this.fallbackValue}updateCache(){this.mergedValuesCache=this.getMergedValues(!1)}}t.AggregatedCollection=a},82600:(e,t,o)=>{"use strict";o(14846),o(69655),t.__esModule=!0;var s=o(67983);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var r=o(11926);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},11926:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.getRegisteredMapsCounter=function(){return a},o(14846),o(69655);var r=s(o(85707)),n=o(95768),i=o(95016),l=s(o(32943));let a=0;class h{constructor(){(0,r.default)(this,"collection",new Map)}register(e,t){!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",(()=>this.runLocalHooks("change",t))),a+=1)}unregister(e){const t=this.collection.get(e);(0,n.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),a-=1)}unregisterAll(){this.collection.forEach(((e,t)=>this.unregister(t))),this.collection.clear()}get(e){return(0,n.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}getLength(){return this.collection.size}removeFromEvery(e){this.collection.forEach((t=>{t.remove(e)}))}insertToEvery(e,t){this.collection.forEach((o=>{o.insert(e,t)}))}initEvery(e){this.collection.forEach((t=>{t.init(e)}))}}t.MapCollection=h,(0,i.mixin)(h,l.default)},33903:(e,t,o)=>{"use strict";t.__esModule=!0,o(15724);var s=o(38067),r=o(47154);class n extends s.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getHiddenIndexes(){return(0,r.arrayReduce)(this.getValues(),((e,t,o)=>(t&&e.push(o),e)),[])}}t.HidingMap=n},6600:(e,t,o)=>{"use strict";o(14846),o(69655),t.__esModule=!0;var s={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!u.has(e))throw new Error(`The provided map type ("${e}") does not exist.`);return new(u.get(e))(t)},o(67834);var r=o(33903);t.HidingMap=r.HidingMap;var n=o(79624);t.IndexMap=n.IndexMap;var i=o(41900);t.LinkedPhysicalIndexToValueMap=i.LinkedPhysicalIndexToValueMap;var l=o(38067);t.PhysicalIndexToValueMap=l.PhysicalIndexToValueMap;var a=o(65205);t.TrimmingMap=a.TrimmingMap;var h=o(25173);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===h[e]||(t[e]=h[e]))}));var c=o(69599);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}));const u=new Map([["hiding",r.HidingMap],["index",n.IndexMap],["linkedPhysicalIndexToValue",i.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",l.PhysicalIndexToValueMap],["trimming",a.TrimmingMap]])},79624:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(36926),i=o(95016),l=o(77515),a=s(o(32943));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,r.default)(this,"indexedValues",[]),(0,r.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,l.isFunction)(this.initValueOrFn)?(0,n.rangeEach)(e-1,(e=>this.indexedValues.push(this.initValueOrFn(e)))):(0,n.rangeEach)(e-1,(()=>this.indexedValues.push(this.initValueOrFn))),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,i.mixin)(h,a.default)},25173:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(79624),r=o(69599),n=o(82794);class i extends s.IndexMap{constructor(){super((e=>e))}insert(e,t){const o=(0,n.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,r.getListWithInsertedItems)(o,e,t),super.insert(e,t)}remove(e){const t=(0,r.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,n.getDecreasedIndexes)(t,e),super.remove(e)}}t.IndexesSequence=i},41900:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(94364);var r=s(o(85707)),n=o(79624),i=o(42405),l=o(69599),a=o(28322),h=o(77515);class c extends n.IndexMap{constructor(){super(...arguments),(0,r.default)(this,"orderOfIndexes",[])}getValues(){return this.orderOfIndexes.map((e=>this.indexedValues[e]))}setValues(e){this.orderOfIndexes=[...Array(e.length).keys()],super.setValues(e)}setValueAtIndex(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(o,0,e),this.runLocalHooks("change"),!0)}clearValue(e){this.orderOfIndexes=(0,l.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,h.isFunction)(this.initValueOrFn)?super.setValueAtIndex(e,this.initValueOrFn(e)):super.setValueAtIndex(e,this.initValueOrFn)}getLength(){return this.orderOfIndexes.length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,super.setDefaultValues(e)}insert(e,t){this.indexedValues=(0,i.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,a.getIncreasedIndexes)(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=(0,i.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,l.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,a.getDecreasedIndexes)(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map((e=>[e,this.getValueAtIndex(e)]))}}t.LinkedPhysicalIndexToValueMap=c},38067:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(79624),r=o(42405);class n extends s.IndexMap{insert(e,t){this.indexedValues=(0,r.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=(0,r.getListWithRemovedItems)(this.indexedValues,e),super.remove(e)}}t.PhysicalIndexToValueMap=n},65205:(e,t,o)=>{"use strict";t.__esModule=!0,o(15724);var s=o(38067),r=o(47154);class n extends s.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,r.arrayReduce)(this.getValues(),((e,t,o)=>(t&&e.push(o),e)),[])}}t.TrimmingMap=n},28322:(e,t,o)=>{"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,s.arrayMap)(e,(e=>e-t.filter((t=>t<e)).length))},t.getIncreasedIndexes=function(e,t){const o=t[0],r=t.length;return(0,s.arrayMap)(e,(e=>e>=o?e+r:e))},o(14846),o(27458);var s=o(47154)},82794:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834);var s=o(28322);t.getDecreasedIndexes=s.getDecreasedIndexes,t.getIncreasedIndexes=s.getIncreasedIndexes;var r=o(69599),n=o(42405);const i=new Map([["indexesSequence",{getListWithInsertedItems:r.getListWithInsertedItems,getListWithRemovedItems:r.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:n.getListWithInsertedItems,getListWithRemovedItems:n.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===i.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return i.get(e)}},69599:(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,s.arrayFilter)(e,(e=>!1===t.includes(e)))};var s=o(47154)},42405:(e,t,o)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,o,r){const n=o.length?o[0]:void 0;return[...e.slice(0,n),...o.map(((e,t)=>(0,s.isFunction)(r)?r(e,t):r)),...void 0===n?[]:e.slice(n)]},t.getListWithRemovedItems=function(e,t){return(0,r.arrayFilter)(e,((e,o)=>!1===t.includes(o)))},o(94364);var s=o(77515),r=o(47154)},64144:(e,t)=>{"use strict";function o(e,t,o){e.addEventListener(t,o,!1)}function s(e,t,o){e.removeEventListener(t,o,!1)}function r(e){return e.ownerDocument.defaultView.getComputedStyle(e)}t.__esModule=!0,t.createInputElementResizer=function(e){const t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}},n=e.body,i=e.createTextNode(""),l=e.createElement("span");let a;function h(){var e,o;i.textContent=t.textContent(a),l.style.position="absolute",l.style.fontSize=r(a).fontSize,l.style.fontFamily=r(a).fontFamily,l.style.whiteSpace="pre",n.appendChild(l);const s=parseInt((null===(e=r(a))||void 0===e?void 0:e.paddingInlineStart)||0,10),h=parseInt((null===(o=r(a))||void 0===o?void 0:o.paddingInlineEnd)||0,10),c=l.clientWidth+s+h+1;n.removeChild(l);const u=a.style;u.height=`${t.minHeight}px`,t.minWidth>c?u.width=`${t.minWidth}px`:c>t.maxWidth?u.width=`${t.maxWidth}px`:u.width=`${c}px`;const d=a.scrollHeight?a.scrollHeight-1:0;t.minHeight>d?u.height=`${t.minHeight}px`:t.maxHeight<d?(u.height=`${t.maxHeight}px`,u.overflowY="visible"):u.height=`${d}px`}function c(){e.defaultView.setTimeout(h,0)}return{init:function(e,s){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];a=e,function(e){if(e&&e.minHeight)if("inherit"===e.minHeight)t.minHeight=a.clientHeight;else{const o=parseInt(e.minHeight,10);isNaN(o)||(t.minHeight=o)}if(e&&e.maxHeight)if("inherit"===e.maxHeight)t.maxHeight=a.clientHeight;else{const o=parseInt(e.maxHeight,10);isNaN(o)||(t.maxHeight=o)}if(e&&e.minWidth)if("inherit"===e.minWidth)t.minWidth=a.clientWidth;else{const o=parseInt(e.minWidth,10);isNaN(o)||(t.minWidth=o)}if(e&&e.maxWidth)if("inherit"===e.maxWidth)t.maxWidth=a.clientWidth;else{const o=parseInt(e.maxWidth,10);isNaN(o)||(t.maxWidth=o)}l.firstChild||(l.className="autoResize",l.style.display="inline-block",l.appendChild(i))}(s),"TEXTAREA"===a.nodeName&&(a.style.resize="none",a.style.height=`${t.minHeight}px`,a.style.minWidth=`${t.minWidth}px`,a.style.maxWidth=`${t.maxWidth}px`,a.style.overflowY="hidden"),r&&(o(a,"input",h),o(a,"keydown",c)),h()},resize:h,unObserve(){s(a,"input",h),s(a,"keydown",c)}}}},39389:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));class n{constructor(e){(0,r.default)(this,"data",void 0),(0,r.default)(this,"next",null),(0,r.default)(this,"prev",null),this.data=e}}t.NodeStructure=n;t.default=class{constructor(){(0,r.default)(this,"first",null),(0,r.default)(this,"last",null)}push(e){const t=new n(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.last;this.last=t,t.prev=e,e.next=t}return t}unshift(e){const t=new n(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const o=e(t);if(t===this.last||!0===o)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,o,s=this.first;for(;s;){if(s.data===e)return t=s.next,o=s.prev,t&&(t.prev=o),o&&(o.next=t),s===this.first&&(this.first=t),s===this.last&&(this.last=o),!0;s=s.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,o){o&&(e(o,o.next),o.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,o=this.first;for(;t;)e=t.next,t.next=o,o.prev=t,o=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=o,this.last=e}}},75080:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPriorityMap=function(){let{errorPriorityExists:e,errorPriorityNaN:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=new Map;return e=(0,r.isFunction)(e)?e:a,t=(0,r.isFunction)(t)?t:h,{addItem:function(r,n){if(!(0,s.isNumeric)(r))throw new Error(t(r));if(o.has(r))throw new Error(e(r));o.set(r,n)},getItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;const[t,s]=l.get(e)||l.get(n);return[...o].sort(((e,o)=>e[0]<o[0]?t:s)).map((e=>e[1]))}}},o(67834),o(94364);var s=o(36926),r=o(77515);const n=t.ASC="asc",i=t.DESC="desc",l=new Map([[n,[-1,1]],[i,[1,-1]]]),a=e=>`The priority '${e}' is already declared in a map.`,h=e=>`The priority '${e}' is not a number.`},6524:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.depthFirstPreOrder=i;var r=s(o(85707));o(67834),o(15724);const n=t.TRAVERSAL_DF_PRE="DF-pre-order";function i(e,t){let o=e.call(t,this);for(let s=0;s<this.childs.length;s++){if(!1===o)return!1;o=i.call(this.childs[s],e,t)}return o}const l=t.TRAVERSAL_DF_POST="DF-post-order";const a=t.TRAVERSAL_BF="BF";const h=a,c=new Map([[n,i],[l,function e(t,o){for(let s=0;s<this.childs.length;s++){if(!1===e.call(this.childs[s],t,o))return!1}return t.call(o,this)}],[a,function(e,t){const o=[this];!function s(){if(0===o.length)return;const r=o.shift();o.push(...r.childs),!1!==e.call(t,r)&&s()}()}]]);class u{constructor(e){(0,r.default)(this,"data",{}),(0,r.default)(this,"parent",null),(0,r.default)(this,"childs",[]),this.data=e}addChild(e){e.parent=this,this.childs.push(e)}cloneTree(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;const t=new u({...e.data});for(let o=0;o<e.childs.length;o++)t.addChild(this.cloneTree(e.childs[o]));return t}replaceTreeWith(e){this.data={...e.data},this.childs=[];for(let t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}walkDown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(!c.has(t))throw new Error(`Traversal strategy "${t}" does not exist`);c.get(t).call(this,e,this)}walkUp(e){const t=this,o=s=>{!1!==e.call(t,s)&&null!==s.parent&&o(s.parent)};o(this)}}t.default=u},78697:(e,t,o)=>{"use strict";t.__esModule=!0,t.createUniqueMap=function(){let{errorIdExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map;function o(){return[...t]}function n(e){return t.has(e)}return e=(0,s.isFunction)(e)?e:r,{addItem:function(o,s){if(n(o))throw new Error(e(o));t.set(o,s)},clear:function(){t.clear()},getId:function(e){const[t]=o().find((t=>{let[o,s]=t;return e===s&&o}))||[null];return t},getItem:function(e){return t.get(e)},getItems:o,hasItem:n,removeItem:function(e){return t.delete(e)}}},o(67834),o(14846),o(6211);var s=o(77515);const r=e=>`The id '${e}' is already declared in a map.`},11311:(e,t,o)=>{"use strict";t.__esModule=!0,t.createUniqueSet=function(){let{errorItemExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Set;return e=(0,s.isFunction)(e)?e:r,{addItem:function(o){if(t.has(o))throw new Error(e(o));t.add(o)},clear:function(){t.clear()},getItems:function(){return[...t]}}},o(67834),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var s=o(77515);const r=e=>`'${e}' value is already declared in a unique set.`},81838:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(69655);var r=s(o(85707)),n=o(94916),i=o(47154);t.default=class{constructor(e){(0,r.default)(this,"hot",null),(0,r.default)(this,"container",null),(0,r.default)(this,"injected",!1),(0,r.default)(this,"rows",[]),(0,r.default)(this,"columns",[]),(0,r.default)(this,"samples",null),(0,r.default)(this,"settings",{useHeaders:!0}),this.hot=e}addRow(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));const o={row:e};this.rows.push(o),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol(e)),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),o.table=this.table.table}addColumnHeadersRow(e){const t=this.hot.getColHeader(0);if(null!=t){const t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}}addColumn(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));const o={col:e};this.columns.push(o),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th,void 0,-1),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),o.table=this.table.table}getHeights(e){this.injected||this.injectTable(),(0,i.arrayEach)(this.rows,(t=>{const{height:o}=t.table.getBoundingClientRect();e(t.row,Math.ceil(o))}))}getWidths(e){this.injected||this.injectTable(),(0,i.arrayEach)(this.columns,(t=>{const{width:o}=t.table.getBoundingClientRect();e(t.col,Math.ceil(o))}))}setSettings(e){this.settings=e}setSetting(e,t){this.settings||(this.settings={}),this.settings[e]=t}getSettings(){return this.settings}getSetting(e){return this.settings?this.settings[e]:null}createColGroupsCol(e){const t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1,-1)),this.samples.forEach((o=>{(0,i.arrayEach)(o.strings,(o=>{t.appendChild(this.createColElement(o.col,e))}))})),t}createRow(e){const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,s),o.appendChild(s)),this.samples.forEach((s=>{(0,i.arrayEach)(s.strings,(s=>{const r=s.col,n=this.hot.getCellMeta(e,r),i=this.hot.getCellRenderer(n),l=t.createElement("td");l.setAttribute("ghost-table",1),i(this.hot,l,e,r,this.hot.colToProp(r),s.value,n),o.appendChild(l)}))})),o}appendColumnHeadersRow(){const{rootDocument:e}=this.hot,t=e.createDocumentFragment(),o=[];if(this.hot.hasRowHeaders()){const s=e.createElement("th");o.push([-1,s]),t.appendChild(s)}this.samples.forEach((s=>{(0,i.arrayEach)(s.strings,(s=>{const r=s.col,n=e.createElement("th");o.push([r,n]),t.appendChild(n)}))})),this.table.tHead.appendChild(t),(0,i.arrayEach)(o,(e=>{const[t,o]=e;this.hot.view.appendColHeader(t,o)}))}createCol(e){const{rootDocument:t}=this.hot,o=t.createDocumentFragment();return this.samples.forEach((s=>{(0,i.arrayEach)(s.strings,(s=>{const r=s.row,n=this.hot.getCellMeta(r,e),i=this.hot.getCellRenderer(n),l=t.createElement("td"),a=t.createElement("tr");l.setAttribute("ghost-table",1),i(this.hot,l,r,e,this.hot.colToProp(e),s.value,n),a.appendChild(l),o.appendChild(a)}))})),o}clean(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}injectTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}removeTable(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}createColElement(e,t){const o=this.hot.rootDocument.createElement("col");let s=0;t>=0&&e>=0&&(s=this.hot.getCellMeta(t,e).colspan);let r=this.hot.getColWidth(e);if(s>1)for(let t=e+1;t<e+s;t++)r+=this.hot.getColWidth(t);return o.style.width=`${r}px`,o}createTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("table"),r=t.createElement("thead"),i=t.createElement("tbody"),l=t.createElement("colgroup"),a=t.createElement("tr"),h=t.createElement("th");return this.isVertical()&&s.appendChild(l),this.isHorizontal()&&(a.appendChild(h),r.appendChild(a),s.style.tableLayout="auto",s.style.width="auto"),s.appendChild(r),this.isVertical()&&i.appendChild(a),s.appendChild(i),(0,n.addClass)(s,e),o.appendChild(s),{fragment:o,table:s,tHead:r,tBody:i,colGroup:l,tr:a,th:h}}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("div"),r=`htGhostTable htAutoSize ${e.trim()}`;return(0,n.addClass)(s,r),o.appendChild(s),{fragment:o,container:s}}isVertical(){return!(!this.rows.length||this.columns.length)}isHorizontal(){return!(!this.columns.length||this.rows.length)}}},77316:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:o=()=>0,onItemSelect:r=()=>{},onClear:n=()=>{}}=e;const i=new Set;let l=(0,s.clamp)(t,-1,h()-1);function a(e,t){const o=h()-1;if(e<0&&(e=o),e>o&&(e=0),i.has(e))return-1;i.add(e);return!1===r(e,!1)&&(e=a(1===t?++e:--e,t)),e}function h(){return Math.max(o(),0)}return{setCurrentPage:function(e){e>-1&&e<h()&&!1!==r(e,!0)&&(l=e)},getCurrentPage:function(){return l},toFirstItem:function(){h()>0&&(i.clear(),l=a(0,1))},toLastItem:function(){h()>0&&(i.clear(),l=a(h()-1,-1))},toNextItem:function(){h()>0&&(i.clear(),l=a(++l,1))},toPreviousItem:function(){h()>0&&(i.clear(),l=a(--l,-1))},getSize:h,clear:function(){i.clear(),l=t,n()}}},o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var s=o(36926)},19310:(e,t,o)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,o=["<table>"];for(let r=0;r<t;r+=1){const n=e[r],i=n.length,l=[];0===r&&o.push("<tbody>");for(let e=0;e<i;e+=1){const t=n[e],o=(0,s.isEmpty)(t)?"":t.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,(e=>`<span style="mso-spacerun: yes">${" ".repeat(e.length-1)} </span>`)).replace(/\t/gi,"	");l.push(`<td>${o}</td>`)}o.push("<tr>",...l,"</tr>"),r+1===t&&o.push("</tbody>")}return o.push("</table>"),o.join("")},t.htmlToGridSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const o={},s=t.createDocumentFragment(),i=t.createElement("div");s.appendChild(i);let l=e;if("string"==typeof l){const e=l.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,(e=>{const t=e.match(/<td\b[^>]*?>/g)[0];return`${t}${e.substring(t.length,e.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(/<p.*?>/g,"\n").replace("\n","").replaceAll(/<\/(.*)>\s+$/gm,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^ $/gm,"")}</td>`}));i.insertAdjacentHTML("afterbegin",`${e}`),l=i.querySelector("table")}if(!l||!function(e){return"TABLE"===(e&&e.nodeName||"")}(l))return;const a=i.querySelector('meta[name$="enerator"]'),h=null!==l.querySelector("tbody th"),c=l.querySelector("tr"),u=c?Array.from(c.cells).reduce(((e,t)=>e+t.colSpan),0)-(h?1:0):0,d=l.tFoot&&Array.from(l.tFoot.rows)||[],g=[];let f=!1,p=0,m=0;if(l.tHead){const e=Array.from(l.tHead.rows).filter((e=>{const t=null!==e.querySelector("td");return t&&g.push(e),!t}));p=e.length,f=p>0,p>1?o.nestedHeaders=Array.from(e).reduce(((e,t)=>{const o=Array.from(t.cells).reduce(((e,t,o)=>{if(h&&0===o)return e;const{colSpan:s,innerHTML:r}=t,n=s>1?{label:r,colspan:s}:r;return e.push(n),e}),[]);return e.push(o),e}),[]):f&&(o.colHeaders=Array.from(e[0].children).reduce(((e,t,o)=>(h&&0===o||e.push(t.innerHTML),e)),[]))}g.length&&(o.fixedRowsTop=g.length);d.length&&(o.fixedRowsBottom=d.length);const w=[...g,...Array.from(l.tBodies).reduce(((e,t)=>(e.push(...Array.from(t.rows)),e)),[]),...d];m=w.length;const C=new Array(m);for(let e=0;e<m;e++)C[e]=new Array(u);const v=[],y=[];for(let e=0;e<m;e++){const t=w[e],o=Array.from(t.cells),s=o.length;for(let t=0;t<s;t++){const s=o[t],{nodeName:i,innerHTML:l,rowSpan:h,colSpan:c}=s,u=C[e].findIndex((e=>void 0===e));if("TD"===i){if(h>1||c>1){for(let t=e;t<e+h;t++)if(t<m)for(let e=u;e<u+c;e++)C[t][e]=null;const t=s.getAttribute("style");t&&t.includes("mso-ignore:colspan")||v.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=a&&/excel/gi.test(a.content)?l.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):l.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),C[e][u]=t.replace(n,(e=>r[e]))}else y.push(l)}}v.length&&(o.mergeCells=v);y.length&&(o.rowHeaders=y);C.length&&(o.data=C);return o},t.instanceToHTML=function(e){const t=e.hasColHeaders(),o=e.hasRowHeaders(),r=[t?-1:0,o?-1:0,e.countRows()-1,e.countCols()-1],n=e.getData(...r),i=n.length,l=i>0?n[0].length:0,a=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=o?1:0,d=t?1:0;for(let r=0;r<i;r+=1){const i=t&&0===r,a=[];for(let t=0;t<l;t+=1){const l=!i&&o&&0===t;let h="";if(i)h=`<th>${e.getColHeader(t-u)}</th>`;else if(l)h=`<th>${e.getRowHeader(r-d)}</th>`;else{const o=n[r][t],{hidden:i,rowspan:l,colspan:a}=e.getCellMeta(r-d,t-u);if(!i){const e=[];if(l&&e.push(`rowspan="${l}"`),a&&e.push(`colspan="${a}"`),(0,s.isEmpty)(o))h=`<td ${e.join(" ")}></td>`;else{const t=o.toString().replace("<","<").replace(">",">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");h=`<td ${e.join(" ")}>${t}</td>`}}}a.push(h)}const g=["<tr>",...a,"</tr>"].join("");i?h.splice(1,0,g):c.splice(-1,0,g)}return a.splice(1,0,h.join(""),c.join("")),a.join("")},o(15724),o(64552),o(14846),o(27458),o(94364),o(90458);var s=o(95768);const r={" ":" ","&":"&","<":"<",">":">"},n=new RegExp(Object.keys(r).map((e=>`(${e})`)).join("|"),"gi")},91980:(e,t)=>{"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===s},t.isRootInstance=function(e){return o.has(e)},t.registerAsRootInstance=function(e){o.set(e,!0)};const o=t.holder=new WeakMap,s=t.rootInstanceSymbol=Symbol("rootInstance")},70907:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(95016),i=o(36926),l=o(95768);class a{static get SAMPLE_COUNT(){return 3}constructor(e){(0,r.default)(this,"samples",null),(0,r.default)(this,"dataFactory",null),(0,r.default)(this,"customSampleCount",null),(0,r.default)(this,"allowDuplicates",!1),this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:a.SAMPLE_COUNT}setSampleCount(e){this.customSampleCount=e}setAllowDuplicates(e){this.allowDuplicates=e}generateRowSamples(e,t){return this.generateSamples("row",t,e)}generateColumnSamples(e,t){return this.generateSamples("col",t,e)}generateSamples(e,t,o){const s=new Map,{from:r,to:n}="number"==typeof o?{from:o,to:o}:o;return(0,i.rangeEach)(r,n,(o=>{const r=this.generateSample(e,t,o);s.set(o,r)})),s}generateSample(e,t,o){if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");const s=new Map,r="row"===e?"col":"row",a=[];return(0,i.rangeEach)(t.from,t.to,(t=>{const i="row"===e?this.dataFactory(o,t):this.dataFactory(t,o);if(!1===i)return;const{value:h,bundleSeed:c}=i,u="string"==typeof c&&c.length>0;let d;d=u?c:(0,n.isObject)(h)?`${Object.keys(h).length}`:Array.isArray(h)?`${h.length}`:`${(0,l.stringify)(h).length}`,s.has(d)||s.set(d,{needed:this.getSampleCount(),strings:[]});const g=s.get(d);if(g.needed){(!(a.indexOf(h)>-1)||this.allowDuplicates||u)&&(g.strings.push({value:h,[r]:t}),a.push(h),g.needed-=1)}})),s}}t.default=a},29328:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";o.has(e)||o.set(e,new Map);const t=o.get(e);return{register:function(e,o){t.set(e,o)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[...t.keys()]},getValues:function(){return[...t.values()]}}};const o=t.collection=new Map},74742:(e,t)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=s;const o=t.VALIDATOR_TYPE="autocomplete";function s(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(o,r(o,t)):r(o,t)(this.source):t(!0)}function r(e,t){const o=e;return function(e){let s=!1;for(let t=0,r=e.length;t<r;t++)if(o===e[t]){s=!0;break}t(s)}}s.VALIDATOR_TYPE=o},77924:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(74742);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.autocompleteValidator=s.autocompleteValidator},23974:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.correctFormat=c,t.dateValidator=h;var r=s(o(86798)),n=o(45973),i=o(48584),l=o(96431);const a=t.VALIDATOR_TYPE="date";function h(e,t){const o=(0,n.getEditorInstance)(i.EDITOR_TYPE,this.instance);let s=e,l=!0;null==s&&(s="");let a=(0,r.default)(s,this.dateFormat||o.defaultDateFormat,!0).isValid(),h=(0,r.default)(new Date(s)).isValid()||a;if(this.allowEmpty&&""===s&&(h=!0,a=!0),h||(l=!1),!h&&a&&(l=!0),h&&!a)if(!0===this.correctFormat){const e=c(s,this.dateFormat);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"dateValidator"),l=!0}else l=!1;t(l)}function c(e,t){const o=(0,r.default)((0,l.getNormalizedDate)(e)),s=(0,r.default)(e,t),n=e.search(/[A-z]/g)>-1;let i;return i=o.isValid()&&o.format("x")===s.format("x")||!s.isValid()||n?o:s,i.format(t)}h.VALIDATOR_TYPE=a},21304:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(23974);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.correctFormat=s.correctFormat,t.dateValidator=s.dateValidator},8022:(e,t,o)=>{"use strict";t.__esModule=!0,t.dropdownValidator=n;var s=o(74742);const r=t.VALIDATOR_TYPE="dropdown";function n(e,t){s.autocompleteValidator.apply(this,[e,t])}n.VALIDATOR_TYPE=r},25479:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(8022);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.dropdownValidator=s.dropdownValidator},25021:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllValidators=function(){(0,a.registerValidator)(s.autocompleteValidator),(0,a.registerValidator)(n.dropdownValidator),(0,a.registerValidator)(r.dateValidator),(0,a.registerValidator)(i.numericValidator),(0,a.registerValidator)(l.timeValidator)};var s=o(77924);t.autocompleteValidator=s.autocompleteValidator,t.AUTOCOMPLETE_VALIDATOR=s.VALIDATOR_TYPE;var r=o(21304);t.dateValidator=r.dateValidator,t.DATE_VALIDATOR=r.VALIDATOR_TYPE;var n=o(25479);t.dropdownValidator=n.dropdownValidator,t.DROPDOWN_VALIDATOR=n.VALIDATOR_TYPE;var i=o(28029);t.numericValidator=i.numericValidator,t.NUMERIC_VALIDATOR=i.VALIDATOR_TYPE;var l=o(40711);t.timeValidator=l.timeValidator,t.TIME_VALIDATOR=l.VALIDATOR_TYPE;var a=o(57006);t.registerValidator=a.registerValidator,t.getRegisteredValidatorNames=a.getRegisteredValidatorNames,t.getRegisteredValidators=a.getRegisteredValidators,t.getValidator=a.getValidator,t.hasValidator=a.hasValidator},28029:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(83790);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.numericValidator=s.numericValidator},83790:(e,t,o)=>{"use strict";t.__esModule=!0,t.numericValidator=n;var s=o(36926);const r=t.VALIDATOR_TYPE="numeric";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):t(""!==o&&(0,s.isNumeric)(e))}n.VALIDATOR_TYPE=r},57006:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.getValidator=function(e){if("function"==typeof e)return e;if(!l(e))throw Error(`No registered validator found under "${e}" name`);return i(e)},t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);n(e,t)},o(67834);var r=s(o(29328));const{register:n,getItem:i,hasItem:l,getNames:a,getValues:h}=(0,r.default)("validators");t.getRegisteredValidators=h,t.getRegisteredValidatorNames=a,t.hasValidator=l},40711:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(67658);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.timeValidator=s.timeValidator},67658:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.timeValidator=l;var r=s(o(86798));const n=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],i=t.VALIDATOR_TYPE="time";function l(e,t){const o=this.timeFormat||"h:mm:ss a";let s=!0,i=e;null===i&&(i=""),i=/^\d{3,}$/.test(i)?parseInt(i,10):i;const l=/^\d{1,2}$/.test(i);l&&(i+=":00");const a=(0,r.default)(i,n,!0).isValid()?(0,r.default)(i):(0,r.default)(i,o);let h=a.isValid(),c=(0,r.default)(i,o,!0).isValid()&&!l;if(this.allowEmpty&&""===i&&(h=!0,c=!0),h||(s=!1),!h&&c&&(s=!0),h&&!c)if(!0===this.correctFormat){const e=a.format(o);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),s=!0}else s=!1;t(s)}l.VALIDATOR_TYPE=i},76006:(e,t,o)=>{"use strict";o.r(t)},65166:t=>{"use strict";t.exports=e},75972:e=>{"use strict";e.exports=t},86798:e=>{"use strict";e.exports=o},20846:e=>{"use strict";e.exports=s},85707:(e,t,o)=>{var s=o(45498);e.exports=function(e,t,o){return(t=s(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports},96784:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},11327:(e,t,o)=>{var s=o(10564).default;e.exports=function(e,t){if("object"!=s(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},45498:(e,t,o)=>{var s=o(10564).default,r=o(11327);e.exports=function(e){var t=r(e,"string");return"symbol"==s(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},10564: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},68120:(e,t,o)=>{"use strict";var s=o(1483),r=o(18761),n=TypeError;e.exports=function(e){if(s(e))return e;throw new n(r(e)+" is not a function")}},63852:(e,t,o)=>{"use strict";var s=o(40735),r=String,n=TypeError;e.exports=function(e){if(s(e))return e;throw new n("Can't set "+r(e)+" as a prototype")}},14246:(e,t,o)=>{"use strict";var s=o(36880).has;e.exports=function(e){return s(e),e}},37095:(e,t,o)=>{"use strict";var s=o(70001),r=o(25290),n=o(25835).f,i=s("unscopables"),l=Array.prototype;void 0===l[i]&&n(l,i,{configurable:!0,value:r(null)}),e.exports=function(e){l[i][e]=!0}},96021:(e,t,o)=>{"use strict";var s=o(4815),r=TypeError;e.exports=function(e,t){if(s(t,e))return e;throw new r("Incorrect invocation")}},2293:(e,t,o)=>{"use strict";var s=o(71704),r=String,n=TypeError;e.exports=function(e){if(s(e))return e;throw new n(r(e)+" is not an object")}},78592:(e,t,o)=>{"use strict";var s=o(66960);e.exports=function(e,t,o){for(var r=0,n=arguments.length>2?o:s(t),i=new e(n);n>r;)i[r]=t[r++];return i}},86651:(e,t,o)=>{"use strict";var s=o(35599),r=o(33392),n=o(66960),i=function(e){return function(t,o,i){var l=s(t),a=n(l);if(0===a)return!e&&-1;var h,c=r(i,a);if(e&&o!=o){for(;a>c;)if((h=l[c++])!=h)return!0}else for(;a>c;c++)if((e||c in l)&&l[c]===o)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},39273:(e,t,o)=>{"use strict";var s=o(20382),r=o(14914),n=TypeError,i=Object.getOwnPropertyDescriptor,l=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,t){if(r(e)&&!i(e,"length").writable)throw new n("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},61698:(e,t,o)=>{"use strict";var s=o(14762);e.exports=s([].slice)},48901:(e,t,o)=>{"use strict";var s=o(2293),r=o(46721);e.exports=function(e,t,o,n){try{return n?t(s(o)[0],o[1]):t(o)}catch(t){r(e,"throw",t)}}},91278:(e,t,o)=>{"use strict";var s=o(14762),r=s({}.toString),n=s("".slice);e.exports=function(e){return n(r(e),8,-1)}},26145:(e,t,o)=>{"use strict";var s=o(34338),r=o(1483),n=o(91278),i=o(70001)("toStringTag"),l=Object,a="Arguments"===n(function(){return arguments}());e.exports=s?n:function(e){var t,o,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(t=l(e),i))?o:a?n(t):"Object"===(s=n(t))&&r(t.callee)?"Arguments":s}},16726:(e,t,o)=>{"use strict";var s=o(55755),r=o(89497),n=o(4961),i=o(25835);e.exports=function(e,t,o){for(var l=r(t),a=i.f,h=n.f,c=0;c<l.length;c++){var u=l[c];s(e,u)||o&&s(o,u)||a(e,u,h(t,u))}}},19441:(e,t,o)=>{"use strict";var s=o(28473);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},75247:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},69037:(e,t,o)=>{"use strict";var s=o(20382),r=o(25835),n=o(57738);e.exports=s?function(e,t,o){return r.f(e,t,n(1,o))}:function(e,t,o){return e[t]=o,e}},57738:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},30670:(e,t,o)=>{"use strict";var s=o(20382),r=o(25835),n=o(57738);e.exports=function(e,t,o){s?r.f(e,t,n(0,o)):e[t]=o}},83864:(e,t,o)=>{"use strict";var s=o(90169),r=o(25835);e.exports=function(e,t,o){return o.get&&s(o.get,t,{getter:!0}),o.set&&s(o.set,t,{setter:!0}),r.f(e,t,o)}},77914:(e,t,o)=>{"use strict";var s=o(1483),r=o(25835),n=o(90169),i=o(82095);e.exports=function(e,t,o,l){l||(l={});var a=l.enumerable,h=void 0!==l.name?l.name:t;if(s(o)&&n(o,h,l),l.global)a?e[t]=o:i(t,o);else{try{l.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=o:r.f(e,t,{value:o,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},82313:(e,t,o)=>{"use strict";var s=o(77914);e.exports=function(e,t,o){for(var r in t)s(e,r,t[r],o);return e}},82095:(e,t,o)=>{"use strict";var s=o(85578),r=Object.defineProperty;e.exports=function(e,t){try{r(s,e,{value:t,configurable:!0,writable:!0})}catch(o){s[e]=t}return t}},16060:(e,t,o)=>{"use strict";var s=o(18761),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw new r("Cannot delete property "+s(t)+" of "+s(e))}},20382:(e,t,o)=>{"use strict";var s=o(28473);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3145:(e,t,o)=>{"use strict";var s=o(85578),r=o(71704),n=s.document,i=r(n)&&r(n.createElement);e.exports=function(e){return i?n.createElement(e):{}}},31091:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},44741:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},91058:(e,t,o)=>{"use strict";var s=o(19461);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(s)},35207:(e,t,o)=>{"use strict";var s=o(63897);e.exports="NODE"===s},19461:(e,t,o)=>{"use strict";var s=o(85578).navigator,r=s&&s.userAgent;e.exports=r?String(r):""},66477:(e,t,o)=>{"use strict";var s,r,n=o(85578),i=o(19461),l=n.process,a=n.Deno,h=l&&l.versions||a&&a.version,c=h&&h.v8;c&&(r=(s=c.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!r&&i&&(!(s=i.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=i.match(/Chrome\/(\d+)/))&&(r=+s[1]),e.exports=r},63897:(e,t,o)=>{"use strict";var s=o(85578),r=o(19461),n=o(91278),i=function(e){return r.slice(0,e.length)===e};e.exports=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":s.Bun&&"string"==typeof Bun.version?"BUN":s.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(s.process)?"NODE":s.window&&s.document?"BROWSER":"REST"},58223:(e,t,o)=>{"use strict";var s=o(14762),r=Error,n=s("".replace),i=String(new r("zxcasd").stack),l=/\n\s*at [^:]*:[^\n]*/,a=l.test(i);e.exports=function(e,t){if(a&&"string"==typeof e&&!r.prepareStackTrace)for(;t--;)e=n(e,l,"");return e}},27473:(e,t,o)=>{"use strict";var s=o(69037),r=o(58223),n=o(58541),i=Error.captureStackTrace;e.exports=function(e,t,o,l){n&&(i?i(e,t):s(e,"stack",r(o,l)))}},58541:(e,t,o)=>{"use strict";var s=o(28473),r=o(57738);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},28612:(e,t,o)=>{"use strict";var s=o(85578),r=o(4961).f,n=o(69037),i=o(77914),l=o(82095),a=o(16726),h=o(98730);e.exports=function(e,t){var o,c,u,d,g,f=e.target,p=e.global,m=e.stat;if(o=p?s:m?s[f]||l(f,{}):s[f]&&s[f].prototype)for(c in t){if(d=t[c],u=e.dontCallGetSet?(g=r(o,c))&&g.value:o[c],!h(p?c:f+(m?".":"#")+c,e.forced)&&void 0!==u){if(typeof d==typeof u)continue;a(d,u)}(e.sham||u&&u.sham)&&n(d,"sham",!0),i(o,c,d,e)}}},28473:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},73067:(e,t,o)=>{"use strict";var s=o(274),r=Function.prototype,n=r.apply,i=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?i.bind(n):function(){return i.apply(n,arguments)})},32914:(e,t,o)=>{"use strict";var s=o(23786),r=o(68120),n=o(274),i=s(s.bind);e.exports=function(e,t){return r(e),void 0===t?e:n?i(e,t):function(){return e.apply(t,arguments)}}},274:(e,t,o)=>{"use strict";var s=o(28473);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},21807:(e,t,o)=>{"use strict";var s=o(274),r=Function.prototype.call;e.exports=s?r.bind(r):function(){return r.apply(r,arguments)}},42048:(e,t,o)=>{"use strict";var s=o(20382),r=o(55755),n=Function.prototype,i=s&&Object.getOwnPropertyDescriptor,l=r(n,"name"),a=l&&"something"===function(){}.name,h=l&&(!s||s&&i(n,"name").configurable);e.exports={EXISTS:l,PROPER:a,CONFIGURABLE:h}},680:(e,t,o)=>{"use strict";var s=o(14762),r=o(68120);e.exports=function(e,t,o){try{return s(r(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}}},23786:(e,t,o)=>{"use strict";var s=o(91278),r=o(14762);e.exports=function(e){if("Function"===s(e))return r(e)}},14762:(e,t,o)=>{"use strict";var s=o(274),r=Function.prototype,n=r.call,i=s&&r.bind.bind(n,n);e.exports=s?i:function(e){return function(){return n.apply(e,arguments)}}},16458:(e,t,o)=>{"use strict";var s=o(85578);e.exports=function(e,t){var o=s[e],r=o&&o.prototype;return r&&r[t]}},11409:(e,t,o)=>{"use strict";var s=o(85578),r=o(1483);e.exports=function(e,t){return arguments.length<2?(o=s[e],r(o)?o:void 0):s[e]&&s[e][t];var o}},40041:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},22992:(e,t,o)=>{"use strict";var s=o(21807),r=o(2293),n=o(40041),i=o(26665);e.exports=function(e,t){t&&"string"==typeof e||r(e);var o=i(e);return n(r(void 0!==o?s(o,e):e))}},26665:(e,t,o)=>{"use strict";var s=o(26145),r=o(92564),n=o(15983),i=o(86775),l=o(70001)("iterator");e.exports=function(e){if(!n(e))return r(e,l)||r(e,"@@iterator")||i[s(e)]}},14887:(e,t,o)=>{"use strict";var s=o(21807),r=o(68120),n=o(2293),i=o(18761),l=o(26665),a=TypeError;e.exports=function(e,t){var o=arguments.length<2?l(e):t;if(r(o))return n(s(o,e));throw new a(i(e)+" is not iterable")}},55215:(e,t,o)=>{"use strict";var s=o(14762),r=o(14914),n=o(1483),i=o(91278),l=o(26261),a=s([].push);e.exports=function(e){if(n(e))return e;if(r(e)){for(var t=e.length,o=[],s=0;s<t;s++){var h=e[s];"string"==typeof h?a(o,h):"number"!=typeof h&&"Number"!==i(h)&&"String"!==i(h)||a(o,l(h))}var c=o.length,u=!0;return function(e,t){if(u)return u=!1,t;if(r(this))return t;for(var s=0;s<c;s++)if(o[s]===e)return t}}}},92564:(e,t,o)=>{"use strict";var s=o(68120),r=o(15983);e.exports=function(e,t){var o=e[t];return r(o)?void 0:s(o)}},53131:(e,t,o)=>{"use strict";var s=o(68120),r=o(2293),n=o(21807),i=o(73005),l=o(40041),a="Invalid size",h=RangeError,c=TypeError,u=Math.max,d=function(e,t){this.set=e,this.size=u(t,0),this.has=s(e.has),this.keys=s(e.keys)};d.prototype={getIterator:function(){return l(r(n(this.keys,this.set)))},includes:function(e){return n(this.has,this.set,e)}},e.exports=function(e){r(e);var t=+e.size;if(t!=t)throw new c(a);var o=i(t);if(o<0)throw new h(a);return new d(e,o)}},20708:(e,t,o)=>{"use strict";var s=o(14762),r=o(22347),n=Math.floor,i=s("".charAt),l=s("".replace),a=s("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,o,s,u,d){var g=o+e.length,f=s.length,p=c;return void 0!==u&&(u=r(u),p=h),l(d,p,(function(r,l){var h;switch(i(l,0)){case"$":return"$";case"&":return e;case"`":return a(t,0,o);case"'":return a(t,g);case"<":h=u[a(l,1,-1)];break;default:var c=+l;if(0===c)return r;if(c>f){var d=n(c/10);return 0===d?r:d<=f?void 0===s[d-1]?i(l,1):s[d-1]+i(l,1):r}h=s[c-1]}return void 0===h?"":h}))}},85578:function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},55755:(e,t,o)=>{"use strict";var s=o(14762),r=o(22347),n=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return n(r(e),t)}},11507:e=>{"use strict";e.exports={}},42811:(e,t,o)=>{"use strict";var s=o(11409);e.exports=s("document","documentElement")},1799:(e,t,o)=>{"use strict";var s=o(20382),r=o(28473),n=o(3145);e.exports=!s&&!r((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))},32121:(e,t,o)=>{"use strict";var s=o(14762),r=o(28473),n=o(91278),i=Object,l=s("".split);e.exports=r((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?l(e,""):i(e)}:i},32429:(e,t,o)=>{"use strict";var s=o(1483),r=o(71704),n=o(51953);e.exports=function(e,t,o){var i,l;return n&&s(i=t.constructor)&&i!==o&&r(l=i.prototype)&&l!==o.prototype&&n(e,l),e}},17268:(e,t,o)=>{"use strict";var s=o(14762),r=o(1483),n=o(91831),i=s(Function.toString);r(n.inspectSource)||(n.inspectSource=function(e){return i(e)}),e.exports=n.inspectSource},16866:(e,t,o)=>{"use strict";var s=o(71704),r=o(69037);e.exports=function(e,t){s(t)&&"cause"in t&&r(e,"cause",t.cause)}},64483:(e,t,o)=>{"use strict";var s,r,n,i=o(74644),l=o(85578),a=o(71704),h=o(69037),c=o(55755),u=o(91831),d=o(65409),g=o(11507),f="Object already initialized",p=l.TypeError,m=l.WeakMap;if(i||u.state){var w=u.state||(u.state=new m);w.get=w.get,w.has=w.has,w.set=w.set,s=function(e,t){if(w.has(e))throw new p(f);return t.facade=e,w.set(e,t),t},r=function(e){return w.get(e)||{}},n=function(e){return w.has(e)}}else{var C=d("state");g[C]=!0,s=function(e,t){if(c(e,C))throw new p(f);return t.facade=e,h(e,C,t),t},r=function(e){return c(e,C)?e[C]:{}},n=function(e){return c(e,C)}}e.exports={set:s,get:r,has:n,enforce:function(e){return n(e)?r(e):s(e,{})},getterFor:function(e){return function(t){var o;if(!a(t)||(o=r(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return o}}}},95299:(e,t,o)=>{"use strict";var s=o(70001),r=o(86775),n=s("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[n]===e)}},14914:(e,t,o)=>{"use strict";var s=o(91278);e.exports=Array.isArray||function(e){return"Array"===s(e)}},1483: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}},98730:(e,t,o)=>{"use strict";var s=o(28473),r=o(1483),n=/#|\.prototype\./,i=function(e,t){var o=a[l(e)];return o===c||o!==h&&(r(t)?s(t):!!t)},l=i.normalize=function(e){return String(e).replace(n,".").toLowerCase()},a=i.data={},h=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},15983:e=>{"use strict";e.exports=function(e){return null==e}},71704:(e,t,o)=>{"use strict";var s=o(1483);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},40735:(e,t,o)=>{"use strict";var s=o(71704);e.exports=function(e){return s(e)||null===e}},19557:e=>{"use strict";e.exports=!1},84786:(e,t,o)=>{"use strict";var s=o(71704),r=o(91278),n=o(70001)("match");e.exports=function(e){var t;return s(e)&&(void 0!==(t=e[n])?!!t:"RegExp"===r(e))}},31423:(e,t,o)=>{"use strict";var s=o(11409),r=o(1483),n=o(4815),i=o(45022),l=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return r(t)&&n(t.prototype,l(e))}},76001:(e,t,o)=>{"use strict";var s=o(21807);e.exports=function(e,t,o){for(var r,n,i=o?e:e.iterator,l=e.next;!(r=s(l,i)).done;)if(void 0!==(n=t(r.value)))return n}},11506:(e,t,o)=>{"use strict";var s=o(32914),r=o(21807),n=o(2293),i=o(18761),l=o(95299),a=o(66960),h=o(4815),c=o(14887),u=o(26665),d=o(46721),g=TypeError,f=function(e,t){this.stopped=e,this.result=t},p=f.prototype;e.exports=function(e,t,o){var m,w,C,v,y,E,S,R=o&&o.that,b=!(!o||!o.AS_ENTRIES),_=!(!o||!o.IS_RECORD),T=!(!o||!o.IS_ITERATOR),M=!(!o||!o.INTERRUPTED),O=s(t,R),I=function(e){return m&&d(m,"normal",e),new f(!0,e)},N=function(e){return b?(n(e),M?O(e[0],e[1],I):O(e[0],e[1])):M?O(e,I):O(e)};if(_)m=e.iterator;else if(T)m=e;else{if(!(w=u(e)))throw new g(i(e)+" is not iterable");if(l(w)){for(C=0,v=a(e);v>C;C++)if((y=N(e[C]))&&h(p,y))return y;return new f(!1)}m=c(e,w)}for(E=_?e.next:m.next;!(S=r(E,m)).done;){try{y=N(S.value)}catch(e){d(m,"throw",e)}if("object"==typeof y&&y&&h(p,y))return y}return new f(!1)}},46721:(e,t,o)=>{"use strict";var s=o(21807),r=o(2293),n=o(92564);e.exports=function(e,t,o){var i,l;r(e);try{if(!(i=n(e,"return"))){if("throw"===t)throw o;return o}i=s(i,e)}catch(e){l=!0,i=e}if("throw"===t)throw o;if(l)throw i;return r(i),o}},58660:(e,t,o)=>{"use strict";var s=o(21807),r=o(25290),n=o(69037),i=o(82313),l=o(70001),a=o(64483),h=o(92564),c=o(21851).IteratorPrototype,u=o(75247),d=o(46721),g=l("toStringTag"),f="IteratorHelper",p="WrapForValidIterator",m=a.set,w=function(e){var t=a.getterFor(e?p:f);return i(r(c),{next:function(){var o=t(this);if(e)return o.nextHandler();try{var s=o.done?void 0:o.nextHandler();return u(s,o.done)}catch(e){throw o.done=!0,e}},return:function(){var o=t(this),r=o.iterator;if(o.done=!0,e){var n=h(r,"return");return n?s(n,r):u(void 0,!0)}if(o.inner)try{d(o.inner.iterator,"normal")}catch(e){return d(r,"throw",e)}return r&&d(r,"normal"),u(void 0,!0)}})},C=w(!0),v=w(!1);n(v,g,"Iterator Helper"),e.exports=function(e,t){var o=function(o,s){s?(s.iterator=o.iterator,s.next=o.next):s=o,s.type=t?p:f,s.nextHandler=e,s.counter=0,s.done=!1,m(this,s)};return o.prototype=t?C:v,o}},13963:(e,t,o)=>{"use strict";var s=o(21807),r=o(68120),n=o(2293),i=o(40041),l=o(58660),a=o(48901),h=l((function(){var e=this.iterator,t=n(s(this.next,e));if(!(this.done=!!t.done))return a(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return n(this),r(e),new h(i(this),{mapper:e})}},21851:(e,t,o)=>{"use strict";var s,r,n,i=o(28473),l=o(1483),a=o(71704),h=o(25290),c=o(53181),u=o(77914),d=o(70001),g=o(19557),f=d("iterator"),p=!1;[].keys&&("next"in(n=[].keys())?(r=c(c(n)))!==Object.prototype&&(s=r):p=!0),!a(s)||i((function(){var e={};return s[f].call(e)!==e}))?s={}:g&&(s=h(s)),l(s[f])||u(s,f,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:p}},86775:e=>{"use strict";e.exports={}},66960:(e,t,o)=>{"use strict";var s=o(58324);e.exports=function(e){return s(e.length)}},90169:(e,t,o)=>{"use strict";var s=o(14762),r=o(28473),n=o(1483),i=o(55755),l=o(20382),a=o(42048).CONFIGURABLE,h=o(17268),c=o(64483),u=c.enforce,d=c.get,g=String,f=Object.defineProperty,p=s("".slice),m=s("".replace),w=s([].join),C=l&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),v=String(String).split("String"),y=e.exports=function(e,t,o){"Symbol("===p(g(t),0,7)&&(t="["+m(g(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),o&&o.getter&&(t="get "+t),o&&o.setter&&(t="set "+t),(!i(e,"name")||a&&e.name!==t)&&(l?f(e,"name",{value:t,configurable:!0}):e.name=t),C&&o&&i(o,"arity")&&e.length!==o.arity&&f(e,"length",{value:o.arity});try{o&&i(o,"constructor")&&o.constructor?l&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=u(e);return i(s,"source")||(s.source=w(v,"string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return n(this)&&d(this).source||h(this)}),"toString")},61703:e=>{"use strict";var t=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?o:t)(s)}},17969:(e,t,o)=>{"use strict";var s=o(26261);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},25290:(e,t,o)=>{"use strict";var s,r=o(2293),n=o(95799),i=o(44741),l=o(11507),a=o(42811),h=o(3145),c=o(65409),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 r=i.length;r--;)delete w[u][i[r]];return w()};l[g]=!0,e.exports=Object.create||function(e,t){var o;return null!==e?(f[u]=r(e),o=new f,f[u]=null,o[g]=e):o=w(),void 0===t?o:n.f(o,t)}},95799:(e,t,o)=>{"use strict";var s=o(20382),r=o(3896),n=o(25835),i=o(2293),l=o(35599),a=o(33658);t.f=s&&!r?Object.defineProperties:function(e,t){i(e);for(var o,s=l(t),r=a(t),h=r.length,c=0;h>c;)n.f(e,o=r[c++],s[o]);return e}},25835:(e,t,o)=>{"use strict";var s=o(20382),r=o(1799),n=o(3896),i=o(2293),l=o(83815),a=TypeError,h=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",g="writable";t.f=s?n?function(e,t,o){if(i(e),t=l(t),i(o),"function"==typeof e&&"prototype"===t&&"value"in o&&g in o&&!o[g]){var s=c(e,t);s&&s[g]&&(e[t]=o.value,o={configurable:d in o?o[d]:s[d],enumerable:u in o?o[u]:s[u],writable:!1})}return h(e,t,o)}:h:function(e,t,o){if(i(e),t=l(t),i(o),r)try{return h(e,t,o)}catch(e){}if("get"in o||"set"in o)throw new a("Accessors not supported");return"value"in o&&(e[t]=o.value),e}},4961:(e,t,o)=>{"use strict";var s=o(20382),r=o(21807),n=o(37611),i=o(57738),l=o(35599),a=o(83815),h=o(55755),c=o(1799),u=Object.getOwnPropertyDescriptor;t.f=s?u:function(e,t){if(e=l(e),t=a(t),c)try{return u(e,t)}catch(e){}if(h(e,t))return i(!r(n.f,e,t),e[t])}},12278:(e,t,o)=>{"use strict";var s=o(56742),r=o(44741).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,r)}},74347:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},53181:(e,t,o)=>{"use strict";var s=o(55755),r=o(1483),n=o(22347),i=o(65409),l=o(19441),a=i("IE_PROTO"),h=Object,c=h.prototype;e.exports=l?h.getPrototypeOf:function(e){var t=n(e);if(s(t,a))return t[a];var o=t.constructor;return r(o)&&t instanceof o?o.prototype:t instanceof h?c:null}},4815:(e,t,o)=>{"use strict";var s=o(14762);e.exports=s({}.isPrototypeOf)},56742:(e,t,o)=>{"use strict";var s=o(14762),r=o(55755),n=o(35599),i=o(86651).indexOf,l=o(11507),a=s([].push);e.exports=function(e,t){var o,s=n(e),h=0,c=[];for(o in s)!r(l,o)&&r(s,o)&&a(c,o);for(;t.length>h;)r(s,o=t[h++])&&(~i(c,o)||a(c,o));return c}},33658:(e,t,o)=>{"use strict";var s=o(56742),r=o(44741);e.exports=Object.keys||function(e){return s(e,r)}},37611:(e,t)=>{"use strict";var o={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,r=s&&!o.call({1:2},1);t.f=r?function(e){var t=s(this,e);return!!t&&t.enumerable}:o},51953:(e,t,o)=>{"use strict";var s=o(680),r=o(71704),n=o(53312),i=o(63852);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,o={};try{(e=s(Object.prototype,"__proto__","set"))(o,[]),t=o instanceof Array}catch(e){}return function(o,s){return n(o),i(s),r(o)?(t?e(o,s):o.__proto__=s,o):o}}():void 0)},348:(e,t,o)=>{"use strict";var s=o(21807),r=o(1483),n=o(71704),i=TypeError;e.exports=function(e,t){var o,l;if("string"===t&&r(o=e.toString)&&!n(l=s(o,e)))return l;if(r(o=e.valueOf)&&!n(l=s(o,e)))return l;if("string"!==t&&r(o=e.toString)&&!n(l=s(o,e)))return l;throw new i("Can't convert object to primitive value")}},89497:(e,t,o)=>{"use strict";var s=o(11409),r=o(14762),n=o(12278),i=o(74347),l=o(2293),a=r([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=n.f(l(e)),o=i.f;return o?a(t,o(e)):t}},7150:(e,t,o)=>{"use strict";var s=o(25835).f;e.exports=function(e,t,o){o in e||s(e,o,{configurable:!0,get:function(){return t[o]},set:function(e){t[o]=e}})}},36653:(e,t,o)=>{"use strict";var s=o(2293);e.exports=function(){var e=s(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},39736:(e,t,o)=>{"use strict";var s=o(21807),r=o(55755),n=o(4815),i=o(36653),l=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in l||r(e,"flags")||!n(l,e)?t:s(i,e)}},53312:(e,t,o)=>{"use strict";var s=o(15983),r=TypeError;e.exports=function(e){if(s(e))throw new r("Can't call method on "+e);return e}},39570:(e,t,o)=>{"use strict";var s,r=o(85578),n=o(73067),i=o(1483),l=o(63897),a=o(19461),h=o(61698),c=o(4066),u=r.Function,d=/MSIE .\./.test(a)||"BUN"===l&&((s=r.Bun.version.split(".")).length<3||"0"===s[0]&&(s[1]<3||"3"===s[1]&&"0"===s[2]));e.exports=function(e,t){var o=t?2:1;return d?function(s,r){var l=c(arguments.length,1)>o,a=i(s)?s:u(s),d=l?h(arguments,o):[],g=l?function(){n(a,this,d)}:a;return t?e(g,r):e(g)}:e}},34824:(e,t,o)=>{"use strict";var s=o(36880),r=o(11639),n=s.Set,i=s.add;e.exports=function(e){var t=new n;return r(e,(function(e){i(t,e)})),t}},26006:(e,t,o)=>{"use strict";var s=o(14246),r=o(36880),n=o(34824),i=o(45828),l=o(53131),a=o(11639),h=o(76001),c=r.has,u=r.remove;e.exports=function(e){var t=s(this),o=l(e),r=n(t);return i(t)<=o.size?a(t,(function(e){o.includes(e)&&u(r,e)})):h(o.getIterator(),(function(e){c(t,e)&&u(r,e)})),r}},36880:(e,t,o)=>{"use strict";var s=o(14762),r=Set.prototype;e.exports={Set,add:s(r.add),has:s(r.has),remove:s(r.delete),proto:r}},25472:(e,t,o)=>{"use strict";var s=o(14246),r=o(36880),n=o(45828),i=o(53131),l=o(11639),a=o(76001),h=r.Set,c=r.add,u=r.has;e.exports=function(e){var t=s(this),o=i(e),r=new h;return n(t)>o.size?a(o.getIterator(),(function(e){u(t,e)&&c(r,e)})):l(t,(function(e){o.includes(e)&&c(r,e)})),r}},87035:(e,t,o)=>{"use strict";var s=o(14246),r=o(36880).has,n=o(45828),i=o(53131),l=o(11639),a=o(76001),h=o(46721);e.exports=function(e){var t=s(this),o=i(e);if(n(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(r(t,e))return h(c,"normal",!1)}))}},51984:(e,t,o)=>{"use strict";var s=o(14246),r=o(45828),n=o(11639),i=o(53131);e.exports=function(e){var t=s(this),o=i(e);return!(r(t)>o.size)&&!1!==n(t,(function(e){if(!o.includes(e))return!1}),!0)}},33049:(e,t,o)=>{"use strict";var s=o(14246),r=o(36880).has,n=o(45828),i=o(53131),l=o(76001),a=o(46721);e.exports=function(e){var t=s(this),o=i(e);if(n(t)<o.size)return!1;var h=o.getIterator();return!1!==l(h,(function(e){if(!r(t,e))return a(h,"normal",!1)}))}},11639:(e,t,o)=>{"use strict";var s=o(14762),r=o(76001),n=o(36880),i=n.Set,l=n.proto,a=s(l.forEach),h=s(l.keys),c=h(new i).next;e.exports=function(e,t,o){return o?r({iterator:h(e),next:c},t):a(e,t)}},5242:(e,t,o)=>{"use strict";var s=o(11409),r=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=s("Set");try{(new t)[e](r(0));try{return(new t)[e](r(-1)),!1}catch(e){return!0}}catch(e){return!1}}},45828:(e,t,o)=>{"use strict";var s=o(680),r=o(36880);e.exports=s(r.proto,"size","get")||function(e){return e.size}},61916:(e,t,o)=>{"use strict";var s=o(14246),r=o(36880),n=o(34824),i=o(53131),l=o(76001),a=r.add,h=r.has,c=r.remove;e.exports=function(e){var t=s(this),o=i(e).getIterator(),r=n(t);return l(o,(function(e){h(t,e)?c(r,e):a(r,e)})),r}},95790:(e,t,o)=>{"use strict";var s=o(14246),r=o(36880).add,n=o(34824),i=o(53131),l=o(76001);e.exports=function(e){var t=s(this),o=i(e).getIterator(),a=n(t);return l(o,(function(e){r(a,e)})),a}},65409:(e,t,o)=>{"use strict";var s=o(47255),r=o(81866),n=s("keys");e.exports=function(e){return n[e]||(n[e]=r(e))}},91831:(e,t,o)=>{"use strict";var s=o(19557),r=o(85578),n=o(82095),i="__core-js_shared__",l=e.exports=r[i]||n(i,{});(l.versions||(l.versions=[])).push({version:"3.39.0",mode:s?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},47255:(e,t,o)=>{"use strict";var s=o(91831);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},86029:(e,t,o)=>{"use strict";var s=o(66477),r=o(28473),n=o(85578).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},17007:(e,t,o)=>{"use strict";var s,r,n,i,l=o(85578),a=o(73067),h=o(32914),c=o(1483),u=o(55755),d=o(28473),g=o(42811),f=o(61698),p=o(3145),m=o(4066),w=o(91058),C=o(35207),v=l.setImmediate,y=l.clearImmediate,E=l.process,S=l.Dispatch,R=l.Function,b=l.MessageChannel,_=l.String,T=0,M={},O="onreadystatechange";d((function(){s=l.location}));var I=function(e){if(u(M,e)){var t=M[e];delete M[e],t()}},N=function(e){return function(){I(e)}},A=function(e){I(e.data)},P=function(e){l.postMessage(_(e),s.protocol+"//"+s.host)};v&&y||(v=function(e){m(arguments.length,1);var t=c(e)?e:R(e),o=f(arguments,1);return M[++T]=function(){a(t,void 0,o)},r(T),T},y=function(e){delete M[e]},C?r=function(e){E.nextTick(N(e))}:S&&S.now?r=function(e){S.now(N(e))}:b&&!w?(i=(n=new b).port2,n.port1.onmessage=A,r=h(i.postMessage,i)):l.addEventListener&&c(l.postMessage)&&!l.importScripts&&s&&"file:"!==s.protocol&&!d(P)?(r=P,l.addEventListener("message",A,!1)):r=O in p("script")?function(e){g.appendChild(p("script"))[O]=function(){g.removeChild(this),I(e)}}:function(e){setTimeout(N(e),0)}),e.exports={set:v,clear:y}},33392:(e,t,o)=>{"use strict";var s=o(73005),r=Math.max,n=Math.min;e.exports=function(e,t){var o=s(e);return o<0?r(o+t,0):n(o,t)}},35599:(e,t,o)=>{"use strict";var s=o(32121),r=o(53312);e.exports=function(e){return s(r(e))}},73005:(e,t,o)=>{"use strict";var s=o(61703);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},58324:(e,t,o)=>{"use strict";var s=o(73005),r=Math.min;e.exports=function(e){var t=s(e);return t>0?r(t,9007199254740991):0}},22347:(e,t,o)=>{"use strict";var s=o(53312),r=Object;e.exports=function(e){return r(s(e))}},22355:(e,t,o)=>{"use strict";var s=o(21807),r=o(71704),n=o(31423),i=o(92564),l=o(348),a=o(70001),h=TypeError,c=a("toPrimitive");e.exports=function(e,t){if(!r(e)||n(e))return e;var o,a=i(e,c);if(a){if(void 0===t&&(t="default"),o=s(a,e,t),!r(o)||n(o))return o;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},83815:(e,t,o)=>{"use strict";var s=o(22355),r=o(31423);e.exports=function(e){var t=s(e,"string");return r(t)?t:t+""}},34338:(e,t,o)=>{"use strict";var s={};s[o(70001)("toStringTag")]="z",e.exports="[object z]"===String(s)},26261:(e,t,o)=>{"use strict";var s=o(26145),r=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},18761:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},81866:(e,t,o)=>{"use strict";var s=o(14762),r=0,n=Math.random(),i=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++r+n,36)}},45022:(e,t,o)=>{"use strict";var s=o(86029);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3896:(e,t,o)=>{"use strict";var s=o(20382),r=o(28473);e.exports=s&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4066:e=>{"use strict";var t=TypeError;e.exports=function(e,o){if(e<o)throw new t("Not enough arguments");return e}},74644:(e,t,o)=>{"use strict";var s=o(85578),r=o(1483),n=s.WeakMap;e.exports=r(n)&&/native code/.test(String(n))},70001:(e,t,o)=>{"use strict";var s=o(85578),r=o(47255),n=o(55755),i=o(81866),l=o(86029),a=o(45022),h=s.Symbol,c=r("wks"),u=a?h.for||h:h&&h.withoutSetter||i;e.exports=function(e){return n(c,e)||(c[e]=l&&n(h,e)?h[e]:u("Symbol."+e)),c[e]}},72335:(e,t,o)=>{"use strict";var s=o(11409),r=o(55755),n=o(69037),i=o(4815),l=o(51953),a=o(16726),h=o(7150),c=o(32429),u=o(17969),d=o(16866),g=o(27473),f=o(20382),p=o(19557);e.exports=function(e,t,o,m){var w="stackTraceLimit",C=m?2:1,v=e.split("."),y=v[v.length-1],E=s.apply(null,v);if(E){var S=E.prototype;if(!p&&r(S,"cause")&&delete S.cause,!o)return E;var R=s("Error"),b=t((function(e,t){var o=u(m?t:e,void 0),s=m?new E(e):new E;return void 0!==o&&n(s,"message",o),g(s,b,s.stack,2),this&&i(S,this)&&c(s,this,b),arguments.length>C&&d(s,arguments[C]),s}));if(b.prototype=S,"Error"!==y?l?l(b,R):a(b,R,{name:!0}):f&&w in E&&(h(b,E,w),h(b,E,"prepareStackTrace")),a(b,E),!p)try{S.name!==y&&n(S,"name",y),S.constructor=b}catch(e){}return b}}},95913:(e,t,o)=>{"use strict";var s=o(28612),r=o(22347),n=o(66960),i=o(73005),l=o(37095);s({target:"Array",proto:!0},{at:function(e){var t=r(this),o=n(t),s=i(e),l=s>=0?s:o+s;return l<0||l>=o?void 0:t[l]}}),l("at")},15724:(e,t,o)=>{"use strict";var s=o(28612),r=o(22347),n=o(66960),i=o(39273),l=o(31091);s({target:"Array",proto:!0,arity:1,forced:o(28473)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=r(this),o=n(t),s=arguments.length;l(o+s);for(var a=0;a<s;a++)t[o]=arguments[a],o++;return i(t,o),o}})},79747:(e,t,o)=>{"use strict";var s=o(28612),r=o(14762),n=o(68120),i=o(35599),l=o(78592),a=o(16458),h=o(37095),c=Array,u=r(a("Array","sort"));s({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&n(e);var t=i(this),o=l(c,t);return u(o,e)}}),h("toSorted")},63979:(e,t,o)=>{"use strict";o(37095)("flatMap")},25352:(e,t,o)=>{"use strict";o(37095)("flat")},54999:(e,t,o)=>{"use strict";var s=o(28612),r=o(22347),n=o(66960),i=o(39273),l=o(16060),a=o(31091);s({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=r(this),o=n(t),s=arguments.length;if(s){a(o+s);for(var h=o;h--;){var c=h+s;h in t?t[c]=t[h]:l(t,c)}for(var u=0;u<s;u++)t[u]=arguments[u]}return i(t,o+s)}})},67834:(e,t,o)=>{"use strict";var s=o(28612),r=o(85578),n=o(73067),i=o(72335),l="WebAssembly",a=r[l],h=7!==new Error("e",{cause:7}).cause,c=function(e,t){var o={};o[e]=i(e,t,h),s({global:!0,constructor:!0,arity:1,forced:h},o)},u=function(e,t){if(a&&a[e]){var o={};o[e]=i(l+"."+e,t,h),s({target:l,stat:!0,constructor:!0,arity:1,forced:h},o)}};c("Error",(function(e){return function(t){return n(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return n(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return n(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return n(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return n(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return n(e,this,arguments)}})),c("URIError",(function(e){return function(t){return n(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return n(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return n(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return n(e,this,arguments)}}))},43617:(e,t,o)=>{"use strict";var s=o(28612),r=o(85578),n=o(96021),i=o(2293),l=o(1483),a=o(53181),h=o(83864),c=o(30670),u=o(28473),d=o(55755),g=o(70001),f=o(21851).IteratorPrototype,p=o(20382),m=o(19557),w="constructor",C="Iterator",v=g("toStringTag"),y=TypeError,E=r[C],S=m||!l(E)||E.prototype!==f||!u((function(){E({})})),R=function(){if(n(this,f),a(this)===f)throw new y("Abstract class Iterator not directly constructable")},b=function(e,t){p?h(f,e,{configurable:!0,get:function(){return t},set:function(t){if(i(this),this===f)throw new y("You can't redefine this property");d(this,e)?this[e]=t:c(this,e,t)}}):f[e]=t};d(f,v)||b(v,C),!S&&d(f,w)&&f[w]!==Object||b(w,R),R.prototype=f,s({global:!0,constructor:!0,forced:S},{Iterator:R})},35214:(e,t,o)=>{"use strict";var s=o(28612),r=o(11506),n=o(68120),i=o(2293),l=o(40041);s({target:"Iterator",proto:!0,real:!0},{every:function(e){i(this),n(e);var t=l(this),o=0;return!r(t,(function(t,s){if(!e(t,o++))return s()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},81975:(e,t,o)=>{"use strict";var s=o(28612),r=o(21807),n=o(68120),i=o(2293),l=o(40041),a=o(58660),h=o(48901),c=o(19557),u=a((function(){for(var e,t,o=this.iterator,s=this.predicate,n=this.next;;){if(e=i(r(n,o)),this.done=!!e.done)return;if(t=e.value,h(o,s,[t,this.counter++],!0))return t}}));s({target:"Iterator",proto:!0,real:!0,forced:c},{filter:function(e){return i(this),n(e),new u(l(this),{predicate:e})}})},73242:(e,t,o)=>{"use strict";var s=o(28612),r=o(11506),n=o(68120),i=o(2293),l=o(40041);s({target:"Iterator",proto:!0,real:!0},{find:function(e){i(this),n(e);var t=l(this),o=0;return r(t,(function(t,s){if(e(t,o++))return s(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},22269:(e,t,o)=>{"use strict";var s=o(28612),r=o(21807),n=o(68120),i=o(2293),l=o(40041),a=o(22992),h=o(58660),c=o(46721),u=o(19557),d=h((function(){for(var e,t,o=this.iterator,s=this.mapper;;){if(t=this.inner)try{if(!(e=i(r(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){c(o,"throw",e)}if(e=i(r(this.next,o)),this.done=!!e.done)return;try{this.inner=a(s(e.value,this.counter++),!1)}catch(e){c(o,"throw",e)}}}));s({target:"Iterator",proto:!0,real:!0,forced:u},{flatMap:function(e){return i(this),n(e),new d(l(this),{mapper:e,inner:null})}})},99930:(e,t,o)=>{"use strict";var s=o(28612),r=o(11506),n=o(68120),i=o(2293),l=o(40041);s({target:"Iterator",proto:!0,real:!0},{forEach:function(e){i(this),n(e);var t=l(this),o=0;r(t,(function(t){e(t,o++)}),{IS_RECORD:!0})}})},93991:(e,t,o)=>{"use strict";var s=o(28612),r=o(13963);s({target:"Iterator",proto:!0,real:!0,forced:o(19557)},{map:r})},37227:(e,t,o)=>{"use strict";var s=o(28612),r=o(11506),n=o(68120),i=o(2293),l=o(40041),a=TypeError;s({target:"Iterator",proto:!0,real:!0},{reduce:function(e){i(this),n(e);var t=l(this),o=arguments.length<2,s=o?void 0:arguments[1],h=0;if(r(t,(function(t){o?(o=!1,s=t):s=e(s,t,h),h++}),{IS_RECORD:!0}),o)throw new a("Reduce of empty iterator with no initial value");return s}})},29217:(e,t,o)=>{"use strict";var s=o(28612),r=o(11506),n=o(68120),i=o(2293),l=o(40041);s({target:"Iterator",proto:!0,real:!0},{some:function(e){i(this),n(e);var t=l(this),o=0;return r(t,(function(t,s){if(e(t,o++))return s()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},66184:(e,t,o)=>{"use strict";var s=o(28612),r=o(11409),n=o(73067),i=o(21807),l=o(14762),a=o(28473),h=o(1483),c=o(31423),u=o(61698),d=o(55215),g=o(86029),f=String,p=r("JSON","stringify"),m=l(/./.exec),w=l("".charAt),C=l("".charCodeAt),v=l("".replace),y=l(1..toString),E=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,R=/^[\uDC00-\uDFFF]$/,b=!g||a((function(){var e=r("Symbol")("stringify detection");return"[null]"!==p([e])||"{}"!==p({a:e})||"{}"!==p(Object(e))})),_=a((function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")})),T=function(e,t){var o=u(arguments),s=d(t);if(h(s)||void 0!==e&&!c(e))return o[1]=function(e,t){if(h(s)&&(t=i(s,this,f(e),t)),!c(t))return t},n(p,null,o)},M=function(e,t,o){var s=w(o,t-1),r=w(o,t+1);return m(S,e)&&!m(R,r)||m(R,e)&&!m(S,s)?"\\u"+y(C(e,0),16):e};p&&s({target:"JSON",stat:!0,arity:3,forced:b||_},{stringify:function(e,t,o){var s=u(arguments),r=n(b?T:p,null,s);return _&&"string"==typeof r?v(r,E,M):r}})},75339:(e,t,o)=>{"use strict";var s=o(28612),r=o(11506),n=o(30670);s({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,o){n(t,e,o)}),{AS_ENTRIES:!0}),t}})},71336:(e,t,o)=>{"use strict";var s=o(28612),r=o(26006);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("difference")},{difference:r})},41558:(e,t,o)=>{"use strict";var s=o(28612),r=o(28473),n=o(25472);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("intersection")||r((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:n})},17663:(e,t,o)=>{"use strict";var s=o(28612),r=o(87035);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("isDisjointFrom")},{isDisjointFrom:r})},68630:(e,t,o)=>{"use strict";var s=o(28612),r=o(51984);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("isSubsetOf")},{isSubsetOf:r})},79645:(e,t,o)=>{"use strict";var s=o(28612),r=o(33049);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("isSupersetOf")},{isSupersetOf:r})},89858:(e,t,o)=>{"use strict";var s=o(28612),r=o(61916);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("symmetricDifference")},{symmetricDifference:r})},8620:(e,t,o)=>{"use strict";var s=o(28612),r=o(95790);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("union")},{union:r})},12587:(e,t,o)=>{"use strict";var s=o(28612),r=o(14762),n=o(53312),i=o(73005),l=o(26261),a=o(28473),h=r("".charAt);s({target:"String",proto:!0,forced:a((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=l(n(this)),o=t.length,s=i(e),r=s>=0?s:o+s;return r<0||r>=o?void 0:h(t,r)}})},64552:(e,t,o)=>{"use strict";var s=o(28612),r=o(21807),n=o(14762),i=o(53312),l=o(1483),a=o(15983),h=o(84786),c=o(26261),u=o(92564),d=o(39736),g=o(20708),f=o(70001),p=o(19557),m=f("replace"),w=TypeError,C=n("".indexOf),v=n("".replace),y=n("".slice),E=Math.max;s({target:"String",proto:!0},{replaceAll:function(e,t){var o,s,n,f,S,R,b,_,T,M,O=i(this),I=0,N="";if(!a(e)){if((o=h(e))&&(s=c(i(d(e))),!~C(s,"g")))throw new w("`.replaceAll` does not allow non-global regexes");if(n=u(e,m))return r(n,e,O,t);if(p&&o)return v(c(O),e,t)}for(f=c(O),S=c(e),(R=l(t))||(t=c(t)),b=S.length,_=E(1,b),T=C(f,S);-1!==T;)M=R?c(t(S,T,f)):g(S,f,T,[],void 0,t),N+=y(f,I,T)+M,I=T+b,T=T+_>f.length?-1:C(f,S,T+_);return I<f.length&&(N+=y(f,I)),N}})},14846:(e,t,o)=>{"use strict";o(43617)},63333:(e,t,o)=>{"use strict";o(35214)},27458:(e,t,o)=>{"use strict";o(81975)},6211:(e,t,o)=>{"use strict";o(73242)},49748:(e,t,o)=>{"use strict";o(22269)},69655:(e,t,o)=>{"use strict";o(99930)},94364:(e,t,o)=>{"use strict";o(93991)},90458:(e,t,o)=>{"use strict";o(37227)},75568:(e,t,o)=>{"use strict";o(29217)},31998:(e,t,o)=>{"use strict";var s=o(28612),r=o(85578),n=o(17007).clear;s({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==n},{clearImmediate:n})},71766:(e,t,o)=>{"use strict";o(31998),o(8615)},8615:(e,t,o)=>{"use strict";var s=o(28612),r=o(85578),n=o(17007).set,i=o(39570),l=r.setImmediate?i(n,!1):n;s({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==l},{setImmediate:l})}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e].call(o.exports,o,o.exports,i),o.exports}i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";var e=l,t=i(96784);var o=k(i(19984));o.CellCoords,o.CellRange;var s,r,n,a,h,c=i(6502),u=k(i(12370)),d=i(57466),g=t(i(75668)),f=t(i(81838)),p=k(i(19310)),m=k(i(47154)),w=k(i(99275)),C=k(i(42379)),v=k(i(96431)),y=k(i(37725)),E=k(i(77515)),S=k(i(95768)),R=k(i(36926)),b=k(i(95016)),_=k(i(83414)),T=k(i(83644)),M=k(i(94916)),O=k(i(40892)),I=i(45973),N=i(58151),A=i(57006),P=i(39548),H=i(42427),x=i(9458);function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(D=function(e){return e?o:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=D(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(0,c.registerAllModules)(),(0,g.default)(o.default),o.default.__GhostTable=f.default,o.default._getListenersCounter=u.getListenersCounter,o.default._getRegisteredMapsCounter=d.getRegisteredMapsCounter,o.default.EventManager=u.default;const L=[m,w,C,v,y,E,S,R,b,_,T,p],V=[M,O];o.default.helper={},o.default.dom={},m.arrayEach(L,(e=>{m.arrayEach(Object.getOwnPropertyNames(e),(t=>{"_"!==t.charAt(0)&&(o.default.helper[t]=e[t])}))})),m.arrayEach(V,(e=>{m.arrayEach(Object.getOwnPropertyNames(e),(t=>{"_"!==t.charAt(0)&&(o.default.dom[t]=e[t])}))})),o.default.cellTypes=null!==(s=o.default.cellTypes)&&void 0!==s?s:{},m.arrayEach((0,P.getRegisteredCellTypeNames)(),(e=>{o.default.cellTypes[e]=(0,P.getCellType)(e)})),o.default.cellTypes.registerCellType=P.registerCellType,o.default.cellTypes.getCellType=P.getCellType,o.default.editors=null!==(r=o.default.editors)&&void 0!==r?r:{},m.arrayEach((0,I.getRegisteredEditorNames)(),(e=>{o.default.editors[`${_.toUpperCaseFirst(e)}Editor`]=(0,I.getEditor)(e)})),o.default.editors.registerEditor=I.registerEditor,o.default.editors.getEditor=I.getEditor,o.default.renderers=null!==(n=o.default.renderers)&&void 0!==n?n:{},m.arrayEach((0,N.getRegisteredRendererNames)(),(e=>{const t=(0,N.getRenderer)(e);"base"===e&&(o.default.renderers.cellDecorator=t),o.default.renderers[`${_.toUpperCaseFirst(e)}Renderer`]=t})),o.default.renderers.registerRenderer=N.registerRenderer,o.default.renderers.getRenderer=N.getRenderer,o.default.validators=null!==(a=o.default.validators)&&void 0!==a?a:{},m.arrayEach((0,A.getRegisteredValidatorNames)(),(e=>{o.default.validators[`${_.toUpperCaseFirst(e)}Validator`]=(0,A.getValidator)(e)})),o.default.validators.registerValidator=A.registerValidator,o.default.validators.getValidator=A.getValidator,o.default.plugins=null!==(h=o.default.plugins)&&void 0!==h?h:{},m.arrayEach((0,H.getPluginsNames)(),(e=>{o.default.plugins[e]=(0,H.getPlugin)(e)})),o.default.plugins[`${_.toUpperCaseFirst(x.BasePlugin.PLUGIN_KEY)}Plugin`]=x.BasePlugin,o.default.plugins.registerPlugin=H.registerPlugin,o.default.plugins.getPlugin=H.getPlugin;e.default=o.default})(),l=l.default})()));
|
94
|
+
that does not exist. Before activation, register the context using the "addContext" method.`);u=e},isCtrlPressed:()=>!f&&(m.isPressed("control")||m.isPressed("meta")),releasePressedKeys:()=>m.releasePressedKeys(),destroy:()=>m.unmount()}}},99427:(e,t,o)=>{"use strict";t.__esModule=!0,t.useRecorder=function(e,t,o,s,d){const g=e=>a.includes(e),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=[];return e.altKey&&o.push("alt"),t&&(e.ctrlKey||e.metaKey)?o.push("control/meta"):(e.ctrlKey&&o.push("control"),e.metaKey&&o.push("meta")),e.shiftKey&&o.push("shift"),o},p=e=>{if(!1===t(e))return;if(!1===o(e)||229===e.keyCode||"string"!=typeof e.key||(0,n.isImmediatePropagationStopped)(e))return;const i=(0,r.normalizeEventKey)(e);let a=[];g(i)||(a=f(e));const h=[i].concat(a);!d(e,h)&&((0,l.isMacOS)()&&a.includes("meta")||!(0,l.isMacOS)()&&a.includes("control"))&&d(e,[i].concat(f(e,!0))),s(e)},m=e=>{if("string"==typeof e.key){const t=(0,r.normalizeEventKey)(e);g(t)&&h.press(t)}},w=e=>{if("string"==typeof e.key){const t=(0,r.normalizeEventKey)(e);g(t)&&h.release(t)}},C=()=>{h.releaseAll()};return{mount:()=>{let t=e;for(u+=1;t;)1===u&&(t.document.documentElement.addEventListener("keydown",m),c.push({event:"keydown",listener:m}),t.document.documentElement.addEventListener("keyup",w),c.push({event:"keyup",listener:w})),t.document.documentElement.addEventListener("keydown",p),t.document.documentElement.addEventListener("blur",C),t=(0,i.getParentWindow)(t)},unmount:()=>{let t=e;for(u-=1;t;){if(0===u){for(let e=0;e<c.length;e++){const{event:o,listener:s}=c[e];t.document.documentElement.removeEventListener(o,s)}c.length=0}t.document.documentElement.removeEventListener("keydown",p),t.document.documentElement.removeEventListener("blur",C),t=(0,i.getParentWindow)(t)}},isPressed:e=>h.isPressed(e),releasePressedKeys:()=>h.releaseAll()}},o(15724);var s=o(29728),r=o(84764),n=o(40892),i=o(94916),l=o(99275);const a=["meta","alt","shift","control"],h=(0,s.createKeysObserver)(),c=[];let u=0},84764:(e,t,o)=>{"use strict";t.__esModule=!0,o(94364);const s=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 s.has(t)?s.get(t):t})).sort().join("+");t.getKeysList=e=>e.split("+");const r=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(r.has(t))return r.get(t);const s=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(s)?s:o.toLowerCase()}},20328:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(94916),i=s(o(12370)),l=o(40892),a=s(o(7749)),h=o(43127),c=o(91980),u=o(45551);function d(e,t,o){g(e,t),t.set(e,o)}function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(m(e,t))}function p(e,t,o){return e.set(m(e,t),o),o}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")}var w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,E=new WeakMap,S=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakSet;function T(){return parseInt(this.hot.rootElement.getAttribute((0,u.A11Y_COLCOUNT)()[0]),10)}function M(e){const t=m(_,this,T).call(this)+e;(0,n.setAttribute)(this.hot.rootElement,...(0,u.A11Y_COLCOUNT)(t))}function O(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,n.addClass)(e,"htHasScrollY"):(0,n.removeClass)(e,"htHasScrollY"),this.hasHorizontalScroll()?(0,n.addClass)(e,"htHasScrollX"):(0,n.removeClass)(e,"htHasScrollX")}t.default=class{constructor(e){var t,o;g(t=this,o=_),o.add(t),(0,r.default)(this,"hot",void 0),(0,r.default)(this,"eventManager",void 0),(0,r.default)(this,"settings",void 0),(0,r.default)(this,"THEAD",void 0),(0,r.default)(this,"TBODY",void 0),(0,r.default)(this,"_wt",void 0),(0,r.default)(this,"activeWt",void 0),d(this,w,0),d(this,C,0),(0,r.default)(this,"postponedAdjustElementsSize",!1),d(this,v,!1),d(this,y,void 0),d(this,E,void 0),d(this,S,0),d(this,R,0),d(this,b,null),this.hot=e,this.eventManager=new i.default(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){this.hot.isRenderSuspended()||(this.hot.runHooks("beforeRender",this.hot.forceFullRender),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize()),this._wt.draw(!this.hot.forceFullRender),m(_,this,O).call(this),this.hot.runHooks("afterRender",this.hot.forceFullRender),this.hot.forceFullRender=!1,this.hot.renderCall=!1)}adjustElementsSize(){this.hot.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this._wt.wtOverlays.adjustElementsSize()}getCellAtCoords(e,t){const o=this._wt.getCell(e,t);return o<0?null:o}scrollViewport(e,t,o){return this._wt.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,o=e.getAttribute("style");o&&e.setAttribute("data-originalstyle",o),(0,n.addClass)(e,"handsontable"),p(E,this,t.createElement("TABLE")),(0,n.addClass)(f(E,this),"htCore"),this.hot.getSettings().tableClassName&&(0,n.addClass)(f(E,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,n.setAttribute)(f(E,this),[(0,u.A11Y_PRESENTATION)()]),(0,n.setAttribute)(e,[(0,u.A11Y_TREEGRID)(),(0,u.A11Y_ROWCOUNT)(-1),(0,u.A11Y_COLCOUNT)(this.hot.countCols()),(0,u.A11Y_MULTISELECTABLE)()])),this.THEAD=t.createElement("THEAD"),f(E,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),f(E,this).appendChild(this.TBODY),this.hot.table=f(E,this),this.hot.container.insertBefore(f(E,this),this.hot.container.firstChild)}registerEvents(){const{rootElement:e,rootDocument:t,selection:o,rootWindow:s}=this.hot,r=t.documentElement;this.eventManager.addEventListener(e,"mousedown",(e=>{p(v,this,!0),this.isTextSelectionAllowed(e.target)||((0,n.clearTextSelection)(s),e.preventDefault(),s.focus())})),this.eventManager.addEventListener(e,"mouseup",(()=>{p(v,this,!1)})),this.eventManager.addEventListener(e,"mousemove",(e=>{f(v,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,n.clearTextSelection)(s),e.preventDefault())})),this.eventManager.addEventListener(r,"keyup",(e=>{o.isInProgress()&&!e.shiftKey&&o.finish()})),this.eventManager.addEventListener(r,"mouseup",(s=>{o.isInProgress()&&(0,l.isLeftClick)(s)&&o.finish(),p(y,this,!1);const r=(0,n.isOutsideInput)(t.activeElement);(0,n.isInput)(t.activeElement)&&!r||!r&&(o.isSelected()||o.isSelectedByAnyHeader()||e.contains(s.target)||(0,l.isRightClick)(s))||this.hot.unlisten()})),this.eventManager.addEventListener(r,"contextmenu",(e=>{o.isInProgress()&&(0,l.isRightClick)(e)&&(o.finish(),p(y,this,!1))})),this.eventManager.addEventListener(r,"touchend",(()=>{o.isInProgress()&&o.finish(),p(y,this,!1)})),this.eventManager.addEventListener(r,"mousedown",(o=>{const s=o.target,i=o.x||o.clientX,l=o.y||o.clientY;let a=o.target;if(f(y,this)||!e||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(a===h){const e=(0,n.getScrollbarWidth)(t);if(t.elementFromPoint(i+e,l)!==h||t.elementFromPoint(i,l+e)!==h)return}else for(;a!==r;){if(null===a){if(o.isTargetWebComponent)break;return}if(a===e)return;a=a.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(s):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)}));let i=(0,n.getParentWindow)(s);for(;null!==i;)this.eventManager.addEventListener(i.document.documentElement,"click",(()=>{this.hot.unlisten()})),i=(0,n.getParentWindow)(i);this.eventManager.addEventListener(f(E,this),"selectstart",(e=>{this.settings.fragmentSelection||(0,n.isInput)(e.target)||e.preventDefault()}))}translateFromRenderableToVisualCoords(e){let{row:t,col:o}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,o))}translateFromRenderableToVisualIndex(e,t){let o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,s=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===o&&(o=e),null===s&&(s=t),[o,s]}countRenderableIndexes(e,t){const o=Math.min(e.getNotTrimmedIndexesLength(),t),s=e.getNearestNotHiddenIndex(o-1,-1);return null===s?0:e.getRenderableFromVisualIndex(s)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,o,s){if(isNaN(e)||e<0)return 0;const r=o.getNearestNotHiddenIndex(e,t),n=o.getRenderableFromVisualIndex(r);if(!Number.isInteger(n))return 0;let i=0;return t<0?i=n+1:t>0&&(i=s-n),i}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let o=0;for(let s=e;s<=t;s++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(s)&&(o+=1);return o}countRenderableRowsInRange(e,t){let o=0;for(let s=e;s<=t;s++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(s)&&(o+=1);return o}getStylesHandler(){return this._wt.stylesHandler}getDefaultRowHeight(){return this._wt.stylesHandler.getDefaultRowHeight()}addClassNameToLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,n.addClass)(o,e)}removeClassNameFromLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,n.removeClass)(o,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:f(E,this),isDataViewInstance:()=>(0,c.isRootInstance)(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push(((e,t)=>{const o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(o,t)})),this.hot.runHooks("afterGetRowHeaderRenderers",e),p(C,this,e.length),this.hot.getSettings().ariaTags&&m(_,this,T).call(this)===this.hot.countCols()&&m(_,this,M).call(this,f(C,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push(((e,t)=>{const o=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(o,t)})),this.hot.runHooks("afterGetColumnHeaderRenderers",e),p(w,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const o=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),s=null===o?e:o;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(s),s,t)},cellRenderer:(e,t,o)=>{const[s,r]=this.translateFromRenderableToVisualIndex(e,t),n=this.hot.runHooks("modifyGetCellCoords",s,r,!1,"meta");let i=s,l=r;Array.isArray(n)&&([i,l]=n);const a=this.hot.getCellMeta(i,l),h=this.hot.colToProp(l);let c=this.hot.getDataAtRowProp(i,h);this.hot.hasHook("beforeValueRender")&&(c=this.hot.runHooks("beforeValueRender",c,a)),this.hot.runHooks("beforeRenderer",o,s,r,h,c,a),this.hot.getCellRenderer(a)(this.hot,o,s,r,h,c,a),this.hot.runHooks("afterRenderer",o,s,r,h,c,a)},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,n.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,o,s)=>{const r=this.translateFromRenderableToVisualCoords(t),n={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=s,p(y,this,!0),p(b,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,r,o,n),(0,l.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:r,selection:this.hot.selection,controller:n,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,r,o),this.activeWt=this._wt)},onCellContextMenu:(e,t,o,s)=>{const r=this.translateFromRenderableToVisualCoords(t);this.activeWt=s,p(y,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,r,o),(0,l.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,r,o),this.activeWt=this._wt)},onCellMouseOut:(e,t,o,s)=>{const r=this.translateFromRenderableToVisualCoords(t);this.activeWt=s,this.hot.runHooks("beforeOnCellMouseOut",e,r,o),(0,l.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,r,o),this.activeWt=this._wt)},onCellMouseOver:(e,t,o,s)=>{const r=this.translateFromRenderableToVisualCoords(t),n={row:!1,column:!1,cell:!1};this.activeWt=s,this.hot.runHooks("beforeOnCellMouseOver",e,r,o,n),(0,l.isImmediatePropagationStopped)(e)||(!f(y,this)||f(b,this)&&f(b,this).x===e.clientX&&f(b,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:r,selection:this.hot.selection,controller:n,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,r,o),this.activeWt=this._wt,p(b,this,null))},onCellMouseUp:(e,t,o,s)=>{const r=this.translateFromRenderableToVisualCoords(t);this.activeWt=s,this.hot.runHooks("beforeOnCellMouseUp",e,r,o),(0,l.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||(this.hot.runHooks("afterOnCellMouseUp",e,r,o),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const o=this.hot.rowIndexMapper,s=e<0;let r=e;return s||(r=o.getVisualFromRenderableIndex(e),null!==r)?(r=this.hot.runHooks("beforeViewportScrollVertically",r,t),this.hot.runHooks("beforeViewportScroll"),s?r:o.getRenderableFromVisualIndex(r)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const o=this.hot.columnIndexMapper,s=e<0;let r=e;return s||(r=o.getVisualFromRenderableIndex(e),null!==r)?(r=this.hot.runHooks("beforeViewportScrollHorizontally",r,t),this.hot.runHooks("beforeViewportScroll"),s?r:o.getRenderableFromVisualIndex(r)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,o)=>{const s=this.hot.rowIndexMapper,r=e<0;let n=e;r||(n=s.getVisualFromRenderableIndex(e));const i=this.hot.runHooks("beforeHighlightingRowHeader",n,t,o);return r?i:s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(i,1))},onBeforeHighlightingColumnHeader:(e,t,o)=>{const s=this.hot.columnIndexMapper,r=e<0;let n=e;r||(n=s.getVisualFromRenderableIndex(e));const i=this.hot.runHooks("beforeHighlightingColumnHeader",n,t,o);return r?i:s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(i,1))},onAfterDrawSelection:(e,t,o)=>{let s;const[r,n]=this.translateFromRenderableToVisualIndex(e,t),i=this.hot.selection.getSelectedRange();if(i.size()>0){const e=i.peekByIndex(null!=o?o:0);s=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",r,n,s,o)},onBeforeDrawBorders:(e,t)=>{const[o,s,r,n]=e,i=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(o),this.hot.columnIndexMapper.getVisualFromRenderableIndex(s),this.hot.rowIndexMapper.getVisualFromRenderableIndex(r),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)];return this.hot.runHooks("beforeDrawBorders",i,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,o,s)=>{const r=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,i=t>=0?n.getVisualFromRenderableIndex(t):t,l=e>=0?r.getVisualFromRenderableIndex(e):e,a=this.hot.runHooks("modifyGetCellCoords",l,i,o,s);if(Array.isArray(a)){const[e,t,o,s]=a;return[e>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(e,1)):e,t>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(t,1)):t,o>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(o,-1)):o,s>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(s,-1)):s]}},onModifyGetCoordsElement:(e,t)=>{const o=this.hot.rowIndexMapper,s=this.hot.columnIndexMapper,r=t>=0?s.getVisualFromRenderableIndex(t):t,n=e>=0?o.getVisualFromRenderableIndex(e):e,i=this.hot.runHooks("modifyGetCoordsElement",n,r);if(Array.isArray(i)){const[e,t]=i;return[e>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(e,1)):e,t>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const o=this.countRenderableRows(),s=e.startRow,r=e.endRow;if("number"==typeof t)e.startRow=Math.max(s-t,0),e.endRow=Math.min(r+t,o-1);else if("auto"===t){const t=Math.max(1,Math.ceil(r/o*12));e.startRow=Math.max(s-t,0),e.endRow=Math.min(r+t,o-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const o=this.countRenderableColumns(),s=e.startColumn,r=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(s-t,0),e.endColumn=Math.min(r+t,o-1)),"auto"===t){const t=Math.max(1,Math.ceil(r/o*6));e.startColumn=Math.max(s-t,0),e.endColumn=Math.min(r+t,o-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e}};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new a.default(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:o,height:s}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(o,s),this.eventManager.addEventListener(t,"mousedown",(e=>{e.target===t&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(t,"contextmenu",(e=>{e.target===t&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",(()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&(this.hot.forceFullRender=!0,this.render())}))}isTextSelectionAllowed(e){if((0,n.isInput)(e))return!0;const t=(0,n.isChildOf)(e,this._wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))}isMouseDown(){return f(y,this)}isSelectedOnlyCell(){var e,t;return null!==(e=null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingleCell())&&void 0!==e&&e}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const o=t.firstChild;if(!(0,n.hasClass)(o,"relative"))return(0,n.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(o.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:o,getRowHeader:s}=this.hot,r=o.createElement("div"),n=o.createElement("span");r.className="relative",n.className="rowHeader",this.updateCellHeader(n,e,s),r.appendChild(n),t.appendChild(r)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const r=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const i=t.firstChild;(0,n.hasClass)(i,"relative")?(this.updateCellHeader(i.querySelector(".colHeader"),e,o,s),i.className="",(0,n.addClass)(i,["relative",...r()])):((0,n.empty)(t),this.appendColHeader(e,t,o,s))}else{const{rootDocument:i}=this.hot,l=i.createElement("div"),a=i.createElement("span"),h=r();l.classList.add("relative",...h),a.className="colHeader",this.settings.ariaTags&&((0,n.setAttribute)(l,...(0,u.A11Y_PRESENTATION)()),(0,n.setAttribute)(a,...(0,u.A11Y_PRESENTATION)())),this.updateCellHeader(a,e,o,s),l.appendChild(a),t.appendChild(l)}this.hot.runHooks("afterGetColHeader",e,t,s)}updateCellHeader(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=t;const i=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,n.hasClass)(e,"colHeader")?r=i.wtTable.columnFilter.sourceToRendered(t):(0,n.hasClass)(e,"rowHeader")&&(r=i.wtTable.rowFilter.sourceToRendered(t))),r>-1?(0,n.fastInnerHTML)(e,o(t,s)):((0,n.fastInnerText)(e,String.fromCharCode(160)),(0,n.addClass)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){p(S,this,e),p(R,this,t)}getLastSize(){return{width:f(S,this),height:f(R,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return f(w,this)}getRowHeadersCount(){return f(C,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getRowHeaderWidth(){return this._wt.wtViewport.getRowHeaderWidth()}getColumnHeaderHeight(){return this._wt.wtViewport.getColumnHeaderHeight()}isVerticallyScrollableByWindow(){return this._wt.wtViewport.isVerticallyScrollableByWindow()}isHorizontallyScrollableByWindow(){return this._wt.wtViewport.isHorizontallyScrollableByWindow()}destroy(){this._wt.destroy(),this.eventManager.destroy()}}},88340:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(69655);var s=o(33855),r=o(55744);function n(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}function i(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 WeakMap,d=new WeakMap,g=new WeakMap;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,h,new Set),n(this,c,[]),n(this,u,[]),n(this,d,!1),n(this,g,!1),l(g,this,null!=e&&e)}createObserver(){const e=new s.ChangesObserver;return i(h,this).add(e),e.addLocalHook("unsubscribe",(()=>{i(h,this).delete(e)})),e._writeInitialChanges((0,r.arrayDiff)(i(c,this),i(u,this))),e}emit(e){let t=i(u,this);i(d,this)&&i(c,this).length===e.length||(0===e.length?e=new Array(t.length).fill(i(g,this)):l(c,this,new Array(e.length).fill(i(g,this))),i(d,this)||(l(d,this,!0),t=i(c,this)));const o=(0,r.arrayDiff)(t,e);i(h,this).forEach((e=>e._write(o))),l(u,this,e)}}},33855:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834);var r=o(95016),n=s(o(32943));function i(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}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 a=new WeakMap;class h{constructor(){i(this,a,[])}subscribe(e){var t,o;return this.addLocalHook("change",e),this._write((o=this,(t=a).get(l(t,o)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,o,s;o=this,s=e,(t=a).set(l(t,o),s)}}t.ChangesObserver=h,(0,r.mixin)(h,n.default)},55744:(e,t,o)=>{"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){const o=[];let s=0,r=0;for(;s<e.length&&r<t.length;s++,r++)e[s]!==t[r]&&o.push({op:"replace",index:r,oldValue:e[s],newValue:t[r]});for(;s<t.length;s++)o.push({op:"insert",index:s,oldValue:void 0,newValue:t[s]});for(;r<e.length;r++)o.push({op:"remove",index:r,oldValue:e[r],newValue:void 0});return o},o(15724)},57466:(e,t,o)=>{"use strict";o(14846),o(69655),t.__esModule=!0;var s={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0},r=o(42531);t.IndexMapper=r.IndexMapper;var n=o(11926);t.getRegisteredMapsCounter=n.getRegisteredMapsCounter;var i=o(82794);t.getIncreasedIndexes=i.getIncreasedIndexes,t.getDecreasedIndexes=i.getDecreasedIndexes,t.alterUtilsFactory=i.alterUtilsFactory;var l=o(6600);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))}))},42531:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));o(67834),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620),o(14846),o(27458),o(94364),o(75568);var n=o(47154),i=o(6600),l=o(82600),a=s(o(32943)),h=o(95016),c=o(95768),u=o(88340);new Set;class d{constructor(){(0,r.default)(this,"indexesSequence",new i.IndexesSequence),(0,r.default)(this,"trimmingMapsCollection",new l.AggregatedCollection((e=>e.some((e=>!0===e))),!1)),(0,r.default)(this,"hidingMapsCollection",new l.AggregatedCollection((e=>e.some((e=>!0===e))),!1)),(0,r.default)(this,"variousMapsCollection",new l.MapCollection),(0,r.default)(this,"hidingChangesObservable",new u.ChangesObservable({initialIndexValue:!1})),(0,r.default)(this,"notTrimmedIndexesCache",[]),(0,r.default)(this,"notHiddenIndexesCache",[]),(0,r.default)(this,"isBatched",!1),(0,r.default)(this,"indexesSequenceChanged",!1),(0,r.default)(this,"indexesChangeSource",void 0),(0,r.default)(this,"trimmedIndexesChanged",!1),(0,r.default)(this,"hiddenIndexesChanged",!1),(0,r.default)(this,"renderablePhysicalIndexesCache",[]),(0,r.default)(this,"fromPhysicalToVisualIndexesCache",new Map),(0,r.default)(this,"fromVisualToRenderableIndexesCache",new Map),this.indexesSequence.addLocalHook("change",(()=>{this.indexesSequenceChanged=!0,this.updateCache(),this.runLocalHooks("indexesSequenceChange",this.indexesChangeSource),this.runLocalHooks("change",this.indexesSequence,null)})),this.trimmingMapsCollection.addLocalHook("change",(e=>{this.trimmedIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.trimmingMapsCollection)})),this.hidingMapsCollection.addLocalHook("change",(e=>{this.hiddenIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.hidingMapsCollection)})),this.variousMapsCollection.addLocalHook("change",(e=>{this.runLocalHooks("change",e,this.variousMapsCollection)}))}suspendOperations(){this.isBatched=!0}resumeOperations(){this.isBatched=!1,this.updateCache()}createChangesObserver(e){if("hiding"!==e)throw new Error(`Unsupported index map type "${e}".`);return this.hidingChangesObservable.createObserver()}createAndRegisterIndexMap(e,t,o){return this.registerMap(e,(0,i.createIndexMap)(t,o))}registerMap(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error(`Map with name "${e}" has been already registered.`);t instanceof i.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof i.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);const o=this.getNumberOfIndexes();return o>0&&t.init(o),t}unregisterMap(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}unregisterAll(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}getPhysicalFromVisualIndex(e){const t=this.notTrimmedIndexesCache[e];return(0,c.isDefined)(t)?t:null}getPhysicalFromRenderableIndex(e){const t=this.renderablePhysicalIndexesCache[e];return(0,c.isDefined)(t)?t:null}getVisualFromPhysicalIndex(e){const t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getVisualFromRenderableIndex(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}getRenderableFromVisualIndex(e){const t=this.fromVisualToRenderableIndexesCache.get(e);return(0,c.isDefined)(t)?t:null}getNearestNotHiddenIndex(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(e))return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;const s=Array.from(this.fromVisualToRenderableIndexesCache.keys());let r=-1;return r=t>0?s.findIndex((t=>t>e)):s.reverse().findIndex((t=>t<e)),-1===r?o?this.getNearestNotHiddenIndex(e,-t,!1):null:s[r]}initToLength(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=[...new Array(e).keys()],this.notHiddenIndexesCache=[...new Array(e).keys()],this.suspendOperations(),this.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}fitToLength(e){const t=this.getNumberOfIndexes();if(e<t){const t=[...Array(this.getNumberOfIndexes()-e).keys()].map((t=>t+e));this.removeIndexes(t)}else this.insertIndexes(t,e-t)}getIndexesSequence(){return this.indexesSequence.getValues()}setIndexesSequence(e){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}getNotTrimmedIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notTrimmedIndexesCache;return this.getIndexesSequence().filter((e=>!1===this.isTrimmed(e)))}getNotTrimmedIndexesLength(){return this.getNotTrimmedIndexes().length}getNotHiddenIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.notHiddenIndexesCache;return this.getIndexesSequence().filter((e=>!1===this.isHidden(e)))}getNotHiddenIndexesLength(){return this.getNotHiddenIndexes().length}getRenderableIndexes(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.renderablePhysicalIndexesCache;return this.getNotTrimmedIndexes().filter((e=>!1===this.isHidden(e)))}getRenderableIndexesLength(){return this.getRenderableIndexes().length}getNumberOfIndexes(){return this.getIndexesSequence().length}moveIndexes(e,t){"number"==typeof e&&(e=[e]);const o=(0,n.arrayMap)(e,(e=>this.getPhysicalFromVisualIndex(e))),s=this.getNotTrimmedIndexesLength(),r=e.length,l=(0,i.getListWithRemovedItems)(this.getIndexesSequence(),o),a=l.filter((e=>!1===this.isTrimmed(e)));let h=l.indexOf(a[a.length-1])+1;if(t+r<s){const e=a[t];h=l.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,i.getListWithInsertedItems)(l,h,o)),this.indexesChangeSource=void 0}isTrimmed(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}isHidden(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}insertIndexes(e,t){const o=this.getNotTrimmedIndexes()[e],s=(0,c.isDefined)(o)?o:this.getNumberOfIndexes(),r=this.getIndexesSequence().includes(o)?this.getIndexesSequence().indexOf(o):this.getNumberOfIndexes(),i=(0,n.arrayMap)(new Array(t).fill(s),((e,t)=>e+t));this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(r,i),this.indexesChangeSource=void 0,this.trimmingMapsCollection.insertToEvery(r,i),this.hidingMapsCollection.insertToEvery(r,i),this.variousMapsCollection.insertToEvery(r,i),this.resumeOperations()}removeIndexes(e){this.suspendOperations(),this.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}updateCache(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}cacheFromPhysicalToVisualIndexes(){const e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(e,t)}}cacheFromVisualToRenderableIndexes(){const e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromRenderableIndex(t),o=this.getVisualFromPhysicalIndex(e);this.fromVisualToRenderableIndexesCache.set(o,t)}}}t.IndexMapper=d,(0,h.mixin)(d,a.default)},67983:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(11926),i=o(47154),l=o(95768);class a extends n.MapCollection{constructor(e,t){super(),(0,r.default)(this,"mergedValuesCache",[]),(0,r.default)(this,"aggregationFunction",void 0),(0,r.default)(this,"fallbackValue",void 0),this.aggregationFunction=e,this.fallbackValue=t}getMergedValues(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.mergedValuesCache;if(0===this.getLength())return[];const e=(0,i.arrayMap)(this.get(),(e=>e.getValues())),t=[],o=(0,l.isDefined)(e[0])&&e[0].length||0;for(let s=0;s<o;s+=1){const o=[];for(let t=0;t<this.getLength();t+=1)o.push(e[t][s]);t.push(o)}return(0,i.arrayMap)(t,this.aggregationFunction)}getMergedValueAtIndex(e,t){const o=this.getMergedValues(t)[e];return(0,l.isDefined)(o)?o:this.fallbackValue}updateCache(){this.mergedValuesCache=this.getMergedValues(!1)}}t.AggregatedCollection=a},82600:(e,t,o)=>{"use strict";o(14846),o(69655),t.__esModule=!0;var s=o(67983);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var r=o(11926);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},11926:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.getRegisteredMapsCounter=function(){return a},o(14846),o(69655);var r=s(o(85707)),n=o(95768),i=o(95016),l=s(o(32943));let a=0;class h{constructor(){(0,r.default)(this,"collection",new Map)}register(e,t){!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",(()=>this.runLocalHooks("change",t))),a+=1)}unregister(e){const t=this.collection.get(e);(0,n.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),a-=1)}unregisterAll(){this.collection.forEach(((e,t)=>this.unregister(t))),this.collection.clear()}get(e){return(0,n.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}getLength(){return this.collection.size}removeFromEvery(e){this.collection.forEach((t=>{t.remove(e)}))}insertToEvery(e,t){this.collection.forEach((o=>{o.insert(e,t)}))}initEvery(e){this.collection.forEach((t=>{t.init(e)}))}}t.MapCollection=h,(0,i.mixin)(h,l.default)},33903:(e,t,o)=>{"use strict";t.__esModule=!0,o(15724);var s=o(38067),r=o(47154);class n extends s.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getHiddenIndexes(){return(0,r.arrayReduce)(this.getValues(),((e,t,o)=>(t&&e.push(o),e)),[])}}t.HidingMap=n},6600:(e,t,o)=>{"use strict";o(14846),o(69655),t.__esModule=!0;var s={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!u.has(e))throw new Error(`The provided map type ("${e}") does not exist.`);return new(u.get(e))(t)},o(67834);var r=o(33903);t.HidingMap=r.HidingMap;var n=o(79624);t.IndexMap=n.IndexMap;var i=o(41900);t.LinkedPhysicalIndexToValueMap=i.LinkedPhysicalIndexToValueMap;var l=o(38067);t.PhysicalIndexToValueMap=l.PhysicalIndexToValueMap;var a=o(65205);t.TrimmingMap=a.TrimmingMap;var h=o(25173);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===h[e]||(t[e]=h[e]))}));var c=o(69599);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}));const u=new Map([["hiding",r.HidingMap],["index",n.IndexMap],["linkedPhysicalIndexToValue",i.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",l.PhysicalIndexToValueMap],["trimming",a.TrimmingMap]])},79624:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(15724);var r=s(o(85707)),n=o(36926),i=o(95016),l=o(77515),a=s(o(32943));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,r.default)(this,"indexedValues",[]),(0,r.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,l.isFunction)(this.initValueOrFn)?(0,n.rangeEach)(e-1,(e=>this.indexedValues.push(this.initValueOrFn(e)))):(0,n.rangeEach)(e-1,(()=>this.indexedValues.push(this.initValueOrFn))),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,i.mixin)(h,a.default)},25173:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(79624),r=o(69599),n=o(82794);class i extends s.IndexMap{constructor(){super((e=>e))}insert(e,t){const o=(0,n.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,r.getListWithInsertedItems)(o,e,t),super.insert(e,t)}remove(e){const t=(0,r.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,n.getDecreasedIndexes)(t,e),super.remove(e)}}t.IndexesSequence=i},41900:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(94364);var r=s(o(85707)),n=o(79624),i=o(42405),l=o(69599),a=o(28322),h=o(77515);class c extends n.IndexMap{constructor(){super(...arguments),(0,r.default)(this,"orderOfIndexes",[])}getValues(){return this.orderOfIndexes.map((e=>this.indexedValues[e]))}setValues(e){this.orderOfIndexes=[...Array(e.length).keys()],super.setValues(e)}setValueAtIndex(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(o,0,e),this.runLocalHooks("change"),!0)}clearValue(e){this.orderOfIndexes=(0,l.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,h.isFunction)(this.initValueOrFn)?super.setValueAtIndex(e,this.initValueOrFn(e)):super.setValueAtIndex(e,this.initValueOrFn)}getLength(){return this.orderOfIndexes.length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,super.setDefaultValues(e)}insert(e,t){this.indexedValues=(0,i.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,a.getIncreasedIndexes)(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=(0,i.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,l.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,a.getDecreasedIndexes)(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map((e=>[e,this.getValueAtIndex(e)]))}}t.LinkedPhysicalIndexToValueMap=c},38067:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(79624),r=o(42405);class n extends s.IndexMap{insert(e,t){this.indexedValues=(0,r.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=(0,r.getListWithRemovedItems)(this.indexedValues,e),super.remove(e)}}t.PhysicalIndexToValueMap=n},65205:(e,t,o)=>{"use strict";t.__esModule=!0,o(15724);var s=o(38067),r=o(47154);class n extends s.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,r.arrayReduce)(this.getValues(),((e,t,o)=>(t&&e.push(o),e)),[])}}t.TrimmingMap=n},28322:(e,t,o)=>{"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,s.arrayMap)(e,(e=>e-t.filter((t=>t<e)).length))},t.getIncreasedIndexes=function(e,t){const o=t[0],r=t.length;return(0,s.arrayMap)(e,(e=>e>=o?e+r:e))},o(14846),o(27458);var s=o(47154)},82794:(e,t,o)=>{"use strict";t.__esModule=!0,o(67834);var s=o(28322);t.getDecreasedIndexes=s.getDecreasedIndexes,t.getIncreasedIndexes=s.getIncreasedIndexes;var r=o(69599),n=o(42405);const i=new Map([["indexesSequence",{getListWithInsertedItems:r.getListWithInsertedItems,getListWithRemovedItems:r.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:n.getListWithInsertedItems,getListWithRemovedItems:n.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===i.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return i.get(e)}},69599:(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,s.arrayFilter)(e,(e=>!1===t.includes(e)))};var s=o(47154)},42405:(e,t,o)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,o,r){const n=o.length?o[0]:void 0;return[...e.slice(0,n),...o.map(((e,t)=>(0,s.isFunction)(r)?r(e,t):r)),...void 0===n?[]:e.slice(n)]},t.getListWithRemovedItems=function(e,t){return(0,r.arrayFilter)(e,((e,o)=>!1===t.includes(o)))},o(94364);var s=o(77515),r=o(47154)},64144:(e,t)=>{"use strict";function o(e,t,o){e.addEventListener(t,o,!1)}function s(e,t,o){e.removeEventListener(t,o,!1)}function r(e){return e.ownerDocument.defaultView.getComputedStyle(e)}t.__esModule=!0,t.createInputElementResizer=function(e){const t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}},n=e.body,i=e.createTextNode(""),l=e.createElement("span");let a;function h(){var e,o;i.textContent=t.textContent(a),l.style.position="absolute",l.style.fontSize=r(a).fontSize,l.style.fontFamily=r(a).fontFamily,l.style.whiteSpace="pre",n.appendChild(l);const s=parseInt((null===(e=r(a))||void 0===e?void 0:e.paddingInlineStart)||0,10),h=parseInt((null===(o=r(a))||void 0===o?void 0:o.paddingInlineEnd)||0,10),c=l.clientWidth+s+h+1;n.removeChild(l);const u=a.style;u.height=`${t.minHeight}px`,t.minWidth>c?u.width=`${t.minWidth}px`:c>t.maxWidth?u.width=`${t.maxWidth}px`:u.width=`${c}px`;const d=a.scrollHeight?a.scrollHeight-1:0;t.minHeight>d?u.height=`${t.minHeight}px`:t.maxHeight<d?(u.height=`${t.maxHeight}px`,u.overflowY="visible"):u.height=`${d}px`}function c(){e.defaultView.setTimeout(h,0)}return{init:function(e,s){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];a=e,function(e){if(e&&e.minHeight)if("inherit"===e.minHeight)t.minHeight=a.clientHeight;else{const o=parseInt(e.minHeight,10);isNaN(o)||(t.minHeight=o)}if(e&&e.maxHeight)if("inherit"===e.maxHeight)t.maxHeight=a.clientHeight;else{const o=parseInt(e.maxHeight,10);isNaN(o)||(t.maxHeight=o)}if(e&&e.minWidth)if("inherit"===e.minWidth)t.minWidth=a.clientWidth;else{const o=parseInt(e.minWidth,10);isNaN(o)||(t.minWidth=o)}if(e&&e.maxWidth)if("inherit"===e.maxWidth)t.maxWidth=a.clientWidth;else{const o=parseInt(e.maxWidth,10);isNaN(o)||(t.maxWidth=o)}l.firstChild||(l.className="autoResize",l.style.display="inline-block",l.appendChild(i))}(s),"TEXTAREA"===a.nodeName&&(a.style.resize="none",a.style.height=`${t.minHeight}px`,a.style.minWidth=`${t.minWidth}px`,a.style.maxWidth=`${t.maxWidth}px`,a.style.overflowY="hidden"),r&&(o(a,"input",h),o(a,"keydown",c)),h()},resize:h,unObserve(){s(a,"input",h),s(a,"keydown",c)}}}},39389:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0;var r=s(o(85707));class n{constructor(e){(0,r.default)(this,"data",void 0),(0,r.default)(this,"next",null),(0,r.default)(this,"prev",null),this.data=e}}t.NodeStructure=n;t.default=class{constructor(){(0,r.default)(this,"first",null),(0,r.default)(this,"last",null)}push(e){const t=new n(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.last;this.last=t,t.prev=e,e.next=t}return t}unshift(e){const t=new n(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const o=e(t);if(t===this.last||!0===o)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,o,s=this.first;for(;s;){if(s.data===e)return t=s.next,o=s.prev,t&&(t.prev=o),o&&(o.next=t),s===this.first&&(this.first=t),s===this.last&&(this.last=o),!0;s=s.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,o){o&&(e(o,o.next),o.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,o=this.first;for(;t;)e=t.next,t.next=o,o.prev=t,o=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=o,this.last=e}}},75080:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPriorityMap=function(){let{errorPriorityExists:e,errorPriorityNaN:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=new Map;return e=(0,r.isFunction)(e)?e:a,t=(0,r.isFunction)(t)?t:h,{addItem:function(r,n){if(!(0,s.isNumeric)(r))throw new Error(t(r));if(o.has(r))throw new Error(e(r));o.set(r,n)},getItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;const[t,s]=l.get(e)||l.get(n);return[...o].sort(((e,o)=>e[0]<o[0]?t:s)).map((e=>e[1]))}}},o(67834),o(94364);var s=o(36926),r=o(77515);const n=t.ASC="asc",i=t.DESC="desc",l=new Map([[n,[-1,1]],[i,[1,-1]]]),a=e=>`The priority '${e}' is already declared in a map.`,h=e=>`The priority '${e}' is not a number.`},6524:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.depthFirstPreOrder=i;var r=s(o(85707));o(67834),o(15724);const n=t.TRAVERSAL_DF_PRE="DF-pre-order";function i(e,t){let o=e.call(t,this);for(let s=0;s<this.childs.length;s++){if(!1===o)return!1;o=i.call(this.childs[s],e,t)}return o}const l=t.TRAVERSAL_DF_POST="DF-post-order";const a=t.TRAVERSAL_BF="BF";const h=a,c=new Map([[n,i],[l,function e(t,o){for(let s=0;s<this.childs.length;s++){if(!1===e.call(this.childs[s],t,o))return!1}return t.call(o,this)}],[a,function(e,t){const o=[this];!function s(){if(0===o.length)return;const r=o.shift();o.push(...r.childs),!1!==e.call(t,r)&&s()}()}]]);class u{constructor(e){(0,r.default)(this,"data",{}),(0,r.default)(this,"parent",null),(0,r.default)(this,"childs",[]),this.data=e}addChild(e){e.parent=this,this.childs.push(e)}cloneTree(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;const t=new u({...e.data});for(let o=0;o<e.childs.length;o++)t.addChild(this.cloneTree(e.childs[o]));return t}replaceTreeWith(e){this.data={...e.data},this.childs=[];for(let t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}walkDown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(!c.has(t))throw new Error(`Traversal strategy "${t}" does not exist`);c.get(t).call(this,e,this)}walkUp(e){const t=this,o=s=>{!1!==e.call(t,s)&&null!==s.parent&&o(s.parent)};o(this)}}t.default=u},78697:(e,t,o)=>{"use strict";t.__esModule=!0,t.createUniqueMap=function(){let{errorIdExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map;function o(){return[...t]}function n(e){return t.has(e)}return e=(0,s.isFunction)(e)?e:r,{addItem:function(o,s){if(n(o))throw new Error(e(o));t.set(o,s)},clear:function(){t.clear()},getId:function(e){const[t]=o().find((t=>{let[o,s]=t;return e===s&&o}))||[null];return t},getItem:function(e){return t.get(e)},getItems:o,hasItem:n,removeItem:function(e){return t.delete(e)}}},o(67834),o(14846),o(6211);var s=o(77515);const r=e=>`The id '${e}' is already declared in a map.`},11311:(e,t,o)=>{"use strict";t.__esModule=!0,t.createUniqueSet=function(){let{errorItemExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Set;return e=(0,s.isFunction)(e)?e:r,{addItem:function(o){if(t.has(o))throw new Error(e(o));t.add(o)},clear:function(){t.clear()},getItems:function(){return[...t]}}},o(67834),o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var s=o(77515);const r=e=>`'${e}' value is already declared in a unique set.`},81838:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724),o(14846),o(69655);var r=s(o(85707)),n=o(94916),i=o(47154);t.default=class{constructor(e){(0,r.default)(this,"hot",null),(0,r.default)(this,"container",null),(0,r.default)(this,"injected",!1),(0,r.default)(this,"rows",[]),(0,r.default)(this,"columns",[]),(0,r.default)(this,"samples",null),(0,r.default)(this,"settings",{useHeaders:!0}),this.hot=e}addRow(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));const o={row:e};this.rows.push(o),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol(e)),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),o.table=this.table.table}addColumnHeadersRow(e){const t=this.hot.getColHeader(0);if(null!=t){const t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}}addColumn(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));const o={col:e};this.columns.push(o),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th,void 0,-1),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),o.table=this.table.table}getHeights(e){this.injected||this.injectTable(),(0,i.arrayEach)(this.rows,(t=>{const{height:o}=t.table.getBoundingClientRect();e(t.row,Math.ceil(o))}))}getWidths(e){this.injected||this.injectTable(),(0,i.arrayEach)(this.columns,(t=>{const{width:o}=t.table.getBoundingClientRect();e(t.col,Math.ceil(o))}))}setSettings(e){this.settings=e}setSetting(e,t){this.settings||(this.settings={}),this.settings[e]=t}getSettings(){return this.settings}getSetting(e){return this.settings?this.settings[e]:null}createColGroupsCol(e){const t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1,-1)),this.samples.forEach((o=>{(0,i.arrayEach)(o.strings,(o=>{t.appendChild(this.createColElement(o.col,e))}))})),t}createRow(e){const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,s),o.appendChild(s)),this.samples.forEach((s=>{(0,i.arrayEach)(s.strings,(s=>{const r=s.col,n=this.hot.getCellMeta(e,r),i=this.hot.getCellRenderer(n),l=t.createElement("td");l.setAttribute("ghost-table",1),i(this.hot,l,e,r,this.hot.colToProp(r),s.value,n),o.appendChild(l)}))})),o}appendColumnHeadersRow(){const{rootDocument:e}=this.hot,t=e.createDocumentFragment(),o=[];if(this.hot.hasRowHeaders()){const s=e.createElement("th");o.push([-1,s]),t.appendChild(s)}this.samples.forEach((s=>{(0,i.arrayEach)(s.strings,(s=>{const r=s.col,n=e.createElement("th");o.push([r,n]),t.appendChild(n)}))})),this.table.tHead.appendChild(t),(0,i.arrayEach)(o,(e=>{const[t,o]=e;this.hot.view.appendColHeader(t,o)}))}createCol(e){const{rootDocument:t}=this.hot,o=t.createDocumentFragment();return this.samples.forEach((s=>{(0,i.arrayEach)(s.strings,(s=>{const r=s.row,n=this.hot.getCellMeta(r,e),i=this.hot.getCellRenderer(n),l=t.createElement("td"),a=t.createElement("tr");l.setAttribute("ghost-table",1),i(this.hot,l,r,e,this.hot.colToProp(e),s.value,n),a.appendChild(l),o.appendChild(a)}))})),o}clean(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}injectTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}removeTable(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}createColElement(e,t){const o=this.hot.rootDocument.createElement("col");let s=0;t>=0&&e>=0&&(s=this.hot.getCellMeta(t,e).colspan);let r=this.hot.getColWidth(e);if(s>1)for(let t=e+1;t<e+s;t++)r+=this.hot.getColWidth(t);return o.style.width=`${r}px`,o}createTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("table"),r=t.createElement("thead"),i=t.createElement("tbody"),l=t.createElement("colgroup"),a=t.createElement("tr"),h=t.createElement("th");return this.isVertical()&&s.appendChild(l),this.isHorizontal()&&(a.appendChild(h),r.appendChild(a),s.style.tableLayout="auto",s.style.width="auto"),s.appendChild(r),this.isVertical()&&i.appendChild(a),s.appendChild(i),(0,n.addClass)(s,e),o.appendChild(s),{fragment:o,table:s,tHead:r,tBody:i,colGroup:l,tr:a,th:h}}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,o=t.createDocumentFragment(),s=t.createElement("div"),r=`htGhostTable htAutoSize ${e.trim()}`;return(0,n.addClass)(s,r),o.appendChild(s),{fragment:o,container:s}}isVertical(){return!(!this.rows.length||this.columns.length)}isHorizontal(){return!(!this.columns.length||this.rows.length)}}},77316:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:o=()=>0,onItemSelect:r=()=>{},onClear:n=()=>{}}=e;const i=new Set;let l=(0,s.clamp)(t,-1,h()-1);function a(e,t){const o=h()-1;if(e<0&&(e=o),e>o&&(e=0),i.has(e))return-1;i.add(e);return!1===r(e,!1)&&(e=a(1===t?++e:--e,t)),e}function h(){return Math.max(o(),0)}return{setCurrentPage:function(e){e>-1&&e<h()&&!1!==r(e,!0)&&(l=e)},getCurrentPage:function(){return l},toFirstItem:function(){h()>0&&(i.clear(),l=a(0,1))},toLastItem:function(){h()>0&&(i.clear(),l=a(h()-1,-1))},toNextItem:function(){h()>0&&(i.clear(),l=a(++l,1))},toPreviousItem:function(){h()>0&&(i.clear(),l=a(--l,-1))},getSize:h,clear:function(){i.clear(),l=t,n()}}},o(71336),o(41558),o(17663),o(68630),o(79645),o(89858),o(8620);var s=o(36926)},19310:(e,t,o)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,o=["<table>"];for(let r=0;r<t;r+=1){const n=e[r],i=n.length,l=[];0===r&&o.push("<tbody>");for(let e=0;e<i;e+=1){const t=n[e],o=(0,s.isEmpty)(t)?"":t.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,(e=>`<span style="mso-spacerun: yes">${" ".repeat(e.length-1)} </span>`)).replace(/\t/gi,"	");l.push(`<td>${o}</td>`)}o.push("<tr>",...l,"</tr>"),r+1===t&&o.push("</tbody>")}return o.push("</table>"),o.join("")},t.htmlToGridSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const o={},s=t.createDocumentFragment(),i=t.createElement("div");s.appendChild(i);let l=e;if("string"==typeof l){const e=l.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,(e=>{const t=e.match(/<td\b[^>]*?>/g)[0];return`${t}${e.substring(t.length,e.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(/<p.*?>/g,"\n").replace("\n","").replaceAll(/<\/(.*)>\s+$/gm,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^ $/gm,"")}</td>`}));i.insertAdjacentHTML("afterbegin",`${e}`),l=i.querySelector("table")}if(!l||!function(e){return"TABLE"===(e&&e.nodeName||"")}(l))return;const a=i.querySelector('meta[name$="enerator"]'),h=null!==l.querySelector("tbody th"),c=l.querySelector("tr"),u=c?Array.from(c.cells).reduce(((e,t)=>e+t.colSpan),0)-(h?1:0):0,d=l.tFoot&&Array.from(l.tFoot.rows)||[],g=[];let f=!1,p=0,m=0;if(l.tHead){const e=Array.from(l.tHead.rows).filter((e=>{const t=null!==e.querySelector("td");return t&&g.push(e),!t}));p=e.length,f=p>0,p>1?o.nestedHeaders=Array.from(e).reduce(((e,t)=>{const o=Array.from(t.cells).reduce(((e,t,o)=>{if(h&&0===o)return e;const{colSpan:s,innerHTML:r}=t,n=s>1?{label:r,colspan:s}:r;return e.push(n),e}),[]);return e.push(o),e}),[]):f&&(o.colHeaders=Array.from(e[0].children).reduce(((e,t,o)=>(h&&0===o||e.push(t.innerHTML),e)),[]))}g.length&&(o.fixedRowsTop=g.length);d.length&&(o.fixedRowsBottom=d.length);const w=[...g,...Array.from(l.tBodies).reduce(((e,t)=>(e.push(...Array.from(t.rows)),e)),[]),...d];m=w.length;const C=new Array(m);for(let e=0;e<m;e++)C[e]=new Array(u);const v=[],y=[];for(let e=0;e<m;e++){const t=w[e],o=Array.from(t.cells),s=o.length;for(let t=0;t<s;t++){const s=o[t],{nodeName:i,innerHTML:l,rowSpan:h,colSpan:c}=s,u=C[e].findIndex((e=>void 0===e));if("TD"===i){if(h>1||c>1){for(let t=e;t<e+h;t++)if(t<m)for(let e=u;e<u+c;e++)C[t][e]=null;const t=s.getAttribute("style");t&&t.includes("mso-ignore:colspan")||v.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=a&&/excel/gi.test(a.content)?l.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):l.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),C[e][u]=t.replace(n,(e=>r[e]))}else y.push(l)}}v.length&&(o.mergeCells=v);y.length&&(o.rowHeaders=y);C.length&&(o.data=C);return o},t.instanceToHTML=function(e){const t=e.hasColHeaders(),o=e.hasRowHeaders(),r=[t?-1:0,o?-1:0,e.countRows()-1,e.countCols()-1],n=e.getData(...r),i=n.length,l=i>0?n[0].length:0,a=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=o?1:0,d=t?1:0;for(let r=0;r<i;r+=1){const i=t&&0===r,a=[];for(let t=0;t<l;t+=1){const l=!i&&o&&0===t;let h="";if(i)h=`<th>${e.getColHeader(t-u)}</th>`;else if(l)h=`<th>${e.getRowHeader(r-d)}</th>`;else{const o=n[r][t],{hidden:i,rowspan:l,colspan:a}=e.getCellMeta(r-d,t-u);if(!i){const e=[];if(l&&e.push(`rowspan="${l}"`),a&&e.push(`colspan="${a}"`),(0,s.isEmpty)(o))h=`<td ${e.join(" ")}></td>`;else{const t=o.toString().replace("<","<").replace(">",">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");h=`<td ${e.join(" ")}>${t}</td>`}}}a.push(h)}const g=["<tr>",...a,"</tr>"].join("");i?h.splice(1,0,g):c.splice(-1,0,g)}return a.splice(1,0,h.join(""),c.join("")),a.join("")},o(15724),o(64552),o(14846),o(27458),o(94364),o(90458);var s=o(95768);const r={" ":" ","&":"&","<":"<",">":">"},n=new RegExp(Object.keys(r).map((e=>`(${e})`)).join("|"),"gi")},91980:(e,t)=>{"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===s},t.isRootInstance=function(e){return o.has(e)},t.registerAsRootInstance=function(e){o.set(e,!0)};const o=t.holder=new WeakMap,s=t.rootInstanceSymbol=Symbol("rootInstance")},70907:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,o(67834),o(15724);var r=s(o(85707)),n=o(95016),i=o(36926),l=o(95768);class a{static get SAMPLE_COUNT(){return 3}constructor(e){(0,r.default)(this,"samples",null),(0,r.default)(this,"dataFactory",null),(0,r.default)(this,"customSampleCount",null),(0,r.default)(this,"allowDuplicates",!1),this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:a.SAMPLE_COUNT}setSampleCount(e){this.customSampleCount=e}setAllowDuplicates(e){this.allowDuplicates=e}generateRowSamples(e,t){return this.generateSamples("row",t,e)}generateColumnSamples(e,t){return this.generateSamples("col",t,e)}generateSamples(e,t,o){const s=new Map,{from:r,to:n}="number"==typeof o?{from:o,to:o}:o;return(0,i.rangeEach)(r,n,(o=>{const r=this.generateSample(e,t,o);s.set(o,r)})),s}generateSample(e,t,o){if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");const s=new Map,r="row"===e?"col":"row",a=[];return(0,i.rangeEach)(t.from,t.to,(t=>{const i="row"===e?this.dataFactory(o,t):this.dataFactory(t,o);if(!1===i)return;const{value:h,bundleSeed:c}=i,u="string"==typeof c&&c.length>0;let d;d=u?c:(0,n.isObject)(h)?`${Object.keys(h).length}`:Array.isArray(h)?`${h.length}`:`${(0,l.stringify)(h).length}`,s.has(d)||s.set(d,{needed:this.getSampleCount(),strings:[]});const g=s.get(d);if(g.needed){(!(a.indexOf(h)>-1)||this.allowDuplicates||u)&&(g.strings.push({value:h,[r]:t}),a.push(h),g.needed-=1)}})),s}}t.default=a},29328:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";o.has(e)||o.set(e,new Map);const t=o.get(e);return{register:function(e,o){t.set(e,o)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[...t.keys()]},getValues:function(){return[...t.values()]}}};const o=t.collection=new Map},74742:(e,t)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=s;const o=t.VALIDATOR_TYPE="autocomplete";function s(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(o,r(o,t)):r(o,t)(this.source):t(!0)}function r(e,t){const o=e;return function(e){let s=!1;for(let t=0,r=e.length;t<r;t++)if(o===e[t]){s=!0;break}t(s)}}s.VALIDATOR_TYPE=o},77924:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(74742);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.autocompleteValidator=s.autocompleteValidator},23974:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.correctFormat=c,t.dateValidator=h;var r=s(o(86798)),n=o(45973),i=o(48584),l=o(96431);const a=t.VALIDATOR_TYPE="date";function h(e,t){const o=(0,n.getEditorInstance)(i.EDITOR_TYPE,this.instance);let s=e,l=!0;null==s&&(s="");let a=(0,r.default)(s,this.dateFormat||o.defaultDateFormat,!0).isValid(),h=(0,r.default)(new Date(s)).isValid()||a;if(this.allowEmpty&&""===s&&(h=!0,a=!0),h||(l=!1),!h&&a&&(l=!0),h&&!a)if(!0===this.correctFormat){const e=c(s,this.dateFormat);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"dateValidator"),l=!0}else l=!1;t(l)}function c(e,t){const o=(0,r.default)((0,l.getNormalizedDate)(e)),s=(0,r.default)(e,t),n=e.search(/[A-z]/g)>-1;let i;return i=o.isValid()&&o.format("x")===s.format("x")||!s.isValid()||n?o:s,i.format(t)}h.VALIDATOR_TYPE=a},21304:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(23974);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.correctFormat=s.correctFormat,t.dateValidator=s.dateValidator},8022:(e,t,o)=>{"use strict";t.__esModule=!0,t.dropdownValidator=n;var s=o(74742);const r=t.VALIDATOR_TYPE="dropdown";function n(e,t){s.autocompleteValidator.apply(this,[e,t])}n.VALIDATOR_TYPE=r},25479:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(8022);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.dropdownValidator=s.dropdownValidator},25021:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllValidators=function(){(0,a.registerValidator)(s.autocompleteValidator),(0,a.registerValidator)(n.dropdownValidator),(0,a.registerValidator)(r.dateValidator),(0,a.registerValidator)(i.numericValidator),(0,a.registerValidator)(l.timeValidator)};var s=o(77924);t.autocompleteValidator=s.autocompleteValidator,t.AUTOCOMPLETE_VALIDATOR=s.VALIDATOR_TYPE;var r=o(21304);t.dateValidator=r.dateValidator,t.DATE_VALIDATOR=r.VALIDATOR_TYPE;var n=o(25479);t.dropdownValidator=n.dropdownValidator,t.DROPDOWN_VALIDATOR=n.VALIDATOR_TYPE;var i=o(28029);t.numericValidator=i.numericValidator,t.NUMERIC_VALIDATOR=i.VALIDATOR_TYPE;var l=o(40711);t.timeValidator=l.timeValidator,t.TIME_VALIDATOR=l.VALIDATOR_TYPE;var a=o(57006);t.registerValidator=a.registerValidator,t.getRegisteredValidatorNames=a.getRegisteredValidatorNames,t.getRegisteredValidators=a.getRegisteredValidators,t.getValidator=a.getValidator,t.hasValidator=a.hasValidator},28029:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(83790);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.numericValidator=s.numericValidator},83790:(e,t,o)=>{"use strict";t.__esModule=!0,t.numericValidator=n;var s=o(36926);const r=t.VALIDATOR_TYPE="numeric";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):t(""!==o&&(0,s.isNumeric)(e))}n.VALIDATOR_TYPE=r},57006:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.getValidator=function(e){if("function"==typeof e)return e;if(!l(e))throw Error(`No registered validator found under "${e}" name`);return i(e)},t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);n(e,t)},o(67834);var r=s(o(29328));const{register:n,getItem:i,hasItem:l,getNames:a,getValues:h}=(0,r.default)("validators");t.getRegisteredValidators=h,t.getRegisteredValidatorNames=a,t.hasValidator=l},40711:(e,t,o)=>{"use strict";t.__esModule=!0;var s=o(67658);t.VALIDATOR_TYPE=s.VALIDATOR_TYPE,t.timeValidator=s.timeValidator},67658:(e,t,o)=>{"use strict";var s=o(96784);t.__esModule=!0,t.timeValidator=l;var r=s(o(86798));const n=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],i=t.VALIDATOR_TYPE="time";function l(e,t){const o=this.timeFormat||"h:mm:ss a";let s=!0,i=e;null===i&&(i=""),i=/^\d{3,}$/.test(i)?parseInt(i,10):i;const l=/^\d{1,2}$/.test(i);l&&(i+=":00");const a=(0,r.default)(i,n,!0).isValid()?(0,r.default)(i):(0,r.default)(i,o);let h=a.isValid(),c=(0,r.default)(i,o,!0).isValid()&&!l;if(this.allowEmpty&&""===i&&(h=!0,c=!0),h||(s=!1),!h&&c&&(s=!0),h&&!c)if(!0===this.correctFormat){const e=a.format(o);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),s=!0}else s=!1;t(s)}l.VALIDATOR_TYPE=i},76006:(e,t,o)=>{"use strict";o.r(t)},65166:t=>{"use strict";t.exports=e},75972:e=>{"use strict";e.exports=t},86798:e=>{"use strict";e.exports=o},20846:e=>{"use strict";e.exports=s},85707:(e,t,o)=>{var s=o(45498);e.exports=function(e,t,o){return(t=s(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports},96784:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},11327:(e,t,o)=>{var s=o(10564).default;e.exports=function(e,t){if("object"!=s(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},45498:(e,t,o)=>{var s=o(10564).default,r=o(11327);e.exports=function(e){var t=r(e,"string");return"symbol"==s(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},10564: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},68120:(e,t,o)=>{"use strict";var s=o(1483),r=o(18761),n=TypeError;e.exports=function(e){if(s(e))return e;throw new n(r(e)+" is not a function")}},63852:(e,t,o)=>{"use strict";var s=o(40735),r=String,n=TypeError;e.exports=function(e){if(s(e))return e;throw new n("Can't set "+r(e)+" as a prototype")}},14246:(e,t,o)=>{"use strict";var s=o(36880).has;e.exports=function(e){return s(e),e}},37095:(e,t,o)=>{"use strict";var s=o(70001),r=o(25290),n=o(25835).f,i=s("unscopables"),l=Array.prototype;void 0===l[i]&&n(l,i,{configurable:!0,value:r(null)}),e.exports=function(e){l[i][e]=!0}},96021:(e,t,o)=>{"use strict";var s=o(4815),r=TypeError;e.exports=function(e,t){if(s(t,e))return e;throw new r("Incorrect invocation")}},2293:(e,t,o)=>{"use strict";var s=o(71704),r=String,n=TypeError;e.exports=function(e){if(s(e))return e;throw new n(r(e)+" is not an object")}},78592:(e,t,o)=>{"use strict";var s=o(66960);e.exports=function(e,t,o){for(var r=0,n=arguments.length>2?o:s(t),i=new e(n);n>r;)i[r]=t[r++];return i}},86651:(e,t,o)=>{"use strict";var s=o(35599),r=o(33392),n=o(66960),i=function(e){return function(t,o,i){var l=s(t),a=n(l);if(0===a)return!e&&-1;var h,c=r(i,a);if(e&&o!=o){for(;a>c;)if((h=l[c++])!=h)return!0}else for(;a>c;c++)if((e||c in l)&&l[c]===o)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},39273:(e,t,o)=>{"use strict";var s=o(20382),r=o(14914),n=TypeError,i=Object.getOwnPropertyDescriptor,l=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,t){if(r(e)&&!i(e,"length").writable)throw new n("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},61698:(e,t,o)=>{"use strict";var s=o(14762);e.exports=s([].slice)},48901:(e,t,o)=>{"use strict";var s=o(2293),r=o(46721);e.exports=function(e,t,o,n){try{return n?t(s(o)[0],o[1]):t(o)}catch(t){r(e,"throw",t)}}},91278:(e,t,o)=>{"use strict";var s=o(14762),r=s({}.toString),n=s("".slice);e.exports=function(e){return n(r(e),8,-1)}},26145:(e,t,o)=>{"use strict";var s=o(34338),r=o(1483),n=o(91278),i=o(70001)("toStringTag"),l=Object,a="Arguments"===n(function(){return arguments}());e.exports=s?n:function(e){var t,o,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(t=l(e),i))?o:a?n(t):"Object"===(s=n(t))&&r(t.callee)?"Arguments":s}},16726:(e,t,o)=>{"use strict";var s=o(55755),r=o(89497),n=o(4961),i=o(25835);e.exports=function(e,t,o){for(var l=r(t),a=i.f,h=n.f,c=0;c<l.length;c++){var u=l[c];s(e,u)||o&&s(o,u)||a(e,u,h(t,u))}}},19441:(e,t,o)=>{"use strict";var s=o(28473);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},75247:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},69037:(e,t,o)=>{"use strict";var s=o(20382),r=o(25835),n=o(57738);e.exports=s?function(e,t,o){return r.f(e,t,n(1,o))}:function(e,t,o){return e[t]=o,e}},57738:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},30670:(e,t,o)=>{"use strict";var s=o(20382),r=o(25835),n=o(57738);e.exports=function(e,t,o){s?r.f(e,t,n(0,o)):e[t]=o}},83864:(e,t,o)=>{"use strict";var s=o(90169),r=o(25835);e.exports=function(e,t,o){return o.get&&s(o.get,t,{getter:!0}),o.set&&s(o.set,t,{setter:!0}),r.f(e,t,o)}},77914:(e,t,o)=>{"use strict";var s=o(1483),r=o(25835),n=o(90169),i=o(82095);e.exports=function(e,t,o,l){l||(l={});var a=l.enumerable,h=void 0!==l.name?l.name:t;if(s(o)&&n(o,h,l),l.global)a?e[t]=o:i(t,o);else{try{l.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=o:r.f(e,t,{value:o,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},82313:(e,t,o)=>{"use strict";var s=o(77914);e.exports=function(e,t,o){for(var r in t)s(e,r,t[r],o);return e}},82095:(e,t,o)=>{"use strict";var s=o(85578),r=Object.defineProperty;e.exports=function(e,t){try{r(s,e,{value:t,configurable:!0,writable:!0})}catch(o){s[e]=t}return t}},16060:(e,t,o)=>{"use strict";var s=o(18761),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw new r("Cannot delete property "+s(t)+" of "+s(e))}},20382:(e,t,o)=>{"use strict";var s=o(28473);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3145:(e,t,o)=>{"use strict";var s=o(85578),r=o(71704),n=s.document,i=r(n)&&r(n.createElement);e.exports=function(e){return i?n.createElement(e):{}}},31091:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},44741:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},91058:(e,t,o)=>{"use strict";var s=o(19461);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(s)},35207:(e,t,o)=>{"use strict";var s=o(63897);e.exports="NODE"===s},19461:(e,t,o)=>{"use strict";var s=o(85578).navigator,r=s&&s.userAgent;e.exports=r?String(r):""},66477:(e,t,o)=>{"use strict";var s,r,n=o(85578),i=o(19461),l=n.process,a=n.Deno,h=l&&l.versions||a&&a.version,c=h&&h.v8;c&&(r=(s=c.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!r&&i&&(!(s=i.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=i.match(/Chrome\/(\d+)/))&&(r=+s[1]),e.exports=r},63897:(e,t,o)=>{"use strict";var s=o(85578),r=o(19461),n=o(91278),i=function(e){return r.slice(0,e.length)===e};e.exports=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":s.Bun&&"string"==typeof Bun.version?"BUN":s.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(s.process)?"NODE":s.window&&s.document?"BROWSER":"REST"},58223:(e,t,o)=>{"use strict";var s=o(14762),r=Error,n=s("".replace),i=String(new r("zxcasd").stack),l=/\n\s*at [^:]*:[^\n]*/,a=l.test(i);e.exports=function(e,t){if(a&&"string"==typeof e&&!r.prepareStackTrace)for(;t--;)e=n(e,l,"");return e}},27473:(e,t,o)=>{"use strict";var s=o(69037),r=o(58223),n=o(58541),i=Error.captureStackTrace;e.exports=function(e,t,o,l){n&&(i?i(e,t):s(e,"stack",r(o,l)))}},58541:(e,t,o)=>{"use strict";var s=o(28473),r=o(57738);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},28612:(e,t,o)=>{"use strict";var s=o(85578),r=o(4961).f,n=o(69037),i=o(77914),l=o(82095),a=o(16726),h=o(98730);e.exports=function(e,t){var o,c,u,d,g,f=e.target,p=e.global,m=e.stat;if(o=p?s:m?s[f]||l(f,{}):s[f]&&s[f].prototype)for(c in t){if(d=t[c],u=e.dontCallGetSet?(g=r(o,c))&&g.value:o[c],!h(p?c:f+(m?".":"#")+c,e.forced)&&void 0!==u){if(typeof d==typeof u)continue;a(d,u)}(e.sham||u&&u.sham)&&n(d,"sham",!0),i(o,c,d,e)}}},28473:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},73067:(e,t,o)=>{"use strict";var s=o(274),r=Function.prototype,n=r.apply,i=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?i.bind(n):function(){return i.apply(n,arguments)})},32914:(e,t,o)=>{"use strict";var s=o(23786),r=o(68120),n=o(274),i=s(s.bind);e.exports=function(e,t){return r(e),void 0===t?e:n?i(e,t):function(){return e.apply(t,arguments)}}},274:(e,t,o)=>{"use strict";var s=o(28473);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},21807:(e,t,o)=>{"use strict";var s=o(274),r=Function.prototype.call;e.exports=s?r.bind(r):function(){return r.apply(r,arguments)}},42048:(e,t,o)=>{"use strict";var s=o(20382),r=o(55755),n=Function.prototype,i=s&&Object.getOwnPropertyDescriptor,l=r(n,"name"),a=l&&"something"===function(){}.name,h=l&&(!s||s&&i(n,"name").configurable);e.exports={EXISTS:l,PROPER:a,CONFIGURABLE:h}},680:(e,t,o)=>{"use strict";var s=o(14762),r=o(68120);e.exports=function(e,t,o){try{return s(r(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}}},23786:(e,t,o)=>{"use strict";var s=o(91278),r=o(14762);e.exports=function(e){if("Function"===s(e))return r(e)}},14762:(e,t,o)=>{"use strict";var s=o(274),r=Function.prototype,n=r.call,i=s&&r.bind.bind(n,n);e.exports=s?i:function(e){return function(){return n.apply(e,arguments)}}},16458:(e,t,o)=>{"use strict";var s=o(85578);e.exports=function(e,t){var o=s[e],r=o&&o.prototype;return r&&r[t]}},11409:(e,t,o)=>{"use strict";var s=o(85578),r=o(1483);e.exports=function(e,t){return arguments.length<2?(o=s[e],r(o)?o:void 0):s[e]&&s[e][t];var o}},40041:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},22992:(e,t,o)=>{"use strict";var s=o(21807),r=o(2293),n=o(40041),i=o(26665);e.exports=function(e,t){t&&"string"==typeof e||r(e);var o=i(e);return n(r(void 0!==o?s(o,e):e))}},26665:(e,t,o)=>{"use strict";var s=o(26145),r=o(92564),n=o(15983),i=o(86775),l=o(70001)("iterator");e.exports=function(e){if(!n(e))return r(e,l)||r(e,"@@iterator")||i[s(e)]}},14887:(e,t,o)=>{"use strict";var s=o(21807),r=o(68120),n=o(2293),i=o(18761),l=o(26665),a=TypeError;e.exports=function(e,t){var o=arguments.length<2?l(e):t;if(r(o))return n(s(o,e));throw new a(i(e)+" is not iterable")}},55215:(e,t,o)=>{"use strict";var s=o(14762),r=o(14914),n=o(1483),i=o(91278),l=o(26261),a=s([].push);e.exports=function(e){if(n(e))return e;if(r(e)){for(var t=e.length,o=[],s=0;s<t;s++){var h=e[s];"string"==typeof h?a(o,h):"number"!=typeof h&&"Number"!==i(h)&&"String"!==i(h)||a(o,l(h))}var c=o.length,u=!0;return function(e,t){if(u)return u=!1,t;if(r(this))return t;for(var s=0;s<c;s++)if(o[s]===e)return t}}}},92564:(e,t,o)=>{"use strict";var s=o(68120),r=o(15983);e.exports=function(e,t){var o=e[t];return r(o)?void 0:s(o)}},53131:(e,t,o)=>{"use strict";var s=o(68120),r=o(2293),n=o(21807),i=o(73005),l=o(40041),a="Invalid size",h=RangeError,c=TypeError,u=Math.max,d=function(e,t){this.set=e,this.size=u(t,0),this.has=s(e.has),this.keys=s(e.keys)};d.prototype={getIterator:function(){return l(r(n(this.keys,this.set)))},includes:function(e){return n(this.has,this.set,e)}},e.exports=function(e){r(e);var t=+e.size;if(t!=t)throw new c(a);var o=i(t);if(o<0)throw new h(a);return new d(e,o)}},20708:(e,t,o)=>{"use strict";var s=o(14762),r=o(22347),n=Math.floor,i=s("".charAt),l=s("".replace),a=s("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,o,s,u,d){var g=o+e.length,f=s.length,p=c;return void 0!==u&&(u=r(u),p=h),l(d,p,(function(r,l){var h;switch(i(l,0)){case"$":return"$";case"&":return e;case"`":return a(t,0,o);case"'":return a(t,g);case"<":h=u[a(l,1,-1)];break;default:var c=+l;if(0===c)return r;if(c>f){var d=n(c/10);return 0===d?r:d<=f?void 0===s[d-1]?i(l,1):s[d-1]+i(l,1):r}h=s[c-1]}return void 0===h?"":h}))}},85578:function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},55755:(e,t,o)=>{"use strict";var s=o(14762),r=o(22347),n=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return n(r(e),t)}},11507:e=>{"use strict";e.exports={}},42811:(e,t,o)=>{"use strict";var s=o(11409);e.exports=s("document","documentElement")},1799:(e,t,o)=>{"use strict";var s=o(20382),r=o(28473),n=o(3145);e.exports=!s&&!r((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))},32121:(e,t,o)=>{"use strict";var s=o(14762),r=o(28473),n=o(91278),i=Object,l=s("".split);e.exports=r((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?l(e,""):i(e)}:i},32429:(e,t,o)=>{"use strict";var s=o(1483),r=o(71704),n=o(51953);e.exports=function(e,t,o){var i,l;return n&&s(i=t.constructor)&&i!==o&&r(l=i.prototype)&&l!==o.prototype&&n(e,l),e}},17268:(e,t,o)=>{"use strict";var s=o(14762),r=o(1483),n=o(91831),i=s(Function.toString);r(n.inspectSource)||(n.inspectSource=function(e){return i(e)}),e.exports=n.inspectSource},16866:(e,t,o)=>{"use strict";var s=o(71704),r=o(69037);e.exports=function(e,t){s(t)&&"cause"in t&&r(e,"cause",t.cause)}},64483:(e,t,o)=>{"use strict";var s,r,n,i=o(74644),l=o(85578),a=o(71704),h=o(69037),c=o(55755),u=o(91831),d=o(65409),g=o(11507),f="Object already initialized",p=l.TypeError,m=l.WeakMap;if(i||u.state){var w=u.state||(u.state=new m);w.get=w.get,w.has=w.has,w.set=w.set,s=function(e,t){if(w.has(e))throw new p(f);return t.facade=e,w.set(e,t),t},r=function(e){return w.get(e)||{}},n=function(e){return w.has(e)}}else{var C=d("state");g[C]=!0,s=function(e,t){if(c(e,C))throw new p(f);return t.facade=e,h(e,C,t),t},r=function(e){return c(e,C)?e[C]:{}},n=function(e){return c(e,C)}}e.exports={set:s,get:r,has:n,enforce:function(e){return n(e)?r(e):s(e,{})},getterFor:function(e){return function(t){var o;if(!a(t)||(o=r(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return o}}}},95299:(e,t,o)=>{"use strict";var s=o(70001),r=o(86775),n=s("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[n]===e)}},14914:(e,t,o)=>{"use strict";var s=o(91278);e.exports=Array.isArray||function(e){return"Array"===s(e)}},1483: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}},98730:(e,t,o)=>{"use strict";var s=o(28473),r=o(1483),n=/#|\.prototype\./,i=function(e,t){var o=a[l(e)];return o===c||o!==h&&(r(t)?s(t):!!t)},l=i.normalize=function(e){return String(e).replace(n,".").toLowerCase()},a=i.data={},h=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},15983:e=>{"use strict";e.exports=function(e){return null==e}},71704:(e,t,o)=>{"use strict";var s=o(1483);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},40735:(e,t,o)=>{"use strict";var s=o(71704);e.exports=function(e){return s(e)||null===e}},19557:e=>{"use strict";e.exports=!1},84786:(e,t,o)=>{"use strict";var s=o(71704),r=o(91278),n=o(70001)("match");e.exports=function(e){var t;return s(e)&&(void 0!==(t=e[n])?!!t:"RegExp"===r(e))}},31423:(e,t,o)=>{"use strict";var s=o(11409),r=o(1483),n=o(4815),i=o(45022),l=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return r(t)&&n(t.prototype,l(e))}},76001:(e,t,o)=>{"use strict";var s=o(21807);e.exports=function(e,t,o){for(var r,n,i=o?e:e.iterator,l=e.next;!(r=s(l,i)).done;)if(void 0!==(n=t(r.value)))return n}},11506:(e,t,o)=>{"use strict";var s=o(32914),r=o(21807),n=o(2293),i=o(18761),l=o(95299),a=o(66960),h=o(4815),c=o(14887),u=o(26665),d=o(46721),g=TypeError,f=function(e,t){this.stopped=e,this.result=t},p=f.prototype;e.exports=function(e,t,o){var m,w,C,v,y,E,S,R=o&&o.that,b=!(!o||!o.AS_ENTRIES),_=!(!o||!o.IS_RECORD),T=!(!o||!o.IS_ITERATOR),M=!(!o||!o.INTERRUPTED),O=s(t,R),I=function(e){return m&&d(m,"normal",e),new f(!0,e)},N=function(e){return b?(n(e),M?O(e[0],e[1],I):O(e[0],e[1])):M?O(e,I):O(e)};if(_)m=e.iterator;else if(T)m=e;else{if(!(w=u(e)))throw new g(i(e)+" is not iterable");if(l(w)){for(C=0,v=a(e);v>C;C++)if((y=N(e[C]))&&h(p,y))return y;return new f(!1)}m=c(e,w)}for(E=_?e.next:m.next;!(S=r(E,m)).done;){try{y=N(S.value)}catch(e){d(m,"throw",e)}if("object"==typeof y&&y&&h(p,y))return y}return new f(!1)}},46721:(e,t,o)=>{"use strict";var s=o(21807),r=o(2293),n=o(92564);e.exports=function(e,t,o){var i,l;r(e);try{if(!(i=n(e,"return"))){if("throw"===t)throw o;return o}i=s(i,e)}catch(e){l=!0,i=e}if("throw"===t)throw o;if(l)throw i;return r(i),o}},58660:(e,t,o)=>{"use strict";var s=o(21807),r=o(25290),n=o(69037),i=o(82313),l=o(70001),a=o(64483),h=o(92564),c=o(21851).IteratorPrototype,u=o(75247),d=o(46721),g=l("toStringTag"),f="IteratorHelper",p="WrapForValidIterator",m=a.set,w=function(e){var t=a.getterFor(e?p:f);return i(r(c),{next:function(){var o=t(this);if(e)return o.nextHandler();if(o.done)return u(void 0,!0);try{var s=o.nextHandler();return o.returnHandlerResult?s:u(s,o.done)}catch(e){throw o.done=!0,e}},return:function(){var o=t(this),r=o.iterator;if(o.done=!0,e){var n=h(r,"return");return n?s(n,r):u(void 0,!0)}if(o.inner)try{d(o.inner.iterator,"normal")}catch(e){return d(r,"throw",e)}return r&&d(r,"normal"),u(void 0,!0)}})},C=w(!0),v=w(!1);n(v,g,"Iterator Helper"),e.exports=function(e,t,o){var s=function(s,r){r?(r.iterator=s.iterator,r.next=s.next):r=s,r.type=t?p:f,r.returnHandlerResult=!!o,r.nextHandler=e,r.counter=0,r.done=!1,m(this,r)};return s.prototype=t?C:v,s}},13963:(e,t,o)=>{"use strict";var s=o(21807),r=o(68120),n=o(2293),i=o(40041),l=o(58660),a=o(48901),h=l((function(){var e=this.iterator,t=n(s(this.next,e));if(!(this.done=!!t.done))return a(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return n(this),r(e),new h(i(this),{mapper:e})}},21851:(e,t,o)=>{"use strict";var s,r,n,i=o(28473),l=o(1483),a=o(71704),h=o(25290),c=o(53181),u=o(77914),d=o(70001),g=o(19557),f=d("iterator"),p=!1;[].keys&&("next"in(n=[].keys())?(r=c(c(n)))!==Object.prototype&&(s=r):p=!0),!a(s)||i((function(){var e={};return s[f].call(e)!==e}))?s={}:g&&(s=h(s)),l(s[f])||u(s,f,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:p}},86775:e=>{"use strict";e.exports={}},66960:(e,t,o)=>{"use strict";var s=o(58324);e.exports=function(e){return s(e.length)}},90169:(e,t,o)=>{"use strict";var s=o(14762),r=o(28473),n=o(1483),i=o(55755),l=o(20382),a=o(42048).CONFIGURABLE,h=o(17268),c=o(64483),u=c.enforce,d=c.get,g=String,f=Object.defineProperty,p=s("".slice),m=s("".replace),w=s([].join),C=l&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),v=String(String).split("String"),y=e.exports=function(e,t,o){"Symbol("===p(g(t),0,7)&&(t="["+m(g(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),o&&o.getter&&(t="get "+t),o&&o.setter&&(t="set "+t),(!i(e,"name")||a&&e.name!==t)&&(l?f(e,"name",{value:t,configurable:!0}):e.name=t),C&&o&&i(o,"arity")&&e.length!==o.arity&&f(e,"length",{value:o.arity});try{o&&i(o,"constructor")&&o.constructor?l&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=u(e);return i(s,"source")||(s.source=w(v,"string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return n(this)&&d(this).source||h(this)}),"toString")},61703:e=>{"use strict";var t=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?o:t)(s)}},17969:(e,t,o)=>{"use strict";var s=o(26261);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},25290:(e,t,o)=>{"use strict";var s,r=o(2293),n=o(95799),i=o(44741),l=o(11507),a=o(42811),h=o(3145),c=o(65409),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 r=i.length;r--;)delete w[u][i[r]];return w()};l[g]=!0,e.exports=Object.create||function(e,t){var o;return null!==e?(f[u]=r(e),o=new f,f[u]=null,o[g]=e):o=w(),void 0===t?o:n.f(o,t)}},95799:(e,t,o)=>{"use strict";var s=o(20382),r=o(3896),n=o(25835),i=o(2293),l=o(35599),a=o(33658);t.f=s&&!r?Object.defineProperties:function(e,t){i(e);for(var o,s=l(t),r=a(t),h=r.length,c=0;h>c;)n.f(e,o=r[c++],s[o]);return e}},25835:(e,t,o)=>{"use strict";var s=o(20382),r=o(1799),n=o(3896),i=o(2293),l=o(83815),a=TypeError,h=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",g="writable";t.f=s?n?function(e,t,o){if(i(e),t=l(t),i(o),"function"==typeof e&&"prototype"===t&&"value"in o&&g in o&&!o[g]){var s=c(e,t);s&&s[g]&&(e[t]=o.value,o={configurable:d in o?o[d]:s[d],enumerable:u in o?o[u]:s[u],writable:!1})}return h(e,t,o)}:h:function(e,t,o){if(i(e),t=l(t),i(o),r)try{return h(e,t,o)}catch(e){}if("get"in o||"set"in o)throw new a("Accessors not supported");return"value"in o&&(e[t]=o.value),e}},4961:(e,t,o)=>{"use strict";var s=o(20382),r=o(21807),n=o(37611),i=o(57738),l=o(35599),a=o(83815),h=o(55755),c=o(1799),u=Object.getOwnPropertyDescriptor;t.f=s?u:function(e,t){if(e=l(e),t=a(t),c)try{return u(e,t)}catch(e){}if(h(e,t))return i(!r(n.f,e,t),e[t])}},12278:(e,t,o)=>{"use strict";var s=o(56742),r=o(44741).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,r)}},74347:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},53181:(e,t,o)=>{"use strict";var s=o(55755),r=o(1483),n=o(22347),i=o(65409),l=o(19441),a=i("IE_PROTO"),h=Object,c=h.prototype;e.exports=l?h.getPrototypeOf:function(e){var t=n(e);if(s(t,a))return t[a];var o=t.constructor;return r(o)&&t instanceof o?o.prototype:t instanceof h?c:null}},4815:(e,t,o)=>{"use strict";var s=o(14762);e.exports=s({}.isPrototypeOf)},56742:(e,t,o)=>{"use strict";var s=o(14762),r=o(55755),n=o(35599),i=o(86651).indexOf,l=o(11507),a=s([].push);e.exports=function(e,t){var o,s=n(e),h=0,c=[];for(o in s)!r(l,o)&&r(s,o)&&a(c,o);for(;t.length>h;)r(s,o=t[h++])&&(~i(c,o)||a(c,o));return c}},33658:(e,t,o)=>{"use strict";var s=o(56742),r=o(44741);e.exports=Object.keys||function(e){return s(e,r)}},37611:(e,t)=>{"use strict";var o={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,r=s&&!o.call({1:2},1);t.f=r?function(e){var t=s(this,e);return!!t&&t.enumerable}:o},51953:(e,t,o)=>{"use strict";var s=o(680),r=o(71704),n=o(53312),i=o(63852);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,o={};try{(e=s(Object.prototype,"__proto__","set"))(o,[]),t=o instanceof Array}catch(e){}return function(o,s){return n(o),i(s),r(o)?(t?e(o,s):o.__proto__=s,o):o}}():void 0)},348:(e,t,o)=>{"use strict";var s=o(21807),r=o(1483),n=o(71704),i=TypeError;e.exports=function(e,t){var o,l;if("string"===t&&r(o=e.toString)&&!n(l=s(o,e)))return l;if(r(o=e.valueOf)&&!n(l=s(o,e)))return l;if("string"!==t&&r(o=e.toString)&&!n(l=s(o,e)))return l;throw new i("Can't convert object to primitive value")}},89497:(e,t,o)=>{"use strict";var s=o(11409),r=o(14762),n=o(12278),i=o(74347),l=o(2293),a=r([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=n.f(l(e)),o=i.f;return o?a(t,o(e)):t}},7150:(e,t,o)=>{"use strict";var s=o(25835).f;e.exports=function(e,t,o){o in e||s(e,o,{configurable:!0,get:function(){return t[o]},set:function(e){t[o]=e}})}},36653:(e,t,o)=>{"use strict";var s=o(2293);e.exports=function(){var e=s(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},39736:(e,t,o)=>{"use strict";var s=o(21807),r=o(55755),n=o(4815),i=o(36653),l=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in l||r(e,"flags")||!n(l,e)?t:s(i,e)}},53312:(e,t,o)=>{"use strict";var s=o(15983),r=TypeError;e.exports=function(e){if(s(e))throw new r("Can't call method on "+e);return e}},39570:(e,t,o)=>{"use strict";var s,r=o(85578),n=o(73067),i=o(1483),l=o(63897),a=o(19461),h=o(61698),c=o(4066),u=r.Function,d=/MSIE .\./.test(a)||"BUN"===l&&((s=r.Bun.version.split(".")).length<3||"0"===s[0]&&(s[1]<3||"3"===s[1]&&"0"===s[2]));e.exports=function(e,t){var o=t?2:1;return d?function(s,r){var l=c(arguments.length,1)>o,a=i(s)?s:u(s),d=l?h(arguments,o):[],g=l?function(){n(a,this,d)}:a;return t?e(g,r):e(g)}:e}},34824:(e,t,o)=>{"use strict";var s=o(36880),r=o(11639),n=s.Set,i=s.add;e.exports=function(e){var t=new n;return r(e,(function(e){i(t,e)})),t}},26006:(e,t,o)=>{"use strict";var s=o(14246),r=o(36880),n=o(34824),i=o(45828),l=o(53131),a=o(11639),h=o(76001),c=r.has,u=r.remove;e.exports=function(e){var t=s(this),o=l(e),r=n(t);return i(t)<=o.size?a(t,(function(e){o.includes(e)&&u(r,e)})):h(o.getIterator(),(function(e){c(t,e)&&u(r,e)})),r}},36880:(e,t,o)=>{"use strict";var s=o(14762),r=Set.prototype;e.exports={Set,add:s(r.add),has:s(r.has),remove:s(r.delete),proto:r}},25472:(e,t,o)=>{"use strict";var s=o(14246),r=o(36880),n=o(45828),i=o(53131),l=o(11639),a=o(76001),h=r.Set,c=r.add,u=r.has;e.exports=function(e){var t=s(this),o=i(e),r=new h;return n(t)>o.size?a(o.getIterator(),(function(e){u(t,e)&&c(r,e)})):l(t,(function(e){o.includes(e)&&c(r,e)})),r}},87035:(e,t,o)=>{"use strict";var s=o(14246),r=o(36880).has,n=o(45828),i=o(53131),l=o(11639),a=o(76001),h=o(46721);e.exports=function(e){var t=s(this),o=i(e);if(n(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(r(t,e))return h(c,"normal",!1)}))}},51984:(e,t,o)=>{"use strict";var s=o(14246),r=o(45828),n=o(11639),i=o(53131);e.exports=function(e){var t=s(this),o=i(e);return!(r(t)>o.size)&&!1!==n(t,(function(e){if(!o.includes(e))return!1}),!0)}},33049:(e,t,o)=>{"use strict";var s=o(14246),r=o(36880).has,n=o(45828),i=o(53131),l=o(76001),a=o(46721);e.exports=function(e){var t=s(this),o=i(e);if(n(t)<o.size)return!1;var h=o.getIterator();return!1!==l(h,(function(e){if(!r(t,e))return a(h,"normal",!1)}))}},11639:(e,t,o)=>{"use strict";var s=o(14762),r=o(76001),n=o(36880),i=n.Set,l=n.proto,a=s(l.forEach),h=s(l.keys),c=h(new i).next;e.exports=function(e,t,o){return o?r({iterator:h(e),next:c},t):a(e,t)}},5242:(e,t,o)=>{"use strict";var s=o(11409),r=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},n=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var o=s("Set");try{(new o)[e](r(0));try{return(new o)[e](r(-1)),!1}catch(s){if(!t)return!0;try{return(new o)[e](n(-1/0)),!1}catch(s){var i=new o;return i.add(1),i.add(2),t(i[e](n(1/0)))}}}catch(e){return!1}}},45828:(e,t,o)=>{"use strict";var s=o(680),r=o(36880);e.exports=s(r.proto,"size","get")||function(e){return e.size}},61916:(e,t,o)=>{"use strict";var s=o(14246),r=o(36880),n=o(34824),i=o(53131),l=o(76001),a=r.add,h=r.has,c=r.remove;e.exports=function(e){var t=s(this),o=i(e).getIterator(),r=n(t);return l(o,(function(e){h(t,e)?c(r,e):a(r,e)})),r}},95790:(e,t,o)=>{"use strict";var s=o(14246),r=o(36880).add,n=o(34824),i=o(53131),l=o(76001);e.exports=function(e){var t=s(this),o=i(e).getIterator(),a=n(t);return l(o,(function(e){r(a,e)})),a}},65409:(e,t,o)=>{"use strict";var s=o(47255),r=o(81866),n=s("keys");e.exports=function(e){return n[e]||(n[e]=r(e))}},91831:(e,t,o)=>{"use strict";var s=o(19557),r=o(85578),n=o(82095),i="__core-js_shared__",l=e.exports=r[i]||n(i,{});(l.versions||(l.versions=[])).push({version:"3.40.0",mode:s?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},47255:(e,t,o)=>{"use strict";var s=o(91831);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},86029:(e,t,o)=>{"use strict";var s=o(66477),r=o(28473),n=o(85578).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},17007:(e,t,o)=>{"use strict";var s,r,n,i,l=o(85578),a=o(73067),h=o(32914),c=o(1483),u=o(55755),d=o(28473),g=o(42811),f=o(61698),p=o(3145),m=o(4066),w=o(91058),C=o(35207),v=l.setImmediate,y=l.clearImmediate,E=l.process,S=l.Dispatch,R=l.Function,b=l.MessageChannel,_=l.String,T=0,M={},O="onreadystatechange";d((function(){s=l.location}));var I=function(e){if(u(M,e)){var t=M[e];delete M[e],t()}},N=function(e){return function(){I(e)}},A=function(e){I(e.data)},P=function(e){l.postMessage(_(e),s.protocol+"//"+s.host)};v&&y||(v=function(e){m(arguments.length,1);var t=c(e)?e:R(e),o=f(arguments,1);return M[++T]=function(){a(t,void 0,o)},r(T),T},y=function(e){delete M[e]},C?r=function(e){E.nextTick(N(e))}:S&&S.now?r=function(e){S.now(N(e))}:b&&!w?(i=(n=new b).port2,n.port1.onmessage=A,r=h(i.postMessage,i)):l.addEventListener&&c(l.postMessage)&&!l.importScripts&&s&&"file:"!==s.protocol&&!d(P)?(r=P,l.addEventListener("message",A,!1)):r=O in p("script")?function(e){g.appendChild(p("script"))[O]=function(){g.removeChild(this),I(e)}}:function(e){setTimeout(N(e),0)}),e.exports={set:v,clear:y}},33392:(e,t,o)=>{"use strict";var s=o(73005),r=Math.max,n=Math.min;e.exports=function(e,t){var o=s(e);return o<0?r(o+t,0):n(o,t)}},35599:(e,t,o)=>{"use strict";var s=o(32121),r=o(53312);e.exports=function(e){return s(r(e))}},73005:(e,t,o)=>{"use strict";var s=o(61703);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},58324:(e,t,o)=>{"use strict";var s=o(73005),r=Math.min;e.exports=function(e){var t=s(e);return t>0?r(t,9007199254740991):0}},22347:(e,t,o)=>{"use strict";var s=o(53312),r=Object;e.exports=function(e){return r(s(e))}},22355:(e,t,o)=>{"use strict";var s=o(21807),r=o(71704),n=o(31423),i=o(92564),l=o(348),a=o(70001),h=TypeError,c=a("toPrimitive");e.exports=function(e,t){if(!r(e)||n(e))return e;var o,a=i(e,c);if(a){if(void 0===t&&(t="default"),o=s(a,e,t),!r(o)||n(o))return o;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},83815:(e,t,o)=>{"use strict";var s=o(22355),r=o(31423);e.exports=function(e){var t=s(e,"string");return r(t)?t:t+""}},34338:(e,t,o)=>{"use strict";var s={};s[o(70001)("toStringTag")]="z",e.exports="[object z]"===String(s)},26261:(e,t,o)=>{"use strict";var s=o(26145),r=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},18761:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},81866:(e,t,o)=>{"use strict";var s=o(14762),r=0,n=Math.random(),i=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++r+n,36)}},45022:(e,t,o)=>{"use strict";var s=o(86029);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3896:(e,t,o)=>{"use strict";var s=o(20382),r=o(28473);e.exports=s&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4066:e=>{"use strict";var t=TypeError;e.exports=function(e,o){if(e<o)throw new t("Not enough arguments");return e}},74644:(e,t,o)=>{"use strict";var s=o(85578),r=o(1483),n=s.WeakMap;e.exports=r(n)&&/native code/.test(String(n))},70001:(e,t,o)=>{"use strict";var s=o(85578),r=o(47255),n=o(55755),i=o(81866),l=o(86029),a=o(45022),h=s.Symbol,c=r("wks"),u=a?h.for||h:h&&h.withoutSetter||i;e.exports=function(e){return n(c,e)||(c[e]=l&&n(h,e)?h[e]:u("Symbol."+e)),c[e]}},72335:(e,t,o)=>{"use strict";var s=o(11409),r=o(55755),n=o(69037),i=o(4815),l=o(51953),a=o(16726),h=o(7150),c=o(32429),u=o(17969),d=o(16866),g=o(27473),f=o(20382),p=o(19557);e.exports=function(e,t,o,m){var w="stackTraceLimit",C=m?2:1,v=e.split("."),y=v[v.length-1],E=s.apply(null,v);if(E){var S=E.prototype;if(!p&&r(S,"cause")&&delete S.cause,!o)return E;var R=s("Error"),b=t((function(e,t){var o=u(m?t:e,void 0),s=m?new E(e):new E;return void 0!==o&&n(s,"message",o),g(s,b,s.stack,2),this&&i(S,this)&&c(s,this,b),arguments.length>C&&d(s,arguments[C]),s}));if(b.prototype=S,"Error"!==y?l?l(b,R):a(b,R,{name:!0}):f&&w in E&&(h(b,E,w),h(b,E,"prepareStackTrace")),a(b,E),!p)try{S.name!==y&&n(S,"name",y),S.constructor=b}catch(e){}return b}}},95913:(e,t,o)=>{"use strict";var s=o(28612),r=o(22347),n=o(66960),i=o(73005),l=o(37095);s({target:"Array",proto:!0},{at:function(e){var t=r(this),o=n(t),s=i(e),l=s>=0?s:o+s;return l<0||l>=o?void 0:t[l]}}),l("at")},15724:(e,t,o)=>{"use strict";var s=o(28612),r=o(22347),n=o(66960),i=o(39273),l=o(31091);s({target:"Array",proto:!0,arity:1,forced:o(28473)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=r(this),o=n(t),s=arguments.length;l(o+s);for(var a=0;a<s;a++)t[o]=arguments[a],o++;return i(t,o),o}})},79747:(e,t,o)=>{"use strict";var s=o(28612),r=o(14762),n=o(68120),i=o(35599),l=o(78592),a=o(16458),h=o(37095),c=Array,u=r(a("Array","sort"));s({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&n(e);var t=i(this),o=l(c,t);return u(o,e)}}),h("toSorted")},63979:(e,t,o)=>{"use strict";o(37095)("flatMap")},25352:(e,t,o)=>{"use strict";o(37095)("flat")},54999:(e,t,o)=>{"use strict";var s=o(28612),r=o(22347),n=o(66960),i=o(39273),l=o(16060),a=o(31091);s({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=r(this),o=n(t),s=arguments.length;if(s){a(o+s);for(var h=o;h--;){var c=h+s;h in t?t[c]=t[h]:l(t,c)}for(var u=0;u<s;u++)t[u]=arguments[u]}return i(t,o+s)}})},67834:(e,t,o)=>{"use strict";var s=o(28612),r=o(85578),n=o(73067),i=o(72335),l="WebAssembly",a=r[l],h=7!==new Error("e",{cause:7}).cause,c=function(e,t){var o={};o[e]=i(e,t,h),s({global:!0,constructor:!0,arity:1,forced:h},o)},u=function(e,t){if(a&&a[e]){var o={};o[e]=i(l+"."+e,t,h),s({target:l,stat:!0,constructor:!0,arity:1,forced:h},o)}};c("Error",(function(e){return function(t){return n(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return n(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return n(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return n(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return n(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return n(e,this,arguments)}})),c("URIError",(function(e){return function(t){return n(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return n(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return n(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return n(e,this,arguments)}}))},43617:(e,t,o)=>{"use strict";var s=o(28612),r=o(85578),n=o(96021),i=o(2293),l=o(1483),a=o(53181),h=o(83864),c=o(30670),u=o(28473),d=o(55755),g=o(70001),f=o(21851).IteratorPrototype,p=o(20382),m=o(19557),w="constructor",C="Iterator",v=g("toStringTag"),y=TypeError,E=r[C],S=m||!l(E)||E.prototype!==f||!u((function(){E({})})),R=function(){if(n(this,f),a(this)===f)throw new y("Abstract class Iterator not directly constructable")},b=function(e,t){p?h(f,e,{configurable:!0,get:function(){return t},set:function(t){if(i(this),this===f)throw new y("You can't redefine this property");d(this,e)?this[e]=t:c(this,e,t)}}):f[e]=t};d(f,v)||b(v,C),!S&&d(f,w)&&f[w]!==Object||b(w,R),R.prototype=f,s({global:!0,constructor:!0,forced:S},{Iterator:R})},35214:(e,t,o)=>{"use strict";var s=o(28612),r=o(11506),n=o(68120),i=o(2293),l=o(40041);s({target:"Iterator",proto:!0,real:!0},{every:function(e){i(this),n(e);var t=l(this),o=0;return!r(t,(function(t,s){if(!e(t,o++))return s()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},81975:(e,t,o)=>{"use strict";var s=o(28612),r=o(21807),n=o(68120),i=o(2293),l=o(40041),a=o(58660),h=o(48901),c=o(19557),u=a((function(){for(var e,t,o=this.iterator,s=this.predicate,n=this.next;;){if(e=i(r(n,o)),this.done=!!e.done)return;if(t=e.value,h(o,s,[t,this.counter++],!0))return t}}));s({target:"Iterator",proto:!0,real:!0,forced:c},{filter:function(e){return i(this),n(e),new u(l(this),{predicate:e})}})},73242:(e,t,o)=>{"use strict";var s=o(28612),r=o(11506),n=o(68120),i=o(2293),l=o(40041);s({target:"Iterator",proto:!0,real:!0},{find:function(e){i(this),n(e);var t=l(this),o=0;return r(t,(function(t,s){if(e(t,o++))return s(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},22269:(e,t,o)=>{"use strict";var s=o(28612),r=o(21807),n=o(68120),i=o(2293),l=o(40041),a=o(22992),h=o(58660),c=o(46721),u=o(19557),d=h((function(){for(var e,t,o=this.iterator,s=this.mapper;;){if(t=this.inner)try{if(!(e=i(r(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){c(o,"throw",e)}if(e=i(r(this.next,o)),this.done=!!e.done)return;try{this.inner=a(s(e.value,this.counter++),!1)}catch(e){c(o,"throw",e)}}}));s({target:"Iterator",proto:!0,real:!0,forced:u},{flatMap:function(e){return i(this),n(e),new d(l(this),{mapper:e,inner:null})}})},99930:(e,t,o)=>{"use strict";var s=o(28612),r=o(11506),n=o(68120),i=o(2293),l=o(40041);s({target:"Iterator",proto:!0,real:!0},{forEach:function(e){i(this),n(e);var t=l(this),o=0;r(t,(function(t){e(t,o++)}),{IS_RECORD:!0})}})},93991:(e,t,o)=>{"use strict";var s=o(28612),r=o(13963);s({target:"Iterator",proto:!0,real:!0,forced:o(19557)},{map:r})},37227:(e,t,o)=>{"use strict";var s=o(28612),r=o(11506),n=o(68120),i=o(2293),l=o(40041),a=TypeError;s({target:"Iterator",proto:!0,real:!0},{reduce:function(e){i(this),n(e);var t=l(this),o=arguments.length<2,s=o?void 0:arguments[1],h=0;if(r(t,(function(t){o?(o=!1,s=t):s=e(s,t,h),h++}),{IS_RECORD:!0}),o)throw new a("Reduce of empty iterator with no initial value");return s}})},29217:(e,t,o)=>{"use strict";var s=o(28612),r=o(11506),n=o(68120),i=o(2293),l=o(40041);s({target:"Iterator",proto:!0,real:!0},{some:function(e){i(this),n(e);var t=l(this),o=0;return r(t,(function(t,s){if(e(t,o++))return s()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},66184:(e,t,o)=>{"use strict";var s=o(28612),r=o(11409),n=o(73067),i=o(21807),l=o(14762),a=o(28473),h=o(1483),c=o(31423),u=o(61698),d=o(55215),g=o(86029),f=String,p=r("JSON","stringify"),m=l(/./.exec),w=l("".charAt),C=l("".charCodeAt),v=l("".replace),y=l(1..toString),E=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,R=/^[\uDC00-\uDFFF]$/,b=!g||a((function(){var e=r("Symbol")("stringify detection");return"[null]"!==p([e])||"{}"!==p({a:e})||"{}"!==p(Object(e))})),_=a((function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")})),T=function(e,t){var o=u(arguments),s=d(t);if(h(s)||void 0!==e&&!c(e))return o[1]=function(e,t){if(h(s)&&(t=i(s,this,f(e),t)),!c(t))return t},n(p,null,o)},M=function(e,t,o){var s=w(o,t-1),r=w(o,t+1);return m(S,e)&&!m(R,r)||m(R,e)&&!m(S,s)?"\\u"+y(C(e,0),16):e};p&&s({target:"JSON",stat:!0,arity:3,forced:b||_},{stringify:function(e,t,o){var s=u(arguments),r=n(b?T:p,null,s);return _&&"string"==typeof r?v(r,E,M):r}})},75339:(e,t,o)=>{"use strict";var s=o(28612),r=o(11506),n=o(30670);s({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,o){n(t,e,o)}),{AS_ENTRIES:!0}),t}})},71336:(e,t,o)=>{"use strict";var s=o(28612),r=o(26006);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("difference",(function(e){return 0===e.size}))},{difference:r})},41558:(e,t,o)=>{"use strict";var s=o(28612),r=o(28473),n=o(25472);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||r((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:n})},17663:(e,t,o)=>{"use strict";var s=o(28612),r=o(87035);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("isDisjointFrom",(function(e){return!e}))},{isDisjointFrom:r})},68630:(e,t,o)=>{"use strict";var s=o(28612),r=o(51984);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("isSubsetOf",(function(e){return e}))},{isSubsetOf:r})},79645:(e,t,o)=>{"use strict";var s=o(28612),r=o(33049);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("isSupersetOf",(function(e){return!e}))},{isSupersetOf:r})},89858:(e,t,o)=>{"use strict";var s=o(28612),r=o(61916);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("symmetricDifference")},{symmetricDifference:r})},8620:(e,t,o)=>{"use strict";var s=o(28612),r=o(95790);s({target:"Set",proto:!0,real:!0,forced:!o(5242)("union")},{union:r})},12587:(e,t,o)=>{"use strict";var s=o(28612),r=o(14762),n=o(53312),i=o(73005),l=o(26261),a=o(28473),h=r("".charAt);s({target:"String",proto:!0,forced:a((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=l(n(this)),o=t.length,s=i(e),r=s>=0?s:o+s;return r<0||r>=o?void 0:h(t,r)}})},64552:(e,t,o)=>{"use strict";var s=o(28612),r=o(21807),n=o(14762),i=o(53312),l=o(1483),a=o(15983),h=o(84786),c=o(26261),u=o(92564),d=o(39736),g=o(20708),f=o(70001),p=o(19557),m=f("replace"),w=TypeError,C=n("".indexOf),v=n("".replace),y=n("".slice),E=Math.max;s({target:"String",proto:!0},{replaceAll:function(e,t){var o,s,n,f,S,R,b,_,T,M,O=i(this),I=0,N="";if(!a(e)){if((o=h(e))&&(s=c(i(d(e))),!~C(s,"g")))throw new w("`.replaceAll` does not allow non-global regexes");if(n=u(e,m))return r(n,e,O,t);if(p&&o)return v(c(O),e,t)}for(f=c(O),S=c(e),(R=l(t))||(t=c(t)),b=S.length,_=E(1,b),T=C(f,S);-1!==T;)M=R?c(t(S,T,f)):g(S,f,T,[],void 0,t),N+=y(f,I,T)+M,I=T+b,T=T+_>f.length?-1:C(f,S,T+_);return I<f.length&&(N+=y(f,I)),N}})},14846:(e,t,o)=>{"use strict";o(43617)},63333:(e,t,o)=>{"use strict";o(35214)},27458:(e,t,o)=>{"use strict";o(81975)},6211:(e,t,o)=>{"use strict";o(73242)},49748:(e,t,o)=>{"use strict";o(22269)},69655:(e,t,o)=>{"use strict";o(99930)},94364:(e,t,o)=>{"use strict";o(93991)},90458:(e,t,o)=>{"use strict";o(37227)},75568:(e,t,o)=>{"use strict";o(29217)},31998:(e,t,o)=>{"use strict";var s=o(28612),r=o(85578),n=o(17007).clear;s({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==n},{clearImmediate:n})},71766:(e,t,o)=>{"use strict";o(31998),o(8615)},8615:(e,t,o)=>{"use strict";var s=o(28612),r=o(85578),n=o(17007).set,i=o(39570),l=r.setImmediate?i(n,!1):n;s({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==l},{setImmediate:l})}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e].call(o.exports,o,o.exports,i),o.exports}i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";var e=l,t=i(96784);var o=k(i(19984));o.CellCoords,o.CellRange;var s,r,n,a,h,c=i(6502),u=k(i(12370)),d=i(57466),g=t(i(75668)),f=t(i(81838)),p=k(i(19310)),m=k(i(47154)),w=k(i(99275)),C=k(i(42379)),v=k(i(96431)),y=k(i(37725)),E=k(i(77515)),S=k(i(95768)),R=k(i(36926)),b=k(i(95016)),_=k(i(83414)),T=k(i(83644)),M=k(i(94916)),O=k(i(40892)),I=i(45973),N=i(58151),A=i(57006),P=i(39548),H=i(42427),x=i(9458);function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(D=function(e){return e?o:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=D(t);if(o&&o.has(e))return o.get(e);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,o&&o.set(e,s),s}(0,c.registerAllModules)(),(0,g.default)(o.default),o.default.__GhostTable=f.default,o.default._getListenersCounter=u.getListenersCounter,o.default._getRegisteredMapsCounter=d.getRegisteredMapsCounter,o.default.EventManager=u.default;const L=[m,w,C,v,y,E,S,R,b,_,T,p],V=[M,O];o.default.helper={},o.default.dom={},m.arrayEach(L,(e=>{m.arrayEach(Object.getOwnPropertyNames(e),(t=>{"_"!==t.charAt(0)&&(o.default.helper[t]=e[t])}))})),m.arrayEach(V,(e=>{m.arrayEach(Object.getOwnPropertyNames(e),(t=>{"_"!==t.charAt(0)&&(o.default.dom[t]=e[t])}))})),o.default.cellTypes=null!==(s=o.default.cellTypes)&&void 0!==s?s:{},m.arrayEach((0,P.getRegisteredCellTypeNames)(),(e=>{o.default.cellTypes[e]=(0,P.getCellType)(e)})),o.default.cellTypes.registerCellType=P.registerCellType,o.default.cellTypes.getCellType=P.getCellType,o.default.editors=null!==(r=o.default.editors)&&void 0!==r?r:{},m.arrayEach((0,I.getRegisteredEditorNames)(),(e=>{o.default.editors[`${_.toUpperCaseFirst(e)}Editor`]=(0,I.getEditor)(e)})),o.default.editors.registerEditor=I.registerEditor,o.default.editors.getEditor=I.getEditor,o.default.renderers=null!==(n=o.default.renderers)&&void 0!==n?n:{},m.arrayEach((0,N.getRegisteredRendererNames)(),(e=>{const t=(0,N.getRenderer)(e);"base"===e&&(o.default.renderers.cellDecorator=t),o.default.renderers[`${_.toUpperCaseFirst(e)}Renderer`]=t})),o.default.renderers.registerRenderer=N.registerRenderer,o.default.renderers.getRenderer=N.getRenderer,o.default.validators=null!==(a=o.default.validators)&&void 0!==a?a:{},m.arrayEach((0,A.getRegisteredValidatorNames)(),(e=>{o.default.validators[`${_.toUpperCaseFirst(e)}Validator`]=(0,A.getValidator)(e)})),o.default.validators.registerValidator=A.registerValidator,o.default.validators.getValidator=A.getValidator,o.default.plugins=null!==(h=o.default.plugins)&&void 0!==h?h:{},m.arrayEach((0,H.getPluginsNames)(),(e=>{o.default.plugins[e]=(0,H.getPlugin)(e)})),o.default.plugins[`${_.toUpperCaseFirst(x.BasePlugin.PLUGIN_KEY)}Plugin`]=x.BasePlugin,o.default.plugins.registerPlugin=H.registerPlugin,o.default.plugins.getPlugin=H.getPlugin;e.default=o.default})(),l=l.default})()));
|