You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
984 KiB

4 weeks ago
var Kh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xA(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ec(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var bu=function(t){return t&&t.Math===Math&&t},xn=bu(typeof globalThis=="object"&&globalThis)||bu(typeof window=="object"&&window)||bu(typeof self=="object"&&self)||bu(typeof Kh=="object"&&Kh)||bu(typeof Kh=="object"&&Kh)||function(){return this}()||Function("return this")(),Ov={},Ci=function(t){try{return!!t()}catch{return!0}},AA=Ci,Cr=!AA(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),HA=Ci,Gg=!HA(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),NA=Gg,Xh=Function.prototype.call,vr=NA?Xh.bind(Xh):function(){return Xh.apply(Xh,arguments)},e_={},t_={}.propertyIsEnumerable,n_=Object.getOwnPropertyDescriptor,DA=n_&&!t_.call({1:2},1);e_.f=DA?function(e){var n=n_(this,e);return!!n&&n.enumerable}:t_;var jg=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},i_=Gg,r_=Function.prototype,yC=r_.call,LA=i_&&r_.bind.bind(yC,yC),un=i_?LA:function(t){return function(){return yC.apply(t,arguments)}},s_=un,$A=s_({}.toString),kA=s_("".slice),Ba=function(t){return kA($A(t),8,-1)},FA=un,VA=Ci,WA=Ba,Km=Object,BA=FA("".split),UA=VA(function(){return!Km("z").propertyIsEnumerable(0)})?function(t){return WA(t)==="String"?BA(t,""):Km(t)}:Km,Kg=function(t){return t==null},YA=Kg,zA=TypeError,Xg=function(t){if(YA(t))throw new zA("Can't call method on "+t);return t},GA=UA,jA=Xg,qg=function(t){return GA(jA(t))},Xm=typeof document=="object"&&document.all,bn=typeof Xm>"u"&&Xm!==void 0?function(t){return typeof t=="function"||t===Xm}:function(t){return typeof t=="function"},KA=bn,ns=function(t){return typeof t=="object"?t!==null:KA(t)},qm=xn,XA=bn,qA=function(t){return XA(t)?t:void 0},lu=function(t,e){return arguments.length<2?qA(qm[t]):qm[t]&&qm[t][e]},ZA=un,Zg=ZA({}.isPrototypeOf),xv=typeof navigator<"u"&&String(navigator.userAgent)||"",o_=xn,Zm=xv,yR=o_.process,bR=o_.Deno,RR=yR&&yR.versions||bR&&bR.version,ER=RR&&RR.v8,lr,tg;ER&&(lr=ER.split("."),tg=lr[0]>0&&lr[0]<4?1:+(lr[0]+lr[1]));!tg&&Zm&&(lr=Zm.match(/Edge\/(\d+)/),(!lr||lr[1]>=74)&&(lr=Zm.match(/Chrome\/(\d+)/),lr&&(tg=+lr[1])));var QA=tg,TR=QA,JA=Ci,e1=xn,t1=e1.String,Av=!!Object.getOwnPropertySymbols&&!JA(function(){var t=Symbol("symbol detection");return!t1(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&TR&&TR<41}),n1=Av,a_=n1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",i1=lu,r1=bn,s1=Zg,o1=a_,a1=Object,Hv=o1?function(t){return typeof t=="symbol"}:function(t){var e=i1("Symbol");return r1(e)&&s1(e.prototype,a1(t))},l1=String,Qg=function(t){try{return l1(t)}catch{return"Object"}},u1=bn,c1=Qg,h1=TypeError,Ch=function(t){if(u1(t))return t;throw new h1(c1(t)+" is not a function")},d1=Ch,f1=Kg,Jg=function(t,e){var n=t[e];return f1(n)?void 0:d1(n)},Qm=vr,Jm=bn,ep=ns,g1=TypeError,m1=function(t,e){var n,i;if(e==="string"&&Jm(n=t.toString)&&!ep(i=Qm(n,t))||Jm(n=t.valueOf)&&!ep(i=Qm(n,t))||e!=="string"&&Jm(n=t.toString)&&!ep(i=Qm(n,t)))return i;throw new g1("Can't convert object to primitive value")},l_={exports:{}},MR=xn,p1=Object.defineProperty,Nv=function(t,e){try{p1(MR,t,{value:e,configurable:!0,writable:!0})}catch{MR[t]=e}return e},w1=xn,C1=Nv,_R="__core-js_shared__",IR=l_.exports=w1[_R]||C1(_R,{});(IR.versions||(IR.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Dv=l_.exports,PR=Dv,u_=function(t,e){return PR[t]||(PR[t]=e||{})},v1=Xg,S1=Object,vh=function(t){return S1(v1(t))},y1=un,b1=vh,R1=y1({}.hasOwnProperty),is=Object.hasOwn||function(e,n){return R1(b1(e),n)},E1=un,T1=
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Bk=Object.hasOwnProperty,wE=Object.setPrototypeOf,Uk=Object.isFrozen,Yk=Object.getPrototypeOf,zk=Object.getOwnPropertyDescriptor,Un=Object.freeze,Fi=Object.seal,Gk=Object.create,q_=typeof Reflect<"u"&&Reflect,sg=q_.apply,AC=q_.construct;sg||(sg=function(e,n,i){return e.apply(n,i)});Un||(Un=function(e){return e});Fi||(Fi=function(e){return e});AC||(AC=function(e,n){return xf(e,er(n))});var jk=Vi(Array.prototype.forEach),CE=Vi(Array.prototype.pop),Ru=Vi(Array.prototype.push),Af=Vi(String.prototype.toLowerCase),mp=Vi(String.prototype.toString),vE=Vi(String.prototype.match),Yi=Vi(String.prototype.replace),Kk=Vi(String.prototype.indexOf),Xk=Vi(String.prototype.trim),Sn=Vi(RegExp.prototype.test),pp=qk(TypeError);function Vi(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return sg(t,e,i)}}function qk(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return AC(t,n)}}function ze(t,e,n){var i;n=(i=n)!==null&&i!==void 0?i:Af,wE&&wE(t,null);for(var r=e.length;r--;){var s=e[r];if(typeof s=="string"){var o=n(s);o!==s&&(Uk(e)||(e[r]=o),s=o)}t[s]=!0}return t}function Wo(t){var e=Gk(null),n;for(n in t)sg(Bk,t,[n])===!0&&(e[n]=t[n]);return e}function ed(t,e){for(;t!==null;){var n=zk(t,e);if(n){if(n.get)return Vi(n.get);if(typeof n.value=="function")return Vi(n.value)}t=Yk(t)}function i(r){return console.warn("fallback value for",r),null}return i}var SE=Un(["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","section","select","shadow","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"]),wp=Un(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Cp=Un(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Zk=Un(["animate","color-profile","cursor","discard","fedropshadow","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"]),vp=Un(["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"]),Qk=Un(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),yE=Un(["#text"]),bE=Un(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellsp
`+rn),W&&(rn=Yi(rn,Ce," "),rn=Yi(rn,Me," "),rn=Yi(rn,et," ")),H&&y?H.createHTML(rn):rn},e.setConfig=function(be){zm(be),tt=!0},e.clearConfig=function(){nn=null,tt=!1},e.isValidAttribute=function(be,A,ee){nn||zm({});var ae=xt(be),at=xt(A);return wR(ae,at,ee)},e.addHook=function(be,A){typeof A=="function"&&(ie[be]=ie[be]||[],Ru(ie[be],A))},e.removeHook=function(be){if(ie[be])return CE(ie[be])},e.removeHooks=function(be){ie[be]&&(ie[be]=[])},e.removeAllHooks=function(){ie={}},e}var hF=Z_();//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var Q_;function X(){return Q_.apply(null,arguments)}function dF(t){Q_=t}function dr(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function Oa(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function st(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Xv(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(st(t,e))return!1;return!0}function ei(t){return t===void 0}function $s(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function Th(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function J_(t,e){var n=[],i,r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function So(t,e){for(var n in e)st(e,n)&&(t[n]=e[n]);return st(e,"toString")&&(t.toString=e.toString),st(e,"valueOf")&&(t.valueOf=e.valueOf),t}function os(t,e,n,i){return bI(t,e,n,i,!0).utc()}function fF(){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 We(t){return t._pf==null&&(t._pf=fF()),t._pf}var HC;Array.prototype.some?HC=Array.prototype.some:HC=function(t){var e=Object(this),n=e.length>>>0,i;for(i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};function qv(t){var e=null,n=!1,i=t._d&&!isNaN(t._d.getTime());if(i&&(e=We(t),n=HC.call(e.parsedDateParts,function(r){return r!=null}),i=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(i=i&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=i;else return i;return t._isValid}function nm(t){var e=os(NaN);return t!=null?So(We(e),t):We(e).userInvalidated=!0,e}var EE=X.momentProperties=[],yp=!1;function Zv(t,e){var n,i,r,s=EE.length;if(ei(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),ei(e._i)||(t._i=e._i),ei(e._f)||(t._f=e._f),ei(e._l)||(t._l=e._l),ei(e._strict)||(t._strict=e._strict),ei(e._tzm)||(t._tzm=e._tzm),ei(e._isUTC)||(t._isUTC=e._isUTC),ei(e._offset)||(t._offset=e._offset),ei(e._pf)||(t._pf=We(e)),ei(e._locale)||(t._locale=e._locale),s>0)for(n=0;n<s;n++)i=EE[n],r=e[i],ei(r)||(t[i]=r);return t}function Mh(t){Zv(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),yp===!1&&(yp=!0,X.updateOffset(this),yp=!1)}function fr(t){return t instanceof Mh||t!=null&&t._isAMomentObject!=null}function eI(t){X.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function Wi(t,e){var n=!0;return So(function(){if(X.deprecationHandler!=null&&X.deprecationHandler(null,t),n){var i=[],r,s,o,a=arguments.length;for(s=0;s<a;s++){if(r="",typeof arguments[s]=="object"){r+=`
[`+s+"] ";for(o in arguments[0])st(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[s];i.push(r)}eI(t+`
Arguments: `+Array.prototype.slice.call(i).join("")+`
`+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var TE={};function tI(t,e){X.deprecationHandler!=null&&X.deprecationHandler(t,e),TE[t]||(eI(e),TE[t]=!0)}X.suppressDeprecationWarnings=!1;X.deprecationHandler=null;function as(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function gF(t){var e,n;for(n in t)st(t,n)&&(e=t[n],as(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function NC(t,e){var n=So({},t),i;for(i in e)st(e,i)&&(Oa(t[i])&&Oa(e[i])?(n[i]={},So(n[i],t[i]),So(n[i],e[i])):e[i]!=null?n[i]=e[i]:delete n[i]);for(i in t)st(t,i)&&!st(e,i)&&Oa(t[i])&&(n[i]=So({},n[i]));return n}function Qv(t){t!=null&&this.set(t)}var DC;Object.keys?DC=Object.keys:DC=function(t){var e,n=[];for(e in t)st(t,e)&&n.push(e);return n};var mF={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function pF(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return as(i)?i.call(e,n):i}function Jr(t,e,n){var i=""+Math.abs(t),r=e-i.length,s=t>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var Jv=/(\[[^\[]*\])|(\\)?([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,nd=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,bp={},Xl={};function Re(t,e,n,i){var r=i;typeof i=="string"&&(r=function(){return this[i]()}),t&&(Xl[t]=r),e&&(Xl[e[0]]=function(){return Jr(r.apply(this,arguments),e[1],e[2])}),n&&(Xl[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function wF(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function CF(t){var e=t.match(Jv),n,i;for(n=0,i=e.length;n<i;n++)Xl[e[n]]?e[n]=Xl[e[n]]:e[n]=wF(e[n]);return function(r){var s="",o;for(o=0;o<i;o++)s+=as(e[o])?e[o].call(r,t):e[o];return s}}function Hf(t,e){return t.isValid()?(e=nI(e,t.localeData()),bp[e]=bp[e]||CF(e),bp[e](t)):t.localeData().invalidDate()}function nI(t,e){var n=5;function i(r){return e.longDateFormat(r)||r}for(nd.lastIndex=0;n>=0&&nd.test(t);)t=t.replace(nd,i),nd.lastIndex=0,n-=1;return t}var vF={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 SF(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(Jv).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[t])}var yF="Invalid date";function bF(){return this._invalidDate}var RF="%d",EF=/\d{1,2}/;function TF(t){return this._ordinal.replace("%d",t)}var MF={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 _F(t,e,n,i){var r=this._relativeTime[n];return as(r)?r(t,e,n,i):r.replace(/%d/i,t)}function IF(t,e){var n=this._relativeTime[t>0?"future":"past"];return as(n)?n(e):n.replace(/%s/i,e)}var ME={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 Bi(t
X.version="2.30.1";dF(Pt);X.fn=J;X.min=eW;X.max=tW;X.now=nW;X.utc=os;X.unix=OB;X.months=AB;X.isDate=Th;X.locale=Mo;X.invalid=nm;X.duration=Sr;X.isMoment=fr;X.weekdays=NB;X.parseZone=xB;X.localeData=Ws;X.isDuration=Nf;X.monthsShort=HB;X.weekdaysMin=LB;X.defineLocale=lS;X.updateLocale=xV;X.locales=AV;X.weekdaysShort=DB;X.normalizeUnits=Bi;X.relativeTimeRounding=uU;X.relativeTimeThreshold=cU;X.calendarFormat=_W;X.prototype=J;X.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"};function dU(t){const e=t.length;let n=0;for(;n<e;)t[n]=[t[n]],n+=1}function OE(t,e){const n=e.length;let i=0;for(;i<n;)t.push(e[i]),i+=1}function Lf(t){const e=[];if(!t||t.length===0||!t[0]||t[0].length===0)return e;const n=t.length,i=t[0].length;for(let r=0;r<n;r++)for(let s=0;s<i;s++)e[s]||(e[s]=[]),e[s][r]=t[r][s];return e}function Hn(t,e,n,i){let r=-1,s=t,o=n;Array.isArray(t)||(s=Array.from(t));const a=s.length;for(r+=1;r<a;)o=e(o,s[r],r,s),r+=1;return o}function gr(t,e){let n=0,i=t;Array.isArray(t)||(i=Array.from(t));const r=i.length,s=[];let o=-1;for(;n<r;){const a=i[n];e(a,n,i)&&(o+=1,s[o]=a),n+=1}return s}function Ke(t,e){let n=0,i=t;Array.isArray(t)||(i=Array.from(t));const r=i.length,s=[];let o=-1;for(;n<r;){const a=i[n];o+=1,s[o]=e(a,n,i),n+=1}return s}function M(t,e){let n=0,i=t;Array.isArray(t)||(i=Array.from(t));const r=i.length;for(;n<r&&e(i[n],n,i)!==!1;)n+=1;return t}function UI(t){const e=[];return M(t,n=>{e.indexOf(n)===-1&&e.push(n)}),e}function xE(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const[i,...r]=[...e];let s=i;return M(r,o=>{s=s.filter(a=>!o.includes(a))}),s}function AE(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ";return t.split(e)}function ct(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return Hn(t,(s,o,a)=>{const l=o.replace(/\r?\n\s*/g,""),u=n[a]?n[a]:"";return s+l+u},"").trim()}function Qt(t){let e;switch(typeof t){case"string":case"number":e=`${t}`;break;case"object":e=t===null?"":t.toString();break;case"undefined":e="";break;default:e=t.toString();break}return e}function de(t){return typeof t<"u"}function Mt(t){return typeof t>"u"}function Xt(t){return t===null||t===""||Mt(t)}function fU(t){return Object.prototype.toString.call(t)==="[object RegExp]"}const Tc="length",Ac=t=>parseInt(t,16),HE=t=>parseInt(t,10),hg=(t,e,n)=>t.substr(e,n),Hc=t=>t.codePointAt(0)-65,VC=t=>`${t}`.replace(/\-/g,""),gU=t=>Ac(hg(VC(t),Ac("12"),Hc("F")))/(Ac(hg(VC(t),Hc("B"),~~![][Tc]))||9),mU=()=>typeof location<"u"&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host);let NE=!1;const DE={invalid:()=>ct`
The license key for Handsontable is invalid.\x20
If you need any help, contact us at support@handsontable.com.`,expired:t=>{let{keyValidityDate:e,hotVersion:n}=t;return ct`
The license key for Handsontable expired on ${e}, and is not valid for the installed\x20
version ${n}. Renew your license key at handsontable.com or downgrade to a version released prior\x20
to ${e}. If you need any help, contact us at sales@handsontable.com.`},missing:()=>ct`
The license key for Handsontable is missing. Use your purchased key to activate the product.\x20
Alternatively, you can activate Handsontable to use for non-commercial purposes by\x20
passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\x20
us at support@handsontable.com.`,non_commercial:()=>""},LE={invalid:()=>ct`
The license key for Handsontable is invalid.\x20
<a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to\x20
install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.`,expired:t=>{let{keyValidityDate:e,hotVersion:n}=t;return ct`
The license key for Handsontable expired on ${e}, and is not valid for the installed\x20
version ${n}. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your\x20
license key or downgrade to a version released prior to ${e}. If you need any\x20
help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.`},missing:()=>ct`
The license key for Handsontable is missing. Use your purchased key to activate the product.\x20
Alternatively, you can activate Handsontable to use for non-commercial purposes by\x20
passing the key: 'non-commercial-and-evaluation'.\x20
<a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\x20
the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.`,non_commercial:()=>""};function pU(t,e){const n=!Xt(t),i=typeof t=="string"&&t.toLowerCase()==="non-commercial-and-evaluation",r="14.4.0";let s,o="invalid",a="invalid";t=VC(t||"");const l=wU(t);if(n||i||l)if(l){const u=X("11/06/2024","DD/MM/YYYY"),c=Math.floor(u.toDate().getTime()/864e5),h=gU(t);s=X((h+1)*864e5,"x").format("MMMM DD, YYYY"),c>h?(o="expired",a="expired"):(o="valid",a="valid")}else i?(o="non_commercial",a="valid"):(o="invalid",a="invalid");else o="missing",a="missing";if(mU()&&(o="valid",a="valid"),!NE&&o!=="valid"&&(DE[o]({keyValidityDate:s,hotVersion:r})&&console[o==="non_commercial"?"info":"warn"](DE[o]({keyValidityDate:s,hotVersion:r})),NE=!0),a!=="valid"&&e.parentNode&&LE[a]({keyValidityDate:s,hotVersion:r})){const c=document.createElement("div");c.className="hot-display-license-info",c.innerHTML=LE[a]({keyValidityDate:s,hotVersion:r}),e.parentNode.insertBefore(c,e.nextSibling)}}function wU(t){let e=[][Tc],n=e;if(t[Tc]!==Hc("Z"))return!1;for(let i="",r="B<H4P+".split(""),s=Hc(r.shift());s;s=Hc(r.shift()||"A"))--s<""[Tc]?n=n|(HE(`${HE(Ac(i)+(Ac(hg(t,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:i=hg(t,s,s?r[Tc]===1?9:8:6);return n===e}function mr(t){return t[0].toUpperCase()+t.substr(1)}function YI(){function t(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return t()+t()+t()+t()}function zI(t){return/^([0-9][0-9]?%$)|(^100%$)/.test(t)}function GI(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return`${t}`.replace(/(?:\\)?\[([^[\]]+)]/g,(n,i)=>n.charAt(0)==="\\"?n.substr(1,n.length-1):e[i]===void 0?"":e[i])}function $E(t){return wS(`${t}`,{ALLOWED_TAGS:[]})}function wS(t,e){return hF.sanitize(t,e)}const du=t=>["tabindex",t],CU=()=>["role","treegrid"],qr=()=>["role","presentation"],vU=()=>["role","gridcell"],SU=()=>["role","rowheader"],jI=()=>["role","rowgroup"],yU=()=>["role","columnheader"],WC=()=>["role","row"],bU=()=>["role","menu"],RU=()=>["role","menuitem"],EU=()=>["role","combobox"],KI=()=>["role","listbox"],TU=()=>["role","option"],MU=()=>["role","checkbox"],_U=()=>["scope","col"],IU=()=>["scope","row"],PU=()=>["type","text"],CS=t=>["aria-label",t],Us=()=>["aria-hidden","true"],OU=()=>["aria-disabled","true"],xU=()=>["aria-multiselectable","true"],XI=t=>["aria-haspopup",t],qI=t=>["aria-rowcount",t],fm=t=>["aria-colcount",t],ZI=t=>["aria-rowindex",t],vS=t=>["aria-colindex",t],ki=t=>["aria-expanded",t],AU=t=>["aria-sort",t],kE=()=>["aria-readonly","true"],FE=()=>["aria-invalid","true"],HU=t=>["aria-checked",t],SS=()=>["aria-selected","true"],NU=()=>["aria-autocomplete","list"],DU=t=>["aria-controls",t],LU=t=>["aria-activedescendant",t],$U=t=>["aria-live",t],kU=t=>["aria-relevant",t],FU=t=>["aria-setsize",t],VU=t=>["aria-posinset",t];function WU(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,i=null,r=t;for(;r!==null;){if(n===e){i=r;break}r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r=r.host:(n+=1,r=r.parentNode)}return i}function BU(t,e){const n=t.closest(".handsontable");return!!n&&(n.parentNode===e||n===e)}function UU(t){return Object.getPrototypeOf(t.parent)&&t.frameElement}function iu(t){return UU(t)&&t.parent}function Aa(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:i,DOCUMENT_FRAGMENT_NODE:r}=Node;let s=t;for(;s!=null&&s!==n;){const{nodeType:o,nodeName:a}=s;if(o===i&&(e.includes(a)||e.includes(s)))return s;const{host:l}=s;l&&o===r?s=l:s=s.parentNode}return null}function rd(t,e,n){const i=[];let r=t;for(;r&&(r=Aa(r,e,n),!(!r||n&&!n.contains(r)));)i.push(r),r.host&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r=r.host:r=r.parentNode;const s=i.length;return s?i[s-1]:null}function xa(t,e){let n=t.parentNode,i=[];for(typeof e=="string"?t.defaultView?i=Array.prototype.slice.call(t.querySelectorAll(e),0):i=Array.prototype.slice.call(t.ownerDocument.querySelectorAll(e),0):i.push(e);n!==null;){if(i.indexOf(n)>-1)return!0;n=n.parentNode}retur
Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\x20
learn about the migration path.`,Pp=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"]]),Op=new Map([[]]),ad=new WeakMap;class ce{static getSingleton(){return ez()}constructor(){XY(this,"globalBucket",void 0),this.globalBucket=this.createEmptyBucket()}createEmptyBucket(){const e=Object.create(null);return M(tl,n=>{e[n]=[],this.initOrderMap(e,n)}),e}getBucket(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}add(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;if(Array.isArray(n))M(n,s=>this.add(e,s,i));else{Pp.has(e)&&vt(GI(QY,{hookName:e,removedInVersion:Pp.get(e)})),Op.has(e)&&vt(Op.get(e));const s=this.getBucket(i);if(typeof s[e]>"u"&&(this.register(e),s[e]=[],this.initOrderMap(s,e)),n.skip=!1,s[e].indexOf(n)===-1){let o=!1;n.initialHook&&M(s[e],(a,l)=>{if(a.initialHook)return s[e][l]=n,o=!0,!1}),o||s[e].push(n)}this.setCallbackOrderIndex(s,e,n,r),this.orderBucketByOrderIndex(s,e)}return this}once(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;Array.isArray(n)?M(n,s=>this.once(e,s,i)):(n.runOnce=!0,this.add(e,n,i,r))}remove(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const r=this.getBucket(i);return typeof r[e]<"u"&&r[e].indexOf(n)>=0?(n.skip=!0,!0):!1}has(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const i=this.getBucket(n);return!!(i[e]!==void 0&&i[e].length)}run(e,n,i,r,s,o,a,l){{const u=this.globalBucket[n],c=u?u.length:0;let h=0;if(c)for(;h<c;){if(!u[h]||u[h].skip){h+=1;continue}const d=BC(u[h],e,i,r,s,o,a,l);d!==void 0&&(i=d),u[h]&&u[h].runOnce&&this.remove(n,u[h]),h+=1}}{const u=this.getBucket(e)[n],c=u?u.length:0;let h=0;if(c)for(;h<c;){if(!u[h]||u[h].skip){h+=1;continue}const d=BC(u[h],e,i,r,s,o,a,l);d!==void 0&&(i=d),u[h]&&u[h].runOnce&&this.remove(n,u[h],e),h+=1}}return i}destroy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;Ue(this.getBucket(e),(n,i,r)=>r[i].length=0)}register(e){this.isRegistered(e)||tl.push(e)}deregister(e){this.isRegistered(e)&&tl.splice(tl.indexOf(e),1)}isDeprecated(e){return Op.has(e)||Pp.has(e)}isRegistered(e){return tl.indexOf(e)>=0}getRegistered(){return tl}setCallbackOrderIndex(e,n,i,r){const s=Number.isInteger(r)?r:0,o=this.getCallbackOrderMap(e,n);o.set(s,[...o.get(s)||[],i])}orderBucketByOrderIndex(e,n){const i=this.getCallbackOrderMap(e,n);i===void 0||i.size===0||i.size===1&&i.has(0)||(e[n]=[...i].sort((r,s)=>r[0]-s[0]).flatMap(r=>{let[,s]=r;return s}))}initOrderMap(e,n){ad.has(e)||ad.set(e,[]),ad.get(e)[n]=new Map}getCallbackOrderMap(e,n){return ad.get(e)[n]}}const JY=new ce;function ez(){return JY}const xp=new Map;function br(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"common";xp.has(t)||xp.set(t,new Map);const e=xp.get(t);function n(a,l){e.set(a,l)}function i(a){return e.get(a)}function r(a){return e.has(a)}function s(){return[...e.keys()]}function o(){return[...e.values()]}return{register:n,getItem:i,hasItem:r,getNames:s,getValues:o}}const KC=new WeakMap,{register:tz,getItem:RP,hasItem:EP,getNames:_se,getValues:Ise}=br("editors");function nz(t){const e={},n=t;this.getConstructor=function(){return t},this.getInstance=function(i){return i.guid in e||(e[i.guid]=new n(i)),e[i.guid]},ce.getSingleton().add("afterDestroy",function(){e[this.guid]=null})}function TP(t,e){let n;if(typeof t=="function")KC.get(t)||ui(null,t),n=KC.get(t);else if(typeof t=="string")n=RP(t);else throw Error('Only strings and functions can be passed as "editor" parameter');if(!n)throw Error(`No editor registered under name "${t}"`);return n.getInstance(e)}function n0(t){if(typeof t=="function")return t;if(!EP(t))throw Error(`No registered editor found under "${t}" name`);return RP(t).getConstructor()}function ui(t,e){t&&typeof t!="s
`).replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");R=`<td ${Y.join(" ")}>${j}</td>`}}}p.push(R)}const C=["<tr>",...p,"</tr>"].join("");g?l.splice(1,0,C):u.splice(-1,0,C)}return a.splice(1,0,l.join(""),u.join("")),a.join("")}function c0(t){const e=t.length,n=["<table>"];for(let i=0;i<e;i+=1){const r=t[i],s=r.length,o=[];i===0&&n.push("<tbody>");for(let a=0;a<s;a+=1){const l=r[a],u=Xt(l)?"":l.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,`<br>\r
`).replace(/\x20{2,}/gi,c=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(c.length-1)} </span>`).replace(/\t/gi,"&#9;");o.push(`<td>${u}</td>`)}n.push("<tr>",...o,"</tr>"),i+1===e&&n.push("</tbody>")}return n.push("</table>"),n.join("")}function Xz(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;const n={},i=e.createDocumentFragment(),r=e.createElement("div");i.appendChild(r);let s=t;if(typeof s=="string"){const E=s.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,H=>{const P=H.match(/<td\b[^>]*?>/g)[0],B=/<p.*?>/g,Y=H.substring(P.length,H.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(B,`
`).replace(`
`,"").replaceAll(/<\/(.*)>\s+$/mg,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^&nbsp;$/mg,"");return`${P}${Y}</td>`});r.insertAdjacentHTML("afterbegin",`${E}`),s=r.querySelector("table")}if(!s||!Kz(s))return;const o=r.querySelector('meta[name$="enerator"]'),a=s.querySelector("tbody th")!==null,l=s.querySelector("tr"),u=l?Array.from(l.cells).reduce((E,H)=>E+H.colSpan,0)-(a?1:0):0,c=s.tFoot&&Array.from(s.tFoot.rows)||[],h=[];let d=!1,g=0,p=0;if(s.tHead){const E=Array.from(s.tHead.rows).filter(H=>{const P=H.querySelector("td")!==null;return P&&h.push(H),!P});g=E.length,d=g>0,g>1?n.nestedHeaders=Array.from(E).reduce((H,P)=>{const B=Array.from(P.cells).reduce((Y,j,z)=>{if(a&&z===0)return Y;const{colSpan:G,innerHTML:Z}=j,ne=G>1?{label:Z,colspan:G}:Z;return Y.push(ne),Y},[]);return H.push(B),H},[]):d&&(n.colHeaders=Array.from(E[0].children).reduce((H,P,B)=>(a&&B===0||H.push(P.innerHTML),H),[]))}h.length&&(n.fixedRowsTop=h.length),c.length&&(n.fixedRowsBottom=c.length);const C=[...h,...Array.from(s.tBodies).reduce((E,H)=>(E.push(...Array.from(H.rows)),E),[]),...c];p=C.length;const S=new Array(p);for(let E=0;E<p;E++)S[E]=new Array(u);const b=[],R=[];for(let E=0;E<p;E++){const H=C[E],P=Array.from(H.cells),B=P.length;for(let Y=0;Y<B;Y++){const j=P[Y],{nodeName:z,innerHTML:G,rowSpan:Z,colSpan:ne}=j,ie=S[E].findIndex(Ce=>Ce===void 0);if(z==="TD"){if(Z>1||ne>1){for(let Ne=E;Ne<E+Z;Ne++)if(Ne<p)for(let we=ie;we<ie+ne;we++)S[Ne][we]=null;const Me=j.getAttribute("style");Me&&Me.includes("mso-ignore:colspan")||b.push({col:ie,row:E,rowspan:Z,colspan:ne})}let Ce="";o&&/excel/gi.test(o.content)?Ce=G.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,`\r
`):Ce=G.replace(/<br(\s*|\/)>[\r\n]?/gim,`\r
`),S[E][ie]=Ce.replace(jz,Me=>_P[Me])}else R.push(G)}}return b.length&&(n.mergeCells=b),R.length&&(n.rowHeaders=R),S.length&&(n.data=S),n}function Bn(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=typeof t;if(n==="number")return!isNaN(t)&&isFinite(t);if(n==="string"){if(t.length===0)return!1;if(t.length===1)return/\d/.test(t);const i=Array.from(new Set([".",...e])).map(r=>`\\${r}`).join("|");return new RegExp(`^[+-]?(((${i})?\\d+((${i})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`,"i").test(t.trim())}else if(n==="object")return!!t&&typeof t.valueOf()=="number"&&!(t instanceof Date);return!1}function qz(t){return Bn(t,[","])}function me(t,e,n){let i=-1;for(typeof e=="function"?(n=e,e=t):i=t-1;++i<=e&&n(i)!==!1;);}function qC(t,e,n){let i=t+1;for(typeof e=="function"&&(n=e,e=0);--i>=e&&n(i)!==!1;);}function IP(t,e){return e=parseInt(e.toString().replace("%",""),10),e=isNaN(e)?0:e,parseInt(t*e/100,10)}function gt(t,e,n){return Math.min(t,e)===t?e:Math.max(t,n)===t?n:t}const ZC="asc",Zz="desc",h0=new Map([[ZC,[-1,1]],[Zz,[1,-1]]]),Qz=t=>`The priority '${t}' is already declared in a map.`,Jz=t=>`The priority '${t}' is not a number.`;function e2(){let{errorPriorityExists:t,errorPriorityNaN:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=new Map;t=Et(t)?t:Qz,e=Et(e)?e:Jz;function i(s,o){if(!Bn(s))throw new Error(e(s));if(n.has(s))throw new Error(t(s));n.set(s,o)}function r(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ZC;const[o,a]=h0.get(s)||h0.get(ZC);return[...n].sort((l,u)=>l[0]<u[0]?o:a).map(l=>l[1])}return{addItem:i,getItems:r}}const t2=t=>`The id '${t}' is already declared in a map.`;function wm(){let{errorIdExists:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=new Map;t=Et(t)?t:t2;function n(u,c){if(l(u))throw new Error(t(u));e.set(u,c)}function i(u){return e.delete(u)}function r(){e.clear()}function s(u){const[c]=a().find(h=>{let[d,g]=h;return u===g?d:!1})||[null];return c}function o(u){return e.get(u)}function a(){return[...e]}function l(u){return e.has(u)}return{addItem:n,clear:r,getId:s,getItem:o,getItems:a,hasItem:l,removeItem:i}}const n2=t=>`'${t}' value is already declared in a unique set.`;function i2(){let{errorItemExists:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=new Set;t=Et(t)?t:n2;function n(s){if(e.has(s))throw new Error(t(s));e.add(s)}function i(){return[...e]}function r(){e.clear()}return{addItem:n,clear:r,getItems:i}}const NS=t=>`There is already registered "${t}" plugin.`,r2=t=>`There is already registered plugin on priority "${t}".`,s2=t=>`The priority "${t}" is not a number.`,PP=e2({errorPriorityExists:r2,errorPriorityNaN:s2}),OP=i2({errorItemExists:NS}),QC=wm({errorIdExists:NS});function xP(){return[...PP.getItems(),...OP.getItems()]}function DS(t){const e=mr(t);return QC.getItem(e)}function o2(t){return!!DS(t)}function rt(t,e,n){[t,e,n]=l2(t,e,n),DS(t)===void 0&&a2(t,e,n)}function a2(t,e,n){const i=mr(t);if(QC.hasItem(i))throw new Error(NS(i));n===void 0?OP.addItem(i):PP.addItem(n,i),QC.addItem(i,e)}function l2(t,e,n){return typeof t=="function"&&(e=t,t=e.PLUGIN_KEY,n=e.PLUGIN_PRIORITY),[t,e,n]}const{register:u2,getItem:c2,hasItem:AP,getNames:Pse,getValues:Ose}=br("renderers");function d0(t){if(typeof t=="function")return t;if(!AP(t))throw Error(`No registered renderer found under "${t}" name`);return c2(t)}function _i(t,e){typeof t!="string"&&(e=t,t=e.RENDERER_TYPE),u2(t,e)}const{register:h2,getItem:d2,hasItem:HP,getNames:xse,getValues:Ase}=br("validators");function f2(t){if(typeof t=="function")return t;if(!HP(t))throw Error(`No registered validator found under "${t}" name`);return d2(t)}function $l(t,e){typeof t!="string"&&(e=t,t=e.VALIDATOR_TYPE),h2(t,e)}function dd(t,e,n){return e=g2(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g2(t){var e=m2(t,"string");return typeof e=="symbol"?e:e+""}function m2(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="objec
Consider limiting the number of rendered columns by specifying the table width and/or\x20
turning off the "renderAllColumns" option.`));for(let r=0;r<n;r++){const s=this.table.renderedColumnToSource(r),o=this.table.columnUtils.getHeaderWidth(s);this.rootNode.childNodes[r].style.width=`${o}px`}for(let r=0;r<e;r++){const s=this.table.renderedColumnToSource(r),o=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[r+n].style.width=`${o}px`}const i=this.rootNode.firstChild;i&&q(i,"rowHeader")}}function pG(t,e,n){return e=wG(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wG(t){var e=CG(t,"string");return typeof e=="symbol"?e:e+""}function CG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}let v0=!1;class vG extends Nh{constructor(e){super("TR",e),pG(this,"orderView",void 0),this.orderView=new VP(e,n=>this.nodesPool.obtain(n),this.nodeType)}getRenderedNode(e){return this.orderView.getNode(e)}render(){const{rowsToRender:e}=this.table;!v0&&e>1e3&&(v0=!0,vt(ct`Performance tip: Handsontable rendered more than 1000 visible rows.\x20
Consider limiting the number of rendered rows by specifying the table height and/or\x20
turning off the "renderAllRows" option.`)),this.table.isAriaEnabled()&&Ee(this.rootNode,[jI()]),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(let r=0;r<e;r++){this.orderView.render();const s=this.orderView.getCurrentNode(),o=this.table.renderedRowToSource(r);if(this.table.isAriaEnabled()){var n,i;Ee(s,[WC(),ZI(o+((n=(i=this.table.rowUtils)===null||i===void 0||(i=i.dataAccessObject)===null||i===void 0?void 0:i.columnHeaders.length)!==null&&n!==void 0?n:0)+1)])}}this.orderView.end()}}function S0(t,e,n){return e=SG(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function SG(t){var e=yG(t,"string");return typeof e=="symbol"?e:e+""}function yG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class bG extends Nh{constructor(){super("TD"),S0(this,"orderViews",new WeakMap),S0(this,"sourceRowIndex",0)}obtainOrderView(e){let n;return this.orderViews.has(e)?n=this.orderViews.get(e):(n=new WP(e,i=>this.nodesPool.obtain(this.sourceRowIndex,i),this.nodeType),this.orderViews.set(e,n)),n}render(){const{rowsToRender:e,columnsToRender:n,rows:i,rowHeaders:r}=this.table;for(let a=0;a<e;a++){const l=this.table.renderedRowToSource(a),u=i.getRenderedNode(a);this.sourceRowIndex=l;const c=this.obtainOrderView(u),h=r.obtainOrderView(u);c.prependView(h).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(let d=0;d<n;d++){c.render();const g=c.getCurrentNode(),p=this.table.renderedColumnToSource(d);if(_e(g,"hide")||(g.className=""),g.removeAttribute("style"),g.removeAttribute("dir"),fu(g,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.cellRenderer(l,p,g),this.table.isAriaEnabled()){var s,o;Ee(g,[...g.hasAttribute("role")?[]:[vU()],du(-1),vS(p+((s=(o=this.table.rowUtils)===null||o===void 0||(o=o.dataAccessObject)===null||o===void 0?void 0:o.rowHeaders.length)!==null&&s!==void 0?s:0)+1)])}}c.end()}}}function hn(t,e,n){return e=RG(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function RG(t){var e=EG(t,"string");return typeof e=="symbol"?e:e+""}function EG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class TG{constructor(e){let{cellRenderer:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};hn(this,"rootNode",void 0),hn(this,"rootDocument",void 0),hn(this,"rowHeaders",null),hn(this,"columnHeaders",null),hn(this,"colGroup",null),hn(this,"rows",null),hn(this,"cells",null),hn(this,"rowFilter",null),hn(this,"columnFilter",null),hn(this,"rowUtils",null),hn(this,"columnUtils",null),hn(this,"rowsToRender",0),hn(this,"columnsToRender",0),hn(this,"rowHeaderFunctions",[]),hn(this,"rowHeadersCount",0),hn(this,"columnHeaderFunctions",[]),hn(this,"columnHeadersCount",0),hn(this,"cellRenderer",void 0),this.rootNode=e,this.rootDocument=this.rootNode.ownerDocument,this.cellRenderer=n}setAxisUtils(e,n){this.rowUtils=e,this.columnUtils=n}setViewportSize(e,n){this.rowsToRender=e,this.columnsToRender=n}setFilters(e,n){this.rowFilter=e,this.columnFilter=n}setHeaderContentRenderers(e,n){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=n,this.columnHeadersCount=n.length}setRenderers(){let{rowHeaders:e,columnHeaders:n,colGroup:i,rows:r,cells:s}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.setTable(this),n.setTable(this),i.setTable(this),r.setTable(this),s.setTable(this),this.rowHeaders=e,this.columnHeaders=n,this.colGroup=i,this.rows=r,this.cells=s}renderedRowToSource(e){return this.rowFilter.renderedToSource(e)}renderedColumnToSource(e){return this.columnFilter.renderedToSource(e)}isAriaEnabled(){return this.rowUtils.wtSettings.getSetting("ariaTags"
before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)}function SK(t,e){return Array.isArray(t)&&Number.isInteger(e)?t[e]:t}const{register:yK,getValues:bK}=br("phraseFormatters");function RK(t,e){yK(t,e)}function EK(){return bK()}RK("pluralize",SK);const oO="ContextMenu:items",De=oO,oy=`${De}.noItems`,ay=`${De}.insertRowAbove`,ly=`${De}.insertRowBelow`,uy=`${De}.insertColumnOnTheLeft`,cy=`${De}.insertColumnOnTheRight`,hy=`${De}.removeRow`,dy=`${De}.removeColumn`,fy=`${De}.undo`,gy=`${De}.redo`,my=`${De}.readOnly`,py=`${De}.clearColumn`,wy=`${De}.copy`,Cy=`${De}.copyWithHeaders`,vy=`${De}.copyWithGroupHeaders`,Sy=`${De}.copyHeadersOnly`,yy=`${De}.cut`,by=`${De}.freezeColumn`,Ry=`${De}.unfreezeColumn`,Ey=`${De}.mergeCells`,Ty=`${De}.unmergeCells`,My=`${De}.addComment`,_y=`${De}.editComment`,Iy=`${De}.removeComment`,Py=`${De}.readOnlyComment`,Oy=`${De}.align`,xy=`${De}.align.left`,Ay=`${De}.align.center`,Hy=`${De}.align.right`,Ny=`${De}.align.justify`,Dy=`${De}.align.top`,Ly=`${De}.align.middle`,$y=`${De}.align.bottom`,ky=`${De}.borders`,Fy=`${De}.borders.top`,Vy=`${De}.borders.right`,Wy=`${De}.borders.bottom`,By=`${De}.borders.left`,Uy=`${De}.borders.remove`,Yy=`${De}.nestedHeaders.insertChildRow`,zy=`${De}.nestedHeaders.detachFromParent`,Gy=`${De}.hideColumn`,jy=`${De}.showColumn`,Ky=`${De}.hideRow`,Xy=`${De}.showRow`,Gn="Filters:",zt=`${Gn}conditions`,Rm=`${zt}.none`,qy=`${zt}.isEmpty`,Zy=`${zt}.isNotEmpty`,Qy=`${zt}.isEqualTo`,Jy=`${zt}.isNotEqualTo`,eb=`${zt}.beginsWith`,tb=`${zt}.endsWith`,nb=`${zt}.contains`,ib=`${zt}.doesNotContain`,TK=`${zt}.byValue`,rb=`${zt}.greaterThan`,sb=`${zt}.greaterThanOrEqualTo`,ob=`${zt}.lessThan`,ab=`${zt}.lessThanOrEqualTo`,lb=`${zt}.isBetween`,ub=`${zt}.isNotBetween`,cb=`${zt}.after`,hb=`${zt}.before`,db=`${zt}.today`,fb=`${zt}.tomorrow`,gb=`${zt}.yesterday`,mb=`${Gn}labels.filterByCondition`,pb=`${Gn}labels.filterByValue`,wb=`${Gn}labels.conjunction`,Em=`${Gn}labels.disjunction`,pg=`${Gn}values.blankCells`,Cb=`${Gn}buttons.selectAll`,vb=`${Gn}buttons.clear`,Sb=`${Gn}buttons.ok`,yb=`${Gn}buttons.cancel`,bb=`${Gn}buttons.placeholder.search`,Rb=`${Gn}buttons.placeholder.value`,Eb=`${Gn}buttons.placeholder.secondValue`,Tb="CheckboxRenderer:",Mb=`${Tb}checked`,_b=`${Tb}unchecked`,MK=Object.freeze(Object.defineProperty({__proto__:null,CHECKBOX_CHECKED:Mb,CHECKBOX_RENDERER_NAMESPACE:Tb,CHECKBOX_UNCHECKED:_b,CONTEXTMENU_ITEMS_ADD_COMMENT:My,CONTEXTMENU_ITEMS_ALIGNMENT:Oy,CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM:$y,CONTEXTMENU_ITEMS_ALIGNMENT_CENTER:Ay,CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY:Ny,CONTEXTMENU_ITEMS_ALIGNMENT_LEFT:xy,CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE:Ly,CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT:Hy,CONTEXTMENU_ITEMS_ALIGNMENT_TOP:Dy,CONTEXTMENU_ITEMS_BORDERS:ky,CONTEXTMENU_ITEMS_BORDERS_BOTTOM:Wy,CONTEXTMENU_ITEMS_BORDERS_LEFT:By,CONTEXTMENU_ITEMS_BORDERS_RIGHT:Vy,CONTEXTMENU_ITEMS_BORDERS_TOP:Fy,CONTEXTMENU_ITEMS_CLEAR_COLUMN:py,CONTEXTMENU_ITEMS_COPY:wy,CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY:Sy,CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS:vy,CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS:Cy,CONTEXTMENU_ITEMS_CUT:yy,CONTEXTMENU_ITEMS_EDIT_COMMENT:_y,CONTEXTMENU_ITEMS_FREEZE_COLUMN:by,CONTEXTMENU_ITEMS_HIDE_COLUMN:Gy,CONTEXTMENU_ITEMS_HIDE_ROW:Ky,CONTEXTMENU_ITEMS_INSERT_LEFT:uy,CONTEXTMENU_ITEMS_INSERT_RIGHT:cy,CONTEXTMENU_ITEMS_MERGE_CELLS:Ey,CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD:zy,CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD:Yy,CONTEXTMENU_ITEMS_NO_ITEMS:oy,CONTEXTMENU_ITEMS_READ_ONLY:my,CONTEXTMENU_ITEMS_READ_ONLY_COMMENT:Py,CONTEXTMENU_ITEMS_REDO:gy,CONTEXTMENU_ITEMS_REMOVE_BORDERS:Uy,CONTEXTMENU_ITEMS_REMOVE_COLUMN:dy,CONTEXTMENU_ITEMS_REMOVE_COMMENT:Iy,CONTEXTMENU_ITEMS_REMOVE_ROW:hy,CONTEXTMENU_ITEMS_ROW_ABOVE:ay,CONTEXTMENU_ITEMS_ROW_BELOW:ly,CONTEXTMENU_ITEMS_SHOW_COLUMN:jy,CONTEXTMENU_ITEMS_SHOW_ROW:Xy,CONTEXTMENU_ITEMS_UNDO:fy,CONTEXTMENU_ITEMS_UNFREEZE_COLUMN:Ry,CONTEXTMENU_ITEMS_UNMERGE_CELLS:Ty,CONTEXT_MENU_ITEMS_NAMESPACE:oO,FILTERS_BUTTONS_CANCEL:yb,FILTERS_BUTTONS_CLEAR:vb,FILTERS_BUTTONS_OK:Sb,FILTERS_BUTTONS_PLACE
* @preserve
* Authors: Handsoncode
* Last updated: Nov 15, 2017
*
* Description: Definition file for English - United States language-country.
*/const aO={languageCode:"en-US",[oy]:"No available options",[ay]:"Insert row above",[ly]:"Insert row below",[uy]:"Insert column left",[cy]:"Insert column right",[hy]:["Remove row","Remove rows"],[dy]:["Remove column","Remove columns"],[fy]:"Undo",[gy]:"Redo",[my]:"Read only",[py]:"Clear column",[Oy]:"Alignment",[xy]:"Left",[Ay]:"Center",[Hy]:"Right",[Ny]:"Justify",[Dy]:"Top",[Ly]:"Middle",[$y]:"Bottom",[by]:"Freeze column",[Ry]:"Unfreeze column",[ky]:"Borders",[Fy]:"Top",[Vy]:"Right",[Wy]:"Bottom",[By]:"Left",[Uy]:"Remove border(s)",[My]:"Add comment",[_y]:"Edit comment",[Iy]:"Delete comment",[Py]:"Read-only comment",[Ey]:"Merge cells",[Ty]:"Unmerge cells",[wy]:"Copy",[Cy]:["Copy with header","Copy with headers"],[vy]:["Copy with group header","Copy with group headers"],[Sy]:["Copy header only","Copy headers only"],[yy]:"Cut",[Yy]:"Insert child row",[zy]:"Detach from parent",[Gy]:["Hide column","Hide columns"],[jy]:["Show column","Show columns"],[Ky]:["Hide row","Hide rows"],[Xy]:["Show row","Show rows"],[Rm]:"None",[qy]:"Is empty",[Zy]:"Is not empty",[Qy]:"Is equal to",[Jy]:"Is not equal to",[eb]:"Begins with",[tb]:"Ends with",[nb]:"Contains",[ib]:"Does not contain",[rb]:"Greater than",[sb]:"Greater than or equal to",[ob]:"Less than",[ab]:"Less than or equal to",[lb]:"Is between",[ub]:"Is not between",[cb]:"After",[hb]:"Before",[db]:"Today",[fb]:"Tomorrow",[gb]:"Yesterday",[pg]:"Blank cells",[mb]:"Filter by condition",[pb]:"Filter by value",[wb]:"And",[Em]:"Or",[Cb]:"Select all",[vb]:"Clear",[Sb]:"OK",[yb]:"Cancel",[bb]:"Search",[Rb]:"Value",[Eb]:"Second value",[Mb]:"Checked",[_b]:"Unchecked"},_K=MK,ev=aO.languageCode,{register:IK,getItem:lO,hasItem:PK,getValues:OK}=br("languagesDictionaries");uO(aO);function uO(t,e){let n=t,i=e;return ke(t)&&(i=t,n=i.languageCode),xK(n,i),IK(n,Yn(i)),Yn(i)}function xK(t,e){t!==ev&&vK(e,lO(ev))}function cO(t){return Ib(t)?Yn(lO(t)):null}function Ib(t){return PK(t)}function AK(){return OK()}function hO(t,e,n){const i=cO(t);if(i===null)return null;const r=i[e];if(Mt(r))return null;const s=HK(r,n);return Array.isArray(s)?s[0]:s}function HK(t,e){let n=t;return M(EK(),i=>{n=i(t,e)}),n}function NK(t){let e=rO(t);return Ib(e)||(e=ev,sO(t)),e}function DK(t,e,n){return e=LK(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function LK(t){var e=$K(t,"string");return typeof e=="symbol"?e:e+""}function $K(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Gs extends UP{constructor(e,n){super(e,null),DK(this,"visualCellRange",null),this.visualCellRange=n||null,this.commit()}add(e){return this.visualCellRange===null?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}clear(){return this.visualCellRange=null,super.clear()}trimToVisibleCellsRangeOnly(e){let{from:n,to:i}=e,r=this.getNearestNotHiddenCoords(n,1),s=this.getNearestNotHiddenCoords(i,-1);return r===null||s===null?null:((r.row>s.row||r.col>s.col)&&(r=n,s=i),this.settings.createCellRange(r,r,s))}getNearestNotHiddenCoords(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;const r=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,n);if(r===null)return null;const s=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,i);return s===null?null:this.settings.createCellCoords(r,s)}getNearestNotHiddenIndex(e,n,i){return n<0?n:e.getNearestNotHiddenIndex(n,i)}commit(){if(this.visualCellRange===null)return this;const e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return e===null?this.cellRange=null:this.cellRange=this.createRenderableCellRange(e.from,e.to),this}syncWith(e){const n=e.from.clone().normalize(),i=e.getVerticalDirection()==="N-S"?1:-1,r=e.getHorizontalDirection()==="W-E"?1:-1,s=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let o=null;if((s===null||s.col===null||s.row===null)&&
the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\x20
columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);const r=uh(i,{createCellCoords:function(){return n.tableProps.createCellCoords(...arguments)},createCellRange:function(){return n.tableProps.createCellRange(...arguments)},propToCol:l=>this.tableProps.propToCol(l),keepDirection:!0}),s=this.settings.navigableHeaders,o={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:s?this.tableProps.countRowHeaders():0,countColHeaders:s?this.tableProps.countColHeaders():0},a=!e.some(l=>{const u=r(l),c=u.isValid(o);return!(c&&!u.containsHeaders()||c&&u.containsHeaders()&&u.isSingleHeader())});return a&&(this.clear(),this.setExpectedLayers(e.length),M(e,l=>{const{from:u,to:c}=r(l);this.setRangeStartOnly(u.clone(),!1),this.setRangeEnd(c.clone())}),this.finish()),a}selectColumns(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=typeof e=="string"?this.tableProps.propToCol(e):e,s=typeof n=="string"?this.tableProps.propToCol(n):n,o=this.tableProps.countRows(),a=this.tableProps.countCols(),l=this.tableProps.countColHeaders(),u=l===0?0:-l,c=this.tableProps.createCellCoords(u,r),h=this.tableProps.createCellCoords(o-1,s),d=this.tableProps.createCellRange(c,c,h).isValid({countRows:o,countCols:a,countRowHeaders:0,countColHeaders:l});if(d){let g=0,p=0;Number.isInteger(i?.row)&&Number.isInteger(i?.col)?(g=gt(i.row,u,o-1),p=gt(i.col,Math.min(r,s),Math.max(r,s))):(g=gt(i,u,o-1),p=r);const C=this.tableProps.createCellCoords(g,p),S=l===0?0:gt(C.row,u,-1),b=o-1,R=this.tableProps.createCellCoords(S,r),E=this.tableProps.createCellCoords(b,s);this.runLocalHooks("beforeSelectColumns",R,E,C),R.row=S,E.row=b,this.setRangeStartOnly(R,void 0,C),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(E),this.runLocalHooks("afterSelectColumns",R,E,C),this.finish()}return d}selectRows(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=this.tableProps.countRows(),s=this.tableProps.countCols(),o=this.tableProps.countRowHeaders(),a=o===0?0:-o,l=this.tableProps.createCellCoords(e,a),u=this.tableProps.createCellCoords(n,s-1),c=this.tableProps.createCellRange(l,l,u).isValid({countRows:r,countCols:s,countRowHeaders:o,countColHeaders:0});if(c){let h=0,d=0;Number.isInteger(i?.row)&&Number.isInteger(i?.col)?(h=gt(i.row,Math.min(e,n),Math.max(e,n)),d=gt(i.col,a,s-1)):(h=e,d=gt(i,a,s-1));const g=this.tableProps.createCellCoords(h,d),p=o===0?0:gt(g.col,a,-1),C=s-1,S=this.tableProps.createCellCoords(e,p),b=this.tableProps.createCellCoords(n,C);this.runLocalHooks("beforeSelectRows",S,b,g),S.col=p,b.col=C,this.setRangeStartOnly(S,void 0,g),this.selectedByRowHeader.add(this.getLayerLevel()),this.setRangeEnd(b),this.runLocalHooks("afterSelectRows",S,b,g),this.finish()}return c}refresh(){if(!this.isSelected())return;const e=this.tableProps.countRows(),n=this.tableProps.countCols();if(e===0||n===0){this.deselect();return}const i=this.selectedRange.peekByIndex(this.selectedRange.size()-1),{from:r,to:s,highlight:o}=i;this.clear(),o.assign({row:gt(o.row,-1/0,e-1),col:gt(o.col,-1/0,n-1)}),r.assign({row:gt(r.row,-1/0,e-1),col:gt(r.col,-1/0,n-1)}),s.assign({row:gt(s.row,0,e-1),col:gt(s.col,0,n-1)}),this.selectedRange.ranges.push(i),this.highlight.getFocus().add(o).commit().syncWith(i),this.applyAndCommit(i)}commit(){if(this.highlight.getCustomSelections().forEach(r=>{r.commit()}),!this.isSelected())return;const n=this.highlight.getFocus(),i=this.getLayerLevel();n.commit().syncWith(this.selectedRange.current());for(let r=0;r<this.selectedRange.size();r+=1){this.highlight.useLayerLevel(r);const s=this.highlight.createArea(),o=this.highlight.createLayeredArea(),a=this.highlight.createRowHeader(),l=this.highlight.createColumnHeader(),u=this.highlight.createActiveRowHeader(),c=this.highlight.createActiveColumnHeader(),h=this.highlight.createActiveCornerHeader(),d=this.highlight.createRowHighlight(),g=this.highlight.createColumnHighlight();s.commit(),o.co
`)>-1?s+=`"${o.replace(/"/g,'""')}"`:s+=o:o==null?s+="":s+=o;e!==n-1&&(s+=`
`)}return s}function Zo(t,e,n){return e=u3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u3(t){var e=c3(t,"string");return typeof e=="symbol"?e:e+""}function c3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Yl{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,n,i){Zo(this,"hot",void 0),Zo(this,"metaManager",void 0),Zo(this,"tableMeta",void 0),Zo(this,"dataSource",void 0),Zo(this,"duckSchema",void 0),Zo(this,"colToPropCache",void 0),Zo(this,"propToColCache",void 0),this.hot=e,this.metaManager=i,this.tableMeta=i.getTableMeta(),this.dataSource=n,this.duckSchema=this.createDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();if(typeof e>"u")throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");const n=this.tableMeta.columns;let i;if(this.colToPropCache=[],this.propToColCache=new Map,n){let r=0,s=0,o=!1;if(typeof n=="function"){const a=MS(e);r=a>0?a:this.countFirstRowKeys(),o=!0}else{const a=this.tableMeta.maxCols;r=Math.min(a,n.length)}for(i=0;i<r;i++){const a=o?n(i):n[i];if(ke(a)){if(typeof a.data<"u"){const l=o?s:i;this.colToPropCache[l]=a.data,this.propToColCache.set(a.data,l)}s+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return QP(this.dataSource)}recursiveDuckColumns(e,n,i){let r=n,s=i,o;return typeof r>"u"&&(r=0,s=""),typeof e=="object"&&!Array.isArray(e)&&Ue(e,(a,l)=>{a===null?(o=s+l,this.colToPropCache.push(o),this.propToColCache.set(o,r),r+=1):r=this.recursiveDuckColumns(a,r,`${l}.`)}),r}colToProp(e){if(Number.isInteger(e)===!1)return e;const n=this.hot.toPhysicalColumn(e);return n===null?e:this.colToPropCache&&de(this.colToPropCache[n])?this.colToPropCache[n]:n}propToCol(e){const n=this.propToColCache.get(e);if(de(n))return this.hot.toVisualColumn(n);const i=this.hot.toVisualColumn(e);return i===null?e:i}getSchema(){const e=this.tableMeta.dataSchema;return e?typeof e=="function"?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?oh(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,{source:i,mode:r="above"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.hot.countSourceRows();let o=s,a=0,l=e;if((typeof l!="number"||l>=s)&&(l=s),l<this.hot.countRows()&&(o=this.hot.toPhysicalRow(l)),this.hot.runHooks("beforeCreateRow",l,n,i)===!1||o===null)return{delta:0};const c=this.tableMeta.maxRows,h=this.getSchema().length,d=[];for(;a<n&&s+a<c;){let p=null;this.hot.dataType==="array"?this.tableMeta.dataSchema?p=Yn(this.getSchema()):(p=[],me(h-1,()=>p.push(null))):this.hot.dataType==="function"?p=this.tableMeta.dataSchema(l+a):(p={},pm(p,this.getSchema())),d.push(p),a+=1}this.hot.rowIndexMapper.insertIndexes(l,a),r==="below"&&(o=Math.min(o+1,s)),this.spliceData(o,0,d);const g=this.hot.toVisualRow(o);return this.hot.countSourceRows()===d.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),a>0&&(e==null?this.metaManager.createRow(null,a):i!=="auto"&&this.metaManager.createRow(o,n)),this.hot.runHooks("afterCreateRow",g,a,i),this.hot.forceFullRender=!0,{delta:a,startPhysicalIndex:o}}createCol(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,{source:i,mode:r="start"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!this.hot.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");const s=this.dataSource,o=this.tableMeta.maxCols,a=this.hot.countSourceCols();let l=e;if((typeof l!="number"||l>
Cell type must be an object or a string mapped to an object registered by
"Handsontable.cellTypes.registerCellType" method`);return d3(t)}function tr(t,e){typeof t!="string"&&(e=t,t=e.CELL_TYPE);const{editor:n,renderer:i,validator:r}=e;n&&ui(t,n),i&&_i(t,i),r&&$l(t,r),h3(t,e)}function g3(t,e){var n;return t==="CELL_TYPE"?!1:((n=e._automaticallyAssignedMetaProps)===null||n===void 0?void 0:n.has(t))||!Ut(e,t)}function _m(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t;const i=typeof e.type=="string"?f3(e.type):e.type;if(t._automaticallyAssignedMetaProps&&Ue(e,(s,o)=>void t._automaticallyAssignedMetaProps.delete(o)),!ke(i))return;n===t&&!t._automaticallyAssignedMetaProps&&(t._automaticallyAssignedMetaProps=new Set);const r={};Ue(i,(s,o)=>{if(g3(o,n)){var a;r[o]=s,(a=t._automaticallyAssignedMetaProps)===null||a===void 0||a.add(o)}}),tn(t,r)}function m3(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];function n(){}Ys(n,t);for(let i=0;i<e.length;i++)n.prototype[e[i]]=void 0;return n}function Wf(t){return Number.isInteger(t)&&t>=0}function Bf(t,e){if(!t())throw new Error(`Assertion failed: ${e}`)}function Hd(t){return t==null}const CO=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(t){let e,n,i;for(e=0,n=this.countRows();e<n;e++)if(i=this.getDataAtCell(e,t),Xt(i)===!1)return!1;return!0},isEmptyRow(t){let e,n,i,r;for(e=0,n=this.countCols();e<n;e++)if(i=this.getDataAtCell(t,e),Xt(i)===!1)return typeof i=="object"?(r=this.getCellMeta(t,e),TS(this.getSchema()[r.prop],i)):!1;return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:void 0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",visibleRows:10,width:void 0,wordWrap:!0});function K0(t,e,n){return e=p3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writ
using the KeyboardEvent.key properties:\x20
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values.`);const R={callback:u,group:c,runOnlyIf:h,captureCtrl:d,preventDefault:g,stopPropagation:p};de(C)&&(R.relativeToGroup=C,R.position=S),EO(b)&&(R.forwardToContext=b),l.forEach(E=>{const H=Dd(E);if(e.hasItem(H)){const B=e.getItem(H);let Y=B.findIndex(j=>j.group===C);Y!==-1?S==="before"?Y-=1:Y+=1:Y=B.length,B.splice(Y,0,R)}else e.addItem(H,[R])})},i=function(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};l.forEach(c=>{Ue(u,(h,d)=>{Object.prototype.hasOwnProperty.call(c,d)===!1&&(c[d]=u[d])}),n(c)})},r=l=>{const u=Dd(l);e.removeItem(u)};return{__kindOf:RO,addShortcut:n,addShortcuts:i,getShortcuts:l=>{const u=Dd(l),c=e.getItem(u);return de(c)?c.slice():[]},hasShortcut:l=>{const u=Dd(l);return e.hasItem(u)},removeShortcutsByKeys:r,removeShortcutsByGroup:l=>{e.getItems().forEach(c=>{let[h,d]=c;const g=d.filter(p=>p.group!==l);g.length===0?r(QX(h)):(d.length=0,d.push(...g))})}}};function t4(){const t=new Set;return{press(e){t.add(e)},release(e){t.delete(e)},releaseAll(){t.clear()},isPressed(e){return t.has(e)}}}const n4=["meta","alt","shift","control"],Yu=t4(),zu=[];let Ld=0;function i4(t,e,n,i,r){const s=g=>n4.includes(g),o=function(g){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const C=[];return g.altKey&&C.push("alt"),p&&(g.ctrlKey||g.metaKey)?C.push("control/meta"):(g.ctrlKey&&C.push("control"),g.metaKey&&C.push("meta")),g.shiftKey&&C.push("shift"),C},a=g=>{if(e(g)===!1)return;const p=n(g);if(g.keyCode===229||p===!1||Ra(g))return;const C=sw(g);let S=[];s(C)||(S=o(g));const b=[C].concat(S);!r(g,b)&&(UC()&&S.includes("meta")||!UC()&&S.includes("control"))&&r(g,[C].concat(o(g,!0))),i(g)},l=g=>{if(g.key){const p=sw(g);s(p)&&Yu.press(p)}},u=g=>{if(g.key){const p=sw(g);s(p)&&Yu.release(p)}},c=()=>{Yu.releaseAll()};return{mount:()=>{let g=t;for(Ld+=1;g;)Ld===1&&(g.document.documentElement.addEventListener("keydown",l),zu.push({event:"keydown",listener:l}),g.document.documentElement.addEventListener("keyup",u),zu.push({event:"keyup",listener:u})),g.document.documentElement.addEventListener("keydown",a),g.document.documentElement.addEventListener("blur",c),g=iu(g)},unmount:()=>{let g=t;for(Ld-=1;g;){if(Ld===0){for(let p=0;p<zu.length;p++){const{event:C,listener:S}=zu[p];g.document.documentElement.removeEventListener(C,S)}zu.length=0}g.document.documentElement.removeEventListener("keydown",a),g.document.documentElement.removeEventListener("blur",c),g=iu(g)}},isPressed:g=>Yu.isPressed(g),releasePressedKeys:()=>Yu.releaseAll()}}const r4=t=>{let{ownerWindow:e,handleEvent:n,beforeKeyDown:i,afterKeyDown:r}=t;const s=wm({errorIdExists:p=>`The "${p}" context name is already registered.`});let o="grid";const a=p=>{const C=e4(p);return s.addItem(p,C),C},l=()=>o,u=p=>s.getItem(p),c=p=>{if(!s.hasItem(p))throw new Error(ct`You've tried to activate the "${p}" shortcut context\x20
that does not exist. Before activation, register the context using the "addContext" method.`);o=p};let h=!1;const d=function(p,C){let S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l();const b=EO(S)?S:u(S);let R=!1;if(!b.hasShortcut(C))return R;const E=b.getShortcuts(C);for(let H=0;H<E.length;H++){const{callback:P,runOnlyIf:B,preventDefault:Y,stopPropagation:j,captureCtrl:z,forwardToContext:G}=E[H];if(B(p)===!0){if(h=z,R=P(p,C)===!1,h=!1,Y&&p.preventDefault(),j&&(yr(p),p.stopPropagation()),R)break;G&&d(p,C,G)}}return R},g=i4(e,n,i,r,d);return g.mount(),{addContext:a,getActiveContextName:l,getContext:u,setActiveContextName:c,isCtrlPressed:()=>!h&&(g.isPressed("control")||g.isPressed("meta")),releasePressedKeys:()=>g.releasePressedKeys(),destroy:()=>g.unmount()}};let ow=null;const aw=new Map;function TO(t,e){var n,i=this;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=this;const o=new wr(s);let a,l,u,c,h,d,g=!0;Wj(r)&&Vj(this),this.rootElement=t,this.rootDocument=t.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const p=(n=e?.layoutDirection)!==null&&n!==void 0?n:"inherit",C=["rtl","ltr"].includes(p)?p:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",C),this.isRtl=function(){return C==="rtl"},this.isLtr=function(){return!s.isRtl()},this.getDirectionFactor=function(){return s.isLtr()?1:-1},e.language=NK(e.language);const S=new vO(s,e,[D3,B3]),b=S.getTableMeta(),R=S.getGlobalMeta(),E=wm();this.container=this.rootDocument.createElement("div"),this.renderCall=!1,t.insertBefore(this.container,t.firstChild),Ff(this)&&pU(e.licenseKey,t),this.guid=`ht_${YI()}`,aw.set(this.guid,this),this.columnIndexMapper=new JC,this.rowIndexMapper=new JC,this.columnIndexMapper.addLocalHook("indexesSequenceChange",f=>{s.runHooks("afterColumnSequenceChange",f)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",f=>{s.runHooks("afterRowSequenceChange",f)}),l=new Jj(s),(!this.rootElement.id||this.rootElement.id.substring(0,3)==="ht_")&&(this.rootElement.id=this.guid);const H=f=>{const{row:m,col:w}=f;return s._createCellCoords(m>=0?s.rowIndexMapper.getRenderableFromVisualIndex(m):m,w>=0?s.columnIndexMapper.getRenderableFromVisualIndex(w):w)},P=f=>{const{row:m,col:w}=f;return s._createCellCoords(m>=0?s.rowIndexMapper.getVisualFromRenderableIndex(m):m,w>=0?s.columnIndexMapper.getVisualFromRenderableIndex(w):w)},B=(f,m)=>{const w=m>f?1:-1,O=Math.min(f,m),I=Math.max(f,m),F=s.rowIndexMapper.getNearestNotHiddenIndex(f,w);return F===null||w===1&&F>I||w===-1&&F<O?null:F>=0?s.rowIndexMapper.getRenderableFromVisualIndex(F):F},Y=(f,m)=>{const w=m>f?1:-1,O=Math.min(f,m),I=Math.max(f,m),F=s.columnIndexMapper.getNearestNotHiddenIndex(f,w);return F===null||w===1&&F>I||w===-1&&F<O?null:F>=0?s.columnIndexMapper.getRenderableFromVisualIndex(F):F};let j=new pO(b,{rowIndexMapper:s.rowIndexMapper,columnIndexMapper:s.columnIndexMapper,countCols:()=>s.countCols(),countRows:()=>s.countRows(),propToCol:f=>a.propToCol(f),isEditorOpened:()=>s.getActiveEditor()?s.getActiveEditor().isOpened():!1,countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return i.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return i.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>s.getShortcutManager(),createCellCoords:(f,m)=>s._createCellCoords(f,m),createCellRange:(f,m,w)=>s._createCellRange(f,m,w),visualToRenderableCoords:H,renderableToVisualCoords:P,findFirstNonHiddenRenderableRow:B,findFirstNonHiddenRenderableColumn:Y,isDisabledCellSelection:(f,m)=>f<0||m<0?s.getSettings().disableVisualSelection:s.getCellMeta(f,m).disableVisualSelection});this.selection=j;const z=f=>{let{hiddenIndexesChanged:m}=f;m&&this.selection.commit()};this.columnIndexMapper.addLocalHook("ca
`);let r=n,s=0;for(let o=0;o<i.length;o++){const a=i[o];o!==0&&(s+=i[o-1].length+1);const l=s+a.length;if(t==="home"?r=s:t==="end"&&(r=l),n<=l)break}gm(e,r)}function Qo(t,e,n){return e=o4(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o4(t){var e=a4(t,"string");return typeof e=="symbol"?e:e+""}function a4(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const l4="ht_editor_visible",$d="ht_editor_hidden",aT="textEditor",u4="text";class qa extends pu{static get EDITOR_TYPE(){return u4}constructor(e){super(e),Qo(this,"eventManager",new wr(this)),Qo(this,"autoResize",s4(this.hot.rootDocument)),Qo(this,"TEXTAREA",void 0),Qo(this,"textareaStyle",void 0),Qo(this,"TEXTAREA_PARENT",void 0),Qo(this,"textareaParentStyle",void 0),Qo(this,"layerClass",void 0),this.eventManager=new wr(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",()=>this.destroy())}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e}open(){this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this.autoResize.unObserve(),BU(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,n,i,r,s,o){const a=this.state;if(super.prepare(e,n,i,r,s,o),!o.readOnly){this.refreshDimensions(!0);const{allowInvalid:l}=o;l&&!this.isOpened()&&(this.TEXTAREA.value=""),a!==jt.FINISHED&&!this.isOpened()&&this.hideEditableElement()}}beginEditing(e,n){this.state===jt.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,n))}focus(){this.TEXTAREA.select(),gm(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){const{rootDocument:e}=this.hot;this.TEXTAREA=e.createElement("TEXTAREA"),Ee(this.TEXTAREA,[["data-hot-input",""],du(-1)]),this.hot.getSettings().ariaTags&&Ee(this.TEXTAREA,[Us()]),q(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),q(this.TEXTAREA_PARENT,"handsontableInputHolder"),_e(this.TEXTAREA_PARENT,this.layerClass)&&He(this.TEXTAREA_PARENT,this.layerClass),q(this.TEXTAREA_PARENT,$d),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){RY()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",He(this.TEXTAREA_PARENT,this.layerClass),q(this.TEXTAREA_PARENT,$d)}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 n=!1;me(e.length-1,i=>{const r=e[i];if(_e(r,"handsontableEditor"))return n=!0,!1}),_e(this.TEXTAREA_PARENT,$d)&&He(this.TEXTAREA_PARENT,$d),n?(this.layerClass=l4,q(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),q(this.TEXTAREA_PARENT,this.layerClass))}refreshValue(){const e=this.hot.toPhysicalRow(this.row),n=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=n,this.setValue(n),this.refreshDimensions()}refreshDimensions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.state!==jt.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD){e||this.close();return}const{top:n,start:i,width:r,maxWidth:s,height:o,maxHeight:a}=this.getEditedCellRect();this.textareaParentStyle.top=`${n}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${i}px`,this.showEditableElement();const
`)};n.addShortcuts([{keys:[["Control","Enter"]],callback:()=>(r(),!1),runOnlyIf:s=>!this.hot.selection.isMultiple()&&!s.altKey},{keys:[["Meta","Enter"]],callback:()=>(r(),!1),runOnlyIf:()=>!this.hot.selection.isMultiple()},{keys:[["Alt","Enter"]],callback:()=>(r(),!1)},{keys:[["Home"]],callback:(s,o)=>{let[a]=o;oT(a,this.TEXTAREA)}},{keys:[["End"]],callback:(s,o)=>{let[a]=o;oT(a,this.TEXTAREA)}}],i)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(aT)}}const c4="base";function $h(t,e,n,i,r,s,o){const a=o.ariaTags,l=[],u=[],c=[],h=[];o.className&&q(e,o.className),o.readOnly?(l.push(o.readOnlyCellClassName),a&&h.push(kE())):a&&c.push(kE()[0]),o.valid===!1&&o.invalidCellClassName?(l.push(o.invalidCellClassName),a&&h.push(FE())):(u.push(o.invalidCellClassName),a&&c.push(FE()[0])),o.wordWrap===!1&&o.noWordWrapClassName&&l.push(o.noWordWrapClassName),!s&&o.placeholder&&l.push(o.placeholderCellClassName),He(e,u),q(e,l),fu(e,c),Ee(e,h)}$h.RENDERER_TYPE=c4;const h4="text";function js(t,e,n,i,r,s,o){$h.apply(this,[t,e,n,i,r,s,o]);let a=s;if(!a&&o.placeholder&&(a=o.placeholder),a=Qt(a),o.trimWhitespace&&(a=a.trim()),o.rendererTemplate){es(e);const l=t.rootDocument.createElement("TEMPLATE");l.setAttribute("bind","{{}}"),l.innerHTML=o.rendererTemplate,HTMLTemplateElement.decorate(l),l.model=t.getSourceDataAtRow(n),e.appendChild(l)}else Ha(e,a)}js.RENDERER_TYPE=h4;const d4="text",MO={CELL_TYPE:d4,editor:qa,renderer:js};tr(MO);ls.editors={BaseEditor:pu};function ls(t,e){const n=new TO(t,e||{},JS);return n.init(),n}ls.Core=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new TO(t,e,JS)};ls.DefaultSettings=CO();ls.hooks=ce.getSingleton();ls.CellCoords=La;ls.CellRange=Hh;ls.packageName="handsontable";ls.buildDate="11/06/2024 09:51:42";ls.version="14.4.0";ls.languages={dictionaryKeys:_K,getLanguageDictionary:cO,getLanguagesDictionaries:AK,registerLanguageDictionary:uO,getTranslatedPhrase:hO};const lT="handsontableEditor",f4="handsontable";class Ob extends qa{static get EDITOR_TYPE(){return f4}open(){super.open(),this.htEditor&&this.htEditor.destroy(),this.htContainer.style.display==="none"&&(this.htContainer.style.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(),gm(this.TEXTAREA,0,this.TEXTAREA.value.length),this.refreshDimensions()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,n,i,r,s,o){super.prepare(e,n,i,r,s,o);const a=this,l={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,afterOnCellMouseDown(u,c){const h=this.getSourceData(c.row,c.col);h!==void 0&&a.setValue(h),a.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&tn(l,o.handsontable),this.htOptions=l}beginEditing(e,n){const i=this.hot.getSettings().onBeginEditing;i&&i()===!1||super.beginEditing(e,n)}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,n,i){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){const r=this.htEditor.getValue();r!==void 0&&this.setValue(r)}super.finishEditing(e,n,i)}assignHooks(){this.hot.addHook("afterDestroy",()=>{this.htEditor&&this.htEditor.destroy()})}registerShortcuts(){const n=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const i={group:lT,relativeToGroup:ko,position:"before"},r=(s,o)=>{const a=this.htEditor;if(s!==void 0&&(s<0||a.flipped&&s>a.countRows()-1?a.deselectCell():a.selectCell(s,0),a.getData().length))return o.preventDefault(),yr(o),this.hot.listen
* Pikaday
*
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
*/const Ro=()=>window,Hi=()=>window.document,rv=(t,e)=>window.setTimeout(t,e),Vr=function(t,e,n,i){t.addEventListener(e,n,!!i)},ps=function(t,e,n,i){t.removeEventListener(e,n,!!i)},y4=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},li=function(t,e){return(" "+t.className+" ").indexOf(" "+e+" ")!==-1},uw=function(t,e){li(t,e)||(t.className=t.className===""?e:t.className+" "+e)},cw=function(t,e){t.className=y4((" "+t.className+" ").replace(" "+e+" "," "))},Ab=function(t){return/Array/.test(Object.prototype.toString.call(t))},di=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},b4=function(t){let e=t.getDay();return e===0||e===6},R4=function(t){return t%4===0&&t%100!==0||t%400===0},cT=function(t,e){return[31,R4(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},Fd=function(t){di(t)&&t.setHours(0,0,0,0)},Vd=function(t,e){return t.getTime()===e.getTime()},Cg=function(t,e,n){let i,r;for(i in e)r=t[i]!==void 0,r&&typeof e[i]=="object"&&e[i]!==null&&e[i].nodeName===void 0?di(e[i])?n&&(t[i]=new Date(e[i].getTime())):Ab(e[i])?n&&(t[i]=e[i].slice(0)):t[i]=Cg({},e[i],n):(n||!r)&&(t[i]=e[i]);return t},hT=function(t,e,n){let i=Hi().createEvent("HTMLEvents");i.initEvent(e,!0,!1),i=Cg(i,n),t.dispatchEvent(i)},dT=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},Pr={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},fT=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},E4=function(t){let e=[],n="false";if(t.isEmpty)if(t.showDaysInNextAndPreviousMonths)e.push("is-outside-current-month"),t.enableSelectionDaysInNextAndPreviousMonths||e.push("is-selection-disabled");else return'<td class="is-empty"></td>';return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),n="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+t.year+'" data-pika-month="'+t.month+'" data-pika-day="'+t.day+'">'+t.day+"</button></td>"},T4=function(t,e){t.setHours(0,0,0,0);let n=t.getDate(),i=t.getDay(),r=e,s=r-1,o=7,a=function(d){return(d+o-1)%o};t.setDate(n+s-a(i));let l=new Date(t.getFullYear(),0,r),u=24*60*60*1e3,c=(t.getTime()-l.getTime())/u;return 1+Math.round((c-s+a(l.getDay()))/o)},M4=function(t,e,n,i,r){let s=new Date(i,n,e);return'<td class="pika-week">'+(t.hasMoment?t.moment(s).isoWeek():T4(s,r))+"</td>"},_4=function(t,e,n,i){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(i?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"},I4=function(t){return"<tbody>"+t.join("")+"</tbody>"},P4=function(t){let e,n=[];for(t.showWeekNumber&&n.push("<th></th>"),e=0;e<7;e++)n.push('<th scope="col"><abbr title="'+fT(t,e)+'">'+fT(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?n.reverse():n).join("")+"</tr></thead>"},O4=function(t,e,n,i,r,s){
`,`${r.join(`
`)}
`].join("");fw.push(s)}}if(Or||(Or=xP()),Or.indexOf("UndoRedo")>=0&&Or.splice(Or.indexOf("UndoRedo"),1),Or.indexOf(this.pluginName)>=0&&Or.splice(Or.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()}),Or.length===0){if(fw.length>0){const r=[`${fw.join(`
`)}
`,"You have to import and register them manually."].join("");throw new Error(r)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}enablePlugin(){this.enabled=!0}disablePlugin(){var e;(e=this.eventManager)===null||e===void 0||e.clear(),this.clearHooks(),this.enabled=!1}addHook(e,n,i){dl(ea,this)[e]=dl(ea,this)[e]||[];const r=dl(ea,this)[e];this.hot.addHook(e,n,i),r.push(n),dl(ea,this)[e]=r}removeHooks(e){M(dl(ea,this)[e]||[],n=>{this.hot.removeHook(e,n)})}clearHooks(){const e=dl(ea,this);Ue(e,(n,i)=>this.removeHooks(i)),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){M(this.pluginsInitializedCallbacks,e=>e()),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const n=FO(ST,this,kq).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&n&&this.updatePlugin(e))}updatePlugin(){}destroy(){var e;(e=this.eventManager)===null||e===void 0||e.destroy(),this.clearHooks(),Ue(this,(n,i)=>{i!=="hot"&&(this[i]=null)}),delete this.t,delete this.hot}}function kq(t){if(!t)return!1;const e=this.constructor.SETTING_KEYS;if(typeof e=="boolean")return e;for(let n=0;n<e.length;n++)if(t[e[n]]!==void 0)return!0;return!1}function ta(t,e,n){return e=Fq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fq(t){var e=Vq(t,"string");return typeof e=="symbol"?e:e+""}function Vq(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}let VO=class{constructor(e){ta(this,"hot",null),ta(this,"container",null),ta(this,"injected",!1),ta(this,"rows",[]),ta(this,"columns",[]),ta(this,"samples",null),ta(this,"settings",{useHeaders:!0}),this.hot=e}addRow(e,n){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));const i={row:e};this.rows.push(i),this.samples=n,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),i.table=this.table.table}addColumnHeadersRow(e){const n=this.hot.getColHeader(0);if(n!=null){const i={row:-1};this.rows.push(i),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),i.table=this.table.table}}addColumn(e,n){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));const i={col:e};this.columns.push(i),this.samples=n,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&this.hot.getColHeader(e)!==null&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),i.table=this.table.table}getHeights(e){this.injected||this.injectTable(),M(this.rows,n=>{e(n.row,Yt(n.table)-1)})}getWidths(e){this.injected||this.injectTable(),M(this.columns,n=>{const{width:i}=n.table.getBoundingClientRect();e(n.col,Math.ceil(i))})}setSettings(e){this.settings=e}setSetting(e,n){this.settings||(this.settings={}),this.settings[e]=n}getSettings(){return this.settings}getSetting(e){return this.settings?this.settings[e]:null}createColGroupsCol(e){const n=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&n.appendChild(this.createColElement(-1,-1)),this.samples.forEach(i=>{M(i.strings,r=>{n.appendChild(this.createColElement(r.co
You must provide a destination row for the Column Summary plugin in order to work properly!
`)),this.assignSetting(r,s,"destinationColumn",new Error(`
You must provide a destination column for the Column Summary plugin in order to work properly!
`)),this.assignSetting(r,s,"sourceColumn",r.destinationColumn),this.assignSetting(r,s,"type","sum"),this.assignSetting(r,s,"forceNumeric",!1),this.assignSetting(r,s,"suppressDataTypeErrors",!0),this.assignSetting(r,s,"customFunction",null),this.assignSetting(r,s,"readOnly",!0),this.assignSetting(r,s,"roundFloat",!1),n.push(s)}),n}assignSetting(e,n,i,r){if(i==="ranges"&&e[i]===void 0){n[i]=r;return}else if(i==="ranges"&&e[i].length===0)return;if(e[i]===void 0){if(r instanceof Error)throw r;n[i]=r}else i==="destinationRow"&&n.reversedRowCoords?n[i]=this.hot.countRows()-e[i]-1:n[i]=e[i]}resetSetupBeforeStructureAlteration(e,n,i){if(this.settingsType!=="function")return;const r=e.indexOf("row")>-1?"row":"col",s=this.getAllEndpoints();M(s,o=>{r==="row"&&o.destinationRow>=n&&(e==="insert_row"?o.alterRowOffset=i:e==="remove_row"&&(o.alterRowOffset=-1*i)),r==="col"&&o.destinationColumn>=n&&(e==="insert_col"?o.alterColumnOffset=i:e==="remove_col"&&(o.alterColumnOffset=-1*i))}),this.resetAllEndpoints(s,!1)}resetSetupAfterStructureAlteration(e,n,i,r,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(this.settingsType==="function"){const d=()=>(this.hot.removeHook("beforeViewRender",d),this.refreshAllEndpoints());this.hot.addHookOnce("beforeViewRender",d);return}const a=e.indexOf("row")>-1?"row":"col",l=e.indexOf("remove")>-1?-1:1,u=this.getAllEndpoints(),c=e.indexOf("move_row")===0,h=n;M(u,d=>{a==="row"&&d.destinationRow>=h&&(d.alterRowOffset=l*i),a==="col"&&d.destinationColumn>=h&&(d.alterColumnOffset=l*i)}),this.resetAllEndpoints(u,!c),c?M(u,d=>{this.extendEndpointRanges(d,h,r[0],r.length),this.recreatePhysicalRanges(d),this.clearOffsetInformation(d)}):M(u,d=>{this.shiftEndpointCoordinates(d,h)}),o&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,n,i,r){M(e.ranges,s=>{s[1]&&(n>=s[0]&&n<=s[1]?i>s[1]?s[1]+=r:i<s[0]&&(s[0]-=r):i>=s[0]&&i<=s[1]&&(s[1]-=r,n<=s[0]&&(s[0]+=1,s[1]+=1)))})}recreatePhysicalRanges(e){const n=e.ranges,i=[],r=[];M(n,s=>{const o=[];if(s[1])for(let a=s[0];a<=s[1];a++)o.push(this.hot.toPhysicalRow(a));else o.push(this.hot.toPhysicalRow(s[0]));r.push(o)}),M(r,s=>{let o=[];M(s,(a,l)=>{l===0?o.push(a):s[l]!==s[l-1]+1&&(o.push(s[l-1]),i.push(o),o=[],o.push(a)),l===s.length-1&&(o.push(a),i.push(o))})}),e.ranges=i}shiftEndpointCoordinates(e,n){e.alterRowOffset&&e.alterRowOffset!==0?(e.destinationRow+=e.alterRowOffset||0,M(e.ranges,i=>{M(i,(r,s)=>{r>=n&&(i[s]+=e.alterRowOffset||0)})})):e.alterColumnOffset&&e.alterColumnOffset!==0&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getAllEndpoints(),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;e.some(r=>{const s=r.alterRowOffset||0,o=r.alterColumnOffset||0;return r.destinationRow+s>=this.hot.countRows()||r.destinationColumn+o>=this.hot.countCols()})||(this.cellsToSetCache=[],M(e,r=>{this.resetEndpointValue(r,n)}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],M(this.getAllEndpoints(),e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")}),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const n=[];this.cellsToSetCache=[],M(e,(i,r,s)=>{`${i[2]||""}`!=`${i[3]}`&&M(this.getAllEndpoints(),(o,a)=>{this.hot.propToCol(s[r][1])===o.sourceColumn&&n.indexOf(a)===-1&&n.push(a)})}),M(n,i=>{this.refreshEndpoint(this.getEndpoint(i))}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshCellMetas(){this.endpoints.forEach(e=>{const n=this.hot.toVisualRow(e.destinationRow);if(n!==null){const i=this.hot.getCellMeta(n,e.destinationColumn);i.readOnly=e.readOnly,i.className="columnSummaryResult"}})}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.curr
numeric format. Cannot do the calculation.`);return s}}function Y9(){this.endpoints.initEndpoints()}function z9(t){t.columns!==void 0&&this.endpoints.refreshCellMetas()}function G9(t,e){t&&e!=="ColumnSummary.reset"&&e!=="ColumnSummary.set"&&e!=="loadData"&&this.endpoints.refreshChangedEndpoints(t)}function j9(t,e){this.endpoints.resetSetupBeforeStructureAlteration("move_row",t[0],t.length,t,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",e,t.length,t,this.pluginName)}function Cl(t,e,n){return e=K9(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K9(t){var e=X9(t,"string");return typeof e=="symbol"?e:e+""}function X9(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Gl{static get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"}static get CLASS_EDITOR(){return"htComments"}static get CLASS_INPUT(){return"htCommentTextArea"}static get CLASS_CELL(){return"htCommentCell"}constructor(e,n){Cl(this,"rootDocument",void 0),Cl(this,"isRtl",!1),Cl(this,"container",null),Cl(this,"editor",void 0),Cl(this,"editorStyle",void 0),Cl(this,"hidden",!0),this.rootDocument=e,this.isRtl=n,this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hide()}setPosition(e,n){this.editorStyle.left=`${e}px`,this.editorStyle.top=`${n}px`}setSize(e,n){if(e&&n){const i=this.getInputElement();i.style.width=`${e}px`,i.style.height=`${n}px`}}getSize(){return{width:Ct(this.getInputElement()),height:Yt(this.getInputElement())}}resetSize(){const e=this.getInputElement();e.style.width="",e.style.height=""}setReadOnlyState(e){const n=this.getInputElement();n.readOnly=e}show(){this.editorStyle.display="block",this.hidden=!1}hide(){this.hidden||(this.editorStyle.display="none"),this.hidden=!0}isVisible(){return this.editorStyle.display==="block"}setValue(){const n=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"")||"";this.getInputElement().value=n}getValue(){return this.getInputElement().value}isFocused(){return this.rootDocument.activeElement===this.getInputElement()}focus(){this.getInputElement().focus()}createEditor(){const e=this.rootDocument.createElement("div"),n=this.rootDocument.createElement("textarea");return e.style.display="none",this.container=this.rootDocument.createElement("div"),this.container.setAttribute("dir",this.isRtl?"rtl":"ltr"),q(this.container,Gl.CLASS_EDITOR_CONTAINER),this.rootDocument.body.appendChild(this.container),q(e,Gl.CLASS_EDITOR),q(n,Gl.CLASS_INPUT),n.setAttribute("data-hot-input",!0),e.appendChild(n),this.container.appendChild(e),e}getInputElement(){return this.editor.querySelector(`.${Gl.CLASS_INPUT}`)}destroy(){const e=this.container?this.container.parentNode:null;this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null,e&&e.removeChild(this.container)}}function Cw(t,e,n){return e=q9(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q9(t){var e=Z9(t,"string");return typeof e=="symbol"?e:e+""}function Z9(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const Q9=250,J9=250;class nx{constructor(e){Cw(this,"wasLastActionShow",!0),Cw(this,"showDebounced",null),Cw(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout(()=>{this.wasLastActionShow===!1&&this.runLocalHooks("hide")},J9)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q9;this.showDebounced=ES(n=>{this.wasLastActionShow&&this.runLocalHooks("
`;class K5 extends Kb{static get DEFAULT_OPTIONS(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:`\r
`}}export(){const e=this.options,n=this.dataProvider.getData();let i=this.dataProvider.getColumnHeaders();const r=i.length>0,s=this.dataProvider.getRowHeaders(),o=s.length>0;let a=e.bom?"\uFEFF":"";return r&&(i=Ke(i,l=>this._escapeCell(l,!0)),o&&(a+=e.columnDelimiter),a+=i.join(e.columnDelimiter),a+=e.rowDelimiter),M(n,(l,u)=>{u>0&&(a+=e.rowDelimiter),o&&(a+=this._escapeCell(s[u])+e.columnDelimiter),a+=l.map(c=>this._escapeCell(c)).join(e.columnDelimiter)}),a}_escapeCell(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=Qt(e);return i!==""&&(n||i.indexOf(z5)>=0||i.indexOf(G5)>=0||i.indexOf(j5)>=0||i.indexOf(this.options.columnDelimiter)>=0)&&(i=i.replace(new RegExp('"',"g"),'""'),i=`"${i}"`),i}}const X5="csv",pv={[X5]:K5};function q5(t,e,n){return typeof pv[t]=="function"?new pv[t](e,n):null}const Z5="exportFile",Q5=240;class J5 extends ut{static get PLUGIN_KEY(){return Z5}static get PLUGIN_PRIORITY(){return Q5}isEnabled(){return!0}exportAsString(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._createTypeFormatter(e,n).export()}exportAsBlob(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,n))}downloadFile(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{rootDocument:i,rootWindow:r}=this.hot,s=this._createTypeFormatter(e,n),o=this._createBlob(s),a=r.URL||r.webkitURL,l=i.createElement("a"),u=`${s.options.filename}.${s.options.fileExtension}`;if(l.download!==void 0){const c=a.createObjectURL(o);l.style.display="none",l.setAttribute("href",c),l.setAttribute("download",u),i.body.appendChild(l),l.dispatchEvent(new MouseEvent("click")),i.body.removeChild(l),setTimeout(()=>{a.revokeObjectURL(c)},100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(o,u)}_createTypeFormatter(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!pv[e])throw new Error(`Export format type "${e}" is not supported.`);return q5(e,new B5(this.hot),n)}_createBlob(e){let n=null;return typeof Blob<"u"&&(n=new Blob([e.export()],{type:`${e.options.mimeType};charset=${e.options.encoding}`})),n}}function El(t,e,n){return e=eZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eZ(t){var e=tZ(t,"string");return typeof e=="symbol"?e:e+""}function tZ(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Uh{constructor(e,n){let{id:i,stateless:r=!0}=n;El(this,"hot",void 0),El(this,"id",void 0),El(this,"elements",[]),El(this,"hidden",!1),El(this,"stateId",""),El(this,"state",void 0),this.hot=e,this.id=i,this.stateId=`Filters.component.${this.id}`,this.state=r?null:this.hot.columnIndexMapper.registerMap(this.stateId,new bm)}getElements(){return this.elements}reset(){M(this.elements,e=>e.reset())}hide(){this.hidden=!0}show(){this.hidden=!1}isHidden(){return this.hot===null||this.hidden}restoreState(e){this.state&&this.setState(this.state.getValueAtIndex(e))}setState(){throw new Error("The state setting logic is not implemented")}saveState(e){this.state&&this.state.setValueAtIndex(e,this.getState())}getState(){throw new Error("The state gathering logic is not implemented")}destroy(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),M(this.elements,e=>e.destroy()),this.state=null,this.elements=null,this.hot=null}}bt(Uh,zn);const hh={};function Ao(t,e){if(!hh[t])throw Error(`Filter condition "${t}" does not exist.`);const{condition:n,descriptor:i}=hh[t];let r=e;return i.inputValuesDecorator&&(r=i.inputValuesDecorator(r)),function(s){return n.apply(s.meta.instance,[].concat([s],[r]))}}function Ma(t){if(!hh[t])throw Error(`Filter condition "${t}" does not exist.`);return hh[t].descriptor}function Jt(t,e,n){n.key=t,hh[t]={condition:e,descriptor:n}}const mn="none";function nZ(){return!0}Jt(mn,nZ,{name:Rm,inputsCount:0,showOper
filter operation. Use \`removeConditions\` to clear the current conditions and then add new ones.\x20
Mind that you cannot mix different types of operations (for instance, if you use \`conjunction\`,\x20
use it consequently for a particular column).`)}else if(Mt(dh[i]))throw new Error(ct`Unexpected operation named \`${i}\`. Possible ones are\x20
\`disjunction\` and \`conjunction\`.`);const u=this.getConditions(e);u.length===0?this.filteringStates.setValueAtIndex(e,{operation:i,conditions:[{name:a,args:o,func:Ao(a,o)}]},r):u.push({name:a,args:o,func:Ao(a,o)}),this.runLocalHooks("afterAdd",e)}getConditions(e){var n,i;return(n=(i=this.filteringStates.getValueAtIndex(e))===null||i===void 0?void 0:i.conditions)!==null&&n!==void 0?n:[]}getOperation(e){var n;return(n=this.filteringStates.getValueAtIndex(e))===null||n===void 0?void 0:n.operation}getFilteredColumns(){return this.filteringStates.getEntries().map(e=>{let[n]=e;return n})}getColumnStackPosition(e){return this.getFilteredColumns().indexOf(e)}exportAllConditions(){return Hn(this.filteringStates.getEntries(),(e,n)=>{let[i,{operation:r,conditions:s}]=n;return e.push({column:i,operation:r,conditions:Ke(s,o=>{let{name:a,args:l}=o;return{name:a,args:l}})}),e},[])}importAllConditions(e){this.clean(),M(e,n=>{M(n.conditions,i=>this.addCondition(n.column,i))})}removeConditions(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}clean(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}hasConditions(e,n){const i=this.getConditions(e);return n?i.some(r=>r.name===n):i.length>0}destroy(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(oM),this.filteringStates=null,this.clearLocalHooks()}}bt(tR,zn);function aM(t,e,n){return e=NQ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function NQ(t){var e=DQ(t,"string");return typeof e=="symbol"?e:e+""}function DQ(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Wx{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:()=>[];aM(this,"conditionCollection",void 0),aM(this,"columnDataFactory",void 0),this.conditionCollection=e,this.columnDataFactory=n}filter(){let e=[];return M(this.conditionCollection.getFilteredColumns(),(n,i)=>{let r=this.columnDataFactory(n);i&&(r=this._getIntersectData(r,e)),e=this.filterByColumn(n,r)}),e}filterByColumn(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const i=[];return M(n,r=>{r!==void 0&&this.conditionCollection.isMatch(r,e)&&i.push(r)}),i}_getIntersectData(e,n){const i=[];return M(n,r=>{const s=r.meta.visualRow;e[s]!==void 0&&(i[s]=e[s])}),i}}function LQ(t,e){$Q(t,e),e.add(t)}function $Q(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function aa(t,e,n){return e=kQ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kQ(t){var e=FQ(t,"string");return typeof e=="symbol"?e:e+""}function FQ(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vw(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var of=new WeakSet;class Bx{constructor(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:()=>[];LQ(this,of),aa(this,"hot",void 0),aa(this,"conditionCollection",void 0),aa(this,"columnDataFactory",void 0),aa(this,"changes",[]),aa(this,"grouping",!1),aa(this,"latestEditedColumnPosition",-1),aa(this,"latestOrderStack",[]),this.hot=e,this.conditionCollection=n,this.columnDataFactory=i,this.conditionCollection.addLocalHook("beforeRemove",r=>Vw(of,this,VQ).call(this,r)),this.conditionCollection.addLocalHook("afterRemove",r=>this.updateStatesAtColumn(r)),this.conditionCollection.addLocalHook("afterAdd",r=>this.updateStatesAtColumn(r)),this.conditionCollection.addLocalHook("beforeClean",()=>Vw(of,this,WQ).call(this)),this.conditio
The overall amount of conditions exceed the capability of the dropdown menu.\x20
For more details see the documentation.`);else{const o=this.conditionCollection.getOperation(i);this.components.get("filter_by_condition").updateState(s[0],i),this.components.get("filter_by_condition2").updateState(s[1],i),this.components.get("filter_operators").updateState(o,i),this.components.get("filter_by_value").updateState(t)}}const Yx="internal-use-in-handsontable",yv={licenseKey:Yx,useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function zx(t){var e;return{maxColumns:t.maxColumns,maxRows:t.maxRows,language:(e=t[Pn])===null||e===void 0||(e=e.language)===null||e===void 0?void 0:e.langCode}}function Gx(t){return Object.keys(t).reduce((e,n)=>(n!=="hyperformula"&&(e[n]=t[n]),e),{})}function sJ(t){var e;const n=t[Pn],i=Gx(n!=null&&(e=n.engine)!==null&&e!==void 0&&e.hyperformula?n.engine:{}),r=zx(t);return{...yv,...i,...r}}function oJ(t){var e;const n=t[Pn],i=Gx(n!=null&&(e=n.engine)!==null&&e!==void 0&&e.hyperformula?n.engine:{}),r=zx(t);return{...i,...r}}function aJ(t,e){return Object.keys(e).some(n=>e[n]!==void 0&&e[n]!==t[n])}function Bm(){const t="engine_relationship",e=br(Pn);return e.hasItem(t)||e.register(t,new Map),e.getItem(t)}function nR(){const t="shared_engine_usage",e=br(Pn);return e.hasItem(t)||e.register(t,new Map),e.getItem(t)}function lJ(t){const e=t.getSettings(),n=e[Pn],i=n?.engine;if(n===!0||Mt(i))return null;if(typeof i.hyperformula=="function"||typeof i=="function"){var r;return uJ((r=i.hyperformula)!==null&&r!==void 0?r:i,e,t)}else if(typeof i=="object"&&Mt(i.hyperformula)){const s=Bm(),o=nR().get(i);return s.has(i)||s.set(i,[]),s.get(i).push(t),o&&o.push(t.guid),i.getConfig().licenseKey||i.updateConfig({licenseKey:Yx}),(i.getConfig().leapYear1900!==yv.leapYear1900||TS(i.getConfig().nullDate,yv.nullDate)===!1)&&vt(ct`If you use HyperFormula with Handsontable, keep the default \`leapYear1900\` and \`nullDate\`
settings. Otherwise, HyperFormula's dates may not sync correctly with Handsontable's dates.`),i}return null}function uJ(t,e,n){const i=e[Pn],r=sJ(e),s=Bm(),o=nR();cJ(t,i.functions),hJ(t,i.language);const a=t.buildEmpty(r);return s.set(a,[n]),o.set(a,[n.guid]),dJ(a,i.namedExpressions),a.on("sheetAdded",()=>{a.rebuildAndRecalculate()}),a.on("sheetRemoved",()=>{a.rebuildAndRecalculate()}),a}function hM(t){var e;const n=Bm(),i=n.size===0?[]:Array.from((e=n.get(t))!==null&&e!==void 0?e:[]);return new Map(i.map(r=>[r.getPlugin("formulas").sheetId,r]))}function dM(t,e){if(t){const n=Bm(),i=n.get(t),r=nR(),s=r.get(t);i&&i.includes(e)&&(i.splice(i.indexOf(e),1),i.length===0&&n.delete(t)),s&&s.includes(e.guid)&&(s.splice(s.indexOf(e.guid),1),s.length===0&&(r.delete(t),t.destroy()))}}function cJ(t,e){e&&e.forEach(n=>{const{name:i,plugin:r,translations:s}=n;try{t.registerFunction(i,r,s)}catch(o){vt(o.message)}})}function hJ(t,e){if(e){const{langCode:n}=e;try{t.registerLanguage(n,e)}catch(i){vt(i.message)}}}function dJ(t,e){e&&(t.suspendEvaluation(),e.forEach(n=>{const{name:i,expression:r,scope:s,options:o}=n;try{t.addNamedExpression(i,r,s,o)}catch(a){vt(a.message)}}),t.resumeEvaluation())}function fJ(t,e){return(Mt(e)||!t.doesSheetExist(e))&&(e=t.addSheet(e)),e}const jx="DD/MM/YYYY";function Kx(t){return typeof t=="string"&&t.charAt(0)==="'"&&t.charAt(1)==="="}function gJ(t){return Kx(t)?t.substr(1):t}function mJ(t){return typeof t=="string"&&t.startsWith("=")}function iR(t,e){return typeof t=="string"&&e==="date"}function Xx(t,e){return X(t,e,!0).isValid()}function qx(t,e){return X(t,e,!0).format(jx)}function pJ(t,e){return X(t,jx,!0).format(e)}function Zx(t,e){const i=new Date(Date.UTC(0,0,t+-1));return X(i).format(e)}function wJ(t,e,n){const i=Array.from(Array(n).keys()).filter(s=>t.includes(s)===!1);if(e===0){var r;return(r=i[e])!==null&&r!==void 0?r:0}return i[e-1]+1}function CJ(t,e){const n=[];return t.forEach(i=>{const r={from:i,to:e};n.forEach(s=>{const o=s.from>s.to,a=s.to<=r.from;s.from>r.from&&a&&o&&(r.from+=1)}),r.from>=e&&(e+=1),n.push(r)}),n}function vJ(t){return t.forEach((e,n)=>{t.slice(n+1).forEach(r=>{const s=r.from<r.to;r.from>e.from&&s&&(r.from-=1)})}),t}function rR(t,e,n){const i=CJ(t,wJ(t,e,n));return vJ(i)}function ua(t,e,n){SJ(t,e),e.set(t,n)}function SJ(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function It(t,e){return t.get(Qx(t,e))}function ro(t,e,n){return t.set(Qx(t,e),n),n}function Qx(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var mc=new WeakMap,so=new WeakMap,oi=new WeakMap,af=new WeakMap,Ww=new WeakMap,Bw=new WeakMap,lf=new WeakMap;class fM{constructor(e,n,i){ua(this,mc,void 0),ua(this,so,void 0),ua(this,oi,void 0),ua(this,af,[]),ua(this,Ww,[]),ua(this,Bw,void 0),ua(this,lf,[]),ro(mc,this,e),ro(so,this,n),ro(oi,this,i)}setRemovedHfIndexes(e){return ro(lf,this,e.map(n=>{const i=It(so,this).getVisualFromPhysicalIndex(n);return this.getHfIndexFromVisualIndex(i)})),It(lf,this)}getRemovedHfIndexes(){return It(lf,this)}getHfIndexFromVisualIndex(e){const n=It(so,this).getIndexesSequence(),i=It(so,this).getNotTrimmedIndexes();return n.indexOf(i[e])}syncMoves(e){const i=`move${mr(It(mc,this))}s`;It(oi,this).getEngine().batch(()=>{e.forEach(r=>{const s=r.from!==r.to,o=r.from+1!==r.to;s&&o&&It(oi,this).getEngine()[i](It(oi,this).getSheetId(),r.from,1,r.to)})})}storeMovesInformation(e,n,i){i!==!1&&(ro(Ww,this,e.map(r=>this.getHfIndexFromVisualIndex(r))),ro(Bw,this,this.getHfIndexFromVisualIndex(n)))}calculateAndSyncMoves(e,n){if(It(oi,this).isPerformingUndoRedo()||e===!1||n===!1)return;const i=rR(It(Ww,this),It(Bw,this),It(so,this).getNumberOfIndexes());It(oi,this).getSheetId()===null?It(oi,this).getPostponeAction(()=>this.syncMoves(i)):this.syncMoves(i)}getIndexesChangeSyncMethod(){const e=`set${mr(It(mc,this))}Order`;return n=>{if(It(oi,this).isPerformingUndoRedo())return;const i=It(so,this).getIndexesSequence();if(n==="update"&&i.length>0){cons
rowspan: ${e.rowspan}, colspan: ${e.colspan}} contains negative values, which is\x20
not supported. It will not be added to the collection.`}static IS_OUT_OF_BOUNDS_WARNING(e){return ct`The merged cell declared at [${e.row}, ${e.col}] is positioned\x20
(or positioned partially) outside of the table range. It was not added to the table, please fix your setup.`}static IS_SINGLE_CELL(e){return ct`The merged cell declared at [${e.row}, ${e.col}] has both "rowspan"\x20
and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.`}static ZERO_SPAN_WARNING(e){return ct`The merged cell declared at [${e.row}, ${e.col}] has "rowspan"\x20
or "colspan" declared as "0", which is not supported. It cannot be added to the collection.`}static containsNegativeValues(e){return e.row<0||e.col<0||e.rowspan<0||e.colspan<0}static isSingleCell(e){return e.colspan===1&&e.rowspan===1}static containsZeroSpan(e){return e.colspan===0||e.rowspan===0}static isOutOfBounds(e,n,i){return e.row<0||e.col<0||e.row>=n||e.row+e.rowspan-1>=n||e.col>=i||e.col+e.colspan-1>=i}normalize(e){const n=e.countRows(),i=e.countCols();this.row<0?this.row=0:this.row>n-1&&(this.row=n-1),this.col<0?this.col=0:this.col>i-1&&(this.col=i-1),this.row+this.rowspan>n-1&&(this.rowspan=n-this.row),this.col+this.colspan>i-1&&(this.colspan=i-this.col)}includes(e,n){return this.row<=e&&this.col<=n&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=n}includesHorizontally(e){return this.col<=e&&this.col+this.colspan-1>=e}includesVertically(e){return this.row<=e&&this.row+this.rowspan-1>=e}shift(e,n){const i=e[0]||e[1],r=n+Math.abs(e[0]||e[1])-1,s=e[0]?"colspan":"rowspan",o=e[0]?"col":"row",a=Math.min(n,r),l=Math.max(n,r),u=this[o],c=this[o]+this[s]-1;if(u>=n&&(this[o]+=i),i>0)n<=c&&n>u&&(this[s]+=i);else if(i<0){if(a<=u&&l>=c)return this.removed=!0,!1;if(u>=a&&u<=l){const h=l-u+1,d=Math.abs(i)-h;this[o]-=d+i,this[s]-=h}else if(u<=a&&c>=l)this[s]+=i;else if(u<=a&&c>=a&&c<l){const h=c-a+1;this[s]-=h}}return!0}isFarther(e,n){return e?n==="down"?e.row+e.rowspan-1<this.row+this.rowspan-1:n==="up"?e.row>this.row:n==="right"?e.col+e.colspan-1<this.col+this.colspan-1:n==="left"?e.col>this.col:null:!0}getLastRow(){return this.row+this.rowspan-1}getLastColumn(){return this.col+this.colspan-1}getRange(){return this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))}}function _v(t,e,n,i){e?e.row===n&&e.col===i?(t.setAttribute("rowspan",e.rowspan.toString()),t.setAttribute("colspan",e.colspan.toString())):(t.removeAttribute("rowspan"),t.removeAttribute("colspan"),t.style.display="none"):(t.removeAttribute("rowspan"),t.removeAttribute("colspan"),t.style.display="")}function _te(t,e){Ite(t,e),e.add(t)}function Ite(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function rC(t,e,n){return e=Pte(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pte(t){var e=Ote(t,"string");return typeof e=="symbol"?e:e+""}function Ote(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Cf(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var vc=new WeakSet;class aR{constructor(e){_te(this,vc),rC(this,"plugin",void 0),rC(this,"mergedCells",[]),rC(this,"hot",void 0),this.plugin=e,this.hot=e.hot}static IS_OVERLAPPING_WARNING(e){return ct`The merged cell declared at [${e.row}, ${e.col}], overlaps\x20
with the other declared merged cell. The overlapping merged cell was not added to the table, please\x20
fix your setup.`}get(e,n){const i=this.mergedCells;let r=!1;return M(i,s=>s.row<=e&&s.row+s.rowspan-1>=e&&s.col<=n&&s.col+s.colspan-1>=n?(r=s,!1):!0),r}getByRange(e){const n=this.mergedCells;let i=!1;return M(n,r=>r.row<=e.from.row&&r.row+r.rowspan-1>=e.to.row&&r.col<=e.from.col&&r.col+r.colspan-1>=e.to.col?(i=r,i):!0),i}getWithinRange(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const i=this.mergedCells,r=[];let s=e;if(!s.includesRange){const o=this.hot._createCellCoords(s.from.row,s.from.col),a=this.hot._createCellCoords(s.to.row,s.to.col);s=this.hot._createCellRange(o,o,a)}return M(i,o=>{const a=this.hot._createCellCoords(o.row,o.col),l=this.hot._createCellCoords(o.row+o.rowspan-1,o.col+o.colspan-1),u=this.hot._createCellRange(a,a,l);n?s.overlaps(u)&&r.push(o):s.includesRange(u)&&r.push(o)}),r.length?r:!1}add(e){const n=this.mergedCells,i=e.row,r=e.col,s=e.rowspan,o=e.colspan,a=new Ur(i,r,s,o,this.hot._createCellCoords,this.hot._createCellRange),l=this.get(i,r),u=this.isOverlapping(a);return!l&&!u?(this.hot&&a.normalize(this.hot),n.push(a),a):(vt(aR.IS_OVERLAPPING_WARNING(a)),!1)}remove(e,n){const i=this.mergedCells,r=this.get(e,n),s=r?this.mergedCells.indexOf(r):-1;return r&&s!==-1?(i.splice(s,1),r):!1}clear(){const e=this.mergedCells,n=[],i=[];M(e,r=>{const s=this.hot.getCell(r.row,r.col);s&&n.push([s,this.get(r.row,r.col),r.row,r.col])}),this.mergedCells.length=0,M(n,(r,s)=>{me(0,r.rowspan-1,o=>{me(0,r.colspan-1,a=>{if(a!==0||o!==0){const l=this.hot.getCell(r.row+o,r.col+a);l&&i.push([l,null,null,null])}})}),n[s][1]=null}),M(n,r=>{_v(...r)}),M(i,r=>{_v(...r)})}isOverlapping(e){const n=this.hot._createCellRange(this.hot._createCellCoords(0,0),this.hot._createCellCoords(e.row,e.col),this.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1));let i=!1;return M(this.mergedCells,r=>this.hot._createCellRange(this.hot._createCellCoords(0,0),this.hot._createCellCoords(r.row,r.col),this.hot._createCellCoords(r.row+r.rowspan-1,r.col+r.colspan-1)).overlaps(n)?(i=!0,!1):!0),i}isFirstRenderableMergedCell(e,n){const i=this.get(e,n);return i&&this.hot.rowIndexMapper.getNearestNotHiddenIndex(i.row,1)===e&&this.hot.columnIndexMapper.getNearestNotHiddenIndex(i.col,1)===n}getFirstRenderableCoords(e,n){const i=this.get(e,n);if(!i||this.isFirstRenderableMergedCell(e,n))return this.hot._createCellCoords(e,n);const r=this.hot.rowIndexMapper.getNearestNotHiddenIndex(i.row,1),s=this.hot.columnIndexMapper.getNearestNotHiddenIndex(i.col,1);return this.hot._createCellCoords(r,s)}getStartMostColumnIndex(e,n){const i=Cf(vc,this,vf).call(this,e,"col",-1);let r=n;for(let s=0;s<i.length;s++)if(i[s]<=n){r=i[s];break}return r}getEndMostColumnIndex(e,n){const i=Cf(vc,this,vf).call(this,e,"col",1);let r=n;for(let s=0;s<i.length;s++)if(i[s]>=n){r=i[s];break}return r}getTopMostRowIndex(e,n){const i=Cf(vc,this,vf).call(this,e,"row",-1);let r=n;for(let s=0;s<i.length;s++)if(i[s]<=n){r=i[s];break}return r}getBottomMostRowIndex(e,n){const i=Cf(vc,this,vf).call(this,e,"row",1);let r=n;for(let s=0;s<i.length;s++)if(i[s]>=n){r=i[s];break}return r}shiftCollections(e,n,i){const r=[0,0];switch(e){case"right":r[0]+=i;break;case"left":r[0]-=i;break;case"down":r[1]+=i;break;case"up":r[1]-=i;break}M(this.mergedCells,s=>{s.shift(r,n)}),qC(this.mergedCells.length-1,0,s=>{const o=this.mergedCells[s];o&&o.removed&&this.mergedCells.splice(this.mergedCells.indexOf(o),1)})}}function vf(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const i=new Map,r=n===1?t.getTopStartCorner():t.getBottomEndCorner(),s=n===1?t.getBottomEndCorner():t.getTopStartCorner();for(let o=r.row;n===1?o<=s.row:o>=s.row;o+=n)for(let a=r.col;n===1?a<=s.col:a>=s.col;a+=n){const l=e==="row"?o:a,u=this.get(o,a);let c=l;u&&(c=n===1?u[e]+u[`${e}span`]-1:u[e]),i.has(l)||i.set(l,new Set),i.get(l).add(c)}return Array.from(new Set(Array.from(i.entries()).filter(o=>{let[,a]=o;return a.size===1}).flatMap(o=>{let[,a]=o;return Array.from(a)})))}function sC(t,e,n){return e=xte(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0})
Only \`multiColumnSorting\` will work.`)}const dA="sort";function vne(t,e,n){const i=[];return n===!1||t.isColumnSorted(e)&&t.getNumberOfSortedColumns()>1&&i.push(`${dA}-${t.getIndexOfColumnInSortQueue(e)+1}`),i}function Sne(t){const e=t.className.split(" "),n=new RegExp(`^${dA}-[0-9]{1,2}$`);return e.filter(i=>n.test(i))}function yne(t,e,n){return e=bne(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bne(t){var e=Rne(t,"string");return typeof e=="symbol"?e:e+""}function Rne(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const Vg="multiColumnSorting",Ene=170,HM="columnSorting",NM=Vg;zO(Vg,Cne);class Tne extends tx{constructor(){super(...arguments),yne(this,"pluginKey",Vg)}static get PLUGIN_KEY(){return Vg}static get PLUGIN_PRIORITY(){return Ene}isEnabled(){return super.isEnabled()}enablePlugin(){!this.enabled&&this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings()[HM]&&AM(),super.enablePlugin()}disablePlugin(){super.disablePlugin()}registerShortcuts(){super.registerShortcuts(),this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Shift","Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();return e.row===-1&&e.col>=0&&this.sort(this.getNextSortConfig(e.col,bg)),!1},runOnlyIf:()=>{var e,n;const i=(e=this.hot.getSelectedRangeLast())===null||e===void 0?void 0:e.highlight;return i&&((n=this.hot.getSelectedRangeLast())===null||n===void 0?void 0:n.isSingle())&&this.hot.selection.isCellVisible(i)&&i.isHeader()},relativeToGroup:ko,position:"before",group:NM})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(NM)}sort(e){super.sort(e)}clearSort(){super.clearSort()}isSorted(){return super.isSorted()}getSortConfig(e){return super.getSortConfig(e)}setSortConfig(e){super.setSortConfig(e)}getNormalizedSortConfigs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Array.isArray(e)?e:[e]}updateHeaderClasses(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];super.updateHeaderClasses(e,...i),He(e,Sne(e)),this.enabled!==!1&&q(e,vne(...i))}onUpdateSettings(e){this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings()[HM]&&AM(),super.onUpdateSettings(e)}onAfterOnCellMouseDown(e,n){jb(n.row,n.col,e)!==!1&&this.wasClickableHeaderClicked(e,n.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(n.col),this.sort(this.getNextSortConfig(n.col,bg))):this.sort(this.getColumnNextConfig(n.col)))}}function DM(t,e,n){return e=Mne(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mne(t){var e=_ne(t,"string");return typeof e=="symbol"?e:e+""}function _ne(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const Ine="multipleSelectionHandles",Pne=160;class One extends ut{constructor(){super(...arguments),DM(this,"dragged",[]),DM(this,"lastSetCell",null)}static get PLUGIN_KEY(){return Ine}static get PLUGIN_PRIORITY(){return Pne}isEnabled(){return bo()}enablePlugin(){this.enabled||(this.registerListeners(),super.enablePlugin())}registerListeners(){const e=this,{rootElement:n}=this.hot;function i(r){if(e.dragged.length===1)return e.dragged.splice(0,e.dragged.length),!0;const s=e.dragged.indexOf(r);if(s===-1)return!1;s===0?e.dragged=e.dragged.slice(0,1):s===1&&(e.dragged=e.dragged.slice(-1))}this.eventManager.addEventListener(n,"touchstart",r=>{let s;if(_e(r.target,"topSelectionHandle-HitArea"))return s=e.hot.getSelectedRangeLast(),e.dragged.push("top"),e.touchStartRange={width:s.getWidth(),height:s.getHeight(),direction:s.getDir
the last node, the hide column modification can be applied.`);const{crossHiddenColumns:n}=t.data;if(n.includes(e))return;let i=!1;t.walkUp(r=>{const{data:{collapsible:s}}=r;if(s)return i=!0,!1}),!i&&t.walkUp(r=>{const{data:s}=r;s.crossHiddenColumns.push(e),s.colspan>1?s.colspan-=1:s.isHidden=!0})}function Une(t,e){if(!Number.isInteger(e))throw new Error("The passed gridColumnIndex argument has invalid type.");if(t.childs.length>0)throw new Error(ct`The passed node is not the last node on the tree. Only for\x20
the last node, the show column modification can be applied.`);const{crossHiddenColumns:n}=t.data;if(!n.includes(e))return;let i=!1;t.walkUp(r=>{const{data:{collapsible:s}}=r;if(s)return i=!0,!1}),!i&&t.walkUp(r=>{const{data:s}=r;s.crossHiddenColumns.splice(s.crossHiddenColumns.indexOf(e),1),!s.isHidden&&s.colspan<s.origColspan&&(s.colspan+=1),s.isHidden=!1})}const kM=new Map([["collapse",uR],["expand",lR],["hide-column",Bne],["show-column",Une]]);function Yne(t,e,n){if(!kM.has(t))throw new Error(`The node modifier action ("${t}") does not exist.`);return kM.get(t)(e,n)}function Rf(t){const e=[];return M(t,n=>{n.walkDown(i=>{const r=i.data,{origColspan:s,columnIndex:o,headerLevel:a,crossHiddenColumns:l}=r,u=Gne(e,a);let c=!1;for(let h=o;h<o+s;h++)if(l.includes(h)||c)u.push(fA());else{const g=zne(r);g.isRoot=!0,u.push(g),c=!0}})}),e}function zne(t){const{crossHiddenColumns:e,...n}=Pv(t);return n}function Gne(t,e){let n;return Array.isArray(t[e])?n=t[e]:(n=[],t[e]=n),n}function gC(t,e,n){jne(t,e),e.set(t,n)}function jne(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function yc(t,e,n){return t.set(yA(t,e),n),n}function kt(t,e){return t.get(yA(t,e))}function yA(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var Fr=new WeakMap,Zn=new WeakMap,Sa=new WeakMap;class Kne{constructor(){gC(this,Fr,new Hne),gC(this,Zn,new Wne(kt(Fr,this))),gC(this,Sa,[[]])}setState(e){kt(Fr,this).setData(e);let n=!1;try{kt(Zn,this).buildTree()}catch{kt(Zn,this).clear(),kt(Fr,this).clear(),n=!0}return yc(Sa,this,Rf(kt(Zn,this).getRoots())),n}setColumnsLimit(e){kt(Fr,this).setColumnsLimit(e)}mergeStateWith(e){const n=Ke(e,i=>{let{row:r,...s}=i;return{row:r<0?this.rowCoordsToLevel(r):r,...s}});kt(Fr,this).mergeWith(n),kt(Zn,this).buildTree(),yc(Sa,this,Rf(kt(Zn,this).getRoots()))}mapState(e){kt(Fr,this).map(e),kt(Zn,this).buildTree(),yc(Sa,this,Rf(kt(Zn,this).getRoots()))}mapNodes(e){return Hn(kt(Zn,this).getRoots(),(n,i)=>(i.walkDown(r=>{const s=e(r.data);s!==void 0&&n.push(s)}),n),[])}triggerNodeModification(e,n,i){n<0&&(n=this.rowCoordsToLevel(n));const r=kt(Zn,this).getNode(n,i);let s;return r&&(s=Yne(e,r,i),yc(Sa,this,Rf(kt(Zn,this).getRoots()))),s}triggerColumnModification(e,n){return this.triggerNodeModification(e,-1,n)}rowCoordsToLevel(e){if(e>=0)return null;const n=e+Math.max(this.getLayersCount(),1);return n<0?null:n}levelToRowCoords(e){if(e<0)return null;const n=e-Math.max(this.getLayersCount(),1);return n>=0?null:n}getHeaderSettings(e,n){var i,r;return e<0&&(e=this.rowCoordsToLevel(e)),e===null||e>=this.getLayersCount()?null:(i=(r=kt(Sa,this)[e])===null||r===void 0?void 0:r[n])!==null&&i!==void 0?i:null}getHeaderTreeNodeData(e,n){const i=this.getHeaderTreeNode(e,n);return i?{...i.data}:null}getHeaderTreeNode(e,n){if(e<0&&(e=this.rowCoordsToLevel(e)),e===null||e>=this.getLayersCount())return null;const i=kt(Zn,this).getNode(e,n);return i||null}findTopMostEntireHeaderLevel(e){var n;let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;const r=i-e+1;let s=!1,o=null;for(let a=e;a<=i;a++){const l=kt(Zn,this).getRootByColumn(a);if(!l)break;s=!0,l.walkDown(u=>{const{columnIndex:c,headerLevel:h,origColspan:d,isHidden:g}=u.data;g||d<=r&&c>=e&&c+d-1<=i&&(o===null||h<o)&&(o=h)},mA)}return s&&o===null?-1:this.levelToRowCoords((n=o)!==null&&n!==void 0?n:0)}findLeftMostColumnIndex(e,n){var i;const{isRoot:r}=(i=this.getHeaderSettings(e,n))!==null&&i!==void 0?i:{isRoot:!0};if(r)return n;let s=n-1;for(;s>=0;){var o;const{isRoot:a}=(o=this.getHeaderSettings(e,s))!==null&&o!==void 0?o:{isRoot:!0};if(a)break;s-=1}return s}findRightMostColumnIndex(e,n){var i;const{isRoot:r,origColspan:s}=(i=this.getHeaderSettings(e,n))!==null&&i!==void 0?i:{isRoot:!0,origColspan:1};if(r)return n+s-1;let o=n+1;for(;o<this.getColumnsCount();){var a;const{isRoot:l}=(a=this.getHeaderSettings(e,o))!==null&&a!==void 0?a:{isRoot:!0};if(l)break;o+=1}return o-1}getLayersCount(){return kt(Fr,this).getLayersCount()}getColumnsCou
passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]`),this.addHook("init",()=>Ft(Gt,this,Cie).call(this)),this.addHook("afterLoadData",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,vie).call(e,...r)}),this.addHook("beforeOnCellMouseDown",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,oie).call(e,...r)}),this.addHook("afterOnCellMouseDown",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,aie).call(e,...r)}),this.addHook("beforeOnCellMouseOver",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,lie).call(e,...r)}),this.addHook("beforeOnCellMouseUp",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,uie).call(e,...r)}),this.addHook("beforeSelectionHighlightSet",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,cie).call(e,...r)}),this.addHook("modifyTransformStart",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,hie).call(e,...r)}),this.addHook("afterSelection",()=>Ft(Gt,this,Tf).call(this)),this.addHook("afterSelectionFocusSet",()=>Ft(Gt,this,Tf).call(this)),this.addHook("beforeViewportScrollHorizontally",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,iie).call(e,...r)}),this.addHook("afterGetColumnHeaderRenderers",i=>Ft(Gt,this,fie).call(this,i)),this.addHook("modifyColWidth",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,mie).call(e,...r)}),this.addHook("modifyColumnHeaderValue",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,pie).call(e,...r)}),this.addHook("beforeHighlightingColumnHeader",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,rie).call(e,...r)}),this.addHook("beforeCopy",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,sie).call(e,...r)}),this.addHook("beforeSelectColumns",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,die).call(e,...r)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,gie).call(e,...r)}),this.addHook("modifyFocusedElement",function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return Ft(Gt,e,wie).call(e,...r)}),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",()=>Ft(Gt,this,Tf).call(this)),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",()=>Ft(Gt,this,Tf).call(this)),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();Je(mt,this).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=Je(mt,this).setState(e)),this.detectedOverlappedHeaders&&vt(ct`Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\x20
is currently not supported.`),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach((n,i)=>{const r=n===!0?"hide-column":"show-column";Je(mt,this).triggerColumnModification(r,i)}),!Je(ao,this)&&this.enabled&&Pa(ao,this,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe(n=>{n.forEach(i=>{let{op:r,index:s,newValue:o}=i;if(r==="replace"){const a=o===!0?"hide-column":"show-column";Je(mt,this).triggerColumnModification(a,s)}}),this.ghostTable.buildWidthsMap()})),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),super.updatePlugin()}disablePlugin(){this.clearColspans(),Je(mt,this).clear(),Je(ao,this).unsubscribe(),Pa(ao,this,null),this.ghostTable.clear(),super.disablePlugin()}getStateManager(){return Je(mt,this)}getLayersCount(){return Je(mt,this).getLayersCount()}getHeaderSettings(e,n){return Je(mt,this).getHeaderSettings(e,n)}clearColspans(){if(!this.hot.view)return;const{_wt:e}=this.hot.view,n=e.getSetting("columnHeaders").length,i=e.wtTable.THEAD,r=e.wtOverlays.topOverlay.clone.wtTable.THEAD,s=e.wtOverlays.topInlineStartCornerOverlay?e.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null;for(let o=0;o<n;o++){const a=i.childNodes[o];if(!a)break;const l=r.childNodes[o],u=s?s.childNodes[o]:null;for(let c=0,h=a.childNodes.length;c<h;c++)a.childNodes[c].removeAttribute("colspan"),He(a.childNodes[c],"hiddenHeader"),l&&l.childNodes[c]&&(l.childNodes[c].removeAttribute("colspan"),He(l.childNodes[c],"hiddenHeader")),s&&u&&u.childNodes[c]&&(u.childNodes[c].removeAttribute("colspan"),He(u.childNodes[c],"hiddenHeader"))}}headerRendererFactory(e){var n=this;const i=this.hot.view._wt.getSetting("fixedColumnsStart");return(r,s)=>{var o;const{columnIndexMapper:a,view:l}=this.hot;let u=a.getVisualFromRenderableIndex(r);u===null&&(u=r),s.removeAttribute("colspan"),He(s,"hiddenHeader");const{colspan:c,isHidden:h,isPlaceholder:d}=(o=Je(mt,this).getHeaderSettings(e,u))!==null&&o!==void 0?o:{label:""};if(d||h)q(s,"hiddenHeader");else if(c>1){var g,p;const{wtOverlays:C}=l._wt,S=(g=C.topInlineStartCornerOverlay)===null||g===void 0?void 0:g.clone.wtTable.THEAD.contains(s),b=(p=C.inlineStartOverlay)===null||p===void 0?void 0:p.clone.wtTable.THEAD.contains(s),R=S||b?Math.min(c,i-r):c;R>1&&s.setAttribute("colspan",R)}this.hot.view.appendColHeader(u,s,function(){return n.getColumnHeaderValue(...arguments)},e)}}getColumnHeaderValue(e,n){var i;const{isHidden:r,isPlaceholder:s}=(i=Je(mt,this).getHeaderSettings(n,e))!==null&&i!==void 0?i:{};return s||r?"":this.hot.getColHeader(e,n)}destroy(){Pa(mt,this,null),Je(ao,this)!==null&&(Je(ao,this).unsubscribe(),Pa(ao,this,null)),super.destroy()}_getHeaderTreeNodeDataByCoords(e){if(!(e.row>=0||e.col<0))return Je(mt,this).getHeaderTreeNodeData(e.row,e.col)}}function Tf(){var t;const e=(t=this.hot)===null||t===void 0?void 0:t.getSelectedRangeLast();if(!e)return;const{highlight:n}=e;if(n.isHeader()&&n.col>=0){const r=Je(mt,this).findLeftMostColumnIndex(n.row,n.col),s=this.hot.selection.highlight.getFocus();s.visualCellRange.highlight.col=r,s.visualCellRange.from.col=r,s.visualCellRange.to.col=r,s.commit()}}function iie(t){const e=this.hot.getSelectedRangeLast();if(!e)return t;const{highlight:n}=e;if(!(n.isHeader()&&n.col>=0))return t;const r=this.hot.view.getFirstFullyVisibleColumn(),s=this.hot.view.getLastFullyVisibleColumn(),o=Je(mt,this).findLeftMostColumnIndex(n.row,n.col),a=Je(mt,this).findRightMostColumnIndex(n.row,n.col);return o<r&&a>s?t:o<r?o:a}function rie(t,e,n){const i=Je(mt,this).getHeaderTreeNodeData(e,t);if(!i)return t;const{columnCursor:r,selectionType:s,selectionWidth:o}=n,{isRoot:a,colspan:l}=Je(mt,this).getHeaderSettings(e,t);if(s===US){if(!a)return i.columnIndex}else if(s===YP&&(l>o-r||!a))return null;return t}function sie(t,e,n){let{columnHeadersCount:i}=n;if(i!==0)for(let s=0;s<e.length;s++){const{startRow:o,startCol:a,endRow:l,endCol:u}=e[s],c=l-o+1,h=a-u+1;if(o>=0||h===1)break;for(let d=a;d<=u;d++)for(let g=o;g<=l;g++){var r;const p=c+g,C=d-a;if(C===0)continue;((r=Je(mt,this).getHeader
when the NestedRows plugin is enabled. Please use the 'dragRows' method instead.`),this.hot.runHooks("afterRowMove",n,i,r,s,!1),o=!0),o}shouldAllowMoving(e,n){return!(this.dataManager.isParent(e)||this.dataManager.isRowHighestLevel(e)||e===n||n===0)}getBaseParent(e){return this.dataManager.getRowParent(e[0])}getTargetParent(e,n){let i=this.dataManager.getRowParent(e?n-1:n);return i==null&&(i=this.dataManager.getRowParent(n-1)),i}shiftCollapsibleParentsLocations(e,n,i){i||(Math.max(...e)<=n?this.collapsingUI.collapsedRowsStash.shiftStash(e[0],n,-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(n,e[0],e.length))}moveRows(e,n,i){const r=n===this.dataManager.getRowIndex(i)+this.dataManager.countChildren(i)+1;this.hot.batchRender(()=>{e.forEach(s=>{this.dataManager.moveRow(s,n,this.movedToCollapsed,r)})})}moveCellsMeta(e,n){const i=[],r=Math.max(...e)<n;e.forEach(s=>{i.push(this.hot.getCellMetaAtRow(s))}),this.hot.spliceCellsMeta(e[0],e.length),this.hot.spliceCellsMeta(n-(r?i.length:0),0,...i)}selectCells(e,n){const i=e.length;let r=0,s=0,o=null,a=null;if(this.movedToCollapsed){let l=null;e[i-1]<n?l=this.dataManager.translateTrimmedRow(n-i):l=this.dataManager.translateTrimmedRow(n);const u=this.dataManager.getRowParent(l===null?this.hot.countSourceRows()-1:l-1),c=this.dataManager.getRowIndex(u);r=this.dataManager.untranslateTrimmedRow(c),s=r}else e[i-1]<n?(s=n-1,r=s-i+1):(r=n,s=r+i-1);o=this.hot.selection,a=this.hot.countCols()-1,o.setRangeStart(this.hot._createCellCoords(r,0)),o.setRangeEnd(this.hot._createCellCoords(s,a),!0)}isRowOrderChanged(e,n){return e.some((i,r)=>i-r!==n)}}function $ie(t,e){RA(t,e),e.add(t)}function UM(t,e,n){RA(t,e),e.set(t,n)}function RA(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function mC(t,e,n){return e=kie(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kie(t){var e=Fie(t,"string");return typeof e=="symbol"?e:e+""}function Fie(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Qf(t,e){return t.get(an(t,e))}function Yg(t,e,n){return t.set(an(t,e),n),n}function an(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}const zg="nestedRows",Vie=300,YM=zg,Wie="The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled.";var Ym=new WeakMap,Dl=new WeakMap,fn=new WeakSet;class Bie extends ut{constructor(){super(...arguments),$ie(this,fn),mC(this,"dataManager",null),mC(this,"headersUI",null),mC(this,"collapsedRowsMap",null),UM(this,Ym,!1),UM(this,Dl,!1)}static get PLUGIN_KEY(){return zg}static get PLUGIN_PRIORITY(){return Vie}isEnabled(){return!!this.hot.getSettings()[zg]}enablePlugin(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new Lh),this.dataManager=new bie(this,this.hot),this.collapsingUI=new Tie(this,this.hot),this.headersUI=new zr(this,this.hot),this.contextMenuUI=new Hie(this,this.hot),this.rowMoveController=new Lie(this),this.addHook("afterInit",function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return an(fn,e,nre).call(e,...i)}),this.addHook("beforeViewRender",function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return an(fn,e,ire).call(e,...i)}),this.addHook("modifyRowData",function(){return e.onModifyRowData(...arguments)}),this.addHook("modifySourceLength",function(){return e.onModifySourceLength(...arguments)}),this.addHook("beforeDataSplice",function(){return e.onBeforeDataSplice(...arguments)}),this.addHook("filterData",function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return an(fn,e,zie).call(e,...i)}),this.addHook("afterContextMenuDefaultOptions",function(){for(va