handsontable 17.0.0-rc13 → 17.0.0-rc15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +10 -9
  2. package/base.js +2 -2
  3. package/base.mjs +2 -2
  4. package/core.js +1 -1
  5. package/core.mjs +1 -1
  6. package/dist/handsontable.full.js +7 -7
  7. package/dist/handsontable.full.min.js +5 -5
  8. package/dist/handsontable.js +7 -7
  9. package/dist/handsontable.min.js +5 -5
  10. package/dist/themes/classic.js +2 -2
  11. package/dist/themes/classic.min.js +2 -2
  12. package/dist/themes/horizon.js +2 -2
  13. package/dist/themes/horizon.min.js +2 -2
  14. package/dist/themes/main.js +2 -2
  15. package/dist/themes/main.min.js +2 -2
  16. package/dist/themes/static/variables/colors/ant.js +2 -2
  17. package/dist/themes/static/variables/colors/ant.min.js +2 -2
  18. package/dist/themes/static/variables/colors/classic.js +2 -2
  19. package/dist/themes/static/variables/colors/classic.min.js +2 -2
  20. package/dist/themes/static/variables/colors/horizon.js +2 -2
  21. package/dist/themes/static/variables/colors/horizon.min.js +2 -2
  22. package/dist/themes/static/variables/colors/main.js +2 -2
  23. package/dist/themes/static/variables/colors/main.min.js +2 -2
  24. package/dist/themes/static/variables/colors/material.js +2 -2
  25. package/dist/themes/static/variables/colors/material.min.js +2 -2
  26. package/dist/themes/static/variables/colors/shadcn.js +2 -2
  27. package/dist/themes/static/variables/colors/shadcn.min.js +2 -2
  28. package/dist/themes/static/variables/density.js +2 -2
  29. package/dist/themes/static/variables/density.min.js +2 -2
  30. package/dist/themes/static/variables/helpers/iconsMap.js +2 -2
  31. package/dist/themes/static/variables/helpers/iconsMap.min.js +2 -2
  32. package/dist/themes/static/variables/icons/horizon.js +2 -2
  33. package/dist/themes/static/variables/icons/horizon.min.js +2 -2
  34. package/dist/themes/static/variables/icons/main.js +2 -2
  35. package/dist/themes/static/variables/icons/main.min.js +2 -2
  36. package/dist/themes/static/variables/sizing.js +2 -2
  37. package/dist/themes/static/variables/sizing.min.js +2 -2
  38. package/dist/themes/static/variables/tokens/classic.js +2 -2
  39. package/dist/themes/static/variables/tokens/classic.min.js +2 -2
  40. package/dist/themes/static/variables/tokens/horizon.js +2 -2
  41. package/dist/themes/static/variables/tokens/horizon.min.js +2 -2
  42. package/dist/themes/static/variables/tokens/main.js +2 -2
  43. package/dist/themes/static/variables/tokens/main.min.js +2 -2
  44. package/helpers/mixed.js +1 -1
  45. package/helpers/mixed.mjs +1 -1
  46. package/package.json +1 -1
  47. package/styles/handsontable.css +2 -2
  48. package/styles/handsontable.min.css +2 -2
  49. package/styles/handsontableStyles.js +1 -1
  50. package/styles/handsontableStyles.mjs +1 -1
  51. package/styles/ht-icons-horizon.min.css +2 -2
  52. package/styles/ht-icons-main.min.css +2 -2
  53. package/styles/ht-theme-classic-no-icons.min.css +2 -2
  54. package/styles/ht-theme-classic.min.css +2 -2
  55. package/styles/ht-theme-horizon-no-icons.min.css +2 -2
  56. package/styles/ht-theme-horizon.min.css +2 -2
  57. package/styles/ht-theme-main-no-icons.min.css +2 -2
  58. package/styles/ht-theme-main.min.css +2 -2
@@ -25,18 +25,18 @@
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: 17.0.0-rc13
29
- * Release date: 04/03/2026 (built at 04/03/2026 12:06:21)
28
+ * Version: 17.0.0-rc15
29
+ * Release date: 05/03/2026 (built at 05/03/2026 11:36:23)
30
30
  */
31
31
  !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}(Object("undefined"!=typeof self?self:this),()=>(()=>{var e={64373(e,t){"use strict";t.__esModule=!0,t.parse=function(e){const t=[[""]];if(0===e.length)return t;let i,s=0,a=0;for(;e.length>0&&i!==e.length;)if(i=e.length,e.match(o))e=e.replace(o,""),s+=1,t[a][s]="";else if(e.match(r))e=e.replace(r,""),s=0,a+=1,t[a]=[""];else{let r="";if(e.startsWith('"')){let t=0,n=!0;for(;n;){const o=e.slice(0,1);'"'===o&&(t+=1),r+=o,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&t%2==0)&&(n=!1)}r=r.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,e=>new Array(Math.floor(e.length/2)).fill('"').join(""))}else{const t=e.match(n);r=t?t[0]:"",e=e.slice(r.length)}t[a][s]=r}return t},t.stringify=function(e){let t,r,n,o,i,s="";for(t=0,r=e.length;t<r;t+=1){for(o=e[t].length,n=0;n<o;n+=1)n>0&&(s+="\t"),i=e[t][n],"string"==typeof i?i.indexOf("\n")>-1?s+=`"${i.replace(/"/g,'""')}"`:s+=i:s+=null==i?"":i;t!==r-1&&(s+="\n")}return s};const r=/^(\r\n|\n\r|\r|\n)/,n=/^[^\t\r\n]+/,o=/^\t/},14652(e,t,r){"use strict";t.__esModule=!0;var n=r(64373);t.parse=n.parse,t.stringify=n.stringify},26126(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.FullyVisibleColumnsCalculationType=class{constructor(){(0,o.default)(this,"count",0),(0,o.default)(this,"startColumn",null),(0,o.default)(this,"endColumn",null),(0,o.default)(this,"startPosition",null),(0,o.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:r,zeroBasedScrollOffset:n,viewportWidth:o,columnWidth:i}=t;r>=n&&r+i<=n+(n>0?o+1:o)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e),this.endColumn=e)}finalize(e){var t;const{scrollOffset:r,viewportWidth:n,inlineStartOffset:o,zeroBasedScrollOffset:i,totalColumns:s,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===s-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(e<=n&&(this.startColumn-=1),e>=n)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;const c=r+n-(i>0?n+1:n),u=null===this.startColumn?0:e.getColumnWidth(this.startColumn);c<-1*o||r>l.at(-1)||-1*r-n>-1*u?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,s<this.endColumn&&(this.endColumn=s-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},55200(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.FullyVisibleRowsCalculationType=class{constructor(){(0,o.default)(this,"count",0),(0,o.default)(this,"startRow",null),(0,o.default)(this,"endRow",null),(0,o.default)(this,"startPosition",null),(0,o.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:r,zeroBasedScrollOffset:n,innerViewportHeight:o,rowHeight:i}=t;r>=n&&r+i<=o&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:r,viewportHeight:n,horizontalScrollbarHeight:o,totalRows:i,needReverse:s,startPositions:a,rowHeight:l}=e;if(this.endRow===i-1&&s)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(e<=n-o&&(this.startRow-=1),e>=n-o)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;r+n-o<(null===this.startRow?0:e.getRowHeight(this.startRow))||r>a.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,i<this.endRow&&(this.endRow=i-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},57316(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.PartiallyVisibleColumnsCalculationType=class{constructor(){(0,o.default)(this,"count",0),(0,o.default)(this,"startColumn",null),(0,o.default)(this,"endColumn",null),(0,o.default)(this,"startPosition",null),(0,o.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:r,zeroBasedScrollOffset:n,viewportWidth:o}=t;r<=n&&(this.startColumn=e);r>=n&&r<=n+(n>0?o+1:o)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e)),this.endColumn=e}finalize(e){var t;const{scrollOffset:r,viewportWidth:n,inlineStartOffset:o,zeroBasedScrollOffset:i,totalColumns:s,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===s-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(this.startColumn-=1,e>n)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;r+n-(i>0?n+1:n)<-1*o||r>l.at(-1)+h||-1*r-n>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,s<this.endColumn&&(this.endColumn=s-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},46762(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.PartiallyVisibleRowsCalculationType=class{constructor(){(0,o.default)(this,"count",0),(0,o.default)(this,"startRow",null),(0,o.default)(this,"endRow",null),(0,o.default)(this,"startPosition",null),(0,o.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:r,zeroBasedScrollOffset:n,innerViewportHeight:o}=t;r<=n&&(this.startRow=e),r>=n&&r<=o&&null===this.startRow&&(this.startRow=e),this.endRow=e}finalize(e){var t;const{scrollOffset:r,viewportHeight:n,horizontalScrollbarHeight:o,totalRows:i,needReverse:s,startPositions:a,rowHeight:l}=e;if(this.endRow===i-1&&s)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(this.startRow-=1,e>=n-o)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;r+n-o<0||r>a.at(-1)+l?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,i<this.endRow&&(this.endRow=i-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},27896(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.RenderedAllColumnsCalculationType=class{constructor(){(0,o.default)(this,"count",0),(0,o.default)(this,"startColumn",0),(0,o.default)(this,"endColumn",0),(0,o.default)(this,"startPosition",0),(0,o.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:t}=e;this.count=t,this.endColumn=this.count-1}process(){}finalize(){}}},91806(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.RenderedAllRowsCalculationType=class{constructor(){(0,o.default)(this,"count",0),(0,o.default)(this,"startRow",0),(0,o.default)(this,"endRow",0),(0,o.default)(this,"startPosition",0),(0,o.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalRows:t}=e;this.count=t,this.endRow=this.count-1}process(){}finalize(){}}},33887(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(57316);class s extends i.PartiallyVisibleColumnsCalculationType{constructor(){super(...arguments),(0,o.default)(this,"columnStartOffset",0),(0,o.default)(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:r,totalColumns:n,startPositions:o}=e;if(null!==this.startColumn&&"function"==typeof r){const e=this.startColumn,t=this.endColumn;r(this),this.columnStartOffset=e-this.startColumn,this.columnEndOffset=this.endColumn-t}this.startColumn<0&&(this.startColumn=0),this.startPosition=null!==(t=o[this.startColumn])&&void 0!==t?t:null,n<this.endColumn&&(this.endColumn=n-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}t.RenderedColumnsCalculationType=s},32291(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(46762);class s extends i.PartiallyVisibleRowsCalculationType{constructor(){super(...arguments),(0,o.default)(this,"rowStartOffset",0),(0,o.default)(this,"rowEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:r,totalRows:n,startPositions:o}=e;if(null!==this.startRow&&"function"==typeof r){const e=this.startRow,t=this.endRow;r(this),this.rowStartOffset=e-this.startRow,this.rowEndOffset=this.endRow-t}this.startRow<0&&(this.startRow=0),this.startPosition=null!==(t=o[this.startRow])&&void 0!==t?t:null,n<this.endRow&&(this.endRow=n-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}t.RenderedRowsCalculationType=s},18601(e,t,r){"use strict";t.__esModule=!0;var n=r(26126);t.FullyVisibleColumnsCalculationType=n.FullyVisibleColumnsCalculationType;var o=r(55200);t.FullyVisibleRowsCalculationType=o.FullyVisibleRowsCalculationType;var i=r(57316);t.PartiallyVisibleColumnsCalculationType=i.PartiallyVisibleColumnsCalculationType;var s=r(46762);t.PartiallyVisibleRowsCalculationType=s.PartiallyVisibleRowsCalculationType;var a=r(27896);t.RenderedAllColumnsCalculationType=a.RenderedAllColumnsCalculationType;var l=r(91806);t.RenderedAllRowsCalculationType=l.RenderedAllRowsCalculationType;var h=r(33887);t.RenderedColumnsCalculationType=h.RenderedColumnsCalculationType;var c=r(32291);t.RenderedRowsCalculationType=c.RenderedRowsCalculationType;var u=r(72924);t.ViewportColumnsCalculator=u.ViewportColumnsCalculator,t.DEFAULT_COLUMN_WIDTH=u.DEFAULT_WIDTH;var d=r(92898);t.ViewportRowsCalculator=d.ViewportRowsCalculator},45970(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.ViewportBaseCalculator=class{constructor(e){(0,o.default)(this,"calculationTypes",[]),(0,o.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[r,n]=t;this.calculationResults.set(r,n),n.initialize(e)})}_process(e,t){this.calculationTypes.forEach(r=>{let[,n]=r;return n.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,r]=t;return r.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},72924(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(45970);const s=t.DEFAULT_WIDTH=50;class a extends i.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportWidth:r,scrollOffset:n,totalColumns:i,columnWidthFn:s,overrideFn:a,inlineStartOffset:l}=e;super(t),(0,o.default)(this,"viewportWidth",0),(0,o.default)(this,"scrollOffset",0),(0,o.default)(this,"zeroBasedScrollOffset",0),(0,o.default)(this,"totalColumns",0),(0,o.default)(this,"columnWidthFn",null),(0,o.default)(this,"columnWidth",0),(0,o.default)(this,"overrideFn",null),(0,o.default)(this,"inlineStartOffset",0),(0,o.default)(this,"totalCalculatedWidth",0),(0,o.default)(this,"startPositions",[]),(0,o.default)(this,"needReverse",!0),this.viewportWidth=r,this.scrollOffset=n,this.zeroBasedScrollOffset=Math.max(n,0),this.totalColumns=i,this.columnWidthFn=s,this.overrideFn=a,this.inlineStartOffset=l,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)?s:t}}t.ViewportColumnsCalculator=a},92898(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(45970);class s extends i.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportHeight:r,scrollOffset:n,totalRows:i,defaultRowHeight:s,rowHeightFn:a,overrideFn:l,horizontalScrollbarHeight:h}=e;super(t),(0,o.default)(this,"viewportHeight",0),(0,o.default)(this,"scrollOffset",0),(0,o.default)(this,"zeroBasedScrollOffset",0),(0,o.default)(this,"totalRows",0),(0,o.default)(this,"rowHeightFn",null),(0,o.default)(this,"rowHeight",0),(0,o.default)(this,"overrideFn",null),(0,o.default)(this,"horizontalScrollbarHeight",0),(0,o.default)(this,"innerViewportHeight",0),(0,o.default)(this,"totalCalculatedHeight",0),(0,o.default)(this,"startPositions",[]),(0,o.default)(this,"needReverse",!0),this.defaultHeight=s,this.viewportHeight=r,this.scrollOffset=n,this.zeroBasedScrollOffset=Math.max(n,0),this.totalRows=i,this.rowHeightFn=a,this.overrideFn=l,this.horizontalScrollbarHeight=null!=h?h:0,this.innerViewportHeight=this.zeroBasedScrollOffset+this.viewportHeight-this.horizontalScrollbarHeight,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalRows;e++)if(this.rowHeight=this.getRowHeight(e),this._process(e,this),this.startPositions.push(this.totalCalculatedHeight),this.totalCalculatedHeight+=this.rowHeight,this.totalCalculatedHeight>=this.innerViewportHeight){this.needReverse=!1;break}this._finalize(this)}getRowHeight(e){const t=this.rowHeightFn(e);return isNaN(t)?this.defaultHeight:t}}t.ViewportRowsCalculator=s},25531(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));function i(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function s(e,t){return e.get(l(e,t))}function a(e,t,r){return e.set(l(e,t),r),r}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class c{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,o.default)(this,"row",null),(0,o.default)(this,"col",null),i(this,h,!1),a(h,this,r),void 0!==e&&void 0!==t&&(this.row=e,this.col=t)}isValid(e){const{countRows:t,countCols:r,countRowHeaders:n,countColHeaders:o}={countRows:0,countCols:0,countRowHeaders:0,countColHeaders:0,...e};return!(!Number.isInteger(this.row)||!Number.isInteger(this.col))&&(!(this.row<-o||this.col<-n)&&!(this.row>=t||this.col>=r))}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 s(h,this)}isSouthEastOf(e){return this.row>=e.row&&(s(h,this)?this.col<=e.col:this.col>=e.col)}isNorthWestOf(e){return this.row<=e.row&&(s(h,this)?this.col>=e.col:this.col<=e.col)}isSouthWestOf(e){return this.row>=e.row&&(s(h,this)?this.col>=e.col:this.col<=e.col)}isNorthEastOf(e){return this.row<=e.row&&(s(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&&a(h,this,e.isRtl()),this}clone(){return new c(this.row,this.col,s(h,this))}toObject(){return{row:this.row,col:this.col}}}t.default=c},7980(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=n(r(25531));function s(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function a(e,t){return e.get(l(e,t))}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var i,a,c;(0,o.default)(this,"highlight",null),(0,o.default)(this,"from",null),(0,o.default)(this,"to",null),s(this,h,!1),this.highlight=e.clone(),this.from=t.clone(),this.to=r.clone(),a=this,c=n,(i=h).set(l(i,a),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}normalize(){return this.highlight.normalize(),this.from.normalize(),this.to.normalize(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return!(!this.from.isHeader()||!this.to.isHeader())||(this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0)}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:t,col:r}=e,n=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return n.row<=t&&o.row>=t&&n.col<=r&&o.col>=r}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const t=this.getOuterTopStartCorner(),r=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>r.row||e.col>r.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(r.row,e.row),Math.max(r.col,e.col)),!0)}expandByRange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.includesRange(e)||!this.overlaps(e))return!1;const r=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),o=this.getDirection(),i=e.getOuterTopStartCorner(),s=e.getOuterBottomEndCorner(),a=Math.min(r.row,i.row),l=Math.min(r.col,i.col),h=Math.max(n.row,s.row),c=Math.max(n.col,s.col),u=this._createCellCoords(a,l),d=this._createCellCoords(h,c);return this.from=u,this.to=d,this.setDirection(o),t&&(this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally()),!0}getDirection(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()]}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return a(h,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return a(h,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return a(h,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return a(h,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return a(h,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return a(h,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return a(h,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return a(h,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){return e instanceof i.default&&(e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0)}getBordersSharedWith(e){if(!this.includesRange(e))return[];const t=Math.min(this.from.row,this.to.row),r=Math.max(this.from.row,this.to.row),n=Math.min(this.from.col,this.to.col),o=Math.max(this.from.col,this.to.col),i=Math.min(e.from.row,e.to.row),s=Math.max(e.from.row,e.to.row),l=Math.min(e.from.col,e.to.col),c=Math.max(e.from.col,e.to.col),u=[];return t===i&&u.push("top"),o===c&&u.push(a(h,this)?"left":"right"),r===s&&u.push("bottom"),n===l&&u.push(a(h,this)?"right":"left"),u}getInner(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),r=[];for(let n=e.row;n<=t.row;n++)for(let o=e.col;o<=t.col;o++)this.from.row===n&&this.from.col===o||this.to.row===n&&this.to.col===o||r.push(this._createCellCoords(n,o));return r}getAll(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),r=[];for(let n=e.row;n<=t.row;n++)for(let o=e.col;o<=t.col;o++)e.row===n&&e.col===o?r.push(e):t.row===n&&t.col===o?r.push(t):r.push(this._createCellCoords(n,o));return r}forAll(e){const t=this.getOuterTopStartCorner(),r=this.getOuterBottomEndCorner();for(let n=t.row;n<=r.row;n++)for(let o=t.col;o<=r.col;o++){if(!1===e(n,o))return}}clone(){return new c(this.highlight,this.from,this.to,a(h,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,t){return new i.default(e,t,a(h,this))}}t.default=c},35542(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=r(58507),a=n(r(23695)),l=n(r(39311)),h=n(r(25531)),c=n(r(7980));t.default=class{get eventManager(){return new a.default(this)}constructor(e,t){(0,o.default)(this,"wtTable",void 0),(0,o.default)(this,"wtScroll",void 0),(0,o.default)(this,"wtViewport",void 0),(0,o.default)(this,"wtOverlays",void 0),(0,o.default)(this,"selectionManager",void 0),(0,o.default)(this,"wtEvent",void 0),(0,o.default)(this,"guid",`wt_${(0,s.randomString)()}`),(0,o.default)(this,"drawInterrupted",!1),(0,o.default)(this,"drawn",!1),(0,o.default)(this,"activeOverlayName","master"),(0,o.default)(this,"domBindings",void 0),(0,o.default)(this,"wtSettings",void 0),this.domBindings={rootTable:e,rootDocument:e.ownerDocument,rootWindow:e.ownerDocument.defaultView},this.wtSettings=t,this.wtScroll=new l.default(this.createScrollDao())}findOriginalHeaders(){const e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(let t=0,r=this.wtTable.THEAD.childNodes[0].childNodes.length;t<r;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,r){(0,i.fastInnerText)(r,e[t])}])}}createCellCoords(e,t){return new h.default(e,t,this.wtSettings.getSetting("rtlMode"))}createCellRange(e,t,r){return new c.default(e,t,r,this.wtSettings.getSetting("rtlMode"))}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,!this.wtTable.isVisible()||(0,i.hasZeroHeight)(this.wtTable.wtRootElement.parentNode)?this.drawInterrupted=!0:this.wtTable.draw(e),this}getCell(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);const t=this.wtSettings.getSetting("totalRows"),r=this.wtSettings.getSetting("fixedRowsTop"),n=this.wtSettings.getSetting("fixedRowsBottom"),o=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<r&&e.col<o)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<r)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<o&&e.row>=t-n){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<o)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-n&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}scrollViewport(e,t,r){return this.wtScroll.scrollViewport(e,t,r)}scrollViewportHorizontally(e,t){return this.wtScroll.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this.wtScroll.scrollViewportVertically(e,t)}getViewport(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}destroy(){this.wtOverlays.destroy(),this.wtEvent.destroy()}createScrollDao(){const e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}getTableDao(){const e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selectionManager(){return e.selectionManager},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get startColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get endColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get startRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get endRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count},get columnHeaders(){return e.wtSettings.getSetting("columnHeaders")},get rowHeaders(){return e.wtSettings.getSetting("rowHeaders")}}}}},48611(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=n(r(1368)),s=n(r(35542));class a extends s.default{constructor(e,t,r){super(e,t),(0,o.default)(this,"cloneSource",void 0),(0,o.default)(this,"cloneOverlay",void 0);const n=this.wtSettings.getSetting("facade",this);this.cloneSource=r.source,this.cloneOverlay=r.overlay,this.wtTable=this.cloneOverlay.createTable(this.getTableDao(),n,this.domBindings,this.wtSettings),this.wtViewport=r.viewport,this.selectionManager=r.selectionManager,this.wtEvent=new i.default(n,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager,r.event),this.findOriginalHeaders()}}t.default=a},45171(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(1368)),i=n(r(35355)),s=r(54347),a=n(r(90675)),l=n(r(85117)),h=n(r(45620)),c=n(r(35542)),u=r(86938),d=r(81185),p=r(2783);class g extends c.default{constructor(e,t){super(e,new a.default(t));const r=this.wtSettings.getSetting("facade",this);this.wtTable=new l.default(this.getTableDao(),r,this.domBindings,this.wtSettings),this.wtViewport=new h.default(this.getViewportDao(),this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.selectionManager=new u.SelectionManager(this.wtSettings.getSetting("selections")),this.wtEvent=new o.default(r,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager),this.wtOverlays=new i.default(this,r,this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.exportSettingsAsClassNames(),this.findOriginalHeaders()}exportSettingsAsClassNames(){const e=[],t=[];(0,d.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(r,n)=>{this.wtSettings.getSetting(n).length&&t.push(r),e.push(r)}),(0,p.removeClass)(this.wtTable.wtRootElement.parentNode,e),(0,p.addClass)(this.wtTable.wtRootElement.parentNode,t)}getOverlayByName(e){var t;if(!s.CLONE_TYPES.includes(e))return null;const r=e.replace(/_([a-z])/g,e=>e[1].toUpperCase());return null!==(t=this.wtOverlays[`${r}Overlay`])&&void 0!==t?t:null}getViewportDao(){const e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}t.default=g},1368(e,t,r){"use strict";t.__esModule=!0;var n=r(2783),o=r(11526),i=r(36306),s=r(81136),a=r(67787);function l(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function h(e,t){return e.get(u(e,t))}function c(e,t,r){return e.set(u(e,t),r),r}function u(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,p=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakMap,C=new WeakMap,w=new WeakMap,y=new WeakMap,v=new WeakMap,E=new WeakMap;t.default=class{constructor(e,t,r,n,o,i){let s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;l(this,d,void 0),l(this,p,void 0),l(this,g,void 0),l(this,f,void 0),l(this,m,void 0),l(this,C,void 0),l(this,w,void 0),l(this,y,void 0),l(this,v,[null,null]),l(this,E,[null,null]),c(d,this,r),c(p,this,t),c(g,this,o),c(f,this,i),c(m,this,s),c(C,this,n),c(w,this,e),this.registerEvents()}registerEvents(){h(C,this).addEventListener(h(g,this).holder,"contextmenu",e=>this.onContextMenu(e)),h(C,this).addEventListener(h(g,this).TABLE,"mouseover",e=>this.onMouseOver(e)),h(C,this).addEventListener(h(g,this).TABLE,"mouseout",e=>this.onMouseOut(e));const e=()=>{h(C,this).addEventListener(h(g,this).holder,"touchstart",e=>this.onTouchStart(e)),h(C,this).addEventListener(h(g,this).holder,"touchend",e=>this.onTouchEnd(e)),this.momentumScrolling||(this.momentumScrolling={}),h(C,this).addEventListener(h(g,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(C,this).addEventListener(h(g,this).holder,"mouseup",e=>this.onMouseUp(e)),h(C,this).addEventListener(h(g,this).holder,"mousedown",e=>this.onMouseDown(e))};(0,s.isMobileBrowser)()?e():((0,i.isTouchSupported)()&&e(),t())}selectedCellWasTouched(e){const t=this.parentCell(e).coords;if(h(y,this)&&t){const[e,r]=[t.row,h(y,this).from.row],[n,o]=[t.col,h(y,this).from.col];return e===r&&n===o}return!1}parentCell(e){const t={},r=h(g,this).TABLE,o=(0,n.closestDown)(e,["TD","TH"],r);return o?(t.coords=h(g,this).getCoords(o),t.TD=o):(0,n.hasClass)(e,"wtBorder")&&(0,n.hasClass)(e,"current")?(t.coords=h(f,this).getFocusSelection().cellRange.highlight,t.TD=h(g,this).getCell(t.coords)):(0,n.hasClass)(e,"wtBorder")&&(0,n.hasClass)(e,"area")&&h(f,this).getAreaSelection().cellRange&&(t.coords=h(f,this).getAreaSelection().cellRange.to,t.TD=h(g,this).getCell(t.coords)),t}onMouseDown(e){const t=h(p,this).rootDocument.activeElement,r=(0,o.partial)(n.getParent,e.target),i=e.target;if(!["TD","TH"].includes(t.nodeName)&&(i===t||r(0)===t||r(1)===t))return;const s=this.parentCell(i);(0,n.hasClass)(i,"corner")?h(d,this).getSetting("onCellCornerMouseDown",e,i):s.TD&&h(d,this).has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,s.coords,s.TD),(0===e.button||this.touchApplied)&&s.TD&&(h(E,this)[0]=s.TD,clearTimeout(h(v,this)[0]),h(v,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(g,this).TABLE,r=(0,n.closestDown)(e.target,["TD","TH"],t),o=h(m,this)||this;r&&r!==o.lastMouseOver&&(0,n.isChildOf)(r,t)&&(o.lastMouseOver=r,this.callListener("onCellMouseOver",e,h(g,this).getCoords(r),r))}onMouseOut(e){if(!h(d,this).has("onCellMouseOut"))return;const t=h(g,this).TABLE,r=(0,n.closestDown)(e.target,["TD","TH"],t),o=(0,n.closestDown)(e.relatedTarget,["TD","TH"],t),i=h(m,this)||this;r&&r!==o&&(0,n.isChildOf)(r,t)&&(this.callListener("onCellMouseOut",e,h(g,this).getCoords(r),r),null===o&&(i.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,n.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(v,this)[1]),h(v,this)[1]=setTimeout(()=>{h(E,this)[1]=null},500)))}onTouchStart(e){c(y,this,h(f,this).getFocusSelection().cellRange),this.touchApplied=!0,this.onMouseDown(e)}onTouchEnd(e){var t;const r=e.target,n=null===(t=this.parentCell(r))||void 0===t?void 0:t.coords,o=(0,a.isDefined)(n)&&n.row>=0&&n.col>=0;if(e.cancelable&&o&&h(d,this).getSetting("isDataViewInstance")){const t=["A","BUTTON","INPUT"];(0,s.isIOS)()&&((0,s.isChromeWebKit)()||(0,s.isFirefoxWebKit)())&&this.selectedCellWasTouched(r)&&!t.includes(r.tagName)?e.preventDefault():this.selectedCellWasTouched(r)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}callListener(e,t,r,n){const o=h(d,this).getSettingPure(e);o&&o(t,r,n,h(w,this).call(this))}destroy(){clearTimeout(h(v,this)[0]),clearTimeout(h(v,this)[1]),h(C,this).destroy()}}},9612(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(45171)),i=n(r(35542));class s{constructor(e){e instanceof i.default?this._wot=e:this._initFromSettings(e)}_initFromSettings(e){e.facade=e=>{const t=new s(e);return()=>t},this._wot=new o.default(e.table,e)}get guid(){return this._wot.guid}get rootDocument(){return this._wot.domBindings.rootDocument}get rootWindow(){return this._wot.domBindings.rootWindow}get wtSettings(){return this._wot.wtSettings}get cloneSource(){return this._wot.cloneSource}get cloneOverlay(){return this._wot.cloneOverlay}get selectionManager(){return this._wot.selectionManager}get wtViewport(){return this._wot.wtViewport}get wtOverlays(){return this._wot.wtOverlays}get wtTable(){return this._wot.wtTable}get wtEvent(){return this._wot.wtEvent}get wtScroll(){return this._wot.wtScroll}get drawn(){return this._wot.drawn}set drawn(e){this._wot.drawn=e}get activeOverlayName(){return this._wot.activeOverlayName}get drawInterrupted(){return this._wot.drawInterrupted}set drawInterrupted(e){this._wot.drawInterrupted=e}get lastMouseOver(){return this._wot.lastMouseOver}set lastMouseOver(e){this._wot.lastMouseOver=e}get momentumScrolling(){return this._wot.momentumScrolling}set momentumScrolling(e){this._wot.momentumScrolling=e}get touchApplied(){return this._wot.touchApplied}set touchApplied(e){this._wot.touchApplied=e}get domBindings(){return this._wot.domBindings}get eventListeners(){return this._wot.eventListeners}set eventListeners(e){this._wot.eventListeners=e}get eventManager(){return this._wot.eventManager}createCellCoords(e,t){return this._wot.createCellCoords(e,t)}createCellRange(e,t,r){return this._wot.createCellRange(e,t,r)}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}getCell(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}scrollViewport(e,t,r){return this._wot.scrollViewport(e,t,r)}scrollViewportHorizontally(e,t){return this._wot.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wot.scrollViewportVertically(e,t)}getViewport(){return this._wot.getViewport()}getOverlayName(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}getOverlayByName(e){return this._wot.getOverlayByName(e)}exportSettingsAsClassNames(){return this._wot.exportSettingsAsClassNames()}update(e,t){return this._wot.wtSettings.update(e,t),this}getSetting(e,t,r,n,o){return this._wot.wtSettings.getSetting(e,t,r,n,o)}hasSetting(e){return this._wot.wtSettings.hasSetting(e)}destroy(){this._wot.destroy()}}t.default=s},78897(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.default=class{constructor(e,t,r){(0,o.default)(this,"offset",void 0),(0,o.default)(this,"total",void 0),(0,o.default)(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=r}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleRowHeadedColumnToSourceColumn(e){return this.renderedToSource(this.offsettedTH(e))}sourceColumnToVisibleRowHeadedColumn(e){return this.unOffsettedTH(this.sourceToRendered(e))}}},84975(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.default=class{constructor(e,t,r){(0,o.default)(this,"offset",void 0),(0,o.default)(this,"total",void 0),(0,o.default)(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=r}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleColHeadedRowToSourceRow(e){return this.renderedToSource(this.offsettedTH(e))}sourceRowToVisibleColHeadedRow(e){return this.unOffsettedTH(this.sourceToRendered(e))}}},95004(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(18601);t.ViewportColumnsCalculator=o.ViewportColumnsCalculator,t.ViewportRowsCalculator=o.ViewportRowsCalculator,t.DEFAULT_COLUMN_WIDTH=o.DEFAULT_COLUMN_WIDTH;var i=n(r(25531));t.CellCoords=i.default;var s=n(r(7980));t.CellRange=s.default;var a=n(r(9612));t.default=a.default,t.Core=a.default;var l=r(95505);t.Selection=l.Selection,t.HIGHLIGHT_ACTIVE_HEADER_TYPE=l.ACTIVE_HEADER_TYPE,t.HIGHLIGHT_AREA_TYPE=l.AREA_TYPE,t.HIGHLIGHT_FOCUS_TYPE=l.FOCUS_TYPE,t.HIGHLIGHT_FILL_TYPE=l.FILL_TYPE,t.HIGHLIGHT_HEADER_TYPE=l.HEADER_TYPE,t.HIGHLIGHT_ROW_TYPE=l.ROW_TYPE,t.HIGHLIGHT_COLUMN_TYPE=l.COLUMN_TYPE,t.HIGHLIGHT_CUSTOM_SELECTION_TYPE=l.CUSTOM_SELECTION_TYPE;var h=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(r(86222));t.Renderer=h;var c=r(25628);t.OrderView=c.OrderView,t.SharedOrderView=c.SharedOrderView;var u=r(77429);t.NodesPool=u.NodesPool;var d=r(23695);t.getListenersCounter=d.getListenersCounter},74767(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=r(81185),a=r(28065),l=r(31854),h=n(r(48611)),c=r(17134),u=r(15141);t.Overlay=class{constructor(e,t,r,n,a){(0,o.default)(this,"wtSettings",null),(0,s.defineGetter)(this,"wot",e,{writable:!1}),this.domBindings=a,this.facadeGetter=t,this.wtSettings=n;const{TABLE:l,hider:h,spreader:c,holder:u,wtRootElement:d}=this.wot.wtTable;this.instance=this.wot,this.type=r,this.mainTableScrollableElement=null,this.TABLE=l,this.hider=h,this.spreader=c,this.holder=u,this.wtRootElement=d,this.trimmingContainer=(0,i.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,i.getTrimmingContainer)(this.hider.parentNode.parentNode)}updateMainScrollableElement(){const{wtTable:e}=this.wot,{rootWindow:t}=this.domBindings,r=t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow");this.mainTableScrollableElement="hidden"===r||"clip"===r?this.wot.wtTable.holder:(0,i.getScrollableElement)(e.TABLE)}getRelativeCellPosition(e,t,r){if(!1===this.clone.wtTable.holder.contains(e))return void(0,a.warn)(`The provided element is not a child of the ${this.type} overlay`);const n=this.mainTableScrollableElement===this.domBindings.rootWindow,o=r<this.wtSettings.getSetting("fixedColumnsStart"),i=t<this.wtSettings.getSetting("fixedRowsTop"),s=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),l=this.clone.wtTable.spreader,h={start:this.getRelativeStartPosition(l),top:l.offsetTop},c={start:this.getRelativeStartPosition(e),top:e.offsetTop};let u=null;return u=n?this.getRelativeCellPositionWithinWindow(i,o,c,h):this.getRelativeCellPositionWithinHolder(i,s,o,c,h),u}getRelativeStartPosition(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}getRelativeCellPositionWithinWindow(e,t,r,n){const o=this.wot.wtTable.wtRootElement.getBoundingClientRect();let s=0,a=0;if(t){let e=o.left;this.isRtl()&&(e=this.domBindings.rootWindow.innerWidth-(o.left+o.width+(0,i.getScrollbarWidth)())),s=e<=0?-1*e:0}else s=n.start;if(e){a=this.clone.wtTable.TABLE.getBoundingClientRect().top-o.top}else a=n.top;return{start:r.start+s,top:r.top+a}}getRelativeCellPositionWithinHolder(e,t,r,n,o){const i=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),s=this.wot.wtOverlays.topOverlay.getScrollPosition();let a=0,l=0;if(r||(a=i-o.start),t){const e=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+e.top}else e||(l=s-o.top);return{start:n.start-a,top:n.top-l}}makeClone(){-1===l.CLONE_TYPES.indexOf(this.type)&&(0,u.throwWithCause)(`Clone type "${this.type}" is not supported.`);const{wtTable:e,wtSettings:t}=this.wot,{rootDocument:r,rootWindow:n}=this.domBindings,o=r.createElement("div"),s=r.createElement("table"),a=e.wtRootElement.parentNode;o.className=`${l.CLONE_CLASS_NAMES.get(this.type)} handsontable`,o.setAttribute("dir",this.isRtl()?"rtl":"ltr"),o.style.position="absolute",o.style.top=0,o.style.overflow="visible",this.isRtl()?o.style.right=0:o.style.left=0,t.getSetting("ariaTags")&&(0,i.setAttribute)(o,[(0,c.A11Y_PRESENTATION)()]),s.className=e.TABLE.className;e.TABLE.getAttribute("role")&&s.setAttribute("role",e.TABLE.getAttribute("role")),o.appendChild(s),a.appendChild(o);const d=this.wtSettings.getSetting("preventOverflow"),p=n.getComputedStyle(a).getPropertyValue("overflow");return!0===d||"horizontal"===d&&this.type===l.CLONE_TOP||"vertical"===d&&this.type===l.CLONE_INLINE_START?this.mainTableScrollableElement=n:this.mainTableScrollableElement="hidden"===p||"clip"===p?e.holder:(0,i.getScrollableElement)(e.TABLE),new h.default(s,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selectionManager:this.wot.selectionManager})}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()}}},64584(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=n(r(64388)),a=r(74767),l=r(31854),h=r(15141);class c extends a.Overlay{constructor(e,t,r,n){super(e,t,l.CLONE_BOTTOM,r,n),(0,o.default)(this,"cachedFixedRowsBottom",-1),this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom")}createTable(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new s.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 r=0;const n=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||n&&"vertical"===n?(r=this.getScrollPosition(),this.repositionOverlay()):(r=this.getOverlayOffset(),t.style.bottom=`${r}px`);const o=this.adjustHeaderBordersPosition(r);return this.adjustElementsSize(),o}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:r}=this.domBindings,n=this.clone.wtTable.holder.parentNode;let o=0;t.hasVerticalScroll()||(o+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(o+=(0,i.getScrollbarWidth)(r)),n.style.bottom=`${o}px`}setScrollPosition(e){const{rootWindow:t}=this.domBindings,r=this.mainTableScrollableElement;let n=!1;if(r===t&&e!==t.scrollY){const e=t.scrollY;t.scrollTo((0,i.getWindowScrollLeft)(t),top),n=e!==t.scrollY}else if(e!==r.scrollTop){const t=r.scrollTop;r.scrollTop=e,n=t!==r.scrollTop}return n}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const{wtTable:r,wtSettings:n}=this.wot,o=n.getSetting("stylesHandler").getDefaultRowHeight();let i=e,s=0;for(;i<t;){const e=r.getRowHeight(i);s+=void 0===e?o:e,i+=1}return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:r,rootWindow:n}=this.domBindings,o=this.clone.wtTable.holder.parentNode.style,s=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==n||"horizontal"===s){let n=t.getWorkspaceWidth();t.hasVerticalScroll()&&(n-=(0,i.getScrollbarWidth)(r)),n=Math.min(n,e.wtRootElement.scrollWidth),o.width=`${n}px`}else o.width="";this.clone.wtTable.holder.style.width=o.width;let a=(0,i.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(a=0),o.height=`${a}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");"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`:0===e?this.spreader.style.top="0":(0,h.throwWithCause)("Incorrect value of the rowsRenderCalculator"),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 r=this.getTableParentOffset();const n=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder;let o=0;t&&n.offsetHeight!==n.clientHeight&&(o=(0,i.getScrollbarWidth)(this.domBindings.rootDocument)),t?(r+=this.sumCellSizes(0,e+1),r-=this.wot.wtViewport.getViewportHeight(),r+=1):r+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),r+=o,this.setScrollPosition(r)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,i.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let r=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight(),t=e-this.clone.wtTable.getTotalHeight(),n=this.domBindings.rootDocument.documentElement.clientHeight;r=Math.max(this.getTableParentOffset()-this.getScrollPosition()-n+e,0),r>t&&(r=0)}return r}adjustHeaderBordersPosition(e){const t=this.wtSettings.getSetting("fixedRowsBottom"),r=this.cachedFixedRowsBottom!==t,n=this.wtSettings.getSetting("columnHeaders");let o=!1;if((r||0===t)&&n.length>0){const t=this.wot.wtTable.holder.parentNode,r=(0,i.hasClass)(t,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,i.addClass)(t,"innerBorderBottom"),o=!r):((0,i.removeClass)(t,"innerBorderBottom"),o=r)}return o}}t.BottomOverlay=c},26408(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(2783),i=n(r(57268)),s=r(74767),a=r(31854);class l extends s.Overlay{constructor(e,t,r,n,o,i){super(e,t,a.CLONE_BOTTOM_INLINE_START_CORNER,r,n),this.bottomOverlay=o,this.inlineStartOverlay=i}createTable(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new i.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("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(),r=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]=`${e}px`,t.style.bottom=`${r}px`}else(0,o.resetCssTransform)(t),this.repositionOverlay();let r=(0,o.outerHeight)(this.clone.wtTable.TABLE);const n=(0,o.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(r=0),t.style.height=`${r}px`,t.style.width=`${n}px`,!1}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:r}=this.domBindings,n=this.clone.wtTable.holder.parentNode;let i=0;t.hasVerticalScroll()||(i+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(i+=(0,o.getScrollbarWidth)(r)),n.style.bottom=`${i}px`}}t.BottomInlineStartCornerOverlay=l},31854(e,t){"use strict";t.__esModule=!0;const r=t.CLONE_TOP="top",n=t.CLONE_BOTTOM="bottom",o=t.CLONE_INLINE_START="inline_start",i=t.CLONE_TOP_INLINE_START_CORNER="top_inline_start_corner",s=t.CLONE_BOTTOM_INLINE_START_CORNER="bottom_inline_start_corner";t.CLONE_TYPES=[r,n,o,i,s],t.CLONE_CLASS_NAMES=new Map([[r,`ht_clone_${r}`],[n,`ht_clone_${n}`],[o,`ht_clone_${o} ht_clone_left`],[i,`ht_clone_${i} ht_clone_top_left_corner`],[s,`ht_clone_${s} ht_clone_bottom_left_corner`]])},54347(e,t,r){"use strict";t.__esModule=!0;var n={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0},o=r(26408);t.BottomInlineStartCornerOverlay=o.BottomInlineStartCornerOverlay;var i=r(64584);t.BottomOverlay=i.BottomOverlay;var s=r(94356);t.InlineStartOverlay=s.InlineStartOverlay;var a=r(74767);t.Overlay=a.Overlay;var l=r(63040);t.TopInlineStartCornerOverlay=l.TopInlineStartCornerOverlay;var h=r(23136);t.TopOverlay=h.TopOverlay;var c=r(31854);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))})},94356(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(2783),i=n(r(55568)),s=r(74767),a=r(95505),l=r(31854),h=r(15141);class c extends s.Overlay{constructor(e,t,r,n){super(e,t,l.CLONE_INLINE_START,r,n)}createTable(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new i.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wtTable:e}=this.wot;if(!this.needFullRender||!this.shouldBeRendered()||!e.holder.parentNode)return!1;const{rootWindow:t}=this.domBindings,r=this.clone.wtTable.holder.parentNode,n=this.wtSettings.getSetting("preventOverflow");let i=0;this.trimmingContainer!==t||n&&"horizontal"===n?(i=this.getScrollPosition(),(0,o.resetCssTransform)(r)):(i=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,o.setOverlayPosition)(r,`${i}px`,"0px"));const s=this.adjustHeaderBordersPosition(i);return this.adjustElementsSize(),s}setScrollPosition(e){const{rootWindow:t}=this.domBindings;let r=!1;this.isRtl()&&(e=-e);const n=this.mainTableScrollableElement;if(n===t&&e!==t.scrollX){const n=t.scrollX;t.scrollTo(e,(0,o.getWindowScrollTop)(t)),r=n!==t.scrollX}else if(e!==n.scrollLeft){const t=n.scrollLeft;n.scrollLeft=e,r=t!==n.scrollLeft}return r}onScroll(){this.wtSettings.getSetting("onScrollVertically")}sumCellSizes(e,t){const r=this.wtSettings.getSetting("defaultColumnWidth");let n=e,o=0;for(;n<t;)o+=this.wot.wtTable.getColumnWidth(n)||r,n+=1;return o}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:r,rootWindow:n}=this.domBindings,i=this.clone.wtTable.holder.parentNode.style,s=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==n||"vertical"===s){let n=t.getWorkspaceHeight();t.hasHorizontalScroll()&&(n-=(0,o.getScrollbarWidth)(r)),n=Math.min(n,e.wtRootElement.scrollHeight),i.height=`${n}px`}else i.height="";this.clone.wtTable.holder.style.height=i.height;const a=(0,o.outerWidth)(this.clone.wtTable.TABLE);i.width=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,a.getCornerStyle)(this.wot),r=this.wot.selectionManager.getFocusSelection()?parseInt(t.width,10)/2:0;this.clone.wtTable.hider.style.height=this.hider.style.height,e.style.height=e.parentNode.style.height,e.style.width=`${parseInt(e.parentNode.style.width,10)+r}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.spreader.style[t]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:0===e?this.spreader.style[t]="0":(0,h.throwWithCause)("Incorrect value of the columnsRenderCalculator"),this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`:this.clone.wtTable.spreader.style.top=""}scrollTo(e,t){const{wtSettings:r}=this,n=r.getSetting("rowHeaders"),i=r.getSetting("fixedColumnsStart"),s=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,a=0===i&&n.length>0&&!(0,o.hasClass)(s.parentNode,"innerBorderInlineStart")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1)}return t&&s.offsetWidth!==s.clientWidth&&(h=(0,o.getScrollbarWidth)(this.domBindings.rootDocument)),t?(l+=this.sumCellSizes(0,e+1),l-=this.wot.wtViewport.getViewportWidth(),l+=a):l+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),l+=h,(0,o.getMaximumScrollLeft)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderHorizontallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){let e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}getScrollPosition(){return Math.abs((0,o.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let r=0;if(this.trimmingContainer===e&&(!t||"horizontal"!==t)){r=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0);r>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(r=0)}return r}adjustHeaderBordersPosition(e){const{wtSettings:t}=this,r=this.wot.wtTable.holder.parentNode,n=t.getSetting("rowHeaders"),i=t.getSetting("fixedColumnsStart"),s=t.getSetting("totalRows"),a="vertical"===t.getSetting("preventOverflow");s?(0,o.removeClass)(r,"emptyRows"):(0,o.addClass)(r,"emptyRows");let l=!1;if(!a)if(i&&!n.length)(0,o.addClass)(r,"innerBorderLeft innerBorderInlineStart");else if(!i&&n.length){const t=(0,o.hasClass)(r,"innerBorderInlineStart");e?((0,o.addClass)(r,"innerBorderLeft innerBorderInlineStart"),l=!t):((0,o.removeClass)(r,"innerBorderLeft innerBorderInlineStart"),l=t)}return l}}t.InlineStartOverlay=c},23136(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=n(r(66460)),a=r(74767),l=r(95505),h=r(31854),c=r(15141);class u extends a.Overlay{constructor(e,t,r,n){super(e,t,h.CLONE_TOP,r,n),(0,o.default)(this,"cachedFixedRowsTop",-1),this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop")}createTable(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new s.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode,{rootWindow:t}=this.domBindings,r=this.wtSettings.getSetting("preventOverflow");let n=0,o=!1;if(this.trimmingContainer!==t||r&&"vertical"===r)n=this.getScrollPosition(),(0,i.resetCssTransform)(e);else{const{wtTable:t}=this.wot,r=t.hider.getBoundingClientRect();o=Math.ceil(r.bottom)===e.offsetHeight,n=this.getOverlayOffset(),(0,i.setOverlayPosition)(e,"0px",`${n}px`)}const s=this.adjustHeaderBordersPosition(n,o);return this.adjustElementsSize(),s}setScrollPosition(e){const{rootWindow:t}=this.domBindings,r=this.mainTableScrollableElement;let n=!1;if(r===t&&e!==t.scrollY){const r=t.scrollY;t.scrollTo((0,i.getWindowScrollLeft)(t),e),n=r!==t.scrollY}else if(e!==r.scrollTop){const t=r.scrollTop;r.scrollTop=e,n=t!==r.scrollTop}return n}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const r=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let n=e,o=0;for(;n<t;){const e=this.wot.wtTable.getRowHeight(n);o+=void 0===e?r:e,n+=1}return o}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:r,rootWindow:n}=this.domBindings,o=this.clone.wtTable.holder.parentNode.style,s=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==n||"horizontal"===s){let n=t.getWorkspaceWidth();t.hasVerticalScroll()&&(n-=(0,i.getScrollbarWidth)(r)),n=Math.min(n,e.wtRootElement.scrollWidth),o.width=`${n}px`}else o.width="";this.clone.wtTable.holder.style.width=o.width;let a=(0,i.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(a=0),o.height=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,l.getCornerStyle)(this.wot),r=this.wot.selectionManager.getFocusSelection()?parseInt(t.height,10)/2:0;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=`${parseInt(e.parentNode.style.height,10)+r}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`:0===e?this.spreader.style.top="0":(0,c.throwWithCause)("Incorrect value of the rowsRenderCalculator"),this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){const{wot:r,wtSettings:n}=this,o=(r.cloneSource?r.cloneSource:r).wtTable.holder,s=n.getSetting("columnHeaders"),a=0===n.getSetting("fixedRowsTop")&&s.length>0&&!(0,i.hasClass)(o.parentNode,"innerBorderTop")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1)}if(t&&o.offsetHeight!==o.clientHeight&&(h=(0,i.getScrollbarWidth)(this.domBindings.rootDocument)),t){const t=n.getSetting("fixedRowsBottom"),o=n.getSetting("totalRows");l+=this.sumCellSizes(0,e+1),l-=r.wtViewport.getViewportHeight()-this.sumCellSizes(o-t,o),l+=1,l+=a}else l+=this.sumCellSizes(n.getSetting("fixedRowsTop"),e);return l+=h,(0,i.getMaximumScrollTop)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderVerticallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,i.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let r=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();r=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0),r>e&&(r=0)}return r}adjustHeaderBordersPosition(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wtSettings:r}=this,n=this.wot.wtTable.holder.parentNode,o=r.getSetting("totalColumns"),s="horizontal"===r.getSetting("preventOverflow");o?(0,i.removeClass)(n,"emptyColumns"):(0,i.addClass)(n,"emptyColumns");let a=!1;if(!t&&!s){const t=r.getSetting("fixedRowsTop"),o=this.cachedFixedRowsTop!==t,s=r.getSetting("columnHeaders");if((o||0===t)&&s.length>0){const t=(0,i.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=r.getSetting("fixedRowsTop"),e||0===r.getSetting("totalRows")?((0,i.addClass)(n,"innerBorderTop"),a=!t):((0,i.removeClass)(n,"innerBorderTop"),a=t)}}return a}}t.TopOverlay=u},63040(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=n(r(77612)),a=r(74767),l=r(31854);class h extends a.Overlay{constructor(e,t,r,n,i,s){super(e,t,l.CLONE_TOP_INLINE_START_CORNER,r,n),(0,o.default)(this,"topOverlay",void 0),(0,o.default)(this,"inlineStartOverlay",void 0),this.topOverlay=i,this.inlineStartOverlay=s}createTable(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new s.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),r=this.topOverlay.getOverlayOffset();(0,i.setOverlayPosition)(e,`${t}px`,`${r}px`)}else(0,i.resetCssTransform)(e);let t=(0,i.outerHeight)(this.clone.wtTable.TABLE);const r=(0,i.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${r}px`,!1}}t.TopInlineStartCornerOverlay=h},35355(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=r(36306),a=r(27637),l=r(60755),h=r(81136),c=r(28065),u=r(54347);function d(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function p(e,t,r){return e.set(f(e,t),r),r}function g(e,t){return e.get(f(e,t))}function f(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var m=new WeakMap,C=new WeakMap,w=new WeakMap,y=new WeakMap;t.default=class{constructor(e,t,r,n,a,l){(0,o.default)(this,"wot",null),d(this,m,[]),(0,o.default)(this,"topOverlay",null),(0,o.default)(this,"bottomOverlay",null),(0,o.default)(this,"inlineStartOverlay",null),(0,o.default)(this,"topInlineStartCornerOverlay",null),(0,o.default)(this,"bottomInlineStartCornerOverlay",null),(0,o.default)(this,"browserLineHeight",void 0),(0,o.default)(this,"wtSettings",null),d(this,C,!1),d(this,w,0),d(this,y,null),(0,o.default)(this,"resizeObserver",new ResizeObserver(e=>{(0,s.requestAnimationFrame)(()=>{Array.isArray(e)&&e.length&&(p(w,this,g(w,this)+1),300===g(w,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!==g(y,this)&&clearTimeout(g(y,this)),p(y,this,setTimeout(()=>{p(w,this,0)},100)),this.wtSettings.getSetting("onContainerElementResize"))})})),this.wot=e,this.wtSettings=n,this.domBindings=r,this.facadeGetter=t,this.wtTable=l;const{rootDocument:h,rootWindow:u}=this.domBindings;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,i.getScrollbarWidth)(h);const f=u.getComputedStyle(l.wtRootElement.parentNode).getPropertyValue("overflow"),v="hidden"===f||"clip"===f;this.scrollableElement=v?l.holder:(0,i.getScrollableElement)(l.TABLE),this.initOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=u.scrollX,this.lastScrollY=u.scrollY}getOverlays(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[...g(m,this)];return e&&t.push(this.wtTable),t}initBrowserLineHeight(){const{rootWindow:e,rootDocument:t}=this.domBindings,r=e.getComputedStyle(t.body),n=parseInt(r.lineHeight,10),o=1.2*parseInt(r.fontSize,10);this.browserLineHeight=n||o}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),p(m,this,[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay])}beforeDraw(){p(C,this,g(m,this).reduce((e,t)=>t.hasRenderingStateChanged()||e,!1)),g(m,this).forEach(e=>e.updateStateOfRendering("before"))}afterDraw(){this.syncScrollWithMaster(),g(m,this).forEach(e=>{const t=e.hasRenderingStateChanged();e.updateStateOfRendering("after"),t&&!e.needFullRender&&e.reset()})}refreshAll(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}registerListeners(){const{rootDocument:e,rootWindow:t}=this.domBindings,{mainTableScrollableElement:r}=this.topOverlay,{mainTableScrollableElement:n}=this.inlineStartOverlay;this.eventManager.addEventListener(e.documentElement,"keydown",e=>this.onKeyDown(e)),this.eventManager.addEventListener(e.documentElement,"keyup",()=>this.onKeyUp()),this.eventManager.addEventListener(e,"visibilitychange",()=>this.onKeyUp()),this.eventManager.addEventListener(r,"scroll",e=>this.onTableScroll(e),{passive:!0}),r!==n&&this.eventManager.addEventListener(n,"scroll",e=>this.onTableScroll(e),{passive:!0});const o=t.devicePixelRatio&&t.devicePixelRatio>1,i=this.scrollableElement===t,a=this.wtSettings.getSetting("preventWheel"),l={passive:i};(a||o||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",e=>this.onCloneWheel(e,a),l);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,a),l)}),this.eventManager.addEventListener(t,"resize",()=>{(0,s.requestAnimationFrame)(()=>{clearTimeout(c),this.wtSettings.getSetting("onWindowResize"),c=setTimeout(()=>{p(w,this,0)},200)})}),i||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}onTableScroll(e){const t=this.domBindings.rootWindow,r=this.inlineStartOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(n!==t&&o!==t&&!e.target.contains(n)||r!==t&&o!==t&&!e.target.contains(r))||this.syncScrollPositions(e)}onCloneWheel(e,t){if(e.ctrlKey)return;const{rootWindow:r}=this.domBindings,n=this.inlineStartOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target,s=o!==r&&i!==r&&!i.contains(o),a=n!==r&&i!==r&&!i.contains(n);if(this.keyPressed&&(s||a)||this.scrollableElement===r)return;const l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==r&&l)&&e.preventDefault()}onKeyDown(e){this.keyPressed=(0,l.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}onKeyUp(){this.keyPressed=!1}translateMouseWheelToScroll(e){let t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,r=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(r+=r*this.browserLineHeight,t+=t*this.browserLineHeight);const n=this.scrollVertically(t),o=this.scrollHorizontally(r);return n||o}scrollVertically(e){const t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}scrollHorizontally(e){const t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}syncScrollPositions(){if(this.destroyed)return;const e=this.topOverlay.clone.wtTable.holder,t=this.inlineStartOverlay.clone.wtTable.holder;let r=this.scrollableElement.scrollLeft,n=this.scrollableElement.scrollTop;if(this.wot.wtViewport.isHorizontallyScrollableByWindow()&&(r=this.scrollableElement.scrollX),this.wot.wtViewport.isVerticallyScrollableByWindow()&&(n=this.scrollableElement.scrollY),this.horizontalScrolling=this.lastScrollX!==r,this.verticalScrolling=this.lastScrollY!==n,this.lastScrollX=r,this.lastScrollY=n,this.horizontalScrolling){e.scrollLeft=r;const t=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;t&&(t.scrollLeft=r)}this.verticalScrolling&&(t.scrollTop=n),this.refreshAll()}syncScrollWithMaster(){if(!g(C,this))return;const e=this.topOverlay.mainTableScrollableElement,{scrollLeft:t,scrollTop:r}=e;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=r),p(C,this,!1)}updateMainScrollableElements(){this.eventManager.clearEvents(!0),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();const{wtTable:e}=this,{rootWindow:t}=this.domBindings,r=t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement="hidden"===r||"clip"===r?e.holder:(0,i.getScrollableElement)(e.TABLE),this.registerListeners()}destroy(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateLastSpreaderSize()&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}updateLastSpreaderSize(){const e=this.wtTable.spreader,t=e.clientWidth,r=e.clientHeight,n=t!==this.spreaderLastSize.width||r!==this.spreaderLastSize.height;return n&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=r),n}adjustElementsSize(){const{wtViewport:e}=this.wot,{wtTable:t}=this,{rootWindow:r}=this.domBindings,n=this.scrollableElement===r,o=this.wtSettings.getSetting("totalColumns"),i=this.wtSettings.getSetting("totalRows"),s=e.getRowHeaderWidth(),a=e.getColumnHeaderHeight(),l=this.wtSettings.getSetting("externalRowCalculator")?0:1,h=a+this.topOverlay.sumCellSizes(0,i)+l,c=s+this.inlineStartOverlay.sumCellSizes(0,o),u=t.hider.style,d=(()=>!n&&this.scrollableElement.scrollTop>Math.max(0,h-t.holder.clientHeight))()?1:0,p=(()=>!n&&this.scrollableElement.scrollLeft>Math.max(0,c-t.holder.clientWidth))()?1:0;u.width=`${c+p}px`,u.height=`${h+d}px`,this.topOverlay.adjustElementsSize(),this.inlineStartOverlay.adjustElementsSize(),this.bottomOverlay.adjustElementsSize()}expandHiderVerticallyBy(e){const{wtTable:t}=this;t.hider.style.height=`${parseInt(t.hider.style.height,10)+e}px`}expandHiderHorizontallyBy(e){const{wtTable:t}=this;t.hider.style.width=`${parseInt(t.hider.style.width,10)+e}px`}applyToDOM(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}getParentOverlay(e){if(!e)return null;const t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];let r=null;return(0,a.arrayEach)(t,t=>{t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(r=t.clone)}),r}syncOverlayTableClassNames(){const e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,a.arrayEach)(t,t=>{t&&(t.clone.wtTable.TABLE.className=e.className)})}}},50966(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(77429);t.BaseRenderer=class{constructor(e,t){(0,o.default)(this,"nodesPool",null),(0,o.default)(this,"nodeType",void 0),(0,o.default)(this,"rootNode",void 0),(0,o.default)(this,"table",null),(0,o.default)(this,"renderedNodes",0),this.nodesPool="string"==typeof e?new i.NodesPool(e):null,this.nodeType=e,this.rootNode=t}setTable(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}adjust(){}render(){}}},13511(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=r(25628),a=r(50966),l=r(17134);class h extends a.BaseRenderer{constructor(){super("TD"),(0,o.default)(this,"orderViews",new WeakMap),(0,o.default)(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new s.SharedOrderView(e,e=>this.nodesPool.obtain(this.sourceRowIndex,e),this.nodeType),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,columnsToRender:t,rows:r,rowHeaders:n}=this.table;for(let a=0;a<e;a++){const e=this.table.renderedRowToSource(a),h=r.getRenderedNode(a);this.sourceRowIndex=e;const c=this.obtainOrderView(h),u=n.obtainOrderView(h);c.prependView(u).setSize(t).setOffset(0).start();for(let r=0;r<t;r++){c.render();const t=this.table.renderedColumnToSource(r),n=c.getCurrentNode();var o,s;if((0,i.hasClass)(n,"hide")||(n.className=""),n.removeAttribute("style"),n.removeAttribute("dir"),(0,i.removeAttribute)(n,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.cellRenderer(e,t,n),this.table.isAriaEnabled())(0,i.setAttribute)(n,[...n.hasAttribute("role")?[]:[(0,l.A11Y_GRIDCELL)()],(0,l.A11Y_TABINDEX)(-1),(0,l.A11Y_COLINDEX)(t+(null!==(o=null===(s=this.table.rowUtils)||void 0===s||null===(s=s.dataAccessObject)||void 0===s?void 0:s.rowHeaders.length)&&void 0!==o?o:0)+1)])}c.end()}}}t.CellsRenderer=h},14649(e,t,r){"use strict";t.__esModule=!0;var n=r(50966),o=r(28065),i=r(27033),s=r(2783);let a=!1;class l extends n.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnsToRender:e,rowHeadersCount:t}=this.table,r=e+t;for(;this.renderedNodes<r;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>r;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}render(){this.adjust();const{columnsToRender:e,rowHeadersCount:t}=this.table;!a&&e>1e3&&(a=!0,(0,o.warn)(i.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),r=this.table.columnUtils.getHeaderWidth(t);this.rootNode.childNodes[e].style.width=`${r}px`}for(let r=0;r<e;r++){const e=this.table.renderedColumnToSource(r),n=this.table.columnUtils.getWidth(e);this.rootNode.childNodes[r+t].style.width=`${n}px`}const r=this.rootNode.firstChild;r&&(0,s.addClass)(r,"rowHeader")}}t.ColGroupRenderer=l},9466(e,t,r){"use strict";t.__esModule=!0;var n=r(2783),o=r(50966),i=r(17134);class s extends o.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnHeadersCount:e,rowHeadersCount:t}=this.table;let r=this.rootNode.firstChild;if(e){const{columnsToRender:n}=this.table,o=n+t;for(let t=0,n=e;t<n;t++){for(r=this.rootNode.childNodes[t],r||(r=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(r)),this.renderedNodes=r.childNodes.length;this.renderedNodes<o;)r.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>o;)r.removeChild(r.lastChild),this.renderedNodes-=1}const i=this.rootNode.childNodes.length;if(i>e)for(let t=e;t<i;t++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,n.empty)(r)}render(){const{columnHeadersCount:e}=this.table;this.table.isAriaEnabled()&&(0,n.setAttribute)(this.rootNode,[(0,i.A11Y_ROWGROUP)()]);for(let t=0;t<e;t+=1){const{columnHeaderFunctions:e,columnsToRender:r,rowHeadersCount:o}=this.table,s=this.rootNode.childNodes[t];this.table.isAriaEnabled()&&(0,n.setAttribute)(s,[(0,i.A11Y_ROW)(),(0,i.A11Y_ROWINDEX)(t+1)]);for(let a=-1*o;a<r;a+=1){const r=this.table.renderedColumnToSource(a),l=s.childNodes[a+o];l.className="",l.removeAttribute("style"),(0,n.removeAttribute)(l,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,n.setAttribute)(l,[(0,i.A11Y_COLINDEX)(a+1+this.table.rowHeadersCount),(0,i.A11Y_TABINDEX)(-1),(0,i.A11Y_COLUMNHEADER)(),...a>=0?[(0,i.A11Y_SCOPE_COL)()]:[(0,i.A11Y_GRIDCELL_BUTTON)(),(0,i.A11Y_LABEL)("Select whole grid")]]),e[t](r,l,t)}}}}t.ColumnHeadersRenderer=s},86222(e,t,r){"use strict";t.__esModule=!0;var n=r(61018);t.RowHeadersRenderer=n.RowHeadersRenderer;var o=r(9466);t.ColumnHeadersRenderer=o.ColumnHeadersRenderer;var i=r(14649);t.ColGroupRenderer=i.ColGroupRenderer;var s=r(1973);t.RowsRenderer=s.RowsRenderer;var a=r(13511);t.CellsRenderer=a.CellsRenderer;var l=r(60418);t.TableRenderer=l.TableRenderer;t.Renderer=class{constructor(){let{TABLE:e,THEAD:t,COLGROUP:r,TBODY:h,rowUtils:c,columnUtils:u,cellRenderer:d,stylesHandler:p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.renderer=new l.TableRenderer(e,{cellRenderer:d,stylesHandler:p}),this.renderer.setRenderers({rowHeaders:new n.RowHeadersRenderer,columnHeaders:new o.ColumnHeadersRenderer(t),colGroup:new i.ColGroupRenderer(r),rows:new s.RowsRenderer(h),cells:new a.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()}}},61018(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(25628),s=r(50966),a=r(2783),l=r(17134);class h extends s.BaseRenderer{constructor(){super("TH"),(0,o.default)(this,"orderViews",new WeakMap),(0,o.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,rowHeaderFunctions:t,rowHeadersCount:r,rows:n,cells:o}=this.table;for(let i=0;i<e;i++){const e=this.table.renderedRowToSource(i),s=n.getRenderedNode(i);this.sourceRowIndex=e;const h=this.obtainOrderView(s),c=o.obtainOrderView(s);h.appendView(c).setSize(r).setOffset(0).start();for(let n=r-1;n>=0;n--){h.render();const r=h.getCurrentNode();r.className="",r.removeAttribute("style"),(0,a.removeAttribute)(r,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,a.setAttribute)(r,[(0,l.A11Y_ROWHEADER)(),(0,l.A11Y_SCOPE_ROW)(),(0,l.A11Y_COLINDEX)(n+1),(0,l.A11Y_TABINDEX)(-1)]),t[n](e,r,n)}h.end()}}}t.RowHeadersRenderer=h},1973(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(50966),s=r(28065),a=r(27033),l=r(25628),h=r(2783),c=r(17134);const u="ht__row_even",d="ht__row_odd";let p=!1;class g extends i.BaseRenderer{constructor(e){super("TR",e),(0,o.default)(this,"orderView",void 0),this.orderView=new l.OrderView(e,e=>this.nodesPool.obtain(e),this.nodeType)}getRenderedNode(e){return this.orderView.getNode(e)}render(){const{rowsToRender:e}=this.table;!p&&e>1e3&&(p=!0,(0,s.warn)(a.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 n=0;n<e;n++){this.orderView.render();const e=this.orderView.getCurrentNode(),o=this.table.renderedRowToSource(n);var t,r;if(this.table.isAriaEnabled())(0,h.setAttribute)(e,[(0,c.A11Y_ROW)(),(0,c.A11Y_ROWINDEX)(o+(null!==(t=null===(r=this.table.rowUtils)||void 0===r||null===(r=r.dataAccessObject)||void 0===r?void 0:r.columnHeaders.length)&&void 0!==t?t:0)+1)]);(o+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=g},60418(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(this,"rootNode",void 0),(0,o.default)(this,"rootDocument",void 0),(0,o.default)(this,"rowHeaders",null),(0,o.default)(this,"columnHeaders",null),(0,o.default)(this,"colGroup",null),(0,o.default)(this,"rows",null),(0,o.default)(this,"cells",null),(0,o.default)(this,"rowFilter",null),(0,o.default)(this,"columnFilter",null),(0,o.default)(this,"rowUtils",null),(0,o.default)(this,"columnUtils",null),(0,o.default)(this,"rowsToRender",0),(0,o.default)(this,"columnsToRender",0),(0,o.default)(this,"rowHeaderFunctions",[]),(0,o.default)(this,"rowHeadersCount",0),(0,o.default)(this,"columnHeaderFunctions",[]),(0,o.default)(this,"columnHeadersCount",0),(0,o.default)(this,"cellRenderer",void 0),(0,o.default)(this,"activeOverlayName",void 0),(0,o.default)(this,"stylesHandler",void 0),this.rootNode=e,this.rootDocument=this.rootNode.ownerDocument,this.cellRenderer=t,this.stylesHandler=r}setActiveOverlayName(e){this.activeOverlayName=e}setAxisUtils(e,t){this.rowUtils=e,this.columnUtils=t}setViewportSize(e,t){this.rowsToRender=e,this.columnsToRender=t}setFilters(e,t){this.rowFilter=e,this.columnFilter=t}setHeaderContentRenderers(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}setRenderers(){let{rowHeaders:e,columnHeaders:t,colGroup:r,rows:n,cells:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),r.setTable(this),n.setTable(this),o.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=r,this.rows=n,this.cells=o}renderedRowToSource(e){return this.rowFilter.renderedToSource(e)}renderedColumnToSource(e){return this.columnFilter.renderedToSource(e)}isAriaEnabled(){return this.rowUtils.wtSettings.getSetting("ariaTags")}render(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();const{rowsToRender:e,rows:t}=this;for(let r=0;r<e;r++){const e=t.getRenderedNode(r),n=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(r),o=n.getHeightByOverlayName(t,this.activeOverlayName),i=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=o?o-i+"px":""}}}}},39311(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=r(81185);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakSet;function c(e){const{wtSettings:t,inlineStartOverlay:r,wtTable:n,wtViewport:o,totalColumns:s,rootWindow:a}=this.dataAccessObject;if(r.mainTableScrollableElement===a){let l=null;if(t.getSetting("rtlMode")){const e=n.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(e.right-t)}else{l=(0,i.offset)(n.wtRootElement).left}const h=Math.abs((0,i.getScrollLeft)(a,a));if(l>h){const t=(0,i.innerWidth)(a);let n=o.getRowHeaderWidth();for(let o=1;o<=s;o++)if(n+=r.sumCellSizes(o-1,o),l+n-h>=t){e=o-2;break}}}return e}function u(e){const{topOverlay:t,wtTable:r,wtViewport:n,totalRows:o,rootWindow:s}=this.dataAccessObject;if(t.mainTableScrollableElement===s){const a=(0,i.offset)(r.wtRootElement),l=(0,i.getScrollTop)(s,s);if(a.top>l){const r=(0,i.innerHeight)(s);let h=n.getColumnHeaderHeight();for(let n=1;n<=o;n++)if(h+=t.sumCellSizes(n-1,n),a.top+h-l>=r){e=n-2;break}}}return e}t.default=class{constructor(e){a(this,h),(0,o.default)(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,r){if(e.col<0||e.row<0)return!1;const n=this.scrollViewportHorizontally(e.col,t),o=this.scrollViewportVertically(e.row,r);return n||o}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:r,totalColumns:n}=this.dataAccessObject;if(!r)return!1;const o=(0,s.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,o),!Number.isInteger(e)||e<0||e>n)return!1;t=o.value;const{fixedColumnsStart:i,inlineStartOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&e<i)return!1;const h=this.getFirstVisibleColumn(),c=this.getLastVisibleColumn();let u=!1;return(l&&(e<h||e>c)||!l)&&(u=a.scrollTo(e,l?e>=this.getLastPartiallyVisibleColumn():"end"===t)),u}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:r,totalRows:n}=this.dataAccessObject;if(!r)return!1;const o=(0,s.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,o),!Number.isInteger(e)||e<0||e>n)return!1;t=o.value;const{fixedRowsBottom:i,fixedRowsTop:a,topOverlay:l}=this.dataAccessObject,h="auto"===t;if(h&&(e<a||e>n-i-1))return!1;const c=this.getFirstVisibleRow(),u=this.getLastVisibleRow();let d=!1;return(h&&(e<c||e>u)||!h)&&(d=l.scrollTo(e,h?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}}},96884(e,t,r){"use strict";t.__esModule=!0;var n=r(2783),o=r(82063),i=r(81185),s=r(81136),a=r(78209);const l="ht-border-style-";t.default=class{constructor(e,t){t&&(this.eventManager=e.eventManager,this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle=(0,a.getCornerStyle)(this.instance),this.cornerCenterPointOffset=-Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())}registerListeners(){const e=this.wot.rootDocument.body;this.eventManager.addEventListener(e,"mousedown",()=>this.onMouseDown()),this.eventManager.addEventListener(e,"mouseup",()=>this.onMouseUp());for(let e=0,t=this.main.childNodes.length;e<t;e++){const t=this.main.childNodes[e];this.eventManager.addEventListener(t,"mouseenter",t=>this.onMouseEnter(t,this.main.childNodes[e]))}}onMouseDown(){this.mouseDown=!0}onMouseUp(){this.mouseDown=!1}onMouseEnter(e,t){if(!this.mouseDown||!this.wot.getSetting("hideBorderOnMouseDownOver"))return;e.preventDefault(),(0,o.stopImmediatePropagation)(e);const r=this,n=this.wot.rootDocument.body,i=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(n,"mousemove",function e(o){var s;((s=o).clientY<Math.floor(i.top)||s.clientY>Math.ceil(i.top+i.height)||s.clientX<Math.floor(i.left)||s.clientX>Math.ceil(i.left+i.width))&&(r.eventManager.removeEventListener(n,"mousemove",e),t.style.display="block")})}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const r=["top","start","bottom","end","corner"];let n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(let o=0;o<5;o++){const i=r[o],s=t.createElement("div"),a=t=>this.settings[i]&&this.settings[i][t]?this.settings[i][t]:e.border[t];s.className=`wtBorder ${this.settings.className||""}`,this.settings[i]&&this.settings[i].hide&&(s.className+=" hidden"),n=s.style;const h=a("style");h?(["start","end"].includes(i)?s.className+=` ${l}${h}-vertical`:s.className+=` ${l}${h}-horizontal`,n.setProperty("--ht-custom-border-size",`${a("width")}px`),n.setProperty("--ht-custom-border-color",a("color"))):n.backgroundColor=a("color"),n.height=`${a("width")}px`,n.width=`${a("width")}px`,this.main.appendChild(s)}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,s.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:o}=this.wot;let i=o.bordersHolder;i||(i=t.createElement("div"),i.className="htBorders",o.bordersHolder=i,o.spreader.appendChild(i)),i.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,r=t.getSetting("stylesHandler"),n=r.getCSSVariableValue("cell-mobile-handle-size"),o=r.getCSSVariableValue("cell-mobile-handle-border-radius"),s=r.getCSSVariableValue("cell-mobile-handle-background-color"),a=r.getCSSVariableValue("cell-mobile-handle-background-opacity"),l=r.getCSSVariableValue("cell-mobile-handle-border-width"),h=r.getCSSVariableValue("cell-mobile-handle-border-color");this.selectionHandles={top:e.createElement("DIV"),topHitArea:e.createElement("DIV"),bottom:e.createElement("DIV"),bottomHitArea:e.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};const c={position:"absolute",height:"40px",width:"40px","border-radius":`${parseInt(40/1.5,10)}px`};(0,i.objectEach)(c,(e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e});const u={position:"absolute",height:`${n}px`,width:`${n}px`,"border-radius":`${o}px`,background:`color-mix(in srgb, ${s} ${a}, transparent)`,border:`${l}px solid ${h}`};(0,i.objectEach)(u,(e,t)=>{this.selectionHandles.styles.bottom[t]=e,this.selectionHandles.styles.top[t]=e}),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}isPartRange(e,t){const r=this.wot.selectionManager.getAreaSelection();return!(!r.cellRange||e===r.cellRange.to.row&&t===r.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,r,n,o,i){const s=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:h,bottomHitArea:c}=this.selectionHandles.styles,u=parseInt(a.borderWidth,10),d=parseInt(a.width,10),p=parseInt(l.width,10),g=this.wot.wtTable.getWidth(),f=this.wot.wtTable.getHeight();a.top=`${parseInt(r-d-1,10)}px`,a[s]=`${parseInt(n-d-1,10)}px`,l.top=`${parseInt(r-p/4*3,10)}px`,l[s]=`${parseInt(n-p/4*3,10)}px`;const m=Math.min(parseInt(n+o,10),g-d-2*u),C=Math.min(parseInt(n+o-p/4,10),g-p-2*u);h[s]=`${m}px`,c[s]=`${C}px`;const w=Math.min(parseInt(r+i,10),f-d-2*u),y=Math.min(parseInt(r+i-p/4,10),f-p-2*u);h.top=`${w}px`,c.top=`${y}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(h.display="none",c.display="none"):(h.display="block",c.display="block")):(a.display="none",h.display="none",l.display="none",c.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(a.zIndex="9999",l.zIndex="9999"):(a.zIndex="",l.zIndex="")}appear(e){if(this.disabled)return;let[t,r,o,i]=e;if(t<0&&o<0||r<0&&i<0)return void this.disappear();const{wtTable:a,rootDocument:l,rootWindow:h}=this.wot,c=t!==o||r!==i,u=a.getFirstRenderedRow(),d=a.getLastRenderedRow(),p=a.getFirstRenderedColumn(),g=a.getLastRenderedColumn();if(p<0&&g<0||u<0&&d<0)return void this.disappear();let f;if(c){if(r=Math.max(r,p),i=Math.min(i,g),t=Math.max(t,u),o=Math.min(o,d),i<r||o<t)return void this.disappear();f=a.getCell(this.wot.createCellCoords(t,r))}else if(f=a.getCell(this.wot.createCellCoords(t,r)),!(0,n.isHTMLElement)(f))return void this.disappear();const m=c?a.getCell(this.wot.createCellCoords(o,i)):f,C=(0,n.offset)(f),w=c?(0,n.offset)(m):C,y=(0,n.offset)(a.TABLE),v=C.top,E=C.left,S=this.wot.wtSettings.getSetting("rtlMode");let b=0,R=0;if(S){const e=(0,n.outerWidth)(a.TABLE),t=(0,n.outerWidth)(f),r=h.innerWidth-y.left-e;R=E+t-w.left,b=h.innerWidth-E-t-r-1}else R=w.left+(0,n.outerWidth)(m)-E,b=E-y.left-1;if(this.isEntireColumnSelected(t,o)){const e=t,n=this.getDimensionsFromHeader("columns",r,i,e,y);let o=null;n&&([o,b,R]=n),o&&(f=o)}let T=v-y.top-1,_=w.top+(0,n.outerHeight)(m)-v;if(this.isEntireRowSelected(r,i)){const e=r,n=this.getDimensionsFromHeader("rows",t,o,e,y);let i=null;n&&([i,T,_]=n),i&&(f=i)}const M=h.getComputedStyle(f);parseInt(M.borderTopWidth,10)>0&&(T+=1,_=_>0?_-1:0),parseInt(M[S?"borderRightWidth":"borderLeftWidth"],10)>0&&(b+=1,R=R>0?R-1:0);const A=S?"right":"left",I=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${T}px`,this.topStyle[A]=`${b}px`,this.topStyle.width=`${R+I}px`,this.topStyle.display="block",this.startStyle.top=`${T}px`,this.startStyle[A]=`${b}px`,this.startStyle.height=`${_+I}px`,this.startStyle.display="block",this.bottomStyle.top=`${T+_-parseInt(this.bottomStyle.height,10)+I}px`,this.bottomStyle[A]=`${b}px`,this.bottomStyle.width=`${R+I}px`,this.bottomStyle.display="block",this.endStyle.top=`${T}px`,this.endStyle[A]=`${b+R-parseInt(this.endStyle.width,10)+I}px`,this.endStyle.height=`${_+I}px`,this.endStyle.display="block";let N=this.settings.border.cornerVisible;N="function"==typeof N?N(this.settings.layerLevel):N;const O=this.wot.getSetting("onModifyGetCellCoords",o,i,!1,"render");let[x,k]=[o,i];if(O&&Array.isArray(O)&&([,,x,k]=O),(0,s.isMobileBrowser)()||!N||this.isPartRange(x,k))this.cornerStyle.display="none";else{this.cornerStyle.top=T+_+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[A]=b+R+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle.borderRightWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderLeftWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderBottomWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";let e=(0,n.getTrimmingContainer)(a.TABLE);const t=e===h;t&&(e=l.documentElement);const r=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,s=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),c=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(i===this.wot.getSetting("totalColumns")-1){const o=t?m.getBoundingClientRect().left:m.offsetLeft;let i=!1,a=0;if(S?(a=o-parseInt(this.cornerDefaultStyle.width,10)/2,i=a<0):(a=o+(0,n.outerWidth)(m)+parseInt(this.cornerDefaultStyle.width,10)/2,i=a>=(0,n.innerWidth)(e)),i){const e=Math.floor(b+R+this.cornerCenterPointOffset-s-r);(0,n.addClass)(this.corner,"wtCornerInlineEndEdge"),this.cornerStyle[A]=e-1+"px"}}else(0,n.removeClass)(this.corner,"wtCornerInlineEndEdge");if(o===this.wot.getSetting("totalRows")-1){if((t?m.getBoundingClientRect().top:m.offsetTop)+(0,n.outerHeight)(m)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,n.innerHeight)(e)){const e=Math.floor(T+_+this.cornerCenterPointOffset-c-r);(0,n.addClass)(this.corner,"wtCornerBlockEndEdge"),this.cornerStyle.top=e-1+"px"}}else(0,n.removeClass)(this.corner,"wtCornerBlockEndEdge");this.cornerStyle.display="block"}(0,s.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(o,i,T,b,R,_)}isEntireColumnSelected(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}isEntireRowSelected(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}getDimensionsFromHeader(e,t,r,o,i){const{wtTable:s}=this.wot,a=s.wtRootElement.parentNode;let l=null,h=null,c=null,u=null,d=null,p=null,g=null,f=null;switch(e){case"rows":l=function(){return s.getRowHeader(...arguments)},h=function(){return(0,n.outerHeight)(...arguments)},c="ht__selection--rows",p="top";break;case"columns":l=function(){return s.getColumnHeader(...arguments)},h=function(){return(0,n.outerWidth)(...arguments)},c="ht__selection--columns",p="left"}if(a.classList.contains(c)){const e=this.wot.getSetting("columnHeaders").length;if(g=l(t,e-o),f=l(r,e-o),!g||!f)return!1;const s=(0,n.offset)(g),a=(0,n.offset)(f);return g&&f&&(u=s[p]-i[p]-1,d=a[p]+h(f)-s[p]),[g,u,d]}return!1}changeBorderStyle(e,t){const r=this[e].style,o=t[e];!o||o.hide?(0,n.addClass)(this[e],"hidden"):((0,n.hasClass)(this[e],"hidden")&&(0,n.removeClass)(this[e],"hidden"),r.backgroundColor=o.color,"top"!==e&&"bottom"!==e||(r.height=`${o.width}px`),"start"!==e&&"end"!==e||(r.width=`${o.width}px`))}changeBorderToDefaultStyle(e){const t=1,r="#000",n=this[e].style;n.backgroundColor=r,n.width=`${t}px`,n.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,n.addClass)(this[e],"hidden"):(0,n.removeClass)(this[e],"hidden")}disappear(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,s.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)}}},78209(e,t){"use strict";t.__esModule=!0;t.getCornerStyle=e=>{const t=e.wtSettings.getSetting("stylesHandler"),r=t.getCSSVariableValue("cell-autofill-size"),n=t.getCSSVariableValue("cell-autofill-border-width"),o=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:r,height:r,borderWidth:n,borderStyle:"solid",borderColor:o})}},94392(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"},95505(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o={SelectionManager:!0,Selection:!0},i=n(r(95939));t.Selection=i.default;var s=r(94392);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))});var a=r(78209);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))});var l=r(86938);t.SelectionManager=l.SelectionManager},86938(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(2783),i=r(70695),s=n(r(96884));function a(e,t,r){l(e,t),t.set(e,r)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,r){return e.set(u(e,t),r),r}function u(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,p=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakMap,C=new WeakMap,w=new WeakSet;function y(){const e=h(f,this).get(h(d,this)),t=h(d,this).wtSettings.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(t))for(let r=0;r<t.length;r++)e.add(t[r]);e.forEach(e=>{var t,r;const n=h(d,this).wtTable.TABLE.querySelectorAll(`.${e}`);let i=[];Array.isArray(null===(t=h(p,this).options)||void 0===t?void 0:t.cellAttributes)&&(i=h(p,this).options.cellAttributes.map(e=>e[0])),Array.isArray(null===(r=h(p,this).options)||void 0===r?void 0:r.headerAttributes)&&(i=[...i,...h(p,this).options.headerAttributes.map(e=>e[0])]);for(let t=0,r=n.length;t<r;t++)(0,o.removeClass)(n[t],e),(0,o.removeAttribute)(n[t],i)}),e.clear()}t.SelectionManager=class{constructor(e){var t,r;l(t=this,r=w),r.add(t),a(this,d,void 0),a(this,p,void 0),a(this,g,new i.SelectionScanner),a(this,f,new WeakMap),a(this,m,new WeakSet),a(this,C,new Map),c(p,this,e)}setActiveOverlay(e){return c(d,this,e),h(g,this).setActiveOverlay(h(d,this)),h(f,this).has(h(d,this))||h(f,this).set(h(d,this),new Set),this}getFocusSelection(){return null!==h(p,this)?h(p,this).getFocus():null}getAreaSelection(){return null!==h(p,this)?h(p,this).createLayeredArea():null}getBorderInstance(e){if(!e.settings.border)return null;if(h(C,this).has(e)){const t=h(C,this).get(e);if(t.has(h(d,this)))return t.get(h(d,this));const r=new s.default(h(d,this),e.settings);return t.set(h(d,this),r),r}const t=new s.default(h(d,this),e.settings);return h(C,this).set(e,new Map([[h(d,this),t]])),t}getBorderInstances(e){var t,r;return Array.from(null!==(t=null===(r=h(C,this).get(e))||void 0===r?void 0:r.values())&&void 0!==t?t:[])}destroyBorders(e){h(C,this).get(e).forEach(e=>e.destroy()),h(C,this).delete(e)}render(e){if(null===h(p,this))return;e&&u(w,this,y).call(this);const t=Array.from(h(p,this)),r=new Map,n=new Map;for(let e=0;e<t.length;e++){const o=t[e],{className:i,headerAttributes:s,createLayers:a,selectionType:l}=o.settings;h(m,this).has(o)||(h(m,this).add(o),o.addLocalHook("destroy",()=>this.destroyBorders(o)));const c=this.getBorderInstance(o);if(o.isEmpty()){null==c||c.disappear();continue}if(i){h(g,this).setActiveSelection(o).scan().forEach(e=>{if(r.has(e)){const t=r.get(e);t.has(i)&&!0===a?t.set(i,t.get(i)+1):t.set(i,1)}else r.set(e,new Map([[i,1]]));s&&(n.has(e)||n.set(e,[]),"TH"===e.nodeName&&n.get(e).push(...s))})}const u=o.getCorners();h(d,this).getSetting("onBeforeDrawBorders",u,l),null==c||c.appear(u)}r.forEach((e,t)=>{var r;const n=Array.from(e).map(e=>{let[t,r]=e;return 1===r?t:[t,...Array.from({length:r-1},(e,r)=>`${t}-${r+1}`)]}).flat();n.forEach(e=>h(f,this).get(h(d,this)).add(e)),(0,o.addClass)(t,n),"TD"===t.nodeName&&Array.isArray(null===(r=h(p,this).options)||void 0===r?void 0:r.cellAttributes)&&(0,o.setAttribute)(t,h(p,this).options.cellAttributes)}),Array.from(n.keys()).forEach(e=>{(0,o.setAttribute)(e,[...n.get(e)])})}}},70695(e,t,r){"use strict";t.__esModule=!0;var n=r(2783);function o(e,t,r){i(e,t),t.set(e,r)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t){return e.get(l(e,t))}function a(e,t,r){return e.set(l(e,t),r),r}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakSet;function d(e){let[t,r,o,i]=s(h,this).getCorners();if(t<0&&o<0||r<0&&i<0)return;const{wtTable:a}=s(c,this),l=t!==o||r!==i;if(r=Math.max(r,0),i=Math.max(i,0),t=Math.max(t,0),o=Math.max(o,0),l){if(r=Math.max(r,a.getFirstRenderedColumn()),i=Math.min(i,a.getLastRenderedColumn()),t=Math.max(t,a.getFirstRenderedRow()),o=Math.min(o,a.getLastRenderedRow()),i<r||o<t)return}else{const e=a.getCell(s(c,this).createCellCoords(t,r));if(!(0,n.isHTMLElement)(e))return}for(let n=t;n<=o;n+=1)for(let t=r;t<=i;t+=1)e(n,t)}function p(e){const{wtTable:t}=s(c,this),r=t.getRenderedRowsCount(),n=t.getRenderedColumnsCount();for(let o=0;o<r;o+=1){const r=t.rowFilter.renderedToSource(o);for(let o=0;o<n;o+=1)e(r,t.columnFilter.renderedToSource(o))}}t.SelectionScanner=class{constructor(){var e,t;i(e=this,t=u),t.add(e),o(this,h,void 0),o(this,c,void 0)}setActiveOverlay(e){return a(c,this,e),this}setActiveSelection(e){return a(h,this,e),this}scan(){const e=s(h,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"area"===e?this.scanCellsRange(e=>t.add(e)):"focus"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e)),this.scanCellsRange(e=>t.add(e))):"fill"===e?this.scanCellsRange(e=>t.add(e)):"header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"row"===e?(this.scanRowsInHeadersRange(e=>t.add(e)),this.scanRowsInCellsRange(e=>t.add(e))):"column"===e&&(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanColumnsInCellsRange(e=>t.add(e))),t}scanColumnsInHeadersRange(e){const[t,r,n,o]=s(h,this).getCorners(),{wtTable:i}=s(c,this),a=i.getRenderedColumnsCount(),l=i.getColumnHeadersCount();let u=0;for(let d=-i.getRowHeadersCount();d<a;d++){const a=i.columnFilter.renderedToSource(d);if(!(a<r||a>o)){for(let d=-l;d<0;d++){if(d<t||d>n)continue;const p=d+l;let g=i.getColumnHeader(a,p);const f=s(c,this).getSetting("onBeforeHighlightingColumnHeader",a,p,{selectionType:s(h,this).settings.selectionType,columnCursor:u,selectionWidth:o-r+1});null!==f&&(f!==a&&(g=i.getColumnHeader(f,p)),e(g))}u+=1}}}scanRowsInHeadersRange(e){const[t,r,n,o]=s(h,this).getCorners(),{wtTable:i}=s(c,this),a=i.getRenderedRowsCount(),l=i.getRowHeadersCount();let u=0;for(let d=-i.getColumnHeadersCount();d<a;d++){const a=i.rowFilter.renderedToSource(d);if(!(a<t||a>n)){for(let d=-l;d<0;d++){if(d<r||d>o)continue;const p=d+l;let g=i.getRowHeader(a,p);const f=s(c,this).getSetting("onBeforeHighlightingRowHeader",a,p,{selectionType:s(h,this).settings.selectionType,rowCursor:u,selectionHeight:n-t+1});null!==f&&(f!==a&&(g=i.getRowHeader(f,p)),e(g))}u+=1}}}scanCellsRange(e){const{wtTable:t}=s(c,this);l(u,this,d).call(this,(r,o)=>{const i=t.getCell(s(c,this).createCellCoords(r,o)),a=s(c,this).getSetting("onAfterDrawSelection",r,o,s(h,this).settings.layerLevel);"string"==typeof a&&(0,n.addClass)(i,a),e(i)})}scanRowsInCellsRange(e){const[t,,r]=s(h,this).getCorners(),{wtTable:n}=s(c,this);l(u,this,p).call(this,(o,i)=>{if(o>=t&&o<=r){const t=n.getCell(s(c,this).createCellCoords(o,i));e(t)}})}scanColumnsInCellsRange(e){const[,t,,r]=s(h,this).getCorners(),{wtTable:n}=s(c,this);l(u,this,p).call(this,(o,i)=>{if(i>=t&&i<=r){const t=n.getCell(s(c,this).createCellCoords(o,i));e(t)}})}}},95939(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(81185),i=n(r(27348));class s{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,o.mixin)(s,i.default);t.default=s},90675(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=r(81185),a=r(15141);t.default=class{constructor(e){(0,o.default)(this,"settings",{}),(0,o.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,s.objectEach)(this.defaults,(t,r)=>{void 0!==e[r]?this.settings[r]=e[r]:void 0===t?(0,a.throwWithCause)(`A required setting "${r}" was not provided`):this.settings[r]=t})}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,r)=>{const n=this.getSetting("data",e,t);(0,i.fastInnerText)(r,null==n?"":n)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0,stylesHandler:null}}update(e,t){return void 0===t?(0,s.objectEach)(e,(e,t)=>{this.settings[t]=e}):this.settings[e]=t,this}getSetting(e,t,r,n,o){return"function"==typeof this.settings[e]?this.settings[e](t,r,n,o):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]}}},45592(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=r(11526),a=n(r(78897)),l=n(r(84975)),h=r(86222),c=n(r(88718)),u=n(r(75918)),d=r(54347),p=r(17134),g=r(15141);t.default=class{constructor(e,t,r,n,s){(0,o.default)(this,"wtSettings",null),(0,o.default)(this,"domBindings",void 0),(0,o.default)(this,"TBODY",null),(0,o.default)(this,"THEAD",null),(0,o.default)(this,"COLGROUP",null),(0,o.default)(this,"hasTableHeight",!0),(0,o.default)(this,"hasTableWidth",!0),(0,o.default)(this,"isTableVisible",!1),(0,o.default)(this,"tableOffset",0),(0,o.default)(this,"holderOffset",0),this.domBindings=r,this.isMaster="master"===s,this.name=s,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=n,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=r.rootTable,(0,i.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const a=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(a)),this.rowUtils=new 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.wtSettings.getSetting("stylesHandler")})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.className="wtSpreader",t&&t.insertBefore(r,e),r.appendChild(e)),r.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(r,[(0,p.A11Y_PRESENTATION)()]),r}createHider(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.className="wtHider",t&&t.insertBefore(r,e),r.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(r,[(0,p.A11Y_PRESENTATION)()]),r}createHolder(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.style.position="relative",r.className="wtHolder",this.isMaster&&(0,i.setAttribute)(r,[(0,p.A11Y_TABINDEX)(-1)]),t&&t.insertBefore(r,e),this.isMaster&&(r.parentNode.className+="ht_master handsontable",r.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(r.parentNode,[(0,p.A11Y_PRESENTATION)()])),r.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(r,[(0,p.A11Y_PRESENTATION)()]),r}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:r,wtViewport:n}=this.dataAccessObject,o=t.getSetting("totalRows"),s=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),c=h.length,u=t.getSetting("columnHeaders"),p=u.length;let g=e;if(this.isMaster&&(r.beforeDraw(),this.holderOffset=(0,i.offset)(this.holder),g=n.createCalculators(g),c&&!t.getSetting("fixedColumnsStart"))){const e=r.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(g=!1)}if(g)this.isMaster&&r.refresh(!0);else{this.isMaster?this.tableOffset=(0,i.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new l.default(e,o,p),this.columnFilter=new a.default(t,s,c);let g=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),g=!0!==e.skipRender}g&&(this.tableRenderer.setHeaderContentRenderers(h,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")||n.createVisibleCalculators(),r.refresh(!1),r.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let f=!1;return this.isMaster&&(f=r.topOverlay.resetFixedPosition(),r.bottomOverlay.clone&&(f=r.bottomOverlay.resetFixedPosition()||f),f=r.inlineStartOverlay.resetFixedPosition()||f,r.topInlineStartCornerOverlay&&r.topInlineStartCornerOverlay.resetFixedPosition(),r.bottomInlineStartCornerOverlay&&r.bottomInlineStartCornerOverlay.clone&&r.bottomInlineStartCornerOverlay.resetFixedPosition()),f?(r.refreshAll(),r.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(g),this.isMaster&&r.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let r=this.wtSettings.getSetting("columnHeaders").length;const n=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let o,s,a;const l=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;r;)r-=1,o=this.getColumnHeaderHeight(r),s=this.getColumnHeader(t,r),s&&(a=(0,i.innerHeight)(s),(!o&&n<a||o<a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=a),Array.isArray(l)?null!==l[r]&&void 0!==l[r]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l[r]):isNaN(l)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l),this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]<(l[r]||l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l[r]||l))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,r=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let n=0,o=e.getSetting("columnHeaders").length;n<o;n++)if(r[n]){if(!t[n]||0===t[n].childNodes.length)return;t[n].childNodes[0].style.height=`${r[n]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(d.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let r=0;r<e;r++){const e=this.rowFilter.renderedToSource(r);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,r=e.col;const n=this.wtSettings.getSetting("onModifyGetCellCoords",t,r,!this.isMaster,"render");if(n&&Array.isArray(n)&&([t,r]=n),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(r))return-3;if(this.isColumnAfterRenderedColumns(r))return-4;const o=this.getRow(t);!o&&t>=0&&(0,g.throwWithCause)("TR was expected to be rendered but is not");const i=o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(r)];return!i&&r>=0&&(0,g.throwWithCause)("TD or TH was expected to be rendered but is not"),i}getRow(e){let t=null,r=null;var n,o;e<0?(t=null===(n=this.rowFilter)||void 0===n?void 0:n.sourceRowToVisibleColHeadedRow(e),r=this.THEAD):(t=null===(o=this.rowFilter)||void 0===o?void 0:o.sourceToRendered(e),r=this.TBODY);return void 0!==t&&void 0!==r&&(!(r.childNodes.length<t+1)&&r.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=this.THEAD.childNodes[t];return null==r?void 0:r.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],r=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach(e=>{const n=e.childNodes[r];n&&t.push(n)}),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const r=this.rowFilter.sourceToRendered(e),n=r<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):r,o=(r<0?this.THEAD:this.TBODY).childNodes[n];return null==o?void 0:o.childNodes[t]}getRowHeaders(e){const t=[],r=this.wtSettings.getSetting("rowHeaders").length;for(let n=0;n<r;n++){const r=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],o=null==r?void 0:r.childNodes[n];o&&t.push(o)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,i.closest)(t,["TD","TH"])),null===t)return null;const r=t.parentNode;if(!r)return null;const n=r.parentNode;let o=(0,i.index)(r),s=t.cellIndex;if((0,i.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===n.nodeName&&(o-=n.childNodes.length);else if((0,i.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){o=this.wtSettings.getSetting("totalRows")-n.childNodes.length+o}else n===this.THEAD?o=this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter&&(o=this.rowFilter.renderedToSource(o));(0,i.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?s=this.columnFilter.offsettedTH(s):this.columnFilter&&(s=this.columnFilter.visibleRowHeadedColumnToSourceColumn(s));const a=this.wtSettings.getSetting("onModifyGetCoordsElement",o,s);return a&&Array.isArray(a)&&([o,s]=a),this.wot.createCellCoords(o,s)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),r=e*t.getDefaultRowHeight(),n=(0,i.innerHeight)(this.TBODY)-1,o=t.areCellsBorderBox(),s=o?i.outerHeight:i.innerHeight,a=o?0:1,l=o?1:0;let h,c,u,d,p;if(r!==n||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,u=this.rowFilter.renderedToSource(e),h=this.getRowHeight(u),d=this.getTrForRow(u),p=d.querySelector("th");const r=0===u?l:0;c=p?s(p):s(d)-a,(!h&&t.getDefaultRowHeight()<c-r||h<c)&&(o||(c+=1),this.dataAccessObject.wtViewport.oversizedRows[u]=c)}}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,i.outerWidth)(this.TABLE)}getHeight(){return(0,i.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,i.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,i.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,i.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,s.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}}},64388(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(45592)),i=n(r(352)),s=n(r(72470)),a=r(81185),l=r(54347);class h extends o.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_BOTTOM)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,s.default);t.default=h},57268(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(45592)),i=n(r(352)),s=n(r(55407)),a=r(81185),l=r(54347);class h extends o.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,s.default);t.default=h},55568(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(45592)),i=n(r(45064)),s=n(r(55407)),a=r(81185),l=r(54347);class h extends o.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_INLINE_START)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,s.default);t.default=h},85117(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(2783),i=n(r(45592)),s=n(r(45064)),a=n(r(72470)),l=r(81185);class h extends i.default{constructor(e,t,r,n){super(e,t,r,n,"master")}alignOverlaysWithTrimmingContainer(){const e=(0,o.getTrimmingContainer)(this.wtRootElement),{rootWindow:t}=this.domBindings;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{const r=e.parentElement,n=(0,o.getStyle)(e,"height",t),i=(0,o.getStyle)(e,"overflow",t),s=this.holder.style,{scrollWidth:a,scrollHeight:l}=e;let h=e.offsetWidth,c=e.offsetHeight;if(r&&["auto","hidden","scroll","clip"].includes(i)){const n=e.cloneNode(!1);n.style.overflow="auto",n.style.position="absolute",e.nextElementSibling?r.insertBefore(n,e.nextElementSibling):r.appendChild(n);const o=parseInt(t.getComputedStyle(n).height,10);r.removeChild(n),0===o&&(c=0)}c=Math.min(c,l),s.height="auto"===n?"auto":`${c}px`,h=Math.min(h,a),s.width=`${h}px`,s.overflow="",this.hasTableHeight="auto"===s.height||c>0,this.hasTableWidth=h>0}this.isTableVisible=(0,o.isVisible)(this.TABLE)}markOversizedColumnHeaders(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject,r="master",n=e.getSetting("columnHeaders").length;if(n&&!t.hasOversizedColumnHeadersMarked[r]){const o=e.getSetting("rowHeaders").length,i=this.getRenderedColumnsCount();for(let e=0;e<n;e++)for(let e=-1*o;e<i;e++)this.markIfOversizedColumnHeader(e);t.hasOversizedColumnHeadersMarked[r]=!0}}}(0,l.mixin)(h,s.default),(0,l.mixin)(h,a.default);t.default=h},72470(e,t,r){"use strict";t.__esModule=!0;var n=r(81185);const o={getFirstRenderedColumn(){const e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn(){const e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getFirstPartiallyVisibleColumn(){const e=this.dataAccessObject.startColumnPartiallyVisible;return null===e?-1:e},getLastRenderedColumn(){const e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn(){const e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getLastPartiallyVisibleColumn(){const e=this.dataAccessObject.endColumnPartiallyVisible;return null===e?-1:e},getRenderedColumnsCount(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount(){return this.dataAccessObject.countColumnsVisible},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,n.defineGetter)(o,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});t.default=o},45064(e,t,r){"use strict";t.__esModule=!0;var n=r(81185);const o={getFirstRenderedRow(){const e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow(){const e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getFirstPartiallyVisibleRow(){const e=this.dataAccessObject.startRowPartiallyVisible;return null===e?-1:e},getLastRenderedRow(){const e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow(){const e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getLastPartiallyVisibleRow(){const e=this.dataAccessObject.endRowPartiallyVisible;return null===e?-1:e},getRenderedRowsCount(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount(){return this.dataAccessObject.countRowsVisible},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,n.defineGetter)(o,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});t.default=o},55407(e,t,r){"use strict";t.__esModule=!0;var n=r(81185);const o={getFirstRenderedColumn(){return 0===this.getRenderedColumnsCount()?-1:0},getFirstVisibleColumn(){return this.getFirstRenderedColumn()},getFirstPartiallyVisibleColumn(){return this.getFirstRenderedColumn()},getLastRenderedColumn(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn(){return this.getLastRenderedColumn()},getLastPartiallyVisibleColumn(){return this.getLastRenderedColumn()},getRenderedColumnsCount(){return Math.min(this.wtSettings.getSetting("totalColumns"),this.wtSettings.getSetting("fixedColumnsStart"))},getVisibleColumnsCount(){return this.getRenderedColumnsCount()},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,n.defineGetter)(o,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});t.default=o},352(e,t,r){"use strict";t.__esModule=!0;var n=r(81185);const o={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,n.defineGetter)(o,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=o},59560(e,t,r){"use strict";t.__esModule=!0;var n=r(81185);const o={getFirstRenderedRow(){return 0===this.getRenderedRowsCount()?-1:0},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.getRenderedRowsCount()-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsTop"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,n.defineGetter)(o,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});t.default=o},66460(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(45592)),i=n(r(59560)),s=n(r(72470)),a=r(81185),l=r(54347);class h extends o.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_TOP)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,s.default);t.default=h},77612(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(45592)),i=n(r(59560)),s=n(r(55407)),a=r(81185),l=r(54347);class h extends o.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_TOP_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,s.default);t.default=h},88718(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.default=class{constructor(e,t){(0,o.default)(this,"dataAccessObject",void 0),(0,o.default)(this,"wtSettings",void 0),(0,o.default)(this,"headerWidths",new Map),this.dataAccessObject=e,this.wtSettings=t}getWidth(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}getHeaderHeight(e){let t=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();const r=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==r&&(t=t?Math.max(t,r):r),t}getHeaderWidth(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}calculateWidths(){const{wtSettings:e}=this;let t=e.getSetting("rowHeaderWidth");if(t=e.getSetting("onModifyRowHeaderWidth",t),null!=t){const r=e.getSetting("rowHeaders").length,n=e.getSetting("defaultColumnWidth");for(let e=0;e<r;e++){let r=Array.isArray(t)?t[e]:t;r=null==r?n:r,this.headerWidths.set(e,r)}}}}},77429(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(81136);t.NodesPool=class{constructor(e){(0,o.default)(this,"nodeType",void 0),(0,o.default)(this,"pool",new Map),this.nodeType=e.toUpperCase()}setRootDocument(e){this.rootDocument=e}obtain(e,t){if((0,i.isFirefox)())return this.rootDocument.createElement(this.nodeType);const r="number"==typeof t?`${e}x${t}`:e.toString();if(this.pool.has(r))return this.pool.get(r);const n=this.rootDocument.createElement(this.nodeType);return this.pool.set(r,n),n}}},87553(e,t){"use strict";t.__esModule=!0;t.WORKING_SPACE_ALL=0,t.WORKING_SPACE_TOP=1,t.WORKING_SPACE_BOTTOM=2},25628(e,t,r){"use strict";t.__esModule=!0;var n=r(83235);t.OrderView=n.OrderView;var o=r(54762);t.SharedOrderView=o.SharedOrderView},13618(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.DifferBasedRendererAdapter=class{constructor(e){(0,o.default)(this,"leads",[]),this.orderView=e}applyCommand(e){const{rootNode:t}=this.orderView,[r,n,o,i]=e,s=this.orderView.nodesPool(n);switch(this.orderView.collectedNodes.push(s),r){case"prepend":t.insertBefore(s,t.firstChild);break;case"append":t.appendChild(s);break;case"insert_before":t.insertBefore(s,this.orderView.nodesPool(o)),t.removeChild(this.orderView.nodesPool(i));break;case"replace":t.replaceChild(s,this.orderView.nodesPool(o));break;case"remove":t.removeChild(s)}}start(){this.orderView.collectedNodes.length=0,this.leads=this.orderView.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}},74762(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(87553);t.DirectDomRendererAdapter=class{constructor(e){(0,o.default)(this,"visualIndex",0),this.orderView=e}getRenderedChildCount(){const{rootNode:e,sizeSet:t}=this.orderView;let r=0;if(this.orderView.isSharedViewSet()){let n=e.firstElementChild;for(;n;){if(n.tagName===this.orderView.childNodeType)r+=1;else if(t.isPlaceOn(i.WORKING_SPACE_TOP))break;n=n.nextElementSibling}}else r=e.childElementCount;return r}start(){this.orderView.collectedNodes.length=0,this.visualIndex=0;const{rootNode:e,sizeSet:t}=this.orderView,r=this.orderView.isSharedViewSet(),{nextSize:n}=t.getViewSize();let o=this.getRenderedChildCount();for(;o<n;){const n=this.orderView.nodesPool();!r||r&&t.isPlaceOn(i.WORKING_SPACE_BOTTOM)?e.appendChild(n):e.insertBefore(n,e.firstChild),o+=1}const s=r&&t.isPlaceOn(i.WORKING_SPACE_TOP);for(;o>n;)e.removeChild(s?e.firstChild:e.lastChild),o-=1}render(){const{rootNode:e,sizeSet:t}=this.orderView;let r=this.visualIndex;this.orderView.isSharedViewSet()&&t.isPlaceOn(i.WORKING_SPACE_BOTTOM)&&(r+=t.sharedSize.nextSize);let n=e.childNodes[r];if(n.tagName!==this.orderView.childNodeType){const t=this.orderView.nodesPool();e.replaceChild(t,n),n=t}this.orderView.collectedNodes.push(n),this.visualIndex+=1}end(){}}},31849(e,t,r){"use strict";t.__esModule=!0,t.createRendererAdapter=function(e){if((0,n.isFirefox)())return new i.DirectDomRendererAdapter(e);return new o.DifferBasedRendererAdapter(e)};var n=r(81136),o=r(13618),i=r(74762)},54762(e,t,r){"use strict";t.__esModule=!0;var n=r(83235);class o extends n.OrderView{prependView(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}appendView(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}t.SharedOrderView=o},83235(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(64664),s=r(6e4),a=r(31849);t.OrderView=class{constructor(e,t,r){(0,o.default)(this,"rootNode",void 0),(0,o.default)(this,"nodesPool",void 0),(0,o.default)(this,"sizeSet",new i.ViewSizeSet),(0,o.default)(this,"collectedNodes",[]),(0,o.default)(this,"viewDiffer",new s.ViewDiffer(this.sizeSet)),(0,o.default)(this,"childNodeType",void 0),(0,o.default)(this,"rendererAdapter",void 0),this.rootNode=e,this.nodesPool=t,this.childNodeType=r,this.rendererAdapter=(0,a.createRendererAdapter)(this)}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}start(){this.rendererAdapter.start()}render(){this.rendererAdapter.render()}end(){this.rendererAdapter.end()}}},6e4(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(87553),s=r(96423);t.ViewDiffer=class{constructor(e){(0,o.default)(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:t,nextSize:r}=e.getViewSize();let n=Math.max(r,t);if(0===n)return[];const{currentOffset:o,nextOffset:a}=e.getViewSize(),l=new s.ViewOrder(o,t),h=new s.ViewOrder(a,r),c=[];for(let t=0;t<n;t++){const o=l.get(t),s=h.get(t);if(-1===s)c.push(["remove",o]);else if(-1===o)!e.isShared()||e.isShared()&&e.isPlaceOn(i.WORKING_SPACE_BOTTOM)?c.push(["append",s]):c.push(["prepend",s]);else if(s>o)l.has(s)&&(l.remove(s),r<=l.length&&(n-=1)),c.push(["replace",s,o]);else if(s<o){const e=l.prepend(s);c.push(["insert_before",s,o,e])}else c.push(["none",s])}return c}}},96423(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.ViewOrder=class{constructor(e,t){(0,o.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()}}},52350(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.ViewSize=class{constructor(){(0,o.default)(this,"currentSize",0),(0,o.default)(this,"nextSize",0),(0,o.default)(this,"currentOffset",0),(0,o.default)(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}},64664(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(52350),s=r(87553);t.ViewSizeSet=class{constructor(){(0,o.default)(this,"size",new i.ViewSize),(0,o.default)(this,"workingSpace",s.WORKING_SPACE_ALL),(0,o.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=s.WORKING_SPACE_TOP,e.workingSpace=s.WORKING_SPACE_BOTTOM,this.sharedSize=e.getViewSize()}prepend(e){this.workingSpace=s.WORKING_SPACE_BOTTOM,e.workingSpace=s.WORKING_SPACE_TOP,this.sharedSize=e.getViewSize()}}},75918(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.default=class{constructor(e,t){(0,o.default)(this,"dataAccessObject",void 0),(0,o.default)(this,"wtSettings",void 0),this.dataAccessObject=e,this.wtSettings=t}getHeight(e){let t=this.wtSettings.getSetting("rowHeight",e);const r=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==r&&(t=void 0===t?r:Math.max(t,r)),t}getHeightByOverlayName(e,t){let r=this.wtSettings.getSetting("rowHeightByOverlayName",e,t);const n=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==n&&(r=void 0===r?n:Math.max(r,n)),r}}},45620(e,t,r){"use strict";t.__esModule=!0;var n=r(2783),o=r(81185),i=r(18601);t.default=class{constructor(e,t,r,n,o){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=r,this.wtTable=o,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 i.RenderedAllRowsCalculationType:new i.RenderedRowsCalculationType],["fullyVisible",()=>new i.FullyVisibleRowsCalculationType],["partiallyVisible",()=>new i.PartiallyVisibleRowsCalculationType]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new i.RenderedAllColumnsCalculationType:new i.RenderedColumnsCalculationType],["fullyVisible",()=>new i.FullyVisibleColumnsCalculationType],["partiallyVisible",()=>new i.PartiallyVisibleColumnsCalculationType]]),this.eventManager=n,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",()=>{this.clientHeight=this.getWorkspaceHeight()})}getWorkspaceHeight(){const e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer;let r=0;if(t===this.domBindings.rootWindow)r=e.documentElement.clientHeight;else{r=(0,n.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0}return r}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,r=this.dataAccessObject.inlineStartOverlayTrimmingContainer;let n;if(r===t){const t=this.wtSettings.getSetting("totalColumns");n=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>n&&(n=e.documentElement.clientWidth)}else n=r.clientWidth;return n}getViewportWidth(){const e=this.getWorkspaceWidth();if(e===1/0)return e;const t=this.getRowHeaderWidth();return t>0?e-t:e}hasVerticalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollHeight>e.clientHeight}const{holder:e,hider:t}=this.wtTable,r=e.clientHeight,n=t.offsetHeight;return r<n||n>this.getWorkspaceHeight()}hasHorizontalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollWidth>e.clientWidth}const{hider:e}=this.wtTable,t=e.offsetWidth,r=this.hasVerticalScroll()?(0,n.getScrollbarWidth)():0;return t>this.getWorkspaceWidth()-r}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let r=0,n=e;for(;n<t;)r+=this.wtTable.getColumnWidth(n),n+=1;return r}getWorkspaceOffset(){return(0,n.offset)(this.wtTable.holder)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,n.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 r=0,n=t.length;r<n;r++)this.rowHeaderWidth+=e[r]||e}if(isNaN(this.rowHeaderWidth))if(t.length){let e=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(let r=0,o=t.length;r<o;r++)e?(this.rowHeaderWidth+=(0,n.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:r}=this;let o,s,a=this.getViewportHeight();this.rowHeaderWidth=NaN;let l=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const h=t.getSetting("fixedRowsTop"),c=t.getSetting("fixedRowsBottom"),u=t.getSetting("totalRows");return h&&l>=0&&(s=this.dataAccessObject.topOverlay.sumCellSizes(0,h),l+=s,a-=s),c&&this.dataAccessObject.bottomOverlay.clone&&(s=this.dataAccessObject.bottomOverlay.sumCellSizes(u-c,u),a-=s),o=r.holder.clientHeight===r.holder.offsetHeight?0:(0,n.getScrollbarWidth)(this.domBindings.rootDocument),new i.ViewportRowsCalculator({calculationTypes:e.map(e=>[e,this.rowsCalculatorTypes.get(e)()]),viewportHeight:a,scrollOffset:l,totalRows:t.getSetting("totalRows"),defaultRowHeight:t.getSetting("stylesHandler").getDefaultRowHeight(),rowHeightFn:e=>r.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:o})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:r}=this;let o=this.getViewportWidth(),s=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const a=t.getSetting("fixedColumnsStart");if(a&&s>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,a);s+=e,o-=e}return r.holder.clientWidth!==r.holder.offsetWidth&&(o-=(0,n.getScrollbarWidth)(this.domBindings.rootDocument)),new i.ViewportColumnsCalculator({calculationTypes:e.map(e=>[e,this.columnsCalculatorTypes.get(e)()]),viewportWidth:o,scrollOffset:s,totalColumns:t.getSetting("totalColumns"),columnWidthFn:e=>r.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,r=this.createRowsCalculator(),n=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=r.getResultsFor("fullyVisible"),n=r.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t,n)}if(e&&!t.getSetting("renderAllColumns")){const t=n.getResultsFor("fullyVisible"),r=n.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t,r)}return e||(this.rowsRenderCalculator=r.getResultsFor("rendered"),this.columnsRenderCalculator=n.getResultsFor("rendered")),this.rowsVisibleCalculator=r.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=n.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=r.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=n.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,t){if(!this.rowsVisibleCalculator)return!1;let{startRow:r,endRow:n}=e;const{startRow:o,endRow:i}=t;if(null===r&&null===n){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isRowBeforeRenderedRows(o)&&!this.wtTable.isRowAfterRenderedRows(i))return!0;r=o,n=i}const{startRow:s,endRow:a,rowStartOffset:l,rowEndOffset:h}=this.rowsRenderCalculator,c=this.wtSettings.getSetting("totalRows")-1,u=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(u)&&u>0?(r=Math.max(0,r-Math.min(l,u)),n=Math.min(c,n+Math.min(h,u))):"auto"===u&&(r=Math.max(0,r-Math.ceil(l/2)),n=Math.min(c,n+Math.ceil(h/2))),!(r<s||r===s&&r>0)&&!(n>a||n===a&&n<c)}areAllProposedVisibleColumnsAlreadyRendered(e,t){if(!this.columnsVisibleCalculator)return!1;let{startColumn:r,endColumn:n}=e;const{startColumn:o,endColumn:i}=t;if(null===r&&null===n){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isColumnBeforeRenderedColumns(o)&&!this.wtTable.isColumnAfterRenderedColumns(i))return!0;r=o,n=i}const{startColumn:s,endColumn:a,columnStartOffset:l,columnEndOffset:h}=this.columnsRenderCalculator,c=this.wtSettings.getSetting("totalColumns")-1,u=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(u)&&u>0?(r=Math.max(0,r-Math.min(l,u)),n=Math.min(c,n+Math.min(h,u))):"auto"===u&&(r=Math.max(0,r-Math.ceil(l/2)),n=Math.min(c,n+Math.ceil(h/2))),!(r<s||r===s&&r>0)&&!(n>a||n===a&&n<c)}resetHasOversizedColumnHeadersMarked(){(0,o.objectEach)(this.hasOversizedColumnHeadersMarked,(e,t,r)=>{r[t]=void 0})}}},76745(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(92031)),i=r(75593),s=r(81663),a=r(66503),l=r(44768),h=r(19053),c=r(84502),u=r(572),d=r(58598),p=r(92840),g=r(95004);t.CellCoords=g.CellCoords,t.CellRange=g.CellRange;var f=r(56790);function m(e,t){const r=new o.default(e,t||{},i.rootInstanceSymbol);return r.init(),r}(0,h.registerCellType)(d.TextCellType),(0,c.registerRenderer)(u.baseRenderer),m.editors={BaseEditor:p.BaseEditor},m.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new o.default(e,t,i.rootInstanceSymbol)},m.DefaultSettings=(0,s.metaSchemaFactory)(),m.hooks=a.Hooks.getSingleton(),m.CellCoords=g.CellCoords,m.CellRange=g.CellRange,m.packageName="handsontable",m.buildDate="04/03/2026 12:06:21",m.version="17.0.0-rc13",m.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase},m.themes={hasTheme:f.hasTheme,getTheme:f.getTheme,getThemeNames:f.getThemeNames,getThemes:f.getThemes,registerTheme:f.registerTheme};t.default=m},43234(e,t,r){"use strict";t.__esModule=!0;var n=r(10924);t.valueGetter=n.valueGetter;var o=r(42760);t.valueSetter=o.valueSetter},10924(e,t,r){"use strict";t.__esModule=!0,t.valueGetter=function(e){return(0,n.isObject)(e)&&void 0!==e.value?e.value:e};var n=r(81185)},42760(e,t,r){"use strict";t.__esModule=!0,t.valueSetter=function(e,t,r){const o=this.getSourceDataAtCell(this.toPhysicalRow(t),this.toPhysicalColumn(r));if((0,n.isKeyValueObject)(o))return(0,n.isKeyValueObject)(e)?e:{key:e,value:e};return e};var n=r(81185)},68733(e,t,r){"use strict";t.__esModule=!0;var n=r(70213),o=r(88085),i=r(21501),s=r(43234);const a=t.CELL_TYPE="autocomplete";t.AutocompleteCellType={CELL_TYPE:a,editor:n.AutocompleteEditor,renderer:o.autocompleteRenderer,validator:i.autocompleteValidator,valueGetter:s.valueGetter,valueSetter:s.valueSetter,parsePastedValue:!0}},3273(e,t,r){"use strict";t.__esModule=!0;var n=r(68733);t.AutocompleteCellType=n.AutocompleteCellType,t.CELL_TYPE=n.CELL_TYPE},61827(e,t,r){"use strict";t.__esModule=!0;var n=r(60765);t.valueSetter=n.valueSetter},60765(e,t,r){"use strict";t.__esModule=!0,t.valueSetter=function(e,t,r){const{checkedTemplate:o,uncheckedTemplate:i}=this.getCellMeta(t,r),s=(0,n.stringify)(e),a=s===(0,n.stringify)(o),l=s===(0,n.stringify)(i);if(a||l)return a?o:i;return e};var n=r(67787)},32683(e,t,r){"use strict";t.__esModule=!0;var n=r(19028),o=r(33180),i=r(61827);const s=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:s,editor:n.CheckboxEditor,renderer:o.checkboxRenderer,valueSetter:i.valueSetter}},78796(e,t,r){"use strict";t.__esModule=!0;var n=r(32683);t.CELL_TYPE=n.CELL_TYPE,t.CheckboxCellType=n.CheckboxCellType},43549(e,t,r){"use strict";t.__esModule=!0;var n=r(75557),o=r(27537),i=r(70849);const s=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:s,editor:n.DateEditor,renderer:o.dateRenderer,validator:i.dateValidator}},95165(e,t,r){"use strict";t.__esModule=!0;var n=r(43549);t.CELL_TYPE=n.CELL_TYPE,t.DateCellType=n.DateCellType},75571(e,t,r){"use strict";t.__esModule=!0;var n=r(77553);t.valueGetter=n.valueGetter;var o=r(30093);t.valueSetter=o.valueSetter},77553(e,t,r){"use strict";t.__esModule=!0,t.valueGetter=function(e){return n.valueGetter.call(this,e)};var n=r(43234)},30093(e,t,r){"use strict";t.__esModule=!0,t.valueSetter=function(e,t,r,o){return n.valueSetter.call(this,e,t,r,o)};var n=r(43234)},75515(e,t,r){"use strict";t.__esModule=!0;var n=r(37928),o=r(34528),i=r(56694),s=r(75571);const a=t.CELL_TYPE="dropdown";t.DropdownCellType={CELL_TYPE:a,editor:n.DropdownEditor,renderer:o.dropdownRenderer,validator:i.dropdownValidator,filter:!1,strict:!0,valueGetter:s.valueGetter,valueSetter:s.valueSetter,parsePastedValue:!0}},38332(e,t,r){"use strict";t.__esModule=!0;var n=r(75515);t.CELL_TYPE=n.CELL_TYPE,t.DropdownCellType=n.DropdownCellType},17659(e,t,r){"use strict";t.__esModule=!0;var n=r(1276),o=r(93036);const i=t.CELL_TYPE="handsontable";t.HandsontableCellType={CELL_TYPE:i,editor:n.HandsontableEditor,renderer:o.handsontableRenderer}},15756(e,t,r){"use strict";t.__esModule=!0;var n=r(17659);t.CELL_TYPE=n.CELL_TYPE,t.HandsontableCellType=n.HandsontableCellType},85460(e,t,r){"use strict";t.__esModule=!0,t.registerAllCellTypes=function(){(0,m.registerCellType)(n.AutocompleteCellType),(0,m.registerCellType)(o.CheckboxCellType),(0,m.registerCellType)(i.DateCellType),(0,m.registerCellType)(s.DropdownCellType),(0,m.registerCellType)(a.HandsontableCellType),(0,m.registerCellType)(l.IntlDateCellType),(0,m.registerCellType)(h.IntlTimeCellType),(0,m.registerCellType)(c.MultiSelectCellType),(0,m.registerCellType)(u.NumericCellType),(0,m.registerCellType)(d.PasswordCellType),(0,m.registerCellType)(p.SelectCellType),(0,m.registerCellType)(g.TextCellType),(0,m.registerCellType)(f.TimeCellType)};var n=r(3273);t.AutocompleteCellType=n.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=n.CELL_TYPE;var o=r(78796);t.CheckboxCellType=o.CheckboxCellType,t.CHECKBOX_TYPE=o.CELL_TYPE;var i=r(95165);t.DateCellType=i.DateCellType,t.DATE_TYPE=i.CELL_TYPE;var s=r(38332);t.DropdownCellType=s.DropdownCellType,t.DROPDOWN_TYPE=s.CELL_TYPE;var a=r(15756);t.HandsontableCellType=a.HandsontableCellType,t.HANDSONTABLE_TYPE=a.CELL_TYPE;var l=r(3938);t.IntlDateCellType=l.IntlDateCellType,t.INTL_DATE_TYPE=l.CELL_TYPE;var h=r(23711);t.IntlTimeCellType=h.IntlTimeCellType,t.INTL_TIME_TYPE=h.CELL_TYPE;var c=r(3610);t.MultiSelectCellType=c.MultiSelectCellType,t.MULTISELECT_TYPE=c.CELL_TYPE;var u=r(26172);t.NumericCellType=u.NumericCellType,t.NUMERIC_TYPE=u.CELL_TYPE;var d=r(87932);t.PasswordCellType=d.PasswordCellType,t.PASSWORD_TYPE=d.CELL_TYPE;var p=r(86617);t.SelectCellType=p.SelectCellType,t.SELECT_TYPE=p.CELL_TYPE;var g=r(58598);t.TextCellType=g.TextCellType,t.TEXT_TYPE=g.CELL_TYPE;var f=r(95088);t.TimeCellType=f.TimeCellType,t.TIME_TYPE=f.CELL_TYPE;var m=r(19053);t.registerCellType=m.registerCellType,t.getCellType=m.getCellType,t.getRegisteredCellTypeNames=m.getRegisteredCellTypeNames,t.getRegisteredCellTypes=m.getRegisteredCellTypes,t.hasCellType=m.hasCellType},3938(e,t,r){"use strict";t.__esModule=!0;var n=r(31203);t.CELL_TYPE=n.CELL_TYPE,t.IntlDateCellType=n.IntlDateCellType},31203(e,t,r){"use strict";t.__esModule=!0;var n=r(62906),o=r(25002),i=r(4652);const s=t.CELL_TYPE="intl-date";t.IntlDateCellType={CELL_TYPE:s,editor:n.IntlDateEditor,renderer:o.intlDateRenderer,validator:i.intlDateValidator,sourceDataValidator:i.sourceDataValidator,sourceDataWarningMessage:i.SOURCE_DATA_WARNING_MESSAGE,valueFormatter:o.valueFormatter}},23711(e,t,r){"use strict";t.__esModule=!0;var n=r(21517);t.CELL_TYPE=n.CELL_TYPE,t.IntlTimeCellType=n.IntlTimeCellType},21517(e,t,r){"use strict";t.__esModule=!0;var n=r(56843),o=r(48627),i=r(67099);const s=t.CELL_TYPE="intl-time";t.IntlTimeCellType={CELL_TYPE:s,editor:n.IntlTimeEditor,renderer:o.intlTimeRenderer,validator:i.intlTimeValidator,sourceDataValidator:i.sourceDataValidator,sourceDataWarningMessage:i.SOURCE_DATA_WARNING_MESSAGE,valueFormatter:o.valueFormatter}},45297(e,t,r){"use strict";t.__esModule=!0;var n=r(71615);t.valueGetter=n.valueGetter;var o=r(13915);t.valueSetter=o.valueSetter},71615(e,t,r){"use strict";t.__esModule=!0,t.valueGetter=function(e){if(Array.isArray(e))return(0,o.arrayToString)(e.map(e=>(0,n.isKeyValueObject)(e)?e.value:e),", ");return e};var n=r(81185),o=r(27637)},13915(e,t,r){"use strict";t.__esModule=!0,t.valueSetter=function(e,t,r){if(Array.isArray(e)){const o=this.getSourceDataAtCell(this.toPhysicalRow(t),r);if(Array.isArray(o)&&o.length>0&&(0,n.isKeyValueObject)(o[0]))return e.map(e=>(0,n.isKeyValueObject)(e)?e:{key:e,value:e})}return e};var n=r(81185)},3610(e,t,r){"use strict";t.__esModule=!0;var n=r(91035);t.CELL_TYPE=n.CELL_TYPE,t.MultiSelectCellType=n.MultiSelectCellType},91035(e,t,r){"use strict";t.__esModule=!0;var n=r(75568),o=r(66704),i=r(29844),s=r(45297);const a=t.CELL_TYPE="multiselect";t.MultiSelectCellType={CELL_TYPE:a,_complexDataFormat:!0,editor:n.MultiSelectEditor,renderer:o.multiSelectRenderer,validator:i.multiSelectValidator,valueGetter:s.valueGetter,valueSetter:s.valueSetter,parsePastedValue:!0}},65587(e,t,r){"use strict";t.__esModule=!0;var n=r(36141);t.valueSetter=n.valueSetter},36141(e,t,r){"use strict";t.__esModule=!0,t.valueSetter=function(e){if("string"==typeof e&&(0,n.isNumericLike)(e)){const t=(0,n.getParsedNumber)(e);return(0,o.isNullish)(t)?e:t}return e};var n=r(40499),o=r(22417)},26172(e,t,r){"use strict";t.__esModule=!0;var n=r(53323);t.CELL_TYPE=n.CELL_TYPE,t.NumericCellType=n.NumericCellType},53323(e,t,r){"use strict";t.__esModule=!0;var n=r(42106),o=r(1598),i=r(62342),s=r(65587);const a=t.CELL_TYPE="numeric";t.NumericCellType={CELL_TYPE:a,editor:n.NumericEditor,renderer:o.numericRenderer,validator:i.numericValidator,dataType:"number",valueSetter:s.valueSetter,valueFormatter:o.valueFormatter}},87932(e,t,r){"use strict";t.__esModule=!0;var n=r(72091);t.CELL_TYPE=n.CELL_TYPE,t.PasswordCellType=n.PasswordCellType},72091(e,t,r){"use strict";t.__esModule=!0;var n=r(62212),o=r(85692);const i=t.CELL_TYPE="password";t.PasswordCellType={CELL_TYPE:i,editor:n.PasswordEditor,renderer:o.passwordRenderer,copyable:!1}},19053(e,t,r){"use strict";t.__esModule=!0,t.getCellType=function(e){c(e)||(0,o.throwWithCause)(`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:r,renderer:n,validator:o}=t;r&&(0,i.registerEditor)(e,r);n&&(0,s.registerRenderer)(e,n);o&&(0,a.registerValidator)(e,o);l(e,t)};var n=r(65517),o=r(15141),i=r(14284),s=r(84502),a=r(49269);const{register:l,getItem:h,hasItem:c,getNames:u,getValues:d}=(0,n.staticRegister)("cellTypes");t.getRegisteredCellTypes=d,t.getRegisteredCellTypeNames=u,t.hasCellType=c},86617(e,t,r){"use strict";t.__esModule=!0;var n=r(8053);t.CELL_TYPE=n.CELL_TYPE,t.SelectCellType=n.SelectCellType},8053(e,t,r){"use strict";t.__esModule=!0;var n=r(63657),o=r(62277);const i=t.CELL_TYPE="select";t.SelectCellType={CELL_TYPE:i,editor:n.SelectEditor,renderer:o.selectRenderer}},58598(e,t,r){"use strict";t.__esModule=!0;var n=r(44999);t.CELL_TYPE=n.CELL_TYPE,t.TextCellType=n.TextCellType},44999(e,t,r){"use strict";t.__esModule=!0;var n=r(99326),o=r(69962);const i=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:i,editor:n.TextEditor,renderer:o.textRenderer}},95088(e,t,r){"use strict";t.__esModule=!0;var n=r(48091);t.CELL_TYPE=n.CELL_TYPE,t.TimeCellType=n.TimeCellType},48091(e,t,r){"use strict";t.__esModule=!0;var n=r(50644),o=r(22096),i=r(16010);const s=t.CELL_TYPE="time";t.TimeCellType={CELL_TYPE:s,editor:n.TimeEditor,renderer:o.timeRenderer,validator:i.timeValidator}},92031(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.default=function(e,t){var r,n,Y=this;let G=arguments.length>2&&void 0!==arguments[2]&&arguments[2],j=this;const $=new h.default(j);let K,X,q,Z,Q,J,ee=!0;const te={...t.initialState,...t};(0,b.hasValidParameter)(G)&&(0,b.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootGridElement=void 0,this.rootPortalElement=void 0,this.rootElement=(0,b.isRootInstance)(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,(0,b.isRootInstance)(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootGridElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,o.addClass)(this.rootElement,["ht-wrapper","handsontable"]),(0,o.addClass)(this.rootWrapperElement,"ht-root-wrapper"),(0,o.addClass)(this.rootGridElement,"ht-grid"),this.rootGridElement.appendChild(this.rootElement),this.rootWrapperElement.appendChild(this.rootGridElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,o.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const re=null!==(r=null==te?void 0:te.layoutDirection)&&void 0!==r?r:"inherit",ne=["rtl","ltr"].includes(re)?re:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",ne),null===(n=this.rootWrapperElement)||void 0===n||n.setAttribute("dir",ne),this.isRtl=function(){return"rtl"===ne},this.isLtr=function(){return!j.isRtl()},this.getDirectionFactor=function(){return j.isLtr()?1:-1},this.stylesHandler=new P.StylesHandler({hot:j,rootElement:j.rootElement,rootDocument:j.rootDocument,onThemeChange:e=>{(0,b.isRootInstance)(this)&&((0,o.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,o.removeClass)(this.rootPortalElement,/ht-theme-.*/g),e&&((0,o.addClass)(this.rootWrapperElement,e),(0,o.addClass)(this.rootPortalElement,e),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,D.warn)(`The "${e}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`)))},injectCoreCss:"boolean"!=typeof(null==t?void 0:t.injectCoreCss)||t.injectCoreCss}),this.themeManager=null,te.language=(0,T.getValidLanguageCode)(te.language);const oe=Object.fromEntries(Object.entries(te).filter(e=>{let[t]=e;return!(I.Hooks.getSingleton().isRegistered(t)||I.Hooks.getSingleton().isDeprecated(t))})),ie=new A.MetaManager(j,oe,[A.DynamicCellMetaMod,A.ExtendMetaPropertiesMod]),se=ie.getTableMeta(),ae=ie.getGlobalMeta(),le=(0,O.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),this.guid=`ht_${(0,w.randomString)()}`,z.set(this.guid,this),this.columnIndexMapper=new S.IndexMapper,this.rowIndexMapper=new S.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{j.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{j.runHooks("afterRowSequenceChange",e)}),$.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{j.runHooks("beforeCompositionStart",e)}),X=new A.DataSource(j);const he=(0,p.staticRegister)(this.guid);he.register("cellRangeMapper",new I.CellRangeToRenderableMapper({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let ce=new M.Selection(se,{rowIndexMapper:j.rowIndexMapper,columnIndexMapper:j.columnIndexMapper,countCols:()=>j.countCols(),countRows:()=>j.countRows(),propToCol:e=>K.propToCol(e),isEditorOpened:()=>!!j.getActiveEditor()&&j.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return Y.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return Y.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>j.getShortcutManager(),createCellCoords:(e,t)=>j._createCellCoords(e,t),createCellRange:(e,t,r)=>j._createCellRange(e,t,r),visualToRenderableCoords:e=>{const{row:t,col:r}=e;return j._createCellCoords(t>=0?j.rowIndexMapper.getRenderableFromVisualIndex(t):t,r>=0?j.columnIndexMapper.getRenderableFromVisualIndex(r):r)},renderableToVisualCoords:e=>{const{row:t,col:r}=e;return j._createCellCoords(t>=0?j.rowIndexMapper.getVisualFromRenderableIndex(t):t,r>=0?j.columnIndexMapper.getVisualFromRenderableIndex(r):r)},findFirstNonHiddenRenderableRow:(e,t)=>{const r=t>e?1:-1,n=Math.min(e,t),o=Math.max(e,t),i=j.rowIndexMapper.getNearestNotHiddenIndex(e,r);return null===i||1===r&&i>o||-1===r&&i<n?null:i>=0?j.rowIndexMapper.getRenderableFromVisualIndex(i):i},findFirstNonHiddenRenderableColumn:(e,t)=>{const r=t>e?1:-1,n=Math.min(e,t),o=Math.max(e,t),i=j.columnIndexMapper.getNearestNotHiddenIndex(e,r);return null===i||1===r&&i>o||-1===r&&i<n?null:i>=0?j.columnIndexMapper.getRenderableFromVisualIndex(i):i},isDisabledCellSelection:(e,t)=>e<0||t<0?j.getSettings().disableVisualSelection:j.getCellMeta(e,t).disableVisualSelection});this.selection=ce;const ue=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function de(e,t){const r="className"===e?j.rootElement:j.table;if(ee)(0,o.addClass)(r,t);else{let n=[],i=[];ae[e]&&(n=Array.isArray(ae[e])?ae[e]:(0,u.stringToArray)(ae[e])),t&&(i=Array.isArray(t)?t:(0,u.stringToArray)(t));const s=(0,u.getDifferenceOfArrays)(n,i),a=(0,u.getDifferenceOfArrays)(i,n);s.length&&(0,o.removeClass)(r,s),a.length&&(0,o.addClass)(r,a)}ae[e]=t}function pe(e){let t;void 0===e?(t=(0,U.hasTheme)("main")?(0,U.getTheme)("main"):(0,U.registerTheme)(U.mainTheme),t=(0,U.getTheme)("main")):t="function"!=typeof e.getThemeConfig?(0,U.registerTheme)(e):e,j.themeManager=(0,V.createThemeManager)({hot:j,themeObject:t})}function ge(){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 fe(e,t,r){if(!e.length)return void r();const n=j.getActiveEditor(),o=new ge;let i=!0;o.onQueueEmpty=()=>{n&&i&&n._closeAfterDataChange&&n.cancelChanges(),r()};for(let r=e.length-1;r>=0;r--){const[n,s,,a]=e[r],l=K.propToCol(s);let h;h=Number.isInteger(l)?j.getCellMeta(n,l):{...Object.getPrototypeOf(se),...se},j.getCellValidator(h)&&(o.addValidatorToQueue(),j.validateCell(a,h,function(t,r){return function(n){"boolean"!=typeof n&&(0,H.throwWithCause)("Validation error: result is not boolean"),!1===n&&!1===r.allowInvalid&&(i=!1,e.splice(t,1),r.valid=!0),o.removeValidatorFormQueue()}}(r,h),t))}o.checkIfQueueIsEmpty()}function me(e,t){for(let t=e.length-1;t>=0;t--){let r=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(se.allowInsertRow)for(;e[t][0]>j.countRows()-1;){const{delta:e}=K.createRow(void 0,void 0,{source:"auto"});if(0===e){r=!0;break}}if("array"===j.dataType&&(!se.columns||0===se.columns.length)&&se.allowInsertColumn)for(;K.propToCol(e[t][1])>j.countCols()-1;){const{delta:e}=K.createCol(void 0,void 0,{source:"auto"});if(0===e){r=!0;break}}r||K.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}const r=e.length>0,n=Z.getActiveEditor(),o=null==n?void 0:n._closeAfterDataChange;r?(q.adjustRowsAndCols(),j.runHooks("beforeChangeRender",e,t),null!=n&&n.isOpened()&&o&&Z.closeEditor(),j.view.adjustElementsSize(),j.render(),(null!=n&&n.isOpened()&&o||null==n||!n.isOpened())&&Z.prepareEditor(),j.runHooks("afterChange",e,t||"edit"),n&&(0,s.isDefined)(n.refreshValue)&&n.refreshValue()):j.render()}function Ce(e,t,r){return Array.isArray(e)?e:[[e,t,r]]}function we(e,t){const r=j.runHooks("beforeChange",e,t||"edit"),n=e.filter(e=>null!==e);var o;if(!1===r||0===n.length)return null===(o=j.getActiveEditor())||void 0===o||o.cancelChanges(),[];for(let e=n.length-1;e>=0;e--){const[t,r,,o]=n[e],i=K.propToCol(r);let s;s=Number.isInteger(i)?j.getCellMeta(t,i):{...Object.getPrototypeOf(se),...se},n[e][3]=(0,B.getValueSetterValue)(o,s)}return n}this.columnIndexMapper.addLocalHook("cacheUpdated",e=>{ue(e),this.runHooks("afterColumnSequenceCacheUpdate",e)}),this.rowIndexMapper.addLocalHook("cacheUpdated",e=>{ue(e),this.runHooks("afterRowSequenceCacheUpdate",e)}),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const r=(0,c.createObjectPropListener)(!1),n=this.selection.getSelectedRange(),{from:i,to:s}=n.current(),a=n.size()-1;this.runHooks("afterSelection",i.row,i.col,s.row,s.col,r,a),this.runHooks("afterSelectionByProp",i.row,j.colToProp(i.col),s.row,j.colToProp(s.col),r,a);const l=ce.getSelectionSource();!t||["loadData","updateData"].includes(l)||r.isTouched()&&(!r.isTouched()||r.value)||J.scrollTo(e);const h=ce.isSelectedByRowHeader(),u=ce.isSelectedByColumnHeader();h&&u?(0,o.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):h?((0,o.removeClass)(this.rootElement,"ht__selection--columns"),(0,o.addClass)(this.rootElement,"ht__selection--rows")):u?((0,o.removeClass)(this.rootElement,"ht__selection--rows"),(0,o.addClass)(this.rootElement,"ht__selection--columns")):(0,o.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh","loadData","updateData"].includes(l)||Z.closeEditor(null),["refresh","loadData","updateData"].includes(l)||(j.view.render(),Z.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)&&J.scrollTo(e),Z.closeEditor(),j.view.render(),Z.prepareEditor()}),this.selection.addLocalHook("afterSelectionFinished",e=>{const t=e.length-1,{from:r,to:n}=e[t];this.runHooks("afterSelectionEnd",r.row,r.col,n.row,n.col,t),this.runHooks("afterSelectionEndByProp",r.row,j.colToProp(r.col),n.row,j.colToProp(n.col),t),"refresh"===ce.getSelectionSource()&&(j.view.render(),Z.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{Z.closeEditor(),j.view.render(),(0,o.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")}),this.selection.addLocalHook("beforeHighlightSet",()=>this.runHooks("beforeSelectionHighlightSet")).addLocalHook("beforeSetRangeStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeSetRangeStart",...t)}).addLocalHook("beforeSetRangeStartOnly",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeSetRangeStartOnly",...t)}).addLocalHook("beforeSetRangeEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeSetRangeEnd",...t)}).addLocalHook("beforeSelectColumns",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeSelectColumns",...t)}).addLocalHook("afterSelectColumns",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("afterSelectColumns",...t)}).addLocalHook("beforeSelectRows",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeSelectRows",...t)}).addLocalHook("afterSelectRows",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("afterSelectRows",...t)}).addLocalHook("beforeSelectAll",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeSelectAll",...t)}).addLocalHook("afterSelectAll",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("afterSelectAll",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("modifyTransformStart",...t)}).addLocalHook("afterModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("afterModifyTransformStart",...t)}).addLocalHook("beforeModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("modifyTransformFocus",...t)}).addLocalHook("afterModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("afterModifyTransformFocus",...t)}).addLocalHook("beforeModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("modifyTransformEnd",...t)}).addLocalHook("afterModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("afterModifyTransformEnd",...t)}).addLocalHook("beforeRowWrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeRowWrap",...t)}).addLocalHook("beforeColumnWrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.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")),q={alter(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;const i=e=>{if(0===e.length)return[];const t=[...e];t.sort((e,t)=>{let[r]=e,[n]=t;return r===n?0:r>n?1:-1});return(0,u.arrayReduce)(t,(e,t)=>{let[r,n]=t;const o=e[e.length-1],[i,s]=o,a=i+s;if(r<=a){const e=Math.max(n-(a-r),0);o[1]+=e}else e.push([r,n]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const o=j.countSourceRows();if(se.maxRows===o)return;const a="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===a?o:0;const{delta:l,startPhysicalIndex:h}=K.createRow(t,r,{source:n,mode:a});ce.shiftRows(j.toVisualRow(h),l);break;case"insert_col_start":case"insert_col_end":const c="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===c?j.countSourceCols():0;const{delta:d,startPhysicalIndex:p}=K.createCol(t,r,{source:n,mode:c});if(d){if(Array.isArray(se.colHeaders)){const e=[j.toVisualColumn(p),0];e.length+=d,Array.prototype.splice.apply(se.colHeaders,e)}ce.shiftColumns(j.toVisualColumn(p),d)}break;case"remove_row":const g=e=>{let t=0;(0,u.arrayEach)(e,e=>{let[r,o]=e;const i=(0,s.isEmpty)(r)?j.countRows()-1:Math.max(r-t,0);Number.isInteger(r)&&(r=Math.max(r-t,0));if(!K.removeRow(r,o,n))return;if(ce.isSelected()){const{row:e}=j.getSelectedRangeActive().highlight;e>=r&&e<=r+o-1&&Z.closeEditor(!0)}const a=j.countRows(),l=se.fixedRowsTop;l>=i+1&&(se.fixedRowsTop-=Math.min(o,l-i));const h=se.fixedRowsBottom;if(h&&i>=a-h&&(se.fixedRowsBottom-=Math.min(o,h)),0===a)ce.deselect();else if("ContextMenu.removeRow"===n){const e=ce.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ce.refresh()}else ce.shiftRows(r,-o);t+=o})};Array.isArray(t)?g(i(t)):g([[t,r]]);break;case"remove_col":const f=e=>{let t=0;(0,u.arrayEach)(e,e=>{let[r,o]=e;const i=(0,s.isEmpty)(r)?j.countCols()-1:Math.max(r-t,0);let a=j.toPhysicalColumn(i);Number.isInteger(r)&&(r=Math.max(r-t,0));if(!K.removeCol(r,o,n))return;if(ce.isSelected()){const{col:e}=j.getSelectedRangeActive().highlight;e>=r&&e<=r+o-1&&Z.closeEditor(!0)}if(0===j.countCols())ce.deselect();else if("ContextMenu.removeColumn"===n){const e=ce.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ce.refresh()}else ce.shiftColumns(r,-o);const l=se.fixedColumnsStart;l>=i+1&&(se.fixedColumnsStart-=Math.min(o,l-i)),Array.isArray(se.colHeaders)&&(void 0===a&&(a=-1),se.colHeaders.splice(a,o)),t+=o})};Array.isArray(t)?f(i(t)):f([[t,r]]);break;default:(0,H.throwWithCause)(`There is no such action "${e}"`)}o||q.adjustRowsAndCols(),j.view.adjustElementsSize(),j.view.render()},adjustRowsAndCols(){const e=se.minRows,t=se.minSpareRows,r=se.minCols,n=se.minSpareCols;if(e){const t=j.countRows();t<e&&K.createRow(t,e-t,{source:"auto"})}if(t){const e=j.countEmptyRows(!0);if(e<t){const r=t-e,n=Math.min(r,se.maxRows-j.countSourceRows());K.createRow(j.countRows(),n,{source:"auto"})}}{let e;(r||n)&&(e=j.countEmptyCols(!0));let t=j.countCols();if(r&&!se.columns&&t<r){const n=r-t;e+=n,K.createCol(t,n,{source:"auto"})}if(n&&!se.columns&&"array"===j.dataType&&e<n){t=j.countCols();const r=n-e,o=Math.min(r,se.maxCols-t);K.createCol(t,o,{source:"auto"})}}},populateFromArray(e,t,r,n,o){let i,s,a,l;const h=[],d={},p=[],g=e.row,f=e.col;if(s=t.length,0===s)return!1;let m=0,C=0;switch((0,c.isObject)(r)&&(m=r.col-f+1,C=r.row-g+1),o){case"shift_down":const o=(0,u.pivot)(t),y=o.length,v=Math.max(y,m),E=j.getData().slice(g),S=(0,u.pivot)(E).slice(f,f+v);for(a=0;a<v;a+=1)if(a<y){for(i=0,s=o[a].length;i<C-s;i+=1)o[a].push(o[a][i%s]);a<S.length?p.push(o[a].concat(S[a])):p.push(o[a].concat(new Array(E.length).fill(null)))}else p.push(o[a%y].concat(S[a]));j.populateFromArray(g,f,(0,u.pivot)(p));break;case"shift_right":const b=t.length,R=Math.max(b,C),T=j.getData().slice(g).map(e=>e.slice(f));for(i=0;i<R;i+=1)if(i<b){for(a=0,l=t[i].length;a<m-l;a+=1)t[i].push(t[i][a%l]);if(i<T.length)for(let e=0;e<T[i].length;e+=1)t[i].push(T[i][e]);else t[i].push(...new Array(T[0].length).fill(null))}else t.push(t[i%s].slice(0,R).concat(T[i]));j.populateFromArray(g,f,t);break;default:d.row=e.row,d.col=e.col;let _,M=0,A=0,I=!0;const N=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=t[e%t.length];return null!==r?n[r%n.length]:n},O=t.length,x=r?r.row-e.row+1:0;for(s=r?x:Math.max(O,x),i=0;i<s&&!(r&&d.row>r.row&&x>O||!se.allowInsertRow&&d.row>j.countRows()-1||d.row>=se.maxRows);i++){const t=i-M,o=N(t).length,u=r?r.col-e.col+1:0;if(l=r?u:Math.max(o,u),d.col=e.col,_=j.getCellMeta(d.row,d.col),"CopyPaste.paste"!==n&&"Autofill.fill"!==n||!_.skipRowOnPaste){for(A=0,a=0;a<l;a++){var w;if(r&&d.col>r.col&&u>o||!se.allowInsertColumn&&d.col>j.countCols()-1||d.col>=se.maxCols)break;if(_=j.getCellMeta(d.row,d.col),("CopyPaste.paste"===n||"Autofill.fill"===n)&&_.skipColumnOnPaste){A+=1,d.col+=1,l+=1;continue}if(_.readOnly&&"UndoRedo.undo"!==n){d.col+=1;continue}const e=a-A,i=!!_.valueSetter;let s=N(t,e),p=null!==(w=j.getSourceDataAtCell(d.row,d.col))&&void 0!==w?w:null;if(null!==s&&"object"==typeof s)if(Array.isArray(s)&&null===p&&(p=[]),i||"object"==typeof p&&null!==p){if(null!==p){const e=(0,c.duckSchema)(Array.isArray(p)?p:p[0]||p),t=(0,c.duckSchema)(Array.isArray(s)?s:s[0]||s);i||(0,c.isObjectEqual)(e,t)||Array.isArray(e)&&Array.isArray(t)?s=(0,c.deepClone)(s):I=!1}}else I=!1,_.parsePastedValue&&"CopyPaste.paste"===n&&(I=!0);else i||null===p||"object"!=typeof p||(I=!1);I&&h.push([d.row,d.col,s]),I=!0,d.col+=1}d.row+=1}else M+=1,d.row+=1,s+=1}j.setDataAtCell(h,null,null,n||"populateFromArray")}}},this.init=function(){X.setData(se.data),j.runHooks("beforeInit"),((0,a.isMobileBrowser)()||(0,a.isIpadOS)())&&(0,o.addClass)(j.rootElement,"mobile"),this.updateSettings(te,!0),this.view=new v.default(this),Z=l.default.getInstance(j,se,ce),J=(0,I.createViewportScroller)(j),Q.init(),(0,b.isRootInstance)(this)&&((0,F.install)(j.rootPortalElement),(0,s._injectProductInfo)(te.licenseKey,this.rootWrapperElement,"04/03/2026")),j.runHooks("init"),this.render(),ee&&null===j.rootElement.offsetParent&&(0,o.observeVisibilityChangeOnce)(j.rootElement,()=>{j.view._wt.wtOverlays.updateLastSpreaderSize(),j.view.adjustElementsSize(),j.render()}),"object"==typeof ee&&(j.runHooks("afterChange",ee[0],ee[1]),ee=!1),j.runHooks("afterInit")},this._createCellCoords=function(e,t){return j.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,r){return j.view._wt.createCellRange(e,t,r)},this.validateCell=function(e,t,r,n){let o=j.getCellValidator(t);function a(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void r(e);const n=t.visualCol,o=t.visualRow,i=j.getCell(o,n,!0);if(i&&"TH"!==i.nodeName){const e=j.rowIndexMapper.getRenderableFromVisualIndex(o),t=j.columnIndexMapper.getRenderableFromVisualIndex(n);j.view._wt.getSetting("cellRenderer",e,t,i)}r(e)}var l;(0,s.isRegExp)(o)&&(l=o,o=function(e,t){t(l.test(e))}),(0,i.isFunction)(o)?(e=j.runHooks("beforeValidate",e,t.visualRow,t.prop,n),j._registerMicrotask(()=>{o.call(t,e,r=>{j&&(r=j.runHooks("afterValidate",r,e,t.visualRow,t.prop,n),t.valid=r,a(r),j.runHooks("postAfterValidate",r,e,t.visualRow,t.prop,n))})})):j._registerMicrotask(()=>{t.valid=!0,a(t.valid,!1)})},this.setDataAtCell=function(e,t,r,n){const o=Ce(e,t,r),i=[];let s,a,l,h=n;for(s=0,a=o.length;s<a;s++){const[e,t,r]=o[s];"object"!=typeof o[s]&&(0,H.throwWithCause)("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter"),"number"!=typeof o[s][1]&&(0,H.throwWithCause)("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`"),l=t>=this.countCols()?t:K.colToProp(t),i.push([e,l,X.getAtCell(this.toPhysicalRow(e),t),r])}h||"object"!=typeof e||(h=t);const c=we(i,h);j.runHooks("afterSetDataAtCell",c,h),fe(c,h,()=>{me(c,h)})},this.setDataAtRowProp=function(e,t,r,n){const o=Ce(e,t,r),i=[];let s,a,l=n;for(s=0,a=o.length;s<a;s++){const[e,t,r]=o[s];i.push([e,t,X.getAtCell(this.toPhysicalRow(e),t),r])}l||"object"!=typeof e||(l=t);const h=we(i,n);j.runHooks("afterSetDataAtRowProp",h,l),fe(h,l,()=>{me(h,l)})},this.listen=function(){j&&!j.isListening()&&(z.forEach(e=>{j!==e&&e.unlisten()}),W=j.guid,j.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(W=null,j.runHooks("afterUnlisten"))},this.isListening=function(){return W===j.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];Z.closeEditor(e),j.view.render(),t&&ce.isSelected()&&Z.prepareEditor()},this.populateFromArray=function(e,t,r,n,o,i,s){"object"==typeof r&&"object"==typeof r[0]||(0,H.throwWithCause)("populateFromArray parameter `input` must be an array of arrays");const a="number"==typeof n?j._createCellCoords(n,o):null;return q.populateFromArray(j._createCellCoords(e,t),r,a,i,s)},this.spliceCol=function(e,t,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];return K.spliceCol(e,t,r,...o)},this.spliceRow=function(e,t,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];return K.spliceRow(e,t,r,...o)},this.getSelected=function(){if(ce.isSelected())return(0,u.arrayMap)(ce.getSelectedRange(),e=>{let{from:t,to:r}=e;return[t.row,t.col,r.row,r.col]})},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedActive=function(){const e=this.getSelectedRangeActive();if(!e)return;const{from:t,to:r}=e;return[t.row,t.col,r.row,r.col]},this.getSelectedRange=function(){if(ce.isSelected())return Array.from(ce.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRangeActive=function(){return ce.getActiveSelectedRange()},this.getActiveSelectionLayerIndex=function(){return ce.getActiveSelectionLayerIndex()},this.emptySelectedCells=function(e){if(!ce.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,u.arrayEach)(ce.getSelectedRange(),e=>{if(e.isSingleHeader())return;const r=e.getTopStartCorner(),n=e.getBottomEndCorner();(0,y.rangeEach)(r.row,n.row,e=>{(0,y.rangeEach)(r.col,n.col,r=>{this.getCellMeta(e,r).readOnly||t.push([e,r,null])})})}),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||j.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||j.view.render())},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const r=e();return this.resumeExecution(t),r},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!j.view)return;const e=j.view,{width:t,height:r}=e.getLastSize(),{width:n,height:o}=j.rootElement.getBoundingClientRect(),i=n!==t||o!==r;!1===j.runHooks("beforeRefreshDimensions",{width:t,height:r},{width:n,height:o},i)||((i||e._wt.wtOverlays.scrollableElement===j.rootWindow)&&(e.setLastSize(n,o),e.adjustElementsSize(),j.render()),j.runHooks("afterRefreshDimensions",{width:t,height:r},{width:n,height:o},i))},this.updateData=function(e,t){(0,A.replaceData)(e,e=>{K=e},e=>{K=e,j.columnIndexMapper.fitToLength(this.getInitialColumnCount()),j.rowIndexMapper.fitToLength(this.countSourceRows()),q.adjustRowsAndCols(),ce.markSource("updateData"),ce.refresh(),ce.markEndSource()},{hotInstance:j,dataMap:K,dataSource:X,internalSource:"updateData",source:t,metaManager:ie,firstRun:ee})},this.loadData=function(e,t){(0,A.replaceData)(e,e=>{K=e},()=>{ie.clearCellsCache(),j.initIndexMappers(),q.adjustRowsAndCols(),ce.markSource("loadData"),ce.refresh(),ce.markEndSource(),ee&&(ee=[null,"loadData"])},{hotInstance:j,dataMap:K,dataSource:X,internalSource:"loadData",source:t,metaManager:ie,firstRun:ee})},this.getInitialColumnCount=function(){const e=se.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,i.isFunction)(e))if("array"===j.dataType){const r=this.countSourceCols();for(let n=0;n<r;n+=1)e(n)&&(t+=1)}else"object"!==j.dataType&&"function"!==j.dataType||(t=K.colToPropCache.length);else if((0,s.isDefined)(se.dataSchema)){const e=K.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,r,n){return(0,s.isUndefined)(e)?K.getAll():K.getRange(j._createCellCoords(e,t),j._createCellCoords(r,n),K.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,r,n){return K.getCopyableText(j._createCellCoords(e,t),j._createCellCoords(r,n))},this.getCopyableData=function(e,t){return K.getCopyable(e,K.colToProp(t))},this.getCopyableSourceData=function(e,t){return X.getCopyable(e,K.colToProp(t))},this.getSchema=function(){return K.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=(ee?j.loadData:j.updateData).bind(this);let n,o,a=!1;for(n in(0,s.isDefined)(e.rows)&&(0,H.throwWithCause)('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?'),(0,s.isDefined)(e.cols)&&(0,H.throwWithCause)('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?'),(0,s.isDefined)(e.ganttChart)&&(0,H.throwWithCause)('Since 8.0.0 the "ganttChart" setting is no longer supported.'),(0,s.isDefined)(e.rowHeights)&&(0,s.isDefined)(e.minRowHeights)&&(0,D.warn)("Both `rowHeights` and `minRowHeights` are defined in your configuration. As one is the alias of the other, only one of them can be used at a time. `rowHeights` will be used as the row height configuration."),e)if("data"===n||"language"===n);else if("className"===n)de("className",e.className);else if("tableClassName"===n&&j.table)de("tableClassName",e.tableClassName),j.view._wt.wtOverlays.syncOverlayTableClassNames();else if(I.Hooks.getSingleton().isRegistered(n)||I.Hooks.getSingleton().isDeprecated(n)){const t=e[n];(0,i.isFunction)(t)?(I.Hooks.getSingleton().addAsFixed(n,t,j),se[n]=t):Array.isArray(t)&&(I.Hooks.getSingleton().add(n,t,j),se[n]=t)}else!t&&(0,c.hasOwnProperty)(e,n)&&(ae[n]=e[n]);const l=(0,L.getThemeClassName)(j.rootContainer),h=(0,c.hasOwnProperty)(e,"themeName"),u=(0,c.hasOwnProperty)(e,"theme");if(h&&u&&(0,D.warn)("Both `theme` and `themeName` are defined in your configuration. These options are aliases and cannot be used together. The `themeName` option will be ignored."),t){let t;u&&"string"==typeof e.theme?t=e.theme:h&&"string"==typeof e.themeName&&e.themeName&&!u?(t=e.themeName,se.theme=e.themeName,se.themeName=void 0):l?t=l:j.themeManager&&(t=j.themeManager.getClassName()),j.useTheme(t)}else{const t=j.getCurrentThemeName();var d;if(u&&"string"==typeof e.theme&&t!==e.theme)j.useTheme(e.theme),null===(d=j.themeManager)||void 0===d||d.unmount();else if(h&&!u&&t!==e.themeName){var p;se.theme=e.themeName,se.themeName=void 0,j.useTheme(e.themeName),null===(p=j.themeManager)||void 0===p||p.unmount()}else(0,b.isRootInstance)(j)&&!l&&(0,c.isObject)(e.theme)&&(null===j.themeManager?(pe(e.theme),j.useTheme(j.themeManager.getClassName())):(j.themeManager.update(e.theme),j.useTheme(j.themeManager.getClassName())))}void 0===e.data&&void 0===se.data?r(null,"updateSettings"):void 0!==e.data?r(e.data,"updateSettings"):void 0!==e.columns&&(K.createMap(),j.initIndexMappers()),!ee&&e.language&&function(e){const t=(0,_.normalizeLanguageCode)(e);(0,T.hasLanguageDictionary)(t)?(j.runHooks("beforeLanguageChange",t),ae.language=t,j.runHooks("afterLanguageChange",t)):(0,_.warnUserAboutLanguageRegistration)(e)}(e.language);const g=j.countCols(),f=se.columns;if(f&&(0,i.isFunction)(f)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||ie.clearCache(),g>0)for(n=0,o=0;n<g;n++){if(f){const e=a?f(n):f[o];e&&ie.updateColumnMeta(o,e)}o+=1}(0,s.isDefined)(e.cell)&&(0,c.objectEach)(e.cell,e=>{j.setCellMetaObject(e.row,e.col,e)}),j.runHooks("afterCellMetaReset"),ee&&(0,A.runSourceDataValidators)(j,"init");let m=j.rootElement.style.height;if(""!==m&&(m=parseInt(j.rootElement.style.height,10)),t){j.rootElement.getAttribute("style")&&j.rootElement.setAttribute("data-initialstyle",j.rootElement.getAttribute("style"))}let C=e.height;if(void 0!==e.height)if((0,i.isFunction)(C)&&(C=C()),C=j.runHooks("beforeHeightChange",C),null===C){const e=j.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?j.rootElement.setAttribute("style",e):(j.rootElement.style.height="",j.rootElement.style.overflow="")}else void 0!==C&&(j.rootElement.style.height=isNaN(C)?`${C}`:`${C}px`,j.rootElement.style.overflow="clip");if(void 0!==e.width){let t=e.width;(0,i.isFunction)(t)&&(t=t()),t=j.runHooks("beforeWidthChange",t),j.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}t||(j.view&&(j.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),j.view._wt.exportSettingsAsClassNames()),j.runHooks("afterUpdateSettings",e)),q.adjustRowsAndCols(),j.view&&!ee&&(j.render(),j.view._wt.wtOverlays.adjustElementsSize()),t||!j.view||""!==m&&""!==C&&void 0!==C||m===C||j.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=j.getSelectedRangeActive();if(se.getValue){if((0,i.isFunction)(se.getValue))return se.getValue.call(j);if(e)return j.getData()[e.highlight.row][se.getValue]}else if(e)return j.getDataAtCell(e.highlight.row,e.highlight.col);return null},this.getSettings=function(){return se},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,r,n,o){q.alter(e,t,r,n,o)},this.getCell=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t,o=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;n=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;o=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===o||null===n||void 0===o||void 0===n?null:j.view.getCellAtCoords(j._createCellCoords(o,n),r)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:r,col:n}=t;let o=r,i=n;return r>=0&&(o=this.rowIndexMapper.getVisualFromRenderableIndex(r)),n>=0&&(i=this.columnIndexMapper.getVisualFromRenderableIndex(n)),j._createCellCoords(o,i)},this.colToProp=function(e){return K.colToProp(e)},this.propToCol=function(e){return K.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 K.get(e,K.colToProp(t))},this.getDataAtRowProp=function(e,t){return K.get(e,t)},this.getDataAtCol=function(e){const t=[],r=K.getRange(j._createCellCoords(0,e),j._createCellCoords(se.data.length-1,e),K.DESTINATION_RENDERER);for(let e=0;e<r.length;e+=1)for(let n=0;n<r[e].length;n+=1)t.push(r[e][n]);return t},this.getDataAtProp=function(e){const t=[],r=K.getRange(j._createCellCoords(0,K.propToCol(e)),j._createCellCoords(se.data.length-1,K.propToCol(e)),K.DESTINATION_RENDERER);for(let e=0;e<r.length;e+=1)for(let n=0;n<r[e].length;n+=1)t.push(r[e][n]);return t},this.getSourceData=function(e,t,r,n){let o;return o=void 0===e?X.getData():X.getByRange(j._createCellCoords(e,t),j._createCellCoords(r,n)),o},this.getSourceDataArray=function(e,t,r,n){let o;return o=void 0===e?X.getData(!0):X.getByRange(j._createCellCoords(e,t),j._createCellCoords(r,n),!0),o},this.getSourceDataAtCol=function(e){return X.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,r,n){const o=Ce(e,t,r),i=this.hasHook("afterSetSourceDataAtCell"),a=[],l=(e,t)=>{const r=this.toVisualRow(e),n=this.toVisualColumn(t);return Number.isInteger(n)?this.getCellMeta(r,n):{...Object.getPrototypeOf(se),...se}};i&&(0,u.arrayEach)(o,e=>{let[t,r,n]=e;const o=(0,B.getValueSetterValue)(n,l(t,r));a.push([t,r,X.getAtCell(t,r),o])}),(0,u.arrayEach)(o,e=>{let[t,r,o]=e;const i=l(t,r),s=(0,B.getValueSetterValue)(o,i);(0,A.runSourceDataValidator)(s,i,null!=n?n:"setSourceDataAtCell")&&X.setAtCell(t,r,s)}),i&&this.runHooks("afterSetSourceDataAtCell",a,n),this.render();const h=j.getActiveEditor();h&&(0,s.isDefined)(h.refreshValue)&&h.refreshValue()},this.getSourceDataAtRow=function(e){return X.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return X.getAtCell(e,t)},this.getDataAtRow=function(e){return K.getRange(j._createCellCoords(e,0),j._createCellCoords(e,this.countCols()-1),K.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,r,n){const o=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,r,n],[i,s]=o;let[,,a,l]=o,h=null,c=null;void 0===a&&(a=i),void 0===l&&(l=s);let u="mixed";return(0,y.rangeEach)(Math.max(Math.min(i,a),0),Math.max(i,a),e=>{let t=!0;return(0,y.rangeEach)(Math.max(Math.min(s,l),0),Math.max(s,l),r=>{const n=this.getCellMeta(e,r);return c=n.type,h?t=h===c:h=c,t}),u=t?c:"mixed",t}),u},this.removeCellMeta=function(e,t,r){const[n,o]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let i=ie.getCellMetaKeyValue(n,o,r);!1!==j.runHooks("beforeRemoveCellMeta",e,t,r,i)&&(ie.removeCellMeta(n,o,r),j.runHooks("afterRemoveCellMeta",e,t,r,i)),i=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];n.length>0&&!Array.isArray(n[0])&&(0,H.throwWithCause)("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array."),t>0&&ie.removeRow(this.toPhysicalRow(e),t),n.length>0&&(0,u.arrayEach)(n.reverse(),t=>{ie.createRow(this.toPhysicalRow(e)),(0,u.arrayEach)(t,(t,r)=>this.setCellMetaObject(e,r,t))}),j.render()},this.setCellMetaObject=function(e,t,r){"object"==typeof r&&(0,c.objectEach)(r,(r,n)=>{this.setCellMeta(e,t,n,r)})},this.setCellMeta=function(e,t,r,n){if(!1===j.runHooks("beforeSetCellMeta",e,t,r,n))return;let o=e,i=t;e<this.countRows()&&(o=this.toPhysicalRow(e)),t<this.countCols()&&(i=this.toPhysicalColumn(t)),ie.setCellMeta(o,i,r,n),j.runHooks("afterSetCellMeta",e,t,r,n)},this.getCellsMeta=function(){return ie.getCellsMeta()},this.getCellMeta=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},n=this.toPhysicalRow(e),o=this.toPhysicalColumn(t);return null===n&&(n=e),null===o&&(o=t),ie.getCellMeta(n,o,{visualRow:e,visualColumn:t,...r})},this.getColumnMeta=function(e){return ie.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return ie.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===j.dataType||se.columns)},this.getCellRenderer=function(e,t){const r="number"==typeof e?j.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof r?(0,f.getRenderer)(r):(0,s.isUndefined)(r)?(0,f.getRenderer)("text"):r},this.getCellEditor=function(e,t){const r="number"==typeof e?j.getCellMeta(e,t).editor:e.editor;return"string"==typeof r?(0,m.getEditor)(r):(0,s.isUndefined)(r)?(0,m.getEditor)("text"):r},this.getCellValidator=function(e,t){const r="number"==typeof e?j.getCellMeta(e,t).validator:e.validator;return"string"==typeof r?(0,C.getValidator)(r):r},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){Array.isArray(e)||(0,H.throwWithCause)("validateRows parameter `rows` must be an array"),this._validateCells(t,e)},this.validateColumns=function(e,t){Array.isArray(e)||(0,H.throwWithCause)("validateColumns parameter `columns` must be an array"),this._validateCells(t,void 0,e)},this._validateCells=function(e,t,r){const n=new ge;e&&(n.onQueueEmpty=e);let o=j.countRows()-1;for(;o>=0;){if(void 0!==t&&-1===t.indexOf(o)){o-=1;continue}let e=j.countCols()-1;for(;e>=0;)void 0===r||-1!==r.indexOf(e)?(n.addValidatorToQueue(),j.validateCell(j.getDataAtCell(o,e),j.getCellMeta(o,e),e=>{"boolean"!=typeof e&&(0,H.throwWithCause)("Validation error: result is not boolean"),!1===e&&(n.valid=!1),n.removeValidatorFormQueue()},"validateCells"),e-=1):e-=1;o-=1}n.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=se.rowHeaders,r=e;return void 0!==r&&(r=j.runHooks("modifyRowHeader",r)),void 0===r?(t=[],(0,y.rangeEach)(j.countRows()-1,e=>{t.push(j.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[r]?t=t[r]:(0,i.isFunction)(t)?t=t(r):t&&"string"!=typeof t&&"number"!=typeof t&&(t=r+1),t},this.hasRowHeaders=function(){return!!se.rowHeaders},this.hasColHeaders=function(){if(void 0!==se.colHeaders&&null!==se.colHeaders)return!!se.colHeaders;for(let e=0,t=j.countCols();e<t;e++)if(j.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=j.runHooks("modifyColHeader",e);if(void 0===r){const e=[],t=j.countCols();for(let r=0;r<t;r++)e.push(j.getColHeader(r));return e}let n=se.colHeaders;const o=j.toPhysicalColumn(r),s=function(e){const t=[],r=j.countCols();let n=0;for(;n<r;n++)(0,i.isFunction)(se.columns)&&se.columns(n)&&t.push(n);return t[e]}(o);return!1===se.colHeaders?n=null:se.columns&&(0,i.isFunction)(se.columns)&&se.columns(s)&&se.columns(s).title?n=se.columns(s).title:se.columns&&se.columns[o]&&se.columns[o].title?n=se.columns[o].title:Array.isArray(se.colHeaders)&&void 0!==se.colHeaders[o]?n=se.colHeaders[o]:(0,i.isFunction)(se.colHeaders)?n=se.colHeaders(o):se.colHeaders&&"string"!=typeof se.colHeaders&&"number"!=typeof se.colHeaders&&(n=(0,E.spreadsheetColumnLabel)(r)),n=j.runHooks("modifyColumnHeaderValue",n,e,t),n},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=j.getCellMeta(0,e).width}if(void 0!==t&&t!==se.width||(t=se.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=Number.parseInt(t,10))}return t},this.getColWidth=function(e,t){let r=j._getColWidthFromSettings(e);return r=j.runHooks("modifyColWidth",r,e,t),void 0===r&&(r=R.DEFAULT_COLUMN_WIDTH),r},this._getRowHeightFromSettings=function(e){var t;const r=j.stylesHandler.getDefaultRowHeight(e);let n=null!==(t=se.rowHeights)&&void 0!==t?t:se.minRowHeights;if(null!=n){switch(typeof n){case"object":n=n[e];break;case"function":n=n(e)}"string"==typeof n&&(n=Number.parseInt(n,10))}return null!=n&&n<r?r:n},this.getRowHeight=function(e,t){let r=j._getRowHeightFromSettings(e);return r=j.runHooks("modifyRowHeight",r,e,t),r},this.countSourceRows=function(){return X.countRows()},this.countSourceCols=function(){return X.countFirstRowKeys()},this.countRows=function(){return K.getLength()},this.countCols=function(){const e=se.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return j.view._wt.drawn?j.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return j.view._wt.drawn?j.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return j.view._wt.drawn?j.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return j.view._wt.drawn?j.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,y.rangeEachReverse)(j.countRows()-1,r=>{if(j.isEmptyRow(r))t+=1;else if(!0===e)return!1}),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,y.rangeEachReverse)(j.countCols()-1,r=>{if(j.isEmptyCol(r))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return se.isEmptyRow.call(j,e)},this.isEmptyCol=function(e){return se.isEmptyCol.call(j,e)},this.selectCell=function(e,t,r,n){let o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,s.isUndefined)(e)&&!(0,s.isUndefined)(t)&&this.selectCells([[e,t,r,n]],o,i)},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])&&J.suspend();const r=ce.selectCells(e);return r&&t&&j.listen(),J.resume(),r},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;return ce.selectColumns(e,t,r)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;return ce.selectRows(e,t,r)},this.deselectCell=function(){ce.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;J.skipNextScrollCycle(),ce.selectAll(e,t,r)};const ye=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){var r;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(r=arguments[4])||void 0===r||r});const{row:n,col:o,considerHiddenIndexes:s}=null!=e?e:{};let a=n,l=o;if((0,i.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===s||s){const e=Number.isInteger(n)&&n>=0,t=Number.isInteger(o)&&o>=0,r=e?ye(this.rowIndexMapper,n):void 0,i=t?ye(this.columnIndexMapper,o):void 0;if(null===r||null===i)return!1;a=e?j.rowIndexMapper.getRenderableFromVisualIndex(r):n,l=t?j.columnIndexMapper.getRenderableFromVisualIndex(i):o}const h=Number.isInteger(a),c=Number.isInteger(l);let u=!1;return h&&a>=0&&c&&l>=0?u=j.view.scrollViewport(j._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):h&&a>=0&&(c&&l<0||!c)?u=j.view.scrollViewportVertically(a,e.verticalSnap):c&&l>=0&&(h&&a<0||!h)&&(u=j.view.scrollViewportHorizontally(l,e.horizontalSnap)),(0,i.isFunction)(t)&&(u?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask(()=>t()))),u},this.scrollToFocusedCell=function(e){if(!this.selection.isSelected())return!1;(0,i.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeActive(),r=this.scrollViewportTo(t.toObject());return r?this.view.render():(0,i.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),r},this.destroy=function(){var e;(j._clearTimeouts(),j._clearMicrotasks(),j.view&&j.view.destroy(),X&&X.destroy(),X=null,(0,b.isRootInstance)(this))&&((0,F.uninstall)(),this.getFocusScopeManager().destroy(),null===(e=j.themeManager)||void 0===e||e.destroy());this.getShortcutManager().destroy(),he.clear(),ie.clearCache(),z.delete(this.guid),$.destroy(),Z&&Z.destroy(),j.rootContainer&&(0,o.empty)(j.rootContainer),j.rootPortalElement&&j.rootPortalElement.remove(),j.batchExecution(()=>{j.rowIndexMapper.unregisterAll(),j.columnIndexMapper.unregisterAll(),le.getItems().forEach(e=>{let[,t]=e;t.destroy()}),le.clear(),j.runHooks("afterDestroy")},!0),I.Hooks.getSingleton().destroy(j),(0,c.objectEach)(j,(e,t,r)=>{var n;(0,i.isFunction)(e)?r[t]=(n=t,()=>{(0,H.throwWithCause)(`The "${n}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(r[t]=null)}),j.isDestroyed=!0,K&&K.destroy(),K=null,q=null,ce=null,Z=null,j=null},this.getActiveEditor=function(){return Z.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return j.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return j.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return j.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return j.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return j.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return j.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return j.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return j.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return j.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return j.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return j.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return j.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return le.getItem((0,w.toUpperCaseFirst)(e))},this.getPluginName=function(e){return le.getId(e)},this.getInstance=function(){return j},this.addHook=function(e,t,r){I.Hooks.getSingleton().add(e,t,j,r)},this.hasHook=function(e){return I.Hooks.getSingleton().has(e,j)||I.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,r){I.Hooks.getSingleton().once(e,t,j,r)},this.removeHook=function(e,t){I.Hooks.getSingleton().remove(e,t,j)},this.runHooks=function(e,t,r,n,o,i,s){return I.Hooks.getSingleton().run(j,e,t,r,n,o,i,s)},this.getTranslatedPhrase=function(e,t){return(0,T.getTranslatedPhrase)(se.language,e,t)},this.toHTML=()=>(0,d.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,d.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{const t=!!ee;this.stylesHandler.useTheme(e);const r=this.stylesHandler.getThemeName();!t&&r&&((0,L.getThemeClassName)(this.rootContainer)&&((0,o.removeClass)(this.rootContainer,/ht-theme-.*/g),(0,o.addClass)(this.rootContainer,r)),j.render(),j.scrollViewportTo(0,0)),this.runHooks("afterSetTheme",r,t)},this.getCurrentThemeName=()=>this.stylesHandler.getThemeName(),this.getTableHeight=()=>this.rootElement.offsetHeight,this.getTableWidth=()=>this.rootElement.offsetWidth,this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,u.arrayEach)(this.timeouts,e=>{clearTimeout(e)})},this.microtasks=[],this._registerMicrotask=function(e){const t={cancelled:!1};this.microtasks.push(t),this.rootWindow.queueMicrotask(()=>{t.cancelled||e()})},this._clearMicrotasks=function(){(0,u.arrayEach)(this.microtasks,e=>{e.cancelled=!0}),this.microtasks.length=0},this._getEditorManager=function(){return Z},this._getDataSource=function(){return X},this._getMetaManager=function(){return ie};const ve=(0,x.createShortcutManager)({handleEvent:()=>j.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||j.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&ve.releasePressedKeys()}),this.getShortcutManager=function(){return ve},Q=new N.FocusGridManager(j);const Ee=(0,b.isRootInstance)(this)?(0,N.createFocusScopeManager)(j):null;this.getFocusManager=function(){return Q},this.getFocusScopeManager=function(){return(0,b.isRootInstance)(j)||(0,H.throwWithCause)("The FocusScopeManager is only available for the main Handsontable instance."),Ee};const Se=te.theme,be=te.themeName,Re=(0,L.getThemeClassName)(j.rootContainer);!(0,b.isRootInstance)(j)||Re||!(0,c.isObject)(Se)&&(Se||be)||pe(Se);(0,g.getPluginsNames)().forEach(e=>{const t=(0,g.getPlugin)(e);le.addItem(e,new t(this))}),(0,k.registerAllShortcutContexts)(j),(0,b.isRootInstance)(this)&&(0,N.registerAllFocusScopes)(j);ve.setActiveContextName("grid"),I.Hooks.getSingleton().run(j,"construct")};var o=r(2783),i=r(11526),s=r(67787),a=r(81136),l=n(r(64918)),h=n(r(23695)),c=r(81185),u=r(27637),d=r(80547),p=r(65517),g=r(20658),f=r(84502),m=r(14284),C=r(49269),w=r(58507),y=r(40499),v=n(r(38599)),E=r(52682),S=r(52199),b=r(75593),R=r(95004),T=r(44768),_=r(11802),M=r(46315),A=r(81663),I=r(2712),N=r(70396),O=r(46936),x=r(58282),k=r(79145),L=r(7948),P=r(66038),D=r(28065),H=r(15141),F=r(79527),B=r(6389),V=r(85796),U=r(29029);let W=null;const z=new Map;new Set},7162(e,t,r){"use strict";t.__esModule=!0;var n=r(98451);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))})},98451(e,t){"use strict";function r(e,t,r){n(e,t),t.set(e,r)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function o(e,t){return e.get(s(e,t))}function i(e,t,r){return e.set(s(e,t),r),r}function s(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}t.__esModule=!0;var a=new WeakMap,l=new WeakMap,h=new WeakSet;function c(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const n=s(h,this,u).call(this,o(a,this),e.row,t);if(null===n)return null;const i=s(h,this,u).call(this,o(l,this),e.col,r);return null===i?null:e.clone().assign({row:n,col:i})}function u(e,t,r){return t<0?t:e.getNearestNotHiddenIndex(t,r)}t.CellRangeToRenderableMapper=class{constructor(e){let{rowIndexMapper:t,columnIndexMapper:o}=e;var s,c;n(s=this,c=h),c.add(s),r(this,a,void 0),r(this,l,void 0),i(a,this,t),i(l,this,o)}toRenderable(e){const t="N-S"===e.getVerticalDirection()?1:-1,r="W-E"===e.getHorizontalDirection()?1:-1,n=s(h,this,c).call(this,e.from,t,r);if(null===n)return null;const o=s(h,this,c).call(this,e.to,-t,-r);if(null===o)return null;const i=e.clone();return i.from=n,i.to=o,i.includes(e.highlight)||(i.highlight=n),i}}},1117(e,t,r){"use strict";t.__esModule=!0;var n=r(89098);function o(e,t,r){i(e,t),t.set(e,r)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t,r){return e.set(l(e,t),r),r}function a(e,t){return e.get(l(e,t))}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;function p(e){a(h,this).set(e,[]),a(c,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;i(e=this,t=d),t.add(e),o(this,h,new Map),o(this,c,new Map),o(this,u,new Set),n.REGISTERED_HOOKS.forEach(e=>l(d,this,p).call(this,e))}getHooks(e){var t;return null!==(t=a(h,this).get(e))&&void 0!==t?t:[]}add(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(h,this).has(e)||(l(d,this,p).call(this,e),n.REGISTERED_HOOKS.push(e));const o=a(h,this).get(e),i=o.find(e=>e.callback===t);if(i)return void(!0===i.skip&&(i.skip=!1));const s=Number.isInteger(r.orderIndex)?r.orderIndex:0,c=!!r.runOnce,g=!!r.initialHook;let f=!1;if(g){const e=o.find(e=>e.initialHook);e&&(e.callback=t,f=!0)}if(!f){o.push({callback:t,orderIndex:s,runOnce:c,initialHook:g,skip:!1});let r=a(u,this).has(e);r||0===s||(r=!0,a(u,this).add(e)),r&&o.length>1&&a(h,this).set(e,o.toSorted((e,t)=>e.orderIndex-t.orderIndex))}}has(e){return a(h,this).has(e)&&a(h,this).get(e).length>0}remove(e,t){if(!a(h,this).has(e))return!1;const r=a(h,this).get(e),n=r.find(e=>e.callback===t);if(n){let t=a(c,this).get(e);return n.skip=!0,t+=1,t>100&&(a(h,this).set(e,r.filter(e=>!e.skip)),t=0),a(c,this).set(e,t),!0}return!1}destroy(){a(h,this).clear(),a(c,this).clear(),s(h,this,null),s(c,this,null)}}},89098(e,t){"use strict";t.__esModule=!0;t.REGISTERED_HOOKS=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceCacheUpdate","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","beforeCompositionStart","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceCacheUpdate","afterRowSequenceChange","beforeViewportScrollVertically","beforeViewportScrollHorizontally","beforeViewportScroll","afterScrollHorizontally","afterScrollVertically","afterScroll","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSelectionFocusSet","beforeSelectColumns","afterSelectColumns","beforeSelectRows","afterSelectRows","beforeSelectAll","afterSelectAll","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterSetTheme","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeHeightChange","beforeWidthChange","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","beforePageChange","afterPageChange","beforePageSizeChange","afterPageSizeChange","afterPageSizeVisibilityChange","afterPageCounterVisibilityChange","afterPageNavigationVisibilityChange","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","beforeBeginEditing","afterDialogHide","afterDialogShow","beforeDialogHide","beforeDialogShow","dialogFocusPreviousElement","dialogFocusNextElement","afterDialogFocus","beforeLoadingShow","afterLoadingShow","beforeLoadingHide","afterLoadingHide","beforeEmptyDataStateShow","afterEmptyDataStateShow","beforeEmptyDataStateHide","afterEmptyDataStateHide","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([[]])},66503(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(27637),s=r(58507),a=r(28065),l=r(27033),h=r(11526),c=r(89098),u=r(1117);const d=l.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 n=0;n<e;n++){this.orderView.render();const e=this.orderView.getCurrentNode(),o=this.table.renderedRowToSource(n);var t,r;if(this.table.isAriaEnabled())(0,h.setAttribute)(e,[(0,c.A11Y_ROW)(),(0,c.A11Y_ROWINDEX)(o+(null!==(t=null===(r=this.table.rowUtils)||void 0===r||null===(r=r.dataAccessObject)||void 0===r?void 0:r.columnHeaders.length)&&void 0!==t?t:0)+1)]);(o+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=g},60418(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(this,"rootNode",void 0),(0,o.default)(this,"rootDocument",void 0),(0,o.default)(this,"rowHeaders",null),(0,o.default)(this,"columnHeaders",null),(0,o.default)(this,"colGroup",null),(0,o.default)(this,"rows",null),(0,o.default)(this,"cells",null),(0,o.default)(this,"rowFilter",null),(0,o.default)(this,"columnFilter",null),(0,o.default)(this,"rowUtils",null),(0,o.default)(this,"columnUtils",null),(0,o.default)(this,"rowsToRender",0),(0,o.default)(this,"columnsToRender",0),(0,o.default)(this,"rowHeaderFunctions",[]),(0,o.default)(this,"rowHeadersCount",0),(0,o.default)(this,"columnHeaderFunctions",[]),(0,o.default)(this,"columnHeadersCount",0),(0,o.default)(this,"cellRenderer",void 0),(0,o.default)(this,"activeOverlayName",void 0),(0,o.default)(this,"stylesHandler",void 0),this.rootNode=e,this.rootDocument=this.rootNode.ownerDocument,this.cellRenderer=t,this.stylesHandler=r}setActiveOverlayName(e){this.activeOverlayName=e}setAxisUtils(e,t){this.rowUtils=e,this.columnUtils=t}setViewportSize(e,t){this.rowsToRender=e,this.columnsToRender=t}setFilters(e,t){this.rowFilter=e,this.columnFilter=t}setHeaderContentRenderers(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}setRenderers(){let{rowHeaders:e,columnHeaders:t,colGroup:r,rows:n,cells:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),r.setTable(this),n.setTable(this),o.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=r,this.rows=n,this.cells=o}renderedRowToSource(e){return this.rowFilter.renderedToSource(e)}renderedColumnToSource(e){return this.columnFilter.renderedToSource(e)}isAriaEnabled(){return this.rowUtils.wtSettings.getSetting("ariaTags")}render(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();const{rowsToRender:e,rows:t}=this;for(let r=0;r<e;r++){const e=t.getRenderedNode(r),n=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(r),o=n.getHeightByOverlayName(t,this.activeOverlayName),i=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=o?o-i+"px":""}}}}},39311(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=r(81185);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakSet;function c(e){const{wtSettings:t,inlineStartOverlay:r,wtTable:n,wtViewport:o,totalColumns:s,rootWindow:a}=this.dataAccessObject;if(r.mainTableScrollableElement===a){let l=null;if(t.getSetting("rtlMode")){const e=n.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(e.right-t)}else{l=(0,i.offset)(n.wtRootElement).left}const h=Math.abs((0,i.getScrollLeft)(a,a));if(l>h){const t=(0,i.innerWidth)(a);let n=o.getRowHeaderWidth();for(let o=1;o<=s;o++)if(n+=r.sumCellSizes(o-1,o),l+n-h>=t){e=o-2;break}}}return e}function u(e){const{topOverlay:t,wtTable:r,wtViewport:n,totalRows:o,rootWindow:s}=this.dataAccessObject;if(t.mainTableScrollableElement===s){const a=(0,i.offset)(r.wtRootElement),l=(0,i.getScrollTop)(s,s);if(a.top>l){const r=(0,i.innerHeight)(s);let h=n.getColumnHeaderHeight();for(let n=1;n<=o;n++)if(h+=t.sumCellSizes(n-1,n),a.top+h-l>=r){e=n-2;break}}}return e}t.default=class{constructor(e){a(this,h),(0,o.default)(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,r){if(e.col<0||e.row<0)return!1;const n=this.scrollViewportHorizontally(e.col,t),o=this.scrollViewportVertically(e.row,r);return n||o}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:r,totalColumns:n}=this.dataAccessObject;if(!r)return!1;const o=(0,s.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,o),!Number.isInteger(e)||e<0||e>n)return!1;t=o.value;const{fixedColumnsStart:i,inlineStartOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&e<i)return!1;const h=this.getFirstVisibleColumn(),c=this.getLastVisibleColumn();let u=!1;return(l&&(e<h||e>c)||!l)&&(u=a.scrollTo(e,l?e>=this.getLastPartiallyVisibleColumn():"end"===t)),u}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:r,totalRows:n}=this.dataAccessObject;if(!r)return!1;const o=(0,s.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,o),!Number.isInteger(e)||e<0||e>n)return!1;t=o.value;const{fixedRowsBottom:i,fixedRowsTop:a,topOverlay:l}=this.dataAccessObject,h="auto"===t;if(h&&(e<a||e>n-i-1))return!1;const c=this.getFirstVisibleRow(),u=this.getLastVisibleRow();let d=!1;return(h&&(e<c||e>u)||!h)&&(d=l.scrollTo(e,h?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}}},96884(e,t,r){"use strict";t.__esModule=!0;var n=r(2783),o=r(82063),i=r(81185),s=r(81136),a=r(78209);const l="ht-border-style-";t.default=class{constructor(e,t){t&&(this.eventManager=e.eventManager,this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle=(0,a.getCornerStyle)(this.instance),this.cornerCenterPointOffset=-Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())}registerListeners(){const e=this.wot.rootDocument.body;this.eventManager.addEventListener(e,"mousedown",()=>this.onMouseDown()),this.eventManager.addEventListener(e,"mouseup",()=>this.onMouseUp());for(let e=0,t=this.main.childNodes.length;e<t;e++){const t=this.main.childNodes[e];this.eventManager.addEventListener(t,"mouseenter",t=>this.onMouseEnter(t,this.main.childNodes[e]))}}onMouseDown(){this.mouseDown=!0}onMouseUp(){this.mouseDown=!1}onMouseEnter(e,t){if(!this.mouseDown||!this.wot.getSetting("hideBorderOnMouseDownOver"))return;e.preventDefault(),(0,o.stopImmediatePropagation)(e);const r=this,n=this.wot.rootDocument.body,i=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(n,"mousemove",function e(o){var s;((s=o).clientY<Math.floor(i.top)||s.clientY>Math.ceil(i.top+i.height)||s.clientX<Math.floor(i.left)||s.clientX>Math.ceil(i.left+i.width))&&(r.eventManager.removeEventListener(n,"mousemove",e),t.style.display="block")})}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const r=["top","start","bottom","end","corner"];let n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(let o=0;o<5;o++){const i=r[o],s=t.createElement("div"),a=t=>this.settings[i]&&this.settings[i][t]?this.settings[i][t]:e.border[t];s.className=`wtBorder ${this.settings.className||""}`,this.settings[i]&&this.settings[i].hide&&(s.className+=" hidden"),n=s.style;const h=a("style");h?(["start","end"].includes(i)?s.className+=` ${l}${h}-vertical`:s.className+=` ${l}${h}-horizontal`,n.setProperty("--ht-custom-border-size",`${a("width")}px`),n.setProperty("--ht-custom-border-color",a("color"))):n.backgroundColor=a("color"),n.height=`${a("width")}px`,n.width=`${a("width")}px`,this.main.appendChild(s)}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,s.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:o}=this.wot;let i=o.bordersHolder;i||(i=t.createElement("div"),i.className="htBorders",o.bordersHolder=i,o.spreader.appendChild(i)),i.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,r=t.getSetting("stylesHandler"),n=r.getCSSVariableValue("cell-mobile-handle-size"),o=r.getCSSVariableValue("cell-mobile-handle-border-radius"),s=r.getCSSVariableValue("cell-mobile-handle-background-color"),a=r.getCSSVariableValue("cell-mobile-handle-background-opacity"),l=r.getCSSVariableValue("cell-mobile-handle-border-width"),h=r.getCSSVariableValue("cell-mobile-handle-border-color");this.selectionHandles={top:e.createElement("DIV"),topHitArea:e.createElement("DIV"),bottom:e.createElement("DIV"),bottomHitArea:e.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};const c={position:"absolute",height:"40px",width:"40px","border-radius":`${parseInt(40/1.5,10)}px`};(0,i.objectEach)(c,(e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e});const u={position:"absolute",height:`${n}px`,width:`${n}px`,"border-radius":`${o}px`,background:`color-mix(in srgb, ${s} ${a}, transparent)`,border:`${l}px solid ${h}`};(0,i.objectEach)(u,(e,t)=>{this.selectionHandles.styles.bottom[t]=e,this.selectionHandles.styles.top[t]=e}),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}isPartRange(e,t){const r=this.wot.selectionManager.getAreaSelection();return!(!r.cellRange||e===r.cellRange.to.row&&t===r.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,r,n,o,i){const s=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:h,bottomHitArea:c}=this.selectionHandles.styles,u=parseInt(a.borderWidth,10),d=parseInt(a.width,10),p=parseInt(l.width,10),g=this.wot.wtTable.getWidth(),f=this.wot.wtTable.getHeight();a.top=`${parseInt(r-d-1,10)}px`,a[s]=`${parseInt(n-d-1,10)}px`,l.top=`${parseInt(r-p/4*3,10)}px`,l[s]=`${parseInt(n-p/4*3,10)}px`;const m=Math.min(parseInt(n+o,10),g-d-2*u),C=Math.min(parseInt(n+o-p/4,10),g-p-2*u);h[s]=`${m}px`,c[s]=`${C}px`;const w=Math.min(parseInt(r+i,10),f-d-2*u),y=Math.min(parseInt(r+i-p/4,10),f-p-2*u);h.top=`${w}px`,c.top=`${y}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(h.display="none",c.display="none"):(h.display="block",c.display="block")):(a.display="none",h.display="none",l.display="none",c.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(a.zIndex="9999",l.zIndex="9999"):(a.zIndex="",l.zIndex="")}appear(e){if(this.disabled)return;let[t,r,o,i]=e;if(t<0&&o<0||r<0&&i<0)return void this.disappear();const{wtTable:a,rootDocument:l,rootWindow:h}=this.wot,c=t!==o||r!==i,u=a.getFirstRenderedRow(),d=a.getLastRenderedRow(),p=a.getFirstRenderedColumn(),g=a.getLastRenderedColumn();if(p<0&&g<0||u<0&&d<0)return void this.disappear();let f;if(c){if(r=Math.max(r,p),i=Math.min(i,g),t=Math.max(t,u),o=Math.min(o,d),i<r||o<t)return void this.disappear();f=a.getCell(this.wot.createCellCoords(t,r))}else if(f=a.getCell(this.wot.createCellCoords(t,r)),!(0,n.isHTMLElement)(f))return void this.disappear();const m=c?a.getCell(this.wot.createCellCoords(o,i)):f,C=(0,n.offset)(f),w=c?(0,n.offset)(m):C,y=(0,n.offset)(a.TABLE),v=C.top,E=C.left,S=this.wot.wtSettings.getSetting("rtlMode");let b=0,R=0;if(S){const e=(0,n.outerWidth)(a.TABLE),t=(0,n.outerWidth)(f),r=h.innerWidth-y.left-e;R=E+t-w.left,b=h.innerWidth-E-t-r-1}else R=w.left+(0,n.outerWidth)(m)-E,b=E-y.left-1;if(this.isEntireColumnSelected(t,o)){const e=t,n=this.getDimensionsFromHeader("columns",r,i,e,y);let o=null;n&&([o,b,R]=n),o&&(f=o)}let T=v-y.top-1,_=w.top+(0,n.outerHeight)(m)-v;if(this.isEntireRowSelected(r,i)){const e=r,n=this.getDimensionsFromHeader("rows",t,o,e,y);let i=null;n&&([i,T,_]=n),i&&(f=i)}const M=h.getComputedStyle(f);parseInt(M.borderTopWidth,10)>0&&(T+=1,_=_>0?_-1:0),parseInt(M[S?"borderRightWidth":"borderLeftWidth"],10)>0&&(b+=1,R=R>0?R-1:0);const A=S?"right":"left",I=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${T}px`,this.topStyle[A]=`${b}px`,this.topStyle.width=`${R+I}px`,this.topStyle.display="block",this.startStyle.top=`${T}px`,this.startStyle[A]=`${b}px`,this.startStyle.height=`${_+I}px`,this.startStyle.display="block",this.bottomStyle.top=`${T+_-parseInt(this.bottomStyle.height,10)+I}px`,this.bottomStyle[A]=`${b}px`,this.bottomStyle.width=`${R+I}px`,this.bottomStyle.display="block",this.endStyle.top=`${T}px`,this.endStyle[A]=`${b+R-parseInt(this.endStyle.width,10)+I}px`,this.endStyle.height=`${_+I}px`,this.endStyle.display="block";let N=this.settings.border.cornerVisible;N="function"==typeof N?N(this.settings.layerLevel):N;const O=this.wot.getSetting("onModifyGetCellCoords",o,i,!1,"render");let[x,k]=[o,i];if(O&&Array.isArray(O)&&([,,x,k]=O),(0,s.isMobileBrowser)()||!N||this.isPartRange(x,k))this.cornerStyle.display="none";else{this.cornerStyle.top=T+_+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[A]=b+R+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle.borderRightWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderLeftWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderBottomWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";let e=(0,n.getTrimmingContainer)(a.TABLE);const t=e===h;t&&(e=l.documentElement);const r=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,s=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),c=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(i===this.wot.getSetting("totalColumns")-1){const o=t?m.getBoundingClientRect().left:m.offsetLeft;let i=!1,a=0;if(S?(a=o-parseInt(this.cornerDefaultStyle.width,10)/2,i=a<0):(a=o+(0,n.outerWidth)(m)+parseInt(this.cornerDefaultStyle.width,10)/2,i=a>=(0,n.innerWidth)(e)),i){const e=Math.floor(b+R+this.cornerCenterPointOffset-s-r);(0,n.addClass)(this.corner,"wtCornerInlineEndEdge"),this.cornerStyle[A]=e-1+"px"}}else(0,n.removeClass)(this.corner,"wtCornerInlineEndEdge");if(o===this.wot.getSetting("totalRows")-1){if((t?m.getBoundingClientRect().top:m.offsetTop)+(0,n.outerHeight)(m)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,n.innerHeight)(e)){const e=Math.floor(T+_+this.cornerCenterPointOffset-c-r);(0,n.addClass)(this.corner,"wtCornerBlockEndEdge"),this.cornerStyle.top=e-1+"px"}}else(0,n.removeClass)(this.corner,"wtCornerBlockEndEdge");this.cornerStyle.display="block"}(0,s.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(o,i,T,b,R,_)}isEntireColumnSelected(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}isEntireRowSelected(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}getDimensionsFromHeader(e,t,r,o,i){const{wtTable:s}=this.wot,a=s.wtRootElement.parentNode;let l=null,h=null,c=null,u=null,d=null,p=null,g=null,f=null;switch(e){case"rows":l=function(){return s.getRowHeader(...arguments)},h=function(){return(0,n.outerHeight)(...arguments)},c="ht__selection--rows",p="top";break;case"columns":l=function(){return s.getColumnHeader(...arguments)},h=function(){return(0,n.outerWidth)(...arguments)},c="ht__selection--columns",p="left"}if(a.classList.contains(c)){const e=this.wot.getSetting("columnHeaders").length;if(g=l(t,e-o),f=l(r,e-o),!g||!f)return!1;const s=(0,n.offset)(g),a=(0,n.offset)(f);return g&&f&&(u=s[p]-i[p]-1,d=a[p]+h(f)-s[p]),[g,u,d]}return!1}changeBorderStyle(e,t){const r=this[e].style,o=t[e];!o||o.hide?(0,n.addClass)(this[e],"hidden"):((0,n.hasClass)(this[e],"hidden")&&(0,n.removeClass)(this[e],"hidden"),r.backgroundColor=o.color,"top"!==e&&"bottom"!==e||(r.height=`${o.width}px`),"start"!==e&&"end"!==e||(r.width=`${o.width}px`))}changeBorderToDefaultStyle(e){const t=1,r="#000",n=this[e].style;n.backgroundColor=r,n.width=`${t}px`,n.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,n.addClass)(this[e],"hidden"):(0,n.removeClass)(this[e],"hidden")}disappear(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,s.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)}}},78209(e,t){"use strict";t.__esModule=!0;t.getCornerStyle=e=>{const t=e.wtSettings.getSetting("stylesHandler"),r=t.getCSSVariableValue("cell-autofill-size"),n=t.getCSSVariableValue("cell-autofill-border-width"),o=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:r,height:r,borderWidth:n,borderStyle:"solid",borderColor:o})}},94392(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"},95505(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o={SelectionManager:!0,Selection:!0},i=n(r(95939));t.Selection=i.default;var s=r(94392);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))});var a=r(78209);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))});var l=r(86938);t.SelectionManager=l.SelectionManager},86938(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(2783),i=r(70695),s=n(r(96884));function a(e,t,r){l(e,t),t.set(e,r)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,r){return e.set(u(e,t),r),r}function u(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,p=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakMap,C=new WeakMap,w=new WeakSet;function y(){const e=h(f,this).get(h(d,this)),t=h(d,this).wtSettings.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(t))for(let r=0;r<t.length;r++)e.add(t[r]);e.forEach(e=>{var t,r;const n=h(d,this).wtTable.TABLE.querySelectorAll(`.${e}`);let i=[];Array.isArray(null===(t=h(p,this).options)||void 0===t?void 0:t.cellAttributes)&&(i=h(p,this).options.cellAttributes.map(e=>e[0])),Array.isArray(null===(r=h(p,this).options)||void 0===r?void 0:r.headerAttributes)&&(i=[...i,...h(p,this).options.headerAttributes.map(e=>e[0])]);for(let t=0,r=n.length;t<r;t++)(0,o.removeClass)(n[t],e),(0,o.removeAttribute)(n[t],i)}),e.clear()}t.SelectionManager=class{constructor(e){var t,r;l(t=this,r=w),r.add(t),a(this,d,void 0),a(this,p,void 0),a(this,g,new i.SelectionScanner),a(this,f,new WeakMap),a(this,m,new WeakSet),a(this,C,new Map),c(p,this,e)}setActiveOverlay(e){return c(d,this,e),h(g,this).setActiveOverlay(h(d,this)),h(f,this).has(h(d,this))||h(f,this).set(h(d,this),new Set),this}getFocusSelection(){return null!==h(p,this)?h(p,this).getFocus():null}getAreaSelection(){return null!==h(p,this)?h(p,this).createLayeredArea():null}getBorderInstance(e){if(!e.settings.border)return null;if(h(C,this).has(e)){const t=h(C,this).get(e);if(t.has(h(d,this)))return t.get(h(d,this));const r=new s.default(h(d,this),e.settings);return t.set(h(d,this),r),r}const t=new s.default(h(d,this),e.settings);return h(C,this).set(e,new Map([[h(d,this),t]])),t}getBorderInstances(e){var t,r;return Array.from(null!==(t=null===(r=h(C,this).get(e))||void 0===r?void 0:r.values())&&void 0!==t?t:[])}destroyBorders(e){h(C,this).get(e).forEach(e=>e.destroy()),h(C,this).delete(e)}render(e){if(null===h(p,this))return;e&&u(w,this,y).call(this);const t=Array.from(h(p,this)),r=new Map,n=new Map;for(let e=0;e<t.length;e++){const o=t[e],{className:i,headerAttributes:s,createLayers:a,selectionType:l}=o.settings;h(m,this).has(o)||(h(m,this).add(o),o.addLocalHook("destroy",()=>this.destroyBorders(o)));const c=this.getBorderInstance(o);if(o.isEmpty()){null==c||c.disappear();continue}if(i){h(g,this).setActiveSelection(o).scan().forEach(e=>{if(r.has(e)){const t=r.get(e);t.has(i)&&!0===a?t.set(i,t.get(i)+1):t.set(i,1)}else r.set(e,new Map([[i,1]]));s&&(n.has(e)||n.set(e,[]),"TH"===e.nodeName&&n.get(e).push(...s))})}const u=o.getCorners();h(d,this).getSetting("onBeforeDrawBorders",u,l),null==c||c.appear(u)}r.forEach((e,t)=>{var r;const n=Array.from(e).map(e=>{let[t,r]=e;return 1===r?t:[t,...Array.from({length:r-1},(e,r)=>`${t}-${r+1}`)]}).flat();n.forEach(e=>h(f,this).get(h(d,this)).add(e)),(0,o.addClass)(t,n),"TD"===t.nodeName&&Array.isArray(null===(r=h(p,this).options)||void 0===r?void 0:r.cellAttributes)&&(0,o.setAttribute)(t,h(p,this).options.cellAttributes)}),Array.from(n.keys()).forEach(e=>{(0,o.setAttribute)(e,[...n.get(e)])})}}},70695(e,t,r){"use strict";t.__esModule=!0;var n=r(2783);function o(e,t,r){i(e,t),t.set(e,r)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t){return e.get(l(e,t))}function a(e,t,r){return e.set(l(e,t),r),r}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakSet;function d(e){let[t,r,o,i]=s(h,this).getCorners();if(t<0&&o<0||r<0&&i<0)return;const{wtTable:a}=s(c,this),l=t!==o||r!==i;if(r=Math.max(r,0),i=Math.max(i,0),t=Math.max(t,0),o=Math.max(o,0),l){if(r=Math.max(r,a.getFirstRenderedColumn()),i=Math.min(i,a.getLastRenderedColumn()),t=Math.max(t,a.getFirstRenderedRow()),o=Math.min(o,a.getLastRenderedRow()),i<r||o<t)return}else{const e=a.getCell(s(c,this).createCellCoords(t,r));if(!(0,n.isHTMLElement)(e))return}for(let n=t;n<=o;n+=1)for(let t=r;t<=i;t+=1)e(n,t)}function p(e){const{wtTable:t}=s(c,this),r=t.getRenderedRowsCount(),n=t.getRenderedColumnsCount();for(let o=0;o<r;o+=1){const r=t.rowFilter.renderedToSource(o);for(let o=0;o<n;o+=1)e(r,t.columnFilter.renderedToSource(o))}}t.SelectionScanner=class{constructor(){var e,t;i(e=this,t=u),t.add(e),o(this,h,void 0),o(this,c,void 0)}setActiveOverlay(e){return a(c,this,e),this}setActiveSelection(e){return a(h,this,e),this}scan(){const e=s(h,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"area"===e?this.scanCellsRange(e=>t.add(e)):"focus"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e)),this.scanCellsRange(e=>t.add(e))):"fill"===e?this.scanCellsRange(e=>t.add(e)):"header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"row"===e?(this.scanRowsInHeadersRange(e=>t.add(e)),this.scanRowsInCellsRange(e=>t.add(e))):"column"===e&&(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanColumnsInCellsRange(e=>t.add(e))),t}scanColumnsInHeadersRange(e){const[t,r,n,o]=s(h,this).getCorners(),{wtTable:i}=s(c,this),a=i.getRenderedColumnsCount(),l=i.getColumnHeadersCount();let u=0;for(let d=-i.getRowHeadersCount();d<a;d++){const a=i.columnFilter.renderedToSource(d);if(!(a<r||a>o)){for(let d=-l;d<0;d++){if(d<t||d>n)continue;const p=d+l;let g=i.getColumnHeader(a,p);const f=s(c,this).getSetting("onBeforeHighlightingColumnHeader",a,p,{selectionType:s(h,this).settings.selectionType,columnCursor:u,selectionWidth:o-r+1});null!==f&&(f!==a&&(g=i.getColumnHeader(f,p)),e(g))}u+=1}}}scanRowsInHeadersRange(e){const[t,r,n,o]=s(h,this).getCorners(),{wtTable:i}=s(c,this),a=i.getRenderedRowsCount(),l=i.getRowHeadersCount();let u=0;for(let d=-i.getColumnHeadersCount();d<a;d++){const a=i.rowFilter.renderedToSource(d);if(!(a<t||a>n)){for(let d=-l;d<0;d++){if(d<r||d>o)continue;const p=d+l;let g=i.getRowHeader(a,p);const f=s(c,this).getSetting("onBeforeHighlightingRowHeader",a,p,{selectionType:s(h,this).settings.selectionType,rowCursor:u,selectionHeight:n-t+1});null!==f&&(f!==a&&(g=i.getRowHeader(f,p)),e(g))}u+=1}}}scanCellsRange(e){const{wtTable:t}=s(c,this);l(u,this,d).call(this,(r,o)=>{const i=t.getCell(s(c,this).createCellCoords(r,o)),a=s(c,this).getSetting("onAfterDrawSelection",r,o,s(h,this).settings.layerLevel);"string"==typeof a&&(0,n.addClass)(i,a),e(i)})}scanRowsInCellsRange(e){const[t,,r]=s(h,this).getCorners(),{wtTable:n}=s(c,this);l(u,this,p).call(this,(o,i)=>{if(o>=t&&o<=r){const t=n.getCell(s(c,this).createCellCoords(o,i));e(t)}})}scanColumnsInCellsRange(e){const[,t,,r]=s(h,this).getCorners(),{wtTable:n}=s(c,this);l(u,this,p).call(this,(o,i)=>{if(i>=t&&i<=r){const t=n.getCell(s(c,this).createCellCoords(o,i));e(t)}})}}},95939(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(81185),i=n(r(27348));class s{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,o.mixin)(s,i.default);t.default=s},90675(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=r(81185),a=r(15141);t.default=class{constructor(e){(0,o.default)(this,"settings",{}),(0,o.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,s.objectEach)(this.defaults,(t,r)=>{void 0!==e[r]?this.settings[r]=e[r]:void 0===t?(0,a.throwWithCause)(`A required setting "${r}" was not provided`):this.settings[r]=t})}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,r)=>{const n=this.getSetting("data",e,t);(0,i.fastInnerText)(r,null==n?"":n)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0,stylesHandler:null}}update(e,t){return void 0===t?(0,s.objectEach)(e,(e,t)=>{this.settings[t]=e}):this.settings[e]=t,this}getSetting(e,t,r,n,o){return"function"==typeof this.settings[e]?this.settings[e](t,r,n,o):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]}}},45592(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=r(11526),a=n(r(78897)),l=n(r(84975)),h=r(86222),c=n(r(88718)),u=n(r(75918)),d=r(54347),p=r(17134),g=r(15141);t.default=class{constructor(e,t,r,n,s){(0,o.default)(this,"wtSettings",null),(0,o.default)(this,"domBindings",void 0),(0,o.default)(this,"TBODY",null),(0,o.default)(this,"THEAD",null),(0,o.default)(this,"COLGROUP",null),(0,o.default)(this,"hasTableHeight",!0),(0,o.default)(this,"hasTableWidth",!0),(0,o.default)(this,"isTableVisible",!1),(0,o.default)(this,"tableOffset",0),(0,o.default)(this,"holderOffset",0),this.domBindings=r,this.isMaster="master"===s,this.name=s,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=n,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=r.rootTable,(0,i.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const a=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(a)),this.rowUtils=new 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.wtSettings.getSetting("stylesHandler")})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.className="wtSpreader",t&&t.insertBefore(r,e),r.appendChild(e)),r.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(r,[(0,p.A11Y_PRESENTATION)()]),r}createHider(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.className="wtHider",t&&t.insertBefore(r,e),r.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(r,[(0,p.A11Y_PRESENTATION)()]),r}createHolder(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,i.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.style.position="relative",r.className="wtHolder",this.isMaster&&(0,i.setAttribute)(r,[(0,p.A11Y_TABINDEX)(-1)]),t&&t.insertBefore(r,e),this.isMaster&&(r.parentNode.className+="ht_master handsontable",r.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(r.parentNode,[(0,p.A11Y_PRESENTATION)()])),r.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,i.setAttribute)(r,[(0,p.A11Y_PRESENTATION)()]),r}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:r,wtViewport:n}=this.dataAccessObject,o=t.getSetting("totalRows"),s=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),c=h.length,u=t.getSetting("columnHeaders"),p=u.length;let g=e;if(this.isMaster&&(r.beforeDraw(),this.holderOffset=(0,i.offset)(this.holder),g=n.createCalculators(g),c&&!t.getSetting("fixedColumnsStart"))){const e=r.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(g=!1)}if(g)this.isMaster&&r.refresh(!0);else{this.isMaster?this.tableOffset=(0,i.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new l.default(e,o,p),this.columnFilter=new a.default(t,s,c);let g=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),g=!0!==e.skipRender}g&&(this.tableRenderer.setHeaderContentRenderers(h,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")||n.createVisibleCalculators(),r.refresh(!1),r.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let f=!1;return this.isMaster&&(f=r.topOverlay.resetFixedPosition(),r.bottomOverlay.clone&&(f=r.bottomOverlay.resetFixedPosition()||f),f=r.inlineStartOverlay.resetFixedPosition()||f,r.topInlineStartCornerOverlay&&r.topInlineStartCornerOverlay.resetFixedPosition(),r.bottomInlineStartCornerOverlay&&r.bottomInlineStartCornerOverlay.clone&&r.bottomInlineStartCornerOverlay.resetFixedPosition()),f?(r.refreshAll(),r.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(g),this.isMaster&&r.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let r=this.wtSettings.getSetting("columnHeaders").length;const n=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let o,s,a;const l=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;r;)r-=1,o=this.getColumnHeaderHeight(r),s=this.getColumnHeader(t,r),s&&(a=(0,i.innerHeight)(s),(!o&&n<a||o<a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=a),Array.isArray(l)?null!==l[r]&&void 0!==l[r]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l[r]):isNaN(l)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l),this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]<(l[r]||l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l[r]||l))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,r=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let n=0,o=e.getSetting("columnHeaders").length;n<o;n++)if(r[n]){if(!t[n]||0===t[n].childNodes.length)return;t[n].childNodes[0].style.height=`${r[n]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(d.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let r=0;r<e;r++){const e=this.rowFilter.renderedToSource(r);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,r=e.col;const n=this.wtSettings.getSetting("onModifyGetCellCoords",t,r,!this.isMaster,"render");if(n&&Array.isArray(n)&&([t,r]=n),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(r))return-3;if(this.isColumnAfterRenderedColumns(r))return-4;const o=this.getRow(t);!o&&t>=0&&(0,g.throwWithCause)("TR was expected to be rendered but is not");const i=o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(r)];return!i&&r>=0&&(0,g.throwWithCause)("TD or TH was expected to be rendered but is not"),i}getRow(e){let t=null,r=null;var n,o;e<0?(t=null===(n=this.rowFilter)||void 0===n?void 0:n.sourceRowToVisibleColHeadedRow(e),r=this.THEAD):(t=null===(o=this.rowFilter)||void 0===o?void 0:o.sourceToRendered(e),r=this.TBODY);return void 0!==t&&void 0!==r&&(!(r.childNodes.length<t+1)&&r.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=this.THEAD.childNodes[t];return null==r?void 0:r.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],r=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach(e=>{const n=e.childNodes[r];n&&t.push(n)}),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const r=this.rowFilter.sourceToRendered(e),n=r<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):r,o=(r<0?this.THEAD:this.TBODY).childNodes[n];return null==o?void 0:o.childNodes[t]}getRowHeaders(e){const t=[],r=this.wtSettings.getSetting("rowHeaders").length;for(let n=0;n<r;n++){const r=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],o=null==r?void 0:r.childNodes[n];o&&t.push(o)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,i.closest)(t,["TD","TH"])),null===t)return null;const r=t.parentNode;if(!r)return null;const n=r.parentNode;let o=(0,i.index)(r),s=t.cellIndex;if((0,i.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===n.nodeName&&(o-=n.childNodes.length);else if((0,i.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){o=this.wtSettings.getSetting("totalRows")-n.childNodes.length+o}else n===this.THEAD?o=this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter&&(o=this.rowFilter.renderedToSource(o));(0,i.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,i.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?s=this.columnFilter.offsettedTH(s):this.columnFilter&&(s=this.columnFilter.visibleRowHeadedColumnToSourceColumn(s));const a=this.wtSettings.getSetting("onModifyGetCoordsElement",o,s);return a&&Array.isArray(a)&&([o,s]=a),this.wot.createCellCoords(o,s)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),r=e*t.getDefaultRowHeight(),n=(0,i.innerHeight)(this.TBODY)-1,o=t.areCellsBorderBox(),s=o?i.outerHeight:i.innerHeight,a=o?0:1,l=o?1:0;let h,c,u,d,p;if(r!==n||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,u=this.rowFilter.renderedToSource(e),h=this.getRowHeight(u),d=this.getTrForRow(u),p=d.querySelector("th");const r=0===u?l:0;c=p?s(p):s(d)-a,(!h&&t.getDefaultRowHeight()<c-r||h<c)&&(o||(c+=1),this.dataAccessObject.wtViewport.oversizedRows[u]=c)}}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,i.outerWidth)(this.TABLE)}getHeight(){return(0,i.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,i.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,i.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,i.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,s.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}}},64388(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(45592)),i=n(r(352)),s=n(r(72470)),a=r(81185),l=r(54347);class h extends o.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_BOTTOM)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,s.default);t.default=h},57268(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(45592)),i=n(r(352)),s=n(r(55407)),a=r(81185),l=r(54347);class h extends o.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,s.default);t.default=h},55568(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(45592)),i=n(r(45064)),s=n(r(55407)),a=r(81185),l=r(54347);class h extends o.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_INLINE_START)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,s.default);t.default=h},85117(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(2783),i=n(r(45592)),s=n(r(45064)),a=n(r(72470)),l=r(81185);class h extends i.default{constructor(e,t,r,n){super(e,t,r,n,"master")}alignOverlaysWithTrimmingContainer(){const e=(0,o.getTrimmingContainer)(this.wtRootElement),{rootWindow:t}=this.domBindings;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{const r=e.parentElement,n=(0,o.getStyle)(e,"height",t),i=(0,o.getStyle)(e,"overflow",t),s=this.holder.style,{scrollWidth:a,scrollHeight:l}=e;let h=e.offsetWidth,c=e.offsetHeight;if(r&&["auto","hidden","scroll","clip"].includes(i)){const n=e.cloneNode(!1);n.style.overflow="auto",n.style.position="absolute",e.nextElementSibling?r.insertBefore(n,e.nextElementSibling):r.appendChild(n);const o=parseInt(t.getComputedStyle(n).height,10);r.removeChild(n),0===o&&(c=0)}c=Math.min(c,l),s.height="auto"===n?"auto":`${c}px`,h=Math.min(h,a),s.width=`${h}px`,s.overflow="",this.hasTableHeight="auto"===s.height||c>0,this.hasTableWidth=h>0}this.isTableVisible=(0,o.isVisible)(this.TABLE)}markOversizedColumnHeaders(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject,r="master",n=e.getSetting("columnHeaders").length;if(n&&!t.hasOversizedColumnHeadersMarked[r]){const o=e.getSetting("rowHeaders").length,i=this.getRenderedColumnsCount();for(let e=0;e<n;e++)for(let e=-1*o;e<i;e++)this.markIfOversizedColumnHeader(e);t.hasOversizedColumnHeadersMarked[r]=!0}}}(0,l.mixin)(h,s.default),(0,l.mixin)(h,a.default);t.default=h},72470(e,t,r){"use strict";t.__esModule=!0;var n=r(81185);const o={getFirstRenderedColumn(){const e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn(){const e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getFirstPartiallyVisibleColumn(){const e=this.dataAccessObject.startColumnPartiallyVisible;return null===e?-1:e},getLastRenderedColumn(){const e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn(){const e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getLastPartiallyVisibleColumn(){const e=this.dataAccessObject.endColumnPartiallyVisible;return null===e?-1:e},getRenderedColumnsCount(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount(){return this.dataAccessObject.countColumnsVisible},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,n.defineGetter)(o,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});t.default=o},45064(e,t,r){"use strict";t.__esModule=!0;var n=r(81185);const o={getFirstRenderedRow(){const e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow(){const e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getFirstPartiallyVisibleRow(){const e=this.dataAccessObject.startRowPartiallyVisible;return null===e?-1:e},getLastRenderedRow(){const e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow(){const e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getLastPartiallyVisibleRow(){const e=this.dataAccessObject.endRowPartiallyVisible;return null===e?-1:e},getRenderedRowsCount(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount(){return this.dataAccessObject.countRowsVisible},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,n.defineGetter)(o,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});t.default=o},55407(e,t,r){"use strict";t.__esModule=!0;var n=r(81185);const o={getFirstRenderedColumn(){return 0===this.getRenderedColumnsCount()?-1:0},getFirstVisibleColumn(){return this.getFirstRenderedColumn()},getFirstPartiallyVisibleColumn(){return this.getFirstRenderedColumn()},getLastRenderedColumn(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn(){return this.getLastRenderedColumn()},getLastPartiallyVisibleColumn(){return this.getLastRenderedColumn()},getRenderedColumnsCount(){return Math.min(this.wtSettings.getSetting("totalColumns"),this.wtSettings.getSetting("fixedColumnsStart"))},getVisibleColumnsCount(){return this.getRenderedColumnsCount()},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,n.defineGetter)(o,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});t.default=o},352(e,t,r){"use strict";t.__esModule=!0;var n=r(81185);const o={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,n.defineGetter)(o,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=o},59560(e,t,r){"use strict";t.__esModule=!0;var n=r(81185);const o={getFirstRenderedRow(){return 0===this.getRenderedRowsCount()?-1:0},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.getRenderedRowsCount()-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsTop"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,n.defineGetter)(o,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});t.default=o},66460(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(45592)),i=n(r(59560)),s=n(r(72470)),a=r(81185),l=r(54347);class h extends o.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_TOP)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,s.default);t.default=h},77612(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(45592)),i=n(r(59560)),s=n(r(55407)),a=r(81185),l=r(54347);class h extends o.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_TOP_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,s.default);t.default=h},88718(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.default=class{constructor(e,t){(0,o.default)(this,"dataAccessObject",void 0),(0,o.default)(this,"wtSettings",void 0),(0,o.default)(this,"headerWidths",new Map),this.dataAccessObject=e,this.wtSettings=t}getWidth(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}getHeaderHeight(e){let t=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();const r=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==r&&(t=t?Math.max(t,r):r),t}getHeaderWidth(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}calculateWidths(){const{wtSettings:e}=this;let t=e.getSetting("rowHeaderWidth");if(t=e.getSetting("onModifyRowHeaderWidth",t),null!=t){const r=e.getSetting("rowHeaders").length,n=e.getSetting("defaultColumnWidth");for(let e=0;e<r;e++){let r=Array.isArray(t)?t[e]:t;r=null==r?n:r,this.headerWidths.set(e,r)}}}}},77429(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(81136);t.NodesPool=class{constructor(e){(0,o.default)(this,"nodeType",void 0),(0,o.default)(this,"pool",new Map),this.nodeType=e.toUpperCase()}setRootDocument(e){this.rootDocument=e}obtain(e,t){if((0,i.isFirefox)())return this.rootDocument.createElement(this.nodeType);const r="number"==typeof t?`${e}x${t}`:e.toString();if(this.pool.has(r))return this.pool.get(r);const n=this.rootDocument.createElement(this.nodeType);return this.pool.set(r,n),n}}},87553(e,t){"use strict";t.__esModule=!0;t.WORKING_SPACE_ALL=0,t.WORKING_SPACE_TOP=1,t.WORKING_SPACE_BOTTOM=2},25628(e,t,r){"use strict";t.__esModule=!0;var n=r(83235);t.OrderView=n.OrderView;var o=r(54762);t.SharedOrderView=o.SharedOrderView},13618(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.DifferBasedRendererAdapter=class{constructor(e){(0,o.default)(this,"leads",[]),this.orderView=e}applyCommand(e){const{rootNode:t}=this.orderView,[r,n,o,i]=e,s=this.orderView.nodesPool(n);switch(this.orderView.collectedNodes.push(s),r){case"prepend":t.insertBefore(s,t.firstChild);break;case"append":t.appendChild(s);break;case"insert_before":t.insertBefore(s,this.orderView.nodesPool(o)),t.removeChild(this.orderView.nodesPool(i));break;case"replace":t.replaceChild(s,this.orderView.nodesPool(o));break;case"remove":t.removeChild(s)}}start(){this.orderView.collectedNodes.length=0,this.leads=this.orderView.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}},74762(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(87553);t.DirectDomRendererAdapter=class{constructor(e){(0,o.default)(this,"visualIndex",0),this.orderView=e}getRenderedChildCount(){const{rootNode:e,sizeSet:t}=this.orderView;let r=0;if(this.orderView.isSharedViewSet()){let n=e.firstElementChild;for(;n;){if(n.tagName===this.orderView.childNodeType)r+=1;else if(t.isPlaceOn(i.WORKING_SPACE_TOP))break;n=n.nextElementSibling}}else r=e.childElementCount;return r}start(){this.orderView.collectedNodes.length=0,this.visualIndex=0;const{rootNode:e,sizeSet:t}=this.orderView,r=this.orderView.isSharedViewSet(),{nextSize:n}=t.getViewSize();let o=this.getRenderedChildCount();for(;o<n;){const n=this.orderView.nodesPool();!r||r&&t.isPlaceOn(i.WORKING_SPACE_BOTTOM)?e.appendChild(n):e.insertBefore(n,e.firstChild),o+=1}const s=r&&t.isPlaceOn(i.WORKING_SPACE_TOP);for(;o>n;)e.removeChild(s?e.firstChild:e.lastChild),o-=1}render(){const{rootNode:e,sizeSet:t}=this.orderView;let r=this.visualIndex;this.orderView.isSharedViewSet()&&t.isPlaceOn(i.WORKING_SPACE_BOTTOM)&&(r+=t.sharedSize.nextSize);let n=e.childNodes[r];if(n.tagName!==this.orderView.childNodeType){const t=this.orderView.nodesPool();e.replaceChild(t,n),n=t}this.orderView.collectedNodes.push(n),this.visualIndex+=1}end(){}}},31849(e,t,r){"use strict";t.__esModule=!0,t.createRendererAdapter=function(e){if((0,n.isFirefox)())return new i.DirectDomRendererAdapter(e);return new o.DifferBasedRendererAdapter(e)};var n=r(81136),o=r(13618),i=r(74762)},54762(e,t,r){"use strict";t.__esModule=!0;var n=r(83235);class o extends n.OrderView{prependView(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}appendView(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}t.SharedOrderView=o},83235(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(64664),s=r(6e4),a=r(31849);t.OrderView=class{constructor(e,t,r){(0,o.default)(this,"rootNode",void 0),(0,o.default)(this,"nodesPool",void 0),(0,o.default)(this,"sizeSet",new i.ViewSizeSet),(0,o.default)(this,"collectedNodes",[]),(0,o.default)(this,"viewDiffer",new s.ViewDiffer(this.sizeSet)),(0,o.default)(this,"childNodeType",void 0),(0,o.default)(this,"rendererAdapter",void 0),this.rootNode=e,this.nodesPool=t,this.childNodeType=r,this.rendererAdapter=(0,a.createRendererAdapter)(this)}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}start(){this.rendererAdapter.start()}render(){this.rendererAdapter.render()}end(){this.rendererAdapter.end()}}},6e4(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(87553),s=r(96423);t.ViewDiffer=class{constructor(e){(0,o.default)(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:t,nextSize:r}=e.getViewSize();let n=Math.max(r,t);if(0===n)return[];const{currentOffset:o,nextOffset:a}=e.getViewSize(),l=new s.ViewOrder(o,t),h=new s.ViewOrder(a,r),c=[];for(let t=0;t<n;t++){const o=l.get(t),s=h.get(t);if(-1===s)c.push(["remove",o]);else if(-1===o)!e.isShared()||e.isShared()&&e.isPlaceOn(i.WORKING_SPACE_BOTTOM)?c.push(["append",s]):c.push(["prepend",s]);else if(s>o)l.has(s)&&(l.remove(s),r<=l.length&&(n-=1)),c.push(["replace",s,o]);else if(s<o){const e=l.prepend(s);c.push(["insert_before",s,o,e])}else c.push(["none",s])}return c}}},96423(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.ViewOrder=class{constructor(e,t){(0,o.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()}}},52350(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.ViewSize=class{constructor(){(0,o.default)(this,"currentSize",0),(0,o.default)(this,"nextSize",0),(0,o.default)(this,"currentOffset",0),(0,o.default)(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}},64664(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(52350),s=r(87553);t.ViewSizeSet=class{constructor(){(0,o.default)(this,"size",new i.ViewSize),(0,o.default)(this,"workingSpace",s.WORKING_SPACE_ALL),(0,o.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=s.WORKING_SPACE_TOP,e.workingSpace=s.WORKING_SPACE_BOTTOM,this.sharedSize=e.getViewSize()}prepend(e){this.workingSpace=s.WORKING_SPACE_BOTTOM,e.workingSpace=s.WORKING_SPACE_TOP,this.sharedSize=e.getViewSize()}}},75918(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));t.default=class{constructor(e,t){(0,o.default)(this,"dataAccessObject",void 0),(0,o.default)(this,"wtSettings",void 0),this.dataAccessObject=e,this.wtSettings=t}getHeight(e){let t=this.wtSettings.getSetting("rowHeight",e);const r=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==r&&(t=void 0===t?r:Math.max(t,r)),t}getHeightByOverlayName(e,t){let r=this.wtSettings.getSetting("rowHeightByOverlayName",e,t);const n=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==n&&(r=void 0===r?n:Math.max(r,n)),r}}},45620(e,t,r){"use strict";t.__esModule=!0;var n=r(2783),o=r(81185),i=r(18601);t.default=class{constructor(e,t,r,n,o){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=r,this.wtTable=o,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 i.RenderedAllRowsCalculationType:new i.RenderedRowsCalculationType],["fullyVisible",()=>new i.FullyVisibleRowsCalculationType],["partiallyVisible",()=>new i.PartiallyVisibleRowsCalculationType]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new i.RenderedAllColumnsCalculationType:new i.RenderedColumnsCalculationType],["fullyVisible",()=>new i.FullyVisibleColumnsCalculationType],["partiallyVisible",()=>new i.PartiallyVisibleColumnsCalculationType]]),this.eventManager=n,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",()=>{this.clientHeight=this.getWorkspaceHeight()})}getWorkspaceHeight(){const e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer;let r=0;if(t===this.domBindings.rootWindow)r=e.documentElement.clientHeight;else{r=(0,n.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0}return r}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,r=this.dataAccessObject.inlineStartOverlayTrimmingContainer;let n;if(r===t){const t=this.wtSettings.getSetting("totalColumns");n=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>n&&(n=e.documentElement.clientWidth)}else n=r.clientWidth;return n}getViewportWidth(){const e=this.getWorkspaceWidth();if(e===1/0)return e;const t=this.getRowHeaderWidth();return t>0?e-t:e}hasVerticalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollHeight>e.clientHeight}const{holder:e,hider:t}=this.wtTable,r=e.clientHeight,n=t.offsetHeight;return r<n||n>this.getWorkspaceHeight()}hasHorizontalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollWidth>e.clientWidth}const{hider:e}=this.wtTable,t=e.offsetWidth,r=this.hasVerticalScroll()?(0,n.getScrollbarWidth)():0;return t>this.getWorkspaceWidth()-r}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let r=0,n=e;for(;n<t;)r+=this.wtTable.getColumnWidth(n),n+=1;return r}getWorkspaceOffset(){return(0,n.offset)(this.wtTable.holder)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,n.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 r=0,n=t.length;r<n;r++)this.rowHeaderWidth+=e[r]||e}if(isNaN(this.rowHeaderWidth))if(t.length){let e=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(let r=0,o=t.length;r<o;r++)e?(this.rowHeaderWidth+=(0,n.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:r}=this;let o,s,a=this.getViewportHeight();this.rowHeaderWidth=NaN;let l=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const h=t.getSetting("fixedRowsTop"),c=t.getSetting("fixedRowsBottom"),u=t.getSetting("totalRows");return h&&l>=0&&(s=this.dataAccessObject.topOverlay.sumCellSizes(0,h),l+=s,a-=s),c&&this.dataAccessObject.bottomOverlay.clone&&(s=this.dataAccessObject.bottomOverlay.sumCellSizes(u-c,u),a-=s),o=r.holder.clientHeight===r.holder.offsetHeight?0:(0,n.getScrollbarWidth)(this.domBindings.rootDocument),new i.ViewportRowsCalculator({calculationTypes:e.map(e=>[e,this.rowsCalculatorTypes.get(e)()]),viewportHeight:a,scrollOffset:l,totalRows:t.getSetting("totalRows"),defaultRowHeight:t.getSetting("stylesHandler").getDefaultRowHeight(),rowHeightFn:e=>r.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:o})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:r}=this;let o=this.getViewportWidth(),s=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const a=t.getSetting("fixedColumnsStart");if(a&&s>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,a);s+=e,o-=e}return r.holder.clientWidth!==r.holder.offsetWidth&&(o-=(0,n.getScrollbarWidth)(this.domBindings.rootDocument)),new i.ViewportColumnsCalculator({calculationTypes:e.map(e=>[e,this.columnsCalculatorTypes.get(e)()]),viewportWidth:o,scrollOffset:s,totalColumns:t.getSetting("totalColumns"),columnWidthFn:e=>r.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,r=this.createRowsCalculator(),n=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=r.getResultsFor("fullyVisible"),n=r.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t,n)}if(e&&!t.getSetting("renderAllColumns")){const t=n.getResultsFor("fullyVisible"),r=n.getResultsFor("partiallyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t,r)}return e||(this.rowsRenderCalculator=r.getResultsFor("rendered"),this.columnsRenderCalculator=n.getResultsFor("rendered")),this.rowsVisibleCalculator=r.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=n.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=r.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=n.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,t){if(!this.rowsVisibleCalculator)return!1;let{startRow:r,endRow:n}=e;const{startRow:o,endRow:i}=t;if(null===r&&null===n){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isRowBeforeRenderedRows(o)&&!this.wtTable.isRowAfterRenderedRows(i))return!0;r=o,n=i}const{startRow:s,endRow:a,rowStartOffset:l,rowEndOffset:h}=this.rowsRenderCalculator,c=this.wtSettings.getSetting("totalRows")-1,u=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(u)&&u>0?(r=Math.max(0,r-Math.min(l,u)),n=Math.min(c,n+Math.min(h,u))):"auto"===u&&(r=Math.max(0,r-Math.ceil(l/2)),n=Math.min(c,n+Math.ceil(h/2))),!(r<s||r===s&&r>0)&&!(n>a||n===a&&n<c)}areAllProposedVisibleColumnsAlreadyRendered(e,t){if(!this.columnsVisibleCalculator)return!1;let{startColumn:r,endColumn:n}=e;const{startColumn:o,endColumn:i}=t;if(null===r&&null===n){if(!e.isVisibleInTrimmingContainer&&!this.wtTable.isColumnBeforeRenderedColumns(o)&&!this.wtTable.isColumnAfterRenderedColumns(i))return!0;r=o,n=i}const{startColumn:s,endColumn:a,columnStartOffset:l,columnEndOffset:h}=this.columnsRenderCalculator,c=this.wtSettings.getSetting("totalColumns")-1,u=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(u)&&u>0?(r=Math.max(0,r-Math.min(l,u)),n=Math.min(c,n+Math.min(h,u))):"auto"===u&&(r=Math.max(0,r-Math.ceil(l/2)),n=Math.min(c,n+Math.ceil(h/2))),!(r<s||r===s&&r>0)&&!(n>a||n===a&&n<c)}resetHasOversizedColumnHeadersMarked(){(0,o.objectEach)(this.hasOversizedColumnHeadersMarked,(e,t,r)=>{r[t]=void 0})}}},76745(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(92031)),i=r(75593),s=r(81663),a=r(66503),l=r(44768),h=r(19053),c=r(84502),u=r(572),d=r(58598),p=r(92840),g=r(95004);t.CellCoords=g.CellCoords,t.CellRange=g.CellRange;var f=r(56790);function m(e,t){const r=new o.default(e,t||{},i.rootInstanceSymbol);return r.init(),r}(0,h.registerCellType)(d.TextCellType),(0,c.registerRenderer)(u.baseRenderer),m.editors={BaseEditor:p.BaseEditor},m.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new o.default(e,t,i.rootInstanceSymbol)},m.DefaultSettings=(0,s.metaSchemaFactory)(),m.hooks=a.Hooks.getSingleton(),m.CellCoords=g.CellCoords,m.CellRange=g.CellRange,m.packageName="handsontable",m.buildDate="05/03/2026 11:36:23",m.version="17.0.0-rc15",m.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase},m.themes={hasTheme:f.hasTheme,getTheme:f.getTheme,getThemeNames:f.getThemeNames,getThemes:f.getThemes,registerTheme:f.registerTheme};t.default=m},43234(e,t,r){"use strict";t.__esModule=!0;var n=r(10924);t.valueGetter=n.valueGetter;var o=r(42760);t.valueSetter=o.valueSetter},10924(e,t,r){"use strict";t.__esModule=!0,t.valueGetter=function(e){return(0,n.isObject)(e)&&void 0!==e.value?e.value:e};var n=r(81185)},42760(e,t,r){"use strict";t.__esModule=!0,t.valueSetter=function(e,t,r){const o=this.getSourceDataAtCell(this.toPhysicalRow(t),this.toPhysicalColumn(r));if((0,n.isKeyValueObject)(o))return(0,n.isKeyValueObject)(e)?e:{key:e,value:e};return e};var n=r(81185)},68733(e,t,r){"use strict";t.__esModule=!0;var n=r(70213),o=r(88085),i=r(21501),s=r(43234);const a=t.CELL_TYPE="autocomplete";t.AutocompleteCellType={CELL_TYPE:a,editor:n.AutocompleteEditor,renderer:o.autocompleteRenderer,validator:i.autocompleteValidator,valueGetter:s.valueGetter,valueSetter:s.valueSetter,parsePastedValue:!0}},3273(e,t,r){"use strict";t.__esModule=!0;var n=r(68733);t.AutocompleteCellType=n.AutocompleteCellType,t.CELL_TYPE=n.CELL_TYPE},61827(e,t,r){"use strict";t.__esModule=!0;var n=r(60765);t.valueSetter=n.valueSetter},60765(e,t,r){"use strict";t.__esModule=!0,t.valueSetter=function(e,t,r){const{checkedTemplate:o,uncheckedTemplate:i}=this.getCellMeta(t,r),s=(0,n.stringify)(e),a=s===(0,n.stringify)(o),l=s===(0,n.stringify)(i);if(a||l)return a?o:i;return e};var n=r(67787)},32683(e,t,r){"use strict";t.__esModule=!0;var n=r(19028),o=r(33180),i=r(61827);const s=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:s,editor:n.CheckboxEditor,renderer:o.checkboxRenderer,valueSetter:i.valueSetter}},78796(e,t,r){"use strict";t.__esModule=!0;var n=r(32683);t.CELL_TYPE=n.CELL_TYPE,t.CheckboxCellType=n.CheckboxCellType},43549(e,t,r){"use strict";t.__esModule=!0;var n=r(75557),o=r(27537),i=r(70849);const s=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:s,editor:n.DateEditor,renderer:o.dateRenderer,validator:i.dateValidator}},95165(e,t,r){"use strict";t.__esModule=!0;var n=r(43549);t.CELL_TYPE=n.CELL_TYPE,t.DateCellType=n.DateCellType},75571(e,t,r){"use strict";t.__esModule=!0;var n=r(77553);t.valueGetter=n.valueGetter;var o=r(30093);t.valueSetter=o.valueSetter},77553(e,t,r){"use strict";t.__esModule=!0,t.valueGetter=function(e){return n.valueGetter.call(this,e)};var n=r(43234)},30093(e,t,r){"use strict";t.__esModule=!0,t.valueSetter=function(e,t,r,o){return n.valueSetter.call(this,e,t,r,o)};var n=r(43234)},75515(e,t,r){"use strict";t.__esModule=!0;var n=r(37928),o=r(34528),i=r(56694),s=r(75571);const a=t.CELL_TYPE="dropdown";t.DropdownCellType={CELL_TYPE:a,editor:n.DropdownEditor,renderer:o.dropdownRenderer,validator:i.dropdownValidator,filter:!1,strict:!0,valueGetter:s.valueGetter,valueSetter:s.valueSetter,parsePastedValue:!0}},38332(e,t,r){"use strict";t.__esModule=!0;var n=r(75515);t.CELL_TYPE=n.CELL_TYPE,t.DropdownCellType=n.DropdownCellType},17659(e,t,r){"use strict";t.__esModule=!0;var n=r(1276),o=r(93036);const i=t.CELL_TYPE="handsontable";t.HandsontableCellType={CELL_TYPE:i,editor:n.HandsontableEditor,renderer:o.handsontableRenderer}},15756(e,t,r){"use strict";t.__esModule=!0;var n=r(17659);t.CELL_TYPE=n.CELL_TYPE,t.HandsontableCellType=n.HandsontableCellType},85460(e,t,r){"use strict";t.__esModule=!0,t.registerAllCellTypes=function(){(0,m.registerCellType)(n.AutocompleteCellType),(0,m.registerCellType)(o.CheckboxCellType),(0,m.registerCellType)(i.DateCellType),(0,m.registerCellType)(s.DropdownCellType),(0,m.registerCellType)(a.HandsontableCellType),(0,m.registerCellType)(l.IntlDateCellType),(0,m.registerCellType)(h.IntlTimeCellType),(0,m.registerCellType)(c.MultiSelectCellType),(0,m.registerCellType)(u.NumericCellType),(0,m.registerCellType)(d.PasswordCellType),(0,m.registerCellType)(p.SelectCellType),(0,m.registerCellType)(g.TextCellType),(0,m.registerCellType)(f.TimeCellType)};var n=r(3273);t.AutocompleteCellType=n.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=n.CELL_TYPE;var o=r(78796);t.CheckboxCellType=o.CheckboxCellType,t.CHECKBOX_TYPE=o.CELL_TYPE;var i=r(95165);t.DateCellType=i.DateCellType,t.DATE_TYPE=i.CELL_TYPE;var s=r(38332);t.DropdownCellType=s.DropdownCellType,t.DROPDOWN_TYPE=s.CELL_TYPE;var a=r(15756);t.HandsontableCellType=a.HandsontableCellType,t.HANDSONTABLE_TYPE=a.CELL_TYPE;var l=r(3938);t.IntlDateCellType=l.IntlDateCellType,t.INTL_DATE_TYPE=l.CELL_TYPE;var h=r(23711);t.IntlTimeCellType=h.IntlTimeCellType,t.INTL_TIME_TYPE=h.CELL_TYPE;var c=r(3610);t.MultiSelectCellType=c.MultiSelectCellType,t.MULTISELECT_TYPE=c.CELL_TYPE;var u=r(26172);t.NumericCellType=u.NumericCellType,t.NUMERIC_TYPE=u.CELL_TYPE;var d=r(87932);t.PasswordCellType=d.PasswordCellType,t.PASSWORD_TYPE=d.CELL_TYPE;var p=r(86617);t.SelectCellType=p.SelectCellType,t.SELECT_TYPE=p.CELL_TYPE;var g=r(58598);t.TextCellType=g.TextCellType,t.TEXT_TYPE=g.CELL_TYPE;var f=r(95088);t.TimeCellType=f.TimeCellType,t.TIME_TYPE=f.CELL_TYPE;var m=r(19053);t.registerCellType=m.registerCellType,t.getCellType=m.getCellType,t.getRegisteredCellTypeNames=m.getRegisteredCellTypeNames,t.getRegisteredCellTypes=m.getRegisteredCellTypes,t.hasCellType=m.hasCellType},3938(e,t,r){"use strict";t.__esModule=!0;var n=r(31203);t.CELL_TYPE=n.CELL_TYPE,t.IntlDateCellType=n.IntlDateCellType},31203(e,t,r){"use strict";t.__esModule=!0;var n=r(62906),o=r(25002),i=r(4652);const s=t.CELL_TYPE="intl-date";t.IntlDateCellType={CELL_TYPE:s,editor:n.IntlDateEditor,renderer:o.intlDateRenderer,validator:i.intlDateValidator,sourceDataValidator:i.sourceDataValidator,sourceDataWarningMessage:i.SOURCE_DATA_WARNING_MESSAGE,valueFormatter:o.valueFormatter}},23711(e,t,r){"use strict";t.__esModule=!0;var n=r(21517);t.CELL_TYPE=n.CELL_TYPE,t.IntlTimeCellType=n.IntlTimeCellType},21517(e,t,r){"use strict";t.__esModule=!0;var n=r(56843),o=r(48627),i=r(67099);const s=t.CELL_TYPE="intl-time";t.IntlTimeCellType={CELL_TYPE:s,editor:n.IntlTimeEditor,renderer:o.intlTimeRenderer,validator:i.intlTimeValidator,sourceDataValidator:i.sourceDataValidator,sourceDataWarningMessage:i.SOURCE_DATA_WARNING_MESSAGE,valueFormatter:o.valueFormatter}},45297(e,t,r){"use strict";t.__esModule=!0;var n=r(71615);t.valueGetter=n.valueGetter;var o=r(13915);t.valueSetter=o.valueSetter},71615(e,t,r){"use strict";t.__esModule=!0,t.valueGetter=function(e){if(Array.isArray(e))return(0,o.arrayToString)(e.map(e=>(0,n.isKeyValueObject)(e)?e.value:e),", ");return e};var n=r(81185),o=r(27637)},13915(e,t,r){"use strict";t.__esModule=!0,t.valueSetter=function(e,t,r){if(Array.isArray(e)){const o=this.getSourceDataAtCell(this.toPhysicalRow(t),r);if(Array.isArray(o)&&o.length>0&&(0,n.isKeyValueObject)(o[0]))return e.map(e=>(0,n.isKeyValueObject)(e)?e:{key:e,value:e})}return e};var n=r(81185)},3610(e,t,r){"use strict";t.__esModule=!0;var n=r(91035);t.CELL_TYPE=n.CELL_TYPE,t.MultiSelectCellType=n.MultiSelectCellType},91035(e,t,r){"use strict";t.__esModule=!0;var n=r(75568),o=r(66704),i=r(29844),s=r(45297);const a=t.CELL_TYPE="multiselect";t.MultiSelectCellType={CELL_TYPE:a,_complexDataFormat:!0,editor:n.MultiSelectEditor,renderer:o.multiSelectRenderer,validator:i.multiSelectValidator,valueGetter:s.valueGetter,valueSetter:s.valueSetter,parsePastedValue:!0}},65587(e,t,r){"use strict";t.__esModule=!0;var n=r(36141);t.valueSetter=n.valueSetter},36141(e,t,r){"use strict";t.__esModule=!0,t.valueSetter=function(e){if("string"==typeof e&&(0,n.isNumericLike)(e)){const t=(0,n.getParsedNumber)(e);return(0,o.isNullish)(t)?e:t}return e};var n=r(40499),o=r(22417)},26172(e,t,r){"use strict";t.__esModule=!0;var n=r(53323);t.CELL_TYPE=n.CELL_TYPE,t.NumericCellType=n.NumericCellType},53323(e,t,r){"use strict";t.__esModule=!0;var n=r(42106),o=r(1598),i=r(62342),s=r(65587);const a=t.CELL_TYPE="numeric";t.NumericCellType={CELL_TYPE:a,editor:n.NumericEditor,renderer:o.numericRenderer,validator:i.numericValidator,dataType:"number",valueSetter:s.valueSetter,valueFormatter:o.valueFormatter}},87932(e,t,r){"use strict";t.__esModule=!0;var n=r(72091);t.CELL_TYPE=n.CELL_TYPE,t.PasswordCellType=n.PasswordCellType},72091(e,t,r){"use strict";t.__esModule=!0;var n=r(62212),o=r(85692);const i=t.CELL_TYPE="password";t.PasswordCellType={CELL_TYPE:i,editor:n.PasswordEditor,renderer:o.passwordRenderer,copyable:!1}},19053(e,t,r){"use strict";t.__esModule=!0,t.getCellType=function(e){c(e)||(0,o.throwWithCause)(`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:r,renderer:n,validator:o}=t;r&&(0,i.registerEditor)(e,r);n&&(0,s.registerRenderer)(e,n);o&&(0,a.registerValidator)(e,o);l(e,t)};var n=r(65517),o=r(15141),i=r(14284),s=r(84502),a=r(49269);const{register:l,getItem:h,hasItem:c,getNames:u,getValues:d}=(0,n.staticRegister)("cellTypes");t.getRegisteredCellTypes=d,t.getRegisteredCellTypeNames=u,t.hasCellType=c},86617(e,t,r){"use strict";t.__esModule=!0;var n=r(8053);t.CELL_TYPE=n.CELL_TYPE,t.SelectCellType=n.SelectCellType},8053(e,t,r){"use strict";t.__esModule=!0;var n=r(63657),o=r(62277);const i=t.CELL_TYPE="select";t.SelectCellType={CELL_TYPE:i,editor:n.SelectEditor,renderer:o.selectRenderer}},58598(e,t,r){"use strict";t.__esModule=!0;var n=r(44999);t.CELL_TYPE=n.CELL_TYPE,t.TextCellType=n.TextCellType},44999(e,t,r){"use strict";t.__esModule=!0;var n=r(99326),o=r(69962);const i=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:i,editor:n.TextEditor,renderer:o.textRenderer}},95088(e,t,r){"use strict";t.__esModule=!0;var n=r(48091);t.CELL_TYPE=n.CELL_TYPE,t.TimeCellType=n.TimeCellType},48091(e,t,r){"use strict";t.__esModule=!0;var n=r(50644),o=r(22096),i=r(16010);const s=t.CELL_TYPE="time";t.TimeCellType={CELL_TYPE:s,editor:n.TimeEditor,renderer:o.timeRenderer,validator:i.timeValidator}},92031(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.default=function(e,t){var r,n,Y=this;let G=arguments.length>2&&void 0!==arguments[2]&&arguments[2],j=this;const $=new h.default(j);let K,X,q,Z,Q,J,ee=!0;const te={...t.initialState,...t};(0,b.hasValidParameter)(G)&&(0,b.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootGridElement=void 0,this.rootPortalElement=void 0,this.rootElement=(0,b.isRootInstance)(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,(0,b.isRootInstance)(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootGridElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,o.addClass)(this.rootElement,["ht-wrapper","handsontable"]),(0,o.addClass)(this.rootWrapperElement,"ht-root-wrapper"),(0,o.addClass)(this.rootGridElement,"ht-grid"),this.rootGridElement.appendChild(this.rootElement),this.rootWrapperElement.appendChild(this.rootGridElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,o.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const re=null!==(r=null==te?void 0:te.layoutDirection)&&void 0!==r?r:"inherit",ne=["rtl","ltr"].includes(re)?re:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",ne),null===(n=this.rootWrapperElement)||void 0===n||n.setAttribute("dir",ne),this.isRtl=function(){return"rtl"===ne},this.isLtr=function(){return!j.isRtl()},this.getDirectionFactor=function(){return j.isLtr()?1:-1},this.stylesHandler=new P.StylesHandler({hot:j,rootElement:j.rootElement,rootDocument:j.rootDocument,onThemeChange:e=>{(0,b.isRootInstance)(this)&&((0,o.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,o.removeClass)(this.rootPortalElement,/ht-theme-.*/g),e&&((0,o.addClass)(this.rootWrapperElement,e),(0,o.addClass)(this.rootPortalElement,e),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,D.warn)(`The "${e}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`)))},injectCoreCss:"boolean"!=typeof(null==t?void 0:t.injectCoreCss)||t.injectCoreCss}),this.themeManager=null,te.language=(0,T.getValidLanguageCode)(te.language);const oe=Object.fromEntries(Object.entries(te).filter(e=>{let[t]=e;return!(I.Hooks.getSingleton().isRegistered(t)||I.Hooks.getSingleton().isDeprecated(t))})),ie=new A.MetaManager(j,oe,[A.DynamicCellMetaMod,A.ExtendMetaPropertiesMod]),se=ie.getTableMeta(),ae=ie.getGlobalMeta(),le=(0,O.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),this.guid=`ht_${(0,w.randomString)()}`,z.set(this.guid,this),this.columnIndexMapper=new S.IndexMapper,this.rowIndexMapper=new S.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{j.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{j.runHooks("afterRowSequenceChange",e)}),$.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{j.runHooks("beforeCompositionStart",e)}),X=new A.DataSource(j);const he=(0,p.staticRegister)(this.guid);he.register("cellRangeMapper",new I.CellRangeToRenderableMapper({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let ce=new M.Selection(se,{rowIndexMapper:j.rowIndexMapper,columnIndexMapper:j.columnIndexMapper,countCols:()=>j.countCols(),countRows:()=>j.countRows(),propToCol:e=>K.propToCol(e),isEditorOpened:()=>!!j.getActiveEditor()&&j.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return Y.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return Y.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>j.getShortcutManager(),createCellCoords:(e,t)=>j._createCellCoords(e,t),createCellRange:(e,t,r)=>j._createCellRange(e,t,r),visualToRenderableCoords:e=>{const{row:t,col:r}=e;return j._createCellCoords(t>=0?j.rowIndexMapper.getRenderableFromVisualIndex(t):t,r>=0?j.columnIndexMapper.getRenderableFromVisualIndex(r):r)},renderableToVisualCoords:e=>{const{row:t,col:r}=e;return j._createCellCoords(t>=0?j.rowIndexMapper.getVisualFromRenderableIndex(t):t,r>=0?j.columnIndexMapper.getVisualFromRenderableIndex(r):r)},findFirstNonHiddenRenderableRow:(e,t)=>{const r=t>e?1:-1,n=Math.min(e,t),o=Math.max(e,t),i=j.rowIndexMapper.getNearestNotHiddenIndex(e,r);return null===i||1===r&&i>o||-1===r&&i<n?null:i>=0?j.rowIndexMapper.getRenderableFromVisualIndex(i):i},findFirstNonHiddenRenderableColumn:(e,t)=>{const r=t>e?1:-1,n=Math.min(e,t),o=Math.max(e,t),i=j.columnIndexMapper.getNearestNotHiddenIndex(e,r);return null===i||1===r&&i>o||-1===r&&i<n?null:i>=0?j.columnIndexMapper.getRenderableFromVisualIndex(i):i},isDisabledCellSelection:(e,t)=>e<0||t<0?j.getSettings().disableVisualSelection:j.getCellMeta(e,t).disableVisualSelection});this.selection=ce;const ue=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function de(e,t){const r="className"===e?j.rootElement:j.table;if(ee)(0,o.addClass)(r,t);else{let n=[],i=[];ae[e]&&(n=Array.isArray(ae[e])?ae[e]:(0,u.stringToArray)(ae[e])),t&&(i=Array.isArray(t)?t:(0,u.stringToArray)(t));const s=(0,u.getDifferenceOfArrays)(n,i),a=(0,u.getDifferenceOfArrays)(i,n);s.length&&(0,o.removeClass)(r,s),a.length&&(0,o.addClass)(r,a)}ae[e]=t}function pe(e){let t;void 0===e?(t=(0,U.hasTheme)("main")?(0,U.getTheme)("main"):(0,U.registerTheme)(U.mainTheme),t=(0,U.getTheme)("main")):t="function"!=typeof e.getThemeConfig?(0,U.registerTheme)(e):e,j.themeManager=(0,V.createThemeManager)({hot:j,themeObject:t})}function ge(){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 fe(e,t,r){if(!e.length)return void r();const n=j.getActiveEditor(),o=new ge;let i=!0;o.onQueueEmpty=()=>{n&&i&&n._closeAfterDataChange&&n.cancelChanges(),r()};for(let r=e.length-1;r>=0;r--){const[n,s,,a]=e[r],l=K.propToCol(s);let h;h=Number.isInteger(l)?j.getCellMeta(n,l):{...Object.getPrototypeOf(se),...se},j.getCellValidator(h)&&(o.addValidatorToQueue(),j.validateCell(a,h,function(t,r){return function(n){"boolean"!=typeof n&&(0,H.throwWithCause)("Validation error: result is not boolean"),!1===n&&!1===r.allowInvalid&&(i=!1,e.splice(t,1),r.valid=!0),o.removeValidatorFormQueue()}}(r,h),t))}o.checkIfQueueIsEmpty()}function me(e,t){for(let t=e.length-1;t>=0;t--){let r=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(se.allowInsertRow)for(;e[t][0]>j.countRows()-1;){const{delta:e}=K.createRow(void 0,void 0,{source:"auto"});if(0===e){r=!0;break}}if("array"===j.dataType&&(!se.columns||0===se.columns.length)&&se.allowInsertColumn)for(;K.propToCol(e[t][1])>j.countCols()-1;){const{delta:e}=K.createCol(void 0,void 0,{source:"auto"});if(0===e){r=!0;break}}r||K.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}const r=e.length>0,n=Z.getActiveEditor(),o=null==n?void 0:n._closeAfterDataChange;r?(q.adjustRowsAndCols(),j.runHooks("beforeChangeRender",e,t),null!=n&&n.isOpened()&&o&&Z.closeEditor(),j.view.adjustElementsSize(),j.render(),(null!=n&&n.isOpened()&&o||null==n||!n.isOpened())&&Z.prepareEditor(),j.runHooks("afterChange",e,t||"edit"),n&&(0,s.isDefined)(n.refreshValue)&&n.refreshValue()):j.render()}function Ce(e,t,r){return Array.isArray(e)?e:[[e,t,r]]}function we(e,t){const r=j.runHooks("beforeChange",e,t||"edit"),n=e.filter(e=>null!==e);var o;if(!1===r||0===n.length)return null===(o=j.getActiveEditor())||void 0===o||o.cancelChanges(),[];for(let e=n.length-1;e>=0;e--){const[t,r,,o]=n[e],i=K.propToCol(r);let s;s=Number.isInteger(i)?j.getCellMeta(t,i):{...Object.getPrototypeOf(se),...se},n[e][3]=(0,B.getValueSetterValue)(o,s)}return n}this.columnIndexMapper.addLocalHook("cacheUpdated",e=>{ue(e),this.runHooks("afterColumnSequenceCacheUpdate",e)}),this.rowIndexMapper.addLocalHook("cacheUpdated",e=>{ue(e),this.runHooks("afterRowSequenceCacheUpdate",e)}),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const r=(0,c.createObjectPropListener)(!1),n=this.selection.getSelectedRange(),{from:i,to:s}=n.current(),a=n.size()-1;this.runHooks("afterSelection",i.row,i.col,s.row,s.col,r,a),this.runHooks("afterSelectionByProp",i.row,j.colToProp(i.col),s.row,j.colToProp(s.col),r,a);const l=ce.getSelectionSource();!t||["loadData","updateData"].includes(l)||r.isTouched()&&(!r.isTouched()||r.value)||J.scrollTo(e);const h=ce.isSelectedByRowHeader(),u=ce.isSelectedByColumnHeader();h&&u?(0,o.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):h?((0,o.removeClass)(this.rootElement,"ht__selection--columns"),(0,o.addClass)(this.rootElement,"ht__selection--rows")):u?((0,o.removeClass)(this.rootElement,"ht__selection--rows"),(0,o.addClass)(this.rootElement,"ht__selection--columns")):(0,o.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh","loadData","updateData"].includes(l)||Z.closeEditor(null),["refresh","loadData","updateData"].includes(l)||(j.view.render(),Z.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)&&J.scrollTo(e),Z.closeEditor(),j.view.render(),Z.prepareEditor()}),this.selection.addLocalHook("afterSelectionFinished",e=>{const t=e.length-1,{from:r,to:n}=e[t];this.runHooks("afterSelectionEnd",r.row,r.col,n.row,n.col,t),this.runHooks("afterSelectionEndByProp",r.row,j.colToProp(r.col),n.row,j.colToProp(n.col),t),"refresh"===ce.getSelectionSource()&&(j.view.render(),Z.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{Z.closeEditor(),j.view.render(),(0,o.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")}),this.selection.addLocalHook("beforeHighlightSet",()=>this.runHooks("beforeSelectionHighlightSet")).addLocalHook("beforeSetRangeStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeSetRangeStart",...t)}).addLocalHook("beforeSetRangeStartOnly",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeSetRangeStartOnly",...t)}).addLocalHook("beforeSetRangeEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeSetRangeEnd",...t)}).addLocalHook("beforeSelectColumns",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeSelectColumns",...t)}).addLocalHook("afterSelectColumns",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("afterSelectColumns",...t)}).addLocalHook("beforeSelectRows",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeSelectRows",...t)}).addLocalHook("afterSelectRows",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("afterSelectRows",...t)}).addLocalHook("beforeSelectAll",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeSelectAll",...t)}).addLocalHook("afterSelectAll",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("afterSelectAll",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("modifyTransformStart",...t)}).addLocalHook("afterModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("afterModifyTransformStart",...t)}).addLocalHook("beforeModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("modifyTransformFocus",...t)}).addLocalHook("afterModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("afterModifyTransformFocus",...t)}).addLocalHook("beforeModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("modifyTransformEnd",...t)}).addLocalHook("afterModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("afterModifyTransformEnd",...t)}).addLocalHook("beforeRowWrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.runHooks("beforeRowWrap",...t)}).addLocalHook("beforeColumnWrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Y.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")),q={alter(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;const i=e=>{if(0===e.length)return[];const t=[...e];t.sort((e,t)=>{let[r]=e,[n]=t;return r===n?0:r>n?1:-1});return(0,u.arrayReduce)(t,(e,t)=>{let[r,n]=t;const o=e[e.length-1],[i,s]=o,a=i+s;if(r<=a){const e=Math.max(n-(a-r),0);o[1]+=e}else e.push([r,n]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const o=j.countSourceRows();if(se.maxRows===o)return;const a="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===a?o:0;const{delta:l,startPhysicalIndex:h}=K.createRow(t,r,{source:n,mode:a});ce.shiftRows(j.toVisualRow(h),l);break;case"insert_col_start":case"insert_col_end":const c="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===c?j.countSourceCols():0;const{delta:d,startPhysicalIndex:p}=K.createCol(t,r,{source:n,mode:c});if(d){if(Array.isArray(se.colHeaders)){const e=[j.toVisualColumn(p),0];e.length+=d,Array.prototype.splice.apply(se.colHeaders,e)}ce.shiftColumns(j.toVisualColumn(p),d)}break;case"remove_row":const g=e=>{let t=0;(0,u.arrayEach)(e,e=>{let[r,o]=e;const i=(0,s.isEmpty)(r)?j.countRows()-1:Math.max(r-t,0);Number.isInteger(r)&&(r=Math.max(r-t,0));if(!K.removeRow(r,o,n))return;if(ce.isSelected()){const{row:e}=j.getSelectedRangeActive().highlight;e>=r&&e<=r+o-1&&Z.closeEditor(!0)}const a=j.countRows(),l=se.fixedRowsTop;l>=i+1&&(se.fixedRowsTop-=Math.min(o,l-i));const h=se.fixedRowsBottom;if(h&&i>=a-h&&(se.fixedRowsBottom-=Math.min(o,h)),0===a)ce.deselect();else if("ContextMenu.removeRow"===n){const e=ce.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ce.refresh()}else ce.shiftRows(r,-o);t+=o})};Array.isArray(t)?g(i(t)):g([[t,r]]);break;case"remove_col":const f=e=>{let t=0;(0,u.arrayEach)(e,e=>{let[r,o]=e;const i=(0,s.isEmpty)(r)?j.countCols()-1:Math.max(r-t,0);let a=j.toPhysicalColumn(i);Number.isInteger(r)&&(r=Math.max(r-t,0));if(!K.removeCol(r,o,n))return;if(ce.isSelected()){const{col:e}=j.getSelectedRangeActive().highlight;e>=r&&e<=r+o-1&&Z.closeEditor(!0)}if(0===j.countCols())ce.deselect();else if("ContextMenu.removeColumn"===n){const e=ce.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ce.refresh()}else ce.shiftColumns(r,-o);const l=se.fixedColumnsStart;l>=i+1&&(se.fixedColumnsStart-=Math.min(o,l-i)),Array.isArray(se.colHeaders)&&(void 0===a&&(a=-1),se.colHeaders.splice(a,o)),t+=o})};Array.isArray(t)?f(i(t)):f([[t,r]]);break;default:(0,H.throwWithCause)(`There is no such action "${e}"`)}o||q.adjustRowsAndCols(),j.view.adjustElementsSize(),j.view.render()},adjustRowsAndCols(){const e=se.minRows,t=se.minSpareRows,r=se.minCols,n=se.minSpareCols;if(e){const t=j.countRows();t<e&&K.createRow(t,e-t,{source:"auto"})}if(t){const e=j.countEmptyRows(!0);if(e<t){const r=t-e,n=Math.min(r,se.maxRows-j.countSourceRows());K.createRow(j.countRows(),n,{source:"auto"})}}{let e;(r||n)&&(e=j.countEmptyCols(!0));let t=j.countCols();if(r&&!se.columns&&t<r){const n=r-t;e+=n,K.createCol(t,n,{source:"auto"})}if(n&&!se.columns&&"array"===j.dataType&&e<n){t=j.countCols();const r=n-e,o=Math.min(r,se.maxCols-t);K.createCol(t,o,{source:"auto"})}}},populateFromArray(e,t,r,n,o){let i,s,a,l;const h=[],d={},p=[],g=e.row,f=e.col;if(s=t.length,0===s)return!1;let m=0,C=0;switch((0,c.isObject)(r)&&(m=r.col-f+1,C=r.row-g+1),o){case"shift_down":const o=(0,u.pivot)(t),y=o.length,v=Math.max(y,m),E=j.getData().slice(g),S=(0,u.pivot)(E).slice(f,f+v);for(a=0;a<v;a+=1)if(a<y){for(i=0,s=o[a].length;i<C-s;i+=1)o[a].push(o[a][i%s]);a<S.length?p.push(o[a].concat(S[a])):p.push(o[a].concat(new Array(E.length).fill(null)))}else p.push(o[a%y].concat(S[a]));j.populateFromArray(g,f,(0,u.pivot)(p));break;case"shift_right":const b=t.length,R=Math.max(b,C),T=j.getData().slice(g).map(e=>e.slice(f));for(i=0;i<R;i+=1)if(i<b){for(a=0,l=t[i].length;a<m-l;a+=1)t[i].push(t[i][a%l]);if(i<T.length)for(let e=0;e<T[i].length;e+=1)t[i].push(T[i][e]);else t[i].push(...new Array(T[0].length).fill(null))}else t.push(t[i%s].slice(0,R).concat(T[i]));j.populateFromArray(g,f,t);break;default:d.row=e.row,d.col=e.col;let _,M=0,A=0,I=!0;const N=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=t[e%t.length];return null!==r?n[r%n.length]:n},O=t.length,x=r?r.row-e.row+1:0;for(s=r?x:Math.max(O,x),i=0;i<s&&!(r&&d.row>r.row&&x>O||!se.allowInsertRow&&d.row>j.countRows()-1||d.row>=se.maxRows);i++){const t=i-M,o=N(t).length,u=r?r.col-e.col+1:0;if(l=r?u:Math.max(o,u),d.col=e.col,_=j.getCellMeta(d.row,d.col),"CopyPaste.paste"!==n&&"Autofill.fill"!==n||!_.skipRowOnPaste){for(A=0,a=0;a<l;a++){var w;if(r&&d.col>r.col&&u>o||!se.allowInsertColumn&&d.col>j.countCols()-1||d.col>=se.maxCols)break;if(_=j.getCellMeta(d.row,d.col),("CopyPaste.paste"===n||"Autofill.fill"===n)&&_.skipColumnOnPaste){A+=1,d.col+=1,l+=1;continue}if(_.readOnly&&"UndoRedo.undo"!==n){d.col+=1;continue}const e=a-A,i=!!_.valueSetter;let s=N(t,e),p=null!==(w=j.getSourceDataAtCell(d.row,d.col))&&void 0!==w?w:null;if(null!==s&&"object"==typeof s)if(Array.isArray(s)&&null===p&&(p=[]),i||"object"==typeof p&&null!==p){if(null!==p){const e=(0,c.duckSchema)(Array.isArray(p)?p:p[0]||p),t=(0,c.duckSchema)(Array.isArray(s)?s:s[0]||s);i||(0,c.isObjectEqual)(e,t)||Array.isArray(e)&&Array.isArray(t)?s=(0,c.deepClone)(s):I=!1}}else I=!1,_.parsePastedValue&&"CopyPaste.paste"===n&&(I=!0);else i||null===p||"object"!=typeof p||(I=!1);I&&h.push([d.row,d.col,s]),I=!0,d.col+=1}d.row+=1}else M+=1,d.row+=1,s+=1}j.setDataAtCell(h,null,null,n||"populateFromArray")}}},this.init=function(){X.setData(se.data),j.runHooks("beforeInit"),((0,a.isMobileBrowser)()||(0,a.isIpadOS)())&&(0,o.addClass)(j.rootElement,"mobile"),this.updateSettings(te,!0),this.view=new v.default(this),Z=l.default.getInstance(j,se,ce),J=(0,I.createViewportScroller)(j),Q.init(),(0,b.isRootInstance)(this)&&((0,F.install)(j.rootPortalElement),(0,s._injectProductInfo)(te.licenseKey,this.rootWrapperElement,"05/03/2026")),j.runHooks("init"),this.render(),ee&&null===j.rootElement.offsetParent&&(0,o.observeVisibilityChangeOnce)(j.rootElement,()=>{j.view._wt.wtOverlays.updateLastSpreaderSize(),j.view.adjustElementsSize(),j.render()}),"object"==typeof ee&&(j.runHooks("afterChange",ee[0],ee[1]),ee=!1),j.runHooks("afterInit")},this._createCellCoords=function(e,t){return j.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,r){return j.view._wt.createCellRange(e,t,r)},this.validateCell=function(e,t,r,n){let o=j.getCellValidator(t);function a(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void r(e);const n=t.visualCol,o=t.visualRow,i=j.getCell(o,n,!0);if(i&&"TH"!==i.nodeName){const e=j.rowIndexMapper.getRenderableFromVisualIndex(o),t=j.columnIndexMapper.getRenderableFromVisualIndex(n);j.view._wt.getSetting("cellRenderer",e,t,i)}r(e)}var l;(0,s.isRegExp)(o)&&(l=o,o=function(e,t){t(l.test(e))}),(0,i.isFunction)(o)?(e=j.runHooks("beforeValidate",e,t.visualRow,t.prop,n),j._registerMicrotask(()=>{o.call(t,e,r=>{j&&(r=j.runHooks("afterValidate",r,e,t.visualRow,t.prop,n),t.valid=r,a(r),j.runHooks("postAfterValidate",r,e,t.visualRow,t.prop,n))})})):j._registerMicrotask(()=>{t.valid=!0,a(t.valid,!1)})},this.setDataAtCell=function(e,t,r,n){const o=Ce(e,t,r),i=[];let s,a,l,h=n;for(s=0,a=o.length;s<a;s++){const[e,t,r]=o[s];"object"!=typeof o[s]&&(0,H.throwWithCause)("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter"),"number"!=typeof o[s][1]&&(0,H.throwWithCause)("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`"),l=t>=this.countCols()?t:K.colToProp(t),i.push([e,l,X.getAtCell(this.toPhysicalRow(e),t),r])}h||"object"!=typeof e||(h=t);const c=we(i,h);j.runHooks("afterSetDataAtCell",c,h),fe(c,h,()=>{me(c,h)})},this.setDataAtRowProp=function(e,t,r,n){const o=Ce(e,t,r),i=[];let s,a,l=n;for(s=0,a=o.length;s<a;s++){const[e,t,r]=o[s];i.push([e,t,X.getAtCell(this.toPhysicalRow(e),t),r])}l||"object"!=typeof e||(l=t);const h=we(i,n);j.runHooks("afterSetDataAtRowProp",h,l),fe(h,l,()=>{me(h,l)})},this.listen=function(){j&&!j.isListening()&&(z.forEach(e=>{j!==e&&e.unlisten()}),W=j.guid,j.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(W=null,j.runHooks("afterUnlisten"))},this.isListening=function(){return W===j.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];Z.closeEditor(e),j.view.render(),t&&ce.isSelected()&&Z.prepareEditor()},this.populateFromArray=function(e,t,r,n,o,i,s){"object"==typeof r&&"object"==typeof r[0]||(0,H.throwWithCause)("populateFromArray parameter `input` must be an array of arrays");const a="number"==typeof n?j._createCellCoords(n,o):null;return q.populateFromArray(j._createCellCoords(e,t),r,a,i,s)},this.spliceCol=function(e,t,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];return K.spliceCol(e,t,r,...o)},this.spliceRow=function(e,t,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];return K.spliceRow(e,t,r,...o)},this.getSelected=function(){if(ce.isSelected())return(0,u.arrayMap)(ce.getSelectedRange(),e=>{let{from:t,to:r}=e;return[t.row,t.col,r.row,r.col]})},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedActive=function(){const e=this.getSelectedRangeActive();if(!e)return;const{from:t,to:r}=e;return[t.row,t.col,r.row,r.col]},this.getSelectedRange=function(){if(ce.isSelected())return Array.from(ce.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRangeActive=function(){return ce.getActiveSelectedRange()},this.getActiveSelectionLayerIndex=function(){return ce.getActiveSelectionLayerIndex()},this.emptySelectedCells=function(e){if(!ce.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,u.arrayEach)(ce.getSelectedRange(),e=>{if(e.isSingleHeader())return;const r=e.getTopStartCorner(),n=e.getBottomEndCorner();(0,y.rangeEach)(r.row,n.row,e=>{(0,y.rangeEach)(r.col,n.col,r=>{this.getCellMeta(e,r).readOnly||t.push([e,r,null])})})}),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||j.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||j.view.render())},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const r=e();return this.resumeExecution(t),r},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!j.view)return;const e=j.view,{width:t,height:r}=e.getLastSize(),{width:n,height:o}=j.rootElement.getBoundingClientRect(),i=n!==t||o!==r;!1===j.runHooks("beforeRefreshDimensions",{width:t,height:r},{width:n,height:o},i)||((i||e._wt.wtOverlays.scrollableElement===j.rootWindow)&&(e.setLastSize(n,o),e.adjustElementsSize(),j.render()),j.runHooks("afterRefreshDimensions",{width:t,height:r},{width:n,height:o},i))},this.updateData=function(e,t){(0,A.replaceData)(e,e=>{K=e},e=>{K=e,j.columnIndexMapper.fitToLength(this.getInitialColumnCount()),j.rowIndexMapper.fitToLength(this.countSourceRows()),q.adjustRowsAndCols(),ce.markSource("updateData"),ce.refresh(),ce.markEndSource()},{hotInstance:j,dataMap:K,dataSource:X,internalSource:"updateData",source:t,metaManager:ie,firstRun:ee})},this.loadData=function(e,t){(0,A.replaceData)(e,e=>{K=e},()=>{ie.clearCellsCache(),j.initIndexMappers(),q.adjustRowsAndCols(),ce.markSource("loadData"),ce.refresh(),ce.markEndSource(),ee&&(ee=[null,"loadData"])},{hotInstance:j,dataMap:K,dataSource:X,internalSource:"loadData",source:t,metaManager:ie,firstRun:ee})},this.getInitialColumnCount=function(){const e=se.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,i.isFunction)(e))if("array"===j.dataType){const r=this.countSourceCols();for(let n=0;n<r;n+=1)e(n)&&(t+=1)}else"object"!==j.dataType&&"function"!==j.dataType||(t=K.colToPropCache.length);else if((0,s.isDefined)(se.dataSchema)){const e=K.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,r,n){return(0,s.isUndefined)(e)?K.getAll():K.getRange(j._createCellCoords(e,t),j._createCellCoords(r,n),K.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,r,n){return K.getCopyableText(j._createCellCoords(e,t),j._createCellCoords(r,n))},this.getCopyableData=function(e,t){return K.getCopyable(e,K.colToProp(t))},this.getCopyableSourceData=function(e,t){return X.getCopyable(e,K.colToProp(t))},this.getSchema=function(){return K.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=(ee?j.loadData:j.updateData).bind(this);let n,o,a=!1;for(n in(0,s.isDefined)(e.rows)&&(0,H.throwWithCause)('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?'),(0,s.isDefined)(e.cols)&&(0,H.throwWithCause)('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?'),(0,s.isDefined)(e.ganttChart)&&(0,H.throwWithCause)('Since 8.0.0 the "ganttChart" setting is no longer supported.'),(0,s.isDefined)(e.rowHeights)&&(0,s.isDefined)(e.minRowHeights)&&(0,D.warn)("Both `rowHeights` and `minRowHeights` are defined in your configuration. As one is the alias of the other, only one of them can be used at a time. `rowHeights` will be used as the row height configuration."),e)if("data"===n||"language"===n);else if("className"===n)de("className",e.className);else if("tableClassName"===n&&j.table)de("tableClassName",e.tableClassName),j.view._wt.wtOverlays.syncOverlayTableClassNames();else if(I.Hooks.getSingleton().isRegistered(n)||I.Hooks.getSingleton().isDeprecated(n)){const t=e[n];(0,i.isFunction)(t)?(I.Hooks.getSingleton().addAsFixed(n,t,j),se[n]=t):Array.isArray(t)&&(I.Hooks.getSingleton().add(n,t,j),se[n]=t)}else!t&&(0,c.hasOwnProperty)(e,n)&&(ae[n]=e[n]);const l=(0,L.getThemeClassName)(j.rootContainer),h=(0,c.hasOwnProperty)(e,"themeName"),u=(0,c.hasOwnProperty)(e,"theme");if(h&&u&&(0,D.warn)("Both `theme` and `themeName` are defined in your configuration. These options are aliases and cannot be used together. The `themeName` option will be ignored."),t){let t;u&&"string"==typeof e.theme?t=e.theme:h&&"string"==typeof e.themeName&&e.themeName&&!u?(t=e.themeName,se.theme=e.themeName,se.themeName=void 0):l?t=l:j.themeManager&&(t=j.themeManager.getClassName()),j.useTheme(t)}else{const t=j.getCurrentThemeName();var d;if(u&&"string"==typeof e.theme&&t!==e.theme)j.useTheme(e.theme),null===(d=j.themeManager)||void 0===d||d.unmount();else if(h&&!u&&t!==e.themeName){var p;se.theme=e.themeName,se.themeName=void 0,j.useTheme(e.themeName),null===(p=j.themeManager)||void 0===p||p.unmount()}else(0,b.isRootInstance)(j)&&!l&&(0,c.isObject)(e.theme)&&(null===j.themeManager?(pe(e.theme),j.useTheme(j.themeManager.getClassName())):(j.themeManager.update(e.theme),j.useTheme(j.themeManager.getClassName())))}void 0===e.data&&void 0===se.data?r(null,"updateSettings"):void 0!==e.data?r(e.data,"updateSettings"):void 0!==e.columns&&(K.createMap(),j.initIndexMappers()),!ee&&e.language&&function(e){const t=(0,_.normalizeLanguageCode)(e);(0,T.hasLanguageDictionary)(t)?(j.runHooks("beforeLanguageChange",t),ae.language=t,j.runHooks("afterLanguageChange",t)):(0,_.warnUserAboutLanguageRegistration)(e)}(e.language);const g=j.countCols(),f=se.columns;if(f&&(0,i.isFunction)(f)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||ie.clearCache(),g>0)for(n=0,o=0;n<g;n++){if(f){const e=a?f(n):f[o];e&&ie.updateColumnMeta(o,e)}o+=1}(0,s.isDefined)(e.cell)&&(0,c.objectEach)(e.cell,e=>{j.setCellMetaObject(e.row,e.col,e)}),j.runHooks("afterCellMetaReset"),ee&&(0,A.runSourceDataValidators)(j,"init");let m=j.rootElement.style.height;if(""!==m&&(m=parseInt(j.rootElement.style.height,10)),t){j.rootElement.getAttribute("style")&&j.rootElement.setAttribute("data-initialstyle",j.rootElement.getAttribute("style"))}let C=e.height;if(void 0!==e.height)if((0,i.isFunction)(C)&&(C=C()),C=j.runHooks("beforeHeightChange",C),null===C){const e=j.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?j.rootElement.setAttribute("style",e):(j.rootElement.style.height="",j.rootElement.style.overflow="")}else void 0!==C&&(j.rootElement.style.height=isNaN(C)?`${C}`:`${C}px`,j.rootElement.style.overflow="clip");if(void 0!==e.width){let t=e.width;(0,i.isFunction)(t)&&(t=t()),t=j.runHooks("beforeWidthChange",t),j.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}t||(j.view&&(j.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),j.view._wt.exportSettingsAsClassNames()),j.runHooks("afterUpdateSettings",e)),q.adjustRowsAndCols(),j.view&&!ee&&(j.render(),j.view._wt.wtOverlays.adjustElementsSize()),t||!j.view||""!==m&&""!==C&&void 0!==C||m===C||j.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=j.getSelectedRangeActive();if(se.getValue){if((0,i.isFunction)(se.getValue))return se.getValue.call(j);if(e)return j.getData()[e.highlight.row][se.getValue]}else if(e)return j.getDataAtCell(e.highlight.row,e.highlight.col);return null},this.getSettings=function(){return se},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,r,n,o){q.alter(e,t,r,n,o)},this.getCell=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t,o=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;n=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;o=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===o||null===n||void 0===o||void 0===n?null:j.view.getCellAtCoords(j._createCellCoords(o,n),r)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:r,col:n}=t;let o=r,i=n;return r>=0&&(o=this.rowIndexMapper.getVisualFromRenderableIndex(r)),n>=0&&(i=this.columnIndexMapper.getVisualFromRenderableIndex(n)),j._createCellCoords(o,i)},this.colToProp=function(e){return K.colToProp(e)},this.propToCol=function(e){return K.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 K.get(e,K.colToProp(t))},this.getDataAtRowProp=function(e,t){return K.get(e,t)},this.getDataAtCol=function(e){const t=[],r=K.getRange(j._createCellCoords(0,e),j._createCellCoords(se.data.length-1,e),K.DESTINATION_RENDERER);for(let e=0;e<r.length;e+=1)for(let n=0;n<r[e].length;n+=1)t.push(r[e][n]);return t},this.getDataAtProp=function(e){const t=[],r=K.getRange(j._createCellCoords(0,K.propToCol(e)),j._createCellCoords(se.data.length-1,K.propToCol(e)),K.DESTINATION_RENDERER);for(let e=0;e<r.length;e+=1)for(let n=0;n<r[e].length;n+=1)t.push(r[e][n]);return t},this.getSourceData=function(e,t,r,n){let o;return o=void 0===e?X.getData():X.getByRange(j._createCellCoords(e,t),j._createCellCoords(r,n)),o},this.getSourceDataArray=function(e,t,r,n){let o;return o=void 0===e?X.getData(!0):X.getByRange(j._createCellCoords(e,t),j._createCellCoords(r,n),!0),o},this.getSourceDataAtCol=function(e){return X.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,r,n){const o=Ce(e,t,r),i=this.hasHook("afterSetSourceDataAtCell"),a=[],l=(e,t)=>{const r=this.toVisualRow(e),n=this.toVisualColumn(t);return Number.isInteger(n)?this.getCellMeta(r,n):{...Object.getPrototypeOf(se),...se}};i&&(0,u.arrayEach)(o,e=>{let[t,r,n]=e;const o=(0,B.getValueSetterValue)(n,l(t,r));a.push([t,r,X.getAtCell(t,r),o])}),(0,u.arrayEach)(o,e=>{let[t,r,o]=e;const i=l(t,r),s=(0,B.getValueSetterValue)(o,i);(0,A.runSourceDataValidator)(s,i,null!=n?n:"setSourceDataAtCell")&&X.setAtCell(t,r,s)}),i&&this.runHooks("afterSetSourceDataAtCell",a,n),this.render();const h=j.getActiveEditor();h&&(0,s.isDefined)(h.refreshValue)&&h.refreshValue()},this.getSourceDataAtRow=function(e){return X.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return X.getAtCell(e,t)},this.getDataAtRow=function(e){return K.getRange(j._createCellCoords(e,0),j._createCellCoords(e,this.countCols()-1),K.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,r,n){const o=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,r,n],[i,s]=o;let[,,a,l]=o,h=null,c=null;void 0===a&&(a=i),void 0===l&&(l=s);let u="mixed";return(0,y.rangeEach)(Math.max(Math.min(i,a),0),Math.max(i,a),e=>{let t=!0;return(0,y.rangeEach)(Math.max(Math.min(s,l),0),Math.max(s,l),r=>{const n=this.getCellMeta(e,r);return c=n.type,h?t=h===c:h=c,t}),u=t?c:"mixed",t}),u},this.removeCellMeta=function(e,t,r){const[n,o]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let i=ie.getCellMetaKeyValue(n,o,r);!1!==j.runHooks("beforeRemoveCellMeta",e,t,r,i)&&(ie.removeCellMeta(n,o,r),j.runHooks("afterRemoveCellMeta",e,t,r,i)),i=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];n.length>0&&!Array.isArray(n[0])&&(0,H.throwWithCause)("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array."),t>0&&ie.removeRow(this.toPhysicalRow(e),t),n.length>0&&(0,u.arrayEach)(n.reverse(),t=>{ie.createRow(this.toPhysicalRow(e)),(0,u.arrayEach)(t,(t,r)=>this.setCellMetaObject(e,r,t))}),j.render()},this.setCellMetaObject=function(e,t,r){"object"==typeof r&&(0,c.objectEach)(r,(r,n)=>{this.setCellMeta(e,t,n,r)})},this.setCellMeta=function(e,t,r,n){if(!1===j.runHooks("beforeSetCellMeta",e,t,r,n))return;let o=e,i=t;e<this.countRows()&&(o=this.toPhysicalRow(e)),t<this.countCols()&&(i=this.toPhysicalColumn(t)),ie.setCellMeta(o,i,r,n),j.runHooks("afterSetCellMeta",e,t,r,n)},this.getCellsMeta=function(){return ie.getCellsMeta()},this.getCellMeta=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},n=this.toPhysicalRow(e),o=this.toPhysicalColumn(t);return null===n&&(n=e),null===o&&(o=t),ie.getCellMeta(n,o,{visualRow:e,visualColumn:t,...r})},this.getColumnMeta=function(e){return ie.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return ie.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===j.dataType||se.columns)},this.getCellRenderer=function(e,t){const r="number"==typeof e?j.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof r?(0,f.getRenderer)(r):(0,s.isUndefined)(r)?(0,f.getRenderer)("text"):r},this.getCellEditor=function(e,t){const r="number"==typeof e?j.getCellMeta(e,t).editor:e.editor;return"string"==typeof r?(0,m.getEditor)(r):(0,s.isUndefined)(r)?(0,m.getEditor)("text"):r},this.getCellValidator=function(e,t){const r="number"==typeof e?j.getCellMeta(e,t).validator:e.validator;return"string"==typeof r?(0,C.getValidator)(r):r},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){Array.isArray(e)||(0,H.throwWithCause)("validateRows parameter `rows` must be an array"),this._validateCells(t,e)},this.validateColumns=function(e,t){Array.isArray(e)||(0,H.throwWithCause)("validateColumns parameter `columns` must be an array"),this._validateCells(t,void 0,e)},this._validateCells=function(e,t,r){const n=new ge;e&&(n.onQueueEmpty=e);let o=j.countRows()-1;for(;o>=0;){if(void 0!==t&&-1===t.indexOf(o)){o-=1;continue}let e=j.countCols()-1;for(;e>=0;)void 0===r||-1!==r.indexOf(e)?(n.addValidatorToQueue(),j.validateCell(j.getDataAtCell(o,e),j.getCellMeta(o,e),e=>{"boolean"!=typeof e&&(0,H.throwWithCause)("Validation error: result is not boolean"),!1===e&&(n.valid=!1),n.removeValidatorFormQueue()},"validateCells"),e-=1):e-=1;o-=1}n.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=se.rowHeaders,r=e;return void 0!==r&&(r=j.runHooks("modifyRowHeader",r)),void 0===r?(t=[],(0,y.rangeEach)(j.countRows()-1,e=>{t.push(j.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[r]?t=t[r]:(0,i.isFunction)(t)?t=t(r):t&&"string"!=typeof t&&"number"!=typeof t&&(t=r+1),t},this.hasRowHeaders=function(){return!!se.rowHeaders},this.hasColHeaders=function(){if(void 0!==se.colHeaders&&null!==se.colHeaders)return!!se.colHeaders;for(let e=0,t=j.countCols();e<t;e++)if(j.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=j.runHooks("modifyColHeader",e);if(void 0===r){const e=[],t=j.countCols();for(let r=0;r<t;r++)e.push(j.getColHeader(r));return e}let n=se.colHeaders;const o=j.toPhysicalColumn(r),s=function(e){const t=[],r=j.countCols();let n=0;for(;n<r;n++)(0,i.isFunction)(se.columns)&&se.columns(n)&&t.push(n);return t[e]}(o);return!1===se.colHeaders?n=null:se.columns&&(0,i.isFunction)(se.columns)&&se.columns(s)&&se.columns(s).title?n=se.columns(s).title:se.columns&&se.columns[o]&&se.columns[o].title?n=se.columns[o].title:Array.isArray(se.colHeaders)&&void 0!==se.colHeaders[o]?n=se.colHeaders[o]:(0,i.isFunction)(se.colHeaders)?n=se.colHeaders(o):se.colHeaders&&"string"!=typeof se.colHeaders&&"number"!=typeof se.colHeaders&&(n=(0,E.spreadsheetColumnLabel)(r)),n=j.runHooks("modifyColumnHeaderValue",n,e,t),n},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=j.getCellMeta(0,e).width}if(void 0!==t&&t!==se.width||(t=se.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=Number.parseInt(t,10))}return t},this.getColWidth=function(e,t){let r=j._getColWidthFromSettings(e);return r=j.runHooks("modifyColWidth",r,e,t),void 0===r&&(r=R.DEFAULT_COLUMN_WIDTH),r},this._getRowHeightFromSettings=function(e){var t;const r=j.stylesHandler.getDefaultRowHeight(e);let n=null!==(t=se.rowHeights)&&void 0!==t?t:se.minRowHeights;if(null!=n){switch(typeof n){case"object":n=n[e];break;case"function":n=n(e)}"string"==typeof n&&(n=Number.parseInt(n,10))}return null!=n&&n<r?r:n},this.getRowHeight=function(e,t){let r=j._getRowHeightFromSettings(e);return r=j.runHooks("modifyRowHeight",r,e,t),r},this.countSourceRows=function(){return X.countRows()},this.countSourceCols=function(){return X.countFirstRowKeys()},this.countRows=function(){return K.getLength()},this.countCols=function(){const e=se.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return j.view._wt.drawn?j.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return j.view._wt.drawn?j.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return j.view._wt.drawn?j.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return j.view._wt.drawn?j.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,y.rangeEachReverse)(j.countRows()-1,r=>{if(j.isEmptyRow(r))t+=1;else if(!0===e)return!1}),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,y.rangeEachReverse)(j.countCols()-1,r=>{if(j.isEmptyCol(r))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return se.isEmptyRow.call(j,e)},this.isEmptyCol=function(e){return se.isEmptyCol.call(j,e)},this.selectCell=function(e,t,r,n){let o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,s.isUndefined)(e)&&!(0,s.isUndefined)(t)&&this.selectCells([[e,t,r,n]],o,i)},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])&&J.suspend();const r=ce.selectCells(e);return r&&t&&j.listen(),J.resume(),r},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;return ce.selectColumns(e,t,r)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;return ce.selectRows(e,t,r)},this.deselectCell=function(){ce.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;J.skipNextScrollCycle(),ce.selectAll(e,t,r)};const ye=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){var r;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(r=arguments[4])||void 0===r||r});const{row:n,col:o,considerHiddenIndexes:s}=null!=e?e:{};let a=n,l=o;if((0,i.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===s||s){const e=Number.isInteger(n)&&n>=0,t=Number.isInteger(o)&&o>=0,r=e?ye(this.rowIndexMapper,n):void 0,i=t?ye(this.columnIndexMapper,o):void 0;if(null===r||null===i)return!1;a=e?j.rowIndexMapper.getRenderableFromVisualIndex(r):n,l=t?j.columnIndexMapper.getRenderableFromVisualIndex(i):o}const h=Number.isInteger(a),c=Number.isInteger(l);let u=!1;return h&&a>=0&&c&&l>=0?u=j.view.scrollViewport(j._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):h&&a>=0&&(c&&l<0||!c)?u=j.view.scrollViewportVertically(a,e.verticalSnap):c&&l>=0&&(h&&a<0||!h)&&(u=j.view.scrollViewportHorizontally(l,e.horizontalSnap)),(0,i.isFunction)(t)&&(u?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask(()=>t()))),u},this.scrollToFocusedCell=function(e){if(!this.selection.isSelected())return!1;(0,i.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeActive(),r=this.scrollViewportTo(t.toObject());return r?this.view.render():(0,i.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),r},this.destroy=function(){var e;(j._clearTimeouts(),j._clearMicrotasks(),j.view&&j.view.destroy(),X&&X.destroy(),X=null,(0,b.isRootInstance)(this))&&((0,F.uninstall)(),this.getFocusScopeManager().destroy(),null===(e=j.themeManager)||void 0===e||e.destroy());this.getShortcutManager().destroy(),he.clear(),ie.clearCache(),z.delete(this.guid),$.destroy(),Z&&Z.destroy(),j.rootContainer&&(0,o.empty)(j.rootContainer),j.rootPortalElement&&j.rootPortalElement.remove(),j.batchExecution(()=>{j.rowIndexMapper.unregisterAll(),j.columnIndexMapper.unregisterAll(),le.getItems().forEach(e=>{let[,t]=e;t.destroy()}),le.clear(),j.runHooks("afterDestroy")},!0),I.Hooks.getSingleton().destroy(j),(0,c.objectEach)(j,(e,t,r)=>{var n;(0,i.isFunction)(e)?r[t]=(n=t,()=>{(0,H.throwWithCause)(`The "${n}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(r[t]=null)}),j.isDestroyed=!0,K&&K.destroy(),K=null,q=null,ce=null,Z=null,j=null},this.getActiveEditor=function(){return Z.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return j.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return j.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return j.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return j.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return j.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return j.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return j.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return j.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return j.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return j.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return j.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return j.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return le.getItem((0,w.toUpperCaseFirst)(e))},this.getPluginName=function(e){return le.getId(e)},this.getInstance=function(){return j},this.addHook=function(e,t,r){I.Hooks.getSingleton().add(e,t,j,r)},this.hasHook=function(e){return I.Hooks.getSingleton().has(e,j)||I.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,r){I.Hooks.getSingleton().once(e,t,j,r)},this.removeHook=function(e,t){I.Hooks.getSingleton().remove(e,t,j)},this.runHooks=function(e,t,r,n,o,i,s){return I.Hooks.getSingleton().run(j,e,t,r,n,o,i,s)},this.getTranslatedPhrase=function(e,t){return(0,T.getTranslatedPhrase)(se.language,e,t)},this.toHTML=()=>(0,d.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,d.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{const t=!!ee;this.stylesHandler.useTheme(e);const r=this.stylesHandler.getThemeName();!t&&r&&((0,L.getThemeClassName)(this.rootContainer)&&((0,o.removeClass)(this.rootContainer,/ht-theme-.*/g),(0,o.addClass)(this.rootContainer,r)),j.render(),j.scrollViewportTo(0,0)),this.runHooks("afterSetTheme",r,t)},this.getCurrentThemeName=()=>this.stylesHandler.getThemeName(),this.getTableHeight=()=>this.rootElement.offsetHeight,this.getTableWidth=()=>this.rootElement.offsetWidth,this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,u.arrayEach)(this.timeouts,e=>{clearTimeout(e)})},this.microtasks=[],this._registerMicrotask=function(e){const t={cancelled:!1};this.microtasks.push(t),this.rootWindow.queueMicrotask(()=>{t.cancelled||e()})},this._clearMicrotasks=function(){(0,u.arrayEach)(this.microtasks,e=>{e.cancelled=!0}),this.microtasks.length=0},this._getEditorManager=function(){return Z},this._getDataSource=function(){return X},this._getMetaManager=function(){return ie};const ve=(0,x.createShortcutManager)({handleEvent:()=>j.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||j.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&ve.releasePressedKeys()}),this.getShortcutManager=function(){return ve},Q=new N.FocusGridManager(j);const Ee=(0,b.isRootInstance)(this)?(0,N.createFocusScopeManager)(j):null;this.getFocusManager=function(){return Q},this.getFocusScopeManager=function(){return(0,b.isRootInstance)(j)||(0,H.throwWithCause)("The FocusScopeManager is only available for the main Handsontable instance."),Ee};const Se=te.theme,be=te.themeName,Re=(0,L.getThemeClassName)(j.rootContainer);!(0,b.isRootInstance)(j)||Re||!(0,c.isObject)(Se)&&(Se||be)||pe(Se);(0,g.getPluginsNames)().forEach(e=>{const t=(0,g.getPlugin)(e);le.addItem(e,new t(this))}),(0,k.registerAllShortcutContexts)(j),(0,b.isRootInstance)(this)&&(0,N.registerAllFocusScopes)(j);ve.setActiveContextName("grid"),I.Hooks.getSingleton().run(j,"construct")};var o=r(2783),i=r(11526),s=r(67787),a=r(81136),l=n(r(64918)),h=n(r(23695)),c=r(81185),u=r(27637),d=r(80547),p=r(65517),g=r(20658),f=r(84502),m=r(14284),C=r(49269),w=r(58507),y=r(40499),v=n(r(38599)),E=r(52682),S=r(52199),b=r(75593),R=r(95004),T=r(44768),_=r(11802),M=r(46315),A=r(81663),I=r(2712),N=r(70396),O=r(46936),x=r(58282),k=r(79145),L=r(7948),P=r(66038),D=r(28065),H=r(15141),F=r(79527),B=r(6389),V=r(85796),U=r(29029);let W=null;const z=new Map;new Set},7162(e,t,r){"use strict";t.__esModule=!0;var n=r(98451);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))})},98451(e,t){"use strict";function r(e,t,r){n(e,t),t.set(e,r)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function o(e,t){return e.get(s(e,t))}function i(e,t,r){return e.set(s(e,t),r),r}function s(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}t.__esModule=!0;var a=new WeakMap,l=new WeakMap,h=new WeakSet;function c(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const n=s(h,this,u).call(this,o(a,this),e.row,t);if(null===n)return null;const i=s(h,this,u).call(this,o(l,this),e.col,r);return null===i?null:e.clone().assign({row:n,col:i})}function u(e,t,r){return t<0?t:e.getNearestNotHiddenIndex(t,r)}t.CellRangeToRenderableMapper=class{constructor(e){let{rowIndexMapper:t,columnIndexMapper:o}=e;var s,c;n(s=this,c=h),c.add(s),r(this,a,void 0),r(this,l,void 0),i(a,this,t),i(l,this,o)}toRenderable(e){const t="N-S"===e.getVerticalDirection()?1:-1,r="W-E"===e.getHorizontalDirection()?1:-1,n=s(h,this,c).call(this,e.from,t,r);if(null===n)return null;const o=s(h,this,c).call(this,e.to,-t,-r);if(null===o)return null;const i=e.clone();return i.from=n,i.to=o,i.includes(e.highlight)||(i.highlight=n),i}}},1117(e,t,r){"use strict";t.__esModule=!0;var n=r(89098);function o(e,t,r){i(e,t),t.set(e,r)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t,r){return e.set(l(e,t),r),r}function a(e,t){return e.get(l(e,t))}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;function p(e){a(h,this).set(e,[]),a(c,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;i(e=this,t=d),t.add(e),o(this,h,new Map),o(this,c,new Map),o(this,u,new Set),n.REGISTERED_HOOKS.forEach(e=>l(d,this,p).call(this,e))}getHooks(e){var t;return null!==(t=a(h,this).get(e))&&void 0!==t?t:[]}add(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(h,this).has(e)||(l(d,this,p).call(this,e),n.REGISTERED_HOOKS.push(e));const o=a(h,this).get(e),i=o.find(e=>e.callback===t);if(i)return void(!0===i.skip&&(i.skip=!1));const s=Number.isInteger(r.orderIndex)?r.orderIndex:0,c=!!r.runOnce,g=!!r.initialHook;let f=!1;if(g){const e=o.find(e=>e.initialHook);e&&(e.callback=t,f=!0)}if(!f){o.push({callback:t,orderIndex:s,runOnce:c,initialHook:g,skip:!1});let r=a(u,this).has(e);r||0===s||(r=!0,a(u,this).add(e)),r&&o.length>1&&a(h,this).set(e,o.toSorted((e,t)=>e.orderIndex-t.orderIndex))}}has(e){return a(h,this).has(e)&&a(h,this).get(e).length>0}remove(e,t){if(!a(h,this).has(e))return!1;const r=a(h,this).get(e),n=r.find(e=>e.callback===t);if(n){let t=a(c,this).get(e);return n.skip=!0,t+=1,t>100&&(a(h,this).set(e,r.filter(e=>!e.skip)),t=0),a(c,this).set(e,t),!0}return!1}destroy(){a(h,this).clear(),a(c,this).clear(),s(h,this,null),s(c,this,null)}}},89098(e,t){"use strict";t.__esModule=!0;t.REGISTERED_HOOKS=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceCacheUpdate","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","beforeCompositionStart","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceCacheUpdate","afterRowSequenceChange","beforeViewportScrollVertically","beforeViewportScrollHorizontally","beforeViewportScroll","afterScrollHorizontally","afterScrollVertically","afterScroll","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSelectionFocusSet","beforeSelectColumns","afterSelectColumns","beforeSelectRows","afterSelectRows","beforeSelectAll","afterSelectAll","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterSetTheme","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeHeightChange","beforeWidthChange","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","beforePageChange","afterPageChange","beforePageSizeChange","afterPageSizeChange","afterPageSizeVisibilityChange","afterPageCounterVisibilityChange","afterPageNavigationVisibilityChange","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","beforeBeginEditing","afterDialogHide","afterDialogShow","beforeDialogHide","beforeDialogShow","dialogFocusPreviousElement","dialogFocusNextElement","afterDialogFocus","beforeLoadingShow","afterLoadingShow","beforeLoadingHide","afterLoadingHide","beforeEmptyDataStateShow","afterEmptyDataStateShow","beforeEmptyDataStateHide","afterEmptyDataStateHide","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([[]])},66503(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(27637),s=r(58507),a=r(28065),l=r(27033),h=r(11526),c=r(89098),u=r(1117);const d=l.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
37
  learn about the migration path.`;class p{constructor(){(0,o.default)(this,"globalBucket",new u.HooksBucket)}static getSingleton(){return g}getBucket(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=new u.HooksBucket),e.pluginHookBucket):this.globalBucket}add(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,i.arrayEach)(t,t=>this.add(e,t,r)):(c.REMOVED_HOOKS.has(e)&&(0,a.warn)((0,s.substitute)(d,{hookName:e,removedInVersion:c.REMOVED_HOOKS.get(e)})),c.DEPRECATED_HOOKS.has(e)&&(0,a.warn)(c.DEPRECATED_HOOKS.get(e)),this.getBucket(r).add(e,t,{orderIndex:n,runOnce:!1})),this}once(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,i.arrayEach)(t,t=>this.once(e,t,r)):this.getBucket(r).add(e,t,{orderIndex:n,runOnce:!0}),this}addAsFixed(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Array.isArray(t)?(0,i.arrayEach)(t,t=>this.addAsFixed(e,t,r)):this.getBucket(r).add(e,t,{initialHook:!0}),this}remove(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.getBucket(r).remove(e,t)}has(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.getBucket(t).has(e)}run(e,t,r,n,o,i,s,a){{const l=this.getBucket().getHooks(t),c=l?l.length:0;let u=0;if(c)for(;u<c;){if(!l[u]||l[u].skip){u+=1;continue}const c=(0,h.fastCall)(l[u].callback,e,r,n,o,i,s,a);void 0!==c&&(r=c),l[u]&&l[u].runOnce&&this.remove(t,l[u].callback),u+=1}}{const l=this.getBucket(e).getHooks(t),c=l?l.length:0;let u=0;if(c)for(;u<c;){if(!l[u]||l[u].skip){u+=1;continue}const c=(0,h.fastCall)(l[u].callback,e,r,n,o,i,s,a);void 0!==c&&(r=c),l[u]&&l[u].runOnce&&this.remove(t,l[u].callback,e),u+=1}}return r}destroy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.getBucket(e).destroy()}register(e){this.isRegistered(e)||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=p;const g=new p;t.default=p},2712(e,t,r){"use strict";t.__esModule=!0;var n=r(7162);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))});var o=r(66503);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))});var i=r(66926);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))})},66926(e,t,r){"use strict";t.__esModule=!0,t.createViewportScroller=function(e){const{selection:t}=e;let r=!1,c=!1;return{resume(){c=!1},suspend(){c=!0},skipNextScrollCycle(){r=!0},scrollTo(u){var d;if(r||c)return void(r=!1);let p;t.isFocusSelectionChanged()?p=(0,i.focusScrollStrategy)(e):t.isSelectedByCorner()?p=(0,o.cornerHeaderScrollStrategy)(e):t.isSelectedByRowHeader()?p=(0,l.rowHeaderScrollStrategy)(e):t.isSelectedByColumnHeader()?p=(0,n.columnHeaderScrollStrategy)(e):1===t.getSelectedRange().size()&&t.isMultiple()?p=(0,s.multipleScrollStrategy)(e):1!==t.getSelectedRange().size()||t.isMultiple()?t.getSelectedRange().size()>1&&(p=(0,a.noncontiguousScrollStrategy)(e)):p=(0,h.singleScrollStrategy)(e),null===(d=p)||void 0===d||d(u)}}};var n=r(5405),o=r(55778),i=r(85650),s=r(71902),a=r(67133),l=r(89135),h=r(70838)},5405(e,t,r){"use strict";t.__esModule=!0,t.columnHeaderScrollStrategy=function(e){return t=>{const r=(0,n.createScrollTargetCalculator)(e).getComputedColumnTarget(t);e.scrollViewportTo({col:r},()=>{const t=!!e.getSettings().colHeaders;(0,n.scrollWindowToCell)(e.getCell(t?-1:0,r,!0))})}};var n=r(60575)},55778(e,t){"use strict";t.__esModule=!0,t.cornerHeaderScrollStrategy=function(){return()=>{}}},85650(e,t,r){"use strict";t.__esModule=!0,t.focusScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject(),()=>{const t=e.getSelectedRangeActive();if(!t)return;const{row:r,col:o}=t.highlight;(0,n.scrollWindowToCell)(e.getCell(r,o,!0))})}};var n=r(60575)},71902(e,t,r){"use strict";t.__esModule=!0,t.multipleScrollStrategy=function(e){return t=>{const r=(0,n.createScrollTargetCalculator)(e),o={row:r.getComputedRowTarget(t),col:r.getComputedColumnTarget(t)};e.scrollViewportTo(o,()=>{const{row:t,col:r}=o;(0,n.scrollWindowToCell)(e.getCell(t,r,!0))})}};var n=r(60575)},67133(e,t,r){"use strict";t.__esModule=!0,t.noncontiguousScrollStrategy=function(e){return t=>{const r=(0,n.createScrollTargetCalculator)(e),o={row:r.getComputedRowTarget(t),col:r.getComputedColumnTarget(t)};e.scrollViewportTo(o,()=>{const{row:t,col:r}=o;(0,n.scrollWindowToCell)(e.getCell(t,r,!0))})}};var n=r(60575)},89135(e,t,r){"use strict";t.__esModule=!0,t.rowHeaderScrollStrategy=function(e){return t=>{const r=(0,n.createScrollTargetCalculator)(e).getComputedRowTarget(t);e.scrollViewportTo({row:r},()=>{const t=!!e.getSettings().rowHeaders;(0,n.scrollWindowToCell)(e.getCell(r,t?-1:0,!0))})}};var n=r(60575)},70838(e,t,r){"use strict";t.__esModule=!0,t.singleScrollStrategy=function(e){return t=>{const r=e.selection.getSelectionSource(),{row:o,col:i}=t,s=()=>{(0,n.scrollWindowToCell)(e.getCell(o,i,!0))};if(o<0&&i>=0)e.scrollViewportTo({col:i},s);else if(i<0&&o>=0)e.scrollViewportTo({row:o},s);else{if("mouse"===r&&(i===e.view.getLastPartiallyVisibleColumn()||o===e.view.getLastPartiallyVisibleRow()))return;e.scrollViewportTo({row:o,col:i},s)}}};var n=r(60575)},60575(e,t,r){"use strict";t.__esModule=!0,t.createScrollTargetCalculator=function(e){const{selection:t,view:r}=e,n=e.getSelectedRangeActive(),o=t.getSelectionSource(),i=r.getFirstFullyVisibleColumn(),s=r.getLastFullyVisibleColumn(),a=n.getTopStartCorner().col,l=n.getBottomEndCorner().col,h=a<=i,c=l>=s,u=r.getFirstFullyVisibleRow(),d=r.getLastFullyVisibleRow(),p=n.getTopStartCorner().row,g=n.getBottomEndCorner().row,f=p<=u,m=g>=d;return{getComputedColumnTarget:e=>"mouse"===o||"keyboard"===o?e.col:h&&c?n.highlight.col:h?a:c?l:e.col,getComputedRowTarget:e=>"mouse"===o||"keyboard"===o?e.row:f&&m?n.highlight.row:f?p:m?g:e.row}},t.scrollWindowToCell=function(e){(0,n.isHTMLElement)(e)&&e.scrollIntoView({block:"nearest",inline:"nearest"})};var n=r(2783)},87845(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(14652),s=r(52682),a=r(81185),l=r(27637),h=r(40499),c=r(67787),u=r(6389),d=r(15141);class p{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,t,r){(0,o.default)(this,"hot",void 0),(0,o.default)(this,"metaManager",void 0),(0,o.default)(this,"tableMeta",void 0),(0,o.default)(this,"dataSource",void 0),(0,o.default)(this,"duckSchema",void 0),(0,o.default)(this,"colToPropCache",void 0),(0,o.default)(this,"propToColCache",void 0),this.hot=e,this.metaManager=r,this.tableMeta=r.getTableMeta(),this.dataSource=t,this.refreshDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();void 0===e&&(0,d.throwWithCause)("trying to create `columns` definition but you didn't provide `schema` nor `data`");const t=this.tableMeta.columns;let r;if(this.colToPropCache=[],this.propToColCache=new Map,t){let n=0,o=0,i=!1;if("function"==typeof t){const t=(0,a.deepObjectSize)(e);n=t>0?t:this.countFirstRowKeys(),i=!0}else{const e=this.tableMeta.maxCols;n=Math.min(e,t.length)}for(r=0;r<n;r++){const e=i?t(r):t[r];if((0,a.isObject)(e)){if(void 0!==e.data){const t=i?o:r;this.colToPropCache[t]=e.data,this.propToColCache.set(e.data,t)}o+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return(0,s.countFirstRowKeys)(this.dataSource)}recursiveDuckColumns(e,t,r){let n,o=t,i=r;return void 0===o&&(o=0,i=""),"object"!=typeof e||Array.isArray(e)||(0,a.objectEach)(e,(e,t)=>{null===e?(n=i+t,this.colToPropCache.push(n),this.propToColCache.set(n,o),o+=1):o=this.recursiveDuckColumns(e,o,`${t}.`)}),o}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 r=this.hot.toVisualColumn(e);return null===r?e:r}getSchema(){const e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?(0,a.duckSchema)(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:r,mode:n="above"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=this.hot.countSourceRows();let i=o,s=0,l=e;("number"!=typeof l||l>=o)&&(l=o),l<this.hot.countRows()&&(i=this.hot.toPhysicalRow(l));if(!1===this.hot.runHooks("beforeCreateRow",l,t,r)||null===i)return{delta:0};const c=this.tableMeta.maxRows,u=this.getSchema().length,d=[];for(;s<t&&o+s<c;){let e=null;"array"===this.hot.dataType?this.tableMeta.dataSchema?e=(0,a.deepClone)(this.getSchema()):(e=[],(0,h.rangeEach)(u-1,()=>e.push(null))):"function"===this.hot.dataType?e=this.tableMeta.dataSchema(l+s):(e={},(0,a.deepExtend)(e,this.getSchema())),d.push(e),s+=1}this.hot.rowIndexMapper.insertIndexes(l,s),"below"===n&&(i=Math.min(i+1,o)),this.spliceData(i,0,d);const p=this.hot.toVisualRow(i);return this.hot.countSourceRows()===d.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),s>0&&(null==e?this.metaManager.createRow(null,s):"auto"!==r&&this.metaManager.createRow(i,t)),this.hot.runHooks("afterCreateRow",p,s,r),{delta:s,startPhysicalIndex:i}}createCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:r,mode:n="start"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.hot.isColumnModificationAllowed()||(0,d.throwWithCause)("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 o=this.dataSource,i=this.tableMeta.maxCols,s=this.hot.countSourceCols(),a=this.hot.countCols(),l=this.hot.countSourceRows(),h="number"==typeof e&&e<=s?e:a;if(!1===this.hot.runHooks("beforeCreateCol",h,t,r))return{delta:0};const c=h<a?this.hot.toPhysicalColumn(h):s,u="end"===n?Math.min(c+1,s):c;let p=0;for(let e=u;p<t&&a+p<i;e++){if("number"!=typeof h||h>=a+p)if(l>0)for(let e=0;e<l;e+=1)void 0===o[e]&&(o[e]=[]),o[e].push(null);else o.push([null]);else for(let t=0;t<l;t++)o[t].splice(e,0,null);p+=1}return p>0&&(null==e?this.metaManager.createColumn(null,p):"auto"!==r&&this.metaManager.createColumn(u,t)),this.hot.columnIndexMapper.insertIndexes(h,p,n),this.hot.runHooks("afterCreateCol",this.hot.toVisualColumn(u),p,r),this.refreshDuckSchema(),{delta:p,startPhysicalIndex:u}}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0,n=Number.isInteger(e)?e:-t;const o=this.visualRowsToPhysical(n,t),i=this.hot.countSourceRows();n=(i+n)%i;if(!1===this.hot.runHooks("beforeRemoveRow",n,o.length,o,r))return!1;const s=o.length;if(this.filterData(n,s,o),n<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(o);const e=(0,c.isDefined)(this.tableMeta.columns)||(0,c.isDefined)(this.tableMeta.dataSchema)||this.tableMeta.colHeaders;0!==this.hot.rowIndexMapper.getNotTrimmedIndexesLength()||e||this.hot.columnIndexMapper.setIndexesSequence([])}return o.slice(0).sort((e,t)=>t-e).forEach(e=>{this.metaManager.removeRow(e,1)}),this.hot.runHooks("afterRemoveRow",n,s,o,r),!0}removeCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0;("object"===this.hot.dataType||this.tableMeta.columns)&&(0,d.throwWithCause)("cannot remove column with object data source or columns option specified");let n="number"!=typeof e?-t:e;n=(this.hot.countCols()+n)%this.hot.countCols();const o=this.visualColumnsToPhysical(n,t),i=o.slice(0).sort((e,t)=>t-e);if(!1===this.hot.runHooks("beforeRemoveCol",n,t,o,r))return!1;let s=!0;const a=i.length,l=this.dataSource;for(let e=0;e<a;e++)s&&o[0]!==o[e]-e&&(s=!1);if(s)for(let e=0,r=this.hot.countSourceRows();e<r;e++)l[e].splice(o[0],t),0===e&&this.metaManager.removeColumn(o[0],t);else for(let e=0,t=this.hot.countSourceRows();e<t;e++)for(let t=0;t<a;t++)l[e].splice(i[t],1),0===e&&this.metaManager.removeColumn(i[t],1);return n<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(o),this.tableMeta.rowHeaders||0!==this.hot.columnIndexMapper.getNotTrimmedIndexesLength()||this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",n,t,o,r),this.refreshDuckSchema(),!0}spliceCol(e,t,r){const n=this.hot.getDataAtCol(e),o=n.slice(t,t+r),i=n.slice(t+r);for(var s=arguments.length,a=new Array(s>3?s-3:0),h=3;h<s;h++)a[h-3]=arguments[h];(0,l.extendArray)(a,i);let c=0;for(;c<r;)a.push(null),c+=1;return(0,l.to2dArray)(a),this.hot.populateFromArray(t,e,a,null,null,"spliceCol"),o}spliceRow(e,t,r){const n=this.hot.getSourceDataAtRow(e),o=n.slice(t,t+r),i=n.slice(t+r);for(var s=arguments.length,a=new Array(s>3?s-3:0),h=3;h<s;h++)a[h-3]=arguments[h];(0,l.extendArray)(a,i);let c=0;for(;c<r;)a.push(null),c+=1;return this.hot.populateFromArray(e,t,[a],null,null,"spliceRow"),o}spliceData(e,t,r){if(!1!==this.hot.runHooks("beforeDataSplice",e,t,r)){const t=[...this.dataSource.slice(0,e),...r,...this.dataSource.slice(e)];this.dataSource.length=0,t.forEach(e=>this.dataSource.push(e))}}filterData(e,t,r){let n=this.hot.runHooks("filterData",e,t,r);!1===Array.isArray(n)&&(n=this.dataSource.filter((e,t)=>-1===r.indexOf(t))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,n)}get(e,t){const r=this.hot.toPhysicalRow(e);let n=this.dataSource[r];const o=this.hot.runHooks("modifyRowData",r);n=isNaN(o)?o:n;const{dataDotNotation:i}=this.hot.getSettings();let s=null;if(n&&n.hasOwnProperty&&(0,a.hasOwnProperty)(n,t))s=n[t];else if(i&&"string"==typeof t&&t.indexOf(".")>-1){let e=n;if(!e)return null;const r=t.split(".");for(let t=0,n=r.length;t<n;t++)if(e=e[r[t]],void 0===e)return null;s=e}else"function"==typeof t&&(s=t(this.dataSource.slice(r,r+1)[0]));const l=this.propToCol(t),c=this.hot.toPhysicalColumn(l);if((0,h.isUnsignedNumber)(r)&&(0,h.isUnsignedNumber)(c)&&(s=(0,u.getValueGetterValue)(s,this.metaManager.getCellMeta(r,c,{visualRow:e,visualColumn:l,skipMetaExtension:!0}))),this.hot.hasHook("modifyData")){const t=(0,a.createObjectPropListener)(s);this.hot.runHooks("modifyData",e,l,t,"get"),t.isTouched()&&(s=t.value)}return s}getCopyable(e,t){return this.hot.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}set(e,t,r){const n=this.hot.toPhysicalRow(e);let o=r,i=this.dataSource[n];const s=this.hot.runHooks("modifyRowData",n);if(i=isNaN(s)?s:i,this.hot.hasHook("modifyData")){const r=(0,a.createObjectPropListener)(o);this.hot.runHooks("modifyData",e,this.propToCol(t),r,"set"),r.isTouched()&&(o=r.value)}const{dataDotNotation:l}=this.hot.getSettings();if(i&&i.hasOwnProperty&&(0,a.hasOwnProperty)(i,t))i[t]=o;else if(l&&"string"==typeof t&&t.indexOf(".")>-1){let e,r=i,n=0;const s=t.split(".");for(n=0,e=s.length-1;n<e;n++){if("__proto__"===s[n]||"constructor"===s[n]||"prototype"===s[n])return;void 0===r[s[n]]&&(r[s[n]]={}),r=r[s[n]]}r[s[n]]=o}else if("function"==typeof t)t(this.dataSource.slice(n,n+1)[0],o);else{if("__proto__"===t||"constructor"===t||"prototype"===t)return;i[t]=o}}visualRowsToPhysical(e,t){const r=this.hot.countSourceRows(),n=[];let o,i=(r+e)%r,s=t;for(;i<r&&s;)o=this.hot.toPhysicalRow(i),n.push(o),s-=1,i+=1;return n}visualColumnsToPhysical(e,t){const r=this.hot.countCols(),n=[];let o=(r+e)%r,i=t;for(;o<r&&i;){const e=this.hot.toPhysicalColumn(o);n.push(e),i-=1,o+=1}return n}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 r=this.hot.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(r,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,p.DESTINATION_RENDERER):[]}countCachedColumns(){return this.colToPropCache.length}getRange(e,t,r){const n=[];let o,i,s;const a=this.tableMeta.maxRows,l=this.tableMeta.maxCols;if(0===a||0===l)return[];const h=r===p.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,c=Math.min(Math.max(a-1,0),Math.max(e.row,t.row)),u=Math.min(Math.max(l-1,0),Math.max(e.col,t.col));for(o=Math.min(e.row,t.row);o<=c;o++){s=[];const r=o>=0?this.hot.toPhysicalRow(o):o;for(i=Math.min(e.col,t.col);i<=u&&null!==r;i++)s.push(h.call(this,o,this.colToProp(i)));null!==r&&n.push(s)}return n}getText(e,t){return(0,i.stringify)(this.getRange(e,t,p.DESTINATION_RENDERER))}getCopyableText(e,t){return(0,i.stringify)(this.getRange(e,t,p.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=p},50554(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(81185),s=r(52682),a=r(27637),l=r(40499),h=r(11526);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,o.default)(this,"hot",void 0),(0,o.default)(this,"data",void 0),(0,o.default)(this,"dataType","array"),(0,o.default)(this,"colToProp",()=>{}),(0,o.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,a.arrayEach)(this.data,(r,n)=>{const o=this.getAtCell(n,e);t.push(o)}),t}getAtRow(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=void 0===t&&void 0===r,{dataDotNotation:s}=this.hot.getSettings();let a=null,c=null;if(a=this.modifyRowData(e),Array.isArray(a))c=[],o?a.forEach((t,r)=>{c[r]=this.getAtPhysicalCell(e,r,a)}):(0,l.rangeEach)(t,r,r=>{c[r-t]=this.getAtPhysicalCell(e,r,a)});else if((0,i.isObject)(a)||(0,h.isFunction)(a))if(c=n?[]:{},!o||n){const o=0,h=this.countFirstRowKeys()-1;(0,l.rangeEach)(o,h,l=>{const u=this.colToProp(l);if(l>=(t||o)&&l<=(r||h)&&!Number.isInteger(u)){const t=this.getAtPhysicalCell(e,u,a);n?c.push(t):s?(0,i.setProperty)(c,u,t):c[u]=t}})}else(0,i.objectEach)(a,(t,r)=>{const n=this.getAtPhysicalCell(e,r,a);s?(0,i.setProperty)(c,r,n):c[r]=n});return c}setAtCell(e,t,r){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){const n=(0,i.createObjectPropListener)(r);this.hot.runHooks("modifySourceData",e,t,n,"set"),n.isTouched()&&(r=n.value)}["__proto__","constructor","prototype"].includes(e)||(Number.isInteger(t)?this.data[e][t]=r:(0,i.setProperty)(this.data[e],t,r))}}getAtPhysicalCell(e,t,r){let n=null;if(r)if("string"==typeof t){const{dataDotNotation:e}=this.hot.getSettings();n=e?(0,i.getProperty)(r,t):r[t]}else n="function"==typeof t?t(r):r[t];if(this.hot.hasHook("modifySourceData")){const r=(0,i.createObjectPropListener)(n);this.hot.runHooks("modifySourceData",e,t,r,"get"),r.isTouched()&&(n=r.value)}return n}getAtCell(e,t){const r=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),r)}getByRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,o=null,i=null,s=null,a=null;null===e||null===t?(n=!0,o=0,s=this.countRows()-1):(o=Math.min(e.row,t.row),i=Math.min(e.col,t.col),s=Math.max(e.row,t.row),a=Math.max(e.col,t.col));const h=[];return(0,l.rangeEach)(o,s,e=>{h.push(n?this.getAtRow(e,void 0,void 0,r):this.getAtRow(e,i,a,r))}),h}getCopyable(e,t){const r=this.propToCol(t);return this.hot.getCellMeta(e,r).copyable?this.getAtCell(this.hot.toPhysicalRow(e),r):""}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,s.countFirstRowKeys)(this.data)}destroy(){this.data=null,this.hot=null}}},81663(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(87845));t.DataMap=o.default;var i=n(r(50554));t.DataSource=i.default;var s=n(r(98056));t.MetaManager=s.default;var a=n(r(1160));t.metaSchemaFactory=a.default;var l=r(83851);t.replaceData=l.replaceData;var h=r(20792);t.DynamicCellMetaMod=h.DynamicCellMetaMod;var c=r(12746);t.ExtendMetaPropertiesMod=c.ExtendMetaPropertiesMod;var u=r(36870);t.runSourceDataValidator=u.runSourceDataValidator,t.runSourceDataValidators=u.runSourceDataValidators},98056(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(42690)),i=n(r(98923)),s=n(r(33135)),a=n(r(87481)),l=n(r(27348)),h=r(81185),c=r(15141);class u{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.hot=e,this.globalMeta=new o.default(e),this.tableMeta=new i.default(this.globalMeta),this.columnMeta=new s.default(this.globalMeta),this.cellMeta=new a.default(this.columnMeta),r.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,r){const n=this.cellMeta.getMeta(e,t);return n.visualRow=r.visualRow,n.visualCol=r.visualColumn,n.row=e,n.col=t,r.skipMetaExtension||this.runLocalHooks("afterGetCellMeta",n),n}getCellMetaKeyValue(e,t,r){return"string"!=typeof r&&(0,c.throwWithCause)("The passed cell meta object key is not a string"),this.cellMeta.getMeta(e,t,r)}setCellMeta(e,t,r,n){this.cellMeta.setMeta(e,t,r,n)}updateCellMeta(e,t,r){this.cellMeta.updateMeta(e,t,r)}removeCellMeta(e,t,r){this.cellMeta.removeMeta(e,t,r)}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=u,(0,h.mixin)(u,l.default)},608(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(22417),s=r(40499);class a{constructor(e){(0,o.default)(this,"valueFactory",void 0),(0,o.default)(this,"data",[]),(0,o.default)(this,"index",[]),(0,o.default)(this,"holes",new Set),this.valueFactory=e}obtain(e){(0,i.assert)(()=>(0,s.isUnsignedNumber)(e),"Expecting an unsigned number.");const t=this._getStorageIndexByKey(e);let r;if(t>=0)r=this.data[t],void 0===r&&(r=this.valueFactory(e),this.data[t]=r);else if(r=this.valueFactory(e),this.holes.size>0){const t=this.holes.values().next().value;this.holes.delete(t),this.data[t]=r,this.index[e]=t}else this.data.push(r),this.index[e]=this.data.length-1;return r}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,i.assert)(()=>(0,s.isUnsignedNumber)(e)||(0,i.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const r=[],n=this.data.length;for(let e=0;e<t;e++)r.push(n+e),this.data.push(void 0);const o=(0,i.isNullish)(e)?this.index.length:e;this.index=[...this.index.slice(0,o),...r,...this.index.slice(o)]}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,i.assert)(()=>(0,s.isUnsignedNumber)(e)||(0,i.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const r=this.index.splice((0,i.isNullish)(e)?this.index.length-t:e,t);for(let e=0;e<r.length;e++){const t=r[e];"number"==typeof t&&this.holes.add(t)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter((e,t)=>void 0!==e&&!this.holes.has(t))[Symbol.iterator]()}entries(){const e=[];for(let t=0;t<this.data.length;t++){const r=this._getKeyByStorageIndex(t);-1!==r&&void 0!==this.data[t]&&e.push([r,this.data[t]])}let t=0;return{next:()=>{if(t<e.length){const r=e[t];return t+=1,{value:r,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}t.default=a},87481(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(22417),s=n(r(608)),a=r(81185),l=r(67787),h=r(40499);t.default=class{constructor(e){(0,o.default)(this,"columnMeta",void 0),(0,o.default)(this,"metas",new s.default(()=>this._createRow())),this.columnMeta=e}updateMeta(e,t,r){const n=this.getMeta(e,t);(0,a.extend)(n,r),(0,i.extendByMetaType)(n,r)}createRow(e,t){this.metas.insert(e,t)}createColumn(e,t){for(let r=0;r<this.metas.size();r++)this.metas.obtain(r).insert(e,t)}removeRow(e,t){this.metas.remove(e,t)}removeColumn(e,t){for(let r=0;r<this.metas.size();r++)this.metas.obtain(r).remove(e,t)}getMeta(e,t,r){const n=this.metas.obtain(e).obtain(t);return void 0===r?n:n[r]}setMeta(e,t,r,n){var o;const i=this.metas.obtain(e).obtain(t);null===(o=i._automaticallyAssignedMetaProps)||void 0===o||o.delete(r),i[r]=n}removeMeta(e,t,r){delete this.metas.obtain(e).obtain(t)[r]}getMetas(){const e=[],t=Array.from(this.metas.values());for(let r=0;r<t.length;r++)(0,l.isDefined)(t[r])&&e.push(...t[r].values());return e}getMetasAtRow(e){(0,i.assert)(()=>(0,h.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 s.default(e=>this._createMeta(e))}_createMeta(e){return new(this.columnMeta.getMetaConstructor(e))}}},33135(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(81185),s=r(22417),a=n(r(608));const l=["data","width"];t.default=class{constructor(e){(0,o.default)(this,"globalMeta",void 0),(0,o.default)(this,"metas",new a.default(()=>this._createMeta())),this.globalMeta=e,this.metas=new a.default(()=>this._createMeta())}updateMeta(e,t){const r=this.getMeta(e);(0,i.extend)(r,t),(0,s.extendByMetaType)(r,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return(0,s.columnFactory)(this.globalMeta.getMetaConstructor(),l).prototype}}},42690(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(81185),s=r(22417),a=n(r(1160));t.default=class{constructor(e){(0,o.default)(this,"metaCtor",class{}),(0,o.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,i.extend)(this.meta,(0,a.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,i.extend)(this.meta,e),(0,s.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},98923(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(81185),s=r(22417);t.default=class{constructor(e){(0,o.default)(this,"meta",void 0);const t=e.getMetaConstructor();this.meta=new t}getMeta(){return this.meta}updateMeta(e){(0,i.extend)(this.meta,e),(0,s.extendByMetaType)(this.meta,e,e)}}},1160(e,t,r){"use strict";t.__esModule=!0;var n=r(67787),o=r(81185);t.default=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dialog:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,emptyDataState:!1,enterBeginsEditing:!0,enterCommits:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,filterSelectedItems:!0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,initialState:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,r,o;for(t=0,r=this.countRows();t<r;t++)if(o=this.getDataAtCell(t,e),!1===(0,n.isEmpty)(o))return!1;return!0},isEmptyRow(e){let t,r,i,s;for(t=0,r=this.countCols();t<r;t++)if(i=this.getDataAtCell(e,t),!1===(0,n.isEmpty)(i))return"object"==typeof i&&(s=this.getCellMeta(e,t),(0,o.isObjectEqual)(this.getSchema()[s.prop],i));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",loading:!1,manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,maxSelections:void 0,mergeCells:!1,minCols:0,minRowHeights:void 0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,pagination:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,valueFormatter:void 0,valueParser:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,searchInput:!0,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,sourceSortFunction:void 0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,textEllipsis:!1,themeName:void 0,theme:void 0,injectCoreCss:!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,sourceDataValidator:void 0,sourceDataWarningMessage:void 0,valueGetter:void 0,valueSetter:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0,sanitizer:void 0,parsePastedValue:!1})},20792(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(66503),s=r(81185),a=r(11526);t.DynamicCellMetaMod=class{constructor(e){var t=this;(0,o.default)(this,"metaManager",void 0),(0,o.default)(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",function(){return t.extendCellMeta(...arguments)}),i.Hooks.getSingleton().add("beforeRender",e=>{e&&this.metaSyncMemo.clear()},this.metaManager.hot)}extendCellMeta(e){var t;const{row:r,col:n}=e;if(null!==(t=this.metaSyncMemo.get(r))&&void 0!==t&&t.has(n))return;const{visualRow:o,visualCol:i}=e,l=this.metaManager.hot,h=l.colToProp(i);e.prop=h,l.runHooks("beforeGetCellMeta",o,i,e);const c=(0,s.hasOwnProperty)(e,"type")?e.type:null;let u=(0,a.isFunction)(e.cells)?e.cells(r,n,h):null;var d;c&&(u?u.type=null!==(d=u.type)&&void 0!==d?d:c:u={type:c});u&&this.metaManager.updateCellMeta(r,n,u),l.runHooks("afterGetCellMeta",o,i,e),this.metaSyncMemo.has(r)||this.metaSyncMemo.set(r,new Set),this.metaSyncMemo.get(r).add(n)}}},12746(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(28065),s=r(15141);function a(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function l(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}const h=new WeakSet,c=new WeakSet;var u=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,o.default)(this,"metaManager",void 0),(0,o.default)(this,"usageTracker",new Set),(0,o.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e&&(0,s.throwWithCause)("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`."),this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart")&&(0,s.throwWithCause)("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["correctFormat",{onChange(){h.has(this.metaManager.hot)||(h.add(this.metaManager.hot),(0,i.deprecatedWarn)("The `correctFormat` option is deprecated and will be removed in the next major release.\n\nMigration guide: https://handsontable.com/docs/migration-from-16.2-to-17.0/"))}}],["datePickerConfig",{onChange(){c.has(this.metaManager.hot)||(c.add(this.metaManager.hot),(0,i.deprecatedWarn)("The `datePickerConfig` option is deprecated and will be removed in the next major release.\n\nMigration guide: https://handsontable.com/docs/migration-from-16.2-to-17.0/"))}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),a(this,u,(e,t,r)=>{r||(0,s.throwWithCause)(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,t)=>{const{initOnly:r,target:n,onChange:o}=e,i="string"==typeof n,s=i?n:t,a=`_${s}`;this.metaManager.globalMeta.meta[a]=this.metaManager.globalMeta.meta[s],o?(this.installPropWatcher(t,a,o),i&&this.installPropWatcher(n,a,o)):r&&(this.installPropWatcher(t,a,l(u,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,r){const n=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(o){const i=!n.usageTracker.has(e);n.usageTracker.add(e),r.call(n,e,o,i),this[t]=o},enumerable:!0,configurable:!0})}}},22417(e,t,r){"use strict";t.__esModule=!0,t.assert=function(e,t){e()||(0,o.throwWithCause)(`Assertion failed: ${t}`)},t.columnFactory=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function r(){}(0,n.inherit)(r,e);for(let e=0;e<t.length;e++)r.prototype[t[e]]=void 0;return r},t.extendByMetaType=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const o="string"==typeof t.type?(0,i.getCellType)(t.type):t.type;e._automaticallyAssignedMetaProps&&(0,n.objectEach)(t,(t,r)=>{e._automaticallyAssignedMetaProps.delete(r)});if(!(0,n.isObject)(o))return;r!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);const s={};(0,n.objectEach)(o,(t,o)=>{var i;(function(e,t){var r;if("CELL_TYPE"===e)return!1;return(null===(r=t._automaticallyAssignedMetaProps)||void 0===r?void 0:r.has(e))||!(0,n.hasOwnProperty)(t,e)})(o,r)&&(s[o]=t,null===(i=e._automaticallyAssignedMetaProps)||void 0===i||i.add(o))}),(0,n.extend)(e,s)},t.isNullish=function(e){return null==e};var n=r(81185),o=r(15141),i=r(19053)},83851(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.replaceData=function(e,t,r,n){const{hotInstance:d,dataMap:p,dataSource:g,internalSource:f,source:m,metaManager:C,firstRun:w}=n,y=(0,o.toUpperCaseFirst)(f),v=d.getSettings();Array.isArray(v.dataSchema)?d.dataType="array":(0,i.isFunction)(v.dataSchema)?d.dataType="function":d.dataType="object";p&&p.destroy();e=d.runHooks(`before${y}`,e,w,m);const E=new s.default(d,e,C);if(t(E),"object"==typeof e&&null!==e)e.push&&e.splice||(e=[e]);else if(null===e){const t=E.getSchema();let r;e=[];let n=0,o=0;for(n=0,o=v.startRows;n<o;n++)if("object"!==d.dataType&&"function"!==d.dataType||!v.dataSchema)if("array"===d.dataType)r=(0,a.deepClone)(t[0]),e.push(r);else{r=[];for(let e=0,t=v.startCols;e<t;e++)r.push(null);e.push(r)}else r=(0,a.deepClone)(t),e.push(r)}else(0,u.throwWithCause)(`${f} only accepts array of objects or array of arrays (${typeof e} given)`);Array.isArray(e[0])&&(d.dataType="array");v.data=e,E.dataSource=e,g.data=e,g.dataType=d.dataType,g.colToProp=E.colToProp.bind(E),g.propToCol=E.propToCol.bind(E),g.countCachedColumns=E.countCachedColumns.bind(E),r(E),w||(0,c.runSourceDataValidators)(d,f);d.runHooks(`after${y}`,e,w,m),w||(d.runHooks("afterChange",null,f),d.view.adjustElementsSize(),d.render());d.getSettings().ariaTags&&(0,l.setAttribute)(d.rootElement,[(0,h.A11Y_ROWCOUNT)(-1),(0,h.A11Y_COLCOUNT)(d.countCols()+(d.view?d.countRowHeaders():0))])};var o=r(58507),i=r(11526),s=n(r(87845)),a=r(81185),l=r(2783),h=r(17134),c=r(36870),u=r(15141)},36870(e,t,r){"use strict";t.__esModule=!0,t.runSourceDataValidator=function(e,t,r){const n=t.sourceDataValidator;if(!(0,o.isFunction)(n))return!0;if(!0===n(e,t,r))return!0;const{row:i,col:a,sourceDataWarningMessage:l,allowInvalid:h}=t;l&&s(l,[{row:i,col:a,value:e}]);return!0===h},t.runSourceDataValidators=function(e,t){const r=e.countSourceRows(),n=e.countSourceCols();if(0===r||0===n)return;const i=new Map;for(let s=0;s<r;s+=1)for(let r=0;r<n;r+=1){const n=e.toVisualRow(s),l=e.toVisualColumn(r);if(null===n||null===l)continue;const h=e.getCellMeta(n,l),{sourceDataWarningMessage:c,sourceDataValidator:u,allowInvalid:d}=h;if(!(0,o.isFunction)(u))continue;const p=e._getDataSource(),g=p.getAtCell(s,r,null);if(!0!==u(g,h,t)&&(!1===d&&p.setAtCell(s,r,null),c)){var a;const e=c,t=null!==(a=i.get(e))&&void 0!==a?a:[];t.push({row:s,col:r,value:g,message:e}),i.set(e,t)}}i.forEach((e,t)=>{s(t,e)})};var n=r(28065),o=r(11526),i=r(67787);function s(e,t){(0,n.logAggregatedItems)({logFunction:n.warn,message:e,items:t,itemFormatter:e=>{let{row:t,col:r,value:n}=e;const o=(0,i.stringify)(n);return`row ${t}, col ${r}, value: "${o.length>64?`${o.slice(0,64)}...`:o}"`}})}},64918(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(60755),s=r(82063),a=r(14284),l=n(r(23695));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,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var u=new WeakSet;class d{constructor(e,t,r){h(this,u),(0,o.default)(this,"hot",void 0),(0,o.default)(this,"tableMeta",void 0),(0,o.default)(this,"selection",void 0),(0,o.default)(this,"eventManager",void 0),(0,o.default)(this,"destroyed",!1),(0,o.default)(this,"activeEditor",void 0),(0,o.default)(this,"cellProperties",void 0),this.hot=e,this.tableMeta=t,this.selection=r,this.eventManager=new l.default(e),this.hot.addHook("afterDocumentKeyDown",e=>c(u,this,p).call(this,e)),this.hot.addHook("beforeCompositionStart",e=>c(u,this,p).call(this,e)),this.hot.view._wt.update("onCellDblClick",(e,t,r)=>c(u,this,g).call(this,e,t,r))}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.getSelectedRangeActive())||void 0===e?void 0:e.highlight;if(!t||t.isHeader())return;const{row:r,col:n}=t,o=this.hot.runHooks("modifyGetCellCoords",r,n,!1,"meta");let i=r,s=n;if(Array.isArray(o)&&([i,s]=o),this.cellProperties=this.hot.getCellMeta(i,s),!this.isCellEditable())return void this.clearActiveEditor();const l=this.hot.getCell(r,n,!0);if(l){const e=this.hot.getCellEditor(this.cellProperties),t=this.hot.colToProp(s),o=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(i),s);this.activeEditor=(0,a.getEditorInstance)(e,this.hot),this.activeEditor.prepare(r,n,t,l,o,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.isCellEditable())return void this.clearActiveEditor();const n=this.hot.getSelectedRangeActive();let o=this.hot.runHooks("beforeBeginEditing",n.highlight.row,n.highlight.col,e,t,r);t instanceof MouseEvent&&"boolean"!=typeof o&&(o=0===this.hot.selection.getLayerLevel()&&n.isSingle()),!1!==o?(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(r&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))):this.clearActiveEditor()}closeEditor(e,t,r){this.activeEditor?this.activeEditor.finishEditing(e,t,r):r&&r(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeActive();if(!e)return!1;const t=this.hot.getCellEditor(this.cellProperties),{row:r,col:n}=e.highlight,{rowIndexMapper:o,columnIndexMapper:i}=this.hot,s=o.isHidden(this.hot.toPhysicalRow(r))||i.isHidden(this.hot.toPhysicalColumn(n));return!(this.cellProperties.readOnly||!t||s)}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 p(e){const t=this.hot.getSelectedRangeActive();if(!this.hot.isListening()||!t||t.highlight.isHeader()||(0,s.isImmediatePropagationStopped)(e))return;const{keyCode:r}=e,n=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&((0,i.isFunctionKey)(r)||(0,i.isCtrlMetaKey)(r)||n||this.isEditorOpened()||this.openEditor("",e))}function g(e,t){t.isCell()&&(this.hot.getShortcutManager().isCtrlPressed()?this.clearActiveEditor():this.openEditor(null,e,!0))}const f=new WeakMap;d.getInstance=function(e,t,r){let n=f.get(e);return n||(n=new d(e,t,r),f.set(e,n)),n};t.default=d},79972(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(1276),s=r(27637),a=r(81185),l=r(2783),h=r(67787),c=r(58507),u=r(60755),d=r(69962),p=r(17134),g=r(11526);function f(e,t,r){m(e,t),t.set(e,r)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function C(e,t){return e.get(w(e,t))}function w(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const y=t.EDITOR_TYPE="autocomplete";var v=new WeakMap,E=new WeakMap,S=new WeakSet;class b extends i.HandsontableEditor{constructor(){var e,t;super(...arguments),m(e=this,t=S),t.add(e),(0,o.default)(this,"query",null),(0,o.default)(this,"strippedChoices",[]),(0,o.default)(this,"rawChoices",[]),f(this,v,this.hot.guid.slice(0,9)),f(this,E,(0,g.debounce)(()=>{this.focus()},100))}static get EDITOR_TYPE(){return y}getValue(){const e=this.rawChoices.find(e=>{const t=this.stripValueIfNeeded(e);return((0,a.isKeyValueObject)(t)?t.value:t)===this.TEXTAREA.value});return(0,h.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,p.A11Y_TEXT)(),(0,p.A11Y_COMBOBOX)(),(0,p.A11Y_HASPOPUP)("listbox"),(0,p.A11Y_AUTOCOMPLETE)()])}prepare(e,t,r,n,o,i){super.prepare(e,t,r,n,o,i),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,p.A11Y_EXPANDED)("false"),(0,p.A11Y_CONTROLS)(`${C(v,this)}-listbox-${e}-${t}`)]),this.htOptions={...this.htOptions,valueGetter:e=>(0,a.isKeyValueObject)(e)?e.value:e}}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,r=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,n=null==r?void 0:r.length,{row:o,col:i}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),this.htEditor.addHook("afterScroll",C(E,this)),this.htEditor.updateSettings({colWidths:e?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,renderer:(e,o,i,s,a,c,u)=>{(0,d.textRenderer)(e,o,i,s,a,c,u);const{filteringCaseSensitive:g,allowHtml:f,locale:m}=this.cellProperties,C=this.query;let w,y,v=(0,h.stringify)(c);v&&!f&&(w=!0===g?v.indexOf(C):v.toLocaleLowerCase(m).indexOf(C.toLocaleLowerCase(m)),-1!==w&&(y=v.substr(w,C.length),v=v.replace(y,`<strong>${y}</strong>`))),t&&(0,l.setAttribute)(o,[(0,p.A11Y_OPTION)(),...r?[(0,p.A11Y_SETSIZE)(n)]:[],...r?[(0,p.A11Y_POSINSET)(r.indexOf(c)+1)]:[],["id",`${this.htEditor.rootElement.id}_${i}-${s}`]]),o.innerHTML=v},afterSelectionEnd:(e,r)=>{if(t){const t=e=>{(0,l.setAttribute)(e,[(0,p.A11Y_SELECTED)()]),(0,l.setAttribute)(this.TEXTAREA,...(0,p.A11Y_ACTIVEDESCENDANT)(e.id))},n=this.htEditor.getCell(e,r,!0);null!==n?t(n):this.htEditor.addHookOnce("afterScrollVertically",()=>{const n=this.htEditor.getCell(e,r,!0);t(n)})}}}),t&&((0,l.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,p.A11Y_PRESENTATION)()),(0,l.setAttribute)(this.htEditor.rootElement,[(0,p.A11Y_LISTBOX)(),(0,p.A11Y_LIVE)("polite"),(0,p.A11Y_RELEVANT)("text"),["id",`${C(v,this)}-listbox-${o}-${i}`]]),(0,l.setAttribute)(this.TEXTAREA,...(0,p.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,p.A11Y_EXPANDED)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}finishEditing(e,t,r){if(this.isOpened()){const t=this.hot.getSelectedRangeActive();((0,h.isUndefined)(t)||(0,h.isDefined)(t)&&!t.includes(this.hot._createCellCoords(this.row,this.col)))&&(e=!0)}super.finishEditing(e,t,r)}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),r=(0,l.getSelectionEndPosition)(this.TEXTAREA),n=this.cellProperties.sortByRelevance,o=this.cellProperties.filter,i=this.stripValueIfNeeded(this.getValue()),u=(0,a.isKeyValueObject)(i)?i.value:i;let d=null,p=e;n||(p=p.toSorted());const g=[],f=this.cellProperties.locale,m=this.cellProperties.filteringCaseSensitive,C=m?u:u.toLocaleLowerCase(f);for(let e=0;e<p.length;e++){const t=(0,a.isKeyValueObject)(p[e])?(0,c.stripTags)((0,h.stringify)(p[e].value)):(0,c.stripTags)((0,h.stringify)(p[e]));if(-1!==(m?t:t.toLocaleLowerCase(f)).indexOf(C)&&(g.push(e),!1===o))break}!1===o?i.length>0&&(d=g[0]):(p=g.map(e=>p[e]),d=p.indexOf(C)>-1?p.indexOf(C):0),this.strippedChoices=p,0===p.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,s.pivot)([p])),p.length>0&&(this.updateDropdownDimensions(),this.flipDropdownVerticallyIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(d)),this.hot.listen(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===r?void 0:r)}flipDropdownVerticallyIfNeeded(){const e=super.flipDropdownVerticallyIfNeeded(),{isFlipped:t,spaceAbove:r,spaceBelow:n}=e;return this.limitDropdownIfNeeded(t?r:n),e}limitDropdownIfNeeded(e){const t=this.getDropdownHeight();if(t>e){let r=0,n=0,o=null;do{n=this.htEditor.stylesHandler.getDefaultRowHeight(),r+=n}while(r<e);o=r-n,this.isFlippedVertically&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-o+"px"),this.setDropdownHeight(r-n)}}updateDropdownDimensions(){const e=(0,l.getFractionalScalingCompensation)(),t=this.getTargetEditorWidth()+e,r=this.getTargetEditorHeight()+e;this.htEditor.updateSettings({width:t,height:r}),w(S,this,R).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e}),w(S,this,R).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getTargetEditorHeight(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10)}const t=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:t},(e,t)=>t).reduce((e,t)=>e+(this.hot.stylesHandler.getDefaultRowHeight()+(0===t?1:0)),0)+e}getTargetEditorWidth(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderInlineStartWidth,10)+parseInt(t.borderInlineEndWidth,10)}return this.htEditor.getColWidth(0)+e}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,r=e=>(0,h.stringify)(t?e:(0,c.stripTags)(e));return e.every(e=>(0,a.isKeyValueObject)(e))?e.map(e=>({key:r(e.key),value:r(e.value)})):e.map(e=>r(e))}onBeforeKeyDown(e){if((0,u.isPrintableChar)(e.keyCode)||e.keyCode===u.KEY_CODES.BACKSPACE||e.keyCode===u.KEY_CODES.DELETE||e.keyCode===u.KEY_CODES.INSERT){let t=10;if(e.keyCode===u.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)},t)}}}function R(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getTargetEditorWidth()+(0,l.getScrollbarWidth)(this.hot.rootDocument)})}t.AutocompleteEditor=b},70213(e,t,r){"use strict";t.__esModule=!0;var n=r(79972);t.EDITOR_TYPE=n.EDITOR_TYPE,t.AutocompleteEditor=n.AutocompleteEditor},96954(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(67787),s=r(15141),a=r(81185),l=n(r(24346)),h=r(2783);const c=t.EDITOR_TYPE="base",u=t.EDITOR_STATE=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});class d{static get EDITOR_TYPE(){return c}constructor(e){(0,o.default)(this,"hot",void 0),(0,o.default)(this,"state",u.VIRGIN),(0,o.default)(this,"_opened",!1),(0,o.default)(this,"_fullEditMode",!1),(0,o.default)(this,"_closeCallback",null),(0,o.default)(this,"_closeAfterDataChange",!0),(0,o.default)(this,"TD",null),(0,o.default)(this,"row",null),(0,o.default)(this,"col",null),(0,o.default)(this,"prop",null),(0,o.default)(this,"originalValue",null),(0,o.default)(this,"cellProperties",null),this.hot=e,this.init()}_fireCallbacks(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}init(){}getValue(){(0,s.throwWithCause)("Editor getValue() method unimplemented")}setValue(){(0,s.throwWithCause)("Editor setValue() method unimplemented")}open(){(0,s.throwWithCause)("Editor open() method unimplemented")}close(){(0,s.throwWithCause)("Editor close() method unimplemented")}prepare(e,t,r,n,o,i){this.TD=n,this.row=e,this.col=t,this.prop=r,this.originalValue=o,this.cellProperties=i,this.state=this.isOpened()?this.state:u.VIRGIN}extend(){return class extends this.constructor{}}saveValue(e,t){let r,n,o,i;if(t){const e=this.hot.getSelectedRangeActive(),t=e.getTopStartCorner(),s=e.getBottomEndCorner();r=t.row,n=t.col,o=s.row,i=s.col}else[r,n,o,i]=[this.row,this.col,null,null];const s=this.hot.runHooks("modifyGetCellCoords",r,n,!1,"meta");Array.isArray(s)&&([r,n]=s),this.hot.populateFromArray(r,n,e,o,i,"edit")}beginEditing(e,t){if(this.state!==u.VIRGIN)return;const r=this.hot,n=r.rowIndexMapper.getRenderableFromVisualIndex(this.row),o=r.columnIndexMapper.getRenderableFromVisualIndex(this.col),s=()=>{if(this.state=u.EDITING,this.isInFullEditMode()){const t=this.cellProperties.valueGetter?this.cellProperties.valueGetter(this.originalValue):this.originalValue,r="string"==typeof e?e:(0,i.stringify)(t);this.setValue(r)}this.open(t),this._opened=!0,this.focus(),r.view.render(),r.runHooks("afterBeginEditing",this.row,this.col)};this.hot.addHookOnce("afterScroll",s);r.view.scrollViewport(r._createCellCoords(n,o))||(this.hot.removeHook("afterScroll",s),s()),this.addHook("beforeDialogShow",()=>this.cancelChanges())}finishEditing(e,t,r){if(r){const e=this._closeCallback;this._closeCallback=t=>{e&&e(t),r(t),this.hot.view.render()}}if(!this.isWaiting())if(this.state!==u.VIRGIN){if(this.state===u.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();let r=this.getValue();this.cellProperties.trimWhitespace&&(r="string"==typeof r?String.prototype.trim.call(r||""):r),"function"==typeof this.cellProperties.valueParser&&(r=this.cellProperties.valueParser(r,this.cellProperties)),this.state=u.WAITING,this.saveValue([[r]],t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",e=>{this.state=u.FINISHED,this.discardEditor(e)}):(this.state=u.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout(()=>{this._fireCallbacks(!0)})}cancelChanges(){this.state=u.FINISHED,this.discardEditor()}discardEditor(e){if(this.state===u.FINISHED)if(!1===e&&!0!==this.cellProperties.allowInvalid)this.hot.selectCell(this.row,this.col),this.focus(),this.state=u.EDITING,this._fireCallbacks(!1);else{this.close(),this._opened=!1,this._fullEditMode=!1,this.state=u.VIRGIN,this._fireCallbacks(!0);this.hot.getShortcutManager().setActiveContextName("grid")}}enableFullEditMode(){this._fullEditMode=!0}isInFullEditMode(){return this._fullEditMode}isOpened(){return this._opened}isWaiting(){return this.state===u.WAITING}getEditedCellRect(){var e;const t=this.getEditedCell();if(!t)return;const{wtOverlays:r,wtViewport:n}=this.hot.view._wt,o=this.hot.rootWindow,i=(0,h.offset)(t),s=(0,h.outerWidth)(t),a=(0,h.offset)(this.hot.rootElement),l=(0,h.outerWidth)(this.hot.rootElement),c=r.topOverlay.holder,u=r.inlineStartOverlay.holder,d=c!==o?c.scrollTop:0,p=u!==o?u.scrollLeft:0,g=o.innerWidth-a.left-l,{wtTable:f}=null!==(e=r.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt,m=f.name,C=["master","inline_start"].includes(m)?d:0,w=["master","top","bottom"].includes(m)?p:0,y=i.top===a.top?0:1;let v=i.top-a.top-y-C,E=0;E=this.hot.isRtl()?o.innerWidth-i.left-s-g-1+w:i.left-a.left-1-w,["top","top_inline_start_corner"].includes(m)&&(v+=r.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(m)&&(E+=Math.abs(r.inlineStartOverlay.getOverlayOffset()));const S=this.hot.hasColHeaders(),b=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),R=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),T=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(S&&b<=0||b===T)&&(v+=1),R<=0&&(E+=1);const _=n.rowsRenderCalculator.startPosition,M=n.columnsRenderCalculator.startPosition,A=Math.abs(r.inlineStartOverlay.getScrollPosition()),I=r.topOverlay.getScrollPosition(),N=(0,h.getScrollbarWidth)(this.hot.rootDocument);let O=t.offsetTop;if(["inline_start","master"].includes(m)&&(O+=_-I),["bottom","bottom_inline_start_corner"].includes(m)){const{wtViewport:e,wtTable:t}=r.bottomOverlay.clone;O+=e.getWorkspaceHeight()-t.getHeight()-N}let x=t.offsetLeft;this.hot.isRtl()?(x=x>=0?f.getWidth()-t.offsetLeft:Math.abs(x),x+=M-A-s):["top","master","bottom"].includes(m)&&(x+=M-A);const k=o.getComputedStyle(this.TD),L=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",P=parseInt(k[L],10)>0?0:1,D=parseInt(k.borderTopWidth,10)>0?0:1,H=(0,h.outerWidth)(t)+P,F=(0,h.outerHeight)(t)+D,B=(0,h.hasVerticalScrollbar)(c)?N:0,V=(0,h.hasHorizontalScrollbar)(u)?N:0,U=this.hot.view.maximumVisibleElementWidth(x)-B+P;return{top:v,start:E,height:F,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(O)-V+D,this.hot.stylesHandler.getDefaultRowHeight()),width:H,maxWidth:U}}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=d,(0,a.mixin)(d,l.default)},92840(e,t,r){"use strict";t.__esModule=!0;var n=r(96954);t.EDITOR_STATE=n.EDITOR_STATE,t.EDITOR_TYPE=n.EDITOR_TYPE,t.BaseEditor=n.BaseEditor},59262(e,t,r){"use strict";t.__esModule=!0;var n=r(92840),o=r(2783);const i=t.EDITOR_TYPE="checkbox";class s extends n.BaseEditor{static get EDITOR_TYPE(){return i}beginEditing(e,t){if(t&&"mouseup"===t.type&&"TD"===t.target.nodeName){const e=this.TD.querySelector('input[type="checkbox"]');(0,o.hasClass)(e,"htBadValue")||e.click()}}finishEditing(){}init(){}open(){}close(){}getValue(){}setValue(){}focus(){}}t.CheckboxEditor=s},19028(e,t,r){"use strict";t.__esModule=!0;var n=r(59262);t.EDITOR_TYPE=n.EDITOR_TYPE,t.CheckboxEditor=n.CheckboxEditor},4200(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=n(r(37539)),s=n(r(11265)),a=r(92840),l=r(99326),h=r(2783),c=r(81185),u=r(60755),d=r(81136),p=r(28065),g=r(15141);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 m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const C=t.EDITOR_TYPE="date",w="dateEditor",y=new WeakSet;var v=new WeakSet;class E extends l.TextEditor{constructor(){super(...arguments),f(this,v),(0,o.default)(this,"parentDestroyed",!1),(0,o.default)(this,"$datePicker",null)}static get EDITOR_TYPE(){return C}init(){"function"!=typeof i.default&&(0,g.throwWithCause)("You need to include moment.js to your project."),"function"!=typeof s.default&&(0,g.throwWithCause)("You need to include Pikaday to your project."),super.init(),this.hot.addHook("afterDestroy",()=>{this.parentDestroyed=!0,this.destroyElements()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}createElements(){super.createElements(),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,h.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootPortalElement.appendChild(this.datePicker),this.eventManager.addEventListener(this.datePicker,"mousedown",e=>{(0,h.hasClass)(e.target,"pika-day")&&this.hideDatepicker(),e.stopPropagation()})}destroyElements(){const e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}prepare(e,t,r,n,o,i){super.prepare(e,t,r,n,o,i)}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;y.has(this.cellProperties.instance)||(y.add(this.cellProperties.instance),(0,p.deprecatedWarn)("The Pikaday-based `date` editor is deprecated and will be removed in the next major release, replaced by the native HTML date input.\n\nMigration guide: https://handsontable.com/docs/migration-from-16.2-to-17.0/\n`date` cell type documentation: https://handsontable.com/docs/date-cell-type/"));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:w})}close(){var e;null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.hot._registerTimeout(()=>{const e=this.hot._getEditorManager();e.closeEditor(),this.hot.view.render(),e.prepareEditor()});this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(w),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=m(v,this,S).call(this),r=this.hot.view.isMouseDown(),n=!!e&&(0,u.isFunctionKey)(e.keyCode);let o;this.datePicker.style.display="block",this.$datePicker=new s.default(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(i.default),this.$datePicker._onInputFocus=function(){},this.originalValue?(o=this.originalValue,(0,i.default)(o,t,!0).isValid()&&this.$datePicker.setMoment((0,i.default)(o,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),n||r||this.setValue("")):this.cellProperties.defaultDate?(o=this.cellProperties.defaultDate,(0,i.default)(o,t,!0).isValid()&&this.$datePicker.setMoment((0,i.default)(o,t),!0),n||r||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){var e;const t=this.TEXTAREA,r={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,c.deepExtend)(r,this.cellProperties.datePickerConfig);const n=r.onSelect,o=r.onClose;return r.field=t,r.trigger=t,r.container=this.datePicker,r.bound=!1,r.keyboardInput=!1,r.format=null!==(e=r.format)&&void 0!==e?e:m(v,this,S).call(this),r.reposition=r.reposition||!1,r.isRTL=!1,r.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=(0,i.default)(t).format(m(v,this,S).call(this))),this.setValue(t),n&&n(),(0,d.isMobileBrowser)()&&this.hideDatepicker()},r.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),o&&o()},r}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==a.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:r,columnIndexMapper:n}=this.hot,{wtOverlays:o}=this.hot.view._wt,{wtTable:i}=null!==(t=o.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,s=r.getVisualFromRenderableIndex(i.getFirstPartiallyVisibleRow()),l=r.getVisualFromRenderableIndex(i.getLastPartiallyVisibleRow()),c=n.getVisualFromRenderableIndex(i.getFirstPartiallyVisibleColumn()),u=n.getVisualFromRenderableIndex(i.getLastPartiallyVisibleColumn());if(this.row>=s&&this.row<=l&&this.col>=c&&this.col<=u){const e=this.TD.getBoundingClientRect();this.datePickerStyle.top=`${this.hot.rootWindow.pageYOffset+e.top+(0,h.outerHeight)(this.TD)}px`;let t=this.hot.rootWindow.pageXOffset;this.hot.isRtl()?t+=e.right-(0,h.outerWidth)(this.datePicker):t+=e.left,this.datePickerStyle.left=`${t}px`}else this.hideDatepicker()}}function S(){var e;return null!==(e=this.cellProperties.dateFormat)&&void 0!==e?e:"DD/MM/YYYY"}t.DateEditor=E},75557(e,t,r){"use strict";t.__esModule=!0;var n=r(4200);t.EDITOR_TYPE=n.EDITOR_TYPE,t.DateEditor=n.DateEditor},14258(e,t,r){"use strict";t.__esModule=!0;var n=r(70213);const o=t.EDITOR_TYPE="dropdown";class i extends n.AutocompleteEditor{static get EDITOR_TYPE(){return o}prepare(e,t,r,n,o,i){i.filter=!1,i.strict=!0,super.prepare(e,t,r,n,o,i)}}t.DropdownEditor=i},37928(e,t,r){"use strict";t.__esModule=!0;var n=r(14258);t.EDITOR_TYPE=n.EDITOR_TYPE,t.DropdownEditor=n.DropdownEditor},15353(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(96954),i=n(r(23695)),s=r(15141);const a=e=>{const t=o.BaseEditor.prototype.extend(),r=["close","focus","getValue","open","setValue"],n=Object.getOwnPropertyNames(o.BaseEditor.prototype);return n.forEach(n=>{if(e[n]){const o=t.prototype[n];t.prototype[n]=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return r.includes(n)||o.apply(this,i),e[n](this,...i)}}}),Object.keys(e).forEach(r=>{n.includes(r)||(t.prototype[r]=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e[r](this,...n)})}),t};t.editorFactory=e=>{let{init:t,afterOpen:r,afterInit:n,afterClose:o,beforeOpen:l,getValue:h,setValue:c,onFocus:u,shortcuts:d,value:p,render:g,config:f,shortcutsGroup:m="custom-editor",position:C="container",...w}=e;return a({init(e){Object.assign(e,{value:p,config:f,render:g,position:C,...w}),e._opened=!1,e.container=e.hot.rootDocument.createElement("DIV"),e.container.style.display="none","portal"===C?e.hot.rootPortalElement.appendChild(e.container):e.hot.rootElement.appendChild(e.container),t(e),e.input||(0,s.throwWithCause)("Input is not assigned. Assign it in the init callback."),e.container.appendChild(e.input),"function"==typeof n&&n(e),e.preventCloseElement&&e.preventCloseElement instanceof HTMLElement&&(e.eventManager=new i.default(e.hot),e.eventManager.addEventListener(e.preventCloseElement,"mousedown",e=>{e.stopPropagation()})),e.addHook("afterScrollHorizontally",()=>e.refreshDimensions()),e.addHook("afterScrollVertically",()=>e.refreshDimensions())},getValue:e=>"function"==typeof h?h(e):e.value,setValue(e,t){"function"==typeof c?c(e,t):e.value=t,"function"==typeof g&&g(e)},refreshDimensions(e){if(e.TD=e.getEditedCell(),!e.TD)return void e.close();if(!e._opened)return;const t=e.container.style;if(t.display="block",t.position="absolute","portal"===e.position){const r=e.TD.getBoundingClientRect();t.top=`${e.hot.rootWindow.pageYOffset+r.top}px`,t[e.hot.isRtl()?"right":"left"]=`${e.hot.rootWindow.pageXOffset+r[e.hot.isRtl()?"right":"left"]}px`}else{const r=e.getEditedCellRect();if(!r)return;t.top=`${r.top}px`,t[e.hot.isRtl()?"right":"left"]=`${r.start}px`,t.width=`${r.width}px`,t.height=`${r.height}px`}},open(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;e.container.classList.add("ht_clone_master"),e._opened=!0,e.refreshDimensions(),e.hot.getShortcutManager().setActiveContextName("editor"),(e=>{const t=e.hot.getShortcutManager().getContext("editor"),r={group:m};d&&t.addShortcuts(d.map(t=>({...t,relativeToGroup:t.relativeToGroup||"editorManager.handlingEditor",position:t.position||"before",callback:r=>t.callback(e,r)})),r)})(e),r&&r(e,t)},focus(e){var t;"function"==typeof u?u(e):null===(t=e.container.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))||void 0===t||t.focus()},close(e){e._opened=!1,e.container.style.display="none",e.container.classList.remove("ht_clone_master");e.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(m),"function"==typeof o&&o(e)},prepare(e,t,r,n,o,i,s){"function"==typeof l?l(e,{row:t,col:r,prop:n,td:o,originalValue:i,cellProperties:s}):e.setValue(i)}})}},10102(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(99326),s=r(2783),a=r(82063),l=r(81185),h=r(79145);const c="handsontableEditor",u=t.EDITOR_TYPE="handsontable";class d extends i.TextEditor{constructor(){super(...arguments),(0,o.default)(this,"isFlippedVertically",!1),(0,o.default)(this,"isFlippedHorizontally",!1)}static get EDITOR_TYPE(){return u}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,s.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.htEditor.updateSettings({width:this.getTargetDropdownWidth(),height:this.getTargetDropdownHeight()}),this.refreshDimensions(),this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,t,r,n,o,i){super.prepare(e,t,r,n,o,i);const s=this,a={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){const r=this.getSourceData(t.row,t.col);void 0!==r&&s.setValue(r),s.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,l.extend)(a,i.handsontable),this.htOptions=a}beginEditing(e,t){const r=this.hot.getSettings().onBeginEditing;r&&!1===r()||super.beginEditing(e,t)}createElements(){super.createElements();const e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,r){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedActive()){const e=this.htEditor.getValue();void 0!==e&&this.setValue(e)}super.finishEditing(e,t,r)}flipDropdownVerticallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let r=t.top;if(e.isVerticallyScrollableByWindow()){const t=e.getTableOffset().top-this.hot.rootWindow.scrollY;r=Math.max(r+t,0)}const n=this.getDropdownHeight(),o=e.getWorkspaceHeight()-r-t.height,i=n>o&&r>o+t.height;return i?this.flipDropdownVertically():this.unflipDropdownVertically(),{isFlipped:i,spaceAbove:r,spaceBelow:o}}flipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top=-this.getDropdownHeight()+"px",this.isFlippedVertically=!0}unflipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.isFlippedVertically=!1}flipDropdownHorizontallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let r=t.start+t.width;if(e.isHorizontallyScrollableByWindow()){const t=e.getTableOffset().left-this.hot.rootWindow.scrollX;r=Math.max(r+t,0)}const n=this.getDropdownWidth(),o=e.getWorkspaceWidth()-r+t.width,i=n>o&&r>o;return i?this.flipDropdownHorizontally():this.unflipDropdownHorizontally(),{isFlipped:i,spaceInlineStart:r,spaceInlineEnd:o}}flipDropdownHorizontally(){const e=this.htEditor.rootElement.style,{width:t}=this.getEditedCellRect();e.position="absolute",e[this.hot.isRtl()?"right":"left"]=-(this.getDropdownWidth()-t)+"px",this.isFlippedHorizontally=!0}unflipDropdownHorizontally(){const e=this.htEditor.rootElement.style;e.position="absolute",e[this.hot.isRtl()?"right":"left"]="",this.isFlippedHorizontally=!1}getDropdownHeight(){return this.htEditor.getTableHeight()}getDropdownWidth(){return this.htEditor.getTableWidth()}getTargetDropdownWidth(){return this.htEditor.view.getTableWidth()}getTargetDropdownHeight(){return this.htEditor.view.getTableHeight()+1}assignHooks(){this.hot.addHook("afterDestroy",()=>{var e;null===(e=this.htEditor)||void 0===e||e.destroy()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const t={group:c,relativeToGroup:h.EDITOR_EDIT_GROUP,position:"before"},r=(e,t)=>{const r=this.htEditor;if(void 0!==e&&(e<0||this.isFlippedVertically&&e>r.countRows()-1?r.deselectCell():r.selectCell(e,0),r.getData().length))return t.preventDefault(),(0,a.stopImmediatePropagation)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let n,o;return!t.getSelectedActive()&&this.isFlippedVertically?n=t.countRows()-1:t.getSelectedActive()&&(this.isFlippedVertically?(o=t.getSelectedActive()[0],n=Math.max(0,o-1)):(o=t.getSelectedActive()[0],n=o-1)),r(n,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let n,o;if(t.getSelectedActive()||this.isFlippedVertically){if(t.getSelectedActive())if(this.isFlippedVertically)n=t.getSelectedActive()[0]+1;else if(!this.isFlippedVertically){const e=t.countRows()-1;o=t.getSelectedActive()[0],n=Math.min(e,o+1)}}else n=0;return r(n,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts();this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(c)}}t.HandsontableEditor=d},1276(e,t,r){"use strict";t.__esModule=!0;var n=r(10102);t.EDITOR_TYPE=n.EDITOR_TYPE,t.HandsontableEditor=n.HandsontableEditor},63219(e,t,r){"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,C.registerEditor)(o.BaseEditor),(0,C.registerEditor)(n.AutocompleteEditor),(0,C.registerEditor)(i.CheckboxEditor),(0,C.registerEditor)(s.DateEditor),(0,C.registerEditor)(a.DropdownEditor),(0,C.registerEditor)(l.HandsontableEditor),(0,C.registerEditor)(h.IntlDateEditor),(0,C.registerEditor)(c.IntlTimeEditor),(0,C.registerEditor)(u.NumericEditor),(0,C.registerEditor)(d.PasswordEditor),(0,C.registerEditor)(p.SelectEditor),(0,C.registerEditor)(g.TextEditor),(0,C.registerEditor)(f.TimeEditor),(0,C.registerEditor)(m.MultiSelectEditor)};var n=r(70213);t.AutocompleteEditor=n.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=n.EDITOR_TYPE;var o=r(92840);t.BaseEditor=o.BaseEditor,t.BASE_EDITOR=o.EDITOR_TYPE;var i=r(19028);t.CheckboxEditor=i.CheckboxEditor,t.CHECKBOX_EDITOR=i.EDITOR_TYPE;var s=r(75557);t.DateEditor=s.DateEditor,t.DATE_EDITOR=s.EDITOR_TYPE;var a=r(37928);t.DropdownEditor=a.DropdownEditor,t.DROPDOWN_EDITOR=a.EDITOR_TYPE;var l=r(1276);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var h=r(62906);t.IntlDateEditor=h.IntlDateEditor,t.INTL_DATE_EDITOR=h.EDITOR_TYPE;var c=r(56843);t.IntlTimeEditor=c.IntlTimeEditor,t.INTL_TIME_EDITOR=c.EDITOR_TYPE;var u=r(42106);t.NumericEditor=u.NumericEditor,t.NUMERIC_EDITOR=u.EDITOR_TYPE;var d=r(62212);t.PasswordEditor=d.PasswordEditor,t.PASSWORD_EDITOR=d.EDITOR_TYPE;var p=r(63657);t.SelectEditor=p.SelectEditor,t.SELECT_EDITOR=p.EDITOR_TYPE;var g=r(99326);t.TextEditor=g.TextEditor,t.TEXT_EDITOR=g.EDITOR_TYPE;var f=r(50644);t.TimeEditor=f.TimeEditor,t.TIME_EDITOR=f.EDITOR_TYPE;var m=r(75568);t.MultiSelectEditor=m.MultiSelectEditor,t.MULTI_SELECT_EDITOR=m.EDITOR_TYPE;var C=r(14284);t.registerEditor=C.registerEditor,t.RegisteredEditor=C.RegisteredEditor,t._getEditorInstance=C._getEditorInstance,t.getEditor=C.getEditor,t.getEditorInstance=C.getEditorInstance,t.getRegisteredEditorNames=C.getRegisteredEditorNames,t.getRegisteredEditors=C.getRegisteredEditors,t.hasEditor=C.hasEditor;var w=r(15353);t.editorFactory=w.editorFactory},62906(e,t,r){"use strict";t.__esModule=!0;var n=r(24230);t.EDITOR_TYPE=n.EDITOR_TYPE,t.IntlDateEditor=n.IntlDateEditor},24230(e,t,r){"use strict";t.__esModule=!0;var n=r(99326),o=r(87971),i=r(28065),s=r(27033),a=r(67787);const l=t.EDITOR_TYPE="intl-date";class h extends n.TextEditor{static get EDITOR_TYPE(){return l}init(){super.init(),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}createElements(){super.createElements("input"),this.TEXTAREA.setAttribute("type","date")}setValue(e){(0,a.isEmpty)(e)&&(e=this.cellProperties.defaultDate),(0,o.isValidISODate)(e)?super.setValue(e):(0,i.warn)(s.toSingleLine`IntlDateEditor: value must be in ISO date format ("YYYY-MM-DD")\x20
38
38
  required by the native date input. Received:`,e)}focus(){this.TEXTAREA.select()}open(){super.open();try{this.TEXTAREA.showPicker()}catch{}}}t.IntlDateEditor=h},56843(e,t,r){"use strict";t.__esModule=!0;var n=r(22556);t.EDITOR_TYPE=n.EDITOR_TYPE,t.IntlTimeEditor=n.IntlTimeEditor},22556(e,t,r){"use strict";t.__esModule=!0;var n=r(99326),o=r(87971),i=r(28065),s=r(27033);const a=t.EDITOR_TYPE="intl-time";class l extends n.TextEditor{static get EDITOR_TYPE(){return a}init(){super.init(),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}createElements(){super.createElements("input"),this.TEXTAREA.setAttribute("type","time")}setValue(e){(0,o.isValidTime)(e)?super.setValue(e):(0,i.warn)(s.toSingleLine`IntlTimeEditor: value must be in 24-hour time format ("HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS")\x20
39
- required by the native time input. Received:`,e)}focus(){this.TEXTAREA.select()}open(){super.open();try{this.TEXTAREA.showPicker()}catch{}}}t.IntlTimeEditor=l},7725(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(81185),i=n(r(27348)),s=r(83075),a=n(r(23695)),l=r(59078),h=r(22507);function c(e,t,r){u(e,t),t.set(e,r)}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t){return e.get(g(e,t))}function p(e,t,r){return e.set(g(e,t),r),r}function g(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var f=new WeakMap,m=new WeakMap,C=new WeakMap,w=new WeakMap,y=new WeakMap,v=new WeakMap,E=new WeakMap,S=new WeakMap,b=new WeakMap,R=new WeakMap,T=new WeakSet;class _{constructor(e,t){var r,n;u(r=this,n=T),n.add(r),c(this,f,null),c(this,m,null),c(this,C,null),c(this,w,null),c(this,y,null),c(this,v,null),c(this,E,null),c(this,S,null),c(this,b,new a.default(this)),c(this,R,{visibleRowsNumber:null,entriesCount:0,flippedVertically:!1,currentlySelectedItemIndex:0,checkboxChangeListeners:new Map,areCheckboxesDisabled:!1,sourceSortFunction:null}),p(m,this,e),p(S,this,d(m,this).ownerDocument),p(f,this,t),this.init()}init(){p(C,this,(0,h.createListElement)({root:d(S,this)})),p(w,this,(0,h.createSearchInputElement)({root:d(S,this)}));const e=(0,h.createSearchIcon)({root:d(S,this)});p(v,this,(0,h.createSearchInputWrapper)({root:d(S,this)})),p(y,this,(0,h.createSeparatorElement)({root:d(S,this)})),d(v,this).appendChild(e),d(v,this).appendChild(d(w,this)),d(m,this).appendChild(d(v,this)),d(m,this).appendChild(d(y,this)),d(m,this).appendChild(d(C,this)),p(E,this,new l.InputController({input:d(w,this),eventManager:d(b,this)}))}setVisibleRowsNumberSetting(e){d(R,this).visibleRowsNumberSetting=e}setSourceSortFunction(e){d(R,this).sourceSortFunction=null!=e?e:null}setSearchInputVisibility(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];d(v,this).style.display=e?"":"none",d(y,this).style.display=e?"":"none",d(E,this).toggle(e)}fillDropdown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.removeAllDropdownItems(),d(R,this).currentlySelectedItemIndex=0,Array.isArray(t)||(t=[]),d(R,this).sourceSortFunction&&(e=d(R,this).sourceSortFunction(e)),e.forEach((e,r)=>{var n;g(T,this,k).call(this,{rootDocument:d(S,this),itemKey:null==e?void 0:e.key,itemValue:null!==(n=null==e?void 0:e.value)&&void 0!==n?n:e,indexWithinList:r,checked:(0,s.includesValue)(t,e),disabled:d(R,this).areCheckboxesDisabled})}),d(R,this).entriesCount=e.length,this.runLocalHooks("afterDropdownFill")}updateDimensions(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=g(T,this,N).call(this),n=g(T,this,A).call(this,e),o=n?e.spaceAbove:e.spaceBelow;if(!t&&n&&(d(R,this).flippedVertically=!0),d(R,this).entriesCount>0&&o<this.getHeight(!0)){const e=Math.max(Math.floor((o-g(T,this,x).call(this))/r)-1,1);d(R,this).actualRenderedItemsCount=d(R,this).visibleRowsNumberSetting?Math.min(e,d(R,this).visibleRowsNumberSetting):e}else d(R,this).actualRenderedItemsCount=Math.min(d(R,this).entriesCount,d(R,this).visibleRowsNumberSetting);d(R,this).actualRenderedItemsCount&&d(R,this).entriesCount>d(R,this).actualRenderedItemsCount?d(m,this).style.height=`${this.getHeight()}px`:d(m,this).style.height="",g(T,this,I).call(this,e),d(m,this).scrollTop=0}getDropdownWidth(){return(0,h.getDropdownWidth)({dropdownListElement:d(C,this)})}deselectAllItems(){(0,h.deselectAllItems)({dropdownListElement:d(C,this)})}focusFirstItem(){d(R,this).entriesCount>0&&g(T,this,M).call(this,0)}focusItem(e){g(T,this,M).call(this,e)}focusPreviousItem(){0!==d(R,this).currentlySelectedItemIndex?((0,h.defocusItem)({dropdownListElement:d(C,this),index:d(R,this).currentlySelectedItemIndex}),g(T,this,M).call(this,d(R,this).currentlySelectedItemIndex-1)):this.focusSearchInput()}focusNextItem(){d(R,this).currentlySelectedItemIndex!==d(R,this).entriesCount-1&&((0,h.defocusItem)({dropdownListElement:d(C,this),index:d(R,this).currentlySelectedItemIndex}),g(T,this,M).call(this,d(R,this).currentlySelectedItemIndex+1))}focusSearchInput(){d(w,this)&&d(w,this).focus()}reset(){this.removeAllDropdownItems(),g(T,this,D).call(this),d(w,this)&&(d(w,this).value=""),d(m,this).style.position="",d(m,this).style.top="",d(m,this).style.height="",d(m,this).scrollTop=0}isFlippedVertically(){return d(R,this).flippedVertically}getHeight(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=d(S,this).defaultView.getComputedStyle(d(m,this));return g(T,this,O).call(this,e)+g(T,this,x).call(this)+(!0===t?2*parseInt(r.getPropertyValue("--ht-menu-vertical-padding"),10):0)}getInputController(){return d(E,this)}removeAllDropdownItems(){Array.from(d(C,this).children).forEach(e=>g(T,this,P).call(this,e)),d(R,this).checkboxChangeListeners.clear(),d(C,this).innerHTML=""}disableCheckboxes(){d(R,this).areCheckboxesDisabled=!0,(0,h.disableUncheckedCheckboxes)({dropdownListElement:d(C,this)})}enableCheckboxes(){d(R,this).areCheckboxesDisabled=!1,(0,h.enableAllCheckboxes)({dropdownListElement:d(C,this)})}}function M(e){d(R,this).currentlySelectedItemIndex=e,(0,h.focusItemAt)({dropdownListElement:d(C,this),index:e})}function A(e){const{spaceAbove:t,spaceBelow:r,cellHeight:n}=e;return this.getHeight(!0)>r&&t>r+n}function I(e){const{cellHeight:t}=e;d(R,this).flippedVertically?(d(m,this).style.position="absolute",d(m,this).style.top=-this.getHeight(!1,!0)-t-2+"px"):(d(m,this).style.position="",d(m,this).style.top="")}function N(){const e=d(S,this).defaultView.getComputedStyle(d(m,this));return 2*parseInt(e.getPropertyValue("--ht-menu-item-vertical-padding"),10)+parseInt(e.getPropertyValue("--ht-line-height"),10)}function O(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const r=d(R,this).entriesCount;return(t?r:null!==(e=d(R,this).actualRenderedItemsCount)&&void 0!==e?e:r)*g(T,this,N).call(this)}function x(){if(!d(E,this).enabled)return 0;const e=d(S,this).defaultView.getComputedStyle(d(m,this));return d(v,this).offsetHeight+(d(y,this).offsetHeight+2*parseInt(e.getPropertyValue("--ht-menu-vertical-padding"),10))}function k(e){let{rootDocument:t,itemKey:r,itemValue:n,indexWithinList:o,checked:i=!1,disabled:s=!1}=e;const a=(0,h.createListItemElement)({rootDocument:t,instanceId:d(f,this),itemKey:r,itemValue:n,indexWithinList:o,checked:i,disabled:s});i&&(0,h.selectItem)(a),g(T,this,L).call(this,a),d(C,this).appendChild(a)}function L(e){const t=(0,s.getCheckboxElement)(e),r=()=>{"true"===t.dataset.disabled&&t.checked?t.checked=!1:t.checked?((0,h.selectItem)(e),this.runLocalHooks("afterDropdownItemChecked",t.dataset.key,t.dataset.value)):((0,h.deselectItem)(e),this.runLocalHooks("afterDropdownItemUnchecked",t.dataset.key,t.dataset.value))},n=e=>{e.target!==t&&"true"!==t.dataset.disabled&&"LABEL"!==e.target.tagName&&(t.checked=!t.checked,t.dispatchEvent(new Event("change")))};d(R,this).checkboxChangeListeners.set(t,{change:r,click:n}),d(b,this).addEventListener(t,"change",r),d(b,this).addEventListener(e,"click",n)}function P(e){const t=(0,s.getCheckboxElement)(e),r=d(R,this).checkboxChangeListeners.get(t);d(b,this).removeEventListener(t,"change",r.change),d(b,this).removeEventListener(e,"click",r.click),d(R,this).checkboxChangeListeners.delete(t)}function D(){d(R,this).visibleRowsNumberSetting=null,d(R,this).entriesCount=0,d(R,this).flippedVertically=!1,d(R,this).currentlySelectedItemIndex=0,d(R,this).checkboxChangeListeners.clear(),d(R,this).areCheckboxesDisabled=!1,d(R,this).sourceSortFunction=null}t.DropdownController=_,(0,o.mixin)(_,i.default)},59078(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(81185),i=n(r(27348));function s(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 a=new WeakSet;class l{constructor(e){let{input:t,eventManager:r}=e;s(this,a),this.input=t,this.eventManager=r,this.enabled=!0,this.onInput=this.onInput.bind(this)}getInputElement(){return this.input}setValue(e){this.input.value=e}toggle(e){this.enabled=e,this.input&&(e?this.listen():this.unlisten())}listen(){this.eventManager.addEventListener(this.input,"input",this.onInput)}unlisten(){this.eventManager.removeEventListener(this.input,"input",this.onInput)}onInput(){(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")})(a,this,h).call(this,this.input.value)}}function h(e){this.runLocalHooks("triggerFilter",e)}t.InputController=l,(0,o.mixin)(l,i.default)},5065(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(81185),s=r(83075);t.SelectedItemsController=class{constructor(e){var t;(0,o.default)(this,"selectedItems",null!==(t=this.selectedItems)&&void 0!==t?t:new Set),(0,o.default)(this,"maxSelectionsCount",1/0),Array.isArray(e)?this.selectedItems=new Set(e):this.selectedItems=new Set}setMaxSelectionCount(e){this.maxSelectionsCount=e}add(e){this.selectedItems.size>=this.maxSelectionsCount||(Array.isArray(e)?e.forEach(e=>this.selectedItems.add(e)):this.selectedItems.add(e))}remove(e){if(!(0,i.isKeyValueObject)(e))return this.selectedItems.delete(e);{const t=Array.from(this.selectedItems).find(t=>(0,i.isObjectEqual)(t,e));if(void 0!==t)return this.selectedItems.delete(t),!0}return!1}has(e){return(0,s.includesValue)(this.getItemsArray(),e)}clear(){this.selectedItems.clear()}getSize(){return this.selectedItems.size}getItemsArray(){return Array.from(this.selectedItems)}}},22507(e,t,r){"use strict";t.__esModule=!0,t.createListElement=function(e){let{root:t}=e;return t.createElement("ul")},t.createListItemElement=function(e){let{rootDocument:t,instanceId:r,itemKey:n,itemValue:o,indexWithinList:i,checked:s=!1,disabled:a=!1}=e;const l=t.createElement("li"),h=t.createElement("div"),c=t.createElement("input"),d=t.createElement("label");c.id=`${r}-${u}${i}`,c.type="checkbox",c.dataset.value=o,c.dataset.index=i,c.dataset.disabled=!s&&a,n&&(c.dataset.key=n);return d.htmlFor=c.id,d.textContent=o,h.appendChild(c),h.appendChild(d),l.appendChild(h),l},t.createSearchIcon=function(e){let{root:t}=e;const r=t.createElement("div");return(0,n.addClass)(r,l),(0,n.setAttribute)(r,[(0,o.A11Y_HIDDEN)()]),r},t.createSearchInputElement=function(e){let{root:t}=e;const r=t.createElement("input");return(0,n.setAttribute)(r,[(0,o.A11Y_LABEL)("Search options"),["type","text"],["size",3],["placeholder","Search..."],["id",h]]),(0,n.addClass)(r,h),r},t.createSearchInputWrapper=function(e){let{root:t}=e;const r=t.createElement("div");return r.className=a,r},t.createSeparatorElement=function(e){let{root:t}=e;const r=t.createElement("div");return r.className=c,r},t.defocusItem=function(e){let{dropdownListElement:t,index:r}=e;const n=t.children[r];if(n){const e=(0,i.getCheckboxElement)(n);e&&e.blur()}},t.deselectAllItems=function(e){let{dropdownListElement:t}=e;t.querySelectorAll(`.${d}`).forEach(e=>p(e))},t.deselectItem=p,t.disableUncheckedCheckboxes=function(e){let{dropdownListElement:t}=e;t.querySelectorAll('input[type="checkbox"]:not(:checked)').forEach(e=>{e.dataset.disabled=!0})},t.enableAllCheckboxes=function(e){let{dropdownListElement:t}=e;t.querySelectorAll('input[type="checkbox"]').forEach(e=>{e.dataset.disabled=!1})},t.focusItemAt=function(e){let{dropdownListElement:t,index:r}=e;const n=t.children[r];if(n){const e=(0,i.getCheckboxElement)(n);e&&e.focus()}},t.getDropdownWidth=function(e){let{dropdownListElement:t}=e;return t.offsetWidth},t.selectItem=function(e){const t=(0,i.getCheckboxElement)(e);(0,n.addClass)(e,d),t.checked||(t.checked=!0)};var n=r(2783),o=r(17134),i=r(83075);const s="ht-multi-select-editor",a=`${s}-search-input-wrapper`,l=`${s}-search-icon`,h=`${s}-search-input`,c=`${s}-separator`,u=`${s}-item-`,d=t.SELECTED_ITEM_CLASS=`${s}-item-selected`;function p(e){const t=(0,i.getCheckboxElement)(e);(0,n.removeClass)(e,d),t.checked&&(t.checked=!1)}},75568(e,t,r){"use strict";t.__esModule=!0;var n=r(41016);t.EDITOR_TYPE=n.EDITOR_TYPE,t.MultiSelectEditor=n.MultiSelectEditor},41016(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(92840),s=n(r(23695)),a=r(7725),l=r(5065),h=r(2783),c=r(60755),u=r(17134),d=r(74608),p=r(83075);function g(e,t,r){f(e,t),t.set(e,r)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t){return e.get(w(e,t))}function C(e,t,r){return e.set(w(e,t),r),r}function w(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const y=t.EDITOR_TYPE="multiselect",v="multiselectEditor";var E=new WeakMap,S=new WeakMap,b=new WeakSet;class R extends i.BaseEditor{static get EDITOR_TYPE(){return y}constructor(e){var t,r,n;super(e),f(r=this,n=b),n.add(r),(0,o.default)(this,"_closeAfterDataChange",!1),g(this,E,new l.SelectedItemsController),g(this,S,null),(0,o.default)(this,"dropdownContainerElement",null),(0,o.default)(this,"dropdownController",null!==(t=this.dropdownController)&&void 0!==t?t:null),this.eventManager=new s.default(this),this.createElements(),this.bindEvents()}createElements(){const{rootDocument:e}=this.hot;C(S,this,e.createElement("div")),m(S,this).style.display="none",(0,h.addClass)(m(S,this),"handsontableEditor"),this.dropdownContainerElement=this.hot.rootDocument.createElement("div"),(0,h.addClass)(this.dropdownContainerElement,"ht-multi-select-editor handsontableEditor"),(0,h.setAttribute)(this.dropdownContainerElement,[(0,u.A11Y_LABEL)("Select options"),(0,u.A11Y_GROUP)()]),m(S,this).appendChild(this.dropdownContainerElement),this.hot.rootElement.appendChild(m(S,this)),this.dropdownController=new a.DropdownController(this.dropdownContainerElement,this.hot.guid)}prepare(e,t,r,n,o,i){super.prepare(e,t,r,n,o,i);const s=(0,p.parseStringifiedValue)(o),a=Array.isArray(s)?s:[s],l=(0,p.getValuesIntersection)(a,w(b,this,T).call(this));this.dropdownController.reset(),l.length>=w(b,this,F).call(this,"maxSelections")&&w(b,this,N).call(this),w(b,this,H).call(this,l),this.dropdownController.setSourceSortFunction(this.cellProperties.sourceSortFunction),this.dropdownController.fillDropdown(w(b,this,T).call(this),l),this.dropdownController.setVisibleRowsNumberSetting(w(b,this,F).call(this,"visibleRows")),this.dropdownController.setSearchInputVisibility(w(b,this,F).call(this,"searchInput")),void 0!==i.maxSelections&&m(E,this).setMaxSelectionCount(i.maxSelections)}finishEditing(e,t,r){super.finishEditing(e,t,r)}bindEvents(){var e=this;this.dropdownController.addLocalHook("afterDropdownItemChecked",(e,t)=>{w(b,this,P).call(this,e,t),m(E,this).getSize()>=this.cellProperties.maxSelections&&w(b,this,N).call(this)}),this.dropdownController.addLocalHook("afterDropdownItemUnchecked",(e,t)=>{w(b,this,D).call(this,e,t),m(E,this).getSize()<this.cellProperties.maxSelections&&w(b,this,O).call(this)}),this.addHook("afterDestroy",()=>this.destroy()),this.addHook("afterSetSourceDataAtCell",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(b,e,B).call(e,...r)}),this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.dropdownController.getInputController().addLocalHook("triggerFilter",e=>w(b,this,x).call(this,e))}open(e){if((0,c.isPrintableChar)(null==e?void 0:e.keyCode)){const t=1===e.key.length?e.key:String.fromCharCode(e.keyCode);this.dropdownController.getInputController().enabled&&(this.dropdownController.getInputController().setValue(t),w(b,this,x).call(this,t)),e.preventDefault(),this.enableFullEditMode()}w(b,this,A).call(this),this.refreshDimensions(),this.hot.getShortcutManager().setActiveContextName("editor"),w(b,this,_).call(this),this.dropdownController.getInputController().listen(),this.dropdownController.updateDimensions(w(b,this,k).call(this))}close(){w(b,this,I).call(this),w(b,this,M).call(this),this.dropdownController.getInputController().unlisten()}getValue(){return m(E,this).getItemsArray()}setValue(){}refreshDimensions(){if(!this.getEditedCell())return void this.close();const{top:e,start:t,height:r}=this.getEditedCellRect(),n=m(S,this).style;n.top=`${e+r}px`,n[this.hot.isRtl()?"right":"left"]=`${t}px`,(0,h.addClass)(m(S,this),"ht_editor_visible")}focus(){!1===w(b,this,F).call(this,"searchInput")?this.dropdownController.focusFirstItem():this.dropdownController.focusSearchInput()}getInputElement(){return this.dropdownController.getInputController().getInputElement()}destroy(){this.close(),this.dropdownController.reset()}}function T(){var e;return null!==(e=this.cellProperties.source)&&void 0!==e?e:[]}function _(){const e=this.hot.getShortcutManager().getContext("editor");e.addShortcuts([{keys:[["ArrowUp"]],callback:()=>{this.dropdownController.focusPreviousItem()}},{keys:[["ArrowDown"]],callback:()=>{this.hot.rootDocument.activeElement===this.getInputElement()?this.dropdownController.focusFirstItem():this.dropdownController.focusNextItem()}}],{group:v}),e.addShortcuts([{keys:[["enter"],["shift","enter"],["control/meta","enter"],["control/meta","shift","enter"]],runOnlyIf:()=>!w(b,this,F).call(this,"enterCommits"),callback:e=>{const t=this.hot.rootDocument.activeElement;return"INPUT"===t.tagName&&"checkbox"===t.type&&(t.checked=!t.checked,t.dispatchEvent(new Event("change"))),e.preventDefault(),!1}},{keys:[["space"]],runOnlyIf:()=>!w(b,this,F).call(this,"enterCommits"),callback:e=>{e.preventDefault()}}],{group:v,relativeToGroup:d.EDITOR_EDIT_GROUP,position:"before"})}function M(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(v)}function A(){m(S,this).style.display=""}function I(){m(S,this).style.display="none"}function N(){this.dropdownController.disableCheckboxes()}function O(){this.dropdownController.enableCheckboxes()}function x(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=w(b,this,F).call(this,"filterSelectedItems"))||void 0===t||t;const n=w(b,this,T).call(this).filter(t=>{var n;const o=null!==(n=null==t?void 0:t.value)&&void 0!==n?n:t;return!(r||!m(E,this).has(t))||(this.cellProperties.filteringCaseSensitive?o.includes(e):o.toLowerCase().includes(e.toLowerCase()))});this.dropdownController.fillDropdown(n,m(E,this).getItemsArray()),this.dropdownController.updateDimensions(w(b,this,k).call(this),!0)}function k(){const e=this.getEditedCellRect(),t=this.hot.view.isVerticallyScrollableByWindow(),r=this.hot.view.getWorkspaceHeight();let n=e.top;if(t){const e=this.hot.view.getTableOffset().top-this.hot.rootWindow.scrollY;n=Math.max(n+e,0)}return{spaceAbove:n,spaceBelow:r-n-e.height,cellHeight:e.height}}function L(){const e=m(E,this).getItemsArray();this.saveValue([[e]])}function P(e,t){e?m(E,this).add({key:e,value:t}):m(E,this).add(t),w(b,this,L).call(this),this.refreshDimensions()}function D(e,t){e?m(E,this).remove({key:e,value:t}):m(E,this).remove(t),w(b,this,L).call(this),this.refreshDimensions()}function H(e){e.length>0?C(E,this,new l.SelectedItemsController(e)):C(E,this,new l.SelectedItemsController)}function F(e){return this.cellProperties[e]}function B(e,t){this.isOpened()&&t===`${y}-renderer`&&parseInt(e[0][0],10)===this.cellProperties.visualRow&&parseInt(e[0][1],10)===this.cellProperties.visualCol&&(w(b,this,H).call(this,e[0][3]),this.dropdownController.fillDropdown(w(b,this,T).call(this),m(E,this).getItemsArray()),this.dropdownController.focusItem(0),m(E,this).getSize()>=this.cellProperties.maxSelections?w(b,this,N).call(this):w(b,this,O).call(this))}t.MultiSelectEditor=R},83075(e,t,r){"use strict";t.__esModule=!0,t.getCheckboxElement=function(e){return e.querySelector('input[type="checkbox"]')},t.getValuesIntersection=function(e,t){return(0,n.getIntersectionOfArrays)(e,t,(e,t)=>JSON.stringify(e)===JSON.stringify(t))},t.includesValue=function(e,t){return(0,o.isKeyValueObject)(t)?Array.isArray(e)&&e.some(e=>(0,o.isKeyValueObject)(e)?(0,o.isObjectEqual)(e,t):e===t):e.includes(t)},t.parseStringifiedValue=function(e){return(0,i.isJSON)(e)?JSON.parse(e):e};var n=r(27637),o=r(81185),i=r(58507)},42106(e,t,r){"use strict";t.__esModule=!0;var n=r(60908);t.EDITOR_TYPE=n.EDITOR_TYPE,t.NumericEditor=n.NumericEditor},60908(e,t,r){"use strict";t.__esModule=!0;var n=r(99326);const o=t.EDITOR_TYPE="numeric";class i extends n.TextEditor{static get EDITOR_TYPE(){return o}}t.NumericEditor=i},62212(e,t,r){"use strict";t.__esModule=!0;var n=r(4990);t.EDITOR_TYPE=n.EDITOR_TYPE,t.PasswordEditor=n.PasswordEditor},4990(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(99326),s=r(53537),a=r(2783),l=r(17134);const h=t.EDITOR_TYPE="password";class c extends i.TextEditor{constructor(){super(...arguments),(0,o.default)(this,"autoResize",(0,s.createInputElementResizer)(this.hot.rootDocument,{textContent:e=>"•".repeat(e.value.length)}))}static get EDITOR_TYPE(){return h}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,a.empty)(this.TEXTAREA_PARENT),this.TEXTAREA.setAttribute(...(0,l.A11Y_TABINDEX)(-1)),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}t.PasswordEditor=c},14284(e,t,r){"use strict";t.__esModule=!0,t.RegisteredEditor=d,t.getEditorInstance=t._getEditorInstance=function(e,t){let r;"function"==typeof e?(s.get(e)||p(null,e),r=s.get(e)):"string"==typeof e?r=l(e):(0,i.throwWithCause)('Only strings and functions can be passed as "editor" parameter');r||(0,i.throwWithCause)(`No editor registered under name "${e}"`);return r.getInstance(t)},t.getEditor=function(e){if("function"==typeof e)return e;h(e)||(0,i.throwWithCause)(`No registered editor found under "${e}" name`);return l(e).getConstructor()},t.registerEditor=p;var n=r(66503),o=r(65517),i=r(15141);const s=new WeakMap,{register:a,getItem:l,hasItem:h,getNames:c,getValues:u}=(0,o.staticRegister)("editors");function d(e){const t={},r=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new r(e)),t[e.guid]},n.Hooks.getSingleton().add("afterDestroy",function(){t[this.guid]=null})}function p(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);const r=new d(t);"string"==typeof e&&a(e,r),s.set(t,r)}t.getRegisteredEditors=u,t.getRegisteredEditorNames=c,t.hasEditor=h},63657(e,t,r){"use strict";t.__esModule=!0;var n=r(67544);t.EDITOR_TYPE=n.EDITOR_TYPE,t.SelectEditor=n.SelectEditor},67544(e,t,r){"use strict";t.__esModule=!0;var n=r(92840),o=r(2783),i=r(81185),s=r(17134);const a="ht_editor_visible",l="selectEditor",h=t.EDITOR_TYPE="select";class c extends n.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,s.A11Y_HIDDEN)()),e.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660))),(0,o.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,o.hasClass)(this.selectWrapper,a)&&(0,o.removeClass)(this.selectWrapper,a),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,r,n,s,a){super.prepare(e,t,r,n,s,a);const l=this.cellProperties.selectOptions;let h;h="function"==typeof l?this.prepareOptions(l(this.row,this.col,this.prop)):this.prepareOptions(l),(0,o.empty)(this.select),(0,i.objectEach)(h,(e,t)=>{const r=this.hot.rootDocument.createElement("OPTION");r.value=t,(0,o.fastInnerHTML)(r,e,this.hot.getSettings().sanitizer),this.select.appendChild(r)})}prepareOptions(e){let t={};if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)t[e[r]]=e[r];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!==n.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.close();const{top:e,start:t,width:r,height:i}=this.getEditedCellRect(),s=this.selectWrapper.style;s.height=`${i}px`,s.width=`${r}px`,s.top=`${e}px`,s[this.hot.isRtl()?"right":"left"]=`${t}px`,s.margin="0px",(0,o.addClass)(this.selectWrapper,a)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={group:l};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(l)}}t.SelectEditor=c},67429(e,t,r){"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){const r=(0,n.getCaretPosition)(t),o=t.value.split("\n");let i=r,s=0;for(let t=0;t<o.length;t++){const n=o[t];0!==t&&(s+=o[t-1].length+1);const a=s+n.length;if("home"===e?i=s:"end"===e&&(i=a),r<=a)break}(0,n.setCaretPosition)(t,i)};var n=r(2783)},99326(e,t,r){"use strict";t.__esModule=!0;var n=r(87274);t.EDITOR_TYPE=n.EDITOR_TYPE,t.TextEditor=n.TextEditor},87274(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(92840),s=n(r(23695)),a=r(81136),l=r(2783),h=r(40499),c=r(53537),u=r(67787),d=r(67429),p=r(17134);const g="ht_editor_hidden",f="textEditor",m=t.EDITOR_TYPE="text";class C extends i.BaseEditor{static get EDITOR_TYPE(){return m}constructor(e){super(e),(0,o.default)(this,"eventManager",new s.default(this)),(0,o.default)(this,"autoResize",(0,c.createInputElementResizer)(this.hot.rootDocument)),(0,o.default)(this,"TEXTAREA",void 0),(0,o.default)(this,"textareaStyle",void 0),(0,o.default)(this,"TEXTAREA_PARENT",void 0),(0,o.default)(this,"textareaParentStyle",void 0),(0,o.default)(this,"layerClass",void 0),this.eventManager=new s.default(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",()=>this.destroy())}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e}open(){this._opened=!0,this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.autoResize.unObserve(),(0,l.isInternalElement)(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,r,n,o,s){const a=this.state;if(super.prepare(e,t,r,n,o,s),!s.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=s;e&&!this.isOpened()&&(this.TEXTAREA.value=""),a===i.EDITOR_STATE.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===i.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),(0,l.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"textarea";const{rootDocument:t}=this.hot;this.TEXTAREA=t.createElement(e),(0,l.setAttribute)(this.TEXTAREA,[["data-hot-input",""],(0,p.A11Y_TABINDEX)(-1)]),(0,l.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=t.createElement("DIV"),(0,l.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,l.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.addClass)(this.TEXTAREA_PARENT,g),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){(0,a.isEdge)()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.addClass)(this.TEXTAREA_PARENT,g)}showEditableElement(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="";const e=this.TEXTAREA_PARENT.childNodes;let t=!1;(0,h.rangeEach)(e.length-1,r=>{const n=e[r];if((0,l.hasClass)(n,"handsontableEditor"))return t=!0,!1}),(0,l.hasClass)(this.TEXTAREA_PARENT,g)&&(0,l.removeClass)(this.TEXTAREA_PARENT,g),t?(this.layerClass="ht_editor_visible",(0,l.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,l.addClass)(this.TEXTAREA_PARENT,this.layerClass))}refreshValue(){const e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}refreshDimensions(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state!==i.EDITOR_STATE.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD)return void(e||this.close());const{top:t,start:r,width:n,maxWidth:o,height:s,maxHeight:a}=this.getEditedCellRect();this.textareaParentStyle.top=`${t}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${r}px`,this.showEditableElement();const l=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=l.fontSize,this.TEXTAREA.style.fontFamily=l.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(n,o),minHeight:Math.min(s,a),maxWidth:o,maxHeight:a},!0)}bindEvents(){(0,a.isIOS)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",()=>this.finishEditing(!1)),this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.addHook("afterColumnResize",()=>{this.refreshDimensions(),this.state===i.EDITOR_STATE.EDITING&&this.focus()}),this.addHook("afterRowResize",()=>{this.refreshDimensions(),this.state===i.EDITOR_STATE.EDITING&&this.focus()})}destroy(){this.eventManager.destroy(),this.clearHooks()}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={runOnlyIf:()=>(0,u.isDefined)(this.hot.getSelected()),group:f},r=()=>{this.hot.rootDocument.execCommand("insertText",!1,"\n")};e.addShortcuts([{keys:[["Control","Enter"]],callback:()=>(r(),!1),runOnlyIf:e=>!this.hot.selection.isMultiple()&&!e.altKey},{keys:[["Meta","Enter"]],callback:()=>(r(),!1),runOnlyIf:()=>!this.hot.selection.isMultiple()},{keys:[["Alt","Enter"]],callback:()=>(r(),!1)},{keys:[["Home"]],callback:(e,t)=>{let[r]=t;(0,d.updateCaretPosition)(r,this.TEXTAREA)}},{keys:[["End"]],callback:(e,t)=>{let[r]=t;(0,d.updateCaretPosition)(r,this.TEXTAREA)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(f)}}t.TextEditor=C},50644(e,t,r){"use strict";t.__esModule=!0;var n=r(44402);t.EDITOR_TYPE=n.EDITOR_TYPE,t.TimeEditor=n.TimeEditor},44402(e,t,r){"use strict";t.__esModule=!0;var n=r(99326);const o=t.EDITOR_TYPE="time";class i extends n.TextEditor{static get EDITOR_TYPE(){return o}prepare(e,t,r,n,o,i){super.prepare(e,t,r,n,o,i),this.TEXTAREA.dir="ltr"}}t.TimeEditor=i},23695(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.getListenersCounter=function(){return s};var o=n(r(43685)),i=r(82063);let s=0;t.default=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,"context",void 0),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}addEventListener(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function o(e){r.call(this,function(e){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),(0,i.stopImmediatePropagation)(this)},e}(e))}return this.context.eventListeners.push({element:e,event:t,callback:r,callbackProxy:o,options:n,eventManager:this}),e.addEventListener(t,o,n),s+=1,()=>{this.removeEventListener(e,t,r)}}removeEventListener(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context.eventListeners.length;for(;i;)if(i-=1,n=this.context.eventListeners[i],n.event===t&&n.element===e){if(r&&r!==n.callback)continue;if(o&&n.eventManager!==this)continue;this.context.eventListeners.splice(i,1),n.element.removeEventListener(n.event,n.callbackProxy,n.options),s-=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 r=this.context.eventListeners[t];e&&r.eventManager!==this||(this.context.eventListeners.splice(t,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),s-=1)}}clear(){this.clearEvents()}destroy(){this.clearEvents(),this.context=null}destroyWithOwnEventsOnly(){this.clearEvents(!0),this.context=null}fireEvent(e,t){let r=e.document,n=e;r||(r=e.ownerDocument?e.ownerDocument:e,n=r.defaultView);const o={bubbles:!0,cancelable:"mousemove"!==t,view:n,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};let i;r.createEvent?(i=r.createEvent("MouseEvents"),i.initMouseEvent(t,o.bubbles,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget||r.body.parentNode)):i=r.createEventObject(),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(`on${t}`,i)}}},87585(e,t){"use strict";t.__esModule=!0;t.SCOPE_TYPES=Object.freeze({INLINE:"inline",MODAL:"modal"}),t.FOCUS_SOURCES=Object.freeze({UNKNOWN:"unknown",CLICK:"click",TAB_FROM_ABOVE:"tab_from_above",TAB_FROM_BELOW:"tab_from_below"}),t.DEFAULT_SHORTCUTS_CONTEXT="grid"},87528(e,t,r){"use strict";t.__esModule=!0,t.useEventListener=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!1;function o(e){var n;r||(null===(n=t.onFocus)||void 0===n||n.call(t,e))}function i(e){var r;null===(r=t.onClick)||void 0===r||r.call(t,e)}function s(e){var r;"Tab"===e.key&&(null===(r=t.onTabKeyDown)||void 0===r||r.call(t,e))}function a(){r=!0}function l(){r=!1}return{mount:()=>{let t=e;for(;t;){const{documentElement:e}=t.document;e.addEventListener("focusin",o),e.addEventListener("click",i),e.addEventListener("keydown",s),e.addEventListener("mousedown",a),e.addEventListener("mouseup",l),t=(0,n.getParentWindow)(t)}},unmount:()=>{let t=e;for(;t;){const{documentElement:e}=t.document;e.removeEventListener("focusin",o),e.removeEventListener("click",i),e.removeEventListener("keydown",s),e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",l),t=(0,n.getParentWindow)(t)}}}};var n=r(2783)},29414(e,t,r){"use strict";t.__esModule=!0;var n=r(28065),o=r(2783),i=r(11526);function s(e,t,r){a(e,t),t.set(e,r)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(c(e,t))}function h(e,t,r){return e.set(c(e,t),r),r}function c(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const u=Object.freeze({CELL:"cell",MIXED:"mixed"});var d=new WeakMap,p=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakMap,C=new WeakMap,w=new WeakSet;function y(e){var t;const r=null===(t=l(d,this).getSelectedRangeActive())||void 0===t?void 0:t.highlight;if(!r||!l(d,this).selection.isCellVisible(r))return void e(null);const n=l(d,this).getCell(r.row,r.col,!0);null===n?l(d,this).addHookOnce("afterScroll",()=>{e(l(d,this).getCell(r.row,r.col,!0))}):e(n)}function v(){c(w,this,y).call(this,e=>{const{activeElement:t}=l(d,this).rootDocument;t&&(0,o.isOutsideInput)(t)&&t.blur(),this.focusOnHighlightedCell(e)})}function E(){c(w,this,y).call(this,e=>{this.getFocusMode()===u.MIXED&&"TD"===(null==e?void 0:e.nodeName)&&this.refocusToEditorTextarea()})}function S(){h(C,this,!0)}function b(){l(C,this)&&(h(C,this,!1),c(w,this,v).call(this))}function R(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?u.MIXED:u.CELL)}t.FocusGridManager=class{constructor(e){var t,r;a(t=this,r=w),r.add(t),s(this,d,void 0),s(this,p,void 0),s(this,g,1),s(this,f,null),s(this,m,new Map),s(this,C,!1),h(d,this,e)}init(){var e=this;const t=l(d,this).getSettings();h(p,this,t.imeFastEdit?u.MIXED:u.CELL),l(d,this).addHook("afterUpdateSettings",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(w,e,R).call(e,...r)}),l(d,this).addHook("afterSelection",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(w,e,S).call(e,...r)}),l(d,this).addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(w,e,S).call(e,...r)}),l(d,this).addHook("afterSelectionEnd",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(w,e,E).call(e,...r)}),l(d,this).addHook("afterRender",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(w,e,b).call(e,...r)})}getFocusMode(){return l(p,this)}setFocusMode(e){Object.values(u).includes(e)?h(p,this,e):(0,n.warn)(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return l(g,this)}setRefocusDelay(e){h(g,this,e)}setRefocusElementGetter(e){h(f,this,e)}getRefocusElement(){var e;return"function"==typeof l(f,this)?l(f,this).call(this):null===(e=l(d,this).getActiveEditor())||void 0===e?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const t=e=>{var t,r;const n=null===(t=l(d,this).getSelectedRangeActive())||void 0===t?void 0:t.highlight;if(!n)return;let i=l(d,this).runHooks("modifyFocusedElement",n.row,n.col,e);(0,o.isHTMLElement)(i)||(i=e),!i||null!==(r=l(d,this).getActiveEditor())&&void 0!==r&&r.isOpened()||i.focus({preventScroll:!0})};e?t(e):c(w,this,y).call(this,e=>t(e))}refocusToEditorTextarea(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l(g,this);var r,n;!l(d,this).getSettings().imeFastEdit||null!==(e=l(d,this).getActiveEditor())&&void 0!==e&&e.isOpened()||(null===(r=l(d,this).getActiveEditor())||void 0===r||null===(n=r.refreshValue)||void 0===n||n.call(r),l(m,this).has(t)||l(m,this).set(t,(0,i.debounce)(()=>{var e;l(d,this).isDestroyed||(null===(e=this.getRefocusElement())||void 0===e||e.select())},t)),l(m,this).get(t)())}}},70396(e,t,r){"use strict";t.__esModule=!0;var n={createFocusScopeManager:!0,FocusGridManager:!0},o=r(16393);t.createFocusScopeManager=o.createFocusScopeManager;var i=r(29414);t.FocusGridManager=i.FocusGridManager;var s=r(68924);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))})},41052(e,t,r){"use strict";t.__esModule=!0,t.createFocusScope=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i={shortcutsContextName:o.DEFAULT_SHORTCUTS_CONTEXT,type:o.SCOPE_TYPES.INLINE,contains:e=>e===t||t.contains(e),runOnlyIf:()=>!0,...r},s=(0,n.installFocusDetector)(e,t);return{getType:()=>i.type,hasContainerDetached:()=>!e.rootWrapperElement.contains(t),getShortcutsContextName:()=>i.shortcutsContextName,runOnlyIf:()=>i.runOnlyIf(),contains:e=>i.contains(e),activate:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.FOCUS_SOURCES.UNKNOWN;null===(e=i.onActivate)||void 0===e||e.call(i,t)},deactivate:()=>{var e;null===(e=i.onDeactivate)||void 0===e||e.call(i)},activateFocusCatchers:()=>{null==s||s.activate()},deactivateFocusCatchers:()=>{null==s||s.deactivate()},enable:()=>{t.removeAttribute("inert")},disable:()=>{t.setAttribute("inert","true")},destroy:()=>{null==s||s.destroy()}}};var n=r(19928),o=r(87585)},16393(e,t,r){"use strict";t.__esModule=!0,t.createFocusScopeManager=function(e){const t=(0,n.createUniqueMap)({errorIdExists:e=>`The "${e}" focus scope is already registered.`}),r=e.getShortcutManager();let h=null;function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.FOCUS_SOURCES.UNKNOWN;h!==e&&(null!==h&&u(h),h=e,h.activate(t),r.setActiveContextName(e.getShortcutsContextName()))}function u(e){d(),h===e&&(h=null,e.deactivate())}function d(){const r=t.getValues(),n=r.filter(e=>e.runOnlyIf()&&"modal"===e.getType());r.forEach(t=>{n.length>0&&n.includes(t)||0===n.length||t.hasContainerDetached()?t.enable():t.disable(),t===h?t.contains(e.rootDocument.activeElement)?t.deactivateFocusCatchers():t.activateFocusCatchers():t.runOnlyIf()?t.activateFocusCatchers():t.deactivateFocusCatchers()})}function p(r,n){if(!r.isConnected||!(0,l.isVisible)(r))return;const o=t.getValues().filter(e=>e.runOnlyIf());let i=!1;o.forEach(t=>{!i&&t.contains(r)&&(i=!0,n!==a.FOCUS_SOURCES.UNKNOWN&&e.listen(),c(t,n))}),!i&&h&&(u(h),e.unlisten())}const g=(0,s.useEventListener)(e.rootWindow,{onFocus:e=>{var t;p(e.target,null!==(t=e.target.dataset.htFocusSource)&&void 0!==t?t:a.FOCUS_SOURCES.UNKNOWN)},onClick:e=>{p(e.target,a.FOCUS_SOURCES.CLICK)},onTabKeyDown:()=>{d()}});return g.mount(),{getActiveScopeId:function(){if(!h)return null;return t.getId(h)},registerScope:function(n,s){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.hasItem(n)&&(0,o.throwWithCause)(`Scope with id "${n}" already registered`);const l=(0,i.createFocusScope)(e,s,a);t.addItem(n,l),r.getOrCreateContext(l.getShortcutsContextName())},unregisterScope:function(e){t.hasItem(e)||(0,o.throwWithCause)(`Scope with id "${e}" not found`);t.getItem(e).destroy(),t.removeItem(e)},activateScope:e=>function(e){t.hasItem(e)||(0,o.throwWithCause)(`Scope with id "${e}" not found`);c(t.getItem(e))}(e),deactivateScope:e=>function(e){t.hasItem(e)||(0,o.throwWithCause)(`Scope with id "${e}" not found`);u(t.getItem(e))}(e),destroy:()=>g.unmount()}};var n=r(46936),o=r(15141),i=r(41052),s=r(87528),a=r(87585),l=r(2783)},12742(e,t,r){"use strict";t.__esModule=!0,t.focusGridScope=function(e){var t;const r=(0,n.normalizeCoordsIfNeeded)(e),i={wrapped:!1,flipped:!1};let s,a=!0,l=!1;e.addHook("afterSelection",()=>{var t;a&&(s=null===(t=e.getSelectedRangeActive())||void 0===t?void 0:t.highlight)}),e.addHook("beforeRowWrap",(e,t,r)=>{i.wrapped=!0,i.flipped=r}),e.addHook("beforeEmptyDataStateShow",()=>{l=!0}),e.addHook("beforeEmptyDataStateHide",()=>{l=!1});e.getShortcutManager().getContext(o.GRID_SCOPE).addShortcuts([{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:o.GRID_GROUP,group:o.GRID_TAB_NAVIGATION_GROUP,position:"before",callback(){const{tabNavigation:t}=e.getSettings();e.getSelectedRangeActive()&&!t&&(a=!1)}},{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:o.GRID_GROUP,group:o.GRID_TAB_NAVIGATION_GROUP,callback(t){const{tabNavigation:r,autoWrapRow:o}=e.getSettings();a=!0,(!r||!e.selection.isSelected()||o&&i.wrapped&&i.flipped||!o&&i.wrapped)&&(o&&i.wrapped&&i.flipped&&(s=t.shiftKey?(0,n.getMostTopStartPosition)(e):(0,n.getMostBottomEndPosition)(e)),i.wrapped=!1,i.flipped=!1)},position:"after"}]);const h=null!==(t=e.rootGridElement)&&void 0!==t?t:e.rootElement;e.getFocusScopeManager().registerScope("grid",h,{contains:t=>!(h!==t&&!h.contains(t))||null===t.closest(".htMenu")&&e.rootPortalElement.contains(t),runOnlyIf:()=>{const{navigableHeaders:t}=e.getSettings();return!((l||!t)&&0===e.countRenderedRows()&&0===e.countRenderedCols()&&e.countRowHeaders()>0&&e.countColHeaders()>0)&&(!t&&e.countRenderedRows()>0&&e.countRenderedCols()>0||t&&(e.countRowHeaders()>0||e.countColHeaders()>0))},onActivate:t=>{if("tab_from_above"===t){var o;const t=null!==(o=r(s))&&void 0!==o?o:(0,n.getMostTopStartPosition)(e);if(t){!1!==e.runHooks("modifyFocusOnTabNavigation","from_above",t)&&e.selectCell(t.row,t.col)}}else if("tab_from_below"===t){var i;const t=null!==(i=r(s))&&void 0!==i?i:(0,n.getMostBottomEndPosition)(e);if(t){!1!==e.runHooks("modifyFocusOnTabNavigation","from_below",t)&&e.selectCell(t.row,t.col)}}}})};var n=r(70159),o=r(79145)},68924(e,t,r){"use strict";t.__esModule=!0,t.registerAllFocusScopes=function(e){[n.focusGridScope].forEach(t=>t(e))};var n=r(12742)},19928(e,t,r){"use strict";t.__esModule=!0,t.installFocusDetector=function(e,t){const r=o(e,n.FOCUS_SOURCES.TAB_FROM_ABOVE),i=o(e,n.FOCUS_SOURCES.TAB_FROM_BELOW);return t.prepend(r),t.append(i),{activate(){r.tabIndex=0,i.tabIndex=0},deactivate(){r.tabIndex=-1,i.tabIndex=-1},destroy(){r.remove(),i.remove()}}};var n=r(87585);function o(e,t){const r=e.rootDocument.createElement("div");return r.style.display="none",r.classList.add("htFocusCatcher"),r.dataset.htFocusSource=t,r}},70159(e,t,r){"use strict";t.__esModule=!0,t.getMostBottomEndPosition=i,t.getMostTopStartPosition=o,t.normalizeCoordsIfNeeded=function(e){return t=>{if(!t)return null;const{rowIndexMapper:r,columnIndexMapper:s}=e;if(r.isHidden(t.row)||s.isHidden(t.col))return null;const a=o(e),l=i(e);return null===a||null===l?null:(t.row=(0,n.clamp)(t.row,a.row,l.row),t.col=(0,n.clamp)(t.col,a.col,l.col),t)}};var n=r(40499);function o(e){const{rowIndexMapper:t,columnIndexMapper:r}=e,{navigableHeaders:n}=e.getSettings();let o=n&&e.countColHeaders()>0?-e.countColHeaders():0,i=n&&e.countRowHeaders()>0?-e.countRowHeaders():0;return 0===o&&(o=t.getVisualFromRenderableIndex(o)),0===i&&(i=r.getVisualFromRenderableIndex(i)),null===o||null===i?null:e._createCellCoords(o,i)}function i(e){var t,r;const{rowIndexMapper:n,columnIndexMapper:o}=e,{navigableHeaders:i}=e.getSettings();let s=n.getRenderableIndexesLength()-1,a=o.getRenderableIndexesLength()-1;if(s<0){if(!i||0===e.countColHeaders())return null;s=-1}if(a<0){if(!i||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=n.getVisualFromRenderableIndex(s))&&void 0!==t?t:s,null!==(r=o.getVisualFromRenderableIndex(a))&&void 0!==r?r:a)}},17134(e,t){"use strict";t.__esModule=!0;t.A11Y_TABINDEX=e=>["tabindex",e];t.A11Y_TREEGRID=()=>["role","treegrid"];t.A11Y_PRESENTATION=()=>["role","presentation"];t.A11Y_GRIDCELL=()=>["role","gridcell"];t.A11Y_GRIDCELL_BUTTON=()=>["role","gridcell button"];t.A11Y_ROWHEADER=()=>["role","rowheader"];t.A11Y_ROWGROUP=()=>["role","rowgroup"];t.A11Y_COLUMNHEADER=()=>["role","columnheader"];t.A11Y_ROW=()=>["role","row"];t.A11Y_MENU=()=>["role","menu"];t.A11Y_MENU_ITEM=()=>["role","menuitem"];t.A11Y_MENU_ITEM_CHECKBOX=()=>["role","menuitemcheckbox"];t.A11Y_COMBOBOX=()=>["role","combobox"];t.A11Y_LISTBOX=()=>["role","listbox"];t.A11Y_OPTION=()=>["role","option"];t.A11Y_CHECKBOX=()=>["role","checkbox"];t.A11Y_DIALOG=()=>["role","dialog"];t.A11Y_ALERTDIALOG=()=>["role","alertdialog"];t.A11Y_GROUP=()=>["role","group"];t.A11Y_SCOPE_COL=()=>["scope","col"];t.A11Y_SCOPE_ROW=()=>["scope","row"];t.A11Y_TEXT=()=>["type","text"];t.A11Y_LABEL=e=>["aria-label",e];t.A11Y_LABELED_BY=e=>["aria-labelledby",e];t.A11Y_DESCRIBED_BY=e=>["aria-describedby",e];t.A11Y_HIDDEN=()=>["aria-hidden","true"];t.A11Y_DISABLED=function(){return["aria-disabled",!(arguments.length>0&&void 0!==arguments[0])||arguments[0]]};t.A11Y_MULTISELECTABLE=()=>["aria-multiselectable","true"];t.A11Y_HASPOPUP=e=>["aria-haspopup",e];t.A11Y_ROWCOUNT=e=>["aria-rowcount",e];t.A11Y_COLCOUNT=e=>["aria-colcount",e];t.A11Y_ROWINDEX=e=>["aria-rowindex",e];t.A11Y_COLINDEX=e=>["aria-colindex",e];t.A11Y_EXPANDED=e=>["aria-expanded",e];t.A11Y_SORT=e=>["aria-sort",e];t.A11Y_READONLY=()=>["aria-readonly","true"];t.A11Y_INVALID=()=>["aria-invalid","true"];t.A11Y_CHECKED=e=>["aria-checked",e];t.A11Y_SELECTED=()=>["aria-selected","true"];t.A11Y_AUTOCOMPLETE=()=>["aria-autocomplete","list"];t.A11Y_CONTROLS=e=>["aria-controls",e];t.A11Y_ACTIVEDESCENDANT=e=>["aria-activedescendant",e];t.A11Y_LIVE=e=>["aria-live",e];t.A11Y_RELEVANT=e=>["aria-relevant",e];t.A11Y_SETSIZE=e=>["aria-setsize",e];t.A11Y_POSINSET=e=>["aria-posinset",e];t.A11Y_MODAL=()=>["aria-modal","true"]},27637(e,t){"use strict";function r(e,t,r,n){let o=-1,i=e,s=r;Array.isArray(e)||(i=Array.from(e));const a=i.length;for(n&&a&&(o+=1,s=i[o]),o+=1;o<a;)s=t(s,i[o],o,i),o+=1;return s}function n(e,t){let r=0,n=e;Array.isArray(e)||(n=Array.from(e));const o=n.length;for(;r<o&&!1!==t(n[r],r,n);)r+=1;return e}function o(e){return r(e,(e,t)=>e+t,0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return o(e)/e.length},t.arrayEach=n,t.arrayFilter=function(e,t){let r=0,n=e;Array.isArray(e)||(n=Array.from(e));const o=n.length,i=[];let s=-1;for(;r<o;){const e=n[r];t(e,r,n)&&(s+=1,i[s]=e),r+=1}return i},t.arrayFlatten=function e(t){return r(t,(t,r)=>t.concat(Array.isArray(r)?e(r):r),[])},t.arrayMap=function(e,t){let r=0,n=e;Array.isArray(e)||(n=Array.from(e));const o=n.length,i=[];let s=-1;for(;r<o;){const e=n[r];s+=1,i[s]=t(e,r,n),r+=1}return i},t.arrayMax=function(e){return r(e,(e,t)=>e>t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return r(e,(e,t)=>e<t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayReduce=r,t.arraySum=o,t.arrayToString=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.join(t)},t.arrayUnique=function(e){const t=[];return n(e,e=>{-1===t.indexOf(e)&&t.push(e)}),t},t.extendArray=function(e,t){const r=t.length;let n=0;for(;n<r;)e.push(t[n]),n+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[o,...i]=[...t];let s=o;return n(i,e=>{s=s.filter(t=>!e.includes(t))}),s},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const o=t[t.length-1];let i,s=t;"function"==typeof o&&(i=o,s=s.slice(0,-1));const a=i?(e,t)=>t.some(t=>i(e,t)):(e,t)=>t.includes(e),[l,...h]=s;let c=l;return n(h,e=>{c=c.filter(t=>a(t,e))}),c},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[o,...i]=[...t],s=new Set(o);return n(i,e=>{n(e,e=>{s.has(e)||s.add(e)})}),Array.from(s)},t.pivot=function(e){const t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;const r=e.length,n=e[0].length;for(let o=0;o<r;o++)for(let r=0;r<n;r++)t[r]||(t[r]=[]),t[r][o]=e[o][r];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 r=0;for(;r<t;)e[r]=[e[r]],r+=1}},81136(e,t,r){"use strict";t.__esModule=!0,t.isChrome=function(){return s.chrome.value},t.isChromeWebKit=function(){return s.chromeWebKit.value},t.isEdge=function(){return s.edge.value},t.isEdgeWebKit=function(){return s.edgeWebKit.value},t.isFirefox=function(){return s.firefox.value},t.isFirefoxWebKit=function(){return s.firefoxWebKit.value},t.isIOS=function(){return a.ios.value},t.isIpadOS=function(){let{maxTouchPoints:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return e>2&&a.mac.value},t.isLinuxOS=function(){return a.linux.value},t.isMacOS=function(){return a.mac.value},t.isMobileBrowser=function(){return s.mobile.value},t.isSafari=function(){return s.safari.value},t.isWindowsOS=function(){return a.win.value},t.setBrowserMeta=l,t.setPlatformMeta=h;var n=r(81185),o=r(36306);const i=e=>{const t={value:!1,test:(r,n)=>{t.value=e(r,n)}};return t},s={chrome:i((e,t)=>/Chrome/.test(e)&&/Google/.test(t)),chromeWebKit:i(e=>/CriOS/.test(e)),edge:i(e=>/Edge/.test(e)),edgeWebKit:i(e=>/EdgiOS/.test(e)),firefox:i(e=>/Firefox/.test(e)),firefoxWebKit:i(e=>/FxiOS/.test(e)),mobile:i(e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)),safari:i((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t))},a={mac:i(e=>/^Mac/.test(e)),win:i(e=>/^Win/.test(e)),linux:i(e=>/^Linux/.test(e)),ios:i(e=>/iPhone|iPad|iPod/i.test(e))};function l(){let{userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.objectEach)(s,r=>{let{test:n}=r;n(e,t)})}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.objectEach)(a,t=>{let{test:r}=t;r(e)})}(0,o.isCSR)()&&(l(),h())},28065(e,t,r){"use strict";t.__esModule=!0,t.deprecatedWarn=function(e){(0,o.isDefined)(console)&&console.warn(`Deprecated: ${e}`)},t.error=function(){(0,o.isDefined)(console)&&console.error(...arguments)},t.info=function(){(0,o.isDefined)(console)&&console.info(...arguments)},t.log=i,t.logAggregatedItems=function(){let{logFunction:e=i,message:t,items:r,maxSample:o=5,itemFormatter:s=e=>`${e}`}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Array.isArray(r)||0===r.length)return;const a=r.length,l=r.slice(0,o).map(e=>` - ${s(e)}`),h=a>o?` - ...and ${a-o} more`:"",c=["Affected cells:",...l,...h?[h]:[]].join("\n");e((0,n.substitute)(t,{itemsCount:`${a} cell${a>1?"s":""}`,affectedCells:c}))},t.warn=function(){(0,o.isDefined)(console)&&console.warn(...arguments)};var n=r(58507),o=r(67787);function i(){(0,o.isDefined)(console)&&console.log(...arguments)}},13833(e,t){"use strict";t.__esModule=!0;t.BAD_VALUE_TEXT="#bad-value#"},52682(e,t,r){"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,n.isObject)(e[0])&&(t=(0,n.deepObjectSize)(e[0])));return t},t.createEmptySpreadsheetData=function(e,t){const r=[];let n;for(let o=0;o<e;o++){n=[];for(let e=0;e<t;e++)n.push("");r.push(n)}return r},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 r=[];let n,o;for(n=0;n<e;n++){const e=[];for(o=0;o<t;o++)e.push(i(o)+(n+1));r.push(e)}return r},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 r=[];let n,o;for(n=0;n<e;n++){const e={};for(o=0;o<t;o++)e[`prop${o}`]=i(o)+(n+1);r.push(e)}return r},t.dataRowToChangesArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e;const n=[];Array.isArray(e)&&Array.isArray(e[0])||(r=[e]);return r.forEach((e,r)=>{Array.isArray(e)?e.forEach((e,o)=>{n.push([r+t,o,e])}):Object.keys(e).forEach(o=>{n.push([r+t,o,e[o]])})}),n},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 r=0,n=e.length-1;r<e.length;r+=1,n-=1)t+=26**n*(o.indexOf(e[r])+1);return t-=1,t},t.spreadsheetColumnLabel=i;var n=r(81185);const o="ABCDEFGHIJKLMNOPQRSTUVWXYZ";function i(e){let t,r=e+1,n="";for(;r>0;)t=(r-1)%26,n=String.fromCharCode(65+t)+n,r=parseInt((r-t)/26,10);return n}},87971(e,t,r){"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},t.isValidISODate=function(e){if("string"!=typeof e||!o.test(e))return!1;const t=new Date(e);return!Number.isNaN(t.getTime())&&e===t.toISOString().slice(0,10)},t.isValidTime=function(e){return"string"==typeof e&&i.test(e)},t.parseToLocalDate=function(e){if((0,n.isEmpty)(e))return null;if("string"==typeof e&&o.test(e)){const[t,r,n]=e.split("-").map(Number);return new Date(t,r-1,n)}return null},t.parseToLocalTime=function(e){if((0,n.isEmpty)(e))return null;if("string"!=typeof e)return null;const t=i.exec(e);if(!t)return null;const r=Number(t[1]),o=Number(t[2]),s=void 0!==t[3]?Number(t[3]):0,a=t[4],l=void 0!==a?Number(a.padEnd(3,"0").slice(0,3)):0;return new Date(1970,0,1,r,o,s,l)};var n=r(67787);const o=t.ISO_DATE_REGEX=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/;const i=t.TIME_REGEX=/^([01]\d|2[0-3]):([0-5]\d)(?::([0-5]\d)(?:\.(\d{1,3}))?)?$/},2783(e,t,r){"use strict";t.__esModule=!0,t.addClass=d,t.addEvent=function(e,t,r){e.addEventListener(t,r,!1)},t.clearTextSelection=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.getSelection&&(e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges())},t.closest=h,t.closestDown=function(e,t,r){const n=[];let o=e;for(;o&&(o=h(o,t,r),o&&(!r||r.contains(o)));)n.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode;const i=n.length;return i?n[i-1]:null},t.empty=f,t.fastInnerHTML=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.sanitize;m.test(t)?(w||r!==n.sanitize||(w=!0,(0,s.deprecatedWarn)("The HTML sanitization using DOMPurify library is deprecated and will be removed in the next major release. Use the `sanitizer` option instead.\n\nMigration guide: https://handsontable.com/docs/migration-from-16.2-to-17.0/\n`sanitizer` documentation: https://handsontable.com/docs/api/options/#sanitizer")),e.innerHTML="function"==typeof r?r(t,"innerHTML"):t):y(e,t)},t.fastInnerText=y,t.findFirstParentWithClass=function(e,t){const r={element:void 0,classNames:[]};let n=e;for(;null!==n&&n!==e.ownerDocument.documentElement&&!r.element;){if("string"==typeof t&&n.classList.contains(t))r.element=n,r.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(n.classList).filter(e=>t.test(e));e.length&&(r.element=n,r.classNames.push(...e))}n=n.parentElement}return r},t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;return 0},t.getCssTransform=function(e){let t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];return-1},t.getFractionalScalingCompensation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!(0,i.isWindowsOS)())return 0;return Number.isInteger(e.defaultView.devicePixelRatio||1)?0:2},t.getFrameElement=l,t.getMaximumScrollLeft=function(e){return e.scrollWidth-e.clientWidth},t.getMaximumScrollTop=function(e){return e.scrollHeight-e.clientHeight},t.getParent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1,n=null,o=e;for(;null!==o;){if(r===t){n=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(r+=1,o=o.parentNode)}return n},t.getParentWindow=function(e){return l(e)&&e.parent},t.getScrollLeft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return E(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return v(t);return e.scrollTop},t.getScrollableElement=function(e){let t=e.ownerDocument,r=t?t.defaultView:void 0;t||(t=e.document?e.document:e,r=t.defaultView);const n=["auto","scroll"];let o=e.parentNode;for(;o&&o.style&&t.body!==o;){let{overflow:e,overflowX:t,overflowY:i}=o.style;if([e,t,i].includes("scroll"))return o;if(({overflow:e,overflowX:t,overflowY:i}=r.getComputedStyle(o)),n.includes(e)||n.includes(t)||n.includes(i))return o;if(o.clientHeight<=o.scrollHeight+1&&(n.includes(i)||n.includes(e)))return o;if(o.clientWidth<=o.scrollWidth+1&&(n.includes(t)||n.includes(e)))return o;o=o.parentNode}return r},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===C&&(C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const r=e.createElement("div");!(0,i.isSafari)()||(0,i.isMobileBrowser)()||(0,i.isIpadOS)()||r.classList.add("htScrollbarSafariTest");r.style.boxSizing="content-box",r.style.height="150px",r.style.left="0px",r.style.overflow="hidden",r.style.position="absolute",r.style.top="0px",r.style.width="200px",r.style.visibility="hidden",r.appendChild(t),e.body.appendChild(r);const n=t.offsetWidth;r.style.overflow="scroll";let o=t.offsetWidth;n===o&&(o=r.clientWidth);return e.body.removeChild(r),n-o}(e));return C},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;return 0},t.getSelectionText=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const t=e.document;let r="";e.getSelection?r=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(r=t.selection.createRange().text);return r},t.getStyle=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===r)return"width"===t?`${r.innerWidth}px`:"height"===t?`${r.innerHeight}px`:void 0;const n=e.style[t];if(""!==n&&void 0!==n)return n;const o=r.getComputedStyle(e);if(""!==o[t]&&void 0!==o[t])return o[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,r=t.defaultView;let n=e.parentNode;for(;n&&n.style&&t.body!==n;){if("visible"!==n.style.overflow&&""!==n.style.overflow)return n;const e=r.getComputedStyle(n),t=["scroll","hidden","auto","clip"],o=e.getPropertyValue("overflow"),i=e.getPropertyValue("overflow-y"),s=e.getPropertyValue("overflow-x");if(t.includes(o)||t.includes(i)||t.includes(s))return n;n=n.parentNode}return r},t.getWindowScrollLeft=E,t.getWindowScrollTop=v,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){if(void 0===e.classList||"string"!=typeof t||""===t)return!1;return e.classList.contains(t)},t.hasHorizontalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollWidth>e.innerWidth;return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollHeight>e.innerHeight;return e.offsetWidth!==e.clientWidth},t.hasZeroHeight=function(e){const t=e.ownerDocument.defaultView;let r=e;for(;r.parentNode;){if("0px"===r.style.height||"0"===r.style.height){const e=t.getComputedStyle(r).getPropertyValue("overflow");return"hidden"===e||"clip"===e}r=r.parentNode}return!1},t.index=function(e){let t=0,r=e;if(r.previousSibling)for(;r=r.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){let r=e.parentNode,n=[];"string"==typeof t?n=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):n.push(t);for(;null!==r;){if(n.indexOf(r)>-1)return!0;r=r.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isHTMLElement=function(e){var t;const r=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView.Element;return!!(r&&null!==r&&e instanceof r)},t.isInput=S,t.isInternalElement=function(e,t){const r=e.closest(".handsontable");return!!r&&(r.parentNode===t||r===t)},t.isOutsideInput=b,t.isVisible=function e(t){const r=t.ownerDocument.documentElement,n=t.ownerDocument.defaultView;let o=t;for(;o!==r;){if(null===o)return!1;if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(!o.host)return!1;if(o.host.impl)return e(o.host.impl);if(o.host)return e(o.host);(0,a.throwWithCause)("Lost in Web Components world")}else if("none"===n.getComputedStyle(o).display)return!1;o=o.parentNode}return!0},t.makeElementContentEditableAndSelectItsContent=R,t.matchesCSSRules=function(e,t){const{selectorText:r}=t;let n=!1;t.type===CSSRule.STYLE_RULE&&r&&(e.msMatchesSelector?n=e.msMatchesSelector(r):e.matches&&(n=e.matches(r)));return n},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((r,n)=>{r.forEach(r=>{r.isIntersecting&&null!==e.offsetParent&&(t(),n.unobserve(e))})},{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){const t=e.ownerDocument,r=t.defaultView,n=t.documentElement;let o,i,s,a=e;o=a.offsetLeft,i=a.offsetTop,s=a;for(;(a=a.offsetParent)&&a!==t.body&&"offsetLeft"in a;)o+=a.offsetLeft,i+=a.offsetTop,s=a;s&&"fixed"===s.style.position&&(o+=r.pageXOffset||n.scrollLeft,i+=r.pageYOffset||n.scrollTop);return{left:o,top:i}},t.outerHeight=function(e){return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,r){const n=r.parentElement.querySelector(`.ht_clone_${e}`);return n?n.contains(t):null},t.removeAttribute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);const{regexFree:r,regexes:n}=u(t,!0);r.forEach(t=>{""!==t&&e.removeAttribute(t)}),n.forEach(t=>{e.getAttributeNames().forEach(r=>{t.test(r)&&e.removeAttribute(r)})})},t.removeClass=p,t.removeContentEditableFromElementAndDeselect=T,t.removeEvent=function(e,t,r){e.removeEventListener(t,r,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1){const r=t.childNodes;for(let t=r.length-1;t>=0;t--)e(r[t])}},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")},t.runWithSelectedContendEditableElement=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];R(e,r),t(),T(e,r)},t.selectElementIfAllowed=function(e){b(e.ownerDocument.activeElement)||e.select()},t.setAttribute=g,t.setCaretPosition=function(e,t,r){void 0===r&&(r=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,r)}catch(n){const o=e.parentNode,i=o.style.display;o.style.display="block",e.setSelectionRange(t,r),o.style.display=i}}},t.setOverlayPosition=function(e,t,r){e.style.transform=`translate3d(${t},${r},0)`};var n=r(58507),o=r(17134),i=r(81136),s=r(28065),a=r(15141);function l(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:n,DOCUMENT_FRAGMENT_NODE:o}=Node;let i=e;for(;null!=i&&i!==r;){const{nodeType:e,nodeName:r}=i;if(e===n&&(t.includes(r)||t.includes(i)))return i;const{host:s}=i;i=s&&e===o?s:i.parentNode}return null}function c(e){return e&&e.length?e.filter(e=>!!e):[]}function u(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];const r=[],n=[];return n.push(...e.filter(e=>{const n=e instanceof RegExp;return n&&t&&r.push(e),!n})),t?{regexFree:n,regexes:r}:n}function d(e,t){"string"==typeof t&&(t=t.split(" ")),(t=c(t)).length>0&&e.classList.add(...t)}function p(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:r,regexes:n}=u(t,!0);r=c(r),r.length>0&&e.classList.remove(...r),n.forEach(t=>{e.classList.forEach(r=>{t.test(r)&&e.classList.remove(r)})})}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;Array.isArray(t)||(t=[[t,r]]),t.forEach(t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(...t)})}function f(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const m=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/;let C,w=!1;function y(e,t){const r=e.firstChild;r&&3===r.nodeType&&null===r.nextSibling?r.textContent=t:(f(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function v(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function E(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}function S(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function b(e){return S(e)&&!1===e.hasAttribute("data-hot-input")}function R(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=e.ownerDocument,i=n.createRange(),s=n.defaultView.getSelection();g(e,"contenteditable",!0),r&&g(e,...(0,o.A11Y_HIDDEN)()),t&&d(e,"invisibleSelection"),i.selectNodeContents(e),s.removeAllRanges(),s.addRange(i)}function T(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=e.ownerDocument.defaultView.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),r.removeAllRanges(),t&&p(e,"invisibleSelection"),e.removeAttribute("contenteditable")}},82063(e,t,r){"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"undefined"!=typeof TouchEvent&&e instanceof TouchEvent},t.offsetRelativeTo=function(e,t){const r={x:e.offsetX,y:e.offsetY};let o=e.target;if(!(0,n.isHTMLElement)(t)||o!==t&&o.contains(t))return r;for(;o!==t;)r.x+=o.offsetLeft,r.y+=o.offsetTop,o=o.offsetParent;return r},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0};var n=r(2783)},15141(e,t){"use strict";t.__esModule=!0,t.throwWithCause=function(e){throw new Error(e,{cause:{handsontable:!0}})}},36306(e,t){"use strict";let r;t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r)return r;r="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1;return r},t.isCSR=function(){return"undefined"!=typeof window},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)}},11526(e,t,r){"use strict";t.__esModule=!0,t.curry=function(e){const t=e.length;return function r(n){return function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];const a=n.concat(i);let l;return l=a.length>=t?e.apply(this,a):r(a),l}}([])},t.curryRight=function(e){const t=e.length;return function r(n){return function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];const a=n.concat(i.reverse());let l;return l=a.length>=t?e.apply(this,a):r(a),l}}([])},t.debounce=function(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=null;return function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n&&clearTimeout(n),n=setTimeout(()=>{t=e.apply(this,i)},r),t}},t.fastCall=function(e,t,r,n,i,s,a,l){if((0,o.isDefined)(l))return e.call(t,r,n,i,s,a,l);if((0,o.isDefined)(a))return e.call(t,r,n,i,s,a);if((0,o.isDefined)(s))return e.call(t,r,n,i,s);if((0,o.isDefined)(i))return e.call(t,r,n,i);if((0,o.isDefined)(n))return e.call(t,r,n);if((0,o.isDefined)(r))return e.call(t,r);return e.call(t)},t.isFunction=function(e){return"function"==typeof e},t.partial=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.apply(this,r.concat(n))}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[o,...i]=t;return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.arrayReduce)(i,(e,t)=>t(e),o.apply(this,t))}},t.throttle=i,t.throttleAfterHits=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const n=i(e,t);let o=r;function s(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return o?(o-=1,e.apply(this,r)):n.apply(this,r)}return s.clearHits=function(){o=r},s};var n=r(27637),o=r(67787);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=0;const n={lastCallThrottled:!0};let o=null;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];const l=Date.now();let h=!1;n.lastCallThrottled=!0,r||(r=l,h=!0);const c=t-(l-r);return h?(n.lastCallThrottled=!1,e.apply(this,s)):(o&&clearTimeout(o),o=setTimeout(()=>{n.lastCallThrottled=!1,e.apply(this,s),r=0,o=void 0},c)),n}}},67787(e,t,r){"use strict";t.__esModule=!0,t._injectProductInfo=function(e,t,r){const n=!i(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),f="17.0.0-rc13";let m,C="invalid",w="invalid";const y=function(e){let t=[][s],r=t;if(e[s]!==c("Z"))return!1;for(let t="",n="B<H4P+".split(""),o=c(n.shift());o;o=c(n.shift()||"A"))--o<""[s]?r|=(l(`${l(a(t)+(a(h(e,Math.abs(o),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=h(e,o,o?1===n[s]?9:8:6);return r===t}(e=u(e||""));if(n||o||y)if(y){const[t,n,o]=r.split("/").map(Number),i=Math.floor(Date.UTC(o,n-1,t)/864e5),l=a(h(u(v=e),a("12"),c("F")))/(a(h(u(v),c("B"),~~![][s]))||9);m=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"2-digit",timeZone:"UTC"}).format(864e5*(l+1)),i>l?(C="expired",w="expired"):(C="valid",w="valid")}else o?(C="non_commercial",w="valid"):(C="invalid",w="invalid");else C="missing",w="missing";var v;"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)&&(C="valid",w="valid");if(!d&&"valid"!==C){p[C]({keyValidityDate:m,hotVersion:f})&&console["non_commercial"===C?"info":"warn"](p[C]({keyValidityDate:m,hotVersion:f})),d=!0}if("valid"!==w&&t){if(g[w]({keyValidityDate:m,hotVersion:f})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=g[w]({keyValidityDate:m,hotVersion:f}),t.appendChild(e)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=i,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=o,t.stringify=function(e){let t;switch(typeof e){case"string":case"number":t=`${e}`;break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var n=r(27033);function o(e){return void 0===e}function i(e){return null===e||""===e||o(e)}const s="length",a=e=>parseInt(e,16),l=e=>parseInt(e,10),h=(e,t,r)=>e.substr(t,r),c=e=>e.codePointAt(0)-65,u=e=>`${e}`.replace(/\-/g,"");let d=!1;const p={invalid:()=>n.toSingleLine`
39
+ required by the native time input. Received:`,e)}focus(){this.TEXTAREA.select()}open(){super.open();try{this.TEXTAREA.showPicker()}catch{}}}t.IntlTimeEditor=l},7725(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(81185),i=n(r(27348)),s=r(83075),a=n(r(23695)),l=r(59078),h=r(22507);function c(e,t,r){u(e,t),t.set(e,r)}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t){return e.get(g(e,t))}function p(e,t,r){return e.set(g(e,t),r),r}function g(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var f=new WeakMap,m=new WeakMap,C=new WeakMap,w=new WeakMap,y=new WeakMap,v=new WeakMap,E=new WeakMap,S=new WeakMap,b=new WeakMap,R=new WeakMap,T=new WeakSet;class _{constructor(e,t){var r,n;u(r=this,n=T),n.add(r),c(this,f,null),c(this,m,null),c(this,C,null),c(this,w,null),c(this,y,null),c(this,v,null),c(this,E,null),c(this,S,null),c(this,b,new a.default(this)),c(this,R,{visibleRowsNumber:null,entriesCount:0,flippedVertically:!1,currentlySelectedItemIndex:0,checkboxChangeListeners:new Map,areCheckboxesDisabled:!1,sourceSortFunction:null}),p(m,this,e),p(S,this,d(m,this).ownerDocument),p(f,this,t),this.init()}init(){p(C,this,(0,h.createListElement)({root:d(S,this)})),p(w,this,(0,h.createSearchInputElement)({root:d(S,this)}));const e=(0,h.createSearchIcon)({root:d(S,this)});p(v,this,(0,h.createSearchInputWrapper)({root:d(S,this)})),p(y,this,(0,h.createSeparatorElement)({root:d(S,this)})),d(v,this).appendChild(e),d(v,this).appendChild(d(w,this)),d(m,this).appendChild(d(v,this)),d(m,this).appendChild(d(y,this)),d(m,this).appendChild(d(C,this)),p(E,this,new l.InputController({input:d(w,this),eventManager:d(b,this)}))}setVisibleRowsNumberSetting(e){d(R,this).visibleRowsNumberSetting=e}setSourceSortFunction(e){d(R,this).sourceSortFunction=null!=e?e:null}setSearchInputVisibility(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];d(v,this).style.display=e?"":"none",d(y,this).style.display=e?"":"none",d(E,this).toggle(e)}fillDropdown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.removeAllDropdownItems(),d(R,this).currentlySelectedItemIndex=0,Array.isArray(t)||(t=[]),d(R,this).sourceSortFunction&&(e=d(R,this).sourceSortFunction(e)),e.forEach((e,r)=>{var n;g(T,this,k).call(this,{rootDocument:d(S,this),itemKey:null==e?void 0:e.key,itemValue:null!==(n=null==e?void 0:e.value)&&void 0!==n?n:e,indexWithinList:r,checked:(0,s.includesValue)(t,e),disabled:d(R,this).areCheckboxesDisabled})}),d(R,this).entriesCount=e.length,this.runLocalHooks("afterDropdownFill")}updateDimensions(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=g(T,this,N).call(this),n=g(T,this,A).call(this,e),o=n?e.spaceAbove:e.spaceBelow;if(!t&&n&&(d(R,this).flippedVertically=!0),d(R,this).entriesCount>0&&o<this.getHeight(!0)){const e=Math.max(Math.floor((o-g(T,this,x).call(this))/r)-1,1);d(R,this).actualRenderedItemsCount=d(R,this).visibleRowsNumberSetting?Math.min(e,d(R,this).visibleRowsNumberSetting):e}else d(R,this).actualRenderedItemsCount=Math.min(d(R,this).entriesCount,d(R,this).visibleRowsNumberSetting);d(R,this).actualRenderedItemsCount&&d(R,this).entriesCount>d(R,this).actualRenderedItemsCount?d(m,this).style.height=`${this.getHeight()}px`:d(m,this).style.height="",g(T,this,I).call(this,e),d(m,this).scrollTop=0}getDropdownWidth(){return(0,h.getDropdownWidth)({dropdownListElement:d(C,this)})}deselectAllItems(){(0,h.deselectAllItems)({dropdownListElement:d(C,this)})}focusFirstItem(){d(R,this).entriesCount>0&&g(T,this,M).call(this,0)}focusItem(e){g(T,this,M).call(this,e)}focusPreviousItem(){0!==d(R,this).currentlySelectedItemIndex?((0,h.defocusItem)({dropdownListElement:d(C,this),index:d(R,this).currentlySelectedItemIndex}),g(T,this,M).call(this,d(R,this).currentlySelectedItemIndex-1)):this.focusSearchInput()}focusNextItem(){d(R,this).currentlySelectedItemIndex!==d(R,this).entriesCount-1&&((0,h.defocusItem)({dropdownListElement:d(C,this),index:d(R,this).currentlySelectedItemIndex}),g(T,this,M).call(this,d(R,this).currentlySelectedItemIndex+1))}focusSearchInput(){d(w,this)&&d(w,this).focus()}reset(){this.removeAllDropdownItems(),g(T,this,D).call(this),d(w,this)&&(d(w,this).value=""),d(m,this).style.position="",d(m,this).style.top="",d(m,this).style.height="",d(m,this).scrollTop=0}isFlippedVertically(){return d(R,this).flippedVertically}getHeight(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=d(S,this).defaultView.getComputedStyle(d(m,this));return g(T,this,O).call(this,e)+g(T,this,x).call(this)+(!0===t?2*parseInt(r.getPropertyValue("--ht-menu-vertical-padding"),10):0)}getInputController(){return d(E,this)}removeAllDropdownItems(){Array.from(d(C,this).children).forEach(e=>g(T,this,P).call(this,e)),d(R,this).checkboxChangeListeners.clear(),d(C,this).innerHTML=""}disableCheckboxes(){d(R,this).areCheckboxesDisabled=!0,(0,h.disableUncheckedCheckboxes)({dropdownListElement:d(C,this)})}enableCheckboxes(){d(R,this).areCheckboxesDisabled=!1,(0,h.enableAllCheckboxes)({dropdownListElement:d(C,this)})}}function M(e){d(R,this).currentlySelectedItemIndex=e,(0,h.focusItemAt)({dropdownListElement:d(C,this),index:e})}function A(e){const{spaceAbove:t,spaceBelow:r,cellHeight:n}=e;return this.getHeight(!0)>r&&t>r+n}function I(e){const{cellHeight:t}=e;d(R,this).flippedVertically?(d(m,this).style.position="absolute",d(m,this).style.top=-this.getHeight(!1,!0)-t-2+"px"):(d(m,this).style.position="",d(m,this).style.top="")}function N(){const e=d(S,this).defaultView.getComputedStyle(d(m,this));return 2*parseInt(e.getPropertyValue("--ht-menu-item-vertical-padding"),10)+parseInt(e.getPropertyValue("--ht-line-height"),10)}function O(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const r=d(R,this).entriesCount;return(t?r:null!==(e=d(R,this).actualRenderedItemsCount)&&void 0!==e?e:r)*g(T,this,N).call(this)}function x(){if(!d(E,this).enabled)return 0;const e=d(S,this).defaultView.getComputedStyle(d(m,this));return d(v,this).offsetHeight+(d(y,this).offsetHeight+2*parseInt(e.getPropertyValue("--ht-menu-vertical-padding"),10))}function k(e){let{rootDocument:t,itemKey:r,itemValue:n,indexWithinList:o,checked:i=!1,disabled:s=!1}=e;const a=(0,h.createListItemElement)({rootDocument:t,instanceId:d(f,this),itemKey:r,itemValue:n,indexWithinList:o,checked:i,disabled:s});i&&(0,h.selectItem)(a),g(T,this,L).call(this,a),d(C,this).appendChild(a)}function L(e){const t=(0,s.getCheckboxElement)(e),r=()=>{"true"===t.dataset.disabled&&t.checked?t.checked=!1:t.checked?((0,h.selectItem)(e),this.runLocalHooks("afterDropdownItemChecked",t.dataset.key,t.dataset.value)):((0,h.deselectItem)(e),this.runLocalHooks("afterDropdownItemUnchecked",t.dataset.key,t.dataset.value))},n=e=>{e.target!==t&&"true"!==t.dataset.disabled&&"LABEL"!==e.target.tagName&&(t.checked=!t.checked,t.dispatchEvent(new Event("change")))};d(R,this).checkboxChangeListeners.set(t,{change:r,click:n}),d(b,this).addEventListener(t,"change",r),d(b,this).addEventListener(e,"click",n)}function P(e){const t=(0,s.getCheckboxElement)(e),r=d(R,this).checkboxChangeListeners.get(t);d(b,this).removeEventListener(t,"change",r.change),d(b,this).removeEventListener(e,"click",r.click),d(R,this).checkboxChangeListeners.delete(t)}function D(){d(R,this).visibleRowsNumberSetting=null,d(R,this).entriesCount=0,d(R,this).flippedVertically=!1,d(R,this).currentlySelectedItemIndex=0,d(R,this).checkboxChangeListeners.clear(),d(R,this).areCheckboxesDisabled=!1,d(R,this).sourceSortFunction=null}t.DropdownController=_,(0,o.mixin)(_,i.default)},59078(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(81185),i=n(r(27348));function s(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 a=new WeakSet;class l{constructor(e){let{input:t,eventManager:r}=e;s(this,a),this.input=t,this.eventManager=r,this.enabled=!0,this.onInput=this.onInput.bind(this)}getInputElement(){return this.input}setValue(e){this.input.value=e}toggle(e){this.enabled=e,this.input&&(e?this.listen():this.unlisten())}listen(){this.eventManager.addEventListener(this.input,"input",this.onInput)}unlisten(){this.eventManager.removeEventListener(this.input,"input",this.onInput)}onInput(){(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")})(a,this,h).call(this,this.input.value)}}function h(e){this.runLocalHooks("triggerFilter",e)}t.InputController=l,(0,o.mixin)(l,i.default)},5065(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(81185),s=r(83075);t.SelectedItemsController=class{constructor(e){var t;(0,o.default)(this,"selectedItems",null!==(t=this.selectedItems)&&void 0!==t?t:new Set),(0,o.default)(this,"maxSelectionsCount",1/0),Array.isArray(e)?this.selectedItems=new Set(e):this.selectedItems=new Set}setMaxSelectionCount(e){this.maxSelectionsCount=e}add(e){this.selectedItems.size>=this.maxSelectionsCount||(Array.isArray(e)?e.forEach(e=>this.selectedItems.add(e)):this.selectedItems.add(e))}remove(e){if(!(0,i.isKeyValueObject)(e))return this.selectedItems.delete(e);{const t=Array.from(this.selectedItems).find(t=>(0,i.isObjectEqual)(t,e));if(void 0!==t)return this.selectedItems.delete(t),!0}return!1}has(e){return(0,s.includesValue)(this.getItemsArray(),e)}clear(){this.selectedItems.clear()}getSize(){return this.selectedItems.size}getItemsArray(){return Array.from(this.selectedItems)}}},22507(e,t,r){"use strict";t.__esModule=!0,t.createListElement=function(e){let{root:t}=e;return t.createElement("ul")},t.createListItemElement=function(e){let{rootDocument:t,instanceId:r,itemKey:n,itemValue:o,indexWithinList:i,checked:s=!1,disabled:a=!1}=e;const l=t.createElement("li"),h=t.createElement("div"),c=t.createElement("input"),d=t.createElement("label");c.id=`${r}-${u}${i}`,c.type="checkbox",c.dataset.value=o,c.dataset.index=i,c.dataset.disabled=!s&&a,n&&(c.dataset.key=n);return d.htmlFor=c.id,d.textContent=o,h.appendChild(c),h.appendChild(d),l.appendChild(h),l},t.createSearchIcon=function(e){let{root:t}=e;const r=t.createElement("div");return(0,n.addClass)(r,l),(0,n.setAttribute)(r,[(0,o.A11Y_HIDDEN)()]),r},t.createSearchInputElement=function(e){let{root:t}=e;const r=t.createElement("input");return(0,n.setAttribute)(r,[(0,o.A11Y_LABEL)("Search options"),["type","text"],["size",3],["placeholder","Search..."],["id",h]]),(0,n.addClass)(r,h),r},t.createSearchInputWrapper=function(e){let{root:t}=e;const r=t.createElement("div");return r.className=a,r},t.createSeparatorElement=function(e){let{root:t}=e;const r=t.createElement("div");return r.className=c,r},t.defocusItem=function(e){let{dropdownListElement:t,index:r}=e;const n=t.children[r];if(n){const e=(0,i.getCheckboxElement)(n);e&&e.blur()}},t.deselectAllItems=function(e){let{dropdownListElement:t}=e;t.querySelectorAll(`.${d}`).forEach(e=>p(e))},t.deselectItem=p,t.disableUncheckedCheckboxes=function(e){let{dropdownListElement:t}=e;t.querySelectorAll('input[type="checkbox"]:not(:checked)').forEach(e=>{e.dataset.disabled=!0})},t.enableAllCheckboxes=function(e){let{dropdownListElement:t}=e;t.querySelectorAll('input[type="checkbox"]').forEach(e=>{e.dataset.disabled=!1})},t.focusItemAt=function(e){let{dropdownListElement:t,index:r}=e;const n=t.children[r];if(n){const e=(0,i.getCheckboxElement)(n);e&&e.focus()}},t.getDropdownWidth=function(e){let{dropdownListElement:t}=e;return t.offsetWidth},t.selectItem=function(e){const t=(0,i.getCheckboxElement)(e);(0,n.addClass)(e,d),t.checked||(t.checked=!0)};var n=r(2783),o=r(17134),i=r(83075);const s="ht-multi-select-editor",a=`${s}-search-input-wrapper`,l=`${s}-search-icon`,h=`${s}-search-input`,c=`${s}-separator`,u=`${s}-item-`,d=t.SELECTED_ITEM_CLASS=`${s}-item-selected`;function p(e){const t=(0,i.getCheckboxElement)(e);(0,n.removeClass)(e,d),t.checked&&(t.checked=!1)}},75568(e,t,r){"use strict";t.__esModule=!0;var n=r(41016);t.EDITOR_TYPE=n.EDITOR_TYPE,t.MultiSelectEditor=n.MultiSelectEditor},41016(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(92840),s=n(r(23695)),a=r(7725),l=r(5065),h=r(2783),c=r(60755),u=r(17134),d=r(74608),p=r(83075);function g(e,t,r){f(e,t),t.set(e,r)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t){return e.get(w(e,t))}function C(e,t,r){return e.set(w(e,t),r),r}function w(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const y=t.EDITOR_TYPE="multiselect",v="multiselectEditor";var E=new WeakMap,S=new WeakMap,b=new WeakSet;class R extends i.BaseEditor{static get EDITOR_TYPE(){return y}constructor(e){var t,r,n;super(e),f(r=this,n=b),n.add(r),(0,o.default)(this,"_closeAfterDataChange",!1),g(this,E,new l.SelectedItemsController),g(this,S,null),(0,o.default)(this,"dropdownContainerElement",null),(0,o.default)(this,"dropdownController",null!==(t=this.dropdownController)&&void 0!==t?t:null),this.eventManager=new s.default(this),this.createElements(),this.bindEvents()}createElements(){const{rootDocument:e}=this.hot;C(S,this,e.createElement("div")),m(S,this).style.display="none",(0,h.addClass)(m(S,this),"handsontableEditor"),this.dropdownContainerElement=this.hot.rootDocument.createElement("div"),(0,h.addClass)(this.dropdownContainerElement,"ht-multi-select-editor handsontableEditor"),(0,h.setAttribute)(this.dropdownContainerElement,[(0,u.A11Y_LABEL)("Select options"),(0,u.A11Y_GROUP)()]),m(S,this).appendChild(this.dropdownContainerElement),this.hot.rootElement.appendChild(m(S,this)),this.dropdownController=new a.DropdownController(this.dropdownContainerElement,this.hot.guid)}prepare(e,t,r,n,o,i){super.prepare(e,t,r,n,o,i);const s=(0,p.parseStringifiedValue)(o),a=Array.isArray(s)?s:[s],l=(0,p.getValuesIntersection)(a,w(b,this,T).call(this));this.dropdownController.reset(),l.length>=w(b,this,F).call(this,"maxSelections")&&w(b,this,N).call(this),w(b,this,H).call(this,l),this.dropdownController.setSourceSortFunction(this.cellProperties.sourceSortFunction),this.dropdownController.fillDropdown(w(b,this,T).call(this),l),this.dropdownController.setVisibleRowsNumberSetting(w(b,this,F).call(this,"visibleRows")),this.dropdownController.setSearchInputVisibility(w(b,this,F).call(this,"searchInput")),void 0!==i.maxSelections&&m(E,this).setMaxSelectionCount(i.maxSelections)}finishEditing(e,t,r){super.finishEditing(e,t,r)}bindEvents(){var e=this;this.dropdownController.addLocalHook("afterDropdownItemChecked",(e,t)=>{w(b,this,P).call(this,e,t),m(E,this).getSize()>=this.cellProperties.maxSelections&&w(b,this,N).call(this)}),this.dropdownController.addLocalHook("afterDropdownItemUnchecked",(e,t)=>{w(b,this,D).call(this,e,t),m(E,this).getSize()<this.cellProperties.maxSelections&&w(b,this,O).call(this)}),this.addHook("afterDestroy",()=>this.destroy()),this.addHook("afterSetSourceDataAtCell",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(b,e,B).call(e,...r)}),this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.dropdownController.getInputController().addLocalHook("triggerFilter",e=>w(b,this,x).call(this,e))}open(e){if((0,c.isPrintableChar)(null==e?void 0:e.keyCode)){const t=1===e.key.length?e.key:String.fromCharCode(e.keyCode);this.dropdownController.getInputController().enabled&&(this.dropdownController.getInputController().setValue(t),w(b,this,x).call(this,t)),e.preventDefault(),this.enableFullEditMode()}w(b,this,A).call(this),this.refreshDimensions(),this.hot.getShortcutManager().setActiveContextName("editor"),w(b,this,_).call(this),this.dropdownController.getInputController().listen(),this.dropdownController.updateDimensions(w(b,this,k).call(this))}close(){w(b,this,I).call(this),w(b,this,M).call(this),this.dropdownController.getInputController().unlisten()}getValue(){return m(E,this).getItemsArray()}setValue(){}refreshDimensions(){if(!this.getEditedCell())return void this.close();const{top:e,start:t,height:r}=this.getEditedCellRect(),n=m(S,this).style;n.top=`${e+r}px`,n[this.hot.isRtl()?"right":"left"]=`${t}px`,(0,h.addClass)(m(S,this),"ht_editor_visible")}focus(){!1===w(b,this,F).call(this,"searchInput")?this.dropdownController.focusFirstItem():this.dropdownController.focusSearchInput()}getInputElement(){return this.dropdownController.getInputController().getInputElement()}destroy(){this.close(),this.dropdownController.reset()}}function T(){var e;return null!==(e=this.cellProperties.source)&&void 0!==e?e:[]}function _(){const e=this.hot.getShortcutManager().getContext("editor");e.addShortcuts([{keys:[["ArrowUp"]],callback:()=>{this.dropdownController.focusPreviousItem()}},{keys:[["ArrowDown"]],callback:()=>{this.hot.rootDocument.activeElement===this.getInputElement()?this.dropdownController.focusFirstItem():this.dropdownController.focusNextItem()}}],{group:v}),e.addShortcuts([{keys:[["enter"],["shift","enter"],["control/meta","enter"],["control/meta","shift","enter"]],runOnlyIf:()=>!w(b,this,F).call(this,"enterCommits"),callback:e=>{const t=this.hot.rootDocument.activeElement;return"INPUT"===t.tagName&&"checkbox"===t.type&&(t.checked=!t.checked,t.dispatchEvent(new Event("change"))),e.preventDefault(),!1}},{keys:[["space"]],runOnlyIf:()=>!w(b,this,F).call(this,"enterCommits"),callback:e=>{e.preventDefault()}}],{group:v,relativeToGroup:d.EDITOR_EDIT_GROUP,position:"before"})}function M(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(v)}function A(){m(S,this).style.display=""}function I(){m(S,this).style.display="none"}function N(){this.dropdownController.disableCheckboxes()}function O(){this.dropdownController.enableCheckboxes()}function x(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=w(b,this,F).call(this,"filterSelectedItems"))||void 0===t||t;const n=w(b,this,T).call(this).filter(t=>{var n;const o=null!==(n=null==t?void 0:t.value)&&void 0!==n?n:t;return!(r||!m(E,this).has(t))||(this.cellProperties.filteringCaseSensitive?o.includes(e):o.toLowerCase().includes(e.toLowerCase()))});this.dropdownController.fillDropdown(n,m(E,this).getItemsArray()),this.dropdownController.updateDimensions(w(b,this,k).call(this),!0)}function k(){const e=this.getEditedCellRect(),t=this.hot.view.isVerticallyScrollableByWindow(),r=this.hot.view.getWorkspaceHeight();let n=e.top;if(t){const e=this.hot.view.getTableOffset().top-this.hot.rootWindow.scrollY;n=Math.max(n+e,0)}return{spaceAbove:n,spaceBelow:r-n-e.height,cellHeight:e.height}}function L(){const e=m(E,this).getItemsArray();this.saveValue([[e]])}function P(e,t){e?m(E,this).add({key:e,value:t}):m(E,this).add(t),w(b,this,L).call(this),this.refreshDimensions()}function D(e,t){e?m(E,this).remove({key:e,value:t}):m(E,this).remove(t),w(b,this,L).call(this),this.refreshDimensions()}function H(e){e.length>0?C(E,this,new l.SelectedItemsController(e)):C(E,this,new l.SelectedItemsController)}function F(e){return this.cellProperties[e]}function B(e,t){this.isOpened()&&t===`${y}-renderer`&&parseInt(e[0][0],10)===this.cellProperties.visualRow&&parseInt(e[0][1],10)===this.cellProperties.visualCol&&(w(b,this,H).call(this,e[0][3]),this.dropdownController.fillDropdown(w(b,this,T).call(this),m(E,this).getItemsArray()),this.dropdownController.focusItem(0),m(E,this).getSize()>=this.cellProperties.maxSelections?w(b,this,N).call(this):w(b,this,O).call(this))}t.MultiSelectEditor=R},83075(e,t,r){"use strict";t.__esModule=!0,t.getCheckboxElement=function(e){return e.querySelector('input[type="checkbox"]')},t.getValuesIntersection=function(e,t){return(0,n.getIntersectionOfArrays)(e,t,(e,t)=>JSON.stringify(e)===JSON.stringify(t))},t.includesValue=function(e,t){return(0,o.isKeyValueObject)(t)?Array.isArray(e)&&e.some(e=>(0,o.isKeyValueObject)(e)?(0,o.isObjectEqual)(e,t):e===t):e.includes(t)},t.parseStringifiedValue=function(e){return(0,i.isJSON)(e)?JSON.parse(e):e};var n=r(27637),o=r(81185),i=r(58507)},42106(e,t,r){"use strict";t.__esModule=!0;var n=r(60908);t.EDITOR_TYPE=n.EDITOR_TYPE,t.NumericEditor=n.NumericEditor},60908(e,t,r){"use strict";t.__esModule=!0;var n=r(99326);const o=t.EDITOR_TYPE="numeric";class i extends n.TextEditor{static get EDITOR_TYPE(){return o}}t.NumericEditor=i},62212(e,t,r){"use strict";t.__esModule=!0;var n=r(4990);t.EDITOR_TYPE=n.EDITOR_TYPE,t.PasswordEditor=n.PasswordEditor},4990(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(99326),s=r(53537),a=r(2783),l=r(17134);const h=t.EDITOR_TYPE="password";class c extends i.TextEditor{constructor(){super(...arguments),(0,o.default)(this,"autoResize",(0,s.createInputElementResizer)(this.hot.rootDocument,{textContent:e=>"•".repeat(e.value.length)}))}static get EDITOR_TYPE(){return h}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,a.empty)(this.TEXTAREA_PARENT),this.TEXTAREA.setAttribute(...(0,l.A11Y_TABINDEX)(-1)),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}t.PasswordEditor=c},14284(e,t,r){"use strict";t.__esModule=!0,t.RegisteredEditor=d,t.getEditorInstance=t._getEditorInstance=function(e,t){let r;"function"==typeof e?(s.get(e)||p(null,e),r=s.get(e)):"string"==typeof e?r=l(e):(0,i.throwWithCause)('Only strings and functions can be passed as "editor" parameter');r||(0,i.throwWithCause)(`No editor registered under name "${e}"`);return r.getInstance(t)},t.getEditor=function(e){if("function"==typeof e)return e;h(e)||(0,i.throwWithCause)(`No registered editor found under "${e}" name`);return l(e).getConstructor()},t.registerEditor=p;var n=r(66503),o=r(65517),i=r(15141);const s=new WeakMap,{register:a,getItem:l,hasItem:h,getNames:c,getValues:u}=(0,o.staticRegister)("editors");function d(e){const t={},r=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new r(e)),t[e.guid]},n.Hooks.getSingleton().add("afterDestroy",function(){t[this.guid]=null})}function p(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);const r=new d(t);"string"==typeof e&&a(e,r),s.set(t,r)}t.getRegisteredEditors=u,t.getRegisteredEditorNames=c,t.hasEditor=h},63657(e,t,r){"use strict";t.__esModule=!0;var n=r(67544);t.EDITOR_TYPE=n.EDITOR_TYPE,t.SelectEditor=n.SelectEditor},67544(e,t,r){"use strict";t.__esModule=!0;var n=r(92840),o=r(2783),i=r(81185),s=r(17134);const a="ht_editor_visible",l="selectEditor",h=t.EDITOR_TYPE="select";class c extends n.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,s.A11Y_HIDDEN)()),e.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660))),(0,o.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,o.hasClass)(this.selectWrapper,a)&&(0,o.removeClass)(this.selectWrapper,a),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,r,n,s,a){super.prepare(e,t,r,n,s,a);const l=this.cellProperties.selectOptions;let h;h="function"==typeof l?this.prepareOptions(l(this.row,this.col,this.prop)):this.prepareOptions(l),(0,o.empty)(this.select),(0,i.objectEach)(h,(e,t)=>{const r=this.hot.rootDocument.createElement("OPTION");r.value=t,(0,o.fastInnerHTML)(r,e,this.hot.getSettings().sanitizer),this.select.appendChild(r)})}prepareOptions(e){let t={};if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)t[e[r]]=e[r];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!==n.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.close();const{top:e,start:t,width:r,height:i}=this.getEditedCellRect(),s=this.selectWrapper.style;s.height=`${i}px`,s.width=`${r}px`,s.top=`${e}px`,s[this.hot.isRtl()?"right":"left"]=`${t}px`,s.margin="0px",(0,o.addClass)(this.selectWrapper,a)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={group:l};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(l)}}t.SelectEditor=c},67429(e,t,r){"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){const r=(0,n.getCaretPosition)(t),o=t.value.split("\n");let i=r,s=0;for(let t=0;t<o.length;t++){const n=o[t];0!==t&&(s+=o[t-1].length+1);const a=s+n.length;if("home"===e?i=s:"end"===e&&(i=a),r<=a)break}(0,n.setCaretPosition)(t,i)};var n=r(2783)},99326(e,t,r){"use strict";t.__esModule=!0;var n=r(87274);t.EDITOR_TYPE=n.EDITOR_TYPE,t.TextEditor=n.TextEditor},87274(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(92840),s=n(r(23695)),a=r(81136),l=r(2783),h=r(40499),c=r(53537),u=r(67787),d=r(67429),p=r(17134);const g="ht_editor_hidden",f="textEditor",m=t.EDITOR_TYPE="text";class C extends i.BaseEditor{static get EDITOR_TYPE(){return m}constructor(e){super(e),(0,o.default)(this,"eventManager",new s.default(this)),(0,o.default)(this,"autoResize",(0,c.createInputElementResizer)(this.hot.rootDocument)),(0,o.default)(this,"TEXTAREA",void 0),(0,o.default)(this,"textareaStyle",void 0),(0,o.default)(this,"TEXTAREA_PARENT",void 0),(0,o.default)(this,"textareaParentStyle",void 0),(0,o.default)(this,"layerClass",void 0),this.eventManager=new s.default(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",()=>this.destroy())}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e}open(){this._opened=!0,this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.autoResize.unObserve(),(0,l.isInternalElement)(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,r,n,o,s){const a=this.state;if(super.prepare(e,t,r,n,o,s),!s.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=s;e&&!this.isOpened()&&(this.TEXTAREA.value=""),a===i.EDITOR_STATE.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===i.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),(0,l.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"textarea";const{rootDocument:t}=this.hot;this.TEXTAREA=t.createElement(e),(0,l.setAttribute)(this.TEXTAREA,[["data-hot-input",""],(0,p.A11Y_TABINDEX)(-1)]),(0,l.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=t.createElement("DIV"),(0,l.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,l.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.addClass)(this.TEXTAREA_PARENT,g),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){(0,a.isEdge)()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.addClass)(this.TEXTAREA_PARENT,g)}showEditableElement(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="";const e=this.TEXTAREA_PARENT.childNodes;let t=!1;(0,h.rangeEach)(e.length-1,r=>{const n=e[r];if((0,l.hasClass)(n,"handsontableEditor"))return t=!0,!1}),(0,l.hasClass)(this.TEXTAREA_PARENT,g)&&(0,l.removeClass)(this.TEXTAREA_PARENT,g),t?(this.layerClass="ht_editor_visible",(0,l.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,l.addClass)(this.TEXTAREA_PARENT,this.layerClass))}refreshValue(){const e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}refreshDimensions(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state!==i.EDITOR_STATE.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD)return void(e||this.close());const{top:t,start:r,width:n,maxWidth:o,height:s,maxHeight:a}=this.getEditedCellRect();this.textareaParentStyle.top=`${t}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${r}px`,this.showEditableElement();const l=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=l.fontSize,this.TEXTAREA.style.fontFamily=l.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(n,o),minHeight:Math.min(s,a),maxWidth:o,maxHeight:a},!0)}bindEvents(){(0,a.isIOS)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",()=>this.finishEditing(!1)),this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.addHook("afterColumnResize",()=>{this.refreshDimensions(),this.state===i.EDITOR_STATE.EDITING&&this.focus()}),this.addHook("afterRowResize",()=>{this.refreshDimensions(),this.state===i.EDITOR_STATE.EDITING&&this.focus()})}destroy(){this.eventManager.destroy(),this.clearHooks()}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={runOnlyIf:()=>(0,u.isDefined)(this.hot.getSelected()),group:f},r=()=>{this.hot.rootDocument.execCommand("insertText",!1,"\n")};e.addShortcuts([{keys:[["Control","Enter"]],callback:()=>(r(),!1),runOnlyIf:e=>!this.hot.selection.isMultiple()&&!e.altKey},{keys:[["Meta","Enter"]],callback:()=>(r(),!1),runOnlyIf:()=>!this.hot.selection.isMultiple()},{keys:[["Alt","Enter"]],callback:()=>(r(),!1)},{keys:[["Home"]],callback:(e,t)=>{let[r]=t;(0,d.updateCaretPosition)(r,this.TEXTAREA)}},{keys:[["End"]],callback:(e,t)=>{let[r]=t;(0,d.updateCaretPosition)(r,this.TEXTAREA)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(f)}}t.TextEditor=C},50644(e,t,r){"use strict";t.__esModule=!0;var n=r(44402);t.EDITOR_TYPE=n.EDITOR_TYPE,t.TimeEditor=n.TimeEditor},44402(e,t,r){"use strict";t.__esModule=!0;var n=r(99326);const o=t.EDITOR_TYPE="time";class i extends n.TextEditor{static get EDITOR_TYPE(){return o}prepare(e,t,r,n,o,i){super.prepare(e,t,r,n,o,i),this.TEXTAREA.dir="ltr"}}t.TimeEditor=i},23695(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.getListenersCounter=function(){return s};var o=n(r(43685)),i=r(82063);let s=0;t.default=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,"context",void 0),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}addEventListener(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function o(e){r.call(this,function(e){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),(0,i.stopImmediatePropagation)(this)},e}(e))}return this.context.eventListeners.push({element:e,event:t,callback:r,callbackProxy:o,options:n,eventManager:this}),e.addEventListener(t,o,n),s+=1,()=>{this.removeEventListener(e,t,r)}}removeEventListener(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context.eventListeners.length;for(;i;)if(i-=1,n=this.context.eventListeners[i],n.event===t&&n.element===e){if(r&&r!==n.callback)continue;if(o&&n.eventManager!==this)continue;this.context.eventListeners.splice(i,1),n.element.removeEventListener(n.event,n.callbackProxy,n.options),s-=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 r=this.context.eventListeners[t];e&&r.eventManager!==this||(this.context.eventListeners.splice(t,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),s-=1)}}clear(){this.clearEvents()}destroy(){this.clearEvents(),this.context=null}destroyWithOwnEventsOnly(){this.clearEvents(!0),this.context=null}fireEvent(e,t){let r=e.document,n=e;r||(r=e.ownerDocument?e.ownerDocument:e,n=r.defaultView);const o={bubbles:!0,cancelable:"mousemove"!==t,view:n,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};let i;r.createEvent?(i=r.createEvent("MouseEvents"),i.initMouseEvent(t,o.bubbles,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget||r.body.parentNode)):i=r.createEventObject(),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(`on${t}`,i)}}},87585(e,t){"use strict";t.__esModule=!0;t.SCOPE_TYPES=Object.freeze({INLINE:"inline",MODAL:"modal"}),t.FOCUS_SOURCES=Object.freeze({UNKNOWN:"unknown",CLICK:"click",TAB_FROM_ABOVE:"tab_from_above",TAB_FROM_BELOW:"tab_from_below"}),t.DEFAULT_SHORTCUTS_CONTEXT="grid"},87528(e,t,r){"use strict";t.__esModule=!0,t.useEventListener=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!1;function o(e){var n;r||(null===(n=t.onFocus)||void 0===n||n.call(t,e))}function i(e){var r;null===(r=t.onClick)||void 0===r||r.call(t,e)}function s(e){var r;"Tab"===e.key&&(null===(r=t.onTabKeyDown)||void 0===r||r.call(t,e))}function a(){r=!0}function l(){r=!1}return{mount:()=>{let t=e;for(;t;){const{documentElement:e}=t.document;e.addEventListener("focusin",o),e.addEventListener("click",i),e.addEventListener("keydown",s),e.addEventListener("mousedown",a),e.addEventListener("mouseup",l),t=(0,n.getParentWindow)(t)}},unmount:()=>{let t=e;for(;t;){const{documentElement:e}=t.document;e.removeEventListener("focusin",o),e.removeEventListener("click",i),e.removeEventListener("keydown",s),e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",l),t=(0,n.getParentWindow)(t)}}}};var n=r(2783)},29414(e,t,r){"use strict";t.__esModule=!0;var n=r(28065),o=r(2783),i=r(11526);function s(e,t,r){a(e,t),t.set(e,r)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(c(e,t))}function h(e,t,r){return e.set(c(e,t),r),r}function c(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const u=Object.freeze({CELL:"cell",MIXED:"mixed"});var d=new WeakMap,p=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakMap,C=new WeakMap,w=new WeakSet;function y(e){var t;const r=null===(t=l(d,this).getSelectedRangeActive())||void 0===t?void 0:t.highlight;if(!r||!l(d,this).selection.isCellVisible(r))return void e(null);const n=l(d,this).getCell(r.row,r.col,!0);null===n?l(d,this).addHookOnce("afterScroll",()=>{e(l(d,this).getCell(r.row,r.col,!0))}):e(n)}function v(){c(w,this,y).call(this,e=>{const{activeElement:t}=l(d,this).rootDocument;t&&(0,o.isOutsideInput)(t)&&t.blur(),this.focusOnHighlightedCell(e)})}function E(){c(w,this,y).call(this,e=>{this.getFocusMode()===u.MIXED&&"TD"===(null==e?void 0:e.nodeName)&&this.refocusToEditorTextarea()})}function S(){h(C,this,!0)}function b(){l(C,this)&&(h(C,this,!1),c(w,this,v).call(this))}function R(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?u.MIXED:u.CELL)}t.FocusGridManager=class{constructor(e){var t,r;a(t=this,r=w),r.add(t),s(this,d,void 0),s(this,p,void 0),s(this,g,1),s(this,f,null),s(this,m,new Map),s(this,C,!1),h(d,this,e)}init(){var e=this;const t=l(d,this).getSettings();h(p,this,t.imeFastEdit?u.MIXED:u.CELL),l(d,this).addHook("afterUpdateSettings",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(w,e,R).call(e,...r)}),l(d,this).addHook("afterSelection",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(w,e,S).call(e,...r)}),l(d,this).addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(w,e,S).call(e,...r)}),l(d,this).addHook("afterSelectionEnd",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(w,e,E).call(e,...r)}),l(d,this).addHook("afterRender",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(w,e,b).call(e,...r)})}getFocusMode(){return l(p,this)}setFocusMode(e){Object.values(u).includes(e)?h(p,this,e):(0,n.warn)(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return l(g,this)}setRefocusDelay(e){h(g,this,e)}setRefocusElementGetter(e){h(f,this,e)}getRefocusElement(){var e;return"function"==typeof l(f,this)?l(f,this).call(this):null===(e=l(d,this).getActiveEditor())||void 0===e?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const t=e=>{var t,r;const n=null===(t=l(d,this).getSelectedRangeActive())||void 0===t?void 0:t.highlight;if(!n)return;let i=l(d,this).runHooks("modifyFocusedElement",n.row,n.col,e);(0,o.isHTMLElement)(i)||(i=e),!i||null!==(r=l(d,this).getActiveEditor())&&void 0!==r&&r.isOpened()||i.focus({preventScroll:!0})};e?t(e):c(w,this,y).call(this,e=>t(e))}refocusToEditorTextarea(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l(g,this);var r,n;!l(d,this).getSettings().imeFastEdit||null!==(e=l(d,this).getActiveEditor())&&void 0!==e&&e.isOpened()||(null===(r=l(d,this).getActiveEditor())||void 0===r||null===(n=r.refreshValue)||void 0===n||n.call(r),l(m,this).has(t)||l(m,this).set(t,(0,i.debounce)(()=>{var e;l(d,this).isDestroyed||(null===(e=this.getRefocusElement())||void 0===e||e.select())},t)),l(m,this).get(t)())}}},70396(e,t,r){"use strict";t.__esModule=!0;var n={createFocusScopeManager:!0,FocusGridManager:!0},o=r(16393);t.createFocusScopeManager=o.createFocusScopeManager;var i=r(29414);t.FocusGridManager=i.FocusGridManager;var s=r(68924);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))})},41052(e,t,r){"use strict";t.__esModule=!0,t.createFocusScope=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i={shortcutsContextName:o.DEFAULT_SHORTCUTS_CONTEXT,type:o.SCOPE_TYPES.INLINE,contains:e=>e===t||t.contains(e),runOnlyIf:()=>!0,...r},s=(0,n.installFocusDetector)(e,t);return{getType:()=>i.type,hasContainerDetached:()=>!e.rootWrapperElement.contains(t),getShortcutsContextName:()=>i.shortcutsContextName,runOnlyIf:()=>i.runOnlyIf(),contains:e=>i.contains(e),activate:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.FOCUS_SOURCES.UNKNOWN;null===(e=i.onActivate)||void 0===e||e.call(i,t)},deactivate:()=>{var e;null===(e=i.onDeactivate)||void 0===e||e.call(i)},activateFocusCatchers:()=>{null==s||s.activate()},deactivateFocusCatchers:()=>{null==s||s.deactivate()},enable:()=>{t.removeAttribute("inert")},disable:()=>{t.setAttribute("inert","true")},destroy:()=>{null==s||s.destroy()}}};var n=r(19928),o=r(87585)},16393(e,t,r){"use strict";t.__esModule=!0,t.createFocusScopeManager=function(e){const t=(0,n.createUniqueMap)({errorIdExists:e=>`The "${e}" focus scope is already registered.`}),r=e.getShortcutManager();let h=null;function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.FOCUS_SOURCES.UNKNOWN;h!==e&&(null!==h&&u(h),h=e,h.activate(t),r.setActiveContextName(e.getShortcutsContextName()))}function u(e){d(),h===e&&(h=null,e.deactivate())}function d(){const r=t.getValues(),n=r.filter(e=>e.runOnlyIf()&&"modal"===e.getType());r.forEach(t=>{n.length>0&&n.includes(t)||0===n.length||t.hasContainerDetached()?t.enable():t.disable(),t===h?t.contains(e.rootDocument.activeElement)?t.deactivateFocusCatchers():t.activateFocusCatchers():t.runOnlyIf()?t.activateFocusCatchers():t.deactivateFocusCatchers()})}function p(r,n){if(!r.isConnected||!(0,l.isVisible)(r))return;const o=t.getValues().filter(e=>e.runOnlyIf());let i=!1;o.forEach(t=>{!i&&t.contains(r)&&(i=!0,n!==a.FOCUS_SOURCES.UNKNOWN&&e.listen(),c(t,n))}),!i&&h&&(u(h),e.unlisten())}const g=(0,s.useEventListener)(e.rootWindow,{onFocus:e=>{var t;p(e.target,null!==(t=e.target.dataset.htFocusSource)&&void 0!==t?t:a.FOCUS_SOURCES.UNKNOWN)},onClick:e=>{p(e.target,a.FOCUS_SOURCES.CLICK)},onTabKeyDown:()=>{d()}});return g.mount(),{getActiveScopeId:function(){if(!h)return null;return t.getId(h)},registerScope:function(n,s){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.hasItem(n)&&(0,o.throwWithCause)(`Scope with id "${n}" already registered`);const l=(0,i.createFocusScope)(e,s,a);t.addItem(n,l),r.getOrCreateContext(l.getShortcutsContextName())},unregisterScope:function(e){t.hasItem(e)||(0,o.throwWithCause)(`Scope with id "${e}" not found`);t.getItem(e).destroy(),t.removeItem(e)},activateScope:e=>function(e){t.hasItem(e)||(0,o.throwWithCause)(`Scope with id "${e}" not found`);c(t.getItem(e))}(e),deactivateScope:e=>function(e){t.hasItem(e)||(0,o.throwWithCause)(`Scope with id "${e}" not found`);u(t.getItem(e))}(e),destroy:()=>g.unmount()}};var n=r(46936),o=r(15141),i=r(41052),s=r(87528),a=r(87585),l=r(2783)},12742(e,t,r){"use strict";t.__esModule=!0,t.focusGridScope=function(e){var t;const r=(0,n.normalizeCoordsIfNeeded)(e),i={wrapped:!1,flipped:!1};let s,a=!0,l=!1;e.addHook("afterSelection",()=>{var t;a&&(s=null===(t=e.getSelectedRangeActive())||void 0===t?void 0:t.highlight)}),e.addHook("beforeRowWrap",(e,t,r)=>{i.wrapped=!0,i.flipped=r}),e.addHook("beforeEmptyDataStateShow",()=>{l=!0}),e.addHook("beforeEmptyDataStateHide",()=>{l=!1});e.getShortcutManager().getContext(o.GRID_SCOPE).addShortcuts([{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:o.GRID_GROUP,group:o.GRID_TAB_NAVIGATION_GROUP,position:"before",callback(){const{tabNavigation:t}=e.getSettings();e.getSelectedRangeActive()&&!t&&(a=!1)}},{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:o.GRID_GROUP,group:o.GRID_TAB_NAVIGATION_GROUP,callback(t){const{tabNavigation:r,autoWrapRow:o}=e.getSettings();a=!0,(!r||!e.selection.isSelected()||o&&i.wrapped&&i.flipped||!o&&i.wrapped)&&(o&&i.wrapped&&i.flipped&&(s=t.shiftKey?(0,n.getMostTopStartPosition)(e):(0,n.getMostBottomEndPosition)(e)),i.wrapped=!1,i.flipped=!1)},position:"after"}]);const h=null!==(t=e.rootGridElement)&&void 0!==t?t:e.rootElement;e.getFocusScopeManager().registerScope("grid",h,{contains:t=>!(h!==t&&!h.contains(t))||null===t.closest(".htMenu")&&e.rootPortalElement.contains(t),runOnlyIf:()=>{const{navigableHeaders:t}=e.getSettings();return!((l||!t)&&0===e.countRenderedRows()&&0===e.countRenderedCols()&&e.countRowHeaders()>0&&e.countColHeaders()>0)&&(!t&&e.countRenderedRows()>0&&e.countRenderedCols()>0||t&&(e.countRowHeaders()>0||e.countColHeaders()>0))},onActivate:t=>{if("tab_from_above"===t){var o;const t=null!==(o=r(s))&&void 0!==o?o:(0,n.getMostTopStartPosition)(e);if(t){!1!==e.runHooks("modifyFocusOnTabNavigation","from_above",t)&&e.selectCell(t.row,t.col)}}else if("tab_from_below"===t){var i;const t=null!==(i=r(s))&&void 0!==i?i:(0,n.getMostBottomEndPosition)(e);if(t){!1!==e.runHooks("modifyFocusOnTabNavigation","from_below",t)&&e.selectCell(t.row,t.col)}}}})};var n=r(70159),o=r(79145)},68924(e,t,r){"use strict";t.__esModule=!0,t.registerAllFocusScopes=function(e){[n.focusGridScope].forEach(t=>t(e))};var n=r(12742)},19928(e,t,r){"use strict";t.__esModule=!0,t.installFocusDetector=function(e,t){const r=o(e,n.FOCUS_SOURCES.TAB_FROM_ABOVE),i=o(e,n.FOCUS_SOURCES.TAB_FROM_BELOW);return t.prepend(r),t.append(i),{activate(){r.tabIndex=0,i.tabIndex=0},deactivate(){r.tabIndex=-1,i.tabIndex=-1},destroy(){r.remove(),i.remove()}}};var n=r(87585);function o(e,t){const r=e.rootDocument.createElement("div");return r.style.display="none",r.classList.add("htFocusCatcher"),r.dataset.htFocusSource=t,r}},70159(e,t,r){"use strict";t.__esModule=!0,t.getMostBottomEndPosition=i,t.getMostTopStartPosition=o,t.normalizeCoordsIfNeeded=function(e){return t=>{if(!t)return null;const{rowIndexMapper:r,columnIndexMapper:s}=e;if(r.isHidden(t.row)||s.isHidden(t.col))return null;const a=o(e),l=i(e);return null===a||null===l?null:(t.row=(0,n.clamp)(t.row,a.row,l.row),t.col=(0,n.clamp)(t.col,a.col,l.col),t)}};var n=r(40499);function o(e){const{rowIndexMapper:t,columnIndexMapper:r}=e,{navigableHeaders:n}=e.getSettings();let o=n&&e.countColHeaders()>0?-e.countColHeaders():0,i=n&&e.countRowHeaders()>0?-e.countRowHeaders():0;return 0===o&&(o=t.getVisualFromRenderableIndex(o)),0===i&&(i=r.getVisualFromRenderableIndex(i)),null===o||null===i?null:e._createCellCoords(o,i)}function i(e){var t,r;const{rowIndexMapper:n,columnIndexMapper:o}=e,{navigableHeaders:i}=e.getSettings();let s=n.getRenderableIndexesLength()-1,a=o.getRenderableIndexesLength()-1;if(s<0){if(!i||0===e.countColHeaders())return null;s=-1}if(a<0){if(!i||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=n.getVisualFromRenderableIndex(s))&&void 0!==t?t:s,null!==(r=o.getVisualFromRenderableIndex(a))&&void 0!==r?r:a)}},17134(e,t){"use strict";t.__esModule=!0;t.A11Y_TABINDEX=e=>["tabindex",e];t.A11Y_TREEGRID=()=>["role","treegrid"];t.A11Y_PRESENTATION=()=>["role","presentation"];t.A11Y_GRIDCELL=()=>["role","gridcell"];t.A11Y_GRIDCELL_BUTTON=()=>["role","gridcell button"];t.A11Y_ROWHEADER=()=>["role","rowheader"];t.A11Y_ROWGROUP=()=>["role","rowgroup"];t.A11Y_COLUMNHEADER=()=>["role","columnheader"];t.A11Y_ROW=()=>["role","row"];t.A11Y_MENU=()=>["role","menu"];t.A11Y_MENU_ITEM=()=>["role","menuitem"];t.A11Y_MENU_ITEM_CHECKBOX=()=>["role","menuitemcheckbox"];t.A11Y_COMBOBOX=()=>["role","combobox"];t.A11Y_LISTBOX=()=>["role","listbox"];t.A11Y_OPTION=()=>["role","option"];t.A11Y_CHECKBOX=()=>["role","checkbox"];t.A11Y_DIALOG=()=>["role","dialog"];t.A11Y_ALERTDIALOG=()=>["role","alertdialog"];t.A11Y_GROUP=()=>["role","group"];t.A11Y_SCOPE_COL=()=>["scope","col"];t.A11Y_SCOPE_ROW=()=>["scope","row"];t.A11Y_TEXT=()=>["type","text"];t.A11Y_LABEL=e=>["aria-label",e];t.A11Y_LABELED_BY=e=>["aria-labelledby",e];t.A11Y_DESCRIBED_BY=e=>["aria-describedby",e];t.A11Y_HIDDEN=()=>["aria-hidden","true"];t.A11Y_DISABLED=function(){return["aria-disabled",!(arguments.length>0&&void 0!==arguments[0])||arguments[0]]};t.A11Y_MULTISELECTABLE=()=>["aria-multiselectable","true"];t.A11Y_HASPOPUP=e=>["aria-haspopup",e];t.A11Y_ROWCOUNT=e=>["aria-rowcount",e];t.A11Y_COLCOUNT=e=>["aria-colcount",e];t.A11Y_ROWINDEX=e=>["aria-rowindex",e];t.A11Y_COLINDEX=e=>["aria-colindex",e];t.A11Y_EXPANDED=e=>["aria-expanded",e];t.A11Y_SORT=e=>["aria-sort",e];t.A11Y_READONLY=()=>["aria-readonly","true"];t.A11Y_INVALID=()=>["aria-invalid","true"];t.A11Y_CHECKED=e=>["aria-checked",e];t.A11Y_SELECTED=()=>["aria-selected","true"];t.A11Y_AUTOCOMPLETE=()=>["aria-autocomplete","list"];t.A11Y_CONTROLS=e=>["aria-controls",e];t.A11Y_ACTIVEDESCENDANT=e=>["aria-activedescendant",e];t.A11Y_LIVE=e=>["aria-live",e];t.A11Y_RELEVANT=e=>["aria-relevant",e];t.A11Y_SETSIZE=e=>["aria-setsize",e];t.A11Y_POSINSET=e=>["aria-posinset",e];t.A11Y_MODAL=()=>["aria-modal","true"]},27637(e,t){"use strict";function r(e,t,r,n){let o=-1,i=e,s=r;Array.isArray(e)||(i=Array.from(e));const a=i.length;for(n&&a&&(o+=1,s=i[o]),o+=1;o<a;)s=t(s,i[o],o,i),o+=1;return s}function n(e,t){let r=0,n=e;Array.isArray(e)||(n=Array.from(e));const o=n.length;for(;r<o&&!1!==t(n[r],r,n);)r+=1;return e}function o(e){return r(e,(e,t)=>e+t,0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return o(e)/e.length},t.arrayEach=n,t.arrayFilter=function(e,t){let r=0,n=e;Array.isArray(e)||(n=Array.from(e));const o=n.length,i=[];let s=-1;for(;r<o;){const e=n[r];t(e,r,n)&&(s+=1,i[s]=e),r+=1}return i},t.arrayFlatten=function e(t){return r(t,(t,r)=>t.concat(Array.isArray(r)?e(r):r),[])},t.arrayMap=function(e,t){let r=0,n=e;Array.isArray(e)||(n=Array.from(e));const o=n.length,i=[];let s=-1;for(;r<o;){const e=n[r];s+=1,i[s]=t(e,r,n),r+=1}return i},t.arrayMax=function(e){return r(e,(e,t)=>e>t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return r(e,(e,t)=>e<t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayReduce=r,t.arraySum=o,t.arrayToString=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.join(t)},t.arrayUnique=function(e){const t=[];return n(e,e=>{-1===t.indexOf(e)&&t.push(e)}),t},t.extendArray=function(e,t){const r=t.length;let n=0;for(;n<r;)e.push(t[n]),n+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[o,...i]=[...t];let s=o;return n(i,e=>{s=s.filter(t=>!e.includes(t))}),s},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const o=t[t.length-1];let i,s=t;"function"==typeof o&&(i=o,s=s.slice(0,-1));const a=i?(e,t)=>t.some(t=>i(e,t)):(e,t)=>t.includes(e),[l,...h]=s;let c=l;return n(h,e=>{c=c.filter(t=>a(t,e))}),c},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[o,...i]=[...t],s=new Set(o);return n(i,e=>{n(e,e=>{s.has(e)||s.add(e)})}),Array.from(s)},t.pivot=function(e){const t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;const r=e.length,n=e[0].length;for(let o=0;o<r;o++)for(let r=0;r<n;r++)t[r]||(t[r]=[]),t[r][o]=e[o][r];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 r=0;for(;r<t;)e[r]=[e[r]],r+=1}},81136(e,t,r){"use strict";t.__esModule=!0,t.isChrome=function(){return s.chrome.value},t.isChromeWebKit=function(){return s.chromeWebKit.value},t.isEdge=function(){return s.edge.value},t.isEdgeWebKit=function(){return s.edgeWebKit.value},t.isFirefox=function(){return s.firefox.value},t.isFirefoxWebKit=function(){return s.firefoxWebKit.value},t.isIOS=function(){return a.ios.value},t.isIpadOS=function(){let{maxTouchPoints:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return e>2&&a.mac.value},t.isLinuxOS=function(){return a.linux.value},t.isMacOS=function(){return a.mac.value},t.isMobileBrowser=function(){return s.mobile.value},t.isSafari=function(){return s.safari.value},t.isWindowsOS=function(){return a.win.value},t.setBrowserMeta=l,t.setPlatformMeta=h;var n=r(81185),o=r(36306);const i=e=>{const t={value:!1,test:(r,n)=>{t.value=e(r,n)}};return t},s={chrome:i((e,t)=>/Chrome/.test(e)&&/Google/.test(t)),chromeWebKit:i(e=>/CriOS/.test(e)),edge:i(e=>/Edge/.test(e)),edgeWebKit:i(e=>/EdgiOS/.test(e)),firefox:i(e=>/Firefox/.test(e)),firefoxWebKit:i(e=>/FxiOS/.test(e)),mobile:i(e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)),safari:i((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t))},a={mac:i(e=>/^Mac/.test(e)),win:i(e=>/^Win/.test(e)),linux:i(e=>/^Linux/.test(e)),ios:i(e=>/iPhone|iPad|iPod/i.test(e))};function l(){let{userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.objectEach)(s,r=>{let{test:n}=r;n(e,t)})}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.objectEach)(a,t=>{let{test:r}=t;r(e)})}(0,o.isCSR)()&&(l(),h())},28065(e,t,r){"use strict";t.__esModule=!0,t.deprecatedWarn=function(e){(0,o.isDefined)(console)&&console.warn(`Deprecated: ${e}`)},t.error=function(){(0,o.isDefined)(console)&&console.error(...arguments)},t.info=function(){(0,o.isDefined)(console)&&console.info(...arguments)},t.log=i,t.logAggregatedItems=function(){let{logFunction:e=i,message:t,items:r,maxSample:o=5,itemFormatter:s=e=>`${e}`}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Array.isArray(r)||0===r.length)return;const a=r.length,l=r.slice(0,o).map(e=>` - ${s(e)}`),h=a>o?` - ...and ${a-o} more`:"",c=["Affected cells:",...l,...h?[h]:[]].join("\n");e((0,n.substitute)(t,{itemsCount:`${a} cell${a>1?"s":""}`,affectedCells:c}))},t.warn=function(){(0,o.isDefined)(console)&&console.warn(...arguments)};var n=r(58507),o=r(67787);function i(){(0,o.isDefined)(console)&&console.log(...arguments)}},13833(e,t){"use strict";t.__esModule=!0;t.BAD_VALUE_TEXT="#bad-value#"},52682(e,t,r){"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,n.isObject)(e[0])&&(t=(0,n.deepObjectSize)(e[0])));return t},t.createEmptySpreadsheetData=function(e,t){const r=[];let n;for(let o=0;o<e;o++){n=[];for(let e=0;e<t;e++)n.push("");r.push(n)}return r},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 r=[];let n,o;for(n=0;n<e;n++){const e=[];for(o=0;o<t;o++)e.push(i(o)+(n+1));r.push(e)}return r},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 r=[];let n,o;for(n=0;n<e;n++){const e={};for(o=0;o<t;o++)e[`prop${o}`]=i(o)+(n+1);r.push(e)}return r},t.dataRowToChangesArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e;const n=[];Array.isArray(e)&&Array.isArray(e[0])||(r=[e]);return r.forEach((e,r)=>{Array.isArray(e)?e.forEach((e,o)=>{n.push([r+t,o,e])}):Object.keys(e).forEach(o=>{n.push([r+t,o,e[o]])})}),n},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 r=0,n=e.length-1;r<e.length;r+=1,n-=1)t+=26**n*(o.indexOf(e[r])+1);return t-=1,t},t.spreadsheetColumnLabel=i;var n=r(81185);const o="ABCDEFGHIJKLMNOPQRSTUVWXYZ";function i(e){let t,r=e+1,n="";for(;r>0;)t=(r-1)%26,n=String.fromCharCode(65+t)+n,r=parseInt((r-t)/26,10);return n}},87971(e,t,r){"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},t.isValidISODate=function(e){if("string"!=typeof e||!o.test(e))return!1;const t=new Date(e);return!Number.isNaN(t.getTime())&&e===t.toISOString().slice(0,10)},t.isValidTime=function(e){return"string"==typeof e&&i.test(e)},t.parseToLocalDate=function(e){if((0,n.isEmpty)(e))return null;if("string"==typeof e&&o.test(e)){const[t,r,n]=e.split("-").map(Number);return new Date(t,r-1,n)}return null},t.parseToLocalTime=function(e){if((0,n.isEmpty)(e))return null;if("string"!=typeof e)return null;const t=i.exec(e);if(!t)return null;const r=Number(t[1]),o=Number(t[2]),s=void 0!==t[3]?Number(t[3]):0,a=t[4],l=void 0!==a?Number(a.padEnd(3,"0").slice(0,3)):0;return new Date(1970,0,1,r,o,s,l)};var n=r(67787);const o=t.ISO_DATE_REGEX=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/;const i=t.TIME_REGEX=/^([01]\d|2[0-3]):([0-5]\d)(?::([0-5]\d)(?:\.(\d{1,3}))?)?$/},2783(e,t,r){"use strict";t.__esModule=!0,t.addClass=d,t.addEvent=function(e,t,r){e.addEventListener(t,r,!1)},t.clearTextSelection=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.getSelection&&(e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges())},t.closest=h,t.closestDown=function(e,t,r){const n=[];let o=e;for(;o&&(o=h(o,t,r),o&&(!r||r.contains(o)));)n.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode;const i=n.length;return i?n[i-1]:null},t.empty=f,t.fastInnerHTML=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.sanitize;m.test(t)?(w||r!==n.sanitize||(w=!0,(0,s.deprecatedWarn)("The HTML sanitization using DOMPurify library is deprecated and will be removed in the next major release. Use the `sanitizer` option instead.\n\nMigration guide: https://handsontable.com/docs/migration-from-16.2-to-17.0/\n`sanitizer` documentation: https://handsontable.com/docs/api/options/#sanitizer")),e.innerHTML="function"==typeof r?r(t,"innerHTML"):t):y(e,t)},t.fastInnerText=y,t.findFirstParentWithClass=function(e,t){const r={element:void 0,classNames:[]};let n=e;for(;null!==n&&n!==e.ownerDocument.documentElement&&!r.element;){if("string"==typeof t&&n.classList.contains(t))r.element=n,r.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(n.classList).filter(e=>t.test(e));e.length&&(r.element=n,r.classNames.push(...e))}n=n.parentElement}return r},t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;return 0},t.getCssTransform=function(e){let t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];return-1},t.getFractionalScalingCompensation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!(0,i.isWindowsOS)())return 0;return Number.isInteger(e.defaultView.devicePixelRatio||1)?0:2},t.getFrameElement=l,t.getMaximumScrollLeft=function(e){return e.scrollWidth-e.clientWidth},t.getMaximumScrollTop=function(e){return e.scrollHeight-e.clientHeight},t.getParent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1,n=null,o=e;for(;null!==o;){if(r===t){n=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(r+=1,o=o.parentNode)}return n},t.getParentWindow=function(e){return l(e)&&e.parent},t.getScrollLeft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return E(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return v(t);return e.scrollTop},t.getScrollableElement=function(e){let t=e.ownerDocument,r=t?t.defaultView:void 0;t||(t=e.document?e.document:e,r=t.defaultView);const n=["auto","scroll"];let o=e.parentNode;for(;o&&o.style&&t.body!==o;){let{overflow:e,overflowX:t,overflowY:i}=o.style;if([e,t,i].includes("scroll"))return o;if(({overflow:e,overflowX:t,overflowY:i}=r.getComputedStyle(o)),n.includes(e)||n.includes(t)||n.includes(i))return o;if(o.clientHeight<=o.scrollHeight+1&&(n.includes(i)||n.includes(e)))return o;if(o.clientWidth<=o.scrollWidth+1&&(n.includes(t)||n.includes(e)))return o;o=o.parentNode}return r},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===C&&(C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const r=e.createElement("div");!(0,i.isSafari)()||(0,i.isMobileBrowser)()||(0,i.isIpadOS)()||r.classList.add("htScrollbarSafariTest");r.style.boxSizing="content-box",r.style.height="150px",r.style.left="0px",r.style.overflow="hidden",r.style.position="absolute",r.style.top="0px",r.style.width="200px",r.style.visibility="hidden",r.appendChild(t),e.body.appendChild(r);const n=t.offsetWidth;r.style.overflow="scroll";let o=t.offsetWidth;n===o&&(o=r.clientWidth);return e.body.removeChild(r),n-o}(e));return C},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;return 0},t.getSelectionText=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const t=e.document;let r="";e.getSelection?r=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(r=t.selection.createRange().text);return r},t.getStyle=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===r)return"width"===t?`${r.innerWidth}px`:"height"===t?`${r.innerHeight}px`:void 0;const n=e.style[t];if(""!==n&&void 0!==n)return n;const o=r.getComputedStyle(e);if(""!==o[t]&&void 0!==o[t])return o[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,r=t.defaultView;let n=e.parentNode;for(;n&&n.style&&t.body!==n;){if("visible"!==n.style.overflow&&""!==n.style.overflow)return n;const e=r.getComputedStyle(n),t=["scroll","hidden","auto","clip"],o=e.getPropertyValue("overflow"),i=e.getPropertyValue("overflow-y"),s=e.getPropertyValue("overflow-x");if(t.includes(o)||t.includes(i)||t.includes(s))return n;n=n.parentNode}return r},t.getWindowScrollLeft=E,t.getWindowScrollTop=v,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){if(void 0===e.classList||"string"!=typeof t||""===t)return!1;return e.classList.contains(t)},t.hasHorizontalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollWidth>e.innerWidth;return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollHeight>e.innerHeight;return e.offsetWidth!==e.clientWidth},t.hasZeroHeight=function(e){const t=e.ownerDocument.defaultView;let r=e;for(;r.parentNode;){if("0px"===r.style.height||"0"===r.style.height){const e=t.getComputedStyle(r).getPropertyValue("overflow");return"hidden"===e||"clip"===e}r=r.parentNode}return!1},t.index=function(e){let t=0,r=e;if(r.previousSibling)for(;r=r.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){let r=e.parentNode,n=[];"string"==typeof t?n=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):n.push(t);for(;null!==r;){if(n.indexOf(r)>-1)return!0;r=r.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isHTMLElement=function(e){var t;const r=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView.Element;return!!(r&&null!==r&&e instanceof r)},t.isInput=S,t.isInternalElement=function(e,t){const r=e.closest(".handsontable");return!!r&&(r.parentNode===t||r===t)},t.isOutsideInput=b,t.isVisible=function e(t){const r=t.ownerDocument.documentElement,n=t.ownerDocument.defaultView;let o=t;for(;o!==r;){if(null===o)return!1;if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(!o.host)return!1;if(o.host.impl)return e(o.host.impl);if(o.host)return e(o.host);(0,a.throwWithCause)("Lost in Web Components world")}else if("none"===n.getComputedStyle(o).display)return!1;o=o.parentNode}return!0},t.makeElementContentEditableAndSelectItsContent=R,t.matchesCSSRules=function(e,t){const{selectorText:r}=t;let n=!1;t.type===CSSRule.STYLE_RULE&&r&&(e.msMatchesSelector?n=e.msMatchesSelector(r):e.matches&&(n=e.matches(r)));return n},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((r,n)=>{r.forEach(r=>{r.isIntersecting&&null!==e.offsetParent&&(t(),n.unobserve(e))})},{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){const t=e.ownerDocument,r=t.defaultView,n=t.documentElement;let o,i,s,a=e;o=a.offsetLeft,i=a.offsetTop,s=a;for(;(a=a.offsetParent)&&a!==t.body&&"offsetLeft"in a;)o+=a.offsetLeft,i+=a.offsetTop,s=a;s&&"fixed"===s.style.position&&(o+=r.pageXOffset||n.scrollLeft,i+=r.pageYOffset||n.scrollTop);return{left:o,top:i}},t.outerHeight=function(e){return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,r){const n=r.parentElement.querySelector(`.ht_clone_${e}`);return n?n.contains(t):null},t.removeAttribute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);const{regexFree:r,regexes:n}=u(t,!0);r.forEach(t=>{""!==t&&e.removeAttribute(t)}),n.forEach(t=>{e.getAttributeNames().forEach(r=>{t.test(r)&&e.removeAttribute(r)})})},t.removeClass=p,t.removeContentEditableFromElementAndDeselect=T,t.removeEvent=function(e,t,r){e.removeEventListener(t,r,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1){const r=t.childNodes;for(let t=r.length-1;t>=0;t--)e(r[t])}},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")},t.runWithSelectedContendEditableElement=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];R(e,r),t(),T(e,r)},t.selectElementIfAllowed=function(e){b(e.ownerDocument.activeElement)||e.select()},t.setAttribute=g,t.setCaretPosition=function(e,t,r){void 0===r&&(r=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,r)}catch(n){const o=e.parentNode,i=o.style.display;o.style.display="block",e.setSelectionRange(t,r),o.style.display=i}}},t.setOverlayPosition=function(e,t,r){e.style.transform=`translate3d(${t},${r},0)`};var n=r(58507),o=r(17134),i=r(81136),s=r(28065),a=r(15141);function l(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:n,DOCUMENT_FRAGMENT_NODE:o}=Node;let i=e;for(;null!=i&&i!==r;){const{nodeType:e,nodeName:r}=i;if(e===n&&(t.includes(r)||t.includes(i)))return i;const{host:s}=i;i=s&&e===o?s:i.parentNode}return null}function c(e){return e&&e.length?e.filter(e=>!!e):[]}function u(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];const r=[],n=[];return n.push(...e.filter(e=>{const n=e instanceof RegExp;return n&&t&&r.push(e),!n})),t?{regexFree:n,regexes:r}:n}function d(e,t){"string"==typeof t&&(t=t.split(" ")),(t=c(t)).length>0&&e.classList.add(...t)}function p(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:r,regexes:n}=u(t,!0);r=c(r),r.length>0&&e.classList.remove(...r),n.forEach(t=>{e.classList.forEach(r=>{t.test(r)&&e.classList.remove(r)})})}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;Array.isArray(t)||(t=[[t,r]]),t.forEach(t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(...t)})}function f(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const m=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/;let C,w=!1;function y(e,t){const r=e.firstChild;r&&3===r.nodeType&&null===r.nextSibling?r.textContent=t:(f(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function v(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function E(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}function S(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function b(e){return S(e)&&!1===e.hasAttribute("data-hot-input")}function R(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=e.ownerDocument,i=n.createRange(),s=n.defaultView.getSelection();g(e,"contenteditable",!0),r&&g(e,...(0,o.A11Y_HIDDEN)()),t&&d(e,"invisibleSelection"),i.selectNodeContents(e),s.removeAllRanges(),s.addRange(i)}function T(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=e.ownerDocument.defaultView.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),r.removeAllRanges(),t&&p(e,"invisibleSelection"),e.removeAttribute("contenteditable")}},82063(e,t,r){"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"undefined"!=typeof TouchEvent&&e instanceof TouchEvent},t.offsetRelativeTo=function(e,t){const r={x:e.offsetX,y:e.offsetY};let o=e.target;if(!(0,n.isHTMLElement)(t)||o!==t&&o.contains(t))return r;for(;o!==t;)r.x+=o.offsetLeft,r.y+=o.offsetTop,o=o.offsetParent;return r},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0};var n=r(2783)},15141(e,t){"use strict";t.__esModule=!0,t.throwWithCause=function(e){throw new Error(e,{cause:{handsontable:!0}})}},36306(e,t){"use strict";let r;t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r)return r;r="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1;return r},t.isCSR=function(){return"undefined"!=typeof window},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)}},11526(e,t,r){"use strict";t.__esModule=!0,t.curry=function(e){const t=e.length;return function r(n){return function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];const a=n.concat(i);let l;return l=a.length>=t?e.apply(this,a):r(a),l}}([])},t.curryRight=function(e){const t=e.length;return function r(n){return function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];const a=n.concat(i.reverse());let l;return l=a.length>=t?e.apply(this,a):r(a),l}}([])},t.debounce=function(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=null;return function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return n&&clearTimeout(n),n=setTimeout(()=>{t=e.apply(this,i)},r),t}},t.fastCall=function(e,t,r,n,i,s,a,l){if((0,o.isDefined)(l))return e.call(t,r,n,i,s,a,l);if((0,o.isDefined)(a))return e.call(t,r,n,i,s,a);if((0,o.isDefined)(s))return e.call(t,r,n,i,s);if((0,o.isDefined)(i))return e.call(t,r,n,i);if((0,o.isDefined)(n))return e.call(t,r,n);if((0,o.isDefined)(r))return e.call(t,r);return e.call(t)},t.isFunction=function(e){return"function"==typeof e},t.partial=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.apply(this,r.concat(n))}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[o,...i]=t;return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.arrayReduce)(i,(e,t)=>t(e),o.apply(this,t))}},t.throttle=i,t.throttleAfterHits=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const n=i(e,t);let o=r;function s(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return o?(o-=1,e.apply(this,r)):n.apply(this,r)}return s.clearHits=function(){o=r},s};var n=r(27637),o=r(67787);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=0;const n={lastCallThrottled:!0};let o=null;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];const l=Date.now();let h=!1;n.lastCallThrottled=!0,r||(r=l,h=!0);const c=t-(l-r);return h?(n.lastCallThrottled=!1,e.apply(this,s)):(o&&clearTimeout(o),o=setTimeout(()=>{n.lastCallThrottled=!1,e.apply(this,s),r=0,o=void 0},c)),n}}},67787(e,t,r){"use strict";t.__esModule=!0,t._injectProductInfo=function(e,t,r){const n=!i(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),f="17.0.0-rc15";let m,C="invalid",w="invalid";const y=function(e){let t=[][s],r=t;if(e[s]!==c("Z"))return!1;for(let t="",n="B<H4P+".split(""),o=c(n.shift());o;o=c(n.shift()||"A"))--o<""[s]?r|=(l(`${l(a(t)+(a(h(e,Math.abs(o),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=h(e,o,o?1===n[s]?9:8:6);return r===t}(e=u(e||""));if(n||o||y)if(y){const[t,n,o]=r.split("/").map(Number),i=Math.floor(Date.UTC(o,n-1,t)/864e5),l=a(h(u(v=e),a("12"),c("F")))/(a(h(u(v),c("B"),~~![][s]))||9);m=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"2-digit",timeZone:"UTC"}).format(864e5*(l+1)),i>l?(C="expired",w="expired"):(C="valid",w="valid")}else o?(C="non_commercial",w="valid"):(C="invalid",w="invalid");else C="missing",w="missing";var v;"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)&&(C="valid",w="valid");if(!d&&"valid"!==C){p[C]({keyValidityDate:m,hotVersion:f})&&console["non_commercial"===C?"info":"warn"](p[C]({keyValidityDate:m,hotVersion:f})),d=!0}if("valid"!==w&&t){if(g[w]({keyValidityDate:m,hotVersion:f})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=g[w]({keyValidityDate:m,hotVersion:f}),t.appendChild(e)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=i,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=o,t.stringify=function(e){let t;switch(typeof e){case"string":case"number":t=`${e}`;break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var n=r(27033);function o(e){return void 0===e}function i(e){return null===e||""===e||o(e)}const s="length",a=e=>parseInt(e,16),l=e=>parseInt(e,10),h=(e,t,r)=>e.substr(t,r),c=e=>e.codePointAt(0)-65,u=e=>`${e}`.replace(/\-/g,"");let d=!1;const p={invalid:()=>n.toSingleLine`
40
40
  The license key for Handsontable is invalid.\x20
41
41
  If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:r}=e;return n.toSingleLine`
42
42
  The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
@@ -94,7 +94,7 @@ the last node, the show column modification can be applied.`);const{crossHiddenC
94
94
  columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);const n=(0,p.normalizeSelectionFactory)(r,{createCellCoords:function(){return t.tableProps.createCellCoords(...arguments)},createCellRange:function(){return t.tableProps.createCellRange(...arguments)},propToCol:e=>this.tableProps.propToCol(e),keepDirection:!0}),o=this.settings.navigableHeaders,i={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:o?this.tableProps.countRowHeaders():0,countColHeaders:o?this.tableProps.countColHeaders():0},s=!e.some(e=>{const t=n(e),r=t.isValid(i);return!(r&&!t.containsHeaders()||r&&t.containsHeaders()&&t.isSingleHeader())});return s&&(this.clear(),this.setExpectedLayers(e.length),(0,c.arrayEach)(e,e=>{const{from:t,to:r}=n(e);this.setRangeStartOnly(t.clone(),!1),this.setRangeEnd(r.clone())}),this.finish()),s}selectColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const n="string"==typeof e?this.tableProps.propToCol(e):e,o="string"==typeof t?this.tableProps.propToCol(t):t,i=this.tableProps.countRows(),s=this.tableProps.countCols(),a=this.tableProps.countColHeaders(),l=0===a?0:-a,c=this.tableProps.createCellCoords(l,n),u=this.tableProps.createCellCoords(i-1,o),d=this.tableProps.createCellRange(c,c,u).isValid({countRows:i,countCols:s,countRowHeaders:0,countColHeaders:a});if(d){let e=0,t=0;Number.isInteger(null==r?void 0:r.row)&&Number.isInteger(null==r?void 0:r.col)?(e=(0,h.clamp)(r.row,l,i-1),t=(0,h.clamp)(r.col,Math.min(n,o),Math.max(n,o))):(e=(0,h.clamp)(r,l,i-1),t=n);const s=this.tableProps.createCellCoords(e,t),c=0===a?0:(0,h.clamp)(s.row,l,-1),u=i-1,d=this.tableProps.createCellCoords(c,n),p=this.tableProps.createCellCoords(u,o);this.runLocalHooks("beforeSelectColumns",d,p,s),this.setRangeStartOnly(d,void 0,s),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(p),this.runLocalHooks("afterSelectColumns",d,p,s),this.finish()}return d}selectRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const n=this.tableProps.countRows(),o=this.tableProps.countCols(),i=this.tableProps.countRowHeaders(),s=0===i?0:-i,a=this.tableProps.createCellCoords(e,s),l=this.tableProps.createCellCoords(t,o-1),c=this.tableProps.createCellRange(a,a,l).isValid({countRows:n,countCols:o,countRowHeaders:i,countColHeaders:0});if(c){let n=0,a=0;Number.isInteger(null==r?void 0:r.row)&&Number.isInteger(null==r?void 0:r.col)?(n=(0,h.clamp)(r.row,Math.min(e,t),Math.max(e,t)),a=(0,h.clamp)(r.col,s,o-1)):(n=e,a=(0,h.clamp)(r,s,o-1));const l=this.tableProps.createCellCoords(n,a),c=0===i?0:(0,h.clamp)(l.col,s,-1),u=o-1,d=this.tableProps.createCellCoords(e,c),p=this.tableProps.createCellCoords(t,u);this.runLocalHooks("beforeSelectRows",d,p,l),this.setRangeStartOnly(d,void 0,l),this.selectedByRowHeader.add(this.getLayerLevel()),this.setRangeEnd(p),this.runLocalHooks("afterSelectRows",d,p,l),this.finish()}return c}importSelection(e){let{ranges:t,activeRange:r,activeSelectionLayer:n,selectedByRowHeader:o,selectedByColumnHeader:i,disableHeadersHighlight:s}=e;0!==t.length&&(this.selectedRange.clear(),this.highlight.clear(),this.inProgress=!1,y(R,this,s),this.selectedByRowHeader=new Set(o),this.selectedByColumnHeader=new Set(i),this.setActiveSelectionLayerIndex(0),t.forEach((e,t)=>{this.selectedRange.push(e),this.applyAndCommit(e,t)}),this.setRangeFocus(r.highlight,n),y(R,this,!1),this.inProgress=!1)}exportSelection(){return{ranges:Array.from(this.selectedRange).map(e=>e.clone()),activeRange:this.getActiveSelectedRange(),activeSelectionLayer:this.getActiveSelectionLayerIndex(),selectedByRowHeader:Array.from(this.selectedByRowHeader),selectedByColumnHeader:Array.from(this.selectedByColumnHeader),disableHeadersHighlight:w(R,this)}}refresh(){if(!this.isSelected())return;const e=this.tableProps.countRows(),t=this.tableProps.countCols();if(0===e||0===t)return void this.deselect();const r=this.selectedRange.ranges.map(e=>e.clone());"unknown"===this.getSelectionSource()&&this.markSource("refresh");const n=new Set(this.selectedByRowHeader),o=new Set(this.selectedByColumnHeader);this.clear(),this.setExpectedLayers(r.length),r.forEach(r=>{const{from:n,to:o,highlight:i}=r,s=e-1,a=t-1;i.assign({row:(0,h.clamp)(i.row,this.settings.navigableHeaders?-1/0:0,s),col:(0,h.clamp)(i.col,this.settings.navigableHeaders?-1/0:0,a)}),n.assign({row:(0,h.clamp)(n.row,-1/0,s),col:(0,h.clamp)(n.col,-1/0,a)}),o.assign({row:(0,h.clamp)(o.row,-1/0,s),col:(0,h.clamp)(o.col,-1/0,a)}),this.setRangeStartOnly(n,!0,i),this.setRangeEnd(o)}),this.selectedByRowHeader=n,this.selectedByColumnHeader=o,this.finish(),this.markEndSource()}commit(){if(this.highlight.getCustomSelections().forEach(e=>{e.commit()}),!this.isSelected())return;const e=this.getLayerLevel(),t=this.getActiveSelectedRange();this.highlight.isEnabledFor(i.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(),r=this.highlight.createLayeredArea(),n=this.highlight.createRowHeader(),o=this.highlight.createColumnHeader(),i=this.highlight.createActiveRowHeader(),s=this.highlight.createActiveColumnHeader(),a=this.highlight.createActiveCornerHeader(),l=this.highlight.createRowHighlight(),h=this.highlight.createColumnHighlight();t.commit(),r.commit(),n.commit(),o.commit(),i.commit(),s.commit(),a.commit(),l.commit(),h.commit()}this.highlight.useLayerLevel(e)}}(0,a.mixin)(A,u.default);t.default=A},37405(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(81185),s=r(15141),a=n(r(27348));function l(e,t,r){h(e,t),t.set(e,r)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(e,t){return e.get(d(e,t))}function u(e,t,r){return e.set(d(e,t),r),r}function d(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakSet;class C{constructor(e,t){var r,n;h(r=this,n=m),n.add(r),l(this,p,void 0),l(this,g,0),l(this,f,{x:0,y:0}),(0,o.default)(this,"tableApi",void 0),u(p,this,e),this.tableApi=t}setActiveLayerIndex(e){u(g,this,e)}getCurrentSelection(){return c(p,this).peekByIndex(c(g,this))}transformStart(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];u(f,this,this.calculateOffset());const n=this.tableApi.createCellCoords(e,t);let o=this.getCurrentSelection().highlight;const s=this.tableApi.visualToRenderableCoords(o);let a=0,l=0;if(this.runLocalHooks("beforeTransformStart",n),null!==s.row&&null!==s.col){let{width:e,height:t}=d(m,this,E).call(this);const{row:s,col:h}=d(m,this,T).call(this,o),u=this.tableApi.fixedRowsBottom(),g=this.tableApi.minSpareRows(),f=this.tableApi.minSpareCols(),C=this.tableApi.autoWrapRow(),b=this.tableApi.autoWrapCol(),R=this.tableApi.createCellCoords(s+n.row,h+n.col);if(R.row>=t){const n=(0,i.createObjectPropListener)(r&&g>0&&0===u),o=R.col+1,s=o>=e,a=this.tableApi.createCellCoords(R.row-t,s?o-e:o);if(this.runLocalHooks("beforeColumnWrap",n,d(m,this,_).call(this,a),s),n.value)this.runLocalHooks("insertRowRequire",this.countRenderableRows());else if(b){if(this.shouldSwitchSelectionLayer()&&s&&c(p,this).size()>1){d(m,this,w).call(this);const e=d(m,this,S).call(this,"forward");null!==e&&a.assign(e)}R.assign(a)}}else if(R.row<0){const r=(0,i.createObjectPropListener)(b),n=R.col-1,o=n<0,s=this.tableApi.createCellCoords(t+R.row,o?e+n:n);if(this.runLocalHooks("beforeColumnWrap",r,d(m,this,_).call(this,s),o),b){if(this.shouldSwitchSelectionLayer()&&o&&c(p,this).size()>1){d(m,this,y).call(this);const e=d(m,this,S).call(this,"backward");null!==e&&s.assign(e)}R.assign(s)}}if(({width:e,height:t}=d(m,this,E).call(this)),R.col>=e){const n=(0,i.createObjectPropListener)(r&&f>0),o=R.row+1,s=o>=t,a=this.tableApi.createCellCoords(s?o-t:o,R.col-e);if(this.runLocalHooks("beforeRowWrap",n,d(m,this,_).call(this,a),s),n.value)this.runLocalHooks("insertColRequire",this.countRenderableColumns());else if(C){if(this.shouldSwitchSelectionLayer()&&s&&c(p,this).size()>1){d(m,this,w).call(this);const e=d(m,this,S).call(this,"forward");null!==e&&a.assign(e)}R.assign(a)}}else if(R.col<0){const r=(0,i.createObjectPropListener)(C),n=R.row-1,o=n<0,s=this.tableApi.createCellCoords(o?t+n:n,e+R.col);if(this.runLocalHooks("beforeRowWrap",r,d(m,this,_).call(this,s),o),C){if(this.shouldSwitchSelectionLayer()&&o&&c(p,this).size()>1){d(m,this,y).call(this);const e=d(m,this,S).call(this,"backward");null!==e&&s.assign(e)}R.assign(s)}}const{rowDir:M,colDir:A}=d(m,this,v).call(this,R);a=M,l=A,o=d(m,this,_).call(this,R)}return this.runLocalHooks("afterTransformStart",o,a,l),{selectionLayer:c(g,this),visualCoords:o}}transformEnd(e,t){u(f,this,this.calculateOffset());const r=this.tableApi.createCellCoords(e,t),n=this.getCurrentSelection(),o=this.tableApi.visualToRenderableCoords(n.highlight),i=d(m,this,b).call(this,n.to.row,n.from.row),s=d(m,this,R).call(this,n.to.col,n.from.col),a=n.to.clone();let l=0,h=0;if(this.runLocalHooks("beforeTransformEnd",r),null!==o.row&&null!==o.col&&null!==i&&null!==s){const{row:e,col:t}=d(m,this,T).call(this,n.highlight),o=this.tableApi.createCellCoords(i+r.row,s+r.col),c=n.getTopStartCorner(),u=n.getTopEndCorner(),p=n.getBottomEndCorner();if(r.col<0&&s>=t&&o.col<t){const e=o.col-t;o.col=d(m,this,R).call(this,c.col,u.col)+e}else if(r.col>0&&s<=t&&o.col>t){const e=d(m,this,R).call(this,u.col,c.col),t=Math.max(o.col-e,1);o.col=e+t}if(r.row<0&&i>=e&&o.row<e){const t=o.row-e;o.row=d(m,this,b).call(this,c.row,p.row)+t}else if(r.row>0&&i<=e&&o.row>e){const e=d(m,this,b).call(this,p.row,c.row),t=Math.max(o.row-e,1);o.row=e+t}const{rowDir:g,colDir:f}=d(m,this,v).call(this,o);l=g,h=f;const C=d(m,this,_).call(this,o);0===r.row&&0!==r.col?a.col=C.col:0!==r.row&&0===r.col?a.row=C.row:(a.row=C.row,a.col=C.col)}return this.runLocalHooks("afterTransformEnd",a,l,h),{selectionLayer:c(g,this),visualCoords:a}}calculateOffset(){(0,s.throwWithCause)("`calculateOffset` is not implemented")}countRenderableRows(){(0,s.throwWithCause)("`countRenderableRows` is not implemented")}countRenderableColumns(){(0,s.throwWithCause)("`countRenderableColumns` is not implemented")}shouldSwitchSelectionLayer(){(0,s.throwWithCause)("`shouldSwitchSelectionLayer` is not implemented")}}function w(){const e=c(g,this)+1;this.setActiveLayerIndex(e>=c(p,this).size()?0:e),u(f,this,this.calculateOffset())}function y(){const e=c(g,this)-1;this.setActiveLayerIndex(e<0?c(p,this).size()-1:e),u(f,this,this.calculateOffset())}function v(e){const{width:t,height:r}=d(m,this,E).call(this);let n=0,o=0;return e.row<0?(n=-1,e.row=0):e.row>0&&e.row>=r&&(n=1,e.row=r-1),e.col<0?(o=-1,e.col=0):e.col>0&&e.col>=t&&(o=1,e.col=t-1),{rowDir:n,colDir:o}}function E(){return{width:c(f,this).x+this.countRenderableColumns(),height:c(f,this).y+this.countRenderableRows()}}function S(e){if(!["forward","backward"].includes(e))return null;const t=this.getCurrentSelection().getTopStartCorner(),r=this.getCurrentSelection().getBottomEndCorner(),[n,o,i,s]="forward"===e?[t.row,r.row,t.col,r.col]:[r.row,t.row,r.col,t.col],a=d(m,this,b).call(this,n,o),l=d(m,this,R).call(this,i,s);return null===a||null===l?null:this.tableApi.createCellCoords(a,l)}function b(e,t){const r=this.tableApi.findFirstNonHiddenRenderableRow(e,t);return null===r?null:c(f,this).y+r}function R(e,t){const r=this.tableApi.findFirstNonHiddenRenderableColumn(e,t);return null===r?null:c(f,this).x+r}function T(e){const{row:t,col:r}=this.tableApi.visualToRenderableCoords(e);return null!==t&&null!==r||(0,s.throwWithCause)("Renderable coords are not visible."),this.tableApi.createCellCoords(c(f,this).y+t,c(f,this).x+r)}function _(e){const t=e.clone();return t.col=e.col-c(f,this).x,t.row=e.row-c(f,this).y,this.tableApi.renderableToVisualCoords(t)}t.BaseTransformation=C,(0,i.mixin)(C,a.default)},32298(e,t,r){"use strict";t.__esModule=!0;var n=r(37405);class o extends n.BaseTransformation{calculateOffset(){return{x:this.tableApi.navigableHeaders()?this.tableApi.countRowHeaders():0,y:this.tableApi.navigableHeaders()?this.tableApi.countColHeaders():0}}countRenderableRows(){return this.tableApi.countRenderableRows()}countRenderableColumns(){return this.tableApi.countRenderableColumns()}shouldSwitchSelectionLayer(){return!1}}t.ExtenderTransformation=o},35449(e,t,r){"use strict";t.__esModule=!0;var n=r(37405),o=r(15141);class i extends n.BaseTransformation{calculateOffset(){const e=this.getCurrentSelection(),{row:t,col:r}=e.getOuterTopStartCorner(),n=this.tableApi.countRenderableColumnsInRange(0,r-1),o=this.tableApi.countRenderableRowsInRange(0,t-1),i=e.highlight.isHeader(),s=i?Math.abs(r):0,a=i?Math.abs(t):0;return{x:r<0?s:-n,y:t<0?a:-o}}countRenderableRows(){const e=this.getCurrentSelection();return this.tableApi.countRenderableRowsInRange(0,e.getOuterBottomEndCorner().row)}countRenderableColumns(){const e=this.getCurrentSelection();return this.tableApi.countRenderableColumnsInRange(0,e.getOuterBottomEndCorner().col)}transformEnd(){(0,o.throwWithCause)("`transformEnd` is not valid for focus selection use `transformStart` instead")}shouldSwitchSelectionLayer(){return!0}}t.FocusTransformation=i},14873(e,t,r){"use strict";t.__esModule=!0;var n=r(32298);t.ExtenderTransformation=n.ExtenderTransformation;var o=r(35449);t.FocusTransformation=o.FocusTransformation},52438(e,t,r){"use strict";t.__esModule=!0,t.detectSelectionType=f,t.normalizeSelectionFactory=m,t.transformSelectionToColumnDistance=function(e){const t=f(e.getSelected());if(t===a||t===l)return[];const r=m(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),n=new Set;(0,i.arrayEach)(e.getSelected(),e=>{const{from:t,to:o}=r(e),s=Math.max(t.col,0),a=o.col-s+1;(0,i.arrayEach)(Array.from(new Array(a),(e,t)=>s+t),e=>{n.has(e)||n.add(e)})});const o=Array.from(n).sort((e,t)=>e-t);return(0,i.arrayReduce)(o,(e,t,r,n)=>(0!==r&&t===n[r-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e),[])},t.transformSelectionToRowDistance=function(e){const t=f(e.getSelected());if(t===a||t===l)return[];const r=m(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),n=new Set;(0,i.arrayEach)(e.getSelected(),e=>{const{from:t,to:o}=r(e),s=Math.max(t.row,0),a=o.row-s+1;(0,i.arrayEach)(Array.from(new Array(a),(e,t)=>s+t),e=>{n.has(e)||n.add(e)})});const o=Array.from(n).sort((e,t)=>e-t);return(0,i.arrayReduce)(o,(e,t,r,n)=>(0!==r&&t===n[r-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e),[])};var n=r(95004),o=r(15141),i=r(27637),s=r(67787);const a=t.SELECTION_TYPE_UNRECOGNIZED=0,l=t.SELECTION_TYPE_EMPTY=1,h=t.SELECTION_TYPE_ARRAY=2,c=t.SELECTION_TYPE_OBJECT=3,u=t.SELECTION_TYPES=[c,h],d=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],p=Symbol("root"),g=Symbol("child");function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;t!==p&&t!==g&&(0,o.throwWithCause)("The second argument is used internally only and cannot be overwritten.");const r=Array.isArray(e),i=t===p;let s=a;if(r){const t=e[0];if(0===e.length)s=l;else if(i&&t instanceof n.CellRange)s=c;else if(i&&Array.isArray(t))s=f(t,g);else if(e.length>=2&&e.length<=4){!e.some((e,t)=>!d[t].includes(typeof e))&&(s=h)}}return s}function m(e){let{createCellCoords:t,createCellRange:r,keepDirection:n=!1,propToCol:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u.includes(e)||(0,o.throwWithCause)("Unsupported selection ranges schema type was provided."),function(o){const a=e===c;let l=a?o.from.row:o[0],h=a?o.from.col:o[1],u=a?o.to.row:o[2],d=a?o.to.col:o[3];if("function"==typeof i&&("string"==typeof h&&(h=i(h)),"string"==typeof d&&(d=i(d))),(0,s.isUndefined)(u)&&(u=l),(0,s.isUndefined)(d)&&(d=h),!n){const e=l,t=h,r=u,n=d;l=Math.min(e,r),h=Math.min(t,n),u=Math.max(e,r),d=Math.max(t,n)}const p=a?o.highlight.clone():t(l,h),g=t(l,h),f=t(u,d);return r(p,g,f)}}},31850(e,t){"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}}},25714(e,t,r){"use strict";t.__esModule=!0;var n=r(92840);t.command={name:"editorCloseAndSaveByArrowKeys",callback(e,t,r){const o=e._getEditorManager(),i=o.getActiveEditor();i.isInFullEditMode()&&i.state===n.EDITOR_STATE.EDITING||(o.closeEditorAndSaveChanges(),e.getSelected()&&(r.includes("arrowdown")?e.selection.transformStart(1,0):r.includes("arrowup")?e.selection.transformStart(-1,0):r.includes("arrowleft")?e.selection.transformStart(0,-1*e.getDirectionFactor()):r.includes("arrowright")&&e.selection.transformStart(0,e.getDirectionFactor())),t.preventDefault())}}},62185(e,t){"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSaveByEnter",callback(e,t){const r=e._getEditorManager();r.closeEditorAndSaveChanges(t.ctrlKey||t.metaKey),r.moveSelectionAfterEnter(t)}}},31136(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()}}},15688(e,t){"use strict";t.__esModule=!0;t.command={name:"editorFastOpen",callback(e,t){const{highlight:r}=e.getSelectedRangeActive();r.isHeader()||e._getEditorManager().openEditor(null,t,!0)}}},14712(e,t,r){"use strict";t.__esModule=!0,t.getAllCommands=function(){return[n.command,o.command,i.command,s.command,a.command,l.command]};var n=r(31850),o=r(25714),i=r(62185),s=r(31136),a=r(15688),l=r(3333)},3333(e,t,r){"use strict";t.__esModule=!0;var n=r(82063);t.command={name:"editorOpen",callback(e,t,r){const{selection:o}=e,i=e._getEditorManager(),s=e.getSelectedRange(),a=e.getSelectedRangeActive(),{highlight:l}=a;if((s.some(e=>o.isMultiple(e))||s.length>1)&&!a.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const n=e.getSettings(),i="function"==typeof n.enterMoves?n.enterMoves(t):n.enterMoves;return void(r.includes("shift")?o.transformFocus(-i.row,-i.col):o.transformFocus(i.row,i.col))}l.isHeader()||(e.getSettings().enterBeginsEditing?i.cellProperties.readOnly?i.moveSelectionAfterEnter(t):i.openEditor(null,t,!0):i.moveSelectionAfterEnter(t),(0,n.stopImmediatePropagation)(t))}}},90399(e,t){"use strict";t.__esModule=!0;t.command={name:"emptySelectedCells",callback(e){e.emptySelectedCells(),e._getEditorManager().prepareEditor()}}},91574(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDown",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeActive();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}}},21654(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDownByViewportHeight",callback(e){const{selection:t,rowIndexMapper:r}=e,{to:n}=e.getSelectedRangeActive(),o=Math.min(n.row+e.countVisibleRows(),e.countRows()-1),i=r.getNearestNotHiddenIndex(o,-1);if(null!==i){const r=e._createCellCoords(i,n.col),o=n.row-e.getFirstFullyVisibleRow(),s=Math.min(r.row-o,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(r,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:s,verticalSnap:"top",horizontalSnap:"start"})}}}},94752(e,t,r){"use strict";t.__esModule=!0,t.getAllCommands=function(){return[n.command,o.command,i.command,s.command,a.command,l.command,h.command,c.command,u.command,d.command,p.command,g.command,f.command,m.command]};var n=r(91574),o=r(21654),i=r(27327),s=r(63358),a=r(29212),l=r(32331),h=r(23972),c=r(24349),u=r(59997),d=r(39612),p=r(25541),g=r(56482),f=r(61847),m=r(147)},27327(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionLeft",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,-1*e.getDirectionFactor()),t.markEndSource())}}},63358(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}}},29212(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:r,from:n,to:o}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(n.col,o.col,r),t.markEndSource()}}},32331(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:r}=e,{highlight:n,from:o,to:i}=e.getSelectedRangeActive(),s=n.isHeader()&&t.isSelectedByRowHeader();if(n.isCell()||s){const a=r.getNearestNotHiddenIndex(e.countRows()-1,-1),l=o.clone();l.row=n.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),s&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,i.col)),t.markEndSource()}}}},23972(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:r}=e,{highlight:n,from:o,to:i}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&n.isCell()){const s=r.getNearestNotHiddenIndex(e.countCols()-1,-1),a=o.clone();a.col=n.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,n.clone()),t.setRangeEnd(e._createCellCoords(i.row,s)),t.markEndSource()}}}},24349(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:r}=e,{highlight:n,from:o,to:i}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&n.isCell()){const s=parseInt(e.getSettings().fixedColumnsStart,10),a=r.getNearestNotHiddenIndex(s,1),l=o.clone();l.col=n.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),t.setRangeEnd(e._createCellCoords(i.row,a)),t.markEndSource()}}}},59997(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:r}=e,{highlight:n,from:o,to:i}=e.getSelectedRangeActive(),s=n.isHeader()&&t.isSelectedByColumnHeader();if(n.isCell()||s){const a=r.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),l=o.clone();l.col=n.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),s&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(i.row,a)),t.markEndSource()}}}},39612(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:r}=e,{highlight:n,from:o,to:i}=e.getSelectedRangeActive(),s=n.isHeader()&&t.isSelectedByColumnHeader();if(n.isCell()||s){const a=r.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]),l=o.clone();l.col=n.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),s&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(i.row,a)),t.markEndSource()}}}},25541(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostTop",callback(e){const{selection:t,rowIndexMapper:r}=e,{highlight:n,from:o,to:i}=e.getSelectedRangeActive(),s=n.isHeader()&&t.isSelectedByRowHeader();if(n.isCell()||s){const a=r.getNearestNotHiddenIndex(0,1),l=o.clone();l.row=n.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),s&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,i.col)),t.markEndSource()}}}},56482(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToRows",callback(e){const{selection:t}=e,{highlight:r,from:n,to:o}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(n.row,o.row,r),t.markEndSource()}}},61847(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUp",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeActive();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(-1,0),t.markEndSource())}}},147(e,t){"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:r}=e,{to:n}=e.getSelectedRangeActive(),o=Math.max(n.row-e.countVisibleRows(),0),i=r.getNearestNotHiddenIndex(o,1);if(null!==i){const r=e._createCellCoords(i,n.col),o=n.row-e.getFirstFullyVisibleRow(),s=Math.max(r.row-o,0);t.markSource("keyboard"),t.setRangeEnd(r,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:s,verticalSnap:"top",horizontalSnap:"start"})}}}},6936(e,t,r){"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return d.forEach(r=>{let{name:n,callback:o}=r;t[n]=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return o(e,...r)}}),t};var n=r(14712),o=r(94752),i=r(79602),s=r(90399),a=r(37277),l=r(70530),h=r(42655),c=r(44368),u=r(48401);const d=[...(0,n.getAllCommands)(),...(0,o.getAllCommands)(),...(0,i.getAllCommands)(),s.command,a.command,l.command,h.command,c.command,u.command]},94828(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDown",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(1,0),t.markEndSource()}}},25948(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDownByViewportHeight",callback(e){const{selection:t}=e,{navigableHeaders:r}=e.getSettings(),n=r?e.countColHeaders():0,{row:o}=e.getSelectedRangeActive().highlight;let i=e.countVisibleRows()+n;i=0===i?1:i,o===e.countRows()-1?i=1:o+i>e.countRows()&&(i=e.countRows()-o-1),t.markSource("keyboard"),t.transformStart(i,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},79602(e,t,r){"use strict";t.__esModule=!0,t.getAllCommands=function(){return[n.command,o.command,i.command,s.command,a.command,l.command,h.command,c.command,u.command,d.command,p.command,g.command,f.command,m.command,C.command,w.command]};var n=r(94828),o=r(25948),i=r(84212),s=r(63277),a=r(50573),l=r(83692),h=r(80349),c=r(63003),u=r(73882),d=r(65863),p=r(61175),g=r(35030),f=r(36435),m=r(75528),C=r(80121),w=r(25533)},84212(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionInlineEnd",callback(e,t){const{selection:r}=e,n=e.getSettings(),o=e.getSelectedRange(),i=e.getSelectedRangeActive(),s="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;r.markSource("keyboard"),(o.some(e=>r.isMultiple(e))||o.length>1)&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?r.transformFocus(-s.row,-s.col):r.transformStart(-s.row,-s.col),r.markEndSource()}}},63277(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionInlineStart",callback(e,t){const{selection:r}=e,n=e.getSettings(),o=e.getSelectedRange(),i=e.getSelectedRangeActive(),s="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;r.markSource("keyboard"),(o.some(e=>r.isMultiple(e))||o.length>1)&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?r.transformFocus(s.row,s.col):r.transformStart(s.row,s.col),r.markEndSource()}}},50573(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionLeft",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,-1*e.getDirectionFactor()),t.markEndSource()}}},83692(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionRight",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,e.getDirectionFactor()),t.markEndSource()}}},80349(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottom",callback(e){const{selection:t}=e,{col:r}=e.getSelectedRangeActive().highlight;let n=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===n&&(n=-1),t.setRangeStart(e._createCellCoords(n,r))}}},63003(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:r,columnIndexMapper:n}=e,o=parseInt(e.getSettings().fixedRowsBottom,10),i=r.getNearestNotHiddenIndex(e.countRows()-o-1,-1),s=n.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(i,s)),t.markEndSource()}}},73882(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:r}=e;t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeActive().highlight.row,r.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}}},65863(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:r}=e,n=parseInt(e.getSettings().fixedColumnsStart,10),o=e.getSelectedRangeActive().highlight.row,i=r.getNearestNotHiddenIndex(n,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,i)),t.markEndSource()}}},61175(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:r}=e,n=e.getSelectedRangeActive().highlight.row;let o=r.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]);null===o&&(o=e.isRtl()?-1:-e.countRowHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,o)),t.markEndSource()}}},35030(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:r}=e,{row:n}=e.getSelectedRangeActive().highlight;let o=r.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]);null===o&&(o=e.isRtl()?-e.countRowHeaders():-1),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,o)),t.markEndSource()}}},36435(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostTop",callback(e){const{selection:t}=e,{col:r}=e.getSelectedRangeActive().highlight;let n=e.rowIndexMapper.getNearestNotHiddenIndex(0,1);null===n&&(n=-e.countColHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,r)),t.markEndSource()}}},75528(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostTopInlineStart",callback(e){const{selection:t,rowIndexMapper:r,columnIndexMapper:n}=e,o=parseInt(e.getSettings().fixedRowsTop,10),i=parseInt(e.getSettings().fixedColumnsStart,10),s=r.getNearestNotHiddenIndex(o,1),a=n.getNearestNotHiddenIndex(i,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s,a)),t.markEndSource()}}},80121(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUp",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(-1,0),t.markEndSource()}}},25533(e,t){"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUpByViewportHight",callback(e){const{selection:t}=e,{navigableHeaders:r}=e.getSettings(),n=r?e.countColHeaders():0,{row:o}=e.getSelectedRangeActive().highlight;let i=e.countVisibleRows()+n;i=0===i?-1:-i,o===-n?i=-1:o+i<n&&(i=-(o+n)),t.markSource("keyboard"),t.transformStart(i,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},44368(e,t){"use strict";t.__esModule=!0;t.command={name:"populateSelectedCellsData",callback(e){const t=e.getSelectedRange(),{row:r,col:n}=t[t.length-1].highlight.normalize(),o=e.getDataAtCell(r,n),i=new Map;for(let s=0;s<t.length;s++)t[s].forAll((t,s)=>{if(t>=0&&s>=0&&(t!==r||s!==n)){const{readOnly:r}=e.getCellMeta(t,s);r||i.set(`${t}x${s}`,[t,s,o])}});e.setDataAtCell(Array.from(i.values()))}}},37277(e,t){"use strict";t.__esModule=!0;t.command={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeActive(),r=e.getFirstFullyVisibleRow()-1,n=e.getFirstFullyVisibleColumn()-1,o=e.getLastFullyVisibleRow()+1,i=e.getLastFullyVisibleColumn()+1,s=e._createCellCoords(r,n),a=e._createCellCoords(o,i);if(!e._createCellRange(s,s,a).includes(t)&&(t.row>=0||t.col>=0)){const r={};if(t.col>=0){const n=Math.floor(e.countVisibleCols()/2);r.col=Math.max(t.col-n,0)}if(t.row>=0){const n=Math.floor(e.countVisibleRows()/2);r.row=Math.max(t.row-n,0)}e.scrollViewportTo({...r,verticalSnap:"top",horizontalSnap:"start"})}}}},70530(e,t){"use strict";t.__esModule=!0;t.command={name:"selectAllCells",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!0}),t.markEndSource()}}},42655(e,t){"use strict";t.__esModule=!0;t.command={name:"selectAllCellsAndHeaders",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!1}),t.markEndSource()}}},48401(e,t){"use strict";t.__esModule=!0;t.command={name:"tabNavigation",callback(e){const t={wrapped:!1,flipped:!1};let r=!1,n=!1;return e.addHook("afterSelection",(e,o,i,s,a)=>{r&&(t.wrapped&&t.flipped||n)&&(n=!1,a.value=!0)}),e.addHook("beforeRowWrap",(e,r,n)=>{t.wrapped=!0,t.flipped=n}),{before(){const{tabNavigation:t}=e.getSettings();r=!0,t||(n=!0)},after(n){const{tabNavigation:o,autoWrapRow:i}=e.getSettings();if(r=!1,!o||!e.selection.isSelected()||i&&t.wrapped&&t.flipped||!i&&t.wrapped)return t.wrapped=!1,t.flipped=!1,e.deselectCell(),!1;n.preventDefault()}}}}},74608(e,t){"use strict";t.__esModule=!0;t.GRID_GROUP="gridDefault",t.GRID_SCOPE="grid",t.GRID_TAB_NAVIGATION_GROUP="grid.tabNavigation",t.EDITOR_EDIT_GROUP="editorManager.handlingEditor",t.EDITOR_SCOPE="editor"},85952(e,t,r){"use strict";t.__esModule=!0,t.shortcutsEditorContext=function(e){const t=e.getShortcutManager().addContext(n.EDITOR_SCOPE),r=(0,o.createKeyboardShortcutCommandsPool)(e),i={group:n.EDITOR_EDIT_GROUP};t.addShortcuts([{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>r.editorCloseAndSaveByEnter(e,t)},{keys:[["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],captureCtrl:!0,callback:(e,t)=>r.editorCloseAndSaveByEnter(e,t)},{keys:[["Tab"],["Tab","Shift"],["PageDown"],["PageUp"]],forwardToContext:e.getShortcutManager().getContext(n.GRID_SCOPE),callback:(e,t)=>r.editorCloseAndSave(e,t)},{keys:[["ArrowDown"],["ArrowUp"],["ArrowLeft"],["ArrowRight"]],preventDefault:!1,callback:(e,t)=>r.editorCloseAndSaveByArrowKeys(e,t)},{keys:[["Escape"],["Escape","Control/Meta"]],callback:()=>r.editorCloseWithoutSaving()}],i)};var n=r(74608),o=r(6936)},64549(e,t,r){"use strict";t.__esModule=!0,t.shortcutsGridContext=function(e){const t=e.getShortcutManager().addContext(o.GRID_SCOPE),r=(0,i.createKeyboardShortcutCommandsPool)(e),s={runOnlyIf:()=>{const{navigableHeaders:t}=e.getSettings();return(0,n.isDefined)(e.getSelected())&&(t||!t&&e.countRenderedRows()>0&&e.countRenderedCols()>0)},group:o.GRID_GROUP};t.addShortcuts([{keys:[["F2"]],callback:e=>r.editorFastOpen(e)},{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>r.editorOpen(e,t)},{keys:[["Backspace"],["Delete"]],callback:()=>r.emptySelectedCells()}],{group:o.EDITOR_EDIT_GROUP,runOnlyIf:()=>(0,n.isDefined)(e.getSelected())}),t.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>r.selectAllCells(),runOnlyIf:()=>{var t;return(0,n.isDefined)(e.getSelected())&&!(null!==(t=e.getSelectedRangeActive())&&void 0!==t&&t.highlight.isHeader())}},{keys:[["Control/Meta","A"]],callback:()=>{},runOnlyIf:()=>{var t;return(0,n.isDefined)(e.getSelected())&&(null===(t=e.getSelectedRangeActive())||void 0===t?void 0:t.highlight.isHeader())},preventDefault:!0},{keys:[["Control/Meta","Shift","Space"]],callback:()=>r.selectAllCellsAndHeaders()},{keys:[["Control/Meta","Enter"]],callback:()=>r.populateSelectedCellsData(),runOnlyIf:()=>(0,n.isDefined)(e.getSelected())&&!e.getSelectedRangeActive().highlight.isHeader()&&e.getSelectedRangeActive().getCellsCount()>1},{keys:[["Control","Space"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToColumns()},{keys:[["Shift","Space"]],stopPropagation:!0,callback:()=>r.extendCellsSelectionToRows()},{keys:[["ArrowUp"]],callback:()=>r.moveCellSelectionUp()},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostTop()},{keys:[["ArrowUp","Shift"]],callback:()=>r.extendCellsSelectionUp()},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostTop(),runOnlyIf:()=>(0,n.isDefined)(e.getSelected())&&!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>r.moveCellSelectionDown()},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostBottom()},{keys:[["ArrowDown","Shift"]],callback:()=>r.extendCellsSelectionDown()},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostBottom(),runOnlyIf:()=>(0,n.isDefined)(e.getSelected())&&!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>r.moveCellSelectionLeft()},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostLeft()},{keys:[["ArrowLeft","Shift"]],callback:()=>r.extendCellsSelectionLeft()},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostLeft(),runOnlyIf:()=>(0,n.isDefined)(e.getSelected())&&!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>r.moveCellSelectionRight()},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostRight()},{keys:[["ArrowRight","Shift"]],callback:()=>r.extendCellsSelectionRight()},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostRight(),runOnlyIf:()=>(0,n.isDefined)(e.getSelected())&&!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostInlineStart(),runOnlyIf:()=>(0,n.isDefined)(e.getSelected())&&e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>r.extendCellsSelectionToMostInlineStart()},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostTopInlineStart(),runOnlyIf:()=>(0,n.isDefined)(e.getSelected())&&e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostInlineEnd(),runOnlyIf:()=>(0,n.isDefined)(e.getSelected())&&e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>r.extendCellsSelectionToMostInlineEnd()},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostBottomInlineEnd(),runOnlyIf:()=>(0,n.isDefined)(e.getSelected())&&e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>r.moveCellSelectionUpByViewportHight()},{keys:[["PageUp","Shift"]],callback:()=>r.extendCellsSelectionUpByViewportHeight()},{keys:[["PageDown"]],callback:()=>r.moveCellSelectionDownByViewportHeight()},{keys:[["PageDown","Shift"]],callback:()=>r.extendCellsSelectionDownByViewportHeight()},{keys:[["Tab"]],preventDefault:!1,callback:e=>r.moveCellSelectionInlineStart(e)},{keys:[["Shift","Tab"]],preventDefault:!1,callback:e=>r.moveCellSelectionInlineEnd(e)},{keys:[["Control/Meta","Backspace"]],callback:()=>r.scrollToFocusedCell()}],s);const a=r.tabNavigation();t.addShortcuts([{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:o.GRID_GROUP,group:o.GRID_TAB_NAVIGATION_GROUP,position:"before",callback:e=>a.before(e)},{keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:o.GRID_GROUP,group:o.GRID_TAB_NAVIGATION_GROUP,callback:e=>a.after(e),position:"after"}])};var n=r(67787),o=r(74608),i=r(6936)},79145(e,t,r){"use strict";t.__esModule=!0;var n={registerAllShortcutContexts:!0};t.registerAllShortcutContexts=function(e){[i.shortcutsGridContext,o.shortcutsEditorContext].forEach(t=>t(e))};var o=r(85952),i=r(64549),s=r(74608);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))})},64853(e,t,r){"use strict";t.__esModule=!0,t.isContextObject=u;var n=r(46936),o=r(34875),i=r(67787),s=r(11526),a=r(81185),l=r(27033),h=r(15141);const c=Symbol("shortcut-context");function u(e){return(0,a.isObject)(e)&&e.__kindOf===c}t.createContext=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table";const r=(0,n.createUniqueMap)({errorIdExists:t=>`The "${t}" shortcut is already registered in the "${e}" context.`}),d=function(){let{keys:e,callback:t,group:n,runOnlyIf:a=()=>!0,captureCtrl:c=!1,preventDefault:d=!0,stopPropagation:p=!1,relativeToGroup:g,position:f,forwardToContext:m}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.isUndefined)(n)&&(0,h.throwWithCause)("You need to define the shortcut's group."),!1===(0,s.isFunction)(t)&&(0,h.throwWithCause)("The shortcut's callback needs to be a function."),!1===Array.isArray(e)&&(0,h.throwWithCause)(l.toSingleLine`Pass the shortcut\'s keys as an array of arrays,\x20
95
95
  using the KeyboardEvent.key properties:\x20
96
96
  https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values.`);const C={callback:t,group:n,runOnlyIf:a,captureCtrl:c,preventDefault:d,stopPropagation:p};(0,i.isDefined)(g)&&(C.relativeToGroup=g,C.position=f),u(m)&&(C.forwardToContext=m),e.forEach(e=>{const t=(0,o.normalizeKeys)(e);if(r.hasItem(t)){const e=r.getItem(t);let n=e.findIndex(e=>e.group===g);-1!==n?"before"===f?n-=1:n+=1:n=e.length,e.splice(n,0,C)}else r.addItem(t,[C])})},p=e=>{const t=(0,o.normalizeKeys)(e);r.removeItem(t)};return{__kindOf:c,scope:t,addShortcut:d,addShortcuts:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(e=>{(0,a.objectEach)(t,(r,n)=>{!1===Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=t[n])}),d(e)})},getShortcuts:e=>{const t=(0,o.normalizeKeys)(e),n=r.getItem(t);return(0,i.isDefined)(n)?n.slice():[]},hasShortcut:e=>{const t=(0,o.normalizeKeys)(e);return r.hasItem(t)},removeShortcutsByKeys:p,removeShortcutsByGroup:e=>{r.getItems().forEach(t=>{let[r,n]=t;const i=n.filter(t=>t.group!==e);0===i.length?p((0,o.getKeysList)(r)):(n.length=0,n.push(...i))})}}}},58282(e,t,r){"use strict";t.__esModule=!0;var n=r(6421);t.createShortcutManager=n.createShortcutManager},91803(e,t){"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)}}},6421(e,t,r){"use strict";t.__esModule=!0;var n=r(46936),o=r(15141),i=r(82063),s=r(64853),a=r(32942),l=r(27033);t.createShortcutManager=e=>{let{ownerWindow:t,handleEvent:r,beforeKeyDown:h,afterKeyDown:c}=e;const u=(0,n.createUniqueMap)({errorIdExists:e=>`The "${e}" context name is already registered.`});let d="grid";const p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table";const r=(0,s.createContext)(e,t);return u.addItem(e,r),r},g=()=>d,f=e=>u.getItem(e);let m=!1;const C=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g();const n=(0,s.isContextObject)(r)?r:f(r);let o=!1;if(!n.hasShortcut(t))return o;const a=n.getShortcuts(t);for(let r=0;r<a.length;r++){const{callback:n,runOnlyIf:s,preventDefault:l,stopPropagation:h,captureCtrl:c,forwardToContext:u}=a[r];if(!0===s(e)){if(m=c,o=!1===n(e,t),m=!1,l&&e.preventDefault(),h&&((0,i.stopImmediatePropagation)(e),e.stopPropagation()),o)break;u&&C(e,t,u)}}return o},w=(0,a.useRecorder)(t,e=>{const t=g(),n=(0,s.isContextObject)(t)?t:f(t);return r(e,n.scope)},h,c,C);return w.mount(),{addContext:p,getActiveContextName:g,getContext:f,getOrCreateContext:function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table";return null!==(t=f(e))&&void 0!==t?t:p(e,r)},setActiveContextName:e=>{u.hasItem(e)||(0,o.throwWithCause)(l.toSingleLine`You've tried to activate the "${e}" shortcut context\x20
97
- that does not exist. Before activation, register the context using the "addContext" method.`),d=e},isCtrlPressed:()=>!m&&(w.isPressed("control")||w.isPressed("meta")),releasePressedKeys:()=>w.releasePressedKeys(),destroy:()=>w.unmount()}}},32942(e,t,r){"use strict";t.__esModule=!0,t.useRecorder=function(e,t,r,n,d){const p=e=>l.includes(e),g=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=[];return e.altKey&&r.push("alt"),t&&(e.ctrlKey||e.metaKey)?r.push("control/meta"):(e.ctrlKey&&r.push("control"),e.metaKey&&r.push("meta")),e.shiftKey&&r.push("shift"),r},f=e=>{if(!1===t(e))return;if(!1===r(e)||229===e.keyCode||"string"!=typeof e.key||(0,i.isImmediatePropagationStopped)(e))return;const s=(0,o.normalizeEventKey)(e);let l=[];p(s)||(l=g(e));const h=[s].concat(l);!d(e,h)&&((0,a.isMacOS)()&&l.includes("meta")||!(0,a.isMacOS)()&&l.includes("control"))&&d(e,[s].concat(g(e,!0))),n(e)},m=e=>{if("string"==typeof e.key){const t=(0,o.normalizeEventKey)(e);p(t)&&h.press(t)}},C=e=>{if("string"==typeof e.key){const t=(0,o.normalizeEventKey)(e);p(t)&&h.release(t)}},w=()=>{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",C),c.push({event:"keyup",listener:C})),t.document.documentElement.addEventListener("keydown",f),t.document.documentElement.addEventListener("blur",w),t=(0,s.getParentWindow)(t)},unmount:()=>{let t=e;for(u-=1;t;){if(0===u){for(let e=0;e<c.length;e++){const{event:r,listener:n}=c[e];t.document.documentElement.removeEventListener(r,n)}c.length=0}t.document.documentElement.removeEventListener("keydown",f),t.document.documentElement.removeEventListener("blur",w),t=(0,s.getParentWindow)(t)}},isPressed:e=>h.isPressed(e),releasePressedKeys:()=>h.releaseAll()}};var n=r(91803),o=r(34875),i=r(82063),s=r(2783),a=r(81136);const l=["meta","alt","shift","control"],h=(0,n.createKeysObserver)(),c=[];let u=0},34875(e,t){"use strict";t.__esModule=!0;const r=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 r.has(t)?r.get(t):t}).sort().join("+");t.getKeysList=e=>e.split("+");const n=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]);t.normalizeEventKey=e=>{let{which:t,key:r}=e;if(n.has(t))return n.get(t);const o=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(o)?o:r.toLowerCase()}},95206(e,t){"use strict";t.__esModule=!0;t.default='/*!\n * Copyright (c) HANDSONCODE sp. z o. o.\n *\n * HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in\n * Gdynia, Poland, at Aleja Zwyciestwa 96-98, registered by the District Court in Gdansk under number\n * 538651, EU tax ID number: PL5862294002, share capital: PLN 62,800.00.\n *\n * This software is protected by applicable copyright laws, including international treaties, and dual-\n * licensed - depending on whether your use for commercial purposes, meaning intended for or\n * resulting in commercial advantage or monetary compensation, or not.\n *\n * If your use is strictly personal or solely for evaluation purposes, meaning for the purposes of testing\n * the suitability, performance, and usefulness of this software outside the production environment,\n * you agree to be bound by the terms included in the "handsontable-non-commercial-license.pdf" file.\n *\n * Your use of this software for commercial purposes is subject to the terms included in an applicable\n * license agreement.\n *\n * In any case, you must not make any such use of this software as to develop software which may be\n * considered competitive with this software.\n *\n * UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"\n * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO\n * LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,\n * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM\n * USE OR INABILITY TO USE THIS SOFTWARE.\n *\n * Version: 17.0.0-rc13\n * Release date: 04/03/2026 (built at 04/03/2026 12:06:17)\n */.ht-root-wrapper{display:flex;flex-direction:column;font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;height:100%;position:relative}.htFocusCatcher{border:0;display:block!important;height:0;margin:0;opacity:0;padding:0;position:absolute;width:0;z-index:-1}.ht-grid{flex:1 1 auto;min-height:0}.handsontable{color:var(--ht-foreground-color);font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);letter-spacing:var(--ht-letter-spacing);line-height:var(--ht-line-height);position:relative;scrollbar-color:var(--ht-scrollbar-thumb-color) var(--ht-scrollbar-track-color);scrollbar-width:thin;touch-action:manipulation}.handsontable .wtHolder::-webkit-scrollbar{height:9px;width:9px}.handsontable .wtHolder::-webkit-scrollbar-track{background:var(--ht-scrollbar-track-color);border-radius:var(--ht-scrollbar-border-radius)}.handsontable .wtHolder::-webkit-scrollbar-thumb{background-color:var(--ht-scrollbar-thumb-color);border-radius:var(--ht-scrollbar-border-radius)}.handsontable .wtHolder::-webkit-scrollbar-corner{background:var(--ht-scrollbar-track-color);border-end-end-radius:var(--ht-scrollbar-border-radius)}.handsontable.ht-wrapper{border-radius:var(--ht-wrapper-border-radius,0);height:100%;width:100%}.handsontable.ht-wrapper:not(.htFirstDatasetColumnNotRendered) td:first-of-type{border-inline-start-width:1px}.handsontable.ht-wrapper:before{border:var(--ht-wrapper-border-width) solid var(--ht-wrapper-border-color);border-radius:var(--ht-wrapper-border-radius,0);content:"";display:block;inset:0;overflow:hidden;pointer-events:none;position:absolute;z-index:999}.handsontable.htGhostTable table thead th{border-bottom-width:0}.handsontable.htGhostTable table tbody tr:first-of-type td:first-child,.handsontable.htGhostTable table tbody tr:first-of-type th:first-child{height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px)}.handsontable.htGhostTable table tbody tr td,.handsontable.htGhostTable table tbody tr th{border-top-width:0;height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px)}.handsontable.htHasScrollX:not(.htHorizontallyScrollableByWindow) .ht_master .wtHolder,.handsontable.htHasScrollY:not(.htVerticallyScrollableByWindow) .ht_master .wtHolder{border-radius:var(--ht-wrapper-border-radius,0)}.handsontable:not(.htHorizontallyScrollableByWindow) .ht_master .wtHolder,.handsontable:not(.htVerticallyScrollableByWindow) .ht_master .wtHolder{background-color:var(--ht-background-color)}.handsontable tr.ht__row_even th{background-color:var(--ht-row-header-even-background-color)}.handsontable tr.ht__row_even td{background-color:var(--ht-row-cell-even-background-color)}.handsontable tr.ht__row_odd th{background-color:var(--ht-row-header-odd-background-color)}.handsontable tr.ht__row_odd td{background-color:var(--ht-row-cell-odd-background-color)}.handsontable td,.handsontable th{border-bottom:1px solid var(--ht-cell-vertical-border-color);border-inline-end-color:var(--ht-cell-horizontal-border-color);border-inline-end-width:1px;border-inline-start-color:var(--ht-cell-horizontal-border-color);border-inline-start-width:0;border-left-style:solid;border-right-style:solid;border-top:0 solid var(--ht-cell-vertical-border-color);box-sizing:border-box;color:var(--ht-foreground-color);empty-cells:show;font-size:var(--ht-font-size);height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px);line-height:var(--ht-line-height);outline:none;outline-width:0;overflow:hidden;padding:var(--ht-cell-vertical-padding) var(--ht-cell-horizontal-padding);vertical-align:top;white-space:pre-wrap}.handsontable td.invisibleSelection,.handsontable th.invisibleSelection{outline:none}.handsontable td.invisibleSelection::selection,.handsontable th.invisibleSelection::selection{background:transparent}.handsontable th{background-color:var(--ht-header-background-color);color:var(--ht-header-foreground-color);font-weight:var(--ht-header-font-weight);overflow:visible;position:relative;text-align:center;white-space:nowrap}.handsontable th:last-child{border-bottom-width:1px;border-inline-end-color:var(--ht-border-color);border-inline-end-width:1px;border-inline-start-width:0}.handsontable th:last-child.ht__active_highlight{border-inline-end-color:var(--ht-header-active-border-color)}.handsontable th:first-child{border-inline-start-color:var(--ht-border-color)}.handsontable th:first-child.ht__active_highlight{border-inline-start-color:var(--ht-header-active-border-color)}.handsontable th:first-child,.handsontable th:nth-child(2){border-inline-start-width:1px}.handsontable th.current{box-shadow:inset 0 0 0 1px var(--ht-cell-selection-border-color)}.handsontable th.active{background-color:var(--ht-header-active-background-color);color:var(--ht-header-active-foreground-color)}.handsontable th.ht__highlight{background-color:var(--ht-header-highlighted-background-color);color:var(--ht-header-highlighted-foreground-color)}.handsontable th.ht__active_highlight{background-color:var(--ht-header-active-background-color);border-color:var(--ht-header-active-border-color);color:var(--ht-header-active-foreground-color)}.handsontable tbody tr.ht__row_even th.ht__highlight,.handsontable tbody tr.ht__row_odd th.ht__highlight{background-color:var(--ht-header-row-highlighted-background-color);color:var(--ht-header-row-highlighted-foreground-color)}.handsontable tbody tr.ht__row_even th.ht__active_highlight,.handsontable tbody tr.ht__row_odd th.ht__active_highlight{background-color:var(--ht-header-row-active-background-color);color:var(--ht-header-row-active-foreground-color)}.handsontable tbody tr:first-of-type td:first-child:empty:after,.handsontable tbody tr:first-of-type th:first-child:empty:after{content:"";display:block;min-height:var(--ht-line-height)}.handsontable tbody tr th{background-color:var(--ht-header-row-background-color);color:var(--ht-header-row-foreground-color);padding:0}.handsontable tbody tr th.ht__active_highlight{box-shadow:0 -1px 0 0 var(--ht-header-active-border-color)}.handsontable tbody tr th .relative{min-height:100%;padding:var(--ht-cell-vertical-padding) var(--ht-cell-horizontal-padding)}.handsontable tbody tr td:first-child{border-inline-start-color:var(--ht-border-color)}.handsontable tbody tr td:last-child{border-inline-end-color:var(--ht-border-color)}.handsontable thead tr th{padding:0}.handsontable thead tr th.ht__active_highlight{box-shadow:-1px 0 0 0 var(--ht-header-active-border-color)}.handsontable thead tr th .relative{padding:var(--ht-cell-vertical-padding) var(--ht-cell-horizontal-padding)}.handsontable thead tr th .relative .colHeader{max-width:calc(100% + 1px);overflow:hidden;text-overflow:ellipsis;vertical-align:top}.handsontable thead tr th .relative:has(.collapsibleIndicator,.changeType) .colHeader{max-width:calc(100% - var(--ht-icon-size) - var(--ht-gap-size) - 1px)}.handsontable tr:first-child td,.handsontable tr:first-child th{border-top-color:var(--ht-border-color);border-top-width:1px}.handsontable tr:first-child td.ht__active_highlight,.handsontable tr:first-child th.ht__active_highlight{border-top-color:var(--ht-header-active-border-color)}.handsontable tr:last-child td,.handsontable tr:last-child th{border-bottom-color:var(--ht-border-color)}.handsontable tr:last-child td.ht__active_highlight,.handsontable tr:last-child th.ht__active_highlight{border-bottom-color:var(--ht-header-active-border-color)}.handsontable div[class^=ht_clone] thead .ht__highlight .relative:after{background-color:var(--ht-accent-color);bottom:-1px;content:"";display:block;height:var(--ht-header-highlighted-shadow-size);left:-1px;position:absolute;right:-1px}.handsontable div[class^=ht_clone] thead tr:only-of-type .ht__highlight .relative:after{bottom:0}.handsontable div[class^=ht_clone] tbody .ht__highlight .relative:after{background-color:var(--ht-accent-color);bottom:-1px;content:"";display:block;position:absolute;right:-1px;top:-1px;width:var(--ht-header-highlighted-shadow-size)}.handsontable div[class^=ht_clone] td:first-of-type{border-inline-start-width:1px}.handsontable thead tr:not(:last-child) th{overflow:hidden}.handsontable .hide{display:none}.handsontable .relative{box-sizing:border-box;position:relative}.handsontable .wtHider{width:0}.handsontable .wtSpreader{height:auto;position:relative;width:0}.handsontable .htAutoSize{left:-99000px;position:absolute;top:-99000px;visibility:hidden}.handsontable .htTextEllipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.handsontable div,.handsontable input,.handsontable table,.handsontable tbody,.handsontable textarea,.handsontable thead{box-sizing:content-box}.handsontable input,.handsontable textarea{min-height:auto}.handsontable .htCore{background-color:var(--ht-background-color);border-collapse:separate;border-spacing:0;border-width:0;cursor:default;margin:0;outline-width:0;table-layout:fixed;width:0}.handsontable col,.handsontable col.rowHeader{width:64px}.handsontable col.hidden{width:0!important}.handsontable span.colHeader,.handsontable span.rowHeader{display:inline-block;font-size:var(--ht-font-size);line-height:var(--ht-line-height)}.handsontable tr.hidden,.handsontable tr.hidden td,.handsontable tr.hidden th{display:none}.handsontable a{color:var(--ht-link-color)}.handsontable a:hover{color:var(--ht-link-hover-color)}.handsontable .ht_clone_top th:nth-child(2){border-inline-end-width:1px;border-inline-start-width:0}.handsontable.htRowHeaders thead tr th:nth-child(2){border-inline-start-width:1px}.handsontable .ht_master:not(.innerBorderInlineStart):not(.emptyColumns) tbody tr th,.handsontable .ht_master:not(.innerBorderInlineStart):not(.emptyColumns) thead tr th:first-child,.handsontable .ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.htGhostTable) tbody tr th,.handsontable .ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.ht_clone_top):not(.htGhostTable) thead tr th:first-child{border-inline-end-width:0;border-inline-start-width:1px}.handsontable .ht_master:not(.innerBorderTop):not(.innerBorderBottom) thead tr.lastChild th,.handsontable .ht_master:not(.innerBorderTop):not(.innerBorderBottom) thead tr:last-child th,.handsontable .ht_master:not(.innerBorderTop):not(.innerBorderBottom)~.handsontable thead tr.lastChild th,.handsontable .ht_master:not(.innerBorderTop):not(.innerBorderBottom)~.handsontable thead tr:last-child th{border-bottom-width:0}.handsontable.htAutoRowSize .ht_master.innerBorderTop tbody tr:first-child td,.handsontable.htAutoRowSize .ht_master.innerBorderTop tbody tr:first-child th,.handsontable.htAutoRowSize .ht_master.innerBorderTop~.ht_clone_inline_start tbody tr:first-child td,.handsontable.htAutoRowSize .ht_master.innerBorderTop~.ht_clone_inline_start tbody tr:first-child th{border-top-width:0}.handsontable .ht_clone_inline_start table.htCore>thead,.handsontable .ht_master table.htCore>tbody>tr>th,.handsontable .ht_master table.htCore>thead{visibility:hidden}.ht_clone_bottom,.ht_clone_bottom .wtHolder,.ht_clone_inline_start,.ht_clone_inline_start .wtHolder,.ht_clone_top,.ht_clone_top .wtHolder,.ht_master,.ht_master .wtHolder{overflow:hidden}.ht_master .wtHolder{overflow:auto}[dir=rtl].handsontable td[dir=ltr]{border-inline-end-width:0;border-inline-start-width:1px}[dir=rtl].handsontable tbody tr td[dir=ltr]:last-child{border-inline-start-color:var(--ht-border-color)}[dir=rtl].handsontable div[class^=ht_clone] tbody .ht__highlight .relative:after{left:-1px;right:auto}.htScrollbarSafariTest::-webkit-scrollbar{height:9px;width:9px}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_master .htCore tbody tr:first-child td:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_master .htCore tbody tr:first-child td:last-child{border-start-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top .htCore tbody tr:first-child td:first-child,.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top_inline_start_corner .htCore tbody tr:first-child td:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top .htCore tbody tr:first-child td:last-child{border-start-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_inline_start .htCore tbody tr:first-child td:first-child,.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_inline_start .htCore tbody tr:first-child th:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore{border-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore thead tr:first-child th:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore thead tr:first-child th:last-child{border-start-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore thead tr:last-child th:first-child{border-end-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore thead tr:last-child th:last-child{border-end-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore tbody tr:last-child td:first-child{border-end-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore tbody tr:last-child td:last-child{border-end-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore,.handsontable.ht-wrapper .ht_clone_top_inline_start_corner .htCore,.handsontable.ht-wrapper .ht_clone_top_inline_start_corner .htCore thead tr:first-child th:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore{border-start-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore thead tr:first-child th:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore thead tr:first-child th:last-child{border-start-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_start .htCore{border-end-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_start .htCore,.handsontable.ht-wrapper .ht_clone_inline_start .htCore thead tr:first-child th:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore,.handsontable.ht-wrapper .ht_clone_bottom_inline_start_corner .htCore,.handsontable.ht-wrapper .ht_clone_bottom_inline_start_corner .htCore tr:last-child td:first-child,.handsontable.ht-wrapper .ht_clone_bottom_inline_start_corner .htCore tr:last-child th:first-child,.handsontable.ht-wrapper .ht_clone_inline_start .htCore tbody tr:last-child td:first-child,.handsontable.ht-wrapper .ht_clone_inline_start .htCore tbody tr:last-child th:first-child{border-end-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore{border-end-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore tr:last-child td:first-child,.handsontable.ht-wrapper .ht_clone_bottom .htCore tr:last-child th:first-child{border-end-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore tr:last-child td:last-child,.handsontable.ht-wrapper .ht_clone_bottom .htCore tr:last-child th:last-child{border-end-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper.htHasScrollX .htCore{border-end-end-radius:0;border-end-start-radius:0}.handsontable.ht-wrapper.htHasScrollX .htCore tbody tr:last-child td:first-child,.handsontable.ht-wrapper.htHasScrollX .htCore tbody tr:last-child th:first-child,.handsontable.ht-wrapper.htHasScrollX .htCore thead tr:last-child th:first-child{border-end-start-radius:0!important}.handsontable.ht-wrapper.htHasScrollX .htCore tbody tr:last-child td:last-child,.handsontable.ht-wrapper.htHasScrollX .htCore tbody tr:last-child th:last-child,.handsontable.ht-wrapper.htHasScrollX .htCore thead tr:last-child th:last-child{border-end-end-radius:0!important}.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore{border-end-end-radius:0;border-start-end-radius:0}.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore tbody tr:first-child td:last-child,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore tbody tr:first-child th:last-child,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore thead tr:first-child th:last-child{border-start-end-radius:0!important}.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore tbody tr:last-child td:last-child,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore tbody tr:last-child th:last-child,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore thead tr:last-child th:last-child{border-end-end-radius:0!important}.handsontable.mobile,.handsontable.mobile .wtHolder{user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-overflow-scrolling:touch}.handsontable.mobile .handsontableInput:focus{-webkit-appearance:none;box-shadow:inset 0 0 0 2px var(--ht-accent-color)}.handsontable .bottomSelectionHandle,.handsontable .bottomSelectionHandle-HitArea,.handsontable .topSelectionHandle,.handsontable .topSelectionHandle-HitArea{inset-inline-end:unset;inset-inline-start:-10000px;top:-10000px;z-index:9999}.handsontable.hide-tween{-webkit-animation:opacity-hide .2s;animation:opacity-hide .2s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.handsontable.show-tween{-webkit-animation:opacity-show .3s;animation:opacity-show .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.ht_clone_master{z-index:100}.ht_clone_inline_start{z-index:120}.ht_clone_bottom{z-index:130}.ht_clone_bottom_inline_start_corner{z-index:150}.ht_clone_top{z-index:160}.ht_clone_top_inline_start_corner{z-index:180}.ht_editor_hidden{z-index:-1}.ht_editor_visible{z-index:200}.handsontable td.area{position:relative}.handsontable td.area:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-1{position:relative}.handsontable td.area-1:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-2{position:relative}.handsontable td.area-2:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-3{position:relative}.handsontable td.area-3:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-4{position:relative}.handsontable td.area-4:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-5{position:relative}.handsontable td.area-5:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-6{position:relative}.handsontable td.area-6:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-7{position:relative}.handsontable td.area-7:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area:before{opacity:.14}.handsontable td.area-1:before{opacity:.21}.handsontable td.area-2:before{opacity:.28}.handsontable td.area-3:before{opacity:.35}.handsontable td.area-4:before{opacity:.42}.handsontable td.area-5:before{opacity:.49}.handsontable td.area-6:before{opacity:.56}.handsontable td.area-7:before{opacity:.63}.handsontable td.area{border-color:color-mix(in srgb,var(--ht-border-color),var(--ht-foreground-color) 10%)}.handsontable .wtBorder{font-size:0;position:absolute}.handsontable .wtBorder:first-child,.handsontable .wtBorder:nth-child(3){z-index:2}.handsontable .wtBorder:nth-child(2),.handsontable .wtBorder:nth-child(4){z-index:1}.handsontable .wtBorder.hidden{display:none!important}.handsontable .wtBorder.current{z-index:10}.handsontable .wtBorder.area,.handsontable .wtBorder.current{background-color:var(--ht-cell-selection-border-color)!important}.handsontable .wtBorder.area{z-index:8}.handsontable .wtBorder.fill{background-color:var(--ht-cell-autofill-fill-border-color,#68696c)!important;z-index:6}.handsontable .wtBorder.corner{background-color:var(--ht-cell-autofill-background-color,#1a42e8)!important;border-color:var(--ht-cell-autofill-border-color)!important;border-radius:var(--ht-cell-autofill-border-radius)!important;cursor:crosshair;font-size:0;z-index:10}.handsontable .wtBorder.corner:after{background:transparent;border-radius:var(--ht-cell-autofill-border-radius);content:"";inset:min(0px,(var(--ht-cell-autofill-size) - var(--ht-cell-autofill-hit-area-size))/2);position:absolute}.handsontable .wtBorder.corner.wtCornerInlineEndEdge:after{inset-inline-end:0}.handsontable .wtBorder.corner.wtCornerBlockEndEdge:after{inset-block-end:0}.hot-display-license-info{background-color:var(--ht-license-background-color,#f7f7f9);border:1px solid var(--ht-border-color,#f7f7f9);border-radius:var(--ht-wrapper-border-radius);color:var(--ht-license-foreground-color);font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--ht-font-size-small);line-height:var(--ht-line-height-small);margin-top:10px;padding:var(--ht-license-vertical-padding,16px) var(--ht-license-horizontal-padding,16px);text-align:left}.hot-display-license-info a{color:var(--ht-link-color);font-size:var(--ht-license-font-size)}.hot-display-license-info a:hover{color:var(--ht-link-hover-color)}.handsontable .htAutocompleteArrow{cursor:default;float:right;font-size:0;height:var(--ht-icon-size);margin-inline-end:1px;margin-inline-start:calc(var(--ht-gap-size)*2);position:relative;top:calc((var(--ht-line-height) - var(--ht-icon-size))/2);width:var(--ht-icon-size)}.handsontable .htAutocompleteArrow:after{content:"";display:block;left:0;opacity:.6;position:absolute;top:0}[dir=rtl].handsontable .htAutocompleteArrow{float:left}.handsontable .htCheckboxRendererInput{cursor:pointer;display:inline-block;height:var(--ht-checkbox-size);margin:-2px 0 0;outline:none;position:relative;vertical-align:middle;width:var(--ht-checkbox-size)}.handsontable .htCheckboxRendererInput:first-child{margin-inline-end:var(--ht-gap-size)}.handsontable .htCheckboxRendererInput:last-child{margin-inline-start:var(--ht-gap-size)}.handsontable .htCheckboxRendererInput:before{background-color:var(--ht-checkbox-background-color);border:1px solid var(--ht-checkbox-border-color);border-radius:var(--ht-checkbox-border-radius);box-sizing:border-box;content:"";display:inline-block;height:var(--ht-checkbox-size);left:0;pointer-events:none;position:absolute;top:0;transition:all var(--ht-table-transition) ease-in-out;width:var(--ht-checkbox-size)}.handsontable .htCheckboxRendererInput:after{color:var(--ht-checkbox-icon-color);content:"";display:block;height:var(--ht-checkbox-size)!important;left:0;pointer-events:none;position:absolute;top:0;width:var(--ht-checkbox-size)!important}.handsontable .htCheckboxRendererInput:checked:before{background-color:var(--ht-checkbox-checked-background-color);border-color:var(--ht-checkbox-checked-border-color)}.handsontable .htCheckboxRendererInput:checked:after{color:var(--ht-checkbox-checked-icon-color)}.handsontable .htCheckboxRendererInput:checked:disabled:before{background-color:var(--ht-checkbox-checked-disabled-background-color);border-color:var(--ht-checkbox-checked-disabled-border-color)}.handsontable .htCheckboxRendererInput:checked:disabled:after{color:var(--ht-checkbox-checked-disabled-icon-color)}.handsontable .htCheckboxRendererInput:checked:focus:before{background-color:var(--ht-checkbox-checked-focus-background-color);border-color:var(--ht-checkbox-checked-focus-border-color)}.handsontable .htCheckboxRendererInput:checked:focus:after{color:var(--ht-checkbox-checked-focus-icon-color)}.handsontable .htCheckboxRendererInput:focus:before{background-color:var(--ht-checkbox-focus-background-color);border-color:var(--ht-checkbox-focus-border-color);outline:1px solid var(--ht-checkbox-focus-ring-color)}.handsontable .htCheckboxRendererInput:focus:after{color:var(--ht-checkbox-focus-icon-color)}.handsontable .htCheckboxRendererInput:disabled{cursor:auto}.handsontable .htCheckboxRendererInput:disabled:before{background-color:var(--ht-checkbox-disabled-background-color);border-color:var(--ht-checkbox-disabled-border-color)}.handsontable .htCheckboxRendererInput:disabled:after{color:var(--ht-checkbox-disabled-icon-color)}.handsontable .htCheckboxRendererInput:indeterminate:before{background-color:var(--ht-checkbox-indeterminate-background-color);border-color:var(--ht-checkbox-indeterminate-border-color)}.handsontable .htCheckboxRendererInput:indeterminate:after{color:var(--ht-checkbox-indeterminate-icon-color)}.handsontable .htCheckboxRendererInput:indeterminate:disabled:before{background-color:var(--ht-checkbox-indeterminate-disabled-background-color);border-color:var(--ht-checkbox-indeterminate-disabled-border-color)}.handsontable .htCheckboxRendererInput:indeterminate:disabled:after{color:var(--ht-checkbox-indeterminate-disabled-icon-color)}.handsontable .htCheckboxRendererInput:indeterminate:focus:before{background-color:var(--ht-checkbox-indeterminate-focus-background-color);border-color:var(--ht-checkbox-indeterminate-focus-border-color)}.handsontable .htCheckboxRendererInput:indeterminate:focus:after{color:var(--ht-checkbox-indeterminate-focus-icon-color)}.handsontable .htCheckboxRendererInput.noValue{opacity:.5}.handsontable .htCheckboxRendererLabel{color:inherit;cursor:pointer;display:inline-block;font-size:inherit;line-height:inherit;margin:0;position:relative}.handsontable .htCheckboxRendererLabel.fullWidth{width:100%}.handsontable .htPlaceholder{color:var(--ht-placeholder-color)}.handsontable .htDimmed{background-color:var(--ht-cell-read-only-background-color)!important;color:var(--ht-read-only-color)!important}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htInvalid{background-color:var(--ht-cell-error-background-color)!important}.handsontable .htNoWrap{white-space:nowrap}.handsontable .htSearchResult{background-color:var(--ht-cell-success-background-color)!important}.handsontable .ht-multi-select-renderer{overflow:hidden;padding:var(--ht-cell-vertical-padding) var(--ht-cell-horizontal-padding)}.handsontable .ht-multi-select-chips-container{align-items:center;display:flex;flex-wrap:nowrap;gap:var(--ht-gap-size);max-width:100%;overflow:hidden}.handsontable .ht-multi-select-chip{align-items:center;background:var(--ht-chip-background);border-radius:var(--ht-chip-border-radius);box-sizing:border-box;display:inline-flex;flex-shrink:0;gap:var(--ht-gap-size);max-width:100px;padding:var(--ht-chip-vertical-padding) calc((var(--ht-line-height) - var(--ht-icon-size))/2) var(--ht-chip-vertical-padding) var(--ht-chip-horizontal-padding);white-space:nowrap}.handsontable .ht-multi-select-chip-label{color:var(--ht-foreground-color);font-style:normal;font-weight:var(--ht-font-weight);letter-spacing:var(--ht-letter-spacing,0);line-height:var(--ht-line-height,40px);overflow:hidden;padding:0 var(--ht-chip-gap);text-overflow:ellipsis}.handsontable .ht-multi-select-chip-remove{align-items:center;background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ht-icon-button-icon-color);cursor:pointer;display:flex;flex-shrink:0;height:var(--ht-icon-size)!important;justify-content:center;padding:0;position:relative;width:var(--ht-icon-size)!important}.handsontable .ht-multi-select-chip-remove:before{content:"";display:block;left:0;position:absolute;top:0}.handsontable .ht-multi-select-chip-remove:hover{background-color:var(--ht-icon-button-hover-background-color)}.handsontable .ht-multi-select-overflow{align-items:center;background:var(--ht-chip-background);border-radius:var(--ht-chip-border-radius);color:var(--ht-foreground-color);display:inline-flex;flex-shrink:0;justify-content:center;padding:0 calc(var(--ht-gap-size)*2);white-space:nowrap}.handsontableInputHolder{left:0;position:absolute;top:0}.handsontableInputHolder .handsontableInput{-webkit-appearance:none!important;background-color:var(--ht-cell-editor-background-color,#fff);border:none;border-radius:0;box-shadow:inset 0 0 0 var(--ht-cell-editor-border-width,2px) var(--ht-cell-editor-border-color,#1a42e8),0 0 var(--ht-cell-editor-shadow-blur-radius,0) 0 var(--ht-cell-editor-shadow-color,transparent);box-sizing:border-box;color:var(--ht-cell-editor-foreground-color);display:block;font-family:inherit!important;font-size:inherit!important;line-height:inherit!important;margin:0;outline-width:0;padding:calc(var(--ht-cell-vertical-padding, 4px) + 1px) calc(var(--ht-cell-horizontal-padding, 8px) + 1px)}.handsontableInputHolder .handsontableInput:focus{outline:none}.htSelectEditor{position:absolute}.htSelectEditor select{-webkit-appearance:none!important;background-color:var(--ht-cell-editor-background-color,#fff);border:none;border-radius:0;box-shadow:inset 0 0 0 var(--ht-cell-editor-border-width,2px) var(--ht-cell-editor-border-color,#1a42e8),0 0 var(--ht-cell-editor-shadow-blur-radius,0) 0 var(--ht-cell-editor-shadow-color,transparent);box-sizing:border-box;color:var(--ht-cell-editor-foreground-color);font-family:inherit!important;font-size:inherit!important;height:100%;inset:0;line-height:inherit!important;margin:0;overflow:hidden;padding:calc(var(--ht-cell-vertical-padding, 4px) + 1px) calc(var(--ht-cell-horizontal-padding, 8px) + 1px);padding-inline-end:26px;position:absolute;text-overflow:ellipsis;white-space:nowrap;width:100%}.htSelectEditor select:focus{outline:none}.htSelectEditor .htAutocompleteArrow{margin-inline-end:4px;pointer-events:none;top:50%;transform:translateY(-50%);z-index:1}.handsontable.listbox{border:var(--ht-menu-border-width,1px) solid var(--ht-menu-border-color,#e5e5e9);box-shadow:var(--ht-menu-shadow-x,0) var(--ht-menu-shadow-y,0) var(--ht-menu-shadow-blur,8px) color-mix(in srgb,var(--ht-menu-shadow-color,#000) var(--ht-menu-shadow-opacity,100%),transparent);margin:0}.handsontable.listbox .ht_master{background-color:var(--ht-background-color);overflow:hidden}.handsontable.listbox .wtHolder{border-radius:0!important;overflow:auto}.handsontable.listbox .htCore,.handsontable.listbox .wtHider{border-radius:0!important}.handsontable.listbox table{overflow:hidden}.handsontable.listbox table td,.handsontable.listbox table th,.handsontable.listbox table tr:first-child td,.handsontable.listbox table tr:first-child th,.handsontable.listbox table tr:last-child th{border-color:transparent!important}.handsontable.listbox table td,.handsontable.listbox table th{border-radius:0!important;text-overflow:ellipsis;white-space:nowrap}.handsontable.listbox table .wtBorder{visibility:hidden}.handsontable.listbox table strong{color:inherit;font-weight:700}.handsontable.listbox table tr td:hover td{background:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)!important;box-shadow:none!important;cursor:pointer}.handsontable.listbox table td{transition:var(--ht-table-transition) background ease-in-out}.handsontable.listbox table td:hover{background-color:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)!important;cursor:pointer}.handsontable.listbox table td.current:not([aria-expanded=true]){box-shadow:inset 0 0 0 1px var(--ht-accent-color)}.handsontable.listbox table td.htDimmed{color:inherit!important;cursor:default;font-style:inherit}.handsontable.listbox table td.htDimmed:not(.handsontable.listbox table td:hover){background-color:inherit!important}.handsontable.listbox table thead th{height:auto!important;text-align:left}.handsontable.listbox table thead th .relative{padding-bottom:calc(var(--ht-cell-vertical-padding) + var(--ht-gap-size));padding-top:calc(var(--ht-cell-vertical-padding) + var(--ht-gap-size))}.handsontable.listbox .ht_clone_top .wtHider{overflow:hidden}.handsontable.listbox .ht_clone_top table{border-radius:0}.handsontable.listbox .htBorders div{background:none!important}.handsontable.autocompleteEditor tr.ht__row_even td,.handsontable.autocompleteEditor tr.ht__row_even th,.handsontable.autocompleteEditor tr.ht__row_odd td,.handsontable.autocompleteEditor tr.ht__row_odd th{background-color:var(--ht-background-color,#fff)}[dir=rtl].handsontable.listbox table thead th{text-align:right}.pika-single{background:var(--ht-background-color,#fff);border:var(--ht-menu-border-width,1px) solid var(--ht-menu-border-color,#e5e5e9);border-radius:var(--ht-menu-border-radius);box-shadow:var(--ht-menu-shadow-x,0) var(--ht-menu-shadow-y,0) var(--ht-menu-shadow-blur,8px) color-mix(in srgb,var(--ht-menu-shadow-color,#000) var(--ht-menu-shadow-opacity,100%),transparent);color:var(--ht-foreground-color);display:block;font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);padding:10px;position:relative;z-index:9999}.pika-single.is-hidden{display:none}.pika-single .pika-row{background-color:transparent}.pika-single .pika-title{align-items:center;display:flex;justify-content:center}.pika-single .pika-label{color:var(--ht-accent-color);order:2;padding:5px;position:relative}.pika-single .pika-label .pika-select{cursor:pointer;inset:0;opacity:0;position:absolute}.pika-single .pika-next,.pika-single .pika-prev{background:none;border:none;color:var(--ht-accent-color);cursor:pointer;height:20px;padding:0;text-indent:-9999px;white-space:nowrap;width:20px}.pika-single .pika-prev{margin-right:auto;order:1}.pika-single .pika-next{margin-left:auto;order:3}.pika-single .pika-table thead{height:50px}.pika-single .pika-table th{padding:1px;vertical-align:middle}.pika-single .pika-table th abbr{border:none;cursor:auto;font-weight:400;text-decoration:none}.pika-single .pika-table td{padding:1px;vertical-align:middle}.pika-single .pika-table td.is-disabled .pika-button{opacity:.5;pointer-events:none}.pika-single .pika-table td.is-today .pika-button{background:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)}.pika-single .pika-table td.is-selected .pika-button{background:var(--ht-accent-color,#1a42e8);color:var(--ht-primary-button-foreground-color,#fff)}.pika-single .pika-table td.pika-week{text-align:center;width:12.5%}.pika-single .pika-table .pika-button{aspect-ratio:1/1;background:transparent;border:none;border-radius:var(--ht-button-border-radius);color:var(--ht-foreground-color);cursor:pointer;font-size:inherit;margin:0;padding:10px;width:100%}.pika-single .pika-table .pika-button:hover{background:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)}[dir=rtl].htDatepickerHolder .pika-single .pika-next{margin-left:0;margin-right:auto;transform:rotate(180deg)}[dir=rtl].htDatepickerHolder .pika-single .pika-prev{margin-left:auto;margin-right:0;transform:rotate(180deg)}.handsontableEditor{position:absolute}.handsontableEditor .ht-multi-select-editor{background:var(--ht-background-color);border:var(--ht-menu-border-width) solid var(--ht-menu-border-color);border-radius:0 0 var(--ht-menu-border-radius) var(--ht-menu-border-radius);box-shadow:var(--ht-menu-shadow-x,0) var(--ht-menu-shadow-y,0) var(--ht-menu-shadow-blur,8px) color-mix(in srgb,var(--ht-menu-shadow-color,#000) var(--ht-menu-shadow-opacity,100%),transparent);min-width:120px;overflow-y:auto;padding:var(--ht-menu-vertical-padding) var(--ht-menu-horizontal-padding);width:max-content}.handsontableEditor .ht-multi-select-editor .ht-multi-select-editor-search-input-wrapper{align-items:center;align-self:stretch;display:flex;gap:var(--ht-gap-size);padding:var(--ht-menu-item-vertical-padding) var(--ht-menu-item-horizontal-padding);position:relative}.handsontableEditor .ht-multi-select-editor .ht-multi-select-editor-search-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;height:16px;left:calc(var(--ht-menu-item-horizontal-padding) + 10px);opacity:.5;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%);width:16px;z-index:1}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input{background-color:var(--ht-input-background-color);border:1px solid var(--ht-input-border-color);border-radius:var(--ht-input-border-radius);box-sizing:border-box;color:var(--ht-input-foreground-color);font-size:var(--ht-font-size);line-height:var(--ht-line-height);padding:var(--ht-input-vertical-padding) var(--ht-menu-item-horizontal-padding) var(--ht-input-vertical-padding) 32px;transition:var(--ht-table-transition) all ease-in-out;width:100%}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input:hover{background-color:var(--ht-input-hover-background-color);border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color)}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input:disabled{background-color:var(--ht-input-disabled-background-color);border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color)}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input:focus{background-color:var(--ht-input-focus-background-color);border-color:var(--ht-input-focus-border-color);box-shadow:none;color:var(--ht-input-focus-foreground-color);outline:none;outline-offset:0}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input::placeholder{color:var(--ht-foreground-color);opacity:.6}.handsontableEditor .ht-multi-select-editor .ht-multi-select-editor-separator{background-color:var(--ht-menu-border-color);height:1px;margin:var(--ht-menu-vertical-padding) 0 var(--ht-menu-vertical-padding) 0;padding:0;width:100%}.handsontableEditor .ht-multi-select-editor ul{align-items:flex-start;display:flex;flex-direction:column;list-style:none;margin:0;padding:var(--ht-gap-size) var(--ht-menu-horizontal-padding);width:100%}.handsontableEditor .ht-multi-select-editor ul li{align-items:center;align-self:stretch;background:var(--ht-background-color);cursor:pointer;display:flex;padding:var(--ht-menu-item-vertical-padding) var(--ht-menu-item-horizontal-padding);user-select:none}.handsontableEditor .ht-multi-select-editor ul li *{cursor:pointer}.handsontableEditor .ht-multi-select-editor ul li.ht-multi-select-editor-item-selected{background:color-mix(in srgb,var(--ht-menu-item-active-color) var(--ht-menu-item-active-color-opacity,100%),transparent)}.handsontableEditor .ht-multi-select-editor ul li div{align-items:center;display:flex;flex:1 0 0}.handsontableEditor .ht-multi-select-editor ul li div input{appearance:none;display:flex;height:var(--ht-checkbox-size);margin:0;padding:0;position:relative;width:var(--ht-checkbox-size)}.handsontableEditor .ht-multi-select-editor ul li div input:after{content:"";display:block;left:0;position:absolute;top:0}.handsontableEditor .ht-multi-select-editor ul li div input:before{background:var(--ht-checkbox-background-color);background-position:50%;background-repeat:no-repeat;border:1px solid var(--ht-checkbox-border-color);border-radius:var(--ht-checkbox-border-radius);box-sizing:border-box;content:"";display:block;height:var(--ht-checkbox-size);left:0;position:absolute;top:0;width:var(--ht-checkbox-size)}.handsontableEditor .ht-multi-select-editor ul li div input:checked:before{background:var(--ht-checkbox-checked-background-color);border-color:var(--ht-checkbox-checked-border-color)}.handsontableEditor .ht-multi-select-editor ul li div input:checked:after{background-color:currentColor;color:var(--ht-checkbox-checked-icon-color)}.handsontableEditor .ht-multi-select-editor ul li div input:focus{outline:none}.handsontableEditor .ht-multi-select-editor ul li div label{color:var(--ht-foreground-color);font-size:var(--ht-font-size);font-style:normal;font-weight:400;letter-spacing:var(--ht-letter-spacing);line-height:var(--ht-line-height);overflow:hidden;padding:0 0 0 calc(var(--ht-gap-size)*2);text-overflow:ellipsis;width:100%}.handsontableEditor .ht-multi-select-editor ul li:hover{background:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)}.handsontableEditor .ht-multi-select-editor ul li:has(input:focus){background:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)}.handsontable .htUISelectCaption{background-color:var(--ht-input-background-color);border:var(--ht-input-border-width) solid var(--ht-input-border-color);border-radius:var(--ht-input-border-radius);box-sizing:border-box;color:var(--ht-input-foreground-color);cursor:pointer;font-family:inherit;font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0;outline:none!important;overflow:hidden;padding:var(--ht-input-vertical-padding) var(--ht-input-horizontal-padding);padding-inline-end:calc(var(--ht-input-horizontal-padding) + var(--ht-icon-size));text-overflow:ellipsis;transition:var(--ht-table-transition) all ease-in-out;white-space:nowrap;width:100%}.handsontable .htUISelectCaption:after{content:"";display:block;position:absolute;right:calc(var(--ht-input-horizontal-padding) - var(--ht-icon-size)/4);top:50%;transform:translateY(-50%)}.handsontable .htUISelectCaption:hover{background-color:var(--ht-input-hover-background-color);border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color)}.handsontable .htUISelectCaption:disabled{background-color:var(--ht-input-disabled-background-color);border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color)}.handsontable .htUISelectCaption:focus{background-color:var(--ht-input-focus-background-color);border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color)}.handsontable .htUISelect{cursor:pointer;outline:none!important;position:relative}.handsontable .htUISelect:focus .htUISelectCaption{background-color:var(--ht-input-focus-background-color);border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color)}[dir=rtl].handsontable .htUISelectCaption:after{left:calc(var(--ht-input-horizontal-padding) - var(--ht-icon-size)/4);right:auto}.handsontable .htFiltersMenuCondition .htUIInput input,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input{background-color:var(--ht-input-background-color);border:var(--ht-input-border-width) solid var(--ht-input-border-color);border-radius:var(--ht-input-border-radius);box-sizing:border-box;color:var(--ht-input-foreground-color);cursor:pointer;font-family:inherit;font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);outline:none!important;padding:var(--ht-input-vertical-padding) var(--ht-input-horizontal-padding);transition:var(--ht-table-transition) all ease-in-out;width:100%}.handsontable .htFiltersMenuCondition .htUIInput input:hover,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input:hover{background-color:var(--ht-input-hover-background-color);border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color)}.handsontable .htFiltersMenuCondition .htUIInput input:disabled,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input:disabled{background-color:var(--ht-input-disabled-background-color);border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color)}.handsontable .htFiltersMenuCondition .htUIInput input:focus,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input:focus{background-color:var(--ht-input-focus-background-color);border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color)}.handsontable .htUIInput{outline:none!important;padding:0;position:relative;text-align:center}.handsontable .htUIInputIcon{position:absolute}.handsontable .ht-button,.handsontable .htUIInput.htUIButton input{border-radius:var(--ht-button-border-radius);border-style:solid;border-width:1px;box-sizing:border-box;cursor:pointer;font-family:inherit;font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);min-width:64px;outline:none!important;padding:var(--ht-button-vertical-padding) var(--ht-button-horizontal-padding);transition:var(--ht-table-transition) all ease-in-out}.handsontable .ht-button--secondary,.handsontable .htUIInput.htUIButtonCancel input{background-color:var(--ht-secondary-button-background-color);border-color:var(--ht-secondary-button-border-color);color:var(--ht-secondary-button-foreground-color)}.handsontable .ht-button--secondary:hover,.handsontable .htUIInput.htUIButtonCancel input:hover{background-color:var(--ht-secondary-button-hover-background-color);border-color:var(--ht-secondary-button-hover-border-color);color:var(--ht-secondary-button-hover-foreground-color)}.handsontable .ht-button--secondary:disabled,.handsontable .htUIInput.htUIButtonCancel input:disabled{background-color:var(--ht-secondary-button-disabled-background-color);border-color:var(--ht-secondary-button-disabled-border-color);color:var(--ht-secondary-button-disabled-foreground-color)}.handsontable .ht-button--secondary:focus,.handsontable .htUIInput.htUIButtonCancel input:focus{background-color:var(--ht-secondary-button-focus-background-color);border-color:var(--ht-secondary-button-focus-border-color);box-shadow:0 0 0 1px var(--ht-accent-color);color:var(--ht-secondary-button-focus-foreground-color)}.ht-button--primary,.htUIInput.htUIButtonOK input{background-color:var(--ht-primary-button-background-color);border-color:var(--ht-primary-button-border-color);color:var(--ht-primary-button-foreground-color)}.ht-button--primary:hover,.htUIInput.htUIButtonOK input:hover{background-color:var(--ht-primary-button-hover-background-color);border-color:var(--ht-primary-button-hover-border-color);color:var(--ht-primary-button-hover-foreground-color)}.ht-button--primary:disabled,.htUIInput.htUIButtonOK input:disabled{background-color:var(--ht-primary-button-disabled-background-color);border-color:var(--ht-primary-button-disabled-border-color);color:var(--ht-primary-button-disabled-foreground-color)}.ht-button--primary:focus,.htUIInput.htUIButtonOK input:focus{background-color:var(--ht-primary-button-focus-background-color);border-color:var(--ht-primary-button-focus-border-color);box-shadow:0 0 0 1px var(--ht-accent-color);color:var(--ht-primary-button-focus-foreground-color)}.handsontable .htUIRadio{align-items:center;cursor:pointer;display:inline-flex;gap:var(--ht-gap-size);margin:0;padding:var(--ht-gap-size) calc(var(--ht-gap-size)*2);padding-bottom:0;position:relative}.handsontable .htUIRadio:first-child{padding-inline-start:0}.handsontable .htUIRadio>input[type=radio]{appearance:none;border-radius:calc(var(--ht-radio-size)*.5);cursor:pointer;height:var(--ht-radio-size);margin:0;outline:none;position:relative;width:var(--ht-radio-size)}.handsontable .htUIRadio>input[type=radio]:before{background-color:var(--ht-radio-background-color);border:1px solid var(--ht-radio-border-color);border-radius:calc(var(--ht-radio-size)*.5);content:"";display:block;inset:0;position:absolute}.handsontable .htUIRadio>input[type=radio]:after{color:var(--ht-radio-icon-color);content:"";display:block;position:absolute}.handsontable .htUIRadio>input[type=radio]:checked:before{background-color:var(--ht-radio-checked-background-color);border-color:var(--ht-radio-checked-border-color)}.handsontable .htUIRadio>input[type=radio]:checked:after{color:var(--ht-radio-checked-icon-color)}.handsontable .htUIRadio>input[type=radio]:checked:disabled{cursor:auto}.handsontable .htUIRadio>input[type=radio]:checked:disabled:before{background-color:var(--ht-radio-checked-disabled-background-color);border-color:var(--ht-radio-checked-disabled-border-color)}.handsontable .htUIRadio>input[type=radio]:checked:disabled:after{color:var(--ht-radio-checked-disabled-icon-color)}.handsontable .htUIRadio>input[type=radio]:checked:focus:before{background-color:var(--ht-radio-checked-focus-background-color);border-color:var(--ht-radio-checked-focus-border-color)}.handsontable .htUIRadio>input[type=radio]:checked:focus:after{color:var(--ht-radio-checked-focus-icon-color)}.handsontable .htUIRadio>input[type=radio]:disabled{cursor:auto}.handsontable .htUIRadio>input[type=radio]:disabled:before{background-color:var(--ht-radio-disabled-background-color);border-color:var(--ht-radio-disabled-border-color)}.handsontable .htUIRadio>input[type=radio]:disabled:after{color:var(--ht-radio-disabled-icon-color)}.handsontable .htUIRadio>input[type=radio]:focus:before{background-color:var(--ht-radio-focus-background-color);border-color:var(--ht-radio-focus-border-color);outline:1px solid var(--ht-radio-focus-ring-color)}.handsontable .htUIRadio>input[type=radio]:focus:after{color:var(--ht-radio-focus-icon-color)}.handsontable .htUIRadio label{color:inherit;cursor:pointer;vertical-align:middle}.handsontable .htUIRadio label:before{content:"";display:block;inset:0;position:absolute}.handsontable .collapsibleIndicator{margin-inline-end:1px;margin-inline-start:var(--ht-gap-size);top:calc((var(--ht-line-height) - var(--ht-icon-size))/2)}.handsontable .collapsibleIndicator,.handsontable .ht_nestingButton{border-radius:var(--ht-collapse-button-border-radius);box-sizing:border-box;cursor:pointer;float:right;font-size:0;height:var(--ht-icon-size);overflow:hidden;position:relative;text-indent:-100px;width:var(--ht-icon-size)}.handsontable .collapsibleIndicator:before,.handsontable .ht_nestingButton:before{content:"";display:block;left:0;position:absolute;top:0;transition:var(--ht-table-transition) all ease-in-out}.handsontable .collapsibleIndicator.expanded,.handsontable .collapsibleIndicator.ht_nestingCollapse,.handsontable .ht_nestingButton.expanded,.handsontable .ht_nestingButton.ht_nestingCollapse{background-color:var(--ht-collapse-button-open-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-open-border-color)}.handsontable .collapsibleIndicator.expanded:before,.handsontable .collapsibleIndicator.ht_nestingCollapse:before,.handsontable .ht_nestingButton.expanded:before,.handsontable .ht_nestingButton.ht_nestingCollapse:before{color:var(--ht-collapse-button-open-icon-color)}.handsontable .collapsibleIndicator.expanded:hover,.handsontable .collapsibleIndicator.ht_nestingCollapse:hover,.handsontable .ht_nestingButton.expanded:hover,.handsontable .ht_nestingButton.ht_nestingCollapse:hover{background-color:var(--ht-collapse-button-open-hover-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-open-hover-border-color)}.handsontable .collapsibleIndicator.expanded:hover:before,.handsontable .collapsibleIndicator.ht_nestingCollapse:hover:before,.handsontable .ht_nestingButton.expanded:hover:before,.handsontable .ht_nestingButton.ht_nestingCollapse:hover:before{color:var(--ht-collapse-button-open-hover-icon-color)}.handsontable .collapsibleIndicator.collapsed,.handsontable .collapsibleIndicator.ht_nestingExpand,.handsontable .ht_nestingButton.collapsed,.handsontable .ht_nestingButton.ht_nestingExpand{background-color:var(--ht-collapse-button-close-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-close-border-color)}.handsontable .collapsibleIndicator.collapsed:before,.handsontable .collapsibleIndicator.ht_nestingExpand:before,.handsontable .ht_nestingButton.collapsed:before,.handsontable .ht_nestingButton.ht_nestingExpand:before{color:var(--ht-collapse-button-close-icon-color)}.handsontable .collapsibleIndicator.collapsed:hover,.handsontable .collapsibleIndicator.ht_nestingExpand:hover,.handsontable .ht_nestingButton.collapsed:hover,.handsontable .ht_nestingButton.ht_nestingExpand:hover{background-color:var(--ht-collapse-button-close-hover-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-close-hover-border-color)}.handsontable .collapsibleIndicator.collapsed:hover:before,.handsontable .collapsibleIndicator.ht_nestingExpand:hover:before,.handsontable .ht_nestingButton.collapsed:hover:before,.handsontable .ht_nestingButton.ht_nestingExpand:hover:before{color:var(--ht-collapse-button-close-hover-icon-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.collapsed:before,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingExpand:before,.handsontable th.ht__active_highlight .ht_nestingButton.collapsed:before,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingExpand:before{color:var(--ht-collapse-button-close-icon-active-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.collapsed:hover:before,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingExpand:hover:before,.handsontable th.ht__active_highlight .ht_nestingButton.collapsed:hover:before,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingExpand:hover:before{color:var(--ht-collapse-button-close-hover-icon-active-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.expanded:before,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingCollapse:before,.handsontable th.ht__active_highlight .ht_nestingButton.expanded:before,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingCollapse:before{color:var(--ht-collapse-button-open-icon-active-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.expanded:hover:before,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingCollapse:hover:before,.handsontable th.ht__active_highlight .ht_nestingButton.expanded:hover:before,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingCollapse:hover:before{color:var(--ht-collapse-button-open-hover-icon-active-color)}[dir=rtl].handsontable .collapsibleIndicator,[dir=rtl].handsontable .ht_nestingButton{float:left}.handsontable thead th.hiddenHeader:not(:first-of-type){display:none}.handsontable thead th.hiddenHeaderText .colHeader{opacity:0}.handsontable th.ht_nestingLevels>.relative{align-items:center;display:flex;gap:5px}.handsontable th.ht_nestingLevels span:last-child{padding-left:calc(var(--ht-icon-size) + 5px)}.handsontable th.ht_nestingLevels span.ht_nestingLevel{display:inline-block}.handsontable th.ht_nestingLevels span.ht_nestingLevel_empty{display:inline-block;height:1px;order:-2;position:relative;width:5px}.handsontable th.ht_nestingLevels .ht_nestingButton{cursor:pointer;order:-1;position:relative}.handsontable th.afterHiddenColumn,.handsontable th.beforeHiddenColumn{position:relative}.handsontable th.afterHiddenColumn:after,.handsontable th.afterHiddenColumn:before,.handsontable th.beforeHiddenColumn:after,.handsontable th.beforeHiddenColumn:before{color:var(--ht-hidden-indicator-color);height:10px!important;position:absolute;top:50%;transform:translateY(-50%);width:10px!important}.handsontable th.beforeHiddenColumn:after{content:"";display:block;right:-2px}.handsontable th.afterHiddenColumn:before{content:"";display:block;left:-2px}.handsontable th.ht__active_highlight.afterHiddenColumn:after,.handsontable th.ht__active_highlight.afterHiddenColumn:before,.handsontable th.ht__active_highlight.beforeHiddenColumn:after,.handsontable th.ht__active_highlight.beforeHiddenColumn:before{color:var(--ht-icon-button-active-icon-color,var(--ht-icon-active-button-icon-color))}[dir=rtl].handsontable th.beforeHiddenColumn:after{left:-2px;right:auto;transform:translateY(-50%) rotate(180deg)}[dir=rtl].handsontable th.afterHiddenColumn:before{left:auto;right:-2px;transform:translateY(-50%) rotate(180deg)}.handsontable th.afterHiddenRow,.handsontable th.beforeHiddenRow{position:relative}.handsontable th.afterHiddenRow:after,.handsontable th.afterHiddenRow:before,.handsontable th.beforeHiddenRow:after,.handsontable th.beforeHiddenRow:before{color:var(--ht-hidden-indicator-color);height:10px!important;left:50%;position:absolute;transform:translateX(-50%);width:10px!important}.handsontable th.beforeHiddenRow:after{bottom:-2px;content:"";display:block}.handsontable th.afterHiddenRow:before{content:"";display:block;top:-2px}.handsontable th.ht__active_highlight.afterHiddenRow:after,.handsontable th.ht__active_highlight.afterHiddenRow:before,.handsontable th.ht__active_highlight.beforeHiddenRow:after,.handsontable th.ht__active_highlight.beforeHiddenRow:before{color:var(--ht-icon-button-active-icon-color,var(--ht-icon-active-button-icon-color))}.handsontable .changeType{background-color:var(--ht-icon-button-background-color);border:none;border-radius:var(--ht-icon-button-border-radius);box-shadow:0 0 0 1px var(--ht-icon-button-border-color);box-sizing:border-box;color:inherit;float:right;height:var(--ht-icon-size);margin:0;margin-inline-end:1px;margin-inline-start:var(--ht-gap-size);order:1;padding:0;position:relative;top:calc((var(--ht-line-height) - var(--ht-icon-size))/2);width:var(--ht-icon-size);z-index:1}.handsontable .changeType:before{color:var(--ht-icon-button-icon-color);content:"";display:block;left:0;position:absolute;top:0}.handsontable .changeType:hover{background-color:var(--ht-icon-button-hover-background-color);box-shadow:0 0 0 1px var(--ht-icon-button-hover-border-color);cursor:pointer}.handsontable .changeType:hover:before{color:var(--ht-icon-button-hover-icon-color)}.handsontable .ht__active_highlight .changeType{background-color:var(--ht-icon-button-active-background-color,var(--ht-icon-active-button-background-color));box-shadow:0 0 0 1px var(--ht-icon-button-active-border-color,var(--ht-icon-active-button-border-color))}.handsontable .ht__active_highlight .changeType:before{color:var(--ht-icon-button-active-icon-color,var(--ht-icon-active-button-icon-color))}.handsontable .ht__active_highlight .changeType:hover{background-color:var(--ht-icon-button-active-hover-background-color,var(--ht-icon-active-button-hover-background-color));box-shadow:0 0 0 1px var(--ht-icon-button-active-hover-border-color,var(--ht-icon-active-button-hover-border-color))}.handsontable .ht__active_highlight .changeType:hover:before{color:var(--ht-icon-button-active-hover-icon-color,var(--ht-icon-active-button-hover-icon-color))}.handsontable th.htFiltersActive{background-color:var(--ht-header-filter-background-color)}.handsontable th.htFiltersActive.ht__active_highlight{background-color:color-mix(in srgb,var(--ht-header-active-background-color),var(--ht-header-filter-background-color) 20%)}.handsontable th.htFiltersActive.ht__active_highlight .changeType:after{background-color:var(--ht-header-active-foreground-color)}.handsontable.htContextMenu>.ht_master,.handsontable.htDropdownMenu>.ht_master,.handsontable.htFiltersConditionsMenu>.ht_master{background-color:var(--ht-background-color,#fff);border:var(--ht-menu-border-width,1px) solid var(--ht-menu-border-color,#e5e5e9);border-radius:var(--ht-menu-border-radius);box-shadow:var(--ht-menu-shadow-x,0) var(--ht-menu-shadow-y,0) var(--ht-menu-shadow-blur,8px) color-mix(in srgb,var(--ht-menu-shadow-color,#000) var(--ht-menu-shadow-opacity,100%),transparent);overflow:hidden;padding:var(--ht-menu-vertical-padding,8px) var(--ht-menu-horizontal-padding,0)}.handsontable.htContextMenu:not(.htGhostTable),.handsontable.htDropdownMenu:not(.htGhostTable),.handsontable.htFiltersConditionsMenu:not(.htGhostTable){display:none;position:absolute;z-index:1060}.handsontable.htContextMenu .ht_clone_bottom,.handsontable.htContextMenu .ht_clone_bottom_inline_start_corner,.handsontable.htContextMenu .ht_clone_inline_start,.handsontable.htContextMenu .ht_clone_top,.handsontable.htContextMenu .ht_clone_top_inline_start_corner,.handsontable.htDropdownMenu .ht_clone_bottom,.handsontable.htDropdownMenu .ht_clone_bottom_inline_start_corner,.handsontable.htDropdownMenu .ht_clone_inline_start,.handsontable.htDropdownMenu .ht_clone_top,.handsontable.htDropdownMenu .ht_clone_top_inline_start_corner,.handsontable.htFiltersConditionsMenu .ht_clone_bottom,.handsontable.htFiltersConditionsMenu .ht_clone_bottom_inline_start_corner,.handsontable.htFiltersConditionsMenu .ht_clone_inline_start,.handsontable.htFiltersConditionsMenu .ht_clone_top,.handsontable.htFiltersConditionsMenu .ht_clone_top_inline_start_corner{display:none}.handsontable.htContextMenu table.htCore,.handsontable.htDropdownMenu table.htCore,.handsontable.htFiltersConditionsMenu table.htCore{overflow:hidden}.handsontable.htContextMenu .htCustomMenuRenderer .table.htCore,.handsontable.htDropdownMenu .htCustomMenuRenderer .table.htCore,.handsontable.htFiltersConditionsMenu .htCustomMenuRenderer .table.htCore{box-shadow:none}.handsontable.htContextMenu.handsontable:focus,.handsontable.htDropdownMenu.handsontable:focus,.handsontable.htFiltersConditionsMenu.handsontable:focus{outline:none}.handsontable.htContextMenu .wtBorder,.handsontable.htDropdownMenu .wtBorder,.handsontable.htFiltersConditionsMenu .wtBorder{visibility:hidden}.handsontable.htContextMenu tbody tr:first-of-type td:first-child,.handsontable.htContextMenu tbody tr:first-of-type th:first-child,.handsontable.htDropdownMenu tbody tr:first-of-type td:first-child,.handsontable.htDropdownMenu tbody tr:first-of-type th:first-child,.handsontable.htFiltersConditionsMenu tbody tr:first-of-type td:first-child,.handsontable.htFiltersConditionsMenu tbody tr:first-of-type th:first-child{height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px)}.handsontable.htContextMenu table tbody tr td,.handsontable.htDropdownMenu table tbody tr td,.handsontable.htFiltersConditionsMenu table tbody tr td{background:var(--ht-background-color,#fff);border-width:0;cursor:pointer;overflow:hidden;padding:var(--ht-menu-item-vertical-padding,4px) var(--ht-menu-item-horizontal-padding,8px);position:relative;text-overflow:ellipsis;transition:var(--ht-table-transition) background ease-in-out;white-space:nowrap}.handsontable.htContextMenu table tbody tr td:first-child,.handsontable.htDropdownMenu table tbody tr td:first-child,.handsontable.htFiltersConditionsMenu table tbody tr td:first-child{border-bottom-width:0;border-inline-end-width:0;border-inline-start-width:0;border-top-width:0}.handsontable.htContextMenu table tbody tr td.htDimmed,.handsontable.htDropdownMenu table tbody tr td.htDimmed,.handsontable.htFiltersConditionsMenu table tbody tr td.htDimmed{background-color:inherit!important;color:inherit!important;font-style:normal}.handsontable.htContextMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled):hover,.handsontable.htDropdownMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled):hover,.handsontable.htFiltersConditionsMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled):hover{background:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)!important;cursor:pointer}.handsontable.htContextMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]),.handsontable.htDropdownMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]),.handsontable.htFiltersConditionsMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]){box-shadow:inset 0 0 0 1px var(--ht-accent-color)}.handsontable.htContextMenu table tbody tr td.htSubmenu .htItemWrapper,.handsontable.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper,.handsontable.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper{margin-inline-end:calc(var(--ht-gap-size, 4px)*2 + var(--ht-icon-size))}.handsontable.htContextMenu table tbody tr td.htSubmenu .htItemWrapper:after,.handsontable.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper:after,.handsontable.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper:after{content:"";display:block;position:absolute;right:calc(var(--ht-menu-item-horizontal-padding) + var(--ht-gap-size)*2);top:50%;transform:translateY(-50%)}.handsontable.htContextMenu table tbody tr td.htSeparator,.handsontable.htDropdownMenu table tbody tr td.htSeparator,.handsontable.htFiltersConditionsMenu table tbody tr td.htSeparator{border-top:1px solid var(--ht-border-color);cursor:default;height:0;padding:0}.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled{color:var(--ht-disabled-color);cursor:default}.handsontable.htContextMenu table tbody tr td.htDisabled:hover,.handsontable.htDropdownMenu table tbody tr td.htDisabled:hover,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled:hover{background:var(--ht-background-color);color:var(--ht-disabled-color)}.handsontable.htContextMenu table tbody tr td.htHidden,.handsontable.htDropdownMenu table tbody tr td.htHidden,.handsontable.htFiltersConditionsMenu table tbody tr td.htHidden{display:none}.handsontable.htContextMenu table tbody tr td:has(.htItemWrapper .selected),.handsontable.htDropdownMenu table tbody tr td:has(.htItemWrapper .selected),.handsontable.htFiltersConditionsMenu table tbody tr td:has(.htItemWrapper .selected){background-color:color-mix(in srgb,var(--ht-menu-item-active-color) var(--ht-menu-item-active-color-opacity,100%),transparent)}.handsontable.htContextMenu table tbody tr td .htItemWrapper,.handsontable.htDropdownMenu table tbody tr td .htItemWrapper,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper{margin-inline:calc(var(--ht-gap-size, 4px)*2)}.handsontable.htContextMenu table tbody tr td .htItemWrapper:before,.handsontable.htDropdownMenu table tbody tr td .htItemWrapper:before,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper:before{margin-right:12px;vertical-align:text-bottom}.handsontable.htContextMenu table tbody tr td .htItemWrapper span.selected,.handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.selected,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected{font-size:0;inset:0}.handsontable.htContextMenu table tbody tr td .htItemWrapper span.selected:after,.handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.selected:after,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected:after{color:var(--ht-accent-color);content:"";display:block;position:absolute;right:calc(var(--ht-menu-item-horizontal-padding) + var(--ht-gap-size)*2);top:50%;transform:translateY(-50%)}.handsontable.htContextMenu table tbody tr td div span.selected,.handsontable.htDropdownMenu table tbody tr td div span.selected,.handsontable.htFiltersConditionsMenu table tbody tr td div span.selected{inset-inline-end:0;position:absolute}.handsontable.htContextMenu table tbody tr td .htUIButton,.handsontable.htDropdownMenu table tbody tr td .htUIButton,.handsontable.htFiltersConditionsMenu table tbody tr td .htUIButton{width:calc(50% - var(--ht-gap-size))}.handsontable.htContextMenu table tbody tr td .htUIButton input,.handsontable.htDropdownMenu table tbody tr td .htUIButton input,.handsontable.htFiltersConditionsMenu table tbody tr td .htUIButton input{width:100%}.handsontable .htUIClearAll a,.handsontable .htUISelectAll a{display:inline-block;padding:var(--ht-gap-size);text-decoration:none}.handsontable .htUIMultipleSelect .ht_master .wtHolder{background:transparent;border-radius:0!important;overflow-y:scroll!important}.handsontable .htUIMultipleSelect .ht_master .wtHolder .htCore{box-shadow:none}[dir=rtl].handsontable.htContextMenu table tbody tr td.htSubmenu .htItemWrapper:after,[dir=rtl].handsontable.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper:after,[dir=rtl].handsontable.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper:after{left:calc(var(--ht-gap-size)*4);right:auto;transform:translateY(-50%) rotate(180deg)}[dir=rtl].handsontable.htContextMenu table tbody tr td .htItemWrapper span.selected:after,[dir=rtl].handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.selected:after,[dir=rtl].handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected:after{left:calc(var(--ht-gap-size)*4);right:auto}[dir=rtl].handsontable .changeType{float:left}.handsontable.htFiltersConditionsMenu:not(.htGhostTable){z-index:1070}.handsontable .ht_master table td.htCustomMenuRenderer{cursor:auto}.handsontable .ht_master table td.htCustomMenuRenderer.htFiltersMenuActionBar{padding-top:calc(var(--ht-menu-item-vertical-padding, 4px)*2)}.handsontable .htFiltersMenuLabel{font-size:var(--ht-font-size-small);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height-small);margin-bottom:calc(var(--ht-gap-size, 2px)*2)}.handsontable .htFiltersMenuLabel:empty{display:none}.handsontable .htFiltersMenuCondition{padding-bottom:0!important;padding-top:calc(var(--ht-gap-size, 2px)*3)!important}.handsontable .htFiltersMenuCondition .border{border-bottom:1px solid var(--ht-border-color)!important}.handsontable .htFiltersMenuCondition .htUIInput{margin-top:calc(var(--ht-gap-size, 2px)*2)}.handsontable .htFiltersMenuValue{border-bottom:1px solid var(--ht-border-color)!important;padding-bottom:0!important;padding-top:calc(var(--ht-gap-size, 2px)*3)!important}.handsontable .htFiltersMenuOperators{padding-bottom:0!important;padding-top:calc(var(--ht-gap-size, 2px)*2)!important}.handsontable .htUISelectionControls{margin:0 calc(var(--ht-gap-size, 2px)*-1);padding-bottom:var(--ht-gap-size,2px)!important;padding-top:calc(var(--ht-gap-size, 2px)*2)!important}.handsontable .htUIMultipleSelectHot{--ht-cell-horizontal-padding:calc(var(--ht-menu-item-horizontal-padding, 2px) + var(--ht-gap-size, 2px)*2);margin:0 calc((var(--ht-menu-item-horizontal-padding, 2px) + var(--ht-gap-size, 2px)*2)*-1);overflow:initial!important;width:calc(100% + var(--ht-menu-item-horizontal-padding, 2px)*2 + var(--ht-gap-size, 2px)*4)}.handsontable .htUIMultipleSelectHot:before{background-color:var(--ht-border-color);content:"";display:block;height:1px;left:0;position:absolute;top:-1px;width:100%}.handsontable .htUIMultipleSelectHot .wtHolder{box-sizing:border-box;overflow-x:hidden;padding:0}.handsontable .htUIMultipleSelectHot .wtHolder .wtSpreader{padding:calc(var(--ht-gap-size)*2) 0}.handsontable .htUIMultipleSelectHot .wtHolder td{height:auto!important;padding:4px var(--ht-cell-horizontal-padding)}.handsontable .htUIClearAll,.handsontable .htUISelectAll{display:inline-block;margin-bottom:var(--ht-gap-size,4px);margin-right:var(--ht-gap-size,4px)}.handsontable .htUIClearAll a,.handsontable .htUISelectAll a{border-radius:var(--ht-button-border-radius);color:var(--ht-link-color);font-size:var(--ht-font-size);line-height:var(--ht-line-height)}.handsontable .htUIClearAll a:hover,.handsontable .htUISelectAll a:hover{color:var(--ht-link-hover-color)}.handsontable .htUIClearAll a:focus,.handsontable .htUISelectAll a:focus{outline:1px solid var(--ht-link-hover-color)}.handsontable .htUIMultipleSelect .ht_master .wtHolder{overflow:auto}.handsontable .htUIMultipleSelect .ht_master .wtHolder .htCore,.handsontable .htUIMultipleSelect .ht_master .wtHolder .wtHider,.handsontable .htUIMultipleSelect .ht_master .wtHolder td,.handsontable .htUIMultipleSelect .ht_master .wtHolder tr{background:none}.handsontable .htUIInput.htUIButton{cursor:pointer;display:inline-block}.handsontable .htUIInput.htUIButtonOK{margin-inline-end:calc(var(--ht-gap-size, 2px)*2);margin-inline-start:0}.handsontable .htCommentCell{position:relative}.handsontable .htCommentCell:after{border-inline-end:none;border-inline-start:var(--ht-comments-indicator-size,4px) solid transparent;border-top:var(--ht-comments-indicator-size,4px) solid var(--ht-comments-indicator-color,#1a42e8);content:"";display:block;inset-inline-end:0;inset-inline-start:unset;position:absolute;top:0}.htCommentsContainer .htComments{display:none;position:absolute;z-index:1059}.htCommentsContainer .htCommentTextArea{-webkit-appearance:none;background-color:var(--ht-comments-textarea-background-color,#fff);border:var(--ht-comments-textarea-border-width,1px) solid var(--ht-comments-textarea-border-color,transparent);border-inline-start:var(--ht-comments-textarea-border-width,1px) solid var(--ht-comments-textarea-border-color,#1a42e8);box-shadow:var(--ht-menu-shadow-x,0) var(--ht-menu-shadow-y,0) var(--ht-menu-shadow-blur,8px) color-mix(in srgb,var(--ht-menu-shadow-color,#000) var(--ht-menu-shadow-opacity,100%),transparent);box-sizing:border-box;color:var(--ht-comments-textarea-foreground-color);font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);height:88px;line-height:var(--ht-line-height);margin:0 -1px;outline:0!important;padding:var(--ht-comments-textarea-vertical-padding) var(--ht-comments-textarea-horizontal-padding);width:240px}.htCommentsContainer .htCommentTextArea:focus{background-color:var(--ht-comments-textarea-focus-background-color,#fff);border:var(--ht-comments-textarea-focus-border-width,1px) solid var(--ht-comments-textarea-focus-border-color,#1a42e8);color:var(--ht-comments-textarea-focus-foreground-color)}.htBorders .wtBorder.ht-border-style-dashed-vertical{background-image:repeating-linear-gradient(to bottom,var(--ht-custom-border-color) 0 5px,transparent 0 10px)}.htBorders .wtBorder.ht-border-style-dashed-horizontal{background-image:repeating-linear-gradient(to right,var(--ht-custom-border-color) 0 5px,transparent 0 10px)}.htBorders .wtBorder.ht-border-style-dotted-horizontal{background-repeat:repeat-x;background-size:calc(var(--ht-custom-border-size)*2) var(--ht-custom-border-size)}.htBorders .wtBorder.ht-border-style-dotted-horizontal,.htBorders .wtBorder.ht-border-style-dotted-vertical{background-image:radial-gradient(circle,var(--ht-custom-border-color) calc(var(--ht-custom-border-size)/2),transparent 0)}.htBorders .wtBorder.ht-border-style-dotted-vertical{background-repeat:repeat-y;background-size:var(--ht-custom-border-size) calc(var(--ht-custom-border-size)*2)}.handsontable .columnSorting:not(.indicatorDisabled){position:relative}.handsontable .columnSorting:not(.indicatorDisabled).sortAction{min-width:calc(var(--ht-icon-size, 16px) + 8px)}.handsontable .columnSorting:not(.indicatorDisabled).sortAction.ascending,.handsontable .columnSorting:not(.indicatorDisabled).sortAction.descending{max-width:calc(100% - var(--ht-icon-size, 16px)*2 - var(--ht-gap-size, 4px) - 3px)!important;padding-inline-end:calc(var(--ht-icon-size, 16px) + 2px)}.handsontable .columnSorting:not(.indicatorDisabled).sortAction:hover{cursor:pointer;text-decoration:none}.handsontable .columnSorting:not(.indicatorDisabled).sortAction:before{content:"";display:block;position:absolute;right:2px;text-align:right;top:50%;transform:translateY(-50%);width:var(--ht-icon-size,16px)}.handsontable .htRight .columnSorting.sortAction.ascending,.handsontable .htRight .columnSorting.sortAction.descending{padding-inline-end:0;padding-inline-start:calc(var(--ht-icon-size, 16px) + 2px)}.handsontable .htRight .columnSorting.sortAction:before,[dir=rtl] .handsontable .columnSorting.sortAction:before{left:2px;right:auto;text-align:left}[dir=rtl] .handsontable .htRight .columnSorting.sortAction.ascending,[dir=rtl] .handsontable .htRight .columnSorting.sortAction.descending{padding-inline-end:calc(var(--ht-icon-size, 16px) + 2px);padding-inline-start:0}[dir=rtl] .handsontable .htLeft .columnSorting.sortAction.ascending,[dir=rtl] .handsontable .htLeft .columnSorting.sortAction.descending{padding-inline-end:0;padding-inline-start:calc(var(--ht-icon-size, 16px) + 2px)}[dir=rtl] .handsontable .htLeft .columnSorting.sortAction:before{left:auto;right:2px;text-align:right}.htGhostTable .htCore span.colHeader.columnSorting:not(.indicatorDisabled):before{content:"*";display:inline-block;padding-inline-end:calc(var(--ht-icon-size, 16px) + 2px);position:relative}.handsontable .colHeader.columnSorting:after{content:"";display:block;font-size:8px;margin-top:4px;position:absolute;right:0;text-align:right;top:50%;transform:translateY(-50%);width:8px}.handsontable .colHeader.columnSorting[class*=" sort-"]:after,.handsontable .colHeader.columnSorting[class^=sort-]:after{content:"+"}.handsontable .colHeader.columnSorting.sort-1:after{content:"1"}.handsontable .colHeader.columnSorting.sort-2:after{content:"2"}.handsontable .colHeader.columnSorting.sort-3:after{content:"3"}.handsontable .colHeader.columnSorting.sort-4:after{content:"4"}.handsontable .colHeader.columnSorting.sort-5:after{content:"5"}.handsontable .colHeader.columnSorting.sort-6:after{content:"6"}.handsontable .colHeader.columnSorting.sort-7:after{content:"7"}.handsontable .htRight .colHeader.columnSorting:after,[dir=rtl] .handsontable .colHeader.columnSorting:after{left:0;right:auto;text-align:left}[dir=rtl] .handsontable .htLeft .colHeader.columnSorting:after{left:auto;right:0;text-align:right}.htGhostTable th div button.changeType+span.colHeader.columnSorting:not(.indicatorDisabled){padding-right:var(--ht-gap-size)}.handsontable .htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_inline_start td:first-of-type,.handsontable .htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_top_inline_start_corner th:nth-child(2){border-left:0}.handsontable .ht_clone_top_inline_start_corner th.ht__active_highlight{box-shadow:none}.handsontable .manualColumnResizer{background:none;cursor:col-resize;margin:0;opacity:0;position:absolute;top:0;width:10px;z-index:210}.handsontable .manualColumnResizer:after,.handsontable .manualColumnResizer:before{background:var(--ht-resize-indicator-color);border-radius:2px;content:"";display:block;height:calc(100% - 12px);left:1px;margin-top:.5px;max-height:16px;position:absolute;top:50%;transform:translateY(-50%);width:2px}.handsontable .manualColumnResizer:after{left:auto;right:0}.handsontable .manualColumnResizer.active,.handsontable .manualColumnResizer:hover{opacity:1}.handsontable .manualColumnResizerGuide{border-inline-end:1px solid var(--ht-accent-color);border-inline-start:none;display:none;inset-inline-end:unset;margin-inline-end:unset;margin-inline-start:5px;position:absolute;top:0;width:0}.handsontable .manualColumnResizerGuide.active{display:block;z-index:209}.handsontable .manualRowResizer{background:none;cursor:row-resize;height:10px;left:0;margin:0;opacity:0;position:absolute;z-index:210}.handsontable .manualRowResizer:after,.handsontable .manualRowResizer:before{background:var(--ht-resize-indicator-color);border-radius:2px;content:"";display:block;height:2px;left:50%;max-width:16px;position:absolute;top:1px;transform:translateX(-50%);width:calc(100% - 12px)}.handsontable .manualRowResizer:after{bottom:0;top:auto}.handsontable .manualRowResizer.active,.handsontable .manualRowResizer:hover{opacity:1}.handsontable .manualRowResizerGuide{border-bottom:1px solid var(--ht-accent-color);border-top:none;bottom:0;display:none;height:0;left:0;margin-top:5px;position:absolute}.handsontable .manualRowResizerGuide.active{display:block;z-index:209}.handsontable tbody td[rowspan][class*=area][class*=highlight]:not([class*=fullySelectedMergedCell]):before{opacity:0}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-0]:before,.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-multiple]:before{opacity:.14}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-1]:before{opacity:.21}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-2]:before{opacity:.28}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-3]:before{opacity:.35}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-4]:before{opacity:.42}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-5]:before{opacity:.49}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-6]:before{opacity:.56}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-7]:before{opacity:.63}.handsontable .ht__manualColumnMove.after-selection--columns thead th.ht__highlight,.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable .ht__manualColumnMove.on-moving--columns *,.handsontable .ht__manualColumnMove.on-moving--columns thead th.ht__highlight,.handsontable.ht__manualColumnMove.on-moving--columns *,.handsontable.ht__manualColumnMove.on-moving--columns thead th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable .ht__manualColumnMove.on-moving--columns .manualColumnResizer,.handsontable.ht__manualColumnMove.on-moving--columns .manualColumnResizer{display:none}.handsontable .ht__manualColumnMove--backlight,.handsontable .ht__manualColumnMove--guideline,.handsontable.ht__manualColumnMove--backlight,.handsontable.ht__manualColumnMove--guideline{display:none;height:100%;position:absolute}.handsontable .ht__manualColumnMove--guideline,.handsontable.ht__manualColumnMove--guideline{background:var(--ht-move-indicator-color,#1a42e8);margin-inline-end:0;margin-inline-start:-.5px;top:0;width:1px;z-index:205}.handsontable .ht__manualColumnMove--backlight,.handsontable.ht__manualColumnMove--backlight{background:color-mix(in srgb,var(--ht-move-backlight-color) var(--ht-move-backlight-opacity,100%),transparent);display:none;pointer-events:none;z-index:205}.handsontable .on-moving--columns .ht__manualColumnMove--backlight,.handsontable .on-moving--columns.show-ui .ht__manualColumnMove--guideline,.handsontable.on-moving--columns .ht__manualColumnMove--backlight,.handsontable.on-moving--columns.show-ui .ht__manualColumnMove--guideline{display:block}.handsontable .wtHider{position:relative}.handsontable .ht__manualRowMove.after-selection--rows tbody th.ht__highlight,.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable .ht__manualRowMove.on-moving--rows *,.handsontable .ht__manualRowMove.on-moving--rows tbody th.ht__highlight,.handsontable.ht__manualRowMove.on-moving--rows *,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable .ht__manualRowMove.on-moving--rows .manualRowResizer,.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--backlight,.handsontable .ht__manualRowMove--guideline,.handsontable.ht__manualRowMove--backlight,.handsontable.ht__manualRowMove--guideline{display:none;position:absolute;width:100%}.handsontable .ht__manualRowMove--guideline,.handsontable.ht__manualRowMove--guideline{border-top:1px solid var(--ht-move-indicator-color);left:0;z-index:205}.handsontable .ht__manualRowMove--backlight,.handsontable.ht__manualRowMove--backlight{background:color-mix(in srgb,var(--ht-move-backlight-color) var(--ht-move-backlight-opacity,100%),transparent);display:none;pointer-events:none;z-index:205}.handsontable .on-moving--rows .ht__manualRowMove--backlight,.handsontable .on-moving--rows.show-ui .ht__manualRowMove--guideline,.handsontable.on-moving--rows .ht__manualRowMove--backlight,.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline{display:block}.ht-dialog{border:1px solid var(--ht-border-color);border-radius:var(--ht-wrapper-border-radius);box-sizing:border-box!important;display:none;font-size:var(--ht-font-size);height:100%;left:0;letter-spacing:var(--ht-letter-spacing);line-height:var(--ht-line-height);opacity:0;overflow-y:auto;position:absolute;top:0;width:100%;z-index:1060}.ht-dialog[dir=rtl]{left:auto;right:0}.ht-dialog:focus{border:1px solid var(--ht-accent-color);outline:none}.ht-dialog:has(.htFocusCatcher:focus){border:1px solid var(--ht-accent-color);outline:none}.ht-dialog *{box-sizing:border-box!important}.ht-dialog--background-solid{background-color:var(--ht-dialog-solid-background-color)}.ht-dialog--background-semi-transparent{background-color:color-mix(in srgb,var(--ht-dialog-semi-transparent-background-color) var(--ht-dialog-semi-transparent-background-opacity,100%),transparent)}.ht-dialog--animation{transition:opacity var(--ht-table-transition) ease-in-out}.ht-dialog--show{opacity:1}.ht-dialog__content-wrapper{align-items:center;border-radius:var(--ht-wrapper-border-radius);display:flex;justify-content:center;min-height:100%;padding:calc(var(--ht-gap-size)*4);width:100%}.ht-dialog__content{color:var(--ht-foreground-color);max-width:480px;padding:var(--ht-dialog-content-padding-horizontal) var(--ht-dialog-content-padding-vertical);position:relative}.ht-dialog__content--background{background-color:var(--ht-dialog-content-background-color);border-radius:var(--ht-dialog-content-border-radius);box-shadow:var(--ht-shadow-x,0) var(--ht-shadow-y,0) var(--ht-shadow-blur,8px) color-mix(in srgb,var(--ht-shadow-color,#000) var(--ht-shadow-opacity,100%),transparent)}.ht-dialog--confirm .ht-dialog__content-wrapper{padding:calc(var(--ht-gap-size)*2);text-align:center}.ht-dialog--confirm .ht-dialog__content-wrapper-inner{align-items:center;border-radius:var(--ht-wrapper-border-radius);display:flex;flex-direction:column;justify-content:center;max-width:480px;padding:calc(var(--ht-gap-size)*2)}.ht-dialog--confirm .ht-dialog__content-wrapper-inner--background{background-color:var(--ht-dialog-content-background-color);border-radius:var(--ht-dialog-content-border-radius);box-shadow:var(--ht-shadow-x,0) var(--ht-shadow-y,0) var(--ht-shadow-blur,8px) color-mix(in srgb,var(--ht-shadow-color,#000) var(--ht-shadow-opacity,100%),transparent)}.ht-dialog--confirm .ht-dialog__content-wrapper-inner:focus{box-shadow:0 0 0 1px var(--ht-accent-color);outline:none}.ht-dialog--confirm .ht-dialog__content{align-items:center;display:flex;flex-direction:column;gap:var(--ht-gap-size);justify-content:center}.ht-dialog--confirm .ht-dialog__content:has(.ht-dialog__buttons){gap:calc(var(--ht-gap-size)*2)}.ht-dialog--confirm .ht-dialog__title{font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0}.ht-dialog--confirm .ht-dialog__description{color:var(--ht-foreground-secondary-color);font-size:var(--ht-font-size-small);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height-small);margin:0}.ht-dialog--confirm .ht-dialog__buttons{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--ht-gap-size)*2);justify-content:center}.handsontable.ht-pagination{background:var(--ht-pagination-bar-background-color);border:1px solid var(--ht-wrapper-border-color);border-radius:0 0 var(--ht-wrapper-border-radius) var(--ht-wrapper-border-radius);border-top:1px solid transparent;box-sizing:border-box;color:var(--ht-pagination-bar-foreground-color);font-size:var(--ht-font-size);line-height:var(--ht-line-height);overflow-x:auto}.handsontable.ht-pagination--bordered{border-top-color:var(--ht-wrapper-border-color)}.handsontable.ht-pagination .ht-pagination__inner{align-items:center;border-radius:0 0 var(--ht-wrapper-border-radius) var(--ht-wrapper-border-radius);display:flex;flex-wrap:wrap;gap:calc(var(--ht-gap-size)*4);justify-content:space-between;min-width:230px;padding-block:var(--ht-pagination-bar-vertical-padding);padding-inline:var(--ht-pagination-bar-horizontal-padding)}.handsontable.ht-pagination .ht-page-size-section{align-items:center;display:flex;gap:calc(var(--ht-gap-size)*2)}.handsontable.ht-pagination .ht-page-size-section__label{white-space:nowrap}.handsontable.ht-pagination .ht-page-size-section__select-wrapper{border-radius:var(--ht-input-border-radius);position:relative}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select{-webkit-appearance:none;background-color:var(--ht-input-background-color);border:1px solid var(--ht-input-border-color);border-radius:var(--ht-input-border-radius);color:var(--ht-input-foreground-color);cursor:pointer;font-size:inherit;line-height:calc(var(--ht-line-height) - 4px);padding-inline-end:calc(var(--ht-gap-size) + var(--ht-icon-size));padding-bottom:var(--ht-gap-size);padding-inline-start:var(--ht-gap-size);padding-top:var(--ht-gap-size)}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select:disabled{background-color:var(--ht-input-disabled-background-color);border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color);cursor:default;opacity:.4}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select:hover:not(:disabled){background-color:var(--ht-input-hover-background-color);border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color)}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select:focus{background-color:var(--ht-input-focus-background-color);border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color);outline:none}.handsontable.ht-pagination .ht-page-size-section__select-wrapper:after{background-color:var(--ht-foreground-color);content:"";display:block;inset-block-end:50%;inset-inline-end:var(--ht-gap-size);pointer-events:none;position:absolute;transform:translateY(50%)}.handsontable.ht-pagination .ht-page-counter-section{margin-inline-end:auto}.handsontable.ht-pagination .ht-page-navigation-section{align-items:center;display:flex;gap:1px}.handsontable.ht-pagination .ht-page-navigation-section__button{background-color:var(--ht-pagination-bar-background-color);border:1px solid var(--ht-pagination-bar-background-color);border-radius:var(--ht-icon-button-large-border-radius);color:var(--ht-secondary-button-foreground-color);cursor:pointer;font-size:inherit;padding:var(--ht-icon-button-large-padding)}.handsontable.ht-pagination .ht-page-navigation-section__button:before{content:"";display:block}.handsontable.ht-pagination .ht-page-navigation-section__button--disabled{color:var(--ht-secondary-button-disabled-foreground-color);cursor:default;pointer-events:none}.handsontable.ht-pagination .ht-page-navigation-section__button:hover:not(:disabled){background-color:var(--ht-secondary-button-hover-background-color)}.handsontable.ht-pagination .ht-page-navigation-section__button:focus{border:1px solid var(--ht-accent-color);outline:none}.handsontable.ht-pagination .ht-page-navigation-section__label{min-width:100px;text-align:center;white-space:nowrap}.handsontable.ht-wrapper.htPagination,.handsontable.ht-wrapper.htPagination .htCore{border-end-end-radius:0;border-end-start-radius:0}.handsontable.ht-wrapper.htPagination .htCore tbody tr:last-child td:first-child,.handsontable.ht-wrapper.htPagination .htCore tbody tr:last-child th:first-child,.handsontable.ht-wrapper.htPagination .htCore thead tr:last-child th:first-child{border-end-start-radius:0!important}.handsontable.ht-wrapper.htPagination .htCore tbody tr:last-child td:last-child,.handsontable.ht-wrapper.htPagination .htCore tbody tr:last-child th:last-child,.handsontable.ht-wrapper.htPagination .htCore thead tr:last-child th:last-child{border-end-end-radius:0!important}.ht-loading__icon-svg{animation:ht-loading-spin 1s linear infinite;color:var(--ht-accent-color);display:block;height:var(--ht-icon-size);transform-origin:50% 50%;width:var(--ht-icon-size)}.ht-loading__content{align-items:center;display:flex;gap:calc(var(--ht-gap-size)*2)}.ht-loading__title{font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0}.ht-loading__description{color:var(--ht-foreground-secondary-color);font-size:var(--ht-font-size-small);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height-small);margin:0}@keyframes ht-loading-spin{to{transform:rotate(1turn)}}.ht-empty-data-state{background-color:var(--ht-background-color);border:1px solid var(--ht-border-color);border-radius:var(--ht-wrapper-border-radius);box-sizing:border-box;display:none;left:0;overflow-y:auto;position:absolute;width:100%;z-index:999}.ht-empty-data-state *{box-sizing:border-box!important}.ht-empty-data-state__content-wrapper{min-height:100%;text-align:center;width:100%}.ht-empty-data-state__content-wrapper,.ht-empty-data-state__content-wrapper-inner{align-items:center;border-radius:var(--ht-wrapper-border-radius);display:flex;justify-content:center;padding:calc(var(--ht-gap-size)*2)}.ht-empty-data-state__content-wrapper-inner{flex-direction:column;max-width:480px}.ht-empty-data-state__content-wrapper-inner:focus{box-shadow:0 0 0 1px var(--ht-accent-color);outline:none}.ht-empty-data-state__content{align-items:center;display:flex;flex-direction:column;gap:var(--ht-gap-size);justify-content:center}.ht-empty-data-state__title{font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0}.ht-empty-data-state__description{color:var(--ht-foreground-secondary-color);font-size:var(--ht-font-size-small);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height-small);margin:0}.ht-empty-data-state__buttons{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--ht-gap-size)*2);justify-content:center}.ht-empty-data-state__buttons--has-buttons{margin-top:calc(var(--ht-gap-size)*2)}.ht-empty-data-state--disable-top-border{border-start-end-radius:0;border-start-start-radius:0;border-top-width:0}.ht-empty-data-state--disable-inline-border{border-end-start-radius:0;border-inline-start-width:0;border-start-start-radius:0}.ht-empty-data-state--disable-bottom-border,.ht-empty-data-state:has(~.ht-pagination){border-bottom-width:0;border-end-end-radius:0;border-end-start-radius:0}'},38599(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=n(r(23695)),a=r(82063),l=n(r(95004)),h=r(79268),c=r(75593),u=r(65517),d=r(17134);function p(e,t,r){g(e,t),t.set(e,r)}function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(C(e,t))}function m(e,t,r){return e.set(C(e,t),r),r}function C(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var w=new WeakMap,y=new WeakMap,v=new WeakMap,E=new WeakMap,S=new WeakMap,b=new WeakMap,R=new WeakMap,T=new WeakMap,_=new WeakSet;function M(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function A(e){const t=C(_,this,M).call(this)+e;(0,i.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function I(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,i.addClass)(e,"htHasScrollY"):(0,i.removeClass)(e,"htHasScrollY"),this.isVerticallyScrollableByWindow()?(0,i.addClass)(e,"htVerticallyScrollableByWindow"):(0,i.removeClass)(e,"htVerticallyScrollableByWindow"),this.hasHorizontalScroll()?(0,i.addClass)(e,"htHasScrollX"):(0,i.removeClass)(e,"htHasScrollX"),this.isHorizontallyScrollableByWindow()?(0,i.addClass)(e,"htHorizontallyScrollableByWindow"):(0,i.removeClass)(e,"htHorizontallyScrollableByWindow")}t.default=class{constructor(e){var t,r;g(t=this,r=_),r.add(t),(0,o.default)(this,"hot",void 0),(0,o.default)(this,"eventManager",void 0),(0,o.default)(this,"settings",void 0),(0,o.default)(this,"THEAD",void 0),(0,o.default)(this,"TBODY",void 0),(0,o.default)(this,"_wt",void 0),(0,o.default)(this,"activeWt",void 0),p(this,w,0),p(this,y,0),(0,o.default)(this,"postponedAdjustElementsSize",!1),p(this,v,!1),p(this,E,void 0),p(this,S,void 0),p(this,b,0),p(this,R,0),p(this,T,null),this.hot=e,this.eventManager=new s.default(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){if(!this.hot.isRenderSuspended()){const e=this.hot.forceFullRender;this.hot.runHooks("beforeRender",e),this._wt.draw(!e),C(_,this,I).call(this),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this._wt.wtOverlays.adjustElementsSize():this.postponedAdjustElementsSize=!0}getCellAtCoords(e,t){const r=this._wt.getCell(e,t);return r<0?null:r}scrollViewport(e,t,r){return this._wt.scrollViewport(e,t,r)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,r=e.getAttribute("style");r&&e.setAttribute("data-originalstyle",r),(0,i.addClass)(e,"handsontable"),m(S,this,t.createElement("TABLE")),(0,i.addClass)(f(S,this),"htCore"),this.hot.getSettings().tableClassName&&(0,i.addClass)(f(S,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,i.setAttribute)(f(S,this),[(0,d.A11Y_PRESENTATION)()]),(0,i.setAttribute)(e,[(0,d.A11Y_TREEGRID)(),(0,d.A11Y_ROWCOUNT)(-1),(0,d.A11Y_COLCOUNT)(this.hot.countCols()),(0,d.A11Y_MULTISELECTABLE)()])),this.THEAD=t.createElement("THEAD"),f(S,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),f(S,this).appendChild(this.TBODY),this.hot.table=f(S,this),this.hot.container.insertBefore(f(S,this),this.hot.container.firstChild)}registerEvents(){const{rootWrapperElement:e,rootElement:t,rootDocument:r,selection:n,rootWindow:o}=this.hot,s=r.documentElement;this.eventManager.addEventListener(t,"mousedown",e=>{m(v,this,!0),this.isTextSelectionAllowed(e.target)||((0,i.clearTextSelection)(o),e.preventDefault(),o.focus())}),this.eventManager.addEventListener(t,"mouseup",()=>{m(v,this,!1)}),this.eventManager.addEventListener(t,"mousemove",e=>{f(v,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,i.clearTextSelection)(o),e.preventDefault())}),this.eventManager.addEventListener(s,"keyup",e=>{n.isInProgress()&&!e.shiftKey&&n.finish()}),this.eventManager.addEventListener(s,"mouseup",o=>{n.isInProgress()&&(0,a.isLeftClick)(o)&&n.finish(),m(E,this,!1);const s=(0,i.isOutsideInput)(r.activeElement);(0,i.isInput)(r.activeElement)&&!s||!s&&(n.isSelected()||n.isSelectedByAnyHeader()||(null!=e?e:t).contains(o.target)||(0,a.isRightClick)(o))||this.hot.unlisten()}),this.eventManager.addEventListener(s,"contextmenu",e=>{n.isInProgress()&&(0,a.isRightClick)(e)&&(n.finish(),m(E,this,!1))}),this.eventManager.addEventListener(s,"touchend",()=>{n.isInProgress()&&n.finish(),m(E,this,!1)}),this.eventManager.addEventListener(s,"mousedown",e=>{const n=e.target,o=e.x||e.clientX,a=e.y||e.clientY;let l=e.target;if(f(E,this)||!t||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(l===h){const e=(0,i.getScrollbarWidth)(r);if(r.elementFromPoint(o+e,a)!==h||r.elementFromPoint(o,a+e)!==h)return}else for(;l!==s;){if(null===l){if(e.isTargetWebComponent)break;return}if(l===t)return;l=l.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(n):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)});let l=(0,i.getParentWindow)(o);for(;null!==l;)this.eventManager.addEventListener(l.document.documentElement,"click",()=>{this.hot.unlisten()}),l=(0,i.getParentWindow)(l);this.eventManager.addEventListener(f(S,this),"selectstart",e=>{this.settings.fragmentSelection||(0,i.isInput)(e.target)||e.preventDefault()})}translateFromRenderableToVisualCoords(e){let{row:t,col:r}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,r))}translateFromRenderableToVisualIndex(e,t){let r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,n=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===r&&(r=e),null===n&&(n=t),[r,n]}countRenderableIndexes(e,t){const r=Math.min(e.getNotTrimmedIndexesLength(),t),n=e.getNearestNotHiddenIndex(r-1,-1);return null===n?0:e.getRenderableFromVisualIndex(n)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,r,n){if(isNaN(e)||e<0)return 0;const o=r.getNearestNotHiddenIndex(e,t),i=r.getRenderableFromVisualIndex(o);if(!Number.isInteger(i))return 0;let s=0;return t<0?s=i+1:t>0&&(s=n-i),s}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let r=0;for(let n=e;n<=t;n++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(n)&&(r+=1);return r}countRenderableRowsInRange(e,t){let r=0;for(let n=e;n<=t;n++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(n)&&(r+=1);return r}addClassNameToLicenseElement(e){var t;const r=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");r&&(0,i.addClass)(r,e)}removeClassNameFromLicenseElement(e){var t;const r=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");r&&(0,i.removeClass)(r,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:f(S,this),isDataViewInstance:()=>(0,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 r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(r,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(y,this,e.length),this.hot.getSettings().ariaTags&&C(_,this,M).call(this)===this.hot.countCols()&&C(_,this,A).call(this,f(y,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const r=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(r,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(w,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const r=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),n=null===r?e:r;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(n),n,t)},cellRenderer:(e,t,r)=>{const[n,o]=this.translateFromRenderableToVisualIndex(e,t),i=this.hot.runHooks("modifyGetCellCoords",n,o,!1,"meta");let s=n,a=o;Array.isArray(i)&&([s,a]=i);const l=this.hot.getCellMeta(s,a),h=this.hot.colToProp(a);let c=this.hot.getDataAtRowProp(s,h);this.hot.hasHook("beforeValueRender")&&(c=this.hot.runHooks("beforeValueRender",c,l));const u=this.hot.getCellRenderer(l);let d=c;"function"==typeof l.valueFormatter?d=l.valueFormatter(d,l):"function"==typeof u.valueFormatter&&(d=u.valueFormatter.call(l,d,l)),this.hot.runHooks("beforeRenderer",r,n,o,h,c,l);const p=[this.hot,r,n,o,h,d,l];u(...p),l._isBaseRendererCalled||this.hot.getCellRenderer({renderer:"base"})(...p),this.hot.runHooks("afterRenderer",r,n,o,h,c,l),l._isBaseRendererCalled=!1},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,i.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,r,n)=>{const o=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=n,m(E,this,!0),m(T,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,o,r,i),(0,a.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:o,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,o,r),this.activeWt=this._wt)},onCellContextMenu:(e,t,r,n)=>{const o=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,m(E,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,o,r),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,o,r),this.activeWt=this._wt)},onCellMouseOut:(e,t,r,n)=>{const o=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOut",e,o,r),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,o,r),this.activeWt=this._wt)},onCellMouseOver:(e,t,r,n)=>{const o=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOver",e,o,r,i),(0,a.isImmediatePropagationStopped)(e)||(!f(E,this)||f(T,this)&&f(T,this).x===e.clientX&&f(T,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:o,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,o,r),this.activeWt=this._wt,m(T,this,null))},onCellMouseUp:(e,t,r,n)=>{const o=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,this.hot.runHooks("beforeOnCellMouseUp",e,o,r),(0,a.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||((0,h.handleMouseEvent)(e,{coords:o,selection:this.hot.selection,cellRangeMapper:(0,u.resolveWithInstance)(this.hot,"cellRangeMapper")}),this.hot.runHooks("afterOnCellMouseUp",e,o,r),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const r=this.hot.rowIndexMapper,n=e<0;let o=e;return n||(o=r.getVisualFromRenderableIndex(e),null!==o)?(o=this.hot.runHooks("beforeViewportScrollVertically",o,t),this.hot.runHooks("beforeViewportScroll"),n?o:r.getRenderableFromVisualIndex(o)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const r=this.hot.columnIndexMapper,n=e<0;let o=e;return n||(o=r.getVisualFromRenderableIndex(e),null!==o)?(o=this.hot.runHooks("beforeViewportScrollHorizontally",o,t),this.hot.runHooks("beforeViewportScroll"),n?o:r.getRenderableFromVisualIndex(o)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,r)=>{const n=this.hot.rowIndexMapper,o=e<0;let i=e;o||(i=n.getVisualFromRenderableIndex(e));const s=this.hot.runHooks("beforeHighlightingRowHeader",i,t,r);return o?s:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(s,1))},onBeforeHighlightingColumnHeader:(e,t,r)=>{const n=this.hot.columnIndexMapper,o=e<0;let i=e;o||(i=n.getVisualFromRenderableIndex(e));const s=this.hot.runHooks("beforeHighlightingColumnHeader",i,t,r);return o?s:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(s,1))},onAfterDrawSelection:(e,t,r)=>{let n;const[o,i]=this.translateFromRenderableToVisualIndex(e,t),s=this.hot.selection.getSelectedRange();if(s.size()>0){const e=s.peekByIndex(null!=r?r:0);n=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",o,i,n,r)},onBeforeDrawBorders:(e,t)=>{const[r,n,o,i]=e,s=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(r),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n),this.hot.rowIndexMapper.getVisualFromRenderableIndex(o),this.hot.columnIndexMapper.getVisualFromRenderableIndex(i)];return this.hot.runHooks("beforeDrawBorders",s,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,r,n)=>{const o=this.hot.rowIndexMapper,i=this.hot.columnIndexMapper,s=t>=0?i.getVisualFromRenderableIndex(t):t,a=e>=0?o.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,s,r,n);if(Array.isArray(l)){const[e,t,r,n]=l;return[e>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(e,1)):e,t>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(t,1)):t,r>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(r,-1)):r,n>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(n,-1)):n]}},onModifyGetCoordsElement:(e,t)=>{const r=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,o=t>=0?n.getVisualFromRenderableIndex(t):t,i=e>=0?r.getVisualFromRenderableIndex(e):e,s=this.hot.runHooks("modifyGetCoordsElement",i,o);if(Array.isArray(s)){const[e,t]=s;return[e>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(e,1)):e,t>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const r=this.countRenderableRows(),n=e.startRow,o=e.endRow;if("number"==typeof t)e.startRow=Math.max(n-t,0),e.endRow=Math.min(o+t,r-1);else if("auto"===t){const t=Math.max(1,Math.ceil(o/r*12));e.startRow=Math.max(n-t,0),e.endRow=Math.min(o+t,r-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const r=this.countRenderableColumns(),n=e.startColumn,o=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(n-t,0),e.endColumn=Math.min(o+t,r-1)),"auto"===t){const t=Math.max(1,Math.ceil(o/r*6));e.startColumn=Math.max(n-t,0),e.endColumn=Math.min(o+t,r-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e},stylesHandler:()=>this.hot.stylesHandler};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new l.default(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:r,height:n}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(r,n),this.eventManager.addEventListener(t,"mousedown",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(t,"contextmenu",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&this.hot.render()})}isTextSelectionAllowed(e){var t,r;if((0,i.isInput)(e))return!0;const n=(0,i.isChildOf)(e,this._wt.wtTable.spreader);if(!0===this.settings.fragmentSelection&&n)return!0;const o=null!==(t=null===(r=this.hot.getSelectedRangeActive())||void 0===r?void 0:r.isSingleCell())&&void 0!==t&&t;return!("cell"!==this.settings.fragmentSelection||!o||!n)||!(this.settings.fragmentSelection||!this.isCellEdited()||!o)}isMouseDown(){return f(E,this)}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const r=t.firstChild;if(!(0,i.hasClass)(r,"relative"))return(0,i.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(r.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:r,getRowHeader:n}=this.hot,o=r.createElement("div"),i=r.createElement("span");o.className="relative",i.className="rowHeader",this.updateCellHeader(i,e,n),o.appendChild(i),t.appendChild(o)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const s=t.firstChild;(0,i.hasClass)(s,"relative")?(this.updateCellHeader(s.querySelector(".colHeader"),e,r,n),s.className="",(0,i.addClass)(s,["relative",...o()])):((0,i.empty)(t),this.appendColHeader(e,t,r,n))}else{const{rootDocument:s}=this.hot,a=s.createElement("div"),l=s.createElement("span"),h=o();a.classList.add("relative",...h),l.className="colHeader",this.settings.ariaTags&&((0,i.setAttribute)(a,...(0,d.A11Y_PRESENTATION)()),(0,i.setAttribute)(l,...(0,d.A11Y_PRESENTATION)())),this.updateCellHeader(l,e,r,n),a.appendChild(l),t.appendChild(a)}this.hot.runHooks("afterGetColHeader",e,t,n)}updateCellHeader(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t;const s=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,i.hasClass)(e,"colHeader")?o=s.wtTable.columnFilter.sourceToRendered(t):(0,i.hasClass)(e,"rowHeader")&&(o=s.wtTable.rowFilter.sourceToRendered(t))),o>-1?(0,i.fastInnerHTML)(e,r(t,n),this.hot.getSettings().sanitizer):((0,i.fastInnerText)(e,String.fromCharCode(160)),(0,i.addClass)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){m(b,this,e),m(R,this,t)}getLastSize(){return{width:f(b,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(y,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getTotalTableWidth(){return this._wt.wtTable.getTotalWidth()}getTotalTableHeight(){return this._wt.wtTable.getTotalHeight()}getTableOffset(){return this._wt.wtViewport.getWorkspaceOffset()}getTableScrollPosition(){return{left:this._wt.wtTable.holder.scrollLeft,top:this._wt.wtTable.holder.scrollTop}}setTableScrollPosition(e){this._wt.wtTable.holder.scrollLeft=e.left,this._wt.wtTable.holder.scrollTop=e.top}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()}}},47075(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.createTheme=function(e){return new b(e)};var o=r(81185),i=n(r(55486)),s=n(r(90030)),a=r(53759),l=r(28065),h=r(15141);function c(e,t,r){u(e,t),t.set(e,r)}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t){return e.get(g(e,t))}function p(e,t,r){return e.set(g(e,t),r),r}function g(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const f=["sizing","icons","colors","tokens"],m=["name","icons","colors","tokens"];var C=new WeakMap,w=new WeakMap,y=new WeakMap,v=new WeakMap,E=new WeakMap,S=new WeakSet;class b{constructor(e){var t,r;u(t=this,r=S),r.add(t),c(this,C,void 0),c(this,w,void 0),c(this,y,new Set),c(this,v,"auto"),c(this,E,"default"),(0,a.validateParams)(e,"themeConfig",{requiredFields:m}),p(C,this,{name:void 0,sizing:i.default,density:{type:d(E,this),sizes:s.default},icons:{},colors:{},tokens:{},colorScheme:d(v,this)}),g(S,this,_).call(this,e),p(C,this,d(w,this))}subscribe(e){return"function"!=typeof e&&(0,h.throwWithCause)("[ThemeBuilder] listener must be a function."),d(y,this).add(e),()=>d(y,this).delete(e)}params(e){return(0,a.validateParams)(e,"params"),g(S,this,_).call(this,e),g(S,this,R).call(this),this}setColorScheme(e){return p(v,this,(0,a.validateColorScheme)(e)),d(w,this).colorScheme=d(v,this),d(C,this).colorScheme=d(v,this),g(S,this,R).call(this),this}setDensityType(e){return p(E,this,(0,a.validateDensityType)(e)),d(w,this).density.type=d(E,this),d(C,this).density.type=d(E,this),g(S,this,R).call(this),this}getThemeConfig(){return d(w,this)}}function R(){const e=this.getThemeConfig();d(y,this).forEach(t=>t(e))}function T(e,t){var r;if((0,o.isObject)(t))e.density=(0,o.deepMerge)(e.density,t),p(E,this,t.type),null!==(r=d(C,this))&&void 0!==r&&r.density&&(d(C,this).density.type=t.type);else if("string"==typeof t){var n;e.density.type=t,p(E,this,t),null!==(n=d(C,this))&&void 0!==n&&n.density&&(d(C,this).density.type=t)}}function _(e){const t=(0,o.deepClone)(d(C,this));var r;(void 0!==e.name&&(void 0!==d(C,this).name?(0,l.warn)('[ThemeBuilder] The "name" property can only be set during `registerTheme()` and cannot be updated via `params()`.'):t.name=e.name),f.forEach(r=>{void 0!==e[r]&&(0,o.isObject)(e[r])&&(t[r]=(0,o.deepMerge)(t[r],e[r]))}),void 0!==e.density&&g(S,this,T).call(this,t,e.density),void 0!==e.colorScheme)&&(t.colorScheme=e.colorScheme,p(v,this,e.colorScheme),null!==(r=d(C,this))&&void 0!==r&&r.colorScheme&&(d(C,this).colorScheme=e.colorScheme));p(w,this,t)}},85796(e,t,r){"use strict";t.__esModule=!0;var n=r(47075);t.createTheme=n.createTheme;var o=r(23303);t.createThemeManager=o.createThemeManager},23303(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.createThemeManager=function(e){let{hot:t,themeObject:r}=e;return new u({hot:t,themeObject:r})};var o=n(r(43685)),i=r(602),s=r(15141),a=r(51684);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 h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var c=new WeakSet;class u{constructor(e){let{hot:t,themeObject:r}=e;l(this,c),(0,o.default)(this,"hot",void 0),(0,o.default)(this,"themeStyles",void 0),(0,o.default)(this,"themeClassName",void 0),(0,o.default)(this,"themeConfig",void 0),this.hot=t,this.update(r)}getClassName(){return this.themeClassName}update(e){this.hot&&(void 0===e.getThemeConfig&&(0,s.throwWithCause)('[ThemeManager] The "theme" option must be an instance of ThemeBuilder.'),this.themeConfig=e.getThemeConfig(),this.themeClassName=`ht-theme-${this.themeConfig.name}`,"function"==typeof e.subscribe&&e.subscribe(e=>{var t;null!==(t=this.hot)&&void 0!==t&&t.stylesHandler&&(this.themeConfig=e,h(c,this,d).call(this),this.hot.stylesHandler.clearCache(),this.hot.render(),this.hot.runHooks("afterSetTheme",this.themeClassName,!1))}),this.mount(),this.hot.runHooks("afterSetTheme",this.themeClassName,!0))}mount(){h(c,this,d).call(this)}unmount(){this.themeStyles&&this.themeStyles.remove()}destroy(){this.unmount(),this.hot.themeManager=null}}function d(){if(!(this.themeConfig&&this.hot&&this.hot.rootDocument&&this.hot.rootWrapperElement))return;const e="auto"===this.themeConfig.colorScheme?"light dark":this.themeConfig.colorScheme;this.themeStyles?this.themeStyles.textContent="":this.themeStyles=this.hot.rootDocument.createElement("style"),this.themeStyles.textContent=`:where(.${this.themeClassName}) {\n`,this.themeStyles.textContent+=`color-scheme: ${e};\n`,this.themeConfig.sizing&&(this.themeStyles.textContent+=(0,a.flattenCssVariables)(this.themeConfig.sizing,"sizing")),this.themeConfig.density&&this.themeConfig.density.type&&this.themeConfig.density.sizes&&this.themeConfig.density.sizes[this.themeConfig.density.type]&&(this.themeStyles.textContent+=(0,a.flattenCssVariables)(this.themeConfig.density.sizes[this.themeConfig.density.type],"density")),this.themeConfig.colors&&(this.themeStyles.textContent+=(0,a.flattenCssVariables)(this.themeConfig.colors,"colors")),this.themeConfig.tokens&&(this.themeStyles.textContent+=(0,a.flattenCssVariables)(this.themeConfig.tokens)),this.themeConfig.icons&&(this.themeStyles.textContent+=(0,i.iconsMap)(this.themeConfig.icons)),this.themeStyles.textContent+="}",this.hot.rootWrapperElement&&this.hot.rootWrapperElement.querySelector("style")?this.hot.rootWrapperElement.querySelector("style").textContent=this.themeStyles.textContent:this.hot.rootWrapperElement.prepend(this.themeStyles)}t.ThemeManager=u},51684(e,t,r){"use strict";t.__esModule=!0,t.flattenCssVariables=function e(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a="";return Object.entries(t).forEach(t=>{let[h,c]=t;const u=(0,o.toHyphen)(h),d=s?`${s}-${u}`:u;(0,n.isObject)(c)?a+=e(c,r,d):a+=`${function(e,t,r){return`${function(e,t){return`${i}${e?`${e}-`:""}${(0,o.toHyphen)(t)}`}(e,t)}: ${l(r,t)};`}(r,d,c)}\n`}),a};var n=r(81185),o=r(58507);const i="--ht-",s=["font-family"],a=["tokens.","colors.","sizing.","density."];function l(e,t){if(function(e){return"string"==typeof e&&a.some(t=>e.includes(t))}(e))return(r=e).includes("tokens.")?`var(${i}${(0,o.toHyphen)(r.split(".").slice(1).join("-"))})`:`var(${i}${(0,o.toHyphen)(r.split(".").join("-"))})`;var r;if(Array.isArray(e)){if(e.length>=2){const[r,n]=e;return"string"==typeof r&&"string"==typeof n?`light-dark(${l(r,t)}, ${l(n,t)})`:"string"==typeof r?l(r,t):"string"==typeof n?l(n,t):""}return l(e[0],t)}return t&&s.includes(t)?String(e):(0,o.toHyphen)(e)}},53759(e,t,r){"use strict";t.__esModule=!0,t.validateColorScheme=u,t.validateDensityType=d,t.validateParams=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{requiredFields:a=[]}=r;"object"==typeof e&&null!==e||(0,i.throwWithCause)(`[ThemeBuilder] ${t} must be an object.`);const{name:f,sizing:m,density:C,icons:w,colors:y,tokens:v,colorScheme:E}=e;g(e,s,t,{type:"param"}),a.forEach(r=>{void 0===e[r]&&(0,i.throwWithCause)(`[ThemeBuilder] ${t}.${r} is required.`)}),void 0!==f&&function(e,t){"string"==typeof e&&""!==e.trim()||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.name must be a non-empty string.`)}(f,t);void 0!==m&&((0,n.isObject)(m)||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.sizing must be an object.`));void 0!==C&&((0,n.isObject)(C)||"string"==typeof C||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.density must be a string or an object.`),function(e,t){(0,n.isObject)(e)?(e.type&&e.sizes||(0,i.throwWithCause)(`[ThemeBuilder] ${t} must be a string or an object with a 'type' and 'sizes' property.`),d(e.type),function(e,t){(0,n.isObject)(e)||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.sizes must be an object.`);Object.keys(e).forEach(e=>{l.has(e)||(0,o.warn)(`[ThemeBuilder] Unknown density size key: "${e}" in ${t}.sizes. This may be a custom density size or a typo.`)})}(e.sizes,`${t}.sizes`)):"string"==typeof e&&d(e)}(C,`${t}.density`));void 0!==w&&((0,n.isObject)(w)||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.icons must be an object.`),g(w,h,`${t}.icons`,{type:"icon",warnMissing:a.includes("icons")}));void 0!==y&&((0,n.isObject)(y)||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.colors must be an object.`),p(y,`${t}.colors`));void 0!==v&&((0,n.isObject)(v)||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.tokens must be an object.`),g(v,c,`${t}.tokens`,{type:"token",warnMissing:a.includes("tokens")}));void 0!==E&&u(E)};var n=r(81185),o=r(28065),i=r(15141);const s=new Set(["name","sizing","density","icons","colors","tokens","colorScheme"]),a=new Set(["light","dark","auto"]),l=new Set(["default","compact","comfortable"]),h=t.VALID_ICON_KEYS=new Set(["arrowRight","arrowRightWithBar","arrowLeft","arrowLeftWithBar","arrowDown","menu","selectArrow","arrowNarrowUp","arrowNarrowDown","check","checkbox","caretHiddenLeft","caretHiddenRight","caretHiddenUp","caretHiddenDown","collapseOff","collapseOn","radio","chipClose","search"]),c=new Set(["fontFamily","fontSize","fontSizeSmall","lineHeight","lineHeightSmall","fontWeight","letterSpacing","gapSize","iconSize","tableTransition","borderColor","accentColor","foregroundColor","foregroundSecondaryColor","backgroundColor","backgroundSecondaryColor","placeholderColor","readOnlyColor","disabledColor","shadowColor","shadowX","shadowY","shadowBlur","shadowOpacity","barForegroundColor","barBackgroundColor","barHorizontalPadding","barVerticalPadding","cellHorizontalBorderColor","cellVerticalBorderColor","cellHorizontalPadding","cellVerticalPadding","wrapperBorderWidth","wrapperBorderRadius","wrapperBorderColor","rowHeaderOddBackgroundColor","rowHeaderEvenBackgroundColor","rowCellOddBackgroundColor","rowCellEvenBackgroundColor","cellEditorBorderWidth","cellEditorBorderColor","cellEditorForegroundColor","cellEditorBackgroundColor","cellEditorShadowBlurRadius","cellEditorShadowColor","cellSuccessBackgroundColor","cellErrorBackgroundColor","cellReadOnlyBackgroundColor","cellSelectionBorderColor","cellSelectionBackgroundColor","cellAutofillSize","cellAutofillHitAreaSize","cellAutofillBorderWidth","cellAutofillBorderRadius","cellAutofillBorderColor","cellAutofillBackgroundColor","cellAutofillFillBorderColor","cellMobileHandleSize","cellMobileHandleBorderWidth","cellMobileHandleBorderRadius","cellMobileHandleBorderColor","cellMobileHandleBackgroundColor","cellMobileHandleBackgroundOpacity","resizeIndicatorColor","moveBacklightColor","moveBacklightOpacity","moveIndicatorColor","hiddenIndicatorColor","scrollbarBorderRadius","scrollbarTrackColor","scrollbarThumbColor","headerFontWeight","headerForegroundColor","headerBackgroundColor","headerHighlightedShadowSize","headerHighlightedForegroundColor","headerHighlightedBackgroundColor","headerActiveBorderColor","headerActiveForegroundColor","headerActiveBackgroundColor","headerFilterBackgroundColor","headerRowForegroundColor","headerRowBackgroundColor","headerRowHighlightedForegroundColor","headerRowHighlightedBackgroundColor","headerRowActiveForegroundColor","headerRowActiveBackgroundColor","checkboxSize","checkboxBorderRadius","checkboxBorderColor","checkboxBackgroundColor","checkboxIconColor","checkboxFocusBorderColor","checkboxFocusBackgroundColor","checkboxFocusIconColor","checkboxFocusRingColor","checkboxDisabledBorderColor","checkboxDisabledBackgroundColor","checkboxDisabledIconColor","checkboxCheckedBorderColor","checkboxCheckedBackgroundColor","checkboxCheckedIconColor","checkboxCheckedFocusBorderColor","checkboxCheckedFocusBackgroundColor","checkboxCheckedFocusIconColor","checkboxCheckedDisabledBorderColor","checkboxCheckedDisabledBackgroundColor","checkboxCheckedDisabledIconColor","checkboxIndeterminateBorderColor","checkboxIndeterminateBackgroundColor","checkboxIndeterminateIconColor","checkboxIndeterminateFocusBorderColor","checkboxIndeterminateFocusBackgroundColor","checkboxIndeterminateFocusIconColor","checkboxIndeterminateDisabledBorderColor","checkboxIndeterminateDisabledBackgroundColor","checkboxIndeterminateDisabledIconColor","radioSize","radioBorderColor","radioBackgroundColor","radioIconColor","radioFocusBorderColor","radioFocusBackgroundColor","radioFocusIconColor","radioFocusRingColor","radioDisabledBorderColor","radioDisabledBackgroundColor","radioDisabledIconColor","radioCheckedBorderColor","radioCheckedBackgroundColor","radioCheckedIconColor","radioCheckedFocusBorderColor","radioCheckedFocusBackgroundColor","radioCheckedFocusIconColor","radioCheckedDisabledBorderColor","radioCheckedDisabledBackgroundColor","radioCheckedDisabledIconColor","iconButtonBorderRadius","iconButtonLargeBorderRadius","iconButtonLargePadding","iconButtonBorderColor","iconButtonBackgroundColor","iconButtonIconColor","iconButtonHoverBorderColor","iconButtonHoverBackgroundColor","iconButtonHoverIconColor","iconButtonActiveBorderColor","iconButtonActiveBackgroundColor","iconButtonActiveIconColor","iconButtonActiveHoverBorderColor","iconButtonActiveHoverBackgroundColor","iconButtonActiveHoverIconColor","collapseButtonBorderRadius","collapseButtonOpenBorderColor","collapseButtonOpenBackgroundColor","collapseButtonOpenIconColor","collapseButtonOpenIconActiveColor","collapseButtonOpenHoverBorderColor","collapseButtonOpenHoverBackgroundColor","collapseButtonOpenHoverIconColor","collapseButtonOpenHoverIconActiveColor","collapseButtonCloseBorderColor","collapseButtonCloseBackgroundColor","collapseButtonCloseIconColor","collapseButtonCloseIconActiveColor","collapseButtonCloseHoverBorderColor","collapseButtonCloseHoverBackgroundColor","collapseButtonCloseHoverIconColor","collapseButtonCloseHoverIconActiveColor","buttonBorderRadius","buttonHorizontalPadding","buttonVerticalPadding","primaryButtonBorderColor","primaryButtonForegroundColor","primaryButtonBackgroundColor","primaryButtonDisabledBorderColor","primaryButtonDisabledForegroundColor","primaryButtonDisabledBackgroundColor","primaryButtonHoverBorderColor","primaryButtonHoverForegroundColor","primaryButtonHoverBackgroundColor","primaryButtonFocusBorderColor","primaryButtonFocusForegroundColor","primaryButtonFocusBackgroundColor","secondaryButtonBorderColor","secondaryButtonForegroundColor","secondaryButtonBackgroundColor","secondaryButtonDisabledBorderColor","secondaryButtonDisabledForegroundColor","secondaryButtonDisabledBackgroundColor","secondaryButtonHoverBorderColor","secondaryButtonHoverForegroundColor","secondaryButtonHoverBackgroundColor","secondaryButtonFocusBorderColor","secondaryButtonFocusForegroundColor","secondaryButtonFocusBackgroundColor","commentsTextareaHorizontalPadding","commentsTextareaVerticalPadding","commentsTextareaBorderWidth","commentsTextareaBorderColor","commentsTextareaForegroundColor","commentsTextareaBackgroundColor","commentsTextareaFocusBorderWidth","commentsTextareaFocusBorderColor","commentsTextareaFocusForegroundColor","commentsTextareaFocusBackgroundColor","commentsIndicatorSize","commentsIndicatorColor","licenseHorizontalPadding","licenseVerticalPadding","licenseForegroundColor","licenseBackgroundColor","linkColor","linkHoverColor","inputBorderWidth","inputBorderRadius","inputHorizontalPadding","inputVerticalPadding","inputBorderColor","inputForegroundColor","inputBackgroundColor","inputHoverBorderColor","inputHoverForegroundColor","inputHoverBackgroundColor","inputDisabledBorderColor","inputDisabledForegroundColor","inputDisabledBackgroundColor","inputFocusBorderColor","inputFocusForegroundColor","inputFocusBackgroundColor","menuBorderWidth","menuBorderRadius","menuHorizontalPadding","menuVerticalPadding","menuItemHorizontalPadding","menuItemVerticalPadding","menuBorderColor","menuShadowX","menuShadowY","menuShadowBlur","menuShadowColor","menuShadowOpacity","menuItemHoverColor","menuItemHoverColorOpacity","menuItemActiveColor","menuItemActiveColorOpacity","dialogSemiTransparentBackgroundColor","dialogSemiTransparentBackgroundOpacity","dialogSolidBackgroundColor","dialogContentPaddingHorizontal","dialogContentPaddingVertical","dialogContentBorderRadius","dialogContentBackgroundColor","paginationBarForegroundColor","paginationBarBackgroundColor","paginationBarHorizontalPadding","paginationBarVerticalPadding","chipBackground","chipBorderRadius","chipVerticalPadding","chipHorizontalPadding","chipGap"]);function u(e){if(!a.has(e)){const t=[...a].join(", ");(0,i.throwWithCause)(`[ThemeBuilder] Invalid color scheme: "${e}". Must be one of: ${t}.`)}return e}function d(e){if(!l.has(e)){const t=[...l].join(", ");(0,i.throwWithCause)(`[ThemeBuilder] Invalid density: "${e}". Must be one of: ${t}.`)}return e}function p(e,t){Object.entries(e).forEach(e=>{let[r,o]=e;const s=`${t}.${r}`;"string"!=typeof o&&((0,n.isObject)(o)?p(o,s):(0,i.throwWithCause)(`[ThemeBuilder] ${s} must be a string or an object.`))})}function g(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{type:i="key",warnMissing:s=!1}=n;if(!e)return void(s&&(0,o.warn)(`[ThemeBuilder] No ${i}s provided in ${r}. All ${i}s are missing.`));if(Object.keys(e).forEach(e=>{t.has(e)||(0,o.warn)(`[ThemeBuilder] Unknown ${i} key: "${e}" in ${r}. This may be a custom ${i} or a typo.`)}),s){const n=[];t.forEach(t=>{t in e||n.push(t)}),n.length>0&&(0,o.warn)(`[ThemeBuilder] Missing ${i}(s) in ${r}: ${n.join(", ")}`)}}},29029(e,t,r){"use strict";t.__esModule=!0;var n=r(4979);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))});var o=r(56790);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))})},56790(e,t,r){"use strict";t.__esModule=!0,t.getTheme=p,t.getThemeNames=function(){return h()},t.getThemes=function(){return c()},t.hasTheme=d,t.registerTheme=function(e,t){const{themeName:r,themeConfigObject:n}=g(e,t),i=(0,s.createTheme)(n);if(d(r))return(0,o.warn)(`Theme "${r}" is already registered. Registration skipped.`),p(r);return u(r,i),i},t.reinitTheme=function(e,t){const{themeName:r,themeConfigObject:n}=g(e,t);if(!d(r))return void(0,o.warn)(`Theme "${r}" is not registered. Cannot reinitialize a non-existent theme.`);const i=(0,s.createTheme)(n);return u(r,i),i};var n=r(81185),o=r(28065),i=r(65517),s=r(85796);const{hasItem:a,getItem:l,getNames:h,getValues:c,register:u}=(0,i.staticRegister)("themes");function d(e){return a(e)}function p(e){if(d(e))return l(e);(0,o.warn)(`Theme "${e}" is not registered. Please ensure it is registered before using it.`)}function g(e,t){let r=e,o=(0,n.deepClone)(t);return"string"==typeof e&&(0,n.isObject)(t)?o.name=e:(0,n.isObject)(e)&&(o=(0,n.deepClone)(e),r=o.name),{themeName:r,themeConfigObject:o}}},5371(e,t){"use strict";t.__esModule=!0;t.default={primary:{100:"#7aadffff",200:"#6a9bffff",300:"#6985b9ff",400:"#8eb0e7ff",500:"#5292f7ff",600:"#3e7ee3ff"},palette:{50:"#f0f0f0ff",100:"#dcdcdcff",200:"#ccccccff",300:"#c6c6c6ff",400:"#999999ff",500:"#777777ff",600:"#5c5c5cff",700:"#404040ff",800:"#313131ff",900:"#222222ff",950:"#0f0f10ff"},white:"#ffffffff",black:"#000000ff",transparent:"#ffffff00"}},36276(e,t){"use strict";t.__esModule=!0;t.default={primary:{100:"#f2c051ff",200:"#f1b93eff",300:"#d7a52aff",400:"#57c784ff",500:"#37bc6cff",600:"#32a961ff"},palette:{50:"#f7f7f9ff",100:"#e7e7e9ff",200:"#d1d1d4ff",300:"#b5b5b9ff",400:"#aeaeaeff",500:"#727272ff",600:"#353535ff",700:"#262624ff",800:"#222222ff",900:"#19191cff",950:"#070604ff"},white:"#ffffffff",black:"#000000ff",transparent:"#ffffff00"}},67738(e,t){"use strict";t.__esModule=!0;t.default={white:"#ffffffff",black:"#000000ff",primary:{100:"#6180ffff",200:"#5573f0ff",300:"#4669f6ff",400:"#2e56fcff",500:"#1a42e8ff",600:"#1535bcff"},palette:{50:"#f7f7f9ff",100:"#e7e7e9ff",200:"#b9b9bbff",300:"#a3a3a3ff",400:"#68696cff",500:"#404144ff",600:"#313132ff",700:"#282829ff",800:"#222222ff",900:"#1e1e1fff",950:"#050506ff"},transparent:"#ffffff00"}},90030(e,t){"use strict";t.__esModule=!0;t.default={default:{cellVertical:"sizing.size_1",cellHorizontal:"sizing.size_2",barsHorizontal:"sizing.size_4",barsVertical:"sizing.size_2",gap:"sizing.size_1",buttonHorizontal:"sizing.size_3",buttonVertical:"sizing.size_1_5",dialogHorizontal:"sizing.size_2",dialogVertical:"sizing.size_2",inputHorizontal:"sizing.size_3",inputVertical:"sizing.size_1_5",menuVertical:"sizing.size_2",menuHorizontal:"sizing.size_0",menuItemVertical:"sizing.size_1",menuItemHorizontal:"sizing.size_3"},compact:{cellVertical:"sizing.size_0_5",cellHorizontal:"sizing.size_1_5",barsHorizontal:"sizing.size_2",barsVertical:"sizing.size_1",gap:"sizing.size_0_5",buttonHorizontal:"sizing.size_2",buttonVertical:"sizing.size_0_5",dialogHorizontal:"sizing.size_1_5",dialogVertical:"sizing.size_1_5",inputHorizontal:"sizing.size_2",inputVertical:"sizing.size_0_5",menuVertical:"sizing.size_2",menuHorizontal:"sizing.size_0",menuItemVertical:"sizing.size_0_5",menuItemHorizontal:"sizing.size_2"},comfortable:{cellVertical:"sizing.size_2",cellHorizontal:"sizing.size_3",barsHorizontal:"sizing.size_4",barsVertical:"sizing.size_2",gap:"sizing.size_1_5",buttonHorizontal:"sizing.size_4",buttonVertical:"sizing.size_2",dialogHorizontal:"sizing.size_3",dialogVertical:"sizing.size_3",inputHorizontal:"sizing.size_4",inputVertical:"sizing.size_2",menuVertical:"sizing.size_3",menuHorizontal:"sizing.size_0",menuItemVertical:"sizing.size_2",menuItemHorizontal:"sizing.size_2"}}},602(e,t){"use strict";t.__esModule=!0;const r=(e,t)=>`width: var(--ht-icon-size);\n height: var(--ht-icon-size);\n -webkit-mask-size: contain;\n -webkit-mask-image: url("${e[t]}");\n background-color: currentColor;`;t.iconsMap=(e,t)=>{const n=t?`[class*=${t}] `:"";return`${n}.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper::after,\n${n}.htContextMenu table tbody tr td.htSubmenu .htItemWrapper::after,\n${n}.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper::after,\n${n}.pika-single .pika-next {\n ${r(e,"arrowRight")}\n}\n\n${n}.pika-single .pika-prev {\n ${r(e,"arrowLeft")}\n}\n\n${n}.ht-page-size-section__select-wrapper::after {\n ${r(e,"arrowDown")}\n}\n\n${n}.changeType::before {\n ${r(e,"menu")}\n}\n\n${n}.htUISelectCaption::after,\n.htAutocompleteArrow::after {\n ${r(e,"selectArrow")}\n}\n\n${n}.columnSorting.sortAction.ascending::before {\n ${r(e,"arrowNarrowUp")}\n}\n\n${n}.columnSorting.sortAction.descending::before {\n ${r(e,"arrowNarrowDown")}\n}\n\n${n}.ht-page-navigation-section .ht-page-first::before {\n ${r(e,"arrowLeftWithBar")}\n}\n\n${n}[dir="rtl"] .ht-page-navigation-section .ht-page-first::before {\n ${r(e,"arrowRightWithBar")}\n}\n\n${n}.ht-page-navigation-section .ht-page-prev::before {\n ${r(e,"arrowLeft")}\n}\n\n${n}[dir="rtl"] .ht-page-navigation-section .ht-page-prev::before {\n ${r(e,"arrowRight")}\n}\n\n${n}.ht-page-navigation-section .ht-page-next::before {\n ${r(e,"arrowRight")}\n}\n\n${n}[dir="rtl"] .ht-page-navigation-section .ht-page-next::before {\n ${r(e,"arrowLeft")}\n}\n\n${n}.ht-page-navigation-section .ht-page-last::before {\n ${r(e,"arrowRightWithBar")}\n}\n\n${n}[dir="rtl"] .ht-page-navigation-section .ht-page-last::before {\n ${r(e,"arrowLeftWithBar")}\n}\n\n${n}.htDropdownMenu table tbody tr td .htItemWrapper span.selected::after,\n${n}.htContextMenu table tbody tr td .htItemWrapper span.selected::after,\n${n}.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected::after {\n ${r(e,"check")}\n}\n\n${n}.htCheckboxRendererInput {\n appearance: none;\n}\n\n${n}.htCheckboxRendererInput::after {\n ${r(e,"checkbox")}\n}\n\n${n}th.beforeHiddenColumn::after {\n ${r(e,"caretHiddenLeft")}\n}\n\n${n}th.afterHiddenColumn::before {\n ${r(e,"caretHiddenRight")}\n}\n\n${n}th.beforeHiddenRow::after {\n ${r(e,"caretHiddenUp")}\n}\n\n${n}th.afterHiddenRow::before {\n ${r(e,"caretHiddenDown")}\n}\n\n${n}.collapsibleIndicator::before,\n${n}.ht_nestingButton::before {\n ${r(e,"collapseOff")}\n}\n\n${n}.collapsibleIndicator.collapsed::before,\n${n}.ht_nestingButton.ht_nestingExpand::before {\n ${r(e,"collapseOn")}\n}\n\n${n}.htUIRadio > input[type="radio"]::after {\n ${r(e,"radio")}\n}\n\n${n}.ht-multi-select-chip-remove::before {\n ${r(e,"chipClose")}\n}\n\n${n}.ht-multi-select-editor-search-icon {\n ${r(e,"search")}\n}\n\n${n}.ht-multi-select-editor-item-selected input::after {\n ${r(e,"checkbox")}\n}`}},80260(e,t){"use strict";t.__esModule=!0;t.default={arrowRight:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.64648 10.9393L9.93938 7.64644L6.64648 4.35354' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowRightWithBar:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.9292 4.64188L8.27934 7.99203L4.9292 11.3422M11.0711 4.08353V11.3422' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",arrowLeft:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.93945 10.9393L6.64656 7.64644L9.93945 4.35354' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowLeftWithBar:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0713 4.64188L7.72115 7.99203L11.0713 11.3422M4.92936 4.08353L4.92936 11.3422' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",arrowDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.6'%3E%3Cpath d='M11.5859 6L8.29304 9.29289L5.00015 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E",menu:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.83337 7.99984C6.83337 8.30926 6.95629 8.606 7.17508 8.8248C7.39388 9.04359 7.69062 9.1665 8.00004 9.1665C8.30946 9.1665 8.60621 9.04359 8.825 8.8248C9.04379 8.606 9.16671 8.30926 9.16671 7.99984C9.16671 7.69042 9.04379 7.39367 8.825 7.17488C8.60621 6.95609 8.30946 6.83317 8.00004 6.83317C7.69062 6.83317 7.39388 6.95609 7.17508 7.17488C6.95629 7.39367 6.83337 7.69042 6.83337 7.99984Z' fill='%23222222'/%3E%3Cpath d='M6.83337 12.4165C6.83337 12.7259 6.95629 13.0227 7.17508 13.2415C7.39388 13.4603 7.69062 13.5832 8.00004 13.5832C8.30946 13.5832 8.60621 13.4603 8.825 13.2415C9.04379 13.0227 9.16671 12.7259 9.16671 12.4165C9.16671 12.1071 9.04379 11.8103 8.825 11.5915C8.60621 11.3728 8.30946 11.2498 8.00004 11.2498C7.69062 11.2498 7.39388 11.3728 7.17508 11.5915C6.95629 11.8103 6.83337 12.1071 6.83337 12.4165Z' fill='%23222222'/%3E%3Cpath d='M6.83337 3.58317C6.83337 3.89259 6.95629 4.18934 7.17508 4.40813C7.39388 4.62692 7.69062 4.74984 8.00004 4.74984C8.30946 4.74984 8.60621 4.62692 8.825 4.40813C9.04379 4.18934 9.16671 3.89259 9.16671 3.58317C9.16671 3.27375 9.04379 2.97701 8.825 2.75821C8.60621 2.53942 8.30946 2.4165 8.00004 2.4165C7.69062 2.4165 7.39388 2.53942 7.17508 2.75821C6.95629 2.97701 6.83337 3.27375 6.83337 3.58317Z' fill='currentColor'/%3E%3C/svg%3E",selectArrow:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 6L8.29289 9.29289L11.5858 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowNarrowUp:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.00008 12.6667L8.00008 3.33335M8.00008 3.33335L5.33342 6.00002M8.00008 3.33335L10.6667 6.00002' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowNarrowDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.99992 3.33331V12.6666M7.99992 12.6666L10.6666 9.99998M7.99992 12.6666L5.33325 9.99998' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",check:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.3335 8.00002L6.66683 11.3334L13.3335 4.66669' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",checkbox:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L7 10L11 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",caretHiddenLeft:"data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.07209 0.856828C6.08637 0.855597 6.1007 0.85498 6.11503 0.85498H6.17649C6.19083 0.85498 6.20515 0.855597 6.21944 0.856828L6.24964 0.859432C6.26009 0.860333 6.2705 0.861561 6.28087 0.863116L6.31212 0.867804C6.31889 0.86882 6.32565 0.869975 6.33238 0.871269L6.35946 0.876478C6.37551 0.879565 6.3914 0.883438 6.40708 0.888082L6.46333 0.904748C6.47851 0.909248 6.49348 0.914467 6.50817 0.920388L6.54307 0.93445C6.55923 0.940963 6.57504 0.948316 6.59043 0.956479L6.65918 0.992938C6.67949 1.00371 6.69903 1.01587 6.71767 1.02933L6.76455 1.06318C6.77915 1.07372 6.79316 1.08505 6.80654 1.09711L6.84873 1.13513C6.86284 1.14785 6.87622 1.16136 6.88879 1.1756L6.93202 1.22456C6.94435 1.23852 6.95589 1.25316 6.96659 1.26842L6.99471 1.30852C7.00421 1.32206 7.01303 1.33606 7.02113 1.35048L7.04926 1.40048C7.05508 1.41082 7.06053 1.42137 7.06559 1.4321L7.07445 1.45085C7.07858 1.45961 7.08246 1.46848 7.08608 1.47746L7.10014 1.51236C7.10607 1.52705 7.11129 1.54202 7.11579 1.55721L7.13245 1.61346C7.13726 1.62969 7.14124 1.64616 7.14438 1.66279L7.15157 1.70089L7.15667 1.73216C7.15927 1.74779 7.16113 1.76354 7.16224 1.77936L7.16433 1.80904C7.16475 1.81506 7.16506 1.82108 7.16527 1.8271L7.16631 1.85783L7.16659 1.87477V8.12477C7.16659 8.99803 6.15887 9.44746 5.5073 8.92171C5.49997 8.91579 5.49281 8.90967 5.48582 8.90335L5.44207 8.86377C5.4359 8.85818 5.42987 8.85244 5.42398 8.84656L2.29898 5.72155C2.12322 5.54577 2.01761 5.31189 2.00201 5.0638C1.98641 4.81571 2.06187 4.57045 2.21423 4.37404C2.22073 4.36567 2.22749 4.3575 2.2345 4.34956L2.27773 4.3006C2.28458 4.29285 2.29166 4.28531 2.29898 4.27799L5.42398 1.15299C5.43129 1.14567 5.43884 1.13859 5.44659 1.13174L5.49555 1.08851C5.50951 1.07618 5.52415 1.06464 5.5394 1.05395L5.57951 1.02582C5.59305 1.01633 5.60705 1.00751 5.62147 0.9994L5.67147 0.971275C5.68181 0.965458 5.69235 0.96001 5.70308 0.954943L5.72183 0.946089C5.73059 0.941952 5.73947 0.93807 5.74846 0.934449L5.78336 0.920387C5.79805 0.914467 5.81301 0.909248 5.8282 0.904749L5.88445 0.888082C5.90068 0.883272 5.91715 0.879289 5.93379 0.87615L5.96139 0.870942C5.96714 0.869856 5.97291 0.868872 5.9787 0.86799L6.00943 0.863302C6.0202 0.861659 6.03102 0.860368 6.04188 0.859432L6.07209 0.856828ZM6.13512 1.85781L6.12011 1.87107L3.01706 4.97412L3.00168 4.99154C3.00041 4.99451 2.99984 4.99777 3.00004 5.00104C3.00036 5.0061 3.00251 5.01086 3.00609 5.01445M3.00609 5.01445L6.12226 8.13062L6.13954 8.14626C6.1418 8.14647 6.14848 8.14635 6.15542 8.14308C6.1622 8.13989 6.16489 8.13638 6.16522 8.13589C6.16536 8.13543 6.16659 8.1316 6.16659 8.12477V1.88324L6.16623 1.87249L6.16491 1.86803L6.16272 1.86413L6.15846 1.85932L6.15029 1.85498H6.14119L6.13902 1.85563L6.13512 1.85781' fill='currentColor'/%3E%3C/svg%3E",caretHiddenRight:"data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.83337 1.87506C3.83337 1.87507 3.83337 1.87505 3.83337 1.87506L3.83441 8.12961L3.83506 8.1318L3.83725 8.1357L3.8415 8.14051L3.84973 8.14488L3.8514 8.14537L3.85344 8.14558L3.85649 8.14553L3.86095 8.1442L3.86485 8.14201L3.87986 8.12876L6.98291 5.02571L6.99829 5.00829C6.99956 5.00532 7.00013 5.00207 6.99993 4.99879C6.99961 4.99373 6.99746 4.98897 6.99388 4.98538M3.87772 1.86922L6.99388 4.98538ZM3.87772 1.86922L3.86043 1.85358C3.85817 1.85336 3.85149 1.85348 3.84455 1.85675C3.83777 1.85994 3.83508 1.86345 3.83475 1.86394C3.83461 1.8644 3.83338 1.86828 3.83337 1.87506C3.83337 1.87507 3.83337 1.87505 3.83337 1.87506M2.83337 1.87506C2.83337 1.0018 3.8411 0.552371 4.49267 1.07813C4.5 1.08404 4.50716 1.09016 4.51414 1.09648L4.55789 1.13606C4.56407 1.14165 4.5701 1.14739 4.57599 1.15328L7.70099 4.27828C7.87675 4.45406 7.98236 4.68795 7.99796 4.93603C8.01355 5.18412 7.9381 5.42938 7.78574 5.62579C7.77924 5.63416 7.77248 5.64233 7.76547 5.65027L7.72224 5.69923C7.71539 5.70698 7.70831 5.71453 7.70099 5.72184L4.57599 8.84684C4.56867 8.85416 4.56113 8.86124 4.55338 8.86809L4.50442 8.91132C4.49046 8.92365 4.47582 8.93519 4.46056 8.94588L4.42046 8.97401C4.40692 8.9835 4.39292 8.99232 4.37851 9.00043L4.32851 9.02855C4.31816 9.03437 4.30761 9.03982 4.29688 9.04489L4.27813 9.05374C4.26937 9.05788 4.26049 9.06176 4.2515 9.06538L4.21661 9.07945C4.20192 9.08536 4.18696 9.09058 4.17178 9.09508L4.11553 9.11175C4.09929 9.11656 4.08281 9.12054 4.06617 9.12368L4.02809 9.13087L3.99683 9.13596C3.98119 9.13857 3.96544 9.14043 3.94962 9.14154L3.91994 9.14362C3.91392 9.14404 3.90791 9.14436 3.90188 9.14456L3.87115 9.1456C3.85986 9.14599 3.84856 9.14599 3.83726 9.1456L3.80653 9.14456C3.79786 9.14427 3.78919 9.14375 3.78054 9.143L3.75033 9.1404C3.73988 9.1395 3.72947 9.13827 3.71909 9.13671L3.68784 9.13202C3.68108 9.13101 3.67433 9.12986 3.66761 9.12856L3.64053 9.12336C3.62447 9.12027 3.60857 9.11639 3.59289 9.11175L3.53664 9.09508C3.52145 9.09058 3.50649 9.08536 3.49181 9.07945L3.45691 9.06538C3.44075 9.05887 3.42493 9.05151 3.40953 9.04335L3.34079 9.00689C3.32048 8.99612 3.30094 8.98396 3.2823 8.9705L3.23542 8.93665C3.22083 8.92611 3.20681 8.91478 3.19343 8.90273L3.15124 8.86471C3.13713 8.85199 3.12375 8.83847 3.11118 8.82423L3.06795 8.77527C3.05562 8.76131 3.04408 8.74667 3.03338 8.73141L3.00526 8.69131C2.99576 8.67777 2.98694 8.66377 2.97884 8.64936L2.95071 8.59936C2.94489 8.58901 2.93944 8.57846 2.93437 8.56772L2.92552 8.54897C2.92138 8.54022 2.91751 8.53135 2.91389 8.52237L2.89982 8.48747C2.8939 8.47278 2.88868 8.45781 2.88418 8.44262L2.86752 8.38637C2.86271 8.37014 2.85872 8.35367 2.85559 8.33704L2.8484 8.29894L2.8433 8.26767C2.8407 8.25204 2.83883 8.23629 2.83773 8.22047L2.83564 8.19079C2.83483 8.17917 2.83442 8.16752 2.83442 8.15587L2.83337 1.87506Z' fill='currentColor'/%3E%3C/svg%3E",caretHiddenUp:"data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.76425 2.43099C3.82165 2.3736 3.89801 2.33913 3.97902 2.33403C4.06003 2.32894 4.14012 2.35358 4.20425 2.40333L4.23558 2.43099L6.23558 4.43099L6.26325 4.46233L6.28125 4.48799L6.29925 4.51999L6.30492 4.53199L6.31392 4.55433L6.32458 4.59033L6.32792 4.60799L6.33125 4.62799L6.33258 4.64699L6.33325 4.66666L6.33258 4.68633L6.33092 4.70566L6.32792 4.72566L6.32458 4.74299L6.31392 4.77899L6.30492 4.80133L6.28158 4.84533L6.25992 4.87533L6.23558 4.90233L6.20425 4.92999L6.17858 4.94799L6.14658 4.96599L6.13458 4.97166L6.11225 4.98066L6.07625 4.99133L6.05858 4.99466L6.03858 4.99799L6.01958 4.99933L5.99992 4.99999H1.99992C1.71592 4.99999 1.56758 4.67133 1.73892 4.45899L1.76425 4.43099L3.76425 2.43099Z' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",caretHiddenDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.9999 3C6.2839 3 6.43224 3.32867 6.2609 3.541L6.23557 3.569L4.23557 5.569C4.17817 5.62639 4.10181 5.66087 4.0208 5.66596C3.93979 5.67106 3.8597 5.64642 3.79557 5.59667L3.76424 5.569L1.76424 3.569L1.73657 3.53767L1.71857 3.512L1.70057 3.48L1.6949 3.468L1.6859 3.44567L1.67524 3.40967L1.6719 3.392L1.66857 3.372L1.66724 3.353V3.31367L1.6689 3.29433L1.6719 3.27433L1.67524 3.257L1.6859 3.221L1.6949 3.19867L1.71824 3.15467L1.7399 3.12467L1.76424 3.09767L1.79557 3.07L1.82124 3.052L1.85324 3.034L1.86524 3.02833L1.88757 3.01933L1.92357 3.00867L1.94124 3.00533L1.96124 3.002L1.98024 3.00067L5.9999 3Z' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",collapseOff:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.33325 8H11.6666' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",collapseOn:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.49988 11.6667C7.49988 11.9428 7.72374 12.1667 7.99988 12.1667C8.27602 12.1667 8.49988 11.9428 8.49988 11.6667V8.50002H11.6666C11.9427 8.50002 12.1666 8.27616 12.1666 8.00002C12.1666 7.72388 11.9427 7.50002 11.6666 7.50002H8.49988V4.33337C8.49988 4.05723 8.27602 3.83337 7.99988 3.83337C7.72374 3.83337 7.49988 4.05723 7.49988 4.33337V7.50002H4.33325C4.05711 7.50002 3.83325 7.72388 3.83325 8.00002C3.83325 8.27616 4.05711 8.50002 4.33325 8.50002H7.49988V11.6667Z' fill='currentColor'/%3E%3C/svg%3E%0A",radio:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='4' fill='currentColor'/%3E%3C/svg%3E%0A",chipClose:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4L4 12M4 4L12 12' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",search:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cg opacity='0.5'%3E%3Cpath d='M28 28L20 20M4 13.3333C4 14.559 4.24141 15.7727 4.71046 16.905C5.1795 18.0374 5.86699 19.0663 6.73367 19.933C7.60035 20.7997 8.62925 21.4872 9.76162 21.9562C10.894 22.4253 12.1077 22.6667 13.3333 22.6667C14.559 22.6667 15.7727 22.4253 16.905 21.9562C18.0374 21.4872 19.0663 20.7997 19.933 19.933C20.7997 19.0663 21.4872 18.0374 21.9562 16.905C22.4253 15.7727 22.6667 14.559 22.6667 13.3333C22.6667 12.1077 22.4253 10.894 21.9562 9.76162C21.4872 8.62925 20.7997 7.60035 19.933 6.73367C19.0663 5.86699 18.0374 5.1795 16.905 4.71046C15.7727 4.24141 14.559 4 13.3333 4C12.1077 4 10.894 4.24141 9.76162 4.71046C8.62925 5.1795 7.60035 5.86699 6.73367 6.73367C5.86699 7.60035 5.1795 8.62925 4.71046 9.76162C4.24141 10.894 4 12.1077 4 13.3333Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E"}},80074(e,t){"use strict";t.__esModule=!0;t.default={arrowRight:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.64648 10.9393L9.93938 7.64644L6.64648 4.35354' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowRightWithBar:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.9292 4.64188L8.27934 7.99203L4.9292 11.3422M11.0711 4.08353V11.3422' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",arrowLeft:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.93933 10.9393L6.64644 7.64644L9.93933 4.35354' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowLeftWithBar:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0713 4.64188L7.72115 7.99203L11.0713 11.3422M4.92936 4.08353L4.92936 11.3422' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",arrowDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.6'%3E%3Cpath d='M11.5859 6L8.29304 9.29289L5.00015 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E",menu:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0002 6.66663C11.4262 6.66663 11.6487 7.15963 11.3917 7.47813L11.3537 7.52013L8.35372 10.5201C8.26762 10.6062 8.15307 10.6579 8.03156 10.6656C7.91005 10.6732 7.78992 10.6363 7.69372 10.5616L7.64672 10.5201L4.64672 7.52013L4.60522 7.47313L4.57822 7.43463L4.55122 7.38663L4.54272 7.36863L4.52922 7.33513L4.51322 7.28113L4.50822 7.25463L4.50322 7.22463L4.50122 7.19613V7.13713L4.50372 7.10813L4.50822 7.07813L4.51322 7.05213L4.52922 6.99813L4.54272 6.96463L4.57772 6.89863L4.61022 6.85363L4.64672 6.81313L4.69372 6.77163L4.73222 6.74463L4.78022 6.71763L4.79822 6.70913L4.83172 6.69563L4.88572 6.67963L4.91222 6.67463L4.94222 6.66963L4.97072 6.66763L11.0002 6.66663Z' fill='currentColor'/%3E%3C/svg%3E%0A",selectArrow:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0002 6.66663C11.4262 6.66663 11.6487 7.15963 11.3917 7.47813L11.3537 7.52013L8.35372 10.5201C8.26762 10.6062 8.15307 10.6579 8.03156 10.6656C7.91005 10.6732 7.78992 10.6363 7.69372 10.5616L7.64672 10.5201L4.64672 7.52013L4.60522 7.47313L4.57822 7.43463L4.55122 7.38663L4.54272 7.36863L4.52922 7.33513L4.51322 7.28113L4.50822 7.25463L4.50322 7.22463L4.50122 7.19613V7.13713L4.50372 7.10813L4.50822 7.07813L4.51322 7.05213L4.52922 6.99813L4.54272 6.96463L4.57772 6.89863L4.61022 6.85363L4.64672 6.81313L4.69372 6.77163L4.73222 6.74463L4.78022 6.71763L4.79822 6.70913L4.83172 6.69563L4.88572 6.67963L4.91222 6.67463L4.94222 6.66963L4.97072 6.66763L11.0002 6.66663Z' fill='currentColor'/%3E%3C/svg%3E%0A",arrowNarrowUp:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.00008 12.6667L8.00008 3.33335M8.00008 3.33335L5.33342 6.00002M8.00008 3.33335L10.6667 6.00002' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowNarrowDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.00004 3.33331V12.6666M8.00004 12.6666L10.6667 9.99998M8.00004 12.6666L5.33337 9.99998' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",check:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.33337 8.00002L6.66671 11.3334L13.3334 4.66669' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",checkbox:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L7 10L11 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",caretHiddenLeft:"data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.08482 1.35771L6.11503 1.3551H6.17649L6.2067 1.35771L6.23795 1.36239L6.26503 1.3676L6.32128 1.38427L6.35618 1.39833L6.42493 1.43479L6.4718 1.46864L6.51399 1.50667L6.55722 1.55562L6.58534 1.59573L6.61347 1.64573L6.62232 1.66448L6.63639 1.69937L6.65305 1.75562L6.65826 1.78323L6.66347 1.81448L6.66555 1.84417L6.66659 1.87489V8.12489C6.66659 8.56864 6.15305 8.80042 5.82128 8.53271L5.77753 8.49312L2.65253 5.36812C2.56286 5.27844 2.50899 5.15912 2.50103 5.03254C2.49307 4.90596 2.53157 4.78083 2.6093 4.68062L2.65253 4.63167L5.77753 1.50667L5.82649 1.46344L5.86659 1.43531L5.91659 1.40719L5.93534 1.39833L5.97024 1.38427L6.02649 1.3676L6.05409 1.36239L6.08482 1.35771Z' fill='currentColor'/%3E%3C/svg%3E",caretHiddenRight:"data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.33337 1.87499C3.33337 1.43124 3.84692 1.19947 4.17869 1.46718L4.22244 1.50676L7.34744 4.63176C7.43711 4.72145 7.49098 4.84077 7.49894 4.96735C7.5069 5.09392 7.4684 5.21905 7.39067 5.31926L7.34744 5.36822L4.22244 8.49322L4.17348 8.53645L4.13337 8.56457L4.08337 8.5927L4.06462 8.60155L4.02973 8.61562L3.97348 8.63228L3.94587 8.63749L3.91462 8.6427L3.88494 8.64478L3.85421 8.64582L3.82348 8.64478L3.79327 8.64218L3.76202 8.63749L3.73494 8.63228L3.67869 8.61562L3.64379 8.60155L3.57504 8.5651L3.52817 8.53124L3.48598 8.49322L3.44275 8.44426L3.41462 8.40416L3.3865 8.35416L3.37764 8.33541L3.36358 8.30051L3.34692 8.24426L3.34171 8.21666L3.3365 8.18541L3.33442 8.15572L3.33337 1.87499Z' fill='currentColor'/%3E%3C/svg%3E",caretHiddenUp:"data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.76425 2.43099C3.82165 2.3736 3.89801 2.33913 3.97902 2.33403C4.06003 2.32894 4.14012 2.35358 4.20425 2.40333L4.23558 2.43099L6.23558 4.43099L6.26325 4.46233L6.28125 4.48799L6.29925 4.51999L6.30492 4.53199L6.31392 4.55433L6.32458 4.59033L6.32792 4.60799L6.33125 4.62799L6.33258 4.64699L6.33325 4.66666L6.33258 4.68633L6.33092 4.70566L6.32792 4.72566L6.32458 4.74299L6.31392 4.77899L6.30492 4.80133L6.28158 4.84533L6.25992 4.87533L6.23558 4.90233L6.20425 4.92999L6.17858 4.94799L6.14658 4.96599L6.13458 4.97166L6.11225 4.98066L6.07625 4.99133L6.05858 4.99466L6.03858 4.99799L6.01958 4.99933L5.99992 4.99999H1.99992C1.71592 4.99999 1.56758 4.67133 1.73892 4.45899L1.76425 4.43099L3.76425 2.43099Z' fill='currentColor'/%3E%3C/svg%3E%0A",caretHiddenDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.9999 3C6.2839 3 6.43224 3.32867 6.2609 3.541L6.23557 3.569L4.23557 5.569C4.17817 5.62639 4.10181 5.66087 4.0208 5.66596C3.93979 5.67106 3.8597 5.64642 3.79557 5.59667L3.76424 5.569L1.76424 3.569L1.73657 3.53767L1.71857 3.512L1.70057 3.48L1.6949 3.468L1.6859 3.44567L1.67524 3.40967L1.6719 3.392L1.66857 3.372L1.66724 3.353V3.31367L1.6689 3.29433L1.6719 3.27433L1.67524 3.257L1.6859 3.221L1.6949 3.19867L1.71824 3.15467L1.7399 3.12467L1.76424 3.09767L1.79557 3.07L1.82124 3.052L1.85324 3.034L1.86524 3.02833L1.88757 3.01933L1.92357 3.00867L1.94124 3.00533L1.96124 3.002L1.98024 3.00067L5.9999 3Z' fill='currentColor'/%3E%3C/svg%3E%0A",collapseOff:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.33325 8H11.6666' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",collapseOn:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.49988 11.6667C7.49988 11.9428 7.72374 12.1667 7.99988 12.1667C8.27602 12.1667 8.49988 11.9428 8.49988 11.6667V8.50002H11.6666C11.9427 8.50002 12.1666 8.27616 12.1666 8.00002C12.1666 7.72388 11.9427 7.50002 11.6666 7.50002H8.49988V4.33337C8.49988 4.05723 8.27602 3.83337 7.99988 3.83337C7.72374 3.83337 7.49988 4.05723 7.49988 4.33337V7.50002H4.33325C4.05711 7.50002 3.83325 7.72388 3.83325 8.00002C3.83325 8.27616 4.05711 8.50002 4.33325 8.50002H7.49988V11.6667Z' fill='currentColor'/%3E%3C/svg%3E%0A",radio:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='4' fill='currentColor'/%3E%3C/svg%3E%0A",chipClose:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4L4 12M4 4L12 12' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",search:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cg opacity='0.5'%3E%3Cpath d='M28 28L20 20M4 13.3333C4 14.559 4.24141 15.7727 4.71046 16.905C5.1795 18.0374 5.86699 19.0663 6.73367 19.933C7.60035 20.7997 8.62925 21.4872 9.76162 21.9562C10.894 22.4253 12.1077 22.6667 13.3333 22.6667C14.559 22.6667 15.7727 22.4253 16.905 21.9562C18.0374 21.4872 19.0663 20.7997 19.933 19.933C20.7997 19.0663 21.4872 18.0374 21.9562 16.905C22.4253 15.7727 22.6667 14.559 22.6667 13.3333C22.6667 12.1077 22.4253 10.894 21.9562 9.76162C21.4872 8.62925 20.7997 7.60035 19.933 6.73367C19.0663 5.86699 18.0374 5.1795 16.905 4.71046C15.7727 4.24141 14.559 4 13.3333 4C12.1077 4 10.894 4.24141 9.76162 4.71046C8.62925 5.1795 7.60035 5.86699 6.73367 6.73367C5.86699 7.60035 5.1795 8.62925 4.71046 9.76162C4.24141 10.894 4 12.1077 4 13.3333Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E"}},55486(e,t){"use strict";t.__esModule=!0;t.default={size_0:"0px",size_0_5:"2px",size_1:"4px",size_2:"8px",size_1_5:"6px",size_3:"12px",size_4:"16px",size_5:"20px",size_6:"24px",size_7:"28px",size_8:"32px",size_9:"36px",size_10:"40px",size_0_25:"1px"}},17097(e,t){"use strict";t.__esModule=!0;t.default={fontFamily:"Inter",fontSize:"13px",fontSizeSmall:"11px",lineHeight:"21px",lineHeightSmall:"16px",fontWeight:"400",letterSpacing:"0px",borderColor:["colors.palette.200","colors.palette.700"],accentColor:["colors.primary.500","colors.primary.100"],foregroundColor:["colors.palette.800","colors.palette.300"],foregroundSecondaryColor:["colors.palette.500","colors.palette.400"],backgroundColor:["colors.white","colors.palette.950"],backgroundSecondaryColor:["colors.palette.50","colors.palette.900"],placeholderColor:["colors.palette.400","colors.palette.500"],readOnlyColor:["colors.palette.500","colors.palette.400"],disabledColor:["colors.palette.400","colors.palette.500"],gapSize:"density.gap",iconSize:"sizing.size_3",tableTransition:"0s",wrapperBorderWidth:"0px",wrapperBorderRadius:"sizing.size_0",wrapperBorderColor:"tokens.borderColor",barForegroundColor:"tokens.foregroundColor",barBackgroundColor:"tokens.backgroundSecondaryColor",barHorizontalPadding:"density.barsHorizontal",barVerticalPadding:"density.barsVertical",shadowColor:["colors.palette.800","colors.palette.300"],shadowX:"sizing.size_0_25",shadowY:"sizing.size_0_25",shadowBlur:"sizing.size_0",shadowOpacity:"8%",cellHorizontalPadding:"density.cellHorizontal",cellVerticalPadding:"density.cellVertical",cellHorizontalBorderColor:"tokens.borderColor",cellVerticalBorderColor:"tokens.borderColor",cellSelectionBorderColor:"tokens.accentColor",cellSelectionBackgroundColor:"tokens.accentColor",cellSuccessBackgroundColor:"#37bc6c33",cellErrorBackgroundColor:"#fa4d3233",cellReadOnlyBackgroundColor:"colors.transparent",cellAutofillSize:"sizing.size_1_5",cellAutofillHitAreaSize:"sizing.size_3",cellAutofillBorderWidth:"sizing.size_0_25",cellAutofillBorderRadius:"sizing.size_0",cellAutofillBorderColor:"tokens.backgroundColor",cellAutofillBackgroundColor:"tokens.accentColor",cellAutofillFillBorderColor:"tokens.foregroundColor",cellEditorBorderWidth:"2px",cellEditorBorderColor:"tokens.accentColor",cellEditorForegroundColor:["colors.palette.950","colors.white"],cellEditorBackgroundColor:"tokens.backgroundColor",cellEditorShadowBlurRadius:"0px",cellEditorShadowColor:"tokens.accentColor",cellMobileHandleSize:"sizing.size_3",cellMobileHandleBorderWidth:"sizing.size_0_25",cellMobileHandleBorderRadius:"sizing.size_3",cellMobileHandleBorderColor:"tokens.accentColor",cellMobileHandleBackgroundColor:"tokens.accentColor",cellMobileHandleBackgroundOpacity:"40%",headerFontWeight:"tokens.fontWeight",headerForegroundColor:"tokens.foregroundColor",headerBackgroundColor:"tokens.backgroundSecondaryColor",headerHighlightedShadowSize:"0px",headerHighlightedForegroundColor:"tokens.foregroundColor",headerHighlightedBackgroundColor:["colors.palette.100","colors.palette.800"],headerActiveBorderColor:"tokens.borderColor",headerActiveForegroundColor:["colors.palette.950","colors.white"],headerActiveBackgroundColor:["colors.primary.400","colors.primary.300"],headerFilterBackgroundColor:"tokens.cellSuccessBackgroundColor",headerRowForegroundColor:"tokens.foregroundColor",headerRowBackgroundColor:"tokens.backgroundSecondaryColor",headerRowHighlightedForegroundColor:"tokens.foregroundColor",headerRowHighlightedBackgroundColor:["colors.palette.100","colors.palette.800"],headerRowActiveForegroundColor:["colors.palette.950","colors.white"],headerRowActiveBackgroundColor:["colors.primary.400","colors.primary.300"],rowHeaderOddBackgroundColor:"tokens.backgroundSecondaryColor",rowHeaderEvenBackgroundColor:"tokens.backgroundSecondaryColor",rowCellOddBackgroundColor:"tokens.backgroundColor",rowCellEvenBackgroundColor:"tokens.backgroundColor",buttonBorderRadius:"sizing.size_0_5",buttonHorizontalPadding:"density.buttonHorizontal",buttonVerticalPadding:"density.buttonVertical",primaryButtonBorderColor:"colors.transparent",primaryButtonForegroundColor:"tokens.backgroundColor",primaryButtonBackgroundColor:"tokens.accentColor",primaryButtonDisabledBorderColor:"colors.transparent",primaryButtonDisabledForegroundColor:"tokens.disabledColor",primaryButtonDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],primaryButtonHoverBorderColor:"colors.transparent",primaryButtonHoverForegroundColor:"tokens.backgroundColor",primaryButtonHoverBackgroundColor:["colors.primary.600","colors.primary.200"],primaryButtonFocusBorderColor:"tokens.backgroundColor",primaryButtonFocusForegroundColor:"tokens.backgroundColor",primaryButtonFocusBackgroundColor:"tokens.accentColor",secondaryButtonBorderColor:"tokens.borderColor",secondaryButtonForegroundColor:"tokens.foregroundColor",secondaryButtonBackgroundColor:"tokens.backgroundColor",secondaryButtonDisabledBorderColor:"tokens.borderColor",secondaryButtonDisabledForegroundColor:"tokens.disabledColor",secondaryButtonDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],secondaryButtonHoverBorderColor:"tokens.borderColor",secondaryButtonHoverForegroundColor:"tokens.foregroundColor",secondaryButtonHoverBackgroundColor:["colors.palette.50","colors.palette.900"],secondaryButtonFocusBorderColor:"tokens.borderColor",secondaryButtonFocusForegroundColor:"tokens.foregroundColor",secondaryButtonFocusBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonBorderRadius:"sizing.size_0_5",iconButtonLargeBorderRadius:"sizing.size_0_5",iconButtonLargePadding:"sizing.size_1",iconButtonBorderColor:["colors.palette.300","colors.palette.600"],iconButtonBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonIconColor:["colors.palette.400","colors.palette.500"],iconButtonHoverBorderColor:["colors.palette.400","colors.palette.500"],iconButtonHoverBackgroundColor:["colors.palette.50","colors.palette.900"],iconButtonHoverIconColor:["colors.palette.400","colors.palette.500"],iconButtonActiveBorderColor:["colors.palette.300","colors.palette.600"],iconButtonActiveBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonActiveIconColor:["colors.palette.400","colors.palette.500"],iconButtonActiveHoverBorderColor:["colors.palette.400","colors.palette.500"],iconButtonActiveHoverBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonActiveHoverIconColor:["colors.palette.400","colors.palette.500"],collapseButtonBorderRadius:"sizing.size_4",collapseButtonOpenBorderColor:["colors.palette.300","colors.palette.600"],collapseButtonOpenBackgroundColor:["colors.white","colors.palette.950"],collapseButtonOpenIconColor:["colors.palette.400","colors.palette.500"],collapseButtonOpenIconActiveColor:["colors.palette.400","colors.palette.500"],collapseButtonOpenHoverBorderColor:["colors.palette.300","colors.palette.600"],collapseButtonOpenHoverBackgroundColor:["colors.white","colors.palette.950"],collapseButtonOpenHoverIconColor:["colors.palette.400","colors.palette.500"],collapseButtonOpenHoverIconActiveColor:["colors.palette.400","colors.palette.500"],collapseButtonCloseBorderColor:["colors.palette.300","colors.palette.600"],collapseButtonCloseBackgroundColor:["colors.palette.50","colors.palette.900"],collapseButtonCloseIconColor:["colors.palette.400","colors.palette.500"],collapseButtonCloseIconActiveColor:["colors.palette.400","colors.palette.500"],collapseButtonCloseHoverBorderColor:["colors.palette.300","colors.palette.600"],collapseButtonCloseHoverBackgroundColor:["colors.palette.50","colors.palette.900"],collapseButtonCloseHoverIconColor:["colors.palette.400","colors.palette.500"],collapseButtonCloseHoverIconActiveColor:["colors.palette.400","colors.palette.500"],linkColor:["colors.primary.600","colors.primary.200"],linkHoverColor:["colors.primary.600","colors.primary.200"],inputBorderWidth:"1px",inputBorderRadius:"sizing.size_1",inputHorizontalPadding:"density.inputHorizontal",inputVerticalPadding:"density.inputVertical",inputBorderColor:"tokens.borderColor",inputForegroundColor:"tokens.foregroundColor",inputBackgroundColor:"tokens.backgroundSecondaryColor",inputHoverBorderColor:"tokens.borderColor",inputHoverForegroundColor:"tokens.foregroundColor",inputHoverBackgroundColor:"tokens.backgroundSecondaryColor",inputDisabledBorderColor:"tokens.borderColor",inputDisabledForegroundColor:"tokens.disabledColor",inputDisabledBackgroundColor:["colors.palette.300","colors.palette.600"],inputFocusBorderColor:"tokens.accentColor",inputFocusForegroundColor:"tokens.foregroundColor",inputFocusBackgroundColor:"tokens.backgroundSecondaryColor",checkboxSize:"tokens.iconSize",checkboxBorderRadius:"sizing.size_0_5",checkboxBorderColor:["colors.palette.400","colors.palette.500"],checkboxBackgroundColor:"tokens.backgroundColor",checkboxIconColor:"colors.transparent",checkboxFocusBorderColor:["colors.palette.400","colors.palette.500"],checkboxFocusBackgroundColor:"tokens.backgroundColor",checkboxFocusIconColor:"colors.transparent",checkboxFocusRingColor:"tokens.accentColor",checkboxDisabledBorderColor:["colors.palette.300","colors.palette.600"],checkboxDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],checkboxDisabledIconColor:"colors.transparent",checkboxCheckedBorderColor:["colors.primary.600","colors.primary.200"],checkboxCheckedBackgroundColor:"tokens.accentColor",checkboxCheckedIconColor:"tokens.backgroundColor",checkboxCheckedFocusBorderColor:"tokens.backgroundColor",checkboxCheckedFocusBackgroundColor:"tokens.accentColor",checkboxCheckedFocusIconColor:"tokens.backgroundColor",checkboxCheckedDisabledBorderColor:["colors.palette.300","colors.palette.600"],checkboxCheckedDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],checkboxCheckedDisabledIconColor:["colors.palette.300","colors.palette.600"],checkboxIndeterminateBorderColor:["colors.primary.600","colors.primary.200"],checkboxIndeterminateBackgroundColor:"tokens.accentColor",checkboxIndeterminateIconColor:"tokens.backgroundColor",checkboxIndeterminateFocusBorderColor:"tokens.backgroundColor",checkboxIndeterminateFocusBackgroundColor:"tokens.accentColor",checkboxIndeterminateFocusIconColor:"tokens.backgroundColor",checkboxIndeterminateDisabledBorderColor:["colors.palette.300","colors.palette.600"],checkboxIndeterminateDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],checkboxIndeterminateDisabledIconColor:["colors.palette.300","colors.palette.600"],radioSize:"tokens.iconSize",radioBorderColor:["colors.palette.400","colors.palette.500"],radioBackgroundColor:"tokens.backgroundColor",radioIconColor:"colors.transparent",radioFocusBorderColor:["colors.palette.400","colors.palette.500"],radioFocusBackgroundColor:"tokens.backgroundColor",radioFocusIconColor:"colors.transparent",radioFocusRingColor:"tokens.accentColor",radioDisabledBorderColor:["colors.palette.300","colors.palette.600"],radioDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],radioDisabledIconColor:"colors.transparent",radioCheckedBorderColor:"tokens.accentColor",radioCheckedBackgroundColor:"tokens.backgroundColor",radioCheckedIconColor:"tokens.accentColor",radioCheckedFocusBorderColor:["colors.primary.600","colors.primary.200"],radioCheckedFocusBackgroundColor:"tokens.backgroundColor",radioCheckedFocusIconColor:"tokens.accentColor",radioCheckedDisabledBorderColor:["colors.palette.300","colors.palette.600"],radioCheckedDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],radioCheckedDisabledIconColor:["colors.palette.300","colors.palette.600"],moveBacklightColor:["colors.palette.800","colors.palette.300"],moveBacklightOpacity:"16%",moveIndicatorColor:["colors.palette.400","colors.palette.500"],resizeIndicatorColor:["colors.palette.400","colors.palette.500"],hiddenIndicatorColor:["colors.palette.400","colors.palette.500"],menuBorderWidth:"1px",menuBorderRadius:"0px",menuHorizontalPadding:"density.menuHorizontal",menuVerticalPadding:"density.menuVertical",menuItemHorizontalPadding:"density.menuItemHorizontal",menuItemVerticalPadding:"density.menuItemVertical",menuBorderColor:"tokens.borderColor",menuShadowX:"tokens.shadowX",menuShadowY:"tokens.shadowY",menuShadowBlur:"tokens.shadowBlur",menuShadowColor:"tokens.borderColor",menuShadowOpacity:"100%",menuItemHoverColor:["colors.palette.800","colors.palette.300"],menuItemHoverColorOpacity:"8%",menuItemActiveColor:["colors.palette.800","colors.palette.300"],menuItemActiveColorOpacity:"12%",commentsTextareaHorizontalPadding:"density.cellHorizontal",commentsTextareaVerticalPadding:"density.cellVertical",commentsTextareaBorderWidth:"1px",commentsTextareaBorderColor:"tokens.borderColor",commentsTextareaForegroundColor:"tokens.foregroundColor",commentsTextareaBackgroundColor:"tokens.backgroundSecondaryColor",commentsTextareaFocusBorderWidth:"1px",commentsTextareaFocusBorderColor:"tokens.accentColor",commentsTextareaFocusForegroundColor:"tokens.foregroundColor",commentsTextareaFocusBackgroundColor:"tokens.backgroundColor",commentsIndicatorSize:"sizing.size_1_5",commentsIndicatorColor:"tokens.accentColor",licenseHorizontalPadding:"tokens.barHorizontalPadding",licenseVerticalPadding:"tokens.barVerticalPadding",licenseForegroundColor:"tokens.barForegroundColor",licenseBackgroundColor:"tokens.barBackgroundColor",paginationBarForegroundColor:"tokens.barForegroundColor",paginationBarBackgroundColor:"tokens.barBackgroundColor",paginationBarHorizontalPadding:"tokens.barHorizontalPadding",paginationBarVerticalPadding:"tokens.barVerticalPadding",dialogSemiTransparentBackgroundColor:["colors.white","colors.palette.950"],dialogSemiTransparentBackgroundOpacity:"80%",dialogSolidBackgroundColor:["colors.white","colors.palette.950"],dialogContentPaddingHorizontal:"density.dialogHorizontal",dialogContentPaddingVertical:"density.dialogVertical",dialogContentBorderRadius:"sizing.size_2",dialogContentBackgroundColor:"tokens.backgroundSecondaryColor",chipBackground:"tokens.backgroundSecondaryColor",chipBorderRadius:"sizing.size_0_5",chipVerticalPadding:"sizing.size_0",chipHorizontalPadding:"sizing.size_1",chipGap:"sizing.size_1",scrollbarBorderRadius:"sizing.size_2",scrollbarTrackColor:"tokens.backgroundSecondaryColor",scrollbarThumbColor:["colors.palette.400","colors.palette.500"]}},89998(e,t){"use strict";t.__esModule=!0;t.default={fontFamily:"Inter",fontSize:"14px",fontSizeSmall:"12px",lineHeight:"20px",lineHeightSmall:"18px",fontWeight:"400",letterSpacing:"0px",borderColor:["colors.palette.100","colors.palette.800"],accentColor:["colors.primary.500","colors.primary.200"],foregroundColor:["colors.palette.700","colors.palette.200"],foregroundSecondaryColor:["colors.palette.500","colors.palette.400"],backgroundColor:["colors.white","colors.palette.950"],backgroundSecondaryColor:["colors.palette.50","colors.palette.900"],placeholderColor:["colors.palette.400","colors.palette.500"],readOnlyColor:["colors.palette.700","colors.palette.200"],disabledColor:["colors.palette.400","colors.palette.500"],gapSize:"density.gap",iconSize:"sizing.size_4",tableTransition:"0.2s",wrapperBorderWidth:"0px",wrapperBorderRadius:"sizing.size_3",wrapperBorderColor:"tokens.borderColor",barForegroundColor:"tokens.foregroundColor",barBackgroundColor:"tokens.backgroundSecondaryColor",barHorizontalPadding:"density.barsHorizontal",barVerticalPadding:"density.barsVertical",shadowColor:["colors.palette.700","colors.palette.200"],shadowX:"sizing.size_0",shadowY:"sizing.size_2",shadowBlur:"sizing.size_4",shadowOpacity:"6%",cellHorizontalPadding:"density.cellHorizontal",cellVerticalPadding:"density.cellVertical",cellHorizontalBorderColor:"colors.transparent",cellVerticalBorderColor:"tokens.borderColor",cellSelectionBorderColor:"tokens.accentColor",cellSelectionBackgroundColor:"tokens.accentColor",cellSuccessBackgroundColor:"#37bc6c4d",cellErrorBackgroundColor:"#fa4d324d",cellReadOnlyBackgroundColor:"tokens.backgroundSecondaryColor",cellAutofillSize:"sizing.size_1_5",cellAutofillHitAreaSize:"sizing.size_3",cellAutofillBorderWidth:"sizing.size_0_25",cellAutofillBorderRadius:"sizing.size_1",cellAutofillBorderColor:"tokens.backgroundColor",cellAutofillBackgroundColor:"tokens.accentColor",cellAutofillFillBorderColor:"tokens.foregroundColor",cellEditorBorderWidth:"2px",cellEditorBorderColor:"tokens.accentColor",cellEditorForegroundColor:["colors.palette.950","colors.white"],cellEditorBackgroundColor:"tokens.backgroundColor",cellEditorShadowBlurRadius:"8px",cellEditorShadowColor:"tokens.accentColor",cellMobileHandleSize:"sizing.size_3",cellMobileHandleBorderWidth:"sizing.size_0_25",cellMobileHandleBorderRadius:"sizing.size_3",cellMobileHandleBorderColor:"tokens.accentColor",cellMobileHandleBackgroundColor:"tokens.accentColor",cellMobileHandleBackgroundOpacity:"40%",headerFontWeight:"tokens.fontWeight",headerForegroundColor:"tokens.foregroundColor",headerBackgroundColor:"tokens.backgroundSecondaryColor",headerHighlightedShadowSize:"1px",headerHighlightedForegroundColor:"tokens.foregroundColor",headerHighlightedBackgroundColor:["colors.palette.100","colors.palette.800"],headerActiveBorderColor:["colors.palette.800","colors.primary.100"],headerActiveForegroundColor:"tokens.backgroundColor",headerActiveBackgroundColor:["colors.palette.950","colors.primary.200"],headerFilterBackgroundColor:"tokens.cellSuccessBackgroundColor",headerRowForegroundColor:"tokens.foregroundColor",headerRowBackgroundColor:"tokens.backgroundColor",headerRowHighlightedForegroundColor:"tokens.foregroundColor",headerRowHighlightedBackgroundColor:["colors.palette.100","colors.palette.800"],headerRowActiveForegroundColor:"tokens.backgroundColor",headerRowActiveBackgroundColor:["colors.palette.950","colors.primary.200"],rowHeaderOddBackgroundColor:"tokens.backgroundColor",rowHeaderEvenBackgroundColor:"tokens.backgroundSecondaryColor",rowCellOddBackgroundColor:"tokens.backgroundColor",rowCellEvenBackgroundColor:"tokens.backgroundSecondaryColor",buttonBorderRadius:"sizing.size_4",buttonHorizontalPadding:"density.buttonHorizontal",buttonVerticalPadding:"density.buttonVertical",primaryButtonBorderColor:"colors.transparent",primaryButtonForegroundColor:"tokens.backgroundColor",primaryButtonBackgroundColor:"tokens.accentColor",primaryButtonDisabledBorderColor:"colors.transparent",primaryButtonDisabledForegroundColor:"tokens.disabledColor",primaryButtonDisabledBackgroundColor:["colors.palette.200","colors.palette.700"],primaryButtonHoverBorderColor:"colors.transparent",primaryButtonHoverForegroundColor:"tokens.backgroundColor",primaryButtonHoverBackgroundColor:["colors.primary.600","colors.primary.100"],primaryButtonFocusBorderColor:"tokens.backgroundColor",primaryButtonFocusForegroundColor:"tokens.backgroundColor",primaryButtonFocusBackgroundColor:"tokens.accentColor",secondaryButtonBorderColor:"tokens.borderColor",secondaryButtonForegroundColor:"tokens.foregroundColor",secondaryButtonBackgroundColor:"tokens.backgroundColor",secondaryButtonDisabledBorderColor:"tokens.borderColor",secondaryButtonDisabledForegroundColor:"tokens.disabledColor",secondaryButtonDisabledBackgroundColor:["colors.palette.50","colors.palette.900"],secondaryButtonHoverBorderColor:"tokens.borderColor",secondaryButtonHoverForegroundColor:"tokens.foregroundColor",secondaryButtonHoverBackgroundColor:["colors.palette.50","colors.palette.900"],secondaryButtonFocusBorderColor:"tokens.borderColor",secondaryButtonFocusForegroundColor:"tokens.foregroundColor",secondaryButtonFocusBackgroundColor:"tokens.backgroundColor",iconButtonBorderRadius:"sizing.size_4",iconButtonLargeBorderRadius:"sizing.size_1",iconButtonLargePadding:"sizing.size_1",iconButtonBorderColor:["colors.palette.50","colors.palette.900"],iconButtonBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonIconColor:["colors.palette.400","colors.palette.500"],iconButtonHoverBorderColor:["colors.palette.50","colors.palette.900"],iconButtonHoverBackgroundColor:["colors.palette.50","colors.palette.900"],iconButtonHoverIconColor:["colors.palette.700","colors.palette.200"],iconButtonActiveBorderColor:"colors.transparent",iconButtonActiveBackgroundColor:"colors.transparent",iconButtonActiveIconColor:"tokens.backgroundColor",iconButtonActiveHoverBorderColor:"colors.transparent",iconButtonActiveHoverBackgroundColor:["colors.palette.950","colors.primary.200"],iconButtonActiveHoverIconColor:"tokens.backgroundColor",collapseButtonBorderRadius:"sizing.size_4",collapseButtonOpenBorderColor:"colors.transparent",collapseButtonOpenBackgroundColor:"colors.transparent",collapseButtonOpenIconColor:["colors.palette.500","colors.palette.400"],collapseButtonOpenIconActiveColor:["colors.palette.400","colors.palette.500"],collapseButtonOpenHoverBorderColor:"colors.transparent",collapseButtonOpenHoverBackgroundColor:"colors.transparent",collapseButtonOpenHoverIconColor:["colors.palette.800","colors.palette.200"],collapseButtonOpenHoverIconActiveColor:["colors.white","colors.palette.950"],collapseButtonCloseBorderColor:"colors.transparent",collapseButtonCloseBackgroundColor:"colors.transparent",collapseButtonCloseIconColor:["colors.palette.500","colors.palette.400"],collapseButtonCloseIconActiveColor:["colors.palette.400","colors.palette.500"],collapseButtonCloseHoverBorderColor:"colors.transparent",collapseButtonCloseHoverBackgroundColor:"colors.transparent",collapseButtonCloseHoverIconColor:["colors.palette.800","colors.palette.200"],collapseButtonCloseHoverIconActiveColor:["colors.white","colors.palette.950"],linkColor:"tokens.accentColor",linkHoverColor:["colors.primary.600","colors.primary.100"],inputBorderWidth:"1px",inputBorderRadius:"sizing.size_1",inputHorizontalPadding:"density.inputHorizontal",inputVerticalPadding:"density.inputVertical",inputBorderColor:"tokens.borderColor",inputForegroundColor:"tokens.foregroundColor",inputBackgroundColor:"tokens.backgroundColor",inputHoverBorderColor:"tokens.borderColor",inputHoverForegroundColor:"tokens.foregroundColor",inputHoverBackgroundColor:"tokens.backgroundColor",inputDisabledBorderColor:"tokens.borderColor",inputDisabledForegroundColor:"tokens.disabledColor",inputDisabledBackgroundColor:"tokens.backgroundColor",inputFocusBorderColor:"tokens.accentColor",inputFocusForegroundColor:"tokens.foregroundColor",inputFocusBackgroundColor:"tokens.backgroundColor",checkboxSize:"tokens.iconSize",checkboxBorderRadius:"sizing.size_1_5",checkboxBorderColor:["colors.palette.400","colors.palette.500"],checkboxBackgroundColor:"tokens.backgroundColor",checkboxIconColor:"colors.transparent",checkboxFocusBorderColor:["colors.palette.400","colors.palette.500"],checkboxFocusBackgroundColor:"tokens.backgroundColor",checkboxFocusIconColor:"colors.transparent",checkboxFocusRingColor:"tokens.accentColor",checkboxDisabledBorderColor:["colors.palette.400","colors.palette.500"],checkboxDisabledBackgroundColor:["colors.palette.50","colors.palette.900"],checkboxDisabledIconColor:"colors.transparent",checkboxCheckedBorderColor:["colors.primary.400","colors.primary.300"],checkboxCheckedBackgroundColor:"tokens.accentColor",checkboxCheckedIconColor:"tokens.backgroundColor",checkboxCheckedFocusBorderColor:"tokens.backgroundColor",checkboxCheckedFocusBackgroundColor:"tokens.accentColor",checkboxCheckedFocusIconColor:"tokens.backgroundColor",checkboxCheckedDisabledBorderColor:["colors.palette.400","colors.palette.500"],checkboxCheckedDisabledBackgroundColor:["colors.palette.50","colors.palette.900"],checkboxCheckedDisabledIconColor:"tokens.disabledColor",checkboxIndeterminateBorderColor:["colors.primary.400","colors.primary.300"],checkboxIndeterminateBackgroundColor:"tokens.accentColor",checkboxIndeterminateIconColor:"tokens.backgroundColor",checkboxIndeterminateFocusBorderColor:"tokens.backgroundColor",checkboxIndeterminateFocusBackgroundColor:"tokens.accentColor",checkboxIndeterminateFocusIconColor:"tokens.backgroundColor",checkboxIndeterminateDisabledBorderColor:["colors.palette.400","colors.palette.500"],checkboxIndeterminateDisabledBackgroundColor:["colors.palette.50","colors.palette.900"],checkboxIndeterminateDisabledIconColor:"tokens.disabledColor",radioSize:"tokens.iconSize",radioBorderColor:["colors.palette.400","colors.palette.500"],radioBackgroundColor:"tokens.backgroundColor",radioIconColor:"colors.transparent",radioFocusBorderColor:["colors.palette.400","colors.palette.500"],radioFocusBackgroundColor:"tokens.backgroundColor",radioFocusIconColor:"colors.transparent",radioFocusRingColor:"tokens.accentColor",radioDisabledBorderColor:["colors.palette.400","colors.palette.500"],radioDisabledBackgroundColor:"tokens.backgroundSecondaryColor",radioDisabledIconColor:"colors.transparent",radioCheckedBorderColor:"tokens.accentColor",radioCheckedBackgroundColor:"tokens.backgroundColor",radioCheckedIconColor:"tokens.accentColor",radioCheckedFocusBorderColor:["colors.primary.400","colors.primary.300"],radioCheckedFocusBackgroundColor:"tokens.backgroundColor",radioCheckedFocusIconColor:"tokens.accentColor",radioCheckedDisabledBorderColor:["colors.palette.400","colors.palette.500"],radioCheckedDisabledBackgroundColor:"tokens.backgroundSecondaryColor",radioCheckedDisabledIconColor:"tokens.disabledColor",moveBacklightColor:["colors.palette.800","colors.palette.200"],moveBacklightOpacity:"6%",moveIndicatorColor:"tokens.accentColor",resizeIndicatorColor:["colors.palette.400","colors.palette.500"],hiddenIndicatorColor:["colors.palette.400","colors.palette.500"],menuBorderWidth:"0px",menuBorderRadius:"sizing.size_3",menuHorizontalPadding:"density.menuHorizontal",menuVerticalPadding:"density.menuVertical",menuItemHorizontalPadding:"density.menuItemHorizontal",menuItemVerticalPadding:"density.menuItemVertical",menuBorderColor:"tokens.borderColor",menuShadowX:"tokens.shadowX",menuShadowY:"tokens.shadowY",menuShadowBlur:"tokens.shadowBlur",menuShadowColor:["colors.palette.950","colors.white"],menuShadowOpacity:"6%",menuItemHoverColor:["colors.palette.500","colors.palette.400"],menuItemHoverColorOpacity:"8%",menuItemActiveColor:"tokens.accentColor",menuItemActiveColorOpacity:"12%",commentsTextareaHorizontalPadding:"density.cellHorizontal",commentsTextareaVerticalPadding:"density.cellVertical",commentsTextareaBorderWidth:"1px",commentsTextareaBorderColor:"colors.transparent",commentsTextareaForegroundColor:"tokens.foregroundColor",commentsTextareaBackgroundColor:"tokens.backgroundSecondaryColor",commentsTextareaFocusBorderWidth:"1px",commentsTextareaFocusBorderColor:"tokens.accentColor",commentsTextareaFocusForegroundColor:"tokens.foregroundColor",commentsTextareaFocusBackgroundColor:"tokens.backgroundColor",commentsIndicatorSize:"sizing.size_1_5",commentsIndicatorColor:"tokens.accentColor",licenseHorizontalPadding:"tokens.barHorizontalPadding",licenseVerticalPadding:"tokens.barVerticalPadding",licenseForegroundColor:"tokens.barForegroundColor",licenseBackgroundColor:"tokens.barBackgroundColor",paginationBarForegroundColor:"tokens.barForegroundColor",paginationBarBackgroundColor:"tokens.barBackgroundColor",paginationBarHorizontalPadding:"tokens.barHorizontalPadding",paginationBarVerticalPadding:"tokens.barVerticalPadding",dialogSemiTransparentBackgroundColor:["colors.white","colors.palette.950"],dialogSemiTransparentBackgroundOpacity:"80%",dialogSolidBackgroundColor:["colors.white","colors.palette.950"],dialogContentPaddingHorizontal:"density.dialogHorizontal",dialogContentPaddingVertical:"density.dialogVertical",dialogContentBorderRadius:"sizing.size_4",dialogContentBackgroundColor:"tokens.backgroundColor",chipBackground:"tokens.backgroundSecondaryColor",chipBorderRadius:"sizing.size_2",chipVerticalPadding:"sizing.size_0",chipHorizontalPadding:"sizing.size_0_5",chipGap:"sizing.size_1",scrollbarBorderRadius:"sizing.size_2",scrollbarTrackColor:"tokens.backgroundSecondaryColor",scrollbarThumbColor:["colors.palette.400","colors.palette.500"]}},53688(e,t){"use strict";t.__esModule=!0;t.default={fontFamily:"Inter",fontSize:"14px",fontSizeSmall:"12px",lineHeight:"20px",lineHeightSmall:"18px",fontWeight:"400",letterSpacing:"0px",borderColor:["colors.palette.100","colors.palette.700"],accentColor:["colors.primary.500","colors.primary.300"],foregroundColor:["colors.palette.800","colors.palette.200"],foregroundSecondaryColor:["colors.palette.400","colors.palette.300"],backgroundColor:["colors.white","colors.palette.950"],backgroundSecondaryColor:["colors.palette.50","colors.palette.900"],placeholderColor:["colors.palette.300","colors.palette.400"],readOnlyColor:["colors.palette.400","colors.palette.300"],disabledColor:["colors.palette.300","colors.palette.400"],gapSize:"density.gap",iconSize:"sizing.size_4",tableTransition:"0.15s",wrapperBorderWidth:"0px",wrapperBorderRadius:"sizing.size_1",wrapperBorderColor:"tokens.borderColor",barForegroundColor:"tokens.foregroundColor",barBackgroundColor:"tokens.backgroundSecondaryColor",barHorizontalPadding:"density.barsHorizontal",barVerticalPadding:"density.barsVertical",shadowColor:["colors.palette.800","colors.palette.200"],shadowX:"sizing.size_0",shadowY:"sizing.size_2",shadowBlur:"sizing.size_4",shadowOpacity:"8%",cellHorizontalPadding:"density.cellHorizontal",cellVerticalPadding:"density.cellVertical",cellHorizontalBorderColor:"tokens.borderColor",cellVerticalBorderColor:"tokens.borderColor",cellSelectionBorderColor:"tokens.accentColor",cellSelectionBackgroundColor:["colors.primary.400","colors.primary.200"],cellSuccessBackgroundColor:"#37bc6c33",cellErrorBackgroundColor:"#fa4d3233",cellReadOnlyBackgroundColor:"tokens.backgroundSecondaryColor",cellAutofillSize:"sizing.size_1_5",cellAutofillHitAreaSize:"sizing.size_3",cellAutofillBorderWidth:"sizing.size_0_25",cellAutofillBorderRadius:"sizing.size_1",cellAutofillBorderColor:"tokens.backgroundColor",cellAutofillBackgroundColor:"tokens.accentColor",cellAutofillFillBorderColor:"tokens.foregroundColor",cellEditorBorderWidth:"2px",cellEditorBorderColor:"tokens.accentColor",cellEditorForegroundColor:["colors.palette.950","colors.white"],cellEditorBackgroundColor:"tokens.backgroundColor",cellEditorShadowBlurRadius:"0px",cellEditorShadowColor:"tokens.accentColor",cellMobileHandleSize:"sizing.size_3",cellMobileHandleBorderWidth:"sizing.size_0_25",cellMobileHandleBorderRadius:"sizing.size_3",cellMobileHandleBorderColor:"tokens.accentColor",cellMobileHandleBackgroundColor:"tokens.accentColor",cellMobileHandleBackgroundOpacity:"40%",headerFontWeight:"tokens.fontWeight",headerForegroundColor:"tokens.foregroundColor",headerBackgroundColor:"tokens.backgroundSecondaryColor",headerHighlightedShadowSize:"0px",headerHighlightedForegroundColor:["colors.palette.950","colors.white"],headerHighlightedBackgroundColor:["colors.palette.100","colors.palette.700"],headerActiveBorderColor:["colors.primary.400","colors.primary.200"],headerActiveForegroundColor:"colors.white",headerActiveBackgroundColor:"tokens.accentColor",headerFilterBackgroundColor:"tokens.cellSuccessBackgroundColor",headerRowForegroundColor:"tokens.foregroundColor",headerRowBackgroundColor:"tokens.backgroundSecondaryColor",headerRowHighlightedForegroundColor:["colors.palette.950","colors.white"],headerRowHighlightedBackgroundColor:["colors.palette.100","colors.palette.700"],headerRowActiveForegroundColor:"colors.white",headerRowActiveBackgroundColor:"tokens.accentColor",rowHeaderOddBackgroundColor:"tokens.backgroundSecondaryColor",rowHeaderEvenBackgroundColor:"tokens.backgroundSecondaryColor",rowCellOddBackgroundColor:"tokens.backgroundColor",rowCellEvenBackgroundColor:"tokens.backgroundColor",buttonBorderRadius:"sizing.size_1",buttonHorizontalPadding:"density.buttonHorizontal",buttonVerticalPadding:"density.buttonVertical",primaryButtonBorderColor:"colors.transparent",primaryButtonForegroundColor:"colors.white",primaryButtonBackgroundColor:"tokens.accentColor",primaryButtonDisabledBorderColor:"colors.transparent",primaryButtonDisabledForegroundColor:"tokens.disabledColor",primaryButtonDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],primaryButtonHoverBorderColor:"colors.transparent",primaryButtonHoverForegroundColor:"tokens.backgroundColor",primaryButtonHoverBackgroundColor:["colors.primary.600","colors.primary.100"],primaryButtonFocusBorderColor:"tokens.backgroundColor",primaryButtonFocusForegroundColor:"tokens.backgroundColor",primaryButtonFocusBackgroundColor:"tokens.accentColor",secondaryButtonBorderColor:"tokens.borderColor",secondaryButtonForegroundColor:"tokens.foregroundColor",secondaryButtonBackgroundColor:"tokens.backgroundColor",secondaryButtonDisabledBorderColor:"tokens.borderColor",secondaryButtonDisabledForegroundColor:"tokens.disabledColor",secondaryButtonDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],secondaryButtonHoverBorderColor:"tokens.borderColor",secondaryButtonHoverForegroundColor:"tokens.foregroundColor",secondaryButtonHoverBackgroundColor:["colors.palette.100","colors.palette.700"],secondaryButtonFocusBorderColor:"tokens.borderColor",secondaryButtonFocusForegroundColor:"tokens.foregroundColor",secondaryButtonFocusBackgroundColor:"tokens.backgroundColor",iconButtonBorderRadius:"sizing.size_0_5",iconButtonLargeBorderRadius:"sizing.size_1",iconButtonLargePadding:"sizing.size_1",iconButtonBorderColor:["colors.palette.50","colors.palette.900"],iconButtonBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonIconColor:["colors.palette.300","colors.palette.400"],iconButtonHoverBorderColor:["colors.palette.200","colors.palette.600"],iconButtonHoverBackgroundColor:["colors.palette.200","colors.palette.600"],iconButtonHoverIconColor:["colors.palette.300","colors.palette.400"],iconButtonActiveBorderColor:["colors.primary.400","colors.primary.200"],iconButtonActiveBackgroundColor:"tokens.accentColor",iconButtonActiveIconColor:"colors.white",iconButtonActiveHoverBorderColor:["colors.primary.400","colors.primary.200"],iconButtonActiveHoverBackgroundColor:["colors.primary.400","colors.primary.200"],iconButtonActiveHoverIconColor:"colors.white",collapseButtonBorderRadius:"sizing.size_1",collapseButtonOpenBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonOpenBackgroundColor:["colors.white","colors.palette.950"],collapseButtonOpenIconColor:["colors.palette.400","colors.palette.300"],collapseButtonOpenIconActiveColor:["colors.palette.400","colors.palette.300"],collapseButtonOpenHoverBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonOpenHoverBackgroundColor:["colors.palette.50","colors.palette.900"],collapseButtonOpenHoverIconColor:["colors.palette.400","colors.palette.300"],collapseButtonOpenHoverIconActiveColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonCloseBackgroundColor:["colors.palette.100","colors.palette.700"],collapseButtonCloseIconColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseIconActiveColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseHoverBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonCloseHoverBackgroundColor:["colors.palette.100","colors.palette.700"],collapseButtonCloseHoverIconColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseHoverIconActiveColor:["colors.palette.400","colors.palette.300"],linkColor:["colors.primary.600","colors.primary.100"],linkHoverColor:"tokens.accentColor",inputBorderWidth:"1px",inputBorderRadius:"sizing.size_1",inputHorizontalPadding:"density.inputHorizontal",inputVerticalPadding:"density.inputVertical",inputBorderColor:"tokens.borderColor",inputForegroundColor:"tokens.foregroundColor",inputBackgroundColor:"tokens.backgroundSecondaryColor",inputHoverBorderColor:"tokens.borderColor",inputHoverForegroundColor:"tokens.foregroundColor",inputHoverBackgroundColor:"tokens.backgroundColor",inputDisabledBorderColor:"tokens.borderColor",inputDisabledForegroundColor:"tokens.disabledColor",inputDisabledBackgroundColor:["colors.palette.200","colors.palette.500"],inputFocusBorderColor:"tokens.accentColor",inputFocusForegroundColor:"tokens.foregroundColor",inputFocusBackgroundColor:"tokens.backgroundColor",checkboxSize:"tokens.iconSize",checkboxBorderRadius:"sizing.size_1",checkboxBorderColor:["colors.palette.200","colors.palette.500"],checkboxBackgroundColor:"tokens.backgroundColor",checkboxIconColor:"colors.transparent",checkboxFocusBorderColor:["colors.palette.200","colors.palette.500"],checkboxFocusBackgroundColor:"tokens.backgroundColor",checkboxFocusIconColor:"colors.transparent",checkboxFocusRingColor:"tokens.accentColor",checkboxDisabledBorderColor:["colors.palette.200","colors.palette.500"],checkboxDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],checkboxDisabledIconColor:"colors.transparent",checkboxCheckedBorderColor:["colors.primary.400","colors.primary.200"],checkboxCheckedBackgroundColor:"tokens.accentColor",checkboxCheckedIconColor:"colors.white",checkboxCheckedFocusBorderColor:"tokens.backgroundColor",checkboxCheckedFocusBackgroundColor:"tokens.accentColor",checkboxCheckedFocusIconColor:"colors.white",checkboxCheckedDisabledBorderColor:["colors.palette.200","colors.palette.500"],checkboxCheckedDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],checkboxCheckedDisabledIconColor:"tokens.disabledColor",checkboxIndeterminateBorderColor:["colors.primary.400","colors.primary.200"],checkboxIndeterminateBackgroundColor:"tokens.accentColor",checkboxIndeterminateIconColor:"colors.white",checkboxIndeterminateFocusBorderColor:"tokens.backgroundColor",checkboxIndeterminateFocusBackgroundColor:"tokens.accentColor",checkboxIndeterminateFocusIconColor:"colors.white",checkboxIndeterminateDisabledBorderColor:["colors.palette.200","colors.palette.600"],checkboxIndeterminateDisabledBackgroundColor:["colors.palette.200","colors.palette.500"],checkboxIndeterminateDisabledIconColor:"tokens.disabledColor",radioSize:"tokens.iconSize",radioBorderColor:["colors.palette.200","colors.palette.500"],radioBackgroundColor:"tokens.backgroundColor",radioIconColor:"colors.transparent",radioFocusBorderColor:"tokens.borderColor",radioFocusBackgroundColor:"tokens.backgroundColor",radioFocusIconColor:"colors.transparent",radioFocusRingColor:"tokens.accentColor",radioDisabledBorderColor:["colors.palette.200","colors.palette.500"],radioDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],radioDisabledIconColor:"colors.transparent",radioCheckedBorderColor:"tokens.accentColor",radioCheckedBackgroundColor:"tokens.backgroundColor",radioCheckedIconColor:"tokens.accentColor",radioCheckedFocusBorderColor:["colors.primary.400","colors.primary.200"],radioCheckedFocusBackgroundColor:"tokens.backgroundColor",radioCheckedFocusIconColor:["colors.primary.400","colors.primary.200"],radioCheckedDisabledBorderColor:["colors.palette.200","colors.palette.500"],radioCheckedDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],radioCheckedDisabledIconColor:"tokens.disabledColor",moveBacklightColor:["colors.palette.800","colors.palette.200"],moveBacklightOpacity:"8%",moveIndicatorColor:"tokens.accentColor",resizeIndicatorColor:["colors.palette.300","colors.palette.400"],hiddenIndicatorColor:["colors.palette.300","colors.palette.400"],menuBorderWidth:"1px",menuBorderRadius:"sizing.size_1",menuHorizontalPadding:"density.menuHorizontal",menuVerticalPadding:"density.menuVertical",menuItemHorizontalPadding:"density.menuItemHorizontal",menuItemVerticalPadding:"density.menuItemVertical",menuBorderColor:"tokens.borderColor",menuShadowX:"tokens.shadowX",menuShadowY:"tokens.shadowY",menuShadowBlur:"tokens.shadowBlur",menuShadowColor:["colors.palette.950","colors.white"],menuShadowOpacity:"8%",menuItemHoverColor:["colors.palette.800","colors.palette.200"],menuItemHoverColorOpacity:"4%",menuItemActiveColor:"tokens.accentColor",menuItemActiveColorOpacity:"8%",commentsTextareaHorizontalPadding:"density.cellHorizontal",commentsTextareaVerticalPadding:"density.cellVertical",commentsTextareaBorderWidth:"1px",commentsTextareaBorderColor:"colors.transparent",commentsTextareaForegroundColor:"tokens.foregroundColor",commentsTextareaBackgroundColor:"tokens.backgroundSecondaryColor",commentsTextareaFocusBorderWidth:"1px",commentsTextareaFocusBorderColor:"tokens.accentColor",commentsTextareaFocusForegroundColor:"tokens.foregroundColor",commentsTextareaFocusBackgroundColor:"tokens.backgroundColor",commentsIndicatorSize:"sizing.size_1_5",commentsIndicatorColor:"tokens.accentColor",licenseHorizontalPadding:"tokens.barHorizontalPadding",licenseVerticalPadding:"tokens.barVerticalPadding",licenseForegroundColor:"tokens.barForegroundColor",licenseBackgroundColor:"tokens.barBackgroundColor",paginationBarForegroundColor:"tokens.barForegroundColor",paginationBarBackgroundColor:"tokens.barBackgroundColor",paginationBarHorizontalPadding:"tokens.barHorizontalPadding",paginationBarVerticalPadding:"tokens.barVerticalPadding",dialogSemiTransparentBackgroundColor:["colors.white","colors.palette.950"],dialogSemiTransparentBackgroundOpacity:"80%",dialogSolidBackgroundColor:["colors.white","colors.palette.950"],dialogContentPaddingHorizontal:"density.dialogHorizontal",dialogContentPaddingVertical:"density.dialogVertical",dialogContentBorderRadius:"sizing.size_2",dialogContentBackgroundColor:"tokens.backgroundSecondaryColor",chipBackground:"tokens.backgroundSecondaryColor",chipBorderRadius:"sizing.size_0_5",chipVerticalPadding:"sizing.size_0",chipHorizontalPadding:"sizing.size_0_5",chipGap:"sizing.size_1",scrollbarBorderRadius:"sizing.size_2",scrollbarTrackColor:"tokens.backgroundSecondaryColor",scrollbarThumbColor:["colors.palette.300","colors.palette.400"]}},48047(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(80074)),i=n(r(5371)),s=n(r(17097));t.classicTheme={name:"classic",density:"compact",icons:o.default,colors:i.default,tokens:s.default}},68584(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(80260)),i=n(r(36276)),s=n(r(89998));t.horizonTheme={name:"horizon",density:"comfortable",icons:o.default,colors:i.default,tokens:s.default}},4979(e,t,r){"use strict";t.__esModule=!0;var n=r(48047);t.classicTheme=n.classicTheme;var o=r(90190);t.mainTheme=o.mainTheme;var i=r(68584);t.horizonTheme=i.horizonTheme},90190(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(80074)),i=n(r(67738)),s=n(r(53688));t.mainTheme={name:"main",density:"default",icons:o.default,colors:i.default,tokens:s.default}},21071(e,t,r){"use strict";t.__esModule=!0;var n=r(20756),o=r(52585);function i(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function s(e,t){return e.get(l(e,t))}function a(e,t,r){return e.set(l(e,t),r),r}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,h,new Set),i(this,c,[]),i(this,u,[]),i(this,d,!1),i(this,p,!1),a(p,this,null!=e&&e)}createObserver(){const e=new n.ChangesObserver;return s(h,this).add(e),e.addLocalHook("unsubscribe",()=>{s(h,this).delete(e)}),e._writeInitialChanges((0,o.arrayDiff)(s(c,this),s(u,this))),e}emit(e){let t=s(u,this);s(d,this)&&s(c,this).length===e.length||(0===e.length?e=new Array(t.length).fill(s(p,this)):a(c,this,new Array(e.length).fill(s(p,this))),s(d,this)||(a(d,this,!0),t=s(c,this)));const r=(0,o.arrayDiff)(t,e);s(h,this).forEach(e=>e._write(r)),a(u,this,e)}}},20756(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(81185),i=n(r(27348));function s(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function a(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var l=new WeakMap;class h{constructor(){s(this,l,[])}subscribe(e){var t,r;return this.addLocalHook("change",e),this._write((r=this,(t=l).get(a(t,r)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,r,n;r=this,n=e,(t=l).set(a(t,r),n)}}t.ChangesObserver=h,(0,o.mixin)(h,i.default)},52585(e,t){"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){const r=[];let n=0,o=0;for(;n<e.length&&o<t.length;n++,o++)e[n]!==t[o]&&r.push({op:"replace",index:o,oldValue:e[n],newValue:t[o]});for(;n<t.length;n++)r.push({op:"insert",index:n,oldValue:void 0,newValue:t[n]});for(;o<e.length;o++)r.push({op:"remove",index:o,oldValue:e[o],newValue:void 0});return r}},52199(e,t,r){"use strict";t.__esModule=!0;var n={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0},o=r(79950);t.IndexMapper=o.IndexMapper;var i=r(34533);t.getRegisteredMapsCounter=i.getRegisteredMapsCounter;var s=r(66833);t.getIncreasedIndexes=s.getIncreasedIndexes,t.getDecreasedIndexes=s.getDecreasedIndexes,t.alterUtilsFactory=s.alterUtilsFactory;var a=r(55559);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))})},79950(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(27637),s=r(55559),a=r(57295),l=n(r(27348)),h=r(81185),c=r(67787),u=r(21071),d=r(15141);new Set;class p{constructor(){(0,o.default)(this,"indexesSequence",new s.IndexesSequence),(0,o.default)(this,"trimmingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,o.default)(this,"hidingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,o.default)(this,"variousMapsCollection",new a.MapCollection),(0,o.default)(this,"hidingChangesObservable",new u.ChangesObservable({initialIndexValue:!1})),(0,o.default)(this,"notTrimmedIndexesCache",[]),(0,o.default)(this,"notHiddenIndexesCache",[]),(0,o.default)(this,"isBatched",!1),(0,o.default)(this,"indexesSequenceChanged",!1),(0,o.default)(this,"indexesChangeSource",void 0),(0,o.default)(this,"trimmedIndexesChanged",!1),(0,o.default)(this,"hiddenIndexesChanged",!1),(0,o.default)(this,"renderablePhysicalIndexesCache",[]),(0,o.default)(this,"fromPhysicalToVisualIndexesCache",new Map),(0,o.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){return"hiding"!==e&&(0,d.throwWithCause)(`Unsupported index map type "${e}".`),this.hidingChangesObservable.createObserver()}createAndRegisterIndexMap(e,t,r){return this.registerMap(e,(0,s.createIndexMap)(t,r))}registerMap(e,t){(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))&&(0,d.throwWithCause)(`Map with name "${e}" has been already registered.`),t instanceof s.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof s.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);const r=this.getNumberOfIndexes();return r>0&&t.init(r),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 r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(e))return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;const n=Array.from(this.fromVisualToRenderableIndexesCache.keys());let o=-1;return o=t>0?n.findIndex(t=>t>e):n.reverse().findIndex(t=>t<e),-1===o?r?this.getNearestNotHiddenIndex(e,-t,!1):null:n[o]}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 r=(0,i.arrayMap)(e,e=>this.getPhysicalFromVisualIndex(e)),n=this.getNotTrimmedIndexesLength(),o=e.length,a=(0,s.getListWithRemovedItems)(this.getIndexesSequence(),r),l=a.filter(e=>!1===this.isTrimmed(e));let h=a.indexOf(l[l.length-1])+1;if(t+o<n){const e=l[t];h=a.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,s.getListWithInsertedItems)(a,h,r)),this.indexesChangeSource=void 0}isTrimmed(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}isHidden(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}insertIndexes(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start";const n=this.getNotTrimmedIndexes()[e],o=(0,c.isDefined)(n)?n:this.getNumberOfIndexes(),s=this.getIndexesSequence().includes(n)?this.getIndexesSequence().indexOf(n):this.getNumberOfIndexes(),a=(0,i.arrayMap)(new Array(t).fill(o),(e,t)=>e+t);this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(s,a),this.indexesChangeSource=void 0;const l="end"===r?a.map(e=>e+1):a;this.trimmingMapsCollection.insertToEvery(s,l),this.hidingMapsCollection.insertToEvery(s,l),this.variousMapsCollection.insertToEvery(s,l),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),r=this.getVisualFromPhysicalIndex(e);this.fromVisualToRenderableIndexesCache.set(r,t)}}}t.IndexMapper=p,(0,h.mixin)(p,l.default)},90870(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(34533),s=r(27637),a=r(67787);class l extends i.MapCollection{constructor(e,t){super(),(0,o.default)(this,"mergedValuesCache",[]),(0,o.default)(this,"aggregationFunction",void 0),(0,o.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,s.arrayMap)(this.get(),e=>e.getValues()),t=[],r=(0,a.isDefined)(e[0])&&e[0].length||0;for(let n=0;n<r;n+=1){const r=[];for(let t=0;t<this.getLength();t+=1)r.push(e[t][n]);t.push(r)}return(0,s.arrayMap)(t,this.aggregationFunction)}getMergedValueAtIndex(e,t){const r=this.getMergedValues(t)[e];return(0,a.isDefined)(r)?r:this.fallbackValue}updateCache(){this.mergedValuesCache=this.getMergedValues(!1)}}t.AggregatedCollection=l},57295(e,t,r){"use strict";t.__esModule=!0;var n=r(90870);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))});var o=r(34533);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))})},34533(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.getRegisteredMapsCounter=function(){return l};var o=n(r(43685)),i=r(67787),s=r(81185),a=n(r(27348));let l=0;class h{constructor(){(0,o.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)),l+=1)}unregister(e){const t=this.collection.get(e);(0,i.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),l-=1)}unregisterAll(){this.collection.forEach((e,t)=>this.unregister(t)),this.collection.clear()}get(e){return(0,i.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(r=>{r.insert(e,t)})}initEvery(e){this.collection.forEach(t=>{t.init(e)})}}t.MapCollection=h,(0,s.mixin)(h,a.default)},5988(e,t,r){"use strict";t.__esModule=!0;var n=r(83832),o=r(27637);class i extends n.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getHiddenIndexes(){return(0,o.arrayReduce)(this.getValues(),(e,t,r)=>(t&&e.push(r),e),[])}}t.HidingMap=i},55559(e,t,r){"use strict";t.__esModule=!0;var n={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;d.has(e)||(0,h.throwWithCause)(`The provided map type ("${e}") does not exist.`);return new(d.get(e))(t)};var o=r(5988);t.HidingMap=o.HidingMap;var i=r(43689);t.IndexMap=i.IndexMap;var s=r(89107);t.LinkedPhysicalIndexToValueMap=s.LinkedPhysicalIndexToValueMap;var a=r(83832);t.PhysicalIndexToValueMap=a.PhysicalIndexToValueMap;var l=r(62158);t.TrimmingMap=l.TrimmingMap;var h=r(15141),c=r(66234);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))});var u=r(77196);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))});const d=new Map([["hiding",o.HidingMap],["index",i.IndexMap],["linkedPhysicalIndexToValue",s.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",a.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},43689(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(40499),s=r(81185),a=r(11526),l=n(r(27348));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,"indexedValues",[]),(0,o.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,a.isFunction)(this.initValueOrFn)?(0,i.rangeEach)(e-1,e=>this.indexedValues.push(this.initValueOrFn(e))):(0,i.rangeEach)(e-1,()=>this.indexedValues.push(this.initValueOrFn)),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,s.mixin)(h,l.default)},66234(e,t,r){"use strict";t.__esModule=!0;var n=r(43689),o=r(77196),i=r(66833);class s extends n.IndexMap{constructor(){super(e=>e)}insert(e,t){const r=(0,i.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,o.getListWithInsertedItems)(r,e,t),super.insert(e,t)}remove(e){const t=(0,o.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,i.getDecreasedIndexes)(t,e),super.remove(e)}}t.IndexesSequence=s},89107(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(43689),s=r(20702),a=r(77196),l=r(31875),h=r(11526);class c extends i.IndexMap{constructor(){super(...arguments),(0,o.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 r=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(r,0,e),this.runLocalHooks("change"),!0)}clearValue(e){this.orderOfIndexes=(0,a.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,s.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,l.getIncreasedIndexes)(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=(0,s.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,l.getDecreasedIndexes)(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map(e=>[e,this.getValueAtIndex(e)])}}t.LinkedPhysicalIndexToValueMap=c},83832(e,t,r){"use strict";t.__esModule=!0;var n=r(43689),o=r(20702);class i extends n.IndexMap{insert(e,t){this.indexedValues=(0,o.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=(0,o.getListWithRemovedItems)(this.indexedValues,e),super.remove(e)}}t.PhysicalIndexToValueMap=i},62158(e,t,r){"use strict";t.__esModule=!0;var n=r(83832),o=r(27637);class i extends n.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,o.arrayReduce)(this.getValues(),(e,t,r)=>(t&&e.push(r),e),[])}}t.TrimmingMap=i},31875(e,t,r){"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,n.arrayMap)(e,e=>e-t.filter(t=>t<e).length)},t.getIncreasedIndexes=function(e,t){const r=t[0],o=t.length;return(0,n.arrayMap)(e,e=>e>=r?e+o:e)};var n=r(27637)},66833(e,t,r){"use strict";t.__esModule=!0;var n=r(31875);t.getDecreasedIndexes=n.getDecreasedIndexes,t.getIncreasedIndexes=n.getIncreasedIndexes;var o=r(15141),i=r(77196),s=r(20702);const a=new Map([["indexesSequence",{getListWithInsertedItems:i.getListWithInsertedItems,getListWithRemovedItems:i.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:s.getListWithInsertedItems,getListWithRemovedItems:s.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>(!1===a.has(e)&&(0,o.throwWithCause)(`Alter strategy with ID '${e}' does not exist.`),a.get(e))},77196(e,t,r){"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,r){return[...e.slice(0,t),...r,...e.slice(t)]},t.getListWithRemovedItems=function(e,t){return(0,n.arrayFilter)(e,e=>!1===t.includes(e))};var n=r(27637)},20702(e,t,r){"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,r,o){const i=r.length?r[0]:void 0;return[...e.slice(0,i),...r.map((e,t)=>(0,n.isFunction)(o)?o(e,t):o),...void 0===i?[]:e.slice(i)]},t.getListWithRemovedItems=function(e,t){return(0,o.arrayFilter)(e,(e,r)=>!1===t.includes(r))};var n=r(11526),o=r(27637)},79527(e,t){"use strict";t.__esModule=!0,t.announce=function(e){if(!r)return;r.textContent="",setTimeout(()=>{r&&(r.textContent=e)},100)},t.install=function(e){const t=e.ownerDocument;if(!r){r=t.createElement("div"),r.setAttribute("role","status"),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true");const n=r.style;n.position="absolute",n.width="1px",n.height="1px",n.margin="-1px",n.overflow="hidden",n.clipPath="rect(0 0 0 0)",n.whiteSpace="nowrap",e.appendChild(r)}n+=1},t.uninstall=function(){if(0===n)return;1===n&&(r.remove(),r=null);n-=1};let r=null,n=0},53537(e,t){"use strict";function r(e,t,r){e.addEventListener(t,r,!1)}function n(e,t,r){e.removeEventListener(t,r,!1)}function o(e){return e.ownerDocument.defaultView.getComputedStyle(e)}t.__esModule=!0,t.createInputElementResizer=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...t},s=e.body,a=e.createTextNode(""),l=e.createElement("span");let h;function c(){var e,t;a.textContent=i.textContent(h),l.style.position="absolute",l.style.fontSize=o(h).fontSize,l.style.fontFamily=o(h).fontFamily,l.style.whiteSpace="pre",s.appendChild(l);const r=parseInt((null===(e=o(h))||void 0===e?void 0:e.paddingInlineStart)||0,10),n=parseInt((null===(t=o(h))||void 0===t?void 0:t.paddingInlineEnd)||0,10),c=l.clientWidth+r+n+1;s.removeChild(l);const u=h.style;u.height=`${i.minHeight}px`,i.minWidth>c?u.width=`${i.minWidth}px`:c>i.maxWidth?u.width=`${i.maxWidth}px`:u.width=`${c}px`;const d=h.scrollHeight?h.scrollHeight-1:0;i.minHeight>d?u.height=`${i.minHeight}px`:i.maxHeight<d?(u.height=`${i.maxHeight}px`,u.overflowY="visible"):u.height=`${d}px`}function u(){e.defaultView.setTimeout(c,0)}return{init:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];h=e,function(e){if(e&&e.minHeight)if("inherit"===e.minHeight)i.minHeight=h.clientHeight;else{const t=parseInt(e.minHeight,10);isNaN(t)||(i.minHeight=t)}if(e&&e.maxHeight)if("inherit"===e.maxHeight)i.maxHeight=h.clientHeight;else{const t=parseInt(e.maxHeight,10);isNaN(t)||(i.maxHeight=t)}if(e&&e.minWidth)if("inherit"===e.minWidth)i.minWidth=h.clientWidth;else{const t=parseInt(e.minWidth,10);isNaN(t)||(i.minWidth=t)}if(e&&e.maxWidth)if("inherit"===e.maxWidth)i.maxWidth=h.clientWidth;else{const t=parseInt(e.maxWidth,10);isNaN(t)||(i.maxWidth=t)}l.firstChild||(l.className="autoResize",l.style.display="inline-block",l.appendChild(a))}(t),"TEXTAREA"===h.nodeName&&(h.style.resize="none",h.style.height=`${i.minHeight}px`,h.style.minWidth=`${i.minWidth}px`,h.style.maxWidth=`${i.maxWidth}px`,h.style.overflowY="hidden"),n&&(r(h,"input",c),r(h,"keydown",u)),c()},resize:c,unObserve(){n(h,"input",c),n(h,"keydown",u)}}}},59842(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));class i{constructor(e){(0,o.default)(this,"data",void 0),(0,o.default)(this,"next",null),(0,o.default)(this,"prev",null),this.data=e}}t.NodeStructure=i;t.default=class{constructor(){(0,o.default)(this,"first",null),(0,o.default)(this,"last",null)}push(e){const t=new i(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 i(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const r=e(t);if(t===this.last||!0===r)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,r,n=this.first;for(;n;){if(n.data===e)return t=n.next,r=n.prev,t&&(t.prev=r),r&&(r.next=t),n===this.first&&(this.first=t),n===this.last&&(this.last=r),!0;n=n.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,r){r&&(e(r,r.next),r.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,r=this.first;for(;t;)e=t.next,t.next=r,r.prev=t,r=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=r,this.last=e}}},10237(e,t,r){"use strict";t.__esModule=!0,t.createPriorityMap=function(){let{errorPriorityExists:e,errorPriorityNaN:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=new Map;return e=(0,o.isFunction)(e)?e:h,t=(0,o.isFunction)(t)?t:c,{addItem:function(o,s){(0,n.isNumeric)(o)||(0,i.throwWithCause)(t(o));r.has(o)&&(0,i.throwWithCause)(e(o));r.set(o,s)},getItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;const[t,n]=l.get(e)||l.get(s);return[...r].sort((e,r)=>e[0]<r[0]?t:n).map(e=>e[1])}}};var n=r(40499),o=r(11526),i=r(15141);const s=t.ASC="asc",a=t.DESC="desc",l=new Map([[s,[-1,1]],[a,[1,-1]]]),h=e=>`The priority '${e}' is already declared in a map.`,c=e=>`The priority '${e}' is not a number.`},76603(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.depthFirstPreOrder=a;var o=n(r(43685)),i=r(15141);const s=t.TRAVERSAL_DF_PRE="DF-pre-order";function a(e,t){let r=e.call(t,this);for(let n=0;n<this.childs.length;n++){if(!1===r)return!1;r=a.call(this.childs[n],e,t)}return r}const l=t.TRAVERSAL_DF_POST="DF-post-order";const h=t.TRAVERSAL_BF="BF";const c=h,u=new Map([[s,a],[l,function e(t,r){for(let n=0;n<this.childs.length;n++){if(!1===e.call(this.childs[n],t,r))return!1}return t.call(r,this)}],[h,function(e,t){const r=[this];!function n(){if(0===r.length)return;const o=r.shift();r.push(...o.childs),!1!==e.call(t,o)&&n()}()}]]);class d{constructor(e){(0,o.default)(this,"data",{}),(0,o.default)(this,"parent",null),(0,o.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 d({...e.data});for(let r=0;r<e.childs.length;r++)t.addChild(this.cloneTree(e.childs[r]));return t}replaceTreeWith(e){this.data={...e.data},this.childs=[];for(let t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}walkDown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;u.has(t)||(0,i.throwWithCause)(`Traversal strategy "${t}" does not exist`),u.get(t).call(this,e,this)}walkUp(e){const t=this,r=n=>{!1!==e.call(t,n)&&null!==n.parent&&r(n.parent)};r(this)}}t.default=d},46936(e,t,r){"use strict";t.__esModule=!0,t.createUniqueMap=function(){let{errorIdExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map;function r(){return[...t]}function s(e){return t.has(e)}return e=(0,n.isFunction)(e)?e:i,{addItem:function(r,n){s(r)&&(0,o.throwWithCause)(e(r));t.set(r,n)},clear:function(){t.clear()},getId:function(e){const[t]=r().find(t=>{let[r,n]=t;return e===n&&r})||[null];return t},getItem:function(e){return t.get(e)},getItems:r,getValues:function(){return[...t.values()]},hasItem:s,removeItem:function(e){return t.delete(e)}}};var n=r(11526),o=r(15141);const i=e=>`The id '${e}' is already declared in a map.`},26274(e,t,r){"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,n.isFunction)(e)?e:i,{addItem:function(r){t.has(r)&&(0,o.throwWithCause)(e(r));t.add(r)},clear:function(){t.clear()},getItems:function(){return[...t]}}};var n=r(11526),o=r(15141);const i=e=>`'${e}' value is already declared in a unique set.`},4943(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=r(27637),a=r(15141);t.default=class{constructor(e){(0,o.default)(this,"hot",null),(0,o.default)(this,"container",null),(0,o.default)(this,"injected",!1),(0,o.default)(this,"rows",[]),(0,o.default)(this,"columns",[]),(0,o.default)(this,"samples",null),(0,o.default)(this,"settings",{useHeaders:!0}),this.hot=e}addRow(e,t){this.columns.length&&(0,a.throwWithCause)("Doesn't support multi-dimensional table"),this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));const r={row:e};this.rows.push(r),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),r.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){this.rows.length&&(0,a.throwWithCause)("Doesn't support multi-dimensional table"),this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));const r={col:e};this.columns.push(r),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),r.table=this.table.table}getHeights(e){this.injected||this.injectTable(),(0,s.arrayEach)(this.rows,t=>{const{height:r}=t.table.getBoundingClientRect();e(t.row,Math.ceil(r))})}getWidths(e){this.injected||this.injectTable(),(0,s.arrayEach)(this.columns,t=>{const{width:r}=t.table.getBoundingClientRect();e(t.col,Math.ceil(r))})}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(r=>{(0,s.arrayEach)(r.strings,r=>{t.appendChild(this.createColElement(r.col,e))})}),t}createRow(e){const{rootDocument:t}=this.hot,r=t.createDocumentFragment(),n=t.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,n),r.appendChild(n)),this.samples.forEach(n=>{(0,s.arrayEach)(n.strings,n=>{const o=n.col,i=this.hot.getCellMeta(e,o),s=this.hot.getCellRenderer(i),a=t.createElement("td");a.setAttribute("ghost-table",1),s(this.hot,a,e,o,this.hot.colToProp(o),n.value,i),r.appendChild(a)})}),r}appendColumnHeadersRow(){const{rootDocument:e}=this.hot,t=e.createDocumentFragment(),r=[];if(this.hot.hasRowHeaders()){const n=e.createElement("th");r.push([-1,n]),t.appendChild(n)}this.samples.forEach(n=>{(0,s.arrayEach)(n.strings,n=>{const o=n.col,i=e.createElement("th");r.push([o,i]),t.appendChild(i)})}),this.table.tHead.appendChild(t),(0,s.arrayEach)(r,e=>{const[t,r]=e;this.hot.view.appendColHeader(t,r)})}createCol(e){const{rootDocument:t}=this.hot,r=t.createDocumentFragment();return this.samples.forEach(n=>{(0,s.arrayEach)(n.strings,n=>{const o=n.row,i=this.hot.getCellMeta(o,e),s=this.hot.getCellRenderer(i),a=t.createElement("td"),l=t.createElement("tr");a.setAttribute("ghost-table",1),s(this.hot,a,o,e,this.hot.colToProp(e),n.value,i),l.appendChild(a),r.appendChild(l)})}),r}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 r=this.hot.rootDocument.createElement("col");let n=0;t>=0&&e>=0&&(n=this.hot.getCellMeta(t,e).colspan);let o=this.hot.getColWidth(e);if(n>1)for(let t=e+1;t<e+n;t++)o+=this.hot.getColWidth(t);return r.style.width=`${o}px`,r}createTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,r=t.createDocumentFragment(),n=t.createElement("table"),o=t.createElement("thead"),s=t.createElement("tbody"),a=t.createElement("colgroup"),l=t.createElement("tr"),h=t.createElement("th");return this.isVertical()&&n.appendChild(a),this.isHorizontal()&&(l.appendChild(h),o.appendChild(l),n.style.tableLayout="auto",n.style.width="auto"),n.appendChild(o),this.isVertical()&&s.appendChild(l),n.appendChild(s),(0,i.addClass)(n,e),r.appendChild(n),{fragment:r,table:n,tHead:o,tBody:s,colGroup:a,tr:l,th:h}}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,r=t.createDocumentFragment(),n=t.createElement("div"),o=`htGhostTable htAutoSize ${e.trim()}`;return(0,i.addClass)(n,o),r.appendChild(n),{fragment:r,container:n}}isVertical(){return!(!this.rows.length||this.columns.length)}isHorizontal(){return!(!this.columns.length||this.rows.length)}}},17587(e,t,r){"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:r=()=>0,onItemSelect:o=()=>{},onClear:i=()=>{}}=e;const s=new Set;let a=(0,n.clamp)(t,-1,h()-1);function l(e,t){const r=h()-1;if(e<0&&(e=r),e>r&&(e=0),s.has(e))return-1;s.add(e);return!1===o(e,!1)&&(e=l(1===t?++e:--e,t)),e}function h(){return Math.max(r(),0)}return{setCurrentPage:function(e){e>-1&&e<h()&&!1!==o(e,!0)&&(a=e)},setPageCursorAt:function(e){e>-1&&e<h()&&(a=e)},getCurrentPage:function(){return a},toFirstItem:function(){h()>0&&(s.clear(),a=l(0,1))},toLastItem:function(){h()>0&&(s.clear(),a=l(h()-1,-1))},toNextItem:function(){h()>0&&(s.clear(),a=l(++a,1))},toPreviousItem:function(){h()>0&&(s.clear(),a=l(--a,-1))},getSize:h,clear:function(){s.clear(),a=t,i()}}};var n=r(40499)},80547(e,t,r){"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,r=["<table>"];for(let o=0;o<t;o+=1){const i=e[o],s=i.length,a=[];0===o&&r.push("<tbody>");for(let e=0;e<s;e+=1){const t=i[e],r=(0,n.isEmpty)(t)?"":t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(e.length-1)} </span>`).replace(/\t/gi,"&#9;");a.push(`<td>${r}</td>`)}r.push("<tr>",...a,"</tr>"),o+1===t&&r.push("</tbody>")}return r.push("</table>"),r.join("")},t.htmlToGridSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const r={},n=t.createDocumentFragment(),s=t.createElement("div");n.appendChild(s);let a=e;if("string"==typeof a){const e=a.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(/^&nbsp;$/gm,"")}</td>`});s.insertAdjacentHTML("afterbegin",`${e}`),a=s.querySelector("table")}if(!a||!function(e){return"TABLE"===(e&&e.nodeName||"")}(a))return;const l=s.querySelector('meta[name$="enerator"]'),h=null!==a.querySelector("tbody th"),c=a.querySelector("tr"),u=c?Array.from(c.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=a.tFoot&&Array.from(a.tFoot.rows)||[],p=[];let g=!1,f=0,m=0;if(a.tHead){const e=Array.from(a.tHead.rows).filter(e=>{const t=null!==e.querySelector("td");return t&&p.push(e),!t});f=e.length,g=f>0,f>1?r.nestedHeaders=Array.from(e).reduce((e,t)=>{const r=Array.from(t.cells).reduce((e,t,r)=>{if(h&&0===r)return e;const{colSpan:n,innerHTML:o}=t,i=n>1?{label:o,colspan:n}:o;return e.push(i),e},[]);return e.push(r),e},[]):g&&(r.colHeaders=Array.from(e[0].children).reduce((e,t,r)=>(h&&0===r||e.push(t.innerHTML),e),[]))}p.length&&(r.fixedRowsTop=p.length);d.length&&(r.fixedRowsBottom=d.length);const C=[...p,...Array.from(a.tBodies).reduce((e,t)=>(e.push(...Array.from(t.rows)),e),[]),...d];m=C.length;const w=new Array(m);for(let e=0;e<m;e++)w[e]=new Array(u);const y=[],v=[];for(let e=0;e<m;e++){const t=C[e],r=Array.from(t.cells),n=r.length;for(let t=0;t<n;t++){const n=r[t],{nodeName:s,innerHTML:a,rowSpan:h,colSpan:c}=n,u=w[e].findIndex(e=>void 0===e);if("TD"===s){if(h>1||c>1){for(let t=e;t<e+h;t++)if(t<m)for(let e=u;e<u+c;e++)w[t][e]=null;const t=n.getAttribute("style");t&&t.includes("mso-ignore:colspan")||y.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=l&&/excel/gi.test(l.content)?a.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):a.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),w[e][u]=t.replace(i,e=>o[e])}else v.push(a)}}y.length&&(r.mergeCells=y);v.length&&(r.rowHeaders=v);w.length&&(r.data=w);return r},t.instanceToHTML=function(e){const t=e.hasColHeaders(),r=e.hasRowHeaders(),o=[t?-1:0,r?-1:0,e.countRows()-1,e.countCols()-1],i=e.getData(...o),s=i.length,a=s>0?i[0].length:0,l=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=r?1:0,d=t?1:0;for(let o=0;o<s;o+=1){const s=t&&0===o,l=[];for(let t=0;t<a;t+=1){const a=!s&&r&&0===t;let h="";if(s)h=`<th>${e.getColHeader(t-u)}</th>`;else if(a)h=`<th>${e.getRowHeader(o-d)}</th>`;else{const r=i[o][t],{hidden:s,rowspan:a,colspan:l}=e.getCellMeta(o-d,t-u);if(!s){const e=[];if(a&&e.push(`rowspan="${a}"`),l&&e.push(`colspan="${l}"`),(0,n.isEmpty)(r))h=`<td ${e.join(" ")}></td>`;else{const t=r.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");h=`<td ${e.join(" ")}>${t}</td>`}}}l.push(h)}const p=["<tr>",...l,"</tr>"].join("");s?h.splice(1,0,p):c.splice(-1,0,p)}return l.splice(1,0,h.join(""),c.join("")),l.join("")};var n=r(67787);const o={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},i=new RegExp(Object.keys(o).map(e=>`(${e})`).join("|"),"gi")},75593(e,t){"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===n},t.isRootInstance=function(e){return r.has(e)},t.registerAsRootInstance=function(e){r.set(e,!0)};const r=t.holder=new WeakMap,n=t.rootInstanceSymbol=Symbol("rootInstance")},52750(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(81185),s=r(15141),a=r(40499),l=r(67787);class h{static get SAMPLE_COUNT(){return 3}constructor(e){(0,o.default)(this,"samples",null),(0,o.default)(this,"dataFactory",null),(0,o.default)(this,"customSampleCount",null),(0,o.default)(this,"allowDuplicates",!1),(0,o.default)(this,"includeHidden",!1),this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:h.SAMPLE_COUNT}setSampleCount(e){this.customSampleCount=e}setAllowDuplicates(e){this.allowDuplicates=e}setIncludeHidden(e){this.includeHidden=e}generateRowSamples(e,t){return this.generateSamples("row",t,e)}generateColumnSamples(e,t){return this.generateSamples("col",t,e)}generateSamples(e,t,r){const n=new Map,{from:o,to:i}="number"==typeof r?{from:r,to:r}:r;return(0,a.rangeEach)(o,i,r=>{const o=this.generateSample(e,t,r);n.set(r,o)}),n}generateSample(e,t,r){"row"!==e&&"col"!==e&&(0,s.throwWithCause)("Unsupported sample type");const n=new Map,o="row"===e?"col":"row",h=[];return(0,a.rangeEach)(t.from,t.to,t=>{const s="row"===e?this.dataFactory(r,t,this):this.dataFactory(t,r,this);if(!1===s)return;const{value:a,bundleSeed:c}=s,u="string"==typeof c&&c.length>0;let d;d=u?c:(0,i.isObject)(a)?`${Object.keys(a).length}`:Array.isArray(a)?`${a.length}`:`${(0,l.stringify)(a).length}`,n.has(d)||n.set(d,{needed:this.getSampleCount(),strings:[]});const p=n.get(d);if(p.needed){(!(h.indexOf(a)>-1)||this.allowDuplicates||u)&&(p.strings.push({value:a,[o]:t}),h.push(a),p.needed-=1)}}),n}}t.default=h},65517(e,t){"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var n;return null==r||null===(n=r.get(e.guid))||void 0===n?void 0:n.get(t)},t.staticRegister=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";r.has(e)||r.set(e,new Map);const t=r.get(e);return{register:function(e,r){t.set(e,r)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[...t.keys()]},getValues:function(){return[...t.values()]},clear:function(){r.delete(e),t.clear()}}};const r=t.collection=new Map},66038(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(28065),i=n(r(95206));function s(e,t,r){a(e,t),t.set(e,r)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(c(e,t))}function h(e,t,r){return e.set(c(e,t),r),r}function c(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const u="handsontable-core-styles";var d=new WeakMap,p=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakMap,C=new WeakMap,w=new WeakMap,y=new WeakMap,v=new WeakSet;function E(){if(!l(d,this)||!l(m,this)||!l(m,this).head)return;const e=l(m,this).getElementById(u);if(e&&e instanceof HTMLStyleElement)return;const t=l(m,this).createElement("style");t.id=u,t.textContent=i.default,l(m,this).head.appendChild(t)}function S(){const e=this.getCSSVariableValue("line-height"),t=this.getCSSVariableValue("cell-vertical-padding"),r=Math.ceil(parseFloat(this.getStyleForTD("border-bottom-width")));return null===e||null===t||isNaN(r)?null:e+2*t+r}function b(){h(f,this,getComputedStyle(l(g,this)));const e=c(v,this,R).call(this,["box-sizing","border-bottom-width"]);l(w,this).td={...l(w,this).td,"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}function R(e){const t=l(m,this),r=l(g,this),n=t.createElement("table"),o=t.createElement("tbody"),i=t.createElement("tr"),s=t.createElement("tr"),a=t.createElement("td");s.appendChild(a),o.appendChild(i),o.appendChild(s),n.appendChild(o),r.appendChild(n);const h=getComputedStyle(a),c={};return e.forEach(e=>{c[e]=h.getPropertyValue(e)}),r.removeChild(n),c}function T(e){const t=Math.ceil(parseFloat(c(v,this,_).call(this,e)));return Number.isNaN(t)?null:t}function _(e){var t;const r=null===(t=l(f,this))||void 0===t?void 0:t.getPropertyValue(e);return""===r?null:r}function M(){h(w,this,{}),h(C,this,{})}t.StylesHandler=class{constructor(e){let{hot:t,rootElement:r,rootDocument:n,onThemeChange:o=()=>{},injectCoreCss:i=!0}=e;var l,u;a(l=this,u=v),u.add(l),s(this,d,void 0),s(this,p,void 0),s(this,g,void 0),s(this,f,void 0),s(this,m,void 0),s(this,C,{}),s(this,w,{}),s(this,y,void 0),h(d,this,t),h(g,this,r),h(m,this,n),h(y,this,o),i&&c(v,this,E).call(this)}getCSSVariableValue(e){var t;if(l(C,this)[`--ht-${e}`])return l(C,this)[`--ht-${e}`];const r=null!==(t=c(v,this,T).call(this,`--ht-${e}`))&&void 0!==t?t:c(v,this,_).call(this,`--ht-${e}`);return null!==r?(l(C,this)[`--ht-${e}`]=r,r):void 0}getStyleForTD(e){var t;return null===(t=l(w,this))||void 0===t||null===(t=t.td)||void 0===t?void 0:t[e]}getDefaultRowHeight(e){const t=c(v,this,S).call(this);return void 0!==e&&e===l(d,this).view.getFirstRenderedVisibleRow()?t+1:t}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){/ht-theme-.*/.test(e)?(c(v,this,M).call(this),e&&e!==l(p,this)&&h(p,this,e),l(y,this).call(this,l(p,this)),c(v,this,b).call(this)):(0,o.warn)(`${e} isn't a valid theme name. Please ensure it follows the format ht-theme-<theme-name>.`)}getThemeName(){return l(p,this)}clearCache(){c(v,this,M).call(this),c(v,this,b).call(this)}}},6389(e,t,r){"use strict";t.__esModule=!0,t.getValueGetterValue=function(e,t){const{instance:r,visualRow:o,visualCol:i,valueGetter:s}=t;if((0,n.isFunction)(s))return s.call(r,e,o,i,t);return e},t.getValueSetterValue=function(e,t){const{instance:r,visualRow:o,visualCol:i,valueSetter:s}=t;if((0,n.isFunction)(s))return s.call(r,e,o,i,t);return e};var n=r(11526)},35227(e,t,r){"use strict";t.__esModule=!0,t.autocompleteValidator=s;var n=r(81185),o=r(67787);const i=t.VALIDATOR_TYPE="autocomplete";function s(e,t){const r=e=>{return t=e,(0,n.isObject)(t)&&(0,o.isDefined)(t.key)&&(0,o.isDefined)(t.value)?r(e.key)&&r(e.value):null==e;var t};let i=e;r(i)&&(i=""),this.allowEmpty&&""===i?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(i,a(i,t)):a(i,t)(this.source):t(!0)}function a(e,t){const r=e;return function(e){let o=!1;for(let t=0,i=e.length;t<i;t++)if((0,n.isObjectEqual)(r,e[t])){o=!0;break}t(o)}}s.VALIDATOR_TYPE=i},21501(e,t,r){"use strict";t.__esModule=!0;var n=r(35227);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.autocompleteValidator=n.autocompleteValidator},235(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.correctFormat=c,t.dateValidator=h;var o=n(r(37539)),i=r(14284),s=r(75557),a=r(87971);const l=t.VALIDATOR_TYPE="date";function h(e,t){const r=(0,i.getEditorInstance)(s.EDITOR_TYPE,this.instance);let n=e,a=!0;null==n&&(n="");let l=(0,o.default)(n,this.dateFormat||r.defaultDateFormat,!0).isValid(),h=(0,o.default)(new Date(n)).isValid()||l;if(this.allowEmpty&&""===n&&(h=!0,l=!0),h||(a=!1),!h&&l&&(a=!0),h&&!l)if(!0===this.correctFormat){const e=c(n,this.dateFormat);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"dateValidator"),a=!0}else a=!1;t(a)}function c(e,t){const r=(0,o.default)((0,a.getNormalizedDate)(e)),n=(0,o.default)(e,t),i=e.search(/[A-Za-z]/g)>-1;let s;return s=r.isValid()&&r.format("x")===n.format("x")||!n.isValid()||i?r:n,s.format(t)}h.VALIDATOR_TYPE=l},70849(e,t,r){"use strict";t.__esModule=!0;var n=r(235);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.correctFormat=n.correctFormat,t.dateValidator=n.dateValidator},64587(e,t,r){"use strict";t.__esModule=!0,t.dropdownValidator=i;var n=r(35227);const o=t.VALIDATOR_TYPE="dropdown";function i(e,t){n.autocompleteValidator.apply(this,[e,t])}i.VALIDATOR_TYPE=o},56694(e,t,r){"use strict";t.__esModule=!0;var n=r(64587);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.dropdownValidator=n.dropdownValidator},51292(e,t,r){"use strict";t.__esModule=!0,t.registerAllValidators=function(){(0,u.registerValidator)(n.autocompleteValidator),(0,u.registerValidator)(i.dropdownValidator),(0,u.registerValidator)(o.dateValidator),(0,u.registerValidator)(s.intlDateValidator),(0,u.registerValidator)(a.intlTimeValidator),(0,u.registerValidator)(l.multiSelectValidator),(0,u.registerValidator)(h.numericValidator),(0,u.registerValidator)(c.timeValidator)};var n=r(21501);t.autocompleteValidator=n.autocompleteValidator,t.AUTOCOMPLETE_VALIDATOR=n.VALIDATOR_TYPE;var o=r(70849);t.dateValidator=o.dateValidator,t.DATE_VALIDATOR=o.VALIDATOR_TYPE;var i=r(56694);t.dropdownValidator=i.dropdownValidator,t.DROPDOWN_VALIDATOR=i.VALIDATOR_TYPE;var s=r(4652);t.intlDateValidator=s.intlDateValidator,t.INTL_DATE_VALIDATOR=s.VALIDATOR_TYPE;var a=r(67099);t.intlTimeValidator=a.intlTimeValidator,t.INTL_TIME_VALIDATOR=a.VALIDATOR_TYPE;var l=r(29844);t.multiSelectValidator=l.multiSelectValidator,t.MULTISELECT_VALIDATOR=l.VALIDATOR_TYPE;var h=r(62342);t.numericValidator=h.numericValidator,t.NUMERIC_VALIDATOR=h.VALIDATOR_TYPE;var c=r(16010);t.timeValidator=c.timeValidator,t.TIME_VALIDATOR=c.VALIDATOR_TYPE;var u=r(49269);t.registerValidator=u.registerValidator,t.getRegisteredValidatorNames=u.getRegisteredValidatorNames,t.getRegisteredValidators=u.getRegisteredValidators,t.getValidator=u.getValidator,t.hasValidator=u.hasValidator},4652(e,t,r){"use strict";t.__esModule=!0;var n=r(55347);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.SOURCE_DATA_WARNING_MESSAGE=n.SOURCE_DATA_WARNING_MESSAGE,t.intlDateValidator=n.intlDateValidator,t.sourceDataValidator=n.sourceDataValidator},55347(e,t,r){"use strict";t.__esModule=!0,t.intlDateValidator=s,t.sourceDataValidator=function(e,t){if(t.allowEmpty&&(0,o.isEmpty)(e))return!0;return(0,n.isValidISODate)(e)};var n=r(87971),o=r(67787);const i=t.VALIDATOR_TYPE="intl-date";t.SOURCE_DATA_WARNING_MESSAGE='Source data warning ([itemsCount]). Invalid value for "intl-date" cell type.\n\n[affectedCells]\n\nExpected a value compatible with the ISO 8601 date format ("YYYY-MM-DD").';function s(e,t){this.allowEmpty&&(0,o.isEmpty)(e)?t(!0):t((0,n.isValidISODate)(e))}s.VALIDATOR_TYPE=i},67099(e,t,r){"use strict";t.__esModule=!0;var n=r(48779);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.SOURCE_DATA_WARNING_MESSAGE=n.SOURCE_DATA_WARNING_MESSAGE,t.intlTimeValidator=n.intlTimeValidator,t.sourceDataValidator=n.sourceDataValidator},48779(e,t,r){"use strict";t.__esModule=!0,t.intlTimeValidator=s,t.sourceDataValidator=function(e,t){if(t.allowEmpty&&(0,o.isEmpty)(e))return!0;return(0,n.isValidTime)(e)};var n=r(87971),o=r(67787);const i=t.VALIDATOR_TYPE="intl-time";t.SOURCE_DATA_WARNING_MESSAGE='Source data warning ([itemsCount]). Invalid value for "intl-time" cell type.\n\n[affectedCells]\n\nExpected a value compatible with the 24-hour time format ("HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS").';function s(e,t){this.allowEmpty&&(0,o.isEmpty)(e)?t(!0):t((0,n.isValidTime)(e))}s.VALIDATOR_TYPE=i},29844(e,t,r){"use strict";t.__esModule=!0;var n=r(89491);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.multiSelectValidator=n.multiSelectValidator},89491(e,t,r){"use strict";t.__esModule=!0,t.multiSelectValidator=i;var n=r(81185);const o=t.VALIDATOR_TYPE="multiselect";function i(e,t){let r=e;null==r&&(r=""),this.allowEmpty&&""===r?t(!0):(this.allowEmpty||""!==r)&&Array.isArray(r)?Array.isArray(r)&&0===r.length?t(!0):this.source?"function"==typeof this.source?this.source(r,s(r,t)):s(r,t)(this.source):t(!0):t(!1)}function s(e,t){const r=e;return function(e){let o=!0;for(let t=0,i=r.length;t<i;t++){let i=!1;for(let o=0,s=e.length;o<s;o++){if((0,n.isKeyValueObject)(r[t])&&!(0,n.isKeyValueObject)(e[o])||!(0,n.isKeyValueObject)(r[t])&&(0,n.isKeyValueObject)(e[o])){i=!1;break}((0,n.isKeyValueObject)(r[t])&&(0,n.isKeyValueObject)(e[o])&&(0,n.isObjectEqual)(r[t],e[o])||"string"==typeof r[t]&&"string"==typeof e[o]&&r[t]===e[o])&&(i=!0)}if(!i){o=!1;break}}t(o)}}i.VALIDATOR_TYPE=o},62342(e,t,r){"use strict";t.__esModule=!0;var n=r(43551);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.numericValidator=n.numericValidator},43551(e,t,r){"use strict";t.__esModule=!0,t.numericValidator=i;var n=r(40499);const o=t.VALIDATOR_TYPE="numeric";function i(e,t){let r=e;null==r&&(r=""),this.allowEmpty&&""===r?t(!0):t(""!==r&&(0,n.isNumeric)(e))}i.VALIDATOR_TYPE=o},49269(e,t,r){"use strict";t.__esModule=!0,t.getValidator=function(e){if("function"==typeof e)return e;a(e)||(0,o.throwWithCause)(`No registered validator found under "${e}" name`);return s(e)},t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);i(e,t)};var n=r(65517),o=r(15141);const{register:i,getItem:s,hasItem:a,getNames:l,getValues:h}=(0,n.staticRegister)("validators");t.getRegisteredValidators=h,t.getRegisteredValidatorNames=l,t.hasValidator=a},16010(e,t,r){"use strict";t.__esModule=!0;var n=r(31471);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.timeValidator=n.timeValidator},31471(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.timeValidator=a;var o=n(r(37539));const i=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],s=t.VALIDATOR_TYPE="time";function a(e,t){const r=this.timeFormat||"h:mm:ss a";let n=!0,s=e;null===s&&(s=""),s=/^\d{3,}$/.test(s)?parseInt(s,10):s;const a=/^\d{1,2}$/.test(s);a&&(s+=":00");const l=(0,o.default)(s,i,!0).isValid()?(0,o.default)(s):(0,o.default)(s,r);let h=l.isValid(),c=(0,o.default)(s,r,!0).isValid()&&!a;if(this.allowEmpty&&""===s&&(h=!0,c=!0),h||(n=!1),!h&&c&&(n=!0),h&&!c)if(!0===this.correctFormat){const e=l.format(r);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),n=!0}else n=!1;t(n)}a.VALIDATOR_TYPE=s},39250(e,t,r){"use strict";r.r(t),r.d(t,{Alternation:()=>gt,CstParser:()=>Mn,EMPTY_ALT:()=>Rn,EOF:()=>tt,EarlyExitException:()=>Br,EmbeddedActionsParser:()=>An,Flat:()=>lt,GAstVisitor:()=>vt,Lexer:()=>Ue,LexerDefinitionErrorType:()=>Fe,MismatchedTokenException:()=>Dr,NoViableAltException:()=>Hr,NonTerminal:()=>st,NotAllInputParsedException:()=>Fr,Option:()=>ht,Parser:()=>_n,ParserDefinitionErrorType:()=>En,Repetition:()=>dt,RepetitionMandatory:()=>ct,RepetitionMandatoryWithSeparator:()=>ut,RepetitionWithSeparator:()=>pt,Rule:()=>at,Terminal:()=>ft,VERSION:()=>n,assignOccurrenceIndices:()=>Ir,clearCache:()=>Vn,createSyntaxDiagramsCode:()=>In,createToken:()=>et,createTokenInstance:()=>rt,defaultGrammarResolverErrorProvider:()=>br,defaultGrammarValidatorErrorProvider:()=>Rr,defaultLexerErrorProvider:()=>Be,defaultParserErrorProvider:()=>Sr,generateParserFactory:()=>Fn,generateParserModule:()=>Bn,isRecognitionException:()=>Pr,resolveGrammar:()=>Mr,serializeGrammar:()=>mt,serializeProduction:()=>Ct,tokenLabel:()=>We,tokenMatcher:()=>nt,tokenName:()=>ze,validateGrammar:()=>Ar});var n="6.5.0";function o(e){return e&&0===e.length}function i(e){return null==e?[]:Object.keys(e)}function s(e){for(var t=[],r=Object.keys(e),n=0;n<r.length;n++)t.push(e[r[n]]);return t}function a(e,t){for(var r=[],n=0;n<e.length;n++)r.push(t.call(null,e[n],n));return r}function l(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];Array.isArray(n)?t=t.concat(l(n)):t.push(n)}return t}function h(e){return o(e)?void 0:e[0]}function c(e){var t=e&&e.length;return t?e[t-1]:void 0}function u(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)t.call(null,e[r],r);else{if(!N(e))throw Error("non exhaustive match");var n=i(e);for(r=0;r<n.length;r++){var o=n[r],s=e[o];t.call(null,s,o)}}}function d(e){return"string"==typeof e}function p(e){return void 0===e}function g(e){return e instanceof Function}function f(e,t){return void 0===t&&(t=1),e.slice(t,e.length)}function m(e,t){return void 0===t&&(t=1),e.slice(0,e.length-t)}function C(e,t){var r=[];if(Array.isArray(e))for(var n=0;n<e.length;n++){var o=e[n];t.call(null,o)&&r.push(o)}return r}function w(e,t){return C(e,function(e){return!t(e)})}function y(e,t){for(var r=Object.keys(e),n={},o=0;o<r.length;o++){var i=r[o],s=e[i];t(s)&&(n[i]=s)}return n}function v(e,t){return!!N(e)&&e.hasOwnProperty(t)}function E(e,t){return void 0!==R(e,function(e){return e===t})}function S(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r]);return t}function b(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}function R(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t.call(null,n))return n}}function T(e,t,r){for(var n=Array.isArray(e),o=n?e:s(e),a=n?[]:i(e),l=r,h=0;h<o.length;h++)l=t.call(null,l,o[h],n?h:a[h]);return l}function _(e){return w(e,function(e){return null==e})}function M(e,t){void 0===t&&(t=function(e){return e});var r=[];return T(e,function(e,n){var o=t(n);return E(r,o)?e:(r.push(o),e.concat(n))},[])}function A(e){return Array.isArray(e)}function I(e){return e instanceof RegExp}function N(e){return e instanceof Object}function O(e,t){for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0}function x(e,t){return w(e,function(e){return E(t,e)})}function k(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return!0;return!1}function L(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n++)for(var o=t[n],s=i(o),a=0;a<s.length;a++){var l=s[a];e[l]=o[l]}return e}function P(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n++){var o=t[n];if(!p(o))for(var s=i(o),a=0;a<s.length;a++){var l=s[a];v(e,l)||(e[l]=o[l])}}return e}function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P.apply(null,[{}].concat(e))}function H(e,t){var r={};return u(e,function(e){var n=t(e),o=r[n];o?o.push(e):r[n]=[e]}),r}function F(e,t){for(var r=b(e),n=i(t),o=0;o<n.length;o++){var s=n[o],a=t[s];r[s]=a}return r}function B(){}function V(e){return e}function U(e){console&&console.error&&console.error("Error: "+e)}function W(e){console&&console.warn&&console.warn("Warning: "+e)}function z(){return"function"==typeof Map}function Y(e){function t(){}t.prototype=e;var r=new t;function n(){return typeof r.bar}return n(),n(),e}function G(e){return e[e.length-1]}function j(e){var t=(new Date).getTime(),r=e();return{time:(new Date).getTime()-t,value:r}}var $=r(75713),K={},X=new $.RegExpParser;function q(e){var t=e.toString();if(K.hasOwnProperty(t))return K[t];var r=X.pattern(t);return K[t]=r,r}var Z,Q=(Z=function(e,t){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},Z(e,t)},function(e,t){function r(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),J="Complement Sets are not supported for first char optimization",ee='Unable to use "first char" lexer optimizations:\n';function te(e,t){void 0===t&&(t=!1);try{var r=q(e);return re(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===J)t&&W(ee+"\tUnable to optimize: < "+e.toString()+" >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var n="";t&&(n="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),U(ee+"\n\tFailed parsing: < "+e.toString()+" >\n\tUsing the regexp-to-ast library version: "+$.VERSION+"\n\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+n)}}return[]}function re(e,t,r){switch(e.type){case"Disjunction":for(var n=0;n<e.value.length;n++)re(e.value[n],t,r);break;case"Alternative":var o=e.value;for(n=0;n<o.length;n++){var i=o[n];switch(i.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var a=i;switch(a.type){case"Character":ne(a.value,t,r);break;case"Set":if(!0===a.complement)throw Error(J);u(a.value,function(e){if("number"==typeof e)ne(e,t,r);else{var n=e;if(!0===r)for(var o=n.from;o<=n.to;o++)ne(o,t,r);else{for(o=n.from;o<=n.to&&o<_e;o++)ne(o,t,r);if(n.to>=_e)for(var i=n.from>=_e?n.from:_e,s=n.to,a=Me(i),l=Me(s),h=a;h<=l;h++)t[h]=h}}});break;case"Group":re(a.value,t,r);break;default:throw Error("Non Exhaustive Match")}var l=void 0!==a.quantifier&&0===a.quantifier.atLeast;if("Group"===a.type&&!1===ie(a)||"Group"!==a.type&&!1===l)break}break;default:throw Error("non exhaustive match!")}return s(t)}function ne(e,t,r){var n=Me(e);t[n]=n,!0===r&&function(e,t){var r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){t[o=Me(n.charCodeAt(0))]=o}else{var o,i=r.toLowerCase();if(i!==r)t[o=Me(i.charCodeAt(0))]=o}}(e,t)}function oe(e,t){return R(e.value,function(e){if("number"==typeof e)return E(t,e);var r=e;return void 0!==R(t,function(e){return r.from<=e&&e<=r.to})})}function ie(e){return!(!e.quantifier||0!==e.quantifier.atLeast)||!!e.value&&(A(e.value)?O(e.value,ie):ie(e.value))}var se=function(e){function t(t){var r=e.call(this)||this;return r.targetCharCodes=t,r.found=!1,r}return Q(t,e),t.prototype.visitChildren=function(t){if(!0!==this.found){switch(t.type){case"Lookahead":return void this.visitLookahead(t);case"NegativeLookahead":return void this.visitNegativeLookahead(t)}e.prototype.visitChildren.call(this,t)}},t.prototype.visitCharacter=function(e){E(this.targetCharCodes,e.value)&&(this.found=!0)},t.prototype.visitSet=function(e){e.complement?void 0===oe(e,this.targetCharCodes)&&(this.found=!0):void 0!==oe(e,this.targetCharCodes)&&(this.found=!0)},t}($.BaseRegExpVisitor);function ae(e,t){if(t instanceof RegExp){var r=q(t),n=new se(e);return n.visit(r),n.found}return void 0!==R(t,function(t){return E(e,t.charCodeAt(0))})}var le=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),he="PATTERN",ce="defaultMode",ue="modes",de="boolean"==typeof new RegExp("(?:)").sticky;function pe(e,t){var r,n=(t=D(t,{useSticky:de,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(e,t){return t()}})).tracer;n("initCharCodeToOptimizedIndexMap",function(){!function(){if(o(Ae)){Ae=new Array(65536);for(var e=0;e<65536;e++)Ae[e]=e>255?255+~~(e/255):e}}()}),n("Reject Lexer.NA",function(){r=w(e,function(e){return e[he]===Ue.NA})});var i,s,l,h,c,f,m,C,y,S,b,R=!1;n("Transform Patterns",function(){R=!1,i=a(r,function(e){var r=e[he];if(I(r)){var n=r.source;return 1===n.length&&"^"!==n&&"$"!==n&&"."!==n?n:2!==n.length||"\\"!==n[0]||E(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],n[1])?t.useSticky?we(r):Ce(r):n[1]}if(g(r))return R=!0,{exec:r};if(v(r,"exec"))return R=!0,r;if("string"==typeof r){if(1===r.length)return r;var o=r.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),i=new RegExp(o);return t.useSticky?we(i):Ce(i)}throw Error("non exhaustive match")})}),n("misc mapping",function(){s=a(r,function(e){return e.tokenTypeIdx}),l=a(r,function(e){var t=e.GROUP;if(t!==Ue.SKIPPED){if(d(t))return t;if(p(t))return!1;throw Error("non exhaustive match")}}),h=a(r,function(e){var t=e.LONGER_ALT;if(t)return function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1}(r,t)}),c=a(r,function(e){return e.PUSH_MODE}),f=a(r,function(e){return v(e,"POP_MODE")})}),n("Line Terminator Handling",function(){var e=Re(t.lineTerminatorCharacters);m=a(r,function(e){return!1}),"onlyOffset"!==t.positionTracking&&(m=a(r,function(t){return v(t,"LINE_BREAKS")?t.LINE_BREAKS:!1===be(t,e)?ae(e,t.PATTERN):void 0}))}),n("Misc Mapping #2",function(){C=a(r,ve),y=a(i,Ee),S=T(r,function(e,t){var r=t.GROUP;return d(r)&&r!==Ue.SKIPPED&&(e[r]=[]),e},{}),b=a(i,function(e,t){return{pattern:i[t],longerAlt:h[t],canLineTerminator:m[t],isCustom:C[t],short:y[t],group:l[t],push:c[t],pop:f[t],tokenTypeIdx:s[t],tokenType:r[t]}})});var _=!0,M=[];return t.safeMode||n("First Char Optimization",function(){M=T(r,function(e,r,n){if("string"==typeof r.PATTERN){var i=Me(r.PATTERN.charCodeAt(0));Te(e,i,b[n])}else if(A(r.START_CHARS_HINT)){var s;u(r.START_CHARS_HINT,function(t){var r=Me("string"==typeof t?t.charCodeAt(0):t);s!==r&&(s=r,Te(e,r,b[n]))})}else if(I(r.PATTERN))if(r.PATTERN.unicode)_=!1,t.ensureOptimizations&&U(ee+"\tUnable to analyze < "+r.PATTERN.toString()+" > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var a=te(r.PATTERN,t.ensureOptimizations);o(a)&&(_=!1),u(a,function(t){Te(e,t,b[n])})}else t.ensureOptimizations&&U(ee+"\tTokenType: <"+r.name+"> is using a custom token pattern without providing <start_chars_hint> parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),_=!1;return e},[])}),n("ArrayPacking",function(){M=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(void 0!==n?n:void 0)}return t}(M)}),{emptyGroups:S,patternIdxToConfig:b,charCodeToPatternIdxToConfig:M,hasCustom:R,canBeOptimized:_}}function ge(e,t){var r=[],n=function(e){var t=C(e,function(e){return!v(e,he)}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:Fe.MISSING_PATTERN,tokenTypes:[e]}}),n=x(e,t);return{errors:r,valid:n}}(e);r=r.concat(n.errors);var o=function(e){var t=C(e,function(e){var t=e[he];return!(I(t)||g(t)||v(t,"exec")||d(t))}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Fe.INVALID_PATTERN,tokenTypes:[e]}}),n=x(e,t);return{errors:r,valid:n}}(n.valid),i=o.valid;return r=(r=r.concat(o.errors)).concat(function(e){var t=[],r=C(e,function(e){return I(e[he])});return t=t.concat(function(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return le(t,e),t.prototype.visitEndAnchor=function(e){this.found=!0},t}($.BaseRegExpVisitor),r=C(e,function(e){var r=e[he];try{var n=q(r),o=new t;return o.visit(n),o.found}catch(e){return fe.test(r.source)}}),n=a(r,function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:Fe.EOI_ANCHOR_FOUND,tokenTypes:[e]}});return n}(r)),t=t.concat(function(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return le(t,e),t.prototype.visitStartAnchor=function(e){this.found=!0},t}($.BaseRegExpVisitor),r=C(e,function(e){var r=e[he];try{var n=q(r),o=new t;return o.visit(n),o.found}catch(e){return me.test(r.source)}}),n=a(r,function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:Fe.SOI_ANCHOR_FOUND,tokenTypes:[e]}});return n}(r)),t=t.concat(function(e){var t=C(e,function(e){var t=e[he];return t instanceof RegExp&&(t.multiline||t.global)}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Fe.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}});return r}(r)),t=t.concat(function(e){var t=[],r=a(e,function(r){return T(e,function(e,n){return r.PATTERN.source!==n.PATTERN.source||E(t,n)||n.PATTERN===Ue.NA||(t.push(n),e.push(n)),e},[])}),n=a(C(r=_(r),function(e){return e.length>1}),function(e){var t=a(e,function(e){return e.name});return{message:"The same RegExp pattern ->"+h(e).PATTERN+"<-has been used in all of the following Token Types: "+t.join(", ")+" <-",type:Fe.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}});return n}(r)),t=t.concat(function(e){var t=C(e,function(e){return e[he].test("")}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:Fe.EMPTY_MATCH_PATTERN,tokenTypes:[e]}});return r}(r)),t}(i)),r=r.concat(function(e){var t=C(e,function(e){if(!v(e,"GROUP"))return!1;var t=e.GROUP;return t!==Ue.SKIPPED&&t!==Ue.NA&&!d(t)}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Fe.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}});return r}(i)),r=r.concat(function(e,t){var r=C(e,function(e){return void 0!==e.PUSH_MODE&&!E(t,e.PUSH_MODE)}),n=a(r,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+e.PUSH_MODE+"<-which does not exist",type:Fe.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}});return n}(i,t)),r=r.concat(function(e){var t=[],r=T(e,function(e,t,r){var n,o=t.PATTERN;return o===Ue.NA||(d(o)?e.push({str:o,idx:r,tokenType:t}):I(o)&&(n=o,void 0===R([".","\\","[","]","|","^","$","(",")","?","*","+","{"],function(e){return-1!==n.source.indexOf(e)}))&&e.push({str:o.source,idx:r,tokenType:t})),e},[]);return u(e,function(e,n){u(r,function(r){var o=r.str,i=r.idx,s=r.tokenType;if(n<i&&function(e,t){if(I(t)){var r=t.exec(e);return null!==r&&0===r.index}if(g(t))return t(e,0,[],{});if(v(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}(o,e.PATTERN)){var a="Token: ->"+s.name+"<- can never be matched.\nBecause it appears AFTER the Token Type ->"+e.name+"<-in the lexer's definition.\nSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE";t.push({message:a,type:Fe.UNREACHABLE_PATTERN,tokenTypes:[e,s]})}})}),t}(i)),r}var fe=/[^\\][\$]/;var me=/[^\\[][\^]|^\^/;function Ce(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function we(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function ye(e,t,r){var n=[],o=!1,s=w(_(l(function(e,t){for(var r=[],n=i(e),o=0;o<n.length;o++){var s=n[o];r.push(t.call(null,e[s],s))}return r}(e.modes,function(e){return e}))),function(e){return e[he]===Ue.NA}),a=Re(r);return t&&u(s,function(e){var t=be(e,a);if(!1!==t){var r=function(e,t){if(t.issue===Fe.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <"+e.name+"> Token Type\n\t Root cause: "+t.errMsg+".\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===Fe.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <"+e.name+"> Token Type\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}(e,t),i={message:r,type:t.issue,tokenType:e};n.push(i)}else v(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(o=!0):ae(a,e.PATTERN)&&(o=!0)}),t&&!o&&n.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:Fe.NO_LINE_BREAKS_FLAGS}),n}function ve(e){var t=e.PATTERN;if(I(t))return!1;if(g(t))return!0;if(v(t,"exec"))return!0;if(d(t))return!1;throw Error("non exhaustive match")}function Ee(e){return!(!d(e)||1!==e.length)&&e.charCodeAt(0)}var Se={test:function(e){for(var t=e.length,r=this.lastIndex;r<t;r++){var n=e.charCodeAt(r);if(10===n)return this.lastIndex=r+1,!0;if(13===n)return 10===e.charCodeAt(r+1)?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},lastIndex:0};function be(e,t){if(v(e,"LINE_BREAKS"))return!1;if(I(e.PATTERN)){try{ae(t,e.PATTERN)}catch(e){return{issue:Fe.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(d(e.PATTERN))return!1;if(ve(e))return{issue:Fe.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function Re(e){return a(e,function(e){return d(e)&&e.length>0?e.charCodeAt(0):e})}function Te(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}var _e=256;function Me(e){return e<_e?e:Ae[e]}var Ae=[];function Ie(e,t){var r=e.tokenTypeIdx;return r===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[r]}function Ne(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}var Oe=1,xe={};function ke(e){var t=function(e){var t=S(e),r=e,n=!0;for(;n;){var i=x(r=_(l(a(r,function(e){return e.CATEGORIES}))),t);t=t.concat(i),o(i)?n=!1:r=i}return t}(e);!function(e){u(e,function(e){Pe(e)||(xe[Oe]=e,e.tokenTypeIdx=Oe++),De(e)&&!A(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),De(e)||(e.CATEGORIES=[]),v(e,"categoryMatches")||(e.categoryMatches=[]),function(e){return v(e,"categoryMatchesMap")}(e)||(e.categoryMatchesMap={})})}(t),function(e){u(e,function(e){Le([],e)})}(t),function(e){u(e,function(e){e.categoryMatches=[],u(e.categoryMatchesMap,function(t,r){e.categoryMatches.push(xe[r].tokenTypeIdx)})})}(t),u(t,function(e){e.isParent=e.categoryMatches.length>0})}function Le(e,t){u(e,function(e){t.categoryMatchesMap[e.tokenTypeIdx]=!0}),u(t.CATEGORIES,function(r){var n=e.concat(t);E(n,r)||Le(n,r)})}function Pe(e){return v(e,"tokenTypeIdx")}function De(e){return v(e,"CATEGORIES")}function He(e){return v(e,"tokenTypeIdx")}var Fe,Be={buildUnableToPopLexerModeMessage:function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(e,t,r,n,o){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+", skipped "+r+" characters."}};!function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"}(Fe||(Fe={}));var Ve={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Be,traceInitPerf:!1,skipValidations:!1};Object.freeze(Ve);var Ue=function(){function e(e,t){var r=this;if(void 0===t&&(t=Ve),this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=F(Ve,t);var n=this.config.traceInitPerf;!0===n?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof n&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var n,s=!0;r.TRACE_INIT("Lexer Config handling",function(){if(r.config.lineTerminatorsPattern===Ve.lineTerminatorsPattern)r.config.lineTerminatorsPattern=Se;else if(r.config.lineTerminatorCharacters===Ve.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');r.trackStartLines=/full|onlyStart/i.test(r.config.positionTracking),r.trackEndLines=/full/i.test(r.config.positionTracking),A(e)?((n={modes:{}}).modes[ce]=S(e),n[ce]=ce):(s=!1,n=b(e))}),!1===r.config.skipValidations&&(r.TRACE_INIT("performRuntimeChecks",function(){r.lexerDefinitionErrors=r.lexerDefinitionErrors.concat(function(e){var t=[];return v(e,ce)||t.push({message:"A MultiMode Lexer cannot be initialized without a <"+ce+"> property in its definition\n",type:Fe.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),v(e,ue)||t.push({message:"A MultiMode Lexer cannot be initialized without a <modes> property in its definition\n",type:Fe.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),v(e,ue)&&v(e,ce)&&!v(e.modes,e.defaultMode)&&t.push({message:"A MultiMode Lexer cannot be initialized with a "+ce+": <"+e.defaultMode+">which does not exist\n",type:Fe.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),v(e,ue)&&u(e.modes,function(e,r){u(e,function(e,n){p(e)&&t.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:<"+r+"> at index: <"+n+">\n",type:Fe.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),t}(n,r.trackStartLines,r.config.lineTerminatorCharacters))}),r.TRACE_INIT("performWarningRuntimeChecks",function(){r.lexerDefinitionWarning=r.lexerDefinitionWarning.concat(ye(n,r.trackStartLines,r.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},u(n.modes,function(e,t){n.modes[t]=w(e,function(e){return p(e)})});var l=i(n.modes);if(u(n.modes,function(e,n){r.TRACE_INIT("Mode: <"+n+"> processing",function(){var i;(r.modes.push(n),!1===r.config.skipValidations&&r.TRACE_INIT("validatePatterns",function(){r.lexerDefinitionErrors=r.lexerDefinitionErrors.concat(ge(e,l))}),o(r.lexerDefinitionErrors))&&(ke(e),r.TRACE_INIT("analyzeTokenTypes",function(){i=pe(e,{lineTerminatorCharacters:r.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:r.TRACE_INIT.bind(r)})}),r.patternIdxToConfig[n]=i.patternIdxToConfig,r.charCodeToPatternIdxToConfig[n]=i.charCodeToPatternIdxToConfig,r.emptyGroups=F(r.emptyGroups,i.emptyGroups),r.hasCustom=i.hasCustom||r.hasCustom,r.canModeBeOptimized[n]=i.canBeOptimized)})}),r.defaultMode=n.defaultMode,!o(r.lexerDefinitionErrors)&&!r.config.deferDefinitionErrorsHandling){var h=a(r.lexerDefinitionErrors,function(e){return e.message}).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+h)}u(r.lexerDefinitionWarning,function(e){W(e.message)}),r.TRACE_INIT("Choosing sub-methods implementations",function(){if(de?(r.chopInput=V,r.match=r.matchWithTest):(r.updateLastIndex=B,r.match=r.matchWithExec),s&&(r.handleModes=B),!1===r.trackStartLines&&(r.computeNewColumn=V),!1===r.trackEndLines&&(r.updateTokenEndLineColumnLocation=B),/full/i.test(r.config.positionTracking))r.createTokenInstance=r.createFullToken;else if(/onlyStart/i.test(r.config.positionTracking))r.createTokenInstance=r.createStartOnlyToken;else{if(!/onlyOffset/i.test(r.config.positionTracking))throw Error('Invalid <positionTracking> config option: "'+r.config.positionTracking+'"');r.createTokenInstance=r.createOffsetOnlyToken}r.hasCustom?(r.addToken=r.addTokenUsingPush,r.handlePayload=r.handlePayloadWithCustom):(r.addToken=r.addTokenUsingMemberAccess,r.handlePayload=r.handlePayloadNoCustom)}),r.TRACE_INIT("Failed Optimization Warnings",function(){var e=T(r.canModeBeOptimized,function(e,t,r){return!1===t&&e.push(r),e},[]);if(t.ensureOptimizations&&!o(e))throw Error("Lexer Modes: < "+e.join(", ")+' > cannot be optimized.\n\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.')}),r.TRACE_INIT("clearRegExpParserCache",function(){K={}}),r.TRACE_INIT("toFastProperties",function(){Y(r)})})}return e.prototype.tokenize=function(e,t){if(void 0===t&&(t=this.defaultMode),!o(this.lexerDefinitionErrors)){var r=a(this.lexerDefinitionErrors,function(e){return e.message}).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+r)}return this.tokenizeInternal(e,t)},e.prototype.tokenizeInternal=function(e,t){var r,n,o,s,a,l,h,d,p,g,f,m,C,w,y,v,E=this,S=e,b=S.length,R=0,T=0,_=this.hasCustom?0:Math.floor(e.length/10),M=new Array(_),I=[],N=this.trackStartLines?1:void 0,O=this.trackStartLines?1:void 0,x=(y=this.emptyGroups,v={},u(i(y),function(e){if(!A(y[e]))throw Error("non exhaustive match");v[e]=[]}),v),k=this.trackStartLines,L=this.config.lineTerminatorsPattern,P=0,D=[],H=[],F=[],B=[];Object.freeze(B);var V=void 0;function U(){return D}function W(e){var t=Me(e),r=H[t];return void 0===r?B:r}var z,Y=function(e){if(1===F.length&&void 0===e.tokenType.PUSH_MODE){var t=E.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);I.push({offset:e.startOffset,line:void 0!==e.startLine?e.startLine:void 0,column:void 0!==e.startColumn?e.startColumn:void 0,length:e.image.length,message:t})}else{F.pop();var r=c(F);D=E.patternIdxToConfig[r],H=E.charCodeToPatternIdxToConfig[r],P=D.length;var n=E.canModeBeOptimized[r]&&!1===E.config.safeMode;V=H&&n?W:U}};function G(e){F.push(e),H=this.charCodeToPatternIdxToConfig[e],D=this.patternIdxToConfig[e],P=D.length,P=D.length;var t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;V=H&&t?W:U}for(G.call(this,t);R<b;){a=null;var j=S.charCodeAt(R),$=V(j),K=$.length;for(r=0;r<K;r++){var X=(z=$[r]).pattern;if(l=null,!1!==(ie=z.short)?j===ie&&(a=X):!0===z.isCustom?null!==(w=X.exec(S,R,M,x))?(a=w[0],void 0!==w.payload&&(l=w.payload)):a=null:(this.updateLastIndex(X,R),a=this.match(X,e,R)),null!==a){if(void 0!==(s=z.longerAlt)){var q=D[s],Z=q.pattern;h=null,!0===q.isCustom?null!==(w=Z.exec(S,R,M,x))?(o=w[0],void 0!==w.payload&&(h=w.payload)):o=null:(this.updateLastIndex(Z,R),o=this.match(Z,e,R)),o&&o.length>a.length&&(a=o,l=h,z=q)}break}}if(null!==a){if(d=a.length,void 0!==(p=z.group)&&(g=z.tokenTypeIdx,f=this.createTokenInstance(a,R,g,z.tokenType,N,O,d),this.handlePayload(f,l),!1===p?T=this.addToken(M,T,f):x[p].push(f)),e=this.chopInput(e,d),R+=d,O=this.computeNewColumn(O,d),!0===k&&!0===z.canLineTerminator){var Q=0,J=void 0,ee=void 0;L.lastIndex=0;do{!0===(J=L.test(a))&&(ee=L.lastIndex-1,Q++)}while(!0===J);0!==Q&&(N+=Q,O=d-ee,this.updateTokenEndLineColumnLocation(f,p,ee,Q,N,O,d))}this.handleModes(z,Y,G,f)}else{for(var te=R,re=N,ne=O,oe=!1;!oe&&R<b;)for(S.charCodeAt(R),e=this.chopInput(e,1),R++,n=0;n<P;n++){var ie,se=D[n];X=se.pattern;if(!1!==(ie=se.short)?S.charCodeAt(R)===ie&&(oe=!0):!0===se.isCustom?oe=null!==X.exec(S,R,M,x):(this.updateLastIndex(X,R),oe=null!==X.exec(e)),!0===oe)break}m=R-te,C=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(S,te,m,re,ne),I.push({offset:te,line:re,column:ne,length:m,message:C})}}return this.hasCustom||(M.length=T),{tokens:M,groups:x,errors:I}},e.prototype.handleModes=function(e,t,r,n){if(!0===e.pop){var o=e.push;t(n),void 0!==o&&r.call(this,o)}else void 0!==e.push&&r.call(this,e.push)},e.prototype.chopInput=function(e,t){return e.substring(t)},e.prototype.updateLastIndex=function(e,t){e.lastIndex=t},e.prototype.updateTokenEndLineColumnLocation=function(e,t,r,n,o,i,s){var a,l;void 0!==t&&(l=(a=r===s-1)?-1:0,1===n&&!0===a||(e.endLine=o+l,e.endColumn=i-1-l))},e.prototype.computeNewColumn=function(e,t){return e+t},e.prototype.createTokenInstance=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return null},e.prototype.createOffsetOnlyToken=function(e,t,r,n){return{image:e,startOffset:t,tokenTypeIdx:r,tokenType:n}},e.prototype.createStartOnlyToken=function(e,t,r,n,o,i){return{image:e,startOffset:t,startLine:o,startColumn:i,tokenTypeIdx:r,tokenType:n}},e.prototype.createFullToken=function(e,t,r,n,o,i,s){return{image:e,startOffset:t,endOffset:t+s-1,startLine:o,endLine:o,startColumn:i,endColumn:i+s-1,tokenTypeIdx:r,tokenType:n}},e.prototype.addToken=function(e,t,r){return 666},e.prototype.addTokenUsingPush=function(e,t,r){return e.push(r),t},e.prototype.addTokenUsingMemberAccess=function(e,t,r){return e[t]=r,++t},e.prototype.handlePayload=function(e,t){},e.prototype.handlePayloadNoCustom=function(e,t){},e.prototype.handlePayloadWithCustom=function(e,t){null!==t&&(e.payload=t)},e.prototype.match=function(e,t,r){return null},e.prototype.matchWithTest=function(e,t,r){return!0===e.test(t)?t.substring(r,e.lastIndex):null},e.prototype.matchWithExec=function(e,t){var r=e.exec(t);return null!==r?r[0]:r},e.prototype.TRACE_INIT=function(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;var r=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+"--\x3e <"+e+">");var n=j(t),o=n.time,i=n.value,s=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(r+"<-- <"+e+"> time: "+o+"ms"),this.traceInitIndent--,i}return t()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}();function We(e){return Ye(e)?e.LABEL:e.name}function ze(e){return e.name}function Ye(e){return d(e.LABEL)&&""!==e.LABEL}var Ge="parent",je="categories",$e="label",Ke="group",Xe="push_mode",qe="pop_mode",Ze="longer_alt",Qe="line_breaks",Je="start_chars_hint";function et(e){return function(e){var t=e.pattern,r={};r.name=e.name,p(t)||(r.PATTERN=t);if(v(e,Ge))throw"The parent property is no longer supported.\nSee: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.";v(e,je)&&(r.CATEGORIES=e[je]);ke([r]),v(e,$e)&&(r.LABEL=e[$e]);v(e,Ke)&&(r.GROUP=e[Ke]);v(e,qe)&&(r.POP_MODE=e[qe]);v(e,Xe)&&(r.PUSH_MODE=e[Xe]);v(e,Ze)&&(r.LONGER_ALT=e[Ze]);v(e,Qe)&&(r.LINE_BREAKS=e[Qe]);v(e,Je)&&(r.START_CHARS_HINT=e[Je]);return r}(e)}var tt=et({name:"EOF",pattern:Ue.NA});function rt(e,t,r,n,o,i,s,a){return{image:t,startOffset:r,endOffset:n,startLine:o,endLine:i,startColumn:s,endColumn:a,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function nt(e,t){return Ie(e,t)}ke([tt]);var ot=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),it=function(){function e(e){this.definition=e}return e.prototype.accept=function(e){e.visit(this),u(this.definition,function(t){t.accept(e)})},e}(),st=function(e){function t(t){var r=e.call(this,[])||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),Object.defineProperty(t.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.accept=function(e){e.visit(this)},t}(it),at=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.orgText="",L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),lt=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.ignoreAmbiguities=!1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),ht=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),ct=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),ut=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),dt=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),pt=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),gt=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,r.ignoreAmbiguities=!1,r.hasPredicates=!1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),ft=function(){function e(e){this.idx=1,L(this,y(e,function(e){return void 0!==e}))}return e.prototype.accept=function(e){e.visit(this)},e}();function mt(e){return a(e,Ct)}function Ct(e){function t(e){return a(e,Ct)}if(e instanceof st)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof lt)return{type:"Flat",definition:t(e.definition)};if(e instanceof ht)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof ct)return{type:"RepetitionMandatory",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof ut)return{type:"RepetitionMandatoryWithSeparator",name:e.name,idx:e.idx,separator:Ct(new ft({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof pt)return{type:"RepetitionWithSeparator",name:e.name,idx:e.idx,separator:Ct(new ft({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof dt)return{type:"Repetition",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof gt)return{type:"Alternation",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof ft){var r={type:"Terminal",name:e.terminalType.name,label:We(e.terminalType),idx:e.idx},n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=I(n)?n.source:n),r}if(e instanceof at)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}var wt=function(){function e(){}return e.prototype.walk=function(e,t){var r=this;void 0===t&&(t=[]),u(e.definition,function(n,o){var i=f(e.definition,o+1);if(n instanceof st)r.walkProdRef(n,i,t);else if(n instanceof ft)r.walkTerminal(n,i,t);else if(n instanceof lt)r.walkFlat(n,i,t);else if(n instanceof ht)r.walkOption(n,i,t);else if(n instanceof ct)r.walkAtLeastOne(n,i,t);else if(n instanceof ut)r.walkAtLeastOneSep(n,i,t);else if(n instanceof pt)r.walkManySep(n,i,t);else if(n instanceof dt)r.walkMany(n,i,t);else{if(!(n instanceof gt))throw Error("non exhaustive match");r.walkOr(n,i,t)}})},e.prototype.walkTerminal=function(e,t,r){},e.prototype.walkProdRef=function(e,t,r){},e.prototype.walkFlat=function(e,t,r){var n=t.concat(r);this.walk(e,n)},e.prototype.walkOption=function(e,t,r){var n=t.concat(r);this.walk(e,n)},e.prototype.walkAtLeastOne=function(e,t,r){var n=[new ht({definition:e.definition})].concat(t,r);this.walk(e,n)},e.prototype.walkAtLeastOneSep=function(e,t,r){var n=yt(e,t,r);this.walk(e,n)},e.prototype.walkMany=function(e,t,r){var n=[new ht({definition:e.definition})].concat(t,r);this.walk(e,n)},e.prototype.walkManySep=function(e,t,r){var n=yt(e,t,r);this.walk(e,n)},e.prototype.walkOr=function(e,t,r){var n=this,o=t.concat(r);u(e.definition,function(e){var t=new lt({definition:[e]});n.walk(t,o)})},e}();function yt(e,t,r){return[new ht({definition:[new ft({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}var vt=function(){function e(){}return e.prototype.visit=function(e){var t=e;switch(t.constructor){case st:return this.visitNonTerminal(t);case lt:return this.visitFlat(t);case ht:return this.visitOption(t);case ct:return this.visitRepetitionMandatory(t);case ut:return this.visitRepetitionMandatoryWithSeparator(t);case pt:return this.visitRepetitionWithSeparator(t);case dt:return this.visitRepetition(t);case gt:return this.visitAlternation(t);case ft:return this.visitTerminal(t);case at:return this.visitRule(t);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(e){},e.prototype.visitFlat=function(e){},e.prototype.visitOption=function(e){},e.prototype.visitRepetition=function(e){},e.prototype.visitRepetitionMandatory=function(e){},e.prototype.visitRepetitionMandatoryWithSeparator=function(e){},e.prototype.visitRepetitionWithSeparator=function(e){},e.prototype.visitAlternation=function(e){},e.prototype.visitTerminal=function(e){},e.prototype.visitRule=function(e){},e}(),Et=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function St(e,t){return void 0===t&&(t=[]),!!(e instanceof ht||e instanceof dt||e instanceof pt)||(e instanceof gt?k(e.definition,function(e){return St(e,t)}):!(e instanceof st&&E(t,e))&&(e instanceof it&&(e instanceof st&&t.push(e),O(e.definition,function(e){return St(e,t)}))))}function bt(e){if(e instanceof st)return"SUBRULE";if(e instanceof ht)return"OPTION";if(e instanceof gt)return"OR";if(e instanceof ct)return"AT_LEAST_ONE";if(e instanceof ut)return"AT_LEAST_ONE_SEP";if(e instanceof pt)return"MANY_SEP";if(e instanceof dt)return"MANY";if(e instanceof ft)return"CONSUME";throw Error("non exhaustive match")}var Rt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.separator="-",t.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},t}return Et(t,e),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(e){var t=e.terminalType.name+this.separator+"Terminal";v(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitNonTerminal=function(e){var t=e.nonTerminalName+this.separator+"Terminal";v(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitOption=function(e){this.dslMethods.option.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.dslMethods.repetitionWithSeparator.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.dslMethods.repetitionMandatory.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)},t.prototype.visitRepetition=function(e){this.dslMethods.repetition.push(e)},t.prototype.visitAlternation=function(e){this.dslMethods.alternation.push(e)},t}(vt),Tt=new Rt;function _t(e){if(e instanceof st)return _t(e.referencedRule);if(e instanceof ft)return[e.terminalType];if(function(e){return e instanceof lt||e instanceof ht||e instanceof dt||e instanceof ct||e instanceof ut||e instanceof pt||e instanceof ft||e instanceof at}(e))return function(e){var t,r=[],n=e.definition,o=0,i=n.length>o,s=!0;for(;i&&s;)s=St(t=n[o]),r=r.concat(_t(t)),o+=1,i=n.length>o;return M(r)}(e);if(function(e){return e instanceof gt}(e))return function(e){var t=a(e.definition,function(e){return _t(e)});return M(l(t))}(e);throw Error("non exhaustive match")}var Mt="_~IN~_",At=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),It=function(e){function t(t){var r=e.call(this)||this;return r.topProd=t,r.follows={},r}return At(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(e,t,r){},t.prototype.walkProdRef=function(e,t,r){var n,o,i=(n=e.referencedRule,o=e.idx,n.name+o+Mt+this.topProd.name),s=t.concat(r),a=_t(new lt({definition:s}));this.follows[i]=a},t}(wt);var Nt=256,Ot=512,xt=768,kt=1024,Lt=1280,Pt=1536;function Dt(e,t,r){return r|t|e}function Ht(e,t,r,n){var o=n+1<<24;return Dt(e,t,r)|o}var Ft=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function Bt(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function Vt(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function Ut(e,t,r){void 0===e.children[t]?e.children[t]=[r]:e.children[t].push(r)}var Wt=function(e){function t(t){var r=e.call(this)||this;return r.result=[],r.ruleIdx=t,r}return Ft(t,e),t.prototype.collectNamedDSLMethod=function(e,t,r){if(!p(e.name)){var n=void 0;if(e instanceof ht||e instanceof dt||e instanceof ct||e instanceof gt)n=new t({definition:e.definition,idx:e.idx});else{if(!(e instanceof ut||e instanceof pt))throw Error("non exhaustive match");n=new t({definition:e.definition,idx:e.idx,separator:e.separator})}var o=[n],i=Dt(this.ruleIdx,r,e.idx);this.result.push({def:o,key:i,name:e.name,orgProd:e})}},t.prototype.visitOption=function(e){this.collectNamedDSLMethod(e,ht,Ot)},t.prototype.visitRepetition=function(e){this.collectNamedDSLMethod(e,dt,xt)},t.prototype.visitRepetitionMandatory=function(e){this.collectNamedDSLMethod(e,ct,kt)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.collectNamedDSLMethod(e,ut,Pt)},t.prototype.visitRepetitionWithSeparator=function(e){this.collectNamedDSLMethod(e,pt,Lt)},t.prototype.visitAlternation=function(e){var t=this;this.collectNamedDSLMethod(e,gt,Nt);var r=e.definition.length>1;u(e.definition,function(n,o){if(!p(n.name)){var i=n.definition;i=r?[new ht({definition:n.definition})]:n.definition;var s=Ht(t.ruleIdx,Nt,e.idx,o);t.result.push({def:i,key:s,name:n.name,orgProd:n})}})},t}(vt);var zt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Yt=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.path=r,n.nextTerminalName="",n.nextTerminalOccurrence=0,n.nextTerminalName=n.path.lastTok.name,n.nextTerminalOccurrence=n.path.lastTokOccurrence,n}return zt(t,e),t.prototype.walkTerminal=function(e,t,r){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){var n=t.concat(r),o=new lt({definition:n});this.possibleTokTypes=_t(o),this.found=!0}},t}(function(e){function t(t,r){var n=e.call(this)||this;return n.topProd=t,n.path=r,n.possibleTokTypes=[],n.nextProductionName="",n.nextProductionOccurrence=0,n.found=!1,n.isAtEndOfPath=!1,n}return zt(t,e),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=S(this.path.ruleStack).reverse(),this.occurrenceStack=S(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(t,r){void 0===r&&(r=[]),this.found||e.prototype.walk.call(this,t,r)},t.prototype.walkProdRef=function(e,t,r){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){var n=t.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,n)}},t.prototype.updateExpectedNext=function(){o(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(wt)),Gt=function(e){function t(t,r){var n=e.call(this)||this;return n.topRule=t,n.occurrence=r,n.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},n}return zt(t,e),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(wt),jt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),t.prototype.walkMany=function(t,r,n){if(t.idx===this.occurrence){var o=h(r.concat(n));this.result.isEndOfRule=void 0===o,o instanceof ft&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkMany.call(this,t,r,n)},t}(Gt),$t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),t.prototype.walkManySep=function(t,r,n){if(t.idx===this.occurrence){var o=h(r.concat(n));this.result.isEndOfRule=void 0===o,o instanceof ft&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkManySep.call(this,t,r,n)},t}(Gt),Kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),t.prototype.walkAtLeastOne=function(t,r,n){if(t.idx===this.occurrence){var o=h(r.concat(n));this.result.isEndOfRule=void 0===o,o instanceof ft&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOne.call(this,t,r,n)},t}(Gt),Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),t.prototype.walkAtLeastOneSep=function(t,r,n){if(t.idx===this.occurrence){var o=h(r.concat(n));this.result.isEndOfRule=void 0===o,o instanceof ft&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOneSep.call(this,t,r,n)},t}(Gt);function qt(e,t,r){void 0===r&&(r=[]),r=S(r);var n=[],o=0;function i(i){var s=qt(i.concat(f(e,o+1)),t,r);return n.concat(s)}for(;r.length<t&&o<e.length;){var s=e[o];if(s instanceof lt)return i(s.definition);if(s instanceof st)return i(s.definition);if(s instanceof ht)n=i(s.definition);else{if(s instanceof ct)return i(a=s.definition.concat([new dt({definition:s.definition})]));if(s instanceof ut)return i(a=[new lt({definition:s.definition}),new dt({definition:[new ft({terminalType:s.separator})].concat(s.definition)})]);if(s instanceof pt){var a=s.definition.concat([new dt({definition:[new ft({terminalType:s.separator})].concat(s.definition)})]);n=i(a)}else if(s instanceof dt){a=s.definition.concat([new dt({definition:s.definition})]);n=i(a)}else{if(s instanceof gt)return u(s.definition,function(e){n=i(e.definition)}),n;if(!(s instanceof ft))throw Error("non exhaustive match");r.push(s.terminalType)}}o++}return n.push({partialPath:r,suffixDef:f(e,o)}),n}function Zt(e,t,r,n){var i="EXIT_NONE_TERMINAL",s=[i],a="EXIT_ALTERNATIVE",l=!1,h=t.length,u=h-n-1,d=[],p=[];for(p.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!o(p);){var g=p.pop();if(g!==a){var C=g.def,w=g.idx,y=g.ruleStack,v=g.occurrenceStack;if(!o(C)){var E=C[0];if(E===i){var b={idx:w,def:f(C),ruleStack:m(y),occurrenceStack:m(v)};p.push(b)}else if(E instanceof ft)if(w<h-1){var R=w+1;if(r(t[R],E.terminalType)){b={idx:R,def:f(C),ruleStack:y,occurrenceStack:v};p.push(b)}}else{if(w!==h-1)throw Error("non exhaustive match");d.push({nextTokenType:E.terminalType,nextTokenOccurrence:E.idx,ruleStack:y,occurrenceStack:v}),l=!0}else if(E instanceof st){var T=S(y);T.push(E.nonTerminalName);var _=S(v);_.push(E.idx);b={idx:w,def:E.definition.concat(s,f(C)),ruleStack:T,occurrenceStack:_};p.push(b)}else if(E instanceof ht){var M={idx:w,def:f(C),ruleStack:y,occurrenceStack:v};p.push(M),p.push(a);var A={idx:w,def:E.definition.concat(f(C)),ruleStack:y,occurrenceStack:v};p.push(A)}else if(E instanceof ct){var I=new dt({definition:E.definition,idx:E.idx});b={idx:w,def:E.definition.concat([I],f(C)),ruleStack:y,occurrenceStack:v};p.push(b)}else if(E instanceof ut){var N=new ft({terminalType:E.separator});I=new dt({definition:[N].concat(E.definition),idx:E.idx}),b={idx:w,def:E.definition.concat([I],f(C)),ruleStack:y,occurrenceStack:v};p.push(b)}else if(E instanceof pt){M={idx:w,def:f(C),ruleStack:y,occurrenceStack:v};p.push(M),p.push(a);N=new ft({terminalType:E.separator});var O=new dt({definition:[N].concat(E.definition),idx:E.idx});A={idx:w,def:E.definition.concat([O],f(C)),ruleStack:y,occurrenceStack:v};p.push(A)}else if(E instanceof dt){M={idx:w,def:f(C),ruleStack:y,occurrenceStack:v};p.push(M),p.push(a);O=new dt({definition:E.definition,idx:E.idx}),A={idx:w,def:E.definition.concat([O],f(C)),ruleStack:y,occurrenceStack:v};p.push(A)}else if(E instanceof gt)for(var x=E.definition.length-1;x>=0;x--){var k={idx:w,def:E.definition[x].definition.concat(f(C)),ruleStack:y,occurrenceStack:v};p.push(k),p.push(a)}else if(E instanceof lt)p.push({idx:w,def:E.definition.concat(f(C)),ruleStack:y,occurrenceStack:v});else{if(!(E instanceof at))throw Error("non exhaustive match");p.push(Qt(E,w,y,v))}}}else l&&c(p).idx<=u&&p.pop()}return d}function Qt(e,t,r,n){var o=S(r);o.push(e.name);var i=S(n);return i.push(1),{idx:t,def:e.definition,ruleStack:o,occurrenceStack:i}}var Jt,er=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();!function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"}(Jt||(Jt={}));var tr=function(e){function t(t,r,n){var o=e.call(this)||this;return o.topProd=t,o.targetOccurrence=r,o.targetProdType=n,o}return er(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(e,t,r,n){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=r.concat(n),!0)},t.prototype.walkOption=function(t,r,n){this.checkIsTarget(t,Jt.OPTION,r,n)||e.prototype.walkOption.call(this,t,r,n)},t.prototype.walkAtLeastOne=function(t,r,n){this.checkIsTarget(t,Jt.REPETITION_MANDATORY,r,n)||e.prototype.walkOption.call(this,t,r,n)},t.prototype.walkAtLeastOneSep=function(t,r,n){this.checkIsTarget(t,Jt.REPETITION_MANDATORY_WITH_SEPARATOR,r,n)||e.prototype.walkOption.call(this,t,r,n)},t.prototype.walkMany=function(t,r,n){this.checkIsTarget(t,Jt.REPETITION,r,n)||e.prototype.walkOption.call(this,t,r,n)},t.prototype.walkManySep=function(t,r,n){this.checkIsTarget(t,Jt.REPETITION_WITH_SEPARATOR,r,n)||e.prototype.walkOption.call(this,t,r,n)},t}(wt),rr=function(e){function t(t,r,n){var o=e.call(this)||this;return o.targetOccurrence=t,o.targetProdType=r,o.targetRef=n,o.result=[],o}return er(t,e),t.prototype.checkIsTarget=function(e,t){e.idx!==this.targetOccurrence||this.targetProdType!==t||void 0!==this.targetRef&&e!==this.targetRef||(this.result=e.definition)},t.prototype.visitOption=function(e){this.checkIsTarget(e,Jt.OPTION)},t.prototype.visitRepetition=function(e){this.checkIsTarget(e,Jt.REPETITION)},t.prototype.visitRepetitionMandatory=function(e){this.checkIsTarget(e,Jt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.checkIsTarget(e,Jt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(e){this.checkIsTarget(e,Jt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(e){this.checkIsTarget(e,Jt.ALTERNATION)},t}(vt);function nr(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=[];return t}function or(e){for(var t=[""],r=0;r<e.length;r++){for(var n=e[r],o=[],i=0;i<t.length;i++){var s=t[i];o.push(s+"_"+n.tokenTypeIdx);for(var a=0;a<n.categoryMatches.length;a++){var l="_"+n.categoryMatches[a];o.push(s+l)}}t=o}return t}function ir(e,t,r){for(var n=0;n<e.length;n++)if(n!==r)for(var o=e[n],i=0;i<t.length;i++){if(!0===o[t[i]])return!1}return!0}function sr(e,t){for(var r=a(e,function(e){return qt([e],1)}),n=nr(r.length),i=a(r,function(e){var t={};return u(e,function(e){u(or(e.partialPath),function(e){t[e]=!0})}),t}),s=r,l=1;l<=t;l++){var h=s;s=nr(h.length);for(var c=function(e){for(var r=h[e],a=0;a<r.length;a++){var c=r[a].partialPath,d=r[a].suffixDef,p=or(c);if(ir(i,p,e)||o(d)||c.length===t){var g=n[e];if(!1===hr(g,c)){g.push(c);for(var f=0;f<p.length;f++){var m=p[f];i[e][m]=!0}}}else{var C=qt(d,l+1,c);s[e]=s[e].concat(C),u(C,function(t){u(or(t.partialPath),function(t){i[e][t]=!0})})}}},d=0;d<h.length;d++)c(d)}return n}function ar(e,t,r,n){var o=new rr(e,Jt.ALTERNATION,n);return t.accept(o),sr(o.result,r)}function lr(e,t,r,n){var o=new rr(e,r);t.accept(o);var i=o.result,s=new tr(t,e,r).startWalking();return sr([new lt({definition:i}),new lt({definition:s})],n)}function hr(e,t){e:for(var r=0;r<e.length;r++){var n=e[r];if(n.length===t.length){for(var o=0;o<n.length;o++){var i=t[o],s=n[o];if(!1===(i===s||void 0!==s.categoryMatchesMap[i.tokenTypeIdx]))continue e}return!0}}return!1}function cr(e){return O(e,function(e){return O(e,function(e){return O(e,function(e){return o(e.categoryMatches)})})})}var ur=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function dr(e,t,r,n,i,c){var d=a(e,function(e){return function(e,t){var r=new fr;e.accept(r);var n=r.allProductions,o=a(s(y(H(n,pr),function(e){return e.length>1})),function(r){var n=h(r),o=t.buildDuplicateFoundError(e,r),i=bt(n),s={message:o,type:En.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:i,occurrence:n.idx},a=gr(n);return a&&(s.parameter=a),s});return o}(e,i)}),p=a(e,function(e){return wr(e,e,i)}),g=[],f=[],C=[];O(p,o)&&(g=a(e,function(e){return function(e,t){var r=new vr;e.accept(r);var n=T(r.alternations,function(r,n){var i=a(m(n.definition),function(r,i){return o(Zt([r],[],null,1))?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:En.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}:null});return r.concat(_(i))},[]);return n}(e,i)}),f=a(e,function(e){return function(e,t,r,n){var o=new vr;e.accept(o);var i=o.alternations,s=r[e.name];s&&(i=w(i,function(e){return s[bt(e)+(0===e.idx?"":e.idx)]}));var l=T(i=w(i,function(e){return!0===e.ignoreAmbiguities}),function(r,o){var i=o.idx,s=o.maxLookahead||t,l=ar(i,e,s,o),h=function(e,t,r,n){var o=[],i=T(e,function(r,n,i){return!0===t.definition[i].ignoreAmbiguities||u(n,function(n){var s=[i];u(e,function(e,r){i!==r&&hr(e,n)&&!0!==t.definition[r].ignoreAmbiguities&&s.push(r)}),s.length>1&&!hr(o,n)&&(o.push(n),r.push({alts:s,path:n}))}),r},[]),s=a(i,function(e){var o=a(e.alts,function(e){return e+1});return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:o,prefixPath:e.path}),type:En.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:[e.alts]}});return s}(l,o,e,n),c=function(e,t,r,n){var o=[],i=T(e,function(e,t,r){var n=a(t,function(e){return{idx:r,path:e}});return e.concat(n)},[]);return u(i,function(e){if(!0!==t.definition[e.idx].ignoreAmbiguities){var s=e.idx,l=e.path,h=a(function(e,t){for(var r=[],n=0;n<e.length;n++){var o=e[n];t.call(null,o)&&r.push(o)}return r}(i,function(e){return!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<s&&(r=e.path,n=l,r.length<n.length&&O(r,function(e,t){var r=n[t];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]}));var r,n}),function(e){var o=[e.idx+1,s+1],i=0===t.idx?"":t.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:o,prefixPath:e.path}),type:En.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:i,alternatives:o}});o=o.concat(h)}}),o}(l,o,e,n);return r.concat(h,c)},[]);return l}(e,t,n,i)}),C=function(e,t,r){var n=[];return u(e,function(e){var i=new Er;e.accept(i),u(i.allProductions,function(i){var s=function(e){if(e instanceof ht)return Jt.OPTION;if(e instanceof dt)return Jt.REPETITION;if(e instanceof ct)return Jt.REPETITION_MANDATORY;if(e instanceof ut)return Jt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof pt)return Jt.REPETITION_WITH_SEPARATOR;if(e instanceof gt)return Jt.ALTERNATION;throw Error("non exhaustive match")}(i),a=i.maxLookahead||t;if(o(l(lr(i.idx,e,s,a)[0]))){var h=r.buildEmptyRepetitionError({topLevelRule:e,repetition:i});n.push({message:h,type:En.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),n}(e,t,i));var v=function(e,t,r){var n=[],o=a(t,function(e){return e.name});return u(e,function(e){var t=e.name;if(E(o,t)){var i=r.buildNamespaceConflictError(e);n.push({message:i,type:En.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),n}(e,r,i),S=a(r,function(e){return function(e,t){var r=[];e.name.match(mr)||r.push({message:t.buildTokenNameError({tokenType:e,expectedPattern:mr}),type:En.INVALID_TOKEN_NAME});return r}(e,i)}),b=function(e,t){var r=[];return u(e,function(e){var n=new Wt("");e.accept(n);var o=a(n.result,function(e){return e.orgProd});r.push(a(o,function(r){return function(e,t,r){var n,o=[];t.name.match(Cr)||(n=r.buildInvalidNestedRuleNameError(e,t),o.push({message:n,type:En.INVALID_NESTED_RULE_NAME,ruleName:e.name}));return o}(e,r,t)}))}),l(r)}(e,i),R=function(e,t){var r=[];return u(e,function(e){var n=new Wt("");e.accept(n),u(s(y(H(n.result,function(e){return e.name}),function(e){return e.length>1})),function(n){var o=a(n,function(e){return e.orgProd}),i=t.buildDuplicateNestedRuleNameError(e,o);r.push({message:i,type:En.DUPLICATE_NESTED_NAME,ruleName:e.name})})}),r}(e,i),M=a(e,function(e){return function(e,t){var r=new vr;e.accept(r);var n=T(r.alternations,function(r,n){return n.definition.length>255&&r.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:En.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}),r},[]);return n}(e,i)}),A=a(e,function(e){return function(e,t){var r=[],n=e.name;n.match(mr)||r.push({message:t.buildInvalidRuleNameError({topLevelRule:e,expectedPattern:mr}),type:En.INVALID_RULE_NAME,ruleName:n});return r}(e,i)}),I=a(e,function(t){return function(e,t,r,n){var o=[],i=T(t,function(t,r){return r.name===e.name?t+1:t},0);if(i>1){var s=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});o.push({message:s,type:En.DUPLICATE_RULE_NAME,ruleName:e.name})}return o}(t,e,c,i)});return l(d.concat(S,b,R,C,p,g,f,v,M,A,I))}function pr(e){return bt(e)+"_#_"+e.idx+"_#_"+gr(e)}function gr(e){return e instanceof ft?e.terminalType.name:e instanceof st?e.nonTerminalName:""}var fr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return ur(t,e),t.prototype.visitNonTerminal=function(e){this.allProductions.push(e)},t.prototype.visitOption=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t.prototype.visitAlternation=function(e){this.allProductions.push(e)},t.prototype.visitTerminal=function(e){this.allProductions.push(e)},t}(vt),mr=/^[a-zA-Z_]\w*$/,Cr=new RegExp(mr.source.replace("^","^\\$"));function wr(e,t,r,n){void 0===n&&(n=[]);var i=[],s=yr(t.definition);if(o(s))return[];var h=e.name;E(s,e)&&i.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:En.LEFT_RECURSION,ruleName:h});var c=a(x(s,n.concat([e])),function(t){var o=S(n);return o.push(t),wr(e,t,r,o)});return i.concat(l(c))}function yr(e){var t=[];if(o(e))return t;var r=h(e);if(r instanceof st)t.push(r.referencedRule);else if(r instanceof lt||r instanceof ht||r instanceof ct||r instanceof ut||r instanceof pt||r instanceof dt)t=t.concat(yr(r.definition));else if(r instanceof gt)t=l(a(r.definition,function(e){return yr(e.definition)}));else if(!(r instanceof ft))throw Error("non exhaustive match");var n=St(r),i=e.length>1;if(n&&i){var s=f(e);return t.concat(yr(s))}return t}var vr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.alternations=[],t}return ur(t,e),t.prototype.visitAlternation=function(e){this.alternations.push(e)},t}(vt);var Er=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return ur(t,e),t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t}(vt);var Sr={buildMismatchTokenMessage:function(e){var t=e.expected,r=e.actual;e.previous,e.ruleName;return"Expecting "+(Ye(t)?"--\x3e "+We(t)+" <--":"token of type --\x3e "+t.name+" <--")+" but found --\x3e '"+r.image+"' <--"},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant;e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,r=e.actual,n=(e.previous,e.customUserDescription),o=(e.ruleName,"Expecting: "),i="\nbut found: '"+h(r).image+"'";if(n)return o+n+i;var s=a(T(t,function(e,t){return e.concat(t)},[]),function(e){return"["+a(e,function(e){return We(e)}).join(", ")+"]"});return o+("one of these possible Token sequences:\n"+a(s,function(e,t){return" "+(t+1)+". "+e}).join("\n"))+i},buildEarlyExitMessage:function(e){var t=e.expectedIterationPaths,r=e.actual,n=e.customUserDescription,o=(e.ruleName,"Expecting: "),i="\nbut found: '"+h(r).image+"'";return n?o+n+i:o+("expecting at least one iteration which starts with one of these possible Token sequences::\n <"+a(t,function(e){return"["+a(e,function(e){return We(e)}).join(",")+"]"}).join(" ,")+">")+i}};Object.freeze(Sr);var br={buildRuleNotFoundError:function(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"}},Rr={buildDuplicateFoundError:function(e,t){var r,n=e.name,o=h(t),i=o.idx,s=bt(o),a=(r=o)instanceof ft?r.terminalType.name:r instanceof st?r.nonTerminalName:"",l="->"+s+(i>0?i:"")+"<- "+(a?"with argument: ->"+a+"<-":"")+"\n appears more than once ("+t.length+" times) in the top level rule: ->"+n+"<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n ";return l=(l=l.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildInvalidNestedRuleNameError:function(e,t){return"Invalid nested rule name: ->"+t.name+"<- inside rule: ->"+e.name+"<-\nit must match the pattern: ->"+Cr.toString()+"<-.\nNote that this means a nested rule name must start with the '$'(dollar) sign."},buildDuplicateNestedRuleNameError:function(e,t){return"Duplicate nested rule name: ->"+h(t).name+"<- inside rule: ->"+e.name+"<-\nA nested name must be unique in the scope of a top level grammar rule."},buildNamespaceConflictError:function(e){return"Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+e.name+">.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(e){var t=a(e.prefixPath,function(e){return We(e)}).join(", "),r=0===e.alternation.idx?"":e.alternation.idx;return"Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+"> due to common lookahead prefix\nin <OR"+r+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\nSee: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(e){var t=a(e.prefixPath,function(e){return We(e)}).join(", "),r=0===e.alternation.idx?"":e.alternation.idx,n="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+r+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\n";return n+="See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(e){var t=bt(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),"The repetition <"+t+"> within Rule <"+e.topLevelRule.name+"> can never consume any tokens.\nThis could lead to an infinite loop."},buildTokenNameError:function(e){return"Invalid Grammar Token name: ->"+e.tokenType.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildEmptyAlternationError:function(e){return"Ambiguous empty alternative: <"+(e.emptyChoiceIdx+1)+"> in <OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\nOnly the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(e){return"An Alternation cannot have more than 256 alternatives:\n<OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\n has "+(e.alternation.definition.length+1)+" alternatives."},buildLeftRecursionError:function(e){var t=e.topLevelRule.name;return"Left Recursion found in grammar.\nrule: <"+t+"> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n "+(t+" --\x3e "+a(e.leftRecursionPath,function(e){return e.name}).concat([t]).join(" --\x3e "))+"\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."},buildInvalidRuleNameError:function(e){return"Invalid grammar rule name: ->"+e.topLevelRule.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildDuplicateRuleNameError:function(e){return"Duplicate definition, rule: ->"+(e.topLevelRule instanceof at?e.topLevelRule.name:e.topLevelRule)+"<- is already defined in the grammar: ->"+e.grammarName+"<-"}},Tr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();var _r=function(e){function t(t,r){var n=e.call(this)||this;return n.nameToTopRule=t,n.errMsgProvider=r,n.errors=[],n}return Tr(t,e),t.prototype.resolveRefs=function(){var e=this;u(s(this.nameToTopRule),function(t){e.currTopLevel=t,t.accept(e)})},t.prototype.visitNonTerminal=function(e){var t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:r,type:En.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}},t}(vt);function Mr(e){e=D(e,{errMsgProvider:br});var t,r,n,o={};return u(e.rules,function(e){o[e.name]=e}),t=o,r=e.errMsgProvider,(n=new _r(t,r)).resolveRefs(),n.errors}function Ar(e){return dr((e=D(e,{errMsgProvider:Rr,ignoredIssues:{}})).rules,e.maxLookahead,e.tokenTypes,e.ignoredIssues,e.errMsgProvider,e.grammarName)}function Ir(e){u(e.rules,function(e){var t=new Rt;e.accept(t),u(t.dslMethods,function(e){u(e,function(e,t){e.idx=t+1})})})}var Nr="MismatchedTokenException",Or="NoViableAltException",xr="EarlyExitException",kr="NotAllInputParsedException",Lr=[Nr,Or,xr,kr];function Pr(e){return E(Lr,e.name)}function Dr(e,t,r){this.name=Nr,this.message=e,this.token=t,this.previousToken=r,this.resyncedTokens=[]}function Hr(e,t,r){this.name=Or,this.message=e,this.token=t,this.previousToken=r,this.resyncedTokens=[]}function Fr(e,t){this.name=kr,this.message=e,this.token=t,this.resyncedTokens=[]}function Br(e,t,r){this.name=xr,this.message=e,this.token=t,this.previousToken=r,this.resyncedTokens=[]}Object.freeze(Lr),Dr.prototype=Error.prototype,Hr.prototype=Error.prototype,Fr.prototype=Error.prototype,Br.prototype=Error.prototype;var Vr={},Ur="InRuleRecoveryException";function Wr(e){this.name=Ur,this.message=e}Wr.prototype=Error.prototype;var zr=function(){function e(){}return e.prototype.initRecoverable=function(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=v(e,"recoveryEnabled")?e.recoveryEnabled:Sn.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Yr)},e.prototype.getTokenToInsert=function(e){var t=rt(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t},e.prototype.canTokenTypeBeInsertedInRecovery=function(e){return!0},e.prototype.tryInRepetitionRecovery=function(e,t,r,n){for(var o=this,i=this.findReSyncTokenType(),s=this.exportLexerState(),a=[],l=!1,h=this.LA(1),c=this.LA(1),u=function(){var e=o.LA(0),t=new Dr(o.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:h,previous:e,ruleName:o.getCurrRuleFullName()}),h,o.LA(0));t.resyncedTokens=m(a),o.SAVE_ERROR(t)};!l;){if(this.tokenMatcher(c,n))return void u();if(r.call(this))return u(),void e.apply(this,t);this.tokenMatcher(c,i)?l=!0:(c=this.SKIP_TOKEN(),this.addToResyncTokens(c,a))}this.importLexerState(s)},e.prototype.shouldInRepetitionRecoveryBeTried=function(e,t,r){return!1!==r&&(void 0!==e&&void 0!==t&&(!this.tokenMatcher(this.LA(1),e)&&(!this.isBackTracking()&&!this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))))},e.prototype.getFollowsForInRuleRecovery=function(e,t){var r=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(r)},e.prototype.tryInRuleRecovery=function(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new Wr("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)},e.prototype.canRecoverWithSingleTokenInsertion=function(e,t){var r=this;if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(o(t))return!1;var n=this.LA(1);return void 0!==R(t,function(e){return r.tokenMatcher(n,e)})},e.prototype.canRecoverWithSingleTokenDeletion=function(e){return this.tokenMatcher(this.LA(2),e)},e.prototype.isInCurrentRuleReSyncSet=function(e){var t=this.getCurrFollowKey();return E(this.getFollowSetFromFollowKey(t),e)},e.prototype.findReSyncTokenType=function(){for(var e=this.flattenFollowSet(),t=this.LA(1),r=2;;){var n=t.tokenType;if(E(e,n))return n;t=this.LA(r),r++}},e.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return Vr;var e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(r)}},e.prototype.buildFullFollowKeyStack=function(){var e=this,t=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return o(this.LAST_EXPLICIT_RULE_STACK)||(t=a(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.RULE_STACK[t]}),r=a(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.RULE_OCCURRENCE_STACK[t]})),a(t,function(n,o){return 0===o?Vr:{ruleName:e.shortRuleNameToFullName(n),idxInCallingRule:r[o],inRule:e.shortRuleNameToFullName(t[o-1])}})},e.prototype.flattenFollowSet=function(){var e=this;return l(a(this.buildFullFollowKeyStack(),function(t){return e.getFollowSetFromFollowKey(t)}))},e.prototype.getFollowSetFromFollowKey=function(e){if(e===Vr)return[tt];var t=e.ruleName+e.idxInCallingRule+Mt+e.inRule;return this.resyncFollows[t]},e.prototype.addToResyncTokens=function(e,t){return this.tokenMatcher(e,tt)||t.push(e),t},e.prototype.reSyncTo=function(e){for(var t=[],r=this.LA(1);!1===this.tokenMatcher(r,e);)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,t);return m(t)},e.prototype.attemptInRepetitionRecovery=function(e,t,r,n,o,i,s){},e.prototype.getCurrentGrammarPath=function(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:S(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}},e.prototype.getHumanReadableRuleStack=function(){var e=this;return o(this.LAST_EXPLICIT_RULE_STACK)?a(this.RULE_STACK,function(t){return e.shortRuleNameToFullName(t)}):a(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.shortRuleNameToFullName(e.RULE_STACK[t])})},e}();function Yr(e,t,r,n,o,i,s){var a=this.getKeyForAutomaticLookahead(n,o),l=this.firstAfterRepMap[a];if(void 0===l){var h=this.getCurrRuleFullName();l=new i(this.getGAstProductions()[h],o).startWalking(),this.firstAfterRepMap[a]=l}var c=l.token,u=l.occurrence,d=l.isEndOfRule;1===this.RULE_STACK.length&&d&&void 0===c&&(c=tt,u=1),this.shouldInRepetitionRecoveryBeTried(c,u,s)&&this.tryInRepetitionRecovery(e,t,r,c)}var Gr=function(){function e(){}return e.prototype.initLooksAhead=function(e){this.dynamicTokensEnabled=v(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Sn.dynamicTokensEnabled,this.maxLookahead=v(e,"maxLookahead")?e.maxLookahead:Sn.maxLookahead,this.lookAheadFuncsCache=z()?new Map:[],z()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(e){var t=this;u(e,function(e){t.TRACE_INIT(e.name+" Rule Lookahead",function(){var r=function(e){Tt.reset(),e.accept(Tt);var t=Tt.dslMethods;return Tt.reset(),t}(e),n=r.alternation,o=r.repetition,i=r.option,s=r.repetitionMandatory,a=r.repetitionMandatoryWithSeparator,l=r.repetitionWithSeparator;u(n,function(r){var n=0===r.idx?"":r.idx;t.TRACE_INIT(""+bt(r)+n,function(){var n,o,i,s,a,l,h,c=(n=r.idx,o=e,i=r.maxLookahead||t.maxLookahead,s=r.hasPredicates,a=t.dynamicTokensEnabled,l=t.lookAheadBuilderForAlternatives,h=ar(n,o,i),l(h,s,cr(h)?Ne:Ie,a)),u=Dt(t.fullRuleNameToShort[e.name],Nt,r.idx);t.setLaFuncCache(u,c)})}),u(o,function(r){t.computeLookaheadFunc(e,r.idx,xt,Jt.REPETITION,r.maxLookahead,bt(r))}),u(i,function(r){t.computeLookaheadFunc(e,r.idx,Ot,Jt.OPTION,r.maxLookahead,bt(r))}),u(s,function(r){t.computeLookaheadFunc(e,r.idx,kt,Jt.REPETITION_MANDATORY,r.maxLookahead,bt(r))}),u(a,function(r){t.computeLookaheadFunc(e,r.idx,Pt,Jt.REPETITION_MANDATORY_WITH_SEPARATOR,r.maxLookahead,bt(r))}),u(l,function(r){t.computeLookaheadFunc(e,r.idx,Lt,Jt.REPETITION_WITH_SEPARATOR,r.maxLookahead,bt(r))})})})},e.prototype.computeLookaheadFunc=function(e,t,r,n,o,i){var s=this;this.TRACE_INIT(""+i+(0===t?"":t),function(){var i=function(e,t,r,n,o,i){var s=lr(e,t,o,r),a=cr(s)?Ne:Ie;return i(s[0],a,n)}(t,e,o||s.maxLookahead,s.dynamicTokensEnabled,n,s.lookAheadBuilderForOptional),a=Dt(s.fullRuleNameToShort[e.name],r,t);s.setLaFuncCache(a,i)})},e.prototype.lookAheadBuilderForOptional=function(e,t,r){return function(e,t,r){var n=O(e,function(e){return 1===e.length}),i=e.length;if(n&&!r){var s=l(e);if(1===s.length&&o(s[0].categoryMatches)){var a=s[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===a}}var h=T(s,function(e,t,r){return e[t.tokenTypeIdx]=!0,u(t.categoryMatches,function(t){e[t]=!0}),e},[]);return function(){var e=this.LA(1);return!0===h[e.tokenTypeIdx]}}return function(){e:for(var r=0;r<i;r++){for(var n=e[r],o=n.length,s=0;s<o;s++){var a=this.LA(s+1);if(!1===t(a,n[s]))continue e}return!0}return!1}}(e,t,r)},e.prototype.lookAheadBuilderForAlternatives=function(e,t,r,n){return function(e,t,r,n){var o=e.length,i=O(e,function(e){return O(e,function(e){return 1===e.length})});if(t)return function(t){for(var n=a(t,function(e){return e.GATE}),i=0;i<o;i++){var s=e[i],l=s.length,h=n[i];if(void 0===h||!1!==h.call(this))e:for(var c=0;c<l;c++){for(var u=s[c],d=u.length,p=0;p<d;p++){var g=this.LA(p+1);if(!1===r(g,u[p]))continue e}return i}}};if(i&&!n){var s=T(a(e,function(e){return l(e)}),function(e,t,r){return u(t,function(t){v(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=r),u(t.categoryMatches,function(t){v(e,t)||(e[t]=r)})}),e},[]);return function(){var e=this.LA(1);return s[e.tokenTypeIdx]}}return function(){for(var t=0;t<o;t++){var n=e[t],i=n.length;e:for(var s=0;s<i;s++){for(var a=n[s],l=a.length,h=0;h<l;h++){var c=this.LA(h+1);if(!1===r(c,a[h]))continue e}return t}}}}(e,t,r,n)},e.prototype.getKeyForAutomaticLookahead=function(e,t){return Dt(this.getLastExplicitRuleShortName(),e,t)},e.prototype.getLaFuncFromCache=function(e){},e.prototype.getLaFuncFromMap=function(e){return this.lookAheadFuncsCache.get(e)},e.prototype.getLaFuncFromObj=function(e){return this.lookAheadFuncsCache[e]},e.prototype.setLaFuncCache=function(e,t){},e.prototype.setLaFuncCacheUsingMap=function(e,t){this.lookAheadFuncsCache.set(e,t)},e.prototype.setLaFuncUsingObj=function(e,t){this.lookAheadFuncsCache[e]=t},e}();var jr,$r=/^\s*function\s*(\S*)\s*\(/,Kr="name";function Xr(e){var t=e.name;return t||e.toString().match($r)[1]}function qr(e,t){var r=Object.getOwnPropertyDescriptor(e,Kr);return!(!p(r)&&!r.configurable)&&(Object.defineProperty(e,Kr,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0)}function Zr(e,t){for(var r=i(e),n=r.length,o=0;o<n;o++)for(var s=e[r[o]],a=s.length,l=0;l<a;l++){var h=s[l];void 0===h.tokenTypeIdx&&(void 0!==h.fullName?this[h.fullName](h.children,t):this[h.name](h.children,t))}}function Qr(e,t){var r=function(){};qr(r,e+"BaseSemantics");var n={visit:function(e,t){if(A(e)&&(e=e[0]),!p(e))return void 0!==e.fullName?this[e.fullName](e.children,t):this[e.name](e.children,t)},validateVisitor:function(){var e=function(e,t){var r=function(e,t){var r=a(t,function(t){if(!g(e[t]))return{msg:"Missing visitor method: <"+t+"> on "+Xr(e.constructor)+" CST Visitor.",type:jr.MISSING_METHOD,methodName:t}});return _(r)}(e,t),n=function(e,t){var r=[];for(var n in e)mr.test(n)&&g(e[n])&&!E(Jr,n)&&!E(t,n)&&r.push({msg:"Redundant visitor method: <"+n+"> on "+Xr(e.constructor)+" CST Visitor\nThere is no Grammar Rule corresponding to this method's name.\nFor utility methods on visitor classes use methods names that do not match /"+mr.source+"/.",type:jr.REDUNDANT_METHOD,methodName:n});return r}(e,t);return r.concat(n)}(this,t);if(!o(e)){var r=a(e,function(e){return e.msg});throw Error("Errors Detected in CST Visitor <"+Xr(this.constructor)+">:\n\t"+r.join("\n\n").replace(/\n/g,"\n\t"))}}};return(r.prototype=n).constructor=r,r._RULE_NAMES=t,r}!function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"}(jr||(jr={}));var Jr=["constructor","visit","validateVisitor"];var en=function(){function e(){}return e.prototype.initTreeBuilder=function(e){if(this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.outputCst=v(e,"outputCst")?e.outputCst:Sn.outputCst,this.nodeLocationTracking=v(e,"nodeLocationTracking")?e.nodeLocationTracking:Sn.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Vt,this.setNodeLocationFromNode=Vt,this.cstPostRule=B,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=B,this.setNodeLocationFromNode=B,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Bt,this.setNodeLocationFromNode=Bt,this.cstPostRule=B,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=B,this.setNodeLocationFromNode=B,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid <nodeLocationTracking> config option: "'+e.nodeLocationTracking+'"');this.setNodeLocationFromToken=B,this.setNodeLocationFromNode=B,this.cstPostRule=B,this.setInitialNodeLocation=B}else this.cstInvocationStateUpdate=B,this.cstFinallyStateUpdate=B,this.cstPostTerminal=B,this.cstPostNonTerminal=B,this.cstPostRule=B,this.getLastExplicitRuleShortName=this.getLastExplicitRuleShortNameNoCst,this.getPreviousExplicitRuleShortName=this.getPreviousExplicitRuleShortNameNoCst,this.getLastExplicitRuleOccurrenceIndex=this.getLastExplicitRuleOccurrenceIndexNoCst,this.manyInternal=this.manyInternalNoCst,this.orInternal=this.orInternalNoCst,this.optionInternal=this.optionInternalNoCst,this.atLeastOneInternal=this.atLeastOneInternalNoCst,this.manySepFirstInternal=this.manySepFirstInternalNoCst,this.atLeastOneSepFirstInternal=this.atLeastOneSepFirstInternalNoCst},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(e){e.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstNestedInvocationStateUpdate=function(e,t){var r={name:e,fullName:this.shortRuleNameToFull[this.getLastExplicitRuleShortName()]+e,children:{}};this.setInitialNodeLocation(r),this.CST_STACK.push(r)},e.prototype.cstInvocationStateUpdate=function(e,t){this.LAST_EXPLICIT_RULE_STACK.push(this.RULE_STACK.length-1);var r={name:e,children:{}};this.setInitialNodeLocation(r),this.CST_STACK.push(r)},e.prototype.cstFinallyStateUpdate=function(){this.LAST_EXPLICIT_RULE_STACK.pop(),this.CST_STACK.pop()},e.prototype.cstNestedFinallyStateUpdate=function(){var e=this.CST_STACK.pop();this.cstPostRule(e)},e.prototype.cstPostRuleFull=function(e){var t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?(r.endOffset=t.endOffset,r.endLine=t.endLine,r.endColumn=t.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(e){var t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?r.endOffset=t.endOffset:r.startOffset=NaN},e.prototype.cstPostTerminal=function(e,t){var r,n,o,i=this.CST_STACK[this.CST_STACK.length-1];n=t,o=e,void 0===(r=i).children[o]?r.children[o]=[n]:r.children[o].push(n),this.setNodeLocationFromToken(i.location,t)},e.prototype.cstPostNonTerminal=function(e,t){if(!0!==this.isBackTracking()){var r=this.CST_STACK[this.CST_STACK.length-1];Ut(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}},e.prototype.getBaseCstVisitorConstructor=function(){if(p(this.baseCstVisitorConstructor)){var e=Qr(this.className,this.allRuleNames);return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(p(this.baseCstVisitorWithDefaultsConstructor)){var e=function(e,t,r){var n=function(){};qr(n,e+"BaseSemanticsWithDefaults");var o=Object.create(r.prototype);return u(t,function(e){o[e]=Zr}),(n.prototype=o).constructor=n,n}(this.className,this.allRuleNames,this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.nestedRuleBeforeClause=function(e,t){var r;return void 0!==e.NAME?(r=e.NAME,this.nestedRuleInvocationStateUpdate(r,t),r):void 0},e.prototype.nestedAltBeforeClause=function(e,t,r,n){var o,i=Ht(this.getLastExplicitRuleShortName(),r,t,n);return void 0!==e.NAME?(o=e.NAME,this.nestedRuleInvocationStateUpdate(o,i),{shortName:i,nestedName:o}):void 0},e.prototype.nestedRuleFinallyClause=function(e,t){var r=this.CST_STACK,n=r[r.length-1];this.nestedRuleFinallyStateUpdate();var o=r[r.length-1];Ut(o,t,n),this.setNodeLocationFromNode(o.location,n.location)},e.prototype.getLastExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_STACK[e]},e.prototype.getLastExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-2];return this.RULE_STACK[e]},e.prototype.getPreviousExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_OCCURRENCE_STACK[e]},e.prototype.getLastExplicitRuleOccurrenceIndexNoCst=function(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]},e.prototype.nestedRuleInvocationStateUpdate=function(e,t){this.RULE_OCCURRENCE_STACK.push(1),this.RULE_STACK.push(t),this.cstNestedInvocationStateUpdate(e,t)},e.prototype.nestedRuleFinallyStateUpdate=function(){this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstNestedFinallyStateUpdate()},e}(),tn=function(){function e(){}return e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set:function(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length},enumerable:!0,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):vn},e.prototype.LA=function(e){var t=this.currIdx+e;return t<0||this.tokVectorLength<=t?vn:this.tokVector[t]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(e){this.currIdx=e},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}(),rn=function(){function e(){}return e.prototype.ACTION=function(e){return e.call(this)},e.prototype.consume=function(e,t,r){return this.consumeInternal(t,e,r)},e.prototype.subrule=function(e,t,r){return this.subruleInternal(t,e,r)},e.prototype.option=function(e,t){return this.optionInternal(t,e)},e.prototype.or=function(e,t){return this.orInternal(t,e)},e.prototype.many=function(e,t){return this.manyInternal(e,t)},e.prototype.atLeastOne=function(e,t){return this.atLeastOneInternal(e,t)},e.prototype.CONSUME=function(e,t){return this.consumeInternal(e,0,t)},e.prototype.CONSUME1=function(e,t){return this.consumeInternal(e,1,t)},e.prototype.CONSUME2=function(e,t){return this.consumeInternal(e,2,t)},e.prototype.CONSUME3=function(e,t){return this.consumeInternal(e,3,t)},e.prototype.CONSUME4=function(e,t){return this.consumeInternal(e,4,t)},e.prototype.CONSUME5=function(e,t){return this.consumeInternal(e,5,t)},e.prototype.CONSUME6=function(e,t){return this.consumeInternal(e,6,t)},e.prototype.CONSUME7=function(e,t){return this.consumeInternal(e,7,t)},e.prototype.CONSUME8=function(e,t){return this.consumeInternal(e,8,t)},e.prototype.CONSUME9=function(e,t){return this.consumeInternal(e,9,t)},e.prototype.SUBRULE=function(e,t){return this.subruleInternal(e,0,t)},e.prototype.SUBRULE1=function(e,t){return this.subruleInternal(e,1,t)},e.prototype.SUBRULE2=function(e,t){return this.subruleInternal(e,2,t)},e.prototype.SUBRULE3=function(e,t){return this.subruleInternal(e,3,t)},e.prototype.SUBRULE4=function(e,t){return this.subruleInternal(e,4,t)},e.prototype.SUBRULE5=function(e,t){return this.subruleInternal(e,5,t)},e.prototype.SUBRULE6=function(e,t){return this.subruleInternal(e,6,t)},e.prototype.SUBRULE7=function(e,t){return this.subruleInternal(e,7,t)},e.prototype.SUBRULE8=function(e,t){return this.subruleInternal(e,8,t)},e.prototype.SUBRULE9=function(e,t){return this.subruleInternal(e,9,t)},e.prototype.OPTION=function(e){return this.optionInternal(e,0)},e.prototype.OPTION1=function(e){return this.optionInternal(e,1)},e.prototype.OPTION2=function(e){return this.optionInternal(e,2)},e.prototype.OPTION3=function(e){return this.optionInternal(e,3)},e.prototype.OPTION4=function(e){return this.optionInternal(e,4)},e.prototype.OPTION5=function(e){return this.optionInternal(e,5)},e.prototype.OPTION6=function(e){return this.optionInternal(e,6)},e.prototype.OPTION7=function(e){return this.optionInternal(e,7)},e.prototype.OPTION8=function(e){return this.optionInternal(e,8)},e.prototype.OPTION9=function(e){return this.optionInternal(e,9)},e.prototype.OR=function(e){return this.orInternal(e,0)},e.prototype.OR1=function(e){return this.orInternal(e,1)},e.prototype.OR2=function(e){return this.orInternal(e,2)},e.prototype.OR3=function(e){return this.orInternal(e,3)},e.prototype.OR4=function(e){return this.orInternal(e,4)},e.prototype.OR5=function(e){return this.orInternal(e,5)},e.prototype.OR6=function(e){return this.orInternal(e,6)},e.prototype.OR7=function(e){return this.orInternal(e,7)},e.prototype.OR8=function(e){return this.orInternal(e,8)},e.prototype.OR9=function(e){return this.orInternal(e,9)},e.prototype.MANY=function(e){this.manyInternal(0,e)},e.prototype.MANY1=function(e){this.manyInternal(1,e)},e.prototype.MANY2=function(e){this.manyInternal(2,e)},e.prototype.MANY3=function(e){this.manyInternal(3,e)},e.prototype.MANY4=function(e){this.manyInternal(4,e)},e.prototype.MANY5=function(e){this.manyInternal(5,e)},e.prototype.MANY6=function(e){this.manyInternal(6,e)},e.prototype.MANY7=function(e){this.manyInternal(7,e)},e.prototype.MANY8=function(e){this.manyInternal(8,e)},e.prototype.MANY9=function(e){this.manyInternal(9,e)},e.prototype.MANY_SEP=function(e){this.manySepFirstInternal(0,e)},e.prototype.MANY_SEP1=function(e){this.manySepFirstInternal(1,e)},e.prototype.MANY_SEP2=function(e){this.manySepFirstInternal(2,e)},e.prototype.MANY_SEP3=function(e){this.manySepFirstInternal(3,e)},e.prototype.MANY_SEP4=function(e){this.manySepFirstInternal(4,e)},e.prototype.MANY_SEP5=function(e){this.manySepFirstInternal(5,e)},e.prototype.MANY_SEP6=function(e){this.manySepFirstInternal(6,e)},e.prototype.MANY_SEP7=function(e){this.manySepFirstInternal(7,e)},e.prototype.MANY_SEP8=function(e){this.manySepFirstInternal(8,e)},e.prototype.MANY_SEP9=function(e){this.manySepFirstInternal(9,e)},e.prototype.AT_LEAST_ONE=function(e){this.atLeastOneInternal(0,e)},e.prototype.AT_LEAST_ONE1=function(e){return this.atLeastOneInternal(1,e)},e.prototype.AT_LEAST_ONE2=function(e){this.atLeastOneInternal(2,e)},e.prototype.AT_LEAST_ONE3=function(e){this.atLeastOneInternal(3,e)},e.prototype.AT_LEAST_ONE4=function(e){this.atLeastOneInternal(4,e)},e.prototype.AT_LEAST_ONE5=function(e){this.atLeastOneInternal(5,e)},e.prototype.AT_LEAST_ONE6=function(e){this.atLeastOneInternal(6,e)},e.prototype.AT_LEAST_ONE7=function(e){this.atLeastOneInternal(7,e)},e.prototype.AT_LEAST_ONE8=function(e){this.atLeastOneInternal(8,e)},e.prototype.AT_LEAST_ONE9=function(e){this.atLeastOneInternal(9,e)},e.prototype.AT_LEAST_ONE_SEP=function(e){this.atLeastOneSepFirstInternal(0,e)},e.prototype.AT_LEAST_ONE_SEP1=function(e){this.atLeastOneSepFirstInternal(1,e)},e.prototype.AT_LEAST_ONE_SEP2=function(e){this.atLeastOneSepFirstInternal(2,e)},e.prototype.AT_LEAST_ONE_SEP3=function(e){this.atLeastOneSepFirstInternal(3,e)},e.prototype.AT_LEAST_ONE_SEP4=function(e){this.atLeastOneSepFirstInternal(4,e)},e.prototype.AT_LEAST_ONE_SEP5=function(e){this.atLeastOneSepFirstInternal(5,e)},e.prototype.AT_LEAST_ONE_SEP6=function(e){this.atLeastOneSepFirstInternal(6,e)},e.prototype.AT_LEAST_ONE_SEP7=function(e){this.atLeastOneSepFirstInternal(7,e)},e.prototype.AT_LEAST_ONE_SEP8=function(e){this.atLeastOneSepFirstInternal(8,e)},e.prototype.AT_LEAST_ONE_SEP9=function(e){this.atLeastOneSepFirstInternal(9,e)},e.prototype.RULE=function(e,t,r){if(void 0===r&&(r=bn),E(this.definedRulesNames,e)){var n={message:Rr.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:En.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(n)}this.definedRulesNames.push(e);var o=this.defineRule(e,t,r);return this[e]=o,o},e.prototype.OVERRIDE_RULE=function(e,t,r){void 0===r&&(r=bn);var n,o,i,s,a,l=[];l=l.concat((n=e,o=this.definedRulesNames,i=this.className,a=[],E(o,n)||(s="Invalid rule override, rule: ->"+n+"<- cannot be overridden in the grammar: ->"+i+"<-as it is not defined in any of the super grammars ",a.push({message:s,type:En.INVALID_RULE_OVERRIDE,ruleName:n})),a)),this.definitionErrors.push.apply(this.definitionErrors,l);var h=this.defineRule(e,t,r);return this[e]=h,h},e.prototype.BACKTRACK=function(e,t){return function(){this.isBackTrackingStack.push(1);var r=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(Pr(e))return!1;throw e}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return mt(s(this.gastProductionsCache))},e}(),nn=function(){function e(){}return e.prototype.initRecognizerEngine=function(e,t){if(this.className=Xr(this.constructor),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Ne,this.definedRulesNames=[],this.tokensMap={},this.allRuleNames=[],this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},v(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if(A(e)){if(o(e))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if(A(e))this.tokensMap=T(e,function(e,t){return e[t.name]=t,e},{});else if(v(e,"modes")&&O(l(s(e.modes)),He)){var r=M(l(s(e.modes)));this.tokensMap=T(r,function(e,t){return e[t.name]=t,e},{})}else{if(!N(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=b(e)}this.tokensMap.EOF=tt;var n=O(s(e),function(e){return o(e.categoryMatches)});this.tokenMatcher=n?Ne:Ie,ke(s(this.tokensMap))},e.prototype.defineRule=function(e,t,r){if(this.selfAnalysisDone)throw Error("Grammar rule <"+e+"> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var n,o=v(r,"resyncEnabled")?r.resyncEnabled:bn.resyncEnabled,i=v(r,"recoveryValueFunc")?r.recoveryValueFunc:bn.recoveryValueFunc,s=this.ruleShortNameIdx<<12;function a(e){try{if(!0===this.outputCst){t.apply(this,e);var r=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(r),r}return t.apply(this,e)}catch(e){return this.invokeRuleCatch(e,o,i)}finally{this.ruleFinallyStateUpdate()}}this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=e,this.fullRuleNameToShort[e]=s;return(n=function(t,r){return void 0===t&&(t=0),this.ruleInvocationStateUpdate(s,e,t),a.call(this,r)}).ruleName=e,n.originalGrammarAction=t,n},e.prototype.invokeRuleCatch=function(e,t,r){var n=1===this.RULE_STACK.length,o=t&&!this.isBackTracking()&&this.recoveryEnabled;if(Pr(e)){var i=e;if(o){var s,a=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(a))return i.resyncedTokens=this.reSyncTo(a),this.outputCst?((s=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,s):r();throw this.outputCst&&((s=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,i.partialCstResult=s),i}if(n)return this.moveToTerminatedState(),r();throw i}throw e},e.prototype.optionInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(Ot,t),n=this.nestedRuleBeforeClause(e,r);try{return this.optionInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.optionInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(Ot,t);return this.optionInternalLogic(e,t,r)},e.prototype.optionInternalLogic=function(e,t,r){var n,o,i=this,s=this.getLaFuncFromCache(r);if(void 0!==e.DEF){if(n=e.DEF,void 0!==(o=e.GATE)){var a=s;s=function(){return o.call(i)&&a.call(i)}}}else n=e;if(!0===s.call(this))return n.call(this)},e.prototype.atLeastOneInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(kt,e),n=this.nestedRuleBeforeClause(t,r);try{return this.atLeastOneInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.atLeastOneInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(kt,e);this.atLeastOneInternalLogic(e,t,r)},e.prototype.atLeastOneInternalLogic=function(e,t,r){var n,o,i=this,s=this.getLaFuncFromCache(r);if(void 0!==t.DEF){if(n=t.DEF,void 0!==(o=t.GATE)){var a=s;s=function(){return o.call(i)&&a.call(i)}}}else n=t;if(!0!==s.call(this))throw this.raiseEarlyExitException(e,Jt.REPETITION_MANDATORY,t.ERR_MSG);for(var l=this.doSingleRepetition(n);!0===s.call(this)&&!0===l;)l=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],s,kt,e,Kt)},e.prototype.atLeastOneSepFirstInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(Pt,e),n=this.nestedRuleBeforeClause(t,r);try{this.atLeastOneSepFirstInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.atLeastOneSepFirstInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(Pt,e);this.atLeastOneSepFirstInternalLogic(e,t,r)},e.prototype.atLeastOneSepFirstInternalLogic=function(e,t,r){var n=this,o=t.DEF,i=t.SEP;if(!0!==this.getLaFuncFromCache(r).call(this))throw this.raiseEarlyExitException(e,Jt.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);o.call(this);for(var s=function(){return n.tokenMatcher(n.LA(1),i)};!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,s,o,Xt],s,Pt,e,Xt)},e.prototype.manyInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(xt,e),n=this.nestedRuleBeforeClause(t,r);try{return this.manyInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.manyInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(xt,e);return this.manyInternalLogic(e,t,r)},e.prototype.manyInternalLogic=function(e,t,r){var n,o,i=this,s=this.getLaFuncFromCache(r);if(void 0!==t.DEF){if(n=t.DEF,void 0!==(o=t.GATE)){var a=s;s=function(){return o.call(i)&&a.call(i)}}}else n=t;for(var l=!0;!0===s.call(this)&&!0===l;)l=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],s,xt,e,jt,l)},e.prototype.manySepFirstInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(Lt,e),n=this.nestedRuleBeforeClause(t,r);try{this.manySepFirstInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.manySepFirstInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(Lt,e);this.manySepFirstInternalLogic(e,t,r)},e.prototype.manySepFirstInternalLogic=function(e,t,r){var n=this,o=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){o.call(this);for(var s=function(){return n.tokenMatcher(n.LA(1),i)};!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,s,o,$t],s,Lt,e,$t)}},e.prototype.repetitionSepSecondInternal=function(e,t,r,n,o){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,o],r,Pt,e,o)},e.prototype.doSingleRepetition=function(e){var t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t},e.prototype.orInternalNoCst=function(e,t){var r=A(e)?e:e.DEF,n=this.getKeyForAutomaticLookahead(Nt,t),o=this.getLaFuncFromCache(n).call(this,r);if(void 0!==o)return r[o].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)},e.prototype.orInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(Nt,t),n=this.nestedRuleBeforeClause(e,r);try{var o=A(e)?e:e.DEF,i=this.getLaFuncFromCache(r).call(this,o);if(void 0!==i){var s=o[i],a=this.nestedAltBeforeClause(s,t,Nt,i);try{return s.ALT.call(this)}finally{void 0!==a&&this.nestedRuleFinallyClause(a.shortName,a.nestedName)}}this.raiseNoAltException(t,e.ERR_MSG)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Fr(t,e))}},e.prototype.subruleInternal=function(e,t,r){var n;try{var o=void 0!==r?r.ARGS:void 0;return n=e.call(this,t,o),this.cstPostNonTerminal(n,void 0!==r&&void 0!==r.LABEL?r.LABEL:e.ruleName),n}catch(t){this.subruleInternalError(t,r,e.ruleName)}},e.prototype.subruleInternalError=function(e,t,r){throw Pr(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:r),delete e.partialCstResult),e},e.prototype.consumeInternal=function(e,t,r){var n;try{var o=this.LA(1);!0===this.tokenMatcher(o,e)?(this.consumeToken(),n=o):this.consumeInternalError(e,o,r)}catch(r){n=this.consumeInternalRecovery(e,t,r)}return this.cstPostTerminal(void 0!==r&&void 0!==r.LABEL?r.LABEL:e.name,n),n},e.prototype.consumeInternalError=function(e,t,r){var n,o=this.LA(0);throw n=void 0!==r&&r.ERR_MSG?r.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Dr(n,t,o))},e.prototype.consumeInternalRecovery=function(e,t,r){if(!this.recoveryEnabled||"MismatchedTokenException"!==r.name||this.isBackTracking())throw r;var n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(e){throw e.name===Ur?r:e}},e.prototype.saveRecogState=function(){var e=this.errors,t=S(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK,LAST_EXPLICIT_RULE_STACK:this.LAST_EXPLICIT_RULE_STACK}},e.prototype.reloadRecogState=function(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(e,t,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t,e)},e.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},e.prototype.getCurrRuleFullName=function(){var e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]},e.prototype.shortRuleNameToFullName=function(e){return this.shortRuleNameToFull[e]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),tt)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}(),on=function(){function e(){}return e.prototype.initErrorHandler=function(e){this._errors=[],this.errorMessageProvider=D(e.errorMessageProvider,Sn.errorMessageProvider)},e.prototype.SAVE_ERROR=function(e){if(Pr(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:S(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:function(){return S(this._errors)},set:function(e){this._errors=e},enumerable:!0,configurable:!0}),e.prototype.raiseEarlyExitException=function(e,t,r){for(var n=this.getCurrRuleFullName(),o=lr(e,this.getGAstProductions()[n],t,this.maxLookahead)[0],i=[],s=1;s<=this.maxLookahead;s++)i.push(this.LA(s));var a=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:o,actual:i,previous:this.LA(0),customUserDescription:r,ruleName:n});throw this.SAVE_ERROR(new Br(a,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(e,t){for(var r=this.getCurrRuleFullName(),n=ar(e,this.getGAstProductions()[r],this.maxLookahead),o=[],i=1;i<=this.maxLookahead;i++)o.push(this.LA(i));var s=this.LA(0),a=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:n,actual:o,previous:s,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Hr(a,this.LA(1),s))},e}(),sn=function(){function e(){}return e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(e,t){var r=this.gastProductionsCache[e];if(p(r))throw Error("Rule ->"+e+"<- does not exist in this grammar.");return Zt([r],t,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(e){var t=h(e.ruleStack),r=this.getGAstProductions()[t];return new Yt(r,e).startWalking()},e}(),an={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(an);var ln=!0,hn=Math.pow(2,8)-1,cn=et({name:"RECORDING_PHASE_TOKEN",pattern:Ue.NA});ke([cn]);var un=rt(cn,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(un);var dn={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",children:{}},pn=function(){function e(){}return e.prototype.initGastRecorder=function(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var e=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var t=function(t){var r=t>0?t:"";e["CONSUME"+r]=function(e,r){return this.consumeInternalRecord(e,t,r)},e["SUBRULE"+r]=function(e,r){return this.subruleInternalRecord(e,t,r)},e["OPTION"+r]=function(e){return this.optionInternalRecord(e,t)},e["OR"+r]=function(e){return this.orInternalRecord(e,t)},e["MANY"+r]=function(e){this.manyInternalRecord(t,e)},e["MANY_SEP"+r]=function(e){this.manySepFirstInternalRecord(t,e)},e["AT_LEAST_ONE"+r]=function(e){this.atLeastOneInternalRecord(t,e)},e["AT_LEAST_ONE_SEP"+r]=function(e){this.atLeastOneSepFirstInternalRecord(t,e)}},r=0;r<10;r++)t(r);e.consume=function(e,t,r){return this.consumeInternalRecord(t,e,r)},e.subrule=function(e,t,r){return this.subruleInternalRecord(t,e,r)},e.option=function(e,t){return this.optionInternalRecord(t,e)},e.or=function(e,t){return this.orInternalRecord(t,e)},e.many=function(e,t){this.manyInternalRecord(e,t)},e.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},e.ACTION=e.ACTION_RECORD,e.BACKTRACK=e.BACKTRACK_RECORD,e.LA=e.LA_RECORD})},e.prototype.disableRecording=function(){var e=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var t=0;t<10;t++){var r=t>0?t:"";delete e["CONSUME"+r],delete e["SUBRULE"+r],delete e["OPTION"+r],delete e["OR"+r],delete e["MANY"+r],delete e["MANY_SEP"+r],delete e["AT_LEAST_ONE"+r],delete e["AT_LEAST_ONE_SEP"+r]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})},e.prototype.ACTION_RECORD=function(e){},e.prototype.BACKTRACK_RECORD=function(e,t){return function(){return!0}},e.prototype.LA_RECORD=function(e){return vn},e.prototype.topLevelRuleRecord=function(e,t){try{var r=new at({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording'}catch(t){throw e}throw e}},e.prototype.optionInternalRecord=function(e,t){return gn.call(this,ht,e,t)},e.prototype.atLeastOneInternalRecord=function(e,t){gn.call(this,ct,t,e)},e.prototype.atLeastOneSepFirstInternalRecord=function(e,t){gn.call(this,ut,t,e,ln)},e.prototype.manyInternalRecord=function(e,t){gn.call(this,dt,t,e)},e.prototype.manySepFirstInternalRecord=function(e,t){gn.call(this,pt,t,e,ln)},e.prototype.orInternalRecord=function(e,t){return fn.call(this,e,t)},e.prototype.subruleInternalRecord=function(e,t,r){if(Cn(t),!e||!1===v(e,"ruleName")){var n=new Error("<SUBRULE"+mn(t)+"> argument is invalid expecting a Parser method reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw n.KNOWN_RECORDER_ERROR=!0,n}var o=G(this.recordingProdStack),i=e.ruleName,s=new st({idx:t,nonTerminalName:i,referencedRule:void 0});return o.definition.push(s),this.outputCst?dn:an},e.prototype.consumeInternalRecord=function(e,t,r){if(Cn(t),!Pe(e)){var n=new Error("<CONSUME"+mn(t)+"> argument is invalid expecting a TokenType reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw n.KNOWN_RECORDER_ERROR=!0,n}var o=G(this.recordingProdStack),i=new ft({idx:t,terminalType:e});return o.definition.push(i),un},e}();function gn(e,t,r,n){void 0===n&&(n=!1),Cn(r);var o=G(this.recordingProdStack),i=g(t)?t:t.DEF,s=new e({definition:[],idx:r});return v(t,"NAME")&&(s.name=t.NAME),n&&(s.separator=t.SEP),v(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),i.call(this),o.definition.push(s),this.recordingProdStack.pop(),an}function fn(e,t){var r=this;Cn(t);var n=G(this.recordingProdStack),o=!1===A(e),i=!1===o?e:e.DEF,s=new gt({definition:[],idx:t,ignoreAmbiguities:o&&!0===e.IGNORE_AMBIGUITIES});v(e,"NAME")&&(s.name=e.NAME),v(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var a=k(i,function(e){return g(e.GATE)});return s.hasPredicates=a,n.definition.push(s),u(i,function(e){var t=new lt({definition:[]});s.definition.push(t),v(e,"NAME")&&(t.name=e.NAME),v(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:v(e,"GATE")&&(t.ignoreAmbiguities=!0),r.recordingProdStack.push(t),e.ALT.call(r),r.recordingProdStack.pop()}),an}function mn(e){return 0===e?"":""+e}function Cn(e){if(e<0||e>hn){var t=new Error("Invalid DSL Method idx value: <"+e+">\n\tIdx value must be a none negative value smaller than "+(hn+1));throw t.KNOWN_RECORDER_ERROR=!0,t}}var wn=function(){function e(){}return e.prototype.initPerformanceTracer=function(e){if(v(e,"traceInitPerf")){var t=e.traceInitPerf,r="number"==typeof t;this.traceInitMaxIdent=r?t:1/0,this.traceInitPerf=r?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=Sn.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;var r=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+"--\x3e <"+e+">");var n=j(t),o=n.time,i=n.value,s=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(r+"<-- <"+e+"> time: "+o+"ms"),this.traceInitIndent--,i}return t()},e}(),yn=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),vn=rt(tt,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(vn);var En,Sn=Object.freeze({recoveryEnabled:!1,maxLookahead:4,ignoredIssues:{},dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Sr,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),bn=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});function Rn(e){return void 0===e&&(e=void 0),function(){return e}}!function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.INVALID_NESTED_RULE_NAME=10]="INVALID_NESTED_RULE_NAME",e[e.DUPLICATE_NESTED_NAME=11]="DUPLICATE_NESTED_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=12]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=13]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=14]="TOO_MANY_ALTS"}(En||(En={}));var Tn,_n=function(){function e(e,t){void 0===t&&(t=Sn),this.ignoredIssues=Sn.ignoredIssues,this.definitionErrors=[],this.selfAnalysisDone=!1;var r=this;r.initErrorHandler(t),r.initLexerAdapter(),r.initLooksAhead(t),r.initRecognizerEngine(e,t),r.initRecoverable(t),r.initTreeBuilder(t),r.initContentAssist(),r.initGastRecorder(t),r.initPerformanceTracer(t),v(t,"ignoredIssues")&&t.ignoredIssues!==Sn.ignoredIssues&&W("The <ignoredIssues> IParserConfig property is soft-deprecated and will be removed in future versions.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead."),this.ignoredIssues=v(t,"ignoredIssues")?t.ignoredIssues:Sn.ignoredIssues,this.skipValidations=v(t,"skipValidations")?t.skipValidations:Sn.skipValidations}return e.performSelfAnalysis=function(e){e.performSelfAnalysis()},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var r;t.selfAnalysisDone=!0;var n=t.className;t.TRACE_INIT("toFastProps",function(){Y(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),u(t.definedRulesNames,function(e){var r=t[e].originalGrammarAction,n=void 0;t.TRACE_INIT(e+" Rule",function(){n=t.topLevelRuleRecord(e,r)}),t.gastProductionsCache[e]=n})}finally{t.disableRecording()}});var i=[];if(t.TRACE_INIT("Grammar Resolving",function(){i=Mr({rules:s(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,i)}),t.TRACE_INIT("Grammar Validations",function(){if(o(i)&&!1===t.skipValidations){var e=Ar({rules:s(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:s(t.tokensMap),ignoredIssues:t.ignoredIssues,errMsgProvider:Rr,grammarName:n});t.definitionErrors.push.apply(t.definitionErrors,e)}}),o(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var e,r,n=(e=s(t.gastProductionsCache),r={},u(e,function(e){var t=new It(e).startWalking();L(r,t)}),r);t.resyncFollows=n}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(s(t.gastProductionsCache))})),t.TRACE_INIT("expandAllNestedRuleNames",function(){var e,r,n,o=(e=s(t.gastProductionsCache),r=t.fullRuleNameToShort,n={allRuleNames:[]},u(e,function(e){var t=r[e.name];n.allRuleNames.push(e.name);var o=new Wt(t);e.accept(o),u(o.result,function(t){t.def,t.key;var r=t.name;n.allRuleNames.push(e.name+r)})}),n);t.allRuleNames=o.allRuleNames}),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!o(t.definitionErrors))throw r=a(t.definitionErrors,function(e){return e.message}),new Error("Parser Definition Errors detected:\n "+r.join("\n-------------------------------\n"))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();Tn=_n,[zr,Gr,en,tn,nn,rn,on,sn,pn,wn].forEach(function(e){var t=e.prototype;Object.getOwnPropertyNames(t).forEach(function(r){if("constructor"!==r){var n=Object.getOwnPropertyDescriptor(t,r);n&&(n.get||n.set)?Object.defineProperty(Tn.prototype,r,n):Tn.prototype[r]=e.prototype[r]}})});var Mn=function(e){function t(t,r){void 0===r&&(r=Sn);var n=b(r);return n.outputCst=!0,e.call(this,t,n)||this}return yn(t,e),t}(_n),An=function(e){function t(t,r){void 0===r&&(r=Sn);var n=b(r);return n.outputCst=!1,e.call(this,t,n)||this}return yn(t,e),t}(_n);function In(e,t){var r=void 0===t?{}:t,o=r.resourceBase,i=void 0===o?"https://unpkg.com/chevrotain@"+n+"/diagrams/":o,s=r.css;return'\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n'+("\n<link rel='stylesheet' href='"+(void 0===s?"https://unpkg.com/chevrotain@"+n+"/diagrams/diagrams.css":s)+"'>\n")+("\n<script src='"+i+"vendor/railroad-diagrams.js'><\/script>\n<script src='"+i+"src/diagrams_builder.js'><\/script>\n<script src='"+i+"src/diagrams_behavior.js'><\/script>\n<script src='"+i+"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div> \n'+("\n<script>\n window.serializedGrammar = "+JSON.stringify(e,null," ")+";\n<\/script>\n")+'\n<script>\n var diagramsDiv = document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}var Nn="\n";function On(e){return"\nfunction "+e.name+"(tokenVocabulary, config) {\n // invoke super constructor\n // No support for embedded actions currently, so we can 'hardcode'\n // The use of CstParser.\n chevrotain.CstParser.call(this, tokenVocabulary, config)\n\n const $ = this\n\n "+(a(e.rules,function(e){return function(e,t){var r=Hn(t,'$.RULE("'+e.name+'", function() {')+Nn;return r+=Dn(e.definition,t+1),r+=Hn(t+1,"})")+Nn}(e,1)}).join("\n")+"\n\n // very important to call this after all the rules have been defined.\n // otherwise the parser may not work correctly as it will lack information\n // derived during the self analysis phase.\n this.performSelfAnalysis(this)\n}\n\n// inheritance as implemented in javascript in the previous decade... :(\n")+e.name+".prototype = Object.create(chevrotain.CstParser.prototype)\n"+e.name+".prototype.constructor = "+e.name+" \n "}function xn(e,t){var r=Hn(t,"$.OR"+e.idx+"([")+Nn,n=a(e.definition,function(e){return function(e,t){var r=Hn(t,"{")+Nn;e.name&&(r+=Hn(t+1,'NAME: "'+e.name+'",')+Nn);return r+=Hn(t+1,"ALT: function() {")+Nn,r+=Dn(e.definition,t+1),r+=Hn(t+1,"}")+Nn,r+=Hn(t,"}"),r}(e,t+1)});return r+=n.join(",\n"),r+=Nn+Hn(t,"])\n")}function kn(e,t){if(e instanceof st)return function(e,t){return Hn(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+Nn)}(e,t);if(e instanceof ht)return Ln("OPTION",e,t);if(e instanceof ct)return Ln("AT_LEAST_ONE",e,t);if(e instanceof ut)return Ln("AT_LEAST_ONE_SEP",e,t);if(e instanceof pt)return Ln("MANY_SEP",e,t);if(e instanceof dt)return Ln("MANY",e,t);if(e instanceof gt)return xn(e,t);if(e instanceof ft)return function(e,t){var r=e.terminalType.name;return Hn(t,"$.CONSUME"+e.idx+"(this.tokensMap."+r+")"+Nn)}(e,t);if(e instanceof lt)return Dn(e.definition,t);throw Error("non exhaustive match")}function Ln(e,t,r){var n=Hn(r,"$."+(e+t.idx)+"(");return t.name||t.separator?(n+="{\n",t.name&&(n+=Hn(r+1,'NAME: "'+t.name+'"')+","+Nn),t.separator&&(n+=Hn(r+1,"SEP: this.tokensMap."+t.separator.name)+","+Nn),n+="DEF: "+Pn(t.definition,r+2)+Nn,n+=Hn(r,"}")+Nn):n+=Pn(t.definition,r+1),n+=Hn(r,")")+Nn}function Pn(e,t){var r="function() {\n";return r+=Dn(e,t),r+=Hn(t,"}")+Nn}function Dn(e,t){var r="";return u(e,function(e){r+=kn(e,t+1)}),r}function Hn(e,t){return Array(4*e+1).join(" ")+t}function Fn(e){var t=function(e){return" \n"+On(e)+"\nreturn new "+e.name+"(tokenVocabulary, config) \n"}({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(t){return n(e.tokenVocabulary,t,r(39250))}}function Bn(e){return function(e){return"\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['chevrotain'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('chevrotain'));\n } else {\n // Browser globals (root is window)\n root.returnExports = factory(root.b);\n }\n}(typeof self !== 'undefined' ? self : this, function (chevrotain) {\n\n"+On(e)+"\n \nreturn {\n "+e.name+": "+e.name+" \n}\n}));\n"}({name:e.name,rules:e.rules})}function Vn(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")}},93398(e,t,r){var n={"./af":55962,"./af.js":55962,"./ar":54070,"./ar-dz":65109,"./ar-dz.js":65109,"./ar-kw":60549,"./ar-kw.js":60549,"./ar-ly":60036,"./ar-ly.js":60036,"./ar-ma":42981,"./ar-ma.js":42981,"./ar-ps":36634,"./ar-ps.js":36634,"./ar-sa":52863,"./ar-sa.js":52863,"./ar-tn":87513,"./ar-tn.js":87513,"./ar.js":54070,"./az":73374,"./az.js":73374,"./be":75720,"./be.js":75720,"./bg":3538,"./bg.js":3538,"./bm":11872,"./bm.js":11872,"./bn":32153,"./bn-bd":83252,"./bn-bd.js":83252,"./bn.js":32153,"./bo":42666,"./bo.js":42666,"./br":2509,"./br.js":2509,"./bs":58158,"./bs.js":58158,"./ca":72109,"./ca.js":72109,"./cs":763,"./cs.js":763,"./cv":45320,"./cv.js":45320,"./cy":24501,"./cy.js":24501,"./da":69102,"./da.js":69102,"./de":32770,"./de-at":32474,"./de-at.js":32474,"./de-ch":28636,"./de-ch.js":28636,"./de.js":32770,"./dv":2943,"./dv.js":2943,"./el":83788,"./el.js":83788,"./en-au":99813,"./en-au.js":99813,"./en-ca":68207,"./en-ca.js":68207,"./en-gb":53686,"./en-gb.js":53686,"./en-ie":1181,"./en-ie.js":1181,"./en-il":32822,"./en-il.js":32822,"./en-in":2732,"./en-in.js":2732,"./en-nz":33455,"./en-nz.js":33455,"./en-sg":63453,"./en-sg.js":63453,"./eo":42069,"./eo.js":42069,"./es":28465,"./es-do":91375,"./es-do.js":91375,"./es-mx":47859,"./es-mx.js":47859,"./es-us":55766,"./es-us.js":55766,"./es.js":28465,"./et":65092,"./et.js":65092,"./eu":46539,"./eu.js":46539,"./fa":7072,"./fa.js":7072,"./fi":94216,"./fi.js":94216,"./fil":92334,"./fil.js":92334,"./fo":80350,"./fo.js":80350,"./fr":36329,"./fr-ca":97278,"./fr-ca.js":97278,"./fr-ch":47797,"./fr-ch.js":47797,"./fr.js":36329,"./fy":80152,"./fy.js":80152,"./ga":89577,"./ga.js":89577,"./gd":61094,"./gd.js":61094,"./gl":64078,"./gl.js":64078,"./gom-deva":2527,"./gom-deva.js":2527,"./gom-latn":49744,"./gom-latn.js":49744,"./gu":469,"./gu.js":469,"./he":75590,"./he.js":75590,"./hi":20514,"./hi.js":20514,"./hr":74103,"./hr.js":74103,"./hu":41238,"./hu.js":41238,"./hy-am":13745,"./hy-am.js":13745,"./id":67320,"./id.js":67320,"./is":77437,"./is.js":77437,"./it":81384,"./it-ch":46258,"./it-ch.js":46258,"./it.js":81384,"./ja":67772,"./ja.js":67772,"./jv":88921,"./jv.js":88921,"./ka":6229,"./ka.js":6229,"./kk":92443,"./kk.js":92443,"./km":90433,"./km.js":90433,"./kn":60296,"./kn.js":60296,"./ko":94911,"./ko.js":94911,"./ku":20745,"./ku-kmr":6802,"./ku-kmr.js":6802,"./ku.js":20745,"./ky":87085,"./ky.js":87085,"./lb":71219,"./lb.js":71219,"./lo":50056,"./lo.js":50056,"./lt":92169,"./lt.js":92169,"./lv":83367,"./lv.js":83367,"./me":10403,"./me.js":10403,"./mi":39951,"./mi.js":39951,"./mk":68881,"./mk.js":68881,"./ml":21860,"./ml.js":21860,"./mn":85742,"./mn.js":85742,"./mr":86602,"./mr.js":86602,"./ms":76089,"./ms-my":6036,"./ms-my.js":6036,"./ms.js":76089,"./mt":40556,"./mt.js":40556,"./my":54271,"./my.js":54271,"./nb":39329,"./nb.js":39329,"./ne":41812,"./ne.js":41812,"./nl":30355,"./nl-be":97005,"./nl-be.js":97005,"./nl.js":30355,"./nn":28949,"./nn.js":28949,"./oc-lnc":52661,"./oc-lnc.js":52661,"./pa-in":1872,"./pa-in.js":1872,"./pl":84101,"./pl.js":84101,"./pt":64605,"./pt-br":20678,"./pt-br.js":20678,"./pt.js":64605,"./ro":60698,"./ro.js":60698,"./ru":47464,"./ru.js":47464,"./sd":594,"./sd.js":594,"./se":68225,"./se.js":68225,"./si":51957,"./si.js":51957,"./sk":36467,"./sk.js":36467,"./sl":16426,"./sl.js":16426,"./sq":42093,"./sq.js":42093,"./sr":17508,"./sr-cyrl":34203,"./sr-cyrl.js":34203,"./sr.js":17508,"./ss":16779,"./ss.js":16779,"./sv":84888,"./sv.js":84888,"./sw":19247,"./sw.js":19247,"./ta":28382,"./ta.js":28382,"./te":41266,"./te.js":41266,"./tet":88356,"./tet.js":88356,"./tg":65032,"./tg.js":65032,"./th":27317,"./th.js":27317,"./tk":20620,"./tk.js":20620,"./tl-ph":36018,"./tl-ph.js":36018,"./tlh":69373,"./tlh.js":69373,"./tr":31787,"./tr.js":31787,"./tzl":63775,"./tzl.js":63775,"./tzm":29160,"./tzm-latn":51784,"./tzm-latn.js":51784,"./tzm.js":29160,"./ug-cn":85555,"./ug-cn.js":85555,"./uk":95081,"./uk.js":95081,"./ur":10866,"./ur.js":10866,"./uz":78282,"./uz-latn":44874,"./uz-latn.js":44874,"./uz.js":78282,"./vi":60664,"./vi.js":60664,"./x-pseudo":61292,"./x-pseudo.js":61292,"./yo":27577,"./yo.js":27577,"./zh-cn":99949,"./zh-cn.js":99949,"./zh-hk":31937,"./zh-hk.js":31937,"./zh-mo":65876,"./zh-mo.js":65876,"./zh-tw":44057,"./zh-tw.js":44057};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=93398},75713(e,t){var r,n,o;"undefined"!=typeof self&&self,n=[],void 0===(o="function"==typeof(r=function(){function e(){}e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx},e.prototype.pattern=function(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");var t=this.disjunction();this.consumeChar("/");for(var r={type:"Flags",global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":a(r,"global");break;case"i":a(r,"ignoreCase");break;case"m":a(r,"multiLine");break;case"u":a(r,"unicode");break;case"y":a(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t}},e.prototype.disjunction=function(){var e=[];for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e}},e.prototype.alternative=function(){for(var e=[];this.isTerm();)e.push(this.term());return{type:"Alternative",value:e}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){switch(this.popChar()){case"^":return{type:"StartAnchor"};case"$":return{type:"EndAnchor"};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary"};case"B":return{type:"NonWordBoundary"}}throw Error("Invalid Assertion Escape");case"(":var e;switch(this.consumeChar("?"),this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}l(e);var t=this.disjunction();return this.consumeChar(")"),{type:e,value:t}}h()},e.prototype.quantifier=function(e){var t;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var r=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:r,atMost:r};break;case",":t=this.isDigit()?{atLeast:r,atMost:this.integerIncludingZero()}:{atLeast:r,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;l(t)}if(!0!==e||void 0!==t)return l(t),"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t},e.prototype.atom=function(){var e;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),l(e),this.isQuantifier()&&(e.quantifier=this.quantifier()),e},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i("\n"),i("\r"),i("\u2028"),i("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},e.prototype.characterClassEscape=function(){var e,t=!1;switch(this.popChar()){case"d":e=c;break;case"D":e=c,t=!0;break;case"s":e=d;break;case"S":e=d,t=!0;break;case"w":e=u;break;case"W":e=u,t=!0}return l(e),{type:"Set",value:e,complement:t}},e.prototype.controlEscapeAtom=function(){var e;switch(this.popChar()){case"f":e=i("\f");break;case"n":e=i("\n");break;case"r":e=i("\r");break;case"t":e=i("\t");break;case"v":e=i("\v")}return l(e),{type:"Character",value:e}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){return{type:"Character",value:i(this.popChar())}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:i(this.popChar())}}},e.prototype.characterClass=function(){var e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var r=this.classAtom();if("Character"===r.type&&this.isRangeDash()){this.consumeChar("-");var n=this.classAtom();if("Character"===n.type){if(n.value<r.value)throw Error("Range out of order in character class");e.push({from:r.value,to:n.value})}else s(r.value,e),e.push(i("-")),s(n.value,e)}else s(r.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:i("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.group=function(){var e=!0;this.consumeChar("("),"?"===this.peekChar(0)?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;var t=this.disjunction();this.consumeChar(")");var r={type:"Group",capturing:e,value:t};return e&&(r.idx=this.groupIdx),r},e.prototype.positiveInteger=function(){var e=this.popChar();if(!1===o.test(e))throw Error("Expecting a positive integer");for(;n.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.integerIncludingZero=function(){var e=this.popChar();if(!1===n.test(e))throw Error("Expecting an integer");for(;n.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.patternCharacter=function(){var e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:i(e)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(e){switch(void 0===e&&(e=0),this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},e.prototype.isQuantifier=function(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(e){for(var t="",n=0;n<e;n++){var o=this.popChar();if(!1===r.test(o))throw Error("Expecting a HexDecimal digits");t+=o}return{type:"Character",value:parseInt(t,16)}},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.input[this.idx+e]},e.prototype.popChar=function(){var e=this.peekChar(0);return this.consumeChar(),e},e.prototype.consumeChar=function(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++};var t,r=/[0-9a-fA-F]/,n=/[0-9]/,o=/[1-9]/;function i(e){return e.charCodeAt(0)}function s(e,t){void 0!==e.length?e.forEach(function(e){t.push(e)}):t.push(e)}function a(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t]=!0}function l(e){if(void 0===e)throw Error("Internal Error - Should never get here!")}function h(){throw Error("Internal Error - Should never get here!")}var c=[];for(t=i("0");t<=i("9");t++)c.push(t);var u=[i("_")].concat(c);for(t=i("a");t<=i("z");t++)u.push(t);for(t=i("A");t<=i("Z");t++)u.push(t);var d=[i(" "),i("\f"),i("\n"),i("\r"),i("\t"),i("\v"),i("\t"),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i("\u2028"),i("\u2029"),i(" "),i(" "),i(" "),i("\ufeff")];function p(){}return p.prototype.visitChildren=function(e){for(var t in e){var r=e[t];e.hasOwnProperty(t)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach(function(e){this.visit(e)},this))}},p.prototype.visit=function(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)},p.prototype.visitPattern=function(e){},p.prototype.visitFlags=function(e){},p.prototype.visitDisjunction=function(e){},p.prototype.visitAlternative=function(e){},p.prototype.visitStartAnchor=function(e){},p.prototype.visitEndAnchor=function(e){},p.prototype.visitWordBoundary=function(e){},p.prototype.visitNonWordBoundary=function(e){},p.prototype.visitLookahead=function(e){},p.prototype.visitNegativeLookahead=function(e){},p.prototype.visitCharacter=function(e){},p.prototype.visitSet=function(e){},p.prototype.visitGroup=function(e){},p.prototype.visitGroupBackReference=function(e){},p.prototype.visitQuantifier=function(e){},{RegExpParser:e,BaseRegExpVisitor:p,VERSION:"0.4.0"}})?r.apply(t,n):r)||(e.exports=o)},3732(e){function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function o(){n.off(e,o),t.apply(r,arguments)}return o._=t,this.on(e,o,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],o=[];if(n&&t)for(var i=0,s=n.length;i<s;i++)n[i].fn!==t&&n[i].fn._!==t&&o.push(n[i]);return o.length?r[e]=o:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t},51603(e,t,r){"use strict";
97
+ that does not exist. Before activation, register the context using the "addContext" method.`),d=e},isCtrlPressed:()=>!m&&(w.isPressed("control")||w.isPressed("meta")),releasePressedKeys:()=>w.releasePressedKeys(),destroy:()=>w.unmount()}}},32942(e,t,r){"use strict";t.__esModule=!0,t.useRecorder=function(e,t,r,n,d){const p=e=>l.includes(e),g=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=[];return e.altKey&&r.push("alt"),t&&(e.ctrlKey||e.metaKey)?r.push("control/meta"):(e.ctrlKey&&r.push("control"),e.metaKey&&r.push("meta")),e.shiftKey&&r.push("shift"),r},f=e=>{if(!1===t(e))return;if(!1===r(e)||229===e.keyCode||"string"!=typeof e.key||(0,i.isImmediatePropagationStopped)(e))return;const s=(0,o.normalizeEventKey)(e);let l=[];p(s)||(l=g(e));const h=[s].concat(l);!d(e,h)&&((0,a.isMacOS)()&&l.includes("meta")||!(0,a.isMacOS)()&&l.includes("control"))&&d(e,[s].concat(g(e,!0))),n(e)},m=e=>{if("string"==typeof e.key){const t=(0,o.normalizeEventKey)(e);p(t)&&h.press(t)}},C=e=>{if("string"==typeof e.key){const t=(0,o.normalizeEventKey)(e);p(t)&&h.release(t)}},w=()=>{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",C),c.push({event:"keyup",listener:C})),t.document.documentElement.addEventListener("keydown",f),t.document.documentElement.addEventListener("blur",w),t=(0,s.getParentWindow)(t)},unmount:()=>{let t=e;for(u-=1;t;){if(0===u){for(let e=0;e<c.length;e++){const{event:r,listener:n}=c[e];t.document.documentElement.removeEventListener(r,n)}c.length=0}t.document.documentElement.removeEventListener("keydown",f),t.document.documentElement.removeEventListener("blur",w),t=(0,s.getParentWindow)(t)}},isPressed:e=>h.isPressed(e),releasePressedKeys:()=>h.releaseAll()}};var n=r(91803),o=r(34875),i=r(82063),s=r(2783),a=r(81136);const l=["meta","alt","shift","control"],h=(0,n.createKeysObserver)(),c=[];let u=0},34875(e,t){"use strict";t.__esModule=!0;const r=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 r.has(t)?r.get(t):t}).sort().join("+");t.getKeysList=e=>e.split("+");const n=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]);t.normalizeEventKey=e=>{let{which:t,key:r}=e;if(n.has(t))return n.get(t);const o=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(o)?o:r.toLowerCase()}},95206(e,t){"use strict";t.__esModule=!0;t.default='/*!\n * Copyright (c) HANDSONCODE sp. z o. o.\n *\n * HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in\n * Gdynia, Poland, at Aleja Zwyciestwa 96-98, registered by the District Court in Gdansk under number\n * 538651, EU tax ID number: PL5862294002, share capital: PLN 62,800.00.\n *\n * This software is protected by applicable copyright laws, including international treaties, and dual-\n * licensed - depending on whether your use for commercial purposes, meaning intended for or\n * resulting in commercial advantage or monetary compensation, or not.\n *\n * If your use is strictly personal or solely for evaluation purposes, meaning for the purposes of testing\n * the suitability, performance, and usefulness of this software outside the production environment,\n * you agree to be bound by the terms included in the "handsontable-non-commercial-license.pdf" file.\n *\n * Your use of this software for commercial purposes is subject to the terms included in an applicable\n * license agreement.\n *\n * In any case, you must not make any such use of this software as to develop software which may be\n * considered competitive with this software.\n *\n * UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"\n * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO\n * LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,\n * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM\n * USE OR INABILITY TO USE THIS SOFTWARE.\n *\n * Version: 17.0.0-rc15\n * Release date: 05/03/2026 (built at 05/03/2026 11:36:19)\n */.ht-root-wrapper{display:flex;flex-direction:column;font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;height:100%;position:relative}.htFocusCatcher{border:0;display:block!important;height:0;margin:0;opacity:0;padding:0;position:absolute;width:0;z-index:-1}.ht-grid{flex:1 1 auto;min-height:0}.handsontable{color:var(--ht-foreground-color);font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);letter-spacing:var(--ht-letter-spacing);line-height:var(--ht-line-height);position:relative;scrollbar-color:var(--ht-scrollbar-thumb-color) var(--ht-scrollbar-track-color);scrollbar-width:thin;touch-action:manipulation}.handsontable .wtHolder::-webkit-scrollbar{height:9px;width:9px}.handsontable .wtHolder::-webkit-scrollbar-track{background:var(--ht-scrollbar-track-color);border-radius:var(--ht-scrollbar-border-radius)}.handsontable .wtHolder::-webkit-scrollbar-thumb{background-color:var(--ht-scrollbar-thumb-color);border-radius:var(--ht-scrollbar-border-radius)}.handsontable .wtHolder::-webkit-scrollbar-corner{background:var(--ht-scrollbar-track-color);border-end-end-radius:var(--ht-scrollbar-border-radius)}.handsontable.ht-wrapper{border-radius:var(--ht-wrapper-border-radius,0);height:100%;width:100%}.handsontable.ht-wrapper:not(.htFirstDatasetColumnNotRendered) td:first-of-type{border-inline-start-width:1px}.handsontable.ht-wrapper:before{border:var(--ht-wrapper-border-width) solid var(--ht-wrapper-border-color);border-radius:var(--ht-wrapper-border-radius,0);content:"";display:block;inset:0;overflow:hidden;pointer-events:none;position:absolute;z-index:999}.handsontable.htGhostTable table thead th{border-bottom-width:0}.handsontable.htGhostTable table tbody tr:first-of-type td:first-child,.handsontable.htGhostTable table tbody tr:first-of-type th:first-child{height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px)}.handsontable.htGhostTable table tbody tr td,.handsontable.htGhostTable table tbody tr th{border-top-width:0;height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px)}.handsontable.htHasScrollX:not(.htHorizontallyScrollableByWindow) .ht_master .wtHolder,.handsontable.htHasScrollY:not(.htVerticallyScrollableByWindow) .ht_master .wtHolder{border-radius:var(--ht-wrapper-border-radius,0)}.handsontable:not(.htHorizontallyScrollableByWindow) .ht_master .wtHolder,.handsontable:not(.htVerticallyScrollableByWindow) .ht_master .wtHolder{background-color:var(--ht-background-color)}.handsontable tr.ht__row_even th{background-color:var(--ht-row-header-even-background-color)}.handsontable tr.ht__row_even td{background-color:var(--ht-row-cell-even-background-color)}.handsontable tr.ht__row_odd th{background-color:var(--ht-row-header-odd-background-color)}.handsontable tr.ht__row_odd td{background-color:var(--ht-row-cell-odd-background-color)}.handsontable td,.handsontable th{border-bottom:1px solid var(--ht-cell-vertical-border-color);border-inline-end-color:var(--ht-cell-horizontal-border-color);border-inline-end-width:1px;border-inline-start-color:var(--ht-cell-horizontal-border-color);border-inline-start-width:0;border-left-style:solid;border-right-style:solid;border-top:0 solid var(--ht-cell-vertical-border-color);box-sizing:border-box;color:var(--ht-foreground-color);empty-cells:show;font-size:var(--ht-font-size);height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px);line-height:var(--ht-line-height);outline:none;outline-width:0;overflow:hidden;padding:var(--ht-cell-vertical-padding) var(--ht-cell-horizontal-padding);vertical-align:top;white-space:pre-wrap}.handsontable td.invisibleSelection,.handsontable th.invisibleSelection{outline:none}.handsontable td.invisibleSelection::selection,.handsontable th.invisibleSelection::selection{background:transparent}.handsontable th{background-color:var(--ht-header-background-color);color:var(--ht-header-foreground-color);font-weight:var(--ht-header-font-weight);overflow:visible;position:relative;text-align:center;white-space:nowrap}.handsontable th:last-child{border-bottom-width:1px;border-inline-end-color:var(--ht-border-color);border-inline-end-width:1px;border-inline-start-width:0}.handsontable th:last-child.ht__active_highlight{border-inline-end-color:var(--ht-header-active-border-color)}.handsontable th:first-child{border-inline-start-color:var(--ht-border-color)}.handsontable th:first-child.ht__active_highlight{border-inline-start-color:var(--ht-header-active-border-color)}.handsontable th:first-child,.handsontable th:nth-child(2){border-inline-start-width:1px}.handsontable th.current{box-shadow:inset 0 0 0 1px var(--ht-cell-selection-border-color)}.handsontable th.active{background-color:var(--ht-header-active-background-color);color:var(--ht-header-active-foreground-color)}.handsontable th.ht__highlight{background-color:var(--ht-header-highlighted-background-color);color:var(--ht-header-highlighted-foreground-color)}.handsontable th.ht__active_highlight{background-color:var(--ht-header-active-background-color);border-color:var(--ht-header-active-border-color);color:var(--ht-header-active-foreground-color)}.handsontable tbody tr.ht__row_even th.ht__highlight,.handsontable tbody tr.ht__row_odd th.ht__highlight{background-color:var(--ht-header-row-highlighted-background-color);color:var(--ht-header-row-highlighted-foreground-color)}.handsontable tbody tr.ht__row_even th.ht__active_highlight,.handsontable tbody tr.ht__row_odd th.ht__active_highlight{background-color:var(--ht-header-row-active-background-color);color:var(--ht-header-row-active-foreground-color)}.handsontable tbody tr:first-of-type td:first-child:empty:after,.handsontable tbody tr:first-of-type th:first-child:empty:after{content:"";display:block;min-height:var(--ht-line-height)}.handsontable tbody tr th{background-color:var(--ht-header-row-background-color);color:var(--ht-header-row-foreground-color);padding:0}.handsontable tbody tr th.ht__active_highlight{box-shadow:0 -1px 0 0 var(--ht-header-active-border-color)}.handsontable tbody tr th .relative{min-height:100%;padding:var(--ht-cell-vertical-padding) var(--ht-cell-horizontal-padding)}.handsontable tbody tr td:first-child{border-inline-start-color:var(--ht-border-color)}.handsontable tbody tr td:last-child{border-inline-end-color:var(--ht-border-color)}.handsontable thead tr th{padding:0}.handsontable thead tr th.ht__active_highlight{box-shadow:-1px 0 0 0 var(--ht-header-active-border-color)}.handsontable thead tr th .relative{padding:var(--ht-cell-vertical-padding) var(--ht-cell-horizontal-padding)}.handsontable thead tr th .relative .colHeader{max-width:calc(100% + 1px);overflow:hidden;text-overflow:ellipsis;vertical-align:top}.handsontable thead tr th .relative:has(.collapsibleIndicator,.changeType) .colHeader{max-width:calc(100% - var(--ht-icon-size) - var(--ht-gap-size) - 1px)}.handsontable tr:first-child td,.handsontable tr:first-child th{border-top-color:var(--ht-border-color);border-top-width:1px}.handsontable tr:first-child td.ht__active_highlight,.handsontable tr:first-child th.ht__active_highlight{border-top-color:var(--ht-header-active-border-color)}.handsontable tr:last-child td,.handsontable tr:last-child th{border-bottom-color:var(--ht-border-color)}.handsontable tr:last-child td.ht__active_highlight,.handsontable tr:last-child th.ht__active_highlight{border-bottom-color:var(--ht-header-active-border-color)}.handsontable div[class^=ht_clone] thead .ht__highlight .relative:after{background-color:var(--ht-accent-color);bottom:-1px;content:"";display:block;height:var(--ht-header-highlighted-shadow-size);left:-1px;position:absolute;right:-1px}.handsontable div[class^=ht_clone] thead tr:only-of-type .ht__highlight .relative:after{bottom:0}.handsontable div[class^=ht_clone] tbody .ht__highlight .relative:after{background-color:var(--ht-accent-color);bottom:-1px;content:"";display:block;position:absolute;right:-1px;top:-1px;width:var(--ht-header-highlighted-shadow-size)}.handsontable div[class^=ht_clone] td:first-of-type{border-inline-start-width:1px}.handsontable thead tr:not(:last-child) th{overflow:hidden}.handsontable .hide{display:none}.handsontable .relative{box-sizing:border-box;position:relative}.handsontable .wtHider{width:0}.handsontable .wtSpreader{height:auto;position:relative;width:0}.handsontable .htAutoSize{left:-99000px;position:absolute;top:-99000px;visibility:hidden}.handsontable .htTextEllipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.handsontable div,.handsontable input,.handsontable table,.handsontable tbody,.handsontable textarea,.handsontable thead{box-sizing:content-box}.handsontable input,.handsontable textarea{min-height:auto}.handsontable .htCore{background-color:var(--ht-background-color);border-collapse:separate;border-spacing:0;border-width:0;cursor:default;margin:0;outline-width:0;table-layout:fixed;width:0}.handsontable col,.handsontable col.rowHeader{width:64px}.handsontable col.hidden{width:0!important}.handsontable span.colHeader,.handsontable span.rowHeader{display:inline-block;font-size:var(--ht-font-size);line-height:var(--ht-line-height)}.handsontable tr.hidden,.handsontable tr.hidden td,.handsontable tr.hidden th{display:none}.handsontable a{color:var(--ht-link-color)}.handsontable a:hover{color:var(--ht-link-hover-color)}.handsontable .ht_clone_top th:nth-child(2){border-inline-end-width:1px;border-inline-start-width:0}.handsontable.htRowHeaders thead tr th:nth-child(2){border-inline-start-width:1px}.handsontable .ht_master:not(.innerBorderInlineStart):not(.emptyColumns) tbody tr th,.handsontable .ht_master:not(.innerBorderInlineStart):not(.emptyColumns) thead tr th:first-child,.handsontable .ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.htGhostTable) tbody tr th,.handsontable .ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.ht_clone_top):not(.htGhostTable) thead tr th:first-child{border-inline-end-width:0;border-inline-start-width:1px}.handsontable .ht_master:not(.innerBorderTop):not(.innerBorderBottom) thead tr.lastChild th,.handsontable .ht_master:not(.innerBorderTop):not(.innerBorderBottom) thead tr:last-child th,.handsontable .ht_master:not(.innerBorderTop):not(.innerBorderBottom)~.handsontable thead tr.lastChild th,.handsontable .ht_master:not(.innerBorderTop):not(.innerBorderBottom)~.handsontable thead tr:last-child th{border-bottom-width:0}.handsontable.htAutoRowSize .ht_master.innerBorderTop tbody tr:first-child td,.handsontable.htAutoRowSize .ht_master.innerBorderTop tbody tr:first-child th,.handsontable.htAutoRowSize .ht_master.innerBorderTop~.ht_clone_inline_start tbody tr:first-child td,.handsontable.htAutoRowSize .ht_master.innerBorderTop~.ht_clone_inline_start tbody tr:first-child th{border-top-width:0}.handsontable .ht_clone_inline_start table.htCore>thead,.handsontable .ht_master table.htCore>tbody>tr>th,.handsontable .ht_master table.htCore>thead{visibility:hidden}.ht_clone_bottom,.ht_clone_bottom .wtHolder,.ht_clone_inline_start,.ht_clone_inline_start .wtHolder,.ht_clone_top,.ht_clone_top .wtHolder,.ht_master,.ht_master .wtHolder{overflow:hidden}.ht_master .wtHolder{overflow:auto}[dir=rtl].handsontable td[dir=ltr]{border-inline-end-width:0;border-inline-start-width:1px}[dir=rtl].handsontable tbody tr td[dir=ltr]:last-child{border-inline-start-color:var(--ht-border-color)}[dir=rtl].handsontable div[class^=ht_clone] tbody .ht__highlight .relative:after{left:-1px;right:auto}.htScrollbarSafariTest::-webkit-scrollbar{height:9px;width:9px}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_master .htCore tbody tr:first-child td:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_master .htCore tbody tr:first-child td:last-child{border-start-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top .htCore tbody tr:first-child td:first-child,.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top_inline_start_corner .htCore tbody tr:first-child td:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_top .htCore tbody tr:first-child td:last-child{border-start-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_inline_start .htCore tbody tr:first-child td:first-child,.handsontable.ht-wrapper:not(.htColumnHeaders) .ht_clone_inline_start .htCore tbody tr:first-child th:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore{border-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore thead tr:first-child th:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore thead tr:first-child th:last-child{border-start-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore thead tr:last-child th:first-child{border-end-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore thead tr:last-child th:last-child{border-end-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore tbody tr:last-child td:first-child{border-end-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_master .htCore tbody tr:last-child td:last-child{border-end-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore,.handsontable.ht-wrapper .ht_clone_top_inline_start_corner .htCore,.handsontable.ht-wrapper .ht_clone_top_inline_start_corner .htCore thead tr:first-child th:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore{border-start-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore thead tr:first-child th:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_top .htCore thead tr:first-child th:last-child{border-start-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_start .htCore{border-end-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_inline_start .htCore,.handsontable.ht-wrapper .ht_clone_inline_start .htCore thead tr:first-child th:first-child{border-start-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore,.handsontable.ht-wrapper .ht_clone_bottom_inline_start_corner .htCore,.handsontable.ht-wrapper .ht_clone_bottom_inline_start_corner .htCore tr:last-child td:first-child,.handsontable.ht-wrapper .ht_clone_bottom_inline_start_corner .htCore tr:last-child th:first-child,.handsontable.ht-wrapper .ht_clone_inline_start .htCore tbody tr:last-child td:first-child,.handsontable.ht-wrapper .ht_clone_inline_start .htCore tbody tr:last-child th:first-child{border-end-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore{border-end-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore tr:last-child td:first-child,.handsontable.ht-wrapper .ht_clone_bottom .htCore tr:last-child th:first-child{border-end-start-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper .ht_clone_bottom .htCore tr:last-child td:last-child,.handsontable.ht-wrapper .ht_clone_bottom .htCore tr:last-child th:last-child{border-end-end-radius:var(--ht-wrapper-border-radius)}.handsontable.ht-wrapper.htHasScrollX .htCore{border-end-end-radius:0;border-end-start-radius:0}.handsontable.ht-wrapper.htHasScrollX .htCore tbody tr:last-child td:first-child,.handsontable.ht-wrapper.htHasScrollX .htCore tbody tr:last-child th:first-child,.handsontable.ht-wrapper.htHasScrollX .htCore thead tr:last-child th:first-child{border-end-start-radius:0!important}.handsontable.ht-wrapper.htHasScrollX .htCore tbody tr:last-child td:last-child,.handsontable.ht-wrapper.htHasScrollX .htCore tbody tr:last-child th:last-child,.handsontable.ht-wrapper.htHasScrollX .htCore thead tr:last-child th:last-child{border-end-end-radius:0!important}.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore{border-end-end-radius:0;border-start-end-radius:0}.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore tbody tr:first-child td:last-child,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore tbody tr:first-child th:last-child,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore thead tr:first-child th:last-child{border-start-end-radius:0!important}.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore tbody tr:last-child td:last-child,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore tbody tr:last-child th:last-child,.handsontable.ht-wrapper.htHasScrollY:not(.htVerticallyScrollableByWindow) .htCore thead tr:last-child th:last-child{border-end-end-radius:0!important}.handsontable.mobile,.handsontable.mobile .wtHolder{user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-overflow-scrolling:touch}.handsontable.mobile .handsontableInput:focus{-webkit-appearance:none;box-shadow:inset 0 0 0 2px var(--ht-accent-color)}.handsontable .bottomSelectionHandle,.handsontable .bottomSelectionHandle-HitArea,.handsontable .topSelectionHandle,.handsontable .topSelectionHandle-HitArea{inset-inline-end:unset;inset-inline-start:-10000px;top:-10000px;z-index:9999}.handsontable.hide-tween{-webkit-animation:opacity-hide .2s;animation:opacity-hide .2s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.handsontable.show-tween{-webkit-animation:opacity-show .3s;animation:opacity-show .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.ht_clone_master{z-index:100}.ht_clone_inline_start{z-index:120}.ht_clone_bottom{z-index:130}.ht_clone_bottom_inline_start_corner{z-index:150}.ht_clone_top{z-index:160}.ht_clone_top_inline_start_corner{z-index:180}.ht_editor_hidden{z-index:-1}.ht_editor_visible{z-index:200}.handsontable td.area{position:relative}.handsontable td.area:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-1{position:relative}.handsontable td.area-1:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-2{position:relative}.handsontable td.area-2:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-3{position:relative}.handsontable td.area-3:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-4{position:relative}.handsontable td.area-4:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-5{position:relative}.handsontable td.area-5:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-6{position:relative}.handsontable td.area-6:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area-7{position:relative}.handsontable td.area-7:before{background:var(--ht-cell-selection-background-color,#1a42e8);content:"";inset:0;position:absolute}.handsontable td.area:before{opacity:.14}.handsontable td.area-1:before{opacity:.21}.handsontable td.area-2:before{opacity:.28}.handsontable td.area-3:before{opacity:.35}.handsontable td.area-4:before{opacity:.42}.handsontable td.area-5:before{opacity:.49}.handsontable td.area-6:before{opacity:.56}.handsontable td.area-7:before{opacity:.63}.handsontable td.area{border-color:color-mix(in srgb,var(--ht-border-color),var(--ht-foreground-color) 10%)}.handsontable .wtBorder{font-size:0;position:absolute}.handsontable .wtBorder:first-child,.handsontable .wtBorder:nth-child(3){z-index:2}.handsontable .wtBorder:nth-child(2),.handsontable .wtBorder:nth-child(4){z-index:1}.handsontable .wtBorder.hidden{display:none!important}.handsontable .wtBorder.current{z-index:10}.handsontable .wtBorder.area,.handsontable .wtBorder.current{background-color:var(--ht-cell-selection-border-color)!important}.handsontable .wtBorder.area{z-index:8}.handsontable .wtBorder.fill{background-color:var(--ht-cell-autofill-fill-border-color,#68696c)!important;z-index:6}.handsontable .wtBorder.corner{background-color:var(--ht-cell-autofill-background-color,#1a42e8)!important;border-color:var(--ht-cell-autofill-border-color)!important;border-radius:var(--ht-cell-autofill-border-radius)!important;cursor:crosshair;font-size:0;z-index:10}.handsontable .wtBorder.corner:after{background:transparent;border-radius:var(--ht-cell-autofill-border-radius);content:"";inset:min(0px,(var(--ht-cell-autofill-size) - var(--ht-cell-autofill-hit-area-size))/2);position:absolute}.handsontable .wtBorder.corner.wtCornerInlineEndEdge:after{inset-inline-end:0}.handsontable .wtBorder.corner.wtCornerBlockEndEdge:after{inset-block-end:0}.hot-display-license-info{background-color:var(--ht-license-background-color,#f7f7f9);border:1px solid var(--ht-border-color,#f7f7f9);border-radius:var(--ht-wrapper-border-radius);color:var(--ht-license-foreground-color);font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--ht-font-size-small);line-height:var(--ht-line-height-small);margin-top:10px;padding:var(--ht-license-vertical-padding,16px) var(--ht-license-horizontal-padding,16px);text-align:left}.hot-display-license-info a{color:var(--ht-link-color);font-size:var(--ht-license-font-size)}.hot-display-license-info a:hover{color:var(--ht-link-hover-color)}.handsontable .htAutocompleteArrow{cursor:default;float:right;font-size:0;height:var(--ht-icon-size);margin-inline-end:1px;margin-inline-start:calc(var(--ht-gap-size)*2);position:relative;top:calc((var(--ht-line-height) - var(--ht-icon-size))/2);width:var(--ht-icon-size)}.handsontable .htAutocompleteArrow:after{content:"";display:block;left:0;opacity:.6;position:absolute;top:0}[dir=rtl].handsontable .htAutocompleteArrow{float:left}.handsontable .htCheckboxRendererInput{cursor:pointer;display:inline-block;height:var(--ht-checkbox-size);margin:-2px 0 0;outline:none;position:relative;vertical-align:middle;width:var(--ht-checkbox-size)}.handsontable .htCheckboxRendererInput:first-child{margin-inline-end:var(--ht-gap-size)}.handsontable .htCheckboxRendererInput:last-child{margin-inline-start:var(--ht-gap-size)}.handsontable .htCheckboxRendererInput:before{background-color:var(--ht-checkbox-background-color);border:1px solid var(--ht-checkbox-border-color);border-radius:var(--ht-checkbox-border-radius);box-sizing:border-box;content:"";display:inline-block;height:var(--ht-checkbox-size);left:0;pointer-events:none;position:absolute;top:0;transition:all var(--ht-table-transition) ease-in-out;width:var(--ht-checkbox-size)}.handsontable .htCheckboxRendererInput:after{color:var(--ht-checkbox-icon-color);content:"";display:block;height:var(--ht-checkbox-size)!important;left:0;pointer-events:none;position:absolute;top:0;width:var(--ht-checkbox-size)!important}.handsontable .htCheckboxRendererInput:checked:before{background-color:var(--ht-checkbox-checked-background-color);border-color:var(--ht-checkbox-checked-border-color)}.handsontable .htCheckboxRendererInput:checked:after{color:var(--ht-checkbox-checked-icon-color)}.handsontable .htCheckboxRendererInput:checked:disabled:before{background-color:var(--ht-checkbox-checked-disabled-background-color);border-color:var(--ht-checkbox-checked-disabled-border-color)}.handsontable .htCheckboxRendererInput:checked:disabled:after{color:var(--ht-checkbox-checked-disabled-icon-color)}.handsontable .htCheckboxRendererInput:checked:focus:before{background-color:var(--ht-checkbox-checked-focus-background-color);border-color:var(--ht-checkbox-checked-focus-border-color)}.handsontable .htCheckboxRendererInput:checked:focus:after{color:var(--ht-checkbox-checked-focus-icon-color)}.handsontable .htCheckboxRendererInput:focus:before{background-color:var(--ht-checkbox-focus-background-color);border-color:var(--ht-checkbox-focus-border-color);outline:1px solid var(--ht-checkbox-focus-ring-color)}.handsontable .htCheckboxRendererInput:focus:after{color:var(--ht-checkbox-focus-icon-color)}.handsontable .htCheckboxRendererInput:disabled{cursor:auto}.handsontable .htCheckboxRendererInput:disabled:before{background-color:var(--ht-checkbox-disabled-background-color);border-color:var(--ht-checkbox-disabled-border-color)}.handsontable .htCheckboxRendererInput:disabled:after{color:var(--ht-checkbox-disabled-icon-color)}.handsontable .htCheckboxRendererInput:indeterminate:before{background-color:var(--ht-checkbox-indeterminate-background-color);border-color:var(--ht-checkbox-indeterminate-border-color)}.handsontable .htCheckboxRendererInput:indeterminate:after{color:var(--ht-checkbox-indeterminate-icon-color)}.handsontable .htCheckboxRendererInput:indeterminate:disabled:before{background-color:var(--ht-checkbox-indeterminate-disabled-background-color);border-color:var(--ht-checkbox-indeterminate-disabled-border-color)}.handsontable .htCheckboxRendererInput:indeterminate:disabled:after{color:var(--ht-checkbox-indeterminate-disabled-icon-color)}.handsontable .htCheckboxRendererInput:indeterminate:focus:before{background-color:var(--ht-checkbox-indeterminate-focus-background-color);border-color:var(--ht-checkbox-indeterminate-focus-border-color)}.handsontable .htCheckboxRendererInput:indeterminate:focus:after{color:var(--ht-checkbox-indeterminate-focus-icon-color)}.handsontable .htCheckboxRendererInput.noValue{opacity:.5}.handsontable .htCheckboxRendererLabel{color:inherit;cursor:pointer;display:inline-block;font-size:inherit;line-height:inherit;margin:0;position:relative}.handsontable .htCheckboxRendererLabel.fullWidth{width:100%}.handsontable .htPlaceholder{color:var(--ht-placeholder-color)}.handsontable .htDimmed{background-color:var(--ht-cell-read-only-background-color)!important;color:var(--ht-read-only-color)!important}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htInvalid{background-color:var(--ht-cell-error-background-color)!important}.handsontable .htNoWrap{white-space:nowrap}.handsontable .htSearchResult{background-color:var(--ht-cell-success-background-color)!important}.handsontable .ht-multi-select-renderer{overflow:hidden;padding:var(--ht-cell-vertical-padding) var(--ht-cell-horizontal-padding)}.handsontable .ht-multi-select-chips-container{align-items:center;display:flex;flex-wrap:nowrap;gap:var(--ht-gap-size);max-width:100%;overflow:hidden}.handsontable .ht-multi-select-chip{align-items:center;background:var(--ht-chip-background);border-radius:var(--ht-chip-border-radius);box-sizing:border-box;display:inline-flex;flex-shrink:0;gap:var(--ht-gap-size);max-width:100px;padding:var(--ht-chip-vertical-padding) calc((var(--ht-line-height) - var(--ht-icon-size))/2) var(--ht-chip-vertical-padding) var(--ht-chip-horizontal-padding);white-space:nowrap}.handsontable .ht-multi-select-chip-label{color:var(--ht-foreground-color);font-style:normal;font-weight:var(--ht-font-weight);letter-spacing:var(--ht-letter-spacing,0);line-height:var(--ht-line-height,40px);overflow:hidden;padding:0 var(--ht-chip-gap);text-overflow:ellipsis}.handsontable .ht-multi-select-chip-remove{align-items:center;background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ht-icon-button-icon-color);cursor:pointer;display:flex;flex-shrink:0;height:var(--ht-icon-size)!important;justify-content:center;padding:0;position:relative;width:var(--ht-icon-size)!important}.handsontable .ht-multi-select-chip-remove:before{content:"";display:block;left:0;position:absolute;top:0}.handsontable .ht-multi-select-chip-remove:hover{background-color:var(--ht-icon-button-hover-background-color)}.handsontable .ht-multi-select-overflow{align-items:center;background:var(--ht-chip-background);border-radius:var(--ht-chip-border-radius);color:var(--ht-foreground-color);display:inline-flex;flex-shrink:0;justify-content:center;padding:0 calc(var(--ht-gap-size)*2);white-space:nowrap}.handsontableInputHolder{left:0;position:absolute;top:0}.handsontableInputHolder .handsontableInput{-webkit-appearance:none!important;background-color:var(--ht-cell-editor-background-color,#fff);border:none;border-radius:0;box-shadow:inset 0 0 0 var(--ht-cell-editor-border-width,2px) var(--ht-cell-editor-border-color,#1a42e8),0 0 var(--ht-cell-editor-shadow-blur-radius,0) 0 var(--ht-cell-editor-shadow-color,transparent);box-sizing:border-box;color:var(--ht-cell-editor-foreground-color);display:block;font-family:inherit!important;font-size:inherit!important;line-height:inherit!important;margin:0;outline-width:0;padding:calc(var(--ht-cell-vertical-padding, 4px) + 1px) calc(var(--ht-cell-horizontal-padding, 8px) + 1px)}.handsontableInputHolder .handsontableInput:focus{outline:none}.htSelectEditor{position:absolute}.htSelectEditor select{-webkit-appearance:none!important;background-color:var(--ht-cell-editor-background-color,#fff);border:none;border-radius:0;box-shadow:inset 0 0 0 var(--ht-cell-editor-border-width,2px) var(--ht-cell-editor-border-color,#1a42e8),0 0 var(--ht-cell-editor-shadow-blur-radius,0) 0 var(--ht-cell-editor-shadow-color,transparent);box-sizing:border-box;color:var(--ht-cell-editor-foreground-color);font-family:inherit!important;font-size:inherit!important;height:100%;inset:0;line-height:inherit!important;margin:0;overflow:hidden;padding:calc(var(--ht-cell-vertical-padding, 4px) + 1px) calc(var(--ht-cell-horizontal-padding, 8px) + 1px);padding-inline-end:26px;position:absolute;text-overflow:ellipsis;white-space:nowrap;width:100%}.htSelectEditor select:focus{outline:none}.htSelectEditor .htAutocompleteArrow{margin-inline-end:4px;pointer-events:none;top:50%;transform:translateY(-50%);z-index:1}.handsontable.listbox{border:var(--ht-menu-border-width,1px) solid var(--ht-menu-border-color,#e5e5e9);box-shadow:var(--ht-menu-shadow-x,0) var(--ht-menu-shadow-y,0) var(--ht-menu-shadow-blur,8px) color-mix(in srgb,var(--ht-menu-shadow-color,#000) var(--ht-menu-shadow-opacity,100%),transparent);margin:0}.handsontable.listbox .ht_master{background-color:var(--ht-background-color);overflow:hidden}.handsontable.listbox .wtHolder{border-radius:0!important;overflow:auto}.handsontable.listbox .htCore,.handsontable.listbox .wtHider{border-radius:0!important}.handsontable.listbox table{overflow:hidden}.handsontable.listbox table td,.handsontable.listbox table th,.handsontable.listbox table tr:first-child td,.handsontable.listbox table tr:first-child th,.handsontable.listbox table tr:last-child th{border-color:transparent!important}.handsontable.listbox table td,.handsontable.listbox table th{border-radius:0!important;text-overflow:ellipsis;white-space:nowrap}.handsontable.listbox table .wtBorder{visibility:hidden}.handsontable.listbox table strong{color:inherit;font-weight:700}.handsontable.listbox table tr td:hover td{background:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)!important;box-shadow:none!important;cursor:pointer}.handsontable.listbox table td{transition:var(--ht-table-transition) background ease-in-out}.handsontable.listbox table td:hover{background-color:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)!important;cursor:pointer}.handsontable.listbox table td.current:not([aria-expanded=true]){box-shadow:inset 0 0 0 1px var(--ht-accent-color)}.handsontable.listbox table td.htDimmed{color:inherit!important;cursor:default;font-style:inherit}.handsontable.listbox table td.htDimmed:not(.handsontable.listbox table td:hover){background-color:inherit!important}.handsontable.listbox table thead th{height:auto!important;text-align:left}.handsontable.listbox table thead th .relative{padding-bottom:calc(var(--ht-cell-vertical-padding) + var(--ht-gap-size));padding-top:calc(var(--ht-cell-vertical-padding) + var(--ht-gap-size))}.handsontable.listbox .ht_clone_top .wtHider{overflow:hidden}.handsontable.listbox .ht_clone_top table{border-radius:0}.handsontable.listbox .htBorders div{background:none!important}.handsontable.autocompleteEditor tr.ht__row_even td,.handsontable.autocompleteEditor tr.ht__row_even th,.handsontable.autocompleteEditor tr.ht__row_odd td,.handsontable.autocompleteEditor tr.ht__row_odd th{background-color:var(--ht-background-color,#fff)}[dir=rtl].handsontable.listbox table thead th{text-align:right}.pika-single{background:var(--ht-background-color,#fff);border:var(--ht-menu-border-width,1px) solid var(--ht-menu-border-color,#e5e5e9);border-radius:var(--ht-menu-border-radius);box-shadow:var(--ht-menu-shadow-x,0) var(--ht-menu-shadow-y,0) var(--ht-menu-shadow-blur,8px) color-mix(in srgb,var(--ht-menu-shadow-color,#000) var(--ht-menu-shadow-opacity,100%),transparent);color:var(--ht-foreground-color);display:block;font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);padding:10px;position:relative;z-index:9999}.pika-single.is-hidden{display:none}.pika-single .pika-row{background-color:transparent}.pika-single .pika-title{align-items:center;display:flex;justify-content:center}.pika-single .pika-label{color:var(--ht-accent-color);order:2;padding:5px;position:relative}.pika-single .pika-label .pika-select{cursor:pointer;inset:0;opacity:0;position:absolute}.pika-single .pika-next,.pika-single .pika-prev{background:none;border:none;color:var(--ht-accent-color);cursor:pointer;height:20px;padding:0;text-indent:-9999px;white-space:nowrap;width:20px}.pika-single .pika-prev{margin-right:auto;order:1}.pika-single .pika-next{margin-left:auto;order:3}.pika-single .pika-table thead{height:50px}.pika-single .pika-table th{padding:1px;vertical-align:middle}.pika-single .pika-table th abbr{border:none;cursor:auto;font-weight:400;text-decoration:none}.pika-single .pika-table td{padding:1px;vertical-align:middle}.pika-single .pika-table td.is-disabled .pika-button{opacity:.5;pointer-events:none}.pika-single .pika-table td.is-today .pika-button{background:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)}.pika-single .pika-table td.is-selected .pika-button{background:var(--ht-accent-color,#1a42e8);color:var(--ht-primary-button-foreground-color,#fff)}.pika-single .pika-table td.pika-week{text-align:center;width:12.5%}.pika-single .pika-table .pika-button{aspect-ratio:1/1;background:transparent;border:none;border-radius:var(--ht-button-border-radius);color:var(--ht-foreground-color);cursor:pointer;font-size:inherit;margin:0;padding:10px;width:100%}.pika-single .pika-table .pika-button:hover{background:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)}[dir=rtl].htDatepickerHolder .pika-single .pika-next{margin-left:0;margin-right:auto;transform:rotate(180deg)}[dir=rtl].htDatepickerHolder .pika-single .pika-prev{margin-left:auto;margin-right:0;transform:rotate(180deg)}.handsontableEditor{position:absolute}.handsontableEditor .ht-multi-select-editor{background:var(--ht-background-color);border:var(--ht-menu-border-width) solid var(--ht-menu-border-color);border-radius:0 0 var(--ht-menu-border-radius) var(--ht-menu-border-radius);box-shadow:var(--ht-menu-shadow-x,0) var(--ht-menu-shadow-y,0) var(--ht-menu-shadow-blur,8px) color-mix(in srgb,var(--ht-menu-shadow-color,#000) var(--ht-menu-shadow-opacity,100%),transparent);min-width:120px;overflow-y:auto;padding:var(--ht-menu-vertical-padding) var(--ht-menu-horizontal-padding);width:max-content}.handsontableEditor .ht-multi-select-editor .ht-multi-select-editor-search-input-wrapper{align-items:center;align-self:stretch;display:flex;gap:var(--ht-gap-size);padding:var(--ht-menu-item-vertical-padding) var(--ht-menu-item-horizontal-padding);position:relative}.handsontableEditor .ht-multi-select-editor .ht-multi-select-editor-search-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;height:16px;left:calc(var(--ht-menu-item-horizontal-padding) + 10px);opacity:.5;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%);width:16px;z-index:1}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input{background-color:var(--ht-input-background-color);border:1px solid var(--ht-input-border-color);border-radius:var(--ht-input-border-radius);box-sizing:border-box;color:var(--ht-input-foreground-color);font-size:var(--ht-font-size);line-height:var(--ht-line-height);padding:var(--ht-input-vertical-padding) var(--ht-menu-item-horizontal-padding) var(--ht-input-vertical-padding) 32px;transition:var(--ht-table-transition) all ease-in-out;width:100%}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input:hover{background-color:var(--ht-input-hover-background-color);border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color)}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input:disabled{background-color:var(--ht-input-disabled-background-color);border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color)}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input:focus{background-color:var(--ht-input-focus-background-color);border-color:var(--ht-input-focus-border-color);box-shadow:none;color:var(--ht-input-focus-foreground-color);outline:none;outline-offset:0}.handsontableEditor .ht-multi-select-editor input.ht-multi-select-editor-search-input::placeholder{color:var(--ht-foreground-color);opacity:.6}.handsontableEditor .ht-multi-select-editor .ht-multi-select-editor-separator{background-color:var(--ht-menu-border-color);height:1px;margin:var(--ht-menu-vertical-padding) 0 var(--ht-menu-vertical-padding) 0;padding:0;width:100%}.handsontableEditor .ht-multi-select-editor ul{align-items:flex-start;display:flex;flex-direction:column;list-style:none;margin:0;padding:var(--ht-gap-size) var(--ht-menu-horizontal-padding);width:100%}.handsontableEditor .ht-multi-select-editor ul li{align-items:center;align-self:stretch;background:var(--ht-background-color);cursor:pointer;display:flex;padding:var(--ht-menu-item-vertical-padding) var(--ht-menu-item-horizontal-padding);user-select:none}.handsontableEditor .ht-multi-select-editor ul li *{cursor:pointer}.handsontableEditor .ht-multi-select-editor ul li.ht-multi-select-editor-item-selected{background:color-mix(in srgb,var(--ht-menu-item-active-color) var(--ht-menu-item-active-color-opacity,100%),transparent)}.handsontableEditor .ht-multi-select-editor ul li div{align-items:center;display:flex;flex:1 0 0}.handsontableEditor .ht-multi-select-editor ul li div input{appearance:none;display:flex;height:var(--ht-checkbox-size);margin:0;padding:0;position:relative;width:var(--ht-checkbox-size)}.handsontableEditor .ht-multi-select-editor ul li div input:after{content:"";display:block;left:0;position:absolute;top:0}.handsontableEditor .ht-multi-select-editor ul li div input:before{background:var(--ht-checkbox-background-color);background-position:50%;background-repeat:no-repeat;border:1px solid var(--ht-checkbox-border-color);border-radius:var(--ht-checkbox-border-radius);box-sizing:border-box;content:"";display:block;height:var(--ht-checkbox-size);left:0;position:absolute;top:0;width:var(--ht-checkbox-size)}.handsontableEditor .ht-multi-select-editor ul li div input:checked:before{background:var(--ht-checkbox-checked-background-color);border-color:var(--ht-checkbox-checked-border-color)}.handsontableEditor .ht-multi-select-editor ul li div input:checked:after{background-color:currentColor;color:var(--ht-checkbox-checked-icon-color)}.handsontableEditor .ht-multi-select-editor ul li div input:focus{outline:none}.handsontableEditor .ht-multi-select-editor ul li div label{color:var(--ht-foreground-color);font-size:var(--ht-font-size);font-style:normal;font-weight:400;letter-spacing:var(--ht-letter-spacing);line-height:var(--ht-line-height);overflow:hidden;padding:0 0 0 calc(var(--ht-gap-size)*2);text-overflow:ellipsis;width:100%}.handsontableEditor .ht-multi-select-editor ul li:hover{background:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)}.handsontableEditor .ht-multi-select-editor ul li:has(input:focus){background:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)}.handsontable .htUISelectCaption{background-color:var(--ht-input-background-color);border:var(--ht-input-border-width) solid var(--ht-input-border-color);border-radius:var(--ht-input-border-radius);box-sizing:border-box;color:var(--ht-input-foreground-color);cursor:pointer;font-family:inherit;font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0;outline:none!important;overflow:hidden;padding:var(--ht-input-vertical-padding) var(--ht-input-horizontal-padding);padding-inline-end:calc(var(--ht-input-horizontal-padding) + var(--ht-icon-size));text-overflow:ellipsis;transition:var(--ht-table-transition) all ease-in-out;white-space:nowrap;width:100%}.handsontable .htUISelectCaption:after{content:"";display:block;position:absolute;right:calc(var(--ht-input-horizontal-padding) - var(--ht-icon-size)/4);top:50%;transform:translateY(-50%)}.handsontable .htUISelectCaption:hover{background-color:var(--ht-input-hover-background-color);border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color)}.handsontable .htUISelectCaption:disabled{background-color:var(--ht-input-disabled-background-color);border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color)}.handsontable .htUISelectCaption:focus{background-color:var(--ht-input-focus-background-color);border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color)}.handsontable .htUISelect{cursor:pointer;outline:none!important;position:relative}.handsontable .htUISelect:focus .htUISelectCaption{background-color:var(--ht-input-focus-background-color);border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color)}[dir=rtl].handsontable .htUISelectCaption:after{left:calc(var(--ht-input-horizontal-padding) - var(--ht-icon-size)/4);right:auto}.handsontable .htFiltersMenuCondition .htUIInput input,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input{background-color:var(--ht-input-background-color);border:var(--ht-input-border-width) solid var(--ht-input-border-color);border-radius:var(--ht-input-border-radius);box-sizing:border-box;color:var(--ht-input-foreground-color);cursor:pointer;font-family:inherit;font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);outline:none!important;padding:var(--ht-input-vertical-padding) var(--ht-input-horizontal-padding);transition:var(--ht-table-transition) all ease-in-out;width:100%}.handsontable .htFiltersMenuCondition .htUIInput input:hover,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input:hover{background-color:var(--ht-input-hover-background-color);border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color)}.handsontable .htFiltersMenuCondition .htUIInput input:disabled,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input:disabled{background-color:var(--ht-input-disabled-background-color);border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color)}.handsontable .htFiltersMenuCondition .htUIInput input:focus,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input:focus{background-color:var(--ht-input-focus-background-color);border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color)}.handsontable .htUIInput{outline:none!important;padding:0;position:relative;text-align:center}.handsontable .htUIInputIcon{position:absolute}.handsontable .ht-button,.handsontable .htUIInput.htUIButton input{border-radius:var(--ht-button-border-radius);border-style:solid;border-width:1px;box-sizing:border-box;cursor:pointer;font-family:inherit;font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);min-width:64px;outline:none!important;padding:var(--ht-button-vertical-padding) var(--ht-button-horizontal-padding);transition:var(--ht-table-transition) all ease-in-out}.handsontable .ht-button--secondary,.handsontable .htUIInput.htUIButtonCancel input{background-color:var(--ht-secondary-button-background-color);border-color:var(--ht-secondary-button-border-color);color:var(--ht-secondary-button-foreground-color)}.handsontable .ht-button--secondary:hover,.handsontable .htUIInput.htUIButtonCancel input:hover{background-color:var(--ht-secondary-button-hover-background-color);border-color:var(--ht-secondary-button-hover-border-color);color:var(--ht-secondary-button-hover-foreground-color)}.handsontable .ht-button--secondary:disabled,.handsontable .htUIInput.htUIButtonCancel input:disabled{background-color:var(--ht-secondary-button-disabled-background-color);border-color:var(--ht-secondary-button-disabled-border-color);color:var(--ht-secondary-button-disabled-foreground-color)}.handsontable .ht-button--secondary:focus,.handsontable .htUIInput.htUIButtonCancel input:focus{background-color:var(--ht-secondary-button-focus-background-color);border-color:var(--ht-secondary-button-focus-border-color);box-shadow:0 0 0 1px var(--ht-accent-color);color:var(--ht-secondary-button-focus-foreground-color)}.ht-button--primary,.htUIInput.htUIButtonOK input{background-color:var(--ht-primary-button-background-color);border-color:var(--ht-primary-button-border-color);color:var(--ht-primary-button-foreground-color)}.ht-button--primary:hover,.htUIInput.htUIButtonOK input:hover{background-color:var(--ht-primary-button-hover-background-color);border-color:var(--ht-primary-button-hover-border-color);color:var(--ht-primary-button-hover-foreground-color)}.ht-button--primary:disabled,.htUIInput.htUIButtonOK input:disabled{background-color:var(--ht-primary-button-disabled-background-color);border-color:var(--ht-primary-button-disabled-border-color);color:var(--ht-primary-button-disabled-foreground-color)}.ht-button--primary:focus,.htUIInput.htUIButtonOK input:focus{background-color:var(--ht-primary-button-focus-background-color);border-color:var(--ht-primary-button-focus-border-color);box-shadow:0 0 0 1px var(--ht-accent-color);color:var(--ht-primary-button-focus-foreground-color)}.handsontable .htUIRadio{align-items:center;cursor:pointer;display:inline-flex;gap:var(--ht-gap-size);margin:0;padding:var(--ht-gap-size) calc(var(--ht-gap-size)*2);padding-bottom:0;position:relative}.handsontable .htUIRadio:first-child{padding-inline-start:0}.handsontable .htUIRadio>input[type=radio]{appearance:none;border-radius:calc(var(--ht-radio-size)*.5);cursor:pointer;height:var(--ht-radio-size);margin:0;outline:none;position:relative;width:var(--ht-radio-size)}.handsontable .htUIRadio>input[type=radio]:before{background-color:var(--ht-radio-background-color);border:1px solid var(--ht-radio-border-color);border-radius:calc(var(--ht-radio-size)*.5);content:"";display:block;inset:0;position:absolute}.handsontable .htUIRadio>input[type=radio]:after{color:var(--ht-radio-icon-color);content:"";display:block;position:absolute}.handsontable .htUIRadio>input[type=radio]:checked:before{background-color:var(--ht-radio-checked-background-color);border-color:var(--ht-radio-checked-border-color)}.handsontable .htUIRadio>input[type=radio]:checked:after{color:var(--ht-radio-checked-icon-color)}.handsontable .htUIRadio>input[type=radio]:checked:disabled{cursor:auto}.handsontable .htUIRadio>input[type=radio]:checked:disabled:before{background-color:var(--ht-radio-checked-disabled-background-color);border-color:var(--ht-radio-checked-disabled-border-color)}.handsontable .htUIRadio>input[type=radio]:checked:disabled:after{color:var(--ht-radio-checked-disabled-icon-color)}.handsontable .htUIRadio>input[type=radio]:checked:focus:before{background-color:var(--ht-radio-checked-focus-background-color);border-color:var(--ht-radio-checked-focus-border-color)}.handsontable .htUIRadio>input[type=radio]:checked:focus:after{color:var(--ht-radio-checked-focus-icon-color)}.handsontable .htUIRadio>input[type=radio]:disabled{cursor:auto}.handsontable .htUIRadio>input[type=radio]:disabled:before{background-color:var(--ht-radio-disabled-background-color);border-color:var(--ht-radio-disabled-border-color)}.handsontable .htUIRadio>input[type=radio]:disabled:after{color:var(--ht-radio-disabled-icon-color)}.handsontable .htUIRadio>input[type=radio]:focus:before{background-color:var(--ht-radio-focus-background-color);border-color:var(--ht-radio-focus-border-color);outline:1px solid var(--ht-radio-focus-ring-color)}.handsontable .htUIRadio>input[type=radio]:focus:after{color:var(--ht-radio-focus-icon-color)}.handsontable .htUIRadio label{color:inherit;cursor:pointer;vertical-align:middle}.handsontable .htUIRadio label:before{content:"";display:block;inset:0;position:absolute}.handsontable .collapsibleIndicator{margin-inline-end:1px;margin-inline-start:var(--ht-gap-size);top:calc((var(--ht-line-height) - var(--ht-icon-size))/2)}.handsontable .collapsibleIndicator,.handsontable .ht_nestingButton{border-radius:var(--ht-collapse-button-border-radius);box-sizing:border-box;cursor:pointer;float:right;font-size:0;height:var(--ht-icon-size);overflow:hidden;position:relative;text-indent:-100px;width:var(--ht-icon-size)}.handsontable .collapsibleIndicator:before,.handsontable .ht_nestingButton:before{content:"";display:block;left:0;position:absolute;top:0;transition:var(--ht-table-transition) all ease-in-out}.handsontable .collapsibleIndicator.expanded,.handsontable .collapsibleIndicator.ht_nestingCollapse,.handsontable .ht_nestingButton.expanded,.handsontable .ht_nestingButton.ht_nestingCollapse{background-color:var(--ht-collapse-button-open-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-open-border-color)}.handsontable .collapsibleIndicator.expanded:before,.handsontable .collapsibleIndicator.ht_nestingCollapse:before,.handsontable .ht_nestingButton.expanded:before,.handsontable .ht_nestingButton.ht_nestingCollapse:before{color:var(--ht-collapse-button-open-icon-color)}.handsontable .collapsibleIndicator.expanded:hover,.handsontable .collapsibleIndicator.ht_nestingCollapse:hover,.handsontable .ht_nestingButton.expanded:hover,.handsontable .ht_nestingButton.ht_nestingCollapse:hover{background-color:var(--ht-collapse-button-open-hover-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-open-hover-border-color)}.handsontable .collapsibleIndicator.expanded:hover:before,.handsontable .collapsibleIndicator.ht_nestingCollapse:hover:before,.handsontable .ht_nestingButton.expanded:hover:before,.handsontable .ht_nestingButton.ht_nestingCollapse:hover:before{color:var(--ht-collapse-button-open-hover-icon-color)}.handsontable .collapsibleIndicator.collapsed,.handsontable .collapsibleIndicator.ht_nestingExpand,.handsontable .ht_nestingButton.collapsed,.handsontable .ht_nestingButton.ht_nestingExpand{background-color:var(--ht-collapse-button-close-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-close-border-color)}.handsontable .collapsibleIndicator.collapsed:before,.handsontable .collapsibleIndicator.ht_nestingExpand:before,.handsontable .ht_nestingButton.collapsed:before,.handsontable .ht_nestingButton.ht_nestingExpand:before{color:var(--ht-collapse-button-close-icon-color)}.handsontable .collapsibleIndicator.collapsed:hover,.handsontable .collapsibleIndicator.ht_nestingExpand:hover,.handsontable .ht_nestingButton.collapsed:hover,.handsontable .ht_nestingButton.ht_nestingExpand:hover{background-color:var(--ht-collapse-button-close-hover-background-color);box-shadow:0 0 0 1px var(--ht-collapse-button-close-hover-border-color)}.handsontable .collapsibleIndicator.collapsed:hover:before,.handsontable .collapsibleIndicator.ht_nestingExpand:hover:before,.handsontable .ht_nestingButton.collapsed:hover:before,.handsontable .ht_nestingButton.ht_nestingExpand:hover:before{color:var(--ht-collapse-button-close-hover-icon-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.collapsed:before,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingExpand:before,.handsontable th.ht__active_highlight .ht_nestingButton.collapsed:before,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingExpand:before{color:var(--ht-collapse-button-close-icon-active-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.collapsed:hover:before,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingExpand:hover:before,.handsontable th.ht__active_highlight .ht_nestingButton.collapsed:hover:before,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingExpand:hover:before{color:var(--ht-collapse-button-close-hover-icon-active-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.expanded:before,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingCollapse:before,.handsontable th.ht__active_highlight .ht_nestingButton.expanded:before,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingCollapse:before{color:var(--ht-collapse-button-open-icon-active-color)}.handsontable th.ht__active_highlight .collapsibleIndicator.expanded:hover:before,.handsontable th.ht__active_highlight .collapsibleIndicator.ht_nestingCollapse:hover:before,.handsontable th.ht__active_highlight .ht_nestingButton.expanded:hover:before,.handsontable th.ht__active_highlight .ht_nestingButton.ht_nestingCollapse:hover:before{color:var(--ht-collapse-button-open-hover-icon-active-color)}[dir=rtl].handsontable .collapsibleIndicator,[dir=rtl].handsontable .ht_nestingButton{float:left}.handsontable thead th.hiddenHeader:not(:first-of-type){display:none}.handsontable thead th.hiddenHeaderText .colHeader{opacity:0}.handsontable th.ht_nestingLevels>.relative{align-items:center;display:flex;gap:5px}.handsontable th.ht_nestingLevels span:last-child{padding-left:calc(var(--ht-icon-size) + 5px)}.handsontable th.ht_nestingLevels span.ht_nestingLevel{display:inline-block}.handsontable th.ht_nestingLevels span.ht_nestingLevel_empty{display:inline-block;height:1px;order:-2;position:relative;width:5px}.handsontable th.ht_nestingLevels .ht_nestingButton{cursor:pointer;order:-1;position:relative}.handsontable th.afterHiddenColumn,.handsontable th.beforeHiddenColumn{position:relative}.handsontable th.afterHiddenColumn:after,.handsontable th.afterHiddenColumn:before,.handsontable th.beforeHiddenColumn:after,.handsontable th.beforeHiddenColumn:before{color:var(--ht-hidden-indicator-color);height:10px!important;position:absolute;top:50%;transform:translateY(-50%);width:10px!important}.handsontable th.beforeHiddenColumn:after{content:"";display:block;right:-2px}.handsontable th.afterHiddenColumn:before{content:"";display:block;left:-2px}.handsontable th.ht__active_highlight.afterHiddenColumn:after,.handsontable th.ht__active_highlight.afterHiddenColumn:before,.handsontable th.ht__active_highlight.beforeHiddenColumn:after,.handsontable th.ht__active_highlight.beforeHiddenColumn:before{color:var(--ht-icon-button-active-icon-color,var(--ht-icon-active-button-icon-color))}[dir=rtl].handsontable th.beforeHiddenColumn:after{left:-2px;right:auto;transform:translateY(-50%) rotate(180deg)}[dir=rtl].handsontable th.afterHiddenColumn:before{left:auto;right:-2px;transform:translateY(-50%) rotate(180deg)}.handsontable th.afterHiddenRow,.handsontable th.beforeHiddenRow{position:relative}.handsontable th.afterHiddenRow:after,.handsontable th.afterHiddenRow:before,.handsontable th.beforeHiddenRow:after,.handsontable th.beforeHiddenRow:before{color:var(--ht-hidden-indicator-color);height:10px!important;left:50%;position:absolute;transform:translateX(-50%);width:10px!important}.handsontable th.beforeHiddenRow:after{bottom:-2px;content:"";display:block}.handsontable th.afterHiddenRow:before{content:"";display:block;top:-2px}.handsontable th.ht__active_highlight.afterHiddenRow:after,.handsontable th.ht__active_highlight.afterHiddenRow:before,.handsontable th.ht__active_highlight.beforeHiddenRow:after,.handsontable th.ht__active_highlight.beforeHiddenRow:before{color:var(--ht-icon-button-active-icon-color,var(--ht-icon-active-button-icon-color))}.handsontable .changeType{background-color:var(--ht-icon-button-background-color);border:none;border-radius:var(--ht-icon-button-border-radius);box-shadow:0 0 0 1px var(--ht-icon-button-border-color);box-sizing:border-box;color:inherit;float:right;height:var(--ht-icon-size);margin:0;margin-inline-end:1px;margin-inline-start:var(--ht-gap-size);order:1;padding:0;position:relative;top:calc((var(--ht-line-height) - var(--ht-icon-size))/2);width:var(--ht-icon-size);z-index:1}.handsontable .changeType:before{color:var(--ht-icon-button-icon-color);content:"";display:block;left:0;position:absolute;top:0}.handsontable .changeType:hover{background-color:var(--ht-icon-button-hover-background-color);box-shadow:0 0 0 1px var(--ht-icon-button-hover-border-color);cursor:pointer}.handsontable .changeType:hover:before{color:var(--ht-icon-button-hover-icon-color)}.handsontable .ht__active_highlight .changeType{background-color:var(--ht-icon-button-active-background-color,var(--ht-icon-active-button-background-color));box-shadow:0 0 0 1px var(--ht-icon-button-active-border-color,var(--ht-icon-active-button-border-color))}.handsontable .ht__active_highlight .changeType:before{color:var(--ht-icon-button-active-icon-color,var(--ht-icon-active-button-icon-color))}.handsontable .ht__active_highlight .changeType:hover{background-color:var(--ht-icon-button-active-hover-background-color,var(--ht-icon-active-button-hover-background-color));box-shadow:0 0 0 1px var(--ht-icon-button-active-hover-border-color,var(--ht-icon-active-button-hover-border-color))}.handsontable .ht__active_highlight .changeType:hover:before{color:var(--ht-icon-button-active-hover-icon-color,var(--ht-icon-active-button-hover-icon-color))}.handsontable th.htFiltersActive{background-color:var(--ht-header-filter-background-color)}.handsontable th.htFiltersActive.ht__active_highlight{background-color:color-mix(in srgb,var(--ht-header-active-background-color),var(--ht-header-filter-background-color) 20%)}.handsontable th.htFiltersActive.ht__active_highlight .changeType:after{background-color:var(--ht-header-active-foreground-color)}.handsontable.htContextMenu>.ht_master,.handsontable.htDropdownMenu>.ht_master,.handsontable.htFiltersConditionsMenu>.ht_master{background-color:var(--ht-background-color,#fff);border:var(--ht-menu-border-width,1px) solid var(--ht-menu-border-color,#e5e5e9);border-radius:var(--ht-menu-border-radius);box-shadow:var(--ht-menu-shadow-x,0) var(--ht-menu-shadow-y,0) var(--ht-menu-shadow-blur,8px) color-mix(in srgb,var(--ht-menu-shadow-color,#000) var(--ht-menu-shadow-opacity,100%),transparent);overflow:hidden;padding:var(--ht-menu-vertical-padding,8px) var(--ht-menu-horizontal-padding,0)}.handsontable.htContextMenu:not(.htGhostTable),.handsontable.htDropdownMenu:not(.htGhostTable),.handsontable.htFiltersConditionsMenu:not(.htGhostTable){display:none;position:absolute;z-index:1060}.handsontable.htContextMenu .ht_clone_bottom,.handsontable.htContextMenu .ht_clone_bottom_inline_start_corner,.handsontable.htContextMenu .ht_clone_inline_start,.handsontable.htContextMenu .ht_clone_top,.handsontable.htContextMenu .ht_clone_top_inline_start_corner,.handsontable.htDropdownMenu .ht_clone_bottom,.handsontable.htDropdownMenu .ht_clone_bottom_inline_start_corner,.handsontable.htDropdownMenu .ht_clone_inline_start,.handsontable.htDropdownMenu .ht_clone_top,.handsontable.htDropdownMenu .ht_clone_top_inline_start_corner,.handsontable.htFiltersConditionsMenu .ht_clone_bottom,.handsontable.htFiltersConditionsMenu .ht_clone_bottom_inline_start_corner,.handsontable.htFiltersConditionsMenu .ht_clone_inline_start,.handsontable.htFiltersConditionsMenu .ht_clone_top,.handsontable.htFiltersConditionsMenu .ht_clone_top_inline_start_corner{display:none}.handsontable.htContextMenu table.htCore,.handsontable.htDropdownMenu table.htCore,.handsontable.htFiltersConditionsMenu table.htCore{overflow:hidden}.handsontable.htContextMenu .htCustomMenuRenderer .table.htCore,.handsontable.htDropdownMenu .htCustomMenuRenderer .table.htCore,.handsontable.htFiltersConditionsMenu .htCustomMenuRenderer .table.htCore{box-shadow:none}.handsontable.htContextMenu.handsontable:focus,.handsontable.htDropdownMenu.handsontable:focus,.handsontable.htFiltersConditionsMenu.handsontable:focus{outline:none}.handsontable.htContextMenu .wtBorder,.handsontable.htDropdownMenu .wtBorder,.handsontable.htFiltersConditionsMenu .wtBorder{visibility:hidden}.handsontable.htContextMenu tbody tr:first-of-type td:first-child,.handsontable.htContextMenu tbody tr:first-of-type th:first-child,.handsontable.htDropdownMenu tbody tr:first-of-type td:first-child,.handsontable.htDropdownMenu tbody tr:first-of-type th:first-child,.handsontable.htFiltersConditionsMenu tbody tr:first-of-type td:first-child,.handsontable.htFiltersConditionsMenu tbody tr:first-of-type th:first-child{height:calc(var(--ht-cell-vertical-padding)*2 + var(--ht-line-height) + 1px)}.handsontable.htContextMenu table tbody tr td,.handsontable.htDropdownMenu table tbody tr td,.handsontable.htFiltersConditionsMenu table tbody tr td{background:var(--ht-background-color,#fff);border-width:0;cursor:pointer;overflow:hidden;padding:var(--ht-menu-item-vertical-padding,4px) var(--ht-menu-item-horizontal-padding,8px);position:relative;text-overflow:ellipsis;transition:var(--ht-table-transition) background ease-in-out;white-space:nowrap}.handsontable.htContextMenu table tbody tr td:first-child,.handsontable.htDropdownMenu table tbody tr td:first-child,.handsontable.htFiltersConditionsMenu table tbody tr td:first-child{border-bottom-width:0;border-inline-end-width:0;border-inline-start-width:0;border-top-width:0}.handsontable.htContextMenu table tbody tr td.htDimmed,.handsontable.htDropdownMenu table tbody tr td.htDimmed,.handsontable.htFiltersConditionsMenu table tbody tr td.htDimmed{background-color:inherit!important;color:inherit!important;font-style:normal}.handsontable.htContextMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled):hover,.handsontable.htDropdownMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled):hover,.handsontable.htFiltersConditionsMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled):hover{background:color-mix(in srgb,var(--ht-menu-item-hover-color) var(--ht-menu-item-hover-color-opacity,100%),transparent)!important;cursor:pointer}.handsontable.htContextMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]),.handsontable.htDropdownMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]),.handsontable.htFiltersConditionsMenu table tbody tr td:not(.handsontable.htDropdownMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htContextMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htCustomMenuRenderer,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled).current:not([aria-expanded=true]){box-shadow:inset 0 0 0 1px var(--ht-accent-color)}.handsontable.htContextMenu table tbody tr td.htSubmenu .htItemWrapper,.handsontable.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper,.handsontable.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper{margin-inline-end:calc(var(--ht-gap-size, 4px)*2 + var(--ht-icon-size))}.handsontable.htContextMenu table tbody tr td.htSubmenu .htItemWrapper:after,.handsontable.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper:after,.handsontable.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper:after{content:"";display:block;position:absolute;right:calc(var(--ht-menu-item-horizontal-padding) + var(--ht-gap-size)*2);top:50%;transform:translateY(-50%)}.handsontable.htContextMenu table tbody tr td.htSeparator,.handsontable.htDropdownMenu table tbody tr td.htSeparator,.handsontable.htFiltersConditionsMenu table tbody tr td.htSeparator{border-top:1px solid var(--ht-border-color);cursor:default;height:0;padding:0}.handsontable.htContextMenu table tbody tr td.htDisabled,.handsontable.htDropdownMenu table tbody tr td.htDisabled,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled{color:var(--ht-disabled-color);cursor:default}.handsontable.htContextMenu table tbody tr td.htDisabled:hover,.handsontable.htDropdownMenu table tbody tr td.htDisabled:hover,.handsontable.htFiltersConditionsMenu table tbody tr td.htDisabled:hover{background:var(--ht-background-color);color:var(--ht-disabled-color)}.handsontable.htContextMenu table tbody tr td.htHidden,.handsontable.htDropdownMenu table tbody tr td.htHidden,.handsontable.htFiltersConditionsMenu table tbody tr td.htHidden{display:none}.handsontable.htContextMenu table tbody tr td:has(.htItemWrapper .selected),.handsontable.htDropdownMenu table tbody tr td:has(.htItemWrapper .selected),.handsontable.htFiltersConditionsMenu table tbody tr td:has(.htItemWrapper .selected){background-color:color-mix(in srgb,var(--ht-menu-item-active-color) var(--ht-menu-item-active-color-opacity,100%),transparent)}.handsontable.htContextMenu table tbody tr td .htItemWrapper,.handsontable.htDropdownMenu table tbody tr td .htItemWrapper,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper{margin-inline:calc(var(--ht-gap-size, 4px)*2)}.handsontable.htContextMenu table tbody tr td .htItemWrapper:before,.handsontable.htDropdownMenu table tbody tr td .htItemWrapper:before,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper:before{margin-right:12px;vertical-align:text-bottom}.handsontable.htContextMenu table tbody tr td .htItemWrapper span.selected,.handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.selected,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected{font-size:0;inset:0}.handsontable.htContextMenu table tbody tr td .htItemWrapper span.selected:after,.handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.selected:after,.handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected:after{color:var(--ht-accent-color);content:"";display:block;position:absolute;right:calc(var(--ht-menu-item-horizontal-padding) + var(--ht-gap-size)*2);top:50%;transform:translateY(-50%)}.handsontable.htContextMenu table tbody tr td div span.selected,.handsontable.htDropdownMenu table tbody tr td div span.selected,.handsontable.htFiltersConditionsMenu table tbody tr td div span.selected{inset-inline-end:0;position:absolute}.handsontable.htContextMenu table tbody tr td .htUIButton,.handsontable.htDropdownMenu table tbody tr td .htUIButton,.handsontable.htFiltersConditionsMenu table tbody tr td .htUIButton{width:calc(50% - var(--ht-gap-size))}.handsontable.htContextMenu table tbody tr td .htUIButton input,.handsontable.htDropdownMenu table tbody tr td .htUIButton input,.handsontable.htFiltersConditionsMenu table tbody tr td .htUIButton input{width:100%}.handsontable .htUIClearAll a,.handsontable .htUISelectAll a{display:inline-block;padding:var(--ht-gap-size);text-decoration:none}.handsontable .htUIMultipleSelect .ht_master .wtHolder{background:transparent;border-radius:0!important;overflow-y:scroll!important}.handsontable .htUIMultipleSelect .ht_master .wtHolder .htCore{box-shadow:none}[dir=rtl].handsontable.htContextMenu table tbody tr td.htSubmenu .htItemWrapper:after,[dir=rtl].handsontable.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper:after,[dir=rtl].handsontable.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper:after{left:calc(var(--ht-gap-size)*4);right:auto;transform:translateY(-50%) rotate(180deg)}[dir=rtl].handsontable.htContextMenu table tbody tr td .htItemWrapper span.selected:after,[dir=rtl].handsontable.htDropdownMenu table tbody tr td .htItemWrapper span.selected:after,[dir=rtl].handsontable.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected:after{left:calc(var(--ht-gap-size)*4);right:auto}[dir=rtl].handsontable .changeType{float:left}.handsontable.htFiltersConditionsMenu:not(.htGhostTable){z-index:1070}.handsontable .ht_master table td.htCustomMenuRenderer{cursor:auto}.handsontable .ht_master table td.htCustomMenuRenderer.htFiltersMenuActionBar{padding-top:calc(var(--ht-menu-item-vertical-padding, 4px)*2)}.handsontable .htFiltersMenuLabel{font-size:var(--ht-font-size-small);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height-small);margin-bottom:calc(var(--ht-gap-size, 2px)*2)}.handsontable .htFiltersMenuLabel:empty{display:none}.handsontable .htFiltersMenuCondition{padding-bottom:0!important;padding-top:calc(var(--ht-gap-size, 2px)*3)!important}.handsontable .htFiltersMenuCondition .border{border-bottom:1px solid var(--ht-border-color)!important}.handsontable .htFiltersMenuCondition .htUIInput{margin-top:calc(var(--ht-gap-size, 2px)*2)}.handsontable .htFiltersMenuValue{border-bottom:1px solid var(--ht-border-color)!important;padding-bottom:0!important;padding-top:calc(var(--ht-gap-size, 2px)*3)!important}.handsontable .htFiltersMenuOperators{padding-bottom:0!important;padding-top:calc(var(--ht-gap-size, 2px)*2)!important}.handsontable .htUISelectionControls{margin:0 calc(var(--ht-gap-size, 2px)*-1);padding-bottom:var(--ht-gap-size,2px)!important;padding-top:calc(var(--ht-gap-size, 2px)*2)!important}.handsontable .htUIMultipleSelectHot{--ht-cell-horizontal-padding:calc(var(--ht-menu-item-horizontal-padding, 2px) + var(--ht-gap-size, 2px)*2);margin:0 calc((var(--ht-menu-item-horizontal-padding, 2px) + var(--ht-gap-size, 2px)*2)*-1);overflow:initial!important;width:calc(100% + var(--ht-menu-item-horizontal-padding, 2px)*2 + var(--ht-gap-size, 2px)*4)}.handsontable .htUIMultipleSelectHot:before{background-color:var(--ht-border-color);content:"";display:block;height:1px;left:0;position:absolute;top:-1px;width:100%}.handsontable .htUIMultipleSelectHot .wtHolder{box-sizing:border-box;overflow-x:hidden;padding:0}.handsontable .htUIMultipleSelectHot .wtHolder .wtSpreader{padding:calc(var(--ht-gap-size)*2) 0}.handsontable .htUIMultipleSelectHot .wtHolder td{height:auto!important;padding:4px var(--ht-cell-horizontal-padding)}.handsontable .htUIClearAll,.handsontable .htUISelectAll{display:inline-block;margin-bottom:var(--ht-gap-size,4px);margin-right:var(--ht-gap-size,4px)}.handsontable .htUIClearAll a,.handsontable .htUISelectAll a{border-radius:var(--ht-button-border-radius);color:var(--ht-link-color);font-size:var(--ht-font-size);line-height:var(--ht-line-height)}.handsontable .htUIClearAll a:hover,.handsontable .htUISelectAll a:hover{color:var(--ht-link-hover-color)}.handsontable .htUIClearAll a:focus,.handsontable .htUISelectAll a:focus{outline:1px solid var(--ht-link-hover-color)}.handsontable .htUIMultipleSelect .ht_master .wtHolder{overflow:auto}.handsontable .htUIMultipleSelect .ht_master .wtHolder .htCore,.handsontable .htUIMultipleSelect .ht_master .wtHolder .wtHider,.handsontable .htUIMultipleSelect .ht_master .wtHolder td,.handsontable .htUIMultipleSelect .ht_master .wtHolder tr{background:none}.handsontable .htUIInput.htUIButton{cursor:pointer;display:inline-block}.handsontable .htUIInput.htUIButtonOK{margin-inline-end:calc(var(--ht-gap-size, 2px)*2);margin-inline-start:0}.handsontable .htCommentCell{position:relative}.handsontable .htCommentCell:after{border-inline-end:none;border-inline-start:var(--ht-comments-indicator-size,4px) solid transparent;border-top:var(--ht-comments-indicator-size,4px) solid var(--ht-comments-indicator-color,#1a42e8);content:"";display:block;inset-inline-end:0;inset-inline-start:unset;position:absolute;top:0}.htCommentsContainer .htComments{display:none;position:absolute;z-index:1059}.htCommentsContainer .htCommentTextArea{-webkit-appearance:none;background-color:var(--ht-comments-textarea-background-color,#fff);border:var(--ht-comments-textarea-border-width,1px) solid var(--ht-comments-textarea-border-color,transparent);border-inline-start:var(--ht-comments-textarea-border-width,1px) solid var(--ht-comments-textarea-border-color,#1a42e8);box-shadow:var(--ht-menu-shadow-x,0) var(--ht-menu-shadow-y,0) var(--ht-menu-shadow-blur,8px) color-mix(in srgb,var(--ht-menu-shadow-color,#000) var(--ht-menu-shadow-opacity,100%),transparent);box-sizing:border-box;color:var(--ht-comments-textarea-foreground-color);font-family:var(--ht-font-family),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);height:88px;line-height:var(--ht-line-height);margin:0 -1px;outline:0!important;padding:var(--ht-comments-textarea-vertical-padding) var(--ht-comments-textarea-horizontal-padding);width:240px}.htCommentsContainer .htCommentTextArea:focus{background-color:var(--ht-comments-textarea-focus-background-color,#fff);border:var(--ht-comments-textarea-focus-border-width,1px) solid var(--ht-comments-textarea-focus-border-color,#1a42e8);color:var(--ht-comments-textarea-focus-foreground-color)}.htBorders .wtBorder.ht-border-style-dashed-vertical{background-image:repeating-linear-gradient(to bottom,var(--ht-custom-border-color) 0 5px,transparent 0 10px)}.htBorders .wtBorder.ht-border-style-dashed-horizontal{background-image:repeating-linear-gradient(to right,var(--ht-custom-border-color) 0 5px,transparent 0 10px)}.htBorders .wtBorder.ht-border-style-dotted-horizontal{background-repeat:repeat-x;background-size:calc(var(--ht-custom-border-size)*2) var(--ht-custom-border-size)}.htBorders .wtBorder.ht-border-style-dotted-horizontal,.htBorders .wtBorder.ht-border-style-dotted-vertical{background-image:radial-gradient(circle,var(--ht-custom-border-color) calc(var(--ht-custom-border-size)/2),transparent 0)}.htBorders .wtBorder.ht-border-style-dotted-vertical{background-repeat:repeat-y;background-size:var(--ht-custom-border-size) calc(var(--ht-custom-border-size)*2)}.handsontable .columnSorting:not(.indicatorDisabled){position:relative}.handsontable .columnSorting:not(.indicatorDisabled).sortAction{min-width:calc(var(--ht-icon-size, 16px) + 8px)}.handsontable .columnSorting:not(.indicatorDisabled).sortAction.ascending,.handsontable .columnSorting:not(.indicatorDisabled).sortAction.descending{max-width:calc(100% - var(--ht-icon-size, 16px)*2 - var(--ht-gap-size, 4px) - 3px)!important;padding-inline-end:calc(var(--ht-icon-size, 16px) + 2px)}.handsontable .columnSorting:not(.indicatorDisabled).sortAction:hover{cursor:pointer;text-decoration:none}.handsontable .columnSorting:not(.indicatorDisabled).sortAction:before{content:"";display:block;position:absolute;right:2px;text-align:right;top:50%;transform:translateY(-50%);width:var(--ht-icon-size,16px)}.handsontable .htRight .columnSorting.sortAction.ascending,.handsontable .htRight .columnSorting.sortAction.descending{padding-inline-end:0;padding-inline-start:calc(var(--ht-icon-size, 16px) + 2px)}.handsontable .htRight .columnSorting.sortAction:before,[dir=rtl] .handsontable .columnSorting.sortAction:before{left:2px;right:auto;text-align:left}[dir=rtl] .handsontable .htRight .columnSorting.sortAction.ascending,[dir=rtl] .handsontable .htRight .columnSorting.sortAction.descending{padding-inline-end:calc(var(--ht-icon-size, 16px) + 2px);padding-inline-start:0}[dir=rtl] .handsontable .htLeft .columnSorting.sortAction.ascending,[dir=rtl] .handsontable .htLeft .columnSorting.sortAction.descending{padding-inline-end:0;padding-inline-start:calc(var(--ht-icon-size, 16px) + 2px)}[dir=rtl] .handsontable .htLeft .columnSorting.sortAction:before{left:auto;right:2px;text-align:right}.htGhostTable .htCore span.colHeader.columnSorting:not(.indicatorDisabled):before{content:"*";display:inline-block;padding-inline-end:calc(var(--ht-icon-size, 16px) + 2px);position:relative}.handsontable .colHeader.columnSorting:after{content:"";display:block;font-size:8px;margin-top:4px;position:absolute;right:0;text-align:right;top:50%;transform:translateY(-50%);width:8px}.handsontable .colHeader.columnSorting[class*=" sort-"]:after,.handsontable .colHeader.columnSorting[class^=sort-]:after{content:"+"}.handsontable .colHeader.columnSorting.sort-1:after{content:"1"}.handsontable .colHeader.columnSorting.sort-2:after{content:"2"}.handsontable .colHeader.columnSorting.sort-3:after{content:"3"}.handsontable .colHeader.columnSorting.sort-4:after{content:"4"}.handsontable .colHeader.columnSorting.sort-5:after{content:"5"}.handsontable .colHeader.columnSorting.sort-6:after{content:"6"}.handsontable .colHeader.columnSorting.sort-7:after{content:"7"}.handsontable .htRight .colHeader.columnSorting:after,[dir=rtl] .handsontable .colHeader.columnSorting:after{left:0;right:auto;text-align:left}[dir=rtl] .handsontable .htLeft .colHeader.columnSorting:after{left:auto;right:0;text-align:right}.htGhostTable th div button.changeType+span.colHeader.columnSorting:not(.indicatorDisabled){padding-right:var(--ht-gap-size)}.handsontable .htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_inline_start td:first-of-type,.handsontable .htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_top_inline_start_corner th:nth-child(2){border-left:0}.handsontable .ht_clone_top_inline_start_corner th.ht__active_highlight{box-shadow:none}.handsontable .manualColumnResizer{background:none;cursor:col-resize;margin:0;opacity:0;position:absolute;top:0;width:10px;z-index:210}.handsontable .manualColumnResizer:after,.handsontable .manualColumnResizer:before{background:var(--ht-resize-indicator-color);border-radius:2px;content:"";display:block;height:calc(100% - 12px);left:1px;margin-top:.5px;max-height:16px;position:absolute;top:50%;transform:translateY(-50%);width:2px}.handsontable .manualColumnResizer:after{left:auto;right:0}.handsontable .manualColumnResizer.active,.handsontable .manualColumnResizer:hover{opacity:1}.handsontable .manualColumnResizerGuide{border-inline-end:1px solid var(--ht-accent-color);border-inline-start:none;display:none;inset-inline-end:unset;margin-inline-end:unset;margin-inline-start:5px;position:absolute;top:0;width:0}.handsontable .manualColumnResizerGuide.active{display:block;z-index:209}.handsontable .manualRowResizer{background:none;cursor:row-resize;height:10px;left:0;margin:0;opacity:0;position:absolute;z-index:210}.handsontable .manualRowResizer:after,.handsontable .manualRowResizer:before{background:var(--ht-resize-indicator-color);border-radius:2px;content:"";display:block;height:2px;left:50%;max-width:16px;position:absolute;top:1px;transform:translateX(-50%);width:calc(100% - 12px)}.handsontable .manualRowResizer:after{bottom:0;top:auto}.handsontable .manualRowResizer.active,.handsontable .manualRowResizer:hover{opacity:1}.handsontable .manualRowResizerGuide{border-bottom:1px solid var(--ht-accent-color);border-top:none;bottom:0;display:none;height:0;left:0;margin-top:5px;position:absolute}.handsontable .manualRowResizerGuide.active{display:block;z-index:209}.handsontable tbody td[rowspan][class*=area][class*=highlight]:not([class*=fullySelectedMergedCell]):before{opacity:0}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-0]:before,.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-multiple]:before{opacity:.14}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-1]:before{opacity:.21}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-2]:before{opacity:.28}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-3]:before{opacity:.35}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-4]:before{opacity:.42}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-5]:before{opacity:.49}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-6]:before{opacity:.56}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-7]:before{opacity:.63}.handsontable .ht__manualColumnMove.after-selection--columns thead th.ht__highlight,.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable .ht__manualColumnMove.on-moving--columns *,.handsontable .ht__manualColumnMove.on-moving--columns thead th.ht__highlight,.handsontable.ht__manualColumnMove.on-moving--columns *,.handsontable.ht__manualColumnMove.on-moving--columns thead th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable .ht__manualColumnMove.on-moving--columns .manualColumnResizer,.handsontable.ht__manualColumnMove.on-moving--columns .manualColumnResizer{display:none}.handsontable .ht__manualColumnMove--backlight,.handsontable .ht__manualColumnMove--guideline,.handsontable.ht__manualColumnMove--backlight,.handsontable.ht__manualColumnMove--guideline{display:none;height:100%;position:absolute}.handsontable .ht__manualColumnMove--guideline,.handsontable.ht__manualColumnMove--guideline{background:var(--ht-move-indicator-color,#1a42e8);margin-inline-end:0;margin-inline-start:-.5px;top:0;width:1px;z-index:205}.handsontable .ht__manualColumnMove--backlight,.handsontable.ht__manualColumnMove--backlight{background:color-mix(in srgb,var(--ht-move-backlight-color) var(--ht-move-backlight-opacity,100%),transparent);display:none;pointer-events:none;z-index:205}.handsontable .on-moving--columns .ht__manualColumnMove--backlight,.handsontable .on-moving--columns.show-ui .ht__manualColumnMove--guideline,.handsontable.on-moving--columns .ht__manualColumnMove--backlight,.handsontable.on-moving--columns.show-ui .ht__manualColumnMove--guideline{display:block}.handsontable .wtHider{position:relative}.handsontable .ht__manualRowMove.after-selection--rows tbody th.ht__highlight,.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable .ht__manualRowMove.on-moving--rows *,.handsontable .ht__manualRowMove.on-moving--rows tbody th.ht__highlight,.handsontable.ht__manualRowMove.on-moving--rows *,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable .ht__manualRowMove.on-moving--rows .manualRowResizer,.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--backlight,.handsontable .ht__manualRowMove--guideline,.handsontable.ht__manualRowMove--backlight,.handsontable.ht__manualRowMove--guideline{display:none;position:absolute;width:100%}.handsontable .ht__manualRowMove--guideline,.handsontable.ht__manualRowMove--guideline{border-top:1px solid var(--ht-move-indicator-color);left:0;z-index:205}.handsontable .ht__manualRowMove--backlight,.handsontable.ht__manualRowMove--backlight{background:color-mix(in srgb,var(--ht-move-backlight-color) var(--ht-move-backlight-opacity,100%),transparent);display:none;pointer-events:none;z-index:205}.handsontable .on-moving--rows .ht__manualRowMove--backlight,.handsontable .on-moving--rows.show-ui .ht__manualRowMove--guideline,.handsontable.on-moving--rows .ht__manualRowMove--backlight,.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline{display:block}.ht-dialog{border:1px solid var(--ht-border-color);border-radius:var(--ht-wrapper-border-radius);box-sizing:border-box!important;display:none;font-size:var(--ht-font-size);height:100%;left:0;letter-spacing:var(--ht-letter-spacing);line-height:var(--ht-line-height);opacity:0;overflow-y:auto;position:absolute;top:0;width:100%;z-index:1060}.ht-dialog[dir=rtl]{left:auto;right:0}.ht-dialog:focus{border:1px solid var(--ht-accent-color);outline:none}.ht-dialog:has(.htFocusCatcher:focus){border:1px solid var(--ht-accent-color);outline:none}.ht-dialog *{box-sizing:border-box!important}.ht-dialog--background-solid{background-color:var(--ht-dialog-solid-background-color)}.ht-dialog--background-semi-transparent{background-color:color-mix(in srgb,var(--ht-dialog-semi-transparent-background-color) var(--ht-dialog-semi-transparent-background-opacity,100%),transparent)}.ht-dialog--animation{transition:opacity var(--ht-table-transition) ease-in-out}.ht-dialog--show{opacity:1}.ht-dialog__content-wrapper{align-items:center;border-radius:var(--ht-wrapper-border-radius);display:flex;justify-content:center;min-height:100%;padding:calc(var(--ht-gap-size)*4);width:100%}.ht-dialog__content{color:var(--ht-foreground-color);max-width:480px;padding:var(--ht-dialog-content-padding-horizontal) var(--ht-dialog-content-padding-vertical);position:relative}.ht-dialog__content--background{background-color:var(--ht-dialog-content-background-color);border-radius:var(--ht-dialog-content-border-radius);box-shadow:var(--ht-shadow-x,0) var(--ht-shadow-y,0) var(--ht-shadow-blur,8px) color-mix(in srgb,var(--ht-shadow-color,#000) var(--ht-shadow-opacity,100%),transparent)}.ht-dialog--confirm .ht-dialog__content-wrapper{padding:calc(var(--ht-gap-size)*2);text-align:center}.ht-dialog--confirm .ht-dialog__content-wrapper-inner{align-items:center;border-radius:var(--ht-wrapper-border-radius);display:flex;flex-direction:column;justify-content:center;max-width:480px;padding:calc(var(--ht-gap-size)*2)}.ht-dialog--confirm .ht-dialog__content-wrapper-inner--background{background-color:var(--ht-dialog-content-background-color);border-radius:var(--ht-dialog-content-border-radius);box-shadow:var(--ht-shadow-x,0) var(--ht-shadow-y,0) var(--ht-shadow-blur,8px) color-mix(in srgb,var(--ht-shadow-color,#000) var(--ht-shadow-opacity,100%),transparent)}.ht-dialog--confirm .ht-dialog__content-wrapper-inner:focus{box-shadow:0 0 0 1px var(--ht-accent-color);outline:none}.ht-dialog--confirm .ht-dialog__content{align-items:center;display:flex;flex-direction:column;gap:var(--ht-gap-size);justify-content:center}.ht-dialog--confirm .ht-dialog__content:has(.ht-dialog__buttons){gap:calc(var(--ht-gap-size)*2)}.ht-dialog--confirm .ht-dialog__title{font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0}.ht-dialog--confirm .ht-dialog__description{color:var(--ht-foreground-secondary-color);font-size:var(--ht-font-size-small);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height-small);margin:0}.ht-dialog--confirm .ht-dialog__buttons{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--ht-gap-size)*2);justify-content:center}.handsontable.ht-pagination{background:var(--ht-pagination-bar-background-color);border:1px solid var(--ht-wrapper-border-color);border-radius:0 0 var(--ht-wrapper-border-radius) var(--ht-wrapper-border-radius);border-top:1px solid transparent;box-sizing:border-box;color:var(--ht-pagination-bar-foreground-color);font-size:var(--ht-font-size);line-height:var(--ht-line-height);overflow-x:auto}.handsontable.ht-pagination--bordered{border-top-color:var(--ht-wrapper-border-color)}.handsontable.ht-pagination .ht-pagination__inner{align-items:center;border-radius:0 0 var(--ht-wrapper-border-radius) var(--ht-wrapper-border-radius);display:flex;flex-wrap:wrap;gap:calc(var(--ht-gap-size)*4);justify-content:space-between;min-width:230px;padding-block:var(--ht-pagination-bar-vertical-padding);padding-inline:var(--ht-pagination-bar-horizontal-padding)}.handsontable.ht-pagination .ht-page-size-section{align-items:center;display:flex;gap:calc(var(--ht-gap-size)*2)}.handsontable.ht-pagination .ht-page-size-section__label{white-space:nowrap}.handsontable.ht-pagination .ht-page-size-section__select-wrapper{border-radius:var(--ht-input-border-radius);position:relative}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select{-webkit-appearance:none;background-color:var(--ht-input-background-color);border:1px solid var(--ht-input-border-color);border-radius:var(--ht-input-border-radius);color:var(--ht-input-foreground-color);cursor:pointer;font-size:inherit;line-height:calc(var(--ht-line-height) - 4px);padding-inline-end:calc(var(--ht-gap-size) + var(--ht-icon-size));padding-bottom:var(--ht-gap-size);padding-inline-start:var(--ht-gap-size);padding-top:var(--ht-gap-size)}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select:disabled{background-color:var(--ht-input-disabled-background-color);border-color:var(--ht-input-disabled-border-color);color:var(--ht-input-disabled-foreground-color);cursor:default;opacity:.4}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select:hover:not(:disabled){background-color:var(--ht-input-hover-background-color);border-color:var(--ht-input-hover-border-color);color:var(--ht-input-hover-foreground-color)}.handsontable.ht-pagination .ht-page-size-section__select-wrapper select:focus{background-color:var(--ht-input-focus-background-color);border-color:var(--ht-input-focus-border-color);color:var(--ht-input-focus-foreground-color);outline:none}.handsontable.ht-pagination .ht-page-size-section__select-wrapper:after{background-color:var(--ht-foreground-color);content:"";display:block;inset-block-end:50%;inset-inline-end:var(--ht-gap-size);pointer-events:none;position:absolute;transform:translateY(50%)}.handsontable.ht-pagination .ht-page-counter-section{margin-inline-end:auto}.handsontable.ht-pagination .ht-page-navigation-section{align-items:center;display:flex;gap:1px}.handsontable.ht-pagination .ht-page-navigation-section__button{background-color:var(--ht-pagination-bar-background-color);border:1px solid var(--ht-pagination-bar-background-color);border-radius:var(--ht-icon-button-large-border-radius);color:var(--ht-secondary-button-foreground-color);cursor:pointer;font-size:inherit;padding:var(--ht-icon-button-large-padding)}.handsontable.ht-pagination .ht-page-navigation-section__button:before{content:"";display:block}.handsontable.ht-pagination .ht-page-navigation-section__button--disabled{color:var(--ht-secondary-button-disabled-foreground-color);cursor:default;pointer-events:none}.handsontable.ht-pagination .ht-page-navigation-section__button:hover:not(:disabled){background-color:var(--ht-secondary-button-hover-background-color)}.handsontable.ht-pagination .ht-page-navigation-section__button:focus{border:1px solid var(--ht-accent-color);outline:none}.handsontable.ht-pagination .ht-page-navigation-section__label{min-width:100px;text-align:center;white-space:nowrap}.handsontable.ht-wrapper.htPagination,.handsontable.ht-wrapper.htPagination .htCore{border-end-end-radius:0;border-end-start-radius:0}.handsontable.ht-wrapper.htPagination .htCore tbody tr:last-child td:first-child,.handsontable.ht-wrapper.htPagination .htCore tbody tr:last-child th:first-child,.handsontable.ht-wrapper.htPagination .htCore thead tr:last-child th:first-child{border-end-start-radius:0!important}.handsontable.ht-wrapper.htPagination .htCore tbody tr:last-child td:last-child,.handsontable.ht-wrapper.htPagination .htCore tbody tr:last-child th:last-child,.handsontable.ht-wrapper.htPagination .htCore thead tr:last-child th:last-child{border-end-end-radius:0!important}.ht-loading__icon-svg{animation:ht-loading-spin 1s linear infinite;color:var(--ht-accent-color);display:block;height:var(--ht-icon-size);transform-origin:50% 50%;width:var(--ht-icon-size)}.ht-loading__content{align-items:center;display:flex;gap:calc(var(--ht-gap-size)*2)}.ht-loading__title{font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0}.ht-loading__description{color:var(--ht-foreground-secondary-color);font-size:var(--ht-font-size-small);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height-small);margin:0}@keyframes ht-loading-spin{to{transform:rotate(1turn)}}.ht-empty-data-state{background-color:var(--ht-background-color);border:1px solid var(--ht-border-color);border-radius:var(--ht-wrapper-border-radius);box-sizing:border-box;display:none;left:0;overflow-y:auto;position:absolute;width:100%;z-index:999}.ht-empty-data-state *{box-sizing:border-box!important}.ht-empty-data-state__content-wrapper{min-height:100%;text-align:center;width:100%}.ht-empty-data-state__content-wrapper,.ht-empty-data-state__content-wrapper-inner{align-items:center;border-radius:var(--ht-wrapper-border-radius);display:flex;justify-content:center;padding:calc(var(--ht-gap-size)*2)}.ht-empty-data-state__content-wrapper-inner{flex-direction:column;max-width:480px}.ht-empty-data-state__content-wrapper-inner:focus{box-shadow:0 0 0 1px var(--ht-accent-color);outline:none}.ht-empty-data-state__content{align-items:center;display:flex;flex-direction:column;gap:var(--ht-gap-size);justify-content:center}.ht-empty-data-state__title{font-size:var(--ht-font-size);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height);margin:0}.ht-empty-data-state__description{color:var(--ht-foreground-secondary-color);font-size:var(--ht-font-size-small);font-weight:var(--ht-font-weight);line-height:var(--ht-line-height-small);margin:0}.ht-empty-data-state__buttons{display:flex;flex-direction:row;flex-wrap:wrap;gap:calc(var(--ht-gap-size)*2);justify-content:center}.ht-empty-data-state__buttons--has-buttons{margin-top:calc(var(--ht-gap-size)*2)}.ht-empty-data-state--disable-top-border{border-start-end-radius:0;border-start-start-radius:0;border-top-width:0}.ht-empty-data-state--disable-inline-border{border-end-start-radius:0;border-inline-start-width:0;border-start-start-radius:0}.ht-empty-data-state--disable-bottom-border,.ht-empty-data-state:has(~.ht-pagination){border-bottom-width:0;border-end-end-radius:0;border-end-start-radius:0}'},38599(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=n(r(23695)),a=r(82063),l=n(r(95004)),h=r(79268),c=r(75593),u=r(65517),d=r(17134);function p(e,t,r){g(e,t),t.set(e,r)}function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(C(e,t))}function m(e,t,r){return e.set(C(e,t),r),r}function C(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var w=new WeakMap,y=new WeakMap,v=new WeakMap,E=new WeakMap,S=new WeakMap,b=new WeakMap,R=new WeakMap,T=new WeakMap,_=new WeakSet;function M(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function A(e){const t=C(_,this,M).call(this)+e;(0,i.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function I(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,i.addClass)(e,"htHasScrollY"):(0,i.removeClass)(e,"htHasScrollY"),this.isVerticallyScrollableByWindow()?(0,i.addClass)(e,"htVerticallyScrollableByWindow"):(0,i.removeClass)(e,"htVerticallyScrollableByWindow"),this.hasHorizontalScroll()?(0,i.addClass)(e,"htHasScrollX"):(0,i.removeClass)(e,"htHasScrollX"),this.isHorizontallyScrollableByWindow()?(0,i.addClass)(e,"htHorizontallyScrollableByWindow"):(0,i.removeClass)(e,"htHorizontallyScrollableByWindow")}t.default=class{constructor(e){var t,r;g(t=this,r=_),r.add(t),(0,o.default)(this,"hot",void 0),(0,o.default)(this,"eventManager",void 0),(0,o.default)(this,"settings",void 0),(0,o.default)(this,"THEAD",void 0),(0,o.default)(this,"TBODY",void 0),(0,o.default)(this,"_wt",void 0),(0,o.default)(this,"activeWt",void 0),p(this,w,0),p(this,y,0),(0,o.default)(this,"postponedAdjustElementsSize",!1),p(this,v,!1),p(this,E,void 0),p(this,S,void 0),p(this,b,0),p(this,R,0),p(this,T,null),this.hot=e,this.eventManager=new s.default(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){if(!this.hot.isRenderSuspended()){const e=this.hot.forceFullRender;this.hot.runHooks("beforeRender",e),this._wt.draw(!e),C(_,this,I).call(this),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this._wt.wtOverlays.adjustElementsSize():this.postponedAdjustElementsSize=!0}getCellAtCoords(e,t){const r=this._wt.getCell(e,t);return r<0?null:r}scrollViewport(e,t,r){return this._wt.scrollViewport(e,t,r)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,r=e.getAttribute("style");r&&e.setAttribute("data-originalstyle",r),(0,i.addClass)(e,"handsontable"),m(S,this,t.createElement("TABLE")),(0,i.addClass)(f(S,this),"htCore"),this.hot.getSettings().tableClassName&&(0,i.addClass)(f(S,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,i.setAttribute)(f(S,this),[(0,d.A11Y_PRESENTATION)()]),(0,i.setAttribute)(e,[(0,d.A11Y_TREEGRID)(),(0,d.A11Y_ROWCOUNT)(-1),(0,d.A11Y_COLCOUNT)(this.hot.countCols()),(0,d.A11Y_MULTISELECTABLE)()])),this.THEAD=t.createElement("THEAD"),f(S,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),f(S,this).appendChild(this.TBODY),this.hot.table=f(S,this),this.hot.container.insertBefore(f(S,this),this.hot.container.firstChild)}registerEvents(){const{rootWrapperElement:e,rootElement:t,rootDocument:r,selection:n,rootWindow:o}=this.hot,s=r.documentElement;this.eventManager.addEventListener(t,"mousedown",e=>{m(v,this,!0),this.isTextSelectionAllowed(e.target)||((0,i.clearTextSelection)(o),e.preventDefault(),o.focus())}),this.eventManager.addEventListener(t,"mouseup",()=>{m(v,this,!1)}),this.eventManager.addEventListener(t,"mousemove",e=>{f(v,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,i.clearTextSelection)(o),e.preventDefault())}),this.eventManager.addEventListener(s,"keyup",e=>{n.isInProgress()&&!e.shiftKey&&n.finish()}),this.eventManager.addEventListener(s,"mouseup",o=>{n.isInProgress()&&(0,a.isLeftClick)(o)&&n.finish(),m(E,this,!1);const s=(0,i.isOutsideInput)(r.activeElement);(0,i.isInput)(r.activeElement)&&!s||!s&&(n.isSelected()||n.isSelectedByAnyHeader()||(null!=e?e:t).contains(o.target)||(0,a.isRightClick)(o))||this.hot.unlisten()}),this.eventManager.addEventListener(s,"contextmenu",e=>{n.isInProgress()&&(0,a.isRightClick)(e)&&(n.finish(),m(E,this,!1))}),this.eventManager.addEventListener(s,"touchend",()=>{n.isInProgress()&&n.finish(),m(E,this,!1)}),this.eventManager.addEventListener(s,"mousedown",e=>{const n=e.target,o=e.x||e.clientX,a=e.y||e.clientY;let l=e.target;if(f(E,this)||!t||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(l===h){const e=(0,i.getScrollbarWidth)(r);if(r.elementFromPoint(o+e,a)!==h||r.elementFromPoint(o,a+e)!==h)return}else for(;l!==s;){if(null===l){if(e.isTargetWebComponent)break;return}if(l===t)return;l=l.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(n):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)});let l=(0,i.getParentWindow)(o);for(;null!==l;)this.eventManager.addEventListener(l.document.documentElement,"click",()=>{this.hot.unlisten()}),l=(0,i.getParentWindow)(l);this.eventManager.addEventListener(f(S,this),"selectstart",e=>{this.settings.fragmentSelection||(0,i.isInput)(e.target)||e.preventDefault()})}translateFromRenderableToVisualCoords(e){let{row:t,col:r}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,r))}translateFromRenderableToVisualIndex(e,t){let r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,n=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===r&&(r=e),null===n&&(n=t),[r,n]}countRenderableIndexes(e,t){const r=Math.min(e.getNotTrimmedIndexesLength(),t),n=e.getNearestNotHiddenIndex(r-1,-1);return null===n?0:e.getRenderableFromVisualIndex(n)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,r,n){if(isNaN(e)||e<0)return 0;const o=r.getNearestNotHiddenIndex(e,t),i=r.getRenderableFromVisualIndex(o);if(!Number.isInteger(i))return 0;let s=0;return t<0?s=i+1:t>0&&(s=n-i),s}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let r=0;for(let n=e;n<=t;n++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(n)&&(r+=1);return r}countRenderableRowsInRange(e,t){let r=0;for(let n=e;n<=t;n++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(n)&&(r+=1);return r}addClassNameToLicenseElement(e){var t;const r=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");r&&(0,i.addClass)(r,e)}removeClassNameFromLicenseElement(e){var t;const r=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");r&&(0,i.removeClass)(r,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:f(S,this),isDataViewInstance:()=>(0,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 r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(r,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(y,this,e.length),this.hot.getSettings().ariaTags&&C(_,this,M).call(this)===this.hot.countCols()&&C(_,this,A).call(this,f(y,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const r=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(r,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(w,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const r=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),n=null===r?e:r;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(n),n,t)},cellRenderer:(e,t,r)=>{const[n,o]=this.translateFromRenderableToVisualIndex(e,t),i=this.hot.runHooks("modifyGetCellCoords",n,o,!1,"meta");let s=n,a=o;Array.isArray(i)&&([s,a]=i);const l=this.hot.getCellMeta(s,a),h=this.hot.colToProp(a);let c=this.hot.getDataAtRowProp(s,h);this.hot.hasHook("beforeValueRender")&&(c=this.hot.runHooks("beforeValueRender",c,l));const u=this.hot.getCellRenderer(l);let d=c;"function"==typeof l.valueFormatter?d=l.valueFormatter(d,l):"function"==typeof u.valueFormatter&&(d=u.valueFormatter.call(l,d,l)),this.hot.runHooks("beforeRenderer",r,n,o,h,c,l);const p=[this.hot,r,n,o,h,d,l];u(...p),l._isBaseRendererCalled||this.hot.getCellRenderer({renderer:"base"})(...p),this.hot.runHooks("afterRenderer",r,n,o,h,c,l),l._isBaseRendererCalled=!1},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,i.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,r,n)=>{const o=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=n,m(E,this,!0),m(T,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,o,r,i),(0,a.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:o,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,o,r),this.activeWt=this._wt)},onCellContextMenu:(e,t,r,n)=>{const o=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,m(E,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,o,r),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,o,r),this.activeWt=this._wt)},onCellMouseOut:(e,t,r,n)=>{const o=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOut",e,o,r),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,o,r),this.activeWt=this._wt)},onCellMouseOver:(e,t,r,n)=>{const o=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOver",e,o,r,i),(0,a.isImmediatePropagationStopped)(e)||(!f(E,this)||f(T,this)&&f(T,this).x===e.clientX&&f(T,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:o,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,o,r),this.activeWt=this._wt,m(T,this,null))},onCellMouseUp:(e,t,r,n)=>{const o=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,this.hot.runHooks("beforeOnCellMouseUp",e,o,r),(0,a.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||((0,h.handleMouseEvent)(e,{coords:o,selection:this.hot.selection,cellRangeMapper:(0,u.resolveWithInstance)(this.hot,"cellRangeMapper")}),this.hot.runHooks("afterOnCellMouseUp",e,o,r),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const r=this.hot.rowIndexMapper,n=e<0;let o=e;return n||(o=r.getVisualFromRenderableIndex(e),null!==o)?(o=this.hot.runHooks("beforeViewportScrollVertically",o,t),this.hot.runHooks("beforeViewportScroll"),n?o:r.getRenderableFromVisualIndex(o)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const r=this.hot.columnIndexMapper,n=e<0;let o=e;return n||(o=r.getVisualFromRenderableIndex(e),null!==o)?(o=this.hot.runHooks("beforeViewportScrollHorizontally",o,t),this.hot.runHooks("beforeViewportScroll"),n?o:r.getRenderableFromVisualIndex(o)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,r)=>{const n=this.hot.rowIndexMapper,o=e<0;let i=e;o||(i=n.getVisualFromRenderableIndex(e));const s=this.hot.runHooks("beforeHighlightingRowHeader",i,t,r);return o?s:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(s,1))},onBeforeHighlightingColumnHeader:(e,t,r)=>{const n=this.hot.columnIndexMapper,o=e<0;let i=e;o||(i=n.getVisualFromRenderableIndex(e));const s=this.hot.runHooks("beforeHighlightingColumnHeader",i,t,r);return o?s:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(s,1))},onAfterDrawSelection:(e,t,r)=>{let n;const[o,i]=this.translateFromRenderableToVisualIndex(e,t),s=this.hot.selection.getSelectedRange();if(s.size()>0){const e=s.peekByIndex(null!=r?r:0);n=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",o,i,n,r)},onBeforeDrawBorders:(e,t)=>{const[r,n,o,i]=e,s=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(r),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n),this.hot.rowIndexMapper.getVisualFromRenderableIndex(o),this.hot.columnIndexMapper.getVisualFromRenderableIndex(i)];return this.hot.runHooks("beforeDrawBorders",s,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,r,n)=>{const o=this.hot.rowIndexMapper,i=this.hot.columnIndexMapper,s=t>=0?i.getVisualFromRenderableIndex(t):t,a=e>=0?o.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,s,r,n);if(Array.isArray(l)){const[e,t,r,n]=l;return[e>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(e,1)):e,t>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(t,1)):t,r>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(r,-1)):r,n>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(n,-1)):n]}},onModifyGetCoordsElement:(e,t)=>{const r=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,o=t>=0?n.getVisualFromRenderableIndex(t):t,i=e>=0?r.getVisualFromRenderableIndex(e):e,s=this.hot.runHooks("modifyGetCoordsElement",i,o);if(Array.isArray(s)){const[e,t]=s;return[e>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(e,1)):e,t>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const r=this.countRenderableRows(),n=e.startRow,o=e.endRow;if("number"==typeof t)e.startRow=Math.max(n-t,0),e.endRow=Math.min(o+t,r-1);else if("auto"===t){const t=Math.max(1,Math.ceil(o/r*12));e.startRow=Math.max(n-t,0),e.endRow=Math.min(o+t,r-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const r=this.countRenderableColumns(),n=e.startColumn,o=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(n-t,0),e.endColumn=Math.min(o+t,r-1)),"auto"===t){const t=Math.max(1,Math.ceil(o/r*6));e.startColumn=Math.max(n-t,0),e.endColumn=Math.min(o+t,r-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e},stylesHandler:()=>this.hot.stylesHandler};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new l.default(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:r,height:n}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(r,n),this.eventManager.addEventListener(t,"mousedown",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(t,"contextmenu",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&this.hot.render()})}isTextSelectionAllowed(e){var t,r;if((0,i.isInput)(e))return!0;const n=(0,i.isChildOf)(e,this._wt.wtTable.spreader);if(!0===this.settings.fragmentSelection&&n)return!0;const o=null!==(t=null===(r=this.hot.getSelectedRangeActive())||void 0===r?void 0:r.isSingleCell())&&void 0!==t&&t;return!("cell"!==this.settings.fragmentSelection||!o||!n)||!(this.settings.fragmentSelection||!this.isCellEdited()||!o)}isMouseDown(){return f(E,this)}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const r=t.firstChild;if(!(0,i.hasClass)(r,"relative"))return(0,i.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(r.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:r,getRowHeader:n}=this.hot,o=r.createElement("div"),i=r.createElement("span");o.className="relative",i.className="rowHeader",this.updateCellHeader(i,e,n),o.appendChild(i),t.appendChild(o)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const s=t.firstChild;(0,i.hasClass)(s,"relative")?(this.updateCellHeader(s.querySelector(".colHeader"),e,r,n),s.className="",(0,i.addClass)(s,["relative",...o()])):((0,i.empty)(t),this.appendColHeader(e,t,r,n))}else{const{rootDocument:s}=this.hot,a=s.createElement("div"),l=s.createElement("span"),h=o();a.classList.add("relative",...h),l.className="colHeader",this.settings.ariaTags&&((0,i.setAttribute)(a,...(0,d.A11Y_PRESENTATION)()),(0,i.setAttribute)(l,...(0,d.A11Y_PRESENTATION)())),this.updateCellHeader(l,e,r,n),a.appendChild(l),t.appendChild(a)}this.hot.runHooks("afterGetColHeader",e,t,n)}updateCellHeader(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t;const s=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,i.hasClass)(e,"colHeader")?o=s.wtTable.columnFilter.sourceToRendered(t):(0,i.hasClass)(e,"rowHeader")&&(o=s.wtTable.rowFilter.sourceToRendered(t))),o>-1?(0,i.fastInnerHTML)(e,r(t,n),this.hot.getSettings().sanitizer):((0,i.fastInnerText)(e,String.fromCharCode(160)),(0,i.addClass)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){m(b,this,e),m(R,this,t)}getLastSize(){return{width:f(b,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(y,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getTotalTableWidth(){return this._wt.wtTable.getTotalWidth()}getTotalTableHeight(){return this._wt.wtTable.getTotalHeight()}getTableOffset(){return this._wt.wtViewport.getWorkspaceOffset()}getTableScrollPosition(){return{left:this._wt.wtTable.holder.scrollLeft,top:this._wt.wtTable.holder.scrollTop}}setTableScrollPosition(e){this._wt.wtTable.holder.scrollLeft=e.left,this._wt.wtTable.holder.scrollTop=e.top}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()}}},47075(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.createTheme=function(e){return new b(e)};var o=r(81185),i=n(r(55486)),s=n(r(90030)),a=r(53759),l=r(28065),h=r(15141);function c(e,t,r){u(e,t),t.set(e,r)}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t){return e.get(g(e,t))}function p(e,t,r){return e.set(g(e,t),r),r}function g(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const f=["sizing","icons","colors","tokens"],m=["name","icons","colors","tokens"];var C=new WeakMap,w=new WeakMap,y=new WeakMap,v=new WeakMap,E=new WeakMap,S=new WeakSet;class b{constructor(e){var t,r;u(t=this,r=S),r.add(t),c(this,C,void 0),c(this,w,void 0),c(this,y,new Set),c(this,v,"auto"),c(this,E,"default"),(0,a.validateParams)(e,"themeConfig",{requiredFields:m}),p(C,this,{name:void 0,sizing:i.default,density:{type:d(E,this),sizes:s.default},icons:{},colors:{},tokens:{},colorScheme:d(v,this)}),g(S,this,_).call(this,e),p(C,this,d(w,this))}subscribe(e){return"function"!=typeof e&&(0,h.throwWithCause)("[ThemeBuilder] listener must be a function."),d(y,this).add(e),()=>d(y,this).delete(e)}params(e){return(0,a.validateParams)(e,"params"),g(S,this,_).call(this,e),g(S,this,R).call(this),this}setColorScheme(e){return p(v,this,(0,a.validateColorScheme)(e)),d(w,this).colorScheme=d(v,this),d(C,this).colorScheme=d(v,this),g(S,this,R).call(this),this}setDensityType(e){return p(E,this,(0,a.validateDensityType)(e)),d(w,this).density.type=d(E,this),d(C,this).density.type=d(E,this),g(S,this,R).call(this),this}getThemeConfig(){return d(w,this)}}function R(){const e=this.getThemeConfig();d(y,this).forEach(t=>t(e))}function T(e,t){var r;if((0,o.isObject)(t))e.density=(0,o.deepMerge)(e.density,t),p(E,this,t.type),null!==(r=d(C,this))&&void 0!==r&&r.density&&(d(C,this).density.type=t.type);else if("string"==typeof t){var n;e.density.type=t,p(E,this,t),null!==(n=d(C,this))&&void 0!==n&&n.density&&(d(C,this).density.type=t)}}function _(e){const t=(0,o.deepClone)(d(C,this));var r;(void 0!==e.name&&(void 0!==d(C,this).name?(0,l.warn)('[ThemeBuilder] The "name" property can only be set during `registerTheme()` and cannot be updated via `params()`.'):t.name=e.name),f.forEach(r=>{void 0!==e[r]&&(0,o.isObject)(e[r])&&(t[r]=(0,o.deepMerge)(t[r],e[r]))}),void 0!==e.density&&g(S,this,T).call(this,t,e.density),void 0!==e.colorScheme)&&(t.colorScheme=e.colorScheme,p(v,this,e.colorScheme),null!==(r=d(C,this))&&void 0!==r&&r.colorScheme&&(d(C,this).colorScheme=e.colorScheme));p(w,this,t)}},85796(e,t,r){"use strict";t.__esModule=!0;var n=r(47075);t.createTheme=n.createTheme;var o=r(23303);t.createThemeManager=o.createThemeManager},23303(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.createThemeManager=function(e){let{hot:t,themeObject:r}=e;return new u({hot:t,themeObject:r})};var o=n(r(43685)),i=r(602),s=r(15141),a=r(51684);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 h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var c=new WeakSet;class u{constructor(e){let{hot:t,themeObject:r}=e;l(this,c),(0,o.default)(this,"hot",void 0),(0,o.default)(this,"themeStyles",void 0),(0,o.default)(this,"themeClassName",void 0),(0,o.default)(this,"themeConfig",void 0),this.hot=t,this.update(r)}getClassName(){return this.themeClassName}update(e){this.hot&&(void 0===e.getThemeConfig&&(0,s.throwWithCause)('[ThemeManager] The "theme" option must be an instance of ThemeBuilder.'),this.themeConfig=e.getThemeConfig(),this.themeClassName=`ht-theme-${this.themeConfig.name}`,"function"==typeof e.subscribe&&e.subscribe(e=>{var t;null!==(t=this.hot)&&void 0!==t&&t.stylesHandler&&(this.themeConfig=e,h(c,this,d).call(this),this.hot.stylesHandler.clearCache(),this.hot.render(),this.hot.runHooks("afterSetTheme",this.themeClassName,!1))}),this.mount(),this.hot.runHooks("afterSetTheme",this.themeClassName,!0))}mount(){h(c,this,d).call(this)}unmount(){this.themeStyles&&this.themeStyles.remove()}destroy(){this.unmount(),this.hot.themeManager=null}}function d(){if(!(this.themeConfig&&this.hot&&this.hot.rootDocument&&this.hot.rootWrapperElement))return;const e="auto"===this.themeConfig.colorScheme?"light dark":this.themeConfig.colorScheme;this.themeStyles?this.themeStyles.textContent="":this.themeStyles=this.hot.rootDocument.createElement("style"),this.themeStyles.textContent=`:where(.${this.themeClassName}) {\n`,this.themeStyles.textContent+=`color-scheme: ${e};\n`,this.themeConfig.sizing&&(this.themeStyles.textContent+=(0,a.flattenCssVariables)(this.themeConfig.sizing,"sizing")),this.themeConfig.density&&this.themeConfig.density.type&&this.themeConfig.density.sizes&&this.themeConfig.density.sizes[this.themeConfig.density.type]&&(this.themeStyles.textContent+=(0,a.flattenCssVariables)(this.themeConfig.density.sizes[this.themeConfig.density.type],"density")),this.themeConfig.colors&&(this.themeStyles.textContent+=(0,a.flattenCssVariables)(this.themeConfig.colors,"colors")),this.themeConfig.tokens&&(this.themeStyles.textContent+=(0,a.flattenCssVariables)(this.themeConfig.tokens)),this.themeConfig.icons&&(this.themeStyles.textContent+=(0,i.iconsMap)(this.themeConfig.icons)),this.themeStyles.textContent+="}",this.hot.rootWrapperElement&&this.hot.rootWrapperElement.querySelector("style")?this.hot.rootWrapperElement.querySelector("style").textContent=this.themeStyles.textContent:this.hot.rootWrapperElement.prepend(this.themeStyles)}t.ThemeManager=u},51684(e,t,r){"use strict";t.__esModule=!0,t.flattenCssVariables=function e(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a="";return Object.entries(t).forEach(t=>{let[h,c]=t;const u=(0,o.toHyphen)(h),d=s?`${s}-${u}`:u;(0,n.isObject)(c)?a+=e(c,r,d):a+=`${function(e,t,r){return`${function(e,t){return`${i}${e?`${e}-`:""}${(0,o.toHyphen)(t)}`}(e,t)}: ${l(r,t)};`}(r,d,c)}\n`}),a};var n=r(81185),o=r(58507);const i="--ht-",s=["font-family"],a=["tokens.","colors.","sizing.","density."];function l(e,t){if(function(e){return"string"==typeof e&&a.some(t=>e.includes(t))}(e))return(r=e).includes("tokens.")?`var(${i}${(0,o.toHyphen)(r.split(".").slice(1).join("-"))})`:`var(${i}${(0,o.toHyphen)(r.split(".").join("-"))})`;var r;if(Array.isArray(e)){if(e.length>=2){const[r,n]=e;return"string"==typeof r&&"string"==typeof n?`light-dark(${l(r,t)}, ${l(n,t)})`:"string"==typeof r?l(r,t):"string"==typeof n?l(n,t):""}return l(e[0],t)}return t&&s.includes(t)?String(e):(0,o.toHyphen)(e)}},53759(e,t,r){"use strict";t.__esModule=!0,t.validateColorScheme=u,t.validateDensityType=d,t.validateParams=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{requiredFields:a=[]}=r;"object"==typeof e&&null!==e||(0,i.throwWithCause)(`[ThemeBuilder] ${t} must be an object.`);const{name:f,sizing:m,density:C,icons:w,colors:y,tokens:v,colorScheme:E}=e;g(e,s,t,{type:"param"}),a.forEach(r=>{void 0===e[r]&&(0,i.throwWithCause)(`[ThemeBuilder] ${t}.${r} is required.`)}),void 0!==f&&function(e,t){"string"==typeof e&&""!==e.trim()||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.name must be a non-empty string.`)}(f,t);void 0!==m&&((0,n.isObject)(m)||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.sizing must be an object.`));void 0!==C&&((0,n.isObject)(C)||"string"==typeof C||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.density must be a string or an object.`),function(e,t){(0,n.isObject)(e)?(e.type&&e.sizes||(0,i.throwWithCause)(`[ThemeBuilder] ${t} must be a string or an object with a 'type' and 'sizes' property.`),d(e.type),function(e,t){(0,n.isObject)(e)||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.sizes must be an object.`);Object.keys(e).forEach(e=>{l.has(e)||(0,o.warn)(`[ThemeBuilder] Unknown density size key: "${e}" in ${t}.sizes. This may be a custom density size or a typo.`)})}(e.sizes,`${t}.sizes`)):"string"==typeof e&&d(e)}(C,`${t}.density`));void 0!==w&&((0,n.isObject)(w)||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.icons must be an object.`),g(w,h,`${t}.icons`,{type:"icon",warnMissing:a.includes("icons")}));void 0!==y&&((0,n.isObject)(y)||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.colors must be an object.`),p(y,`${t}.colors`));void 0!==v&&((0,n.isObject)(v)||(0,i.throwWithCause)(`[ThemeBuilder] ${t}.tokens must be an object.`),g(v,c,`${t}.tokens`,{type:"token",warnMissing:a.includes("tokens")}));void 0!==E&&u(E)};var n=r(81185),o=r(28065),i=r(15141);const s=new Set(["name","sizing","density","icons","colors","tokens","colorScheme"]),a=new Set(["light","dark","auto"]),l=new Set(["default","compact","comfortable"]),h=t.VALID_ICON_KEYS=new Set(["arrowRight","arrowRightWithBar","arrowLeft","arrowLeftWithBar","arrowDown","menu","selectArrow","arrowNarrowUp","arrowNarrowDown","check","checkbox","caretHiddenLeft","caretHiddenRight","caretHiddenUp","caretHiddenDown","collapseOff","collapseOn","radio","chipClose","search"]),c=new Set(["fontFamily","fontSize","fontSizeSmall","lineHeight","lineHeightSmall","fontWeight","letterSpacing","gapSize","iconSize","tableTransition","borderColor","accentColor","foregroundColor","foregroundSecondaryColor","backgroundColor","backgroundSecondaryColor","placeholderColor","readOnlyColor","disabledColor","shadowColor","shadowX","shadowY","shadowBlur","shadowOpacity","barForegroundColor","barBackgroundColor","barHorizontalPadding","barVerticalPadding","cellHorizontalBorderColor","cellVerticalBorderColor","cellHorizontalPadding","cellVerticalPadding","wrapperBorderWidth","wrapperBorderRadius","wrapperBorderColor","rowHeaderOddBackgroundColor","rowHeaderEvenBackgroundColor","rowCellOddBackgroundColor","rowCellEvenBackgroundColor","cellEditorBorderWidth","cellEditorBorderColor","cellEditorForegroundColor","cellEditorBackgroundColor","cellEditorShadowBlurRadius","cellEditorShadowColor","cellSuccessBackgroundColor","cellErrorBackgroundColor","cellReadOnlyBackgroundColor","cellSelectionBorderColor","cellSelectionBackgroundColor","cellAutofillSize","cellAutofillHitAreaSize","cellAutofillBorderWidth","cellAutofillBorderRadius","cellAutofillBorderColor","cellAutofillBackgroundColor","cellAutofillFillBorderColor","cellMobileHandleSize","cellMobileHandleBorderWidth","cellMobileHandleBorderRadius","cellMobileHandleBorderColor","cellMobileHandleBackgroundColor","cellMobileHandleBackgroundOpacity","resizeIndicatorColor","moveBacklightColor","moveBacklightOpacity","moveIndicatorColor","hiddenIndicatorColor","scrollbarBorderRadius","scrollbarTrackColor","scrollbarThumbColor","headerFontWeight","headerForegroundColor","headerBackgroundColor","headerHighlightedShadowSize","headerHighlightedForegroundColor","headerHighlightedBackgroundColor","headerActiveBorderColor","headerActiveForegroundColor","headerActiveBackgroundColor","headerFilterBackgroundColor","headerRowForegroundColor","headerRowBackgroundColor","headerRowHighlightedForegroundColor","headerRowHighlightedBackgroundColor","headerRowActiveForegroundColor","headerRowActiveBackgroundColor","checkboxSize","checkboxBorderRadius","checkboxBorderColor","checkboxBackgroundColor","checkboxIconColor","checkboxFocusBorderColor","checkboxFocusBackgroundColor","checkboxFocusIconColor","checkboxFocusRingColor","checkboxDisabledBorderColor","checkboxDisabledBackgroundColor","checkboxDisabledIconColor","checkboxCheckedBorderColor","checkboxCheckedBackgroundColor","checkboxCheckedIconColor","checkboxCheckedFocusBorderColor","checkboxCheckedFocusBackgroundColor","checkboxCheckedFocusIconColor","checkboxCheckedDisabledBorderColor","checkboxCheckedDisabledBackgroundColor","checkboxCheckedDisabledIconColor","checkboxIndeterminateBorderColor","checkboxIndeterminateBackgroundColor","checkboxIndeterminateIconColor","checkboxIndeterminateFocusBorderColor","checkboxIndeterminateFocusBackgroundColor","checkboxIndeterminateFocusIconColor","checkboxIndeterminateDisabledBorderColor","checkboxIndeterminateDisabledBackgroundColor","checkboxIndeterminateDisabledIconColor","radioSize","radioBorderColor","radioBackgroundColor","radioIconColor","radioFocusBorderColor","radioFocusBackgroundColor","radioFocusIconColor","radioFocusRingColor","radioDisabledBorderColor","radioDisabledBackgroundColor","radioDisabledIconColor","radioCheckedBorderColor","radioCheckedBackgroundColor","radioCheckedIconColor","radioCheckedFocusBorderColor","radioCheckedFocusBackgroundColor","radioCheckedFocusIconColor","radioCheckedDisabledBorderColor","radioCheckedDisabledBackgroundColor","radioCheckedDisabledIconColor","iconButtonBorderRadius","iconButtonLargeBorderRadius","iconButtonLargePadding","iconButtonBorderColor","iconButtonBackgroundColor","iconButtonIconColor","iconButtonHoverBorderColor","iconButtonHoverBackgroundColor","iconButtonHoverIconColor","iconButtonActiveBorderColor","iconButtonActiveBackgroundColor","iconButtonActiveIconColor","iconButtonActiveHoverBorderColor","iconButtonActiveHoverBackgroundColor","iconButtonActiveHoverIconColor","collapseButtonBorderRadius","collapseButtonOpenBorderColor","collapseButtonOpenBackgroundColor","collapseButtonOpenIconColor","collapseButtonOpenIconActiveColor","collapseButtonOpenHoverBorderColor","collapseButtonOpenHoverBackgroundColor","collapseButtonOpenHoverIconColor","collapseButtonOpenHoverIconActiveColor","collapseButtonCloseBorderColor","collapseButtonCloseBackgroundColor","collapseButtonCloseIconColor","collapseButtonCloseIconActiveColor","collapseButtonCloseHoverBorderColor","collapseButtonCloseHoverBackgroundColor","collapseButtonCloseHoverIconColor","collapseButtonCloseHoverIconActiveColor","buttonBorderRadius","buttonHorizontalPadding","buttonVerticalPadding","primaryButtonBorderColor","primaryButtonForegroundColor","primaryButtonBackgroundColor","primaryButtonDisabledBorderColor","primaryButtonDisabledForegroundColor","primaryButtonDisabledBackgroundColor","primaryButtonHoverBorderColor","primaryButtonHoverForegroundColor","primaryButtonHoverBackgroundColor","primaryButtonFocusBorderColor","primaryButtonFocusForegroundColor","primaryButtonFocusBackgroundColor","secondaryButtonBorderColor","secondaryButtonForegroundColor","secondaryButtonBackgroundColor","secondaryButtonDisabledBorderColor","secondaryButtonDisabledForegroundColor","secondaryButtonDisabledBackgroundColor","secondaryButtonHoverBorderColor","secondaryButtonHoverForegroundColor","secondaryButtonHoverBackgroundColor","secondaryButtonFocusBorderColor","secondaryButtonFocusForegroundColor","secondaryButtonFocusBackgroundColor","commentsTextareaHorizontalPadding","commentsTextareaVerticalPadding","commentsTextareaBorderWidth","commentsTextareaBorderColor","commentsTextareaForegroundColor","commentsTextareaBackgroundColor","commentsTextareaFocusBorderWidth","commentsTextareaFocusBorderColor","commentsTextareaFocusForegroundColor","commentsTextareaFocusBackgroundColor","commentsIndicatorSize","commentsIndicatorColor","licenseHorizontalPadding","licenseVerticalPadding","licenseForegroundColor","licenseBackgroundColor","linkColor","linkHoverColor","inputBorderWidth","inputBorderRadius","inputHorizontalPadding","inputVerticalPadding","inputBorderColor","inputForegroundColor","inputBackgroundColor","inputHoverBorderColor","inputHoverForegroundColor","inputHoverBackgroundColor","inputDisabledBorderColor","inputDisabledForegroundColor","inputDisabledBackgroundColor","inputFocusBorderColor","inputFocusForegroundColor","inputFocusBackgroundColor","menuBorderWidth","menuBorderRadius","menuHorizontalPadding","menuVerticalPadding","menuItemHorizontalPadding","menuItemVerticalPadding","menuBorderColor","menuShadowX","menuShadowY","menuShadowBlur","menuShadowColor","menuShadowOpacity","menuItemHoverColor","menuItemHoverColorOpacity","menuItemActiveColor","menuItemActiveColorOpacity","dialogSemiTransparentBackgroundColor","dialogSemiTransparentBackgroundOpacity","dialogSolidBackgroundColor","dialogContentPaddingHorizontal","dialogContentPaddingVertical","dialogContentBorderRadius","dialogContentBackgroundColor","paginationBarForegroundColor","paginationBarBackgroundColor","paginationBarHorizontalPadding","paginationBarVerticalPadding","chipBackground","chipBorderRadius","chipVerticalPadding","chipHorizontalPadding","chipGap"]);function u(e){if(!a.has(e)){const t=[...a].join(", ");(0,i.throwWithCause)(`[ThemeBuilder] Invalid color scheme: "${e}". Must be one of: ${t}.`)}return e}function d(e){if(!l.has(e)){const t=[...l].join(", ");(0,i.throwWithCause)(`[ThemeBuilder] Invalid density: "${e}". Must be one of: ${t}.`)}return e}function p(e,t){Object.entries(e).forEach(e=>{let[r,o]=e;const s=`${t}.${r}`;"string"!=typeof o&&((0,n.isObject)(o)?p(o,s):(0,i.throwWithCause)(`[ThemeBuilder] ${s} must be a string or an object.`))})}function g(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{type:i="key",warnMissing:s=!1}=n;if(!e)return void(s&&(0,o.warn)(`[ThemeBuilder] No ${i}s provided in ${r}. All ${i}s are missing.`));if(Object.keys(e).forEach(e=>{t.has(e)||(0,o.warn)(`[ThemeBuilder] Unknown ${i} key: "${e}" in ${r}. This may be a custom ${i} or a typo.`)}),s){const n=[];t.forEach(t=>{t in e||n.push(t)}),n.length>0&&(0,o.warn)(`[ThemeBuilder] Missing ${i}(s) in ${r}: ${n.join(", ")}`)}}},29029(e,t,r){"use strict";t.__esModule=!0;var n=r(4979);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))});var o=r(56790);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))})},56790(e,t,r){"use strict";t.__esModule=!0,t.getTheme=p,t.getThemeNames=function(){return h()},t.getThemes=function(){return c()},t.hasTheme=d,t.registerTheme=function(e,t){const{themeName:r,themeConfigObject:n}=g(e,t),i=(0,s.createTheme)(n);if(d(r))return(0,o.warn)(`Theme "${r}" is already registered. Registration skipped.`),p(r);return u(r,i),i},t.reinitTheme=function(e,t){const{themeName:r,themeConfigObject:n}=g(e,t);if(!d(r))return void(0,o.warn)(`Theme "${r}" is not registered. Cannot reinitialize a non-existent theme.`);const i=(0,s.createTheme)(n);return u(r,i),i};var n=r(81185),o=r(28065),i=r(65517),s=r(85796);const{hasItem:a,getItem:l,getNames:h,getValues:c,register:u}=(0,i.staticRegister)("themes");function d(e){return a(e)}function p(e){if(d(e))return l(e);(0,o.warn)(`Theme "${e}" is not registered. Please ensure it is registered before using it.`)}function g(e,t){let r=e,o=(0,n.deepClone)(t);return"string"==typeof e&&(0,n.isObject)(t)?o.name=e:(0,n.isObject)(e)&&(o=(0,n.deepClone)(e),r=o.name),{themeName:r,themeConfigObject:o}}},5371(e,t){"use strict";t.__esModule=!0;t.default={primary:{100:"#7aadffff",200:"#6a9bffff",300:"#6985b9ff",400:"#8eb0e7ff",500:"#5292f7ff",600:"#3e7ee3ff"},palette:{50:"#f0f0f0ff",100:"#dcdcdcff",200:"#ccccccff",300:"#c6c6c6ff",400:"#999999ff",500:"#777777ff",600:"#5c5c5cff",700:"#404040ff",800:"#313131ff",900:"#222222ff",950:"#0f0f10ff"},white:"#ffffffff",black:"#000000ff",transparent:"#ffffff00"}},36276(e,t){"use strict";t.__esModule=!0;t.default={primary:{100:"#f2c051ff",200:"#f1b93eff",300:"#d7a52aff",400:"#57c784ff",500:"#37bc6cff",600:"#32a961ff"},palette:{50:"#f7f7f9ff",100:"#e7e7e9ff",200:"#d1d1d4ff",300:"#b5b5b9ff",400:"#aeaeaeff",500:"#727272ff",600:"#353535ff",700:"#262624ff",800:"#222222ff",900:"#19191cff",950:"#070604ff"},white:"#ffffffff",black:"#000000ff",transparent:"#ffffff00"}},67738(e,t){"use strict";t.__esModule=!0;t.default={white:"#ffffffff",black:"#000000ff",primary:{100:"#6180ffff",200:"#5573f0ff",300:"#4669f6ff",400:"#2e56fcff",500:"#1a42e8ff",600:"#1535bcff"},palette:{50:"#f7f7f9ff",100:"#e7e7e9ff",200:"#b9b9bbff",300:"#a3a3a3ff",400:"#68696cff",500:"#404144ff",600:"#313132ff",700:"#282829ff",800:"#222222ff",900:"#1e1e1fff",950:"#050506ff"},transparent:"#ffffff00"}},90030(e,t){"use strict";t.__esModule=!0;t.default={default:{cellVertical:"sizing.size_1",cellHorizontal:"sizing.size_2",barsHorizontal:"sizing.size_4",barsVertical:"sizing.size_2",gap:"sizing.size_1",buttonHorizontal:"sizing.size_3",buttonVertical:"sizing.size_1_5",dialogHorizontal:"sizing.size_2",dialogVertical:"sizing.size_2",inputHorizontal:"sizing.size_3",inputVertical:"sizing.size_1_5",menuVertical:"sizing.size_2",menuHorizontal:"sizing.size_0",menuItemVertical:"sizing.size_1",menuItemHorizontal:"sizing.size_3"},compact:{cellVertical:"sizing.size_0_5",cellHorizontal:"sizing.size_1_5",barsHorizontal:"sizing.size_2",barsVertical:"sizing.size_1",gap:"sizing.size_0_5",buttonHorizontal:"sizing.size_2",buttonVertical:"sizing.size_0_5",dialogHorizontal:"sizing.size_1_5",dialogVertical:"sizing.size_1_5",inputHorizontal:"sizing.size_2",inputVertical:"sizing.size_0_5",menuVertical:"sizing.size_2",menuHorizontal:"sizing.size_0",menuItemVertical:"sizing.size_0_5",menuItemHorizontal:"sizing.size_2"},comfortable:{cellVertical:"sizing.size_2",cellHorizontal:"sizing.size_3",barsHorizontal:"sizing.size_4",barsVertical:"sizing.size_2",gap:"sizing.size_1_5",buttonHorizontal:"sizing.size_4",buttonVertical:"sizing.size_2",dialogHorizontal:"sizing.size_3",dialogVertical:"sizing.size_3",inputHorizontal:"sizing.size_4",inputVertical:"sizing.size_2",menuVertical:"sizing.size_3",menuHorizontal:"sizing.size_0",menuItemVertical:"sizing.size_2",menuItemHorizontal:"sizing.size_2"}}},602(e,t){"use strict";t.__esModule=!0;const r=(e,t)=>`width: var(--ht-icon-size);\n height: var(--ht-icon-size);\n -webkit-mask-size: contain;\n -webkit-mask-image: url("${e[t]}");\n background-color: currentColor;`;t.iconsMap=(e,t)=>{const n=t?`[class*=${t}] `:"";return`${n}.htDropdownMenu table tbody tr td.htSubmenu .htItemWrapper::after,\n${n}.htContextMenu table tbody tr td.htSubmenu .htItemWrapper::after,\n${n}.htFiltersConditionsMenu table tbody tr td.htSubmenu .htItemWrapper::after,\n${n}.pika-single .pika-next {\n ${r(e,"arrowRight")}\n}\n\n${n}.pika-single .pika-prev {\n ${r(e,"arrowLeft")}\n}\n\n${n}.ht-page-size-section__select-wrapper::after {\n ${r(e,"arrowDown")}\n}\n\n${n}.changeType::before {\n ${r(e,"menu")}\n}\n\n${n}.htUISelectCaption::after,\n.htAutocompleteArrow::after {\n ${r(e,"selectArrow")}\n}\n\n${n}.columnSorting.sortAction.ascending::before {\n ${r(e,"arrowNarrowUp")}\n}\n\n${n}.columnSorting.sortAction.descending::before {\n ${r(e,"arrowNarrowDown")}\n}\n\n${n}.ht-page-navigation-section .ht-page-first::before {\n ${r(e,"arrowLeftWithBar")}\n}\n\n${n}[dir="rtl"] .ht-page-navigation-section .ht-page-first::before {\n ${r(e,"arrowRightWithBar")}\n}\n\n${n}.ht-page-navigation-section .ht-page-prev::before {\n ${r(e,"arrowLeft")}\n}\n\n${n}[dir="rtl"] .ht-page-navigation-section .ht-page-prev::before {\n ${r(e,"arrowRight")}\n}\n\n${n}.ht-page-navigation-section .ht-page-next::before {\n ${r(e,"arrowRight")}\n}\n\n${n}[dir="rtl"] .ht-page-navigation-section .ht-page-next::before {\n ${r(e,"arrowLeft")}\n}\n\n${n}.ht-page-navigation-section .ht-page-last::before {\n ${r(e,"arrowRightWithBar")}\n}\n\n${n}[dir="rtl"] .ht-page-navigation-section .ht-page-last::before {\n ${r(e,"arrowLeftWithBar")}\n}\n\n${n}.htDropdownMenu table tbody tr td .htItemWrapper span.selected::after,\n${n}.htContextMenu table tbody tr td .htItemWrapper span.selected::after,\n${n}.htFiltersConditionsMenu table tbody tr td .htItemWrapper span.selected::after {\n ${r(e,"check")}\n}\n\n${n}.htCheckboxRendererInput {\n appearance: none;\n}\n\n${n}.htCheckboxRendererInput::after {\n ${r(e,"checkbox")}\n}\n\n${n}th.beforeHiddenColumn::after {\n ${r(e,"caretHiddenLeft")}\n}\n\n${n}th.afterHiddenColumn::before {\n ${r(e,"caretHiddenRight")}\n}\n\n${n}th.beforeHiddenRow::after {\n ${r(e,"caretHiddenUp")}\n}\n\n${n}th.afterHiddenRow::before {\n ${r(e,"caretHiddenDown")}\n}\n\n${n}.collapsibleIndicator::before,\n${n}.ht_nestingButton::before {\n ${r(e,"collapseOff")}\n}\n\n${n}.collapsibleIndicator.collapsed::before,\n${n}.ht_nestingButton.ht_nestingExpand::before {\n ${r(e,"collapseOn")}\n}\n\n${n}.htUIRadio > input[type="radio"]::after {\n ${r(e,"radio")}\n}\n\n${n}.ht-multi-select-chip-remove::before {\n ${r(e,"chipClose")}\n}\n\n${n}.ht-multi-select-editor-search-icon {\n ${r(e,"search")}\n}\n\n${n}.ht-multi-select-editor-item-selected input::after {\n ${r(e,"checkbox")}\n}`}},80260(e,t){"use strict";t.__esModule=!0;t.default={arrowRight:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.64648 10.9393L9.93938 7.64644L6.64648 4.35354' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowRightWithBar:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.9292 4.64188L8.27934 7.99203L4.9292 11.3422M11.0711 4.08353V11.3422' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",arrowLeft:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.93945 10.9393L6.64656 7.64644L9.93945 4.35354' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowLeftWithBar:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0713 4.64188L7.72115 7.99203L11.0713 11.3422M4.92936 4.08353L4.92936 11.3422' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",arrowDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.6'%3E%3Cpath d='M11.5859 6L8.29304 9.29289L5.00015 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E",menu:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.83337 7.99984C6.83337 8.30926 6.95629 8.606 7.17508 8.8248C7.39388 9.04359 7.69062 9.1665 8.00004 9.1665C8.30946 9.1665 8.60621 9.04359 8.825 8.8248C9.04379 8.606 9.16671 8.30926 9.16671 7.99984C9.16671 7.69042 9.04379 7.39367 8.825 7.17488C8.60621 6.95609 8.30946 6.83317 8.00004 6.83317C7.69062 6.83317 7.39388 6.95609 7.17508 7.17488C6.95629 7.39367 6.83337 7.69042 6.83337 7.99984Z' fill='%23222222'/%3E%3Cpath d='M6.83337 12.4165C6.83337 12.7259 6.95629 13.0227 7.17508 13.2415C7.39388 13.4603 7.69062 13.5832 8.00004 13.5832C8.30946 13.5832 8.60621 13.4603 8.825 13.2415C9.04379 13.0227 9.16671 12.7259 9.16671 12.4165C9.16671 12.1071 9.04379 11.8103 8.825 11.5915C8.60621 11.3728 8.30946 11.2498 8.00004 11.2498C7.69062 11.2498 7.39388 11.3728 7.17508 11.5915C6.95629 11.8103 6.83337 12.1071 6.83337 12.4165Z' fill='%23222222'/%3E%3Cpath d='M6.83337 3.58317C6.83337 3.89259 6.95629 4.18934 7.17508 4.40813C7.39388 4.62692 7.69062 4.74984 8.00004 4.74984C8.30946 4.74984 8.60621 4.62692 8.825 4.40813C9.04379 4.18934 9.16671 3.89259 9.16671 3.58317C9.16671 3.27375 9.04379 2.97701 8.825 2.75821C8.60621 2.53942 8.30946 2.4165 8.00004 2.4165C7.69062 2.4165 7.39388 2.53942 7.17508 2.75821C6.95629 2.97701 6.83337 3.27375 6.83337 3.58317Z' fill='currentColor'/%3E%3C/svg%3E",selectArrow:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 6L8.29289 9.29289L11.5858 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowNarrowUp:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.00008 12.6667L8.00008 3.33335M8.00008 3.33335L5.33342 6.00002M8.00008 3.33335L10.6667 6.00002' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowNarrowDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.99992 3.33331V12.6666M7.99992 12.6666L10.6666 9.99998M7.99992 12.6666L5.33325 9.99998' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",check:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.3335 8.00002L6.66683 11.3334L13.3335 4.66669' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",checkbox:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L7 10L11 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",caretHiddenLeft:"data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.07209 0.856828C6.08637 0.855597 6.1007 0.85498 6.11503 0.85498H6.17649C6.19083 0.85498 6.20515 0.855597 6.21944 0.856828L6.24964 0.859432C6.26009 0.860333 6.2705 0.861561 6.28087 0.863116L6.31212 0.867804C6.31889 0.86882 6.32565 0.869975 6.33238 0.871269L6.35946 0.876478C6.37551 0.879565 6.3914 0.883438 6.40708 0.888082L6.46333 0.904748C6.47851 0.909248 6.49348 0.914467 6.50817 0.920388L6.54307 0.93445C6.55923 0.940963 6.57504 0.948316 6.59043 0.956479L6.65918 0.992938C6.67949 1.00371 6.69903 1.01587 6.71767 1.02933L6.76455 1.06318C6.77915 1.07372 6.79316 1.08505 6.80654 1.09711L6.84873 1.13513C6.86284 1.14785 6.87622 1.16136 6.88879 1.1756L6.93202 1.22456C6.94435 1.23852 6.95589 1.25316 6.96659 1.26842L6.99471 1.30852C7.00421 1.32206 7.01303 1.33606 7.02113 1.35048L7.04926 1.40048C7.05508 1.41082 7.06053 1.42137 7.06559 1.4321L7.07445 1.45085C7.07858 1.45961 7.08246 1.46848 7.08608 1.47746L7.10014 1.51236C7.10607 1.52705 7.11129 1.54202 7.11579 1.55721L7.13245 1.61346C7.13726 1.62969 7.14124 1.64616 7.14438 1.66279L7.15157 1.70089L7.15667 1.73216C7.15927 1.74779 7.16113 1.76354 7.16224 1.77936L7.16433 1.80904C7.16475 1.81506 7.16506 1.82108 7.16527 1.8271L7.16631 1.85783L7.16659 1.87477V8.12477C7.16659 8.99803 6.15887 9.44746 5.5073 8.92171C5.49997 8.91579 5.49281 8.90967 5.48582 8.90335L5.44207 8.86377C5.4359 8.85818 5.42987 8.85244 5.42398 8.84656L2.29898 5.72155C2.12322 5.54577 2.01761 5.31189 2.00201 5.0638C1.98641 4.81571 2.06187 4.57045 2.21423 4.37404C2.22073 4.36567 2.22749 4.3575 2.2345 4.34956L2.27773 4.3006C2.28458 4.29285 2.29166 4.28531 2.29898 4.27799L5.42398 1.15299C5.43129 1.14567 5.43884 1.13859 5.44659 1.13174L5.49555 1.08851C5.50951 1.07618 5.52415 1.06464 5.5394 1.05395L5.57951 1.02582C5.59305 1.01633 5.60705 1.00751 5.62147 0.9994L5.67147 0.971275C5.68181 0.965458 5.69235 0.96001 5.70308 0.954943L5.72183 0.946089C5.73059 0.941952 5.73947 0.93807 5.74846 0.934449L5.78336 0.920387C5.79805 0.914467 5.81301 0.909248 5.8282 0.904749L5.88445 0.888082C5.90068 0.883272 5.91715 0.879289 5.93379 0.87615L5.96139 0.870942C5.96714 0.869856 5.97291 0.868872 5.9787 0.86799L6.00943 0.863302C6.0202 0.861659 6.03102 0.860368 6.04188 0.859432L6.07209 0.856828ZM6.13512 1.85781L6.12011 1.87107L3.01706 4.97412L3.00168 4.99154C3.00041 4.99451 2.99984 4.99777 3.00004 5.00104C3.00036 5.0061 3.00251 5.01086 3.00609 5.01445M3.00609 5.01445L6.12226 8.13062L6.13954 8.14626C6.1418 8.14647 6.14848 8.14635 6.15542 8.14308C6.1622 8.13989 6.16489 8.13638 6.16522 8.13589C6.16536 8.13543 6.16659 8.1316 6.16659 8.12477V1.88324L6.16623 1.87249L6.16491 1.86803L6.16272 1.86413L6.15846 1.85932L6.15029 1.85498H6.14119L6.13902 1.85563L6.13512 1.85781' fill='currentColor'/%3E%3C/svg%3E",caretHiddenRight:"data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.83337 1.87506C3.83337 1.87507 3.83337 1.87505 3.83337 1.87506L3.83441 8.12961L3.83506 8.1318L3.83725 8.1357L3.8415 8.14051L3.84973 8.14488L3.8514 8.14537L3.85344 8.14558L3.85649 8.14553L3.86095 8.1442L3.86485 8.14201L3.87986 8.12876L6.98291 5.02571L6.99829 5.00829C6.99956 5.00532 7.00013 5.00207 6.99993 4.99879C6.99961 4.99373 6.99746 4.98897 6.99388 4.98538M3.87772 1.86922L6.99388 4.98538ZM3.87772 1.86922L3.86043 1.85358C3.85817 1.85336 3.85149 1.85348 3.84455 1.85675C3.83777 1.85994 3.83508 1.86345 3.83475 1.86394C3.83461 1.8644 3.83338 1.86828 3.83337 1.87506C3.83337 1.87507 3.83337 1.87505 3.83337 1.87506M2.83337 1.87506C2.83337 1.0018 3.8411 0.552371 4.49267 1.07813C4.5 1.08404 4.50716 1.09016 4.51414 1.09648L4.55789 1.13606C4.56407 1.14165 4.5701 1.14739 4.57599 1.15328L7.70099 4.27828C7.87675 4.45406 7.98236 4.68795 7.99796 4.93603C8.01355 5.18412 7.9381 5.42938 7.78574 5.62579C7.77924 5.63416 7.77248 5.64233 7.76547 5.65027L7.72224 5.69923C7.71539 5.70698 7.70831 5.71453 7.70099 5.72184L4.57599 8.84684C4.56867 8.85416 4.56113 8.86124 4.55338 8.86809L4.50442 8.91132C4.49046 8.92365 4.47582 8.93519 4.46056 8.94588L4.42046 8.97401C4.40692 8.9835 4.39292 8.99232 4.37851 9.00043L4.32851 9.02855C4.31816 9.03437 4.30761 9.03982 4.29688 9.04489L4.27813 9.05374C4.26937 9.05788 4.26049 9.06176 4.2515 9.06538L4.21661 9.07945C4.20192 9.08536 4.18696 9.09058 4.17178 9.09508L4.11553 9.11175C4.09929 9.11656 4.08281 9.12054 4.06617 9.12368L4.02809 9.13087L3.99683 9.13596C3.98119 9.13857 3.96544 9.14043 3.94962 9.14154L3.91994 9.14362C3.91392 9.14404 3.90791 9.14436 3.90188 9.14456L3.87115 9.1456C3.85986 9.14599 3.84856 9.14599 3.83726 9.1456L3.80653 9.14456C3.79786 9.14427 3.78919 9.14375 3.78054 9.143L3.75033 9.1404C3.73988 9.1395 3.72947 9.13827 3.71909 9.13671L3.68784 9.13202C3.68108 9.13101 3.67433 9.12986 3.66761 9.12856L3.64053 9.12336C3.62447 9.12027 3.60857 9.11639 3.59289 9.11175L3.53664 9.09508C3.52145 9.09058 3.50649 9.08536 3.49181 9.07945L3.45691 9.06538C3.44075 9.05887 3.42493 9.05151 3.40953 9.04335L3.34079 9.00689C3.32048 8.99612 3.30094 8.98396 3.2823 8.9705L3.23542 8.93665C3.22083 8.92611 3.20681 8.91478 3.19343 8.90273L3.15124 8.86471C3.13713 8.85199 3.12375 8.83847 3.11118 8.82423L3.06795 8.77527C3.05562 8.76131 3.04408 8.74667 3.03338 8.73141L3.00526 8.69131C2.99576 8.67777 2.98694 8.66377 2.97884 8.64936L2.95071 8.59936C2.94489 8.58901 2.93944 8.57846 2.93437 8.56772L2.92552 8.54897C2.92138 8.54022 2.91751 8.53135 2.91389 8.52237L2.89982 8.48747C2.8939 8.47278 2.88868 8.45781 2.88418 8.44262L2.86752 8.38637C2.86271 8.37014 2.85872 8.35367 2.85559 8.33704L2.8484 8.29894L2.8433 8.26767C2.8407 8.25204 2.83883 8.23629 2.83773 8.22047L2.83564 8.19079C2.83483 8.17917 2.83442 8.16752 2.83442 8.15587L2.83337 1.87506Z' fill='currentColor'/%3E%3C/svg%3E",caretHiddenUp:"data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.76425 2.43099C3.82165 2.3736 3.89801 2.33913 3.97902 2.33403C4.06003 2.32894 4.14012 2.35358 4.20425 2.40333L4.23558 2.43099L6.23558 4.43099L6.26325 4.46233L6.28125 4.48799L6.29925 4.51999L6.30492 4.53199L6.31392 4.55433L6.32458 4.59033L6.32792 4.60799L6.33125 4.62799L6.33258 4.64699L6.33325 4.66666L6.33258 4.68633L6.33092 4.70566L6.32792 4.72566L6.32458 4.74299L6.31392 4.77899L6.30492 4.80133L6.28158 4.84533L6.25992 4.87533L6.23558 4.90233L6.20425 4.92999L6.17858 4.94799L6.14658 4.96599L6.13458 4.97166L6.11225 4.98066L6.07625 4.99133L6.05858 4.99466L6.03858 4.99799L6.01958 4.99933L5.99992 4.99999H1.99992C1.71592 4.99999 1.56758 4.67133 1.73892 4.45899L1.76425 4.43099L3.76425 2.43099Z' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",caretHiddenDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.9999 3C6.2839 3 6.43224 3.32867 6.2609 3.541L6.23557 3.569L4.23557 5.569C4.17817 5.62639 4.10181 5.66087 4.0208 5.66596C3.93979 5.67106 3.8597 5.64642 3.79557 5.59667L3.76424 5.569L1.76424 3.569L1.73657 3.53767L1.71857 3.512L1.70057 3.48L1.6949 3.468L1.6859 3.44567L1.67524 3.40967L1.6719 3.392L1.66857 3.372L1.66724 3.353V3.31367L1.6689 3.29433L1.6719 3.27433L1.67524 3.257L1.6859 3.221L1.6949 3.19867L1.71824 3.15467L1.7399 3.12467L1.76424 3.09767L1.79557 3.07L1.82124 3.052L1.85324 3.034L1.86524 3.02833L1.88757 3.01933L1.92357 3.00867L1.94124 3.00533L1.96124 3.002L1.98024 3.00067L5.9999 3Z' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",collapseOff:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.33325 8H11.6666' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",collapseOn:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.49988 11.6667C7.49988 11.9428 7.72374 12.1667 7.99988 12.1667C8.27602 12.1667 8.49988 11.9428 8.49988 11.6667V8.50002H11.6666C11.9427 8.50002 12.1666 8.27616 12.1666 8.00002C12.1666 7.72388 11.9427 7.50002 11.6666 7.50002H8.49988V4.33337C8.49988 4.05723 8.27602 3.83337 7.99988 3.83337C7.72374 3.83337 7.49988 4.05723 7.49988 4.33337V7.50002H4.33325C4.05711 7.50002 3.83325 7.72388 3.83325 8.00002C3.83325 8.27616 4.05711 8.50002 4.33325 8.50002H7.49988V11.6667Z' fill='currentColor'/%3E%3C/svg%3E%0A",radio:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='4' fill='currentColor'/%3E%3C/svg%3E%0A",chipClose:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4L4 12M4 4L12 12' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",search:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cg opacity='0.5'%3E%3Cpath d='M28 28L20 20M4 13.3333C4 14.559 4.24141 15.7727 4.71046 16.905C5.1795 18.0374 5.86699 19.0663 6.73367 19.933C7.60035 20.7997 8.62925 21.4872 9.76162 21.9562C10.894 22.4253 12.1077 22.6667 13.3333 22.6667C14.559 22.6667 15.7727 22.4253 16.905 21.9562C18.0374 21.4872 19.0663 20.7997 19.933 19.933C20.7997 19.0663 21.4872 18.0374 21.9562 16.905C22.4253 15.7727 22.6667 14.559 22.6667 13.3333C22.6667 12.1077 22.4253 10.894 21.9562 9.76162C21.4872 8.62925 20.7997 7.60035 19.933 6.73367C19.0663 5.86699 18.0374 5.1795 16.905 4.71046C15.7727 4.24141 14.559 4 13.3333 4C12.1077 4 10.894 4.24141 9.76162 4.71046C8.62925 5.1795 7.60035 5.86699 6.73367 6.73367C5.86699 7.60035 5.1795 8.62925 4.71046 9.76162C4.24141 10.894 4 12.1077 4 13.3333Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E"}},80074(e,t){"use strict";t.__esModule=!0;t.default={arrowRight:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.64648 10.9393L9.93938 7.64644L6.64648 4.35354' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowRightWithBar:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.9292 4.64188L8.27934 7.99203L4.9292 11.3422M11.0711 4.08353V11.3422' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",arrowLeft:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.93933 10.9393L6.64644 7.64644L9.93933 4.35354' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowLeftWithBar:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0713 4.64188L7.72115 7.99203L11.0713 11.3422M4.92936 4.08353L4.92936 11.3422' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",arrowDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.6'%3E%3Cpath d='M11.5859 6L8.29304 9.29289L5.00015 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E",menu:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0002 6.66663C11.4262 6.66663 11.6487 7.15963 11.3917 7.47813L11.3537 7.52013L8.35372 10.5201C8.26762 10.6062 8.15307 10.6579 8.03156 10.6656C7.91005 10.6732 7.78992 10.6363 7.69372 10.5616L7.64672 10.5201L4.64672 7.52013L4.60522 7.47313L4.57822 7.43463L4.55122 7.38663L4.54272 7.36863L4.52922 7.33513L4.51322 7.28113L4.50822 7.25463L4.50322 7.22463L4.50122 7.19613V7.13713L4.50372 7.10813L4.50822 7.07813L4.51322 7.05213L4.52922 6.99813L4.54272 6.96463L4.57772 6.89863L4.61022 6.85363L4.64672 6.81313L4.69372 6.77163L4.73222 6.74463L4.78022 6.71763L4.79822 6.70913L4.83172 6.69563L4.88572 6.67963L4.91222 6.67463L4.94222 6.66963L4.97072 6.66763L11.0002 6.66663Z' fill='currentColor'/%3E%3C/svg%3E%0A",selectArrow:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0002 6.66663C11.4262 6.66663 11.6487 7.15963 11.3917 7.47813L11.3537 7.52013L8.35372 10.5201C8.26762 10.6062 8.15307 10.6579 8.03156 10.6656C7.91005 10.6732 7.78992 10.6363 7.69372 10.5616L7.64672 10.5201L4.64672 7.52013L4.60522 7.47313L4.57822 7.43463L4.55122 7.38663L4.54272 7.36863L4.52922 7.33513L4.51322 7.28113L4.50822 7.25463L4.50322 7.22463L4.50122 7.19613V7.13713L4.50372 7.10813L4.50822 7.07813L4.51322 7.05213L4.52922 6.99813L4.54272 6.96463L4.57772 6.89863L4.61022 6.85363L4.64672 6.81313L4.69372 6.77163L4.73222 6.74463L4.78022 6.71763L4.79822 6.70913L4.83172 6.69563L4.88572 6.67963L4.91222 6.67463L4.94222 6.66963L4.97072 6.66763L11.0002 6.66663Z' fill='currentColor'/%3E%3C/svg%3E%0A",arrowNarrowUp:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.00008 12.6667L8.00008 3.33335M8.00008 3.33335L5.33342 6.00002M8.00008 3.33335L10.6667 6.00002' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",arrowNarrowDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.00004 3.33331V12.6666M8.00004 12.6666L10.6667 9.99998M8.00004 12.6666L5.33337 9.99998' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",check:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.33337 8.00002L6.66671 11.3334L13.3334 4.66669' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",checkbox:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L7 10L11 6' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",caretHiddenLeft:"data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.08482 1.35771L6.11503 1.3551H6.17649L6.2067 1.35771L6.23795 1.36239L6.26503 1.3676L6.32128 1.38427L6.35618 1.39833L6.42493 1.43479L6.4718 1.46864L6.51399 1.50667L6.55722 1.55562L6.58534 1.59573L6.61347 1.64573L6.62232 1.66448L6.63639 1.69937L6.65305 1.75562L6.65826 1.78323L6.66347 1.81448L6.66555 1.84417L6.66659 1.87489V8.12489C6.66659 8.56864 6.15305 8.80042 5.82128 8.53271L5.77753 8.49312L2.65253 5.36812C2.56286 5.27844 2.50899 5.15912 2.50103 5.03254C2.49307 4.90596 2.53157 4.78083 2.6093 4.68062L2.65253 4.63167L5.77753 1.50667L5.82649 1.46344L5.86659 1.43531L5.91659 1.40719L5.93534 1.39833L5.97024 1.38427L6.02649 1.3676L6.05409 1.36239L6.08482 1.35771Z' fill='currentColor'/%3E%3C/svg%3E",caretHiddenRight:"data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.33337 1.87499C3.33337 1.43124 3.84692 1.19947 4.17869 1.46718L4.22244 1.50676L7.34744 4.63176C7.43711 4.72145 7.49098 4.84077 7.49894 4.96735C7.5069 5.09392 7.4684 5.21905 7.39067 5.31926L7.34744 5.36822L4.22244 8.49322L4.17348 8.53645L4.13337 8.56457L4.08337 8.5927L4.06462 8.60155L4.02973 8.61562L3.97348 8.63228L3.94587 8.63749L3.91462 8.6427L3.88494 8.64478L3.85421 8.64582L3.82348 8.64478L3.79327 8.64218L3.76202 8.63749L3.73494 8.63228L3.67869 8.61562L3.64379 8.60155L3.57504 8.5651L3.52817 8.53124L3.48598 8.49322L3.44275 8.44426L3.41462 8.40416L3.3865 8.35416L3.37764 8.33541L3.36358 8.30051L3.34692 8.24426L3.34171 8.21666L3.3365 8.18541L3.33442 8.15572L3.33337 1.87499Z' fill='currentColor'/%3E%3C/svg%3E",caretHiddenUp:"data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.76425 2.43099C3.82165 2.3736 3.89801 2.33913 3.97902 2.33403C4.06003 2.32894 4.14012 2.35358 4.20425 2.40333L4.23558 2.43099L6.23558 4.43099L6.26325 4.46233L6.28125 4.48799L6.29925 4.51999L6.30492 4.53199L6.31392 4.55433L6.32458 4.59033L6.32792 4.60799L6.33125 4.62799L6.33258 4.64699L6.33325 4.66666L6.33258 4.68633L6.33092 4.70566L6.32792 4.72566L6.32458 4.74299L6.31392 4.77899L6.30492 4.80133L6.28158 4.84533L6.25992 4.87533L6.23558 4.90233L6.20425 4.92999L6.17858 4.94799L6.14658 4.96599L6.13458 4.97166L6.11225 4.98066L6.07625 4.99133L6.05858 4.99466L6.03858 4.99799L6.01958 4.99933L5.99992 4.99999H1.99992C1.71592 4.99999 1.56758 4.67133 1.73892 4.45899L1.76425 4.43099L3.76425 2.43099Z' fill='currentColor'/%3E%3C/svg%3E%0A",caretHiddenDown:"data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.9999 3C6.2839 3 6.43224 3.32867 6.2609 3.541L6.23557 3.569L4.23557 5.569C4.17817 5.62639 4.10181 5.66087 4.0208 5.66596C3.93979 5.67106 3.8597 5.64642 3.79557 5.59667L3.76424 5.569L1.76424 3.569L1.73657 3.53767L1.71857 3.512L1.70057 3.48L1.6949 3.468L1.6859 3.44567L1.67524 3.40967L1.6719 3.392L1.66857 3.372L1.66724 3.353V3.31367L1.6689 3.29433L1.6719 3.27433L1.67524 3.257L1.6859 3.221L1.6949 3.19867L1.71824 3.15467L1.7399 3.12467L1.76424 3.09767L1.79557 3.07L1.82124 3.052L1.85324 3.034L1.86524 3.02833L1.88757 3.01933L1.92357 3.00867L1.94124 3.00533L1.96124 3.002L1.98024 3.00067L5.9999 3Z' fill='currentColor'/%3E%3C/svg%3E%0A",collapseOff:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.33325 8H11.6666' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",collapseOn:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.49988 11.6667C7.49988 11.9428 7.72374 12.1667 7.99988 12.1667C8.27602 12.1667 8.49988 11.9428 8.49988 11.6667V8.50002H11.6666C11.9427 8.50002 12.1666 8.27616 12.1666 8.00002C12.1666 7.72388 11.9427 7.50002 11.6666 7.50002H8.49988V4.33337C8.49988 4.05723 8.27602 3.83337 7.99988 3.83337C7.72374 3.83337 7.49988 4.05723 7.49988 4.33337V7.50002H4.33325C4.05711 7.50002 3.83325 7.72388 3.83325 8.00002C3.83325 8.27616 4.05711 8.50002 4.33325 8.50002H7.49988V11.6667Z' fill='currentColor'/%3E%3C/svg%3E%0A",radio:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='4' fill='currentColor'/%3E%3C/svg%3E%0A",chipClose:"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4L4 12M4 4L12 12' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A",search:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cg opacity='0.5'%3E%3Cpath d='M28 28L20 20M4 13.3333C4 14.559 4.24141 15.7727 4.71046 16.905C5.1795 18.0374 5.86699 19.0663 6.73367 19.933C7.60035 20.7997 8.62925 21.4872 9.76162 21.9562C10.894 22.4253 12.1077 22.6667 13.3333 22.6667C14.559 22.6667 15.7727 22.4253 16.905 21.9562C18.0374 21.4872 19.0663 20.7997 19.933 19.933C20.7997 19.0663 21.4872 18.0374 21.9562 16.905C22.4253 15.7727 22.6667 14.559 22.6667 13.3333C22.6667 12.1077 22.4253 10.894 21.9562 9.76162C21.4872 8.62925 20.7997 7.60035 19.933 6.73367C19.0663 5.86699 18.0374 5.1795 16.905 4.71046C15.7727 4.24141 14.559 4 13.3333 4C12.1077 4 10.894 4.24141 9.76162 4.71046C8.62925 5.1795 7.60035 5.86699 6.73367 6.73367C5.86699 7.60035 5.1795 8.62925 4.71046 9.76162C4.24141 10.894 4 12.1077 4 13.3333Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E"}},55486(e,t){"use strict";t.__esModule=!0;t.default={size_0:"0px",size_0_5:"2px",size_1:"4px",size_2:"8px",size_1_5:"6px",size_3:"12px",size_4:"16px",size_5:"20px",size_6:"24px",size_7:"28px",size_8:"32px",size_9:"36px",size_10:"40px",size_0_25:"1px"}},17097(e,t){"use strict";t.__esModule=!0;t.default={fontFamily:"Inter",fontSize:"13px",fontSizeSmall:"11px",lineHeight:"21px",lineHeightSmall:"16px",fontWeight:"400",letterSpacing:"0px",borderColor:["colors.palette.200","colors.palette.700"],accentColor:["colors.primary.500","colors.primary.100"],foregroundColor:["colors.palette.800","colors.palette.300"],foregroundSecondaryColor:["colors.palette.500","colors.palette.400"],backgroundColor:["colors.white","colors.palette.950"],backgroundSecondaryColor:["colors.palette.50","colors.palette.900"],placeholderColor:["colors.palette.400","colors.palette.500"],readOnlyColor:["colors.palette.500","colors.palette.400"],disabledColor:["colors.palette.400","colors.palette.500"],gapSize:"density.gap",iconSize:"sizing.size_3",tableTransition:"0s",wrapperBorderWidth:"0px",wrapperBorderRadius:"sizing.size_0",wrapperBorderColor:"tokens.borderColor",barForegroundColor:"tokens.foregroundColor",barBackgroundColor:"tokens.backgroundSecondaryColor",barHorizontalPadding:"density.barsHorizontal",barVerticalPadding:"density.barsVertical",shadowColor:["colors.palette.800","colors.palette.300"],shadowX:"sizing.size_0_25",shadowY:"sizing.size_0_25",shadowBlur:"sizing.size_0",shadowOpacity:"8%",cellHorizontalPadding:"density.cellHorizontal",cellVerticalPadding:"density.cellVertical",cellHorizontalBorderColor:"tokens.borderColor",cellVerticalBorderColor:"tokens.borderColor",cellSelectionBorderColor:"tokens.accentColor",cellSelectionBackgroundColor:"tokens.accentColor",cellSuccessBackgroundColor:"#37bc6c33",cellErrorBackgroundColor:"#fa4d3233",cellReadOnlyBackgroundColor:"colors.transparent",cellAutofillSize:"sizing.size_1_5",cellAutofillHitAreaSize:"sizing.size_3",cellAutofillBorderWidth:"sizing.size_0_25",cellAutofillBorderRadius:"sizing.size_0",cellAutofillBorderColor:"tokens.backgroundColor",cellAutofillBackgroundColor:"tokens.accentColor",cellAutofillFillBorderColor:"tokens.foregroundColor",cellEditorBorderWidth:"2px",cellEditorBorderColor:"tokens.accentColor",cellEditorForegroundColor:["colors.palette.950","colors.white"],cellEditorBackgroundColor:"tokens.backgroundColor",cellEditorShadowBlurRadius:"0px",cellEditorShadowColor:"tokens.accentColor",cellMobileHandleSize:"sizing.size_3",cellMobileHandleBorderWidth:"sizing.size_0_25",cellMobileHandleBorderRadius:"sizing.size_3",cellMobileHandleBorderColor:"tokens.accentColor",cellMobileHandleBackgroundColor:"tokens.accentColor",cellMobileHandleBackgroundOpacity:"40%",headerFontWeight:"tokens.fontWeight",headerForegroundColor:"tokens.foregroundColor",headerBackgroundColor:"tokens.backgroundSecondaryColor",headerHighlightedShadowSize:"0px",headerHighlightedForegroundColor:"tokens.foregroundColor",headerHighlightedBackgroundColor:["colors.palette.100","colors.palette.800"],headerActiveBorderColor:"tokens.borderColor",headerActiveForegroundColor:["colors.palette.950","colors.white"],headerActiveBackgroundColor:["colors.primary.400","colors.primary.300"],headerFilterBackgroundColor:"tokens.cellSuccessBackgroundColor",headerRowForegroundColor:"tokens.foregroundColor",headerRowBackgroundColor:"tokens.backgroundSecondaryColor",headerRowHighlightedForegroundColor:"tokens.foregroundColor",headerRowHighlightedBackgroundColor:["colors.palette.100","colors.palette.800"],headerRowActiveForegroundColor:["colors.palette.950","colors.white"],headerRowActiveBackgroundColor:["colors.primary.400","colors.primary.300"],rowHeaderOddBackgroundColor:"tokens.backgroundSecondaryColor",rowHeaderEvenBackgroundColor:"tokens.backgroundSecondaryColor",rowCellOddBackgroundColor:"tokens.backgroundColor",rowCellEvenBackgroundColor:"tokens.backgroundColor",buttonBorderRadius:"sizing.size_0_5",buttonHorizontalPadding:"density.buttonHorizontal",buttonVerticalPadding:"density.buttonVertical",primaryButtonBorderColor:"colors.transparent",primaryButtonForegroundColor:"tokens.backgroundColor",primaryButtonBackgroundColor:"tokens.accentColor",primaryButtonDisabledBorderColor:"colors.transparent",primaryButtonDisabledForegroundColor:"tokens.disabledColor",primaryButtonDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],primaryButtonHoverBorderColor:"colors.transparent",primaryButtonHoverForegroundColor:"tokens.backgroundColor",primaryButtonHoverBackgroundColor:["colors.primary.600","colors.primary.200"],primaryButtonFocusBorderColor:"tokens.backgroundColor",primaryButtonFocusForegroundColor:"tokens.backgroundColor",primaryButtonFocusBackgroundColor:"tokens.accentColor",secondaryButtonBorderColor:"tokens.borderColor",secondaryButtonForegroundColor:"tokens.foregroundColor",secondaryButtonBackgroundColor:"tokens.backgroundColor",secondaryButtonDisabledBorderColor:"tokens.borderColor",secondaryButtonDisabledForegroundColor:"tokens.disabledColor",secondaryButtonDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],secondaryButtonHoverBorderColor:"tokens.borderColor",secondaryButtonHoverForegroundColor:"tokens.foregroundColor",secondaryButtonHoverBackgroundColor:["colors.palette.50","colors.palette.900"],secondaryButtonFocusBorderColor:"tokens.borderColor",secondaryButtonFocusForegroundColor:"tokens.foregroundColor",secondaryButtonFocusBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonBorderRadius:"sizing.size_0_5",iconButtonLargeBorderRadius:"sizing.size_0_5",iconButtonLargePadding:"sizing.size_1",iconButtonBorderColor:["colors.palette.300","colors.palette.600"],iconButtonBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonIconColor:["colors.palette.400","colors.palette.500"],iconButtonHoverBorderColor:["colors.palette.400","colors.palette.500"],iconButtonHoverBackgroundColor:["colors.palette.50","colors.palette.900"],iconButtonHoverIconColor:["colors.palette.400","colors.palette.500"],iconButtonActiveBorderColor:["colors.palette.300","colors.palette.600"],iconButtonActiveBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonActiveIconColor:["colors.palette.400","colors.palette.500"],iconButtonActiveHoverBorderColor:["colors.palette.400","colors.palette.500"],iconButtonActiveHoverBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonActiveHoverIconColor:["colors.palette.400","colors.palette.500"],collapseButtonBorderRadius:"sizing.size_4",collapseButtonOpenBorderColor:["colors.palette.300","colors.palette.600"],collapseButtonOpenBackgroundColor:["colors.white","colors.palette.950"],collapseButtonOpenIconColor:["colors.palette.400","colors.palette.500"],collapseButtonOpenIconActiveColor:["colors.palette.400","colors.palette.500"],collapseButtonOpenHoverBorderColor:["colors.palette.300","colors.palette.600"],collapseButtonOpenHoverBackgroundColor:["colors.white","colors.palette.950"],collapseButtonOpenHoverIconColor:["colors.palette.400","colors.palette.500"],collapseButtonOpenHoverIconActiveColor:["colors.palette.400","colors.palette.500"],collapseButtonCloseBorderColor:["colors.palette.300","colors.palette.600"],collapseButtonCloseBackgroundColor:["colors.palette.50","colors.palette.900"],collapseButtonCloseIconColor:["colors.palette.400","colors.palette.500"],collapseButtonCloseIconActiveColor:["colors.palette.400","colors.palette.500"],collapseButtonCloseHoverBorderColor:["colors.palette.300","colors.palette.600"],collapseButtonCloseHoverBackgroundColor:["colors.palette.50","colors.palette.900"],collapseButtonCloseHoverIconColor:["colors.palette.400","colors.palette.500"],collapseButtonCloseHoverIconActiveColor:["colors.palette.400","colors.palette.500"],linkColor:["colors.primary.600","colors.primary.200"],linkHoverColor:["colors.primary.600","colors.primary.200"],inputBorderWidth:"1px",inputBorderRadius:"sizing.size_1",inputHorizontalPadding:"density.inputHorizontal",inputVerticalPadding:"density.inputVertical",inputBorderColor:"tokens.borderColor",inputForegroundColor:"tokens.foregroundColor",inputBackgroundColor:"tokens.backgroundSecondaryColor",inputHoverBorderColor:"tokens.borderColor",inputHoverForegroundColor:"tokens.foregroundColor",inputHoverBackgroundColor:"tokens.backgroundSecondaryColor",inputDisabledBorderColor:"tokens.borderColor",inputDisabledForegroundColor:"tokens.disabledColor",inputDisabledBackgroundColor:["colors.palette.300","colors.palette.600"],inputFocusBorderColor:"tokens.accentColor",inputFocusForegroundColor:"tokens.foregroundColor",inputFocusBackgroundColor:"tokens.backgroundSecondaryColor",checkboxSize:"tokens.iconSize",checkboxBorderRadius:"sizing.size_0_5",checkboxBorderColor:["colors.palette.400","colors.palette.500"],checkboxBackgroundColor:"tokens.backgroundColor",checkboxIconColor:"colors.transparent",checkboxFocusBorderColor:["colors.palette.400","colors.palette.500"],checkboxFocusBackgroundColor:"tokens.backgroundColor",checkboxFocusIconColor:"colors.transparent",checkboxFocusRingColor:"tokens.accentColor",checkboxDisabledBorderColor:["colors.palette.300","colors.palette.600"],checkboxDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],checkboxDisabledIconColor:"colors.transparent",checkboxCheckedBorderColor:["colors.primary.600","colors.primary.200"],checkboxCheckedBackgroundColor:"tokens.accentColor",checkboxCheckedIconColor:"tokens.backgroundColor",checkboxCheckedFocusBorderColor:"tokens.backgroundColor",checkboxCheckedFocusBackgroundColor:"tokens.accentColor",checkboxCheckedFocusIconColor:"tokens.backgroundColor",checkboxCheckedDisabledBorderColor:["colors.palette.300","colors.palette.600"],checkboxCheckedDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],checkboxCheckedDisabledIconColor:["colors.palette.300","colors.palette.600"],checkboxIndeterminateBorderColor:["colors.primary.600","colors.primary.200"],checkboxIndeterminateBackgroundColor:"tokens.accentColor",checkboxIndeterminateIconColor:"tokens.backgroundColor",checkboxIndeterminateFocusBorderColor:"tokens.backgroundColor",checkboxIndeterminateFocusBackgroundColor:"tokens.accentColor",checkboxIndeterminateFocusIconColor:"tokens.backgroundColor",checkboxIndeterminateDisabledBorderColor:["colors.palette.300","colors.palette.600"],checkboxIndeterminateDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],checkboxIndeterminateDisabledIconColor:["colors.palette.300","colors.palette.600"],radioSize:"tokens.iconSize",radioBorderColor:["colors.palette.400","colors.palette.500"],radioBackgroundColor:"tokens.backgroundColor",radioIconColor:"colors.transparent",radioFocusBorderColor:["colors.palette.400","colors.palette.500"],radioFocusBackgroundColor:"tokens.backgroundColor",radioFocusIconColor:"colors.transparent",radioFocusRingColor:"tokens.accentColor",radioDisabledBorderColor:["colors.palette.300","colors.palette.600"],radioDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],radioDisabledIconColor:"colors.transparent",radioCheckedBorderColor:"tokens.accentColor",radioCheckedBackgroundColor:"tokens.backgroundColor",radioCheckedIconColor:"tokens.accentColor",radioCheckedFocusBorderColor:["colors.primary.600","colors.primary.200"],radioCheckedFocusBackgroundColor:"tokens.backgroundColor",radioCheckedFocusIconColor:"tokens.accentColor",radioCheckedDisabledBorderColor:["colors.palette.300","colors.palette.600"],radioCheckedDisabledBackgroundColor:["colors.palette.100","colors.palette.800"],radioCheckedDisabledIconColor:["colors.palette.300","colors.palette.600"],moveBacklightColor:["colors.palette.800","colors.palette.300"],moveBacklightOpacity:"16%",moveIndicatorColor:["colors.palette.400","colors.palette.500"],resizeIndicatorColor:["colors.palette.400","colors.palette.500"],hiddenIndicatorColor:["colors.palette.400","colors.palette.500"],menuBorderWidth:"1px",menuBorderRadius:"0px",menuHorizontalPadding:"density.menuHorizontal",menuVerticalPadding:"density.menuVertical",menuItemHorizontalPadding:"density.menuItemHorizontal",menuItemVerticalPadding:"density.menuItemVertical",menuBorderColor:"tokens.borderColor",menuShadowX:"tokens.shadowX",menuShadowY:"tokens.shadowY",menuShadowBlur:"tokens.shadowBlur",menuShadowColor:"tokens.borderColor",menuShadowOpacity:"100%",menuItemHoverColor:["colors.palette.800","colors.palette.300"],menuItemHoverColorOpacity:"8%",menuItemActiveColor:["colors.palette.800","colors.palette.300"],menuItemActiveColorOpacity:"12%",commentsTextareaHorizontalPadding:"density.cellHorizontal",commentsTextareaVerticalPadding:"density.cellVertical",commentsTextareaBorderWidth:"1px",commentsTextareaBorderColor:"tokens.borderColor",commentsTextareaForegroundColor:"tokens.foregroundColor",commentsTextareaBackgroundColor:"tokens.backgroundSecondaryColor",commentsTextareaFocusBorderWidth:"1px",commentsTextareaFocusBorderColor:"tokens.accentColor",commentsTextareaFocusForegroundColor:"tokens.foregroundColor",commentsTextareaFocusBackgroundColor:"tokens.backgroundColor",commentsIndicatorSize:"sizing.size_1_5",commentsIndicatorColor:"tokens.accentColor",licenseHorizontalPadding:"tokens.barHorizontalPadding",licenseVerticalPadding:"tokens.barVerticalPadding",licenseForegroundColor:"tokens.barForegroundColor",licenseBackgroundColor:"tokens.barBackgroundColor",paginationBarForegroundColor:"tokens.barForegroundColor",paginationBarBackgroundColor:"tokens.barBackgroundColor",paginationBarHorizontalPadding:"tokens.barHorizontalPadding",paginationBarVerticalPadding:"tokens.barVerticalPadding",dialogSemiTransparentBackgroundColor:["colors.white","colors.palette.950"],dialogSemiTransparentBackgroundOpacity:"80%",dialogSolidBackgroundColor:["colors.white","colors.palette.950"],dialogContentPaddingHorizontal:"density.dialogHorizontal",dialogContentPaddingVertical:"density.dialogVertical",dialogContentBorderRadius:"sizing.size_2",dialogContentBackgroundColor:"tokens.backgroundSecondaryColor",chipBackground:"tokens.backgroundSecondaryColor",chipBorderRadius:"sizing.size_0_5",chipVerticalPadding:"sizing.size_0",chipHorizontalPadding:"sizing.size_1",chipGap:"sizing.size_1",scrollbarBorderRadius:"sizing.size_2",scrollbarTrackColor:"tokens.backgroundSecondaryColor",scrollbarThumbColor:["colors.palette.400","colors.palette.500"]}},89998(e,t){"use strict";t.__esModule=!0;t.default={fontFamily:"Inter",fontSize:"14px",fontSizeSmall:"12px",lineHeight:"20px",lineHeightSmall:"18px",fontWeight:"400",letterSpacing:"0px",borderColor:["colors.palette.100","colors.palette.800"],accentColor:["colors.primary.500","colors.primary.200"],foregroundColor:["colors.palette.700","colors.palette.200"],foregroundSecondaryColor:["colors.palette.500","colors.palette.400"],backgroundColor:["colors.white","colors.palette.950"],backgroundSecondaryColor:["colors.palette.50","colors.palette.900"],placeholderColor:["colors.palette.400","colors.palette.500"],readOnlyColor:["colors.palette.700","colors.palette.200"],disabledColor:["colors.palette.400","colors.palette.500"],gapSize:"density.gap",iconSize:"sizing.size_4",tableTransition:"0.2s",wrapperBorderWidth:"0px",wrapperBorderRadius:"sizing.size_3",wrapperBorderColor:"tokens.borderColor",barForegroundColor:"tokens.foregroundColor",barBackgroundColor:"tokens.backgroundSecondaryColor",barHorizontalPadding:"density.barsHorizontal",barVerticalPadding:"density.barsVertical",shadowColor:["colors.palette.700","colors.palette.200"],shadowX:"sizing.size_0",shadowY:"sizing.size_2",shadowBlur:"sizing.size_4",shadowOpacity:"6%",cellHorizontalPadding:"density.cellHorizontal",cellVerticalPadding:"density.cellVertical",cellHorizontalBorderColor:"colors.transparent",cellVerticalBorderColor:"tokens.borderColor",cellSelectionBorderColor:"tokens.accentColor",cellSelectionBackgroundColor:"tokens.accentColor",cellSuccessBackgroundColor:"#37bc6c4d",cellErrorBackgroundColor:"#fa4d324d",cellReadOnlyBackgroundColor:"tokens.backgroundSecondaryColor",cellAutofillSize:"sizing.size_1_5",cellAutofillHitAreaSize:"sizing.size_3",cellAutofillBorderWidth:"sizing.size_0_25",cellAutofillBorderRadius:"sizing.size_1",cellAutofillBorderColor:"tokens.backgroundColor",cellAutofillBackgroundColor:"tokens.accentColor",cellAutofillFillBorderColor:"tokens.foregroundColor",cellEditorBorderWidth:"2px",cellEditorBorderColor:"tokens.accentColor",cellEditorForegroundColor:["colors.palette.950","colors.white"],cellEditorBackgroundColor:"tokens.backgroundColor",cellEditorShadowBlurRadius:"8px",cellEditorShadowColor:"tokens.accentColor",cellMobileHandleSize:"sizing.size_3",cellMobileHandleBorderWidth:"sizing.size_0_25",cellMobileHandleBorderRadius:"sizing.size_3",cellMobileHandleBorderColor:"tokens.accentColor",cellMobileHandleBackgroundColor:"tokens.accentColor",cellMobileHandleBackgroundOpacity:"40%",headerFontWeight:"tokens.fontWeight",headerForegroundColor:"tokens.foregroundColor",headerBackgroundColor:"tokens.backgroundSecondaryColor",headerHighlightedShadowSize:"1px",headerHighlightedForegroundColor:"tokens.foregroundColor",headerHighlightedBackgroundColor:["colors.palette.100","colors.palette.800"],headerActiveBorderColor:["colors.palette.800","colors.primary.100"],headerActiveForegroundColor:"tokens.backgroundColor",headerActiveBackgroundColor:["colors.palette.950","colors.primary.200"],headerFilterBackgroundColor:"tokens.cellSuccessBackgroundColor",headerRowForegroundColor:"tokens.foregroundColor",headerRowBackgroundColor:"tokens.backgroundColor",headerRowHighlightedForegroundColor:"tokens.foregroundColor",headerRowHighlightedBackgroundColor:["colors.palette.100","colors.palette.800"],headerRowActiveForegroundColor:"tokens.backgroundColor",headerRowActiveBackgroundColor:["colors.palette.950","colors.primary.200"],rowHeaderOddBackgroundColor:"tokens.backgroundColor",rowHeaderEvenBackgroundColor:"tokens.backgroundSecondaryColor",rowCellOddBackgroundColor:"tokens.backgroundColor",rowCellEvenBackgroundColor:"tokens.backgroundSecondaryColor",buttonBorderRadius:"sizing.size_4",buttonHorizontalPadding:"density.buttonHorizontal",buttonVerticalPadding:"density.buttonVertical",primaryButtonBorderColor:"colors.transparent",primaryButtonForegroundColor:"tokens.backgroundColor",primaryButtonBackgroundColor:"tokens.accentColor",primaryButtonDisabledBorderColor:"colors.transparent",primaryButtonDisabledForegroundColor:"tokens.disabledColor",primaryButtonDisabledBackgroundColor:["colors.palette.200","colors.palette.700"],primaryButtonHoverBorderColor:"colors.transparent",primaryButtonHoverForegroundColor:"tokens.backgroundColor",primaryButtonHoverBackgroundColor:["colors.primary.600","colors.primary.100"],primaryButtonFocusBorderColor:"tokens.backgroundColor",primaryButtonFocusForegroundColor:"tokens.backgroundColor",primaryButtonFocusBackgroundColor:"tokens.accentColor",secondaryButtonBorderColor:"tokens.borderColor",secondaryButtonForegroundColor:"tokens.foregroundColor",secondaryButtonBackgroundColor:"tokens.backgroundColor",secondaryButtonDisabledBorderColor:"tokens.borderColor",secondaryButtonDisabledForegroundColor:"tokens.disabledColor",secondaryButtonDisabledBackgroundColor:["colors.palette.50","colors.palette.900"],secondaryButtonHoverBorderColor:"tokens.borderColor",secondaryButtonHoverForegroundColor:"tokens.foregroundColor",secondaryButtonHoverBackgroundColor:["colors.palette.50","colors.palette.900"],secondaryButtonFocusBorderColor:"tokens.borderColor",secondaryButtonFocusForegroundColor:"tokens.foregroundColor",secondaryButtonFocusBackgroundColor:"tokens.backgroundColor",iconButtonBorderRadius:"sizing.size_4",iconButtonLargeBorderRadius:"sizing.size_1",iconButtonLargePadding:"sizing.size_1",iconButtonBorderColor:["colors.palette.50","colors.palette.900"],iconButtonBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonIconColor:["colors.palette.400","colors.palette.500"],iconButtonHoverBorderColor:["colors.palette.50","colors.palette.900"],iconButtonHoverBackgroundColor:["colors.palette.50","colors.palette.900"],iconButtonHoverIconColor:["colors.palette.700","colors.palette.200"],iconButtonActiveBorderColor:"colors.transparent",iconButtonActiveBackgroundColor:"colors.transparent",iconButtonActiveIconColor:"tokens.backgroundColor",iconButtonActiveHoverBorderColor:"colors.transparent",iconButtonActiveHoverBackgroundColor:["colors.palette.950","colors.primary.200"],iconButtonActiveHoverIconColor:"tokens.backgroundColor",collapseButtonBorderRadius:"sizing.size_4",collapseButtonOpenBorderColor:"colors.transparent",collapseButtonOpenBackgroundColor:"colors.transparent",collapseButtonOpenIconColor:["colors.palette.500","colors.palette.400"],collapseButtonOpenIconActiveColor:["colors.palette.400","colors.palette.500"],collapseButtonOpenHoverBorderColor:"colors.transparent",collapseButtonOpenHoverBackgroundColor:"colors.transparent",collapseButtonOpenHoverIconColor:["colors.palette.800","colors.palette.200"],collapseButtonOpenHoverIconActiveColor:["colors.white","colors.palette.950"],collapseButtonCloseBorderColor:"colors.transparent",collapseButtonCloseBackgroundColor:"colors.transparent",collapseButtonCloseIconColor:["colors.palette.500","colors.palette.400"],collapseButtonCloseIconActiveColor:["colors.palette.400","colors.palette.500"],collapseButtonCloseHoverBorderColor:"colors.transparent",collapseButtonCloseHoverBackgroundColor:"colors.transparent",collapseButtonCloseHoverIconColor:["colors.palette.800","colors.palette.200"],collapseButtonCloseHoverIconActiveColor:["colors.white","colors.palette.950"],linkColor:"tokens.accentColor",linkHoverColor:["colors.primary.600","colors.primary.100"],inputBorderWidth:"1px",inputBorderRadius:"sizing.size_1",inputHorizontalPadding:"density.inputHorizontal",inputVerticalPadding:"density.inputVertical",inputBorderColor:"tokens.borderColor",inputForegroundColor:"tokens.foregroundColor",inputBackgroundColor:"tokens.backgroundColor",inputHoverBorderColor:"tokens.borderColor",inputHoverForegroundColor:"tokens.foregroundColor",inputHoverBackgroundColor:"tokens.backgroundColor",inputDisabledBorderColor:"tokens.borderColor",inputDisabledForegroundColor:"tokens.disabledColor",inputDisabledBackgroundColor:"tokens.backgroundColor",inputFocusBorderColor:"tokens.accentColor",inputFocusForegroundColor:"tokens.foregroundColor",inputFocusBackgroundColor:"tokens.backgroundColor",checkboxSize:"tokens.iconSize",checkboxBorderRadius:"sizing.size_1_5",checkboxBorderColor:["colors.palette.400","colors.palette.500"],checkboxBackgroundColor:"tokens.backgroundColor",checkboxIconColor:"colors.transparent",checkboxFocusBorderColor:["colors.palette.400","colors.palette.500"],checkboxFocusBackgroundColor:"tokens.backgroundColor",checkboxFocusIconColor:"colors.transparent",checkboxFocusRingColor:"tokens.accentColor",checkboxDisabledBorderColor:["colors.palette.400","colors.palette.500"],checkboxDisabledBackgroundColor:["colors.palette.50","colors.palette.900"],checkboxDisabledIconColor:"colors.transparent",checkboxCheckedBorderColor:["colors.primary.400","colors.primary.300"],checkboxCheckedBackgroundColor:"tokens.accentColor",checkboxCheckedIconColor:"tokens.backgroundColor",checkboxCheckedFocusBorderColor:"tokens.backgroundColor",checkboxCheckedFocusBackgroundColor:"tokens.accentColor",checkboxCheckedFocusIconColor:"tokens.backgroundColor",checkboxCheckedDisabledBorderColor:["colors.palette.400","colors.palette.500"],checkboxCheckedDisabledBackgroundColor:["colors.palette.50","colors.palette.900"],checkboxCheckedDisabledIconColor:"tokens.disabledColor",checkboxIndeterminateBorderColor:["colors.primary.400","colors.primary.300"],checkboxIndeterminateBackgroundColor:"tokens.accentColor",checkboxIndeterminateIconColor:"tokens.backgroundColor",checkboxIndeterminateFocusBorderColor:"tokens.backgroundColor",checkboxIndeterminateFocusBackgroundColor:"tokens.accentColor",checkboxIndeterminateFocusIconColor:"tokens.backgroundColor",checkboxIndeterminateDisabledBorderColor:["colors.palette.400","colors.palette.500"],checkboxIndeterminateDisabledBackgroundColor:["colors.palette.50","colors.palette.900"],checkboxIndeterminateDisabledIconColor:"tokens.disabledColor",radioSize:"tokens.iconSize",radioBorderColor:["colors.palette.400","colors.palette.500"],radioBackgroundColor:"tokens.backgroundColor",radioIconColor:"colors.transparent",radioFocusBorderColor:["colors.palette.400","colors.palette.500"],radioFocusBackgroundColor:"tokens.backgroundColor",radioFocusIconColor:"colors.transparent",radioFocusRingColor:"tokens.accentColor",radioDisabledBorderColor:["colors.palette.400","colors.palette.500"],radioDisabledBackgroundColor:"tokens.backgroundSecondaryColor",radioDisabledIconColor:"colors.transparent",radioCheckedBorderColor:"tokens.accentColor",radioCheckedBackgroundColor:"tokens.backgroundColor",radioCheckedIconColor:"tokens.accentColor",radioCheckedFocusBorderColor:["colors.primary.400","colors.primary.300"],radioCheckedFocusBackgroundColor:"tokens.backgroundColor",radioCheckedFocusIconColor:"tokens.accentColor",radioCheckedDisabledBorderColor:["colors.palette.400","colors.palette.500"],radioCheckedDisabledBackgroundColor:"tokens.backgroundSecondaryColor",radioCheckedDisabledIconColor:"tokens.disabledColor",moveBacklightColor:["colors.palette.800","colors.palette.200"],moveBacklightOpacity:"6%",moveIndicatorColor:"tokens.accentColor",resizeIndicatorColor:["colors.palette.400","colors.palette.500"],hiddenIndicatorColor:["colors.palette.400","colors.palette.500"],menuBorderWidth:"0px",menuBorderRadius:"sizing.size_3",menuHorizontalPadding:"density.menuHorizontal",menuVerticalPadding:"density.menuVertical",menuItemHorizontalPadding:"density.menuItemHorizontal",menuItemVerticalPadding:"density.menuItemVertical",menuBorderColor:"tokens.borderColor",menuShadowX:"tokens.shadowX",menuShadowY:"tokens.shadowY",menuShadowBlur:"tokens.shadowBlur",menuShadowColor:["colors.palette.950","colors.white"],menuShadowOpacity:"6%",menuItemHoverColor:["colors.palette.500","colors.palette.400"],menuItemHoverColorOpacity:"8%",menuItemActiveColor:"tokens.accentColor",menuItemActiveColorOpacity:"12%",commentsTextareaHorizontalPadding:"density.cellHorizontal",commentsTextareaVerticalPadding:"density.cellVertical",commentsTextareaBorderWidth:"1px",commentsTextareaBorderColor:"colors.transparent",commentsTextareaForegroundColor:"tokens.foregroundColor",commentsTextareaBackgroundColor:"tokens.backgroundSecondaryColor",commentsTextareaFocusBorderWidth:"1px",commentsTextareaFocusBorderColor:"tokens.accentColor",commentsTextareaFocusForegroundColor:"tokens.foregroundColor",commentsTextareaFocusBackgroundColor:"tokens.backgroundColor",commentsIndicatorSize:"sizing.size_1_5",commentsIndicatorColor:"tokens.accentColor",licenseHorizontalPadding:"tokens.barHorizontalPadding",licenseVerticalPadding:"tokens.barVerticalPadding",licenseForegroundColor:"tokens.barForegroundColor",licenseBackgroundColor:"tokens.barBackgroundColor",paginationBarForegroundColor:"tokens.barForegroundColor",paginationBarBackgroundColor:"tokens.barBackgroundColor",paginationBarHorizontalPadding:"tokens.barHorizontalPadding",paginationBarVerticalPadding:"tokens.barVerticalPadding",dialogSemiTransparentBackgroundColor:["colors.white","colors.palette.950"],dialogSemiTransparentBackgroundOpacity:"80%",dialogSolidBackgroundColor:["colors.white","colors.palette.950"],dialogContentPaddingHorizontal:"density.dialogHorizontal",dialogContentPaddingVertical:"density.dialogVertical",dialogContentBorderRadius:"sizing.size_4",dialogContentBackgroundColor:"tokens.backgroundColor",chipBackground:"tokens.backgroundSecondaryColor",chipBorderRadius:"sizing.size_2",chipVerticalPadding:"sizing.size_0",chipHorizontalPadding:"sizing.size_0_5",chipGap:"sizing.size_1",scrollbarBorderRadius:"sizing.size_2",scrollbarTrackColor:"tokens.backgroundSecondaryColor",scrollbarThumbColor:["colors.palette.400","colors.palette.500"]}},53688(e,t){"use strict";t.__esModule=!0;t.default={fontFamily:"Inter",fontSize:"14px",fontSizeSmall:"12px",lineHeight:"20px",lineHeightSmall:"18px",fontWeight:"400",letterSpacing:"0px",borderColor:["colors.palette.100","colors.palette.700"],accentColor:["colors.primary.500","colors.primary.300"],foregroundColor:["colors.palette.800","colors.palette.200"],foregroundSecondaryColor:["colors.palette.400","colors.palette.300"],backgroundColor:["colors.white","colors.palette.950"],backgroundSecondaryColor:["colors.palette.50","colors.palette.900"],placeholderColor:["colors.palette.300","colors.palette.400"],readOnlyColor:["colors.palette.400","colors.palette.300"],disabledColor:["colors.palette.300","colors.palette.400"],gapSize:"density.gap",iconSize:"sizing.size_4",tableTransition:"0.15s",wrapperBorderWidth:"0px",wrapperBorderRadius:"sizing.size_1",wrapperBorderColor:"tokens.borderColor",barForegroundColor:"tokens.foregroundColor",barBackgroundColor:"tokens.backgroundSecondaryColor",barHorizontalPadding:"density.barsHorizontal",barVerticalPadding:"density.barsVertical",shadowColor:["colors.palette.800","colors.palette.200"],shadowX:"sizing.size_0",shadowY:"sizing.size_2",shadowBlur:"sizing.size_4",shadowOpacity:"8%",cellHorizontalPadding:"density.cellHorizontal",cellVerticalPadding:"density.cellVertical",cellHorizontalBorderColor:"tokens.borderColor",cellVerticalBorderColor:"tokens.borderColor",cellSelectionBorderColor:"tokens.accentColor",cellSelectionBackgroundColor:["colors.primary.400","colors.primary.200"],cellSuccessBackgroundColor:"#37bc6c33",cellErrorBackgroundColor:"#fa4d3233",cellReadOnlyBackgroundColor:"tokens.backgroundSecondaryColor",cellAutofillSize:"sizing.size_1_5",cellAutofillHitAreaSize:"sizing.size_3",cellAutofillBorderWidth:"sizing.size_0_25",cellAutofillBorderRadius:"sizing.size_1",cellAutofillBorderColor:"tokens.backgroundColor",cellAutofillBackgroundColor:"tokens.accentColor",cellAutofillFillBorderColor:"tokens.foregroundColor",cellEditorBorderWidth:"2px",cellEditorBorderColor:"tokens.accentColor",cellEditorForegroundColor:["colors.palette.950","colors.white"],cellEditorBackgroundColor:"tokens.backgroundColor",cellEditorShadowBlurRadius:"0px",cellEditorShadowColor:"tokens.accentColor",cellMobileHandleSize:"sizing.size_3",cellMobileHandleBorderWidth:"sizing.size_0_25",cellMobileHandleBorderRadius:"sizing.size_3",cellMobileHandleBorderColor:"tokens.accentColor",cellMobileHandleBackgroundColor:"tokens.accentColor",cellMobileHandleBackgroundOpacity:"40%",headerFontWeight:"tokens.fontWeight",headerForegroundColor:"tokens.foregroundColor",headerBackgroundColor:"tokens.backgroundSecondaryColor",headerHighlightedShadowSize:"0px",headerHighlightedForegroundColor:["colors.palette.950","colors.white"],headerHighlightedBackgroundColor:["colors.palette.100","colors.palette.700"],headerActiveBorderColor:["colors.primary.400","colors.primary.200"],headerActiveForegroundColor:"colors.white",headerActiveBackgroundColor:"tokens.accentColor",headerFilterBackgroundColor:"tokens.cellSuccessBackgroundColor",headerRowForegroundColor:"tokens.foregroundColor",headerRowBackgroundColor:"tokens.backgroundSecondaryColor",headerRowHighlightedForegroundColor:["colors.palette.950","colors.white"],headerRowHighlightedBackgroundColor:["colors.palette.100","colors.palette.700"],headerRowActiveForegroundColor:"colors.white",headerRowActiveBackgroundColor:"tokens.accentColor",rowHeaderOddBackgroundColor:"tokens.backgroundSecondaryColor",rowHeaderEvenBackgroundColor:"tokens.backgroundSecondaryColor",rowCellOddBackgroundColor:"tokens.backgroundColor",rowCellEvenBackgroundColor:"tokens.backgroundColor",buttonBorderRadius:"sizing.size_1",buttonHorizontalPadding:"density.buttonHorizontal",buttonVerticalPadding:"density.buttonVertical",primaryButtonBorderColor:"colors.transparent",primaryButtonForegroundColor:"colors.white",primaryButtonBackgroundColor:"tokens.accentColor",primaryButtonDisabledBorderColor:"colors.transparent",primaryButtonDisabledForegroundColor:"tokens.disabledColor",primaryButtonDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],primaryButtonHoverBorderColor:"colors.transparent",primaryButtonHoverForegroundColor:"tokens.backgroundColor",primaryButtonHoverBackgroundColor:["colors.primary.600","colors.primary.100"],primaryButtonFocusBorderColor:"tokens.backgroundColor",primaryButtonFocusForegroundColor:"tokens.backgroundColor",primaryButtonFocusBackgroundColor:"tokens.accentColor",secondaryButtonBorderColor:"tokens.borderColor",secondaryButtonForegroundColor:"tokens.foregroundColor",secondaryButtonBackgroundColor:"tokens.backgroundColor",secondaryButtonDisabledBorderColor:"tokens.borderColor",secondaryButtonDisabledForegroundColor:"tokens.disabledColor",secondaryButtonDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],secondaryButtonHoverBorderColor:"tokens.borderColor",secondaryButtonHoverForegroundColor:"tokens.foregroundColor",secondaryButtonHoverBackgroundColor:["colors.palette.100","colors.palette.700"],secondaryButtonFocusBorderColor:"tokens.borderColor",secondaryButtonFocusForegroundColor:"tokens.foregroundColor",secondaryButtonFocusBackgroundColor:"tokens.backgroundColor",iconButtonBorderRadius:"sizing.size_0_5",iconButtonLargeBorderRadius:"sizing.size_1",iconButtonLargePadding:"sizing.size_1",iconButtonBorderColor:["colors.palette.50","colors.palette.900"],iconButtonBackgroundColor:"tokens.backgroundSecondaryColor",iconButtonIconColor:["colors.palette.300","colors.palette.400"],iconButtonHoverBorderColor:["colors.palette.200","colors.palette.600"],iconButtonHoverBackgroundColor:["colors.palette.200","colors.palette.600"],iconButtonHoverIconColor:["colors.palette.300","colors.palette.400"],iconButtonActiveBorderColor:["colors.primary.400","colors.primary.200"],iconButtonActiveBackgroundColor:"tokens.accentColor",iconButtonActiveIconColor:"colors.white",iconButtonActiveHoverBorderColor:["colors.primary.400","colors.primary.200"],iconButtonActiveHoverBackgroundColor:["colors.primary.400","colors.primary.200"],iconButtonActiveHoverIconColor:"colors.white",collapseButtonBorderRadius:"sizing.size_1",collapseButtonOpenBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonOpenBackgroundColor:["colors.white","colors.palette.950"],collapseButtonOpenIconColor:["colors.palette.400","colors.palette.300"],collapseButtonOpenIconActiveColor:["colors.palette.400","colors.palette.300"],collapseButtonOpenHoverBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonOpenHoverBackgroundColor:["colors.palette.50","colors.palette.900"],collapseButtonOpenHoverIconColor:["colors.palette.400","colors.palette.300"],collapseButtonOpenHoverIconActiveColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonCloseBackgroundColor:["colors.palette.100","colors.palette.700"],collapseButtonCloseIconColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseIconActiveColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseHoverBorderColor:["colors.palette.200","colors.palette.500"],collapseButtonCloseHoverBackgroundColor:["colors.palette.100","colors.palette.700"],collapseButtonCloseHoverIconColor:["colors.palette.400","colors.palette.300"],collapseButtonCloseHoverIconActiveColor:["colors.palette.400","colors.palette.300"],linkColor:["colors.primary.600","colors.primary.100"],linkHoverColor:"tokens.accentColor",inputBorderWidth:"1px",inputBorderRadius:"sizing.size_1",inputHorizontalPadding:"density.inputHorizontal",inputVerticalPadding:"density.inputVertical",inputBorderColor:"tokens.borderColor",inputForegroundColor:"tokens.foregroundColor",inputBackgroundColor:"tokens.backgroundSecondaryColor",inputHoverBorderColor:"tokens.borderColor",inputHoverForegroundColor:"tokens.foregroundColor",inputHoverBackgroundColor:"tokens.backgroundColor",inputDisabledBorderColor:"tokens.borderColor",inputDisabledForegroundColor:"tokens.disabledColor",inputDisabledBackgroundColor:["colors.palette.200","colors.palette.500"],inputFocusBorderColor:"tokens.accentColor",inputFocusForegroundColor:"tokens.foregroundColor",inputFocusBackgroundColor:"tokens.backgroundColor",checkboxSize:"tokens.iconSize",checkboxBorderRadius:"sizing.size_1",checkboxBorderColor:["colors.palette.200","colors.palette.500"],checkboxBackgroundColor:"tokens.backgroundColor",checkboxIconColor:"colors.transparent",checkboxFocusBorderColor:["colors.palette.200","colors.palette.500"],checkboxFocusBackgroundColor:"tokens.backgroundColor",checkboxFocusIconColor:"colors.transparent",checkboxFocusRingColor:"tokens.accentColor",checkboxDisabledBorderColor:["colors.palette.200","colors.palette.500"],checkboxDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],checkboxDisabledIconColor:"colors.transparent",checkboxCheckedBorderColor:["colors.primary.400","colors.primary.200"],checkboxCheckedBackgroundColor:"tokens.accentColor",checkboxCheckedIconColor:"colors.white",checkboxCheckedFocusBorderColor:"tokens.backgroundColor",checkboxCheckedFocusBackgroundColor:"tokens.accentColor",checkboxCheckedFocusIconColor:"colors.white",checkboxCheckedDisabledBorderColor:["colors.palette.200","colors.palette.500"],checkboxCheckedDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],checkboxCheckedDisabledIconColor:"tokens.disabledColor",checkboxIndeterminateBorderColor:["colors.primary.400","colors.primary.200"],checkboxIndeterminateBackgroundColor:"tokens.accentColor",checkboxIndeterminateIconColor:"colors.white",checkboxIndeterminateFocusBorderColor:"tokens.backgroundColor",checkboxIndeterminateFocusBackgroundColor:"tokens.accentColor",checkboxIndeterminateFocusIconColor:"colors.white",checkboxIndeterminateDisabledBorderColor:["colors.palette.200","colors.palette.600"],checkboxIndeterminateDisabledBackgroundColor:["colors.palette.200","colors.palette.500"],checkboxIndeterminateDisabledIconColor:"tokens.disabledColor",radioSize:"tokens.iconSize",radioBorderColor:["colors.palette.200","colors.palette.500"],radioBackgroundColor:"tokens.backgroundColor",radioIconColor:"colors.transparent",radioFocusBorderColor:"tokens.borderColor",radioFocusBackgroundColor:"tokens.backgroundColor",radioFocusIconColor:"colors.transparent",radioFocusRingColor:"tokens.accentColor",radioDisabledBorderColor:["colors.palette.200","colors.palette.500"],radioDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],radioDisabledIconColor:"colors.transparent",radioCheckedBorderColor:"tokens.accentColor",radioCheckedBackgroundColor:"tokens.backgroundColor",radioCheckedIconColor:"tokens.accentColor",radioCheckedFocusBorderColor:["colors.primary.400","colors.primary.200"],radioCheckedFocusBackgroundColor:"tokens.backgroundColor",radioCheckedFocusIconColor:["colors.primary.400","colors.primary.200"],radioCheckedDisabledBorderColor:["colors.palette.200","colors.palette.500"],radioCheckedDisabledBackgroundColor:["colors.palette.100","colors.palette.700"],radioCheckedDisabledIconColor:"tokens.disabledColor",moveBacklightColor:["colors.palette.800","colors.palette.200"],moveBacklightOpacity:"8%",moveIndicatorColor:"tokens.accentColor",resizeIndicatorColor:["colors.palette.300","colors.palette.400"],hiddenIndicatorColor:["colors.palette.300","colors.palette.400"],menuBorderWidth:"1px",menuBorderRadius:"sizing.size_1",menuHorizontalPadding:"density.menuHorizontal",menuVerticalPadding:"density.menuVertical",menuItemHorizontalPadding:"density.menuItemHorizontal",menuItemVerticalPadding:"density.menuItemVertical",menuBorderColor:"tokens.borderColor",menuShadowX:"tokens.shadowX",menuShadowY:"tokens.shadowY",menuShadowBlur:"tokens.shadowBlur",menuShadowColor:["colors.palette.950","colors.white"],menuShadowOpacity:"8%",menuItemHoverColor:["colors.palette.800","colors.palette.200"],menuItemHoverColorOpacity:"4%",menuItemActiveColor:"tokens.accentColor",menuItemActiveColorOpacity:"8%",commentsTextareaHorizontalPadding:"density.cellHorizontal",commentsTextareaVerticalPadding:"density.cellVertical",commentsTextareaBorderWidth:"1px",commentsTextareaBorderColor:"colors.transparent",commentsTextareaForegroundColor:"tokens.foregroundColor",commentsTextareaBackgroundColor:"tokens.backgroundSecondaryColor",commentsTextareaFocusBorderWidth:"1px",commentsTextareaFocusBorderColor:"tokens.accentColor",commentsTextareaFocusForegroundColor:"tokens.foregroundColor",commentsTextareaFocusBackgroundColor:"tokens.backgroundColor",commentsIndicatorSize:"sizing.size_1_5",commentsIndicatorColor:"tokens.accentColor",licenseHorizontalPadding:"tokens.barHorizontalPadding",licenseVerticalPadding:"tokens.barVerticalPadding",licenseForegroundColor:"tokens.barForegroundColor",licenseBackgroundColor:"tokens.barBackgroundColor",paginationBarForegroundColor:"tokens.barForegroundColor",paginationBarBackgroundColor:"tokens.barBackgroundColor",paginationBarHorizontalPadding:"tokens.barHorizontalPadding",paginationBarVerticalPadding:"tokens.barVerticalPadding",dialogSemiTransparentBackgroundColor:["colors.white","colors.palette.950"],dialogSemiTransparentBackgroundOpacity:"80%",dialogSolidBackgroundColor:["colors.white","colors.palette.950"],dialogContentPaddingHorizontal:"density.dialogHorizontal",dialogContentPaddingVertical:"density.dialogVertical",dialogContentBorderRadius:"sizing.size_2",dialogContentBackgroundColor:"tokens.backgroundSecondaryColor",chipBackground:"tokens.backgroundSecondaryColor",chipBorderRadius:"sizing.size_0_5",chipVerticalPadding:"sizing.size_0",chipHorizontalPadding:"sizing.size_0_5",chipGap:"sizing.size_1",scrollbarBorderRadius:"sizing.size_2",scrollbarTrackColor:"tokens.backgroundSecondaryColor",scrollbarThumbColor:["colors.palette.300","colors.palette.400"]}},48047(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(80074)),i=n(r(5371)),s=n(r(17097));t.classicTheme={name:"classic",density:"compact",icons:o.default,colors:i.default,tokens:s.default}},68584(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(80260)),i=n(r(36276)),s=n(r(89998));t.horizonTheme={name:"horizon",density:"comfortable",icons:o.default,colors:i.default,tokens:s.default}},4979(e,t,r){"use strict";t.__esModule=!0;var n=r(48047);t.classicTheme=n.classicTheme;var o=r(90190);t.mainTheme=o.mainTheme;var i=r(68584);t.horizonTheme=i.horizonTheme},90190(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(80074)),i=n(r(67738)),s=n(r(53688));t.mainTheme={name:"main",density:"default",icons:o.default,colors:i.default,tokens:s.default}},21071(e,t,r){"use strict";t.__esModule=!0;var n=r(20756),o=r(52585);function i(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function s(e,t){return e.get(l(e,t))}function a(e,t,r){return e.set(l(e,t),r),r}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,h,new Set),i(this,c,[]),i(this,u,[]),i(this,d,!1),i(this,p,!1),a(p,this,null!=e&&e)}createObserver(){const e=new n.ChangesObserver;return s(h,this).add(e),e.addLocalHook("unsubscribe",()=>{s(h,this).delete(e)}),e._writeInitialChanges((0,o.arrayDiff)(s(c,this),s(u,this))),e}emit(e){let t=s(u,this);s(d,this)&&s(c,this).length===e.length||(0===e.length?e=new Array(t.length).fill(s(p,this)):a(c,this,new Array(e.length).fill(s(p,this))),s(d,this)||(a(d,this,!0),t=s(c,this)));const r=(0,o.arrayDiff)(t,e);s(h,this).forEach(e=>e._write(r)),a(u,this,e)}}},20756(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(81185),i=n(r(27348));function s(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function a(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var l=new WeakMap;class h{constructor(){s(this,l,[])}subscribe(e){var t,r;return this.addLocalHook("change",e),this._write((r=this,(t=l).get(a(t,r)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,r,n;r=this,n=e,(t=l).set(a(t,r),n)}}t.ChangesObserver=h,(0,o.mixin)(h,i.default)},52585(e,t){"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){const r=[];let n=0,o=0;for(;n<e.length&&o<t.length;n++,o++)e[n]!==t[o]&&r.push({op:"replace",index:o,oldValue:e[n],newValue:t[o]});for(;n<t.length;n++)r.push({op:"insert",index:n,oldValue:void 0,newValue:t[n]});for(;o<e.length;o++)r.push({op:"remove",index:o,oldValue:e[o],newValue:void 0});return r}},52199(e,t,r){"use strict";t.__esModule=!0;var n={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0},o=r(79950);t.IndexMapper=o.IndexMapper;var i=r(34533);t.getRegisteredMapsCounter=i.getRegisteredMapsCounter;var s=r(66833);t.getIncreasedIndexes=s.getIncreasedIndexes,t.getDecreasedIndexes=s.getDecreasedIndexes,t.alterUtilsFactory=s.alterUtilsFactory;var a=r(55559);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))})},79950(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(27637),s=r(55559),a=r(57295),l=n(r(27348)),h=r(81185),c=r(67787),u=r(21071),d=r(15141);new Set;class p{constructor(){(0,o.default)(this,"indexesSequence",new s.IndexesSequence),(0,o.default)(this,"trimmingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,o.default)(this,"hidingMapsCollection",new a.AggregatedCollection(e=>e.some(e=>!0===e),!1)),(0,o.default)(this,"variousMapsCollection",new a.MapCollection),(0,o.default)(this,"hidingChangesObservable",new u.ChangesObservable({initialIndexValue:!1})),(0,o.default)(this,"notTrimmedIndexesCache",[]),(0,o.default)(this,"notHiddenIndexesCache",[]),(0,o.default)(this,"isBatched",!1),(0,o.default)(this,"indexesSequenceChanged",!1),(0,o.default)(this,"indexesChangeSource",void 0),(0,o.default)(this,"trimmedIndexesChanged",!1),(0,o.default)(this,"hiddenIndexesChanged",!1),(0,o.default)(this,"renderablePhysicalIndexesCache",[]),(0,o.default)(this,"fromPhysicalToVisualIndexesCache",new Map),(0,o.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){return"hiding"!==e&&(0,d.throwWithCause)(`Unsupported index map type "${e}".`),this.hidingChangesObservable.createObserver()}createAndRegisterIndexMap(e,t,r){return this.registerMap(e,(0,s.createIndexMap)(t,r))}registerMap(e,t){(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))&&(0,d.throwWithCause)(`Map with name "${e}" has been already registered.`),t instanceof s.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof s.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);const r=this.getNumberOfIndexes();return r>0&&t.init(r),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 r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(e))return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;const n=Array.from(this.fromVisualToRenderableIndexesCache.keys());let o=-1;return o=t>0?n.findIndex(t=>t>e):n.reverse().findIndex(t=>t<e),-1===o?r?this.getNearestNotHiddenIndex(e,-t,!1):null:n[o]}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 r=(0,i.arrayMap)(e,e=>this.getPhysicalFromVisualIndex(e)),n=this.getNotTrimmedIndexesLength(),o=e.length,a=(0,s.getListWithRemovedItems)(this.getIndexesSequence(),r),l=a.filter(e=>!1===this.isTrimmed(e));let h=a.indexOf(l[l.length-1])+1;if(t+o<n){const e=l[t];h=a.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,s.getListWithInsertedItems)(a,h,r)),this.indexesChangeSource=void 0}isTrimmed(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}isHidden(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}insertIndexes(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start";const n=this.getNotTrimmedIndexes()[e],o=(0,c.isDefined)(n)?n:this.getNumberOfIndexes(),s=this.getIndexesSequence().includes(n)?this.getIndexesSequence().indexOf(n):this.getNumberOfIndexes(),a=(0,i.arrayMap)(new Array(t).fill(o),(e,t)=>e+t);this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(s,a),this.indexesChangeSource=void 0;const l="end"===r?a.map(e=>e+1):a;this.trimmingMapsCollection.insertToEvery(s,l),this.hidingMapsCollection.insertToEvery(s,l),this.variousMapsCollection.insertToEvery(s,l),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),r=this.getVisualFromPhysicalIndex(e);this.fromVisualToRenderableIndexesCache.set(r,t)}}}t.IndexMapper=p,(0,h.mixin)(p,l.default)},90870(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(34533),s=r(27637),a=r(67787);class l extends i.MapCollection{constructor(e,t){super(),(0,o.default)(this,"mergedValuesCache",[]),(0,o.default)(this,"aggregationFunction",void 0),(0,o.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,s.arrayMap)(this.get(),e=>e.getValues()),t=[],r=(0,a.isDefined)(e[0])&&e[0].length||0;for(let n=0;n<r;n+=1){const r=[];for(let t=0;t<this.getLength();t+=1)r.push(e[t][n]);t.push(r)}return(0,s.arrayMap)(t,this.aggregationFunction)}getMergedValueAtIndex(e,t){const r=this.getMergedValues(t)[e];return(0,a.isDefined)(r)?r:this.fallbackValue}updateCache(){this.mergedValuesCache=this.getMergedValues(!1)}}t.AggregatedCollection=l},57295(e,t,r){"use strict";t.__esModule=!0;var n=r(90870);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))});var o=r(34533);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))})},34533(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.getRegisteredMapsCounter=function(){return l};var o=n(r(43685)),i=r(67787),s=r(81185),a=n(r(27348));let l=0;class h{constructor(){(0,o.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)),l+=1)}unregister(e){const t=this.collection.get(e);(0,i.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),l-=1)}unregisterAll(){this.collection.forEach((e,t)=>this.unregister(t)),this.collection.clear()}get(e){return(0,i.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(r=>{r.insert(e,t)})}initEvery(e){this.collection.forEach(t=>{t.init(e)})}}t.MapCollection=h,(0,s.mixin)(h,a.default)},5988(e,t,r){"use strict";t.__esModule=!0;var n=r(83832),o=r(27637);class i extends n.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getHiddenIndexes(){return(0,o.arrayReduce)(this.getValues(),(e,t,r)=>(t&&e.push(r),e),[])}}t.HidingMap=i},55559(e,t,r){"use strict";t.__esModule=!0;var n={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;d.has(e)||(0,h.throwWithCause)(`The provided map type ("${e}") does not exist.`);return new(d.get(e))(t)};var o=r(5988);t.HidingMap=o.HidingMap;var i=r(43689);t.IndexMap=i.IndexMap;var s=r(89107);t.LinkedPhysicalIndexToValueMap=s.LinkedPhysicalIndexToValueMap;var a=r(83832);t.PhysicalIndexToValueMap=a.PhysicalIndexToValueMap;var l=r(62158);t.TrimmingMap=l.TrimmingMap;var h=r(15141),c=r(66234);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))});var u=r(77196);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))});const d=new Map([["hiding",o.HidingMap],["index",i.IndexMap],["linkedPhysicalIndexToValue",s.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",a.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},43689(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(40499),s=r(81185),a=r(11526),l=n(r(27348));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,"indexedValues",[]),(0,o.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,a.isFunction)(this.initValueOrFn)?(0,i.rangeEach)(e-1,e=>this.indexedValues.push(this.initValueOrFn(e))):(0,i.rangeEach)(e-1,()=>this.indexedValues.push(this.initValueOrFn)),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,s.mixin)(h,l.default)},66234(e,t,r){"use strict";t.__esModule=!0;var n=r(43689),o=r(77196),i=r(66833);class s extends n.IndexMap{constructor(){super(e=>e)}insert(e,t){const r=(0,i.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,o.getListWithInsertedItems)(r,e,t),super.insert(e,t)}remove(e){const t=(0,o.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,i.getDecreasedIndexes)(t,e),super.remove(e)}}t.IndexesSequence=s},89107(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(43689),s=r(20702),a=r(77196),l=r(31875),h=r(11526);class c extends i.IndexMap{constructor(){super(...arguments),(0,o.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 r=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(r,0,e),this.runLocalHooks("change"),!0)}clearValue(e){this.orderOfIndexes=(0,a.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,s.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,l.getIncreasedIndexes)(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=(0,s.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,l.getDecreasedIndexes)(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map(e=>[e,this.getValueAtIndex(e)])}}t.LinkedPhysicalIndexToValueMap=c},83832(e,t,r){"use strict";t.__esModule=!0;var n=r(43689),o=r(20702);class i extends n.IndexMap{insert(e,t){this.indexedValues=(0,o.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=(0,o.getListWithRemovedItems)(this.indexedValues,e),super.remove(e)}}t.PhysicalIndexToValueMap=i},62158(e,t,r){"use strict";t.__esModule=!0;var n=r(83832),o=r(27637);class i extends n.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,o.arrayReduce)(this.getValues(),(e,t,r)=>(t&&e.push(r),e),[])}}t.TrimmingMap=i},31875(e,t,r){"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,n.arrayMap)(e,e=>e-t.filter(t=>t<e).length)},t.getIncreasedIndexes=function(e,t){const r=t[0],o=t.length;return(0,n.arrayMap)(e,e=>e>=r?e+o:e)};var n=r(27637)},66833(e,t,r){"use strict";t.__esModule=!0;var n=r(31875);t.getDecreasedIndexes=n.getDecreasedIndexes,t.getIncreasedIndexes=n.getIncreasedIndexes;var o=r(15141),i=r(77196),s=r(20702);const a=new Map([["indexesSequence",{getListWithInsertedItems:i.getListWithInsertedItems,getListWithRemovedItems:i.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:s.getListWithInsertedItems,getListWithRemovedItems:s.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>(!1===a.has(e)&&(0,o.throwWithCause)(`Alter strategy with ID '${e}' does not exist.`),a.get(e))},77196(e,t,r){"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,r){return[...e.slice(0,t),...r,...e.slice(t)]},t.getListWithRemovedItems=function(e,t){return(0,n.arrayFilter)(e,e=>!1===t.includes(e))};var n=r(27637)},20702(e,t,r){"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,r,o){const i=r.length?r[0]:void 0;return[...e.slice(0,i),...r.map((e,t)=>(0,n.isFunction)(o)?o(e,t):o),...void 0===i?[]:e.slice(i)]},t.getListWithRemovedItems=function(e,t){return(0,o.arrayFilter)(e,(e,r)=>!1===t.includes(r))};var n=r(11526),o=r(27637)},79527(e,t){"use strict";t.__esModule=!0,t.announce=function(e){if(!r)return;r.textContent="",setTimeout(()=>{r&&(r.textContent=e)},100)},t.install=function(e){const t=e.ownerDocument;if(!r){r=t.createElement("div"),r.setAttribute("role","status"),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true");const n=r.style;n.position="absolute",n.width="1px",n.height="1px",n.margin="-1px",n.overflow="hidden",n.clipPath="rect(0 0 0 0)",n.whiteSpace="nowrap",e.appendChild(r)}n+=1},t.uninstall=function(){if(0===n)return;1===n&&(r.remove(),r=null);n-=1};let r=null,n=0},53537(e,t){"use strict";function r(e,t,r){e.addEventListener(t,r,!1)}function n(e,t,r){e.removeEventListener(t,r,!1)}function o(e){return e.ownerDocument.defaultView.getComputedStyle(e)}t.__esModule=!0,t.createInputElementResizer=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...t},s=e.body,a=e.createTextNode(""),l=e.createElement("span");let h;function c(){var e,t;a.textContent=i.textContent(h),l.style.position="absolute",l.style.fontSize=o(h).fontSize,l.style.fontFamily=o(h).fontFamily,l.style.whiteSpace="pre",s.appendChild(l);const r=parseInt((null===(e=o(h))||void 0===e?void 0:e.paddingInlineStart)||0,10),n=parseInt((null===(t=o(h))||void 0===t?void 0:t.paddingInlineEnd)||0,10),c=l.clientWidth+r+n+1;s.removeChild(l);const u=h.style;u.height=`${i.minHeight}px`,i.minWidth>c?u.width=`${i.minWidth}px`:c>i.maxWidth?u.width=`${i.maxWidth}px`:u.width=`${c}px`;const d=h.scrollHeight?h.scrollHeight-1:0;i.minHeight>d?u.height=`${i.minHeight}px`:i.maxHeight<d?(u.height=`${i.maxHeight}px`,u.overflowY="visible"):u.height=`${d}px`}function u(){e.defaultView.setTimeout(c,0)}return{init:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];h=e,function(e){if(e&&e.minHeight)if("inherit"===e.minHeight)i.minHeight=h.clientHeight;else{const t=parseInt(e.minHeight,10);isNaN(t)||(i.minHeight=t)}if(e&&e.maxHeight)if("inherit"===e.maxHeight)i.maxHeight=h.clientHeight;else{const t=parseInt(e.maxHeight,10);isNaN(t)||(i.maxHeight=t)}if(e&&e.minWidth)if("inherit"===e.minWidth)i.minWidth=h.clientWidth;else{const t=parseInt(e.minWidth,10);isNaN(t)||(i.minWidth=t)}if(e&&e.maxWidth)if("inherit"===e.maxWidth)i.maxWidth=h.clientWidth;else{const t=parseInt(e.maxWidth,10);isNaN(t)||(i.maxWidth=t)}l.firstChild||(l.className="autoResize",l.style.display="inline-block",l.appendChild(a))}(t),"TEXTAREA"===h.nodeName&&(h.style.resize="none",h.style.height=`${i.minHeight}px`,h.style.minWidth=`${i.minWidth}px`,h.style.maxWidth=`${i.maxWidth}px`,h.style.overflowY="hidden"),n&&(r(h,"input",c),r(h,"keydown",u)),c()},resize:c,unObserve(){n(h,"input",c),n(h,"keydown",u)}}}},59842(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685));class i{constructor(e){(0,o.default)(this,"data",void 0),(0,o.default)(this,"next",null),(0,o.default)(this,"prev",null),this.data=e}}t.NodeStructure=i;t.default=class{constructor(){(0,o.default)(this,"first",null),(0,o.default)(this,"last",null)}push(e){const t=new i(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 i(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const r=e(t);if(t===this.last||!0===r)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,r,n=this.first;for(;n;){if(n.data===e)return t=n.next,r=n.prev,t&&(t.prev=r),r&&(r.next=t),n===this.first&&(this.first=t),n===this.last&&(this.last=r),!0;n=n.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,r){r&&(e(r,r.next),r.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,r=this.first;for(;t;)e=t.next,t.next=r,r.prev=t,r=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=r,this.last=e}}},10237(e,t,r){"use strict";t.__esModule=!0,t.createPriorityMap=function(){let{errorPriorityExists:e,errorPriorityNaN:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=new Map;return e=(0,o.isFunction)(e)?e:h,t=(0,o.isFunction)(t)?t:c,{addItem:function(o,s){(0,n.isNumeric)(o)||(0,i.throwWithCause)(t(o));r.has(o)&&(0,i.throwWithCause)(e(o));r.set(o,s)},getItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;const[t,n]=l.get(e)||l.get(s);return[...r].sort((e,r)=>e[0]<r[0]?t:n).map(e=>e[1])}}};var n=r(40499),o=r(11526),i=r(15141);const s=t.ASC="asc",a=t.DESC="desc",l=new Map([[s,[-1,1]],[a,[1,-1]]]),h=e=>`The priority '${e}' is already declared in a map.`,c=e=>`The priority '${e}' is not a number.`},76603(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.depthFirstPreOrder=a;var o=n(r(43685)),i=r(15141);const s=t.TRAVERSAL_DF_PRE="DF-pre-order";function a(e,t){let r=e.call(t,this);for(let n=0;n<this.childs.length;n++){if(!1===r)return!1;r=a.call(this.childs[n],e,t)}return r}const l=t.TRAVERSAL_DF_POST="DF-post-order";const h=t.TRAVERSAL_BF="BF";const c=h,u=new Map([[s,a],[l,function e(t,r){for(let n=0;n<this.childs.length;n++){if(!1===e.call(this.childs[n],t,r))return!1}return t.call(r,this)}],[h,function(e,t){const r=[this];!function n(){if(0===r.length)return;const o=r.shift();r.push(...o.childs),!1!==e.call(t,o)&&n()}()}]]);class d{constructor(e){(0,o.default)(this,"data",{}),(0,o.default)(this,"parent",null),(0,o.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 d({...e.data});for(let r=0;r<e.childs.length;r++)t.addChild(this.cloneTree(e.childs[r]));return t}replaceTreeWith(e){this.data={...e.data},this.childs=[];for(let t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}walkDown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;u.has(t)||(0,i.throwWithCause)(`Traversal strategy "${t}" does not exist`),u.get(t).call(this,e,this)}walkUp(e){const t=this,r=n=>{!1!==e.call(t,n)&&null!==n.parent&&r(n.parent)};r(this)}}t.default=d},46936(e,t,r){"use strict";t.__esModule=!0,t.createUniqueMap=function(){let{errorIdExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map;function r(){return[...t]}function s(e){return t.has(e)}return e=(0,n.isFunction)(e)?e:i,{addItem:function(r,n){s(r)&&(0,o.throwWithCause)(e(r));t.set(r,n)},clear:function(){t.clear()},getId:function(e){const[t]=r().find(t=>{let[r,n]=t;return e===n&&r})||[null];return t},getItem:function(e){return t.get(e)},getItems:r,getValues:function(){return[...t.values()]},hasItem:s,removeItem:function(e){return t.delete(e)}}};var n=r(11526),o=r(15141);const i=e=>`The id '${e}' is already declared in a map.`},26274(e,t,r){"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,n.isFunction)(e)?e:i,{addItem:function(r){t.has(r)&&(0,o.throwWithCause)(e(r));t.add(r)},clear:function(){t.clear()},getItems:function(){return[...t]}}};var n=r(11526),o=r(15141);const i=e=>`'${e}' value is already declared in a unique set.`},4943(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(2783),s=r(27637),a=r(15141);t.default=class{constructor(e){(0,o.default)(this,"hot",null),(0,o.default)(this,"container",null),(0,o.default)(this,"injected",!1),(0,o.default)(this,"rows",[]),(0,o.default)(this,"columns",[]),(0,o.default)(this,"samples",null),(0,o.default)(this,"settings",{useHeaders:!0}),this.hot=e}addRow(e,t){this.columns.length&&(0,a.throwWithCause)("Doesn't support multi-dimensional table"),this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));const r={row:e};this.rows.push(r),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),r.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){this.rows.length&&(0,a.throwWithCause)("Doesn't support multi-dimensional table"),this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));const r={col:e};this.columns.push(r),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),r.table=this.table.table}getHeights(e){this.injected||this.injectTable(),(0,s.arrayEach)(this.rows,t=>{const{height:r}=t.table.getBoundingClientRect();e(t.row,Math.ceil(r))})}getWidths(e){this.injected||this.injectTable(),(0,s.arrayEach)(this.columns,t=>{const{width:r}=t.table.getBoundingClientRect();e(t.col,Math.ceil(r))})}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(r=>{(0,s.arrayEach)(r.strings,r=>{t.appendChild(this.createColElement(r.col,e))})}),t}createRow(e){const{rootDocument:t}=this.hot,r=t.createDocumentFragment(),n=t.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,n),r.appendChild(n)),this.samples.forEach(n=>{(0,s.arrayEach)(n.strings,n=>{const o=n.col,i=this.hot.getCellMeta(e,o),s=this.hot.getCellRenderer(i),a=t.createElement("td");a.setAttribute("ghost-table",1),s(this.hot,a,e,o,this.hot.colToProp(o),n.value,i),r.appendChild(a)})}),r}appendColumnHeadersRow(){const{rootDocument:e}=this.hot,t=e.createDocumentFragment(),r=[];if(this.hot.hasRowHeaders()){const n=e.createElement("th");r.push([-1,n]),t.appendChild(n)}this.samples.forEach(n=>{(0,s.arrayEach)(n.strings,n=>{const o=n.col,i=e.createElement("th");r.push([o,i]),t.appendChild(i)})}),this.table.tHead.appendChild(t),(0,s.arrayEach)(r,e=>{const[t,r]=e;this.hot.view.appendColHeader(t,r)})}createCol(e){const{rootDocument:t}=this.hot,r=t.createDocumentFragment();return this.samples.forEach(n=>{(0,s.arrayEach)(n.strings,n=>{const o=n.row,i=this.hot.getCellMeta(o,e),s=this.hot.getCellRenderer(i),a=t.createElement("td"),l=t.createElement("tr");a.setAttribute("ghost-table",1),s(this.hot,a,o,e,this.hot.colToProp(e),n.value,i),l.appendChild(a),r.appendChild(l)})}),r}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 r=this.hot.rootDocument.createElement("col");let n=0;t>=0&&e>=0&&(n=this.hot.getCellMeta(t,e).colspan);let o=this.hot.getColWidth(e);if(n>1)for(let t=e+1;t<e+n;t++)o+=this.hot.getColWidth(t);return r.style.width=`${o}px`,r}createTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,r=t.createDocumentFragment(),n=t.createElement("table"),o=t.createElement("thead"),s=t.createElement("tbody"),a=t.createElement("colgroup"),l=t.createElement("tr"),h=t.createElement("th");return this.isVertical()&&n.appendChild(a),this.isHorizontal()&&(l.appendChild(h),o.appendChild(l),n.style.tableLayout="auto",n.style.width="auto"),n.appendChild(o),this.isVertical()&&s.appendChild(l),n.appendChild(s),(0,i.addClass)(n,e),r.appendChild(n),{fragment:r,table:n,tHead:o,tBody:s,colGroup:a,tr:l,th:h}}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,r=t.createDocumentFragment(),n=t.createElement("div"),o=`htGhostTable htAutoSize ${e.trim()}`;return(0,i.addClass)(n,o),r.appendChild(n),{fragment:r,container:n}}isVertical(){return!(!this.rows.length||this.columns.length)}isHorizontal(){return!(!this.columns.length||this.rows.length)}}},17587(e,t,r){"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:r=()=>0,onItemSelect:o=()=>{},onClear:i=()=>{}}=e;const s=new Set;let a=(0,n.clamp)(t,-1,h()-1);function l(e,t){const r=h()-1;if(e<0&&(e=r),e>r&&(e=0),s.has(e))return-1;s.add(e);return!1===o(e,!1)&&(e=l(1===t?++e:--e,t)),e}function h(){return Math.max(r(),0)}return{setCurrentPage:function(e){e>-1&&e<h()&&!1!==o(e,!0)&&(a=e)},setPageCursorAt:function(e){e>-1&&e<h()&&(a=e)},getCurrentPage:function(){return a},toFirstItem:function(){h()>0&&(s.clear(),a=l(0,1))},toLastItem:function(){h()>0&&(s.clear(),a=l(h()-1,-1))},toNextItem:function(){h()>0&&(s.clear(),a=l(++a,1))},toPreviousItem:function(){h()>0&&(s.clear(),a=l(--a,-1))},getSize:h,clear:function(){s.clear(),a=t,i()}}};var n=r(40499)},80547(e,t,r){"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,r=["<table>"];for(let o=0;o<t;o+=1){const i=e[o],s=i.length,a=[];0===o&&r.push("<tbody>");for(let e=0;e<s;e+=1){const t=i[e],r=(0,n.isEmpty)(t)?"":t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(e.length-1)} </span>`).replace(/\t/gi,"&#9;");a.push(`<td>${r}</td>`)}r.push("<tr>",...a,"</tr>"),o+1===t&&r.push("</tbody>")}return r.push("</table>"),r.join("")},t.htmlToGridSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const r={},n=t.createDocumentFragment(),s=t.createElement("div");n.appendChild(s);let a=e;if("string"==typeof a){const e=a.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(/^&nbsp;$/gm,"")}</td>`});s.insertAdjacentHTML("afterbegin",`${e}`),a=s.querySelector("table")}if(!a||!function(e){return"TABLE"===(e&&e.nodeName||"")}(a))return;const l=s.querySelector('meta[name$="enerator"]'),h=null!==a.querySelector("tbody th"),c=a.querySelector("tr"),u=c?Array.from(c.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=a.tFoot&&Array.from(a.tFoot.rows)||[],p=[];let g=!1,f=0,m=0;if(a.tHead){const e=Array.from(a.tHead.rows).filter(e=>{const t=null!==e.querySelector("td");return t&&p.push(e),!t});f=e.length,g=f>0,f>1?r.nestedHeaders=Array.from(e).reduce((e,t)=>{const r=Array.from(t.cells).reduce((e,t,r)=>{if(h&&0===r)return e;const{colSpan:n,innerHTML:o}=t,i=n>1?{label:o,colspan:n}:o;return e.push(i),e},[]);return e.push(r),e},[]):g&&(r.colHeaders=Array.from(e[0].children).reduce((e,t,r)=>(h&&0===r||e.push(t.innerHTML),e),[]))}p.length&&(r.fixedRowsTop=p.length);d.length&&(r.fixedRowsBottom=d.length);const C=[...p,...Array.from(a.tBodies).reduce((e,t)=>(e.push(...Array.from(t.rows)),e),[]),...d];m=C.length;const w=new Array(m);for(let e=0;e<m;e++)w[e]=new Array(u);const y=[],v=[];for(let e=0;e<m;e++){const t=C[e],r=Array.from(t.cells),n=r.length;for(let t=0;t<n;t++){const n=r[t],{nodeName:s,innerHTML:a,rowSpan:h,colSpan:c}=n,u=w[e].findIndex(e=>void 0===e);if("TD"===s){if(h>1||c>1){for(let t=e;t<e+h;t++)if(t<m)for(let e=u;e<u+c;e++)w[t][e]=null;const t=n.getAttribute("style");t&&t.includes("mso-ignore:colspan")||y.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=l&&/excel/gi.test(l.content)?a.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):a.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),w[e][u]=t.replace(i,e=>o[e])}else v.push(a)}}y.length&&(r.mergeCells=y);v.length&&(r.rowHeaders=v);w.length&&(r.data=w);return r},t.instanceToHTML=function(e){const t=e.hasColHeaders(),r=e.hasRowHeaders(),o=[t?-1:0,r?-1:0,e.countRows()-1,e.countCols()-1],i=e.getData(...o),s=i.length,a=s>0?i[0].length:0,l=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=r?1:0,d=t?1:0;for(let o=0;o<s;o+=1){const s=t&&0===o,l=[];for(let t=0;t<a;t+=1){const a=!s&&r&&0===t;let h="";if(s)h=`<th>${e.getColHeader(t-u)}</th>`;else if(a)h=`<th>${e.getRowHeader(o-d)}</th>`;else{const r=i[o][t],{hidden:s,rowspan:a,colspan:l}=e.getCellMeta(o-d,t-u);if(!s){const e=[];if(a&&e.push(`rowspan="${a}"`),l&&e.push(`colspan="${l}"`),(0,n.isEmpty)(r))h=`<td ${e.join(" ")}></td>`;else{const t=r.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");h=`<td ${e.join(" ")}>${t}</td>`}}}l.push(h)}const p=["<tr>",...l,"</tr>"].join("");s?h.splice(1,0,p):c.splice(-1,0,p)}return l.splice(1,0,h.join(""),c.join("")),l.join("")};var n=r(67787);const o={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},i=new RegExp(Object.keys(o).map(e=>`(${e})`).join("|"),"gi")},75593(e,t){"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===n},t.isRootInstance=function(e){return r.has(e)},t.registerAsRootInstance=function(e){r.set(e,!0)};const r=t.holder=new WeakMap,n=t.rootInstanceSymbol=Symbol("rootInstance")},52750(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=n(r(43685)),i=r(81185),s=r(15141),a=r(40499),l=r(67787);class h{static get SAMPLE_COUNT(){return 3}constructor(e){(0,o.default)(this,"samples",null),(0,o.default)(this,"dataFactory",null),(0,o.default)(this,"customSampleCount",null),(0,o.default)(this,"allowDuplicates",!1),(0,o.default)(this,"includeHidden",!1),this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:h.SAMPLE_COUNT}setSampleCount(e){this.customSampleCount=e}setAllowDuplicates(e){this.allowDuplicates=e}setIncludeHidden(e){this.includeHidden=e}generateRowSamples(e,t){return this.generateSamples("row",t,e)}generateColumnSamples(e,t){return this.generateSamples("col",t,e)}generateSamples(e,t,r){const n=new Map,{from:o,to:i}="number"==typeof r?{from:r,to:r}:r;return(0,a.rangeEach)(o,i,r=>{const o=this.generateSample(e,t,r);n.set(r,o)}),n}generateSample(e,t,r){"row"!==e&&"col"!==e&&(0,s.throwWithCause)("Unsupported sample type");const n=new Map,o="row"===e?"col":"row",h=[];return(0,a.rangeEach)(t.from,t.to,t=>{const s="row"===e?this.dataFactory(r,t,this):this.dataFactory(t,r,this);if(!1===s)return;const{value:a,bundleSeed:c}=s,u="string"==typeof c&&c.length>0;let d;d=u?c:(0,i.isObject)(a)?`${Object.keys(a).length}`:Array.isArray(a)?`${a.length}`:`${(0,l.stringify)(a).length}`,n.has(d)||n.set(d,{needed:this.getSampleCount(),strings:[]});const p=n.get(d);if(p.needed){(!(h.indexOf(a)>-1)||this.allowDuplicates||u)&&(p.strings.push({value:a,[o]:t}),h.push(a),p.needed-=1)}}),n}}t.default=h},65517(e,t){"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var n;return null==r||null===(n=r.get(e.guid))||void 0===n?void 0:n.get(t)},t.staticRegister=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";r.has(e)||r.set(e,new Map);const t=r.get(e);return{register:function(e,r){t.set(e,r)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[...t.keys()]},getValues:function(){return[...t.values()]},clear:function(){r.delete(e),t.clear()}}};const r=t.collection=new Map},66038(e,t,r){"use strict";var n=r(62682);t.__esModule=!0;var o=r(28065),i=n(r(95206));function s(e,t,r){a(e,t),t.set(e,r)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(c(e,t))}function h(e,t,r){return e.set(c(e,t),r),r}function c(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const u="handsontable-core-styles";var d=new WeakMap,p=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakMap,C=new WeakMap,w=new WeakMap,y=new WeakMap,v=new WeakSet;function E(){if(!l(d,this)||!l(m,this)||!l(m,this).head)return;const e=l(m,this).getElementById(u);if(e&&e instanceof HTMLStyleElement)return;const t=l(m,this).createElement("style");t.id=u,t.textContent=i.default,l(m,this).head.appendChild(t)}function S(){const e=this.getCSSVariableValue("line-height"),t=this.getCSSVariableValue("cell-vertical-padding"),r=Math.ceil(parseFloat(this.getStyleForTD("border-bottom-width")));return null===e||null===t||isNaN(r)?null:e+2*t+r}function b(){h(f,this,getComputedStyle(l(g,this)));const e=c(v,this,R).call(this,["box-sizing","border-bottom-width"]);l(w,this).td={...l(w,this).td,"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}function R(e){const t=l(m,this),r=l(g,this),n=t.createElement("table"),o=t.createElement("tbody"),i=t.createElement("tr"),s=t.createElement("tr"),a=t.createElement("td");s.appendChild(a),o.appendChild(i),o.appendChild(s),n.appendChild(o),r.appendChild(n);const h=getComputedStyle(a),c={};return e.forEach(e=>{c[e]=h.getPropertyValue(e)}),r.removeChild(n),c}function T(e){const t=Math.ceil(parseFloat(c(v,this,_).call(this,e)));return Number.isNaN(t)?null:t}function _(e){var t;const r=null===(t=l(f,this))||void 0===t?void 0:t.getPropertyValue(e);return""===r?null:r}function M(){h(w,this,{}),h(C,this,{})}t.StylesHandler=class{constructor(e){let{hot:t,rootElement:r,rootDocument:n,onThemeChange:o=()=>{},injectCoreCss:i=!0}=e;var l,u;a(l=this,u=v),u.add(l),s(this,d,void 0),s(this,p,void 0),s(this,g,void 0),s(this,f,void 0),s(this,m,void 0),s(this,C,{}),s(this,w,{}),s(this,y,void 0),h(d,this,t),h(g,this,r),h(m,this,n),h(y,this,o),i&&c(v,this,E).call(this)}getCSSVariableValue(e){var t;if(l(C,this)[`--ht-${e}`])return l(C,this)[`--ht-${e}`];const r=null!==(t=c(v,this,T).call(this,`--ht-${e}`))&&void 0!==t?t:c(v,this,_).call(this,`--ht-${e}`);return null!==r?(l(C,this)[`--ht-${e}`]=r,r):void 0}getStyleForTD(e){var t;return null===(t=l(w,this))||void 0===t||null===(t=t.td)||void 0===t?void 0:t[e]}getDefaultRowHeight(e){const t=c(v,this,S).call(this);return void 0!==e&&e===l(d,this).view.getFirstRenderedVisibleRow()?t+1:t}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){/ht-theme-.*/.test(e)?(c(v,this,M).call(this),e&&e!==l(p,this)&&h(p,this,e),l(y,this).call(this,l(p,this)),c(v,this,b).call(this)):(0,o.warn)(`${e} isn't a valid theme name. Please ensure it follows the format ht-theme-<theme-name>.`)}getThemeName(){return l(p,this)}clearCache(){c(v,this,M).call(this),c(v,this,b).call(this)}}},6389(e,t,r){"use strict";t.__esModule=!0,t.getValueGetterValue=function(e,t){const{instance:r,visualRow:o,visualCol:i,valueGetter:s}=t;if((0,n.isFunction)(s))return s.call(r,e,o,i,t);return e},t.getValueSetterValue=function(e,t){const{instance:r,visualRow:o,visualCol:i,valueSetter:s}=t;if((0,n.isFunction)(s))return s.call(r,e,o,i,t);return e};var n=r(11526)},35227(e,t,r){"use strict";t.__esModule=!0,t.autocompleteValidator=s;var n=r(81185),o=r(67787);const i=t.VALIDATOR_TYPE="autocomplete";function s(e,t){const r=e=>{return t=e,(0,n.isObject)(t)&&(0,o.isDefined)(t.key)&&(0,o.isDefined)(t.value)?r(e.key)&&r(e.value):null==e;var t};let i=e;r(i)&&(i=""),this.allowEmpty&&""===i?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(i,a(i,t)):a(i,t)(this.source):t(!0)}function a(e,t){const r=e;return function(e){let o=!1;for(let t=0,i=e.length;t<i;t++)if((0,n.isObjectEqual)(r,e[t])){o=!0;break}t(o)}}s.VALIDATOR_TYPE=i},21501(e,t,r){"use strict";t.__esModule=!0;var n=r(35227);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.autocompleteValidator=n.autocompleteValidator},235(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.correctFormat=c,t.dateValidator=h;var o=n(r(37539)),i=r(14284),s=r(75557),a=r(87971);const l=t.VALIDATOR_TYPE="date";function h(e,t){const r=(0,i.getEditorInstance)(s.EDITOR_TYPE,this.instance);let n=e,a=!0;null==n&&(n="");let l=(0,o.default)(n,this.dateFormat||r.defaultDateFormat,!0).isValid(),h=(0,o.default)(new Date(n)).isValid()||l;if(this.allowEmpty&&""===n&&(h=!0,l=!0),h||(a=!1),!h&&l&&(a=!0),h&&!l)if(!0===this.correctFormat){const e=c(n,this.dateFormat);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"dateValidator"),a=!0}else a=!1;t(a)}function c(e,t){const r=(0,o.default)((0,a.getNormalizedDate)(e)),n=(0,o.default)(e,t),i=e.search(/[A-Za-z]/g)>-1;let s;return s=r.isValid()&&r.format("x")===n.format("x")||!n.isValid()||i?r:n,s.format(t)}h.VALIDATOR_TYPE=l},70849(e,t,r){"use strict";t.__esModule=!0;var n=r(235);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.correctFormat=n.correctFormat,t.dateValidator=n.dateValidator},64587(e,t,r){"use strict";t.__esModule=!0,t.dropdownValidator=i;var n=r(35227);const o=t.VALIDATOR_TYPE="dropdown";function i(e,t){n.autocompleteValidator.apply(this,[e,t])}i.VALIDATOR_TYPE=o},56694(e,t,r){"use strict";t.__esModule=!0;var n=r(64587);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.dropdownValidator=n.dropdownValidator},51292(e,t,r){"use strict";t.__esModule=!0,t.registerAllValidators=function(){(0,u.registerValidator)(n.autocompleteValidator),(0,u.registerValidator)(i.dropdownValidator),(0,u.registerValidator)(o.dateValidator),(0,u.registerValidator)(s.intlDateValidator),(0,u.registerValidator)(a.intlTimeValidator),(0,u.registerValidator)(l.multiSelectValidator),(0,u.registerValidator)(h.numericValidator),(0,u.registerValidator)(c.timeValidator)};var n=r(21501);t.autocompleteValidator=n.autocompleteValidator,t.AUTOCOMPLETE_VALIDATOR=n.VALIDATOR_TYPE;var o=r(70849);t.dateValidator=o.dateValidator,t.DATE_VALIDATOR=o.VALIDATOR_TYPE;var i=r(56694);t.dropdownValidator=i.dropdownValidator,t.DROPDOWN_VALIDATOR=i.VALIDATOR_TYPE;var s=r(4652);t.intlDateValidator=s.intlDateValidator,t.INTL_DATE_VALIDATOR=s.VALIDATOR_TYPE;var a=r(67099);t.intlTimeValidator=a.intlTimeValidator,t.INTL_TIME_VALIDATOR=a.VALIDATOR_TYPE;var l=r(29844);t.multiSelectValidator=l.multiSelectValidator,t.MULTISELECT_VALIDATOR=l.VALIDATOR_TYPE;var h=r(62342);t.numericValidator=h.numericValidator,t.NUMERIC_VALIDATOR=h.VALIDATOR_TYPE;var c=r(16010);t.timeValidator=c.timeValidator,t.TIME_VALIDATOR=c.VALIDATOR_TYPE;var u=r(49269);t.registerValidator=u.registerValidator,t.getRegisteredValidatorNames=u.getRegisteredValidatorNames,t.getRegisteredValidators=u.getRegisteredValidators,t.getValidator=u.getValidator,t.hasValidator=u.hasValidator},4652(e,t,r){"use strict";t.__esModule=!0;var n=r(55347);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.SOURCE_DATA_WARNING_MESSAGE=n.SOURCE_DATA_WARNING_MESSAGE,t.intlDateValidator=n.intlDateValidator,t.sourceDataValidator=n.sourceDataValidator},55347(e,t,r){"use strict";t.__esModule=!0,t.intlDateValidator=s,t.sourceDataValidator=function(e,t){if(t.allowEmpty&&(0,o.isEmpty)(e))return!0;return(0,n.isValidISODate)(e)};var n=r(87971),o=r(67787);const i=t.VALIDATOR_TYPE="intl-date";t.SOURCE_DATA_WARNING_MESSAGE='Source data warning ([itemsCount]). Invalid value for "intl-date" cell type.\n\n[affectedCells]\n\nExpected a value compatible with the ISO 8601 date format ("YYYY-MM-DD").';function s(e,t){this.allowEmpty&&(0,o.isEmpty)(e)?t(!0):t((0,n.isValidISODate)(e))}s.VALIDATOR_TYPE=i},67099(e,t,r){"use strict";t.__esModule=!0;var n=r(48779);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.SOURCE_DATA_WARNING_MESSAGE=n.SOURCE_DATA_WARNING_MESSAGE,t.intlTimeValidator=n.intlTimeValidator,t.sourceDataValidator=n.sourceDataValidator},48779(e,t,r){"use strict";t.__esModule=!0,t.intlTimeValidator=s,t.sourceDataValidator=function(e,t){if(t.allowEmpty&&(0,o.isEmpty)(e))return!0;return(0,n.isValidTime)(e)};var n=r(87971),o=r(67787);const i=t.VALIDATOR_TYPE="intl-time";t.SOURCE_DATA_WARNING_MESSAGE='Source data warning ([itemsCount]). Invalid value for "intl-time" cell type.\n\n[affectedCells]\n\nExpected a value compatible with the 24-hour time format ("HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS").';function s(e,t){this.allowEmpty&&(0,o.isEmpty)(e)?t(!0):t((0,n.isValidTime)(e))}s.VALIDATOR_TYPE=i},29844(e,t,r){"use strict";t.__esModule=!0;var n=r(89491);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.multiSelectValidator=n.multiSelectValidator},89491(e,t,r){"use strict";t.__esModule=!0,t.multiSelectValidator=i;var n=r(81185);const o=t.VALIDATOR_TYPE="multiselect";function i(e,t){let r=e;null==r&&(r=""),this.allowEmpty&&""===r?t(!0):(this.allowEmpty||""!==r)&&Array.isArray(r)?Array.isArray(r)&&0===r.length?t(!0):this.source?"function"==typeof this.source?this.source(r,s(r,t)):s(r,t)(this.source):t(!0):t(!1)}function s(e,t){const r=e;return function(e){let o=!0;for(let t=0,i=r.length;t<i;t++){let i=!1;for(let o=0,s=e.length;o<s;o++){if((0,n.isKeyValueObject)(r[t])&&!(0,n.isKeyValueObject)(e[o])||!(0,n.isKeyValueObject)(r[t])&&(0,n.isKeyValueObject)(e[o])){i=!1;break}((0,n.isKeyValueObject)(r[t])&&(0,n.isKeyValueObject)(e[o])&&(0,n.isObjectEqual)(r[t],e[o])||"string"==typeof r[t]&&"string"==typeof e[o]&&r[t]===e[o])&&(i=!0)}if(!i){o=!1;break}}t(o)}}i.VALIDATOR_TYPE=o},62342(e,t,r){"use strict";t.__esModule=!0;var n=r(43551);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.numericValidator=n.numericValidator},43551(e,t,r){"use strict";t.__esModule=!0,t.numericValidator=i;var n=r(40499);const o=t.VALIDATOR_TYPE="numeric";function i(e,t){let r=e;null==r&&(r=""),this.allowEmpty&&""===r?t(!0):t(""!==r&&(0,n.isNumeric)(e))}i.VALIDATOR_TYPE=o},49269(e,t,r){"use strict";t.__esModule=!0,t.getValidator=function(e){if("function"==typeof e)return e;a(e)||(0,o.throwWithCause)(`No registered validator found under "${e}" name`);return s(e)},t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);i(e,t)};var n=r(65517),o=r(15141);const{register:i,getItem:s,hasItem:a,getNames:l,getValues:h}=(0,n.staticRegister)("validators");t.getRegisteredValidators=h,t.getRegisteredValidatorNames=l,t.hasValidator=a},16010(e,t,r){"use strict";t.__esModule=!0;var n=r(31471);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.timeValidator=n.timeValidator},31471(e,t,r){"use strict";var n=r(62682);t.__esModule=!0,t.timeValidator=a;var o=n(r(37539));const i=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],s=t.VALIDATOR_TYPE="time";function a(e,t){const r=this.timeFormat||"h:mm:ss a";let n=!0,s=e;null===s&&(s=""),s=/^\d{3,}$/.test(s)?parseInt(s,10):s;const a=/^\d{1,2}$/.test(s);a&&(s+=":00");const l=(0,o.default)(s,i,!0).isValid()?(0,o.default)(s):(0,o.default)(s,r);let h=l.isValid(),c=(0,o.default)(s,r,!0).isValid()&&!a;if(this.allowEmpty&&""===s&&(h=!0,c=!0),h||(n=!1),!h&&c&&(n=!0),h&&!c)if(!0===this.correctFormat){const e=l.format(r);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),n=!0}else n=!1;t(n)}a.VALIDATOR_TYPE=s},39250(e,t,r){"use strict";r.r(t),r.d(t,{Alternation:()=>gt,CstParser:()=>Mn,EMPTY_ALT:()=>Rn,EOF:()=>tt,EarlyExitException:()=>Br,EmbeddedActionsParser:()=>An,Flat:()=>lt,GAstVisitor:()=>vt,Lexer:()=>Ue,LexerDefinitionErrorType:()=>Fe,MismatchedTokenException:()=>Dr,NoViableAltException:()=>Hr,NonTerminal:()=>st,NotAllInputParsedException:()=>Fr,Option:()=>ht,Parser:()=>_n,ParserDefinitionErrorType:()=>En,Repetition:()=>dt,RepetitionMandatory:()=>ct,RepetitionMandatoryWithSeparator:()=>ut,RepetitionWithSeparator:()=>pt,Rule:()=>at,Terminal:()=>ft,VERSION:()=>n,assignOccurrenceIndices:()=>Ir,clearCache:()=>Vn,createSyntaxDiagramsCode:()=>In,createToken:()=>et,createTokenInstance:()=>rt,defaultGrammarResolverErrorProvider:()=>br,defaultGrammarValidatorErrorProvider:()=>Rr,defaultLexerErrorProvider:()=>Be,defaultParserErrorProvider:()=>Sr,generateParserFactory:()=>Fn,generateParserModule:()=>Bn,isRecognitionException:()=>Pr,resolveGrammar:()=>Mr,serializeGrammar:()=>mt,serializeProduction:()=>Ct,tokenLabel:()=>We,tokenMatcher:()=>nt,tokenName:()=>ze,validateGrammar:()=>Ar});var n="6.5.0";function o(e){return e&&0===e.length}function i(e){return null==e?[]:Object.keys(e)}function s(e){for(var t=[],r=Object.keys(e),n=0;n<r.length;n++)t.push(e[r[n]]);return t}function a(e,t){for(var r=[],n=0;n<e.length;n++)r.push(t.call(null,e[n],n));return r}function l(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];Array.isArray(n)?t=t.concat(l(n)):t.push(n)}return t}function h(e){return o(e)?void 0:e[0]}function c(e){var t=e&&e.length;return t?e[t-1]:void 0}function u(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)t.call(null,e[r],r);else{if(!N(e))throw Error("non exhaustive match");var n=i(e);for(r=0;r<n.length;r++){var o=n[r],s=e[o];t.call(null,s,o)}}}function d(e){return"string"==typeof e}function p(e){return void 0===e}function g(e){return e instanceof Function}function f(e,t){return void 0===t&&(t=1),e.slice(t,e.length)}function m(e,t){return void 0===t&&(t=1),e.slice(0,e.length-t)}function C(e,t){var r=[];if(Array.isArray(e))for(var n=0;n<e.length;n++){var o=e[n];t.call(null,o)&&r.push(o)}return r}function w(e,t){return C(e,function(e){return!t(e)})}function y(e,t){for(var r=Object.keys(e),n={},o=0;o<r.length;o++){var i=r[o],s=e[i];t(s)&&(n[i]=s)}return n}function v(e,t){return!!N(e)&&e.hasOwnProperty(t)}function E(e,t){return void 0!==R(e,function(e){return e===t})}function S(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r]);return t}function b(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}function R(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t.call(null,n))return n}}function T(e,t,r){for(var n=Array.isArray(e),o=n?e:s(e),a=n?[]:i(e),l=r,h=0;h<o.length;h++)l=t.call(null,l,o[h],n?h:a[h]);return l}function _(e){return w(e,function(e){return null==e})}function M(e,t){void 0===t&&(t=function(e){return e});var r=[];return T(e,function(e,n){var o=t(n);return E(r,o)?e:(r.push(o),e.concat(n))},[])}function A(e){return Array.isArray(e)}function I(e){return e instanceof RegExp}function N(e){return e instanceof Object}function O(e,t){for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0}function x(e,t){return w(e,function(e){return E(t,e)})}function k(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return!0;return!1}function L(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n++)for(var o=t[n],s=i(o),a=0;a<s.length;a++){var l=s[a];e[l]=o[l]}return e}function P(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n++){var o=t[n];if(!p(o))for(var s=i(o),a=0;a<s.length;a++){var l=s[a];v(e,l)||(e[l]=o[l])}}return e}function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P.apply(null,[{}].concat(e))}function H(e,t){var r={};return u(e,function(e){var n=t(e),o=r[n];o?o.push(e):r[n]=[e]}),r}function F(e,t){for(var r=b(e),n=i(t),o=0;o<n.length;o++){var s=n[o],a=t[s];r[s]=a}return r}function B(){}function V(e){return e}function U(e){console&&console.error&&console.error("Error: "+e)}function W(e){console&&console.warn&&console.warn("Warning: "+e)}function z(){return"function"==typeof Map}function Y(e){function t(){}t.prototype=e;var r=new t;function n(){return typeof r.bar}return n(),n(),e}function G(e){return e[e.length-1]}function j(e){var t=(new Date).getTime(),r=e();return{time:(new Date).getTime()-t,value:r}}var $=r(75713),K={},X=new $.RegExpParser;function q(e){var t=e.toString();if(K.hasOwnProperty(t))return K[t];var r=X.pattern(t);return K[t]=r,r}var Z,Q=(Z=function(e,t){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},Z(e,t)},function(e,t){function r(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),J="Complement Sets are not supported for first char optimization",ee='Unable to use "first char" lexer optimizations:\n';function te(e,t){void 0===t&&(t=!1);try{var r=q(e);return re(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===J)t&&W(ee+"\tUnable to optimize: < "+e.toString()+" >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var n="";t&&(n="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),U(ee+"\n\tFailed parsing: < "+e.toString()+" >\n\tUsing the regexp-to-ast library version: "+$.VERSION+"\n\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+n)}}return[]}function re(e,t,r){switch(e.type){case"Disjunction":for(var n=0;n<e.value.length;n++)re(e.value[n],t,r);break;case"Alternative":var o=e.value;for(n=0;n<o.length;n++){var i=o[n];switch(i.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var a=i;switch(a.type){case"Character":ne(a.value,t,r);break;case"Set":if(!0===a.complement)throw Error(J);u(a.value,function(e){if("number"==typeof e)ne(e,t,r);else{var n=e;if(!0===r)for(var o=n.from;o<=n.to;o++)ne(o,t,r);else{for(o=n.from;o<=n.to&&o<_e;o++)ne(o,t,r);if(n.to>=_e)for(var i=n.from>=_e?n.from:_e,s=n.to,a=Me(i),l=Me(s),h=a;h<=l;h++)t[h]=h}}});break;case"Group":re(a.value,t,r);break;default:throw Error("Non Exhaustive Match")}var l=void 0!==a.quantifier&&0===a.quantifier.atLeast;if("Group"===a.type&&!1===ie(a)||"Group"!==a.type&&!1===l)break}break;default:throw Error("non exhaustive match!")}return s(t)}function ne(e,t,r){var n=Me(e);t[n]=n,!0===r&&function(e,t){var r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){t[o=Me(n.charCodeAt(0))]=o}else{var o,i=r.toLowerCase();if(i!==r)t[o=Me(i.charCodeAt(0))]=o}}(e,t)}function oe(e,t){return R(e.value,function(e){if("number"==typeof e)return E(t,e);var r=e;return void 0!==R(t,function(e){return r.from<=e&&e<=r.to})})}function ie(e){return!(!e.quantifier||0!==e.quantifier.atLeast)||!!e.value&&(A(e.value)?O(e.value,ie):ie(e.value))}var se=function(e){function t(t){var r=e.call(this)||this;return r.targetCharCodes=t,r.found=!1,r}return Q(t,e),t.prototype.visitChildren=function(t){if(!0!==this.found){switch(t.type){case"Lookahead":return void this.visitLookahead(t);case"NegativeLookahead":return void this.visitNegativeLookahead(t)}e.prototype.visitChildren.call(this,t)}},t.prototype.visitCharacter=function(e){E(this.targetCharCodes,e.value)&&(this.found=!0)},t.prototype.visitSet=function(e){e.complement?void 0===oe(e,this.targetCharCodes)&&(this.found=!0):void 0!==oe(e,this.targetCharCodes)&&(this.found=!0)},t}($.BaseRegExpVisitor);function ae(e,t){if(t instanceof RegExp){var r=q(t),n=new se(e);return n.visit(r),n.found}return void 0!==R(t,function(t){return E(e,t.charCodeAt(0))})}var le=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),he="PATTERN",ce="defaultMode",ue="modes",de="boolean"==typeof new RegExp("(?:)").sticky;function pe(e,t){var r,n=(t=D(t,{useSticky:de,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(e,t){return t()}})).tracer;n("initCharCodeToOptimizedIndexMap",function(){!function(){if(o(Ae)){Ae=new Array(65536);for(var e=0;e<65536;e++)Ae[e]=e>255?255+~~(e/255):e}}()}),n("Reject Lexer.NA",function(){r=w(e,function(e){return e[he]===Ue.NA})});var i,s,l,h,c,f,m,C,y,S,b,R=!1;n("Transform Patterns",function(){R=!1,i=a(r,function(e){var r=e[he];if(I(r)){var n=r.source;return 1===n.length&&"^"!==n&&"$"!==n&&"."!==n?n:2!==n.length||"\\"!==n[0]||E(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],n[1])?t.useSticky?we(r):Ce(r):n[1]}if(g(r))return R=!0,{exec:r};if(v(r,"exec"))return R=!0,r;if("string"==typeof r){if(1===r.length)return r;var o=r.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),i=new RegExp(o);return t.useSticky?we(i):Ce(i)}throw Error("non exhaustive match")})}),n("misc mapping",function(){s=a(r,function(e){return e.tokenTypeIdx}),l=a(r,function(e){var t=e.GROUP;if(t!==Ue.SKIPPED){if(d(t))return t;if(p(t))return!1;throw Error("non exhaustive match")}}),h=a(r,function(e){var t=e.LONGER_ALT;if(t)return function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1}(r,t)}),c=a(r,function(e){return e.PUSH_MODE}),f=a(r,function(e){return v(e,"POP_MODE")})}),n("Line Terminator Handling",function(){var e=Re(t.lineTerminatorCharacters);m=a(r,function(e){return!1}),"onlyOffset"!==t.positionTracking&&(m=a(r,function(t){return v(t,"LINE_BREAKS")?t.LINE_BREAKS:!1===be(t,e)?ae(e,t.PATTERN):void 0}))}),n("Misc Mapping #2",function(){C=a(r,ve),y=a(i,Ee),S=T(r,function(e,t){var r=t.GROUP;return d(r)&&r!==Ue.SKIPPED&&(e[r]=[]),e},{}),b=a(i,function(e,t){return{pattern:i[t],longerAlt:h[t],canLineTerminator:m[t],isCustom:C[t],short:y[t],group:l[t],push:c[t],pop:f[t],tokenTypeIdx:s[t],tokenType:r[t]}})});var _=!0,M=[];return t.safeMode||n("First Char Optimization",function(){M=T(r,function(e,r,n){if("string"==typeof r.PATTERN){var i=Me(r.PATTERN.charCodeAt(0));Te(e,i,b[n])}else if(A(r.START_CHARS_HINT)){var s;u(r.START_CHARS_HINT,function(t){var r=Me("string"==typeof t?t.charCodeAt(0):t);s!==r&&(s=r,Te(e,r,b[n]))})}else if(I(r.PATTERN))if(r.PATTERN.unicode)_=!1,t.ensureOptimizations&&U(ee+"\tUnable to analyze < "+r.PATTERN.toString()+" > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var a=te(r.PATTERN,t.ensureOptimizations);o(a)&&(_=!1),u(a,function(t){Te(e,t,b[n])})}else t.ensureOptimizations&&U(ee+"\tTokenType: <"+r.name+"> is using a custom token pattern without providing <start_chars_hint> parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),_=!1;return e},[])}),n("ArrayPacking",function(){M=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(void 0!==n?n:void 0)}return t}(M)}),{emptyGroups:S,patternIdxToConfig:b,charCodeToPatternIdxToConfig:M,hasCustom:R,canBeOptimized:_}}function ge(e,t){var r=[],n=function(e){var t=C(e,function(e){return!v(e,he)}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:Fe.MISSING_PATTERN,tokenTypes:[e]}}),n=x(e,t);return{errors:r,valid:n}}(e);r=r.concat(n.errors);var o=function(e){var t=C(e,function(e){var t=e[he];return!(I(t)||g(t)||v(t,"exec")||d(t))}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Fe.INVALID_PATTERN,tokenTypes:[e]}}),n=x(e,t);return{errors:r,valid:n}}(n.valid),i=o.valid;return r=(r=r.concat(o.errors)).concat(function(e){var t=[],r=C(e,function(e){return I(e[he])});return t=t.concat(function(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return le(t,e),t.prototype.visitEndAnchor=function(e){this.found=!0},t}($.BaseRegExpVisitor),r=C(e,function(e){var r=e[he];try{var n=q(r),o=new t;return o.visit(n),o.found}catch(e){return fe.test(r.source)}}),n=a(r,function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:Fe.EOI_ANCHOR_FOUND,tokenTypes:[e]}});return n}(r)),t=t.concat(function(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return le(t,e),t.prototype.visitStartAnchor=function(e){this.found=!0},t}($.BaseRegExpVisitor),r=C(e,function(e){var r=e[he];try{var n=q(r),o=new t;return o.visit(n),o.found}catch(e){return me.test(r.source)}}),n=a(r,function(e){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:Fe.SOI_ANCHOR_FOUND,tokenTypes:[e]}});return n}(r)),t=t.concat(function(e){var t=C(e,function(e){var t=e[he];return t instanceof RegExp&&(t.multiline||t.global)}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Fe.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}});return r}(r)),t=t.concat(function(e){var t=[],r=a(e,function(r){return T(e,function(e,n){return r.PATTERN.source!==n.PATTERN.source||E(t,n)||n.PATTERN===Ue.NA||(t.push(n),e.push(n)),e},[])}),n=a(C(r=_(r),function(e){return e.length>1}),function(e){var t=a(e,function(e){return e.name});return{message:"The same RegExp pattern ->"+h(e).PATTERN+"<-has been used in all of the following Token Types: "+t.join(", ")+" <-",type:Fe.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}});return n}(r)),t=t.concat(function(e){var t=C(e,function(e){return e[he].test("")}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:Fe.EMPTY_MATCH_PATTERN,tokenTypes:[e]}});return r}(r)),t}(i)),r=r.concat(function(e){var t=C(e,function(e){if(!v(e,"GROUP"))return!1;var t=e.GROUP;return t!==Ue.SKIPPED&&t!==Ue.NA&&!d(t)}),r=a(t,function(e){return{message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Fe.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}});return r}(i)),r=r.concat(function(e,t){var r=C(e,function(e){return void 0!==e.PUSH_MODE&&!E(t,e.PUSH_MODE)}),n=a(r,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+e.PUSH_MODE+"<-which does not exist",type:Fe.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}});return n}(i,t)),r=r.concat(function(e){var t=[],r=T(e,function(e,t,r){var n,o=t.PATTERN;return o===Ue.NA||(d(o)?e.push({str:o,idx:r,tokenType:t}):I(o)&&(n=o,void 0===R([".","\\","[","]","|","^","$","(",")","?","*","+","{"],function(e){return-1!==n.source.indexOf(e)}))&&e.push({str:o.source,idx:r,tokenType:t})),e},[]);return u(e,function(e,n){u(r,function(r){var o=r.str,i=r.idx,s=r.tokenType;if(n<i&&function(e,t){if(I(t)){var r=t.exec(e);return null!==r&&0===r.index}if(g(t))return t(e,0,[],{});if(v(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}(o,e.PATTERN)){var a="Token: ->"+s.name+"<- can never be matched.\nBecause it appears AFTER the Token Type ->"+e.name+"<-in the lexer's definition.\nSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE";t.push({message:a,type:Fe.UNREACHABLE_PATTERN,tokenTypes:[e,s]})}})}),t}(i)),r}var fe=/[^\\][\$]/;var me=/[^\\[][\^]|^\^/;function Ce(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function we(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function ye(e,t,r){var n=[],o=!1,s=w(_(l(function(e,t){for(var r=[],n=i(e),o=0;o<n.length;o++){var s=n[o];r.push(t.call(null,e[s],s))}return r}(e.modes,function(e){return e}))),function(e){return e[he]===Ue.NA}),a=Re(r);return t&&u(s,function(e){var t=be(e,a);if(!1!==t){var r=function(e,t){if(t.issue===Fe.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <"+e.name+"> Token Type\n\t Root cause: "+t.errMsg+".\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===Fe.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <"+e.name+"> Token Type\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}(e,t),i={message:r,type:t.issue,tokenType:e};n.push(i)}else v(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(o=!0):ae(a,e.PATTERN)&&(o=!0)}),t&&!o&&n.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:Fe.NO_LINE_BREAKS_FLAGS}),n}function ve(e){var t=e.PATTERN;if(I(t))return!1;if(g(t))return!0;if(v(t,"exec"))return!0;if(d(t))return!1;throw Error("non exhaustive match")}function Ee(e){return!(!d(e)||1!==e.length)&&e.charCodeAt(0)}var Se={test:function(e){for(var t=e.length,r=this.lastIndex;r<t;r++){var n=e.charCodeAt(r);if(10===n)return this.lastIndex=r+1,!0;if(13===n)return 10===e.charCodeAt(r+1)?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},lastIndex:0};function be(e,t){if(v(e,"LINE_BREAKS"))return!1;if(I(e.PATTERN)){try{ae(t,e.PATTERN)}catch(e){return{issue:Fe.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(d(e.PATTERN))return!1;if(ve(e))return{issue:Fe.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function Re(e){return a(e,function(e){return d(e)&&e.length>0?e.charCodeAt(0):e})}function Te(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}var _e=256;function Me(e){return e<_e?e:Ae[e]}var Ae=[];function Ie(e,t){var r=e.tokenTypeIdx;return r===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[r]}function Ne(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}var Oe=1,xe={};function ke(e){var t=function(e){var t=S(e),r=e,n=!0;for(;n;){var i=x(r=_(l(a(r,function(e){return e.CATEGORIES}))),t);t=t.concat(i),o(i)?n=!1:r=i}return t}(e);!function(e){u(e,function(e){Pe(e)||(xe[Oe]=e,e.tokenTypeIdx=Oe++),De(e)&&!A(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),De(e)||(e.CATEGORIES=[]),v(e,"categoryMatches")||(e.categoryMatches=[]),function(e){return v(e,"categoryMatchesMap")}(e)||(e.categoryMatchesMap={})})}(t),function(e){u(e,function(e){Le([],e)})}(t),function(e){u(e,function(e){e.categoryMatches=[],u(e.categoryMatchesMap,function(t,r){e.categoryMatches.push(xe[r].tokenTypeIdx)})})}(t),u(t,function(e){e.isParent=e.categoryMatches.length>0})}function Le(e,t){u(e,function(e){t.categoryMatchesMap[e.tokenTypeIdx]=!0}),u(t.CATEGORIES,function(r){var n=e.concat(t);E(n,r)||Le(n,r)})}function Pe(e){return v(e,"tokenTypeIdx")}function De(e){return v(e,"CATEGORIES")}function He(e){return v(e,"tokenTypeIdx")}var Fe,Be={buildUnableToPopLexerModeMessage:function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(e,t,r,n,o){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+", skipped "+r+" characters."}};!function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"}(Fe||(Fe={}));var Ve={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Be,traceInitPerf:!1,skipValidations:!1};Object.freeze(Ve);var Ue=function(){function e(e,t){var r=this;if(void 0===t&&(t=Ve),this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=F(Ve,t);var n=this.config.traceInitPerf;!0===n?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof n&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var n,s=!0;r.TRACE_INIT("Lexer Config handling",function(){if(r.config.lineTerminatorsPattern===Ve.lineTerminatorsPattern)r.config.lineTerminatorsPattern=Se;else if(r.config.lineTerminatorCharacters===Ve.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');r.trackStartLines=/full|onlyStart/i.test(r.config.positionTracking),r.trackEndLines=/full/i.test(r.config.positionTracking),A(e)?((n={modes:{}}).modes[ce]=S(e),n[ce]=ce):(s=!1,n=b(e))}),!1===r.config.skipValidations&&(r.TRACE_INIT("performRuntimeChecks",function(){r.lexerDefinitionErrors=r.lexerDefinitionErrors.concat(function(e){var t=[];return v(e,ce)||t.push({message:"A MultiMode Lexer cannot be initialized without a <"+ce+"> property in its definition\n",type:Fe.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),v(e,ue)||t.push({message:"A MultiMode Lexer cannot be initialized without a <modes> property in its definition\n",type:Fe.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),v(e,ue)&&v(e,ce)&&!v(e.modes,e.defaultMode)&&t.push({message:"A MultiMode Lexer cannot be initialized with a "+ce+": <"+e.defaultMode+">which does not exist\n",type:Fe.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),v(e,ue)&&u(e.modes,function(e,r){u(e,function(e,n){p(e)&&t.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:<"+r+"> at index: <"+n+">\n",type:Fe.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),t}(n,r.trackStartLines,r.config.lineTerminatorCharacters))}),r.TRACE_INIT("performWarningRuntimeChecks",function(){r.lexerDefinitionWarning=r.lexerDefinitionWarning.concat(ye(n,r.trackStartLines,r.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},u(n.modes,function(e,t){n.modes[t]=w(e,function(e){return p(e)})});var l=i(n.modes);if(u(n.modes,function(e,n){r.TRACE_INIT("Mode: <"+n+"> processing",function(){var i;(r.modes.push(n),!1===r.config.skipValidations&&r.TRACE_INIT("validatePatterns",function(){r.lexerDefinitionErrors=r.lexerDefinitionErrors.concat(ge(e,l))}),o(r.lexerDefinitionErrors))&&(ke(e),r.TRACE_INIT("analyzeTokenTypes",function(){i=pe(e,{lineTerminatorCharacters:r.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:r.TRACE_INIT.bind(r)})}),r.patternIdxToConfig[n]=i.patternIdxToConfig,r.charCodeToPatternIdxToConfig[n]=i.charCodeToPatternIdxToConfig,r.emptyGroups=F(r.emptyGroups,i.emptyGroups),r.hasCustom=i.hasCustom||r.hasCustom,r.canModeBeOptimized[n]=i.canBeOptimized)})}),r.defaultMode=n.defaultMode,!o(r.lexerDefinitionErrors)&&!r.config.deferDefinitionErrorsHandling){var h=a(r.lexerDefinitionErrors,function(e){return e.message}).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+h)}u(r.lexerDefinitionWarning,function(e){W(e.message)}),r.TRACE_INIT("Choosing sub-methods implementations",function(){if(de?(r.chopInput=V,r.match=r.matchWithTest):(r.updateLastIndex=B,r.match=r.matchWithExec),s&&(r.handleModes=B),!1===r.trackStartLines&&(r.computeNewColumn=V),!1===r.trackEndLines&&(r.updateTokenEndLineColumnLocation=B),/full/i.test(r.config.positionTracking))r.createTokenInstance=r.createFullToken;else if(/onlyStart/i.test(r.config.positionTracking))r.createTokenInstance=r.createStartOnlyToken;else{if(!/onlyOffset/i.test(r.config.positionTracking))throw Error('Invalid <positionTracking> config option: "'+r.config.positionTracking+'"');r.createTokenInstance=r.createOffsetOnlyToken}r.hasCustom?(r.addToken=r.addTokenUsingPush,r.handlePayload=r.handlePayloadWithCustom):(r.addToken=r.addTokenUsingMemberAccess,r.handlePayload=r.handlePayloadNoCustom)}),r.TRACE_INIT("Failed Optimization Warnings",function(){var e=T(r.canModeBeOptimized,function(e,t,r){return!1===t&&e.push(r),e},[]);if(t.ensureOptimizations&&!o(e))throw Error("Lexer Modes: < "+e.join(", ")+' > cannot be optimized.\n\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.')}),r.TRACE_INIT("clearRegExpParserCache",function(){K={}}),r.TRACE_INIT("toFastProperties",function(){Y(r)})})}return e.prototype.tokenize=function(e,t){if(void 0===t&&(t=this.defaultMode),!o(this.lexerDefinitionErrors)){var r=a(this.lexerDefinitionErrors,function(e){return e.message}).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+r)}return this.tokenizeInternal(e,t)},e.prototype.tokenizeInternal=function(e,t){var r,n,o,s,a,l,h,d,p,g,f,m,C,w,y,v,E=this,S=e,b=S.length,R=0,T=0,_=this.hasCustom?0:Math.floor(e.length/10),M=new Array(_),I=[],N=this.trackStartLines?1:void 0,O=this.trackStartLines?1:void 0,x=(y=this.emptyGroups,v={},u(i(y),function(e){if(!A(y[e]))throw Error("non exhaustive match");v[e]=[]}),v),k=this.trackStartLines,L=this.config.lineTerminatorsPattern,P=0,D=[],H=[],F=[],B=[];Object.freeze(B);var V=void 0;function U(){return D}function W(e){var t=Me(e),r=H[t];return void 0===r?B:r}var z,Y=function(e){if(1===F.length&&void 0===e.tokenType.PUSH_MODE){var t=E.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);I.push({offset:e.startOffset,line:void 0!==e.startLine?e.startLine:void 0,column:void 0!==e.startColumn?e.startColumn:void 0,length:e.image.length,message:t})}else{F.pop();var r=c(F);D=E.patternIdxToConfig[r],H=E.charCodeToPatternIdxToConfig[r],P=D.length;var n=E.canModeBeOptimized[r]&&!1===E.config.safeMode;V=H&&n?W:U}};function G(e){F.push(e),H=this.charCodeToPatternIdxToConfig[e],D=this.patternIdxToConfig[e],P=D.length,P=D.length;var t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;V=H&&t?W:U}for(G.call(this,t);R<b;){a=null;var j=S.charCodeAt(R),$=V(j),K=$.length;for(r=0;r<K;r++){var X=(z=$[r]).pattern;if(l=null,!1!==(ie=z.short)?j===ie&&(a=X):!0===z.isCustom?null!==(w=X.exec(S,R,M,x))?(a=w[0],void 0!==w.payload&&(l=w.payload)):a=null:(this.updateLastIndex(X,R),a=this.match(X,e,R)),null!==a){if(void 0!==(s=z.longerAlt)){var q=D[s],Z=q.pattern;h=null,!0===q.isCustom?null!==(w=Z.exec(S,R,M,x))?(o=w[0],void 0!==w.payload&&(h=w.payload)):o=null:(this.updateLastIndex(Z,R),o=this.match(Z,e,R)),o&&o.length>a.length&&(a=o,l=h,z=q)}break}}if(null!==a){if(d=a.length,void 0!==(p=z.group)&&(g=z.tokenTypeIdx,f=this.createTokenInstance(a,R,g,z.tokenType,N,O,d),this.handlePayload(f,l),!1===p?T=this.addToken(M,T,f):x[p].push(f)),e=this.chopInput(e,d),R+=d,O=this.computeNewColumn(O,d),!0===k&&!0===z.canLineTerminator){var Q=0,J=void 0,ee=void 0;L.lastIndex=0;do{!0===(J=L.test(a))&&(ee=L.lastIndex-1,Q++)}while(!0===J);0!==Q&&(N+=Q,O=d-ee,this.updateTokenEndLineColumnLocation(f,p,ee,Q,N,O,d))}this.handleModes(z,Y,G,f)}else{for(var te=R,re=N,ne=O,oe=!1;!oe&&R<b;)for(S.charCodeAt(R),e=this.chopInput(e,1),R++,n=0;n<P;n++){var ie,se=D[n];X=se.pattern;if(!1!==(ie=se.short)?S.charCodeAt(R)===ie&&(oe=!0):!0===se.isCustom?oe=null!==X.exec(S,R,M,x):(this.updateLastIndex(X,R),oe=null!==X.exec(e)),!0===oe)break}m=R-te,C=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(S,te,m,re,ne),I.push({offset:te,line:re,column:ne,length:m,message:C})}}return this.hasCustom||(M.length=T),{tokens:M,groups:x,errors:I}},e.prototype.handleModes=function(e,t,r,n){if(!0===e.pop){var o=e.push;t(n),void 0!==o&&r.call(this,o)}else void 0!==e.push&&r.call(this,e.push)},e.prototype.chopInput=function(e,t){return e.substring(t)},e.prototype.updateLastIndex=function(e,t){e.lastIndex=t},e.prototype.updateTokenEndLineColumnLocation=function(e,t,r,n,o,i,s){var a,l;void 0!==t&&(l=(a=r===s-1)?-1:0,1===n&&!0===a||(e.endLine=o+l,e.endColumn=i-1-l))},e.prototype.computeNewColumn=function(e,t){return e+t},e.prototype.createTokenInstance=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return null},e.prototype.createOffsetOnlyToken=function(e,t,r,n){return{image:e,startOffset:t,tokenTypeIdx:r,tokenType:n}},e.prototype.createStartOnlyToken=function(e,t,r,n,o,i){return{image:e,startOffset:t,startLine:o,startColumn:i,tokenTypeIdx:r,tokenType:n}},e.prototype.createFullToken=function(e,t,r,n,o,i,s){return{image:e,startOffset:t,endOffset:t+s-1,startLine:o,endLine:o,startColumn:i,endColumn:i+s-1,tokenTypeIdx:r,tokenType:n}},e.prototype.addToken=function(e,t,r){return 666},e.prototype.addTokenUsingPush=function(e,t,r){return e.push(r),t},e.prototype.addTokenUsingMemberAccess=function(e,t,r){return e[t]=r,++t},e.prototype.handlePayload=function(e,t){},e.prototype.handlePayloadNoCustom=function(e,t){},e.prototype.handlePayloadWithCustom=function(e,t){null!==t&&(e.payload=t)},e.prototype.match=function(e,t,r){return null},e.prototype.matchWithTest=function(e,t,r){return!0===e.test(t)?t.substring(r,e.lastIndex):null},e.prototype.matchWithExec=function(e,t){var r=e.exec(t);return null!==r?r[0]:r},e.prototype.TRACE_INIT=function(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;var r=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+"--\x3e <"+e+">");var n=j(t),o=n.time,i=n.value,s=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(r+"<-- <"+e+"> time: "+o+"ms"),this.traceInitIndent--,i}return t()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}();function We(e){return Ye(e)?e.LABEL:e.name}function ze(e){return e.name}function Ye(e){return d(e.LABEL)&&""!==e.LABEL}var Ge="parent",je="categories",$e="label",Ke="group",Xe="push_mode",qe="pop_mode",Ze="longer_alt",Qe="line_breaks",Je="start_chars_hint";function et(e){return function(e){var t=e.pattern,r={};r.name=e.name,p(t)||(r.PATTERN=t);if(v(e,Ge))throw"The parent property is no longer supported.\nSee: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.";v(e,je)&&(r.CATEGORIES=e[je]);ke([r]),v(e,$e)&&(r.LABEL=e[$e]);v(e,Ke)&&(r.GROUP=e[Ke]);v(e,qe)&&(r.POP_MODE=e[qe]);v(e,Xe)&&(r.PUSH_MODE=e[Xe]);v(e,Ze)&&(r.LONGER_ALT=e[Ze]);v(e,Qe)&&(r.LINE_BREAKS=e[Qe]);v(e,Je)&&(r.START_CHARS_HINT=e[Je]);return r}(e)}var tt=et({name:"EOF",pattern:Ue.NA});function rt(e,t,r,n,o,i,s,a){return{image:t,startOffset:r,endOffset:n,startLine:o,endLine:i,startColumn:s,endColumn:a,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function nt(e,t){return Ie(e,t)}ke([tt]);var ot=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),it=function(){function e(e){this.definition=e}return e.prototype.accept=function(e){e.visit(this),u(this.definition,function(t){t.accept(e)})},e}(),st=function(e){function t(t){var r=e.call(this,[])||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),Object.defineProperty(t.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.accept=function(e){e.visit(this)},t}(it),at=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.orgText="",L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),lt=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.ignoreAmbiguities=!1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),ht=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),ct=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),ut=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),dt=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),pt=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),gt=function(e){function t(t){var r=e.call(this,t.definition)||this;return r.idx=1,r.ignoreAmbiguities=!1,r.hasPredicates=!1,L(r,y(t,function(e){return void 0!==e})),r}return ot(t,e),t}(it),ft=function(){function e(e){this.idx=1,L(this,y(e,function(e){return void 0!==e}))}return e.prototype.accept=function(e){e.visit(this)},e}();function mt(e){return a(e,Ct)}function Ct(e){function t(e){return a(e,Ct)}if(e instanceof st)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof lt)return{type:"Flat",definition:t(e.definition)};if(e instanceof ht)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof ct)return{type:"RepetitionMandatory",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof ut)return{type:"RepetitionMandatoryWithSeparator",name:e.name,idx:e.idx,separator:Ct(new ft({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof pt)return{type:"RepetitionWithSeparator",name:e.name,idx:e.idx,separator:Ct(new ft({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof dt)return{type:"Repetition",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof gt)return{type:"Alternation",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof ft){var r={type:"Terminal",name:e.terminalType.name,label:We(e.terminalType),idx:e.idx},n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=I(n)?n.source:n),r}if(e instanceof at)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}var wt=function(){function e(){}return e.prototype.walk=function(e,t){var r=this;void 0===t&&(t=[]),u(e.definition,function(n,o){var i=f(e.definition,o+1);if(n instanceof st)r.walkProdRef(n,i,t);else if(n instanceof ft)r.walkTerminal(n,i,t);else if(n instanceof lt)r.walkFlat(n,i,t);else if(n instanceof ht)r.walkOption(n,i,t);else if(n instanceof ct)r.walkAtLeastOne(n,i,t);else if(n instanceof ut)r.walkAtLeastOneSep(n,i,t);else if(n instanceof pt)r.walkManySep(n,i,t);else if(n instanceof dt)r.walkMany(n,i,t);else{if(!(n instanceof gt))throw Error("non exhaustive match");r.walkOr(n,i,t)}})},e.prototype.walkTerminal=function(e,t,r){},e.prototype.walkProdRef=function(e,t,r){},e.prototype.walkFlat=function(e,t,r){var n=t.concat(r);this.walk(e,n)},e.prototype.walkOption=function(e,t,r){var n=t.concat(r);this.walk(e,n)},e.prototype.walkAtLeastOne=function(e,t,r){var n=[new ht({definition:e.definition})].concat(t,r);this.walk(e,n)},e.prototype.walkAtLeastOneSep=function(e,t,r){var n=yt(e,t,r);this.walk(e,n)},e.prototype.walkMany=function(e,t,r){var n=[new ht({definition:e.definition})].concat(t,r);this.walk(e,n)},e.prototype.walkManySep=function(e,t,r){var n=yt(e,t,r);this.walk(e,n)},e.prototype.walkOr=function(e,t,r){var n=this,o=t.concat(r);u(e.definition,function(e){var t=new lt({definition:[e]});n.walk(t,o)})},e}();function yt(e,t,r){return[new ht({definition:[new ft({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}var vt=function(){function e(){}return e.prototype.visit=function(e){var t=e;switch(t.constructor){case st:return this.visitNonTerminal(t);case lt:return this.visitFlat(t);case ht:return this.visitOption(t);case ct:return this.visitRepetitionMandatory(t);case ut:return this.visitRepetitionMandatoryWithSeparator(t);case pt:return this.visitRepetitionWithSeparator(t);case dt:return this.visitRepetition(t);case gt:return this.visitAlternation(t);case ft:return this.visitTerminal(t);case at:return this.visitRule(t);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(e){},e.prototype.visitFlat=function(e){},e.prototype.visitOption=function(e){},e.prototype.visitRepetition=function(e){},e.prototype.visitRepetitionMandatory=function(e){},e.prototype.visitRepetitionMandatoryWithSeparator=function(e){},e.prototype.visitRepetitionWithSeparator=function(e){},e.prototype.visitAlternation=function(e){},e.prototype.visitTerminal=function(e){},e.prototype.visitRule=function(e){},e}(),Et=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function St(e,t){return void 0===t&&(t=[]),!!(e instanceof ht||e instanceof dt||e instanceof pt)||(e instanceof gt?k(e.definition,function(e){return St(e,t)}):!(e instanceof st&&E(t,e))&&(e instanceof it&&(e instanceof st&&t.push(e),O(e.definition,function(e){return St(e,t)}))))}function bt(e){if(e instanceof st)return"SUBRULE";if(e instanceof ht)return"OPTION";if(e instanceof gt)return"OR";if(e instanceof ct)return"AT_LEAST_ONE";if(e instanceof ut)return"AT_LEAST_ONE_SEP";if(e instanceof pt)return"MANY_SEP";if(e instanceof dt)return"MANY";if(e instanceof ft)return"CONSUME";throw Error("non exhaustive match")}var Rt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.separator="-",t.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},t}return Et(t,e),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(e){var t=e.terminalType.name+this.separator+"Terminal";v(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitNonTerminal=function(e){var t=e.nonTerminalName+this.separator+"Terminal";v(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitOption=function(e){this.dslMethods.option.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.dslMethods.repetitionWithSeparator.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.dslMethods.repetitionMandatory.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)},t.prototype.visitRepetition=function(e){this.dslMethods.repetition.push(e)},t.prototype.visitAlternation=function(e){this.dslMethods.alternation.push(e)},t}(vt),Tt=new Rt;function _t(e){if(e instanceof st)return _t(e.referencedRule);if(e instanceof ft)return[e.terminalType];if(function(e){return e instanceof lt||e instanceof ht||e instanceof dt||e instanceof ct||e instanceof ut||e instanceof pt||e instanceof ft||e instanceof at}(e))return function(e){var t,r=[],n=e.definition,o=0,i=n.length>o,s=!0;for(;i&&s;)s=St(t=n[o]),r=r.concat(_t(t)),o+=1,i=n.length>o;return M(r)}(e);if(function(e){return e instanceof gt}(e))return function(e){var t=a(e.definition,function(e){return _t(e)});return M(l(t))}(e);throw Error("non exhaustive match")}var Mt="_~IN~_",At=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),It=function(e){function t(t){var r=e.call(this)||this;return r.topProd=t,r.follows={},r}return At(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(e,t,r){},t.prototype.walkProdRef=function(e,t,r){var n,o,i=(n=e.referencedRule,o=e.idx,n.name+o+Mt+this.topProd.name),s=t.concat(r),a=_t(new lt({definition:s}));this.follows[i]=a},t}(wt);var Nt=256,Ot=512,xt=768,kt=1024,Lt=1280,Pt=1536;function Dt(e,t,r){return r|t|e}function Ht(e,t,r,n){var o=n+1<<24;return Dt(e,t,r)|o}var Ft=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function Bt(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function Vt(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function Ut(e,t,r){void 0===e.children[t]?e.children[t]=[r]:e.children[t].push(r)}var Wt=function(e){function t(t){var r=e.call(this)||this;return r.result=[],r.ruleIdx=t,r}return Ft(t,e),t.prototype.collectNamedDSLMethod=function(e,t,r){if(!p(e.name)){var n=void 0;if(e instanceof ht||e instanceof dt||e instanceof ct||e instanceof gt)n=new t({definition:e.definition,idx:e.idx});else{if(!(e instanceof ut||e instanceof pt))throw Error("non exhaustive match");n=new t({definition:e.definition,idx:e.idx,separator:e.separator})}var o=[n],i=Dt(this.ruleIdx,r,e.idx);this.result.push({def:o,key:i,name:e.name,orgProd:e})}},t.prototype.visitOption=function(e){this.collectNamedDSLMethod(e,ht,Ot)},t.prototype.visitRepetition=function(e){this.collectNamedDSLMethod(e,dt,xt)},t.prototype.visitRepetitionMandatory=function(e){this.collectNamedDSLMethod(e,ct,kt)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.collectNamedDSLMethod(e,ut,Pt)},t.prototype.visitRepetitionWithSeparator=function(e){this.collectNamedDSLMethod(e,pt,Lt)},t.prototype.visitAlternation=function(e){var t=this;this.collectNamedDSLMethod(e,gt,Nt);var r=e.definition.length>1;u(e.definition,function(n,o){if(!p(n.name)){var i=n.definition;i=r?[new ht({definition:n.definition})]:n.definition;var s=Ht(t.ruleIdx,Nt,e.idx,o);t.result.push({def:i,key:s,name:n.name,orgProd:n})}})},t}(vt);var zt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Yt=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.path=r,n.nextTerminalName="",n.nextTerminalOccurrence=0,n.nextTerminalName=n.path.lastTok.name,n.nextTerminalOccurrence=n.path.lastTokOccurrence,n}return zt(t,e),t.prototype.walkTerminal=function(e,t,r){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){var n=t.concat(r),o=new lt({definition:n});this.possibleTokTypes=_t(o),this.found=!0}},t}(function(e){function t(t,r){var n=e.call(this)||this;return n.topProd=t,n.path=r,n.possibleTokTypes=[],n.nextProductionName="",n.nextProductionOccurrence=0,n.found=!1,n.isAtEndOfPath=!1,n}return zt(t,e),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=S(this.path.ruleStack).reverse(),this.occurrenceStack=S(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(t,r){void 0===r&&(r=[]),this.found||e.prototype.walk.call(this,t,r)},t.prototype.walkProdRef=function(e,t,r){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){var n=t.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,n)}},t.prototype.updateExpectedNext=function(){o(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(wt)),Gt=function(e){function t(t,r){var n=e.call(this)||this;return n.topRule=t,n.occurrence=r,n.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},n}return zt(t,e),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(wt),jt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),t.prototype.walkMany=function(t,r,n){if(t.idx===this.occurrence){var o=h(r.concat(n));this.result.isEndOfRule=void 0===o,o instanceof ft&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkMany.call(this,t,r,n)},t}(Gt),$t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),t.prototype.walkManySep=function(t,r,n){if(t.idx===this.occurrence){var o=h(r.concat(n));this.result.isEndOfRule=void 0===o,o instanceof ft&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkManySep.call(this,t,r,n)},t}(Gt),Kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),t.prototype.walkAtLeastOne=function(t,r,n){if(t.idx===this.occurrence){var o=h(r.concat(n));this.result.isEndOfRule=void 0===o,o instanceof ft&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOne.call(this,t,r,n)},t}(Gt),Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),t.prototype.walkAtLeastOneSep=function(t,r,n){if(t.idx===this.occurrence){var o=h(r.concat(n));this.result.isEndOfRule=void 0===o,o instanceof ft&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOneSep.call(this,t,r,n)},t}(Gt);function qt(e,t,r){void 0===r&&(r=[]),r=S(r);var n=[],o=0;function i(i){var s=qt(i.concat(f(e,o+1)),t,r);return n.concat(s)}for(;r.length<t&&o<e.length;){var s=e[o];if(s instanceof lt)return i(s.definition);if(s instanceof st)return i(s.definition);if(s instanceof ht)n=i(s.definition);else{if(s instanceof ct)return i(a=s.definition.concat([new dt({definition:s.definition})]));if(s instanceof ut)return i(a=[new lt({definition:s.definition}),new dt({definition:[new ft({terminalType:s.separator})].concat(s.definition)})]);if(s instanceof pt){var a=s.definition.concat([new dt({definition:[new ft({terminalType:s.separator})].concat(s.definition)})]);n=i(a)}else if(s instanceof dt){a=s.definition.concat([new dt({definition:s.definition})]);n=i(a)}else{if(s instanceof gt)return u(s.definition,function(e){n=i(e.definition)}),n;if(!(s instanceof ft))throw Error("non exhaustive match");r.push(s.terminalType)}}o++}return n.push({partialPath:r,suffixDef:f(e,o)}),n}function Zt(e,t,r,n){var i="EXIT_NONE_TERMINAL",s=[i],a="EXIT_ALTERNATIVE",l=!1,h=t.length,u=h-n-1,d=[],p=[];for(p.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!o(p);){var g=p.pop();if(g!==a){var C=g.def,w=g.idx,y=g.ruleStack,v=g.occurrenceStack;if(!o(C)){var E=C[0];if(E===i){var b={idx:w,def:f(C),ruleStack:m(y),occurrenceStack:m(v)};p.push(b)}else if(E instanceof ft)if(w<h-1){var R=w+1;if(r(t[R],E.terminalType)){b={idx:R,def:f(C),ruleStack:y,occurrenceStack:v};p.push(b)}}else{if(w!==h-1)throw Error("non exhaustive match");d.push({nextTokenType:E.terminalType,nextTokenOccurrence:E.idx,ruleStack:y,occurrenceStack:v}),l=!0}else if(E instanceof st){var T=S(y);T.push(E.nonTerminalName);var _=S(v);_.push(E.idx);b={idx:w,def:E.definition.concat(s,f(C)),ruleStack:T,occurrenceStack:_};p.push(b)}else if(E instanceof ht){var M={idx:w,def:f(C),ruleStack:y,occurrenceStack:v};p.push(M),p.push(a);var A={idx:w,def:E.definition.concat(f(C)),ruleStack:y,occurrenceStack:v};p.push(A)}else if(E instanceof ct){var I=new dt({definition:E.definition,idx:E.idx});b={idx:w,def:E.definition.concat([I],f(C)),ruleStack:y,occurrenceStack:v};p.push(b)}else if(E instanceof ut){var N=new ft({terminalType:E.separator});I=new dt({definition:[N].concat(E.definition),idx:E.idx}),b={idx:w,def:E.definition.concat([I],f(C)),ruleStack:y,occurrenceStack:v};p.push(b)}else if(E instanceof pt){M={idx:w,def:f(C),ruleStack:y,occurrenceStack:v};p.push(M),p.push(a);N=new ft({terminalType:E.separator});var O=new dt({definition:[N].concat(E.definition),idx:E.idx});A={idx:w,def:E.definition.concat([O],f(C)),ruleStack:y,occurrenceStack:v};p.push(A)}else if(E instanceof dt){M={idx:w,def:f(C),ruleStack:y,occurrenceStack:v};p.push(M),p.push(a);O=new dt({definition:E.definition,idx:E.idx}),A={idx:w,def:E.definition.concat([O],f(C)),ruleStack:y,occurrenceStack:v};p.push(A)}else if(E instanceof gt)for(var x=E.definition.length-1;x>=0;x--){var k={idx:w,def:E.definition[x].definition.concat(f(C)),ruleStack:y,occurrenceStack:v};p.push(k),p.push(a)}else if(E instanceof lt)p.push({idx:w,def:E.definition.concat(f(C)),ruleStack:y,occurrenceStack:v});else{if(!(E instanceof at))throw Error("non exhaustive match");p.push(Qt(E,w,y,v))}}}else l&&c(p).idx<=u&&p.pop()}return d}function Qt(e,t,r,n){var o=S(r);o.push(e.name);var i=S(n);return i.push(1),{idx:t,def:e.definition,ruleStack:o,occurrenceStack:i}}var Jt,er=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();!function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"}(Jt||(Jt={}));var tr=function(e){function t(t,r,n){var o=e.call(this)||this;return o.topProd=t,o.targetOccurrence=r,o.targetProdType=n,o}return er(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(e,t,r,n){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=r.concat(n),!0)},t.prototype.walkOption=function(t,r,n){this.checkIsTarget(t,Jt.OPTION,r,n)||e.prototype.walkOption.call(this,t,r,n)},t.prototype.walkAtLeastOne=function(t,r,n){this.checkIsTarget(t,Jt.REPETITION_MANDATORY,r,n)||e.prototype.walkOption.call(this,t,r,n)},t.prototype.walkAtLeastOneSep=function(t,r,n){this.checkIsTarget(t,Jt.REPETITION_MANDATORY_WITH_SEPARATOR,r,n)||e.prototype.walkOption.call(this,t,r,n)},t.prototype.walkMany=function(t,r,n){this.checkIsTarget(t,Jt.REPETITION,r,n)||e.prototype.walkOption.call(this,t,r,n)},t.prototype.walkManySep=function(t,r,n){this.checkIsTarget(t,Jt.REPETITION_WITH_SEPARATOR,r,n)||e.prototype.walkOption.call(this,t,r,n)},t}(wt),rr=function(e){function t(t,r,n){var o=e.call(this)||this;return o.targetOccurrence=t,o.targetProdType=r,o.targetRef=n,o.result=[],o}return er(t,e),t.prototype.checkIsTarget=function(e,t){e.idx!==this.targetOccurrence||this.targetProdType!==t||void 0!==this.targetRef&&e!==this.targetRef||(this.result=e.definition)},t.prototype.visitOption=function(e){this.checkIsTarget(e,Jt.OPTION)},t.prototype.visitRepetition=function(e){this.checkIsTarget(e,Jt.REPETITION)},t.prototype.visitRepetitionMandatory=function(e){this.checkIsTarget(e,Jt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.checkIsTarget(e,Jt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(e){this.checkIsTarget(e,Jt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(e){this.checkIsTarget(e,Jt.ALTERNATION)},t}(vt);function nr(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=[];return t}function or(e){for(var t=[""],r=0;r<e.length;r++){for(var n=e[r],o=[],i=0;i<t.length;i++){var s=t[i];o.push(s+"_"+n.tokenTypeIdx);for(var a=0;a<n.categoryMatches.length;a++){var l="_"+n.categoryMatches[a];o.push(s+l)}}t=o}return t}function ir(e,t,r){for(var n=0;n<e.length;n++)if(n!==r)for(var o=e[n],i=0;i<t.length;i++){if(!0===o[t[i]])return!1}return!0}function sr(e,t){for(var r=a(e,function(e){return qt([e],1)}),n=nr(r.length),i=a(r,function(e){var t={};return u(e,function(e){u(or(e.partialPath),function(e){t[e]=!0})}),t}),s=r,l=1;l<=t;l++){var h=s;s=nr(h.length);for(var c=function(e){for(var r=h[e],a=0;a<r.length;a++){var c=r[a].partialPath,d=r[a].suffixDef,p=or(c);if(ir(i,p,e)||o(d)||c.length===t){var g=n[e];if(!1===hr(g,c)){g.push(c);for(var f=0;f<p.length;f++){var m=p[f];i[e][m]=!0}}}else{var C=qt(d,l+1,c);s[e]=s[e].concat(C),u(C,function(t){u(or(t.partialPath),function(t){i[e][t]=!0})})}}},d=0;d<h.length;d++)c(d)}return n}function ar(e,t,r,n){var o=new rr(e,Jt.ALTERNATION,n);return t.accept(o),sr(o.result,r)}function lr(e,t,r,n){var o=new rr(e,r);t.accept(o);var i=o.result,s=new tr(t,e,r).startWalking();return sr([new lt({definition:i}),new lt({definition:s})],n)}function hr(e,t){e:for(var r=0;r<e.length;r++){var n=e[r];if(n.length===t.length){for(var o=0;o<n.length;o++){var i=t[o],s=n[o];if(!1===(i===s||void 0!==s.categoryMatchesMap[i.tokenTypeIdx]))continue e}return!0}}return!1}function cr(e){return O(e,function(e){return O(e,function(e){return O(e,function(e){return o(e.categoryMatches)})})})}var ur=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function dr(e,t,r,n,i,c){var d=a(e,function(e){return function(e,t){var r=new fr;e.accept(r);var n=r.allProductions,o=a(s(y(H(n,pr),function(e){return e.length>1})),function(r){var n=h(r),o=t.buildDuplicateFoundError(e,r),i=bt(n),s={message:o,type:En.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:i,occurrence:n.idx},a=gr(n);return a&&(s.parameter=a),s});return o}(e,i)}),p=a(e,function(e){return wr(e,e,i)}),g=[],f=[],C=[];O(p,o)&&(g=a(e,function(e){return function(e,t){var r=new vr;e.accept(r);var n=T(r.alternations,function(r,n){var i=a(m(n.definition),function(r,i){return o(Zt([r],[],null,1))?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:En.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}:null});return r.concat(_(i))},[]);return n}(e,i)}),f=a(e,function(e){return function(e,t,r,n){var o=new vr;e.accept(o);var i=o.alternations,s=r[e.name];s&&(i=w(i,function(e){return s[bt(e)+(0===e.idx?"":e.idx)]}));var l=T(i=w(i,function(e){return!0===e.ignoreAmbiguities}),function(r,o){var i=o.idx,s=o.maxLookahead||t,l=ar(i,e,s,o),h=function(e,t,r,n){var o=[],i=T(e,function(r,n,i){return!0===t.definition[i].ignoreAmbiguities||u(n,function(n){var s=[i];u(e,function(e,r){i!==r&&hr(e,n)&&!0!==t.definition[r].ignoreAmbiguities&&s.push(r)}),s.length>1&&!hr(o,n)&&(o.push(n),r.push({alts:s,path:n}))}),r},[]),s=a(i,function(e){var o=a(e.alts,function(e){return e+1});return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:o,prefixPath:e.path}),type:En.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:[e.alts]}});return s}(l,o,e,n),c=function(e,t,r,n){var o=[],i=T(e,function(e,t,r){var n=a(t,function(e){return{idx:r,path:e}});return e.concat(n)},[]);return u(i,function(e){if(!0!==t.definition[e.idx].ignoreAmbiguities){var s=e.idx,l=e.path,h=a(function(e,t){for(var r=[],n=0;n<e.length;n++){var o=e[n];t.call(null,o)&&r.push(o)}return r}(i,function(e){return!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<s&&(r=e.path,n=l,r.length<n.length&&O(r,function(e,t){var r=n[t];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]}));var r,n}),function(e){var o=[e.idx+1,s+1],i=0===t.idx?"":t.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:o,prefixPath:e.path}),type:En.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:i,alternatives:o}});o=o.concat(h)}}),o}(l,o,e,n);return r.concat(h,c)},[]);return l}(e,t,n,i)}),C=function(e,t,r){var n=[];return u(e,function(e){var i=new Er;e.accept(i),u(i.allProductions,function(i){var s=function(e){if(e instanceof ht)return Jt.OPTION;if(e instanceof dt)return Jt.REPETITION;if(e instanceof ct)return Jt.REPETITION_MANDATORY;if(e instanceof ut)return Jt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof pt)return Jt.REPETITION_WITH_SEPARATOR;if(e instanceof gt)return Jt.ALTERNATION;throw Error("non exhaustive match")}(i),a=i.maxLookahead||t;if(o(l(lr(i.idx,e,s,a)[0]))){var h=r.buildEmptyRepetitionError({topLevelRule:e,repetition:i});n.push({message:h,type:En.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),n}(e,t,i));var v=function(e,t,r){var n=[],o=a(t,function(e){return e.name});return u(e,function(e){var t=e.name;if(E(o,t)){var i=r.buildNamespaceConflictError(e);n.push({message:i,type:En.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),n}(e,r,i),S=a(r,function(e){return function(e,t){var r=[];e.name.match(mr)||r.push({message:t.buildTokenNameError({tokenType:e,expectedPattern:mr}),type:En.INVALID_TOKEN_NAME});return r}(e,i)}),b=function(e,t){var r=[];return u(e,function(e){var n=new Wt("");e.accept(n);var o=a(n.result,function(e){return e.orgProd});r.push(a(o,function(r){return function(e,t,r){var n,o=[];t.name.match(Cr)||(n=r.buildInvalidNestedRuleNameError(e,t),o.push({message:n,type:En.INVALID_NESTED_RULE_NAME,ruleName:e.name}));return o}(e,r,t)}))}),l(r)}(e,i),R=function(e,t){var r=[];return u(e,function(e){var n=new Wt("");e.accept(n),u(s(y(H(n.result,function(e){return e.name}),function(e){return e.length>1})),function(n){var o=a(n,function(e){return e.orgProd}),i=t.buildDuplicateNestedRuleNameError(e,o);r.push({message:i,type:En.DUPLICATE_NESTED_NAME,ruleName:e.name})})}),r}(e,i),M=a(e,function(e){return function(e,t){var r=new vr;e.accept(r);var n=T(r.alternations,function(r,n){return n.definition.length>255&&r.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:En.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}),r},[]);return n}(e,i)}),A=a(e,function(e){return function(e,t){var r=[],n=e.name;n.match(mr)||r.push({message:t.buildInvalidRuleNameError({topLevelRule:e,expectedPattern:mr}),type:En.INVALID_RULE_NAME,ruleName:n});return r}(e,i)}),I=a(e,function(t){return function(e,t,r,n){var o=[],i=T(t,function(t,r){return r.name===e.name?t+1:t},0);if(i>1){var s=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});o.push({message:s,type:En.DUPLICATE_RULE_NAME,ruleName:e.name})}return o}(t,e,c,i)});return l(d.concat(S,b,R,C,p,g,f,v,M,A,I))}function pr(e){return bt(e)+"_#_"+e.idx+"_#_"+gr(e)}function gr(e){return e instanceof ft?e.terminalType.name:e instanceof st?e.nonTerminalName:""}var fr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return ur(t,e),t.prototype.visitNonTerminal=function(e){this.allProductions.push(e)},t.prototype.visitOption=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t.prototype.visitAlternation=function(e){this.allProductions.push(e)},t.prototype.visitTerminal=function(e){this.allProductions.push(e)},t}(vt),mr=/^[a-zA-Z_]\w*$/,Cr=new RegExp(mr.source.replace("^","^\\$"));function wr(e,t,r,n){void 0===n&&(n=[]);var i=[],s=yr(t.definition);if(o(s))return[];var h=e.name;E(s,e)&&i.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:En.LEFT_RECURSION,ruleName:h});var c=a(x(s,n.concat([e])),function(t){var o=S(n);return o.push(t),wr(e,t,r,o)});return i.concat(l(c))}function yr(e){var t=[];if(o(e))return t;var r=h(e);if(r instanceof st)t.push(r.referencedRule);else if(r instanceof lt||r instanceof ht||r instanceof ct||r instanceof ut||r instanceof pt||r instanceof dt)t=t.concat(yr(r.definition));else if(r instanceof gt)t=l(a(r.definition,function(e){return yr(e.definition)}));else if(!(r instanceof ft))throw Error("non exhaustive match");var n=St(r),i=e.length>1;if(n&&i){var s=f(e);return t.concat(yr(s))}return t}var vr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.alternations=[],t}return ur(t,e),t.prototype.visitAlternation=function(e){this.alternations.push(e)},t}(vt);var Er=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return ur(t,e),t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t}(vt);var Sr={buildMismatchTokenMessage:function(e){var t=e.expected,r=e.actual;e.previous,e.ruleName;return"Expecting "+(Ye(t)?"--\x3e "+We(t)+" <--":"token of type --\x3e "+t.name+" <--")+" but found --\x3e '"+r.image+"' <--"},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant;e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,r=e.actual,n=(e.previous,e.customUserDescription),o=(e.ruleName,"Expecting: "),i="\nbut found: '"+h(r).image+"'";if(n)return o+n+i;var s=a(T(t,function(e,t){return e.concat(t)},[]),function(e){return"["+a(e,function(e){return We(e)}).join(", ")+"]"});return o+("one of these possible Token sequences:\n"+a(s,function(e,t){return" "+(t+1)+". "+e}).join("\n"))+i},buildEarlyExitMessage:function(e){var t=e.expectedIterationPaths,r=e.actual,n=e.customUserDescription,o=(e.ruleName,"Expecting: "),i="\nbut found: '"+h(r).image+"'";return n?o+n+i:o+("expecting at least one iteration which starts with one of these possible Token sequences::\n <"+a(t,function(e){return"["+a(e,function(e){return We(e)}).join(",")+"]"}).join(" ,")+">")+i}};Object.freeze(Sr);var br={buildRuleNotFoundError:function(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"}},Rr={buildDuplicateFoundError:function(e,t){var r,n=e.name,o=h(t),i=o.idx,s=bt(o),a=(r=o)instanceof ft?r.terminalType.name:r instanceof st?r.nonTerminalName:"",l="->"+s+(i>0?i:"")+"<- "+(a?"with argument: ->"+a+"<-":"")+"\n appears more than once ("+t.length+" times) in the top level rule: ->"+n+"<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n ";return l=(l=l.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildInvalidNestedRuleNameError:function(e,t){return"Invalid nested rule name: ->"+t.name+"<- inside rule: ->"+e.name+"<-\nit must match the pattern: ->"+Cr.toString()+"<-.\nNote that this means a nested rule name must start with the '$'(dollar) sign."},buildDuplicateNestedRuleNameError:function(e,t){return"Duplicate nested rule name: ->"+h(t).name+"<- inside rule: ->"+e.name+"<-\nA nested name must be unique in the scope of a top level grammar rule."},buildNamespaceConflictError:function(e){return"Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+e.name+">.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(e){var t=a(e.prefixPath,function(e){return We(e)}).join(", "),r=0===e.alternation.idx?"":e.alternation.idx;return"Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+"> due to common lookahead prefix\nin <OR"+r+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\nSee: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(e){var t=a(e.prefixPath,function(e){return We(e)}).join(", "),r=0===e.alternation.idx?"":e.alternation.idx,n="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+r+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\n";return n+="See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(e){var t=bt(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),"The repetition <"+t+"> within Rule <"+e.topLevelRule.name+"> can never consume any tokens.\nThis could lead to an infinite loop."},buildTokenNameError:function(e){return"Invalid Grammar Token name: ->"+e.tokenType.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildEmptyAlternationError:function(e){return"Ambiguous empty alternative: <"+(e.emptyChoiceIdx+1)+"> in <OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\nOnly the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(e){return"An Alternation cannot have more than 256 alternatives:\n<OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\n has "+(e.alternation.definition.length+1)+" alternatives."},buildLeftRecursionError:function(e){var t=e.topLevelRule.name;return"Left Recursion found in grammar.\nrule: <"+t+"> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n "+(t+" --\x3e "+a(e.leftRecursionPath,function(e){return e.name}).concat([t]).join(" --\x3e "))+"\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."},buildInvalidRuleNameError:function(e){return"Invalid grammar rule name: ->"+e.topLevelRule.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildDuplicateRuleNameError:function(e){return"Duplicate definition, rule: ->"+(e.topLevelRule instanceof at?e.topLevelRule.name:e.topLevelRule)+"<- is already defined in the grammar: ->"+e.grammarName+"<-"}},Tr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();var _r=function(e){function t(t,r){var n=e.call(this)||this;return n.nameToTopRule=t,n.errMsgProvider=r,n.errors=[],n}return Tr(t,e),t.prototype.resolveRefs=function(){var e=this;u(s(this.nameToTopRule),function(t){e.currTopLevel=t,t.accept(e)})},t.prototype.visitNonTerminal=function(e){var t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:r,type:En.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}},t}(vt);function Mr(e){e=D(e,{errMsgProvider:br});var t,r,n,o={};return u(e.rules,function(e){o[e.name]=e}),t=o,r=e.errMsgProvider,(n=new _r(t,r)).resolveRefs(),n.errors}function Ar(e){return dr((e=D(e,{errMsgProvider:Rr,ignoredIssues:{}})).rules,e.maxLookahead,e.tokenTypes,e.ignoredIssues,e.errMsgProvider,e.grammarName)}function Ir(e){u(e.rules,function(e){var t=new Rt;e.accept(t),u(t.dslMethods,function(e){u(e,function(e,t){e.idx=t+1})})})}var Nr="MismatchedTokenException",Or="NoViableAltException",xr="EarlyExitException",kr="NotAllInputParsedException",Lr=[Nr,Or,xr,kr];function Pr(e){return E(Lr,e.name)}function Dr(e,t,r){this.name=Nr,this.message=e,this.token=t,this.previousToken=r,this.resyncedTokens=[]}function Hr(e,t,r){this.name=Or,this.message=e,this.token=t,this.previousToken=r,this.resyncedTokens=[]}function Fr(e,t){this.name=kr,this.message=e,this.token=t,this.resyncedTokens=[]}function Br(e,t,r){this.name=xr,this.message=e,this.token=t,this.previousToken=r,this.resyncedTokens=[]}Object.freeze(Lr),Dr.prototype=Error.prototype,Hr.prototype=Error.prototype,Fr.prototype=Error.prototype,Br.prototype=Error.prototype;var Vr={},Ur="InRuleRecoveryException";function Wr(e){this.name=Ur,this.message=e}Wr.prototype=Error.prototype;var zr=function(){function e(){}return e.prototype.initRecoverable=function(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=v(e,"recoveryEnabled")?e.recoveryEnabled:Sn.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Yr)},e.prototype.getTokenToInsert=function(e){var t=rt(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t},e.prototype.canTokenTypeBeInsertedInRecovery=function(e){return!0},e.prototype.tryInRepetitionRecovery=function(e,t,r,n){for(var o=this,i=this.findReSyncTokenType(),s=this.exportLexerState(),a=[],l=!1,h=this.LA(1),c=this.LA(1),u=function(){var e=o.LA(0),t=new Dr(o.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:h,previous:e,ruleName:o.getCurrRuleFullName()}),h,o.LA(0));t.resyncedTokens=m(a),o.SAVE_ERROR(t)};!l;){if(this.tokenMatcher(c,n))return void u();if(r.call(this))return u(),void e.apply(this,t);this.tokenMatcher(c,i)?l=!0:(c=this.SKIP_TOKEN(),this.addToResyncTokens(c,a))}this.importLexerState(s)},e.prototype.shouldInRepetitionRecoveryBeTried=function(e,t,r){return!1!==r&&(void 0!==e&&void 0!==t&&(!this.tokenMatcher(this.LA(1),e)&&(!this.isBackTracking()&&!this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))))},e.prototype.getFollowsForInRuleRecovery=function(e,t){var r=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(r)},e.prototype.tryInRuleRecovery=function(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new Wr("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)},e.prototype.canRecoverWithSingleTokenInsertion=function(e,t){var r=this;if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(o(t))return!1;var n=this.LA(1);return void 0!==R(t,function(e){return r.tokenMatcher(n,e)})},e.prototype.canRecoverWithSingleTokenDeletion=function(e){return this.tokenMatcher(this.LA(2),e)},e.prototype.isInCurrentRuleReSyncSet=function(e){var t=this.getCurrFollowKey();return E(this.getFollowSetFromFollowKey(t),e)},e.prototype.findReSyncTokenType=function(){for(var e=this.flattenFollowSet(),t=this.LA(1),r=2;;){var n=t.tokenType;if(E(e,n))return n;t=this.LA(r),r++}},e.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return Vr;var e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(r)}},e.prototype.buildFullFollowKeyStack=function(){var e=this,t=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return o(this.LAST_EXPLICIT_RULE_STACK)||(t=a(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.RULE_STACK[t]}),r=a(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.RULE_OCCURRENCE_STACK[t]})),a(t,function(n,o){return 0===o?Vr:{ruleName:e.shortRuleNameToFullName(n),idxInCallingRule:r[o],inRule:e.shortRuleNameToFullName(t[o-1])}})},e.prototype.flattenFollowSet=function(){var e=this;return l(a(this.buildFullFollowKeyStack(),function(t){return e.getFollowSetFromFollowKey(t)}))},e.prototype.getFollowSetFromFollowKey=function(e){if(e===Vr)return[tt];var t=e.ruleName+e.idxInCallingRule+Mt+e.inRule;return this.resyncFollows[t]},e.prototype.addToResyncTokens=function(e,t){return this.tokenMatcher(e,tt)||t.push(e),t},e.prototype.reSyncTo=function(e){for(var t=[],r=this.LA(1);!1===this.tokenMatcher(r,e);)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,t);return m(t)},e.prototype.attemptInRepetitionRecovery=function(e,t,r,n,o,i,s){},e.prototype.getCurrentGrammarPath=function(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:S(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}},e.prototype.getHumanReadableRuleStack=function(){var e=this;return o(this.LAST_EXPLICIT_RULE_STACK)?a(this.RULE_STACK,function(t){return e.shortRuleNameToFullName(t)}):a(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.shortRuleNameToFullName(e.RULE_STACK[t])})},e}();function Yr(e,t,r,n,o,i,s){var a=this.getKeyForAutomaticLookahead(n,o),l=this.firstAfterRepMap[a];if(void 0===l){var h=this.getCurrRuleFullName();l=new i(this.getGAstProductions()[h],o).startWalking(),this.firstAfterRepMap[a]=l}var c=l.token,u=l.occurrence,d=l.isEndOfRule;1===this.RULE_STACK.length&&d&&void 0===c&&(c=tt,u=1),this.shouldInRepetitionRecoveryBeTried(c,u,s)&&this.tryInRepetitionRecovery(e,t,r,c)}var Gr=function(){function e(){}return e.prototype.initLooksAhead=function(e){this.dynamicTokensEnabled=v(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Sn.dynamicTokensEnabled,this.maxLookahead=v(e,"maxLookahead")?e.maxLookahead:Sn.maxLookahead,this.lookAheadFuncsCache=z()?new Map:[],z()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(e){var t=this;u(e,function(e){t.TRACE_INIT(e.name+" Rule Lookahead",function(){var r=function(e){Tt.reset(),e.accept(Tt);var t=Tt.dslMethods;return Tt.reset(),t}(e),n=r.alternation,o=r.repetition,i=r.option,s=r.repetitionMandatory,a=r.repetitionMandatoryWithSeparator,l=r.repetitionWithSeparator;u(n,function(r){var n=0===r.idx?"":r.idx;t.TRACE_INIT(""+bt(r)+n,function(){var n,o,i,s,a,l,h,c=(n=r.idx,o=e,i=r.maxLookahead||t.maxLookahead,s=r.hasPredicates,a=t.dynamicTokensEnabled,l=t.lookAheadBuilderForAlternatives,h=ar(n,o,i),l(h,s,cr(h)?Ne:Ie,a)),u=Dt(t.fullRuleNameToShort[e.name],Nt,r.idx);t.setLaFuncCache(u,c)})}),u(o,function(r){t.computeLookaheadFunc(e,r.idx,xt,Jt.REPETITION,r.maxLookahead,bt(r))}),u(i,function(r){t.computeLookaheadFunc(e,r.idx,Ot,Jt.OPTION,r.maxLookahead,bt(r))}),u(s,function(r){t.computeLookaheadFunc(e,r.idx,kt,Jt.REPETITION_MANDATORY,r.maxLookahead,bt(r))}),u(a,function(r){t.computeLookaheadFunc(e,r.idx,Pt,Jt.REPETITION_MANDATORY_WITH_SEPARATOR,r.maxLookahead,bt(r))}),u(l,function(r){t.computeLookaheadFunc(e,r.idx,Lt,Jt.REPETITION_WITH_SEPARATOR,r.maxLookahead,bt(r))})})})},e.prototype.computeLookaheadFunc=function(e,t,r,n,o,i){var s=this;this.TRACE_INIT(""+i+(0===t?"":t),function(){var i=function(e,t,r,n,o,i){var s=lr(e,t,o,r),a=cr(s)?Ne:Ie;return i(s[0],a,n)}(t,e,o||s.maxLookahead,s.dynamicTokensEnabled,n,s.lookAheadBuilderForOptional),a=Dt(s.fullRuleNameToShort[e.name],r,t);s.setLaFuncCache(a,i)})},e.prototype.lookAheadBuilderForOptional=function(e,t,r){return function(e,t,r){var n=O(e,function(e){return 1===e.length}),i=e.length;if(n&&!r){var s=l(e);if(1===s.length&&o(s[0].categoryMatches)){var a=s[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===a}}var h=T(s,function(e,t,r){return e[t.tokenTypeIdx]=!0,u(t.categoryMatches,function(t){e[t]=!0}),e},[]);return function(){var e=this.LA(1);return!0===h[e.tokenTypeIdx]}}return function(){e:for(var r=0;r<i;r++){for(var n=e[r],o=n.length,s=0;s<o;s++){var a=this.LA(s+1);if(!1===t(a,n[s]))continue e}return!0}return!1}}(e,t,r)},e.prototype.lookAheadBuilderForAlternatives=function(e,t,r,n){return function(e,t,r,n){var o=e.length,i=O(e,function(e){return O(e,function(e){return 1===e.length})});if(t)return function(t){for(var n=a(t,function(e){return e.GATE}),i=0;i<o;i++){var s=e[i],l=s.length,h=n[i];if(void 0===h||!1!==h.call(this))e:for(var c=0;c<l;c++){for(var u=s[c],d=u.length,p=0;p<d;p++){var g=this.LA(p+1);if(!1===r(g,u[p]))continue e}return i}}};if(i&&!n){var s=T(a(e,function(e){return l(e)}),function(e,t,r){return u(t,function(t){v(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=r),u(t.categoryMatches,function(t){v(e,t)||(e[t]=r)})}),e},[]);return function(){var e=this.LA(1);return s[e.tokenTypeIdx]}}return function(){for(var t=0;t<o;t++){var n=e[t],i=n.length;e:for(var s=0;s<i;s++){for(var a=n[s],l=a.length,h=0;h<l;h++){var c=this.LA(h+1);if(!1===r(c,a[h]))continue e}return t}}}}(e,t,r,n)},e.prototype.getKeyForAutomaticLookahead=function(e,t){return Dt(this.getLastExplicitRuleShortName(),e,t)},e.prototype.getLaFuncFromCache=function(e){},e.prototype.getLaFuncFromMap=function(e){return this.lookAheadFuncsCache.get(e)},e.prototype.getLaFuncFromObj=function(e){return this.lookAheadFuncsCache[e]},e.prototype.setLaFuncCache=function(e,t){},e.prototype.setLaFuncCacheUsingMap=function(e,t){this.lookAheadFuncsCache.set(e,t)},e.prototype.setLaFuncUsingObj=function(e,t){this.lookAheadFuncsCache[e]=t},e}();var jr,$r=/^\s*function\s*(\S*)\s*\(/,Kr="name";function Xr(e){var t=e.name;return t||e.toString().match($r)[1]}function qr(e,t){var r=Object.getOwnPropertyDescriptor(e,Kr);return!(!p(r)&&!r.configurable)&&(Object.defineProperty(e,Kr,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0)}function Zr(e,t){for(var r=i(e),n=r.length,o=0;o<n;o++)for(var s=e[r[o]],a=s.length,l=0;l<a;l++){var h=s[l];void 0===h.tokenTypeIdx&&(void 0!==h.fullName?this[h.fullName](h.children,t):this[h.name](h.children,t))}}function Qr(e,t){var r=function(){};qr(r,e+"BaseSemantics");var n={visit:function(e,t){if(A(e)&&(e=e[0]),!p(e))return void 0!==e.fullName?this[e.fullName](e.children,t):this[e.name](e.children,t)},validateVisitor:function(){var e=function(e,t){var r=function(e,t){var r=a(t,function(t){if(!g(e[t]))return{msg:"Missing visitor method: <"+t+"> on "+Xr(e.constructor)+" CST Visitor.",type:jr.MISSING_METHOD,methodName:t}});return _(r)}(e,t),n=function(e,t){var r=[];for(var n in e)mr.test(n)&&g(e[n])&&!E(Jr,n)&&!E(t,n)&&r.push({msg:"Redundant visitor method: <"+n+"> on "+Xr(e.constructor)+" CST Visitor\nThere is no Grammar Rule corresponding to this method's name.\nFor utility methods on visitor classes use methods names that do not match /"+mr.source+"/.",type:jr.REDUNDANT_METHOD,methodName:n});return r}(e,t);return r.concat(n)}(this,t);if(!o(e)){var r=a(e,function(e){return e.msg});throw Error("Errors Detected in CST Visitor <"+Xr(this.constructor)+">:\n\t"+r.join("\n\n").replace(/\n/g,"\n\t"))}}};return(r.prototype=n).constructor=r,r._RULE_NAMES=t,r}!function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"}(jr||(jr={}));var Jr=["constructor","visit","validateVisitor"];var en=function(){function e(){}return e.prototype.initTreeBuilder=function(e){if(this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.outputCst=v(e,"outputCst")?e.outputCst:Sn.outputCst,this.nodeLocationTracking=v(e,"nodeLocationTracking")?e.nodeLocationTracking:Sn.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Vt,this.setNodeLocationFromNode=Vt,this.cstPostRule=B,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=B,this.setNodeLocationFromNode=B,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Bt,this.setNodeLocationFromNode=Bt,this.cstPostRule=B,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=B,this.setNodeLocationFromNode=B,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid <nodeLocationTracking> config option: "'+e.nodeLocationTracking+'"');this.setNodeLocationFromToken=B,this.setNodeLocationFromNode=B,this.cstPostRule=B,this.setInitialNodeLocation=B}else this.cstInvocationStateUpdate=B,this.cstFinallyStateUpdate=B,this.cstPostTerminal=B,this.cstPostNonTerminal=B,this.cstPostRule=B,this.getLastExplicitRuleShortName=this.getLastExplicitRuleShortNameNoCst,this.getPreviousExplicitRuleShortName=this.getPreviousExplicitRuleShortNameNoCst,this.getLastExplicitRuleOccurrenceIndex=this.getLastExplicitRuleOccurrenceIndexNoCst,this.manyInternal=this.manyInternalNoCst,this.orInternal=this.orInternalNoCst,this.optionInternal=this.optionInternalNoCst,this.atLeastOneInternal=this.atLeastOneInternalNoCst,this.manySepFirstInternal=this.manySepFirstInternalNoCst,this.atLeastOneSepFirstInternal=this.atLeastOneSepFirstInternalNoCst},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(e){e.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstNestedInvocationStateUpdate=function(e,t){var r={name:e,fullName:this.shortRuleNameToFull[this.getLastExplicitRuleShortName()]+e,children:{}};this.setInitialNodeLocation(r),this.CST_STACK.push(r)},e.prototype.cstInvocationStateUpdate=function(e,t){this.LAST_EXPLICIT_RULE_STACK.push(this.RULE_STACK.length-1);var r={name:e,children:{}};this.setInitialNodeLocation(r),this.CST_STACK.push(r)},e.prototype.cstFinallyStateUpdate=function(){this.LAST_EXPLICIT_RULE_STACK.pop(),this.CST_STACK.pop()},e.prototype.cstNestedFinallyStateUpdate=function(){var e=this.CST_STACK.pop();this.cstPostRule(e)},e.prototype.cstPostRuleFull=function(e){var t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?(r.endOffset=t.endOffset,r.endLine=t.endLine,r.endColumn=t.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(e){var t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?r.endOffset=t.endOffset:r.startOffset=NaN},e.prototype.cstPostTerminal=function(e,t){var r,n,o,i=this.CST_STACK[this.CST_STACK.length-1];n=t,o=e,void 0===(r=i).children[o]?r.children[o]=[n]:r.children[o].push(n),this.setNodeLocationFromToken(i.location,t)},e.prototype.cstPostNonTerminal=function(e,t){if(!0!==this.isBackTracking()){var r=this.CST_STACK[this.CST_STACK.length-1];Ut(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}},e.prototype.getBaseCstVisitorConstructor=function(){if(p(this.baseCstVisitorConstructor)){var e=Qr(this.className,this.allRuleNames);return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(p(this.baseCstVisitorWithDefaultsConstructor)){var e=function(e,t,r){var n=function(){};qr(n,e+"BaseSemanticsWithDefaults");var o=Object.create(r.prototype);return u(t,function(e){o[e]=Zr}),(n.prototype=o).constructor=n,n}(this.className,this.allRuleNames,this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.nestedRuleBeforeClause=function(e,t){var r;return void 0!==e.NAME?(r=e.NAME,this.nestedRuleInvocationStateUpdate(r,t),r):void 0},e.prototype.nestedAltBeforeClause=function(e,t,r,n){var o,i=Ht(this.getLastExplicitRuleShortName(),r,t,n);return void 0!==e.NAME?(o=e.NAME,this.nestedRuleInvocationStateUpdate(o,i),{shortName:i,nestedName:o}):void 0},e.prototype.nestedRuleFinallyClause=function(e,t){var r=this.CST_STACK,n=r[r.length-1];this.nestedRuleFinallyStateUpdate();var o=r[r.length-1];Ut(o,t,n),this.setNodeLocationFromNode(o.location,n.location)},e.prototype.getLastExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_STACK[e]},e.prototype.getLastExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-2];return this.RULE_STACK[e]},e.prototype.getPreviousExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_OCCURRENCE_STACK[e]},e.prototype.getLastExplicitRuleOccurrenceIndexNoCst=function(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]},e.prototype.nestedRuleInvocationStateUpdate=function(e,t){this.RULE_OCCURRENCE_STACK.push(1),this.RULE_STACK.push(t),this.cstNestedInvocationStateUpdate(e,t)},e.prototype.nestedRuleFinallyStateUpdate=function(){this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstNestedFinallyStateUpdate()},e}(),tn=function(){function e(){}return e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set:function(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length},enumerable:!0,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):vn},e.prototype.LA=function(e){var t=this.currIdx+e;return t<0||this.tokVectorLength<=t?vn:this.tokVector[t]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(e){this.currIdx=e},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}(),rn=function(){function e(){}return e.prototype.ACTION=function(e){return e.call(this)},e.prototype.consume=function(e,t,r){return this.consumeInternal(t,e,r)},e.prototype.subrule=function(e,t,r){return this.subruleInternal(t,e,r)},e.prototype.option=function(e,t){return this.optionInternal(t,e)},e.prototype.or=function(e,t){return this.orInternal(t,e)},e.prototype.many=function(e,t){return this.manyInternal(e,t)},e.prototype.atLeastOne=function(e,t){return this.atLeastOneInternal(e,t)},e.prototype.CONSUME=function(e,t){return this.consumeInternal(e,0,t)},e.prototype.CONSUME1=function(e,t){return this.consumeInternal(e,1,t)},e.prototype.CONSUME2=function(e,t){return this.consumeInternal(e,2,t)},e.prototype.CONSUME3=function(e,t){return this.consumeInternal(e,3,t)},e.prototype.CONSUME4=function(e,t){return this.consumeInternal(e,4,t)},e.prototype.CONSUME5=function(e,t){return this.consumeInternal(e,5,t)},e.prototype.CONSUME6=function(e,t){return this.consumeInternal(e,6,t)},e.prototype.CONSUME7=function(e,t){return this.consumeInternal(e,7,t)},e.prototype.CONSUME8=function(e,t){return this.consumeInternal(e,8,t)},e.prototype.CONSUME9=function(e,t){return this.consumeInternal(e,9,t)},e.prototype.SUBRULE=function(e,t){return this.subruleInternal(e,0,t)},e.prototype.SUBRULE1=function(e,t){return this.subruleInternal(e,1,t)},e.prototype.SUBRULE2=function(e,t){return this.subruleInternal(e,2,t)},e.prototype.SUBRULE3=function(e,t){return this.subruleInternal(e,3,t)},e.prototype.SUBRULE4=function(e,t){return this.subruleInternal(e,4,t)},e.prototype.SUBRULE5=function(e,t){return this.subruleInternal(e,5,t)},e.prototype.SUBRULE6=function(e,t){return this.subruleInternal(e,6,t)},e.prototype.SUBRULE7=function(e,t){return this.subruleInternal(e,7,t)},e.prototype.SUBRULE8=function(e,t){return this.subruleInternal(e,8,t)},e.prototype.SUBRULE9=function(e,t){return this.subruleInternal(e,9,t)},e.prototype.OPTION=function(e){return this.optionInternal(e,0)},e.prototype.OPTION1=function(e){return this.optionInternal(e,1)},e.prototype.OPTION2=function(e){return this.optionInternal(e,2)},e.prototype.OPTION3=function(e){return this.optionInternal(e,3)},e.prototype.OPTION4=function(e){return this.optionInternal(e,4)},e.prototype.OPTION5=function(e){return this.optionInternal(e,5)},e.prototype.OPTION6=function(e){return this.optionInternal(e,6)},e.prototype.OPTION7=function(e){return this.optionInternal(e,7)},e.prototype.OPTION8=function(e){return this.optionInternal(e,8)},e.prototype.OPTION9=function(e){return this.optionInternal(e,9)},e.prototype.OR=function(e){return this.orInternal(e,0)},e.prototype.OR1=function(e){return this.orInternal(e,1)},e.prototype.OR2=function(e){return this.orInternal(e,2)},e.prototype.OR3=function(e){return this.orInternal(e,3)},e.prototype.OR4=function(e){return this.orInternal(e,4)},e.prototype.OR5=function(e){return this.orInternal(e,5)},e.prototype.OR6=function(e){return this.orInternal(e,6)},e.prototype.OR7=function(e){return this.orInternal(e,7)},e.prototype.OR8=function(e){return this.orInternal(e,8)},e.prototype.OR9=function(e){return this.orInternal(e,9)},e.prototype.MANY=function(e){this.manyInternal(0,e)},e.prototype.MANY1=function(e){this.manyInternal(1,e)},e.prototype.MANY2=function(e){this.manyInternal(2,e)},e.prototype.MANY3=function(e){this.manyInternal(3,e)},e.prototype.MANY4=function(e){this.manyInternal(4,e)},e.prototype.MANY5=function(e){this.manyInternal(5,e)},e.prototype.MANY6=function(e){this.manyInternal(6,e)},e.prototype.MANY7=function(e){this.manyInternal(7,e)},e.prototype.MANY8=function(e){this.manyInternal(8,e)},e.prototype.MANY9=function(e){this.manyInternal(9,e)},e.prototype.MANY_SEP=function(e){this.manySepFirstInternal(0,e)},e.prototype.MANY_SEP1=function(e){this.manySepFirstInternal(1,e)},e.prototype.MANY_SEP2=function(e){this.manySepFirstInternal(2,e)},e.prototype.MANY_SEP3=function(e){this.manySepFirstInternal(3,e)},e.prototype.MANY_SEP4=function(e){this.manySepFirstInternal(4,e)},e.prototype.MANY_SEP5=function(e){this.manySepFirstInternal(5,e)},e.prototype.MANY_SEP6=function(e){this.manySepFirstInternal(6,e)},e.prototype.MANY_SEP7=function(e){this.manySepFirstInternal(7,e)},e.prototype.MANY_SEP8=function(e){this.manySepFirstInternal(8,e)},e.prototype.MANY_SEP9=function(e){this.manySepFirstInternal(9,e)},e.prototype.AT_LEAST_ONE=function(e){this.atLeastOneInternal(0,e)},e.prototype.AT_LEAST_ONE1=function(e){return this.atLeastOneInternal(1,e)},e.prototype.AT_LEAST_ONE2=function(e){this.atLeastOneInternal(2,e)},e.prototype.AT_LEAST_ONE3=function(e){this.atLeastOneInternal(3,e)},e.prototype.AT_LEAST_ONE4=function(e){this.atLeastOneInternal(4,e)},e.prototype.AT_LEAST_ONE5=function(e){this.atLeastOneInternal(5,e)},e.prototype.AT_LEAST_ONE6=function(e){this.atLeastOneInternal(6,e)},e.prototype.AT_LEAST_ONE7=function(e){this.atLeastOneInternal(7,e)},e.prototype.AT_LEAST_ONE8=function(e){this.atLeastOneInternal(8,e)},e.prototype.AT_LEAST_ONE9=function(e){this.atLeastOneInternal(9,e)},e.prototype.AT_LEAST_ONE_SEP=function(e){this.atLeastOneSepFirstInternal(0,e)},e.prototype.AT_LEAST_ONE_SEP1=function(e){this.atLeastOneSepFirstInternal(1,e)},e.prototype.AT_LEAST_ONE_SEP2=function(e){this.atLeastOneSepFirstInternal(2,e)},e.prototype.AT_LEAST_ONE_SEP3=function(e){this.atLeastOneSepFirstInternal(3,e)},e.prototype.AT_LEAST_ONE_SEP4=function(e){this.atLeastOneSepFirstInternal(4,e)},e.prototype.AT_LEAST_ONE_SEP5=function(e){this.atLeastOneSepFirstInternal(5,e)},e.prototype.AT_LEAST_ONE_SEP6=function(e){this.atLeastOneSepFirstInternal(6,e)},e.prototype.AT_LEAST_ONE_SEP7=function(e){this.atLeastOneSepFirstInternal(7,e)},e.prototype.AT_LEAST_ONE_SEP8=function(e){this.atLeastOneSepFirstInternal(8,e)},e.prototype.AT_LEAST_ONE_SEP9=function(e){this.atLeastOneSepFirstInternal(9,e)},e.prototype.RULE=function(e,t,r){if(void 0===r&&(r=bn),E(this.definedRulesNames,e)){var n={message:Rr.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:En.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(n)}this.definedRulesNames.push(e);var o=this.defineRule(e,t,r);return this[e]=o,o},e.prototype.OVERRIDE_RULE=function(e,t,r){void 0===r&&(r=bn);var n,o,i,s,a,l=[];l=l.concat((n=e,o=this.definedRulesNames,i=this.className,a=[],E(o,n)||(s="Invalid rule override, rule: ->"+n+"<- cannot be overridden in the grammar: ->"+i+"<-as it is not defined in any of the super grammars ",a.push({message:s,type:En.INVALID_RULE_OVERRIDE,ruleName:n})),a)),this.definitionErrors.push.apply(this.definitionErrors,l);var h=this.defineRule(e,t,r);return this[e]=h,h},e.prototype.BACKTRACK=function(e,t){return function(){this.isBackTrackingStack.push(1);var r=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(Pr(e))return!1;throw e}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return mt(s(this.gastProductionsCache))},e}(),nn=function(){function e(){}return e.prototype.initRecognizerEngine=function(e,t){if(this.className=Xr(this.constructor),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Ne,this.definedRulesNames=[],this.tokensMap={},this.allRuleNames=[],this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},v(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if(A(e)){if(o(e))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if(A(e))this.tokensMap=T(e,function(e,t){return e[t.name]=t,e},{});else if(v(e,"modes")&&O(l(s(e.modes)),He)){var r=M(l(s(e.modes)));this.tokensMap=T(r,function(e,t){return e[t.name]=t,e},{})}else{if(!N(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=b(e)}this.tokensMap.EOF=tt;var n=O(s(e),function(e){return o(e.categoryMatches)});this.tokenMatcher=n?Ne:Ie,ke(s(this.tokensMap))},e.prototype.defineRule=function(e,t,r){if(this.selfAnalysisDone)throw Error("Grammar rule <"+e+"> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var n,o=v(r,"resyncEnabled")?r.resyncEnabled:bn.resyncEnabled,i=v(r,"recoveryValueFunc")?r.recoveryValueFunc:bn.recoveryValueFunc,s=this.ruleShortNameIdx<<12;function a(e){try{if(!0===this.outputCst){t.apply(this,e);var r=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(r),r}return t.apply(this,e)}catch(e){return this.invokeRuleCatch(e,o,i)}finally{this.ruleFinallyStateUpdate()}}this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=e,this.fullRuleNameToShort[e]=s;return(n=function(t,r){return void 0===t&&(t=0),this.ruleInvocationStateUpdate(s,e,t),a.call(this,r)}).ruleName=e,n.originalGrammarAction=t,n},e.prototype.invokeRuleCatch=function(e,t,r){var n=1===this.RULE_STACK.length,o=t&&!this.isBackTracking()&&this.recoveryEnabled;if(Pr(e)){var i=e;if(o){var s,a=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(a))return i.resyncedTokens=this.reSyncTo(a),this.outputCst?((s=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,s):r();throw this.outputCst&&((s=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,i.partialCstResult=s),i}if(n)return this.moveToTerminatedState(),r();throw i}throw e},e.prototype.optionInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(Ot,t),n=this.nestedRuleBeforeClause(e,r);try{return this.optionInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.optionInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(Ot,t);return this.optionInternalLogic(e,t,r)},e.prototype.optionInternalLogic=function(e,t,r){var n,o,i=this,s=this.getLaFuncFromCache(r);if(void 0!==e.DEF){if(n=e.DEF,void 0!==(o=e.GATE)){var a=s;s=function(){return o.call(i)&&a.call(i)}}}else n=e;if(!0===s.call(this))return n.call(this)},e.prototype.atLeastOneInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(kt,e),n=this.nestedRuleBeforeClause(t,r);try{return this.atLeastOneInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.atLeastOneInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(kt,e);this.atLeastOneInternalLogic(e,t,r)},e.prototype.atLeastOneInternalLogic=function(e,t,r){var n,o,i=this,s=this.getLaFuncFromCache(r);if(void 0!==t.DEF){if(n=t.DEF,void 0!==(o=t.GATE)){var a=s;s=function(){return o.call(i)&&a.call(i)}}}else n=t;if(!0!==s.call(this))throw this.raiseEarlyExitException(e,Jt.REPETITION_MANDATORY,t.ERR_MSG);for(var l=this.doSingleRepetition(n);!0===s.call(this)&&!0===l;)l=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],s,kt,e,Kt)},e.prototype.atLeastOneSepFirstInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(Pt,e),n=this.nestedRuleBeforeClause(t,r);try{this.atLeastOneSepFirstInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.atLeastOneSepFirstInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(Pt,e);this.atLeastOneSepFirstInternalLogic(e,t,r)},e.prototype.atLeastOneSepFirstInternalLogic=function(e,t,r){var n=this,o=t.DEF,i=t.SEP;if(!0!==this.getLaFuncFromCache(r).call(this))throw this.raiseEarlyExitException(e,Jt.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);o.call(this);for(var s=function(){return n.tokenMatcher(n.LA(1),i)};!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,s,o,Xt],s,Pt,e,Xt)},e.prototype.manyInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(xt,e),n=this.nestedRuleBeforeClause(t,r);try{return this.manyInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.manyInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(xt,e);return this.manyInternalLogic(e,t,r)},e.prototype.manyInternalLogic=function(e,t,r){var n,o,i=this,s=this.getLaFuncFromCache(r);if(void 0!==t.DEF){if(n=t.DEF,void 0!==(o=t.GATE)){var a=s;s=function(){return o.call(i)&&a.call(i)}}}else n=t;for(var l=!0;!0===s.call(this)&&!0===l;)l=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],s,xt,e,jt,l)},e.prototype.manySepFirstInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(Lt,e),n=this.nestedRuleBeforeClause(t,r);try{this.manySepFirstInternalLogic(e,t,r)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.manySepFirstInternalNoCst=function(e,t){var r=this.getKeyForAutomaticLookahead(Lt,e);this.manySepFirstInternalLogic(e,t,r)},e.prototype.manySepFirstInternalLogic=function(e,t,r){var n=this,o=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){o.call(this);for(var s=function(){return n.tokenMatcher(n.LA(1),i)};!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,s,o,$t],s,Lt,e,$t)}},e.prototype.repetitionSepSecondInternal=function(e,t,r,n,o){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,o],r,Pt,e,o)},e.prototype.doSingleRepetition=function(e){var t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t},e.prototype.orInternalNoCst=function(e,t){var r=A(e)?e:e.DEF,n=this.getKeyForAutomaticLookahead(Nt,t),o=this.getLaFuncFromCache(n).call(this,r);if(void 0!==o)return r[o].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)},e.prototype.orInternal=function(e,t){var r=this.getKeyForAutomaticLookahead(Nt,t),n=this.nestedRuleBeforeClause(e,r);try{var o=A(e)?e:e.DEF,i=this.getLaFuncFromCache(r).call(this,o);if(void 0!==i){var s=o[i],a=this.nestedAltBeforeClause(s,t,Nt,i);try{return s.ALT.call(this)}finally{void 0!==a&&this.nestedRuleFinallyClause(a.shortName,a.nestedName)}}this.raiseNoAltException(t,e.ERR_MSG)}finally{void 0!==n&&this.nestedRuleFinallyClause(r,n)}},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Fr(t,e))}},e.prototype.subruleInternal=function(e,t,r){var n;try{var o=void 0!==r?r.ARGS:void 0;return n=e.call(this,t,o),this.cstPostNonTerminal(n,void 0!==r&&void 0!==r.LABEL?r.LABEL:e.ruleName),n}catch(t){this.subruleInternalError(t,r,e.ruleName)}},e.prototype.subruleInternalError=function(e,t,r){throw Pr(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:r),delete e.partialCstResult),e},e.prototype.consumeInternal=function(e,t,r){var n;try{var o=this.LA(1);!0===this.tokenMatcher(o,e)?(this.consumeToken(),n=o):this.consumeInternalError(e,o,r)}catch(r){n=this.consumeInternalRecovery(e,t,r)}return this.cstPostTerminal(void 0!==r&&void 0!==r.LABEL?r.LABEL:e.name,n),n},e.prototype.consumeInternalError=function(e,t,r){var n,o=this.LA(0);throw n=void 0!==r&&r.ERR_MSG?r.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Dr(n,t,o))},e.prototype.consumeInternalRecovery=function(e,t,r){if(!this.recoveryEnabled||"MismatchedTokenException"!==r.name||this.isBackTracking())throw r;var n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(e){throw e.name===Ur?r:e}},e.prototype.saveRecogState=function(){var e=this.errors,t=S(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK,LAST_EXPLICIT_RULE_STACK:this.LAST_EXPLICIT_RULE_STACK}},e.prototype.reloadRecogState=function(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(e,t,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t,e)},e.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},e.prototype.getCurrRuleFullName=function(){var e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]},e.prototype.shortRuleNameToFullName=function(e){return this.shortRuleNameToFull[e]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),tt)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}(),on=function(){function e(){}return e.prototype.initErrorHandler=function(e){this._errors=[],this.errorMessageProvider=D(e.errorMessageProvider,Sn.errorMessageProvider)},e.prototype.SAVE_ERROR=function(e){if(Pr(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:S(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:function(){return S(this._errors)},set:function(e){this._errors=e},enumerable:!0,configurable:!0}),e.prototype.raiseEarlyExitException=function(e,t,r){for(var n=this.getCurrRuleFullName(),o=lr(e,this.getGAstProductions()[n],t,this.maxLookahead)[0],i=[],s=1;s<=this.maxLookahead;s++)i.push(this.LA(s));var a=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:o,actual:i,previous:this.LA(0),customUserDescription:r,ruleName:n});throw this.SAVE_ERROR(new Br(a,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(e,t){for(var r=this.getCurrRuleFullName(),n=ar(e,this.getGAstProductions()[r],this.maxLookahead),o=[],i=1;i<=this.maxLookahead;i++)o.push(this.LA(i));var s=this.LA(0),a=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:n,actual:o,previous:s,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Hr(a,this.LA(1),s))},e}(),sn=function(){function e(){}return e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(e,t){var r=this.gastProductionsCache[e];if(p(r))throw Error("Rule ->"+e+"<- does not exist in this grammar.");return Zt([r],t,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(e){var t=h(e.ruleStack),r=this.getGAstProductions()[t];return new Yt(r,e).startWalking()},e}(),an={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(an);var ln=!0,hn=Math.pow(2,8)-1,cn=et({name:"RECORDING_PHASE_TOKEN",pattern:Ue.NA});ke([cn]);var un=rt(cn,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(un);var dn={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",children:{}},pn=function(){function e(){}return e.prototype.initGastRecorder=function(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var e=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var t=function(t){var r=t>0?t:"";e["CONSUME"+r]=function(e,r){return this.consumeInternalRecord(e,t,r)},e["SUBRULE"+r]=function(e,r){return this.subruleInternalRecord(e,t,r)},e["OPTION"+r]=function(e){return this.optionInternalRecord(e,t)},e["OR"+r]=function(e){return this.orInternalRecord(e,t)},e["MANY"+r]=function(e){this.manyInternalRecord(t,e)},e["MANY_SEP"+r]=function(e){this.manySepFirstInternalRecord(t,e)},e["AT_LEAST_ONE"+r]=function(e){this.atLeastOneInternalRecord(t,e)},e["AT_LEAST_ONE_SEP"+r]=function(e){this.atLeastOneSepFirstInternalRecord(t,e)}},r=0;r<10;r++)t(r);e.consume=function(e,t,r){return this.consumeInternalRecord(t,e,r)},e.subrule=function(e,t,r){return this.subruleInternalRecord(t,e,r)},e.option=function(e,t){return this.optionInternalRecord(t,e)},e.or=function(e,t){return this.orInternalRecord(t,e)},e.many=function(e,t){this.manyInternalRecord(e,t)},e.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},e.ACTION=e.ACTION_RECORD,e.BACKTRACK=e.BACKTRACK_RECORD,e.LA=e.LA_RECORD})},e.prototype.disableRecording=function(){var e=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var t=0;t<10;t++){var r=t>0?t:"";delete e["CONSUME"+r],delete e["SUBRULE"+r],delete e["OPTION"+r],delete e["OR"+r],delete e["MANY"+r],delete e["MANY_SEP"+r],delete e["AT_LEAST_ONE"+r],delete e["AT_LEAST_ONE_SEP"+r]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})},e.prototype.ACTION_RECORD=function(e){},e.prototype.BACKTRACK_RECORD=function(e,t){return function(){return!0}},e.prototype.LA_RECORD=function(e){return vn},e.prototype.topLevelRuleRecord=function(e,t){try{var r=new at({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording'}catch(t){throw e}throw e}},e.prototype.optionInternalRecord=function(e,t){return gn.call(this,ht,e,t)},e.prototype.atLeastOneInternalRecord=function(e,t){gn.call(this,ct,t,e)},e.prototype.atLeastOneSepFirstInternalRecord=function(e,t){gn.call(this,ut,t,e,ln)},e.prototype.manyInternalRecord=function(e,t){gn.call(this,dt,t,e)},e.prototype.manySepFirstInternalRecord=function(e,t){gn.call(this,pt,t,e,ln)},e.prototype.orInternalRecord=function(e,t){return fn.call(this,e,t)},e.prototype.subruleInternalRecord=function(e,t,r){if(Cn(t),!e||!1===v(e,"ruleName")){var n=new Error("<SUBRULE"+mn(t)+"> argument is invalid expecting a Parser method reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw n.KNOWN_RECORDER_ERROR=!0,n}var o=G(this.recordingProdStack),i=e.ruleName,s=new st({idx:t,nonTerminalName:i,referencedRule:void 0});return o.definition.push(s),this.outputCst?dn:an},e.prototype.consumeInternalRecord=function(e,t,r){if(Cn(t),!Pe(e)){var n=new Error("<CONSUME"+mn(t)+"> argument is invalid expecting a TokenType reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw n.KNOWN_RECORDER_ERROR=!0,n}var o=G(this.recordingProdStack),i=new ft({idx:t,terminalType:e});return o.definition.push(i),un},e}();function gn(e,t,r,n){void 0===n&&(n=!1),Cn(r);var o=G(this.recordingProdStack),i=g(t)?t:t.DEF,s=new e({definition:[],idx:r});return v(t,"NAME")&&(s.name=t.NAME),n&&(s.separator=t.SEP),v(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),i.call(this),o.definition.push(s),this.recordingProdStack.pop(),an}function fn(e,t){var r=this;Cn(t);var n=G(this.recordingProdStack),o=!1===A(e),i=!1===o?e:e.DEF,s=new gt({definition:[],idx:t,ignoreAmbiguities:o&&!0===e.IGNORE_AMBIGUITIES});v(e,"NAME")&&(s.name=e.NAME),v(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var a=k(i,function(e){return g(e.GATE)});return s.hasPredicates=a,n.definition.push(s),u(i,function(e){var t=new lt({definition:[]});s.definition.push(t),v(e,"NAME")&&(t.name=e.NAME),v(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:v(e,"GATE")&&(t.ignoreAmbiguities=!0),r.recordingProdStack.push(t),e.ALT.call(r),r.recordingProdStack.pop()}),an}function mn(e){return 0===e?"":""+e}function Cn(e){if(e<0||e>hn){var t=new Error("Invalid DSL Method idx value: <"+e+">\n\tIdx value must be a none negative value smaller than "+(hn+1));throw t.KNOWN_RECORDER_ERROR=!0,t}}var wn=function(){function e(){}return e.prototype.initPerformanceTracer=function(e){if(v(e,"traceInitPerf")){var t=e.traceInitPerf,r="number"==typeof t;this.traceInitMaxIdent=r?t:1/0,this.traceInitPerf=r?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=Sn.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;var r=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+"--\x3e <"+e+">");var n=j(t),o=n.time,i=n.value,s=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(r+"<-- <"+e+"> time: "+o+"ms"),this.traceInitIndent--,i}return t()},e}(),yn=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),vn=rt(tt,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(vn);var En,Sn=Object.freeze({recoveryEnabled:!1,maxLookahead:4,ignoredIssues:{},dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Sr,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),bn=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});function Rn(e){return void 0===e&&(e=void 0),function(){return e}}!function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.INVALID_NESTED_RULE_NAME=10]="INVALID_NESTED_RULE_NAME",e[e.DUPLICATE_NESTED_NAME=11]="DUPLICATE_NESTED_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=12]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=13]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=14]="TOO_MANY_ALTS"}(En||(En={}));var Tn,_n=function(){function e(e,t){void 0===t&&(t=Sn),this.ignoredIssues=Sn.ignoredIssues,this.definitionErrors=[],this.selfAnalysisDone=!1;var r=this;r.initErrorHandler(t),r.initLexerAdapter(),r.initLooksAhead(t),r.initRecognizerEngine(e,t),r.initRecoverable(t),r.initTreeBuilder(t),r.initContentAssist(),r.initGastRecorder(t),r.initPerformanceTracer(t),v(t,"ignoredIssues")&&t.ignoredIssues!==Sn.ignoredIssues&&W("The <ignoredIssues> IParserConfig property is soft-deprecated and will be removed in future versions.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead."),this.ignoredIssues=v(t,"ignoredIssues")?t.ignoredIssues:Sn.ignoredIssues,this.skipValidations=v(t,"skipValidations")?t.skipValidations:Sn.skipValidations}return e.performSelfAnalysis=function(e){e.performSelfAnalysis()},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var r;t.selfAnalysisDone=!0;var n=t.className;t.TRACE_INIT("toFastProps",function(){Y(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),u(t.definedRulesNames,function(e){var r=t[e].originalGrammarAction,n=void 0;t.TRACE_INIT(e+" Rule",function(){n=t.topLevelRuleRecord(e,r)}),t.gastProductionsCache[e]=n})}finally{t.disableRecording()}});var i=[];if(t.TRACE_INIT("Grammar Resolving",function(){i=Mr({rules:s(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,i)}),t.TRACE_INIT("Grammar Validations",function(){if(o(i)&&!1===t.skipValidations){var e=Ar({rules:s(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:s(t.tokensMap),ignoredIssues:t.ignoredIssues,errMsgProvider:Rr,grammarName:n});t.definitionErrors.push.apply(t.definitionErrors,e)}}),o(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var e,r,n=(e=s(t.gastProductionsCache),r={},u(e,function(e){var t=new It(e).startWalking();L(r,t)}),r);t.resyncFollows=n}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(s(t.gastProductionsCache))})),t.TRACE_INIT("expandAllNestedRuleNames",function(){var e,r,n,o=(e=s(t.gastProductionsCache),r=t.fullRuleNameToShort,n={allRuleNames:[]},u(e,function(e){var t=r[e.name];n.allRuleNames.push(e.name);var o=new Wt(t);e.accept(o),u(o.result,function(t){t.def,t.key;var r=t.name;n.allRuleNames.push(e.name+r)})}),n);t.allRuleNames=o.allRuleNames}),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!o(t.definitionErrors))throw r=a(t.definitionErrors,function(e){return e.message}),new Error("Parser Definition Errors detected:\n "+r.join("\n-------------------------------\n"))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();Tn=_n,[zr,Gr,en,tn,nn,rn,on,sn,pn,wn].forEach(function(e){var t=e.prototype;Object.getOwnPropertyNames(t).forEach(function(r){if("constructor"!==r){var n=Object.getOwnPropertyDescriptor(t,r);n&&(n.get||n.set)?Object.defineProperty(Tn.prototype,r,n):Tn.prototype[r]=e.prototype[r]}})});var Mn=function(e){function t(t,r){void 0===r&&(r=Sn);var n=b(r);return n.outputCst=!0,e.call(this,t,n)||this}return yn(t,e),t}(_n),An=function(e){function t(t,r){void 0===r&&(r=Sn);var n=b(r);return n.outputCst=!1,e.call(this,t,n)||this}return yn(t,e),t}(_n);function In(e,t){var r=void 0===t?{}:t,o=r.resourceBase,i=void 0===o?"https://unpkg.com/chevrotain@"+n+"/diagrams/":o,s=r.css;return'\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n'+("\n<link rel='stylesheet' href='"+(void 0===s?"https://unpkg.com/chevrotain@"+n+"/diagrams/diagrams.css":s)+"'>\n")+("\n<script src='"+i+"vendor/railroad-diagrams.js'><\/script>\n<script src='"+i+"src/diagrams_builder.js'><\/script>\n<script src='"+i+"src/diagrams_behavior.js'><\/script>\n<script src='"+i+"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div> \n'+("\n<script>\n window.serializedGrammar = "+JSON.stringify(e,null," ")+";\n<\/script>\n")+'\n<script>\n var diagramsDiv = document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}var Nn="\n";function On(e){return"\nfunction "+e.name+"(tokenVocabulary, config) {\n // invoke super constructor\n // No support for embedded actions currently, so we can 'hardcode'\n // The use of CstParser.\n chevrotain.CstParser.call(this, tokenVocabulary, config)\n\n const $ = this\n\n "+(a(e.rules,function(e){return function(e,t){var r=Hn(t,'$.RULE("'+e.name+'", function() {')+Nn;return r+=Dn(e.definition,t+1),r+=Hn(t+1,"})")+Nn}(e,1)}).join("\n")+"\n\n // very important to call this after all the rules have been defined.\n // otherwise the parser may not work correctly as it will lack information\n // derived during the self analysis phase.\n this.performSelfAnalysis(this)\n}\n\n// inheritance as implemented in javascript in the previous decade... :(\n")+e.name+".prototype = Object.create(chevrotain.CstParser.prototype)\n"+e.name+".prototype.constructor = "+e.name+" \n "}function xn(e,t){var r=Hn(t,"$.OR"+e.idx+"([")+Nn,n=a(e.definition,function(e){return function(e,t){var r=Hn(t,"{")+Nn;e.name&&(r+=Hn(t+1,'NAME: "'+e.name+'",')+Nn);return r+=Hn(t+1,"ALT: function() {")+Nn,r+=Dn(e.definition,t+1),r+=Hn(t+1,"}")+Nn,r+=Hn(t,"}"),r}(e,t+1)});return r+=n.join(",\n"),r+=Nn+Hn(t,"])\n")}function kn(e,t){if(e instanceof st)return function(e,t){return Hn(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+Nn)}(e,t);if(e instanceof ht)return Ln("OPTION",e,t);if(e instanceof ct)return Ln("AT_LEAST_ONE",e,t);if(e instanceof ut)return Ln("AT_LEAST_ONE_SEP",e,t);if(e instanceof pt)return Ln("MANY_SEP",e,t);if(e instanceof dt)return Ln("MANY",e,t);if(e instanceof gt)return xn(e,t);if(e instanceof ft)return function(e,t){var r=e.terminalType.name;return Hn(t,"$.CONSUME"+e.idx+"(this.tokensMap."+r+")"+Nn)}(e,t);if(e instanceof lt)return Dn(e.definition,t);throw Error("non exhaustive match")}function Ln(e,t,r){var n=Hn(r,"$."+(e+t.idx)+"(");return t.name||t.separator?(n+="{\n",t.name&&(n+=Hn(r+1,'NAME: "'+t.name+'"')+","+Nn),t.separator&&(n+=Hn(r+1,"SEP: this.tokensMap."+t.separator.name)+","+Nn),n+="DEF: "+Pn(t.definition,r+2)+Nn,n+=Hn(r,"}")+Nn):n+=Pn(t.definition,r+1),n+=Hn(r,")")+Nn}function Pn(e,t){var r="function() {\n";return r+=Dn(e,t),r+=Hn(t,"}")+Nn}function Dn(e,t){var r="";return u(e,function(e){r+=kn(e,t+1)}),r}function Hn(e,t){return Array(4*e+1).join(" ")+t}function Fn(e){var t=function(e){return" \n"+On(e)+"\nreturn new "+e.name+"(tokenVocabulary, config) \n"}({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(t){return n(e.tokenVocabulary,t,r(39250))}}function Bn(e){return function(e){return"\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['chevrotain'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('chevrotain'));\n } else {\n // Browser globals (root is window)\n root.returnExports = factory(root.b);\n }\n}(typeof self !== 'undefined' ? self : this, function (chevrotain) {\n\n"+On(e)+"\n \nreturn {\n "+e.name+": "+e.name+" \n}\n}));\n"}({name:e.name,rules:e.rules})}function Vn(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")}},93398(e,t,r){var n={"./af":55962,"./af.js":55962,"./ar":54070,"./ar-dz":65109,"./ar-dz.js":65109,"./ar-kw":60549,"./ar-kw.js":60549,"./ar-ly":60036,"./ar-ly.js":60036,"./ar-ma":42981,"./ar-ma.js":42981,"./ar-ps":36634,"./ar-ps.js":36634,"./ar-sa":52863,"./ar-sa.js":52863,"./ar-tn":87513,"./ar-tn.js":87513,"./ar.js":54070,"./az":73374,"./az.js":73374,"./be":75720,"./be.js":75720,"./bg":3538,"./bg.js":3538,"./bm":11872,"./bm.js":11872,"./bn":32153,"./bn-bd":83252,"./bn-bd.js":83252,"./bn.js":32153,"./bo":42666,"./bo.js":42666,"./br":2509,"./br.js":2509,"./bs":58158,"./bs.js":58158,"./ca":72109,"./ca.js":72109,"./cs":763,"./cs.js":763,"./cv":45320,"./cv.js":45320,"./cy":24501,"./cy.js":24501,"./da":69102,"./da.js":69102,"./de":32770,"./de-at":32474,"./de-at.js":32474,"./de-ch":28636,"./de-ch.js":28636,"./de.js":32770,"./dv":2943,"./dv.js":2943,"./el":83788,"./el.js":83788,"./en-au":99813,"./en-au.js":99813,"./en-ca":68207,"./en-ca.js":68207,"./en-gb":53686,"./en-gb.js":53686,"./en-ie":1181,"./en-ie.js":1181,"./en-il":32822,"./en-il.js":32822,"./en-in":2732,"./en-in.js":2732,"./en-nz":33455,"./en-nz.js":33455,"./en-sg":63453,"./en-sg.js":63453,"./eo":42069,"./eo.js":42069,"./es":28465,"./es-do":91375,"./es-do.js":91375,"./es-mx":47859,"./es-mx.js":47859,"./es-us":55766,"./es-us.js":55766,"./es.js":28465,"./et":65092,"./et.js":65092,"./eu":46539,"./eu.js":46539,"./fa":7072,"./fa.js":7072,"./fi":94216,"./fi.js":94216,"./fil":92334,"./fil.js":92334,"./fo":80350,"./fo.js":80350,"./fr":36329,"./fr-ca":97278,"./fr-ca.js":97278,"./fr-ch":47797,"./fr-ch.js":47797,"./fr.js":36329,"./fy":80152,"./fy.js":80152,"./ga":89577,"./ga.js":89577,"./gd":61094,"./gd.js":61094,"./gl":64078,"./gl.js":64078,"./gom-deva":2527,"./gom-deva.js":2527,"./gom-latn":49744,"./gom-latn.js":49744,"./gu":469,"./gu.js":469,"./he":75590,"./he.js":75590,"./hi":20514,"./hi.js":20514,"./hr":74103,"./hr.js":74103,"./hu":41238,"./hu.js":41238,"./hy-am":13745,"./hy-am.js":13745,"./id":67320,"./id.js":67320,"./is":77437,"./is.js":77437,"./it":81384,"./it-ch":46258,"./it-ch.js":46258,"./it.js":81384,"./ja":67772,"./ja.js":67772,"./jv":88921,"./jv.js":88921,"./ka":6229,"./ka.js":6229,"./kk":92443,"./kk.js":92443,"./km":90433,"./km.js":90433,"./kn":60296,"./kn.js":60296,"./ko":94911,"./ko.js":94911,"./ku":20745,"./ku-kmr":6802,"./ku-kmr.js":6802,"./ku.js":20745,"./ky":87085,"./ky.js":87085,"./lb":71219,"./lb.js":71219,"./lo":50056,"./lo.js":50056,"./lt":92169,"./lt.js":92169,"./lv":83367,"./lv.js":83367,"./me":10403,"./me.js":10403,"./mi":39951,"./mi.js":39951,"./mk":68881,"./mk.js":68881,"./ml":21860,"./ml.js":21860,"./mn":85742,"./mn.js":85742,"./mr":86602,"./mr.js":86602,"./ms":76089,"./ms-my":6036,"./ms-my.js":6036,"./ms.js":76089,"./mt":40556,"./mt.js":40556,"./my":54271,"./my.js":54271,"./nb":39329,"./nb.js":39329,"./ne":41812,"./ne.js":41812,"./nl":30355,"./nl-be":97005,"./nl-be.js":97005,"./nl.js":30355,"./nn":28949,"./nn.js":28949,"./oc-lnc":52661,"./oc-lnc.js":52661,"./pa-in":1872,"./pa-in.js":1872,"./pl":84101,"./pl.js":84101,"./pt":64605,"./pt-br":20678,"./pt-br.js":20678,"./pt.js":64605,"./ro":60698,"./ro.js":60698,"./ru":47464,"./ru.js":47464,"./sd":594,"./sd.js":594,"./se":68225,"./se.js":68225,"./si":51957,"./si.js":51957,"./sk":36467,"./sk.js":36467,"./sl":16426,"./sl.js":16426,"./sq":42093,"./sq.js":42093,"./sr":17508,"./sr-cyrl":34203,"./sr-cyrl.js":34203,"./sr.js":17508,"./ss":16779,"./ss.js":16779,"./sv":84888,"./sv.js":84888,"./sw":19247,"./sw.js":19247,"./ta":28382,"./ta.js":28382,"./te":41266,"./te.js":41266,"./tet":88356,"./tet.js":88356,"./tg":65032,"./tg.js":65032,"./th":27317,"./th.js":27317,"./tk":20620,"./tk.js":20620,"./tl-ph":36018,"./tl-ph.js":36018,"./tlh":69373,"./tlh.js":69373,"./tr":31787,"./tr.js":31787,"./tzl":63775,"./tzl.js":63775,"./tzm":29160,"./tzm-latn":51784,"./tzm-latn.js":51784,"./tzm.js":29160,"./ug-cn":85555,"./ug-cn.js":85555,"./uk":95081,"./uk.js":95081,"./ur":10866,"./ur.js":10866,"./uz":78282,"./uz-latn":44874,"./uz-latn.js":44874,"./uz.js":78282,"./vi":60664,"./vi.js":60664,"./x-pseudo":61292,"./x-pseudo.js":61292,"./yo":27577,"./yo.js":27577,"./zh-cn":99949,"./zh-cn.js":99949,"./zh-hk":31937,"./zh-hk.js":31937,"./zh-mo":65876,"./zh-mo.js":65876,"./zh-tw":44057,"./zh-tw.js":44057};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=93398},75713(e,t){var r,n,o;"undefined"!=typeof self&&self,n=[],void 0===(o="function"==typeof(r=function(){function e(){}e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx},e.prototype.pattern=function(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");var t=this.disjunction();this.consumeChar("/");for(var r={type:"Flags",global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":a(r,"global");break;case"i":a(r,"ignoreCase");break;case"m":a(r,"multiLine");break;case"u":a(r,"unicode");break;case"y":a(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t}},e.prototype.disjunction=function(){var e=[];for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e}},e.prototype.alternative=function(){for(var e=[];this.isTerm();)e.push(this.term());return{type:"Alternative",value:e}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){switch(this.popChar()){case"^":return{type:"StartAnchor"};case"$":return{type:"EndAnchor"};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary"};case"B":return{type:"NonWordBoundary"}}throw Error("Invalid Assertion Escape");case"(":var e;switch(this.consumeChar("?"),this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}l(e);var t=this.disjunction();return this.consumeChar(")"),{type:e,value:t}}h()},e.prototype.quantifier=function(e){var t;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var r=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:r,atMost:r};break;case",":t=this.isDigit()?{atLeast:r,atMost:this.integerIncludingZero()}:{atLeast:r,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;l(t)}if(!0!==e||void 0!==t)return l(t),"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t},e.prototype.atom=function(){var e;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),l(e),this.isQuantifier()&&(e.quantifier=this.quantifier()),e},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i("\n"),i("\r"),i("\u2028"),i("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},e.prototype.characterClassEscape=function(){var e,t=!1;switch(this.popChar()){case"d":e=c;break;case"D":e=c,t=!0;break;case"s":e=d;break;case"S":e=d,t=!0;break;case"w":e=u;break;case"W":e=u,t=!0}return l(e),{type:"Set",value:e,complement:t}},e.prototype.controlEscapeAtom=function(){var e;switch(this.popChar()){case"f":e=i("\f");break;case"n":e=i("\n");break;case"r":e=i("\r");break;case"t":e=i("\t");break;case"v":e=i("\v")}return l(e),{type:"Character",value:e}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){return{type:"Character",value:i(this.popChar())}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:i(this.popChar())}}},e.prototype.characterClass=function(){var e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var r=this.classAtom();if("Character"===r.type&&this.isRangeDash()){this.consumeChar("-");var n=this.classAtom();if("Character"===n.type){if(n.value<r.value)throw Error("Range out of order in character class");e.push({from:r.value,to:n.value})}else s(r.value,e),e.push(i("-")),s(n.value,e)}else s(r.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:i("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.group=function(){var e=!0;this.consumeChar("("),"?"===this.peekChar(0)?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;var t=this.disjunction();this.consumeChar(")");var r={type:"Group",capturing:e,value:t};return e&&(r.idx=this.groupIdx),r},e.prototype.positiveInteger=function(){var e=this.popChar();if(!1===o.test(e))throw Error("Expecting a positive integer");for(;n.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.integerIncludingZero=function(){var e=this.popChar();if(!1===n.test(e))throw Error("Expecting an integer");for(;n.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.patternCharacter=function(){var e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:i(e)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(e){switch(void 0===e&&(e=0),this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},e.prototype.isQuantifier=function(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(e){for(var t="",n=0;n<e;n++){var o=this.popChar();if(!1===r.test(o))throw Error("Expecting a HexDecimal digits");t+=o}return{type:"Character",value:parseInt(t,16)}},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.input[this.idx+e]},e.prototype.popChar=function(){var e=this.peekChar(0);return this.consumeChar(),e},e.prototype.consumeChar=function(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++};var t,r=/[0-9a-fA-F]/,n=/[0-9]/,o=/[1-9]/;function i(e){return e.charCodeAt(0)}function s(e,t){void 0!==e.length?e.forEach(function(e){t.push(e)}):t.push(e)}function a(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t]=!0}function l(e){if(void 0===e)throw Error("Internal Error - Should never get here!")}function h(){throw Error("Internal Error - Should never get here!")}var c=[];for(t=i("0");t<=i("9");t++)c.push(t);var u=[i("_")].concat(c);for(t=i("a");t<=i("z");t++)u.push(t);for(t=i("A");t<=i("Z");t++)u.push(t);var d=[i(" "),i("\f"),i("\n"),i("\r"),i("\t"),i("\v"),i("\t"),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i("\u2028"),i("\u2029"),i(" "),i(" "),i(" "),i("\ufeff")];function p(){}return p.prototype.visitChildren=function(e){for(var t in e){var r=e[t];e.hasOwnProperty(t)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach(function(e){this.visit(e)},this))}},p.prototype.visit=function(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)},p.prototype.visitPattern=function(e){},p.prototype.visitFlags=function(e){},p.prototype.visitDisjunction=function(e){},p.prototype.visitAlternative=function(e){},p.prototype.visitStartAnchor=function(e){},p.prototype.visitEndAnchor=function(e){},p.prototype.visitWordBoundary=function(e){},p.prototype.visitNonWordBoundary=function(e){},p.prototype.visitLookahead=function(e){},p.prototype.visitNegativeLookahead=function(e){},p.prototype.visitCharacter=function(e){},p.prototype.visitSet=function(e){},p.prototype.visitGroup=function(e){},p.prototype.visitGroupBackReference=function(e){},p.prototype.visitQuantifier=function(e){},{RegExpParser:e,BaseRegExpVisitor:p,VERSION:"0.4.0"}})?r.apply(t,n):r)||(e.exports=o)},3732(e){function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function o(){n.off(e,o),t.apply(r,arguments)}return o._=t,this.on(e,o,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],o=[];if(n&&t)for(var i=0,s=n.length;i<s;i++)n[i].fn!==t&&n[i].fn._!==t&&o.push(n[i]);return o.length?r[e]=o:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t},51603(e,t,r){"use strict";
98
98
  /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:n,setPrototypeOf:o,isFrozen:i,getPrototypeOf:s,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:h,create:c}=Object,{apply:u,construct:d}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),h||(h=function(e){return e}),u||(u=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return e.apply(t,n)}),d||(d=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});const p=A(Array.prototype.forEach),g=A(Array.prototype.lastIndexOf),f=A(Array.prototype.pop),m=A(Array.prototype.push),C=A(Array.prototype.splice),w=A(String.prototype.toLowerCase),y=A(String.prototype.toString),v=A(String.prototype.match),E=A(String.prototype.replace),S=A(String.prototype.indexOf),b=A(String.prototype.trim),R=A(Object.prototype.hasOwnProperty),T=A(RegExp.prototype.test),_=(M=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return d(M,t)});var M;function A(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return u(e,t,n)}}function I(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;o&&o(e,null);let n=t.length;for(;n--;){let o=t[n];if("string"==typeof o){const e=r(o);e!==o&&(i(t)||(t[n]=e),o=e)}e[o]=!0}return e}function N(e){for(let t=0;t<e.length;t++){R(e,t)||(e[t]=null)}return e}function O(e){const t=c(null);for(const[r,o]of n(e)){R(e,r)&&(Array.isArray(o)?t[r]=N(o):o&&"object"==typeof o&&o.constructor===Object?t[r]=O(o):t[r]=o)}return t}function x(e,t){for(;null!==e;){const r=a(e,t);if(r){if(r.get)return A(r.get);if("function"==typeof r.value)return A(r.value)}e=s(e)}return function(){return null}}const k=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),F=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=l(["#text"]),V=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),U=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),W=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),z=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Y=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=h(/<%[\w\W]*|[\w\W]*%>/gm),j=h(/\$\{[\w\W]*/gm),$=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),K=h(/^aria-[\-\w]+$/),X=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=h(/^(?:\w+script|data):/i),Z=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=h(/^html$/i),J=h(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:K,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:J,DATA_ATTR:$,DOCTYPE_NAME:Q,ERB_EXPR:G,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:Y,TMPLIT_EXPR:j});const te=1,re=3,ne=7,oe=8,ie=9,se=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se();const r=t=>e(t);if(r.version="3.3.1",r.removed=[],!t||!t.document||t.document.nodeType!==ie||!t.Element)return r.isSupported=!1,r;let{document:o}=t;const i=o,s=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:h,Node:u,Element:d,NodeFilter:M,NamedNodeMap:A=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:N,DOMParser:Y,trustedTypes:G}=t,j=d.prototype,$=x(j,"cloneNode"),K=x(j,"remove"),q=x(j,"nextSibling"),Z=x(j,"childNodes"),J=x(j,"parentNode");if("function"==typeof h){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ae,le="";const{implementation:he,createNodeIterator:ce,createDocumentFragment:ue,getElementsByTagName:de}=o,{importNode:pe}=i;let ge={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof n&&"function"==typeof J&&he&&void 0!==he.createHTMLDocument;const{MUSTACHE_EXPR:fe,ERB_EXPR:me,TMPLIT_EXPR:Ce,DATA_ATTR:we,ARIA_ATTR:ye,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:Se}=ee;let{IS_ALLOWED_URI:be}=ee,Re=null;const Te=I({},[...k,...L,...P,...H,...B]);let _e=null;const Me=I({},[...V,...U,...W,...z]);let Ae=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ie=null,Ne=null;const Oe=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xe=!0,ke=!0,Le=!1,Pe=!0,De=!1,He=!0,Fe=!1,Be=!1,Ve=!1,Ue=!1,We=!1,ze=!1,Ye=!0,Ge=!1,je=!0,$e=!1,Ke={},Xe=null;const qe=I({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ze=null;const Qe=I({},["audio","video","img","source","image","track"]);let Je=null;const et=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let ot=nt,it=!1,st=null;const at=I({},[tt,rt,nt],y);let lt=I({},["mi","mo","mn","ms","mtext"]),ht=I({},["annotation-xml"]);const ct=I({},["title","style","font","a","script"]);let ut=null;const dt=["application/xhtml+xml","text/html"];let pt=null,gt=null;const ft=o.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},Ct=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!gt||gt!==e){if(e&&"object"==typeof e||(e={}),e=O(e),ut=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===ut?y:w,Re=R(e,"ALLOWED_TAGS")?I({},e.ALLOWED_TAGS,pt):Te,_e=R(e,"ALLOWED_ATTR")?I({},e.ALLOWED_ATTR,pt):Me,st=R(e,"ALLOWED_NAMESPACES")?I({},e.ALLOWED_NAMESPACES,y):at,Je=R(e,"ADD_URI_SAFE_ATTR")?I(O(et),e.ADD_URI_SAFE_ATTR,pt):et,Ze=R(e,"ADD_DATA_URI_TAGS")?I(O(Qe),e.ADD_DATA_URI_TAGS,pt):Qe,Xe=R(e,"FORBID_CONTENTS")?I({},e.FORBID_CONTENTS,pt):qe,Ie=R(e,"FORBID_TAGS")?I({},e.FORBID_TAGS,pt):O({}),Ne=R(e,"FORBID_ATTR")?I({},e.FORBID_ATTR,pt):O({}),Ke=!!R(e,"USE_PROFILES")&&e.USE_PROFILES,xe=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,He=!1!==e.SAFE_FOR_XML,Fe=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,Ve=e.FORCE_BODY||!1,Ye=!1!==e.SANITIZE_DOM,Ge=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||X,ot=e.NAMESPACE||nt,lt=e.MATHML_TEXT_INTEGRATION_POINTS||lt,ht=e.HTML_INTEGRATION_POINTS||ht,Ae=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(ke=!1),We&&(Ue=!0),Ke&&(Re=I({},B),_e=[],!0===Ke.html&&(I(Re,k),I(_e,V)),!0===Ke.svg&&(I(Re,L),I(_e,U),I(_e,z)),!0===Ke.svgFilters&&(I(Re,P),I(_e,U),I(_e,z)),!0===Ke.mathMl&&(I(Re,H),I(_e,W),I(_e,z))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Oe.tagCheck=e.ADD_TAGS:(Re===Te&&(Re=O(Re)),I(Re,e.ADD_TAGS,pt))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Oe.attributeCheck=e.ADD_ATTR:(_e===Me&&(_e=O(_e)),I(_e,e.ADD_ATTR,pt))),e.ADD_URI_SAFE_ATTR&&I(Je,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&(Xe===qe&&(Xe=O(Xe)),I(Xe,e.FORBID_CONTENTS,pt)),e.ADD_FORBID_CONTENTS&&(Xe===qe&&(Xe=O(Xe)),I(Xe,e.ADD_FORBID_CONTENTS,pt)),je&&(Re["#text"]=!0),Fe&&I(Re,["html","head","body"]),Re.table&&(I(Re,["tbody"]),delete Ie.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ae=e.TRUSTED_TYPES_POLICY,le=ae.createHTML("")}else void 0===ae&&(ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(G,s)),null!==ae&&"string"==typeof le&&(le=ae.createHTML(""));l&&l(e),gt=e}},wt=I({},[...L,...P,...D]),yt=I({},[...H,...F]),vt=function(e){m(r.removed,{element:e});try{J(e).removeChild(e)}catch(t){K(e)}},Et=function(e,t){try{m(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ue||We)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},St=function(e){let t=null,r=null;if(Ve)e="<remove></remove>"+e;else{const t=v(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===ut&&ot===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=ae?ae.createHTML(e):e;if(ot===nt)try{t=(new Y).parseFromString(n,ut)}catch(e){}if(!t||!t.documentElement){t=he.createDocument(ot,"template",null);try{t.documentElement.innerHTML=it?le:n}catch(e){}}const i=t.body||t.documentElement;return e&&r&&i.insertBefore(o.createTextNode(r),i.childNodes[0]||null),ot===nt?de.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:i},bt=function(e){return ce.call(e.ownerDocument||e,e,M.SHOW_ELEMENT|M.SHOW_COMMENT|M.SHOW_TEXT|M.SHOW_PROCESSING_INSTRUCTION|M.SHOW_CDATA_SECTION,null)},Rt=function(e){return e instanceof N&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof A)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Tt=function(e){return"function"==typeof u&&e instanceof u};function _t(e,t,n){p(e,e=>{e.call(r,t,n,gt)})}const Mt=function(e){let t=null;if(_t(ge.beforeSanitizeElements,e,null),Rt(e))return vt(e),!0;const n=pt(e.nodeName);if(_t(ge.uponSanitizeElement,e,{tagName:n,allowedTags:Re}),He&&e.hasChildNodes()&&!Tt(e.firstElementChild)&&T(/<[/\w!]/g,e.innerHTML)&&T(/<[/\w!]/g,e.textContent))return vt(e),!0;if(e.nodeType===ne)return vt(e),!0;if(He&&e.nodeType===oe&&T(/<[/\w]/g,e.data))return vt(e),!0;if(!(Oe.tagCheck instanceof Function&&Oe.tagCheck(n))&&(!Re[n]||Ie[n])){if(!Ie[n]&&It(n)){if(Ae.tagNameCheck instanceof RegExp&&T(Ae.tagNameCheck,n))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))return!1}if(je&&!Xe[n]){const t=J(e)||e.parentNode,r=Z(e)||e.childNodes;if(r&&t){for(let n=r.length-1;n>=0;--n){const o=$(r[n],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,q(e))}}}return vt(e),!0}return e instanceof d&&!function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});const r=w(e.tagName),n=w(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===nt?"svg"===r:t.namespaceURI===tt?"svg"===r&&("annotation-xml"===n||lt[n]):Boolean(wt[r]):e.namespaceURI===tt?t.namespaceURI===nt?"math"===r:t.namespaceURI===rt?"math"===r&&ht[n]:Boolean(yt[r]):e.namespaceURI===nt?!(t.namespaceURI===rt&&!ht[n])&&!(t.namespaceURI===tt&&!lt[n])&&!yt[r]&&(ct[r]||!wt[r]):!("application/xhtml+xml"!==ut||!st[e.namespaceURI]))}(e)?(vt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!T(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&e.nodeType===re&&(t=e.textContent,p([fe,me,Ce],e=>{t=E(t,e," ")}),e.textContent!==t&&(m(r.removed,{element:e.cloneNode()}),e.textContent=t)),_t(ge.afterSanitizeElements,e,null),!1):(vt(e),!0)},At=function(e,t,r){if(Ye&&("id"===t||"name"===t)&&(r in o||r in ft))return!1;if(ke&&!Ne[t]&&T(we,t));else if(xe&&T(ye,t));else if(Oe.attributeCheck instanceof Function&&Oe.attributeCheck(t,e));else if(!_e[t]||Ne[t]){if(!(It(e)&&(Ae.tagNameCheck instanceof RegExp&&T(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&T(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t,e))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&T(Ae.tagNameCheck,r)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(r))))return!1}else if(Je[t]);else if(T(be,E(r,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(r,"data:")||!Ze[e]){if(Le&&!T(ve,E(r,Ee,"")));else if(r)return!1}else;return!0},It=function(e){return"annotation-xml"!==e&&v(e,Se)},Nt=function(e){_t(ge.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Rt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_e,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:s,namespaceURI:a,value:l}=i,h=pt(s),c=l;let u="value"===s?c:b(c);if(n.attrName=h,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,_t(ge.uponSanitizeAttribute,e,n),u=n.attrValue,!Ge||"id"!==h&&"name"!==h||(Et(s,e),u="user-content-"+u),He&&T(/((--!?|])>)|<\/(style|title|textarea)/i,u)){Et(s,e);continue}if("attributename"===h&&v(u,"href")){Et(s,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Et(s,e);continue}if(!Pe&&T(/\/>/i,u)){Et(s,e);continue}De&&p([fe,me,Ce],e=>{u=E(u,e," ")});const d=pt(e.nodeName);if(At(d,h,u)){if(ae&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(a);else switch(G.getAttributeType(d,h)){case"TrustedHTML":u=ae.createHTML(u);break;case"TrustedScriptURL":u=ae.createScriptURL(u)}if(u!==c)try{a?e.setAttributeNS(a,s,u):e.setAttribute(s,u),Rt(e)?vt(e):f(r.removed)}catch(t){Et(s,e)}}else Et(s,e)}_t(ge.afterSanitizeAttributes,e,null)},Ot=function e(t){let r=null;const n=bt(t);for(_t(ge.beforeSanitizeShadowDOM,t,null);r=n.nextNode();)_t(ge.uponSanitizeShadowNode,r,null),Mt(r),Nt(r),r.content instanceof a&&e(r.content);_t(ge.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,s=null,l=null;if(it=!e,it&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Tt(e)){if("function"!=typeof e.toString)throw _("toString is not a function");if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Be||Ct(t),r.removed=[],"string"==typeof e&&($e=!1),$e){if(e.nodeName){const t=pt(e.nodeName);if(!Re[t]||Ie[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof u)n=St("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===te&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Ue&&!De&&!Fe&&-1===e.indexOf("<"))return ae&&ze?ae.createHTML(e):e;if(n=St(e),!n)return Ue?null:ze?le:""}n&&Ve&&vt(n.firstChild);const h=bt($e?e:n);for(;s=h.nextNode();)Mt(s),Nt(s),s.content instanceof a&&Ot(s.content);if($e)return e;if(Ue){if(We)for(l=ue.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(_e.shadowroot||_e.shadowrootmode)&&(l=pe.call(i,l,!0)),l}let c=Fe?n.outerHTML:n.innerHTML;return Fe&&Re["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&T(Q,n.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+c),De&&p([fe,me,Ce],e=>{c=E(c,e," ")}),ae&&ze?ae.createHTML(c):c},r.setConfig=function(){Ct(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Be=!0},r.clearConfig=function(){gt=null,Be=!1},r.isValidAttribute=function(e,t,r){gt||Ct({});const n=pt(e),o=pt(t);return At(n,o,r)},r.addHook=function(e,t){"function"==typeof t&&m(ge[e],t)},r.removeHook=function(e,t){if(void 0!==t){const r=g(ge[e],t);return-1===r?void 0:C(ge[e],r,1)[0]}return f(ge[e])},r.removeHooks=function(e){ge[e]=[]},r.removeAllHooks=function(){ge={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();e.exports=ae,window.DOMPurify=r(51603)},37539(e,t,r){(e=r.nmd(e)).exports=function(){"use strict";var t,n;function o(){return t.apply(null,arguments)}function i(e){t=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var r,n=[],o=e.length;for(r=0;r<o;++r)n.push(t(e[r],r));return n}function g(e,t){for(var r in t)l(t,r)&&(e[r]=t[r]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,r,n){return Kr(e,t,r,n,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function C(e){return null==e._pf&&(e._pf=m()),e._pf}function w(e){var t=null,r=!1,o=e._d&&!isNaN(e._d.getTime());return o&&(t=C(e),r=n.call(t.parsedDateParts,function(e){return null!=e}),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?o:(e._isValid=o,e._isValid)}function y(e){var t=f(NaN);return null!=e?g(C(t),e):C(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var v=o.momentProperties=[],E=!1;function S(e,t){var r,n,o,i=v.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=C(t)),c(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)c(o=t[n=v[r]])||(e[n]=o);return e}function b(e){S(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===E&&(E=!0,o.updateOffset(this),E=!1)}function R(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function T(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var r=!0;return g(function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),r){var n,i,s,a=[],h=arguments.length;for(i=0;i<h;i++){if(n="","object"==typeof arguments[i]){for(s in n+="\n["+i+"] ",arguments[0])l(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[i];a.push(n)}T(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),r=!1}return t.apply(this,arguments)},t)}var M,A={};function I(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),A[e]||(T(t),A[e]=!0)}function N(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e){var t,r;for(r in e)l(e,r)&&(N(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function x(e,t){var r,n=g({},e);for(r in t)l(t,r)&&(a(e[r])&&a(t[r])?(n[r]={},g(n[r],e[r]),g(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)l(e,r)&&!l(t,r)&&a(e[r])&&(n[r]=g({},n[r]));return n}function k(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)l(e,t)&&r.push(t);return r};var L={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function P(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return N(n)?n.call(t,r):n}function D(e,t,r){var n=""+Math.abs(e),o=t-n.length;return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},V={};function U(e,t,r,n){var o=n;"string"==typeof n&&(o=function(){return this[n]()}),e&&(V[e]=o),t&&(V[t[0]]=function(){return D(o.apply(this,arguments),t[1],t[2])}),r&&(V[r]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function W(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e){var t,r,n=e.match(H);for(t=0,r=n.length;t<r;t++)V[n[t]]?n[t]=V[n[t]]:n[t]=W(n[t]);return function(t){var o,i="";for(o=0;o<r;o++)i+=N(n[o])?n[o].call(t,e):n[o];return i}}function Y(e,t){return e.isValid()?(t=G(t,e.localeData()),B[t]=B[t]||z(t),B[t](e)):e.localeData().invalidDate()}function G(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;r>=0&&F.test(e);)e=e.replace(F,n),F.lastIndex=0,r-=1;return e}var j={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function $(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(H).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var K="Invalid date";function X(){return this._invalidDate}var q="%d",Z=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,r,n){var o=this._relativeTime[r];return N(o)?o(e,t,r,n):o.replace(/%d/i,e)}function te(e,t){var r=this._relativeTime[e>0?"future":"past"];return N(r)?r(t):r.replace(/%s/i,t)}var re={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"==typeof e?re[e]||re[e.toLowerCase()]:void 0}function oe(e){var t,r,n={};for(r in e)l(e,r)&&(t=ne(r))&&(n[t]=e[r]);return n}var ie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function se(e){var t,r=[];for(t in e)l(e,t)&&r.push({unit:t,priority:ie[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}var ae,le=/\d/,he=/\d\d/,ce=/\d{3}/,ue=/\d{4}/,de=/[+-]?\d{6}/,pe=/\d\d?/,ge=/\d\d\d\d?/,fe=/\d\d\d\d\d\d?/,me=/\d{1,3}/,Ce=/\d{1,4}/,we=/[+-]?\d{1,6}/,ye=/\d+/,ve=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Se=/Z|[+-]\d\d(?::?\d\d)?/gi,be=/[+-]?\d+(\.\d{1,3})?/,Re=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Te=/^[1-9]\d?/,_e=/^([1-9]\d|\d)/;function Me(e,t,r){ae[e]=N(t)?t:function(e,n){return e&&r?r:t}}function Ae(e,t){return l(ae,e)?ae[e](t._strict,t._locale):new RegExp(Ie(e))}function Ie(e){return Ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,o){return t||r||n||o}))}function Ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Oe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function xe(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=Oe(t)),r}ae={};var ke={};function Le(e,t){var r,n,o=t;for("string"==typeof e&&(e=[e]),u(t)&&(o=function(e,r){r[t]=xe(e)}),n=e.length,r=0;r<n;r++)ke[e[r]]=o}function Pe(e,t){Le(e,function(e,r,n,o){n._w=n._w||{},t(e,n._w,n,o)})}function De(e,t,r){null!=t&&l(ke,e)&&ke[e](t,r._a,r,e)}function He(e){return e%4==0&&e%100!=0||e%400==0}var Fe=0,Be=1,Ve=2,Ue=3,We=4,ze=5,Ye=6,Ge=7,je=8;function $e(e){return He(e)?366:365}U("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),Me("Y",ve),Me("YY",pe,he),Me("YYYY",Ce,ue),Me("YYYYY",we,de),Me("YYYYYY",we,de),Le(["YYYYY","YYYYYY"],Fe),Le("YYYY",function(e,t){t[Fe]=2===e.length?o.parseTwoDigitYear(e):xe(e)}),Le("YY",function(e,t){t[Fe]=o.parseTwoDigitYear(e)}),Le("Y",function(e,t){t[Fe]=parseInt(e,10)}),o.parseTwoDigitYear=function(e){return xe(e)+(xe(e)>68?1900:2e3)};var Ke,Xe=Ze("FullYear",!0);function qe(){return He(this.year())}function Ze(e,t){return function(r){return null!=r?(Je(this,e,r),o.updateOffset(this,t),this):Qe(this,e)}}function Qe(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Je(e,t,r){var n,o,i,s,a;if(e.isValid()&&!isNaN(r)){switch(n=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(o?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(o?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(o?n.setUTCHours(r):n.setHours(r));case"Date":return void(o?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,s=e.month(),a=29!==(a=e.date())||1!==s||He(i)?a:28,o?n.setUTCFullYear(i,s,a):n.setFullYear(i,s,a)}}function et(e){return N(this[e=ne(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var r,n=se(e=oe(e)),o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(N(this[e=ne(e)]))return this[e](t);return this}function rt(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=rt(t,12);return e+=(t-r)/12,1===r?He(e)?29:28:31-r%7%2}Ke=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Me("M",pe,Te),Me("MM",pe,he),Me("MMM",function(e,t){return t.monthsShortRegex(e)}),Me("MMMM",function(e,t){return t.monthsRegex(e)}),Le(["M","MM"],function(e,t){t[Be]=xe(e)-1}),Le(["MMM","MMMM"],function(e,t,r,n){var o=r._locale.monthsParse(e,n,r._strict);null!=o?t[Be]=o:C(r).invalidMonth=e});var ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),st=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=Re,lt=Re;function ht(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||st).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function ct(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[st.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(e,t,r){var n,o,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(o=Ke.call(this._shortMonthsParse,s))?o:null:-1!==(o=Ke.call(this._longMonthsParse,s))?o:null:"MMM"===t?-1!==(o=Ke.call(this._shortMonthsParse,s))||-1!==(o=Ke.call(this._longMonthsParse,s))?o:null:-1!==(o=Ke.call(this._longMonthsParse,s))||-1!==(o=Ke.call(this._shortMonthsParse,s))?o:null}function dt(e,t,r){var n,o,i;if(this._monthsParseExact)return ut.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=f([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function pt(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=xe(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var r=t,n=e.date();return n=n<29?n:Math.min(n,nt(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function gt(e){return null!=e?(pt(this,e),o.updateOffset(this,!0),this):Qe(this,"Month")}function ft(){return nt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||wt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ct(e){return this._monthsParseExact?(l(this,"_monthsRegex")||wt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=lt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function wt(){function e(e,t){return t.length-e.length}var t,r,n,o,i=[],s=[],a=[];for(t=0;t<12;t++)r=f([2e3,t]),n=Ne(this.monthsShort(r,"")),o=Ne(this.months(r,"")),i.push(n),s.push(o),a.push(o),a.push(n);i.sort(e),s.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function yt(e,t,r,n,o,i,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,r,n,o,i,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,n,o,i,s),a}function vt(e){var t,r;return e<100&&e>=0?((r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Et(e,t,r){var n=7+t-r;return-(7+vt(e,0,n).getUTCDay()-t)%7+n-1}function St(e,t,r,n,o){var i,s,a=1+7*(t-1)+(7+r-n)%7+Et(e,n,o);return a<=0?s=$e(i=e-1)+a:a>$e(e)?(i=e+1,s=a-$e(e)):(i=e,s=a),{year:i,dayOfYear:s}}function bt(e,t,r){var n,o,i=Et(e.year(),t,r),s=Math.floor((e.dayOfYear()-i-1)/7)+1;return s<1?n=s+Rt(o=e.year()-1,t,r):s>Rt(e.year(),t,r)?(n=s-Rt(e.year(),t,r),o=e.year()+1):(o=e.year(),n=s),{week:n,year:o}}function Rt(e,t,r){var n=Et(e,t,r),o=Et(e+1,t,r);return($e(e)-n+o)/7}function Tt(e){return bt(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),Me("w",pe,Te),Me("ww",pe,he),Me("W",pe,Te),Me("WW",pe,he),Pe(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=xe(e)});var _t={dow:0,doy:6};function Mt(){return this._week.dow}function At(){return this._week.doy}function It(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Nt(e){var t=bt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ot(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function xt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function kt(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),Me("d",pe),Me("e",pe),Me("E",pe),Me("dd",function(e,t){return t.weekdaysMinRegex(e)}),Me("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Me("dddd",function(e,t){return t.weekdaysRegex(e)}),Pe(["dd","ddd","dddd"],function(e,t,r,n){var o=r._locale.weekdaysParse(e,n,r._strict);null!=o?t.d=o:C(r).invalidWeekday=e}),Pe(["d","e","E"],function(e,t,r,n){t[n]=xe(e)});var Lt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Dt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ht=Re,Ft=Re,Bt=Re;function Vt(e,t){var r=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?kt(r,this._week.dow):e?r[e.day()]:r}function Ut(e){return!0===e?kt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Wt(e){return!0===e?kt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zt(e,t,r){var n,o,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(o=Ke.call(this._weekdaysParse,s))?o:null:"ddd"===t?-1!==(o=Ke.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=Ke.call(this._minWeekdaysParse,s))?o:null:"dddd"===t?-1!==(o=Ke.call(this._weekdaysParse,s))||-1!==(o=Ke.call(this._shortWeekdaysParse,s))||-1!==(o=Ke.call(this._minWeekdaysParse,s))?o:null:"ddd"===t?-1!==(o=Ke.call(this._shortWeekdaysParse,s))||-1!==(o=Ke.call(this._weekdaysParse,s))||-1!==(o=Ke.call(this._minWeekdaysParse,s))?o:null:-1!==(o=Ke.call(this._minWeekdaysParse,s))||-1!==(o=Ke.call(this._weekdaysParse,s))||-1!==(o=Ke.call(this._shortWeekdaysParse,s))?o:null}function Yt(e,t,r){var n,o,i;if(this._weekdaysParseExact)return zt.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=f([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=Qe(this,"Day");return null!=e?(e=Ot(e,this.localeData()),this.add(e-t,"d")):t}function jt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function $t(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=xt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ht),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function e(e,t){return t.length-e.length}var t,r,n,o,i,s=[],a=[],l=[],h=[];for(t=0;t<7;t++)r=f([2e3,1]).day(t),n=Ne(this.weekdaysMin(r,"")),o=Ne(this.weekdaysShort(r,"")),i=Ne(this.weekdays(r,"")),s.push(n),a.push(o),l.push(i),h.push(n),h.push(o),h.push(i);s.sort(e),a.sort(e),l.sort(e),h.sort(e),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function er(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tr(e,t){return t._meridiemParse}function rr(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Qt),U("k",["kk",2],0,Jt),U("hmm",0,0,function(){return""+Qt.apply(this)+D(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Qt.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),er("a",!0),er("A",!1),Me("a",tr),Me("A",tr),Me("H",pe,_e),Me("h",pe,Te),Me("k",pe,Te),Me("HH",pe,he),Me("hh",pe,he),Me("kk",pe,he),Me("hmm",ge),Me("hmmss",fe),Me("Hmm",ge),Me("Hmmss",fe),Le(["H","HH"],Ue),Le(["k","kk"],function(e,t,r){var n=xe(e);t[Ue]=24===n?0:n}),Le(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),Le(["h","hh"],function(e,t,r){t[Ue]=xe(e),C(r).bigHour=!0}),Le("hmm",function(e,t,r){var n=e.length-2;t[Ue]=xe(e.substr(0,n)),t[We]=xe(e.substr(n)),C(r).bigHour=!0}),Le("hmmss",function(e,t,r){var n=e.length-4,o=e.length-2;t[Ue]=xe(e.substr(0,n)),t[We]=xe(e.substr(n,2)),t[ze]=xe(e.substr(o)),C(r).bigHour=!0}),Le("Hmm",function(e,t,r){var n=e.length-2;t[Ue]=xe(e.substr(0,n)),t[We]=xe(e.substr(n))}),Le("Hmmss",function(e,t,r){var n=e.length-4,o=e.length-2;t[Ue]=xe(e.substr(0,n)),t[We]=xe(e.substr(n,2)),t[ze]=xe(e.substr(o))});var nr=/[ap]\.?m?\.?/i,or=Ze("Hours",!0);function ir(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var sr,ar={calendar:L,longDateFormat:j,invalidDate:K,ordinal:q,dayOfMonthOrdinalParse:Z,relativeTime:J,months:ot,monthsShort:it,week:_t,weekdays:Lt,weekdaysMin:Dt,weekdaysShort:Pt,meridiemParse:nr},lr={},hr={};function cr(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function ur(e){return e?e.toLowerCase().replace("_","-"):e}function dr(e){for(var t,r,n,o,i=0;i<e.length;){for(t=(o=ur(e[i]).split("-")).length,r=(r=ur(e[i+1]))?r.split("-"):null;t>0;){if(n=gr(o.slice(0,t).join("-")))return n;if(r&&r.length>=t&&cr(o,r)>=t-1)break;t--}i++}return sr}function pr(e){return!(!e||!e.match("^[^/\\\\]*$"))}function gr(t){var n=null;if(void 0===lr[t]&&e&&e.exports&&pr(t))try{n=sr._abbr,r(93398)("./"+t),fr(n)}catch(e){lr[t]=null}return lr[t]}function fr(e,t){var r;return e&&((r=c(t)?wr(e):mr(e,t))?sr=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sr._abbr}function mr(e,t){if(null!==t){var r,n=ar;if(t.abbr=e,null!=lr[e])I("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=lr[e]._config;else if(null!=t.parentLocale)if(null!=lr[t.parentLocale])n=lr[t.parentLocale]._config;else{if(null==(r=gr(t.parentLocale)))return hr[t.parentLocale]||(hr[t.parentLocale]=[]),hr[t.parentLocale].push({name:e,config:t}),null;n=r._config}return lr[e]=new k(x(n,t)),hr[e]&&hr[e].forEach(function(e){mr(e.name,e.config)}),fr(e),lr[e]}return delete lr[e],null}function Cr(e,t){if(null!=t){var r,n,o=ar;null!=lr[e]&&null!=lr[e].parentLocale?lr[e].set(x(lr[e]._config,t)):(null!=(n=gr(e))&&(o=n._config),t=x(o,t),null==n&&(t.abbr=e),(r=new k(t)).parentLocale=lr[e],lr[e]=r),fr(e)}else null!=lr[e]&&(null!=lr[e].parentLocale?(lr[e]=lr[e].parentLocale,e===fr()&&fr(e)):null!=lr[e]&&delete lr[e]);return lr[e]}function wr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sr;if(!s(e)){if(t=gr(e))return t;e=[e]}return dr(e)}function yr(){return M(lr)}function vr(e){var t,r=e._a;return r&&-2===C(e).overflow&&(t=r[Be]<0||r[Be]>11?Be:r[Ve]<1||r[Ve]>nt(r[Fe],r[Be])?Ve:r[Ue]<0||r[Ue]>24||24===r[Ue]&&(0!==r[We]||0!==r[ze]||0!==r[Ye])?Ue:r[We]<0||r[We]>59?We:r[ze]<0||r[ze]>59?ze:r[Ye]<0||r[Ye]>999?Ye:-1,C(e)._overflowDayOfYear&&(t<Fe||t>Ve)&&(t=Ve),C(e)._overflowWeeks&&-1===t&&(t=Ge),C(e)._overflowWeekday&&-1===t&&(t=je),C(e).overflow=t),e}var Er=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,br=/Z|[+-]\d\d(?::?\d\d)?/,Rr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Tr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_r=/^\/?Date\((-?\d+)/i,Mr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ar={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ir(e){var t,r,n,o,i,s,a=e._i,l=Er.exec(a)||Sr.exec(a),h=Rr.length,c=Tr.length;if(l){for(C(e).iso=!0,t=0,r=h;t<r;t++)if(Rr[t][1].exec(l[1])){o=Rr[t][0],n=!1!==Rr[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,r=c;t<r;t++)if(Tr[t][1].exec(l[3])){i=(l[2]||" ")+Tr[t][0];break}if(null==i)return void(e._isValid=!1)}if(!n&&null!=i)return void(e._isValid=!1);if(l[4]){if(!br.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=o+(i||"")+(s||""),Ur(e)}else e._isValid=!1}function Nr(e,t,r,n,o,i){var s=[Or(e),it.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(o,10)];return i&&s.push(parseInt(i,10)),s}function Or(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function xr(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function kr(e,t,r){return!e||Pt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(C(r).weekdayMismatch=!0,r._isValid=!1,!1)}function Lr(e,t,r){if(e)return Ar[e];if(t)return 0;var n=parseInt(r,10),o=n%100;return(n-o)/100*60+o}function Pr(e){var t,r=Mr.exec(xr(e._i));if(r){if(t=Nr(r[4],r[3],r[2],r[5],r[6],r[7]),!kr(r[1],t,e))return;e._a=t,e._tzm=Lr(r[8],r[9],r[10]),e._d=vt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),C(e).rfc2822=!0}else e._isValid=!1}function Dr(e){var t=_r.exec(e._i);null===t?(Ir(e),!1===e._isValid&&(delete e._isValid,Pr(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Hr(e,t,r){return null!=e?e:null!=t?t:r}function Fr(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Br(e){var t,r,n,o,i,s=[];if(!e._d){for(n=Fr(e),e._w&&null==e._a[Ve]&&null==e._a[Be]&&Vr(e),null!=e._dayOfYear&&(i=Hr(e._a[Fe],n[Fe]),(e._dayOfYear>$e(i)||0===e._dayOfYear)&&(C(e)._overflowDayOfYear=!0),r=vt(i,0,e._dayOfYear),e._a[Be]=r.getUTCMonth(),e._a[Ve]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ue]&&0===e._a[We]&&0===e._a[ze]&&0===e._a[Ye]&&(e._nextDay=!0,e._a[Ue]=0),e._d=(e._useUTC?vt:yt).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ue]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(C(e).weekdayMismatch=!0)}}function Vr(e){var t,r,n,o,i,s,a,l,h;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,s=4,r=Hr(t.GG,e._a[Fe],bt(Xr(),1,4).year),n=Hr(t.W,1),((o=Hr(t.E,1))<1||o>7)&&(l=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,h=bt(Xr(),i,s),r=Hr(t.gg,e._a[Fe],h.year),n=Hr(t.w,h.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),n<1||n>Rt(r,i,s)?C(e)._overflowWeeks=!0:null!=l?C(e)._overflowWeekday=!0:(a=St(r,n,o,i,s),e._a[Fe]=a.year,e._dayOfYear=a.dayOfYear)}function Ur(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],C(e).empty=!0;var t,r,n,i,s,a,l,h=""+e._i,c=h.length,u=0;for(l=(n=G(e._f,e._locale).match(H)||[]).length,t=0;t<l;t++)i=n[t],(r=(h.match(Ae(i,e))||[])[0])&&((s=h.substr(0,h.indexOf(r))).length>0&&C(e).unusedInput.push(s),h=h.slice(h.indexOf(r)+r.length),u+=r.length),V[i]?(r?C(e).empty=!1:C(e).unusedTokens.push(i),De(i,r,e)):e._strict&&!r&&C(e).unusedTokens.push(i);C(e).charsLeftOver=c-u,h.length>0&&C(e).unusedInput.push(h),e._a[Ue]<=12&&!0===C(e).bigHour&&e._a[Ue]>0&&(C(e).bigHour=void 0),C(e).parsedDateParts=e._a.slice(0),C(e).meridiem=e._meridiem,e._a[Ue]=Wr(e._locale,e._a[Ue],e._meridiem),null!==(a=C(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(a,e._a[Fe])),Br(e),vr(e)}else Pr(e);else Ir(e)}function Wr(e,t,r){var n;return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function zr(e){var t,r,n,o,i,s,a=!1,l=e._f.length;if(0===l)return C(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<l;o++)i=0,s=!1,t=S({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Ur(t),w(t)&&(s=!0),i+=C(t).charsLeftOver,i+=10*C(t).unusedTokens.length,C(t).score=i,a?i<n&&(n=i,r=t):(null==n||i<n||s)&&(n=i,r=t,s&&(a=!0));g(e,r||t)}function Yr(e){if(!e._d){var t=oe(e._i),r=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Br(e)}}function Gr(e){var t=new b(vr(jr(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function jr(e){var t=e._i,r=e._f;return e._locale=e._locale||wr(e._l),null===t||void 0===r&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),R(t)?new b(vr(t)):(d(t)?e._d=t:s(r)?zr(e):r?Ur(e):$r(e),w(e)||(e._d=null),e))}function $r(e){var t=e._i;c(t)?e._d=new Date(o.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Dr(e):s(t)?(e._a=p(t.slice(0),function(e){return parseInt(e,10)}),Br(e)):a(t)?Yr(e):u(t)?e._d=new Date(t):o.createFromInputFallback(e)}function Kr(e,t,r,n,o){var i={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(a(e)&&h(e)||s(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=r,i._i=e,i._f=t,i._strict=n,Gr(i)}function Xr(e,t,r,n){return Kr(e,t,r,n,!1)}o.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),o.ISO_8601=function(){},o.RFC_2822=function(){};var qr=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Xr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()}),Zr=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Xr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()});function Qr(e,t){var r,n;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Xr();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}function Jr(){return Qr("isBefore",[].slice.call(arguments,0))}function en(){return Qr("isAfter",[].slice.call(arguments,0))}var tn=function(){return Date.now?Date.now():+new Date},rn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nn(e){var t,r,n=!1,o=rn.length;for(t in e)if(l(e,t)&&(-1===Ke.call(rn,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<o;++r)if(e[rn[r]]){if(n)return!1;parseFloat(e[rn[r]])!==xe(e[rn[r]])&&(n=!0)}return!0}function on(){return this._isValid}function sn(){return In(NaN)}function an(e){var t=oe(e),r=t.year||0,n=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,h=t.second||0,c=t.millisecond||0;this._isValid=nn(t),this._milliseconds=+c+1e3*h+6e4*l+1e3*a*60*60,this._days=+s+7*i,this._months=+o+3*n+12*r,this._data={},this._locale=wr(),this._bubble()}function ln(e){return e instanceof an}function hn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cn(e,t,r){var n,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0;for(n=0;n<o;n++)(r&&e[n]!==t[n]||!r&&xe(e[n])!==xe(t[n]))&&s++;return s+i}function un(e,t){U(e,0,0,function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+D(~~(e/60),2)+t+D(~~e%60,2)})}un("Z",":"),un("ZZ",""),Me("Z",Se),Me("ZZ",Se),Le(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=pn(Se,e)});var dn=/([\+\-]|\d\d)/gi;function pn(e,t){var r,n,o=(t||"").match(e);return null===o?null:0===(n=60*(r=((o[o.length-1]||[])+"").match(dn)||["-",0,0])[1]+xe(r[2]))?0:"+"===r[0]?n:-n}function gn(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(R(e)||d(e)?e.valueOf():Xr(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),o.updateOffset(r,!1),r):Xr(e).local()}function fn(e){return-Math.round(e._d.getTimezoneOffset())}function mn(e,t,r){var n,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=pn(Se,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(n=fn(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?Ln(this,In(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:fn(this)}function Cn(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function wn(e){return this.utcOffset(0,e)}function yn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fn(this),"m")),this}function vn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=pn(Ee,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function En(e){return!!this.isValid()&&(e=e?Xr(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Sn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function bn(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return S(t,this),(t=jr(t))._a?(e=t._isUTC?f(t._a):Xr(t._a),this._isDSTShifted=this.isValid()&&cn(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Rn(){return!!this.isValid()&&!this._isUTC}function Tn(){return!!this.isValid()&&this._isUTC}function _n(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Mn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,An=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function In(e,t){var r,n,o,i=e,s=null;return ln(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(s=Mn.exec(e))?(r="-"===s[1]?-1:1,i={y:0,d:xe(s[Ve])*r,h:xe(s[Ue])*r,m:xe(s[We])*r,s:xe(s[ze])*r,ms:xe(hn(1e3*s[Ye]))*r}):(s=An.exec(e))?(r="-"===s[1]?-1:1,i={y:Nn(s[2],r),M:Nn(s[3],r),w:Nn(s[4],r),d:Nn(s[5],r),h:Nn(s[6],r),m:Nn(s[7],r),s:Nn(s[8],r)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=xn(Xr(i.from),Xr(i.to)),(i={}).ms=o.milliseconds,i.M=o.months),n=new an(i),ln(e)&&l(e,"_locale")&&(n._locale=e._locale),ln(e)&&l(e,"_isValid")&&(n._isValid=e._isValid),n}function Nn(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function On(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function xn(e,t){var r;return e.isValid()&&t.isValid()?(t=gn(t,e),e.isBefore(t)?r=On(e,t):((r=On(t,e)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function kn(e,t){return function(r,n){var o;return null===n||isNaN(+n)||(I(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=r,r=n,n=o),Ln(this,In(r,n),e),this}}function Ln(e,t,r,n){var i=t._milliseconds,s=hn(t._days),a=hn(t._months);e.isValid()&&(n=null==n||n,a&&pt(e,Qe(e,"Month")+a*r),s&&Je(e,"Date",Qe(e,"Date")+s*r),i&&e._d.setTime(e._d.valueOf()+i*r),n&&o.updateOffset(e,s||a))}In.fn=an.prototype,In.invalid=sn;var Pn=kn(1,"add"),Dn=kn(-1,"subtract");function Hn(e){return"string"==typeof e||e instanceof String}function Fn(e){return R(e)||d(e)||Hn(e)||u(e)||Vn(e)||Bn(e)||null==e}function Bn(e){var t,r,n=a(e)&&!h(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=i.length;for(t=0;t<s;t+=1)r=i[t],o=o||l(e,r);return n&&o}function Vn(e){var t=s(e),r=!1;return t&&(r=0===e.filter(function(t){return!u(t)&&Hn(e)}).length),t&&r}function Un(e){var t,r,n=a(e)&&!h(e),o=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=i[t],o=o||l(e,r);return n&&o}function Wn(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function zn(e,t){1===arguments.length&&(arguments[0]?Fn(arguments[0])?(e=arguments[0],t=void 0):Un(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Xr(),n=gn(r,this).startOf("day"),i=o.calendarFormat(this,n)||"sameElse",s=t&&(N(t[i])?t[i].call(this,r):t[i]);return this.format(s||this.localeData().calendar(i,this,Xr(r)))}function Yn(){return new b(this)}function Gn(e,t){var r=R(e)?e:Xr(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())}function jn(e,t){var r=R(e)?e:Xr(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())}function $n(e,t,r,n){var o=R(e)?e:Xr(e),i=R(t)?t:Xr(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&("("===(n=n||"()")[0]?this.isAfter(o,r):!this.isBefore(o,r))&&(")"===n[1]?this.isBefore(i,r):!this.isAfter(i,r))}function Kn(e,t){var r,n=R(e)?e:Xr(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))}function Xn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function qn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Zn(e,t,r){var n,o,i;if(!this.isValid())return NaN;if(!(n=gn(e,this)).isValid())return NaN;switch(o=6e4*(n.utcOffset()-this.utcOffset()),t=ne(t)){case"year":i=Qn(this,n)/12;break;case"month":i=Qn(this,n);break;case"quarter":i=Qn(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-o)/864e5;break;case"week":i=(this-n-o)/6048e5;break;default:i=this-n}return r?i:Oe(i)}function Qn(e,t){if(e.date()<t.date())return-Qn(t,e);var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,"months");return-(r+(t-n<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(r+1,"months")-n)))||0}function Jn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function eo(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Y(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(r,"Z")):Y(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function to(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n,o="moment",i="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",n=i+'[")]',this.format(e+t+r+n)}function ro(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)}function no(e,t){return this.isValid()&&(R(e)&&e.isValid()||Xr(e).isValid())?In({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oo(e){return this.from(Xr(),e)}function io(e,t){return this.isValid()&&(R(e)&&e.isValid()||Xr(e).isValid())?In({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function so(e){return this.to(Xr(),e)}function ao(e){var t;return void 0===e?this._locale._abbr:(null!=(t=wr(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lo=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function ho(){return this._locale}var co=1e3,uo=60*co,po=60*uo,go=3506328*po;function fo(e,t){return(e%t+t)%t}function mo(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-go:new Date(e,t,r).valueOf()}function Co(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-go:Date.UTC(e,t,r)}function wo(e){var t,r;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?Co:mo,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fo(t+(this._isUTC?0:this.utcOffset()*uo),po);break;case"minute":t=this._d.valueOf(),t-=fo(t,uo);break;case"second":t=this._d.valueOf(),t-=fo(t,co)}return this._d.setTime(t),o.updateOffset(this,!0),this}function yo(e){var t,r;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?Co:mo,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=po-fo(t+(this._isUTC?0:this.utcOffset()*uo),po)-1;break;case"minute":t=this._d.valueOf(),t+=uo-fo(t,uo)-1;break;case"second":t=this._d.valueOf(),t+=co-fo(t,co)-1}return this._d.setTime(t),o.updateOffset(this,!0),this}function vo(){return this._d.valueOf()-6e4*(this._offset||0)}function Eo(){return Math.floor(this.valueOf()/1e3)}function So(){return new Date(this.valueOf())}function bo(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ro(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function To(){return this.isValid()?this.toISOString():null}function _o(){return w(this)}function Mo(){return g({},C(this))}function Ao(){return C(this).overflow}function Io(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function No(e,t){var r,n,i,s=this._eras||wr("en")._eras;for(r=0,n=s.length;r<n;++r)switch("string"==typeof s[r].since&&(i=o(s[r].since).startOf("day"),s[r].since=i.valueOf()),typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":i=o(s[r].until).startOf("day").valueOf(),s[r].until=i.valueOf()}return s}function Oo(e,t,r){var n,o,i,s,a,l=this.eras();for(e=e.toUpperCase(),n=0,o=l.length;n<o;++n)if(i=l[n].name.toUpperCase(),s=l[n].abbr.toUpperCase(),a=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[n];break;case"NNNN":if(i===e)return l[n];break;case"NNNNN":if(a===e)return l[n]}else if([i,s,a].indexOf(e)>=0)return l[n]}function xo(e,t){var r=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*r}function ko(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].name;if(n[e].until<=r&&r<=n[e].since)return n[e].name}return""}function Lo(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].narrow;if(n[e].until<=r&&r<=n[e].since)return n[e].narrow}return""}function Po(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].abbr;if(n[e].until<=r&&r<=n[e].since)return n[e].abbr}return""}function Do(){var e,t,r,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=i[e].since<=i[e].until?1:-1,n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return(this.year()-o(i[e].since).year())*r+i[e].offset;return this.year()}function Ho(e){return l(this,"_erasNameRegex")||Yo.call(this),e?this._erasNameRegex:this._erasRegex}function Fo(e){return l(this,"_erasAbbrRegex")||Yo.call(this),e?this._erasAbbrRegex:this._erasRegex}function Bo(e){return l(this,"_erasNarrowRegex")||Yo.call(this),e?this._erasNarrowRegex:this._erasRegex}function Vo(e,t){return t.erasAbbrRegex(e)}function Uo(e,t){return t.erasNameRegex(e)}function Wo(e,t){return t.erasNarrowRegex(e)}function zo(e,t){return t._eraYearOrdinalRegex||ye}function Yo(){var e,t,r,n,o,i=[],s=[],a=[],l=[],h=this.eras();for(e=0,t=h.length;e<t;++e)r=Ne(h[e].name),n=Ne(h[e].abbr),o=Ne(h[e].narrow),s.push(r),i.push(n),a.push(o),l.push(r),l.push(n),l.push(o);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Go(e,t){U(0,[e,e.length],0,t)}function jo(e){return Qo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function $o(e){return Qo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ko(){return Rt(this.year(),1,4)}function Xo(){return Rt(this.isoWeekYear(),1,4)}function qo(){var e=this.localeData()._week;return Rt(this.year(),e.dow,e.doy)}function Zo(){var e=this.localeData()._week;return Rt(this.weekYear(),e.dow,e.doy)}function Qo(e,t,r,n,o){var i;return null==e?bt(this,n,o).year:(t>(i=Rt(e,n,o))&&(t=i),Jo.call(this,e,t,r,n,o))}function Jo(e,t,r,n,o){var i=St(e,t,r,n,o),s=vt(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function ei(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Me("N",Vo),Me("NN",Vo),Me("NNN",Vo),Me("NNNN",Uo),Me("NNNNN",Wo),Le(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var o=r._locale.erasParse(e,n,r._strict);o?C(r).era=o:C(r).invalidEra=e}),Me("y",ye),Me("yy",ye),Me("yyy",ye),Me("yyyy",ye),Me("yo",zo),Le(["y","yy","yyy","yyyy"],Fe),Le(["yo"],function(e,t,r,n){var o;r._locale._eraYearOrdinalRegex&&(o=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Fe]=r._locale.eraYearOrdinalParse(e,o):t[Fe]=parseInt(e,10)}),U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Go("gggg","weekYear"),Go("ggggg","weekYear"),Go("GGGG","isoWeekYear"),Go("GGGGG","isoWeekYear"),Me("G",ve),Me("g",ve),Me("GG",pe,he),Me("gg",pe,he),Me("GGGG",Ce,ue),Me("gggg",Ce,ue),Me("GGGGG",we,de),Me("ggggg",we,de),Pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=xe(e)}),Pe(["gg","GG"],function(e,t,r,n){t[n]=o.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),Me("Q",le),Le("Q",function(e,t){t[Be]=3*(xe(e)-1)}),U("D",["DD",2],"Do","date"),Me("D",pe,Te),Me("DD",pe,he),Me("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Le(["D","DD"],Ve),Le("Do",function(e,t){t[Ve]=xe(e.match(pe)[0])});var ti=Ze("Date",!0);function ri(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),Me("DDD",me),Me("DDDD",ce),Le(["DDD","DDDD"],function(e,t,r){r._dayOfYear=xe(e)}),U("m",["mm",2],0,"minute"),Me("m",pe,_e),Me("mm",pe,he),Le(["m","mm"],We);var ni=Ze("Minutes",!1);U("s",["ss",2],0,"second"),Me("s",pe,_e),Me("ss",pe,he),Le(["s","ss"],ze);var oi,ii,si=Ze("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Me("S",me,le),Me("SS",me,he),Me("SSS",me,ce),oi="SSSS";oi.length<=9;oi+="S")Me(oi,ye);function ai(e,t){t[Ye]=xe(1e3*("0."+e))}for(oi="S";oi.length<=9;oi+="S")Le(oi,ai);function li(){return this._isUTC?"UTC":""}function hi(){return this._isUTC?"Coordinated Universal Time":""}ii=Ze("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var ci=b.prototype;function ui(e){return Xr(1e3*e)}function di(){return Xr.apply(null,arguments).parseZone()}function pi(e){return e}ci.add=Pn,ci.calendar=zn,ci.clone=Yn,ci.diff=Zn,ci.endOf=yo,ci.format=ro,ci.from=no,ci.fromNow=oo,ci.to=io,ci.toNow=so,ci.get=et,ci.invalidAt=Ao,ci.isAfter=Gn,ci.isBefore=jn,ci.isBetween=$n,ci.isSame=Kn,ci.isSameOrAfter=Xn,ci.isSameOrBefore=qn,ci.isValid=_o,ci.lang=lo,ci.locale=ao,ci.localeData=ho,ci.max=Zr,ci.min=qr,ci.parsingFlags=Mo,ci.set=tt,ci.startOf=wo,ci.subtract=Dn,ci.toArray=bo,ci.toObject=Ro,ci.toDate=So,ci.toISOString=eo,ci.inspect=to,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ci[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ci.toJSON=To,ci.toString=Jn,ci.unix=Eo,ci.valueOf=vo,ci.creationData=Io,ci.eraName=ko,ci.eraNarrow=Lo,ci.eraAbbr=Po,ci.eraYear=Do,ci.year=Xe,ci.isLeapYear=qe,ci.weekYear=jo,ci.isoWeekYear=$o,ci.quarter=ci.quarters=ei,ci.month=gt,ci.daysInMonth=ft,ci.week=ci.weeks=It,ci.isoWeek=ci.isoWeeks=Nt,ci.weeksInYear=qo,ci.weeksInWeekYear=Zo,ci.isoWeeksInYear=Ko,ci.isoWeeksInISOWeekYear=Xo,ci.date=ti,ci.day=ci.days=Gt,ci.weekday=jt,ci.isoWeekday=$t,ci.dayOfYear=ri,ci.hour=ci.hours=or,ci.minute=ci.minutes=ni,ci.second=ci.seconds=si,ci.millisecond=ci.milliseconds=ii,ci.utcOffset=mn,ci.utc=wn,ci.local=yn,ci.parseZone=vn,ci.hasAlignedHourOffset=En,ci.isDST=Sn,ci.isLocal=Rn,ci.isUtcOffset=Tn,ci.isUtc=_n,ci.isUTC=_n,ci.zoneAbbr=li,ci.zoneName=hi,ci.dates=_("dates accessor is deprecated. Use date instead.",ti),ci.months=_("months accessor is deprecated. Use month instead",gt),ci.years=_("years accessor is deprecated. Use year instead",Xe),ci.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Cn),ci.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",bn);var gi=k.prototype;function fi(e,t,r,n){var o=wr(),i=f().set(n,t);return o[r](i,e)}function mi(e,t,r){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fi(e,t,r,"month");var n,o=[];for(n=0;n<12;n++)o[n]=fi(e,n,r,"month");return o}function Ci(e,t,r,n){"boolean"==typeof e?(u(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,u(t)&&(r=t,t=void 0),t=t||"");var o,i=wr(),s=e?i._week.dow:0,a=[];if(null!=r)return fi(t,(r+s)%7,n,"day");for(o=0;o<7;o++)a[o]=fi(t,(o+s)%7,n,"day");return a}function wi(e,t){return mi(e,t,"months")}function yi(e,t){return mi(e,t,"monthsShort")}function vi(e,t,r){return Ci(e,t,r,"weekdays")}function Ei(e,t,r){return Ci(e,t,r,"weekdaysShort")}function Si(e,t,r){return Ci(e,t,r,"weekdaysMin")}gi.calendar=P,gi.longDateFormat=$,gi.invalidDate=X,gi.ordinal=Q,gi.preparse=pi,gi.postformat=pi,gi.relativeTime=ee,gi.pastFuture=te,gi.set=O,gi.eras=No,gi.erasParse=Oo,gi.erasConvertYear=xo,gi.erasAbbrRegex=Fo,gi.erasNameRegex=Ho,gi.erasNarrowRegex=Bo,gi.months=ht,gi.monthsShort=ct,gi.monthsParse=dt,gi.monthsRegex=Ct,gi.monthsShortRegex=mt,gi.week=Tt,gi.firstDayOfYear=At,gi.firstDayOfWeek=Mt,gi.weekdays=Vt,gi.weekdaysMin=Wt,gi.weekdaysShort=Ut,gi.weekdaysParse=Yt,gi.weekdaysRegex=Kt,gi.weekdaysShortRegex=Xt,gi.weekdaysMinRegex=qt,gi.isPM=rr,gi.meridiem=ir,fr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===xe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=_("moment.lang is deprecated. Use moment.locale instead.",fr),o.langData=_("moment.langData is deprecated. Use moment.localeData instead.",wr);var bi=Math.abs;function Ri(){var e=this._data;return this._milliseconds=bi(this._milliseconds),this._days=bi(this._days),this._months=bi(this._months),e.milliseconds=bi(e.milliseconds),e.seconds=bi(e.seconds),e.minutes=bi(e.minutes),e.hours=bi(e.hours),e.months=bi(e.months),e.years=bi(e.years),this}function Ti(e,t,r,n){var o=In(t,r);return e._milliseconds+=n*o._milliseconds,e._days+=n*o._days,e._months+=n*o._months,e._bubble()}function _i(e,t){return Ti(this,e,t,1)}function Mi(e,t){return Ti(this,e,t,-1)}function Ai(e){return e<0?Math.floor(e):Math.ceil(e)}function Ii(){var e,t,r,n,o,i=this._milliseconds,s=this._days,a=this._months,l=this._data;return i>=0&&s>=0&&a>=0||i<=0&&s<=0&&a<=0||(i+=864e5*Ai(Oi(a)+s),s=0,a=0),l.milliseconds=i%1e3,e=Oe(i/1e3),l.seconds=e%60,t=Oe(e/60),l.minutes=t%60,r=Oe(t/60),l.hours=r%24,s+=Oe(r/24),a+=o=Oe(Ni(s)),s-=Ai(Oi(o)),n=Oe(a/12),a%=12,l.days=s,l.months=a,l.years=n,this}function Ni(e){return 4800*e/146097}function Oi(e){return 146097*e/4800}function xi(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+Ni(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Oi(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function ki(e){return function(){return this.as(e)}}var Li=ki("ms"),Pi=ki("s"),Di=ki("m"),Hi=ki("h"),Fi=ki("d"),Bi=ki("w"),Vi=ki("M"),Ui=ki("Q"),Wi=ki("y"),zi=Li;function Yi(){return In(this)}function Gi(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function ji(e){return function(){return this.isValid()?this._data[e]:NaN}}var $i=ji("milliseconds"),Ki=ji("seconds"),Xi=ji("minutes"),qi=ji("hours"),Zi=ji("days"),Qi=ji("months"),Ji=ji("years");function es(){return Oe(this.days()/7)}var ts=Math.round,rs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ns(e,t,r,n,o){return o.relativeTime(t||1,!!r,e,n)}function os(e,t,r,n){var o=In(e).abs(),i=ts(o.as("s")),s=ts(o.as("m")),a=ts(o.as("h")),l=ts(o.as("d")),h=ts(o.as("M")),c=ts(o.as("w")),u=ts(o.as("y")),d=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||s<=1&&["m"]||s<r.m&&["mm",s]||a<=1&&["h"]||a<r.h&&["hh",a]||l<=1&&["d"]||l<r.d&&["dd",l];return null!=r.w&&(d=d||c<=1&&["w"]||c<r.w&&["ww",c]),(d=d||h<=1&&["M"]||h<r.M&&["MM",h]||u<=1&&["y"]||["yy",u])[2]=t,d[3]=+e>0,d[4]=n,ns.apply(null,d)}function is(e){return void 0===e?ts:"function"==typeof e&&(ts=e,!0)}function ss(e,t){return void 0!==rs[e]&&(void 0===t?rs[e]:(rs[e]=t,"s"===e&&(rs.ss=t-1),!0))}function as(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,o=!1,i=rs;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},rs,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=os(this,!o,i,r=this.localeData()),o&&(n=r.pastFuture(+this,n)),r.postformat(n)}var ls=Math.abs;function hs(e){return(e>0)-(e<0)||+e}function cs(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,o,i,s,a,l=ls(this._milliseconds)/1e3,h=ls(this._days),c=ls(this._months),u=this.asSeconds();return u?(e=Oe(l/60),t=Oe(e/60),l%=60,e%=60,r=Oe(c/12),c%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=u<0?"-":"",i=hs(this._months)!==hs(u)?"-":"",s=hs(this._days)!==hs(u)?"-":"",a=hs(this._milliseconds)!==hs(u)?"-":"",o+"P"+(r?i+r+"Y":"")+(c?i+c+"M":"")+(h?s+h+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+n+"S":"")):"P0D"}var us=an.prototype;return us.isValid=on,us.abs=Ri,us.add=_i,us.subtract=Mi,us.as=xi,us.asMilliseconds=Li,us.asSeconds=Pi,us.asMinutes=Di,us.asHours=Hi,us.asDays=Fi,us.asWeeks=Bi,us.asMonths=Vi,us.asQuarters=Ui,us.asYears=Wi,us.valueOf=zi,us._bubble=Ii,us.clone=Yi,us.get=Gi,us.milliseconds=$i,us.seconds=Ki,us.minutes=Xi,us.hours=qi,us.days=Zi,us.weeks=es,us.months=Qi,us.years=Ji,us.humanize=as,us.toISOString=cs,us.toString=cs,us.toJSON=cs,us.locale=ao,us.localeData=ho,us.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),us.lang=lo,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Me("x",ve),Me("X",be),Le("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),Le("x",function(e,t,r){r._d=new Date(xe(e))}),
99
99
  //! moment.js
100
100
  o.version="2.30.1",i(Xr),o.fn=ci,o.min=Jr,o.max=en,o.now=tn,o.utc=f,o.unix=ui,o.months=wi,o.isDate=d,o.locale=fr,o.invalid=y,o.duration=In,o.isMoment=R,o.weekdays=vi,o.parseZone=di,o.localeData=wr,o.isDuration=ln,o.monthsShort=yi,o.weekdaysMin=Si,o.defineLocale=mr,o.updateLocale=Cr,o.locales=yr,o.weekdaysShort=Ei,o.normalizeUnits=ne,o.relativeTimeRounding=is,o.relativeTimeThreshold=ss,o.calendarFormat=Wn,o.prototype=ci,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}(),window.moment=r(37539)},55962(){},65109(){},60549(){},60036(){},42981(){},36634(){},52863(){},87513(){},54070(){},73374(){},75720(){},3538(){},11872(){},83252(){},32153(){},42666(){},2509(){},58158(){},72109(){},763(){},45320(){},24501(){},69102(){},32474(){},28636(){},32770(){},2943(){},83788(){},99813(){},68207(){},53686(){},1181(){},32822(){},2732(){},33455(){},63453(){},42069(){},91375(){},47859(){},55766(){},28465(){},65092(){},46539(){},7072(){},94216(){},92334(){},80350(){},97278(){},47797(){},36329(){},80152(){},89577(){},61094(){},64078(){},2527(){},49744(){},469(){},75590(){},20514(){},74103(){},41238(){},13745(){},67320(){},77437(){},46258(){},81384(){},67772(){},88921(){},6229(){},92443(){},90433(){},60296(){},94911(){},6802(){},20745(){},87085(){},71219(){},50056(){},92169(){},83367(){},10403(){},39951(){},68881(){},21860(){},85742(){},86602(){},6036(){},76089(){},40556(){},54271(){},39329(){},41812(){},97005(){},30355(){},28949(){},52661(){},1872(){},84101(){},20678(){},64605(){},60698(){},47464(){},594(){},68225(){},51957(){},36467(){},16426(){},42093(){},34203(){},17508(){},16779(){},84888(){},19247(){},28382(){},41266(){},88356(){},65032(){},27317(){},20620(){},36018(){},69373(){},31787(){},63775(){},51784(){},29160(){},85555(){},95081(){},10866(){},44874(){},78282(){},60664(){},61292(){},27577(){},99949(){},31937(){},65876(){},44057(){},6558(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>K});var n,o,i,s,a,l,h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}