33.bundle.js 2.5 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*! For license information please see 33.bundle.js.LICENSE.txt */
  2. (self.webpackChunkfront=self.webpackChunkfront||[]).push([[33],{119:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(95093))},654:(e,t,n)=>{"use strict";var o=n(85072),i=n.n(o),r=n(97825),s=n.n(r),a=n(77659),l=n.n(a),c=n(32675),d=n.n(c),u=n(10540),h=n.n(u),m=n(41113),p=n.n(m),f=n(15411),g={};g.styleTagTransform=p(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=h(),i()(f.A,g),f.A&&f.A.locals&&f.A.locals},655:(e,t,n)=>{"use strict";var o=n(36955),i=String;e.exports=function(e){if("Symbol"===o(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},659:(e,t,n)=>{var o=n(51873),i=Object.prototype,r=i.hasOwnProperty,s=i.toString,a=o?o.toStringTag:void 0;e.exports=function(e){var t=r.call(e,a),n=e[a];try{e[a]=void 0;var o=!0}catch(e){}var i=s.call(e);return o&&(t?e[a]=n:delete e[a]),i}},1221:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(95093))},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(5544),i=n(96540);function r(e){var t=i.useRef(!1),n=i.useState(e),r=(0,o.A)(n,2),s=r[0],a=r[1];return i.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[s,function(e,n){n&&t.current||a(e)}]}},1625:(e,t,n)=>{"use strict";var o=n(79504);e.exports=o({}.isPrototypeOf)},1632:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var o=100*e+t;return o<600?"凌晨":o<900?"早上":o<1200?"上午":1200===o?"中午":o<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},1767:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},2360:(e,t,n)=>{"use strict";var o,i=n(28551),r=n(96801),s=n(88727),a=n(30421),l=n(20397),c=n(4055),d=n(66119),u="prototype",h="script",m=d("IE_PROTO"),p=function(){},f=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;b="undefined"!=typeof document?document.domain&&o?g(o):(t=c("iframe"),n="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):g(o);for(var i=s.length;i--;)delete b[u][s[i]];return b()};a[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[u]=i(e),n=new p,p[u]=null,n[m]=e):n=b(),void 0===t?n:r.f(n,t)}},2478:(e,t,n)=>{"use strict";var o=n(79504),i=n(48981),r=Math.floor,s=o("".charAt),a=o("".replace),l=o("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,o,u,h){var m=n+e.length,p=o.length,f=d;return void 0!==u&&(u=i(u),f=c),a(h,f,(function(i,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,m);case"<":c=u[l(a,1,-1)];break;default:var d=+a;if(0===d)return i;if(d>p){var h=r(d/10);return 0===h?i:h<=p?void 0===o[h-1]?s(a,1):o[h-1]+s(a,1):i}c=o[d-1]}return void 0===c?"":c}))}},2616:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l});var o=n(64467);const i=Math.round;function r(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)o[e]=t(o[e]||0,n[e]||"",e);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const s=(e,t,n)=>0===n?e:e/100;function a(e,t){const n=t||255;return e>n?n:e<0?0:e}class l{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,o.A)(this,"isValid",!0),(0,o.A)(this,"r",0),(0,o.A)(this,"g",0),(0,o.A)(this,"b",0),(0,o.A)(this,"a",1),(0,o.A)(this,"_h",void 0),(0,o.A)(this,"_s",void 0),(0,o.A)(this,"_l",void 0),(0,o.A)(this,"_v",void 0),(0,o.A)(this,"_max",void 0),(0,o.A)(this,"_min",void 0),(0,o.A)(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function i(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(e instanceof l)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=a(e.r),this.g=a(e.g),this.b=a(e.b),this.a="number"==typeof e.a?a(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:i(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:t,s:n,l:o,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:t,s:n,l:o,a:this.a})}mix(e,t=50){const n=this._c(e),o=t/100,r=e=>(n[e]-this[e])*o+this[e],s={r:i(r("r")),g:i(r("g")),b:i(r("b")),a:i(100*r("a"))/100};return this._c(s)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),o=e=>i((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const o=(this.b||0).toString(16);if(e+=2===o.length?o:"0"+o,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=i(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=i(100*this.getSaturation()),n=i(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const o=this.clone();return o[e]=a(t,n),o}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:o}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof o?o:1,t<=0){const e=i(255*n);this.r=e,this.g=e,this.b=e}let r=0,s=0,a=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,d=c*(1-Math.abs(l%2-1));l>=0&&l<1?(r=c,s=d):l>=1&&l<2?(r=d,s=c):l>=2&&l<3?(s=c,a=d):l>=3&&l<4?(s=d,a=c):l>=4&&l<5?(r=d,a=c):l>=5&&l<6&&(r=c,a=d);const u=n-c/2;this.r=i(255*(r+u)),this.g=i(255*(s+u)),this.b=i(255*(a+u))}fromHsv({h:e,s:t,v:n,a:o}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof o?o:1;const r=i(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const s=e/60,a=Math.floor(s),l=s-a,c=i(n*(1-t)*255),d=i(n*(1-t*l)*255),u=i(n*(1-t*(1-l))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=d,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=d;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=d}}fromHsvString(e){const t=r(e,s);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=r(e,s);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=r(e,((e,t)=>t.includes("%")?i(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}},3035:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:o?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},3322:function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,o,i){var r,s=t.words[o];return 1===o.length?"y"===o&&n?"једна година":i||n?s[0]:s[1]:(r=t.correctGrammaticalCase(e,s),"yy"===o&&n&&"годину"===r?e+" година":e+" "+r)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},3508:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},3709:(e,t,n)=>{"use strict";function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){return e.get(s(e,t))}function r(e,t,n){return e.set(s(e,t),n),n}function s(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>c}),n(16280);var a=new WeakMap;class l{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var i,s,l;o(this,"row",null),o(this,"col",null),l=!1,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,s=a),s.set(i,l),r(a,this,n),void 0!==e&&void 0!==t&&(this.row=e,this.col=t)}isValid(e){const{countRows:t,countCols:n,countRowHeaders:o,countColHeaders:i}={countRows:0,countCols:0,countRowHeaders:0,countColHeaders:0,...e};return!(!Number.isInteger(this.row)||!Number.isInteger(this.col)||this.row<-i||this.col<-o||this.row>=t||this.col>=n)}isEqual(e){return e===this||this.row===e.row&&this.col===e.col}isHeader(){return!this.isCell()}isCell(){return this.row>=0&&this.col>=0}isRtl(){return i(a,this)}isSouthEastOf(e){return this.row>=e.row&&(i(a,this)?this.col<=e.col:this.col>=e.col)}isNorthWestOf(e){return this.row<=e.row&&(i(a,this)?this.col>=e.col:this.col<=e.col)}isSouthWestOf(e){return this.row>=e.row&&(i(a,this)?this.col>=e.col:this.col<=e.col)}isNorthEastOf(e){return this.row<=e.row&&(i(a,this)?this.col<=e.col:this.col>=e.col)}normalize(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}assign(e){return Number.isInteger(null==e?void 0:e.row)&&(this.row=e.row),Number.isInteger(null==e?void 0:e.col)&&(this.col=e.col),e instanceof l&&r(a,this,e.isRtl()),this}clone(){return new l(this.row,this.col,i(a,this))}toObject(){return{row:this.row,col:this.col}}}const c=l},3949:(e,t,n)=>{"use strict";n(7588)},4055:(e,t,n)=>{"use strict";var o=n(44576),i=n(20034),r=o.document,s=i(r)&&i(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},4417:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},4495:(e,t,n)=>{"use strict";var o=n(39519),i=n(79039),r=n(44576).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},5544:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(96369),i=n(27800),r=n(76562);function s(e,t){return(0,o.A)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,s,a=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=r.call(n)).done)&&(a.push(o.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||(0,i.A)(e,t)||(0,r.A)()}},5784:function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function o(e){return e>1&&e<5}function i(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?r+(o(e)?"sekundy":"sekúnd"):r+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?r+(o(e)?"minúty":"minút"):r+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(o(e)?"hodiny":"hodín"):r+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?r+(o(e)?"dni":"dní"):r+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?r+(o(e)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?r+(o(e)?"roky":"rokov"):r+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},6181:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var i={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?i[n][0]:i[n][1]}e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var n=t.toLowerCase();return n.includes("w")||n.includes("m")?e+".":e+function(e){var t=(e=""+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"ê":"yê"}(e)},week:{dow:1,doy:4}})}(n(95093))},6469:(e,t,n)=>{"use strict";var o=n(78227),i=n(2360),r=n(24913).f,s=o("unscopables"),a=Array.prototype;void 0===a[s]&&r(a,s,{configurable:!0,value:i(null)}),e.exports=function(e){a[s][e]=!0}},6481:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var o=n(96540),i=n(34164),r=n(26739),s=n(58296),a=n(21362),l=n(1908);function c(e){return(0,l.Ay)("MuiTabPanel",e)}(0,n(96148).A)("MuiTabPanel",["root","hidden"]);var d=n(65836),u=n(74848);const h=(0,r.Ay)("div",{name:"MuiTabPanel",slot:"Root"})((({theme:e})=>({padding:e.spacing(3)}))),m=o.forwardRef((function(e,t){const n=(0,s.A)({props:e,name:"MuiTabPanel"}),{children:o,className:r,value:l,keepMounted:m=!1,...p}=n,f={...n},g=(e=>{const{classes:t,hidden:n}=e,o={root:["root",n&&"hidden"]};return(0,a.A)(o,c,t)})(f),b=(0,d.QM)();if(null===b)throw new TypeError("No TabContext provided");const v=(0,d.eR)(b,l),y=(0,d.vU)(b,l);return(0,u.jsx)(h,{"aria-labelledby":y,className:(0,i.A)(g.root,r),hidden:l!==b.value,id:v,ref:t,role:"tabpanel",ownerState:f,...p,children:(m||l===b.value)&&o})}))},6833:(e,t,n)=>{"use strict";n.d(t,{sd:()=>b,f4:()=>g,Mt:()=>v,F3:()=>y}),n(16280);var o=n(24360),i=(n(98992),n(81454),n(71409)),r=n(83986);const s="asc",a=new Map([[s,[-1,1]],["desc",[1,-1]]]),l=e=>`The priority '${e}' is already declared in a map.`,c=e=>`The priority '${e}' is not a number.`;var d=n(85428);n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);const u=e=>`'${e}' value is already declared in a unique set.`,h=e=>`There is already registered "${e}" plugin.`,m=function(){let{errorPriorityExists:e,errorPriorityNaN:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new Map;return e=(0,r.Tn)(e)?e:l,t=(0,r.Tn)(t)?t:c,{addItem:function(o,r){if(!(0,i.kf)(o))throw new Error(t(o));if(n.has(o))throw new Error(e(o));n.set(o,r)},getItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;const[t,o]=a.get(e)||a.get(s);return[...n].sort(((e,n)=>e[0]<n[0]?t:o)).map((e=>e[1]))}}}({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),p=function(){let{errorItemExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Set;return e=(0,r.Tn)(e)?e:u,{addItem:function(n){if(t.has(n))throw new Error(e(n));t.add(n)},clear:function(){t.clear()},getItems:function(){return[...t]}}}({errorItemExists:h}),f=(0,d.u)({errorIdExists:h});function g(){return[...m.getItems(),...p.getItems()]}function b(e){const t=(0,o.Ob)(e);return f.getItem(t)}function v(e){return!!b(e)}function y(e,t,n){[e,t,n]=function(e,t,n){return"function"==typeof e&&(e=(t=e).PLUGIN_KEY,n=t.PLUGIN_PRIORITY),[e,t,n]}(e,t,n),void 0===b(e)&&function(e,t,n){const i=(0,o.Ob)(e);if(f.hasItem(i))throw new Error(h(i));void 0===n?p.addItem(i):m.addItem(n,i),f.addItem(i,t)}(e,t,n)}},6947:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(e){return n[e]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(95093))},6980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7040:(e,t,n)=>{"use strict";var o=n(4495);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7193:(e,t,n)=>{"use strict";n.d(t,{A:()=>Ev});var o=n(96540),i=n.t(o,2),r={},s="rc-table-internal-hook",a=n(5544),l=n(26956),c=n(30981),d=n(43210),u=n(40961),h=n.t(u,2);function m(e){var t=o.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,i=e.children,r=o.useRef(n);r.current=n;var s=o.useState((function(){return{getValue:function(){return r.current},listeners:new Set}})),l=(0,a.A)(s,1)[0];return(0,c.A)((function(){(0,u.unstable_batchedUpdates)((function(){l.listeners.forEach((function(e){e(n)}))}))}),[n]),o.createElement(t.Provider,{value:l},i)},defaultValue:e}}function p(e,t){var n=(0,l.A)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),i=o.useContext(null==e?void 0:e.Context),r=i||{},s=r.listeners,u=r.getValue,h=o.useRef();h.current=n(i?u():null==e?void 0:e.defaultValue);var m=o.useState({}),p=(0,a.A)(m,2)[1];return(0,c.A)((function(){if(i)return s.add(e),function(){s.delete(e)};function e(e){var t=n(e);(0,d.A)(h.current,t,!0)||p({})}}),[i]),h.current}var f=n(58168),g=n(8719);function b(){var e=o.createContext(null);function t(){return o.useContext(e)}return{makeImmutable:function(n,i){var r=(0,g.f3)(n),s=function(s,a){var l=r?{ref:a}:{},c=o.useRef(0),d=o.useRef(s);return null!==t()?o.createElement(n,(0,f.A)({},s,l)):(i&&!i(d.current,s)||(c.current+=1),d.current=s,o.createElement(e.Provider,{value:c.current},o.createElement(n,(0,f.A)({},s,l))))};return r?o.forwardRef(s):s},responseImmutable:function(e,n){var i=(0,g.f3)(e),r=function(n,r){var s=i?{ref:r}:{};return t(),o.createElement(e,(0,f.A)({},n,s))};return i?o.memo(o.forwardRef(r),n):o.memo(r,n)},useImmutableMark:t}}var v=b(),y=(v.makeImmutable,v.responseImmutable,v.useImmutableMark,b()),w=y.makeImmutable,C=y.responseImmutable,_=y.useImmutableMark;const S=m();var M=n(82284),E=n(89379),x=n(64467),k=n(46942),T=n.n(k),R=n(28104),A=n(16300),L=n(68210);const O=o.createContext({renderWithProps:!1});function D(e){var t=[],n={};return e.forEach((function(e){for(var o,i=e||{},r=i.key,s=i.dataIndex,a=r||(o=s,null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)})),t}function H(e){return null!=e}var I=n(81470);function P(e){var t,n,i,r,s,l,c,u,h=e.component,m=e.children,g=e.ellipsis,b=e.scope,v=e.prefixCls,y=e.className,w=e.align,C=e.record,k=e.render,L=e.dataIndex,D=e.renderIndex,P=e.shouldCellUpdate,N=e.index,F=e.rowType,z=e.colSpan,j=e.rowSpan,Y=e.fixLeft,$=e.fixRight,B=e.firstFixLeft,W=e.lastFixLeft,V=e.firstFixRight,U=e.lastFixRight,G=e.appendNode,K=e.additionalProps,q=void 0===K?{}:K,X=e.isSticky,J="".concat(v,"-cell"),Q=p(S,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Z=Q.supportSticky,ee=Q.allColumnsFixedLeft,te=Q.rowHoverable,ne=function(e,t,n,i,r,s){var l=o.useContext(O),c=_();return(0,R.A)((function(){if(H(i))return[i];var s,a=null==t||""===t?[]:Array.isArray(t)?t:[t],c=(0,A.A)(e,a),d=c,u=void 0;if(r){var h=r(c,e,n);!(s=h)||"object"!==(0,M.A)(s)||Array.isArray(s)||o.isValidElement(s)?d=h:(d=h.children,u=h.props,l.renderWithProps=!0)}return[d,u]}),[c,e,i,t,r,n],(function(e,t){if(s){var n=(0,a.A)(e,2)[1],o=(0,a.A)(t,2)[1];return s(o,n)}return!!l.renderWithProps||!(0,d.A)(e,t,!0)}))}(C,L,D,m,k,P),oe=(0,a.A)(ne,2),ie=oe[0],re=oe[1],se={},ae="number"==typeof Y&&Z,le="number"==typeof $&&Z;ae&&(se.position="sticky",se.left=Y),le&&(se.position="sticky",se.right=$);var ce=null!==(t=null!==(n=null!==(i=null==re?void 0:re.colSpan)&&void 0!==i?i:q.colSpan)&&void 0!==n?n:z)&&void 0!==t?t:1,de=null!==(r=null!==(s=null!==(l=null==re?void 0:re.rowSpan)&&void 0!==l?l:q.rowSpan)&&void 0!==s?s:j)&&void 0!==r?r:1,ue=function(e,t){return p(S,(function(n){var o,i,r,s;return[(o=e,i=t||1,r=n.hoverStartRow,s=n.hoverEndRow,o<=s&&o+i-1>=r),n.onHover]}))}(N,de),he=(0,a.A)(ue,2),me=he[0],pe=he[1],fe=(0,I._q)((function(e){var t;C&&pe(N,N+de-1),null==q||null===(t=q.onMouseEnter)||void 0===t||t.call(q,e)})),ge=(0,I._q)((function(e){var t;C&&pe(-1,-1),null==q||null===(t=q.onMouseLeave)||void 0===t||t.call(q,e)}));if(0===ce||0===de)return null;var be=null!==(c=q.title)&&void 0!==c?c:function(e){var t,n=e.ellipsis,i=e.rowType,r=e.children,s=!0===n?{showTitle:!0}:n;return s&&(s.showTitle||"header"===i)&&("string"==typeof r||"number"==typeof r?t=r.toString():o.isValidElement(r)&&"string"==typeof r.props.children&&(t=r.props.children)),t}({rowType:F,ellipsis:g,children:ie}),ve=T()(J,y,(u={},(0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)(u,"".concat(J,"-fix-left"),ae&&Z),"".concat(J,"-fix-left-first"),B&&Z),"".concat(J,"-fix-left-last"),W&&Z),"".concat(J,"-fix-left-all"),W&&ee&&Z),"".concat(J,"-fix-right"),le&&Z),"".concat(J,"-fix-right-first"),V&&Z),"".concat(J,"-fix-right-last"),U&&Z),"".concat(J,"-ellipsis"),g),"".concat(J,"-with-append"),G),"".concat(J,"-fix-sticky"),(ae||le)&&X&&Z),(0,x.A)(u,"".concat(J,"-row-hover"),!re&&me)),q.className,null==re?void 0:re.className),ye={};w&&(ye.textAlign=w);var we=(0,E.A)((0,E.A)((0,E.A)((0,E.A)({},null==re?void 0:re.style),se),ye),q.style),Ce=ie;return"object"!==(0,M.A)(Ce)||Array.isArray(Ce)||o.isValidElement(Ce)||(Ce=null),g&&(W||V)&&(Ce=o.createElement("span",{className:"".concat(J,"-content")},Ce)),o.createElement(h,(0,f.A)({},re,q,{className:ve,style:we,title:be,scope:b,onMouseEnter:te?fe:void 0,onMouseLeave:te?ge:void 0,colSpan:1!==ce?ce:null,rowSpan:1!==de?de:null}),G,Ce)}const N=o.memo(P);function F(e,t,n,o,i){var r,s,a=n[e]||{},l=n[t]||{};"left"===a.fixed?r=o.left["rtl"===i?t:e]:"right"===l.fixed&&(s=o.right["rtl"===i?e:t]);var c=!1,d=!1,u=!1,h=!1,m=n[t+1],p=n[e-1],f=m&&!m.fixed||p&&!p.fixed||n.every((function(e){return"left"===e.fixed}));return"rtl"===i?void 0!==r?h=!(p&&"left"===p.fixed)&&f:void 0!==s&&(u=!(m&&"right"===m.fixed)&&f):void 0!==r?c=!(m&&"left"===m.fixed)&&f:void 0!==s&&(d=!(p&&"right"===p.fixed)&&f),{fixLeft:r,fixRight:s,lastFixLeft:c,firstFixRight:d,lastFixRight:u,firstFixLeft:h,isSticky:o.isSticky}}const z=o.createContext({});var j=n(80045),Y=["children"];function $(e){return e.children}$.Row=function(e){var t=e.children,n=(0,j.A)(e,Y);return o.createElement("tr",n,t)},$.Cell=function(e){var t=e.className,n=e.index,i=e.children,r=e.colSpan,s=void 0===r?1:r,a=e.rowSpan,l=e.align,c=p(S,["prefixCls","direction"]),d=c.prefixCls,u=c.direction,h=o.useContext(z),m=h.scrollColumnIndex,g=h.stickyOffsets,b=n+s-1+1===m?s+1:s,v=F(n,n+b-1,h.flattenColumns,g,u);return o.createElement(N,(0,f.A)({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:l,colSpan:b,rowSpan:a,render:function(){return i}},v))};const B=$,W=C((function(e){var t=e.children,n=e.stickyOffsets,i=e.flattenColumns,r=p(S,"prefixCls"),s=i.length-1,a=i[s],l=o.useMemo((function(){return{stickyOffsets:n,flattenColumns:i,scrollColumnIndex:null!=a&&a.scrollbar?s:null}}),[a,i,s,n]);return o.createElement(z.Provider,{value:l},o.createElement("tfoot",{className:"".concat(r,"-summary")},t))}));var V=B,U=n(76288);function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(G(e)):(0,U.A)(e)&&e.props?n=n.concat(G(e.props.children,t)):n.push(e))})),n}var K=n(66588),q=o.createContext(null),X=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var i=o[n];e.call(t,i[1],i[0])}},t}()}(),J="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Q=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Z="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Q):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},ee=["top","right","bottom","left","width","height","size","weight"],te="undefined"!=typeof MutationObserver,ne=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,o=0;function i(){t&&(t=!1,e()),n&&s()}function r(){Z(i)}function s(){var e=Date.now();if(t){if(e-o<2)return;n=!0}else t=!0,n=!1,setTimeout(r,20);o=e}return s}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){J&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),te?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){J&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;ee.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),oe=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var i=o[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},ie=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Q},re=de(0,0,0,0);function se(e){return parseFloat(e)||0}function ae(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+se(e["border-"+n+"-width"])}),0)}var le="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof ie(e).SVGGraphicsElement}:function(e){return e instanceof ie(e).SVGElement&&"function"==typeof e.getBBox};function ce(e){return J?le(e)?function(e){var t=e.getBBox();return de(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return re;var o=ie(e).getComputedStyle(e),i=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var i=o[n],r=e["padding-"+i];t[i]=se(r)}return t}(o),r=i.left+i.right,s=i.top+i.bottom,a=se(o.width),l=se(o.height);if("border-box"===o.boxSizing&&(Math.round(a+r)!==t&&(a-=ae(o,"left","right")+r),Math.round(l+s)!==n&&(l-=ae(o,"top","bottom")+s)),!function(e){return e===ie(e).document.documentElement}(e)){var c=Math.round(a+r)-t,d=Math.round(l+s)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(d)&&(l-=d)}return de(i.left,i.top,a,l)}(e):re}function de(e,t,n,o){return{x:e,y:t,width:n,height:o}}var ue=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=de(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ce(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),he=function(e,t){var n,o,i,r,s,a,l,c=(o=(n=t).x,i=n.y,r=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),oe(l,{x:o,y:i,width:r,height:s,top:i,right:o+r,bottom:s+i,left:o}),l);oe(this,{target:e,contentRect:c})},me=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new X,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ie(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new ue(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ie(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new he(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),pe="undefined"!=typeof WeakMap?new WeakMap:new X,fe=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ne.getInstance(),o=new me(t,n,this);pe.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){fe.prototype[e]=function(){var t;return(t=pe.get(this))[e].apply(t,arguments)}}));const ge=void 0!==Q.ResizeObserver?Q.ResizeObserver:fe;var be=new Map,ve=new ge((function(e){e.forEach((function(e){var t,n=e.target;null===(t=be.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),ye=n(23029),we=n(92901),Ce=n(85501),_e=n(49640),Se=function(e){(0,Ce.A)(n,e);var t=(0,_e.A)(n);function n(){return(0,ye.A)(this,n),t.apply(this,arguments)}return(0,we.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function Me(e,t){var n=e.children,i=e.disabled,r=o.useRef(null),s=o.useRef(null),a=o.useContext(q),l="function"==typeof n,c=l?n(r):n,d=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&o.isValidElement(c)&&(0,g.f3)(c),h=u?(0,g.A9)(c):null,m=(0,g.xK)(h,r),p=function(){var e;return(0,K.Ay)(r.current)||(r.current&&"object"===(0,M.A)(r.current)?(0,K.Ay)(null===(e=r.current)||void 0===e?void 0:e.nativeElement):null)||(0,K.Ay)(s.current)};o.useImperativeHandle(t,(function(){return p()}));var f=o.useRef(e);f.current=e;var b=o.useCallback((function(e){var t=f.current,n=t.onResize,o=t.data,i=e.getBoundingClientRect(),r=i.width,s=i.height,l=e.offsetWidth,c=e.offsetHeight,u=Math.floor(r),h=Math.floor(s);if(d.current.width!==u||d.current.height!==h||d.current.offsetWidth!==l||d.current.offsetHeight!==c){var m={width:u,height:h,offsetWidth:l,offsetHeight:c};d.current=m;var p=l===Math.round(r)?r:l,g=c===Math.round(s)?s:c,b=(0,E.A)((0,E.A)({},m),{},{offsetWidth:p,offsetHeight:g});null==a||a(b,e,o),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return o.useEffect((function(){var e,t,n=p();return n&&!i&&(e=n,t=b,be.has(e)||(be.set(e,new Set),ve.observe(e)),be.get(e).add(t)),function(){return function(e,t){be.has(e)&&(be.get(e).delete(t),be.get(e).size||(ve.unobserve(e),be.delete(e)))}(n,b)}}),[r.current,i]),o.createElement(Se,{ref:s},u?o.cloneElement(c,{ref:m}):c)}const Ee=o.forwardRef(Me);function xe(e,t){var n=e.children;return("function"==typeof n?[n]:G(n)).map((function(n,i){var r=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(Ee,(0,f.A)({},e,{key:r,ref:0===i?t:void 0}),n)}))}var ke=o.forwardRef(xe);ke.Collection=function(e){var t=e.children,n=e.onBatchResize,i=o.useRef(0),r=o.useRef([]),s=o.useContext(q),a=o.useCallback((function(e,t,o){i.current+=1;var a=i.current;r.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){a===i.current&&(null==n||n(r.current),r.current=[])})),null==s||s(e,t,o)}),[n,s]);return o.createElement(q.Provider,{value:a},t)};const Te=ke;var Re=n(20998),Ae=function(e){if((0,Re.A)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};var Le,Oe=n(34552);function De(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var o,i,r=n.style;if(r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll",e){var s=getComputedStyle(e);r.scrollbarColor=s.scrollbarColor,r.scrollbarWidth=s.scrollbarWidth;var a=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(a.width,10),c=parseInt(a.height,10);try{var d=l?"width: ".concat(a.width,";"):"",u=c?"height: ".concat(a.height,";"):"";(0,Oe.BD)("\n#".concat(t,"::-webkit-scrollbar {\n").concat(d,"\n").concat(u,"\n}"),t)}catch(e){console.error(e),o=l,i=c}}document.body.appendChild(n);var h=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,m=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),(0,Oe.m6)(t),{width:h,height:m}}function He(e){return"undefined"==typeof document?0:((e||void 0===Le)&&(Le=De()),Le.width)}function Ie(e){return"undefined"!=typeof document&&e&&e instanceof Element?De(e):{width:0,height:0}}var Pe="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Ne(e,t){return 0===e.indexOf(t)}function Fe(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,E.A)({},n);var o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Ne(n,"aria-"))||t.data&&Ne(n,"data-")||t.attr&&Pe.includes(n))&&(o[n]=e[n])})),o}function ze(e,t,n,o,i,r,s){var a=r(t,s);e.push({record:t,indent:n,index:s,rowKey:a});var l=null==i?void 0:i.has(a);if(t&&Array.isArray(t[o])&&l)for(var c=0;c<t[o].length;c+=1)ze(e,t[o][c],n+1,o,i,r,c)}function je(e,t,n,i){return o.useMemo((function(){if(null!=n&&n.size){for(var o=[],r=0;r<(null==e?void 0:e.length);r+=1)ze(o,e[r],0,t,n,i,r);return o}return null==e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t,rowKey:i(e,t)}}))}),[e,t,n,i])}function Ye(e,t,n,o){var i,r=p(S,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),s=r.flattenColumns,a=r.expandableType,l=r.expandedKeys,c=r.childrenColumnName,d=r.onTriggerExpand,u=r.rowExpandable,h=r.onRow,m=r.expandRowByClick,f=r.rowClassName,g="nest"===a,b="row"===a&&(!u||u(e)),v=b||g,y=l&&l.has(t),w=c&&e&&e[c],C=(0,I._q)(d),_=null==h?void 0:h(e,n),M=null==_?void 0:_.onClick;"string"==typeof f?i=f:"function"==typeof f&&(i=f(e,n,o));var x=D(s);return(0,E.A)((0,E.A)({},r),{},{columnsKey:x,nestExpandable:g,expanded:y,hasNestChildren:w,record:e,onTriggerExpand:C,rowSupportExpand:b,expandable:v,rowProps:(0,E.A)((0,E.A)({},_),{},{className:T()(i,null==_?void 0:_.className),onClick:function(t){m&&v&&d(e,t);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];null==M||M.apply(void 0,[t].concat(o))}})})}const $e=function(e){var t=e.prefixCls,n=e.children,i=e.component,r=e.cellComponent,s=e.className,a=e.expanded,l=e.colSpan,c=e.isEmpty,d=e.stickyOffset,u=void 0===d?0:d,h=p(S,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),m=h.scrollbarSize,f=h.fixHeader,g=h.fixColumn,b=h.componentWidth,v=h.horizonScroll,y=n;return(c?v&&b:g)&&(y=o.createElement("div",{style:{width:b-u-(f&&!c?m:0),position:"sticky",left:u,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},y)),o.createElement(i,{className:s,style:{display:a?null:"none"}},o.createElement(N,{component:r,prefixCls:t,colSpan:l},y))};function Be(e){var t=e.prefixCls,n=e.record,i=e.onExpand,r=e.expanded,s=e.expandable,a="".concat(t,"-row-expand-icon");return s?o.createElement("span",{className:T()(a,(0,x.A)((0,x.A)({},"".concat(t,"-row-expanded"),r),"".concat(t,"-row-collapsed"),!r)),onClick:function(e){i(n,e),e.stopPropagation()}}):o.createElement("span",{className:T()(a,"".concat(t,"-row-spaced"))})}function We(e,t,n,o){return"string"==typeof e?e:"function"==typeof e?e(t,n,o):""}function Ve(e,t,n,i,r){var s,a,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,d=e.record,u=e.prefixCls,h=e.columnsKey,m=e.fixedInfoList,p=e.expandIconColumnIndex,f=e.nestExpandable,g=e.indentSize,b=e.expandIcon,v=e.expanded,y=e.hasNestChildren,w=e.onTriggerExpand,C=e.expandable,_=e.expandedKeys,S=h[n],M=m[n];n===(p||0)&&f&&(a=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(g*i,"px")},className:"".concat(u,"-row-indent indent-level-").concat(i)}),b({prefixCls:u,expanded:v,expandable:y,record:d,onExpand:w})));var E=(null===(s=t.onCell)||void 0===s?void 0:s.call(t,d,r))||{};if(c){var x=E.rowSpan,k=void 0===x?1:x;if(C&&k&&n<c){for(var T=k,R=r;R<r+k;R+=1){var A=l[R];_.has(A)&&(T+=1)}E.rowSpan=T}}return{key:S,fixedInfo:M,appendCellNode:a,additionalCellProps:E}}const Ue=C((function(e){var t=e.className,n=e.style,i=e.record,r=e.index,s=e.renderIndex,a=e.rowKey,l=e.rowKeys,c=e.indent,d=void 0===c?0:c,u=e.rowComponent,h=e.cellComponent,m=e.scopeCellComponent,p=e.expandedRowInfo,g=Ye(i,a,r,d),b=g.prefixCls,v=g.flattenColumns,y=g.expandedRowClassName,w=g.expandedRowRender,C=g.rowProps,_=g.expanded,S=g.rowSupportExpand,M=o.useRef(!1);M.current||(M.current=_);var k,R=We(y,i,r,d),A=o.createElement(u,(0,f.A)({},C,{"data-row-key":a,className:T()(t,"".concat(b,"-row"),"".concat(b,"-row-level-").concat(d),null==C?void 0:C.className,(0,x.A)({},R,d>=1)),style:(0,E.A)((0,E.A)({},n),null==C?void 0:C.style)}),v.map((function(e,t){var n=e.render,a=e.dataIndex,c=e.className,u=Ve(g,e,t,d,r,l,null==p?void 0:p.offset),v=u.key,y=u.fixedInfo,w=u.appendCellNode,C=u.additionalCellProps;return o.createElement(N,(0,f.A)({className:c,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?m:h,prefixCls:b,key:v,record:i,index:r,renderIndex:s,dataIndex:a,render:n,shouldCellUpdate:e.shouldCellUpdate},y,{appendNode:w,additionalProps:C}))})));if(S&&(M.current||_)){var L=w(i,r,d+1,_);k=o.createElement($e,{expanded:_,className:T()("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(d+1),R),prefixCls:b,component:u,cellComponent:h,colSpan:p?p.colSpan:v.length,stickyOffset:null==p?void 0:p.sticky,isEmpty:!1},L)}return o.createElement(o.Fragment,null,A,k)}));function Ge(e){var t=e.columnKey,n=e.onColumnResize,i=o.useRef();return(0,c.A)((function(){i.current&&n(t,i.current.offsetWidth)}),[]),o.createElement(Te,{data:t},o.createElement("td",{ref:i,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}const Ke=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),r=i.width,s=i.height;if(r||s)return!0}}return!1};function qe(e){var t=e.prefixCls,n=e.columnsKey,i=e.onColumnResize,r=o.useRef(null);return o.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:r},o.createElement(Te.Collection,{onBatchResize:function(e){Ke(r.current)&&e.forEach((function(e){var t=e.data,n=e.size;i(t,n.offsetWidth)}))}},n.map((function(e){return o.createElement(Ge,{key:e,columnKey:e,onColumnResize:i})}))))}const Xe=C((function(e){var t,n=e.data,i=e.measureColumnWidth,r=p(S,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),s=r.prefixCls,a=r.getComponent,l=r.onColumnResize,c=r.flattenColumns,d=r.getRowKey,u=r.expandedKeys,h=r.childrenColumnName,m=r.emptyNode,f=r.expandedRowOffset,g=void 0===f?0:f,b=r.colWidths,v=je(n,h,u,d),y=o.useMemo((function(){return v.map((function(e){return e.rowKey}))}),[v]),w=o.useRef({renderWithProps:!1}),C=o.useMemo((function(){for(var e=c.length-g,t=0,n=0;n<g;n+=1)t+=b[n]||0;return{offset:g,colSpan:e,sticky:t}}),[c.length,g,b]),_=a(["body","wrapper"],"tbody"),M=a(["body","row"],"tr"),E=a(["body","cell"],"td"),x=a(["body","cell"],"th");t=n.length?v.map((function(e,t){var n=e.record,i=e.indent,r=e.index,s=e.rowKey;return o.createElement(Ue,{key:s,rowKey:s,rowKeys:y,record:n,index:t,renderIndex:r,rowComponent:M,cellComponent:E,scopeCellComponent:x,indent:i,expandedRowInfo:C})})):o.createElement($e,{expanded:!0,className:"".concat(s,"-placeholder"),prefixCls:s,component:M,cellComponent:E,colSpan:c.length,isEmpty:!0},m);var k=D(c);return o.createElement(O.Provider,{value:w.current},o.createElement(_,{className:"".concat(s,"-tbody")},i&&o.createElement(qe,{prefixCls:s,columnsKey:k,onColumnResize:l}),t))}));var Je=["expandable"],Qe="RC_TABLE_INTERNAL_COL_DEFINE",Ze=["columnType"];const et=function(e){for(var t=e.colWidths,n=e.columns,i=e.columCount,r=p(S,["tableLayout"]).tableLayout,s=[],a=!1,l=(i||n.length)-1;l>=0;l-=1){var c=t[l],d=n&&n[l],u=void 0,h=void 0;if(d&&(u=d[Qe],"auto"===r&&(h=d.minWidth)),c||h||u||a){var m=u||{},g=(m.columnType,(0,j.A)(m,Ze));s.unshift(o.createElement("col",(0,f.A)({key:l,style:{width:c,minWidth:h}},g))),a=!0}}return o.createElement("colgroup",null,s)};var tt=n(60436),nt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],ot=o.forwardRef((function(e,t){var n=e.className,i=e.noData,r=e.columns,s=e.flattenColumns,a=e.colWidths,l=e.columCount,c=e.stickyOffsets,d=e.direction,u=e.fixHeader,h=e.stickyTopOffset,m=e.stickyBottomOffset,f=e.stickyClassName,b=e.onScroll,v=e.maxContentScroll,y=e.children,w=(0,j.A)(e,nt),C=p(S,["prefixCls","scrollbarSize","isSticky","getComponent"]),_=C.prefixCls,M=C.scrollbarSize,k=C.isSticky,R=(0,C.getComponent)(["header","table"],"table"),A=k&&!u?0:M,L=o.useRef(null),O=o.useCallback((function(e){(0,g.Xf)(t,e),(0,g.Xf)(L,e)}),[]);o.useEffect((function(){function e(e){var t=e,n=t.currentTarget,o=t.deltaX;o&&(b({currentTarget:n,scrollLeft:n.scrollLeft+o}),e.preventDefault())}var t=L.current;return null==t||t.addEventListener("wheel",e,{passive:!1}),function(){null==t||t.removeEventListener("wheel",e)}}),[]);var D=o.useMemo((function(){return s.every((function(e){return e.width}))}),[s]),H=s[s.length-1],I={fixed:H?H.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_,"-cell-scrollbar")}}},P=(0,o.useMemo)((function(){return A?[].concat((0,tt.A)(r),[I]):r}),[A,r]),N=(0,o.useMemo)((function(){return A?[].concat((0,tt.A)(s),[I]):s}),[A,s]),F=(0,o.useMemo)((function(){var e=c.right,t=c.left;return(0,E.A)((0,E.A)({},c),{},{left:"rtl"===d?[].concat((0,tt.A)(t.map((function(e){return e+A}))),[0]):t,right:"rtl"===d?e:[].concat((0,tt.A)(e.map((function(e){return e+A}))),[0]),isSticky:k})}),[A,c,k]),z=function(e,t){return(0,o.useMemo)((function(){for(var n=[],o=0;o<t;o+=1){var i=e[o];if(void 0===i)return null;n[o]=i}return n}),[e.join("_"),t])}(a,l);return o.createElement("div",{style:(0,E.A)({overflow:"hidden"},k?{top:h,bottom:m}:{}),ref:O,className:T()(n,(0,x.A)({},f,!!f))},o.createElement(R,{style:{tableLayout:"fixed",visibility:i||z?null:"hidden"}},(!i||!v||D)&&o.createElement(et,{colWidths:z?[].concat((0,tt.A)(z),[A]):[],columCount:l+1,columns:N}),y((0,E.A)((0,E.A)({},w),{},{stickyOffsets:F,columns:P,flattenColumns:N}))))}));const it=o.memo(ot),rt=function(e){var t,n=e.cells,i=e.stickyOffsets,r=e.flattenColumns,s=e.rowComponent,a=e.cellComponent,l=e.onHeaderRow,c=e.index,d=p(S,["prefixCls","direction"]),u=d.prefixCls,h=d.direction;l&&(t=l(n.map((function(e){return e.column})),c));var m=D(n.map((function(e){return e.column})));return o.createElement(s,t,n.map((function(e,t){var n,s=e.column,l=F(e.colStart,e.colEnd,r,i,h);return s&&s.onHeaderCell&&(n=e.column.onHeaderCell(s)),o.createElement(N,(0,f.A)({},e,{scope:s.title?e.colSpan>1?"colgroup":"col":null,ellipsis:s.ellipsis,align:s.align,component:a,prefixCls:u,key:m[t]},l,{additionalProps:n,rowType:"header"}))})))},st=C((function(e){var t=e.stickyOffsets,n=e.columns,i=e.flattenColumns,r=e.onHeaderRow,s=p(S,["prefixCls","getComponent"]),a=s.prefixCls,l=s.getComponent,c=o.useMemo((function(){return function(e){var t=[];!function e(n,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[i]=t[i]||[];var r=o;return n.filter(Boolean).map((function(n){var o={key:n.key,className:n.className||"",children:n.title,column:n,colStart:r},s=1,a=n.children;return a&&a.length>0&&(s=e(a,r,i+1).reduce((function(e,t){return e+t}),0),o.hasSubColumns=!0),"colSpan"in n&&(s=n.colSpan),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=s,o.colEnd=o.colStart+s-1,t[i].push(o),r+=s,s}))}(e,0);for(var n=t.length,o=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},i=0;i<n;i+=1)o(i);return t}(n)}),[n]),d=l(["header","wrapper"],"thead"),u=l(["header","row"],"tr"),h=l(["header","cell"],"th");return o.createElement(d,{className:"".concat(a,"-thead")},c.map((function(e,n){return o.createElement(rt,{key:n,flattenColumns:i,cells:e,stickyOffsets:t,rowComponent:u,cellComponent:h,onHeaderRow:r,index:n})})))}));function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var lt=["children"],ct=["fixed"];function dt(e){return G(e).filter((function(e){return o.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,o=n.children,i=(0,j.A)(n,lt),r=(0,E.A)({key:t},i);return o&&(r.children=dt(o)),r}))}function ut(e){return e.filter((function(e){return e&&"object"===(0,M.A)(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?(0,E.A)((0,E.A)({},e),{},{children:ut(t)}):e}))}function ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===(0,M.A)(e)})).reduce((function(e,n,o){var i=n.fixed,r=!0===i?"left":i,s="".concat(t,"-").concat(o),a=n.children;return a&&a.length>0?[].concat((0,tt.A)(e),(0,tt.A)(ht(a,s).map((function(e){return(0,E.A)({fixed:r},e)})))):[].concat((0,tt.A)(e),[(0,E.A)((0,E.A)({key:s},n),{},{fixed:r})])}),[])}const mt=function(e,t){var n=e.prefixCls,i=e.columns,s=e.children,l=e.expandable,c=e.expandedKeys,d=e.columnTitle,u=e.getRowKey,h=e.onTriggerExpand,m=e.expandIcon,p=e.rowExpandable,f=e.expandIconColumnIndex,g=e.expandedRowOffset,b=void 0===g?0:g,v=e.direction,y=e.expandRowByClick,w=e.columnWidth,C=e.fixed,_=e.scrollWidth,S=e.clientWidth,M=o.useMemo((function(){return ut((i||dt(s)||[]).slice())}),[i,s]),k=o.useMemo((function(){if(l){var e=M.slice();if(!e.includes(r)){var t=f||0;t>=0&&(t||"left"===C||!C)&&e.splice(t,0,r),"right"===C&&e.splice(M.length,0,r)}var i=e.indexOf(r);e=e.filter((function(e,t){return e!==r||t===i}));var s,a=M[i];s=C||(a?a.fixed:null);var g=(0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)({},Qe,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",d),"fixed",s),"className","".concat(n,"-row-expand-icon-cell")),"width",w),"render",(function(e,t,i){var r=u(t,i),s=c.has(r),a=!p||p(t),l=m({prefixCls:n,expanded:s,expandable:a,record:t,onExpand:h});return y?o.createElement("span",{onClick:function(e){return e.stopPropagation()}},l):l}));return e.map((function(e,t){var n=e===r?g:e;return t<b?(0,E.A)((0,E.A)({},n),{},{fixed:n.fixed||"left"}):n}))}return M.filter((function(e){return e!==r}))}),[l,M,u,c,m,v,b]),T=o.useMemo((function(){var e=k;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,k,v]),R=o.useMemo((function(){return"rtl"===v?function(e){return e.map((function(e){var t=e.fixed,n=(0,j.A)(e,ct),o=t;return"left"===t?o="right":"right"===t&&(o="left"),(0,E.A)({fixed:o},n)}))}(ht(T)):ht(T)}),[T,v,_]),A=o.useMemo((function(){for(var e=-1,t=R.length-1;t>=0;t-=1){var n=R[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var o=0;o<=e;o+=1){var i=R[o].fixed;if("left"!==i&&!0!==i)return!0}var r=R.findIndex((function(e){return"right"===e.fixed}));if(r>=0)for(var s=r;s<R.length;s+=1)if("right"!==R[s].fixed)return!0;return!1}),[R]),L=function(e,t,n){return o.useMemo((function(){if(t&&t>0){var o=0,i=0;e.forEach((function(e){var n=at(t,e.width);n?o+=n:i+=1}));var r=Math.max(t,n),s=Math.max(r-o,i),a=i,l=s/i,c=0,d=e.map((function(e){var n=(0,E.A)({},e),o=at(t,n.width);if(o)n.width=o;else{var i=Math.floor(l);n.width=1===a?s:i,s-=i,a-=1}return c+=n.width,n}));if(c<r){var u=r/c;s=r,d.forEach((function(e,t){var n=Math.floor(e.width*u);e.width=t===d.length-1?s:n,s-=n}))}return[d,Math.max(c,r)]}return[e,t]}),[e,t,n])}(R,_,S),O=(0,a.A)(L,2),D=O[0],H=O[1];return[T,D,H,A]};var pt=(0,Re.A)()?window:null;const ft=function(e){var t=e.className,n=e.children;return o.createElement("div",{className:t},n)};function gt(e,t,n,o){var i=u.unstable_batchedUpdates?function(e){u.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,o)}}}var bt=n(25371);function vt(e){var t=(0,K.rb)(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var yt=function(e,t){var n,i,r,s,l,c,d,u,h=e.scrollBodyRef,m=e.onScroll,f=e.offsetScroll,g=e.container,b=e.direction,v=p(S,"prefixCls"),y=(null===(n=h.current)||void 0===n?void 0:n.scrollWidth)||0,w=(null===(i=h.current)||void 0===i?void 0:i.clientWidth)||0,C=y&&w*(w/y),_=o.useRef(),M=(r={scrollLeft:0,isHiddenScrollBar:!0},s=(0,o.useRef)(r),l=(0,o.useState)({}),c=(0,a.A)(l,2)[1],d=(0,o.useRef)(null),u=(0,o.useRef)([]),(0,o.useEffect)((function(){return function(){d.current=null}}),[]),[s.current,function(e){u.current.push(e);var t=Promise.resolve();d.current=t,t.then((function(){if(d.current===t){var e=u.current,n=s.current;u.current=[],e.forEach((function(e){s.current=e(s.current)})),d.current=null,n!==s.current&&c({})}}))}]),k=(0,a.A)(M,2),R=k[0],A=k[1],L=o.useRef({delta:0,x:0}),O=o.useState(!1),D=(0,a.A)(O,2),H=D[0],I=D[1],P=o.useRef(null);o.useEffect((function(){return function(){bt.A.cancel(P.current)}}),[]);var N=function(){I(!1)},F=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(H&&0!==n){var o=L.current.x+e.pageX-L.current.x-L.current.delta,i="rtl"===b;o=Math.max(i?C-w:0,Math.min(i?0:w-C,o)),(!i||Math.abs(o)+Math.abs(C)<w)&&(m({scrollLeft:o/w*(y+2)}),L.current.x=e.pageX)}else H&&I(!1)},z=function(){bt.A.cancel(P.current),P.current=(0,bt.A)((function(){if(h.current){var e=vt(h.current).top,t=e+h.current.offsetHeight,n=g===window?document.documentElement.scrollTop+window.innerHeight:vt(g).top+g.clientHeight;t-He()<=n||e>=n-f?A((function(e){return(0,E.A)((0,E.A)({},e),{},{isHiddenScrollBar:!0})})):A((function(e){return(0,E.A)((0,E.A)({},e),{},{isHiddenScrollBar:!1})}))}}))},j=function(e){A((function(t){return(0,E.A)((0,E.A)({},t),{},{scrollLeft:e/y*w||0})}))};return o.useImperativeHandle(t,(function(){return{setScrollLeft:j,checkScrollBarVisible:z}})),o.useEffect((function(){var e=gt(document.body,"mouseup",N,!1),t=gt(document.body,"mousemove",F,!1);return z(),function(){e.remove(),t.remove()}}),[C,H]),o.useEffect((function(){if(h.current){for(var e=[],t=(0,K.rb)(h.current);t;)e.push(t),t=t.parentElement;return e.forEach((function(e){return e.addEventListener("scroll",z,!1)})),window.addEventListener("resize",z,!1),window.addEventListener("scroll",z,!1),g.addEventListener("scroll",z,!1),function(){e.forEach((function(e){return e.removeEventListener("scroll",z)})),window.removeEventListener("resize",z),window.removeEventListener("scroll",z),g.removeEventListener("scroll",z)}}}),[g]),o.useEffect((function(){R.isHiddenScrollBar||A((function(e){var t=h.current;return t?(0,E.A)((0,E.A)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[R.isHiddenScrollBar]),y<=w||!C||R.isHiddenScrollBar?null:o.createElement("div",{style:{height:He(),width:w,bottom:f},className:"".concat(v,"-sticky-scroll")},o.createElement("div",{onMouseDown:function(e){e.persist(),L.current.delta=e.pageX-R.scrollLeft,L.current.x=0,I(!0),e.preventDefault()},ref:_,className:T()("".concat(v,"-sticky-scroll-bar"),(0,x.A)({},"".concat(v,"-sticky-scroll-bar-active"),H)),style:{width:"".concat(C,"px"),transform:"translate3d(".concat(R.scrollLeft,"px, 0, 0)")}}))};const wt=o.forwardRef(yt);var Ct="rc-table",_t=[],St={};function Mt(){return"No Data"}function Et(e,t){var n=(0,E.A)({rowKey:"key",prefixCls:Ct,emptyText:Mt},e),i=n.prefixCls,r=n.className,u=n.rowClassName,h=n.style,m=n.data,p=n.rowKey,g=n.scroll,b=n.tableLayout,v=n.direction,y=n.title,w=n.footer,C=n.summary,_=n.caption,k=n.id,L=n.showHeader,O=n.components,I=n.emptyText,P=n.onRow,N=n.onHeaderRow,z=n.onScroll,Y=n.internalHooks,$=n.transformColumns,V=n.internalRefs,U=n.tailor,G=n.getContainerWidth,q=n.sticky,X=n.rowHoverable,J=void 0===X||X,Q=m||_t,Z=!!Q.length,ee=Y===s,te=o.useCallback((function(e,t){return(0,A.A)(O,e)||t}),[O]),ne=o.useMemo((function(){return"function"==typeof p?p:function(e){return e&&e[p]}}),[p]),oe=te(["body"]),ie=function(){var e=o.useState(-1),t=(0,a.A)(e,2),n=t[0],i=t[1],r=o.useState(-1),s=(0,a.A)(r,2),l=s[0],c=s[1];return[n,l,o.useCallback((function(e,t){i(e),c(t)}),[])]}(),re=(0,a.A)(ie,3),se=re[0],ae=re[1],le=re[2],ce=function(e,t,n){var i=function(e){var t,n=e.expandable,o=(0,j.A)(e,Je);return!1===(t="expandable"in e?(0,E.A)((0,E.A)({},o),n):o).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),r=i.expandIcon,l=i.expandedRowKeys,c=i.defaultExpandedRowKeys,d=i.defaultExpandAllRows,u=i.expandedRowRender,h=i.onExpand,m=i.onExpandedRowsChange,p=r||Be,f=i.childrenColumnName||"children",g=o.useMemo((function(){return u?"row":!!(e.expandable&&e.internalHooks===s&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===(0,M.A)(e)&&e[f]})))&&"nest"}),[!!u,t]),b=o.useState((function(){return c||(d?function(e,t,n){var o=[];return function e(i){(i||[]).forEach((function(i,r){o.push(t(i,r)),e(i[n])}))}(e),o}(t,n,f):[])})),v=(0,a.A)(b,2),y=v[0],w=v[1],C=o.useMemo((function(){return new Set(l||y||[])}),[l,y]),_=o.useCallback((function(e){var o,i=n(e,t.indexOf(e)),r=C.has(i);r?(C.delete(i),o=(0,tt.A)(C)):o=[].concat((0,tt.A)(C),[i]),w(o),h&&h(!r,e),m&&m(o)}),[n,C,t,h,m]);return[i,g,C,p,f,_]}(n,Q,ne),de=(0,a.A)(ce,6),ue=de[0],he=de[1],me=de[2],pe=de[3],fe=de[4],ge=de[5],be=null==g?void 0:g.x,ve=o.useState(0),ye=(0,a.A)(ve,2),we=ye[0],Ce=ye[1],_e=mt((0,E.A)((0,E.A)((0,E.A)({},n),ue),{},{expandable:!!ue.expandedRowRender,columnTitle:ue.columnTitle,expandedKeys:me,getRowKey:ne,onTriggerExpand:ge,expandIcon:pe,expandIconColumnIndex:ue.expandIconColumnIndex,direction:v,scrollWidth:ee&&U&&"number"==typeof be?be:null,clientWidth:we}),ee?$:null),Se=(0,a.A)(_e,4),Me=Se[0],Ee=Se[1],xe=Se[2],ke=Se[3],Re=null!=xe?xe:be,Le=o.useMemo((function(){return{columns:Me,flattenColumns:Ee}}),[Me,Ee]),Oe=o.useRef(),De=o.useRef(),He=o.useRef(),Pe=o.useRef();o.useImperativeHandle(t,(function(){return{nativeElement:Oe.current,scrollTo:function(e){var t,n;if(He.current instanceof HTMLElement){var o=e.index,i=e.top,r=e.key;if("number"!=typeof(n=i)||Number.isNaN(n)){var s,a=null!=r?r:ne(Q[o]);null===(s=He.current.querySelector('[data-row-key="'.concat(a,'"]')))||void 0===s||s.scrollIntoView()}else{var l;null===(l=He.current)||void 0===l||l.scrollTo({top:i})}}else null!==(t=He.current)&&void 0!==t&&t.scrollTo&&He.current.scrollTo(e)}}}));var Ne,ze,je,Ye=o.useRef(),$e=o.useState(!1),We=(0,a.A)($e,2),Ve=We[0],Ue=We[1],Ge=o.useState(!1),Ke=(0,a.A)(Ge,2),qe=Ke[0],Qe=Ke[1],Ze=o.useState(new Map),nt=(0,a.A)(Ze,2),ot=nt[0],rt=nt[1],at=D(Ee).map((function(e){return ot.get(e)})),lt=o.useMemo((function(){return at}),[at.join("_")]),ct=function(e,t,n){return(0,o.useMemo)((function(){var o=t.length,i=function(n,o,i){for(var r=[],s=0,a=n;a!==o;a+=i)r.push(s),t[a].fixed&&(s+=e[a]||0);return r},r=i(0,o,1),s=i(o-1,-1,-1).reverse();return"rtl"===n?{left:s,right:r}:{left:r,right:s}}),[e,t,n])}(lt,Ee,v),dt=g&&H(g.y),ut=g&&H(Re)||Boolean(ue.fixed),ht=ut&&Ee.some((function(e){return e.fixed})),gt=o.useRef(),bt=function(e,t){var n="object"===(0,M.A)(e)?e:{},i=n.offsetHeader,r=void 0===i?0:i,s=n.offsetSummary,a=void 0===s?0:s,l=n.offsetScroll,c=void 0===l?0:l,d=n.getContainer,u=(void 0===d?function(){return pt}:d)()||pt,h=!!e;return o.useMemo((function(){return{isSticky:h,stickyClassName:h?"".concat(t,"-sticky-holder"):"",offsetHeader:r,offsetSummary:a,offsetScroll:c,container:u}}),[h,c,r,a,t,u])}(q,i),vt=bt.isSticky,yt=bt.offsetHeader,Et=bt.offsetSummary,xt=bt.offsetScroll,kt=bt.stickyClassName,Tt=bt.container,Rt=o.useMemo((function(){return null==C?void 0:C(Q)}),[C,Q]),At=(dt||vt)&&o.isValidElement(Rt)&&Rt.type===B&&Rt.props.fixed;dt&&(ze={overflowY:Z?"scroll":"auto",maxHeight:g.y}),ut&&(Ne={overflowX:"auto"},dt||(ze={overflowY:"hidden"}),je={width:!0===Re?"auto":Re,minWidth:"100%"});var Lt=o.useCallback((function(e,t){rt((function(n){if(n.get(e)!==t){var o=new Map(n);return o.set(e,t),o}return n}))}),[]),Ot=function(){var e=(0,o.useRef)(null),t=(0,o.useRef)();function n(){window.clearTimeout(t.current)}return(0,o.useEffect)((function(){return n}),[]),[function(o){e.current=o,n(),t.current=window.setTimeout((function(){e.current=null,t.current=void 0}),100)},function(){return e.current}]}(),Dt=(0,a.A)(Ot,2),Ht=Dt[0],It=Dt[1];function Pt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var Nt=(0,l.A)((function(e){var t,n=e.currentTarget,o=e.scrollLeft,i="rtl"===v,r="number"==typeof o?o:n.scrollLeft,s=n||St;It()&&It()!==s||(Ht(s),Pt(r,De.current),Pt(r,He.current),Pt(r,Ye.current),Pt(r,null===(t=gt.current)||void 0===t?void 0:t.setScrollLeft));var a=n||De.current;if(a){var l=ee&&U&&"number"==typeof Re?Re:a.scrollWidth,c=a.clientWidth;if(l===c)return Ue(!1),void Qe(!1);i?(Ue(-r<l-c),Qe(-r>0)):(Ue(r>0),Qe(r<l-c))}})),Ft=(0,l.A)((function(e){Nt(e),null==z||z(e)})),zt=function(){var e;ut&&He.current?Nt({currentTarget:(0,K.rb)(He.current),scrollLeft:null===(e=He.current)||void 0===e?void 0:e.scrollLeft}):(Ue(!1),Qe(!1))},jt=o.useRef(!1);o.useEffect((function(){jt.current&&zt()}),[ut,m,Me.length]),o.useEffect((function(){jt.current=!0}),[]);var Yt=o.useState(0),$t=(0,a.A)(Yt,2),Bt=$t[0],Wt=$t[1],Vt=o.useState(!0),Ut=(0,a.A)(Vt,2),Gt=Ut[0],Kt=Ut[1];(0,c.A)((function(){var e,t;U&&ee||(He.current instanceof Element?Wt(Ie(He.current).width):Wt(Ie(Pe.current).width)),Kt((e="position",t="sticky",Array.isArray(e)||void 0===t?Ae(e):function(e,t){if(!Ae(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)))}),[]),o.useEffect((function(){ee&&V&&(V.body.current=He.current)}));var qt,Xt=o.useCallback((function(e){return o.createElement(o.Fragment,null,o.createElement(st,e),"top"===At&&o.createElement(W,e,Rt))}),[At,Rt]),Jt=o.useCallback((function(e){return o.createElement(W,e,Rt)}),[Rt]),Qt=te(["table"],"table"),Zt=o.useMemo((function(){return b||(ht?"max-content"===Re?"auto":"fixed":dt||vt||Ee.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[dt,ht,Ee,b,vt]),en={colWidths:lt,columCount:Ee.length,stickyOffsets:ct,onHeaderRow:N,fixHeader:dt,scroll:g},tn=o.useMemo((function(){return Z?null:"function"==typeof I?I():I}),[Z,I]),nn=o.createElement(Xe,{data:Q,measureColumnWidth:dt||ut||vt}),on=o.createElement(et,{colWidths:Ee.map((function(e){return e.width})),columns:Ee}),rn=null!=_?o.createElement("caption",{className:"".concat(i,"-caption")},_):void 0,sn=Fe(n,{data:!0}),an=Fe(n,{aria:!0});if(dt||vt){var ln;"function"==typeof oe?(ln=oe(Q,{scrollbarSize:Bt,ref:He,onScroll:Nt}),en.colWidths=Ee.map((function(e,t){var n=e.width,o=t===Ee.length-1?n-Bt:n;return"number"!=typeof o||Number.isNaN(o)?0:o}))):ln=o.createElement("div",{style:(0,E.A)((0,E.A)({},Ne),ze),onScroll:Ft,ref:He,className:T()("".concat(i,"-body"))},o.createElement(Qt,(0,f.A)({style:(0,E.A)((0,E.A)({},je),{},{tableLayout:Zt})},an),rn,on,nn,!At&&Rt&&o.createElement(W,{stickyOffsets:ct,flattenColumns:Ee},Rt)));var cn=(0,E.A)((0,E.A)((0,E.A)({noData:!Q.length,maxContentScroll:ut&&"max-content"===Re},en),Le),{},{direction:v,stickyClassName:kt,onScroll:Nt});qt=o.createElement(o.Fragment,null,!1!==L&&o.createElement(it,(0,f.A)({},cn,{stickyTopOffset:yt,className:"".concat(i,"-header"),ref:De}),Xt),ln,At&&"top"!==At&&o.createElement(it,(0,f.A)({},cn,{stickyBottomOffset:Et,className:"".concat(i,"-summary"),ref:Ye}),Jt),vt&&He.current&&He.current instanceof Element&&o.createElement(wt,{ref:gt,offsetScroll:xt,scrollBodyRef:He,onScroll:Nt,container:Tt,direction:v}))}else qt=o.createElement("div",{style:(0,E.A)((0,E.A)({},Ne),ze),className:T()("".concat(i,"-content")),onScroll:Nt,ref:He},o.createElement(Qt,(0,f.A)({style:(0,E.A)((0,E.A)({},je),{},{tableLayout:Zt})},an),rn,on,!1!==L&&o.createElement(st,(0,f.A)({},en,Le)),nn,Rt&&o.createElement(W,{stickyOffsets:ct,flattenColumns:Ee},Rt)));var dn=o.createElement("div",(0,f.A)({className:T()(i,r,(0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)({},"".concat(i,"-rtl"),"rtl"===v),"".concat(i,"-ping-left"),Ve),"".concat(i,"-ping-right"),qe),"".concat(i,"-layout-fixed"),"fixed"===b),"".concat(i,"-fixed-header"),dt),"".concat(i,"-fixed-column"),ht),"".concat(i,"-fixed-column-gapped"),ht&&ke),"".concat(i,"-scroll-horizontal"),ut),"".concat(i,"-has-fix-left"),Ee[0]&&Ee[0].fixed),"".concat(i,"-has-fix-right"),Ee[Ee.length-1]&&"right"===Ee[Ee.length-1].fixed)),style:h,id:k,ref:Oe},sn),y&&o.createElement(ft,{className:"".concat(i,"-title")},y(Q)),o.createElement("div",{ref:Pe,className:"".concat(i,"-container")},qt),w&&o.createElement(ft,{className:"".concat(i,"-footer")},w(Q)));ut&&(dn=o.createElement(Te,{onResize:function(e){var t,n=e.width;null===(t=gt.current)||void 0===t||t.checkScrollBarVisible();var o=Oe.current?Oe.current.offsetWidth:n;ee&&G&&Oe.current&&(o=G(Oe.current,o)||o),o!==we&&(zt(),Ce(o))}},dn));var un=function(e,t,n){var o=e.map((function(o,i){return F(i,i,e,t,n)}));return(0,R.A)((function(){return o}),[o],(function(e,t){return!(0,d.A)(e,t)}))}(Ee,ct,v),hn=o.useMemo((function(){return{scrollX:Re,prefixCls:i,getComponent:te,scrollbarSize:Bt,direction:v,fixedInfoList:un,isSticky:vt,supportSticky:Gt,componentWidth:we,fixHeader:dt,fixColumn:ht,horizonScroll:ut,tableLayout:Zt,rowClassName:u,expandedRowClassName:ue.expandedRowClassName,expandIcon:pe,expandableType:he,expandRowByClick:ue.expandRowByClick,expandedRowRender:ue.expandedRowRender,expandedRowOffset:ue.expandedRowOffset,onTriggerExpand:ge,expandIconColumnIndex:ue.expandIconColumnIndex,indentSize:ue.indentSize,allColumnsFixedLeft:Ee.every((function(e){return"left"===e.fixed})),emptyNode:tn,columns:Me,flattenColumns:Ee,onColumnResize:Lt,colWidths:lt,hoverStartRow:se,hoverEndRow:ae,onHover:le,rowExpandable:ue.rowExpandable,onRow:P,getRowKey:ne,expandedKeys:me,childrenColumnName:fe,rowHoverable:J}}),[Re,i,te,Bt,v,un,vt,Gt,we,dt,ht,ut,Zt,u,ue.expandedRowClassName,pe,he,ue.expandRowByClick,ue.expandedRowRender,ue.expandedRowOffset,ge,ue.expandIconColumnIndex,ue.indentSize,tn,Me,Ee,Lt,lt,se,ae,le,ue.rowExpandable,P,ne,me,fe,J]);return o.createElement(S.Provider,{value:hn},dn)}var xt=o.forwardRef(Et);function kt(e){return w(xt,e)}var Tt=kt();Tt.EXPAND_COLUMN=r,Tt.INTERNAL_HOOKS=s,Tt.Column=function(e){return null},Tt.ColumnGroup=function(e){return null},Tt.Summary=V;const Rt=Tt;var At=o.forwardRef((function(e,t){var n=e.height,i=e.offsetY,r=e.offsetX,s=e.children,a=e.prefixCls,l=e.onInnerResize,c=e.innerProps,d=e.rtl,u=e.extra,h={},m={display:"flex",flexDirection:"column"};return void 0!==i&&(h={height:n,position:"relative",overflow:"hidden"},m=(0,E.A)((0,E.A)({},m),{},(0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)({transform:"translateY(".concat(i,"px)")},d?"marginRight":"marginLeft",-r),"position","absolute"),"left",0),"right",0),"top",0))),o.createElement("div",{style:h},o.createElement(Te,{onResize:function(e){e.offsetHeight&&l&&l()}},o.createElement("div",(0,f.A)({style:m,className:T()((0,x.A)({},"".concat(a,"-holder-inner"),a)),ref:t},c),s,u)))}));At.displayName="Filler";const Lt=At;function Ot(e){var t=e.children,n=e.setRef,i=o.useCallback((function(e){n(e)}),[]);return o.cloneElement(t,{ref:i})}const Dt="object"===("undefined"==typeof navigator?"undefined":(0,M.A)(navigator))&&/Firefox/i.test(navigator.userAgent),Ht=function(e,t,n,i){var r=(0,o.useRef)(!1),s=(0,o.useRef)(null),a=(0,o.useRef)({top:e,bottom:t,left:n,right:i});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=i,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&a.current.left||t>0&&a.current.right:t<0&&a.current.top||t>0&&a.current.bottom;return n&&o?(clearTimeout(s.current),r.current=!1):o&&!r.current||(clearTimeout(s.current),r.current=!0,s.current=setTimeout((function(){r.current=!1}),50)),!r.current&&o}};const It=function(){function e(){(0,ye.A)(this,e),(0,x.A)(this,"maps",void 0),(0,x.A)(this,"id",0),(0,x.A)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,we.A)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function Pt(e){var t=parseFloat(e);return isNaN(t)?0:t}var Nt=14/15;function Ft(e){return Math.floor(Math.pow(e,.5))}function zt(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var jt=o.forwardRef((function(e,t){var n=e.prefixCls,i=e.rtl,r=e.scrollOffset,s=e.scrollRange,l=e.onStartMove,c=e.onStopMove,d=e.onScroll,u=e.horizontal,h=e.spinSize,m=e.containerSize,p=e.style,f=e.thumbStyle,g=e.showScrollBar,b=o.useState(!1),v=(0,a.A)(b,2),y=v[0],w=v[1],C=o.useState(null),_=(0,a.A)(C,2),S=_[0],M=_[1],k=o.useState(null),R=(0,a.A)(k,2),A=R[0],L=R[1],O=!i,D=o.useRef(),H=o.useRef(),I=o.useState(g),P=(0,a.A)(I,2),N=P[0],F=P[1],z=o.useRef(),j=function(){!0!==g&&!1!==g&&(clearTimeout(z.current),F(!0),z.current=setTimeout((function(){F(!1)}),3e3))},Y=s-m||0,$=m-h||0,B=o.useMemo((function(){return 0===r||0===Y?0:r/Y*$}),[r,Y,$]),W=o.useRef({top:B,dragging:y,pageY:S,startTop:A});W.current={top:B,dragging:y,pageY:S,startTop:A};var V=function(e){w(!0),M(zt(e,u)),L(W.current.top),l(),e.stopPropagation(),e.preventDefault()};o.useEffect((function(){var e=function(e){e.preventDefault()},t=D.current,n=H.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",V,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",V)}}),[]);var U=o.useRef();U.current=Y;var G=o.useRef();G.current=$,o.useEffect((function(){if(y){var e,t=function(t){var n=W.current,o=n.dragging,i=n.pageY,r=n.startTop;bt.A.cancel(e);var s=D.current.getBoundingClientRect(),a=m/(u?s.width:s.height);if(o){var l=(zt(t,u)-i)*a,c=r;!O&&u?c-=l:c+=l;var h=U.current,p=G.current,f=p?c/p:0,g=Math.ceil(f*h);g=Math.max(g,0),g=Math.min(g,h),e=(0,bt.A)((function(){d(g,u)}))}},n=function(){w(!1),c()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),bt.A.cancel(e)}}}),[y]),o.useEffect((function(){return j(),function(){clearTimeout(z.current)}}),[r]),o.useImperativeHandle(t,(function(){return{delayHidden:j}}));var K="".concat(n,"-scrollbar"),q={position:"absolute",visibility:N?null:"hidden"},X={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(q,{height:8,left:0,right:0,bottom:0}),Object.assign(X,(0,x.A)({height:"100%",width:h},O?"left":"right",B))):(Object.assign(q,(0,x.A)({width:8,top:0,bottom:0},O?"right":"left",0)),Object.assign(X,{width:"100%",height:h,top:B})),o.createElement("div",{ref:D,className:T()(K,(0,x.A)((0,x.A)((0,x.A)({},"".concat(K,"-horizontal"),u),"".concat(K,"-vertical"),!u),"".concat(K,"-visible"),N)),style:(0,E.A)((0,E.A)({},q),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:j},o.createElement("div",{ref:H,className:T()("".concat(K,"-thumb"),(0,x.A)({},"".concat(K,"-thumb-moving"),y)),style:(0,E.A)((0,E.A)({},X),f),onMouseDown:V}))}));const Yt=jt;function $t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var Bt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Wt=[],Vt={overflowY:"auto",overflowAnchor:"none"};function Ut(e,t){var n=e.prefixCls,i=void 0===n?"rc-virtual-list":n,r=e.className,s=e.height,l=e.itemHeight,d=e.fullHeight,h=void 0===d||d,m=e.style,p=e.data,g=e.children,b=e.itemKey,v=e.virtual,y=e.direction,w=e.scrollWidth,C=e.component,_=void 0===C?"div":C,S=e.onScroll,k=e.onVirtualScroll,R=e.onVisibleChange,A=e.innerProps,L=e.extraRender,O=e.styles,D=e.showScrollBar,H=void 0===D?"optional":D,P=(0,j.A)(e,Bt),N=o.useCallback((function(e){return"function"==typeof b?b(e):null==e?void 0:e[b]}),[b]),F=function(e){var t=o.useState(0),n=(0,a.A)(t,2),i=n[0],r=n[1],s=(0,o.useRef)(new Map),l=(0,o.useRef)(new It),c=(0,o.useRef)(0);function d(){c.current+=1}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;s.current.forEach((function(t,n){if(t&&t.offsetParent){var o=t.offsetHeight,i=getComputedStyle(t),r=i.marginTop,s=i.marginBottom,a=o+Pt(r)+Pt(s);l.current.get(n)!==a&&(l.current.set(n,a),e=!0)}})),e&&r((function(e){return e+1}))};if(e)t();else{c.current+=1;var n=c.current;Promise.resolve().then((function(){n===c.current&&t()}))}}return(0,o.useEffect)((function(){return d}),[]),[function(t,n){var o=e(t);s.current.get(o);n?(s.current.set(o,n),u()):s.current.delete(o)},u,l.current,i]}(N),z=(0,a.A)(F,4),Y=z[0],$=z[1],B=z[2],W=z[3],V=!(!1===v||!s||!l),U=o.useMemo((function(){return Object.values(B.maps).reduce((function(e,t){return e+t}),0)}),[B.id,B.maps]),G=V&&p&&(Math.max(l*p.length,U)>s||!!w),K="rtl"===y,q=T()(i,(0,x.A)({},"".concat(i,"-rtl"),K),r),X=p||Wt,J=(0,o.useRef)(),Q=(0,o.useRef)(),Z=(0,o.useRef)(),ee=(0,o.useState)(0),te=(0,a.A)(ee,2),ne=te[0],oe=te[1],ie=(0,o.useState)(0),re=(0,a.A)(ie,2),se=re[0],ae=re[1],le=(0,o.useState)(!1),ce=(0,a.A)(le,2),de=ce[0],ue=ce[1],he=function(){ue(!0)},me=function(){ue(!1)},pe={getKey:N};function fe(e){oe((function(t){var n=function(e){var t=e;return Number.isNaN(Ie.current)||(t=Math.min(t,Ie.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return J.current.scrollTop=n,n}))}var ge=(0,o.useRef)({start:0,end:X.length}),be=(0,o.useRef)(),ve=function(e,t,n){var i=o.useState(e),r=(0,a.A)(i,2),s=r[0],l=r[1],c=o.useState(null),d=(0,a.A)(c,2),u=d[0],h=d[1];return o.useEffect((function(){var o=function(e,t,n){var o,i,r=e.length,s=t.length;if(0===r&&0===s)return null;r<s?(o=e,i=t):(o=t,i=e);var a={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):a}for(var c=null,d=1!==Math.abs(r-s),u=0;u<i.length;u+=1){var h=l(o[u]);if(h!==l(i[u])){c=u,d=d||h!==l(i[u+1]);break}}return null===c?null:{index:c,multiple:d}}(s||[],e||[],t);void 0!==(null==o?void 0:o.index)&&(null==n||n(o.index),h(e[o.index])),l(e)}),[e]),[u]}(X,N),ye=(0,a.A)(ve,1)[0];be.current=ye;var we=o.useMemo((function(){if(!V)return{scrollHeight:void 0,start:0,end:X.length-1,offset:void 0};var e;if(!G)return{scrollHeight:(null===(e=Q.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:X.length-1,offset:void 0};for(var t,n,o,i=0,r=X.length,a=0;a<r;a+=1){var c=X[a],d=N(c),u=B.get(d),h=i+(void 0===u?l:u);h>=ne&&void 0===t&&(t=a,n=i),h>ne+s&&void 0===o&&(o=a),i=h}return void 0===t&&(t=0,n=0,o=Math.ceil(s/l)),void 0===o&&(o=X.length-1),{scrollHeight:i,start:t,end:o=Math.min(o+1,X.length-1),offset:n}}),[G,V,ne,X,W,s]),Ce=we.scrollHeight,_e=we.start,Se=we.end,Me=we.offset;ge.current.start=_e,ge.current.end=Se,o.useLayoutEffect((function(){var e=B.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),o=X[_e];if(o&&void 0===n&&N(o)===t){var i=B.get(t)-l;fe((function(e){return e+i}))}}B.resetRecord()}),[Ce]);var Ee=o.useState({width:0,height:s}),xe=(0,a.A)(Ee,2),ke=xe[0],Re=xe[1],Ae=(0,o.useRef)(),Le=(0,o.useRef)(),Oe=o.useMemo((function(){return $t(ke.width,w)}),[ke.width,w]),De=o.useMemo((function(){return $t(ke.height,Ce)}),[ke.height,Ce]),He=Ce-s,Ie=(0,o.useRef)(He);Ie.current=He;var Pe=ne<=0,Ne=ne>=He,Fe=se<=0,ze=se>=w,je=Ht(Pe,Ne,Fe,ze),Ye=function(){return{x:K?-se:se,y:ne}},$e=(0,o.useRef)(Ye()),Be=(0,I._q)((function(e){if(k){var t=(0,E.A)((0,E.A)({},Ye()),e);$e.current.x===t.x&&$e.current.y===t.y||(k(t),$e.current=t)}}));function We(e,t){var n=e;t?((0,u.flushSync)((function(){ae(n)})),Be()):fe(n)}var Ve=function(e){var t=e,n=w?w-ke.width:0;return t=Math.max(t,0),Math.min(t,n)},Ue=(0,I._q)((function(e,t){t?((0,u.flushSync)((function(){ae((function(t){return Ve(t+(K?-e:e))}))})),Be()):fe((function(t){return t+e}))})),Ge=function(e,t,n,i,r,s,a){var l=(0,o.useRef)(0),c=(0,o.useRef)(null),d=(0,o.useRef)(null),u=(0,o.useRef)(!1),h=Ht(t,n,i,r),m=(0,o.useRef)(null),p=(0,o.useRef)(null);return[function(t){if(e){bt.A.cancel(p.current),p.current=(0,bt.A)((function(){m.current=null}),2);var n=t.deltaX,o=t.deltaY,i=t.shiftKey,r=n,f=o;("sx"===m.current||!m.current&&i&&o&&!n)&&(r=o,f=0,m.current="sx");var g=Math.abs(r),b=Math.abs(f);null===m.current&&(m.current=s&&g>b?"x":"y"),"y"===m.current?function(e,t){if(bt.A.cancel(c.current),!h(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,d.current=t,Dt||n.preventDefault(),c.current=(0,bt.A)((function(){var e=u.current?10:1;a(l.current*e,!1),l.current=0})))}}(t,f):function(e,t){a(t,!0),Dt||e.preventDefault()}(t,r)}},function(t){e&&(u.current=t.detail===d.current)}]}(V,Pe,Ne,Fe,ze,!!w,Ue),Ke=(0,a.A)(Ge,2),qe=Ke[0],Xe=Ke[1];!function(e,t,n){var i,r=(0,o.useRef)(!1),s=(0,o.useRef)(0),a=(0,o.useRef)(0),l=(0,o.useRef)(null),d=(0,o.useRef)(null),u=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),i=s.current-t,l=a.current-o,c=Math.abs(i)>Math.abs(l);c?s.current=t:a.current=o;var u=n(c,c?i:l,!1,e);u&&e.preventDefault(),clearInterval(d.current),u&&(d.current=setInterval((function(){c?i*=Nt:l*=Nt;var e=Math.floor(c?i:l);(!n(c,e,!0)||Math.abs(e)<=.1)&&clearInterval(d.current)}),16))}},h=function(){r.current=!1,i()},m=function(e){i(),1!==e.touches.length||r.current||(r.current=!0,s.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u,{passive:!1}),l.current.addEventListener("touchend",h,{passive:!0}))};i=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",h))},(0,c.A)((function(){return e&&t.current.addEventListener("touchstart",m,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",m),i(),clearInterval(d.current)}}),[e])}(V,J,(function(e,t,n,o){var i=o;return!(je(e,t,n)||i&&i._virtualHandled||(i&&(i._virtualHandled=!0),qe({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))})),function(e,t){o.useEffect((function(){var n=t.current;if(e&&n){var o,i,r=!1,s=function(){bt.A.cancel(o)},a=function e(){s(),o=(0,bt.A)((function(){var t;t=i,fe((function(e){return e+t})),e()}))},l=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,r=!0)}},c=function(){r=!1,s()},d=function(e){if(r){var t=zt(e,!1),o=n.getBoundingClientRect(),l=o.top,c=o.bottom;t<=l?(i=-Ft(l-t),a()):t>=c?(i=Ft(t-c),a()):s()}};return n.addEventListener("mousedown",l),n.ownerDocument.addEventListener("mouseup",c),n.ownerDocument.addEventListener("mousemove",d),function(){n.removeEventListener("mousedown",l),n.ownerDocument.removeEventListener("mouseup",c),n.ownerDocument.removeEventListener("mousemove",d),s()}}}),[e])}(G,J),(0,c.A)((function(){function e(e){var t=Pe&&e.detail<0,n=Ne&&e.detail>0;!V||t||n||e.preventDefault()}var t=J.current;return t.addEventListener("wheel",qe,{passive:!1}),t.addEventListener("DOMMouseScroll",Xe,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",qe),t.removeEventListener("DOMMouseScroll",Xe),t.removeEventListener("MozMousePixelScroll",e)}}),[V,Pe,Ne]),(0,c.A)((function(){if(w){var e=Ve(se);ae(e),Be({x:e})}}),[ke.width,w]);var Je=function(){var e,t;null===(e=Ae.current)||void 0===e||e.delayHidden(),null===(t=Le.current)||void 0===t||t.delayHidden()},Qe=function(e,t,n,i,r,s,l,d){var u=o.useRef(),h=o.useState(null),m=(0,a.A)(h,2),p=m[0],f=m[1];return(0,c.A)((function(){if(p&&p.times<10){if(!e.current)return void f((function(e){return(0,E.A)({},e)}));s();var o=p.targetAlign,a=p.originAlign,c=p.index,d=p.offset,u=e.current.clientHeight,h=!1,m=o,g=null;if(u){for(var b=o||a,v=0,y=0,w=0,C=Math.min(t.length-1,c),_=0;_<=C;_+=1){var S=r(t[_]);y=v;var M=n.get(S);v=w=y+(void 0===M?i:M)}for(var x="top"===b?d:u-d,k=C;k>=0;k-=1){var T=r(t[k]),R=n.get(T);if(void 0===R){h=!0;break}if((x-=R)<=0)break}switch(b){case"top":g=y-d;break;case"bottom":g=w-u+d;break;default:var A=e.current.scrollTop;y<A?m="top":w>A+u&&(m="bottom")}null!==g&&l(g),g!==p.lastTop&&(h=!0)}h&&f((0,E.A)((0,E.A)({},p),{},{times:p.times+1,targetAlign:m,lastTop:g}))}}),[p,e.current]),function(e){if(null!=e){if(bt.A.cancel(u.current),"number"==typeof e)l(e);else if(e&&"object"===(0,M.A)(e)){var n,o=e.align;n="index"in e?e.index:t.findIndex((function(t){return r(t)===e.key}));var i=e.offset;f({times:0,index:n,offset:void 0===i?0:i,originAlign:o})}}else d()}}(J,X,B,l,N,(function(){return $(!0)}),fe,Je);o.useImperativeHandle(t,(function(){return{nativeElement:Z.current,getScrollInfo:Ye,scrollTo:function(e){var t;(t=e)&&"object"===(0,M.A)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&ae(Ve(e.left)),Qe(e.top)):Qe(e)}}})),(0,c.A)((function(){if(R){var e=X.slice(_e,Se+1);R(e,X)}}),[_e,Se,X]);var Ze=function(e,t,n,i){var r=o.useMemo((function(){return[new Map,[]]}),[e,n.id,i]),s=(0,a.A)(r,2),l=s[0],c=s[1];return function(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,s=l.get(o),a=l.get(r);if(void 0===s||void 0===a)for(var d=e.length,u=c.length;u<d;u+=1){var h,m=e[u],p=t(m);l.set(p,u);var f=null!==(h=n.get(p))&&void 0!==h?h:i;if(c[u]=(c[u-1]||0)+f,p===o&&(s=u),p===r&&(a=u),void 0!==s&&void 0!==a)break}return{top:c[s-1]||0,bottom:c[a]}}}(X,N,B,l),et=null==L?void 0:L({start:_e,end:Se,virtual:G,offsetX:se,offsetY:Me,rtl:K,getSize:Ze}),tt=function(e,t,n,i,r,s,a,l){var c=l.getKey;return e.slice(t,n+1).map((function(e,n){var l=a(e,t+n,{style:{width:i},offsetX:r}),d=c(e);return o.createElement(Ot,{key:d,setRef:function(t){return s(e,t)}},l)}))}(X,_e,Se,w,se,Y,g,pe),nt=null;s&&(nt=(0,E.A)((0,x.A)({},h?"height":"maxHeight",s),Vt),V&&(nt.overflowY="hidden",w&&(nt.overflowX="hidden"),de&&(nt.pointerEvents="none")));var ot={};return K&&(ot.dir="rtl"),o.createElement("div",(0,f.A)({ref:Z,style:(0,E.A)((0,E.A)({},m),{},{position:"relative"}),className:q},ot,P),o.createElement(Te,{onResize:function(e){Re({width:e.offsetWidth,height:e.offsetHeight})}},o.createElement(_,{className:"".concat(i,"-holder"),style:nt,ref:J,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==ne&&fe(t),null==S||S(e),Be()},onMouseEnter:Je},o.createElement(Lt,{prefixCls:i,height:Ce,offsetX:se,offsetY:Me,scrollWidth:w,onInnerResize:$,ref:Q,innerProps:A,rtl:K,extra:et},tt))),G&&Ce>s&&o.createElement(Yt,{ref:Ae,prefixCls:i,scrollOffset:ne,scrollRange:Ce,rtl:K,onScroll:We,onStartMove:he,onStopMove:me,spinSize:De,containerSize:ke.height,style:null==O?void 0:O.verticalScrollBar,thumbStyle:null==O?void 0:O.verticalScrollBarThumb,showScrollBar:H}),G&&w>ke.width&&o.createElement(Yt,{ref:Le,prefixCls:i,scrollOffset:se,scrollRange:w,rtl:K,onScroll:We,onStartMove:he,onStopMove:me,spinSize:Oe,containerSize:ke.width,horizontal:!0,style:null==O?void 0:O.horizontalScrollBar,thumbStyle:null==O?void 0:O.horizontalScrollBarThumb,showScrollBar:H}))}var Gt=o.forwardRef(Ut);Gt.displayName="List";const Kt=Gt;var qt=m(null),Xt=m(null);const Jt=function(e){var t=e.rowInfo,n=e.column,i=e.colIndex,r=e.indent,s=e.index,a=e.component,l=e.renderIndex,c=e.record,d=e.style,u=e.className,h=e.inverse,m=e.getHeight,g=n.render,b=n.dataIndex,v=n.className,y=n.width,w=p(Xt,["columnsOffset"]).columnsOffset,C=Ve(t,n,i,r,s),_=C.key,S=C.fixedInfo,M=C.appendCellNode,x=C.additionalCellProps,k=x.style,R=x.colSpan,A=void 0===R?1:R,L=x.rowSpan,O=void 0===L?1:L,D=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(i-1,A,w),H=A>1?y-D:0,I=(0,E.A)((0,E.A)((0,E.A)({},k),d),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:H,pointerEvents:"auto"}),P=o.useMemo((function(){return h?O<=1:0===A||0===O||O>1}),[O,A,h]);P?I.visibility="hidden":h&&(I.height=null==m?void 0:m(O));var F=P?function(){return null}:g,z={};return 0!==O&&0!==A||(z.rowSpan=1,z.colSpan=1),o.createElement(N,(0,f.A)({className:T()(v,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:_,record:c,index:s,renderIndex:l,dataIndex:b,render:F,shouldCellUpdate:n.shouldCellUpdate},S,{appendNode:M,additionalProps:(0,E.A)((0,E.A)({},x),{},{style:I},z)}))};var Qt=["data","index","className","rowKey","style","extra","getHeight"],Zt=o.forwardRef((function(e,t){var n,i=e.data,r=e.index,s=e.className,a=e.rowKey,l=e.style,c=e.extra,d=e.getHeight,u=(0,j.A)(e,Qt),h=i.record,m=i.indent,g=i.index,b=p(S,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),v=b.scrollX,y=b.flattenColumns,w=b.prefixCls,C=b.fixColumn,_=b.componentWidth,M=p(qt,["getComponent"]).getComponent,k=Ye(h,a,r,m),R=M(["body","row"],"div"),A=M(["body","cell"],"div"),L=k.rowSupportExpand,O=k.expanded,D=k.rowProps,H=k.expandedRowRender,I=k.expandedRowClassName;if(L&&O){var P=H(h,r,m+1,O),F=We(I,h,r,m),z={};C&&(z={style:(0,x.A)({},"--virtual-width","".concat(_,"px"))});var Y="".concat(w,"-expanded-row-cell");n=o.createElement(R,{className:T()("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(m+1),F)},o.createElement(N,{component:A,prefixCls:w,className:T()(Y,(0,x.A)({},"".concat(Y,"-fixed"),C)),additionalProps:z},P))}var $=(0,E.A)((0,E.A)({},l),{},{width:v});c&&($.position="absolute",$.pointerEvents="none");var B=o.createElement(R,(0,f.A)({},D,u,{"data-row-key":a,ref:L?null:t,className:T()(s,"".concat(w,"-row"),null==D?void 0:D.className,(0,x.A)({},"".concat(w,"-row-extra"),c)),style:(0,E.A)((0,E.A)({},$),null==D?void 0:D.style)}),y.map((function(e,t){return o.createElement(Jt,{key:t,component:A,rowInfo:k,column:e,colIndex:t,indent:m,index:r,renderIndex:g,record:h,inverse:c,getHeight:d})})));return L?o.createElement("div",{ref:t},B,n):B}));const en=C(Zt);var tn=o.forwardRef((function(e,t){var n=e.data,i=e.onScroll,r=p(S,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),s=r.flattenColumns,l=r.onColumnResize,c=r.getRowKey,d=r.expandedKeys,u=r.prefixCls,h=r.childrenColumnName,m=r.scrollX,f=r.direction,g=p(qt),b=g.sticky,v=g.scrollY,y=g.listItemHeight,w=g.getComponent,C=g.onScroll,_=o.useRef(),E=je(n,h,d,c),x=o.useMemo((function(){var e=0;return s.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[s]),k=o.useMemo((function(){return x.map((function(e){return e[2]}))}),[x]);o.useEffect((function(){x.forEach((function(e){var t=(0,a.A)(e,2),n=t[0],o=t[1];l(n,o)}))}),[x]),o.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=_.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=_.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=_.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=_.current)||void 0===t||t.scrollTo({left:e})}}),t}));var T=function(e,t){var n,o=null===(n=E[t])||void 0===n?void 0:n.record,i=e.onCell;if(i){var r,s=i(o,t);return null!==(r=null==s?void 0:s.rowSpan)&&void 0!==r?r:1}return 1},R=o.useMemo((function(){return{columnsOffset:k}}),[k]),A="".concat(u,"-tbody"),L=w(["body","wrapper"]),O={};return b&&(O.position="sticky",O.bottom=0,"object"===(0,M.A)(b)&&b.offsetScroll&&(O.bottom=b.offsetScroll)),o.createElement(Xt.Provider,{value:R},o.createElement(Kt,{fullHeight:!1,ref:_,prefixCls:"".concat(A,"-virtual"),styles:{horizontalScrollBar:O},className:A,height:v,itemHeight:y||24,data:E,itemKey:function(e){return c(e.record)},component:L,scrollWidth:m,direction:f,onVirtualScroll:function(e){var t,n=e.x;i({currentTarget:null===(t=_.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:C,extraRender:function(e){var t=e.start,n=e.end,i=e.getSize,r=e.offsetY;if(n<0)return null;for(var a=s.filter((function(e){return 0===T(e,t)})),l=t,d=function(e){if(!(a=a.filter((function(t){return 0===T(t,e)}))).length)return l=e,1},u=t;u>=0&&!d(u);u-=1);for(var h=s.filter((function(e){return 1!==T(e,n)})),m=n,p=function(e){if(!(h=h.filter((function(t){return 1!==T(t,e)}))).length)return m=Math.max(e-1,n),1},f=n;f<E.length&&!p(f);f+=1);for(var g=[],b=function(e){if(!E[e])return 1;s.some((function(t){return T(t,e)>1}))&&g.push(e)},v=l;v<=m;v+=1)b(v);return g.map((function(e){var t=E[e],n=c(t.record,e),s=i(n);return o.createElement(en,{key:e,data:t,rowKey:n,index:e,style:{top:-r+s.top},extra:!0,getHeight:function(t){var o=e+t-1,r=c(E[o].record,o),s=i(n,r);return s.bottom-s.top}})}))}},(function(e,t,n){var i=c(e.record,t);return o.createElement(en,{data:e,rowKey:i,index:t,style:n.style})})))}));const nn=C(tn);var on=function(e,t){var n=t.ref,i=t.onScroll;return o.createElement(nn,{ref:n,data:e,onScroll:i})};function rn(e,t){var n=e.data,i=e.columns,r=e.scroll,a=e.sticky,l=e.prefixCls,c=void 0===l?Ct:l,d=e.className,u=e.listItemHeight,h=e.components,m=e.onScroll,p=r||{},g=p.x,b=p.y;"number"!=typeof g&&(g=1),"number"!=typeof b&&(b=500);var v=(0,I._q)((function(e,t){return(0,A.A)(h,e)||t})),y=(0,I._q)(m),w=o.useMemo((function(){return{sticky:a,scrollY:b,listItemHeight:u,getComponent:v,onScroll:y}}),[a,b,u,v,y]);return o.createElement(qt.Provider,{value:w},o.createElement(Rt,(0,f.A)({},e,{className:T()(d,"".concat(c,"-virtual")),scroll:(0,E.A)((0,E.A)({},r),{},{x:g}),components:(0,E.A)((0,E.A)({},h),{},{body:null!=n&&n.length?on:void 0}),columns:i,internalHooks:s,tailor:!0,ref:t})))}var sn=o.forwardRef(rn);function an(e){return w(sn,e)}an();const ln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var cn=n(45748),dn=n(61053);function un(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function hn(e){return function(e){return un(e)instanceof ShadowRoot}(e)?un(e):null}function mn(e){return"object"===(0,M.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,M.A)(e.icon)||"function"==typeof e.icon)}function pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var o,i=e[n];return"class"===n?(t.className=i,delete t.class):(delete t[n],t[(o=n,o.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i),t}),{})}function fn(e,t,n){return n?o.createElement(e.tag,(0,E.A)((0,E.A)({key:t},pn(e.attrs)),n),(e.children||[]).map((function(n,o){return fn(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))):o.createElement(e.tag,(0,E.A)({key:t},pn(e.attrs)),(e.children||[]).map((function(n,o){return fn(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})))}function gn(e){return(0,cn.cM)(e)[0]}function bn(e){return e?Array.isArray(e)?e:[e]:[]}var vn=["icon","className","onClick","style","primaryColor","secondaryColor"],yn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},wn=function(e){var t,n,i,r,s,a,l,c,d=e.icon,u=e.className,h=e.onClick,m=e.style,p=e.primaryColor,f=e.secondaryColor,g=(0,j.A)(e,vn),b=o.useRef(),v=yn;if(p&&(v={primaryColor:p,secondaryColor:f||gn(p)}),t=b,n=(0,o.useContext)(dn.A),i=n.csp,r=n.prefixCls,s=n.layer,a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",r&&(a=a.replace(/anticon/g,r)),s&&(a="@layer ".concat(s," {\n").concat(a,"\n}")),(0,o.useEffect)((function(){var e=hn(t.current);(0,Oe.BD)(a,"@ant-design-icons",{prepend:!s,csp:i,attachTo:e})}),[]),l=mn(d),c="icon should be icon definiton, but got ".concat(d),(0,L.Ay)(l,"[@ant-design/icons] ".concat(c)),!mn(d))return null;var y=d;return y&&"function"==typeof y.icon&&(y=(0,E.A)((0,E.A)({},y),{},{icon:y.icon(v.primaryColor,v.secondaryColor)})),fn(y.icon,"svg-".concat(y.name),(0,E.A)((0,E.A)({className:u,onClick:h,style:m,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:b}))};wn.displayName="IconReact",wn.getTwoToneColors=function(){return(0,E.A)({},yn)},wn.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;yn.primaryColor=t,yn.secondaryColor=n||gn(t),yn.calculated=!!n};const Cn=wn;function _n(e){var t=bn(e),n=(0,a.A)(t,2),o=n[0],i=n[1];return Cn.setTwoToneColors({primaryColor:o,secondaryColor:i})}var Sn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];_n(cn.z1.primary);var Mn=o.forwardRef((function(e,t){var n=e.className,i=e.icon,r=e.spin,s=e.rotate,l=e.tabIndex,c=e.onClick,d=e.twoToneColor,u=(0,j.A)(e,Sn),h=o.useContext(dn.A),m=h.prefixCls,p=void 0===m?"anticon":m,g=h.rootClassName,b=T()(g,p,(0,x.A)((0,x.A)({},"".concat(p,"-").concat(i.name),!!i.name),"".concat(p,"-spin"),!!r||"loading"===i.name),n),v=l;void 0===v&&c&&(v=-1);var y=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,w=bn(d),C=(0,a.A)(w,2),_=C[0],S=C[1];return o.createElement("span",(0,f.A)({role:"img","aria-label":i.name},u,{ref:t,tabIndex:v,onClick:c,className:b}),o.createElement(Cn,{icon:i,primaryColor:_,secondaryColor:S,style:y}))}));Mn.displayName="AntdIcon",Mn.getTwoToneColor=function(){var e=Cn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Mn.setTwoToneColor=_n;const En=Mn;var xn=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:ln}))};const kn=o.forwardRef(xn);var Tn=o.createContext(null),Rn=o.createContext({}),An=function(e){for(var t=e.prefixCls,n=e.level,i=e.isStart,r=e.isEnd,s="".concat(t,"-indent-unit"),a=[],l=0;l<n;l+=1)a.push(o.createElement("span",{key:l,className:T()(s,(0,x.A)((0,x.A)({},"".concat(s,"-start"),i[l]),"".concat(s,"-end"),r[l]))}));return o.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},a)};const Ln=o.memo(An);function On(e,t){return e[t]}function Dn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var Hn=["children"];function In(e,t){return"".concat(e,"-").concat(t)}function Pn(e,t){return null!=e?e:t}function Nn(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function Fn(e){return function e(t){return G(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return(0,L.Ay)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,o=t.props,i=o.children,r=(0,j.A)(o,Hn),s=(0,E.A)({key:n},r),a=e(i);return a.length&&(s.children=a),s})).filter((function(e){return e}))}(e)}function zn(e,t,n){var o=Nn(n),i=o._title,r=o.key,s=o.children,a=new Set(!0===t?[]:t),l=[];return function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(c,d){for(var u,h=In(o?o.pos:"0",d),m=Pn(c[r],h),p=0;p<i.length;p+=1){var f=i[p];if(void 0!==c[f]){u=c[f];break}}var g=Object.assign(Dn(c,[].concat((0,tt.A)(i),[r,s])),{title:u,key:m,parent:o,pos:h,children:null,data:c,isStart:[].concat((0,tt.A)(o?o.isStart:[]),[0===d]),isEnd:[].concat((0,tt.A)(o?o.isEnd:[]),[d===n.length-1])});return l.push(g),!0===t||a.has(m)?g.children=e(c[s]||[],g):g.children=[],g}))}(e),l}function jn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,o=t.processEntity,i=t.onProcessFinished,r=t.externalGetKey,s=t.childrenPropName,a=t.fieldNames,l=r||(arguments.length>2?arguments[2]:void 0),c={},d={},u={posEntities:c,keyEntities:d};return n&&(u=n(u)||u),function(e,t,n){var i,r=("object"===(0,M.A)(n)?n:{externalGetKey:n})||{},s=r.childrenPropName,a=r.externalGetKey,l=Nn(r.fieldNames),h=l.key,m=l.children,p=s||m;a?"string"==typeof a?i=function(e){return e[a]}:"function"==typeof a&&(i=function(e){return a(e)}):i=function(e,t){return Pn(e[h],t)},function t(n,r,s,a){var l=n?n[p]:e,h=n?In(s.pos,r):"0",m=n?[].concat((0,tt.A)(a),[n]):[];if(n){var f=i(n,h);!function(e){var t=e.node,n=e.index,i=e.pos,r=e.key,s=e.parentPos,a=e.level,l={node:t,nodes:e.nodes,index:n,key:r,pos:i,level:a},h=Pn(r,i);c[i]=l,d[h]=l,l.parent=c[s],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),o&&o(l,u)}({node:n,index:r,pos:h,key:f,parentPos:s.node?s.pos:null,level:s.level+1,nodes:m})}l&&l.forEach((function(e,o){t(e,o,{node:n,pos:h,level:s?s.level+1:-1},m)}))}(null)}(e,0,{externalGetKey:l,childrenPropName:s,fieldNames:a}),i&&i(u),u}function Yn(e,t){var n=t.expandedKeys,o=t.selectedKeys,i=t.loadedKeys,r=t.loadingKeys,s=t.checkedKeys,a=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,d=On(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==i.indexOf(e),loading:-1!==r.indexOf(e),checked:-1!==s.indexOf(e),halfChecked:-1!==a.indexOf(e),pos:String(d?d.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function $n(e){var t=e.data,n=e.expanded,o=e.selected,i=e.checked,r=e.loaded,s=e.loading,a=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,d=e.dragOverGapBottom,u=e.pos,h=e.active,m=e.eventKey,p=(0,E.A)((0,E.A)({},t),{},{expanded:n,selected:o,checked:i,loaded:r,loading:s,halfChecked:a,dragOver:l,dragOverGapTop:c,dragOverGapBottom:d,pos:u,active:h,key:m});return"props"in p||Object.defineProperty(p,"props",{get:function(){return(0,L.Ay)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}var Bn=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Wn="open",Vn="close",Un=function(e){var t,n,i,r=e.eventKey,s=e.className,l=e.style,c=e.dragOver,d=e.dragOverGapTop,u=e.dragOverGapBottom,h=e.isLeaf,m=e.isStart,p=e.isEnd,g=e.expanded,b=e.selected,v=e.checked,y=e.halfChecked,w=e.loading,C=e.domRef,_=e.active,S=e.data,M=e.onMouseMove,k=e.selectable,R=(0,j.A)(e,Bn),A=o.useContext(Tn),L=o.useContext(Rn),O=o.useRef(null),D=o.useState(!1),H=(0,a.A)(D,2),I=H[0],P=H[1],N=!!(A.disabled||e.disabled||null!==(t=L.nodeDisabled)&&void 0!==t&&t.call(L,S)),F=o.useMemo((function(){return!(!A.checkable||!1===e.checkable)&&A.checkable}),[A.checkable,e.checkable]),z=function(t){N||F&&!e.disableCheckbox&&A.onNodeCheck(t,$n(e),!v)},Y=o.useMemo((function(){return"boolean"==typeof k?k:A.selectable}),[k,A.selectable]),$=function(t){A.onNodeClick(t,$n(e)),Y?function(t){N||A.onNodeSelect(t,$n(e))}(t):z(t)},B=function(t){A.onNodeDoubleClick(t,$n(e))},W=function(t){A.onNodeMouseEnter(t,$n(e))},V=function(t){A.onNodeMouseLeave(t,$n(e))},U=function(t){A.onNodeContextMenu(t,$n(e))},G=o.useMemo((function(){return!(!A.draggable||A.draggable.nodeDraggable&&!A.draggable.nodeDraggable(S))}),[A.draggable,S]),K=function(t){w||A.onNodeExpand(t,$n(e))},q=o.useMemo((function(){var e=(On(A.keyEntities,r)||{}).children;return Boolean((e||[]).length)}),[A.keyEntities,r]),X=o.useMemo((function(){return!1!==h&&(h||!A.loadData&&!q||A.loadData&&e.loaded&&!q)}),[h,A.loadData,q,e.loaded]);o.useEffect((function(){w||"function"!=typeof A.loadData||!g||X||e.loaded||A.onNodeLoad($n(e))}),[w,A.loadData,A.onNodeLoad,g,X,e]);var J=o.useMemo((function(){var e;return null!==(e=A.draggable)&&void 0!==e&&e.icon?o.createElement("span",{className:"".concat(A.prefixCls,"-draggable-icon")},A.draggable.icon):null}),[A.draggable]),Q=function(t){var n=e.switcherIcon||A.switcherIcon;return"function"==typeof n?n((0,E.A)((0,E.A)({},e),{},{isLeaf:t})):n},Z=o.useMemo((function(){if(!F)return null;var t="boolean"!=typeof F?F:null;return o.createElement("span",{className:T()("".concat(A.prefixCls,"-checkbox"),(0,x.A)((0,x.A)((0,x.A)({},"".concat(A.prefixCls,"-checkbox-checked"),v),"".concat(A.prefixCls,"-checkbox-indeterminate"),!v&&y),"".concat(A.prefixCls,"-checkbox-disabled"),N||e.disableCheckbox)),onClick:z,role:"checkbox","aria-checked":y?"mixed":v,"aria-disabled":N||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)}),[F,v,y,N,e.disableCheckbox,e.title]),ee=o.useMemo((function(){return X?null:g?Wn:Vn}),[X,g]),te=o.useMemo((function(){return o.createElement("span",{className:T()("".concat(A.prefixCls,"-iconEle"),"".concat(A.prefixCls,"-icon__").concat(ee||"docu"),(0,x.A)({},"".concat(A.prefixCls,"-icon_loading"),w))})}),[A.prefixCls,ee,w]),ne=o.useMemo((function(){var t=Boolean(A.draggable);return!e.disabled&&t&&A.dragOverNodeKey===r?A.dropIndicatorRender({dropPosition:A.dropPosition,dropLevelOffset:A.dropLevelOffset,indent:A.indent,prefixCls:A.prefixCls,direction:A.direction}):null}),[A.dropPosition,A.dropLevelOffset,A.indent,A.prefixCls,A.direction,A.draggable,A.dragOverNodeKey,A.dropIndicatorRender]),oe=o.useMemo((function(){var t,n,i=e.title,r=void 0===i?"---":i,s="".concat(A.prefixCls,"-node-content-wrapper");if(A.showIcon){var a=e.icon||A.icon;t=a?o.createElement("span",{className:T()("".concat(A.prefixCls,"-iconEle"),"".concat(A.prefixCls,"-icon__customize"))},"function"==typeof a?a(e):a):te}else A.loadData&&w&&(t=te);return n="function"==typeof r?r(S):A.titleRender?A.titleRender(S):r,o.createElement("span",{ref:O,title:"string"==typeof r?r:"",className:T()(s,"".concat(s,"-").concat(ee||"normal"),(0,x.A)({},"".concat(A.prefixCls,"-node-selected"),!N&&(b||I))),onMouseEnter:W,onMouseLeave:V,onContextMenu:U,onClick:$,onDoubleClick:B},t,o.createElement("span",{className:"".concat(A.prefixCls,"-title")},n),ne)}),[A.prefixCls,A.showIcon,e,A.icon,te,A.titleRender,S,ee,W,V,U,$,B]),ie=Fe(R,{aria:!0,data:!0}),re=(On(A.keyEntities,r)||{}).level,se=p[p.length-1],ae=!N&&G,le=A.draggingNodeKey===r,ce=void 0!==k?{"aria-selected":!!k}:void 0;return o.createElement("div",(0,f.A)({ref:C,role:"treeitem","aria-expanded":h?void 0:g,className:T()(s,"".concat(A.prefixCls,"-treenode"),(i={},(0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)(i,"".concat(A.prefixCls,"-treenode-disabled"),N),"".concat(A.prefixCls,"-treenode-switcher-").concat(g?"open":"close"),!h),"".concat(A.prefixCls,"-treenode-checkbox-checked"),v),"".concat(A.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(A.prefixCls,"-treenode-selected"),b),"".concat(A.prefixCls,"-treenode-loading"),w),"".concat(A.prefixCls,"-treenode-active"),_),"".concat(A.prefixCls,"-treenode-leaf-last"),se),"".concat(A.prefixCls,"-treenode-draggable"),G),"dragging",le),(0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)(i,"drop-target",A.dropTargetKey===r),"drop-container",A.dropContainerKey===r),"drag-over",!N&&c),"drag-over-gap-top",!N&&d),"drag-over-gap-bottom",!N&&u),"filter-node",null===(n=A.filterTreeNode)||void 0===n?void 0:n.call(A,$n(e))),"".concat(A.prefixCls,"-treenode-leaf"),X))),style:l,draggable:ae,onDragStart:ae?function(t){t.stopPropagation(),P(!0),A.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:G?function(t){t.preventDefault(),t.stopPropagation(),A.onNodeDragEnter(t,e)}:void 0,onDragOver:G?function(t){t.preventDefault(),t.stopPropagation(),A.onNodeDragOver(t,e)}:void 0,onDragLeave:G?function(t){t.stopPropagation(),A.onNodeDragLeave(t,e)}:void 0,onDrop:G?function(t){t.preventDefault(),t.stopPropagation(),P(!1),A.onNodeDrop(t,e)}:void 0,onDragEnd:G?function(t){t.stopPropagation(),P(!1),A.onNodeDragEnd(t,e)}:void 0,onMouseMove:M},ce,ie),o.createElement(Ln,{prefixCls:A.prefixCls,level:re,isStart:m,isEnd:p}),J,function(){if(X){var e=Q(!0);return!1!==e?o.createElement("span",{className:T()("".concat(A.prefixCls,"-switcher"),"".concat(A.prefixCls,"-switcher-noop"))},e):null}var t=Q(!1);return!1!==t?o.createElement("span",{onClick:K,className:T()("".concat(A.prefixCls,"-switcher"),"".concat(A.prefixCls,"-switcher_").concat(g?Wn:Vn))},t):null}(),Z,oe)};Un.isTreeNode=1;const Gn=Un;function Kn(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function qn(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function Xn(e){return e.split("-")}function Jn(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var o=t.key,i=t.children;n.push(o),e(i)}))}(On(t,e).children),n}function Qn(e){if(e.parent){var t=Xn(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Zn(e,t,n,o,i,r,s,a,l,c){var d,u=e.clientX,h=e.clientY,m=e.target.getBoundingClientRect(),p=m.top,f=m.height,g=(("rtl"===c?-1:1)*(((null==i?void 0:i.x)||0)-u)-12)/o,b=l.filter((function(e){var t;return null===(t=a[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),v=On(a,n.eventKey);if(h<p+f/2){var y=s.findIndex((function(e){return e.key===v.key})),w=s[y<=0?0:y-1].key;v=On(a,w)}var C=v.key,_=v,S=v.key,M=0,E=0;if(!b.includes(C))for(var x=0;x<g&&Qn(v);x+=1)v=v.parent,E+=1;var k,T=t.data,R=v.node,A=!0;return k=Xn(v.pos),0===Number(k[k.length-1])&&0===v.level&&h<p+f/2&&r({dragNode:T,dropNode:R,dropPosition:-1})&&v.key===n.eventKey?M=-1:(_.children||[]).length&&b.includes(S)?r({dragNode:T,dropNode:R,dropPosition:0})?M=0:A=!1:0===E?g>-1.5?r({dragNode:T,dropNode:R,dropPosition:1})?M=1:A=!1:r({dragNode:T,dropNode:R,dropPosition:0})?M=0:r({dragNode:T,dropNode:R,dropPosition:1})?M=1:A=!1:r({dragNode:T,dropNode:R,dropPosition:1})?M=1:A=!1,{dropPosition:M,dropLevelOffset:E,dropTargetKey:v.key,dropTargetPos:v.pos,dragOverNodeKey:S,dropContainerKey:0===M?null:(null===(d=v.parent)||void 0===d?void 0:d.key)||null,dropAllowed:A}}function eo(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function to(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,M.A)(e))return(0,L.Ay)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function no(e,t){var n=new Set;function o(e){if(!n.has(e)){var i=On(t,e);if(i){n.add(e);var r=i.parent;i.node.disabled||r&&o(r.key)}}}return(e||[]).forEach((function(e){o(e)})),(0,tt.A)(n)}function oo(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function io(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,i=t.checkable;return!(!n&&!o)||!1===i}function ro(e,t,n,o){var i,r=[];i=o||io;var s,a=new Set(e.filter((function(e){var t=!!On(n,e);return t||r.push(e),t}))),l=new Map,c=0;return Object.keys(n).forEach((function(e){var t=n[e],o=t.level,i=l.get(o);i||(i=new Set,l.set(o,i)),i.add(t),c=Math.max(c,o)})),(0,L.Ay)(!r.length,"Tree missing follow keys: ".concat(r.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),s=!0===t?function(e,t,n,o){for(var i=new Set(e),r=new Set,s=0;s<=n;s+=1)(t.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,s=void 0===r?[]:r;i.has(t)&&!o(n)&&s.filter((function(e){return!o(e.node)})).forEach((function(e){i.add(e.key)}))}));for(var a=new Set,l=n;l>=0;l-=1)(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!a.has(e.parent.key))if(o(e.parent.node))a.add(t.key);else{var s=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);s&&!n&&(s=!1),l||!n&&!r.has(t)||(l=!0)})),s&&i.add(t.key),l&&r.add(t.key),a.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(oo(r,i))}}(a,l,c,i):function(e,t,n,o,i){for(var r=new Set(e),s=new Set(t),a=0;a<=o;a+=1)(n.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,a=void 0===o?[]:o;r.has(t)||s.has(t)||i(n)||a.filter((function(e){return!i(e.node)})).forEach((function(e){r.delete(e.key)}))}));s=new Set;for(var l=new Set,c=o;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!l.has(e.parent.key))if(i(e.parent.node))l.add(t.key);else{var o=!0,a=!1;(t.children||[]).filter((function(e){return!i(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);o&&!n&&(o=!1),a||!n&&!s.has(t)||(a=!0)})),o||r.delete(t.key),a&&s.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(oo(s,r))}}(a,t.halfCheckedKeys,l,c,i),s}var so=n(12533),ao=n(18877),lo=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],co=(0,o.forwardRef)((function(e,t){var n=e.prefixCls,i=void 0===n?"rc-checkbox":n,r=e.className,s=e.style,l=e.checked,c=e.disabled,d=e.defaultChecked,u=void 0!==d&&d,h=e.type,m=void 0===h?"checkbox":h,p=e.title,g=e.onChange,b=(0,j.A)(e,lo),v=(0,o.useRef)(null),y=(0,o.useRef)(null),w=(0,so.A)(u,{value:l}),C=(0,a.A)(w,2),_=C[0],S=C[1];(0,o.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=v.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=v.current)||void 0===e||e.blur()},input:v.current,nativeElement:y.current}}));var M=T()(i,r,(0,x.A)((0,x.A)({},"".concat(i,"-checked"),_),"".concat(i,"-disabled"),c));return o.createElement("span",{className:M,title:p,style:s,ref:y},o.createElement("input",(0,f.A)({},b,{className:"".concat(i,"-input"),ref:v,onChange:function(t){c||("checked"in e||S(t.target.checked),null==g||g({target:(0,E.A)((0,E.A)({},e),{},{type:m,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:c,checked:!!_,type:m})),o.createElement("span",{className:"".concat(i,"-inner")}))}));const uo=co;var ho=n(62279);function mo(e){return e&&o.isValidElement(e)&&e.type===o.Fragment}function po(e,t){return((e,t,n)=>o.isValidElement(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}var fo=n(77132),go=n(9417);const bo=(0,we.A)((function e(){(0,ye.A)(this,e)}));var vo="CALC_UNIT",yo=new RegExp(vo,"g");function wo(e){return"number"==typeof e?"".concat(e).concat(vo):e}var Co=function(e){(0,Ce.A)(n,e);var t=(0,_e.A)(n);function n(e,o){var i;(0,ye.A)(this,n),i=t.call(this),(0,x.A)((0,go.A)(i),"result",""),(0,x.A)((0,go.A)(i),"unitlessCssVar",void 0),(0,x.A)((0,go.A)(i),"lowPriority",void 0);var r=(0,M.A)(e);return i.unitlessCssVar=o,e instanceof n?i.result="(".concat(e.result,")"):"number"===r?i.result=wo(e):"string"===r&&(i.result=e),i}return(0,we.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(wo(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(wo(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,o=!0;return"boolean"==typeof n?o=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(o=!1),this.result=this.result.replace(yo,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(bo);const _o=function(e){(0,Ce.A)(n,e);var t=(0,_e.A)(n);function n(e){var o;return(0,ye.A)(this,n),o=t.call(this),(0,x.A)((0,go.A)(o),"result",0),e instanceof n?o.result=e.result:"number"==typeof e&&(o.result=e),o}return(0,we.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(bo),So=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},Mo=function(e,t,n,o){var i=(0,E.A)({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach((function(e){var t,n=(0,a.A)(e,2),o=n[0],r=n[1];(null!=i&&i[o]||null!=i&&i[r])&&(null!==(t=i[r])&&void 0!==t||(i[r]=null==i?void 0:i[o]))}));var r=(0,E.A)((0,E.A)({},n),i);return Object.keys(r).forEach((function(e){r[e]===t[e]&&delete r[e]})),r};var Eo="undefined"!=typeof CSSINJS_STATISTIC,xo=!0;function ko(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Eo)return Object.assign.apply(Object,[{}].concat(t));xo=!1;var o={};return t.forEach((function(e){"object"===(0,M.A)(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),xo=!0,o}var To={};function Ro(){}const Ao=function(e,t,n){var o;return"function"==typeof n?n(ko(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}};var Lo=new(function(){function e(){(0,ye.A)(this,e),(0,x.A)(this,"map",new Map),(0,x.A)(this,"objectIDMap",new WeakMap),(0,x.A)(this,"nextID",0),(0,x.A)(this,"lastAccessBeat",new Map),(0,x.A)(this,"accessBeat",0)}return(0,we.A)(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===(0,M.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,M.A)(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,o){t-n>6e5&&(e.map.delete(o),e.lastAccessBeat.delete(o))})),this.accessBeat=0}}}]),e}());const Oo=function(){return{}};var Do=n(25905),Ho=n(39319);const{genStyleHooks:Io,genComponentStyleHook:Po,genSubStyleComponent:No}=function(e){var t=e.useCSP,n=void 0===t?Oo:t,i=e.useToken,r=e.usePrefix,s=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function d(t,c,d){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=Array.isArray(t)?t:[t,t],m=(0,a.A)(h,1)[0],p=h.join("-"),f=e.layer||{name:"antd"};return function(e){var t,a,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,g=i(),b=g.theme,v=g.realToken,y=g.hashId,w=g.token,C=g.cssVar,_=r(),S=_.rootPrefixCls,x=_.iconPrefixCls,k=n(),T=C?"css":"js",R=(t=function(){var e=new Set;return C&&Object.keys(u.unitless||{}).forEach((function(t){e.add((0,fo.Ki)(t,C.prefix)),e.add((0,fo.Ki)(t,So(m,C.prefix)))})),function(e,t){var n="css"===e?Co:_o;return function(e){return new n(e,t)}}(T,e)},a=[T,m,null==C?void 0:C.prefix],o.useMemo((function(){var e=Lo.get(a);if(e)return e;var n=t();return Lo.set(a,n),n}),a)),A=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return(0,fo.zA)(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return(0,fo.zA)(e)})).join(","),")")}}}(T),L=A.max,O=A.min,D={theme:b,token:w,hashId:y,nonce:function(){return k.nonce},clientOnly:u.clientOnly,layer:f,order:u.order||-999};return"function"==typeof s&&(0,fo.IV)((0,E.A)((0,E.A)({},D),{},{clientOnly:!1,path:["Shared",S]}),(function(){return s(w,{prefix:{rootPrefixCls:S,iconPrefixCls:x},csp:k})})),[(0,fo.IV)((0,E.A)((0,E.A)({},D),{},{path:[p,e,x]}),(function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,o=Ro;return Eo&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var o;return xo&&(null===(o=t)||void 0===o||o.add(n)),e[n]}}),o=function(e,n){var o;To[e]={global:Array.from(t),component:(0,E.A)((0,E.A)({},null===(o=To[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(w),n=t.token,o=t.flush,i=Ao(m,v,d),r=".".concat(e),s=Mo(m,v,i,{deprecatedTokens:u.deprecatedTokens});C&&i&&"object"===(0,M.A)(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat((0,fo.Ki)(e,So(m,C.prefix)),")")}));var a=ko(n,{componentCls:r,prefixCls:e,iconCls:".".concat(x),antCls:".".concat(S),calc:R,max:L,min:O},C?i:s),p=c(a,{hashId:y,prefixCls:e,rootPrefixCls:S,iconPrefixCls:x});o(m,s);var f="function"==typeof l?l(a,e,h,u.resetFont):null;return[!1===u.resetStyle?null:f,p]})),y]}}return{genStyleHooks:function(e,t,n,r){var s=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(s)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==r?void 0:r.unitless)||{},h="function"==typeof c?c(e):{},m=(0,E.A)((0,E.A)({},h),{},(0,x.A)({},l("zIndexPopup"),!0));Object.keys(u).forEach((function(e){m[l(e)]=u[e]}));var p=(0,E.A)((0,E.A)({},r),{},{unitless:m,prefixToken:l}),f=d(e,t,n,p),g=function(e,t,n){var r=n.unitless,s=n.injectStyle,a=void 0===s||s,l=n.prefixToken,c=n.ignore,d=function(o){var s=o.rootCls,a=o.cssVar,d=void 0===a?{}:a,u=i().realToken;return(0,fo.RC)({path:[e],prefix:d.prefix,key:d.key,unitless:r,ignore:c,token:u,scope:s},(function(){var o=Ao(e,u,t),i=Mo(e,u,o,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(o).forEach((function(e){i[l(e)]=i[e],delete i[e]})),i})),null};return function(t){var n=i().cssVar;return[function(i){return a&&n?o.createElement(o.Fragment,null,o.createElement(d,{rootCls:t,cssVar:n,component:e}),i):i},null==n?void 0:n.key]}}(s,n,p);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=f(e,t),o=(0,a.A)(n,2)[1],i=g(t),r=(0,a.A)(i,2);return[r[0],o,r[1]]}},genSubStyleComponent:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=d(e,t,n,(0,E.A)({resetStyle:!1,order:-998},o));return function(e){var t=e.prefixCls,n=e.rootCls;return i(t,void 0===n?t:n),null}},genComponentStyleHook:d}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,o.useContext)(ho.QO);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,i]=(0,Ho.Ay)();return{theme:e,realToken:t,hashId:n,token:o,cssVar:i}},useCSP:()=>{const{csp:e}=(0,o.useContext)(ho.QO);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;const o=(0,Do.av)(e);return[o,{"&":o},(0,Do.jz)(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:ho.pM)]},getCommonStyle:Do.vj,getCompUnitless:()=>Ho.Is}),Fo=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},zo=Po("Wave",(e=>[Fo(e)])),jo=`${ho.yH}-wave-target`;var Yo=n(90754);function $o(e,t){this.v=e,this.k=t}function Bo(e,t,n,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Bo=function(e,t,n,o){if(t)i?i(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var r=function(t,n){Bo(e,t,(function(e){return this._invoke(t,n,e)}))};r("next",0),r("throw",1),r("return",2)}},Bo(e,t,n,o)}function Wo(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,o,i,r){var l=o&&o.prototype instanceof a?o:a,c=Object.create(l.prototype);return Bo(c,"_invoke",function(n,o,i){var r,a,l,c=0,d=i||[],u=!1,h={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,n){return r=t,a=0,l=e,h.n=n,s}};function m(n,o){for(a=n,l=o,t=0;!u&&c&&!i&&t<d.length;t++){var i,r=d[t],m=h.p,p=r[2];n>3?(i=p===o)&&(l=r[(a=r[4])?5:(a=3,3)],r[4]=r[5]=e):r[0]<=m&&((i=n<2&&m<r[1])?(a=0,h.v=o,h.n=r[1]):m<p&&(i=n<3||r[0]>o||o>p)&&(r[4]=n,r[5]=o,h.n=p,a=0))}if(i||n>1)return s;throw u=!0,o}return function(i,d,p){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&m(d,p),a=d,l=p;(t=a<2?e:l)||!u;){r||(a?a<3?(a>1&&(h.n=-1),m(a,l)):h.n=l:h.v=l);try{if(c=2,r){if(a||(i="next"),t=r[i]){if(!(t=t.call(r,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=r.return)&&t.call(r),a<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),a=1);r=e}else if((t=(u=h.n<0)?l:n.call(o,h))!==s)break}catch(t){r=e,a=1,l=t}finally{c=1}}return{value:t,done:u}}}(n,i,r),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var d=[][o]?t(t([][o]())):(Bo(t={},o,(function(){return this})),t),u=c.prototype=a.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Bo(e,i,"GeneratorFunction")),e.prototype=Object.create(u),e}return l.prototype=c,Bo(u,"constructor",c),Bo(c,"constructor",l),l.displayName="GeneratorFunction",Bo(c,i,"GeneratorFunction"),Bo(u),Bo(u,i,"Generator"),Bo(u,o,(function(){return this})),Bo(u,"toString",(function(){return"[object Generator]"})),(Wo=function(){return{w:r,m:h}})()}function Vo(e,t){function n(o,i,r,s){try{var a=e[o](i),l=a.value;return l instanceof $o?t.resolve(l.v).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(l).then((function(e){a.value=e,r(a)}),(function(e){return n("throw",e,r,s)}))}catch(e){s(e)}}var o;this.next||(Bo(Vo.prototype),Bo(Vo.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),Bo(this,"_invoke",(function(e,i,r){function s(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(s,s):s()}),!0)}function Uo(e,t,n,o,i){return new Vo(Wo().w(e,t,n,o),i||Promise)}function Go(e,t,n,o,i){var r=Uo(e,t,n,o,i);return r.next().then((function(e){return e.done?e.value:r.next()}))}function Ko(e){var t=Object(e),n=[];for(var o in t)n.unshift(o);return function e(){for(;n.length;)if((o=n.pop())in t)return e.value=o,e.done=!1,e;return e.done=!0,e}}function qo(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError((0,M.A)(e)+" is not iterable")}function Xo(){var e=Wo(),t=e.m(Xo),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function o(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var i={throw:1,return:2,break:3,continue:3};function r(e){var t,n;return function(o){t||(t={stop:function(){return n(o.a,2)},catch:function(){return o.v},abrupt:function(e,t){return n(o.a,i[e],t)},delegateYield:function(e,i,r){return t.resultName=i,n(o.d,qo(e),r)},finish:function(e){return n(o.f,e)}},n=function(e,n,i){o.p=t.prev,o.n=t.next;try{return e(n,i)}finally{t.next=o.n}}),t.resultName&&(t[t.resultName]=o.v,t.resultName=void 0),t.sent=o.v,t.next=o.n;try{return e.call(this,t)}finally{o.p=t.prev,o.n=t.next}}}return(Xo=function(){return{wrap:function(t,n,o,i){return e.w(r(t),n,o,i&&i.reverse())},isGeneratorFunction:o,mark:e.m,awrap:function(e,t){return new $o(e,t)},AsyncIterator:Vo,async:function(e,t,n,i,s){return(o(t)?Uo:Go)(r(e),t,n,i,s)},keys:Ko,values:qo}})()}function Jo(e,t,n,o,i,r,s){try{var a=e[r](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(o,i)}function Qo(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var r=e.apply(t,n);function s(e){Jo(r,o,i,s,a,"next",e)}function a(e){Jo(r,o,i,s,a,"throw",e)}s(void 0)}))}}var Zo,ei=(0,E.A)({},h),ti=ei.version,ni=ei.render,oi=ei.unmountComponentAtNode;try{Number((ti||"").split(".")[0])>=18&&(Zo=ei.createRoot)}catch(e){}function ii(e){var t=ei.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,M.A)(t)&&(t.usingClientEntryPoint=e)}var ri="__rc_react_root__";function si(e){return ai.apply(this,arguments)}function ai(){return(ai=Qo(Xo().mark((function e(t){return Xo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[ri])||void 0===e||e.unmount(),delete t[ri]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function li(e){oi(e)}function ci(){return(ci=Qo(Xo().mark((function e(t){return Xo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Zo){e.next=2;break}return e.abrupt("return",si(t));case 2:li(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}let di=(e,t)=>(function(e,t){Zo?function(e,t){ii(!0);var n=t[ri]||Zo(t);ii(!1),n.render(e),t[ri]=n}(e,t):function(e,t){null==ni||ni(e,t)}(e,t)}(e,t),()=>function(e){return ci.apply(this,arguments)}(t));function ui(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function hi(e){return Number.isNaN(e)?0:e}const mi=e=>{const{className:t,target:n,component:i,registerUnmount:r}=e,s=o.useRef(null),a=o.useRef(null);o.useEffect((()=>{a.current=r()}),[]);const[l,c]=o.useState(null),[d,u]=o.useState([]),[h,m]=o.useState(0),[p,f]=o.useState(0),[b,v]=o.useState(0),[y,w]=o.useState(0),[C,_]=o.useState(!1),S={left:h,top:p,width:b,height:y,borderRadius:d.map((e=>`${e}px`)).join(" ")};function M(){const e=getComputedStyle(n);c(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return ui(t)?t:ui(n)?n:ui(o)?o:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:i}=e;m(t?n.offsetLeft:hi(-parseFloat(o))),f(t?n.offsetTop:hi(-parseFloat(i))),v(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:r,borderTopRightRadius:s,borderBottomLeftRadius:a,borderBottomRightRadius:l}=e;u([r,s,l,a].map((e=>hi(parseFloat(e)))))}if(l&&(S["--wave-color"]=l),o.useEffect((()=>{if(n){const e=(0,bt.A)((()=>{M(),_(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(M),t.observe(n)),()=>{bt.A.cancel(e),null==t||t.disconnect()}}}),[]),!C)return null;const E=("Checkbox"===i||"Radio"===i)&&(null==n?void 0:n.classList.contains(jo));return o.createElement(Yo.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,o;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=s.current)||void 0===n?void 0:n.parentElement;null===(o=a.current)||void 0===o||o.call(a).then((()=>{null==e||e.remove()}))}return!1}},(({className:e},n)=>o.createElement("div",{ref:(0,g.K4)(s,n),className:T()(t,e,{"wave-quick":E}),style:S})))},pi=(e,t)=>{var n;const{component:i}=t;if("Checkbox"===i&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",null==e||e.insertBefore(r,null==e?void 0:e.firstChild);let s=null;s=di(o.createElement(mi,Object.assign({},t,{target:e,registerUnmount:function(){return s}})),r)},fi=(e,t,n)=>{const{wave:i}=o.useContext(ho.QO),[,r,s]=(0,Ho.Ay)(),a=(0,l.A)((o=>{const a=e.current;if((null==i?void 0:i.disabled)||!a)return;const l=a.querySelector(`.${jo}`)||a,{showEffect:c}=i||{};(c||pi)(l,{className:t,token:r,component:n,event:o,hashId:s})})),c=o.useRef(null);return e=>{bt.A.cancel(c.current),c.current=(0,bt.A)((()=>{a(e)}))}},gi=e=>{const{children:t,disabled:n,component:i}=e,{getPrefixCls:r}=(0,o.useContext)(ho.QO),s=(0,o.useRef)(null),a=r("wave"),[,l]=zo(a),c=fi(s,T()(a,l),i);return o.useEffect((()=>{const e=s.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!Ke(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||c(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),o.isValidElement(t)?po(t,{ref:(0,g.f3)(t)?(0,g.K4)((0,g.A9)(t),s):s}):null!=t?t:null};var bi=n(98119);const vi=e=>{const[,,,,t]=(0,Ho.Ay)();return t?`${e}-css-var`:""};var yi="RC_FORM_INTERNAL_HOOKS",wi=function(){(0,L.Ay)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const Ci=o.createContext({getFieldValue:wi,getFieldsValue:wi,getFieldError:wi,getFieldWarning:wi,getFieldsError:wi,isFieldsTouched:wi,isFieldTouched:wi,isFieldValidating:wi,isFieldsValidating:wi,resetFields:wi,setFields:wi,setFieldValue:wi,setFieldsValue:wi,validateFields:wi,submit:wi,getInternalHooks:function(){return wi(),{dispatch:wi,initEntityValue:wi,registerField:wi,useSubscribe:wi,setInitialValues:wi,destroyForm:wi,setCallbacks:wi,registerWatch:wi,getFields:wi,setValidateMessages:wi,setPreserve:wi,getInitialValue:wi}}}),_i=o.createContext(null);function Si(e){return null==e?[]:Array.isArray(e)?e:[e]}function Mi(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Ei=Mi(),xi=n(53954),ki=n(63662),Ti=n(52176);function Ri(e){var t="function"==typeof Map?new Map:void 0;return Ri=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if((0,Ti.A)())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var i=new(e.bind.apply(e,o));return n&&(0,ki.A)(i,n.prototype),i}(e,arguments,(0,xi.A)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,ki.A)(n,e)},Ri(e)}var Ai=/%[sdj%]/g;function Li(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function Oi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=0,r=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(Ai,(function(e){if("%%"===e)return"%";if(i>=r)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}default:return e}})):e}function Di(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function Hi(e,t,n){var o=0,i=e.length;!function r(s){if(s&&s.length)n(s);else{var a=o;o+=1,a<i?t(e[a],r):n([])}}([])}"undefined"!=typeof process&&process.env;var Ii=function(e){(0,Ce.A)(n,e);var t=(0,_e.A)(n);function n(e,o){var i;return(0,ye.A)(this,n),i=t.call(this,"Async Validation Error"),(0,x.A)((0,go.A)(i),"errors",void 0),(0,x.A)((0,go.A)(i),"fields",void 0),i.errors=e,i.fields=o,i}return(0,we.A)(n)}(Ri(Error));function Pi(e,t){return function(n){var o,i;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(i=n)&&void 0!==i.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function Ni(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===(0,M.A)(o)&&"object"===(0,M.A)(e[n])?e[n]=(0,E.A)((0,E.A)({},e[n]),o):e[n]=o}return e}var Fi="enum";const zi=function(e,t,n,o,i,r){!e.required||n.hasOwnProperty(e.field)&&!Di(t,r||e.type)||o.push(Oi(i.messages.required,e.fullField))};var ji,Yi=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,$i=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Bi={integer:function(e){return Bi.number(e)&&parseInt(e,10)===e},float:function(e){return Bi.number(e)&&!Bi.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(0,M.A)(e)&&!Bi.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Yi)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(ji)return ji;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",i=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(n,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(n,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(n,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(n,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(n,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(n,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(n,"|(?::").concat(o,"){1,7}|:))")],r="(?:".concat(i.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(r,"$)")),a=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(r,"$")),c=function(e){return e&&e.exact?s:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(r).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?a:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(r).concat(t(e)),"g")};var d=c.v4().source,u=c.v6().source,h="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(d,"|").concat(u,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return ji=new RegExp("(?:^".concat(h,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match($i)}};const Wi=zi,Vi=function(e,t,n,o,i){(/^\s+$/.test(t)||""===t)&&o.push(Oi(i.messages.whitespace,e.fullField))},Ui=function(e,t,n,o,i){if(e.required&&void 0===t)zi(e,t,n,o,i);else{var r=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(r)>-1?Bi[r](t)||o.push(Oi(i.messages.types[r],e.fullField,e.type)):r&&(0,M.A)(t)!==e.type&&o.push(Oi(i.messages.types[r],e.fullField,e.type))}},Gi=function(e,t,n,o,i){var r="number"==typeof e.len,s="number"==typeof e.min,a="number"==typeof e.max,l=t,c=null,d="number"==typeof t,u="string"==typeof t,h=Array.isArray(t);if(d?c="number":u?c="string":h&&(c="array"),!c)return!1;h&&(l=t.length),u&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),r?l!==e.len&&o.push(Oi(i.messages[c].len,e.fullField,e.len)):s&&!a&&l<e.min?o.push(Oi(i.messages[c].min,e.fullField,e.min)):a&&!s&&l>e.max?o.push(Oi(i.messages[c].max,e.fullField,e.max)):s&&a&&(l<e.min||l>e.max)&&o.push(Oi(i.messages[c].range,e.fullField,e.min,e.max))},Ki=function(e,t,n,o,i){e[Fi]=Array.isArray(e[Fi])?e[Fi]:[],-1===e[Fi].indexOf(t)&&o.push(Oi(i.messages[Fi],e.fullField,e[Fi].join(", ")))},qi=function(e,t,n,o,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||o.push(Oi(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||o.push(Oi(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Xi=function(e,t,n,o,i){var r=e.type,s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Di(t,r)&&!e.required)return n();Wi(e,t,o,s,i,r),Di(t,r)||Ui(e,t,o,s,i)}n(s)},Ji={string:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Di(t,"string")&&!e.required)return n();Wi(e,t,o,r,i,"string"),Di(t,"string")||(Ui(e,t,o,r,i),Gi(e,t,o,r,i),qi(e,t,o,r,i),!0===e.whitespace&&Vi(e,t,o,r,i))}n(r)},method:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Di(t)&&!e.required)return n();Wi(e,t,o,r,i),void 0!==t&&Ui(e,t,o,r,i)}n(r)},number:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Di(t)&&!e.required)return n();Wi(e,t,o,r,i),void 0!==t&&(Ui(e,t,o,r,i),Gi(e,t,o,r,i))}n(r)},boolean:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Di(t)&&!e.required)return n();Wi(e,t,o,r,i),void 0!==t&&Ui(e,t,o,r,i)}n(r)},regexp:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Di(t)&&!e.required)return n();Wi(e,t,o,r,i),Di(t)||Ui(e,t,o,r,i)}n(r)},integer:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Di(t)&&!e.required)return n();Wi(e,t,o,r,i),void 0!==t&&(Ui(e,t,o,r,i),Gi(e,t,o,r,i))}n(r)},float:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Di(t)&&!e.required)return n();Wi(e,t,o,r,i),void 0!==t&&(Ui(e,t,o,r,i),Gi(e,t,o,r,i))}n(r)},array:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Wi(e,t,o,r,i,"array"),null!=t&&(Ui(e,t,o,r,i),Gi(e,t,o,r,i))}n(r)},object:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Di(t)&&!e.required)return n();Wi(e,t,o,r,i),void 0!==t&&Ui(e,t,o,r,i)}n(r)},enum:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Di(t)&&!e.required)return n();Wi(e,t,o,r,i),void 0!==t&&Ki(e,t,o,r,i)}n(r)},pattern:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Di(t,"string")&&!e.required)return n();Wi(e,t,o,r,i),Di(t,"string")||qi(e,t,o,r,i)}n(r)},date:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Di(t,"date")&&!e.required)return n();var s;Wi(e,t,o,r,i),Di(t,"date")||(s=t instanceof Date?t:new Date(t),Ui(e,s,o,r,i),s&&Gi(e,s.getTime(),o,r,i))}n(r)},url:Xi,hex:Xi,email:Xi,required:function(e,t,n,o,i){var r=[],s=Array.isArray(t)?"array":(0,M.A)(t);Wi(e,t,o,r,i,s),n(r)},any:function(e,t,n,o,i){var r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Di(t)&&!e.required)return n();Wi(e,t,o,r,i)}n(r)}};var Qi=function(){function e(t){(0,ye.A)(this,e),(0,x.A)(this,"rules",null),(0,x.A)(this,"_messages",Ei),this.define(t)}return(0,we.A)(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,M.A)(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))}},{key:"messages",value:function(e){return e&&(this._messages=Ni(Mi(),e)),this._messages}},{key:"validate",value:function(t){var n=this,o=t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof i&&(r=i,i={}),!this.rules||0===Object.keys(this.rules).length)return r&&r(null,o),Promise.resolve(o);if(i.messages){var s=this.messages();s===Ei&&(s=Mi()),Ni(s,i.messages),i.messages=s}else i.messages=this.messages();var a={};(i.keys||Object.keys(this.rules)).forEach((function(e){var i=n.rules[e],r=o[e];i.forEach((function(i){var s=i;"function"==typeof s.transform&&(o===t&&(o=(0,E.A)({},o)),null!=(r=o[e]=s.transform(r))&&(s.type=s.type||(Array.isArray(r)?"array":(0,M.A)(r)))),(s="function"==typeof s?{validator:s}:(0,E.A)({},s)).validator=n.getValidationMethod(s),s.validator&&(s.field=e,s.fullField=s.fullField||e,s.type=n.getType(s),a[e]=a[e]||[],a[e].push({rule:s,value:r,source:o,field:e}))}))}));var l={};return function(e,t,n,o,i){if(t.first){var r=new Promise((function(t,r){var s=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,(0,tt.A)(e[n]||[]))})),t}(e);Hi(s,n,(function(e){return o(e),e.length?r(new Ii(e,Li(e))):t(i)}))}));return r.catch((function(e){return e})),r}var s=!0===t.firstFields?Object.keys(e):t.firstFields||[],a=Object.keys(e),l=a.length,c=0,d=[],u=new Promise((function(t,r){var u=function(e){if(d.push.apply(d,e),++c===l)return o(d),d.length?r(new Ii(d,Li(d))):t(i)};a.length||(o(d),t(i)),a.forEach((function(t){var o=e[t];-1!==s.indexOf(t)?Hi(o,n,u):function(e,t,n){var o=[],i=0,r=e.length;function s(e){o.push.apply(o,(0,tt.A)(e||[])),++i===r&&n(o)}e.forEach((function(e){t(e,s)}))}(o,n,u)}))}));return u.catch((function(e){return e})),u}(a,i,(function(t,n){var r,s=t.rule,a=!("object"!==s.type&&"array"!==s.type||"object"!==(0,M.A)(s.fields)&&"object"!==(0,M.A)(s.defaultField));function c(e,t){return(0,E.A)((0,E.A)({},t),{},{fullField:"".concat(s.fullField,".").concat(e),fullFields:s.fullFields?[].concat((0,tt.A)(s.fullFields),[e]):[e]})}function d(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],d=Array.isArray(r)?r:[r];!i.suppressWarning&&d.length&&e.warning("async-validator:",d),d.length&&void 0!==s.message&&(d=[].concat(s.message));var u=d.map(Pi(s,o));if(i.first&&u.length)return l[s.field]=1,n(u);if(a){if(s.required&&!t.value)return void 0!==s.message?u=[].concat(s.message).map(Pi(s,o)):i.error&&(u=[i.error(s,Oi(i.messages.required,s.field))]),n(u);var h={};s.defaultField&&Object.keys(t.value).map((function(e){h[e]=s.defaultField})),h=(0,E.A)((0,E.A)({},h),t.rule.fields);var m={};Object.keys(h).forEach((function(e){var t=h[e],n=Array.isArray(t)?t:[t];m[e]=n.map(c.bind(null,e))}));var p=new e(m);p.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),p.validate(t.value,t.rule.options||i,(function(e){var t=[];u&&u.length&&t.push.apply(t,(0,tt.A)(u)),e&&e.length&&t.push.apply(t,(0,tt.A)(e)),n(t.length?t:null)}))}else n(u)}if(a=a&&(s.required||!s.required&&t.value),s.field=t.field,s.asyncValidator)r=s.asyncValidator(s,t.value,d,t.source,i);else if(s.validator){try{r=s.validator(s,t.value,d,t.source,i)}catch(e){var u,h;null===(u=(h=console).error)||void 0===u||u.call(h,e),i.suppressValidatorError||setTimeout((function(){throw e}),0),d(e.message)}!0===r?d():!1===r?d("function"==typeof s.message?s.message(s.fullField||s.field):s.message||"".concat(s.fullField||s.field," fails")):r instanceof Array?d(r):r instanceof Error&&d(r.message)}r&&r.then&&r.then((function(){return d()}),(function(e){return d(e)}))}),(function(e){!function(e){for(var t,n,i=[],s={},a=0;a<e.length;a++)t=e[a],n=void 0,Array.isArray(t)?i=(n=i).concat.apply(n,(0,tt.A)(t)):i.push(t);i.length?(s=Li(i),r(i,s)):r(null,o)}(e)}),o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Ji.hasOwnProperty(e.type))throw new Error(Oi("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Ji.required:Ji[this.getType(e)]||void 0}}]),e}();(0,x.A)(Qi,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Ji[e]=t})),(0,x.A)(Qi,"warning",(function(){})),(0,x.A)(Qi,"messages",Ei),(0,x.A)(Qi,"validators",Ji);const Zi=Qi;var er="'${name}' is not a valid ${type}",tr={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:er,method:er,array:er,object:er,number:er,date:er,boolean:er,integer:er,float:er,regexp:er,email:er,url:er,hex:er},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},nr=n(20488),or=Zi;function ir(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var rr="CODE_LOGIC_ERROR";function sr(e,t,n,o,i){return ar.apply(this,arguments)}function ar(){return ar=Qo(Xo().mark((function e(t,n,i,r,s){var a,l,c,d,u,h,m,p,f;return Xo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=(0,E.A)({},i)).ruleIndex,or.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(rr)}}),c=null,a&&"array"===a.type&&a.defaultField&&(c=a.defaultField,delete a.defaultField),d=new or((0,x.A)({},t,[a])),u=(0,nr.h)(tr,r.validateMessages),d.messages(u),h=[],e.prev=10,e.next=13,Promise.resolve(d.validate((0,x.A)({},t,n),(0,E.A)({},r)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(h=e.t0.errors.map((function(e,t){var n=e.message,i=n===rr?u.default:n;return o.isValidElement(i)?o.cloneElement(i,{key:"error_".concat(t)}):i})));case 18:if(h.length||!c){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return sr("".concat(t,".").concat(n),e,c,r,s)})));case 21:return m=e.sent,e.abrupt("return",m.reduce((function(e,t){return[].concat((0,tt.A)(e),(0,tt.A)(t))}),[]));case 23:return p=(0,E.A)((0,E.A)({},i),{},{name:t,enum:(i.enum||[]).join(", ")},s),f=h.map((function(e){return"string"==typeof e?ir(e,p):e})),e.abrupt("return",f);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),ar.apply(this,arguments)}function lr(e,t,n,o,i,r){var s,a=e.join("."),l=n.map((function(e,t){var n=e.validator,o=(0,E.A)((0,E.A)({},e),{},{ruleIndex:t});return n&&(o.validator=function(e,t,o){var i=!1,r=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){(0,L.Ay)(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||o.apply(void 0,t)}))}));i=r&&"function"==typeof r.then&&"function"==typeof r.catch,(0,L.Ay)(i,"`callback` is deprecated. Please return a promise instead."),i&&r.then((function(){o()})).catch((function(e){o(e||" ")}))}),o})).sort((function(e,t){var n=e.warningOnly,o=e.ruleIndex,i=t.warningOnly,r=t.ruleIndex;return!!n==!!i?o-r:n?1:-1}));if(!0===i)s=new Promise(function(){var e=Qo(Xo().mark((function e(n,i){var s,c,d;return Xo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=0;case 1:if(!(s<l.length)){e.next=12;break}return c=l[s],e.next=5,sr(a,t,c,o,r);case 5:if(!(d=e.sent).length){e.next=9;break}return i([{errors:d,rule:c}]),e.abrupt("return");case 9:s+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return sr(a,t,e,o,r).then((function(t){return{errors:t,rule:e}}))}));s=(i?function(e){return dr.apply(this,arguments)}(c):function(e){return cr.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return s.catch((function(e){return e})),s}function cr(){return(cr=Qo(Xo().mark((function e(t){return Xo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,(0,tt.A)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dr(){return(dr=Qo(Xo().mark((function e(t){var n;return Xo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(o){o.then((function(o){o.errors.length&&e([o]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ur(e){return Si(e)}function hr(e,t){var n={};return t.forEach((function(t){var o=(0,A.A)(e,t);n=(0,nr.A)(n,t,o)})),n}function mr(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return pr(t,e,n)}))}function pr(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function fr(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,M.A)(t.target)&&e in t.target?t.target[e]:t}function gr(e,t,n){var o=e.length;if(t<0||t>=o||n<0||n>=o)return e;var i=e[t],r=t-n;return r>0?[].concat((0,tt.A)(e.slice(0,n)),[i],(0,tt.A)(e.slice(n,t)),(0,tt.A)(e.slice(t+1,o))):r<0?[].concat((0,tt.A)(e.slice(0,t)),(0,tt.A)(e.slice(t+1,n+1)),[i],(0,tt.A)(e.slice(n+1,o))):e}var br=["name"],vr=[];function yr(e,t,n,o,i,r){return"function"==typeof e?e(t,n,"source"in r?{source:r.source}:{}):o!==i}var wr=function(e){(0,Ce.A)(n,e);var t=(0,_e.A)(n);function n(e){var i;return(0,ye.A)(this,n),i=t.call(this,e),(0,x.A)((0,go.A)(i),"state",{resetCount:0}),(0,x.A)((0,go.A)(i),"cancelRegisterFunc",null),(0,x.A)((0,go.A)(i),"mounted",!1),(0,x.A)((0,go.A)(i),"touched",!1),(0,x.A)((0,go.A)(i),"dirty",!1),(0,x.A)((0,go.A)(i),"validatePromise",void 0),(0,x.A)((0,go.A)(i),"prevValidating",void 0),(0,x.A)((0,go.A)(i),"errors",vr),(0,x.A)((0,go.A)(i),"warnings",vr),(0,x.A)((0,go.A)(i),"cancelRegister",(function(){var e=i.props,t=e.preserve,n=e.isListField,o=e.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(n,t,ur(o)),i.cancelRegisterFunc=null})),(0,x.A)((0,go.A)(i),"getNamePath",(function(){var e=i.props,t=e.name,n=e.fieldContext.prefixName,o=void 0===n?[]:n;return void 0!==t?[].concat((0,tt.A)(o),(0,tt.A)(t)):[]})),(0,x.A)((0,go.A)(i),"getRules",(function(){var e=i.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),(0,x.A)((0,go.A)(i),"refresh",(function(){i.mounted&&i.setState((function(e){return{resetCount:e.resetCount+1}}))})),(0,x.A)((0,go.A)(i),"metaCache",null),(0,x.A)((0,go.A)(i),"triggerMetaEvent",(function(e){var t=i.props.onMetaChange;if(t){var n=(0,E.A)((0,E.A)({},i.getMeta()),{},{destroy:e});(0,d.A)(i.metaCache,n)||t(n),i.metaCache=n}else i.metaCache=null})),(0,x.A)((0,go.A)(i),"onStoreChange",(function(e,t,n){var o=i.props,r=o.shouldUpdate,s=o.dependencies,a=void 0===s?[]:s,l=o.onReset,c=n.store,u=i.getNamePath(),h=i.getValue(e),m=i.getValue(c),p=t&&mr(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||(0,d.A)(h,m)||(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=vr,i.warnings=vr,i.triggerMetaEvent()),n.type){case"reset":if(!t||p)return i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=vr,i.warnings=vr,i.triggerMetaEvent(),null==l||l(),void i.refresh();break;case"remove":if(r&&yr(r,e,c,h,m,n))return void i.reRender();break;case"setField":var f=n.data;if(p)return"touched"in f&&(i.touched=f.touched),"validating"in f&&!("originRCField"in f)&&(i.validatePromise=f.validating?Promise.resolve([]):null),"errors"in f&&(i.errors=f.errors||vr),"warnings"in f&&(i.warnings=f.warnings||vr),i.dirty=!0,i.triggerMetaEvent(),void i.reRender();if("value"in f&&mr(t,u,!0))return void i.reRender();if(r&&!u.length&&yr(r,e,c,h,m,n))return void i.reRender();break;case"dependenciesUpdate":if(a.map(ur).some((function(e){return mr(n.relatedFields,e)})))return void i.reRender();break;default:if(p||(!a.length||u.length||r)&&yr(r,e,c,h,m,n))return void i.reRender()}!0===r&&i.reRender()})),(0,x.A)((0,go.A)(i),"validateRules",(function(e){var t=i.getNamePath(),n=i.getValue(),o=e||{},r=o.triggerName,s=o.validateOnly,a=void 0!==s&&s,l=Promise.resolve().then(Qo(Xo().mark((function o(){var s,a,c,d,u,h,m;return Xo().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(i.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(s=i.props,a=s.validateFirst,c=void 0!==a&&a,d=s.messageVariables,u=s.validateDebounce,h=i.getRules(),r&&(h=h.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||Si(t).includes(r)}))),!u||!r){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,u)}));case 8:if(i.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(m=lr(t,n,h,e,c,d)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vr;if(i.validatePromise===l){var t;i.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,i=e.errors,r=void 0===i?vr:i;t?o.push.apply(o,(0,tt.A)(r)):n.push.apply(n,(0,tt.A)(r))})),i.errors=n,i.warnings=o,i.triggerMetaEvent(),i.reRender()}})),o.abrupt("return",m);case 13:case"end":return o.stop()}}),o)}))));return a||(i.validatePromise=l,i.dirty=!0,i.errors=vr,i.warnings=vr,i.triggerMetaEvent(),i.reRender()),l})),(0,x.A)((0,go.A)(i),"isFieldValidating",(function(){return!!i.validatePromise})),(0,x.A)((0,go.A)(i),"isFieldTouched",(function(){return i.touched})),(0,x.A)((0,go.A)(i),"isFieldDirty",(function(){return!(!i.dirty&&void 0===i.props.initialValue)||void 0!==(0,i.props.fieldContext.getInternalHooks(yi).getInitialValue)(i.getNamePath())})),(0,x.A)((0,go.A)(i),"getErrors",(function(){return i.errors})),(0,x.A)((0,go.A)(i),"getWarnings",(function(){return i.warnings})),(0,x.A)((0,go.A)(i),"isListField",(function(){return i.props.isListField})),(0,x.A)((0,go.A)(i),"isList",(function(){return i.props.isList})),(0,x.A)((0,go.A)(i),"isPreserve",(function(){return i.props.preserve})),(0,x.A)((0,go.A)(i),"getMeta",(function(){return i.prevValidating=i.isFieldValidating(),{touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:null===i.validatePromise}})),(0,x.A)((0,go.A)(i),"getOnlyChild",(function(e){if("function"==typeof e){var t=i.getMeta();return(0,E.A)((0,E.A)({},i.getOnlyChild(e(i.getControlled(),t,i.props.fieldContext))),{},{isFunction:!0})}var n=G(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),(0,x.A)((0,go.A)(i),"getValue",(function(e){var t=i.props.fieldContext.getFieldsValue,n=i.getNamePath();return(0,A.A)(e||t(!0),n)})),(0,x.A)((0,go.A)(i),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.props,n=t.name,o=t.trigger,r=t.validateTrigger,s=t.getValueFromEvent,a=t.normalize,l=t.valuePropName,c=t.getValueProps,d=t.fieldContext,u=void 0!==r?r:d.validateTrigger,h=i.getNamePath(),m=d.getInternalHooks,p=d.getFieldsValue,f=m(yi).dispatch,g=i.getValue(),b=c||function(e){return(0,x.A)({},l,e)},v=e[o],y=void 0!==n?b(g):{},w=(0,E.A)((0,E.A)({},e),y);return w[o]=function(){var e;i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=s?s.apply(void 0,n):fr.apply(void 0,[l].concat(n)),a&&(e=a(e,g,p(!0))),e!==g&&f({type:"updateValue",namePath:h,value:e}),v&&v.apply(void 0,n)},Si(u||[]).forEach((function(e){var t=w[e];w[e]=function(){t&&t.apply(void 0,arguments);var n=i.props.rules;n&&n.length&&f({type:"validateField",namePath:h,triggerName:e})}})),w})),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(yi).initEntityValue)((0,go.A)(i)),i}return(0,we.A)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(yi).registerField;this.cancelRegisterFunc=o(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,i=this.getOnlyChild(n),r=i.child;return i.isFunction?e=r:o.isValidElement(r)?e=o.cloneElement(r,this.getControlled(r.props)):((0,L.Ay)(!r,"`children` of Field is not validate ReactElement."),e=r),o.createElement(o.Fragment,{key:t},e)}}]),n}(o.Component);(0,x.A)(wr,"contextType",Ci),(0,x.A)(wr,"defaultProps",{trigger:"onChange",valuePropName:"value"});const Cr=function(e){var t,n=e.name,i=(0,j.A)(e,br),r=o.useContext(Ci),s=o.useContext(_i),a=void 0!==n?ur(n):void 0,l=null!==(t=i.isListField)&&void 0!==t?t:!!s,c="keep";return l||(c="_".concat((a||[]).join("_"))),o.createElement(wr,(0,f.A)({key:c,name:a,isListField:l},i,{fieldContext:r}))};var _r="__@field_split__";function Sr(e){return e.map((function(e){return"".concat((0,M.A)(e),":").concat(e)})).join(_r)}var Mr=function(){function e(){(0,ye.A)(this,e),(0,x.A)(this,"kvs",new Map)}return(0,we.A)(e,[{key:"set",value:function(e,t){this.kvs.set(Sr(e),t)}},{key:"get",value:function(e){return this.kvs.get(Sr(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Sr(e))}},{key:"map",value:function(e){return(0,tt.A)(this.kvs.entries()).map((function(t){var n=(0,a.A)(t,2),o=n[0],i=n[1],r=o.split(_r);return e({key:r.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,a.A)(t,3),o=n[1],i=n[2];return"number"===o?Number(i):i})),value:i})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,o=t.value;return e[n.join(".")]=o,null})),e}}]),e}();const Er=Mr;var xr=["name"],kr=(0,we.A)((function e(t){var n=this;(0,ye.A)(this,e),(0,x.A)(this,"formHooked",!1),(0,x.A)(this,"forceRootUpdate",void 0),(0,x.A)(this,"subscribable",!0),(0,x.A)(this,"store",{}),(0,x.A)(this,"fieldEntities",[]),(0,x.A)(this,"initialValues",{}),(0,x.A)(this,"callbacks",{}),(0,x.A)(this,"validateMessages",null),(0,x.A)(this,"preserve",null),(0,x.A)(this,"lastValidatePromise",null),(0,x.A)(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),(0,x.A)(this,"getInternalHooks",(function(e){return e===yi?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,L.Ay)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),(0,x.A)(this,"useSubscribe",(function(e){n.subscribable=e})),(0,x.A)(this,"prevWithoutPreserves",null),(0,x.A)(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,i=(0,nr.h)(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;i=(0,nr.A)(i,n,(0,A.A)(e,n))})),n.prevWithoutPreserves=null,n.updateStore(i)}})),(0,x.A)(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new Er;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),(0,x.A)(this,"getInitialValue",(function(e){var t=(0,A.A)(n.initialValues,e);return e.length?(0,nr.h)(t):t})),(0,x.A)(this,"setCallbacks",(function(e){n.callbacks=e})),(0,x.A)(this,"setValidateMessages",(function(e){n.validateMessages=e})),(0,x.A)(this,"setPreserve",(function(e){n.preserve=e})),(0,x.A)(this,"watchList",[]),(0,x.A)(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),(0,x.A)(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,o,e)}))}})),(0,x.A)(this,"timeoutId",null),(0,x.A)(this,"warningUnhooked",(function(){})),(0,x.A)(this,"updateStore",(function(e){n.store=e})),(0,x.A)(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),(0,x.A)(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Er;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),(0,x.A)(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=ur(e);return t.get(n)||{INVALIDATE_NAME_PATH:ur(e)}}))})),(0,x.A)(this,"getFieldsValue",(function(e,t){var o,i,r;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,i=t):e&&"object"===(0,M.A)(e)&&(r=e.strict,i=e.filter),!0===o&&!i)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),a=[];return s.forEach((function(e){var t,n,s,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(r){if(null!==(s=(l=e).isList)&&void 0!==s&&s.call(l))return}else if(!o&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(i){var d="getMeta"in e?e.getMeta():null;i(d)&&a.push(c)}else a.push(c)})),hr(n.store,a.map(ur))})),(0,x.A)(this,"getFieldValue",(function(e){n.warningUnhooked();var t=ur(e);return(0,A.A)(n.store,t)})),(0,x.A)(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:ur(e[n]),errors:[],warnings:[]}}))})),(0,x.A)(this,"getFieldError",(function(e){n.warningUnhooked();var t=ur(e);return n.getFieldsError([t])[0].errors})),(0,x.A)(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=ur(e);return n.getFieldsError([t])[0].warnings})),(0,x.A)(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i,r=t[0],s=t[1],a=!1;0===t.length?i=null:1===t.length?Array.isArray(r)?(i=r.map(ur),a=!1):(i=null,a=r):(i=r.map(ur),a=s);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!i)return a?l.every((function(e){return c(e)||e.isList()})):l.some(c);var d=new Er;i.forEach((function(e){d.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();i.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&d.update(n,(function(t){return[].concat((0,tt.A)(t),[e])}))}))}));var u=function(e){return e.some(c)},h=d.map((function(e){return e.value}));return a?h.every(u):h.some(u)})),(0,x.A)(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),(0,x.A)(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(ur);return t.some((function(e){var t=e.getNamePath();return mr(o,t)&&e.isFieldValidating()}))})),(0,x.A)(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),(0,x.A)(this,"resetWithFieldInitialValue",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=new Er,i=n.getFieldEntities(!0);i.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var i=o.get(n)||new Set;i.add({entity:e,value:t}),o.set(n,i)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,i=o.get(t);i&&(n=e).push.apply(n,(0,tt.A)((0,tt.A)(i).map((function(e){return e.entity}))))}))):e=i,e.forEach((function(e){if(void 0!==e.props.initialValue){var i=e.getNamePath();if(void 0!==n.getInitialValue(i))(0,L.Ay)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var r=o.get(i);if(r&&r.size>1)(0,L.Ay)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(r){var s=n.getFieldValue(i);e.isListField()||t.skipExist&&void 0!==s||n.updateStore((0,nr.A)(n.store,i,(0,tt.A)(r)[0].value))}}}}))})),(0,x.A)(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore((0,nr.h)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(ur);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore((0,nr.A)(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),(0,x.A)(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var i=e.name,r=(0,j.A)(e,xr),s=ur(i);o.push(s),"value"in r&&n.updateStore((0,nr.A)(n.store,s,r.value)),n.notifyObservers(t,[s],{type:"setField",data:e})})),n.notifyWatch(o)})),(0,x.A)(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=e.getMeta(),i=(0,E.A)((0,E.A)({},o),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(i,"originRCField",{value:!0}),i}))})),(0,x.A)(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===(0,A.A)(n.store,o)&&n.updateStore((0,nr.A)(n.store,o,t))}})),(0,x.A)(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),(0,x.A)(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var o=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(o,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(i)&&(!o||r.length>1)){var s=o?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==s&&n.fieldEntities.every((function(e){return!pr(e.getNamePath(),t)}))){var a=n.store;n.updateStore((0,nr.A)(a,t,s,!0)),n.notifyObservers(a,[t],{type:"remove"}),n.triggerDependenciesUpdate(a,t)}}n.notifyWatch([t])}})),(0,x.A)(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,o=e.value;n.updateValue(t,o);break;case"validateField":var i=e.namePath,r=e.triggerName;n.validateFields([i],{triggerName:r})}})),(0,x.A)(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var i=(0,E.A)((0,E.A)({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,i)}))}else n.forceRootUpdate()})),(0,x.A)(this,"triggerDependenciesUpdate",(function(e,t){var o=n.getDependencyChildrenFields(t);return o.length&&n.validateFields(o),n.notifyObservers(e,o,{type:"dependenciesUpdate",relatedFields:[t].concat((0,tt.A)(o))}),o})),(0,x.A)(this,"updateValue",(function(e,t){var o=ur(e),i=n.store;n.updateStore((0,nr.A)(n.store,o,t)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var r=n.triggerDependenciesUpdate(i,o),s=n.callbacks.onValuesChange;s&&s(hr(n.store,[o]),n.getFieldsValue()),n.triggerOnFieldsChange([o].concat((0,tt.A)(r)))})),(0,x.A)(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=(0,nr.h)(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),(0,x.A)(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])})),(0,x.A)(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],i=new Er;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=ur(t);i.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(i.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(o.push(i),e(i))}}))}(e),o})),(0,x.A)(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(t){var r=new Er;t.forEach((function(e){var t=e.name,n=e.errors;r.set(t,n)})),i.forEach((function(e){e.errors=r.get(e.name)||e.errors}))}var s=i.filter((function(t){var n=t.name;return mr(e,n)}));s.length&&o(s,i)}})),(0,x.A)(this,"validateFields",(function(e,t){var o,i;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,i=t):i=e;var r=!!o,s=r?o.map(ur):[],a=[],l=String(Date.now()),c=new Set,d=i||{},u=d.recursive,h=d.dirty;n.getFieldEntities(!0).forEach((function(e){if(r||s.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!h||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!r||mr(s,t,u)){var o=e.validateRules((0,E.A)({validateMessages:(0,E.A)((0,E.A)({},tr),n.validateMessages)},i));a.push(o.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,o=[],i=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?i.push.apply(i,(0,tt.A)(n)):o.push.apply(o,(0,tt.A)(n))})),o.length?Promise.reject({name:t,errors:o,warnings:i}):{name:t,errors:o,warnings:i}})))}}}));var m=function(e){var t=!1,n=e.length,o=[];return e.length?new Promise((function(i,r){e.forEach((function(e,s){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,o[s]=e,n>0||(t&&r(o),i(o))}))}))})):Promise.resolve([])}(a);n.lastValidatePromise=m,m.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var p=m.then((function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(s),errorFields:t,outOfDate:n.lastValidatePromise!==m})}));p.catch((function(e){return e}));var f=s.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(f),p})),(0,x.A)(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const Tr=function(e){var t=o.useRef(),n=o.useState({}),i=(0,a.A)(n,2)[1];if(!t.current)if(e)t.current=e;else{var r=new kr((function(){i({})}));t.current=r.getForm()}return[t.current]};var Rr=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const Ar=Rr;var Lr=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const Or=function(e,t){var n=e.name,i=e.initialValues,r=e.fields,s=e.form,l=e.preserve,c=e.children,d=e.component,u=void 0===d?"form":d,h=e.validateMessages,m=e.validateTrigger,p=void 0===m?"onChange":m,g=e.onValuesChange,b=e.onFieldsChange,v=e.onFinish,y=e.onFinishFailed,w=e.clearOnDestroy,C=(0,j.A)(e,Lr),_=o.useRef(null),S=o.useContext(Ar),x=Tr(s),k=(0,a.A)(x,1)[0],T=k.getInternalHooks(yi),R=T.useSubscribe,A=T.setInitialValues,L=T.setCallbacks,O=T.setValidateMessages,D=T.setPreserve,H=T.destroyForm;o.useImperativeHandle(t,(function(){return(0,E.A)((0,E.A)({},k),{},{nativeElement:_.current})})),o.useEffect((function(){return S.registerForm(n,k),function(){S.unregisterForm(n)}}),[S,k,n]),O((0,E.A)((0,E.A)({},S.validateMessages),h)),L({onValuesChange:g,onFieldsChange:function(e){if(S.triggerFormChange(n,e),b){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];b.apply(void 0,[e].concat(o))}},onFinish:function(e){S.triggerFormFinish(n,e),v&&v(e)},onFinishFailed:y}),D(l);var I,P=o.useRef(null);A(i,!P.current),P.current||(P.current=!0),o.useEffect((function(){return function(){return H(w)}}),[]);var N="function"==typeof c;I=N?c(k.getFieldsValue(!0),k):c,R(!N);var F=o.useRef();o.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==(0,M.A)(e)||"object"!==(0,M.A)(t))return!1;var n=Object.keys(e),o=Object.keys(t),i=new Set([].concat(n,o));return(0,tt.A)(i).every((function(n){var o=e[n],i=t[n];return"function"==typeof o&&"function"==typeof i||o===i}))})(F.current||[],r||[])||k.setFields(r||[]),F.current=r}),[r,k]);var z=o.useMemo((function(){return(0,E.A)((0,E.A)({},k),{},{validateTrigger:p})}),[k,p]),Y=o.createElement(_i.Provider,{value:null},o.createElement(Ci.Provider,{value:z},I));return!1===u?Y:o.createElement(u,(0,f.A)({},C,{ref:_,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),k.submit()},onReset:function(e){var t;e.preventDefault(),k.resetFields(),null===(t=C.onReset)||void 0===t||t.call(C,e)}}),Y)};function Dr(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var Hr=o.forwardRef(Or);Hr.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,i=e.onFormFinish,r=e.children,s=o.useContext(Rr),a=o.useRef({});return o.createElement(Rr.Provider,{value:(0,E.A)((0,E.A)({},s),{},{validateMessages:(0,E.A)((0,E.A)({},s.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),s.triggerFormChange(e,t)},triggerFormFinish:function(e,t){i&&i(e,{values:t,forms:a.current}),s.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=(0,E.A)((0,E.A)({},a.current),{},(0,x.A)({},e,t))),s.registerForm(e,t)},unregisterForm:function(e){var t=(0,E.A)({},a.current);delete t[e],a.current=t,s.unregisterForm(e)}})},r)},Hr.Field=Cr,Hr.List=function(e){var t=e.name,n=e.initialValue,i=e.children,r=e.rules,s=e.validateTrigger,a=e.isListField,l=o.useContext(Ci),c=o.useContext(_i),d=o.useRef({keys:[],id:0}).current,u=o.useMemo((function(){var e=ur(l.prefixName)||[];return[].concat((0,tt.A)(e),(0,tt.A)(ur(t)))}),[l.prefixName,t]),h=o.useMemo((function(){return(0,E.A)((0,E.A)({},l),{},{prefixName:u})}),[l,u]),m=o.useMemo((function(){return{getKey:function(e){var t=u.length,n=e[t];return[d.keys[n],e.slice(t+1)]}}}),[u]);return"function"!=typeof i?((0,L.Ay)(!1,"Form.List only accepts function as children."),null):o.createElement(_i.Provider,{value:m},o.createElement(Ci.Provider,{value:h},o.createElement(Cr,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:r,validateTrigger:s,initialValue:n,isList:!0,isListField:null!=a?a:!!c},(function(e,t){var n=e.value,o=void 0===n?[]:n,r=e.onChange,s=l.getFieldValue,a=function(){return s(u||[])||[]},c={add:function(e,t){var n=a();t>=0&&t<=n.length?(d.keys=[].concat((0,tt.A)(d.keys.slice(0,t)),[d.id],(0,tt.A)(d.keys.slice(t))),r([].concat((0,tt.A)(n.slice(0,t)),[e],(0,tt.A)(n.slice(t))))):(d.keys=[].concat((0,tt.A)(d.keys),[d.id]),r([].concat((0,tt.A)(n),[e]))),d.id+=1},remove:function(e){var t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(d.keys=d.keys.filter((function(e,t){return!n.has(t)})),r(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=a();e<0||e>=n.length||t<0||t>=n.length||(d.keys=gr(d.keys,e,t),r(gr(n,e,t)))}}},h=o||[];return Array.isArray(h)||(h=[]),i(h.map((function(e,t){var n=d.keys[t];return void 0===n&&(d.keys[t]=d.id,n=d.keys[t],d.id+=1),{name:t,key:n,isListField:!0}})),c,t)}))))},Hr.useForm=Tr,Hr.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0],r=t[1],s=void 0===r?{}:r,l=function(e){return e&&!!e._init}(s)?{form:s}:s,c=l.form,d=(0,o.useState)(),u=(0,a.A)(d,2),h=u[0],m=u[1],p=(0,o.useMemo)((function(){return Dr(h)}),[h]),f=(0,o.useRef)(p);f.current=p;var g=(0,o.useContext)(Ci),b=c||g,v=b&&b._init,y=ur(i),w=(0,o.useRef)(y);return w.current=y,(0,o.useEffect)((function(){if(v){var e=b.getFieldsValue,t=(0,b.getInternalHooks)(yi).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof i?i(n):(0,A.A)(n,w.current)},o=t((function(e,t){var o=n(e,t),i=Dr(o);f.current!==i&&(f.current=i,m(o))})),r=n(e(),e(!0));return h!==r&&m(r),o}}),[v]),h};const Ir=o.createContext({}),Pr=({children:e,status:t,override:n})=>{const i=o.useContext(Ir),r=o.useMemo((()=>{const e=Object.assign({},i);return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[t,n,i]);return o.createElement(Ir.Provider,{value:r},e)},Nr=o.createContext(void 0),Fr=o.createContext(null),zr=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,Do.dF)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},(0,Do.dF)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,Do.dF)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,Do.jk)(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${(0,fo.zA)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function jr(e,t){const n=ko(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[zr(n)]}const Yr=Io("Checkbox",((e,{prefixCls:t})=>[jr(t,e)]));function $r(e){const t=o.useRef(null),n=()=>{bt.A.cancel(t.current),t.current=null};return[()=>{n(),t.current=(0,bt.A)((()=>{t.current=null}))},o=>{t.current&&(o.stopPropagation(),n()),null==e||e(o)}]}const Br=(e,t)=>{var n;const{prefixCls:i,className:r,rootClassName:s,children:a,indeterminate:l=!1,style:c,onMouseEnter:d,onMouseLeave:u,skipGroup:h=!1,disabled:m}=e,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:f,direction:b,checkbox:v}=o.useContext(ho.QO),y=o.useContext(Fr),{isFormItemInput:w}=o.useContext(Ir),C=o.useContext(bi.A),_=null!==(n=(null==y?void 0:y.disabled)||m)&&void 0!==n?n:C,S=o.useRef(p.value),M=o.useRef(null),E=(0,g.K4)(t,M);o.useEffect((()=>{null==y||y.registerValue(p.value)}),[]),o.useEffect((()=>{if(!h)return p.value!==S.current&&(null==y||y.cancelValue(S.current),null==y||y.registerValue(p.value),S.current=p.value),()=>null==y?void 0:y.cancelValue(p.value)}),[p.value]),o.useEffect((()=>{var e;(null===(e=M.current)||void 0===e?void 0:e.input)&&(M.current.input.indeterminate=l)}),[l]);const x=f("checkbox",i),k=vi(x),[R,A,L]=Yr(x,k),O=Object.assign({},p);y&&!h&&(O.onChange=(...e)=>{p.onChange&&p.onChange.apply(p,e),y.toggleOption&&y.toggleOption({label:a,value:p.value})},O.name=y.name,O.checked=y.value.includes(p.value));const D=T()(`${x}-wrapper`,{[`${x}-rtl`]:"rtl"===b,[`${x}-wrapper-checked`]:O.checked,[`${x}-wrapper-disabled`]:_,[`${x}-wrapper-in-form-item`]:w},null==v?void 0:v.className,r,s,L,k,A),H=T()({[`${x}-indeterminate`]:l},jo,A),[I,P]=$r(O.onClick);return R(o.createElement(gi,{component:"Checkbox",disabled:_},o.createElement("label",{className:D,style:Object.assign(Object.assign({},null==v?void 0:v.style),c),onMouseEnter:d,onMouseLeave:u,onClick:I},o.createElement(uo,Object.assign({},O,{onClick:P,prefixCls:x,className:H,disabled:_,ref:E})),null!=a&&o.createElement("span",{className:`${x}-label`},a))))},Wr=o.forwardRef(Br);const Vr=o.forwardRef(((e,t)=>{const{defaultValue:n,children:i,options:r=[],prefixCls:s,className:a,rootClassName:l,style:c,onChange:d}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:h,direction:m}=o.useContext(ho.QO),[p,f]=o.useState(u.value||n||[]),[g,b]=o.useState([]);o.useEffect((()=>{"value"in u&&f(u.value||[])}),[u.value]);const v=o.useMemo((()=>r.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[r]),y=e=>{b((t=>t.filter((t=>t!==e))))},w=e=>{b((t=>[].concat((0,tt.A)(t),[e])))},C=e=>{const t=p.indexOf(e.value),n=(0,tt.A)(p);-1===t?n.push(e.value):n.splice(t,1),"value"in u||f(n),null==d||d(n.filter((e=>g.includes(e))).sort(((e,t)=>v.findIndex((t=>t.value===e))-v.findIndex((e=>e.value===t)))))},_=h("checkbox",s),S=`${_}-group`,M=vi(_),[E,x,k]=Yr(_,M),R=Dn(u,["value","disabled"]),A=r.length?v.map((e=>o.createElement(Wr,{prefixCls:_,key:e.value.toString(),disabled:"disabled"in e?e.disabled:u.disabled,value:e.value,checked:p.includes(e.value),onChange:e.onChange,className:T()(`${S}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label))):i,L=o.useMemo((()=>({toggleOption:C,value:p,disabled:u.disabled,name:u.name,registerValue:w,cancelValue:y})),[C,p,u.disabled,u.name,w,y]),O=T()(S,{[`${S}-rtl`]:"rtl"===m},a,l,k,M,x);return E(o.createElement("div",Object.assign({className:O,style:c},R,{ref:t}),o.createElement(Fr.Provider,{value:L},A)))})),Ur=Vr,Gr=Wr;Gr.Group=Ur,Gr.__ANT_CHECKBOX=!0;const Kr=Gr,qr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var Xr=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:qr}))};const Jr=o.forwardRef(Xr),Qr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var Zr=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:Qr}))};const es=o.forwardRef(Zr),ts=o.createContext(null);var ns=[],os="rc-util-locker-".concat(Date.now()),is=0;var rs=!1,ss=function(e){return!1!==e&&((0,Re.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},as=o.forwardRef((function(e,t){var n=e.open,i=e.autoLock,r=e.getContainer,s=(e.debug,e.autoDestroy),l=void 0===s||s,d=e.children,h=o.useState(n),m=(0,a.A)(h,2),p=m[0],f=m[1],b=p||n;o.useEffect((function(){(l||n)&&f(n)}),[n,l]);var v=o.useState((function(){return ss(r)})),y=(0,a.A)(v,2),w=y[0],C=y[1];o.useEffect((function(){var e=ss(r);C(null!=e?e:null)}));var _=function(e){var t=o.useState((function(){return(0,Re.A)()?document.createElement("div"):null})),n=(0,a.A)(t,1)[0],i=o.useRef(!1),r=o.useContext(ts),s=o.useState(ns),l=(0,a.A)(s,2),d=l[0],u=l[1],h=r||(i.current?void 0:function(e){u((function(t){return[e].concat((0,tt.A)(t))}))});function m(){n.parentElement||document.body.appendChild(n),i.current=!0}function p(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),i.current=!1}return(0,c.A)((function(){return e?r?r(m):m():p(),p}),[e]),(0,c.A)((function(){d.length&&(d.forEach((function(e){return e()})),u(ns))}),[d]),[n,h]}(b&&!w),S=(0,a.A)(_,2),M=S[0],E=S[1],x=null!=w?w:M;!function(e){var t=!!e,n=o.useState((function(){return is+=1,"".concat(os,"_").concat(is)})),i=(0,a.A)(n,1)[0];(0,c.A)((function(){if(t){var e=Ie(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,Oe.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else(0,Oe.m6)(i);return function(){(0,Oe.m6)(i)}}),[t,i])}(i&&n&&(0,Re.A)()&&(x===M||x===document.body));var k=null;d&&(0,g.f3)(d)&&t&&(k=d.ref);var T=(0,g.xK)(k,t);if(!b||!(0,Re.A)()||void 0===w)return null;var R=!1===x||rs,A=d;return t&&(A=o.cloneElement(d,{ref:T})),o.createElement(ts.Provider,{value:E},R?A:(0,u.createPortal)(A,x))}));const ls=as;var cs=0,ds=(0,E.A)({},i).useId;const us=ds?function(e){var t=ds();return e||t}:function(e){var t=o.useState("ssr-id"),n=(0,a.A)(t,2),i=n[0],r=n[1];return o.useEffect((function(){var e=cs;cs+=1,r("rc_unique_".concat(e))}),[]),e||i},hs=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};function ms(e){var t=e.prefixCls,n=e.align,i=e.arrow,r=e.arrowPos,s=i||{},a=s.className,l=s.content,c=r.x,d=void 0===c?0:c,u=r.y,h=void 0===u?0:u,m=o.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var f=n.points[0],g=n.points[1],b=f[0],v=f[1],y=g[0],w=g[1];b!==y&&["t","b"].includes(b)?"t"===b?p.top=0:p.bottom=0:p.top=h,v!==w&&["l","r"].includes(v)?"l"===v?p.left=0:p.right=0:p.left=d}return o.createElement("div",{ref:m,className:T()("".concat(t,"-arrow"),a),style:p},l)}function ps(e){var t=e.prefixCls,n=e.open,i=e.zIndex,r=e.mask,s=e.motion;return r?o.createElement(Yo.Ay,(0,f.A)({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return o.createElement("div",{style:{zIndex:i},className:T()("".concat(t,"-mask"),n)})})):null}const fs=o.memo((function(e){return e.children}),(function(e,t){return t.cache}));var gs=o.forwardRef((function(e,t){var n=e.popup,i=e.className,r=e.prefixCls,s=e.style,l=e.target,d=e.onVisibleChanged,u=e.open,h=e.keepDom,m=e.fresh,p=e.onClick,b=e.mask,v=e.arrow,y=e.arrowPos,w=e.align,C=e.motion,_=e.maskMotion,S=e.forceRender,M=e.getPopupContainer,x=e.autoDestroy,k=e.portal,R=e.zIndex,A=e.onMouseEnter,L=e.onMouseLeave,O=e.onPointerEnter,D=e.onPointerDownCapture,H=e.ready,I=e.offsetX,P=e.offsetY,N=e.offsetR,F=e.offsetB,z=e.onAlign,j=e.onPrepare,Y=e.stretch,$=e.targetWidth,B=e.targetHeight,W="function"==typeof n?n():n,V=u||h,U=(null==M?void 0:M.length)>0,G=o.useState(!M||!U),K=(0,a.A)(G,2),q=K[0],X=K[1];if((0,c.A)((function(){!q&&U&&l&&X(!0)}),[q,U,l]),!q)return null;var J="auto",Q={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(H||!u){var Z,ee=w.points,te=w.dynamicInset||(null===(Z=w._experimental)||void 0===Z?void 0:Z.dynamicInset),ne=te&&"r"===ee[0][1],oe=te&&"b"===ee[0][0];ne?(Q.right=N,Q.left=J):(Q.left=I,Q.right=J),oe?(Q.bottom=F,Q.top=J):(Q.top=P,Q.bottom=J)}var ie={};return Y&&(Y.includes("height")&&B?ie.height=B:Y.includes("minHeight")&&B&&(ie.minHeight=B),Y.includes("width")&&$?ie.width=$:Y.includes("minWidth")&&$&&(ie.minWidth=$)),u||(ie.pointerEvents="none"),o.createElement(k,{open:S||V,getContainer:M&&function(){return M(l)},autoDestroy:x},o.createElement(ps,{prefixCls:r,open:u,zIndex:R,mask:b,motion:_}),o.createElement(Te,{onResize:z,disabled:!u},(function(e){return o.createElement(Yo.Ay,(0,f.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(r,"-hidden")},C,{onAppearPrepare:j,onEnterPrepare:j,visible:u,onVisibleChanged:function(e){var t;null==C||null===(t=C.onVisibleChanged)||void 0===t||t.call(C,e),d(e)}}),(function(n,a){var l=n.className,c=n.style,d=T()(r,l,i);return o.createElement("div",{ref:(0,g.K4)(e,t,a),className:d,style:(0,E.A)((0,E.A)((0,E.A)((0,E.A)({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},Q),ie),c),{},{boxSizing:"border-box",zIndex:R},s),onMouseEnter:A,onMouseLeave:L,onPointerEnter:O,onClick:p,onPointerDownCapture:D},v&&o.createElement(ms,{prefixCls:r,arrow:v,arrowPos:y,align:w}),o.createElement(fs,{cache:!u&&!m},W))}))})))}));const bs=gs,vs=o.forwardRef((function(e,t){var n=e.children,i=e.getTriggerDOMNode,r=(0,g.f3)(n),s=o.useCallback((function(e){(0,g.Xf)(t,i?i(e):e)}),[i]),a=(0,g.xK)(s,(0,g.A9)(n));return r?o.cloneElement(n,{ref:a}):n})),ys=o.createContext(null);function ws(e){return e?Array.isArray(e)?e:[e]:[]}function Cs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _s(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function Ss(e){return e.ownerDocument.defaultView}function Ms(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var i=Ss(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some((function(e){return o.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Es(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function xs(e){return Es(parseFloat(e),0)}function ks(e,t){var n=(0,E.A)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Ss(e).getComputedStyle(e),o=t.overflow,i=t.overflowClipMargin,r=t.borderTopWidth,s=t.borderBottomWidth,a=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),d=e.offsetHeight,u=e.clientHeight,h=e.offsetWidth,m=e.clientWidth,p=xs(r),f=xs(s),g=xs(a),b=xs(l),v=Es(Math.round(c.width/h*1e3)/1e3),y=Es(Math.round(c.height/d*1e3)/1e3),w=(h-m-g-b)*v,C=(d-u-p-f)*y,_=p*y,S=f*y,M=g*v,E=b*v,x=0,k=0;if("clip"===o){var T=xs(i);x=T*v,k=T*y}var R=c.x+M-x,A=c.y+_-k,L=R+c.width+2*x-M-E-w,O=A+c.height+2*k-_-S-C;n.left=Math.max(n.left,R),n.top=Math.max(n.top,A),n.right=Math.min(n.right,L),n.bottom=Math.min(n.bottom,O)}})),n}function Ts(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Rs(e,t){var n=t||[],o=(0,a.A)(n,2),i=o[0],r=o[1];return[Ts(e.width,i),Ts(e.height,r)]}function As(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Ls(e,t){var n,o=t[0],i=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:n}}function Os(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}var Ds=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Hs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ls,t=o.forwardRef((function(t,n){var i=t.prefixCls,r=void 0===i?"rc-trigger-popup":i,s=t.children,d=t.action,u=void 0===d?"hover":d,h=t.showAction,m=t.hideAction,p=t.popupVisible,f=t.defaultPopupVisible,g=t.onPopupVisibleChange,b=t.afterPopupVisibleChange,v=t.mouseEnterDelay,y=t.mouseLeaveDelay,w=void 0===y?.1:y,C=t.focusDelay,_=t.blurDelay,S=t.mask,M=t.maskClosable,x=void 0===M||M,k=t.getPopupContainer,R=t.forceRender,A=t.autoDestroy,L=t.destroyPopupOnHide,O=t.popup,D=t.popupClassName,H=t.popupStyle,I=t.popupPlacement,P=t.builtinPlacements,N=void 0===P?{}:P,F=t.popupAlign,z=t.zIndex,Y=t.stretch,$=t.getPopupClassNameFromAlign,B=t.fresh,W=t.alignPoint,V=t.onPopupClick,U=t.onPopupAlign,G=t.arrow,q=t.popupMotion,X=t.maskMotion,J=t.popupTransitionName,Q=t.popupAnimation,Z=t.maskTransitionName,ee=t.maskAnimation,te=t.className,ne=t.getTriggerDOMNode,oe=(0,j.A)(t,Ds),ie=A||L||!1,re=o.useState(!1),se=(0,a.A)(re,2),ae=se[0],le=se[1];(0,c.A)((function(){le(hs())}),[]);var ce=o.useRef({}),de=o.useContext(ys),ue=o.useMemo((function(){return{registerSubPopup:function(e,t){ce.current[e]=t,null==de||de.registerSubPopup(e,t)}}}),[de]),he=us(),me=o.useState(null),pe=(0,a.A)(me,2),fe=pe[0],ge=pe[1],be=o.useRef(null),ve=(0,l.A)((function(e){be.current=e,(0,K.fk)(e)&&fe!==e&&ge(e),null==de||de.registerSubPopup(he,e)})),ye=o.useState(null),we=(0,a.A)(ye,2),Ce=we[0],_e=we[1],Se=o.useRef(null),Me=(0,l.A)((function(e){(0,K.fk)(e)&&Ce!==e&&(_e(e),Se.current=e)})),Ee=o.Children.only(s),xe=(null==Ee?void 0:Ee.props)||{},ke={},Re=(0,l.A)((function(e){var t,n,o=Ce;return(null==o?void 0:o.contains(e))||(null===(t=hn(o))||void 0===t?void 0:t.host)===e||e===o||(null==fe?void 0:fe.contains(e))||(null===(n=hn(fe))||void 0===n?void 0:n.host)===e||e===fe||Object.values(ce.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ae=_s(r,q,Q,J),Le=_s(r,X,ee,Z),Oe=o.useState(f||!1),De=(0,a.A)(Oe,2),He=De[0],Ie=De[1],Pe=null!=p?p:He,Ne=(0,l.A)((function(e){void 0===p&&Ie(e)}));(0,c.A)((function(){Ie(p||!1)}),[p]);var Fe=o.useRef(Pe);Fe.current=Pe;var ze=o.useRef([]);ze.current=[];var je=(0,l.A)((function(e){var t;Ne(e),(null!==(t=ze.current[ze.current.length-1])&&void 0!==t?t:Pe)!==e&&(ze.current.push(e),null==g||g(e))})),Ye=o.useRef(),$e=function(){clearTimeout(Ye.current)},Be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;$e(),0===t?je(e):Ye.current=setTimeout((function(){je(e)}),1e3*t)};o.useEffect((function(){return $e}),[]);var We=o.useState(!1),Ve=(0,a.A)(We,2),Ue=Ve[0],Ge=Ve[1];(0,c.A)((function(e){e&&!Pe||Ge(!0)}),[Pe]);var qe=o.useState(null),Xe=(0,a.A)(qe,2),Je=Xe[0],Qe=Xe[1],Ze=o.useState(null),et=(0,a.A)(Ze,2),nt=et[0],ot=et[1],it=function(e){ot([e.clientX,e.clientY])},rt=function(e,t,n,i,r,s,d){var u=o.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[i]||{}}),h=(0,a.A)(u,2),m=h[0],p=h[1],f=o.useRef(0),g=o.useMemo((function(){return t?Ms(t):[]}),[t]),b=o.useRef({});e||(b.current={});var v=(0,l.A)((function(){if(t&&n&&e){var o,l,c,u,h,m=t,f=m.ownerDocument,v=Ss(m),y=v.getComputedStyle(m).position,w=m.style.left,C=m.style.top,_=m.style.right,S=m.style.bottom,M=m.style.overflow,x=(0,E.A)((0,E.A)({},r[i]),s),k=f.createElement("div");if(null===(o=m.parentElement)||void 0===o||o.appendChild(k),k.style.left="".concat(m.offsetLeft,"px"),k.style.top="".concat(m.offsetTop,"px"),k.style.position=y,k.style.height="".concat(m.offsetHeight,"px"),k.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))h={x:n[0],y:n[1],width:0,height:0};else{var T,R,A=n.getBoundingClientRect();A.x=null!==(T=A.x)&&void 0!==T?T:A.left,A.y=null!==(R=A.y)&&void 0!==R?R:A.top,h={x:A.x,y:A.y,width:A.width,height:A.height}}var L=m.getBoundingClientRect(),O=v.getComputedStyle(m),D=O.height,H=O.width;L.x=null!==(l=L.x)&&void 0!==l?l:L.left,L.y=null!==(c=L.y)&&void 0!==c?c:L.top;var I=f.documentElement,P=I.clientWidth,N=I.clientHeight,F=I.scrollWidth,z=I.scrollHeight,j=I.scrollTop,Y=I.scrollLeft,$=L.height,B=L.width,W=h.height,V=h.width,U={left:0,top:0,right:P,bottom:N},G={left:-Y,top:-j,right:F-Y,bottom:z-j},q=x.htmlRegion,X="visible",J="visibleFirst";"scroll"!==q&&q!==J&&(q=X);var Q=q===J,Z=ks(G,g),ee=ks(U,g),te=q===X?ee:Z,ne=Q?ee:te;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var oe=m.getBoundingClientRect();m.style.left=w,m.style.top=C,m.style.right=_,m.style.bottom=S,m.style.overflow=M,null===(u=m.parentElement)||void 0===u||u.removeChild(k);var ie=Es(Math.round(B/parseFloat(H)*1e3)/1e3),re=Es(Math.round($/parseFloat(D)*1e3)/1e3);if(0===ie||0===re||(0,K.fk)(n)&&!Ke(n))return;var se=x.offset,ae=x.targetOffset,le=Rs(L,se),ce=(0,a.A)(le,2),de=ce[0],ue=ce[1],he=Rs(h,ae),me=(0,a.A)(he,2),pe=me[0],fe=me[1];h.x-=pe,h.y-=fe;var ge=x.points||[],be=(0,a.A)(ge,2),ve=be[0],ye=As(be[1]),we=As(ve),Ce=Ls(h,ye),_e=Ls(L,we),Se=(0,E.A)({},x),Me=Ce.x-_e.x+de,Ee=Ce.y-_e.y+ue;function yt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:te,o=L.x+e,i=L.y+t,r=o+B,s=i+$,a=Math.max(o,n.left),l=Math.max(i,n.top),c=Math.min(r,n.right),d=Math.min(s,n.bottom);return Math.max(0,(c-a)*(d-l))}var xe,ke,Te,Re,Ae=yt(Me,Ee),Le=yt(Me,Ee,ee),Oe=Ls(h,["t","l"]),De=Ls(L,["t","l"]),He=Ls(h,["b","r"]),Ie=Ls(L,["b","r"]),Pe=x.overflow||{},Ne=Pe.adjustX,Fe=Pe.adjustY,ze=Pe.shiftX,je=Pe.shiftY,Ye=function(e){return"boolean"==typeof e?e:e>=0};function wt(){xe=L.y+Ee,ke=xe+$,Te=L.x+Me,Re=Te+B}wt();var $e=Ye(Fe),Be=we[0]===ye[0];if($e&&"t"===we[0]&&(ke>ne.bottom||b.current.bt)){var We=Ee;Be?We-=$-W:We=Oe.y-Ie.y-ue;var Ve=yt(Me,We),Ue=yt(Me,We,ee);Ve>Ae||Ve===Ae&&(!Q||Ue>=Le)?(b.current.bt=!0,Ee=We,ue=-ue,Se.points=[Os(we,0),Os(ye,0)]):b.current.bt=!1}if($e&&"b"===we[0]&&(xe<ne.top||b.current.tb)){var Ge=Ee;Be?Ge+=$-W:Ge=He.y-De.y-ue;var qe=yt(Me,Ge),Xe=yt(Me,Ge,ee);qe>Ae||qe===Ae&&(!Q||Xe>=Le)?(b.current.tb=!0,Ee=Ge,ue=-ue,Se.points=[Os(we,0),Os(ye,0)]):b.current.tb=!1}var Je=Ye(Ne),Qe=we[1]===ye[1];if(Je&&"l"===we[1]&&(Re>ne.right||b.current.rl)){var Ze=Me;Qe?Ze-=B-V:Ze=Oe.x-Ie.x-de;var et=yt(Ze,Ee),tt=yt(Ze,Ee,ee);et>Ae||et===Ae&&(!Q||tt>=Le)?(b.current.rl=!0,Me=Ze,de=-de,Se.points=[Os(we,1),Os(ye,1)]):b.current.rl=!1}if(Je&&"r"===we[1]&&(Te<ne.left||b.current.lr)){var nt=Me;Qe?nt+=B-V:nt=He.x-De.x-de;var ot=yt(nt,Ee),it=yt(nt,Ee,ee);ot>Ae||ot===Ae&&(!Q||it>=Le)?(b.current.lr=!0,Me=nt,de=-de,Se.points=[Os(we,1),Os(ye,1)]):b.current.lr=!1}wt();var rt=!0===ze?0:ze;"number"==typeof rt&&(Te<ee.left&&(Me-=Te-ee.left-de,h.x+V<ee.left+rt&&(Me+=h.x-ee.left+V-rt)),Re>ee.right&&(Me-=Re-ee.right-de,h.x>ee.right-rt&&(Me+=h.x-ee.right+rt)));var st=!0===je?0:je;"number"==typeof st&&(xe<ee.top&&(Ee-=xe-ee.top-ue,h.y+W<ee.top+st&&(Ee+=h.y-ee.top+W-st)),ke>ee.bottom&&(Ee-=ke-ee.bottom-ue,h.y>ee.bottom-st&&(Ee+=h.y-ee.bottom+st)));var at=L.x+Me,lt=at+B,ct=L.y+Ee,dt=ct+$,ut=h.x,ht=ut+V,mt=h.y,pt=mt+W,ft=(Math.max(at,ut)+Math.min(lt,ht))/2-at,gt=(Math.max(ct,mt)+Math.min(dt,pt))/2-ct;null==d||d(t,Se);var bt=oe.right-L.x-(Me+L.width),vt=oe.bottom-L.y-(Ee+L.height);1===ie&&(Me=Math.round(Me),bt=Math.round(bt)),1===re&&(Ee=Math.round(Ee),vt=Math.round(vt)),p({ready:!0,offsetX:Me/ie,offsetY:Ee/re,offsetR:bt/ie,offsetB:vt/re,arrowX:ft/ie,arrowY:gt/re,scaleX:ie,scaleY:re,align:Se})}})),y=function(){p((function(e){return(0,E.A)((0,E.A)({},e),{},{ready:!1})}))};return(0,c.A)(y,[i]),(0,c.A)((function(){e||y()}),[e]),[m.ready,m.offsetX,m.offsetY,m.offsetR,m.offsetB,m.arrowX,m.arrowY,m.scaleX,m.scaleY,m.align,function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&v()}))}]}(Pe,fe,W&&null!==nt?nt:Ce,I,N,F,U),st=(0,a.A)(rt,11),at=st[0],lt=st[1],ct=st[2],dt=st[3],ut=st[4],ht=st[5],mt=st[6],pt=st[7],ft=st[8],gt=st[9],bt=st[10],vt=function(e,t,n,i){return o.useMemo((function(){var o=ws(null!=n?n:t),r=ws(null!=i?i:t),s=new Set(o),a=new Set(r);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),a.has("hover")&&(a.delete("hover"),a.add("click"))),[s,a]}),[e,t,n,i])}(ae,u,h,m),yt=(0,a.A)(vt,2),wt=yt[0],Ct=yt[1],_t=wt.has("click"),St=Ct.has("click")||Ct.has("contextMenu"),Mt=(0,l.A)((function(){Ue||bt()}));!function(e,t,n,o){(0,c.A)((function(){if(e&&t&&n){var i=n,r=Ms(t),s=Ms(i),a=Ss(i),l=new Set([a].concat((0,tt.A)(r),(0,tt.A)(s)));function c(){o(),Fe.current&&W&&St&&Be(!1)}return l.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),a.addEventListener("resize",c,{passive:!0}),o(),function(){l.forEach((function(e){e.removeEventListener("scroll",c),a.removeEventListener("resize",c)}))}}}),[e,t,n])}(Pe,Ce,fe,Mt),(0,c.A)((function(){Mt()}),[nt,I]),(0,c.A)((function(){!Pe||null!=N&&N[I]||Mt()}),[JSON.stringify(F)]);var Et=o.useMemo((function(){var e=function(e,t,n,o){for(var i=n.points,r=Object.keys(e),s=0;s<r.length;s+=1){var a,l=r[s];if(Cs(null===(a=e[l])||void 0===a?void 0:a.points,i,o))return"".concat(t,"-placement-").concat(l)}return""}(N,r,gt,W);return T()(e,null==$?void 0:$(gt))}),[gt,$,N,r,W]);o.useImperativeHandle(n,(function(){return{nativeElement:Se.current,popupElement:be.current,forceAlign:Mt}}));var xt=o.useState(0),kt=(0,a.A)(xt,2),Tt=kt[0],Rt=kt[1],At=o.useState(0),Lt=(0,a.A)(At,2),Ot=Lt[0],Dt=Lt[1],Ht=function(){if(Y&&Ce){var e=Ce.getBoundingClientRect();Rt(e.width),Dt(e.height)}};function It(e,t,n,o){ke[e]=function(i){var r;null==o||o(i),Be(t,n);for(var s=arguments.length,a=new Array(s>1?s-1:0),l=1;l<s;l++)a[l-1]=arguments[l];null===(r=xe[e])||void 0===r||r.call.apply(r,[xe,i].concat(a))}}(0,c.A)((function(){Je&&(bt(),Je(),Qe(null))}),[Je]),(_t||St)&&(ke.onClick=function(e){var t;Fe.current&&St?Be(!1):!Fe.current&&_t&&(it(e),Be(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];null===(t=xe.onClick)||void 0===t||t.call.apply(t,[xe,e].concat(o))});var Pt,Nt,Ft=function(e,t,n,i,r,s,a,l){var c=o.useRef(e);c.current=e;var d=o.useRef(!1);return o.useEffect((function(){if(t&&i&&(!r||s)){var e=function(){d.current=!1},o=function(e){var t;!c.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||d.current||l(!1)},u=Ss(i);u.addEventListener("pointerdown",e,!0),u.addEventListener("mousedown",o,!0),u.addEventListener("contextmenu",o,!0);var h=hn(n);return h&&(h.addEventListener("mousedown",o,!0),h.addEventListener("contextmenu",o,!0)),function(){u.removeEventListener("pointerdown",e,!0),u.removeEventListener("mousedown",o,!0),u.removeEventListener("contextmenu",o,!0),h&&(h.removeEventListener("mousedown",o,!0),h.removeEventListener("contextmenu",o,!0))}}}),[t,n,i,r,s]),function(){d.current=!0}}(Pe,St,Ce,fe,S,x,Re,Be),zt=wt.has("hover"),jt=Ct.has("hover");zt&&(It("onMouseEnter",!0,v,(function(e){it(e)})),It("onPointerEnter",!0,v,(function(e){it(e)})),Pt=function(e){(Pe||Ue)&&null!=fe&&fe.contains(e.target)&&Be(!0,v)},W&&(ke.onMouseMove=function(e){var t;null===(t=xe.onMouseMove)||void 0===t||t.call(xe,e)})),jt&&(It("onMouseLeave",!1,w),It("onPointerLeave",!1,w),Nt=function(){Be(!1,w)}),wt.has("focus")&&It("onFocus",!0,C),Ct.has("focus")&&It("onBlur",!1,_),wt.has("contextMenu")&&(ke.onContextMenu=function(e){var t;Fe.current&&Ct.has("contextMenu")?Be(!1):(it(e),Be(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];null===(t=xe.onContextMenu)||void 0===t||t.call.apply(t,[xe,e].concat(o))}),te&&(ke.className=T()(xe.className,te));var Yt=(0,E.A)((0,E.A)({},xe),ke),$t={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){oe[e]&&($t[e]=function(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];null===(t=Yt[e])||void 0===t||t.call.apply(t,[Yt].concat(o)),oe[e].apply(oe,o)})}));var Bt=o.cloneElement(Ee,(0,E.A)((0,E.A)({},Yt),$t)),Wt={x:ht,y:mt},Vt=G?(0,E.A)({},!0!==G?G:{}):null;return o.createElement(o.Fragment,null,o.createElement(Te,{disabled:!Pe,ref:Me,onResize:function(){Ht(),Mt()}},o.createElement(vs,{getTriggerDOMNode:ne},Bt)),o.createElement(ys.Provider,{value:ue},o.createElement(bs,{portal:e,ref:ve,prefixCls:r,popup:O,className:T()(D,Et),style:H,target:Ce,onMouseEnter:Pt,onMouseLeave:Nt,onPointerEnter:Pt,zIndex:z,open:Pe,keepDom:Ue,fresh:B,onClick:V,onPointerDownCapture:Ft,mask:S,motion:Ae,maskMotion:Le,onVisibleChanged:function(e){Ge(!1),bt(),null==b||b(e)},onPrepare:function(){return new Promise((function(e){Ht(),Qe((function(){return e}))}))},forceRender:R,autoDestroy:ie,getPopupContainer:k,align:gt,arrow:Vt,arrowPos:Wt,ready:at,offsetX:lt,offsetY:ct,offsetR:dt,offsetB:ut,onAlign:Mt,stretch:Y,targetWidth:Tt/pt,targetHeight:Ot/ft})))}));return t}(ls);var Is={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Is.F1&&t<=Is.F12)return!1;switch(t){case Is.ALT:case Is.CAPS_LOCK:case Is.CONTEXT_MENU:case Is.CTRL:case Is.DOWN:case Is.END:case Is.ESC:case Is.HOME:case Is.INSERT:case Is.LEFT:case Is.MAC_FF_META:case Is.META:case Is.NUMLOCK:case Is.NUM_CENTER:case Is.PAGE_DOWN:case Is.PAGE_UP:case Is.PAUSE:case Is.PRINT_SCREEN:case Is.RIGHT:case Is.SHIFT:case Is.UP:case Is.WIN_KEY:case Is.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Is.ZERO&&e<=Is.NINE)return!0;if(e>=Is.NUM_ZERO&&e<=Is.NUM_MULTIPLY)return!0;if(e>=Is.A&&e<=Is.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Is.SPACE:case Is.QUESTION_MARK:case Is.NUM_PLUS:case Is.NUM_MINUS:case Is.NUM_PERIOD:case Is.NUM_DIVISION:case Is.SEMICOLON:case Is.DASH:case Is.EQUALS:case Is.COMMA:case Is.PERIOD:case Is.SLASH:case Is.APOSTROPHE:case Is.SINGLE_QUOTE:case Is.OPEN_SQUARE_BRACKET:case Is.BACKSLASH:case Is.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Ps=Is;var Ns=Ps.ESC,Fs=Ps.TAB;const zs=(0,o.forwardRef)((function(e,t){var n=e.overlay,i=e.arrow,r=e.prefixCls,s=(0,o.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,g.K4)(t,(0,g.A9)(s));return o.createElement(o.Fragment,null,i&&o.createElement("div",{className:"".concat(r,"-arrow")}),o.cloneElement(s,{ref:(0,g.f3)(s)?a:void 0}))}));var js={adjustX:1,adjustY:1},Ys=[0,0];const $s={topLeft:{points:["bl","tl"],overflow:js,offset:[0,-4],targetOffset:Ys},top:{points:["bc","tc"],overflow:js,offset:[0,-4],targetOffset:Ys},topRight:{points:["br","tr"],overflow:js,offset:[0,-4],targetOffset:Ys},bottomLeft:{points:["tl","bl"],overflow:js,offset:[0,4],targetOffset:Ys},bottom:{points:["tc","bc"],overflow:js,offset:[0,4],targetOffset:Ys},bottomRight:{points:["tr","br"],overflow:js,offset:[0,4],targetOffset:Ys}};var Bs=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ws(e,t){var n,i=e.arrow,r=void 0!==i&&i,s=e.prefixCls,l=void 0===s?"rc-dropdown":s,c=e.transitionName,d=e.animation,u=e.align,h=e.placement,m=void 0===h?"bottomLeft":h,p=e.placements,b=void 0===p?$s:p,v=e.getPopupContainer,y=e.showAction,w=e.hideAction,C=e.overlayClassName,_=e.overlayStyle,S=e.visible,M=e.trigger,E=void 0===M?["hover"]:M,k=e.autoFocus,R=e.overlay,A=e.children,L=e.onVisibleChange,O=(0,j.A)(e,Bs),D=o.useState(),H=(0,a.A)(D,2),I=H[0],P=H[1],N="visible"in e?S:I,F=o.useRef(null),z=o.useRef(null),Y=o.useRef(null);o.useImperativeHandle(t,(function(){return F.current}));var $=function(e){P(e),null==L||L(e)};!function(e){var t=e.visible,n=e.triggerRef,i=e.onVisibleChange,r=e.autoFocus,s=e.overlayRef,a=o.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==i||i(!1))},c=function(){var e;return!(null===(e=s.current)||void 0===e||!e.focus||(s.current.focus(),a.current=!0,0))},d=function(e){switch(e.keyCode){case Ns:l();break;case Fs:var t=!1;a.current||(t=c()),t?e.preventDefault():l()}};o.useEffect((function(){return t?(window.addEventListener("keydown",d),r&&(0,bt.A)(c,3),function(){window.removeEventListener("keydown",d),a.current=!1}):function(){a.current=!1}}),[t])}({visible:N,triggerRef:Y,onVisibleChange:$,autoFocus:k,overlayRef:z});var B,W,V,U=function(){return o.createElement(zs,{ref:z,overlay:R,prefixCls:l,arrow:r})},G=o.cloneElement(A,{className:T()(null===(n=A.props)||void 0===n?void 0:n.className,N&&(B=e.openClassName,void 0!==B?B:"".concat(l,"-open"))),ref:(0,g.f3)(A)?(0,g.K4)(Y,(0,g.A9)(A)):void 0}),K=w;return K||-1===E.indexOf("contextMenu")||(K=["click"]),o.createElement(Hs,(0,f.A)({builtinPlacements:b},O,{prefixCls:l,ref:F,popupClassName:T()(C,(0,x.A)({},"".concat(l,"-show-arrow"),r)),popupStyle:_,action:E,showAction:y,hideAction:K,popupPlacement:m,popupAlign:u,popupTransitionName:c,popupAnimation:d,popupVisible:N,stretch:(W=e.minOverlayWidthMatchTrigger,V=e.alignPoint,("minOverlayWidthMatchTrigger"in e?W:!V)?"minWidth":""),popup:"function"==typeof R?U:U(),onPopupVisibleChange:$,onPopupClick:function(t){var n=e.onOverlayClick;P(!1),n&&n(t)},getPopupContainer:v}),G)}const Vs=o.forwardRef(Ws),Us=o.createContext(void 0),Gs=100,Ks={Modal:Gs,Drawer:Gs,Popover:Gs,Popconfirm:Gs,Tooltip:Gs,Tour:Gs,FloatButton:Gs},qs={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Xs=(e,t)=>{const[,n]=(0,Ho.Ay)(),i=o.useContext(Us),r=e in Ks;let s;if(void 0!==t)s=[t,t];else{let o=null!=i?i:0;o+=r?(i?0:n.zIndexPopupBase)+Ks[e]:qs[e],s=[void 0===i?t:o,o]}return s};function Js(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,i=t/2,r=i,s=1*o/Math.sqrt(2),a=i-o*(1-1/Math.sqrt(2)),l=i-n*(1/Math.sqrt(2)),c=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*i-l,u=c,h=2*i-s,m=a,p=2*i-0,f=r,g=i*Math.sqrt(2)+o*(Math.sqrt(2)-2),b=o*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${r} A ${o} ${o} 0 0 0 ${s} ${a} L ${l} ${c} A ${n} ${n} 0 0 1 ${d} ${u} L ${h} ${m} A ${o} ${o} 0 0 0 ${p} ${f} Z')`,arrowPolygon:`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`}}const Qs=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:i,arrowPath:r,arrowShadowWidth:s,borderRadiusXS:a,calc:l}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:l(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,r]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,fo.zA)(a)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Zs(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}function ea(e,t){return e?t:{}}function ta(e,t,n){const{componentCls:o,boxShadowPopoverArrow:i,arrowOffsetVertical:r,arrowOffsetHorizontal:s}=e,{arrowDistance:a=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Qs(e,t,i)),{"&:before":{background:t}})]},ea(!!l.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:a,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,fo.zA)(s)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),ea(!!l.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:a,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,fo.zA)(s)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),ea(!!l.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:a},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:r},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:r}})),ea(!!l.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:a},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:r},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:r}}))}}const na={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},oa={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},ia=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ra(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:i,borderRadius:r,visibleFirst:s}=e,a=t/2,l={};return Object.keys(na).forEach((e=>{const c=o&&oa[e]||na[e],d=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=d,ia.has(e)&&(d.autoArrow=!1),e){case"top":case"topLeft":case"topRight":d.offset[1]=-a-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=a+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-a-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=a+i}const u=Zs({contentRadius:r,limitVerticalRadius:!0});if(o)switch(e){case"topLeft":case"bottomLeft":d.offset[0]=-u.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":d.offset[0]=u.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":d.offset[1]=2*-u.arrowOffsetHorizontal+a;break;case"leftBottom":case"rightBottom":d.offset[1]=2*u.arrowOffsetHorizontal-a}d.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const i=o&&"object"==typeof o?o:{},r={};switch(e){case"top":case"bottom":r.shiftX=2*t.arrowOffsetHorizontal+n,r.shiftY=!0,r.adjustY=!0;break;case"left":case"right":r.shiftY=2*t.arrowOffsetVertical+n,r.shiftX=!0,r.adjustX=!0}const s=Object.assign(Object.assign({},r),i);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}(e,u,t,n),s&&(d.htmlRegion="visibleFirst")})),l}var sa=n(82345);const aa=(e,t,n,i,r)=>function(e){return t=>o.createElement(sa.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,Object.assign({},t)))}((s=>{const{prefixCls:a,style:l}=s,c=o.useRef(null),[d,u]=o.useState(0),[h,m]=o.useState(0),[p,f]=(0,so.A)(!1,{value:s.open}),{getPrefixCls:g}=o.useContext(ho.QO),b=g(i||"select",a);o.useEffect((()=>{if(f(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),m(t.offsetWidth)})),t=setInterval((()=>{var n;const o=r?`.${r(b)}`:`.${b}-dropdown`,i=null===(n=c.current)||void 0===n?void 0:n.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});n&&(v=n(v)),t&&Object.assign(v,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:d,position:"relative",minWidth:h};return o.createElement("div",{ref:c,style:y},o.createElement(e,Object.assign({},v)))}));var la=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ca=void 0;function da(e,t){var n=e.prefixCls,i=e.invalidate,r=e.item,s=e.renderItem,a=e.responsive,l=e.responsiveDisabled,c=e.registerSize,d=e.itemKey,u=e.className,h=e.style,m=e.children,p=e.display,g=e.order,b=e.component,v=void 0===b?"div":b,y=(0,j.A)(e,la),w=a&&!p;function C(e){c(d,e)}o.useEffect((function(){return function(){C(null)}}),[]);var _,S=s&&r!==ca?s(r,{index:g}):m;i||(_={opacity:w?0:1,height:w?0:ca,overflowY:w?"hidden":ca,order:a?g:ca,pointerEvents:w?"none":ca,position:w?"absolute":ca});var M={};w&&(M["aria-hidden"]=!0);var x=o.createElement(v,(0,f.A)({className:T()(!i&&n,u),style:(0,E.A)((0,E.A)({},_),h)},M,y,{ref:t}),S);return a&&(x=o.createElement(Te,{onResize:function(e){C(e.offsetWidth)},disabled:l},x)),x}var ua=o.forwardRef(da);ua.displayName="Item";const ha=ua;function ma(e,t){var n=o.useState(t),i=(0,a.A)(n,2),r=i[0],s=i[1];return[r,(0,l.A)((function(t){e((function(){s(t)}))}))]}var pa=o.createContext(null),fa=["component"],ga=["className"],ba=["className"],va=function(e,t){var n=o.useContext(pa);if(!n){var i=e.component,r=void 0===i?"div":i,s=(0,j.A)(e,fa);return o.createElement(r,(0,f.A)({},s,{ref:t}))}var a=n.className,l=(0,j.A)(n,ga),c=e.className,d=(0,j.A)(e,ba);return o.createElement(pa.Provider,{value:null},o.createElement(ha,(0,f.A)({ref:t,className:T()(a,c)},l,d)))},ya=o.forwardRef(va);ya.displayName="RawItem";const wa=ya;var Ca=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],_a="responsive",Sa="invalidate";function Ma(e){return"+ ".concat(e.length," ...")}function Ea(e,t){var n,i=e.prefixCls,r=void 0===i?"rc-overflow":i,s=e.data,l=void 0===s?[]:s,d=e.renderItem,h=e.renderRawItem,m=e.itemKey,p=e.itemWidth,g=void 0===p?10:p,b=e.ssr,v=e.style,y=e.className,w=e.maxCount,C=e.renderRest,_=e.renderRawRest,S=e.suffix,M=e.component,x=void 0===M?"div":M,k=e.itemComponent,R=e.onVisibleChange,A=(0,j.A)(e,Ca),L="full"===b,O=(n=o.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)(0,bt.A)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,u.unstable_batchedUpdates)((function(){n.current.forEach((function(e){e()})),n.current=null}))}))),n.current.push(e)}),D=ma(O,null),H=(0,a.A)(D,2),I=H[0],P=H[1],N=I||0,F=ma(O,new Map),z=(0,a.A)(F,2),Y=z[0],$=z[1],B=ma(O,0),W=(0,a.A)(B,2),V=W[0],U=W[1],G=ma(O,0),K=(0,a.A)(G,2),q=K[0],X=K[1],J=ma(O,0),Q=(0,a.A)(J,2),Z=Q[0],ee=Q[1],te=(0,o.useState)(null),ne=(0,a.A)(te,2),oe=ne[0],ie=ne[1],re=(0,o.useState)(null),se=(0,a.A)(re,2),ae=se[0],le=se[1],ce=o.useMemo((function(){return null===ae&&L?Number.MAX_SAFE_INTEGER:ae||0}),[ae,I]),de=(0,o.useState)(!1),ue=(0,a.A)(de,2),he=ue[0],me=ue[1],pe="".concat(r,"-item"),fe=Math.max(V,q),ge=w===_a,be=l.length&&ge,ve=w===Sa,ye=be||"number"==typeof w&&l.length>w,we=(0,o.useMemo)((function(){var e=l;return be?e=null===I&&L?l:l.slice(0,Math.min(l.length,N/g)):"number"==typeof w&&(e=l.slice(0,w)),e}),[l,g,I,w,be]),Ce=(0,o.useMemo)((function(){return be?l.slice(ce+1):l.slice(we.length)}),[l,we,be,ce]),_e=(0,o.useCallback)((function(e,t){var n;return"function"==typeof m?m(e):null!==(n=m&&(null==e?void 0:e[m]))&&void 0!==n?n:t}),[m]),Se=(0,o.useCallback)(d||function(e){return e},[d]);function Me(e,t,n){(ae!==e||void 0!==t&&t!==oe)&&(le(e),n||(me(e<l.length-1),null==R||R(e)),void 0!==t&&ie(t))}function Ee(e,t){$((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function xe(e){return Y.get(_e(we[e],e))}(0,c.A)((function(){if(N&&"number"==typeof fe&&we){var e=Z,t=we.length,n=t-1;if(!t)return void Me(0,null);for(var o=0;o<t;o+=1){var i=xe(o);if(L&&(i=i||0),void 0===i){Me(o-1,void 0,!0);break}if(e+=i,0===n&&e<=N||o===n-1&&e+xe(n)<=N){Me(n,null);break}if(e+fe>N){Me(o-1,e-i-Z+q);break}}S&&xe(0)+Z>N&&ie(null)}}),[N,Y,q,Z,_e,we]);var ke=he&&!!Ce.length,Re={};null!==oe&&be&&(Re={position:"absolute",left:oe,top:0});var Ae={prefixCls:pe,responsive:be,component:k,invalidate:ve},Le=h?function(e,t){var n=_e(e,t);return o.createElement(pa.Provider,{key:n,value:(0,E.A)((0,E.A)({},Ae),{},{order:t,item:e,itemKey:n,registerSize:Ee,display:t<=ce})},h(e,t))}:function(e,t){var n=_e(e,t);return o.createElement(ha,(0,f.A)({},Ae,{order:t,key:n,item:e,renderItem:Se,itemKey:n,registerSize:Ee,display:t<=ce}))},Oe={order:ke?ce:Number.MAX_SAFE_INTEGER,className:"".concat(pe,"-rest"),registerSize:function(e,t){X(t),U(q)},display:ke},De=C||Ma,He=_?o.createElement(pa.Provider,{value:(0,E.A)((0,E.A)({},Ae),Oe)},_(Ce)):o.createElement(ha,(0,f.A)({},Ae,Oe),"function"==typeof De?De(Ce):De),Ie=o.createElement(x,(0,f.A)({className:T()(!ve&&r,y),style:v,ref:t},A),we.map(Le),ye?He:null,S&&o.createElement(ha,(0,f.A)({},Ae,{responsive:ge,responsiveDisabled:!be,order:ce,className:"".concat(pe,"-suffix"),registerSize:function(e,t){ee(t)},display:!0,style:Re}),S));return ge?o.createElement(Te,{onResize:function(e,t){P(t.clientWidth)},disabled:!be},Ie):Ie}var xa=o.forwardRef(Ea);xa.displayName="Overflow",xa.Item=wa,xa.RESPONSIVE=_a,xa.INVALIDATE=Sa;const ka=xa;var Ta=o.createContext(null);function Ra(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Aa(e){return Ra(o.useContext(Ta),e)}var La=["children","locked"],Oa=o.createContext(null);function Da(e){var t=e.children,n=e.locked,i=(0,j.A)(e,La),r=o.useContext(Oa),s=(0,R.A)((function(){return e=r,t=i,n=(0,E.A)({},e),Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n;var e,t,n}),[r,i],(function(e,t){return!(n||e[0]===t[0]&&(0,d.A)(e[1],t[1],!0))}));return o.createElement(Oa.Provider,{value:s},t)}var Ha=[],Ia=o.createContext(null);function Pa(){return o.useContext(Ia)}var Na=o.createContext(Ha);function Fa(e){var t=o.useContext(Na);return o.useMemo((function(){return void 0!==e?[].concat((0,tt.A)(t),[e]):t}),[t,e])}var za=o.createContext(null);const ja=o.createContext({});function Ya(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Ke(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),r=Number(i),s=null;return i&&!Number.isNaN(r)?s=r:o&&null===s&&(s=0),o&&e.disabled&&(s=null),null!==s&&(s>=0||t&&s<0)}return!1}var $a=Ps.LEFT,Ba=Ps.RIGHT,Wa=Ps.UP,Va=Ps.DOWN,Ua=Ps.ENTER,Ga=Ps.ESC,Ka=Ps.HOME,qa=Ps.END,Xa=[Wa,Va,$a,Ba];function Ja(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,tt.A)(e.querySelectorAll("*")).filter((function(e){return Ya(e,t)}));return Ya(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function Qa(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=Ja(e,t),r=i.length,s=i.findIndex((function(e){return n===e}));return o<0?-1===s?s=r-1:s-=1:o>0&&(s+=1),i[s=(s+r)%r]}var Za=function(e,t){var n=new Set,o=new Map,i=new Map;return e.forEach((function(e){var r=document.querySelector("[data-menu-id='".concat(Ra(t,e),"']"));r&&(n.add(r),i.set(r,e),o.set(e,r))})),{elements:n,key2element:o,element2key:i}};var el="__RC_UTIL_PATH_SPLIT__",tl=function(e){return e.join(el)},nl="rc-menu-more";function ol(e){var t=o.useRef(e);t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return e?n:void 0}var il=Math.random().toFixed(5).toString().slice(2),rl=0;function sl(e,t,n,i){var r=o.useContext(Oa),s=r.activeKey,a=r.onActive,l=r.onInactive,c={active:s===e};return t||(c.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},c.onMouseLeave=function(t){null==i||i({key:e,domEvent:t}),l(e)}),c}function al(e){var t=o.useContext(Oa),n=t.mode,i=t.rtl,r=t.inlineIndent;return"inline"!==n?null:i?{paddingRight:e*r}:{paddingLeft:e*r}}function ll(e){var t,n=e.icon,i=e.props,r=e.children;return null===n||!1===n?null:("function"==typeof n?t=o.createElement(n,(0,E.A)({},i)):"boolean"!=typeof n&&(t=n),t||r||null)}var cl=["item"];function dl(e){var t=e.item,n=(0,j.A)(e,cl);return Object.defineProperty(n,"item",{get:function(){return(0,L.Ay)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var ul=["title","attribute","elementRef"],hl=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ml=["active"],pl=function(e){(0,Ce.A)(n,e);var t=(0,_e.A)(n);function n(){return(0,ye.A)(this,n),t.apply(this,arguments)}return(0,we.A)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,i=e.elementRef,r=Dn((0,j.A)(e,ul),["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,L.Ay)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(ka.Item,(0,f.A)({},n,{title:"string"==typeof t?t:void 0},r,{ref:i}))}}]),n}(o.Component),fl=o.forwardRef((function(e,t){var n=e.style,i=e.className,r=e.eventKey,s=(e.warnKey,e.disabled),a=e.itemIcon,l=e.children,c=e.role,d=e.onMouseEnter,u=e.onMouseLeave,h=e.onClick,m=e.onKeyDown,p=e.onFocus,b=(0,j.A)(e,hl),v=Aa(r),y=o.useContext(Oa),w=y.prefixCls,C=y.onItemClick,_=y.disabled,S=y.overflowDisabled,M=y.itemIcon,k=y.selectedKeys,R=y.onActive,A=o.useContext(ja)._internalRenderMenuItem,L="".concat(w,"-item"),O=o.useRef(),D=o.useRef(),H=_||s,I=(0,g.xK)(t,D),P=Fa(r),N=function(e){return{key:r,keyPath:(0,tt.A)(P).reverse(),item:O.current,domEvent:e}},F=a||M,z=sl(r,H,d,u),Y=z.active,$=(0,j.A)(z,ml),B=k.includes(r),W=al(P.length),V={};"option"===e.role&&(V["aria-selected"]=B);var U=o.createElement(pl,(0,f.A)({ref:O,elementRef:I,role:null===c?"none":c||"menuitem",tabIndex:s?null:-1,"data-menu-id":S&&v?null:v},Dn(b,["extra"]),$,V,{component:"li","aria-disabled":s,style:(0,E.A)((0,E.A)({},W),n),className:T()(L,(0,x.A)((0,x.A)((0,x.A)({},"".concat(L,"-active"),Y),"".concat(L,"-selected"),B),"".concat(L,"-disabled"),H),i),onClick:function(e){if(!H){var t=N(e);null==h||h(dl(t)),C(t)}},onKeyDown:function(e){if(null==m||m(e),e.which===Ps.ENTER){var t=N(e);null==h||h(dl(t)),C(t)}},onFocus:function(e){R(r),null==p||p(e)}}),l,o.createElement(ll,{props:(0,E.A)((0,E.A)({},e),{},{isSelected:B}),icon:F}));return A&&(U=A(U,e,{selected:B})),U}));function gl(e,t){var n=e.eventKey,i=Pa(),r=Fa(n);return o.useEffect((function(){if(i)return i.registerPath(n,r),function(){i.unregisterPath(n,r)}}),[r]),i?null:o.createElement(fl,(0,f.A)({},e,{ref:t}))}const bl=o.forwardRef(gl);var vl=["className","children"],yl=function(e,t){var n=e.className,i=e.children,r=(0,j.A)(e,vl),s=o.useContext(Oa),a=s.prefixCls,l=s.mode,c=s.rtl;return o.createElement("ul",(0,f.A)({className:T()(a,c&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},r,{"data-menu-list":!0,ref:t}),i)},wl=o.forwardRef(yl);wl.displayName="SubMenuList";const Cl=wl;function _l(e,t){return G(e).map((function(e,n){if(o.isValidElement(e)){var i,r,s=e.key,a=null!==(i=null===(r=e.props)||void 0===r?void 0:r.eventKey)&&void 0!==i?i:s;null==a&&(a="tmp_key-".concat([].concat((0,tt.A)(t),[n]).join("-")));var l={key:a,eventKey:a};return o.cloneElement(e,l)}return e}))}var Sl={adjustX:1,adjustY:1},Ml={topLeft:{points:["bl","tl"],overflow:Sl},topRight:{points:["br","tr"],overflow:Sl},bottomLeft:{points:["tl","bl"],overflow:Sl},bottomRight:{points:["tr","br"],overflow:Sl},leftTop:{points:["tr","tl"],overflow:Sl},leftBottom:{points:["br","bl"],overflow:Sl},rightTop:{points:["tl","tr"],overflow:Sl},rightBottom:{points:["bl","br"],overflow:Sl}},El={topLeft:{points:["bl","tl"],overflow:Sl},topRight:{points:["br","tr"],overflow:Sl},bottomLeft:{points:["tl","bl"],overflow:Sl},bottomRight:{points:["tr","br"],overflow:Sl},rightTop:{points:["tr","tl"],overflow:Sl},rightBottom:{points:["br","bl"],overflow:Sl},leftTop:{points:["tl","tr"],overflow:Sl},leftBottom:{points:["bl","br"],overflow:Sl}};function xl(e,t,n){return t||(n?n[e]||n.other:void 0)}var kl={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Tl(e){var t=e.prefixCls,n=e.visible,i=e.children,r=e.popup,s=e.popupStyle,l=e.popupClassName,c=e.popupOffset,d=e.disabled,u=e.mode,h=e.onVisibleChange,m=o.useContext(Oa),p=m.getPopupContainer,f=m.rtl,g=m.subMenuOpenDelay,b=m.subMenuCloseDelay,v=m.builtinPlacements,y=m.triggerSubMenuAction,w=m.forceSubMenuRender,C=m.rootClassName,_=m.motion,S=m.defaultMotions,M=o.useState(!1),k=(0,a.A)(M,2),R=k[0],A=k[1],L=f?(0,E.A)((0,E.A)({},El),v):(0,E.A)((0,E.A)({},Ml),v),O=kl[u],D=xl(u,_,S),H=o.useRef(D);"inline"!==u&&(H.current=D);var I=(0,E.A)((0,E.A)({},H.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=o.useRef();return o.useEffect((function(){return P.current=(0,bt.A)((function(){A(n)})),function(){bt.A.cancel(P.current)}}),[n]),o.createElement(Hs,{prefixCls:t,popupClassName:T()("".concat(t,"-popup"),(0,x.A)({},"".concat(t,"-rtl"),f),l,C),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:L,popupPlacement:O,popupVisible:R,popup:r,popupStyle:s,popupAlign:c&&{offset:c},action:d?[]:[y],mouseEnterDelay:g,mouseLeaveDelay:b,onPopupVisibleChange:h,forceRender:w,popupMotion:I,fresh:!0},i)}function Rl(e){var t=e.id,n=e.open,i=e.keyPath,r=e.children,s="inline",l=o.useContext(Oa),c=l.prefixCls,d=l.forceSubMenuRender,u=l.motion,h=l.defaultMotions,m=l.mode,p=o.useRef(!1);p.current=m===s;var g=o.useState(!p.current),b=(0,a.A)(g,2),v=b[0],y=b[1],w=!!p.current&&n;o.useEffect((function(){p.current&&y(!1)}),[m]);var C=(0,E.A)({},xl(s,u,h));i.length>1&&(C.motionAppear=!1);var _=C.onVisibleChanged;return C.onVisibleChanged=function(e){return p.current||e||y(!0),null==_?void 0:_(e)},v?null:o.createElement(Da,{mode:s,locked:!p.current},o.createElement(Yo.Ay,(0,f.A)({visible:w},C,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,i=e.style;return o.createElement(Cl,{id:t,className:n,style:i},r)})))}var Al=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ll=["active"],Ol=o.forwardRef((function(e,t){var n=e.style,i=e.className,r=e.title,s=e.eventKey,l=(e.warnKey,e.disabled),c=e.internalPopupClose,d=e.children,u=e.itemIcon,h=e.expandIcon,m=e.popupClassName,p=e.popupOffset,g=e.popupStyle,b=e.onClick,v=e.onMouseEnter,y=e.onMouseLeave,w=e.onTitleClick,C=e.onTitleMouseEnter,_=e.onTitleMouseLeave,S=(0,j.A)(e,Al),M=Aa(s),k=o.useContext(Oa),R=k.prefixCls,A=k.mode,L=k.openKeys,O=k.disabled,D=k.overflowDisabled,H=k.activeKey,I=k.selectedKeys,P=k.itemIcon,N=k.expandIcon,F=k.onItemClick,z=k.onOpenChange,Y=k.onActive,$=o.useContext(ja)._internalRenderSubMenuItem,B=o.useContext(za).isSubPathKey,W=Fa(),V="".concat(R,"-submenu"),U=O||l,G=o.useRef(),K=o.useRef(),q=null!=u?u:P,X=null!=h?h:N,J=L.includes(s),Q=!D&&J,Z=B(I,s),ee=sl(s,U,C,_),te=ee.active,ne=(0,j.A)(ee,Ll),oe=o.useState(!1),ie=(0,a.A)(oe,2),re=ie[0],se=ie[1],ae=function(e){U||se(e)},le=o.useMemo((function(){return te||"inline"!==A&&(re||B([H],s))}),[A,te,H,re,s,B]),ce=al(W.length),de=ol((function(e){null==b||b(dl(e)),F(e)})),ue=M&&"".concat(M,"-popup"),he=o.useMemo((function(){return o.createElement(ll,{icon:"horizontal"!==A?X:void 0,props:(0,E.A)((0,E.A)({},e),{},{isOpen:Q,isSubMenu:!0})},o.createElement("i",{className:"".concat(V,"-arrow")}))}),[A,X,e,Q,V]),me=o.createElement("div",(0,f.A)({role:"menuitem",style:ce,className:"".concat(V,"-title"),tabIndex:U?null:-1,ref:G,title:"string"==typeof r?r:null,"data-menu-id":D&&M?null:M,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":U,onClick:function(e){U||(null==w||w({key:s,domEvent:e}),"inline"===A&&z(s,!J))},onFocus:function(){Y(s)}},ne),r,he),pe=o.useRef(A);if("inline"!==A&&W.length>1?pe.current="vertical":pe.current=A,!D){var fe=pe.current;me=o.createElement(Tl,{mode:fe,prefixCls:V,visible:!c&&Q&&"inline"!==A,popupClassName:m,popupOffset:p,popupStyle:g,popup:o.createElement(Da,{mode:"horizontal"===fe?"vertical":fe},o.createElement(Cl,{id:ue,ref:K},d)),disabled:U,onVisibleChange:function(e){"inline"!==A&&z(s,e)}},me)}var ge=o.createElement(ka.Item,(0,f.A)({ref:t,role:"none"},S,{component:"li",style:n,className:T()(V,"".concat(V,"-").concat(A),i,(0,x.A)((0,x.A)((0,x.A)((0,x.A)({},"".concat(V,"-open"),Q),"".concat(V,"-active"),le),"".concat(V,"-selected"),Z),"".concat(V,"-disabled"),U)),onMouseEnter:function(e){ae(!0),null==v||v({key:s,domEvent:e})},onMouseLeave:function(e){ae(!1),null==y||y({key:s,domEvent:e})}}),me,!D&&o.createElement(Rl,{id:ue,open:Q,keyPath:W},d));return $&&(ge=$(ge,e,{selected:Z,active:le,open:Q,disabled:U})),o.createElement(Da,{onItemClick:de,mode:"horizontal"===A?"vertical":A,itemIcon:q,expandIcon:X},ge)}));const Dl=o.forwardRef((function(e,t){var n,i=e.eventKey,r=e.children,s=Fa(i),a=_l(r,s),l=Pa();return o.useEffect((function(){if(l)return l.registerPath(i,s),function(){l.unregisterPath(i,s)}}),[s]),n=l?a:o.createElement(Ol,(0,f.A)({ref:t},e),a),o.createElement(Na.Provider,{value:s},n)}));function Hl(e){var t=e.className,n=e.style,i=o.useContext(Oa).prefixCls;return Pa()?null:o.createElement("li",{role:"separator",className:T()("".concat(i,"-item-divider"),t),style:n})}var Il=["className","title","eventKey","children"],Pl=o.forwardRef((function(e,t){var n=e.className,i=e.title,r=(e.eventKey,e.children),s=(0,j.A)(e,Il),a=o.useContext(Oa).prefixCls,l="".concat(a,"-item-group");return o.createElement("li",(0,f.A)({ref:t,role:"presentation"},s,{onClick:function(e){return e.stopPropagation()},className:T()(l,n)}),o.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof i?i:void 0},i),o.createElement("ul",{role:"group",className:"".concat(l,"-list")},r))}));const Nl=o.forwardRef((function(e,t){var n=e.eventKey,i=_l(e.children,Fa(n));return Pa()?i:o.createElement(Pl,(0,f.A)({ref:t},Dn(e,["warnKey"])),i)}));var Fl=["label","children","key","type","extra"];function zl(e,t,n){var i=t.item,r=t.group,s=t.submenu,a=t.divider;return(e||[]).map((function(e,l){if(e&&"object"===(0,M.A)(e)){var c=e,d=c.label,u=c.children,h=c.key,m=c.type,p=c.extra,g=(0,j.A)(c,Fl),b=null!=h?h:"tmp-".concat(l);return u||"group"===m?"group"===m?o.createElement(r,(0,f.A)({key:b},g,{title:d}),zl(u,t,n)):o.createElement(s,(0,f.A)({key:b},g,{title:d}),zl(u,t,n)):"divider"===m?o.createElement(a,(0,f.A)({key:b},g)):o.createElement(i,(0,f.A)({key:b},g,{extra:p}),d,(!!p||0===p)&&o.createElement("span",{className:"".concat(n,"-item-extra")},p))}return null})).filter((function(e){return e}))}function jl(e,t,n,o,i){var r=e,s=(0,E.A)({divider:Hl,item:bl,group:Nl,submenu:Dl},o);return t&&(r=zl(t,s,i)),_l(r,n)}var Yl=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],$l=[],Bl=o.forwardRef((function(e,t){var n,i=e,r=i.prefixCls,s=void 0===r?"rc-menu":r,l=i.rootClassName,c=i.style,h=i.className,m=i.tabIndex,p=void 0===m?0:m,g=i.items,b=i.children,v=i.direction,y=i.id,w=i.mode,C=void 0===w?"vertical":w,_=i.inlineCollapsed,S=i.disabled,M=i.disabledOverflow,k=i.subMenuOpenDelay,R=void 0===k?.1:k,A=i.subMenuCloseDelay,L=void 0===A?.1:A,O=i.forceSubMenuRender,D=i.defaultOpenKeys,H=i.openKeys,I=i.activeKey,P=i.defaultActiveFirst,N=i.selectable,F=void 0===N||N,z=i.multiple,Y=void 0!==z&&z,$=i.defaultSelectedKeys,B=i.selectedKeys,W=i.onSelect,V=i.onDeselect,U=i.inlineIndent,G=void 0===U?24:U,K=i.motion,q=i.defaultMotions,X=i.triggerSubMenuAction,J=void 0===X?"hover":X,Q=i.builtinPlacements,Z=i.itemIcon,ee=i.expandIcon,te=i.overflowedIndicator,ne=void 0===te?"...":te,oe=i.overflowedIndicatorPopupClassName,ie=i.getPopupContainer,re=i.onClick,se=i.onOpenChange,ae=i.onKeyDown,le=(i.openAnimation,i.openTransitionName,i._internalRenderMenuItem),ce=i._internalRenderSubMenuItem,de=i._internalComponents,ue=(0,j.A)(i,Yl),he=o.useMemo((function(){return[jl(b,g,$l,de,s),jl(b,g,$l,{},s)]}),[b,g,de]),me=(0,a.A)(he,2),pe=me[0],fe=me[1],ge=o.useState(!1),be=(0,a.A)(ge,2),ve=be[0],ye=be[1],we=o.useRef(),Ce=function(e){var t=(0,so.A)(e,{value:e}),n=(0,a.A)(t,2),i=n[0],r=n[1];return o.useEffect((function(){rl+=1;var e="".concat(il,"-").concat(rl);r("rc-menu-uuid-".concat(e))}),[]),i}(y),_e="rtl"===v,Se=(0,so.A)(D,{value:H,postState:function(e){return e||$l}}),Me=(0,a.A)(Se,2),Ee=Me[0],xe=Me[1],ke=function(e){function t(){xe(e),null==se||se(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,u.flushSync)(t):t()},Te=o.useState(Ee),Re=(0,a.A)(Te,2),Ae=Re[0],Le=Re[1],Oe=o.useRef(!1),De=o.useMemo((function(){return"inline"!==C&&"vertical"!==C||!_?[C,!1]:["vertical",_]}),[C,_]),He=(0,a.A)(De,2),Ie=He[0],Pe=He[1],Ne="inline"===Ie,Fe=o.useState(Ie),ze=(0,a.A)(Fe,2),je=ze[0],Ye=ze[1],$e=o.useState(Pe),Be=(0,a.A)($e,2),We=Be[0],Ve=Be[1];o.useEffect((function(){Ye(Ie),Ve(Pe),Oe.current&&(Ne?xe(Ae):ke($l))}),[Ie,Pe]);var Ue=o.useState(0),Ge=(0,a.A)(Ue,2),Ke=Ge[0],qe=Ge[1],Xe=Ke>=pe.length-1||"horizontal"!==je||M;o.useEffect((function(){Ne&&Le(Ee)}),[Ee]),o.useEffect((function(){return Oe.current=!0,function(){Oe.current=!1}}),[]);var Je=function(){var e=o.useState({}),t=(0,a.A)(e,2)[1],n=(0,o.useRef)(new Map),i=(0,o.useRef)(new Map),r=o.useState([]),s=(0,a.A)(r,2),l=s[0],c=s[1],d=(0,o.useRef)(0),u=(0,o.useRef)(!1),h=(0,o.useCallback)((function(e,o){var r=tl(o);i.current.set(r,e),n.current.set(e,r),d.current+=1;var s,a=d.current;s=function(){a===d.current&&(u.current||t({}))},Promise.resolve().then(s)}),[]),m=(0,o.useCallback)((function(e,t){var o=tl(t);i.current.delete(o),n.current.delete(e)}),[]),p=(0,o.useCallback)((function(e){c(e)}),[]),f=(0,o.useCallback)((function(e,t){var o=(n.current.get(e)||"").split(el);return t&&l.includes(o[0])&&o.unshift(nl),o}),[l]),g=(0,o.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),b=(0,o.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(el),o=new Set;return(0,tt.A)(i.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(i.current.get(e))})),o}),[]);return o.useEffect((function(){return function(){u.current=!0}}),[]),{registerPath:h,unregisterPath:m,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:f,getKeys:function(){var e=(0,tt.A)(n.current.keys());return l.length&&e.push(nl),e},getSubPathKeys:b}}(),Qe=Je.registerPath,Ze=Je.unregisterPath,et=Je.refreshOverflowKeys,nt=Je.isSubPathKey,ot=Je.getKeyPath,it=Je.getKeys,rt=Je.getSubPathKeys,st=o.useMemo((function(){return{registerPath:Qe,unregisterPath:Ze}}),[Qe,Ze]),at=o.useMemo((function(){return{isSubPathKey:nt}}),[nt]);o.useEffect((function(){et(Xe?$l:pe.slice(Ke+1).map((function(e){return e.key})))}),[Ke,Xe]);var lt=(0,so.A)(I||P&&(null===(n=pe[0])||void 0===n?void 0:n.key),{value:I}),ct=(0,a.A)(lt,2),dt=ct[0],ut=ct[1],ht=ol((function(e){ut(e)})),mt=ol((function(){ut(void 0)}));(0,o.useImperativeHandle)(t,(function(){return{list:we.current,focus:function(e){var t,n,o=it(),i=Za(o,Ce),r=i.elements,s=i.key2element,a=i.element2key,l=Ja(we.current,r),c=null!=dt?dt:l[0]?a.get(l[0]):null===(t=pe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,d=s.get(c);c&&d&&(null==d||null===(n=d.focus)||void 0===n||n.call(d,e))}}}));var pt=(0,so.A)($||[],{value:B,postState:function(e){return Array.isArray(e)?e:null==e?$l:[e]}}),ft=(0,a.A)(pt,2),gt=ft[0],vt=ft[1],yt=ol((function(e){null==re||re(dl(e)),function(e){if(F){var t,n=e.key,o=gt.includes(n);t=Y?o?gt.filter((function(e){return e!==n})):[].concat((0,tt.A)(gt),[n]):[n],vt(t);var i=(0,E.A)((0,E.A)({},e),{},{selectedKeys:t});o?null==V||V(i):null==W||W(i)}!Y&&Ee.length&&"inline"!==je&&ke($l)}(e)})),wt=ol((function(e,t){var n=Ee.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==je){var o=rt(e);n=n.filter((function(e){return!o.has(e)}))}(0,d.A)(Ee,n,!0)||ke(n,!0)})),Ct=function(e,t,n,i,r,s,a,l,c,d){var u=o.useRef(),h=o.useRef();h.current=t;var m=function(){bt.A.cancel(u.current)};return o.useEffect((function(){return function(){m()}}),[]),function(o){var p=o.which;if([].concat(Xa,[Ua,Ga,Ka,qa]).includes(p)){var f=s(),g=Za(f,i),b=g,v=b.elements,y=b.key2element,w=b.element2key,C=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),v),_=w.get(C),S=function(e,t,n,o){var i,r="prev",s="next",a="children",l="parent";if("inline"===e&&o===Ua)return{inlineTrigger:!0};var c=(0,x.A)((0,x.A)({},Wa,r),Va,s),d=(0,x.A)((0,x.A)((0,x.A)((0,x.A)({},$a,n?s:r),Ba,n?r:s),Va,a),Ua,a),u=(0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)({},Wa,r),Va,s),Ua,a),Ga,l),$a,n?a:l),Ba,n?l:a);switch(null===(i={inline:c,horizontal:d,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}["".concat(e).concat(t?"":"Sub")])||void 0===i?void 0:i[o]){case r:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case a:return{offset:1,sibling:!1};default:return null}}(e,1===a(_,!0).length,n,p);if(!S&&p!==Ka&&p!==qa)return;(Xa.includes(p)||[Ka,qa].includes(p))&&o.preventDefault();var M=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=w.get(e);l(o),m(),u.current=(0,bt.A)((function(){h.current===o&&t.focus()}))}};if([Ka,qa].includes(p)||S.sibling||!C){var E,k,T=Ja(E=C&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(C):r.current,v);k=p===Ka?T[0]:p===qa?T[T.length-1]:Qa(E,v,C,S.offset),M(k)}else if(S.inlineTrigger)c(_);else if(S.offset>0)c(_,!0),m(),u.current=(0,bt.A)((function(){g=Za(f,i);var e=C.getAttribute("aria-controls"),t=Qa(document.getElementById(e),g.elements);M(t)}),5);else if(S.offset<0){var R=a(_,!0),A=R[R.length-2],L=y.get(A);c(A,!1),M(L)}}null==d||d(o)}}(je,dt,_e,Ce,we,it,ot,ut,(function(e,t){var n=null!=t?t:!Ee.includes(e);wt(e,n)}),ae);o.useEffect((function(){ye(!0)}),[]);var _t=o.useMemo((function(){return{_internalRenderMenuItem:le,_internalRenderSubMenuItem:ce}}),[le,ce]),St="horizontal"!==je||M?pe:pe.map((function(e,t){return o.createElement(Da,{key:e.key,overflowDisabled:t>Ke},e)})),Mt=o.createElement(ka,(0,f.A)({id:y,ref:we,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:bl,className:T()(s,"".concat(s,"-root"),"".concat(s,"-").concat(je),h,(0,x.A)((0,x.A)({},"".concat(s,"-inline-collapsed"),We),"".concat(s,"-rtl"),_e),l),dir:v,style:c,role:"menu",tabIndex:p,data:St,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?pe.slice(-t):null;return o.createElement(Dl,{eventKey:nl,title:ne,disabled:Xe,internalPopupClose:0===t,popupClassName:oe},n)},maxCount:"horizontal"!==je||M?ka.INVALIDATE:ka.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){qe(e)},onKeyDown:Ct},ue));return o.createElement(ja.Provider,{value:_t},o.createElement(Ta.Provider,{value:Ce},o.createElement(Da,{prefixCls:s,rootClassName:l,mode:je,openKeys:Ee,rtl:_e,disabled:S,motion:ve?K:null,defaultMotions:ve?q:null,activeKey:dt,onActive:ht,onInactive:mt,selectedKeys:gt,inlineIndent:G,subMenuOpenDelay:R,subMenuCloseDelay:L,forceSubMenuRender:O,builtinPlacements:Q,triggerSubMenuAction:J,getPopupContainer:ie,itemIcon:Z,expandIcon:ee,onItemClick:yt,onOpenChange:wt},o.createElement(za.Provider,{value:at},Mt),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(Ia.Provider,{value:st},fe)))))})),Wl=Bl;Wl.Item=bl,Wl.SubMenu=Dl,Wl.ItemGroup=Nl,Wl.Divider=Hl;const Vl=Wl,Ul=o.createContext({}),Gl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var Kl=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:Gl}))};const ql=o.forwardRef(Kl),Xl=()=>({height:0,opacity:0}),Jl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Ql=e=>({height:e?e.offsetHeight:0}),Zl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,ec=(e,t,n)=>void 0!==n?n:`${e}-${t}`,tc=(e=ho.yH)=>({motionName:`${e}-motion-collapse`,onAppearStart:Xl,onEnterStart:Xl,onAppearActive:Jl,onEnterActive:Jl,onLeaveStart:Ql,onLeaveActive:Xl,onAppearEnd:Zl,onEnterEnd:Zl,onLeaveEnd:Zl,motionDeadline:500}),nc=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});const oc=e=>{const{prefixCls:t,className:n,dashed:i}=e,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["prefixCls","className","dashed"]),{getPrefixCls:s}=o.useContext(ho.QO),a=s("menu",t),l=T()({[`${a}-item-divider-dashed`]:!!i},n);return o.createElement(Hl,Object.assign({className:l},r))};function ic(e){var t=e.children,n=e.prefixCls,i=e.id,r=e.overlayInnerStyle,s=e.bodyClassName,a=e.className,l=e.style;return o.createElement("div",{className:T()("".concat(n,"-content"),a),style:l},o.createElement("div",{className:T()("".concat(n,"-inner"),s),id:i,role:"tooltip",style:r},"function"==typeof t?t():t))}var rc={shiftX:64,adjustY:1},sc={adjustX:1,shiftY:!0},ac=[0,0],lc={left:{points:["cr","cl"],overflow:sc,offset:[-4,0],targetOffset:ac},right:{points:["cl","cr"],overflow:sc,offset:[4,0],targetOffset:ac},top:{points:["bc","tc"],overflow:rc,offset:[0,-4],targetOffset:ac},bottom:{points:["tc","bc"],overflow:rc,offset:[0,4],targetOffset:ac},topLeft:{points:["bl","tl"],overflow:rc,offset:[0,-4],targetOffset:ac},leftTop:{points:["tr","tl"],overflow:sc,offset:[-4,0],targetOffset:ac},topRight:{points:["br","tr"],overflow:rc,offset:[0,-4],targetOffset:ac},rightTop:{points:["tl","tr"],overflow:sc,offset:[4,0],targetOffset:ac},bottomRight:{points:["tr","br"],overflow:rc,offset:[0,4],targetOffset:ac},rightBottom:{points:["bl","br"],overflow:sc,offset:[4,0],targetOffset:ac},bottomLeft:{points:["tl","bl"],overflow:rc,offset:[0,4],targetOffset:ac},leftBottom:{points:["br","bl"],overflow:sc,offset:[-4,0],targetOffset:ac}},cc=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],dc=function(e,t){var n=e.overlayClassName,i=e.trigger,r=void 0===i?["hover"]:i,s=e.mouseEnterDelay,a=void 0===s?0:s,l=e.mouseLeaveDelay,c=void 0===l?.1:l,d=e.overlayStyle,u=e.prefixCls,h=void 0===u?"rc-tooltip":u,m=e.children,p=e.onVisibleChange,g=e.afterVisibleChange,b=e.transitionName,v=e.animation,y=e.motion,w=e.placement,C=void 0===w?"right":w,_=e.align,S=void 0===_?{}:_,M=e.destroyTooltipOnHide,x=void 0!==M&&M,k=e.defaultVisible,R=e.getTooltipContainer,A=e.overlayInnerStyle,L=(e.arrowContent,e.overlay),O=e.id,D=e.showArrow,H=void 0===D||D,I=e.classNames,P=e.styles,N=(0,j.A)(e,cc),F=us(O),z=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,(function(){return z.current}));var Y,$,B,W=(0,E.A)({},N);return"visible"in e&&(W.popupVisible=e.visible),o.createElement(Hs,(0,f.A)({popupClassName:T()(n,null==I?void 0:I.root),prefixCls:h,popup:function(){return o.createElement(ic,{key:"content",prefixCls:h,id:F,bodyClassName:null==I?void 0:I.body,overlayInnerStyle:(0,E.A)((0,E.A)({},A),null==P?void 0:P.body)},L)},action:r,builtinPlacements:lc,popupPlacement:C,ref:z,popupAlign:S,getPopupContainer:R,onPopupVisibleChange:p,afterPopupVisibleChange:g,popupTransitionName:b,popupAnimation:v,popupMotion:y,defaultPopupVisible:k,autoDestroy:x,mouseLeaveDelay:c,popupStyle:(0,E.A)((0,E.A)({},d),null==P?void 0:P.root),mouseEnterDelay:a,arrow:H},W),($=(null==(Y=o.Children.only(m))?void 0:Y.props)||{},B=(0,E.A)((0,E.A)({},$),{},{"aria-describedby":L?F:null}),o.cloneElement(m,B)))};const uc=(0,o.forwardRef)(dc);var hc=n(48224);const mc=e=>{const t=o.useContext(hc.A);return o.useMemo((()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t),[e,t])},pc=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},fc=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},gc=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},bc=Io("Space",(e=>{const t=ko(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[fc(t),gc(t),pc(t)]}),(()=>({})),{resetStyle:!1});var vc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const yc=o.createContext(null),wc=(e,t)=>{const n=o.useContext(yc),i=o.useMemo((()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:r}=n,s="vertical"===o?"-vertical-":"-";return T()(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:r,[`${e}-compact${s}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:i}},Cc=e=>{const{children:t}=e;return o.createElement(yc.Provider,{value:null},t)},_c=e=>{const{children:t}=e,n=vc(e,["children"]);return o.createElement(yc.Provider,{value:o.useMemo((()=>n),[n])},t)},Sc=e=>{const{space:t,form:n,children:i}=e;if(null==i)return null;let r=i;return n&&(r=o.createElement(Pr,{override:!0,status:!0},r)),t&&(r=o.createElement(Cc,null,r)),r},Mc=e=>({animationDuration:e,animationFillMode:"both"}),Ec=e=>({animationDuration:e,animationFillMode:"both"}),xc=(e,t,n,o,i=!1)=>{const r=i?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:Object.assign(Object.assign({},Mc(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},Ec(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},kc=new fo.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Tc=new fo.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Rc=new fo.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ac=new fo.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Lc=new fo.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Oc=new fo.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Dc={zoom:{inKeyframes:kc,outKeyframes:Tc},"zoom-big":{inKeyframes:Rc,outKeyframes:Ac},"zoom-big-fast":{inKeyframes:Rc,outKeyframes:Ac},"zoom-left":{inKeyframes:new fo.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new fo.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new fo.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new fo.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Lc,outKeyframes:Oc},"zoom-down":{inKeyframes:new fo.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new fo.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Hc=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:i,outKeyframes:r}=Dc[t];return[xc(o,i,r,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ic=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Pc(e,t){return Ic.reduce(((n,o)=>{const i=e[`${o}1`],r=e[`${o}3`],s=e[`${o}6`],a=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:i,lightBorderColor:r,darkColor:s,textColor:a}))}),{})}const Nc=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:o,tooltipColor:i,tooltipBg:r,tooltipBorderRadius:s,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:d,paddingXS:u,arrowOffsetHorizontal:h,sizePopupArrow:m}=e,p=t(s).add(m).add(h).equal(),f=t(s).mul(2).add(m).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Do.dF)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:o,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${n}-inner`]:{minWidth:f,minHeight:l,padding:`${(0,fo.zA)(e.calc(d).div(2).equal())} ${(0,fo.zA)(u)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:s,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,8)}},[`${n}-content`]:{position:"relative"}}),Pc(e,((e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}})))),{"&-rtl":{direction:"rtl"}})},ta(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Fc=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Zs({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Js(ko(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),zc=(e,t=!0)=>Io("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,i=ko(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[Nc(i),Hc(e,"zoom-big-fast")]}),Fc,{resetStyle:!1,injectStyle:t})(e),jc=Ic.map((e=>`${e}-inverse`));function Yc(e,t){const n=function(e,t=!0){return t?[].concat((0,tt.A)(jc),(0,tt.A)(Ic)).includes(e):Ic.includes(e)}(t),o=T()({[`${e}-${t}`]:t&&n}),i={},r={};return t&&!n&&(i.background=t,r["--antd-arrow-background-color"]=t),{className:o,overlayStyle:i,arrowStyle:r}}const $c=o.forwardRef(((e,t)=>{var n,i;const{prefixCls:r,openClassName:s,getTooltipContainer:a,color:l,overlayInnerStyle:c,children:d,afterOpenChange:u,afterVisibleChange:h,destroyTooltipOnHide:m,destroyOnHidden:p,arrow:f=!0,title:g,overlay:b,builtinPlacements:v,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0,motion:C,getPopupContainer:_,placement:S="top",mouseEnterDelay:M=.1,mouseLeaveDelay:E=.1,overlayStyle:x,rootClassName:k,overlayClassName:R,styles:A,classNames:L}=e,O=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),D=!!f,[,H]=(0,Ho.Ay)(),{getPopupContainer:I,getPrefixCls:P,direction:N,className:F,style:z,classNames:j,styles:Y}=(0,ho.TP)("tooltip"),$=(0,ao.rJ)("Tooltip"),B=o.useRef(null),W=()=>{var e;null===(e=B.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>{var e,t;return{forceAlign:W,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),W()},nativeElement:null===(e=B.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=B.current)||void 0===t?void 0:t.popupElement}}));const[V,U]=(0,so.A)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(i=e.defaultOpen)&&void 0!==i?i:e.defaultVisible}),G=!g&&!b&&0!==g,K=o.useMemo((()=>{var e,t;let n=y;return"object"==typeof f&&(n=null!==(t=null!==(e=f.pointAtCenter)&&void 0!==e?e:f.arrowPointAtCenter)&&void 0!==t?t:y),v||ra({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:D?H.sizePopupArrow:0,borderRadius:H.borderRadius,offset:H.marginXXS,visibleFirst:!0})}),[y,f,v,H]),q=o.useMemo((()=>0===g?g:b||g||""),[b,g]),X=o.createElement(Sc,{space:!0},"function"==typeof q?q():q),J=P("tooltip",r),Q=P(),Z=e["data-popover-inject"];let ee=V;"open"in e||"visible"in e||!G||(ee=!1);const te=o.isValidElement(d)&&!mo(d)?d:o.createElement("span",null,d),ne=te.props,oe=ne.className&&"string"!=typeof ne.className?ne.className:T()(ne.className,s||`${J}-open`),[ie,re,se]=zc(J,!Z),ae=Yc(J,l),le=ae.arrowStyle,ce=T()(R,{[`${J}-rtl`]:"rtl"===N},ae.className,k,re,se,F,j.root,null==L?void 0:L.root),de=T()(j.body,null==L?void 0:L.body),[ue,he]=Xs("Tooltip",O.zIndex),me=o.createElement(uc,Object.assign({},O,{zIndex:ue,showArrow:D,placement:S,mouseEnterDelay:M,mouseLeaveDelay:E,prefixCls:J,classNames:{root:ce,body:de},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},le),Y.root),z),x),null==A?void 0:A.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Y.body),c),null==A?void 0:A.body),ae.overlayStyle)},getTooltipContainer:_||a||I,ref:B,builtinPlacements:K,overlay:X,visible:ee,onVisibleChange:t=>{var n,o;U(!G&&t),G||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!=u?u:h,arrowContent:o.createElement("span",{className:`${J}-arrow-content`}),motion:{motionName:ec(Q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!=p?p:!!m}),ee?po(te,{className:oe}):te);return ie(o.createElement(Us.Provider,{value:he},me))})),Bc=$c;Bc._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:i="top",title:r,color:s,overlayInnerStyle:a}=e,{getPrefixCls:l}=o.useContext(ho.QO),c=l("tooltip",t),[d,u,h]=zc(c),m=Yc(c,s),p=m.arrowStyle,f=Object.assign(Object.assign({},a),m.overlayStyle),g=T()(u,h,c,`${c}-pure`,`${c}-placement-${i}`,n,m.className);return d(o.createElement("div",{className:g,style:p},o.createElement("div",{className:`${c}-arrow`}),o.createElement(ic,Object.assign({},e,{className:u,prefixCls:c,overlayInnerStyle:f}),r)))};const Wc=Bc,Vc=e=>{var t;const{className:n,children:i,icon:r,title:s,danger:a,extra:l}=e,{prefixCls:c,firstLevel:d,direction:u,disableMenuItemTitleTooltip:h,inlineCollapsed:m}=o.useContext(nc),{siderCollapsed:p}=o.useContext(Ul);let f=s;void 0===s?f=d?i:"":!1===s&&(f="");const g={title:f};p||m||(g.title=null,g.open=!1);const b=G(i).length;let v=o.createElement(bl,Object.assign({},Dn(e,["title","icon","danger"]),{className:T()({[`${c}-item-danger`]:a,[`${c}-item-only-child`]:1===(r?b+1:b)},n),title:"string"==typeof s?s:void 0}),po(r,{className:T()(o.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),(e=>{const t=null==i?void 0:i[0],n=o.createElement("span",{className:T()(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||0===l})},i);return(!r||o.isValidElement(i)&&"span"===i.type)&&i&&e&&d&&"string"==typeof t?o.createElement("div",{className:`${c}-inline-collapsed-noicon`},t.charAt(0)):n})(m));return h||(v=o.createElement(Wc,Object.assign({},g,{placement:"rtl"===u?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),v)),v};const Uc=o.createContext(null),Gc=o.forwardRef(((e,t)=>{const{children:n}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["children"]),r=o.useContext(Uc),s=o.useMemo((()=>Object.assign(Object.assign({},r),i)),[r,i.prefixCls,i.mode,i.selectable,i.rootClassName]),a=(0,g.H3)(n),l=(0,g.xK)(t,a?(0,g.A9)(n):null);return o.createElement(Uc.Provider,{value:s},o.createElement(Sc,{space:!0},a?o.cloneElement(n,{ref:l}):n))})),Kc=Uc;var qc=n(2616);const Xc=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Jc=new fo.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Qc=new fo.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Zc=new fo.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ed=new fo.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),td=new fo.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),nd=new fo.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),od=new fo.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),id=new fo.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),rd={"slide-up":{inKeyframes:Jc,outKeyframes:Qc},"slide-down":{inKeyframes:Zc,outKeyframes:ed},"slide-left":{inKeyframes:td,outKeyframes:nd},"slide-right":{inKeyframes:od,outKeyframes:id}},sd=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:i,outKeyframes:r}=rd[t];return[xc(o,i,r,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},ad=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:i,lineWidth:r,lineType:s,itemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${(0,fo.zA)(r)} ${s} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},ld=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,fo.zA)(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,fo.zA)(t)})`}}}}),cd=e=>Object.assign({},(0,Do.jk)(e)),dd=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:i,subMenuItemSelectedColor:r,groupTitleColor:s,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:d,activeBarWidth:u,activeBarBorderWidth:h,motionDurationSlow:m,motionEaseInOut:p,motionEaseOut:f,itemPaddingInline:g,motionDurationMid:b,itemHoverColor:v,lineType:y,colorSplit:w,itemDisabledColor:C,dangerItemColor:_,dangerItemHoverColor:S,dangerItemSelectedColor:M,dangerItemActiveBg:E,dangerItemSelectedBg:x,popupBg:k,itemHoverBg:T,itemActiveBg:R,menuSubMenuBg:A,horizontalItemSelectedColor:L,horizontalItemSelectedBg:O,horizontalItemBorderRadius:D,horizontalItemHoverBg:H}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:a,[`&${n}-root:focus-visible`]:Object.assign({},cd(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:s}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:r},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},cd(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:R}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:R}}},[`${n}-item-danger`]:{color:_,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:M},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:x}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${(0,fo.zA)(d)} solid transparent`,transition:`border-color ${m} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:H,"&::after":{borderBottomWidth:d,borderBottomColor:L}},"&-selected":{color:L,backgroundColor:O,"&:hover":{backgroundColor:O},"&::after":{borderBottomWidth:d,borderBottomColor:L}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${(0,fo.zA)(h)} ${y} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,fo.zA)(u)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${f}`,`opacity ${b} ${f}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:M}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${p}`,`opacity ${b} ${p}`].join(",")}}}}}},ud=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:i,menuArrowSize:r,marginXS:s,itemMarginBlock:a,itemWidth:l,itemPaddingInline:c}=e,d=e.calc(r).add(i).add(s).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:(0,fo.zA)(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:a,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:(0,fo.zA)(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:d}}},hd=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:i,dropdownWidth:r,controlHeightLG:s,motionEaseOut:a,paddingXL:l,itemMarginInline:c,fontSizeLG:d,motionDurationFast:u,motionDurationSlow:h,paddingXS:m,boxShadowSecondary:p,collapsedWidth:f,collapsedIconSize:g}=e,b={height:o,lineHeight:(0,fo.zA)(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},ud(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},ud(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:r,maxHeight:`calc(100vh - ${(0,fo.zA)(e.calc(s).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${h}`,`background ${h}`,`padding ${u} ${a}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:f,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,fo.zA)(e.calc(g).div(2).equal())} - ${(0,fo.zA)(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:(0,fo.zA)(o),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Do.L9),{paddingInline:m})}}]},md=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:i,motionEaseOut:r,iconCls:s,iconSize:a,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:a,fontSize:a,transition:[`font-size ${o} ${r}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,Do.Nk)()),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},pd=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:i,menuArrowSize:r,menuArrowOffset:s}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:r,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(r).mul(.6).equal(),height:e.calc(r).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,fo.zA)(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,fo.zA)(s)})`}}}}},fd=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:i,motionDurationMid:r,motionEaseInOut:s,paddingXS:a,padding:l,colorSplit:c,lineWidth:d,zIndexPopup:u,borderRadiusLG:h,subMenuItemBorderRadius:m,menuArrowSize:p,menuArrowOffset:f,lineType:g,groupTitleLineHeight:b,groupTitleFontSize:v}=e;return[{"":{[n]:Object.assign(Object.assign({},(0,Do.t6)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Do.dF)(e)),(0,Do.t6)()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${(0,fo.zA)(a)} ${(0,fo.zA)(l)}`,fontSize:v,lineHeight:b,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${s}`,`background ${i} ${s}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${s}`,`background ${i} ${s}`,`padding ${r} ${s}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${s}`,`padding ${i} ${s}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),md(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${(0,fo.zA)(e.calc(o).mul(2).equal())} ${(0,fo.zA)(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:h},md(e)),pd(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${s}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),pd(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,fo.zA)(f)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,fo.zA)(e.calc(f).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${(0,fo.zA)(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,fo.zA)(e.calc(f).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,fo.zA)(f)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},gd=e=>{var t,n,o;const{colorPrimary:i,colorError:r,colorTextDisabled:s,colorErrorBg:a,colorText:l,colorTextDescription:c,colorBgContainer:d,colorFillAlter:u,colorFillContent:h,lineWidth:m,lineWidthBold:p,controlItemBgActive:f,colorBgTextHover:g,controlHeightLG:b,lineHeight:v,colorBgElevated:y,marginXXS:w,padding:C,fontSize:_,controlHeightSM:S,fontSizeLG:M,colorTextLightSolid:E,colorErrorHover:x}=e,k=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,T=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:m,R=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,A=new qc.Y(E).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:d,itemBg:d,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:h,itemActiveBg:f,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:k,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:m,activeBarBorderWidth:T,colorItemTextDisabled:s,itemDisabledColor:s,colorDangerItemText:r,dangerItemColor:r,colorDangerItemTextHover:r,dangerItemHoverColor:r,colorDangerItemTextSelected:r,dangerItemSelectedColor:r,colorDangerItemBgActive:a,dangerItemActiveBg:a,colorDangerItemBgSelected:a,dangerItemSelectedBg:a,itemMarginInline:R,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:v,collapsedWidth:2*b,popupBg:y,itemMarginBlock:w,itemPaddingInline:C,horizontalLineHeight:1.15*b+"px",iconSize:_,iconMarginInlineEnd:S-_,collapsedIconSize:M,groupTitleFontSize:_,darkItemDisabledColor:new qc.Y(E).setA(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:r,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:i,darkDangerItemSelectedBg:r,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:E,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:r,itemWidth:k?`calc(100% + ${T}px)`:`calc(100% - ${2*R}px)`}},bd=(e,t=e,n=!0)=>Io("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:i,darkDangerItemColor:r,darkItemBg:s,darkSubMenuItemBg:a,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:d,darkItemHoverBg:u,darkGroupTitleColor:h,darkItemHoverColor:m,darkItemDisabledColor:p,darkDangerItemHoverColor:f,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:b,popupBg:v,darkPopupBg:y}=e,w=e.calc(o).div(7).mul(5).equal(),C=ko(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),_=ko(C,{itemColor:i,itemHoverColor:m,groupTitleColor:h,itemSelectedColor:l,subMenuItemSelectedColor:l,itemBg:s,popupBg:y,subMenuItemBg:a,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:u,itemDisabledColor:p,dangerItemColor:r,dangerItemHoverColor:f,dangerItemSelectedColor:g,dangerItemActiveBg:b,dangerItemSelectedBg:d,menuSubMenuBg:a,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[fd(C),ad(C),hd(C),dd(C,"light"),dd(_,"dark"),ld(C),Xc(C),sd(C,"slide-up"),sd(C,"slide-down"),Hc(C,"zoom-big")]}),gd,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),vd=e=>{var t;const{popupClassName:n,icon:i,title:r,theme:s}=e,a=o.useContext(nc),{prefixCls:l,inlineCollapsed:c,theme:d}=a,u=Fa();let h;if(i){const e=o.isValidElement(r)&&"span"===r.type;h=o.createElement(o.Fragment,null,po(i,{className:T()(o.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),e?r:o.createElement("span",{className:`${l}-title-content`},r))}else h=c&&!u.length&&r&&"string"==typeof r?o.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):o.createElement("span",{className:`${l}-title-content`},r);const m=o.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]),[p]=Xs("Menu");return o.createElement(nc.Provider,{value:m},o.createElement(Dl,Object.assign({},Dn(e,["icon"]),{title:h,popupClassName:T()(l,n,`${l}-${s||d}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};function yd(e){return null===e||!1===e}const wd={item:Vc,submenu:vd,divider:oc},Cd=(0,o.forwardRef)(((e,t)=>{var n;const i=o.useContext(Kc),r=i||{},{getPrefixCls:s,getPopupContainer:a,direction:c,menu:d}=o.useContext(ho.QO),u=s(),{prefixCls:h,className:m,style:p,theme:f="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:v,siderCollapsed:y,rootClassName:w,mode:C,selectable:_,onClick:S,overflowedIndicatorPopupClassName:M}=e,E=Dn(function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(n=r.validator)||void 0===n||n.call(r,{mode:C});const x=(0,l.A)(((...e)=>{var t;null==S||S.apply(void 0,e),null===(t=r.onClick)||void 0===t||t.call(r)})),k=r.mode||C,R=null!=_?_:r.selectable,A=null!=v?v:y,L={horizontal:{motionName:`${u}-slide-up`},inline:tc(u),other:{motionName:`${u}-zoom-big`}},O=s("menu",h||r.prefixCls),D=vi(O),[H,I,P]=bd(O,D,!i),N=T()(`${O}-${f}`,null==d?void 0:d.className,m),F=o.useMemo((()=>{var e,t;if("function"==typeof g||yd(g))return g||null;if("function"==typeof r.expandIcon||yd(r.expandIcon))return r.expandIcon||null;if("function"==typeof(null==d?void 0:d.expandIcon)||yd(null==d?void 0:d.expandIcon))return(null==d?void 0:d.expandIcon)||null;const n=null!==(e=null!=g?g:null==r?void 0:r.expandIcon)&&void 0!==e?e:null==d?void 0:d.expandIcon;return po(n,{className:T()(`${O}-submenu-expand-icon`,o.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[g,null==r?void 0:r.expandIcon,null==d?void 0:d.expandIcon,O]),z=o.useMemo((()=>({prefixCls:O,inlineCollapsed:A||!1,direction:c,firstLevel:!0,theme:f,mode:k,disableMenuItemTitleTooltip:b})),[O,A,c,b,f]);return H(o.createElement(Kc.Provider,{value:null},o.createElement(nc.Provider,{value:z},o.createElement(Vl,Object.assign({getPopupContainer:a,overflowedIndicator:o.createElement(ql,null),overflowedIndicatorPopupClassName:T()(O,`${O}-${f}`,M),mode:k,selectable:R,onClick:x},E,{inlineCollapsed:A,style:Object.assign(Object.assign({},null==d?void 0:d.style),p),className:N,prefixCls:O,direction:c,defaultMotions:L,expandIcon:F,ref:t,rootClassName:T()(w,I,r.rootClassName,P,D),_internalComponents:wd})))))})),_d=Cd,Sd=(0,o.forwardRef)(((e,t)=>{const n=(0,o.useRef)(null),i=o.useContext(Ul);return(0,o.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),o.createElement(_d,Object.assign({ref:n},e,i))}));Sd.Item=Vc,Sd.SubMenu=vd,Sd.Divider=oc,Sd.ItemGroup=Nl;const Md=Sd,Ed=new fo.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xd=new fo.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),kd=new fo.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Td=new fo.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Rd=new fo.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ad=new fo.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ld={"move-up":{inKeyframes:new fo.Mo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new fo.Mo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Ed,outKeyframes:xd},"move-left":{inKeyframes:kd,outKeyframes:Td},"move-right":{inKeyframes:Rd,outKeyframes:Ad}},Od=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:i,outKeyframes:r}=Ld[t];return[xc(o,i,r,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Dd=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:i}=e,r=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${r}`]:{[`&${r}-danger:not(${r}-disabled)`]:{color:o,"&:hover":{color:i,backgroundColor:o}}}}}},Hd=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:i,sizePopupArrow:r,antCls:s,iconCls:a,motionDurationMid:l,paddingBlock:c,fontSize:d,dropdownEdgeChildPadding:u,colorTextDisabled:h,fontSizeIcon:m,controlPaddingHorizontal:p,colorBgElevated:f}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(r).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${a}-down, & > ${s}-btn-icon > ${a}-down`]:{fontSize:m}},[`${t}-wrap`]:{position:"relative",[`${s}-btn > ${a}-down`]:{fontSize:m},[`${a}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${a}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft,\n &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft,\n &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom,\n &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom,\n &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight,\n &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Jc},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft,\n &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft,\n &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top,\n &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top,\n &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight,\n &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Zc},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft,\n &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom,\n &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Qc},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft,\n &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top,\n &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:ed}}},ta(e,f,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},(0,Do.dF)(e)),{[n]:Object.assign(Object.assign({padding:u,listStyleType:"none",backgroundColor:f,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,Do.K8)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${(0,fo.zA)(c)} ${(0,fo.zA)(p)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,fo.zA)(c)} ${(0,fo.zA)(p)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,Do.K8)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:f,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,fo.zA)(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:m,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${(0,fo.zA)(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:f,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[sd(e,"slide-up"),sd(e,"slide-down"),Od(e,"move-up"),Od(e,"move-down"),Hc(e,"zoom-big")]]},Id=Io("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:i}=e,r=ko(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[Hd(r),Dd(r)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Zs({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Js(e))),{resetStyle:!1}),Pd=e=>{var t;const{menu:n,arrow:i,prefixCls:r,children:s,trigger:a,disabled:c,dropdownRender:d,popupRender:u,getPopupContainer:h,overlayClassName:m,rootClassName:p,overlayStyle:f,open:g,onOpenChange:b,visible:v,onVisibleChange:y,mouseEnterDelay:w=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:_=!0,placement:S="",overlay:M,transitionName:E,destroyOnHidden:x,destroyPopupOnHide:k}=e,{getPopupContainer:R,getPrefixCls:A,direction:L,dropdown:O}=o.useContext(ho.QO),D=u||d;(0,ao.rJ)("Dropdown");const H=o.useMemo((()=>{const e=A();return void 0!==E?E:S.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[A,S,E]),I=o.useMemo((()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:"rtl"===L?"bottomRight":"bottomLeft"),[S,L]),P=A("dropdown",r),N=vi(P),[F,z,j]=Id(P,N),[,Y]=(0,Ho.Ay)(),$=o.Children.only("object"!=typeof(ee=s)&&"function"!=typeof ee||null===ee?o.createElement("span",null,s):s),B=po($,{className:T()(`${P}-trigger`,{[`${P}-rtl`]:"rtl"===L},$.props.className),disabled:null!==(t=$.props.disabled)&&void 0!==t?t:c}),W=c?[]:a,V=!!(null==W?void 0:W.includes("contextMenu")),[U,G]=(0,so.A)(!1,{value:null!=g?g:v}),K=(0,l.A)((e=>{null==b||b(e,{source:"trigger"}),null==y||y(e),G(e)})),q=T()(m,p,z,j,N,null==O?void 0:O.className,{[`${P}-rtl`]:"rtl"===L}),X=ra({arrowPointAtCenter:"object"==typeof i&&i.pointAtCenter,autoAdjustOverflow:_,offset:Y.marginXXS,arrowWidth:i?Y.sizePopupArrow:0,borderRadius:Y.borderRadius}),J=o.useCallback((()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==b||b(!1,{source:"menu"}),G(!1))}),[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[Q,Z]=Xs("Dropdown",null==f?void 0:f.zIndex);var ee;let te=o.createElement(Vs,Object.assign({alignPoint:V},Dn(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:C,visible:U,builtinPlacements:X,arrow:!!i,overlayClassName:q,prefixCls:P,getPopupContainer:h||R,transitionName:H,trigger:W,overlay:()=>{let e;return e=(null==n?void 0:n.items)?o.createElement(Md,Object.assign({},n)):"function"==typeof M?M():M,D&&(e=D(e)),e=o.Children.only("string"==typeof e?o.createElement("span",null,e):e),o.createElement(Gc,{prefixCls:`${P}-menu`,rootClassName:T()(j,N),expandIcon:o.createElement("span",{className:`${P}-menu-submenu-arrow`},"rtl"===L?o.createElement(Jr,{className:`${P}-menu-submenu-arrow-icon`}):o.createElement(es,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:J,validator:({mode:e})=>{}},e)},placement:I,onVisibleChange:K,overlayStyle:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.style),f),{zIndex:Q}),autoDestroy:null!=x?x:k}),B);return Q&&(te=o.createElement(Us.Provider,{value:Z},te)),F(te)},Nd=aa(Pd,"align",void 0,"dropdown",(e=>e));Pd._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(Nd,Object.assign({},e),o.createElement("span",null));const Fd=Pd;const zd=o.createContext(void 0),jd=/^[\u4E00-\u9FA5]{2}$/,Yd=jd.test.bind(jd);function $d(e){return"string"==typeof e}function Bd(e){return"text"===e||"link"===e}["default","primary","danger"].concat((0,tt.A)(Ic));const Wd={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var Vd=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:Wd}))};const Ud=o.forwardRef(Vd),Gd=(0,o.forwardRef)(((e,t)=>{const{className:n,style:i,children:r,prefixCls:s}=e,a=T()(`${s}-icon`,n);return o.createElement("span",{ref:t,className:a,style:i},r)})),Kd=Gd,qd=(0,o.forwardRef)(((e,t)=>{const{prefixCls:n,className:i,style:r,iconClassName:s}=e,a=T()(`${n}-loading-icon`,i);return o.createElement(Kd,{prefixCls:n,className:a,style:r,ref:t},o.createElement(Ud,{className:s}))})),Xd=()=>({width:0,opacity:0,transform:"scale(0)"}),Jd=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Qd=e=>{const{prefixCls:t,loading:n,existIcon:i,className:r,style:s,mount:a}=e,l=!!n;return i?o.createElement(qd,{prefixCls:t,className:r,style:s}):o.createElement(Yo.Ay,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Xd,onAppearActive:Jd,onEnterStart:Xd,onEnterActive:Jd,onLeaveStart:Jd,onLeaveActive:Xd},(({className:e,style:n},i)=>{const a=Object.assign(Object.assign({},s),n);return o.createElement(qd,{prefixCls:t,className:T()(r,e),style:a,ref:i})}))},Zd=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),eu=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:i,colorErrorHover:r}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Zd(`${t}-primary`,i),Zd(`${t}-danger`,r)]}};var tu,nu=["b"],ou=["v"],iu=function(e){return Math.round(Number(e||0))},ru=function(e){(0,Ce.A)(n,e);var t=(0,_e.A)(n);function n(e){return(0,ye.A)(this,n),t.call(this,function(e){if(e instanceof qc.Y)return e;if(e&&"object"===(0,M.A)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,o=(0,j.A)(t,nu);return(0,E.A)((0,E.A)({},o),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return(0,we.A)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=iu(100*e.s),n=iu(100*e.b),o=iu(e.h),i=e.a,r="hsb(".concat(o,", ").concat(t,"%, ").concat(n,"%)"),s="hsba(".concat(o,", ").concat(t,"%, ").concat(n,"%, ").concat(i.toFixed(0===i?0:2),")");return 1===i?r:s}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,j.A)(e,ou);return(0,E.A)((0,E.A)({},n),{},{b:t,a:this.a})}}]),n}(qc.Y);(tu="#1677ff")instanceof ru||new ru(tu);let su=function(){return(0,we.A)((function e(t){var n;if((0,ye.A)(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const o=Array.isArray(t);o&&t.length?(this.colors=t.map((({color:t,percent:n})=>({color:new e(t),percent:n}))),this.metaColor=new ru(this.colors[0].color.metaColor)):this.metaColor=new ru(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;return e?`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const o=e.colors[n];return t.percent===o.percent&&t.color.equals(o.color)})):this.toHexString()===e.toHexString())}}])}();var au=n(94925),lu=n(85045);const cu=e=>{const{paddingInline:t,onlyIconSize:n}=e;return ko(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},du=e=>{var t,n,o,i,r,s;const a=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(o=e.contentFontSizeLG)&&void 0!==o?o:e.fontSizeLG,d=null!==(i=e.contentLineHeight)&&void 0!==i?i:(0,au.k)(a),u=null!==(r=e.contentLineHeightSM)&&void 0!==r?r:(0,au.k)(l),h=null!==(s=e.contentLineHeightLG)&&void 0!==s?s:(0,au.k)(c),m=((e,t)=>{const{r:n,g:o,b:i,a:r}=e.toRgb(),s=new ru(e.toRgbString()).onBackground(t).toHsv();return r<=.5?s.v>.5:.299*n+.587*o+.114*i>192})(new su(e.colorBgSolid),"#fff")?"#000":"#fff",p=Ic.reduce(((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${(0,fo.zA)(e.controlOutlineWidth)} 0 ${(0,lu.A)(e[`${n}1`],e.colorBgContainer)}`})),{});return Object.assign(Object.assign({},p),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:m,contentFontSize:a,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:u,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-a*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*u)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)})},uu=e=>{const{componentCls:t,iconCls:n,fontWeight:o,opacityLoading:i,motionDurationSlow:r,motionEaseInOut:s,marginXS:a,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:(0,Do.Nk)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,Do.K8)(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map((e=>`${e} ${r} ${s}`)).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(a).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(a).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(a).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(a).mul(-1).equal()}}}}}},hu=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),mu=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),pu=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),fu=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),gu=(e,t,n,o,i,r,s,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},hu(e,Object.assign({background:t},s),Object.assign({background:t},a))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:r||void 0}})}),bu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},fu(e))}),vu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),yu=(e,t,n,o)=>{const i=o&&["link","text"].includes(o)?vu:bu;return Object.assign(Object.assign({},i(e)),hu(e.componentCls,t,n))},wu=(e,t,n,o,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},yu(e,o,i))}),Cu=(e,t,n,o,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},yu(e,o,i))}),_u=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Su=(e,t,n,o)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},yu(e,n,o))}),Mu=(e,t,n,o,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},yu(e,o,i,n))}),Eu=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},wu(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),_u(e)),Su(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),gu(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Mu(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),xu=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Cu(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),_u(e)),Su(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Mu(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Mu(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),gu(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ku=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},wu(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Cu(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_u(e)),Su(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Mu(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Mu(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),gu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Tu=e=>Object.assign(Object.assign({},Mu(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),gu(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Ru=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Eu(e),[`${t}-color-primary`]:xu(e),[`${t}-color-dangerous`]:ku(e),[`${t}-color-link`]:Tu(e)},(e=>{const{componentCls:t}=e;return Ic.reduce(((n,o)=>{const i=e[`${o}6`],r=e[`${o}1`],s=e[`${o}5`],a=e[`${o}2`],l=e[`${o}3`],c=e[`${o}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${o}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:e[`${o}ShadowColor`]},wu(e,e.colorTextLightSolid,i,{background:s},{background:c})),Cu(e,i,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),_u(e)),Su(e,r,{background:a},{background:l})),Mu(e,i,"link",{color:s},{color:c})),Mu(e,i,"text",{color:s,background:r},{color:c,background:l}))})}),{})})(e))},Au=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Cu(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Mu(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),wu(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Mu(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Lu=(e,t="")=>{const{componentCls:n,controlHeight:o,fontSize:i,borderRadius:r,buttonPaddingHorizontal:s,iconCls:a,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:o,padding:`${(0,fo.zA)(l)} ${(0,fo.zA)(s)}`,borderRadius:r,[`&${n}-icon-only`]:{width:o,[a]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:mu(e)},{[`${n}${n}-round${t}`]:pu(e)}]},Ou=e=>{const t=ko(e,{fontSize:e.contentFontSize});return Lu(t,e.componentCls)},Du=e=>{const t=ko(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Lu(t,`${e.componentCls}-sm`)},Hu=e=>{const t=ko(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Lu(t,`${e.componentCls}-lg`)},Iu=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Pu=Io("Button",(e=>{const t=cu(e);return[uu(t),Ou(t),Du(t),Hu(t),Iu(t),Ru(t),Au(t),eu(t)]}),du,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Nu(e,t,n){const{focusElCls:o,focus:i,borderElCls:r}=n,s=r?"> *":"",a=["hover",i?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${s}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[a]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function Fu(e,t,n){const{borderElCls:o}=n,i=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function zu(e,t={focus:!0}){const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},Nu(e,o,t)),Fu(n,o,t))}}function ju(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Yu(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},ju(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const $u=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:o,calc:i}=e,r=i(o).mul(-1).equal(),s=e=>{const i=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${i} + ${i}::before`]:{position:"absolute",top:e?r:0,insetInlineStart:e?0:r,backgroundColor:n,content:'""',width:e?"100%":o,height:e?o:"100%"}}};return Object.assign(Object.assign({},s()),s(!0))},Bu=No(["Button","compact"],(e=>{const t=cu(e);return[zu(t),Yu(t),$u(t)]}),du);const Wu={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Vu=o.forwardRef(((e,t)=>{var n,i;const{loading:r=!1,prefixCls:s,color:a,variant:l,type:c,danger:d=!1,shape:u="default",size:h,styles:m,disabled:p,className:f,rootClassName:b,children:v,icon:y,iconPosition:w="start",ghost:C=!1,block:_=!1,htmlType:S="button",classNames:M,style:E={},autoInsertSpace:x,autoFocus:k}=e,R=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),A=c||"default",{button:L}=o.useContext(ho.QO),[O,D]=(0,o.useMemo)((()=>{if(a&&l)return[a,l];if(c||d){const e=Wu[A]||[];return d?["danger",e[1]]:e}return(null==L?void 0:L.color)&&(null==L?void 0:L.variant)?[L.color,L.variant]:["default","outlined"]}),[c,a,l,d,null==L?void 0:L.variant,null==L?void 0:L.color]),H="danger"===O?"dangerous":O,{getPrefixCls:I,direction:P,autoInsertSpace:N,className:F,style:z,classNames:j,styles:Y}=(0,ho.TP)("button"),$=null===(n=null!=x?x:N)||void 0===n||n,B=I("btn",s),[W,V,U]=Pu(B),G=(0,o.useContext)(bi.A),K=null!=p?p:G,q=(0,o.useContext)(zd),X=(0,o.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(r)),[r]),[J,Q]=(0,o.useState)(X.loading),[Z,ee]=(0,o.useState)(!1),te=(0,o.useRef)(null),ne=(0,g.xK)(t,te),oe=1===o.Children.count(v)&&!y&&!Bd(D),ie=(0,o.useRef)(!0);o.useEffect((()=>(ie.current=!1,()=>{ie.current=!0})),[]),(0,o.useLayoutEffect)((()=>{let e=null;return X.delay>0?e=setTimeout((()=>{e=null,Q(!0)}),X.delay):Q(X.loading),function(){e&&(clearTimeout(e),e=null)}}),[X.delay,X.loading]),(0,o.useEffect)((()=>{if(!te.current||!$)return;const e=te.current.textContent||"";oe&&Yd(e)?Z||ee(!0):Z&&ee(!1)})),(0,o.useEffect)((()=>{k&&te.current&&te.current.focus()}),[]);const re=o.useCallback((t=>{var n;J||K?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,J,K]),{compactSize:se,compactItemClassnames:ae}=wc(B,P),le=mc((e=>{var t,n;return null!==(n=null!==(t=null!=h?h:se)&&void 0!==t?t:q)&&void 0!==n?n:e})),ce=le&&null!==(i={large:"lg",small:"sm",middle:void 0}[le])&&void 0!==i?i:"",de=J?"loading":y,ue=Dn(R,["navigate"]),he=T()(B,V,U,{[`${B}-${u}`]:"default"!==u&&u,[`${B}-${A}`]:A,[`${B}-dangerous`]:d,[`${B}-color-${H}`]:H,[`${B}-variant-${D}`]:D,[`${B}-${ce}`]:ce,[`${B}-icon-only`]:!v&&0!==v&&!!de,[`${B}-background-ghost`]:C&&!Bd(D),[`${B}-loading`]:J,[`${B}-two-chinese-chars`]:Z&&$&&!J,[`${B}-block`]:_,[`${B}-rtl`]:"rtl"===P,[`${B}-icon-end`]:"end"===w},ae,f,b,F),me=Object.assign(Object.assign({},z),E),pe=T()(null==M?void 0:M.icon,j.icon),fe=Object.assign(Object.assign({},(null==m?void 0:m.icon)||{}),Y.icon||{}),ge=y&&!J?o.createElement(Kd,{prefixCls:B,className:pe,style:fe},y):r&&"object"==typeof r&&r.icon?o.createElement(Kd,{prefixCls:B,className:pe,style:fe},r.icon):o.createElement(Qd,{existIcon:!!y,prefixCls:B,loading:J,mount:ie.current}),be=v||0===v?function(e,t){let n=!1;const i=[];return o.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=i.length-1,n=i[t];i[t]=`${n}${e}`}else i.push(e);n=o})),o.Children.map(i,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&$d(e.type)&&Yd(e.props.children)?po(e,{children:e.props.children.split("").join(n)}):$d(e)?Yd(e)?o.createElement("span",null,e.split("").join(n)):o.createElement("span",null,e):mo(e)?o.createElement("span",null,e):e}(e,t)))}(v,oe&&$):null;if(void 0!==ue.href)return W(o.createElement("a",Object.assign({},ue,{className:T()(he,{[`${B}-disabled`]:K}),href:K?void 0:ue.href,style:me,onClick:re,ref:ne,tabIndex:K?-1:0}),ge,be));let ve=o.createElement("button",Object.assign({},R,{type:S,className:he,style:me,onClick:re,disabled:K,ref:ne}),ge,be,ae&&o.createElement(Bu,{prefixCls:B}));return Bd(D)||(ve=o.createElement(gi,{component:"Button",disabled:J},ve)),W(ve)})),Uu=Vu;Uu.Group=e=>{const{getPrefixCls:t,direction:n}=o.useContext(ho.QO),{prefixCls:i,size:r,className:s}=e,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["prefixCls","size","className"]),l=t("btn-group",i),[,,c]=(0,Ho.Ay)(),d=o.useMemo((()=>{switch(r){case"large":return"lg";case"small":return"sm";default:return""}}),[r]),u=T()(l,{[`${l}-${d}`]:d,[`${l}-rtl`]:"rtl"===n},s,c);return o.createElement(zd.Provider,{value:r},o.createElement("div",Object.assign({},a,{className:u})))},Uu.__ANT_BUTTON=!0;const Gu=Uu;function Ku(e){return["small","middle","large"].includes(e)}function qu(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const Xu=o.createContext({latestIndex:0}),Ju=Xu.Provider,Qu=({className:e,index:t,children:n,split:i,style:r})=>{const{latestIndex:s}=o.useContext(Xu);return null==n?null:o.createElement(o.Fragment,null,o.createElement("div",{className:e,style:r},n),t<s&&i&&o.createElement("span",{className:`${e}-split`},i))};const Zu=o.forwardRef(((e,t)=>{var n;const{getPrefixCls:i,direction:r,size:s,className:a,style:l,classNames:c,styles:d}=(0,ho.TP)("space"),{size:u=(null!=s?s:"small"),align:h,className:m,rootClassName:p,children:f,direction:g="horizontal",prefixCls:b,split:v,style:y,wrap:w=!1,classNames:C,styles:_}=e,S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[M,E]=Array.isArray(u)?u:[u,u],x=Ku(E),k=Ku(M),R=qu(E),A=qu(M),L=G(f,{keepEmpty:!0}),O=void 0===h&&"horizontal"===g?"center":h,D=i("space",b),[H,I,P]=bc(D),N=T()(D,a,I,`${D}-${g}`,{[`${D}-rtl`]:"rtl"===r,[`${D}-align-${O}`]:O,[`${D}-gap-row-${E}`]:x,[`${D}-gap-col-${M}`]:k},m,p,P),F=T()(`${D}-item`,null!==(n=null==C?void 0:C.item)&&void 0!==n?n:c.item);let z=0;const j=L.map(((e,t)=>{var n;null!=e&&(z=t);const i=(null==e?void 0:e.key)||`${F}-${t}`;return o.createElement(Qu,{className:F,key:i,index:t,split:v,style:null!==(n=null==_?void 0:_.item)&&void 0!==n?n:d.item},e)})),Y=o.useMemo((()=>({latestIndex:z})),[z]);if(0===L.length)return null;const $={};return w&&($.flexWrap="wrap"),!k&&A&&($.columnGap=M),!x&&R&&($.rowGap=E),H(o.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},$),l),y)},S),o.createElement(Ju,{value:Y},j)))})),eh=Zu;eh.Compact=e=>{const{getPrefixCls:t,direction:n}=o.useContext(ho.QO),{size:i,direction:r,block:s,prefixCls:a,className:l,rootClassName:c,children:d}=e,u=vc(e,["size","direction","block","prefixCls","className","rootClassName","children"]),h=mc((e=>null!=i?i:e)),m=t("space-compact",a),[p,f]=bc(m),g=T()(m,f,{[`${m}-rtl`]:"rtl"===n,[`${m}-block`]:s,[`${m}-vertical`]:"vertical"===r},l,c),b=o.useContext(yc),v=G(d),y=o.useMemo((()=>v.map(((e,t)=>{const n=(null==e?void 0:e.key)||`${m}-item-${t}`;return o.createElement(_c,{key:n,compactSize:h,compactDirection:r,isFirstItem:0===t&&(!b||(null==b?void 0:b.isFirstItem)),isLastItem:t===v.length-1&&(!b||(null==b?void 0:b.isLastItem))},e)}))),[i,v,b]);return 0===v.length?null:p(o.createElement("div",Object.assign({className:g},u),y))};const th=eh;const nh=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:i}=o.useContext(ho.QO),{prefixCls:r,type:s="default",danger:a,disabled:l,loading:c,onClick:d,htmlType:u,children:h,className:m,menu:p,arrow:f,autoFocus:g,overlay:b,trigger:v,align:y,open:w,onOpenChange:C,placement:_,getPopupContainer:S,href:M,icon:E=o.createElement(ql,null),title:x,buttonsRender:k=e=>e,mouseEnterDelay:R,mouseLeaveDelay:A,overlayClassName:L,overlayStyle:O,destroyOnHidden:D,destroyPopupOnHide:H,dropdownRender:I,popupRender:P}=e,N=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),F=n("dropdown",r),z=`${F}-button`,j={menu:p,arrow:f,autoFocus:g,align:y,disabled:l,trigger:l?[]:v,onOpenChange:C,getPopupContainer:S||t,mouseEnterDelay:R,mouseLeaveDelay:A,overlayClassName:L,overlayStyle:O,destroyOnHidden:D,popupRender:P||I},{compactSize:Y,compactItemClassnames:$}=wc(F,i),B=T()(z,$,m);"destroyPopupOnHide"in e&&(j.destroyPopupOnHide=H),"overlay"in e&&(j.overlay=b),"open"in e&&(j.open=w),j.placement="placement"in e?_:"rtl"===i?"bottomLeft":"bottomRight";const W=o.createElement(Gu,{type:s,danger:a,disabled:l,loading:c,onClick:d,htmlType:u,href:M,title:x},h),V=o.createElement(Gu,{type:s,danger:a,icon:E}),[U,G]=k([W,V]);return o.createElement(th.Compact,Object.assign({className:B,size:Y,block:!0},N),U,o.createElement(Fd,Object.assign({},j),G))};nh.__ANT_BUTTON=!0;const oh=nh,ih=Fd;ih.Button=oh;const rh=ih,sh=o.createContext(null),ah=sh.Provider,lh=sh,ch=o.createContext(null),dh=ch.Provider,uh=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:Object.assign(Object.assign({},(0,Do.dF)(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`&${o}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},hh=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:i,motionDurationSlow:r,motionDurationMid:s,motionEaseInOutCirc:a,colorBgContainer:l,colorBorder:c,lineWidth:d,colorBgContainerDisabled:u,colorTextDisabled:h,paddingXS:m,dotColorDisabled:p,lineType:f,radioColor:g,radioBgColor:b,calc:v}=e,y=`${t}-inner`,w=v(i).sub(v(4).mul(2)),C=v(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,Do.dF)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,fo.zA)(d)} ${f} ${o}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},(0,Do.dF)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:o},[`${t}-input:focus-visible + ${y}`]:Object.assign({},(0,Do.jk)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:v(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:v(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${r} ${a}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${s}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:o,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${r} ${a}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:u,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${v(w).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},mh=e=>{const{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:i,lineType:r,colorBorder:s,motionDurationSlow:a,motionDurationMid:l,buttonPaddingInline:c,fontSize:d,buttonBg:u,fontSizeLG:h,controlHeightLG:m,controlHeightSM:p,paddingXS:f,borderRadius:g,borderRadiusSM:b,borderRadiusLG:v,buttonCheckedBg:y,buttonSolidCheckedColor:w,colorTextDisabled:C,colorBgContainerDisabled:_,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:M,colorPrimary:E,colorPrimaryHover:x,colorPrimaryActive:k,buttonSolidCheckedBg:T,buttonSolidCheckedHoverBg:R,buttonSolidCheckedActiveBg:A,calc:L}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:d,lineHeight:(0,fo.zA)(L(n).sub(L(i).mul(2)).equal()),background:u,border:`${(0,fo.zA)(i)} ${r} ${s}`,borderBlockStartWidth:L(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:L(i).mul(-1).equal(),insetInlineStart:L(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:s,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,fo.zA)(i)} ${r} ${s}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${o}-group-large &`]:{height:m,fontSize:h,lineHeight:(0,fo.zA)(L(m).sub(L(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${o}-group-small &`]:{height:p,paddingInline:L(f).sub(i).equal(),paddingBlock:0,lineHeight:(0,fo.zA)(L(p).sub(L(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},(0,Do.jk)(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:x,borderColor:x,"&::before":{backgroundColor:x}},"&:active":{color:k,borderColor:k,"&::before":{backgroundColor:k}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:w,background:T,borderColor:T,"&:hover":{color:w,background:R,borderColor:R},"&:active":{color:w,background:A,borderColor:A}},"&-disabled":{color:C,backgroundColor:_,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:_,borderColor:s}},[`&-disabled${o}-button-wrapper-checked`]:{color:M,backgroundColor:S,borderColor:s,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},ph=Io("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o=`0 0 0 ${(0,fo.zA)(n)} ${t}`,i=ko(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[uh(i),hh(i),mh(i)]}),(e=>{const{wireframe:t,padding:n,marginXS:o,lineWidth:i,fontSizeLG:r,colorText:s,colorBgContainer:a,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:d,colorPrimary:u,colorPrimaryHover:h,colorPrimaryActive:m,colorWhite:p}=e;return{radioSize:r,dotSize:t?r-8:r-2*(4+i),dotColorDisabled:l,buttonSolidCheckedColor:d,buttonSolidCheckedBg:u,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:m,buttonBg:a,buttonCheckedBg:a,buttonColor:s,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:o,radioColor:t?u:p,radioBgColor:t?a:u}}),{unitless:{radioSize:!0,dotSize:!0}});const fh=(e,t)=>{var n,i;const r=o.useContext(lh),s=o.useContext(ch),{getPrefixCls:a,direction:l,radio:c}=o.useContext(ho.QO),d=o.useRef(null),u=(0,g.K4)(t,d),{isFormItemInput:h}=o.useContext(Ir),{prefixCls:m,className:p,rootClassName:f,children:b,style:v,title:y}=e,w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["prefixCls","className","rootClassName","children","style","title"]),C=a("radio",m),_="button"===((null==r?void 0:r.optionType)||s),S=_?`${C}-button`:C,M=vi(C),[E,x,k]=ph(C,M),R=Object.assign({},w),A=o.useContext(bi.A);r&&(R.name=r.name,R.onChange=t=>{var n,o;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(o=null==r?void 0:r.onChange)||void 0===o||o.call(r,t)},R.checked=e.value===r.value,R.disabled=null!==(n=R.disabled)&&void 0!==n?n:r.disabled),R.disabled=null!==(i=R.disabled)&&void 0!==i?i:A;const L=T()(`${S}-wrapper`,{[`${S}-wrapper-checked`]:R.checked,[`${S}-wrapper-disabled`]:R.disabled,[`${S}-wrapper-rtl`]:"rtl"===l,[`${S}-wrapper-in-form-item`]:h,[`${S}-wrapper-block`]:!!(null==r?void 0:r.block)},null==c?void 0:c.className,p,f,x,k,M),[O,D]=$r(R.onClick);return E(o.createElement(gi,{component:"Radio",disabled:R.disabled},o.createElement("label",{className:L,style:Object.assign(Object.assign({},null==c?void 0:c.style),v),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:O},o.createElement(uo,Object.assign({},R,{className:T()(R.className,{[jo]:!_}),type:"radio",prefixCls:S,ref:u,onClick:D})),void 0!==b?o.createElement("span",{className:`${S}-label`},b):null)))},gh=o.forwardRef(fh),bh=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:i}=o.useContext(ho.QO),r=us(),{prefixCls:s,className:a,rootClassName:l,options:c,buttonStyle:d="outline",disabled:u,children:h,size:m,style:p,id:f,optionType:g,name:b=r,defaultValue:v,value:y,block:w=!1,onChange:C,onMouseEnter:_,onMouseLeave:S,onFocus:M,onBlur:E}=e,[x,k]=(0,so.A)(v,{value:y}),R=o.useCallback((t=>{const n=x,o=t.target.value;"value"in e||k(o),o!==n&&(null==C||C(t))}),[x,k,C]),A=n("radio",s),L=`${A}-group`,O=vi(A),[D,H,I]=ph(A,O);let P=h;c&&c.length>0&&(P=c.map((e=>"string"==typeof e||"number"==typeof e?o.createElement(gh,{key:e.toString(),prefixCls:A,disabled:u,value:e,checked:x===e},e):o.createElement(gh,{key:`radio-group-value-options-${e.value}`,prefixCls:A,disabled:e.disabled||u,value:e.value,checked:x===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label))));const N=mc(m),F=T()(L,`${L}-${d}`,{[`${L}-${N}`]:N,[`${L}-rtl`]:"rtl"===i,[`${L}-block`]:w},a,l,H,I,O),z=o.useMemo((()=>({onChange:R,value:x,disabled:u,name:b,optionType:g,block:w})),[R,x,u,b,g,w]);return D(o.createElement("div",Object.assign({},Fe(e,{aria:!0,data:!0}),{className:F,style:p,onMouseEnter:_,onMouseLeave:S,onFocus:M,onBlur:E,id:f,ref:t}),o.createElement(ah,{value:z},P)))})),vh=o.memo(bh);const yh=(e,t)=>{const{getPrefixCls:n}=o.useContext(ho.QO),{prefixCls:i}=e,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["prefixCls"]),s=n("radio",i);return o.createElement(dh,{value:"button"},o.createElement(gh,Object.assign({prefixCls:s},r,{type:"radio",ref:t})))},wh=o.forwardRef(yh),Ch=gh;Ch.Button=wh,Ch.Group=vh,Ch.__ANT_RADIO=!0;const _h=Ch,Sh={},Mh="SELECT_ALL",Eh="SELECT_INVERT",xh="SELECT_NONE",kh=[],Th=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,tt.A)(n),(0,tt.A)(Th(e,t[e]))))})),n};function Rh(e){return null!=e&&e===e.window}var Ah=n(60685),Lh=n(80436);const Oh=(e,t)=>{const n=o.useContext(Ah.A);return[o.useMemo((()=>{var o;const i=t||Lh.A[e],r=null!==(o=null==n?void 0:n[e])&&void 0!==o?o:{};return Object.assign(Object.assign({},"function"==typeof i?i():i),r||{})}),[e,t,n]),o.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Lh.A.locale:e}),[n])]},Dh=()=>{const[,e]=(0,Ho.Ay)(),[t]=Oh("Empty"),n=new qc.Y(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null==t?void 0:t.description)||"Empty"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Hh=()=>{const[,e]=(0,Ho.Ay)(),[t]=Oh("Empty"),{colorFill:n,colorFillTertiary:i,colorFillQuaternary:r,colorBgContainer:s}=e,{borderColor:a,shadowColor:l,contentColor:c}=(0,o.useMemo)((()=>({borderColor:new qc.Y(n).onBackground(s).toHexString(),shadowColor:new qc.Y(i).onBackground(s).toHexString(),contentColor:new qc.Y(r).onBackground(s).toHexString()})),[n,i,r,s]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null==t?void 0:t.description)||"Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:a},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},Ih=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:i,fontSize:r,lineHeight:s}=e;return{[t]:{marginInline:o,fontSize:r,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Ph=Io("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,i=ko(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[Ih(i)]}));const Nh=o.createElement(Dh,null),Fh=o.createElement(Hh,null),zh=e=>{const{className:t,rootClassName:n,prefixCls:i,image:r=Nh,description:s,children:a,imageStyle:l,style:c,classNames:d,styles:u}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:m,direction:p,className:f,style:g,classNames:b,styles:v}=(0,ho.TP)("empty"),y=m("empty",i),[w,C,_]=Ph(y),[S]=Oh("Empty"),M=void 0!==s?s:null==S?void 0:S.description,E="string"==typeof M?M:"empty";let x=null;return x="string"==typeof r?o.createElement("img",{alt:E,src:r}):r,w(o.createElement("div",Object.assign({className:T()(C,_,y,f,{[`${y}-normal`]:r===Fh,[`${y}-rtl`]:"rtl"===p},t,n,b.root,null==d?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},v.root),g),null==u?void 0:u.root),c)},h),o.createElement("div",{className:T()(`${y}-image`,b.image,null==d?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},l),v.image),null==u?void 0:u.image)},x),M&&o.createElement("div",{className:T()(`${y}-description`,b.description,null==d?void 0:d.description),style:Object.assign(Object.assign({},v.description),null==u?void 0:u.description)},M),a&&o.createElement("div",{className:T()(`${y}-footer`,b.footer,null==d?void 0:d.footer),style:Object.assign(Object.assign({},v.footer),null==u?void 0:u.footer)},a)))};zh.PRESENTED_IMAGE_DEFAULT=Nh,zh.PRESENTED_IMAGE_SIMPLE=Fh;const jh=zh,Yh=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(ho.QO),i=n("empty");switch(t){case"Table":case"List":return o.createElement(jh,{image:jh.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(jh,{image:jh.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});case"Table.filter":return null;default:return o.createElement(jh,null)}};function $h(){const[,e]=o.useReducer((e=>e+1),0);return e}const Bh=["xxl","xl","lg","md","sm","xs"],Wh=()=>{const[,e]=(0,Ho.Ay)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(Bh).reverse();return n.forEach(((e,o)=>{const i=e.toUpperCase(),r=`screen${i}Min`,s=`screen${i}`;if(!(t[r]<=t[s]))throw new Error(`${r}<=${s} fails : !(${t[r]}<=${t[s]})`);if(o<n.length-1){const e=`screen${i}Max`;if(!(t[s]<=t[e]))throw new Error(`${s}<=${e} fails : !(${t[s]}<=${t[e]})`);const r=`screen${n[o+1].toUpperCase()}Min`;if(!(t[e]<=t[r]))throw new Error(`${e}<=${r} fails : !(${t[e]}<=${t[r]})`)}})),e})(e));return o.useMemo((()=>{const e=new Map;let n=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(o=t,e.forEach((e=>e(o))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach((([e,t])=>{const n=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},o),{[e]:t}))},i=window.matchMedia(t);((e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)})(i,n),this.matchHandlers[t]={mql:i,listener:n},n(i)}))},unregister(){Object.values(t).forEach((e=>{const t=this.matchHandlers[e];((e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)})(null==t?void 0:t.mql,null==t?void 0:t.listener)})),e.clear()}}}),[e])},Vh=function(e=!0,t={}){const n=(0,o.useRef)(t),i=$h(),r=Wh();return(0,c.A)((()=>{const t=r.subscribe((t=>{n.current=t,e&&i()}));return()=>r.unsubscribe(t)}),[]),n.current},Uh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var Gh=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:Uh}))};const Kh=o.forwardRef(Gh),qh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var Xh=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:qh}))};const Jh=o.forwardRef(Xh),Qh={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var Zh=[10,20,50,100];const em=function(e){var t=e.pageSizeOptions,n=void 0===t?Zh:t,i=e.locale,r=e.changeSize,s=e.pageSize,l=e.goButton,c=e.quickGo,d=e.rootPrefixCls,u=e.disabled,h=e.buildOptionText,m=e.showSizeChanger,p=e.sizeChangerRender,f=o.useState(""),g=(0,a.A)(f,2),b=g[0],v=g[1],y=function(){return!b||Number.isNaN(b)?void 0:Number(b)},w="function"==typeof h?h:function(e){return"".concat(e," ").concat(i.items_per_page)},C=function(e){""!==b&&(e.keyCode!==Ps.ENTER&&"click"!==e.type||(v(""),null==c||c(y())))},_="".concat(d,"-options");if(!m&&!c)return null;var S=null,M=null,E=null;return m&&p&&(S=p({disabled:u,size:s,onSizeChange:function(e){null==r||r(Number(e))},"aria-label":i.page_size,className:"".concat(_,"-size-changer"),options:(n.some((function(e){return e.toString()===s.toString()}))?n:n.concat([s]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e){return{label:w(e),value:e}}))})),c&&(l&&(E="boolean"==typeof l?o.createElement("button",{type:"button",onClick:C,onKeyUp:C,disabled:u,className:"".concat(_,"-quick-jumper-button")},i.jump_to_confirm):o.createElement("span",{onClick:C,onKeyUp:C},l)),M=o.createElement("div",{className:"".concat(_,"-quick-jumper")},i.jump_to,o.createElement("input",{disabled:u,type:"text",value:b,onChange:function(e){v(e.target.value)},onKeyUp:C,onBlur:function(e){l||""===b||(v(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(d,"-item"))>=0)||null==c||c(y()))},"aria-label":i.page}),i.page,E)),o.createElement("li",{className:_},S,M)},tm=function(e){var t=e.rootPrefixCls,n=e.page,i=e.active,r=e.className,s=e.showTitle,a=e.onClick,l=e.onKeyPress,c=e.itemRender,d="".concat(t,"-item"),u=T()(d,"".concat(d,"-").concat(n),(0,x.A)((0,x.A)({},"".concat(d,"-active"),i),"".concat(d,"-disabled"),!n),r),h=c(n,"page",o.createElement("a",{rel:"nofollow"},n));return h?o.createElement("li",{title:s?String(n):null,className:u,onClick:function(){a(n)},onKeyDown:function(e){l(e,a,n)},tabIndex:0},h):null};var nm=function(e,t,n){return n};function om(){}function im(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function rm(e,t,n){var o=void 0===e?t:e;return Math.floor((n-1)/o)+1}const sm=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,i=e.selectPrefixCls,r=void 0===i?"rc-select":i,s=e.className,l=e.current,c=e.defaultCurrent,d=void 0===c?1:c,u=e.total,h=void 0===u?0:u,m=e.pageSize,p=e.defaultPageSize,g=void 0===p?10:p,b=e.onChange,v=void 0===b?om:b,y=e.hideOnSinglePage,w=e.align,C=e.showPrevNextJumpers,_=void 0===C||C,S=e.showQuickJumper,k=e.showLessItems,R=e.showTitle,A=void 0===R||R,L=e.onShowSizeChange,O=void 0===L?om:L,D=e.locale,H=void 0===D?Qh:D,I=e.style,P=e.totalBoundaryShowSizeChanger,N=void 0===P?50:P,F=e.disabled,z=e.simple,j=e.showTotal,Y=e.showSizeChanger,$=void 0===Y?h>N:Y,B=e.sizeChangerRender,W=e.pageSizeOptions,V=e.itemRender,U=void 0===V?nm:V,G=e.jumpPrevIcon,K=e.jumpNextIcon,q=e.prevIcon,X=e.nextIcon,J=o.useRef(null),Q=(0,so.A)(10,{value:m,defaultValue:g}),Z=(0,a.A)(Q,2),ee=Z[0],te=Z[1],ne=(0,so.A)(1,{value:l,defaultValue:d,postState:function(e){return Math.max(1,Math.min(e,rm(void 0,ee,h)))}}),oe=(0,a.A)(ne,2),ie=oe[0],re=oe[1],se=o.useState(ie),ae=(0,a.A)(se,2),le=ae[0],ce=ae[1];(0,o.useEffect)((function(){ce(ie)}),[ie]);var de=Math.max(1,ie-(k?3:5)),ue=Math.min(rm(void 0,ee,h),ie+(k?3:5));function he(t,i){var r=t||o.createElement("button",{type:"button","aria-label":i,className:"".concat(n,"-item-link")});return"function"==typeof t&&(r=o.createElement(t,(0,E.A)({},e))),r}function me(e){var t=e.target.value,n=rm(void 0,ee,h);return""===t?t:Number.isNaN(Number(t))?le:t>=n?n:Number(t)}var pe=h>ee&&S;function fe(e){var t=me(e);switch(t!==le&&ce(t),e.keyCode){case Ps.ENTER:ge(t);break;case Ps.UP:ge(t-1);break;case Ps.DOWN:ge(t+1)}}function ge(e){if(function(e){return im(e)&&e!==ie&&im(h)&&h>0}(e)&&!F){var t=rm(void 0,ee,h),n=e;return e>t?n=t:e<1&&(n=1),n!==le&&ce(n),re(n),null==v||v(n,ee),n}return ie}var be=ie>1,ve=ie<rm(void 0,ee,h);function ye(){be&&ge(ie-1)}function we(){ve&&ge(ie+1)}function Ce(){ge(de)}function _e(){ge(ue)}function Se(e,t){if("Enter"===e.key||e.charCode===Ps.ENTER||e.keyCode===Ps.ENTER){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];t.apply(void 0,o)}}function Me(e){"click"!==e.type&&e.keyCode!==Ps.ENTER||ge(le)}var Ee=null,xe=Fe(e,{aria:!0,data:!0}),ke=j&&o.createElement("li",{className:"".concat(n,"-total-text")},j(h,[0===h?0:(ie-1)*ee+1,ie*ee>h?h:ie*ee])),Te=null,Re=rm(void 0,ee,h);if(y&&h<=ee)return null;var Ae=[],Le={rootPrefixCls:n,onClick:ge,onKeyPress:Se,showTitle:A,itemRender:U,page:-1},Oe=ie-1>0?ie-1:0,De=ie+1<Re?ie+1:Re,He=S&&S.goButton,Ie="object"===(0,M.A)(z)?z.readOnly:!z,Pe=He,Ne=null;z&&(He&&(Pe="boolean"==typeof He?o.createElement("button",{type:"button",onClick:Me,onKeyUp:Me},H.jump_to_confirm):o.createElement("span",{onClick:Me,onKeyUp:Me},He),Pe=o.createElement("li",{title:A?"".concat(H.jump_to).concat(ie,"/").concat(Re):null,className:"".concat(n,"-simple-pager")},Pe)),Ne=o.createElement("li",{title:A?"".concat(ie,"/").concat(Re):null,className:"".concat(n,"-simple-pager")},Ie?le:o.createElement("input",{type:"text","aria-label":H.jump_to,value:le,disabled:F,onKeyDown:function(e){e.keyCode!==Ps.UP&&e.keyCode!==Ps.DOWN||e.preventDefault()},onKeyUp:fe,onChange:fe,onBlur:function(e){ge(me(e))},size:3}),o.createElement("span",{className:"".concat(n,"-slash")},"/"),Re));var ze=k?1:2;if(Re<=3+2*ze){Re||Ae.push(o.createElement(tm,(0,f.A)({},Le,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var je=1;je<=Re;je+=1)Ae.push(o.createElement(tm,(0,f.A)({},Le,{key:je,page:je,active:ie===je})))}else{var Ye=k?H.prev_3:H.prev_5,$e=k?H.next_3:H.next_5,Be=U(de,"jump-prev",he(G,"prev page")),We=U(ue,"jump-next",he(K,"next page"));_&&(Ee=Be?o.createElement("li",{title:A?Ye:null,key:"prev",onClick:Ce,tabIndex:0,onKeyDown:function(e){Se(e,Ce)},className:T()("".concat(n,"-jump-prev"),(0,x.A)({},"".concat(n,"-jump-prev-custom-icon"),!!G))},Be):null,Te=We?o.createElement("li",{title:A?$e:null,key:"next",onClick:_e,tabIndex:0,onKeyDown:function(e){Se(e,_e)},className:T()("".concat(n,"-jump-next"),(0,x.A)({},"".concat(n,"-jump-next-custom-icon"),!!K))},We):null);var Ve=Math.max(1,ie-ze),Ue=Math.min(ie+ze,Re);ie-1<=ze&&(Ue=1+2*ze),Re-ie<=ze&&(Ve=Re-2*ze);for(var Ge=Ve;Ge<=Ue;Ge+=1)Ae.push(o.createElement(tm,(0,f.A)({},Le,{key:Ge,page:Ge,active:ie===Ge})));if(ie-1>=2*ze&&3!==ie&&(Ae[0]=o.cloneElement(Ae[0],{className:T()("".concat(n,"-item-after-jump-prev"),Ae[0].props.className)}),Ae.unshift(Ee)),Re-ie>=2*ze&&ie!==Re-2){var Ke=Ae[Ae.length-1];Ae[Ae.length-1]=o.cloneElement(Ke,{className:T()("".concat(n,"-item-before-jump-next"),Ke.props.className)}),Ae.push(Te)}1!==Ve&&Ae.unshift(o.createElement(tm,(0,f.A)({},Le,{key:1,page:1}))),Ue!==Re&&Ae.push(o.createElement(tm,(0,f.A)({},Le,{key:Re,page:Re})))}var qe=function(e){var t=U(e,"prev",he(q,"prev page"));return o.isValidElement(t)?o.cloneElement(t,{disabled:!be}):t}(Oe);if(qe){var Xe=!be||!Re;qe=o.createElement("li",{title:A?H.prev_page:null,onClick:ye,tabIndex:Xe?null:0,onKeyDown:function(e){Se(e,ye)},className:T()("".concat(n,"-prev"),(0,x.A)({},"".concat(n,"-disabled"),Xe)),"aria-disabled":Xe},qe)}var Je,Qe,Ze=function(e){var t=U(e,"next",he(X,"next page"));return o.isValidElement(t)?o.cloneElement(t,{disabled:!ve}):t}(De);Ze&&(z?(Je=!ve,Qe=be?0:null):Qe=(Je=!ve||!Re)?null:0,Ze=o.createElement("li",{title:A?H.next_page:null,onClick:we,tabIndex:Qe,onKeyDown:function(e){Se(e,we)},className:T()("".concat(n,"-next"),(0,x.A)({},"".concat(n,"-disabled"),Je)),"aria-disabled":Je},Ze));var et=T()(n,s,(0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)({},"".concat(n,"-start"),"start"===w),"".concat(n,"-center"),"center"===w),"".concat(n,"-end"),"end"===w),"".concat(n,"-simple"),z),"".concat(n,"-disabled"),F));return o.createElement("ul",(0,f.A)({className:et,style:I,ref:J},xe),ke,qe,z?Ne:Ae,Ze,o.createElement(em,{locale:H,rootPrefixCls:n,disabled:F,selectPrefixCls:r,changeSize:function(e){var t=rm(e,ee,h),n=ie>t&&0!==t?t:ie;te(e),ce(n),null==O||O(ie,e),re(n),null==v||v(n,e)},pageSize:ee,pageSizeOptions:W,quickGo:pe?ge:null,goButton:Pe,showSizeChanger:$,sizeChangerRender:B}))};var am=n(96069);const lm=function(e){var t=e.className,n=e.customizeIcon,i=e.customizeIconProps,r=e.children,s=e.onMouseDown,a=e.onClick,l="function"==typeof n?n(i):n;return o.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==s||s(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==l?l:o.createElement("span",{className:T()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},r))};var cm=o.createContext(null);function dm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);return o.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var um=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],hm=function(e,t){var n=e.prefixCls,i=e.id,r=e.inputElement,s=e.autoFocus,a=e.autoComplete,l=e.editable,c=e.activeDescendantId,d=e.value,u=e.open,h=e.attrs,m=(0,j.A)(e,um),p=r||o.createElement("input",null),f=p,b=f.ref,v=f.props;return(0,L.$e)(!("maxLength"in p.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),o.cloneElement(p,(0,E.A)((0,E.A)((0,E.A)({type:"search"},function(e,t,n){var o=(0,E.A)((0,E.A)({},e),n?t:{});return Object.keys(t).forEach((function(n){var i=t[n];"function"==typeof i&&(o[n]=function(){for(var t,o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return i.apply(void 0,r),null===(t=e[n])||void 0===t?void 0:t.call.apply(t,[e].concat(r))})})),o}(m,v,!0)),{},{id:i,ref:(0,g.K4)(t,b),autoComplete:a||"off",autoFocus:s,className:T()("".concat(n,"-selection-search-input"),null==v?void 0:v.className),role:"combobox","aria-expanded":u||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":u?c:void 0},h),{},{value:l?d:"",readOnly:!l,unselectable:l?null:"on",style:(0,E.A)((0,E.A)({},v.style),{},{opacity:l?null:0})}))};const mm=o.forwardRef(hm);function pm(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var fm="undefined"!=typeof window&&window.document&&window.document.documentElement;function gm(e){return["string","number"].includes((0,M.A)(e))}function bm(e){var t=void 0;return e&&(gm(e.title)?t=e.title.toString():gm(e.label)&&(t=e.label.toString())),t}function vm(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var ym=function(e){e.preventDefault(),e.stopPropagation()};const wm=function(e){var t,n,i=e.id,r=e.prefixCls,s=e.values,l=e.open,c=e.searchValue,d=e.autoClearSearchValue,u=e.inputRef,h=e.placeholder,m=e.disabled,p=e.mode,f=e.showSearch,g=e.autoFocus,b=e.autoComplete,v=e.activeDescendantId,y=e.tabIndex,w=e.removeIcon,C=e.maxTagCount,_=e.maxTagTextLength,S=e.maxTagPlaceholder,M=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,E=e.tagRender,k=e.onToggleOpen,R=e.onRemove,A=e.onInputChange,L=e.onInputPaste,O=e.onInputKeyDown,D=e.onInputMouseDown,H=e.onInputCompositionStart,I=e.onInputCompositionEnd,P=e.onInputBlur,N=o.useRef(null),F=(0,o.useState)(0),z=(0,a.A)(F,2),j=z[0],Y=z[1],$=(0,o.useState)(!1),B=(0,a.A)($,2),W=B[0],V=B[1],U="".concat(r,"-selection"),G=l||"multiple"===p&&!1===d||"tags"===p?c:"",K="tags"===p||"multiple"===p&&!1===d||f&&(l||W);t=function(){Y(N.current.scrollWidth)},n=[G],fm?o.useLayoutEffect(t,n):o.useEffect(t,n);var q=function(e,t,n,i,r){return o.createElement("span",{title:bm(e),className:T()("".concat(U,"-item"),(0,x.A)({},"".concat(U,"-item-disabled"),n))},o.createElement("span",{className:"".concat(U,"-item-content")},t),i&&o.createElement(lm,{className:"".concat(U,"-item-remove"),onMouseDown:ym,onClick:r,customizeIcon:w},"×"))},X=function(e,t,n,i,r,s){return o.createElement("span",{onMouseDown:function(e){ym(e),k(!l)}},E({label:t,value:e,disabled:n,closable:i,onClose:r,isMaxTag:!!s}))},J=o.createElement("div",{className:"".concat(U,"-search"),style:{width:j},onFocus:function(){V(!0)},onBlur:function(){V(!1)}},o.createElement(mm,{ref:u,open:l,prefixCls:r,id:i,inputElement:null,disabled:m,autoFocus:g,autoComplete:b,editable:K,activeDescendantId:v,value:G,onKeyDown:O,onMouseDown:D,onChange:A,onPaste:L,onCompositionStart:H,onCompositionEnd:I,onBlur:P,tabIndex:y,attrs:Fe(e,!0)}),o.createElement("span",{ref:N,className:"".concat(U,"-search-mirror"),"aria-hidden":!0},G," ")),Q=o.createElement(ka,{prefixCls:"".concat(U,"-overflow"),data:s,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,i=!m&&!t,r=n;if("number"==typeof _&&("string"==typeof n||"number"==typeof n)){var s=String(r);s.length>_&&(r="".concat(s.slice(0,_),"..."))}var a=function(t){t&&t.stopPropagation(),R(e)};return"function"==typeof E?X(o,r,t,i,a):q(e,r,t,i,a)},renderRest:function(e){if(!s.length)return null;var t="function"==typeof M?M(e):M;return"function"==typeof E?X(void 0,t,!1,!1,void 0,!0):q({title:t},t,!1)},suffix:J,itemKey:vm,maxCount:C});return o.createElement("span",{className:"".concat(U,"-wrap")},Q,!s.length&&!G&&o.createElement("span",{className:"".concat(U,"-placeholder")},h))},Cm=function(e){var t=e.inputElement,n=e.prefixCls,i=e.id,r=e.inputRef,s=e.disabled,l=e.autoFocus,c=e.autoComplete,d=e.activeDescendantId,u=e.mode,h=e.open,m=e.values,p=e.placeholder,f=e.tabIndex,g=e.showSearch,b=e.searchValue,v=e.activeValue,y=e.maxLength,w=e.onInputKeyDown,C=e.onInputMouseDown,_=e.onInputChange,S=e.onInputPaste,M=e.onInputCompositionStart,E=e.onInputCompositionEnd,x=e.onInputBlur,k=e.title,T=o.useState(!1),R=(0,a.A)(T,2),A=R[0],L=R[1],O="combobox"===u,D=O||g,H=m[0],I=b||"";O&&v&&!A&&(I=v),o.useEffect((function(){O&&L(!1)}),[O,v]);var P=!("combobox"!==u&&!h&&!g||!I),N=void 0===k?bm(H):k,F=o.useMemo((function(){return H?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:P?{visibility:"hidden"}:void 0},p)}),[H,P,p,n]);return o.createElement("span",{className:"".concat(n,"-selection-wrap")},o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(mm,{ref:r,prefixCls:n,id:i,open:h,inputElement:t,disabled:s,autoFocus:l,autoComplete:c,editable:D,activeDescendantId:d,value:I,onKeyDown:w,onMouseDown:C,onChange:function(e){L(!0),_(e)},onPaste:S,onCompositionStart:M,onCompositionEnd:E,onBlur:x,tabIndex:f,attrs:Fe(e,!0),maxLength:O?y:void 0})),!O&&H?o.createElement("span",{className:"".concat(n,"-selection-item"),title:N,style:P?{visibility:"hidden"}:void 0},H.label):null,F)};var _m=function(e,t){var n=(0,o.useRef)(null),i=(0,o.useRef)(!1),r=e.prefixCls,s=e.open,l=e.mode,c=e.showSearch,d=e.tokenWithEnter,u=e.disabled,h=e.prefix,m=e.autoClearSearchValue,p=e.onSearch,g=e.onSearchSubmit,b=e.onToggleOpen,v=e.onInputKeyDown,y=e.onInputBlur,w=e.domRef;o.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var C=dm(0),_=(0,a.A)(C,2),S=_[0],M=_[1],E=(0,o.useRef)(null),x=function(e){!1!==p(e,!0,i.current)&&b(!0)},k={inputRef:n,onInputKeyDown:function(e){var t,o=e.which,r=n.current instanceof HTMLTextAreaElement;r||!s||o!==Ps.UP&&o!==Ps.DOWN||e.preventDefault(),v&&v(e),o!==Ps.ENTER||"tags"!==l||i.current||s||null==g||g(e.target.value),r&&!s&&~[Ps.UP,Ps.DOWN,Ps.LEFT,Ps.RIGHT].indexOf(o)||(t=o)&&![Ps.ESC,Ps.SHIFT,Ps.BACKSPACE,Ps.TAB,Ps.WIN_KEY,Ps.ALT,Ps.META,Ps.WIN_KEY_RIGHT,Ps.CTRL,Ps.SEMICOLON,Ps.EQUALS,Ps.CAPS_LOCK,Ps.CONTEXT_MENU,Ps.F1,Ps.F2,Ps.F3,Ps.F4,Ps.F5,Ps.F6,Ps.F7,Ps.F8,Ps.F9,Ps.F10,Ps.F11,Ps.F12].includes(t)&&b(!0)},onInputMouseDown:function(){M(!0)},onInputChange:function(e){var t=e.target.value;if(d&&E.current&&/[\r\n]/.test(E.current)){var n=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,E.current)}E.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");E.current=n||""},onInputCompositionStart:function(){i.current=!0},onInputCompositionEnd:function(e){i.current=!1,"combobox"!==l&&x(e.target.value)},onInputBlur:y},T="multiple"===l||"tags"===l?o.createElement(wm,(0,f.A)({},e,k)):o.createElement(Cm,(0,f.A)({},e,k));return o.createElement("div",{ref:w,className:"".concat(r,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===l&&u||e.preventDefault(),("combobox"===l||c&&t)&&s||(s&&!1!==m&&p("",!0,!1),b())}},h&&o.createElement("div",{className:"".concat(r,"-prefix")},h),T)};const Sm=o.forwardRef(_m);var Mm=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Em=function(e,t){var n=e.prefixCls,i=(e.disabled,e.visible),r=e.children,s=e.popupElement,a=e.animation,l=e.transitionName,c=e.dropdownStyle,d=e.dropdownClassName,u=e.direction,h=void 0===u?"ltr":u,m=e.placement,p=e.builtinPlacements,g=e.dropdownMatchSelectWidth,b=e.dropdownRender,v=e.dropdownAlign,y=e.getPopupContainer,w=e.empty,C=e.getTriggerDOMNode,_=e.onPopupVisibleChange,S=e.onPopupMouseEnter,M=(0,j.A)(e,Mm),k="".concat(n,"-dropdown"),R=s;b&&(R=b(s));var A=o.useMemo((function(){return p||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(g)}),[p,g]),L=a?"".concat(k,"-").concat(a):l,O="number"==typeof g,D=o.useMemo((function(){return O?null:!1===g?"minWidth":"width"}),[g,O]),H=c;O&&(H=(0,E.A)((0,E.A)({},H),{},{width:g}));var I=o.useRef(null);return o.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=I.current)||void 0===e?void 0:e.popupElement}}})),o.createElement(Hs,(0,f.A)({},M,{showAction:_?["click"]:[],hideAction:_?["click"]:[],popupPlacement:m||("rtl"===h?"bottomRight":"bottomLeft"),builtinPlacements:A,prefixCls:k,popupTransitionName:L,popup:o.createElement("div",{onMouseEnter:S},R),ref:I,stretch:D,popupAlign:v,popupVisible:i,getPopupContainer:y,popupClassName:T()(d,(0,x.A)({},"".concat(k,"-empty"),w)),popupStyle:H,getTriggerDOMNode:C,onPopupVisibleChange:_}),r)};const xm=o.forwardRef(Em);var km=n(87695);function Tm(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function Rm(e){return void 0!==e&&!Number.isNaN(e)}function Am(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function Lm(e){var t=(0,E.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,L.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Om=o.createContext(null);function Dm(e){var t=e.visible,n=e.values;return t?o.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,M.A)(t))?t:n})).join(", ")),n.length>50?", ...":null):null}var Hm=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Im=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Pm=function(e){return"tags"===e||"multiple"===e},Nm=o.forwardRef((function(e,t){var n,i=e.id,r=e.prefixCls,s=e.className,l=e.showSearch,d=e.tagRender,u=e.direction,h=e.omitDomProps,m=e.displayValues,p=e.onDisplayValuesChange,b=e.emptyOptions,v=e.notFoundContent,y=void 0===v?"Not Found":v,w=e.onClear,C=e.mode,_=e.disabled,S=e.loading,k=e.getInputElement,R=e.getRawInputElement,A=e.open,L=e.defaultOpen,O=e.onDropdownVisibleChange,D=e.activeValue,H=e.onActiveValueChange,I=e.activeDescendantId,P=e.searchValue,N=e.autoClearSearchValue,F=e.onSearch,z=e.onSearchSplit,Y=e.tokenSeparators,$=e.allowClear,B=e.prefix,W=e.suffixIcon,V=e.clearIcon,U=e.OptionList,G=e.animation,K=e.transitionName,q=e.dropdownStyle,X=e.dropdownClassName,J=e.dropdownMatchSelectWidth,Q=e.dropdownRender,Z=e.dropdownAlign,ee=e.placement,te=e.builtinPlacements,ne=e.getPopupContainer,oe=e.showAction,ie=void 0===oe?[]:oe,re=e.onFocus,se=e.onBlur,ae=e.onKeyUp,le=e.onKeyDown,ce=e.onMouseDown,de=(0,j.A)(e,Hm),ue=Pm(C),he=(void 0!==l?l:ue)||"combobox"===C,me=(0,E.A)({},de);Im.forEach((function(e){delete me[e]})),null==h||h.forEach((function(e){delete me[e]}));var pe=o.useState(!1),fe=(0,a.A)(pe,2),ge=fe[0],be=fe[1];o.useEffect((function(){be(hs())}),[]);var ve=o.useRef(null),ye=o.useRef(null),we=o.useRef(null),Ce=o.useRef(null),_e=o.useRef(null),Se=o.useRef(!1),Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=o.useState(!1),n=(0,a.A)(t,2),i=n[0],r=n[1],s=o.useRef(null),l=function(){window.clearTimeout(s.current)};return o.useEffect((function(){return l}),[]),[i,function(t,n){l(),s.current=window.setTimeout((function(){r(t),n&&n()}),e)},l]}(),Ee=(0,a.A)(Me,3),xe=Ee[0],ke=Ee[1],Te=Ee[2];o.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Ce.current)||void 0===e?void 0:e.focus,blur:null===(t=Ce.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=_e.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:ve.current||ye.current}}));var Re=o.useMemo((function(){var e;if("combobox"!==C)return P;var t=null===(e=m[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[P,C,m]),Ae="combobox"===C&&"function"==typeof k&&k()||null,Le="function"==typeof R&&R(),Oe=(0,g.xK)(ye,null==Le||null===(n=Le.props)||void 0===n?void 0:n.ref),De=o.useState(!1),He=(0,a.A)(De,2),Ie=He[0],Pe=He[1];(0,c.A)((function(){Pe(!0)}),[]);var Ne=(0,so.A)(!1,{defaultValue:L,value:A}),Fe=(0,a.A)(Ne,2),ze=Fe[0],je=Fe[1],Ye=!!Ie&&ze,$e=!y&&b;(_||$e&&Ye&&"combobox"===C)&&(Ye=!1);var Be=!$e&&Ye,We=o.useCallback((function(e){var t=void 0!==e?e:!Ye;_||(je(t),Ye!==t&&(null==O||O(t)))}),[_,Ye,je,O]),Ve=o.useMemo((function(){return(Y||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[Y]),Ue=o.useContext(Om)||{},Ge=Ue.maxCount,Ke=Ue.rawValues,qe=function(e,t,n){if(!(ue&&Rm(Ge)&&(null==Ke?void 0:Ke.size)>=Ge)){var o=!0,i=e;null==H||H(null);var r=function(e,t,n){if(!t||!t.length)return null;var o=!1,i=function e(t,n){var i=(0,km.A)(n),r=i[0],s=i.slice(1);if(!r)return[t];var a=t.split(r);return o=o||a.length>1,a.reduce((function(t,n){return[].concat((0,tt.A)(t),(0,tt.A)(e(n,s)))}),[]).filter(Boolean)}(e,t);return o?void 0!==n?i.slice(0,n):i:null}(e,Y,Rm(Ge)?Ge-Ke.size:void 0),s=n?null:r;return"combobox"!==C&&s&&(i="",null==z||z(s),We(!1),o=!1),F&&Re!==i&&F(i,{source:t?"typing":"effect"}),o}};o.useEffect((function(){Ye||ue||"combobox"===C||qe("",!1,!1)}),[Ye]),o.useEffect((function(){ze&&_&&je(!1),_&&!Se.current&&ke(!1)}),[_]);var Xe=dm(),Je=(0,a.A)(Xe,2),Qe=Je[0],Ze=Je[1],et=o.useRef(!1),nt=o.useRef(!1),ot=[];o.useEffect((function(){return function(){ot.forEach((function(e){return clearTimeout(e)})),ot.splice(0,ot.length)}}),[]);var it,rt=o.useState({}),st=(0,a.A)(rt,2)[1];Le&&(it=function(e){We(e)}),function(e,t,n,i){var r=o.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:i},o.useEffect((function(){function e(e){var t,n;if(null===(t=r.current)||void 0===t||!t.customizedTrigger){var o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),r.current.open&&[ve.current,null===(n=we.current)||void 0===n?void 0:n.getPopupElement()].filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,Be,We,!!Le);var at,lt=o.useMemo((function(){return(0,E.A)((0,E.A)({},e),{},{notFoundContent:y,open:Ye,triggerOpen:Be,id:i,showSearch:he,multiple:ue,toggleOpen:We})}),[e,y,Be,Ye,i,he,ue,We]),ct=!!W||S;ct&&(at=o.createElement(lm,{className:T()("".concat(r,"-arrow"),(0,x.A)({},"".concat(r,"-arrow-loading"),S)),customizeIcon:W,customizeIconProps:{loading:S,searchValue:Re,open:Ye,focused:xe,showSearch:he}}));var dt,ut=function(e,t,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=o.useMemo((function(){return"object"===(0,M.A)(i)?i.clearIcon:r||void 0}),[i,r]);return{allowClear:o.useMemo((function(){return!(s||!i||!n.length&&!a||"combobox"===l&&""===a)}),[i,s,n.length,a,l]),clearIcon:o.createElement(lm,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(r,(function(){var e;null==w||w(),null===(e=Ce.current)||void 0===e||e.focus(),p([],{type:"clear",values:m}),qe("",!1,!1)}),m,$,V,_,Re,C),ht=ut.allowClear,mt=ut.clearIcon,pt=o.createElement(U,{ref:_e}),ft=T()(r,s,(0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)({},"".concat(r,"-focused"),xe),"".concat(r,"-multiple"),ue),"".concat(r,"-single"),!ue),"".concat(r,"-allow-clear"),$),"".concat(r,"-show-arrow"),ct),"".concat(r,"-disabled"),_),"".concat(r,"-loading"),S),"".concat(r,"-open"),Ye),"".concat(r,"-customize-input"),Ae),"".concat(r,"-show-search"),he)),gt=o.createElement(xm,{ref:we,disabled:_,prefixCls:r,visible:Be,popupElement:pt,animation:G,transitionName:K,dropdownStyle:q,dropdownClassName:X,direction:u,dropdownMatchSelectWidth:J,dropdownRender:Q,dropdownAlign:Z,placement:ee,builtinPlacements:te,getPopupContainer:ne,empty:b,getTriggerDOMNode:function(e){return ye.current||e},onPopupVisibleChange:it,onPopupMouseEnter:function(){st({})}},Le?o.cloneElement(Le,{ref:Oe}):o.createElement(Sm,(0,f.A)({},e,{domRef:ye,prefixCls:r,inputElement:Ae,ref:Ce,id:i,prefix:B,showSearch:he,autoClearSearchValue:N,mode:C,activeDescendantId:I,tagRender:d,values:m,open:Ye,onToggleOpen:We,activeValue:D,searchValue:Re,onSearch:qe,onSearchSubmit:function(e){e&&e.trim()&&F(e,{source:"submit"})},onRemove:function(e){var t=m.filter((function(t){return t!==e}));p(t,{type:"remove",values:[e]})},tokenWithEnter:Ve,onInputBlur:function(){et.current=!1}})));return dt=Le?gt:o.createElement("div",(0,f.A)({className:ft},me,{ref:ve,onMouseDown:function(e){var t,n=e.target,o=null===(t=we.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var i=setTimeout((function(){var e,t=ot.indexOf(i);-1!==t&&ot.splice(t,1),Te(),ge||o.contains(document.activeElement)||null===(e=Ce.current)||void 0===e||e.focus()}));ot.push(i)}for(var r=arguments.length,s=new Array(r>1?r-1:0),a=1;a<r;a++)s[a-1]=arguments[a];null==ce||ce.apply(void 0,[e].concat(s))},onKeyDown:function(e){var t,n=Qe(),o=e.key,i="Enter"===o;if(i&&("combobox"!==C&&e.preventDefault(),Ye||We(!0)),Ze(!!Re),"Backspace"===o&&!n&&ue&&!Re&&m.length){for(var r=(0,tt.A)(m),s=null,a=r.length-1;a>=0;a-=1){var l=r[a];if(!l.disabled){r.splice(a,1),s=l;break}}s&&p(r,{type:"remove",values:[s]})}for(var c=arguments.length,d=new Array(c>1?c-1:0),u=1;u<c;u++)d[u-1]=arguments[u];!Ye||i&&et.current||(i&&(et.current=!0),null===(t=_e.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(d))),null==le||le.apply(void 0,[e].concat(d))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i;Ye&&(null===(i=_e.current)||void 0===i||i.onKeyUp.apply(i,[e].concat(n))),"Enter"===e.key&&(et.current=!1),null==ae||ae.apply(void 0,[e].concat(n))},onFocus:function(){ke(!0),_||(re&&!nt.current&&re.apply(void 0,arguments),ie.includes("focus")&&We(!0)),nt.current=!0},onBlur:function(){Se.current=!0,ke(!1,(function(){nt.current=!1,Se.current=!1,We(!1)})),_||(Re&&("tags"===C?F(Re,{source:"submit"}):"multiple"===C&&F("",{source:"blur"})),se&&se.apply(void 0,arguments))}}),o.createElement(Dm,{visible:xe&&!Ye,values:m}),gt,at,ht&&mt),o.createElement(cm.Provider,{value:lt},dt)}));const Fm=Nm;var zm=function(){return null};zm.isSelectOptGroup=!0;const jm=zm;var Ym=function(){return null};Ym.isSelectOption=!0;const $m=Ym;var Bm=["disabled","title","children","style","className"];function Wm(e){return"string"==typeof e||"number"==typeof e}var Vm=function(e,t){var n=o.useContext(cm),i=n.prefixCls,r=n.id,s=n.open,l=n.multiple,c=n.mode,d=n.searchValue,u=n.toggleOpen,h=n.notFoundContent,m=n.onPopupScroll,p=o.useContext(Om),g=p.maxCount,b=p.flattenOptions,v=p.onActiveValue,y=p.defaultActiveFirstOption,w=p.onSelect,C=p.menuItemSelectedIcon,_=p.rawValues,S=p.fieldNames,M=p.virtual,E=p.direction,k=p.listHeight,A=p.listItemHeight,L=p.optionRender,O="".concat(i,"-item"),D=(0,R.A)((function(){return b}),[s,b],(function(e,t){return t[0]&&e[1]!==t[1]})),H=o.useRef(null),I=o.useMemo((function(){return l&&Rm(g)&&(null==_?void 0:_.size)>=g}),[l,g,null==_?void 0:_.size]),P=function(e){e.preventDefault()},N=function(e){var t;null===(t=H.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},F=o.useCallback((function(e){return"combobox"!==c&&_.has(e)}),[c,(0,tt.A)(_).toString(),_.size]),z=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=D.length,o=0;o<n;o+=1){var i=(e+o*t+n)%n,r=D[i]||{},s=r.group,a=r.data;if(!s&&(null==a||!a.disabled)&&(F(a.value)||!I))return i}return-1},Y=o.useState((function(){return z(0)})),$=(0,a.A)(Y,2),B=$[0],W=$[1],V=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];W(e);var n={source:t?"keyboard":"mouse"},o=D[e];o?v(o.value,e,n):v(null,-1,n)};(0,o.useEffect)((function(){V(!1!==y?z(0):-1)}),[D.length,d]);var U=o.useCallback((function(e){return"combobox"===c?String(e).toLowerCase()===d.toLowerCase():_.has(e)}),[c,d,(0,tt.A)(_).toString(),_.size]);(0,o.useEffect)((function(){var e,t=setTimeout((function(){if(!l&&s&&1===_.size){var e=Array.from(_)[0],t=D.findIndex((function(t){var n=t.data;return d?String(n.value).startsWith(d):n.value===e}));-1!==t&&(V(t),N(t))}}));return s&&(null===(e=H.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[s,d]);var G=function(e){void 0!==e&&w(e,{selected:!_.has(e)}),l||u(!1)};if(o.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Ps.N:case Ps.P:case Ps.UP:case Ps.DOWN:var o=0;if(t===Ps.UP?o=-1:t===Ps.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Ps.N?o=1:t===Ps.P&&(o=-1)),0!==o){var i=z(B+o,o);N(i),V(i,!0)}break;case Ps.TAB:case Ps.ENTER:var r,a=D[B];!a||null!=a&&null!==(r=a.data)&&void 0!==r&&r.disabled||I?G(void 0):G(a.value),s&&e.preventDefault();break;case Ps.ESC:u(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){N(e)}}})),0===D.length)return o.createElement("div",{role:"listbox",id:"".concat(r,"_list"),className:"".concat(O,"-empty"),onMouseDown:P},h);var K=Object.keys(S).map((function(e){return S[e]})),q=function(e){return e.label};function X(e,t){return{role:e.group?"presentation":"option",id:"".concat(r,"_list_").concat(t)}}var J=function(e){var t=D[e];if(!t)return null;var n=t.data||{},i=n.value,r=t.group,s=Fe(n,!0),a=q(t);return t?o.createElement("div",(0,f.A)({"aria-label":"string"!=typeof a||r?null:a},s,{key:e},X(t,e),{"aria-selected":U(i)}),i):null},Q={role:"listbox",id:"".concat(r,"_list")};return o.createElement(o.Fragment,null,M&&o.createElement("div",(0,f.A)({},Q,{style:{height:0,width:0,overflow:"hidden"}}),J(B-1),J(B),J(B+1)),o.createElement(Kt,{itemKey:"key",ref:H,data:D,height:k,itemHeight:A,fullHeight:!1,onMouseDown:P,onScroll:m,virtual:M,direction:E,innerProps:M?null:Q},(function(e,t){var n=e.group,i=e.groupOption,r=e.data,s=e.label,a=e.value,l=r.key;if(n){var c,d=null!==(c=r.title)&&void 0!==c?c:Wm(s)?s.toString():void 0;return o.createElement("div",{className:T()(O,"".concat(O,"-group"),r.className),title:d},void 0!==s?s:l)}var u=r.disabled,h=r.title,m=(r.children,r.style),p=r.className,g=Dn((0,j.A)(r,Bm),K),b=F(a),v=u||!b&&I,y="".concat(O,"-option"),w=T()(O,y,p,(0,x.A)((0,x.A)((0,x.A)((0,x.A)({},"".concat(y,"-grouped"),i),"".concat(y,"-active"),B===t&&!v),"".concat(y,"-disabled"),v),"".concat(y,"-selected"),b)),_=q(e),S=!C||"function"==typeof C||b,E="number"==typeof _?_:_||a,k=Wm(E)?E.toString():void 0;return void 0!==h&&(k=h),o.createElement("div",(0,f.A)({},Fe(g),M?{}:X(e,t),{"aria-selected":U(a),className:w,title:k,onMouseMove:function(){B===t||v||V(t)},onClick:function(){v||G(a)},style:m}),o.createElement("div",{className:"".concat(y,"-content")},"function"==typeof L?L(e,{index:t}):E),o.isValidElement(C)||b,S&&o.createElement(lm,{className:"".concat(O,"-option-state"),customizeIcon:C,customizeIconProps:{value:a,disabled:v,isSelected:b}},b?"✓":null))})))};const Um=o.forwardRef(Vm);function Gm(e,t){return pm(e).join("").toUpperCase().includes(t)}var Km=0,qm=(0,Re.A)();var Xm=["children","value"],Jm=["children"];function Qm(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return G(e).map((function(e,n){if(!o.isValidElement(e)||!e.type)return null;var i=e,r=i.type.isSelectOptGroup,s=i.key,a=i.props,l=a.children,c=(0,j.A)(a,Jm);return t||!r?function(e){var t=e,n=t.key,o=t.props,i=o.children,r=o.value,s=(0,j.A)(o,Xm);return(0,E.A)({key:n,value:void 0!==r?r:n,children:i},s)}(e):(0,E.A)((0,E.A)({key:"__RC_SELECT_GRP__".concat(null===s?n:s,"__"),label:s},c),{},{options:Qm(l)})})).filter((function(e){return e}))}const Zm=function(e,t,n,i,r){return o.useMemo((function(){var o=e;!e&&(o=Qm(t));var s=new Map,a=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var d=t[c];!d[n.options]||o?(s.set(d[n.value],d),l(a,d,n.label),l(a,d,i),l(a,d,r)):e(d[n.options],!0)}}(o),{options:o,valueOptions:s,labelOptions:a}}),[e,t,n,i,r])};function ep(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var tp=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],np=["inputValue"],op=o.forwardRef((function(e,t){var n=e.id,i=e.mode,r=e.prefixCls,s=void 0===r?"rc-select":r,l=e.backfill,c=e.fieldNames,d=e.inputValue,u=e.searchValue,h=e.onSearch,m=e.autoClearSearchValue,p=void 0===m||m,g=e.onSelect,b=e.onDeselect,v=e.dropdownMatchSelectWidth,y=void 0===v||v,w=e.filterOption,C=e.filterSort,_=e.optionFilterProp,S=e.optionLabelProp,k=e.options,T=e.optionRender,R=e.children,A=e.defaultActiveFirstOption,L=e.menuItemSelectedIcon,O=e.virtual,D=e.direction,H=e.listHeight,I=void 0===H?200:H,P=e.listItemHeight,N=void 0===P?20:P,F=e.labelRender,z=e.value,Y=e.defaultValue,$=e.labelInValue,B=e.onChange,W=e.maxCount,V=(0,j.A)(e,tp),U=function(e){var t=o.useState(),n=(0,a.A)(t,2),i=n[0],r=n[1];return o.useEffect((function(){var e;r("rc_select_".concat((qm?(e=Km,Km+=1):e="TEST_OR_SSR",e)))}),[]),e||i}(n),G=Pm(i),K=!(k||!R),q=o.useMemo((function(){return(void 0!==w||"combobox"!==i)&&w}),[w,i]),X=o.useMemo((function(){return Am(c,K)}),[JSON.stringify(c),K]),J=(0,so.A)("",{value:void 0!==u?u:d,postState:function(e){return e||""}}),Q=(0,a.A)(J,2),Z=Q[0],ee=Q[1],te=Zm(k,R,X,_,S),ne=te.valueOptions,oe=te.labelOptions,ie=te.options,re=o.useCallback((function(e){return pm(e).map((function(e){var t,n,o,i,r,s;!function(e){return!e||"object"!==(0,M.A)(e)}(e)?(o=e.key,n=e.label,t=null!==(s=e.value)&&void 0!==s?s:o):t=e;var a,l=ne.get(t);return l&&(void 0===n&&(n=null==l?void 0:l[S||X.label]),void 0===o&&(o=null!==(a=null==l?void 0:l.key)&&void 0!==a?a:t),i=null==l?void 0:l.disabled,r=null==l?void 0:l.title),{label:n,value:t,key:o,disabled:i,title:r}}))}),[X,S,ne]),se=(0,so.A)(Y,{value:z}),ae=(0,a.A)(se,2),le=ae[0],ce=ae[1],de=o.useMemo((function(){var e,t=re(G&&null===le?[]:le);return"combobox"===i&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[le,re,i,G]),ue=function(e,t){var n=o.useRef({values:new Map,options:new Map});return[o.useMemo((function(){var o=n.current,i=o.values,r=o.options,s=e.map((function(e){var t;return void 0===e.label?(0,E.A)((0,E.A)({},e),{},{label:null===(t=i.get(e.value))||void 0===t?void 0:t.label}):e})),a=new Map,l=new Map;return s.forEach((function(e){a.set(e.value,e),l.set(e.value,t.get(e.value)||r.get(e.value))})),n.current.values=a,n.current.options=l,s}),[e,t]),o.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(de,ne),he=(0,a.A)(ue,2),me=he[0],pe=he[1],fe=o.useMemo((function(){if(!i&&1===me.length){var e=me[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return me.map((function(e){var t;return(0,E.A)((0,E.A)({},e),{},{label:null!==(t="function"==typeof F?F(e):e.label)&&void 0!==t?t:e.value})}))}),[i,me,F]),ge=o.useMemo((function(){return new Set(me.map((function(e){return e.value})))}),[me]);o.useEffect((function(){if("combobox"===i){var e,t=null===(e=me[0])||void 0===e?void 0:e.value;ee(function(e){return null!=e}(t)?String(t):"")}}),[me]);var be=ep((function(e,t){var n=null!=t?t:e;return(0,x.A)((0,x.A)({},X.value,e),X.label,n)})),ve=function(e,t,n,i,r){return o.useMemo((function(){if(!n||!1===i)return e;var o=t.options,s=t.label,a=t.value,l=[],c="function"==typeof i,d=n.toUpperCase(),u=c?i:function(e,t){return r?Gm(t[r],d):t[o]?Gm(t["children"!==s?s:"label"],d):Gm(t[a],d)},h=c?function(e){return Lm(e)}:function(e){return e};return e.forEach((function(e){if(e[o])if(u(n,h(e)))l.push(e);else{var t=e[o].filter((function(e){return u(n,h(e))}));t.length&&l.push((0,E.A)((0,E.A)({},e),{},(0,x.A)({},o,t)))}else u(n,h(e))&&l.push(e)})),l}),[e,i,r,n,t])}(o.useMemo((function(){if("tags"!==i)return ie;var e=(0,tt.A)(ie);return(0,tt.A)(me).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return ne.has(e)})(n)||e.push(be(n,t.label))})),e}),[be,ie,ne,me,i]),X,Z,q,_),ye=o.useMemo((function(){return"tags"!==i||!Z||ve.some((function(e){return e[_||"value"]===Z}))||ve.some((function(e){return e[X.value]===Z}))?ve:[be(Z)].concat((0,tt.A)(ve))}),[be,_,i,ve,Z,X]),we=function e(t){return(0,tt.A)(t).sort((function(e,t){return C(e,t,{searchValue:Z})})).map((function(t){return Array.isArray(t.options)?(0,E.A)((0,E.A)({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},Ce=o.useMemo((function(){return C?we(ye):ye}),[ye,C,Z]),_e=o.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,i=[],r=Am(n,!1),s=r.label,a=r.value,l=r.options,c=r.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(l in t)){var r=t[a];i.push({key:Tm(t,i.length),groupOption:n,data:t,label:t[s],value:r})}else{var d=t[c];void 0===d&&o&&(d=t.label),i.push({key:Tm(t,i.length),group:!0,data:t,label:d}),e(t[l],!0)}}))}(e,!1),i}(Ce,{fieldNames:X,childrenAsData:K})}),[Ce,X,K]),Se=function(e){var t=re(e);if(ce(t),B&&(t.length!==me.length||t.some((function(e,t){var n;return(null===(n=me[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=$?t:t.map((function(e){return e.value})),o=t.map((function(e){return Lm(pe(e.value))}));B(G?n:n[0],G?o:o[0])}},Me=o.useState(null),Ee=(0,a.A)(Me,2),xe=Ee[0],ke=Ee[1],Te=o.useState(0),Re=(0,a.A)(Te,2),Ae=Re[0],Le=Re[1],Oe=void 0!==A?A:"combobox"!==i,De=o.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;Le(t),l&&"combobox"===i&&null!==e&&"keyboard"===o&&ke(String(e))}),[l,i]),He=function(e,t,n){var o=function(){var t,n=pe(e);return[$?{label:null==n?void 0:n[X.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Lm(n)]};if(t&&g){var i=o(),r=(0,a.A)(i,2),s=r[0],l=r[1];g(s,l)}else if(!t&&b&&"clear"!==n){var c=o(),d=(0,a.A)(c,2),u=d[0],h=d[1];b(u,h)}},Ie=ep((function(e,t){var n,o=!G||t.selected;n=o?G?[].concat((0,tt.A)(me),[e]):[e]:me.filter((function(t){return t.value!==e})),Se(n),He(e,o),"combobox"===i?ke(""):Pm&&!p||(ee(""),ke(""))})),Pe=o.useMemo((function(){var e=!1!==O&&!1!==y;return(0,E.A)((0,E.A)({},te),{},{flattenOptions:_e,onActiveValue:De,defaultActiveFirstOption:Oe,onSelect:Ie,menuItemSelectedIcon:L,rawValues:ge,fieldNames:X,virtual:e,direction:D,listHeight:I,listItemHeight:N,childrenAsData:K,maxCount:W,optionRender:T})}),[W,te,_e,De,Oe,Ie,L,ge,X,O,y,D,I,N,K,T]);return o.createElement(Om.Provider,{value:Pe},o.createElement(Fm,(0,f.A)({},V,{id:U,prefixCls:s,ref:t,omitDomProps:np,mode:i,displayValues:fe,onDisplayValuesChange:function(e,t){Se(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){He(e.value,!1,n)}))},direction:D,searchValue:Z,onSearch:function(e,t){if(ee(e),ke(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===i&&Se(e),null==h||h(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat((0,tt.A)(ge),[n])));Se(o),He(n,!0),ee("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==i&&(t=e.map((function(e){var t=oe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,tt.A)(ge),(0,tt.A)(t))));Se(n),n.forEach((function(e){He(e,!0)}))},dropdownMatchSelectWidth:y,OptionList:Um,emptyOptions:!_e.length,activeValue:xe,activeDescendantId:"".concat(U,"_list_").concat(Ae)})))})),ip=op;ip.Option=$m,ip.OptGroup=jm;const rp=ip;function sp(e,t,n){return T()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const ap=(e,t)=>t||e,lp=(e,t,n=void 0)=>{var i,r;const{variant:s,[e]:a}=o.useContext(ho.QO),l=o.useContext(Nr),c=null==a?void 0:a.variant;let d;return d=void 0!==t?t:!1===n?"borderless":null!==(r=null!==(i=null!=l?l:c)&&void 0!==i?i:s)&&void 0!==r?r:"outlined",[d,ho.lJ.includes(d)]},cp=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},dp=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},up=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,r=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,a=`${n}-dropdown-placement-`,l=`${o}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,Do.dF)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${i}${a}bottomLeft,\n ${r}${a}bottomLeft\n `]:{animationName:Jc},[`\n ${i}${a}topLeft,\n ${r}${a}topLeft,\n ${i}${a}topRight,\n ${r}${a}topRight\n `]:{animationName:Zc},[`${s}${a}bottomLeft`]:{animationName:Qc},[`\n ${s}${a}topLeft,\n ${s}${a}topRight\n `]:{animationName:ed},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},dp(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Do.L9),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},dp(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},sd(e,"slide-up"),sd(e,"slide-down"),Od(e,"move-up"),Od(e,"move-down")]},hp=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:i,paddingXS:r,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:a,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e,u=`${t}-selection-overflow`;return{[u]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:o,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:r,paddingInlineEnd:e.calc(r).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:a,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(r).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Do.Nk)()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},mp=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=`${n}-selection-overflow`,r=e.multipleSelectItemHeight,s=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),a=t?`${n}-${t}`:"",l=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:i}=e,r=e.max(e.calc(n).sub(o).equal(),0);return{basePadding:r,containerPadding:e.max(e.calc(r).sub(i).equal(),0),itemHeight:(0,fo.zA)(t),itemLineHeight:(0,fo.zA)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${a}`]:Object.assign(Object.assign({},hp(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,fo.zA)(o)} 0`,lineHeight:(0,fo.zA)(r),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:(0,fo.zA)(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,fo.zA)(r),marginBlock:o}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item,\n ${n}-prefix + ${n}-selection-wrap\n `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:o},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:r,fontFamily:e.fontFamily,lineHeight:(0,fo.zA)(r),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function pp(e,t){const{componentCls:n}=e,o=t?`${n}-${t}`:"",i={[`${n}-multiple${o}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[mp(e,t),i]}const fp=e=>{const{componentCls:t}=e,n=ko(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=ko(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[pp(e),pp(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},pp(o,"lg")]};function gp(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:i}=e,r=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},(0,Do.dF)(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:(0,fo.zA)(r)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:(0,fo.zA)(r),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,fo.zA)(o)}`,[`${n}-selection-search-input`]:{height:r,fontSize:e.fontSize},"&:after":{lineHeight:(0,fo.zA)(r)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,fo.zA)(o)}`,"&:after":{display:"none"}}}}}}}function bp(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[gp(e),gp(ko(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${(0,fo.zA)(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},gp(ko(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const vp=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,fo.zA)(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},yp=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},vp(e,t))}),wp=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},vp(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),yp(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),yp(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Cp=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},_p=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Cp(e,t))}),Sp=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Cp(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),_p(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),_p(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Mp=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Ep=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${(0,fo.zA)(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},xp=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ep(e,t))}),kp=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ep(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),xp(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),xp(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Tp=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},wp(e)),Sp(e)),Mp(e)),kp(e))}),Rp=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ap=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Lp=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:i}=e,r={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},(0,Do.dF)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Rp(e)),Ap(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Do.L9),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Do.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},(0,Do.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":r,"&:hover":r}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Op=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Lp(e),bp(e),fp(e),up(e),{[`${t}-rtl`]:{direction:"rtl"}},zu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Dp=Io("Select",((e,{rootPrefixCls:t})=>{const n=ko(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Op(n),Tp(n)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:i,controlHeightSM:r,controlHeightLG:s,paddingXXS:a,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:d,fontWeightStrong:u,controlItemBgActive:h,controlItemBgHover:m,colorBgContainer:p,colorFillSecondary:f,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:v,colorPrimary:y,controlOutline:w}=e,C=2*a,_=2*o,S=Math.min(i-C,i-_),M=Math.min(r-C,r-_),E=Math.min(s-C,s-_);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:u,optionSelectedBg:h,optionActiveBg:m,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:p,clearBg:p,singleItemHeightLG:s,multipleItemBg:f,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:M,multipleItemHeightLG:E,multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:w,selectAffixPadding:a}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),Hp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var Ip=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:Hp}))};const Pp=o.forwardRef(Ip),Np={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var Fp=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:Np}))};const zp=o.forwardRef(Fp),jp={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var Yp=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:jp}))};const $p=o.forwardRef(Yp),Bp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var Wp=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:Bp}))};const Vp=o.forwardRef(Wp);const Up="SECRET_COMBOBOX_MODE_DO_NOT_USE",Gp=(e,t)=>{var n,i,r,s,a;const{prefixCls:l,bordered:c,className:d,rootClassName:u,getPopupContainer:h,popupClassName:m,dropdownClassName:p,listHeight:f=256,placement:g,listItemHeight:b,size:v,disabled:y,notFoundContent:w,status:C,builtinPlacements:_,dropdownMatchSelectWidth:S,popupMatchSelectWidth:M,direction:E,style:x,allowClear:k,variant:R,dropdownStyle:A,transitionName:L,tagRender:O,maxCount:D,prefix:H,dropdownRender:I,popupRender:P,onDropdownVisibleChange:N,onOpenChange:F,styles:z,classNames:j}=e,Y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:$,getPrefixCls:B,renderEmpty:W,direction:V,virtual:U,popupMatchSelectWidth:G,popupOverflow:K}=o.useContext(ho.QO),{showSearch:q,style:X,styles:J,className:Q,classNames:Z}=(0,ho.TP)("select"),[,ee]=(0,Ho.Ay)(),te=null!=b?b:null==ee?void 0:ee.controlHeight,ne=B("select",l),oe=B(),ie=null!=E?E:V,{compactSize:re,compactItemClassnames:se}=wc(ne,ie),[ae,le]=lp("select",R,c),ce=vi(ne),[de,ue,he]=Dp(ne,ce),me=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===Up?"combobox":t}),[e.mode]),pe="multiple"===me||"tags"===me,fe=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ge=null!==(n=null!=M?M:S)&&void 0!==n?n:G,be=(null===(i=null==z?void 0:z.popup)||void 0===i?void 0:i.root)||(null===(r=J.popup)||void 0===r?void 0:r.root)||A,ve=P||I,ye=F||N,{status:we,hasFeedback:Ce,isFormItemInput:_e,feedbackIcon:Se}=o.useContext(Ir),Me=ap(we,C);let Ee;Ee=void 0!==w?w:"combobox"===me?null:(null==W?void 0:W("Select"))||o.createElement(Yh,{componentName:"Select"});const{suffixIcon:xe,itemIcon:ke,removeIcon:Te,clearIcon:Re}=function({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:i,loading:r,multiple:s,hasFeedback:a,prefixCls:l,showSuffixIcon:c,feedbackIcon:d,showArrow:u,componentName:h}){const m=null!=t?t:o.createElement(zp,null),p=t=>null!==e||a||u?o.createElement(o.Fragment,null,!1!==c&&t,a&&d):null;let f=null;if(void 0!==e)f=p(e);else if(r)f=p(o.createElement(Ud,{spin:!0}));else{const e=`${l}-suffix`;f=({open:t,showSearch:n})=>p(t&&n?o.createElement(Vp,{className:e}):o.createElement(kn,{className:e}))}let g=null;g=void 0!==n?n:s?o.createElement(Pp,null):null;let b=null;return b=void 0!==i?i:o.createElement($p,null),{clearIcon:m,suffixIcon:f,itemIcon:g,removeIcon:b}}(Object.assign(Object.assign({},Y),{multiple:pe,hasFeedback:Ce,feedbackIcon:Se,showSuffixIcon:fe,prefixCls:ne,componentName:"Select"})),Ae=!0===k?{clearIcon:Re}:k,Le=Dn(Y,["suffixIcon","itemIcon"]),Oe=T()((null===(s=null==j?void 0:j.popup)||void 0===s?void 0:s.root)||(null===(a=null==Z?void 0:Z.popup)||void 0===a?void 0:a.root)||m||p,{[`${ne}-dropdown-${ie}`]:"rtl"===ie},u,Z.root,null==j?void 0:j.root,he,ce,ue),De=mc((e=>{var t;return null!==(t=null!=v?v:re)&&void 0!==t?t:e})),He=o.useContext(bi.A),Ie=null!=y?y:He,Pe=T()({[`${ne}-lg`]:"large"===De,[`${ne}-sm`]:"small"===De,[`${ne}-rtl`]:"rtl"===ie,[`${ne}-${ae}`]:le,[`${ne}-in-form-item`]:_e},sp(ne,Me,Ce),se,Q,d,Z.root,null==j?void 0:j.root,u,he,ce,ue),Ne=o.useMemo((()=>void 0!==g?g:"rtl"===ie?"bottomRight":"bottomLeft"),[g,ie]),[Fe]=Xs("SelectLike",null==be?void 0:be.zIndex);return de(o.createElement(rp,Object.assign({ref:t,virtual:U,showSearch:q},Le,{style:Object.assign(Object.assign(Object.assign(Object.assign({},J.root),null==z?void 0:z.root),X),x),dropdownMatchSelectWidth:ge,transitionName:ec(oe,"slide-up",L),builtinPlacements:cp(_,K),listHeight:f,listItemHeight:te,mode:me,prefixCls:ne,placement:Ne,direction:ie,prefix:H,suffixIcon:xe,menuItemSelectedIcon:ke,removeIcon:Te,allowClear:Ae,notFoundContent:Ee,className:Pe,getPopupContainer:h||$,dropdownClassName:Oe,disabled:Ie,dropdownStyle:Object.assign(Object.assign({},be),{zIndex:Fe}),maxCount:pe?D:void 0,tagRender:pe?O:void 0,dropdownRender:ve,onDropdownVisibleChange:ye})))},Kp=o.forwardRef(Gp),qp=aa(Kp,"dropdownAlign");Kp.SECRET_COMBOBOX_MODE_DO_NOT_USE=Up,Kp.Option=$m,Kp.OptGroup=jm,Kp._InternalPanelDoNotUseOrYouWillBeFired=qp;const Xp=Kp;function Jp(e){return ko(e,{inputAffixPadding:e.paddingXXS})}const Qp=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:i,controlHeightSM:r,controlHeightLG:s,fontSizeLG:a,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:u,colorFillAlter:h,colorPrimaryHover:m,colorPrimary:p,controlOutlineWidth:f,controlOutline:g,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y,inputFontSize:w,inputFontSizeLG:C,inputFontSizeSM:_}=e,S=w||n,M=_||S,E=C||a,x=Math.round((t-S*o)/2*10)/10-i,k=Math.round((r-M*o)/2*10)/10-i,T=Math.ceil((s-E*l)/2*10)/10-i;return{paddingBlock:Math.max(x,0),paddingBlockSM:Math.max(k,0),paddingBlockLG:Math.max(T,0),paddingInline:c-i,paddingInlineSM:d-i,paddingInlineLG:u-i,addonBg:h,activeBorderColor:p,hoverBorderColor:m,activeShadow:`0 0 0 ${f}px ${g}`,errorActiveShadow:`0 0 0 ${f}px ${b}`,warningActiveShadow:`0 0 0 ${f}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:S,inputFontSizeLG:E,inputFontSizeSM:M}},Zp=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ef=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Zp(ko(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),tf=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),nf=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},tf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),of=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ef(e))}),nf(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),nf(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),rf=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),sf=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},rf(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),rf(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ef(e))}})}),af=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},lf=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null==t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},cf=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},lf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),df=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lf(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ef(e))}),cf(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),cf(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),uf=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),hf=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},uf(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),uf(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),mf=(e,t)=>({background:e.colorBgContainer,borderWidth:`${(0,fo.zA)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),pf=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},mf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),ff=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),pf(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),pf(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),gf=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:i}=e;return{padding:`${(0,fo.zA)(t)} ${(0,fo.zA)(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},bf=e=>({padding:`${(0,fo.zA)(e.paddingBlockSM)} ${(0,fo.zA)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),vf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,fo.zA)(e.paddingBlock)} ${(0,fo.zA)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"&-lg":Object.assign({},gf(e)),"&-sm":Object.assign({},bf(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),yf=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},gf(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},bf(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,fo.zA)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${(0,fo.zA)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,fo.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${(0,fo.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,Do.t6)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},wf=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:i}=e,r=i(n).sub(i(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Do.dF)(e)),vf(e)),of(e)),df(e)),af(e)),ff(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:r,paddingBottom:r}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Cf=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,fo.zA)(e.inputAffixPadding)}`}}}},_f=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:i,colorIcon:r,colorIconHover:s,iconCls:a}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},vf(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Cf(e)),{[`${a}${t}-password-icon`]:{color:r,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:s}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${a}${t}-password-icon`]:{color:r,cursor:"not-allowed","&:hover":{color:r}}}}},Sf=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,Do.dF)(e)),yf(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:o}}},sf(e)),hf(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Mf=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${o}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Ef=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},xf=Io(["Input","Shared"],(e=>{const t=ko(e,Jp(e));return[wf(t),_f(t)]}),Qp,{resetFont:!1}),kf=Io(["Input","Component"],(e=>{const t=ko(e,Jp(e));return[Sf(t),Mf(t),Ef(t),zu(t)]}),Qp,{resetFont:!1}),Tf=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Rf=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,fo.zA)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,fo.zA)(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,fo.zA)(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,fo.zA)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,fo.zA)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,fo.zA)(e.itemSizeSM),input:Object.assign(Object.assign({},bf(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Af=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:(0,fo.zA)(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:(0,fo.zA)(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,fo.zA)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${(0,fo.zA)(e.inputOutlineOffset)} 0 ${(0,fo.zA)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Lf=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:(0,fo.zA)(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:(0,fo.zA)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},vf(e)),tf(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},ef(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Of=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,fo.zA)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,fo.zA)(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Df=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Do.dF)(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:(0,fo.zA)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Of(e)),Lf(e)),Af(e)),Rf(e)),Tf(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Hf=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,Do.K8)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,Do.jk)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,Do.jk)(e))}}}},If=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Qp(e)),Pf=e=>ko(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Jp(e)),Nf=Io("Pagination",(e=>{const t=Pf(e);return[Df(t),Hf(t)]}),If),Ff=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${(0,fo.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},zf=No(["Pagination","bordered"],(e=>{const t=Pf(e);return[Ff(t)]}),If);function jf(e){return(0,o.useMemo)((()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0]),[e])}const Yf=e=>{const{align:t,prefixCls:n,selectPrefixCls:i,className:r,rootClassName:s,style:a,size:l,locale:c,responsive:d,showSizeChanger:u,selectComponentClass:h,pageSizeOptions:m}=e,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:f}=Vh(d),[,g]=(0,Ho.Ay)(),{getPrefixCls:b,direction:v,showSizeChanger:y,className:w,style:C}=(0,ho.TP)("pagination"),_=b("pagination",n),[S,M,E]=Nf(_),x=mc(l),k="small"===x||!(!f||x||!d),[R]=Oh("Pagination",am.A),A=Object.assign(Object.assign({},R),c),[L,O]=jf(u),[D,H]=jf(y),I=null!=L?L:D,P=null!=O?O:H,N=h||Xp,F=o.useMemo((()=>m?m.map((e=>Number(e))):void 0),[m]),z=o.useMemo((()=>{const e=o.createElement("span",{className:`${_}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},"rtl"===v?o.createElement(es,null):o.createElement(Jr,null)),nextIcon:o.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},"rtl"===v?o.createElement(Jr,null):o.createElement(es,null)),jumpPrevIcon:o.createElement("a",{className:`${_}-item-link`},o.createElement("div",{className:`${_}-item-container`},"rtl"===v?o.createElement(Jh,{className:`${_}-item-link-icon`}):o.createElement(Kh,{className:`${_}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${_}-item-link`},o.createElement("div",{className:`${_}-item-container`},"rtl"===v?o.createElement(Kh,{className:`${_}-item-link-icon`}):o.createElement(Jh,{className:`${_}-item-link-icon`}),e))}}),[v,_]),j=b("select",i),Y=T()({[`${_}-${t}`]:!!t,[`${_}-mini`]:k,[`${_}-rtl`]:"rtl"===v,[`${_}-bordered`]:g.wireframe},w,r,s,M,E),$=Object.assign(Object.assign({},C),a);return S(o.createElement(o.Fragment,null,g.wireframe&&o.createElement(zf,{prefixCls:_}),o.createElement(sm,Object.assign({},z,p,{style:$,prefixCls:_,selectPrefixCls:j,className:Y,locale:A,pageSizeOptions:F,showSizeChanger:I,sizeChangerRender:e=>{var t;const{disabled:n,size:i,onSizeChange:r,"aria-label":s,className:a,options:l}=e,{className:c,onChange:d}=P||{},u=null===(t=l.find((e=>String(e.value)===String(i))))||void 0===t?void 0:t.value;return o.createElement(N,Object.assign({disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":s,options:l},P,{value:u,onChange:(e,t)=>{null==r||r(e),null==d||d(e,t)},size:k?"small":"middle",className:T()(a,c)}))}}))))};const $f=80*Math.PI,Bf=e=>{const{dotClassName:t,style:n,hasCircleCls:i}=e;return o.createElement("circle",{className:T()(`${t}-circle`,{[`${t}-circle-bg`]:i}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},Wf=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,i=`${n}-holder`,r=`${i}-hidden`,[s,a]=o.useState(!1);(0,c.A)((()=>{0!==e&&a(!0)}),[0!==e]);const l=Math.max(Math.min(e,100),0);if(!s)return null;const d={strokeDashoffset:""+$f/4,strokeDasharray:`${$f*l/100} ${$f*(100-l)/100}`};return o.createElement("span",{className:T()(i,`${n}-progress`,l<=0&&r)},o.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},o.createElement(Bf,{dotClassName:n,hasCircleCls:!0}),o.createElement(Bf,{dotClassName:n,style:d})))};function Vf(e){const{prefixCls:t,percent:n=0}=e,i=`${t}-dot`,r=`${i}-holder`,s=`${r}-hidden`;return o.createElement(o.Fragment,null,o.createElement("span",{className:T()(r,n>0&&s)},o.createElement("span",{className:T()(i,`${t}-dot-spin`)},[1,2,3,4].map((e=>o.createElement("i",{className:`${t}-dot-item`,key:e}))))),o.createElement(Wf,{prefixCls:t,percent:n}))}function Uf(e){const{prefixCls:t,indicator:n,percent:i}=e,r=`${t}-dot`;return n&&o.isValidElement(n)?po(n,{className:T()(n.props.className,r),percent:i}):o.createElement(Vf,{prefixCls:t,percent:i})}const Gf=new fo.Mo("antSpinMove",{to:{opacity:1}}),Kf=new fo.Mo("antRotate",{to:{transform:"rotate(405deg)"}}),qf=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},(0,Do.dF)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Gf,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Kf,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Xf=Io("Spin",(e=>{const t=ko(e,{spinDotDefault:e.colorTextDescription});return[qf(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}})),Jf=[[30,.05],[70,.03],[96,.01]];let Qf;const Zf=e=>{var t;const{prefixCls:n,spinning:i=!0,delay:r=0,className:s,rootClassName:a,size:l="default",tip:c,wrapperClassName:d,style:u,children:h,fullscreen:m=!1,indicator:p,percent:f}=e,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:v,className:y,style:w,indicator:C}=(0,ho.TP)("spin"),_=b("spin",n),[S,M,E]=Xf(_),[x,k]=o.useState((()=>i&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(i,r))),R=function(e,t){const[n,i]=o.useState(0),r=o.useRef(null),s="auto"===t;return o.useEffect((()=>(s&&e&&(i(0),r.current=setInterval((()=>{i((e=>{const t=100-e;for(let n=0;n<Jf.length;n+=1){const[o,i]=Jf[n];if(e<=o)return e+t*i}return e}))}),200)),()=>{clearInterval(r.current)})),[s,e]),s?n:t}(x,f);o.useEffect((()=>{if(i){const e=function(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,i=n||{},r=i.noTrailing,s=void 0!==r&&r,a=i.noLeading,l=void 0!==a&&a,c=i.debounceMode,d=void 0===c?void 0:c,u=!1,h=0;function m(){o&&clearTimeout(o)}function p(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=this,c=Date.now()-h;function p(){h=Date.now(),t.apply(a,i)}function f(){o=void 0}u||(l||!d||o||p(),m(),void 0===d&&c>e?l?(h=Date.now(),s||(o=setTimeout(d?f:p,e))):p():!0!==s&&(o=setTimeout(d?f:p,void 0===d?e-c:e)))}return p.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;m(),u=!n},p}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}(r,(()=>{k(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}k(!1)}),[r,i]);const A=o.useMemo((()=>void 0!==h&&!m),[h,m]),L=T()(_,y,{[`${_}-sm`]:"small"===l,[`${_}-lg`]:"large"===l,[`${_}-spinning`]:x,[`${_}-show-text`]:!!c,[`${_}-rtl`]:"rtl"===v},s,!m&&a,M,E),O=T()(`${_}-container`,{[`${_}-blur`]:x}),D=null!==(t=null!=p?p:C)&&void 0!==t?t:Qf,H=Object.assign(Object.assign({},w),u),I=o.createElement("div",Object.assign({},g,{style:H,className:L,"aria-live":"polite","aria-busy":x}),o.createElement(Uf,{prefixCls:_,indicator:D,percent:R}),c&&(A||m)?o.createElement("div",{className:`${_}-text`},c):null);return S(A?o.createElement("div",Object.assign({},g,{className:T()(`${_}-nested-loading`,d,M,E)}),x&&o.createElement("div",{key:"loading"},I),o.createElement("div",{className:O,key:"container"},h)):m?o.createElement("div",{className:T()(`${_}-fullscreen`,{[`${_}-fullscreen-show`]:x},a,M,E)},I):I)};Zf.setDefaultIndicator=e=>{Qf=e};const eg=Zf,tg=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function ng(e,t){return t?`${t}-${e}`:`${e}`}const og=(e,t)=>"function"==typeof e?e(t):e,ig={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var rg=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:ig}))};const sg=o.forwardRef(rg),ag=function(...e){const t={};return e.forEach((e=>{e&&Object.keys(e).forEach((n=>{void 0!==e[n]&&(t[n]=e[n])}))})),t};function lg(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var cg=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],dg=o.forwardRef((function(e,t){var n=e.className,i=e.style,r=e.motion,s=e.motionNodes,l=e.motionType,d=e.onMotionStart,u=e.onMotionEnd,h=e.active,m=e.treeNodeRequiredProps,p=(0,j.A)(e,cg),g=o.useState(!0),b=(0,a.A)(g,2),v=b[0],y=b[1],w=o.useContext(Tn).prefixCls,C=s&&"hide"!==l;(0,c.A)((function(){s&&C!==v&&y(C)}),[s]);var _=o.useRef(!1),S=function(){s&&!_.current&&(_.current=!0,u())};return function(e,t){var n=o.useState(!1),i=(0,a.A)(n,2),r=i[0],s=i[1];(0,c.A)((function(){if(r)return e(),function(){t()}}),[r]),(0,c.A)((function(){return s(!0),function(){s(!1)}}),[])}((function(){s&&d()}),S),s?o.createElement(Yo.Ay,(0,f.A)({ref:t,visible:v},r,{motionAppear:"show"===l,onVisibleChanged:function(e){C===e&&S()}}),(function(e,t){var n=e.className,i=e.style;return o.createElement("div",{ref:t,className:T()("".concat(w,"-treenode-motion"),n),style:i},s.map((function(e){var t=Object.assign({},(lg(e.data),e.data)),n=e.title,i=e.key,r=e.isStart,s=e.isEnd;delete t.children;var a=Yn(i,m);return o.createElement(Gn,(0,f.A)({},t,a,{title:n,active:h,data:e.data,key:i,isStart:r,isEnd:s}))})))})):o.createElement(Gn,(0,f.A)({domRef:t,className:n,style:i},p,{active:h}))}));const ug=dg;function hg(e,t,n){var o=e.findIndex((function(e){return e.key===n})),i=e[o+1],r=t.findIndex((function(e){return e.key===n}));if(i){var s=t.findIndex((function(e){return e.key===i.key}));return t.slice(r+1,s)}return t.slice(r+1)}var mg=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],pg={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},fg=function(){},gg="RC_TREE_MOTION_".concat(Math.random()),bg={key:gg},vg={key:gg,level:0,index:0,pos:"0",node:bg,nodes:[bg]},yg={parent:null,children:[],pos:vg.pos,data:bg,title:null,key:gg,isStart:[],isEnd:[]};function wg(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function Cg(e){return Pn(e.key,e.pos)}var _g=o.forwardRef((function(e,t){var n=e.prefixCls,i=e.data,r=(e.selectable,e.checkable,e.expandedKeys),s=e.selectedKeys,l=e.checkedKeys,d=e.loadedKeys,u=e.loadingKeys,h=e.halfCheckedKeys,m=e.keyEntities,p=e.disabled,g=e.dragging,b=e.dragOverNodeKey,v=e.dropPosition,y=e.motion,w=e.height,C=e.itemHeight,_=e.virtual,S=e.scrollWidth,M=e.focusable,E=e.activeItem,x=e.focused,k=e.tabIndex,T=e.onKeyDown,R=e.onFocus,A=e.onBlur,L=e.onActiveChange,O=e.onListChangeStart,D=e.onListChangeEnd,H=(0,j.A)(e,mg),I=o.useRef(null),P=o.useRef(null);o.useImperativeHandle(t,(function(){return{scrollTo:function(e){I.current.scrollTo(e)},getIndentWidth:function(){return P.current.offsetWidth}}}));var N=o.useState(r),F=(0,a.A)(N,2),z=F[0],Y=F[1],$=o.useState(i),B=(0,a.A)($,2),W=B[0],V=B[1],U=o.useState(i),G=(0,a.A)(U,2),K=G[0],q=G[1],X=o.useState([]),J=(0,a.A)(X,2),Q=J[0],Z=J[1],ee=o.useState(null),te=(0,a.A)(ee,2),ne=te[0],oe=te[1],ie=o.useRef(i);function re(){var e=ie.current;V(e),q(e),Z([]),oe(null),D()}ie.current=i,(0,c.A)((function(){Y(r);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function i(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var o=t.filter((function(e){return!n.has(e)}));return 1===o.length?o[0]:null}return n<o?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}(z,r);if(null!==e.key)if(e.add){var t=W.findIndex((function(t){return t.key===e.key})),n=wg(hg(W,i,e.key),_,w,C),o=W.slice();o.splice(t+1,0,yg),q(o),Z(n),oe("show")}else{var s=i.findIndex((function(t){return t.key===e.key})),a=wg(hg(i,W,e.key),_,w,C),l=i.slice();l.splice(s+1,0,yg),q(l),Z(a),oe("hide")}else W!==i&&(V(i),q(i))}),[r,i]),o.useEffect((function(){g||re()}),[g]);var se=y?K:i,ae={expandedKeys:r,selectedKeys:s,loadedKeys:d,loadingKeys:u,checkedKeys:l,halfCheckedKeys:h,dragOverNodeKey:b,dropPosition:v,keyEntities:m};return o.createElement(o.Fragment,null,x&&E&&o.createElement("span",{style:pg,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(E)),o.createElement("div",null,o.createElement("input",{style:pg,disabled:!1===M||p,tabIndex:!1!==M?k:null,onKeyDown:T,onFocus:R,onBlur:A,value:"",onChange:fg,"aria-label":"for screen reader"})),o.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},o.createElement("div",{className:"".concat(n,"-indent")},o.createElement("div",{ref:P,className:"".concat(n,"-indent-unit")}))),o.createElement(Kt,(0,f.A)({},H,{data:se,itemKey:Cg,height:w,fullHeight:!1,virtual:_,itemHeight:C,scrollWidth:S,prefixCls:"".concat(n,"-list"),ref:I,role:"tree",onVisibleChange:function(e){e.every((function(e){return Cg(e)!==gg}))&&re()}}),(function(e){var t=e.pos,n=Object.assign({},(lg(e.data),e.data)),i=e.title,r=e.key,s=e.isStart,a=e.isEnd,l=Pn(r,t);delete n.key,delete n.children;var c=Yn(l,ae);return o.createElement(ug,(0,f.A)({},n,c,{title:i,active:!!E&&r===E.key,pos:t,data:e.data,isStart:s,isEnd:a,motion:y,motionNodes:r===gg?Q:null,motionType:ne,onMotionStart:O,onMotionEnd:re,treeNodeRequiredProps:ae,onMouseMove:function(){L(null)}}))})))}));const Sg=_g;var Mg=function(e){(0,Ce.A)(n,e);var t=(0,_e.A)(n);function n(){var e;(0,ye.A)(this,n);for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return e=t.call.apply(t,[this].concat(r)),(0,x.A)((0,go.A)(e),"destroyed",!1),(0,x.A)((0,go.A)(e),"delayedDragEnterLogic",void 0),(0,x.A)((0,go.A)(e),"loadingRetryTimes",{}),(0,x.A)((0,go.A)(e),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Nn()}),(0,x.A)((0,go.A)(e),"dragStartMousePosition",null),(0,x.A)((0,go.A)(e),"dragNodeProps",null),(0,x.A)((0,go.A)(e),"currentMouseOverDroppableNodeKey",null),(0,x.A)((0,go.A)(e),"listRef",o.createRef()),(0,x.A)((0,go.A)(e),"onNodeDragStart",(function(t,n){var o=e.state,i=o.expandedKeys,r=o.keyEntities,s=e.props.onDragStart,a=n.eventKey;e.dragNodeProps=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var l=Kn(i,a);e.setState({draggingNodeKey:a,dragChildrenKeys:Jn(a,r),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(l),window.addEventListener("dragend",e.onWindowDragEnd),null==s||s({event:t,node:$n(n)})})),(0,x.A)((0,go.A)(e),"onNodeDragEnter",(function(t,n){var o=e.state,i=o.expandedKeys,r=o.keyEntities,s=o.dragChildrenKeys,a=o.flattenNodes,l=o.indent,c=e.props,d=c.onDragEnter,u=c.onExpand,h=c.allowDrop,m=c.direction,p=n.pos,f=n.eventKey;if(e.currentMouseOverDroppableNodeKey!==f&&(e.currentMouseOverDroppableNodeKey=f),e.dragNodeProps){var g=Zn(t,e.dragNodeProps,n,l,e.dragStartMousePosition,h,a,r,i,m),b=g.dropPosition,v=g.dropLevelOffset,y=g.dropTargetKey,w=g.dropContainerKey,C=g.dropTargetPos,_=g.dropAllowed,S=g.dragOverNodeKey;!s.includes(y)&&_?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),e.dragNodeProps.eventKey!==n.eventKey&&(t.persist(),e.delayedDragEnterLogic[p]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var o=(0,tt.A)(i),s=On(r,n.eventKey);s&&(s.children||[]).length&&(o=qn(i,n.eventKey)),e.props.hasOwnProperty("expandedKeys")||e.setExpandedKeys(o),null==u||u(o,{node:$n(n),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),e.dragNodeProps.eventKey!==y||0!==v?(e.setState({dragOverNodeKey:S,dropPosition:b,dropLevelOffset:v,dropTargetKey:y,dropContainerKey:w,dropTargetPos:C,dropAllowed:_}),null==d||d({event:t,node:$n(n),expandedKeys:i})):e.resetDragState()):e.resetDragState()}else e.resetDragState()})),(0,x.A)((0,go.A)(e),"onNodeDragOver",(function(t,n){var o=e.state,i=o.dragChildrenKeys,r=o.flattenNodes,s=o.keyEntities,a=o.expandedKeys,l=o.indent,c=e.props,d=c.onDragOver,u=c.allowDrop,h=c.direction;if(e.dragNodeProps){var m=Zn(t,e.dragNodeProps,n,l,e.dragStartMousePosition,u,r,s,a,h),p=m.dropPosition,f=m.dropLevelOffset,g=m.dropTargetKey,b=m.dropContainerKey,v=m.dropTargetPos,y=m.dropAllowed,w=m.dragOverNodeKey;!i.includes(g)&&y&&(e.dragNodeProps.eventKey===g&&0===f?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():p===e.state.dropPosition&&f===e.state.dropLevelOffset&&g===e.state.dropTargetKey&&b===e.state.dropContainerKey&&v===e.state.dropTargetPos&&y===e.state.dropAllowed&&w===e.state.dragOverNodeKey||e.setState({dropPosition:p,dropLevelOffset:f,dropTargetKey:g,dropContainerKey:b,dropTargetPos:v,dropAllowed:y,dragOverNodeKey:w}),null==d||d({event:t,node:$n(n)}))}})),(0,x.A)((0,go.A)(e),"onNodeDragLeave",(function(t,n){e.currentMouseOverDroppableNodeKey!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var o=e.props.onDragLeave;null==o||o({event:t,node:$n(n)})})),(0,x.A)((0,go.A)(e),"onWindowDragEnd",(function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)})),(0,x.A)((0,go.A)(e),"onNodeDragEnd",(function(t,n){var o=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==o||o({event:t,node:$n(n)}),e.dragNodeProps=null,window.removeEventListener("dragend",e.onWindowDragEnd)})),(0,x.A)((0,go.A)(e),"onNodeDrop",(function(t,n){var o,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.state,s=r.dragChildrenKeys,a=r.dropPosition,l=r.dropTargetKey,c=r.dropTargetPos;if(r.dropAllowed){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==l){var u=(0,E.A)((0,E.A)({},Yn(l,e.getTreeNodeRequiredProps())),{},{active:(null===(o=e.getActiveItem())||void 0===o?void 0:o.key)===l,data:On(e.state.keyEntities,l).node}),h=s.includes(l);(0,L.Ay)(!h,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var m=Xn(c),p={event:t,node:$n(u),dragNode:e.dragNodeProps?$n(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(s),dropToGap:0!==a,dropPosition:a+Number(m[m.length-1])};i||null==d||d(p),e.dragNodeProps=null}}})),(0,x.A)((0,go.A)(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),(0,x.A)((0,go.A)(e),"triggerExpandActionExpand",(function(t,n){var o=e.state,i=o.expandedKeys,r=o.flattenNodes,s=n.expanded,a=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var l=r.filter((function(e){return e.key===a}))[0],c=$n((0,E.A)((0,E.A)({},Yn(a,e.getTreeNodeRequiredProps())),{},{data:l.data}));e.setExpandedKeys(s?Kn(i,a):qn(i,a)),e.onNodeExpand(t,c)}})),(0,x.A)((0,go.A)(e),"onNodeClick",(function(t,n){var o=e.props,i=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==i||i(t,n)})),(0,x.A)((0,go.A)(e),"onNodeDoubleClick",(function(t,n){var o=e.props,i=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==i||i(t,n)})),(0,x.A)((0,go.A)(e),"onNodeSelect",(function(t,n){var o=e.state.selectedKeys,i=e.state,r=i.keyEntities,s=i.fieldNames,a=e.props,l=a.onSelect,c=a.multiple,d=n.selected,u=n[s.key],h=!d,m=(o=h?c?qn(o,u):[u]:Kn(o,u)).map((function(e){var t=On(r,e);return t?t.node:null})).filter(Boolean);e.setUncontrolledState({selectedKeys:o}),null==l||l(o,{event:"select",selected:h,node:n,selectedNodes:m,nativeEvent:t.nativeEvent})})),(0,x.A)((0,go.A)(e),"onNodeCheck",(function(t,n,o){var i,r=e.state,s=r.keyEntities,a=r.checkedKeys,l=r.halfCheckedKeys,c=e.props,d=c.checkStrictly,u=c.onCheck,h=n.key,m={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(d){var p=o?qn(a,h):Kn(a,h);i={checked:p,halfChecked:Kn(l,h)},m.checkedNodes=p.map((function(e){return On(s,e)})).filter(Boolean).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:p})}else{var f=ro([].concat((0,tt.A)(a),[h]),!0,s),g=f.checkedKeys,b=f.halfCheckedKeys;if(!o){var v=new Set(g);v.delete(h);var y=ro(Array.from(v),{checked:!1,halfCheckedKeys:b},s);g=y.checkedKeys,b=y.halfCheckedKeys}i=g,m.checkedNodes=[],m.checkedNodesPositions=[],m.halfCheckedKeys=b,g.forEach((function(e){var t=On(s,e);if(t){var n=t.node,o=t.pos;m.checkedNodes.push(n),m.checkedNodesPositions.push({node:n,pos:o})}})),e.setUncontrolledState({checkedKeys:g},!1,{halfCheckedKeys:b})}null==u||u(i,m)})),(0,x.A)((0,go.A)(e),"onNodeLoad",(function(t){var n,o=t.key,i=On(e.state.keyEntities,o);if(null==i||null===(n=i.children)||void 0===n||!n.length){var r=new Promise((function(n,i){e.setState((function(r){var s=r.loadedKeys,a=void 0===s?[]:s,l=r.loadingKeys,c=void 0===l?[]:l,d=e.props,u=d.loadData,h=d.onLoad;return!u||a.includes(o)||c.includes(o)?null:(u(t).then((function(){var i=qn(e.state.loadedKeys,o);null==h||h(i,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:i}),e.setState((function(e){return{loadingKeys:Kn(e.loadingKeys,o)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:Kn(e.loadingKeys,o)}})),e.loadingRetryTimes[o]=(e.loadingRetryTimes[o]||0)+1,e.loadingRetryTimes[o]>=10){var r=e.state.loadedKeys;(0,L.Ay)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:qn(r,o)}),n()}i(t)})),{loadingKeys:qn(c,o)})}))}));return r.catch((function(){})),r}})),(0,x.A)((0,go.A)(e),"onNodeMouseEnter",(function(t,n){var o=e.props.onMouseEnter;null==o||o({event:t,node:n})})),(0,x.A)((0,go.A)(e),"onNodeMouseLeave",(function(t,n){var o=e.props.onMouseLeave;null==o||o({event:t,node:n})})),(0,x.A)((0,go.A)(e),"onNodeContextMenu",(function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))})),(0,x.A)((0,go.A)(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];null==t||t.apply(void 0,o)})),(0,x.A)((0,go.A)(e),"onBlur",(function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];null==t||t.apply(void 0,o)})),(0,x.A)((0,go.A)(e),"getTreeNodeRequiredProps",(function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}})),(0,x.A)((0,go.A)(e),"setExpandedKeys",(function(t){var n=e.state,o=zn(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:o},!0)})),(0,x.A)((0,go.A)(e),"onNodeExpand",(function(t,n){var o=e.state.expandedKeys,i=e.state,r=i.listChanging,s=i.fieldNames,a=e.props,l=a.onExpand,c=a.loadData,d=n.expanded,u=n[s.key];if(!r){var h=o.includes(u),m=!d;if((0,L.Ay)(d&&h||!d&&!h,"Expand state not sync with index check"),o=m?qn(o,u):Kn(o,u),e.setExpandedKeys(o),null==l||l(o,{node:n,expanded:m,nativeEvent:t.nativeEvent}),m&&c){var p=e.onNodeLoad(n);p&&p.then((function(){var t=zn(e.state.treeData,o,s);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=Kn(e.state.expandedKeys,u);e.setExpandedKeys(t)}))}}})),(0,x.A)((0,go.A)(e),"onListChangeStart",(function(){e.setUncontrolledState({listChanging:!0})})),(0,x.A)((0,go.A)(e),"onListChangeEnd",(function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))})),(0,x.A)((0,go.A)(e),"onActiveChange",(function(t){var n=e.state.activeKey,o=e.props,i=o.onActiveChange,r=o.itemScrollOffset,s=void 0===r?0:r;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:s}),null==i||i(t))})),(0,x.A)((0,go.A)(e),"getActiveItem",(function(){var t=e.state,n=t.activeKey,o=t.flattenNodes;return null===n?null:o.find((function(e){return e.key===n}))||null})),(0,x.A)((0,go.A)(e),"offsetActiveKey",(function(t){var n=e.state,o=n.flattenNodes,i=n.activeKey,r=o.findIndex((function(e){return e.key===i}));-1===r&&t<0&&(r=o.length);var s=o[r=(r+t+o.length)%o.length];if(s){var a=s.key;e.onActiveChange(a)}else e.onActiveChange(null)})),(0,x.A)((0,go.A)(e),"onKeyDown",(function(t){var n=e.state,o=n.activeKey,i=n.expandedKeys,r=n.checkedKeys,s=n.fieldNames,a=e.props,l=a.onKeyDown,c=a.checkable,d=a.selectable;switch(t.which){case Ps.UP:e.offsetActiveKey(-1),t.preventDefault();break;case Ps.DOWN:e.offsetActiveKey(1),t.preventDefault()}var u=e.getActiveItem();if(u&&u.data){var h=e.getTreeNodeRequiredProps(),m=!1===u.data.isLeaf||!!(u.data[s.children]||[]).length,p=$n((0,E.A)((0,E.A)({},Yn(o,h)),{},{data:u.data,active:!0}));switch(t.which){case Ps.LEFT:m&&i.includes(o)?e.onNodeExpand({},p):u.parent&&e.onActiveChange(u.parent.key),t.preventDefault();break;case Ps.RIGHT:m&&!i.includes(o)?e.onNodeExpand({},p):u.children&&u.children.length&&e.onActiveChange(u.children[0].key),t.preventDefault();break;case Ps.ENTER:case Ps.SPACE:!c||p.disabled||!1===p.checkable||p.disableCheckbox?c||!d||p.disabled||!1===p.selectable||e.onNodeSelect({},p):e.onNodeCheck({},p,!r.includes(o))}}null==l||l(t)})),(0,x.A)((0,go.A)(e),"setUncontrolledState",(function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var i=!1,r=!0,s={};Object.keys(t).forEach((function(n){e.props.hasOwnProperty(n)?r=!1:(i=!0,s[n]=t[n])})),!i||n&&!r||e.setState((0,E.A)((0,E.A)({},s),o))}})),(0,x.A)((0,go.A)(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return(0,we.A)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,o=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:o}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,i=t.flattenNodes,r=t.keyEntities,s=t.draggingNodeKey,a=t.activeKey,l=t.dropLevelOffset,c=t.dropContainerKey,d=t.dropTargetKey,u=t.dropPosition,h=t.dragOverNodeKey,m=t.indent,p=this.props,g=p.prefixCls,b=p.className,v=p.style,y=p.showLine,w=p.focusable,C=p.tabIndex,_=void 0===C?0:C,S=p.selectable,E=p.showIcon,k=p.icon,R=p.switcherIcon,A=p.draggable,L=p.checkable,O=p.checkStrictly,D=p.disabled,H=p.motion,I=p.loadData,P=p.filterTreeNode,N=p.height,F=p.itemHeight,z=p.scrollWidth,j=p.virtual,Y=p.titleRender,$=p.dropIndicatorRender,B=p.onContextMenu,W=p.onScroll,V=p.direction,U=p.rootClassName,G=p.rootStyle,K=Fe(this.props,{aria:!0,data:!0});A&&(e="object"===(0,M.A)(A)?A:"function"==typeof A?{nodeDraggable:A}:{});var q={prefixCls:g,selectable:S,showIcon:E,icon:k,switcherIcon:R,draggable:e,draggingNodeKey:s,checkable:L,checkStrictly:O,disabled:D,keyEntities:r,dropLevelOffset:l,dropContainerKey:c,dropTargetKey:d,dropPosition:u,dragOverNodeKey:h,indent:m,direction:V,dropIndicatorRender:$,loadData:I,filterTreeNode:P,titleRender:Y,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return o.createElement(Tn.Provider,{value:q},o.createElement("div",{className:T()(g,b,U,(0,x.A)((0,x.A)((0,x.A)({},"".concat(g,"-show-line"),y),"".concat(g,"-focused"),n),"".concat(g,"-active-focused"),null!==a)),style:G},o.createElement(Sg,(0,f.A)({ref:this.listRef,prefixCls:g,style:v,data:i,disabled:D,selectable:S,checkable:!!L,motion:H,dragging:null!==s,height:N,itemHeight:F,virtual:j,focusable:w,focused:n,tabIndex:_,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:W,scrollWidth:z},this.getTreeNodeRequiredProps(),K))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,i={prevProps:e};function r(t){return!o&&e.hasOwnProperty(t)||o&&o[t]!==e[t]}var s=t.fieldNames;if(r("fieldNames")&&(s=Nn(e.fieldNames),i.fieldNames=s),r("treeData")?n=e.treeData:r("children")&&((0,L.Ay)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Fn(e.children)),n){i.treeData=n;var a=jn(n,{fieldNames:s});i.keyEntities=(0,E.A)((0,x.A)({},gg,vg),a.keyEntities)}var l,c=i.keyEntities||t.keyEntities;if(r("expandedKeys")||o&&r("autoExpandParent"))i.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?no(e.expandedKeys,c):e.expandedKeys;else if(!o&&e.defaultExpandAll){var d=(0,E.A)({},c);delete d[gg];var u=[];Object.keys(d).forEach((function(e){var t=d[e];t.children&&t.children.length&&u.push(t.key)})),i.expandedKeys=u}else!o&&e.defaultExpandedKeys&&(i.expandedKeys=e.autoExpandParent||e.defaultExpandParent?no(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,n||i.expandedKeys){var h=zn(n||t.treeData,i.expandedKeys||t.expandedKeys,s);i.flattenNodes=h}if(e.selectable&&(r("selectedKeys")?i.selectedKeys=eo(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(i.selectedKeys=eo(e.defaultSelectedKeys,e))),e.checkable&&(r("checkedKeys")?l=to(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?l=to(e.defaultCheckedKeys)||{}:n&&(l=to(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),l)){var m=l,p=m.checkedKeys,f=void 0===p?[]:p,g=m.halfCheckedKeys,b=void 0===g?[]:g;if(!e.checkStrictly){var v=ro(f,!0,c);f=v.checkedKeys,b=v.halfCheckedKeys}i.checkedKeys=f,i.halfCheckedKeys=b}return r("loadedKeys")&&(i.loadedKeys=e.loadedKeys),i}}]),n}(o.Component);(0,x.A)(Mg,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,i=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:r.top=0,r.left=-n*i;break;case 1:r.bottom=0,r.left=-n*i;break;case 0:r.bottom=0,r.left=i}return o.createElement("div",{style:r})},allowDrop:function(){return!0},expandAction:!1}),(0,x.A)(Mg,"TreeNode",Gn);const Eg=Mg,xg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var kg=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:xg}))};const Tg=o.forwardRef(kg),Rg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var Ag=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:Rg}))};const Lg=o.forwardRef(Ag),Og={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var Dg=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:Og}))};const Hg=o.forwardRef(Dg),Ig={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var Pg=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:Ig}))};const Ng=o.forwardRef(Pg),Fg=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:o,motionDurationMid:i,borderRadius:r,controlItemBgHover:s})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:r},"&:hover:before":{background:s}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{[`${e}-switcher, ${e}-draggable-icon`]:{color:o},[`${e}-node-content-wrapper`]:{color:o,background:"transparent","&:before, &:hover:before":{background:n}}}}}),zg=new fo.Mo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),jg=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Yg=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,fo.zA)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),$g=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:i,titleHeight:r,indentSize:s,nodeSelectedBg:a,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},(0,Do.dF)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,Do.jk)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:zg,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[o]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:(0,fo.zA)(r),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${o}-disabled${o}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${o}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:r,textAlign:"center",visibility:"visible",color:c},[`&${o}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:s}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(r).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},jg(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:r,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:r,height:r,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(r).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(r).div(2).equal()).mul(.8).equal(),height:t.calc(r).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:r,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Yg(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:r,height:r,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${o}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(r).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,fo.zA)(t.calc(r).div(2).equal())} !important`}})}},Bg=(e,t,n=!0)=>{const o=`.${e}`,i=`${o}-treenode`,r=t.calc(t.paddingXS).div(2).equal(),s=ko(t,{treeCls:o,treeNodeCls:i,treeNodePadding:r});return[$g(e,s),n&&Fg(s)].filter(Boolean)},Wg=Io("Tree",((e,{prefixCls:t})=>[{[e.componentCls]:jr(`${t}-checkbox`,e)},Bg(t,e),Xc(e)]),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:o}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:o,nodeSelectedColor:e.colorText}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})})),Vg=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:i,indent:r,direction:s="ltr"}=e,a="ltr"===s?"left":"right",l="ltr"===s?"right":"left",c={[a]:-n*r+4,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[a]=r+4}return o.createElement("div",{style:c,className:`${i}-drop-indicator`})},Ug={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var Gg=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:Ug}))};const Kg=o.forwardRef(Gg),qg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var Xg=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:qg}))};const Jg=o.forwardRef(Xg),Qg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var Zg=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:Qg}))};const eb=o.forwardRef(Zg),tb=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:i,showLine:r,switcherLoadingIcon:s}=e,{isLeaf:a,expanded:l,loading:c}=i;if(c)return o.isValidElement(s)?s:o.createElement(Ud,{className:`${t}-switcher-loading-icon`});let d;if(r&&"object"==typeof r&&(d=r.showLeafIcon),a){if(!r)return null;if("boolean"!=typeof d&&d){const e="function"==typeof d?d(i):d,n=`${t}-switcher-line-custom-icon`;return o.isValidElement(e)?po(e,{className:T()(e.props.className||"",n)}):e}return d?o.createElement(Tg,{className:`${t}-switcher-line-icon`}):o.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,h="function"==typeof n?n(i):n;return o.isValidElement(h)?po(h,{className:T()(h.props.className||"",u)}):void 0!==h?h:r?l?o.createElement(Jg,{className:`${t}-switcher-line-icon`}):o.createElement(eb,{className:`${t}-switcher-line-icon`}):o.createElement(Kg,{className:u})},nb=o.forwardRef(((e,t)=>{var n;const{getPrefixCls:i,direction:r,virtual:s,tree:a}=o.useContext(ho.QO),{prefixCls:l,className:c,showIcon:d=!1,showLine:u,switcherIcon:h,switcherLoadingIcon:m,blockNode:p=!1,children:f,checkable:g=!1,selectable:b=!0,draggable:v,motion:y,style:w}=e,C=i("tree",l),_=i(),S=null!=y?y:Object.assign(Object.assign({},tc(_)),{motionAppear:!1}),M=Object.assign(Object.assign({},e),{checkable:g,selectable:b,showIcon:d,motion:S,blockNode:p,showLine:Boolean(u),dropIndicatorRender:Vg}),[E,x,k]=Wg(C),[,R]=(0,Ho.Ay)(),A=R.paddingXS/2+((null===(n=R.Tree)||void 0===n?void 0:n.titleHeight)||R.controlHeightSM),L=o.useMemo((()=>{if(!v)return!1;let e={};switch(typeof v){case"function":e.nodeDraggable=v;break;case"object":e=Object.assign({},v)}return!1!==e.icon&&(e.icon=e.icon||o.createElement(Ng,null)),e}),[v]);return E(o.createElement(Eg,Object.assign({itemHeight:A,ref:t,virtual:s},M,{style:Object.assign(Object.assign({},null==a?void 0:a.style),w),prefixCls:C,className:T()({[`${C}-icon-hide`]:!d,[`${C}-block-node`]:p,[`${C}-unselectable`]:!b,[`${C}-rtl`]:"rtl"===r},null==a?void 0:a.className,c,x,k),direction:r,checkable:g?o.createElement("span",{className:`${C}-checkbox-inner`}):g,selectable:b,switcherIcon:e=>o.createElement(tb,{prefixCls:C,switcherIcon:h,switcherLoadingIcon:m,treeNodeProps:e,showLine:u}),draggable:L}),f))})),ob=nb;function ib(e,t,n){const{key:o,children:i}=n;e.forEach((function(e){const r=e[o],s=e[i];!1!==t(r,e)&&ib(s||[],t,n)}))}function rb(e,t,n){const o=(0,tt.A)(t),i=[];return ib(e,((e,t)=>{const n=o.indexOf(e);return-1!==n&&(i.push(t),o.splice(n,1)),!!o.length}),Nn(n)),i}var sb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};function ab(e){const{isLeaf:t,expanded:n}=e;return t?o.createElement(Tg,null):n?o.createElement(Lg,null):o.createElement(Hg,null)}function lb({treeData:e,children:t}){return e||Fn(t)}const cb=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:i,defaultExpandedKeys:r}=e,s=sb(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=o.useRef(null),l=o.useRef(null),[c,d]=o.useState(s.selectedKeys||s.defaultSelectedKeys||[]),[u,h]=o.useState((()=>(()=>{const{keyEntities:e}=jn(lb(s));let t;return t=n?Object.keys(e):i?no(s.expandedKeys||r||[],e):s.expandedKeys||r||[],t})()));o.useEffect((()=>{"selectedKeys"in s&&d(s.selectedKeys)}),[s.selectedKeys]),o.useEffect((()=>{"expandedKeys"in s&&h(s.expandedKeys)}),[s.expandedKeys]);const{getPrefixCls:m,direction:p}=o.useContext(ho.QO),{prefixCls:f,className:g,showIcon:b=!0,expandAction:v="click"}=s,y=sb(s,["prefixCls","className","showIcon","expandAction"]),w=m("tree",f),C=T()(`${w}-directory`,{[`${w}-directory-rtl`]:"rtl"===p},g);return o.createElement(ob,Object.assign({icon:ab,ref:t,blockNode:!0},y,{showIcon:b,expandAction:v,prefixCls:w,className:C,expandedKeys:u,selectedKeys:c,onSelect:(e,t)=>{var n;const{multiple:o,fieldNames:i}=s,{node:r,nativeEvent:c}=t,{key:h=""}=r,m=lb(s),p=Object.assign(Object.assign({},t),{selected:!0}),f=(null==c?void 0:c.ctrlKey)||(null==c?void 0:c.metaKey),g=null==c?void 0:c.shiftKey;let b;o&&f?(b=e,a.current=h,l.current=b,p.selectedNodes=rb(m,b,i)):o&&g?(b=Array.from(new Set([].concat((0,tt.A)(l.current||[]),(0,tt.A)(function({treeData:e,expandedKeys:t,startKey:n,endKey:o,fieldNames:i}){const r=[];let s=0;return n&&n===o?[n]:n&&o?(ib(e,(e=>{if(2===s)return!1;if(function(e){return e===n||e===o}(e)){if(r.push(e),0===s)s=1;else if(1===s)return s=2,!1}else 1===s&&r.push(e);return t.includes(e)}),Nn(i)),r):[]}({treeData:m,expandedKeys:u,startKey:h,endKey:a.current,fieldNames:i}))))),p.selectedNodes=rb(m,b,i)):(b=[h],a.current=h,l.current=b,p.selectedNodes=rb(m,b,i)),null===(n=s.onSelect)||void 0===n||n.call(s,b,p),"selectedKeys"in s||d(b)},onExpand:(e,t)=>{var n;return"expandedKeys"in s||h(e),null===(n=s.onExpand)||void 0===n?void 0:n.call(s,e,t)}}))},db=o.forwardRef(cb),ub=ob;ub.DirectoryTree=db,ub.TreeNode=Gn;const hb=ub;function mb(e,t,n){var o=t.cloneNode(!0),i=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function pb(e,t,n,o){if(n){var i=t;"click"!==t.type?"file"===e.type||void 0===o?n(i):n(i=mb(t,e,o)):n(i=mb(t,e,""))}}var fb=o.forwardRef((function(e,t){var n,i,r,s=e.inputElement,a=e.children,l=e.prefixCls,c=e.prefix,d=e.suffix,u=e.addonBefore,h=e.addonAfter,m=e.className,p=e.style,g=e.disabled,b=e.readOnly,v=e.focused,y=e.triggerFocus,w=e.allowClear,C=e.value,_=e.handleReset,S=e.hidden,k=e.classes,R=e.classNames,A=e.dataAttrs,L=e.styles,O=e.components,D=e.onClear,H=null!=a?a:s,I=(null==O?void 0:O.affixWrapper)||"span",P=(null==O?void 0:O.groupWrapper)||"span",N=(null==O?void 0:O.wrapper)||"span",F=(null==O?void 0:O.groupAddon)||"span",z=(0,o.useRef)(null),j=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),Y=(0,o.cloneElement)(H,{value:C,className:T()(null===(n=H.props)||void 0===n?void 0:n.className,!j&&(null==R?void 0:R.variant))||null}),$=(0,o.useRef)(null);if(o.useImperativeHandle(t,(function(){return{nativeElement:$.current||z.current}})),j){var B=null;if(w){var W=!g&&!b&&C,V="".concat(l,"-clear-icon"),U="object"===(0,M.A)(w)&&null!=w&&w.clearIcon?w.clearIcon:"✖";B=o.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==_||_(e),null==D||D()},onMouseDown:function(e){return e.preventDefault()},className:T()(V,(0,x.A)((0,x.A)({},"".concat(V,"-hidden"),!W),"".concat(V,"-has-suffix"),!!d))},U)}var G="".concat(l,"-affix-wrapper"),K=T()(G,(0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)({},"".concat(l,"-disabled"),g),"".concat(G,"-disabled"),g),"".concat(G,"-focused"),v),"".concat(G,"-readonly"),b),"".concat(G,"-input-with-clear-btn"),d&&w&&C),null==k?void 0:k.affixWrapper,null==R?void 0:R.affixWrapper,null==R?void 0:R.variant),q=(d||w)&&o.createElement("span",{className:T()("".concat(l,"-suffix"),null==R?void 0:R.suffix),style:null==L?void 0:L.suffix},B,d);Y=o.createElement(I,(0,f.A)({className:K,style:null==L?void 0:L.affixWrapper,onClick:function(e){var t;null!==(t=z.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==A?void 0:A.affixWrapper,{ref:z}),c&&o.createElement("span",{className:T()("".concat(l,"-prefix"),null==R?void 0:R.prefix),style:null==L?void 0:L.prefix},c),Y,q)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var X="".concat(l,"-group"),J="".concat(X,"-addon"),Q="".concat(X,"-wrapper"),Z=T()("".concat(l,"-wrapper"),X,null==k?void 0:k.wrapper,null==R?void 0:R.wrapper),ee=T()(Q,(0,x.A)({},"".concat(Q,"-disabled"),g),null==k?void 0:k.group,null==R?void 0:R.groupWrapper);Y=o.createElement(P,{className:ee,ref:$},o.createElement(N,{className:Z},u&&o.createElement(F,{className:J},u),Y,h&&o.createElement(F,{className:J},h)))}return o.cloneElement(Y,{className:T()(null===(i=Y.props)||void 0===i?void 0:i.className,m)||null,style:(0,E.A)((0,E.A)({},null===(r=Y.props)||void 0===r?void 0:r.style),p),hidden:S})}));const gb=fb;var bb=["show"],vb=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],yb=(0,o.forwardRef)((function(e,t){var n=e.autoComplete,i=e.onChange,r=e.onFocus,s=e.onBlur,l=e.onPressEnter,c=e.onKeyDown,d=e.onKeyUp,u=e.prefixCls,h=void 0===u?"rc-input":u,m=e.disabled,p=e.htmlSize,g=e.className,b=e.maxLength,v=e.suffix,y=e.showCount,w=e.count,C=e.type,_=void 0===C?"text":C,S=e.classes,k=e.classNames,R=e.styles,A=e.onCompositionStart,L=e.onCompositionEnd,O=(0,j.A)(e,vb),D=(0,o.useState)(!1),H=(0,a.A)(D,2),I=H[0],P=H[1],N=(0,o.useRef)(!1),F=(0,o.useRef)(!1),z=(0,o.useRef)(null),Y=(0,o.useRef)(null),$=function(e){z.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}(z.current,e)},B=(0,so.A)(e.defaultValue,{value:e.value}),W=(0,a.A)(B,2),V=W[0],U=W[1],G=null==V?"":String(V),K=(0,o.useState)(null),q=(0,a.A)(K,2),X=q[0],J=q[1],Q=function(e,t){return o.useMemo((function(){var n={};t&&(n.show="object"===(0,M.A)(t)&&t.formatter?t.formatter:!!t);var o=n=(0,E.A)((0,E.A)({},n),e),i=o.show,r=(0,j.A)(o,bb);return(0,E.A)((0,E.A)({},r),{},{show:!!i,showFormatter:"function"==typeof i?i:void 0,strategy:r.strategy||function(e){return e.length}})}),[e,t])}(w,y),Z=Q.max||b,ee=Q.strategy(G),te=!!Z&&ee>Z;(0,o.useImperativeHandle)(t,(function(){var e;return{focus:$,blur:function(){var e;null===(e=z.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=z.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=z.current)||void 0===e||e.select()},input:z.current,nativeElement:(null===(e=Y.current)||void 0===e?void 0:e.nativeElement)||z.current}})),(0,o.useEffect)((function(){F.current&&(F.current=!1),P((function(e){return(!e||!m)&&e}))}),[m]);var ne=function(e,t,n){var o,r,s=t;if(!N.current&&Q.exceedFormatter&&Q.max&&Q.strategy(t)>Q.max)t!==(s=Q.exceedFormatter(t,{max:Q.max}))&&J([(null===(o=z.current)||void 0===o?void 0:o.selectionStart)||0,(null===(r=z.current)||void 0===r?void 0:r.selectionEnd)||0]);else if("compositionEnd"===n.source)return;U(s),z.current&&pb(z.current,e,i,s)};(0,o.useEffect)((function(){var e;X&&(null===(e=z.current)||void 0===e||e.setSelectionRange.apply(e,(0,tt.A)(X)))}),[X]);var oe,ie=te&&"".concat(h,"-out-of-range");return o.createElement(gb,(0,f.A)({},O,{prefixCls:h,className:T()(g,ie),handleReset:function(e){U(""),$(),z.current&&pb(z.current,e,i)},value:G,focused:I,triggerFocus:$,suffix:function(){var e=Number(Z)>0;if(v||Q.show){var t=Q.showFormatter?Q.showFormatter({value:G,count:ee,maxLength:Z}):"".concat(ee).concat(e?" / ".concat(Z):"");return o.createElement(o.Fragment,null,Q.show&&o.createElement("span",{className:T()("".concat(h,"-show-count-suffix"),(0,x.A)({},"".concat(h,"-show-count-has-suffix"),!!v),null==k?void 0:k.count),style:(0,E.A)({},null==R?void 0:R.count)},t),v)}return null}(),disabled:m,classes:S,classNames:k,styles:R,ref:Y}),(oe=Dn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),o.createElement("input",(0,f.A)({autoComplete:n},oe,{onChange:function(e){ne(e,e.target.value,{source:"change"})},onFocus:function(e){P(!0),null==r||r(e)},onBlur:function(e){F.current&&(F.current=!1),P(!1),null==s||s(e)},onKeyDown:function(e){l&&"Enter"===e.key&&!F.current&&(F.current=!0,l(e)),null==c||c(e)},onKeyUp:function(e){"Enter"===e.key&&(F.current=!1),null==d||d(e)},className:T()(h,(0,x.A)({},"".concat(h,"-disabled"),m),null==k?void 0:k.input),style:null==R?void 0:R.input,ref:z,size:p,type:_,onCompositionStart:function(e){N.current=!0,null==A||A(e)},onCompositionEnd:function(e){N.current=!1,ne(e,e.currentTarget.value,{source:"compositionEnd"}),null==L||L(e)}}))))}));const wb=yb;const Cb=(0,o.forwardRef)(((e,t)=>{const{prefixCls:n,bordered:i=!0,status:r,size:s,disabled:a,onBlur:l,onFocus:c,suffix:d,allowClear:u,addonAfter:h,addonBefore:m,className:p,style:f,styles:b,rootClassName:v,onChange:y,classNames:w,variant:C}=e,_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:M,allowClear:E,autoComplete:x,className:k,style:R,classNames:A,styles:L}=(0,ho.TP)("input"),O=S("input",n),D=(0,o.useRef)(null),H=vi(O),[I,P,N]=xf(O,v),[F]=kf(O,H),{compactSize:z,compactItemClassnames:j}=wc(O,M),Y=mc((e=>{var t;return null!==(t=null!=s?s:z)&&void 0!==t?t:e})),$=o.useContext(bi.A),B=null!=a?a:$,{status:W,hasFeedback:V,feedbackIcon:U}=(0,o.useContext)(Ir),G=ap(W,r),K=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!V;(0,o.useRef)(K);const q=function(e){const t=(0,o.useRef)([]),n=()=>{t.current.push(setTimeout((()=>{var t,n,o,i;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(i=e.current)||void 0===i||i.input.removeAttribute("value"))})))};return(0,o.useEffect)((()=>(n(),()=>t.current.forEach((e=>{e&&clearTimeout(e)})))),[]),n}(D),X=(V||d)&&o.createElement(o.Fragment,null,d,V&&U),J=(e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:o.createElement(zp,null)}),t})(null!=u?u:E),[Q,Z]=lp("input",C,i);return I(F(o.createElement(wb,Object.assign({ref:(0,g.K4)(t,D),prefixCls:O,autoComplete:x},_,{disabled:B,onBlur:e=>{q(),null==l||l(e)},onFocus:e=>{q(),null==c||c(e)},style:Object.assign(Object.assign({},R),f),styles:Object.assign(Object.assign({},L),b),suffix:X,allowClear:J,className:T()(p,v,N,H,j,k),onChange:e=>{q(),null==y||y(e)},addonBefore:m&&o.createElement(Sc,{form:!0,space:!0},m),addonAfter:h&&o.createElement(Sc,{form:!0,space:!0},h),classNames:Object.assign(Object.assign(Object.assign({},w),A),{input:T()({[`${O}-sm`]:"small"===Y,[`${O}-lg`]:"large"===Y,[`${O}-rtl`]:"rtl"===M},null==w?void 0:w.input,A.input,P),variant:T()({[`${O}-${Q}`]:Z},sp(O,G)),affixWrapper:T()({[`${O}-affix-wrapper-sm`]:"small"===Y,[`${O}-affix-wrapper-lg`]:"large"===Y,[`${O}-affix-wrapper-rtl`]:"rtl"===M},P),wrapper:T()({[`${O}-group-rtl`]:"rtl"===M},P),groupWrapper:T()({[`${O}-group-wrapper-sm`]:"small"===Y,[`${O}-group-wrapper-lg`]:"large"===Y,[`${O}-group-wrapper-rtl`]:"rtl"===M,[`${O}-group-wrapper-${Q}`]:Z},sp(`${O}-group-wrapper`,G,V),P)})}))))})),_b=Cb,Sb=e=>{const{value:t,filterSearch:n,tablePrefixCls:i,locale:r,onChange:s}=e;return n?o.createElement("div",{className:`${i}-filter-dropdown-search`},o.createElement(_b,{prefix:o.createElement(Vp,null),placeholder:r.filterSearchPlaceholder,onChange:s,value:t,htmlSize:1,className:`${i}-filter-dropdown-search-input`})):null},Mb=e=>{const{keyCode:t}=e;t===Ps.ENTER&&e.stopPropagation()},Eb=o.forwardRef(((e,t)=>o.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:Mb,ref:t},e.children)));function xb(e){let t=[];return(e||[]).forEach((({value:e,children:n})=>{t.push(e),n&&(t=[].concat((0,tt.A)(t),(0,tt.A)(xb(n))))})),t}function kb(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function Tb({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:i,searchValue:r,filterSearch:s}){return e.map(((e,a)=>{const l=String(e.value);if(e.children)return{key:l||a,label:e.text,popupClassName:`${t}-dropdown-submenu`,children:Tb({filters:e.children,prefixCls:t,filteredKeys:n,filterMultiple:i,searchValue:r,filterSearch:s})};const c=i?Kr:_h,d={key:void 0!==e.value?l:a,label:o.createElement(o.Fragment,null,o.createElement(c,{checked:n.includes(l)}),o.createElement("span",null,e.text))};return r.trim()?"function"==typeof s?s(r,e)?d:null:kb(r,e.text)?d:null:d}))}function Rb(e){return e||[]}const Ab=e=>{var t,n,i,r;const{tablePrefixCls:s,prefixCls:a,column:l,dropdownPrefixCls:c,columnKey:u,filterOnClose:h,filterMultiple:m,filterMode:p="menu",filterSearch:f=!1,filterState:g,triggerFilter:b,locale:v,children:y,getPopupContainer:w,rootClassName:C}=e,{filterResetToDefaultFilteredValue:_,defaultFilteredValue:S,filterDropdownProps:M={},filterDropdownOpen:E,filterDropdownVisible:x,onFilterDropdownVisibleChange:k,onFilterDropdownOpenChange:R}=l,[A,L]=o.useState(!1),O=!(!g||!(null===(t=g.filteredKeys)||void 0===t?void 0:t.length)&&!g.forceFiltered),D=e=>{var t;L(e),null===(t=M.onOpenChange)||void 0===t||t.call(M,e),null==R||R(e),null==k||k(e)},H=null!==(r=null!==(i=null!==(n=M.open)&&void 0!==n?n:E)&&void 0!==i?i:x)&&void 0!==r?r:A,I=null==g?void 0:g.filteredKeys,[P,N]=function(e){const t=o.useRef(e),n=$h();return[()=>t.current,e=>{t.current=e,n()}]}(Rb(I)),F=({selectedKeys:e})=>{N(e)},z=(e,{node:t,checked:n})=>{F(m?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};o.useEffect((()=>{A&&F({selectedKeys:Rb(I)})}),[I]);const[j,Y]=o.useState([]),$=e=>{Y(e)},[B,W]=o.useState(""),V=e=>{const{value:t}=e.target;W(t)};o.useEffect((()=>{A||W("")}),[A]);const U=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||g&&g.filteredKeys?(0,d.A)(t,null==g?void 0:g.filteredKeys,!0)?null:void b({column:l,key:u,filteredKeys:t}):null},G=()=>{D(!1),U(P())},K=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&U([]),t&&D(!1),W(""),N(_?(S||[]).map((e=>String(e))):[])},q=T()({[`${c}-menu-without-submenu`]:(X=l.filters||[],!X.some((({children:e})=>e)))});var X;const J=e=>{if(e.target.checked){const e=xb(null==l?void 0:l.filters).map((e=>String(e)));N(e)}else N([])},Q=({filters:e})=>(e||[]).map(((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(o.children=Q({filters:e.children})),o})),Z=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Z(e))))||[]})};let ee;const{direction:te,renderEmpty:ne}=o.useContext(ho.QO);if("function"==typeof l.filterDropdown)ee=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>F({selectedKeys:e}),selectedKeys:P(),confirm:({closeDropdown:e}={closeDropdown:!0})=>{e&&D(!1),U(P())},clearFilters:K,filters:l.filters,visible:H,close:()=>{D(!1)}});else if(l.filterDropdown)ee=l.filterDropdown;else{const e=P()||[],t=()=>{var t,n;const i=null!==(t=null==ne?void 0:ne("Table.filter"))&&void 0!==t?t:o.createElement(jh,{image:jh.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(l.filters||[]).length)return i;if("tree"===p)return o.createElement(o.Fragment,null,o.createElement(Sb,{filterSearch:f,value:B,onChange:V,tablePrefixCls:s,locale:v}),o.createElement("div",{className:`${s}-filter-dropdown-tree`},m?o.createElement(Kr,{checked:e.length===xb(l.filters).length,indeterminate:e.length>0&&e.length<xb(l.filters).length,className:`${s}-filter-dropdown-checkall`,onChange:J},null!==(n=null==v?void 0:v.filterCheckall)&&void 0!==n?n:null==v?void 0:v.filterCheckAll):null,o.createElement(hb,{checkable:!0,selectable:!1,blockNode:!0,multiple:m,checkStrictly:!m,className:`${c}-menu`,onCheck:z,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:Q({filters:l.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:B.trim()?e=>"function"==typeof f?f(B,Z(e)):kb(B,e.title):void 0})));const r=Tb({filters:l.filters||[],filterSearch:f,prefixCls:a,filteredKeys:P(),filterMultiple:m,searchValue:B}),d=r.every((e=>null===e));return o.createElement(o.Fragment,null,o.createElement(Sb,{filterSearch:f,value:B,onChange:V,tablePrefixCls:s,locale:v}),d?i:o.createElement(Md,{selectable:!0,multiple:m,prefixCls:`${c}-menu`,className:q,onSelect:F,onDeselect:F,selectedKeys:e,getPopupContainer:w,openKeys:j,onOpenChange:$,items:r}))},n=()=>_?(0,d.A)((S||[]).map((e=>String(e))),e,!0):0===e.length;ee=o.createElement(o.Fragment,null,t(),o.createElement("div",{className:`${a}-dropdown-btns`},o.createElement(Gu,{type:"link",size:"small",disabled:n(),onClick:()=>K()},v.filterReset),o.createElement(Gu,{type:"primary",size:"small",onClick:G},v.filterConfirm)))}l.filterDropdown&&(ee=o.createElement(Gc,{selectable:void 0},ee)),ee=o.createElement(Eb,{className:`${a}-dropdown`},ee);const oe=ag({trigger:["click"],placement:"rtl"===te?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"==typeof l.filterIcon?l.filterIcon(O):l.filterIcon?l.filterIcon:o.createElement(sg,null),o.createElement("span",{role:"button",tabIndex:-1,className:T()(`${a}-trigger`,{active:O}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:w},Object.assign(Object.assign({},M),{rootClassName:T()(C,M.rootClassName),open:H,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==I&&N(Rb(I)),D(e),e||l.filterDropdown||!h||G())},popupRender:()=>"function"==typeof(null==M?void 0:M.dropdownRender)?M.dropdownRender(ee):ee}));return o.createElement("div",{className:`${a}-column`},o.createElement("span",{className:`${s}-column-title`},y),o.createElement(rh,Object.assign({},oe)))},Lb=(e,t,n)=>{let o=[];return(e||[]).forEach(((e,i)=>{var r;const s=ng(i,n),a=void 0!==e.filterDropdown;if(e.filters||a||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;a||(t=null!==(r=null==t?void 0:t.map(String))&&void 0!==r?r:t),o.push({column:e,key:tg(e,s),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:tg(e,s),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat((0,tt.A)(o),(0,tt.A)(Lb(e.children,t,s))))})),o};function Ob(e,t,n,i,r,s,a,l,c){return n.map(((n,d)=>{const u=ng(d,l),{filterOnClose:h=!0,filterMultiple:m=!0,filterMode:p,filterSearch:f}=n;let g=n;if(g.filters||g.filterDropdown){const l=tg(g,u),d=i.find((({key:e})=>l===e));g=Object.assign(Object.assign({},g),{title:i=>o.createElement(Ab,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:l,filterState:d,filterOnClose:h,filterMultiple:m,filterMode:p,filterSearch:f,triggerFilter:s,locale:r,getPopupContainer:a,rootClassName:c},og(n.title,i))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:Ob(e,t,g.children,i,r,s,a,u,c)})),g}))}const Db=e=>{const t={};return e.forEach((({key:e,filteredKeys:n,column:o})=>{const i=e,{filters:r,filterDropdown:s}=o;if(s)t[i]=n||null;else if(Array.isArray(n)){const e=xb(r);t[i]=e.filter((e=>n.includes(String(e))))}else t[i]=null})),t},Hb=(e,t,n)=>t.reduce(((e,o)=>{const{column:{onFilter:i,filters:r},filteredKeys:s}=o;return i&&s&&s.length?e.map((e=>Object.assign({},e))).filter((e=>s.some((o=>{const s=xb(r),a=s.findIndex((e=>String(e)===String(o))),l=-1!==a?s[a]:o;return e[n]&&(e[n]=Hb(e[n],t,n)),i(l,e)})))):e}),e),Ib=e=>e.flatMap((e=>"children"in e?[e].concat((0,tt.A)(Ib(e.children||[]))):[e])),Pb=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:i,onFilterChange:r,getPopupContainer:s,locale:a,rootClassName:l}=e,c=((0,ao.rJ)("Table"),o.useMemo((()=>Ib(i||[])),[i])),[d,u]=o.useState((()=>Lb(c,!0))),h=o.useMemo((()=>{const e=Lb(c,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((({filteredKeys:e})=>{void 0!==e?t=!1:n=!1})),t){const e=(c||[]).map(((e,t)=>tg(e,ng(t))));return d.filter((({key:t})=>e.includes(t))).map((t=>{const n=c[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[c,d]),m=o.useMemo((()=>Db(h)),[h]),p=e=>{const t=h.filter((({key:t})=>t!==e.key));t.push(e),u(t),r(Db(t),t)};return[e=>Ob(t,n,e,h,a,p,s,void 0,l),h,m]};const Nb=10,Fb=function(e,t,n){const i=n&&"object"==typeof n?n:{},{total:r=0}=i,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(i,["total"]),[a,l]=(0,o.useState)((()=>({current:"defaultCurrent"in s?s.defaultCurrent:1,pageSize:"defaultPageSize"in s?s.defaultPageSize:Nb}))),c=ag(a,s,{total:r>0?r:e}),d=Math.ceil((r||e)/c.pageSize);c.current>d&&(c.current=d||1);const u=(e,t)=>{l({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,o)=>{var i;n&&(null===(i=n.onChange)||void 0===i||i.call(n,e,o)),u(e,o),t(e,o||(null==c?void 0:c.pageSize))}}),u]},zb={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};var jb=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:zb}))};const Yb=o.forwardRef(jb),$b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};var Bb=function(e,t){return o.createElement(En,(0,f.A)({},e,{ref:t,icon:$b}))};const Wb=o.forwardRef(Bb),Vb="ascend",Ub="descend",Gb=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,Kb=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,qb=(e,t,n)=>{let o=[];const i=(e,t)=>{o.push({column:e,key:tg(e,t),multiplePriority:Gb(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,r)=>{const s=ng(r,n);e.children?("sortOrder"in e&&i(e,s),o=[].concat((0,tt.A)(o),(0,tt.A)(qb(e.children,t,s)))):e.sorter&&("sortOrder"in e?i(e,s):t&&e.defaultSortOrder&&o.push({column:e,key:tg(e,s),multiplePriority:Gb(e),sortOrder:e.defaultSortOrder}))})),o},Xb=(e,t,n,i,r,s,a,l)=>{const c=(t||[]).map(((t,c)=>{const d=ng(c,l);let u=t;if(u.sorter){const l=u.sortDirections||r,c=void 0===u.showSorterTooltip?a:u.showSorterTooltip,h=tg(u,d),m=n.find((({key:e})=>e===h)),p=m?m.sortOrder:null,f=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(l,p);let g;if(t.sortIcon)g=t.sortIcon({sortOrder:p});else{const t=l.includes(Vb)&&o.createElement(Wb,{className:T()(`${e}-column-sorter-up`,{active:p===Vb})}),n=l.includes(Ub)&&o.createElement(Yb,{className:T()(`${e}-column-sorter-down`,{active:p===Ub})});g=o.createElement("span",{className:T()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:b,triggerAsc:v,triggerDesc:y}=s||{};let w=b;f===Ub?w=y:f===Vb&&(w=v);const C="object"==typeof c?Object.assign({title:w},c):{title:w};u=Object.assign(Object.assign({},u),{className:T()(u.className,{[`${e}-column-sort`]:p}),title:n=>{const i=`${e}-column-sorters`,r=o.createElement("span",{className:`${e}-column-title`},og(t.title,n)),s=o.createElement("div",{className:i},r,g);return c?"boolean"!=typeof c&&"sorter-icon"===(null==c?void 0:c.target)?o.createElement("div",{className:`${i} ${e}-column-sorters-tooltip-target-sorter`},r,o.createElement(Wc,Object.assign({},C),g)):o.createElement(Wc,Object.assign({},C),s):s},onHeaderCell:n=>{var o;const r=(null===(o=t.onHeaderCell)||void 0===o?void 0:o.call(t,n))||{},s=r.onClick,a=r.onKeyDown;r.onClick=e=>{i({column:t,key:h,sortOrder:f,multiplePriority:Gb(t)}),null==s||s(e)},r.onKeyDown=e=>{e.keyCode===Ps.ENTER&&(i({column:t,key:h,sortOrder:f,multiplePriority:Gb(t)}),null==a||a(e))};const l=(e=>{const t=og(e,{});return"[object Object]"===Object.prototype.toString.call(t)?"":t})(t.title),c=null==l?void 0:l.toString();return p&&(r["aria-sort"]="ascend"===p?"ascending":"descending"),r["aria-label"]=c||"",r.className=T()(r.className,`${e}-column-has-sorters`),r.tabIndex=0,t.ellipsis&&(r.title=(null!=l?l:"").toString()),r}})}return"children"in u&&(u=Object.assign(Object.assign({},u),{children:Xb(e,u.children,n,i,r,s,a,d)})),u}));return c},Jb=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Qb=e=>{const t=e.filter((({sortOrder:e})=>e)).map(Jb);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},Jb(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Zb=(e,t,n)=>{const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),i=e.slice(),r=o.filter((({column:{sorter:e},sortOrder:t})=>Kb(e)&&t));return r.length?i.sort(((e,t)=>{for(let n=0;n<r.length;n+=1){const o=r[n],{column:{sorter:i},sortOrder:s}=o,a=Kb(i);if(a&&s){const n=a(e,t,s);if(0!==n)return s===Vb?n:-n}}return 0})).map((e=>{const o=e[n];return o?Object.assign(Object.assign({},e),{[n]:Zb(o,t,n)}):e})):i},ev=(e,t)=>e.map((e=>{const n=Object.assign({},e);return n.title=og(e.title,t),"children"in n&&(n.children=ev(n.children,t)),n})),tv=kt(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),nv=an(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),ov=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:i,tableHeaderBg:r,tablePaddingVertical:s,tablePaddingHorizontal:a,calc:l}=e,c=`${(0,fo.zA)(n)} ${o} ${i}`,d=(e,o,i)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,fo.zA)(l(o).mul(-1).equal())}\n ${(0,fo.zA)(l(l(i).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,fo.zA)(l(s).mul(-1).equal())} ${(0,fo.zA)(l(l(a).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,fo.zA)(n)} 0 ${(0,fo.zA)(n)} ${r}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},iv=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Do.L9),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},rv=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},sv=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:i,paddingXS:r,lineType:s,tableBorderColor:a,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:d,tablePaddingVertical:u,tablePaddingHorizontal:h,tableExpandedRowBg:m,paddingXXS:p,expandIconMarginTop:f,expandIconSize:g,expandIconHalfInner:b,expandIconScale:v,calc:y}=e,w=`${(0,fo.zA)(i)} ${s} ${a}`,C=y(p).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,Do.Y1)(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:(0,fo.zA)(g),background:l,border:w,borderRadius:d,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:C,insetInlineStart:C,height:i},"&::after":{top:C,bottom:C,insetInlineStart:b,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:f,marginInlineEnd:r},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,fo.zA)(y(u).mul(-1).equal())} ${(0,fo.zA)(y(h).mul(-1).equal())}`,padding:`${(0,fo.zA)(u)} ${(0,fo.zA)(h)}`}}}},av=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:r,paddingXXS:s,paddingXS:a,colorText:l,lineWidth:c,lineType:d,tableBorderColor:u,headerIconColor:h,fontSizeSM:m,tablePaddingHorizontal:p,borderRadius:f,motionDurationSlow:g,colorIcon:b,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:w,tableFilterDropdownBg:C,tableFilterDropdownHeight:_,controlItemBgHover:S,controlItemBgActive:M,boxShadowSecondary:E,filterDropdownMenuBg:x,calc:k}=e,T=`${n}-dropdown`,R=`${t}-filter-dropdown`,A=`${n}-tree`,L=`${(0,fo.zA)(c)} ${d} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:k(s).mul(-1).equal(),marginInline:`${(0,fo.zA)(s)} ${(0,fo.zA)(k(p).div(2).mul(-1).equal())}`,padding:`0 ${(0,fo.zA)(s)}`,color:h,fontSize:m,borderRadius:f,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:b,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[R]:Object.assign(Object.assign({},(0,Do.dF)(e)),{minWidth:i,backgroundColor:C,borderRadius:f,boxShadow:E,overflow:"hidden",[`${T}-menu`]:{maxHeight:_,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:x,"&:empty::after":{display:"block",padding:`${(0,fo.zA)(a)} 0`,color:w,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${R}-tree`]:{paddingBlock:`${(0,fo.zA)(a)} 0`,paddingInline:a,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:S},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:M}}},[`${R}-search`]:{padding:a,borderBottom:L,"&-input":{input:{minWidth:r},[o]:{color:w}}},[`${R}-checkall`]:{width:"100%",marginBottom:s,marginInlineStart:s},[`${R}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,fo.zA)(k(a).sub(c).equal())} ${(0,fo.zA)(a)}`,overflow:"hidden",borderTop:L}})}},{[`${n}-dropdown ${R}, ${R}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},lv=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:i,zIndexTableFixed:r,tableBg:s,zIndexTableSticky:a,calc:l}=e,c=o;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:r,background:s},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(a).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},cv=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${(0,fo.zA)(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},dv=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,fo.zA)(n)} ${(0,fo.zA)(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${(0,fo.zA)(n)} ${(0,fo.zA)(n)}`}}}}},uv=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},hv=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:i,padding:r,paddingXS:s,headerIconColor:a,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:d,tableSelectedRowHoverBg:u,tableRowHoverBg:h,tablePaddingHorizontal:m,calc:p}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:p(c).add(i).add(p(r).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:p(c).add(p(s).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:p(c).add(i).add(p(r).div(4)).add(p(s).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:p(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,fo.zA)(p(m).div(4).equal()),[o]:{color:a,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}},mv=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,i=(e,i,r,s)=>({[`${t}${t}-${e}`]:{fontSize:s,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${(0,fo.zA)(i)} ${(0,fo.zA)(r)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,fo.zA)(o(r).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,fo.zA)(o(i).mul(-1).equal())} ${(0,fo.zA)(o(r).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,fo.zA)(o(i).mul(-1).equal()),marginInline:`${(0,fo.zA)(o(n).sub(r).equal())} ${(0,fo.zA)(o(r).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,fo.zA)(o(r).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},i("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},pv=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,headerIconColor:i,headerIconHoverColor:r}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:r}}}},fv=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:i,tableScrollThumbSize:r,tableScrollBg:s,zIndexTableSticky:a,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:d,tableBorderColor:u}=e,h=`${(0,fo.zA)(c)} ${d} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:a,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,fo.zA)(r)} !important`,zIndex:a,display:"flex",alignItems:"center",background:s,borderTop:h,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:r,backgroundColor:o,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},gv=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:i}=e,r=`${(0,fo.zA)(n)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:r}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,fo.zA)(i(n).mul(-1).equal())} 0 ${o}`}}}},bv=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:i,tableBorderColor:r,calc:s}=e,a=`${(0,fo.zA)(o)} ${i} ${r}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:a,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,fo.zA)(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:a,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:a,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:s(o).mul(-1).equal(),borderInlineStart:a}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:a,borderBottom:a}}}}}},vv=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:i,tableExpandColumnWidth:r,lineWidth:s,lineType:a,tableBorderColor:l,tableFontSize:c,tableBg:d,tableRadius:u,tableHeaderTextColor:h,motionDurationMid:m,tableHeaderBg:p,tableHeaderCellSplitColor:f,tableFooterTextColor:g,tableFooterBg:b,calc:v}=e,y=`${(0,fo.zA)(s)} ${a} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Do.t6)()),{[t]:Object.assign(Object.assign({},(0,Do.dF)(e)),{fontSize:c,background:d,borderRadius:`${(0,fo.zA)(u)} ${(0,fo.zA)(u)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,fo.zA)(u)} ${(0,fo.zA)(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${(0,fo.zA)(o)} ${(0,fo.zA)(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,fo.zA)(o)} ${(0,fo.zA)(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:p,borderBottom:y,transition:`background ${m} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:f,transform:"translateY(-50%)",transition:`background-color ${m}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${m}, border-color ${m}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:(0,fo.zA)(v(o).mul(-1).equal()),marginInline:`${(0,fo.zA)(v(r).sub(i).equal())}\n ${(0,fo.zA)(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:p,borderBottom:y,transition:`background ${m} ease`}}},[`${t}-footer`]:{padding:`${(0,fo.zA)(o)} ${(0,fo.zA)(i)}`,color:g,background:b}})}},yv=Io("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:o,controlInteractiveSize:i,headerBg:r,headerColor:s,headerSortActiveBg:a,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:d,rowSelectedBg:u,rowSelectedHoverBg:h,rowExpandedBg:m,cellPaddingBlock:p,cellPaddingInline:f,cellPaddingBlockMD:g,cellPaddingInlineMD:b,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:w,footerBg:C,footerColor:_,headerBorderRadius:S,cellFontSize:M,cellFontSizeMD:E,cellFontSizeSM:x,headerSplitColor:k,fixedHeaderSortActiveBg:T,headerFilterHoverBg:R,filterDropdownBg:A,expandIconBg:L,selectionColumnWidth:O,stickyScrollBarBg:D,calc:H}=e,I=ko(e,{tableFontSize:M,tableBg:o,tableRadius:S,tablePaddingVertical:p,tablePaddingHorizontal:f,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:w,tableHeaderTextColor:s,tableHeaderBg:r,tableFooterTextColor:_,tableFooterBg:C,tableHeaderCellSplitColor:k,tableHeaderSortBg:a,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:T,tableHeaderFilterActiveBg:R,tableFilterDropdownBg:A,tableRowHoverBg:d,tableSelectedRowBg:u,tableSelectedRowHoverBg:h,zIndexTableFixed:2,zIndexTableSticky:H(2).add(1).equal({unit:!1}),tableFontSizeMiddle:E,tableFontSizeSmall:x,tableSelectionColumnWidth:O,tableExpandIconBg:L,tableExpandColumnWidth:H(i).add(H(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:D,tableScrollThumbBgHover:t,tableScrollBg:n});return[vv(I),cv(I),gv(I),pv(I),av(I),ov(I),dv(I),sv(I),gv(I),rv(I),hv(I),lv(I),fv(I),iv(I),mv(I),uv(I),bv(I)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:o,colorFillSecondary:i,colorFillContent:r,controlItemBgActive:s,controlItemBgActiveHover:a,padding:l,paddingSM:c,paddingXS:d,colorBorderSecondary:u,borderRadiusLG:h,controlHeight:m,colorTextPlaceholder:p,fontSize:f,fontSizeSM:g,lineHeight:b,lineWidth:v,colorIcon:y,colorIconHover:w,opacityLoading:C,controlInteractiveSize:_}=e,S=new qc.Y(i).onBackground(n).toHexString(),M=new qc.Y(r).onBackground(n).toHexString(),E=new qc.Y(t).onBackground(n).toHexString(),x=new qc.Y(y),k=new qc.Y(w),T=_/2-v,R=2*T+3*v;return{headerBg:E,headerColor:o,headerSortActiveBg:S,headerSortHoverBg:M,bodySortBg:E,rowHoverBg:E,rowSelectedBg:s,rowSelectedHoverBg:a,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:u,headerBorderRadius:h,footerBg:E,footerColor:o,cellFontSize:f,cellFontSizeMD:f,cellFontSizeSM:f,headerSplitColor:u,fixedHeaderSortActiveBg:S,headerFilterHoverBg:r,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(f*b-3*v)/2-Math.ceil((1.4*g-3*v)/2),headerIconColor:x.clone().setA(x.a*C).toRgbString(),headerIconHoverColor:k.clone().setA(k.a*C).toRgbString(),expandIconHalfInner:T,expandIconSize:R,expandIconScale:_/R}}),{unitless:{expandIconScale:!0}}),wv=[],Cv=(e,t)=>{var n,i;const{prefixCls:r,className:a,rootClassName:l,style:c,size:d,bordered:u,dropdownPrefixCls:h,dataSource:m,pagination:p,rowSelection:f,rowKey:g="key",rowClassName:b,columns:v,children:y,childrenColumnName:w,onChange:C,getPopupContainer:_,loading:S,expandIcon:M,expandable:E,expandedRowRender:x,expandIconColumnIndex:k,indentSize:R,scroll:A,sortDirections:L,locale:O,showSorterTooltip:D={target:"full-header"},virtual:H}=e;(0,ao.rJ)("Table");const I=o.useMemo((()=>v||dt(y)),[v,y]),P=o.useMemo((()=>I.some((e=>e.responsive))),[I]),N=Vh(P),F=o.useMemo((()=>{const e=new Set(Object.keys(N).filter((e=>N[e])));return I.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[I,N]),z=Dn(e,["className","style","columns"]),{locale:j=Lh.A,direction:Y,table:$,renderEmpty:B,getPrefixCls:W,getPopupContainer:V}=o.useContext(ho.QO),U=mc(d),G=Object.assign(Object.assign({},j.Table),O),K=m||wv,q=W("table",r),X=W("dropdown",h),[,J]=(0,Ho.Ay)(),Q=vi(q),[Z,ee,te]=yv(q,Q),ne=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:k},E),{expandIcon:null!==(n=null==E?void 0:E.expandIcon)&&void 0!==n?n:null===(i=null==$?void 0:$.expandable)||void 0===i?void 0:i.expandIcon}),{childrenColumnName:oe="children"}=ne,ie=o.useMemo((()=>K.some((e=>null==e?void 0:e[oe]))?"nest":x||(null==E?void 0:E.expandedRowRender)?"row":null),[K]),re={body:o.useRef(null)},se=function(e){return(t,n)=>{const o=t.querySelector(`.${e}-container`);let i=n;if(o){const e=getComputedStyle(o);i=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return i}}(q),ae=o.useRef(null),le=o.useRef(null);!function(e,t){(0,o.useImperativeHandle)(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(i=e,(o=n)._antProxy=o._antProxy||{},Object.keys(i).forEach((e=>{if(!(e in o._antProxy)){const t=o[e];o._antProxy[e]=t,o[e]=i[e]}})),o);var o,i}))}(t,(()=>Object.assign(Object.assign({},le.current),{nativeElement:ae.current})));const ce=o.useMemo((()=>"function"==typeof g?g:e=>null==e?void 0:e[g]),[g]),[de]=((e,t,n)=>{const i=o.useRef({});return[function(o){var r;if(!i.current||i.current.data!==e||i.current.childrenColumnName!==t||i.current.getRowKey!==n){const s=new Map;function a(e){e.forEach(((e,o)=>{const i=n(e,o);s.set(i,e),e&&"object"==typeof e&&t in e&&a(e[t]||[])}))}a(e),i.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return null===(r=i.current.kvMap)||void 0===r?void 0:r.get(o)}]})(K,oe,ce),ue={},he=(e,t,n=!1)=>{var o,i,r,s;const a=Object.assign(Object.assign({},ue),e);n&&(null===(o=ue.resetPagination)||void 0===o||o.call(ue),(null===(i=a.pagination)||void 0===i?void 0:i.current)&&(a.pagination.current=1),p&&(null===(r=p.onChange)||void 0===r||r.call(p,1,null===(s=a.pagination)||void 0===s?void 0:s.pageSize))),A&&!1!==A.scrollToFirstRowOnChange&&re.body.current&&function(e,t={}){const{getContainer:n=()=>window,callback:o,duration:i=450}=t,r=n(),s=(e=>{var t,n;if("undefined"==typeof window)return 0;let o=0;return Rh(e)?o=e.pageYOffset:e instanceof Document?o=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(o=e.scrollTop),e&&!Rh(e)&&"number"!=typeof o&&(o=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),o})(r),a=Date.now(),l=()=>{const t=Date.now()-a,n=function(e,t,n,o){const i=n-t;return(e/=o/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}(t>i?i:t,s,e,i);Rh(r)?r.scrollTo(window.pageXOffset,n):r instanceof Document||"HTMLDocument"===r.constructor.name?r.documentElement.scrollTop=n:r.scrollTop=n,t<i?(0,bt.A)(l):"function"==typeof o&&o()};(0,bt.A)(l)}(0,{getContainer:()=>re.body.current}),null==C||C(a.pagination,a.filters,a.sorter,{currentDataSource:Hb(Zb(K,a.sorterStates,oe),a.filterStates,oe),action:t})},[me,pe,fe,ge]=(e=>{const{prefixCls:t,mergedColumns:n,sortDirections:i,tableLocale:r,showSorterTooltip:s,onSorterChange:a}=e,[l,c]=o.useState((()=>qb(n,!0))),d=(e,t)=>{const n=[];return e.forEach(((e,o)=>{const i=ng(o,t);if(n.push(tg(e,i)),Array.isArray(e.children)){const t=d(e.children,i);n.push.apply(n,(0,tt.A)(t))}})),n},u=o.useMemo((()=>{let e=!0;const t=qb(n,!1);if(!t.length){const e=d(n);return l.filter((({key:t})=>e.includes(t)))}const o=[];function i(t){e?o.push(t):o.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let r=null;return t.forEach((t=>{null===r?(i(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:r=!0)):(r&&!1!==t.multiplePriority||(e=!1),i(t))})),o}),[n,l]),h=o.useMemo((()=>{var e,t;const n=u.map((({column:e,sortOrder:t})=>({column:e,order:t})));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[u]),m=e=>{let t;t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat((0,tt.A)(u.filter((({key:t})=>t!==e.key))),[e]):[e],c(t),a(Qb(t),t)};return[e=>Xb(t,e,u,m,i,r,s),u,h,()=>Qb(u)]})({prefixCls:q,mergedColumns:F,onSorterChange:(e,t)=>{he({sorter:e,sorterStates:t},"sort",!1)},sortDirections:L||["ascend","descend"],tableLocale:G,showSorterTooltip:D}),be=o.useMemo((()=>Zb(K,pe,oe)),[K,pe]);ue.sorter=ge(),ue.sorterStates=pe;const[ve,ye,we]=Pb({prefixCls:q,locale:G,dropdownPrefixCls:X,mergedColumns:F,onFilterChange:(e,t)=>{he({filters:e,filterStates:t},"filter",!0)},getPopupContainer:_||V,rootClassName:T()(l,Q)}),Ce=Hb(be,ye,oe);ue.filters=we,ue.filterStates=ye;const _e=o.useMemo((()=>{const e={};return Object.keys(we).forEach((t=>{null!==we[t]&&(e[t]=we[t])})),Object.assign(Object.assign({},fe),{filters:e})}),[fe,we]),[Se]=(e=>[o.useCallback((t=>ev(t,e)),[e])])(_e),[Me,Ee]=Fb(Ce.length,((e,t)=>{he({pagination:Object.assign(Object.assign({},ue.pagination),{current:e,pageSize:t})},"paginate")}),p);ue.pagination=!1===p?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach((t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)})),n}(Me,p),ue.resetPagination=Ee;const xe=o.useMemo((()=>{if(!1===p||!Me.pageSize)return Ce;const{current:e=1,total:t,pageSize:n=Nb}=Me;return Ce.length<t?Ce.length>n?Ce.slice((e-1)*n,e*n):Ce:Ce.slice((e-1)*n,e*n)}),[!!p,Ce,null==Me?void 0:Me.current,null==Me?void 0:Me.pageSize,null==Me?void 0:Me.total]),[ke,Te]=((e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:i,defaultSelectedRowKeys:r,getCheckboxProps:s,onChange:a,onSelect:l,onSelectAll:c,onSelectInvert:d,onSelectNone:u,onSelectMultiple:h,columnWidth:m,type:p,selections:f,fixed:g,renderCell:b,hideSelectAll:v,checkStrictly:y=!0}=t||{},{prefixCls:w,data:C,pageData:_,getRecordByKey:S,getRowKey:M,expandType:E,childrenColumnName:x,locale:k,getPopupContainer:R}=e,A=(0,ao.rJ)("Table"),[L,O]=function(){const[e,t]=(0,o.useState)(null);return[(0,o.useCallback)(((n,o,i)=>{const r=null!=e?e:n,s=Math.min(r||0,n),a=Math.max(r||0,n),l=o.slice(s,a+1).map((e=>e)),c=l.some((e=>!i.has(e))),d=[];return l.forEach((e=>{c?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))})),t(c?a:null),d}),[e]),e=>{t(e)}]}(),[D,H]=(0,so.A)(i||r||kh,{value:i}),I=o.useRef(new Map),P=(0,o.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=S(e);!n&&I.current.has(e)&&(n=I.current.get(e)),t.set(e,n)})),I.current=t}}),[S,n]);o.useEffect((()=>{P(D)}),[D]);const N=(0,o.useMemo)((()=>Th(x,_)),[x,_]),{keyEntities:F}=(0,o.useMemo)((()=>{if(y)return{keyEntities:null};let e=C;if(n){const t=new Set(N.map(((e,t)=>M(e,t)))),n=Array.from(I.current).reduce(((e,[n,o])=>t.has(n)?e:e.concat(o)),[]);e=[].concat((0,tt.A)(e),(0,tt.A)(n))}return jn(e,{externalGetKey:M,childrenPropName:x})}),[C,M,y,x,n,N]),z=(0,o.useMemo)((()=>{const e=new Map;return N.forEach(((t,n)=>{const o=M(t,n),i=(s?s(t):null)||{};e.set(o,i)})),e}),[N,M,s]),j=(0,o.useCallback)((e=>{const t=M(e);let n;return n=z.has(t)?z.get(M(e)):s?s(e):void 0,!!(null==n?void 0:n.disabled)}),[z,M]),[Y,$]=(0,o.useMemo)((()=>{if(y)return[D||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=ro(D,!0,F,j);return[e||[],t]}),[D,y,F,j]),B=(0,o.useMemo)((()=>{const e="radio"===p?Y.slice(0,1):Y;return new Set(e)}),[Y,p]),W=(0,o.useMemo)((()=>"radio"===p?new Set:new Set($)),[$,p]);o.useEffect((()=>{t||H(kh)}),[!!t]);const V=(0,o.useCallback)(((e,t)=>{let o,i;P(e),n?(o=e,i=e.map((e=>I.current.get(e)))):(o=[],i=[],e.forEach((e=>{const t=S(e);void 0!==t&&(o.push(e),i.push(t))}))),H(o),null==a||a(o,i,{type:t})}),[H,S,a,n]),U=(0,o.useCallback)(((e,t,n,o)=>{if(l){const i=n.map((e=>S(e)));l(S(e),t,i,o)}V(n,"single")}),[l,S,V]),G=(0,o.useMemo)((()=>!f||v?null:(!0===f?[Mh,Eh,xh]:f).map((e=>e===Mh?{key:"all",text:k.selectionAll,onSelect(){V(C.map(((e,t)=>M(e,t))).filter((e=>{const t=z.get(e);return!(null==t?void 0:t.disabled)||B.has(e)})),"all")}}:e===Eh?{key:"invert",text:k.selectInvert,onSelect(){const e=new Set(B);_.forEach(((t,n)=>{const o=M(t,n),i=z.get(o);(null==i?void 0:i.disabled)||(e.has(o)?e.delete(o):e.add(o))}));const t=Array.from(e);d&&(A.deprecated(!1,"onSelectInvert","onChange"),d(t)),V(t,"invert")}}:e===xh?{key:"none",text:k.selectNone,onSelect(){null==u||u(),V(Array.from(B).filter((e=>{const t=z.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:(...t)=>{var n,o;null===(o=e.onSelect)||void 0===o||(n=o).call.apply(n,[e].concat(t)),O(null)}})))),[f,B,_,M,d,V]),K=(0,o.useCallback)((e=>{var n;if(!t)return e.filter((e=>e!==Sh));let i=(0,tt.A)(e);const r=new Set(B),s=N.map(M).filter((e=>!z.get(e).disabled)),a=s.every((e=>r.has(e))),l=s.some((e=>r.has(e))),d=()=>{const e=[];a?s.forEach((t=>{r.delete(t),e.push(t)})):s.forEach((t=>{r.has(t)||(r.add(t),e.push(t))}));const t=Array.from(r);null==c||c(!a,t.map((e=>S(e))),e.map((e=>S(e)))),V(t,"all"),O(null)};let u,C,_;if("radio"!==p){let e;if(G){const t={getPopupContainer:R,items:G.map(((e,t)=>{const{key:n,text:o,onSelect:i}=e;return{key:null!=n?n:t,onClick:()=>{null==i||i(s)},label:o}}))};e=o.createElement("div",{className:`${w}-selection-extra`},o.createElement(rh,{menu:t,getPopupContainer:R},o.createElement("span",null,o.createElement(kn,null))))}const t=N.map(((e,t)=>{const n=M(e,t),o=z.get(n)||{};return Object.assign({checked:r.has(n)},o)})).filter((({disabled:e})=>e)),n=!!t.length&&t.length===N.length,i=n&&t.every((({checked:e})=>e)),c=n&&t.some((({checked:e})=>e));C=o.createElement(Kr,{checked:n?i:!!N.length&&a,indeterminate:n?!i&&c:!a&&l,onChange:d,disabled:0===N.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),u=!v&&o.createElement("div",{className:`${w}-selection`},C,e)}if(_="radio"===p?(e,t,n)=>{const i=M(t,n),s=r.has(i),a=z.get(i);return{node:o.createElement(_h,Object.assign({},a,{checked:s,onClick:e=>{var t;e.stopPropagation(),null===(t=null==a?void 0:a.onClick)||void 0===t||t.call(a,e)},onChange:e=>{var t;r.has(i)||U(i,!0,[i],e.nativeEvent),null===(t=null==a?void 0:a.onChange)||void 0===t||t.call(a,e)}})),checked:s}}:(e,t,n)=>{var i;const a=M(t,n),l=r.has(a),c=W.has(a),d=z.get(a);let u;return u="nest"===E?c:null!==(i=null==d?void 0:d.indeterminate)&&void 0!==i?i:c,{node:o.createElement(Kr,Object.assign({},d,{indeterminate:u,checked:l,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null===(t=null==d?void 0:d.onClick)||void 0===t||t.call(d,e)},onChange:e=>{var t;const{nativeEvent:n}=e,{shiftKey:o}=n,i=s.findIndex((e=>e===a)),c=Y.some((e=>s.includes(e)));if(o&&y&&c){const e=L(i,s,r),t=Array.from(r);null==h||h(!l,t.map((e=>S(e))),e.map((e=>S(e)))),V(t,"multiple")}else{const e=Y;if(y){const t=l?Kn(e,a):qn(e,a);U(a,!l,t,n)}else{const t=ro([].concat((0,tt.A)(e),[a]),!0,F,j),{checkedKeys:o,halfCheckedKeys:i}=t;let r=o;if(l){const e=new Set(o);e.delete(a),r=ro(Array.from(e),{checked:!1,halfCheckedKeys:i},F,j).checkedKeys}U(a,!l,r,n)}}O(l?null:i),null===(t=null==d?void 0:d.onChange)||void 0===t||t.call(d,e)}})),checked:l}},!i.includes(Sh))if(0===i.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[Qe])||void 0===t?void 0:t.columnType)}))){const[e,...t]=i;i=[e,Sh].concat((0,tt.A)(t))}else i=[Sh].concat((0,tt.A)(i));const x=i.indexOf(Sh);i=i.filter(((e,t)=>e!==Sh||t===x));const k=i[x-1],A=i[x+1];let D=g;void 0===D&&(void 0!==(null==A?void 0:A.fixed)?D=A.fixed:void 0!==(null==k?void 0:k.fixed)&&(D=k.fixed)),D&&k&&"EXPAND_COLUMN"===(null===(n=k[Qe])||void 0===n?void 0:n.columnType)&&void 0===k.fixed&&(k.fixed=D);const H=T()(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:f&&"checkbox"===p}),I={fixed:D,width:m,className:`${w}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(C):t.columnTitle:u,render:(e,t,n)=>{const{node:o,checked:i}=_(e,t,n);return b?b(i,t,n,o):o},onCell:t.onCell,align:t.align,[Qe]:{className:H}};return i.map((e=>e===Sh?I:e))}),[M,N,t,Y,B,W,m,G,E,z,h,U,j]);return[K,B]})({prefixCls:q,data:Ce,pageData:xe,getRowKey:ce,getRecordByKey:de,expandType:ie,childrenColumnName:oe,locale:G,getPopupContainer:_||V},f);ne.__PARENT_RENDER_ICON__=ne.expandIcon,ne.expandIcon=ne.expandIcon||M||function(e){return t=>{const{prefixCls:n,onExpand:i,record:r,expanded:s,expandable:a}=t,l=`${n}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:e=>{i(r,e),e.stopPropagation()},className:T()(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&s,[`${l}-collapsed`]:a&&!s}),"aria-label":s?e.collapse:e.expand,"aria-expanded":s})}}(G),"nest"===ie&&void 0===ne.expandIconColumnIndex?ne.expandIconColumnIndex=f?1:0:ne.expandIconColumnIndex>0&&f&&(ne.expandIconColumnIndex-=1),"number"!=typeof ne.indentSize&&(ne.indentSize="number"==typeof R?R:15);const Re=o.useCallback((e=>Se(ke(ve(me(e))))),[me,ve,ke]);let Ae,Le,Oe;if(!1!==p&&(null==Me?void 0:Me.total)){let e;e=Me.size?Me.size:"small"===U||"middle"===U?"small":void 0;const t=t=>o.createElement(Yf,Object.assign({},Me,{className:T()(`${q}-pagination ${q}-pagination-${t}`,Me.className),size:e})),n="rtl"===Y?"left":"right",{position:i}=Me;if(null!==i&&Array.isArray(i)){const e=i.find((e=>e.includes("top"))),o=i.find((e=>e.includes("bottom"))),r=i.every((e=>"none"==`${e}`));e||o||r||(Le=t(n)),e&&(Ae=t(e.toLowerCase().replace("top",""))),o&&(Le=t(o.toLowerCase().replace("bottom","")))}else Le=t(n)}"boolean"==typeof S?Oe={spinning:S}:"object"==typeof S&&(Oe=Object.assign({spinning:!0},S));const De=T()(te,Q,`${q}-wrapper`,null==$?void 0:$.className,{[`${q}-wrapper-rtl`]:"rtl"===Y},a,l,ee),He=Object.assign(Object.assign({},null==$?void 0:$.style),c),Ie=void 0!==(null==O?void 0:O.emptyText)?O.emptyText:(null==B?void 0:B("Table"))||o.createElement(Yh,{componentName:"Table"}),Pe=H?nv:tv,Ne={},Fe=o.useMemo((()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:o,paddingXS:i,paddingSM:r}=J,s=Math.floor(e*t);switch(U){case"middle":return 2*r+s+n;case"small":return 2*i+s+n;default:return 2*o+s+n}}),[J,U]);return H&&(Ne.listItemHeight=Fe),Z(o.createElement("div",{ref:ae,className:De,style:He},o.createElement(eg,Object.assign({spinning:!1},Oe),Ae,o.createElement(Pe,Object.assign({},Ne,z,{ref:le,columns:F,direction:Y,expandable:ne,prefixCls:q,className:T()({[`${q}-middle`]:"middle"===U,[`${q}-small`]:"small"===U,[`${q}-bordered`]:u,[`${q}-empty`]:0===K.length},te,Q,ee),data:xe,rowKey:ce,rowClassName:(e,t,n)=>{let o;return o="function"==typeof b?T()(b(e,t,n)):T()(b),T()({[`${q}-row-selected`]:Te.has(ce(e,t))},o)},emptyText:Ie,internalHooks:s,internalRefs:re,transformColumns:Re,getContainerWidth:se})),Le)))},_v=o.forwardRef(Cv),Sv=(e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(_v,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Mv=o.forwardRef(Sv);Mv.SELECTION_COLUMN=Sh,Mv.EXPAND_COLUMN=r,Mv.SELECTION_ALL=Mh,Mv.SELECTION_INVERT=Eh,Mv.SELECTION_NONE=xh,Mv.Column=e=>null,Mv.ColumnGroup=e=>null,Mv.Summary=V;const Ev=Mv},7306:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(95093))},7350:(e,t,n)=>{var o=n(38221),i=n(23805);e.exports=function(e,t,n){var r=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),o(e,t,{leading:r,maxWait:t,trailing:s})}},7588:(e,t,n)=>{"use strict";var o=n(46518),i=n(69565),r=n(72652),s=n(79306),a=n(28551),l=n(1767),c=n(9539),d=n(84549)("forEach",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(d)return i(d,this,e);var t=l(this),n=0;r(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},8235:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(95093))},8719:(e,t,n)=>{"use strict";n.d(t,{A9:()=>f,H3:()=>p,K4:()=>d,Xf:()=>c,f3:()=>h,xK:()=>u});var o=n(82284),i=n(96540),r=n(66351),s=n(28104),a=n(76288),l=Number(i.version.split(".")[0]),c=function(e,t){"function"==typeof e?e(t):"object"===(0,o.A)(e)&&e&&"current"in e&&(e.current=t)},d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach((function(t){c(t,e)}))}},u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.A)((function(){return d.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},h=function(e){var t,n;if(!e)return!1;if(m(e)&&l>=19)return!0;var o=(0,r.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===r.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===r.ForwardRef)};function m(e){return(0,i.isValidElement)(e)&&!(0,a.A)(e)}var p=function(e){return m(e)&&h(e)},f=function(e){if(e&&m(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null}},8872:(e,t,n)=>{"use strict";n(18237)},9033:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(95093))},9325:(e,t,n)=>{var o=n(34840),i="object"==typeof self&&self&&self.Object===Object&&self,r=o||i||Function("return this")();e.exports=r},9539:(e,t,n)=>{"use strict";var o=n(69565),i=n(28551),r=n(55966);e.exports=function(e,t,n){var s,a;i(e);try{if(!(s=r(e,"return"))){if("throw"===t)throw n;return n}s=o(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw n;if(a)throw s;return i(s),n}},9553:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var o=n(58296);function i(e){return o.A}},10124:(e,t,n)=>{var o=n(9325);e.exports=function(){return o.Date.now()}},10350:(e,t,n)=>{"use strict";var o=n(43724),i=n(39297),r=Function.prototype,s=o&&Object.getOwnPropertyDescriptor,a=i(r,"name"),l=a&&"something"===function(){}.name,c=a&&(!o||o&&s(r,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},10540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},10757:(e,t,n)=>{"use strict";var o=n(97751),i=n(94901),r=n(1625),s=n(7040),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&r(t.prototype,a(e))}},10786:(e,t,n)=>{"use strict";n.d(t,{AV:()=>g,DW:()=>s,EJ:()=>u,Ks:()=>l,P$:()=>v,YW:()=>f,lj:()=>m,nt:()=>a,p1:()=>d,tm:()=>p,tw:()=>b,uP:()=>h});var o=n(31216),i=n(60957);const r=e=>e.items,s=(0,o.M)(r,(e=>e.loading)),a=(0,o.M)(r,(e=>e.error)),l=(0,o.M)(r,(e=>e.itemMetaLookup)),c=[],d=(0,o.M)([r,(e,t)=>t],((e,t)=>e.itemOrderedChildrenIdsLookup[t??i.T2]??c)),u=(0,o.M)([r,(e,t)=>t],((e,t)=>e.itemModelLookup[t])),h=(0,o.M)([l,(e,t)=>t],((e,t)=>e[t??i.T2]??null)),m=(0,o.M)([l,(e,t)=>t],i.gE),p=(0,o.M)([r,h],((e,t)=>null==t?-1:e.itemChildrenIndexesLookup[t.parentId??i.T2][t.id])),f=(0,o.M)([h],(e=>e?.parentId??null)),g=(0,o.M)([h],(e=>e?.depth??0)),b=(0,o.M)([r],(e=>e.disabledItemsFocusable)),v=(0,o.M)([b,m],((e,t)=>!!e||!t))},11025:function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(95093))},11056:(e,t,n)=>{"use strict";var o=n(24913).f;e.exports=function(e,t,n){n in e||o(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},11080:(e,t,n)=>{"use strict";n.d(t,{L3:()=>h,M8:()=>m,VA:()=>p,aZ:()=>l}),n(16280);var o=n(63487),i=n(34647);const r=new WeakMap,{register:s,getItem:a,hasItem:l,getNames:c,getValues:d}=(0,i.A)("editors");function u(e){const t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},o.R.getSingleton().add("afterDestroy",(function(){t[this.guid]=null}))}function h(e,t){let n;if("function"==typeof e)r.get(e)||p(null,e),n=r.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=a(e)}if(!n)throw Error(`No editor registered under name "${e}"`);return n.getInstance(t)}function m(e){if("function"==typeof e)return e;if(!l(e))throw Error(`No registered editor found under "${e}" name`);return a(e).getConstructor()}function p(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);const n=new u(t);"string"==typeof e&&s(e,n),r.set(t,n)}},11470:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}var o=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],i=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,r=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:r,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:r,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(95093))},11713:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(95093))},11885:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(95093))},12211:(e,t,n)=>{"use strict";var o=n(79039);e.exports=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},12533:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(5544),i=n(26956),r=n(30981),s=n(1233);function a(e){return void 0!==e}function l(e,t){var n=t||{},l=n.defaultValue,c=n.value,d=n.onChange,u=n.postState,h=(0,s.A)((function(){return a(c)?c:a(l)?"function"==typeof l?l():l:"function"==typeof e?e():e})),m=(0,o.A)(h,2),p=m[0],f=m[1],g=void 0!==c?c:p,b=u?u(g):g,v=(0,i.A)(d),y=(0,s.A)([g]),w=(0,o.A)(y,2),C=w[0],_=w[1];return(0,r.o)((function(){var e=C[0];p!==e&&v(p,e)}),[C]),(0,r.o)((function(){a(c)||f(c)}),[c]),[b,(0,i.A)((function(e,t){f(e,t),_([g],t)}))]}},12897:(e,t,n)=>{var o=n(43693);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},13317:(e,t,n)=>{"use strict";n.d(t,{v:()=>i,z:()=>r}),n(98992),n(54520);var o=n(77325);function i(e,t){return(0,o.YD)(e,(e=>e-t.filter((t=>t<e)).length))}function r(e,t){const n=t[0],i=t.length;return(0,o.YD)(e,(e=>e>=n?e+i:e))}},13431:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,q:()=>s});const o=/^(\r\n|\n\r|\r|\n)/,i=/^[^\t\r\n]+/,r=/^\t/;function s(e){const t=[[""]];if(0===e.length)return t;let n,s=0,a=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(r))e=e.replace(r,""),s+=1,t[a][s]="";else if(e.match(o))e=e.replace(o,""),s=0,a+=1,t[a]=[""];else{let n="";if(e.startsWith('"')){let t=0,o=!0;for(;o;){const i=e.slice(0,1);'"'===i&&(t+=1),n+=i,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&t%2==0)&&(o=!1)}n=n.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,(e=>new Array(Math.floor(e.length/2)).fill('"').join("")))}else{const t=e.match(i);n=t?t[0]:"",e=e.slice(n.length)}t[a][s]=n}return t}function a(e){let t,n,o,i,r,s="";for(t=0,n=e.length;t<n;t+=1){for(i=e[t].length,o=0;o<i;o+=1)o>0&&(s+="\t"),r=e[t][o],"string"==typeof r?r.indexOf("\n")>-1?s+=`"${r.replace(/"/g,'""')}"`:s+=r:s+=null==r?"":r;t!==n-1&&(s+="\n")}return s}},13579:(e,t,n)=>{"use strict";var o=n(46518),i=n(69565),r=n(72652),s=n(79306),a=n(28551),l=n(1767),c=n(9539),d=n(84549)("some",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:d},{some:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(d)return i(d,this,e);var t=l(this),n=0;return r(t,(function(t,o){if(e(t,n++))return o()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},13609:(e,t,n)=>{"use strict";var o=n(46518),i=n(48981),r=n(26198),s=n(34527),a=n(84606),l=n(96837);o({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=i(this),n=r(t),o=arguments.length;if(o){l(n+o);for(var c=n;c--;){var d=c+o;c in t?t[d]=t[c]:a(t,d)}for(var u=0;u<o;u++)t[u]=arguments[u]}return s(t,n+o)}})},13925:(e,t,n)=>{"use strict";var o=n(20034);e.exports=function(e){return o(e)||null===e}},13968:(e,t,n)=>{"use strict";function o(e){return window.requestAnimationFrame(e)}function i(e){window.cancelAnimationFrame(e)}function r(){return"ontouchstart"in window}function s(){return"undefined"!=typeof window}let a;function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a||(a="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1,a)}n.d(t,{II:()=>l,Nt:()=>s,uU:()=>i,xi:()=>o,yd:()=>r})},14601:(e,t,n)=>{"use strict";var o=n(97751),i=n(39297),r=n(66699),s=n(1625),a=n(52967),l=n(77740),c=n(11056),d=n(23167),u=n(32603),h=n(77584),m=n(80747),p=n(43724),f=n(96395);e.exports=function(e,t,n,g){var b="stackTraceLimit",v=g?2:1,y=e.split("."),w=y[y.length-1],C=o.apply(null,y);if(C){var _=C.prototype;if(!f&&i(_,"cause")&&delete _.cause,!n)return C;var S=o("Error"),M=t((function(e,t){var n=u(g?t:e,void 0),o=g?new C(e):new C;return void 0!==n&&r(o,"message",n),m(o,M,o.stack,2),this&&s(_,this)&&d(o,this,M),arguments.length>v&&h(o,arguments[v]),o}));if(M.prototype=_,"Error"!==w?a?a(M,S):l(M,S,{name:!0}):p&&b in C&&(c(M,C,b),c(M,C,"prepareStackTrace")),l(M,C),!f)try{_.name!==w&&r(_,"name",w),_.constructor=M}catch(e){}return M}}},15024:(e,t,n)=>{"use strict";var o=n(46518),i=n(83650),r=n(39835);o({target:"Set",proto:!0,real:!0,forced:!n(84916)("symmetricDifference")||!r("symmetricDifference")},{symmetricDifference:i})},15265:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var o=n(77132),i=n(45748),r=n(50723),s=n(2616);var a=n(94925);const l=(e,t)=>new s.Y(e).setA(t).toRgbString(),c=(e,t)=>new s.Y(e).darken(t).toHexString(),d=e=>{const t=(0,i.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},u=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:l(o,.88),colorTextSecondary:l(o,.65),colorTextTertiary:l(o,.45),colorTextQuaternary:l(o,.25),colorFill:l(o,.15),colorFillSecondary:l(o,.06),colorFillTertiary:l(o,.04),colorFillQuaternary:l(o,.02),colorBgSolid:l(o,1),colorBgSolidHover:l(o,.75),colorBgSolidActive:l(o,.95),colorBgLayout:c(n,4),colorBgContainer:c(n,0),colorBgElevated:c(n,0),colorBgSpotlight:l(o,.85),colorBgBlur:"transparent",colorBorder:c(n,15),colorBorderSecondary:c(n,6)}},h=(0,o.an)((function(e){i.uy.pink=i.uy.magenta,i.UA.pink=i.UA.magenta;const t=Object.keys(r.r).map((t=>{const n=e[t]===i.uy[t]?i.UA[t]:(0,i.cM)(e[t]);return Array.from({length:10},(()=>1)).reduce(((e,o,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:o,colorWarning:i,colorError:r,colorInfo:a,colorPrimary:l,colorBgBase:c,colorTextBase:d}=e,u=t(l),h=t(o),m=t(i),p=t(r),f=t(a),g=n(c,d),b=t(e.colorLink||e.colorInfo),v=new s.Y(p[1]).mix(new s.Y(p[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:v,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new s.Y("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:d,generateNeutralColorPalettes:u})),(e=>{const t=(0,a.A)(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight)),i=n[1],r=n[0],s=n[2],l=o[1],c=o[0],d=o[2];return{fontSizeSM:r,fontSize:i,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:d,lineHeightSM:c,fontHeight:Math.round(l*i),fontHeightLG:Math.round(d*s),fontHeightSM:Math.round(c*r),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}})(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:i+1},(e=>{let t=e,n=e,o=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}})(o))}(e))})),m=h},15411:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(31601),i=n.n(o),r=n(76314),s=n.n(r)()(i());s.push([e.id,'.tabulator{background-color:#888;border:1px solid #999;font-size:14px;overflow:hidden;position:relative;text-align:left;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select,.tabulator.tabulator-ranges .tabulator-cell:not(.tabulator-editing){user-select:none}.tabulator .tabulator-header{background-color:#e6e6e6;border-bottom:1px solid #999;box-sizing:border-box;color:#555;font-weight:700;outline:none;overflow:hidden;position:relative;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;white-space:nowrap;width:100%}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{overflow:hidden;position:relative}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{display:inline-block}.tabulator .tabulator-header .tabulator-col{background:#e6e6e6;border-right:1px solid #aaa;box-sizing:border-box;display:inline-flex;flex-direction:column;justify-content:flex-start;overflow:hidden;position:relative;text-align:left;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col.tabulator-moving{background:#cdcdcd;border:1px solid #999;pointer-events:none;position:absolute}.tabulator .tabulator-header .tabulator-col.tabulator-range-highlight{background-color:#d6d6d6;color:#000}.tabulator .tabulator-header .tabulator-col.tabulator-range-selected{background-color:#3876ca;color:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;padding:4px;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap;width:100%}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{text-overflow:clip;white-space:normal}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{background:#fff;border:1px solid #999;box-sizing:border-box;padding:1px;width:100%}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{align-items:center;bottom:0;display:flex;position:absolute;right:4px;top:0}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:6px solid #bbb;border-left:6px solid transparent;border-right:6px solid transparent;height:0;width:0}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{border-top:1px solid #aaa;display:flex;margin-right:-1px;overflow:hidden;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{box-sizing:border-box;margin-top:2px;position:relative;text-align:center;width:100%}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{height:0;width:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:25px}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{background-color:#cdcdcd;cursor:pointer}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{border-bottom:6px solid #555;cursor:pointer}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:6px solid #bbb;border-top:none}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{border-bottom:6px solid #555;cursor:pointer}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:6px solid #666;border-top:none}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{border-top:6px solid #555;cursor:pointer}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid #666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{align-items:center;display:flex;justify-content:center;text-orientation:mixed;writing-mode:vertical-rl}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-bottom:20px;padding-right:0}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{bottom:auto;justify-content:center;left:0;right:0;top:4px}.tabulator .tabulator-header .tabulator-frozen{left:0;position:sticky;z-index:11}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #aaa}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #aaa}.tabulator .tabulator-header .tabulator-calcs-holder{background:#f3f3f3!important;border-bottom:1px solid #aaa;border-top:1px solid #aaa;box-sizing:border-box;display:inline-block}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#f3f3f3!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-header .tabulator-frozen-rows-holder{display:inline-block}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}.tabulator .tabulator-tableholder{-webkit-overflow-scrolling:touch;overflow:auto;position:relative;white-space:nowrap;width:100%}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-placeholder{align-items:center;box-sizing:border-box;display:flex;justify-content:center;min-width:100%;width:100%}.tabulator .tabulator-tableholder .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%}.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents{color:#ccc;display:inline-block;font-size:20px;font-weight:700;padding:10px;text-align:center;white-space:normal}.tabulator .tabulator-tableholder .tabulator-table{background-color:#fff;color:#333;display:inline-block;overflow:visible;position:relative;white-space:nowrap}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{background:#e2e2e2!important;font-weight:700}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid #aaa}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid #aaa}.tabulator .tabulator-tableholder .tabulator-range-overlay{inset:0;pointer-events:none;position:absolute;z-index:10}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range{border:1px solid #2975dd;box-sizing:border-box;position:absolute}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range.tabulator-range-active:after{background-color:#2975dd;border-radius:999px;bottom:-3px;content:"";height:6px;position:absolute;right:-3px;width:6px}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-active{border:2px solid #2975dd;box-sizing:border-box;position:absolute}.tabulator .tabulator-footer{background-color:#e6e6e6;border-top:1px solid #999;color:#555;font-weight:700;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;white-space:nowrap}.tabulator .tabulator-footer .tabulator-footer-contents{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:5px 10px}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs{margin-top:-5px;overflow-x:auto}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab{border:1px solid #999;border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-top:none;display:inline-block;font-size:.9em;padding:5px}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab:hover{cursor:pointer;opacity:.7}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab.tabulator-spreadsheet-tab-active{background:#fff}.tabulator .tabulator-footer .tabulator-calcs-holder{background:#f3f3f3!important;border-bottom:1px solid #aaa;border-top:1px solid #aaa;box-sizing:border-box;overflow:hidden;text-align:left;width:100%}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#f3f3f3!important;display:inline-block}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{border-bottom:none;margin-bottom:-5px}.tabulator .tabulator-footer>*+.tabulator-page-counter{margin-left:10px}.tabulator .tabulator-footer .tabulator-page-counter{font-weight:400}.tabulator .tabulator-footer .tabulator-paginator{color:#555;flex:1;font-family:inherit;font-size:inherit;font-weight:inherit;text-align:right}.tabulator .tabulator-footer .tabulator-page-size{border:1px solid #aaa;border-radius:3px;display:inline-block;margin:0 5px;padding:2px 5px}.tabulator .tabulator-footer .tabulator-pages{margin:0 7px}.tabulator .tabulator-footer .tabulator-page{background:hsla(0,0%,100%,.2);border:1px solid #aaa;border-radius:3px;display:inline-block;margin:0 2px;padding:2px 5px}.tabulator .tabulator-footer .tabulator-page.active{color:#d00}.tabulator .tabulator-footer .tabulator-page:disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-footer .tabulator-page:not(disabled):hover{background:rgba(0,0,0,.2);color:#fff;cursor:pointer}}.tabulator .tabulator-col-resize-handle{display:inline-block;margin-left:-3px;margin-right:-3px;position:relative;vertical-align:middle;width:6px;z-index:11}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{margin-right:0;width:3px}.tabulator .tabulator-col-resize-guide{background-color:#999;height:100%;margin-left:-.5px;opacity:.5;position:absolute;top:0;width:4px}.tabulator .tabulator-row-resize-guide{background-color:#999;height:4px;left:0;margin-top:-.5px;opacity:.5;position:absolute;width:100%}.tabulator .tabulator-alert{align-items:center;background:rgba(0,0,0,.4);display:flex;height:100%;left:0;position:absolute;text-align:center;top:0;width:100%;z-index:100}.tabulator .tabulator-alert .tabulator-alert-msg{background:#fff;border-radius:10px;display:inline-block;font-size:16px;font-weight:700;margin:0 auto;padding:10px 20px}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{border:4px solid #333;color:#000}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid #d00;color:#590000}.tabulator-row{background-color:#fff;box-sizing:border-box;min-height:22px;position:relative}.tabulator-row.tabulator-row-even{background-color:#efefef}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:#bbb;cursor:pointer}}.tabulator-row.tabulator-selected{background-color:#9abcea}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:hover{background-color:#769bcc;cursor:pointer}}.tabulator-row.tabulator-row-moving{background:#fff;border:1px solid #000}.tabulator-row.tabulator-moving{border-bottom:1px solid #aaa;border-top:1px solid #aaa;pointer-events:none;position:absolute;z-index:15}.tabulator-row.tabulator-range-highlight .tabulator-cell.tabulator-range-row-header{background-color:#d6d6d6;color:#000}.tabulator-row.tabulator-range-highlight.tabulator-range-selected .tabulator-cell.tabulator-range-row-header,.tabulator-row.tabulator-range-selected .tabulator-cell.tabulator-range-row-header{background-color:#3876ca;color:#fff}.tabulator-row .tabulator-row-resize-handle{bottom:0;height:5px;left:0;position:absolute;right:0}.tabulator-row .tabulator-row-resize-handle.prev{bottom:auto;top:0}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{border-bottom:1px solid #aaa;border-top:1px solid #aaa;box-sizing:border-box;padding:5px}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-cell{border-right:1px solid #aaa;box-sizing:border-box;display:inline-block;outline:none;overflow:hidden;padding:4px;position:relative;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.tabulator-row .tabulator-cell.tabulator-row-header{background:#e6e6e6;border-bottom:1px solid #aaa;border-right:1px solid #999}.tabulator-row .tabulator-cell.tabulator-frozen{background-color:inherit;display:inline-block;left:0;position:sticky;z-index:11}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid #aaa}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid #aaa}.tabulator-row .tabulator-cell.tabulator-editing{border:1px solid #1d68cd;outline:none;padding:0}.tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-cell.tabulator-editing select{background:transparent;border:1px;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:1px solid #d00}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{background:transparent;border:1px;color:#d00}.tabulator-row .tabulator-cell.tabulator-row-handle{align-items:center;display:inline-flex;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{background:#666;height:3px;margin-top:2px;width:100%}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-only-cell-selected):not(.tabulator-range-row-header){background-color:#9abcea}.tabulator-row .tabulator-cell .tabulator-data-tree-branch-empty{display:inline-block;width:7px}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{border-bottom:2px solid #aaa;border-bottom-left-radius:1px;border-left:2px solid #aaa;display:inline-block;height:9px;margin-right:5px;margin-top:-9px;vertical-align:middle;width:7px}.tabulator-row .tabulator-cell .tabulator-data-tree-control{align-items:center;background:rgba(0,0,0,.1);border:1px solid #333;border-radius:2px;display:inline-flex;height:11px;justify-content:center;margin-right:5px;overflow:hidden;vertical-align:middle;width:11px}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-data-tree-control:hover{background:rgba(0,0,0,.2);cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse{background:transparent;display:inline-block;height:7px;position:relative;width:1px}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{background:#333;content:"";height:1px;left:-3px;position:absolute;top:3px;width:7px}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand{background:#333;display:inline-block;height:7px;position:relative;width:1px}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{background:#333;content:"";height:1px;left:-3px;position:absolute;top:3px;width:7px}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{align-items:center;background:#666;border-radius:20px;color:#fff;display:inline-flex;font-size:1.1em;font-weight:700;height:15px;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;width:15px}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{cursor:pointer;opacity:.7}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:#fff}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-light{border-radius:14px;display:inline-block;height:14px;width:14px}.tabulator-row.tabulator-group{background:#ccc;border-bottom:1px solid #999;border-right:1px solid #aaa;border-top:1px solid #999;box-sizing:border-box;font-weight:700;min-width:100%;padding:5px 5px 5px 10px}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{background-color:rgba(0,0,0,.1);cursor:pointer}}.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{border-bottom:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;margin-right:10px}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-block}.tabulator-row.tabulator-group .tabulator-arrow{border-bottom:6px solid transparent;border-left:6px solid #666;border-right:0;border-top:6px solid transparent;display:inline-block;height:0;margin-right:16px;vertical-align:middle;width:0}.tabulator-row.tabulator-group span{color:#d00;margin-left:10px}.tabulator-toggle{background:#dcdcdc;border:1px solid #ccc;box-sizing:border-box;display:flex;flex-direction:row}.tabulator-toggle.tabulator-toggle-on{background:#1c6cc2}.tabulator-toggle .tabulator-toggle-switch{background:#fff;border:1px solid #ccc;box-sizing:border-box}.tabulator-popup-container{-webkit-overflow-scrolling:touch;background:#fff;border:1px solid #aaa;box-shadow:0 0 5px 0 rgba(0,0,0,.2);box-sizing:border-box;display:inline-block;font-size:14px;overflow-y:auto;position:absolute;z-index:10000}.tabulator-popup{border-radius:3px;padding:5px}.tabulator-tooltip{border-radius:2px;box-shadow:none;font-size:12px;max-width:Min(500px,100%);padding:3px 5px;pointer-events:none}.tabulator-menu .tabulator-menu-item{box-sizing:border-box;padding:5px 10px;position:relative;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{background:#efefef;cursor:pointer}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{border-color:#aaa;border-style:solid;border-width:1px 1px 0 0;content:"";display:inline-block;height:7px;position:absolute;right:10px;top:calc(5px + .4em);transform:rotate(45deg);vertical-align:top;width:7px}.tabulator-menu .tabulator-menu-separator{border-top:1px solid #aaa}.tabulator-edit-list{-webkit-overflow-scrolling:touch;font-size:14px;max-height:200px;overflow-y:auto}.tabulator-edit-list .tabulator-edit-list-item{color:#333;outline:none;padding:4px}.tabulator-edit-list .tabulator-edit-list-item.active{background:#1d68cd;color:#fff}.tabulator-edit-list .tabulator-edit-list-item.active.focused{outline:1px solid hsla(0,0%,100%,.5)}.tabulator-edit-list .tabulator-edit-list-item.focused{outline:1px solid #1d68cd}@media (hover:hover) and (pointer:fine){.tabulator-edit-list .tabulator-edit-list-item:hover{background:#1d68cd;color:#fff;cursor:pointer}}.tabulator-edit-list .tabulator-edit-list-placeholder{color:#333;padding:4px;text-align:center}.tabulator-edit-list .tabulator-edit-list-group{border-bottom:1px solid #aaa;color:#333;font-weight:700;padding:6px 4px 4px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-2,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-2{padding-left:12px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-3,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-3{padding-left:20px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-4,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-4{padding-left:28px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-5,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-5{padding-left:36px}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{direction:rtl;text-align:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{border-left:1px solid #aaa;border-right:initial;text-align:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-left:-1px;margin-right:0}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-left:25px;padding-right:0}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{left:8px;right:auto}.tabulator.tabulator-rtl .tabulator-tableholder .tabulator-range-overlay .tabulator-range.tabulator-range-active:after{background-color:#2975dd;border-radius:999px;bottom:-3px;content:"";height:6px;left:-3px;position:absolute;right:auto;width:6px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-left:1px solid #aaa;border-right:initial}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{border-bottom-left-radius:0;border-bottom-right-radius:1px;border-left:initial;border-right:2px solid #aaa;margin-left:5px;margin-right:0}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-control{margin-left:5px;margin-right:0}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid #aaa}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid #aaa}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{margin-left:0;margin-right:-3px;width:3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}.tabulator-print-fullscreen{bottom:0;left:0;position:absolute;right:0;top:0;z-index:10000}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{border-bottom:2px solid #aaa;border-bottom-left-radius:1px;border-left:2px solid #aaa;display:inline-block;height:9px;margin-right:5px;margin-top:-9px;vertical-align:middle;width:7px}.tabulator-print-table .tabulator-print-table-group{background:#ccc;border-bottom:1px solid #999;border-right:1px solid #aaa;border-top:1px solid #999;box-sizing:border-box;font-weight:700;min-width:100%;padding:5px 5px 5px 10px}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{background-color:rgba(0,0,0,.1);cursor:pointer}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{border-bottom:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;margin-right:10px}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group .tabulator-arrow{border-bottom:6px solid transparent;border-left:6px solid #666;border-right:0;border-top:6px solid transparent;display:inline-block;height:0;margin-right:16px;vertical-align:middle;width:0}.tabulator-print-table .tabulator-print-table-group span{color:#d00;margin-left:10px}.tabulator-print-table .tabulator-data-tree-control{align-items:center;background:rgba(0,0,0,.1);border:1px solid #333;border-radius:2px;display:inline-flex;height:11px;justify-content:center;margin-right:5px;overflow:hidden;vertical-align:middle;width:11px}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-data-tree-control:hover{background:rgba(0,0,0,.2);cursor:pointer}}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse{background:transparent;display:inline-block;height:7px;position:relative;width:1px}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{background:#333;content:"";height:1px;left:-3px;position:absolute;top:3px;width:7px}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand{background:#333;display:inline-block;height:7px;position:relative;width:1px}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{background:#333;content:"";height:1px;left:-3px;position:absolute;top:3px;width:7px}',""]);const a=s},15867:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(95093))},16193:(e,t,n)=>{"use strict";var o=n(79504),i=Error,r=o("".replace),s=String(new i("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(s);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=r(e,a,"");return e}},16280:(e,t,n)=>{"use strict";var o=n(46518),i=n(44576),r=n(18745),s=n(14601),a="WebAssembly",l=i[a],c=7!==new Error("e",{cause:7}).cause,d=function(e,t){var n={};n[e]=s(e,t,c),o({global:!0,constructor:!0,arity:1,forced:c},n)},u=function(e,t){if(l&&l[e]){var n={};n[e]=s(a+"."+e,t,c),o({target:a,stat:!0,constructor:!0,arity:1,forced:c},n)}};d("Error",(function(e){return function(t){return r(e,this,arguments)}})),d("EvalError",(function(e){return function(t){return r(e,this,arguments)}})),d("RangeError",(function(e){return function(t){return r(e,this,arguments)}})),d("ReferenceError",(function(e){return function(t){return r(e,this,arguments)}})),d("SyntaxError",(function(e){return function(t){return r(e,this,arguments)}})),d("TypeError",(function(e){return function(t){return r(e,this,arguments)}})),d("URIError",(function(e){return function(t){return r(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return r(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return r(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return r(e,this,arguments)}}))},16300:(e,t,n)=>{"use strict";function o(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}n.d(t,{A:()=>o})},16618:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(o=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),o%10==1&&o%100!=11?i[0]:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?i[1]:i[2]);var o,i}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(95093))},16823:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},17160:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(95093))},17357:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(95093))},17538:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(95093))},17642:(e,t,n)=>{"use strict";var o=n(46518),i=n(83440),r=n(79039);o({target:"Set",proto:!0,real:!0,forced:!n(84916)("difference",(function(e){return 0===e.size}))||r((function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size}))},{difference:i})},17730:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),o=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(95093))},18014:(e,t,n)=>{"use strict";var o=n(91291),i=Math.min;e.exports=function(e){var t=o(e);return t>0?i(t,9007199254740991):0}},18107:(e,t,n)=>{"use strict";var o=n(46518),i=n(48981),r=n(26198),s=n(91291),a=n(6469);o({target:"Array",proto:!0},{at:function(e){var t=i(this),n=r(t),o=s(e),a=o>=0?o:n+o;return a<0||a>=n?void 0:t[a]}}),a("at")},18111:(e,t,n)=>{"use strict";var o=n(46518),i=n(44576),r=n(90679),s=n(28551),a=n(94901),l=n(42787),c=n(62106),d=n(97040),u=n(79039),h=n(39297),m=n(78227),p=n(57657).IteratorPrototype,f=n(43724),g=n(96395),b="constructor",v="Iterator",y=m("toStringTag"),w=TypeError,C=i[v],_=g||!a(C)||C.prototype!==p||!u((function(){C({})})),S=function(){if(r(this,p),l(this)===p)throw new w("Abstract class Iterator not directly constructable")},M=function(e,t){f?c(p,e,{configurable:!0,get:function(){return t},set:function(t){if(s(this),this===p)throw new w("You can't redefine this property");h(this,e)?this[e]=t:d(this,e,t)}}):p[e]=t};h(p,y)||M(y,v),!_&&h(p,b)&&p[b]!==Object||M(b,S),S.prototype=p,o({global:!0,constructor:!0,forced:_},{Iterator:S})},18237:(e,t,n)=>{"use strict";var o=n(46518),i=n(72652),r=n(79306),s=n(28551),a=n(1767),l=n(9539),c=n(84549),d=n(18745),u=n(79039),h=TypeError,m=u((function(){[].keys().reduce((function(){}),void 0)})),p=!m&&c("reduce",h);o({target:"Iterator",proto:!0,real:!0,forced:m||p},{reduce:function(e){s(this);try{r(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,n=t?void 0:arguments[1];if(p)return d(p,this,t?[e]:[e,n]);var o=a(this),c=0;if(i(o,(function(o){t?(t=!1,n=o):n=e(n,o,c),c++}),{IS_RECORD:!0}),t)throw new h("Reduce of empty iterator with no initial value");return n}})},18745:(e,t,n)=>{"use strict";var o=n(40616),i=Function.prototype,r=i.apply,s=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?s.bind(r):function(){return s.apply(r,arguments)})},18877:(e,t,n)=>{"use strict";n.d(t,{_n:()=>r,rJ:()=>s});var o=n(96540);function i(){}n(68210);const r=o.createContext({}),s=()=>{const e=()=>{};return e.deprecated=i,e}},19268:(e,t,n)=>{"use strict";n.d(t,{P:()=>r,y:()=>i});var o=n(96540);const i=o.createContext({classes:{},slots:{},slotProps:{}}),r=()=>o.useContext(i)},19462:(e,t,n)=>{"use strict";var o=n(69565),i=n(2360),r=n(66699),s=n(56279),a=n(78227),l=n(91181),c=n(55966),d=n(57657).IteratorPrototype,u=n(62529),h=n(9539),m=n(91385),p=a("toStringTag"),f="IteratorHelper",g="WrapForValidIterator",b="normal",v="throw",y=l.set,w=function(e){var t=l.getterFor(e?g:f);return s(i(d),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return u(void 0,!0);try{var o=n.nextHandler();return n.returnHandlerResult?o:u(o,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),i=n.iterator;if(n.done=!0,e){var r=c(i,"return");return r?o(r,i):u(void 0,!0)}if(n.inner)try{h(n.inner.iterator,b)}catch(e){return h(i,v,e)}if(n.openIters)try{m(n.openIters,b)}catch(e){return h(i,v,e)}return i&&h(i,b),u(void 0,!0)}})},C=w(!0),_=w(!1);r(_,p,"Iterator Helper"),e.exports=function(e,t,n){var o=function(o,i){i?(i.iterator=o.iterator,i.next=o.next):i=o,i.type=t?g:f,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,y(this,i)};return o.prototype=t?C:_,o}},19617:(e,t,n)=>{"use strict";var o=n(25397),i=n(35610),r=n(26198),s=function(e){return function(t,n,s){var a=o(t),l=r(a);if(0===l)return!e&&-1;var c,d=i(s,l);if(e&&n!=n){for(;l>d;)if((c=a[d++])!=c)return!0}else for(;l>d;d++)if((e||d in a)&&a[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},20034:(e,t,n)=>{"use strict";var o=n(94901);e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},20091:(e,t,n)=>{"use strict";n.d(t,{$w:()=>ee,Bq:()=>y,C0:()=>ie,D1:()=>K,DK:()=>z,De:()=>w,E3:()=>Z,Gq:()=>F,I6:()=>te,Ie:()=>_,JC:()=>$,K7:()=>D,LL:()=>W,Ly:()=>a,Mv:()=>M,ON:()=>X,Oe:()=>d,PA:()=>r,Pe:()=>h,Sx:()=>k,Vp:()=>A,XJ:()=>G,Xu:()=>B,Xy:()=>Q,ZK:()=>J,aM:()=>ne,aO:()=>u,c6:()=>E,cY:()=>T,cr:()=>c,eU:()=>j,fX:()=>P,gd:()=>N,gj:()=>oe,h$:()=>I,hY:()=>L,iQ:()=>b,kp:()=>l,nB:()=>g,p6:()=>H,sb:()=>re,v1:()=>R,vZ:()=>V,v_:()=>O,vg:()=>C,vy:()=>v,xM:()=>Y,yn:()=>m,yq:()=>s,zN:()=>x,zO:()=>q}),n(16280),n(44114),n(98992),n(54520),n(3949);var o=n(24360),i=n(66422);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,o=null,i=e;for(;null!==i;){if(n===t){o=i;break}i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i=i.host:(n+=1,i=i.parentNode)}return o}function s(e,t){const n=e.closest(".handsontable");return!!n&&(n.parentNode===t||n===t)}function a(e){return function(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}(e)&&e.parent}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:o,DOCUMENT_FRAGMENT_NODE:i}=Node;let r=e;for(;null!=r&&r!==n;){const{nodeType:e,nodeName:n}=r;if(e===o&&(t.includes(n)||t.includes(r)))return r;const{host:s}=r;r=s&&e===i?s:r.parentNode}return null}function c(e,t,n){const o=[];let i=e;for(;i&&(i=l(i,t,n),i&&(!n||n.contains(i)));)o.push(i),i=i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i.host:i.parentNode;const r=o.length;return r?o[r-1]:null}function d(e,t){const n={element:void 0,classNames:[]};let o=e;for(;null!==o&&o!==e.ownerDocument.documentElement&&!n.element;){if("string"==typeof t&&o.classList.contains(t))n.element=o,n.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(o.classList).filter((e=>t.test(e)));e.length&&(n.element=o,n.classNames.push(...e))}o=o.parentElement}return n}function u(e,t){let n=e.parentNode,o=[];for("string"==typeof t?o=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):o.push(t);null!==n;){if(o.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function h(e){let t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t}function m(e,t,n){const o=n.parentElement.querySelector(`.ht_clone_${e}`);return o?o.contains(t):null}function p(e){return e&&e.length?e.filter((e=>!!e)):[]}function f(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];const n=[],o=[];return o.push(...e.filter((e=>{const o=e instanceof RegExp;return o&&t&&n.push(e),!o}))),t?{regexFree:o,regexes:n}:o}function g(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)}function b(e,t){"string"==typeof t&&(t=t.split(" ")),(t=p(t)).length>0&&e.classList.add(...t)}function v(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:n,regexes:o}=f(t,!0);n=p(n),n.length>0&&e.classList.remove(...n),o.forEach((t=>{e.classList.forEach((n=>{t.test(n)&&e.classList.remove(n)}))}))}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;Array.isArray(t)||(t=[[t,n]]),t.forEach((t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(...t)}))}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);const{regexFree:n,regexes:o}=f(t,!0);n.forEach((t=>{""!==t&&e.removeAttribute(t)})),o.forEach((t=>{e.getAttributeNames().forEach((n=>{t.test(n)&&e.removeAttribute(n)}))}))}function C(e){if(3===e.nodeType)e.parentNode.removeChild(e);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(e.nodeName)>-1){const t=e.childNodes;for(let e=t.length-1;e>=0;e--)C(t[e])}}function _(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const S=/(<(.*)>|&(.*);)/;function M(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];S.test(t)?e.innerHTML=n?(0,o.aj)(t):t:E(e,t)}function E(e,t){const n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?n.textContent=t:(_(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function x(e){const t=e.ownerDocument.documentElement,n=e.ownerDocument.defaultView;let o=e;for(;o!==t;){if(null===o)return!1;if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(o.host){if(o.host.impl)return x(o.host.impl);if(o.host)return x(o.host);throw new Error("Lost in Web Components world")}return!1}if("none"===n.getComputedStyle(o).display)return!1;o=o.parentNode}return!0}function k(e){const t=e.ownerDocument.defaultView;let n=e;for(;n.parentNode;){if("0px"===n.style.height||"0"===n.style.height)return"hidden"===t.getComputedStyle(n).overflow;n=n.parentNode}return!1}function T(e){const t=e.ownerDocument,n=t.defaultView,o=t.documentElement;let i,r,s,a=e;for(i=a.offsetLeft,r=a.offsetTop,s=a;(a=a.offsetParent)&&a!==t.body&&"offsetLeft"in a;)i+=a.offsetLeft,r+=a.offsetTop,s=a;return s&&"fixed"===s.style.position&&(i+=n.pageXOffset||o.scrollLeft,r+=n.pageYOffset||o.scrollTop),{left:i,top:r}}function R(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function A(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}function L(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e===t?R(t):e.scrollTop}function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e===t?A(t):e.scrollLeft}function D(e){let t=e.ownerDocument,n=t?t.defaultView:void 0;t||(t=e.document?e.document:e,n=t.defaultView);const o=["auto","scroll"];let i=e.parentNode;for(;i&&i.style&&t.body!==i;){let{overflow:e,overflowX:t,overflowY:r}=i.style;if([e,t,r].includes("scroll"))return i;if(({overflow:e,overflowX:t,overflowY:r}=n.getComputedStyle(i)),o.includes(e)||o.includes(t)||o.includes(r))return i;if(i.clientHeight<=i.scrollHeight+1&&(o.includes(r)||o.includes(e)))return i;if(i.clientWidth<=i.scrollWidth+1&&(o.includes(t)||o.includes(e)))return i;i=i.parentNode}return n}function H(e){return e.scrollHeight-e.clientHeight}function I(e){return e.scrollWidth-e.clientWidth}function P(e){const t=e.ownerDocument,n=t.defaultView;let o=e.parentNode;for(;o&&o.style&&t.body!==o;){if("visible"!==o.style.overflow&&""!==o.style.overflow)return o;const e=n.getComputedStyle(o),t=["scroll","hidden","auto"],i=e.getPropertyValue("overflow"),r=e.getPropertyValue("overflow-y"),s=e.getPropertyValue("overflow-x");if(t.includes(i)||t.includes(r)||t.includes(s))return o;o=o.parentNode}return n}function N(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===n)return"width"===t?`${n.innerWidth}px`:"height"===t?`${n.innerHeight}px`:void 0;const o=e.style[t];if(""!==o&&void 0!==o)return o;const i=n.getComputedStyle(e);return""!==i[t]&&void 0!==i[t]?i[t]:void 0}function F(e){return e.offsetWidth}function z(e){return e.offsetHeight}function j(e){return e.clientHeight||e.innerHeight}function Y(e){return e.clientWidth||e.innerWidth}function $(e){return e.selectionStart?e.selectionStart:0}function B(e){return e.selectionEnd?e.selectionEnd:0}function W(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.getSelection&&(e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges())}function V(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(o){const i=e.parentNode,r=i.style.display;i.style.display="block",e.setSelectionRange(t,n),i.style.display=r}}}let U;function G(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return void 0===U&&(U=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const n=e.createElement("div");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(t),(e.body||e.documentElement).appendChild(n);const o=t.offsetWidth;n.style.overflow="scroll";let i=t.offsetWidth;return o===i&&(i=n.clientWidth),(e.body||e.documentElement).removeChild(n),o-i}(e)),U}function K(e){return e instanceof Window?e.document.body.scrollHeight>e.innerHeight:e.offsetWidth!==e.clientWidth}function q(e){return e instanceof Window?e.document.body.scrollWidth>e.innerWidth:e.offsetHeight!==e.clientHeight}function X(e,t,n){e.style.transform=`translate3d(${t},${n},0)`}function J(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")}function Q(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function Z(e){return Q(e)&&!1===e.hasAttribute("data-hot-input")}function ee(e){return!e.parentNode}function te(e,t){new IntersectionObserver(((n,o)=>{n.forEach((n=>{n.isIntersecting&&null!==e.offsetParent&&(t(),o.unobserve(e))}))}),{root:e.ownerDocument.body}).observe(e)}function ne(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=e.ownerDocument,r=o.createRange(),s=o.defaultView.getSelection();y(e,"contenteditable",!0),n&&y(e,...(0,i.MG)()),t&&b(e,"invisibleSelection"),r.selectNodeContents(e),s.removeAllRanges(),s.addRange(r)}function oe(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e.ownerDocument.defaultView.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),n.removeAllRanges(),t&&v(e,"invisibleSelection"),e.removeAttribute("contenteditable")}function ie(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];ne(e,n),t(),oe(e,n)}function re(e){var t;const n=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView.Element;return!!(n&&null!==n&&e instanceof n)}},20116:(e,t,n)=>{"use strict";var o=n(46518),i=n(69565),r=n(72652),s=n(79306),a=n(28551),l=n(1767),c=n(9539),d=n(84549)("find",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:d},{find:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(d)return i(d,this,e);var t=l(this),n=0;return r(t,(function(t,o){if(e(t,n++))return o(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},20397:(e,t,n)=>{"use strict";var o=n(97751);e.exports=o("document","documentElement")},20488:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,h:()=>h});var o=n(82284),i=n(89379),r=n(60436),s=n(87695),a=n(16300);function l(e,t,n,o){if(!t.length)return n;var a,c=(0,s.A)(t),d=c[0],u=c.slice(1);return a=e||"number"!=typeof d?Array.isArray(e)?(0,r.A)(e):(0,i.A)({},e):[],o&&void 0===n&&1===u.length?delete a[d][u[0]]:a[d]=l(a[d],u,n,o),a}function c(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!(0,a.A)(e,t.slice(0,-1))?e:l(e,t,n,o)}function d(e){return Array.isArray(e)?[]:{}}var u="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=d(t[0]);return t.forEach((function(e){!function t(n,s){var l,h=new Set(s),m=(0,a.A)(e,n),p=Array.isArray(m);if(p||(l=m,"object"===(0,o.A)(l)&&null!==l&&Object.getPrototypeOf(l)===Object.prototype)){if(!h.has(m)){h.add(m);var f=(0,a.A)(i,n);p?i=c(i,n,[]):f&&"object"===(0,o.A)(f)||(i=c(i,n,d(m))),u(m).forEach((function(e){t([].concat((0,r.A)(n),[e]),h)}))}}else i=c(i,n,m)}([])})),i}},20838:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),o=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},20998:(e,t,n)=>{"use strict";function o(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>o})},21124:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(46343),i=n(14921);function r({props:e,name:t,defaultTheme:n,themeId:r}){let s=(0,i.A)(n);return r&&(s=s[r]||s),(0,o.A)({theme:s,name:t,props:e})}},21135:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},21827:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},21942:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,t:()=>r});var o=n(96148),i=n(1908);function r(e){return(0,i.Ay)("MuiDialogTitle",e)}const s=(0,o.A)("MuiDialogTitle",["root"])},22195:(e,t,n)=>{"use strict";var o=n(79504),i=o({}.toString),r=o("".slice);e.exports=function(e){return r(i(e),8,-1)}},22257:(e,t,n)=>{"use strict";n.d(t,{KN:()=>s,oh:()=>l,ub:()=>a}),n(44114),n(79978),n(98992),n(54520),n(81454),n(8872);var o=n(65615);const i={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},r=new RegExp(Object.keys(i).map((e=>`(${e})`)).join("|"),"gi");function s(e){const t=e.hasColHeaders(),n=e.hasRowHeaders(),i=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],r=e.getData(...i),s=r.length,a=s>0?r[0].length:0,l=["<table>","</table>"],c=t?["<thead>","</thead>"]:[],d=["<tbody>","</tbody>"],u=n?1:0,h=t?1:0;for(let i=0;i<s;i+=1){const s=t&&0===i,l=[];for(let t=0;t<a;t+=1){const a=!s&&n&&0===t;let c="";if(s)c=`<th>${e.getColHeader(t-u)}</th>`;else if(a)c=`<th>${e.getRowHeader(i-h)}</th>`;else{const n=r[i][t],{hidden:s,rowspan:a,colspan:l}=e.getCellMeta(i-h,t-u);if(!s){const e=[];if(a&&e.push(`rowspan="${a}"`),l&&e.push(`colspan="${l}"`),(0,o.Im)(n))c=`<td ${e.join(" ")}></td>`;else{const t=n.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");c=`<td ${e.join(" ")}>${t}</td>`}}}l.push(c)}const m=["<tr>",...l,"</tr>"].join("");s?c.splice(1,0,m):d.splice(-1,0,m)}return l.splice(1,0,c.join(""),d.join("")),l.join("")}function a(e){const t=e.length,n=["<table>"];for(let i=0;i<t;i+=1){const r=e[i],s=r.length,a=[];0===i&&n.push("<tbody>");for(let e=0;e<s;e+=1){const t=r[e],n=(0,o.Im)(t)?"":t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,(e=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(e.length-1)} </span>`)).replace(/\t/gi,"&#9;");a.push(`<td>${n}</td>`)}n.push("<tr>",...a,"</tr>"),i+1===t&&n.push("</tbody>")}return n.push("</table>"),n.join("")}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const n={},o=t.createDocumentFragment(),s=t.createElement("div");o.appendChild(s);let a=e;if("string"==typeof a){const e=a.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,(e=>{const t=e.match(/<td\b[^>]*?>/g)[0];return`${t}${e.substring(t.length,e.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(/<p.*?>/g,"\n").replace("\n","").replaceAll(/<\/(.*)>\s+$/gm,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^&nbsp;$/gm,"")}</td>`}));s.insertAdjacentHTML("afterbegin",`${e}`),a=s.querySelector("table")}if(!a||!function(e){return"TABLE"===(e&&e.nodeName||"")}(a))return;const l=s.querySelector('meta[name$="enerator"]'),c=null!==a.querySelector("tbody th"),d=a.querySelector("tr"),u=d?Array.from(d.cells).reduce(((e,t)=>e+t.colSpan),0)-(c?1:0):0,h=a.tFoot&&Array.from(a.tFoot.rows)||[],m=[];let p=!1,f=0,g=0;if(a.tHead){const e=Array.from(a.tHead.rows).filter((e=>{const t=null!==e.querySelector("td");return t&&m.push(e),!t}));f=e.length,p=f>0,f>1?n.nestedHeaders=Array.from(e).reduce(((e,t)=>{const n=Array.from(t.cells).reduce(((e,t,n)=>{if(c&&0===n)return e;const{colSpan:o,innerHTML:i}=t,r=o>1?{label:i,colspan:o}:i;return e.push(r),e}),[]);return e.push(n),e}),[]):p&&(n.colHeaders=Array.from(e[0].children).reduce(((e,t,n)=>(c&&0===n||e.push(t.innerHTML),e)),[]))}m.length&&(n.fixedRowsTop=m.length),h.length&&(n.fixedRowsBottom=h.length);const b=[...m,...Array.from(a.tBodies).reduce(((e,t)=>(e.push(...Array.from(t.rows)),e)),[]),...h];g=b.length;const v=new Array(g);for(let e=0;e<g;e++)v[e]=new Array(u);const y=[],w=[];for(let e=0;e<g;e++){const t=b[e],n=Array.from(t.cells),o=n.length;for(let t=0;t<o;t++){const o=n[t],{nodeName:s,innerHTML:a,rowSpan:c,colSpan:d}=o,u=v[e].findIndex((e=>void 0===e));if("TD"===s){if(c>1||d>1){for(let t=e;t<e+c;t++)if(t<g)for(let e=u;e<u+d;e++)v[t][e]=null;const t=o.getAttribute("style");t&&t.includes("mso-ignore:colspan")||y.push({col:u,row:e,rowspan:c,colspan:d})}let t="";t=l&&/excel/gi.test(l.content)?a.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):a.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),v[e][u]=t.replace(r,(e=>i[e]))}else w.push(a)}}return y.length&&(n.mergeCells=y),w.length&&(n.rowHeaders=w),v.length&&(n.data=v),n}},22274:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},22489:(e,t,n)=>{"use strict";var o=n(46518),i=n(69565),r=n(79306),s=n(28551),a=n(1767),l=n(19462),c=n(96319),d=n(96395),u=n(9539),h=n(30684),m=n(84549),p=!d&&!h("filter",(function(){})),f=!d&&!p&&m("filter",TypeError),g=d||p||f,b=l((function(){for(var e,t,n=this.iterator,o=this.predicate,r=this.next;;){if(e=s(i(r,n)),this.done=!!e.done)return;if(t=e.value,c(n,o,[t,this.counter++],!0))return t}}));o({target:"Iterator",proto:!0,real:!0,forced:g},{filter:function(e){s(this);try{r(e)}catch(e){u(this,"throw",e)}return f?i(f,this,e):new b(a(this),{predicate:e})}})},22812:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},22969:(e,t,n)=>{"use strict";var o=n(85072),i=n.n(o),r=n(97825),s=n.n(r),a=n(77659),l=n.n(a),c=n(32675),d=n.n(c),u=n(10540),h=n.n(u),m=n(41113),p=n.n(m),f=n(47400),g={};g.styleTagTransform=p(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=h(),i()(f.A,g),f.A&&f.A.locals&&f.A.locals},23029:(e,t,n)=>{"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>o})},23167:(e,t,n)=>{"use strict";var o=n(94901),i=n(20034),r=n(52967);e.exports=function(e,t,n){var s,a;return r&&o(s=t.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&r(e,a),e}},23215:(e,t,n)=>{"use strict";n(81148)},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},23827:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(95093))},24360:(e,t,n)=>{"use strict";n.d(t,{Pi:()=>re,DU:()=>ie,aj:()=>le,Kq:()=>ae,V2:()=>se,Ob:()=>oe}),n(44114);const{entries:o,setPrototypeOf:i,isFrozen:r,getPrototypeOf:s,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:c,create:d}=Object,{apply:u,construct:h}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),u||(u=function(e,t,n){return e.apply(t,n)}),h||(h=function(e,t){return new e(...t)});const m=T(Array.prototype.forEach),p=T(Array.prototype.lastIndexOf),f=T(Array.prototype.pop),g=T(Array.prototype.push),b=T(Array.prototype.splice),v=T(String.prototype.toLowerCase),y=T(String.prototype.toString),w=T(String.prototype.match),C=T(String.prototype.replace),_=T(String.prototype.indexOf),S=T(String.prototype.trim),M=T(Object.prototype.hasOwnProperty),E=T(RegExp.prototype.test),x=(k=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(k,t)});var k;function T(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return u(e,t,o)}}function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;i&&i(e,null);let o=t.length;for(;o--;){let i=t[o];if("string"==typeof i){const e=n(i);e!==i&&(r(t)||(t[o]=e),i=e)}e[i]=!0}return e}function A(e){for(let t=0;t<e.length;t++)M(e,t)||(e[t]=null);return e}function L(e){const t=d(null);for(const[n,i]of o(e))M(e,n)&&(Array.isArray(i)?t[n]=A(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=L(i):t[n]=i);return t}function O(e,t){for(;null!==e;){const n=a(e,t);if(n){if(n.get)return T(n.get);if("function"==typeof n.value)return T(n.value)}e=s(e)}return function(){return null}}const D=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","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"]),H=l(["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"]),I=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),N=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),F=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=l(["#text"]),j=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Y=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=c(/<%[\w\W]*|[\w\W]*%>/gm),U=c(/\$\{[\w\W]*/gm),G=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),K=c(/^aria-[\-\w]+$/),q=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=c(/^(?:\w+script|data):/i),J=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=c(/^html$/i),Z=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:K,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:Z,DATA_ATTR:G,DOCTYPE_NAME:Q,ERB_EXPR:V,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:X,MUSTACHE_EXPR:W,TMPLIT_EXPR:U});const te=function(){return"undefined"==typeof window?null:window};var ne=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const r=i,s=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:u,Element:h,NodeFilter:k,NamedNodeMap:T=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:A,DOMParser:W,trustedTypes:V}=t,U=h.prototype,G=O(U,"cloneNode"),K=O(U,"remove"),X=O(U,"nextSibling"),J=O(U,"childNodes"),Z=O(U,"parentNode");if("function"==typeof c){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let ne,oe="";const{implementation:ie,createNodeIterator:re,createDocumentFragment:se,getElementsByTagName:ae}=i,{importNode:le}=r;let ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof o&&"function"==typeof Z&&ie&&void 0!==ie.createHTMLDocument;const{MUSTACHE_EXPR:de,ERB_EXPR:ue,TMPLIT_EXPR:he,DATA_ATTR:me,ARIA_ATTR:pe,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:be}=ee;let{IS_ALLOWED_URI:ve}=ee,ye=null;const we=R({},[...D,...H,...I,...N,...z]);let Ce=null;const _e=R({},[...j,...Y,...$,...B]);let Se=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Me=null,Ee=null,xe=!0,ke=!0,Te=!1,Re=!0,Ae=!1,Le=!0,Oe=!1,De=!1,He=!1,Ie=!1,Pe=!1,Ne=!1,Fe=!0,ze=!1,je=!0,Ye=!1,$e={},Be=null;const We=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ve=null;const Ue=R({},["audio","video","img","source","image","track"]);let Ge=null;const Ke=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Qe=Je,Ze=!1,et=null;const tt=R({},[qe,Xe,Je],y);let nt=R({},["mi","mo","mn","ms","mtext"]),ot=R({},["annotation-xml"]);const it=R({},["title","style","font","a","script"]);let rt=null;const st=["application/xhtml+xml","text/html"];let at=null,lt=null;const ct=i.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"==typeof e||(e={}),e=L(e),rt=-1===st.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===rt?y:v,ye=M(e,"ALLOWED_TAGS")?R({},e.ALLOWED_TAGS,at):we,Ce=M(e,"ALLOWED_ATTR")?R({},e.ALLOWED_ATTR,at):_e,et=M(e,"ALLOWED_NAMESPACES")?R({},e.ALLOWED_NAMESPACES,y):tt,Ge=M(e,"ADD_URI_SAFE_ATTR")?R(L(Ke),e.ADD_URI_SAFE_ATTR,at):Ke,Ve=M(e,"ADD_DATA_URI_TAGS")?R(L(Ue),e.ADD_DATA_URI_TAGS,at):Ue,Be=M(e,"FORBID_CONTENTS")?R({},e.FORBID_CONTENTS,at):We,Me=M(e,"FORBID_TAGS")?R({},e.FORBID_TAGS,at):L({}),Ee=M(e,"FORBID_ATTR")?R({},e.FORBID_ATTR,at):L({}),$e=!!M(e,"USE_PROFILES")&&e.USE_PROFILES,xe=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ae=e.SAFE_FOR_TEMPLATES||!1,Le=!1!==e.SAFE_FOR_XML,Oe=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,Pe=e.RETURN_DOM_FRAGMENT||!1,Ne=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,ze=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,ve=e.ALLOWED_URI_REGEXP||q,Qe=e.NAMESPACE||Je,nt=e.MATHML_TEXT_INTEGRATION_POINTS||nt,ot=e.HTML_INTEGRATION_POINTS||ot,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(ke=!1),Pe&&(Ie=!0),$e&&(ye=R({},z),Ce=[],!0===$e.html&&(R(ye,D),R(Ce,j)),!0===$e.svg&&(R(ye,H),R(Ce,Y),R(Ce,B)),!0===$e.svgFilters&&(R(ye,I),R(Ce,Y),R(Ce,B)),!0===$e.mathMl&&(R(ye,N),R(Ce,$),R(Ce,B))),e.ADD_TAGS&&(ye===we&&(ye=L(ye)),R(ye,e.ADD_TAGS,at)),e.ADD_ATTR&&(Ce===_e&&(Ce=L(Ce)),R(Ce,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&R(Ge,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(Be===We&&(Be=L(Be)),R(Be,e.FORBID_CONTENTS,at)),je&&(ye["#text"]=!0),Oe&&R(ye,["html","head","body"]),ye.table&&(R(ye,["tbody"]),delete Me.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,oe=ne.createHTML("")}else void 0===ne&&(ne=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(V,s)),null!==ne&&"string"==typeof oe&&(oe=ne.createHTML(""));l&&l(e),lt=e}},ht=R({},[...H,...I,...P]),mt=R({},[...N,...F]),pt=function(e){g(n.removed,{element:e});try{Z(e).removeChild(e)}catch(t){K(e)}},ft=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ie||Pe)try{pt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},gt=function(e){let t=null,n=null;if(He)e="<remove></remove>"+e;else{const t=w(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===rt&&Qe===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ne?ne.createHTML(e):e;if(Qe===Je)try{t=(new W).parseFromString(o,rt)}catch(e){}if(!t||!t.documentElement){t=ie.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=Ze?oe:o}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),Qe===Je?ae.call(t,Oe?"html":"body")[0]:Oe?t.documentElement:r},bt=function(e){return re.call(e.ownerDocument||e,e,k.SHOW_ELEMENT|k.SHOW_COMMENT|k.SHOW_TEXT|k.SHOW_PROCESSING_INSTRUCTION|k.SHOW_CDATA_SECTION,null)},vt=function(e){return e instanceof A&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof T)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},yt=function(e){return"function"==typeof u&&e instanceof u};function wt(e,t,o){m(e,(e=>{e.call(n,t,o,lt)}))}const Ct=function(e){let t=null;if(wt(ce.beforeSanitizeElements,e,null),vt(e))return pt(e),!0;const o=at(e.nodeName);if(wt(ce.uponSanitizeElement,e,{tagName:o,allowedTags:ye}),Le&&e.hasChildNodes()&&!yt(e.firstElementChild)&&E(/<[/\w!]/g,e.innerHTML)&&E(/<[/\w!]/g,e.textContent))return pt(e),!0;if(7===e.nodeType)return pt(e),!0;if(Le&&8===e.nodeType&&E(/<[/\w]/g,e.data))return pt(e),!0;if(!ye[o]||Me[o]){if(!Me[o]&&St(o)){if(Se.tagNameCheck instanceof RegExp&&E(Se.tagNameCheck,o))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(o))return!1}if(je&&!Be[o]){const t=Z(e)||e.parentNode,n=J(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const i=G(n[o],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,X(e))}}return pt(e),!0}return e instanceof h&&!function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=v(e.tagName),o=v(t.tagName);return!!et[e.namespaceURI]&&(e.namespaceURI===Xe?t.namespaceURI===Je?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===o||nt[o]):Boolean(ht[n]):e.namespaceURI===qe?t.namespaceURI===Je?"math"===n:t.namespaceURI===Xe?"math"===n&&ot[o]:Boolean(mt[n]):e.namespaceURI===Je?!(t.namespaceURI===Xe&&!ot[o])&&!(t.namespaceURI===qe&&!nt[o])&&!mt[n]&&(it[n]||!ht[n]):!("application/xhtml+xml"!==rt||!et[e.namespaceURI]))}(e)?(pt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!E(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ae&&3===e.nodeType&&(t=e.textContent,m([de,ue,he],(e=>{t=C(t,e," ")})),e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)),wt(ce.afterSanitizeElements,e,null),!1):(pt(e),!0)},_t=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in i||n in ct))return!1;if(ke&&!Ee[t]&&E(me,t));else if(xe&&E(pe,t));else if(!Ce[t]||Ee[t]){if(!(St(e)&&(Se.tagNameCheck instanceof RegExp&&E(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&E(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&E(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ge[t]);else if(E(ve,C(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==_(n,"data:")||!Ve[e])if(Te&&!E(fe,C(n,ge,"")));else if(n)return!1;return!0},St=function(e){return"annotation-xml"!==e&&w(e,be)},Mt=function(e){wt(ce.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||vt(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let i=t.length;for(;i--;){const r=t[i],{name:s,namespaceURI:a,value:l}=r,c=at(s),d=l;let u="value"===s?d:S(d);if(o.attrName=c,o.attrValue=u,o.keepAttr=!0,o.forceKeepAttr=void 0,wt(ce.uponSanitizeAttribute,e,o),u=o.attrValue,!ze||"id"!==c&&"name"!==c||(ft(s,e),u="user-content-"+u),Le&&E(/((--!?|])>)|<\/(style|title)/i,u)){ft(s,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){ft(s,e);continue}if(!Re&&E(/\/>/i,u)){ft(s,e);continue}Ae&&m([de,ue,he],(e=>{u=C(u,e," ")}));const h=at(e.nodeName);if(_t(h,c,u)){if(ne&&"object"==typeof V&&"function"==typeof V.getAttributeType)if(a);else switch(V.getAttributeType(h,c)){case"TrustedHTML":u=ne.createHTML(u);break;case"TrustedScriptURL":u=ne.createScriptURL(u)}if(u!==d)try{a?e.setAttributeNS(a,s,u):e.setAttribute(s,u),vt(e)?pt(e):f(n.removed)}catch(t){ft(s,e)}}else ft(s,e)}wt(ce.afterSanitizeAttributes,e,null)},Et=function e(t){let n=null;const o=bt(t);for(wt(ce.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)wt(ce.uponSanitizeShadowNode,n,null),Ct(n),Mt(n),n.content instanceof a&&e(n.content);wt(ce.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,s=null,l=null;if(Ze=!e,Ze&&(e="\x3c!--\x3e"),"string"!=typeof e&&!yt(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported)return e;if(De||ut(t),n.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=at(e.nodeName);if(!ye[t]||Me[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof u)o=gt("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!Ie&&!Ae&&!Oe&&-1===e.indexOf("<"))return ne&&Ne?ne.createHTML(e):e;if(o=gt(e),!o)return Ie?null:Ne?oe:""}o&&He&&pt(o.firstChild);const c=bt(Ye?e:o);for(;s=c.nextNode();)Ct(s),Mt(s),s.content instanceof a&&Et(s.content);if(Ye)return e;if(Ie){if(Pe)for(l=se.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(Ce.shadowroot||Ce.shadowrootmode)&&(l=le.call(r,l,!0)),l}let d=Oe?o.outerHTML:o.innerHTML;return Oe&&ye["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&E(Q,o.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+d),Ae&&m([de,ue,he],(e=>{d=C(d,e," ")})),ne&&Ne?ne.createHTML(d):d},n.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),De=!0},n.clearConfig=function(){lt=null,De=!1},n.isValidAttribute=function(e,t,n){lt||ut({});const o=at(e),i=at(t);return _t(o,i,n)},n.addHook=function(e,t){"function"==typeof t&&g(ce[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=p(ce[e],t);return-1===n?void 0:b(ce[e],n,1)[0]}return f(ce[e])},n.removeHooks=function(e){ce[e]=[]},n.removeAllHooks=function(){ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function oe(e){return e[0].toUpperCase()+e.substr(1)}function ie(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()}function re(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)}function se(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return`${e}`.replace(/(?:\\)?\[([^[\]]+)]/g,((e,n)=>"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]))}function ae(e){return le(`${e}`,{ALLOWED_TAGS:[]})}function le(e,t){return ne.sanitize(e,t)}},24457:function(e,t,n){!function(e){"use strict";function t(e,t,n){var o=" ";return(e%100>=20||e>=100&&e%100==0)&&(o=" de "),e+o+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(95093))},24496:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(95093))},24659:(e,t,n)=>{"use strict";var o=n(79039),i=n(6980);e.exports=!o((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},24913:(e,t,n)=>{"use strict";var o=n(43724),i=n(35917),r=n(48686),s=n(28551),a=n(56969),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",m="writable";t.f=o?r?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var o=d(e,t);o&&o[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:o[h],enumerable:u in n?n[u]:o[u],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=a(t),s(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},24994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},25149:(e,t,n)=>{"use strict";n.d(t,{U:()=>o});const o=(0,n(31216).M)((e=>e.id),(e=>e.treeId))},25155:(e,t,n)=>{"use strict";n.d(t,{CA:()=>i,Ml:()=>a,d:()=>r,kH:()=>l,nO:()=>s,zg:()=>c});var o=n(20091);function i(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function r(e){return!1===e.isImmediatePropagationEnabled}function s(e){return 2===e.button}function a(e){return 0===e.button}function l(e){return e instanceof TouchEvent}function c(e,t){const n={x:e.offsetX,y:e.offsetY};let i=e.target;if(!(0,o.sb)(t)||i!==t&&i.contains(t))return n;for(;i!==t;)n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;return n}},25170:(e,t,n)=>{"use strict";var o=n(46706),i=n(94402);e.exports=o(i.proto,"size","get")||function(e){return e.size}},25177:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=function(e){return+setTimeout(e,16)},i=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(o=function(e){return window.requestAnimationFrame(e)},i=function(e){return window.cancelAnimationFrame(e)});var r=0,s=new Map;function a(e){s.delete(e)}var l=function(e){var t=r+=1;return function n(i){if(0===i)a(t),e();else{var r=o((function(){n(i-1)}));s.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};l.cancel=function(e){var t=s.get(e);return a(e),i(t)};const c=l},25397:(e,t,n)=>{"use strict";var o=n(47055),i=n(67750);e.exports=function(e){return o(i(e))}},25418:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var o=n(96540),i=n(34164),r=n(21362),s=n(26739),a=n(39241),l=n(20439),c=n(96148),d=n(1908);function u(e){return(0,d.Ay)("MuiDialogContent",e)}(0,c.A)("MuiDialogContent",["root","dividers"]);var h=n(21942),m=n(74848);const p=(0,s.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((0,a.A)((({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${h.A.root} + &`]:{paddingTop:0}}}]})))),f=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...a}=n,c={...n,dividers:s},d=(e=>{const{classes:t,dividers:n}=e,o={root:["root",n&&"dividers"]};return(0,r.A)(o,u,t)})(c);return(0,m.jsx)(p,{className:(0,i.A)(d.root,o),ownerState:c,ref:t,...a})}))},25745:(e,t,n)=>{"use strict";var o=n(77629);e.exports=function(e,t){return o[e]||(o[e]=t||{})}},25905:(e,t,n)=>{"use strict";n.d(t,{K8:()=>u,L9:()=>i,Nk:()=>s,Y1:()=>m,av:()=>l,dF:()=>r,jk:()=>d,jz:()=>h,t6:()=>a,vj:()=>c});var o=n(77132);const i={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},r=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),s=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t,n,o)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,r=n?`.${n}`:i,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let a={};return!1!==o&&(a={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[r]:Object.assign(Object.assign(Object.assign({},a),s),{[i]:s})}},d=(e,t)=>({outline:`${(0,o.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),u=(e,t)=>({"&:focus-visible":Object.assign({},d(e,t))}),h=e=>({[`.${e}`]:Object.assign(Object.assign({},s()),{[`.${e} .${e}-icon`]:{display:"block"}})}),m=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},u(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}})},26111:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},26198:(e,t,n)=>{"use strict";var o=n(18014);e.exports=function(e){return o(e.length)}},26269:e=>{"use strict";e.exports={}},26308:function(e,t,n){!function(e){"use strict";function t(e,t,n){var o=e+" ";switch(n){case"ss":return o+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return o+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return o+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return o+(1===e?"dan":"dana");case"MM":return o+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return o+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},26435:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(95093))},26773:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var o=n(96540),i=n(34164),r=n(21362),s=n(91092),a=n(39407),l=n(41558),c=n(99798),d=n(49565),u=n(96148),h=n(1908);function m(e){return(0,h.Ay)("MuiDialog",e)}const p=(0,u.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var f=n(58503),g=n(30016),b=n(26739),v=n(53356),y=n(39241),w=n(20439),C=n(85078),_=n(74848);const S=(0,b.Ay)(g.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),M=(0,b.Ay)(l.A,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),E=(0,b.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,a.A)(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),x=(0,b.Ay)(d.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,a.A)(n.scroll)}`],t[`paperWidth${(0,a.A)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((0,y.A)((({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${p.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter((e=>"xs"!==e)).map((t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${p.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}}))),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${p.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]})))),k=o.forwardRef((function(e,t){const n=(0,w.b)({props:e,name:"MuiDialog"}),l=(0,v.A)(),u={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{"aria-describedby":h,"aria-labelledby":p,"aria-modal":g=!0,BackdropComponent:b,BackdropProps:y,children:k,className:T,disableEscapeKeyDown:R=!1,fullScreen:A=!1,fullWidth:L=!1,maxWidth:O="sm",onClick:D,onClose:H,open:I,PaperComponent:P=d.A,PaperProps:N={},scroll:F="paper",slots:z={},slotProps:j={},TransitionComponent:Y=c.A,transitionDuration:$=u,TransitionProps:B,...W}=n,V={...n,disableEscapeKeyDown:R,fullScreen:A,fullWidth:L,maxWidth:O,scroll:F},U=(e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:i,fullScreen:s}=e,l={root:["root"],container:["container",`scroll${(0,a.A)(n)}`],paper:["paper",`paperScroll${(0,a.A)(n)}`,`paperWidth${(0,a.A)(String(o))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return(0,r.A)(l,m,t)})(V),G=o.useRef(),K=(0,s.A)(p),q=o.useMemo((()=>({titleId:K})),[K]),X={slots:{transition:Y,...z},slotProps:{transition:B,paper:N,backdrop:y,...j}},[J,Q]=(0,C.A)("root",{elementType:M,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:V,className:(0,i.A)(U.root,T),ref:t}),[Z,ee]=(0,C.A)("backdrop",{elementType:S,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:V}),[te,ne]=(0,C.A)("paper",{elementType:x,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:V,className:(0,i.A)(U.paper,N.className)}),[oe,ie]=(0,C.A)("container",{elementType:E,externalForwardedProps:X,ownerState:V,className:U.container}),[re,se]=(0,C.A)("transition",{elementType:c.A,externalForwardedProps:X,ownerState:V,additionalProps:{appear:!0,in:I,timeout:$,role:"presentation"}});return(0,_.jsx)(J,{closeAfterTransition:!0,slots:{backdrop:Z},slotProps:{backdrop:{transitionDuration:$,as:b,...ee}},disableEscapeKeyDown:R,onClose:H,open:I,onClick:e=>{D&&D(e),G.current&&(G.current=null,H&&H(e,"backdropClick"))},...Q,...W,children:(0,_.jsx)(re,{...se,children:(0,_.jsx)(oe,{onMouseDown:e=>{G.current=e.target===e.currentTarget},...ie,children:(0,_.jsx)(te,{as:P,elevation:24,role:"dialog","aria-describedby":h,"aria-labelledby":K,"aria-modal":g,...ne,children:(0,_.jsx)(f.A.Provider,{value:q,children:k})})})})})}))},26956:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(96540);function i(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return n}},27088:function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},27476:(e,t,n)=>{"use strict";var o=n(22195),i=n(79504);e.exports=function(e){if("Function"===o(e))return i(e)}},27668:(e,t,n)=>{"use strict";n.d(t,{QQ:()=>l,Rt:()=>c,cP:()=>d,js:()=>a,l$:()=>s});var o=n(31216),i=n(10786);const r=e=>e.expansion,s=(0,o.M)([r],(e=>e.expandedItems)),a=(0,o.M)([s],(e=>{const t=new Map;return e.forEach((e=>{t.set(e,!0)})),t})),l=(0,o.M)([a,(e,t)=>t],((e,t)=>e.has(t))),c=(0,o.M)([i.uP],(e=>e?.expandable??!1)),d=(0,o.M)([r],(e=>e.expansionTrigger))},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(43145);function i(e,t){if(e){if("string"==typeof e)return(0,o.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.A)(e,t):void 0}}},28061:(e,t,n)=>{"use strict";n.d(t,{A:()=>r}),n(16280),n(44114);var o=n(25155);let i=0;const r=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;var t,n,o;t=this,o=void 0,(n=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(n="context"))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}addEventListener(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function s(e){n.call(this,function(e){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),(0,o.CA)(this)},e}(e))}return this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:s,options:r,eventManager:this}),e.addEventListener(t,s,r),i+=1,()=>{this.removeEventListener(e,t,n)}}removeEventListener(e,t,n){let o,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=this.context.eventListeners.length;for(;s;)if(s-=1,o=this.context.eventListeners[s],o.event===t&&o.element===e){if(n&&n!==o.callback)continue;if(r&&o.eventManager!==this)continue;this.context.eventListeners.splice(s,1),o.element.removeEventListener(o.event,o.callbackProxy,o.options),i-=1}}clearEvents(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.context)return;let t=this.context.eventListeners.length;for(;t;){t-=1;const n=this.context.eventListeners[t];e&&n.eventManager!==this||(this.context.eventListeners.splice(t,1),n.element.removeEventListener(n.event,n.callbackProxy,n.options),i-=1)}}clear(){this.clearEvents()}destroy(){this.clearEvents(),this.context=null}destroyWithOwnEventsOnly(){this.clearEvents(!0),this.context=null}fireEvent(e,t){let n=e.document,o=e;n||(n=e.ownerDocument?e.ownerDocument:e,o=n.defaultView);const i={bubbles:!0,cancelable:"mousemove"!==t,view:o,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};let r;n.createEvent?(r=n.createEvent("MouseEvents"),r.initMouseEvent(t,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget||n.body.parentNode)):r=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent(`on${t}`,r)}}},28104:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(96540);function i(e,t,n){var i=o.useRef({});return"value"in i.current&&!n(i.current.condition,t)||(i.current.value=e(),i.current.condition=t),i.current.value}},28298:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(95093))},28527:(e,t,n)=>{"use strict";var o=n(97080),i=n(94402).has,r=n(25170),s=n(83789),a=n(40507),l=n(9539);e.exports=function(e){var t=o(this),n=s(e);if(r(t)<n.size)return!1;var c=n.getIterator();return!1!==a(c,(function(e){if(!i(t,e))return l(c,"normal",!1)}))}},28540:(e,t,n)=>{"use strict";n.d(t,{F1:()=>c,HG:()=>l,HZ:()=>m,XR:()=>d,c2:()=>u,eI:()=>s,ig:()=>a,nz:()=>h});var o=n(27668),i=n(10786);const r=(e,t)=>{let n=t.length-1;for(;n>=0&&!(0,i.P$)(e,t[n]);)n-=1;if(-1!==n)return t[n]},s=(e,t)=>{const n=(0,i.uP)(e,t);if(!n)return null;const a=(0,i.p1)(e,n.parentId),l=(0,i.tm)(e,t);if(0===l)return n.parentId;let c=l-1;for(;!(0,i.P$)(e,a[c])&&c>=0;)c-=1;if(-1===c)return null==n.parentId?null:s(e,n.parentId);let d=a[c],u=r(e,(0,i.p1)(e,d));for(;(0,o.QQ)(e,d)&&null!=u;)d=u,u=r(e,(0,i.p1)(e,d));return d},a=(e,t)=>{if((0,o.QQ)(e,t)){const n=(0,i.p1)(e,t).find((t=>(0,i.P$)(e,t)));if(null!=n)return n}let n=(0,i.uP)(e,t);for(;null!=n;){const t=(0,i.p1)(e,n.parentId),o=(0,i.tm)(e,n.id);if(o<t.length-1){let n=o+1;for(;!(0,i.P$)(e,t[n])&&n<t.length-1;)n+=1;if((0,i.P$)(e,t[n]))return t[n]}n=(0,i.uP)(e,n.parentId)}return null},l=e=>{let t=null;for(;null==t||(0,o.QQ)(e,t);){const n=(0,i.p1)(e,t),o=r(e,n);if(null==o)return t;t=o}return t},c=e=>(0,i.p1)(e,null).find((t=>(0,i.P$)(e,t))),d=(e,t,n)=>{if(t===n)return[t,n];const o=(0,i.uP)(e,t),r=(0,i.uP)(e,n);if(!o||!r)return[t,n];if(o.parentId===r.id||r.parentId===o.id)return r.parentId===o.id?[o.id,r.id]:[r.id,o.id];const s=[o.id],a=[r.id];let l=o.parentId,c=r.parentId,d=-1!==a.indexOf(l),u=-1!==s.indexOf(c),h=!0,m=!0;for(;!u&&!d;)h&&(s.push(l),d=-1!==a.indexOf(l),h=null!==l,!d&&h&&(l=(0,i.YW)(e,l))),m&&!d&&(a.push(c),u=-1!==s.indexOf(c),m=null!==c,!u&&m&&(c=(0,i.YW)(e,c)));const p=d?l:c,f=(0,i.p1)(e,p),g=s[s.indexOf(p)-1],b=a[a.indexOf(p)-1];return f.indexOf(g)<f.indexOf(b)?[t,n]:[n,t]},u=(e,t,n)=>{const r=t=>{if((0,o.Rt)(e,t)&&(0,o.QQ)(e,t))return(0,i.p1)(e,t)[0];let n=(0,i.uP)(e,t);for(;null!=n;){const t=(0,i.p1)(e,n.parentId),o=(0,i.tm)(e,n.id);if(o<t.length-1)return t[o+1];n=n.parentId?(0,i.uP)(e,n.parentId):null}throw new Error("Invalid range")},[s,a]=d(e,t,n),l=[s];let c=s;for(;c!==a;)c=r(c),(0,i.lj)(e,c)||l.push(c);return l},h=e=>{let t=c(e);const n=[];for(;null!=t;)n.push(t),t=a(e,t);return n},m=(e,t)=>t!==e.closest('*[role="treeitem"]')},28551:(e,t,n)=>{"use strict";var o=n(20034),i=String,r=TypeError;e.exports=function(e){if(o(e))return e;throw new r(i(e)+" is not an object")}},28861:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},28959:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(o=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),o%10==1&&o%100!=11?i[0]:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?i[1]:i[2]);var o,i}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(95093))},29231:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},29309:(e,t,n)=>{"use strict";var o=n(46518),i=n(44576),r=n(59225).set,s=n(79472),a=i.setImmediate?s(r,!1):r;o({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==a},{setImmediate:a})},29401:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var o=n(78418);const i=Object.is,r=(e,t,n=void 0,r=i)=>(0,o.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,(e=>t(e,n)),r)},29677:(e,t,n)=>{"use strict";n.d(t,{F:()=>i,i:()=>r});var o=n(96540);const i=o.createContext(null),r=()=>{const e=o.useContext(i);if(null==e)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join("\n"));return e}},29849:function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(95093))},30237:(e,t,n)=>{"use strict";n(6469)("flatMap")},30306:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(95093))},30421:e=>{"use strict";e.exports={}},30531:(e,t,n)=>{"use strict";var o=n(46518),i=n(69565),r=n(79306),s=n(28551),a=n(1767),l=n(48646),c=n(19462),d=n(9539),u=n(96395),h=n(30684),m=n(84549),p=!u&&!h("flatMap",(function(){})),f=!u&&!p&&m("flatMap",TypeError),g=u||p||f,b=c((function(){for(var e,t,n=this.iterator,o=this.mapper;;){if(t=this.inner)try{if(!(e=s(i(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){d(n,"throw",e)}if(e=s(i(this.next,n)),this.done=!!e.done)return;try{this.inner=l(o(e.value,this.counter++),!1)}catch(e){d(n,"throw",e)}}}));o({target:"Iterator",proto:!0,real:!0,forced:g},{flatMap:function(e){s(this);try{r(e)}catch(e){d(this,"throw",e)}return f?i(f,this,e):new b(a(this),{mapper:e,inner:null})}})},30670:(e,t,n)=>{"use strict";n(30531)},30684:e=>{"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,o:()=>s});var o=n(96540),i=(0,n(20998).A)()?o.useLayoutEffect:o.useEffect,r=function(e,t){var n=o.useRef(!0);i((function(){return e(n.current)}),t),i((function(){return n.current=!1,function(){n.current=!0}}),[])},s=function(e,t){r((function(t){if(!t)return e()}),t)};const a=r},31052:function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,o,i){var r=function(e){var n=Math.floor(e%1e3/100),o=Math.floor(e%100/10),i=e%10,r="";return n>0&&(r+=t[n]+"vatlh"),o>0&&(r+=(""!==r?" ":"")+t[o]+"maH"),i>0&&(r+=(""!==r?" ":"")+t[i]),""===r?"pagh":r}(e);switch(o){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},31216:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});var o=n(25508);const i=(0,o.Ad)({memoize:o.i5,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),r=new WeakMap,s=(...e)=>(t,n)=>{const o=t.cacheKey;let s=r.get(o);s||(s=new Map,r.set(o,s));const a=s.get(e);if(a)return a(t,n);const l=i(...e);return s.set(e,l),l(t,n)}},31418:(e,t,n)=>{"use strict";n.d(t,{I$:()=>u,L6:()=>d,U_:()=>c,hc:()=>l});var o=n(31216),i=n(64938),r=n(10786),s=n(60957),a=n(27668);const l=(0,o.M)([i.Go,a.js,r.Ks,r.tw,e=>(0,r.p1)(e,null)],((e,t,n,o,i)=>{const r=e.find((e=>{if(!o&&(0,s.gE)(n,e))return!1;const i=n[e];return i&&(null==i.parentId||t.has(i.parentId))}));if(null!=r)return r;const a=i.find((e=>o||!(0,s.gE)(n,e)));return null!=a?a:null})),c=(0,o.M)([l,(e,t)=>t],((e,t)=>e===t)),d=(0,o.M)((e=>e.focus),(e=>e.focusedItemId)),u=(0,o.M)([d,(e,t)=>t],((e,t)=>e===t))},31524:(e,t,n)=>{"use strict";n.d(t,{sH:()=>K});var o=n(96540),i=n(40961),r=n(84389),s=n(54950),a=n(11080),l=null;function c(){var e;"undefined"!=typeof console&&(e=console).warn.apply(e,arguments)}function d(e){return u(e,"hot-renderer")?(c("Providing a component-based renderer using `hot-renderer`-annotated component is no longer supported. Pass your component using `renderer` prop of the `HotTable` or `HotColumn` component instead."),!0):!!u(e,"hot-editor")&&(c("Providing a component-based editor using `hot-editor`-annotated component is no longer supported. Pass your component using `editor` prop of the `HotTable` or `HotColumn` component instead."),!0)}function u(e,t){return o.Children.toArray(e).some((function(e){return void 0!==e.props[t]}))}function h(e,t){if(!e||!t||"boolean"==typeof t)return null;var n=o.createElement(t,null),r=m({},!1);return r.className="".concat("hot-wrapper-editor-container"," ").concat(r.className),i.createPortal(o.createElement("div",Object.assign({},r),n),e.body)}function m(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{id:e.id||(t?"hot-"+Math.random().toString(36).substring(5):void 0),className:e.className||"",style:e.style||{}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,C(o.key),o)}}function b(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function C(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function _(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}var S=function(){return b((function e(){f(this,e)}),null,[{key:"getSettings",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prevProps,o=void 0===n?{}:n,i=t.isInit,r=void 0!==i&&i,s=t.initOnlySettingKeys,a=void 0===s?[]:s,l=function(t){return!(r||!a.includes(t))&&o[t]===e[t]},c={};for(var d in e)"children"!==d&&!l(d)&&e.hasOwnProperty(d)&&(c[d]=e[d]);return c}}])}(),M=(0,o.createContext)(void 0),E=function(e){var t=e.children,n=(0,o.useRef)([]),r=(0,o.useCallback)((function(e,t){n.current[t]=e}),[]),s=(0,o.useRef)(new Map),a=(0,o.useRef)(new Map),c=(0,o.useCallback)((function(){return a.current.clear()}),[]),d=(0,o.useRef)(new Map),u=(0,o.useCallback)((function(){return d.current.clear()}),[]),h=(0,o.useRef)(new Map),m=(0,o.useCallback)((function(e){return function(t,n,r,s,c,u,m){var p="".concat(r,"-").concat(s),f=t.guid,g="".concat(f,"-").concat(p),b="".concat(p,"-").concat(f);if(a.current.has(p)&&(n.innerHTML=a.current.get(p).innerHTML),n&&!n.getAttribute("ghost-table")){for(var v=d.current.get(b),y=h.current.get(g);n.firstChild;)n.removeChild(n.firstChild);if(v&&y)n.appendChild(y);else{var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;t||(t=document),l||(l=t.createDocumentFragment());var r=null!=o?o:t.createElement("DIV");return l.appendChild(r),{portal:i.createPortal(e,r,n),portalContainer:r}}(o.createElement(e,{instance:t,TD:n,row:r,col:s,prop:c,value:u,cellProperties:m}),n.ownerDocument,b,y),C=w.portal,_=w.portalContainer;h.current.set(g,_),n.appendChild(_),d.current.set(b,C)}}return a.current.set("".concat(r,"-").concat(s),n),n}}),[]),f=(0,o.useRef)((function(){})),g=(0,o.useCallback)((function(e){f.current=e}),[]),b=(0,o.useCallback)((function(){var e;f.current(function(e){if(Array.isArray(e))return p(e)}(e=d.current.values())||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}),[]),v=(0,o.useMemo)((function(){return{componentRendererColumns:s.current,columnsSettings:n.current,emitColumnSettings:r,getRendererWrapper:m,clearPortalCache:u,clearRenderedCellCache:c,setRenderersPortalManagerRef:g,pushCellPortalsIntoPortalManager:b}}),[r,m,c,g,b]);return o.createElement(M.Provider,{value:v},t)};function x(){return(0,o.useContext)(M)}var k=(0,o.createContext)(void 0),T=function(e){var t=e.columnIndex,n=e.getOwnerDocument,i=e.children,r=(0,o.useMemo)((function(){return{columnIndex:t,getOwnerDocument:n}}),[t,n]);return o.createElement(k.Provider,{value:r},i)},R=["close","focus","open"],A=["getValue","setValue"],L={open:"onOpen",close:"onClose",prepare:"onPrepare",focus:"onFocus"};function O(e,t){return function(n){function o(n){var i,s,a,l;return f(this,o),s=this,l=[n],a=v(a=o),i=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(s,y()?Reflect.construct(a,l||[],v(s).constructor):a.apply(s,l)),t.current=i,Object.getOwnPropertyNames(r.Ay.editors.BaseEditor.prototype).forEach((function(t){if("constructor"!==t&&!A.includes(t)){var n=r.Ay.editors.BaseEditor.prototype[t];o.prototype[t]=function(){for(var o,i,r,s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return R.includes(t)||(i=n.call.apply(n,[this].concat(a))),L[t]&&null!==(o=e.current)&&void 0!==o&&o[L[t]]&&(i=(r=e.current[L[t]]).call.apply(r,[this].concat(a))),i}.bind(i)}})),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(o,n),b(o,[{key:"focus",value:function(){}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"open",value:function(){}},{key:"close",value:function(){}}])}(r.Ay.editors.BaseEditor)}var D=(0,o.createContext)(void 0),H=function(e){var t=e.hooksRef,n=e.hotCustomEditorInstanceRef,i=e.children;return o.createElement(D.Provider,{value:{hooksRef:t,hotCustomEditorInstanceRef:n}},i)},I=function(e){return e.type===N},P=["_columnIndex","_getOwnerDocument","children"],N=function(e){var t=x(),n=t.componentRendererColumns,i=t.emitColumnSettings,r=t.getRendererWrapper,s=(0,o.useContext)(k),a=s.columnIndex,l=s.getOwnerDocument,u=(0,o.useRef)(null),m=(0,o.useRef)(null);(0,o.useEffect)((function(){var t,s=function(){var t=S.getSettings(Object.keys(e).filter((function(e){return!P.includes(e)})).reduce((function(t,n){return t[n]=e[n],t}),{}));return e.renderer?(t.renderer=r(e.renderer),n.set(a,!0)):e.hotRenderer&&(t.renderer=e.hotRenderer),e.editor?t.editor=O(u,m):e.hotEditor&&(t.editor=e.hotEditor),t}();i(s,a),d(e.children)||(t=e.children,o.Children.toArray(t).length&&c("Unexpected children nodes found in HotColumn component. HotColumn components do not support any children."))}));var p=h(l(),e.editor);return o.createElement(H,{hooksRef:u,hotCustomEditorInstanceRef:m},p)},F=(0,o.forwardRef)((function(e,t){var n,i,r=(n=(0,o.useState)([]),i=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,s,a=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t);else for(;!(l=(o=r.call(n)).done)&&(a.push(o.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(n,i)||_(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=r[0],a=r[1];return(0,o.useImperativeHandle)(t,(function(){return a})),o.createElement(o.Fragment,null,s)}));function z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var j,Y,$,B,W={exports:{}};W.exports=function(){if(B)return $;B=1;var e=Y?j:(Y=1,j="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,$=function(){function o(t,n,o,i,r,s){if(s!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function i(){return o}o.isRequired=o;var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r}}()();var V=z(W.exports),U=(0,o.forwardRef)((function(e,t){var n,i,l=(0,o.useRef)(null),u=(0,o.useRef)(null),p=(0,o.useRef)(null),f=(0,o.useRef)(null),g=(0,o.useRef)(),b=x(),v=(0,o.useCallback)((function(){return l.current&&l.current.isDestroyed?(console.warn("The Handsontable instance bound to this component was destroyed and cannot be used properly."),null):l.current}),[l]),y=(0,o.useCallback)((function(){return!l.current||l.current.isDestroyed}),[l]),w=(0,o.useCallback)((function(){b.clearRenderedCellCache(),b.componentRendererColumns.clear()}),[b]),C=(0,o.useCallback)((function(){return"undefined"!=typeof window?u.current?u.current.ownerDocument:document:null}),[u]),_=function(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=y()?[]:(null===(t=v())||void 0===t||null===(t=t.getSettings())||void 0===t?void 0:t._initOnlySettings)||[],r=S.getSettings(e,{prevProps:o,isInit:n,initOnlySettingKeys:i});return r.columns=b.columnsSettings.length?b.columnsSettings:r.columns,e.renderer?(r.renderer=b.getRendererWrapper(e.renderer),b.componentRendererColumns.set("global",!0)):r.renderer=e.hotRenderer||(0,s.gB)("text"),e.editor?r.editor=O(p,f):r.editor=e.hotEditor||(0,a.M8)("text"),r},M=function(e){var t,n;e&&(null!==(t=e.getPlugin("autoRowSize"))&&void 0!==t&&t.enabled||null!==(n=e.getPlugin("autoColumnSize"))&&void 0!==n&&n.enabled)&&b.componentRendererColumns.size>0&&c("Your `HotTable` configuration includes `autoRowSize`/`autoColumnSize` options, which are not compatible with the component-based renderers`. Disable `autoRowSize` and `autoColumnSize` to prevent row and column misalignment.")};(0,o.useEffect)((function(){var t,n,i=_(!0);return g.current=e,l.current=new r.Ay.Core(u.current,i),l.current.addHook("beforeViewRender",(function(){b.clearPortalCache(),b.clearRenderedCellCache()})),l.current.addHook("afterViewRender",(function(){b.pushCellPortalsIntoPortalManager()})),l.current.init(),M(l.current),d(e.children)||(t=e.children,n=N,o.Children.toArray(t).some((function(e){return e.type!==n}))&&c("Unexpected children nodes found in HotTable component. Only HotColumn components are allowed.")),function(){var e;w(),null===(e=v())||void 0===e||e.destroy()}}),[]),n=function(){w();var t=v(),n=_(!1,g.current);g.current=e,null==t||t.updateSettings(n,!1),M(t),d(e.children)},i=o.useRef(!1),(0,o.useEffect)((function(){if(i.current)return n();i.current=!0}),undefined),(0,o.useImperativeHandle)(t,(function(){return{get hotElementRef(){return u.current},get hotInstance(){return v()}}}));var E=o.Children.toArray(e.children).filter(I).map((function(e,t){return o.createElement(T,{columnIndex:t,getOwnerDocument:C,key:t},e)})),k=m(e),R=h(C(),e.editor);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({ref:u},k),E),o.createElement(F,{ref:b.setRenderersPortalManagerRef}),o.createElement(H,{hooksRef:p,hotCustomEditorInstanceRef:f},R))}));U.propTypes={style:V.object,id:V.string,className:V.string};var G=["children"],K=(0,o.forwardRef)((function(e,t){var n,i=e.children,r=function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,G),s=null!==(n=r.id)&&void 0!==n?n:(0,o.useId)();return o.createElement(E,null,o.createElement(U,Object.assign({id:s},r,{ref:t}),i))}));K.version="15.3.0"},31541:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var o=100*e+t;return o<600?"凌晨":o<900?"早上":o<1130?"上午":o<1230?"中午":o<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},31545:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(95093))},31601:e=>{"use strict";e.exports=function(e){return e[1]}},31698:(e,t,n)=>{"use strict";var o=n(46518),i=n(44204),r=n(39835);o({target:"Set",proto:!0,real:!0,forced:!n(84916)("union")||!r("union")},{union:i})},31800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},31803:(e,t,n)=>{"use strict";n.d(t,{z:()=>l}),n(16280),n(98992),n(81454);var o=n(41895),i=n(77792),r=n(48046),s=n(13317),a=n(83986);class l extends o.n{constructor(){var e,t,n;super(...arguments),e=this,n=[],(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t="orderOfIndexes"))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}getValues(){return this.orderOfIndexes.map((e=>this.indexedValues[e]))}setValues(e){this.orderOfIndexes=[...Array(e.length).keys()],super.setValues(e)}setValueAtIndex(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(n,0,e),this.runLocalHooks("change"),!0)}clearValue(e){this.orderOfIndexes=(0,r.H)(this.orderOfIndexes,[e]),(0,a.Tn)(this.initValueOrFn)?super.setValueAtIndex(e,this.initValueOrFn(e)):super.setValueAtIndex(e,this.initValueOrFn)}getLength(){return this.orderOfIndexes.length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,super.setDefaultValues(e)}insert(e,t){this.indexedValues=(0,i.N)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,s.z)(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=(0,i.H)(this.indexedValues,e),this.orderOfIndexes=(0,r.H)(this.orderOfIndexes,e),this.orderOfIndexes=(0,s.v)(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map((e=>[e,this.getValueAtIndex(e)]))}}},32124:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return o?i[n][0]:i[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(95093))},32475:(e,t,n)=>{"use strict";var o=n(46518),i=n(28527);o({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSupersetOf",(function(e){return!e}))},{isSupersetOf:i})},32564:(e,t,n)=>{"use strict";n.d(t,{b7:()=>u,_T:()=>d}),n(16280);var o=n(65615),i=n(32919),r=(n(44114),n(77325));const s={_hooksStorage:Object.create(null),addHook(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey(e){(0,r.z0)(this._hooksStorage[e]||[],(t=>{this.hot.removeHook(e,t)}))},clearHooks(){(0,i.v4)(this._hooksStorage,((e,t)=>this.removeHooksByKey(t))),this._hooksStorage={}}};(0,i.LH)(s,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});const a=s;var l=n(20091);function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});class u{static get EDITOR_TYPE(){return"base"}constructor(e){c(this,"hot",void 0),c(this,"state",d.VIRGIN),c(this,"_opened",!1),c(this,"_fullEditMode",!1),c(this,"_closeCallback",null),c(this,"TD",null),c(this,"row",null),c(this,"col",null),c(this,"prop",null),c(this,"originalValue",null),c(this,"cellProperties",null),this.hot=e,this.init()}_fireCallbacks(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}init(){}getValue(){throw Error("Editor getValue() method unimplemented")}setValue(){throw Error("Editor setValue() method unimplemented")}open(){throw Error("Editor open() method unimplemented")}close(){throw Error("Editor close() method unimplemented")}prepare(e,t,n,o,i,r){this.TD=o,this.row=e,this.col=t,this.prop=n,this.originalValue=i,this.cellProperties=r,this.state=this.isOpened()?this.state:d.VIRGIN}extend(){return class extends this.constructor{}}saveValue(e,t){let n,o,i,r;if(t){const e=this.hot.getSelectedLast();n=Math.max(Math.min(e[0],e[2]),0),o=Math.max(Math.min(e[1],e[3]),0),i=Math.max(e[0],e[2]),r=Math.max(e[1],e[3])}else[n,o,i,r]=[this.row,this.col,null,null];const s=this.hot.runHooks("modifyGetCellCoords",n,o,!1,"meta");Array.isArray(s)&&([n,o]=s),this.hot.populateFromArray(n,o,e,i,r,"edit")}beginEditing(e,t){if(this.state!==d.VIRGIN)return;const n=this.hot,i=n.rowIndexMapper.getRenderableFromVisualIndex(this.row),r=n.columnIndexMapper.getRenderableFromVisualIndex(this.col),s=()=>{if(this.state=d.EDITING,this.isInFullEditMode()){const t="string"==typeof e?e:(0,o.As)(this.originalValue);this.setValue(t)}this.open(t),this._opened=!0,this.focus(),n.view.render(),n.runHooks("afterBeginEditing",this.row,this.col)};this.hot.addHookOnce("afterScroll",s),n.view.scrollViewport(n._createCellCoords(i,r))||(this.hot.removeHook("afterScroll",s),s())}finishEditing(e,t,n){let o;if(n){const e=this._closeCallback;this._closeCallback=t=>{e&&e(t),n(t),this.hot.view.render()}}if(!this.isWaiting())if(this.state!==d.VIRGIN){if(this.state===d.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();const n=this.getValue();o=this.cellProperties.trimWhitespace?[["string"==typeof n?String.prototype.trim.call(n||""):n]]:[[n]],this.state=d.WAITING,this.saveValue(o,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(e=>{this.state=d.FINISHED,this.discardEditor(e)})):(this.state=d.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout((()=>{this._fireCallbacks(!0)}))}cancelChanges(){this.state=d.FINISHED,this.discardEditor()}discardEditor(e){this.state===d.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=d.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=d.VIRGIN,this._fireCallbacks(!0),this.hot.getShortcutManager().setActiveContextName("grid")))}enableFullEditMode(){this._fullEditMode=!0}isInFullEditMode(){return this._fullEditMode}isOpened(){return this._opened}isWaiting(){return this.state===d.WAITING}getEditedCellRect(){var e;const t=this.getEditedCell();if(!t)return;const{wtOverlays:n,wtViewport:o}=this.hot.view._wt,i=this.hot.rootWindow,r=(0,l.cY)(t),s=(0,l.Gq)(t),a=(0,l.cY)(this.hot.rootElement),c=(0,l.Gq)(this.hot.rootElement),d=n.topOverlay.holder,u=n.inlineStartOverlay.holder,h=d!==i?d.scrollTop:0,m=u!==i?u.scrollLeft:0,p=i.innerWidth-a.left-c,{wtTable:f}=null!==(e=n.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt,g=f.name,b=["master","inline_start"].includes(g)?h:0,v=["master","top","bottom"].includes(g)?m:0,y=r.top===a.top?0:1;let w=r.top-a.top-y-b,C=0;C=this.hot.isRtl()?i.innerWidth-r.left-s-p-1+v:r.left-a.left-1-v,["top","top_inline_start_corner"].includes(g)&&(w+=n.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(g)&&(C+=Math.abs(n.inlineStartOverlay.getOverlayOffset()));const _=this.hot.hasColHeaders(),S=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),M=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),E=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(_&&S<=0||S===E)&&(w+=1),M<=0&&(C+=1);const x=o.rowsRenderCalculator.startPosition,k=o.columnsRenderCalculator.startPosition,T=Math.abs(n.inlineStartOverlay.getScrollPosition()),R=n.topOverlay.getScrollPosition(),A=(0,l.XJ)(this.hot.rootDocument);let L=t.offsetTop;if(["inline_start","master"].includes(g)&&(L+=x-R),["bottom","bottom_inline_start_corner"].includes(g)){const{wtViewport:e,wtTable:t}=n.bottomOverlay.clone;L+=e.getWorkspaceHeight()-t.getHeight()-A}let O=t.offsetLeft;this.hot.isRtl()?(O=O>=0?f.getWidth()-t.offsetLeft:Math.abs(O),O+=k-T-s):["top","master","bottom"].includes(g)&&(O+=k-T);const D=i.getComputedStyle(this.TD),H=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",I=parseInt(D[H],10)>0?0:1,P=parseInt(D.borderTopWidth,10)>0?0:1,N=(0,l.Gq)(t)+I,F=(0,l.DK)(t)+P,z=(0,l.D1)(d)?A:0,j=(0,l.zO)(u)?A:0,Y=this.hot.view.maximumVisibleElementWidth(O)-z+I;return{top:w,start:C,height:F,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(L)-j+P,this.hot.view.getDefaultRowHeight()),width:N,maxWidth:Y}}getEditedCellsLayerClass(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}getEditedCell(){return this.hot.getCell(this.row,this.col,!0)}checkEditorSection(){const e=this.hot.countRows();let t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(t="inline-start"),t}}(0,i.co)(u,a)},32603:(e,t,n)=>{"use strict";var o=n(655);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:o(e)}},32675:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},32919:(e,t,n)=>{"use strict";n.d(t,{$3:()=>b,Go:()=>l,Gv:()=>h,IL:()=>r,LH:()=>m,Nl:()=>i,UU:()=>f,X$:()=>s,co:()=>d,mQ:()=>y,nA:()=>v,o8:()=>c,oq:()=>g,v4:()=>p,wU:()=>u,zw:()=>a}),n(16280),n(44114),n(33110),n(98992),n(3949);var o=n(77325);function i(e){let t;return Array.isArray(e)?t=e.length?new Array(e.length).fill(null):[]:(t={},p(e,((e,n)=>{"__children"!==n&&(e&&"object"==typeof e&&!Array.isArray(e)?t[n]=i(e):Array.isArray(e)?e.length&&"object"==typeof e[0]&&!Array.isArray(e[0])?t[n]=[i(e[0])]:t[n]=[]:t[n]=null)}))),t}function r(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function s(e,t,n){const o=Array.isArray(n);return p(t,((t,i)=>{(!1===o||n.includes(i))&&(e[i]=t)})),e}function a(e,t){p(t,((n,o)=>{t[o]&&"object"==typeof t[o]?(e[o]||(Array.isArray(t[o])?e[o]=[]:"[object Date]"===Object.prototype.toString.call(t[o])?e[o]=t[o]:e[o]={}),a(e[o],t[o])):e[o]=t[o]}))}function l(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function c(e){const t={};return p(e,((e,n)=>{t[n]=e})),t}function d(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return(0,o.z0)(n,(t=>{e.MIXINS.push(t.MIXIN_NAME),p(t,((t,n)=>{if(void 0!==e.prototype[n])throw new Error(`Mixin conflict. Property '${n}' already exist and cannot be overwritten.`);if("function"==typeof t)e.prototype[n]=t;else{const o=function(e,t){const n=`_${e}`;return function(){return void 0===this[n]&&(this[n]=(e=>{let t=e;return(Array.isArray(t)||h(t))&&(t=l(t)),t})(t)),this[n]}},i=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,n,{get:o(n,t),set:i(n),configurable:!0})}}))})),e}function u(e,t){return JSON.stringify(e)===JSON.stringify(t)}function h(e){return"[object Object]"===Object.prototype.toString.call(e)}function m(e,t,n,o){o.value=n,o.writable=!1!==o.writable,o.enumerable=!1!==o.enumerable,o.configurable=!1!==o.configurable,Object.defineProperty(e,t,o)}function p(e,t){for(const n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}function f(e,t){const n=t.split(".");let o=e;return p(n,(e=>{if(o=o[e],void 0===o)return o=void 0,!1})),o}function g(e,t,n){if("string"!=typeof t)return;const o=t.split(".");let i=e;o.forEach(((e,t)=>{"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(t!==o.length-1?(y(i,e)||(i[e]={}),i=i[e]):i[e]=n)}))}function b(e){if(!h(e))return 0;const t=function(e){let n=0;return h(e)?p(e,((e,o)=>{"__children"!==o&&(n+=t(e))})):n+=1,n};return t(e)}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";const n=`_${t}`,o={_touched:!1,[n]:e,isTouched(){return this._touched}};return Object.defineProperty(o,t,{get(){return this[n]},set(e){this._touched=!0,this[n]=e},enumerable:!0,configurable:!0}),o}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},32934:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(95093))},33110:(e,t,n)=>{"use strict";var o=n(46518),i=n(97751),r=n(18745),s=n(69565),a=n(79504),l=n(79039),c=n(94901),d=n(10757),u=n(67680),h=n(66933),m=n(4495),p=String,f=i("JSON","stringify"),g=a(/./.exec),b=a("".charAt),v=a("".charCodeAt),y=a("".replace),w=a(1.1.toString),C=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,M=!m||l((function(){var e=i("Symbol")("stringify detection");return"[null]"!==f([e])||"{}"!==f({a:e})||"{}"!==f(Object(e))})),E=l((function(){return'"\\udf06\\ud834"'!==f("\udf06\ud834")||'"\\udead"'!==f("\udead")})),x=function(e,t){var n=u(arguments),o=h(t);if(c(o)||void 0!==e&&!d(e))return n[1]=function(e,t){if(c(o)&&(t=s(o,this,p(e),t)),!d(t))return t},r(f,null,n)},k=function(e,t,n){var o=b(n,t-1),i=b(n,t+1);return g(_,e)&&!g(S,i)||g(S,e)&&!g(_,o)?"\\u"+w(v(e,0),16):e};f&&o({target:"JSON",stat:!0,arity:3,forced:M||E},{stringify:function(e,t,n){var o=u(arguments),i=r(M?x:f,null,o);return E&&"string"==typeof i?y(i,C,k):i}})},33392:(e,t,n)=>{"use strict";var o=n(79504),i=0,r=Math.random(),s=o(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+r,36)}},33428:(e,t,n)=>{"use strict";n.d(t,{sH:()=>oe});var o=n(96540),i=n(40961),r=n(84389);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,n)}}var b=null,v="global",y="hot-wrapper-editor-container";function w(e,t){var n=o.Children.toArray(e),i=o.Children.count(e),r=null;return 0!==i&&(r=1===i&&n[0].props[t]?n[0]:n.find((function(e){return void 0!==e.props[t]}))),r||null}function C(e){return e?e.type.WrappedComponent?e.type.WrappedComponent:e.type:null}function _(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).querySelectorAll('[class^="'.concat(y,'"]')).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=arguments.length>1?arguments[1]:void 0;if(null!==t){var n=e.createElement("DIV"),o=E(t.props,!1),r=o.id,s=o.className,a=o.style;return r&&(n.id=r),n.className=[y,s].join(" "),a&&Object.assign(n.style,a),e.body.appendChild(n),i.createPortal(t,n)}}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v,i=w(e,"hot-editor"),r=C(i);return i?o.cloneElement(i,{emitEditorInstance:function(e,n){t.get(r)||t.set(r,new Map),t.get(r).set(null!=n?n:v,e)},editorColumnScope:n,isEditor:!0}):null}function E(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{id:e.id||(t?"hot-"+Math.random().toString(36).substring(5):void 0),className:e.className||"",style:e.style||{}}}function x(e){var t=o.version.split(".").map((function(e){return parseInt(e)}));t[0]>=16&&t[1]>=3&&(e.UNSAFE_componentWillUpdate=e.componentWillUpdate,e.componentWillUpdate=void 0,e.UNSAFE_componentWillMount=e.componentWillMount,e.componentWillMount=void 0)}var k=function(){function e(){l(this,e)}return d(e,null,[{key:"getSettings",value:function(e){var t={};if(e.settings){var n=e.settings;for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])}for(var i in e)"settings"!==i&&"children"!==i&&e.hasOwnProperty(i)&&(t[i]=e[i]);return t}}]),e}(),T=function(e){h(n,e);var t=g(n);function n(e,o){var i;return l(this,n),(i=t.call(this,e,o)).localEditorPortal=null,x(f(i)),i}return d(n,[{key:"getLocalEditorPortal",value:function(){return this.localEditorPortal}},{key:"setLocalEditorPortal",value:function(e){this.localEditorPortal=e}},{key:"getSettingsProps",value:function(){var e=this;return this.internalProps=["__componentRendererColumns","_emitColumnSettings","_columnIndex","_getChildElementByType","_getRendererWrapper","_getEditorClass","_getEditorCache","_getOwnerDocument","hot-renderer","hot-editor","children"],Object.keys(this.props).filter((function(t){return!e.internalProps.includes(t)})).reduce((function(t,n){return t[n]=e.props[n],t}),{})}},{key:"hasProp",value:function(e){return!!this.props[e]}},{key:"getLocalEditorElement",value:function(){return M(this.props.children,this.props._getEditorCache(),this.props._columnIndex)}},{key:"createColumnSettings",value:function(){var e=this.props._getChildElementByType(this.props.children,"hot-renderer"),t=this.getLocalEditorElement();this.columnSettings=k.getSettings(this.getSettingsProps()),null!==e?(this.columnSettings.renderer=this.props._getRendererWrapper(e),this.props._componentRendererColumns.set(this.props._columnIndex,!0)):this.hasProp("renderer")?this.columnSettings.renderer=this.props.renderer:this.columnSettings.renderer=void 0,null!==t?this.columnSettings.editor=this.props._getEditorClass(t,this.props._columnIndex):this.hasProp("editor")?this.columnSettings.editor=this.props.editor:this.columnSettings.editor=void 0}},{key:"createLocalEditorPortal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.children,t=this.props._getEditorCache(),n=M(e,t,this.props._columnIndex);n&&this.setLocalEditorPortal(S(this.props._getOwnerDocument(),n,t))}},{key:"emitColumnSettings",value:function(){this.props._emitColumnSettings(this.columnSettings,this.props._columnIndex)}},{key:"componentWillMount",value:function(){this.createLocalEditorPortal()}},{key:"componentDidMount",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"componentWillUpdate",value:function(e,t,n){this.createLocalEditorPortal(e.children)}},{key:"componentDidUpdate",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"render",value:function(){return o.createElement(o.Fragment,null,this.getLocalEditorPortal())}}]),n}(o.Component),R=function(e){h(n,e);var t=g(n);function n(e){var o;return l(this,n),(o=t.call(this,e)).state={portals:[]},o}return d(n,[{key:"render",value:function(){return o.createElement(o.Fragment,null,this.state.portals)}}]),n}(o.Component);function A(e,t){return e(t={exports:{}},t.exports),t.exports}var L="function"==typeof Symbol&&Symbol.for,O=L?Symbol.for("react.element"):60103,D=L?Symbol.for("react.portal"):60106,H=L?Symbol.for("react.fragment"):60107,I=L?Symbol.for("react.strict_mode"):60108,P=L?Symbol.for("react.profiler"):60114,N=L?Symbol.for("react.provider"):60109,F=L?Symbol.for("react.context"):60110,z=L?Symbol.for("react.async_mode"):60111,j=L?Symbol.for("react.concurrent_mode"):60111,Y=L?Symbol.for("react.forward_ref"):60112,$=L?Symbol.for("react.suspense"):60113,B=L?Symbol.for("react.suspense_list"):60120,W=L?Symbol.for("react.memo"):60115,V=L?Symbol.for("react.lazy"):60116,U=L?Symbol.for("react.block"):60121,G=L?Symbol.for("react.fundamental"):60117,K=L?Symbol.for("react.responder"):60118,q=L?Symbol.for("react.scope"):60119;function X(e){if("object"===a(e)&&null!==e){var t=e.$$typeof;switch(t){case O:switch(e=e.type){case z:case j:case H:case P:case I:case $:return e;default:switch(e=e&&e.$$typeof){case F:case Y:case V:case W:case N:return e;default:return t}}case D:return t}}}function J(e){return X(e)===j}var Q={AsyncMode:z,ConcurrentMode:j,ContextConsumer:F,ContextProvider:N,Element:O,ForwardRef:Y,Fragment:H,Lazy:V,Memo:W,Portal:D,Profiler:P,StrictMode:I,Suspense:$,isAsyncMode:function(e){return J(e)||X(e)===z},isConcurrentMode:J,isContextConsumer:function(e){return X(e)===F},isContextProvider:function(e){return X(e)===N},isElement:function(e){return"object"===a(e)&&null!==e&&e.$$typeof===O},isForwardRef:function(e){return X(e)===Y},isFragment:function(e){return X(e)===H},isLazy:function(e){return X(e)===V},isMemo:function(e){return X(e)===W},isPortal:function(e){return X(e)===D},isProfiler:function(e){return X(e)===P},isStrictMode:function(e){return X(e)===I},isSuspense:function(e){return X(e)===$},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===H||e===j||e===P||e===I||e===$||e===B||"object"===a(e)&&null!==e&&(e.$$typeof===V||e.$$typeof===W||e.$$typeof===N||e.$$typeof===F||e.$$typeof===Y||e.$$typeof===G||e.$$typeof===K||e.$$typeof===q||e.$$typeof===U)},typeOf:X},Z=A((function(e,t){}));Z.AsyncMode,Z.ConcurrentMode,Z.ContextConsumer,Z.ContextProvider,Z.Element,Z.ForwardRef,Z.Fragment,Z.Lazy,Z.Memo,Z.Portal,Z.Profiler,Z.StrictMode,Z.Suspense,Z.isAsyncMode,Z.isConcurrentMode,Z.isContextConsumer,Z.isContextProvider,Z.isElement,Z.isForwardRef,Z.isFragment,Z.isLazy,Z.isMemo,Z.isPortal,Z.isProfiler,Z.isStrictMode,Z.isSuspense,Z.isValidElementType,Z.typeOf,A((function(e){e.exports=Q}));Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==o.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}})()&&Object.assign;function ee(){}function te(){}Function.call.bind(Object.prototype.hasOwnProperty),te.resetWarningCache=ee;var ne=A((function(e){e.exports=function(){function e(e,t,n,o,i,r){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:te,resetWarningCache:ee};return n.PropTypes=n,n}()})),oe=function(e){h(n,e);var t=g(n);function n(e,o){var i;return l(this,n),(i=t.call(this,e,o)).id=null,i.__hotInstance=null,i.hotElementRef=null,i.columnSettings=[],i.portalManager=null,i.portalCacheArray=[],i.globalEditorPortal=null,i.renderedCellCache=new Map,i.editorCache=new Map,i.componentRendererColumns=new Map,x(f(i)),i}return d(n,[{key:"hotInstance",get:function(){return!this.__hotInstance||this.__hotInstance&&!this.__hotInstance.isDestroyed?this.__hotInstance:(console.warn("The Handsontable instance bound to this component was destroyed and cannot be used properly."),null)},set:function(e){this.__hotInstance=e}},{key:"getRenderedCellCache",value:function(){return this.renderedCellCache}},{key:"getEditorCache",value:function(){return this.editorCache}},{key:"getGlobalEditorPortal",value:function(){return this.globalEditorPortal}},{key:"setGlobalEditorPortal",value:function(e){this.globalEditorPortal=e}},{key:"clearCache",value:function(){var e=this.getRenderedCellCache();this.setGlobalEditorPortal(null),_(this.getOwnerDocument()),this.getEditorCache().clear(),e.clear(),this.componentRendererColumns.clear()}},{key:"getOwnerDocument",value:function(){return this.hotElementRef?this.hotElementRef.ownerDocument:document}},{key:"setHotElementRef",value:function(e){this.hotElementRef=e}},{key:"getRendererWrapper",value:function(e){var t=this;return function(n,r,a,l,c,d,h){var m=t.getRenderedCellCache();if(m.has("".concat(a,"-").concat(l))&&(r.innerHTML=m.get("".concat(a,"-").concat(l)).innerHTML),r&&!r.getAttribute("ghost-table")){for(var p=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document;r||(r=document),b||(b=r.createDocumentFragment());var a=r.createElement("DIV");b.appendChild(a);var l=o.cloneElement(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(t.row,"-").concat(t.col)},t));return{portal:i.createPortal(l,a,"".concat(t.row,"-").concat(t.col,"-").concat(Math.random())),portalContainer:a}}(e,{TD:r,row:a,col:l,prop:c,value:d,cellProperties:h,isRenderer:!0},(function(){}),r.ownerDocument),f=p.portal,g=p.portalContainer;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(g),t.portalCacheArray.push(f)}return m.set("".concat(a,"-").concat(l),r),r}}},{key:"getEditorClass",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v,o=C(e),i=null===(t=this.getEditorCache().get(o))||void 0===t?void 0:t.get(n);return this.makeEditorClass(i)}},{key:"makeEditorClass",value:function(e){var t=function(t){h(o,t);var n=g(o);function o(t){var i;return l(this,o),i=n.call(this,t),e.hotCustomEditorInstance=f(i),i.editorComponent=e,i}return d(o,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}]),o}(r.Ay.editors.BaseEditor);return Object.getOwnPropertyNames(r.Ay.editors.BaseEditor.prototype).forEach((function(n){"constructor"!==n&&(t.prototype[n]=function(){for(var t,o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];return(t=e[n]).call.apply(t,[e].concat(i))})})),t}},{key:"getGlobalRendererElement",value:function(){return w(this.props.children,"hot-renderer")}},{key:"getGlobalEditorElement",value:function(){return M(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.children,this.getEditorCache())}},{key:"createGlobalEditorPortal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.children,t=this.getGlobalEditorElement(e);t&&this.setGlobalEditorPortal(S(this.getOwnerDocument(),t,this.getEditorCache()))}},{key:"createNewGlobalSettings",value:function(){var e=k.getSettings(this.props),t=this.getGlobalRendererElement(),n=this.getGlobalEditorElement();return e.columns=this.columnSettings.length?this.columnSettings:e.columns,e.editor=n?this.getEditorClass(n,v):this.props.editor||(this.props.settings?this.props.settings.editor:void 0),t?(e.renderer=this.getRendererWrapper(t),this.componentRendererColumns.set("global",!0)):e.renderer=this.props.renderer||(this.props.settings?this.props.settings.renderer:void 0),e}},{key:"displayAutoSizeWarning",value:function(e){var t,n;this.hotInstance&&(null!==(t=this.hotInstance.getPlugin("autoRowSize"))&&void 0!==t&&t.enabled||null!==(n=this.hotInstance.getPlugin("autoColumnSize"))&&void 0!==n&&n.enabled)&&this.componentRendererColumns.size>0&&function(){var e;"undefined"!=typeof console&&(e=console).warn.apply(e,arguments)}("Your `HotTable` configuration includes `autoRowSize`/`autoColumnSize` options, which are not compatible with the component-based renderers`. Disable `autoRowSize` and `autoColumnSize` to prevent row and column misalignment.")}},{key:"setHotColumnSettings",value:function(e,t){this.columnSettings[t]=e}},{key:"handsontableBeforeViewRender",value:function(){this.getRenderedCellCache().clear()}},{key:"handsontableAfterViewRender",value:function(){var e=this;this.portalManager.setState((function(){return Object.assign({},{portals:e.portalCacheArray})}),(function(){e.portalCacheArray.length=0}))}},{key:"updateHot",value:function(e){this.hotInstance&&this.hotInstance.updateSettings(e,!1)}},{key:"setPortalManagerRef",value:function(e){this.portalManager=e}},{key:"componentWillMount",value:function(){this.clearCache(),this.createGlobalEditorPortal()}},{key:"componentDidMount",value:function(){var e=this,t=this.createNewGlobalSettings();this.hotInstance=new r.Ay.Core(this.hotElementRef,t),this.hotInstance.addHook("beforeViewRender",(function(t){e.handsontableBeforeViewRender()})),this.hotInstance.addHook("afterViewRender",(function(){e.handsontableAfterViewRender()})),this.hotInstance.init(),this.displayAutoSizeWarning(t)}},{key:"componentWillUpdate",value:function(e,t,n){this.clearCache(),_(this.getOwnerDocument()),this.createGlobalEditorPortal(e.children)}},{key:"componentDidUpdate",value:function(){var e=this.createNewGlobalSettings();this.updateHot(e),this.displayAutoSizeWarning(e)}},{key:"componentWillUnmount",value:function(){this.hotInstance&&this.hotInstance.destroy(),_(this.getOwnerDocument())}},{key:"render",value:function(){var e=this,t=E(this.props),n=t.id,i=t.className,r=t.style,s=o.Children.toArray(this.props.children),a=(s=s.filter((function(e){return function(e){return e.type===T}(e)}))).map((function(t,n){return o.cloneElement(t,{_componentRendererColumns:e.componentRendererColumns,_emitColumnSettings:e.setHotColumnSettings.bind(e),_columnIndex:n,_getChildElementByType:w.bind(e),_getRendererWrapper:e.getRendererWrapper.bind(e),_getEditorClass:e.getEditorClass.bind(e),_getOwnerDocument:e.getOwnerDocument.bind(e),_getEditorCache:e.getEditorCache.bind(e),children:t.props.children})}));return a.push(this.getGlobalEditorPortal()),o.createElement(o.Fragment,null,o.createElement("div",{ref:this.setHotElementRef.bind(this),id:n,className:i,style:r},a),o.createElement(R,{ref:this.setPortalManagerRef.bind(this)}))}}],[{key:"version",get:function(){return"11.0.0"}}]),n}(o.Component);oe.propTypes={style:ne.object,id:ne.string,className:ne.string},o.Component},33478:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},33706:(e,t,n)=>{"use strict";var o=n(79504),i=n(94901),r=n(77629),s=o(Function.toString);i(r.inspectSource)||(r.inspectSource=function(e){return s(e)}),e.exports=r.inspectSource},33717:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},33853:(e,t,n)=>{"use strict";var o=n(46518),i=n(64449);o({target:"Set",proto:!0,real:!0,forced:!n(84916)("isDisjointFrom",(function(e){return!e}))},{isDisjointFrom:i})},34376:(e,t,n)=>{"use strict";var o=n(22195);e.exports=Array.isArray||function(e){return"Array"===o(e)}},34527:(e,t,n)=>{"use strict";var o=n(43724),i=n(34376),r=TypeError,s=Object.getOwnPropertyDescriptor,a=o&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(i(e)&&!s(e,"length").writable)throw new r("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},34552:(e,t,n)=>{"use strict";n.d(t,{m6:()=>p,BD:()=>f});var o=n(89379),i=n(20998),r="data-rc-order",s="data-rc-priority",a="rc-util-key",l=new Map;function c(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):a}function d(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function u(e){return Array.from((l.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,i.A)())return null;var n=t.csp,o=t.prepend,a=t.priority,l=void 0===a?0:a,c=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),h="prependQueue"===c,m=document.createElement("style");m.setAttribute(r,c),h&&l&&m.setAttribute(s,"".concat(l)),null!=n&&n.nonce&&(m.nonce=null==n?void 0:n.nonce),m.innerHTML=e;var p=d(t),f=p.firstChild;if(o){if(h){var g=(t.styles||u(p)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(r)))return!1;var t=Number(e.getAttribute(s)||0);return l>=t}));if(g.length)return p.insertBefore(m,g[g.length-1].nextSibling),m}p.insertBefore(m,f)}else p.appendChild(m);return m}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(t);return(t.styles||u(n)).find((function(n){return n.getAttribute(c(t))===e}))}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m(e,t);n&&d(t).removeChild(n)}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=d(n),r=u(i),s=(0,o.A)((0,o.A)({},n),{},{styles:r});!function(e,t){var n=l.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var o=h("",t),i=o.parentNode;l.set(e,i),e.removeChild(o)}}(i,s);var a,p,f,g=m(t,s);if(g)return null!==(a=s.csp)&&void 0!==a&&a.nonce&&g.nonce!==(null===(p=s.csp)||void 0===p?void 0:p.nonce)&&(g.nonce=null===(f=s.csp)||void 0===f?void 0:f.nonce),g.innerHTML!==e&&(g.innerHTML=e),g;var b=h(e,s);return b.setAttribute(c(s),t),b}},34647:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const o=new Map;function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";o.has(e)||o.set(e,new Map);const t=o.get(e);return{register:function(e,n){t.set(e,n)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[...t.keys()]},getValues:function(){return[...t.values()]}}}},34675:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var o=n(95239),i=n(92182);const r={CELL_TYPE:"text",editor:o.t,renderer:i.F}},34840:(e,t,n)=>{var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=o},35031:(e,t,n)=>{"use strict";var o=n(97751),i=n(79504),r=n(38480),s=n(33717),a=n(28551),l=i([].concat);e.exports=o("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=s.f;return n?l(t,n(e)):t}},35370:(e,t,n)=>{"use strict";var o=n(26198);e.exports=function(e,t,n){for(var i=0,r=arguments.length>2?n:o(t),s=new e(r);r>i;)s[i]=t[i++];return s}},35610:(e,t,n)=>{"use strict";var o=n(91291),i=Math.max,r=Math.min;e.exports=function(e,t){var n=o(e);return n<0?i(n+t,0):r(n,t)}},35917:(e,t,n)=>{"use strict";var o=n(43724),i=n(79039),r=n(4055);e.exports=!o&&!i((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},36840:(e,t,n)=>{"use strict";var o=n(94901),i=n(24913),r=n(50283),s=n(39433);e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(o(n)&&r(n,c,a),a.global)l?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},36955:(e,t,n)=>{"use strict";var o=n(92140),i=n(94901),r=n(22195),s=n(78227)("toStringTag"),a=Object,l="Arguments"===r(function(){return arguments}());e.exports=o?r:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?n:l?r(t):"Object"===(o=r(t))&&i(t.callee)?"Arguments":o}},37071:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},37237:(e,t,n)=>{"use strict";n.d(t,{um:()=>o_}),n(16280),n(44114),n(98992),n(54520),n(72577),n(8872);var o=n(95239),i=n(20091),r=n(25155),s=n(32919),a=n(79720);const l="handsontableEditor";class c extends o.t{static get EDITOR_TYPE(){return"handsontable"}open(){super.open();const e=this.htContainer.style;this.htEditor&&(this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,i.vZ)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.htEditor.updateSettings({width:this.getWidth(),height:this.getHeight()}),this.refreshDimensions()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,t,n,o,i,r){super.prepare(e,t,n,o,i,r);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,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){const n=this.getSourceData(t.row,t.col);void 0!==n&&a.setValue(n),a.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,s.X$)(l,r.handsontable),this.htOptions=l}beginEditing(e,t){const n=this.hot.getSettings().onBeginEditing;n&&!1===n()||super.beginEditing(e,t)}createElements(){super.createElements();const e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,n){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){const e=this.htEditor.getValue();void 0!==e&&this.setValue(e)}super.finishEditing(e,t,n)}getHeight(){return this.htEditor.view.getTableHeight()+1}getWidth(){return this.htEditor.view.getTableWidth()}assignHooks(){this.hot.addHook("afterDestroy",(()=>{var e;null===(e=this.htEditor)||void 0===e||e.destroy()})),this.hot.addHook("afterSetTheme",((e,t)=>{var n;t||null===(n=this.htEditor)||void 0===n||n.useTheme(e)}))}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const t={group:l,relativeToGroup:a.b,position:"before"},n=(e,t)=>{const n=this.htEditor;if(void 0!==e&&(e<0||n.flipped&&e>n.countRows()-1?n.deselectCell():n.selectCell(e,0),n.getData().length))return t.preventDefault(),(0,r.CA)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let o,i;return!t.getSelectedLast()&&t.flipped?o=t.countRows()-1:t.getSelectedLast()&&(t.flipped?(i=t.getSelectedLast()[0],o=Math.max(0,i-1)):(i=t.getSelectedLast()[0],o=i-1)),n(o,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let o,i;if(t.getSelectedLast()||t.flipped){if(t.getSelectedLast())if(t.flipped)o=t.getSelectedLast()[0]+1;else if(!t.flipped){const e=t.countRows()-1;i=t.getSelectedLast()[0],o=Math.min(e,i+1)}}else o=0;return n(o,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(l)}}var d=n(77325),u=n(65615),h=n(24360),m=n(38419),p=n(92182),f=n(66422),g=n(83986);function b(e,t,n){v(e,t),t.set(e,n)}function v(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){return e.get(C(e,t))}function C(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var _=new WeakMap,S=new WeakMap,M=new WeakSet;class E extends c{constructor(){var e;super(...arguments),v(this,e=M),e.add(this),y(this,"query",null),y(this,"strippedChoices",[]),y(this,"rawChoices",[]),b(this,_,this.hot.guid.slice(0,9)),b(this,S,(0,g.sg)((()=>{this.focus()}),100)),y(this,"sortByRelevance",(function(e,t,n){const o=[],i=[],r=e.length;let s,a,l,c,d=t.length;if(0===r){for(l=0;l<d;l++)i.push(l);return i}for(l=0;l<d;l++){if(a=(0,h.Kq)((0,u.As)(t[l])),n)c=a.indexOf(e);else{const t=this.cellProperties.locale;c=a.toLocaleLowerCase(t).indexOf(e.toLocaleLowerCase(t))}-1!==c&&(s=a.length-c-r,o.push({baseIndex:l,index:c,charsLeft:s,value:a}))}for(o.sort(((e,t)=>{if(-1===t.index)return-1;if(-1===e.index)return 1;if(e.index<t.index)return-1;if(t.index<e.index)return 1;if(e.index===t.index){if(e.charsLeft<t.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0})),l=0,d=o.length;l<d;l++)i.push(o[l].baseIndex);return i}))}static get EDITOR_TYPE(){return"autocomplete"}getValue(){const e=this.rawChoices.find((e=>this.stripValueIfNeeded(e)===this.TEXTAREA.value));return(0,u.O9)(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),(0,i.iQ)(this.htContainer,"autocompleteEditor"),(0,i.iQ)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&(0,i.Bq)(this.TEXTAREA,[(0,f.ZW)(),(0,f.B6)(),(0,f.wP)("listbox"),(0,f.gq)()])}prepare(e,t,n,o,r,s){super.prepare(e,t,n,o,r,s),this.hot.getSettings().ariaTags&&(0,i.Bq)(this.TEXTAREA,[(0,f.dV)("false"),(0,f.Ku)(`${w(_,this)}-listbox-${e}-${t}`)])}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,n=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,o=null==n?void 0:n.length,{row:r,col:s}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",(e=>this.onBeforeKeyDown(e))),this.htEditor.addHook("afterScroll",w(S,this)),this.htEditor.updateSettings({colWidths:e?[(0,i.Gq)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,renderer:(e,r,s,a,l,c,d)=>{(0,p.F)(e,r,s,a,l,c,d);const{filteringCaseSensitive:h,allowHtml:m,locale:g}=this.cellProperties,b=this.query;let v,y,w=(0,u.As)(c);w&&!m&&(v=!0===h?w.indexOf(b):w.toLocaleLowerCase(g).indexOf(b.toLocaleLowerCase(g)),-1!==v&&(y=w.substr(v,b.length),w=w.replace(y,`<strong>${y}</strong>`))),t&&(0,i.Bq)(r,[(0,f.n)(),...n?[(0,f.DY)(o)]:[],...n?[(0,f.Vy)(n.indexOf(c)+1)]:[],["id",`${this.htEditor.rootElement.id}_${s}-${a}`]]),r.innerHTML=w},afterSelectionEnd:(e,n)=>{if(t){const t=e=>{(0,i.Bq)(e,[(0,f.H0)()]),(0,i.Bq)(this.TEXTAREA,...(0,f.VN)(e.id))},o=this.htEditor.getCell(e,n,!0);null!==o?t(o):this.htEditor.addHookOnce("afterScrollVertically",(()=>{const o=this.htEditor.getCell(e,n,!0);t(o)}))}}}),t&&((0,i.Bq)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,f.gg)()),(0,i.Bq)(this.htEditor.rootElement,[(0,f.$o)(),(0,f.S2)("polite"),(0,f.rE)("text"),["id",`${w(_,this)}-listbox-${r}-${s}`]]),(0,i.Bq)(this.TEXTAREA,...(0,f.dV)("true"))),this.hot._registerTimeout((()=>{this.queryChoices(this.TEXTAREA.value)}))}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&(0,i.Bq)(this.TEXTAREA,[(0,f.dV)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,(e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))})):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=(0,i.JC)(this.TEXTAREA),n=(0,i.Xu)(this.TEXTAREA),o=this.cellProperties.sortByRelevance,r=this.cellProperties.filter;let s=null,a=null,l=e;o&&(s=this.sortByRelevance(this.stripValueIfNeeded(this.getValue()),l,this.cellProperties.filteringCaseSensitive));const c=Array.isArray(s)?s.length:0;if(!1===r)c&&(a=s[0]);else{const e=[];for(let t=0,n=l.length;t<n&&!(o&&c<=t);t++)c?e.push(l[s[t]]):e.push(l[t]);a=0,l=e}this.strippedChoices=l,0===l.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,d.h9)([l])),l.length>0&&(this.updateDropdownDimensions(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(a)),this.hot.listen(),(0,i.vZ)(this.TEXTAREA,t,t===n?void 0:n)}flipDropdownIfNeeded(){const e=this.getEditedCellRect(),t=e.height;let n=e.top;if(this.hot.view.isVerticallyScrollableByWindow()){const e=this.hot.view.getTableOffset().top-this.hot.rootWindow.scrollY;n=Math.max(n+e,0)}const o=this.getHeight(),i=this.hot.view.getWorkspaceHeight()-n-t,r=o>i&&n>i+t;return r?this.flipDropdown(o):this.unflipDropdown(),this.limitDropdownIfNeeded(r?n:i,o),r}limitDropdownIfNeeded(e,t){if(t>e){let n=0,o=0,i=0,r=null;do{i=this.htEditor.getRowHeight(o)||this.htEditor.view.getDefaultRowHeight(),n+=i,o+=1}while(n<e);r=n-i,this.htEditor.flipped&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-r+"px"),this.setDropdownHeight(n-i)}}flipDropdown(e){const t=this.htEditor.rootElement.style;t.position="absolute",t.top=-e+"px",this.htEditor.flipped=!0}unflipDropdown(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.htEditor.flipped=void 0}updateDropdownDimensions(){this.htEditor.updateSettings({width:this.getWidth(),height:this.getHeight()}),C(M,this,x).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e}),C(M,this,x).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getHeight(){const e=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore")),t=parseInt(e.borderTopWidth,10)+parseInt(e.borderBottomWidth,10),n=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:n},((e,t)=>t)).reduce(((e,t)=>e+(this.htEditor.getRowHeight(t)||this.htEditor.view.getDefaultRowHeight())),0)+t+1}getWidth(){const e=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore")),t=parseInt(e.borderInlineStartWidth,10)+parseInt(e.borderInlineEndWidth,10);return this.htEditor.getColWidth(0)+t}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,n=(0,d.YD)(e,(e=>(0,u.As)(e)));return(0,d.YD)(n,(e=>t?e:(0,h.Kq)(e)))}allowKeyEventPropagation(e){const t=this.htEditor.getSelectedRangeLast(),n=t?t.from.row:-1;let o=!1;return e===m.Lb.ARROW_DOWN&&n>0&&n<this.htEditor.countRows()-1&&(o=!0),e===m.Lb.ARROW_UP&&n>-1&&(o=!0),o}onBeforeKeyDown(e){if((0,m.aE)(e.keyCode)||e.keyCode===m.Lb.BACKSPACE||e.keyCode===m.Lb.DELETE||e.keyCode===m.Lb.INSERT){let t=10;if(e.keyCode===m.Lb.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout((()=>{this.queryChoices(this.TEXTAREA.value)}),t)}}}function x(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getWidth()+(0,i.XJ)(this.hot.rootDocument)})}var k=n(32564);class T extends k.b7{static get EDITOR_TYPE(){return"checkbox"}beginEditing(e,t){if(t&&"mouseup"===t.type&&"TD"===t.target.nodeName){const e=this.TD.querySelector('input[type="checkbox"]');(0,i.nB)(e,"htBadValue")||e.click()}}finishEditing(){}init(){}open(){}close(){}getValue(){}setValue(){}focus(){}}var R=n(95093);const A=()=>window,L=()=>window.document,O=(e,t)=>window.setTimeout(e,t),D=function(e,t,n,o){e.addEventListener(t,n,!!o)},H=function(e,t,n,o){e.removeEventListener(t,n,!!o)},I=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},P=function(e,t){I(e,t)||(e.className=""===e.className?t:e.className+" "+t)},N=function(e,t){var n;e.className=(n=(" "+e.className+" ").replace(" "+t+" "," ")).trim?n.trim():n.replace(/^\s+|\s+$/g,"")},F=function(e){return/Array/.test(Object.prototype.toString.call(e))},z=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},j=function(e){let t=e.getDay();return 0===t||6===t},Y=function(e){return e%4==0&&e%100!=0||e%400==0},$=function(e,t){return[31,Y(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},B=function(e){z(e)&&e.setHours(0,0,0,0)},W=function(e,t){return e.getTime()===t.getTime()},V=function(e,t,n){let o,i;for(o in t)i=void 0!==e[o],i&&"object"==typeof t[o]&&null!==t[o]&&void 0===t[o].nodeName?z(t[o])?n&&(e[o]=new Date(t[o].getTime())):F(t[o])?n&&(e[o]=t[o].slice(0)):e[o]=V({},t[o],n):!n&&i||(e[o]=t[o]);return e},U=function(e,t,n){let o=L().createEvent("HTMLEvents");o.initEvent(t,!0,!1),o=V(o,n),e.dispatchEvent(o)},G=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},K={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},q=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},X=function(e){let t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},J=function(e,t,n,o,i){let r=new Date(o,n,t),s=e.hasMoment?e.moment(r).isoWeek():function(e,t){e.setHours(0,0,0,0);let n=e.getDate(),o=e.getDay(),i=t,r=i-1,s=function(e){return(e+7-1)%7};e.setDate(n+r-s(o));let a=new Date(e.getFullYear(),0,i),l=(e.getTime()-a.getTime())/864e5;return 1+Math.round((l-r+s(a.getDay()))/7)}(r,i);return'<td class="pika-week">'+s+"</td>"},Q=function(e,t,n,o){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(o?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},Z=function(e,t,n,o,i,r){let s,a,l,c,d,u=e._o,h=n===u.minYear,m=n===u.maxYear,p='<div id="'+r+'" class="pika-title" role="heading" aria-live="polite">',f=!0,g=!0;for(l=[],s=0;s<12;s++)l.push('<option value="'+(n===i?s-t:12+s-t)+'"'+(s===o?' selected="selected"':"")+(h&&s<u.minMonth||m&&s>u.maxMonth?' disabled="disabled"':"")+">"+u.i18n.months[s]+"</option>");for(c='<div class="pika-label">'+u.i18n.months[o]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",F(u.yearRange)?(s=u.yearRange[0],a=u.yearRange[1]+1):(s=n-u.yearRange,a=1+n+u.yearRange),l=[];s<a&&s<=u.maxYear;s++)s>=u.minYear&&l.push('<option value="'+s+'"'+(s===n?' selected="selected"':"")+">"+s+"</option>");return d='<div class="pika-label">'+n+u.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",u.showMonthAfterYear?p+=d+c:p+=c+d,h&&(0===o||u.minMonth>=o)&&(f=!1),m&&(11===o||u.maxMonth<=o)&&(g=!1),0===t&&(p+='<button class="pika-prev'+(f?"":" is-disabled")+'" type="button">'+u.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(p+='<button class="pika-next'+(g?"":" is-disabled")+'" type="button">'+u.i18n.nextMonth+"</button>"),p+"</div>"};function ee(e){let t=this,n=t.config(e);t._onMouseDown=function(e){if(!t._v)return;let o=(e=e||A().event).target||e.srcElement;if(o)if(I(o,"is-disabled")||(!I(o,"pika-button")||I(o,"is-empty")||I(o.parentNode,"is-disabled")?I(o,"pika-prev")?t.prevMonth():I(o,"pika-next")&&t.nextMonth():(t.setDate(new Date(o.getAttribute("data-pika-year"),o.getAttribute("data-pika-month"),o.getAttribute("data-pika-day"))),n.bound&&O((function(){t.hide(),n.blurFieldOnSelect&&n.field&&n.field.blur()}),100))),I(o,"pika-select"))t._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}},t._onChange=function(e){let n=(e=e||A().event).target||e.srcElement;n&&(I(n,"pika-select-month")?t.gotoMonth(n.value):I(n,"pika-select-year")&&t.gotoYear(n.value))},t._onKeyChange=function(e){if(e=e||A().event,t.isVisible())switch(e.keyCode){case 13:case 27:n.field&&n.field.blur();break;case 37:t.adjustDate("subtract",1);break;case 38:t.adjustDate("subtract",7);break;case 39:t.adjustDate("add",1);break;case 40:t.adjustDate("add",7);break;case 8:case 46:t.setDate(null)}},t._parseFieldValue=function(){if(n.parse)return n.parse(n.field.value,n.format);if(this.hasMoment){let e=this.moment(n.field.value,n.format,n.formatStrict);return e&&e.isValid()?e.toDate():null}return new Date(Date.parse(n.field.value))},t._onInputChange=function(e){let n;e.firedBy!==t&&(n=t._parseFieldValue(),z(n)&&t.setDate(n),t._v||t.show())},t._onInputFocus=function(){t.show()},t._onInputClick=function(){t.show()},t._onInputBlur=function(){let e=L().activeElement;do{if(I(e,"pika-single"))return}while(e=e.parentNode);t._c||(t._b=O((function(){t.hide()}),50)),t._c=!1},t._onClick=function(e){let o=(e=e||A().event).target||e.srcElement,i=o;if(o){!hasEventListeners&&I(o,"pika-select")&&(o.onchange||(o.setAttribute("onchange","return;"),D(o,"change",t._onChange)));do{if(I(i,"pika-single")||i===n.trigger)return}while(i=i.parentNode);t._v&&o!==n.trigger&&i!==n.trigger&&t.hide()}},t.el=L().createElement("div"),t.el.className="pika-single"+(n.isRTL?" is-rtl":"")+(n.theme?" "+n.theme:""),D(t.el,"mousedown",t._onMouseDown,!0),D(t.el,"touchend",t._onMouseDown,!0),D(t.el,"change",t._onChange),n.keyboardInput&&D(L(),"keydown",t._onKeyChange),n.field&&(n.container?n.container.appendChild(t.el):n.bound?L().body.appendChild(t.el):n.field.parentNode.insertBefore(t.el,n.field.nextSibling),D(n.field,"change",t._onInputChange),n.defaultDate||(n.defaultDate=t._parseFieldValue(),n.setDefaultDate=!0));let o=n.defaultDate;z(o)?n.setDefaultDate?t.setDate(o,!0):t.gotoDate(o):t.gotoDate(new Date),n.bound?(this.hide(),t.el.className+=" is-bound",D(n.trigger,"click",t._onInputClick),D(n.trigger,"focus",t._onInputFocus),D(n.trigger,"blur",t._onInputBlur)):this.show()}ee.prototype={config:function(e){this._o||(this._o=V({},K,!0));let t=V(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;let n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,z(t.minDate)||(t.minDate=!1),z(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),F(t.yearRange)){let e=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||e,t.yearRange[1]=parseInt(t.yearRange[1],10)||e}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||K.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(e){return e=e||this._o.format,z(this._d)?this._o.toString?this._o.toString(this._d,e):this.hasMoment?this.moment(this._d).format(e):this._d.toDateString():""},getMoment:function(){return this.hasMoment?this.moment(this._d):null},setMoment:function(e,t){this.hasMoment&&this.moment.isMoment(e)&&this.setDate(e.toDate(),t)},useMoment:function(e){this.hasMoment=!0,this.moment=e},getDate:function(){return z(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",U(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),!z(e))return;let n=this._o.minDate,o=this._o.maxDate;z(n)&&e<n?e=n:z(o)&&e>o&&(e=o),this._d=new Date(e.getTime()),B(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),U(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())},clear:function(){this.setDate(null)},gotoDate:function(e){let t=!0;if(z(e)){if(this.calendars){let n=new Date(this.calendars[0].year,this.calendars[0].month,1),o=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=e.getTime();o.setMonth(o.getMonth()+1),o.setDate(o.getDate()-1),t=i<n.getTime()||o.getTime()<i}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(e,t){let n,o=this.getDate()||new Date,i=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(o.valueOf()+i):"subtract"===e&&(n=new Date(o.valueOf()-i)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=G(this.calendars[0]);for(let e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=G({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(B(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=K.minDate,this._o.minYear=K.minYear,this._o.minMonth=K.minMonth,this._o.startRange=K.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(B(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=K.maxDate,this._o.maxYear=K.maxYear,this._o.maxMonth=K.maxMonth,this._o.endRange=K.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(!this._v&&!e)return;let t,n=this._o,o=n.minYear,i=n.maxYear,r=n.minMonth,s=n.maxMonth,a="";this._y<=o&&(this._y=o,!isNaN(r)&&this._m<r&&(this._m=r)),this._y>=i&&(this._y=i,!isNaN(s)&&this._m>s&&(this._m=s));for(let e=0;e<n.numberOfMonths;e++)t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),a+='<div class="pika-lendar">'+Z(this,e,this.calendars[e].year,this.calendars[e].month,this.calendars[0].year,t)+this.render(this.calendars[e].year,this.calendars[e].month,t)+"</div>";this.el.innerHTML=a,n.bound&&"hidden"!==n.field.type&&O((function(){n.trigger.focus()}),1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label",n.ariaLabel)},adjustPosition:function(){let e,t,n,o,i,r,s,a,l,c,d;this._o.container||(this.el.style.position="absolute",e=this._o.trigger,t=this.el.offsetWidth,n=this.el.offsetHeight,o=A().innerWidth||L().documentElement.clientWidth,i=A().innerHeight||L().documentElement.clientHeight,r=L().body.scrollTop||L().documentElement.scrollTop,c=!0,d=!0,l=e.getBoundingClientRect(),s=l.left+A().pageXOffset,a=l.bottom+A().pageYOffset,(this._o.reposition&&s+t>o||this._o.position.indexOf("right")>-1&&s-t+e.offsetWidth>0)&&(s=s-t+e.offsetWidth,c=!1),(this._o.reposition&&a+n>i+r||this._o.position.indexOf("top")>-1&&a-n-e.offsetHeight>0)&&(a=a-n-e.offsetHeight,d=!1),s<0&&(s=0),a<0&&(a=0),this.el.style.left=s+"px",this.el.style.top=a+"px",P(this.el,c?"left-aligned":"right-aligned"),P(this.el,d?"bottom-aligned":"top-aligned"),N(this.el,c?"right-aligned":"left-aligned"),N(this.el,d?"top-aligned":"bottom-aligned"))},render:function(e,t,n){let o=this._o,i=new Date,r=$(e,t),s=new Date(e,t,1).getDay(),a=[],l=[];B(i),o.firstDay>0&&(s-=o.firstDay,s<0&&(s+=7));let c=0===t?11:t-1,d=11===t?0:t+1,u=0===t?e-1:e,h=11===t?e+1:e,m=$(u,c),p=r+s,f=p;for(;f>7;)f-=7;p+=7-f;let g=!1;for(let n=0,f=0;n<p;n++){let p=new Date(e,t,n-s+1),b=!!z(this._d)&&W(p,this._d),v=W(p,i),y=-1!==o.events.indexOf(p.toDateString()),w=n<s||n>=r+s,C=n-s+1,_=t,S=e,M=o.startRange&&W(o.startRange,p),E=o.endRange&&W(o.endRange,p),x=o.startRange&&o.endRange&&o.startRange<p&&p<o.endRange;w&&(n<s?(C=m+C,_=c,S=u):(C-=r,_=d,S=h));let k={day:C,month:_,year:S,hasEvent:y,isSelected:b,isToday:v,isDisabled:o.minDate&&p<o.minDate||o.maxDate&&p>o.maxDate||o.disableWeekends&&j(p)||o.disableDayFn&&o.disableDayFn(p),isEmpty:w,isStartRange:M,isEndRange:E,isInRange:x,showDaysInNextAndPreviousMonths:o.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:o.enableSelectionDaysInNextAndPreviousMonths};o.pickWholeWeek&&b&&(g=!0),l.push(X(k)),7===++f&&(o.showWeekNumber&&l.unshift(J(this,n-s,t,e,o.firstWeekOfYearMinDays)),a.push(Q(l,o.isRTL,o.pickWholeWeek,g)),l=[],f=0,g=!1)}return function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(e){let t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+q(e,t)+'">'+q(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"}(e)+"<tbody>"+t.join("")+"</tbody></table>"}(o,a,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),N(this.el,"is-hidden"),this._o.bound&&(D(L(),"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){let e=this._v;!1!==e&&(this._o.bound&&H(L(),"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),P(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){let e=this._o;this.hide(),H(this.el,"mousedown",this._onMouseDown,!0),H(this.el,"touchend",this._onMouseDown,!0),H(this.el,"change",this._onChange),e.keyboardInput&&H(L(),"keydown",this._onKeyChange),e.field&&(H(e.field,"change",this._onInputChange),e.bound&&(H(e.trigger,"click",this._onInputClick),H(e.trigger,"focus",this._onInputFocus),H(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}};var te=n(58002);function ne(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oe(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const ie="date",re="dateEditor";var se=new WeakSet;class ae extends o.t{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=se),t.add(e),ne(this,"parentDestroyed",!1),ne(this,"$datePicker",null)}static get EDITOR_TYPE(){return ie}init(){if("function"!=typeof R)throw new Error("You need to include moment.js to your project.");super.init(),this.hot.addHook("afterDestroy",(()=>{this.parentDestroyed=!0,this.destroyElements()})),this.hot.addHook("afterSetTheme",((e,t)=>{t||((0,i.vy)(this.datePicker,/ht-theme-.*/g),(0,i.iQ)(this.datePicker,e))}))}createElements(){super.createElements(),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,i.iQ)(this.datePicker,"htDatepickerHolder");const e=this.hot.getCurrentThemeName();(0,i.vy)(this.datePicker,/ht-theme-.*/g),(0,i.iQ)(this.datePicker,e),this.hot.rootDocument.body.appendChild(this.datePicker),this.eventManager.addEventListener(this.datePicker,"mousedown",(e=>{(0,i.nB)(e.target,"pika-day")&&this.hideDatepicker(),e.stopPropagation()}))}destroyElements(){const e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}prepare(e,t,n,o,i,r){super.prepare(e,t,n,o,i,r)}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.hot.getShortcutManager().getContext("editor");this.showDatepicker(e),super.open(),t.addShortcuts([{keys:[["ArrowLeft"]],callback:()=>{this.$datePicker.adjustDate("subtract",1)}},{keys:[["ArrowRight"]],callback:()=>{this.$datePicker.adjustDate("add",1)}},{keys:[["ArrowUp"]],callback:()=>{this.$datePicker.adjustDate("subtract",7)}},{keys:[["ArrowDown"]],callback:()=>{this.$datePicker.adjustDate("add",7)}}],{group:re})}close(){var e;this._opened=!1,null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.hot._registerTimeout((()=>{const e=this.hot._getEditorManager();e.closeEditor(),this.hot.view.render(),e.prepareEditor()})),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(re),super.close()}finishEditing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.finishEditing(e,t)}showDatepicker(e){const t=oe(se,this,le).call(this),n=this.hot.view.isMouseDown(),o=!!e&&(0,m.Yf)(e.keyCode);let i;this.datePicker.style.display="block",this.$datePicker=new ee(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(R),this.$datePicker._onInputFocus=function(){},this.originalValue?(i=this.originalValue,R(i,t,!0).isValid()&&this.$datePicker.setMoment(R(i,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),o||n||this.setValue("")):this.cellProperties.defaultDate?(i=this.cellProperties.defaultDate,R(i,t,!0).isValid()&&this.$datePicker.setMoment(R(i,t),!0),o||n||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){var e;const t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,s.zw)(n,this.cellProperties.datePickerConfig);const o=n.onSelect,i=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.keyboardInput=!1,n.format=null!==(e=n.format)&&void 0!==e?e:oe(se,this,le).call(this),n.reposition=n.reposition||!1,n.isRTL=!1,n.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=R(t).format(oe(se,this,le).call(this))),this.setValue(t),o&&o(),(0,te.rr)()&&this.hideDatepicker()},n.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),i&&i()},n}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==k._T.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:n,columnIndexMapper:o}=this.hot,{wtOverlays:r}=this.hot.view._wt,{wtTable:s}=null!==(t=r.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,a=n.getVisualFromRenderableIndex(s.getFirstPartiallyVisibleRow()),l=n.getVisualFromRenderableIndex(s.getLastPartiallyVisibleRow()),c=o.getVisualFromRenderableIndex(s.getFirstPartiallyVisibleColumn()),d=o.getVisualFromRenderableIndex(s.getLastPartiallyVisibleColumn());if(this.row>=a&&this.row<=l&&this.col>=c&&this.col<=d){const e=this.TD.getBoundingClientRect();this.datePickerStyle.top=`${this.hot.rootWindow.pageYOffset+e.top+(0,i.DK)(this.TD)}px`;let t=this.hot.rootWindow.pageXOffset;this.hot.isRtl()?t+=e.right-(0,i.Gq)(this.datePicker):t+=e.left,this.datePickerStyle.left=`${t}px`}else this.hideDatepicker()}}function le(){var e;return null!==(e=this.cellProperties.dateFormat)&&void 0!==e?e:"DD/MM/YYYY"}class ce extends E{static get EDITOR_TYPE(){return"dropdown"}prepare(e,t,n,o,i,r){r.filter=!1,r.strict=!0,super.prepare(e,t,n,o,i,r)}}class de extends o.t{static get EDITOR_TYPE(){return"numeric"}}var ue=n(83023);class he extends o.t{constructor(){var e,t,n;super(...arguments),e=this,t="autoResize",n=(0,ue.j)(this.hot.rootDocument,{textContent:e=>"•".repeat(e.value.length)}),(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}static get EDITOR_TYPE(){return"password"}createElements(){super.createElements(),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,i.Ie)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}const me="ht_editor_visible",pe="selectEditor";class fe extends k.b7{static get EDITOR_TYPE(){return"select"}init(){this.selectWrapper=this.hot.rootDocument.createElement("div"),this.select=this.hot.rootDocument.createElement("select"),this.select.setAttribute("data-hot-input","true"),this.selectWrapper.style.display="none";const e=this.hot.rootDocument.createElement("DIV"),t=this.hot.getSettings().ariaTags;e.className="htAutocompleteArrow",t&&e.setAttribute(...(0,f.MG)()),e.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660))),(0,i.iQ)(this.selectWrapper,"htSelectEditor"),this.selectWrapper.appendChild(this.select),this.selectWrapper.insertBefore(e,this.selectWrapper.firstChild),this.hot.rootElement.appendChild(this.selectWrapper),this.registerHooks()}getValue(){return this.select.value}setValue(e){this.select.value=e}open(){this._opened=!0,this.refreshDimensions(),this.selectWrapper.style.display="",this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.selectWrapper.style.display="none",(0,i.nB)(this.selectWrapper,me)&&(0,i.vy)(this.selectWrapper,me),this.unregisterShortcuts(),this.clearHooks()}focus(){this.select.focus()}registerHooks(){this.addHook("afterScrollHorizontally",(()=>this.refreshDimensions())),this.addHook("afterScrollVertically",(()=>this.refreshDimensions())),this.addHook("afterColumnResize",(()=>this.refreshDimensions())),this.addHook("afterRowResize",(()=>this.refreshDimensions()))}prepare(e,t,n,o,r,a){super.prepare(e,t,n,o,r,a);const l=this.cellProperties.selectOptions;let c;c="function"==typeof l?this.prepareOptions(l(this.row,this.col,this.prop)):this.prepareOptions(l),(0,i.Ie)(this.select),(0,s.v4)(c,((e,t)=>{const n=this.hot.rootDocument.createElement("OPTION");n.value=t,(0,i.Mv)(n,e),this.select.appendChild(n)}))}prepareOptions(e){let t={};if(Array.isArray(e))for(let n=0,o=e.length;n<o;n++)t[e[n]]=e[n];else"object"==typeof e&&(t=e);return t}refreshValue(){const e=this.hot.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()}refreshDimensions(){if(this.state!==k._T.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.close();const{top:e,start:t,width:n,height:o}=this.getEditedCellRect(),r=this.selectWrapper.style;r.height=`${o}px`,r.width=`${n}px`,r.top=`${e}px`,r[this.hot.isRtl()?"right":"left"]=`${t}px`,r.margin="0px",(0,i.iQ)(this.selectWrapper,me)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={group:pe};this.isInFullEditMode()&&e.addShortcuts([{keys:[["ArrowUp"]],callback:()=>{const e=this.select.selectedIndex-1;e>=0&&(this.select[e].selected=!0)}},{keys:[["ArrowDown"]],callback:()=>{const e=this.select.selectedIndex+1;e<=this.select.length-1&&(this.select[e].selected=!0)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(pe)}}class ge extends o.t{static get EDITOR_TYPE(){return"time"}prepare(e,t,n,o,i,r){super.prepare(e,t,n,o,i,r),this.TEXTAREA.dir="ltr"}}var be=n(11080),ve=n(69478);function ye(e,t,n,o,r,s,a){ve.j.apply(this,[e,t,n,o,r,s,a]),(0,i.Mv)(t,null==s?"":s,!1)}ye.RENDERER_TYPE="html";var we=n(28061);function Ce(e,t,n,o,r,s,a){const{rootDocument:l}=e,c=a.allowHtml?ye:p.F,d=l.createElement("DIV"),u=e.getSettings().ariaTags;if(d.className="htAutocompleteArrow",u&&d.setAttribute(...(0,f.MG)()),d.appendChild(l.createTextNode(String.fromCharCode(9660))),c.apply(this,[e,t,n,o,r,s,a]),t.firstChild||t.appendChild(l.createTextNode(String.fromCharCode(160))),t.insertBefore(d,t.firstChild),(0,i.iQ)(t,"htAutocomplete"),!e.acArrowListener){const r=new we.A(e);e.acArrowListener=function(r){(0,i.nB)(r.target,"htAutocompleteArrow")&&e.view._wt.getSetting("onCellDblClick",null,e._createCellCoords(n,o),t)},r.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",(()=>{r.destroy()}))}}function _e(e,t,n,o,i,r,s){Ce.apply(this,[e,t,n,o,i,r,s])}Ce.RENDERER_TYPE="autocomplete",_e.RENDERER_TYPE="dropdown",n(23215),n(81454);var Se=n(63487),Me=n(49138);const Ee=new WeakMap,xe=new WeakMap,ke="htBadValue",Te="data-row",Re="data-col",Ae="checkboxRenderer",Le="checkbox";function Oe(e,t,n,o,r,s,l){const{rootDocument:c}=e,d=e.getSettings().ariaTags;ve.j.apply(this,[e,t,n,o,r,s,l]),function(e){let t=xe.get(e);if(!t){const{rootElement:n}=e;t=new we.A(e),t.addEventListener(n,"click",(t=>function(e,t){const{target:n}=e;if(!De(n))return;if(!n.hasAttribute(Te)||!n.hasAttribute(Re))return;const o=parseInt(n.getAttribute(Te),10),i=parseInt(n.getAttribute(Re),10);t.getCellMeta(o,i).readOnly&&e.preventDefault()}(t,e))),t.addEventListener(n,"mouseup",(t=>function(e,t){const{target:n}=e;De(n)&&n.hasAttribute(Te)&&n.hasAttribute(Re)&&setTimeout(t.listen,10)}(t,e))),t.addEventListener(n,"change",(t=>function(e,t){const{target:n}=e;if(!De(n))return;if(!n.hasAttribute(Te)||!n.hasAttribute(Re))return;const o=parseInt(n.getAttribute(Te),10),i=parseInt(n.getAttribute(Re),10),r=t.getCellMeta(o,i);if(!r.readOnly){let n=null;n=e.target.checked?void 0===r.uncheckedTemplate||r.checkedTemplate:void 0!==r.uncheckedTemplate&&r.uncheckedTemplate,t.setDataAtCell(o,i,n)}}(t,e))),xe.set(e,t)}}(e);let h=function(e){const t=e.createElement("input");return t.className="htCheckboxRendererInput",t.type="checkbox",t.setAttribute("tabindex","-1"),t.cloneNode(!1)}(c);const m=l.label;let p=!1;if(void 0===l.checkedTemplate&&(l.checkedTemplate=!0),void 0===l.uncheckedTemplate&&(l.uncheckedTemplate=!1),(0,i.Ie)(t),s===l.checkedTemplate||(0,u.As)(s).toLocaleLowerCase(l.locale)===(0,u.As)(l.checkedTemplate).toLocaleLowerCase(l.locale)?h.checked=!0:s===l.uncheckedTemplate||(0,u.As)(s).toLocaleLowerCase(l.locale)===(0,u.As)(l.uncheckedTemplate).toLocaleLowerCase(l.locale)?h.checked=!1:(0,u.Im)(s)?(0,i.iQ)(h,"noValue"):(h.style.display="none",(0,i.iQ)(h,ke),p=!0),(0,i.Bq)(h,[[Te,n],[Re,o]]),d&&(0,i.Bq)(h,[(0,f.SM)(h.checked?e.getTranslatedPhrase(Me.CHECKBOX_CHECKED):e.getTranslatedPhrase(Me.CHECKBOX_UNCHECKED)),(0,f.Xq)(h.checked),(0,f.Pk)()]),!p&&m){let i="";if(m.value)i="function"==typeof m.value?m.value.call(this,n,o,r,s):m.value;else if(m.property){const t=e.getDataAtRowProp(n,m.property);i=null!==t?t:""}const a=function(e,t,n){const o=e.createElement("label");o.className="htCheckboxRendererLabel "+(n?"fullWidth":"");const i=e.createTextNode(t);if(n){const t=e.createElement("span");t.appendChild(i),o.appendChild(t)}else o.appendChild(i);return o.cloneNode(!0)}(c,i,!0!==m.separated);"before"===m.position?m.separated?(t.appendChild(a),t.appendChild(h)):(a.appendChild(h),h=a):m.position&&"after"!==m.position||(m.separated?(t.appendChild(h),t.appendChild(a)):(a.insertBefore(h,a.firstChild),h=a))}function g(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=e.getSelectedRange(),o=[],i=new Map;let r=[],s=0;if(n){for(let a=0;a<n.length;a++){const{row:l,col:c}=n[a].getTopStartCorner(),{row:d,col:u}=n[a].getBottomEndCorner();for(let n=l;n<=d;n+=1)for(let a=c;a<=u;a+=1){const l=e.getCellMeta(n,a);if(l.hidden)continue;const c={checkedTemplate:l.checkedTemplate,uncheckedTemplate:l.uncheckedTemplate};if("checkbox"!==l.type){!0!==t||l.readOnly||(i.has(o.length)?i.set(o.length,[...i.get(o.length),[n,a,null]]):i.set(o.length,[[n,a,null]]));continue}if(!0===l.readOnly)continue;void 0===l.checkedTemplate&&(l.checkedTemplate=!0),void 0===l.uncheckedTemplate&&(l.uncheckedTemplate=!1);const d=e.getDataAtCell(n,a);!1===t?[l.checkedTemplate,l.checkedTemplate.toString()].includes(d)?r.push([n,a,l.uncheckedTemplate,c]):[l.uncheckedTemplate,l.uncheckedTemplate.toString(),null,void 0].includes(d)&&r.push([n,a,l.checkedTemplate,c]):r.push([n,a,l.uncheckedTemplate,c]),s+=1}o.push(s),s=0}r=r.every((e=>{let[,,t]=e;return t===r[0][2]}))?r.map((e=>{let[t,n,o]=e;return[t,n,o]})):r.map((e=>{let[t,n,,o]=e;return[t,n,o.checkedTemplate]})),r.length>0&&o.forEach(((t,n)=>{let o=r.splice(0,t);i.size&&i.has(n)&&(o=[...o,...i.get(n)]),e.setDataAtCell(o)}))}}function b(){const t=e.getSelectedRange();if(t){for(let n=0;n<t.length;n++){const o=t[n].getTopStartCorner(),r=t[n].getBottomEndCorner();for(let t=o.row;t<=r.row;t++)for(let n=o.col;n<=r.col;n++){if(e.getCellMeta(t,n).readOnly)continue;const o=e.getCell(t,n);if((0,i.sb)(o)&&o.querySelectorAll("input[type=checkbox]").length>0)return!0}}return!1}}(!m||m&&!m.separated)&&t.appendChild(h),p&&t.appendChild(c.createTextNode("#bad-value#")),Ee.has(e)||(Ee.set(e,!0),function(){const t=e.getShortcutManager().getContext("grid"),n={group:Ae,relativeToGroup:a.b,position:"before"};t.addShortcuts([{keys:[["space"]],callback:()=>(g(),!b()),runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isCell()}},{keys:[["enter"]],callback:()=>(g(),!b()),runOnlyIf:()=>{const t=e.getSelectedRangeLast();return e.getSettings().enterBeginsEditing&&(null==t?void 0:t.highlight.isCell())&&!e.selection.isMultiple()}},{keys:[["delete"],["backspace"]],callback:()=>(g(!0),!b()),runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isCell()}}],n)}())}function De(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}function He(e,t,n,o,i,r,s){Ce.apply(this,[e,t,n,o,i,r,s])}Se.R.getSingleton().add("modifyAutoColumnSizeSeed",(function(e,t,n){const{label:o,type:i,row:r,column:s,prop:a}=t;if(i===Le){if(o){const{value:t,property:i}=o;let l=n;if(t)l="function"==typeof t?t(r,s,a,n):t;else if(i){const e=this.getDataAtRowProp(r,i);l=null!==e?e:n}e=l}return e}})),Oe.RENDERER_TYPE=Le,He.RENDERER_TYPE="handsontable";var Ie,Pe,Ne,Fe,ze,je,Ye="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function $e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Be(){return Pe||(Pe=1,Ie={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}),Ie}function We(){if(Fe)return Ne;Fe=1;const e=[{key:"ZiB",factor:Math.pow(1024,7)},{key:"ZB",factor:Math.pow(1e3,7)},{key:"YiB",factor:Math.pow(1024,8)},{key:"YB",factor:Math.pow(1e3,8)},{key:"TiB",factor:Math.pow(1024,4)},{key:"TB",factor:Math.pow(1e3,4)},{key:"PiB",factor:Math.pow(1024,5)},{key:"PB",factor:Math.pow(1e3,5)},{key:"MiB",factor:Math.pow(1024,2)},{key:"MB",factor:Math.pow(1e3,2)},{key:"KiB",factor:Math.pow(1024,1)},{key:"KB",factor:Math.pow(1e3,1)},{key:"GiB",factor:Math.pow(1024,3)},{key:"GB",factor:Math.pow(1e3,3)},{key:"EiB",factor:Math.pow(1024,6)},{key:"EB",factor:Math.pow(1e3,6)},{key:"B",factor:1}];function t(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function n(o,i,r,s,a,l,c){if(!isNaN(+o))return+o;let d="",u=o.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(u!==o)return-1*n(u,i,r,s,a,l);for(let t=0;t<e.length;t++){let c=e[t];if(d=o.replace(RegExp(`([0-9 ])(${c.key})$`),"$1"),d!==o)return n(d,i,r,s,a,l)*c.factor}if(d=o.replace("%",""),d!==o)return n(d,i,r,s,a,l)/100;let h=parseFloat(o);if(isNaN(h))return;let m=s(h);if(m&&"."!==m&&(d=o.replace(new RegExp(`${t(m)}$`),""),d!==o))return n(d,i,r,s,a,l);let p={};Object.keys(l).forEach((e=>{p[l[e]]=e}));let f=Object.keys(p).sort().reverse(),g=f.length;for(let e=0;e<g;e++){let t=f[e],c=p[t];if(d=o.replace(t,""),d!==o){let e;switch(c){case"thousand":e=Math.pow(10,3);break;case"million":e=Math.pow(10,6);break;case"billion":e=Math.pow(10,9);break;case"trillion":e=Math.pow(10,12)}return n(d,i,r,s,a,l)*e}}}function o(e,o,i="",r,s,a,l){if(""===e)return;if(e===s)return 0;let c=function(e,n,o){let i=e.replace(o,"");return i=i.replace(new RegExp(`([0-9])${t(n.thousands)}([0-9])`,"g"),"$1$2"),i=i.replace(n.decimal,"."),i}(e,o,i);return n(c,o,i,r,s,a)}return Ne={unformat:function(e,t){const n=qe();let i,r=n.currentDelimiters(),s=n.currentCurrency().symbol,a=n.currentOrdinal(),l=n.getZeroFormat(),c=n.currentAbbreviations();if("string"==typeof e)i=function(e,t){if(!e.indexOf(":")||":"===t.thousands)return!1;let n=e.split(":");if(3!==n.length)return!1;let o=+n[0],i=+n[1],r=+n[2];return!isNaN(o)&&!isNaN(i)&&!isNaN(r)}(e,r)?function(e){let t=e.split(":"),n=+t[0],o=+t[1];return+t[2]+60*o+3600*n}(e):o(e,r,s,a,l,c);else{if("number"!=typeof e)return;i=e}if(void 0!==i)return i}},Ne}function Ve(){if(je)return ze;je=1;let e=We();const t=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,n={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:(e,t)=>"byte"===t.output,message:"`base` must be provided only when the output is `byte`",mandatory:e=>"byte"===e.output},characteristic:{type:"number",restriction:e=>e>=0,message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",lowPrecision:{type:"boolean",restriction:(e,t)=>!0===t.average,message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:e=>e>=0,message:"value must be positive"},{restriction:(e,t)=>!t.exponential,message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:e=>e>=0,message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:(e,t)=>"percent"===t.output,message:"`prefixSymbol` can be provided only when the output is `percent`"}},o={languageTag:{type:"string",mandatory:!0,restriction:e=>e.match(t),message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function i(t){return void 0!==e.unformat(t)}function r(e,t,o,i=!1){let s=Object.keys(e).map((i=>{if(!t[i])return console.error(`${o} Invalid key: ${i}`),!1;let s=e[i],a=t[i];if("string"==typeof a&&(a={type:a}),"format"===a.type){if(!r(s,n,`[Validate ${i}]`,!0))return!1}else if(typeof s!==a.type)return console.error(`${o} ${i} type mismatched: "${a.type}" expected, "${typeof s}" provided`),!1;if(a.restrictions&&a.restrictions.length){let t=a.restrictions.length;for(let n=0;n<t;n++){let{restriction:t,message:r}=a.restrictions[n];if(!t(s,e))return console.error(`${o} ${i} invalid value: ${r}`),!1}}return a.restriction&&!a.restriction(s,e)?(console.error(`${o} ${i} invalid value: ${a.message}`),!1):a.validValues&&-1===a.validValues.indexOf(s)?(console.error(`${o} ${i} invalid value: must be among ${JSON.stringify(a.validValues)}, "${s}" provided`),!1):!(a.children&&!r(s,a.children,`[Validate ${i}]`))}));return i||s.push(...Object.keys(t).map((n=>{let i=t[n];if("string"==typeof i&&(i={type:i}),i.mandatory){let t=i.mandatory;if("function"==typeof t&&(t=t(e)),t&&void 0===e[n])return console.error(`${o} Missing mandatory key "${n}"`),!1}return!0}))),s.reduce(((e,t)=>e&&t),!0)}function s(e){return r(e,n,"[Validate format]")}return ze={validate:function(e,t){let n=i(e),o=s(t);return n&&o},validateFormat:s,validateInput:i,validateLanguage:function(e){return r(e,o,"[Validate language]")}},ze}var Ue,Ge,Ke={parseFormat:function(e,t={}){return"string"!=typeof e?e:(e=function(e,t){let n=e.match(/^{([^}]*)}/);return n?(t.prefix=n[1],e.slice(n[0].length)):e}(e,t),e=function(e,t){let n=e.match(/{([^}]*)}$/);return n?(t.postfix=n[1],e.slice(0,-n[0].length)):e}(e,t),function(e,t){if(-1===e.indexOf("$")){if(-1===e.indexOf("%"))return-1!==e.indexOf("bd")?(t.output="byte",void(t.base="general")):-1!==e.indexOf("b")?(t.output="byte",void(t.base="binary")):-1!==e.indexOf("d")?(t.output="byte",void(t.base="decimal")):void(-1===e.indexOf(":")?-1!==e.indexOf("o")&&(t.output="ordinal"):t.output="time");t.output="percent"}else t.output="currency"}(e,t),function(e,t){let n=e.match(/[1-9]+[0-9]*/);n&&(t.totalLength=+n[0])}(e,t),function(e,t){let n=e.split(".")[0].match(/0+/);n&&(t.characteristic=n[0].length)}(e,t),function(e,t){if(-1!==e.indexOf(".")){let n=e.split(".")[0];t.optionalCharacteristic=-1===n.indexOf("0")}}(e,t),function(e,t){-1!==e.indexOf("a")&&(t.average=!0)}(e,t),function(e,t){-1!==e.indexOf("K")?t.forceAverage="thousand":-1!==e.indexOf("M")?t.forceAverage="million":-1!==e.indexOf("B")?t.forceAverage="billion":-1!==e.indexOf("T")&&(t.forceAverage="trillion")}(e,t),function(e,t){let n=e.split(".")[1];if(n){let e=n.match(/0+/);e&&(t.mantissa=e[0].length)}}(e,t),function(e,t){e.match(/\[\.]/)?t.optionalMantissa=!0:e.match(/\./)&&(t.optionalMantissa=!1)}(e,t),function(e,t){const n=e.split(".")[1];n&&(t.trimMantissa=-1!==n.indexOf("["))}(e,t),function(e,t){-1!==e.indexOf(",")&&(t.thousandSeparated=!0)}(e,t),function(e,t){-1!==e.indexOf(" ")&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0))}(e,t),function(e,t){e.match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),e.match(/^\+?-/)&&(t.negative="sign")}(e,t),function(e,t){e.match(/^\+/)&&(t.forceSign=!0)}(e,t),t)}};function qe(){if(Ge)return Ue;Ge=1;const e=Be(),t=Ve(),n=Ke;let o,i={},r={},s=null,a={};function l(e){o=e}function c(){return r[o]}return i.languages=()=>Object.assign({},r),i.currentLanguage=()=>o,i.currentBytes=()=>c().bytes||{},i.currentCurrency=()=>c().currency,i.currentAbbreviations=()=>c().abbreviations,i.currentDelimiters=()=>c().delimiters,i.currentOrdinal=()=>c().ordinal,i.currentDefaults=()=>Object.assign({},c().defaults,a),i.currentOrdinalDefaultFormat=()=>Object.assign({},i.currentDefaults(),c().ordinalFormat),i.currentByteDefaultFormat=()=>Object.assign({},i.currentDefaults(),c().byteFormat),i.currentPercentageDefaultFormat=()=>Object.assign({},i.currentDefaults(),c().percentageFormat),i.currentCurrencyDefaultFormat=()=>Object.assign({},i.currentDefaults(),c().currencyFormat),i.currentTimeDefaultFormat=()=>Object.assign({},i.currentDefaults(),c().timeFormat),i.setDefaults=e=>{e=n.parseFormat(e),t.validateFormat(e)&&(a=e)},i.getZeroFormat=()=>s,i.setZeroFormat=e=>s="string"==typeof e?e:null,i.hasZeroFormat=()=>null!==s,i.languageData=e=>{if(e){if(r[e])return r[e];throw new Error(`Unknown tag "${e}"`)}return c()},i.registerLanguage=(e,n=!1)=>{if(!t.validateLanguage(e))throw new Error("Invalid language data");r[e.languageTag]=e,n&&l(e.languageTag)},i.setLanguage=(t,n=e.languageTag)=>{if(!r[t]){let e=t.split("-")[0],o=Object.keys(r).find((t=>t.split("-")[0]===e));return r[o]?void l(o):void l(n)}l(t)},i.registerLanguage(e),o=e.languageTag,Ue=i}var Xe,Je={exports:{}};Xe=Je,function(e){var t,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,i=Math.floor,r="[BigNumber Error] ",s=r+"Number primitive has more than 15 significant digits: ",a=1e14,l=14,c=9007199254740991,d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],u=1e7,h=1e9;function m(e){var t=0|e;return e>0||e===t?t:t-1}function p(e){for(var t,n,o=1,i=e.length,r=e[0]+"";o<i;){for(t=e[o++]+"",n=l-t.length;n--;t="0"+t);r+=t}for(i=r.length;48===r.charCodeAt(--i););return r.slice(0,i+1||1)}function f(e,t){var n,o,i=e.c,r=t.c,s=e.s,a=t.s,l=e.e,c=t.e;if(!s||!a)return null;if(n=i&&!i[0],o=r&&!r[0],n||o)return n?o?0:-a:s;if(s!=a)return s;if(n=s<0,o=l==c,!i||!r)return o?0:!i^n?1:-1;if(!o)return l>c^n?1:-1;for(a=(l=i.length)<(c=r.length)?l:c,s=0;s<a;s++)if(i[s]!=r[s])return i[s]>r[s]^n?1:-1;return l==c?0:l>c^n?1:-1}function g(e,t,n,o){if(e<t||e>n||e!==i(e))throw Error(r+(o||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function b(e){var t=e.c.length-1;return m(e.e/l)==t&&e.c[t]%2!=0}function v(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,n){var o,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(o=e.length)){for(i=n,t-=o;--t;i+=n);e+=i}else t<o&&(e=e.slice(0,t)+"."+e.slice(t));return e}t=function e(t){var w,C,_,S,M,E,x,k,T,R,A=W.prototype={constructor:W,toString:null,valueOf:null},L=new W(1),O=20,D=4,H=-7,I=21,P=-1e7,N=1e7,F=!1,z=1,j=0,Y={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},$="0123456789abcdefghijklmnopqrstuvwxyz",B=!0;function W(e,t){var o,r,a,d,u,h,m,p,f=this;if(!(f instanceof W))return new W(e,t);if(null==t){if(e&&!0===e._isBigNumber)return f.s=e.s,void(!e.c||e.e>N?f.c=f.e=null:e.e<P?f.c=[f.e=0]:(f.e=e.e,f.c=e.c.slice()));if((h="number"==typeof e)&&0*e==0){if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(d=0,u=e;u>=10;u/=10,d++);return void(d>N?f.c=f.e=null:(f.e=d,f.c=[e]))}p=String(e)}else{if(!n.test(p=String(e)))return _(f,p,h);f.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(d=p.indexOf("."))>-1&&(p=p.replace(".","")),(u=p.search(/e/i))>0?(d<0&&(d=u),d+=+p.slice(u+1),p=p.substring(0,u)):d<0&&(d=p.length)}else{if(g(t,2,$.length,"Base"),10==t&&B)return K(f=new W(e),O+f.e+1,D);if(p=String(e),h="number"==typeof e){if(0*e!=0)return _(f,p,h,t);if(f.s=1/e<0?(p=p.slice(1),-1):1,W.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(s+e)}else f.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(o=$.slice(0,t),d=u=0,m=p.length;u<m;u++)if(o.indexOf(r=p.charAt(u))<0){if("."==r){if(u>d){d=m;continue}}else if(!a&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){a=!0,u=-1,d=0;continue}return _(f,String(e),h,t)}h=!1,(d=(p=C(p,t,10,f.s)).indexOf("."))>-1?p=p.replace(".",""):d=p.length}for(u=0;48===p.charCodeAt(u);u++);for(m=p.length;48===p.charCodeAt(--m););if(p=p.slice(u,++m)){if(m-=u,h&&W.DEBUG&&m>15&&(e>c||e!==i(e)))throw Error(s+f.s*e);if((d=d-u-1)>N)f.c=f.e=null;else if(d<P)f.c=[f.e=0];else{if(f.e=d,f.c=[],u=(d+1)%l,d<0&&(u+=l),u<m){for(u&&f.c.push(+p.slice(0,u)),m-=l;u<m;)f.c.push(+p.slice(u,u+=l));u=l-(p=p.slice(u)).length}else u-=m;for(;u--;p+="0");f.c.push(+p)}}else f.c=[f.e=0]}function V(e,t,n,o){var i,r,s,a,l;if(null==n?n=D:g(n,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)l=p(e.c),l=1==o||2==o&&(s<=H||s>=I)?v(l,s):y(l,s,"0");else if(r=(e=K(new W(e),t,n)).e,a=(l=p(e.c)).length,1==o||2==o&&(t<=r||r<=H)){for(;a<t;l+="0",a++);l=v(l,r)}else if(t-=s,l=y(l,r,"0"),r+1>a){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=r-a)>0)for(r+1==a&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function U(e,t){for(var n,o,i=1,r=new W(e[0]);i<e.length;i++)(!(o=new W(e[i])).s||(n=f(r,o))===t||0===n&&r.s===t)&&(r=o);return r}function G(e,t,n){for(var o=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,o++);return(n=o+n*l-1)>N?e.c=e.e=null:n<P?e.c=[e.e=0]:(e.e=n,e.c=t),e}function K(e,t,n,r){var s,c,u,h,m,p,f,g=e.c,b=d;if(g){e:{for(s=1,h=g[0];h>=10;h/=10,s++);if((c=t-s)<0)c+=l,u=t,m=g[p=0],f=i(m/b[s-u-1]%10);else if((p=o((c+1)/l))>=g.length){if(!r)break e;for(;g.length<=p;g.push(0));m=f=0,s=1,u=(c%=l)-l+1}else{for(m=h=g[p],s=1;h>=10;h/=10,s++);f=(u=(c%=l)-l+s)<0?0:i(m/b[s-u-1]%10)}if(r=r||t<0||null!=g[p+1]||(u<0?m:m%b[s-u-1]),r=n<4?(f||r)&&(0==n||n==(e.s<0?3:2)):f>5||5==f&&(4==n||r||6==n&&(c>0?u>0?m/b[s-u]:0:g[p-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,r?(t-=e.e+1,g[0]=b[(l-t%l)%l],e.e=-t||0):g[0]=e.e=0,e;if(0==c?(g.length=p,h=1,p--):(g.length=p+1,h=b[l-c],g[p]=u>0?i(m/b[s-u]%b[u])*h:0),r)for(;;){if(0==p){for(c=1,u=g[0];u>=10;u/=10,c++);for(u=g[0]+=h,h=1;u>=10;u/=10,h++);c!=h&&(e.e++,g[0]==a&&(g[0]=1));break}if(g[p]+=h,g[p]!=a)break;g[p--]=0,h=1}for(c=g.length;0===g[--c];g.pop());}e.e>N?e.c=e.e=null:e.e<P&&(e.c=[e.e=0])}return e}function q(e){var t,n=e.e;return null===n?e.toString():(t=p(e.c),t=n<=H||n>=I?v(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return W.clone=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(r+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(g(n=e[t],0,h,t),O=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(g(n=e[t],0,8,t),D=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(g(n[0],-h,0,t),g(n[1],0,h,t),H=n[0],I=n[1]):(g(n,-h,h,t),H=-(I=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)g(n[0],-h,-1,t),g(n[1],1,h,t),P=n[0],N=n[1];else{if(g(n,-h,h,t),!n)throw Error(r+t+" cannot be zero: "+n);P=-(N=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(r+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!n,Error(r+"crypto unavailable");F=n}else F=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(g(n=e[t],0,9,t),z=n),e.hasOwnProperty(t="POW_PRECISION")&&(g(n=e[t],0,h,t),j=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(r+t+" not an object: "+n);Y=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(r+t+" invalid: "+n);B="0123456789"==n.slice(0,10),$=n}}return{DECIMAL_PLACES:O,ROUNDING_MODE:D,EXPONENTIAL_AT:[H,I],RANGE:[P,N],CRYPTO:F,MODULO_MODE:z,POW_PRECISION:j,FORMAT:Y,ALPHABET:$}},W.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!W.DEBUG)return!0;var t,n,o=e.c,s=e.e,c=e.s;e:if("[object Array]"=={}.toString.call(o)){if((1===c||-1===c)&&s>=-h&&s<=h&&s===i(s)){if(0===o[0]){if(0===s&&1===o.length)return!0;break e}if((t=(s+1)%l)<1&&(t+=l),String(o[0]).length==t){for(t=0;t<o.length;t++)if((n=o[t])<0||n>=a||n!==i(n))break e;if(0!==n)return!0}}}else if(null===o&&null===s&&(null===c||1===c||-1===c))return!0;throw Error(r+"Invalid BigNumber: "+e)},W.maximum=W.max=function(){return U(arguments,-1)},W.minimum=W.min=function(){return U(arguments,1)},W.random=(S=9007199254740992,M=Math.random()*S&2097151?function(){return i(Math.random()*S)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,s,a,c,u=0,m=[],p=new W(L);if(null==e?e=O:g(e,0,h),a=o(e/l),F)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));u<a;)(c=131072*t[u]+(t[u+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[u]=n[0],t[u+1]=n[1]):(m.push(c%1e14),u+=2);u=a/2}else{if(!crypto.randomBytes)throw F=!1,Error(r+"crypto unavailable");for(t=crypto.randomBytes(a*=7);u<a;)(c=281474976710656*(31&t[u])+1099511627776*t[u+1]+4294967296*t[u+2]+16777216*t[u+3]+(t[u+4]<<16)+(t[u+5]<<8)+t[u+6])>=9e15?crypto.randomBytes(7).copy(t,u):(m.push(c%1e14),u+=7);u=a/7}if(!F)for(;u<a;)(c=M())<9e15&&(m[u++]=c%1e14);for(a=m[--u],e%=l,a&&e&&(c=d[l-e],m[u]=i(a/c)*c);0===m[u];m.pop(),u--);if(u<0)m=[s=0];else{for(s=-1;0===m[0];m.splice(0,1),s-=l);for(u=1,c=m[0];c>=10;c/=10,u++);u<l&&(s-=l-u)}return p.e=s,p.c=m,p}),W.sum=function(){for(var e=1,t=arguments,n=new W(t[0]);e<t.length;)n=n.plus(t[e++]);return n},C=function(){var e="0123456789";function t(e,t,n,o){for(var i,r,s=[0],a=0,l=e.length;a<l;){for(r=s.length;r--;s[r]*=t);for(s[0]+=o.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(n,o,i,r,s){var a,l,c,d,u,h,m,f,g=n.indexOf("."),b=O,v=D;for(g>=0&&(d=j,j=0,n=n.replace(".",""),h=(f=new W(o)).pow(n.length-g),j=d,f.c=t(y(p(h.c),h.e,"0"),10,i,e),f.e=f.c.length),c=d=(m=t(n,o,i,s?(a=$,e):(a=e,$))).length;0==m[--d];m.pop());if(!m[0])return a.charAt(0);if(g<0?--c:(h.c=m,h.e=c,h.s=r,m=(h=w(h,f,b,v,i)).c,u=h.r,c=h.e),g=m[l=c+b+1],d=i/2,u=u||l<0||null!=m[l+1],u=v<4?(null!=g||u)&&(0==v||v==(h.s<0?3:2)):g>d||g==d&&(4==v||u||6==v&&1&m[l-1]||v==(h.s<0?8:7)),l<1||!m[0])n=u?y(a.charAt(1),-b,a.charAt(0)):a.charAt(0);else{if(m.length=l,u)for(--i;++m[--l]>i;)m[l]=0,l||(++c,m=[1].concat(m));for(d=m.length;!m[--d];);for(g=0,n="";g<=d;n+=a.charAt(m[g++]));n=y(n,c,a.charAt(0))}return n}}(),w=function(){function e(e,t,n){var o,i,r,s,a=0,l=e.length,c=t%u,d=t/u|0;for(e=e.slice();l--;)a=((i=c*(r=e[l]%u)+(o=d*r+(s=e[l]/u|0)*c)%u*u+a)/n|0)+(o/u|0)+d*s,e[l]=i%n;return a&&(e=[a].concat(e)),e}function t(e,t,n,o){var i,r;if(n!=o)r=n>o?1:-1;else for(i=r=0;i<n;i++)if(e[i]!=t[i]){r=e[i]>t[i]?1:-1;break}return r}function n(e,t,n,o){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*o+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(o,r,s,c,d){var u,h,p,f,g,b,v,y,w,C,_,S,M,E,x,k,T,R=o.s==r.s?1:-1,A=o.c,L=r.c;if(!(A&&A[0]&&L&&L[0]))return new W(o.s&&r.s&&(A?!L||A[0]!=L[0]:L)?A&&0==A[0]||!L?0*R:R/0:NaN);for(w=(y=new W(R)).c=[],R=s+(h=o.e-r.e)+1,d||(d=a,h=m(o.e/l)-m(r.e/l),R=R/l|0),p=0;L[p]==(A[p]||0);p++);if(L[p]>(A[p]||0)&&h--,R<0)w.push(1),f=!0;else{for(E=A.length,k=L.length,p=0,R+=2,(g=i(d/(L[0]+1)))>1&&(L=e(L,g,d),A=e(A,g,d),k=L.length,E=A.length),M=k,_=(C=A.slice(0,k)).length;_<k;C[_++]=0);T=L.slice(),T=[0].concat(T),x=L[0],L[1]>=d/2&&x++;do{if(g=0,(u=t(L,C,k,_))<0){if(S=C[0],k!=_&&(S=S*d+(C[1]||0)),(g=i(S/x))>1)for(g>=d&&(g=d-1),v=(b=e(L,g,d)).length,_=C.length;1==t(b,C,v,_);)g--,n(b,k<v?T:L,v,d),v=b.length,u=1;else 0==g&&(u=g=1),v=(b=L.slice()).length;if(v<_&&(b=[0].concat(b)),n(C,b,_,d),_=C.length,-1==u)for(;t(L,C,k,_)<1;)g++,n(C,k<_?T:L,_,d),_=C.length}else 0===u&&(g++,C=[0]);w[p++]=g,C[0]?C[_++]=A[M]||0:(C=[A[M]],_=1)}while((M++<E||null!=C[0])&&R--);f=null!=C[0],w[0]||w.splice(0,1)}if(d==a){for(p=1,R=w[0];R>=10;R/=10,p++);K(y,s+(y.e=p+h*l-1)+1,c,f)}else y.e=h,y.r=+f;return y}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,x=/^([^.]+)\.$/,k=/^\.([^.]+)$/,T=/^-?(Infinity|NaN)$/,R=/^\s*\+(?=[\w.])|^\s+|\s+$/g,_=function(e,t,n,o){var i,s=n?t:t.replace(R,"");if(T.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(E,(function(e,t,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,o&&o!=i?e:t})),o&&(i=o,s=s.replace(x,"$1").replace(k,"0.$1")),t!=s))return new W(s,i);if(W.DEBUG)throw Error(r+"Not a"+(o?" base "+o:"")+" number: "+t);e.s=null}e.c=e.e=null},A.absoluteValue=A.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},A.comparedTo=function(e,t){return f(this,new W(e,t))},A.decimalPlaces=A.dp=function(e,t){var n,o,i,r=this;if(null!=e)return g(e,0,h),null==t?t=D:g(t,0,8),K(new W(r),e+r.e+1,t);if(!(n=r.c))return null;if(o=((i=n.length-1)-m(this.e/l))*l,i=n[i])for(;i%10==0;i/=10,o--);return o<0&&(o=0),o},A.dividedBy=A.div=function(e,t){return w(this,new W(e,t),O,D)},A.dividedToIntegerBy=A.idiv=function(e,t){return w(this,new W(e,t),0,1)},A.exponentiatedBy=A.pow=function(e,t){var n,s,a,c,d,u,h,m,p=this;if((e=new W(e)).c&&!e.isInteger())throw Error(r+"Exponent not an integer: "+q(e));if(null!=t&&(t=new W(t)),d=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return m=new W(Math.pow(+q(p),d?e.s*(2-b(e)):+q(e))),t?m.mod(t):m;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new W(NaN);(s=!u&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||d&&p.c[1]>=24e7:p.c[0]<8e13||d&&p.c[0]<=9999975e7)))return c=p.s<0&&b(e)?-0:0,p.e>-1&&(c=1/c),new W(u?1/c:c);j&&(c=o(j/l+2))}for(d?(n=new W(.5),u&&(e.s=1),h=b(e)):h=(a=Math.abs(+q(e)))%2,m=new W(L);;){if(h){if(!(m=m.times(p)).c)break;c?m.c.length>c&&(m.c.length=c):s&&(m=m.mod(t))}if(a){if(0===(a=i(a/2)))break;h=a%2}else if(K(e=e.times(n),e.e+1,1),e.e>14)h=b(e);else{if(0===(a=+q(e)))break;h=a%2}p=p.times(p),c?p.c&&p.c.length>c&&(p.c.length=c):s&&(p=p.mod(t))}return s?m:(u&&(m=L.div(m)),t?m.mod(t):c?K(m,j,D,void 0):m)},A.integerValue=function(e){var t=new W(this);return null==e?e=D:g(e,0,8),K(t,t.e+1,e)},A.isEqualTo=A.eq=function(e,t){return 0===f(this,new W(e,t))},A.isFinite=function(){return!!this.c},A.isGreaterThan=A.gt=function(e,t){return f(this,new W(e,t))>0},A.isGreaterThanOrEqualTo=A.gte=function(e,t){return 1===(t=f(this,new W(e,t)))||0===t},A.isInteger=function(){return!!this.c&&m(this.e/l)>this.c.length-2},A.isLessThan=A.lt=function(e,t){return f(this,new W(e,t))<0},A.isLessThanOrEqualTo=A.lte=function(e,t){return-1===(t=f(this,new W(e,t)))||0===t},A.isNaN=function(){return!this.s},A.isNegative=function(){return this.s<0},A.isPositive=function(){return this.s>0},A.isZero=function(){return!!this.c&&0==this.c[0]},A.minus=function(e,t){var n,o,i,r,s=this,c=s.s;if(t=(e=new W(e,t)).s,!c||!t)return new W(NaN);if(c!=t)return e.s=-t,s.plus(e);var d=s.e/l,u=e.e/l,h=s.c,p=e.c;if(!d||!u){if(!h||!p)return h?(e.s=-t,e):new W(p?s:NaN);if(!h[0]||!p[0])return p[0]?(e.s=-t,e):new W(h[0]?s:3==D?-0:0)}if(d=m(d),u=m(u),h=h.slice(),c=d-u){for((r=c<0)?(c=-c,i=h):(u=d,i=p),i.reverse(),t=c;t--;i.push(0));i.reverse()}else for(o=(r=(c=h.length)<(t=p.length))?c:t,c=t=0;t<o;t++)if(h[t]!=p[t]){r=h[t]<p[t];break}if(r&&(i=h,h=p,p=i,e.s=-e.s),(t=(o=p.length)-(n=h.length))>0)for(;t--;h[n++]=0);for(t=a-1;o>c;){if(h[--o]<p[o]){for(n=o;n&&!h[--n];h[n]=t);--h[n],h[o]+=a}h[o]-=p[o]}for(;0==h[0];h.splice(0,1),--u);return h[0]?G(e,h,u):(e.s=3==D?-1:1,e.c=[e.e=0],e)},A.modulo=A.mod=function(e,t){var n,o,i=this;return e=new W(e,t),!i.c||!e.s||e.c&&!e.c[0]?new W(NaN):!e.c||i.c&&!i.c[0]?new W(i):(9==z?(o=e.s,e.s=1,n=w(i,e,0,3),e.s=o,n.s*=o):n=w(i,e,0,z),(e=i.minus(n.times(e))).c[0]||1!=z||(e.s=i.s),e)},A.multipliedBy=A.times=function(e,t){var n,o,i,r,s,c,d,h,p,f,g,b,v,y,w,C=this,_=C.c,S=(e=new W(e,t)).c;if(!(_&&S&&_[0]&&S[0]))return!C.s||!e.s||_&&!_[0]&&!S||S&&!S[0]&&!_?e.c=e.e=e.s=null:(e.s*=C.s,_&&S?(e.c=[0],e.e=0):e.c=e.e=null),e;for(o=m(C.e/l)+m(e.e/l),e.s*=C.s,(d=_.length)<(f=S.length)&&(v=_,_=S,S=v,i=d,d=f,f=i),i=d+f,v=[];i--;v.push(0));for(y=a,w=u,i=f;--i>=0;){for(n=0,g=S[i]%w,b=S[i]/w|0,r=i+(s=d);r>i;)n=((h=g*(h=_[--s]%w)+(c=b*h+(p=_[s]/w|0)*g)%w*w+v[r]+n)/y|0)+(c/w|0)+b*p,v[r--]=h%y;v[r]=n}return n?++o:v.splice(0,1),G(e,v,o)},A.negated=function(){var e=new W(this);return e.s=-e.s||null,e},A.plus=function(e,t){var n,o=this,i=o.s;if(t=(e=new W(e,t)).s,!i||!t)return new W(NaN);if(i!=t)return e.s=-t,o.minus(e);var r=o.e/l,s=e.e/l,c=o.c,d=e.c;if(!r||!s){if(!c||!d)return new W(i/0);if(!c[0]||!d[0])return d[0]?e:new W(c[0]?o:0*i)}if(r=m(r),s=m(s),c=c.slice(),i=r-s){for(i>0?(s=r,n=d):(i=-i,n=c),n.reverse();i--;n.push(0));n.reverse()}for((i=c.length)-(t=d.length)<0&&(n=d,d=c,c=n,t=i),i=0;t;)i=(c[--t]=c[t]+d[t]+i)/a|0,c[t]=a===c[t]?0:c[t]%a;return i&&(c=[i].concat(c),++s),G(e,c,s)},A.precision=A.sd=function(e,t){var n,o,i,r=this;if(null!=e&&e!==!!e)return g(e,1,h),null==t?t=D:g(t,0,8),K(new W(r),e,t);if(!(n=r.c))return null;if(o=(i=n.length-1)*l+1,i=n[i]){for(;i%10==0;i/=10,o--);for(i=n[0];i>=10;i/=10,o++);}return e&&r.e+1>o&&(o=r.e+1),o},A.shiftedBy=function(e){return g(e,-9007199254740991,c),this.times("1e"+e)},A.squareRoot=A.sqrt=function(){var e,t,n,o,i,r=this,s=r.c,a=r.s,l=r.e,c=O+4,d=new W("0.5");if(1!==a||!s||!s[0])return new W(!a||a<0&&(!s||s[0])?NaN:s?r:1/0);if(0==(a=Math.sqrt(+q(r)))||a==1/0?(((t=p(s)).length+l)%2==0&&(t+="0"),a=Math.sqrt(+t),l=m((l+1)/2)-(l<0||l%2),n=new W(t=a==1/0?"5e"+l:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+l)):n=new W(a+""),n.c[0])for((a=(l=n.e)+c)<3&&(a=0);;)if(i=n,n=d.times(i.plus(w(r,i,c,1))),p(i.c).slice(0,a)===(t=p(n.c)).slice(0,a)){if(n.e<l&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(K(n,n.e+O+2,1),e=!n.times(n).eq(r));break}if(!o&&(K(i,i.e+O+2,0),i.times(i).eq(r))){n=i;break}c+=4,a+=4,o=1}return K(n,n.e+O+1,D,e)},A.toExponential=function(e,t){return null!=e&&(g(e,0,h),e++),V(this,e,t,1)},A.toFixed=function(e,t){return null!=e&&(g(e,0,h),e=e+this.e+1),V(this,e,t)},A.toFormat=function(e,t,n){var o,i=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=Y;else if("object"!=typeof n)throw Error(r+"Argument not an object: "+n);if(o=i.toFixed(e,t),i.c){var s,a=o.split("."),l=+n.groupSize,c=+n.secondaryGroupSize,d=n.groupSeparator||"",u=a[0],h=a[1],m=i.s<0,p=m?u.slice(1):u,f=p.length;if(c&&(s=l,l=c,c=s,f-=s),l>0&&f>0){for(s=f%l||l,u=p.substr(0,s);s<f;s+=l)u+=d+p.substr(s,l);c>0&&(u+=d+p.slice(s)),m&&(u="-"+u)}o=h?u+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?h.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):h):u}return(n.prefix||"")+o+(n.suffix||"")},A.toFraction=function(e){var t,n,o,i,s,a,c,u,h,m,f,g,b=this,v=b.c;if(null!=e&&(!(c=new W(e)).isInteger()&&(c.c||1!==c.s)||c.lt(L)))throw Error(r+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+q(c));if(!v)return new W(b);for(t=new W(L),h=n=new W(L),o=u=new W(L),g=p(v),s=t.e=g.length-b.e-1,t.c[0]=d[(a=s%l)<0?l+a:a],e=!e||c.comparedTo(t)>0?s>0?t:h:c,a=N,N=1/0,c=new W(g),u.c[0]=0;m=w(c,t,0,1),1!=(i=n.plus(m.times(o))).comparedTo(e);)n=o,o=i,h=u.plus(m.times(i=h)),u=i,t=c.minus(m.times(i=t)),c=i;return i=w(e.minus(n),o,0,1),u=u.plus(i.times(h)),n=n.plus(i.times(o)),u.s=h.s=b.s,f=w(h,o,s*=2,D).minus(b).abs().comparedTo(w(u,n,s,D).minus(b).abs())<1?[h,o]:[u,n],N=a,f},A.toNumber=function(){return+q(this)},A.toPrecision=function(e,t){return null!=e&&g(e,1,h),V(this,e,t,2)},A.toString=function(e){var t,n=this,o=n.s,i=n.e;return null===i?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(null==e?t=i<=H||i>=I?v(p(n.c),i):y(p(n.c),i,"0"):10===e&&B?t=y(p((n=K(new W(n),O+i+1,D)).c),n.e,"0"):(g(e,2,$.length,"Base"),t=C(y(p(n.c),i,"0"),10,e,o,!0)),o<0&&n.c[0]&&(t="-"+t)),t},A.valueOf=A.toJSON=function(){return q(this)},A._isBigNumber=!0,null!=t&&W.set(t),W}(),t.default=t.BigNumber=t,Xe.exports?Xe.exports=t:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=t)}(Ye);var Qe=Je.exports;const Ze=qe(),et=Ve(),tt=Ke,nt=Qe,ot={trillion:Math.pow(10,12),billion:Math.pow(10,9),million:Math.pow(10,6),thousand:Math.pow(10,3)},it={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},{binarySuffixes:rt,decimalSuffixes:st}=Ze.currentBytes(),at={general:{scale:1024,suffixes:st,marker:"bd"},binary:{scale:1024,suffixes:rt,marker:"b"},decimal:{scale:1e3,suffixes:st,marker:"d"}};function lt(e,t,n){let o=t[0],i=Math.abs(e);if(i>=n){for(let r=1;r<t.length;++r){let s=Math.pow(n,r),a=Math.pow(n,r+1);if(i>=s&&i<a){o=t[r],e/=s;break}}o===t[0]&&(e/=Math.pow(n,t.length-1),o=t[t.length-1])}return{value:e,suffix:o}}function ct(e){let t="";for(let n=0;n<e;n++)t+="0";return t}function dt({instance:e,providedFormat:t,state:n=Ze,decimalSeparator:o,defaults:i=n.currentDefaults()}){let r=e._value;if(0===r&&n.hasZeroFormat())return n.getZeroFormat();if(!isFinite(r))return r.toString();let s=Object.assign({},it,i,t),a=s.totalLength,l=a?0:s.characteristic,c=s.optionalCharacteristic,d=s.forceAverage,u=s.lowPrecision,h=!!a||!!d||s.average,m=a?-1:h&&void 0===t.mantissa?0:s.mantissa,p=!a&&(void 0===t.optionalMantissa?-1===m:s.optionalMantissa),f=s.trimMantissa,g=s.thousandSeparated,b=s.spaceSeparated,v=s.negative,y=s.forceSign,w=s.exponential,C=s.roundingFunction,_="";if(h){let e=function({value:e,forceAverage:t,lowPrecision:n=!0,abbreviations:o,spaceSeparated:i=!1,totalLength:r=0,roundingFunction:s=Math.round}){let a="",l=Math.abs(e),c=-1;if(t&&o[t]&&ot[t]?(a=o[t],e/=ot[t]):l>=ot.trillion||n&&1===s(l/ot.trillion)?(a=o.trillion,e/=ot.trillion):l<ot.trillion&&l>=ot.billion||n&&1===s(l/ot.billion)?(a=o.billion,e/=ot.billion):l<ot.billion&&l>=ot.million||n&&1===s(l/ot.million)?(a=o.million,e/=ot.million):(l<ot.million&&l>=ot.thousand||n&&1===s(l/ot.thousand))&&(a=o.thousand,e/=ot.thousand),a&&(a=(i?" ":"")+a),r){let t=e<0,n=e.toString().split(".")[0],o=t?n.length-1:n.length;c=Math.max(r-o,0)}return{value:e,abbreviation:a,mantissaPrecision:c}}({value:r,forceAverage:d,lowPrecision:u,abbreviations:n.currentAbbreviations(),spaceSeparated:b,roundingFunction:C,totalLength:a});r=e.value,_+=e.abbreviation,a&&(m=e.mantissaPrecision)}if(w){let e=function({value:e,characteristicPrecision:t}){let[n,o]=e.toExponential().split("e"),i=+n;return t?(1<t&&(i*=Math.pow(10,t-1),o=+o-(t-1),o=o>=0?`+${o}`:o),{value:i,abbreviation:`e${o}`}):{value:i,abbreviation:`e${o}`}}({value:r,characteristicPrecision:l});r=e.value,_=e.abbreviation+_}let S=function(e,t,n,o,i,r){if(-1===o)return e;let s=function(e,t,n=Math.round){return-1!==e.toString().indexOf("e")?function(e,t){let n=e.toString(),[o,i]=n.split("e"),[r,s=""]=o.split(".");if(+i>0)n=r+s+ct(i-s.length);else{let e=".";e=+r<0?`-0${e}`:`0${e}`;let o=(ct(-i-1)+Math.abs(r)+s).substr(0,t);o.length<t&&(o+=ct(t-o.length)),n=e+o}return+i>0&&t>0&&(n+=`.${ct(t)}`),n}(e,t):new nt(n(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}(t,o,r),[a,l=""]=s.toString().split(".");if(l.match(/^0+$/)&&(n||i))return a;let c=l.match(/0+$/);return i&&c?`${a}.${l.toString().slice(0,c.index)}`:s.toString()}(r.toString(),r,p,m,f,C);return S=function(e,t,n,o){let i=e,[r,s]=i.toString().split(".");if(r.match(/^-?0$/)&&n)return s?`${r.replace("0","")}.${s}`:r.replace("0","");const a=t<0&&0===r.indexOf("-");if(a&&(r=r.slice(1),i=i.slice(1)),r.length<o){let e=o-r.length;for(let t=0;t<e;t++)i=`0${i}`}return a&&(i=`-${i}`),i.toString()}(S,r,c,l),S=function(e,t,n,o,i){let r=o.currentDelimiters(),s=r.thousands;i=i||r.decimal;let a=r.thousandsSize||3,l=e.toString(),c=l.split(".")[0],d=l.split(".")[1];const u=t<0&&0===c.indexOf("-");if(n){u&&(c=c.slice(1));let e=function(e,t){let n=[],o=0;for(let i=e;i>0;i--)o===t&&(n.unshift(i),o=0),o++;return n}(c.length,a);e.forEach(((e,t)=>{c=c.slice(0,e+t)+s+c.slice(e+t)})),u&&(c=`-${c}`)}return l=d?c+i+d:c,l}(S,r,g,n,o),(h||w)&&(S=function(e,t){return e+t}(S,_)),(y||r<0)&&(S=function(e,t,n){return 0===t?e:0===+e?e.replace("-",""):t>0?`+${e}`:"sign"===n?e:`(${e.replace("-","")})`}(S,r,v)),S}function ut(e,t){if(!e)return t;let n=Object.keys(e);return 1===n.length&&"output"===n[0]?t:e}const ht=Qe;function mt(e,t,n){let o=new ht(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new ht(i),e._value=o.minus(i).toNumber(),e}const pt=qe(),ft=Ve(),gt=(e=>({loadLanguagesInNode:t=>function(e,t){e.forEach((e=>{let n;try{n=function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../languages/${e}`)}catch(t){console.error(`Unable to load "${e}". No matching language file found.`)}n&&t.registerLanguage(n)}))}(t,e)}))(St),bt=We();let vt=(e=>({format:(...t)=>function(e,t={},n){if("string"==typeof t&&(t=tt.parseFormat(t)),!et.validateFormat(t))return"ERROR: invalid format";let o=t.prefix||"",i=t.postfix||"",r=function(e,t,n){switch(t.output){case"currency":return function(e,t,n){const o=n.currentCurrency();let i,r=Object.assign({},t),s=Object.assign({},it,r),a="",l=!!s.totalLength||!!s.forceAverage||s.average,c=r.currencyPosition||o.position,d=r.currencySymbol||o.symbol;const u=void 0!==s.spaceSeparatedCurrency?s.spaceSeparatedCurrency:s.spaceSeparated;void 0===r.lowPrecision&&(r.lowPrecision=!1),u&&(a=" "),"infix"===c&&(i=a+d+a);let h=dt({instance:e,providedFormat:r,state:n,decimalSeparator:i});return"prefix"===c&&(h=e._value<0&&"sign"===s.negative?`-${a}${d}${h.slice(1)}`:e._value>0&&s.forceSign?`+${a}${d}${h.slice(1)}`:d+a+h),c&&"postfix"!==c||(a=!s.spaceSeparatedAbbreviation&&l?"":a,h=h+a+d),h}(e,t=ut(t,Ze.currentCurrencyDefaultFormat()),Ze);case"percent":return function(e,t,n,o){let i=t.prefixSymbol,r=dt({instance:o(100*e._value),providedFormat:t,state:n}),s=Object.assign({},it,t);return i?`%${s.spaceSeparated?" ":""}${r}`:`${r}${s.spaceSeparated?" ":""}%`}(e,t=ut(t,Ze.currentPercentageDefaultFormat()),Ze,n);case"byte":return function(e,t,n,o){let i=t.base||"binary",r=Object.assign({},it,t);const{binarySuffixes:s,decimalSuffixes:a}=n.currentBytes();let l={general:{scale:1024,suffixes:a||st,marker:"bd"},binary:{scale:1024,suffixes:s||rt,marker:"b"},decimal:{scale:1e3,suffixes:a||st,marker:"d"}}[i],{value:c,suffix:d}=lt(e._value,l.suffixes,l.scale);return`${dt({instance:o(c),providedFormat:t,state:n,defaults:n.currentByteDefaultFormat()})}${r.spaceSeparated?" ":""}${d}`}(e,t=ut(t,Ze.currentByteDefaultFormat()),Ze,n);case"time":return t=ut(t,Ze.currentTimeDefaultFormat()),function(e){let t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),o=Math.round(e._value-60*t*60-60*n);return`${t}:${n<10?"0":""}${n}:${o<10?"0":""}${o}`}(e);case"ordinal":return function(e,t,n){let o=n.currentOrdinal(),i=Object.assign({},it,t),r=dt({instance:e,providedFormat:t,state:n}),s=o(e._value);return`${r}${i.spaceSeparated?" ":""}${s}`}(e,t=ut(t,Ze.currentOrdinalDefaultFormat()),Ze);default:return dt({instance:e,providedFormat:t,numbro:n})}}(e,t,n);return r=function(e,t){return t+e}(r,o),r=function(e,t){return e+t}(r,i),r}(...t,e),getByteUnit:(...t)=>function(e){let t=at.general;return lt(e._value,t.suffixes,t.scale).suffix}(...t,e),getBinaryByteUnit:(...t)=>function(e){let t=at.binary;return lt(e._value,t.suffixes,t.scale).suffix}(...t,e),getDecimalByteUnit:(...t)=>function(e){let t=at.decimal;return lt(e._value,t.suffixes,t.scale).suffix}(...t,e),formatOrDefault:ut}))(St),yt=(e=>({add:(t,n)=>function(e,t,n){let o=new ht(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new ht(i),e._value=o.plus(i).toNumber(),e}(t,n,e),subtract:(t,n)=>mt(t,n,e),multiply:(t,n)=>function(e,t,n){let o=new ht(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new ht(i),e._value=o.times(i).toNumber(),e}(t,n,e),divide:(t,n)=>function(e,t,n){let o=new ht(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new ht(i),e._value=o.dividedBy(i).toNumber(),e}(t,n,e),set:(t,n)=>function(e,t,n){let o=t;return n.isNumbro(t)&&(o=t._value),e._value=o,e}(t,n,e),difference:(t,n)=>function(e,t,n){let o=n(e._value);return mt(o,t,n),Math.abs(o._value)}(t,n,e),BigNumber:ht}))(St);const wt=Ke;class Ct{constructor(e){this._value=e}clone(){return St(this._value)}format(e={}){return vt.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=wt.parseFormat(e)),(e=vt.formatOrDefault(e,pt.currentCurrencyDefaultFormat())).output="currency",vt.format(this,e)}formatTime(e={}){return e.output="time",vt.format(this,e)}binaryByteUnits(){return vt.getBinaryByteUnit(this)}decimalByteUnits(){return vt.getDecimalByteUnit(this)}byteUnits(){return vt.getByteUnit(this)}difference(e){return yt.difference(this,e)}add(e){return yt.add(this,e)}subtract(e){return yt.subtract(this,e)}multiply(e){return yt.multiply(this,e)}divide(e){return yt.divide(this,e)}set(e){return yt.set(this,_t(e))}value(){return this._value}valueOf(){return this._value}}function _t(e){let t=e;return St.isNumbro(e)?t=e._value:"string"==typeof e?t=St.unformat(e):isNaN(e)&&(t=NaN),t}function St(e){return new Ct(_t(e))}St.version="2.5.0",St.isNumbro=function(e){return e instanceof Ct},St.language=pt.currentLanguage,St.registerLanguage=pt.registerLanguage,St.setLanguage=pt.setLanguage,St.languages=pt.languages,St.languageData=pt.languageData,St.zeroFormat=pt.setZeroFormat,St.defaultFormat=pt.currentDefaults,St.setDefaults=pt.setDefaults,St.defaultCurrencyFormat=pt.currentCurrencyDefaultFormat,St.validate=ft.validate,St.loadLanguagesInNode=gt.loadLanguagesInNode,St.unformat=bt.unformat,St.BigNumber=yt.BigNumber;var Mt=$e(St),Et=n(71409);function xt(e,t){if((0,Et.kf)(e)){const n=t.numericFormat,o=n&&n.culture||"-",i=n&&n.pattern;if(void 0!==o&&!Mt.languages()[o]){const e=o.replace("-",""),t=Mt.allLanguages?Mt.allLanguages[o]:Mt[e];t&&Mt.registerLanguage(t)}Mt.setLanguage(o),e=Mt(e).format(i||"0")}return e}function kt(e,t,n,o,i,r,s){let a=r;if((0,Et.kf)(a)){let e=[];if(Array.isArray(s.className))e=s.className;else{var l;const t=null!==(l=s.className)&&void 0!==l?l:"";t.length&&(e=t.split(" "))}a=xt(a,s),e.indexOf("htLeft")<0&&e.indexOf("htCenter")<0&&e.indexOf("htRight")<0&&e.indexOf("htJustify")<0&&e.push("htRight"),e.indexOf("htNumeric")<0&&e.push("htNumeric"),s.className=e.join(" "),t.dir="ltr"}(0,p.F)(e,t,n,o,i,a,s)}function Tt(e,t,n,o,r,s,a){p.F.apply(this,[e,t,n,o,r,s,a]);const l=a.hashLength||t.innerHTML.length,c=a.hashSymbol||"*";let d="";(0,Et.Ti)(l-1,(()=>{d+=c})),(0,i.Mv)(t,d)}function Rt(e,t,n,o,i,r,s){p.F.apply(this,[e,t,n,o,i,r,s])}function At(e,t,n,o,i,r,s){p.F.apply(this,[e,t,n,o,i,r,s]),t.dir="ltr"}kt.RENDERER_TYPE="numeric",Tt.RENDERER_TYPE="password",Rt.RENDERER_TYPE="select",At.RENDERER_TYPE="time";var Lt=n(54950);function Ot(e,t){let n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(n,Dt(n,t)):Dt(n,t)(this.source):t(!0)}function Dt(e,t){const n=e;return function(e){let o=!1;for(let t=0,i=e.length;t<i;t++)if(n===e[t]){o=!0;break}t(o)}}function Ht(e,t){const n=(0,be.L3)(ie,this.instance);let o=e,i=!0;null==o&&(o="");let r=R(o,this.dateFormat||n.defaultDateFormat,!0).isValid(),s=R(new Date(o)).isValid()||r;if(this.allowEmpty&&""===o&&(s=!0,r=!0),s||(i=!1),!s&&r&&(i=!0),s&&!r)if(!0===this.correctFormat){const e=function(e,t){const n=R(function(e){const t=new Date(e);return isNaN(new Date(`${e}T00:00`).getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}(e)),o=R(e,t),i=e.search(/[A-Za-z]/g)>-1;let r;return r=n.isValid()&&n.format("x")===o.format("x")||!o.isValid()||i?n:o,r.format(t)}(o,this.dateFormat);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"dateValidator"),i=!0}else i=!1;t(i)}function It(e,t){Ot.apply(this,[e,t])}function Pt(e,t){let n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):t(""!==n&&(0,Et.kf)(e))}Ot.VALIDATOR_TYPE="autocomplete",Ht.VALIDATOR_TYPE="date",It.VALIDATOR_TYPE="dropdown",Pt.VALIDATOR_TYPE="numeric";const Nt=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"];function Ft(e,t){const n=this.timeFormat||"h:mm:ss a";let o=!0,i=e;null===i&&(i=""),i=/^\d{3,}$/.test(i)?parseInt(i,10):i;const r=/^\d{1,2}$/.test(i);r&&(i+=":00");const s=R(i,Nt,!0).isValid()?R(i):R(i,n);let a=s.isValid(),l=R(i,n,!0).isValid()&&!r;if(this.allowEmpty&&""===i&&(a=!0,l=!0),a||(o=!1),!a&&l&&(o=!0),a&&!l)if(!0===this.correctFormat){const e=s.format(n);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),o=!0}else o=!1;t(o)}Ft.VALIDATOR_TYPE="time";var zt=n(82993);const jt={CELL_TYPE:"autocomplete",editor:E,renderer:Ce,validator:Ot},Yt={CELL_TYPE:"checkbox",editor:T,renderer:Oe};function $t(e,t,n,o,i,r,s){Ce.apply(this,[e,t,n,o,i,r,s])}$t.RENDERER_TYPE="date";const Bt={CELL_TYPE:"date",editor:ae,renderer:$t,validator:Ht},Wt={CELL_TYPE:"dropdown",editor:ce,renderer:_e,validator:It,filter:!1,strict:!0},Vt={CELL_TYPE:"handsontable",editor:c,renderer:He},Ut={CELL_TYPE:"numeric",editor:de,renderer:kt,validator:Pt,dataType:"number"},Gt={CELL_TYPE:"password",editor:he,renderer:Tt,copyable:!1},Kt={CELL_TYPE:"select",editor:fe,renderer:Rt};var qt=n(34675);const Xt={CELL_TYPE:"time",editor:ge,renderer:At,validator:Ft};var Jt=n(87979);n(3949);var Qt=n(6833);function Zt(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function en(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tn(e,t){return e.get(nn(e,t))}function nn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const on=new Map([["plugin",Qt.Mt],["cell-type",Jt.L4],["editor",be.aZ],["renderer",Lt.sl],["validator",zt.tR]]),rn=Symbol("mainSetting"),sn=[];let an=null;var ln=new WeakMap,cn=new WeakSet;class dn{static get PLUGIN_KEY(){return"base"}static get SETTING_KEYS(){return[this.PLUGIN_KEY]}static get DEFAULT_SETTINGS(){return{}}constructor(e){var t;Zt(this,t=cn),t.add(this),en(this,"eventManager",new we.A(this)),en(this,"pluginName",null),en(this,"pluginsInitializedCallbacks",[]),en(this,"isPluginsReady",!1),en(this,"enabled",!1),en(this,"initialized",!1),function(e,t){Zt(e,t),t.set(e,{})}(this,ln),(0,s.LH)(this,"hot",e,{writable:!1}),an=null,this.hot.addHook("afterPluginsInitialized",(()=>this.onAfterPluginsInitialized())),this.hot.addHook("afterUpdateSettings",(e=>this.onUpdateSettings(e))),this.hot.addHook("beforeInit",(()=>this.init()))}init(){this.pluginName=this.hot.getPluginName(this);const e=this.constructor.PLUGIN_DEPS,t=Array.isArray(e)?e:[];if(t.length>0){const e=[];if(t.forEach((t=>{const[n,o]=t.split(":");if(!on.has(n))throw new Error(`Unknown plugin dependency type "${n}" was found.`);on.get(n)(o)||e.push(` - ${o} (${n})`)})),e.length>0){const t=[`The ${this.pluginName} plugin requires the following modules:\n`,`${e.join("\n")}\n`].join("");sn.push(t)}}if(an||(an=(0,Qt.f4)()),an.indexOf(this.pluginName)>=0&&an.splice(an.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",(()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()})),0===an.length){if(sn.length>0){const e=[`${sn.join("\n")}\n`,"You have to import and register them manually."].join("");throw sn.length=0,new Error(e)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}enablePlugin(){this.enabled=!0}disablePlugin(){var e;null===(e=this.eventManager)||void 0===e||e.clear(),this.clearHooks(),this.enabled=!1}getSetting(e){const t=this.hot.getSettings()[this.constructor.PLUGIN_KEY];if(void 0===e)return t;const n=this.constructor.DEFAULT_SETTINGS;var o,i;return(Array.isArray(t)||(0,s.Gv)(t))&&n[rn]===e?Array.isArray(t)?t:null!==(o=t[e])&&void 0!==o?o:n[e]:(0,s.Gv)(t)&&null!==(i=t[e])&&void 0!==i?i:n[e]}addHook(e,t,n){tn(ln,this)[e]=tn(ln,this)[e]||[];const o=tn(ln,this)[e];this.hot.addHook(e,t,n),o.push(t),tn(ln,this)[e]=o}removeHooks(e){(0,d.z0)(tn(ln,this)[e]||[],(t=>{this.hot.removeHook(e,t)}))}clearHooks(){const e=tn(ln,this);(0,s.v4)(e,((e,t)=>this.removeHooks(t))),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){(0,d.z0)(this.pluginsInitializedCallbacks,(e=>e())),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const t=nn(cn,this,un).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&this.updatePlugin(e))}updatePlugin(){}destroy(){var e;null===(e=this.eventManager)||void 0===e||e.destroy(),this.clearHooks(),(0,s.v4)(this,((e,t)=>{"hot"!==t&&(this[t]=null)})),delete this.t,delete this.hot}}function un(e){if(!e)return!1;const t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(let n=0;n<t.length;n++)if(void 0!==e[t[n]])return!0;return!1}var hn=n(13968);function mn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pn=class{constructor(e){mn(this,"hot",null),mn(this,"container",null),mn(this,"injected",!1),mn(this,"rows",[]),mn(this,"columns",[]),mn(this,"samples",null),mn(this,"settings",{useHeaders:!0}),this.hot=e}addRow(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));const n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol(e)),this.table.tr.appendChild(this.createRow(e)),0===e&&(0,i.iQ)(this.table.table,"htGhostTableFirstRow"),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}addColumnHeadersRow(e){if(null!=this.hot.getColHeader(0)){const t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}}addColumn(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));const n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th,void 0,-1),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}getHeights(e){this.injected||this.injectTable(),(0,d.z0)(this.rows,(t=>{const{height:n}=t.table.getBoundingClientRect();e(t.row,Math.ceil(n))}))}getWidths(e){this.injected||this.injectTable(),(0,d.z0)(this.columns,(t=>{const{width:n}=t.table.getBoundingClientRect();e(t.col,Math.ceil(n))}))}setSettings(e){this.settings=e}setSetting(e,t){this.settings||(this.settings={}),this.settings[e]=t}getSettings(){return this.settings}getSetting(e){return this.settings?this.settings[e]:null}createColGroupsCol(e){const t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1,-1)),this.samples.forEach((n=>{(0,d.z0)(n.strings,(n=>{t.appendChild(this.createColElement(n.col,e))}))})),t}createRow(e){const{rootDocument:t}=this.hot,n=t.createDocumentFragment(),o=t.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,o),n.appendChild(o)),this.samples.forEach((o=>{(0,d.z0)(o.strings,(o=>{const i=o.col,r=this.hot.getCellMeta(e,i),s=this.hot.getCellRenderer(r),a=t.createElement("td");a.setAttribute("ghost-table",1),s(this.hot,a,e,i,this.hot.colToProp(i),o.value,r),n.appendChild(a)}))})),n}appendColumnHeadersRow(){const{rootDocument:e}=this.hot,t=e.createDocumentFragment(),n=[];if(this.hot.hasRowHeaders()){const o=e.createElement("th");n.push([-1,o]),t.appendChild(o)}this.samples.forEach((o=>{(0,d.z0)(o.strings,(o=>{const i=o.col,r=e.createElement("th");n.push([i,r]),t.appendChild(r)}))})),this.table.tHead.appendChild(t),(0,d.z0)(n,(e=>{const[t,n]=e;this.hot.view.appendColHeader(t,n)}))}createCol(e){const{rootDocument:t}=this.hot,n=t.createDocumentFragment();return this.samples.forEach((o=>{(0,d.z0)(o.strings,(o=>{const i=o.row,r=this.hot.getCellMeta(i,e),s=this.hot.getCellRenderer(r),a=t.createElement("td"),l=t.createElement("tr");a.setAttribute("ghost-table",1),s(this.hot,a,i,e,this.hot.colToProp(e),o.value,r),l.appendChild(a),n.appendChild(l)}))})),n}clean(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}injectTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}removeTable(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}createColElement(e,t){const n=this.hot.rootDocument.createElement("col");let o=0;t>=0&&e>=0&&(o=this.hot.getCellMeta(t,e).colspan);let i=this.hot.getColWidth(e);if(o>1)for(let t=e+1;t<e+o;t++)i+=this.hot.getColWidth(t);return n.style.width=`${i}px`,n}createTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,n=t.createDocumentFragment(),o=t.createElement("table"),r=t.createElement("thead"),s=t.createElement("tbody"),a=t.createElement("colgroup"),l=t.createElement("tr"),c=t.createElement("th");return this.isVertical()&&o.appendChild(a),this.isHorizontal()&&(l.appendChild(c),r.appendChild(l),o.style.tableLayout="auto",o.style.width="auto"),o.appendChild(r),this.isVertical()&&s.appendChild(l),o.appendChild(s),(0,i.iQ)(o,e),n.appendChild(o),{fragment:n,table:o,tHead:r,tBody:s,colGroup:a,tr:l,th:c}}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,n=t.createDocumentFragment(),o=t.createElement("div"),r=`htGhostTable htAutoSize ${e.trim()}`;return(0,i.iQ)(o,r),n.appendChild(o),{fragment:n,container:o}}isVertical(){return!(!this.rows.length||this.columns.length)}isHorizontal(){return!(!this.columns.length||this.rows.length)}};function fn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class gn{static get SAMPLE_COUNT(){return 3}constructor(e){fn(this,"samples",null),fn(this,"dataFactory",null),fn(this,"customSampleCount",null),fn(this,"allowDuplicates",!1),this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:gn.SAMPLE_COUNT}setSampleCount(e){this.customSampleCount=e}setAllowDuplicates(e){this.allowDuplicates=e}generateRowSamples(e,t){return this.generateSamples("row",t,e)}generateColumnSamples(e,t){return this.generateSamples("col",t,e)}generateSamples(e,t,n){const o=new Map,{from:i,to:r}="number"==typeof n?{from:n,to:n}:n;return(0,Et.Ti)(i,r,(n=>{const i=this.generateSample(e,t,n);o.set(n,i)})),o}generateSample(e,t,n){if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");const o=new Map,i="row"===e?"col":"row",r=[];return(0,Et.Ti)(t.from,t.to,(t=>{const a="row"===e?this.dataFactory(n,t):this.dataFactory(t,n);if(!1===a)return;const{value:l,bundleSeed:c}=a,d="string"==typeof c&&c.length>0;let h;h=d?c:(0,s.Gv)(l)?`${Object.keys(l).length}`:Array.isArray(l)?`${l.length}`:`${(0,u.As)(l).length}`,o.has(h)||o.set(h,{needed:this.getSampleCount(),strings:[]});const m=o.get(h);m.needed&&(!(r.indexOf(l)>-1)||this.allowDuplicates||d)&&(m.strings.push({value:l,[i]:t}),r.push(l),m.needed-=1)})),o}}const bn=gn;var vn=n(94726),yn=n(48386);function wn(e,t,n){Cn(e,t),t.set(e,n)}function Cn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _n(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sn(e,t){return e.get(En(e,t))}function Mn(e,t,n){return e.set(En(e,t),n),n}function En(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Se.R.getSingleton().register("modifyAutoColumnSizeSeed");const xn="autoColumnSize";var kn=new WeakMap,Tn=new WeakMap,Rn=new WeakMap,An=new WeakSet;class Ln extends dn{static get PLUGIN_KEY(){return xn}static get PLUGIN_PRIORITY(){return 10}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 50}constructor(e){var t;super(e),Cn(this,t=An),t.add(this),_n(this,"ghostTable",new pn(this.hot)),_n(this,"samplesGenerator",new bn(((e,t)=>{const n=this.hot.toPhysicalRow(e),o=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(n)||this.hot.columnIndexMapper.isHidden(o))return!1;const i=this.hot.getCellMeta(e,t);let r="";i.spanned||(r=this.hot.getDataAtCell(e,t));let s="";return this.hot.hasHook("modifyAutoColumnSizeSeed")&&(s=this.hot.runHooks("modifyAutoColumnSizeSeed",s,i,r)),{value:r,bundleSeed:s}}))),_n(this,"inProgress",!1),_n(this,"measuredColumns",0),_n(this,"columnWidthsMap",new yn._),wn(this,kn,!1),wn(this,Tn,[]),wn(this,Rn,[]),this.hot.columnIndexMapper.registerMap("autoColumnSize",this.columnWidthsMap),this.addHook("beforeColumnResize",((e,t,n)=>En(An,this,Fn).call(this,e,t,n)))}isEnabled(){return!1!==this.hot.getSettings()[xn]&&!this.hot.getSettings().colWidths}enablePlugin(){var e=this;if(this.enabled)return;this.ghostTable.setSetting("useHeaders",this.getSetting("useHeaders")),this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return En(An,e,Pn).call(e,...n)})),this.addHook("beforeChangeRender",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return En(An,e,Nn).call(e,...n)})),this.addHook("afterFormulasValuesUpdate",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return En(An,e,jn).call(e,...n)})),this.addHook("beforeRender",(()=>En(An,this,In).call(this))),this.addHook("modifyColWidth",((e,t)=>this.getColumnWidth(t,e))),this.addHook("init",(()=>En(An,this,zn).call(this))),super.enablePlugin()}updatePlugin(){Mn(Rn,this,this.findColumnsWhereHeaderWasChanged()),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.addHook("beforeColumnResize",((e,t,n)=>En(An,this,Fn).call(this,e,t,n)))}calculateVisibleColumnsWidth(){if(!this.hot.countRows())return;const e=this.getFirstVisibleColumn(),t=this.getLastVisibleColumn();if(-1===e||-1===t)return;const n=this.hot.forceFullRender;this.calculateColumnsWidth({from:e,to:t},void 0,n)}calculateColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o="number"==typeof e?{from:e,to:e}:e,i="number"==typeof t?{from:t,to:t}:t;(0,Et.Ti)(o.from,o.to,(e=>{let t=this.hot.toPhysicalColumn(e);null===t&&(t=e),(n||null===this.columnWidthsMap.getValueAtIndex(t)&&!this.hot._getColWidthFromSettings(t))&&En(An,this,Dn).call(this,e,i)})),this.ghostTable.columns.length&&(En(An,this,Hn).call(this),this.measuredColumns=o.to+1,this.ghostTable.clean())}calculateAllColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0;const o=this.hot.countCols()-1;let i=null;this.inProgress=!0;const r=()=>{if(!this.hot)return(0,hn.uU)(i),void(this.inProgress=!1);this.calculateColumnsWidth({from:n,to:Math.min(n+Ln.CALCULATION_STEP,o)},e,t),n=n+Ln.CALCULATION_STEP+1,n<o?i=(0,hn.xi)(r):((0,hn.uU)(i),this.inProgress=!1,this.hot.view.adjustElementsSize())},s=this.getSyncCalculationLimit();s>=0&&(this.calculateColumnsWidth({from:0,to:s},e,t),n=s+1),n<o?r():this.inProgress=!1}recalculateAllColumnsWidth(){this.hot.view.isVisible()&&this.calculateAllColumnsWidth({from:0,to:this.hot.countRows()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[xn];let t=Ln.SYNC_CALCULATION_LIMIT;const n=this.hot.countCols()-1;return(0,s.Gv)(e)&&(t=e.syncLimit,(0,h.Pi)(t)?t=(0,Et.B5)(n,t):t>>=0),Math.min(t,n)}getColumnWidth(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t;return void 0===o&&(o=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),n&&"number"==typeof o&&(o=Math.max(o,vn.j))),o}getFirstVisibleColumn(){var e;return null!==(e=this.hot.getFirstRenderedVisibleColumn())&&void 0!==e?e:-1}getLastVisibleColumn(){var e;return null!==(e=this.hot.getLastRenderedVisibleColumn())&&void 0!==e?e:-1}findColumnsWhereHeaderWasChanged(){return this.hot.getColHeader().reduce(((e,t,n)=>{const o=Sn(Tn,this).length;return(o-1<n||Sn(Tn,this)[n]!==t)&&e.push(this.hot.toVisualColumn(n)),o-1<n?Sn(Tn,this).push(t):Sn(Tn,this)[n]=t,e}),[])}clearCache(e){Array.isArray(e)?this.hot.batchExecution((()=>{e.forEach((e=>{this.columnWidthsMap.setValueAtIndex(e,null)}))}),!0):this.columnWidthsMap.clear()}isNeedRecalculate(){return!!this.columnWidthsMap.getValues().slice(0,this.measuredColumns).filter((e=>null===e)).length}destroy(){this.ghostTable.clean(),super.destroy()}}function On(e){const t={from:0,to:this.hot.countRows()-1};e.forEach((e=>{const n=this.hot.toPhysicalColumn(e);null!==n&&(this.hot._getColWidthFromSettings(n)||En(An,this,Dn).call(this,e,t))})),this.ghostTable.columns.length&&(En(An,this,Hn).call(this),this.ghostTable.clean())}function Dn(e,t){this.samplesGenerator.generateColumnSamples(e,t).forEach(((e,t)=>this.ghostTable.addColumn(t,e)))}function Hn(){this.hot.batchExecution((()=>{this.ghostTable.getWidths(((e,t)=>{const n=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(n,t)}))}),!0)}function In(){this.calculateVisibleColumnsWidth(),this.inProgress||(En(An,this,On).call(this,Sn(Rn,this)),Mn(Rn,this,[]))}function Pn(e,t){t||this.recalculateAllColumnsWidth()}function Nn(e){const t=e.reduce(((e,t)=>{let[,n]=t;const o=this.hot.propToCol(n);return Number.isInteger(o)&&-1===e.indexOf(o)&&e.push(o),e}),[]);Sn(Rn,this).push(...t)}function Fn(e,t,n){let o=e;return n&&(this.calculateColumnsWidth(t,void 0,!0),o=this.getColumnWidth(t,void 0,!1)),o}function zn(){Mn(Tn,this,this.hot.getColHeader()),this.recalculateAllColumnsWidth(),Mn(kn,this,!0)}function jn(e){if(!Sn(kn,this))return;const t=e.reduce(((e,t)=>{var n;const o=null===(n=t.address)||void 0===n?void 0:n.col;if(Number.isInteger(o)){const t=this.hot.toVisualColumn(o);-1===e.indexOf(t)&&e.push(t)}return e}),[]);Sn(Rn,this).push(...t)}const Yn={horizontal:"horizontal",vertical:"vertical"};function $n(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Se.R.getSingleton().register("modifyAutofillRange"),Se.R.getSingleton().register("beforeAutofill"),Se.R.getSingleton().register("afterAutofill");const Wn="autofill",Vn=["fillHandle"];var Un=new WeakSet;class Gn extends dn{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Un),t.add(e),$n(this,"addingStarted",!1),$n(this,"mouseDownOnCellCorner",!1),$n(this,"mouseDragOutside",!1),$n(this,"handleDraggedCells",0),$n(this,"directions",[]),$n(this,"autoInsertRow",!1)}static get PLUGIN_KEY(){return Wn}static get PLUGIN_PRIORITY(){return 20}static get SETTING_KEYS(){return[Wn,...Vn]}isEnabled(){return this.hot.getSettings().fillHandle}enablePlugin(){this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",(e=>Bn(Un,this,qn).call(this,e))),this.addHook("afterOnCellCornerDblClick",(e=>Bn(Un,this,Kn).call(this,e))),this.addHook("beforeOnCellMouseOver",((e,t)=>Bn(Un,this,Xn).call(this,t))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.clearMappedSettings(),super.disablePlugin()}getSelectionData(){const e=this.hot.getSelectedRangeLast(),{row:t,col:n}=e.getTopStartCorner(),{row:o,col:i}=e.getBottomEndCorner(),r=this.hot.runHooks("modifyCopyableRange",[{startRow:t,startCol:n,endRow:o,endCol:i}]),s=[],a=[],l=[];return(0,d.z0)(r,(e=>{for(let t=e.startRow;t<=e.endRow;t+=1)-1===s.indexOf(t)&&s.push(t);for(let t=e.startCol;t<=e.endCol;t+=1)-1===a.indexOf(t)&&a.push(t)})),(0,d.z0)(s,(e=>{const t=[];(0,d.z0)(a,(n=>{t.push(this.hot.getCopyableData(e,n))})),l.push(t)})),l}fillIn(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;const[e,t,n,o]=this.hot.selection.highlight.getFill().getVisualCorners(),i=this.hot.getSelectedRangeLast(),r=i.getTopStartCorner(),s=i.getBottomEndCorner();this.resetSelectionOfDraggedArea();const a=[r.row,r.col,s.row,s.col],l=this.hot.runHooks("modifyAutofillRange",[Math.min(r.row,e),Math.min(r.col,t),Math.max(s.row,n),Math.max(s.col,o)],a),{directionOfDrag:c,startOfDragCoords:d,endOfDragCoords:u}=function(e,t,n){let o,i,r;return t[0]===e[0]&&t[1]<e[1]?(r="left",o=n(t[0],t[1]),i=n(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(r="right",o=n(t[0],e[3]+1),i=n(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(r="up",o=n(t[0],t[1]),i=n(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(r="down",o=n(e[2]+1,t[1]),i=n(t[2],t[3])),o&&o.normalize(),i&&i.normalize(),{directionOfDrag:r,startOfDragCoords:o,endOfDragCoords:i}}(a,l,((e,t)=>this.hot._createCellCoords(e,t)));if(d&&d.row>-1&&d.col>-1){const e=this.getSelectionData(),t=i.clone(),n=this.hot._createCellRange(d,d,u),o=this.hot.runHooks("beforeAutofill",e,t,n,c);if(!1===o)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;let r=o;const s=o;if(["up","left"].indexOf(c)>-1&&(1!==s.length||0!==s[0].length))if(r=[],"up"===c){const e=u.row-d.row+1,t=e%s.length;for(let n=0;n<e;n++)r.push(s[(n+(s.length-t))%s.length])}else{const e=u.col-d.col+1,t=e%s[0].length;for(let n=0;n<s.length;n++){r.push([]);for(let o=0;o<e;o++)r[n].push(s[n][(o+(s[n].length-t))%s[n].length])}}this.hot.populateFromArray(d.row,d.col,r,u.row,u.col,`${this.pluginName}.fill`,null),this.setSelection(l),this.hot.runHooks("afterAutofill",r,t,n,c),this.hot.render()}else this.hot.view.render();return!0}reduceSelectionAreaIfNeeded(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}getCoordsOfDragAndDropBorders(e){const t=this.hot.getSelectedRangeLast(),n=t.getBottomEndCorner();let o=e;if(this.directions.includes(Yn.vertical)&&this.directions.includes(Yn.horizontal)){const i=t.getTopStartCorner();(n.col<=e.col||i.col>=e.col)&&(o=this.hot._createCellCoords(n.row,e.col)),(n.row<e.row||i.row>e.row)&&(o=this.hot._createCellCoords(e.row,n.col))}else if(this.directions.includes(Yn.vertical))o=this.hot._createCellCoords(e.row,n.col);else{if(!this.directions.includes(Yn.horizontal))return;o=this.hot._createCellCoords(n.row,e.col)}return this.reduceSelectionAreaIfNeeded(o)}showBorder(e){const t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}addRow(){this.hot._registerTimeout((()=>{this.hot.alter("insert_row_below",void 0,1,`${this.pluginName}.fill`),this.addingStarted=!1}),200)}addNewRowIfNeeded(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){const e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),n=this.hot.countRows();e[2]<n-1&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}getIndexOfLastAdjacentFilledInRow(e){const t=this.hot.getData(),n=this.hot.countRows();let o;for(let i=e[2]+1;i<n;i++){for(let n=e[1];n<=e[3];n++){const e=t[i][n];if(!(0,u.Im)(e))return-1}const n=t[i][e[1]-1],r=t[i][e[3]+1];(0,u.Im)(n)&&(0,u.Im)(r)||(o=i)}return o}addSelectionFromStartAreaToSpecificRowIndex(e,t){this.hot.selection.highlight.getFill().clear().add(this.hot._createCellCoords(e[0],e[1])).add(this.hot._createCellCoords(t,e[3])).commit()}setSelection(e){this.hot.selectCell(...(0,d.YD)(e,(e=>Math.max(e,0))),!1,!1)}selectAdjacent(){const e=this.hot.getSelectedLast(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}resetSelectionOfDraggedArea(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}redrawBorders(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e).commit(),this.hot.view.render()}getIfMouseWasDraggedOutside(e){const{documentElement:t}=this.hot.rootDocument,n=(0,i.cY)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,i.DK)(this.hot.table),o=(0,i.cY)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,i.Gq)(this.hot.table);return e.clientY>n&&e.clientX<=o}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mouseup",(()=>Bn(Un,this,Jn).call(this))),this.eventManager.addEventListener(e,"mousemove",(e=>Bn(Un,this,Qn).call(this,e)))}clearMappedSettings(){this.directions.length=0,this.autoInsertRow=!1}mapSettings(){const e=function(e){const t={};return!0===e?(t.directions=Object.keys(Yn),t.autoInsertRow=!0):(0,s.Gv)(e)?((0,u.O9)(e.autoInsertRow)?e.direction===Yn.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,u.O9)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(Yn)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1),t}(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}destroy(){super.destroy()}}function Kn(){this.selectAdjacent()&&this.fillIn()}function qn(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}function Xn(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}function Jn(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}function Qn(e){const t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}function Zn(e,t,n){eo(e,t),t.set(e,n)}function eo(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function to(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function no(e,t,n){return e.set(io(e,t),n),n}function oo(e,t){return e.get(io(e,t))}function io(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const ro="autoRowSize";var so=new WeakMap,ao=new WeakMap,lo=new WeakSet;class co extends dn{static get PLUGIN_KEY(){return ro}static get PLUGIN_PRIORITY(){return 40}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 500}constructor(e){var t;super(e),eo(this,t=lo),t.add(this),to(this,"headerHeight",null),to(this,"ghostTable",new pn(this.hot)),to(this,"samplesGenerator",new bn(((e,t)=>{const n=this.hot.toPhysicalRow(e),o=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(n)||this.hot.columnIndexMapper.isHidden(o))return!1;if(e>=0&&t>=0&&this.hot.getCellMeta(e,t).hidden)return!1;let i;return e>=0?i=this.hot.getDataAtCell(e,t):-1===e&&(i=this.hot.getColHeader(t)),{value:i}}))),to(this,"inProgress",!1),to(this,"measuredRows",0),to(this,"rowHeightsMap",new yn._),Zn(this,so,[]),Zn(this,ao,!1),this.hot.rowIndexMapper.registerMap("autoRowSize",this.rowHeightsMap),this.addHook("beforeRowResize",((e,t,n)=>io(lo,this,mo).call(this,e,t,n)))}isEnabled(){const e=this.hot.getSettings()[ro];return!0===e||(0,s.Gv)(e)}enablePlugin(){var e=this;if(this.enabled)return;this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return io(lo,e,po).call(e,...n)})),this.addHook("beforeChangeRender",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return io(lo,e,fo).call(e,...n)})),this.addHook("beforeColumnResize",(()=>this.recalculateAllRowsHeight())),this.addHook("afterFormulasValuesUpdate",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return io(lo,e,bo).call(e,...n)})),this.addHook("beforeRender",(()=>io(lo,this,ho).call(this))),this.addHook("modifyRowHeight",((e,t)=>this.getRowHeight(t,e))),this.addHook("init",(()=>io(lo,this,go).call(this))),this.addHook("modifyColumnHeaderHeight",(()=>this.getColumnHeaderHeight())),super.enablePlugin()}disablePlugin(){this.headerHeight=null,super.disablePlugin(),this.addHook("beforeRowResize",((e,t,n)=>io(lo,this,mo).call(this,e,t,n)))}calculateVisibleRowsHeight(){if(!this.hot.countCols())return;const e=this.getFirstVisibleRow(),t=this.getLastVisibleRow();if(-1===e||-1===t)return;const n=this.hot.forceFullRender;this.calculateRowsHeight({from:e,to:t},void 0,n)}calculateRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o="number"==typeof e?{from:e,to:e}:e,i="number"==typeof t?{from:t,to:t}:t;if(null!==this.hot.getColHeader(0)){const e=this.samplesGenerator.generateRowSamples(-1,i);this.ghostTable.addColumnHeadersRow(e.get(-1))}(0,Et.Ti)(o.from,o.to,(e=>{let t=this.hot.toPhysicalRow(e);null===t&&(t=e),(n||null===this.rowHeightsMap.getValueAtIndex(t))&&this.samplesGenerator.generateRowSamples(e,i).forEach(((e,t)=>this.ghostTable.addRow(t,e)))})),this.ghostTable.rows.length&&(this.hot.batchExecution((()=>{this.ghostTable.getHeights(((e,t)=>{e<0?this.headerHeight=t:this.rowHeightsMap.setValueAtIndex(this.hot.toPhysicalRow(e),t)}))}),!0),this.measuredRows=o.to+1,this.ghostTable.clean())}calculateAllRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0;const o=this.hot.countRows()-1;let i=null;this.inProgress=!0;const r=()=>{if(!this.hot)return(0,hn.uU)(i),void(this.inProgress=!1);this.calculateRowsHeight({from:n,to:Math.min(n+co.CALCULATION_STEP,o)},e,t),n=n+co.CALCULATION_STEP+1,n<o?i=(0,hn.xi)(r):((0,hn.uU)(i),this.inProgress=!1,this.hot.view.adjustElementsSize())},s=this.getSyncCalculationLimit();s>=0&&(this.calculateRowsHeight({from:0,to:s},e,t),n=s+1),n<o?r():(this.inProgress=!1,this.hot.view.adjustElementsSize())}recalculateAllRowsHeight(){this.hot.view.isVisible()&&this.calculateAllRowsHeight({from:0,to:this.hot.countCols()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[ro];let t=co.SYNC_CALCULATION_LIMIT;const n=this.hot.countRows()-1;return(0,s.Gv)(e)&&(t=e.syncLimit,(0,h.Pi)(t)?t=(0,Et.B5)(n,t):t>>=0),Math.min(t,n)}getRowHeight(e,t){const n=e<0?this.headerHeight:this.rowHeightsMap.getValueAtIndex(this.hot.toPhysicalRow(e));let o=t;return null!==n&&n>(t||0)&&(o=n),o}getColumnHeaderHeight(){return this.headerHeight}getFirstVisibleRow(){var e;return null!==(e=this.hot.getFirstRenderedVisibleRow())&&void 0!==e?e:-1}getLastVisibleRow(){var e;return null!==(e=this.hot.getLastRenderedVisibleRow())&&void 0!==e?e:-1}clearCache(e){this.headerHeight=null,Array.isArray(e)?this.hot.batchExecution((()=>{e.forEach((e=>{this.rowHeightsMap.setValueAtIndex(e,null)}))}),!0):this.rowHeightsMap.clear()}clearCacheByRange(e){const{from:t,to:n}="number"==typeof e?{from:e,to:e}:e;this.hot.batchExecution((()=>{(0,Et.Ti)(Math.min(t,n),Math.max(t,n),(e=>{this.rowHeightsMap.setValueAtIndex(e,null)}))}),!0)}isNeedRecalculate(){return!!this.rowHeightsMap.getValues().slice(0,this.measuredRows).filter((e=>null===e)).length}destroy(){this.ghostTable.clean(),super.destroy()}}function uo(e){const t={from:0,to:this.hot.countCols()-1};e.forEach((e=>{this.samplesGenerator.generateRowSamples(e,t).forEach(((e,t)=>this.ghostTable.addRow(t,e)))})),this.ghostTable.rows.length&&(this.hot.batchExecution((()=>{this.ghostTable.getHeights(((e,t)=>{const n=this.hot.toPhysicalRow(e);this.rowHeightsMap.setValueAtIndex(n,t)}))}),!0),this.ghostTable.clean())}function ho(){this.calculateVisibleRowsHeight(),this.inProgress||(io(lo,this,uo).call(this,oo(so,this)),no(so,this,[]))}function mo(e,t,n){let o=e;return n&&(this.calculateRowsHeight(t,void 0,!0),o=this.getRowHeight(t)),o}function po(e,t){t||this.recalculateAllRowsHeight()}function fo(e){const t=e.reduce(((e,t)=>{let[n]=t;return-1===e.indexOf(n)&&e.push(n),e}),[]);oo(so,this).push(...t)}function go(){this.recalculateAllRowsHeight(),no(ao,this,!0)}function bo(e){if(!oo(ao,this))return;const t=e.reduce(((e,t)=>{var n;const o=null===(n=t.address)||void 0===n?void 0:n.row;if(Number.isInteger(o)){const t=this.hot.toVisualRow(o);-1===e.indexOf(t)&&e.push(t)}return e}),[]);oo(so,this).push(...t)}var vo=n(48046),yo=n(77792);const wo=new Map([["indexesSequence",{getListWithInsertedItems:vo.N,getListWithRemovedItems:vo.H}],["physicallyIndexed",{getListWithInsertedItems:yo.N,getListWithRemovedItems:yo.H}]]),Co=e=>{if(!1===wo.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return wo.get(e)};var _o=n(41895),So=n(13317);const{getListWithInsertedItems:Mo,getListWithRemovedItems:Eo}=Co("physicallyIndexed");class xo extends _o.n{constructor(){super((e=>e))}insert(e,t){const n=(0,So.z)(this.indexedValues,t);this.indexedValues=Mo(n,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){const t=Eo(this.indexedValues,e);this.indexedValues=(0,So.v)(t,e),super.remove(e)}}const ko=xo,{getListWithInsertedItems:To,getListWithRemovedItems:Ro}=Co("physicallyIndexed");class Ao extends _o.n{constructor(){super((e=>e))}insert(e,t){this.indexedValues=To(this.indexedValues,e,t,((e,t)=>this.getNextValue(t))),super.insert(e,t)}remove(e){this.indexedValues=Ro(this.indexedValues,e),super.remove(e)}getNextValue(e){return Math.max(...this.getValues())+1+e}}const Lo="bindRowsWithHeaders",Oo=new Map([["loose",ko],["strict",Ao]]);var Do=new WeakSet;class Ho extends dn{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Do),t.add(e),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"headerIndexes",null)}static get PLUGIN_KEY(){return Lo}static get PLUGIN_PRIORITY(){return 210}isEnabled(){return!!this.hot.getSettings()[Lo]}enablePlugin(){var e;if(this.enabled)return;const t=null!==(e=Oo.get(this.getSetting()))&&void 0!==e?e:Oo.get("loose");this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new t),this.addHook("modifyRowHeader",(e=>function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(Do,this,Io).call(this,e))),super.enablePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),super.disablePlugin()}destroy(){super.destroy()}}function Io(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}var Po=n(82617);function No(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zo(e,t){return e.get(Yo(e,t))}function jo(e,t,n){return e.set(Yo(e,t),n),n}function Yo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const $o="collapsibleColumns",Bo=["nestedHeaders"],Wo="collapsibleIndicator",Vo=$o,Uo=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]);var Go=new WeakMap,Ko=new WeakSet;class qo extends dn{constructor(){var e;super(...arguments),No(this,e=Ko),e.add(this),Fo(this,"nestedHeadersPlugin",null),Fo(this,"headerStateManager",null),function(e,t){No(e,t),t.set(e,null)}(this,Go)}static get PLUGIN_KEY(){return $o}static get PLUGIN_PRIORITY(){return 290}static get PLUGIN_DEPS(){return["plugin:NestedHeaders"]}static get SETTING_KEYS(){return[$o,...Bo]}isEnabled(){return!!this.hot.getSettings()[$o]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();t||(0,Po.R8)("You need to configure the Nested Headers plugin in order to use collapsible headers."),jo(Go,this,this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.addHook("init",(()=>Yo(Ko,this,Qo).call(this))),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Yo(Ko,e,Zo).call(e,...n)})),this.addHook("afterGetColHeader",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Yo(Ko,e,Xo).call(e,...n)})),this.addHook("beforeOnCellMouseDown",((e,t,n)=>Yo(Ko,this,Jo).call(this,e,t,n))),this.registerShortcuts(),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(this.hot.view){if(!this.nestedHeadersPlugin.detectedOverlappedHeaders){const{collapsibleColumns:e}=this.hot.getSettings();"boolean"==typeof e?this.headerStateManager.mapState((e=>({collapsible:e.origColspan>1}))):Array.isArray(e)&&(this.headerStateManager.mapState((()=>({collapsible:!1}))),this.headerStateManager.mergeStateWith(e))}super.updatePlugin()}}disablePlugin(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),jo(Go,this,null),this.nestedHeadersPlugin=null,this.unregisterShortcuts(),this.clearButtons(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{var e;const{row:t,col:n}=this.hot.getSelectedRangeLast().highlight,{collapsible:o,isCollapsed:i,columnIndex:r}=null!==(e=this.headerStateManager.getHeaderTreeNodeData(t,n))&&void 0!==e?e:{};if(o)return i?this.expandSection({row:t,col:r}):this.collapseSection({row:t,col:r}),!1},runOnlyIf:()=>{var e,t;return(null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.isSingle())&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isHeader())},group:Vo,relativeToGroup:a.b,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(Vo)}clearButtons(){if(!this.hot.view)return;const e=this.hot.view._wt.getSetting("columnHeaders").length,t=this.hot.view._wt.wtTable.THEAD,n=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.THEAD,o=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,i=function(e){e&&e.parentNode.removeChild(e)};(0,Et.Ti)(0,e-1,(e=>{const r=t.childNodes[e],s=n.childNodes[e],a=o?o.childNodes[e]:null;(0,Et.Ti)(0,r.childNodes.length-1,(e=>{let t=r.childNodes[e].querySelector(`.${Wo}`);i(t),s&&s.childNodes[e]&&(t=s.childNodes[e].querySelector(`.${Wo}`),i(t)),o&&a&&a.childNodes[e]&&(t=a.childNodes[e].querySelector(`.${Wo}`),i(t))}))}),!0)}expandSection(e){this.toggleCollapsibleSection([e],"expand")}collapseSection(e){this.toggleCollapsibleSection([e],"collapse")}toggleAllCollapsibleSections(e){const t=this.headerStateManager.mapNodes((t=>{const{collapsible:n,origColspan:o,headerLevel:i,columnIndex:r,isCollapsed:s}=t;if(!0===n&&o>1&&(s&&"expand"===e||!s&&"collapse"===e))return{row:this.headerStateManager.levelToRowCoords(i),col:r}}));this.toggleCollapsibleSection(t,e)}collapseAll(){this.toggleAllCollapsibleSections("collapse")}expandAll(){this.toggleAllCollapsibleSections("expand")}toggleCollapsibleSection(e,t){if(!Uo.has(t))throw new Error(`Unsupported action is passed (${t}).`);if(!Array.isArray(e))return;const n=(0,d.y0)(e,(e=>{let{row:t}=e;return t<0}));let o=n.length>0;(0,d.z0)(n,(e=>{var n;let{row:i,col:r}=e;const{collapsible:s,isCollapsed:a}=null!==(n=this.headerStateManager.getHeaderSettings(i,r))&&void 0!==n?n:{};if(!s||a&&"collapse"===t||!a&&"expand"===t)return o=!1,!1}));const i=[],r=[];o&&(0,d.z0)(n,(e=>{let{row:n,col:o}=e;const{colspanCompensation:s,affectedColumns:a,rollbackModification:l}=this.headerStateManager.triggerNodeModification(t,n,o);s>0&&(r.push(...a),i.push(l))}));const s=this.getCollapsedColumns();let a=[];"collapse"===t?a=(0,d.jF)([...s,...r]):"expand"===t&&(a=(0,d.y0)(s,(e=>!r.includes(e))));const l=Uo.get(t);if(!1===this.hot.runHooks(l.beforeHook,s,a,o))return void(0,d.z0)(i,(e=>{e()}));this.hot.batchExecution((()=>{(0,d.z0)(r,(e=>{zo(Go,this).setValueAtIndex(this.hot.toPhysicalColumn(e),l.hideColumn)}))}),!0);const c=this.getCollapsedColumns().length!==s.length,u=this.hot.getSelectedRangeLast();if("collapse"===t&&c&&u){const{row:e,col:t}=u.highlight;if((this.hot.rowIndexMapper.isHidden(e)||this.hot.columnIndexMapper.isHidden(t))&&r.includes(t)){const n=e>=0?this.hot.rowIndexMapper.getNearestNotHiddenIndex(e,1,!0):e,o=t>=0?this.hot.columnIndexMapper.getNearestNotHiddenIndex(t,1,!0):t;null!==n&&null!==o&&this.hot.selectCell(n,o)}}this.hot.runHooks(l.afterHook,s,a,o,c),this.hot.render(),this.hot.view.adjustElementsSize()}getCollapsedColumns(){return zo(Go,this).getHiddenIndexes()}destroy(){jo(Go,this,null),super.destroy()}}function Xo(e,t,n){var o;const{collapsible:r,origColspan:s,isCollapsed:a}=null!==(o=this.headerStateManager.getHeaderSettings(n,e))&&void 0!==o?o:{},l=r&&s>1&&e>=this.hot.getSettings().fixedColumnsStart,c=this.hot.getSettings().ariaTags;let d=t.querySelector(`.${Wo}`);var u;(0,i.De)(t,[(0,f.dV)("")[0]]),l?(d||(d=this.hot.rootDocument.createElement("div"),(0,i.iQ)(d,Wo),t.querySelector("div:first-child").appendChild(d)),(0,i.vy)(d,["collapsed","expanded"]),a?((0,i.iQ)(d,"collapsed"),(0,i.c6)(d,"+"),c&&(0,i.Bq)(t,...(0,f.dV)(!1))):((0,i.iQ)(d,"expanded"),(0,i.c6)(d,"-"),c&&(0,i.Bq)(t,...(0,f.dV)(!0))),c&&(0,i.Bq)(d,...(0,f.MG)())):null===(u=d)||void 0===u||u.remove()}function Jo(e,t){(0,i.nB)(e.target,Wo)&&((0,i.nB)(e.target,"expanded")?(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):(0,i.nB)(e.target,"collapsed")&&(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"expand")),(0,r.CA)(e))}function Qo(){this.updatePlugin()}function Zo(e,t){t||this.updatePlugin()}var ei=n(85408),ti=n(31803);function ni(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oi=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"];class ii{constructor(e,t){ni(this,"hot",void 0),ni(this,"sortingStates",new ti.z),ni(this,"sortEmptyCells",!1),ni(this,"indicator",!0),ni(this,"headerAction",!0),ni(this,"compareFunctionFactory",void 0),ni(this,"mapName",void 0),this.hot=e,this.mapName=t,this.hot.columnIndexMapper.registerMap(t,this.sortingStates)}updateAllColumnsProperties(e){(0,s.Gv)(e)&&(0,s.v4)(e,((e,t)=>{oi.includes(t)&&(this[t]=e)}))}getAllColumnsProperties(){const e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}getSortOrderOfColumn(e){var t;return null===(t=this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))||void 0===t?void 0:t.sortOrder}getIndexOfColumnInSortQueue(e){return e=this.hot.toPhysicalColumn(e),this.sortingStates.getEntries().findIndex((t=>{let[n]=t;return n===e}))}getNumberOfSortedColumns(){return this.sortingStates.getLength()}isListOfSortedColumnsEmpty(){return 0===this.getNumberOfSortedColumns()}isColumnSorted(e){return(0,s.Gv)(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))}getSortStates(){return null===this.sortingStates?[]:this.sortingStates.getEntries().map((e=>{let[t,n]=e;return{column:this.hot.toVisualColumn(t),...n}}))}getColumnSortState(e){const t=this.getSortOrderOfColumn(e);if((0,u.O9)(t))return{column:e,sortOrder:t}}setSortStates(e){this.sortingStates.clear();for(let t=0;t<e.length;t+=1)this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(e[t].column),{sortOrder:e[t].sortOrder})}destroy(){this.hot.columnIndexMapper.unregisterMap(this.mapName),this.sortingStates=null}}function ri(e,t,n){const o=t.locale;return function(t,i){const{sortEmptyCells:r}=n;return"string"==typeof t&&(t=t.toLocaleLowerCase(o)),"string"==typeof i&&(i=i.toLocaleLowerCase(o)),t===i?pi:(0,u.Im)(t)?(0,u.Im)(i)?pi:r&&"asc"===e?fi:gi:(0,u.Im)(i)?r&&"asc"===e?gi:fi:isNaN(t)&&!isNaN(i)?"asc"===e?gi:fi:!isNaN(t)&&isNaN(i)?"asc"===e?fi:gi:(isNaN(t)||isNaN(i)||(t=parseFloat(t),i=parseFloat(i)),t<i?"asc"===e?fi:gi:t>i?"asc"===e?gi:fi:pi)}}n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(37550);const si="default";var ai=n(34647);const{register:li,getItem:ci,hasItem:di}=(0,ai.A)("sorting.compareFunctionFactory"),{register:ui,getItem:hi}=(0,ai.A)("sorting.mainSortComparator");function mi(e){return di(e)?ci(e):ci(si)}li("checkbox",(function(e,t,n){const o=t.checkedTemplate,i=t.uncheckedTemplate,{sortEmptyCells:r}=n;return function(s,a){const l=(0,u.Im)(s),c=(0,u.Im)(a),d=l?i:s,h=c?i:a,m=d===i||d===o,p=h===i||h===o;if(!1===r){if(l&&!1===c)return gi;if(!1===l&&c)return fi}return!1===m&&p?"asc"===e?fi:gi:m&&!1===p?"asc"===e?gi:fi:!1===m&&!1===p?ri(e,t,n)(s,a):d===i&&h===o?"asc"===e?fi:gi:d===o&&h===i?"asc"===e?gi:fi:pi}})),li("date",(function(e,t,n){return Ei(e,t.dateFormat,n)})),li(si,ri),li("numeric",(function(e,t,n){return function(t,o){const i=parseFloat(t),r=parseFloat(o),{sortEmptyCells:s}=n;if(i===r||isNaN(i)&&isNaN(r))return pi;if(s){if((0,u.Im)(t))return"asc"===e?fi:gi;if((0,u.Im)(o))return"asc"===e?gi:fi}return isNaN(i)?gi:isNaN(r)?fi:i<r?"asc"===e?fi:gi:i>r?"asc"===e?gi:fi:pi}})),li("time",(function(e,t,n){return Ei(e,t.timeFormat,n)}));const pi=0,fi=-1,gi=1;var bi=n(85975);const vi="asc",yi="desc",wi="colHeader";function Ci(e){if(e!==yi)return e===vi?yi:vi}function _i(e){return e.querySelector(`.${wi}`)}function Si(e,t){if(e<0||!t.parentNode)return!1;const n=t.parentNode.parentNode.childNodes;return-1===Array.from(n).indexOf(t.parentNode)-n.length}function Mi(e,t,n){return-1===e&&t>=0&&!1===(0,r.nO)(n)}function Ei(e,t,n){return function(o,i){const{sortEmptyCells:r}=n;if(o===i)return pi;if((0,u.Im)(o))return(0,u.Im)(i)?pi:r&&"asc"===e?fi:gi;if((0,u.Im)(i))return r&&"asc"===e?gi:fi;const s=R(o,t),a=R(i,t);return s.isValid()?a.isValid()?a.isAfter(s)?"asc"===e?fi:gi:a.isBefore(s)?"asc"===e?gi:fi:pi:fi:gi}}const xi="indicatorDisabled",ki="columnSorting",Ti="sortAction",Ri=new Map([[vi,"ascending"],[yi,"descending"]]);function Ai(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Li(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const Oi="columnSorting",Di="append",Hi=Oi;ui(Oi,(function(e,t){return function(n,o){const[,...i]=n,[,...r]=o;return function(){const n=e[0],o=t[0],s=i[0],a=r[0],l=o.columnSorting;return(l.compareFunctionFactory?l.compareFunctionFactory:mi(o.type))(n,o,l)(s,a)}()}})),Se.R.getSingleton().register("beforeColumnSort"),Se.R.getSingleton().register("afterColumnSort");const Ii=new WeakMap;var Pi=new WeakSet;class Ni extends dn{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Pi),t.add(e),Ai(this,"columnStatesManager",null),Ai(this,"columnMetaCache",null),Ai(this,"pluginKey",Oi),Ai(this,"indexesSequenceCache",null)}static get PLUGIN_KEY(){return Oi}static get PLUGIN_PRIORITY(){return 50}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){var e,t,n=this;if(Ii.has(this.hot)&&Ii.get(this.hot)!==this.pluginKey)return this.hot.updateSettings({[this.pluginKey]:!1}),e=Ii.get(this.hot),t=this.pluginKey,void(0,Po.R8)(bi.O`Plugins \`columnSorting\` and \`multiColumnSorting\` should not be enabled simultaneously.\x20
  3. Only \`${e}\` will work. The \`${t}\` plugin will remain disabled.`);this.enabled||(Ii.set(this.hot,this.pluginKey),this.columnStatesManager=new ii(this.hot,`${this.pluginKey}.sortingStates`),this.columnMetaCache=new yn._((e=>{let t=this.hot.toVisualColumn(e);return null===t&&(t=e),this.getMergedPluginSettings(t)})),this.hot.columnIndexMapper.registerMap(`${this.pluginKey}.columnMeta`,this.columnMetaCache),this.addHook("afterGetColHeader",((e,t)=>Li(Pi,this,zi).call(this,e,t))),this.addHook("beforeOnCellMouseDown",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Li(Pi,n,Yi).call(n,...t)})),this.addHook("afterOnCellMouseDown",((e,t)=>this.onAfterOnCellMouseDown(e,t))),this.addHook("afterInit",(()=>Li(Pi,this,Fi).call(this))),this.addHook("afterLoadData",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Li(Pi,n,ji).call(n,...t)})),this.hot.view&&Li(Pi,this,Fi).call(this),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){const e=(e,t)=>{const n=_i(t);!1!==Si(e,t)&&null!==n&&this.updateHeaderClasses(n)};Ii.delete(this.hot),this.hot.addHook("afterGetColHeader",e),this.hot.addHookOnce("afterViewRender",(()=>{this.hot.removeHook("afterGetColHeader",e)})),this.hot.batchExecution((()=>{null!==this.indexesSequenceCache&&(this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginKey),this.indexesSequenceCache=null)}),!0),this.hot.columnIndexMapper.unregisterMap(`${this.pluginKey}.columnMeta`),this.columnStatesManager.destroy(),this.columnMetaCache=null,this.columnStatesManager=null,this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();return this.sort(this.getColumnNextConfig(e.col)),!1},runOnlyIf:()=>{var e,t;const n=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return n&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(n)&&-1===n.row&&n.col>=0},relativeToGroup:a.b,position:"before",group:Hi})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(Hi)}sort(e){const t=this.getSortConfig(),n=this.getNormalizedSortConfigs(e),o=this.areValidSortConfigs(n);!1!==this.hot.runHooks("beforeColumnSort",t,n,o)&&(0===t.length&&null===this.indexesSequenceCache&&(this.indexesSequenceCache=this.hot.rowIndexMapper.registerMap(this.pluginKey,new ei.K),this.indexesSequenceCache.setValues(this.hot.rowIndexMapper.getIndexesSequence())),o&&(this.columnStatesManager.setSortStates(n),this.sortByPresetSortStates(n),this.saveAllSortSettings(n)),this.hot.runHooks("afterColumnSort",t,o?n:t,o),o&&this.hot.render())}clearSort(){this.sort([])}isSorted(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}getSortConfig(e){return(0,u.O9)(e)?this.columnStatesManager.getColumnSortState(e):this.columnStatesManager.getSortStates()}setSortConfig(e){const t=this.getNormalizedSortConfigs(e);this.areValidSortConfigs(t)&&this.columnStatesManager.setSortStates(t)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.slice(0,1):[e]}areValidSortConfigs(e){const t=this.hot.countCols();return function(e){if(e.some((e=>!1===function(e){if(!1===(0,s.Gv)(e))return!1;const{column:t,sortOrder:n}=e;return Number.isInteger(t)&&[vi,yi].includes(n)}(e))))return!1;const t=e.map((e=>{let{column:t}=e;return t}));return new Set(t).size===t.length}(e)&&e.every((e=>{let{column:n}=e;return n<=t&&n>=0}))}saveAllSortSettings(e){const t=this.columnStatesManager.getAllColumnsProperties();t.initialConfig=(0,d.YD)(e,(e=>{let{column:t,...n}=e;return{column:this.hot.toPhysicalColumn(t),...n}})),this.hot.runHooks("persistentStateSave","columnSorting",t)}getAllSavedSortSettings(){const e={};this.hot.runHooks("persistentStateLoad","columnSorting",e);const t=e.value;return(0,u.O9)(t)&&Array.isArray(t.initialConfig)&&(t.initialConfig=(0,d.YD)(t.initialConfig,(e=>{let{column:t,...n}=e;return{column:this.hot.toVisualColumn(t),...n}}))),t}getColumnNextConfig(e){const t=this.columnStatesManager.getSortOrderOfColumn(e);if((0,u.O9)(t)){const n=Ci(t);return(0,u.O9)(n)?{column:e,sortOrder:n}:void 0}const n=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&e<n)return{column:e,sortOrder:Ci()}}getNextSortConfig(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Di;const n=this.columnStatesManager.getIndexOfColumnInSortQueue(e),o=-1!==n,i=this.getSortConfig(),r=this.getColumnNextConfig(e);if(o){if((0,u.b0)(r))return[...i.slice(0,n),...i.slice(n+1)];if(t===Di)return[...i.slice(0,n),...i.slice(n+1),r];if("replace"===t)return[...i.slice(0,n),r,...i.slice(n+1)]}return(0,u.O9)(r)?i.concat(r):i}getPluginColumnConfig(e){if((0,s.Gv)(e)){const t=e[this.pluginKey];if((0,s.Gv)(t))return t}return{}}getMergedPluginSettings(e){const t=this.hot.getSettings()[this.pluginKey],n=this.columnStatesManager.getAllColumnsProperties(),o=this.hot.getCellMeta(0,e),i=Object.getPrototypeOf(o);return Array.isArray(i.columns)?Object.assign(n,t,this.getPluginColumnConfig(i.columns[e])):(0,g.Tn)(i.columns)?Object.assign(n,t,this.getPluginColumnConfig(i.columns(e))):Object.assign(n,t)}getFirstCellSettings(e){const t=this.hot.getCellMeta(0,e),n=Object.create(t);return n[this.pluginKey]=this.columnMetaCache.getValueAtIndex(this.hot.toPhysicalColumn(e)),n}getNumberOfRowsToSort(e){const t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}sortByPresetSortStates(e){if(this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues()),0===e.length)return;const t=[],n=this.hot.countRows(),o=t=>(0,d.YD)(e,(e=>this.hot.getDataAtCell(t,e.column)));for(let e=0;e<this.getNumberOfRowsToSort(n);e+=1)t.push([this.hot.toPhysicalRow(e)].concat(o(e)));const i=(0,d.YD)(t,(e=>e[0]));!function(e,t){const n=hi(t);for(var o=arguments.length,i=new Array(o>2?o-2:0),r=2;r<o;r++)i[r-2]=arguments[r];e.sort(n(...i))}(t,this.pluginKey,(0,d.YD)(e,(e=>e.sortOrder)),(0,d.YD)(e,(e=>this.getFirstCellSettings(e.column))));for(let e=t.length;e<n;e+=1)t.push([e].concat(o(e)));const r=(0,d.YD)(t,(e=>e[0])),s=new Map((0,d.YD)(i,((e,t)=>[e,r[t]]))),a=(0,d.YD)(this.hot.rowIndexMapper.getIndexesSequence(),(e=>s.has(e)?s.get(e):e));this.hot.rowIndexMapper.setIndexesSequence(a)}sortBySettings(e){if((0,s.Gv)(e)){this.columnStatesManager.updateAllColumnsProperties(e);const t=e.initialConfig;(Array.isArray(t)||(0,s.Gv)(t))&&this.sort(t)}else this.hot.render()}updateHeaderClasses(e){if((0,i.vy)(e,Array.from(Ri.values()).concat(Ti,xi,ki)),!1!==this.enabled){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(0,i.iQ)(e,function(e,t,n,o){const i=[ki];if(o&&i.push(Ti),!1===n)return i.push(xi),i;const r=e.getSortOrderOfColumn(t);return(0,u.O9)(r)&&i.push(Ri.get(r)),i}(...n))}}onUpdateSettings(e){super.onUpdateSettings(e),null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexes()),(0,u.O9)(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}wasClickableHeaderClicked(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&(0,i.nB)(e.target,wi)}onAfterOnCellMouseDown(e,t){if(!1!==Mi(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)){this.hot.getShortcutManager().isCtrlPressed()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col));const e=this.hot.getActiveEditor(),n=this.getColumnNextConfig(t.col);null!=e&&e.isOpened()&&this.hot.getCellValidator(e.row,e.col)?this.hot.addHookOnce("postAfterValidate",(()=>{this.sort(n)})):this.sort(n)}}destroy(){var e;null===(e=this.columnStatesManager)||void 0===e||e.destroy(),super.destroy()}}function Fi(){const e=this.getAllSavedSortSettings();if((0,s.Gv)(e))this.sortBySettings(e);else{const e=this.hot.getSettings()[this.pluginKey];this.sortBySettings(e)}}function zi(e,t){const n=_i(t);if(!1===Si(e,t)||null===n)return;const o=this.getFirstCellSettings(e)[this.pluginKey],r=o.indicator,s=o.headerAction;if(this.updateHeaderClasses(n,this.columnStatesManager,e,r,s),this.hot.getSettings().ariaTags){const n=this.columnStatesManager.getSortOrderOfColumn(e);(0,i.Bq)(t,...(0,f._h)(n?`${n}ending`:"none"))}}function ji(e){!0===e&&this.hot.view&&Li(Pi,this,Fi).call(this)}function Yi(e,t,n,o){!1!==Mi(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&this.hot.getShortcutManager().isCtrlPressed()&&(o.column=!0)}function $i(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bi=class{constructor(e,t){$i(this,"plugin",void 0),$i(this,"hot",void 0),$i(this,"endpoints",[]),$i(this,"settings",void 0),$i(this,"settingsType","array"),$i(this,"currentEndpoint",null),$i(this,"cellsToSetCache",[]),this.plugin=e,this.hot=this.plugin.hot,this.settings=t}initEndpoints(){this.endpoints=this.parseSettings(),this.refreshAllEndpoints()}getEndpoint(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}getAllEndpoints(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}fillMissingEndpointData(e){return this.parseSettings(e.call(this))}parseSettings(e){const t=[];let n=e;if(n||"function"!=typeof this.settings)return n||(n=this.settings),(0,d.z0)(n,(e=>{const n={};this.assignSetting(e,n,"ranges",[[0,this.hot.countRows()-1]]),this.assignSetting(e,n,"reversedRowCoords",!1),this.assignSetting(e,n,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,n,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,n,"sourceColumn",e.destinationColumn),this.assignSetting(e,n,"type","sum"),this.assignSetting(e,n,"forceNumeric",!1),this.assignSetting(e,n,"suppressDataTypeErrors",!0),this.assignSetting(e,n,"customFunction",null),this.assignSetting(e,n,"readOnly",!0),this.assignSetting(e,n,"roundFloat",!1),t.push(n)})),t;this.settingsType="function"}assignSetting(e,t,n,o){if("ranges"!==n||void 0!==e[n]){if("ranges"!==n||0!==e[n].length)if(void 0===e[n]){if(o instanceof Error)throw o;t[n]=o}else"destinationRow"===n&&t.reversedRowCoords?t[n]=this.hot.countRows()-e[n]-1:t[n]=e[n]}else t[n]=o}resetSetupBeforeStructureAlteration(e,t,n){if("function"!==this.settingsType)return;const o=e.indexOf("row")>-1?"row":"col",i=this.getAllEndpoints();(0,d.z0)(i,(i=>{"row"===o&&i.destinationRow>=t&&("insert_row"===e?i.alterRowOffset=n:"remove_row"===e&&(i.alterRowOffset=-1*n)),"col"===o&&i.destinationColumn>=t&&("insert_col"===e?i.alterColumnOffset=n:"remove_col"===e&&(i.alterColumnOffset=-1*n))})),this.resetAllEndpoints(i,!1)}resetSetupAfterStructureAlteration(e,t,n,o,i){let r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"===this.settingsType){const e=()=>(this.hot.removeHook("beforeViewRender",e),this.refreshAllEndpoints());return void this.hot.addHookOnce("beforeViewRender",e)}const s=e.indexOf("row")>-1?"row":"col",a=e.indexOf("remove")>-1?-1:1,l=this.getAllEndpoints(),c=0===e.indexOf("move_row"),u=t;(0,d.z0)(l,(e=>{"row"===s&&e.destinationRow>=u&&(e.alterRowOffset=a*n),"col"===s&&e.destinationColumn>=u&&(e.alterColumnOffset=a*n)})),this.resetAllEndpoints(l,!c),c?(0,d.z0)(l,(e=>{this.extendEndpointRanges(e,u,o[0],o.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)})):(0,d.z0)(l,(e=>{this.shiftEndpointCoordinates(e,u)})),r&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,n,o){(0,d.z0)(e.ranges,(e=>{e[1]&&(t>=e[0]&&t<=e[1]?n>e[1]?e[1]+=o:n<e[0]&&(e[0]-=o):n>=e[0]&&n<=e[1]&&(e[1]-=o,t<=e[0]&&(e[0]+=1,e[1]+=1)))}))}recreatePhysicalRanges(e){const t=e.ranges,n=[],o=[];(0,d.z0)(t,(e=>{const t=[];if(e[1])for(let n=e[0];n<=e[1];n++)t.push(this.hot.toPhysicalRow(n));else t.push(this.hot.toPhysicalRow(e[0]));o.push(t)})),(0,d.z0)(o,(e=>{let t=[];(0,d.z0)(e,((o,i)=>{0===i?t.push(o):e[i]!==e[i-1]+1&&(t.push(e[i-1]),n.push(t),t=[],t.push(o)),i===e.length-1&&(t.push(o),n.push(t))}))})),e.ranges=n}shiftEndpointCoordinates(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,d.z0)(e.ranges,(n=>{(0,d.z0)(n,((o,i)=>{o>=t&&(n[i]+=e.alterRowOffset||0)}))}))):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.some((e=>{const t=e.alterRowOffset||0,n=e.alterColumnOffset||0;return e.destinationRow+t>=this.hot.countRows()||e.destinationColumn+n>=this.hot.countCols()}))||(this.cellsToSetCache=[],(0,d.z0)(e,(e=>{this.resetEndpointValue(e,t)})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,d.z0)(this.getAllEndpoints(),(e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")})),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const t=[];this.cellsToSetCache=[],(0,d.z0)(e,((e,n,o)=>{`${e[2]||""}`!=`${e[3]}`&&(0,d.z0)(this.getAllEndpoints(),((e,i)=>{this.hot.propToCol(o[n][1])===e.sourceColumn&&-1===t.indexOf(i)&&t.push(i)}))})),(0,d.z0)(t,(e=>{this.refreshEndpoint(this.getEndpoint(e))})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshCellMetas(){this.endpoints.forEach((e=>{const t=this.hot.toVisualRow(e.destinationRow);if(null!==t){const n=this.hot.getCellMeta(t,e.destinationColumn);n.readOnly=e.readOnly,n.className="columnSummaryResult"}}))}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}resetEndpointValue(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e.alterRowOffset||0,o=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?n:0)),this.hot.toVisualColumn(e.destinationColumn+(t?o:0)),""])}setEndpointValue(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())return void this.throwOutOfBoundsWarning();const i=this.hot.toVisualRow(e.destinationRow);if(null!==i){const n=this.hot.getCellMeta(i,e.destinationColumn);"init"!==t&&n.readOnly===e.readOnly||(n.readOnly=e.readOnly,n.className="columnSummaryResult")}if((!0===e.roundFloat||Number.isInteger(e.roundFloat))&&!isNaN(e.result)){const t=e.roundFloat;let n=0;Number.isInteger(t)&&(n=Math.min(Math.max(0,t),100)),e.result=e.result.toFixed(n)}n?this.hot.setDataAtCell(o,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([o,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}throwOutOfBoundsWarning(){(0,Po.R8)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}};function Wi(e){return null==e||isNaN(e)}function Vi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const Ui="columnSummary";var Gi=new WeakSet;class Ki extends dn{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Gi),t.add(e),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"endpoints",null)}static get PLUGIN_KEY(){return Ui}static get PLUGIN_PRIORITY(){return 220}isEnabled(){return!!this.hot.getSettings()[Ui]}enablePlugin(){var e=this;this.enabled||(this.settings=this.hot.getSettings()[Ui],this.endpoints=new Bi(this,this.settings),this.addHook("afterInit",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Vi(Gi,e,qi).call(e,...n)})),this.addHook("afterChange",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Vi(Gi,e,Ji).call(e,...n)})),this.addHook("afterUpdateSettings",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Vi(Gi,e,Xi).call(e,...n)})),this.addHook("beforeCreateRow",((e,t,n)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_row",e,t,null,n))),this.addHook("beforeCreateCol",((e,t,n)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_col",e,t,null,n))),this.addHook("beforeRemoveRow",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.endpoints.resetSetupBeforeStructureAlteration("remove_row",...n)})),this.addHook("beforeRemoveCol",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.endpoints.resetSetupBeforeStructureAlteration("remove_col",...n)})),this.addHook("afterCreateRow",((e,t,n)=>this.endpoints.resetSetupAfterStructureAlteration("insert_row",e,t,null,n))),this.addHook("afterCreateCol",((e,t,n)=>this.endpoints.resetSetupAfterStructureAlteration("insert_col",e,t,null,n))),this.addHook("afterRemoveRow",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.endpoints.resetSetupAfterStructureAlteration("remove_row",...n)})),this.addHook("afterRemoveCol",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.endpoints.resetSetupAfterStructureAlteration("remove_col",...n)})),this.addHook("afterRowMove",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Vi(Gi,e,Qi).call(e,...n)})),super.enablePlugin())}disablePlugin(){this.endpoints=null,this.settings=null,this.currentEndpoint=null,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.endpoints.initEndpoints(),super.updatePlugin()}calculate(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}}calculateSum(e){let t=0;return(0,s.v4)(e.ranges,(n=>{t+=this.getPartialSum(n,e.sourceColumn)})),t}getPartialSum(e,t){let n=0,o=e[1]||e[0],i=null,r=0;do{if(i=this.getCellValue(o,t),i=Wi(i)?null:i,null!==i){const e=(`${i}`.split(".")[1]||[]).length||1;e>r&&(r=e)}n+=i||0,o-=1}while(o>=e[0]);return Math.round(n*10**r)/10**r}calculateMinMax(e,t){let n=null;return(0,s.v4)(e.ranges,(o=>{const i=this.getPartialMinMax(o,e.sourceColumn,t);if(null===n&&null!==i&&(n=i),null!==i)switch(t){case"min":n=Math.min(n,i);break;case"max":n=Math.max(n,i)}})),null===n?"Not enough data":n}getPartialMinMax(e,t,n){let o,i=null,r=e[1]||e[0];do{if(o=this.getCellValue(r,t),o=Wi(o)?null:o,null===i)i=o;else if(null!==o)switch(n){case"min":i=Math.min(i,o);break;case"max":i=Math.max(i,o)}r-=1}while(r>=e[0]);return i}countEmpty(e,t){let n,o=0,i=e[1]||e[0];do{n=this.getCellValue(i,t),n=Wi(n)?null:n,null===n&&(o+=1),i-=1}while(i>=e[0]);return o}countEntries(e){let t=0;const n=e.ranges;return(0,s.v4)(n,(n=>{const o=void 0===n[1]?1:n[1]-n[0]+1,i=this.countEmpty(n,e.sourceColumn);t+=o,t-=i})),t}calculateAverage(e){return this.calculateSum(e)/this.countEntries(e)}getCellValue(e,t){const n=this.hot.toVisualRow(e),o=this.hot.toVisualColumn(t);let i=this.hot.getSourceDataAtCell(e,t),r="";if(null!==n&&null!==o&&(r=this.hot.getCellMeta(n,o).className||""),r.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof i&&(i=i.replace(/,/,".")),i=parseFloat(i)),isNaN(i)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error(bi.O`ColumnSummary plugin: cell at (${e}, ${t}) is not in a\x20
  4. numeric format. Cannot do the calculation.`);return i}}function qi(){this.endpoints.initEndpoints()}function Xi(e){void 0!==e.columns&&this.endpoints.refreshCellMetas()}function Ji(e,t){e&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(e)}function Qi(e,t){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}var Zi=n(77710);function er(e,t,n){tr(e,t),t.set(e,n)}function tr(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function nr(e,t){return e.get(ir(e,t))}function or(e,t,n){return e.set(ir(e,t),n),n}function ir(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var rr=new WeakMap,sr=new WeakMap,ar=new WeakMap,lr=new WeakSet;class cr{constructor(){var e;tr(this,e=lr),e.add(this),er(this,rr,!0),er(this,sr,null),er(this,ar,new ResizeObserver((e=>ir(lr,this,dr).call(this,e))))}setObservedElement(e){or(sr,this,e)}unobserve(){nr(ar,this).unobserve(nr(sr,this))}observe(){or(rr,this,!0),nr(ar,this).observe(nr(sr,this))}destroy(){nr(ar,this).disconnect()}}function dr(e){!nr(rr,this)&&Array.isArray(e)&&e.length?e.forEach((e=>{let{borderBoxSize:t}=e;const{inlineSize:n,blockSize:o}=t[0];this.runLocalHooks("resize",n,o)})):or(rr,this,!1)}function ur(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function hr(e,t){return e.get(pr(e,t))}function mr(e,t,n){return e.set(pr(e,t),n),n}function pr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(0,s.co)(cr,Zi.A);var fr=new WeakMap,gr=new WeakMap,br=new WeakMap,vr=new WeakMap,yr=new WeakMap,wr=new WeakMap,Cr=new WeakMap;class _r{static get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"}static get CLASS_EDITOR(){return"htComments"}static get CLASS_INPUT(){return"htCommentTextArea"}static get CLASS_CELL(){return"htCommentCell"}constructor(e,t){var n=this;ur(this,fr,void 0),ur(this,gr,!1),ur(this,br,null),ur(this,vr,void 0),ur(this,yr,void 0),ur(this,wr,!0),ur(this,Cr,new cr),mr(fr,this,e),mr(gr,this,t),mr(vr,this,this.createEditor()),mr(yr,this,hr(vr,this).style),hr(Cr,this).setObservedElement(this.getInputElement()),hr(Cr,this).addLocalHook("resize",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.runLocalHooks("resize",...t)})),this.hide()}setPosition(e,t){hr(yr,this).left=`${e}px`,hr(yr,this).top=`${t}px`}setSize(e,t){if(e&&t){const n=this.getInputElement();n.style.width=`${e}px`,n.style.height=`${t}px`}}getSize(){return{width:(0,i.Gq)(this.getInputElement()),height:(0,i.DK)(this.getInputElement())}}observeSize(){hr(Cr,this).observe()}resetSize(){const e=this.getInputElement();e.style.width="",e.style.height=""}setReadOnlyState(e){this.getInputElement().readOnly=e}show(){hr(yr,this).display="block",mr(wr,this,!1)}hide(){hr(Cr,this).unobserve(),hr(wr,this)||(hr(yr,this).display="none"),mr(wr,this,!0)}isVisible(){return"block"===hr(yr,this).display}setValue(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=e}getValue(){return this.getInputElement().value}isFocused(){return hr(fr,this).activeElement===this.getInputElement()}focus(){this.getInputElement().focus()}createEditor(){const e=hr(fr,this).createElement("div"),t=hr(fr,this).createElement("textarea");return e.style.display="none",mr(br,this,hr(fr,this).createElement("div")),hr(br,this).setAttribute("dir",hr(gr,this)?"rtl":"ltr"),(0,i.iQ)(hr(br,this),_r.CLASS_EDITOR_CONTAINER),hr(fr,this).body.appendChild(hr(br,this)),(0,i.iQ)(e,_r.CLASS_EDITOR),(0,i.iQ)(t,_r.CLASS_INPUT),t.setAttribute("data-hot-input",!0),e.appendChild(t),hr(br,this).appendChild(e),e}getInputElement(){return hr(vr,this).querySelector(`.${_r.CLASS_INPUT}`)}getEditorElement(){return hr(vr,this)}destroy(){const e=hr(br,this)?hr(br,this).parentNode:null;hr(vr,this).parentNode.removeChild(hr(vr,this)),mr(vr,this,null),mr(yr,this,null),hr(Cr,this).destroy(),e&&e.removeChild(hr(br,this))}}(0,s.co)(_r,Zi.A);const Sr=_r;function Mr(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Er{constructor(e){Mr(this,"wasLastActionShow",!0),Mr(this,"showDebounced",null),Mr(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout((()=>{!1===this.wasLastActionShow&&this.runLocalHooks("hide")}),250)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,g.sg)((e=>{this.wasLastActionShow&&this.runLocalHooks("show",e.from.row,e.from.col)}),e)}destroy(){this.clearLocalHooks()}}(0,s.co)(Er,Zi.A);const xr=Er,kr="---------";function Tr(e,t){const n={};return(0,d.z0)(e,(e=>{e.forAll(((e,o)=>{e>=0&&o>=0&&(n[e]||(n[e]=[]),n[e][o]=t(e,o))}))})),n}function Rr(e,t,n,o,i){(0,d.z0)(e,(e=>{e.forAll(((e,r)=>{e>=0&&r>=0&&function(e,t,n,o,i,r){const s=i(e,t);let a=o;s.className&&(a="vertical"===n?function(e,t){return-1!==e.indexOf(t)?e:`${e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","")} ${t}`}(s.className,o):function(e,t){return-1!==e.indexOf(t)?e:`${e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","")} ${t}`}(s.className,o)),r(e,t,"className",a)}(e,r,t,n,o,i)}))}))}function Ar(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`}function Lr(e,t){let n=!1;return Array.isArray(e)&&(0,d.z0)(e,(e=>(e.forAll(((e,o)=>{if(e>=0&&o>=0&&t(e,o))return n=!0,!1})),n))),n}function Or(e,t){const n={top:0,left:0};if(t!==e.ownerDocument){const{frameElement:e}=t.defaultView,{top:o,left:i}=e.getBoundingClientRect();n.top=o,n.left=i}return n}function Dr(e,t,n){Hr(e,t),t.set(e,n)}function Hr(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ir(e,t,n){return e.set(Nr(e,t),n),n}function Pr(e,t){return e.get(Nr(e,t))}function Nr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const Fr="comments",zr="comment",jr="value",Yr="style",$r="readOnly",Br=Fr,Wr=`plugin:${Fr}`;var Vr=new WeakMap,Ur=new WeakMap,Gr=new WeakMap,Kr=new WeakMap,qr=new WeakMap,Xr=new WeakMap,Jr=new WeakSet;class Qr extends dn{constructor(){var e;super(...arguments),Hr(this,e=Jr),e.add(this),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"range",{}),Dr(this,Vr,null),Dr(this,Ur,null),Dr(this,Gr,!1),Dr(this,Kr,!1),Dr(this,qr,null),Dr(this,Xr,"")}static get PLUGIN_KEY(){return Fr}static get PLUGIN_PRIORITY(){return 60}static get DEFAULT_SETTINGS(){return{displayDelay:250}}isEnabled(){return!!this.hot.getSettings()[Fr]}enablePlugin(){var e=this;this.enabled||(Pr(Vr,this)||(Ir(Vr,this,new Sr(this.hot.rootDocument,this.hot.isRtl())),Pr(Vr,this).addLocalHook("resize",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Nr(Jr,e,ss).call(e,...n)}))),Pr(Ur,this)||Ir(Ur,this,new xr(this.getSetting("displayDelay"))),this.addHook("afterContextMenuDefaultOptions",(e=>this.addToContextMenu(e))),this.addHook("afterRenderer",((e,t,n,o,i,r)=>Nr(Jr,this,os).call(this,e,r))),this.addHook("afterScroll",(()=>Nr(Jr,this,ls).call(this))),this.addHook("afterBeginEditing",(()=>this.hide())),this.addHook("afterDocumentKeyDown",(e=>Nr(Jr,this,as).call(this,e))),this.addHook("beforeCompositionStart",(e=>Nr(Jr,this,as).call(this,e))),this.addHook("afterSetTheme",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Nr(Jr,e,cs).call(e,...n)})),Pr(Ur,this).addLocalHook("hide",(()=>this.hide())),Pr(Ur,this).addLocalHook("show",((e,t)=>this.showAtCell(e,t))),this.registerShortcuts(),this.registerListeners(),super.enablePlugin())}updatePlugin(){Pr(Ur,this).updateDelay(this.getSetting("displayDelay")),super.updatePlugin()}disablePlugin(){this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=this.hot.getShortcutManager(),t=e.getContext("grid"),n=e.addContext(Wr);t.addShortcut({keys:[["Control","Alt","M"]],callback:()=>{const t=this.hot.getSelectedRangeLast();Ir(Kr,this,!0),this.hot.scrollToFocusedCell((()=>{this.setRange(t),this.show(),this.focusEditor(),e.setActiveContextName(Wr),this.hot._registerTimeout((()=>{Ir(Kr,this,!1)}))}))},stopPropagation:!0,runOnlyIf:()=>{var e;return null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight.isCell()},group:Br}),n.addShortcut({keys:[["Escape"]],callback:()=>{Pr(Vr,this).setValue(Pr(Xr,this)),this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>Pr(Vr,this).isVisible()&&Pr(Vr,this).isFocused(),group:Br}),n.addShortcut({keys:[["Control/Meta","Enter"]],callback:()=>{this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>Pr(Vr,this).isVisible()&&Pr(Vr,this).isFocused(),group:Br}),n.addShortcut({keys:[["Shift","Tab"],["Tab"]],forwardToContext:e.getContext("grid"),callback:()=>{Pr(Vr,this).setValue(Pr(Vr,this).getValue()),this.hide(),e.setActiveContextName("grid")},group:Br})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(Br)}registerListeners(){const{rootDocument:e}=this.hot,t=this.getEditorInputElement();this.eventManager.addEventListener(e,"mouseover",(e=>Nr(Jr,this,ts).call(this,e))),this.eventManager.addEventListener(e,"mousedown",(e=>Nr(Jr,this,Zr).call(this,e))),this.eventManager.addEventListener(e,"mouseup",(()=>Nr(Jr,this,ns).call(this))),this.eventManager.addEventListener(t,"focus",(()=>Nr(Jr,this,rs).call(this))),this.eventManager.addEventListener(t,"blur",(()=>Nr(Jr,this,is).call(this))),this.eventManager.addEventListener(this.getEditorInputElement(),"mousedown",(e=>Nr(Jr,this,es).call(this,e)))}setRange(e){this.range=e}clearRange(){this.range={}}targetIsCellWithComment(e){const t=(0,i.kp)(e.target,"TD","TBODY");return!!(t&&(0,i.nB)(t,"htCommentCell")&&(0,i.kp)(t,[this.hot.rootElement]))}targetIsCommentTextArea(e){return this.getEditorInputElement()===e.target}setComment(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const t=Pr(Vr,this).getValue();let n="";null!=e?n=e:null!=t&&(n=t);const o=this.range.from.row,i=this.range.from.col;this.updateCommentMeta(o,i,{[jr]:n}),this.hot.render()}setCommentAtCell(e,t,n){this.setRange({from:this.hot._createCellCoords(e,t)}),this.setComment(n)}removeComment(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.setCellMeta(this.range.from.row,this.range.from.col,zr),e&&this.hot.render(),this.hide()}removeCommentAtCell(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(e,t)}),this.removeComment(n)}getComment(){const e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,jr)}getCommentAtCell(e,t){return this.getCommentMeta(e,t,jr)}show(){var e;if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{from:{row:t,col:n}}=this.range;if(t<0||t>this.hot.countSourceRows()-1||n<0||n>this.hot.countSourceCols()-1)return!1;const o=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return Pr(Ur,this).cancelHiding(),Pr(Vr,this).setValue(null!==(e=o[zr]?o[zr][jr]:null)&&void 0!==e?e:""),Pr(Vr,this).show(),this.refreshEditor(!0),!0}showAtCell(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}hide(){Pr(Vr,this).hide()}refreshEditor(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&Pr(Vr,this).isVisible()))return;const{rowIndexMapper:e,columnIndexMapper:t}=this.hot,{row:n,col:o}=this.range.from;let r=e.getRenderableFromVisualIndex(n),s=t.getRenderableFromVisualIndex(o);const a=null===r;Pr(Vr,this).setPosition(0,0),null===r&&(r=e.getRenderableFromVisualIndex(e.getNearestNotHiddenIndex(n,-1))),null===s&&(s=t.getRenderableFromVisualIndex(t.getNearestNotHiddenIndex(o,-1)));const l=null===r,c=null===s;r=null!=r?r:0,s=null!=s?s:0;const{rootWindow:d,view:{_wt:u}}=this.hot,{wtTable:h}=u,m=u.getCell({row:r,col:s},!0),p=this.getCommentMeta(n,o,Yr);p?Pr(Vr,this).setSize(p.width,p.height):Pr(Vr,this).resetSize();const f=c?0:h.getColumnWidth(s),g=a&&!l?(0,i.DK)(m):0,{left:b,top:v,width:y,height:w}=m.getBoundingClientRect(),{width:C,height:_}=Pr(Vr,this).getSize(),{innerWidth:S,innerHeight:M}=this.hot.rootWindow,E=this.hot.rootDocument.documentElement,x=(0,i.XJ)(this.hot.rootDocument),k=(0,i.D1)(this.hot.rootWindow)?x:0,T=(0,i.zO)(this.hot.rootWindow)?x:0;let R=b+d.scrollX+f,A=v+d.scrollY+g;this.hot.isRtl()&&(R-=C+f),this.hot.isLtr()&&b+y+C>S-k?R=b+d.scrollX-C-1:this.hot.isRtl()&&R<-(E.scrollWidth-E.clientWidth)&&(R=b+d.scrollX+f+1),v+_>M-T&&(A-=_-w+1),Pr(Vr,this).setPosition(R,A),Pr(Vr,this).setReadOnlyState(this.getCommentMeta(n,o,$r)),Pr(Vr,this).observeSize()}focusEditor(){Pr(Vr,this).focus()}updateCommentMeta(e,t,n){const o=this.hot.getCellMeta(e,t)[zr];let i;o?(i=(0,s.Go)(o),(0,s.zw)(i,n)):i=n,this.hot.setCellMeta(e,t,zr,i)}getCommentMeta(e,t,n){const o=this.hot.getCellMeta(e,t);if(o[zr])return o[zr][n]}addToContextMenu(e){var t;e.items.push({name:kr},(t=this,{key:"commentsAddEdit",name(){var e;const n=null===(e=this.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return null!=n&&n.isCell()&&t.getCommentAtCell(n.row,n.col)?this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_EDIT_COMMENT):this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback(){const e=this.getSelectedRangeLast();t.setRange(e),t.show(),t.focusEditor()},disabled(){const e=this.getSelectedRangeLast();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}),function(e){return{key:"commentsRemove",name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback(){this.getSelectedRangeLast().forAll(((t,n)=>{t>=0&&n>=0&&e.removeCommentAtCell(t,n,!1)})),this.render()},disabled(){const e=this.getSelectedRangeLast();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}}(this),function(e){return{key:"commentsReadOnly",name(){const t=this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return Lr(this.getSelectedRange(),((t,n)=>e.getCommentMeta(t,n,$r)))?Ar(t):t},callback(){this.getSelectedRangeLast().forAll(((t,n)=>{if(t>=0&&n>=0){const o=!!e.getCommentMeta(t,n,$r);e.updateCommentMeta(t,n,{[$r]:!o})}}))},disabled(){const t=this.getSelectedRangeLast();return!!(!t||t.highlight.isHeader()||!e.getCommentAtCell(t.highlight.row,t.highlight.col)||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}}(this))}getEditorInputElement(){return Pr(Vr,this).getInputElement()}destroy(){var e,t;null===(e=Pr(Vr,this))||void 0===e||e.destroy(),null===(t=Pr(Ur,this))||void 0===t||t.destroy(),super.destroy()}}function Zr(e){if(this.hot.view&&this.hot.view._wt&&!Pr(Gr,this)&&!this.targetIsCommentTextArea(e)){const t=(0,i.kp)(e.target,"TD","TBODY");let n=null;t&&(n=this.hot.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}}function es(e){e.stopPropagation()}function ts(e){const{rootDocument:t}=this.hot;if(!(Pr(Gr,this)||Pr(Vr,this).isFocused()||(0,i.nB)(e.target,"wtBorder")||Pr(qr,this)===e.target)&&Pr(Vr,this))if(Ir(qr,this,t.elementFromPoint(e.clientX,e.clientY)),this.targetIsCellWithComment(e)){const t=this.hot._createCellRange(this.hot.getCoords(e.target));Pr(Ur,this).show(t)}else(0,i.aO)(e.target,t)&&!this.targetIsCommentTextArea(e)&&Pr(Ur,this).hide()}function ns(){Ir(Gr,this,!1)}function os(e,t){t[zr]&&t[zr][jr]&&(0,i.iQ)(e,t.commentedCellClassName)}function is(){Ir(Xr,this,""),this.hot.getShortcutManager().setActiveContextName("grid"),this.setComment()}function rs(){Ir(Xr,this,this.getComment()),this.hot.listen(),this.hot.getShortcutManager().setActiveContextName(Wr)}function ss(e,t){this.updateCommentMeta(this.range.from.row,this.range.from.col,{[Yr]:{width:e,height:t}})}function as(e){Pr(Vr,this).isFocused()&&(0,r.CA)(e)}function ls(){Pr(Kr,this)||this.hide()}function cs(){const e=Pr(Vr,this).getEditorElement();(0,i.vy)(e,/ht-theme-.*/g),(0,i.iQ)(e,this.hot.getCurrentThemeName())}function ds(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(13609);class us{constructor(e){ds(this,"hot",void 0),ds(this,"commands",{}),ds(this,"commonCallback",null),this.hot=e}registerCommand(e,t){this.commands[e]=t}setCommonCallback(e){this.commonCallback=e}execute(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const i=e.split(":"),r=i[0],a=2===i.length?i[1]:null;let l=this.commands[r];if(!l)throw new Error(`Menu command '${r}' not exists.`);if(a&&l.submenu&&(l=function(e,t){let n;return(0,d.z0)(t,(t=>{const o=t.key?t.key.split(":"):null;if(Array.isArray(o)&&o[1]===e)return n=t,!1})),n}(a,l.submenu.items)),!0===l.disabled)return;if("function"==typeof l.disabled&&!0===l.disabled.call(this.hot))return;if((0,s.mQ)(l,"submenu"))return;const c=[];"function"==typeof l.callback&&c.push(l.callback),"function"==typeof this.commonCallback&&c.push(this.commonCallback),n.unshift(i.join(":")),(0,d.z0)(c,(e=>e.apply(this.hot,n)))}}const hs="alignment",ms="clear_column",ps="col_left",fs="col_right",gs="make_read_only",bs="redo";var vs=n(76396);const ys="remove_col",ws="remove_row",Cs="row_above",_s="row_below",Ss="no_items",Ms="undo",Es=[Cs,_s,ps,fs,ms,ws,ys,Ms,bs,gs,hs,kr,Ss],xs={[kr]:function(){return{name:kr}},[Ss]:function(){return{key:Ss,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_NO_ITEMS)},disabled:!0,isCommand:!1}},[Cs]:function(){return{key:Cs,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback(){const e=this.getSelectedRangeLast().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled(){const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)||!!this.selection.isSelectedByCorner()&&0===this.countRows()},hidden(){return!this.getSettings().allowInsertRow}}},[_s]:function(){return{key:_s,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_ROW_BELOW)},callback(){const e=this.getSelectedRangeLast().getBottomRightCorner();this.alter("insert_row_below",e.row,1,"ContextMenu.rowBelow")},disabled(){const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)},hidden(){return!this.getSettings().allowInsertRow}}},[ps]:function(){return{key:ps,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback(){const e=this.getSelectedRangeLast().getTopLeftCorner(),t=this.isRtl()?"insert_col_end":"insert_col_start";this.alter(t,e.col,1,"ContextMenu.columnLeft")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)||!!this.selection.isSelectedByCorner()&&0===this.countCols()},hidden(){return!this.getSettings().allowInsertColumn}}},[fs]:function(){return{key:fs,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback(){const e=this.getSelectedRangeLast().getTopRightCorner(),t=this.isRtl()?"insert_col_start":"insert_col_end";this.alter(t,e.col,1,"ContextMenu.columnRight")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)},hidden(){return!this.getSettings().allowInsertColumn}}},[ms]:function(){return{key:ms,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback(e,t){const n=t[0].start.col,o=t[0].end.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t[0].start.row,t[0].end.row),o,"ContextMenu.clearColumn")},disabled(){const e=this.getSelectedRangeLast();if(!e||e.isSingleHeader()&&e.highlight.col<0||!this.selection.isSelectedByColumnHeader())return!0;let t=!1;return e.forAll(((e,n)=>{if(e<0||n<0)return!0;const{readOnly:o}=this.getCellMeta(e,n);return!!o||(t=!0,!1)})),!t}}},[ws]:function(){return{key:ws,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[n,,o]=e[0];n-o!==0&&(t=1)}return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_REMOVE_ROW,t)},callback(){this.alter("remove_row",(0,vs.f7)(this),1,"ContextMenu.removeRow")},disabled(){const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.row<0)return!0;const t=this.countRows();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByColumnHeader()||0===t},hidden(){return!this.getSettings().allowRemoveRow}}},[ys]:function(){return{key:ys,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,n,,o]=e[0];n-o!==0&&(t=1)}return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,vs.NB)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}},[Ms]:function(){return{key:Ms,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_UNDO)},callback(){this.getPlugin("undoRedo").undo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isUndoAvailable()}}},[bs]:function(){return{key:bs,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_REDO)},callback(){this.getPlugin("undoRedo").redo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isRedoAvailable()}}},[gs]:function(){return{key:gs,checkable:!0,ariaChecked(){return Lr(this.getSelectedRange(),((e,t)=>this.getCellMeta(e,t).readOnly))},ariaLabel(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_READ_ONLY);return Lr(this.getSelectedRange(),((e,t)=>this.getCellMeta(e,t).readOnly))&&(e=Ar(e)),e},callback(){const e=this.getSelectedRange(),t=Lr(e,((e,t)=>this.getCellMeta(e,t).readOnly));(0,d.z0)(e,(e=>{e.forAll(((e,n)=>{e>=0&&n>=0&&this.setCellMeta(e,n,"readOnly",!t)}))})),this.render()},disabled(){const e=this.getSelectedRangeLast();return!(e&&!e.isSingleHeader()&&!this.selection.isSelectedByCorner()&&0!==this.countRows()&&0!==this.countCols()&&this.getSelectedRange()&&0!==this.getSelectedRange().length)}}},[hs]:function(){return{key:hs,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();return!e||!!e.isSingleHeader()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())},submenu:{items:[{key:`${hs}:left`,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT)},callback(){const e=this.getSelectedRange(),t=Tr(e,((e,t)=>this.getCellMeta(e,t).className)),n="horizontal",o="htLeft";this.runHooks("beforeCellAlignment",t,e,n,o),Rr(e,n,o,((e,t)=>this.getCellMeta(e,t)),((e,t,n,o)=>this.setCellMeta(e,t,n,o))),this.render()},disabled:!1},{key:`${hs}:center`,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER)},callback(){const e=this.getSelectedRange(),t=Tr(e,((e,t)=>this.getCellMeta(e,t).className)),n="horizontal",o="htCenter";this.runHooks("beforeCellAlignment",t,e,n,o),Rr(e,n,o,((e,t)=>this.getCellMeta(e,t)),((e,t,n,o)=>this.setCellMeta(e,t,n,o))),this.render()},disabled:!1},{key:`${hs}:right`,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT)},callback(){const e=this.getSelectedRange(),t=Tr(e,((e,t)=>this.getCellMeta(e,t).className)),n="horizontal",o="htRight";this.runHooks("beforeCellAlignment",t,e,n,o),Rr(e,n,o,((e,t)=>this.getCellMeta(e,t)),((e,t,n,o)=>this.setCellMeta(e,t,n,o))),this.render()},disabled:!1},{key:`${hs}:justify`,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY)},callback(){const e=this.getSelectedRange(),t=Tr(e,((e,t)=>this.getCellMeta(e,t).className)),n="horizontal",o="htJustify";this.runHooks("beforeCellAlignment",t,e,n,o),Rr(e,n,o,((e,t)=>this.getCellMeta(e,t)),((e,t,n,o)=>this.setCellMeta(e,t,n,o))),this.render()},disabled:!1},{name:kr},{key:`${hs}:top`,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_ALIGNMENT_TOP)},callback(){const e=this.getSelectedRange(),t=Tr(e,((e,t)=>this.getCellMeta(e,t).className)),n="vertical",o="htTop";this.runHooks("beforeCellAlignment",t,e,n,o),Rr(e,n,o,((e,t)=>this.getCellMeta(e,t)),((e,t,n,o)=>this.setCellMeta(e,t,n,o))),this.render()},disabled:!1},{key:`${hs}:middle`,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE)},callback(){const e=this.getSelectedRange(),t=Tr(e,((e,t)=>this.getCellMeta(e,t).className)),n="vertical",o="htMiddle";this.runHooks("beforeCellAlignment",t,e,n,o),Rr(e,n,o,((e,t)=>this.getCellMeta(e,t)),((e,t,n,o)=>this.setCellMeta(e,t,n,o))),this.render()},disabled:!1},{key:`${hs}:bottom`,name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM)},callback(){const e=this.getSelectedRange(),t=Tr(e,((e,t)=>this.getCellMeta(e,t).className)),n="vertical",o="htBottom";this.runHooks("beforeCellAlignment",t,e,n,o),Rr(e,n,o,((e,t)=>this.getCellMeta(e,t)),((e,t,n,o)=>this.setCellMeta(e,t,n,o))),this.render()},disabled:!1}]}}}};function ks(){const e={};return(0,s.v4)(xs,((t,n)=>{e[n]=t()})),e}function Ts(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Rs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ts(this,"hot",void 0),Ts(this,"predefinedItems",ks()),Ts(this,"defaultOrderPattern",void 0),this.hot=e,this.defaultOrderPattern=t}setPredefinedItems(e){const t={};this.defaultOrderPattern.length=0,(0,s.v4)(e,((e,n)=>{let o="";e.name===kr?(t[kr]=e,o=kr):isNaN(parseInt(n,10))?(e.key=void 0===e.key?n:e.key,t[n]=e,o=e.key):(t[e.key]=e,o=e.key),this.defaultOrderPattern.push(o)})),this.predefinedItems=t}getItems(){return function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=[];let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return o&&o.items?o=o.items:Array.isArray(o)||(o=e),(0,s.Gv)(o)?(0,s.v4)(o,((e,o)=>{let i=t["string"==typeof e?e:o];i||(i=e),(0,s.Gv)(e)?(0,s.X$)(i,e):"string"==typeof i&&(i={name:i}),void 0===i.key&&(i.key=o),n.push(i)})):(0,d.z0)(o,((e,o)=>{let i=t[e];!i&&Es.indexOf(e)>=0||(i||(i={name:e,key:`${o}`}),(0,s.Gv)(e)&&(0,s.X$)(i,e),void 0===i.key&&(i.key=o),n.push(i))})),n}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}function As(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ls{constructor(e,t){As(this,"top",void 0),As(this,"topRelative",void 0),As(this,"left",void 0),As(this,"leftRelative",void 0),As(this,"scrollTop",void 0),As(this,"scrollLeft",void 0),As(this,"cellHeight",void 0),As(this,"cellWidth",void 0);const n=t.scrollY,o=t.scrollX;let i,r,s,a,l,c;this.rootWindow=t,this.type=this.getSourceType(e),"literal"===this.type?(i=parseInt(e.top,10),s=parseInt(e.left,10),l=e.height||0,c=e.width||0,r=i,a=s,i+=n,s+=o):"event"===this.type&&(i=parseInt(e.pageY,10),s=parseInt(e.pageX,10),l=e.target.clientHeight,c=e.target.clientWidth,r=i-n,a=s-o),this.top=i,this.topRelative=r,this.left=s,this.leftRelative=a,this.scrollTop=n,this.scrollLeft=o,this.cellHeight=l,this.cellWidth=c}getSourceType(e){let t="literal";return e instanceof Event&&(t="event"),t}fitsAbove(e){return this.topRelative>=e.offsetHeight}fitsBelow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}fitsOnRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}fitsOnLeft(e){return this.leftRelative>=e.offsetWidth}}function Os(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Ds(e,t){return e.get(Is(e,t))}function Hs(e,t,n){return e.set(Is(e,t),n),n}function Is(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Ps=new WeakMap,Ns=new WeakMap,Fs=new WeakMap,zs=new WeakMap,js=new WeakMap;class Ys{constructor(e){Os(this,Ps,void 0),Os(this,Ns,void 0),Os(this,Fs,void 0),Os(this,zs,!1),Os(this,js,{above:0,below:0,left:0,right:0}),Hs(zs,this,e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ds(js,this)[e]=t,this}setElement(e){return Hs(Ps,this,e),this}setParentElement(e){return Hs(Ns,this,e),this}updatePosition(e){Hs(Fs,this,new Ls(e,Ds(Ps,this).ownerDocument.defaultView)),Ds(zs,this)?(Ds(Fs,this).fitsBelow(Ds(Ps,this))?this.setPositionBelowCursor():Ds(Fs,this).fitsAbove(Ds(Ps,this))?this.setPositionAboveCursor():this.setPositionBelowCursor(),this.updateHorizontalPosition()):(this.setPositionBelowCursor(),this.setPositionOnRightOfCursor())}updateHorizontalPosition(){"rtl"===Ds(Ps,this).dir?Ds(Fs,this).fitsOnLeft(Ds(Ps,this))?this.setPositionOnLeftOfCursor():this.setPositionOnRightOfCursor():Ds(Fs,this).fitsOnRight(Ds(Ps,this))?this.setPositionOnRightOfCursor():this.setPositionOnLeftOfCursor()}setPositionAboveCursor(){let e=Ds(js,this).above+Ds(Fs,this).top-Ds(Ps,this).offsetHeight;if(Ds(Ns,this)){const t=Ds(Ns,this).ownerDocument.defaultView.getComputedStyle(Ds(Ns,this).querySelector(".ht_master")),n=Number.parseInt(t.paddingTop,10),o=Number.parseInt(t.borderTop,10);e=Ds(Fs,this).top+Ds(Fs,this).cellHeight-Ds(Ps,this).scrollHeight+n+o}Ds(Ps,this).style.top=`${e}px`}setPositionBelowCursor(){let e=Ds(js,this).below+Ds(Fs,this).top+1;if(Ds(Ns,this)){const t=Ds(Ns,this).ownerDocument.defaultView.getComputedStyle(Ds(Ns,this).querySelector(".ht_master")),n=Number.parseInt(t.paddingTop,10),o=Number.parseInt(t.borderTop,10);e=Ds(Fs,this).top-n-o-1}Ds(Ps,this).style.top=`${e}px`}setPositionOnRightOfCursor(){let e=Ds(Fs,this).left;if(Ds(Ns,this)){const t=Ds(Ns,this).ownerDocument.defaultView,n=Number.parseInt(t.getComputedStyle(Ds(Ns,this).querySelector(".htCore")).borderRightWidth,10);e+=Ds(Fs,this).cellWidth+n}else e+=Ds(js,this).right;Ds(Ps,this).style.left=`${e}px`}setPositionOnLeftOfCursor(){let e=Ds(js,this).left+Ds(Fs,this).left-Ds(Ps,this).offsetWidth;if(Ds(Ns,this)){const t=Ds(Ns,this).ownerDocument.defaultView;e-=Number.parseInt(t.getComputedStyle(Ds(Ns,this).querySelector(".htCore")).borderLeftWidth,10)}Ds(Ps,this).style.left=`${e}px`}}function $s(e){let{initialPage:t=-1,size:n=()=>0,onItemSelect:o=()=>{},onClear:i=()=>{}}=e;const r=new Set;let s=(0,Et.qE)(t,-1,l()-1);function a(e,t){const n=l()-1;return e<0&&(e=n),e>n&&(e=0),r.has(e)?-1:(r.add(e),!1===o(e,!1)&&(e=a(1===t?++e:--e,t)),e)}function l(){return Math.max(n(),0)}return{setCurrentPage:function(e){e>-1&&e<l()&&!1!==o(e,!0)&&(s=e)},getCurrentPage:function(){return s},toFirstItem:function(){l()>0&&(r.clear(),s=a(0,1))},toLastItem:function(){l()>0&&(r.clear(),s=a(l()-1,-1))},toNextItem:function(){l()>0&&(r.clear(),s=a(++s,1))},toPreviousItem:function(){l()>0&&(r.clear(),s=a(--s,-1))},getSize:l,clear:function(){r.clear(),s=t,i()}}}function Bs(e){return(0,s.mQ)(e,"submenu")}function Ws(e){return new RegExp(kr,"i").test(e.name)}function Vs(e,t){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(t)}function Us(e){return(0,s.mQ)(e,"disableSelection")}function Gs(e,t){const n=e.slice(0);for(let e=0;e<n.length&&n[e].name===t;)n.shift();return n}const Ks="menu",qs=Ks;function Xs(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Js(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qs(e,t,n){return e.set(ea(e,t),n),n}function Zs(e,t){return e.get(ea(e,t))}function ea(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var ta=new WeakMap,na=new WeakMap,oa=new WeakMap;class ia{get tableBorderWidth(){return void 0===Zs(oa,this)&&this.hotMenu&&Qs(oa,this,parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth,10)),Zs(oa,this)}constructor(e,t){var n=this;Js(this,"hot",void 0),Js(this,"options",void 0),Js(this,"eventManager",new we.A(this)),Js(this,"container",void 0),Js(this,"positioner",void 0),Js(this,"hotMenu",null),Js(this,"hotSubMenus",{}),Js(this,"parentMenu",void 0),Js(this,"menuItems",null),Js(this,"origOutsideClickDeselects",null),Xs(this,ta,void 0),Xs(this,na,void 0),Xs(this,oa,void 0),this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootDocument.documentElement},this.container=this.createContainer(this.options.name),this.positioner=new Ys(this.options.keepInViewport),this.parentMenu=this.options.parent||null,this.registerEvents(),this.isSubMenu()&&this.addLocalHook("afterSelectionChange",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.parentMenu.runLocalHooks("afterSelectionChange",...t)})),this.hot.addHook("afterSetTheme",((e,t)=>{var n;t||null===(n=this.hotMenu)||void 0===n||n.useTheme(e)}))}registerEvents(){let e=this.hot.rootWindow;for(;e;)this.eventManager.addEventListener(e.document,"mousedown",(e=>this.onDocumentMouseDown(e))),this.eventManager.addEventListener(e.document,"touchstart",(e=>this.onDocumentMouseDown(e))),this.eventManager.addEventListener(e.document,"contextmenu",(e=>this.onDocumentContextMenu(e))),e=(0,i.Ly)(e)}setMenuItems(e){this.menuItems=e}getNavigator(){return Zs(ta,this)}getKeyboardShortcutsCtrl(){return Zs(na,this)}getSelectedItem(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedLast())}isSubMenu(){return null!==this.parentMenu}open(){this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";const e=(0,g.sg)((e=>this.openSubMenu(e)),300),t=this.options.minWidth||215;let n=!1,o=(0,d.y0)(this.menuItems,(e=>(e.key===Ss&&(n=!0),function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}(e,this.hot))));if(o.length<1&&!n)o.push(ks()[Ss]);else if(0===o.length)return;o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kr,n=e.slice(0);return n=Gs(n,t),n=function(e,t){let n=e.slice(0);return n.reverse(),n=Gs(n,t),n.reverse(),n}(n,t),n=function(e){const t=[];return(0,d.z0)(e,((e,n)=>{n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)})),t}(n),n}(o,kr);let s=!1;const a={data:o,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:e=>(0,u.O9)(e)&&e<t?t:e,autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,hiddenRows:!0,maxCols:1,columns:[{data:"name",renderer:(l=this.hot,(e,t,n,o,r,s)=>{const a=e.getSourceDataAtRow(n),c=l.rootDocument.createElement("div"),d="function"==typeof s?s.call(l):s,u="function"==typeof a.ariaLabel?a.ariaLabel.call(l):a.ariaLabel,h="function"==typeof a.ariaChecked?a.ariaChecked.call(l):a.ariaChecked;if((0,i.Ie)(t),(0,i.iQ)(c,"htItemWrapper"),l.getSettings().ariaTags){const e=!Vs(a,l)&&!Us(a)&&!Ws(a);(0,i.Bq)(t,[...(m=a,!0===m.checkable?[(0,f.pt)(),(0,f.SM)(u),(0,f.Xq)(h)]:[(0,f.ZA)(),(0,f.SM)(d)]),...e?[(0,f.vC)(-1)]:[],...Vs(a,l)?[(0,f._R)()]:[],...Bs(a)?[(0,f.dV)(!1)]:[]])}var m;t.className="",t.appendChild(c),Ws(a)?(0,i.iQ)(t,"htSeparator"):"function"==typeof a.renderer?((0,i.iQ)(t,"htCustomMenuRenderer"),t.appendChild(a.renderer(e,c,n,o,r,d))):(0,i.Mv)(c,d),Vs(a,l)?(0,i.iQ)(t,"htDisabled"):Us(a)?(0,i.iQ)(t,"htSelectionDisabled"):Bs(a)&&(0,i.iQ)(t,"htSubmenu")})}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",ariaTags:!1,themeName:this.hot.getCurrentThemeName(),beforeRefreshDimensions:()=>!1,beforeOnCellMouseOver:(e,t)=>{Zs(ta,this).setCurrentPage(t.row)},afterOnCellMouseOver:(t,n)=>{this.isAllSubMenusClosed()?e(n.row):this.openSubMenu(n.row)},afterOnCellContextMenu:e=>{e.preventDefault(),(0,te.Yh)()&&s&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,n,o,i)=>{this.hotMenu.view.isMouseDown()&&(i.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(s=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,te.Yh)()&&(0,r.nO)(e)||!s||!this.hasSelectedItem()||((0,te.rr)()||(0,te.zG)()?this.hot._registerTimeout((()=>this.close(!0)),325):this.close(!0))},afterUnlisten:()=>{!this.hasSelectedItem()&&this.isOpened()&&this.hotMenu.listen()}};var l,c;this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new this.hot.constructor(this.container,a),this.hotMenu.addHook("afterInit",(()=>this.onAfterInit())),this.hotMenu.init(),Qs(ta,this,(c=this.hotMenu,$s({size:()=>c.countRows(),onItemSelect(e,t){const n=c.getCell(e,0);if(!n||function(e){return(0,i.nB)(e,"htSeparator")}(n)||function(e){return(0,i.nB)(e,"htDisabled")}(n)||function(e){return(0,i.nB)(e,"htSelectionDisabled")}(n))return!1;c.selectCell(e,0,...t?[e,0,!1,!1]:[])},onClear(){c.deselectCell()}}))),Qs(na,this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=[];function o(e,t){s(t).addShortcuts(e,{group:Ks})}function i(e,t){const i=s(t);e.forEach((e=>{let{keys:t}=e;t.forEach((e=>i.removeShortcutsByKeys(e)))})),n.push({shortcuts:e,contextName:t}),o(e,t)}function r(e){return e?`${qs}:${e}`:qs}function s(t){var n;const o=e.hotMenu.getShortcutManager(),i=r(t);return null!==(n=o.getContext(i))&&void 0!==n?n:o.addContext(i)}return o(function(e){const{hot:t,hotMenu:n}=e;return[{keys:[["Control/Meta","A"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:()=>e.close(!0)},{keys:[["Tab"],["Shift","Tab"]],callback:(n,o)=>{const i=t.getSettings(),r="function"==typeof i.tabMoves?i.tabMoves(n):i.tabMoves;o.includes("shift")?t.selection.transformStart(-r.row,-r.col):t.selection.transformStart(r.row,r.col),e.close(!0)}},{keys:[["Escape"]],callback:()=>e.close()},{keys:[["ArrowDown"]],callback:()=>e.getNavigator().toNextItem()},{keys:[["ArrowUp"]],callback:()=>e.getNavigator().toPreviousItem()},{keys:[[t.isRtl()?"ArrowLeft":"ArrowRight"]],callback:()=>{const t=n.getSelectedLast();if(t){const n=e.openSubMenu(t[0]);n&&n.getNavigator().toFirstItem()}}},{keys:[[t.isRtl()?"ArrowRight":"ArrowLeft"]],callback:()=>{n.getSelectedLast()&&e.isSubMenu()&&(e.close(),e.isSubMenu()&&e.parentMenu.hotMenu.listen())}},{keys:[["Control/Meta","ArrowUp"],["Home"]],callback:()=>e.getNavigator().toFirstItem()},{keys:[["Control/Meta","ArrowDown"],["End"]],callback:()=>e.getNavigator().toLastItem()},{keys:[["Enter"],["Space"]],callback:t=>{const o=n.getSelectedLast();o&&(n.getSourceDataAtRow(o[0]).submenu?e.openSubMenu(o[0]).getNavigator().toFirstItem():(e.executeCommand(t),e.close(!0)))}},{keys:[["PageUp"]],callback:()=>{n.getSelectedLast()?n.selection.transformStart(-n.countVisibleRows(),0):e.getNavigator().toFirstItem()}},{keys:[["PageDown"]],callback:()=>{n.getSelectedLast()?n.selection.transformStart(n.countVisibleRows(),0):e.getNavigator().toLastItem()}}]}(e)),t.forEach((e=>{let{shortcuts:t,contextName:n}=e;i(t,n)})),{addCustomShortcuts:i,getCustomShortcuts:function(){return[...n]},getContext:s,listen:function(t){e.hotMenu.getShortcutManager().setActiveContextName(r(t))}}}(this)),Zs(na,this).listen(),this.focus(),this.isSubMenu()&&this.addLocalHook("afterOpen",(()=>this.parentMenu.runLocalHooks("afterSubmenuOpen",this))),this.runLocalHooks("afterOpen",this)}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isOpened())if(e&&this.isSubMenu())this.parentMenu.close();else if(Zs(ta,this).clear(),this.closeAllSubMenus(),this.container.style.display="none",this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.isSubMenu()){if(this.hot.getSettings().ariaTags){const e=this.parentMenu.hotMenu.getSelectedLast();if(e){const t=this.parentMenu.hotMenu.getCell(e[0],0);(0,i.Bq)(t,[(0,f.dV)(!1)])}}this.parentMenu.hotMenu.listen()}}openSubMenu(e){if(!this.hotMenu)return!1;const t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!function(e){return(0,i.nB)(e,"htSubmenu")}(t))return!1;const n=this.hotMenu.getSourceDataAtRow(e),o=new ia(this.hot,{parent:this,name:n.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return o.setMenuItems(n.submenu.items),o.open(),o.setPosition(t.getBoundingClientRect()),this.hotSubMenus[n.key]=o,this.hot.getSettings().ariaTags&&(0,i.Bq)(t,[(0,f.dV)(!0)]),o}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];if(n){n.destroy(),delete this.hotSubMenus[t.key];const o=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,i.Bq)(o,[(0,f.dV)(!1)])}}closeAllSubMenus(){(0,d.z0)(this.hotMenu.getData(),((e,t)=>this.closeSubMenu(t)))}isAllSubMenusClosed(){return 0===Object.keys(this.hotSubMenus).length}focus(){this.isOpened()&&(this.hotMenu.rootElement.focus({preventScroll:!0}),this.getKeyboardShortcutsCtrl().listen(),this.hotMenu.listen())}destroy(){const e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}isOpened(){return null!==this.hotMenu}executeCommand(e){if(!this.isOpened()||!this.hasSelectedItem())return;const t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),this.isCommandPassive(t))return;const n=this.hot.getSelectedRange(),o=n?function(e){return(0,d.YD)(e,(e=>({start:e.getTopStartCorner(),end:e.getBottomEndCorner()})))}(n):[];this.runLocalHooks("executeCommand",t.key,o,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,o,e)}isCommandPassive(e){return!1===e.isCommand||Ws(e)||Vs(e,this.hot)||Bs(e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.positioner.setOffset(e,t)}setPosition(e){this.isSubMenu()&&this.positioner.setParentElement(this.parentMenu.container),this.positioner.setElement(this.container).updatePosition(e)}updateMenuDimensions(){const e=this.hotMenu.view.getStylesHandler(),{wtTable:t}=this.hotMenu.view._wt,n=this.hotMenu.getSettings().data,o=t.hider.style,r=t.holder.style,s=parseInt(o.width,10),a=(0,d.mu)(n,((e,t,n)=>{const o=this.hotMenu.getCell(n,0)?(0,i.DK)(this.hotMenu.getCell(n,0)):0;return e+(t.name===kr?1:o)}),0);e.isClassicTheme()?(r.width=`${s+3}px`,r.height=`${a+3}px`):(r.width=`${s}px`,r.height=`${a}px`),o.height=r.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let n,o=e;return o&&((0,g.Tn)(o)&&(o=o.call(this.hot),o=null===o||(0,u.b0)(o)?"":o.toString()),o=o.replace(/[^A-Za-z0-9]/g,"_"),o=`${this.options.className}Sub_${o}`,n=t.querySelector(`.${this.options.className}.${o}`)),n||(n=t.createElement("div"),(0,i.iQ)(n,`htMenu handsontable ${this.options.className}`),o&&(0,i.iQ)(n,o),this.options.container.appendChild(n)),n}onAfterInit(){this.updateMenuDimensions(),this.hot.getSettings().ariaTags&&(0,i.Bq)(this.hotMenu.rootElement,[(0,f.nF)(),(0,f.vC)(-1)])}onDocumentMouseDown(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,i.aO)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,i.aO)(e.target,".htMenu")||this.close(!0))}onDocumentContextMenu(e){this.isOpened()&&(0,i.nB)(e.target,"htCore")&&(0,i.aO)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}function ra(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sa(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(0,s.co)(ia,Zi.A);const aa="contextMenu",la=aa;Se.R.getSingleton().register("afterContextMenuDefaultOptions"),Se.R.getSingleton().register("beforeContextMenuShow"),Se.R.getSingleton().register("afterContextMenuShow"),Se.R.getSingleton().register("afterContextMenuHide"),Se.R.getSingleton().register("afterContextMenuExecute");var ca=new WeakSet;class da extends dn{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=ca),t.add(e),ra(this,"commandExecutor",new us(this.hot)),ra(this,"itemsFactory",null),ra(this,"menu",null)}static get PLUGIN_KEY(){return aa}static get PLUGIN_PRIORITY(){return 70}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[Cs,_s,kr,ps,fs,kr,ws,ys,kr,Ms,bs,kr,gs,kr,hs]}isEnabled(){return!!this.hot.getSettings()[aa]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[aa];"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.menu=new ia(this.hot,{className:"htContextMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootDocument.body}),this.menu.addLocalHook("beforeOpen",(()=>sa(ca,this,ha).call(this))),this.menu.addLocalHook("afterOpen",(()=>sa(ca,this,ma).call(this))),this.menu.addLocalHook("afterClose",(()=>sa(ca,this,pa).call(this))),this.menu.addLocalHook("executeCommand",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.executeCommand.call(e,...n)})),this.addHook("afterOnCellContextMenu",(e=>sa(ca,this,ua).call(this,e))),this.registerShortcuts(),super.enablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control/Meta","Shift","Backslash"],["Shift","F10"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();this.hot.scrollToFocusedCell();const t=this.hot.getCell(e.row,e.col,!0).getBoundingClientRect(),n=Or(this.menu.container,this.hot.rootDocument);this.open({left:t.left+n.left,top:t.top+n.top-1+t.height},{left:t.width,above:-t.height}),this.menu.getNavigator().toFirstItem()},runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&!this.menu.isOpened()},group:la})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(la)}open(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};if(null!==(t=this.menu)&&void 0!==t&&t.isOpened())return;this.prepareMenuItems(),this.menu.open();const o=this.menu.tableBorderWidth>0;(0,s.v4)(n,((e,t)=>{const n=["below","right"].includes(t)?e+1:e-1;this.menu.setOffset(t,o?e:n)})),this.menu.setPosition(e)}close(){var e;null===(e=this.menu)||void 0===e||e.close(),this.itemsFactory=null}executeCommand(e){null===this.itemsFactory&&this.prepareMenuItems();for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this.commandExecutor.execute(e,...n)}prepareMenuItems(){this.itemsFactory=new Rs(this.hot,da.DEFAULT_ITEMS);const e=this.hot.getSettings()[aa],t={items:this.itemsFactory.getItems(e)};this.hot.runHooks("afterContextMenuDefaultOptions",t),this.itemsFactory.setPredefinedItems(t.items);const n=this.itemsFactory.getItems(e);this.hot.runHooks("beforeContextMenuSetItems",n),this.menu.setMenuItems(n),(0,d.z0)(n,(e=>this.commandExecutor.registerCommand(e.key,e)))}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function ua(e){const t=this.hot.getSettings(),n=t.rowHeaders,o=t.colHeaders,r=e.target;if(this.close(),(0,i.nB)(r,"handsontableInput"))return;if(e.preventDefault(),e.stopPropagation(),!n&&!o&&!(function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(r)||(0,i.nB)(r,"current")&&(0,i.nB)(r,"wtBorder")))return;const s=Or(this.menu.container,this.hot.rootDocument);this.open({top:e.clientY+s.top,left:e.clientX+s.left})}function ha(){this.hot.runHooks("beforeContextMenuShow",this)}function ma(){this.hot.runHooks("afterContextMenuShow",this)}function pa(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}da.SEPARATOR={name:kr};var fa=n(13431);class ga{constructor(){this.data={}}setData(e,t){this.data[e]=t}getData(e){return this.data[e]||void 0}}class ba{constructor(){this.clipboardData=new ga}preventDefault(){}composedPath(){return[]}}function va(e,t,n){ya(e,t),t.set(e,n)}function ya(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function wa(e,t){return e.get(_a(e,t))}function Ca(e,t,n){return e.set(_a(e,t),n),n}function _a(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Sa=new WeakMap,Ma=new WeakMap,Ea=new WeakMap,xa=new WeakMap,ka=new WeakMap,Ta=new WeakMap,Ra=new WeakSet;class Aa{constructor(e){let{countRows:t,countColumns:n,rowsLimit:o,columnsLimit:i,countColumnHeaders:r}=e;var s;ya(this,s=Ra),s.add(this),va(this,Sa,void 0),va(this,Ma,void 0),va(this,Ea,void 0),va(this,xa,void 0),va(this,ka,void 0),va(this,Ta,void 0),Ca(Ma,this,t),Ca(Ea,this,n),Ca(xa,this,o),Ca(ka,this,i),Ca(Ta,this,r)}setSelectedRange(e){Ca(Sa,this,e)}getCellsRange(){if(0===wa(Ma,this).call(this)||0===wa(Ea,this).call(this))return null;const{row:e,col:t}=wa(Sa,this).getTopStartCorner(),{row:n,col:o}=wa(Sa,this).getBottomEndCorner(),i=_a(Ra,this,Oa).call(this,e,n),r=_a(Ra,this,La).call(this,t,o);return{isRangeTrimmed:n!==i||o!==r,startRow:e,startCol:t,endRow:i,endCol:r}}getMostBottomColumnHeadersRange(){if(0===wa(Ea,this).call(this)||0===wa(Ta,this).call(this))return null;const{col:e}=wa(Sa,this).getTopStartCorner(),{col:t}=wa(Sa,this).getBottomEndCorner(),n=_a(Ra,this,La).call(this,e,t);return{isRangeTrimmed:t!==n,startRow:-1,startCol:e,endRow:-1,endCol:n}}getAllColumnHeadersRange(){if(0===wa(Ea,this).call(this)||0===wa(Ta,this).call(this))return null;const{col:e}=wa(Sa,this).getTopStartCorner(),{col:t}=wa(Sa,this).getBottomEndCorner(),n=_a(Ra,this,La).call(this,e,t);return{isRangeTrimmed:t!==n,startRow:-wa(Ta,this).call(this),startCol:e,endRow:-1,endCol:n}}}function La(e,t){return Math.min(t,Math.max(e+wa(ka,this).call(this)-1,e))}function Oa(e,t){return Math.min(t,Math.max(e+wa(xa,this).call(this)-1,e))}function Da(e){const t=[],n=[];return(0,d.z0)(e,(e=>{const o=Math.min(e.startRow,e.endRow),i=Math.max(e.startRow,e.endRow);(0,Et.Ti)(o,i,(e=>{-1===t.indexOf(e)&&t.push(e)}));const r=Math.min(e.startCol,e.endCol),s=Math.max(e.startCol,e.endCol);(0,Et.Ti)(r,s,(e=>{-1===n.indexOf(e)&&n.push(e)}))})),{rows:t,columns:n}}var Ha=n(22257);function Ia(e,t,n){Pa(e,t),t.set(e,n)}function Pa(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Na(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fa(e,t){return e.get(ja(e,t))}function za(e,t,n){return e.set(ja(e,t),n),n}function ja(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Se.R.getSingleton().register("afterCopyLimit"),Se.R.getSingleton().register("modifyCopyableRange"),Se.R.getSingleton().register("beforeCut"),Se.R.getSingleton().register("afterCut"),Se.R.getSingleton().register("beforePaste"),Se.R.getSingleton().register("afterPaste"),Se.R.getSingleton().register("beforeCopy"),Se.R.getSingleton().register("afterCopy");const Ya="copyPaste",$a=["fragmentSelection"],Ba=['<meta name="generator" content="Handsontable"/>','<style type="text/css">td{white-space:normal}br{mso-data-placement:same-cell}</style>'].join("");var Wa=new WeakMap,Va=new WeakMap,Ua=new WeakMap,Ga=new WeakMap,Ka=new WeakMap,qa=new WeakMap,Xa=new WeakMap,Ja=new WeakMap,Qa=new WeakSet;class Za extends dn{constructor(){var e;super(...arguments),Pa(this,e=Qa),e.add(this),Na(this,"columnsLimit",1/0),Na(this,"rowsLimit",1/0),Na(this,"pasteMode","overwrite"),Na(this,"uiContainer",this.hot.rootDocument.body),Ia(this,Wa,!1),Ia(this,Va,!1),Ia(this,Ua,!1),Ia(this,Ga,"cells-only"),Ia(this,Ka,!1),Ia(this,qa,!1),Ia(this,Xa,new Aa({countRows:()=>this.hot.countRows(),countColumns:()=>this.hot.countCols(),rowsLimit:()=>this.rowsLimit,columnsLimit:()=>this.columnsLimit,countColumnHeaders:()=>this.hot.view.getColumnHeadersCount()})),Ia(this,Ja,!1),Na(this,"copyableRanges",[])}static get PLUGIN_KEY(){return Ya}static get SETTING_KEYS(){return[Ya,...$a]}static get PLUGIN_PRIORITY(){return 80}static get DEFAULT_SETTINGS(){return{pasteMode:"overwrite",rowsLimit:1/0,columnsLimit:1/0,copyColumnHeaders:!1,copyColumnGroupHeaders:!1,copyColumnHeadersOnly:!1}}isEnabled(){return!!this.hot.getSettings()[Ya]}enablePlugin(){var e,t,n=this;this.enabled||(this.pasteMode=null!==(e=this.getSetting("pasteMode"))&&void 0!==e?e:this.pasteMode,this.rowsLimit=isNaN(this.getSetting("rowsLimit"))?this.rowsLimit:this.getSetting("rowsLimit"),this.columnsLimit=isNaN(this.getSetting("columnsLimit"))?this.columnsLimit:this.getSetting("columnsLimit"),za(Wa,this,this.getSetting("copyColumnHeaders")),za(Va,this,this.getSetting("copyColumnGroupHeaders")),za(Ua,this,this.getSetting("copyColumnHeadersOnly")),this.uiContainer=null!==(t=this.getSetting("uiContainer"))&&void 0!==t?t:this.uiContainer,this.addHook("afterContextMenuDefaultOptions",(e=>ja(Qa,this,il).call(this,e))),this.addHook("afterSelection",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return ja(Qa,n,rl).call(n,...t)})),this.addHook("afterSelectionEnd",(()=>ja(Qa,this,sl).call(this))),this.eventManager.addEventListener(this.hot.rootDocument,"copy",(function(){return n.onCopy(...arguments)})),this.eventManager.addEventListener(this.hot.rootDocument,"cut",(function(){return n.onCut(...arguments)})),this.eventManager.addEventListener(this.hot.rootDocument,"paste",(function(){return n.onPaste(...arguments)})),(0,te.nr)()&&(this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseenter",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return ja(Qa,n,al).call(n,...t)})),this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseleave",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return ja(Qa,n,ll).call(n,...t)})),this.addHook("afterSelection",(()=>ja(Qa,this,cl).call(this)))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin()}copy(){za(Ga,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cells-only"),za(Ka,this,!0),ja(Qa,this,el).call(this,"copy")}copyCellsOnly(){this.copy("cells-only")}copyColumnHeadersOnly(){this.copy("column-headers-only")}copyWithAllColumnHeaders(){this.copy("with-column-group-headers")}copyWithColumnHeaders(){this.copy("with-column-headers")}cut(){za(qa,this,!0),ja(Qa,this,el).call(this,"cut")}getRangedCopyableData(e){return(0,fa.A)(this.getRangedData(e))}getRangedData(e){const t=[],{rows:n,columns:o}=Da(e);return(0,d.z0)(n,(e=>{const n=[];(0,d.z0)(o,(t=>{e<0?n.push(this.hot.getColHeader(t,e)):n.push(this.hot.getCopyableData(e,t))})),t.push(n)})),t}paste(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(!e&&!t)return;const n=new ba;e&&n.clipboardData.setData("text/plain",e),t&&n.clipboardData.setData("text/html",t),this.onPaste(n)}setCopyableText(){const e=this.hot.getSelectedRangeLast();if(!e)return;if(e.isSingleHeader())return void(this.copyableRanges=[]);Fa(Xa,this).setSelectedRange(e);const t=new Map([["headers",null],["cells",null]]);"column-headers-only"===Fa(Ga,this)?t.set("headers",Fa(Xa,this).getMostBottomColumnHeadersRange()):("with-column-headers"===Fa(Ga,this)?t.set("headers",Fa(Xa,this).getMostBottomColumnHeadersRange()):"with-column-group-headers"===Fa(Ga,this)&&t.set("headers",Fa(Xa,this).getAllColumnHeadersRange()),t.set("cells",Fa(Xa,this).getCellsRange())),this.copyableRanges=Array.from(t.values()).filter((e=>null!==e)).map((e=>{let{startRow:t,startCol:n,endRow:o,endCol:i}=e;return{startRow:t,startCol:n,endRow:o,endCol:i}})),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges);const n=t.get("cells");if(null!==n&&n.isRangeTrimmed){const{startRow:e,startCol:t,endRow:o,endCol:i}=n;this.hot.runHooks("afterCopyLimit",o-e+1,i-t+1,this.rowsLimit,this.columnsLimit)}}isEditorOpened(){var e;return null===(e=this.hot.getActiveEditor())||void 0===e?void 0:e.isOpened()}populateValues(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.getSelectedRangeLast();if(!e.length)return;const n=e.length,o=e[0].length,i=[],{row:r,col:s}=t.getTopStartCorner(),{row:a,col:l}=t.getBottomEndCorner();let c=r,d=s,u=r,h=s;for(;i.length<n||c<=a;){const{skipRowOnPaste:t,visualRow:a}=this.hot.getCellMeta(c,s);if(c=a+1,!0===t)continue;u=a,d=s;const m=[],p=i.length%n;for(;m.length<o||d<=l;){const{skipColumnOnPaste:t,visualCol:n}=this.hot.getCellMeta(r,d);if(d=n+1,!0===t)continue;h=n;const i=m.length%o;m.push(e[p][i])}i.push(m)}return za(Ja,this,!0),this.hot.populateFromArray(r,s,i,void 0,void 0,"CopyPaste.paste",this.pasteMode),[r,s,u,h]}onCopy(e){const t=e.composedPath()[0],n=this.hot.getFocusManager().getRefocusElement(),o=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!Fa(Ka,this)||this.isEditorOpened()||(0,i.sb)(t)&&(o&&t!==n||!o&&t!==this.hot.rootDocument.body&&!(0,i.yq)(t,this.hot.rootElement)))return;e.preventDefault(),this.setCopyableText(),za(Ka,this,!1);const r=this.getRangedData(this.copyableRanges),s=ja(Qa,this,tl).call(this,this.copyableRanges);if(this.hot.runHooks("beforeCopy",r,this.copyableRanges,s)){const t=(0,fa.A)(r);if(e&&e.clipboardData){const n=(0,Ha.ub)(r,this.hot.rootDocument);e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",[Ba,n].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",t);this.hot.runHooks("afterCopy",r,this.copyableRanges,s)}za(Ga,this,"cells-only")}onCut(e){const t=e.composedPath()[0],n=this.hot.getFocusManager().getRefocusElement(),o=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!Fa(qa,this)||this.isEditorOpened()||(0,i.sb)(t)&&(o&&t!==n||!o&&t!==this.hot.rootDocument.body&&!(0,i.yq)(t,this.hot.rootElement)))return;e.preventDefault(),this.setCopyableText(),za(qa,this,!1);const r=this.getRangedData(this.copyableRanges);if(this.hot.runHooks("beforeCut",r,this.copyableRanges)){const t=(0,fa.A)(r);if(e&&e.clipboardData){const n=(0,Ha.ub)(r,this.hot.rootDocument);e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",[Ba,n].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",t);this.hot.emptySelectedCells("CopyPaste.cut"),this.hot.runHooks("afterCut",r,this.copyableRanges)}}onPaste(e){const t=e.composedPath()[0],n=this.hot.getFocusManager().getRefocusElement(),o=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()||this.isEditorOpened()||!this.hot.getSelected()||(0,i.sb)(t)&&(o&&t!==n||!o&&t!==this.hot.rootDocument.body&&!(0,i.yq)(t,this.hot.rootElement)))return;let r;if(e.preventDefault(),e&&void 0!==e.clipboardData){const t=(0,h.aj)(e.clipboardData.getData("text/html"),{ADD_TAGS:["meta"],ADD_ATTR:["content"],FORCE_BODY:!0});r=t&&/(<table)|(<TABLE)/g.test(t)?(0,Ha.oh)(t,this.hot.rootDocument).data:e.clipboardData.getData("text/plain")}else"undefined"==typeof ClipboardEvent&&void 0!==this.hot.rootWindow.clipboardData&&(r=this.hot.rootWindow.clipboardData.getData("Text"));if("string"==typeof r&&(r=(0,fa.q)(r)),void 0===r||r&&0===r.length)return;if(!1===this.hot.runHooks("beforePaste",r,this.copyableRanges))return;const[s,a,l,c]=this.populateValues(r);this.hot.selectCell(s,a,Math.min(this.hot.countRows()-1,l),Math.min(this.hot.countCols()-1,c)),this.hot.runHooks("afterPaste",r,this.copyableRanges)}destroy(){super.destroy()}}function el(e){if((0,te.nr)()){const t=this.hot.getSelectedRangeLast();if(t){const{row:n,col:o}=t.highlight,r=this.hot.getCell(n,o,!0);r&&(0,i.C0)(r,(()=>{this.hot.rootDocument.execCommand(e)}))}}else this.hot.rootDocument.execCommand(e)}function tl(e){const{rows:t}=Da(e);let n=0;for(let e=0;e<t.length&&!(t[e]>=0);e++)n+=1;return{columnHeadersCount:n}}function nl(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeLast();if(e){const{row:t,col:n}=e.highlight,o=this.hot.getCell(t,n,!0);o&&(0,i.aM)(o)}}}function ol(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeLast();if(e){const{row:t,col:n}=e.highlight,o=this.hot.getCell(t,n,!0);null!=o&&o.hasAttribute("contenteditable")&&(0,i.gj)(o)}}}function il(e){var t;e.items.push({name:"---------"},(t=this,{key:"copy",name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_COPY)},callback(){t.copyCellsOnly()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1})),Fa(Wa,this)&&e.items.push(function(e){return{key:"copy_with_column_headers",name(){const e=this.getSelectedRangeLast(),t=e?(0,Et.qE)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS,t)},callback(){e.copyWithColumnHeaders()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}}(this)),Fa(Va,this)&&e.items.push(function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeLast(),t=e?(0,Et.qE)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}}(this)),Fa(Ua,this)&&e.items.push(function(e){return{key:"copy_column_headers_only",name(){const e=this.getSelectedRangeLast(),t=e?(0,Et.qE)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,t)},callback(){e.copyColumnHeadersOnly()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}}(this)),e.items.push(function(e){return{key:"cut",name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_CUT)},callback(){e.cut()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}}(this))}function rl(e,t,n,o,i){Fa(Ja,this)&&(i.value=!0),za(Ja,this,!1)}function sl(){this.isEditorOpened()||this.hot.getSettings().fragmentSelection||this.setCopyableText()}function al(){ja(Qa,this,ol).call(this)}function ll(){ja(Qa,this,nl).call(this)}function cl(){ja(Qa,this,ol).call(this)}function dl(e,t){return`border_row${e}col${t}`}function ul(e){var t,n;return((0,u.O9)(e.start)||(0,u.O9)(e.left))&&(e.start=null!==(t=e.start)&&void 0!==t?t:e.left),((0,u.O9)(e.end)||(0,u.O9)(e.right))&&(e.end=null!==(n=e.end)&&void 0!==n?n:e.right),delete e.left,delete e.right,e}function hl(e){return(0,u.O9)(e.start)&&(e.left=e.start),(0,u.O9)(e.end)&&(e.right=e.end),e}function ml(e,t){return{id:dl(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}}function pl(e,t){let n=!1;return(0,d.z0)(e.getSelectedRange(),(o=>{o.forAll(((o,i)=>{if(o<0||i<0)return;const r=e.getCellMeta(o,i).borders;if(r){if(!t)return n=!0,!1;if(!(0,s.mQ)(r[t],"hide")||!1===r[t].hide)return n=!0,!1}}))})),n}function fl(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`}const gl=new Map([["left","start"],["right","end"]]);function bl(e){const t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name(){let e=this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return pl(this,t)&&(e=fl(e)),e},callback(n,o){const i=pl(this,t);e.prepareBorder(o,t,i)}}}function vl(e){return{key:"borders:bottom",name(){let e=this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return pl(this,"bottom")&&(e=fl(e)),e},callback(t,n){const o=pl(this,"bottom");e.prepareBorder(n,"bottom",o)}}}function yl(e){const t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name(){let e=this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_BORDERS_LEFT);return pl(this,t)&&(e=fl(e)),e},callback(n,o){const i=pl(this,t);e.prepareBorder(o,t,i)}}}function wl(e){return{key:"borders:no_borders",name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback(t,n){e.prepareBorder(n,"noBorders")},disabled(){return!pl(this)}}}function Cl(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const _l="customBorders";var Sl=new WeakSet;class Ml extends dn{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Sl),t.add(e),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"savedBorders",[])}static get PLUGIN_KEY(){return _l}static get PLUGIN_PRIORITY(){return 90}isEnabled(){return!!this.hot.getSettings()[_l]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",(e=>Cl(Sl,this,El).call(this,e))),this.addHook("init",(()=>Cl(Sl,this,xl).call(this))),super.enablePlugin())}disablePlugin(){this.hideBorders(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),super.updatePlugin()}setBorders(e,t){let n=["top","bottom","start","end"],o=null;t&&(this.checkSettingsCohesion([t]),n=Object.keys(t),o=ul(t));const i=(0,vs.ML)(e),r=(0,vs._e)(i,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)});(0,d.z0)(e,(e=>{r(e).forAll(((e,t)=>{(0,d.z0)(n,(n=>{var i,r;this.prepareBorderFromCustomAdded(e,t,o,(i=n,null!==(r=gl.get(i))&&void 0!==r?r:i))}))}))})),this.hot.view.render()}getBorders(e){if(!Array.isArray(e))return this.savedBorders;const t=(0,vs.ML)(e),n=(0,vs._e)(t,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)}),o=[];return(0,d.z0)(e,(e=>{n(e).forAll(((e,t)=>{(0,d.z0)(this.savedBorders,(n=>{n.row===e&&n.col===t&&o.push(hl(n))}))}))})),o}clearBorders(e){e?this.setBorders(e):((0,d.z0)(this.savedBorders,(e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),this.hot.removeCellMeta(e.row,e.col,"borders")})),this.savedBorders.length=0)}insertBorderIntoSettings(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);const n=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,n,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:n})}prepareBorderFromCustomAdded(e,t,n,o){const i=this.hot.countRows(),r=this.hot.countCols();if(e>=i||t>=r)return;let a=ml(e,t);var l,c;n&&(l=a,c=n,(0,s.mQ)(c,"border")&&c.border&&(l.border=c.border),(0,s.mQ)(c,"top")&&(0,u.O9)(c.top)&&(c.top?((0,s.Gv)(c.top)||(c.top={width:1,color:"#000"}),l.top=c.top):(c.top={hide:!0},l.top=c.top)),(0,s.mQ)(c,"bottom")&&(0,u.O9)(c.bottom)&&(c.bottom?((0,s.Gv)(c.bottom)||(c.bottom={width:1,color:"#000"}),l.bottom=c.bottom):(c.bottom={hide:!0},l.bottom=c.bottom)),(0,s.mQ)(c,"start")&&(0,u.O9)(c.start)&&(c.start?((0,s.Gv)(c.start)||(c.start={width:1,color:"#000"}),l.start=c.start):(c.start={hide:!0},l.start=c.start)),(0,s.mQ)(c,"end")&&(0,u.O9)(c.end)&&(c.end?((0,s.Gv)(c.end)||(c.end={width:1,color:"#000"}),l.end=c.end):(c.end={hide:!0},l.end=c.end)),a=l,(0,d.z0)(this.hot.selection.highlight.customSelections,(e=>{if(a.id===e.settings.id)return Object.assign(e.settings,n),a.id=e.settings.id,a.top=e.settings.top,a.bottom=e.settings.bottom,a.start=e.settings.start,a.end=e.settings.end,!1}))),this.hot.setCellMeta(e,t,"borders",hl(a)),this.insertBorderIntoSettings(a,o)}prepareBorderFromCustomAddedRange(e,t){const n=Math.min(e.to.row,this.hot.countRows()-1),o=Math.min(e.to.col,this.hot.countCols()-1);(0,Et.Ti)(e.from.row,n,(n=>{(0,Et.Ti)(e.from.col,o,(o=>{const i=ml(n,o);let r=0;n===e.from.row&&(0,s.mQ)(t,"top")&&(r+=1,i.top=t.top),n===e.to.row&&(0,s.mQ)(t,"bottom")&&(r+=1,i.bottom=t.bottom),o===e.from.col&&(0,s.mQ)(t,"start")&&(r+=1,i.start=t.start),o===e.to.col&&(0,s.mQ)(t,"end")&&(r+=1,i.end=t.end),r>0&&(this.hot.setCellMeta(n,o,"borders",hl(i)),this.insertBorderIntoSettings(i))}))}))}removeAllBorders(e,t){const n=dl(e,t);this.spliceBorder(n),this.clearBordersFromSelectionSettings(n),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}setBorder(e,t,n,o){let i=this.hot.getCellMeta(e,t).borders;i=i&&void 0!==i.border?ul(i):ml(e,t),o?(i[n]={hide:!0},4===this.countHide(i)?this.removeAllBorders(e,t):(this.checkCustomSelectionsFromContextMenu(i,n,o)||this.insertBorderIntoSettings(i),this.hot.setCellMeta(e,t,"borders",hl(i)))):(i[n]={width:1,color:"#000"},this.checkCustomSelectionsFromContextMenu(i,n,o)||this.insertBorderIntoSettings(i),this.hot.setCellMeta(e,t,"borders",hl(i)))}prepareBorder(e,t,n){(0,d.z0)(e,(e=>{let{start:o,end:i}=e;if(o.row===i.row&&o.col===i.col)"noBorders"===t?this.removeAllBorders(o.row,o.col):this.setBorder(o.row,o.col,t,n);else switch(t){case"noBorders":(0,Et.Ti)(o.col,i.col,(e=>{(0,Et.Ti)(o.row,i.row,(t=>{this.removeAllBorders(t,e)}))}));break;case"top":(0,Et.Ti)(o.col,i.col,(e=>{this.setBorder(o.row,e,t,n)}));break;case"bottom":(0,Et.Ti)(o.col,i.col,(e=>{this.setBorder(i.row,e,t,n)}));break;case"start":(0,Et.Ti)(o.row,i.row,(e=>{this.setBorder(e,o.col,t,n)}));break;case"end":(0,Et.Ti)(o.row,i.row,(e=>{this.setBorder(e,i.col,t,n)}))}}))}createCustomBorders(e){(0,d.z0)(e,(e=>{const t=ul(e);e.range?this.prepareBorderFromCustomAddedRange(e.range,t):this.prepareBorderFromCustomAdded(e.row,e.col,t)}))}countHide(e){const{top:t,bottom:n,start:o,end:i}=e,r=[t,n,o,i];return(0,d.mu)(r,((e,t)=>{let n=e;return t&&t.hide&&(n+=1),n}),0)}clearBordersFromSelectionSettings(e){const t=(0,d.YD)(this.hot.selection.highlight.customSelections,(e=>e.settings.id)).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}clearNullCellRange(){(0,d.z0)(this.hot.selection.highlight.customSelections,((e,t)=>{if(null===e.cellRange)return this.hot.selection.highlight.customSelections[t].destroy(),this.hot.selection.highlight.customSelections.splice(t,1),!1}))}hideBorders(){(0,d.z0)(this.savedBorders,(e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange()}))}spliceBorder(e){const t=(0,d.YD)(this.savedBorders,(e=>e.id)).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}checkSavedBorders(e){let t=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),t=!0):(0,d.z0)(this.savedBorders,((n,o)=>{if(e.id===n.id)return this.savedBorders[o]=e,t=!0,!1})),t}checkCustomSelectionsFromContextMenu(e,t,n){let o=!1;return(0,d.z0)(this.hot.selection.highlight.customSelections,(i=>{if(e.id===i.settings.id){const e=this.hot.view._wt.selectionManager.getBorderInstances(i);return(0,d.z0)(e,(e=>{e.toggleHiddenClass(t,n)})),o=!0,!1}})),o}checkCustomSelections(e,t,n){const o=this.countHide(e);let i=!1;return 4===o?(this.removeAllBorders(e.row,e.col),i=!0):(0,d.z0)(this.hot.selection.highlight.customSelections,(o=>{if(e.id===o.settings.id){if(o.visualCellRange=t,o.commit(),n){const t=this.hot.view._wt.selectionManager.getBorderInstances(o);(0,d.z0)(t,(t=>{t.changeBorderStyle(n,e)}))}return i=!0,!1}})),i}changeBorderSettings(){const e=this.hot.getSettings()[_l];if(Array.isArray(e)){const t=(0,s.Go)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}checkSettingsCohesion(e){const t=e.some((e=>(0,u.O9)(e.left)||(0,u.O9)(e.right))),n=e.some((e=>(0,u.O9)(e.start)||(0,u.O9)(e.end)));if(t&&n)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".')}destroy(){super.destroy()}}function El(e){var t;this.hot.getSettings()[_l]&&e.items.push({name:"---------"},{key:"borders",name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_BORDERS)},disabled(){const e=this.getSelectedRangeLast();return!e||!!e.isSingleHeader()||this.selection.isSelectedByCorner()},submenu:{items:[(t=this,{key:"borders:top",name(){let e=this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_BORDERS_TOP);return pl(this,"top")&&(e=fl(e)),e},callback(e,n){const o=pl(this,"top");t.prepareBorder(n,"top",o)}}),bl(this),vl(this),yl(this),wl(this)]}})}function xl(){this.changeBorderSettings()}function kl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tl(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const Rl="dragToScroll";var Al=new WeakSet;class Ll extends dn{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Al),t.add(e),kl(this,"boundaries",null),kl(this,"callback",null),kl(this,"listening",!1)}static get PLUGIN_KEY(){return Rl}static get PLUGIN_PRIORITY(){return 100}isEnabled(){return!!this.hot.getSettings()[Rl]}enablePlugin(){this.enabled||(this.addHook("afterOnCellMouseDown",(e=>Tl(Al,this,Ol).call(this,e))),this.addHook("afterOnCellCornerMouseDown",(e=>Tl(Al,this,Ol).call(this,e))),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.unregisterEvents(),super.disablePlugin()}setBoundaries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,right:this.hot.rootWindow.innerWidth,top:0,bottom:this.hot.rootWindow.innerHeight};this.boundaries=e}setCallback(e){this.callback=e}check(e,t){let n=0,o=0;t<this.boundaries.top?o=t-this.boundaries.top:t>this.boundaries.bottom&&(o=t-this.boundaries.bottom),e<this.boundaries.left?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,o)}listen(){this.listening=!0}unlisten(){this.listening=!1}isListening(){return this.listening}registerEvents(){const{rootWindow:e}=this.hot;let t=e;for(;t;)this.eventManager.addEventListener(t.document,"contextmenu",(()=>this.unlisten())),this.eventManager.addEventListener(t.document,"mouseup",(()=>this.unlisten())),this.eventManager.addEventListener(t.document,"mousemove",(e=>this.onMouseMove(e))),t=(0,i.Ly)(t)}unregisterEvents(){this.eventManager.clear()}onMouseMove(e){this.isListening()&&this.check(e.clientX,e.clientY)}destroy(){super.destroy()}}function Ol(e){if((0,r.nO)(e))return;const t=this.hot.view._wt.wtOverlays.topOverlay.mainTableScrollableElement;this.setBoundaries(t!==this.hot.rootWindow?t.getBoundingClientRect():void 0),this.setCallback(((e,n)=>{var o,i;const r=null!==(o=t.scrollLeft)&&void 0!==o?o:t.scrollX,s=null!==(i=t.scrollTop)&&void 0!==i?i:t.scrollY;t.scroll(r+50*Math.sign(e),s+20*Math.sign(n))})),this.listen()}function Dl(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Hl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Il(e,t,n){return e.set(Pl(e,t),n),n}function Pl(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Se.R.getSingleton().register("afterDropdownMenuDefaultOptions"),Se.R.getSingleton().register("beforeDropdownMenuShow"),Se.R.getSingleton().register("afterDropdownMenuShow"),Se.R.getSingleton().register("afterDropdownMenuHide"),Se.R.getSingleton().register("afterDropdownMenuExecute");const Nl="dropdownMenu",Fl="changeType",zl=Nl;var jl=new WeakMap,Yl=new WeakSet;class $l extends dn{static get PLUGIN_KEY(){return Nl}static get PLUGIN_PRIORITY(){return 230}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[ps,fs,kr,ys,kr,ms,kr,gs,kr,hs]}constructor(e){var t;super(e),Dl(this,t=Yl),t.add(this),Hl(this,"commandExecutor",new us(this.hot)),Hl(this,"itemsFactory",null),Hl(this,"menu",null),function(e,t){Dl(e,t),t.set(e,!1)}(this,jl),this.hot.addHook("afterGetColHeader",((e,t)=>Pl(Yl,this,Vl).call(this,e,t)))}isEnabled(){return this.hot.getSettings()[Nl]}enablePlugin(){var e=this;if(this.enabled)return;this.itemsFactory=new Rs(this.hot,$l.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Pl(Yl,e,Jl).call(e,...n)})),this.addHook("beforeViewportScrollHorizontally",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Pl(Yl,e,Xl).call(e,...n)}));const t=this.hot.getSettings()[Nl],n={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.registerShortcuts(),super.enablePlugin(),this.callOnPluginsReady((()=>{this.hot.runHooks("afterDropdownMenuDefaultOptions",n),this.itemsFactory.setPredefinedItems(n.items);const o=this.itemsFactory.getItems(t);this.menu&&this.menu.destroy(),this.menu=new ia(this.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootDocument.body}),this.hot.runHooks("beforeDropdownMenuSetItems",o),this.menu.setMenuItems(o),this.menu.addLocalHook("beforeOpen",(()=>Pl(Yl,this,Ul).call(this))),this.menu.addLocalHook("afterOpen",(()=>Pl(Yl,this,Gl).call(this))),this.menu.addLocalHook("afterSubmenuOpen",(e=>Pl(Yl,this,Kl).call(this,e))),this.menu.addLocalHook("afterClose",(()=>Pl(Yl,this,ql).call(this))),this.menu.addLocalHook("executeCommand",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.executeCommand.call(e,...n)})),(0,d.z0)(o,(e=>this.commandExecutor.registerCommand(e.key,e)))}))}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&this.menu.destroy(),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=()=>{const{highlight:e}=this.hot.getSelectedRangeLast();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeLast(),n=Or(this.menu.container,this.hot.rootDocument),o=this.hot.getCell(-1,t.col,!0).querySelector(`.${Fl}`),i=o.getBoundingClientRect();this.open({left:i.left+n.left,top:i.top+o.offsetHeight+n.top},{left:i.width,right:0,above:0,below:3}),this.menu.getNavigator().toFirstItem()}};this.hot.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Shift","Alt","ArrowDown"],["Control/Meta","Enter"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:zl},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:zl}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(zl)}registerEvents(){this.eventManager.addEventListener(this.hot.rootElement,"click",(e=>Pl(Yl,this,Wl).call(this,e)))}open(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};null!==(t=this.menu)&&void 0!==t&&t.isOpened()||(this.menu.open(),(0,s.v4)(n,((e,t)=>{this.menu.setOffset(t,e)})),this.menu.setPosition(e))}close(){var e;null===(e=this.menu)||void 0===e||e.close()}executeCommand(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this.commandExecutor.execute(e,...n)}setListening(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function Bl(e){e.getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Control/Meta","A"]],callback:()=>!1}])}function Wl(e){if((0,i.nB)(e.target,Fl)){const t=Or(this.menu.container,this.hot.rootDocument),n=e.target.getBoundingClientRect();e.stopPropagation(),Il(jl,this,!1),this.open({left:n.left+t.left,top:n.top+e.target.offsetHeight+t.top},{left:n.width,right:0,above:0,below:3})}}function Vl(e,t){const n=t.parentNode;if(!n)return;const o=n.parentNode.childNodes,r=Array.prototype.indexOf.call(o,n);if(e<0||r!==o.length-1)return;const s=t.querySelector(`.${Fl}`);if(this.enabled&&s)return;if(!this.enabled)return void(s&&s.parentNode.removeChild(s));const a=this.hot.rootDocument.createElement("button");a.className=Fl,a.type="button",a.tabIndex=-1,this.hot.getSettings().ariaTags&&((0,i.Bq)(a,[(0,f.MG)(),(0,f.SM)(" ")]),(0,i.Bq)(t,[(0,f.wP)("menu")])),a.onclick=function(){return!1},t.firstChild.insertBefore(a,t.firstChild.firstChild)}function Ul(){this.hot.runHooks("beforeDropdownMenuShow",this)}function Gl(){this.hot.runHooks("afterDropdownMenuShow",this),Pl(Yl,this,Bl).call(this,this.menu)}function Kl(e){Pl(Yl,this,Bl).call(this,e)}function ql(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function Xl(e){return(t=jl).get(Pl(t,this))?null:e;var t}function Jl(e){(0,i.nB)(e.target,Fl)&&Il(jl,this,!0)}function Ql(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}$l.SEPARATOR={name:kr};const Zl=class{constructor(e){Ql(this,"hot",void 0),Ql(this,"options",{}),this.hot=e}setOptions(e){this.options=e}getData(){const{startRow:e,startCol:t,endRow:n,endCol:o}=this._getDataRange(),i=this.options,r=[];return(0,Et.Ti)(e,n,(e=>{const n=[];!i.exportHiddenRows&&this._isHiddenRow(e)||((0,Et.Ti)(t,o,(t=>{!i.exportHiddenColumns&&this._isHiddenColumn(t)||n.push(this.hot.getDataAtCell(e,t))})),r.push(n))})),r}getRowHeaders(){const e=[];if(this.options.rowHeaders){const{startRow:t,endRow:n}=this._getDataRange(),o=this.hot.getRowHeader();(0,Et.Ti)(t,n,(t=>{!this.options.exportHiddenRows&&this._isHiddenRow(t)||e.push(o[t])}))}return e}getColumnHeaders(){const e=[];if(this.options.columnHeaders){const{startCol:t,endCol:n}=this._getDataRange(),o=this.hot.getColHeader();(0,Et.Ti)(t,n,(t=>{!this.options.exportHiddenColumns&&this._isHiddenColumn(t)||e.push(o[t])}))}return e}_getDataRange(){const e=this.hot.countCols()-1,t=this.hot.countRows()-1;let[n=0,o=0,i=t,r=e]=this.options.range;return n=Math.max(n,0),o=Math.max(o,0),i=Math.min(i,t),r=Math.min(r,e),{startRow:n,startCol:o,endRow:i,endCol:r}}_isHiddenRow(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}_isHiddenColumn(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}};function ec(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class tc{static get DEFAULT_OPTIONS(){return{mimeType:"text/plain",fileExtension:"txt",filename:"Handsontable [YYYY]-[MM]-[DD]",encoding:"utf-8",bom:!1,columnHeaders:!1,rowHeaders:!1,exportHiddenColumns:!1,exportHiddenRows:!1,range:[]}}constructor(e,t){ec(this,"dataProvider",void 0),ec(this,"options",void 0),this.dataProvider=e,this.options=this._mergeOptions(t),this.dataProvider.setOptions(this.options)}_mergeOptions(e){let t=(0,s.o8)(this.constructor.DEFAULT_OPTIONS);const n=new Date;return t=(0,s.X$)((0,s.o8)(tc.DEFAULT_OPTIONS),t),t=(0,s.X$)(t,e),t.filename=(0,h.V2)(t.filename,{YYYY:n.getFullYear(),MM:`${n.getMonth()+1}`.padStart(2,"0"),DD:`${n.getDate()}`.padStart(2,"0")}),t}}const nc=tc;function oc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const ic=String.fromCharCode(13),rc=String.fromCharCode(34),sc=String.fromCharCode(10),ac=String.fromCharCode(61),lc=String.fromCharCode(43),cc=String.fromCharCode(45),dc=String.fromCharCode(64),uc=String.fromCharCode(9);var hc=new WeakSet;function mc(e){return e.startsWith(ac)||e.startsWith(lc)||e.startsWith(cc)||e.startsWith(dc)||e.startsWith(uc)||e.startsWith(ic)?`'${e}`:e}function pc(e,t){return t.test(e)?`'${e}`:e}const fc="csv",gc={[fc]:class extends nc{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=hc),t.add(e)}static get DEFAULT_OPTIONS(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n",sanitizeValues:!1}}export(){const e=this.options,t=this.dataProvider.getData();let n=this.dataProvider.getColumnHeaders();const o=n.length>0,i=this.dataProvider.getRowHeaders(),r=i.length>0;let s=e.bom?String.fromCharCode(65279):"";return o&&(n=(0,d.YD)(n,(t=>this._escapeCell(t,{force:!0,sanitizeValue:e.sanitizeValues}))),r&&(s+=e.columnDelimiter),s+=n.join(e.columnDelimiter),s+=e.rowDelimiter),(0,d.z0)(t,((t,n)=>{n>0&&(s+=e.rowDelimiter),r&&(s+=this._escapeCell(i[n],{sanitizeValue:e.sanitizeValues}),s+=e.columnDelimiter);const o=t.map((t=>this._escapeCell(t,{sanitizeValue:e.sanitizeValues}))).join(e.columnDelimiter);s+=o})),s}_escapeCell(e){let{force:t=!1,sanitizeValue:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(0,u.As)(e);return""===o||(n&&(t=!0),n instanceof RegExp?o=oc(hc,this,pc).call(this,o,n):"function"==typeof n?o=n(o):n&&(o=oc(hc,this,mc).call(this,o)),(t||o.indexOf(ic)>=0||o.indexOf(rc)>=0||o.indexOf(sc)>=0||o.indexOf(this.options.columnDelimiter)>=0)&&(o=o.replace(new RegExp('"',"g"),'""'),o=`"${o}"`)),o}}};class bc extends dn{static get PLUGIN_KEY(){return"exportFile"}static get PLUGIN_PRIORITY(){return 240}isEnabled(){return!0}exportAsString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}exportAsBlob(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}downloadFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{rootDocument:n,rootWindow:o}=this.hot,i=this._createTypeFormatter(e,t),r=this._createBlob(i),s=o.URL||o.webkitURL,a=n.createElement("a"),l=`${i.options.filename}.${i.options.fileExtension}`;if(void 0!==a.download){const e=s.createObjectURL(r);a.style.display="none",a.setAttribute("href",e),a.setAttribute("download",l),n.body.appendChild(a),a.dispatchEvent(new MouseEvent("click")),n.body.removeChild(a),setTimeout((()=>{s.revokeObjectURL(e)}),100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(r,l)}_createTypeFormatter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!gc[e])throw new Error(`Export format type "${e}" is not supported.`);return function(e,t,n){return"function"==typeof gc[e]?new gc[e](t,n):null}(e,new Zl(this.hot),t)}_createBlob(e){let t=null;return"undefined"!=typeof Blob&&(t=new Blob([e.export()],{type:`${e.options.mimeType};charset=${e.options.encoding}`})),t}}function vc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(93514);class yc{constructor(e,t){let{id:n,stateless:o=!0}=t;vc(this,"hot",void 0),vc(this,"id",void 0),vc(this,"elements",[]),vc(this,"hidden",!1),vc(this,"stateId",""),vc(this,"state",void 0),this.hot=e,this.id=n,this.stateId=`Filters.component.${this.id}`,this.state=o?null:this.hot.columnIndexMapper.registerMap(this.stateId,new ti.z)}getElements(){return this.elements}reset(){(0,d.z0)(this.elements,(e=>e.reset()))}hide(){this.hidden=!0}show(){this.hidden=!1}isHidden(){return null===this.hot||this.hidden}restoreState(e){this.state&&this.setState(this.state.getValueAtIndex(e))}setState(){throw new Error("The state setting logic is not implemented")}saveState(e){this.state&&this.state.setValueAtIndex(e,this.getState())}getState(){throw new Error("The state gathering logic is not implemented")}destroy(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),(0,d.z0)(this.elements,(e=>e.destroy())),this.state=null,this.elements=null,this.hot=null}}(0,s.co)(yc,Zi.A);const wc={};function Cc(e,t){if(!wc[e])throw Error(`Filter condition "${e}" does not exist.`);const{condition:n,descriptor:o}=wc[e];let i=t;return o.inputValuesDecorator&&(i=o.inputValuesDecorator(i)),function(e){return n.apply(e.meta.instance,[].concat([e],[i]))}}function _c(e){if(!wc[e])throw Error(`Filter condition "${e}" does not exist.`);return wc[e].descriptor}function Sc(e,t,n){n.key=e,wc[e]={condition:t,descriptor:n}}const Mc="none";Sc(Mc,(function(){return!0}),{name:Me.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1});const Ec="empty";Sc(Ec,(function(e){return(0,u.Im)(e.value)}),{name:Me.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0});const xc="not_empty";Sc(xc,(function(e,t){return!Cc(Ec,t)(e)}),{name:Me.FILTERS_CONDITIONS_NOT_EMPTY,inputsCount:0,showOperators:!0});const kc="eq";Sc(kc,(function(e,t){let[n]=t;return(0,u.As)(e.value).toLocaleLowerCase(e.meta.locale)===(0,u.As)(n)}),{name:Me.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0});const Tc="neq";Sc(Tc,(function(e,t){return!Cc(kc,t)(e)}),{name:Me.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0}),Sc("gt",(function(e,t){let[n]=t,o=n;return"numeric"===e.meta.type&&(o=parseFloat(o,10)),e.value>o}),{name:Me.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0}),Sc("gte",(function(e,t){let[n]=t,o=n;return"numeric"===e.meta.type&&(o=parseFloat(o,10)),e.value>=o}),{name:Me.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0}),Sc("lt",(function(e,t){let[n]=t,o=n;return"numeric"===e.meta.type&&(o=parseFloat(o,10)),e.value<o}),{name:Me.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0}),Sc("lte",(function(e,t){let[n]=t,o=n;return"numeric"===e.meta.type&&(o=parseFloat(o,10)),e.value<=o}),{name:Me.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,inputsCount:1,showOperators:!0});const Rc="date_after";Sc(Rc,(function(e,t){let[n]=t;const o=R(e.value,e.meta.dateFormat),i=R(n,e.meta.dateFormat);return!(!o.isValid()||!i.isValid())&&o.diff(i)>=0}),{name:Me.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0});const Ac="date_before";Sc(Ac,(function(e,t){let[n]=t;const o=R(e.value,e.meta.dateFormat),i=R(n,e.meta.dateFormat);return!(!o.isValid()||!i.isValid())&&o.diff(i)<=0}),{name:Me.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0});const Lc="between";Sc(Lc,(function(e,t){let[n,o]=t,i=n,r=o;if("numeric"===e.meta.type){const e=parseFloat(i,10),t=parseFloat(r,10);i=Math.min(e,t),r=Math.max(e,t)}else if("date"===e.meta.type){const t=Cc(Ac,[r]),n=Cc(Rc,[i]);return t(e)&&n(e)}return e.value>=i&&e.value<=r}),{name:Me.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0});const Oc="not_between";Sc(Oc,(function(e,t){return!Cc(Lc,t)(e)}),{name:Me.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0});const Dc="begins_with";Sc(Dc,(function(e,t){let[n]=t;return(0,u.As)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,u.As)(n))}),{name:Me.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0});const Hc="ends_with";Sc(Hc,(function(e,t){let[n]=t;return(0,u.As)(e.value).toLocaleLowerCase(e.meta.locale).endsWith((0,u.As)(n))}),{name:Me.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0});const Ic="contains";Sc(Ic,(function(e,t){let[n]=t;return(0,u.As)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,u.As)(n))>=0}),{name:Me.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0});const Pc="not_contains";Sc(Pc,(function(e,t){return!Cc(Ic,t)(e)}),{name:Me.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0});const Nc="date_tomorrow";Sc(Nc,(function(e){const t=R(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame(R().subtract(-1,"days").startOf("day"),"d")}),{name:Me.FILTERS_CONDITIONS_TOMORROW,inputsCount:0});const Fc="date_today";Sc(Fc,(function(e){const t=R(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame(R().startOf("day"),"d")}),{name:Me.FILTERS_CONDITIONS_TODAY,inputsCount:0});const zc="date_yesterday";Sc(zc,(function(e){const t=R(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame(R().subtract(1,"days").startOf("day"),"d")}),{name:Me.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0});const jc="numeric",Yc="text",$c="date",Bc={[jc]:[Mc,kr,Ec,xc,kr,kc,Tc,kr,"gt","gte","lt","lte",Lc,Oc],[Yc]:[Mc,kr,Ec,xc,kr,kc,Tc,kr,Dc,Hc,kr,Ic,Pc],[$c]:[Mc,kr,Ec,xc,kr,kc,Tc,kr,Ac,Rc,Lc,kr,Nc,Fc,zc]};function Wc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vc="built",Uc="building",Gc=["click","input","keydown","keypress","keyup","focus","blur","change"];class Kc{static get DEFAULTS(){return(0,s.o8)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}constructor(e,t){Wc(this,"hot",void 0),Wc(this,"eventManager",new we.A(this)),Wc(this,"options",void 0),Wc(this,"_element",void 0),Wc(this,"buildState",void 0),this.hot=e,this.options=(0,s.X$)(Kc.DEFAULTS,t),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName)}setValue(e){this.options.value=e,this.update()}getValue(){return this.options.value}get element(){return this.buildState===Uc?this._element:this.buildState===Vc?(this.update(),this._element):(this.buildState=Uc,this.build(),this.buildState=Vc,this._element)}isBuilt(){return this.buildState===Vc}translateIfPossible(e){return"string"==typeof e&&e.startsWith(Me.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}build(){const e=(e,t)=>{this.eventManager.addEventListener(e,t,(e=>this.runLocalHooks(t,e,this)))};if(this.buildState||(this.buildState=Uc),this._element.setAttribute("data-hot-input",!0),void 0!==this.options.tabIndex&&this._element.setAttribute("tabindex",this.options.tabIndex),void 0!==this.options.role&&this._element.setAttribute("role",this.options.role),this.options.className&&(0,i.iQ)(this._element,this.options.className),this.options.children.length)(0,d.z0)(this.options.children,(e=>this._element.appendChild(e.element)));else if(this.options.wrapIt){const t=this.hot.rootDocument.createElement(this.options.tagName);t.setAttribute("data-hot-input",!0),(0,s.v4)(this.options,((e,n)=>{void 0!==t[n]&&"className"!==n&&"tagName"!==n&&"children"!==n&&(t[n]=this.translateIfPossible(e))})),this._element.appendChild(t),(0,d.z0)(Gc,(n=>e(t,n)))}else(0,d.z0)(Gc,(t=>e(this._element,t)))}update(){}reset(){this.options.value="",this.update()}show(){this.element.style.display=""}hide(){this.element.style.display="none"}focus(){}destroy(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}function qc(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xc(e,t){return e.get(Jc(e,t))}function Jc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(0,s.co)(Kc,Zi.A);var Qc=new WeakMap,Zc=new WeakSet;class ed extends Kc{static get DEFAULTS(){return(0,s.o8)({placeholder:"",type:"text",tagName:"input",tabIndex:-1})}constructor(e,t){var n;super(e,(0,s.X$)(ed.DEFAULTS,t)),qc(this,n=Zc),n.add(this),function(e,t){qc(e,t),t.set(e,void 0)}(this,Qc),this.registerHooks()}registerHooks(){this.addLocalHook("keyup",(e=>Jc(Zc,this,td).call(this,e)))}build(){super.build();const e=this.hot.rootDocument.createElement("div");var t,n;t=Qc,n=this._element.firstChild,t.set(Jc(t,this),n),(0,i.iQ)(this._element,"htUIInput"),(0,i.iQ)(e,"htUIInputIcon"),this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(Xc(Qc,this).type=this.options.type,Xc(Qc,this).placeholder=this.translateIfPossible(this.options.placeholder),Xc(Qc,this).value=this.translateIfPossible(this.options.value))}focus(){this.isBuilt()&&Xc(Qc,this).focus()}}function td(e){this.options.value=e.target.value}function nd(e,t,n){od(e,t),t.set(e,n)}function od(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function id(e,t,n){return e.set(sd(e,t),n),n}function rd(e,t){return e.get(sd(e,t))}function sd(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var ad=new WeakMap,ld=new WeakMap,cd=new WeakMap,dd=new WeakMap,ud=new WeakMap,hd=new WeakSet;class md extends Kc{static get DEFAULTS(){return(0,s.o8)({className:"htUISelect",wrapIt:!1,tabIndex:-1})}constructor(e,t){var n;super(e,(0,s.X$)(md.DEFAULTS,t)),od(this,n=hd),n.add(this),nd(this,ad,null),nd(this,ld,[]),nd(this,cd,void 0),nd(this,dd,void 0),nd(this,ud,void 0),this.registerHooks()}getMenu(){return rd(ad,this)}registerHooks(){this.addLocalHook("click",(()=>sd(hd,this,gd).call(this)))}setItems(e){id(ld,this,this.translateNames(e)),rd(ad,this)&&rd(ad,this).setMenuItems(rd(ld,this))}translateNames(e){return(0,d.z0)(e,(e=>{e.name=this.translateIfPossible(e.name)})),e}build(){super.build(),id(ad,this,new ia(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0,container:this.options.menuContainer})),rd(ad,this).setMenuItems(rd(ld,this));const e=new Kc(this.hot,{className:"htUISelectCaption"}),t=new Kc(this.hot,{className:"htUISelectDropdown"});id(cd,this,e),id(dd,this,e.element),id(ud,this,t),this.hot.getSettings().ariaTags&&((0,i.Bq)(t.element,[(0,f.MG)()]),(0,i.Bq)(this._element,[(0,f.$o)()])),(0,d.z0)([e,t],(e=>this._element.appendChild(e.element))),rd(ad,this).addLocalHook("select",(e=>sd(hd,this,pd).call(this,e))),rd(ad,this).addLocalHook("afterClose",(()=>sd(hd,this,fd).call(this))),this.update()}update(){if(!this.isBuilt())return;let e;e=this.options.value?this.options.value.name:rd(ad,this).hot.getTranslatedPhrase(Me.FILTERS_CONDITIONS_NONE),rd(dd,this).textContent=e,super.update()}openOptions(){const e=this.element.getBoundingClientRect();rd(ad,this)&&(rd(ad,this).open(),rd(ad,this).setPosition({left:this.hot.isLtr()?e.left-5:e.left-31,top:e.top-1,width:e.width,height:e.height}),rd(ad,this).getNavigator().toFirstItem(),rd(ad,this).getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],callback:e=>{this.closeOptions(),this.runLocalHooks("tabKeydown",e)}},{keys:[["Control/Meta","A"]],callback:()=>!1}]))}closeOptions(){rd(ad,this)&&rd(ad,this).close()}focus(){this.isBuilt()&&this.element.focus()}destroy(){rd(ad,this)&&(rd(ad,this).destroy(),id(ad,this,null)),rd(cd,this)&&rd(cd,this).destroy(),rd(ud,this)&&rd(ud,this).destroy(),super.destroy()}}function pd(e){e.name!==kr&&(this.options.value=e,this.update(),this.runLocalHooks("select",this.options.value))}function fd(){this.runLocalHooks("afterClose")}function gd(){this.openOptions()}function bd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vd(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var yd=new WeakSet;class wd extends yc{constructor(e,t){var n,o;super(e,{id:t.id,stateless:!1}),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,o=yd),o.add(n),bd(this,"name",""),bd(this,"addSeparator",!1),this.name=t.name,this.addSeparator=t.addSeparator,this.elements.push(new md(this.hot,{menuContainer:t.menuContainer})),this.elements.push(new ed(this.hot,{placeholder:Me.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),this.elements.push(new ed(this.hot,{placeholder:Me.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),this.registerHooks()}registerHooks(){this.getSelectElement().addLocalHook("select",(e=>vd(yd,this,Cd).call(this,e))).addLocalHook("afterClose",(()=>this.runLocalHooks("afterClose"))).addLocalHook("tabKeydown",(e=>this.runLocalHooks("selectTabKeydown",e))),(0,d.z0)(this.getInputElements(),(e=>{e.addLocalHook("keydown",(e=>vd(yd,this,_d).call(this,e)))}))}setState(e){if(this.reset(),!e)return;const t=(0,s.o8)(e.command);t.name.startsWith(Me.FILTERS_CONDITIONS_NAMESPACE)&&(t.name=this.hot.getTranslatedPhrase(t.name)),this.getSelectElement().setValue(t),(0,d.z0)(e.args,((e,n)=>{if(n>t.inputsCount-1)return!1;const o=this.getInputElement(n);o.setValue(e),o[t.inputsCount>n?"show":"hide"](),n||this.hot._registerTimeout((()=>o.focus()),10)}))}getState(){const e=this.getSelectElement().getValue()||_c(Mc),t=[];return(0,d.z0)(this.getInputElements(),((n,o)=>{e.inputsCount>o&&t.push(n.getValue())})),{command:e,args:t}}updateState(e,t){const n=_c(e?e.name:Mc);this.state.setValueAtIndex(t,{command:n,args:e?e.args:[]}),e||(0,d.z0)(this.getInputElements(),(e=>e.setValue(null)))}getSelectElement(){return this.elements.filter((e=>e instanceof md))[0]}getInputElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}getInputElements(){return this.elements.filter((e=>e instanceof ed))}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,n,o,r,s)=>{(0,i.iQ)(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&(0,i.iQ)(t.parentNode,"border");const a=this.hot.rootDocument.createElement("div");return(0,i.iQ)(a,"htFiltersMenuLabel"),a.textContent=s,t.appendChild(a),t.parentElement.hasAttribute("ghost-table")||(0,d.z0)(this.elements,(e=>t.appendChild(e.element))),t}}}reset(){const e=this.hot.getPlugin("filters").getSelectedColumn();let t=[_c(Mc)];if(null!==e){const{visualIndex:n}=e;t=function(e){const t=[];let n=e;return Bc[n]||(n=Yc),(0,d.z0)(Bc[n],(e=>{let n;n=e===kr?{name:kr}:(0,s.o8)(_c(e)),t.push(n)})),t}(this.hot.getDataType(0,n,this.hot.countRows(),n))}(0,d.z0)(this.getInputElements(),(e=>e.hide())),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function Cd(e){(0,d.z0)(this.getInputElements(),((t,n)=>{t[e.inputsCount>n?"show":"hide"](),0===n&&this.hot._registerTimeout((()=>t.focus()),10)})),this.runLocalHooks("change",e)}function _d(e){(0,m.m0)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,r.CA)(e))}const Sd={};function Md(e,t,n){Sd[e]={name:t,func:n}}const Ed="conjunction",xd=Me.FILTERS_LABELS_CONJUNCTION;Md(Ed,xd,(function(e,t){return e.every((e=>e.func(t)))}));const kd="disjunction",Td=Me.FILTERS_LABELS_DISJUNCTION;Md(kd,Td,(function(e,t){return e.some((e=>e.func(t)))}));const Rd="disjunctionWithExtraCondition",Ad=Me.FILTERS_LABELS_DISJUNCTION;function Ld(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Od(e,t){return e.get(Hd(e,t))}function Dd(e,t,n){return e.set(Hd(e,t),n),n}function Hd(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Md(Rd,Ad,(function(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some((e=>e.func(t)))&&e[e.length-1].func(t)}));var Id=new WeakMap,Pd=new WeakMap;class Nd extends Kc{static get DEFAULTS(){return(0,s.o8)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}constructor(e,t){super(e,(0,s.X$)(Nd.DEFAULTS,t)),Ld(this,Id,void 0),Ld(this,Pd,void 0)}build(){super.build();const e=this.hot.rootDocument.createElement("label");e.textContent=this.translateIfPossible(this.options.label.textContent),e.htmlFor=this.translateIfPossible(this.options.label.htmlFor),Dd(Pd,this,e),Dd(Id,this,this._element.firstChild),Od(Id,this).checked=this.options.checked,this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(Od(Pd,this).textContent=this.translateIfPossible(this.options.label.textContent))}isChecked(){return!!this.isBuilt()&&Od(Id,this).checked}setChecked(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isBuilt()&&(Od(Id,this).checked=e)}focus(){this.isBuilt()&&Od(Id,this).focus()}}var Fd=new WeakSet;class zd extends yc{constructor(e,t){var n,o;super(e,{id:t.id,stateless:!1}),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,o=Fd),o.add(n),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"name",""),this.name=t.name,this.buildOperatorsElement()}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>((0,i.iQ)(t.parentNode,"htFiltersMenuOperators"),(0,d.z0)(this.elements,(e=>t.appendChild(e.element))),t)}}buildOperatorsElement(){const e=[Ed,kd];(0,d.z0)(e,(t=>{const n=new Nd(this.hot,{name:"operator",label:{htmlFor:t,textContent:(o=t,Sd[o].name)},value:t,checked:t===e[0],id:t});var o;n.addLocalHook("change",(e=>function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(Fd,this,jd).call(this,e))),this.elements.push(n)}))}setChecked(e){if(this.elements.length<e)throw Error(bi.O`Radio button with index ${e} doesn't exist.`);(0,d.z0)(this.elements,((t,n)=>{t.setChecked(n===e)}))}getActiveOperationId(){const e=this.elements.find((e=>e instanceof Nd&&e.isChecked()));return e?e.getValue():Ed}getState(){return this.getActiveOperationId()}setState(e){this.reset(),e&&this.getActiveOperationId()!==e&&(0,d.z0)(this.elements,(t=>{t.setChecked(t.getValue()===e)}))}updateState(){let e=arguments.length>1?arguments[1]:void 0,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ed;t===Rd&&(t=kd),this.state.setValueAtIndex(e,t)}reset(){this.setChecked(0)}}function jd(e){this.setState(e.target.value)}function Yd(e,t){let n=e;return""===n&&(n=`(${t})`),n}function $d(e){const t=new Set(e);return function(e){return t.has(e)}}function Bd(e){return null==e?"":e}function Wd(e){return Array.from(new Set(e)).map((e=>Bd(e))).sort(((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1))}function Vd(e,t,n,o){const i=[],r=e===t;let s;return r||(s=$d(t)),e.forEach((e=>{let t=!1;(r||s(e))&&(t=!0);const a={checked:t,value:e,visualValue:Yd(e,n)};o&&o(a),i.push(a)})),i}(0,hn.II)();var Ud=n(85874);function Gd(e,t){return e.get(Kd(e,t))}function Kd(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var qd=new WeakMap;class Xd extends Kc{static get DEFAULTS(){return(0,s.o8)({href:"#",tagName:"a",tabIndex:-1,role:"button"})}constructor(e,t){var n,o,i;super(e,(0,s.X$)(Xd.DEFAULTS,t)),i=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,o=qd),o.set(n,i)}build(){var e,t;super.build(),e=qd,t=this._element.firstChild,e.set(Kd(e,this),t)}update(){this.isBuilt()&&(Gd(qd,this).textContent=this.translateIfPossible(this.options.textContent))}focus(){this.isBuilt()&&Gd(qd,this).focus()}activate(){Gd(qd,this).click()}}function Jd(e,t,n){Qd(e,t),t.set(e,n)}function Qd(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Zd(e,t){return e.get(tu(e,t))}function eu(e,t,n){return e.set(tu(e,t),n),n}function tu(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const nu="multipleSelect.itemBox";var ou=new WeakMap,iu=new WeakMap,ru=new WeakMap,su=new WeakMap,au=new WeakMap,lu=new WeakMap,cu=new WeakSet;class du extends Kc{static get DEFAULTS(){return(0,s.o8)({className:"htUIMultipleSelect",value:[]})}constructor(e,t){var n;super(e,(0,s.X$)(du.DEFAULTS,t)),Qd(this,n=cu),n.add(this),Jd(this,ou,[]),Jd(this,iu,void 0),Jd(this,ru,void 0),Jd(this,su,void 0),Jd(this,au,void 0),Jd(this,lu,void 0),eu(su,this,new ed(this.hot,{placeholder:Me.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"})),eu(au,this,new Xd(this.hot,{textContent:Me.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"})),eu(lu,this,new Xd(this.hot,{textContent:Me.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"})),this.registerHooks()}getItemsBox(){return Zd(iu,this)}registerHooks(){Zd(su,this).addLocalHook("keydown",(e=>tu(cu,this,hu).call(this,e))),Zd(su,this).addLocalHook("input",(e=>tu(cu,this,uu).call(this,e))),Zd(au,this).addLocalHook("click",(e=>tu(cu,this,mu).call(this,e))),Zd(lu,this).addLocalHook("click",(e=>tu(cu,this,pu).call(this,e)))}setItems(e){var t;eu(ou,this,e),null===(t=Zd(iu,this))||void 0===t||t.loadData(Zd(ou,this))}setLocale(e){eu(ru,this,e)}getLocale(){return Zd(ru,this)}getItems(){return[...Zd(ou,this)]}getValue(){return function(e){const t=[];return e.forEach((e=>{e.checked&&t.push(e.value)})),t}(Zd(ou,this))}getSearchInputElement(){return Zd(su,this)}getSelectAllElement(){return Zd(au,this)}getClearAllElement(){return Zd(lu,this)}isSelectedAllValues(){return Zd(ou,this).length===this.getValue().length}build(){super.build();const{rootDocument:e}=this.hot,t=e.createElement("div"),n=new Kc(this.hot,{className:"htUISelectionControls",children:[Zd(au,this),Zd(lu,this)]});this._element.appendChild(Zd(su,this).element),this._element.appendChild(n.element),this._element.appendChild(t);const o=t=>{var n;if(!this._element)return;null===(n=Zd(iu,this))||void 0===n||n.destroy(),(0,i.iQ)(t,"htUIMultipleSelectHot"),eu(iu,this,new this.hot.constructor(t,{data:Zd(ou,this),columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:(e,t,n,o,i,r)=>{e.title=r.instance.getDataAtRowProp(t,r.label.property)},afterListen:()=>{this.runLocalHooks("focus",this)},beforeOnCellMouseUp:()=>{Zd(iu,this).listen()},modifyColWidth:t=>{const n=Zd(iu,this).container.scrollWidth-(0,i.XJ)(e);return void 0!==t&&t<n?n:t},maxCols:1,autoWrapCol:!0,height:110,copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},themeName:this.hot.getCurrentThemeName(),layoutDirection:this.hot.isRtl()?"rtl":"ltr"})),Zd(iu,this).init(),this.hot.addHook("afterSetTheme",((e,t)=>{t||Zd(iu,this).useTheme(e)}));const o=Zd(iu,this).getShortcutManager().getContext("grid");o.removeShortcutsByKeys(["Tab"]),o.removeShortcutsByKeys(["Shift","Tab"]),o.addShortcut({keys:[["Escape"]],callback:e=>{this.runLocalHooks("keydown",e,this)},group:nu}),o.addShortcut({keys:[["Tab"],["Shift","Tab"]],callback:e=>{Zd(iu,this).deselectCell(),this.runLocalHooks("keydown",e,this),this.runLocalHooks("listTabKeydown",e,this)},group:nu})};o(t),this.hot._registerTimeout((()=>o(t)),100)}focus(){this.isBuilt()&&Zd(iu,this).listen()}reset(){Zd(su,this).reset(),Zd(au,this).reset(),Zd(lu,this).reset()}update(){this.isBuilt()&&(Zd(iu,this).loadData(function(e,t){const n=$d(t);return e.map((e=>(e.checked=n(e.value),e)))}(Zd(ou,this),this.options.value)),super.update())}destroy(){var e;null===(e=Zd(iu,this))||void 0===e||e.destroy(),Zd(su,this).destroy(),Zd(lu,this).destroy(),Zd(au,this).destroy(),eu(su,this,null),eu(lu,this,null),eu(au,this,null),eu(iu,this,null),eu(ou,this,null),super.destroy()}}function uu(e){const t=e.target.value.toLocaleLowerCase(this.getLocale());let n;n=""===t?[...Zd(ou,this)]:Zd(ou,this).filter((e=>`${e.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0)),Zd(iu,this).loadData(n)}function hu(e){this.runLocalHooks("keydown",e,this),(0,g.OH)(m.m0,e.keyCode)("ARROW_DOWN")&&(e.preventDefault(),(0,r.CA)(e),Zd(iu,this).listen(),Zd(iu,this).selectCell(0,0))}function mu(e){const t=[];e.preventDefault(),Zd(iu,this).getSourceData().forEach(((e,n)=>{e.checked=!0,t.push((0,Ud.Wm)(e,n)[0])})),Zd(iu,this).setSourceDataAtCell(t)}function pu(e){const t=[];e.preventDefault(),Zd(iu,this).getSourceData().forEach(((e,n)=>{e.checked=!1,t.push((0,Ud.Wm)(e,n)[0])})),Zd(iu,this).setSourceDataAtCell(t)}const fu="by_value";function gu(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Sc(fu,(function(e,t){let[n]=t;return n(e.value)}),{name:"By value",inputsCount:0,inputValuesDecorator(e){let[t]=e;return[$d(t)]},showOperators:!1});var bu,vu=new WeakSet;class yu extends yc{constructor(e,t){var n,o;super(e,{id:t.id,stateless:!1}),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,o=vu),o.add(n),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"name",""),this.name=t.name,this.elements.push(new du(this.hot)),this.registerHooks()}registerHooks(){this.getMultipleSelectElement().addLocalHook("keydown",(e=>gu(vu,this,wu).call(this,e))).addLocalHook("listTabKeydown",(e=>this.runLocalHooks("listTabKeydown",e))),this.hot.addHook("modifyFiltersMultiSelectValue",((e,t)=>gu(vu,this,_u).call(this,e,t)))}getElements(){const e=this.getMultipleSelectElement();return[e.getSearchInputElement(),e.getSelectAllElement(),e.getClearAllElement(),this.getMultipleSelectElement()]}setState(e){if(this.reset(),e&&e.command.key===fu){const t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}getState(){const e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?Mc:fu},args:[e.getValue()],itemsSnapshot:t}}updateState(e){const t=(t,n,o,i,r)=>{const[s]=(0,d.y0)(n,(e=>e.name===fu)),a={},l=this.hot.getTranslatedPhrase(Me.FILTERS_VALUES_BLANK_CELLS);if(s){const n=i(t,r),c=(0,d.YD)(n,(e=>e.value)),u=new Map(n.map((e=>[e.value,this.hot.getCellMeta(e.meta.visualRow,e.meta.visualCol)]))),h=Wd(c);o&&(s.args[0]=o);const m=[],p=Vd(h,s.args[0],l,(e=>{e.checked&&m.push(e.value),gu(vu,this,Cu).call(this,e,u)})),f=e.editedConditionStack.column;a.locale=this.hot.getCellMeta(0,f).locale,a.args=[m],a.command=_c(fu),a.itemsSnapshot=p}else a.args=[],a.command=_c(Mc);this.state.setValueAtIndex(t,a)};t(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&t(e.dependentConditionStacks[0].column,e.dependentConditionStacks[0].conditions,e.conditionArgsChange,e.filteredRowsFactory,e.editedConditionStack)}getMultipleSelectElement(){return this.elements.filter((e=>e instanceof du))[0]}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,n,o,r,s)=>{(0,i.iQ)(t.parentNode,"htFiltersMenuValue");const a=this.hot.rootDocument.createElement("div");return(0,i.iQ)(a,"htFiltersMenuLabel"),a.textContent=s,t.appendChild(a),t.parentElement.hasAttribute("ghost-table")||(0,d.z0)(this.elements,(e=>t.appendChild(e.element))),t}}}reset(){const e=this.hot.getTranslatedPhrase(Me.FILTERS_VALUES_BLANK_CELLS),t=this._getColumnVisibleValues(),n=t.map((e=>e.value)),o=new Map(t.map((e=>[e.value,e.meta]))),i=Wd(n),r=Vd(i,i,e,(e=>{gu(vu,this,Cu).call(this,e,o)}));this.getMultipleSelectElement().setItems(r),super.reset(),this.getMultipleSelectElement().setValue(i);const s=this.hot.getPlugin("filters").getSelectedColumn();null!==s&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,s.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,d.YD)(this.hot.getDataAtCol(e.visualIndex),((t,n)=>({value:Bd(t),meta:this.hot.getCellMeta(n,e.visualIndex)})))}}function wu(e){(0,m.m0)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,r.CA)(e))}function Cu(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function _u(e,t){return"numeric"===t.type?xt(e,t):e}var Su=new WeakSet;class Mu extends yc{static get BUTTON_OK(){return"ok"}static get BUTTON_CANCEL(){return"cancel"}constructor(e,t){var n,o;super(e,{id:t.id,stateless:!0}),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,o=Su),o.add(n),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"name",""),this.name=t.name,this.elements.push(new ed(this.hot,{type:"button",value:Me.FILTERS_BUTTONS_OK,className:"htUIButton htUIButtonOK",identifier:Mu.BUTTON_OK})),this.elements.push(new ed(this.hot,{type:"button",value:Me.FILTERS_BUTTONS_CANCEL,className:"htUIButton htUIButtonCancel",identifier:Mu.BUTTON_CANCEL})),this.registerHooks()}registerHooks(){(0,d.z0)(this.elements,(e=>{e.addLocalHook("click",((e,t)=>function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(Su,this,Eu).call(this,e,t)))}))}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>((0,i.iQ)(t.parentNode,"htFiltersMenuActionBar"),(0,d.z0)(this.elements,(e=>t.appendChild(e.element))),t)}}accept(){this.runLocalHooks("accept")}cancel(){this.runLocalHooks("cancel")}}function Eu(e,t){t.options.identifier===bu.BUTTON_OK?this.accept():this.cancel()}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}bu=Mu;const ku="ConditionCollection.filteringStates";class Tu{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];xu(this,"hot",void 0),xu(this,"isMapRegistrable",void 0),xu(this,"filteringStates",new ti.z),this.hot=e,this.isMapRegistrable=t,!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap(ku,this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexes())}isEmpty(){return 0===this.getFilteredColumns().length}isMatch(e,t){var n;const o=this.filteringStates.getValueAtIndex(t),i=null!==(n=null==o?void 0:o.conditions)&&void 0!==n?n:[],r=null==o?void 0:o.operation;return this.isMatchInConditions(i,e,r)}isMatchInConditions(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ed;return!e.length||function(e){if(!Sd[e])throw Error(`Operation with id "${e}" does not exist.`);const t=Sd[e].func;return function(e,n){return t(e,n)}}(n)(e,t)}addCondition(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ed,o=arguments.length>3?arguments[3]:void 0;const i=this.hot.getCellMeta(0,e).locale,r=t.args.map((e=>"string"==typeof e?e.toLocaleLowerCase(i):e)),s=t.name||t.command.key;this.runLocalHooks("beforeAdd",e);const a=this.getOperation(e);if(a){if(a!==n)throw Error(bi.O`The column of index ${e} has been already applied with a \`${a}\`\x20
  5. filter operation. Use \`removeConditions\` to clear the current conditions and then add new ones.\x20
  6. Mind that you cannot mix different types of operations (for instance, if you use \`conjunction\`,\x20
  7. use it consequently for a particular column).`)}else if((0,u.b0)(Sd[n]))throw new Error(bi.O`Unexpected operation named \`${n}\`. Possible ones are\x20
  8. \`disjunction\` and \`conjunction\`.`);const l=this.getConditions(e);0===l.length?this.filteringStates.setValueAtIndex(e,{operation:n,conditions:[{name:s,args:r,func:Cc(s,r)}]},o):l.push({name:s,args:r,func:Cc(s,r)}),this.runLocalHooks("afterAdd",e)}getConditions(e){var t,n;return null!==(t=null===(n=this.filteringStates.getValueAtIndex(e))||void 0===n?void 0:n.conditions)&&void 0!==t?t:[]}getOperation(e){var t;return null===(t=this.filteringStates.getValueAtIndex(e))||void 0===t?void 0:t.operation}getFilteredColumns(){return this.filteringStates.getEntries().map((e=>{let[t]=e;return t}))}getColumnStackPosition(e){return this.getFilteredColumns().indexOf(e)}exportAllConditions(){return this.filteringStates.getEntries().reduce(((e,t)=>{let[n,{operation:o,conditions:i}]=t;return e.push({column:n,operation:o,conditions:i.map((e=>{let{name:t,args:n}=e;return{name:t,args:[...n]}}))}),e}),[])}importAllConditions(e){this.clean(),e.forEach((e=>{e.conditions.forEach((t=>this.addCondition(e.column,t)))}))}removeConditions(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}clean(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}hasConditions(e,t){const n=this.getConditions(e);return t?n.some((e=>e.name===t)):n.length>0}destroy(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(ku),this.filteringStates=null,this.clearLocalHooks()}}(0,s.co)(Tu,Zi.A);const Ru=Tu;function Au(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lu=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>[];Au(this,"conditionCollection",void 0),Au(this,"columnDataFactory",void 0),this.conditionCollection=e,this.columnDataFactory=t}filter(){let e=[];return(0,d.z0)(this.conditionCollection.getFilteredColumns(),((t,n)=>{let o=this.columnDataFactory(t);n&&(o=this._getIntersectData(o,e)),e=this.filterByColumn(t,o)})),e}filterByColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=[];return(0,d.z0)(t,(t=>{void 0!==t&&this.conditionCollection.isMatch(t,e)&&n.push(t)})),n}_getIntersectData(e,t){const n=[];return(0,d.z0)(t,(t=>{const o=t.meta.visualRow;void 0!==e[o]&&(n[o]=e[o])})),n}};function Ou(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Du(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Hu=new WeakSet;class Iu{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[];var o,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(o=this,i=Hu),i.add(o),Ou(this,"hot",void 0),Ou(this,"conditionCollection",void 0),Ou(this,"columnDataFactory",void 0),Ou(this,"changes",[]),Ou(this,"grouping",!1),Ou(this,"latestEditedColumnPosition",-1),Ou(this,"latestOrderStack",[]),this.hot=e,this.conditionCollection=t,this.columnDataFactory=n,this.conditionCollection.addLocalHook("beforeRemove",(e=>Du(Hu,this,Pu).call(this,e))),this.conditionCollection.addLocalHook("afterRemove",(e=>this.updateStatesAtColumn(e))),this.conditionCollection.addLocalHook("afterAdd",(e=>this.updateStatesAtColumn(e))),this.conditionCollection.addLocalHook("beforeClean",(()=>Du(Hu,this,Nu).call(this))),this.conditionCollection.addLocalHook("afterClean",(()=>Du(Hu,this,Fu).call(this)))}groupChanges(){this.grouping=!0}flush(){this.grouping=!1,(0,d.z0)(this.changes,(e=>{this.updateStatesAtColumn(e)})),this.changes.length=0}updateStatesAtColumn(e,t){var n=this;if(this.grouping)return void(-1===this.changes.indexOf(e)&&this.changes.push(e));const o=this.conditionCollection.exportAllConditions();let i=this.conditionCollection.getColumnStackPosition(e);-1===i&&(i=this.latestEditedColumnPosition);const r=o.slice(0,i),s=o.slice(i);s.length&&s[0].column===e&&s.shift();const a=(0,g.cF)((function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const i=new Ru(n.hot,!1),r=[].concat(e,o);i.importAllConditions(r);const s=n.columnDataFactory(t);let a;a=i.isEmpty()?s:new Lu(i,(e=>n.columnDataFactory(e))).filter(),a=(0,d.YD)(a,(e=>e.meta.visualRow));const l=$d(a);return i.destroy(),(0,d.y0)(s,(e=>l(e.meta.visualRow)))}))(r),l=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:l},dependentConditionStacks:s,filteredRowsFactory:a,conditionArgsChange:t})}destroy(){this.clearLocalHooks(),(0,s.v4)(this,((e,t)=>{this[t]=null}))}}function Pu(e){this.latestEditedColumnPosition=this.conditionCollection.getColumnStackPosition(e)}function Nu(){this.latestOrderStack=this.conditionCollection.getFilteredColumns()}function Fu(){(0,d.z0)(this.latestOrderStack,(e=>{this.updateStatesAtColumn(e)}))}(0,s.co)(Iu,Zi.A);const zu=Iu,ju="filters";var Yu=n(41496);function $u(e,t,n){Bu(e,t),t.set(e,n)}function Bu(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vu(e,t,n){return e.set(Gu(e,t),n),n}function Uu(e,t){return e.get(Gu(e,t))}function Gu(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const Ku="filters",qu=Ku;var Xu=new WeakMap,Ju=new WeakMap,Qu=new WeakMap,Zu=new WeakSet;class eh extends dn{static get PLUGIN_KEY(){return Ku}static get PLUGIN_PRIORITY(){return 250}static get PLUGIN_DEPS(){return["plugin:DropdownMenu","plugin:HiddenRows","cell-type:checkbox"]}constructor(e){var t,n;super(e),t=this,Bu(this,n=Zu),n.add(this),Wu(this,"dropdownMenuPlugin",null),Wu(this,"conditionCollection",null),Wu(this,"conditionUpdateObserver",null),Wu(this,"components",new Map([["filter_by_condition",null],["filter_operators",null],["filter_by_condition2",null],["filter_by_value",null],["filter_action_bar",null]])),Wu(this,"filtersRowsMap",null),$u(this,Xu,void 0),$u(this,Ju,new WeakSet),$u(this,Qu,[]),this.hot.addHook("afterGetColHeader",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Gu(Zu,t,ch).call(t,...n)}))}isEnabled(){return!!this.hot.getSettings()[Ku]}enablePlugin(){var e=this;if(this.enabled)return;this.filtersRowsMap=this.hot.rowIndexMapper.registerMap(this.pluginName,new Yu.q),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");const t=this.hot.getSettings().dropdownMenu,n=t&&t.uiContainer||this.hot.rootDocument.body,o=e=>(e.addLocalHook("accept",(()=>Gu(Zu,this,sh).call(this,"accept"))),e.addLocalHook("cancel",(()=>Gu(Zu,this,sh).call(this,"cancel"))),e.addLocalHook("change",(t=>Gu(Zu,this,ah).call(this,e,t))),e),r=()=>`${this.hot.getTranslatedPhrase(Me.FILTERS_DIVS_FILTER_BY_CONDITION)}:`;if(!this.components.get("filter_by_condition")){const e=new wd(this.hot,{id:"filter_by_condition",name:r,addSeparator:!1,menuContainer:n});e.addLocalHook("afterClose",(()=>Gu(Zu,this,lh).call(this))),this.components.set("filter_by_condition",o(e))}if(this.components.get("filter_operators")||this.components.set("filter_operators",new zd(this.hot,{id:"filter_operators",name:"Operators"})),!this.components.get("filter_by_condition2")){const e=new wd(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0,menuContainer:n});e.addLocalHook("afterClose",(()=>Gu(Zu,this,lh).call(this))),this.components.set("filter_by_condition2",o(e))}if(this.components.get("filter_by_value")||this.components.set("filter_by_value",o(new yu(this.hot,{id:"filter_by_value",name:()=>`${this.hot.getTranslatedPhrase(Me.FILTERS_DIVS_FILTER_BY_VALUE)}:`}))),this.components.get("filter_action_bar")||this.components.set("filter_action_bar",o(new Mu(this.hot,{id:"filter_action_bar",name:"Action bar"}))),this.conditionCollection||(this.conditionCollection=new Ru(this.hot)),this.conditionUpdateObserver||(this.conditionUpdateObserver=new zu(this.hot,this.conditionCollection,(e=>this.getDataMapAtColumn(e))),this.conditionUpdateObserver.addLocalHook("update",(e=>Gu(Zu,this,dh).call(this,e)))),this.components.forEach((e=>e.show())),this.addHook("afterDropdownMenuDefaultOptions",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Gu(Zu,e,rh).call(e,...n)})),this.addHook("beforeDropdownMenuShow",(()=>Gu(Zu,this,ih).call(this))),this.addHook("afterDropdownMenuShow",(()=>Gu(Zu,this,nh).call(this))),this.addHook("afterDropdownMenuHide",(()=>Gu(Zu,this,oh).call(this))),this.addHook("afterChange",(e=>Gu(Zu,this,th).call(this,e))),this.hot.getSettings().dropdownMenu&&this.dropdownMenuPlugin&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),!Uu(Xu,this)&&this.dropdownMenuPlugin.enabled){const e=[{focus:()=>{const e=Uu(Xu,this).getMenu(),t=e.getNavigator(),n=Uu(Xu,this).getLastMenuPage();e.focus(),n>0?t.setCurrentPage(n):t.toFirstItem()}},...Array.from(this.components).map((e=>{let[,t]=e;return t.getElements()})).flat()];Vu(Xu,this,function(e,t){let n,o=-1;const r=(s=t,$s({initialPage:0,size:()=>s.length,onItemSelect:(e,t)=>{const n=s[e];return n instanceof du?t:!(n.element&&!(0,i.zN)(n.element))&&void n.focus()}}));var s;const a=e=>()=>{n.isOpened()&&n.getKeyboardShortcutsCtrl().listen(ju),r.setCurrentPage(t.indexOf(e))};function l(e){const i=n.getKeyboardShortcutsCtrl(),s=e.getKeyboardShortcutsCtrl();r.clear(),s.addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],forwardToContext:i.getContext(ju),callback:()=>{e.isSubMenu()&&e.close(),i.listen(ju)}}]),e.isSubMenu()||i.addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],callback:e=>{const t=n.getNavigator();t.getCurrentPage()>-1&&(o=t.getCurrentPage()),t.clear(),e.shiftKey?r.toPreviousItem():r.toNextItem()}},{keys:[["Escape"]],callback:()=>{n.close()}},{keys:[["Enter"],["Space"]],preventDefault:!1,callback:e=>{const n=t[r.getCurrentPage()];n instanceof md&&(n.openOptions(),e.preventDefault()),n instanceof Xd&&(n.activate(),e.preventDefault()),n instanceof Kc||e.preventDefault()}}],ju)}function c(e){e.addLocalHook("afterSelectionChange",(e=>{e.key.startsWith("filter_")||r.clear()})),e.addLocalHook("afterSubmenuOpen",l),e.addLocalHook("afterOpen",l),n=e}return t.forEach((e=>{e instanceof Kc&&(e.addLocalHook("click",a(e)),e.addLocalHook("focus",a(e)),e.addLocalHook("afterClose",a(e)))})),c(e),{...r,listen:function(){n.focus(),n.getKeyboardShortcutsCtrl().listen(ju)},setMenu:c,getMenu:function(){return n},getLastMenuPage:function(){return o}}}(this.dropdownMenuPlugin.menu,e));const t=e=>{Uu(Xu,this).listen(),e.preventDefault(),(0,m.m0)(e.keyCode,"TAB")&&(e.shiftKey?Uu(Xu,this).toPreviousItem():Uu(Xu,this).toNextItem())};this.components.get("filter_by_value").addLocalHook("listTabKeydown",t),this.components.get("filter_by_condition").addLocalHook("selectTabKeydown",t)}this.registerShortcuts(),super.enablePlugin()}disablePlugin(){var e;this.enabled&&(null!==(e=this.dropdownMenuPlugin)&&void 0!==e&&e.enabled&&this.dropdownMenuPlugin.menu.clearLocalHooks(),this.components.forEach(((e,t)=>{e.destroy(),this.components.set(t,null)})),this.conditionCollection.destroy(),this.conditionCollection=null,this.hot.rowIndexMapper.unregisterMap(this.pluginName)),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Alt","A"]],stopPropagation:!0,callback:()=>{const e=this.hot.getSelected();this.clearConditions(),this.filter(),e&&this.hot.selectCells(e)},group:qu})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(qu)}addCondition(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ed;const i=this.hot.toPhysicalColumn(e);this.conditionCollection.addCondition(i,{command:{key:t},args:n},o)}removeConditions(e){const t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}clearConditions(e){if(void 0===e)this.conditionCollection.clean();else{const t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}}importConditions(e){this.conditionCollection.importAllConditions(e)}exportConditions(){return this.conditionCollection.exportAllConditions()}filter(){const{navigableHeaders:e}=this.hot.getSettings(),t=this._createDataFilter(),n=!this.conditionCollection.isEmpty();let o=[];const i=this.exportConditions(),r=this.hot.runHooks("beforeFilter",i,Uu(Qu,this));if(!1!==r&&n){const n=[];this.hot.batchExecution((()=>{this.filtersRowsMap.clear(),o=(0,d.YD)(t.filter(),(e=>e.meta.visualRow));const e=$d(o);(0,Et.Ti)(this.hot.countSourceRows()-1,(t=>{e(t)||n.push(t)})),(0,d.z0)(n,(e=>{this.filtersRowsMap.setValueAtIndex(e,!0)}))}),!0),e||o.length||this.hot.deselectCell(),Vu(Qu,this,this.exportConditions())}else!1===r||n?this.importConditions(Uu(Qu,this)):(Vu(Qu,this,this.exportConditions()),this.filtersRowsMap.clear());this.hot.selection.isSelected()&&this.hot.selectCell(e?-1:0,this.hot.getSelectedRangeLast().highlight.col),!1!==r&&(this.hot.runHooks("afterFilter",i),this.hot.view.adjustElementsSize(),this.hot.render())}getSelectedColumn(){var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t?{visualIndex:t.col,physicalIndex:this.hot.toPhysicalColumn(t.col)}:null}getDataMapAtColumn(e){const t=this.hot.toVisualColumn(e),n=[];return(0,d.z0)(this.hot.getSourceDataAtCol(t),((e,o)=>{var i;const{row:r,col:s,visualCol:a,visualRow:l,type:c,instance:d,dateFormat:u,locale:h}=this.hot.getCellMeta(o,t),m=null!==(i=this.hot.getDataAtCell(this.hot.toVisualRow(o),t))&&void 0!==i?i:e;n.push({meta:{row:r,col:s,visualCol:a,visualRow:l,type:c,instance:d,dateFormat:u,locale:h},value:Bd(m)})})),n}updateValueComponentCondition(e){const t=Wd(this.hot.getDataAtCol(e));this.conditionUpdateObserver.updateStatesAtColumn(e,t)}restoreComponents(e){var t;const n=null===(t=this.getSelectedColumn())||void 0===t?void 0:t.physicalIndex;e.forEach((e=>{e.isHidden()||e.restoreState(n)})),this.updateDependentComponentsVisibility()}getOperationBasedOnArguments(e,t,n,o){let i=e;return i===kd&&t.command.key!==Mc&&n.command.key!==Mc&&o.command.key!==Mc?i=Rd:o.command.key!==Mc&&(t.command.key!==Mc&&n.command.key!==Mc||(i=Ed)),i}setListeningDropdownMenu(){this.dropdownMenuPlugin&&this.dropdownMenuPlugin.setListening()}updateDependentComponentsVisibility(){const e=this.components.get("filter_by_condition"),{command:t}=e.getState(),n=[this.components.get("filter_by_condition2"),this.components.get("filter_operators")];t.showOperators?this.showComponents(...n):this.hideComponents(...n)}_createDataFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.conditionCollection;return new Lu(e,(e=>this.getDataMapAtColumn(e)))}getIndexesOfComponents(){const e=[];if(!this.dropdownMenuPlugin)return e;const t=this.dropdownMenuPlugin.menu;for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(0,d.z0)(o,(n=>{(0,d.z0)(t.menuItems,((t,o)=>{t.key===n.getMenuItemDescriptor().key&&e.push(o)}))})),e}changeComponentsVisibility(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.dropdownMenuPlugin)return;const t=this.dropdownMenuPlugin.menu.hotMenu,n=t.getPlugin("hiddenRows");for(var o=arguments.length,i=new Array(o>1?o-1:0),r=1;r<o;r++)i[r-1]=arguments[r];const s=this.getIndexesOfComponents(...i);e?n.showRows(s):n.hideRows(s),t.render()}hideComponents(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.changeComponentsVisibility(!1,...t)}showComponents(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.changeComponentsVisibility(!0,...t)}destroy(){this.enabled&&(this.components.forEach(((e,t)=>{null!==e&&(e.destroy(),this.components.set(t,null))})),this.conditionCollection.destroy(),this.conditionUpdateObserver.destroy(),this.hot.rowIndexMapper.unregisterMap(this.pluginName)),super.destroy()}}function th(e){e&&(0,d.z0)(e,(e=>{const[,t]=e,n=this.hot.propToCol(t);this.conditionCollection.hasConditions(n)&&this.updateValueComponentCondition(n)}))}function nh(){const e=this.dropdownMenuPlugin.menu;this.restoreComponents(Array.from(this.components.values())),e.updateMenuDimensions()}function oh(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}function ih(){const e=this.dropdownMenuPlugin.menu;Uu(Ju,this).has(e)||Uu(Xu,this).setMenu(e),Uu(Ju,this).add(e)}function rh(e){e.items.push({name:kr}),this.components.forEach((t=>{e.items.push(t.getMenuItemDescriptor())}))}function sh(e){var t;if("accept"===e){const e=this.getSelectedColumn();var n;if(null===e)return void(null===(n=this.dropdownMenuPlugin)||void 0===n||n.close());const{physicalIndex:t}=e,o=this.components.get("filter_by_condition").getState(),i=this.components.get("filter_by_condition2").getState(),r=this.components.get("filter_by_value").getState(),s=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),o,i,r);this.conditionUpdateObserver.groupChanges();let a=this.conditionCollection.getColumnStackPosition(t);-1===a&&(a=void 0),this.conditionCollection.removeConditions(t),o.command.key!==Mc&&(this.conditionCollection.addCondition(t,o,s,a),i.command.key!==Mc&&this.conditionCollection.addCondition(t,i,s,a)),r.command.key!==Mc&&this.conditionCollection.addCondition(t,r,s,a),this.conditionUpdateObserver.flush(),this.components.forEach((e=>e.saveState(t))),this.filter()}null===(t=this.dropdownMenuPlugin)||void 0===t||t.close()}function ah(e,t){const n=this.dropdownMenuPlugin.menu;this.updateDependentComponentsVisibility(),e.constructor!==wd||t.inputsCount||this.setListeningDropdownMenu(),n.updateMenuDimensions()}function lh(){this.setListeningDropdownMenu()}function ch(e,t,n){const o=this.hot.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(o)&&n===this.hot.view.getColumnHeadersCount()-1?(0,i.iQ)(t,"htFiltersActive"):(0,i.vy)(t,"htFiltersActive")}function dh(e){var t;if(null===(t=this.dropdownMenuPlugin)||void 0===t||!t.enabled)return;const{editedConditionStack:{conditions:n,column:o},conditionArgsChange:i}=e;Array.isArray(i)&&Vu(Qu,this,Uu(Qu,this).map((e=>(e.column===o&&n.length>0&&e.conditions.forEach((e=>{"by_value"===e.name&&(e.args=[[...i]])})),e))));const r=n.filter((e=>e.name===fu)),s=n.filter((e=>e.name!==fu));if(r.length>=2||s.length>=3)(0,Po.R8)(bi.O`The filter conditions have been applied properly, but couldn’t be displayed visually.\x20
  9. The overall amount of conditions exceed the capability of the dropdown menu.\x20
  10. For more details see the documentation.`);else{const t=this.conditionCollection.getOperation(o);this.components.get("filter_by_condition").updateState(s[0],o),this.components.get("filter_by_condition2").updateState(s[1],o),this.components.get("filter_operators").updateState(t,o),this.components.get("filter_by_value").updateState(e)}}n(33110);const uh="internal-use-in-handsontable",hh={licenseKey:uh,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 mh(e){var t;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[tm])||void 0===t||null===(t=t.language)||void 0===t?void 0:t.langCode}}function ph(e){return Object.keys(e).reduce(((t,n)=>("hyperformula"!==n&&(t[n]=e[n]),t)),{})}function fh(){const e="engine_relationship",t=(0,ai.A)(tm);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function gh(){const e="shared_engine_usage",t=(0,ai.A)(tm);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function bh(e){var t;const n=fh(),o=0===n.size?[]:Array.from(null!==(t=n.get(e))&&void 0!==t?t:[]);return new Map(o.map((e=>[e.getPlugin("formulas").sheetId,e])))}function vh(e,t){if(e){const n=fh(),o=n.get(e),i=gh(),r=i.get(e);o&&o.includes(t)&&(o.splice(o.indexOf(t),1),0===o.length&&n.delete(e)),r&&r.includes(t.guid)&&(r.splice(r.indexOf(t.guid),1),0===r.length&&(i.delete(e),e.destroy()))}}const yh="DD/MM/YYYY";function wh(e,t){return"string"==typeof e&&"date"===t}function Ch(e,t){return R(e,t,!0).isValid()}function _h(e,t){return R(e,t,!0).format(yh)}function Sh(e,t){const n=new Date(Date.UTC(0,0,e+-1));return R(n).format(t)}function Mh(e,t,n){const o=function(e,t){const n=[];return e.forEach((e=>{const o={from:e,to:t};n.forEach((e=>{const t=e.from>e.to,n=e.to<=o.from;e.from>o.from&&n&&t&&(o.from+=1)})),o.from>=t&&(t+=1),n.push(o)})),n}(e,function(e,t,n){const o=Array.from(Array(n).keys()).filter((t=>!1===e.includes(t)));var i;return 0===t?null!==(i=o[t])&&void 0!==i?i:0:o[t-1]+1}(e,t,n));return function(e){return e.forEach(((t,n)=>{e.slice(n+1).forEach((e=>{const n=e.from<e.to;e.from>t.from&&n&&(e.from-=1)}))})),e}(o)}function Eh(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function xh(e,t){return e.get(Th(e,t))}function kh(e,t,n){return e.set(Th(e,t),n),n}function Th(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Rh=new WeakMap,Ah=new WeakMap,Lh=new WeakMap,Oh=new WeakMap,Dh=new WeakMap,Hh=new WeakMap,Ih=new WeakMap;const Ph=class{constructor(e,t,n){Eh(this,Rh,void 0),Eh(this,Ah,void 0),Eh(this,Lh,void 0),Eh(this,Oh,[]),Eh(this,Dh,[]),Eh(this,Hh,void 0),Eh(this,Ih,[]),kh(Rh,this,e),kh(Ah,this,t),kh(Lh,this,n)}setRemovedHfIndexes(e){return kh(Ih,this,e.map((e=>{const t=xh(Ah,this).getVisualFromPhysicalIndex(e);return this.getHfIndexFromVisualIndex(t)}))),xh(Ih,this)}getRemovedHfIndexes(){return xh(Ih,this)}getHfIndexFromVisualIndex(e){const t=xh(Ah,this).getIndexesSequence(),n=xh(Ah,this).getNotTrimmedIndexes();return t.indexOf(n[e],e)}syncMoves(e){const t=`move${(0,h.Ob)(xh(Rh,this))}s`;xh(Lh,this).getEngine().batch((()=>{e.forEach((e=>{const n=e.from!==e.to,o=e.from+1!==e.to;n&&o&&xh(Lh,this).getEngine()[t](xh(Lh,this).getSheetId(),e.from,1,e.to)}))}))}storeMovesInformation(e,t,n){!1!==n&&(kh(Dh,this,e.map((e=>this.getHfIndexFromVisualIndex(e)))),kh(Hh,this,this.getHfIndexFromVisualIndex(t)))}calculateAndSyncMoves(e,t){if(xh(Lh,this).isPerformingUndoRedo())return;if(!1===e||!1===t)return;const n=Mh(xh(Dh,this),xh(Hh,this),xh(Ah,this).getNumberOfIndexes());null===xh(Lh,this).getSheetId()?xh(Lh,this).getPostponeAction((()=>this.syncMoves(n))):this.syncMoves(n)}getIndexesChangeSyncMethod(){const e=`set${(0,h.Ob)(xh(Rh,this))}Order`;return t=>{if(xh(Lh,this).isPerformingUndoRedo())return;const n=xh(Ah,this).getIndexesSequence();if("update"===t&&n.length>0){const t=xh(Oh,this).map((e=>n.indexOf(e))),o=xh(Lh,this).getEngine().getSheetDimensions(xh(Lh,this).getSheetId());let i;i="row"===xh(Rh,this)?o.height:o.width;for(let e=t.length;e<i;e+=1)t.push(e);xh(Lh,this).getEngine()[e](xh(Lh,this).getSheetId(),t)}kh(Oh,this,n)}}init(){kh(Oh,this,xh(Ah,this).getIndexesSequence())}};function Nh(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Fh(e,t){return e.get(jh(e,t))}function zh(e,t,n){return e.set(jh(e,t),n),n}function jh(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Yh=new WeakMap,$h=new WeakMap,Bh=new WeakMap,Wh=new WeakMap,Vh=new WeakMap,Uh=new WeakMap,Gh=new WeakMap;const Kh=class{constructor(e,t,n){Nh(this,Yh,void 0),Nh(this,$h,void 0),Nh(this,Bh,void 0),Nh(this,Wh,!1),Nh(this,Vh,!1),Nh(this,Uh,null),Nh(this,Gh,null),zh(Yh,this,new Ph("row",e,this)),zh($h,this,new Ph("column",t,this)),zh(Bh,this,n)}getForAxis(e){return Fh("row"===e?Yh:$h,this)}setPerformUndo(e){zh(Wh,this,e)}setPerformRedo(e){zh(Vh,this,e)}isPerformingUndoRedo(){return Fh(Wh,this)||Fh(Vh,this)}getSheetId(){return Fh(Gh,this)}getEngine(){return Fh(Uh,this)}getPostponeAction(){return Fh(Bh,this)}setupSyncEndpoint(e,t){zh(Uh,this,e),zh(Gh,this,t),Fh(Yh,this).init(),Fh($h,this).init()}};function qh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xh(e,t,n){Jh(e,t),t.set(e,n)}function Jh(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Qh(e,t,n){return e.set(em(e,t),n),n}function Zh(e,t){return e.get(em(e,t))}function em(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const tm="formulas",nm=["maxRows","maxColumns","language"];Se.R.getSingleton().register("afterNamedExpressionAdded"),Se.R.getSingleton().register("afterNamedExpressionRemoved"),Se.R.getSingleton().register("afterSheetAdded"),Se.R.getSingleton().register("afterSheetRemoved"),Se.R.getSingleton().register("afterSheetRenamed"),Se.R.getSingleton().register("afterFormulasValuesUpdate");const om=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var im=new WeakMap,rm=new WeakMap,sm=new WeakMap,am=new WeakSet;class lm extends dn{constructor(){var e,t;super(...arguments),e=this,Jh(this,t=am),t.add(this),Xh(this,im,!1),Xh(this,rm,!1),Xh(this,sm,[["valuesUpdated",function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return em(am,e,Tm).call(e,...n)}],["namedExpressionAdded",function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return em(am,e,Rm).call(e,...n)}],["namedExpressionRemoved",function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return em(am,e,Am).call(e,...n)}],["sheetAdded",function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return em(am,e,Lm).call(e,...n)}],["sheetRenamed",function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return em(am,e,Om).call(e,...n)}],["sheetRemoved",function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return em(am,e,Dm).call(e,...n)}]]),qh(this,"staticRegister",(0,ai.A)("formulas")),qh(this,"engine",null),qh(this,"sheetId",null),qh(this,"sheetName",null),qh(this,"indexSyncer",null),qh(this,"rowAxisSyncer",null),qh(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return tm}static get PLUGIN_PRIORITY(){return 260}static get SETTING_KEYS(){return[tm,...nm]}isEnabled(){return!!this.hot.getSettings()[tm]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=function(e){const t=e.getSettings(),n=t[tm],o=null==n?void 0:n.engine;if(!0===n)return null;if((0,u.b0)(o))return null;var i;if("function"==typeof o.hyperformula||"function"==typeof o)return function(e,t,n){const o=t[tm],i=function(e){var t;const n=e[tm],o=ph(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),i=mh(e);return{...hh,...o,...i}}(t),r=fh(),s=gh();(function(e,t){t&&t.forEach((t=>{const{name:n,plugin:o,translations:i}=t;try{e.registerFunction(n,o,i)}catch(e){(0,Po.R8)(e.message)}}))})(e,o.functions),function(e,t){if(t){const{langCode:n}=t;try{e.registerLanguage(n,t)}catch(e){(0,Po.R8)(e.message)}}}(e,o.language);const a=e.buildEmpty(i);return r.set(a,[n]),s.set(a,[n.guid]),function(e,t){t&&(e.suspendEvaluation(),t.forEach((t=>{const{name:n,expression:o,scope:i,options:r}=t;try{e.addNamedExpression(n,o,i,r)}catch(e){(0,Po.R8)(e.message)}})),e.resumeEvaluation())}(a,o.namedExpressions),a.on("sheetAdded",(()=>{a.rebuildAndRecalculate()})),a.on("sheetRemoved",(()=>{a.rebuildAndRecalculate()})),a}(null!==(i=o.hyperformula)&&void 0!==i?i:o,t,e);if("object"==typeof o&&(0,u.b0)(o.hyperformula)){const t=fh(),n=gh().get(o);return t.has(o)||t.set(o,[]),t.get(o).push(e),n&&n.push(e.guid),o.getConfig().licenseKey||o.updateConfig({licenseKey:uh}),o.getConfig().leapYear1900===hh.leapYear1900&&!1!==(0,s.wU)(o.getConfig().nullDate,hh.nullDate)||(0,Po.R8)(bi.O`If you use HyperFormula with Handsontable, keep the default \`leapYear1900\` and \`nullDate\`
  11. settings. Otherwise, HyperFormula's dates may not sync correctly with Handsontable's dates.`),o}return null}(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){const e=this.addSheet(this.sheetName,this.hot.getSourceDataArray());!1!==e&&em(am,this,cm).call(this,e)}this.addHook("beforeLoadData",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,hm).call(t,...n)})),this.addHook("afterLoadData",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,pm).call(t,...n)})),this.addHook("beforeUpdateData",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,hm).call(t,...n)})),this.addHook("afterUpdateData",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,pm).call(t,...n)})),this.addHook("modifyData",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,fm).call(t,...n)})),this.addHook("modifySourceData",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,gm).call(t,...n)})),this.addHook("beforeValidate",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,dm).call(t,...n)})),this.addHook("afterSetSourceDataAtCell",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,vm).call(t,...n)})),this.addHook("afterSetDataAtCell",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,bm).call(t,...n)})),this.addHook("afterSetDataAtRowProp",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,bm).call(t,...n)})),this.addHook("beforeCreateRow",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,ym).call(t,...n)})),this.addHook("beforeCreateCol",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,wm).call(t,...n)})),this.addHook("afterCreateRow",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,Sm).call(t,...n)})),this.addHook("afterCreateCol",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,Mm).call(t,...n)})),this.addHook("beforeRemoveRow",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,Cm).call(t,...n)})),this.addHook("beforeRemoveCol",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,_m).call(t,...n)})),this.addHook("afterRemoveRow",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,Em).call(t,...n)})),this.addHook("afterRemoveCol",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,xm).call(t,...n)})),this.indexSyncer=new Kh(this.hot.rowIndexMapper,this.hot.columnIndexMapper,(e=>{this.hot.addHookOnce("init",(()=>{e()}))})),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",((e,t,n,o)=>{this.rowAxisSyncer.storeMovesInformation(e,t,o)})),this.hot.addHook("beforeColumnMove",((e,t,n,o)=>{this.columnAxisSyncer.storeMovesInformation(e,t,o)})),this.hot.addHook("afterRowMove",((e,t,n,o,i)=>{this.rowAxisSyncer.calculateAndSyncMoves(o,i)})),this.hot.addHook("afterColumnMove",((e,t,n,o,i)=>{this.columnAxisSyncer.calculateAndSyncMoves(o,i)})),this.hot.addHook("beforeColumnFreeze",((e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart,t)})),this.hot.addHook("afterColumnFreeze",((e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)})),this.hot.addHook("beforeColumnUnfreeze",((e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart-1,t)})),this.hot.addHook("afterColumnUnfreeze",((e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)})),this.addHook("afterCellMetaReset",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,mm).call(t,...n)})),this.addHook("beforeUndo",(()=>{this.indexSyncer.setPerformUndo(!0),this.engine.undo()})),this.addHook("beforeRedo",(()=>{this.indexSyncer.setPerformRedo(!0),this.engine.redo()})),this.addHook("afterUndo",(()=>{this.indexSyncer.setPerformUndo(!1)})),this.addHook("afterUndo",(()=>{this.indexSyncer.setPerformRedo(!1)})),this.addHook("afterDetachChild",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,km).call(t,...n)})),this.addHook("beforeAutofill",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return em(am,t,um).call(t,...n)})),Zh(sm,this).forEach((e=>{let[t,n]=e;return this.engine.on(t,n)})),super.enablePlugin()}else(0,Po.R8)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}disablePlugin(){Zh(sm,this).forEach((e=>{let[t,n]=e;return this.engine.off(t,n)})),vh(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=function(e){var t;const n=e[tm];return{...ph(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),...mh(e)}}(this.hot.getSettings());(function(e,t){return Object.keys(t).some((n=>void 0!==t[n]&&t[n]!==e[n]))})(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const n=this.hot.getSettings()[tm];if((0,u.O9)(n)&&(0,u.O9)(n.sheetName)&&n.sheetName!==this.sheetName&&this.switchSheet(n.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[tm].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,this.hot.getSourceDataArray());em(am,this,cm).call(this,t)}}super.updatePlugin(e)}destroy(){Zh(sm,this).forEach((e=>{var t;let[n,o]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(n,o)})),Qh(sm,this,null),vh(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,u.O9)(t)&&!(0,Ud.ZI)(t))return(0,Po.R8)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,Po.R8)("Sheet with the provided name already exists."),!1;try{const n=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(n),t),n}catch(e){return(0,Po.R8)(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void(0,Po.z3)(`The sheet named \`${e}\` does not exist, switch aborted.`);em(am,this,cm).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,h.Ob)(tm)}.switchSheet`)}getCellType(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const o=this.hot.toPhysicalRow(e),i=this.hot.toPhysicalColumn(t);return null!==o&&null!==i?this.engine.getCellType({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}isFormulaCellType(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}renderDependentSheets(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=new Set;e.forEach((e=>{var t;const o=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==o&&(n.has(o)||n.add(o))})),bh(this.engine).forEach(((e,o)=>{var i;(t||o!==this.sheetId)&&n.has(o)&&(e.render(),null===(i=e.view)||void 0===i||i.adjustElementsSize())}))}validateDependentCells(e){const t=e=>{var t;const{row:n,col:o,sheet:i}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return(0,u.O9)(i)?`${i}:${n}x${o}`:""},n=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map((e=>t(e))));e.forEach((e=>{var o,i;const{row:r,col:s}=null!==(o=e.address)&&void 0!==o?o:{};if(!1===(0,u.O9)(r)||!1===(0,u.O9)(s)||r>=this.hot.countRows()||s>=this.hot.countCols())return;const a=null==e||null===(i=e.address)||void 0===i?void 0:i.sheet,l=t(e);if(void 0!==a&&!n.has(l)){const e=bh(this.engine).get(a);if(!e)return;e.validateCell(e.getDataAtCell(r,s),e.getCellMeta(r,s),(()=>{}))}}))}syncChangeWithEngine(e,t,n){const o={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(o))return void(0,Po.R8)(`Not possible to set cell data at ${JSON.stringify(o)}`);const i=this.hot.getCellMeta(e,t);var r;return wh(n,i.type)&&(Ch(n,i.dateFormat)?n=_h(n,i.dateFormat):!1===("string"==typeof(r=n)&&r.startsWith("="))&&(n=`'${n}`)),this.engine.setCellContents(o,n)}}function cm(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function dm(e,t,n){const o=this.hot.propToCol(n);if(this.isFormulaCellType(t,o)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId},n=this.hot.getCellMeta(t,o);let i=this.engine.getCellValue(e);return"date"===n.type&&(0,Et.kf)(i)&&(i=Sh(i,n.dateFormat)),"object"==typeof i&&null!==i?i.value:i}return e}function um(e,t,n){const{row:o,col:i}=t.getTopStartCorner(),{row:r,col:s}=t.getBottomEndCorner(),{row:a,col:l}=n.getTopStartCorner(),{row:c,col:d}=n.getBottomEndCorner(),u={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(r),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId}},h={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(a),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(c),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(d),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(h))return!1;const m=this.engine.getFillRangeData(u,h),{row:p,col:f}=u.start,{row:g,col:b}=u.end,v=g-p+1,y=b-f+1;for(let e=0;e<m.length;e+=1)for(let t=0;t<m[e].length;t+=1){const n=m[e][t],o=p+e%v,i=f+t%y,r=this.hot.getCellMeta(o,i);wh(n,r.type)&&(n.startsWith("'")?m[e][t]=n.slice(1):!1===this.isFormulaCellType(o,i,this.sheetId)&&(m[e][t]=(w=n,C=r.dateFormat,R(w,yh,!0).format(C))))}var w,C;return m}function hm(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,h.Ob)(tm))||Qh(rm,this,(0,u.b0)(this.hot.getSettings().data))}function mm(){if(Zh(rm,this))return void this.switchSheet(this.sheetName);const e=this.hot.getSourceDataArray();e.forEach(((t,n)=>{t.forEach(((t,o)=>{const i=this.hot.getCellMeta(n,o,{skipMetaExtension:!0}),r=i.dateFormat;wh(t,i.type)&&(Ch(t,r)?e[n][o]=_h(t,r):t.startsWith("=")||(e[n][o]=`'${t}`))}))})),Qh(im,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),Qh(im,this,!1)}function pm(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(n.includes((0,h.Ob)(tm)))return;const o=function(e,t){return!(0,u.b0)(t)&&e.doesSheetExist(t)||(t=e.addSheet(t)),t}(this.engine,this.hot.getSettings()[tm].sheetName);if(em(am,this,cm).call(this,o),"updateSettings"!==n)if(Zh(rm,this))this.switchSheet(this.sheetName);else{const e=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){Qh(im,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),Qh(im,this,!1)}}}function fm(e,t,n,o){if("get"!==o||Zh(im,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const i=this.hot.toVisualRow(e);if(null===i||null===t)return;const r=this.getCellType(i,t);if("VALUE"===r||"EMPTY"===r)return void(n.value=(s=n.value,function(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}(s)?s.substr(1):s));var s;const a={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let l=this.engine.getCellValue(a);const c=this.hot.getCellMeta(i,t,{skipMetaExtension:!0});"date"===c.type&&(0,Et.kf)(l)&&(l=Sh(l,c.dateFormat)),n.value="object"==typeof l&&null!==l?l.value:l}function gm(e,t,n,o){if("get"!==o||Zh(im,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const i=this.hot.toVisualRow(e),r=this.hot.propToCol(t);if(null===i||null===r)return;const s=this.getCellType(i,r);if("VALUE"===s||"EMPTY"===s)return;const a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===a.width&&0===a.height)return;const l={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};n.value=this.engine.getCellSerialized(l)}function bm(e,t){if(om(t))return;const n=[],o=[],i=this.engine.batch((()=>{e.forEach((e=>{let[t,i,,r]=e;const s=this.hot.propToCol(i),a=this.hot.toPhysicalRow(t),l=this.hot.toPhysicalColumn(s),c={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId};null!==a&&null!==l?this.syncChangeWithEngine(t,s,r):n.push([t,s,r]),o.push({address:c})}))}));n.length&&this.hot.addHookOnce("afterChange",(()=>{const e=this.engine.batch((()=>{n.forEach((e=>{let[t,n,o]=e;this.syncChangeWithEngine(t,n,o)}))}));this.renderDependentSheets(e,!0)})),this.renderDependentSheets(i),this.validateDependentCells(i,o)}function vm(e,t){if(om(t))return;const n=[],o=[];e.forEach((e=>{let[t,i,,r]=e;const s=this.hot.propToCol(i);if(!(0,Et.kf)(s))return;const a={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(a)?(o.push({address:a}),n.push(...this.engine.setCellContents(a,r))):(0,Po.R8)(`Not possible to set source cell data at ${JSON.stringify(a)}`)})),this.renderDependentSheets(n),this.validateDependentCells(n,o)}function ym(e,t){let n=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[n,t]))return!1}function wm(e,t){let n=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[n,t]))return!1}function Cm(e,t,n){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(n).every((e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1])))&&void 0}function _m(e,t,n){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(n).every((e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1])))&&void 0}function Sm(e,t,n){if(om(n))return;const o=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(o)}function Mm(e,t,n){if(om(n))return;const o=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(o)}function Em(e,t,n,o){if(om(o))return;const i=this.rowAxisSyncer.getRemovedHfIndexes().sort(((e,t)=>t-e)),r=this.engine.batch((()=>{i.forEach((e=>{this.engine.removeRows(this.sheetId,[e,1])}))}));this.renderDependentSheets(r)}function xm(e,t,n,o){if(om(o))return;const i=this.columnAxisSyncer.getRemovedHfIndexes().sort(((e,t)=>t-e)),r=this.engine.batch((()=>{i.forEach((e=>{this.engine.removeColumns(this.sheetId,[e,1])}))}));this.renderDependentSheets(r)}function km(e,t,n){var o;Qh(im,this,!0);const i=this.hot.getSourceDataArray(n,0,n+((null===(o=t.__children)||void 0===o?void 0:o.length)||0),this.hot.countSourceCols());Qh(im,this,!1),i.forEach(((e,t)=>{e.forEach(((e,o)=>{this.engine.setCellContents({col:o,row:n+t,sheet:this.sheetId},[[e]])}))}))}function Tm(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function Rm(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function Am(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function Lm(e){this.hot.runHooks("afterSheetAdded",e)}function Om(e,t){em(am,this,cm).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function Dm(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}var Hm=n(52246);function Im(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Pm(e,t){return e.get(Fm(e,t))}function Nm(e,t,n){return e.set(Fm(e,t),n),n}function Fm(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Se.R.getSingleton().register("beforeHideColumns"),Se.R.getSingleton().register("afterHideColumns"),Se.R.getSingleton().register("beforeUnhideColumns"),Se.R.getSingleton().register("afterUnhideColumns");const zm="hiddenColumns";var jm=new WeakMap,Ym=new WeakSet;class $m extends dn{constructor(){var e;super(...arguments),Im(this,e=Ym),e.add(this),function(e,t){Im(e,t),t.set(e,null)}(this,jm)}static get PLUGIN_KEY(){return zm}static get PLUGIN_PRIORITY(){return 310}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,columns:[]}}isEnabled(){return!!this.hot.getSettings()[zm]}enablePlugin(){var e=this;this.enabled||(Nm(jm,this,new Hm.o),Pm(jm,this).addLocalHook("init",(()=>Fm(Ym,this,Km).call(this))),this.hot.columnIndexMapper.registerMap(this.pluginName,Pm(jm,this)),this.addHook("afterContextMenuDefaultOptions",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Fm(Ym,e,Gm).call(e,...n)})),this.addHook("afterGetCellMeta",((e,t,n)=>Fm(Ym,this,Wm).call(this,e,t,n))),this.addHook("modifyColWidth",((e,t)=>Fm(Ym,this,Bm).call(this,e,t)),2),this.addHook("afterGetColHeader",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Fm(Ym,e,Um).call(e,...n)})),this.addHook("modifyCopyableRange",(e=>Fm(Ym,this,Vm).call(this,e))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.hot.columnIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showColumns(e){const t=this.getHiddenColumns(),n=this.isValidConfig(e);let o=t;const i=Pm(jm,this).getValues().slice(),r=e.length>0;if(n&&r){const t=e.map((e=>this.hot.toPhysicalColumn(e)));(0,d.z0)(t,(e=>{i[e]=!1})),o=(0,d.mu)(i,((e,t,n)=>(t&&e.push(this.hot.toVisualColumn(n)),e)),[])}!1!==this.hot.runHooks("beforeUnhideColumns",t,o,n&&r)&&(n&&r&&Pm(jm,this).setValues(i),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",t,o,n&&r,n&&o.length<t.length))}showColumn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showColumns(t)}hideColumns(e){const t=this.getHiddenColumns(),n=this.isValidConfig(e);let o=t;n&&(o=Array.from(new Set(t.concat(e)))),!1!==this.hot.runHooks("beforeHideColumns",t,o,n)&&(n&&this.hot.batchExecution((()=>{(0,d.z0)(e,(e=>{Pm(jm,this).setValueAtIndex(this.hot.toPhysicalColumn(e),!0)}))}),!0),this.hot.runHooks("afterHideColumns",t,o,n,n&&o.length>t.length))}hideColumn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.hideColumns(t)}getHiddenColumns(){return(0,d.YD)(Pm(jm,this).getHiddenIndexes(),(e=>this.hot.toVisualColumn(e)))}isHidden(e){return Pm(jm,this).getValueAtIndex(this.hot.toPhysicalColumn(e))||!1}isValidConfig(e){const t=this.hot.countCols();return!!(Array.isArray(e)&&e.length>0)&&e.every((e=>Number.isInteger(e)&&e>=0&&e<t))}resetCellsMeta(){(0,d.z0)(this.hot.getCellsMeta(),(e=>{e.skipColumnOnPaste=!1}))}destroy(){Nm(jm,this,null),super.destroy()}}function Bm(e,t){return this.isHidden(t)?0:this.getSetting("indicators")&&(this.isHidden(t+1)||this.isHidden(t-1))&&"number"==typeof e&&this.hot.hasColHeaders()?e+15:void 0}function Wm(e,t,n){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(t)&&(n.skipColumnOnPaste=!0),this.isHidden(t-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenColumn")&&(n.className+=" afterHiddenColumn");else if(n.className){const e=n.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenColumn");t>-1&&e.splice(t,1),n.className=e.join(" ")}}}function Vm(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],n=(e,n,o,i)=>{t.push({startRow:e,endRow:n,startCol:o,endCol:i})};return(0,d.z0)(e,(e=>{let t=!0,o=0;(0,Et.Ti)(e.startCol,e.endCol,(i=>{this.isHidden(i)?(t||n(e.startRow,e.endRow,o,i-1),t=!0):(t&&(o=i),i===e.endCol&&n(e.startRow,e.endRow,o,i),t=!1)}))})),t}function Um(e,t){if(!this.getSetting("indicators")||e<0)return;const n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&n.push("beforeHiddenColumn"),(0,i.iQ)(t,n)}function Gm(e){var t;e.items.push({name:kr},(t=this,{key:"hidden_columns_hide",name(){const e=this.getSelectedLast();let t=0;if(Array.isArray(e)){const[,n,,o]=e;n-o!==0&&(t=1)}return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_HIDE_COLUMN,t)},callback(){const{from:e,to:n}=this.getSelectedRangeLast(),o=Math.max(Math.min(e.col,n.col),0),i=Math.max(e.col,n.col),r=[];for(let e=o;e<=i;e+=1)r.push(e);t.hideColumns(r);const s=r[r.length-1],a=this.columnIndexMapper.getNearestNotHiddenIndex(s,1,!0);Number.isInteger(a)&&a>=0?this.selectColumns(a):this.deselectCell(),this.render(),this.view.adjustElementsSize()},disabled:!1,hidden(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}),function(e){const t=[];return{key:"hidden_columns_show",name(){const e=t.length>1?1:0;return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_SHOW_COLUMN,e)},callback(){var n,o;if(0===t.length)return;let i=t[0],r=t[t.length-1];i=null!==(n=this.columnIndexMapper.getNearestNotHiddenIndex(i-1,-1))&&void 0!==n?n:0,r=null!==(o=this.columnIndexMapper.getNearestNotHiddenIndex(r+1,1))&&void 0!==o?o:this.countCols()-1,e.showColumns(t),this.render(),this.view.adjustElementsSize(),r-i+1===this.countCols()||this.selectColumns(i,r)},disabled:!1,hidden(){const n=(0,d.YD)(e.getHiddenColumns(),(e=>this.toPhysicalColumn(e)));if(!this.selection.isSelectedByColumnHeader()&&!this.selection.isSelectedByCorner()||n.length<1)return!0;t.length=0;const o=this.getSelectedRangeLast(),i=o.getTopStartCorner().col,r=o.getBottomEndCorner().col,s=this.columnIndexMapper,a=s.getRenderableFromVisualIndex(i),l=s.getRenderableFromVisualIndex(r),c=s.getNotTrimmedIndexes(),u=[];if(i!==r){if(r-i+1>l-a+1){const e=c.slice(i,r+1);u.push(...e.filter((e=>n.includes(e))))}}else if(0===a&&a<i)u.push(...c.slice(0,i));else if(null===a)u.push(...c.slice(0,this.countCols()));else{const e=this.countCols()-1;l===s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,-1))&&e>r&&u.push(...c.slice(r+1))}return(0,d.z0)(u,(e=>{t.push(this.toVisualColumn(e))})),0===t.length}}}(this))}function Km(){const e=this.getSetting("columns");Array.isArray(e)&&this.hideColumns(e)}function qm(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xm(e,t){return e.get(Qm(e,t))}function Jm(e,t,n){return e.set(Qm(e,t),n),n}function Qm(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Se.R.getSingleton().register("beforeHideRows"),Se.R.getSingleton().register("afterHideRows"),Se.R.getSingleton().register("beforeUnhideRows"),Se.R.getSingleton().register("afterUnhideRows");const Zm="hiddenRows";var ep=new WeakMap,tp=new WeakSet;class np extends dn{constructor(){var e;super(...arguments),qm(this,e=tp),e.add(this),function(e,t){qm(e,t),t.set(e,null)}(this,ep)}static get PLUGIN_KEY(){return Zm}static get PLUGIN_PRIORITY(){return 320}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,rows:[]}}isEnabled(){return!!this.hot.getSettings()[Zm]}enablePlugin(){var e=this;this.enabled||(Jm(ep,this,new Hm.o),Xm(ep,this).addLocalHook("init",(()=>Qm(tp,this,lp).call(this))),this.hot.rowIndexMapper.registerMap(this.pluginName,Xm(ep,this)),this.addHook("afterContextMenuDefaultOptions",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Qm(tp,e,ap).call(e,...n)})),this.addHook("afterGetCellMeta",((e,t,n)=>Qm(tp,this,ip).call(this,e,t,n))),this.addHook("modifyRowHeight",((e,t)=>Qm(tp,this,op).call(this,e,t))),this.addHook("afterGetRowHeader",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Qm(tp,e,sp).call(e,...n)})),this.addHook("modifyCopyableRange",(e=>Qm(tp,this,rp).call(this,e))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.hot.rowIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showRows(e){const t=this.getHiddenRows(),n=this.isValidConfig(e);let o=t;const i=Xm(ep,this).getValues().slice(),r=e.length>0;if(n&&r){const t=e.map((e=>this.hot.toPhysicalRow(e)));(0,d.z0)(t,(e=>{i[e]=!1})),o=(0,d.mu)(i,((e,t,n)=>(t&&e.push(this.hot.toVisualRow(n)),e)),[])}!1!==this.hot.runHooks("beforeUnhideRows",t,o,n&&r)&&(n&&r&&Xm(ep,this).setValues(i),this.hot.runHooks("afterUnhideRows",t,o,n&&r,n&&o.length<t.length))}showRow(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showRows(t)}hideRows(e){const t=this.getHiddenRows(),n=this.isValidConfig(e);let o=t;n&&(o=Array.from(new Set(t.concat(e)))),!1!==this.hot.runHooks("beforeHideRows",t,o,n)&&(n&&this.hot.batchExecution((()=>{(0,d.z0)(e,(e=>{Xm(ep,this).setValueAtIndex(this.hot.toPhysicalRow(e),!0)}))}),!0),this.hot.runHooks("afterHideRows",t,o,n,n&&o.length>t.length))}hideRow(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.hideRows(t)}getHiddenRows(){return(0,d.YD)(Xm(ep,this).getHiddenIndexes(),(e=>this.hot.toVisualRow(e)))}isHidden(e){return Xm(ep,this).getValueAtIndex(this.hot.toPhysicalRow(e))||!1}isValidConfig(e){const t=this.hot.countRows();return!!(Array.isArray(e)&&e.length>0)&&e.every((e=>Number.isInteger(e)&&e>=0&&e<t))}resetCellsMeta(){(0,d.z0)(this.hot.getCellsMeta(),(e=>{e.skipRowOnPaste=!1}))}destroy(){Jm(ep,this,null),super.destroy()}}function op(e,t){return this.isHidden(t)?0:e}function ip(e,t,n){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(e)&&(n.skipRowOnPaste=!0),this.isHidden(e-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenRow")&&(n.className+=" afterHiddenRow");else if(n.className){const e=n.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenRow");t>-1&&e.splice(t,1),n.className=e.join(" ")}}}function rp(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],n=(e,n,o,i)=>{t.push({startRow:e,endRow:n,startCol:o,endCol:i})};return(0,d.z0)(e,(e=>{let t=!0,o=0;(0,Et.Ti)(e.startRow,e.endRow,(i=>{this.isHidden(i)?(t||n(o,i-1,e.startCol,e.endCol),t=!0):(t&&(o=i),i===e.endRow&&n(o,i,e.startCol,e.endCol),t=!1)}))})),t}function sp(e,t){if(!this.getSetting("indicators")||e<0)return;const n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenRow"),e<this.hot.countRows()-1&&this.isHidden(e+1)&&n.push("beforeHiddenRow"),(0,i.iQ)(t,n)}function ap(e){var t;e.items.push({name:kr},(t=this,{key:"hidden_rows_hide",name(){const e=this.getSelectedLast();let t=0;if(Array.isArray(e)){const[n,,o]=e;n-o!==0&&(t=1)}return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_HIDE_ROW,t)},callback(){const{from:e,to:n}=this.getSelectedRangeLast(),o=Math.max(Math.min(e.row,n.row),0),i=Math.max(e.row,n.row),r=[];for(let e=o;e<=i;e+=1)r.push(e);t.hideRows(r);const s=r[r.length-1],a=this.rowIndexMapper.getNearestNotHiddenIndex(s,1,!0);Number.isInteger(a)&&a>=0?this.selectRows(a):this.deselectCell(),this.render(),this.view.adjustElementsSize()},disabled:!1,hidden(){return!(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner())}}),function(e){const t=[];return{key:"hidden_rows_show",name(){const e=t.length>1?1:0;return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_SHOW_ROW,e)},callback(){var n,o;if(0===t.length)return;let i=t[0],r=t[t.length-1];i=null!==(n=this.rowIndexMapper.getNearestNotHiddenIndex(i-1,-1))&&void 0!==n?n:0,r=null!==(o=this.rowIndexMapper.getNearestNotHiddenIndex(r+1,1))&&void 0!==o?o:this.countRows()-1,e.showRows(t),this.render(),this.view.adjustElementsSize(),r-i+1===this.countRows()||this.selectRows(i,r)},disabled:!1,hidden(){const n=(0,d.YD)(e.getHiddenRows(),(e=>this.toPhysicalRow(e)));if(!this.selection.isSelectedByRowHeader()&&!this.selection.isSelectedByCorner()||n.length<1)return!0;t.length=0;const o=this.getSelectedRangeLast(),i=o.getTopStartCorner().row,r=o.getBottomEndCorner().row,s=this.rowIndexMapper,a=s.getRenderableFromVisualIndex(i),l=s.getRenderableFromVisualIndex(r),c=s.getNotTrimmedIndexes(),u=[];if(i!==r){if(r-i+1>l-a+1){const e=c.slice(i,r+1);u.push(...e.filter((e=>n.includes(e))))}}else if(0===a&&a<i)u.push(...c.slice(0,i));else if(null===a)u.push(...c.slice(0,this.countRows()));else{const e=this.countRows()-1;l===s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,-1))&&e>r&&u.push(...c.slice(r+1))}return(0,d.z0)(u,(e=>{t.push(this.toVisualRow(e))})),0===t.length}}}(this))}function lp(){const e=this.getSetting("rows");Array.isArray(e)&&this.hideRows(e)}function cp(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function dp(e,t){return e.get(hp(e,t))}function up(e,t,n){return e.set(hp(e,t),n),n}function hp(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Se.R.getSingleton().register("beforeColumnFreeze"),Se.R.getSingleton().register("afterColumnFreeze"),Se.R.getSingleton().register("beforeColumnUnfreeze"),Se.R.getSingleton().register("afterColumnUnfreeze");const mp="manualColumnFreeze";var pp=new WeakMap,fp=new WeakSet;class gp extends dn{constructor(){var e;super(...arguments),cp(this,e=fp),e.add(this),function(e,t){cp(e,t),t.set(e,!1)}(this,pp)}static get PLUGIN_KEY(){return mp}static get PLUGIN_PRIORITY(){return 110}isEnabled(){return!!this.hot.getSettings()[mp]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",(e=>hp(fp,this,bp).call(this,e))),this.addHook("beforeColumnMove",((e,t)=>hp(fp,this,vp).call(this,e,t))),super.enablePlugin())}disablePlugin(){up(pp,this,!1),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}freezeColumn(e){const t=this.hot.getSettings(),n=t.fixedColumnsStart<this.hot.countCols()&&e>t.fixedColumnsStart-1;dp(pp,this)||up(pp,this,!0),!1!==this.hot.runHooks("beforeColumnFreeze",e,n)&&(n&&(this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart),t._fixedColumnsStart+=1),this.hot.runHooks("afterColumnFreeze",e,n))}unfreezeColumn(e){const t=this.hot.getSettings(),n=t.fixedColumnsStart>0&&e<=t.fixedColumnsStart-1;dp(pp,this)||up(pp,this,!0),!1!==this.hot.runHooks("beforeColumnUnfreeze",e,n)&&(n&&(t._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",e,n))}}function bp(e){var t;e.items.push({name:"---------"},(t=this,{key:"freeze_column",name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_FREEZE_COLUMN)},callback(e,n){const[{start:{col:o}}]=n;t.freezeColumn(o),this.render(),this.view.adjustElementsSize()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col<=this.getSettings().fixedColumnsStart-1)&&(t=!0),t}}),function(e){return{key:"unfreeze_column",name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback(t,n){const[{start:{col:o}}]=n;e.unfreezeColumn(o),this.render(),this.view.adjustElementsSize()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}}(this))}function vp(e,t){if(dp(pp,this)){const n=this.hot.getSettings().fixedColumnsStart;if(t<n)return!1;if(e.some((e=>e<n)))return!1}}function yp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wp="px",Cp=class{constructor(e){yp(this,"hot",void 0),yp(this,"_element",null),yp(this,"state",0),yp(this,"inlineProperty",void 0),this.hot=e,this.inlineProperty=e.isRtl()?"right":"left"}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){(0,Et.kf)(e)&&(this._element.style.top=e+wp),(0,Et.kf)(t)&&(this._element.style[this.inlineProperty]=t+wp)}getPosition(){const e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],10):0}}setSize(e,t){(0,Et.kf)(e)&&(this._element.style.width=e+wp),(0,Et.kf)(t)&&(this._element.style.height=t+wp)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){(0,Et.kf)(e)&&(this._element.style.marginTop=e+wp),(0,Et.kf)(t)&&(this._element.style[`margin${(0,h.Ob)(this.inlineProperty)}`]=t+wp)}getOffset(){const e=this._element.style,t=`margin${(0,h.Ob)(this.inlineProperty)}`;return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}},_p=class extends Cp{build(){super.build(),(0,i.iQ)(this._element,"ht__manualColumnMove--backlight")}},Sp=class extends Cp{build(){super.build(),(0,i.iQ)(this._element,"ht__manualColumnMove--guideline")}};function Mp(e,t,n){Ep(e,t),t.set(e,n)}function Ep(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function xp(e,t,n){return e.set(Tp(e,t),n),n}function kp(e,t){return e.get(Tp(e,t))}function Tp(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Se.R.getSingleton().register("beforeColumnMove"),Se.R.getSingleton().register("afterColumnMove");const Rp="manualColumnMove",Ap="ht__manualColumnMove",Lp="show-ui",Op="on-moving--columns",Dp="after-selection--columns";var Hp=new WeakMap,Ip=new WeakMap,Pp=new WeakMap,Np=new WeakMap,Fp=new WeakMap,zp=new WeakMap,jp=new WeakMap,Yp=new WeakMap,$p=new WeakMap,Bp=new WeakMap,Wp=new WeakMap,Vp=new WeakSet;class Up extends dn{constructor(){var e;super(...arguments),Ep(this,e=Vp),e.add(this),Mp(this,Hp,new _p(this.hot)),Mp(this,Ip,new Sp(this.hot)),Mp(this,Pp,[]),Mp(this,Np,0),Mp(this,Fp,!1),Mp(this,zp,{}),Mp(this,jp,void 0),Mp(this,Yp,void 0),Mp(this,$p,void 0),Mp(this,Bp,void 0),Mp(this,Wp,void 0)}static get PLUGIN_KEY(){return Rp}static get PLUGIN_PRIORITY(){return 120}isEnabled(){return!!this.hot.getSettings()[Rp]}enablePlugin(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Tp(Vp,e,Gp).call(e,...n)})),this.addHook("beforeOnCellMouseOver",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Tp(Vp,e,qp).call(e,...n)})),this.addHook("afterScrollVertically",(()=>Tp(Vp,this,Jp).call(this))),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Tp(Vp,e,Qp).call(e,...n)})),this.buildPluginUI(),this.registerEvents(),(0,i.iQ)(this.hot.rootElement,Ap),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){(0,i.vy)(this.hot.rootElement,Ap),this.unregisterEvents(),kp(Hp,this).destroy(),kp(Ip,this).destroy(),super.disablePlugin()}moveColumn(e,t){return this.moveColumns([e],t)}moveColumns(e,t){const n=kp(jp,this),o=this.isMovePossible(e,t),i=this.hot.runHooks("beforeColumnMove",e,t,n,o);if(xp(jp,this,void 0),!1===i)return;o&&this.hot.columnIndexMapper.moveIndexes(e,t);const r=o&&this.isColumnOrderChanged(e,t);return this.hot.runHooks("afterColumnMove",e,t,n,o,r),r}dragColumn(e,t){return this.dragColumns([e],t)}dragColumns(e,t){const n=this.countFinalIndex(e,t);return xp(jp,this,t),this.moveColumns(e,n)}isMovePossible(e,t){const n=this.hot.columnIndexMapper.getNotTrimmedIndexesLength(),o=e.length+t>n,i=t<0,r=e.some((e=>e<0)),s=e.some((e=>e>=n));return!(o||i||r||s)}isColumnOrderChanged(e,t){return e.some(((e,n)=>e-n!==t))}countFinalIndex(e,t){const n=(0,d.mu)(e,((e,n)=>(n<t&&(e+=1),e)),0);return t-n}getColumnsWidth(e,t){const n=this.hot.columnIndexMapper;let o=0;for(let i=e;i<=t;i+=1){const e=n.getRenderableFromVisualIndex(i);i<0?o+=this.hot.view._wt.wtViewport.getRowHeaderWidth()||0:null!==e&&(o+=this.hot.view._wt.wtTable.getColumnWidth(e)||0)}return o}moveBySettingsOrLoad(){const e=this.hot.getSettings()[Rp];if(Array.isArray(e))this.moveColumns(e,0);else if(void 0!==e){const e=this.persistentStateLoad();e.length&&this.moveColumns(e,0)}}isFixedColumnsStart(e){return e<this.hot.getSettings().fixedColumnsStart}persistentStateSave(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.hot.columnIndexMapper.getIndexesSequence())}persistentStateLoad(){const e={};return this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value?e.value:[]}prepareColumnsToMoving(e,t){const n=[];return(0,Et.Ti)(e,t,(e=>{n.push(e)})),n}refreshPositions(){const e=this.hot.view.getFirstFullyVisibleColumn();this.isFixedColumnsStart(kp(Yp,this))&&e>0&&this.hot.scrollViewportTo({col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(e-1,-1)});const t=this.hot.view._wt.wtTable,n=this.hot.view._wt.wtOverlays.scrollableElement,o="number"==typeof n.scrollX?n.scrollX:n.scrollLeft;let r=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,kp(Yp,this)-1);const s=t.hider.offsetWidth,a=t.TBODY.offsetLeft,l=kp(Hp,this).getOffset().start,c=kp(Hp,this).getSize().width;let d=0,u=0;if(this.hot.isRtl()){const e=this.hot.rootWindow,t=(0,i.Gq)(this.hot.rootElement),r=e.innerWidth-kp($p,this)-t;u=e.innerWidth-kp(zp,this).eventPageX-r-(void 0===n.scrollX?o:0)}else u=kp(zp,this).eventPageX-(kp($p,this)-(void 0===n.scrollX?o:0));if(kp(Bp,this)&&(d=this.hot.view._wt.wtOverlays.inlineStartOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsStart(kp(Yp,this))&&(r+=o),r+=d,kp(Yp,this)<0)kp(Wp,this)>0?kp(zp,this).col=0:kp(zp,this).col=e>0?e-1:e;else if(kp(zp,this).TD.offsetWidth/2+r<=u){const e=kp(Yp,this)>=kp(Np,this)?kp(Np,this)-1:kp(Yp,this);kp(zp,this).col=e+1,r+=kp(zp,this).TD.offsetWidth}else kp(zp,this).col=kp(Yp,this);let h=u,m=r;u+c+l>=s?h=s-c-l:u+l<a+d&&(h=a+d+Math.abs(l)),r>=s-1?m=s-1:0===m?m=1:void 0!==n.scrollX&&kp(Yp,this)<kp(Wp,this)&&(m-=kp($p,this)<=n.scrollX?kp($p,this):0),kp(Hp,this).setPosition(null,h),kp(Ip,this).setPosition(null,m)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",(e=>Tp(Vp,this,Kp).call(this,e))),this.eventManager.addEventListener(e,"mouseup",(()=>Tp(Vp,this,Xp).call(this)))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){kp(Hp,this).build(),kp(Ip,this).build()}destroy(){kp(Hp,this).destroy(),kp(Ip,this).destroy(),super.destroy()}}function Gp(e,t,n,o){const s=this.hot.view._wt.wtTable,a=this.hot.selection.isSelectedByColumnHeader(),l=this.hot.getSelectedRangeLast(),c=(0,i.nB)(e.target,"sortAction");if(!l||!a||kp(Fp,this)||0!==e.button||c)return xp(Fp,this,!1),kp(Pp,this).length=0,void(0,i.vy)(this.hot.rootElement,[Op,Lp]);const d=kp(Ip,this).isBuilt()&&!kp(Ip,this).isAppended(),u=kp(Hp,this).isBuilt()&&!kp(Hp,this).isAppended();d&&u&&(kp(Ip,this).appendTo(s.hider),kp(Hp,this).appendTo(s.hider));const{from:h,to:m}=l,p=Math.min(h.col,m.col),f=Math.max(h.col,m.col);if(t.row<0&&t.col>=p&&t.col<=f){o.column=!0,xp(Fp,this,!0);const a=n.firstChild?(0,r.zg)(e,n.firstChild).x:e.offsetX;kp(zp,this).eventPageX=e.pageX,xp(Yp,this,t.col),kp(zp,this).TD=n,kp(zp,this).col=t.col,xp(Pp,this,this.prepareColumnsToMoving(p,f)),xp(Bp,this,!!this.hot.getSettings().rowHeaders),xp(Np,this,this.hot.countCols()),xp(Wp,this,this.hot.getSettings().fixedColumnsStart),xp($p,this,(0,i.cY)(this.hot.rootElement).left);const l=kp(Bp,this)?-1:0,c=s.holder.scrollTop+s.getColumnHeaderHeight(0)+1,d=t.col<kp(Wp,this),u=this.hot.view._wt.wtOverlays.inlineStartOverlay.getOverlayOffset(),h=Math.abs(a-(this.hot.isRtl()?n.offsetWidth:0)),m=this.getColumnsWidth(p,t.col-1)+h,g=this.getColumnsWidth(l,p-1)+(d?u:0)+m;kp(Hp,this).setPosition(c,g),kp(Hp,this).setSize(this.getColumnsWidth(p,f),s.hider.offsetHeight-c),kp(Hp,this).setOffset(null,-m),(0,i.iQ)(this.hot.rootElement,Op)}else(0,i.vy)(this.hot.rootElement,Dp),xp(Fp,this,!1),kp(Pp,this).length=0}function Kp(e){kp(Fp,this)&&(kp(zp,this).eventPageX=e.pageX,this.refreshPositions())}function qp(e,t,n,o){this.hot.getSelectedRangeLast()&&kp(Fp,this)&&(kp(Pp,this).indexOf(t.col)>-1?(0,i.vy)(this.hot.rootElement,Lp):(0,i.iQ)(this.hot.rootElement,Lp),o.row=!0,o.column=!0,o.cell=!0,xp(Yp,this,t.col),kp(zp,this).TD=n)}function Xp(){const e=kp(zp,this).col,t=kp(Pp,this).length;if(xp(Yp,this,void 0),xp(Fp,this,!1),(0,i.vy)(this.hot.rootElement,[Op,Lp,Dp]),this.hot.selection.isSelectedByColumnHeader()&&(0,i.iQ)(this.hot.rootElement,Dp),t<1||void 0===e)return;const n=kp(Pp,this)[0],o=this.hot.toPhysicalColumn(n),r=this.dragColumns(kp(Pp,this),e);if(kp(Pp,this).length=0,!0===r){this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize();const e=this.hot.toVisualColumn(o),n=e+t-1;this.hot.selectColumns(e,n)}}function Jp(){const e=this.hot.view._wt.wtTable,t=e.getColumnHeaderHeight(0)+1+e.holder.scrollTop;kp(Hp,this).setPosition(t),kp(Hp,this).setSize(null,e.hider.offsetHeight-t)}function Qp(){this.moveBySettingsOrLoad()}function Zp(e,t,n){ef(e,t),t.set(e,n)}function ef(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function tf(e,t,n){return e.set(of(e,t),n),n}function nf(e,t){return e.get(of(e,t))}function of(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const rf="manualColumnResize",sf="manualColumnWidths";var af=new WeakMap,lf=new WeakMap,cf=new WeakMap,df=new WeakMap,uf=new WeakMap,hf=new WeakMap,mf=new WeakMap,pf=new WeakMap,ff=new WeakMap,gf=new WeakMap,bf=new WeakMap,vf=new WeakMap,yf=new WeakMap,wf=new WeakMap,Cf=new WeakMap,_f=new WeakMap,Sf=new WeakSet;class Mf extends dn{static get PLUGIN_KEY(){return rf}static get PLUGIN_PRIORITY(){return 130}constructor(e){var t;super(e),ef(this,t=Sf),t.add(this),Zp(this,af,null),Zp(this,lf,null),Zp(this,cf,[]),Zp(this,df,null),Zp(this,uf,null),Zp(this,hf,null),Zp(this,mf,null),Zp(this,pf,null),Zp(this,ff,this.hot.rootDocument.createElement("DIV")),Zp(this,gf,this.hot.rootDocument.createElement("DIV")),Zp(this,bf,null),Zp(this,vf,!1),Zp(this,yf,0),Zp(this,wf,null),Zp(this,Cf,void 0),Zp(this,_f,void 0),(0,i.iQ)(nf(ff,this),"manualColumnResizer"),(0,i.iQ)(nf(gf,this),"manualColumnResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[rf]}enablePlugin(){var e=this;this.enabled||(tf(Cf,this,new yn._),nf(Cf,this).addLocalHook("init",(()=>of(Sf,this,Ef).call(this))),this.hot.columnIndexMapper.registerMap(this.pluginName,nf(Cf,this)),this.addHook("modifyColWidth",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return of(Sf,e,Lf).call(e,...n)}),1),this.addHook("beforeStretchingColumnWidth",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return of(Sf,e,Of).call(e,...n)}),1),this.addHook("beforeColumnResize",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return of(Sf,e,Df).call(e,...n)})),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){tf(_f,this,nf(Cf,this).getValues()),this.hot.columnIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualColumnWidths(){this.hot.runHooks("persistentStateSave",sf,nf(Cf,this).getValues())}loadManualColumnWidths(){const e={};return this.hot.runHooks("persistentStateLoad",sf,e),e.value}setManualSize(e,t){const n=Math.max(t,20),o=this.hot.toPhysicalColumn(e);return nf(Cf,this).setValueAtIndex(o,n),n}clearManualSize(e){const t=this.hot.toPhysicalColumn(e);nf(Cf,this).setValueAtIndex(t,null)}setupHandlePosition(e){if(!e.parentNode)return;tf(af,this,e);const{_wt:t}=this.hot.view,n=t.wtTable.getCoords(nf(af,this)),o=n.col;if(o<0)return;const r=(0,i.DK)(nf(af,this)),s=nf(af,this).getBoundingClientRect();let a;o<t.getSetting("fixedColumnsStart")&&(a=t.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(nf(af,this),n.row,n.col)),a||(a=t.wtOverlays.topOverlay.getRelativeCellPosition(nf(af,this),n.row,n.col)),tf(lf,this,this.hot.columnIndexMapper.getVisualFromRenderableIndex(o)),tf(cf,this,[]);const l=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByColumnHeader();if(this.hot.selection.isSelected()&&l){const e=this.hot.getSelectedRange();(0,d.z0)(e,(e=>{const t=e.getTopStartCorner().col,n=e.getBottomEndCorner().col;(0,Et.Ti)(t,n,(e=>{nf(cf,this).includes(e)||nf(cf,this).push(e)}))}))}nf(cf,this).includes(nf(lf,this))||tf(cf,this,[nf(lf,this)]),tf(pf,this,a.start-6),tf(mf,this,parseInt(s.width,10)),nf(ff,this).style.top=`${a.top}px`,nf(ff,this).style[this.inlineDir]=`${nf(pf,this)+nf(mf,this)}px`,nf(ff,this).style.height=`${r}px`,this.hot.rootElement.appendChild(nf(ff,this))}refreshHandlePosition(){nf(ff,this).style[this.inlineDir]=`${nf(pf,this)+nf(df,this)}px`}setupGuidePosition(){const e=parseInt((0,i.DK)(nf(ff,this)),10),t=parseInt(nf(ff,this).style.top,10)+e,n=this.hot.view.getTableHeight();(0,i.iQ)(nf(ff,this),"active"),(0,i.iQ)(nf(gf,this),"active"),nf(gf,this).style.top=`${t}px`,this.refreshGuidePosition(),nf(gf,this).style.height=n-e+"px",this.hot.rootElement.appendChild(nf(gf,this))}refreshGuidePosition(){nf(gf,this).style[this.inlineDir]=nf(ff,this).style[this.inlineDir]}hideHandleAndGuide(){(0,i.vy)(nf(ff,this),"active"),(0,i.vy)(nf(gf,this),"active")}checkIfColumnHeader(e){const t=(0,i.kp)(e,["THEAD"],this.hot.rootElement),{topOverlay:n,topInlineStartCornerOverlay:o}=this.hot.view._wt.wtOverlays;return[n.clone.wtTable.THEAD,o.clone.wtTable.THEAD].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}afterMouseDownTimeout(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},t=(t,n)=>{const o=this.hot.runHooks("beforeColumnResize",nf(uf,this),t,!0);void 0!==o&&tf(uf,this,o),this.setManualSize(t,nf(uf,this)),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",nf(uf,this),t,!0),n&&e()};nf(yf,this)>=2&&(nf(cf,this).length>1?((0,d.z0)(nf(cf,this),(e=>{t(e)})),e()):(0,d.z0)(nf(cf,this),(e=>{t(e,!0)}))),tf(yf,this,0),tf(wf,this,null)}bindEvents(){const{rootWindow:e,rootElement:t}=this.hot;this.eventManager.addEventListener(t,"mouseover",(e=>of(Sf,this,xf).call(this,e))),this.eventManager.addEventListener(t,"mousedown",(e=>of(Sf,this,kf).call(this,e))),this.eventManager.addEventListener(e,"mousemove",(e=>of(Sf,this,Tf).call(this,e))),this.eventManager.addEventListener(e,"mouseup",(()=>of(Sf,this,Rf).call(this))),this.eventManager.addEventListener(nf(ff,this),"contextmenu",(()=>of(Sf,this,Af).call(this)))}destroy(){super.destroy()}}function Ef(){const e=this.hot.getSettings()[rf],t=this.loadManualColumnWidths();void 0!==t?this.hot.batchExecution((()=>{t.forEach(((e,t)=>{nf(Cf,this).setValueAtIndex(t,e)}))}),!0):Array.isArray(e)?(this.hot.batchExecution((()=>{e.forEach(((e,t)=>{nf(Cf,this).setValueAtIndex(t,e)}))}),!0),tf(_f,this,e)):!0===e&&Array.isArray(nf(_f,this))&&this.hot.batchExecution((()=>{nf(_f,this).forEach(((e,t)=>{nf(Cf,this).setValueAtIndex(t,e)}))}),!0)}function xf(e){if(!(0,i.$w)(e.target)&&!0!==nf(vf,this)&&this.checkIfColumnHeader(e.target)){const t=this.getClosestTHParent(e.target);if(!t)return;const n=t.getAttribute("colspan");!t||null!==n&&"1"!==n||nf(bf,this)||this.setupHandlePosition(t)}}function kf(e){e.target.parentNode===this.hot.rootElement&&(0,i.nB)(e.target,"manualColumnResizer")&&(this.setupHandlePosition(nf(af,this)),this.setupGuidePosition(),tf(bf,this,!0),null===nf(wf,this)&&(tf(wf,this,setTimeout((()=>this.afterMouseDownTimeout()),500)),this.hot._registerTimeout(nf(wf,this))),tf(yf,this,nf(yf,this)+1),this.startX=e.pageX,tf(uf,this,nf(mf,this)))}function Tf(e){if(nf(bf,this)){const t=(e.pageX-this.startX)*this.hot.getDirectionFactor();tf(df,this,nf(mf,this)+t),(0,d.z0)(nf(cf,this),(e=>{tf(uf,this,this.setManualSize(e,nf(df,this)))})),this.refreshHandlePosition(),this.refreshGuidePosition()}}function Rf(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},t=(t,n)=>{this.hot.runHooks("beforeColumnResize",nf(uf,this),t,!1),n&&e(),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",nf(uf,this),t,!1)};nf(bf,this)&&(this.hideHandleAndGuide(),tf(bf,this,!1),nf(uf,this)!==nf(mf,this)&&(nf(cf,this).length>1?((0,d.z0)(nf(cf,this),(e=>{t(e)})),e()):(0,d.z0)(nf(cf,this),(e=>{t(e,!0)}))),this.setupHandlePosition(nf(af,this)))}function Af(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(nf(ff,this)),this.hot.rootElement.removeChild(nf(gf,this)),tf(bf,this,!1),tf(vf,this,!0),this.hot._registerImmediate((()=>{tf(vf,this,!1)}))}function Lf(e,t){let n=e;if(this.enabled){const e=this.hot.toPhysicalColumn(t),o=nf(Cf,this).getValueAtIndex(e);this.hot.getSettings()[rf]&&o&&(n=o)}return n}function Of(e,t){const n=nf(Cf,this).getValueAtIndex(this.hot.toPhysicalColumn(t));return"number"==typeof n?n:e}function Df(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}function Hf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const If="px",Pf=class{constructor(e){Hf(this,"hot",void 0),Hf(this,"_element",null),Hf(this,"state",0),this.hot=e}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){void 0!==e&&(this._element.style.top=e+If),void 0!==t&&(this._element.style.left=t+If)}getPosition(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}setSize(e,t){e&&(this._element.style.width=e+If),t&&(this._element.style.height=t+If)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){e&&(this._element.style.marginTop=e+If),t&&(this._element.style.marginLeft=t+If)}getOffset(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}},Nf=class extends Pf{build(){super.build(),(0,i.iQ)(this._element,"ht__manualRowMove--backlight")}},Ff=class extends Pf{build(){super.build(),(0,i.iQ)(this._element,"ht__manualRowMove--guideline")}};function zf(e,t,n){jf(e,t),t.set(e,n)}function jf(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Yf(e,t,n){return e.set(Bf(e,t),n),n}function $f(e,t){return e.get(Bf(e,t))}function Bf(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Se.R.getSingleton().register("beforeRowMove"),Se.R.getSingleton().register("afterRowMove");const Wf="manualRowMove",Vf="ht__manualRowMove",Uf="show-ui",Gf="on-moving--rows",Kf="after-selection--rows";var qf=new WeakMap,Xf=new WeakMap,Jf=new WeakMap,Qf=new WeakMap,Zf=new WeakMap,eg=new WeakMap,tg=new WeakSet;class ng extends dn{constructor(){var e;super(...arguments),jf(this,e=tg),e.add(this),zf(this,qf,new Nf(this.hot)),zf(this,Xf,new Ff(this.hot)),zf(this,Jf,[]),zf(this,Qf,void 0),zf(this,Zf,{}),zf(this,eg,void 0)}static get PLUGIN_KEY(){return Wf}static get PLUGIN_PRIORITY(){return 140}isEnabled(){return!!this.hot.getSettings()[Wf]}enablePlugin(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Bf(tg,e,og).call(e,...n)})),this.addHook("beforeOnCellMouseOver",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Bf(tg,e,rg).call(e,...n)})),this.addHook("afterScrollHorizontally",(()=>Bf(tg,this,ag).call(this))),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Bf(tg,e,lg).call(e,...n)})),this.buildPluginUI(),this.registerEvents(),(0,i.iQ)(this.hot.rootElement,Vf),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){(0,i.vy)(this.hot.rootElement,Vf),this.unregisterEvents(),$f(qf,this).destroy(),$f(Xf,this).destroy(),super.disablePlugin()}moveRow(e,t){return this.moveRows([e],t)}moveRows(e,t){const n=$f(eg,this),o=this.isMovePossible(e,t),i=this.hot.runHooks("beforeRowMove",e,t,n,o);if(Yf(eg,this,void 0),!1===i)return;o&&this.hot.rowIndexMapper.moveIndexes(e,t);const r=o&&this.isRowOrderChanged(e,t);return this.hot.runHooks("afterRowMove",e,t,n,o,r),r}dragRow(e,t){return this.dragRows([e],t)}dragRows(e,t){const n=this.countFinalIndex(e,t);return Yf(eg,this,t),this.moveRows(e,n)}isMovePossible(e,t){const n=this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),o=e.length+t>n,i=t<0,r=e.some((e=>e<0)),s=e.some((e=>e>=n));return!(o||i||r||s)}isRowOrderChanged(e,t){return e.some(((e,n)=>e-n!==t))}countFinalIndex(e,t){const n=(0,d.mu)(e,((e,n)=>(n<t&&(e+=1),e)),0);return t-n}getRowsHeight(e,t){const n=this.hot.rowIndexMapper;let o=0;for(let i=e;i<=t;i++){const e=n.getRenderableFromVisualIndex(i);null!==e&&(o+=this.hot.view._wt.wtTable.getRowHeight(e)||this.hot.view.getDefaultRowHeight())}return o}moveBySettingsOrLoad(){const e=this.hot.getSettings()[Wf];if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){const e=this.persistentStateLoad();e.length&&this.moveRows(e,0)}}isFixedRowTop(e){return e<this.hot.getSettings().fixedRowsTop}isFixedRowBottom(e){return e>this.hot.countRows()-1-this.hot.getSettings().fixedRowsBottom}persistentStateSave(){this.hot.runHooks("persistentStateSave","manualRowMove",this.hot.rowIndexMapper.getIndexesSequence())}persistentStateLoad(){const e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}prepareRowsToMoving(){const e=this.hot.getSelectedRangeLast(),t=[];if(!e)return t;const{from:n,to:o}=e,i=Math.min(n.row,o.row),r=Math.max(n.row,o.row);return(0,Et.Ti)(i,r,(e=>{t.push(e)})),t}refreshPositions(){const e=$f(Zf,this).coords,t=this.hot.getFirstFullyVisibleRow(),n=this.hot.getLastFullyVisibleRow(),o=this.hot.countRows();this.isFixedRowTop(e.row)&&t>0&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(t-1,-1)),this.isFixedRowBottom(e.row)&&n<o&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(n+1,1),void 0,!0);const r=this.hot.view._wt.wtTable,s=$f(Zf,this).TD,a=this.hot.rootElement,l=(0,i.cY)(a),c=(0,i.fX)(a),d=r.holder.scrollTop,u=this.hot.rootWindow!==c?c.scrollTop:0,h=l.top-u,m=$f(Zf,this).eventPageY-h+d,p=r.hider.offsetHeight,f=r.TBODY.offsetTop,g=$f(qf,this).getOffset().top,b=$f(qf,this).getSize().height,v=s.offsetHeight/2,y=s.offsetHeight;let w=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,e.row-1);const C=m>=w+v;this.isFixedRowTop(e.row)&&(w+=this.hot.view._wt.wtOverlays.topOverlay.getOverlayOffset()),e.row<0?$f(Zf,this).row=t>0?t-1:t:C?($f(Zf,this).row=e.row+1,w+=0===e.row?y-1:y):$f(Zf,this).row=e.row;let _=m,S=w;m+b+g>=p?_=p-b-g:m+g<f&&(_=f+Math.abs(g)),w>=p-1&&(S=p-1),$f(qf,this).setPosition(_),$f(Xf,this).setPosition(S)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",(e=>Bf(tg,this,ig).call(this,e))),this.eventManager.addEventListener(e,"mouseup",(()=>Bf(tg,this,sg).call(this)))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){$f(qf,this).build(),$f(Xf,this).build()}destroy(){$f(qf,this).destroy(),$f(Xf,this).destroy(),super.destroy()}}function og(e,t,n,o){const{wtTable:r,wtViewport:s}=this.hot.view._wt,a=this.hot.selection.isSelectedByRowHeader(),l=this.hot.getSelectedRangeLast();if(!l||!a||$f(Qf,this)||0!==e.button)return Yf(Qf,this,!1),$f(Jf,this).length=0,void(0,i.vy)(this.hot.rootElement,[Gf,Uf]);const c=$f(Xf,this).isBuilt()&&!$f(Xf,this).isAppended(),d=$f(qf,this).isBuilt()&&!$f(qf,this).isAppended();c&&d&&($f(Xf,this).appendTo(r.hider),$f(qf,this).appendTo(r.hider));const{from:u,to:h}=l,m=Math.min(u.row,h.row),p=Math.max(u.row,h.row);if(t.col<0&&t.row>=m&&t.row<=p){o.row=!0,Yf(Qf,this,!0),$f(Zf,this).eventPageY=e.pageY,$f(Zf,this).coords=t,$f(Zf,this).TD=n,Yf(Jf,this,this.prepareRowsToMoving());const a=r.holder.scrollLeft+s.getRowHeaderWidth(),l=this.getRowsHeight(m,t.row-1)+(e.clientY-n.getBoundingClientRect().top);$f(qf,this).setPosition(null,a),$f(qf,this).setSize(r.hider.offsetWidth-a,this.getRowsHeight(m,p)),$f(qf,this).setOffset(-l,null),(0,i.iQ)(this.hot.rootElement,Gf),this.refreshPositions()}else(0,i.vy)(this.hot.rootElement,Kf),Yf(Qf,this,!1),$f(Jf,this).length=0}function ig(e){$f(Qf,this)&&($f(Zf,this).eventPageY=e.pageY,this.refreshPositions())}function rg(e,t,n,o){this.hot.getSelectedRangeLast()&&$f(Qf,this)&&($f(Jf,this).indexOf(t.row)>-1?(0,i.vy)(this.hot.rootElement,Uf):(0,i.iQ)(this.hot.rootElement,Uf),o.row=!0,o.column=!0,o.cell=!0,$f(Zf,this).coords=t,$f(Zf,this).TD=n)}function sg(){const e=$f(Zf,this).row,t=$f(Jf,this).length;if(Yf(Qf,this,!1),(0,i.vy)(this.hot.rootElement,[Gf,Uf,Kf]),this.hot.selection.isSelectedByRowHeader()&&(0,i.iQ)(this.hot.rootElement,Kf),t<1||void 0===e)return;const n=$f(Jf,this)[0],o=this.hot.toPhysicalRow(n),r=this.dragRows($f(Jf,this),e);if($f(Jf,this).length=0,!0===r){this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize();const e=this.hot.toVisualRow(o),n=e+t-1;this.hot.selectRows(e,n)}}function ag(){const e=this.hot.view._wt.wtTable,t=this.hot.view._wt.wtViewport.getRowHeaderWidth()+e.holder.scrollLeft;$f(qf,this).setPosition(null,t),$f(qf,this).setSize(e.hider.offsetWidth-t)}function lg(){this.moveBySettingsOrLoad()}function cg(e,t,n){dg(e,t),t.set(e,n)}function dg(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ug(e,t,n){return e.set(mg(e,t),n),n}function hg(e,t){return e.get(mg(e,t))}function mg(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const pg="manualRowResize",fg="manualRowHeights";var gg=new WeakMap,bg=new WeakMap,vg=new WeakMap,yg=new WeakMap,wg=new WeakMap,Cg=new WeakMap,_g=new WeakMap,Sg=new WeakMap,Mg=new WeakMap,Eg=new WeakMap,xg=new WeakMap,kg=new WeakMap,Tg=new WeakMap,Rg=new WeakMap,Ag=new WeakMap,Lg=new WeakMap,Og=new WeakSet;class Dg extends dn{static get PLUGIN_KEY(){return pg}static get PLUGIN_PRIORITY(){return 30}constructor(e){var t;super(e),dg(this,t=Og),t.add(this),cg(this,gg,null),cg(this,bg,null),cg(this,vg,[]),cg(this,yg,null),cg(this,wg,null),cg(this,Cg,null),cg(this,_g,null),cg(this,Sg,null),cg(this,Mg,this.hot.rootDocument.createElement("DIV")),cg(this,Eg,this.hot.rootDocument.createElement("DIV")),cg(this,xg,!1),cg(this,kg,!1),cg(this,Tg,0),cg(this,Rg,null),cg(this,Ag,void 0),cg(this,Lg,void 0),(0,i.iQ)(hg(Mg,this),"manualRowResizer"),(0,i.iQ)(hg(Eg,this),"manualRowResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[pg]}enablePlugin(){this.enabled||(ug(Ag,this,new yn._),hg(Ag,this).addLocalHook("init",(()=>mg(Og,this,jg).call(this))),this.hot.rowIndexMapper.registerMap(this.pluginName,hg(Ag,this)),this.addHook("modifyRowHeight",((e,t)=>mg(Og,this,zg).call(this,e,t))),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){ug(Lg,this,hg(Ag,this).getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualRowHeights(){this.hot.runHooks("persistentStateSave",fg,hg(Ag,this).getValues())}loadManualRowHeights(){const e={};return this.hot.runHooks("persistentStateLoad",fg,e),e.value}setManualSize(e,t){const n=this.hot.toPhysicalRow(e),o=Math.max(t,this.hot.view.getDefaultRowHeight());return hg(Ag,this).setValueAtIndex(n,o),o}getLastDesiredRowHeight(){return hg(yg,this)}setupHandlePosition(e){ug(gg,this,e);const{view:t}=this.hot,{_wt:n}=t,o=n.wtTable.getCoords(hg(gg,this)),r=o.row;if(r<0)return;const s=(0,i.Gq)(hg(gg,this)),a=hg(gg,this).getBoundingClientRect(),l=r<n.getSetting("fixedRowsTop"),c=r>=t.countNotHiddenRowIndexes(0,1)-n.getSetting("fixedRowsBottom");let u;l?u=n.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(hg(gg,this),o.row,o.col):c&&(u=n.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(hg(gg,this),o.row,o.col)),u||(u=n.wtOverlays.inlineStartOverlay.getRelativeCellPosition(hg(gg,this),o.row,o.col)),ug(bg,this,this.hot.rowIndexMapper.getVisualFromRenderableIndex(r)),ug(vg,this,[]);const h=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();if(this.hot.selection.isSelected()&&h){const e=this.hot.getSelectedRange();(0,d.z0)(e,(e=>{const t=e.getTopStartCorner().row,n=e.getBottomStartCorner().row;(0,Et.Ti)(t,n,(e=>{hg(vg,this).includes(e)||hg(vg,this).push(e)}))}))}hg(vg,this).includes(hg(bg,this))||ug(vg,this,[hg(bg,this)]),ug(Sg,this,u.top-6),ug(_g,this,parseInt(a.height,10)),hg(Mg,this).style.top=`${hg(Sg,this)+hg(_g,this)}px`,hg(Mg,this).style[this.inlineDir]=`${u.start}px`,hg(Mg,this).style.width=`${s}px`,this.hot.rootElement.appendChild(hg(Mg,this))}refreshHandlePosition(){hg(Mg,this).style.top=`${hg(Sg,this)+hg(yg,this)}px`}setupGuidePosition(){const e=parseInt((0,i.Gq)(hg(Mg,this)),10),t=parseInt(hg(Mg,this).style[this.inlineDir],10)+e,n=this.hot.view.getTableWidth();(0,i.iQ)(hg(Mg,this),"active"),(0,i.iQ)(hg(Eg,this),"active"),hg(Eg,this).style.top=hg(Mg,this).style.top,hg(Eg,this).style[this.inlineDir]=`${t}px`,hg(Eg,this).style.width=n-e+"px",this.hot.rootElement.appendChild(hg(Eg,this))}refreshGuidePosition(){hg(Eg,this).style.top=hg(Mg,this).style.top}hideHandleAndGuide(){(0,i.vy)(hg(Mg,this),"active"),(0,i.vy)(hg(Eg,this),"active")}checkIfRowHeader(e){const t=(0,i.kp)(e,["TBODY"],this.hot.rootElement),{inlineStartOverlay:n,topInlineStartCornerOverlay:o,bottomInlineStartCornerOverlay:r}=this.hot.view._wt.wtOverlays;return[n.clone.wtTable.TBODY,o.clone.wtTable.TBODY,r.clone.wtTable.TBODY].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}getActualRowHeight(e){const t=this.hot.view._wt.wtTable.getRowHeight(e);return void 0!==t&&hg(wg,this)<t?t:hg(wg,this)}afterMouseDownTimeout(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},t=(t,n)=>{const o=this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!0);void 0!==o&&ug(wg,this,o),this.setManualSize(t,hg(wg,this)),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!0),n&&e()};hg(Tg,this)>=2&&(hg(vg,this).length>1?((0,d.z0)(hg(vg,this),(e=>{t(e)})),e()):(0,d.z0)(hg(vg,this),(e=>{t(e,!0)}))),ug(Tg,this,0),ug(Rg,this,null)}bindEvents(){const{rootElement:e,rootWindow:t}=this.hot;this.eventManager.addEventListener(e,"mouseover",(e=>mg(Og,this,Hg).call(this,e))),this.eventManager.addEventListener(e,"mousedown",(e=>mg(Og,this,Ig).call(this,e))),this.eventManager.addEventListener(t,"mousemove",(e=>mg(Og,this,Pg).call(this,e))),this.eventManager.addEventListener(t,"mouseup",(()=>mg(Og,this,Ng).call(this))),this.eventManager.addEventListener(hg(Mg,this),"contextmenu",(()=>mg(Og,this,Fg).call(this)))}destroy(){super.destroy()}}function Hg(e){if(!(0,i.$w)(e.target)&&!0!==hg(kg,this)&&this.checkIfRowHeader(e.target)){const t=this.getClosestTHParent(e.target);t&&(hg(xg,this)||this.setupHandlePosition(t))}}function Ig(e){(0,i.nB)(e.target,"manualRowResizer")&&(this.setupHandlePosition(hg(gg,this)),this.setupGuidePosition(),ug(xg,this,!0),null===hg(Rg,this)&&(ug(Rg,this,setTimeout((()=>this.afterMouseDownTimeout()),500)),this.hot._registerTimeout(hg(Rg,this))),ug(Tg,this,hg(Tg,this)+1),ug(Cg,this,e.pageY),ug(wg,this,hg(_g,this)))}function Pg(e){hg(xg,this)&&(ug(yg,this,hg(_g,this)+(e.pageY-hg(Cg,this))),(0,d.z0)(hg(vg,this),(e=>{ug(wg,this,this.setManualSize(e,hg(yg,this)))})),this.refreshHandlePosition(),this.refreshGuidePosition())}function Ng(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},t=(t,n)=>{this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!1),n&&e(),this.saveManualRowHeights(),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!1)};hg(xg,this)&&(this.hideHandleAndGuide(),ug(xg,this,!1),hg(wg,this)!==hg(_g,this)&&(hg(vg,this).length>1?((0,d.z0)(hg(vg,this),(e=>{t(e)})),e()):(0,d.z0)(hg(vg,this),(e=>{t(e,!0)}))),this.setupHandlePosition(hg(gg,this)))}function Fg(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(hg(Mg,this)),this.hot.rootElement.removeChild(hg(Eg,this)),ug(xg,this,!1),ug(kg,this,!0),this.hot._registerImmediate((()=>{ug(kg,this,!1)}))}function zg(e,t){let n=e;if(this.enabled){const e=this.hot.toPhysicalRow(t),o=hg(Ag,this).getValueAtIndex(e);this.hot.getSettings()[pg]&&o&&(n=o)}return n}function jg(){const e=this.hot.getSettings()[pg],t=this.loadManualRowHeights();this.hot.batchExecution((()=>{void 0!==t?t.forEach(((e,t)=>{hg(Ag,this).setValueAtIndex(t,e)})):Array.isArray(e)?(e.forEach(((e,t)=>{hg(Ag,this).setValueAtIndex(t,e)})),ug(Lg,this,e)):!0===e&&Array.isArray(hg(Lg,this))&&hg(Lg,this).forEach(((e,t)=>{hg(Ag,this).setValueAtIndex(t,e)}))}),!0)}function Yg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $g(e,t){return e.get(Wg(e,t))}function Bg(e,t,n){return e.set(Wg(e,t),n),n}function Wg(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n(30237),n(30670);var Vg=new WeakMap;const Ug=class{constructor(e,t,n,o,i,r){var s,a,l;Yg(this,"row",void 0),Yg(this,"col",void 0),Yg(this,"rowspan",void 0),Yg(this,"colspan",void 0),Yg(this,"removed",!1),Yg(this,"cellCoordsFactory",void 0),Yg(this,"cellRangeFactory",void 0),l=null,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(s=this,a=Vg),a.set(s,l),this.row=e,this.col=t,this.rowspan=n,this.colspan=o,this.cellCoordsFactory=i,this.cellRangeFactory=r}static NEGATIVE_VALUES_WARNING(e){let{row:t,col:n,rowspan:o,colspan:i}=e;return bi.O`The merged cell declared with {row: ${t}, col: ${n},\x20
  12. rowspan: ${o}, colspan: ${i}} contains negative values, which is\x20
  13. not supported. It will not be added to the collection.`}static IS_OUT_OF_BOUNDS_WARNING(e){let{row:t,col:n}=e;return bi.O`The merged cell declared at [${t}, ${n}] is positioned\x20
  14. (or positioned partially) outside of the table range. It was not added to the table, please fix your setup.`}static IS_SINGLE_CELL(e){let{row:t,col:n}=e;return bi.O`The merged cell declared at [${t}, ${n}] has both "rowspan"\x20
  15. and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.`}static ZERO_SPAN_WARNING(e){let{row:t,col:n}=e;return bi.O`The merged cell declared at [${t}, ${n}] has "rowspan"\x20
  16. or "colspan" declared as "0", which is not supported. It cannot be added to the collection.`}static containsNegativeValues(e){let{row:t,col:n,rowspan:o,colspan:i}=e;return t<0||n<0||o<0||i<0}static isSingleCell(e){let{rowspan:t,colspan:n}=e;return 1===n&&1===t}static containsZeroSpan(e){let{rowspan:t,colspan:n}=e;return 0===n||0===t}static isOutOfBounds(e,t,n){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=n||e.col+e.colspan-1>=n}normalize(e){const t=e.countRows(),n=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>n-1&&(this.col=n-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>n-1&&(this.colspan=n-this.col),Bg(Vg,this,null)}includes(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}includesHorizontally(e){return this.col<=e&&this.col+this.colspan-1>=e}includesVertically(e){return this.row<=e&&this.row+this.rowspan-1>=e}shift(e,t){const n=e[0]||e[1],o=t+Math.abs(e[0]||e[1])-1,i=e[0]?"colspan":"rowspan",r=e[0]?"col":"row",s=Math.min(t,o),a=Math.max(t,o),l=this[r],c=this[r]+this[i]-1;if(l>=t&&(this[r]+=n),n>0)t<=c&&t>l&&(this[i]+=n);else if(n<0){if(s<=l&&a>=c)return this.removed=!0,Bg(Vg,this,null),!1;if(l>=s&&l<=a){const e=a-l+1,t=Math.abs(n)-e;this[r]-=t+n,this[i]-=e}else if(l<=s&&c>=a)this[i]+=n;else if(l<=s&&c>=s&&c<a){const e=c-s+1;this[i]-=e}}return Bg(Vg,this,null),!0}isFarther(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}getLastRow(){return this.row+this.rowspan-1}getLastColumn(){return this.col+this.colspan-1}getRange(){return $g(Vg,this)||Bg(Vg,this,this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))),$g(Vg,this)}};function Gg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kg(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var qg=new WeakSet;class Xg{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=qg),n.add(t),Gg(this,"plugin",void 0),Gg(this,"mergedCells",[]),Gg(this,"mergedCellsMatrix",new Map),Gg(this,"hot",void 0),this.plugin=e,this.hot=e.hot}static IS_OVERLAPPING_WARNING(e){let{row:t,col:n}=e;return bi.O`The merged cell declared at [${t}, ${n}], overlaps\x20
  17. with the other declared merged cell. The overlapping merged cell was not added to the table, please\x20
  18. fix your setup.`}get(e,t){var n;return!!this.mergedCellsMatrix.has(e)&&null!==(n=this.mergedCellsMatrix.get(e).get(t))&&void 0!==n&&n}getByRange(e){const{row:t,col:n}=e.getTopStartCorner(),{row:o,col:i}=e.getBottomEndCorner(),r=this.mergedCells.length;let s=!1;for(let e=0;e<r;e++){const r=this.mergedCells[e],{row:a,col:l,rowspan:c,colspan:d}=r;if(a>=t&&a+c-1<=o&&l>=n&&l+d-1<=i){s=r;break}}return s}filterOverlappingMergeCells(e){const t=new Set;return this.mergedCells.forEach((e=>{const{row:n,col:o,colspan:i,rowspan:r}=e;for(let e=n;e<n+r;e++)for(let n=o;n<o+i;n++)t.add(`r${e},c${n}`)})),e.filter((e=>{const{row:n,col:o,colspan:i,rowspan:r}=e,s=new Set;let a=!1;for(let l=n;l<n+r;l++){for(let n=o;n<o+i;n++){const o=`r${l},c${n}`;if(t.has(o)){(0,Po.R8)(Xg.IS_OVERLAPPING_WARNING(e)),a=!0;break}s.add(o)}if(a)break}return a||t.add(...s),!a}))}getWithinRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{row:n,col:o}=e.getTopStartCorner(),{row:i,col:r}=e.getBottomEndCorner(),s=[];for(let e=n;e<=i;e++)for(let n=o;n<=r;n++){const o=this.get(e,n);o&&(t||!t&&o.row===e&&o.col===n)&&s.push(o)}return s}add(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.row,o=e.col,i=e.rowspan,r=e.colspan,s=new Ug(n,o,i,r,this.hot._createCellCoords,this.hot._createCellRange),a=this.get(n,o),l=!t&&this.isOverlapping(s);return a||l?(l&&(0,Po.R8)(Xg.IS_OVERLAPPING_WARNING(s)),!1):(this.hot&&s.normalize(this.hot),this.mergedCells.push(s),Kg(qg,this,Qg).call(this,s),s)}remove(e,t){const n=this.get(e,t),o=n?this.mergedCells.indexOf(n):-1;return!(!n||-1===o)&&(this.mergedCells.splice(o,1),Kg(qg,this,Zg).call(this,n),n)}clear(){(0,d.z0)(this.mergedCells,(e=>{let{row:t,col:n,rowspan:o,colspan:i}=e;(0,Et.Ti)(t,t+o,(e=>{(0,Et.Ti)(n,n+i,(t=>{const n=this.hot.getCell(e,t);n&&(n.removeAttribute("rowspan"),n.removeAttribute("colspan"),n.style.display="")}))}))})),this.mergedCells.length=0,this.mergedCellsMatrix=new Map}isOverlapping(e){const t=e.getRange();for(let e=0;e<this.mergedCells.length;e++)if(this.mergedCells[e].getRange().overlaps(t))return!0;return!1}isFirstRenderableMergedCell(e,t){const n=this.get(e,t);if(!n)return!1;const{row:o,col:i,rowspan:r,colspan:s}=n,a=this.hot.view.getActiveOverlayName(),l=["top","top_inline_start_corner"].includes(a)?0:this.hot.getFirstRenderedVisibleRow(),c=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(a)?0:this.hot.getFirstRenderedVisibleColumn(),d=(0,Et.qE)(l,o,o+r-1),u=(0,Et.qE)(c,i,i+s-1);return this.hot.rowIndexMapper.getNearestNotHiddenIndex(d,1)===e&&this.hot.columnIndexMapper.getNearestNotHiddenIndex(u,1)===t}getFirstRenderableCoords(e,t){const n=this.get(e,t);if(!n||this.isFirstRenderableMergedCell(e,t))return this.hot._createCellCoords(e,t);const o=this.hot.rowIndexMapper.getNearestNotHiddenIndex(n.row,1),i=this.hot.columnIndexMapper.getNearestNotHiddenIndex(n.col,1);return this.hot._createCellCoords(o,i)}getStartMostColumnIndex(e,t){const n=Kg(qg,this,Jg).call(this,e,"col",-1);let o=t;for(let e=0;e<n.length;e++)if(n[e]<=t){o=n[e];break}return o}getEndMostColumnIndex(e,t){const n=Kg(qg,this,Jg).call(this,e,"col",1);let o=t;for(let e=0;e<n.length;e++)if(n[e]>=t){o=n[e];break}return o}getTopMostRowIndex(e,t){const n=Kg(qg,this,Jg).call(this,e,"row",-1);let o=t;for(let e=0;e<n.length;e++)if(n[e]<=t){o=n[e];break}return o}getBottomMostRowIndex(e,t){const n=Kg(qg,this,Jg).call(this,e,"row",1);let o=t;for(let e=0;e<n.length;e++)if(n[e]>=t){o=n[e];break}return o}shiftCollections(e,t,n){const o=[0,0];switch(e){case"right":o[0]+=n;break;case"left":o[0]-=n;break;case"down":o[1]+=n;break;case"up":o[1]-=n}const i=[];this.mergedCells.forEach((e=>{e.shift(o,t),e.removed&&i.push(e)})),i.forEach((e=>{this.mergedCells.splice(this.mergedCells.indexOf(e),1)})),this.mergedCellsMatrix.clear(),this.mergedCells.forEach((e=>{Kg(qg,this,Qg).call(this,e)}))}}function Jg(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const o=new Map,i=1===n?e.getTopStartCorner():e.getBottomEndCorner(),r=1===n?e.getBottomEndCorner():e.getTopStartCorner();for(let e=i.row;1===n?e<=r.row:e>=r.row;e+=n)for(let s=i.col;1===n?s<=r.col:s>=r.col;s+=n){const i="row"===t?e:s,r=this.get(e,s);let a=i;r&&(a=1===n?r[t]+r[`${t}span`]-1:r[t]),o.has(i)||o.set(i,new Set),o.get(i).add(a)}return Array.from(new Set(Array.from(o.entries()).filter((e=>{let[,t]=e;return 1===t.size})).flatMap((e=>{let[,t]=e;return Array.from(t)}))))}function Qg(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let n=e.col;n<e.col+e.colspan;n++)this.mergedCellsMatrix.has(t)||this.mergedCellsMatrix.set(t,new Map),this.mergedCellsMatrix.get(t).set(n,e)}function Zg(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let n=e.col;n<e.col+e.colspan;n++)this.mergedCellsMatrix.get(t).delete(n)}const eb=Xg;function tb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nb=class{constructor(e){tb(this,"plugin",void 0),tb(this,"mergedCellsCollection",void 0),tb(this,"currentFillData",null),this.plugin=e,this.mergedCellsCollection=this.plugin.mergedCellsCollection}getDirection(e,t){let n=null;return n=t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left",n}snapDragArea(e,t,n,o){const i=t.slice(0),r=this.getAutofillSize(e,t,n),[s,a,l,c]=e,d=["up","down"].indexOf(n)>-1?l-s+1:c-a+1,u=r-Math.floor(r/d)*d,h=this.getFarthestCollection(e,t,n,o);if(h)if("down"===n){const e=h.row+h.rowspan-s-u;i[2]+e>=this.plugin.hot.countRows()?i[2]-=u:i[2]+=u?e:0}else if("right"===n){const e=h.col+h.colspan-a-u;i[3]+e>=this.plugin.hot.countCols()?i[3]-=u:i[3]+=u?e:0}else if("up"===n){const e=l-u-h.row+1;i[0]+e<0?i[0]+=u:i[0]-=u?e:0}else if("left"===n){const e=c-u-h.col+1;i[1]+e<0?i[1]+=u:i[1]-=u?e:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:n,foundMergedCells:o,fillSize:r,dragArea:i,cycleLength:d}),i}updateCurrentFillCache(e){this.currentFillData||(this.currentFillData={}),(0,s.X$)(this.currentFillData,e)}getAutofillSize(e,t,n){const[o,i,r,s]=e,[a,l,c,d]=t;switch(n){case"up":return o-a;case"down":return c-r;case"left":return i-l;case"right":return d-s;default:return null}}getDragArea(e,t,n){const[o,i,r,s]=e,[a,l,c,d]=t;switch(n){case"up":return[a,l,o-1,s];case"down":{const e=this.mergedCellsCollection.get(c,s);return[r+1,i,c+(e?e.rowspan-1:0),s]}case"left":return[a,l,r,i-1];case"right":{const e=this.mergedCellsCollection.get(c,s);return[o,s+(e?e.colspan-1:0),c,d]}default:return null}}getFarthestCollection(e,t,n,o){const[i,r,s,a]=e,l=["up","down"].indexOf(n)>-1,c=l?s:a,u=l?i:r,h=this.getAutofillSize(e,t,n),m=l?s-i+1:a-r+1,p=h-Math.floor(h/m)*m;let f=null,g=null,b=null;switch(n){case"up":f="includesVertically",b=c-p+1;break;case"left":f="includesHorizontally",b=c-p+1;break;case"down":f="includesVertically",b=u+p-1;break;case"right":f="includesHorizontally",b=u+p-1}return(0,d.z0)(o,(e=>{e[f](b)&&e.isFarther(g,n)&&(g=e)})),g}recreateAfterDataPopulation(e){if(!this.currentFillData)return;const t=this.getRangeFromChanges(e),n=this.currentFillData.foundMergedCells,o=this.currentFillData.dragDirection,i=(e,n)=>{switch(o){case"up":return e.row-n>=t.from.row;case"down":return e.row+e.rowspan-1+n<=t.to.row;case"left":return e.col-n>=t.from.column;case"right":return e.col+e.colspan-1+n<=t.to.column;default:return null}};let r=0,s=null,a=1;do{for(let e=0;e<n.length;e+=1){if(s=n[e],r=a*this.currentFillData.cycleLength,i(s,r))switch(o){case"up":this.plugin.mergedCellsCollection.add({row:s.row-r,rowspan:s.rowspan,col:s.col,colspan:s.colspan},!0);break;case"down":this.plugin.mergedCellsCollection.add({row:s.row+r,rowspan:s.rowspan,col:s.col,colspan:s.colspan},!0);break;case"left":this.plugin.mergedCellsCollection.add({row:s.row,rowspan:s.rowspan,col:s.col-r,colspan:s.colspan},!0);break;case"right":this.plugin.mergedCellsCollection.add({row:s.row,rowspan:s.rowspan,col:s.col+r,colspan:s.colspan},!0)}e===n.length-1&&(a+=1)}}while(i(s,r));this.currentFillData=null,this.plugin.hot.render(),n.length>0&&this.plugin.ifChromeForceRepaint()}getRangeFromChanges(e){const t={min:null,max:null},n={min:null,max:null};return(0,d.z0)(e,(e=>{const o=e[0],i=this.plugin.hot.propToCol(e[1]);(null===t.min||o<t.min)&&(t.min=o),(null===t.max||o>t.max)&&(t.max=o),(null===n.min||i<n.min)&&(n.min=i),(null===n.max||i>n.max)&&(n.max=i)})),{from:{row:t.min,column:n.min},to:{row:t.max,column:n.max}}}dragAreaOverlapsCollections(e,t,n){const o=this.getDragArea(e,t,n),[i,r,s,a]=o,l=this.plugin.hot._createCellCoords(i,r),c=this.plugin.hot._createCellCoords(s,a),d=this.plugin.hot._createCellRange(l,l,c);if(0===this.mergedCellsCollection.getWithinRange(d,!0).length)return!1;const u=this.mergedCellsCollection.getWithinRange(d,!1);return 0===u.length||("up"===n||"down"===n?!u.every((e=>{let{colspan:t}=e;return t===d.getWidth()})):!u.every((e=>{let{rowspan:t}=e;return t===d.getHeight()})))}};function ob(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ib=class{constructor(e){ob(this,"plugin",void 0),ob(this,"hot",void 0),ob(this,"fullySelectedMergedCellClassName","fullySelectedMergedCell"),this.plugin=e,this.hot=e.hot}getSelectedMergedCellClassName(e,t,n,o){const i=Math.min(n[0],n[2]),r=Math.min(n[1],n[3]),s=Math.max(n[0],n[2]),a=Math.max(n[1],n[3]);if(void 0===o)return;if(!this.plugin.mergedCellsCollection.isFirstRenderableMergedCell(e,t))return;const l=this.plugin.mergedCellsCollection.get(e,t);if(!l)return;const c=l.getLastRow(),d=l.getLastColumn();return i<=l.row&&r<=l.col&&s>=c&&a>=d?`${this.fullySelectedMergedCellClassName}-${o}`:this.isMergeCellFullySelected(l,this.plugin.hot.getSelectedRange())?`${this.fullySelectedMergedCellClassName}-multiple`:void 0}isMergeCellFullySelected(e,t){const n=[];if(!t||!e)return!1;for(let t=0;t<e.rowspan;t+=1)for(let o=0;o<e.colspan;o+=1)n.push(this.hot._createCellCoords(e.row+t,e.col+o));for(let e=0;e<n.length;e+=1){const o=[];for(let i=0;i<t.length;i+=1)o[i]=t[i].includes(n[e]);if(!o.includes(!0))return!1}return!0}getSelectedMergedCellClassNameToRemove(){const e=[];for(let t=0;t<=7;t+=1)e.push(`${this.fullySelectedMergedCellClassName}-${t}`);return e.push(`${this.fullySelectedMergedCellClassName}-multiple`),e}};function rb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class sb{constructor(e){rb(this,"data",void 0),rb(this,"next",null),rb(this,"prev",null),this.data=e}}const ab=class{constructor(){rb(this,"first",null),rb(this,"last",null)}push(e){const t=new sb(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.last;this.last=t,t.prev=e,e.next=t}return t}unshift(e){const t=new sb(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const n=e(t);if(t===this.last||!0===n)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,n,o=this.first;for(;o;){if(o.data===e)return t=o.next,n=o.prev,t&&(t.prev=n),n&&(n.next=t),o===this.first&&(this.first=t),o===this.last&&(this.last=n),!0;o=o.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,n){n&&(e(n,n.next),n.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,n=this.first;for(;t;)e=t.next,t.next=n,n.prev=t,n=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=n,this.last=e}};function lb(e,t,n){cb(e,t),t.set(e,n)}function cb(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function db(e,t){return e.get(hb(e,t))}function ub(e,t,n){return e.set(hb(e,t),n),n}function hb(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var mb=new WeakMap,pb=new WeakMap,fb=new WeakMap,gb=new WeakMap,bb=new WeakMap,vb=new WeakMap,yb=new WeakMap,wb=new WeakSet;class Cb{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:n,columnIndexMapper:o}=e;var i;cb(this,i=wb),i.add(this),lb(this,mb,new ab),lb(this,pb,new ab),lb(this,fb,null),lb(this,gb,null),lb(this,bb,null),lb(this,vb,null),lb(this,yb,null),ub(bb,this,t),ub(vb,this,n),ub(yb,this,o)}getCurrentVerticalNode(){return db(gb,this).data}getFirstVerticalNode(){return db(pb,this).first.data}getNextVerticalNode(){return db(gb,this).next.data}getPrevVerticalNode(){return db(gb,this).prev.data}getCurrentHorizontalNode(){return db(fb,this).data}getFirstHorizontalNode(){return db(mb,this).first.data}getNextHorizontalNode(){return db(fb,this).next.data}getPrevHorizontalNode(){return db(fb,this).prev.data}setPrevNodeAsActive(){ub(gb,this,db(gb,this).prev),ub(fb,this,db(fb,this).prev)}setNextNodeAsActive(){ub(gb,this,db(gb,this).next),ub(fb,this,db(fb,this).next)}buildFocusOrder(e){const t=e.getTopStartCorner(),n=e.getBottomEndCorner(),o=new WeakSet;ub(mb,this,new ab);for(let i=t.row;i<=n.row;i++)if(!db(vb,this).isHidden(i))for(let r=t.col;r<=n.col;r++){if(db(yb,this).isHidden(r))continue;const t=hb(wb,this,_b).call(this,e,db(mb,this),o,i,r);t&&ub(fb,this,t)}db(mb,this).first&&(db(mb,this).first.prev=db(mb,this).last,db(mb,this).last.next=db(mb,this).first);const i=new WeakSet;ub(pb,this,new ab);for(let o=t.col;o<=n.col;o++)if(!db(yb,this).isHidden(o))for(let r=t.row;r<=n.row;r++){if(db(vb,this).isHidden(r))continue;const t=hb(wb,this,_b).call(this,e,db(pb,this),i,r,o);t&&ub(gb,this,t)}db(pb,this).first&&(db(pb,this).first.prev=db(pb,this).last,db(pb,this).last.next=db(pb,this).first)}setActiveNode(e,t){return db(mb,this).inorder((n=>{const{rowStart:o,rowEnd:i,colStart:r,colEnd:s}=n.data;if(e>=o&&e<=i&&t>=r&&t<=s)return ub(fb,this,n),!1})),db(pb,this).inorder((n=>{const{rowStart:o,rowEnd:i,colStart:r,colEnd:s}=n.data;if(e>=o&&e<=i&&t>=r&&t<=s)return ub(gb,this,n),!1})),this}}function _b(e,t,n,o,i){const r=e.getTopStartCorner(),s=e.getBottomEndCorner(),a=e.highlight.clone().normalize(),l=db(bb,this).call(this,o,i);if(l&&n.has(l))return null;const c={colStart:i,colEnd:i,rowStart:o,rowEnd:o};if(l){if(n.add(l),l.row<r.row||l.row+l.rowspan-1>s.row||l.col<r.col||l.col+l.colspan-1>s.col)return null;c.colStart=l.col,c.colEnd=l.col+l.colspan-1,c.rowStart=l.row,c.rowEnd=l.row+l.rowspan-1}const d=t.push(c);return o===a.row&&i===a.col||l&&a.row>=l.row&&a.row<=l.row+l.rowspan-1&&a.col>=l.col&&a.col<=l.col+l.colspan-1?d:null}function Sb(e,t,n){const{view:o,rowIndexMapper:i}=e,r=o.getStylesHandler(),s=o.getDefaultRowHeight();let a=0;for(let o=t;o<t+n;o++){var l;i.isHidden(o)||(a+=null!==(l=e.getRowHeight(o))&&void 0!==l?l:s,0!==o||r.isClassicTheme()||(a+=1))}return a}function Mb(e,t,n){Eb(e,t),t.set(e,n)}function Eb(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function xb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kb(e,t,n){return e.set(Rb(e,t),n),n}function Tb(e,t){return e.get(Rb(e,t))}function Rb(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Se.R.getSingleton().register("beforeMergeCells"),Se.R.getSingleton().register("afterMergeCells"),Se.R.getSingleton().register("beforeUnmergeCells"),Se.R.getSingleton().register("afterUnmergeCells");const Ab="mergeCells",Lb=Ab;var Ob=new WeakMap,Db=new WeakMap,Hb=new WeakMap,Ib=new WeakMap,Pb=new WeakSet;class Nb extends dn{constructor(){var e;super(...arguments),Eb(this,e=Pb),e.add(this),xb(this,"mergedCellsCollection",null),xb(this,"autofillCalculations",null),xb(this,"selectionCalculations",null),Mb(this,Ob,null),Mb(this,Db,{row:0,col:0}),Mb(this,Hb,new Cb({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),Mb(this,Ib,function(e){const{hot:t}=e,{rowIndexMapper:n,columnIndexMapper:o}=t,i=new Map;return{before:function(){},after:function(r,a,l){const c=e.mergedCellsCollection.get(a,l);if(!(0,s.Gv)(c))return r.removeAttribute("rowspan"),r.removeAttribute("colspan"),(0,te.nr)()&&i.has(a)&&!t.getSettings().rowHeaders&&(r.style.height=`${i.get(a)}px`,i.delete(a)),void(r.style.display="");const{row:d,col:u,colspan:h,rowspan:m}=c,[p,f]=e.translateMergedCellToRenderable(d,m,u,h),g=e.getSetting("virtualized");if((0,te.nr)()&&0===u&&!t.getSettings().rowHeaders){const e=Sb(t,d,m);i.set(a,e/m)}const b=p-n.getRenderableFromVisualIndex(a)+1,v=f-o.getRenderableFromVisualIndex(l)+1;let y=n.getNearestNotHiddenIndex(d,1),w=o.getNearestNotHiddenIndex(u,1);if(g){const e=t.view.getActiveOverlayName();["top","top_inline_start_corner"].includes(e)||(y=Math.max(y,t.getFirstRenderedVisibleRow())),["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)||(w=Math.max(w,t.getFirstRenderedVisibleColumn()))}const C=Math.min(m,b),_=Math.min(h,v);y===a&&w===l?(r.setAttribute("rowspan",C),r.setAttribute("colspan",_)):(r.removeAttribute("rowspan"),r.removeAttribute("colspan"),r.style.display="none")}}}(this))}static get PLUGIN_KEY(){return Ab}static get PLUGIN_PRIORITY(){return 150}static get DEFAULT_SETTINGS(){return{[rn]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[Ab]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new eb(this),this.autofillCalculations=new nb(this),this.selectionCalculations=new ib(this),this.addHook("afterInit",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Fb).call(e,...n)})),this.addHook("modifyTransformFocus",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,jb).call(e,...n)})),this.addHook("modifyTransformStart",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Yb).call(e,...n)})),this.addHook("modifyTransformEnd",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,$b).call(e,...n)})),this.addHook("beforeSelectionHighlightSet",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Bb).call(e,...n)})),this.addHook("beforeSetRangeStart",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Ub).call(e,...n)})),this.addHook("beforeSetRangeStartOnly",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Ub).call(e,...n)})),this.addHook("beforeSelectionFocusSet",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Gb).call(e,...n)})),this.addHook("afterSelectionFocusSet",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Kb).call(e,...n)})),this.addHook("afterSelectionEnd",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,qb).call(e,...n)})),this.addHook("modifyGetCellCoords",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Wb).call(e,...n)})),this.addHook("modifyGetCoordsElement",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Wb).call(e,...n)})),this.addHook("afterIsMultipleSelection",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,zb).call(e,...n)})),this.addHook("afterRenderer",(function(){return Tb(Ib,e).after(...arguments)})),this.addHook("afterContextMenuDefaultOptions",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Vb).call(e,...n)})),this.addHook("afterGetCellMeta",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Xb).call(e,...n)})),this.addHook("afterViewportRowCalculatorOverride",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Jb).call(e,...n)})),this.addHook("afterViewportColumnCalculatorOverride",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Qb).call(e,...n)})),this.addHook("modifyAutofillRange",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,Zb).call(e,...n)})),this.addHook("afterCreateCol",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,ev).call(e,...n)})),this.addHook("afterRemoveCol",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,tv).call(e,...n)})),this.addHook("afterCreateRow",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,nv).call(e,...n)})),this.addHook("afterRemoveRow",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,ov).call(e,...n)})),this.addHook("afterChange",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,iv).call(e,...n)})),this.addHook("beforeDrawBorders",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,rv).call(e,...n)})),this.addHook("afterDrawSelection",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,sv).call(e,...n)})),this.addHook("beforeRemoveCellClassNames",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,av).call(e,...n)})),this.addHook("beforeBeginEditing",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,lv).call(e,...n)})),this.addHook("modifyRowHeightByOverlayName",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Rb(Pb,e,cv).call(e,...n)})),this.addHook("beforeUndoStackChange",((e,t)=>{if("MergeCells"===t)return!1})),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(),super.updatePlugin()}ifChromeForceRepaint(){if(!(0,te.H8)())return;const e=[];let t=[];this.mergedCellsCollection.mergedCells.forEach((e=>{const{row:n,rowspan:o}=e;for(let e=n+1;e<n+o;e++)t.push(e)})),t=[...new Set(t)],t.forEach((t=>{const n=this.hot.rowIndexMapper.getRenderableFromVisualIndex(t);this.hot.view._wt.wtOverlays.getOverlays(!0).map((e=>"master"===(null==e?void 0:e.name)?e:e.clone.wtTable)).forEach((t=>{const o=t.getRow(n);o&&(o.style.background=(0,i.gd)(o,"backgroundColor").replace(")",", 0.99)"),e.push(o))}))})),this.hot._registerTimeout((()=>{e.forEach((e=>{var t;e.style.background=null===(t=(0,i.gd)(e,"backgroundColor"))||void 0===t?void 0:t.replace(", 0.99)",")")}))}),1)}validateSetting(e){return!(!e||(Ug.containsNegativeValues(e)?((0,Po.R8)(Ug.NEGATIVE_VALUES_WARNING(e)),1):Ug.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,Po.R8)(Ug.IS_OUT_OF_BOUNDS_WARNING(e)),1):Ug.isSingleCell(e)?((0,Po.R8)(Ug.IS_SINGLE_CELL(e)),1):Ug.containsZeroSpan(e)&&((0,Po.R8)(Ug.ZERO_SPAN_WARNING(e)),1)))}generateFromSettings(){const e=this.getSetting("cells").filter((e=>this.validateSetting(e))),t=this.mergedCellsCollection.filterOverlappingMergeCells(e),n=[];t.forEach((e=>{const{row:t,col:o,rowspan:i,colspan:r}=e,s=this.hot._createCellCoords(t,o),a=this.hot._createCellCoords(t+i-1,o+r-1),l=this.hot._createCellRange(s,s,a);this.mergeRange(l,!0,!0);for(let e=t;e<t+i;e++)for(let i=o;i<o+r;i++)e===t&&i===o||n.push([e,i,null])})),0!==n.length&&this.hot.setDataAtCell(n,void 0,void 0,this.pluginName)}clearCollections(){this.mergedCellsCollection.clear()}canMergeRange(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}mergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");const{from:t,to:n}=e;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}unmergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;const{from:t,to:n}=e;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}mergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=e.getTopStartCorner(),i=e.getBottomEndCorner(),r={row:o.row,col:o.col,rowspan:i.row-o.row+1,colspan:i.col-o.col+1},s=[];let a=null;return!!this.canMergeRange(r,t)&&(this.hot.runHooks("beforeMergeCells",e,t),(0,Et.Ti)(0,r.rowspan-1,(e=>{(0,Et.Ti)(0,r.colspan-1,(t=>{let n=null;s[e]||(s[e]=[]),0===e&&0===t?n=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(r.row),this.hot.toPhysicalColumn(r.col)):this.hot.setCellMeta(r.row+e,r.col+t,"hidden",!0),s[e][t]=n}))})),this.hot.setCellMeta(r.row,r.col,"spanned",!0),!this.mergedCellsCollection.add(r,t)||(n?a=[r.row,r.col,s]:this.hot.populateFromArray(r.row,r.col,s,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,r,t),a))}unmergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.mergedCellsCollection.getWithinRange(e);0!==n.length&&(this.hot.runHooks("beforeUnmergeCells",e,t),(0,d.z0)(n,(e=>{this.mergedCellsCollection.remove(e.row,e.col),(0,Et.Ti)(0,e.rowspan-1,(t=>{(0,Et.Ti)(0,e.colspan-1,(n=>{this.hot.removeCellMeta(e.row+t,e.col+n,"hidden"),this.hot.removeCellMeta(e.row+t,e.col+n,"copyable")}))})),this.hot.removeCellMeta(e.row,e.col,"spanned")})),this.hot.runHooks("afterUnmergeCells",e,t),this.hot.render())}toggleMerge(e){const{from:t,to:n}=e.clone().normalize(),o=this.mergedCellsCollection.get(t.row,t.col);o.row===t.row&&o.col===t.col&&o.row+o.rowspan-1===n.row&&o.col+o.colspan-1===n.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,n,o){const i=this.hot._createCellCoords(e,t),r=this.hot._createCellCoords(n,o);this.mergeRange(this.hot._createCellRange(i,i,r))}unmerge(e,t,n,o){const i=this.hot._createCellCoords(e,t),r=this.hot._createCellCoords(n,o);this.unmergeRange(this.hot._createCellRange(i,i,r))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeLast();e&&!e.isSingleHeader()&&(this.toggleMerge(e),this.hot.render())},runOnlyIf:e=>!e.altKey,group:Lb})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(Lb)}modifyViewportRowStart(e,t){const n=this.hot.rowIndexMapper,o=n.getVisualFromRenderableIndex(e.startRow);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(o,i);if((0,s.Gv)(r)){const o=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(r.row,1));if(o<e.startRow)return e.startRow=o,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const n=this.hot.rowIndexMapper,o=n.getVisualFromRenderableIndex(e.endRow);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(o,i);if((0,s.Gv)(r)){const o=r.row+r.rowspan-1,i=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(o,-1));if(i>e.endRow)return e.endRow=i,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const n=this.hot.columnIndexMapper,o=n.getVisualFromRenderableIndex(e.startColumn);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(i,o);if((0,s.Gv)(r)){const o=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(r.col,1));if(o<e.startColumn)return e.startColumn=o,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const n=this.hot.columnIndexMapper,o=n.getVisualFromRenderableIndex(e.endColumn);for(let i=0;i<t;i+=1){const r=this.mergedCellsCollection.get(i,o);if((0,s.Gv)(r)){const o=r.col+r.colspan-1,i=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(o,-1));if(i>e.endColumn)return e.endColumn=i,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,n,o){const{rowIndexMapper:i,columnIndexMapper:r}=this.hot;let s,a;return s=0===t?i.getNearestNotHiddenIndex(e,1):i.getNearestNotHiddenIndex(e+t-1,-1),a=0===o?r.getNearestNotHiddenIndex(n,1):r.getNearestNotHiddenIndex(n+o-1,-1),[e>=0?i.getRenderableFromVisualIndex(s):e,n>=0?r.getRenderableFromVisualIndex(a):n]}}function Fb(){this.generateFromSettings(),this.hot.render()}function zb(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeLast(),n=t.getTopStartCorner(),o=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(n.row===e[t].row&&n.col===e[t].col&&o.row===e[t].row+e[t].rowspan-1&&o.col===e[t].col+e[t].colspan-1)return!1}return e}function jb(e){Tb(Db,this).row=e.row,Tb(Db,this).col=e.col}function Yb(e){const t=this.hot.getSelectedRangeLast(),{highlight:n}=t,{columnIndexMapper:o,rowIndexMapper:i}=this.hot;Tb(Ob,this)&&(null!==i.getRenderableFromVisualIndex(Tb(Ob,this).row)&&(n.row=Tb(Ob,this).row),null!==o.getRenderableFromVisualIndex(Tb(Ob,this).col)&&(n.col=Tb(Ob,this).col),kb(Ob,this,null));const r=this.mergedCellsCollection.get(n.row,n.col);if(!r)return;const s=r.col,a=r.col+r.colspan-1;if(e.col<0){const t=n.col>=s&&n.col<=a?s-1:a,i=o.getNearestNotHiddenIndex(t,-1);e.col=null===i?-this.hot.view.countRenderableColumnsInRange(0,n.col):-Math.max(this.hot.view.countRenderableColumnsInRange(i,n.col)-1,1)}else if(e.col>0){const t=n.col>=s&&n.col<=a?a+1:s,i=o.getNearestNotHiddenIndex(t,1);e.col=null===i?this.hot.view.countRenderableColumnsInRange(n.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(n.col,i)-1,1)}const l=r.row,c=r.row+r.rowspan-1;if(e.row<0){const t=n.row>=l&&n.row<=c?l-1:c,o=i.getNearestNotHiddenIndex(t,-1);e.row=null===o?-this.hot.view.countRenderableRowsInRange(0,n.row):-Math.max(this.hot.view.countRenderableRowsInRange(o,n.row)-1,1)}else if(e.row>0){const t=n.row>=l&&n.row<=c?c+1:l,o=i.getNearestNotHiddenIndex(t,1);e.row=null===o?this.hot.view.countRenderableRowsInRange(n.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(n.row,o)-1,1)}}function $b(e){const t=this.hot.getSelectedRangeLast(),n=t.clone(),{to:o}=t,{columnIndexMapper:i,rowIndexMapper:r}=this.hot,s=(e,t)=>{n.expand(this.hot._createCellCoords(e,t));for(let e=0;e<this.mergedCellsCollection.mergedCells.length;e+=1)n.expandByRange(this.mergedCellsCollection.mergedCells[e].getRange())};if(e.col<0){let r=this.mergedCellsCollection.getStartMostColumnIndex(t,o.col)+e.col;s(o.row,r),"E-W"===t.getHorizontalDirection()&&"E-W"===n.getHorizontalDirection()&&(r=n.getTopStartCorner().col);const a=i.getNearestNotHiddenIndex(r,1);null!==a&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(a,o.col)-1,1))}else if(e.col>0){let r=this.mergedCellsCollection.getEndMostColumnIndex(t,o.col)+e.col;s(o.row,r),"W-E"===t.getHorizontalDirection()&&"W-E"===n.getHorizontalDirection()&&(r=n.getBottomEndCorner().col);const a=i.getNearestNotHiddenIndex(r,-1);null!==a&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(o.col,a)-1,1))}if(e.row<0){let i=this.mergedCellsCollection.getTopMostRowIndex(t,o.row)+e.row;s(i,o.col),"S-N"===t.getVerticalDirection()&&"S-N"===n.getVerticalDirection()&&(i=n.getTopStartCorner().row);const a=r.getNearestNotHiddenIndex(i,1);null!==a&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(a,o.row)-1,1))}else if(e.row>0){let i=this.mergedCellsCollection.getBottomMostRowIndex(t,o.row)+e.row;s(i,o.col),"N-S"===t.getVerticalDirection()&&"N-S"===n.getVerticalDirection()&&(i=n.getBottomStartCorner().row);const a=r.getNearestNotHiddenIndex(i,-1);null!==a&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(o.row,a)-1,1))}}function Bb(){const e=this.hot.getSelectedRangeLast(),{highlight:t}=e;if(this.hot.selection.isSelectedByColumnHeader()||this.hot.selection.isSelectedByRowHeader())return void kb(Ob,this,t.clone());for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);const n=this.mergedCellsCollection.get(t.row,t.col);kb(Ob,this,t.clone()),n&&t.assign(n)}function Wb(e,t,n,o){if(e<0||t<0)return;const i=this.mergedCellsCollection.get(e,t);if(!i)return;const{row:r,col:s,colspan:a,rowspan:l}=i,c=r,d=s,u=r+l-1,h=s+a-1;if("render"===o&&this.getSetting("virtualized")){const e=this.hot.view.getActiveOverlayName(),t=["top","top_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleRow(),n=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleColumn();return[(0,Et.qE)(t,c,u),(0,Et.qE)(n,d,h),(0,Et.qE)(this.hot.getLastRenderedVisibleRow(),c,u),(0,Et.qE)(this.hot.getLastRenderedVisibleColumn(),d,h)]}return[c,d,u,h]}function Vb(e){var t;e.items.push({name:"---------"},(t=this,{key:"mergeCells",name(){const e=this.getSelectedLast();if(e){const n=t.mergedCellsCollection.get(e[0],e[1]);if(n.row===e[0]&&n.col===e[1]&&n.row+n.rowspan-1===e[2]&&n.col+n.colspan-1===e[3])return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback(){const e=this.getSelectedRangeLast();if(!e)return;e.setDirection(this.isRtl()?"NE-SW":"NW-SE");const{from:n,to:o}=e;t.toggleMerge(e),this.selectCell(n.row,n.col,o.row,o.col,!1)},disabled(){const e=this.getSelectedLast();return!e||Ug.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner()},hidden:!1}))}function Ub(){kb(Ob,this,null)}function Gb(){if(Tb(Ob,this).isCell())return;const e=this.hot.getSelectedRangeLast(),t=e.getVerticalDirection(),n=e.getHorizontalDirection(),o=Tb(Ob,this).clone().normalize();Tb(Hb,this).setActiveNode(o.row,o.col),Tb(Db,this).row>0||Tb(Db,this).col>0?Tb(Hb,this).setPrevNodeAsActive():("E-W"===n&&Tb(Db,this).col<0||"S-N"===t&&Tb(Db,this).row<0)&&Tb(Hb,this).setNextNodeAsActive()}function Kb(e,t){const n=this.hot.getSelectedRangeLast(),{columnIndexMapper:o,rowIndexMapper:i}=this.hot;let r=null,s=null;if(Tb(Db,this).col<0){const{rowEnd:e,colEnd:t}=Tb(Hb,this).getPrevHorizontalNode();s=o.getNearestNotHiddenIndex(t,-1),r=i.getNearestNotHiddenIndex(e,-1)}else if(Tb(Db,this).col>0){const{rowStart:e,colStart:t}=Tb(Hb,this).getNextHorizontalNode();s=o.getNearestNotHiddenIndex(t,1),r=i.getNearestNotHiddenIndex(e,1)}else if(Tb(Db,this).row<0){const{rowEnd:e,colEnd:t}=Tb(Hb,this).getPrevVerticalNode();s=o.getNearestNotHiddenIndex(t,-1),r=i.getNearestNotHiddenIndex(e,-1)}else if(Tb(Db,this).row>0){const{rowStart:e,colStart:t}=Tb(Hb,this).getNextVerticalNode();s=o.getNearestNotHiddenIndex(t,1),r=i.getNearestNotHiddenIndex(e,1)}if(null!==r||null!==s){const o=this.hot._createCellCoords(r,s),i=this.mergedCellsCollection.get(o.row,o.col),a=this.hot.selection.highlight.getFocus();e=o.row,t=o.col,i?n.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(i.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(i.col,1)}):n.highlight.assign(o),a.clear(),a.add(o).commit()}Tb(Hb,this).setActiveNode(e,t),kb(Db,this,{row:0,col:0})}function qb(){this.hot.getSelectedRangeLast().isHeader()||Tb(Hb,this).buildFocusOrder(this.hot.getSelectedRangeLast())}function Xb(e,t,n){const o=this.mergedCellsCollection.get(e,t);o&&(o.row!==e||o.col!==t?n.copyable=!1:(n.rowspan=o.rowspan,n.colspan=o.colspan))}function Jb(e){if(this.getSetting("virtualized"))return;const t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}function Qb(e){if(this.getSetting("virtualized"))return;const t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}function Zb(e,t){const n=this.autofillCalculations.getDirection(t,e);if(this.autofillCalculations.dragAreaOverlapsCollections(t,e,n))return t;const o=this.hot._createCellCoords(t[0],t[1]),i=this.hot._createCellCoords(t[2],t[3]),r=this.hot._createCellRange(o,o,i),s=this.mergedCellsCollection.getWithinRange(r);return 0===s.length?e:this.autofillCalculations.snapDragArea(t,e,n,s)}function ev(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}function tv(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}function nv(e,t,n){"auto"!==n&&this.mergedCellsCollection.shiftCollections("down",e,t)}function ov(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}function iv(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}function rv(e,t){if(t&&"area"===t){const t=this.hot.getSelectedRangeLast(),n=this.mergedCellsCollection.getWithinRange(t);(0,d.z0)(n,(n=>{t.getBottomEndCorner().row===n.getLastRow()&&t.getBottomEndCorner().col===n.getLastColumn()&&(e[2]=n.row,e[3]=n.col)}))}}function sv(e,t,n,o){if(n)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,n,o)}function av(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function lv(e,t,n,o){if(!(o instanceof MouseEvent))return;const i=this.hot.getSelectedRangeLast(),r=this.mergedCellsCollection.getByRange(i);if(!r)return;const s=this.hot._createCellCoords(r.row,r.col),a=this.hot._createCellCoords(r.row+r.rowspan-1,r.col+r.colspan-1);return 0===this.hot.selection.getLayerLevel()&&i.isEqual(this.hot._createCellRange(s,s,a))}function cv(e,t,n){if(this.hot.getSettings().rowHeaders||"bottom"===n||"bottom_inline_start_corner"===n)return e;let o,i;if("master"===n)o=this.hot.getFirstRenderedVisibleColumn(),i=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(n);o=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),i=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,o))return e;const r=this.hot._createCellCoords(t,o),s=this.hot._createCellCoords(t,i),a=this.hot._createCellRange(r,r,s),l=this.mergedCellsCollection.getWithinRange(a,!0),c=l.reduce(((e,t)=>{let{rowspan:n}=t;return Math.max(e,n)}),1);let d=0;return l.length>1&&l[0].rowspan<c&&(d=c-l[0].rowspan),l.forEach((o=>{let{rowspan:i}=o,r=0;r="top"===n||"top_inline_start_corner"===n?Math.min(c,this.hot.view.countNotHiddenFixedRowsTop()-t):i-d,e=Math.max(null!=e?e:0,Sb(this.hot,t,r))})),e}const dv="sort";const uv="multiColumnSorting",hv=uv;ui(uv,(function(e,t){return function(n,o){const[,...i]=n,[,...r]=o;return function n(o){const s=e[o],a=t[o],l=i[o],c=r[o],d=a.multiColumnSorting,u=(d.compareFunctionFactory?d.compareFunctionFactory:mi(a.type))(s,a,d)(l,c);if(u===pi){const e=o+1;if(void 0!==t[e])return n(e)}return u}(0)}}));class mv extends Ni{constructor(){var e,t,n;super(...arguments),e=this,n=uv,(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t="pluginKey"))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}static get PLUGIN_KEY(){return uv}static get PLUGIN_PRIORITY(){return 170}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){super.enablePlugin()}disablePlugin(){super.disablePlugin()}registerShortcuts(){super.registerShortcuts(),this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Shift","Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();return-1===e.row&&e.col>=0&&this.sort(this.getNextSortConfig(e.col,Di)),!1},runOnlyIf:()=>{var e,t;const n=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return n&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(n)&&n.isHeader()},relativeToGroup:a.b,position:"before",group:hv})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(hv)}sort(e){super.sort(e)}clearSort(){super.clearSort()}isSorted(){return super.isSorted()}getSortConfig(e){return super.getSortConfig(e)}setSortConfig(e){super.setSortConfig(e)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}updateHeaderClasses(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];super.updateHeaderClasses(e,...n),(0,i.vy)(e,function(e){const t=e.className.split(" "),n=new RegExp(`^${dv}-[0-9]{1,2}$`);return t.filter((e=>n.test(e)))}(e)),!1!==this.enabled&&(0,i.iQ)(e,function(e,t,n){const o=[];return!1===n||e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&o.push(`${dv}-${e.getIndexOfColumnInSortQueue(t)+1}`),o}(...n))}onAfterOnCellMouseDown(e,t){!1!==Mi(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,Di))):this.sort(this.getColumnNextConfig(t.col)))}}function pv(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class fv extends dn{constructor(){super(...arguments),pv(this,"dragged",[]),pv(this,"lastSetCell",null)}static get PLUGIN_KEY(){return"multipleSelectionHandles"}static get PLUGIN_PRIORITY(){return 160}isEnabled(){return(0,te.rr)()}enablePlugin(){this.enabled||(this.registerListeners(),super.enablePlugin())}registerListeners(){const e=this,{rootElement:t}=this.hot;function n(t){if(1===e.dragged.length)return e.dragged.splice(0,e.dragged.length),!0;const n=e.dragged.indexOf(t);if(-1===n)return!1;0===n?e.dragged=e.dragged.slice(0,1):1===n&&(e.dragged=e.dragged.slice(-1))}this.eventManager.addEventListener(t,"touchstart",(t=>{let n;return(0,i.nB)(t.target,"topSelectionHandle-HitArea")?(n=e.hot.getSelectedRangeLast(),e.dragged.push("top"),e.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},t.preventDefault(),!1):(0,i.nB)(t.target,"bottomSelectionHandle-HitArea")?(n=e.hot.getSelectedRangeLast(),e.dragged.push("bottom"),e.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},t.preventDefault(),!1):void 0})),this.eventManager.addEventListener(t,"touchend",(t=>(0,i.nB)(t.target,"topSelectionHandle-HitArea")?(n.call(e,"top"),e.touchStartRange=void 0,t.preventDefault(),!1):(0,i.nB)(t.target,"bottomSelectionHandle-HitArea")?(n.call(e,"bottom"),e.touchStartRange=void 0,t.preventDefault(),!1):void 0)),this.eventManager.addEventListener(t,"touchmove",(t=>{const{rootDocument:n}=this.hot;let o,i,r,s,a,l;if(0===e.dragged.length)return;const c=n.elementFromPoint(t.touches[0].clientX,t.touches[0].clientY);c&&c!==e.lastSetCell&&("TD"!==c.nodeName&&"TH"!==c.nodeName||(o=e.hot.getCoords(c),-1===o.col&&(o.col=0),i=e.hot.getSelectedRangeLast(),r=i.getWidth(),s=i.getHeight(),a=i.getDirection(),1===r&&1===s&&e.hot.selection.setRangeEnd(o),l=e.getCurrentRangeCoords(i,o,e.touchStartRange.direction,a,e.dragged[0]),null!==l.start&&e.hot.selection.setRangeStart(l.start),e.hot.selection.setRangeEnd(l.end),e.lastSetCell=c),t.preventDefault())}))}getCurrentRangeCoords(e,t,n,o,i){const r=e.getTopStartCorner(),s=e.getBottomEndCorner(),a=e.getBottomStartCorner(),l=e.getTopEndCorner();let c={start:null,end:null};switch(n){case"NE-SW":switch(o){case"NE-SW":case"NW-SE":c="top"===i?{start:this.hot._createCellCoords(t.row,e.highlight.col),end:this.hot._createCellCoords(a.row,t.col)}:{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,r.col)};break;case"SE-NW":"bottom"===i&&(c={start:this.hot._createCellCoords(s.row,t.col),end:this.hot._createCellCoords(t.row,r.col)})}break;case"NW-SE":switch(o){case"NE-SW":"top"===i?c={start:t,end:a}:c.end=t;break;case"NW-SE":"top"===i?c={start:t,end:s}:c.end=t;break;case"SE-NW":"top"===i?c={start:t,end:r}:c.end=t;break;case"SW-NE":"top"===i?c={start:t,end:l}:c.end=t}break;case"SW-NE":switch(o){case"NW-SE":c="bottom"===i?{start:this.hot._createCellCoords(t.row,r.col),end:this.hot._createCellCoords(a.row,t.col)}:{start:this.hot._createCellCoords(r.row,t.col),end:this.hot._createCellCoords(t.row,s.col)};break;case"SW-NE":c="top"===i?{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,s.col)}:{start:this.hot._createCellCoords(t.row,r.col),end:this.hot._createCellCoords(r.row,t.col)};break;case"SE-NW":"bottom"===i?c={start:this.hot._createCellCoords(t.row,l.col),end:this.hot._createCellCoords(r.row,t.col)}:"top"===i&&(c={start:a,end:t})}break;case"SE-NW":switch(o){case"NW-SE":case"NE-SW":case"SW-NE":"top"===i&&(c.end=t);break;case"SE-NW":"top"===i?c.end=t:c={start:t,end:r}}}return c}isDragged(){return this.dragged.length>0}}var gv=n(50192);function bv(){let{label:e="",colspan:t=1,origColspan:n=1,collapsible:o=!1,crossHiddenColumns:i=[],isCollapsed:r=!1,isHidden:s=!1,isRoot:a=!1,isPlaceholder:l=!1,headerClassNames:c=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:e,colspan:t,origColspan:n,collapsible:o,isCollapsed:r,crossHiddenColumns:i,isHidden:s,isRoot:a,isPlaceholder:l,headerClassNames:c}}function vv(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function yv(e,t){return e.get(Cv(e,t))}function wv(e,t,n){return e.set(Cv(e,t),n),n}function Cv(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const _v=["label","collapsible"];var Sv=new WeakMap,Mv=new WeakMap,Ev=new WeakMap;class xv{constructor(){vv(this,Sv,[]),vv(this,Mv,0),vv(this,Ev,1/0)}setColumnsLimit(e){wv(Ev,this,e)}setData(){wv(Sv,this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;const n=[];if(0===t)return n;(0,d.z0)(e,(e=>{const o=[];let i=0;n.push(o),(0,d.z0)(e,(e=>{const n=bv();if((0,s.Gv)(e)){const{label:t,colspan:o,headerClassName:i}=e;n.label=(0,u.As)(t),"number"==typeof o&&o>1&&(n.colspan=o,n.origColspan=o),"string"==typeof i&&(n.headerClassNames=[...i.split(" ")])}else n.label=(0,u.As)(e);i+=n.origColspan;let r=!1;if(i>=t&&(n.colspan=n.origColspan-(i-t),n.origColspan=n.colspan,r=!0),o.push(n),n.colspan>1)for(let e=0;e<n.colspan-1;e++)o.push({label:"",isPlaceholder:!0});return!r}))}));const o=Math.max(...(0,d.YD)(n,(e=>e.length)));return(0,d.z0)(n,(e=>{if(e.length<o){const t=(0,d.YD)(new Array(o-e.length),(()=>bv()));e.splice(e.length,0,...t)}})),n}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],yv(Ev,this))),wv(Mv,this,yv(Sv,this).length)}getData(){return yv(Sv,this)}mergeWith(e){(0,d.z0)(e,(e=>{let{row:t,col:n,...o}=e;const i=this.getHeaderSettings(t,n);null!==i&&(0,s.X$)(i,o,_v)}))}map(e){(0,d.z0)(yv(Sv,this),(t=>{(0,d.z0)(t,(t=>{const n=e({...t});(0,s.Gv)(n)&&(0,s.X$)(t,n,_v)}))}))}getHeaderSettings(e,t){var n;if(e>=yv(Mv,this)||e<0)return null;const o=yv(Sv,this)[e];return!1===Array.isArray(o)||t>=o.length?null:null!==(n=o[t])&&void 0!==n?n:null}getHeadersSettings(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const o=[];if(e>=yv(Mv,this)||e<0)return o;const i=yv(Sv,this)[e];let r=0;for(let e=t;e<i.length;e++){const t=i[e];if(t.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(r+=t.colspan,o.push(t),t.colspan>1&&(e+=t.colspan-1),r===n)break;if(r>n)throw new Error("The last column settings cannot overlap the other header layers")}return o}getLayersCount(){return yv(Mv,this)}getColumnsCount(){return yv(Mv,this)>0?yv(Sv,this)[0].length:0}clear(){wv(Sv,this,[]),wv(Mv,this,0)}}function kv(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tv="DF-pre-order",Rv=new Map([[Tv,function e(t,n){let o=t.call(n,this);for(let i=0;i<this.childs.length;i++){if(!1===o)return!1;o=e.call(this.childs[i],t,n)}return o}],["DF-post-order",function e(t,n){for(let o=0;o<this.childs.length;o++)if(!1===e.call(this.childs[o],t,n))return!1;return t.call(n,this)}],["BF",function(e,t){const n=[this];!function o(){if(0===n.length)return;const i=n.shift();n.push(...i.childs),!1!==e.call(t,i)&&o()}()}]]);class Av{constructor(e){kv(this,"data",{}),kv(this,"parent",null),kv(this,"childs",[]),this.data=e}addChild(e){e.parent=this,this.childs.push(e)}cloneTree(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;const t=new Av({...e.data});for(let n=0;n<e.childs.length;n++)t.addChild(this.cloneTree(e.childs[n]));return t}replaceTreeWith(e){this.data={...e.data},this.childs=[];for(let t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}walkDown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"BF";if(!Rv.has(t))throw new Error(`Traversal strategy "${t}" does not exist`);Rv.get(t).call(this,e,this)}walkUp(e){const t=this,n=o=>{!1!==e.call(t,o)&&null!==o.parent&&n(o.parent)};n(this)}}function Lv(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Ov(e,t){return e.get(Dv(e,t))}function Dv(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Hv=new WeakMap,Iv=new WeakMap,Pv=new WeakMap;class Nv{constructor(e){var t,n;Lv(this,Hv,new Map),Lv(this,Iv,new Map),Lv(this,Pv,null),n=e,(t=Pv).set(Dv(t,this),n)}getRoots(){return Array.from(Ov(Hv,this).values())}getRootByColumn(e){let t;return Ov(Iv,this).has(e)&&(t=Ov(Hv,this).get(Ov(Iv,this).get(e))),t}getNode(e,t){const n=this.getRootByColumn(t);if(!n)return;const o=t-Ov(Iv,this).get(t);let i,r=0;return n.walkDown((n=>{const{data:{origColspan:s,headerLevel:a}}=n;if(e===a){if(o>=r&&o<=r+s-1)return i=n,i.data.isRoot=t===i.data.columnIndex,!1;r+=s}})),i}rebuildTreeIndex(){let e=0;Ov(Iv,this).clear(),(0,d.z0)(Ov(Hv,this),(t=>{let[,{data:{colspan:n}}]=t;for(let t=e;t<e+n;t++)Ov(Iv,this).set(t,e);e+=n}))}buildTree(){this.clear();const e=Ov(Pv,this).getColumnsCount();let t=0;for(;t<e;){const e=Ov(Pv,this).getHeaderSettings(0,t),n=new Av;Ov(Hv,this).set(t,n),this.buildLeaves(n,t,0,e.origColspan),t+=e.origColspan}this.rebuildTreeIndex()}buildLeaves(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const i=Ov(Pv,this).getHeadersSettings(n,t,o);n+=1,(0,d.z0)(i,(o=>{const i={...o,headerLevel:n-1,columnIndex:t};let r;1===n?(e.data=i,r=e):(r=new Av(i),e.addChild(r)),n<Ov(Pv,this).getLayersCount()&&this.buildLeaves(r,t,n,o.origColspan),t+=o.origColspan}))}clear(){Ov(Hv,this).clear(),Ov(Iv,this).clear()}}function Fv(e,t){e.walkDown((e=>{let{data:n,childs:o}=e;if(!n.isHidden&&(t(n.columnIndex),0===o.length))for(let e=1;e<n.colspan;e++)t(n.columnIndex+e)}))}function zv(e,t){let{childs:n}=e;if(0!==n.length)return n[0].data[t]}function jv(e){return zv(e,"origColspan")===e.data.origColspan}function Yv(e){const{data:t,childs:n}=e;if(!t.isCollapsed||t.isHidden||t.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if(jv(e))return Yv(n[0]);t.isCollapsed=!1;const o=n.slice(1),i=new Set;let r=0;if(o.length>0)(0,d.z0)(o,(e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;r+=t.colspan,Fv(e,(e=>{i.add(e)}))}));else{const{colspan:e,origColspan:n,columnIndex:o}=t;r=n-e;for(let e=1;e<n;e++)i.add(o+e)}return e.walkUp((e=>{const{data:t}=e;t.colspan+=r,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):jv(e)&&(t.isCollapsed=zv(e,"isCollapsed"))})),{rollbackModification:()=>$v(e),affectedColumns:Array.from(i),colspanCompensation:r}}function $v(e){var t;const{data:n,childs:o}=e;if(n.isCollapsed||n.isHidden||n.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if(jv(e))return $v(o[0]);n.isCollapsed=!0;const i=o.slice(1),r=new Set;if(i.length>0)(0,d.z0)(i,(e=>{Fv(e,(e=>{r.add(e)})),e.data.clonedTree=e.cloneTree(),e.walkDown((e=>{let{data:t}=e;t.isHidden=!0}))}));else{const{origColspan:e,columnIndex:t}=n;for(let n=1;n<e;n++){const e=t+n;r.add(e)}}const s=n.colspan-(null!==(t=zv(e,"colspan"))&&void 0!==t?t:1);return e.walkUp((e=>{const{data:t}=e;t.colspan-=s,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):jv(e)&&(t.isCollapsed=zv(e,"isCollapsed"))})),{rollbackModification:()=>Yv(e),affectedColumns:Array.from(r),colspanCompensation:s}}const Bv=new Map([["collapse",$v],["expand",Yv],["hide-column",function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(bi.O`The passed node is not the last node on the tree. Only for\x20
  19. the last node, the hide column modification can be applied.`);const{crossHiddenColumns:n}=e.data;if(n.includes(t))return;let o=!1;e.walkUp((e=>{const{data:{collapsible:t}}=e;if(t)return o=!0,!1})),o||e.walkUp((e=>{const{data:n}=e;n.crossHiddenColumns.push(t),n.colspan>1?n.colspan-=1:n.isHidden=!0}))}],["show-column",function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(bi.O`The passed node is not the last node on the tree. Only for\x20
  20. the last node, the show column modification can be applied.`);const{crossHiddenColumns:n}=e.data;if(!n.includes(t))return;let o=!1;e.walkUp((e=>{const{data:{collapsible:t}}=e;if(t)return o=!0,!1})),o||e.walkUp((e=>{const{data:n}=e;n.crossHiddenColumns.splice(n.crossHiddenColumns.indexOf(t),1),!n.isHidden&&n.colspan<n.origColspan&&(n.colspan+=1),n.isHidden=!1}))}]]);function Wv(e){const t=[];return(0,d.z0)(e,(e=>{e.walkDown((e=>{const n=e.data,{origColspan:o,columnIndex:i,headerLevel:r,crossHiddenColumns:s}=n,a=function(e,t){let n;return Array.isArray(e[t])?n=e[t]:(n=[],e[t]=n),n}(t,r);let l=!1;for(let e=i;e<i+o;e++)if(s.includes(e)||l)a.push({label:"",isPlaceholder:!0});else{const e=Vv(n);e.isRoot=!0,a.push(e),l=!0}}))})),t}function Vv(e){const{crossHiddenColumns:t,...n}=bv(e);return n}function Uv(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Gv(e,t,n){return e.set(qv(e,t),n),n}function Kv(e,t){return e.get(qv(e,t))}function qv(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Xv=new WeakMap,Jv=new WeakMap,Qv=new WeakMap;class Zv{constructor(){Uv(this,Xv,new xv),Uv(this,Jv,new Nv(Kv(Xv,this))),Uv(this,Qv,[[]])}setState(e){Kv(Xv,this).setData(e);let t=!1;try{Kv(Jv,this).buildTree()}catch(e){Kv(Jv,this).clear(),Kv(Xv,this).clear(),t=!0}return Gv(Qv,this,Wv(Kv(Jv,this).getRoots())),t}setColumnsLimit(e){Kv(Xv,this).setColumnsLimit(e)}mergeStateWith(e){const t=(0,d.YD)(e,(e=>{let{row:t,...n}=e;return{row:t<0?this.rowCoordsToLevel(t):t,...n}}));Kv(Xv,this).mergeWith(t),Kv(Jv,this).buildTree(),Gv(Qv,this,Wv(Kv(Jv,this).getRoots()))}mapState(e){Kv(Xv,this).map(e),Kv(Jv,this).buildTree(),Gv(Qv,this,Wv(Kv(Jv,this).getRoots()))}mapNodes(e){return(0,d.mu)(Kv(Jv,this).getRoots(),((t,n)=>(n.walkDown((n=>{const o=e(n.data);void 0!==o&&t.push(o)})),t)),[])}triggerNodeModification(e,t,n){t<0&&(t=this.rowCoordsToLevel(t));const o=Kv(Jv,this).getNode(t,n);let i;return o&&(i=function(e,t,n){if(!Bv.has(e))throw new Error(`The node modifier action ("${e}") does not exist.`);return Bv.get(e)(t,n)}(e,o,n),Gv(Qv,this,Wv(Kv(Jv,this).getRoots()))),i}triggerColumnModification(e,t){return this.triggerNodeModification(e,-1,t)}rowCoordsToLevel(e){if(e>=0)return null;const t=e+Math.max(this.getLayersCount(),1);return t<0?null:t}levelToRowCoords(e){if(e<0)return null;const t=e-Math.max(this.getLayersCount(),1);return t>=0?null:t}getHeaderSettings(e,t){var n,o;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(n=null===(o=Kv(Qv,this)[e])||void 0===o?void 0:o[t])&&void 0!==n?n:null}getHeaderTreeNodeData(e,t){const n=this.getHeaderTreeNode(e,t);return n?{...n.data}:null}getHeaderTreeNode(e,t){if(e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount())return null;return Kv(Jv,this).getNode(e,t)||null}findTopMostEntireHeaderLevel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=t-e+1;let o=!1,i=null;for(let r=e;r<=t;r++){const s=Kv(Jv,this).getRootByColumn(r);if(!s)break;o=!0,s.walkDown((o=>{const{columnIndex:r,headerLevel:s,origColspan:a,isHidden:l}=o.data;l||a<=n&&r>=e&&r+a-1<=t&&(null===i||s<i)&&(i=s)}),Tv)}return o&&null===i?-1:this.levelToRowCoords(null!=i?i:0)}findLeftMostColumnIndex(e,t){var n;const{isRoot:o}=null!==(n=this.getHeaderSettings(e,t))&&void 0!==n?n:{isRoot:!0};if(o)return t;let i=t-1;for(;i>=0;){var r;const{isRoot:t}=null!==(r=this.getHeaderSettings(e,i))&&void 0!==r?r:{isRoot:!0};if(t)break;i-=1}return i}findRightMostColumnIndex(e,t){var n;const{isRoot:o,origColspan:i}=null!==(n=this.getHeaderSettings(e,t))&&void 0!==n?n:{isRoot:!0,origColspan:1};if(o)return t+i-1;let r=t+1;for(;r<this.getColumnsCount();){var s;const{isRoot:t}=null!==(s=this.getHeaderSettings(e,r))&&void 0!==s?s:{isRoot:!0};if(t)break;r+=1}return r-1}getLayersCount(){return Kv(Xv,this).getLayersCount()}getColumnsCount(){return Kv(Xv,this).getColumnsCount()}clear(){Gv(Qv,this,[]),Kv(Xv,this).clear(),Kv(Jv,this).clear()}}function ey(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ty=class{constructor(e,t){ey(this,"hot",void 0),ey(this,"nestedHeaderSettingsGetter",void 0),ey(this,"layersCount",0),ey(this,"container",void 0),ey(this,"widthsMap",void 0),this.hot=e,this.nestedHeaderSettingsGetter=t,this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap","physicalIndexToValue")}setLayersCount(e){return this.layersCount=e,this}getWidth(e){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e))}buildWidthsMap(){const e=this.hot.getCurrentThemeName();this.container=this.hot.rootDocument.createElement("div"),this.container.classList.add("handsontable","htGhostTable","htAutoSize"),e&&this.container.classList.add(e),this._buildGhostTable(this.container),this.hot.rootDocument.body.appendChild(this.container);const t=this.container.querySelectorAll("tr:last-of-type th"),n=t.length;this.widthsMap.clear();for(let e=0;e<n;e++){const n=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e),o=this.hot.toPhysicalColumn(n);this.widthsMap.setValueAtIndex(o,t[e].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}_buildGhostTable(e){const{rootDocument:t,columnIndexMapper:n}=this.hot,o=t.createDocumentFragment(),r=t.createElement("table"),s=!!this.hot.getSettings().dropdownMenu,a=n.getRenderableIndexesLength();for(let e=0;e<this.layersCount;e++){const o=t.createElement("tr");for(let r=0;r<a;r++){let a=n.getVisualFromRenderableIndex(r);null===a&&(a=r);const l=t.createElement("th"),c=this.nestedHeaderSettingsGetter(e,a);if(c&&(!c.isPlaceholder||c.isHidden)){let e=c.label;s&&(e+='<button class="changeType"></button>'),(0,i.Mv)(l,e),l.colSpan=c.colspan,o.appendChild(l)}}r.appendChild(o)}o.appendChild(r),e.appendChild(o)}clear(){this.widthsMap.clear(),this.container=null}};function ny(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oy(e,t,n){iy(e,t),t.set(e,n)}function iy(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ry(e,t,n){return e.set(ay(e,t),n),n}function sy(e,t){return e.get(ay(e,t))}function ay(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const ly="nestedHeaders";var cy=new WeakMap,dy=new WeakMap,uy=new WeakMap,hy=new WeakMap,my=new WeakMap,py=new WeakSet;class fy extends dn{constructor(){var e;super(...arguments),iy(this,e=py),e.add(this),oy(this,cy,new Zv),oy(this,dy,null),oy(this,uy,null),oy(this,hy,!1),oy(this,my,null),ny(this,"ghostTable",new ty(this.hot,((e,t)=>this.getHeaderSettings(e,t)))),ny(this,"detectedOverlappedHeaders",!1)}static get PLUGIN_KEY(){return ly}static get PLUGIN_PRIORITY(){return 280}isEnabled(){return!!this.hot.getSettings()[ly]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();Array.isArray(t)&&Array.isArray(t[0])||(0,Po.R8)(bi.O`Your Nested Headers plugin configuration is invalid. The settings has to be\x20
  21. passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]`),this.addHook("init",(()=>ay(py,this,Oy).call(this))),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,Dy).call(e,...n)})),this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,wy).call(e,...n)})),this.addHook("afterOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,Cy).call(e,...n)})),this.addHook("beforeOnCellMouseOver",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,_y).call(e,...n)})),this.addHook("beforeOnCellMouseUp",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,Sy).call(e,...n)})),this.addHook("beforeSelectionHighlightSet",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,My).call(e,...n)})),this.addHook("modifyTransformStart",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,Ey).call(e,...n)})),this.addHook("afterSelection",(()=>ay(py,this,gy).call(this))),this.addHook("afterSelectionFocusSet",(()=>ay(py,this,gy).call(this))),this.addHook("beforeViewportScrollHorizontally",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,by).call(e,...n)})),this.addHook("afterGetColumnHeaderRenderers",(e=>ay(py,this,ky).call(this,e))),this.addHook("modifyColWidth",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,Ry).call(e,...n)})),this.addHook("modifyColumnHeaderValue",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,Ay).call(e,...n)})),this.addHook("beforeHighlightingColumnHeader",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,vy).call(e,...n)})),this.addHook("beforeCopy",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,yy).call(e,...n)})),this.addHook("beforeSelectColumns",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,xy).call(e,...n)})),this.addHook("afterViewportColumnCalculatorOverride",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,Ty).call(e,...n)})),this.addHook("modifyFocusedElement",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(py,e,Ly).call(e,...n)})),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",(()=>ay(py,this,gy).call(this))),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",(()=>ay(py,this,gy).call(this))),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();sy(cy,this).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=sy(cy,this).setState(e)),this.detectedOverlappedHeaders&&(0,Po.R8)(bi.O`Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\x20
  22. is currently not supported.`),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach(((e,t)=>{const n=!0===e?"hide-column":"show-column";sy(cy,this).triggerColumnModification(n,t)})),!sy(dy,this)&&this.enabled&&ry(dy,this,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe((e=>{e.forEach((e=>{let{op:t,index:n,newValue:o}=e;if("replace"===t){const e=!0===o?"hide-column":"show-column";sy(cy,this).triggerColumnModification(e,n)}})),this.ghostTable.buildWidthsMap()}))),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),super.updatePlugin()}disablePlugin(){this.clearColspans(),sy(cy,this).clear(),sy(dy,this).unsubscribe(),ry(dy,this,null),this.ghostTable.clear(),super.disablePlugin()}getStateManager(){return sy(cy,this)}getLayersCount(){return sy(cy,this).getLayersCount()}getHeaderSettings(e,t){return sy(cy,this).getHeaderSettings(e,t)}clearColspans(){if(!this.hot.view)return;const{_wt:e}=this.hot.view,t=e.getSetting("columnHeaders").length,n=e.wtTable.THEAD,o=e.wtOverlays.topOverlay.clone.wtTable.THEAD,r=e.wtOverlays.topInlineStartCornerOverlay?e.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null;for(let e=0;e<t;e++){const t=n.childNodes[e];if(!t)break;const s=o.childNodes[e],a=r?r.childNodes[e]:null;for(let e=0,n=t.childNodes.length;e<n;e++)t.childNodes[e].removeAttribute("colspan"),(0,i.vy)(t.childNodes[e],"hiddenHeader"),s&&s.childNodes[e]&&(s.childNodes[e].removeAttribute("colspan"),(0,i.vy)(s.childNodes[e],"hiddenHeader")),r&&a&&a.childNodes[e]&&(a.childNodes[e].removeAttribute("colspan"),(0,i.vy)(a.childNodes[e],"hiddenHeader"))}}headerRendererFactory(e){var t=this;const n=this.hot.view._wt.getSetting("fixedColumnsStart");return(o,r)=>{var s;const{columnIndexMapper:a,view:l}=this.hot;let c=a.getVisualFromRenderableIndex(o);null===c&&(c=o),r.removeAttribute("colspan"),(0,i.vy)(r,"hiddenHeader"),(0,i.vy)(r,"hiddenHeaderText");const{colspan:d,isHidden:u,isPlaceholder:h,headerClassNames:m}=null!==(s=sy(cy,this).getHeaderSettings(e,c))&&void 0!==s?s:{label:""};if(h||u)(0,i.iQ)(r,"hiddenHeader");else if(d>1){var p,f,g;const{wtOverlays:e}=l._wt,t=null===(p=e.topInlineStartCornerOverlay)||void 0===p?void 0:p.clone.wtTable.THEAD.contains(r),s=null===(f=e.inlineStartOverlay)||void 0===f?void 0:f.clone.wtTable.THEAD.contains(r);(null===(g=e.topOverlay)||void 0===g?void 0:g.clone.wtTable.THEAD.contains(r))&&c<n&&(0,i.iQ)(r,"hiddenHeaderText");const a=t||s?Math.min(d,n-o):d;a>1&&r.setAttribute("colspan",a)}if(this.hot.view.appendColHeader(c,r,(function(){return t.getColumnHeaderValue(...arguments)}),e),!h&&!u){const e=r.querySelector("div.relative");e&&m&&m.length>0&&((0,i.vy)(e,this.hot.getColumnMeta(c).headerClassName),(0,i.iQ)(e,m))}}}getColumnHeaderValue(e,t){var n;const{isHidden:o,isPlaceholder:i}=null!==(n=sy(cy,this).getHeaderSettings(t,e))&&void 0!==n?n:{};return i||o?"":this.hot.getColHeader(e,t)}destroy(){ry(cy,this,null),null!==sy(dy,this)&&(sy(dy,this).unsubscribe(),ry(dy,this,null)),super.destroy()}_getHeaderTreeNodeDataByCoords(e){if(!(e.row>=0||e.col<0))return sy(cy,this).getHeaderTreeNodeData(e.row,e.col)}}function gy(){var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeLast();if(!t)return;const{highlight:n}=t;if(n.isHeader()&&n.col>=0){const e=sy(cy,this).findLeftMostColumnIndex(n.row,n.col),t=this.hot.selection.highlight.getFocus();t.visualCellRange.highlight.col=e,t.visualCellRange.from.col=e,t.visualCellRange.to.col=e,t.commit()}}function by(e,t){var n;const o=this.hot.getSelectedRangeLast();if(!o)return e;const{highlight:i}=o,{navigableHeaders:r}=this.hot.getSettings(),s=this.hot.selection.isSelectedByColumnHeader(),a=r?i.row:null===(n=sy(my,this))||void 0===n?void 0:n.row,l=s?e:i.col,c=a<0&&l>=0;if(ry(my,this,null),!c)return e;const d=this.hot.getFirstFullyVisibleColumn(),u=this.hot.getLastFullyVisibleColumn(),h=u-d+1,m=sy(cy,this).findLeftMostColumnIndex(a,l),p=sy(cy,this).findRightMostColumnIndex(a,l),f=p-m+1;if(m<d&&p>u)return m;if(s){let e=null;return m>=d&&p>u?f>h?(t.value="start",e=m):(t.value="end",e=p):m<d&&p<=u&&(f>h?(t.value="end",e=p):(t.value="start",e=m)),e}return m<=d?m:p}function vy(e,t,n){const o=sy(cy,this).getHeaderTreeNodeData(t,e);if(!o)return e;const{columnCursor:i,selectionType:r,selectionWidth:s}=n,{isRoot:a,colspan:l}=sy(cy,this).getHeaderSettings(t,e);if(r===gv.PP){if(!a)return o.columnIndex}else if(r===gv.E6&&(l>s-i||!a))return null;return e}function yy(e,t,n){let{columnHeadersCount:o}=n;if(0!==o)for(let n=0;n<t.length;n++){const{startRow:o,startCol:r,endRow:s,endCol:a}=t[n],l=s-o+1;if(o>=0||1==r-a+1)break;for(let t=r;t<=a;t++)for(let n=o;n<=s;n++){var i;const o=l+n,s=t-r;0!==s&&(!1===(null===(i=sy(cy,this).getHeaderTreeNodeData(n,t))||void 0===i?void 0:i.isRoot)&&(e[o][s]=""))}}}function wy(e,t,n,o){this._getHeaderTreeNodeDataByCoords(t)&&(o.column=!0)}function Cy(e,t){const n=this._getHeaderTreeNodeDataByCoords(t);if(!n)return;ry(uy,this,t.clone()),ry(hy,this,!0);const{selection:o}=this.hot,i=o.isSelected()?o.getSelectedRange().current():null,s=[],{columnIndex:a,origColspan:l}=n,c=!o.inInSelection(t);e.shiftKey&&i?t.col<i.from.col?s.push(i.getTopEndCorner().col,a,t.row):t.col>i.from.col?s.push(i.getTopStartCorner().col,a+l-1,t.row):s.push(a,a+l-1,t.row):((0,r.Ml)(e)||(0,r.nO)(e)&&c||(0,r.kH)(e))&&s.push(a,a+l-1,t.row),o.selectColumns(...s)}function _y(e,t,n,o){if(!this.hot.view.isMouseDown()||o.column)return;const i=this._getHeaderTreeNodeDataByCoords(t);if(!i)return;const{columnIndex:r,origColspan:s}=i,a=this.hot.getSelectedRangeLast(),l=a.getTopStartCorner(),c=a.getBottomEndCorner(),{from:d}=a;o.column=!0,o.cell=!0;const u=[],h=(0,Et.qE)(t.row,-1/0,-1);t.col<d.col?u.push(c.col,r,h):t.col>d.col?u.push(l.col,r+s-1,h):u.push(r,r+s-1,h),this.hot.selection.selectColumns(...u)}function Sy(){ry(hy,this,!1)}function My(){const{navigableHeaders:e}=this.hot.getSettings();if(!this.hot.view.isMouseDown()||!sy(hy,this)||!e)return;const t=this.hot.getSelectedRangeLast(),n=t.getTopStartCorner().col,o=t.getBottomEndCorner().col,{columnIndex:i,origColspan:r}=sy(cy,this).getHeaderTreeNodeData(sy(uy,this).row,sy(uy,this).col);if(t.setHighlight(sy(uy,this)),r>t.getWidth()||i<n||i+r-1>o){const e=sy(cy,this).findTopMostEntireHeaderLevel((0,Et.qE)(n,i,i+r-1),(0,Et.qE)(o,i,i+r-1));t.highlight.row=e,t.highlight.col=t.from.col}}function Ey(e){const{highlight:t}=this.hot.getSelectedRangeLast(),n=this.hot._createCellCoords(t.row+e.row,t.col+e.col);if(!(n.isHeader()&&n.col>=0))return;const o=sy(cy,this).findLeftMostColumnIndex(n.row,n.col),i=sy(cy,this).findRightMostColumnIndex(n.row,n.col);if(e.col<0){const n=t.col>=o&&t.col<=i?o-1:i,r=this.hot.columnIndexMapper.getNearestNotHiddenIndex(n,-1);e.col=null===r?-this.hot.view.countRenderableColumnsInRange(0,t.col):-Math.max(this.hot.view.countRenderableColumnsInRange(r,t.col)-1,1)}else if(e.col>0){const n=t.col>=o&&t.col<=i?i+1:o,r=this.hot.columnIndexMapper.getNearestNotHiddenIndex(n,1);e.col=null===r?this.hot.view.countRenderableColumnsInRange(t.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(t.col,r)-1,1)}}function xy(e,t,n){const o=e.row,i=this._getHeaderTreeNodeDataByCoords({row:o,col:e.col}),r=this._getHeaderTreeNodeDataByCoords({row:o,col:t.col});ry(my,this,n.clone()),t.col<e.col?(i&&(e.col=i.columnIndex+i.origColspan-1),r&&(t.col=r.columnIndex)):t.col>=e.col&&(i&&(e.col=i.columnIndex),r&&(t.col=r.columnIndex+r.origColspan-1))}function ky(e){if(sy(cy,this).getLayersCount()>0){e.length=0;for(let t=0;t<sy(cy,this).getLayersCount();t++)e.push(this.headerRendererFactory(t))}}function Ty(e){const t=sy(cy,this).getLayersCount();let n=e.startColumn,o=!!t;for(let i=0;i<t;i++){const t=sy(cy,this).findLeftMostColumnIndex(i,e.startColumn),r=this.hot.columnIndexMapper.getRenderableFromVisualIndex(t);if(t>=0&&(o=!1),(0,Et.kf)(r)&&r<e.startColumn){n=r;break}}e.startColumn=o?sy(cy,this).getHeaderTreeNodeData(0,n).columnIndex:n}function Ry(e,t){const n=this.ghostTable.getWidth(t);return e>n?e:n}function Ay(e,t,n){var o;const{label:i}=null!==(o=sy(cy,this).getHeaderTreeNodeData(n,t))&&void 0!==o?o:{label:""};return i}function Ly(e,t){if(e<0)return this.hot.getCell(e,sy(cy,this).findLeftMostColumnIndex(e,t),!0)}function Oy(){this.updatePlugin()}function Dy(e,t){t||this.updatePlugin()}function Hy(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Iy=class{constructor(e,t){Hy(this,"hot",void 0),Hy(this,"data",null),Hy(this,"plugin",void 0),Hy(this,"parentReference",new WeakMap),Hy(this,"cache",{levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}),this.hot=t,this.plugin=e}setData(e){this.data=e}getData(){return this.data}getRawSourceData(){let e=null;return this.plugin.disableCoreAPIModifiers(),e=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),e}updateWithData(e){this.setData(e),this.rewriteCache()}rewriteCache(){this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},(0,Et.Ti)(0,this.data.length-1,(e=>{this.cacheNode(this.data[e],0,null)}))}cacheNode(e,t,n){this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:n,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&(0,d.z0)(e.__children,(n=>{this.cacheNode(n,t+1,e)}))}getDataObject(e){return null==e?null:this.cache.rows[e]}readTreeNodes(e,t,n,o){let i=!1,r=t;if(isNaN(r)&&r.end)return r;let s=e;return s||(s={__children:this.data},i=!0,r-=1),null!=n&&r===n?{result:s,end:!0}:null!=o&&s===o?{result:r,end:!0}:(r+=1,s.__children&&(0,d.z0)(s.__children,(e=>{if(this.parentReference.set(e,i?null:s),r=this.readTreeNodes(e,r,n,o),isNaN(r)&&r.end)return!1})),r)}mockParent(){const e=this.mockNode();return e.__children=this.data,e}mockNode(){const e={};return(0,s.v4)(this.data[0],((t,n)=>{e[n]=null})),e}getRowIndex(e){return null==e?null:this.cache.nodeInfo.get(e).row}getRowIndexWithinParent(e){let t=null;t=isNaN(e)?e:this.getDataObject(e);const n=this.getRowParent(e);return null==n?this.data.indexOf(t):n.__children.indexOf(t)}countAllRows(){const e={__children:this.data};return this.countChildren(e)}countChildren(e){let t=0,n=e;return isNaN(n)||(n=this.getDataObject(n)),n&&n.__children?((0,d.z0)(n.__children,(e=>{t+=1,e.__children&&(t+=this.countChildren(e))})),t):0}getRowParent(e){let t;return t=isNaN(e)?e:this.getDataObject(e),this.getRowObjectParent(t)}getRowObjectParent(e){return e&&"object"==typeof e?this.cache.nodeInfo.get(e).parent:null}getRowLevel(e){let t=null;return t=isNaN(e)?e:this.getDataObject(e),t?this.getRowObjectLevel(t):null}getRowObjectLevel(e){return null==e?null:this.cache.nodeInfo.get(e).level}hasChildren(e){let t=e;return isNaN(t)||(t=this.getDataObject(t)),!(!t.__children||!t.__children.length)}isChild(e){return null!==this.getRowParent(e)}getChild(e,t){var n;return(null===(n=e.__children)||void 0===n?void 0:n[t])||null}isRowHighestLevel(e){return!this.isChild(e)}isParent(e){var t;let n=e;return isNaN(n)||(n=this.getDataObject(n)),n&&!!n.__children&&0!==(null===(t=n.__children)||void 0===t?void 0:t.length)}addChild(e,t){let n=t;this.hot.runHooks("beforeAddChild",e,n);let o=null;e&&(o=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",o+this.countChildren(e)+1,1);let i=e;e||(i=this.mockParent()),i.__children||(i.__children=[]),n||(n=this.mockNode()),i.__children.push(n),this.rewriteCache();const r=this.getRowIndex(n);this.hot.rowIndexMapper.insertIndexes(r,1),this.hot.runHooks("afterCreateRow",r,1),this.hot.runHooks("afterAddChild",e,n)}addChildAtIndex(e,t,n){let o,i=n;if(i||(i=this.mockNode()),this.hot.runHooks("beforeAddChild",e,i,t),e){const n=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",n,1),e.__children.splice(t,null,i),this.rewriteCache(),this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(e),"__children",e.__children,"NestedRows.addChildAtIndex"),this.hot.rowIndexMapper.insertIndexes(n,1),this.plugin.enableCoreAPIModifiers(),this.hot.runHooks("afterCreateRow",n,1),o=n}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row_above",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),o=this.getRowIndex(this.data[t]);i=this.getDataObject(o),this.hot.runHooks("afterAddChild",e,i,t)}addSibling(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below";const n=this.translateTrimmedRow(e),o=this.getRowParent(n),i=this.getRowIndexWithinParent(n);switch(t){case"below":this.addChildAtIndex(o,i+1,null);break;case"above":this.addChildAtIndex(o,i,null)}}detachFromParent(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=null;const o=[];Array.isArray(e)?((0,Et.Ti)(e[0],e[2],(e=>{const t=this.translateTrimmedRow(e);o.push(this.getDataObject(t))})),(0,Et.Ti)(0,o.length-2,(e=>{this.detachFromParent(o[e],!1)})),n=o[o.length-1]):n=e;const i=this.getRowIndex(n),r=this.countChildren(n),s=this.getRowIndexWithinParent(n),a=this.getRowParent(n),l=this.getRowParent(a),c=this.getRowIndex(l);let d=null;if(this.hot.runHooks("beforeDetachChild",a,n),null!=s){const e=Array.from(new Array(i+r+1).keys()).splice(-1*(r+1));if(this.hot.runHooks("beforeRemoveRow",i,r+1,e,this.plugin.pluginName),a.__children.splice(s,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",i,r+1,e,this.plugin.pluginName),l){d=c+this.countChildren(l);const e=this.getChild(l,this.countChildren(l)-1),t=this.getRowIndex(e);this.hot.runHooks("beforeCreateRow",t+1,r+1,this.plugin.pluginName),l.__children.push(n)}else d=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",d-2,r+1,this.plugin.pluginName),this.data.push(n)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",d-2,r+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",a,n,this.getRowIndex(n)),t&&this.hot.render()}filterData(e,t,n){const o=[];(0,d.z0)(n,(e=>{o.push(this.getDataObject(e))})),(0,d.z0)(o,(e=>{const t=this.getRowIndexWithinParent(e),n=this.getRowParent(e);null===n?this.data.splice(t,1):n.__children.splice(t,1)})),this.rewriteCache()}spliceData(e,t,n){const o=this.getDataObject(e-1);let i=null,r=e;o&&o.__children&&0===o.__children.length?(i=o,r=0):e<this.countAllRows()&&(i=this.getRowParent(e),r=this.getRowIndexWithinParent(e)),i?n?i.__children.splice(r,t,...n):i.__children.splice(r,t):n?this.data.splice(r,t,...n):this.data.splice(r,t),this.rewriteCache()}syncRowWithRawSource(e){let t=e,n=t;do{n=this.getRowParent(n),null!==n&&(t=n)}while(null!==n);this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(t),"__children",t.__children,"NestedRows.syncRowWithRawSource"),this.plugin.enableCoreAPIModifiers()}moveRow(e,t,n,o){const i=t===this.hot.countRows(),r=this.getRowParent(e),s=this.getRowIndexWithinParent(e),a=r.__children.slice(s,s+1),l=e>t;let c=i?this.getRowParent(t-1):this.getRowParent(t);null==c&&(c=this.getRowParent(t-1)),null==c&&(c=this.getDataObject(t-1)),c?c.__children||(c.__children=[]):(c=this.getDataObject(t),c.__children=[]);const d=i||n||o?c.__children.length:this.getRowIndexWithinParent(t),u=r===c;c.__children.splice(d,0,a[0]),r.__children.splice(s+(l&&u?1:0),1),this.syncRowWithRawSource(r),u||this.syncRowWithRawSource(c)}translateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}untranslateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}};function Py(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ny=class{constructor(e,t){Py(this,"hot",void 0),Py(this,"plugin",void 0),this.hot=t,this.plugin=e}};class Fy extends Ny{static get CSS_CLASSES(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}constructor(e,t){super(e,t),this.dataManager=this.plugin.dataManager,this.collapsingUI=this.plugin.collapsingUI,this.rowHeaderWidthCache=null}appendLevelIndicators(e,t){const n=this.hot.toPhysicalRow(e),o=this.dataManager.getRowLevel(n),r=this.dataManager.getDataObject(n),s=t.getElementsByTagName("DIV")[0],a=s.querySelector("span.rowHeader"),l=s.querySelectorAll('[class^="ht_nesting"]'),c=this.hot.getSettings().ariaTags;if((0,d.z0)(l,(e=>{e&&s.removeChild(e)})),(0,i.iQ)(t,Fy.CSS_CLASSES.indicatorContainer),o){const{rootDocument:e}=this.hot,t=a.cloneNode(!0);s.innerHTML="",(0,Et.Ti)(0,o-1,(()=>{const t=e.createElement("SPAN");(0,i.iQ)(t,Fy.CSS_CLASSES.emptyIndicator),s.appendChild(t)})),s.appendChild(t)}if(this.dataManager.hasChildren(r)){const e=this.hot.rootDocument.createElement("DIV");c&&(0,i.Bq)(e,[(0,f.MG)()]),(0,i.iQ)(t,Fy.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(n)?((0,i.iQ)(e,`${Fy.CSS_CLASSES.button} ${Fy.CSS_CLASSES.expandButton}`),c&&(0,i.Bq)(t,[(0,f.dV)(!1)])):((0,i.iQ)(e,`${Fy.CSS_CLASSES.button} ${Fy.CSS_CLASSES.collapseButton}`),c&&(0,i.Bq)(t,[(0,f.dV)(!0)])),s.appendChild(e)}}updateRowHeaderWidth(e){let t=e;t||(t=this.dataManager.cache.levelCount);const n=this.hot.view.getStylesHandler();let o=11;n.isClassicTheme()||(o=2*n.getCSSVariableValue("cell-horizontal-padding")),this.rowHeaderWidthCache=Math.max(50,o+10*t+25),this.hot.render()}}const zy=Fy,jy=class extends Ny{constructor(e,t){var n;super(e,t),n=this,this.dataManager=this.plugin.dataManager,this.collapsedRows=[],this.collapsedRowsStash={stash:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n.lastCollapsedRows=n.collapsedRows.slice(0),n.expandMultipleChildren(n.lastCollapsedRows,e)},shiftStash:function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;null==t&&(t=1/0),(0,d.z0)(n.lastCollapsedRows,((i,r)=>{i>=e&&i<t&&(n.lastCollapsedRows[r]=i+o)}))},applyStash:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.collapseMultipleChildren(n.lastCollapsedRows,e),n.lastCollapsedRows=void 0},trimStash:(e,t)=>{(0,Et.Ti)(e,e+t-1,(e=>{const t=this.lastCollapsedRows.indexOf(e);t>-1&&this.lastCollapsedRows.splice(t,1)}))}}}collapseChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=[];let i=null,r=null,s=null;return isNaN(e)?(i=e,r=this.dataManager.getRowIndex(i)):(i=this.dataManager.getDataObject(e),r=e),this.dataManager.hasChildren(i)&&(0,d.z0)(i.__children,(e=>{o.push(this.dataManager.getRowIndex(e))})),s=this.collapseRows(o,!0,!1),n&&this.trimRows(s),t&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(r)&&this.collapsedRows.push(r),s}collapseMultipleChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=[];(0,d.z0)(e,(e=>{o.push(...this.collapseChildren(e,!1,!1))})),n&&this.trimRows(o),t&&this.renderAndAdjust()}collapseRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.collapseRows([e],t)}collapseRows(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];return(0,d.z0)(e,(e=>{o.push(e),t&&this.collapseChildRows(e,o)})),n&&this.trimRows(o),o}collapseChildRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.dataManager.hasChildren(e)){const n=this.dataManager.getDataObject(e);(0,d.z0)(n.__children,(e=>{const n=this.dataManager.getRowIndex(e);t.push(n),this.collapseChildRows(n,t)}))}n&&this.trimRows(t)}expandRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.expandRows([e],t)}expandRows(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];return(0,d.z0)(e,(e=>{o.push(e),t&&this.expandChildRows(e,o)})),n&&this.untrimRows(o),o}expandChildRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.dataManager.hasChildren(e)){const n=this.dataManager.getDataObject(e);(0,d.z0)(n.__children,(e=>{if(!this.isAnyParentCollapsed(e)){const n=this.dataManager.getRowIndex(e);t.push(n),this.expandChildRows(n,t)}}))}n&&this.untrimRows(t)}expandChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=[];let i=null,r=null,s=null;return isNaN(e)?(i=e,r=this.dataManager.getRowIndex(e)):(i=this.dataManager.getDataObject(e),r=e),this.collapsedRows.splice(this.collapsedRows.indexOf(r),1),this.dataManager.hasChildren(i)&&(0,d.z0)(i.__children,(e=>{const t=this.dataManager.getRowIndex(e);o.push(t)})),s=this.expandRows(o,!0,!1),n&&this.untrimRows(s),t&&this.renderAndAdjust(),s}expandMultipleChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=[];(0,d.z0)(e,(e=>{o.push(...this.expandChildren(e,!1,!1))})),n&&this.untrimRows(o),t&&this.renderAndAdjust()}collapseAll(){const e=this.dataManager.getData(),t=[];(0,d.z0)(e,(e=>{this.dataManager.hasChildren(e)&&t.push(e)})),this.collapseMultipleChildren(t),this.renderAndAdjust()}expandAll(){const e=this.dataManager.getData(),t=[];(0,d.z0)(e,(e=>{this.dataManager.hasChildren(e)&&t.push(e)})),this.expandMultipleChildren(t),this.renderAndAdjust()}trimRows(e){this.hot.batchExecution((()=>{(0,d.z0)(e,(e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!0)}))}),!0)}untrimRows(e){this.hot.batchExecution((()=>{(0,d.z0)(e,(e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!1)}))}),!0)}areChildrenCollapsed(e){let t=isNaN(e)?e:this.dataManager.getDataObject(e),n=!0;return null===t&&(t={__children:this.dataManager.data}),this.dataManager.hasChildren(t)&&(0,d.z0)(t.__children,(e=>{const t=this.dataManager.getRowIndex(e);if(!this.plugin.collapsedRowsMap.getValueAtIndex(t))return n=!1,!1})),n}isAnyParentCollapsed(e){let t=e;for(;null!==t;){t=this.dataManager.getRowParent(t);const e=this.dataManager.getRowIndex(t);if(this.collapsedRows.indexOf(e)>-1)return!0}return!1}toggleState(e,t){if(t.col>=0)return;const n=this.translateTrimmedRow(t.row);(0,i.nB)(e.target,zy.CSS_CLASSES.button)&&(this.areChildrenCollapsed(n)?this.expandChildren(n):this.collapseChildren(n),(0,r.CA)(e))}translateTrimmedRow(e){return this.hot.toPhysicalRow(e)}untranslateTrimmedRow(e){return this.hot.toVisualRow(e)}renderAndAdjust(){this.hot.render(),this.hot.view.adjustElementsSize()}};var Yy=new WeakMap;const $y=class extends Ny{constructor(){var e,t,n;super(...arguments),e=this,t="dataManager",n=this.plugin.dataManager,(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,Yy,{row_above:(e,t)=>{const n=t[t.length-1];this.dataManager.addSibling(n.start.row,"above")},row_below:(e,t)=>{const n=t[t.length-1];this.dataManager.addSibling(n.start.row,"below")}})}appendOptions(e){const t=[{key:"add_child",name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:()=>{const e=this.dataManager.translateTrimmedRow(this.hot.getSelectedLast()[0]),t=this.dataManager.getDataObject(e);this.dataManager.addChild(t)},disabled:()=>{const e=this.hot.getSelectedLast();return!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{key:"detach_from_parent",name(){return this.getTranslatedPhrase(Me.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:()=>{this.dataManager.detachFromParent(this.hot.getSelectedLast())},disabled:()=>{const e=this.hot.getSelectedLast(),t=this.dataManager.translateTrimmedRow(e[0]);return!this.dataManager.getRowParent(t)||!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{name:"---------"}];return(0,Et.Ti)(0,e.items.length-1,(n=>{if(0===n)return(0,d.z0)(t,((t,o)=>{e.items.splice(n+o,0,t)})),!1})),this.modifyRowInsertingOptions(e)}modifyRowInsertingOptions(e){return(0,Et.Ti)(0,e.items.length-1,(t=>{const n=(o=Yy,i=this,o.get(function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(o,i)))[e.items[t].key];var o,i;null!=n&&(e.items[t].callback=n)})),e}};function By(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Wy{constructor(e){By(this,"plugin",void 0),By(this,"hot",void 0),By(this,"dataManager",void 0),By(this,"collapsingUI",void 0),this.plugin=e,this.hot=e.hot,this.dataManager=e.dataManager,this.collapsingUI=e.collapsingUI}onBeforeRowMove(e,t,n,o){if(this.displayAPICompatibilityWarning({rows:e,finalIndex:t,dropIndex:n,movePossible:o}))return!1;this.movedToCollapsed=!1;const i=n===this.hot.countRows(),r=i?this.hot.countSourceRows():this.dataManager.translateTrimmedRow(n);let s=!0;const a=e.map((e=>{if(!s)return!1;const t=this.dataManager.translateTrimmedRow(e);return s=this.shouldAllowMoving(t,r),t})),l=-1===a.indexOf(r);if(!s||!l)return!1;const c=this.getBaseParent(a),d=this.getTargetParent(i,r),u=c===d;return this.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(d),this.collapsingUI.collapsedRowsStash.stash(),this.shiftCollapsibleParentsLocations(a,r,u),this.moveRows(a,r,d),this.dataManager.rewriteCache(),this.moveCellsMeta(a,r),this.collapsingUI.collapsedRowsStash.applyStash(!1),this.hot.runHooks("afterRowMove",e,t,n,o,o&&this.isRowOrderChanged(e,t)),this.hot.render(),this.selectCells(e,n),!1}displayAPICompatibilityWarning(e){const{rows:t,finalIndex:n,dropIndex:o,movePossible:i}=e;let r=!1;return(0,u.b0)(o)&&((0,Po.R8)(bi.O`Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows\x20
  23. when the NestedRows plugin is enabled. Please use the 'dragRows' method instead.`),this.hot.runHooks("afterRowMove",t,n,o,i,!1),r=!0),r}shouldAllowMoving(e,t){return!(this.dataManager.isParent(e)||this.dataManager.isRowHighestLevel(e)||e===t||0===t)}getBaseParent(e){return this.dataManager.getRowParent(e[0])}getTargetParent(e,t){let n=this.dataManager.getRowParent(e?t-1:t);return null==n&&(n=this.dataManager.getRowParent(t-1)),n}shiftCollapsibleParentsLocations(e,t,n){n||(Math.max(...e)<=t?this.collapsingUI.collapsedRowsStash.shiftStash(e[0],t,-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(t,e[0],e.length))}moveRows(e,t,n){const o=t===this.dataManager.getRowIndex(n)+this.dataManager.countChildren(n)+1;this.hot.batchRender((()=>{e.forEach((e=>{this.dataManager.moveRow(e,t,this.movedToCollapsed,o)}))}))}moveCellsMeta(e,t){const n=[],o=Math.max(...e)<t;e.forEach((e=>{n.push(this.hot.getCellMetaAtRow(e))})),this.hot.spliceCellsMeta(e[0],e.length),this.hot.spliceCellsMeta(t-(o?n.length:0),0,...n)}selectCells(e,t){const n=e.length;let o=0,i=0;if(this.movedToCollapsed){let r=null;r=e[n-1]<t?this.dataManager.translateTrimmedRow(t-n):this.dataManager.translateTrimmedRow(t);const s=this.dataManager.getRowParent(null===r?this.hot.countSourceRows()-1:r-1),a=this.dataManager.getRowIndex(s);o=this.dataManager.untranslateTrimmedRow(a),i=o}else e[n-1]<t?(i=t-1,o=i-n+1):(o=t,i=o+n-1);this.hot.selectCells([[o,0,i,this.hot.countCols()-1]],!1)}isRowOrderChanged(e,t){return e.some(((e,n)=>e-n!==t))}}function Vy(e,t,n){Uy(e,t),t.set(e,n)}function Uy(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Gy(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ky(e,t){return e.get(Xy(e,t))}function qy(e,t,n){return e.set(Xy(e,t),n),n}function Xy(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const Jy="nestedRows",Qy=Jy;var Zy=new WeakMap,ew=new WeakMap,tw=new WeakSet;class nw extends dn{constructor(){var e;super(...arguments),Uy(this,e=tw),e.add(this),Gy(this,"dataManager",null),Gy(this,"headersUI",null),Gy(this,"collapsedRowsMap",null),Vy(this,Zy,!1),Vy(this,ew,!1)}static get PLUGIN_KEY(){return Jy}static get PLUGIN_PRIORITY(){return 300}isEnabled(){return!!this.hot.getSettings()[Jy]}enablePlugin(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new Yu.q),this.dataManager=new Iy(this,this.hot),this.collapsingUI=new jy(this,this.hot),this.headersUI=new zy(this,this.hot),this.contextMenuUI=new $y(this,this.hot),this.rowMoveController=new Wy(this),this.addHook("afterInit",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,gw).call(e,...n)})),this.addHook("beforeViewRender",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,bw).call(e,...n)})),this.addHook("modifyRowData",(function(){return e.onModifyRowData(...arguments)})),this.addHook("modifySourceLength",(function(){return e.onModifySourceLength(...arguments)})),this.addHook("beforeDataSplice",(function(){return e.onBeforeDataSplice(...arguments)})),this.addHook("filterData",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,rw).call(e,...n)})),this.addHook("afterContextMenuDefaultOptions",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,sw).call(e,...n)})),this.addHook("afterGetRowHeader",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,aw).call(e,...n)})),this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,iw).call(e,...n)})),this.addHook("beforeRemoveRow",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,dw).call(e,...n)})),this.addHook("afterRemoveRow",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,cw).call(e,...n)})),this.addHook("beforeAddChild",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,uw).call(e,...n)})),this.addHook("afterAddChild",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,hw).call(e,...n)})),this.addHook("beforeDetachChild",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,mw).call(e,...n)})),this.addHook("afterDetachChild",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,pw).call(e,...n)})),this.addHook("modifyRowHeaderWidth",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,lw).call(e,...n)})),this.addHook("afterCreateRow",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,fw).call(e,...n)})),this.addHook("beforeRowMove",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Xy(tw,e,ow).call(e,...n)})),this.addHook("beforeLoadData",(e=>Xy(tw,this,vw).call(this,e))),this.addHook("beforeUpdateData",(e=>Xy(tw,this,vw).call(this,e))),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),this.unregisterShortcuts(),super.disablePlugin()}updatePlugin(){this.disablePlugin();const e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),super.updatePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast(),t=this.collapsingUI.translateTrimmedRow(e.row);return this.collapsingUI.areChildrenCollapsed(t)?this.collapsingUI.expandChildren(t):this.collapsingUI.collapseChildren(t),!1},runOnlyIf:()=>{var e,t;const n=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return n&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(n)&&-1===n.col&&n.row>=0},group:Qy,relativeToGroup:a.b,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(Qy)}disableCoreAPIModifiers(){qy(ew,this,!0)}enableCoreAPIModifiers(){qy(ew,this,!1)}onModifyRowData(e){if(!Ky(ew,this))return this.dataManager.getDataObject(e)}onModifySourceLength(){if(!Ky(ew,this))return this.dataManager.countAllRows()}onBeforeDataSplice(e,t,n){return!(!Ky(ew,this)&&!this.dataManager.isRowHighestLevel(e)&&(this.dataManager.spliceData(e,t,n),1))}destroy(){super.destroy()}}function ow(e,t,n,o){return this.rowMoveController.onBeforeRowMove(e,t,n,o)}function iw(e,t,n){this.collapsingUI.toggleState(e,t,n)}function rw(e,t,n){return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(n[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(n[0],null,-1*t),this.dataManager.filterData(e,t,n),qy(Zy,this,!0),this.dataManager.getData().slice()}function sw(e){return this.contextMenuUI.appendOptions(e)}function aw(e,t){this.headersUI.appendLevelIndicators(e,t)}function lw(e){return Math.max(this.headersUI.rowHeaderWidthCache,e)}function cw(e,t,n,o){o!==this.pluginName&&this.hot._registerTimeout((()=>{qy(Zy,this,!1),this.headersUI.updateRowHeaderWidth(),this.collapsingUI.collapsedRowsStash.applyStash()}))}function dw(e,t,n){const o=Array.from(n.reduce(((e,t)=>{if(this.dataManager.isParent(t)){const n=this.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(n)&&n.forEach((t=>e.add(this.dataManager.getRowIndex(t)))),e}return e.add(t)}),new Set));n.length=0,n.push(...o)}function uw(){this.collapsingUI.collapsedRowsStash.stash()}function hw(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function mw(){this.collapsingUI.collapsedRowsStash.stash()}function pw(e,t,n){this.collapsingUI.collapsedRowsStash.shiftStash(n,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function fw(){this.dataManager.rewriteCache()}function gw(){this.headersUI.updateRowHeaderWidth()}function bw(e,t){Ky(Zy,this)&&(t.skipRender=!0)}function vw(e){if(!(0,Ud.DJ)(e))return(0,Po.z3)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings()[Jy]=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}function yw(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ww=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;yw(this,"rootWindow",void 0),yw(this,"prefix",void 0),yw(this,"savedKeys",[]),this.rootWindow=t,this.prefix=e,this.loadSavedKeys()}saveValue(e,t){this.rootWindow.localStorage.setItem(`${this.prefix}_${e}`,JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}loadValue(e,t){const n=void 0===e?t:e,o=this.rootWindow.localStorage.getItem(`${this.prefix}_${n}`);return null===o?void 0:JSON.parse(o)}reset(e){this.rootWindow.localStorage.removeItem(`${this.prefix}_${e}`)}resetAll(){(0,d.z0)(this.savedKeys,((e,t)=>{this.rootWindow.localStorage.removeItem(`${this.prefix}_${this.savedKeys[t]}`)})),this.clearSavedKeys()}loadSavedKeys(){const e=this.rootWindow.localStorage.getItem(`${this.prefix}__persistentStateKeys`),t="string"==typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}saveSavedKeys(){this.rootWindow.localStorage.setItem(`${this.prefix}__persistentStateKeys`,JSON.stringify(this.savedKeys))}clearSavedKeys(){this.savedKeys.length=0,this.saveSavedKeys()}};Se.R.getSingleton().register("persistentStateSave"),Se.R.getSingleton().register("persistentStateLoad"),Se.R.getSingleton().register("persistentStateReset");const Cw="persistentState";class _w extends dn{constructor(){var e,t,n;super(...arguments),e=this,n=void 0,(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t="storage"))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}static get PLUGIN_KEY(){return Cw}static get PLUGIN_PRIORITY(){return 0}isEnabled(){return!!this.hot.getSettings()[Cw]}enablePlugin(){this.enabled||(this.storage||(this.storage=new ww(this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",((e,t)=>this.saveValue(e,t))),this.addHook("persistentStateLoad",((e,t)=>this.loadValue(e,t))),this.addHook("persistentStateReset",(()=>this.resetValue())),super.enablePlugin())}disablePlugin(){this.storage=void 0,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}loadValue(e,t){t.value=this.storage.loadValue(e)}saveValue(e,t){this.storage.saveValue(e,t)}resetValue(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}destroy(){super.destroy()}}function Sw(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mw(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const Ew="search",xw=function(e,t,n,o,i){e.getCellMeta(t,n).isSearchResult=i},kw=function(e,t,n){return!((0,u.b0)(e)||null===e||!e.toLocaleLowerCase||0===e.length||(0,u.b0)(t)||null===t||-1===t.toString().toLocaleLowerCase(n.locale).indexOf(e.toLocaleLowerCase(n.locale)))};var Tw=new WeakSet;class Rw extends dn{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Tw),t.add(e),Sw(this,"callback",xw),Sw(this,"queryMethod",kw),Sw(this,"searchResultClass","htSearchResult")}static get PLUGIN_KEY(){return Ew}static get PLUGIN_PRIORITY(){return 190}isEnabled(){return this.hot.getSettings()[Ew]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[Ew];this.updatePluginSettings(t),this.addHook("beforeRenderer",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Mw(Tw,e,Aw).call(e,...n)})),super.enablePlugin()}disablePlugin(){var e=this;const t=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Mw(Tw,e,Aw).call(e,...n)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",(()=>{this.hot.removeHook("beforeRenderer",t)})),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}query(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod();const o=this.hot.countRows(),i=this.hot.countCols(),r=[],s=this.hot;return(0,Et.Ti)(0,o-1,(o=>{(0,Et.Ti)(0,i-1,(i=>{const a=this.hot.getDataAtCell(o,i),l=this.hot.getCellMeta(o,i),c=l.search.callback||t,d=(l.search.queryMethod||n)(e,a,l);if(d){const e={row:o,col:i,data:a};r.push(e)}c&&c(s,o,i,a,d)}))})),r}getCallback(){return this.callback}setCallback(e){this.callback=e}getQueryMethod(){return this.queryMethod}setQueryMethod(e){this.queryMethod=e}getSearchResultClass(){return this.searchResultClass}setSearchResultClass(e){this.searchResultClass=e}updatePluginSettings(e){(0,s.Gv)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}destroy(){super.destroy()}}function Aw(e,t,n,o,i,r){const s=r.className||[];let a=[];"string"==typeof s?a=s.split(" "):a.push(...s),this.isEnabled()&&r.isSearchResult?a.includes(this.searchResultClass)||a.push(`${this.searchResultClass}`):a.includes(this.searchResultClass)&&a.splice(a.indexOf(this.searchResultClass),1),r.className=a.join(" ")}function Lw(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ow{constructor(e){Lw(this,"viewportWidth",void 0),Lw(this,"overwriteColumnWidthFn",void 0),Lw(this,"baseWidths",new Map),Lw(this,"stretchedWidths",new Map),this.overwriteColumnWidthFn=e}prepare(e){let{viewportWidth:t}=e;this.viewportWidth=t,this.baseWidths.clear(),this.stretchedWidths.clear()}setColumnBaseWidth(e,t){this.baseWidths.set(e,t)}calculate(){}getWidths(){return Array.from(this.stretchedWidths)}}class Dw extends Ow{calculate(){const e=Array.from(this.baseWidths).reduce(((e,t)=>{let[,n]=t;return e+n}),0);if(this.viewportWidth-e<0)return void this.stretchedWidths.clear();const t=this.viewportWidth/e,n=[],o=[];let i=this.viewportWidth,r=0;if(this.baseWidths.forEach(((e,s)=>{const a=Math.round(e*t),l=this.overwriteColumnWidthFn(a,s);a===l&&a>=vn.j?(n.push([s,l]),r+=l):a!==l&&(n.push([s,l]),o.push(s),i-=l)})),i<=vn.j)return void this.stretchedWidths.clear();const s=i/r;let a=-1,l=0;n.forEach(((e,t)=>{let[i,r]=e,c=r;o.includes(i)||(c=Math.round(r*s)),this.stretchedWidths.set(i,c),a=i,t<n.length-1&&(l+=c)})),this.stretchedWidths.size>1&&this.stretchedWidths.set(a,Math.round(this.viewportWidth-l))}}function Hw(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Iw(e,t){return e.get(Nw(e,t))}function Pw(e,t,n){return e.set(Nw(e,t),n),n}function Nw(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Fw=new WeakMap,zw=new WeakMap;class jw extends Ow{constructor(){super(...arguments),Hw(this,Fw,0),Hw(this,zw,-1)}prepare(e){super.prepare(e),Pw(Fw,this,0),Pw(zw,this,-1)}setColumnBaseWidth(e,t){super.setColumnBaseWidth(e,t),Pw(zw,this,e),Pw(Fw,this,t)}calculate(){if(-1===Iw(zw,this))return;const e=Array.from(this.baseWidths).reduce(((e,t)=>{let[,n]=t;return e+n}),0),t=Math.max(this.viewportWidth-e+Iw(Fw,this),0);this.stretchedWidths.set(Iw(zw,this),t)}}function Yw(e,t,n){$w(e,t),t.set(e,n)}function $w(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Bw(e,t){return e.get(Vw(e,t))}function Ww(e,t,n){return e.set(Vw(e,t),n),n}function Vw(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Uw=new WeakMap,Gw=new WeakMap,Kw=new WeakMap,qw=new WeakMap,Xw=new WeakSet;class Jw{constructor(e){var t;$w(this,t=Xw),t.add(this),Yw(this,Uw,void 0),Yw(this,Gw,void 0),Yw(this,Kw,new Map([["all",new Dw(Vw(Xw,this,eC).bind(this))],["last",new jw(Vw(Xw,this,eC).bind(this))]])),Yw(this,qw,"none"),Ww(Uw,this,e),Ww(Gw,this,Bw(Uw,this).columnIndexMapper.createAndRegisterIndexMap("stretchColumns","physicalIndexToValue"))}useStrategy(e){Ww(qw,this,Bw(Kw,this).has(e)?e:"none")}refreshStretching(){"none"!==Bw(qw,this)?Bw(Uw,this).batchExecution((()=>{Bw(Gw,this).clear();const e=Bw(Kw,this).get(Bw(qw,this));let t=Bw(Uw,this).view.getViewportWidth();Vw(Xw,this,Qw).call(this)&&(t-=(0,i.XJ)(Bw(Uw,this).rootDocument)),e.prepare({viewportWidth:t});for(let t=0;t<Bw(Uw,this).countCols();t++)Bw(Uw,this).columnIndexMapper.isHidden(Bw(Uw,this).toPhysicalColumn(t))||e.setColumnBaseWidth(t,Vw(Xw,this,Zw).call(this,t));e.calculate(),e.getWidths().forEach((e=>{let[t,n]=e;Bw(Gw,this).setValueAtIndex(Bw(Uw,this).toPhysicalColumn(t),n)}))}),!0):Bw(Gw,this).clear()}getStretchedWidth(e){return Bw(Gw,this).getValueAtIndex(Bw(Uw,this).toPhysicalColumn(e))}}function Qw(){const{view:e}=Bw(Uw,this);if(e.isVerticallyScrollableByWindow())return!1;const t=e.getViewportHeight(),n=Bw(Uw,this).countRows(),o=e.getStylesHandler().getDefaultRowHeight();let i=0,r=!1;for(let e=0;e<n;e++){var s;if(i+=(null!==(s=Bw(Uw,this).getRowHeight(e))&&void 0!==s?s:o)+(0===e?1:0),i>t){r=!0;break}}return r}function Zw(e){var t;return null!==(t=Bw(Uw,this).getColWidth(e,"StretchColumns"))&&void 0!==t?t:vn.j}function eC(e,t){return Bw(Uw,this).runHooks("beforeStretchingColumnWidth",e,t)}function tC(e,t,n){nC(e,t),t.set(e,n)}function nC(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function oC(e,t,n){return e.set(rC(e,t),n),n}function iC(e,t){return e.get(rC(e,t))}function rC(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var sC=new WeakMap,aC=new WeakMap,lC=new WeakMap,cC=new WeakSet;class dC extends dn{constructor(){var e;super(...arguments),nC(this,e=cC),e.add(this),tC(this,sC,new Jw(this.hot)),tC(this,aC,null),tC(this,lC,new ResizeObserver((e=>{requestAnimationFrame((()=>{var t;null!==(t=this.hot)&&void 0!==t&&t.view.isHorizontallyScrollableByWindow()&&e.forEach((e=>{let{contentRect:t}=e;null!==iC(aC,this)&&iC(aC,this)!==t.width&&(this.hot.refreshDimensions(),this.hot.view.adjustElementsSize()),oC(aC,this,t.width)}))}))})))}static get PLUGIN_KEY(){return"stretchColumns"}static get PLUGIN_PRIORITY(){return 155}static get SETTING_KEYS(){return!0}isEnabled(){return["all","last"].includes(this.hot.getSettings().stretchH)}enablePlugin(){var e=this;this.enabled||(iC(sC,this).useStrategy(this.hot.getSettings().stretchH),iC(lC,this).observe(this.hot.rootElement),this.addHook("beforeRender",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return rC(cC,e,hC).call(e,...n)})),this.addHook("modifyColWidth",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return rC(cC,e,uC).call(e,...n)}),10),super.enablePlugin())}updatePlugin(){iC(sC,this).useStrategy(this.hot.getSettings().stretchH),super.updatePlugin()}disablePlugin(){super.disablePlugin(),iC(lC,this).unobserve(this.hot.rootElement)}getColumnWidth(e){return iC(sC,this).getStretchedWidth(e)}destroy(){iC(lC,this).disconnect(),oC(lC,this,null),oC(sC,this,null),super.destroy()}}function uC(e,t,n){if(n===this.pluginName)return;const o=this.getColumnWidth(t);return"number"==typeof o?o:e}function hC(e){e&&iC(sC,this).refreshStretching()}function mC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pC(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var fC=new WeakSet;class gC extends dn{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=fC),t.add(e),mC(this,"scrollbars",[]),mC(this,"clones",[]),mC(this,"lockedCollection",!1),mC(this,"freezeOverlays",!1)}static get PLUGIN_KEY(){return"touchScroll"}static get PLUGIN_PRIORITY(){return 200}static get SETTING_KEYS(){return!0}isEnabled(){return(0,hn.yd)()}enablePlugin(){this.enabled||(this.addHook("afterViewRender",(()=>pC(fC,this,bC).call(this))),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.lockedCollection=!1,super.updatePlugin()}disablePlugin(){super.disablePlugin()}registerEvents(){this.addHook("beforeTouchScroll",(()=>pC(fC,this,vC).call(this))),this.addHook("afterMomentumScroll",(()=>pC(fC,this,yC).call(this)))}}function bC(){if(this.lockedCollection)return;const{topOverlay:e,bottomOverlay:t,inlineStartOverlay:n,topInlineStartCornerOverlay:o,bottomInlineStartCornerOverlay:i}=this.hot.view._wt.wtOverlays;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(e),t.clone&&this.scrollbars.push(t),this.scrollbars.push(n),o&&this.scrollbars.push(o),i&&i.clone&&this.scrollbars.push(i),this.clones=[],e.needFullRender&&this.clones.push(e.clone.wtTable.holder.parentNode),t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),o&&this.clones.push(o.clone.wtTable.holder.parentNode),i&&i.clone&&this.clones.push(i.clone.wtTable.holder.parentNode)}function vC(){this.freezeOverlays=!0,(0,d.z0)(this.clones,(e=>{(0,i.iQ)(e,"hide-tween")}))}function yC(){this.freezeOverlays=!1,(0,d.z0)(this.clones,(e=>{(0,i.vy)(e,"hide-tween"),(0,i.iQ)(e,"show-tween")})),this.hot._registerTimeout((()=>{(0,d.z0)(this.clones,(e=>{(0,i.vy)(e,"show-tween")}))}),400),(0,d.z0)(this.scrollbars,(e=>{e.refresh(),e.resetFixedPosition()})),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}const wC="trimRows";var CC=new WeakSet;class _C extends dn{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=CC),t.add(e),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"trimmedRowsMap",null)}static get PLUGIN_KEY(){return wC}static get PLUGIN_PRIORITY(){return 330}isEnabled(){return!!this.hot.getSettings()[wC]}enablePlugin(){this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new Yu.q),this.trimmedRowsMap.addLocalHook("init",(()=>function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(CC,this,SC).call(this))),super.enablePlugin())}updatePlugin(){const e=this.hot.getSettings()[wC];Array.isArray(e)&&this.hot.batchExecution((()=>{this.trimmedRowsMap.clear(),(0,d.z0)(e,(e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)}))}),!0),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("trimRows"),super.disablePlugin()}getTrimmedRows(){return this.trimmedRowsMap.getTrimmedIndexes()}trimRows(e){const t=this.getTrimmedRows(),n=this.isValidConfig(e);let o=t;n&&(o=Array.from(new Set(t.concat(e)))),!1!==this.hot.runHooks("beforeTrimRow",t,o,n)&&(n&&this.hot.batchExecution((()=>{(0,d.z0)(e,(e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)}))}),!0),this.hot.runHooks("afterTrimRow",t,o,n,n&&o.length>t.length))}trimRow(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.trimRows(t)}untrimRows(e){const t=this.getTrimmedRows(),n=this.isValidConfig(e);let o=t;const i=this.trimmedRowsMap.getValues().slice(),r=e.length>0;n&&r&&((0,d.z0)(e,(e=>{i[e]=!1})),o=(0,d.mu)(i,((e,t,n)=>(t&&e.push(n),e)),[])),!1!==this.hot.runHooks("beforeUntrimRow",t,o,n&&r)&&(n&&r&&this.trimmedRowsMap.setValues(i),this.hot.runHooks("afterUntrimRow",t,o,n&&r,n&&o.length<t.length))}untrimRow(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.untrimRows(t)}isTrimmed(e){return this.trimmedRowsMap.getValueAtIndex(e)||!1}untrimAll(){this.untrimRows(this.getTrimmedRows())}isValidConfig(e){const t=this.hot.countSourceRows();return e.every((e=>Number.isInteger(e)&&e>=0&&e<t))}destroy(){super.destroy()}}function SC(){const e=this.hot.getSettings()[wC];Array.isArray(e)&&this.hot.batchExecution((()=>{(0,d.z0)(e,(e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)}))}),!0)}class MC{constructor(e){var t,n,o;t=this,o="",(n=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(n="actionType"))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,this.actionType=e}undo(){throw new Error("Not implemented")}redo(){throw new Error("Not implemented")}}function EC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class xC extends MC{constructor(e){let{stateBefore:t,range:n,type:o,alignment:i}=e;super("cell_alignment"),EC(this,"stateBefore",void 0),EC(this,"range",void 0),EC(this,"type",void 0),EC(this,"alignment",void 0),this.stateBefore=t,this.range=n,this.type=o,this.alignment=i}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",((e,n,o,i)=>{t.done((()=>new xC({stateBefore:e,range:n,type:o,alignment:i})))}))}undo(e,t){(0,d.z0)(this.range,(t=>{t.forAll(((t,n)=>{t>=0&&n>=0&&e.setCellMeta(t,n,"className",this.stateBefore[t][n]||" htLeft")}))})),e.addHookOnce("afterViewRender",t),e.render()}redo(e,t){Rr(this.range,this.type,this.alignment,((t,n)=>e.getCellMeta(t,n)),((t,n,o,i)=>e.setCellMeta(t,n,o,i))),e.addHookOnce("afterViewRender",t),e.render()}}function kC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class TC extends MC{constructor(e){let{columns:t,finalIndex:n}=e;super("col_move"),kC(this,"columns",void 0),kC(this,"finalColumnIndex",void 0),this.columns=t.slice(),this.finalColumnIndex=n}static startRegisteringEvents(e,t){e.addHook("beforeColumnMove",((e,n)=>{!1!==e&&t.done((()=>new TC({columns:e,finalIndex:n})))}))}undo(e,t){const n=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),Mh(this.columns,this.finalColumnIndex,e.columnIndexMapper.getNumberOfIndexes()).reverse().forEach((e=>{let{from:t,to:o}=e;t<o&&(o-=1),n.moveColumn(o,t)})),e.render(),e.deselectCell(),e.selectColumns(this.columns[0],this.columns[0]+this.columns.length-1)}redo(e,t){const n=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),n.moveColumns(this.columns.slice(),this.finalColumnIndex),e.render(),e.deselectCell(),e.selectColumns(this.finalColumnIndex,this.finalColumnIndex+this.columns.length-1)}}function RC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class AC extends MC{constructor(e){let{currentSortState:t,newSortState:n}=e;super("col_sort"),RC(this,"previousSortState",void 0),RC(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=n}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",((e,n,o)=>{o&&t.done((()=>new AC({currentSortState:e,newSortState:n})))}))}undo(e,t){const n=e.getPlugin("columnSorting"),o=e.getPlugin("multiColumnSorting"),i=o.isEnabled()?o:n;this.previousSortState.length?i.sort(this.previousSortState):i.clearSort(),t()}redo(e,t){const n=e.getPlugin("columnSorting"),o=e.getPlugin("multiColumnSorting");(o.isEnabled()?o:n).sort(this.nextSortState),t()}}function LC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class OC extends MC{constructor(e){let{index:t,amount:n}=e;super("insert_col"),LC(this,"index",void 0),LC(this,"amount",void 0),this.index=t,this.amount=n}static startRegisteringEvents(e,t){e.addHook("afterCreateCol",((e,n,o)=>{t.done((()=>new OC({index:e,amount:n})),o)}))}undo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")}}function DC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class HC extends MC{constructor(e){let{index:t,amount:n}=e;super("insert_row"),DC(this,"index",void 0),DC(this,"amount",void 0),this.index=t,this.amount=n}static startRegisteringEvents(e,t){e.addHook("afterCreateRow",((e,n,o)=>{t.done((()=>new HC({index:e,amount:n})),o)}))}undo(e,t){const n=e.countRows(),o=e.getSettings().minSpareRows;this.index>=n&&this.index-o<n&&(this.index-=o),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row_above",this.index,this.amount,"UndoRedo.redo")}}function IC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class PC extends MC{constructor(e){let{changes:t,selected:n,countCols:o,countRows:i}=e;super("change"),IC(this,"changes",void 0),IC(this,"selected",void 0),IC(this,"countCols",void 0),IC(this,"countRows",void 0),this.changes=t,this.selected=n,this.countCols=o,this.countRows=i}static startRegisteringEvents(e,t){e.addHook("beforeChange",(function(n,o){const i=n&&n.length;i&&n.find((e=>{const[,,t,n]=e;return t!==n}))&&t.done((()=>{const t=n.reduce(((e,t)=>(e.push([...t]),e)),[]);t.forEach((t=>{t[1]=e.propToCol(t[1])}));const o=i>1?this.getSelected():[[t[0][0],t[0][1]]];return new PC({changes:t,selected:o,countCols:e.countCols(),countRows:e.countRows()})}),o)}))}undo(e,t){const n=(0,s.Go)(this.changes);for(let e=0,t=n.length;e<t;e++)n[e].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtCell(n,null,null,"UndoRedo.undo");const o=e.countRows()-this.countRows;o>0&&e.alter("remove_row",null,o,"UndoRedo.undo");const i=e.countCols()-this.countCols;i>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,i,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1)}redo(e,t){const n=(0,s.Go)(this.changes);for(let e=0,t=n.length;e<t;e++)n[e].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtCell(n,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)}}function NC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class FC extends MC{constructor(e){let{conditionsStack:t,previousConditionsStack:n}=e;super("filter"),NC(this,"conditionsStack",void 0),NC(this,"previousConditionsStack",void 0),this.conditionsStack=t,this.previousConditionsStack=n}static startRegisteringEvents(e,t){e.addHook("beforeFilter",((e,n)=>{t.done((()=>new FC({conditionsStack:e,previousConditionsStack:n})))}))}undo(e,t){const n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.importConditions(this.previousConditionsStack),n.filter()}redo(e,t){const n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.importConditions(this.conditionsStack),n.filter()}}class zC extends MC{constructor(e){let{data:t,cellRange:n}=e;var o,i,r;super("merge_cells"),o=this,r=void 0,(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="cellRange"))in o?Object.defineProperty(o,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[i]=r,this.cellRange=n,this.data=t}static startRegisteringEvents(e,t){e.addHook("beforeMergeCells",((n,o)=>{if(o)return;const i=n.getTopStartCorner(),r=n.getBottomEndCorner(),s=e.getData(i.row,i.col,r.row,r.col);t.done((()=>new zC({data:s,cellRange:n})))}))}undo(e,t){const n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.unmergeRange(this.cellRange,!0);const o=this.cellRange.getTopStartCorner();e.populateFromArray(o.row,o.col,this.data,void 0,void 0,"MergeCells")}redo(e,t){const n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.mergeRange(this.cellRange)}}function jC(e,t,n,o,i){const r=["visualRow","visualCol","row","col","prop"],s=r.length,a=[];return(0,Et.Ti)(o,i,(o=>{(0,Et.Ti)(t,n,(t=>{const n=e.getCellMeta(t,o);if(Object.keys(n).length!==s){const e=Object.fromEntries(Object.entries(n).filter((e=>{let[t]=e;return!1===r.includes(t)})));a.push([n.visualRow,n.visualCol,e])}}))})),a}function YC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(53921);class $C extends MC{constructor(e){let{index:t,indexes:n,data:o,amount:i,headers:r,columnPositions:s,rowPositions:a,fixedColumnsStart:l,removedCellMetas:c}=e;super("remove_col"),YC(this,"index",void 0),YC(this,"indexes",void 0),YC(this,"data",void 0),YC(this,"amount",void 0),YC(this,"headers",void 0),YC(this,"columnPositions",void 0),YC(this,"rowPositions",void 0),YC(this,"fixedColumnsStart",void 0),YC(this,"removedCellMetas",void 0),this.index=t,this.indexes=n,this.data=o,this.amount=i,this.headers=r,this.columnPositions=s.slice(0),this.rowPositions=a.slice(0),this.fixedColumnsStart=l,this.removedCellMetas=c}static startRegisteringEvents(e,t){e.addHook("beforeRemoveCol",((n,o,i,r)=>{t.done((()=>{const t=e.getSourceDataArray(),i=(e.countCols()+n)%e.countCols(),r=i+o-1,s=[],a=[],l=[];return(0,Et.Ti)(t.length-1,(n=>{const o=[],a=t[n];(0,Et.Ti)(i,r,(t=>{o.push(a[e.toPhysicalColumn(t)])})),s.push(o)})),(0,Et.Ti)(o-1,(t=>{l.push(e.toPhysicalColumn(i+t))})),Array.isArray(e.getSettings().colHeaders)&&(0,Et.Ti)(o-1,(t=>{a.push(e.getSettings().colHeaders[e.toPhysicalColumn(i+t)]||null)})),new $C({index:i,indexes:l,data:s,amount:o,headers:a,columnPositions:e.columnIndexMapper.getIndexesSequence(),rowPositions:e.rowIndexMapper.getIndexesSequence(),fixedColumnsStart:e.getSettings().fixedColumnsStart,removedCellMetas:jC(e,0,e.countRows(),i,r)})}),r)}))}undo(e,t){e.getSettings().fixedColumnsStart=this.fixedColumnsStart;const n=this.indexes.slice(0).sort(),o=(e,t,o)=>o[this.indexes.indexOf(n[t])],i=this.data.length,r=[];for(let e=0;e<i;e++)r.push((0,d.YD)(this.data[e],o));const s=(0,d.YD)(this.headers,o),a=[];e.columnIndexMapper.setIndexesSequence(this.columnPositions),e.alter("insert_col_start",e.toVisualColumn(this.indexes[0]),this.indexes.length,"UndoRedo.undo"),e.batchExecution((()=>{e.rowIndexMapper.setIndexesSequence(this.rowPositions),e.columnIndexMapper.setIndexesSequence(this.columnPositions)}),!0),(0,d.z0)(e.getSourceDataArray(),((e,t)=>{(0,d.z0)(n,((n,o)=>{e[n]=r[t][o],a.push([t,n,e[n]])}))})),void 0!==this.headers&&(0,d.z0)(s,((t,o)=>{e.getSettings().colHeaders[n[o]]=t})),this.removedCellMetas.forEach((t=>{let[n,o,i]=t;e.setCellMetaObject(n,o,i)})),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(a,null,null,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")}}function BC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class WC extends MC{constructor(e){let{index:t,data:n,fixedRowsBottom:o,fixedRowsTop:i,rowIndexesSequence:r,removedCellMetas:s}=e;super("remove_row"),BC(this,"index",void 0),BC(this,"data",void 0),BC(this,"fixedRowsBottom",void 0),BC(this,"fixedRowsTop",void 0),BC(this,"rowIndexesSequence",void 0),BC(this,"removedCellMetas",void 0),this.index=t,this.data=n,this.fixedRowsBottom=o,this.fixedRowsTop=i,this.rowIndexesSequence=r,this.removedCellMetas=s}static startRegisteringEvents(e,t){e.addHook("beforeRemoveRow",((n,o,i,r)=>{t.done((()=>{const t=e.toPhysicalRow(n),i=t+o-1,r=(0,s.Go)(e.getSourceData(t,0,t+o-1,e.countSourceCols()-1));return new WC({index:t,data:r,fixedRowsBottom:e.getSettings().fixedRowsBottom,fixedRowsTop:e.getSettings().fixedRowsTop,rowIndexesSequence:e.rowIndexMapper.getIndexesSequence(),removedCellMetas:jC(e,t,i,0,e.countCols()-1)})}),r)}))}undo(e,t){const n=e.getSettings(),o=[];n.fixedRowsBottom=this.fixedRowsBottom,n.fixedRowsTop=this.fixedRowsTop,this.data.forEach(((e,t)=>{Object.keys(e).forEach((n=>{const i=parseInt(n,10);o.push([this.index+t,isNaN(i)?n:i,e[n]])}))})),e.rowIndexMapper.setIndexesSequence(this.rowIndexesSequence),e.alter("insert_row_above",e.toVisualRow(this.index),this.data.length,"UndoRedo.undo"),e.rowIndexMapper.setIndexesSequence(this.rowIndexesSequence),this.removedCellMetas.forEach((t=>{let[n,o,i]=t;e.setCellMetaObject(n,o,i)})),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(o,null,null,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",e.toVisualRow(this.index),this.data.length,"UndoRedo.redo")}}function VC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class UC extends MC{constructor(e){let{rows:t,finalIndex:n}=e;super("row_move"),VC(this,"rows",void 0),VC(this,"finalRowIndex",void 0),this.rows=t.slice(),this.finalRowIndex=n}static startRegisteringEvents(e,t){e.addHook("beforeRowMove",((e,n)=>{!1!==e&&t.done((()=>new UC({rows:e,finalIndex:n})))}))}undo(e,t){const n=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),Mh(this.rows,this.finalRowIndex,e.rowIndexMapper.getNumberOfIndexes()).reverse().forEach((e=>{let{from:t,to:o}=e;t<o&&(o-=1),n.moveRow(o,t)})),e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)}redo(e,t){const n=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),n.moveRows(this.rows.slice(),this.finalRowIndex),e.render(),e.deselectCell(),e.selectRows(this.finalRowIndex,this.finalRowIndex+this.rows.length-1)}}class GC extends MC{constructor(e){let{cellRange:t}=e;var n,o,i;super("unmerge_cells"),n=this,i=void 0,(o=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(o="cellRange"))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,this.cellRange=t}static startRegisteringEvents(e,t){e.addHook("afterUnmergeCells",((e,n)=>{n||t.done((()=>new GC({cellRange:e})))}))}undo(e,t){const n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.mergeRange(this.cellRange,!0)}redo(e,t){const n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.unmergeRange(this.cellRange,!0),e.render()}}function KC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qC(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const XC="undoRedo";Se.R.getSingleton().register("beforeUndo"),Se.R.getSingleton().register("afterUndo"),Se.R.getSingleton().register("beforeRedo"),Se.R.getSingleton().register("afterRedo");const JC=new Set;var QC=new WeakSet;class ZC extends dn{static get PLUGIN_KEY(){return"undoRedo"}static get PLUGIN_PRIORITY(){return 1e3}static get SETTING_KEYS(){return!0}constructor(e){var t,n,o,i;super(e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=QC),i.add(o),KC(this,"doneActions",[]),KC(this,"undoneActions",[]),KC(this,"ignoreNewActions",!1),t=e,n=this,[xC,TC,AC,OC,HC,PC,FC,zC,$C,WC,UC,GC].forEach((e=>e.startRegisteringEvents(t,n)))}isEnabled(){return!!this.hot.getSettings().undo}enablePlugin(){var e=this;this.enabled||(this.addHook("afterChange",(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return qC(QC,e,e_).call(e,...n)})),this.registerShortcuts(),qC(QC,this,t_).call(this),super.enablePlugin())}disablePlugin(){super.disablePlugin(),this.clear(),this.unregisterShortcuts(),qC(QC,this,n_).call(this)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("grid"),t={runOnlyIf:e=>!e.altKey,group:XC};e.addShortcuts([{keys:[["Control/Meta","z"]],callback:()=>{this.undo()}},{keys:[["Control/Meta","y"],["Control/Meta","Shift","z"]],callback:()=>{this.redo()}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(XC)}done(e,t){if(this.ignoreNewActions)return;if("UndoRedo.undo"===t||"UndoRedo.redo"===t||"auto"===t)return;const n=this.doneActions.slice();if(!1===this.hot.runHooks("beforeUndoStackChange",n,t))return;const o=e(),i=this.undoneActions.slice();this.doneActions.push(o),this.hot.runHooks("afterUndoStackChange",n,this.doneActions.slice()),this.hot.runHooks("beforeRedoStackChange",i),this.undoneActions.length=0,this.hot.runHooks("afterRedoStackChange",i,this.undoneActions.slice())}undo(){if(!this.isUndoAvailable())return;const e=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",e);const t=this.doneActions.pop();this.hot.runHooks("afterUndoStackChange",e,this.doneActions.slice());const n=(0,s.Go)(t);if(!1===this.hot.runHooks("beforeUndo",n))return;this.ignoreNewActions=!0;const o=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",o),t.undo(this.hot,(()=>{this.ignoreNewActions=!1,this.undoneActions.push(t)})),this.hot.runHooks("afterRedoStackChange",o,this.undoneActions.slice()),this.hot.runHooks("afterUndo",n)}redo(){if(!this.isRedoAvailable())return;const e=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",e);const t=this.undoneActions.pop();this.hot.runHooks("afterRedoStackChange",e,this.undoneActions.slice());const n=(0,s.Go)(t);if(!1===this.hot.runHooks("beforeRedo",n))return;this.ignoreNewActions=!0;const o=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",o),t.redo(this.hot,(()=>{this.ignoreNewActions=!1,this.doneActions.push(t)})),this.hot.runHooks("afterUndoStackChange",o,this.doneActions.slice()),this.hot.runHooks("afterRedo",n)}isUndoAvailable(){return this.doneActions.length>0}isRedoAvailable(){return this.undoneActions.length>0}clear(){this.doneActions.length=0,this.undoneActions.length=0}destroy(){this.clear(),this.doneActions=null,this.undoneActions=null,super.destroy()}}function e_(e,t){"loadData"===t&&this.clear()}function t_(){const e=e=>{JC.has(e)||((0,Po.R8)(bi.O`The "${e}" method is deprecated and it will be removed\x20
  24. from the Core API in the future. Please use the method from the UndoRedo plugin\x20
  25. (e.g. \`hotInstance.getPlugin("undoRedo").${e}()\`).`),JC.add(e))};this.hot.undo=()=>{e("undo"),this.undo()},this.hot.redo=()=>{e("redo"),this.redo()},this.hot.isUndoAvailable=()=>(e("isUndoAvailable"),this.isUndoAvailable()),this.hot.isRedoAvailable=()=>(e("isRedoAvailable"),this.isRedoAvailable()),this.hot.clearUndo=()=>{e("clear"),this.clear()},this.hot.undoRedo=this}function n_(){delete this.hot.undo,delete this.hot.redo,delete this.hot.isUndoAvailable,delete this.hot.isRedoAvailable,delete this.hot.clearUndo,delete this.hot.undoRedo}function o_(){(0,be.VA)(k.b7),(0,be.VA)(E),(0,be.VA)(T),(0,be.VA)(ae),(0,be.VA)(ce),(0,be.VA)(c),(0,be.VA)(de),(0,be.VA)(he),(0,be.VA)(fe),(0,be.VA)(o.t),(0,be.VA)(ge),(0,Lt.TS)(Ce),(0,Lt.TS)(ve.j),(0,Lt.TS)(Oe),(0,Lt.TS)(_e),(0,Lt.TS)(He),(0,Lt.TS)(ye),(0,Lt.TS)(kt),(0,Lt.TS)(Tt),(0,Lt.TS)(Rt),(0,Lt.TS)(p.F),(0,Lt.TS)(At),(0,zt.qV)(Ot),(0,zt.qV)(It),(0,zt.qV)(Ht),(0,zt.qV)(Pt),(0,zt.qV)(Ft),(0,Jt.Gk)(jt),(0,Jt.Gk)(Yt),(0,Jt.Gk)(Bt),(0,Jt.Gk)(Wt),(0,Jt.Gk)(Vt),(0,Jt.Gk)(Ut),(0,Jt.Gk)(Gt),(0,Jt.Gk)(Kt),(0,Jt.Gk)(qt.Y),(0,Jt.Gk)(Xt),(0,Qt.F3)(Ln),(0,Qt.F3)(Gn),(0,Qt.F3)(co),(0,Qt.F3)(Ho),(0,Qt.F3)(qo),(0,Qt.F3)(Ni),(0,Qt.F3)(Ki),(0,Qt.F3)(Qr),(0,Qt.F3)(da),(0,Qt.F3)(Za),(0,Qt.F3)(Ml),(0,Qt.F3)(Ll),(0,Qt.F3)($l),(0,Qt.F3)(bc),(0,Qt.F3)(eh),(0,Qt.F3)(lm),(0,Qt.F3)($m),(0,Qt.F3)(np),(0,Qt.F3)(gp),(0,Qt.F3)(Up),(0,Qt.F3)(Mf),(0,Qt.F3)(ng),(0,Qt.F3)(Dg),(0,Qt.F3)(Nb),(0,Qt.F3)(mv),(0,Qt.F3)(fv),(0,Qt.F3)(fy),(0,Qt.F3)(nw),(0,Qt.F3)(_w),(0,Qt.F3)(Rw),(0,Qt.F3)(dC),(0,Qt.F3)(gC),(0,Qt.F3)(_C),(0,Qt.F3)(ZC)}},37550:(e,t,n)=>{"use strict";n(13579)},37786:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var o=n(96540),i=n(34164),r=n(21362),s=n(26739),a=n(39241),l=n(20439),c=n(96148),d=n(1908);function u(e){return(0,d.Ay)("MuiAccordionDetails",e)}(0,c.A)("MuiAccordionDetails",["root"]);var h=n(74848);const m=(0,s.Ay)("div",{name:"MuiAccordionDetails",slot:"Root"})((0,a.A)((({theme:e})=>({padding:e.spacing(1,2,2)})))),p=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiAccordionDetails"}),{className:o,...s}=n,a=n,c=(e=>{const{classes:t}=e;return(0,r.A)({root:["root"]},u,t)})(a);return(0,h.jsx)(m,{className:(0,i.A)(c.root,o),ref:t,ownerState:a,...s})}))},37892:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(95093))},38221:(e,t,n)=>{var o=n(23805),i=n(10124),r=n(99374),s=Math.max,a=Math.min;e.exports=function(e,t,n){var l,c,d,u,h,m,p=0,f=!1,g=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,o=c;return l=c=void 0,p=t,u=e.apply(o,n)}function y(e){var n=e-m;return void 0===m||n>=t||n<0||g&&e-p>=d}function w(){var e=i();if(y(e))return C(e);h=setTimeout(w,function(e){var n=t-(e-m);return g?a(n,d-(e-p)):n}(e))}function C(e){return h=void 0,b&&l?v(e):(l=c=void 0,u)}function _(){var e=i(),n=y(e);if(l=arguments,c=this,m=e,n){if(void 0===h)return function(e){return p=e,h=setTimeout(w,t),f?v(e):u}(m);if(g)return clearTimeout(h),h=setTimeout(w,t),v(m)}return void 0===h&&(h=setTimeout(w,t)),u}return t=r(t)||0,o(n)&&(f=!!n.leading,d=(g="maxWait"in n)?s(r(n.maxWait)||0,t):d,b="trailing"in n?!!n.trailing:b),_.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=m=c=h=void 0},_.flush=function(){return void 0===h?u:C(i())},_}},38419:(e,t,n)=>{"use strict";n.d(t,{Lb:()=>r,SI:()=>c,Yf:()=>l,aE:()=>a,m0:()=>d}),n(44114);var o=n(77325),i=n(58002);const r={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,i.gm)()?182:174,AUDIO_MUTE:(0,i.gm)()?181:173,AUDIO_UP:(0,i.gm)()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90},s=[r.ALT,r.ARROW_DOWN,r.ARROW_LEFT,r.ARROW_RIGHT,r.ARROW_UP,r.AUDIO_DOWN,r.AUDIO_MUTE,r.AUDIO_UP,r.BACKSPACE,r.CAPS_LOCK,r.DELETE,r.END,r.ENTER,r.ESCAPE,r.F1,r.F2,r.F3,r.F4,r.F5,r.F6,r.F7,r.F8,r.F9,r.F10,r.F11,r.F12,r.F13,r.F14,r.F15,r.F16,r.F17,r.F18,r.F19,r.HOME,r.INSERT,r.MEDIA_NEXT,r.MEDIA_PLAY_PAUSE,r.MEDIA_PREV,r.MEDIA_STOP,r.NULL,r.NUM_LOCK,r.PAGE_DOWN,r.PAGE_UP,r.PAUSE,r.SCROLL_LOCK,r.SHIFT,r.TAB];function a(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function l(e){return s.includes(e)}function c(e){return[r.CONTROL,r.COMMAND_LEFT,r.COMMAND_RIGHT,r.COMMAND_FIREFOX].includes(e)}function d(e,t){const n=t.split("|");let i=!1;return(0,o.z0)(n,(t=>{if(e===r[t])return i=!0,!1})),i}},38469:(e,t,n)=>{"use strict";var o=n(79504),i=n(40507),r=n(94402),s=r.Set,a=r.proto,l=o(a.forEach),c=o(a.keys),d=c(new s).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:d},t):l(e,t)}},38480:(e,t,n)=>{"use strict";var o=n(61828),i=n(88727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,i)}},38574:(e,t,n)=>{"use strict";var o=n(84215);e.exports="NODE"===o},39297:(e,t,n)=>{"use strict";var o=n(79504),i=n(48981),r=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(i(e),t)}},39319:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>v,Is:()=>p});var o=n(96540),i=n(77132);const r="5.26.1";var s=n(49806),a=n(15265),l=n(50723),c=n(2616),d=n(85045),u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};function h(e){const{override:t}=e,n=u(e,["override"]),o=Object.assign({},t);Object.keys(l.A).forEach((e=>{delete o[e]}));const i=Object.assign(Object.assign({},n),o);if(!1===i.motion){const e="0s";i.motionDurationFast=e,i.motionDurationMid=e,i.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:(0,d.A)(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:(0,d.A)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,d.A)(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:3*i.lineWidth,lineWidth:i.lineWidth,controlOutlineWidth:2*i.lineWidth,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:(0,d.A)(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new c.Y("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new c.Y("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new c.Y("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}var m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const p={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},f={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},g={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},b=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:i}=t,r=m(t,["override"]);let s=Object.assign(Object.assign({},o),{override:i});return s=h(s),r&&Object.entries(r).forEach((([e,t])=>{const{theme:n}=t,o=m(t,["theme"]);let i=o;n&&(i=b(Object.assign(Object.assign({},s),o),{override:o},n)),s[e]=i})),s};function v(){const{token:e,hashed:t,theme:n,override:c,cssVar:d}=o.useContext(s.vG),u=`${r}-${t||""}`,m=n||a.A,[v,y,w]=(0,i.hV)(m,[l.A,e],{salt:u,override:c,getComputedToken:b,formatToken:h,cssVar:d&&{prefix:d.prefix,key:d.key,unitless:p,ignore:f,preserve:g}});return[m,w,t?y:"",v,d]}},39433:(e,t,n)=>{"use strict";var o=n(44576),i=Object.defineProperty;e.exports=function(e,t){try{i(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},39519:(e,t,n)=>{"use strict";var o,i,r=n(44576),s=n(82839),a=r.process,l=r.Deno,c=a&&a.versions||l&&l.version,d=c&&c.v8;d&&(i=(o=d.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&s&&(!(o=s.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=s.match(/Chrome\/(\d+)/))&&(i=+o[1]),e.exports=i},39835:e=>{"use strict";e.exports=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},o=t[e](n);return 1!==o.size||4!==o.values().next().value}catch(e){return!1}}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},40507:(e,t,n)=>{"use strict";var o=n(69565);e.exports=function(e,t,n){for(var i,r,s=n?e:e.iterator,a=e.next;!(i=o(a,s)).done;)if(void 0!==(r=t(i.value)))return r}},40616:(e,t,n)=>{"use strict";var o=n(79039);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},40748:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(95093))},41011:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(95093))},41113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},41488:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(o,i,r,s){var a=t(o),l=n[e][t(o)];return 2===a&&(l=l[i?0:1]),l.replace(/%d/i,o)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(95093))},41496:(e,t,n)=>{"use strict";n.d(t,{q:()=>r}),n(44114);var o=n(48386),i=n(77325);class r extends o._{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,i.mu)(this.getValues(),((e,t,n)=>(t&&e.push(n),e)),[])}}},41519:(e,t,n)=>{"use strict";n.d(t,{j:()=>c});var o=n(58168),i=n(3576),r=n(96540),s=n(29677),a=n(29401),l=n(81326);const c=({store:e,params:t})=>{const n=t=>{(null===t||(0,l.pF)(e.value,t))&&e.update((e=>(0,o.A)({},e,{label:(0,o.A)({},e.label,{editedItemId:t})})))},r=(n,i)=>{if(!i)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",n].join("\n"));e.update((e=>{const t=e.items.itemMetaLookup[n];return t.label!==i?(0,o.A)({},e,{items:(0,o.A)({},e.items,{itemMetaLookup:(0,o.A)({},e.items.itemMetaLookup,{[n]:(0,o.A)({},t,{label:i})})})}):e})),t.onItemLabelChange&&t.onItemLabelChange(n,i)};return(0,i.A)((()=>{e.update((e=>(0,o.A)({},e,{label:(0,o.A)({},e.label,{isItemEditable:t.isItemEditable})})))}),[e,t.isItemEditable]),{instance:{setEditedItem:n,updateItemLabel:r},publicAPI:{setEditedItem:n,updateItemLabel:r}}};c.itemPlugin=({props:e})=>{const{store:t}=(0,s.i)(),{label:n,itemId:o}=e,[i,c]=r.useState(n),d=(0,a.d)(t,l.pF,o),u=(0,a.d)(t,l.XG,o);return r.useEffect((()=>{u||c(n)}),[u,n]),{propsEnhancers:{label:()=>({editable:d}),labelInput:({externalEventHandlers:e,interactions:t})=>d?{value:i??"","data-element":"labelInput",onChange:t=>{e.onChange?.(t),c(t.target.value)},onKeyDown:n=>{if(e.onKeyDown?.(n),n.defaultMuiPrevented)return;const o=n.target;"Enter"===n.key&&o.value?t.handleSaveItemLabel(n,o.value):"Escape"===n.key&&t.handleCancelItemLabelEditing(n)},onBlur:n=>{e.onBlur?.(n),n.defaultMuiPrevented||n.target.value&&t.handleSaveItemLabel(n,n.target.value)},autoFocus:!0,type:"text"}:{}}}},c.applyDefaultValuesToParams=({params:e})=>(0,o.A)({},e,{isItemEditable:e.isItemEditable??!1}),c.getInitialState=e=>({label:{isItemEditable:e.isItemEditable,editedItemId:null}}),c.params={onItemLabelChange:!0,isItemEditable:!0}},41702:(e,t,n)=>{"use strict";var o=n(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(83009));t.default=i.default},41734:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(95093))},41794:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(95093))},41848:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},41895:(e,t,n)=>{"use strict";n.d(t,{n:()=>l}),n(16280),n(44114);var o=n(71409),i=n(32919),r=n(83986),s=n(77710);function a(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;a(this,"indexedValues",[]),a(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,r.Tn)(this.initValueOrFn)?(0,o.Ti)(e-1,(e=>this.indexedValues.push(this.initValueOrFn(e)))):(0,o.Ti)(e-1,(()=>this.indexedValues.push(this.initValueOrFn))),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}(0,i.co)(l,s.A)},42030:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var o=n(96540),i=n(34164),r=n(37353),s=n(32350),a=n(21362),l=n(26739),c=n(53356),d=n(39241),u=n(20439),h=n(21234),m=n(24337),p=n(30301),f=n(96148),g=n(1908);function b(e){return(0,g.Ay)("MuiCollapse",e)}(0,f.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var v=n(74848);const y=(0,l.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((0,d.A)((({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>"exited"===e.state&&!e.in&&"0px"===e.collapsedSize,style:{visibility:"hidden"}}]})))),w=(0,l.Ay)("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),C=(0,l.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),_=o.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiCollapse"}),{addEndListener:l,children:d,className:f,collapsedSize:g="0px",component:_,easing:S,in:M,onEnter:E,onEntered:x,onEntering:k,onExit:T,onExited:R,onExiting:A,orientation:L="vertical",style:O,timeout:D=h.p0.standard,TransitionComponent:H=r.Ay,...I}=n,P={...n,orientation:L,collapsedSize:g},N=(e=>{const{orientation:t,classes:n}=e,o={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,a.A)(o,b,n)})(P),F=(0,c.A)(),z=(0,s.A)(),j=o.useRef(null),Y=o.useRef(),$="number"==typeof g?`${g}px`:g,B="horizontal"===L,W=B?"width":"height",V=o.useRef(null),U=(0,p.A)(t,V),G=e=>t=>{if(e){const n=V.current;void 0===t?e(n):e(n,t)}},K=()=>j.current?j.current[B?"clientWidth":"clientHeight"]:0,q=G(((e,t)=>{j.current&&B&&(j.current.style.position="absolute"),e.style[W]=$,E&&E(e,t)})),X=G(((e,t)=>{const n=K();j.current&&B&&(j.current.style.position="");const{duration:o,easing:i}=(0,m.c)({style:O,timeout:D,easing:S},{mode:"enter"});if("auto"===D){const t=F.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,Y.current=t}else e.style.transitionDuration="string"==typeof o?o:`${o}ms`;e.style[W]=`${n}px`,e.style.transitionTimingFunction=i,k&&k(e,t)})),J=G(((e,t)=>{e.style[W]="auto",x&&x(e,t)})),Q=G((e=>{e.style[W]=`${K()}px`,T&&T(e)})),Z=G(R),ee=G((e=>{const t=K(),{duration:n,easing:o}=(0,m.c)({style:O,timeout:D,easing:S},{mode:"exit"});if("auto"===D){const n=F.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,Y.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[W]=$,e.style.transitionTimingFunction=o,A&&A(e)}));return(0,v.jsx)(H,{in:M,onEnter:q,onEntered:J,onEntering:X,onExit:Q,onExited:Z,onExiting:ee,addEndListener:e=>{"auto"===D&&z.start(Y.current||0,e),l&&l(V.current,e)},nodeRef:V,timeout:"auto"===D?null:D,...I,children:(e,{ownerState:t,...n})=>(0,v.jsx)(y,{as:_,className:(0,i.A)(N.root,f,{entered:N.entered,exited:!M&&"0px"===$&&N.hidden}[e]),style:{[B?"minWidth":"minHeight"]:$,...O},ref:U,ownerState:{...P,state:e},...n,children:(0,v.jsx)(w,{ownerState:{...P,state:e},className:N.wrapper,ref:j,children:(0,v.jsx)(C,{ownerState:{...P,state:e},className:N.wrapperInner,children:d})})})})}));_&&(_.muiSupportAuto=!0);const S=_},42049:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});const o=n(96540).createContext((()=>-1))},42353:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,r,s){var a=n(t),l=o[e][n(t)];return 2===a&&(l=l[i?0:1]),l.replace(/%d/i,t)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},42787:(e,t,n)=>{"use strict";var o=n(39297),i=n(94901),r=n(48981),s=n(66119),a=n(12211),l=s("IE_PROTO"),c=Object,d=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=r(e);if(o(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?d:null}},43004:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},43145:(e,t,n)=>{"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{A:()=>o})},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(82284),i=n(68210);const r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,s){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=r.has(t);if((0,i.Ay)(!l,"Warning: There may be circular references"),l)return!1;if(t===s)return!0;if(n&&a>1)return!1;r.add(t);var c=a+1;if(Array.isArray(t)){if(!Array.isArray(s)||t.length!==s.length)return!1;for(var d=0;d<t.length;d++)if(!e(t[d],s[d],c))return!1;return!0}if(t&&s&&"object"===(0,o.A)(t)&&"object"===(0,o.A)(s)){var u=Object.keys(t);return u.length===Object.keys(s).length&&u.every((function(n){return e(t[n],s[n],c)}))}return!1}(e,t)}},43693:(e,t,n)=>{var o=n(77736);e.exports=function(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},43724:(e,t,n)=>{"use strict";var o=n(79039);e.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},43784:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),o=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},43861:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},o=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:o,longMonthsParse:o,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(95093))},44114:(e,t,n)=>{"use strict";var o=n(46518),i=n(48981),r=n(26198),s=n(34527),a=n(96837);o({target:"Array",proto:!0,arity:1,forced:n(79039)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),n=r(t),o=arguments.length;a(n+o);for(var l=0;l<o;l++)t[n]=arguments[l],n++;return s(t,n),n}})},44124:(e,t,n)=>{"use strict";var o=n(44576);e.exports=function(e,t){var n=o[e],i=n&&n.prototype;return i&&i[t]}},44204:(e,t,n)=>{"use strict";var o=n(97080),i=n(94402).add,r=n(89286),s=n(83789),a=n(40507);e.exports=function(e){var t=o(this),n=s(e).getIterator(),l=r(t);return a(n,(function(e){i(l,e)})),l}},44209:(e,t,n)=>{"use strict";var o=n(78227),i=n(26269),r=o("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[r]===e)}},44394:(e,t,n)=>{var o=n(72552),i=n(40346);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==o(e)}},44429:function(e,t,n){!function(e){"use strict";function t(e,t,n){var o=e+" ";switch(n){case"ss":return o+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"mm":return o+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return"jedan sat";case"hh":return o+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return o+(1===e?"dan":"dana");case"MM":return o+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return o+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:function(e,t,n,o){if("m"===n)return t?"jedna minuta":o?"jednu minutu":"jedne minute"},mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},44576:function(e,t,n){"use strict";var o=function(e){return e&&e.Math===Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||o("object"==typeof this&&this)||function(){return this}()||Function("return this")()},45719:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,o,i){var r,s=t.words[o];return 1===o.length?"y"===o&&n?"jedna godina":i||n?s[0]:s[1]:(r=t.correctGrammaticalCase(e,s),"yy"===o&&n&&"godinu"===r?e+" godina":e+" "+r)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},45748:(e,t,n)=>{"use strict";n.d(t,{z1:()=>E,cM:()=>f,UA:()=>A,uy:()=>g});var o=n(2616),i=2,r=.16,s=.05,a=.05,l=.15,c=5,d=4,u=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function h(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?o+=360:o>=360&&(o-=360),o}function m(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-r*t:t===d?e.s+r:e.s+s*t)>1&&(o=1),n&&t===c&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(100*o)/100);var o}function p(e,t,n){var o;return o=n?e.v+a*t:e.v-l*t,o=Math.max(0,Math.min(1,o)),Math.round(100*o)/100}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=new o.Y(e),r=i.toHsv(),s=c;s>0;s-=1){var a=new o.Y({h:h(r,s,!0),s:m(r,s,!0),v:p(r,s,!0)});n.push(a)}n.push(i);for(var l=1;l<=d;l+=1){var f=new o.Y({h:h(r,l),s:m(r,l),v:p(r,l)});n.push(f)}return"dark"===t.theme?u.map((function(e){var i=e.index,r=e.amount;return new o.Y(t.backgroundColor||"#141414").mix(n[i],r).toHexString()})):n.map((function(e){return e.toHexString()}))}var g={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},b=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];b.primary=b[5];var v=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];v.primary=v[5];var y=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];y.primary=y[5];var w=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];w.primary=w[5];var C=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];C.primary=C[5];var _=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];_.primary=_[5];var S=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];S.primary=S[5];var M=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];M.primary=M[5];var E=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];E.primary=E[5];var x=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];x.primary=x[5];var k=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];k.primary=k[5];var T=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];T.primary=T[5];var R=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];R.primary=R[5];var A={red:b,volcano:v,orange:y,gold:w,yellow:C,lime:_,green:S,cyan:M,blue:E,geekblue:x,purple:k,magenta:T,grey:R},L=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];L.primary=L[5];var O=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];O.primary=O[5];var D=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];D.primary=D[5];var H=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];H.primary=H[5];var I=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];I.primary=I[5];var P=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];P.primary=P[5];var N=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];N.primary=N[5];var F=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];F.primary=F[5];var z=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];z.primary=z[5];var j=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];j.primary=j[5];var Y=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Y.primary=Y[5];var $=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];$.primary=$[5];var B=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];B.primary=B[5]},45766:function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,o){return t?i(n)[0]:o?i(n)[1]:i(n)[2]}function o(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function r(e,t,r,s){var a=e+" ";return 1===e?a+n(0,t,r[0],s):t?a+(o(e)?i(r)[1]:i(r)[0]):s?a+i(r)[1]:a+(o(e)?i(r)[1]:i(r)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,o){return t?"kelios sekundės":o?"kelių sekundžių":"kelias sekundes"},ss:r,m:n,mm:r,h:n,hh:r,d:n,dd:r,M:n,MM:r,y:n,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(95093))},45876:(e,t,n)=>{"use strict";var o=n(46518),i=n(53838);o({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSubsetOf",(function(e){return e}))},{isSubsetOf:i})},46518:(e,t,n)=>{"use strict";var o=n(44576),i=n(77347).f,r=n(66699),s=n(36840),a=n(39433),l=n(77740),c=n(92796);e.exports=function(e,t){var n,d,u,h,m,p=e.target,f=e.global,g=e.stat;if(n=f?o:g?o[p]||a(p,{}):o[p]&&o[p].prototype)for(d in t){if(h=t[d],u=e.dontCallGetSet?(m=i(n,d))&&m.value:n[d],!c(f?d:p+(g?".":"#")+d,e.forced)&&void 0!==u){if(typeof h==typeof u)continue;l(h,u)}(e.sham||u&&u.sham)&&r(h,"sham",!0),s(n,d,h,e)}}},46637:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var i=e+" ";switch(n){case"s":return t||o?"nekaj sekund":"nekaj sekundami";case"ss":return i+(1===e?t?"sekundo":"sekundi":2===e?t||o?"sekundi":"sekundah":e<5?t||o?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return i+(1===e?t?"minuta":"minuto":2===e?t||o?"minuti":"minutama":e<5?t||o?"minute":"minutami":t||o?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return i+(1===e?t?"ura":"uro":2===e?t||o?"uri":"urama":e<5?t||o?"ure":"urami":t||o?"ur":"urami");case"d":return t||o?"en dan":"enim dnem";case"dd":return i+(1===e?t||o?"dan":"dnem":2===e?t||o?"dni":"dnevoma":t||o?"dni":"dnevi");case"M":return t||o?"en mesec":"enim mesecem";case"MM":return i+(1===e?t||o?"mesec":"mesecem":2===e?t||o?"meseca":"mesecema":e<5?t||o?"mesece":"meseci":t||o?"mesecev":"meseci");case"y":return t||o?"eno leto":"enim letom";case"yy":return i+(1===e?t||o?"leto":"letom":2===e?t||o?"leti":"letoma":e<5?t||o?"leta":"leti":t||o?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},46706:(e,t,n)=>{"use strict";var o=n(79504),i=n(79306);e.exports=function(e,t,n){try{return o(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},46942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},47055:(e,t,n)=>{"use strict";var o=n(79504),i=n(79039),r=n(22195),s=Object,a=o("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===r(e)?a(e,""):s(e)}:s},47400:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var o=n(31601),i=n.n(o),r=n(76314),s=n.n(r),a=n(4417),l=n.n(a),c=new URL(n(87026),n.b),d=new URL(n(12608),n.b),u=new URL(n(40500),n.b),h=new URL(n(87698),n.b),m=s()(i()),p=l()(c),f=l()(d),g=l()(u),b=l()(h);m.push([e.id,`@charset "UTF-8";\n /*!\n * Copyright (c) HANDSONCODE sp. z o. o.\n *\n * HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in\n * Gdynia, Poland, at Aleja Zwyciestwa 96-98, registered by the District Court in Gdansk under number\n * 538651, EU tax ID number: PL5862294002, share capital: PLN 62,800.00.\n *\n * This software is protected by applicable copyright laws, including international treaties, and dual-\n * licensed - depending on whether your use for commercial purposes, meaning intended for or\n * resulting in commercial advantage or monetary compensation, or not.\n *\n * If your use is strictly personal or solely for evaluation purposes, meaning for the purposes of testing\n * the suitability, performance, and usefulness of this software outside the production environment,\n * you agree to be bound by the terms included in the "handsontable-non-commercial-license.pdf" file.\n *\n * Your use of this software for commercial purposes is subject to the terms included in an applicable\n * license agreement.\n *\n * In any case, you must not make any such use of this software as to develop software which may be\n * considered competitive with this software.\n *\n * UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"\n * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO\n * LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,\n * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM\n * USE OR INABILITY TO USE THIS SOFTWARE.\n *\n * Version: 15.3.0\n * Release date: 29/04/2025 (built at 24/04/2025 10:59:25)\n */.handsontable .table td,.handsontable .table th{border-top:none}.handsontable tr{background:#fff}.handsontable td{background-color:inherit}.handsontable .table caption+thead tr:first-child td,.handsontable .table caption+thead tr:first-child th,.handsontable .table colgroup+thead tr:first-child td,.handsontable .table colgroup+thead tr:first-child th,.handsontable .table thead:first-child tr:first-child td,.handsontable .table thead:first-child tr:first-child th{border-top:1px solid #ccc}.handsontable .table-bordered{border:0;border-collapse:separate}.handsontable .table-bordered td,.handsontable .table-bordered th{border-left:none}.handsontable .table-bordered td:first-child,.handsontable .table-bordered th:first-child{border-left:1px solid #ccc}.handsontable .table>tbody>tr>td,.handsontable .table>tbody>tr>th,.handsontable .table>tfoot>tr>td,.handsontable .table>tfoot>tr>th,.handsontable .table>thead>tr>td,.handsontable .table>thead>tr>th{line-height:21px;padding:0}.col-lg-1.handsontable,.col-lg-10.handsontable,.col-lg-11.handsontable,.col-lg-12.handsontable,.col-lg-2.handsontable,.col-lg-3.handsontable,.col-lg-4.handsontable,.col-lg-5.handsontable,.col-lg-6.handsontable,.col-lg-7.handsontable,.col-lg-8.handsontable,.col-lg-9.handsontable,.col-md-1.handsontable,.col-md-10.handsontable,.col-md-11.handsontable,.col-md-12.handsontable,.col-md-2.handsontable,.col-md-3.handsontable,.col-md-4.handsontable,.col-md-5.handsontable,.col-md-6.handsontable,.col-md-7.handsontable,.col-md-8.handsontable,.col-md-9.handsontable .col-sm-1.handsontable,.col-sm-10.handsontable,.col-sm-11.handsontable,.col-sm-12.handsontable,.col-sm-2.handsontable,.col-sm-3.handsontable,.col-sm-4.handsontable,.col-sm-5.handsontable,.col-sm-6.handsontable,.col-sm-7.handsontable,.col-sm-8.handsontable,.col-sm-9.handsontable .col-xs-1.handsontable,.col-xs-10.handsontable,.col-xs-11.handsontable,.col-xs-12.handsontable,.col-xs-2.handsontable,.col-xs-3.handsontable,.col-xs-4.handsontable,.col-xs-5.handsontable,.col-xs-6.handsontable,.col-xs-7.handsontable,.col-xs-8.handsontable,.col-xs-9.handsontable{padding-left:0;padding-right:0}.handsontable .table-striped>tbody>tr:nth-of-type(2n){background-color:#fff}.handsontable .hide{display:none}.handsontable .relative{position:relative}.handsontable .wtHider{position:relative;width:0}.handsontable .wtSpreader{height:auto;position:relative;width:0}.handsontable div,.handsontable input,.handsontable table,.handsontable tbody,.handsontable td,.handsontable textarea,.handsontable th,.handsontable thead{box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.handsontable input,.handsontable textarea{min-height:auto}.handsontable table.htCore{border-collapse:separate;border-spacing:0;border-width:0;cursor:default;margin:0;max-height:none;max-width:none;outline-width:0;table-layout:fixed;width:0}.handsontable col,.handsontable col.rowHeader{width:50px}.handsontable td,.handsontable th{background-color:#fff;border-bottom:1px solid #ccc;border-left-width:0;border-right:1px solid #ccc;border-top-width:0;empty-cells:show;height:22px;line-height:21px;outline:none;outline-width:0;overflow:hidden;padding:0 4px;vertical-align:top;white-space:pre-wrap}[dir=rtl].handsontable td,[dir=rtl].handsontable th{border-left:1px solid #ccc;border-right-width:0}.handsontable th:last-child{border-bottom:1px solid #ccc;border-left:none;border-right:1px solid #ccc}[dir=rtl].handsontable th:last-child{border-left:1px solid #ccc;border-right:none}.handsontable td:first-of-type,.handsontable th:first-child{border-left:1px solid #ccc}[dir=rtl].handsontable td:first-of-type,[dir=rtl].handsontable th:first-child{border-right:1px solid #ccc}.handsontable .ht_clone_top th:nth-child(2){border-left-width:0;border-right:1px solid #ccc}[dir=rtl].handsontable .ht_clone_top th:nth-child(2){border-left:1px solid #ccc;border-right-width:0}.handsontable.htRowHeaders thead tr th:nth-child(2){border-left:1px solid #ccc}[dir=rtl].handsontable.htRowHeaders thead tr th:nth-child(2){border-right:1px solid #ccc}.handsontable tr:first-child td,.handsontable tr:first-child th{border-top:1px solid #ccc}.ht_master:not(.innerBorderInlineStart):not(.emptyColumns) tbody tr th,.ht_master:not(.innerBorderInlineStart):not(.emptyColumns) thead tr th:first-child,.ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.htGhostTable) tbody tr th,.ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.ht_clone_top):not(.htGhostTable) thead tr th:first-child{border-left:1px solid #ccc;border-right-width:0}[dir=rtl].ht_master:not(.innerBorderInlineStart):not(.emptyColumns) tbody tr th,[dir=rtl].ht_master:not(.innerBorderInlineStart):not(.emptyColumns) thead tr th:first-child,[dir=rtl].ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.htGhostTable) tbody tr th,[dir=rtl].ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.ht_clone_top):not(.htGhostTable) thead tr th:first-child{border-left-width:0;border-right:1px solid #ccc}.ht_master:not(.innerBorderTop):not(.innerBorderBottom) thead tr.lastChild th,.ht_master:not(.innerBorderTop):not(.innerBorderBottom) thead tr:last-child th,.ht_master:not(.innerBorderTop):not(.innerBorderBottom)~.handsontable thead tr.lastChild th,.ht_master:not(.innerBorderTop):not(.innerBorderBottom)~.handsontable thead tr:last-child th{border-bottom-width:0}.handsontable th{background-color:#f0f0f0;color:#222;font-weight:400;text-align:center;white-space:nowrap}.handsontable thead th{padding:0}.handsontable th.active{background-color:#ccc}.handsontable thead th .relative{padding:2px 4px}.handsontable span.colHeader{display:inline-block;line-height:1.1}.handsontable .wtBorder{font-size:0;position:absolute}.handsontable .wtBorder.hidden{display:none!important}.handsontable .wtBorder.current{z-index:10}.handsontable .wtBorder.area{z-index:8}.handsontable .wtBorder.fill{z-index:6}.handsontable .wtBorder.corner{cursor:crosshair;font-size:0}.ht_clone_master{z-index:100}.ht_clone_inline_start{z-index:120}.ht_clone_bottom{z-index:130}.ht_clone_bottom_inline_start_corner{z-index:150}.ht_clone_top{z-index:160}.ht_clone_top_inline_start_corner{z-index:180}.handsontable col.hidden{width:0!important}.handsontable tr.hidden,.handsontable tr.hidden td,.handsontable tr.hidden th{display:none}.ht_clone_bottom,.ht_clone_inline_start,.ht_clone_top,.ht_master{overflow:hidden}.ht_master .wtHolder{overflow:auto}.handsontable .ht_clone_inline_start table.htCore>thead,.handsontable .ht_master table.htCore>tbody>tr>th,.handsontable .ht_master table.htCore>thead{visibility:hidden}.ht_clone_bottom .wtHolder,.ht_clone_inline_start .wtHolder,.ht_clone_top .wtHolder{overflow:hidden}.handsontable{color:#373737;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Arial,sans-serif;font-size:13px;font-weight:400;position:relative;touch-action:manipulation}.handsontable a{color:#104acc}.handsontable.htAutoSize{left:-99000px;position:absolute;top:-99000px;visibility:hidden}.handsontable td.htInvalid{background-color:#ffbeba!important}.handsontable td.htNoWrap{white-space:nowrap}.handsontable td.invisibleSelection,.handsontable th.invisibleSelection{outline:none}.handsontable td.invisibleSelection::selection,.handsontable th.invisibleSelection::selection{background:hsla(0,0%,100%,0)}.hot-display-license-info{color:#373737;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Arial,sans-serif;font-size:10px;font-weight:400;padding:5px 0 3px;text-align:left}.hot-display-license-info a{color:#104acc;font-size:10px}.handsontable .htFocusCatcher{border:0;height:0;margin:0;opacity:0;padding:0;position:absolute;width:0;z-index:-1}.handsontable .manualColumnResizer{cursor:col-resize;height:25px;position:absolute;top:0;width:5px;z-index:210}.handsontable .manualRowResizer{cursor:row-resize;height:5px;left:0;position:absolute;width:50px;z-index:210}.handsontable .manualColumnResizer.active,.handsontable .manualColumnResizer:hover,.handsontable .manualRowResizer.active,.handsontable .manualRowResizer:hover{background-color:#34a9db}.handsontable .manualColumnResizerGuide{background-color:#34a9db;border-left:none;border-right:1px dashed #777;display:none;margin-left:5px;margin-right:unset;position:absolute;right:unset;top:0;width:0}[dir=rtl].handsontable .manualColumnResizerGuide{border-left:1px dashed #777;border-right:none;left:unset;margin-left:unset;margin-right:5px}.handsontable .manualRowResizerGuide{background-color:#34a9db;border-bottom:1px dashed #777;bottom:0;display:none;height:0;left:0;margin-top:5px;position:absolute}.handsontable .manualColumnResizerGuide.active,.handsontable .manualRowResizerGuide.active{display:block;z-index:209}.handsontable td.area,.handsontable td.area-1,.handsontable td.area-2,.handsontable td.area-3,.handsontable td.area-4,.handsontable td.area-5,.handsontable td.area-6,.handsontable td.area-7{position:relative}.handsontable td.area-1:before,.handsontable td.area-2:before,.handsontable td.area-3:before,.handsontable td.area-4:before,.handsontable td.area-5:before,.handsontable td.area-6:before,.handsontable td.area-7:before,.handsontable td.area:before{background:#005eff;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.handsontable td.area:before{opacity:.1}.handsontable td.area-1:before{opacity:.2}.handsontable td.area-2:before{opacity:.27}.handsontable td.area-3:before{opacity:.35}.handsontable td.area-4:before{opacity:.41}.handsontable td.area-5:before{opacity:.47}.handsontable td.area-6:before{opacity:.54}.handsontable td.area-7:before{opacity:.58}.handsontable tbody th.current,.handsontable thead th.current{box-shadow:inset 0 0 0 2px #4b89ff}.handsontable tbody th.ht__highlight,.handsontable thead th.ht__highlight{background-color:#dcdcdc}.handsontable tbody th.ht__active_highlight,.handsontable thead th.ht__active_highlight{background-color:#8eb0e7;color:#000}.handsontableInput{background-color:#fff;border:none;border-radius:0;box-shadow:inset 0 0 0 2px #5292f7;box-sizing:border-box!important;color:#000;display:block;font-family:inherit;font-size:inherit;line-height:21px;margin:0;outline-width:0;padding:1px 5px 0;resize:none}.handsontableInput:focus{outline:none}.handsontableInputHolder{left:0;position:absolute;top:0}.htSelectEditor{position:absolute;select{-webkit-appearance:menulist-button!important;border:2px solid #4b89ff;box-sizing:border-box!important;height:100%;width:100%}}.htSelectEditor select:focus{outline:none}.htSelectEditor .htAutocompleteArrow{display:none}.handsontable .htDimmed{color:#777}.handsontable .htSubmenu{position:relative}.handsontable .htSubmenu :after{color:#777;content:"▶";font-size:9px;position:absolute;right:5px}[dir=rtl].handsontable .htSubmenu :after{content:""}[dir=rtl].handsontable .htSubmenu :before{color:#777;content:"◀";font-size:9px;left:5px;position:absolute}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htPlaceholder{color:#999}.handsontable.listbox{margin:0}.handsontable.listbox .ht_master table{background:#fff;border:1px solid #ccc;border-collapse:separate}.handsontable.listbox td,.handsontable.listbox th,.handsontable.listbox tr:first-child td,.handsontable.listbox tr:first-child th,.handsontable.listbox tr:last-child th{border-color:transparent!important}.handsontable.listbox td,.handsontable.listbox th{text-overflow:ellipsis;white-space:nowrap}.handsontable.listbox td.htDimmed{color:inherit;cursor:default;font-style:inherit}.handsontable.listbox .wtBorder{visibility:hidden}.handsontable.listbox tr td.current,.handsontable.listbox tr:hover td{background:#eee}.ht_editor_hidden{z-index:-1}.ht_editor_visible{z-index:200}.handsontable td.htSearchResult{background:#fcedd9;color:#583707}.handsontable.mobile,.handsontable.mobile .wtHolder{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-overflow-scrolling:touch}.handsontable.mobile .handsontableInput:focus{-webkit-appearance:none;-webkit-box-shadow:inset 0 0 0 2px #5292f7;-moz-box-shadow:inset 0 0 0 2px #5292f7;box-shadow:inset 0 0 0 2px #5292f7}.handsontable .bottomSelectionHandle,.handsontable .bottomSelectionHandle-HitArea,.handsontable .topSelectionHandle,.handsontable .topSelectionHandle-HitArea{left:-10000px;right:unset;top:-10000px;z-index:9999}[dir=rtl].handsontable .bottomSelectionHandle,[dir=rtl].handsontable .bottomSelectionHandle-HitArea,[dir=rtl].handsontable .topSelectionHandle,[dir=rtl].handsontable .topSelectionHandle-HitArea{left:unset;right:-10000px}.handsontable.hide-tween{-webkit-animation:opacity-hide .3s;animation:opacity-hide .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.handsontable.show-tween{-webkit-animation:opacity-show .3s;animation:opacity-show .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.handsontable .htAutocompleteArrow{color:#bbb;cursor:default;float:right;font-size:10px;text-align:center;width:16px}[dir=rtl].handsontable .htAutocompleteArrow{float:left}.handsontable td.htInvalid .htAutocompleteArrow{color:#555}.handsontable td.htInvalid .htAutocompleteArrow:hover{color:#1a1a1a}.handsontable td .htAutocompleteArrow:hover{color:#777}.handsontable td.area .htAutocompleteArrow{color:#d3d3d3}.handsontable .htCheckboxRendererInput.noValue{opacity:.5}.handsontable .htCheckboxRendererLabel{cursor:pointer;display:inline-block;font-size:inherit;vertical-align:middle}.handsontable .htCheckboxRendererLabel.fullWidth{width:100%}.handsontable .collapsibleIndicator{background:#eee;border:1px solid #a6a6a6;border-radius:10px;-webkit-box-shadow:0 0 0 6px #eee;-moz-box-shadow:0 0 0 6px #eee;box-shadow:0 0 0 3px #eee;color:#222;cursor:pointer;font-size:10px;height:10px;left:unset;line-height:8px;position:absolute;right:5px;text-align:center;top:50%;transform:translateY(-50%);width:10px}[dir=rtl].handsontable .collapsibleIndicator{left:5px;right:unset}.handsontable[dir=ltr] thead th:has(.collapsibleIndicator) div.htRight span.colHeader{margin-right:20px}.handsontable[dir=rtl] thead th:has(.collapsibleIndicator) div.htLeft span.colHeader{margin-left:20px}.handsontable .columnSorting{position:relative}.handsontable[dir=ltr] div.htRight span[class*=ascending],.handsontable[dir=ltr] div.htRight span[class*=descending]{margin-left:-10px;margin-right:10px}.handsontable[dir=rtl] div.htLeft span[class*=ascending],.handsontable[dir=rtl] div.htLeft span[class*=descending]{margin-left:10px;margin-right:-10px}.handsontable[dir=ltr] div.htRight span[class*=ascending]:only-child,.handsontable[dir=ltr] div.htRight span[class*=descending]:only-child{margin-left:-15px;margin-right:15px}.handsontable[dir=rtl] div.htLeft span[class*=ascending]:only-child,.handsontable[dir=rtl] div.htLeft span[class*=descending]:only-child{margin-left:15px;margin-right:-15px}.handsontable .columnSorting.sortAction:hover{cursor:pointer;text-decoration:underline}.handsontable span.colHeader.columnSorting:before{background-position-x:right;background-repeat:no-repeat;background-size:contain;content:"";height:10px;left:unset;margin-top:-6px;padding-left:8px;padding-right:0;position:absolute;right:-9px;top:50%;width:5px}[dir=rtl].handsontable span.colHeader.columnSorting:before{background-position-x:left;left:-9px;padding-left:0;padding-right:8px;right:unset}.handsontable span.colHeader.columnSorting.ascending:before{background-image:url(${p})}.handsontable span.colHeader.columnSorting.descending:before{background-image:url(${f})}.htGhostTable .htCore span.colHeader.columnSorting:not(.indicatorDisabled):before{content:"*";display:inline-block;padding-right:20px;position:relative}.handsontable.htGhostTable table thead th{border-bottom-width:0}.handsontable.htGhostTable table tbody tr td,.handsontable.htGhostTable table tbody tr th{border-top-width:0}.handsontable .htCommentCell{position:relative}.handsontable .htCommentCell:after{border-left:6px solid transparent;border-right:none;border-top:6px solid #000;content:"";left:unset;position:absolute;right:0;top:0}[dir=rtl].handsontable .htCommentCell:after{border-left:none;border-right:6px solid transparent;left:0;right:unset}.htCommentsContainer .htComments{display:none;position:absolute;z-index:1059}.htCommentsContainer .htCommentTextArea{-webkit-appearance:none;background-color:#fff;border:none;border-left:3px solid #ccc;box-shadow:0 1px 3px rgba(0,0,0,.118),0 1px 2px rgba(0,0,0,.239);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-size:12px;height:90px;outline:0!important;padding:5px;width:215px}[dir=rtl].htCommentsContainer .htCommentTextArea{border-left:none;border-right:3px solid #ccc}.htCommentsContainer .htCommentTextArea:focus{border-left:3px solid #5292f7;border-right:none;box-shadow:0 1px 3px rgba(0,0,0,.118),0 1px 2px rgba(0,0,0,.239),inset 0 0 0 1px #5292f7}[dir=rtl].htCommentsContainer .htCommentTextArea:focus{border-left:none;border-right:3px solid #5292f7}\n/*!\n * Handsontable ContextMenu\n */.htContextMenu:not(.htGhostTable){display:none;position:absolute;z-index:1060}.htContextMenu .ht_clone_bottom,.htContextMenu .ht_clone_bottom_inline_start_corner,.htContextMenu .ht_clone_inline_start,.htContextMenu .ht_clone_top,.htContextMenu .ht_clone_top_inline_start_corner{display:none}.htContextMenu .ht_master table.htCore{border-color:#ccc;border-style:solid;border-width:1px 2px 2px 1px}[dir=rtl].htContextMenu .ht_master table.htCore{border-left-width:2px;border-right-width:1px}.htContextMenu.handsontable:focus{outline:none}.htContextMenu .wtBorder{visibility:hidden}.htContextMenu table tbody tr td{background:#fff;border-width:0;cursor:pointer;overflow:hidden;padding:4px 6px 0;text-overflow:ellipsis;white-space:nowrap}.htContextMenu table tbody tr td:first-child{border-width:0}[dir=rtl].htContextMenu table tbody tr td:first-child{border-left-width:0;border-right-width:0}.htContextMenu table tbody tr td.htDimmed{color:#323232;font-style:normal}.htContextMenu table tbody tr td.current{background:#f3f3f3}.htContextMenu table tbody tr td.htSeparator{border-top:1px solid #e6e6e6;cursor:default;height:0;padding:0}.htContextMenu table tbody tr td.htDisabled{color:#999;cursor:default}.htContextMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htContextMenu table tbody tr.htHidden{display:none}.htContextMenu table tbody tr td .htItemWrapper{margin-left:10px;margin-right:6px}[dir=rtl].htContextMenu table tbody tr td .htItemWrapper{margin-left:6px;margin-right:10px}.htContextMenu table tbody tr td div span.selected{left:4px;margin-top:-2px;position:absolute;right:0}[dir=rtl].htContextMenu table tbody tr td div span.selected{left:0;right:4px}.htContextMenu .ht_master .wtHolder{overflow:hidden}textarea.HandsontableCopyPaste{opacity:0;outline:0 none!important;overflow:hidden;position:fixed!important;right:100%!important;top:0!important}\n\n/*!\n * Handsontable DropdownMenu\n */.handsontable .changeType{background:#eee;border:1px solid #bbb;border-radius:2px;color:#bbb;float:right;font-size:9px;line-height:9px;margin:3px 1px 0 5px;padding:2px}[dir=rtl].handsontable .changeType{float:left}.handsontable[dir=rtl] .changeType{margin:3px 5px 0 1px}.handsontable .changeType:before{content:"▼ "}.handsontable .changeType:hover{border:1px solid #777;color:#777;cursor:pointer}.htDropdownMenu:not(.htGhostTable){display:none;position:absolute;z-index:1060}.htDropdownMenu .ht_clone_bottom,.htDropdownMenu .ht_clone_bottom_inline_start_corner,.htDropdownMenu .ht_clone_inline_start,.htDropdownMenu .ht_clone_top,.htDropdownMenu .ht_clone_top_inline_start_corner{display:none}.htDropdownMenu table.htCore{border-color:#ccc;border-style:solid;border-width:1px 2px 2px 1px}[dir=rtl].htDropdownMenu table.htCore{border-left-width:2px;border-right-width:1px}.htDropdownMenu.handsontable:focus{outline:none}.htDropdownMenu .wtBorder{visibility:hidden}.htDropdownMenu table tbody tr td{background:#fff;border-width:0;cursor:pointer;overflow:hidden;padding:4px 6px 0;text-overflow:ellipsis;white-space:nowrap}.htDropdownMenu table tbody tr td:first-child{border-width:0}[dir=rtl].htDropdownMenu table tbody tr td:first-child{border-left-width:0;border-right-width:0}.htDropdownMenu table tbody tr td.htDimmed{color:#323232;font-style:normal}.htDropdownMenu table tbody tr td.current{background:#e9e9e9}.htDropdownMenu table tbody tr td.htSeparator{border-top:1px solid #e6e6e6;cursor:default;height:0;padding:0}.htDropdownMenu table tbody tr td.htDisabled{color:#999}.htDropdownMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htDropdownMenu:not(.htGhostTable) table tbody tr.htHidden{display:none}.htDropdownMenu table tbody tr td .htItemWrapper,[dir=rtl].htDropdownMenu table tbody tr td .htItemWrapper{margin-left:10px;margin-right:10px}.htDropdownMenu table tbody tr td div span.selected{left:4px;margin-top:-2px;position:absolute;right:0}[dir=rtl].htDropdownMenu table tbody tr td div span.selected{left:0;right:4px}.htDropdownMenu .ht_master .wtHolder{overflow:hidden}\n\n/*!\n * Handsontable Filters\n */.htFiltersConditionsMenu:not(.htGhostTable){display:none;position:absolute;z-index:1070}.htFiltersConditionsMenu .ht_clone_bottom,.htFiltersConditionsMenu .ht_clone_bottom_inline_start_corner,.htFiltersConditionsMenu .ht_clone_inline_start,.htFiltersConditionsMenu .ht_clone_top,.htFiltersConditionsMenu .ht_clone_top_inline_start_corner{display:none}.htFiltersConditionsMenu table.htCore{border-color:#bbb;border-style:solid;border-width:1px 2px 2px 1px}.htFiltersConditionsMenu .wtBorder{visibility:hidden}.htFiltersConditionsMenu table tbody tr td{background:#fff;border-width:0;cursor:pointer;overflow:hidden;padding:4px 6px 0;text-overflow:ellipsis;white-space:nowrap}.htFiltersConditionsMenu table tbody tr td:first-child{border-width:0}[dir=rtl].htFiltersConditionsMenu table tbody tr td:first-child{border-left-width:0;border-right-width:0}.htFiltersConditionsMenu table tbody tr td.htDimmed{color:#323232;font-style:normal}.htFiltersConditionsMenu table tbody tr td.current{background:#e9e9e9}.htFiltersConditionsMenu table tbody tr td.htSeparator{border-top:1px solid #e6e6e6;height:0;padding:0}.htFiltersConditionsMenu table tbody tr td.htDisabled{color:#999}.htFiltersConditionsMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htFiltersConditionsMenu table tbody tr td .htItemWrapper{margin-left:10px;margin-right:10px}.htFiltersConditionsMenu table tbody tr td div span.selected{left:4px;margin-top:-2px;position:absolute}.htFiltersConditionsMenu .ht_master .wtHolder{overflow:hidden}.handsontable .htMenuFiltering{border-bottom:1px dotted #ccc;height:135px;overflow:hidden}.handsontable .ht_master table td.htCustomMenuRenderer{background-color:#fff;cursor:auto}.handsontable .htFiltersMenuLabel{font-size:.75em}.handsontable .htFiltersMenuActionBar{padding-bottom:3px;padding-top:10px;text-align:center}.handsontable .htFiltersMenuCondition.border{border-bottom:1px dotted #ccc!important}.handsontable .htFiltersMenuCondition .htUIInput{padding:0 0 5px}.handsontable .htFiltersMenuValue{border-bottom:1px dotted #ccc!important}.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch{padding:0}.handsontable .htFiltersMenuCondition .htUIInput input,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input{box-sizing:border-box;font-family:inherit;font-size:.75em;padding:4px;width:100%}.htUIMultipleSelect .ht_master .wtHolder{overflow:auto}.handsontable .htFiltersActive .changeType{background-color:#d2e0d9;border:1px solid #509272;color:#18804e}.handsontable .htUISelectAll{margin-left:0;margin-right:10px}[dir=rtl].handsontable .htUISelectAll{margin-left:10px;margin-right:0}.handsontable .htUIClearAll,.handsontable .htUISelectAll{display:inline-block}.handsontable .htUIClearAll a,.handsontable .htUISelectAll a{font-size:.75em}.handsontable .htUISelectionControls{text-align:right}[dir=rtl].handsontable .htUISelectionControls{text-align:left}.handsontable .htCheckboxRendererInput{display:inline-block;height:1em;margin:0 5px 0 0;vertical-align:middle}[dir=rtl].handsontable .htCheckboxRendererInput{margin-left:5px;margin-right:0}.handsontable .htUIInput{padding:3px 0 7px;position:relative;text-align:center}.handsontable .htUIInput input{border:1px solid #d2d1d1;border-radius:2px}.handsontable .htUIInputIcon{position:absolute}.handsontable .htUIInput.htUIButton{cursor:pointer;display:inline-block}.handsontable .htUIInput.htUIButton input{background-color:#eee;color:#000;cursor:pointer;font-family:inherit;font-size:.75em;font-weight:700;height:19px;min-width:64px}.handsontable .htUIInput.htUIButton input:hover{border-color:#b9b9b9}.handsontable .htUIInput.htUIButtonOK{margin-left:0;margin-right:10px}[dir=rtl].handsontable .htUIInput.htUIButtonOK{margin-left:10px;margin-right:0}.handsontable .htUIInput.htUIButtonOK input{background-color:#0f9d58;border-color:#18804e;color:#fff}.handsontable .htUIInput.htUIButtonOK input:focus-visible{background-color:#92dd8d;border-color:#7cb878;color:#000}.handsontable .htUIInput.htUIButtonOK input:hover{border-color:#1a6f46}.handsontable .htUISelect{cursor:pointer;margin-bottom:7px;position:relative}.handsontable .htUISelectCaption{background-color:#e8e8e8;border:1px solid #d2d1d1;border-radius:2px;font-family:inherit;font-size:.75em;font-weight:700;overflow:hidden;padding:3px 20px 3px 10px;text-overflow:ellipsis;white-space:nowrap}.handsontable .htUISelectCaption:hover{background-color:#e8e8e8;border:1px solid #b9b9b9}.handsontable .htUISelectDropdown:after{content:"▲";font-size:7px;position:absolute;right:10px;top:0}.handsontable .htUISelectDropdown:before{content:"▼";font-size:7px;position:absolute;right:10px;top:8px}.handsontable .htUIMultipleSelect .handsontable .htCore{border:none}.handsontable .htUIMultipleSelect .handsontable .htCore td:hover{background-color:#f5f5f5}.handsontable .htUIMultipleSelectSearch input{border:1px solid #d2d1d1;border-radius:2px;padding:3px}.handsontable .htUIRadio{display:inline-block;height:100%;margin-left:0;margin-right:5px}[dir=rtl].handsontable .htUIRadio{margin-left:5px;margin-right:0}.handsontable .htUIRadio:last-child{margin-right:0}.handsontable .htUIRadio>input[type=radio]{margin-left:0;margin-right:.5ex}[dir=rtl].handsontable .htUIRadio>input[type=radio]{margin-left:.5ex;margin-right:0}.handsontable .htUIRadio label{vertical-align:middle}.handsontable .htFiltersMenuOperators{padding-bottom:5px}.handsontable th.beforeHiddenColumn{position:relative}.handsontable th.afterHiddenColumn:before,.handsontable th.beforeHiddenColumn:after{color:#bbb;font-size:5pt;position:absolute;top:50%;transform:translateY(-50%)}.handsontable th.afterHiddenColumn{position:relative}.handsontable[dir=ltr] th.afterHiddenColumn div.htLeft{margin-left:10px}.handsontable[dir=ltr] th.beforeHiddenColumn div.htRight,.handsontable[dir=rtl] th.afterHiddenColumn div.htRight{margin-right:10px}.handsontable[dir=rtl] th.beforeHiddenColumn div.htLeft{margin-left:10px}.handsontable th.beforeHiddenColumn:after{content:"◀";right:1px}[dir=rtl].handsontable th.beforeHiddenColumn:after{content:"▶";left:1px;right:auto}.handsontable th.afterHiddenColumn:before{content:"▶";left:1px}[dir=rtl].handsontable th.afterHiddenColumn:before{content:"◀";left:auto;right:1px}\n\n/*!\n * Handsontable HiddenRows\n */.handsontable th.afterHiddenRow:after,.handsontable th.beforeHiddenRow:before{color:#bbb;font-size:6pt;left:2px;line-height:6pt;position:absolute}.handsontable th.afterHiddenRow,.handsontable th.beforeHiddenRow{position:relative}.handsontable th.beforeHiddenRow:before{bottom:2px;content:"▲"}.handsontable th.afterHiddenRow:after{content:"▼";top:2px}.handsontable.ht__selection--rows tbody th.afterHiddenRow.ht__highlight:after,.handsontable.ht__selection--rows tbody th.beforeHiddenRow.ht__highlight:before{color:#eee}.handsontable td.afterHiddenRow.firstVisibleRow,.handsontable th.afterHiddenRow.firstVisibleRow{border-top:1px solid #ccc}.htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_inline_start td:first-of-type,.htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_top_inline_start_corner th:nth-child(2){border-left:0}.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualColumnMove.on-moving--columns *,.handsontable.ht__manualColumnMove.on-moving--columns thead th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualColumnMove.on-moving--columns .manualColumnResizer{display:none}.handsontable .ht__manualColumnMove--backlight,.handsontable .ht__manualColumnMove--guideline{display:none;height:100%;position:absolute}.handsontable .ht__manualColumnMove--guideline{background:#757575;margin-inline-end:0;margin-inline-start:-1px;top:0;width:2px;z-index:205}.handsontable .ht__manualColumnMove--backlight{background:#343434;background:rgba(52,52,52,.25);display:none;pointer-events:none;z-index:205}.handsontable.on-moving--columns .ht__manualColumnMove--backlight,.handsontable.on-moving--columns.show-ui .ht__manualColumnMove--guideline{display:block}.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualRowMove.on-moving--rows *,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--backlight,.handsontable .ht__manualRowMove--guideline{display:none;position:absolute;width:100%}.handsontable .ht__manualRowMove--guideline{background:#757575;height:2px;left:0;margin-top:-1px;z-index:205}.handsontable .ht__manualRowMove--backlight{background:#343434;background:rgba(52,52,52,.25);display:none;pointer-events:none;z-index:205}.handsontable.on-moving--rows .ht__manualRowMove--backlight,.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline{display:block}.handsontable tbody td[rowspan][class*=area][class*=highlight]:not([class*=fullySelectedMergedCell]):before{opacity:0}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-0]:before,.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-multiple]:before{opacity:.1}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-1]:before{opacity:.2}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-2]:before{opacity:.27}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-3]:before{opacity:.35}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-4]:before{opacity:.41}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-5]:before{opacity:.47}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-6]:before{opacity:.54}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-7]:before{opacity:.58}.handsontable[dir=ltr] div.htRight span[class*=sort-]{margin-left:-15px;margin-right:15px}.handsontable[dir=rtl] div.htLeft span[class*=sort-]{margin-left:15px;margin-right:-15px}.handsontable[dir=ltr] div.htRight span[class*=sort-]:only-child{margin-left:-20px;margin-right:20px}.handsontable[dir=rtl] div.htLeft span[class*=sort-]:only-child{margin-left:20px;margin-right:-20px}.handsontable span.colHeader.columnSorting:after{font-size:8px;height:8px;left:unset;line-height:1.1;margin-top:-2px;padding-left:5px;padding-right:unset;position:absolute;right:-15px;top:50%}[dir=rtl].handsontable span.colHeader.columnSorting:after{left:-15px;padding-left:unset;padding-right:5px;right:unset}.handsontable span.colHeader.columnSorting[class*=" sort-"]:after,.handsontable span.colHeader.columnSorting[class^=sort-]:after{content:"+"}.handsontable span.colHeader.columnSorting.sort-1:after{content:"1"}.handsontable span.colHeader.columnSorting.sort-2:after{content:"2"}.handsontable span.colHeader.columnSorting.sort-3:after{content:"3"}.handsontable span.colHeader.columnSorting.sort-4:after{content:"4"}.handsontable span.colHeader.columnSorting.sort-5:after{content:"5"}.handsontable span.colHeader.columnSorting.sort-6:after{content:"6"}.handsontable span.colHeader.columnSorting.sort-7:after{content:"7"}.htGhostTable th div button.changeType+span.colHeader.columnSorting:not(.indicatorDisabled){padding-right:5px}.handsontable thead th.hiddenHeader:not(:first-of-type){display:none}thead th.hiddenHeaderText .colHeader{opacity:0}.handsontable th.ht_nestingLevels{padding-left:7px;text-align:left}[dir=rtl].handsontable th.ht_nestingLevels{padding-right:7px;text-align:right}.handsontable th div.ht_nestingLevels{display:inline-block;left:11px;position:absolute;right:unset}[dir=rtl].handsontable th div.ht_nestingLevels{left:unset;right:11px}.handsontable.innerBorderInlineStart th div.ht_nestingLevels,.handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingLevels{left:unset;right:10px}[dir=rtl].handsontable.innerBorderInlineStart th div.ht_nestingLevels,[dir=rtl].handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingLevels{left:10px;right:unset}.handsontable th span.ht_nestingLevel{display:inline-block}.handsontable th span.ht_nestingLevel_empty{display:inline-block;float:left;height:1px;width:10px}[dir=rtl].handsontable th span.ht_nestingLevel_empty{float:right}.handsontable th span.ht_nestingLevel:after{bottom:3px;content:"┐";display:inline-block;font-size:9px;position:relative}.handsontable th div.ht_nestingButton{cursor:pointer;display:inline-block;left:unset;position:absolute;right:-2px}[dir=rtl].handsontable th div.ht_nestingButton{left:-2px;right:unset}.handsontable th div.ht_nestingButton.ht_nestingExpand:after{content:"+"}.handsontable th div.ht_nestingButton.ht_nestingCollapse:after{content:"-"}.handsontable.innerBorderInlineStart th div.ht_nestingButton,.handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingButton{left:unset;right:0}[dir=rtl].handsontable.innerBorderInlineStart th div.ht_nestingButton,[dir=rtl].handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingButton{left:0;right:unset}\n\n/*!\n * Pikaday\n * Copyright © 2014 David Bushell | BSD & MIT license | https://dbushell.com/\n */.pika-single{background:#fff;border:1px solid;border-color:#ccc #ccc #bbb;color:#333;display:block;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;position:relative;z-index:9999}.pika-single:after,.pika-single:before{content:" ";display:table}.pika-single:after{clear:both}.pika-single.is-hidden{display:none}.pika-single.is-bound{box-shadow:0 5px 15px -5px rgba(0,0,0,.5);position:absolute}.pika-lendar{float:left;margin:8px;width:240px}.pika-title{position:relative;text-align:center}.pika-label{background-color:#fff;display:inline-block;font-size:14px;font-weight:700;line-height:20px;margin:0;overflow:hidden;padding:5px 3px;position:relative;z-index:9999}.pika-title select{cursor:pointer;left:0;margin:0;opacity:0;position:absolute;top:5px;z-index:9998}.pika-next,.pika-prev{background-color:transparent;background-position:50%;background-repeat:no-repeat;background-size:75% 75%;border:0;cursor:pointer;display:block;height:30px;opacity:.5;outline:none;overflow:hidden;padding:0;position:relative;text-indent:20px;white-space:nowrap;width:20px}.pika-next:hover,.pika-prev:hover{opacity:1}.is-rtl .pika-next,.pika-prev{background-image:url(${g});float:left}.is-rtl .pika-prev,.pika-next{background-image:url(${b});float:right}.pika-next.is-disabled,.pika-prev.is-disabled{cursor:default;opacity:.2}.pika-select{display:inline-block}.pika-table{border:0;border-collapse:collapse;border-spacing:0;width:100%}.pika-table td,.pika-table th{padding:0;width:14.285714285714286%}.pika-table th{color:#999;font-weight:700;line-height:25px}.pika-button,.pika-table th{font-size:12px;text-align:center}.pika-button{background:#f5f5f5;border:0;box-sizing:border-box;-moz-box-sizing:border-box;color:#666;cursor:pointer;display:block;height:auto;line-height:15px;margin:0;outline:none;padding:5px;width:100%}.pika-week{color:#999;font-size:11px}.is-today .pika-button{color:#3af;font-weight:700}.has-event .pika-button,.is-selected .pika-button{background:#3af;border-radius:3px;box-shadow:inset 0 1px 3px #178fe5;color:#fff;font-weight:700}.has-event .pika-button{background:#005da9;box-shadow:inset 0 1px 3px #0076c9}.is-disabled .pika-button,.is-inrange .pika-button{background:#d5e9f7}.is-startrange .pika-button{background:#6cb31d;border-radius:3px;box-shadow:none;color:#fff}.is-endrange .pika-button{background:#3af;border-radius:3px;box-shadow:none;color:#fff}.is-disabled .pika-button{color:#999;cursor:default;opacity:.3;pointer-events:none}.is-outside-current-month .pika-button{color:#999;opacity:.3}.is-selection-disabled{cursor:default;pointer-events:none}.pika-button:hover,.pika-row.pick-whole-week:hover .pika-button{background:#ff8000;border-radius:3px;box-shadow:none;color:#fff}.pika-table abbr{border-bottom:none;cursor:help}`,""]);const v=m},47510:(e,t,n)=>{"use strict";n.d(t,{K:()=>$e});var o=n(58168),i=n(98587),r=n(96540),s=n(34164),a=n(21362),l=n(82777),c=n(26739),d=n(39241),u=n(20439),h=n(85078),m=n(39407),p=n(1321),f=n(49565),g=n(96148),b=n(1908);function v(e){return(0,b.Ay)("MuiAlert",e)}const y=(0,g.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var w=n(37768),C=n(9792),_=n(74848);const S=(0,C.A)((0,_.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),M=(0,C.A)((0,_.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),E=(0,C.A)((0,_.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),x=(0,C.A)((0,_.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var k=n(37523);const T=(0,c.Ay)(f.A,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,m.A)(n.color||n.severity)}`]]}})((0,d.A)((({theme:e})=>{const t="light"===e.palette.mode?l.e$:l.a,n="light"===e.palette.mode?l.a:l.e$;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((0,p.A)(["light"])).map((([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${y.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}}))),...Object.entries(e.palette).filter((0,p.A)(["light"])).map((([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${y.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}}))),...Object.entries(e.palette).filter((0,p.A)(["dark"])).map((([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}})))]}}))),R=(0,c.Ay)("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),A=(0,c.Ay)("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),L=(0,c.Ay)("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),O={success:(0,_.jsx)(S,{fontSize:"inherit"}),warning:(0,_.jsx)(M,{fontSize:"inherit"}),error:(0,_.jsx)(E,{fontSize:"inherit"}),info:(0,_.jsx)(x,{fontSize:"inherit"})},D=r.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiAlert"}),{action:o,children:i,className:r,closeText:l="Close",color:c,components:d={},componentsProps:p={},icon:f,iconMapping:g=O,onClose:b,role:y="alert",severity:C="success",slotProps:S={},slots:M={},variant:E="standard",...x}=n,D={...n,color:c,severity:C,variant:E,colorSeverity:c||C},H=(e=>{const{variant:t,color:n,severity:o,classes:i}=e,r={root:["root",`color${(0,m.A)(n||o)}`,`${t}${(0,m.A)(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,a.A)(r,v,i)})(D),I={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...M},slotProps:{...p,...S}},[P,N]=(0,h.A)("root",{ref:t,shouldForwardComponentProp:!0,className:(0,s.A)(H.root,r),elementType:T,externalForwardedProps:{...I,...x},ownerState:D,additionalProps:{role:y,elevation:0}}),[F,z]=(0,h.A)("icon",{className:H.icon,elementType:R,externalForwardedProps:I,ownerState:D}),[j,Y]=(0,h.A)("message",{className:H.message,elementType:A,externalForwardedProps:I,ownerState:D}),[$,B]=(0,h.A)("action",{className:H.action,elementType:L,externalForwardedProps:I,ownerState:D}),[W,V]=(0,h.A)("closeButton",{elementType:w.A,externalForwardedProps:I,ownerState:D}),[U,G]=(0,h.A)("closeIcon",{elementType:k.A,externalForwardedProps:I,ownerState:D});return(0,_.jsxs)(P,{...N,children:[!1!==f?(0,_.jsx)(F,{...z,children:f||g[C]||O[C]}):null,(0,_.jsx)(j,{...Y,children:i}),null!=o?(0,_.jsx)($,{...B,children:o}):null,null==o&&b?(0,_.jsx)($,{...B,children:(0,_.jsx)(W,{size:"small","aria-label":l,title:l,color:"inherit",onClick:b,...V,children:(0,_.jsx)(U,{fontSize:"small",...G})})}):null]})}));var H=n(35124),I=n(53948);function P(e){return(0,b.Ay)("MuiRichTreeView",e)}(0,g.A)("MuiRichTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox","itemLabelInput"]);var N=n(9553),F=n(24902);class z{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,n={}){let o=this.events[e];o||(o={highPriority:new Map,regular:new Map},this.events[e]=o),n.isFirst?o.highPriority.set(t,!0):o.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const n=this.events[e];if(!n)return;const o=Array.from(n.highPriority.keys()),i=Array.from(n.regular.keys());for(let e=o.length-1;e>=0;e-=1){const i=o[e];n.highPriority.has(i)&&i.apply(this,t)}for(let e=0;e<i.length;e+=1){const o=i[e];n.regular.has(o)&&o.apply(this,t)}}once(e,t){const n=this;this.on(e,(function o(...i){n.removeListener(e,o),t.apply(n,i)}))}}const j=()=>{const[e]=r.useState((()=>new z));return{instance:{$$publishEvent:r.useCallback(((...t)=>{const[n,o,i={}]=t;i.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(i)&&i.isPropagationStopped()||e.emit(n,o,i)}),[e]),$$subscribeEvent:r.useCallback(((t,n)=>(e.on(t,n),()=>{e.removeListener(t,n)})),[e])}}};j.params={};const Y=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};Y.params={};var $=n(29401),B=n(25149),W=n(80886);const V=({params:e,store:t})=>{r.useEffect((()=>{t.update((t=>e.id===t.id.providedTreeId&&void 0!==t.id.treeId?t:(0,o.A)({},t,{id:(0,o.A)({},t.id,{treeId:e.id??(0,W.Y)()})})))}),[t,e.id]);const n=(0,$.d)(t,B.U);return{getRootProps:()=>({id:n})}};V.params={id:!0},V.getInitialState=({id:e})=>({id:{treeId:void 0,providedTreeId:e}});const U=[j,Y,V],G=["apiRef"];class K{constructor(e){this.value=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.value,this.update=e=>{const t=e(this.value);t!==this.value&&(this.value=t,this.listeners.forEach((e=>e(t))))},this.value=e,this.listeners=new Set}}let q=0;var X=n(29677),J=n(19268);const Q={};function Z(e){const{contextValue:t,classes:n=Q,slots:o=Q,slotProps:i=Q,children:s}=e,a=r.useMemo((()=>({classes:n,slots:{collapseIcon:o.collapseIcon,expandIcon:o.expandIcon,endIcon:o.endIcon},slotProps:{collapseIcon:i.collapseIcon,expandIcon:i.expandIcon,endIcon:i.endIcon}})),[n,o.collapseIcon,o.expandIcon,o.endIcon,i.collapseIcon,i.expandIcon,i.endIcon]);return(0,_.jsx)(X.F.Provider,{value:t,children:(0,_.jsx)(J.y.Provider,{value:a,children:t.wrapRoot({children:s})})})}var ee=n(78854);const te=(e,t,n)=>{e.$$publishEvent(t,n)};var ne=n(60957),oe=n(42049),ie=n(10786);const re=({disabledItemsFocusable:e,items:t,isItemDisabled:n,getItemLabel:o,getItemChildren:i,getItemId:r,initialDepth:s=0,initialParentId:a=null,getChildrenCount:l,ignoreChildren:c=!1})=>{const d={},u={},h={[ne.T2]:[]},m=(e,t,s)=>{const a=r?r(e):e.id;((e,t,n)=>{if(null==e)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(t)].join("\n"));if(null!=n[e])throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${e}"`].join("\n"))})(a,e,d);const p=o?o(e):e.label;if(null==p)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(e)].join("\n"));const f=i?i(e):e.children;d[a]={id:a,label:p,parentId:s,idAttribute:void 0,expandable:l?l(e)>0:!!f?.length,disabled:!!n&&n(e),depth:t},u[a]=e;const g=s??ne.T2;h[g]||(h[g]=[]),h[g].push(a),c||f?.forEach((e=>m(e,t+1,a)))};t?.forEach((e=>m(e,s,a)));const p={};return Object.keys(h).forEach((e=>{p[e]=(0,ne.vB)(h[e])})),{disabledItemsFocusable:e,itemMetaLookup:d,itemModelLookup:u,itemOrderedChildrenIdsLookup:h,itemChildrenIndexesLookup:p}},se=({instance:e,params:t,store:n})=>{const i=r.useCallback((e=>(0,ie.EJ)(n.value,e)),[n]),s=r.useCallback((e=>{const t=(0,ie.uP)(n.value,e);return t?.parentId||null}),[n]),a=(0,ee.A)((e=>{n.update((t=>(0,o.A)({},t,{items:(0,o.A)({},t.items,{loading:e})})))})),l=(0,ee.A)((e=>{n.update((t=>(0,o.A)({},t,{items:(0,o.A)({},t.items,{error:e})})))})),c=(0,ee.A)((({itemId:e,shouldBeDisabled:t})=>{n.update((n=>{if(!n.items.itemMetaLookup[e])return n;const i=(0,o.A)({},n.items.itemMetaLookup);return i[e]=(0,o.A)({},i[e],{disabled:t??!i[e].disabled}),(0,o.A)({},n,{items:(0,o.A)({},n.items,{itemMetaLookup:i})})}))})),d=r.useCallback((()=>{const e=t=>{const o=(0,ie.EJ)(n.value,t),i=(0,ie.p1)(n.value,t);return i.length>0?o.children=i.map(e):delete o.children,o};return(0,ie.p1)(n.value,null).map(e)}),[n]),u=r.useCallback((e=>(0,ie.p1)(n.value,e)),[n]),h=e=>{const t=(0,ie.uP)(n.value,e);if(null==t)return null;const o=(0,W.Q)({treeId:(0,B.U)(n.value),itemId:e,id:t.idAttribute});return document.getElementById(o)},m=r.useRef(!1),p=r.useCallback((()=>{m.current=!0}),[]),f=r.useCallback((()=>m.current),[]);return r.useEffect((()=>{e.areItemUpdatesPrevented()||n.update((n=>{const i=re({disabledItemsFocusable:t.disabledItemsFocusable,items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel,getItemChildren:t.getItemChildren});return Object.values(n.items.itemMetaLookup).forEach((t=>{i.itemMetaLookup[t.id]||te(e,"removeItem",{id:t.id})})),(0,o.A)({},n,{items:(0,o.A)({},n.items,i)})}))}),[e,n,t.items,t.disabledItemsFocusable,t.isItemDisabled,t.getItemId,t.getItemLabel,t.getItemChildren]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":"number"==typeof t.itemChildrenIndentation?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:i,getItemDOMElement:h,getItemTree:d,getItemOrderedChildrenIds:u,setIsItemDisabled:c,getParentId:s},instance:{getItemDOMElement:h,preventItemUpdates:p,areItemUpdatesPrevented:f,addItems:({items:i,parentId:r,depth:s,getChildrenCount:a})=>{if(i){const l=re({disabledItemsFocusable:t.disabledItemsFocusable,items:i,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel,getItemChildren:t.getItemChildren,getChildrenCount:a,initialDepth:s,initialParentId:r,ignoreChildren:!0});n.update((t=>{let n;return n=r?{itemModelLookup:(0,o.A)({},t.items.itemModelLookup,l.itemModelLookup),itemMetaLookup:(0,o.A)({},t.items.itemMetaLookup,l.itemMetaLookup),itemOrderedChildrenIdsLookup:(0,o.A)({},l.itemOrderedChildrenIdsLookup,t.items.itemOrderedChildrenIdsLookup),itemChildrenIndexesLookup:(0,o.A)({},l.itemChildrenIndexesLookup,t.items.itemChildrenIndexesLookup)}:{itemModelLookup:l.itemModelLookup,itemMetaLookup:l.itemMetaLookup,itemOrderedChildrenIdsLookup:l.itemOrderedChildrenIdsLookup,itemChildrenIndexesLookup:l.itemChildrenIndexesLookup},Object.values(t.items.itemMetaLookup).forEach((t=>{l.itemMetaLookup[t.id]||te(e,"removeItem",{id:t.id})})),(0,o.A)({},t,{items:(0,o.A)({},t.items,n)})}))}},setTreeViewLoading:a,setTreeViewError:l,removeChildren:t=>{n.update((n=>{if(!t)return(0,o.A)({},n,{items:(0,o.A)({},n.items,{itemMetaLookup:{},itemOrderedChildrenIdsLookup:{},itemChildrenIndexesLookup:{}})});const i=Object.keys(n.items.itemMetaLookup).reduce(((i,r)=>{const s=n.items.itemMetaLookup[r];return s.parentId===t?(te(e,"removeItem",{id:s.id}),i):(0,o.A)({},i,{[s.id]:s})}),{}),r=n.items.itemOrderedChildrenIdsLookup,s=n.items.itemChildrenIndexesLookup;return delete s[t],delete r[t],(0,o.A)({},n,{items:(0,o.A)({},n.items,{itemMetaLookup:i,itemOrderedChildrenIdsLookup:r,itemChildrenIndexesLookup:s})})}))},handleItemClick:(0,ee.A)(((e,n)=>{t.onItemClick&&t.onItemClick(e,n)}))}}};se.getInitialState=e=>({items:(0,o.A)({},re({disabledItemsFocusable:e.disabledItemsFocusable,items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel,getItemChildren:e.getItemChildren}),{loading:!1,error:null})}),se.applyDefaultValuesToParams=({params:e})=>(0,o.A)({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"}),se.wrapRoot=({children:e})=>(0,_.jsx)(oe.z.Provider,{value:ie.AV,children:e}),se.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemChildren:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};var ae=n(3576),le=n(27668);const ce=({isItemEditable:e,expansionTrigger:t})=>t||(e?"iconContainer":"content"),de=({instance:e,store:t,params:n})=>{n.expandedItems,n.defaultExpandedItems,(0,ae.A)((()=>{t.update((e=>{const t=ce({isItemEditable:n.isItemEditable,expansionTrigger:n.expansionTrigger});return e.expansion.expansionTrigger===t?e:(0,o.A)({},e,{expansion:(0,o.A)({},e.expansion,{expansionTrigger:t})})}))}),[t,n.isItemEditable,n.expansionTrigger]);const i=(e,i)=>{void 0===n.expandedItems&&t.update((e=>(0,o.A)({},e,{expansion:(0,o.A)({},e.expansion,{expandedItems:i})}))),n.onExpandedItemsChange?.(e,i)},r=(0,ee.A)((({itemId:e,event:o,shouldBeExpanded:r})=>{const s=(0,le.l$)(t.value);let a;a=r?[e].concat(s):s.filter((t=>t!==e)),n.onItemExpansionToggle&&n.onItemExpansionToggle(o,e,r),i(o,a)})),s=(0,ee.A)((({itemId:n,event:o=null,shouldBeExpanded:i})=>{const r=(0,le.QQ)(t.value,n),s=i??!r;if(r===s)return;const a={isExpansionPrevented:!1,shouldBeExpanded:s,event:o,itemId:n};te(e,"beforeItemToggleExpansion",a),a.isExpansionPrevented||e.applyItemExpansion({itemId:n,event:o,shouldBeExpanded:s})}));return(0,ae.A)((()=>{const e=n.expandedItems;void 0!==e&&t.update((t=>(0,o.A)({},t,{expansion:(0,o.A)({},t.expansion,{expandedItems:e})})))}),[t,n.expandedItems]),{publicAPI:{setItemExpansion:s},instance:{setItemExpansion:s,applyItemExpansion:r,expandAllSiblings:(e,o)=>{const r=(0,ie.uP)(t.value,o);if(null==r)return;const s=(0,ie.p1)(t.value,r.parentId).filter((e=>(0,le.Rt)(t.value,e)&&!(0,le.QQ)(t.value,e))),a=(0,le.l$)(t.value).concat(s);s.length>0&&(n.onItemExpansionToggle&&s.forEach((t=>{n.onItemExpansionToggle(e,t,!0)})),i(e,a))}}}},ue=[];de.applyDefaultValuesToParams=({params:e})=>(0,o.A)({},e,{defaultExpandedItems:e.defaultExpandedItems??ue}),de.getInitialState=e=>({expansion:{expandedItems:void 0===e.expandedItems?e.defaultExpandedItems:e.expandedItems,expansionTrigger:ce(e)}}),de.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};var he=n(28540),me=n(64938);const pe=e=>{const t={};return e.forEach((e=>{t[e]=!0})),t},fe=({store:e,oldModel:t,newModel:n})=>{const o=new Map;return n.forEach((e=>{o.set(e,!0)})),{added:n.filter((t=>!(0,me.cs)(e.value,t))),removed:t.filter((e=>!o.has(e)))}},ge=Object.is;function be(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let n=0,o=0;for(const o in e){if(n+=1,!ge(e[o],t[o]))return!1;if(!(o in t))return!1}for(const e in t)o+=1;return n===o}function ve(e,t){const n=(0,me.Ye)(e),o=(0,me.AJ)(e,t);if((0,me.cs)(e,t))return{disabled:!o,visible:n,indeterminate:!1,checked:!0};if(0===(0,ie.p1)(e,t).length)return{disabled:!o,visible:n,indeterminate:!1,checked:!1};let i=!1,r=!1;const s=n=>{n!==t&&((0,me.cs)(e,n)?i=!0:r=!0),(0,ie.p1)(e,n).forEach(s)};return s(t),{disabled:!o,visible:n,indeterminate:i&&r,checked:!!(0,me.Fj)(e).parents&&i&&!r}}const ye=({store:e,params:t})=>{t.selectedItems,t.defaultSelectedItems;const n=r.useRef(null),i=r.useRef({}),s=(n,i,r)=>{const s=(0,me.T)(e.value);let a;const l=(0,me.UK)(e.value);if(a=l&&(t.selectionPropagation.descendants||t.selectionPropagation.parents)?(({store:e,selectionPropagation:t,newModel:n,oldModel:o,additionalItemsToPropagate:i})=>{if(!t.descendants&&!t.parents)return n;let r=!1;const s=pe(n),a=fe({store:e,newModel:n,oldModel:o});return i?.forEach((e=>{s[e]?a.added.includes(e)||a.added.push(e):a.removed.includes(e)||a.removed.push(e)})),a.added.forEach((n=>{if(t.descendants){const t=o=>{o!==n&&(r=!0,s[o]=!0),(0,ie.p1)(e.value,o).forEach(t)};t(n)}if(t.parents){const t=n=>!!s[n]&&(0,ie.p1)(e.value,n).every(t),o=n=>{const i=(0,ie.YW)(e.value,n);null!=i&&(0,ie.p1)(e.value,i).every(t)&&(r=!0,s[i]=!0,o(i))};o(n)}})),a.removed.forEach((n=>{if(t.parents){let t=(0,ie.YW)(e.value,n);for(;null!=t;)s[t]&&(r=!0,delete s[t]),t=(0,ie.YW)(e.value,t)}if(t.descendants){const t=o=>{o!==n&&(r=!0,delete s[o]),(0,ie.p1)(e.value,o).forEach(t)};t(n)}})),r?Object.keys(s):n})({store:e,selectionPropagation:t.selectionPropagation,newModel:i,oldModel:s,additionalItemsToPropagate:r}):i,t.onItemSelectionToggle)if(l){const o=fe({store:e,newModel:a,oldModel:s});t.onItemSelectionToggle&&(o.added.forEach((e=>{t.onItemSelectionToggle(n,e,!0)})),o.removed.forEach((e=>{t.onItemSelectionToggle(n,e,!1)})))}else t.onItemSelectionToggle&&a!==s&&(null!=s&&t.onItemSelectionToggle(n,s,!1),null!=a&&t.onItemSelectionToggle(n,a,!0));void 0===t.selectedItems&&e.update((e=>(0,o.A)({},e,{selection:(0,o.A)({},e.selection,{selectedItems:a})}))),t.onSelectedItemsChange?.(n,a)},a=({itemId:t,event:o=null,keepExistingSelection:r=!1,shouldBeSelected:a})=>{if(!(0,me.BF)(e.value))return;let l;const c=(0,me.UK)(e.value);if(r){const n=(0,me.Go)(e.value),o=(0,me.cs)(e.value,t);l=!o||!1!==a&&null!=a?o||!0!==a&&null!=a?n:[t].concat(n):n.filter((e=>e!==t))}else l=!1===a||null==a&&(0,me.cs)(e.value,t)?c?[]:null:c?[t]:t;s(o,l,[t]),n.current=t,i.current={}},l=(t,[n,o])=>{if(!(0,me.UK)(e.value))return;let r=(0,me.Go)(e.value).slice();Object.keys(i.current).length>0&&(r=r.filter((e=>!i.current[e])));const a=pe(r),l=(0,he.c2)(e.value,n,o),c=l.filter((e=>!a[e]));r=r.concat(c),s(t,r),i.current=pe(l)};return(0,ae.A)((()=>{e.update((e=>(0,o.A)({},e,{selection:{selectedItems:void 0===t.selectedItems?e.selection.selectedItems:t.selectedItems,isEnabled:!t.disableSelection,isMultiSelectEnabled:t.multiSelect,isCheckboxSelectionEnabled:t.checkboxSelection,selectionPropagation:{descendants:t.selectionPropagation.descendants,parents:t.selectionPropagation.parents}}})))}),[e,t.selectedItems,t.multiSelect,t.checkboxSelection,t.disableSelection,t.selectionPropagation.descendants,t.selectionPropagation.parents]),{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{setItemSelection:a},instance:{setItemSelection:a,selectAllNavigableItems:t=>{if(!(0,me.UK)(e.value))return;const n=(0,he.nz)(e.value);s(t,n),i.current=pe(n)},expandSelectionRange:(t,o)=>{if(null!=n.current){const[i,r]=(0,he.XR)(e.value,o,n.current);l(t,[i,r])}},selectRangeFromStartToItem:(t,n)=>{l(t,[(0,he.F1)(e.value),n])},selectRangeFromItemToEnd:(t,n)=>{l(t,[n,(0,he.HG)(e.value)])},selectItemFromArrowNavigation:(t,n,o)=>{if(!(0,me.UK)(e.value))return;let r=(0,me.Go)(e.value).slice();0===Object.keys(i.current).length?(r.push(o),i.current={[n]:!0,[o]:!0}):(i.current[n]||(i.current={}),i.current[o]?(r=r.filter((e=>e!==n)),delete i.current[n]):(r.push(o),i.current[o]=!0)),s(t,r)}}}};ye.itemPlugin=({props:e})=>{const{itemId:t}=e,{store:n}=(0,X.i)(),i=(0,$.d)(n,ve,t,be);return{propsEnhancers:{checkbox:({externalEventHandlers:e,interactions:r})=>(0,o.A)({tabIndex:-1,onChange:o=>{e.onChange?.(o),o.defaultMuiPrevented||(0,me.AJ)(n.value,t)&&r.handleCheckboxSelection(o)}},i)}}};const we=[],Ce={};ye.applyDefaultValuesToParams=({params:e})=>(0,o.A)({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?we:null),selectionPropagation:e.selectionPropagation??Ce}),ye.getInitialState=e=>({selection:{selectedItems:void 0===e.selectedItems?e.defaultSelectedItems:e.selectedItems,isEnabled:!e.disableSelection,isMultiSelectEnabled:e.multiSelect,isCheckboxSelectionEnabled:e.checkboxSelection,selectionPropagation:e.selectionPropagation}}),ye.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0,selectionPropagation:!0};class _e{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,n){this.timeouts||(this.timeouts=new Map);const o=setTimeout((()=>{"function"==typeof t&&t(),this.timeouts.delete(n.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(n.cleanupToken,o)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class Se{constructor(){this.registry=new FinalizationRegistry((e=>{"function"==typeof e&&e()}))}register(e,t,n){this.registry.register(e,t,n)}unregister(e){this.registry.unregister(e)}reset(){}}class Me{}const Ee=function(e){let t=0;return function(n,o,i){null===e.registry&&(e.registry="undefined"!=typeof FinalizationRegistry?new Se:new _e);const[s]=r.useState(new Me),a=r.useRef(null),l=r.useRef(void 0);l.current=i;const c=r.useRef(null);if(!a.current&&l.current){const i=(e,t)=>{t.defaultMuiPrevented||l.current?.(e,t)};a.current=n.$$subscribeEvent(o,i),t+=1,c.current={cleanupToken:t},e.registry.register(s,(()=>{a.current?.(),a.current=null,c.current=null}),c.current)}else!l.current&&a.current&&(a.current(),a.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));r.useEffect((()=>{if(!a.current&&l.current){const e=(e,t)=>{t.defaultMuiPrevented||l.current?.(e,t)};a.current=n.$$subscribeEvent(o,e)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{a.current?.(),a.current=null}}),[n,o])}}({registry:null});var xe=n(31418);const ke=({instance:e,params:t,store:n})=>{const i=(0,ee.A)((e=>{n.update((t=>(0,xe.L6)(t)===e?t:(0,o.A)({},t,{focus:(0,o.A)({},t.focus,{focusedItemId:e})})))})),r=(n,o)=>{const r=e.getItemDOMElement(o);r&&r.focus(),i(o),t.onItemFocus&&t.onItemFocus(n,o)},s=(0,ee.A)(((e,t)=>{(e=>{const t=(0,ie.uP)(n.value,e);return t&&(null==t.parentId||(0,le.QQ)(n.value,t.parentId))})(t)&&r(e,t)})),a=(0,ee.A)((()=>{const t=(0,xe.L6)(n.value);if(null!=t){if((0,ie.uP)(n.value,t)){const n=e.getItemDOMElement(t);n&&n.blur()}i(null)}}));Ee(e,"removeItem",(({id:e})=>{const t=(0,xe.L6)(n.value),o=(0,xe.hc)(n.value);t===e&&null!=o&&r(null,o)}));const l=e=>t=>{if(e.onFocus?.(t),t.defaultMuiPrevented)return;const o=(0,xe.hc)(n.value);t.target===t.currentTarget&&null!=o&&r(t,o)},c=e=>t=>{e.onBlur?.(t),t.defaultMuiPrevented||i(null)};return{getRootProps:e=>({onFocus:l(e),onBlur:c(e)}),publicAPI:{focusItem:s},instance:{focusItem:s,removeFocusedItem:a}}};ke.getInitialState=()=>({focus:{focusedItemId:null}}),ke.params={onItemFocus:!0};var Te=n(411),Re=n(65658),Ae=n(41519),Le=n(81326);const Oe=({instance:e,store:t,params:n})=>{const o=(0,Te.I)(),i=r.useRef({}),s=(0,ee.A)((e=>{i.current=e(i.current)})),a=(0,$.d)(t,ie.Ks);r.useEffect((()=>{if(e.areItemUpdatesPrevented())return;const t={};Object.values(a).forEach((e=>{t[e.id]=e.label.substring(0,1).toLowerCase()})),i.current=t}),[a,n.getItemId,e]);const l=e=>(0,me.BF)(t.value)&&!(0,ie.lj)(t.value,e),c=e=>!(0,ie.lj)(t.value,e)&&(0,le.Rt)(t.value,e);return{instance:{updateFirstCharMap:s,handleItemKeyDown:async(n,r)=>{if(n.defaultMuiPrevented)return;if(n.altKey||(0,he.HZ)(n.target,n.currentTarget))return;const s=n.ctrlKey||n.metaKey,a=n.key,d=(0,me.UK)(t.value);switch(!0){case" "===a&&l(r):n.preventDefault(),d&&n.shiftKey?e.expandSelectionRange(n,r):e.setItemSelection({event:n,itemId:r,keepExistingSelection:d,shouldBeSelected:void 0});break;case"Enter"===a:(0,Re.M)(e,Ae.j)&&(0,Le.pF)(t.value,r)&&!(0,Le.XG)(t.value,r)?e.setEditedItem(r):c(r)?(e.setItemExpansion({event:n,itemId:r}),n.preventDefault()):l(r)&&(d?(n.preventDefault(),e.setItemSelection({event:n,itemId:r,keepExistingSelection:!0})):(0,me.cs)(t.value,r)||(e.setItemSelection({event:n,itemId:r}),n.preventDefault()));break;case"ArrowDown"===a:{const o=(0,he.ig)(t.value,r);o&&(n.preventDefault(),e.focusItem(n,o),d&&n.shiftKey&&l(o)&&e.selectItemFromArrowNavigation(n,r,o));break}case"ArrowUp"===a:{const o=(0,he.eI)(t.value,r);o&&(n.preventDefault(),e.focusItem(n,o),d&&n.shiftKey&&l(o)&&e.selectItemFromArrowNavigation(n,r,o));break}case"ArrowRight"===a&&!o||"ArrowLeft"===a&&o:if(s)return;if((0,le.QQ)(t.value,r)){const o=(0,he.ig)(t.value,r);o&&(e.focusItem(n,o),n.preventDefault())}else c(r)&&(e.setItemExpansion({event:n,itemId:r}),n.preventDefault());break;case"ArrowLeft"===a&&!o||"ArrowRight"===a&&o:if(s)return;if(c(r)&&(0,le.QQ)(t.value,r))e.setItemExpansion({event:n,itemId:r}),n.preventDefault();else{const o=(0,ie.YW)(t.value,r);o&&(e.focusItem(n,o),n.preventDefault())}break;case"Home"===a:l(r)&&d&&s&&n.shiftKey?e.selectRangeFromStartToItem(n,r):e.focusItem(n,(0,he.F1)(t.value)),n.preventDefault();break;case"End"===a:l(r)&&d&&s&&n.shiftKey?e.selectRangeFromItemToEnd(n,r):e.focusItem(n,(0,he.HG)(t.value)),n.preventDefault();break;case"*"===a:e.expandAllSiblings(n,r),n.preventDefault();break;case"A"===String.fromCharCode(n.keyCode)&&s&&d&&(0,me.BF)(t.value):e.selectAllNavigableItems(n),n.preventDefault();break;case!(s||n.shiftKey||(u=a,!u||1!==u.length||!u.match(/\S/))):{const o=((e,n)=>{const o=n.toLowerCase(),r=e=>{const n=(0,he.ig)(t.value,e);return null===n?(0,he.F1)(t.value):n};let s=null,a=r(e);const l={};for(;null==s&&!l[a];)i.current[a]===o?s=a:(l[a]=!0,a=r(a));return s})(r,a);null!=o&&(e.focusItem(n,o),n.preventDefault());break}}var u}}}};Oe.params={};const De=[se,de,ye,ke,Oe,Ae.j];var He=n(63543);const Ie=["ownerState"],Pe=r.createContext(null),Ne=r.memo((function({itemSlot:e,itemSlotProps:t,itemId:n}){const s=r.useContext(Pe),{store:a}=(0,X.i)(),l=(0,$.d)(a,ie.uP,n),c=(0,$.d)(a,ie.p1,n),d=e??He.yh,u=(0,I.A)({elementType:d,externalSlotProps:t,additionalProps:{label:l?.label,id:l?.idAttribute,itemId:n},ownerState:{itemId:n,label:l?.label}}),h=(0,i.A)(u,Ie);return(0,_.jsx)(d,(0,o.A)({},h,{children:c?.map(s)}))}),be);function Fe(e){const{slots:t,slotProps:n}=e,{store:o}=(0,X.i)(),i=t?.item,s=n?.item,a=(0,$.d)(o,ie.p1,null),l=r.useCallback((e=>(0,_.jsx)(Ne,{itemSlot:i,itemSlotProps:s,itemId:e},e)),[i,s]);return(0,_.jsx)(Pe.Provider,{value:l,children:a.map(l)})}const ze=["slots","slotProps"],je=(0,N.h)("MuiRichTreeView"),Ye=(0,c.Ay)("ul",{name:"MuiRichTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),$e=r.forwardRef((function(e,t){const n=je({props:e,name:"MuiRichTreeView"}),{slots:s,slotProps:l}=n,c=(0,i.A)(n,ze),{getRootProps:d,contextValue:u}=(({plugins:e,rootRef:t,props:n})=>{const s=r.useMemo((()=>[...U,...e]),[e]),{pluginParams:a,forwardedProps:l,apiRef:c}=(e=>{let{props:{apiRef:t},plugins:n}=e,o=(0,i.A)(e.props,G);const s=r.useMemo((()=>{const e={};return n.forEach((t=>{Object.assign(e,t.params)})),e}),[n]),{forwardedProps:a,pluginParams:l}=r.useMemo((()=>{const e={},t={};Object.keys(o).forEach((n=>{const i=o[n];s[n]?e[n]=i:t[n]=i}));const i=n.reduce(((e,t)=>t.applyDefaultValuesToParams?t.applyDefaultValuesToParams({params:e}):e),e);return{forwardedProps:t,pluginParams:i}}),[n,o,s]);return{forwardedProps:a,pluginParams:l,apiRef:t}})({plugins:s,props:n}),d=r.useRef({}).current,u=function(e){const t=r.useRef({});return e?function(e){return null==e.current&&(e.current={}),e}(e):t}(c),h=r.useRef(null),m=(0,F.A)(h,t),p=r.useRef(null);if(null==p.current){q+=1;const e={cacheKey:{id:q}};s.forEach((t=>{t.getInitialState&&Object.assign(e,t.getInitialState(a))})),p.current=new K(e)}const f=(e=>{const{plugins:t,instance:n,publicAPI:o,store:i,rootRef:s}=e,a=r.useCallback((e=>{let n=null,o=null;const i=[],r={};t.forEach((t=>{if(!t.itemPlugin)return;const s=t.itemPlugin({props:e,rootRef:n,contentRef:o});s?.rootRef&&(n=s.rootRef),s?.contentRef&&(o=s.contentRef),s?.propsEnhancers&&(i.push(s.propsEnhancers),Object.keys(s.propsEnhancers).forEach((e=>{r[e]=!0})))}));const s=Object.fromEntries(Object.keys(r).map((e=>{return[e,(t=e,e=>{const n={};return i.forEach((o=>{const i=o[t];null!=i&&Object.assign(n,i(e))})),n})];var t})));return{contentRef:o,rootRef:n,propsEnhancers:s}}),[t]),l=r.useCallback((({itemId:e,children:o,idAttribute:i})=>{let r=o;for(let o=t.length-1;o>=0;o-=1){const s=t[o];s.wrapItem&&(r=s.wrapItem({instance:n,itemId:e,children:r,idAttribute:i}))}return r}),[t,n]),c=r.useCallback((({children:e})=>{let n=e;for(let e=t.length-1;e>=0;e-=1){const o=t[e];o.wrapRoot&&(n=o.wrapRoot({children:n}))}return n}),[t]);return r.useMemo((()=>({runItemPlugins:a,wrapItem:l,wrapRoot:c,instance:n,publicAPI:o,store:i,rootRef:s})),[a,l,c,n,o,i,s])})({plugins:s,instance:d,publicAPI:u.current,store:p.current,rootRef:h}),g=[];return s.forEach((e=>{const t=e({instance:d,params:a,rootRef:h,plugins:s,store:p.current});t.getRootProps&&g.push(t.getRootProps),t.publicAPI&&Object.assign(u.current,t.publicAPI),t.instance&&Object.assign(d,t.instance)})),{getRootProps:(e={})=>{const t=(0,o.A)({role:"tree"},l,e,{ref:m});return g.forEach((n=>{Object.assign(t,n(e))})),t},rootRef:m,contextValue:f}})({plugins:De,rootRef:t,props:c}),h=(0,$.d)(u.store,ie.DW),m=(0,$.d)(u.store,ie.nt),p=(e=>{const{classes:t}=e;return r.useMemo((()=>(0,a.A)({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemLabelInput:["itemLabelInput"],itemCheckbox:["itemCheckbox"]},P,t)),[t])})(n),f=s?.root??Ye,g=(0,I.A)({elementType:f,externalSlotProps:l?.root,className:p.root,getSlotProps:d,ownerState:n});return h?(0,_.jsx)(H.A,{children:"Loading..."}):m?(0,_.jsx)(D,{severity:"error",children:m.message}):(0,_.jsx)(Z,{contextValue:u,classes:p,slots:s,slotProps:l,children:(0,_.jsx)(f,(0,o.A)({},g,{children:(0,_.jsx)(Fe,{slots:s,slotProps:l})}))})}))},47777:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(95093))},48046:(e,t,n)=>{"use strict";n.d(t,{H:()=>r,N:()=>i});var o=n(77325);function i(e,t,n){return[...e.slice(0,t),...n,...e.slice(t)]}function r(e,t){return(0,o.y0)(e,(e=>!1===t.includes(e)))}},48224:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,c:()=>r});var o=n(96540);const i=o.createContext(void 0),r=({children:e,size:t})=>{const n=o.useContext(i);return o.createElement(i.Provider,{value:t||n},e)},s=i},48303:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(95093))},48386:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var o=n(41895),i=n(77792);class r extends o.n{insert(e,t){this.indexedValues=(0,i.N)(this.indexedValues,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=(0,i.H)(this.indexedValues,e),super.remove(e)}}},48414:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var o=100*e+t;return o<600?"يېرىم كېچە":o<900?"سەھەر":o<1130?"چۈشتىن بۇرۇن":o<1230?"چۈش":o<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(95093))},48646:(e,t,n)=>{"use strict";var o=n(69565),i=n(28551),r=n(1767),s=n(50851);e.exports=function(e,t){t&&"string"==typeof e||i(e);var n=s(e);return r(i(void 0!==n?o(n,e):e))}},48686:(e,t,n)=>{"use strict";var o=n(43724),i=n(79039);e.exports=o&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48773:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},48981:(e,t,n)=>{"use strict";var o=n(67750),i=Object;e.exports=function(e){return i(o(e))}},49138:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CHECKBOX_CHECKED:()=>Ae,CHECKBOX_RENDERER_NAMESPACE:()=>Re,CHECKBOX_UNCHECKED:()=>Le,CONTEXTMENU_ITEMS_ADD_COMMENT:()=>M,CONTEXTMENU_ITEMS_ALIGNMENT:()=>T,CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM:()=>I,CONTEXTMENU_ITEMS_ALIGNMENT_CENTER:()=>A,CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY:()=>O,CONTEXTMENU_ITEMS_ALIGNMENT_LEFT:()=>R,CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE:()=>H,CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT:()=>L,CONTEXTMENU_ITEMS_ALIGNMENT_TOP:()=>D,CONTEXTMENU_ITEMS_BORDERS:()=>P,CONTEXTMENU_ITEMS_BORDERS_BOTTOM:()=>z,CONTEXTMENU_ITEMS_BORDERS_LEFT:()=>j,CONTEXTMENU_ITEMS_BORDERS_RIGHT:()=>F,CONTEXTMENU_ITEMS_BORDERS_TOP:()=>N,CONTEXTMENU_ITEMS_CLEAR_COLUMN:()=>p,CONTEXTMENU_ITEMS_COPY:()=>f,CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY:()=>v,CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS:()=>b,CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS:()=>g,CONTEXTMENU_ITEMS_CUT:()=>y,CONTEXTMENU_ITEMS_EDIT_COMMENT:()=>E,CONTEXTMENU_ITEMS_FREEZE_COLUMN:()=>w,CONTEXTMENU_ITEMS_HIDE_COLUMN:()=>W,CONTEXTMENU_ITEMS_HIDE_ROW:()=>U,CONTEXTMENU_ITEMS_INSERT_LEFT:()=>a,CONTEXTMENU_ITEMS_INSERT_RIGHT:()=>l,CONTEXTMENU_ITEMS_MERGE_CELLS:()=>_,CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD:()=>B,CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD:()=>$,CONTEXTMENU_ITEMS_NO_ITEMS:()=>i,CONTEXTMENU_ITEMS_READ_ONLY:()=>m,CONTEXTMENU_ITEMS_READ_ONLY_COMMENT:()=>k,CONTEXTMENU_ITEMS_REDO:()=>h,CONTEXTMENU_ITEMS_REMOVE_BORDERS:()=>Y,CONTEXTMENU_ITEMS_REMOVE_COLUMN:()=>d,CONTEXTMENU_ITEMS_REMOVE_COMMENT:()=>x,CONTEXTMENU_ITEMS_REMOVE_ROW:()=>c,CONTEXTMENU_ITEMS_ROW_ABOVE:()=>r,CONTEXTMENU_ITEMS_ROW_BELOW:()=>s,CONTEXTMENU_ITEMS_SHOW_COLUMN:()=>V,CONTEXTMENU_ITEMS_SHOW_ROW:()=>G,CONTEXTMENU_ITEMS_UNDO:()=>u,CONTEXTMENU_ITEMS_UNFREEZE_COLUMN:()=>C,CONTEXTMENU_ITEMS_UNMERGE_CELLS:()=>S,CONTEXT_MENU_ITEMS_NAMESPACE:()=>o,FILTERS_BUTTONS_CANCEL:()=>Ee,FILTERS_BUTTONS_CLEAR:()=>Se,FILTERS_BUTTONS_OK:()=>Me,FILTERS_BUTTONS_PLACEHOLDER_SEARCH:()=>xe,FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE:()=>Te,FILTERS_BUTTONS_PLACEHOLDER_VALUE:()=>ke,FILTERS_BUTTONS_SELECT_ALL:()=>_e,FILTERS_CONDITIONS_AFTER:()=>he,FILTERS_CONDITIONS_BEFORE:()=>me,FILTERS_CONDITIONS_BEGINS_WITH:()=>te,FILTERS_CONDITIONS_BETWEEN:()=>de,FILTERS_CONDITIONS_BY_VALUE:()=>re,FILTERS_CONDITIONS_CONTAINS:()=>oe,FILTERS_CONDITIONS_EMPTY:()=>J,FILTERS_CONDITIONS_ENDS_WITH:()=>ne,FILTERS_CONDITIONS_EQUAL:()=>Z,FILTERS_CONDITIONS_GREATER_THAN:()=>se,FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL:()=>ae,FILTERS_CONDITIONS_LESS_THAN:()=>le,FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL:()=>ce,FILTERS_CONDITIONS_NAMESPACE:()=>q,FILTERS_CONDITIONS_NONE:()=>X,FILTERS_CONDITIONS_NOT_BETWEEN:()=>ue,FILTERS_CONDITIONS_NOT_CONTAIN:()=>ie,FILTERS_CONDITIONS_NOT_EMPTY:()=>Q,FILTERS_CONDITIONS_NOT_EQUAL:()=>ee,FILTERS_CONDITIONS_TODAY:()=>pe,FILTERS_CONDITIONS_TOMORROW:()=>fe,FILTERS_CONDITIONS_YESTERDAY:()=>ge,FILTERS_DIVS_FILTER_BY_CONDITION:()=>be,FILTERS_DIVS_FILTER_BY_VALUE:()=>ve,FILTERS_LABELS_CONJUNCTION:()=>ye,FILTERS_LABELS_DISJUNCTION:()=>we,FILTERS_NAMESPACE:()=>K,FILTERS_VALUES_BLANK_CELLS:()=>Ce});const o="ContextMenu:items",i=`${o}.noItems`,r=`${o}.insertRowAbove`,s=`${o}.insertRowBelow`,a=`${o}.insertColumnOnTheLeft`,l=`${o}.insertColumnOnTheRight`,c=`${o}.removeRow`,d=`${o}.removeColumn`,u=`${o}.undo`,h=`${o}.redo`,m=`${o}.readOnly`,p=`${o}.clearColumn`,f=`${o}.copy`,g=`${o}.copyWithHeaders`,b=`${o}.copyWithGroupHeaders`,v=`${o}.copyHeadersOnly`,y=`${o}.cut`,w=`${o}.freezeColumn`,C=`${o}.unfreezeColumn`,_=`${o}.mergeCells`,S=`${o}.unmergeCells`,M=`${o}.addComment`,E=`${o}.editComment`,x=`${o}.removeComment`,k=`${o}.readOnlyComment`,T=`${o}.align`,R=`${o}.align.left`,A=`${o}.align.center`,L=`${o}.align.right`,O=`${o}.align.justify`,D=`${o}.align.top`,H=`${o}.align.middle`,I=`${o}.align.bottom`,P=`${o}.borders`,N=`${o}.borders.top`,F=`${o}.borders.right`,z=`${o}.borders.bottom`,j=`${o}.borders.left`,Y=`${o}.borders.remove`,$=`${o}.nestedHeaders.insertChildRow`,B=`${o}.nestedHeaders.detachFromParent`,W=`${o}.hideColumn`,V=`${o}.showColumn`,U=`${o}.hideRow`,G=`${o}.showRow`,K="Filters:",q=`${K}conditions`,X=`${q}.none`,J=`${q}.isEmpty`,Q=`${q}.isNotEmpty`,Z=`${q}.isEqualTo`,ee=`${q}.isNotEqualTo`,te=`${q}.beginsWith`,ne=`${q}.endsWith`,oe=`${q}.contains`,ie=`${q}.doesNotContain`,re=`${q}.byValue`,se=`${q}.greaterThan`,ae=`${q}.greaterThanOrEqualTo`,le=`${q}.lessThan`,ce=`${q}.lessThanOrEqualTo`,de=`${q}.isBetween`,ue=`${q}.isNotBetween`,he=`${q}.after`,me=`${q}.before`,pe=`${q}.today`,fe=`${q}.tomorrow`,ge=`${q}.yesterday`,be=`${K}labels.filterByCondition`,ve=`${K}labels.filterByValue`,ye=`${K}labels.conjunction`,we=`${K}labels.disjunction`,Ce=`${K}values.blankCells`,_e=`${K}buttons.selectAll`,Se=`${K}buttons.clear`,Me=`${K}buttons.ok`,Ee=`${K}buttons.cancel`,xe=`${K}buttons.placeholder.search`,ke=`${K}buttons.placeholder.value`,Te=`${K}buttons.placeholder.secondValue`,Re="CheckboxRenderer:",Ae=`${Re}checked`,Le=`${Re}unchecked`},49640:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(53954),i=n(52176),r=n(82284),s=n(9417);function a(e){var t=(0,i.A)();return function(){var n,i=(0,o.A)(e);if(t){var a=(0,o.A)(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,s.A)(e)}(this,n)}}},49806:(e,t,n)=>{"use strict";n.d(t,{sb:()=>r,vG:()=>s});var o=n(96540),i=n(50723);const r={token:i.A,override:{override:i.A},hashed:!0},s=o.createContext(r)},50192:(e,t,n)=>{"use strict";n.d(t,{E6:()=>o,Hb:()=>a,LX:()=>r,OS:()=>d,PP:()=>i,QP:()=>c,Yt:()=>s,_8:()=>l});const o="active-header",i="header",r="area",s="focus",a="fill",l="row",c="column",d="custom-selection"},50283:(e,t,n)=>{"use strict";var o=n(79504),i=n(79039),r=n(94901),s=n(39297),a=n(43724),l=n(10350).CONFIGURABLE,c=n(33706),d=n(91181),u=d.enforce,h=d.get,m=String,p=Object.defineProperty,f=o("".slice),g=o("".replace),b=o([].join),v=a&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===f(m(t),0,7)&&(t="["+g(m(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&s(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return s(o,"source")||(o.source=b(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return r(this)&&h(this).source||c(this)}),"toString")},50304:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var o=100*e+t;return o<600?"凌晨":o<900?"早上":o<1130?"上午":o<1230?"中午":o<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},50723:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,r:()=>o});const o={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},i=Object.assign(Object.assign({},o),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0})},50851:(e,t,n)=>{"use strict";var o=n(36955),i=n(55966),r=n(64117),s=n(26269),a=n(78227)("iterator");e.exports=function(e){if(!r(e))return i(e,a)||i(e,"@@iterator")||s[o(e)]}},51873:(e,t,n)=>{var o=n(9325).Symbol;e.exports=o},52176:(e,t,n)=>{"use strict";function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o=function(){return!!e})()}n.d(t,{A:()=>o})},52246:(e,t,n)=>{"use strict";n.d(t,{o:()=>r}),n(44114);var o=n(48386),i=n(77325);class r extends o._{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getHiddenIndexes(){return(0,i.mu)(this.getValues(),((e,t,n)=>(t&&e.push(n),e)),[])}}},52477:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},52648:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var o=100*e+t;return o<600?"凌晨":o<900?"早上":o<1130?"上午":o<1230?"中午":o<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(95093))},52764:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(9792),i=n(74848);const r=(0,o.A)((0,i.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},52967:(e,t,n)=>{"use strict";var o=n(46706),i=n(20034),r=n(67750),s=n(73506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=o(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),s(o),i(n)?(t?e(n,o):n.__proto__=o,n):n}}():void 0)},53830:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var o=n(96540),i=n(34164),r=n(836),s=n(1908),a=n(21362),l=n(14808),c=n(21124),d=n(57514),u=n(65387),h=n(7196),m=n(93781),p=n(74848);const f=(0,u.A)(),g=(0,l.A)("div",{name:"MuiStack",slot:"Root"});function b(e){return(0,c.A)({props:e,name:"MuiStack",defaultTheme:f})}function v(e,t){const n=o.Children.toArray(e).filter(Boolean);return n.reduce(((e,i,r)=>(e.push(i),r<n.length-1&&e.push(o.cloneElement(t,{key:`separator-${r}`})),e)),[])}const y=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...(0,h.NI)({theme:t},(0,h.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e})))};if(e.spacing){const o=(0,m.LX)(t),i=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),s=(0,h.kW)({values:e.direction,base:i}),a=(0,h.kW)({values:e.spacing,base:i});"object"==typeof s&&Object.keys(s).forEach(((e,t,n)=>{if(!s[e]){const o=t>0?s[n[t-1]]:"column";s[e]=o}}));const l=(t,n)=>{return e.useFlexGap?{gap:(0,m._W)(o,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=n?s[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,m._W)(o,t)}};var i};n=(0,r.A)(n,(0,h.NI)({theme:t},a,l))}return n=(0,h.iZ)(t.breakpoints,n),n};var w=n(26739),C=n(20439);const _=function(e={}){const{createStyledComponent:t=g,useThemeProps:n=b,componentName:r="MuiStack"}=e,l=t(y),c=o.forwardRef((function(e,t){const o=n(e),c=(0,d.A)(o),{component:u="div",direction:h="column",spacing:m=0,divider:f,children:g,className:b,useFlexGap:y=!1,...w}=c,C={direction:h,spacing:m,useFlexGap:y},_=(0,a.A)({root:["root"]},(e=>(0,s.Ay)(r,e)),{});return(0,p.jsx)(l,{as:u,ownerState:C,ref:t,className:(0,i.A)(_.root,b),...w,children:f?v(g,f):g})}));return c}({createStyledComponent:(0,w.Ay)("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>(0,C.b)({props:e,name:"MuiStack"})}),S=_},53838:(e,t,n)=>{"use strict";var o=n(97080),i=n(25170),r=n(38469),s=n(83789);e.exports=function(e){var t=o(this),n=s(e);return!(i(t)>n.size)&&!1!==r(t,(function(e){if(!n.includes(e))return!1}),!0)}},53872:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(95093))},53921:(e,t,n)=>{"use strict";var o=n(46518),i=n(72652),r=n(97040);o({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,n){r(t,e,n)}),{AS_ENTRIES:!0}),t}})},53954:(e,t,n)=>{"use strict";function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}n.d(t,{A:()=>o})},54128:(e,t,n)=>{var o=n(31800),i=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e}},54520:(e,t,n)=>{"use strict";n(22489)},54566:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},54691:function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var n,o=this._calendarEl[e],i=t&&t.hours();return n=o,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(o=o.apply(t)),o.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(95093))},54697:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},54903:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(95093))},54950:(e,t,n)=>{"use strict";n.d(t,{TS:()=>d,gB:()=>c,sl:()=>s}),n(16280);var o=n(34647);const{register:i,getItem:r,hasItem:s,getNames:a,getValues:l}=(0,o.A)("renderers");function c(e){if("function"==typeof e)return e;if(!s(e))throw Error(`No registered renderer found under "${e}" name`);return r(e)}function d(e,t){"string"!=typeof e&&(e=(t=e).RENDERER_TYPE),i(e,t)}},55802:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(95093))},55966:(e,t,n)=>{"use strict";var o=n(79306),i=n(64117);e.exports=function(e,t){var n=e[t];return i(n)?void 0:o(n)}},56e3:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(95093))},56195:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},56279:(e,t,n)=>{"use strict";var o=n(36840);e.exports=function(e,t,n){for(var i in t)o(e,i,t[i],n);return e}},56301:(e,t,n)=>{"use strict";n.d(t,{A:()=>B});var o=n(96540),i=n(34164),r=n(21362),s=n(411),a=n(53948),l=n(26739),c=n(53356),d=n(39241),u=n(20439),h=n(65418);function m(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var p=n(37313),f=n(41538),g=n(74848);const b={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var v=n(56536),y=n(1883),w=n(38329),C=n(96148),_=n(1908);function S(e){return(0,_.Ay)("MuiTabScrollButton",e)}const M=(0,C.A)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),E=(0,l.Ay)(w.A,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${M.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),x=o.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiTabScrollButton"}),{className:o,slots:l={},slotProps:c={},direction:d,orientation:h,disabled:m,...p}=n,f=(0,s.I)(),b={isRtl:f,...n},w=(e=>{const{classes:t,orientation:n,disabled:o}=e,i={root:["root",n,o&&"disabled"]};return(0,r.A)(i,S,t)})(b),C=l.StartScrollButtonIcon??v.A,_=l.EndScrollButtonIcon??y.A,M=(0,a.A)({elementType:C,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b}),x=(0,a.A)({elementType:_,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b});return(0,g.jsx)(E,{component:"div",className:(0,i.A)(w.root,o),ref:t,role:null,ownerState:b,tabIndex:null,...p,style:{...p.style,..."vertical"===h&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:"left"===d?(0,g.jsx)(C,{...M}):(0,g.jsx)(_,{...x})})}));var k=n(54403);function T(e){return(0,_.Ay)("MuiTabs",e)}const R=(0,C.A)("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var A=n(33983),L=n(85078);const O=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,D=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,H=(e,t,n)=>{let o=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(o)return;o=!0}const t=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!t)return void i.focus();i=n(e,i)}},I=(0,l.Ay)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${R.scrollButtons}`]:t.scrollButtons},{[`& .${R.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((0,d.A)((({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${R.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]})))),P=(0,l.Ay)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),N=(0,l.Ay)("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),F=(0,l.Ay)("span",{name:"MuiTabs",slot:"Indicator"})((0,d.A)((({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]})))),z=(0,l.Ay)((function(e){const{onChange:t,...n}=e,i=o.useRef(),r=o.useRef(null),s=()=>{i.current=r.current.offsetHeight-r.current.clientHeight};return(0,p.A)((()=>{const e=(0,h.A)((()=>{const e=i.current;s(),e!==i.current&&t(i.current)})),n=(0,f.A)(r.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),o.useEffect((()=>{s(),t(i.current)}),[t]),(0,g.jsx)("div",{style:b,...n,ref:r})}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),j={},Y=o.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiTabs"}),l=(0,c.A)(),d=(0,s.I)(),{"aria-label":p,"aria-labelledby":b,action:v,centered:y=!1,children:w,className:C,component:_="div",allowScrollButtonsMobile:S=!1,indicatorColor:M="primary",onChange:E,orientation:R="horizontal",ScrollButtonComponent:Y,scrollButtons:$="auto",selectionFollowsFocus:B,slots:W={},slotProps:V={},TabIndicatorProps:U={},TabScrollButtonProps:G={},textColor:K="primary",value:q,variant:X="standard",visibleScrollbar:J=!1,...Q}=n,Z="scrollable"===X,ee="vertical"===R,te=ee?"scrollTop":"scrollLeft",ne=ee?"top":"left",oe=ee?"bottom":"right",ie=ee?"clientHeight":"clientWidth",re=ee?"height":"width",se={...n,component:_,allowScrollButtonsMobile:S,indicatorColor:M,orientation:R,vertical:ee,scrollButtons:$,textColor:K,variant:X,visibleScrollbar:J,fixed:!Z,hideScrollbar:Z&&!J,scrollableX:Z&&!ee,scrollableY:Z&&ee,centered:y&&!Z,scrollButtonsHideMobile:!S},ae=(e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:i,scrollableY:s,centered:a,scrollButtonsHideMobile:l,classes:c}=e,d={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",i&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]};return(0,r.A)(d,T,c)})(se),le=(0,a.A)({elementType:W.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:se}),ce=(0,a.A)({elementType:W.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:se}),[de,ue]=o.useState(!1),[he,me]=o.useState(j),[pe,fe]=o.useState(!1),[ge,be]=o.useState(!1),[ve,ye]=o.useState(!1),[we,Ce]=o.useState({overflow:"hidden",scrollbarWidth:0}),_e=new Map,Se=o.useRef(null),Me=o.useRef(null),Ee={slots:W,slotProps:{indicator:U,scrollButton:G,...V}},xe=()=>{const e=Se.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==q){const e=Me.current.children;if(e.length>0){const t=e[_e.get(q)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ke=(0,k.A)((()=>{const{tabsMeta:e,tabMeta:t}=xe();let n,o=0;ee?(n="top",t&&e&&(o=t.top-e.top+e.scrollTop)):(n=d?"right":"left",t&&e&&(o=(d?-1:1)*(t[n]-e[n]+e.scrollLeft)));const i={[n]:o,[re]:t?t[re]:0};if("number"!=typeof he[n]||"number"!=typeof he[re])me(i);else{const e=Math.abs(he[n]-i[n]),t=Math.abs(he[re]-i[re]);(e>=1||t>=1)&&me(i)}})),Te=(e,{animation:t=!0}={})=>{t?function(e,t,n,o={},i=()=>{}){const{ease:r=m,duration:s=300}=o;let a=null;const l=t[e];let c=!1;const d=o=>{if(c)return void i(new Error("Animation cancelled"));null===a&&(a=o);const u=Math.min(1,(o-a)/s);t[e]=r(u)*(n-l)+l,u>=1?requestAnimationFrame((()=>{i(null)})):requestAnimationFrame(d)};l===n?i(new Error("Element already at target position")):requestAnimationFrame(d)}(te,Se.current,e,{duration:l.transitions.duration.standard}):Se.current[te]=e},Re=e=>{let t=Se.current[te];t+=ee?e:e*(d?-1:1),Te(t)},Ae=()=>{const e=Se.current[ie];let t=0;const n=Array.from(Me.current.children);for(let o=0;o<n.length;o+=1){const i=n[o];if(t+i[ie]>e){0===o&&(t=e);break}t+=i[ie]}return t},Le=()=>{Re(-1*Ae())},Oe=()=>{Re(Ae())},[De,{onChange:He,...Ie}]=(0,L.A)("scrollbar",{className:(0,i.A)(ae.scrollableX,ae.hideScrollbar),elementType:z,shouldForwardComponentProp:!0,externalForwardedProps:Ee,ownerState:se}),Pe=o.useCallback((e=>{He?.(e),Ce({overflow:null,scrollbarWidth:e})}),[He]),[Ne,Fe]=(0,L.A)("scrollButtons",{className:(0,i.A)(ae.scrollButtons,G.className),elementType:x,externalForwardedProps:Ee,ownerState:se,additionalProps:{orientation:R,slots:{StartScrollButtonIcon:W.startScrollButtonIcon||W.StartScrollButtonIcon,EndScrollButtonIcon:W.endScrollButtonIcon||W.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:le,endScrollButtonIcon:ce}}}),ze=(0,k.A)((e=>{const{tabsMeta:t,tabMeta:n}=xe();if(n&&t)if(n[ne]<t[ne]){const o=t[te]+(n[ne]-t[ne]);Te(o,{animation:e})}else if(n[oe]>t[oe]){const o=t[te]+(n[oe]-t[oe]);Te(o,{animation:e})}})),je=(0,k.A)((()=>{Z&&!1!==$&&ye(!ve)}));o.useEffect((()=>{const e=(0,h.A)((()=>{Se.current&&ke()}));let t;const n=(0,f.A)(Se.current);let o;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(Me.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(o=new MutationObserver((n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{t?.unobserve(e)})),e.addedNodes.forEach((e=>{t?.observe(e)}))})),e(),je()})),o.observe(Me.current,{childList:!0})),()=>{e.clear(),n.removeEventListener("resize",e),o?.disconnect(),t?.disconnect()}}),[ke,je]),o.useEffect((()=>{const e=Array.from(Me.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&Z&&!1!==$){const n=e[0],o=e[t-1],i={root:Se.current,threshold:.99},r=new IntersectionObserver((e=>{fe(!e[0].isIntersecting)}),i);r.observe(n);const s=new IntersectionObserver((e=>{be(!e[0].isIntersecting)}),i);return s.observe(o),()=>{r.disconnect(),s.disconnect()}}}),[Z,$,ve,w?.length]),o.useEffect((()=>{ue(!0)}),[]),o.useEffect((()=>{ke()})),o.useEffect((()=>{ze(j!==he)}),[ze,he]),o.useImperativeHandle(v,(()=>({updateIndicator:ke,updateScrollButtons:je})),[ke,je]);const[Ye,$e]=(0,L.A)("indicator",{className:(0,i.A)(ae.indicator,U.className),elementType:F,externalForwardedProps:Ee,ownerState:se,additionalProps:{style:he}}),Be=(0,g.jsx)(Ye,{...$e});let We=0;const Ve=o.Children.map(w,(e=>{if(!o.isValidElement(e))return null;const t=void 0===e.props.value?We:e.props.value;_e.set(t,We);const n=t===q;return We+=1,o.cloneElement(e,{fullWidth:"fullWidth"===X,indicator:n&&!de&&Be,selected:n,selectionFollowsFocus:B,onChange:E,textColor:K,value:t,...1!==We||!1!==q||e.props.tabIndex?{}:{tabIndex:0}})})),Ue=(()=>{const e={};e.scrollbarSizeListener=Z?(0,g.jsx)(De,{...Ie,onChange:Pe}):null;const t=Z&&("auto"===$&&(pe||ge)||!0===$);return e.scrollButtonStart=t?(0,g.jsx)(Ne,{direction:d?"right":"left",onClick:Le,disabled:!pe,...Fe}):null,e.scrollButtonEnd=t?(0,g.jsx)(Ne,{direction:d?"left":"right",onClick:Oe,disabled:!ge,...Fe}):null,e})(),[Ge,Ke]=(0,L.A)("root",{ref:t,className:(0,i.A)(ae.root,C),elementType:I,externalForwardedProps:{...Ee,...Q,component:_},ownerState:se}),[qe,Xe]=(0,L.A)("scroller",{ref:Se,className:ae.scroller,elementType:P,externalForwardedProps:Ee,ownerState:se,additionalProps:{style:{overflow:we.overflow,[ee?"margin"+(d?"Left":"Right"):"marginBottom"]:J?void 0:-we.scrollbarWidth}}}),[Je,Qe]=(0,L.A)("list",{ref:Me,className:(0,i.A)(ae.list,ae.flexContainer),elementType:N,externalForwardedProps:Ee,ownerState:se,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const t=Me.current,n=(0,A.A)(t).activeElement;if("tab"!==n.getAttribute("role"))return;let o="horizontal"===R?"ArrowLeft":"ArrowUp",i="horizontal"===R?"ArrowRight":"ArrowDown";switch("horizontal"===R&&d&&(o="ArrowRight",i="ArrowLeft"),e.key){case o:e.preventDefault(),H(t,n,D);break;case i:e.preventDefault(),H(t,n,O);break;case"Home":e.preventDefault(),H(t,null,O);break;case"End":e.preventDefault(),H(t,null,D)}})(t),e.onKeyDown?.(t)}})});return(0,g.jsxs)(Ge,{...Ke,children:[Ue.scrollButtonStart,Ue.scrollbarSizeListener,(0,g.jsxs)(qe,{...Xe,children:[(0,g.jsx)(Je,{"aria-label":p,"aria-labelledby":b,"aria-orientation":"vertical"===R?"vertical":null,role:"tablist",...Qe,children:Ve}),de&&Be]}),Ue.scrollButtonEnd]})}));var $=n(65836);const B=o.forwardRef((function(e,t){const{children:n,...i}=e,r=(0,$.QM)();if(null===r)throw new TypeError("No TabContext provided");const s=o.Children.map(n,(e=>o.isValidElement(e)?o.cloneElement(e,{"aria-controls":(0,$.eR)(r,e.props.value),id:(0,$.vU)(r,e.props.value)}):null));return(0,g.jsx)(Y,{...i,ref:t,value:r.value,children:s})}))},56464:function(e,t,n){!function(e){"use strict";var t={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),o=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function r(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,t,n,o){var i=e+" ";switch(n){case"s":return t||o?"pár sekund":"pár sekundami";case"ss":return t||o?i+(r(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":o?"minutu":"minutou";case"mm":return t||o?i+(r(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?i+(r(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||o?"den":"dnem";case"dd":return t||o?i+(r(e)?"dny":"dní"):i+"dny";case"M":return t||o?"měsíc":"měsícem";case"MM":return t||o?i+(r(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||o?"rok":"rokem";case"yy":return t||o?i+(r(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},56575:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),o=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(95093))},56969:(e,t,n)=>{"use strict";var o=n(72777),i=n(10757);e.exports=function(e){var t=o(e,"string");return i(t)?t:t+""}},57145:(e,t,n)=>{"use strict";var o=n(46518),i=n(79504),r=n(79306),s=n(25397),a=n(35370),l=n(44124),c=n(6469),d=Array,u=i(l("Array","sort"));o({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&r(e);var t=s(this),n=a(d,t);return u(n,e)}}),c("toSorted")},57536:(e,t,n)=>{"use strict";var o=n(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(12897)),r=n(89569),s=(0,i.default)((0,i.default)({},r.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});t.default=s},57609:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(95093))},57657:(e,t,n)=>{"use strict";var o,i,r,s=n(79039),a=n(94901),l=n(20034),c=n(2360),d=n(42787),u=n(36840),h=n(78227),m=n(96395),p=h("iterator"),f=!1;[].keys&&("next"in(r=[].keys())?(i=d(d(r)))!==Object.prototype&&(o=i):f=!0),!l(o)||s((function(){var e={};return o[p].call(e)!==e}))?o={}:m&&(o=c(o)),a(o[p])||u(o,p,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:f}},57777:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(95093))},57787:(e,t)=>{"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=d,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case r:case u:case h:return e;default:switch(e=e&&e.$$typeof){case c:case l:case d:case p:case m:case a:return e;default:return t}}case o:return t}}}(e)===m}},58002:(e,t,n)=>{"use strict";n.d(t,{B6:()=>c,H8:()=>l,U0:()=>v,UP:()=>m,Yh:()=>b,gm:()=>d,nr:()=>h,rr:()=>p,un:()=>f,wF:()=>u,zG:()=>g});var o=n(32919),i=n(13968);const r=e=>{const t={value:!1,test:(n,o)=>{t.value=e(n,o)}};return t},s={chrome:r(((e,t)=>/Chrome/.test(e)&&/Google/.test(t))),chromeWebKit:r((e=>/CriOS/.test(e))),edge:r((e=>/Edge/.test(e))),edgeWebKit:r((e=>/EdgiOS/.test(e))),firefox:r((e=>/Firefox/.test(e))),firefoxWebKit:r((e=>/FxiOS/.test(e))),mobile:r((e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e))),safari:r(((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t)))},a={mac:r((e=>/^Mac/.test(e))),win:r((e=>/^Win/.test(e))),linux:r((e=>/^Linux/.test(e))),ios:r((e=>/iPhone|iPad|iPod/i.test(e)))};function l(){return s.chrome.value}function c(){return s.chromeWebKit.value}function d(){return s.firefox.value}function u(){return s.firefoxWebKit.value}function h(){return s.safari.value}function m(){return s.edge.value}function p(){return s.mobile.value}function f(){return a.ios.value}function g(){let{maxTouchPoints:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return e>2&&a.mac.value}function b(){return a.win.value}function v(){return a.mac.value}(0,i.Nt)()&&(function(){let{userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.v4)(s,(n=>{let{test:o}=n;o(e,t)}))}(),function(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.v4)(a,(t=>{let{test:n}=t;n(e)}))}())},58004:(e,t,n)=>{"use strict";var o=n(46518),i=n(79039),r=n(68750);o({target:"Set",proto:!0,real:!0,forced:!n(84916)("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:r})},58076:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,o){var i=t.words[o];return 1===o.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},58296:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(21124),i=n(4894),r=n(31355);function s({props:e,name:t}){return(0,o.A)({props:e,name:t,defaultTheme:i.A,themeId:r.A})}},58503:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=n(96540).createContext({})},58622:(e,t,n)=>{"use strict";var o=n(44576),i=n(94901),r=o.WeakMap;e.exports=i(r)&&/native code/.test(String(r))},58676:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(95093))},59225:(e,t,n)=>{"use strict";var o,i,r,s,a=n(44576),l=n(18745),c=n(76080),d=n(94901),u=n(39297),h=n(79039),m=n(20397),p=n(67680),f=n(4055),g=n(22812),b=n(89544),v=n(38574),y=a.setImmediate,w=a.clearImmediate,C=a.process,_=a.Dispatch,S=a.Function,M=a.MessageChannel,E=a.String,x=0,k={},T="onreadystatechange";h((function(){o=a.location}));var R=function(e){if(u(k,e)){var t=k[e];delete k[e],t()}},A=function(e){return function(){R(e)}},L=function(e){R(e.data)},O=function(e){a.postMessage(E(e),o.protocol+"//"+o.host)};y&&w||(y=function(e){g(arguments.length,1);var t=d(e)?e:S(e),n=p(arguments,1);return k[++x]=function(){l(t,void 0,n)},i(x),x},w=function(e){delete k[e]},v?i=function(e){C.nextTick(A(e))}:_&&_.now?i=function(e){_.now(A(e))}:M&&!b?(s=(r=new M).port2,r.port1.onmessage=L,i=c(s.postMessage,s)):a.addEventListener&&d(a.postMessage)&&!a.importScripts&&o&&"file:"!==o.protocol&&!h(O)?(i=O,a.addEventListener("message",L,!1)):i=T in f("script")?function(e){m.appendChild(f("script"))[T]=function(){m.removeChild(this),R(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:y,clear:w}},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},59527:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var o=e%10;return e+(t[o]||t[e%100-o]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(95093))},59636:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var o=n(96540),i=n(34164),r=n(21362),s=n(26739),a=n(39241),l=n(20439),c=n(38329),d=n(90729),u=n(96148),h=n(1908);function m(e){return(0,h.Ay)("MuiAccordionSummary",e)}const p=(0,u.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);var f=n(85078),g=n(74848);const b=(0,s.Ay)(c.A,{name:"MuiAccordionSummary",slot:"Root"})((0,a.A)((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${p.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${p.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${p.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${p.expanded}`]:{minHeight:64}}}]}}))),v=(0,s.Ay)("span",{name:"MuiAccordionSummary",slot:"Content"})((0,a.A)((({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${p.expanded}`]:{margin:"20px 0"}}}]})))),y=(0,s.Ay)("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})((0,a.A)((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${p.expanded}`]:{transform:"rotate(180deg)"}})))),w=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiAccordionSummary"}),{children:s,className:a,expandIcon:c,focusVisibleClassName:u,onClick:h,slots:p,slotProps:w,...C}=n,{disabled:_=!1,disableGutters:S,expanded:M,toggle:E}=o.useContext(d.A),x={...n,expanded:M,disabled:_,disableGutters:S},k=(e=>{const{classes:t,expanded:n,disabled:o,disableGutters:i}=e,s={root:["root",n&&"expanded",o&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,r.A)(s,m,t)})(x),T={slots:p,slotProps:w},[R,A]=(0,f.A)("root",{ref:t,shouldForwardComponentProp:!0,className:(0,i.A)(k.root,a),elementType:b,externalForwardedProps:{...T,...C},ownerState:x,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:_,"aria-expanded":M,focusVisibleClassName:(0,i.A)(k.focusVisible,u)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),(e=>{E&&E(e),h&&h(e)})(t)}})}),[L,O]=(0,f.A)("content",{className:k.content,elementType:v,externalForwardedProps:T,ownerState:x}),[D,H]=(0,f.A)("expandIconWrapper",{className:k.expandIconWrapper,elementType:y,externalForwardedProps:T,ownerState:x});return(0,g.jsxs)(R,{...A,children:[(0,g.jsx)(L,{...O,children:s}),c&&(0,g.jsx)(D,{...H,children:c})]})}))},59848:(e,t,n)=>{"use strict";n(86368),n(29309)},60436:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(43145),i=n(73893),r=n(27800);function s(e){return function(e){if(Array.isArray(e))return(0,o.A)(e)}(e)||(0,i.A)(e)||(0,r.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},60685:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=(0,n(96540).createContext)(void 0)},60708:function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(95093))},60788:(e,t,n)=>{"use strict";var o=n(20034),i=n(22195),r=n(78227)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[r])?!!t:"RegExp"===i(e))}},60957:(e,t,n)=>{"use strict";n.d(t,{T2:()=>o,gE:()=>r,vB:()=>i});const o="__TREE_VIEW_ROOT_PARENT_ID__",i=e=>{const t={};return e.forEach(((e,n)=>{t[e]=n})),t},r=(e,t)=>{if(null==t)return!1;let n=e[t];if(!n)return!1;if(n.disabled)return!0;for(;null!=n.parentId;){if(n=e[n.parentId],!n)return!1;if(n.disabled)return!0}return!1}},61034:(e,t,n)=>{"use strict";var o=n(69565),i=n(39297),r=n(1625),s=n(65213),a=n(67979),l=RegExp.prototype;e.exports=s.correct?function(e){return e.flags}:function(e){return s.correct||!r(l,e)||i(e,"flags")?e.flags:o(a,e)}},61053:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=(0,n(96540).createContext)({})},61290:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(95093))},61509:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},o=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,n,r,s){var a=o(t),l=i[e][o(t)];return 2===a&&(l=l[n?0:1]),l.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},61701:(e,t,n)=>{"use strict";var o=n(46518),i=n(69565),r=n(79306),s=n(28551),a=n(1767),l=n(19462),c=n(96319),d=n(9539),u=n(30684),h=n(84549),m=n(96395),p=!m&&!u("map",(function(){})),f=!m&&!p&&h("map",TypeError),g=m||p||f,b=l((function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)}));o({target:"Iterator",proto:!0,real:!0,forced:g},{map:function(e){s(this);try{r(e)}catch(e){d(this,"throw",e)}return f?i(f,this,e):new b(a(this),{mapper:e})}})},61828:(e,t,n)=>{"use strict";var o=n(79504),i=n(39297),r=n(25397),s=n(19617).indexOf,a=n(30421),l=o([].push);e.exports=function(e,t){var n,o=r(e),c=0,d=[];for(n in o)!i(a,n)&&i(o,n)&&l(d,n);for(;t.length>c;)i(o,n=t[c++])&&(~s(d,n)||l(d,n));return d}},62106:(e,t,n)=>{"use strict";var o=n(50283),i=n(24913);e.exports=function(e,t,n){return n.get&&o(n.get,t,{getter:!0}),n.set&&o(n.set,t,{setter:!0}),i.f(e,t,n)}},62279:(e,t,n)=>{"use strict";n.d(t,{QO:()=>a,TP:()=>d,lJ:()=>s,pM:()=>r,yH:()=>i});var o=n(96540);const i="ant",r="anticon",s=["outlined","borderless","filled","underlined"],a=o.createContext({getPrefixCls:(e,t)=>t||(e?`${i}-${e}`:i),iconPrefixCls:r}),{Consumer:l}=a,c={};function d(e){const t=o.useContext(a),{getPrefixCls:n,direction:i,getPopupContainer:r}=t,s=t[e];return Object.assign(Object.assign({classNames:c,styles:c},s),{getPrefixCls:n,direction:i,getPopupContainer:r})}},62529:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},63164:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(95093))},63487:(e,t,n)=>{"use strict";n.d(t,{R:()=>S}),n(16280),n(44114);var o=n(77325),i=n(24360),r=n(82617),s=n(85975),a=n(83986);const l=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","beforeCompositionStart","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceChange","beforeViewportScrollVertically","beforeViewportScrollHorizontally","beforeViewportScroll","afterScrollHorizontally","afterScrollVertically","afterScroll","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSelectionFocusSet","beforeSelectColumns","afterSelectColumns","beforeSelectRows","afterSelectRows","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterSetTheme","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","beforeBeginEditing","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],c=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"]]),d=new Map([[]]);function u(e,t,n){h(e,t),t.set(e,n)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,n){return e.set(f(e,t),n),n}function p(e,t){return e.get(f(e,t))}function f(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n(57145),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(98992),n(54520),n(72577),n(3949);var g=new WeakMap,b=new WeakMap,v=new WeakMap,y=new WeakSet;class w{constructor(){var e;h(this,e=y),e.add(this),u(this,g,new Map),u(this,b,new Map),u(this,v,new Set),l.forEach((e=>f(y,this,C).call(this,e)))}getHooks(e){var t;return null!==(t=p(g,this).get(e))&&void 0!==t?t:[]}add(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};p(g,this).has(e)||(f(y,this,C).call(this,e),l.push(e));const o=p(g,this).get(e);if(o.find((e=>e.callback===t)))return;const i=Number.isInteger(n.orderIndex)?n.orderIndex:0,r=!!n.runOnce,s=!!n.initialHook;let a=!1;if(s){const e=o.find((e=>e.initialHook));e&&(e.callback=t,a=!0)}if(!a){o.push({callback:t,orderIndex:i,runOnce:r,initialHook:s,skip:!1});let n=p(v,this).has(e);n||0===i||(n=!0,p(v,this).add(e)),n&&o.length>1&&p(g,this).set(e,o.toSorted(((e,t)=>e.orderIndex-t.orderIndex)))}}has(e){return p(g,this).has(e)&&p(g,this).get(e).length>0}remove(e,t){if(!p(g,this).has(e))return!1;const n=p(g,this).get(e),o=n.find((e=>e.callback===t));if(o){let t=p(b,this).get(e);return o.skip=!0,t+=1,t>100&&(p(g,this).set(e,n.filter((e=>!e.skip))),t=0),p(b,this).set(e,t),!0}return!1}destroy(){p(g,this).clear(),p(b,this).clear(),m(g,this,null),m(b,this,null)}}function C(e){p(g,this).set(e,[]),p(b,this).set(e,0)}const _=s.O`The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\x20
  26. Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\x20
  27. learn about the migration path.`;class S{constructor(){var e,t,n;e=this,t="globalBucket",n=new w,(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}static getSingleton(){return M}getBucket(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=new w),e.pluginHookBucket):this.globalBucket}add(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,o.z0)(t,(t=>this.add(e,t,n))):(c.has(e)&&(0,r.R8)((0,i.V2)(_,{hookName:e,removedInVersion:c.get(e)})),d.has(e)&&(0,r.R8)(d.get(e)),this.getBucket(n).add(e,t,{orderIndex:s,runOnce:!1})),this}once(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,o.z0)(t,(t=>this.once(e,t,n))):this.getBucket(n).add(e,t,{orderIndex:i,runOnce:!0}),this}addAsFixed(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Array.isArray(t)?(0,o.z0)(t,(t=>this.addAsFixed(e,t,n))):this.getBucket(n).add(e,t,{initialHook:!0}),this}remove(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.getBucket(n).remove(e,t)}has(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.getBucket(t).has(e)}run(e,t,n,o,i,r,s,l){{const c=this.getBucket().getHooks(t),d=c?c.length:0;let u=0;if(d)for(;u<d;){if(!c[u]||c[u].skip){u+=1;continue}const d=(0,a.Ty)(c[u].callback,e,n,o,i,r,s,l);void 0!==d&&(n=d),c[u]&&c[u].runOnce&&this.remove(t,c[u].callback),u+=1}}{const c=this.getBucket(e).getHooks(t),d=c?c.length:0;let u=0;if(d)for(;u<d;){if(!c[u]||c[u].skip){u+=1;continue}const d=(0,a.Ty)(c[u].callback,e,n,o,i,r,s,l);void 0!==d&&(n=d),c[u]&&c[u].runOnce&&this.remove(t,c[u].callback,e),u+=1}}return n}destroy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.getBucket(e).destroy()}register(e){this.isRegistered(e)||l.push(e)}deregister(e){this.isRegistered(e)&&l.splice(l.indexOf(e),1)}isDeprecated(e){return d.has(e)||c.has(e)}isRegistered(e){return l.indexOf(e)>=0}getRegistered(){return l}}const M=new S},63518:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(9792),i=n(74848);const r=(0,o.A)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},63543:(e,t,n)=>{"use strict";n.d(t,{yh:()=>se});var o=n(98587),i=n(58168),r=n(96540),s=n(34164),a=n(8861),l=n(82777),c=n(42030),d=n(27629),u=n(53948),h=n(63248),m=n(21362),p=n(9553),f=n(26739),g=n(52658),b=n(24902),v=n(29677),y=n(41519),w=n(65658),C=n(29401),_=n(27668),S=n(31418),M=n(10786),E=n(64938),x=n(31216);const k=(0,x.M)([e=>e.lazyLoading],(e=>e.dataSource)),T=(0,x.M)([e=>e.lazyLoading],(e=>!!e?.enabled)),R=(0,x.M)([k,(e,t)=>t],((e,t)=>e.loading[t]||!1)),A=(0,x.M)([k,(e,t)=>t],((e,t)=>e.errors[t]||null));var L=n(81326);const O=e=>Array.isArray(e)?e.length>0&&e.some(O):Boolean(e);var D=n(42049),H=n(28540),I=n(80886),P=n(25149);var N=n(65348),F=n(33044),z=n(19268),j=n(9792),Y=n(74848);const $=(0,j.A)((0,Y.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),B=(0,j.A)((0,Y.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");function W(e){const{slots:t,slotProps:n,status:o}=e,{slots:r,slotProps:s}=(0,z.P)(),a={collapseIcon:t?.collapseIcon??r.collapseIcon??B,expandIcon:t?.expandIcon??r.expandIcon??$,endIcon:t?.endIcon??r.endIcon,icon:t?.icon};let l;l=a?.icon?"icon":o.expandable?o.expanded?"collapseIcon":"expandIcon":"endIcon";const c=a[l],d=(0,u.A)({elementType:c,externalSlotProps:e=>(0,i.A)({},(0,F.A)(s[l],e),(0,F.A)(n?.[l],e)),ownerState:{}});return c?(0,Y.jsx)(c,(0,i.A)({},d)):null}const V=(0,f.Ay)("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>(0,h.MC)(e)&&"action"!==e})((({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:(0,l.X4)(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]})));function U(e){return null==e.action?null:(0,Y.jsx)(V,(0,i.A)({},e))}function G(e){const{children:t,itemId:n,id:o}=e,{wrapItem:i,instance:s,store:a}=(0,v.i)(),l=(0,C.d)(a,P.U),c=(0,I.Q)({itemId:n,treeId:l,id:o});return(0,Y.jsx)(r.Fragment,{children:i({children:t,itemId:n,instance:s,idAttribute:c})})}const K=(0,f.Ay)("input",{name:"MuiTreeItem",slot:"LabelInput"})((({theme:e})=>(0,i.A)({},e.typography.body1,{width:"100%",backgroundColor:(e.vars||e).palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${(e.vars||e).palette.primary.main}`}}))),q=["visible"],X=["id","itemId","label","disabled","children","slots","slotProps","classes"],J=(0,p.h)("MuiTreeItem"),Q=(0,f.Ay)("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),Z=(0,f.Ay)("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>(0,h.MC)(e)&&"status"!==e})((({theme:e})=>({padding:e.spacing(.5,1),paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&[data-disabled]":{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},"&[data-focused]":{backgroundColor:(e.vars||e).palette.action.focus},"&[data-selected]":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},"&[data-selected][data-focused]":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}))),ee=(0,f.Ay)("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>(0,h.MC)(e)&&"editable"!==e})((({theme:e})=>(0,i.A)({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:e})=>e,style:{paddingLeft:"2px"}}]}))),te=(0,f.Ay)("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative","& svg":{fontSize:18}}),ne=(0,f.Ay)(c.A,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),oe=(0,f.Ay)("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),ie=(0,f.Ay)(a.A,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),re=(0,f.Ay)(r.forwardRef(((e,t)=>{const{visible:n}=e,r=(0,o.A)(e,q);return n?(0,Y.jsx)(d.A,(0,i.A)({},r,{ref:t})):null})),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0}),se=r.forwardRef((function(e,t){const n=J({props:e,name:"MuiTreeItem"}),{id:a,itemId:l,label:c,disabled:d,children:h,slots:p={},slotProps:f={},classes:x}=n,k=(0,o.A)(n,X),{getContextProviderProps:F,getRootProps:j,getContentProps:$,getIconContainerProps:B,getCheckboxProps:V,getLabelProps:q,getGroupTransitionProps:se,getLabelInputProps:ae,getDragAndDropOverlayProps:le,getErrorContainerProps:ce,getLoadingContainerProps:de,status:ue}=(e=>{const{runItemPlugins:t,instance:n,publicAPI:o,store:s}=(0,v.i)(),a=r.useContext(D.z),l=(0,C.d)(s,((...e)=>"function"==typeof a?a(...e):a),e.itemId),{id:c,itemId:d,label:u,children:h,rootRef:m}=e,{rootRef:p,contentRef:f,propsEnhancers:x}=t(e),{interactions:k,status:N}=(({itemId:e,children:t})=>{const{instance:n,store:o,publicAPI:i}=(0,v.i)(),r=(0,C.d)(o,_.Rt,e),s=(0,C.d)(o,T),a=(0,C.d)(o,E.UK),l=(0,C.d)(o,(t=>!!s&&R(t,e))),c=(0,C.d)(o,(t=>!!s&&Boolean(A(t,e)))),d=O(t)||r,u=(0,C.d)(o,_.QQ,e),h=(0,C.d)(o,S.I$,e),m=(0,C.d)(o,E.cs,e),p=(0,C.d)(o,M.lj,e),f=(0,C.d)(o,L.XG,e),g=(0,C.d)(o,L.pF,e),b={expandable:d,expanded:u,focused:h,selected:m,disabled:p,editing:f,editable:g,loading:l,error:c},x=()=>{(0,w.M)(n,y.j)&&(f?n.setEditedItem(null):n.setEditedItem(e))};return{interactions:{handleExpansion:t=>{if(b.disabled)return;b.focused||n.focusItem(t,e);const i=a&&(t.shiftKey||t.ctrlKey||t.metaKey);!b.expandable||i&&(0,_.QQ)(o.value,e)||n.setItemExpansion({event:t,itemId:e})},handleSelection:t=>{b.disabled||(b.focused||b.editing||n.focusItem(t,e),a&&(t.shiftKey||t.ctrlKey||t.metaKey)?t.shiftKey?n.expandSelectionRange(t,e):n.setItemSelection({event:t,itemId:e,keepExistingSelection:!0}):n.setItemSelection({event:t,itemId:e,shouldBeSelected:!0}))},handleCheckboxSelection:t=>{const o=t.nativeEvent.shiftKey;a&&o?n.expandSelectionRange(t,e):n.setItemSelection({event:t,itemId:e,keepExistingSelection:a,shouldBeSelected:t.target.checked})},toggleItemEditing:x,handleSaveItemLabel:(t,i)=>{(0,w.M)(n,y.j)&&(0,L.XG)(o.value,e)&&(n.updateItemLabel(e,i),x(),n.focusItem(t,e))},handleCancelItemLabelEditing:t=>{(0,w.M)(n,y.j)&&(0,L.XG)(o.value,e)&&(x(),n.focusItem(t,e))}},status:b,publicAPI:i}})({itemId:d,children:h}),F=r.useRef(null),z=r.useRef(null),j=(0,b.A)(m,p,F),Y=(0,b.A)(f,z),$=r.useRef(null),B=(0,C.d)(s,P.U),W=(0,C.d)(s,E.AJ,d),V=(0,C.d)(s,E.Ye),U=(0,I.Q)({itemId:d,treeId:B,id:c}),G=(0,C.d)(s,S.U_,d),K={rootRefObject:F,contentRefObject:z,interactions:k},q=e=>t=>{if(e.onBlur?.(t),t.defaultMuiPrevented)return;const o=n.getItemDOMElement(d);N.editing||t.relatedTarget&&(0,H.HZ)(t.relatedTarget,o)&&(t.target&&"labelInput"===t.target?.dataset?.element&&(0,H.HZ)(t.target,o)||"labelInput"===t.relatedTarget?.dataset?.element)||n.removeFocusedItem()},X=e=>t=>{e.onKeyDown?.(t),t.defaultMuiPrevented||"labelInput"===t.target?.dataset?.element||n.handleItemKeyDown(t,d)},J=e=>t=>{e.onMouseDown?.(t),t.defaultMuiPrevented||(t.shiftKey||t.ctrlKey||t.metaKey||N.disabled)&&t.preventDefault()};return{getContextProviderProps:()=>({itemId:d,id:c}),getRootProps:(t={})=>{const o=(0,i.A)({},(0,g.A)(e),(0,g.A)(t));let r;r=!!N.selected||!W&&void 0;const a=(0,i.A)({},o,{ref:j,role:"treeitem",tabIndex:G?0:-1,id:U,"aria-expanded":N.expandable?N.expanded:void 0,"aria-selected":r,"aria-disabled":N.disabled||void 0},t,{style:(0,i.A)({},t.style??{},{"--TreeView-itemDepth":l}),onFocus:(c=o,e=>{c.onFocus?.(e),e.defaultMuiPrevented||!N.focused&&(0,M.P$)(s.value,d)&&e.currentTarget===e.target&&n.focusItem(e,d)}),onBlur:q(o),onKeyDown:X(o)});var c;const u=x.root?.((0,i.A)({},K,{externalEventHandlers:o}))??{};return(0,i.A)({},a,u)},getContentProps:(e={})=>{const t=(0,g.A)(e),o=(0,i.A)({},t,e,{ref:Y,onClick:(r=t,e=>{r.onClick?.(e),n.handleItemClick(e,d),e.defaultMuiPrevented||$.current?.contains(e.target)||("content"===(0,_.cP)(s.value)&&k.handleExpansion(e),V||k.handleSelection(e))}),onMouseDown:J(t),status:N});var r;["expanded","selected","focused","disabled","editing","editable"].forEach((e=>{N[e]&&(o[`data-${e}`]="")}));const a=x.content?.((0,i.A)({},K,{externalEventHandlers:t}))??{};return(0,i.A)({},o,a)},getGroupTransitionProps:(e={})=>{const t=(0,g.A)(e);return(0,i.A)({},t,{unmountOnExit:!0,component:"ul",role:"group",in:N.expanded,children:h},e)},getIconContainerProps:(e={})=>{const t=(0,g.A)(e);return(0,i.A)({},t,e,{onClick:(n=t,e=>{n.onClick?.(e),e.defaultMuiPrevented||"iconContainer"===(0,_.cP)(s.value)&&k.handleExpansion(e)})});var n},getCheckboxProps:(e={})=>{const t=(0,g.A)(e),n=(0,i.A)({},t,{ref:$},e),o=x.checkbox?.((0,i.A)({},K,{externalEventHandlers:t}))??{};return(0,i.A)({},n,o)},getLabelProps:(e={})=>{const t=(0,i.A)({},(0,g.A)(e)),n=(0,i.A)({},t,{children:u},e,{onDoubleClick:(o=t,e=>{o.onDoubleClick?.(e),e.defaultMuiPrevented||k.toggleItemEditing()})});var o;const r=x.label?.((0,i.A)({},K,{externalEventHandlers:t}))??{};return(0,i.A)({},r,n)},getLabelInputProps:(e={})=>{const t=(0,g.A)(e),n=x.labelInput?.((0,i.A)({},K,{externalEventHandlers:t}))??{};return(0,i.A)({},e,n)},getDragAndDropOverlayProps:(e={})=>{const t=(0,g.A)(e),n=x.dragAndDropOverlay?.((0,i.A)({},K,{externalEventHandlers:t}))??{};return(0,i.A)({},e,n)},getErrorContainerProps:(e={})=>{const t=(0,g.A)(e);return(0,i.A)({},t,e)},getLoadingContainerProps:(e={})=>{const t=(0,g.A)(e);return(0,i.A)({size:"12px",thickness:6},t,e)},rootRef:j,status:N,publicAPI:o}})({id:a,itemId:l,children:h,label:c,disabled:d}),he=(e=>{const{classes:t}=(0,z.P)(),n=(0,i.A)({},e,{root:(0,s.A)(e?.root,t.root),content:(0,s.A)(e?.content,t.itemContent),iconContainer:(0,s.A)(e?.iconContainer,t.itemIconContainer),checkbox:(0,s.A)(e?.checkbox,t.itemCheckbox),label:(0,s.A)(e?.label,t.itemLabel),groupTransition:(0,s.A)(e?.groupTransition,t.itemGroupTransition),labelInput:(0,s.A)(e?.labelInput,t.itemLabelInput),dragAndDropOverlay:(0,s.A)(e?.dragAndDropOverlay,t.itemDragAndDropOverlay),errorIcon:(0,s.A)(e?.errorIcon,t.itemErrorIcon),loadingIcon:(0,s.A)(e?.loadingIcon,t.itemLoadingIcon)});return(0,m.A)({root:["root"],content:["content"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"],labelInput:["labelInput"],dragAndDropOverlay:["dragAndDropOverlay"],errorIcon:["errorIcon"],loadingIcon:["loadingIcon"],expanded:["expanded"],editing:["editing"],editable:["editable"],selected:["selected"],focused:["focused"],disabled:["disabled"]},N.K,n)})(x),me=p.root??Q,pe=(0,u.A)({elementType:me,getSlotProps:j,externalForwardedProps:k,externalSlotProps:f.root,additionalProps:{ref:t},ownerState:{},className:he.root}),fe=p.content??Z,ge=(0,u.A)({elementType:fe,getSlotProps:$,externalSlotProps:f.content,ownerState:{},className:(0,s.A)(he.content,ue.expanded&&he.expanded,ue.selected&&he.selected,ue.focused&&he.focused,ue.disabled&&he.disabled,ue.editing&&he.editing,ue.editable&&he.editable)}),be=p.iconContainer??te,ve=(0,u.A)({elementType:be,getSlotProps:B,externalSlotProps:f.iconContainer,ownerState:{},className:he.iconContainer}),ye=p.label??ee,we=(0,u.A)({elementType:ye,getSlotProps:q,externalSlotProps:f.label,ownerState:{},className:he.label}),Ce=p.checkbox??re,_e=(0,u.A)({elementType:Ce,getSlotProps:V,externalSlotProps:f.checkbox,ownerState:{},className:he.checkbox}),Se=p.groupTransition??void 0,Me=(0,u.A)({elementType:Se,getSlotProps:se,externalSlotProps:f.groupTransition,ownerState:{},className:he.groupTransition}),Ee=p.labelInput??K,xe=(0,u.A)({elementType:Ee,getSlotProps:ae,externalSlotProps:f.labelInput,ownerState:{},className:he.labelInput}),ke=p.dragAndDropOverlay??U,Te=(0,u.A)({elementType:ke,getSlotProps:le,externalSlotProps:f.dragAndDropOverlay,ownerState:{},className:he.dragAndDropOverlay}),Re=p.errorIcon??oe,Ae=(0,u.A)({elementType:Re,getSlotProps:ce,externalSlotProps:f.errorIcon,ownerState:{},className:he.errorIcon}),Le=p.loadingIcon??ie,Oe=(0,u.A)({elementType:Le,getSlotProps:de,externalSlotProps:f.loadingIcon,ownerState:{},className:he.loadingIcon});return(0,Y.jsx)(G,(0,i.A)({},F(),{children:(0,Y.jsxs)(me,(0,i.A)({},pe,{children:[(0,Y.jsxs)(fe,(0,i.A)({},ge,{children:[(0,Y.jsxs)(be,(0,i.A)({},ve,{children:[ue.error&&(0,Y.jsx)(Re,(0,i.A)({},Ae)),ue.loading?(0,Y.jsx)(Le,(0,i.A)({},Oe)):(0,Y.jsx)(W,{status:ue,slots:p,slotProps:f})]})),(0,Y.jsx)(Ce,(0,i.A)({},_e)),ue.editing?(0,Y.jsx)(Ee,(0,i.A)({},xe)):(0,Y.jsx)(ye,(0,i.A)({},we)),(0,Y.jsx)(ke,(0,i.A)({},Te))]})),h&&(0,Y.jsx)(ne,(0,i.A)({as:Se},Me))]}))}))}))},64051:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},64117:e=>{"use strict";e.exports=function(e){return null==e}},64226:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(95093))},64449:(e,t,n)=>{"use strict";var o=n(97080),i=n(94402).has,r=n(25170),s=n(83789),a=n(38469),l=n(40507),c=n(9539);e.exports=function(e){var t=o(this),n=s(e);if(r(t)<=n.size)return!1!==a(t,(function(e){if(n.includes(e))return!1}),!0);var d=n.getIterator();return!1!==l(d,(function(e){if(i(t,e))return c(d,"normal",!1)}))}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(20816);function i(e,t,n){return(t=(0,o.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},64562:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(9792),i=n(74848);const r=(0,o.A)((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},64938:(e,t,n)=>{"use strict";n.d(t,{AJ:()=>m,BF:()=>u,Fj:()=>p,Go:()=>a,T:()=>s,UK:()=>d,Ye:()=>h,cs:()=>c});var o=n(31216),i=n(10786);const r=e=>e.selection,s=(0,o.M)([r],(e=>e.selectedItems)),a=(0,o.M)([s],(e=>Array.isArray(e)?e:null!=e?[e]:[])),l=(0,o.M)([a],(e=>{const t=new Map;return e.forEach((e=>{t.set(e,!0)})),t})),c=(0,o.M)([l,(e,t)=>t],((e,t)=>e.has(t))),d=(0,o.M)([r],(e=>e.isEnabled&&e.isMultiSelectEnabled)),u=(0,o.M)([r],(e=>e.isEnabled)),h=(0,o.M)([r],(e=>e.isCheckboxSelectionEnabled)),m=(0,o.M)([i.lj,u],((e,t)=>t&&!e)),p=(0,o.M)([r],(e=>e.selectionPropagation))},64951:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var o=n(96540),i=n(34164),r=n(21362),s=n(38329),a=n(39407),l=n(26739),c=n(39241),d=n(20439),u=n(96148),h=n(1908);function m(e){return(0,h.Ay)("MuiTab",e)}const p=(0,u.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]);var f=n(74848);const g=(0,l.Ay)(s.A,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${(0,a.A)(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${p.iconWrapper}`]:t.iconWrapper},{[`& .${p.icon}`]:t.icon}]}})((0,c.A)((({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${p.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${p.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${p.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${p.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${p.selected}`]:{opacity:1},[`&.${p.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${p.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${p.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${p.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${p.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]})))),b=o.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiTab"}),{className:s,disabled:l=!1,disableFocusRipple:c=!1,fullWidth:u,icon:h,iconPosition:p="top",indicator:b,label:v,onChange:y,onClick:w,onFocus:C,selected:_,selectionFollowsFocus:S,textColor:M="inherit",value:E,wrapped:x=!1,...k}=n,T={...n,disabled:l,disableFocusRipple:c,selected:_,icon:!!h,iconPosition:p,label:!!v,fullWidth:u,textColor:M,wrapped:x},R=(e=>{const{classes:t,textColor:n,fullWidth:o,wrapped:i,icon:s,label:l,selected:c,disabled:d}=e,u={root:["root",s&&l&&"labelIcon",`textColor${(0,a.A)(n)}`,o&&"fullWidth",i&&"wrapped",c&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return(0,r.A)(u,m,t)})(T),A=h&&v&&o.isValidElement(h)?o.cloneElement(h,{className:(0,i.A)(R.icon,h.props.className)}):h;return(0,f.jsxs)(g,{focusRipple:!c,className:(0,i.A)(R.root,s),ref:t,role:"tab","aria-selected":_,disabled:l,onClick:e=>{!_&&y&&y(e,E),w&&w(e)},onFocus:e=>{S&&!_&&y&&y(e,E),C&&C(e)},ownerState:T,tabIndex:_?0:-1,...k,children:["top"===p||"start"===p?(0,f.jsxs)(o.Fragment,{children:[A,v]}):(0,f.jsxs)(o.Fragment,{children:[v,A]}),b]})}))},65213:(e,t,n)=>{"use strict";var o=n(44576),i=n(79039),r=o.RegExp,s=!i((function(){var e=!0;try{r(".","d")}catch(t){e=!1}var t={},n="",o=e?"dgimsy":"gimsy",i=function(e,o){Object.defineProperty(t,e,{get:function(){return n+=o,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)i(a,s[a]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(t)!==o||n!==o}));e.exports={correct:s}},65348:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,m:()=>r});var o=n(1908);function i(e){return(0,o.Ay)("MuiTreeItem",e)}const r=(0,n(96148).A)("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon","expanded","selected","focused","disabled","editable","editing"])},65543:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(95093))},65615:(e,t,n)=>{"use strict";n.d(t,{As:()=>r,Im:()=>l,O9:()=>s,b0:()=>a,gd:()=>c,k_:()=>C});var o=n(95093),i=n(85975);function r(e){let t;switch(typeof e){case"string":case"number":t=`${e}`;break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t}function s(e){return void 0!==e}function a(e){return void 0===e}function l(e){return null===e||""===e||a(e)}function c(e){return"[object RegExp]"===Object.prototype.toString.call(e)}const d="length",u=e=>parseInt(e,16),h=e=>parseInt(e,10),m=(e,t,n)=>e.substr(t,n),p=e=>e.codePointAt(0)-65,f=e=>`${e}`.replace(/\-/g,""),g=e=>u(m(f(e),u("12"),p("F")))/(u(m(f(e),p("B"),~~![][d]))||9),b=()=>"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host);let v=!1;const y={invalid:()=>i.O`
  28. The license key for Handsontable is invalid.\x20
  29. If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:n}=e;return i.O`
  30. The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
  31. version ${n}. Renew your license key at handsontable.com or downgrade to a version released prior\x20
  32. to ${t}. If you need any help, contact us at sales@handsontable.com.`},missing:()=>i.O`
  33. The license key for Handsontable is missing. Use your purchased key to activate the product.\x20
  34. Alternatively, you can activate Handsontable to use for non-commercial purposes by\x20
  35. passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\x20
  36. us at support@handsontable.com.`,non_commercial:()=>""},w={invalid:()=>i.O`
  37. The license key for Handsontable is invalid.\x20
  38. <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to\x20
  39. install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.`,expired:e=>{let{keyValidityDate:t,hotVersion:n}=e;return i.O`
  40. The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
  41. version ${n}. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your\x20
  42. license key or downgrade to a version released prior to ${t}. If you need any\x20
  43. help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.`},missing:()=>i.O`
  44. The license key for Handsontable is missing. Use your purchased key to activate the product.\x20
  45. Alternatively, you can activate Handsontable to use for non-commercial purposes by\x20
  46. passing the key: 'non-commercial-and-evaluation'.\x20
  47. <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\x20
  48. the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.`,non_commercial:()=>""};function C(e,t){const n=!l(e),i="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),r="15.3.0";let s,a="invalid",c="invalid";const C=function(e){let t=[][d],n=t;if(e[d]!==p("Z"))return!1;for(let t="",o="B<H4P+".split(""),i=p(o.shift());i;i=p(o.shift()||"A"))--i<""[d]?n|=(h(`${h(u(t)+(u(m(e,Math.abs(i),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=m(e,i,i?1===o[d]?9:8:6);return n===t}(e=f(e||""));if(n||i||C)if(C){const t=o("29/04/2025","DD/MM/YYYY"),n=Math.floor(t.toDate().getTime()/864e5),i=g(e);s=o(864e5*(i+1),"x").format("MMMM DD, YYYY"),n>i?(a="expired",c="expired"):(a="valid",c="valid")}else i?(a="non_commercial",c="valid"):(a="invalid",c="invalid");else a="missing",c="missing";if(b()&&(a="valid",c="valid"),v||"valid"===a||(y[a]({keyValidityDate:s,hotVersion:r})&&console["non_commercial"===a?"info":"warn"](y[a]({keyValidityDate:s,hotVersion:r})),v=!0),"valid"!==c&&t.parentNode&&w[c]({keyValidityDate:s,hotVersion:r})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=w[c]({keyValidityDate:s,hotVersion:r}),t.parentNode.insertBefore(e,t.nextSibling)}}},65658:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});const o=(e,t)=>e.getAvailablePlugins().has(t)},65836:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,QM:()=>a,eR:()=>l,vU:()=>c});var o=n(96540),i=n(74848);const r=o.createContext(null);function s(e){const{children:t,value:n}=e,s=function(){const[e,t]=o.useState(null);return o.useEffect((()=>{t(`mui-p-${Math.round(1e5*Math.random())}`)}),[]),e}(),a=o.useMemo((()=>({idPrefix:s,value:n})),[s,n]);return(0,i.jsx)(r.Provider,{value:a,children:t})}function a(){return o.useContext(r)}function l(e,t){const{idPrefix:n}=e;return null===n?null:`${e.idPrefix}-P-${t}`}function c(e,t){const{idPrefix:n}=e;return null===n?null:`${e.idPrefix}-T-${t}`}},66119:(e,t,n)=>{"use strict";var o=n(25745),i=n(33392),r=o("keys");e.exports=function(e){return r[e]||(r[e]=i(e))}},66351:(e,t,n)=>{"use strict";e.exports=n(57787)},66422:(e,t,n)=>{"use strict";n.d(t,{$o:()=>f,B6:()=>p,D9:()=>y,DY:()=>Y,DZ:()=>x,H0:()=>I,Jg:()=>c,Ku:()=>N,L2:()=>v,L4:()=>M,MG:()=>_,Nb:()=>k,Nf:()=>a,PF:()=>D,Pk:()=>b,Qg:()=>T,S2:()=>z,SM:()=>C,Sb:()=>d,VN:()=>F,Vy:()=>$,Xq:()=>H,ZA:()=>h,ZW:()=>w,_R:()=>S,_h:()=>L,ax:()=>i,dV:()=>A,g:()=>s,gg:()=>r,gq:()=>P,n:()=>g,nF:()=>u,pt:()=>m,rE:()=>j,t0:()=>l,u8:()=>O,vC:()=>o,wD:()=>R,wP:()=>E});const o=e=>["tabindex",e],i=()=>["role","treegrid"],r=()=>["role","presentation"],s=()=>["role","gridcell"],a=()=>["role","rowheader"],l=()=>["role","rowgroup"],c=()=>["role","columnheader"],d=()=>["role","row"],u=()=>["role","menu"],h=()=>["role","menuitem"],m=()=>["role","menuitemcheckbox"],p=()=>["role","combobox"],f=()=>["role","listbox"],g=()=>["role","option"],b=()=>["role","checkbox"],v=()=>["scope","col"],y=()=>["scope","row"],w=()=>["type","text"],C=e=>["aria-label",e],_=()=>["aria-hidden","true"],S=()=>["aria-disabled","true"],M=()=>["aria-multiselectable","true"],E=e=>["aria-haspopup",e],x=e=>["aria-rowcount",e],k=e=>["aria-colcount",e],T=e=>["aria-rowindex",e],R=e=>["aria-colindex",e],A=e=>["aria-expanded",e],L=e=>["aria-sort",e],O=()=>["aria-readonly","true"],D=()=>["aria-invalid","true"],H=e=>["aria-checked",e],I=()=>["aria-selected","true"],P=()=>["aria-autocomplete","list"],N=e=>["aria-controls",e],F=e=>["aria-activedescendant",e],z=e=>["aria-live",e],j=e=>["aria-relevant",e],Y=e=>["aria-setsize",e],$=e=>["aria-posinset",e]},66584:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},66588:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,fk:()=>s,rb:()=>a});var o=n(82284),i=n(96540),r=n(40961);function s(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return e&&"object"===(0,o.A)(e)&&s(e.nativeElement)?e.nativeElement:s(e)?e:null}function l(e){var t;return a(e)||(e instanceof i.Component?null===(t=r.findDOMNode)||void 0===t?void 0:t.call(r,e):null)}},66699:(e,t,n)=>{"use strict";var o=n(43724),i=n(24913),r=n(6980);e.exports=o?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},66933:(e,t,n)=>{"use strict";var o=n(79504),i=n(34376),r=n(94901),s=n(22195),a=n(655),l=o([].push);e.exports=function(e){if(r(e))return e;if(i(e)){for(var t=e.length,n=[],o=0;o<t;o++){var c=e[o];"string"==typeof c?l(n,c):"number"!=typeof c&&"Number"!==s(c)&&"String"!==s(c)||l(n,a(c))}var d=n.length,u=!0;return function(e,t){if(u)return u=!1,t;if(i(this))return t;for(var o=0;o<d;o++)if(n[o]===e)return t}}}},67018:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}},67357:(e,t,n)=>{"use strict";var o=n(46518),i=n(79504),r=n(67750),s=n(91291),a=n(655),l=n(79039),c=i("".charAt);o({target:"String",proto:!0,forced:l((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=a(r(this)),n=t.length,o=s(e),i=o>=0?o:n+o;return i<0||i>=n?void 0:c(t,i)}})},67680:(e,t,n)=>{"use strict";var o=n(79504);e.exports=o([].slice)},67750:(e,t,n)=>{"use strict";var o=n(64117),i=TypeError;e.exports=function(e){if(o(e))throw new i("Can't call method on "+e);return e}},67979:(e,t,n)=>{"use strict";var o=n(28551);e.exports=function(){var e=o(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},68210:(e,t,n)=>{"use strict";n.d(t,{$e:()=>r,Ay:()=>c});var o={},i=[];function r(e,t){}function s(e,t){}function a(e,t,n){t||o[n]||(e(!1,n),o[n]=!0)}function l(e,t){a(r,e,t)}l.preMessage=function(e){i.push(e)},l.resetWarned=function(){o={}},l.noteOnce=function(e,t){a(s,e,t)};const c=l},68750:(e,t,n)=>{"use strict";var o=n(97080),i=n(94402),r=n(25170),s=n(83789),a=n(38469),l=n(40507),c=i.Set,d=i.add,u=i.has;e.exports=function(e){var t=o(this),n=s(e),i=new c;return r(t)>n.size?l(n.getIterator(),(function(e){u(t,e)&&d(i,e)})):a(t,(function(e){n.includes(e)&&d(i,e)})),i}},69330:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(95093))},69478:(e,t,n)=>{"use strict";n.d(t,{j:()=>r}),n(44114);var o=n(20091),i=n(66422);function r(e,t,n,r,s,a,l){const c=l.ariaTags,d=[],u=[],h=[],m=[];l.className&&(0,o.iQ)(t,l.className),l.readOnly?(d.push(l.readOnlyCellClassName),c&&m.push((0,i.u8)())):c&&h.push((0,i.u8)()[0]),!1===l.valid&&l.invalidCellClassName?(d.push(l.invalidCellClassName),c&&m.push((0,i.PF)())):(u.push(l.invalidCellClassName),c&&h.push((0,i.PF)()[0])),!1===l.wordWrap&&l.noWordWrapClassName&&d.push(l.noWordWrapClassName),!a&&l.placeholder&&d.push(l.placeholderCellClassName),(0,o.vy)(t,u),(0,o.iQ)(t,d),(0,o.De)(t,h),(0,o.Bq)(t,m)}r.RENDERER_TYPE="base"},69532:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function o(e,o,i){return e+" "+n(t[i],e,o)}function i(e,o,i){return n(t[i],e,o)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:o,m:i,mm:o,h:i,hh:o,d:i,dd:o,M:i,MM:o,y:i,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},69565:(e,t,n)=>{"use strict";var o=n(40616),i=Function.prototype.call;e.exports=o?i.bind(i):function(){return i.apply(i,arguments)}},70081:(e,t,n)=>{"use strict";var o=n(69565),i=n(79306),r=n(28551),s=n(16823),a=n(50851),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(i(n))return r(o(n,e));throw new l(s(e)+" is not iterable")}},70217:function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(95093))},71072:(e,t,n)=>{"use strict";var o=n(61828),i=n(88727);e.exports=Object.keys||function(e){return o(e,i)}},71409:(e,t,n)=>{"use strict";function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=typeof e;if("number"===n)return!isNaN(e)&&isFinite(e);if("string"===n){if(0===e.length)return!1;if(1===e.length)return/\d/.test(e);const n=Array.from(new Set([".",...t])).map((e=>`\\${e}`)).join("|");return new RegExp(`^[+-]?(((${n})?\\d+((${n})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`,"i").test(e.trim())}return"object"===n&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}function i(e){return o(e,[","])}function r(e,t,n){let o=-1;for("function"==typeof t?(n=t,t=e):o=e-1;++o<=t&&!1!==n(o););}function s(e,t,n){let o=e+1;for("function"==typeof t&&(n=t,t=0);--o>=t&&!1!==n(o););}function a(e,t){return t=parseInt(t.toString().replace("%",""),10),t=isNaN(t)?0:t,parseInt(e*t/100,10)}function l(e,t,n){return Math.min(e,t)===e?t:Math.max(e,n)===e?n:e}n.d(t,{B5:()=>a,LA:()=>i,Ti:()=>r,fk:()=>s,kf:()=>o,qE:()=>l}),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(98992),n(81454)},72264:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(95093))},72475:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(95093))},72552:(e,t,n)=>{var o=n(51873),i=n(659),r=n(59350),s=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):r(e)}},72577:(e,t,n)=>{"use strict";n(20116)},72652:(e,t,n)=>{"use strict";var o=n(76080),i=n(69565),r=n(28551),s=n(16823),a=n(44209),l=n(26198),c=n(1625),d=n(70081),u=n(50851),h=n(9539),m=TypeError,p=function(e,t){this.stopped=e,this.result=t},f=p.prototype;e.exports=function(e,t,n){var g,b,v,y,w,C,_,S=n&&n.that,M=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),x=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),T=o(t,S),R=function(e){return g&&h(g,"normal"),new p(!0,e)},A=function(e){return M?(r(e),k?T(e[0],e[1],R):T(e[0],e[1])):k?T(e,R):T(e)};if(E)g=e.iterator;else if(x)g=e;else{if(!(b=u(e)))throw new m(s(e)+" is not iterable");if(a(b)){for(v=0,y=l(e);y>v;v++)if((w=A(e[v]))&&c(f,w))return w;return new p(!1)}g=d(e,b)}for(C=E?e.next:g.next;!(_=i(C,g)).done;){try{w=A(_.value)}catch(e){h(g,"throw",e)}if("object"==typeof w&&w&&c(f,w))return w}return new p(!1)}},72777:(e,t,n)=>{"use strict";var o=n(69565),i=n(20034),r=n(10757),s=n(55966),a=n(84270),l=n(78227),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!i(e)||r(e))return e;var n,l=s(e,d);if(l){if(void 0===t&&(t="default"),n=o(l,e,t),!i(n)||r(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},73386:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(95093))},73506:(e,t,n)=>{"use strict";var o=n(13925),i=String,r=TypeError;e.exports=function(e){if(o(e))return e;throw new r("Can't set "+i(e)+" as a prototype")}},73635:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(95093))},73738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},73739:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(95093))},73893:(e,t,n)=>{"use strict";function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>o})},74063:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(95093))},76080:(e,t,n)=>{"use strict";var o=n(27476),i=n(79306),r=n(40616),s=o(o.bind);e.exports=function(e,t){return i(e),void 0===t?e:r?s(e,t):function(){return e.apply(t,arguments)}}},76288:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(82284),i=Symbol.for("react.element"),r=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function a(e){return e&&"object"===(0,o.A)(e)&&(e.$$typeof===i||e.$$typeof===r)&&e.type===s}},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,i,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(o)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);o&&s[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),i&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=i):d[4]="".concat(i)),t.push(d))}},t}},76396:(e,t,n)=>{"use strict";n.d(t,{ML:()=>p,NB:()=>g,Qz:()=>a,_e:()=>f,ay:()=>s,f7:()=>b}),n(16280),n(44114),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(98992),n(37550);var o=n(94814),i=n(77325),r=n(65615);const s=0,a=1,l=2,c=3,d=[c,l],u=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],h=Symbol("root"),m=Symbol("child");function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(t!==h&&t!==m)throw new Error("The second argument is used internally only and cannot be overwritten.");const n=Array.isArray(e),i=t===h;let r=s;if(n){const t=e[0];0===e.length?r=a:i&&t instanceof o.A?r=c:i&&Array.isArray(t)?r=p(t,m):e.length>=2&&e.length<=4&&!e.some(((e,t)=>!u[t].includes(typeof e)))&&(r=l)}return r}function f(e){let{createCellCoords:t,createCellRange:n,keepDirection:o=!1,propToCol:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!d.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(s){const a=e===c;let l=a?s.from.row:s[0],d=a?s.from.col:s[1],u=a?s.to.row:s[2],h=a?s.to.col:s[3];if("function"==typeof i&&("string"==typeof d&&(d=i(d)),"string"==typeof h&&(h=i(h))),(0,r.b0)(u)&&(u=l),(0,r.b0)(h)&&(h=d),!o){const e=l,t=d,n=u,o=h;l=Math.min(e,n),d=Math.min(t,o),u=Math.max(e,n),h=Math.max(t,o)}const m=t(l,d),p=t(u,h);return n(m,m,p)}}function g(e){const t=p(e.getSelected());if(t===s||t===a)return[];const n=f(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),o=new Set;(0,i.z0)(e.getSelected(),(e=>{const{from:t,to:r}=n(e),s=Math.max(t.col,0),a=r.col-s+1;(0,i.z0)(Array.from(new Array(a),((e,t)=>s+t)),(e=>{o.has(e)||o.add(e)}))}));const r=Array.from(o).sort(((e,t)=>e-t));return(0,i.mu)(r,((e,t,n,o)=>(0!==n&&t===o[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e)),[])}function b(e){const t=p(e.getSelected());if(t===s||t===a)return[];const n=f(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),o=new Set;(0,i.z0)(e.getSelected(),(e=>{const{from:t,to:r}=n(e),s=Math.max(t.row,0),a=r.row-s+1;(0,i.z0)(Array.from(new Array(a),((e,t)=>s+t)),(e=>{o.has(e)||o.add(e)}))}));const r=Array.from(o).sort(((e,t)=>e-t));return(0,i.mu)(r,((e,t,n,o)=>(0!==n&&t===o[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e)),[])}},76562:(e,t,n)=>{"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>o})},77075:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},77132:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>nt,J:()=>y,an:()=>k,Ki:()=>P,zA:()=>H,RC:()=>et,hV:()=>J,IV:()=>Qe});var o=n(64467),i=n(5544),r=n(60436),s=n(89379);const a=function(e){for(var t,n=0,o=0,i=e.length;i>=4;++o,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var l=n(34552),c=n(96540),d=n.t(c,2),u=(n(28104),n(43210),n(23029)),h=n(92901),m="%";function p(e){return e.join(m)}const f=function(){function e(t){(0,u.A)(this,e),(0,o.A)(this,"instanceId",void 0),(0,o.A)(this,"cache",new Map),this.instanceId=t}return(0,h.A)(e,[{key:"get",value:function(e){return this.opGet(p(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(p(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();var g="data-token-hash",b="data-css-hash",v="__cssinjs_instance__";const y=c.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(b,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[v]=t[v]||e,t[v]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat(b,"]"))).forEach((function(t){var n,i=t.getAttribute(b);o[i]?t[v]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[i]=!0}))}return new f(e)}(),defaultCache:!0});var w=n(82284),C=n(20998);new RegExp("CALC_UNIT","g");var _=function(){function e(){(0,u.A)(this,e),(0,o.A)(this,"cache",void 0),(0,o.A)(this,"keys",void 0),(0,o.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,h.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach((function(e){var t;i=i?null===(t=i)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=i)&&void 0!==t&&t.value&&o&&(i.value[1]=this.cacheCallTimes++),null===(n=i)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce((function(e,t){var n=(0,i.A)(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),s=(0,i.A)(r,1)[0];this.delete(s)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,i){if(i===t.length-1)a.set(e,{value:[n,o.cacheCallTimes++]});else{var r=a.get(e);r?r.map||(r.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];var i=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),i}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();(0,o.A)(_,"MAX_CACHE_SIZE",20),(0,o.A)(_,"MAX_CACHE_OFFSET",5);var S=n(68210),M=0,E=function(){function e(t){(0,u.A)(this,e),(0,o.A)(this,"derivatives",void 0),(0,o.A)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=M,0===t.length&&(0,S.$e)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),M+=1}return(0,h.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),x=new _;function k(e){var t=Array.isArray(e)?e:[e];return x.has(t)||x.set(t,new E(t)),x.get(t)}var T=new WeakMap,R={},A=new WeakMap;function L(e){var t=A.get(e)||"";return t||(Object.keys(e).forEach((function(n){var o=e[n];t+=n,o instanceof E?t+=o.id:o&&"object"===(0,w.A)(o)?t+=L(o):t+=o})),t=a(t),A.set(e,t)),t}function O(e,t){return a("".concat(t,"_").concat(L(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var D=(0,C.A)();function H(e){return"number"==typeof e?"".concat(e,"px"):e}function I(e,t,n){var i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var a=(0,s.A)((0,s.A)({},r),{},(i={},(0,o.A)(i,g,t),(0,o.A)(i,b,n),i)),l=Object.keys(a).map((function(e){var t=a[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},N=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,i.A)(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},F=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,s,a=(0,i.A)(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])r[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(s=n.ignore)&&void 0!==s&&s[l])){var d,u=P(l,null==n?void 0:n.prefix);o[u]="number"!=typeof c||null!=n&&null!==(d=n.unitless)&&void 0!==d&&d[l]?String(c):"".concat(c,"px"),r[l]="var(".concat(u,")")}})),[r,N(o,t,{scope:null==n?void 0:n.scope})]},z=n(30981),j=(0,s.A)({},d).useInsertionEffect;const Y=j?function(e,t,n){return j((function(){return e(),t()}),n)}:function(e,t,n){c.useMemo(e,n),(0,z.A)((function(){return t(!0)}),n)},$=void 0!==(0,s.A)({},d).useInsertionEffect?function(e){var t=[],n=!1;return c.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}},B=function(){return!1};function W(e,t,n,o,s){var a=c.useContext(y).cache,l=p([e].concat((0,r.A)(t))),d=$([l]),u=(B(),function(e){a.opUpdate(l,(function(t){var o=t||[void 0,void 0],r=(0,i.A)(o,2),s=r[0],a=[void 0===s?0:s,r[1]||n()];return e?e(a):a}))});c.useMemo((function(){u()}),[l]);var h=a.opGet(l)[1];return Y((function(){null==s||s(h)}),(function(e){return u((function(t){var n=(0,i.A)(t,2),o=n[0],r=n[1];return e&&0===o&&(null==s||s(h)),[o+1,r]})),function(){a.opUpdate(l,(function(t){var n=t||[],r=(0,i.A)(n,2),s=r[0],c=void 0===s?0:s,u=r[1];return 0==c-1?(d((function(){!e&&a.opGet(l)||null==o||o(u,!1)})),null):[c-1,u]}))}}),[l]),h}var V={},U="css",G=new Map,K=0;var q=function(e,t,n,o){var i=n.getDerivativeToken(e),r=(0,s.A)((0,s.A)({},i),t);return o&&(r=o(r)),r},X="token";function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,c.useContext)(y),d=o.cache.instanceId,u=o.container,h=n.salt,m=void 0===h?"":h,p=n.override,f=void 0===p?V:p,w=n.formatToken,C=n.getComputedToken,_=n.cssVar,S=function(e,n){for(var o=T,i=0;i<n.length;i+=1){var s=n[i];o.has(s)||o.set(s,new WeakMap),o=o.get(s)}return o.has(R)||o.set(R,Object.assign.apply(Object,[{}].concat((0,r.A)(t)))),o.get(R)}(0,t),M=L(S),E=L(f),x=_?L(_):"",k=W(X,[m,e.id,M,E,x],(function(){var t,n=C?C(S,f,e):q(S,f,e,w),o=(0,s.A)({},n),r="";if(_){var l=F(n,_.key,{prefix:_.prefix,ignore:_.ignore,unitless:_.unitless,preserve:_.preserve}),c=(0,i.A)(l,2);n=c[0],r=c[1]}var d=O(n,m);n._tokenKey=d,o._tokenKey=O(o,m);var u=null!==(t=null==_?void 0:_.key)&&void 0!==t?t:d;n._themeKey=u,function(e){G.set(e,(G.get(e)||0)+1)}(u);var h="".concat(U,"-").concat(a(d));return n._hashId=h,[n,h,o,r,(null==_?void 0:_.key)||""]}),(function(e){!function(e,t){G.set(e,(G.get(e)||0)-1);var n=Array.from(G.keys()),o=n.filter((function(e){return(G.get(e)||0)<=0}));n.length-o.length>K&&o.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(g,'="').concat(e,'"]')).forEach((function(e){var n;e[v]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),G.delete(e)}))}(e[0]._themeKey,d)}),(function(e){var t=(0,i.A)(e,4),n=t[0],o=t[3];if(_&&o){var r=(0,l.BD)(o,a("css-variables-".concat(n._themeKey)),{mark:b,prepend:"queue",attachTo:u,priority:-999});r[v]=d,r.setAttribute(g,n._themeKey)}}));return k}var Q=n(58168);const Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ee="comm",te="rule",ne="decl",oe="@import",ie="@namespace",re="@keyframes",se="@layer",ae=Math.abs,le=String.fromCharCode;function ce(e){return e.trim()}function de(e,t,n){return e.replace(t,n)}function ue(e,t,n){return e.indexOf(t,n)}function he(e,t){return 0|e.charCodeAt(t)}function me(e,t,n){return e.slice(t,n)}function pe(e){return e.length}function fe(e,t){return t.push(e),e}function ge(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function be(e,t,n,o){switch(e.type){case se:if(e.children.length)break;case oe:case ie:case ne:return e.return=e.return||e.value;case ee:return"";case re:return e.return=e.value+"{"+ge(e.children,o)+"}";case te:if(!pe(e.value=e.props.join(",")))return""}return pe(n=ge(e.children,o))?e.return=e.value+"{"+n+"}":""}Object.assign;var ve=1,ye=1,we=0,Ce=0,_e=0,Se="";function Me(e,t,n,o,i,r,s,a){return{value:e,root:t,parent:n,type:o,props:i,children:r,line:ve,column:ye,length:s,return:"",siblings:a}}function Ee(){return _e=Ce>0?he(Se,--Ce):0,ye--,10===_e&&(ye=1,ve--),_e}function xe(){return _e=Ce<we?he(Se,Ce++):0,ye++,10===_e&&(ye=1,ve++),_e}function ke(){return he(Se,Ce)}function Te(){return Ce}function Re(e,t){return me(Se,e,t)}function Ae(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Le(e){return ce(Re(Ce-1,He(91===e?e+2:40===e?e+1:e)))}function Oe(e){for(;(_e=ke())&&_e<33;)xe();return Ae(e)>2||Ae(_e)>3?"":" "}function De(e,t){for(;--t&&xe()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Re(e,Te()+(t<6&&32==ke()&&32==xe()))}function He(e){for(;xe();)switch(_e){case e:return Ce;case 34:case 39:34!==e&&39!==e&&He(_e);break;case 40:41===e&&He(e);break;case 92:xe()}return Ce}function Ie(e,t){for(;xe()&&e+_e!==57&&(e+_e!==84||47!==ke()););return"/*"+Re(t,Ce-1)+"*"+le(47===e?e:xe())}function Pe(e){for(;!Ae(ke());)xe();return Re(e,Ce)}function Ne(e){return function(e){return Se="",e}(Fe("",null,null,null,[""],e=function(e){return ve=ye=1,we=pe(Se=e),Ce=0,[]}(e),0,[0],e))}function Fe(e,t,n,o,i,r,s,a,l){for(var c=0,d=0,u=s,h=0,m=0,p=0,f=1,g=1,b=1,v=0,y="",w=i,C=r,_=o,S=y;g;)switch(p=v,v=xe()){case 40:if(108!=p&&58==he(S,u-1)){-1!=ue(S+=de(Le(v),"&","&\f"),"&\f",ae(c?a[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:S+=Le(v);break;case 9:case 10:case 13:case 32:S+=Oe(p);break;case 92:S+=De(Te()-1,7);continue;case 47:switch(ke()){case 42:case 47:fe(je(Ie(xe(),Te()),t,n,l),l),5!=Ae(p||1)&&5!=Ae(ke()||1)||!pe(S)||" "===me(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*f:a[c++]=pe(S)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+d:-1==b&&(S=de(S,/\f/g,"")),m>0&&(pe(S)-u||0===f&&47===p)&&fe(m>32?Ye(S+";",o,n,u-1,l):Ye(de(S," ","")+";",o,n,u-2,l),l);break;case 59:S+=";";default:if(fe(_=ze(S,t,n,c,d,i,a,y,w=[],C=[],u,r),r),123===v)if(0===d)Fe(S,t,_,_,w,r,u,a,C);else{switch(h){case 99:if(110===he(S,3))break;case 108:if(97===he(S,2))break;default:d=0;case 100:case 109:case 115:}d?Fe(e,_,_,o&&fe(ze(e,_,_,0,0,i,a,y,i,w=[],u,C),C),i,C,u,a,o?w:C):Fe(S,_,_,_,[""],C,0,a,C)}}c=d=m=0,f=b=1,y=S="",u=s;break;case 58:u=1+pe(S),m=p;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==Ee())continue;switch(S+=le(v),v*f){case 38:b=d>0?1:(S+="\f",-1);break;case 44:a[c++]=(pe(S)-1)*b,b=1;break;case 64:45===ke()&&(S+=Le(xe())),h=ke(),d=u=pe(y=S+=Pe(Te())),v++;break;case 45:45===p&&2==pe(S)&&(f=0)}}return r}function ze(e,t,n,o,i,r,s,a,l,c,d,u){for(var h=i-1,m=0===i?r:[""],p=function(e){return e.length}(m),f=0,g=0,b=0;f<o;++f)for(var v=0,y=me(e,h+1,h=ae(g=s[f])),w=e;v<p;++v)(w=ce(g>0?m[v]+" "+y:de(y,/&\f/g,m[v])))&&(l[b++]=w);return Me(e,t,n,0===i?te:a,l,c,d,u)}function je(e,t,n,o){return Me(e,t,n,ee,le(_e),me(e,2,-2),0,o)}function Ye(e,t,n,o,i){return Me(e,t,n,ne,me(e,0,o),me(e,o+1,-1),o,i)}var $e,Be="data-ant-cssinjs-cache-path",We="_FILE_STYLE__",Ve=!0;var Ue="_multi_value_";function Ge(e){return ge(Ne(e),be).replace(/\{%%%\:[^;];}/g,";")}var Ke=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=o.root,l=o.injectHash,c=o.parentSelectors,d=n.hashId,u=n.layer,h=(n.path,n.hashPriority),m=n.transformers,p=void 0===m?[]:m,f=(n.linters,""),g={};function b(t){var o=t.getName(d);if(!g[o]){var r=e(t.style,n,{root:!1,parentSelectors:c}),s=(0,i.A)(r,1)[0];g[o]="@keyframes ".concat(t.getName(d)).concat(s)}}var v=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return v.forEach((function(t){var o="string"!=typeof t||a?t:{};if("string"==typeof o)f+="".concat(o,"\n");else if(o._keyframe)b(o);else{var u=p.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(u).forEach((function(t){var o=u[t];if("object"!==(0,w.A)(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===(0,w.A)(e)&&e&&("_skip_check_"in e||Ue in e)}(o)){var m;function x(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;Z[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(b(t),o=t.getName(d)),f+="".concat(n,":").concat(o,";")}var p=null!==(m=null==o?void 0:o.value)&&void 0!==m?m:o;"object"===(0,w.A)(o)&&null!=o&&o[Ue]&&Array.isArray(p)?p.forEach((function(e){x(t,e)})):x(t,p)}else{var v=!1,y=t.trim(),C=!1;(a||l)&&d?y.startsWith("@")?v=!0:y=function(e,t,n){if(!t)return e;var o=".".concat(t),i="low"===n?":where(".concat(o,")"):o;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",s=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(s).concat(i).concat(o.slice(s.length))].concat((0,r.A)(n.slice(1))).join(" ")})).join(",")}("&"===y?"":t,d,h):!a||d||"&"!==y&&""!==y||(y="",C=!0);var _=e(o,n,{root:C,injectHash:v,parentSelectors:[].concat((0,r.A)(c),[y])}),S=(0,i.A)(_,2),M=S[0],E=S[1];g=(0,s.A)((0,s.A)({},g),E),f+="".concat(y).concat(M)}}))}})),a?u&&(f&&(f="@layer ".concat(u.name," {").concat(f,"}")),u.dependencies&&(g["@layer ".concat(u.name)]=u.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(u.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,g]};function qe(e,t){return a("".concat(e.join("%")).concat(t))}function Xe(){return null}var Je="style";function Qe(e,t){var n=e.token,a=e.path,d=e.hashId,u=e.layer,h=e.nonce,m=e.clientOnly,p=e.order,f=void 0===p?0:p,w=c.useContext(y),_=w.autoClear,S=(w.mock,w.defaultCache),M=w.hashPriority,E=w.container,x=w.ssrInline,k=w.transformers,T=w.linters,R=w.cache,A=w.layer,L=n._tokenKey,O=[L];A&&O.push("layer"),O.push.apply(O,(0,r.A)(a));var H=D,I=W(Je,O,(function(){var e=O.join("|");if(function(e){return function(){if(!$e&&($e={},(0,C.A)())){var e=document.createElement("div");e.className=Be,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,i.A)(t,2),o=n[0],r=n[1];$e[o]=r}));var n,o=document.querySelector("style[".concat(Be,"]"));o&&(Ve=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!$e[e]}(e)){var n=function(e){var t=$e[e],n=null;if(t&&(0,C.A)())if(Ve)n=We;else{var o=document.querySelector("style[".concat(b,'="').concat($e[e],'"]'));o?n=o.innerHTML:delete $e[e]}return[n,t]}(e),o=(0,i.A)(n,2),r=o[0],s=o[1];if(r)return[r,L,s,{},m,f]}var l=t(),c=Ke(l,{hashId:d,hashPriority:M,layer:A?u:void 0,path:a.join("-"),transformers:k,linters:T}),h=(0,i.A)(c,2),p=h[0],g=h[1],v=Ge(p),y=qe(O,v);return[v,L,y,g,m,f]}),(function(e,t){var n=(0,i.A)(e,3)[2];(t||_)&&D&&(0,l.m6)(n,{mark:b})}),(function(e){var t=(0,i.A)(e,4),n=t[0],o=(t[1],t[2]),r=t[3];if(H&&n!==We){var a={mark:b,prepend:!A&&"queue",attachTo:E,priority:f},c="function"==typeof h?h():h;c&&(a.csp={nonce:c});var d=[],u=[];Object.keys(r).forEach((function(e){e.startsWith("@layer")?d.push(e):u.push(e)})),d.forEach((function(e){(0,l.BD)(Ge(r[e]),"_layer-".concat(e),(0,s.A)((0,s.A)({},a),{},{prepend:!0}))}));var m=(0,l.BD)(n,o,a);m[v]=R.instanceId,m.setAttribute(g,L),u.forEach((function(e){(0,l.BD)(Ge(r[e]),"_effect-".concat(e),a)}))}})),P=(0,i.A)(I,3),N=P[0],F=P[1],z=P[2];return function(e){var t,n;return t=x&&!H&&S?c.createElement("style",(0,Q.A)({},(n={},(0,o.A)(n,g,F),(0,o.A)(n,b,z),n),{dangerouslySetInnerHTML:{__html:N}})):c.createElement(Xe,null),c.createElement(c.Fragment,null,t,e)}}var Ze="cssVar";const et=function(e,t){var n=e.key,o=e.prefix,s=e.unitless,a=e.ignore,d=e.token,u=e.scope,h=void 0===u?"":u,m=(0,c.useContext)(y),p=m.cache.instanceId,f=m.container,w=d._tokenKey,C=[].concat((0,r.A)(e.path),[n,h,w]);return W(Ze,C,(function(){var e=t(),r=F(e,n,{prefix:o,unitless:s,ignore:a,scope:h}),l=(0,i.A)(r,2),c=l[0],d=l[1];return[c,d,qe(C,d),n]}),(function(e){var t=(0,i.A)(e,3)[2];D&&(0,l.m6)(t,{mark:b})}),(function(e){var t=(0,i.A)(e,3),o=t[1],r=t[2];if(o){var s=(0,l.BD)(o,r,{mark:b,prepend:"queue",attachTo:f,priority:-999});s[v]=p,s.setAttribute(g,n)}}))};var tt;tt={},(0,o.A)(tt,Je,(function(e,t,n){var o=(0,i.A)(e,6),r=o[0],s=o[1],a=o[2],l=o[3],c=o[4],d=o[5],u=(n||{}).plain;if(c)return null;var h=r,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return h=I(r,s,a,m,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=I(Ge(l[e]),s,"_effect-".concat(e),m,u);e.startsWith("@layer")?h=n+h:h+=n}})),[d,a,h]})),(0,o.A)(tt,X,(function(e,t,n){var o=(0,i.A)(e,5),r=o[2],s=o[3],a=o[4],l=(n||{}).plain;if(!s)return null;var c=r._tokenKey;return[-999,c,I(s,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),(0,o.A)(tt,Ze,(function(e,t,n){var o=(0,i.A)(e,4),r=o[1],s=o[2],a=o[3],l=(n||{}).plain;return r?[-999,s,I(r,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]:null}));const nt=function(){function e(t,n){(0,u.A)(this,e),(0,o.A)(this,"name",void 0),(0,o.A)(this,"style",void 0),(0,o.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,h.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function ot(e){return e.notSplit=!0,e}ot(["borderTop","borderBottom"]),ot(["borderTop"]),ot(["borderBottom"]),ot(["borderLeft","borderRight"]),ot(["borderLeft"]),ot(["borderRight"])},77325:(e,t,n)=>{"use strict";function o(e){const t=e.length;let n=0;for(;n<t;)e[n]=[e[n]],n+=1}function i(e,t){const n=t.length;let o=0;for(;o<n;)e.push(t[o]),o+=1}function r(e){const t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;const n=e.length,o=e[0].length;for(let i=0;i<n;i++)for(let n=0;n<o;n++)t[n]||(t[n]=[]),t[n][i]=e[i][n];return t}function s(e,t,n,o){let i=-1,r=e,s=n;Array.isArray(e)||(r=Array.from(e));const a=r.length;for(o&&a&&(i+=1,s=r[i]),i+=1;i<a;)s=t(s,r[i],i,r),i+=1;return s}function a(e,t){let n=0,o=e;Array.isArray(e)||(o=Array.from(e));const i=o.length,r=[];let s=-1;for(;n<i;){const e=o[n];t(e,n,o)&&(s+=1,r[s]=e),n+=1}return r}function l(e,t){let n=0,o=e;Array.isArray(e)||(o=Array.from(e));const i=o.length,r=[];let s=-1;for(;n<i;){const e=o[n];s+=1,r[s]=t(e,n,o),n+=1}return r}function c(e,t){let n=0,o=e;Array.isArray(e)||(o=Array.from(e));const i=o.length;for(;n<i&&!1!==t(o[n],n,o);)n+=1;return e}function d(e){const t=[];return c(e,(e=>{-1===t.indexOf(e)&&t.push(e)})),t}function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[o,...i]=[...t];let r=o;return c(i,(e=>{r=r.filter((t=>!e.includes(t)))})),r}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)}n.d(t,{Gn:()=>h,Sh:()=>i,YD:()=>l,Zz:()=>o,fg:()=>u,h9:()=>r,jF:()=>d,mu:()=>s,y0:()=>a,z0:()=>c}),n(44114),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(98992),n(54520)},77329:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},77347:(e,t,n)=>{"use strict";var o=n(43724),i=n(69565),r=n(48773),s=n(6980),a=n(25397),l=n(56969),c=n(39297),d=n(35917),u=Object.getOwnPropertyDescriptor;t.f=o?u:function(e,t){if(e=a(e),t=l(t),d)try{return u(e,t)}catch(e){}if(c(e,t))return s(!i(r.f,e,t),e[t])}},77584:(e,t,n)=>{"use strict";var o=n(20034),i=n(66699);e.exports=function(e,t){o(t)&&"cause"in t&&i(e,"cause",t.cause)}},77629:(e,t,n)=>{"use strict";var o=n(96395),i=n(44576),r=n(39433),s="__core-js_shared__",a=e.exports=i[s]||r(s,{});(a.versions||(a.versions=[])).push({version:"3.43.0",mode:o?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},77659:e=>{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},77710:(e,t,n)=>{"use strict";n.d(t,{A:()=>s}),n(44114);var o=n(32919),i=n(83986);const r={_localHooks:Object.create(null),addLocalHook(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},runLocalHooks(e,t,n,o,r,s,a){if(this._localHooks[e]){const l=this._localHooks[e].length;for(let c=0;c<l;c++)(0,i.Ty)(this._localHooks[e][c],this,t,n,o,r,s,a)}},clearLocalHooks(){return this._localHooks={},this}};(0,o.LH)(r,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});const s=r},77722:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var o=n(96540),i=n(34164),r=n(21362),s=n(26739),a=n(39241),l=n(20439),c=n(42030),d=n(49565),u=n(90729),h=n(1152),m=n(85078),p=n(96148),f=n(1908);function g(e){return(0,f.Ay)("MuiAccordion",e)}const b=(0,p.A)("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]);var v=n(74848);const y=(0,s.Ay)(d.A,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${b.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((0,a.A)((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${b.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${b.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}})),(0,a.A)((({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${b.expanded}`]:{margin:"16px 0"}}}]})))),w=(0,s.Ay)("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),C=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiAccordion"}),{children:s,className:a,defaultExpanded:d=!1,disabled:p=!1,disableGutters:f=!1,expanded:b,onChange:C,square:_=!1,slots:S={},slotProps:M={},TransitionComponent:E,TransitionProps:x,...k}=n,[T,R]=(0,h.A)({controlled:b,default:d,name:"Accordion",state:"expanded"}),A=o.useCallback((e=>{R(!T),C&&C(e,!T)}),[T,C,R]),[L,...O]=o.Children.toArray(s),D=o.useMemo((()=>({expanded:T,disabled:p,disableGutters:f,toggle:A})),[T,p,f,A]),H={...n,square:_,disabled:p,disableGutters:f,expanded:T},I=(e=>{const{classes:t,square:n,expanded:o,disabled:i,disableGutters:s}=e,a={root:["root",!n&&"rounded",o&&"expanded",i&&"disabled",!s&&"gutters"],heading:["heading"],region:["region"]};return(0,r.A)(a,g,t)})(H),P={slots:{transition:E,...S},slotProps:{transition:x,...M}},[N,F]=(0,m.A)("root",{elementType:y,externalForwardedProps:{...P,...k},className:(0,i.A)(I.root,a),shouldForwardComponentProp:!0,ownerState:H,ref:t,additionalProps:{square:_}}),[z,j]=(0,m.A)("heading",{elementType:w,externalForwardedProps:P,className:I.heading,ownerState:H}),[Y,$]=(0,m.A)("transition",{elementType:c.A,externalForwardedProps:P,ownerState:H});return(0,v.jsxs)(N,{...F,children:[(0,v.jsx)(z,{...j,children:(0,v.jsx)(u.A.Provider,{value:D,children:L})}),(0,v.jsx)(Y,{in:T,timeout:"auto",...$,children:(0,v.jsx)("div",{"aria-labelledby":L.props.id,id:L.props["aria-controls"],role:"region",className:I.region,children:O})})]})}))},77736:(e,t,n)=>{var o=n(73738).default,i=n(89045);e.exports=function(e){var t=i(e,"string");return"symbol"==o(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},77740:(e,t,n)=>{"use strict";var o=n(39297),i=n(35031),r=n(77347),s=n(24913);e.exports=function(e,t,n){for(var a=i(t),l=s.f,c=r.f,d=0;d<a.length;d++){var u=a[d];o(e,u)||n&&o(n,u)||l(e,u,c(t,u))}}},77792:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,N:()=>r}),n(98992),n(81454);var o=n(83986),i=n(77325);function r(e,t,n,i){const r=n.length?n[0]:void 0;return[...e.slice(0,r),...n.map(((e,t)=>(0,o.Tn)(i)?i(e,t):i)),...void 0===r?[]:e.slice(r)]}function s(e,t){return(0,i.y0)(e,((e,n)=>!1===t.includes(n)))}},77853:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},78227:(e,t,n)=>{"use strict";var o=n(44576),i=n(25745),r=n(39297),s=n(33392),a=n(4495),l=n(7040),c=o.Symbol,d=i("wks"),u=l?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return r(d,e)||(d[e]=a&&r(c,e)?c[e]:u("Symbol."+e)),d[e]}},78418:(e,t,n)=>{"use strict";e.exports=n(85160)},78474:function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},79039:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},79306:(e,t,n)=>{"use strict";var o=n(94901),i=n(16823),r=TypeError;e.exports=function(e){if(o(e))return e;throw new r(i(e)+" is not a function")}},79402:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},79472:(e,t,n)=>{"use strict";var o,i=n(44576),r=n(18745),s=n(94901),a=n(84215),l=n(82839),c=n(67680),d=n(22812),u=i.Function,h=/MSIE .\./.test(l)||"BUN"===a&&((o=i.Bun.version.split(".")).length<3||"0"===o[0]&&(o[1]<3||"3"===o[1]&&"0"===o[2]));e.exports=function(e,t){var n=t?2:1;return h?function(o,i){var a=d(arguments.length,1)>n,l=s(o)?o:u(o),h=a?c(arguments,n):[],m=a?function(){r(l,this,h)}:l;return t?e(m,i):e(m)}:e}},79504:(e,t,n)=>{"use strict";var o=n(40616),i=Function.prototype,r=i.call,s=o&&i.bind.bind(r,r);e.exports=o?s:function(e){return function(){return r.apply(e,arguments)}}},79680:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},79720:(e,t,n)=>{"use strict";n.d(t,{B:()=>o,b:()=>i});const o="gridDefault",i="editorManager.handlingEditor"},79834:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},79846:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return o||t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},79978:(e,t,n)=>{"use strict";var o=n(46518),i=n(69565),r=n(79504),s=n(67750),a=n(94901),l=n(20034),c=n(60788),d=n(655),u=n(55966),h=n(61034),m=n(2478),p=n(78227),f=n(96395),g=p("replace"),b=TypeError,v=r("".indexOf),y=r("".replace),w=r("".slice),C=Math.max;o({target:"String",proto:!0},{replaceAll:function(e,t){var n,o,r,p,_,S,M,E,x,k,T=s(this),R=0,A="";if(l(e)){if((n=c(e))&&(o=d(s(h(e))),!~v(o,"g")))throw new b("`.replaceAll` does not allow non-global regexes");if(r=u(e,g))return i(r,e,T,t);if(f&&n)return y(d(T),e,t)}for(p=d(T),_=d(e),(S=a(t))||(t=d(t)),M=_.length,E=C(1,M),x=v(p,_);-1!==x;)k=S?d(t(_,x,p)):m(_,p,x,[],void 0,t),A+=w(p,R,x)+k,R=x+M,x=x+E>p.length?-1:v(p,_,x+E);return R<p.length&&(A+=w(p,R)),A}})},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(98587);function i(e,t){if(null==e)return{};var n,i,r=(0,o.A)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}},80436:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(96069),i=n(89379);const r=(0,i.A)((0,i.A)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),s={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},a={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},r),timePickerLocale:Object.assign({},s)},l=a,c="${label} is not a valid ${type}",d={locale:"en",Pagination:o.A,DatePicker:a,TimePicker:s,Calendar:l,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:c,method:c,array:c,object:c,number:c,date:c,boolean:c,integer:c,float:c,regexp:c,email:c,url:c,hex:c},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}}},80741:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?n:t)(o)}},80747:(e,t,n)=>{"use strict";var o=n(66699),i=n(16193),r=n(24659),s=Error.captureStackTrace;e.exports=function(e,t,n,a){r&&(s?s(e,t):o(e,"stack",i(n,a)))}},80886:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r,Y:()=>i});let o=0;const i=()=>(o+=1,`mui-tree-view-${o}`),r=({id:e,treeId:t="",itemId:n})=>null!=e?e:`${t}-${n}`},81148:(e,t,n)=>{"use strict";var o=n(46518),i=n(69565),r=n(72652),s=n(79306),a=n(28551),l=n(1767),c=n(9539),d=n(84549)("every",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:d},{every:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(d)return i(d,this,e);var t=l(this),n=0;return!r(t,(function(t,o){if(!e(t,n++))return o()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},81326:(e,t,n)=>{"use strict";n.d(t,{XG:()=>a,pF:()=>s});var o=n(31216),i=n(10786);const r=e=>e.label,s=(0,o.M)([r,(e,t)=>(0,i.EJ)(e,t)],((e,t)=>!(!t||!e)&&("boolean"==typeof e.isItemEditable?e.isItemEditable:e.isItemEditable(t)))),a=(0,o.M)([r,(e,t)=>t],((e,t)=>!!t&&e?.editedItemId===t));(0,o.M)(r,(e=>!!e?.editedItemId))},81454:(e,t,n)=>{"use strict";n(61701)},81470:(e,t,n)=>{"use strict";n.d(t,{_q:()=>o.A});var o=n(26956);n(12533),n(8719),n(20488),n(68210)},81765:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(95093))},82218:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(95093))},82271:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"минута":"минуту":e+" "+(o=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),o%10==1&&o%100!=11?i[0]:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?i[1]:i[2]);var o,i}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(95093))},82345:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>V});var o=n(96540),i=n.t(o,2),r=n(77132),s=n(61053),a=n(28104),l=n(20488),c=n(18877);const d=(0,o.createContext)(void 0);var u=n(80436);let h=Object.assign({},u.A.Modal),m=[];const p=()=>m.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),u.A.Modal);var f=n(60685);const g=e=>{const{locale:t={},children:n,_ANT_MARK__:i}=e;o.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return m.push(t),h=p(),()=>{m=m.filter((e=>e!==t)),h=p()}}h=Object.assign({},u.A.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const r=o.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return o.createElement(f.A.Provider,{value:r},n)};var b=n(15265),v=n(49806),y=n(50723),w=n(62279),C=n(45748),_=n(2616),S=n(20998),M=n(34552);const E=`-ant-${Date.now()}-${Math.random()}`;var x=n(98119),k=n(48224);var T=n(43210);const R=Object.assign({},i),{useId:A}=R,L=void 0===A?()=>"":A;var O=n(90754),D=n(39319);const H=o.createContext(!0);function I(e){const t=o.useContext(H),{children:n}=e,[,i]=(0,D.Ay)(),{motion:r}=i,s=o.useRef(!1);return s.current||(s.current=t!==r),s.current?o.createElement(H.Provider,{value:r},o.createElement(O.Kq,{motion:r},n)):n}const P=()=>null;var N=n(25905);const F=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let z,j,Y,$;const B=e=>{const{children:t,csp:n,autoInsertSpaceInButton:i,alert:h,anchor:m,form:p,locale:f,componentSize:C,direction:_,space:S,splitter:M,virtual:E,dropdownMatchSelectWidth:R,popupMatchSelectWidth:A,popupOverflow:O,legacyLocale:H,parentContext:z,iconPrefixCls:j,theme:Y,componentDisabled:$,segmented:B,statistic:W,spin:V,calendar:U,carousel:G,cascader:K,collapse:q,typography:X,checkbox:J,descriptions:Q,divider:Z,drawer:ee,skeleton:te,steps:ne,image:oe,layout:ie,list:re,mentions:se,modal:ae,progress:le,result:ce,slider:de,breadcrumb:ue,menu:he,pagination:me,input:pe,textArea:fe,empty:ge,badge:be,radio:ve,rate:ye,switch:we,transfer:Ce,avatar:_e,message:Se,tag:Me,table:Ee,card:xe,tabs:ke,timeline:Te,timePicker:Re,upload:Ae,notification:Le,tree:Oe,colorPicker:De,datePicker:He,rangePicker:Ie,flex:Pe,wave:Ne,dropdown:Fe,warning:ze,tour:je,tooltip:Ye,popover:$e,popconfirm:Be,floatButtonGroup:We,variant:Ve,inputNumber:Ue,treeSelect:Ge}=e,Ke=o.useCallback(((t,n)=>{const{prefixCls:o}=e;if(n)return n;const i=o||z.getPrefixCls("");return t?`${i}-${t}`:i}),[z.getPrefixCls,e.prefixCls]),qe=j||z.iconPrefixCls||w.pM,Xe=n||z.csp;((e,t)=>{const[n,o]=(0,D.Ay)();(0,r.IV)({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[(0,N.jz)(e)]))})(qe,Xe);const Je=function(e,t,n){var o;(0,c.rJ)("ConfigProvider");const i=e||{},r=!1!==i.inherit&&t?t:Object.assign(Object.assign({},v.sb),{hashed:null!==(o=null==t?void 0:t.hashed)&&void 0!==o?o:v.sb.hashed,cssVar:null==t?void 0:t.cssVar}),s=L();return(0,a.A)((()=>{var o,a;if(!e)return t;const l=Object.assign({},r.components);Object.keys(e.components||{}).forEach((t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])}));const c=`css-var-${s.replace(/:/g,"")}`,d=(null!==(o=i.cssVar)&&void 0!==o?o:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof r.cssVar?r.cssVar:{}),"object"==typeof i.cssVar?i.cssVar:{}),{key:"object"==typeof i.cssVar&&(null===(a=i.cssVar)||void 0===a?void 0:a.key)||c});return Object.assign(Object.assign(Object.assign({},r),i),{token:Object.assign(Object.assign({},r.token),i.token),components:l,cssVar:d})}),[i,r],((e,t)=>e.some(((e,n)=>{const o=t[n];return!(0,T.A)(e,o,!0)}))))}(Y,z.theme,{prefixCls:Ke("")}),Qe={csp:Xe,autoInsertSpaceInButton:i,alert:h,anchor:m,locale:f||H,direction:_,space:S,splitter:M,virtual:E,popupMatchSelectWidth:null!=A?A:R,popupOverflow:O,getPrefixCls:Ke,iconPrefixCls:qe,theme:Je,segmented:B,statistic:W,spin:V,calendar:U,carousel:G,cascader:K,collapse:q,typography:X,checkbox:J,descriptions:Q,divider:Z,drawer:ee,skeleton:te,steps:ne,image:oe,input:pe,textArea:fe,layout:ie,list:re,mentions:se,modal:ae,progress:le,result:ce,slider:de,breadcrumb:ue,menu:he,pagination:me,empty:ge,badge:be,radio:ve,rate:ye,switch:we,transfer:Ce,avatar:_e,message:Se,tag:Me,table:Ee,card:xe,tabs:ke,timeline:Te,timePicker:Re,upload:Ae,notification:Le,tree:Oe,colorPicker:De,datePicker:He,rangePicker:Ie,flex:Pe,wave:Ne,dropdown:Fe,warning:ze,tour:je,tooltip:Ye,popover:$e,popconfirm:Be,floatButtonGroup:We,variant:Ve,inputNumber:Ue,treeSelect:Ge},Ze=Object.assign({},z);Object.keys(Qe).forEach((e=>{void 0!==Qe[e]&&(Ze[e]=Qe[e])})),F.forEach((t=>{const n=e[t];n&&(Ze[t]=n)})),void 0!==i&&(Ze.button=Object.assign({autoInsertSpace:i},Ze.button));const et=(0,a.A)((()=>Ze),Ze,((e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some((n=>e[n]!==t[n]))})),{layer:tt}=o.useContext(r.J),nt=o.useMemo((()=>({prefixCls:qe,csp:Xe,layer:tt?"antd":void 0})),[qe,Xe,tt]);let ot=o.createElement(o.Fragment,null,o.createElement(P,{dropdownMatchSelectWidth:R}),t);const it=o.useMemo((()=>{var e,t,n,o;return(0,l.h)((null===(e=u.A.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=et.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=et.form)||void 0===o?void 0:o.validateMessages)||{},(null==p?void 0:p.validateMessages)||{})}),[et,null==p?void 0:p.validateMessages]);Object.keys(it).length>0&&(ot=o.createElement(d.Provider,{value:it},ot)),f&&(ot=o.createElement(g,{locale:f,_ANT_MARK__:"internalMark"},ot)),(qe||Xe)&&(ot=o.createElement(s.A.Provider,{value:nt},ot)),C&&(ot=o.createElement(k.c,{size:C},ot)),ot=o.createElement(I,null,ot);const rt=o.useMemo((()=>{const e=Je||{},{algorithm:t,token:n,components:o,cssVar:i}=e,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?(0,r.an)(t):b.A,l={};Object.entries(o||{}).forEach((([e,t])=>{const n=Object.assign({},t);"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=(0,r.an)(n.algorithm)),delete n.algorithm),l[e]=n}));const c=Object.assign(Object.assign({},y.A),n);return Object.assign(Object.assign({},s),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:i})}),[Je]);return Y&&(ot=o.createElement(v.vG.Provider,{value:rt},ot)),et.warning&&(ot=o.createElement(c._n.Provider,{value:et.warning},ot)),void 0!==$&&(ot=o.createElement(x.X,{disabled:$},ot)),o.createElement(w.QO.Provider,{value:et},ot)},W=e=>{const t=o.useContext(w.QO),n=o.useContext(f.A);return o.createElement(B,Object.assign({parentContext:t,legacyLocale:n},e))};W.ConfigContext=w.QO,W.SizeContext=k.A,W.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:i}=e;void 0!==t&&(z=t),void 0!==n&&(j=n),"holderRender"in e&&($=i),o&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)?function(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},i=(e,t)=>{const i=new _.Y(e),r=(0,C.cM)(i.toRgbString());n[`${t}-color`]=o(i),n[`${t}-color-disabled`]=r[1],n[`${t}-color-hover`]=r[4],n[`${t}-color-active`]=r[6],n[`${t}-color-outline`]=i.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=r[0],n[`${t}-color-deprecated-border`]=r[2]};if(t.primaryColor){i(t.primaryColor,"primary");const e=new _.Y(t.primaryColor),r=(0,C.cM)(e.toRgbString());r.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setA(.12*e.a)));const s=new _.Y(r[0]);n["primary-color-active-deprecated-f-30"]=o(s,(e=>e.setA(.3*e.a))),n["primary-color-active-deprecated-d-02"]=o(s,(e=>e.darken(2)))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);(0,S.A)()&&(0,M.BD)(n,`${E}-dynamic-theme`)}(z||w.yH,o):Y=o)},W.useConfig=function(){return{componentDisabled:(0,o.useContext)(x.A),componentSize:(0,o.useContext)(k.A)}},Object.defineProperty(W,"SizeContext",{get:()=>k.A});const V=W},82348:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]}},82617:(e,t,n)=>{"use strict";n.d(t,{R8:()=>i,z3:()=>r});var o=n(65615);function i(){(0,o.O9)(console)&&console.warn(...arguments)}function r(){(0,o.O9)(console)&&console.error(...arguments)}},82682:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(95093))},82839:(e,t,n)=>{"use strict";var o=n(44576).navigator,i=o&&o.userAgent;e.exports=i?String(i):""},82993:(e,t,n)=>{"use strict";n.d(t,{by:()=>c,qV:()=>d,tR:()=>s}),n(16280);var o=n(34647);const{register:i,getItem:r,hasItem:s,getNames:a,getValues:l}=(0,o.A)("validators");function c(e){if("function"==typeof e)return e;if(!s(e))throw Error(`No registered validator found under "${e}" name`);return r(e)}function d(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE),i(e,t)}},83009:(e,t,n)=>{"use strict";var o=n(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(57536)),r=o(n(82348));const s={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},i.default),timePickerLocale:Object.assign({},r.default)};s.lang.ok="确定",t.default=s},83023:(e,t,n)=>{"use strict";function o(e,t,n){e.addEventListener(t,n,!1)}function i(e,t,n){e.removeEventListener(t,n,!1)}function r(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function s(e){const t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}},n=e.body,s=e.createTextNode(""),a=e.createElement("span");let l;function c(){var e,o;s.textContent=t.textContent(l),a.style.position="absolute",a.style.fontSize=r(l).fontSize,a.style.fontFamily=r(l).fontFamily,a.style.whiteSpace="pre",n.appendChild(a);const i=parseInt((null===(e=r(l))||void 0===e?void 0:e.paddingInlineStart)||0,10),c=parseInt((null===(o=r(l))||void 0===o?void 0:o.paddingInlineEnd)||0,10),d=a.clientWidth+i+c+1;n.removeChild(a);const u=l.style;u.height=`${t.minHeight}px`,t.minWidth>d?u.width=`${t.minWidth}px`:d>t.maxWidth?u.width=`${t.maxWidth}px`:u.width=`${d}px`;const h=l.scrollHeight?l.scrollHeight-1:0;t.minHeight>h?u.height=`${t.minHeight}px`:t.maxHeight<h?(u.height=`${t.maxHeight}px`,u.overflowY="visible"):u.height=`${h}px`}function d(){e.defaultView.setTimeout(c,0)}return{init:function(e,n){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l=e,function(e){if(e&&e.minHeight)if("inherit"===e.minHeight)t.minHeight=l.clientHeight;else{const n=parseInt(e.minHeight,10);isNaN(n)||(t.minHeight=n)}if(e&&e.maxHeight)if("inherit"===e.maxHeight)t.maxHeight=l.clientHeight;else{const n=parseInt(e.maxHeight,10);isNaN(n)||(t.maxHeight=n)}if(e&&e.minWidth)if("inherit"===e.minWidth)t.minWidth=l.clientWidth;else{const n=parseInt(e.minWidth,10);isNaN(n)||(t.minWidth=n)}if(e&&e.maxWidth)if("inherit"===e.maxWidth)t.maxWidth=l.clientWidth;else{const n=parseInt(e.maxWidth,10);isNaN(n)||(t.maxWidth=n)}a.firstChild||(a.className="autoResize",a.style.display="inline-block",a.appendChild(s))}(n),"TEXTAREA"===l.nodeName&&(l.style.resize="none",l.style.height=`${t.minHeight}px`,l.style.minWidth=`${t.minWidth}px`,l.style.maxWidth=`${t.maxWidth}px`,l.style.overflowY="hidden"),i&&(o(l,"input",c),o(l,"keydown",d)),c()},resize:c,unObserve(){i(l,"input",c),i(l,"keydown",d)}}}n.d(t,{j:()=>s})},83440:(e,t,n)=>{"use strict";var o=n(97080),i=n(94402),r=n(89286),s=n(25170),a=n(83789),l=n(38469),c=n(40507),d=i.has,u=i.remove;e.exports=function(e){var t=o(this),n=a(e),i=r(t);return s(t)<=n.size?l(t,(function(e){n.includes(e)&&u(i,e)})):c(n.getIterator(),(function(e){d(i,e)&&u(i,e)})),i}},83650:(e,t,n)=>{"use strict";var o=n(97080),i=n(94402),r=n(89286),s=n(83789),a=n(40507),l=i.add,c=i.has,d=i.remove;e.exports=function(e){var t=o(this),n=s(e).getIterator(),i=r(t);return a(n,(function(e){c(t,e)?d(i,e):l(i,e)})),i}},83789:(e,t,n)=>{"use strict";var o=n(79306),i=n(28551),r=n(69565),s=n(91291),a=n(1767),l="Invalid size",c=RangeError,d=TypeError,u=Math.max,h=function(e,t){this.set=e,this.size=u(t,0),this.has=o(e.has),this.keys=o(e.keys)};h.prototype={getIterator:function(){return a(i(r(this.keys,this.set)))},includes:function(e){return r(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!=t)throw new d(l);var n=s(t);if(n<0)throw new c(l);return new h(e,n)}},83986:(e,t,n)=>{"use strict";n.d(t,{OH:()=>s,Tn:()=>i,Ty:()=>l,cF:()=>a,sg:()=>r});var o=n(65615);function i(e){return"function"==typeof e}function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=null;return function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return o&&clearTimeout(o),o=setTimeout((()=>{t=e.apply(this,r)}),n),t}}function s(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.apply(this,n.concat(o))}}function a(e){const t=e.length;return function n(o){return function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];const a=o.concat(r);let l;return l=a.length>=t?e.apply(this,a):n(a),l}}([])}function l(e,t,n,i,r,s,a,l){return(0,o.O9)(l)?e.call(t,n,i,r,s,a,l):(0,o.O9)(a)?e.call(t,n,i,r,s,a):(0,o.O9)(s)?e.call(t,n,i,r,s):(0,o.O9)(r)?e.call(t,n,i,r):(0,o.O9)(i)?e.call(t,n,i):(0,o.O9)(n)?e.call(t,n):e.call(t)}},84215:(e,t,n)=>{"use strict";var o=n(44576),i=n(82839),r=n(22195),s=function(e){return i.slice(0,e.length)===e};e.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":o.Bun&&"string"==typeof Bun.version?"BUN":o.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(o.process)?"NODE":o.window&&o.document?"BROWSER":"REST"},84270:(e,t,n)=>{"use strict";var o=n(69565),i=n(94901),r=n(20034),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&i(n=e.toString)&&!r(a=o(n,e)))return a;if(i(n=e.valueOf)&&!r(a=o(n,e)))return a;if("string"!==t&&i(n=e.toString)&&!r(a=o(n,e)))return a;throw new s("Can't convert object to primitive value")}},84389:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>_a}),n(16280),n(44114),n(53921),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(98992),n(54520),n(3949),n(81454),n(59848);var o=n(20091),i=n(83986),r=n(65615),s=n(58002),a=n(38419),l=n(25155),c=n(11080),d=n(28061);function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var m=new WeakSet;class p{constructor(e,t,n){var o,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(o=this,i=m),i.add(o),u(this,"hot",void 0),u(this,"tableMeta",void 0),u(this,"selection",void 0),u(this,"eventManager",void 0),u(this,"destroyed",!1),u(this,"activeEditor",void 0),u(this,"cellProperties",void 0),this.hot=e,this.tableMeta=t,this.selection=n,this.eventManager=new d.A(e),this.hot.addHook("afterDocumentKeyDown",(e=>h(m,this,f).call(this,e))),this.hot.addHook("beforeCompositionStart",(e=>h(m,this,f).call(this,e))),this.hot.view._wt.update("onCellDblClick",((e,t,n)=>h(m,this,g).call(this,e,t,n)))}getActiveEditor(){return this.activeEditor}prepareEditor(){var e;if(this.activeEditor&&this.activeEditor.isWaiting())return void this.closeEditor(!1,!1,(e=>{e&&this.prepareEditor()}));const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;if(!t||t.isHeader())return;const{row:n,col:o}=t,i=this.hot.runHooks("modifyGetCellCoords",n,o,!1,"meta");let r=n,s=o;if(Array.isArray(i)&&([r,s]=i),this.cellProperties=this.hot.getCellMeta(r,s),!this.isCellEditable())return void this.clearActiveEditor();const a=this.hot.getCell(n,o,!0);if(a){const e=this.hot.getCellEditor(this.cellProperties),t=this.hot.colToProp(s),i=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(r),s);this.activeEditor=(0,c.L3)(e,this.hot),this.activeEditor.prepare(n,o,t,a,i,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.isCellEditable())return void this.clearActiveEditor();const o=this.hot.getSelectedRangeLast();let i=this.hot.runHooks("beforeBeginEditing",o.highlight.row,o.highlight.col,e,t,n);t instanceof MouseEvent&&"boolean"!=typeof i&&(i=0===this.hot.selection.getLayerLevel()&&o.isSingle()),!1!==i?(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(n&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))):this.clearActiveEditor()}closeEditor(e,t,n){this.activeEditor?this.activeEditor.finishEditing(e,t,n):n&&n(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeLast();if(!e)return!1;const t=this.hot.getCellEditor(this.cellProperties),{row:n,col:o}=e.highlight,{rowIndexMapper:i,columnIndexMapper:r}=this.hot,s=i.isHidden(this.hot.toPhysicalRow(n))||r.isHidden(this.hot.toPhysicalColumn(o));return!(this.cellProperties.readOnly||!t||s)}moveSelectionAfterEnter(e){const t={..."function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(t.row=-t.row,t.col=-t.col),this.hot.selection.isMultiple()?this.selection.transformFocus(t.row,t.col):this.selection.transformStart(t.row,t.col,!0)}destroy(){this.destroyed=!0,this.eventManager.destroy()}}function f(e){const t=this.hot.getSelectedRangeLast();if(!this.hot.isListening()||!t||t.highlight.isHeader()||(0,l.d)(e))return;const{keyCode:n}=e,o=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&((0,a.Yf)(n)||(0,a.SI)(n)||o||this.isEditorOpened()||this.openEditor("",e))}function g(e,t){t.isCell()&&this.openEditor(null,e,!0)}const b=new WeakMap;p.getInstance=function(e,t,n){let o=b.get(e);return o||(o=new p(e,t,n),b.set(e,o)),o};const v=p;var y=n(32919),w=n(82617);function C(e,t,n){_(e,t),t.set(e,n)}function _(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function S(e,t){return e.get(E(e,t))}function M(e,t,n){return e.set(E(e,t),n),n}function E(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const x=Object.freeze({CELL:"cell",MIXED:"mixed"});var k=new WeakMap,T=new WeakMap,R=new WeakMap,A=new WeakMap,L=new WeakMap,O=new WeakSet;class D{constructor(e){var t,n=this;_(this,t=O),t.add(this),C(this,k,void 0),C(this,T,void 0),C(this,R,1),C(this,A,null),C(this,L,new Map);const o=e.getSettings();M(k,this,e),M(T,this,o.imeFastEdit?x.MIXED:x.CELL),S(k,this).addHook("afterUpdateSettings",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return E(O,n,N).call(n,...t)})),S(k,this).addHook("afterSelection",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return E(O,n,I).call(n,...t)})),S(k,this).addHook("afterSelectionFocusSet",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return E(O,n,I).call(n,...t)})),S(k,this).addHook("afterSelectionEnd",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return E(O,n,P).call(n,...t)}))}getFocusMode(){return S(T,this)}setFocusMode(e){Object.values(x).includes(e)?M(T,this,e):(0,w.R8)(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return S(R,this)}setRefocusDelay(e){M(R,this,e)}setRefocusElementGetter(e){M(A,this,e)}getRefocusElement(){var e;return"function"==typeof S(A,this)?S(A,this).call(this):null===(e=S(k,this).getActiveEditor())||void 0===e?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const t=e=>{var t,n;const i=null===(t=S(k,this).getSelectedRangeLast())||void 0===t?void 0:t.highlight;if(!i)return;let r=S(k,this).runHooks("modifyFocusedElement",i.row,i.col,e);(0,o.sb)(r)||(r=e),!r||null!==(n=S(k,this).getActiveEditor())&&void 0!==n&&n.isOpened()||r.focus({preventScroll:!0})};e?t(e):E(O,this,H).call(this,(e=>t(e)))}refocusToEditorTextarea(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S(R,this);var n,o;!S(k,this).getSettings().imeFastEdit||null!==(e=S(k,this).getActiveEditor())&&void 0!==e&&e.isOpened()||(null===(n=S(k,this).getActiveEditor())||void 0===n||null===(o=n.refreshValue)||void 0===o||o.call(n),S(L,this).has(t)||S(L,this).set(t,(0,i.sg)((()=>{var e;S(k,this).isDestroyed||null===(e=this.getRefocusElement())||void 0===e||e.select()}),t)),S(L,this).get(t)())}}function H(e){var t;const n=null===(t=S(k,this).getSelectedRangeLast())||void 0===t?void 0:t.highlight;if(!n||!S(k,this).selection.isCellVisible(n))return void e(null);const o=S(k,this).getCell(n.row,n.col,!0);null===o?S(k,this).addHookOnce("afterScroll",(()=>{e(S(k,this).getCell(n.row,n.col,!0))})):e(o)}function I(){E(O,this,H).call(this,(e=>{const{activeElement:t}=S(k,this).rootDocument;t&&(0,o.E3)(t)&&t.blur(),this.focusOnHighlightedCell(e)}))}function P(){E(O,this,H).call(this,(e=>{this.getFocusMode()===x.MIXED&&"TD"===(null==e?void 0:e.nodeName)&&this.refocusToEditorTextarea()}))}function N(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?x.MIXED:x.CELL)}var F=n(77325),z=n(22257),j=n(6833),Y=n(54950),$=n(82993),B=n(24360),W=n(71409),V=n(13968);function U(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function G(e,t){return e.get(q(e,t))}function K(e,t,n){return e.set(q(e,t),n),n}function q(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var X=new WeakMap,J=new WeakMap,Q=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,oe=new WeakMap,ie=new WeakMap,re=new WeakMap;const se=class{constructor(e,t,n,o,i,r){let s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;U(this,X,void 0),U(this,J,void 0),U(this,Q,void 0),U(this,Z,void 0),U(this,ee,void 0),U(this,te,void 0),U(this,ne,void 0),U(this,oe,void 0),U(this,ie,[null,null]),U(this,re,[null,null]),K(X,this,n),K(J,this,t),K(Q,this,i),K(Z,this,r),K(ee,this,s),K(te,this,o),K(ne,this,e),this.registerEvents()}registerEvents(){G(te,this).addEventListener(G(Q,this).holder,"contextmenu",(e=>this.onContextMenu(e))),G(te,this).addEventListener(G(Q,this).TABLE,"mouseover",(e=>this.onMouseOver(e))),G(te,this).addEventListener(G(Q,this).TABLE,"mouseout",(e=>this.onMouseOut(e)));const e=()=>{G(te,this).addEventListener(G(Q,this).holder,"touchstart",(e=>this.onTouchStart(e))),G(te,this).addEventListener(G(Q,this).holder,"touchend",(e=>this.onTouchEnd(e))),this.momentumScrolling||(this.momentumScrolling={}),G(te,this).addEventListener(G(Q,this).holder,"scroll",(()=>{clearTimeout(this.momentumScrolling._timeout),this.momentumScrolling.ongoing||G(X,this).getSetting("onBeforeTouchScroll"),this.momentumScrolling.ongoing=!0,this.momentumScrolling._timeout=setTimeout((()=>{this.touchApplied||(this.momentumScrolling.ongoing=!1,G(X,this).getSetting("onAfterMomentumScroll"))}),200)}))};(0,s.rr)()?e():((0,V.yd)()&&e(),(()=>{G(te,this).addEventListener(G(Q,this).holder,"mouseup",(e=>this.onMouseUp(e))),G(te,this).addEventListener(G(Q,this).holder,"mousedown",(e=>this.onMouseDown(e)))})())}selectedCellWasTouched(e){const t=this.parentCell(e).coords;if(G(oe,this)&&t){const[e,n]=[t.row,G(oe,this).from.row],[o,i]=[t.col,G(oe,this).from.col];return e===n&&o===i}return!1}parentCell(e){const t={},n=G(Q,this).TABLE,i=(0,o.cr)(e,["TD","TH"],n);return i?(t.coords=G(Q,this).getCoords(i),t.TD=i):(0,o.nB)(e,"wtBorder")&&(0,o.nB)(e,"current")?(t.coords=G(Z,this).getFocusSelection().cellRange.highlight,t.TD=G(Q,this).getCell(t.coords)):(0,o.nB)(e,"wtBorder")&&(0,o.nB)(e,"area")&&G(Z,this).getAreaSelection().cellRange&&(t.coords=G(Z,this).getAreaSelection().cellRange.to,t.TD=G(Q,this).getCell(t.coords)),t}onMouseDown(e){const t=G(J,this).rootDocument.activeElement,n=(0,i.OH)(o.PA,e.target),r=e.target;if(!["TD","TH"].includes(t.nodeName)&&(r===t||n(0)===t||n(1)===t))return;const s=this.parentCell(r);(0,o.nB)(r,"corner")?G(X,this).getSetting("onCellCornerMouseDown",e,r):s.TD&&G(X,this).has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,s.coords,s.TD),(0===e.button||this.touchApplied)&&s.TD&&(G(re,this)[0]=s.TD,clearTimeout(G(ie,this)[0]),G(ie,this)[0]=setTimeout((()=>{G(re,this)[0]=null}),1e3))}onContextMenu(e){if(G(X,this).has("onCellContextMenu")){const t=this.parentCell(e.target);t.TD&&this.callListener("onCellContextMenu",e,t.coords,t.TD)}}onMouseOver(e){if(!G(X,this).has("onCellMouseOver"))return;const t=G(Q,this).TABLE,n=(0,o.cr)(e.target,["TD","TH"],t),i=G(ee,this)||this;n&&n!==i.lastMouseOver&&(0,o.aO)(n,t)&&(i.lastMouseOver=n,this.callListener("onCellMouseOver",e,G(Q,this).getCoords(n),n))}onMouseOut(e){if(!G(X,this).has("onCellMouseOut"))return;const t=G(Q,this).TABLE,n=(0,o.cr)(e.target,["TD","TH"],t),i=(0,o.cr)(e.relatedTarget,["TD","TH"],t),r=G(ee,this)||this;n&&n!==i&&(0,o.aO)(n,t)&&(this.callListener("onCellMouseOut",e,G(Q,this).getCoords(n),n),null===i&&(r.lastMouseOver=null))}onMouseUp(e){const t=this.parentCell(e.target);t.TD&&G(X,this).has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,t.coords,t.TD),(0===e.button||this.touchApplied)&&(t.TD===G(re,this)[0]&&t.TD===G(re,this)[1]?((0,o.nB)(e.target,"corner")?this.callListener("onCellCornerDblClick",e,t.coords,t.TD):this.callListener("onCellDblClick",e,t.coords,t.TD),G(re,this)[0]=null,G(re,this)[1]=null):t.TD===G(re,this)[0]&&(G(re,this)[1]=t.TD,clearTimeout(G(ie,this)[1]),G(ie,this)[1]=setTimeout((()=>{G(re,this)[1]=null}),500)))}onTouchStart(e){K(oe,this,G(Z,this).getFocusSelection().cellRange),this.touchApplied=!0,this.onMouseDown(e)}onTouchEnd(e){var t;const n=e.target,o=null===(t=this.parentCell(n))||void 0===t?void 0:t.coords,i=(0,r.O9)(o)&&o.row>=0&&o.col>=0;if(e.cancelable&&i&&G(X,this).getSetting("isDataViewInstance")){const t=["A","BUTTON","INPUT"];(0,s.un)()&&((0,s.B6)()||(0,s.wF)())&&this.selectedCellWasTouched(n)&&!t.includes(n.tagName)?e.preventDefault():this.selectedCellWasTouched(n)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}callListener(e,t,n,o){const i=G(X,this).getSettingPure(e);i&&i(t,n,o,G(ne,this).call(this))}destroy(){clearTimeout(G(ie,this)[0]),clearTimeout(G(ie,this)[1]),G(te,this).destroy()}};function ae(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(8872);const le=class{constructor(e,t,n){ae(this,"offset",void 0),ae(this,"total",void 0),ae(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=n}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleRowHeadedColumnToSourceColumn(e){return this.renderedToSource(this.offsettedTH(e))}sourceColumnToVisibleRowHeadedColumn(e){return this.unOffsettedTH(this.sourceToRendered(e))}};function ce(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const de=class{constructor(e,t,n){ce(this,"offset",void 0),ce(this,"total",void 0),ce(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=n}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleColHeadedRowToSourceRow(e){return this.renderedToSource(this.offsettedTH(e))}sourceRowToVisibleColHeadedRow(e){return this.unOffsettedTH(this.sourceToRendered(e))}};function ue(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class he{constructor(){ue(this,"currentSize",0),ue(this,"nextSize",0),ue(this,"currentOffset",0),ue(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}function me(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class pe{constructor(){me(this,"size",new he),me(this,"workingSpace",0),me(this,"sharedSize",null)}setSize(e){this.size.setSize(e)}setOffset(e){this.size.setOffset(e)}getViewSize(){return this.size}isShared(){return null!==this.sharedSize}isPlaceOn(e){return this.workingSpace===e}append(e){this.workingSpace=1,e.workingSpace=2,this.sharedSize=e.getViewSize()}prepend(e){this.workingSpace=2,e.workingSpace=1,this.sharedSize=e.getViewSize()}}n(13609);class fe{constructor(e,t){var n,o,i;n=this,i=[],(o=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(o="order"))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,this.order=[...Array(t).keys()].map((t=>e+t))}get length(){return this.order.length}has(e){return this.order.indexOf(e)>-1}get(e){return e<this.order.length?this.order[e]:-1}remove(e){this.order.splice(this.order.indexOf(e),1)}prepend(e){return this.order.unshift(e),this.order.pop()}}class ge{constructor(e){var t,n,o;t=this,o=void 0,(n=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(n="sizeSet"))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:t,nextSize:n}=e.getViewSize();let o=Math.max(n,t);if(0===o)return[];const{currentOffset:i,nextOffset:r}=e.getViewSize(),s=new fe(i,t),a=new fe(r,n),l=[];for(let t=0;t<o;t++){const i=s.get(t),r=a.get(t);if(-1===r)l.push(["remove",i]);else if(-1===i)!e.isShared()||e.isShared()&&e.isPlaceOn(2)?l.push(["append",r]):l.push(["prepend",r]);else if(r>i)s.has(r)&&(s.remove(r),n<=s.length&&(o-=1)),l.push(["replace",r,i]);else if(r<i){const e=s.prepend(r);l.push(["insert_before",r,i,e])}else l.push(["none",r])}return l}}function be(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ve{constructor(e,t){be(this,"rootNode",void 0),be(this,"nodesPool",void 0),be(this,"sizeSet",new pe),be(this,"collectedNodes",[]),be(this,"viewDiffer",new ge(this.sizeSet)),be(this,"leads",[]),this.rootNode=e,this.nodesPool=t}setSize(e){return this.sizeSet.setSize(e),this}setOffset(e){return this.sizeSet.setOffset(e),this}isSharedViewSet(){return this.sizeSet.isShared()}getNode(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}getCurrentNode(){const e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}applyCommand(e){const{rootNode:t}=this,[n,o,i,r]=e,s=this.nodesPool(o);switch(this.collectedNodes.push(s),n){case"prepend":t.insertBefore(s,t.firstChild);break;case"append":t.appendChild(s);break;case"insert_before":t.insertBefore(s,this.nodesPool(i)),t.removeChild(this.nodesPool(r));break;case"replace":t.replaceChild(s,this.nodesPool(i));break;case"remove":t.removeChild(s)}}start(){this.collectedNodes.length=0,this.leads=this.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}class ye extends ve{prependView(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}appendView(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}function we(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ce{constructor(e){we(this,"nodeType",void 0),we(this,"pool",new Map),this.nodeType=e.toUpperCase()}setRootDocument(e){this.rootDocument=e}obtain(e,t){const n="number"==typeof t?`${e}x${t}`:e.toString();if(this.pool.has(n))return this.pool.get(n);const o=this.rootDocument.createElement(this.nodeType);return this.pool.set(n,o),o}}function _e(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Se{constructor(e,t){_e(this,"nodesPool",null),_e(this,"nodeType",void 0),_e(this,"rootNode",void 0),_e(this,"table",null),_e(this,"renderedNodes",0),this.nodesPool="string"==typeof e?new Ce(e):null,this.nodeType=e,this.rootNode=t}setTable(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}adjust(){}render(){}}var Me=n(66422);function Ee(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class xe extends Se{constructor(){super("TH"),Ee(this,"orderViews",new WeakMap),Ee(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new ye(e,(e=>this.nodesPool.obtain(this.sourceRowIndex,e))),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,rowHeaderFunctions:t,rowHeadersCount:n,rows:i,cells:r}=this.table;for(let s=0;s<e;s++){const e=this.table.renderedRowToSource(s),a=i.getRenderedNode(s);this.sourceRowIndex=e;const l=this.obtainOrderView(a),c=r.obtainOrderView(a);l.appendView(c).setSize(n).setOffset(0).start();for(let i=n-1;i>=0;i--){l.render();const n=l.getCurrentNode();n.className="",n.removeAttribute("style"),(0,o.De)(n,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,o.Bq)(n,[(0,Me.Nf)(),(0,Me.D9)(),(0,Me.wD)(i+1),(0,Me.vC)(-1)]),t[i](e,n,i)}l.end()}}}class ke extends Se{constructor(e){super(null,e)}adjust(){const{columnHeadersCount:e,rowHeadersCount:t}=this.table;let n=this.rootNode.firstChild;if(e){const{columnsToRender:o}=this.table,i=o+t;for(let t=0,o=e;t<o;t++){for(n=this.rootNode.childNodes[t],n||(n=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(n)),this.renderedNodes=n.childNodes.length;this.renderedNodes<i;)n.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>i;)n.removeChild(n.lastChild),this.renderedNodes-=1}const r=this.rootNode.childNodes.length;if(r>e)for(let t=e;t<r;t++)this.rootNode.removeChild(this.rootNode.lastChild)}else n&&(0,o.Ie)(n)}render(){const{columnHeadersCount:e}=this.table;this.table.isAriaEnabled()&&(0,o.Bq)(this.rootNode,[(0,Me.t0)()]);for(let t=0;t<e;t+=1){const{columnHeaderFunctions:e,columnsToRender:n,rowHeadersCount:i}=this.table,r=this.rootNode.childNodes[t];this.table.isAriaEnabled()&&(0,o.Bq)(r,[(0,Me.Sb)(),(0,Me.Qg)(t+1)]);for(let s=-1*i;s<n;s+=1){const n=this.table.renderedColumnToSource(s),a=r.childNodes[s+i];a.className="",a.removeAttribute("style"),(0,o.De)(a,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,o.Bq)(a,[(0,Me.wD)(s+1+this.table.rowHeadersCount),(0,Me.vC)(-1),(0,Me.Jg)(),...s>=0?[(0,Me.L2)()]:[(0,Me.Sb)()]]),e[t](n,a,t)}}}}var Te=n(85975);let Re=!1;class Ae extends Se{constructor(e){super(null,e)}adjust(){const{columnsToRender:e,rowHeadersCount:t}=this.table,n=e+t;for(;this.renderedNodes<n;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>n;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}render(){this.adjust();const{columnsToRender:e,rowHeadersCount:t}=this.table;!Re&&e>1e3&&(Re=!0,(0,w.R8)(Te.O`Performance tip: Handsontable rendered more than 1000 visible columns.\x20
  49. Consider limiting the number of rendered columns by specifying the table width and/or\x20
  50. turning off the "renderAllColumns" option.`));for(let e=0;e<t;e++){const t=this.table.renderedColumnToSource(e),n=this.table.columnUtils.getHeaderWidth(t);this.rootNode.childNodes[e].style.width=`${n}px`}for(let n=0;n<e;n++){const e=this.table.renderedColumnToSource(n),o=this.table.columnUtils.getWidth(e);this.rootNode.childNodes[n+t].style.width=`${o}px`}const n=this.rootNode.firstChild;n&&(0,o.iQ)(n,"rowHeader")}}const Le="ht__row_even",Oe="ht__row_odd";let De=!1;class He extends Se{constructor(e){var t,n,o;super("TR",e),t=this,o=void 0,(n=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(n="orderView"))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,this.orderView=new ve(e,(e=>this.nodesPool.obtain(e)))}getRenderedNode(e){return this.orderView.getNode(e)}hasStaleContent(e){return this.orderView.hasStaleContent(e)}render(){const{rowsToRender:e}=this.table;!De&&e>1e3&&(De=!0,(0,w.R8)(Te.O`Performance tip: Handsontable rendered more than 1000 visible rows.\x20
  51. Consider limiting the number of rendered rows by specifying the table height and/or\x20
  52. turning off the "renderAllRows" option.`)),this.table.isAriaEnabled()&&(0,o.Bq)(this.rootNode,[(0,Me.t0)()]),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(let i=0;i<e;i++){this.orderView.render();const e=this.orderView.getCurrentNode(),r=this.table.renderedRowToSource(i);var t,n;this.table.isAriaEnabled()&&(0,o.Bq)(e,[(0,Me.Sb)(),(0,Me.Qg)(r+(null!==(t=null===(n=this.table.rowUtils)||void 0===n||null===(n=n.dataAccessObject)||void 0===n?void 0:n.columnHeaders.length)&&void 0!==t?t:0)+1)]),(r+1)%2==0?(0,o.nB)(e,Le)||((0,o.vy)(e,Oe),(0,o.iQ)(e,Le)):(0,o.nB)(e,Oe)||((0,o.vy)(e,Le),(0,o.iQ)(e,Oe))}this.orderView.end()}}function Ie(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Pe extends Se{constructor(){super("TD"),Ie(this,"orderViews",new WeakMap),Ie(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new ye(e,(e=>this.nodesPool.obtain(this.sourceRowIndex,e)),this.nodeType),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,columnsToRender:t,rows:n,rowHeaders:i}=this.table;for(let a=0;a<e;a++){const e=this.table.renderedRowToSource(a),l=n.getRenderedNode(a);this.sourceRowIndex=e;const c=this.obtainOrderView(l),d=i.obtainOrderView(l);c.prependView(d).setSize(t).setOffset(0).start();for(let n=0;n<t;n++){c.render();const t=this.table.renderedColumnToSource(n),i=c.getCurrentNode();var r,s;(0,o.nB)(i,"hide")||(i.className=""),i.removeAttribute("style"),i.removeAttribute("dir"),(0,o.De)(i,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.cellRenderer(e,t,i),this.table.isAriaEnabled()&&(0,o.Bq)(i,[...i.hasAttribute("role")?[]:[(0,Me.g)()],(0,Me.vC)(-1),(0,Me.wD)(t+(null!==(r=null===(s=this.table.rowUtils)||void 0===s||null===(s=s.dataAccessObject)||void 0===s?void 0:s.rowHeaders.length)&&void 0!==r?r:0)+1)])}c.end()}}}function Ne(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Fe{constructor(e){let{cellRenderer:t,stylesHandler:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ne(this,"rootNode",void 0),Ne(this,"rootDocument",void 0),Ne(this,"rowHeaders",null),Ne(this,"columnHeaders",null),Ne(this,"colGroup",null),Ne(this,"rows",null),Ne(this,"cells",null),Ne(this,"rowFilter",null),Ne(this,"columnFilter",null),Ne(this,"rowUtils",null),Ne(this,"columnUtils",null),Ne(this,"rowsToRender",0),Ne(this,"columnsToRender",0),Ne(this,"rowHeaderFunctions",[]),Ne(this,"rowHeadersCount",0),Ne(this,"columnHeaderFunctions",[]),Ne(this,"columnHeadersCount",0),Ne(this,"cellRenderer",void 0),Ne(this,"activeOverlayName",void 0),Ne(this,"stylesHandler",void 0),this.rootNode=e,this.rootDocument=this.rootNode.ownerDocument,this.cellRenderer=t,this.stylesHandler=n}setActiveOverlayName(e){this.activeOverlayName=e}setAxisUtils(e,t){this.rowUtils=e,this.columnUtils=t}setViewportSize(e,t){this.rowsToRender=e,this.columnsToRender=t}setFilters(e,t){this.rowFilter=e,this.columnFilter=t}setHeaderContentRenderers(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}setRenderers(){let{rowHeaders:e,columnHeaders:t,colGroup:n,rows:o,cells:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),n.setTable(this),o.setTable(this),i.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=n,this.rows=o,this.cells=i}renderedRowToSource(e){return this.rowFilter.renderedToSource(e)}renderedColumnToSource(e){return this.columnFilter.renderedToSource(e)}isAriaEnabled(){return this.rowUtils.wtSettings.getSetting("ariaTags")}render(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();const{rowsToRender:e,rows:t}=this;for(let n=0;n<e;n++){const e=t.getRenderedNode(n),o=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(n),i=o.getHeightByOverlayName(t,this.activeOverlayName),r=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=i?i-r+"px":""}}}}class ze{constructor(){let{TABLE:e,THEAD:t,COLGROUP:n,TBODY:o,rowUtils:i,columnUtils:r,cellRenderer:s,stylesHandler:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.renderer=new Fe(e,{cellRenderer:s,stylesHandler:a}),this.renderer.setRenderers({rowHeaders:new xe,columnHeaders:new ke(t),colGroup:new Ae(n),rows:new He(o),cells:new Pe}),this.renderer.setAxisUtils(i,r)}setActiveOverlayName(e){return this.renderer.setActiveOverlayName(e),this}setFilters(e,t){return this.renderer.setFilters(e,t),this}setViewportSize(e,t){return this.renderer.setViewportSize(e,t),this}setHeaderContentRenderers(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}adjust(){this.renderer.adjust()}render(){this.renderer.render()}}function je(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ye{constructor(e,t){je(this,"dataAccessObject",void 0),je(this,"wtSettings",void 0),je(this,"headerWidths",new Map),this.dataAccessObject=e,this.wtSettings=t}getWidth(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}getHeaderHeight(e){let t=this.dataAccessObject.stylesHandler.getDefaultRowHeight();const n=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}getHeaderWidth(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}calculateWidths(){const{wtSettings:e}=this;let t=e.getSetting("rowHeaderWidth");if(t=e.getSetting("onModifyRowHeaderWidth",t),null!=t){const n=e.getSetting("rowHeaders").length,o=e.getSetting("defaultColumnWidth");for(let e=0;e<n;e++){let n=Array.isArray(t)?t[e]:t;n=null==n?o:n,this.headerWidths.set(e,n)}}}}function $e(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Be{constructor(e,t){$e(this,"dataAccessObject",void 0),$e(this,"wtSettings",void 0),this.dataAccessObject=e,this.wtSettings=t}getHeight(e){let t=this.wtSettings.getSetting("rowHeight",e);const n=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}getHeightByOverlayName(e,t){let n=this.wtSettings.getSetting("rowHeightByOverlayName",e,t);const o=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==o&&(n=void 0===n?o:Math.max(n,o)),n}}const We="top",Ve="bottom",Ue="inline_start",Ge="top_inline_start_corner",Ke="bottom_inline_start_corner",qe=[We,Ve,Ue,Ge,Ke],Xe=new Map([[We,`ht_clone_${We}`],[Ve,`ht_clone_${Ve}`],[Ue,`ht_clone_${Ue} ht_clone_left`],[Ge,`ht_clone_${Ge} ht_clone_top_left_corner`],[Ke,`ht_clone_${Ke} ht_clone_bottom_left_corner`]]);function Je(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qe=class{constructor(e,t,n,i,r){Je(this,"wtSettings",null),Je(this,"domBindings",void 0),Je(this,"TBODY",null),Je(this,"THEAD",null),Je(this,"COLGROUP",null),Je(this,"hasTableHeight",!0),Je(this,"hasTableWidth",!0),Je(this,"isTableVisible",!1),Je(this,"tableOffset",0),Je(this,"holderOffset",0),this.domBindings=n,this.isMaster="master"===r,this.name=r,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=i,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=n.rootTable,(0,o.vg)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const s=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",(()=>this._modifyRowHeaderWidth(s))),this.rowUtils=new Be(this.dataAccessObject,this.wtSettings),this.columnUtils=new Ye(this.dataAccessObject,this.wtSettings),this.tableRenderer=new ze({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer"),stylesHandler:this.dataAccessObject.stylesHandler})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let n;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,o.nB)(t,"wtHolder")||(n=this.domBindings.rootDocument.createElement("div"),n.className="wtSpreader",t&&t.insertBefore(n,e),n.appendChild(e)),n.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,o.Bq)(n,[(0,Me.gg)()]),n}createHider(e){const t=e.parentNode;let n;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,o.nB)(t,"wtHolder")||(n=this.domBindings.rootDocument.createElement("div"),n.className="wtHider",t&&t.insertBefore(n,e),n.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,o.Bq)(n,[(0,Me.gg)()]),n}createHolder(e){const t=e.parentNode;let n;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,o.nB)(t,"wtHolder")||(n=this.domBindings.rootDocument.createElement("div"),n.style.position="relative",n.className="wtHolder",(0,o.Bq)(n,[(0,Me.vC)(-1)]),t&&t.insertBefore(n,e),this.isMaster&&(n.parentNode.className+="ht_master handsontable",n.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,o.Bq)(n.parentNode,[(0,Me.gg)()])),n.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,o.Bq)(n,[(0,Me.gg)()]),n}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:n,wtViewport:i}=this.dataAccessObject,r=t.getSetting("totalRows"),s=t.getSetting("totalColumns"),a=t.getSetting("rowHeaders"),l=a.length,c=t.getSetting("columnHeaders"),d=c.length;let u=e;if(this.isMaster&&(n.beforeDraw(),this.holderOffset=(0,o.cY)(this.holder),u=i.createCalculators(u),l&&!t.getSetting("fixedColumnsStart"))){const e=n.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(u=!1)}if(u)this.isMaster&&n.refresh(!0);else{this.isMaster?this.tableOffset=(0,o.cY)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new de(e,r,d),this.columnFilter=new le(t,s,l);let u=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),u=!0!==e.skipRender}u&&(this.tableRenderer.setHeaderContentRenderers(a,c),(this.is(Ve)||this.is(Ke))&&this.tableRenderer.setHeaderContentRenderers(a,[]),this.resetOversizedRows(),this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(Ve))&&this.markOversizedRows(),this.isMaster?(this.wtSettings.getSetting("externalRowCalculator")||i.createVisibleCalculators(),n.refresh(!1),n.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(Ve)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let h=!1;return this.isMaster&&(h=n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&(h=n.bottomOverlay.resetFixedPosition()||h),h=n.inlineStartOverlay.resetFixedPosition()||h,n.topInlineStartCornerOverlay&&n.topInlineStartCornerOverlay.resetFixedPosition(),n.bottomInlineStartCornerOverlay&&n.bottomInlineStartCornerOverlay.clone&&n.bottomInlineStartCornerOverlay.resetFixedPosition()),h?(n.refreshAll(),n.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(u),this.isMaster&&n.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let n=this.wtSettings.getSetting("columnHeaders").length;const i=this.dataAccessObject.stylesHandler.getDefaultRowHeight();let r,s,a;const l=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;n;)n-=1,r=this.getColumnHeaderHeight(n),s=this.getColumnHeader(t,n),s&&(a=(0,o.eU)(s),(!r&&i<a||r<a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=a),Array.isArray(l)?null!==l[n]&&void 0!==l[n]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=l[n]):isNaN(l)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=l),this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]<(l[n]||l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=l[n]||l))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,n=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let o=0,i=e.getSetting("columnHeaders").length;o<i;o++)if(n[o]){if(!t[o]||0===t[o].childNodes.length)return;t[o].childNodes[0].style.height=`${n[o]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(Ve))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let n=0;n<e;n++){const e=this.rowFilter.renderedToSource(n);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,n=e.col;const o=this.wtSettings.getSetting("onModifyGetCellCoords",t,n,!this.isMaster,"render");if(o&&Array.isArray(o)&&([t,n]=o),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(n))return-3;if(this.isColumnAfterRenderedColumns(n))return-4;const i=this.getRow(t);if(!i&&t>=0)throw new Error("TR was expected to be rendered but is not");const r=i.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)];if(!r&&n>=0)throw new Error("TD or TH was expected to be rendered but is not");return r}getRow(e){let t=null,n=null;var o,i;return e<0?(t=null===(o=this.rowFilter)||void 0===o?void 0:o.sourceRowToVisibleColHeadedRow(e),n=this.THEAD):(t=null===(i=this.rowFilter)||void 0===i?void 0:i.sourceToRendered(e),n=this.TBODY),void 0!==t&&void 0!==n&&!(n.childNodes.length<t+1)&&n.childNodes[t]}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.THEAD.childNodes[t];return null==n?void 0:n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],n=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach((e=>{const o=e.childNodes[n];o&&t.push(o)})),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const n=this.rowFilter.sourceToRendered(e),o=n<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):n,i=(n<0?this.THEAD:this.TBODY).childNodes[o];return null==i?void 0:i.childNodes[t]}getRowHeaders(e){const t=[],n=this.wtSettings.getSetting("rowHeaders").length;for(let o=0;o<n;o++){const n=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],i=null==n?void 0:n.childNodes[o];i&&t.push(i)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,o.kp)(t,["TD","TH"])),null===t)return null;const n=t.parentNode;if(!n)return null;const i=n.parentNode;let r=(0,o.Pe)(n),s=t.cellIndex;(0,o.yn)(Ge,t,this.wtRootElement)||(0,o.yn)(We,t,this.wtRootElement)?"THEAD"===i.nodeName&&(r-=i.childNodes.length):(0,o.yn)(Ke,t,this.wtRootElement)||(0,o.yn)(Ve,t,this.wtRootElement)?r=this.wtSettings.getSetting("totalRows")-i.childNodes.length+r:i===this.THEAD?r=this.rowFilter.visibleColHeadedRowToSourceRow(r):this.rowFilter&&(r=this.rowFilter.renderedToSource(r)),(0,o.yn)(Ge,t,this.wtRootElement)||(0,o.yn)(Ue,t,this.wtRootElement)||(0,o.yn)(Ke,t,this.wtRootElement)?s=this.columnFilter.offsettedTH(s):this.columnFilter&&(s=this.columnFilter.visibleRowHeadedColumnToSourceColumn(s));const a=this.wtSettings.getSetting("onModifyGetCoordsElement",r,s);return a&&Array.isArray(a)&&([r,s]=a),this.wot.createCellCoords(r,s)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=e*this.dataAccessObject.stylesHandler.getDefaultRowHeight(),n=(0,o.eU)(this.TBODY)-1,i=this.wot.stylesHandler.areCellsBorderBox(),r=i?o.DK:o.eU,s=i?0:1,a=i?1:0;let l,c,d,u,h;if(t!==n||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,d=this.rowFilter.renderedToSource(e),l=this.getRowHeight(d),u=this.getTrForRow(d),h=u.querySelector("th");const t=0===d?a:0;c=h?r(h):r(u)-s,(!l&&this.dataAccessObject.stylesHandler.getDefaultRowHeight()<c-t||l<c)&&(i||(c+=1),this.dataAccessObject.wtViewport.oversizedRows[d]=c)}}getTrForRow(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}isColumnHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}isRowHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}isRowBeforeRenderedRows(e){const t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}isRowAfterRenderedRows(e){return e>this.getLastRenderedRow()}isColumnBeforeRenderedColumns(e){const t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}isColumnAfterRenderedColumns(e){return this.columnFilter&&e>this.getLastRenderedColumn()}isColumnAfterViewport(e){return this.columnFilter&&e>this.getLastVisibleColumn()}isRowAfterViewport(e){return this.rowFilter&&e>this.getLastVisibleRow()}isColumnBeforeViewport(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}isLastRowFullyVisible(){return this.getLastVisibleRow()===this.getLastRenderedRow()}isLastColumnFullyVisible(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}allRowsInViewport(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}allColumnsInViewport(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}getRowHeight(e){return this.rowUtils.getHeight(e)}getColumnHeaderHeight(e){return this.columnUtils.getHeaderHeight(e)}getColumnWidth(e){return this.columnUtils.getWidth(e)}hasDefinedSize(){return this.hasTableHeight&&this.hasTableWidth}getWidth(){return(0,o.Gq)(this.TABLE)}getHeight(){return(0,o.DK)(this.TABLE)}getTotalWidth(){const e=(0,o.Gq)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,o.DK)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,o.zN)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,i.Tn)(e)?e():null;return Array.isArray(t)?(t=[...t],t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}_correctRowHeaderWidth(e){let t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}},Ze={getFirstRenderedRow(){return 0===this.getRenderedRowsCount()?-1:0},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.getRenderedRowsCount()-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsTop"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,y.LH)(Ze,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});const et=Ze,tt={getFirstRenderedColumn(){const e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn(){const e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getFirstPartiallyVisibleColumn(){const e=this.dataAccessObject.startColumnPartiallyVisible;return null===e?-1:e},getLastRenderedColumn(){const e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn(){const e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getLastPartiallyVisibleColumn(){const e=this.dataAccessObject.endColumnPartiallyVisible;return null===e?-1:e},getRenderedColumnsCount(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount(){return this.dataAccessObject.countColumnsVisible},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,y.LH)(tt,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});const nt=tt;class ot extends Qe{constructor(e,t,n,o){super(e,t,n,o,We)}}(0,y.co)(ot,et),(0,y.co)(ot,nt);const it=ot;function rt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var st=new WeakSet;function at(e){const{wtSettings:t,inlineStartOverlay:n,wtTable:i,wtViewport:r,totalColumns:s,rootWindow:a}=this.dataAccessObject;if(n.mainTableScrollableElement===a){let l=null;if(t.getSetting("rtlMode")){const e=i.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(e.right-t)}else l=(0,o.cY)(i.wtRootElement).left;const c=Math.abs((0,o.v_)(a,a));if(l>c){const t=(0,o.xM)(a);let i=r.getRowHeaderWidth();for(let o=1;o<=s;o++)if(i+=n.sumCellSizes(o-1,o),l+i-c>=t){e=o-2;break}}}return e}function lt(e){const{topOverlay:t,wtTable:n,wtViewport:i,totalRows:r,rootWindow:s}=this.dataAccessObject;if(t.mainTableScrollableElement===s){const a=(0,o.cY)(n.wtRootElement),l=(0,o.hY)(s,s);if(a.top>l){const n=(0,o.eU)(s);let c=i.getColumnHeaderHeight();for(let o=1;o<=r;o++)if(c+=t.sumCellSizes(o-1,o),a.top+c-l>=n){e=o-2;break}}}return e}const ct=class{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=st),n.add(t),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,n){if(e.col<0||e.row<0)return!1;const o=this.scrollViewportHorizontally(e.col,t),i=this.scrollViewportVertically(e.row,n);return o||i}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:n,totalColumns:o}=this.dataAccessObject;if(!n)return!1;const i=(0,y.nA)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,i),!Number.isInteger(e)||e<0||e>o)return!1;t=i.value;const{fixedColumnsStart:r,inlineStartOverlay:s}=this.dataAccessObject,a="auto"===t;if(a&&e<r)return!1;const l=this.getFirstVisibleColumn(),c=this.getLastVisibleColumn();let d=!1;return(a&&(e<l||e>c)||!a)&&(d=s.scrollTo(e,a?e>=this.getLastPartiallyVisibleColumn():"end"===t)),d}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:n,totalRows:o}=this.dataAccessObject;if(!n)return!1;const i=(0,y.nA)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,i),!Number.isInteger(e)||e<0||e>o)return!1;t=i.value;const{fixedRowsBottom:r,fixedRowsTop:s,topOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&(e<s||e>o-r-1))return!1;const c=this.getFirstVisibleRow(),d=this.getLastVisibleRow();let u=!1;return(l&&(e<c||e>d)||!l)&&(u=a.scrollTo(e,l?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),u}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return rt(st,this,lt).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return rt(st,this,lt).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return rt(st,this,at).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return rt(st,this,at).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}};var dt=n(3709),ut=n(94814);function ht(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class mt{get eventManager(){return new d.A(this)}constructor(e,t){ht(this,"wtTable",void 0),ht(this,"wtScroll",void 0),ht(this,"wtViewport",void 0),ht(this,"wtOverlays",void 0),ht(this,"selectionManager",void 0),ht(this,"wtEvent",void 0),ht(this,"guid",`wt_${(0,B.DU)()}`),ht(this,"drawInterrupted",!1),ht(this,"drawn",!1),ht(this,"activeOverlayName","master"),ht(this,"domBindings",void 0),ht(this,"wtSettings",void 0),this.domBindings={rootTable:e,rootDocument:e.ownerDocument,rootWindow:e.ownerDocument.defaultView},this.wtSettings=t,this.wtScroll=new ct(this.createScrollDao())}findOriginalHeaders(){const e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(let t=0,n=this.wtTable.THEAD.childNodes[0].childNodes.length;t<n;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,n){(0,o.c6)(n,e[t])}])}}createCellCoords(e,t){return new dt.A(e,t,this.wtSettings.getSetting("rtlMode"))}createCellRange(e,t,n){return new ut.A(e,t,n,this.wtSettings.getSetting("rtlMode"))}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,!this.wtTable.isVisible()||(0,o.Sx)(this.wtTable.wtRootElement.parentNode)?this.drawInterrupted=!0:this.wtTable.draw(e),this}getCell(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);const t=this.wtSettings.getSetting("totalRows"),n=this.wtSettings.getSetting("fixedRowsTop"),o=this.wtSettings.getSetting("fixedRowsBottom"),i=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<n&&e.col<i)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<n)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<i&&e.row>=t-o){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<i)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-o&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}scrollViewport(e,t,n){return this.wtScroll.scrollViewport(e,t,n)}scrollViewportHorizontally(e,t){return this.wtScroll.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this.wtScroll.scrollViewportVertically(e,t)}getViewport(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}destroy(){this.wtOverlays.destroy(),this.wtEvent.destroy()}createScrollDao(){const e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}getTableDao(){const e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selectionManager(){return e.selectionManager},get stylesHandler(){return e.stylesHandler},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get startColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get endColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get startRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get endRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count},get columnHeaders(){return e.wtSettings.getSetting("columnHeaders")},get rowHeaders(){return e.wtSettings.getSetting("rowHeaders")}}}}function pt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ft extends mt{constructor(e,t,n){super(e,t),pt(this,"cloneSource",void 0),pt(this,"cloneOverlay",void 0);const o=this.wtSettings.getSetting("facade",this);this.cloneSource=n.source,this.cloneOverlay=n.overlay,this.stylesHandler=n.stylesHandler,this.wtTable=this.cloneOverlay.createTable(this.getTableDao(),o,this.domBindings,this.wtSettings),this.wtViewport=n.viewport,this.selectionManager=n.selectionManager,this.wtEvent=new se(o,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager,n.event),this.findOriginalHeaders()}}class gt{constructor(e,t,n,i,r){var s,a,l;s=this,l=null,(a=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(a="wtSettings"))in s?Object.defineProperty(s,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[a]=l,(0,y.LH)(this,"wot",e,{writable:!1}),this.domBindings=r,this.facadeGetter=t,this.wtSettings=i;const{TABLE:c,hider:d,spreader:u,holder:h,wtRootElement:m}=this.wot.wtTable;this.instance=this.wot,this.type=n,this.mainTableScrollableElement=null,this.TABLE=c,this.hider=d,this.spreader=u,this.holder=h,this.wtRootElement=m,this.trimmingContainer=(0,o.fX)(this.hider.parentNode.parentNode),this.needFullRender=this.shouldBeRendered(),this.clone=this.makeClone()}hasRenderingStateChanged(){return this.needFullRender!==this.shouldBeRendered()}updateStateOfRendering(e){"before"===e&&this.shouldBeRendered()?this.needFullRender=!0:"after"!==e||this.shouldBeRendered()||(this.needFullRender=!1)}shouldBeRendered(){return!0}updateTrimmingContainer(){this.trimmingContainer=(0,o.fX)(this.hider.parentNode.parentNode)}updateMainScrollableElement(){const{wtTable:e}=this.wot,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,o.K7)(e.TABLE)}getRelativeCellPosition(e,t,n){if(!1===this.clone.wtTable.holder.contains(e))return void(0,w.R8)(`The provided element is not a child of the ${this.type} overlay`);const o=this.mainTableScrollableElement===this.domBindings.rootWindow,i=n<this.wtSettings.getSetting("fixedColumnsStart"),r=t<this.wtSettings.getSetting("fixedRowsTop"),s=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),a=this.clone.wtTable.spreader,l={start:this.getRelativeStartPosition(a),top:a.offsetTop},c={start:this.getRelativeStartPosition(e),top:e.offsetTop};let d=null;return d=o?this.getRelativeCellPositionWithinWindow(r,i,c,l):this.getRelativeCellPositionWithinHolder(r,s,i,c,l),d}getRelativeStartPosition(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}getRelativeCellPositionWithinWindow(e,t,n,i){const r=this.wot.wtTable.wtRootElement.getBoundingClientRect();let s=0,a=0;if(t){let e=r.left;this.isRtl()&&(e=this.domBindings.rootWindow.innerWidth-(r.left+r.width+(0,o.XJ)())),s=e<=0?-1*e:0}else s=i.start;return a=e?this.clone.wtTable.TABLE.getBoundingClientRect().top-r.top:i.top,{start:n.start+s,top:n.top+a}}getRelativeCellPositionWithinHolder(e,t,n,o,i){const r=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),s=this.wot.wtOverlays.topOverlay.getScrollPosition();let a=0,l=0;if(n||(a=r-i.start),t){const e=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+e.top}else e||(l=s-i.top);return{start:o.start-a,top:o.top-l}}makeClone(){if(-1===qe.indexOf(this.type))throw new Error(`Clone type "${this.type}" is not supported.`);const{wtTable:e,wtSettings:t}=this.wot,{rootDocument:n,rootWindow:i}=this.domBindings,r=n.createElement("div"),s=n.createElement("table"),a=e.wtRootElement.parentNode;r.className=`${Xe.get(this.type)} handsontable`,r.setAttribute("dir",this.isRtl()?"rtl":"ltr"),r.style.position="absolute",r.style.top=0,r.style.overflow="visible",this.isRtl()?r.style.right=0:r.style.left=0,t.getSetting("ariaTags")&&(0,o.Bq)(r,[(0,Me.gg)()]),s.className=e.TABLE.className,e.TABLE.getAttribute("role")&&s.setAttribute("role",e.TABLE.getAttribute("role")),r.appendChild(s),a.appendChild(r);const l=this.wtSettings.getSetting("preventOverflow");return!0===l||"horizontal"===l&&this.type===We||"vertical"===l&&this.type===Ue?this.mainTableScrollableElement=i:"hidden"===i.getComputedStyle(a).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=(0,o.K7)(e.TABLE),new ft(s,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selectionManager:this.wot.selectionManager,stylesHandler:this.wot.stylesHandler})}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.needFullRender){const t=this.clone.cloneSource;t.activeOverlayName=this.clone.wtTable.name,this.clone.draw(e),t.activeOverlayName="master"}}reset(){const e=this.clone.wtTable.holder,t=this.clone.wtTable.hider;[e.style,t.style,e.parentNode.style].forEach((e=>{e.width="",e.height=""}))}isRtl(){return this.wtSettings.getSetting("rtlMode")}destroy(){this.clone.eventManager.destroy()}}const bt=e=>{const t=e.stylesHandler;if(t.isClassicTheme())return Object.freeze({width:6,height:6,borderWidth:1,borderStyle:"solid",borderColor:"#FFF"});const n=t.getCSSVariableValue("cell-autofill-size"),o=t.getCSSVariableValue("cell-autofill-border-width"),i=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:n,height:n,borderWidth:o,borderStyle:"solid",borderColor:i})};class vt extends gt{constructor(e,t,n,o){var i,r,s;super(e,t,We,n,o),i=this,s=-1,(r=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(r="cachedFixedRowsTop"))in i?Object.defineProperty(i,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[r]=s,this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop")}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new it(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode,{rootWindow:t}=this.domBindings,n=this.wtSettings.getSetting("preventOverflow");let i=0,r=!1;if(this.trimmingContainer!==t||n&&"vertical"===n)i=this.getScrollPosition(),(0,o.ZK)(e);else{const{wtTable:t}=this.wot,n=t.hider.getBoundingClientRect();r=Math.ceil(n.bottom)===e.offsetHeight,i=this.getOverlayOffset(),(0,o.ON)(e,"0px",`${i}px`)}const s=this.adjustHeaderBordersPosition(i,r);return this.adjustElementsSize(),s}setScrollPosition(e){const{rootWindow:t}=this.domBindings,n=this.mainTableScrollableElement;let i=!1;if(n===t&&e!==t.scrollY){const n=t.scrollY;t.scrollTo((0,o.Vp)(t),e),i=n!==t.scrollY}else if(e!==n.scrollTop){const t=n.scrollTop;n.scrollTop=e,i=t!==n.scrollTop}return i}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const n=this.wot.stylesHandler.getDefaultRowHeight();let o=e,i=0;for(;o<t;){const e=this.wot.wtTable.getRowHeight(o);i+=void 0===e?n:e,o+=1}return i}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:n,rootWindow:i}=this.domBindings,r=this.clone.wtTable.holder.parentNode.style,s=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===s){let i=t.getWorkspaceWidth();t.hasVerticalScroll()&&(i-=(0,o.XJ)(n)),i=Math.min(i,e.wtRootElement.scrollWidth),r.width=`${i}px`}else r.width="";this.clone.wtTable.holder.style.width=r.width;let a=(0,o.DK)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(a=0),r.height=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=bt(this.wot),n=this.wot.selectionManager.getFocusSelection()?parseInt(t.height,10)/2:0;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=`${parseInt(e.parentNode.style.height,10)+n}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){const{wot:n,wtSettings:i}=this,r=(n.cloneSource?n.cloneSource:n).wtTable.holder,s=i.getSetting("columnHeaders"),a=0===i.getSetting("fixedRowsTop")&&s.length>0&&!(0,o.nB)(r.parentNode,"innerBorderTop")?1:0;let l=this.getTableParentOffset(),c=0;if(t&&this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1),t&&r.offsetHeight!==r.clientHeight&&(c=(0,o.XJ)(this.domBindings.rootDocument)),t){const t=i.getSetting("fixedRowsBottom"),o=i.getSetting("totalRows");l+=this.sumCellSizes(0,e+1),l-=n.wtViewport.getViewportHeight()-this.sumCellSizes(o-t,o),l+=1,l+=a}else l+=this.sumCellSizes(i.getSetting("fixedRowsTop"),e);return l+=c,(0,o.p6)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderVerticallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,o.hY)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();n=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0),n>e&&(n=0)}return n}adjustHeaderBordersPosition(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wtSettings:n}=this,i=this.wot.wtTable.holder.parentNode,r=n.getSetting("totalColumns"),s="horizontal"===n.getSetting("preventOverflow");r?(0,o.vy)(i,"emptyColumns"):(0,o.iQ)(i,"emptyColumns");let a=!1;if(!t&&!s){const t=n.getSetting("fixedRowsTop"),r=this.cachedFixedRowsTop!==t,s=n.getSetting("columnHeaders");if((r||0===t)&&s.length>0){const t=(0,o.nB)(i,"innerBorderTop");this.cachedFixedRowsTop=n.getSetting("fixedRowsTop"),e||0===n.getSetting("totalRows")?((0,o.iQ)(i,"innerBorderTop"),a=!t):((0,o.vy)(i,"innerBorderTop"),a=t)}}return a}}const yt={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,y.LH)(yt,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});const wt=yt;class Ct extends Qe{constructor(e,t,n,o){super(e,t,n,o,Ve)}}(0,y.co)(Ct,wt),(0,y.co)(Ct,nt);const _t=Ct;class St extends gt{constructor(e,t,n,o){var i,r,s;super(e,t,Ve,n,o),i=this,s=-1,(r=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(r="cachedFixedRowsBottom"))in i?Object.defineProperty(i,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[r]=s,this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom")}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new _t(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const{rootWindow:e}=this.domBindings,t=this.clone.wtTable.holder.parentNode;t.style.top="";let n=0;const o=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||o&&"vertical"===o?(n=this.getScrollPosition(),this.repositionOverlay()):(n=this.getOverlayOffset(),t.style.bottom=`${n}px`);const i=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),i}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:n}=this.domBindings,i=this.clone.wtTable.holder.parentNode;let r=0;t.hasVerticalScroll()||(r+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(r+=(0,o.XJ)(n)),i.style.bottom=`${r}px`}setScrollPosition(e){const{rootWindow:t}=this.domBindings,n=this.mainTableScrollableElement;let i=!1;if(n===t&&e!==t.scrollY){const e=t.scrollY;t.scrollTo((0,o.Vp)(t),top),i=e!==t.scrollY}else if(e!==n.scrollTop){const t=n.scrollTop;n.scrollTop=e,i=t!==n.scrollTop}return i}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const{wtTable:n,stylesHandler:o}=this.wot,i=o.getDefaultRowHeight();let r=e,s=0;for(;r<t;){const e=n.getRowHeight(r);s+=void 0===e?i:e,r+=1}return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:n,rootWindow:i}=this.domBindings,r=this.clone.wtTable.holder.parentNode.style,s=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===s){let i=t.getWorkspaceWidth();t.hasVerticalScroll()&&(i-=(0,o.XJ)(n)),i=Math.min(i,e.wtRootElement.scrollWidth),r.width=`${i}px`}else r.width="";this.clone.wtTable.holder.style.width=r.width;let a=(0,o.DK)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(a=0),r.height=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){let n=this.getTableParentOffset();const i=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder;let r=0;t&&i.offsetHeight!==i.clientHeight&&(r=(0,o.XJ)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),n+=r,this.setScrollPosition(n)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,o.hY)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight(),t=e-this.clone.wtTable.getTotalHeight(),o=this.domBindings.rootDocument.documentElement.clientHeight;n=Math.max(this.getTableParentOffset()-this.getScrollPosition()-o+e,0),n>t&&(n=0)}return n}adjustHeaderBordersPosition(e){const t=this.wtSettings.getSetting("fixedRowsBottom"),n=this.cachedFixedRowsBottom!==t,i=this.wtSettings.getSetting("columnHeaders");let r=!1;if((n||0===t)&&i.length>0){const t=this.wot.wtTable.holder.parentNode,n=(0,o.nB)(t,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,o.iQ)(t,"innerBorderBottom"),r=!n):((0,o.vy)(t,"innerBorderBottom"),r=n)}return r}}const Mt={getFirstRenderedRow(){const e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow(){const e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getFirstPartiallyVisibleRow(){const e=this.dataAccessObject.startRowPartiallyVisible;return null===e?-1:e},getLastRenderedRow(){const e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow(){const e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getLastPartiallyVisibleRow(){const e=this.dataAccessObject.endRowPartiallyVisible;return null===e?-1:e},getRenderedRowsCount(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount(){return this.dataAccessObject.countRowsVisible},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,y.LH)(Mt,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});const Et=Mt,xt={getFirstRenderedColumn(){return 0===this.getRenderedColumnsCount()?-1:0},getFirstVisibleColumn(){return this.getFirstRenderedColumn()},getFirstPartiallyVisibleColumn(){return this.getFirstRenderedColumn()},getLastRenderedColumn(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn(){return this.getLastRenderedColumn()},getLastPartiallyVisibleColumn(){return this.getLastRenderedColumn()},getRenderedColumnsCount(){return Math.min(this.wtSettings.getSetting("totalColumns"),this.wtSettings.getSetting("fixedColumnsStart"))},getVisibleColumnsCount(){return this.getRenderedColumnsCount()},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,y.LH)(xt,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});const kt=xt;class Tt extends Qe{constructor(e,t,n,o){super(e,t,n,o,Ue)}}(0,y.co)(Tt,Et),(0,y.co)(Tt,kt);const Rt=Tt;class At extends gt{constructor(e,t,n,o){super(e,t,Ue,n,o)}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Rt(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wtTable:e}=this.wot;if(!this.needFullRender||!this.shouldBeRendered()||!e.holder.parentNode)return!1;const{rootWindow:t}=this.domBindings,n=this.clone.wtTable.holder.parentNode,i=this.wtSettings.getSetting("preventOverflow");let r=0;this.trimmingContainer!==t||i&&"horizontal"===i?(r=this.getScrollPosition(),(0,o.ZK)(n)):(r=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,o.ON)(n,`${r}px`,"0px"));const s=this.adjustHeaderBordersPosition(r);return this.adjustElementsSize(),s}setScrollPosition(e){const{rootWindow:t}=this.domBindings;let n=!1;this.isRtl()&&(e=-e);const i=this.mainTableScrollableElement;if(i===t&&e!==t.scrollX){const i=t.scrollX;t.scrollTo(e,(0,o.v1)(t)),n=i!==t.scrollX}else if(e!==i.scrollLeft){const t=i.scrollLeft;i.scrollLeft=e,n=t!==i.scrollLeft}return n}onScroll(){this.wtSettings.getSetting("onScrollVertically")}sumCellSizes(e,t){const n=this.wtSettings.getSetting("defaultColumnWidth");let o=e,i=0;for(;o<t;)i+=this.wot.wtTable.getColumnWidth(o)||n,o+=1;return i}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:n,rootWindow:i}=this.domBindings,r=this.clone.wtTable.holder.parentNode.style,s=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"vertical"===s){let i=t.getWorkspaceHeight();t.hasHorizontalScroll()&&(i-=(0,o.XJ)(n)),i=Math.min(i,e.wtRootElement.scrollHeight),r.height=`${i}px`}else r.height="";this.clone.wtTable.holder.style.height=r.height;const a=(0,o.Gq)(this.clone.wtTable.TABLE);r.width=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=bt(this.wot),n=this.wot.selectionManager.getFocusSelection()?parseInt(t.width,10)/2:0;this.clone.wtTable.hider.style.height=this.hider.style.height,e.style.height=e.parentNode.style.height,e.style.width=`${parseInt(e.parentNode.style.width,10)+n}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`:this.clone.wtTable.spreader.style.top=""}scrollTo(e,t){const{wtSettings:n}=this,i=n.getSetting("rowHeaders"),r=n.getSetting("fixedColumnsStart"),s=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,a=0===r&&i.length>0&&!(0,o.nB)(s.parentNode,"innerBorderInlineStart")?1:0;let l=this.getTableParentOffset(),c=0;return t&&this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1),t&&s.offsetWidth!==s.clientWidth&&(c=(0,o.XJ)(this.domBindings.rootDocument)),t?(l+=this.sumCellSizes(0,e+1),l-=this.wot.wtViewport.getViewportWidth(),l+=a):l+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),l+=c,(0,o.h$)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderHorizontallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){let e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}getScrollPosition(){return Math.abs((0,o.v_)(this.mainTableScrollableElement,this.domBindings.rootWindow))}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let n=0;return this.trimmingContainer!==e||t&&"horizontal"===t||(n=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0),n>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(n=0)),n}adjustHeaderBordersPosition(e){const{wtSettings:t}=this,n=this.wot.wtTable.holder.parentNode,i=t.getSetting("rowHeaders"),r=t.getSetting("fixedColumnsStart"),s=t.getSetting("totalRows"),a="vertical"===t.getSetting("preventOverflow");s?(0,o.vy)(n,"emptyRows"):(0,o.iQ)(n,"emptyRows");let l=!1;if(!a)if(r&&!i.length)(0,o.iQ)(n,"innerBorderLeft innerBorderInlineStart");else if(!r&&i.length){const t=(0,o.nB)(n,"innerBorderInlineStart");e?((0,o.iQ)(n,"innerBorderLeft innerBorderInlineStart"),l=!t):((0,o.vy)(n,"innerBorderLeft innerBorderInlineStart"),l=t)}return l}}class Lt extends Qe{constructor(e,t,n,o){super(e,t,n,o,Ge)}}(0,y.co)(Lt,et),(0,y.co)(Lt,kt);const Ot=Lt;function Dt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ht extends gt{constructor(e,t,n,o,i,r){super(e,t,Ge,n,o),Dt(this,"topOverlay",void 0),Dt(this,"inlineStartOverlay",void 0),this.topOverlay=i,this.inlineStartOverlay=r}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Ot(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){const t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),n=this.topOverlay.getOverlayOffset();(0,o.ON)(e,`${t}px`,`${n}px`)}else(0,o.ZK)(e);let t=(0,o.DK)(this.clone.wtTable.TABLE);const n=(0,o.Gq)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${n}px`,!1}}class It extends Qe{constructor(e,t,n,o){super(e,t,n,o,Ke)}}(0,y.co)(It,wt),(0,y.co)(It,kt);const Pt=It;class Nt extends gt{constructor(e,t,n,o,i,r){super(e,t,Ke,n,o),this.bottomOverlay=i,this.inlineStartOverlay=r}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Pt(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wot:e}=this;if(this.updateTrimmingContainer(),!e.wtTable.holder.parentNode)return!1;const t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===this.domBindings.rootWindow){const e=this.inlineStartOverlay.getOverlayOffset(),n=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]=`${e}px`,t.style.bottom=`${n}px`}else(0,o.ZK)(t),this.repositionOverlay();let n=(0,o.DK)(this.clone.wtTable.TABLE);const i=(0,o.Gq)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(n=0),t.style.height=`${n}px`,t.style.width=`${i}px`,!1}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:n}=this.domBindings,i=this.clone.wtTable.holder.parentNode;let r=0;t.hasVerticalScroll()||(r+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(r+=(0,o.XJ)(n)),i.style.bottom=`${r}px`}}function Ft(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function zt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e,t,n){return e.set($t(e,t),n),n}function Yt(e,t){return e.get($t(e,t))}function $t(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Bt=new WeakMap,Wt=new WeakMap,Vt=new WeakMap,Ut=new WeakMap;const Gt=class{constructor(e,t,n,i,r,s){zt(this,"wot",null),Ft(this,Bt,[]),zt(this,"topOverlay",null),zt(this,"bottomOverlay",null),zt(this,"inlineStartOverlay",null),zt(this,"topInlineStartCornerOverlay",null),zt(this,"bottomInlineStartCornerOverlay",null),zt(this,"browserLineHeight",void 0),zt(this,"wtSettings",null),Ft(this,Wt,!1),Ft(this,Vt,0),Ft(this,Ut,null),zt(this,"resizeObserver",new ResizeObserver((e=>{(0,V.xi)((()=>{Array.isArray(e)&&e.length&&(jt(Vt,this,Yt(Vt,this)+1),100===Yt(Vt,this)&&((0,w.R8)("The ResizeObserver callback was fired too many times in direct succession.\nThis may be due to an infinite loop caused by setting a dynamic height/width (for example, with the `dvh` units) to a Handsontable container's parent. \nThe observer will be disconnected."),this.resizeObserver.disconnect()),null!==Yt(Ut,this)&&clearTimeout(Yt(Ut,this)),jt(Ut,this,setTimeout((()=>{jt(Vt,this,0)}),100)),this.wtSettings.getSetting("onContainerElementResize"))}))}))),this.wot=e,this.wtSettings=i,this.domBindings=n,this.facadeGetter=t,this.wtTable=s;const{rootDocument:a,rootWindow:l}=this.domBindings;this.instance=this.wot,this.eventManager=r,this.scrollbarSize=(0,o.XJ)(a);const c="hidden"===l.getComputedStyle(s.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=c?s.holder:(0,o.K7)(s.TABLE),this.initOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=l.scrollX,this.lastScrollY=l.scrollY}getOverlays(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[...Yt(Bt,this)];return e&&t.push(this.wtTable),t}initBrowserLineHeight(){const{rootWindow:e,rootDocument:t}=this.domBindings,n=e.getComputedStyle(t.body),o=parseInt(n.lineHeight,10),i=1.2*parseInt(n.fontSize,10);this.browserLineHeight=o||i}initOverlays(){const e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=new vt(...e),this.bottomOverlay=new St(...e),this.inlineStartOverlay=new At(...e),this.topInlineStartCornerOverlay=new Ht(...e,this.topOverlay,this.inlineStartOverlay),this.bottomInlineStartCornerOverlay=new Nt(...e,this.bottomOverlay,this.inlineStartOverlay),jt(Bt,this,[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay])}beforeDraw(){jt(Wt,this,Yt(Bt,this).reduce(((e,t)=>t.hasRenderingStateChanged()||e),!1)),Yt(Bt,this).forEach((e=>e.updateStateOfRendering("before")))}afterDraw(){this.syncScrollWithMaster(),Yt(Bt,this).forEach((e=>{const t=e.hasRenderingStateChanged();e.updateStateOfRendering("after"),t&&!e.needFullRender&&e.reset()}))}refreshAll(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}registerListeners(){const{rootDocument:e,rootWindow:t}=this.domBindings,{mainTableScrollableElement:n}=this.topOverlay,{mainTableScrollableElement:o}=this.inlineStartOverlay;this.eventManager.addEventListener(e.documentElement,"keydown",(e=>this.onKeyDown(e))),this.eventManager.addEventListener(e.documentElement,"keyup",(()=>this.onKeyUp())),this.eventManager.addEventListener(e,"visibilitychange",(()=>this.onKeyUp())),this.eventManager.addEventListener(n,"scroll",(e=>this.onTableScroll(e)),{passive:!0}),n!==o&&this.eventManager.addEventListener(o,"scroll",(e=>this.onTableScroll(e)),{passive:!0});const i=t.devicePixelRatio&&t.devicePixelRatio>1,r=this.scrollableElement===t,a=this.wtSettings.getSetting("preventWheel"),l={passive:r};let c;(a||i||!(0,s.H8)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(e=>this.onCloneWheel(e,a)),l),[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach((e=>{this.eventManager.addEventListener(e.clone.wtTable.holder,"wheel",(e=>this.onCloneWheel(e,a)),l)})),this.eventManager.addEventListener(t,"resize",(()=>{(0,V.xi)((()=>{clearTimeout(c),this.wtSettings.getSetting("onWindowResize"),c=setTimeout((()=>{jt(Vt,this,0)}),200)}))})),r||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}onTableScroll(e){const t=this.domBindings.rootWindow,n=this.inlineStartOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target;this.keyPressed&&(o!==t&&i!==t&&!e.target.contains(o)||n!==t&&i!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}onCloneWheel(e,t){const{rootWindow:n}=this.domBindings,o=this.inlineStartOverlay.mainTableScrollableElement,i=this.topOverlay.mainTableScrollableElement,r=e.target,s=i!==n&&r!==n&&!r.contains(i),a=o!==n&&r!==n&&!r.contains(o);if(this.keyPressed&&(s||a)||this.scrollableElement===n)return;const l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&l)&&e.preventDefault()}onKeyDown(e){this.keyPressed=(0,a.m0)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}onKeyUp(){this.keyPressed=!1}translateMouseWheelToScroll(e){let t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,n=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight);const o=this.scrollVertically(t),i=this.scrollHorizontally(n);return o||i}scrollVertically(e){const t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}scrollHorizontally(e){const t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}syncScrollPositions(){if(this.destroyed)return;const e=this.topOverlay.clone.wtTable.holder,t=this.inlineStartOverlay.clone.wtTable.holder;let n=this.scrollableElement.scrollLeft,o=this.scrollableElement.scrollTop;if(this.wot.wtViewport.isHorizontallyScrollableByWindow()&&(n=this.scrollableElement.scrollX),this.wot.wtViewport.isVerticallyScrollableByWindow()&&(o=this.scrollableElement.scrollY),this.horizontalScrolling=this.lastScrollX!==n,this.verticalScrolling=this.lastScrollY!==o,this.lastScrollX=n,this.lastScrollY=o,this.horizontalScrolling){e.scrollLeft=n;const t=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;t&&(t.scrollLeft=n)}this.verticalScrolling&&(t.scrollTop=o),this.refreshAll()}syncScrollWithMaster(){if(!Yt(Wt,this))return;const e=this.topOverlay.mainTableScrollableElement,{scrollLeft:t,scrollTop:n}=e;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=n),jt(Wt,this,!1)}updateMainScrollableElements(){this.eventManager.clearEvents(!0),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();const{wtTable:e}=this,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,o.K7)(e.TABLE),this.registerListeners()}destroy(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateLastSpreaderSize()&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}updateLastSpreaderSize(){const e=this.wtTable.spreader,t=e.clientWidth,n=e.clientHeight,o=t!==this.spreaderLastSize.width||n!==this.spreaderLastSize.height;return o&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=n),o}adjustElementsSize(){const{wtViewport:e}=this.wot,{wtTable:t}=this,{rootWindow:n}=this.domBindings,o=this.scrollableElement===n,i=this.wtSettings.getSetting("totalColumns"),r=this.wtSettings.getSetting("totalRows"),s=e.getRowHeaderWidth(),a=e.getColumnHeaderHeight()+this.topOverlay.sumCellSizes(0,r)+1,l=s+this.inlineStartOverlay.sumCellSizes(0,i),c=t.hider.style,d=(()=>!o&&this.scrollableElement.scrollTop>Math.max(0,a-t.holder.clientHeight))()?1:0,u=(()=>!o&&this.scrollableElement.scrollLeft>Math.max(0,l-t.holder.clientWidth))()?1:0;c.width=`${l+u}px`,c.height=`${a+d}px`,this.topOverlay.adjustElementsSize(),this.inlineStartOverlay.adjustElementsSize(),this.bottomOverlay.adjustElementsSize()}expandHiderVerticallyBy(e){const{wtTable:t}=this;t.hider.style.height=`${parseInt(t.hider.style.height,10)+e}px`}expandHiderHorizontallyBy(e){const{wtTable:t}=this;t.hider.style.width=`${parseInt(t.hider.style.width,10)+e}px`}applyToDOM(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}getParentOverlay(e){if(!e)return null;const t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];let n=null;return(0,F.z0)(t,(t=>{t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)})),n}syncOverlayTableClassNames(){const e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,F.z0)(t,(t=>{t&&(t.clone.wtTable.TABLE.className=e.className)}))}};function Kt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class qt{constructor(e){Kt(this,"settings",{}),Kt(this,"defaults",Object.freeze(this.getDefaults())),(0,y.v4)(this.defaults,((t,n)=>{if(void 0!==e[n])this.settings[n]=e[n];else{if(void 0===t)throw new Error(`A required setting "${n}" was not provided`);this.settings[n]=t}}))}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,n)=>{const i=this.getSetting("data",e,t);(0,o.c6)(n,null==i?"":i)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0}}update(e,t){return void 0===t?(0,y.v4)(e,((e,t)=>{this.settings[t]=e})):this.settings[e]=t,this}getSetting(e,t,n,o,i){return"function"==typeof this.settings[e]?this.settings[e](t,n,o,i):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}getSettingPure(e){return this.settings[e]}has(e){return!!this.settings[e]}}class Xt extends Qe{constructor(e,t,n,o){super(e,t,n,o,"master")}alignOverlaysWithTrimmingContainer(){const e=(0,o.fX)(this.wtRootElement),{rootWindow:t}=this.domBindings;if(e===t)this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible");else{const n=e.parentElement,i=(0,o.gd)(e,"height",t),r=(0,o.gd)(e,"overflow",t),s=this.holder.style,{scrollWidth:a,scrollHeight:l}=e;let c=e.offsetWidth,d=e.offsetHeight;if(n&&["auto","hidden","scroll"].includes(r)){const o=e.cloneNode(!1);o.style.overflow="auto",o.style.position="absolute",e.nextElementSibling?n.insertBefore(o,e.nextElementSibling):n.appendChild(o);const i=parseInt(t.getComputedStyle(o).height,10);n.removeChild(o),0===i&&(d=0)}d=Math.min(d,l),s.height="auto"===i?"auto":`${d}px`,c=Math.min(c,a),s.width=`${c}px`,s.overflow="",this.hasTableHeight="auto"===s.height||d>0,this.hasTableWidth=c>0}this.isTableVisible=(0,o.zN)(this.TABLE)}markOversizedColumnHeaders(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject,n="master",o=e.getSetting("columnHeaders").length;if(o&&!t.hasOversizedColumnHeadersMarked[n]){const i=e.getSetting("rowHeaders").length,r=this.getRenderedColumnsCount();for(let e=0;e<o;e++)for(let e=-1*i;e<r;e++)this.markIfOversizedColumnHeader(e);t.hasOversizedColumnHeadersMarked[n]=!0}}}(0,y.co)(Xt,Et),(0,y.co)(Xt,nt);const Jt=Xt;function Qt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Zt{constructor(){Qt(this,"count",0),Qt(this,"startRow",0),Qt(this,"endRow",0),Qt(this,"startPosition",0),Qt(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalRows:t}=e;this.count=t,this.endRow=this.count-1}process(){}finalize(){}}function en(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(18107),n(67357);class tn{constructor(){en(this,"count",0),en(this,"startRow",null),en(this,"endRow",null),en(this,"startPosition",null),en(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:n,zeroBasedScrollOffset:o,innerViewportHeight:i}=t;n<=o&&(this.startRow=e),n>=o&&n<=i&&null===this.startRow&&(this.startRow=e),this.endRow=e}finalize(e){var t;const{scrollOffset:n,viewportHeight:o,horizontalScrollbarHeight:i,totalRows:r,needReverse:s,startPositions:a,rowHeight:l}=e;if(this.endRow===r-1&&s)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(this.startRow-=1,e>=o-i)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null,n+o-i<0||n>a.at(-1)+l?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,r<this.endRow&&(this.endRow=r-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}function nn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class on extends tn{constructor(){super(...arguments),nn(this,"rowStartOffset",0),nn(this,"rowEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:n,totalRows:o,startPositions:i}=e;if(null!==this.startRow&&"function"==typeof n){const e=this.startRow,t=this.endRow;n(this),this.rowStartOffset=e-this.startRow,this.rowEndOffset=this.endRow-t}this.startRow<0&&(this.startRow=0),this.startPosition=null!==(t=i[this.startRow])&&void 0!==t?t:null,o<this.endRow&&(this.endRow=o-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}function rn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class sn{constructor(){rn(this,"count",0),rn(this,"startRow",null),rn(this,"endRow",null),rn(this,"startPosition",null),rn(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:n,zeroBasedScrollOffset:o,innerViewportHeight:i,rowHeight:r}=t;n>=o&&n+r<=i&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:n,viewportHeight:o,horizontalScrollbarHeight:i,totalRows:r,needReverse:s,startPositions:a,rowHeight:l}=e;if(this.endRow===r-1&&s)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(e<=o-i&&(this.startRow-=1),e>=o-i)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null,n+o-i<(null===this.startRow?0:e.getRowHeight(this.startRow))||n>a.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,r<this.endRow&&(this.endRow=r-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}function an(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ln{constructor(){an(this,"count",0),an(this,"startColumn",0),an(this,"endColumn",0),an(this,"startPosition",0),an(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:t}=e;this.count=t,this.endColumn=this.count-1}process(){}finalize(){}}function cn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class dn{constructor(){cn(this,"count",0),cn(this,"startColumn",null),cn(this,"endColumn",null),cn(this,"startPosition",null),cn(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:n,zeroBasedScrollOffset:o,viewportWidth:i}=t;n<=o&&(this.startColumn=e),n>=o&&n<=o+(o>0?i+1:i)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e)),this.endColumn=e}finalize(e){var t;const{scrollOffset:n,viewportWidth:o,inlineStartOffset:i,zeroBasedScrollOffset:r,totalColumns:s,needReverse:a,startPositions:l,columnWidth:c}=e;if(this.endColumn===s-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+c-l[this.startColumn-1];if(this.startColumn-=1,e>o)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null,n+o-(r>0?o+1:o)<-1*i||n>l.at(-1)+c||-1*n-o>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,s<this.endColumn&&(this.endColumn=s-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}function un(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class hn extends dn{constructor(){super(...arguments),un(this,"columnStartOffset",0),un(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:n,totalColumns:o,startPositions:i}=e;if(null!==this.startColumn&&"function"==typeof n){const e=this.startColumn,t=this.endColumn;n(this),this.columnStartOffset=e-this.startColumn,this.columnEndOffset=this.endColumn-t}this.startColumn<0&&(this.startColumn=0),this.startPosition=null!==(t=i[this.startColumn])&&void 0!==t?t:null,o<this.endColumn&&(this.endColumn=o-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}function mn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class pn{constructor(){mn(this,"count",0),mn(this,"startColumn",null),mn(this,"endColumn",null),mn(this,"startPosition",null),mn(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:n,zeroBasedScrollOffset:o,viewportWidth:i,columnWidth:r}=t;n>=o&&n+r<=o+(o>0?i+1:i)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e),this.endColumn=e)}finalize(e){var t;const{scrollOffset:n,viewportWidth:o,inlineStartOffset:i,zeroBasedScrollOffset:r,totalColumns:s,needReverse:a,startPositions:l,columnWidth:c}=e;if(this.endColumn===s-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+c-l[this.startColumn-1];if(e<=o&&(this.startColumn-=1),e>=o)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;const d=n+o-(r>0?o+1:o),u=null===this.startColumn?0:e.getColumnWidth(this.startColumn);d<-1*i||n>l.at(-1)||-1*n-o>-1*u?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,s<this.endColumn&&(this.endColumn=s-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}var fn=n(88514);function gn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class bn extends fn.C{constructor(e){let{calculationTypes:t,viewportHeight:n,scrollOffset:o,totalRows:i,defaultRowHeight:r,rowHeightFn:s,overrideFn:a,horizontalScrollbarHeight:l}=e;super(t),gn(this,"viewportHeight",0),gn(this,"scrollOffset",0),gn(this,"zeroBasedScrollOffset",0),gn(this,"totalRows",0),gn(this,"rowHeightFn",null),gn(this,"rowHeight",0),gn(this,"overrideFn",null),gn(this,"horizontalScrollbarHeight",0),gn(this,"innerViewportHeight",0),gn(this,"totalCalculatedHeight",0),gn(this,"startPositions",[]),gn(this,"needReverse",!0),this.defaultHeight=r,this.viewportHeight=n,this.scrollOffset=o,this.zeroBasedScrollOffset=Math.max(o,0),this.totalRows=i,this.rowHeightFn=s,this.overrideFn=a,this.horizontalScrollbarHeight=null!=l?l:0,this.innerViewportHeight=this.zeroBasedScrollOffset+this.viewportHeight-this.horizontalScrollbarHeight,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalRows;e++)if(this.rowHeight=this.getRowHeight(e),this._process(e,this),this.startPositions.push(this.totalCalculatedHeight),this.totalCalculatedHeight+=this.rowHeight,this.totalCalculatedHeight>=this.innerViewportHeight){this.needReverse=!1;break}this._finalize(this)}getRowHeight(e){const t=this.rowHeightFn(e);return isNaN(t)?this.defaultHeight:t}}var vn=n(94726);const yn=class{constructor(e,t,n,o,i){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=n,this.wtTable=i,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.rowsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllRows")?new Zt:new on],["fullyVisible",()=>new sn],["partiallyVisible",()=>new tn]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new ln:new hn],["fullyVisible",()=>new pn],["partiallyVisible",()=>new dn]]),this.eventManager=o,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",(()=>{this.clientHeight=this.getWorkspaceHeight()}))}getWorkspaceHeight(){const e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer;let n=0;return n=t===this.domBindings.rootWindow?e.documentElement.clientHeight:(0,o.DK)(t)>0&&t.clientHeight>0?t.clientHeight:1/0,n}getViewportHeight(){let e=this.getWorkspaceHeight();if(e===1/0)return e;const t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}getWorkspaceWidth(){const{rootDocument:e,rootWindow:t}=this.domBindings,n=this.dataAccessObject.inlineStartOverlayTrimmingContainer;let o;if(n===t){const t=this.wtSettings.getSetting("totalColumns");o=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>o&&(o=e.documentElement.clientWidth)}else o=n.clientWidth;return o}getViewportWidth(){const e=this.getWorkspaceWidth();if(e===1/0)return e;const t=this.getRowHeaderWidth();return t>0?e-t:e}hasVerticalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollHeight>e.clientHeight}const{holder:e,hider:t}=this.wtTable,n=e.clientHeight,o=t.offsetHeight;return n<o||o>this.getWorkspaceHeight()}hasHorizontalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollWidth>e.clientWidth}const{holder:e,hider:t}=this.wtTable,n=e.clientWidth,o=t.offsetWidth;return n<o||o>this.getWorkspaceWidth()}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let n=0,o=e;for(;o<t;)n+=this.wtTable.getColumnWidth(o),o+=1;return n}getWorkspaceOffset(){return(0,o.cY)(this.wtTable.holder)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,o.DK)(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}getRowHeaderWidth(){const e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(let n=0,o=t.length;n<o;n++)this.rowHeaderWidth+=e[n]||e}if(isNaN(this.rowHeaderWidth))if(t.length){let e=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(let n=0,i=t.length;n<i;n++)e?(this.rowHeaderWidth+=(0,o.Gq)(e),e=e.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}createRowsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:n}=this;let i,r,s=this.getViewportHeight();this.rowHeaderWidth=NaN;let a=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const l=t.getSetting("fixedRowsTop"),c=t.getSetting("fixedRowsBottom"),d=t.getSetting("totalRows");return l&&a>=0&&(r=this.dataAccessObject.topOverlay.sumCellSizes(0,l),a+=r,s-=r),c&&this.dataAccessObject.bottomOverlay.clone&&(r=this.dataAccessObject.bottomOverlay.sumCellSizes(d-c,d),s-=r),i=n.holder.clientHeight===n.holder.offsetHeight?0:(0,o.XJ)(this.domBindings.rootDocument),new bn({calculationTypes:e.map((e=>[e,this.rowsCalculatorTypes.get(e)()])),viewportHeight:s,scrollOffset:a,totalRows:t.getSetting("totalRows"),defaultRowHeight:this.instance.stylesHandler.getDefaultRowHeight(),rowHeightFn:e=>n.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:i})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:n}=this;let i=this.getViewportWidth(),r=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const s=t.getSetting("fixedColumnsStart");if(s&&r>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,s);r+=e,i-=e}return n.holder.clientWidth!==n.holder.offsetWidth&&(i-=(0,o.XJ)(this.domBindings.rootDocument)),new vn.U({calculationTypes:e.map((e=>[e,this.columnsCalculatorTypes.get(e)()])),viewportWidth:i,scrollOffset:r,totalColumns:t.getSetting("totalColumns"),columnWidthFn:e=>n.getColumnWidth(e),overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}createCalculators(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,n=this.createRowsCalculator(),o=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=n.getResultsFor("fullyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t)}if(e&&!t.getSetting("renderAllColumns")){const t=o.getResultsFor("fullyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t)}return e||(this.rowsRenderCalculator=n.getResultsFor("rendered"),this.columnsRenderCalculator=o.getResultsFor("rendered")),this.rowsVisibleCalculator=n.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=o.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=n.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=o.getResultsFor("partiallyVisible"),e}createVisibleCalculators(){const e=this.createRowsCalculator(["fullyVisible","partiallyVisible"]),t=this.createColumnsCalculator(["fullyVisible","partiallyVisible"]);this.rowsVisibleCalculator=e.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=t.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=e.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=t.getResultsFor("partiallyVisible")}areAllProposedVisibleRowsAlreadyRendered(e){if(!this.rowsVisibleCalculator)return!1;let{startRow:t,endRow:n}=e;if(null===t&&null===n){if(!e.isVisibleInTrimmingContainer)return!0;t=this.rowsPartiallyVisibleCalculator.startRow,n=this.rowsPartiallyVisibleCalculator.endRow}const{startRow:o,endRow:i,rowStartOffset:r,rowEndOffset:s}=this.rowsRenderCalculator,a=this.wtSettings.getSetting("totalRows")-1,l=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(l)&&l>0?(t=Math.max(0,t-Math.min(r,l)),n=Math.min(a,n+Math.min(s,l))):"auto"===l&&(t=Math.max(0,t-Math.ceil(r/2)),n=Math.min(a,n+Math.ceil(s/2))),!(t<o||t===o&&t>0||n>i||n===i&&n<a)}areAllProposedVisibleColumnsAlreadyRendered(e){if(!this.columnsVisibleCalculator)return!1;let{startColumn:t,endColumn:n}=e;if(null===t&&null===n){if(!e.isVisibleInTrimmingContainer)return!0;t=this.columnsPartiallyVisibleCalculator.startColumn,n=this.columnsPartiallyVisibleCalculator.endColumn}const{startColumn:o,endColumn:i,columnStartOffset:r,columnEndOffset:s}=this.columnsRenderCalculator,a=this.wtSettings.getSetting("totalColumns")-1,l=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(l)&&l>0?(t=Math.max(0,t-Math.min(r,l)),n=Math.min(a,n+Math.min(s,l))):"auto"===l&&(t=Math.max(0,t-Math.ceil(r/2)),n=Math.min(a,n+Math.ceil(s/2))),!(t<o||t===o&&t>0||n>i||n===i&&n<a)}resetHasOversizedColumnHeadersMarked(){(0,y.v4)(this.hasOversizedColumnHeadersMarked,((e,t,n)=>{n[t]=void 0}))}};function wn(e,t,n){Cn(e,t),t.set(e,n)}function Cn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _n(e,t){return e.get(Mn(e,t))}function Sn(e,t,n){return e.set(Mn(e,t),n),n}function Mn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n(93514);var En=new WeakMap,xn=new WeakMap,kn=new WeakSet;class Tn{constructor(){var e;Cn(this,e=kn),e.add(this),wn(this,En,void 0),wn(this,xn,void 0)}setActiveOverlay(e){return Sn(xn,this,e),this}setActiveSelection(e){return Sn(En,this,e),this}scan(){const e=_n(En,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange((e=>t.add(e))),this.scanRowsInHeadersRange((e=>t.add(e)))):"area"===e?this.scanCellsRange((e=>t.add(e))):"focus"===e?(this.scanColumnsInHeadersRange((e=>t.add(e))),this.scanRowsInHeadersRange((e=>t.add(e))),this.scanCellsRange((e=>t.add(e)))):"fill"===e?this.scanCellsRange((e=>t.add(e))):"header"===e?(this.scanColumnsInHeadersRange((e=>t.add(e))),this.scanRowsInHeadersRange((e=>t.add(e)))):"row"===e?(this.scanRowsInHeadersRange((e=>t.add(e))),this.scanRowsInCellsRange((e=>t.add(e)))):"column"===e&&(this.scanColumnsInHeadersRange((e=>t.add(e))),this.scanColumnsInCellsRange((e=>t.add(e)))),t}scanColumnsInHeadersRange(e){const[t,n,o,i]=_n(En,this).getCorners(),{wtTable:r}=_n(xn,this),s=r.getRenderedColumnsCount(),a=r.getColumnHeadersCount();let l=0;for(let c=-r.getRowHeadersCount();c<s;c++){const s=r.columnFilter.renderedToSource(c);if(!(s<n||s>i)){for(let c=-a;c<0;c++){if(c<t||c>o)continue;const d=c+a;let u=r.getColumnHeader(s,d);const h=_n(xn,this).getSetting("onBeforeHighlightingColumnHeader",s,d,{selectionType:_n(En,this).settings.selectionType,columnCursor:l,selectionWidth:i-n+1});null!==h&&(h!==s&&(u=r.getColumnHeader(h,d)),e(u))}l+=1}}}scanRowsInHeadersRange(e){const[t,n,o,i]=_n(En,this).getCorners(),{wtTable:r}=_n(xn,this),s=r.getRenderedRowsCount(),a=r.getRowHeadersCount();let l=0;for(let c=-r.getColumnHeadersCount();c<s;c++){const s=r.rowFilter.renderedToSource(c);if(!(s<t||s>o)){for(let c=-a;c<0;c++){if(c<n||c>i)continue;const d=c+a;let u=r.getRowHeader(s,d);const h=_n(xn,this).getSetting("onBeforeHighlightingRowHeader",s,d,{selectionType:_n(En,this).settings.selectionType,rowCursor:l,selectionHeight:o-t+1});null!==h&&(h!==s&&(u=r.getRowHeader(h,d)),e(u))}l+=1}}}scanCellsRange(e){const{wtTable:t}=_n(xn,this);Mn(kn,this,Rn).call(this,((n,i)=>{const r=t.getCell(_n(xn,this).createCellCoords(n,i)),s=_n(xn,this).getSetting("onAfterDrawSelection",n,i,_n(En,this).settings.layerLevel);"string"==typeof s&&(0,o.iQ)(r,s),e(r)}))}scanRowsInCellsRange(e){const[t,,n]=_n(En,this).getCorners(),{wtTable:o}=_n(xn,this);Mn(kn,this,An).call(this,((i,r)=>{if(i>=t&&i<=n){const t=o.getCell(_n(xn,this).createCellCoords(i,r));e(t)}}))}scanColumnsInCellsRange(e){const[,t,,n]=_n(En,this).getCorners(),{wtTable:o}=_n(xn,this);Mn(kn,this,An).call(this,((i,r)=>{if(r>=t&&r<=n){const t=o.getCell(_n(xn,this).createCellCoords(i,r));e(t)}}))}}function Rn(e){let[t,n,i,r]=_n(En,this).getCorners();if(t<0&&i<0||n<0&&r<0)return;const{wtTable:s}=_n(xn,this),a=t!==i||n!==r;if(n=Math.max(n,0),r=Math.max(r,0),t=Math.max(t,0),i=Math.max(i,0),a){if(n=Math.max(n,s.getFirstRenderedColumn()),r=Math.min(r,s.getLastRenderedColumn()),t=Math.max(t,s.getFirstRenderedRow()),i=Math.min(i,s.getLastRenderedRow()),r<n||i<t)return}else{const e=s.getCell(_n(xn,this).createCellCoords(t,n));if(!(0,o.sb)(e))return}for(let o=t;o<=i;o+=1)for(let t=n;t<=r;t+=1)e(o,t)}function An(e){const{wtTable:t}=_n(xn,this),n=t.getRenderedRowsCount(),o=t.getRenderedColumnsCount();for(let i=0;i<n;i+=1){const n=t.rowFilter.renderedToSource(i);for(let i=0;i<o;i+=1)e(n,t.columnFilter.renderedToSource(i))}}const Ln=class{constructor(e,t){t&&(this.eventManager=e.eventManager,this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle=bt(this.instance),this.cornerCenterPointOffset=-Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())}registerListeners(){const e=this.wot.rootDocument.body;this.eventManager.addEventListener(e,"mousedown",(()=>this.onMouseDown())),this.eventManager.addEventListener(e,"mouseup",(()=>this.onMouseUp()));for(let e=0,t=this.main.childNodes.length;e<t;e++){const t=this.main.childNodes[e];this.eventManager.addEventListener(t,"mouseenter",(t=>this.onMouseEnter(t,this.main.childNodes[e])))}}onMouseDown(){this.mouseDown=!0}onMouseUp(){this.mouseDown=!1}onMouseEnter(e,t){if(!this.mouseDown||!this.wot.getSetting("hideBorderOnMouseDownOver"))return;e.preventDefault(),(0,l.CA)(e);const n=this,o=this.wot.rootDocument.body,i=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(o,"mousemove",(function e(r){var s;((s=r).clientY<Math.floor(i.top)||s.clientY>Math.ceil(i.top+i.height)||s.clientX<Math.floor(i.left)||s.clientX>Math.ceil(i.left+i.width))&&(n.eventManager.removeEventListener(o,"mousemove",e),t.style.display="block")}))}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const n=["top","start","bottom","end","corner"];let o=this.main.style;o.position="absolute",o.top=0,o.left=0;for(let i=0;i<5;i++){const r=n[i],s=t.createElement("div");s.className=`wtBorder ${this.settings.className||""}`,this.settings[r]&&this.settings[r].hide&&(s.className+=" hidden"),o=s.style,o.backgroundColor=this.settings[r]&&this.settings[r].color?this.settings[r].color:e.border.color,o.height=this.settings[r]&&this.settings[r].width?`${this.settings[r].width}px`:`${e.border.width}px`,o.width=this.settings[r]&&this.settings[r].width?`${this.settings[r].width}px`:`${e.border.width}px`,this.main.appendChild(s)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=`${this.cornerDefaultStyle.width}px`,this.cornerStyle.height=`${this.cornerDefaultStyle.height}px`,this.cornerStyle.border=[`${this.cornerDefaultStyle.borderWidth}px`,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,s.rr)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:i}=this.wot;let r=i.bordersHolder;r||(r=t.createElement("div"),r.className="htBorders",i.bordersHolder=r,i.spreader.appendChild(r)),r.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,stylesHandler:t}=this.wot,n=t.getCSSVariableValue("cell-mobile-handle-size"),o=t.getCSSVariableValue("cell-mobile-handle-border-radius"),i=t.getCSSVariableValue("cell-mobile-handle-background-color"),r=t.getCSSVariableValue("cell-mobile-handle-border-width"),s=t.getCSSVariableValue("cell-mobile-handle-border-color");this.selectionHandles={top:e.createElement("DIV"),topHitArea:e.createElement("DIV"),bottom:e.createElement("DIV"),bottomHitArea:e.createElement("DIV")},this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};const a={position:"absolute",height:"40px",width:"40px","border-radius":`${parseInt(40/1.5,10)}px`};(0,y.v4)(a,((e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e}));const l=t.isClassicTheme()?{position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"}:{position:"absolute",height:`${n}px`,width:`${n}px`,"border-radius":`${o}px`,background:`${i}`,border:`${r}px solid ${s}`};(0,y.v4)(l,((e,t)=>{this.selectionHandles.styles.bottom[t]=e,this.selectionHandles.styles.top[t]=e})),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}isPartRange(e,t){const n=this.wot.selectionManager.getAreaSelection();return!(!n.cellRange||e===n.cellRange.to.row&&t===n.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,n,o,i,r){const s=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:c,bottomHitArea:d}=this.selectionHandles.styles,u=parseInt(a.borderWidth,10),h=parseInt(a.width,10),m=parseInt(l.width,10),p=this.wot.wtTable.getWidth(),f=this.wot.wtTable.getHeight();a.top=`${parseInt(n-h-1,10)}px`,a[s]=`${parseInt(o-h-1,10)}px`,l.top=`${parseInt(n-m/4*3,10)}px`,l[s]=`${parseInt(o-m/4*3,10)}px`;const g=Math.min(parseInt(o+i,10),p-h-2*u),b=Math.min(parseInt(o+i-m/4,10),p-m-2*u);c[s]=`${g}px`,d[s]=`${b}px`;const v=Math.min(parseInt(n+r,10),f-h-2*u),y=Math.min(parseInt(n+r-m/4,10),f-m-2*u);c.top=`${v}px`,d.top=`${y}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(c.display="none",d.display="none"):(c.display="block",d.display="block")):(a.display="none",c.display="none",l.display="none",d.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(a.zIndex="9999",l.zIndex="9999"):(a.zIndex="",l.zIndex="")}appear(e){if(this.disabled)return;let[t,n,i,r]=e;if(t<0&&i<0||n<0&&r<0)return void this.disappear();const{wtTable:a,rootDocument:l,rootWindow:c}=this.wot,d=t!==i||n!==r,u=a.getFirstRenderedRow(),h=a.getLastRenderedRow(),m=a.getFirstRenderedColumn(),p=a.getLastRenderedColumn();if(m<0&&p<0||u<0&&h<0)return void this.disappear();let f;if(d){if(n=Math.max(n,m),r=Math.min(r,p),t=Math.max(t,u),i=Math.min(i,h),r<n||i<t)return void this.disappear();f=a.getCell(this.wot.createCellCoords(t,n))}else if(f=a.getCell(this.wot.createCellCoords(t,n)),!(0,o.sb)(f))return void this.disappear();const g=d?a.getCell(this.wot.createCellCoords(i,r)):f,b=(0,o.cY)(f),v=d?(0,o.cY)(g):b,y=(0,o.cY)(a.TABLE),w=b.top,C=b.left,_=this.wot.wtSettings.getSetting("rtlMode");let S=0,M=0;if(_){const e=(0,o.Gq)(a.TABLE),t=(0,o.Gq)(f),n=c.innerWidth-y.left-e;M=C+t-v.left,S=c.innerWidth-C-t-n-1}else M=v.left+(0,o.Gq)(g)-C,S=C-y.left-1;if(this.isEntireColumnSelected(t,i)){const e=t,o=this.getDimensionsFromHeader("columns",n,r,e,y);let i=null;o&&([i,S,M]=o),i&&(f=i)}let E=w-y.top-1,x=v.top+(0,o.DK)(g)-w;if(this.isEntireRowSelected(n,r)){const e=n,o=this.getDimensionsFromHeader("rows",t,i,e,y);let r=null;o&&([r,E,x]=o),r&&(f=r)}const k=c.getComputedStyle(f);parseInt(k.borderTopWidth,10)>0&&(E+=1,x=x>0?x-1:0),parseInt(k[_?"borderRightWidth":"borderLeftWidth"],10)>0&&(S+=1,M=M>0?M-1:0);const T=_?"right":"left";this.topStyle.top=`${E}px`,this.topStyle[T]=`${S}px`,this.topStyle.width=`${M}px`,this.topStyle.display="block",this.startStyle.top=`${E}px`,this.startStyle[T]=`${S}px`,this.startStyle.height=`${x}px`,this.startStyle.display="block";const R=Math.floor(this.settings.border.width/2);this.bottomStyle.top=E+x-R+"px",this.bottomStyle[T]=`${S}px`,this.bottomStyle.width=`${M}px`,this.bottomStyle.display="block",this.endStyle.top=`${E}px`,this.endStyle[T]=S+M-R+"px",this.endStyle.height=`${x+1}px`,this.endStyle.display="block";let A=this.settings.border.cornerVisible;A="function"==typeof A?A(this.settings.layerLevel):A;const L=this.wot.getSetting("onModifyGetCellCoords",i,r,!1,"render");let[O,D]=[i,r];if(L&&Array.isArray(L)&&([,,O,D]=L),(0,s.rr)()||!A||this.isPartRange(O,D))this.cornerStyle.display="none";else{this.cornerStyle.top=E+x+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[T]=S+M+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle.borderRightWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderLeftWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderBottomWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";let e=(0,o.fX)(a.TABLE);const t=e===c;t&&(e=l.documentElement);const n=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,s=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),d=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(r===this.wot.getSetting("totalColumns")-1){const i=t?g.getBoundingClientRect().left:g.offsetLeft;let r=!1,a=0;_?(a=i-parseInt(this.cornerDefaultStyle.width,10)/2,r=a<0):(a=i+(0,o.Gq)(g)+parseInt(this.cornerDefaultStyle.width,10)/2,r=a>=(0,o.xM)(e)),r&&(this.cornerStyle[T]=`${Math.floor(S+M+this.cornerCenterPointOffset-s-n)}px`,this.cornerStyle[_?"borderLeftWidth":"borderRightWidth"]=0)}if(i===this.wot.getSetting("totalRows")-1){const i=(t?g.getBoundingClientRect().top:g.offsetTop)+(0,o.DK)(g)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,o.eU)(e),r=this.wot.stylesHandler.isClassicTheme();if(i){const e=Math.floor(E+x+this.cornerCenterPointOffset-d-n);r?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}(0,s.rr)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(i,r,E,S,M,x)}isEntireColumnSelected(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}isEntireRowSelected(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}getDimensionsFromHeader(e,t,n,i,r){const{wtTable:s}=this.wot,a=s.wtRootElement.parentNode;let l=null,c=null,d=null,u=null,h=null,m=null,p=null,f=null;switch(e){case"rows":l=function(){return s.getRowHeader(...arguments)},c=function(){return(0,o.DK)(...arguments)},d="ht__selection--rows",m="top";break;case"columns":l=function(){return s.getColumnHeader(...arguments)},c=function(){return(0,o.Gq)(...arguments)},d="ht__selection--columns",m="left"}if(a.classList.contains(d)){const e=this.wot.getSetting("columnHeaders").length;if(p=l(t,e-i),f=l(n,e-i),!p||!f)return!1;const s=(0,o.cY)(p),a=(0,o.cY)(f);return p&&f&&(u=s[m]-r[m]-1,h=a[m]+c(f)-s[m]),[p,u,h]}return!1}changeBorderStyle(e,t){const n=this[e].style,i=t[e];!i||i.hide?(0,o.iQ)(this[e],"hidden"):((0,o.nB)(this[e],"hidden")&&(0,o.vy)(this[e],"hidden"),n.backgroundColor=i.color,"top"!==e&&"bottom"!==e||(n.height=`${i.width}px`),"start"!==e&&"end"!==e||(n.width=`${i.width}px`))}changeBorderToDefaultStyle(e){const t=this[e].style;t.backgroundColor="#000",t.width="1px",t.height="1px"}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,o.iQ)(this[e],"hidden"):(0,o.vy)(this[e],"hidden")}disappear(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,s.rr)()&&this.instance.getSetting("isDataViewInstance")&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}destroy(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}};function On(e,t,n){Dn(e,t),t.set(e,n)}function Dn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Hn(e,t){return e.get(Pn(e,t))}function In(e,t,n){return e.set(Pn(e,t),n),n}function Pn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Nn=new WeakMap,Fn=new WeakMap,zn=new WeakMap,jn=new WeakMap,Yn=new WeakMap,$n=new WeakMap,Bn=new WeakSet;class Wn{constructor(e){var t;Dn(this,t=Bn),t.add(this),On(this,Nn,void 0),On(this,Fn,void 0),On(this,zn,new Tn),On(this,jn,new WeakMap),On(this,Yn,new WeakSet),On(this,$n,new Map),In(Fn,this,e)}setActiveOverlay(e){return In(Nn,this,e),Hn(zn,this).setActiveOverlay(Hn(Nn,this)),Hn(jn,this).has(Hn(Nn,this))||Hn(jn,this).set(Hn(Nn,this),new Set),this}getFocusSelection(){return null!==Hn(Fn,this)?Hn(Fn,this).getFocus():null}getAreaSelection(){return null!==Hn(Fn,this)?Hn(Fn,this).createLayeredArea():null}getBorderInstance(e){if(!e.settings.border)return null;if(Hn($n,this).has(e)){const t=Hn($n,this).get(e);if(t.has(Hn(Nn,this)))return t.get(Hn(Nn,this));const n=new Ln(Hn(Nn,this),e.settings);return t.set(Hn(Nn,this),n),n}const t=new Ln(Hn(Nn,this),e.settings);return Hn($n,this).set(e,new Map([[Hn(Nn,this),t]])),t}getBorderInstances(e){var t,n;return Array.from(null!==(t=null===(n=Hn($n,this).get(e))||void 0===n?void 0:n.values())&&void 0!==t?t:[])}destroyBorders(e){Hn($n,this).get(e).forEach((e=>e.destroy())),Hn($n,this).delete(e)}render(e){if(null===Hn(Fn,this))return;e&&Pn(Bn,this,Vn).call(this);const t=Array.from(Hn(Fn,this)),n=new Map,i=new Map;for(let e=0;e<t.length;e++){const o=t[e],{className:r,headerAttributes:s,createLayers:a,selectionType:l}=o.settings;Hn(Yn,this).has(o)||(Hn(Yn,this).add(o),o.addLocalHook("destroy",(()=>this.destroyBorders(o))));const c=this.getBorderInstance(o);if(o.isEmpty()){null==c||c.disappear();continue}r&&Hn(zn,this).setActiveSelection(o).scan().forEach((e=>{if(n.has(e)){const t=n.get(e);t.has(r)&&!0===a?t.set(r,t.get(r)+1):t.set(r,1)}else n.set(e,new Map([[r,1]]));s&&(i.has(e)||i.set(e,[]),"TH"===e.nodeName&&i.get(e).push(...s))}));const d=o.getCorners();Hn(Nn,this).getSetting("onBeforeDrawBorders",d,l),null==c||c.appear(d)}n.forEach(((e,t)=>{var n;const i=Array.from(e).map((e=>{let[t,n]=e;return 1===n?t:[t,...Array.from({length:n-1},((e,n)=>`${t}-${n+1}`))]})).flat();i.forEach((e=>Hn(jn,this).get(Hn(Nn,this)).add(e))),(0,o.iQ)(t,i),"TD"===t.nodeName&&Array.isArray(null===(n=Hn(Fn,this).options)||void 0===n?void 0:n.cellAttributes)&&(0,o.Bq)(t,Hn(Fn,this).options.cellAttributes)})),Array.from(i.keys()).forEach((e=>{(0,o.Bq)(e,[...i.get(e)])}))}}function Vn(){const e=Hn(jn,this).get(Hn(Nn,this)),t=Hn(Nn,this).wtSettings.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(t))for(let n=0;n<t.length;n++)e.add(t[n]);e.forEach((e=>{var t,n;const i=Hn(Nn,this).wtTable.TABLE.querySelectorAll(`.${e}`);let r=[];Array.isArray(null===(t=Hn(Fn,this).options)||void 0===t?void 0:t.cellAttributes)&&(r=Hn(Fn,this).options.cellAttributes.map((e=>e[0]))),Array.isArray(null===(n=Hn(Fn,this).options)||void 0===n?void 0:n.headerAttributes)&&(r=[...r,...Hn(Fn,this).options.headerAttributes.map((e=>e[0]))]);for(let t=0,n=i.length;t<n;t++)(0,o.vy)(i[t],e),(0,o.De)(i[t],r)})),e.clear()}function Un(e,t,n){Gn(e,t),t.set(e,n)}function Gn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Kn(e,t){return e.get(Xn(e,t))}function qn(e,t,n){return e.set(Xn(e,t),n),n}function Xn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Jn=new WeakMap,Qn=new WeakMap,Zn=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap,oo=new WeakMap,io=new WeakSet;class ro{constructor(e){var t;Gn(this,t=io),t.add(this),Un(this,Jn,void 0),Un(this,Qn,void 0),Un(this,Zn,void 0),Un(this,eo,void 0),Un(this,to,!0),Un(this,no,{}),Un(this,oo,{}),qn(Qn,this,e.rootTable.parentElement.parentElement),qn(eo,this,e.rootDocument)}isClassicTheme(){return Kn(to,this)}getCSSVariableValue(e){var t;if(Kn(to,this))return null;if(Kn(no,this)[`--ht-${e}`])return Kn(no,this)[`--ht-${e}`];const n=null!==(t=Xn(io,this,uo).call(this,`--ht-${e}`))&&void 0!==t?t:Xn(io,this,ho).call(this,`--ht-${e}`);return null!==n?(Kn(no,this)[`--ht-${e}`]=n,n):void 0}getStyleForTD(e){var t;return null===(t=Kn(oo,this))||void 0===t?void 0:t.td[e]}getDefaultRowHeight(){if(Kn(to,this))return 23;const e=Xn(io,this,so).call(this);return!e&&(0,o.nB)(Kn(Qn,this),"ht-wrapper")?((0,w.R8)(`The "${Kn(Jn,this)}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`),qn(to,this,!0),this.useTheme(),23):e}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){if(!e)return Xn(io,this,lo).call(this),qn(to,this,!0),void qn(Jn,this,e||void 0);e&&e!==Kn(Jn,this)&&(Kn(Jn,this)&&Xn(io,this,mo).call(this),qn(Jn,this,e),qn(to,this,!1),Xn(io,this,ao).call(this),Xn(io,this,lo).call(this))}getThemeName(){return Kn(Jn,this)}removeClassNames(){(0,o.nB)(Kn(Qn,this),Kn(Jn,this))&&(0,o.vy)(Kn(Qn,this),Kn(Jn,this))}}function so(){const e=this.getCSSVariableValue("line-height"),t=this.getCSSVariableValue("cell-vertical-padding"),n=Math.ceil(parseFloat(this.getStyleForTD("border-bottom-width")));return null===e||null===t||isNaN(n)?null:e+2*t+n}function ao(){(0,o.vy)(Kn(Qn,this),/ht-theme-.*/g),(0,o.iQ)(Kn(Qn,this),Kn(Jn,this))}function lo(){this.isClassicTheme()||qn(Zn,this,getComputedStyle(Kn(Qn,this)));const e=Xn(io,this,co).call(this,["box-sizing","border-bottom-width"]);Kn(oo,this).td={...Kn(oo,this).td,"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}function co(e){const t=Kn(eo,this),n=Kn(Qn,this),o=t.createElement("table"),i=t.createElement("tbody"),r=t.createElement("tr"),s=t.createElement("tr"),a=t.createElement("td");s.appendChild(a),i.appendChild(r),i.appendChild(s),o.appendChild(i),n.appendChild(o);const l=getComputedStyle(a),c={};return e.forEach((e=>{c[e]=l.getPropertyValue(e)})),n.removeChild(o),c}function uo(e){const t=Math.ceil(parseFloat(Xn(io,this,ho).call(this,e)));return Number.isNaN(t)?null:t}function ho(e){const t=Kn(Zn,this).getPropertyValue(e);return""===t?null:t}function mo(){qn(oo,this,{}),qn(no,this,{}),qn(to,this,!0)}class po extends mt{constructor(e,t){super(e,new qt(t)),this.stylesHandler=new ro(this.domBindings);const n=this.wtSettings.getSetting("facade",this);this.wtTable=new Jt(this.getTableDao(),n,this.domBindings,this.wtSettings),this.wtViewport=new yn(this.getViewportDao(),this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.selectionManager=new Wn(this.wtSettings.getSetting("selections")),this.wtEvent=new se(n,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager),this.wtOverlays=new Gt(this,n,this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.exportSettingsAsClassNames(),this.findOriginalHeaders()}exportSettingsAsClassNames(){const e=[],t=[];(0,y.v4)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},((n,o)=>{this.wtSettings.getSetting(o).length&&t.push(n),e.push(n)})),(0,o.vy)(this.wtTable.wtRootElement.parentNode,e),(0,o.iQ)(this.wtTable.wtRootElement.parentNode,t)}getOverlayByName(e){var t;if(!qe.includes(e))return null;const n=e.replace(/_([a-z])/g,(e=>e[1].toUpperCase()));return null!==(t=this.wtOverlays[`${n}Overlay`])&&void 0!==t?t:null}getViewportDao(){const e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}class fo{constructor(e){e instanceof mt?this._wot=e:this._initFromSettings(e)}_initFromSettings(e){e.facade=e=>{const t=new fo(e);return()=>t},this._wot=new po(e.table,e)}get guid(){return this._wot.guid}get rootDocument(){return this._wot.domBindings.rootDocument}get rootWindow(){return this._wot.domBindings.rootWindow}get wtSettings(){return this._wot.wtSettings}get cloneSource(){return this._wot.cloneSource}get cloneOverlay(){return this._wot.cloneOverlay}get selectionManager(){return this._wot.selectionManager}get wtViewport(){return this._wot.wtViewport}get wtOverlays(){return this._wot.wtOverlays}get wtTable(){return this._wot.wtTable}get wtEvent(){return this._wot.wtEvent}get wtScroll(){return this._wot.wtScroll}get drawn(){return this._wot.drawn}set drawn(e){this._wot.drawn=e}get activeOverlayName(){return this._wot.activeOverlayName}get drawInterrupted(){return this._wot.drawInterrupted}set drawInterrupted(e){this._wot.drawInterrupted=e}get lastMouseOver(){return this._wot.lastMouseOver}set lastMouseOver(e){this._wot.lastMouseOver=e}get momentumScrolling(){return this._wot.momentumScrolling}set momentumScrolling(e){this._wot.momentumScrolling=e}get touchApplied(){return this._wot.touchApplied}set touchApplied(e){this._wot.touchApplied=e}get domBindings(){return this._wot.domBindings}get eventListeners(){return this._wot.eventListeners}set eventListeners(e){this._wot.eventListeners=e}get eventManager(){return this._wot.eventManager}get stylesHandler(){return this._wot.stylesHandler}createCellCoords(e,t){return this._wot.createCellCoords(e,t)}createCellRange(e,t,n){return this._wot.createCellRange(e,t,n)}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}getCell(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}scrollViewport(e,t,n){return this._wot.scrollViewport(e,t,n)}scrollViewportHorizontally(e,t){return this._wot.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wot.scrollViewportVertically(e,t)}getViewport(){return this._wot.getViewport()}getOverlayName(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}getOverlayByName(e){return this._wot.getOverlayByName(e)}exportSettingsAsClassNames(){return this._wot.exportSettingsAsClassNames()}update(e,t){return this._wot.wtSettings.update(e,t),this}getSetting(e,t,n,o,i){return this._wot.wtSettings.getSetting(e,t,n,o,i)}hasSetting(e){return this._wot.wtSettings.hasSetting(e)}destroy(){this._wot.destroy()}}function go(e){let{isShiftKey:t,isLeftClick:n,isRightClick:o,coords:i,selection:r,controller:s,cellCoordsFactory:a}=e;const l=r.isSelected()?r.getSelectedRange().current():null,c=r.isSelectedByCorner(),d=r.isSelectedByRowHeader();if(r.markSource("mouse"),t&&l)i.row>=0&&i.col>=0&&!s.cell?r.setRangeEnd(i):(c||d)&&i.row>=0&&i.col>=0&&!s.cell?r.setRangeEnd(a(i.row,i.col)):c&&i.row<0&&!s.column?r.setRangeEnd(a(l.to.row,i.col)):d&&i.col<0&&!s.row?r.setRangeEnd(a(i.row,l.to.col)):(!c&&!d&&i.col<0||c&&i.col<0)&&!s.row?r.selectRows(Math.max(l.from.row,0),i.row,i.col):(!c&&!d&&i.row<0||d&&i.row<0)&&!s.column&&r.selectColumns(Math.max(l.from.col,0),i.col,i.row);else{const e=!r.inInSelection(i),t=n||o&&e;i.row<0&&i.col>=0&&!s.column?t&&r.selectColumns(i.col,i.col,i.row):i.col<0&&i.row>=0&&!s.row?t&&r.selectRows(i.row,i.row,i.col):i.col>=0&&i.row>=0&&!s.cell?t&&r.setRangeStart(i):i.col<0&&i.row<0&&r.selectAll(!0,!0,{disableHeadersHighlight:!0,focusPosition:{row:0,col:0}})}r.markEndSource()}const bo=new Map([["mousedown",go],["mouseover",function(e){let{isLeftClick:t,coords:n,selection:o,controller:i,cellCoordsFactory:r}=e;if(!t)return;const s=o.isSelectedByRowHeader(),a=o.isSelectedByColumnHeader(),l=o.tableProps.countCols(),c=o.tableProps.countRows();o.markSource("mouse"),a&&!i.column?o.setRangeEnd(r(c-1,n.col)):s&&!i.row?o.setRangeEnd(r(n.row,l-1)):i.cell||o.setRangeEnd(n),o.markEndSource()}],["touchstart",go]]);function vo(e,t){let{coords:n,selection:o,controller:i,cellCoordsFactory:r}=t;bo.get(e.type)({coords:n,selection:o,controller:i,cellCoordsFactory:r,isShiftKey:e.shiftKey,isLeftClick:(0,l.Ml)(e)||"touchstart"===e.type,isRightClick:(0,l.nO)(e)})}const yo=new WeakMap,wo=Symbol("rootInstance");function Co(e){return e===wo}function _o(e){return yo.has(e)}function So(e,t,n){Mo(e,t),t.set(e,n)}function Mo(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Eo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(e,t){return e.get(To(e,t))}function ko(e,t,n){return e.set(To(e,t),n),n}function To(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Ro=new WeakMap,Ao=new WeakMap,Lo=new WeakMap,Oo=new WeakMap,Do=new WeakMap,Ho=new WeakMap,Io=new WeakMap,Po=new WeakMap,No=new WeakSet;function Fo(){return parseInt(this.hot.rootElement.getAttribute((0,Me.Nb)()[0]),10)}function zo(e){const t=To(No,this,Fo).call(this)+e;(0,o.Bq)(this.hot.rootElement,...(0,Me.Nb)(t))}function jo(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,o.iQ)(e,"htHasScrollY"):(0,o.vy)(e,"htHasScrollY"),this.hasHorizontalScroll()?(0,o.iQ)(e,"htHasScrollX"):(0,o.vy)(e,"htHasScrollX")}const Yo=class{constructor(e){var t;Mo(this,t=No),t.add(this),Eo(this,"hot",void 0),Eo(this,"eventManager",void 0),Eo(this,"settings",void 0),Eo(this,"THEAD",void 0),Eo(this,"TBODY",void 0),Eo(this,"_wt",void 0),Eo(this,"activeWt",void 0),So(this,Ro,0),So(this,Ao,0),Eo(this,"postponedAdjustElementsSize",!1),So(this,Lo,!1),So(this,Oo,void 0),So(this,Do,void 0),So(this,Ho,0),So(this,Io,0),So(this,Po,null),this.hot=e,this.eventManager=new d.A(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){if(!this.hot.isRenderSuspended()){const e=this.hot.forceFullRender;this.hot.runHooks("beforeRender",e),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize()),this._wt.draw(!e),To(No,this,jo).call(this),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){this.hot.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this._wt.wtOverlays.adjustElementsSize()}getCellAtCoords(e,t){const n=this._wt.getCell(e,t);return n<0?null:n}scrollViewport(e,t,n){return this._wt.scrollViewport(e,t,n)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,n=e.getAttribute("style");n&&e.setAttribute("data-originalstyle",n),(0,o.iQ)(e,"handsontable"),ko(Do,this,t.createElement("TABLE")),(0,o.iQ)(xo(Do,this),"htCore"),this.hot.getSettings().tableClassName&&(0,o.iQ)(xo(Do,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,o.Bq)(xo(Do,this),[(0,Me.gg)()]),(0,o.Bq)(e,[(0,Me.ax)(),(0,Me.DZ)(-1),(0,Me.Nb)(this.hot.countCols()),(0,Me.L4)()])),this.THEAD=t.createElement("THEAD"),xo(Do,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),xo(Do,this).appendChild(this.TBODY),this.hot.table=xo(Do,this),this.hot.container.insertBefore(xo(Do,this),this.hot.container.firstChild)}registerEvents(){const{rootElement:e,rootDocument:t,selection:n,rootWindow:i}=this.hot,r=t.documentElement;this.eventManager.addEventListener(e,"mousedown",(e=>{ko(Lo,this,!0),this.isTextSelectionAllowed(e.target)||((0,o.LL)(i),e.preventDefault(),i.focus())})),this.eventManager.addEventListener(e,"mouseup",(()=>{ko(Lo,this,!1)})),this.eventManager.addEventListener(e,"mousemove",(e=>{xo(Lo,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,o.LL)(i),e.preventDefault())})),this.eventManager.addEventListener(r,"keyup",(e=>{n.isInProgress()&&!e.shiftKey&&n.finish()})),this.eventManager.addEventListener(r,"mouseup",(i=>{n.isInProgress()&&(0,l.Ml)(i)&&n.finish(),ko(Oo,this,!1);const r=(0,o.E3)(t.activeElement);(0,o.Xy)(t.activeElement)&&!r||!r&&(n.isSelected()||n.isSelectedByAnyHeader()||e.contains(i.target)||(0,l.nO)(i))||this.hot.unlisten()})),this.eventManager.addEventListener(r,"contextmenu",(e=>{n.isInProgress()&&(0,l.nO)(e)&&(n.finish(),ko(Oo,this,!1))})),this.eventManager.addEventListener(r,"touchend",(()=>{n.isInProgress()&&n.finish(),ko(Oo,this,!1)})),this.eventManager.addEventListener(r,"mousedown",(n=>{const i=n.target,s=n.x||n.clientX,a=n.y||n.clientY;let l=n.target;if(xo(Oo,this)||!e||!this.hot.view)return;const{holder:c}=this._wt.wtTable;if(l===c){const e=(0,o.XJ)(t);if(t.elementFromPoint(s+e,a)!==c||t.elementFromPoint(s,a+e)!==c)return}else for(;l!==r;){if(null===l){if(n.isTargetWebComponent)break;return}if(l===e)return;l=l.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(i):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)}));let s=(0,o.Ly)(i);for(;null!==s;)this.eventManager.addEventListener(s.document.documentElement,"click",(()=>{this.hot.unlisten()})),s=(0,o.Ly)(s);this.eventManager.addEventListener(xo(Do,this),"selectstart",(e=>{this.settings.fragmentSelection||(0,o.Xy)(e.target)||e.preventDefault()}))}translateFromRenderableToVisualCoords(e){let{row:t,col:n}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,n))}translateFromRenderableToVisualIndex(e,t){let n=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,o=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===n&&(n=e),null===o&&(o=t),[n,o]}countRenderableIndexes(e,t){const n=Math.min(e.getNotTrimmedIndexesLength(),t),o=e.getNearestNotHiddenIndex(n-1,-1);return null===o?0:e.getRenderableFromVisualIndex(o)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,n,o){if(isNaN(e)||e<0)return 0;const i=n.getNearestNotHiddenIndex(e,t),r=n.getRenderableFromVisualIndex(i);if(!Number.isInteger(r))return 0;let s=0;return t<0?s=r+1:t>0&&(s=o-r),s}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let n=0;for(let o=e;o<=t;o++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(o)&&(n+=1);return n}countRenderableRowsInRange(e,t){let n=0;for(let o=e;o<=t;o++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(o)&&(n+=1);return n}getStylesHandler(){return this._wt.stylesHandler}getDefaultRowHeight(){return this._wt.stylesHandler.getDefaultRowHeight()}addClassNameToLicenseElement(e){var t;const n=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");n&&(0,o.iQ)(n,e)}removeClassNameFromLicenseElement(e){var t;const n=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");n&&(0,o.vy)(n,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:xo(Do,this),isDataViewInstance:()=>_o(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push(((e,t)=>{const n=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(n,t)})),this.hot.runHooks("afterGetRowHeaderRenderers",e),ko(Ao,this,e.length),this.hot.getSettings().ariaTags&&To(No,this,Fo).call(this)===this.hot.countCols()&&To(No,this,zo).call(this,xo(Ao,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push(((e,t)=>{const n=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(n,t)})),this.hot.runHooks("afterGetColumnHeaderRenderers",e),ko(Ro,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const n=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),o=null===n?e:n;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(o),o,t)},cellRenderer:(e,t,n)=>{const[o,i]=this.translateFromRenderableToVisualIndex(e,t),r=this.hot.runHooks("modifyGetCellCoords",o,i,!1,"meta");let s=o,a=i;Array.isArray(r)&&([s,a]=r);const l=this.hot.getCellMeta(s,a),c=this.hot.colToProp(a);let d=this.hot.getDataAtRowProp(s,c);this.hot.hasHook("beforeValueRender")&&(d=this.hot.runHooks("beforeValueRender",d,l)),this.hot.runHooks("beforeRenderer",n,o,i,c,d,l),this.hot.getCellRenderer(l)(this.hot,n,o,i,c,d,l),this.hot.runHooks("afterRenderer",n,o,i,c,d,l)},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,o.zN)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,n,o)=>{const i=this.translateFromRenderableToVisualCoords(t),r={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=o,ko(Oo,this,!0),ko(Po,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,i,n,r),(0,l.d)(e)||(vo(e,{coords:i,selection:this.hot.selection,controller:r,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,i,n),this.activeWt=this._wt)},onCellContextMenu:(e,t,n,o)=>{const i=this.translateFromRenderableToVisualCoords(t);this.activeWt=o,ko(Oo,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,i,n),(0,l.d)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,i,n),this.activeWt=this._wt)},onCellMouseOut:(e,t,n,o)=>{const i=this.translateFromRenderableToVisualCoords(t);this.activeWt=o,this.hot.runHooks("beforeOnCellMouseOut",e,i,n),(0,l.d)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,i,n),this.activeWt=this._wt)},onCellMouseOver:(e,t,n,o)=>{const i=this.translateFromRenderableToVisualCoords(t),r={row:!1,column:!1,cell:!1};this.activeWt=o,this.hot.runHooks("beforeOnCellMouseOver",e,i,n,r),(0,l.d)(e)||(!xo(Oo,this)||xo(Po,this)&&xo(Po,this).x===e.clientX&&xo(Po,this).y===e.clientY||vo(e,{coords:i,selection:this.hot.selection,controller:r,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,i,n),this.activeWt=this._wt,ko(Po,this,null))},onCellMouseUp:(e,t,n,o)=>{const i=this.translateFromRenderableToVisualCoords(t);this.activeWt=o,this.hot.runHooks("beforeOnCellMouseUp",e,i,n),(0,l.d)(e)||this.hot.isDestroyed||(this.hot.runHooks("afterOnCellMouseUp",e,i,n),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const n=this.hot.rowIndexMapper,o=e<0;let i=e;return o||(i=n.getVisualFromRenderableIndex(e),null!==i)?(i=this.hot.runHooks("beforeViewportScrollVertically",i,t),this.hot.runHooks("beforeViewportScroll"),o?i:n.getRenderableFromVisualIndex(i)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const n=this.hot.columnIndexMapper,o=e<0;let i=e;return o||(i=n.getVisualFromRenderableIndex(e),null!==i)?(i=this.hot.runHooks("beforeViewportScrollHorizontally",i,t),this.hot.runHooks("beforeViewportScroll"),o?i:n.getRenderableFromVisualIndex(i)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,n)=>{const o=this.hot.rowIndexMapper,i=e<0;let r=e;i||(r=o.getVisualFromRenderableIndex(e));const s=this.hot.runHooks("beforeHighlightingRowHeader",r,t,n);return i?s:o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,1))},onBeforeHighlightingColumnHeader:(e,t,n)=>{const o=this.hot.columnIndexMapper,i=e<0;let r=e;i||(r=o.getVisualFromRenderableIndex(e));const s=this.hot.runHooks("beforeHighlightingColumnHeader",r,t,n);return i?s:o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(s,1))},onAfterDrawSelection:(e,t,n)=>{let o;const[i,r]=this.translateFromRenderableToVisualIndex(e,t),s=this.hot.selection.getSelectedRange();if(s.size()>0){const e=s.peekByIndex(null!=n?n:0);o=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",i,r,o,n)},onBeforeDrawBorders:(e,t)=>{const[n,o,i,r]=e,s=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(n),this.hot.columnIndexMapper.getVisualFromRenderableIndex(o),this.hot.rowIndexMapper.getVisualFromRenderableIndex(i),this.hot.columnIndexMapper.getVisualFromRenderableIndex(r)];return this.hot.runHooks("beforeDrawBorders",s,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,n,o)=>{const i=this.hot.rowIndexMapper,r=this.hot.columnIndexMapper,s=t>=0?r.getVisualFromRenderableIndex(t):t,a=e>=0?i.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,s,n,o);if(Array.isArray(l)){const[e,t,n,o]=l;return[e>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(e,1)):e,t>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(t,1)):t,n>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(n,-1)):n,o>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(o,-1)):o]}},onModifyGetCoordsElement:(e,t)=>{const n=this.hot.rowIndexMapper,o=this.hot.columnIndexMapper,i=t>=0?o.getVisualFromRenderableIndex(t):t,r=e>=0?n.getVisualFromRenderableIndex(e):e,s=this.hot.runHooks("modifyGetCoordsElement",r,i);if(Array.isArray(s)){const[e,t]=s;return[e>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(e,1)):e,t>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const n=this.countRenderableRows(),o=e.startRow,i=e.endRow;if("number"==typeof t)e.startRow=Math.max(o-t,0),e.endRow=Math.min(i+t,n-1);else if("auto"===t){const t=Math.max(1,Math.ceil(i/n*12));e.startRow=Math.max(o-t,0),e.endRow=Math.min(i+t,n-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const n=this.countRenderableColumns(),o=e.startColumn,i=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(o-t,0),e.endColumn=Math.min(i+t,n-1)),"auto"===t){const t=Math.max(1,Math.ceil(i/n*6));e.startColumn=Math.max(o-t,0),e.endColumn=Math.min(i+t,n-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e}};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new fo(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:n,height:i}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(n,i),this.eventManager.addEventListener(t,"mousedown",(e=>{e.target===t&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(t,"contextmenu",(e=>{e.target===t&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",(()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&this.hot.render()}))}isTextSelectionAllowed(e){if((0,o.Xy)(e))return!0;const t=(0,o.aO)(e,this._wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell())}isMouseDown(){return xo(Oo,this)}isSelectedOnlyCell(){var e,t;return null!==(e=null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingleCell())&&void 0!==e&&e}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const n=t.firstChild;if(!(0,o.nB)(n,"relative"))return(0,o.Ie)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:n,getRowHeader:o}=this.hot,i=n.createElement("div"),r=n.createElement("span");i.className="relative",r.className="rowHeader",this.updateCellHeader(r,e,o),i.appendChild(r),t.appendChild(i)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const r=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const s=t.firstChild;(0,o.nB)(s,"relative")?(this.updateCellHeader(s.querySelector(".colHeader"),e,n,i),s.className="",(0,o.iQ)(s,["relative",...r()])):((0,o.Ie)(t),this.appendColHeader(e,t,n,i))}else{const{rootDocument:s}=this.hot,a=s.createElement("div"),l=s.createElement("span"),c=r();a.classList.add("relative",...c),l.className="colHeader",this.settings.ariaTags&&((0,o.Bq)(a,...(0,Me.gg)()),(0,o.Bq)(l,...(0,Me.gg)())),this.updateCellHeader(l,e,n,i),a.appendChild(l),t.appendChild(a)}this.hot.runHooks("afterGetColHeader",e,t,i)}updateCellHeader(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=t;const s=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,o.nB)(e,"colHeader")?r=s.wtTable.columnFilter.sourceToRendered(t):(0,o.nB)(e,"rowHeader")&&(r=s.wtTable.rowFilter.sourceToRendered(t))),r>-1?(0,o.Mv)(e,n(t,i)):((0,o.c6)(e,String.fromCharCode(160)),(0,o.iQ)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){ko(Ho,this,e),ko(Io,this,t)}getLastSize(){return{width:xo(Ho,this),height:xo(Io,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return xo(Ro,this)}getRowHeadersCount(){return xo(Ao,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getTableOffset(){return this._wt.wtViewport.getWorkspaceOffset()}getRowHeaderWidth(){return this._wt.wtViewport.getRowHeaderWidth()}getColumnHeaderHeight(){return this._wt.wtViewport.getColumnHeaderHeight()}isVerticallyScrollableByWindow(){return this._wt.wtViewport.isVerticallyScrollableByWindow()}isHorizontallyScrollableByWindow(){return this._wt.wtViewport.isHorizontallyScrollableByWindow()}destroy(){this._wt.destroy(),this.eventManager.destroy()}};var $o=n(85874);function Bo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wo=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Bo(this,"hot",void 0),Bo(this,"data",void 0),Bo(this,"dataType","array"),Bo(this,"colToProp",(()=>{})),Bo(this,"propToCol",(()=>{})),this.hot=e,this.data=t}modifyRowData(e){let t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}getData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}setData(e){this.data=e}getAtColumn(e){const t=[];return(0,F.z0)(this.data,((n,o)=>{const i=this.getAtCell(o,e);t.push(i)})),t}getAtRow(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=void 0===t&&void 0===n,{dataDotNotation:s}=this.hot.getSettings();let a=null,l=null;if(a=this.modifyRowData(e),Array.isArray(a))l=[],r?a.forEach(((t,n)=>{l[n]=this.getAtPhysicalCell(e,n,a)})):(0,W.Ti)(t,n,(n=>{l[n-t]=this.getAtPhysicalCell(e,n,a)}));else if((0,y.Gv)(a)||(0,i.Tn)(a))if(l=o?[]:{},!r||o){const i=0,r=this.countFirstRowKeys()-1;(0,W.Ti)(i,r,(c=>{const d=this.colToProp(c);if(c>=(t||i)&&c<=(n||r)&&!Number.isInteger(d)){const t=this.getAtPhysicalCell(e,d,a);o?l.push(t):s?(0,y.oq)(l,d,t):l[d]=t}}))}else(0,y.v4)(a,((t,n)=>{const o=this.getAtPhysicalCell(e,n,a);s?(0,y.oq)(l,n,o):l[n]=o}));return l}setAtCell(e,t,n){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){const o=(0,y.nA)(n);this.hot.runHooks("modifySourceData",e,t,o,"set"),o.isTouched()&&(n=o.value)}["__proto__","constructor","prototype"].includes(e)||(Number.isInteger(t)?this.data[e][t]=n:(0,y.oq)(this.data[e],t,n))}}getAtPhysicalCell(e,t,n){let o=null;if(n)if("string"==typeof t){const{dataDotNotation:e}=this.hot.getSettings();o=e?(0,y.UU)(n,t):n[t]}else o="function"==typeof t?t(n):n[t];if(this.hot.hasHook("modifySourceData")){const n=(0,y.nA)(o);this.hot.runHooks("modifySourceData",e,t,n,"get"),n.isTouched()&&(o=n.value)}return o}getAtCell(e,t){const n=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),n)}getByRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,i=null,r=null,s=null,a=null;null===e||null===t?(o=!0,i=0,s=this.countRows()-1):(i=Math.min(e.row,t.row),r=Math.min(e.col,t.col),s=Math.max(e.row,t.row),a=Math.max(e.col,t.col));const l=[];return(0,W.Ti)(i,s,(e=>{l.push(o?this.getAtRow(e,void 0,void 0,n):this.getAtRow(e,r,a,n))})),l}countRows(){if(this.hot.hasHook("modifySourceLength")){const e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}countFirstRowKeys(){return(0,$o.E)(this.data)}destroy(){this.data=null,this.hot=null}};n(37550);var Vo=n(85408),Uo=n(52246),Go=n(41895),Ko=n(31803),qo=n(48386),Xo=n(41496);const Jo=new Map([["hiding",Uo.o],["index",Go.n],["linkedPhysicalIndexToValue",Ko.z],["physicalIndexToValue",qo._],["trimming",Xo.q]]);var Qo=n(48046),Zo=n(77710);let ei=0;class ti{constructor(){var e,t,n;e=this,t="collection",n=new Map,(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}register(e,t){!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",(()=>this.runLocalHooks("change",t))),ei+=1)}unregister(e){const t=this.collection.get(e);(0,r.O9)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),ei-=1)}unregisterAll(){this.collection.forEach(((e,t)=>this.unregister(t))),this.collection.clear()}get(e){return(0,r.b0)(e)?Array.from(this.collection.values()):this.collection.get(e)}getLength(){return this.collection.size}removeFromEvery(e){this.collection.forEach((t=>{t.remove(e)}))}insertToEvery(e,t){this.collection.forEach((n=>{n.insert(e,t)}))}initEvery(e){this.collection.forEach((t=>{t.init(e)}))}}function ni(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,y.co)(ti,Zo.A);class oi extends ti{constructor(e,t){super(),ni(this,"mergedValuesCache",[]),ni(this,"aggregationFunction",void 0),ni(this,"fallbackValue",void 0),this.aggregationFunction=e,this.fallbackValue=t}getMergedValues(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.mergedValuesCache;if(0===this.getLength())return[];const e=(0,F.YD)(this.get(),(e=>e.getValues())),t=[],n=(0,r.O9)(e[0])&&e[0].length||0;for(let o=0;o<n;o+=1){const n=[];for(let t=0;t<this.getLength();t+=1)n.push(e[t][o]);t.push(n)}return(0,F.YD)(t,this.aggregationFunction)}getMergedValueAtIndex(e,t){const n=this.getMergedValues(t)[e];return(0,r.O9)(n)?n:this.fallbackValue}updateCache(){this.mergedValuesCache=this.getMergedValues(!1)}}function ii(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var ri=new WeakMap;class si{constructor(){var e,t,n;n=[],function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=ri),t.set(e,n)}subscribe(e){var t;return this.addLocalHook("change",e),this._write((t=ri).get(ii(t,this))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,n;n=e,(t=ri).set(ii(t,this),n)}}function ai(e,t){const n=[];let o=0,i=0;for(;o<e.length&&i<t.length;o++,i++)e[o]!==t[i]&&n.push({op:"replace",index:i,oldValue:e[o],newValue:t[i]});for(;o<t.length;o++)n.push({op:"insert",index:o,oldValue:void 0,newValue:t[o]});for(;i<e.length;i++)n.push({op:"remove",index:i,oldValue:e[i],newValue:void 0});return n}function li(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function ci(e,t){return e.get(ui(e,t))}function di(e,t,n){return e.set(ui(e,t),n),n}function ui(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(0,y.co)(si,Zo.A);var hi=new WeakMap,mi=new WeakMap,pi=new WeakMap,fi=new WeakMap,gi=new WeakMap;class bi{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};li(this,hi,new Set),li(this,mi,[]),li(this,pi,[]),li(this,fi,!1),li(this,gi,!1),di(gi,this,null!=e&&e)}createObserver(){const e=new si;return ci(hi,this).add(e),e.addLocalHook("unsubscribe",(()=>{ci(hi,this).delete(e)})),e._writeInitialChanges(ai(ci(mi,this),ci(pi,this))),e}emit(e){let t=ci(pi,this);ci(fi,this)&&ci(mi,this).length===e.length||(0===e.length?e=new Array(t.length).fill(ci(gi,this)):di(mi,this,new Array(e.length).fill(ci(gi,this))),ci(fi,this)||(di(fi,this,!0),t=ci(mi,this)));const n=ai(t,e);ci(hi,this).forEach((e=>e._write(n))),di(pi,this,e)}}function vi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}new Set;class yi{constructor(){vi(this,"indexesSequence",new Vo.K),vi(this,"trimmingMapsCollection",new oi((e=>e.some((e=>!0===e))),!1)),vi(this,"hidingMapsCollection",new oi((e=>e.some((e=>!0===e))),!1)),vi(this,"variousMapsCollection",new ti),vi(this,"hidingChangesObservable",new bi({initialIndexValue:!1})),vi(this,"notTrimmedIndexesCache",[]),vi(this,"notHiddenIndexesCache",[]),vi(this,"isBatched",!1),vi(this,"indexesSequenceChanged",!1),vi(this,"indexesChangeSource",void 0),vi(this,"trimmedIndexesChanged",!1),vi(this,"hiddenIndexesChanged",!1),vi(this,"renderablePhysicalIndexesCache",[]),vi(this,"fromPhysicalToVisualIndexesCache",new Map),vi(this,"fromVisualToRenderableIndexesCache",new Map),this.indexesSequence.addLocalHook("change",(()=>{this.indexesSequenceChanged=!0,this.updateCache(),this.runLocalHooks("indexesSequenceChange",this.indexesChangeSource),this.runLocalHooks("change",this.indexesSequence,null)})),this.trimmingMapsCollection.addLocalHook("change",(e=>{this.trimmedIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.trimmingMapsCollection)})),this.hidingMapsCollection.addLocalHook("change",(e=>{this.hiddenIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.hidingMapsCollection)})),this.variousMapsCollection.addLocalHook("change",(e=>{this.runLocalHooks("change",e,this.variousMapsCollection)}))}suspendOperations(){this.isBatched=!0}resumeOperations(){this.isBatched=!1,this.updateCache()}createChangesObserver(e){if("hiding"!==e)throw new Error(`Unsupported index map type "${e}".`);return this.hidingChangesObservable.createObserver()}createAndRegisterIndexMap(e,t,n){return this.registerMap(e,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Jo.has(e))throw new Error(`The provided map type ("${e}") does not exist.`);return new(Jo.get(e))(t)}(t,n))}registerMap(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error(`Map with name "${e}" has been already registered.`);t instanceof Xo.q?this.trimmingMapsCollection.register(e,t):t instanceof Uo.o?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);const n=this.getNumberOfIndexes();return n>0&&t.init(n),t}unregisterMap(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}unregisterAll(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}getPhysicalFromVisualIndex(e){const t=this.notTrimmedIndexesCache[e];return(0,r.O9)(t)?t:null}getPhysicalFromRenderableIndex(e){const t=this.renderablePhysicalIndexesCache[e];return(0,r.O9)(t)?t:null}getVisualFromPhysicalIndex(e){const t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,r.O9)(t)?t:null}getVisualFromRenderableIndex(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}getRenderableFromVisualIndex(e){const t=this.fromVisualToRenderableIndexesCache.get(e);return(0,r.O9)(t)?t:null}getNearestNotHiddenIndex(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(e))return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;const o=Array.from(this.fromVisualToRenderableIndexesCache.keys());let i=-1;return i=t>0?o.findIndex((t=>t>e)):o.reverse().findIndex((t=>t<e)),-1===i?n?this.getNearestNotHiddenIndex(e,-t,!1):null:o[i]}initToLength(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=[...new Array(e).keys()],this.notHiddenIndexesCache=[...new Array(e).keys()],this.suspendOperations(),this.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}fitToLength(e){const t=this.getNumberOfIndexes();if(e<t){const t=[...Array(this.getNumberOfIndexes()-e).keys()].map((t=>t+e));this.removeIndexes(t)}else this.insertIndexes(t,e-t)}getIndexesSequence(){return this.indexesSequence.getValues()}setIndexesSequence(e){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}getNotTrimmedIndexes(){return!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])?this.notTrimmedIndexesCache:this.getIndexesSequence().filter((e=>!1===this.isTrimmed(e)))}getNotTrimmedIndexesLength(){return this.getNotTrimmedIndexes().length}getNotHiddenIndexes(){return!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])?this.notHiddenIndexesCache:this.getIndexesSequence().filter((e=>!1===this.isHidden(e)))}getNotHiddenIndexesLength(){return this.getNotHiddenIndexes().length}getRenderableIndexes(){return!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])?this.renderablePhysicalIndexesCache:this.getNotTrimmedIndexes().filter((e=>!1===this.isHidden(e)))}getRenderableIndexesLength(){return this.getRenderableIndexes().length}getNumberOfIndexes(){return this.getIndexesSequence().length}moveIndexes(e,t){"number"==typeof e&&(e=[e]);const n=(0,F.YD)(e,(e=>this.getPhysicalFromVisualIndex(e))),o=this.getNotTrimmedIndexesLength(),i=e.length,r=(0,Qo.H)(this.getIndexesSequence(),n),s=r.filter((e=>!1===this.isTrimmed(e)));let a=r.indexOf(s[s.length-1])+1;if(t+i<o){const e=s[t];a=r.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence((0,Qo.N)(r,a,n)),this.indexesChangeSource=void 0}isTrimmed(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}isHidden(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}insertIndexes(e,t){const n=this.getNotTrimmedIndexes()[e],o=(0,r.O9)(n)?n:this.getNumberOfIndexes(),i=this.getIndexesSequence().includes(n)?this.getIndexesSequence().indexOf(n):this.getNumberOfIndexes(),s=(0,F.YD)(new Array(t).fill(o),((e,t)=>e+t));this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(i,s),this.indexesChangeSource=void 0,this.trimmingMapsCollection.insertToEvery(i,s),this.hidingMapsCollection.insertToEvery(i,s),this.variousMapsCollection.insertToEvery(i,s),this.resumeOperations()}removeIndexes(e){this.suspendOperations(),this.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}updateCache(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}cacheFromPhysicalToVisualIndexes(){const e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(e,t)}}cacheFromVisualToRenderableIndexes(){const e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromRenderableIndex(t),n=this.getVisualFromPhysicalIndex(e);this.fromVisualToRenderableIndexesCache.set(n,t)}}}(0,y.co)(yi,Zo.A);var wi=n(63487);function Ci(e){const t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);return t?`${t[1].toLowerCase()}-${t[2].toUpperCase()}`:e}function _i(e){(0,r.O9)(e)&&(0,w.z3)(Te.O`Language with code "${e}" was not found. You should register particular language\x20
  53. before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)}var Si=n(34647);const{register:Mi,getValues:Ei}=(0,Si.A)("phraseFormatters");Mi("pluralize",(function(e,t){return Array.isArray(e)&&Number.isInteger(t)?e[t]:e}));var xi=n(49138);const ki={languageCode:"en-US",[xi.CONTEXTMENU_ITEMS_NO_ITEMS]:"No available options",[xi.CONTEXTMENU_ITEMS_ROW_ABOVE]:"Insert row above",[xi.CONTEXTMENU_ITEMS_ROW_BELOW]:"Insert row below",[xi.CONTEXTMENU_ITEMS_INSERT_LEFT]:"Insert column left",[xi.CONTEXTMENU_ITEMS_INSERT_RIGHT]:"Insert column right",[xi.CONTEXTMENU_ITEMS_REMOVE_ROW]:["Remove row","Remove rows"],[xi.CONTEXTMENU_ITEMS_REMOVE_COLUMN]:["Remove column","Remove columns"],[xi.CONTEXTMENU_ITEMS_UNDO]:"Undo",[xi.CONTEXTMENU_ITEMS_REDO]:"Redo",[xi.CONTEXTMENU_ITEMS_READ_ONLY]:"Read only",[xi.CONTEXTMENU_ITEMS_CLEAR_COLUMN]:"Clear column",[xi.CONTEXTMENU_ITEMS_ALIGNMENT]:"Alignment",[xi.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT]:"Left",[xi.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER]:"Center",[xi.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT]:"Right",[xi.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY]:"Justify",[xi.CONTEXTMENU_ITEMS_ALIGNMENT_TOP]:"Top",[xi.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE]:"Middle",[xi.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM]:"Bottom",[xi.CONTEXTMENU_ITEMS_FREEZE_COLUMN]:"Freeze column",[xi.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN]:"Unfreeze column",[xi.CONTEXTMENU_ITEMS_BORDERS]:"Borders",[xi.CONTEXTMENU_ITEMS_BORDERS_TOP]:"Top",[xi.CONTEXTMENU_ITEMS_BORDERS_RIGHT]:"Right",[xi.CONTEXTMENU_ITEMS_BORDERS_BOTTOM]:"Bottom",[xi.CONTEXTMENU_ITEMS_BORDERS_LEFT]:"Left",[xi.CONTEXTMENU_ITEMS_REMOVE_BORDERS]:"Remove border(s)",[xi.CONTEXTMENU_ITEMS_ADD_COMMENT]:"Add comment",[xi.CONTEXTMENU_ITEMS_EDIT_COMMENT]:"Edit comment",[xi.CONTEXTMENU_ITEMS_REMOVE_COMMENT]:"Delete comment",[xi.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT]:"Read-only comment",[xi.CONTEXTMENU_ITEMS_MERGE_CELLS]:"Merge cells",[xi.CONTEXTMENU_ITEMS_UNMERGE_CELLS]:"Unmerge cells",[xi.CONTEXTMENU_ITEMS_COPY]:"Copy",[xi.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS]:["Copy with header","Copy with headers"],[xi.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS]:["Copy with group header","Copy with group headers"],[xi.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY]:["Copy header only","Copy headers only"],[xi.CONTEXTMENU_ITEMS_CUT]:"Cut",[xi.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD]:"Insert child row",[xi.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD]:"Detach from parent",[xi.CONTEXTMENU_ITEMS_HIDE_COLUMN]:["Hide column","Hide columns"],[xi.CONTEXTMENU_ITEMS_SHOW_COLUMN]:["Show column","Show columns"],[xi.CONTEXTMENU_ITEMS_HIDE_ROW]:["Hide row","Hide rows"],[xi.CONTEXTMENU_ITEMS_SHOW_ROW]:["Show row","Show rows"],[xi.FILTERS_CONDITIONS_NONE]:"None",[xi.FILTERS_CONDITIONS_EMPTY]:"Is empty",[xi.FILTERS_CONDITIONS_NOT_EMPTY]:"Is not empty",[xi.FILTERS_CONDITIONS_EQUAL]:"Is equal to",[xi.FILTERS_CONDITIONS_NOT_EQUAL]:"Is not equal to",[xi.FILTERS_CONDITIONS_BEGINS_WITH]:"Begins with",[xi.FILTERS_CONDITIONS_ENDS_WITH]:"Ends with",[xi.FILTERS_CONDITIONS_CONTAINS]:"Contains",[xi.FILTERS_CONDITIONS_NOT_CONTAIN]:"Does not contain",[xi.FILTERS_CONDITIONS_GREATER_THAN]:"Greater than",[xi.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL]:"Greater than or equal to",[xi.FILTERS_CONDITIONS_LESS_THAN]:"Less than",[xi.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL]:"Less than or equal to",[xi.FILTERS_CONDITIONS_BETWEEN]:"Is between",[xi.FILTERS_CONDITIONS_NOT_BETWEEN]:"Is not between",[xi.FILTERS_CONDITIONS_AFTER]:"After",[xi.FILTERS_CONDITIONS_BEFORE]:"Before",[xi.FILTERS_CONDITIONS_TODAY]:"Today",[xi.FILTERS_CONDITIONS_TOMORROW]:"Tomorrow",[xi.FILTERS_CONDITIONS_YESTERDAY]:"Yesterday",[xi.FILTERS_VALUES_BLANK_CELLS]:"Blank cells",[xi.FILTERS_DIVS_FILTER_BY_CONDITION]:"Filter by condition",[xi.FILTERS_DIVS_FILTER_BY_VALUE]:"Filter by value",[xi.FILTERS_LABELS_CONJUNCTION]:"And",[xi.FILTERS_LABELS_DISJUNCTION]:"Or",[xi.FILTERS_BUTTONS_SELECT_ALL]:"Select all",[xi.FILTERS_BUTTONS_CLEAR]:"Clear",[xi.FILTERS_BUTTONS_OK]:"OK",[xi.FILTERS_BUTTONS_CANCEL]:"Cancel",[xi.FILTERS_BUTTONS_PLACEHOLDER_SEARCH]:"Search",[xi.FILTERS_BUTTONS_PLACEHOLDER_VALUE]:"Value",[xi.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]:"Second value",[xi.CHECKBOX_CHECKED]:"Checked",[xi.CHECKBOX_UNCHECKED]:"Unchecked"},Ti=xi,Ri=ki.languageCode,{register:Ai,getItem:Li,hasItem:Oi,getValues:Di}=(0,Si.A)("languagesDictionaries");function Hi(e,t){let n=e,o=t;return(0,y.Gv)(e)&&(o=e,n=o.languageCode),function(e,t){var n,o;e!==Ri&&(n=t,o=Li(Ri),(0,y.v4)(o,((e,t)=>{(0,r.b0)(n[t])&&(n[t]=e)})))}(n,o),Ai(n,(0,y.Go)(o)),(0,y.Go)(o)}function Ii(e){return Pi(e)?(0,y.Go)(Li(e)):null}function Pi(e){return Oi(e)}function Ni(e,t,n){const o=Ii(e);if(null===o)return null;const i=o[t];if((0,r.b0)(i))return null;const s=function(e,t){let n=e;return(0,F.z0)(Ei(),(o=>{n=o(e,t)})),n}(i,n);return Array.isArray(s)?s[0]:s}Hi(ki);var Fi=n(50192);class zi{constructor(e,t){this.settings=e,this.cellRange=t||null}isEmpty(){return null===this.cellRange}add(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}replace(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}clear(){return this.cellRange=null,this}getCorners(){const e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}destroy(){this.runLocalHooks("destroy")}}(0,y.co)(zi,Zo.A);const ji=zi;const Yi=class extends ji{constructor(e,t){var n,o,i;super(e,null),n=this,i=null,(o=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(o="visualCellRange"))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,this.visualCellRange=t||null,this.commit()}add(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}clear(){return this.visualCellRange=null,super.clear()}trimToVisibleCellsRangeOnly(e){let{from:t,to:n}=e,o=this.getNearestNotHiddenCoords(t,1),i=this.getNearestNotHiddenCoords(n,-1);return null===o||null===i?null:((o.row>i.row||o.col>i.col)&&(o=t,i=n),this.settings.createCellRange(o,o,i))}getNearestNotHiddenCoords(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const o=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,t);if(null===o)return null;const i=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,n);return null===i?null:this.settings.createCellCoords(o,i)}getNearestNotHiddenIndex(e,t,n){return t<0?t:e.getNearestNotHiddenIndex(t,n)}commit(){if(null===this.visualCellRange)return this;const e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}syncWith(e){const t=e.from.clone().normalize(),n="N-S"===e.getVerticalDirection()?1:-1,o="W-E"===e.getHorizontalDirection()?1:-1,i=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let r=null;if(null!==i&&null!==i.col&&null!==i.row||(r=this.getNearestNotHiddenCoords(t,n,o)),null!==r&&e.overlaps(r)){const t=e.highlight.clone();if(t.row>=0&&(t.row=r.row),t.col>=0&&(t.col=r.col),null===this.cellRange){const e=this.settings.visualToRenderableCoords(t);this.cellRange=this.settings.createCellRange(e)}e.setHighlight(t)}return"focus"===this.settings.selectionType&&null!==i&&null===r&&e.setHighlight(this.visualCellRange.highlight),this}getCorners(){const{from:e,to:t}=this.cellRange;return[Math.min(e.row,t.row),Math.min(e.col,t.col),Math.max(e.row,t.row),Math.max(e.col,t.col)]}getVisualCorners(){const e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}createRenderableCellRange(e,t){const n=this.settings.visualToRenderableCoords(e),o=this.settings.visualToRenderableCoords(t);return null===n.row||null===n.col||null===o.row||null===o.col?null:this.settings.createCellRange(n,n,o)}};function $i(e){let{activeHeaderClassName:t,...n}=e;return new Yi({className:t,...n,selectionType:Fi.E6})}function Bi(e){let{areaCornerVisible:t,...n}=e;return new Yi({className:"area",createLayers:!0,border:{width:1,color:"#4b89ff",cornerVisible:t},...n,selectionType:Fi.LX})}function Wi(e){let{...t}=e;return new Yi({className:"highlight",...t,selectionType:Fi.LX})}function Vi(e){let{columnClassName:t,...n}=e;return new Yi({className:t,...n,selectionType:Fi.QP})}function Ui(e){let{headerClassName:t,...n}=e;return new Yi({className:t,...n,selectionType:Fi.PP})}function Gi(e){let{rowClassName:t,...n}=e;return new Yi({className:t,...n,selectionType:Fi._8})}function Ki(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Xi=new WeakSet;class Ji{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Xi),n.add(t),Ki(this,"options",void 0),Ki(this,"layerLevel",0),Ki(this,"focus",void 0),Ki(this,"fill",void 0),Ki(this,"layeredAreas",new Map),Ki(this,"areas",new Map),Ki(this,"rowHeaders",new Map),Ki(this,"columnHeaders",new Map),Ki(this,"activeRowHeaders",new Map),Ki(this,"activeColumnHeaders",new Map),Ki(this,"activeCornerHeaders",new Map),Ki(this,"rowHighlights",new Map),Ki(this,"columnHighlights",new Map),Ki(this,"customSelections",[]),this.options=e,this.focus=function(e){let{cellCornerVisible:t,...n}=e;return new Yi({className:"current",headerAttributes:[(0,Me.H0)()],border:{width:2,color:"#4b89ff",cornerVisible:t},...n,selectionType:Fi.Yt})}(e),this.fill=function(e){let{...t}=e;return new Yi({className:"fill",border:{width:1,color:"#ff0000"},...t,selectionType:Fi.Hb})}(e)}isEnabledFor(e,t){let n=e;e===Fi.Yt&&(n="current");let o=this.options.disabledCellSelection(t.row,t.col);return"string"==typeof o&&(o=[o]),!1===o||Array.isArray(o)&&!o.includes(n)}useLayerLevel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}getFocus(){return this.focus}getFill(){return this.fill}createLayeredArea(){return qi(Xi,this,Qi).call(this,this.layeredAreas,Bi)}getLayeredAreas(){return[...this.layeredAreas.values()]}createArea(){return qi(Xi,this,Qi).call(this,this.areas,Wi)}getAreas(){return[...this.areas.values()]}createRowHeader(){return qi(Xi,this,Qi).call(this,this.rowHeaders,Ui)}getRowHeaders(){return[...this.rowHeaders.values()]}createColumnHeader(){return qi(Xi,this,Qi).call(this,this.columnHeaders,Ui)}getColumnHeaders(){return[...this.columnHeaders.values()]}createActiveRowHeader(){return qi(Xi,this,Qi).call(this,this.activeRowHeaders,$i)}getActiveRowHeaders(){return[...this.activeRowHeaders.values()]}createActiveColumnHeader(){return qi(Xi,this,Qi).call(this,this.activeColumnHeaders,$i)}getActiveColumnHeaders(){return[...this.activeColumnHeaders.values()]}createActiveCornerHeader(){return qi(Xi,this,Qi).call(this,this.activeCornerHeaders,$i)}getActiveCornerHeaders(){return[...this.activeCornerHeaders.values()]}createRowHighlight(){return qi(Xi,this,Qi).call(this,this.rowHighlights,Gi)}getRowHighlights(){return[...this.rowHighlights.values()]}createColumnHighlight(){return qi(Xi,this,Qi).call(this,this.columnHighlights,Vi)}getColumnHighlights(){return[...this.columnHighlights.values()]}getCustomSelections(){return[...this.customSelections.values()]}addCustomSelection(e){this.customSelections.push(function(e){let{border:t,visualCellRange:n,...o}=e;return new Yi({...t,...o,selectionType:Fi.OS},n)}({...this.options,...e}))}clear(){this.focus.clear(),this.fill.clear(),(0,F.z0)(this.areas.values(),(e=>{e.clear()})),(0,F.z0)(this.layeredAreas.values(),(e=>{e.clear()})),(0,F.z0)(this.rowHeaders.values(),(e=>{e.clear()})),(0,F.z0)(this.columnHeaders.values(),(e=>{e.clear()})),(0,F.z0)(this.activeRowHeaders.values(),(e=>{e.clear()})),(0,F.z0)(this.activeColumnHeaders.values(),(e=>{e.clear()})),(0,F.z0)(this.activeCornerHeaders.values(),(e=>{e.clear()})),(0,F.z0)(this.rowHighlights.values(),(e=>{e.clear()})),(0,F.z0)(this.columnHighlights.values(),(e=>{e.clear()}))}[Symbol.iterator](){return[this.focus,this.fill,...this.areas.values(),...this.layeredAreas.values(),...this.rowHeaders.values(),...this.columnHeaders.values(),...this.activeRowHeaders.values(),...this.activeColumnHeaders.values(),...this.activeCornerHeaders.values(),...this.rowHighlights.values(),...this.columnHighlights.values(),...this.customSelections][Symbol.iterator]()}}function Qi(e,t){const n=this.layerLevel;if(e.has(n))return e.get(n);const o=t({layerLevel:n,...this.options});return e.set(n,o),o}const Zi=Ji;function er(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class tr{constructor(e){er(this,"ranges",[]),er(this,"createCellRange",void 0),this.createCellRange=e}isEmpty(){return 0===this.size()}set(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}add(e){return this.ranges.push(this.createCellRange(e)),this}pop(){return this.ranges.pop(),this}current(){return this.peekByIndex(this.size()-1)}previous(){return this.peekByIndex(this.size()-2)}includes(e){return this.ranges.some((t=>t.includes(e)))}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}peekByIndex(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t>=0&&t<this.size()&&(e=this.ranges[t]),e}[Symbol.iterator](){return this.ranges[Symbol.iterator]()}}const nr=tr;function or(e,t,n){ir(e,t),t.set(e,n)}function ir(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function rr(e,t){return e.get(ar(e,t))}function sr(e,t,n){return e.set(ar(e,t),n),n}function ar(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var lr=new WeakMap,cr=new WeakMap,dr=new WeakMap,ur=new WeakSet;class hr{constructor(e,t){var n;ir(this,n=ur),n.add(this),or(this,lr,void 0),or(this,cr,void 0),or(this,dr,{x:0,y:0}),sr(lr,this,e),sr(cr,this,t)}transformStart(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=rr(cr,this).createCellCoords(e,t);let i=rr(lr,this).current().highlight;const r=rr(cr,this).visualToRenderableCoords(i);let s=0,a=0;if(this.runLocalHooks("beforeTransformStart",o),null!==r.row&&null!==r.col){const{width:e,height:t}=ar(ur,this,pr).call(this),{row:r,col:l}=ar(ur,this,br).call(this,i),c=rr(cr,this).fixedRowsBottom(),d=rr(cr,this).minSpareRows(),u=rr(cr,this).minSpareCols(),h=rr(cr,this).autoWrapRow(),m=rr(cr,this).autoWrapCol(),p=rr(cr,this).createCellCoords(r+o.row,l+o.col);if(p.row>=t){const o=(0,y.nA)(n&&d>0&&0===c),i=p.col+1,r=rr(cr,this).createCellCoords(p.row-t,i>=e?i-e:i);this.runLocalHooks("beforeColumnWrap",o,ar(ur,this,vr).call(this,r),i>=e),o.value?this.runLocalHooks("insertRowRequire",rr(cr,this).countRenderableRows()):m&&p.assign(r)}else if(p.row<0){const n=(0,y.nA)(m),o=p.col-1,i=rr(cr,this).createCellCoords(t+p.row,o<0?e+o:o);this.runLocalHooks("beforeColumnWrap",n,ar(ur,this,vr).call(this,i),o<0),m&&p.assign(i)}if(p.col>=e){const o=(0,y.nA)(n&&u>0),i=p.row+1,r=rr(cr,this).createCellCoords(i>=t?i-t:i,p.col-e);this.runLocalHooks("beforeRowWrap",o,ar(ur,this,vr).call(this,r),i>=t),o.value?this.runLocalHooks("insertColRequire",rr(cr,this).countRenderableColumns()):h&&p.assign(r)}else if(p.col<0){const n=(0,y.nA)(h),o=p.row-1,i=rr(cr,this).createCellCoords(o<0?t+o:o,e+p.col);this.runLocalHooks("beforeRowWrap",n,ar(ur,this,vr).call(this,i),o<0),h&&p.assign(i)}const{rowDir:f,colDir:g}=ar(ur,this,mr).call(this,p);s=f,a=g,i=ar(ur,this,vr).call(this,p)}return this.runLocalHooks("afterTransformStart",i,s,a),i}transformEnd(e,t){const n=rr(cr,this).createCellCoords(e,t),o=rr(lr,this).current(),i=rr(cr,this).visualToRenderableCoords(o.highlight),r=ar(ur,this,fr).call(this,o.to.row,o.from.row),s=ar(ur,this,gr).call(this,o.to.col,o.from.col),a=o.to.clone();let l=0,c=0;if(this.runLocalHooks("beforeTransformEnd",n),null!==i.row&&null!==i.col&&null!==r&&null!==s){const{row:e,col:t}=ar(ur,this,br).call(this,o.highlight),i=rr(cr,this).createCellCoords(r+n.row,s+n.col),d=o.getTopStartCorner(),u=o.getTopEndCorner(),h=o.getBottomEndCorner();if(n.col<0&&s>=t&&i.col<t){const e=i.col-t;i.col=ar(ur,this,gr).call(this,d.col,u.col)+e}else if(n.col>0&&s<=t&&i.col>t){const e=ar(ur,this,gr).call(this,u.col,d.col),t=Math.max(i.col-e,1);i.col=e+t}if(n.row<0&&r>=e&&i.row<e){const t=i.row-e;i.row=ar(ur,this,fr).call(this,d.row,h.row)+t}else if(n.row>0&&r<=e&&i.row>e){const e=ar(ur,this,fr).call(this,h.row,d.row),t=Math.max(i.row-e,1);i.row=e+t}const{rowDir:m,colDir:p}=ar(ur,this,mr).call(this,i);l=m,c=p;const f=ar(ur,this,vr).call(this,i);0===n.row&&0!==n.col?a.col=f.col:0!==n.row&&0===n.col?a.row=f.row:(a.row=f.row,a.col=f.col)}return this.runLocalHooks("afterTransformEnd",a,l,c),a}setOffsetSize(e){let{x:t,y:n}=e;sr(dr,this,{x:t,y:n})}resetOffsetSize(){sr(dr,this,{x:0,y:0})}}function mr(e){const{width:t,height:n}=ar(ur,this,pr).call(this);let o=0,i=0;return e.row<0?(o=-1,e.row=0):e.row>0&&e.row>=n&&(o=1,e.row=n-1),e.col<0?(i=-1,e.col=0):e.col>0&&e.col>=t&&(i=1,e.col=t-1),{rowDir:o,colDir:i}}function pr(){return{width:rr(dr,this).x+rr(cr,this).countRenderableColumns(),height:rr(dr,this).y+rr(cr,this).countRenderableRows()}}function fr(e,t){const n=rr(cr,this).findFirstNonHiddenRenderableRow(e,t);return null===n?null:rr(dr,this).y+n}function gr(e,t){const n=rr(cr,this).findFirstNonHiddenRenderableColumn(e,t);return null===n?null:rr(dr,this).x+n}function br(e){const{row:t,col:n}=rr(cr,this).visualToRenderableCoords(e);if(null===t||null===n)throw new Error("Renderable coords are not visible.");return rr(cr,this).createCellCoords(rr(dr,this).y+t,rr(dr,this).x+n)}function vr(e){const t=e.clone();return t.col=e.col-rr(dr,this).x,t.row=e.row-rr(dr,this).y,rr(cr,this).renderableToVisualCoords(t)}(0,y.co)(hr,Zo.A);const yr=hr;var wr=n(76396);function Cr(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function _r(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sr(e,t){return e.get(Er(e,t))}function Mr(e,t,n){return e.set(Er(e,t),n),n}function Er(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var xr=new WeakMap,kr=new WeakMap,Tr=new WeakMap,Rr=new WeakMap,Ar=new WeakMap,Lr=new WeakMap;class Or{constructor(e,t){var n=this;_r(this,"settings",void 0),_r(this,"tableProps",void 0),_r(this,"inProgress",!1),_r(this,"selectedRange",new nr(((e,t,n)=>this.tableProps.createCellRange(e,t,n)))),_r(this,"highlight",void 0),Cr(this,xr,void 0),Cr(this,kr,void 0),_r(this,"selectedByRowHeader",new Set),_r(this,"selectedByColumnHeader",new Set),Cr(this,Tr,!1),Cr(this,Rr,!1),Cr(this,Ar,"unknown"),Cr(this,Lr,-1),this.settings=e,this.tableProps=t,this.highlight=new Zi({headerClassName:e.currentHeaderClassName,activeHeaderClassName:e.activeHeaderClassName,rowClassName:e.currentRowClassName,columnClassName:e.currentColClassName,cellAttributes:[(0,Me.H0)()],rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper,disabledCellSelection:(e,t)=>this.tableProps.isDisabledCellSelection(e,t),cellCornerVisible:function(){return n.isCellCornerVisible(...arguments)},areaCornerVisible:function(){return n.isAreaCornerVisible(...arguments)},visualToRenderableCoords:e=>this.tableProps.visualToRenderableCoords(e),renderableToVisualCoords:e=>this.tableProps.renderableToVisualCoords(e),createCellCoords:(e,t)=>this.tableProps.createCellCoords(e,t),createCellRange:(e,t,n)=>this.tableProps.createCellRange(e,t,n)}),Mr(xr,this,new yr(this.selectedRange,{rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper,countRenderableRows:()=>this.tableProps.countRenderableRows(),countRenderableColumns:()=>this.tableProps.countRenderableColumns(),visualToRenderableCoords:e=>this.tableProps.visualToRenderableCoords(e),renderableToVisualCoords:e=>this.tableProps.renderableToVisualCoords(e),findFirstNonHiddenRenderableRow:function(){return n.tableProps.findFirstNonHiddenRenderableRow(...arguments)},findFirstNonHiddenRenderableColumn:function(){return n.tableProps.findFirstNonHiddenRenderableColumn(...arguments)},createCellCoords:(e,t)=>this.tableProps.createCellCoords(e,t),fixedRowsBottom:()=>e.fixedRowsBottom,minSpareRows:()=>e.minSpareRows,minSpareCols:()=>e.minSpareCols,autoWrapRow:()=>e.autoWrapRow,autoWrapCol:()=>e.autoWrapCol})),Mr(kr,this,new yr(this.selectedRange,{rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper,countRenderableRows:()=>{const e=this.selectedRange.current();return this.tableProps.countRenderableRowsInRange(0,e.getOuterBottomEndCorner().row)},countRenderableColumns:()=>{const e=this.selectedRange.current();return this.tableProps.countRenderableColumnsInRange(0,e.getOuterBottomEndCorner().col)},visualToRenderableCoords:e=>this.tableProps.visualToRenderableCoords(e),renderableToVisualCoords:e=>this.tableProps.renderableToVisualCoords(e),findFirstNonHiddenRenderableRow:function(){return n.tableProps.findFirstNonHiddenRenderableRow(...arguments)},findFirstNonHiddenRenderableColumn:function(){return n.tableProps.findFirstNonHiddenRenderableColumn(...arguments)},createCellCoords:(e,t)=>this.tableProps.createCellCoords(e,t),fixedRowsBottom:()=>0,minSpareRows:()=>0,minSpareCols:()=>0,autoWrapRow:()=>!0,autoWrapCol:()=>!0})),Sr(xr,this).addLocalHook("beforeTransformStart",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.runLocalHooks("beforeModifyTransformStart",...t)})),Sr(xr,this).addLocalHook("afterTransformStart",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.runLocalHooks("afterModifyTransformStart",...t)})),Sr(xr,this).addLocalHook("beforeTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.runLocalHooks("beforeModifyTransformEnd",...t)})),Sr(xr,this).addLocalHook("afterTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.runLocalHooks("afterModifyTransformEnd",...t)})),Sr(xr,this).addLocalHook("insertRowRequire",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.runLocalHooks("insertRowRequire",...t)})),Sr(xr,this).addLocalHook("insertColRequire",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.runLocalHooks("insertColRequire",...t)})),Sr(xr,this).addLocalHook("beforeRowWrap",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.runLocalHooks("beforeRowWrap",...t)})),Sr(xr,this).addLocalHook("beforeColumnWrap",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.runLocalHooks("beforeColumnWrap",...t)})),Sr(kr,this).addLocalHook("beforeTransformStart",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.runLocalHooks("beforeModifyTransformFocus",...t)})),Sr(kr,this).addLocalHook("afterTransformStart",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.runLocalHooks("afterModifyTransformFocus",...t)}))}getSelectedRange(){return this.selectedRange}markSource(e){Mr(Ar,this,e)}markEndSource(){Mr(Ar,this,"unknown")}getSelectionSource(){return Sr(Ar,this)}setExpectedLayers(e){Mr(Lr,this,e)}begin(){this.inProgress=!0}finish(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1,Mr(Lr,this,-1)}isInProgress(){return this.inProgress}setRangeStart(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e;const i="multiple"===this.settings.selectionMode,s=(0,r.b0)(t)?this.tableProps.getShortcutManager().isCtrlPressed():t,a=e.clone();Mr(Tr,this,!1),this.runLocalHooks("beforeSetRangeStart"+(n?"Only":""),a),(!i||i&&!s&&(0,r.b0)(t))&&this.selectedRange.clear(),this.selectedRange.add(a).current().setHighlight(o.clone()),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),n||this.setRangeEnd(e)}setRangeStartOnly(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;this.setRangeStart(e,t,!0,n)}setRangeEnd(e){if(this.selectedRange.isEmpty())return;const t=e.clone(),n=this.tableProps.countRows(),o=this.tableProps.countCols(),i=this.selectedRange.current().clone().setTo(e).isSingleHeader();if((n>0||o>0)&&(0===n&&t.col<0&&!i||0===o&&t.row<0&&!i))return;this.runLocalHooks("beforeSetRangeEnd",t),this.begin();const r=this.selectedRange.current();if(this.settings.navigableHeaders||r.highlight.normalize(),"single"===this.settings.selectionMode)r.setFrom(r.highlight),r.setTo(r.highlight);else{const e=r.getHorizontalDirection(),n=r.getVerticalDirection(),o=this.isMultiple();r.setTo(t),o&&(e!==r.getHorizontalDirection()||1===r.getWidth()&&!r.includes(r.highlight))&&r.from.assign({col:r.highlight.col}),o&&(n!==r.getVerticalDirection()||1===r.getHeight()&&!r.includes(r.highlight))&&r.from.assign({row:r.highlight.row})}n>0&&o>0&&(!this.settings.navigableHeaders||this.settings.navigableHeaders&&!r.isSingleHeader())&&r.to.normalize(),this.runLocalHooks("beforeHighlightSet"),this.setRangeFocus(this.selectedRange.current().highlight),this.applyAndCommit();const s=-1===Sr(Lr,this)||this.selectedRange.size()===Sr(Lr,this);this.runLocalHooks("afterSetRangeEnd",e,s)}applyAndCommit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedRange.current(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLayerLevel();const n=this.tableProps.countRows(),o=this.tableProps.countCols();t<this.highlight.layerLevel&&((0,F.z0)(this.highlight.getAreas(),(e=>{e.clear()})),(0,F.z0)(this.highlight.getLayeredAreas(),(e=>{e.clear()})),(0,F.z0)(this.highlight.getRowHeaders(),(e=>{e.clear()})),(0,F.z0)(this.highlight.getColumnHeaders(),(e=>{e.clear()})),(0,F.z0)(this.highlight.getActiveRowHeaders(),(e=>{e.clear()})),(0,F.z0)(this.highlight.getActiveColumnHeaders(),(e=>{e.clear()})),(0,F.z0)(this.highlight.getActiveCornerHeaders(),(e=>{e.clear()})),(0,F.z0)(this.highlight.getRowHighlights(),(e=>{e.clear()})),(0,F.z0)(this.highlight.getColumnHighlights(),(e=>{e.clear()}))),this.highlight.useLayerLevel(t);const i=this.highlight.createArea(),r=this.highlight.createLayeredArea(),s=this.highlight.createRowHeader(),a=this.highlight.createColumnHeader(),l=this.highlight.createActiveRowHeader(),c=this.highlight.createActiveColumnHeader(),d=this.highlight.createActiveCornerHeader(),u=this.highlight.createRowHighlight(),h=this.highlight.createColumnHighlight();if(i.clear(),r.clear(),s.clear(),a.clear(),l.clear(),c.clear(),d.clear(),u.clear(),h.clear(),this.highlight.isEnabledFor(Fi.LX,e.highlight)&&(this.isMultiple()||t>=1)&&(i.add(e.from).add(e.to).commit(),r.add(e.from).add(e.to).commit(),1===t)){const e=this.selectedRange.previous();this.highlight.useLayerLevel(t-1),this.highlight.createArea().add(e.from).commit().syncWith(e),this.highlight.createLayeredArea().add(e.from).commit().syncWith(e),this.highlight.useLayerLevel(t)}if(this.highlight.isEnabledFor(Fi.PP,e.highlight)){if(!e.isSingleHeader()){const t=this.tableProps.createCellCoords(Math.max(e.from.row,0),-1),n=this.tableProps.createCellCoords(e.to.row,-1),o=this.tableProps.createCellCoords(-1,Math.max(e.from.col,0)),i=this.tableProps.createCellCoords(-1,e.to.col);"single"===this.settings.selectionMode?(s.add(t).commit(),a.add(o).commit(),u.add(t).commit(),h.add(o).commit()):(s.add(t).add(n).commit(),a.add(o).add(i).commit(),u.add(t).add(n).commit(),h.add(o).add(i).commit())}const t=!Sr(Rr,this)&&this.isEntireRowSelected()&&(o>0&&o===e.getWidth()||0===o&&this.isSelectedByRowHeader()),i=!Sr(Rr,this)&&this.isEntireColumnSelected()&&(n>0&&n===e.getHeight()||0===n&&this.isSelectedByColumnHeader());t&&l.add(this.tableProps.createCellCoords(Math.max(e.from.row,0),Math.min(-this.tableProps.countRowHeaders(),-1))).add(this.tableProps.createCellCoords(Math.max(e.to.row,0),-1)).commit(),i&&c.add(this.tableProps.createCellCoords(Math.min(-this.tableProps.countColHeaders(),-1),Math.max(e.from.col,0))).add(this.tableProps.createCellCoords(-1,Math.max(e.to.col,0))).commit(),t&&i&&d.add(this.tableProps.createCellCoords(-this.tableProps.countColHeaders(),-this.tableProps.countRowHeaders())).add(this.tableProps.createCellCoords(-1,-1)).commit()}}setRangeFocus(e){if(this.selectedRange.isEmpty())return;const t=this.selectedRange.current();this.inProgress||this.runLocalHooks("beforeSetFocus",e);const n=this.highlight.getFocus();n.clear(),t.setHighlight(e),this.inProgress||this.runLocalHooks("beforeHighlightSet"),this.highlight.isEnabledFor(Fi.Yt,t.highlight)&&n.add(t.highlight).commit().syncWith(t),this.inProgress||(Mr(Tr,this,!0),this.runLocalHooks("afterSetFocus",t.highlight))}transformStart(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.settings.navigableHeaders?Sr(xr,this).setOffsetSize({x:this.tableProps.countRowHeaders(),y:this.tableProps.countColHeaders()}):Sr(xr,this).resetOffsetSize(),this.setRangeStart(Sr(xr,this).transformStart(e,t,n))}transformEnd(e,t){this.settings.navigableHeaders?Sr(xr,this).setOffsetSize({x:this.tableProps.countRowHeaders(),y:this.tableProps.countColHeaders()}):Sr(xr,this).resetOffsetSize(),this.setRangeEnd(Sr(xr,this).transformEnd(e,t))}transformFocus(e,t){const n=this.selectedRange.current(),{row:o,col:i}=n.getOuterTopStartCorner(),r=this.tableProps.countRenderableColumnsInRange(0,i-1),s=this.tableProps.countRenderableRowsInRange(0,o-1);n.highlight.isHeader()?Sr(kr,this).setOffsetSize({x:i<0?Math.abs(i):-r,y:o<0?Math.abs(o):-s}):Sr(kr,this).setOffsetSize({x:i<0?0:-r,y:o<0?0:-s});const a=Sr(kr,this).transformStart(e,t);this.setRangeFocus(a.normalize())}shiftRows(e,t){if(!this.isSelected())return;const n=this.selectedRange.current();if(this.isSelectedByCorner())this.selectAll(!0,!0,{disableHeadersHighlight:!0});else if(this.isSelectedByColumnHeader()||n.getOuterTopStartCorner().row>=e){const{from:o,to:i,highlight:r}=n,s=this.tableProps.countRows(),a=this.isSelectedByRowHeader(),l=this.isSelectedByColumnHeader(),c=l?-1:0,d=l?0:t;this.getSelectedRange().pop();const u=this.tableProps.createCellCoords((0,W.qE)(o.row+d,c,s-1),o.col),h=this.tableProps.createCellCoords((0,W.qE)(i.row+t,c,s-1),i.col);this.markSource("shift"),r.row>=e?this.setRangeStartOnly(u,!0,this.tableProps.createCellCoords((0,W.qE)(r.row+t,0,s-1),r.col)):this.setRangeStartOnly(u,!0),a&&this.selectedByRowHeader.add(this.getLayerLevel()),l&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(h),this.markEndSource()}}shiftColumns(e,t){if(!this.isSelected())return;const n=this.selectedRange.current();if(this.isSelectedByCorner())this.selectAll(!0,!0,{disableHeadersHighlight:!0});else if(this.isSelectedByRowHeader()||n.getOuterTopStartCorner().col>=e){const{from:o,to:i,highlight:r}=n,s=this.tableProps.countCols(),a=this.isSelectedByRowHeader(),l=this.isSelectedByColumnHeader(),c=a?-1:0,d=a?0:t;this.getSelectedRange().pop();const u=this.tableProps.createCellCoords(o.row,(0,W.qE)(o.col+d,c,s-1)),h=this.tableProps.createCellCoords(i.row,(0,W.qE)(i.col+t,c,s-1));this.markSource("shift"),r.col>=e?this.setRangeStartOnly(u,!0,this.tableProps.createCellCoords(r.row,(0,W.qE)(r.col+t,0,s-1))):this.setRangeStartOnly(u,!0),a&&this.selectedByRowHeader.add(this.getLayerLevel()),l&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(h),this.markEndSource()}}getLayerLevel(){return this.selectedRange.size()-1}isSelected(){return!this.selectedRange.isEmpty()}isMultiple(){if(!this.isSelected())return!1;const e=(0,y.nA)(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",e),e.value}isFocusSelectionChanged(){return this.isSelected()&&Sr(Tr,this)}isSelectedByRowHeader(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner(e)&&(-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e))}isEntireRowSelected(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();const t=e=>{const{col:t}=e.getOuterTopStartCorner(),n=this.tableProps.countRowHeaders(),o=this.tableProps.countCols();return(n>0&&t<0||0===n)&&e.getWidth()===o};if(-1===e)return Array.from(this.selectedRange).some((e=>t(e)));const n=this.selectedRange.peekByIndex(e);return!!n&&t(n)}isSelectedByColumnHeader(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner()&&(-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e))}isEntireColumnSelected(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();const t=e=>{const{row:t}=e.getOuterTopStartCorner(),n=this.tableProps.countColHeaders(),o=this.tableProps.countRows();return(n>0&&t<0||0===n)&&e.getHeight()===o};if(-1===e)return Array.from(this.selectedRange).some((e=>t(e)));const n=this.selectedRange.peekByIndex(e);return!!n&&t(n)}isSelectedByAnyHeader(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}isSelectedByCorner(){return this.selectedByColumnHeader.has(this.getLayerLevel())&&this.selectedByRowHeader.has(this.getLayerLevel())}inInSelection(e){return this.selectedRange.includes(e)}isCellCornerVisible(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}isCellVisible(e){const t=this.tableProps.visualToRenderableCoords(e);return null!==t.row&&null!==t.col}isAreaCornerVisible(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple()}clear(){this.selectedRange.clear(),this.highlight.clear()}deselect(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}selectAll(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{focusPosition:!1,disableHeadersHighlight:!1};const i=this.tableProps.countRows(),r=this.tableProps.countCols(),s=this.tableProps.countRowHeaders(),a=this.tableProps.countColHeaders(),l=n?-a:0,c=t?-s:0;if(0===l&&0===c&&(0===i||0===r))return;let d=null===(e=this.getSelectedRange().current())||void 0===e?void 0:e.highlight;const{focusPosition:u,disableHeadersHighlight:h}=o;Mr(Rr,this,h),u&&Number.isInteger(null==u?void 0:u.row)&&Number.isInteger(null==u?void 0:u.col)&&(d=this.tableProps.createCellCoords((0,W.qE)(u.row,l,i-1),(0,W.qE)(u.col,c,r-1)));const m=this.tableProps.createCellCoords(l,c),p=this.tableProps.createCellCoords(i-1,r-1);this.clear(),this.setRangeStartOnly(m,void 0,d),c<0&&this.selectedByRowHeader.add(this.getLayerLevel()),l<0&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(p),this.finish(),Mr(Rr,this,!1)}selectCells(e){var t=this;const n=(0,wr.ML)(e);if(n===wr.Qz)return!1;if(n===wr.ay)throw new Error(Te.O`Unsupported format of the selection ranges was passed. To select cells pass\x20
  54. the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\x20
  55. columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);const o=(0,wr._e)(n,{createCellCoords:function(){return t.tableProps.createCellCoords(...arguments)},createCellRange:function(){return t.tableProps.createCellRange(...arguments)},propToCol:e=>this.tableProps.propToCol(e),keepDirection:!0}),i=this.settings.navigableHeaders,r={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:i?this.tableProps.countRowHeaders():0,countColHeaders:i?this.tableProps.countColHeaders():0},s=!e.some((e=>{const t=o(e),n=t.isValid(r);return!(n&&!t.containsHeaders()||n&&t.containsHeaders()&&t.isSingleHeader())}));return s&&(this.clear(),this.setExpectedLayers(e.length),(0,F.z0)(e,(e=>{const{from:t,to:n}=o(e);this.setRangeStartOnly(t.clone(),!1),this.setRangeEnd(n.clone())})),this.finish()),s}selectColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o="string"==typeof e?this.tableProps.propToCol(e):e,i="string"==typeof t?this.tableProps.propToCol(t):t,r=this.tableProps.countRows(),s=this.tableProps.countCols(),a=this.tableProps.countColHeaders(),l=0===a?0:-a,c=this.tableProps.createCellCoords(l,o),d=this.tableProps.createCellCoords(r-1,i),u=this.tableProps.createCellRange(c,c,d).isValid({countRows:r,countCols:s,countRowHeaders:0,countColHeaders:a});if(u){let e=0,t=0;Number.isInteger(null==n?void 0:n.row)&&Number.isInteger(null==n?void 0:n.col)?(e=(0,W.qE)(n.row,l,r-1),t=(0,W.qE)(n.col,Math.min(o,i),Math.max(o,i))):(e=(0,W.qE)(n,l,r-1),t=o);const s=this.tableProps.createCellCoords(e,t),c=0===a?0:(0,W.qE)(s.row,l,-1),d=r-1,u=this.tableProps.createCellCoords(c,o),h=this.tableProps.createCellCoords(d,i);this.runLocalHooks("beforeSelectColumns",u,h,s),u.row=c,h.row=d,this.setRangeStartOnly(u,void 0,s),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(h),this.runLocalHooks("afterSelectColumns",u,h,s),this.finish()}return u}selectRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=this.tableProps.countRows(),i=this.tableProps.countCols(),r=this.tableProps.countRowHeaders(),s=0===r?0:-r,a=this.tableProps.createCellCoords(e,s),l=this.tableProps.createCellCoords(t,i-1),c=this.tableProps.createCellRange(a,a,l).isValid({countRows:o,countCols:i,countRowHeaders:r,countColHeaders:0});if(c){let o=0,a=0;Number.isInteger(null==n?void 0:n.row)&&Number.isInteger(null==n?void 0:n.col)?(o=(0,W.qE)(n.row,Math.min(e,t),Math.max(e,t)),a=(0,W.qE)(n.col,s,i-1)):(o=e,a=(0,W.qE)(n,s,i-1));const l=this.tableProps.createCellCoords(o,a),c=0===r?0:(0,W.qE)(l.col,s,-1),d=i-1,u=this.tableProps.createCellCoords(e,c),h=this.tableProps.createCellCoords(t,d);this.runLocalHooks("beforeSelectRows",u,h,l),u.col=c,h.col=d,this.setRangeStartOnly(u,void 0,l),this.selectedByRowHeader.add(this.getLayerLevel()),this.setRangeEnd(h),this.runLocalHooks("afterSelectRows",u,h,l),this.finish()}return c}refresh(){if(!this.isSelected())return;const e=this.tableProps.countRows(),t=this.tableProps.countCols();if(0===e||0===t)return void this.deselect();const n=this.selectedRange.peekByIndex(this.selectedRange.size()-1),{from:o,to:i,highlight:r}=n;this.clear(),r.assign({row:(0,W.qE)(r.row,-1/0,e-1),col:(0,W.qE)(r.col,-1/0,t-1)}),o.assign({row:(0,W.qE)(o.row,-1/0,e-1),col:(0,W.qE)(o.col,-1/0,t-1)}),i.assign({row:(0,W.qE)(i.row,0,e-1),col:(0,W.qE)(i.col,0,t-1)}),this.selectedRange.ranges.push(n),this.highlight.isEnabledFor(Fi.Yt,this.selectedRange.current().highlight)&&this.highlight.getFocus().add(r).commit().syncWith(n),this.applyAndCommit(n)}commit(){if(this.highlight.getCustomSelections().forEach((e=>{e.commit()})),!this.isSelected())return;const e=this.getLayerLevel(),t=this.selectedRange.current();this.highlight.isEnabledFor(Fi.Yt,t.highlight)&&this.highlight.getFocus().commit().syncWith(t);for(let e=0;e<this.selectedRange.size();e+=1){this.highlight.useLayerLevel(e);const t=this.highlight.createArea(),n=this.highlight.createLayeredArea(),o=this.highlight.createRowHeader(),i=this.highlight.createColumnHeader(),r=this.highlight.createActiveRowHeader(),s=this.highlight.createActiveColumnHeader(),a=this.highlight.createActiveCornerHeader(),l=this.highlight.createRowHighlight(),c=this.highlight.createColumnHighlight();t.commit(),n.commit(),o.commit(),i.commit(),r.commit(),s.commit(),a.commit(),l.commit(),c.commit()}this.highlight.useLayerLevel(e)}}(0,y.co)(Or,Zo.A);const Dr=Or;var Hr=n(87979);function Ir(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const o="string"==typeof t.type?(0,Hr.r0)(t.type):t.type;if(e._automaticallyAssignedMetaProps&&(0,y.v4)(t,((t,n)=>{e._automaticallyAssignedMetaProps.delete(n)})),!(0,y.Gv)(o))return;n!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);const i={};(0,y.v4)(o,((t,o)=>{var r;(function(e,t){var n;return"CELL_TYPE"!==e&&((null===(n=t._automaticallyAssignedMetaProps)||void 0===n?void 0:n.has(e))||!(0,y.mQ)(t,e))})(o,n)&&(i[o]=t,null===(r=e._automaticallyAssignedMetaProps)||void 0===r||r.add(o))})),(0,y.X$)(e,i)}function Pr(e){return Number.isInteger(e)&&e>=0}function Nr(e,t){if(!e())throw new Error(`Assertion failed: ${t}`)}function Fr(e){return null==e}const zr=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,n,o;for(t=0,n=this.countRows();t<n;t++)if(o=this.getDataAtCell(t,e),!1===(0,r.Im)(o))return!1;return!0},isEmptyRow(e){let t,n,o,i;for(t=0,n=this.countCols();t<n;t++)if(o=this.getDataAtCell(e,t),!1===(0,r.Im)(o))return"object"==typeof o&&(i=this.getCellMeta(e,t),(0,y.wU)(this.getSchema()[i.prop],o));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0});function jr(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Yr{constructor(e){jr(this,"metaCtor",class{}),jr(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,y.X$)(this.meta,zr()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,y.X$)(this.meta,e),Ir(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}class $r{constructor(e){var t,n,o;t=this,o=void 0,(n=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(n="meta"))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o;const i=e.getMetaConstructor();this.meta=new i}getMeta(){return this.meta}updateMeta(e){(0,y.X$)(this.meta,e),Ir(this.meta,e,e)}}function Br(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Wr{constructor(e){Br(this,"valueFactory",void 0),Br(this,"data",[]),Br(this,"index",[]),Br(this,"holes",new Set),this.valueFactory=e}obtain(e){Nr((()=>Pr(e)),"Expecting an unsigned number.");const t=this._getStorageIndexByKey(e);let n;if(t>=0)n=this.data[t],void 0===n&&(n=this.valueFactory(e),this.data[t]=n);else if(n=this.valueFactory(e),this.holes.size>0){const t=this.holes.values().next().value;this.holes.delete(t),this.data[t]=n,this.index[e]=t}else this.data.push(n),this.index[e]=this.data.length-1;return n}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;Nr((()=>Pr(e)||Fr(e)),"Expecting an unsigned number or null/undefined argument.");const n=[],o=this.data.length;for(let e=0;e<t;e++)n.push(o+e),this.data.push(void 0);const i=Fr(e)?this.index.length:e;this.index=[...this.index.slice(0,i),...n,...this.index.slice(i)]}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;Nr((()=>Pr(e)||Fr(e)),"Expecting an unsigned number or null/undefined argument.");const n=this.index.splice(Fr(e)?this.index.length-t:e,t);for(let e=0;e<n.length;e++){const t=n[e];"number"==typeof t&&this.holes.add(t)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter(((e,t)=>void 0!==e&&!this.holes.has(t)))[Symbol.iterator]()}entries(){const e=[];for(let t=0;t<this.data.length;t++){const n=this._getKeyByStorageIndex(t);-1!==n&&void 0!==this.data[t]&&e.push([n,this.data[t]])}let t=0;return{next:()=>{if(t<e.length){const n=e[t];return t+=1,{value:n,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}function Vr(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ur=["data","width"];class Gr{constructor(e){Vr(this,"globalMeta",void 0),Vr(this,"metas",new Wr((()=>this._createMeta()))),this.globalMeta=e,this.metas=new Wr((()=>this._createMeta()))}updateMeta(e,t){const n=this.getMeta(e);(0,y.X$)(n,t),Ir(n,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function n(){}(0,y.IL)(n,e);for(let e=0;e<t.length;e++)n.prototype[t[e]]=void 0;return n}(this.globalMeta.getMetaConstructor(),Ur).prototype}}function Kr(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class qr{constructor(e){Kr(this,"columnMeta",void 0),Kr(this,"metas",new Wr((()=>this._createRow()))),this.columnMeta=e}updateMeta(e,t,n){const o=this.getMeta(e,t);(0,y.X$)(o,n),Ir(o,n)}createRow(e,t){this.metas.insert(e,t)}createColumn(e,t){for(let n=0;n<this.metas.size();n++)this.metas.obtain(n).insert(e,t)}removeRow(e,t){this.metas.remove(e,t)}removeColumn(e,t){for(let n=0;n<this.metas.size();n++)this.metas.obtain(n).remove(e,t)}getMeta(e,t,n){const o=this.metas.obtain(e).obtain(t);return void 0===n?o:o[n]}setMeta(e,t,n,o){var i;const r=this.metas.obtain(e).obtain(t);null===(i=r._automaticallyAssignedMetaProps)||void 0===i||i.delete(n),r[n]=o}removeMeta(e,t,n){delete this.metas.obtain(e).obtain(t)[n]}getMetas(){const e=[],t=Array.from(this.metas.values());for(let n=0;n<t.length;n++)(0,r.O9)(t[n])&&e.push(...t[n].values());return e}getMetasAtRow(e){Nr((()=>Pr(e)),"Expecting an unsigned number.");const t=new Map(this.metas);return t.has(e)?Array.from(t.get(e).values()):[]}clearCache(){this.metas.clear()}_createRow(){return new Wr((e=>this._createMeta(e)))}_createMeta(e){return new(this.columnMeta.getMetaConstructor(e))}}class Xr{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.hot=e,this.globalMeta=new Yr(e),this.tableMeta=new $r(this.globalMeta),this.columnMeta=new Gr(this.globalMeta),this.cellMeta=new qr(this.columnMeta),n.forEach((e=>new e(this))),this.globalMeta.updateMeta(t)}getGlobalMeta(){return this.globalMeta.getMeta()}updateGlobalMeta(e){this.globalMeta.updateMeta(e)}getTableMeta(){return this.tableMeta.getMeta()}updateTableMeta(e){this.tableMeta.updateMeta(e)}getColumnMeta(e){return this.columnMeta.getMeta(e)}updateColumnMeta(e,t){this.columnMeta.updateMeta(e,t)}getCellMeta(e,t,n){const o=this.cellMeta.getMeta(e,t);return o.visualRow=n.visualRow,o.visualCol=n.visualColumn,o.row=e,o.col=t,n.skipMetaExtension||this.runLocalHooks("afterGetCellMeta",o),o}getCellMetaKeyValue(e,t,n){if("string"!=typeof n)throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,t,n)}setCellMeta(e,t,n,o){this.cellMeta.setMeta(e,t,n,o)}updateCellMeta(e,t,n){this.cellMeta.updateMeta(e,t,n)}removeCellMeta(e,t,n){this.cellMeta.removeMeta(e,t,n)}getCellsMeta(){return this.cellMeta.getMetas()}getCellsMetaAtRow(e){return this.cellMeta.getMetasAtRow(e)}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}createColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}removeColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}clearCellsCache(){this.cellMeta.clearCache()}clearCache(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}function Jr(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,y.co)(Xr,Zo.A);class Qr{constructor(e){var t=this;Jr(this,"metaManager",void 0),Jr(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",(function(){return t.extendCellMeta(...arguments)})),wi.R.getSingleton().add("beforeRender",(e=>{e&&this.metaSyncMemo.clear()}),this.metaManager.hot)}extendCellMeta(e){var t;const{row:n,col:o}=e;if(null!==(t=this.metaSyncMemo.get(n))&&void 0!==t&&t.has(o))return;const{visualRow:r,visualCol:s}=e,a=this.metaManager.hot,l=a.colToProp(s);e.prop=l,a.runHooks("beforeGetCellMeta",r,s,e);const c=(0,y.mQ)(e,"type")?e.type:null;let d=(0,i.Tn)(e.cells)?e.cells(n,o,l):null;var u;c&&(d?d.type=null!==(u=d.type)&&void 0!==u?u:c:d={type:c}),d&&this.metaManager.updateCellMeta(n,o,d),a.runHooks("afterGetCellMeta",r,s,e),this.metaSyncMemo.has(n)||this.metaSyncMemo.set(n,new Set),this.metaSyncMemo.get(n).add(o)}}function Zr(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var es=new WeakMap;class ts{constructor(e){var t,n,o;Zr(this,"metaManager",void 0),Zr(this,"usageTracker",new Set),Zr(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),o=(e,t,n)=>{if(!n)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=es),n.set(t,o),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach(((e,t)=>{const{initOnly:n,target:o,onChange:i}=e,r="string"==typeof o,s=r?o:t,a=`_${s}`;var l,c;this.metaManager.globalMeta.meta[a]=this.metaManager.globalMeta.meta[s],i?(this.installPropWatcher(t,a,i),r&&this.installPropWatcher(o,a,i)):n&&(this.installPropWatcher(t,a,(c=this,(l=es).get(function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(l,c)))),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))}))}installPropWatcher(e,t,n){const o=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(i){const r=!o.usageTracker.has(e);o.usageTracker.add(e),n.call(o,e,i,r),this[t]=i},enumerable:!0,configurable:!0})}}var ns=n(13431);function os(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class is{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,t,n){os(this,"hot",void 0),os(this,"metaManager",void 0),os(this,"tableMeta",void 0),os(this,"dataSource",void 0),os(this,"duckSchema",void 0),os(this,"colToPropCache",void 0),os(this,"propToColCache",void 0),this.hot=e,this.metaManager=n,this.tableMeta=n.getTableMeta(),this.dataSource=t,this.refreshDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");const t=this.tableMeta.columns;let n;if(this.colToPropCache=[],this.propToColCache=new Map,t){let o=0,i=0,r=!1;if("function"==typeof t){const t=(0,y.$3)(e);o=t>0?t:this.countFirstRowKeys(),r=!0}else{const e=this.tableMeta.maxCols;o=Math.min(e,t.length)}for(n=0;n<o;n++){const e=r?t(n):t[n];if((0,y.Gv)(e)){if(void 0!==e.data){const t=r?i:n;this.colToPropCache[t]=e.data,this.propToColCache.set(e.data,t)}i+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return(0,$o.E)(this.dataSource)}recursiveDuckColumns(e,t,n){let o,i=t,r=n;return void 0===i&&(i=0,r=""),"object"!=typeof e||Array.isArray(e)||(0,y.v4)(e,((e,t)=>{null===e?(o=r+t,this.colToPropCache.push(o),this.propToColCache.set(o,i),i+=1):i=this.recursiveDuckColumns(e,i,`${t}.`)})),i}colToProp(e){if(!1===Number.isInteger(e))return e;const t=this.hot.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&(0,r.O9)(this.colToPropCache[t])?this.colToPropCache[t]:t}propToCol(e){const t=this.propToColCache.get(e);if((0,r.O9)(t))return this.hot.toVisualColumn(t);const n=this.hot.toVisualColumn(e);return null===n?e:n}getSchema(){const e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?(0,y.Nl)(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:n,mode:o="above"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.hot.countSourceRows();let r=i,s=0,a=e;if(("number"!=typeof a||a>=i)&&(a=i),a<this.hot.countRows()&&(r=this.hot.toPhysicalRow(a)),!1===this.hot.runHooks("beforeCreateRow",a,t,n)||null===r)return{delta:0};const l=this.tableMeta.maxRows,c=this.getSchema().length,d=[];for(;s<t&&i+s<l;){let e=null;"array"===this.hot.dataType?this.tableMeta.dataSchema?e=(0,y.Go)(this.getSchema()):(e=[],(0,W.Ti)(c-1,(()=>e.push(null)))):"function"===this.hot.dataType?e=this.tableMeta.dataSchema(a+s):(e={},(0,y.zw)(e,this.getSchema())),d.push(e),s+=1}this.hot.rowIndexMapper.insertIndexes(a,s),"below"===o&&(r=Math.min(r+1,i)),this.spliceData(r,0,d);const u=this.hot.toVisualRow(r);return this.hot.countSourceRows()===d.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),s>0&&(null==e?this.metaManager.createRow(null,s):"auto"!==n&&this.metaManager.createRow(r,t)),this.hot.runHooks("afterCreateRow",u,s,n),{delta:s,startPhysicalIndex:r}}createCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:n,mode:o="start"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.hot.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");const i=this.dataSource,r=this.tableMeta.maxCols,s=this.hot.countSourceCols();let a=e;if(("number"!=typeof a||a>=s)&&(a=s),!1===this.hot.runHooks("beforeCreateCol",a,t,n))return{delta:0};let l=s;a<this.hot.countCols()&&(l=this.hot.toPhysicalColumn(a));const c=this.hot.countSourceRows();let d=this.hot.countCols(),u=0,h=l;"end"===o&&(h=Math.min(h+1,s));const m=h;for(;u<t&&d<r;){if("number"!=typeof a||a>=d)if(c>0)for(let e=0;e<c;e+=1)void 0===i[e]&&(i[e]=[]),i[e].push(null);else i.push([null]);else for(let e=0;e<c;e++)i[e].splice(h,0,null);u+=1,h+=1,d+=1}this.hot.columnIndexMapper.insertIndexes(a,u),u>0&&(null==e?this.metaManager.createColumn(null,u):"auto"!==n&&this.metaManager.createColumn(m,t));const p=this.hot.toVisualColumn(m);return this.hot.runHooks("afterCreateCol",p,u,n),this.refreshDuckSchema(),{delta:u,startPhysicalIndex:m}}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,o=Number.isInteger(e)?e:-t;const i=this.visualRowsToPhysical(o,t),s=this.hot.countSourceRows();if(o=(s+o)%s,!1===this.hot.runHooks("beforeRemoveRow",o,i.length,i,n))return!1;const a=i.length;if(this.filterData(o,a,i),o<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(i);const e=(0,r.O9)(this.tableMeta.columns)||(0,r.O9)(this.tableMeta.dataSchema)||this.tableMeta.colHeaders;0!==this.hot.rowIndexMapper.getNotTrimmedIndexesLength()||e||this.hot.columnIndexMapper.setIndexesSequence([])}return i.slice(0).sort(((e,t)=>t-e)).forEach((e=>{this.metaManager.removeRow(e,1)})),this.hot.runHooks("afterRemoveRow",o,a,i,n),!0}removeCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if("object"===this.hot.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");let o="number"!=typeof e?-t:e;o=(this.hot.countCols()+o)%this.hot.countCols();const i=this.visualColumnsToPhysical(o,t),r=i.slice(0).sort(((e,t)=>t-e));if(!1===this.hot.runHooks("beforeRemoveCol",o,t,i,n))return!1;let s=!0;const a=r.length,l=this.dataSource;for(let e=0;e<a;e++)s&&i[0]!==i[e]-e&&(s=!1);if(s)for(let e=0,n=this.hot.countSourceRows();e<n;e++)l[e].splice(i[0],t),0===e&&this.metaManager.removeColumn(i[0],t);else for(let e=0,t=this.hot.countSourceRows();e<t;e++)for(let t=0;t<a;t++)l[e].splice(r[t],1),0===e&&this.metaManager.removeColumn(r[t],1);return o<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(i),this.tableMeta.rowHeaders||0!==this.hot.columnIndexMapper.getNotTrimmedIndexesLength()||this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",o,t,i,n),this.refreshDuckSchema(),!0}spliceCol(e,t,n){const o=this.hot.getDataAtCol(e),i=o.slice(t,t+n),r=o.slice(t+n);for(var s=arguments.length,a=new Array(s>3?s-3:0),l=3;l<s;l++)a[l-3]=arguments[l];(0,F.Sh)(a,r);let c=0;for(;c<n;)a.push(null),c+=1;return(0,F.Zz)(a),this.hot.populateFromArray(t,e,a,null,null,"spliceCol"),i}spliceRow(e,t,n){const o=this.hot.getSourceDataAtRow(e),i=o.slice(t,t+n),r=o.slice(t+n);for(var s=arguments.length,a=new Array(s>3?s-3:0),l=3;l<s;l++)a[l-3]=arguments[l];(0,F.Sh)(a,r);let c=0;for(;c<n;)a.push(null),c+=1;return this.hot.populateFromArray(e,t,[a],null,null,"spliceRow"),i}spliceData(e,t,n){if(!1!==this.hot.runHooks("beforeDataSplice",e,t,n)){const t=[...this.dataSource.slice(0,e),...n,...this.dataSource.slice(e)];this.dataSource.length=0,t.forEach((e=>this.dataSource.push(e)))}}filterData(e,t,n){let o=this.hot.runHooks("filterData",e,t,n);!1===Array.isArray(o)&&(o=this.dataSource.filter(((e,t)=>-1===n.indexOf(t)))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,o)}get(e,t){const n=this.hot.toPhysicalRow(e);let o=this.dataSource[n];const i=this.hot.runHooks("modifyRowData",n);o=isNaN(i)?i:o;const{dataDotNotation:r}=this.hot.getSettings();let s=null;if(o&&o.hasOwnProperty&&(0,y.mQ)(o,t))s=o[t];else if(r&&"string"==typeof t&&t.indexOf(".")>-1){let e=o;if(!e)return null;const n=t.split(".");for(let t=0,o=n.length;t<o;t++)if(e=e[n[t]],void 0===e)return null;s=e}else"function"==typeof t&&(s=t(this.dataSource.slice(n,n+1)[0]));if(this.hot.hasHook("modifyData")){const e=(0,y.nA)(s);this.hot.runHooks("modifyData",n,this.propToCol(t),e,"get"),e.isTouched()&&(s=e.value)}return s}getCopyable(e,t){return this.hot.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}set(e,t,n){const o=this.hot.toPhysicalRow(e);let i=n,r=this.dataSource[o];const s=this.hot.runHooks("modifyRowData",o);if(r=isNaN(s)?s:r,this.hot.hasHook("modifyData")){const e=(0,y.nA)(i);this.hot.runHooks("modifyData",o,this.propToCol(t),e,"set"),e.isTouched()&&(i=e.value)}const{dataDotNotation:a}=this.hot.getSettings();if(r&&r.hasOwnProperty&&(0,y.mQ)(r,t))r[t]=i;else if(a&&"string"==typeof t&&t.indexOf(".")>-1){let e,n=r,o=0;const s=t.split(".");for(o=0,e=s.length-1;o<e;o++){if("__proto__"===s[o]||"constructor"===s[o]||"prototype"===s[o])return;void 0===n[s[o]]&&(n[s[o]]={}),n=n[s[o]]}n[s[o]]=i}else if("function"==typeof t)t(this.dataSource.slice(o,o+1)[0],i);else{if("__proto__"===t||"constructor"===t||"prototype"===t)return;r[t]=i}}visualRowsToPhysical(e,t){const n=this.hot.countSourceRows(),o=[];let i,r=(n+e)%n,s=t;for(;r<n&&s;)i=this.hot.toPhysicalRow(r),o.push(i),s-=1,r+=1;return o}visualColumnsToPhysical(e,t){const n=this.hot.countCols(),o=[];let i=(n+e)%n,r=t;for(;i<n&&r;){const e=this.hot.toPhysicalColumn(i);o.push(e),r-=1,i+=1}return o}clear(){for(let e=0;e<this.hot.countSourceRows();e++)for(let t=0;t<this.hot.countCols();t++)this.set(e,this.colToProp(t),"")}getLength(){const e=this.tableMeta.maxRows;let t;t=e<0||0===e?0:e||1/0;const n=this.hot.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(n,t)}getAll(){const e={row:0,col:0},t={row:Math.max(this.hot.countRows()-1,0),col:Math.max(this.hot.countCols()-1,0)};return e.row-t.row!==0||this.hot.countSourceRows()?this.getRange(e,t,is.DESTINATION_RENDERER):[]}countCachedColumns(){return this.colToPropCache.length}getRange(e,t,n){const o=[];let i,r,s;const a=this.tableMeta.maxRows,l=this.tableMeta.maxCols;if(0===a||0===l)return[];const c=n===is.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,d=Math.min(Math.max(a-1,0),Math.max(e.row,t.row)),u=Math.min(Math.max(l-1,0),Math.max(e.col,t.col));for(i=Math.min(e.row,t.row);i<=d;i++){s=[];const n=i>=0?this.hot.toPhysicalRow(i):i;for(r=Math.min(e.col,t.col);r<=u&&null!==n;r++)s.push(c.call(this,i,this.colToProp(r)));null!==n&&o.push(s)}return o}getText(e,t){return(0,ns.A)(this.getRange(e,t,is.DESTINATION_RENDERER))}getCopyableText(e,t){return(0,ns.A)(this.getRange(e,t,is.DESTINATION_CLIPBOARD_GENERATOR))}destroy(){this.hot=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}const rs=is;function ss(e,t,n,r){const{hotInstance:s,dataMap:a,dataSource:l,internalSource:c,source:d,metaManager:u,firstRun:h}=r,m=(0,B.Ob)(c),p=s.getSettings();Array.isArray(p.dataSchema)?s.dataType="array":(0,i.Tn)(p.dataSchema)?s.dataType="function":s.dataType="object",a&&a.destroy(),e=s.runHooks(`before${m}`,e,h,d);const f=new rs(s,e,u);if(t(f),"object"==typeof e&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error(`${c} only accepts array of objects or array of arrays (${typeof e} given)`);{const t=f.getSchema();let n;e=[];let o=0,i=0;for(o=0,i=p.startRows;o<i;o++)if("object"!==s.dataType&&"function"!==s.dataType||!p.dataSchema)if("array"===s.dataType)n=(0,y.Go)(t[0]),e.push(n);else{n=[];for(let e=0,t=p.startCols;e<t;e++)n.push(null);e.push(n)}else n=(0,y.Go)(t),e.push(n)}}Array.isArray(e[0])&&(s.dataType="array"),p.data=e,f.dataSource=e,l.data=e,l.dataType=s.dataType,l.colToProp=f.colToProp.bind(f),l.propToCol=f.propToCol.bind(f),l.countCachedColumns=f.countCachedColumns.bind(f),n(f),s.runHooks(`after${m}`,e,h,d),h||(s.runHooks("afterChange",null,c),s.render()),s.getSettings().ariaTags&&(0,o.Bq)(s.rootElement,[(0,Me.DZ)(-1),(0,Me.Nb)(s.countCols()+(s.view?s.countRowHeaders():0))])}function as(e){(0,o.sb)(e)&&e.scrollIntoView({block:"nearest",inline:"nearest"})}function ls(e){const{selection:t,view:n}=e,o=e.getSelectedRangeLast(),i=t.getSelectionSource(),r=n.getFirstFullyVisibleColumn(),s=n.getLastFullyVisibleColumn(),a=o.getTopStartCorner().col,l=o.getBottomEndCorner().col,c=a<=r,d=l>=s,u=n.getFirstFullyVisibleRow(),h=n.getLastFullyVisibleRow(),m=o.getTopStartCorner().row,p=o.getBottomEndCorner().row,f=m<=u,g=p>=h;return{getComputedColumnTarget:e=>"mouse"===i||"keyboard"===i?e.col:c&&d?o.highlight.col:c?a:d?l:e.col,getComputedRowTarget:e=>"mouse"===i||"keyboard"===i?e.row:f&&g?o.highlight.row:f?m:g?p:e.row}}var cs=n(79720);function ds(e){const t=e.rootDocument.createElement("input");return t.type="text",t.name="__htFocusCatcher",t.classList.add("htFocusCatcher"),e.getSettings().ariaTags&&(0,o.Bq)(t,[(0,Me.SM)("Focus catcher")]),t}function us(e){const{rowIndexMapper:t,columnIndexMapper:n}=e,{navigableHeaders:o}=e.getSettings();let i=o&&e.countColHeaders()>0?-e.countColHeaders():0,r=o&&e.countRowHeaders()>0?-e.countRowHeaders():0;return 0===i&&(i=t.getVisualFromRenderableIndex(i)),0===r&&(r=n.getVisualFromRenderableIndex(r)),null===i||null===r?null:e._createCellCoords(i,r)}function hs(e){var t,n;const{rowIndexMapper:o,columnIndexMapper:i}=e,{navigableHeaders:r}=e.getSettings();let s=o.getRenderableIndexesLength()-1,a=i.getRenderableIndexesLength()-1;if(s<0){if(!r||0===e.countColHeaders())return null;s=-1}if(a<0){if(!r||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=o.getVisualFromRenderableIndex(s))&&void 0!==t?t:s,null!==(n=i.getVisualFromRenderableIndex(a))&&void 0!==n?n:a)}var ms=n(85428);const ps=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]),fs=e=>e.map((e=>{const t=e.toLowerCase();return ps.has(t)?ps.get(t):t})).sort().join("+"),gs=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]),bs=e=>{let{which:t,key:n}=e;if(gs.has(t))return gs.get(t);const o=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(o)?o:n.toLowerCase()},vs=Symbol("shortcut-context");function ys(e){return(0,y.Gv)(e)&&e.__kindOf===vs}const ws=["meta","alt","shift","control"],Cs=function(){const e=new Set;return{press(t){e.add(t)},release(t){e.delete(t)},releaseAll(){e.clear()},isPressed:t=>e.has(t)}}(),_s=[];let Ss=0;const Ms={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}};var Es=n(32564);const xs={name:"editorCloseAndSaveByArrowKeys",callback(e,t,n){const o=e._getEditorManager(),i=o.getActiveEditor();i.isInFullEditMode()&&i.state===Es._T.EDITING||(o.closeEditorAndSaveChanges(),e.getSelected()&&(n.includes("arrowdown")?e.selection.transformStart(1,0):n.includes("arrowup")?e.selection.transformStart(-1,0):n.includes("arrowleft")?e.selection.transformStart(0,-1*e.getDirectionFactor()):n.includes("arrowright")&&e.selection.transformStart(0,e.getDirectionFactor())),t.preventDefault())}},ks={name:"editorCloseAndSaveByEnter",callback(e,t){const n=e._getEditorManager();n.closeEditorAndSaveChanges(t.ctrlKey||t.metaKey),n.moveSelectionAfterEnter(t)}},Ts={name:"editorCloseWithoutSaving",callback(e){const t=e._getEditorManager();t.closeEditorAndRestoreOriginalValue(e.getShortcutManager().isCtrlPressed()),t.activeEditor.focus()}},Rs={name:"editorFastOpen",callback(e,t){const{highlight:n}=e.getSelectedRangeLast();n.isHeader()||e._getEditorManager().openEditor(null,t,!0)}},As={name:"editorOpen",callback(e,t,n){const o=e._getEditorManager(),i=e.getSelectedRangeLast(),{highlight:r}=i;if(e.selection.isMultiple()&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const o=e.getSettings(),i="function"==typeof o.enterMoves?o.enterMoves(t):o.enterMoves;n.includes("shift")?e.selection.transformFocus(-i.row,-i.col):e.selection.transformFocus(i.row,i.col)}else r.isHeader()||(e.getSettings().enterBeginsEditing?o.cellProperties.readOnly?o.moveSelectionAfterEnter(t):o.openEditor(null,t,!0):o.moveSelectionAfterEnter(t),(0,l.CA)(t))}},Ls={name:"extendCellsSelectionDown",callback(e){const{selection:t}=e,{highlight:n}=e.getSelectedRangeLast();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(n.isCell()||n.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}},Os={name:"extendCellsSelectionDownByViewportHeight",callback(e){const{selection:t,rowIndexMapper:n}=e,{to:o}=e.getSelectedRangeLast(),i=Math.min(o.row+e.countVisibleRows(),e.countRows()-1),r=n.getNearestNotHiddenIndex(i,-1);if(null!==r){const n=e._createCellCoords(r,o.col),i=o.row-e.getFirstFullyVisibleRow(),s=Math.min(n.row-i,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(n),t.markEndSource(),e.scrollViewportTo({row:s,verticalSnap:"top",horizontalSnap:"start"})}}},Ds={name:"extendCellsSelectionLeft",callback(e){const{selection:t}=e,{highlight:n}=e.getSelectedRangeLast();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(n.isCell()||n.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,-1*e.getDirectionFactor()),t.markEndSource())}},Hs={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:n}=e.getSelectedRangeLast();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(n.isCell()||n.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}},Is={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:n,from:o,to:i}=e.getSelectedRangeLast();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(o.col,i.col,n),t.markEndSource()}},Ps={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:n}=e,{highlight:o,from:i,to:r}=e.getSelectedRangeLast(),s=o.isHeader()&&t.isSelectedByRowHeader();if(o.isCell()||s){const a=n.getNearestNotHiddenIndex(e.countRows()-1,-1),l=i.clone();l.row=o.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,o.clone()),s&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,r.col)),t.markEndSource()}}},Ns={name:"extendCellsSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:n}=e,{highlight:o,from:i,to:r}=e.getSelectedRangeLast();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&o.isCell()){const s=n.getNearestNotHiddenIndex(e.countCols()-1,-1),a=i.clone();a.col=o.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,o.clone()),t.setRangeEnd(e._createCellCoords(r.row,s)),t.markEndSource()}}},Fs={name:"extendCellsSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:n}=e,{highlight:o,from:i,to:r}=e.getSelectedRangeLast();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&o.isCell()){const s=parseInt(e.getSettings().fixedColumnsStart,10),a=n.getNearestNotHiddenIndex(s,1),l=i.clone();l.col=o.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,o.clone()),t.setRangeEnd(e._createCellCoords(r.row,a)),t.markEndSource()}}},zs={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:n}=e,{highlight:o,from:i,to:r}=e.getSelectedRangeLast(),s=o.isHeader()&&t.isSelectedByColumnHeader();if(o.isCell()||s){const a=n.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),l=i.clone();l.col=o.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,o.clone()),s&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(r.row,a)),t.markEndSource()}}},js={name:"extendCellsSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:n}=e,{highlight:o,from:i,to:r}=e.getSelectedRangeLast(),s=o.isHeader()&&t.isSelectedByColumnHeader();if(o.isCell()||s){const a=n.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]),l=i.clone();l.col=o.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,o.clone()),s&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(r.row,a)),t.markEndSource()}}},Ys={name:"extendCellsSelectionToMostTop",callback(e){const{selection:t,rowIndexMapper:n}=e,{highlight:o,from:i,to:r}=e.getSelectedRangeLast(),s=o.isHeader()&&t.isSelectedByRowHeader();if(o.isCell()||s){const a=n.getNearestNotHiddenIndex(0,1),l=i.clone();l.row=o.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,o.clone()),s&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,r.col)),t.markEndSource()}}},$s={name:"extendCellsSelectionToRows",callback(e){const{selection:t}=e,{highlight:n,from:o,to:i}=e.getSelectedRangeLast();t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(o.row,i.row,n),t.markEndSource()}},Bs={name:"extendCellsSelectionUp",callback(e){const{selection:t}=e,{highlight:n}=e.getSelectedRangeLast();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(n.isCell()||n.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(-1,0),t.markEndSource())}},Ws={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:n}=e,{to:o}=e.getSelectedRangeLast(),i=Math.max(o.row-e.countVisibleRows(),0),r=n.getNearestNotHiddenIndex(i,1);if(null!==r){const n=e._createCellCoords(r,o.col),i=o.row-e.getFirstFullyVisibleRow(),s=Math.max(n.row-i,0);t.markSource("keyboard"),t.setRangeEnd(n),t.markEndSource(),e.scrollViewportTo({row:s,verticalSnap:"top",horizontalSnap:"start"})}}},Vs={name:"moveCellSelectionDown",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(1,0),t.markEndSource()}},Us={name:"moveCellSelectionDownByViewportHeight",callback(e){const{selection:t}=e,{navigableHeaders:n}=e.getSettings(),o=n?e.countColHeaders():0,{row:i}=e.getSelectedRangeLast().highlight;let r=e.countVisibleRows()+o;r=0===r?1:r,i===e.countRows()-1?r=1:i+r>e.countRows()&&(r=e.countRows()-i-1),t.markSource("keyboard"),t.transformStart(r,0),t.markEndSource(),e.getSelectedRangeLast().highlight.row<0&&e.scrollViewportTo({row:0})}},Gs={name:"moveCellSelectionInlineEnd",callback(e,t){const{selection:n}=e,o=e.getSettings(),i=e.getSelectedRangeLast(),r="function"==typeof o.tabMoves?o.tabMoves(t):o.tabMoves;n.markSource("keyboard"),n.isMultiple()&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?n.transformFocus(-r.row,-r.col):n.transformStart(-r.row,-r.col),n.markEndSource()}},Ks={name:"moveCellSelectionInlineStart",callback(e,t){const{selection:n}=e,o=e.getSettings(),i=e.getSelectedRangeLast(),r="function"==typeof o.tabMoves?o.tabMoves(t):o.tabMoves;n.markSource("keyboard"),n.isMultiple()&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?n.transformFocus(r.row,r.col):n.transformStart(r.row,r.col),n.markEndSource()}},qs={name:"moveCellSelectionLeft",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,-1*e.getDirectionFactor()),t.markEndSource()}},Xs={name:"moveCellSelectionRight",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,e.getDirectionFactor()),t.markEndSource()}},Js={name:"moveCellSelectionToMostBottom",callback(e){const{selection:t}=e,{col:n}=e.getSelectedRangeLast().highlight;let o=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===o&&(o=-1),t.setRangeStart(e._createCellCoords(o,n))}},Qs={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:n,columnIndexMapper:o}=e,i=parseInt(e.getSettings().fixedRowsBottom,10),r=n.getNearestNotHiddenIndex(e.countRows()-i-1,-1),s=o.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(r,s)),t.markEndSource()}},Zs={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:n}=e;t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeLast().highlight.row,n.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}},ea={name:"moveCellSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:n}=e,o=parseInt(e.getSettings().fixedColumnsStart,10),i=e.getSelectedRangeLast().highlight.row,r=n.getNearestNotHiddenIndex(o,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(i,r)),t.markEndSource()}},ta={name:"moveCellSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:n}=e,o=e.getSelectedRangeLast().highlight.row;let i=n.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]);null===i&&(i=e.isRtl()?-1:-e.countRowHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,i)),t.markEndSource()}},na={name:"moveCellSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:n}=e,{row:o}=e.getSelectedRangeLast().highlight;let i=n.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]);null===i&&(i=e.isRtl()?-e.countRowHeaders():-1),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,i)),t.markEndSource()}},oa={name:"moveCellSelectionToMostTop",callback(e){const{selection:t}=e,{col:n}=e.getSelectedRangeLast().highlight;let o=e.rowIndexMapper.getNearestNotHiddenIndex(0,1);null===o&&(o=-e.countColHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,n)),t.markEndSource()}},ia={name:"moveCellSelectionToMostTopInlineStart",callback(e){const{selection:t,rowIndexMapper:n,columnIndexMapper:o}=e,i=parseInt(e.getSettings().fixedRowsTop,10),r=parseInt(e.getSettings().fixedColumnsStart,10),s=n.getNearestNotHiddenIndex(i,1),a=o.getNearestNotHiddenIndex(r,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s,a)),t.markEndSource()}},ra={name:"moveCellSelectionUp",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(-1,0),t.markEndSource()}},sa={name:"moveCellSelectionUpByViewportHight",callback(e){const{selection:t}=e,{navigableHeaders:n}=e.getSettings(),o=n?e.countColHeaders():0,{row:i}=e.getSelectedRangeLast().highlight;let r=e.countVisibleRows()+o;r=0===r?-1:-r,i===-o?r=-1:i+r<o&&(r=-(i+o)),t.markSource("keyboard"),t.transformStart(r,0),t.markEndSource(),e.getSelectedRangeLast().highlight.row<0&&e.scrollViewportTo({row:0})}},aa={name:"emptySelectedCells",callback(e){e.emptySelectedCells(),e._getEditorManager().prepareEditor()}},la={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeLast(),n=e.getFirstFullyVisibleRow()-1,o=e.getFirstFullyVisibleColumn()-1,i=e.getLastFullyVisibleRow()+1,r=e.getLastFullyVisibleColumn()+1,s=e._createCellCoords(n,o),a=e._createCellCoords(i,r);if(!e._createCellRange(s,s,a).includes(t)&&(t.row>=0||t.col>=0)){const n={};if(t.col>=0){const o=Math.floor(e.countVisibleCols()/2);n.col=Math.max(t.col-o,0)}if(t.row>=0){const o=Math.floor(e.countVisibleRows()/2);n.row=Math.max(t.row-o,0)}e.scrollViewportTo({...n,verticalSnap:"top",horizontalSnap:"start"})}}},ca={name:"selectAllCells",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!0}),t.markEndSource()}},da={name:"selectAllCellsAndHeaders",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!1}),t.markEndSource()}},ua={name:"populateSelectedCellsData",callback(e){const t=e.getSelectedRange(),{row:n,col:o}=t[t.length-1].highlight.normalize(),i=e.getDataAtCell(n,o),r=new Map;for(let s=0;s<t.length;s++)t[s].forAll(((t,s)=>{if(t>=0&&s>=0&&(t!==n||s!==o)){const{readOnly:n}=e.getCellMeta(t,s);n||r.set(`${t}x${s}`,[t,s,i])}}));e.setDataAtCell(Array.from(r.values()))}},ha=[Ms,xs,ks,Ts,Rs,As,Ls,Os,Ds,Hs,Is,Ps,Ns,Fs,zs,js,Ys,$s,Bs,Ws,Vs,Us,Gs,Ks,qs,Xs,Js,Qs,Zs,ea,ta,na,oa,ia,ra,sa,aa,la,ca,da,ua];function ma(e){const t={};return ha.forEach((n=>{let{name:o,callback:i}=n;t[o]=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return i(e,...n)}})),t}function pa(e){const t=e.getShortcutManager().addContext("editor"),n=ma(e),o={group:cs.b};t.addShortcuts([{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>n.editorCloseAndSaveByEnter(e,t)},{keys:[["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],captureCtrl:!0,callback:(e,t)=>n.editorCloseAndSaveByEnter(e,t)},{keys:[["Tab"],["Tab","Shift"],["PageDown"],["PageUp"]],forwardToContext:e.getShortcutManager().getContext("grid"),callback:(e,t)=>n.editorCloseAndSave(e,t)},{keys:[["ArrowDown"],["ArrowUp"],["ArrowLeft"],["ArrowRight"]],preventDefault:!1,callback:(e,t)=>n.editorCloseAndSaveByArrowKeys(e,t)},{keys:[["Escape"],["Escape","Control/Meta"]],callback:()=>n.editorCloseWithoutSaving()}],o)}function fa(e){const t=e.getShortcutManager().addContext("grid"),n=ma(e),o={runOnlyIf:()=>{const{navigableHeaders:t}=e.getSettings();return(0,r.O9)(e.getSelected())&&(t||!t&&e.countRenderedRows()>0&&e.countRenderedCols()>0)},group:cs.B};t.addShortcuts([{keys:[["F2"]],callback:e=>n.editorFastOpen(e)},{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>n.editorOpen(e,t)},{keys:[["Backspace"],["Delete"]],callback:()=>n.emptySelectedCells()}],{group:cs.b,runOnlyIf:()=>(0,r.O9)(e.getSelected())}),t.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>n.selectAllCells(),runOnlyIf:()=>{var t;return!(null!==(t=e.getSelectedRangeLast())&&void 0!==t&&t.highlight.isHeader())}},{keys:[["Control/Meta","A"]],callback:()=>{},runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isHeader()},preventDefault:!0},{keys:[["Control/Meta","Shift","Space"]],callback:()=>n.selectAllCellsAndHeaders()},{keys:[["Control/Meta","Enter"]],callback:()=>n.populateSelectedCellsData(),runOnlyIf:()=>{var t,n;return!(null!==(t=e.getSelectedRangeLast())&&void 0!==t&&t.highlight.isHeader())&&(null===(n=e.getSelectedRangeLast())||void 0===n?void 0:n.getCellsCount())>1}},{keys:[["Control","Space"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToColumns()},{keys:[["Shift","Space"]],stopPropagation:!0,callback:()=>n.extendCellsSelectionToRows()},{keys:[["ArrowUp"]],callback:()=>n.moveCellSelectionUp()},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostTop()},{keys:[["ArrowUp","Shift"]],callback:()=>n.extendCellsSelectionUp()},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostTop(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>n.moveCellSelectionDown()},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostBottom()},{keys:[["ArrowDown","Shift"]],callback:()=>n.extendCellsSelectionDown()},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostBottom(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>n.moveCellSelectionLeft()},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostLeft()},{keys:[["ArrowLeft","Shift"]],callback:()=>n.extendCellsSelectionLeft()},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostLeft(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>n.moveCellSelectionRight()},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostRight()},{keys:[["ArrowRight","Shift"]],callback:()=>n.extendCellsSelectionRight()},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostRight(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>n.extendCellsSelectionToMostInlineStart()},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostTopInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>n.extendCellsSelectionToMostInlineEnd()},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostBottomInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>n.moveCellSelectionUpByViewportHight()},{keys:[["PageUp","Shift"]],callback:()=>n.extendCellsSelectionUpByViewportHeight()},{keys:[["PageDown"]],callback:()=>n.moveCellSelectionDownByViewportHeight()},{keys:[["PageDown","Shift"]],callback:()=>n.extendCellsSelectionDownByViewportHeight()},{keys:[["Tab"]],preventDefault:!1,callback:e=>n.moveCellSelectionInlineStart(e)},{keys:[["Shift","Tab"]],preventDefault:!1,callback:e=>n.moveCellSelectionInlineEnd(e)},{keys:[["Control/Meta","Backspace"]],callback:()=>n.scrollToFocusedCell()}],o)}function ga(e){const{classNames:t}=(0,o.Oe)(e,/ht-theme-[a-zA-Z0-9_-]+/);return t.pop()}let ba=null;const va=new Map;function ya(e,t){var n,a=this;let u=arguments.length>2&&void 0!==arguments[2]&&arguments[2],h=this;const m=new d.A(h);let p,f,g,b,w,C,_=!0;Co(u)&&function(e){yo.set(e,!0)}(this),this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const S=null!==(n=null==t?void 0:t.layoutDirection)&&void 0!==n?n:"inherit",M=["rtl","ltr"].includes(S)?S:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",M),this.isRtl=function(){return"rtl"===M},this.isLtr=function(){return!h.isRtl()},this.getDirectionFactor=function(){return h.isLtr()?1:-1},t.language=function(e){let t=Ci(e);return Pi(t)||(t=Ri,_i(e)),t}(t.language);const E=Object.fromEntries(Object.entries(t).filter((e=>{let[t]=e;return!(wi.R.getSingleton().isRegistered(t)||wi.R.getSingleton().isDeprecated(t))}))),x=new Xr(h,E,[Qr,ts]),k=x.getTableMeta(),T=x.getGlobalMeta(),R=(0,ms.u)();this.container=this.rootDocument.createElement("div"),e.insertBefore(this.container,e.firstChild),_o(this)&&((0,r.k_)(t.licenseKey,e),(0,o.iQ)(e,"ht-wrapper")),this.guid=`ht_${(0,B.DU)()}`,va.set(this.guid,this),this.columnIndexMapper=new yi,this.rowIndexMapper=new yi,this.columnIndexMapper.addLocalHook("indexesSequenceChange",(e=>{h.runHooks("afterColumnSequenceChange",e)})),this.rowIndexMapper.addLocalHook("indexesSequenceChange",(e=>{h.runHooks("afterRowSequenceChange",e)})),m.addEventListener(this.rootDocument.documentElement,"compositionstart",(e=>{h.runHooks("beforeCompositionStart",e)})),f=new Wo(h),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let A=new Dr(k,{rowIndexMapper:h.rowIndexMapper,columnIndexMapper:h.columnIndexMapper,countCols:()=>h.countCols(),countRows:()=>h.countRows(),propToCol:e=>p.propToCol(e),isEditorOpened:()=>!!h.getActiveEditor()&&h.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return a.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return a.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>h.getShortcutManager(),createCellCoords:(e,t)=>h._createCellCoords(e,t),createCellRange:(e,t,n)=>h._createCellRange(e,t,n),visualToRenderableCoords:e=>{const{row:t,col:n}=e;return h._createCellCoords(t>=0?h.rowIndexMapper.getRenderableFromVisualIndex(t):t,n>=0?h.columnIndexMapper.getRenderableFromVisualIndex(n):n)},renderableToVisualCoords:e=>{const{row:t,col:n}=e;return h._createCellCoords(t>=0?h.rowIndexMapper.getVisualFromRenderableIndex(t):t,n>=0?h.columnIndexMapper.getVisualFromRenderableIndex(n):n)},findFirstNonHiddenRenderableRow:(e,t)=>{const n=t>e?1:-1,o=Math.min(e,t),i=Math.max(e,t),r=h.rowIndexMapper.getNearestNotHiddenIndex(e,n);return null===r||1===n&&r>i||-1===n&&r<o?null:r>=0?h.rowIndexMapper.getRenderableFromVisualIndex(r):r},findFirstNonHiddenRenderableColumn:(e,t)=>{const n=t>e?1:-1,o=Math.min(e,t),i=Math.max(e,t),r=h.columnIndexMapper.getNearestNotHiddenIndex(e,n);return null===r||1===n&&r>i||-1===n&&r<o?null:r>=0?h.columnIndexMapper.getRenderableFromVisualIndex(r):r},isDisabledCellSelection:(e,t)=>e<0||t<0?h.getSettings().disableVisualSelection:h.getCellMeta(e,t).disableVisualSelection});this.selection=A;const L=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function O(e,t){const n="className"===e?h.rootElement:h.table;if(_)(0,o.iQ)(n,t);else{let i=[],r=[];T[e]&&(i=Array.isArray(T[e])?T[e]:(0,F.Gn)(T[e])),t&&(r=Array.isArray(t)?t:(0,F.Gn)(t));const s=(0,F.fg)(i,r),a=(0,F.fg)(r,i);s.length&&(0,o.vy)(n,s),a.length&&(0,o.iQ)(n,a)}T[e]=t}function H(){let e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty(){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function I(e){const t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function P(e,t,n){if(!e.length)return void n();const o=h.getActiveEditor(),i=new H;let r=!0;i.onQueueEmpty=()=>{o&&r&&o.cancelChanges(),n()};for(let n=e.length-1;n>=0;n--){const[o,s]=e[n],a=p.propToCol(s);let l;l=Number.isInteger(a)?h.getCellMeta(o,a):{...Object.getPrototypeOf(k),...k},h.getCellValidator(l)&&(i.addValidatorToQueue(),h.validateCell(e[n][3],l,function(t,n){return function(o){if("boolean"!=typeof o)throw new Error("Validation error: result is not boolean");!1===o&&!1===n.allowInvalid&&(r=!1,e.splice(t,1),n.valid=!0),i.removeValidatorFormQueue()}}(n,l),t))}i.checkIfQueueIsEmpty()}function N(e,t){for(let t=e.length-1;t>=0;t--){let n=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(k.allowInsertRow)for(;e[t][0]>h.countRows()-1;){const{delta:e}=p.createRow(void 0,void 0,{source:"auto"});if(0===e){n=!0;break}}if("array"===h.dataType&&(!k.columns||0===k.columns.length)&&k.allowInsertColumn)for(;p.propToCol(e[t][1])>h.countCols()-1;){const{delta:e}=p.createCol(void 0,void 0,{source:"auto"});if(0===e){n=!0;break}}n||p.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){g.adjustRowsAndCols(),h.runHooks("beforeChangeRender",e,t),b.closeEditor(),h.render(),b.prepareEditor(),h.view.adjustElementsSize(),h.runHooks("afterChange",e,t||"edit");const n=h.getActiveEditor();n&&(0,r.O9)(n.refreshValue)&&n.refreshValue()}else h.render()}function V(e,t,n){return Array.isArray(e)?e:[[e,t,n]]}function U(e,t){const n=h.runHooks("beforeChange",e,t||"edit"),o=e.filter((e=>null!==e));var i;if(!1===n||0===o.length)return null===(i=h.getActiveEditor())||void 0===i||i.cancelChanges(),[];for(let e=o.length-1;e>=0;e--){const[t,n,,i]=o[e],s=p.propToCol(n);let a;a=Number.isInteger(s)?h.getCellMeta(t,s):{...Object.getPrototypeOf(k),...k};const{type:l,checkedTemplate:c,uncheckedTemplate:d}=a;if("numeric"===l&&"string"==typeof i&&(0,W.LA)(i)&&(o[e][3]=I(i)),"checkbox"===l){const t=(0,r.As)(i),n=t===(0,r.As)(c),s=t===(0,r.As)(d);(n||s)&&(o[e][3]=n?c:d)}}return o}this.columnIndexMapper.addLocalHook("cacheUpdated",L),this.rowIndexMapper.addLocalHook("cacheUpdated",L),this.selection.addLocalHook("afterSetRangeEnd",((e,t)=>{const n=(0,y.nA)(!1),i=this.selection.getSelectedRange(),{from:r,to:s}=i.current(),a=i.size()-1;this.runHooks("afterSelection",r.row,r.col,s.row,s.col,n,a),this.runHooks("afterSelectionByProp",r.row,h.colToProp(r.col),s.row,h.colToProp(s.col),n,a),t&&(!n.isTouched()||n.isTouched()&&!n.value)&&C.scrollTo(e);const l=A.isSelectedByRowHeader(),c=A.isSelectedByColumnHeader();l&&c?(0,o.iQ)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):l?((0,o.vy)(this.rootElement,"ht__selection--columns"),(0,o.iQ)(this.rootElement,"ht__selection--rows")):c?((0,o.vy)(this.rootElement,"ht__selection--rows"),(0,o.iQ)(this.rootElement,"ht__selection--columns")):(0,o.vy)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),"shift"!==A.getSelectionSource()&&b.closeEditor(null),h.view.render(),b.prepareEditor()})),this.selection.addLocalHook("beforeSetFocus",(e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)})),this.selection.addLocalHook("afterSetFocus",(e=>{const t=(0,y.nA)(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&C.scrollTo(e),b.closeEditor(),h.view.render(),b.prepareEditor()})),this.selection.addLocalHook("afterSelectionFinished",(e=>{const t=e.length-1,{from:n,to:o}=e[t];this.runHooks("afterSelectionEnd",n.row,n.col,o.row,o.col,t),this.runHooks("afterSelectionEndByProp",n.row,h.colToProp(n.col),o.row,h.colToProp(o.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("afterDeselect",(()=>{b.closeEditor(),h.view.render(),(0,o.vy)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")})),this.selection.addLocalHook("beforeHighlightSet",(()=>this.runHooks("beforeSelectionHighlightSet"))).addLocalHook("beforeSetRangeStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("beforeSetRangeStart",...t)})).addLocalHook("beforeSetRangeStartOnly",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("beforeSetRangeStartOnly",...t)})).addLocalHook("beforeSetRangeEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("beforeSetRangeEnd",...t)})).addLocalHook("beforeSelectColumns",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("beforeSelectColumns",...t)})).addLocalHook("afterSelectColumns",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("afterSelectColumns",...t)})).addLocalHook("beforeSelectRows",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("beforeSelectRows",...t)})).addLocalHook("afterSelectRows",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("afterSelectRows",...t)})).addLocalHook("beforeModifyTransformStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("modifyTransformStart",...t)})).addLocalHook("afterModifyTransformStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("afterModifyTransformStart",...t)})).addLocalHook("beforeModifyTransformFocus",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("modifyTransformFocus",...t)})).addLocalHook("afterModifyTransformFocus",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("afterModifyTransformFocus",...t)})).addLocalHook("beforeModifyTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("modifyTransformEnd",...t)})).addLocalHook("afterModifyTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("afterModifyTransformEnd",...t)})).addLocalHook("beforeRowWrap",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("beforeRowWrap",...t)})).addLocalHook("beforeColumnWrap",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.runHooks("beforeColumnWrap",...t)})).addLocalHook("insertRowRequire",(e=>this.alter("insert_row_above",e,1,"auto"))).addLocalHook("insertColRequire",(e=>this.alter("insert_col_start",e,1,"auto"))),g={alter(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;const s=e=>{if(0===e.length)return[];const t=[...e];return t.sort(((e,t)=>{let[n]=e,[o]=t;return n===o?0:n>o?1:-1})),(0,F.mu)(t,((e,t)=>{let[n,o]=t;const i=e[e.length-1],[r,s]=i,a=r+s;if(n<=a){const e=Math.max(o-(a-n),0);i[1]+=e}else e.push([n,o]);return e}),[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const i=h.countSourceRows();if(k.maxRows===i)return;const a="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===a?i:0;const{delta:l,startPhysicalIndex:c}=p.createRow(t,n,{source:o,mode:a});A.shiftRows(h.toVisualRow(c),l);break;case"insert_col_start":case"insert_col_end":const d="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===d?h.countSourceCols():0;const{delta:u,startPhysicalIndex:m}=p.createCol(t,n,{source:o,mode:d});if(u){if(Array.isArray(k.colHeaders)){const e=[h.toVisualColumn(m),0];e.length+=u,Array.prototype.splice.apply(k.colHeaders,e)}A.shiftColumns(h.toVisualColumn(m),u)}break;case"remove_row":const f=e=>{let t=0;(0,F.z0)(e,(e=>{let[n,i]=e;const s=(0,r.Im)(n)?h.countRows()-1:Math.max(n-t,0);if(Number.isInteger(n)&&(n=Math.max(n-t,0)),!p.removeRow(n,i,o))return;if(A.isSelected()){const{row:e}=h.getSelectedRangeLast().highlight;e>=n&&e<=n+i-1&&b.closeEditor(!0)}const a=h.countRows(),l=k.fixedRowsTop;l>=s+1&&(k.fixedRowsTop-=Math.min(i,l-s));const c=k.fixedRowsBottom;c&&s>=a-c&&(k.fixedRowsBottom-=Math.min(i,c)),0===a?A.deselect():"ContextMenu.removeRow"===o?A.refresh():A.shiftRows(n,-i),t+=i}))};Array.isArray(t)?f(s(t)):f([[t,n]]);break;case"remove_col":const g=e=>{let t=0;(0,F.z0)(e,(e=>{let[n,i]=e;const s=(0,r.Im)(n)?h.countCols()-1:Math.max(n-t,0);let a=h.toPhysicalColumn(s);if(Number.isInteger(n)&&(n=Math.max(n-t,0)),!p.removeCol(n,i,o))return;if(A.isSelected()){const{col:e}=h.getSelectedRangeLast().highlight;e>=n&&e<=n+i-1&&b.closeEditor(!0)}0===h.countCols()?A.deselect():"ContextMenu.removeColumn"===o?A.refresh():A.shiftColumns(n,-i);const l=k.fixedColumnsStart;l>=s+1&&(k.fixedColumnsStart-=Math.min(i,l-s)),Array.isArray(k.colHeaders)&&(void 0===a&&(a=-1),k.colHeaders.splice(a,i)),t+=i}))};Array.isArray(t)?g(s(t)):g([[t,n]]);break;default:throw new Error(`There is no such action "${e}"`)}i||g.adjustRowsAndCols(),h.view.render(),h.view.adjustElementsSize()},adjustRowsAndCols(){const e=k.minRows,t=k.minSpareRows,n=k.minCols,o=k.minSpareCols;if(e){const t=h.countRows();t<e&&p.createRow(t,e-t,{source:"auto"})}if(t){const e=h.countEmptyRows(!0);if(e<t){const n=t-e,o=Math.min(n,k.maxRows-h.countSourceRows());p.createRow(h.countRows(),o,{source:"auto"})}}{let e;(n||o)&&(e=h.countEmptyCols(!0));let t=h.countCols();if(n&&!k.columns&&t<n){const o=n-t;e+=o,p.createCol(t,o,{source:"auto"})}if(o&&!k.columns&&"array"===h.dataType&&e<o){t=h.countCols();const n=o-e,i=Math.min(n,k.maxCols-t);p.createCol(t,i,{source:"auto"})}}},populateFromArray(e,t,n,o,i){let r,s,a,l;const c=[],d={},u=[],m=e.row,p=e.col;if(s=t.length,0===s)return!1;let f=0,g=0;switch((0,y.Gv)(n)&&(f=n.col-p+1,g=n.row-m+1),i){case"shift_down":const i=(0,F.h9)(t),b=i.length,v=Math.max(b,f),w=h.getData().slice(m),C=(0,F.h9)(w).slice(p,p+v);for(a=0;a<v;a+=1)if(a<b){for(r=0,s=i[a].length;r<g-s;r+=1)i[a].push(i[a][r%s]);a<C.length?u.push(i[a].concat(C[a])):u.push(i[a].concat(new Array(w.length).fill(null)))}else u.push(i[a%b].concat(C[a]));h.populateFromArray(m,p,(0,F.h9)(u));break;case"shift_right":const _=t.length,S=Math.max(_,g),M=h.getData().slice(m).map((e=>e.slice(p)));for(r=0;r<S;r+=1)if(r<_){for(a=0,l=t[r].length;a<f-l;a+=1)t[r].push(t[r][a%l]);if(r<M.length)for(let e=0;e<M[r].length;e+=1)t[r].push(M[r][e]);else t[r].push(...new Array(M[0].length).fill(null))}else t.push(t[r%s].slice(0,S).concat(M[r]));h.populateFromArray(m,p,t);break;default:d.row=e.row,d.col=e.col;let E,x=0,T=0,R=!0;const A=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const o=t[e%t.length];return null!==n?o[n%o.length]:o},L=t.length,O=n?n.row-e.row+1:0;for(s=n?O:Math.max(L,O),r=0;r<s&&!(n&&d.row>n.row&&O>L||!k.allowInsertRow&&d.row>h.countRows()-1||d.row>=k.maxRows);r++){const t=r-x,i=A(t).length,u=n?n.col-e.col+1:0;if(l=n?u:Math.max(i,u),d.col=e.col,E=h.getCellMeta(d.row,d.col),"CopyPaste.paste"!==o&&"Autofill.fill"!==o||!E.skipRowOnPaste){for(T=0,a=0;a<l&&!(n&&d.col>n.col&&u>i||!k.allowInsertColumn&&d.col>h.countCols()-1||d.col>=k.maxCols);a++){if(E=h.getCellMeta(d.row,d.col),("CopyPaste.paste"===o||"Autofill.fill"===o)&&E.skipColumnOnPaste){T+=1,d.col+=1,l+=1;continue}if(E.readOnly&&"UndoRedo.undo"!==o){d.col+=1;continue}let e=A(t,a-T),n=h.getDataAtCell(d.row,d.col);if(null!==e&&"object"==typeof e)if(Array.isArray(e)&&null===n&&(n=[]),null===n||"object"!=typeof n)R=!1;else{const t=(0,y.Nl)(Array.isArray(n)?n:n[0]||n),o=(0,y.Nl)(Array.isArray(e)?e:e[0]||e);(0,y.wU)(t,o)||Array.isArray(t)&&Array.isArray(o)?e=(0,y.Go)(e):R=!1}else null!==n&&"object"==typeof n&&(R=!1);R&&c.push([d.row,d.col,e]),R=!0,d.col+=1}d.row+=1}else x+=1,d.row+=1,s+=1}h.setDataAtCell(c,null,null,o||"populateFromArray")}}},this.init=function(){f.setData(k.data),h.runHooks("beforeInit"),((0,s.rr)()||(0,s.zG)())&&(0,o.iQ)(h.rootElement,"mobile"),this.updateSettings(t,!0),this.view=new Yo(this);const e=k.themeName||ga(h.rootElement);h.useTheme(e),h.view.addClassNameToLicenseElement(h.getCurrentThemeName()),b=v.getInstance(h,k,A),C=function(e){const{selection:t}=e;let n=!1,o=!1;return{resume(){o=!1},suspend(){o=!0},skipNextScrollCycle(){n=!0},scrollTo(i){var r;if(n||o)return void(n=!1);let s;t.isFocusSelectionChanged()?s=function(e){return t=>{e.scrollViewportTo(t.toObject(),(()=>{const{row:t,col:n}=e.getSelectedRangeLast().highlight;as(e.getCell(t,n,!0))}))}}(e):t.isSelectedByCorner()?s=()=>{}:t.isSelectedByRowHeader()?s=function(e){return t=>{const n=ls(e).getComputedRowTarget(t);e.scrollViewportTo({row:n},(()=>{const t=!!e.getSettings().rowHeaders;as(e.getCell(n,t?-1:0,!0))}))}}(e):t.isSelectedByColumnHeader()?s=function(e){return t=>{const n=ls(e).getComputedColumnTarget(t);e.scrollViewportTo({col:n},(()=>{const t=!!e.getSettings().colHeaders;as(e.getCell(t?-1:0,n,!0))}))}}(e):1===t.getSelectedRange().size()&&t.isMultiple()?s=function(e){return t=>{const n=ls(e),o={row:n.getComputedRowTarget(t),col:n.getComputedColumnTarget(t)};e.scrollViewportTo(o,(()=>{const{row:t,col:n}=o;as(e.getCell(t,n,!0))}))}}(e):1!==t.getSelectedRange().size()||t.isMultiple()?t.getSelectedRange().size()>1&&(s=function(e){return t=>{const n=ls(e),o={row:n.getComputedRowTarget(t),col:n.getComputedColumnTarget(t)};e.scrollViewportTo(o,(()=>{const{row:t,col:n}=o;as(e.getCell(t,n,!0))}))}}(e)):s=function(e){return t=>{const n=e.selection.getSelectionSource(),{row:o,col:i}=t,r=()=>{as(e.getCell(o,i,!0))};if(o<0&&i>=0)e.scrollViewportTo({col:i},r);else if(i<0&&o>=0)e.scrollViewportTo({row:o},r);else{if("mouse"===n&&(i===e.view.getLastPartiallyVisibleColumn()||o===e.view.getLastPartiallyVisibleRow()))return;e.scrollViewportTo({row:o,col:i},r)}}}(e),null===(r=s)||void 0===r||r(i)}}}(h),w=new D(h),_o(this)&&function(e){const t=function(e){return t=>{if(!t)return null;const n=us(e),o=hs(e);return t.col<n.col&&(t.col=n.col),t.col>o.col&&(t.col=o.col),t.row<n.row&&(t.row=n.row),t.row>o.row&&(t.row=o.row),t}}(e);let n;const{activate:o,deactivate:i}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.rootElement,o=ds(e),i=ds(e);return o.addEventListener("focus",(()=>null==t?void 0:t.onFocusFromTop())),i.addEventListener("focus",(()=>null==t?void 0:t.onFocusFromBottom())),n.firstChild.before(o),n.lastChild.after(i),{activate(){e._registerTimeout((()=>{o.tabIndex=0,i.tabIndex=0}),10)},deactivate(){e._registerTimeout((()=>{o.tabIndex=-1,i.tabIndex=-1}),10)}}}(e,{onFocusFromTop(){var o;const i=null!==(o=t(n))&&void 0!==o?o:us(e);i&&(e.runHooks("modifyFocusOnTabNavigation","from_above",i),e.selectCell(i.row,i.col)),e.listen()},onFocusFromBottom(){var o;const i=null!==(o=t(n))&&void 0!==o?o:hs(e);i&&(e.runHooks("modifyFocusOnTabNavigation","from_below",i),e.selectCell(i.row,i.col)),e.listen()}}),r={wrapped:!1,flipped:!1};let s=!0,a=!1,l=!1;e.addHook("afterListen",(()=>i())),e.addHook("afterUnlisten",(()=>o())),e.addHook("afterSelection",((t,o,i,c,d)=>{var u;a&&(r.wrapped&&r.flipped||l)&&(l=!1,d.value=!0),s&&(n=null===(u=e.getSelectedRangeLast())||void 0===u?void 0:u.highlight)})),e.addHook("beforeRowWrap",((e,t,n)=>{r.wrapped=!0,r.flipped=n}));const c={keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:cs.B,group:"focusCatcher"};e.getShortcutManager().getContext("grid").addShortcuts([{...c,callback:()=>{const{tabNavigation:t}=e.getSettings();a=!0,e.getSelectedRangeLast()&&!t&&(s=!1),t||(l=!0)},position:"before"},{...c,callback:t=>{const{tabNavigation:o,autoWrapRow:i}=e.getSettings();if(a=!1,s=!0,!o||!e.selection.isSelected()||i&&r.wrapped&&r.flipped||!i&&r.wrapped)return i&&r.wrapped&&r.flipped&&(n=t.shiftKey?us(e):hs(e)),r.wrapped=!1,r.flipped=!1,e.deselectCell(),e.unlisten(),!1;t.preventDefault()},position:"after"}])}(h),h.runHooks("init"),this.render(),_&&null===h.rootElement.offsetParent&&(0,o.I6)(h.rootElement,(()=>{h.view._wt.wtOverlays.updateLastSpreaderSize(),h.render(),h.view.adjustElementsSize()})),"object"==typeof _&&(h.runHooks("afterChange",_[0],_[1]),_=!1),h.runHooks("afterInit")},this._createCellCoords=function(e,t){return h.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,n){return h.view._wt.createCellRange(e,t,n)},this.validateCell=function(e,t,n,o){let s=h.getCellValidator(t);function a(e){if(arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||!0===t.hidden)return void n(e);const o=t.visualCol,i=t.visualRow,r=h.getCell(i,o,!0);if(r&&"TH"!==r.nodeName){const e=h.rowIndexMapper.getRenderableFromVisualIndex(i),t=h.columnIndexMapper.getRenderableFromVisualIndex(o);h.view._wt.getSetting("cellRenderer",e,t,r)}n(e)}var l;(0,r.gd)(s)&&(l=s,s=function(e,t){t(l.test(e))}),(0,i.Tn)(s)?(e=h.runHooks("beforeValidate",e,t.visualRow,t.prop,o),h._registerImmediate((()=>{s.call(t,e,(n=>{h&&(n=h.runHooks("afterValidate",n,e,t.visualRow,t.prop,o),t.valid=n,a(n),h.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,o))}))}))):h._registerImmediate((()=>{t.valid=!0,a(t.valid,!1)}))},this.setDataAtCell=function(e,t,n,o){const i=V(e,t,n),r=[];let s,a,l,c=o;for(s=0,a=i.length;s<a;s++){if("object"!=typeof i[s])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof i[s][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=i[s][1]>=this.countCols()?i[s][1]:p.colToProp(i[s][1]),r.push([i[s][0],l,f.getAtCell(this.toPhysicalRow(i[s][0]),i[s][1]),i[s][2]])}c||"object"!=typeof e||(c=t);const d=U(r,c);h.runHooks("afterSetDataAtCell",d,c),P(d,c,(()=>{N(d,c)}))},this.setDataAtRowProp=function(e,t,n,o){const i=V(e,t,n),r=[];let s,a,l=o;for(s=0,a=i.length;s<a;s++)r.push([i[s][0],i[s][1],f.getAtCell(this.toPhysicalRow(i[s][0]),i[s][1]),i[s][2]]);l||"object"!=typeof e||(l=t);const c=U(r,o);h.runHooks("afterSetDataAtRowProp",c,l),P(c,l,(()=>{N(c,l)}))},this.listen=function(){h&&!h.isListening()&&(va.forEach((e=>{h!==e&&e.unlisten()})),ba=h.guid,h.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(ba=null,h.runHooks("afterUnlisten"))},this.isListening=function(){return ba===h.guid},this.destroyEditor=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];b.closeEditor(e),h.view.render(),t&&A.isSelected()&&b.prepareEditor()},this.populateFromArray=function(e,t,n,o,i,r,s){if("object"!=typeof n||"object"!=typeof n[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const a="number"==typeof o?h._createCellCoords(o,i):null;return g.populateFromArray(h._createCellCoords(e,t),n,a,r,s)},this.spliceCol=function(e,t,n){for(var o=arguments.length,i=new Array(o>3?o-3:0),r=3;r<o;r++)i[r-3]=arguments[r];return p.spliceCol(e,t,n,...i)},this.spliceRow=function(e,t,n){for(var o=arguments.length,i=new Array(o>3?o-3:0),r=3;r<o;r++)i[r-3]=arguments[r];return p.spliceRow(e,t,n,...i)},this.getSelected=function(){if(A.isSelected())return(0,F.YD)(A.getSelectedRange(),(e=>{let{from:t,to:n}=e;return[t.row,t.col,n.row,n.col]}))},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRange=function(){if(A.isSelected())return Array.from(A.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.emptySelectedCells=function(e){if(!A.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,F.z0)(A.getSelectedRange(),(e=>{if(e.isSingleHeader())return;const n=e.getTopStartCorner(),o=e.getBottomEndCorner();(0,W.Ti)(n.row,o.row,(e=>{(0,W.Ti)(n.col,o.col,(n=>{this.getCellMeta(e,n).readOnly||t.push([e,n,null])}))}))})),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||h.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||h.view.render())},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const n=e();return this.resumeExecution(t),n},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!h.view)return;const e=h.view,{width:t,height:n}=e.getLastSize(),{width:o,height:i}=h.rootElement.getBoundingClientRect(),r=o!==t||i!==n;!1===h.runHooks("beforeRefreshDimensions",{width:t,height:n},{width:o,height:i},r)||((r||e._wt.wtOverlays.scrollableElement===h.rootWindow)&&(e.setLastSize(o,i),h.render(),e.adjustElementsSize()),h.runHooks("afterRefreshDimensions",{width:t,height:n},{width:o,height:i},r))},this.updateData=function(e,t){ss(e,(e=>{p=e}),(e=>{p=e,h.columnIndexMapper.fitToLength(this.getInitialColumnCount()),h.rowIndexMapper.fitToLength(this.countSourceRows()),g.adjustRowsAndCols(),A.refresh()}),{hotInstance:h,dataMap:p,dataSource:f,internalSource:"updateData",source:t,metaManager:x,firstRun:_})},this.loadData=function(e,t){ss(e,(e=>{p=e}),(()=>{x.clearCellsCache(),h.initIndexMappers(),g.adjustRowsAndCols(),A.refresh(),_&&(_=[null,"loadData"])}),{hotInstance:h,dataMap:p,dataSource:f,internalSource:"loadData",source:t,metaManager:x,firstRun:_})},this.getInitialColumnCount=function(){const e=k.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,i.Tn)(e))if("array"===h.dataType){const n=this.countSourceCols();for(let o=0;o<n;o+=1)e(o)&&(t+=1)}else"object"!==h.dataType&&"function"!==h.dataType||(t=p.colToPropCache.length);else if((0,r.O9)(k.dataSchema)){const e=p.getSchema();t=Array.isArray(e)?e.length:(0,y.$3)(e)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,n,o){return(0,r.b0)(e)?p.getAll():p.getRange(h._createCellCoords(e,t),h._createCellCoords(n,o),p.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return p.getCopyableText(h._createCellCoords(e,t),h._createCellCoords(n,o))},this.getCopyableData=function(e,t){return p.getCopyable(e,p.colToProp(t))},this.getSchema=function(){return p.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(_?h.loadData:h.updateData).bind(this);let o,s,a=!1;if((0,r.O9)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,r.O9)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,r.O9)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(o in e.language&&function(e){const t=Ci(e);Pi(t)?(h.runHooks("beforeLanguageChange",t),T.language=t,h.runHooks("afterLanguageChange",t)):_i(e)}(e.language),e)if("data"===o||"language"===o);else if("className"===o)O("className",e.className);else if("tableClassName"===o&&h.table)O("tableClassName",e.tableClassName),h.view._wt.wtOverlays.syncOverlayTableClassNames();else if(wi.R.getSingleton().isRegistered(o)||wi.R.getSingleton().isDeprecated(o)){const t=e[o];(0,i.Tn)(t)?(wi.R.getSingleton().addAsFixed(o,t,h),k[o]=t):Array.isArray(t)&&(wi.R.getSingleton().add(o,t,h),k[o]=t)}else!t&&(0,y.mQ)(e,o)&&(T[o]=e[o]);void 0===e.data&&void 0===k.data?n(null,"updateSettings"):void 0!==e.data?n(e.data,"updateSettings"):void 0!==e.columns&&(p.createMap(),h.initIndexMappers());const l=h.countCols(),c=k.columns;if(c&&(0,i.Tn)(c)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||x.clearCache(),l>0)for(o=0,s=0;o<l;o++){if(c){const e=a?c(o):c[s];e&&x.updateColumnMeta(s,e)}s+=1}(0,r.O9)(e.cell)&&(0,y.v4)(e.cell,(e=>{h.setCellMetaObject(e.row,e.col,e)})),h.runHooks("afterCellMetaReset");let d=h.rootElement.style.height;""!==d&&(d=parseInt(h.rootElement.style.height,10));let u=e.height;if((0,i.Tn)(u)&&(u=u()),t&&h.rootElement.getAttribute("style")&&h.rootElement.setAttribute("data-initialstyle",h.rootElement.getAttribute("style")),null===u){const e=h.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?h.rootElement.setAttribute("style",e):(h.rootElement.style.height="",h.rootElement.style.overflow="")}else void 0!==u&&(h.rootElement.style.height=isNaN(u)?`${u}`:`${u}px`,h.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,i.Tn)(t)&&(t=t()),h.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}if(!t){if(h.view){h.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),h.view._wt.exportSettingsAsClassNames();const t=h.getCurrentThemeName(),n=(0,y.mQ)(e,"themeName");t&&n&&t!==e.themeName&&(h.view.getStylesHandler().removeClassNames(),h.view.removeClassNameFromLicenseElement(t));const o=n&&e.themeName||ga(h.rootElement);h.useTheme(o),h.view.addClassNameToLicenseElement(h.getCurrentThemeName())}h.runHooks("afterUpdateSettings",e)}g.adjustRowsAndCols(),h.view&&!_&&(h.render(),h.view._wt.wtOverlays.adjustElementsSize()),t||!h.view||""!==d&&""!==u&&void 0!==u||d===u||h.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=h.getSelectedLast();if(k.getValue){if((0,i.Tn)(k.getValue))return k.getValue.call(h);if(e)return h.getData()[e[0][0]][k.getValue]}else if(e)return h.getDataAtCell(e[0],e[1])},this.getSettings=function(){return k},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,o,i){g.alter(e,t,n,o,i)},this.getCell=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t,i=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;o=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;i=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===i||null===o||void 0===i||void 0===o?null:h.view.getCellAtCoords(h._createCellCoords(i,o),n)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:n,col:o}=t;let i=n,r=o;return n>=0&&(i=this.rowIndexMapper.getVisualFromRenderableIndex(n)),o>=0&&(r=this.columnIndexMapper.getVisualFromRenderableIndex(o)),h._createCellCoords(i,r)},this.colToProp=function(e){return p.colToProp(e)},this.propToCol=function(e){return p.propToCol(e)},this.toVisualRow=e=>this.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>this.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>this.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>this.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getDataAtCell=function(e,t){return p.get(e,p.colToProp(t))},this.getDataAtRowProp=function(e,t){return p.get(e,t)},this.getDataAtCol=function(e){const t=[],n=p.getRange(h._createCellCoords(0,e),h._createCellCoords(k.data.length-1,e),p.DESTINATION_RENDERER);for(let e=0;e<n.length;e+=1)for(let o=0;o<n[e].length;o+=1)t.push(n[e][o]);return t},this.getDataAtProp=function(e){const t=[],n=p.getRange(h._createCellCoords(0,p.propToCol(e)),h._createCellCoords(k.data.length-1,p.propToCol(e)),p.DESTINATION_RENDERER);for(let e=0;e<n.length;e+=1)for(let o=0;o<n[e].length;o+=1)t.push(n[e][o]);return t},this.getSourceData=function(e,t,n,o){let i;return i=void 0===e?f.getData():f.getByRange(h._createCellCoords(e,t),h._createCellCoords(n,o)),i},this.getSourceDataArray=function(e,t,n,o){let i;return i=void 0===e?f.getData(!0):f.getByRange(h._createCellCoords(e,t),h._createCellCoords(n,o),!0),i},this.getSourceDataAtCol=function(e){return f.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,n,o){const i=V(e,t,n),s=this.hasHook("afterSetSourceDataAtCell"),a=[];s&&(0,F.z0)(i,(e=>{let[t,n,o]=e;a.push([t,n,f.getAtCell(t,n),o])})),(0,F.z0)(i,(e=>{let[t,n,o]=e;f.setAtCell(t,n,o)})),s&&this.runHooks("afterSetSourceDataAtCell",a,o),this.render();const l=h.getActiveEditor();l&&(0,r.O9)(l.refreshValue)&&l.refreshValue()},this.getSourceDataAtRow=function(e){return f.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return f.getAtCell(e,t)},this.getDataAtRow=function(e){return p.getRange(h._createCellCoords(e,0),h._createCellCoords(e,this.countCols()-1),p.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,o){const i=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,o],[r,s]=i;let[,,a,l]=i,c=null,d=null;void 0===a&&(a=r),void 0===l&&(l=s);let u="mixed";return(0,W.Ti)(Math.max(Math.min(r,a),0),Math.max(r,a),(e=>{let t=!0;return(0,W.Ti)(Math.max(Math.min(s,l),0),Math.max(s,l),(n=>{const o=this.getCellMeta(e,n);return d=o.type,c?t=c===d:c=d,t})),u=t?d:"mixed",t})),u},this.removeCellMeta=function(e,t,n){const[o,i]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let r=x.getCellMetaKeyValue(o,i,n);!1!==h.runHooks("beforeRemoveCellMeta",e,t,n,r)&&(x.removeCellMeta(o,i,n),h.runHooks("afterRemoveCellMeta",e,t,n,r)),r=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(o.length>0&&!Array.isArray(o[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&x.removeRow(this.toPhysicalRow(e),t),o.length>0&&(0,F.z0)(o.reverse(),(t=>{x.createRow(this.toPhysicalRow(e)),(0,F.z0)(t,((t,n)=>this.setCellMetaObject(e,n,t)))})),h.render()},this.setCellMetaObject=function(e,t,n){"object"==typeof n&&(0,y.v4)(n,((n,o)=>{this.setCellMeta(e,t,o,n)}))},this.setCellMeta=function(e,t,n,o){if(!1===h.runHooks("beforeSetCellMeta",e,t,n,o))return;let i=e,r=t;e<this.countRows()&&(i=this.toPhysicalRow(e)),t<this.countCols()&&(r=this.toPhysicalColumn(t)),x.setCellMeta(i,r,n,o),h.runHooks("afterSetCellMeta",e,t,n,o)},this.getCellsMeta=function(){return x.getCellsMeta()},this.getCellMeta=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},o=this.toPhysicalRow(e),i=this.toPhysicalColumn(t);return null===o&&(o=e),null===i&&(i=t),x.getCellMeta(o,i,{visualRow:e,visualColumn:t,...n})},this.getColumnMeta=function(e){return x.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return x.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===h.dataType||k.columns)},this.getCellRenderer=function(e,t){const n="number"==typeof e?h.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof n?(0,Y.gB)(n):(0,r.b0)(n)?(0,Y.gB)("text"):n},this.getCellEditor=function(e,t){const n="number"==typeof e?h.getCellMeta(e,t).editor:e.editor;return"string"==typeof n?(0,c.M8)(n):(0,r.b0)(n)?(0,c.M8)("text"):n},this.getCellValidator=function(e,t){const n="number"==typeof e?h.getCellMeta(e,t).validator:e.validator;return"string"==typeof n?(0,$.by)(n):n},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,n){const o=new H;e&&(o.onQueueEmpty=e);let i=h.countRows()-1;for(;i>=0;){if(void 0!==t&&-1===t.indexOf(i)){i-=1;continue}let e=h.countCols()-1;for(;e>=0;)void 0===n||-1!==n.indexOf(e)?(o.addValidatorToQueue(),h.validateCell(h.getDataAtCell(i,e),h.getCellMeta(i,e),(e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(o.valid=!1),o.removeValidatorFormQueue()}),"validateCells"),e-=1):e-=1;i-=1}o.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=k.rowHeaders,n=e;return void 0!==n&&(n=h.runHooks("modifyRowHeader",n)),void 0===n?(t=[],(0,W.Ti)(h.countRows()-1,(e=>{t.push(h.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[n]?t=t[n]:(0,i.Tn)(t)?t=t(n):t&&"string"!=typeof t&&"number"!=typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!k.rowHeaders},this.hasColHeaders=function(){if(void 0!==k.colHeaders&&null!==k.colHeaders)return!!k.colHeaders;for(let e=0,t=h.countCols();e<t;e++)if(h.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const n=h.runHooks("modifyColHeader",e);if(void 0===n){const e=[],t=h.countCols();for(let n=0;n<t;n++)e.push(h.getColHeader(n));return e}let o=k.colHeaders;const r=h.toPhysicalColumn(n),s=function(e){const t=[],n=h.countCols();let o=0;for(;o<n;o++)(0,i.Tn)(k.columns)&&k.columns(o)&&t.push(o);return t[e]}(r);return!1===k.colHeaders?o=null:k.columns&&(0,i.Tn)(k.columns)&&k.columns(s)&&k.columns(s).title?o=k.columns(s).title:k.columns&&k.columns[r]&&k.columns[r].title?o=k.columns[r].title:Array.isArray(k.colHeaders)&&void 0!==k.colHeaders[r]?o=k.colHeaders[r]:(0,i.Tn)(k.colHeaders)?o=k.colHeaders(r):k.colHeaders&&"string"!=typeof k.colHeaders&&"number"!=typeof k.colHeaders&&(o=(0,$o.$I)(n)),o=h.runHooks("modifyColumnHeaderValue",o,e,t),o},this._getColWidthFromSettings=function(e){let t;if(e>=0&&(t=h.getCellMeta(0,e).width),void 0!==t&&t!==k.width||(t=k.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e,t){let n=h._getColWidthFromSettings(e);return n=h.runHooks("modifyColWidth",n,e,t),void 0===n&&(n=vn.j),n},this._getRowHeightFromSettings=function(e){const t=this.view.getDefaultRowHeight();let n=k.rowHeights;if(null!=n){switch(typeof n){case"object":n=n[e];break;case"function":n=n(e)}"string"==typeof n&&(n=parseInt(n,10))}return null!=n&&n<t?t:n},this.getRowHeight=function(e,t){let n=h._getRowHeightFromSettings(e);return n=h.runHooks("modifyRowHeight",n,e,t),n},this.countSourceRows=function(){return f.countRows()},this.countSourceCols=function(){return f.countFirstRowKeys()},this.countRows=function(){return p.getLength()},this.countCols=function(){const e=k.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return h.view._wt.drawn?h.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return h.view._wt.drawn?h.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return h.view._wt.drawn?h.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return h.view._wt.drawn?h.view._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){return this.view.getRowHeadersCount()},this.countColHeaders=function(){return this.view.getColumnHeadersCount()},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,W.fk)(h.countRows()-1,(n=>{if(h.isEmptyRow(n))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,W.fk)(h.countCols()-1,(n=>{if(h.isEmptyCol(n))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return k.isEmptyRow.call(h,e)},this.isEmptyCol=function(e){return k.isEmptyCol.call(h,e)},this.selectCell=function(e,t,n,o){let i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,r.b0)(e)&&!(0,r.b0)(t)&&this.selectCells([[e,t,n,o]],i,s)},this.selectCells=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&C.suspend();const n=A.selectCells(e);return n&&t&&h.listen(),C.resume(),n},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;return A.selectColumns(e,t,n)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;return A.selectRows(e,t,n)},this.deselectCell=function(){A.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;C.skipNextScrollCycle(),A.selectAll(e,t,n)};const G=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){var n;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(n=arguments[4])||void 0===n||n});const{row:o,col:r,considerHiddenIndexes:s}=null!=e?e:{};let a=o,l=r;if((0,i.Tn)(t)&&this.addHookOnce("afterScroll",t),void 0===s||s){const e=Number.isInteger(o)&&o>=0,t=Number.isInteger(r)&&r>=0,n=e?G(this.rowIndexMapper,o):void 0,i=t?G(this.columnIndexMapper,r):void 0;if(null===n||null===i)return!1;a=e?h.rowIndexMapper.getRenderableFromVisualIndex(n):o,l=t?h.columnIndexMapper.getRenderableFromVisualIndex(i):r}const c=Number.isInteger(a),d=Number.isInteger(l);let u=!1;return c&&a>=0&&d&&l>=0?u=h.view.scrollViewport(h._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):c&&a>=0&&(d&&l<0||!d)?u=h.view.scrollViewportVertically(a,e.verticalSnap):d&&l>=0&&(c&&a<0||!c)&&(u=h.view.scrollViewportHorizontally(l,e.horizontalSnap)),(0,i.Tn)(t)&&(u?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask((()=>t())))),u},this.scrollToFocusedCell=function(e){if(!this.selection.isSelected())return!1;(0,i.Tn)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeLast(),n=this.scrollViewportTo(t.toObject());return n?this.view.render():(0,i.Tn)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask((()=>e()))),n},this.destroy=function(){if(h._clearTimeouts(),h._clearImmediates(),h.view&&h.view.destroy(),f&&f.destroy(),f=null,this.getShortcutManager().destroy(),x.clearCache(),va.delete(this.guid),_o(h)){const e=this.rootDocument.querySelector(".hot-display-license-info");e&&e.parentNode.removeChild(e)}(0,o.Ie)(h.rootElement),m.destroy(),b&&b.destroy(),h.batchExecution((()=>{h.rowIndexMapper.unregisterAll(),h.columnIndexMapper.unregisterAll(),R.getItems().forEach((e=>{let[,t]=e;t.destroy()})),R.clear(),h.runHooks("afterDestroy")}),!0),wi.R.getSingleton().destroy(h),(0,y.v4)(h,((e,t,n)=>{var o;(0,i.Tn)(e)?n[t]=(o=t,()=>{throw new Error(`The "${o}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(n[t]=null)})),h.isDestroyed=!0,p&&p.destroy(),p=null,g=null,A=null,b=null,h=null},this.getActiveEditor=function(){return b.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return h.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return h.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return h.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return h.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return h.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return h.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return h.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return h.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return h.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return h.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return h.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return h.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return R.getItem((0,B.Ob)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:R.getId(e)},this.getInstance=function(){return h},this.addHook=function(e,t,n){wi.R.getSingleton().add(e,t,h,n)},this.hasHook=function(e){return wi.R.getSingleton().has(e,h)||wi.R.getSingleton().has(e)},this.addHookOnce=function(e,t,n){wi.R.getSingleton().once(e,t,h,n)},this.removeHook=function(e,t){wi.R.getSingleton().remove(e,t,h)},this.runHooks=function(e,t,n,o,i,r,s){return wi.R.getSingleton().run(h,e,t,n,o,i,r,s)},this.getTranslatedPhrase=function(e,t){return Ni(k.language,e,t)},this.toHTML=()=>(0,z.KN)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,z.KN)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{this.view.getStylesHandler().useTheme(e),this.runHooks("afterSetTheme",e,!!_)},this.getCurrentThemeName=()=>this.view.getStylesHandler().getThemeName(),this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,F.z0)(this.timeouts,(e=>{clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,F.z0)(this.immediates,(e=>{clearImmediate(e)}))},this._registerMicrotask=function(e){this.rootWindow.queueMicrotask((()=>{this.isDestroyed||e()}))},this._getEditorManager=function(){return b};const K=(e=>{let{ownerWindow:t,handleEvent:n,beforeKeyDown:a,afterKeyDown:c}=e;const d=(0,ms.u)({errorIdExists:e=>`The "${e}" context name is already registered.`});let u="grid";const h=()=>u,m=e=>d.getItem(e);let p=!1;const f=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h();const o=ys(n)?n:m(n);let i=!1;if(!o.hasShortcut(t))return i;const r=o.getShortcuts(t);for(let n=0;n<r.length;n++){const{callback:o,runOnlyIf:s,preventDefault:a,stopPropagation:c,captureCtrl:d,forwardToContext:u}=r[n];if(!0===s(e)){if(p=d,i=!1===o(e,t),p=!1,a&&e.preventDefault(),c&&((0,l.CA)(e),e.stopPropagation()),i)break;u&&f(e,t,u)}}return i},g=function(e,t,n,i,r){const a=e=>ws.includes(e),c=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=[];return e.altKey&&n.push("alt"),t&&(e.ctrlKey||e.metaKey)?n.push("control/meta"):(e.ctrlKey&&n.push("control"),e.metaKey&&n.push("meta")),e.shiftKey&&n.push("shift"),n},d=e=>{if(!1===t(e))return;if(!1===n(e)||229===e.keyCode||"string"!=typeof e.key||(0,l.d)(e))return;const o=bs(e);let d=[];a(o)||(d=c(e));const u=[o].concat(d);!r(e,u)&&((0,s.U0)()&&d.includes("meta")||!(0,s.U0)()&&d.includes("control"))&&r(e,[o].concat(c(e,!0))),i(e)},u=e=>{if("string"==typeof e.key){const t=bs(e);a(t)&&Cs.press(t)}},h=e=>{if("string"==typeof e.key){const t=bs(e);a(t)&&Cs.release(t)}},m=()=>{Cs.releaseAll()};return{mount:()=>{let t=e;for(Ss+=1;t;)1===Ss&&(t.document.documentElement.addEventListener("keydown",u),_s.push({event:"keydown",listener:u}),t.document.documentElement.addEventListener("keyup",h),_s.push({event:"keyup",listener:h})),t.document.documentElement.addEventListener("keydown",d),t.document.documentElement.addEventListener("blur",m),t=(0,o.Ly)(t)},unmount:()=>{let t=e;for(Ss-=1;t;){if(0===Ss){for(let e=0;e<_s.length;e++){const{event:n,listener:o}=_s[e];t.document.documentElement.removeEventListener(n,o)}_s.length=0}t.document.documentElement.removeEventListener("keydown",d),t.document.documentElement.removeEventListener("blur",m),t=(0,o.Ly)(t)}},isPressed:e=>Cs.isPressed(e),releasePressedKeys:()=>Cs.releaseAll()}}(t,n,a,c,f);return g.mount(),{addContext:e=>{const t=(e=>{const t=(0,ms.u)({errorIdExists:t=>`The "${t}" shortcut is already registered in the "${e}" context.`}),n=function(){let{keys:e,callback:n,group:o,runOnlyIf:s=()=>!0,captureCtrl:a=!1,preventDefault:l=!0,stopPropagation:c=!1,relativeToGroup:d,position:u,forwardToContext:h}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,r.b0)(o))throw new Error("You need to define the shortcut's group.");if(!1===(0,i.Tn)(n))throw new Error("The shortcut's callback needs to be a function.");if(!1===Array.isArray(e))throw new Error(Te.O`Pass the shortcut\'s keys as an array of arrays,\x20
  56. using the KeyboardEvent.key properties:\x20
  57. https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values.`);const m={callback:n,group:o,runOnlyIf:s,captureCtrl:a,preventDefault:l,stopPropagation:c};(0,r.O9)(d)&&(m.relativeToGroup=d,m.position=u),ys(h)&&(m.forwardToContext=h),e.forEach((e=>{const n=fs(e);if(t.hasItem(n)){const e=t.getItem(n);let o=e.findIndex((e=>e.group===d));-1!==o?"before"===u?o-=1:o+=1:o=e.length,e.splice(o,0,m)}else t.addItem(n,[m])}))},o=e=>{const n=fs(e);t.removeItem(n)};return{__kindOf:vs,addShortcut:n,addShortcuts:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((e=>{(0,y.v4)(t,((n,o)=>{!1===Object.prototype.hasOwnProperty.call(e,o)&&(e[o]=t[o])})),n(e)}))},getShortcuts:e=>{const n=fs(e),o=t.getItem(n);return(0,r.O9)(o)?o.slice():[]},hasShortcut:e=>{const n=fs(e);return t.hasItem(n)},removeShortcutsByKeys:o,removeShortcutsByGroup:e=>{t.getItems().forEach((t=>{let[n,i]=t;const r=i.filter((t=>t.group!==e));0===r.length?o((e=>e.split("+"))(n)):(i.length=0,i.push(...r))}))}}})(e);return d.addItem(e,t),t},getActiveContextName:h,getContext:m,setActiveContextName:e=>{if(!d.hasItem(e))throw new Error(Te.O`You've tried to activate the "${e}" shortcut context\x20
  58. that does not exist. Before activation, register the context using the "addContext" method.`);u=e},isCtrlPressed:()=>!p&&(g.isPressed("control")||g.isPressed("meta")),releasePressedKeys:()=>g.releasePressedKeys(),destroy:()=>g.unmount()}})({handleEvent:()=>h.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||h.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});var q;this.addHook("beforeOnCellMouseDown",(e=>{!1===e.ctrlKey&&!1===e.metaKey&&K.releasePressedKeys()})),this.getShortcutManager=function(){return K},this.getFocusManager=function(){return w},(0,j.f4)().forEach((e=>{const t=(0,j.sd)(e);R.addItem(e,new t(this))})),q=h,[fa,pa].forEach((e=>e(q))),K.setActiveContextName("grid"),wi.R.getSingleton().run(h,"construct")}new Set;var wa=n(34675);function Ca(e,t){const n=new ya(e,t||{},wo);return n.init(),n}(0,Hr.Gk)(wa.Y),Ca.editors={BaseEditor:Es.b7},Ca.Core=function(e){return new ya(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},wo)},Ca.DefaultSettings=zr(),Ca.hooks=wi.R.getSingleton(),Ca.CellCoords=dt.A,Ca.CellRange=ut.A,Ca.packageName="handsontable",Ca.buildDate="24/04/2025 10:59:00",Ca.version="15.3.0",Ca.languages={dictionaryKeys:Ti,getLanguageDictionary:Ii,getLanguagesDictionaries:function(){return Di()},registerLanguageDictionary:Hi,getTranslatedPhrase:Ni};const _a=Ca},84406:(e,t,n)=>{"use strict";n.d(t,{mu:()=>tt});class o{constructor(e){this.table=e}reloadData(e,t,n){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,n)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return void 0!==t&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,n){return this.table.deprecationAdvisor.check(e,t,n)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class i{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,n){var o,i=e?t.split(e):[t],r=i.length;for(let e=0;e<r&&(o=n=n[i[e]],n);e++);return o}static deepClone(e,t,n=[]){var o={}.__proto__,i=[].__proto__;for(var r in t||(t=Object.assign(Array.isArray(e)?[]:{},e)),e){let s,a,l=e[r];null==l||"object"!=typeof l||l.__proto__!==o&&l.__proto__!==i||(s=n.findIndex((e=>e.subject===l)),s>-1?t[r]=n[s].copy:(a=Object.assign(Array.isArray(l)?[]:{},l),n.unshift({subject:l,copy:a}),t[r]=this.deepClone(l,a,n)))}return t}}let r=class e extends o{constructor(e,t,n){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=n,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return"string"==typeof e?(e=document.querySelector(e))||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)"):!0===e&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t||!!t.parentNode&&this._checkContainerIsParent(e,t.parentNode)}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),n=t?e.touches[0].pageX:e.pageX,o=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let e=i.elOffset(this.container);n-=e.left,o-=e.top}return{x:n,y:o}}elementPositionCoords(e,t="right"){var n,o,r,s=i.elOffset(e);switch(this.container!==document.body&&(n=i.elOffset(this.container),s.left-=n.left,s.top-=n.top),t){case"right":o=s.left+e.offsetWidth,r=s.top-1;break;case"bottom":o=s.left,r=s.top+e.offsetHeight;break;case"left":o=s.left,r=s.top-1;break;case"top":o=s.left,r=s.top;break;case"center":o=s.left+e.offsetWidth/2,r=s.top+e.offsetHeight/2}return{x:o,y:r,offset:s}}show(e,t){var n,o,i,r,s;return this.destroyed||this.table.destroyed||(e instanceof HTMLElement?(i=e,r=(s=this.elementPositionCoords(e,t)).offset,n=s.x,o=s.y):"number"==typeof e?(r={top:0,left:0},n=e,o=t):(n=(s=this.containerEventCoords(e)).x,o=s.y,this.reversedX=!1),this.element.style.top=o+"px",this.element.style.left=n+"px",this.container.appendChild(this.element),"function"==typeof this.renderedCallback&&this.renderedCallback(),this._fitToScreen(n,o,i,r,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",(e=>{e.stopPropagation()}))),this}_fitToScreen(e,t,n,o,i){var r=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",this.element.style.right=n?this.container.offsetWidth-o.left+"px":this.container.offsetWidth-e+"px",this.reversedX=!0);let s=Math.max(this.container.offsetHeight,r?this.container.scrollHeight:0);t+this.element.offsetHeight>s&&(n?this.element.style.top="bottom"===i?parseInt(this.element.style.top)-this.element.offsetHeight-n.offsetHeight-1+"px":parseInt(this.element.style.top)-this.element.offsetHeight+n.offsetHeight+1+"px":this.element.style.height=s+"px")}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout((()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)}),100),this.blurCallback=e),this}_escapeCheck(e){27==e.keyCode&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(t){return this.childPopup&&this.childPopup.hide(),this.childPopup=new e(this.table,t,this),this.childPopup}};class s extends o{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){void 0===this.table[e]?this.table[e]=(...n)=>(this.table.initGuard(e),t(...n)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,n){return this.table.componentFunctionBinder.bind(e,t,n)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t,n=this.table.rowManager.displayRows.length-1;if(this._handler&&(t=this.table.rowManager.displayPipeline.findIndex((e=>e.handler===this._handler)))>-1&&(n=t),e&&(n+=e),this._handler)return n>-1?this.table.rowManager.getDisplayRows(n):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new r(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var a={rownum:function(e,t,n,o,i,r){return r.getPosition()}};class l extends s{static moduleName="accessor";static accessors=a;constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,n={};this.allowedTypes.forEach((o=>{var i,r="accessor"+(o.charAt(0).toUpperCase()+o.slice(1));e.definition[r]&&(i=this.lookupAccessor(e.definition[r]))&&(t=!0,n[r]={accessor:i,params:e.definition[r+"Params"]||{}})})),t&&(e.modules.accessor=n)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":l.accessors[e]?t=l.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e}return t}transformRow(e,t){var n="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),o=e.getComponent(),r=i.deepClone(e.data||{});return this.table.columnManager.traverse((function(e){var i,s,a,l;e.modules.accessor&&(s=e.modules.accessor[n]||e.modules.accessor.accessor||!1)&&"undefined"!=(i=e.getFieldValue(r))&&(l=e.getComponent(),a="function"==typeof s.params?s.params(i,r,t,l,o):s.params,e.setFieldValue(r,s.accessor(i,r,t,a,l,o)))})),r}}var c={method:"GET"};function d(e,t){var n=[];if(t=t||"",Array.isArray(e))e.forEach(((e,o)=>{n=n.concat(d(e,t?t+"["+o+"]":o))}));else if("object"==typeof e)for(var o in e)n=n.concat(d(e[o],t?t+"["+o+"]":o));else n.push({key:t,value:e});return n}function u(e){var t=d(e),n=[];return t.forEach((function(e){n.push(encodeURIComponent(e.key)+"="+encodeURIComponent(e.value))})),n.join("&")}function h(e,t,n){return e&&n&&Object.keys(n).length&&(t.method&&"get"!=t.method.toLowerCase()||(t.method="get",e+=(e.includes("?")?"&":"?")+u(n))),e}function m(e,t,n){var o;return new Promise(((i,r)=>{if(e=this.urlGenerator.call(this.table,e,t,n),"GET"!=t.method.toUpperCase())if(o="object"==typeof this.table.options.ajaxContentType?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType]){for(var s in o.headers)t.headers||(t.headers={}),void 0===t.headers[s]&&(t.headers[s]=o.headers[s]);t.body=o.body.call(this,e,t,n)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);e?(void 0===t.headers&&(t.headers={}),void 0===t.headers.Accept&&(t.headers.Accept="application/json"),void 0===t.headers["X-Requested-With"]&&(t.headers["X-Requested-With"]="XMLHttpRequest"),void 0===t.mode&&(t.mode="cors"),"cors"==t.mode?(void 0===t.headers.Origin&&(t.headers.Origin=window.location.origin),void 0===t.credentials&&(t.credentials="same-origin")):void 0===t.credentials&&(t.credentials="include"),fetch(e,t).then((e=>{e.ok?e.json().then((e=>{i(e)})).catch((e=>{r(e),console.warn("Ajax Load Error - Invalid JSON returned",e)})):(console.error("Ajax Load Error - Connection Error: "+e.status,e.statusText),r(e))})).catch((e=>{console.error("Ajax Load Error - Connection Error: ",e),r(e)}))):(console.warn("Ajax Load Error - No URL Set"),i([]))}))}function p(e,t){var n=[];if(t=t||"",Array.isArray(e))e.forEach(((e,o)=>{n=n.concat(p(e,t?t+"["+o+"]":o))}));else if("object"==typeof e)for(var o in e)n=n.concat(p(e[o],t?t+"["+o+"]":o));else n.push({key:t,value:e});return n}var f={json:{headers:{"Content-Type":"application/json"},body:function(e,t,n){return JSON.stringify(n)}},form:{headers:{},body:function(e,t,n){var o=p(n),i=new FormData;return o.forEach((function(e){i.append(e.key,e.value)})),i}}};class g extends s{static moduleName="ajax";static defaultConfig=c;static defaultURLGenerator=h;static defaultLoaderPromise=m;static contentTypeFormatters=f;constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",(function(){})),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=g.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||g.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||g.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,n,o){var i=this.table.options.ajaxParams;return i&&("function"==typeof i&&(i=i.call(this.table)),o=Object.assign(Object.assign({},i),o)),o}requestDataCheck(e,t,n,o){return!((e||!this.url)&&"string"!=typeof e)}requestData(e,t,n,o,i){var r;return!i&&this.requestDataCheck(e)?(e&&this.setUrl(e),r=this.generateConfig(n),this.sendRequest(this.url,t,r)):i}setDefaultConfig(e={}){this.config=Object.assign({},g.defaultConfig),"string"==typeof e?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return"string"==typeof e?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,n){return!1!==this.table.options.ajaxRequesting.call(this.table,e,t)?this.loaderPromise(e,n,t).then((n=>(this.table.options.ajaxResponse&&(n=this.table.options.ajaxResponse.call(this.table,e,t,n)),n))):Promise.reject()}}var b={replace:function(e){return this.table.setData(e)},update:function(e){return this.table.updateOrAddData(e)},insert:function(e){return this.table.addData(e)}},v={table:function(e){var t=[],n=!0,o=this.table.columnManager.columns,i=[],r=[];return(e=e.split("\n")).forEach((function(e){t.push(e.split("\t"))})),!(!t.length||1===t.length&&t[0].length<2)&&(t[0].forEach((function(e){var t=o.find((function(t){return e&&t.definition.title&&e.trim()&&t.definition.title.trim()===e.trim()}));t?i.push(t):n=!1})),n||(n=!0,i=[],t[0].forEach((function(e){var t=o.find((function(t){return e&&t.field&&e.trim()&&t.field.trim()===e.trim()}));t?i.push(t):n=!1})),n||(i=this.table.columnManager.columnsByIndex)),n&&t.shift(),t.forEach((function(e){var t={};e.forEach((function(e,n){i[n]&&(t[i[n].field]=e)})),r.push(t)})),r)}},y={keybindings:{bindings:{copyToClipboard:["ctrl + 67","meta + 67"]},actions:{copyToClipboard:function(e){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}}}};class w extends s{static moduleName="clipboard";static moduleExtensions=y;static pasteActions=b;static pasteParsers=v;constructor(e){super(e),this.mode=!0,this.pasteParser=function(){},this.pasteAction=function(){},this.customSelection=!1,this.rowRange=!1,this.blocked=!0,this.registerTableOption("clipboard",!1),this.registerTableOption("clipboardCopyStyled",!0),this.registerTableOption("clipboardCopyConfig",!1),this.registerTableOption("clipboardCopyFormatter",!1),this.registerTableOption("clipboardCopyRowRange","active"),this.registerTableOption("clipboardPasteParser","table"),this.registerTableOption("clipboardPasteAction","insert"),this.registerColumnOption("clipboard"),this.registerColumnOption("titleClipboard")}initialize(){this.mode=this.table.options.clipboard,this.rowRange=this.table.options.clipboardCopyRowRange,!0!==this.mode&&"copy"!==this.mode||this.table.element.addEventListener("copy",(e=>{var t,n,o;this.blocked||(e.preventDefault(),this.customSelection?(t=this.customSelection,this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t))):(o=this.table.modules.export.generateExportList(this.table.options.clipboardCopyConfig,this.table.options.clipboardCopyStyled,this.rowRange,"clipboard"),t=(n=this.table.modules.export.generateHTMLTable(o))?this.generatePlainContent(o):"",this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t),n=this.table.options.clipboardCopyFormatter("html",n))),window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",t):e.clipboardData&&e.clipboardData.setData?(e.clipboardData.setData("text/plain",t),n&&e.clipboardData.setData("text/html",n)):e.originalEvent&&e.originalEvent.clipboardData.setData&&(e.originalEvent.clipboardData.setData("text/plain",t),n&&e.originalEvent.clipboardData.setData("text/html",n)),this.dispatchExternal("clipboardCopied",t,n),this.reset())})),!0!==this.mode&&"paste"!==this.mode||this.table.element.addEventListener("paste",(e=>{this.paste(e)})),this.setPasteParser(this.table.options.clipboardPasteParser),this.setPasteAction(this.table.options.clipboardPasteAction),this.registerTableFunction("copyToClipboard",this.copy.bind(this))}reset(){this.blocked=!0,this.customSelection=!1}generatePlainContent(e){var t=[];return e.forEach((e=>{var n=[];e.columns.forEach((t=>{var o="";if(t)if("group"===e.type&&(t.value=t.component.getKey()),null===t.value)o="";else switch(typeof t.value){case"object":o=JSON.stringify(t.value);break;case"undefined":o="";break;default:o=t.value}n.push(o)})),t.push(n.join("\t"))})),t.join("\n")}copy(e,t){var n,o;this.blocked=!1,this.customSelection=!1,!0!==this.mode&&"copy"!==this.mode||(this.rowRange=e||this.table.options.clipboardCopyRowRange,void 0!==window.getSelection&&void 0!==document.createRange?((e=document.createRange()).selectNodeContents(this.table.element),(n=window.getSelection()).toString()&&t&&(this.customSelection=n.toString()),n.removeAllRanges(),n.addRange(e)):void 0!==document.selection&&void 0!==document.body.createTextRange&&((o=document.body.createTextRange()).moveToElementText(this.table.element),o.select()),document.execCommand("copy"),n&&n.removeAllRanges())}setPasteAction(e){switch(typeof e){case"string":this.pasteAction=w.pasteActions[e],this.pasteAction||console.warn("Clipboard Error - No such paste action found:",e);break;case"function":this.pasteAction=e}}setPasteParser(e){switch(typeof e){case"string":this.pasteParser=w.pasteParsers[e],this.pasteParser||console.warn("Clipboard Error - No such paste parser found:",e);break;case"function":this.pasteParser=e}}paste(e){var t,n,o;this.checkPasteOrigin(e)&&(t=this.getPasteData(e),(n=this.pasteParser.call(this,t))?(e.preventDefault(),this.table.modExists("mutator")&&(n=this.mutateData(n)),o=this.pasteAction.call(this,n),this.dispatchExternal("clipboardPasted",t,n,o)):this.dispatchExternal("clipboardPasteError",t))}mutateData(e){var t=[];return Array.isArray(e)?e.forEach((e=>{t.push(this.table.modules.mutator.transformRow(e,"clipboard"))})):t=e,t}checkPasteOrigin(e){var t=!0;return!this.confirm("clipboard-paste",[e])&&["DIV","SPAN"].includes(e.target.tagName)||(t=!1),t}getPasteData(e){var t;return window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):e.originalEvent&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.clipboardData.getData("text/plain")),t}}class C{constructor(e){return this._row=e,new Proxy(this,{get:function(e,t,n){return void 0!==e[t]?e[t]:e._row.table.componentFunctionBinder.handle("row",e._row,t)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getTable(){return this._row.table}getCells(){var e=[];return this._row.getCells().forEach((function(t){e.push(t.getComponent())})),e}getCell(e){var t=this._row.getCell(e);return!!t&&t.getComponent()}_getSelf(){return this._row}}class _{constructor(e){return this._cell=e,new Proxy(this,{get:function(e,t,n){return void 0!==e[t]?e[t]:e._cell.table.componentFunctionBinder.handle("cell",e._cell,t)}})}getValue(){return this._cell.getValue()}getOldValue(){return this._cell.getOldValue()}getInitialValue(){return this._cell.initialValue}getElement(){return this._cell.getElement()}getRow(){return this._cell.row.getComponent()}getData(e){return this._cell.row.getData(e)}getType(){return"cell"}getField(){return this._cell.column.getField()}getColumn(){return this._cell.column.getComponent()}setValue(e,t){void 0===t&&(t=!0),this._cell.setValue(e,t)}restoreOldValue(){this._cell.setValueActual(this._cell.getOldValue())}restoreInitialValue(){this._cell.setValueActual(this._cell.initialValue)}checkHeight(){this._cell.checkHeight()}getTable(){return this._cell.table}_getSelf(){return this._cell}}class S extends o{constructor(e,t){super(e.table),this.table=e.table,this.column=e,this.row=t,this.element=null,this.value=null,this.initialValue,this.oldValue=null,this.modules={},this.height=null,this.width=null,this.minWidth=null,this.component=null,this.loaded=!1,this.build()}build(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(this.row.data)),this.initialValue=this.value}generateElement(){this.element=document.createElement("div"),this.element.className="tabulator-cell",this.element.setAttribute("role","gridcell"),this.column.isRowHeader&&this.element.classList.add("tabulator-row-header")}_configureCell(){var e=this.element,t=this.column.getField();e.style.textAlign=this.column.hozAlign,this.column.vertAlign&&(e.style.display="inline-flex",e.style.alignItems={top:"flex-start",bottom:"flex-end",middle:"center"}[this.column.vertAlign]||"",this.column.hozAlign&&(e.style.justifyContent={left:"flex-start",right:"flex-end",center:"center"}[this.column.hozAlign]||"")),t&&e.setAttribute("tabulator-field",t),this.column.definition.cssClass&&this.column.definition.cssClass.split(" ").forEach((t=>{e.classList.add(t)})),this.dispatch("cell-init",this),this.column.visible||this.hide()}_generateContents(){var e;switch(typeof(e=this.chain("cell-format",this,null,(()=>this.element.innerHTML=this.value)))){case"object":if(e instanceof Node){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.appendChild(e)}else this.element.innerHTML="",null!=e&&console.warn("Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",e);break;case"undefined":this.element.innerHTML="";break;default:this.element.innerHTML=e}}cellRendered(){this.dispatch("cell-rendered",this)}getElement(e){return this.loaded||(this.loaded=!0,e||this.layoutElement()),this.element}getValue(){return this.value}getOldValue(){return this.oldValue}setValue(e,t,n){this.setValueProcessData(e,t,n)&&(this.dispatch("cell-value-updated",this),this.cellRendered(),this.column.definition.cellEdited&&this.column.definition.cellEdited.call(this.table,this.getComponent()),this.dispatchExternal("cellEdited",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()))}setValueProcessData(e,t,n){var o=!1;return(this.value!==e||n)&&(o=!0,t&&(e=this.chain("cell-value-changing",[this,e],null,e))),this.setValueActual(e),o&&this.dispatch("cell-value-changed",this),o}setValueActual(e){this.oldValue=this.value,this.value=e,this.dispatch("cell-value-save-before",this),this.column.setFieldValue(this.row.data,e),this.dispatch("cell-value-save-after",this),this.loaded&&this.layoutElement()}layoutElement(){this._generateContents(),this.dispatch("cell-layout",this)}setWidth(){this.width=this.column.width,this.element.style.width=this.column.widthStyled}clearWidth(){this.width="",this.element.style.width=""}getWidth(){return this.width||this.element.offsetWidth}setMinWidth(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled}setMaxWidth(){this.maxWidth=this.column.maxWidth,this.element.style.maxWidth=this.column.maxWidthStyled}checkHeight(){this.row.reinitializeHeight()}clearHeight(){this.element.style.height="",this.height=null,this.dispatch("cell-height",this,"")}setHeight(){this.height=this.row.height,this.element.style.height=this.row.heightStyled,this.dispatch("cell-height",this,this.row.heightStyled)}getHeight(){return this.height||this.element.offsetHeight}show(){this.element.style.display=this.column.vertAlign?"inline-flex":""}hide(){this.element.style.display="none"}delete(){this.dispatch("cell-delete",this),!this.table.rowManager.redrawBlock&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}}getIndex(){return this.row.getCellIndex(this)}getComponent(){return this.component||(this.component=new _(this)),this.component}}class M{constructor(e){return this._column=e,this.type="ColumnComponent",new Proxy(this,{get:function(e,t,n){return void 0!==e[t]?e[t]:e._column.table.componentFunctionBinder.handle("column",e._column,t)}})}getElement(){return this._column.getElement()}getDefinition(){return this._column.getDefinition()}getField(){return this._column.getField()}getTitleDownload(){return this._column.getTitleDownload()}getCells(){var e=[];return this._column.cells.forEach((function(t){e.push(t.getComponent())})),e}isVisible(){return this._column.visible}show(){this._column.isGroup?this._column.columns.forEach((function(e){e.show()})):this._column.show()}hide(){this._column.isGroup?this._column.columns.forEach((function(e){e.hide()})):this._column.hide()}toggle(){this._column.visible?this.hide():this.show()}delete(){return this._column.delete()}getSubColumns(){var e=[];return this._column.columns.length&&this._column.columns.forEach((function(t){e.push(t.getComponent())})),e}getParentColumn(){return this._column.getParentComponent()}_getSelf(){return this._column}scrollTo(e,t){return this._column.table.columnManager.scrollToColumn(this._column,e,t)}getTable(){return this._column.table}move(e,t){var n=this._column.table.columnManager.findColumn(e);n?this._column.table.columnManager.moveColumn(this._column,n,t):console.warn("Move Error - No matching column found:",n)}getNextColumn(){var e=this._column.nextColumn();return!!e&&e.getComponent()}getPrevColumn(){var e=this._column.prevColumn();return!!e&&e.getComponent()}updateDefinition(e){return this._column.updateDefinition(e)}getWidth(){return this._column.getWidth()}setWidth(e){var t;return t=!0===e?this._column.reinitializeWidth(!0):this._column.setWidth(e),this._column.table.columnManager.rerenderColumns(!0),t}}var E={title:void 0,field:void 0,columns:void 0,visible:void 0,hozAlign:void 0,vertAlign:void 0,width:void 0,minWidth:40,maxWidth:void 0,maxInitialWidth:void 0,cssClass:void 0,variableHeight:void 0,headerVertical:void 0,headerHozAlign:void 0,headerWordWrap:!1,editableTitle:void 0};class x extends o{static defaultOptionList=E;constructor(e,t,n){super(t.table),this.definition=e,this.parent=t,this.type="column",this.columns=[],this.cells=[],this.isGroup=!1,this.isRowHeader=n,this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleDownload=null,this.titleFormatterRendered=!1,this.mapDefinitions(),this.setField(this.definition.field),this.modules={},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.maxInitialWidth=null,this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this.definition.columns?(this.isGroup=!0,this.definition.columns.forEach(((e,t)=>{var n=new x(e,this);this.attachColumn(n)})),this.checkColumnVisibility()):t.registerColumnField(this),this._initialize()}createElement(){var e=document.createElement("div");switch(e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),this.isRowHeader&&e.classList.add("tabulator-row-header"),this.table.options.columnHeaderVertAlign){case"middle":e.style.justifyContent="center";break;case"bottom":e.style.justifyContent="flex-end"}return e}createGroupElement(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e}mapDefinitions(){var e=this.table.options.columnDefaults;if(e)for(let t in e)void 0===this.definition[t]&&(this.definition[t]=e[t]);this.definition=this.table.columnManager.optionsList.generate(x.defaultOptionList,this.definition)}checkDefinition(){Object.keys(this.definition).forEach((e=>{-1===x.defaultOptionList.indexOf(e)&&console.warn("Invalid column definition option in '"+(this.field||this.definition.title)+"' column:",e)}))}setField(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData}registerColumnPosition(e){this.parent.registerColumnPosition(e)}registerColumnField(e){this.parent.registerColumnField(e)}reRegisterPosition(){this.isGroup?this.columns.forEach((function(e){e.reRegisterPosition()})):this.registerColumnPosition(this)}_initialize(){for(var e=this.definition;this.element.firstChild;)this.element.removeChild(this.element.firstChild);e.headerVertical&&(this.element.classList.add("tabulator-col-vertical"),"flip"===e.headerVertical&&this.element.classList.add("tabulator-col-vertical-flip")),this.contentElement=this._buildColumnHeaderContent(),this.element.appendChild(this.contentElement),this.isGroup?this._buildGroupHeader():this._buildColumnHeader(),this.dispatch("column-init",this)}_buildColumnHeader(){var e=this.definition;this.dispatch("column-layout",this),void 0!==e.visible&&(e.visible?this.show(!0):this.hide(!0)),e.cssClass&&e.cssClass.split(" ").forEach((e=>{this.element.classList.add(e)})),e.field&&this.element.setAttribute("tabulator-field",e.field),this.setMinWidth(parseInt(e.minWidth)),e.maxInitialWidth&&(this.maxInitialWidth=parseInt(e.maxInitialWidth)),e.maxWidth&&this.setMaxWidth(parseInt(e.maxWidth)),this.reinitializeWidth(),this.hozAlign=this.definition.hozAlign,this.vertAlign=this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign}_buildColumnHeaderContent(){var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e}_buildColumnHeaderTitle(){var e=this.definition,t=document.createElement("div");if(t.classList.add("tabulator-col-title"),e.headerWordWrap&&t.classList.add("tabulator-col-title-wrap"),e.editableTitle){var n=document.createElement("input");n.classList.add("tabulator-title-editor"),n.addEventListener("click",(e=>{e.stopPropagation(),n.focus()})),n.addEventListener("mousedown",(e=>{e.stopPropagation()})),n.addEventListener("change",(()=>{e.title=n.value,this.dispatchExternal("columnTitleChanged",this.getComponent())})),t.appendChild(n),e.field?this.langBind("columns|"+e.field,(t=>{n.value=t||e.title||"&nbsp;"})):n.value=e.title||"&nbsp;"}else e.field?this.langBind("columns|"+e.field,(n=>{this._formatColumnHeaderTitle(t,n||e.title||"&nbsp;")})):this._formatColumnHeaderTitle(t,e.title||"&nbsp;");return t}_formatColumnHeaderTitle(e,t){var n=this.chain("column-format",[this,t,e],null,(()=>t));switch(typeof n){case"object":n instanceof Node?e.appendChild(n):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",n));break;case"undefined":e.innerHTML="";break;default:e.innerHTML=n}}_buildGroupHeader(){this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass&&this.definition.cssClass.split(" ").forEach((e=>{this.element.classList.add(e)})),this.titleElement.style.textAlign=this.definition.headerHozAlign,this.element.appendChild(this.groupElement)}_getFlatData(e){return e[this.field]}_getNestedData(e){var t,n=e,o=this.fieldStructure,i=o.length;for(let e=0;e<i&&(t=n=n[o[e]],n);e++);return t}_setFlatData(e,t){this.field&&(e[this.field]=t)}_setNestedData(e,t){var n=e,o=this.fieldStructure,i=o.length;for(let e=0;e<i;e++)if(e==i-1)n[o[e]]=t;else{if(!n[o[e]]){if(void 0===t)break;n[o[e]]={}}n=n[o[e]]}}attachColumn(e){this.groupElement?(this.columns.push(e),this.groupElement.appendChild(e.getElement()),e.columnRendered()):console.warn("Column Warning - Column being attached to another column instead of column group")}verticalAlign(e,t){var n=this.parent.isGroup?this.parent.getGroupElement().clientHeight:t||this.parent.getHeadersElement().clientHeight;this.element.style.height=n+"px",this.dispatch("column-height",this,this.element.style.height),this.isGroup&&(this.groupElement.style.minHeight=n-this.contentElement.offsetHeight+"px"),this.columns.forEach((function(t){t.verticalAlign(e)}))}clearVerticalAlign(){this.element.style.paddingTop="",this.element.style.height="",this.element.style.minHeight="",this.groupElement.style.minHeight="",this.columns.forEach((function(e){e.clearVerticalAlign()})),this.dispatch("column-height",this,"")}getElement(){return this.element}getGroupElement(){return this.groupElement}getField(){return this.field}getTitleDownload(){return this.titleDownload}getFirstColumn(){return this.isGroup?!!this.columns.length&&this.columns[0].getFirstColumn():this}getLastColumn(){return this.isGroup?!!this.columns.length&&this.columns[this.columns.length-1].getLastColumn():this}getColumns(e){var t=[];return e?this.columns.forEach((e=>{t.push(e),t=t.concat(e.getColumns(!0))})):t=this.columns,t}getCells(){return this.cells}getTopColumn(){return this.parent.isGroup?this.parent.getTopColumn():this}getDefinition(e){var t=[];return this.isGroup&&e&&(this.columns.forEach((function(e){t.push(e.getDefinition(!0))})),this.definition.columns=t),this.definition}checkColumnVisibility(){var e=!1;this.columns.forEach((function(t){t.visible&&(e=!0)})),e?(this.show(),this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1)):this.hide()}show(e,t){this.visible||(this.visible=!0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach((function(e){e.show()})),this.isGroup||null!==this.width||this.reinitializeWidth(),this.table.columnManager.verticalAlignHeaders(),this.dispatch("column-show",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}hide(e,t){this.visible&&(this.visible=!1,this.element.style.display="none",this.table.columnManager.verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach((function(e){e.hide()})),this.dispatch("column-hide",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}matchChildWidths(){var e=0;this.contentElement&&this.columns.length&&(this.columns.forEach((function(t){t.visible&&(e+=t.getWidth())})),this.contentElement.style.maxWidth=e-1+"px",this.table.initialized&&(this.element.style.width=e+"px"),this.parent.isGroup&&this.parent.matchChildWidths())}removeChild(e){var t=this.columns.indexOf(e);t>-1&&this.columns.splice(t,1),this.columns.length||this.delete()}setWidth(e){this.widthFixed=!0,this.setWidthActual(e)}setWidthActual(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach((function(e){e.setWidth()})),this.parent.isGroup&&this.parent.matchChildWidths(),this.dispatch("column-width",this),this.subscribedExternal("columnWidth")&&this.dispatchExternal("columnWidth",this.getComponent())}checkCellHeights(){var e=[];this.cells.forEach((function(t){t.row.heightInitialized&&(null!==t.row.getElement().offsetParent?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)})),e.forEach((function(e){e.calcHeight()})),e.forEach((function(e){e.setCellHeight()}))}getWidth(){var e=0;return this.isGroup?this.columns.forEach((function(t){t.visible&&(e+=t.getWidth())})):e=this.width,e}getLeftOffset(){var e=this.element.offsetLeft;return this.parent.isGroup&&(e+=this.parent.getLeftOffset()),e}getHeight(){return Math.ceil(this.element.getBoundingClientRect().height)}setMinWidth(e){this.maxWidth&&e>this.maxWidth&&(e=this.maxWidth,console.warn("the minWidth ("+e+"px) for column '"+this.field+"' cannot be bigger that its maxWidth ("+this.maxWidthStyled+")")),this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach((function(e){e.setMinWidth()}))}setMaxWidth(e){this.minWidth&&e<this.minWidth&&(e=this.minWidth,console.warn("the maxWidth ("+e+"px) for column '"+this.field+"' cannot be smaller that its minWidth ("+this.minWidthStyled+")")),this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach((function(e){e.setMaxWidth()}))}delete(){return new Promise(((e,t)=>{this.isGroup&&this.columns.forEach((function(e){e.delete()})),this.dispatch("column-delete",this);var n=this.cells.length;for(let e=0;e<n;e++)this.cells[0].delete();this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.contentElement=!1,this.titleElement=!1,this.groupElement=!1,this.parent.isGroup&&this.parent.removeChild(this),this.table.columnManager.deregisterColumn(this),this.table.columnManager.rerenderColumns(!0),this.dispatch("column-deleted",this),e()}))}columnRendered(){this.titleFormatterRendered&&this.titleFormatterRendered(),this.dispatch("column-rendered",this)}generateCell(e){var t=new S(this,e);return this.cells.push(t),t}nextColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1&&this._nextVisibleColumn(e+1)}_nextVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)}prevColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1&&this._prevVisibleColumn(e-1)}_prevVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)}reinitializeWidth(e){this.widthFixed=!1,void 0===this.definition.width||e||this.setWidth(this.definition.width),this.dispatch("column-width-fit-before",this),this.fitToData(e),this.dispatch("column-width-fit-after",this)}fitToData(e){if(!this.isGroup){this.widthFixed||(this.element.style.width="",this.cells.forEach((e=>{e.clearWidth()})));var t=this.element.offsetWidth;if((!this.width||!this.widthFixed)&&(this.cells.forEach((e=>{var n=e.getWidth();n>t&&(t=n)})),t)){var n=t+1;e?this.setWidth(n):(this.maxInitialWidth&&!e&&(n=Math.min(n,this.maxInitialWidth)),this.setWidthActual(n))}}}updateDefinition(e){var t;return this.isGroup||this.parent.isGroup?(console.error("Column Update Error - The updateDefinition function is only available on ungrouped columns"),Promise.reject("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(t=Object.assign({},this.getDefinition()),t=Object.assign(t,e),this.table.columnManager.addColumn(t,!1,this).then((e=>(t.field==this.field&&(this.field=!1),this.delete().then((()=>e.getComponent()))))))}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}getComponent(){return this.component||(this.component=new M(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof x&&this.parent.getComponent()}}class k{constructor(e){return this._row=e,new Proxy(this,{get:function(e,t,n){return void 0!==e[t]?e[t]:e._row.table.componentFunctionBinder.handle("row",e._row,t)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getCells(){var e=[];return this._row.getCells().forEach((function(t){e.push(t.getComponent())})),e}getCell(e){var t=this._row.getCell(e);return!!t&&t.getComponent()}getIndex(){return this._row.getData("data")[this._row.table.options.index]}getPosition(){return this._row.getPosition()}watchPosition(e){return this._row.watchPosition(e)}delete(){return this._row.delete()}scrollTo(e,t){return this._row.table.rowManager.scrollToRow(this._row,e,t)}move(e,t){this._row.moveToRow(e,t)}update(e){return this._row.updateData(e)}normalizeHeight(){this._row.normalizeHeight(!0)}_getSelf(){return this._row}reformat(){return this._row.reinitialize()}getTable(){return this._row.table}getNextRow(){var e=this._row.nextRow();return e?e.getComponent():e}getPrevRow(){var e=this._row.prevRow();return e?e.getComponent():e}}class T extends o{constructor(e,t,n="row"){super(t.table),this.parent=t,this.data={},this.type=n,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.position=0,this.positionWatchers=[],this.component=null,this.created=!1,this.setData(e)}create(){this.created||(this.created=!0,this.generateElement())}createElement(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e}getElement(){return this.create(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}generateElement(){this.createElement(),this.dispatch("row-init",this)}generateCells(){this.cells=this.table.columnManager.generateCells(this)}initialize(e,t){if(this.create(),!this.initialized||e){for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.dispatch("row-layout-before",this),this.generateCells(),this.initialized=!0,this.table.columnManager.renderer.renderRowCells(this,t),e&&this.normalizeHeight(),this.dispatch("row-layout",this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.dispatch("row-layout-after",this)}else this.table.columnManager.renderer.rerenderRowCells(this,t)}rendered(){this.cells.forEach((e=>{e.cellRendered()}))}reinitializeHeight(){this.heightInitialized=!1,this.element&&null!==this.element.offsetParent&&this.normalizeHeight(!0)}deinitialize(){this.initialized=!1}deinitializeHeight(){this.heightInitialized=!1}reinitialize(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&null!==this.element.offsetParent&&this.initialize(!0),this.dispatch("row-relayout",this)}calcHeight(e){var t=0,n=0;this.table.options.rowHeight?this.height=this.table.options.rowHeight:(n=this.calcMinHeight(),t=this.calcMaxHeight(),this.height=e?Math.max(t,n):this.manualHeight?this.height:Math.max(t,n)),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight}calcMinHeight(){return this.table.options.resizableRows?this.element.clientHeight:0}calcMaxHeight(){var e=0;return this.cells.forEach((function(t){var n=t.getHeight();n>e&&(e=n)})),e}setCellHeight(){this.cells.forEach((function(e){e.setHeight()})),this.heightInitialized=!0}clearCellHeight(){this.cells.forEach((function(e){e.clearHeight()}))}normalizeHeight(e){e&&!this.table.options.rowHeight&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()}setHeight(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight,this.subscribedExternal("rowHeight")&&this.dispatchExternal("rowHeight",this.getComponent()))}getHeight(){return this.outerHeight}getWidth(){return this.element.offsetWidth}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}setData(e){this.data=this.chain("row-data-init-before",[this,e],void 0,e),this.dispatch("row-data-init-after",this)}updateData(e){var t,n=this.element&&i.elVisible(this.element),o={};return new Promise(((i,r)=>{"string"==typeof e&&(e=JSON.parse(e)),this.dispatch("row-data-save-before",this),this.subscribed("row-data-changing")&&(o=Object.assign(o,this.data),o=Object.assign(o,e)),t=this.chain("row-data-changing",[this,o,e],null,e);for(let e in t)this.data[e]=t[e];this.dispatch("row-data-save-after",this);for(let o in e)this.table.columnManager.getColumnsByFieldRoot(o).forEach((e=>{let o=this.getCell(e.getField());if(o){let i=e.getFieldValue(t);o.getValue()!==i&&(o.setValueProcessData(i),n&&o.cellRendered())}}));n?(this.normalizeHeight(!0),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent())):(this.initialized=!1,this.height=0,this.heightStyled=""),this.dispatch("row-data-changed",this,n,e),this.dispatchExternal("rowUpdated",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),i()}))}getData(e){return e?this.chain("row-data-retrieve",[this,e],null,this.data):this.data}getCell(e){return e=this.table.columnManager.findColumn(e),this.initialized||0!==this.cells.length||this.generateCells(),this.cells.find((function(t){return t.column===e}))}getCellIndex(e){return this.cells.findIndex((function(t){return t===e}))}findCell(e){return this.cells.find((t=>t.element===e))}getCells(){return this.initialized||0!==this.cells.length||this.generateCells(),this.cells}nextRow(){return this.table.rowManager.nextDisplayRow(this,!0)||!1}prevRow(){return this.table.rowManager.prevDisplayRow(this,!0)||!1}moveToRow(e,t){var n=this.table.rowManager.findRow(e);n?(this.table.rowManager.moveRowActual(this,n,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)}delete(){return this.dispatch("row-delete",this),this.deleteActual(),Promise.resolve()}deleteActual(e){this.detachModules(),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.dispatch("row-deleted",this)}detachModules(){this.dispatch("row-deleting",this)}deleteCells(){var e=this.cells.length;for(let t=0;t<e;t++)this.cells[0].delete()}wipe(){if(this.detachModules(),this.deleteCells(),this.element){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.parentNode&&this.element.parentNode.removeChild(this.element)}this.element=!1,this.modules={}}isDisplayed(){return this.table.rowManager.getDisplayRows().includes(this)}getPosition(){return!!this.isDisplayed()&&this.position}setPosition(e){e!=this.position&&(this.position=e,this.positionWatchers.forEach((e=>{e(this.position)})))}watchPosition(e){this.positionWatchers.push(e),e(this.position)}getGroup(){return this.modules.group||!1}getComponent(){return this.component||(this.component=new k(this)),this.component}}var R={avg:function(e,t,n){var o=0,i=void 0!==n.precision?n.precision:2;return e.length&&(o=e.reduce((function(e,t){return Number(e)+Number(t)})),o/=e.length,o=!1!==i?o.toFixed(i):o),parseFloat(o).toString()},max:function(e,t,n){var o=null,i=void 0!==n.precision&&n.precision;return e.forEach((function(e){((e=Number(e))>o||null===o)&&(o=e)})),null!==o?!1!==i?o.toFixed(i):o:""},min:function(e,t,n){var o=null,i=void 0!==n.precision&&n.precision;return e.forEach((function(e){((e=Number(e))<o||null===o)&&(o=e)})),null!==o?!1!==i?o.toFixed(i):o:""},sum:function(e,t,n){var o=0,i=void 0!==n.precision&&n.precision;return e.length&&e.forEach((function(e){e=Number(e),o+=isNaN(e)?0:Number(e)})),!1!==i?o.toFixed(i):o},concat:function(e,t,n){var o=0;return e.length&&(o=e.reduce((function(e,t){return String(e)+String(t)}))),o},count:function(e,t,n){var o=0;return e.length&&e.forEach((function(e){e&&o++})),o},unique:function(e,t,n){return e.filter(((t,n)=>(e||0===t)&&e.indexOf(t)===n)).length}};class A extends s{static moduleName="columnCalcs";static calculations=R;constructor(e){super(e),this.topCalcs=[],this.botCalcs=[],this.genColumn=!1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.topRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.blocked=!1,this.recalcAfterBlock=!1,this.registerTableOption("columnCalcs",!0),this.registerColumnOption("topCalc"),this.registerColumnOption("topCalcParams"),this.registerColumnOption("topCalcFormatter"),this.registerColumnOption("topCalcFormatterParams"),this.registerColumnOption("bottomCalc"),this.registerColumnOption("bottomCalcParams"),this.registerColumnOption("bottomCalcFormatter"),this.registerColumnOption("bottomCalcFormatterParams")}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-calcs-holder"),e}initialize(){this.genColumn=new x({field:"value"},this),this.subscribe("cell-value-changed",this.cellValueChanged.bind(this)),this.subscribe("column-init",this.initializeColumnCheck.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("column-moved",this.recalcActiveRows.bind(this)),this.subscribe("column-add",this.recalcActiveRows.bind(this)),this.subscribe("data-refreshed",this.recalcActiveRowsRefresh.bind(this)),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this)),this.subscribe("redraw-blocked",this.blockRedraw.bind(this)),this.subscribe("redraw-restored",this.restoreRedraw.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this)),this.registerTableFunction("getCalcResults",this.getResults.bind(this)),this.registerTableFunction("recalc",this.userRecalc.bind(this)),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}tableRedraw(e){this.recalc(this.table.rowManager.activeRows),e&&this.redraw()}blockRedraw(){this.blocked=!0,this.recalcAfterBlock=!1}restoreRedraw(){this.blocked=!1,this.recalcAfterBlock&&(this.recalcAfterBlock=!1,this.recalcActiveRowsRefresh())}userRecalc(){this.recalc(this.table.rowManager.activeRows)}blockCheck(){return this.blocked&&(this.recalcAfterBlock=!0),this.blocked}visibleRows(e,t){return this.topRow&&t.unshift(this.topRow),this.botRow&&t.push(this.botRow),t}rowsUpdated(e){this.table.options.groupBy?this.recalcRowGroup(e):this.recalcActiveRows()}recalcActiveRowsRefresh(){this.table.options.groupBy&&this.table.options.dataTreeStartExpanded&&this.table.options.dataTree?this.recalcAll():this.recalcActiveRows()}recalcActiveRows(){this.recalc(this.table.rowManager.activeRows)}cellValueChanged(e){(e.column.definition.topCalc||e.column.definition.bottomCalc)&&(this.table.options.groupBy?("table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs||this.recalcActiveRows(),"table"!=this.table.options.columnCalcs&&this.recalcRowGroup(e.row)):this.recalcActiveRows())}initializeColumnCheck(e){(e.definition.topCalc||e.definition.bottomCalc)&&this.initializeColumn(e)}initializeColumn(e){var t=e.definition,n={topCalcParams:t.topCalcParams||{},botCalcParams:t.bottomCalcParams||{}};if(t.topCalc){switch(typeof t.topCalc){case"string":A.calculations[t.topCalc]?n.topCalc=A.calculations[t.topCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.topCalc);break;case"function":n.topCalc=t.topCalc}n.topCalc&&(e.modules.columnCalcs=n,this.topCalcs.push(e),"group"!=this.table.options.columnCalcs&&this.initializeTopRow())}if(t.bottomCalc){switch(typeof t.bottomCalc){case"string":A.calculations[t.bottomCalc]?n.botCalc=A.calculations[t.bottomCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.bottomCalc);break;case"function":n.botCalc=t.bottomCalc}n.botCalc&&(e.modules.columnCalcs=n,this.botCalcs.push(e),"group"!=this.table.options.columnCalcs&&this.initializeBottomRow())}}registerColumnField(){}removeCalcs(){var e=!1;this.topInitialized&&(this.topInitialized=!1,this.topElement.parentNode.removeChild(this.topElement),e=!0),this.botInitialized&&(this.botInitialized=!1,this.footerRemove(this.botElement),e=!0),e&&this.table.rowManager.adjustTableSize()}reinitializeCalcs(){this.topCalcs.length&&this.initializeTopRow(),this.botCalcs.length&&this.initializeBottomRow()}initializeTopRow(){var e=document.createDocumentFragment();this.topInitialized||(e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.topInitialized=!0)}initializeBottomRow(){this.botInitialized||(this.footerPrepend(this.botElement),this.botInitialized=!0)}scrollHorizontal(e){this.botInitialized&&this.botRow&&(this.botElement.scrollLeft=e)}recalc(e){var t,n;if(!this.blockCheck()&&(this.topInitialized||this.botInitialized)){if(t=this.rowsToData(e),this.topInitialized){for(this.topRow&&this.topRow.deleteCells(),n=this.generateRow("top",t),this.topRow=n;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChild);this.topElement.appendChild(n.getElement()),n.initialize(!0)}if(this.botInitialized){for(this.botRow&&this.botRow.deleteCells(),n=this.generateRow("bottom",t),this.botRow=n;this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild);this.botElement.appendChild(n.getElement()),n.initialize(!0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()}}recalcRowGroup(e){this.recalcGroup(this.table.modules.groupRows.getRowGroup(e))}recalcAll(){(this.topCalcs.length||this.botCalcs.length)&&("group"!==this.table.options.columnCalcs&&this.recalcActiveRows(),this.table.options.groupBy&&"table"!==this.table.options.columnCalcs&&this.table.modules.groupRows.getChildGroups().forEach((e=>{this.recalcGroup(e)})))}recalcGroup(e){var t,n;this.blockCheck()||e&&e.calcs&&(e.calcs.bottom&&(t=this.rowsToData(e.rows),n=this.generateRowData("bottom",t),e.calcs.bottom.updateData(n),e.calcs.bottom.reinitialize()),e.calcs.top&&(t=this.rowsToData(e.rows),n=this.generateRowData("top",t),e.calcs.top.updateData(n),e.calcs.top.reinitialize()))}generateTopRow(e){return this.generateRow("top",this.rowsToData(e))}generateBottomRow(e){return this.generateRow("bottom",this.rowsToData(e))}rowsToData(e){var t=[],n=this.table.options.dataTree&&this.table.options.dataTreeChildColumnCalcs,o=this.table.modules.dataTree;return e.forEach((e=>{t.push(e.getData()),n&&e.modules.dataTree?.open&&this.rowsToData(o.getFilteredTreeChildren(e)).forEach((n=>{t.push(e)}))})),t}generateRow(e,t){var n,o=this.generateRowData(e,t);return this.table.modExists("mutator")&&this.table.modules.mutator.disable(),n=new T(o,this,"calc"),this.table.modExists("mutator")&&this.table.modules.mutator.enable(),n.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+e),n.component=!1,n.getComponent=()=>(n.component||(n.component=new C(n)),n.component),n.generateCells=()=>{var t=[];this.table.columnManager.columnsByIndex.forEach((o=>{this.genColumn.setField(o.getField()),this.genColumn.hozAlign=o.hozAlign,o.definition[e+"CalcFormatter"]&&this.table.modExists("format")?this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter(o.definition[e+"CalcFormatter"]),params:o.definition[e+"CalcFormatterParams"]||{}}:this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter("plaintext"),params:{}},this.genColumn.definition.cssClass=o.definition.cssClass;var i=new S(this.genColumn,n);i.getElement(),i.column=o,i.setWidth(),o.cells.push(i),t.push(i),o.visible||i.hide()})),n.cells=t},n}generateRowData(e,t){var n,o,i={},r="top"==e?this.topCalcs:this.botCalcs,s="top"==e?"topCalc":"botCalc";return r.forEach((function(e){var r=[];e.modules.columnCalcs&&e.modules.columnCalcs[s]&&(t.forEach((function(t){r.push(e.getFieldValue(t))})),o=s+"Params",n="function"==typeof e.modules.columnCalcs[o]?e.modules.columnCalcs[o](r,t):e.modules.columnCalcs[o],e.setFieldValue(i,e.modules.columnCalcs[s](r,t,n)))})),i}hasTopCalcs(){return!!this.topCalcs.length}hasBottomCalcs(){return!!this.botCalcs.length}redraw(){this.topRow&&this.topRow.normalizeHeight(!0),this.botRow&&this.botRow.normalizeHeight(!0)}getResults(){var e={};return this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.groupRows.getGroups(!0).forEach((t=>{e[t.getKey()]=this.getGroupResults(t)})):e={top:this.topRow?this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():{}},e}getGroupResults(e){var t=e._getSelf(),n=e.getSubGroups(),o={};return n.forEach((e=>{o[e.getKey()]=this.getGroupResults(e)})),{top:t.calcs.top?t.calcs.top.getData():{},bottom:t.calcs.bottom?t.calcs.bottom.getData():{},groups:o}}adjustForScrollbar(e){this.botRow&&(this.table.rtl?this.botElement.style.paddingLeft=e+"px":this.botElement.style.paddingRight=e+"px")}}var L={csv:function(e,t={},n){var o=t.delimiter?t.delimiter:",",i=[],r=[];e.forEach((e=>{var t=[];switch(e.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":e.columns.forEach(((e,t)=>{e&&1===e.depth&&(r[t]=void 0===e.value||null===e.value?"":'"'+String(e.value).split('"').join('""')+'"')}));break;case"row":e.columns.forEach((e=>{if(e){switch(typeof e.value){case"object":e.value=null!==e.value?JSON.stringify(e.value):"";break;case"undefined":e.value=""}t.push('"'+String(e.value).split('"').join('""')+'"')}})),i.push(t.join(o))}})),r.length&&i.unshift(r.join(o)),i=i.join("\n"),t.bom&&(i="\ufeff"+i),n(i,"text/csv")},json:function(e,t,n){var o=[];e.forEach((e=>{var t={};switch(e.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":e.columns.forEach((e=>{e&&(t[e.component.getTitleDownload()||e.component.getField()]=e.value)})),o.push(t)}})),n(o=JSON.stringify(o,null,"\t"),"application/json")},jsonLines:function(e,t,n){const o=[];e.forEach((e=>{const t={};switch(e.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":e.columns.forEach((e=>{e&&(t[e.component.getTitleDownload()||e.component.getField()]=e.value)})),o.push(JSON.stringify(t))}})),n(o.join("\n"),"application/x-ndjson")},pdf:function(e,t={},n){var o,i,r=[],s=[],a={},l=t.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},c=t.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},d=t.jsPDF||{},u=t.title?t.title:"";function h(e,t){var n=[];return e.columns.forEach((e=>{var o;if(e){switch(typeof e.value){case"object":e.value=null!==e.value?JSON.stringify(e.value):"";break;case"undefined":e.value=""}o={content:e.value,colSpan:e.width,rowSpan:e.height},t&&(o.styles=t),n.push(o)}})),n}d.orientation||(d.orientation=t.orientation||"landscape"),d.unit||(d.unit="pt"),e.forEach((e=>{switch(e.type){case"header":r.push(h(e));break;case"group":s.push(h(e,l));break;case"calc":s.push(h(e,c));break;case"row":s.push(h(e))}})),o=this.dependencyRegistry.lookup("jspdf","jsPDF"),i=new o(d),t.autoTable&&(a="function"==typeof t.autoTable?t.autoTable(i)||{}:t.autoTable),u&&(a.didDrawPage=function(e){i.text(u,40,30)}),a.head=r,a.body=s,i.autoTable(a),t.documentProcessing&&t.documentProcessing(i),n(i.output("arraybuffer"),"application/pdf")},xlsx:function(e,t,n){var i=t.sheetName||"Sheet1",r=this.dependencyRegistry.lookup("XLSX"),s=r.utils.book_new(),a=new o(this),l=!("compress"in t)||t.compress,c=t.writeOptions||{bookType:"xlsx",bookSST:!0,compression:l};function d(){var t=[],n=[],o={},i={s:{c:0,r:0},e:{c:e[0]?e[0].columns.reduce(((e,t)=>e+(t&&t.width?t.width:1)),0):0,r:e.length}};return e.forEach(((e,o)=>{var i=[];e.columns.forEach((function(e,t){e?(i.push(e.value instanceof Date||"object"!=typeof e.value?e.value:JSON.stringify(e.value)),(e.width>1||e.height>-1)&&(e.height>1||e.width>1)&&n.push({s:{r:o,c:t},e:{r:o+e.height-1,c:t+e.width-1}})):i.push("")})),t.push(i)})),r.utils.sheet_add_aoa(o,t),o["!ref"]=r.utils.encode_range(i),n.length&&(o["!merges"]=n),o}if(c.type="binary",s.SheetNames=[],s.Sheets={},t.sheetOnly)n(d());else{if(t.sheets)for(var u in t.sheets)!0===t.sheets[u]?(s.SheetNames.push(u),s.Sheets[u]=d()):(s.SheetNames.push(u),a.commsSend(t.sheets[u],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:this.active,intercept:function(e){s.Sheets[u]=e}}));else s.SheetNames.push(i),s.Sheets[i]=d();t.documentProcessing&&(s=t.documentProcessing(s)),n(function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),o=0;o!=e.length;++o)n[o]=255&e.charCodeAt(o);return t}(r.write(s,c)),"application/octet-stream")}},html:function(e,t,n){this.modExists("export",!0)&&n(this.modules.export.generateHTMLTable(e),"text/html")}};class O extends s{static moduleName="download";static downloaders=L;constructor(e){super(e),this.registerTableOption("downloadEncoder",(function(e,t){return new Blob([e],{type:t})})),this.registerTableOption("downloadConfig",{}),this.registerTableOption("downloadRowRange","active"),this.registerColumnOption("download"),this.registerColumnOption("titleDownload")}initialize(){this.deprecatedOptionsCheck(),this.registerTableFunction("download",this.download.bind(this)),this.registerTableFunction("downloadToTab",this.downloadToTab.bind(this))}deprecatedOptionsCheck(){}downloadToTab(e,t,n,o){this.download(e,t,n,o,!0)}download(e,t,n,o,i){var r=!1;if("function"==typeof e?r=e:O.downloaders[e]?r=O.downloaders[e]:console.warn("Download Error - No such download type found: ",e),r){var s=this.generateExportList(o);r.call(this.table,s,n||{},function(n,o){i?!0===i?this.triggerDownload(n,o,e,t,!0):i(n):this.triggerDownload(n,o,e,t)}.bind(this))}}generateExportList(e){var t=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!1,e||this.table.options.downloadRowRange,"download"),n=this.table.options.groupHeaderDownload;return n&&!Array.isArray(n)&&(n=[n]),t.forEach((e=>{var t;"group"===e.type&&(t=e.columns[0],n&&n[e.indent]&&(t.value=n[e.indent](t.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)))})),t}triggerDownload(e,t,n,o,i){var r=document.createElement("a"),s=this.table.options.downloadEncoder(e,t);s&&(i?window.open(window.URL.createObjectURL(s)):(o=o||"Tabulator."+("function"==typeof n?"txt":n),navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(s,o):(r.setAttribute("href",window.URL.createObjectURL(s)),r.setAttribute("download",o),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r))),this.dispatchExternal("downloadComplete"))}commsReceived(e,t,n){"intercept"===t&&this.download(n.type,"",n.options,n.active,n.intercept)}}function D(e,t){var n=t.mask,o=void 0!==t.maskLetterChar?t.maskLetterChar:"A",i=void 0!==t.maskNumberChar?t.maskNumberChar:"9",r=void 0!==t.maskWildcardChar?t.maskWildcardChar:"*";function s(t){var a=n[t];void 0!==a&&a!==r&&a!==o&&a!==i&&(e.value=e.value+""+a,s(t+1))}e.addEventListener("keydown",(t=>{var s=e.value.length,a=t.key;if(t.keyCode>46&&!t.ctrlKey&&!t.metaKey){if(s>=n.length)return t.preventDefault(),t.stopPropagation(),!1;switch(n[s]){case o:if(a.toUpperCase()==a.toLowerCase())return t.preventDefault(),t.stopPropagation(),!1;break;case i:if(isNaN(a))return t.preventDefault(),t.stopPropagation(),!1;break;case r:break;default:if(a!==n[s])return t.preventDefault(),t.stopPropagation(),!1}}})),e.addEventListener("keyup",(n=>{n.keyCode>46&&t.maskAutoFill&&s(e.value.length)})),e.placeholder||(e.placeholder=n),t.maskAutoFill&&s(e.value.length)}let H=class{constructor(e,t,n,o,i,r){this.edit=e,this.table=e.table,this.cell=t,this.params=this._initializeParams(r),this.data=[],this.displayItems=[],this.currentItems=[],this.focusedItem=null,this.input=this._createInputElement(),this.listEl=this._createListElement(),this.initialValues=null,this.isFilter="header"===t.getType(),this.filterTimeout=null,this.filtered=!1,this.typing=!1,this.values=[],this.popup=null,this.listIteration=0,this.lastAction="",this.filterTerm="",this.blurable=!0,this.actions={success:o,cancel:i},this._deprecatedOptionsCheck(),this._initializeValue(),n(this._onRendered.bind(this))}_deprecatedOptionsCheck(){}_initializeValue(){var e=this.cell.getValue();void 0===e&&void 0!==this.params.defaultValue&&(e=this.params.defaultValue),this.initialValues=this.params.multiselect?e:[e],this.isFilter&&(this.input.value=this.initialValues?this.initialValues.join(","):"",this.headerFilterInitialListGen())}_onRendered(){var e=this.cell.getElement();function t(e){e.stopPropagation()}this.isFilter||(this.input.style.height="100%",this.input.focus({preventScroll:!0})),e.addEventListener("click",t),setTimeout((()=>{e.removeEventListener("click",t)}),1e3),this.input.addEventListener("mousedown",this._preventPopupBlur.bind(this))}_createListElement(){var e=document.createElement("div");return e.classList.add("tabulator-edit-list"),e.addEventListener("mousedown",this._preventBlur.bind(this)),e.addEventListener("keydown",this._inputKeyDown.bind(this)),e}_setListWidth(){var e=this.isFilter?this.input:this.cell.getElement();this.listEl.style.minWidth=e.offsetWidth+"px",this.params.maxWidth&&(!0===this.params.maxWidth?this.listEl.style.maxWidth=e.offsetWidth+"px":"number"==typeof this.params.maxWidth?this.listEl.style.maxWidth=this.params.maxWidth+"px":this.listEl.style.maxWidth=this.params.maxWidth)}_createInputElement(){var e=this.params.elementAttributes,t=document.createElement("input");if(t.setAttribute("type",this.params.clearable?"search":"text"),t.style.padding="4px",t.style.width="100%",t.style.boxSizing="border-box",this.params.autocomplete||(t.style.cursor="default",t.style.caretColor="transparent"),e&&"object"==typeof e)for(let n in e)"+"==n.charAt(0)?(n=n.slice(1),t.setAttribute(n,t.getAttribute(n)+e["+"+n])):t.setAttribute(n,e[n]);return this.params.mask&&D(t,this.params),this._bindInputEvents(t),t}_initializeParams(e){var t,n=["values","valuesURL","valuesLookup"];return(e=Object.assign({},e)).verticalNavigation=e.verticalNavigation||"editor",e.placeholderLoading=void 0===e.placeholderLoading?"Searching ...":e.placeholderLoading,e.placeholderEmpty=void 0===e.placeholderEmpty?"No Results Found":e.placeholderEmpty,e.filterDelay=void 0===e.filterDelay?300:e.filterDelay,e.emptyValue=Object.keys(e).includes("emptyValue")?e.emptyValue:"",(t=Object.keys(e).filter((e=>n.includes(e))).length)?t>1&&console.warn("list editor config error - only one of the values, valuesURL, or valuesLookup options can be set on the same editor"):console.warn("list editor config error - either the values, valuesURL, or valuesLookup option must be set"),e.autocomplete?e.multiselect&&(e.multiselect=!1,console.warn("list editor config error - multiselect option is not available when autocomplete is enabled")):(e.freetext&&(e.freetext=!1,console.warn("list editor config error - freetext option is only available when autocomplete is enabled")),e.filterFunc&&(e.filterFunc=!1,console.warn("list editor config error - filterFunc option is only available when autocomplete is enabled")),e.filterRemote&&(e.filterRemote=!1,console.warn("list editor config error - filterRemote option is only available when autocomplete is enabled")),e.mask&&(e.mask=!1,console.warn("list editor config error - mask option is only available when autocomplete is enabled")),e.allowEmpty&&(e.allowEmpty=!1,console.warn("list editor config error - allowEmpty option is only available when autocomplete is enabled")),e.listOnEmpty&&(e.listOnEmpty=!1,console.warn("list editor config error - listOnEmpty option is only available when autocomplete is enabled"))),e.filterRemote&&"function"!=typeof e.valuesLookup&&!e.valuesURL&&(e.filterRemote=!1,console.warn("list editor config error - filterRemote option should only be used when values list is populated from a remote source")),e}_bindInputEvents(e){e.addEventListener("focus",this._inputFocus.bind(this)),e.addEventListener("click",this._inputClick.bind(this)),e.addEventListener("blur",this._inputBlur.bind(this)),e.addEventListener("keydown",this._inputKeyDown.bind(this)),e.addEventListener("search",this._inputSearch.bind(this)),this.params.autocomplete&&e.addEventListener("keyup",this._inputKeyUp.bind(this))}_inputFocus(e){this.rebuildOptionsList()}_filter(){this.params.filterRemote?(clearTimeout(this.filterTimeout),this.filterTimeout=setTimeout((()=>{this.rebuildOptionsList()}),this.params.filterDelay)):this._filterList()}_inputClick(e){e.stopPropagation()}_inputBlur(e){this.blurable&&(this.popup?this.popup.hide():this._resolveValue(!0))}_inputSearch(){this._clearChoices()}_inputKeyDown(e){switch(e.keyCode){case 38:this._keyUp(e);break;case 40:this._keyDown(e);break;case 37:case 39:this._keySide(e);break;case 13:this._keyEnter();break;case 27:this._keyEsc();break;case 36:case 35:this._keyHomeEnd(e);break;case 9:this._keyTab(e);break;default:this._keySelectLetter(e)}}_inputKeyUp(e){switch(e.keyCode){case 38:case 37:case 39:case 40:case 13:case 27:break;default:this._keyAutoCompLetter(e)}}_preventPopupBlur(){this.popup&&this.popup.blockHide(),setTimeout((()=>{this.popup&&this.popup.restoreHide()}),10)}_preventBlur(){this.blurable=!1,setTimeout((()=>{this.blurable=!0}),10)}_keyTab(e){this.params.autocomplete&&"typing"===this.lastAction?this._resolveValue(!0):this.focusedItem&&this._chooseItem(this.focusedItem,!0)}_keyUp(e){var t=this.displayItems.indexOf(this.focusedItem);("editor"==this.params.verticalNavigation||"hybrid"==this.params.verticalNavigation&&t)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t>0&&this._focusItem(this.displayItems[t-1]))}_keyDown(e){var t=this.displayItems.indexOf(this.focusedItem);("editor"==this.params.verticalNavigation||"hybrid"==this.params.verticalNavigation&&t<this.displayItems.length-1)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t<this.displayItems.length-1&&(-1==t?this._focusItem(this.displayItems[0]):this._focusItem(this.displayItems[t+1])))}_keySide(e){this.params.autocomplete||(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}_keyEnter(e){this.params.autocomplete&&"typing"===this.lastAction?this._resolveValue(!0):this.focusedItem&&this._chooseItem(this.focusedItem)}_keyEsc(e){this._cancel()}_keyHomeEnd(e){this.params.autocomplete&&e.stopImmediatePropagation()}_keySelectLetter(e){this.params.autocomplete||(e.preventDefault(),e.keyCode>=38&&e.keyCode<=90&&this._scrollToValue(e.keyCode))}_keyAutoCompLetter(e){this._filter(),this.lastAction="typing",this.typing=!0}_scrollToValue(e){clearTimeout(this.filterTimeout);var t=String.fromCharCode(e).toLowerCase();this.filterTerm+=t.toLowerCase();var n=this.displayItems.find((e=>void 0!==e.label&&e.label.toLowerCase().startsWith(this.filterTerm)));n&&this._focusItem(n),this.filterTimeout=setTimeout((()=>{this.filterTerm=""}),800)}_focusItem(e){this.lastAction="focus",this.focusedItem&&this.focusedItem.element&&this.focusedItem.element.classList.remove("focused"),this.focusedItem=e,e&&e.element&&(e.element.classList.add("focused"),e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}))}headerFilterInitialListGen(){this._generateOptions(!0)}rebuildOptionsList(){this._generateOptions().then(this._sortOptions.bind(this)).then(this._buildList.bind(this)).then(this._showList.bind(this)).catch((e=>{Number.isInteger(e)||console.error("List generation error",e)}))}_filterList(){this._buildList(this._filterOptions()),this._showList()}_generateOptions(e){var t=[],n=++this.listIteration;return this.filtered=!1,this.params.values?t=this.params.values:this.params.valuesURL?t=this._ajaxRequest(this.params.valuesURL,this.input.value):"function"==typeof this.params.valuesLookup?t=this.params.valuesLookup(this.cell,this.input.value):this.params.valuesLookup&&(t=this._uniqueColumnValues(this.params.valuesLookupField)),t instanceof Promise?(e||this._addPlaceholder(this.params.placeholderLoading),t.then().then((e=>this.listIteration===n?this._parseList(e):Promise.reject(n)))):Promise.resolve(this._parseList(t))}_addPlaceholder(e){var t=document.createElement("div");"function"==typeof e&&(e=e(this.cell.getComponent(),this.listEl)),e&&(this._clearList(),e instanceof HTMLElement?t=e:(t.classList.add("tabulator-edit-list-placeholder"),t.innerHTML=e),this.listEl.appendChild(t),this._showList())}_ajaxRequest(e,t){return e=h(e,{},this.params.filterRemote?{term:t}:{}),fetch(e).then((e=>e.ok?e.json().catch((e=>(console.warn("List Ajax Load Error - Invalid JSON returned",e),Promise.reject(e)))):(console.error("List Ajax Load Error - Connection Error: "+e.status,e.statusText),Promise.reject(e)))).catch((e=>(console.error("List Ajax Load Error - Connection Error: ",e),Promise.reject(e))))}_uniqueColumnValues(e){var t,n={},o=this.table.getData(this.params.valuesLookup);return(t=e?this.table.columnManager.getColumnByField(e):this.cell.getColumn()._getSelf())?o.forEach((e=>{var o=t.getFieldValue(e);this._emptyValueCheck(o)||(this.params.multiselect&&Array.isArray(o)?o.forEach((e=>{this._emptyValueCheck(e)||(n[e]=!0)})):n[o]=!0)})):(console.warn("unable to find matching column to create select lookup list:",e),n=[]),Object.keys(n)}_emptyValueCheck(e){return null==e||""===e}_parseList(e){var t=[];return Array.isArray(e)||(e=Object.entries(e).map((([e,t])=>({label:t,value:e})))),e.forEach((e=>{"object"!=typeof e&&(e={label:e,value:e}),this._parseListItem(e,t,0)})),!this.currentItems.length&&this.params.freetext&&(this.input.value=this.initialValues,this.typing=!0,this.lastAction="typing"),this.data=t,t}_parseListItem(e,t,n){var o={};e.options?o=this._parseListGroup(e,n+1):(o={label:e.label,value:e.value,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1,selected:!1,visible:!0,level:n,original:e},this.initialValues&&this.initialValues.indexOf(e.value)>-1&&this._chooseItem(o,!0)),t.push(o)}_parseListGroup(e,t){var n={label:e.label,group:!0,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1,visible:!0,level:t,options:[],original:e};return e.options.forEach((e=>{this._parseListItem(e,n.options,t)})),n}_sortOptions(e){var t;return this.params.sort&&(t="function"==typeof this.params.sort?this.params.sort:this._defaultSortFunction.bind(this),this._sortGroup(t,e)),e}_sortGroup(e,t){t.sort(((t,n)=>e(t.label,n.label,t.value,n.value,t.original,n.original))),t.forEach((t=>{t.group&&this._sortGroup(e,t.options)}))}_defaultSortFunction(e,t){var n,o,i,r,s,a=0,l=/(\d+)|(\D+)/g,c=/\d/,d=0;if("desc"===this.params.sort&&([e,t]=[t,e]),e||0===e){if(t||0===t){if(isFinite(e)&&isFinite(t))return e-t;if((n=String(e).toLowerCase())===(o=String(t).toLowerCase()))return 0;if(!c.test(n)||!c.test(o))return n>o?1:-1;for(n=n.match(l),o=o.match(l),s=n.length>o.length?o.length:n.length;a<s;)if((i=n[a])!==(r=o[a++]))return isFinite(i)&&isFinite(r)?("0"===i.charAt(0)&&(i="."+i),"0"===r.charAt(0)&&(r="."+r),i-r):i>r?1:-1;return n.length>o.length}d=1}else d=t||0===t?-1:0;return d}_filterOptions(){var e=this.params.filterFunc||this._defaultFilterFunc,t=this.input.value;return t?(this.filtered=!0,this.data.forEach((n=>{this._filterItem(e,t,n)}))):this.filtered=!1,this.data}_filterItem(e,t,n){var o=!1;return n.group?(n.options.forEach((n=>{this._filterItem(e,t,n)&&(o=!0)})),n.visible=o):n.visible=e(t,n.label,n.value,n.original),n.visible}_defaultFilterFunc(e,t,n,o){return e=String(e).toLowerCase(),null!=t&&(String(t).toLowerCase().indexOf(e)>-1||String(n).toLowerCase().indexOf(e)>-1)}_clearList(){for(;this.listEl.firstChild;)this.listEl.removeChild(this.listEl.firstChild);this.displayItems=[]}_buildList(e){this._clearList(),e.forEach((e=>{this._buildItem(e)})),this.displayItems.length||this._addPlaceholder(this.params.placeholderEmpty)}_buildItem(e){var t,n=e.element;if(!this.filtered||e.visible){if(!n){if((n=document.createElement("div")).tabIndex=0,(t=this.params.itemFormatter?this.params.itemFormatter(e.label,e.value,e.original,n):e.label)instanceof HTMLElement?n.appendChild(t):n.innerHTML=t,e.group?n.classList.add("tabulator-edit-list-group"):n.classList.add("tabulator-edit-list-item"),n.classList.add("tabulator-edit-list-group-level-"+e.level),e.elementAttributes&&"object"==typeof e.elementAttributes)for(let t in e.elementAttributes)"+"==t.charAt(0)?(t=t.slice(1),n.setAttribute(t,this.input.getAttribute(t)+e.elementAttributes["+"+t])):n.setAttribute(t,e.elementAttributes[t]);e.group?n.addEventListener("click",this._groupClick.bind(this,e)):n.addEventListener("click",this._itemClick.bind(this,e)),n.addEventListener("mousedown",this._preventBlur.bind(this)),e.element=n}this._styleItem(e),this.listEl.appendChild(n),e.group?e.options.forEach((e=>{this._buildItem(e)})):this.displayItems.push(e)}}_showList(){var e=this.popup&&this.popup.isVisible();if(this.input.parentNode){if(this.params.autocomplete&&""===this.input.value&&!this.params.listOnEmpty)return void(this.popup&&this.popup.hide(!0));this._setListWidth(),this.popup||(this.popup=this.edit.popup(this.listEl)),this.popup.show(this.cell.getElement(),"bottom"),e||setTimeout((()=>{this.popup.hideOnBlur(this._resolveValue.bind(this,!0))}),10)}}_styleItem(e){e&&e.element&&(e.selected?e.element.classList.add("active"):e.element.classList.remove("active"))}_itemClick(e,t){t.stopPropagation(),this._chooseItem(e)}_groupClick(e,t){t.stopPropagation()}_cancel(){this.popup.hide(!0),this.actions.cancel()}_clearChoices(){this.typing=!0,this.currentItems.forEach((e=>{e.selected=!1,this._styleItem(e)})),this.currentItems=[],this.focusedItem=null}_chooseItem(e,t){var n;this.typing=!1,this.params.multiselect?((n=this.currentItems.indexOf(e))>-1?(this.currentItems.splice(n,1),e.selected=!1):(this.currentItems.push(e),e.selected=!0),this.input.value=this.currentItems.map((e=>e.label)).join(","),this._styleItem(e)):(this.currentItems=[e],e.selected=!0,this.input.value=e.label,this._styleItem(e),t||this._resolveValue()),this._focusItem(e)}_resolveValue(e){var t,n;if(this.popup&&this.popup.hide(!0),this.params.multiselect)t=this.currentItems.map((e=>e.value));else if(e&&this.params.autocomplete&&this.typing){if(!(this.params.freetext||this.params.allowEmpty&&""===this.input.value))return void this.actions.cancel();t=this.input.value}else t=this.currentItems[0]?this.currentItems[0].value:null==(n=Array.isArray(this.initialValues)?this.initialValues[0]:this.initialValues)||""===n?n:this.params.emptyValue;""===t&&(t=this.params.emptyValue),this.actions.success(t),this.isFilter&&(this.initialValues=t&&!Array.isArray(t)?[t]:t,this.currentItems=[])}};var I={input:function(e,t,n,o,i){var r=e.getValue(),s=document.createElement("input");if(s.setAttribute("type",i.search?"search":"text"),s.style.padding="4px",s.style.width="100%",s.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),s.setAttribute(e,s.getAttribute(e)+i.elementAttributes["+"+e])):s.setAttribute(e,i.elementAttributes[e]);function a(e){null==r&&""!==s.value||s.value!==r?n(s.value)&&(r=s.value):o()}return s.value=void 0!==r?r:"",t((function(){"cell"===e.getType()&&(s.focus({preventScroll:!0}),s.style.height="100%",i.selectContents&&s.select())})),s.addEventListener("change",a),s.addEventListener("blur",a),s.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:a();break;case 27:o();break;case 35:case 36:e.stopPropagation()}})),i.mask&&D(s,i),s},textarea:function(e,t,n,o,i){var r=e.getValue(),s=i.verticalNavigation||"hybrid",a=String(null!=r?r:""),l=document.createElement("textarea"),c=0;if(l.style.display="block",l.style.padding="2px",l.style.height="100%",l.style.width="100%",l.style.boxSizing="border-box",l.style.whiteSpace="pre-wrap",l.style.resize="none",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),l.setAttribute(e,l.getAttribute(e)+i.elementAttributes["+"+e])):l.setAttribute(e,i.elementAttributes[e]);function d(t){null==r&&""!==l.value||l.value!==r?(n(l.value)&&(r=l.value),setTimeout((function(){e.getRow().normalizeHeight()}),300)):o()}return l.value=a,t((function(){"cell"===e.getType()&&(l.focus({preventScroll:!0}),l.style.height="100%",l.scrollHeight,l.style.height=l.scrollHeight+"px",e.getRow().normalizeHeight(),i.selectContents&&l.select())})),l.addEventListener("change",d),l.addEventListener("blur",d),l.addEventListener("keyup",(function(){l.style.height="";var t=l.scrollHeight;l.style.height=t+"px",t!=c&&(c=t,e.getRow().normalizeHeight())})),l.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:e.shiftKey&&i.shiftEnterSubmit&&d();break;case 27:o();break;case 38:("editor"==s||"hybrid"==s&&l.selectionStart)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 40:("editor"==s||"hybrid"==s&&l.selectionStart!==l.value.length)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation()}})),i.mask&&D(l,i),l},number:function(e,t,n,o,i){var r=e.getValue(),s=i.verticalNavigation||"editor",a=document.createElement("input");if(a.setAttribute("type","number"),void 0!==i.max&&a.setAttribute("max",i.max),void 0!==i.min&&a.setAttribute("min",i.min),void 0!==i.step&&a.setAttribute("step",i.step),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),a.setAttribute(e,a.getAttribute(e)+i.elementAttributes["+"+e])):a.setAttribute(e,i.elementAttributes[e]);a.value=r;var l=function(e){c()};function c(){var e=a.value;isNaN(e)||""===e||(e=Number(e)),e!==r?n(e)&&(r=e):o()}return t((function(){"cell"===e.getType()&&(a.removeEventListener("blur",l),a.focus({preventScroll:!0}),a.style.height="100%",a.addEventListener("blur",l),i.selectContents&&a.select())})),a.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:c();break;case 27:o();break;case 38:case 40:"editor"==s&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation()}})),i.mask&&D(a,i),a},range:function(e,t,n,o,i){var r=e.getValue(),s=document.createElement("input");if(s.setAttribute("type","range"),void 0!==i.max&&s.setAttribute("max",i.max),void 0!==i.min&&s.setAttribute("min",i.min),void 0!==i.step&&s.setAttribute("step",i.step),s.style.padding="4px",s.style.width="100%",s.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),s.setAttribute(e,s.getAttribute(e)+i.elementAttributes["+"+e])):s.setAttribute(e,i.elementAttributes[e]);function a(){var e=s.value;isNaN(e)||""===e||(e=Number(e)),e!=r?n(e)&&(r=e):o()}return s.value=r,t((function(){"cell"===e.getType()&&(s.focus({preventScroll:!0}),s.style.height="100%")})),s.addEventListener("blur",(function(e){a()})),s.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:a();break;case 27:o()}})),s},date:function(e,t,n,o,i){var r=i.format,s=i.verticalNavigation||"editor",a=r?window.DateTime||luxon.DateTime:null,l=e.getValue(),c=document.createElement("input");function d(e){return(a.isDateTime(e)?e:"iso"===r?a.fromISO(String(e)):a.fromFormat(String(e),r)).toFormat("yyyy-MM-dd")}if(c.type="date",c.style.padding="4px",c.style.width="100%",c.style.boxSizing="border-box",i.max&&c.setAttribute("max",r?d(i.max):i.max),i.min&&c.setAttribute("min",r?d(i.min):i.min),i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),c.setAttribute(e,c.getAttribute(e)+i.elementAttributes["+"+e])):c.setAttribute(e,i.elementAttributes[e]);function u(){var e,t=c.value;if(null==l&&""!==t||t!==l){if(t&&r)switch(e=a.fromFormat(String(t),"yyyy-MM-dd"),r){case!0:t=e;break;case"iso":t=e.toISO();break;default:t=e.toFormat(r)}n(t)&&(l=c.value)}else o()}return l=void 0!==l?l:"",r&&(a?l=d(l):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),c.value=l,t((function(){"cell"===e.getType()&&(c.focus({preventScroll:!0}),c.style.height="100%",i.selectContents&&c.select())})),c.addEventListener("blur",(function(e){(e.relatedTarget||e.rangeParent||e.explicitOriginalTarget!==c)&&u()})),c.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:u();break;case 27:o();break;case 35:case 36:e.stopPropagation();break;case 38:case 40:"editor"==s&&(e.stopImmediatePropagation(),e.stopPropagation())}})),c},time:function(e,t,n,o,i){var r,s=i.format,a=i.verticalNavigation||"editor",l=s?window.DateTime||luxon.DateTime:null,c=e.getValue(),d=document.createElement("input");if(d.type="time",d.style.padding="4px",d.style.width="100%",d.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),d.setAttribute(e,d.getAttribute(e)+i.elementAttributes["+"+e])):d.setAttribute(e,i.elementAttributes[e]);function u(){var e,t=d.value;if(null==c&&""!==t||t!==c){if(t&&s)switch(e=l.fromFormat(String(t),"hh:mm"),s){case!0:t=e;break;case"iso":t=e.toISO();break;default:t=e.toFormat(s)}n(t)&&(c=d.value)}else o()}return c=void 0!==c?c:"",s&&(l?(r=l.isDateTime(c)?c:"iso"===s?l.fromISO(String(c)):l.fromFormat(String(c),s),c=r.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),d.value=c,t((function(){"cell"==e.getType()&&(d.focus({preventScroll:!0}),d.style.height="100%",i.selectContents&&d.select())})),d.addEventListener("blur",(function(e){(e.relatedTarget||e.rangeParent||e.explicitOriginalTarget!==d)&&u()})),d.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:u();break;case 27:o();break;case 35:case 36:e.stopPropagation();break;case 38:case 40:"editor"==a&&(e.stopImmediatePropagation(),e.stopPropagation())}})),d},datetime:function(e,t,n,o,i){var r,s=i.format,a=i.verticalNavigation||"editor",l=s?this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"):null,c=e.getValue(),d=document.createElement("input");if(d.type="datetime-local",d.style.padding="4px",d.style.width="100%",d.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),d.setAttribute(e,d.getAttribute(e)+i.elementAttributes["+"+e])):d.setAttribute(e,i.elementAttributes[e]);function u(){var e,t=d.value;if(null==c&&""!==t||t!==c){if(t&&s)switch(e=l.fromISO(String(t)),s){case!0:t=e;break;case"iso":t=e.toISO();break;default:t=e.toFormat(s)}n(t)&&(c=d.value)}else o()}return c=void 0!==c?c:"",s&&(l?(r=l.isDateTime(c)?c:"iso"===s?l.fromISO(String(c)):l.fromFormat(String(c),s),c=r.toFormat("yyyy-MM-dd")+"T"+r.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),d.value=c,t((function(){"cell"===e.getType()&&(d.focus({preventScroll:!0}),d.style.height="100%",i.selectContents&&d.select())})),d.addEventListener("blur",(function(e){(e.relatedTarget||e.rangeParent||e.explicitOriginalTarget!==d)&&u()})),d.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:u();break;case 27:o();break;case 35:case 36:e.stopPropagation();break;case 38:case 40:"editor"==a&&(e.stopImmediatePropagation(),e.stopPropagation())}})),d},list:function(e,t,n,o,i){return new H(this,e,t,n,o,i).input},star:function(e,t,n,o,i){var r=this,s=e.getElement(),a=e.getValue(),l=s.getElementsByTagName("svg").length||5,c=s.getElementsByTagName("svg")[0]?s.getElementsByTagName("svg")[0].getAttribute("width"):14,d=[],u=document.createElement("div"),h=document.createElementNS("http://www.w3.org/2000/svg","svg");function m(e){d.forEach((function(t,n){n<e?("ie"==r.table.browser?t.setAttribute("class","tabulator-star-active"):t.classList.replace("tabulator-star-inactive","tabulator-star-active"),t.innerHTML='<polygon fill="#488CE9" stroke="#014AAE" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>'):("ie"==r.table.browser?t.setAttribute("class","tabulator-star-inactive"):t.classList.replace("tabulator-star-active","tabulator-star-inactive"),t.innerHTML='<polygon fill="#010155" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>')}))}function p(e){var t=document.createElement("span"),o=h.cloneNode(!0);d.push(o),t.addEventListener("mouseenter",(function(t){t.stopPropagation(),t.stopImmediatePropagation(),m(e)})),t.addEventListener("mousemove",(function(e){e.stopPropagation(),e.stopImmediatePropagation()})),t.addEventListener("click",(function(t){t.stopPropagation(),t.stopImmediatePropagation(),n(e),s.blur()})),t.appendChild(o),u.appendChild(t)}function f(e){a=e,m(e)}if(s.style.whiteSpace="nowrap",s.style.overflow="hidden",s.style.textOverflow="ellipsis",u.style.verticalAlign="middle",u.style.display="inline-block",u.style.padding="4px",h.setAttribute("width",c),h.setAttribute("height",c),h.setAttribute("viewBox","0 0 512 512"),h.setAttribute("xml:space","preserve"),h.style.padding="0 1px",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),u.setAttribute(e,u.getAttribute(e)+i.elementAttributes["+"+e])):u.setAttribute(e,i.elementAttributes[e]);for(var g=1;g<=l;g++)p(g);return m(a=Math.min(parseInt(a),l)),u.addEventListener("mousemove",(function(e){m(0)})),u.addEventListener("click",(function(e){n(0)})),s.addEventListener("blur",(function(e){o()})),s.addEventListener("keydown",(function(e){switch(e.keyCode){case 39:f(a+1);break;case 37:f(a-1);break;case 13:n(a);break;case 27:o()}})),u},progress:function(e,t,n,o,i){var r,s,a=e.getElement(),l=void 0===i.max?a.getElementsByTagName("div")[0]&&a.getElementsByTagName("div")[0].getAttribute("max")||100:i.max,c=void 0===i.min?a.getElementsByTagName("div")[0]&&a.getElementsByTagName("div")[0].getAttribute("min")||0:i.min,d=(l-c)/100,u=e.getValue()||0,h=document.createElement("div"),m=document.createElement("div");function p(){var e=window.getComputedStyle(a,null),t=d*Math.round(m.offsetWidth/((a.clientWidth-parseInt(e.getPropertyValue("padding-left"))-parseInt(e.getPropertyValue("padding-right")))/100))+c;n(t),a.setAttribute("aria-valuenow",t),a.setAttribute("aria-label",u)}if(h.style.position="absolute",h.style.right="0",h.style.top="0",h.style.bottom="0",h.style.width="5px",h.classList.add("tabulator-progress-handle"),m.style.display="inline-block",m.style.position="relative",m.style.height="100%",m.style.backgroundColor="#488CE9",m.style.maxWidth="100%",m.style.minWidth="0%",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),m.setAttribute(e,m.getAttribute(e)+i.elementAttributes["+"+e])):m.setAttribute(e,i.elementAttributes[e]);return a.style.padding="4px 4px",u=Math.min(parseFloat(u),l),u=Math.max(parseFloat(u),c),u=Math.round((u-c)/d),m.style.width=u+"%",a.setAttribute("aria-valuemin",c),a.setAttribute("aria-valuemax",l),m.appendChild(h),h.addEventListener("mousedown",(function(e){r=e.screenX,s=m.offsetWidth})),h.addEventListener("mouseover",(function(){h.style.cursor="ew-resize"})),a.addEventListener("mousemove",(function(e){r&&(m.style.width=s+e.screenX-r+"px")})),a.addEventListener("mouseup",(function(e){r&&(e.stopPropagation(),e.stopImmediatePropagation(),r=!1,s=!1,p())})),a.addEventListener("keydown",(function(e){switch(e.keyCode){case 39:e.preventDefault(),m.style.width=m.clientWidth+a.clientWidth/100+"px";break;case 37:e.preventDefault(),m.style.width=m.clientWidth-a.clientWidth/100+"px";break;case 9:case 13:p();break;case 27:o()}})),a.addEventListener("blur",(function(){o()})),m},tickCross:function(e,t,n,o,i){var r=e.getValue(),s=document.createElement("input"),a=i.tristate,l=void 0===i.indeterminateValue?null:i.indeterminateValue,c=!1,d=Object.keys(i).includes("trueValue"),u=Object.keys(i).includes("falseValue");if(s.setAttribute("type","checkbox"),s.style.marginTop="5px",s.style.boxSizing="border-box",i.elementAttributes&&"object"==typeof i.elementAttributes)for(let e in i.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),s.setAttribute(e,s.getAttribute(e)+i.elementAttributes["+"+e])):s.setAttribute(e,i.elementAttributes[e]);function h(e){var t=s.checked;return d&&t?t=i.trueValue:u&&!t&&(t=i.falseValue),a?e?c?l:t:s.checked&&!c?(s.checked=!1,s.indeterminate=!0,c=!0,l):(c=!1,t):t}return s.value=r,!a||void 0!==r&&r!==l&&""!==r||(c=!0,s.indeterminate=!0),"firefox"!=this.table.browser&&"safari"!=this.table.browser&&t((function(){"cell"===e.getType()&&s.focus({preventScroll:!0})})),s.checked=d?r===i.trueValue:!0===r||"true"===r||"True"===r||1===r,s.addEventListener("change",(function(e){n(h())})),s.addEventListener("blur",(function(e){n(h(!0))})),s.addEventListener("keydown",(function(e){13==e.keyCode&&n(h()),27==e.keyCode&&o()})),s},adaptable:function(e,t,n,o,i){var r,s,a=e._getSelf().column;return r=i.editorLookup?i.editorLookup(e):function(e){var t=e.getValue(),n="input";switch(typeof t){case"number":n="number";break;case"boolean":n="tickCross";break;case"string":t.includes("\n")&&(n="textarea")}return n}(e),i.paramsLookup&&(s="function"==typeof i.paramsLookup?i.paramsLookup(r,e):i.paramsLookup[r]),this.table.modules.edit.lookupEditor(r,a).call(this,e,t,n,o,s||{})}};class P extends s{static moduleName="edit";static editors=I;constructor(e){super(e),this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[],this.convertEmptyValues=!1,this.editors=P.editors,this.registerTableOption("editTriggerEvent","focus"),this.registerTableOption("editorEmptyValue"),this.registerTableOption("editorEmptyValueFunc",this.emptyValueCheck.bind(this)),this.registerColumnOption("editable"),this.registerColumnOption("editor"),this.registerColumnOption("editorParams"),this.registerColumnOption("editorEmptyValue"),this.registerColumnOption("editorEmptyValueFunc"),this.registerColumnOption("cellEditing"),this.registerColumnOption("cellEdited"),this.registerColumnOption("cellEditCancelled"),this.registerTableFunction("getEditedCells",this.getEditedCells.bind(this)),this.registerTableFunction("clearCellEdited",this.clearCellEdited.bind(this)),this.registerTableFunction("navigatePrev",this.navigatePrev.bind(this)),this.registerTableFunction("navigateNext",this.navigateNext.bind(this)),this.registerTableFunction("navigateLeft",this.navigateLeft.bind(this)),this.registerTableFunction("navigateRight",this.navigateRight.bind(this)),this.registerTableFunction("navigateUp",this.navigateUp.bind(this)),this.registerTableFunction("navigateDown",this.navigateDown.bind(this)),this.registerComponentFunction("cell","isEdited",this.cellIsEdited.bind(this)),this.registerComponentFunction("cell","clearEdited",this.clearEdited.bind(this)),this.registerComponentFunction("cell","edit",this.editCell.bind(this)),this.registerComponentFunction("cell","cancelEdit",this.cellCancelEdit.bind(this)),this.registerComponentFunction("cell","navigatePrev",this.navigatePrev.bind(this)),this.registerComponentFunction("cell","navigateNext",this.navigateNext.bind(this)),this.registerComponentFunction("cell","navigateLeft",this.navigateLeft.bind(this)),this.registerComponentFunction("cell","navigateRight",this.navigateRight.bind(this)),this.registerComponentFunction("cell","navigateUp",this.navigateUp.bind(this)),this.registerComponentFunction("cell","navigateDown",this.navigateDown.bind(this))}initialize(){this.subscribe("cell-init",this.bindEditor.bind(this)),this.subscribe("cell-delete",this.clearEdited.bind(this)),this.subscribe("cell-value-changed",this.updateCellClass.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("column-delete",this.columnDeleteCheck.bind(this)),this.subscribe("row-deleting",this.rowDeleteCheck.bind(this)),this.subscribe("row-layout",this.rowEditableCheck.bind(this)),this.subscribe("data-refreshing",this.cancelEdit.bind(this)),this.subscribe("clipboard-paste",this.pasteBlocker.bind(this)),this.subscribe("keybinding-nav-prev",this.navigatePrev.bind(this,void 0)),this.subscribe("keybinding-nav-next",this.keybindingNavigateNext.bind(this)),this.subscribe("keybinding-nav-up",this.navigateUp.bind(this,void 0)),this.subscribe("keybinding-nav-down",this.navigateDown.bind(this,void 0)),Object.keys(this.table.options).includes("editorEmptyValue")&&(this.convertEmptyValues=!0)}pasteBlocker(e){if(this.currentCell)return!0}keybindingNavigateNext(e){var t=this.currentCell,n=this.options("tabEndNewRow");t&&(this.navigateNext(t,e)||n&&(t.getElement().firstChild.blur(),this.invalidEdit||(n=!0===n?this.table.addRow({}):"function"==typeof n?this.table.addRow(n(t.row.getComponent())):this.table.addRow(Object.assign({},n))).then((()=>{setTimeout((()=>{t.getComponent().navigateNext()}))}))))}cellIsEdited(e){return!!e.modules.edit&&e.modules.edit.edited}cellCancelEdit(e){e===this.currentCell?this.table.modules.edit.cancelEdit():console.warn("Cancel Editor Error - This cell is not currently being edited ")}updateCellClass(e){this.allowEdit(e)?e.getElement().classList.add("tabulator-editable"):e.getElement().classList.remove("tabulator-editable")}clearCellEdited(e){e||(e=this.table.modules.edit.getEditedCells()),Array.isArray(e)||(e=[e]),e.forEach((e=>{this.table.modules.edit.clearEdited(e._getSelf())}))}navigatePrev(e=this.currentCell,t){var n,o;if(e){if(t&&t.preventDefault(),n=this.navigateLeft())return!0;if((o=this.table.rowManager.prevDisplayRow(e.row,!0))&&(n=this.findPrevEditableCell(o,o.cells.length)))return n.getComponent().edit(),!0}return!1}navigateNext(e=this.currentCell,t){var n,o;if(e){if(t&&t.preventDefault(),n=this.navigateRight())return!0;if((o=this.table.rowManager.nextDisplayRow(e.row,!0))&&(n=this.findNextEditableCell(o,-1)))return n.getComponent().edit(),!0}return!1}navigateLeft(e=this.currentCell,t){var n,o;return!!(e&&(t&&t.preventDefault(),n=e.getIndex(),o=this.findPrevEditableCell(e.row,n)))&&(o.getComponent().edit(),!0)}navigateRight(e=this.currentCell,t){var n,o;return!!(e&&(t&&t.preventDefault(),n=e.getIndex(),o=this.findNextEditableCell(e.row,n)))&&(o.getComponent().edit(),!0)}navigateUp(e=this.currentCell,t){var n,o;return!!(e&&(t&&t.preventDefault(),n=e.getIndex(),o=this.table.rowManager.prevDisplayRow(e.row,!0)))&&(o.cells[n].getComponent().edit(),!0)}navigateDown(e=this.currentCell,t){var n,o;return!!(e&&(t&&t.preventDefault(),n=e.getIndex(),o=this.table.rowManager.nextDisplayRow(e.row,!0)))&&(o.cells[n].getComponent().edit(),!0)}findNextEditableCell(e,t){var n=!1;if(t<e.cells.length-1)for(var o=t+1;o<e.cells.length;o++){let t=e.cells[o];if(t.column.modules.edit&&i.elVisible(t.getElement())&&this.allowEdit(t)){n=t;break}}return n}findPrevEditableCell(e,t){var n=!1;if(t>0)for(var o=t-1;o>=0;o--){let t=e.cells[o];if(t.column.modules.edit&&i.elVisible(t.getElement())&&this.allowEdit(t)){n=t;break}}return n}initializeColumnCheck(e){void 0!==e.definition.editor&&this.initializeColumn(e)}columnDeleteCheck(e){this.currentCell&&this.currentCell.column===e&&this.cancelEdit()}rowDeleteCheck(e){this.currentCell&&this.currentCell.row===e&&this.cancelEdit()}rowEditableCheck(e){e.getCells().forEach((e=>{e.column.modules.edit&&"function"==typeof e.column.modules.edit.check&&this.updateCellClass(e)}))}initializeColumn(e){var t=Object.keys(e.definition).includes("editorEmptyValue"),n={editor:!1,blocked:!1,check:e.definition.editable,params:e.definition.editorParams||{},convertEmptyValues:t,editorEmptyValue:e.definition.editorEmptyValue,editorEmptyValueFunc:e.definition.editorEmptyValueFunc};n.editor=this.lookupEditor(e.definition.editor,e),n.editor&&(e.modules.edit=n)}lookupEditor(e,t){var n;switch(typeof e){case"string":this.editors[e]?n=this.editors[e]:console.warn("Editor Error - No such editor found: ",e);break;case"function":n=e;break;case"boolean":!0===e&&("function"!=typeof t.definition.formatter?n=this.editors[t.definition.formatter]?this.editors[t.definition.formatter]:this.editors.input:console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",t.definition.formatter))}return n}getCurrentCell(){return!!this.currentCell&&this.currentCell.getComponent()}clearEditor(e){var t,n=this.currentCell;if(this.invalidEdit=!1,n){for(this.currentCell=!1,t=n.getElement(),this.dispatch("edit-editor-clear",n,e),t.classList.remove("tabulator-editing");t.firstChild;)t.removeChild(t.firstChild);n.row.getElement().classList.remove("tabulator-editing"),n.table.element.classList.remove("tabulator-editing")}}cancelEdit(){if(this.currentCell){var e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(!0),e.setValueActual(e.getValue()),e.cellRendered(),("textarea"==e.column.definition.editor||e.column.definition.variableHeight)&&e.row.normalizeHeight(!0),e.column.definition.cellEditCancelled&&e.column.definition.cellEditCancelled.call(this.table,t),this.dispatch("edit-cancelled",e),this.dispatchExternal("cellEditCancelled",t)}}bindEditor(e){if(e.column.modules.edit){var t=this,n=e.getElement(!0);this.updateCellClass(e),n.setAttribute("tabindex",0),n.addEventListener("mousedown",(function(e){2===e.button?e.preventDefault():t.mouseClick=!0})),"dblclick"===this.options("editTriggerEvent")&&n.addEventListener("dblclick",(function(o){n.classList.contains("tabulator-editing")||(n.focus({preventScroll:!0}),t.edit(e,o,!1))})),"focus"!==this.options("editTriggerEvent")&&"click"!==this.options("editTriggerEvent")||n.addEventListener("click",(function(o){n.classList.contains("tabulator-editing")||(n.focus({preventScroll:!0}),t.edit(e,o,!1))})),"focus"===this.options("editTriggerEvent")&&n.addEventListener("focus",(function(n){t.recursionBlock||t.edit(e,n,!1)}))}}focusCellNoEvent(e,t){this.recursionBlock=!0,t&&"ie"===this.table.browser||e.getElement().focus({preventScroll:!0}),this.recursionBlock=!1}editCell(e,t){this.focusCellNoEvent(e),this.edit(e,!1,t)}focusScrollAdjust(e){if("virtual"==this.table.rowManager.getRenderMode()){var t=this.table.rowManager.element.scrollTop,n=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,o=e.row.getElement();o.offsetTop<t?this.table.rowManager.element.scrollTop-=t-o.offsetTop:o.offsetTop+o.offsetHeight>n&&(this.table.rowManager.element.scrollTop+=o.offsetTop+o.offsetHeight-n);var i=this.table.rowManager.element.scrollLeft,r=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,s=e.getElement();this.table.modExists("frozenColumns")&&(i+=parseInt(this.table.modules.frozenColumns.leftMargin||0),r-=parseInt(this.table.modules.frozenColumns.rightMargin||0)),"virtual"===this.table.options.renderHorizontal&&(i-=parseInt(this.table.columnManager.renderer.vDomPadLeft),r-=parseInt(this.table.columnManager.renderer.vDomPadLeft)),s.offsetLeft<i?this.table.rowManager.element.scrollLeft-=i-s.offsetLeft:s.offsetLeft+s.offsetWidth>r&&(this.table.rowManager.element.scrollLeft+=s.offsetLeft+s.offsetWidth-r)}}allowEdit(e){var t=!!e.column.modules.edit;if(e.column.modules.edit)switch(typeof e.column.modules.edit.check){case"function":e.row.initialized&&(t=e.column.modules.edit.check(e.getComponent()));break;case"string":t=!!e.row.data[e.column.modules.edit.check];break;case"boolean":t=e.column.modules.edit.check}return t}edit(e,t,n){var o,i,r,s=this,a=function(){},l=e.getElement(),c=!1;if(!this.currentCell){if(e.column.modules.edit.blocked)return this.mouseClick=!1,this.blur(l),!1;if(t&&t.stopPropagation(),this.allowEdit(e)||n){if(s.cancelEdit(),s.currentCell=e,this.focusScrollAdjust(e),i=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.definition.cellClick&&e.column.definition.cellClick.call(this.table,t,i)),e.column.definition.cellEditing&&e.column.definition.cellEditing.call(this.table,i),this.dispatch("cell-editing",e),this.dispatchExternal("cellEditing",i),r="function"==typeof e.column.modules.edit.params?e.column.modules.edit.params(i):e.column.modules.edit.params,o=e.column.modules.edit.editor.call(s,i,(function(e){a=e}),(function(t){if(s.currentCell===e&&!c){var n=s.chain("edit-success",[e,t],!0,!0);return!0===n||"highlight"===s.table.options.validationMode?(c=!0,s.clearEditor(),e.modules.edit||(e.modules.edit={}),e.modules.edit.edited=!0,-1==s.editedCells.indexOf(e)&&s.editedCells.push(e),t=s.transformEmptyValues(t,e),e.setValue(t,!0),!0===n):(c=!0,s.invalidEdit=!0,s.focusCellNoEvent(e,!0),a(),setTimeout((()=>{c=!1}),10),!1)}}),(function(){s.currentCell!==e||c||s.cancelEdit()}),r),!this.currentCell||!1===o)return this.blur(l),!1;if(!(o instanceof Node))return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",o),this.blur(l),!1;for(l.classList.add("tabulator-editing"),e.row.getElement().classList.add("tabulator-editing"),e.table.element.classList.add("tabulator-editing");l.firstChild;)l.removeChild(l.firstChild);l.appendChild(o),a();for(var d=l.children,u=0;u<d.length;u++)d[u].addEventListener("click",(function(e){e.stopPropagation()}));return!0}return this.mouseClick=!1,this.blur(l),!1}this.invalidEdit||this.currentCell===e||this.cancelEdit()}emptyValueCheck(e){return""===e||null==e}transformEmptyValues(e,t){var n,o=t.column.modules.edit;return(o.convertEmptyValues||this.convertEmptyValues)&&(n=o.editorEmptyValueFunc||this.options("editorEmptyValueFunc"))&&n(e)&&(e=o.convertEmptyValues?o.editorEmptyValue:this.options("editorEmptyValue")),e}blur(e){this.confirm("edit-blur",[e])||e.blur()}getEditedCells(){var e=[];return this.editedCells.forEach((t=>{e.push(t.getComponent())})),e}clearEdited(e){var t;e.modules.edit&&e.modules.edit.edited&&(e.modules.edit.edited=!1,this.dispatch("edit-edited-clear",e)),(t=this.editedCells.indexOf(e))>-1&&this.editedCells.splice(t,1)}}class N{constructor(e,t,n,o){this.type=e,this.columns=t,this.component=n||!1,this.indent=o||0}}class F{constructor(e,t,n,o,i){this.value=e,this.component=t||!1,this.width=n,this.height=o,this.depth=i}}var z={},j={visible:function(){return this.rowManager.getVisibleRows(!1,!0)},all:function(){return this.rowManager.rows},selected:function(){return this.modules.selectRow.selectedRows},active:function(){return this.options.pagination?this.rowManager.getDisplayRows(this.rowManager.displayRows.length-2):this.rowManager.getDisplayRows()}};class Y extends s{static moduleName="export";static columnLookups=z;static rowLookups=j;constructor(e){super(e),this.config={},this.cloneTableStyle=!0,this.colVisProp="",this.colVisPropAttach="",this.registerTableOption("htmlOutputConfig",!1),this.registerColumnOption("htmlOutput"),this.registerColumnOption("titleHtmlOutput")}initialize(){this.registerTableFunction("getHtml",this.getHtml.bind(this))}generateExportList(e,t,n,o){var i,r,s,a;return this.cloneTableStyle=t,this.config=e||{},this.colVisProp=o,this.colVisPropAttach=this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1),(a=Y.columnLookups[n])&&(s=(s=a.call(this.table)).filter((e=>this.columnVisCheck(e)))),i=!1!==this.config.columnHeaders?this.headersToExportRows(this.generateColumnGroupHeaders(s)):[],s&&(s=s.map((e=>e.getComponent()))),r=this.bodyToExportRows(this.rowLookup(n),s),i.concat(r)}generateTable(e,t,n,o){var i=this.generateExportList(e,t,n,o);return this.generateTableElement(i)}rowLookup(e){var t,n=[];return"function"==typeof e?e.call(this.table).forEach((e=>{(e=this.table.rowManager.findRow(e))&&n.push(e)})):(t=Y.rowLookups[e]||Y.rowLookups.active,n=t.call(this.table)),Object.assign([],n)}generateColumnGroupHeaders(e){var t=[];return e||(e=!1!==this.config.columnGroups?this.table.columnManager.columns:this.table.columnManager.columnsByIndex),e.forEach((e=>{var n=this.processColumnGroup(e);n&&t.push(n)})),t}processColumnGroup(e){var t=e.columns,n=0,o={title:e.definition["title"+this.colVisPropAttach]||e.definition.title,column:e,depth:1};if(t.length){if(o.subGroups=[],o.width=0,t.forEach((e=>{var t=this.processColumnGroup(e);t&&(o.width+=t.width,o.subGroups.push(t),t.depth>n&&(n=t.depth))})),o.depth+=n,!o.width)return!1}else{if(!this.columnVisCheck(e))return!1;o.width=1}return o}columnVisCheck(e){var t=e.definition[this.colVisProp];return(!1!==this.config.rowHeaders||!e.isRowHeader)&&("function"==typeof t&&(t=t.call(this.table,e.getComponent())),!1===t||!0===t?t:e.visible&&e.field)}headersToExportRows(e){var t=[],n=0,o=[];function i(e,o){var r=n-o;if(void 0===t[o]&&(t[o]=[]),e.height=e.subGroups?1:r-e.depth+1,t[o].push(e),e.height>1)for(let n=1;n<e.height;n++)void 0===t[o+n]&&(t[o+n]=[]),t[o+n].push(!1);if(e.width>1)for(let n=1;n<e.width;n++)t[o].push(!1);e.subGroups&&e.subGroups.forEach((function(e){i(e,o+1)}))}return e.forEach((function(e){e.depth>n&&(n=e.depth)})),e.forEach((function(e){i(e,0)})),t.forEach((e=>{var t=[];e.forEach((e=>{if(e){let n=void 0===e.title?"":e.title;t.push(new F(n,e.column.getComponent(),e.width,e.height,e.depth))}else t.push(null)})),o.push(new N("header",t))})),o}bodyToExportRows(e,t=[]){var n=[];return 0===t.length&&this.table.columnManager.columnsByIndex.forEach((e=>{this.columnVisCheck(e)&&t.push(e.getComponent())})),!1!==this.config.columnCalcs&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&e.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&e.push(this.table.modules.columnCalcs.botRow)),(e=e.filter((e=>{switch(e.type){case"group":return!1!==this.config.rowGroups;case"calc":return!1!==this.config.columnCalcs;case"row":return!(this.table.options.dataTree&&!1===this.config.dataTree&&e.modules.dataTree.parent)}return!0}))).forEach(((e,o)=>{var i=e.getData(this.colVisProp),r=[],s=0;switch(e.type){case"group":s=e.level,r.push(new F(e.key,e.getComponent(),t.length,1));break;case"calc":case"row":t.forEach((e=>{r.push(new F(e._column.getFieldValue(i),e,1,1))})),this.table.options.dataTree&&!1!==this.config.dataTree&&(s=e.modules.dataTree.index)}n.push(new N(e.type,r,e.getComponent(),s))})),n}generateTableElement(e){var t=document.createElement("table"),n=document.createElement("thead"),o=document.createElement("tbody"),i=this.lookupTableStyles(),r=this.table.options["rowFormatter"+this.colVisPropAttach],s={};return s.rowFormatter=null!==r?r:this.table.options.rowFormatter,this.table.options.dataTree&&!1!==this.config.dataTree&&this.table.modExists("columnCalcs")&&(s.treeElementField=this.table.modules.dataTree.elementField),s.groupHeader=this.table.options["groupHeader"+this.colVisPropAttach],s.groupHeader&&!Array.isArray(s.groupHeader)&&(s.groupHeader=[s.groupHeader]),t.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),n,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),e.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),e.forEach(((e,t)=>{let r;switch(e.type){case"header":n.appendChild(this.generateHeaderElement(e,s,i));break;case"group":o.appendChild(this.generateGroupElement(e,s,i));break;case"calc":o.appendChild(this.generateCalcElement(e,s,i));break;case"row":r=this.generateRowElement(e,s,i),this.mapElementStyles(t%2&&i.evenRow?i.evenRow:i.oddRow,r,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),o.appendChild(r)}})),n.innerHTML&&t.appendChild(n),t.appendChild(o),this.mapElementStyles(this.table.element,t,["border-top","border-left","border-right","border-bottom"]),t}lookupTableStyles(){var e={};return this.cloneTableStyle&&window.getComputedStyle&&(e.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),e.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),e.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),e.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),e.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],e.firstRow&&(e.styleCells=e.firstRow.getElementsByClassName("tabulator-cell"),e.styleRowHeader=e.firstRow.getElementsByClassName("tabulator-row-header")[0],e.firstCell=e.styleCells[0],e.lastCell=e.styleCells[e.styleCells.length-1])),e}generateHeaderElement(e,t,n){var o=document.createElement("tr");return e.columns.forEach((e=>{if(e){var t=document.createElement("th"),n=e.component._column.definition.cssClass?e.component._column.definition.cssClass.split(" "):[];t.colSpan=e.width,t.rowSpan=e.height,t.innerHTML=e.value,this.cloneTableStyle&&(t.style.boxSizing="border-box"),n.forEach((function(e){t.classList.add(e)})),this.mapElementStyles(e.component.getElement(),t,["text-align","border-left","border-right","background-color","color","font-weight","font-family","font-size"]),this.mapElementStyles(e.component._column.contentElement,t,["padding-top","padding-left","padding-right","padding-bottom"]),e.component._column.visible?this.mapElementStyles(e.component.getElement(),t,["width"]):e.component._column.definition.width&&(t.style.width=e.component._column.definition.width+"px"),e.component._column.parent&&e.component._column.parent.isGroup?this.mapElementStyles(e.component._column.parent.groupElement,t,["border-top"]):this.mapElementStyles(e.component.getElement(),t,["border-top"]),e.component._column.isGroup?this.mapElementStyles(e.component.getElement(),t,["border-bottom"]):this.mapElementStyles(this.table.columnManager.getElement(),t,["border-bottom"]),o.appendChild(t)}})),o}generateGroupElement(e,t,n){var o=document.createElement("tr"),i=document.createElement("td"),r=e.columns[0];return o.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?r.value=t.groupHeader[e.indent](r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):!1!==t.groupHeader&&(r.value=e.component._group.generator(r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)),i.colSpan=r.width,i.innerHTML=r.value,o.classList.add("tabulator-print-table-group"),o.classList.add("tabulator-group-level-"+e.indent),r.component.isVisible()&&o.classList.add("tabulator-group-visible"),this.mapElementStyles(n.firstGroup,o,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(n.firstGroup,i,["padding-top","padding-left","padding-right","padding-bottom"]),o.appendChild(i),o}generateCalcElement(e,t,n){var o=this.generateRowElement(e,t,n);return o.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(n.calcRow,o,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),o}generateRowElement(e,t,n){var o=document.createElement("tr");return o.classList.add("tabulator-print-table-row"),e.columns.forEach(((i,r)=>{if(i){var s,a,l=document.createElement("td"),c=i.component._column,d=this.table,u=d.columnManager.findColumnIndex(c),h=i.value,m={modules:{},getValue:function(){return h},getField:function(){return c.definition.field},getElement:function(){return l},getType:function(){return"cell"},getColumn:function(){return c.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getTable:function(){return d},getComponent:function(){return m},column:c};if((c.definition.cssClass?c.definition.cssClass.split(" "):[]).forEach((function(e){l.classList.add(e)})),this.table.modExists("format")&&!1!==this.config.formatCells)h=this.table.modules.format.formatExportValue(m,this.colVisProp);else switch(typeof h){case"object":h=null!==h?JSON.stringify(h):"";break;case"undefined":h=""}h instanceof Node?l.appendChild(h):l.innerHTML=h,a=["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","text-align"],c.isRowHeader?(s=n.styleRowHeader,a.push("background-color")):s=n.styleCells&&n.styleCells[u]?n.styleCells[u]:n.firstCell,s&&(this.mapElementStyles(s,l,a),c.definition.align&&(l.style.textAlign=c.definition.align)),this.table.options.dataTree&&!1!==this.config.dataTree&&(t.treeElementField&&t.treeElementField==c.field||!t.treeElementField&&0==r)&&(e.component._row.modules.dataTree.controlEl&&l.insertBefore(e.component._row.modules.dataTree.controlEl.cloneNode(!0),l.firstChild),e.component._row.modules.dataTree.branchEl&&l.insertBefore(e.component._row.modules.dataTree.branchEl.cloneNode(!0),l.firstChild)),o.appendChild(l),m.modules.format&&m.modules.format.renderedCallback&&m.modules.format.renderedCallback()}})),t.rowFormatter&&"row"===e.type&&!1!==this.config.formatCells&&(Object.assign(e.component).getElement=function(){return o},t.rowFormatter(e.component)),o}generateHTMLTable(e){var t=document.createElement("div");return t.appendChild(this.generateTableElement(e)),t.innerHTML}getHtml(e,t,n,o){var i=this.generateExportList(n||this.table.options.htmlOutputConfig,t,e,o||"htmlOutput");return this.generateHTMLTable(i)}mapElementStyles(e,t,n){if(this.cloneTableStyle&&e&&t){var o={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var i=window.getComputedStyle(e);n.forEach((function(e){t.style[o[e]]||(t.style[o[e]]=i.getPropertyValue(e))}))}}}}var $={"=":function(e,t,n,o){return t==e},"<":function(e,t,n,o){return t<e},"<=":function(e,t,n,o){return t<=e},">":function(e,t,n,o){return t>e},">=":function(e,t,n,o){return t>=e},"!=":function(e,t,n,o){return t!=e},regex:function(e,t,n,o){return"string"==typeof e&&(e=new RegExp(e)),e.test(t)},like:function(e,t,n,o){return null==e?t===e:null!=t&&String(t).toLowerCase().indexOf(e.toLowerCase())>-1},keywords:function(e,t,n,o){var i=e.toLowerCase().split(void 0===o.separator?" ":o.separator),r=String(null==t?"":t).toLowerCase(),s=[];return i.forEach((e=>{r.includes(e)&&s.push(!0)})),o.matchAll?s.length===i.length:!!s.length},starts:function(e,t,n,o){return null==e?t===e:null!=t&&String(t).toLowerCase().startsWith(e.toLowerCase())},ends:function(e,t,n,o){return null==e?t===e:null!=t&&String(t).toLowerCase().endsWith(e.toLowerCase())},in:function(e,t,n,o){return Array.isArray(e)?!e.length||e.indexOf(t)>-1:(console.warn("Filter Error - filter value is not an array:",e),!1)}};class B extends s{static moduleName="filter";static filters=$;constructor(e){super(e),this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1,this.tableInitialized=!1,this.registerTableOption("filterMode","local"),this.registerTableOption("initialFilter",!1),this.registerTableOption("initialHeaderFilter",!1),this.registerTableOption("headerFilterLiveFilterDelay",300),this.registerTableOption("placeholderHeaderFilter",!1),this.registerColumnOption("headerFilter"),this.registerColumnOption("headerFilterPlaceholder"),this.registerColumnOption("headerFilterParams"),this.registerColumnOption("headerFilterEmptyCheck"),this.registerColumnOption("headerFilterFunc"),this.registerColumnOption("headerFilterFuncParams"),this.registerColumnOption("headerFilterLiveFilter"),this.registerTableFunction("searchRows",this.searchRows.bind(this)),this.registerTableFunction("searchData",this.searchData.bind(this)),this.registerTableFunction("setFilter",this.userSetFilter.bind(this)),this.registerTableFunction("refreshFilter",this.userRefreshFilter.bind(this)),this.registerTableFunction("addFilter",this.userAddFilter.bind(this)),this.registerTableFunction("getFilters",this.getFilters.bind(this)),this.registerTableFunction("setHeaderFilterFocus",this.userSetHeaderFilterFocus.bind(this)),this.registerTableFunction("getHeaderFilterValue",this.userGetHeaderFilterValue.bind(this)),this.registerTableFunction("setHeaderFilterValue",this.userSetHeaderFilterValue.bind(this)),this.registerTableFunction("getHeaderFilters",this.getHeaderFilters.bind(this)),this.registerTableFunction("removeFilter",this.userRemoveFilter.bind(this)),this.registerTableFunction("clearFilter",this.userClearFilter.bind(this)),this.registerTableFunction("clearHeaderFilter",this.userClearHeaderFilter.bind(this)),this.registerComponentFunction("column","headerFilterFocus",this.setHeaderFilterFocus.bind(this)),this.registerComponentFunction("column","reloadHeaderFilter",this.reloadHeaderFilter.bind(this)),this.registerComponentFunction("column","getHeaderFilterValue",this.getHeaderFilterValue.bind(this)),this.registerComponentFunction("column","setHeaderFilterValue",this.setHeaderFilterValue.bind(this))}initialize(){this.subscribe("column-init",this.initializeColumnHeaderFilter.bind(this)),this.subscribe("column-width-fit-before",this.hideHeaderFilterElements.bind(this)),this.subscribe("column-width-fit-after",this.showHeaderFilterElements.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.subscribe("placeholder",this.generatePlaceholder.bind(this)),"remote"===this.table.options.filterMode&&this.subscribe("data-params",this.remoteFilterParams.bind(this)),this.registerDataHandler(this.filter.bind(this),10)}tableBuilt(){this.table.options.initialFilter&&this.setFilter(this.table.options.initialFilter),this.table.options.initialHeaderFilter&&this.table.options.initialHeaderFilter.forEach((e=>{var t=this.table.columnManager.findColumn(e.field);if(!t)return console.warn("Column Filter Error - No matching column found:",e.field),!1;this.setHeaderFilterValue(t,e.value)})),this.tableInitialized=!0}remoteFilterParams(e,t,n,o){return o.filter=this.getFilters(!0,!0),o}generatePlaceholder(e){if(this.table.options.placeholderHeaderFilter&&Object.keys(this.headerFilters).length)return this.table.options.placeholderHeaderFilter}userSetFilter(e,t,n,o){this.setFilter(e,t,n,o),this.refreshFilter()}userRefreshFilter(){this.refreshFilter()}userAddFilter(e,t,n,o){this.addFilter(e,t,n,o),this.refreshFilter()}userSetHeaderFilterFocus(e){var t=this.table.columnManager.findColumn(e);if(!t)return console.warn("Column Filter Focus Error - No matching column found:",e),!1;this.setHeaderFilterFocus(t)}userGetHeaderFilterValue(e){var t=this.table.columnManager.findColumn(e);if(t)return this.getHeaderFilterValue(t);console.warn("Column Filter Error - No matching column found:",e)}userSetHeaderFilterValue(e,t){var n=this.table.columnManager.findColumn(e);if(!n)return console.warn("Column Filter Error - No matching column found:",e),!1;this.setHeaderFilterValue(n,t)}userRemoveFilter(e,t,n){this.removeFilter(e,t,n),this.refreshFilter()}userClearFilter(e){this.clearFilter(e),this.refreshFilter()}userClearHeaderFilter(){this.clearHeaderFilter(),this.refreshFilter()}searchRows(e,t,n){return this.search("rows",e,t,n)}searchData(e,t,n){return this.search("data",e,t,n)}initializeColumnHeaderFilter(e){e.definition.headerFilter&&this.initializeColumn(e)}initializeColumn(e,t){var n=this,o=e.getField();e.modules.filter={success:function(t){var i,r="input"==e.modules.filter.tagType&&"text"==e.modules.filter.attrType||"textarea"==e.modules.filter.tagType?"partial":"match",s="",a="";if(void 0===e.modules.filter.prevSuccess||e.modules.filter.prevSuccess!==t){if(e.modules.filter.prevSuccess=t,e.modules.filter.emptyFunc(t))delete n.headerFilters[o];else{switch(e.modules.filter.value=t,typeof e.definition.headerFilterFunc){case"string":B.filters[e.definition.headerFilterFunc]?(s=e.definition.headerFilterFunc,i=function(n){var o=e.definition.headerFilterFuncParams||{},i=e.getFieldValue(n);return o="function"==typeof o?o(t,i,n):o,B.filters[e.definition.headerFilterFunc](t,i,n,o)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":s=i=function(n){var o=e.definition.headerFilterFuncParams||{},i=e.getFieldValue(n);return o="function"==typeof o?o(t,i,n):o,e.definition.headerFilterFunc(t,i,n,o)}}i||("partial"===r?(i=function(n){var o=e.getFieldValue(n);return null!=o&&String(o).toLowerCase().indexOf(String(t).toLowerCase())>-1},s="like"):(i=function(n){return e.getFieldValue(n)==t},s="=")),n.headerFilters[o]={value:t,func:i,type:s}}e.modules.filter.value=t,a=JSON.stringify(n.headerFilters),n.prevHeaderFilterChangeCheck!==a&&(n.prevHeaderFilterChangeCheck=a,n.trackChanges(),n.refreshFilter())}return!0},attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)}generateHeaderFilterElement(e,t,n){var o,i,r,s,a,l,c,d,u=this,h=e.modules.filter.success,m=e.getField();if(e.modules.filter.value=t,e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),m){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(e){return!e&&0!==e},(o=document.createElement("div")).classList.add("tabulator-header-filter"),typeof e.definition.headerFilter){case"string":u.table.modules.edit.editors[e.definition.headerFilter]?(i=u.table.modules.edit.editors[e.definition.headerFilter],"tick"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":i=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?i=e.modules.edit.editor:e.definition.formatter&&u.table.modules.edit.editors[e.definition.formatter]?(i=u.table.modules.edit.editors[e.definition.formatter],"tick"!==e.definition.formatter&&"tickCross"!==e.definition.formatter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):i=u.table.modules.edit.editors.input}if(i){if(s={getValue:function(){return void 0!==t?t:""},getField:function(){return e.definition.field},getElement:function(){return o},getColumn:function(){return e.getComponent()},getTable:()=>this.table,getType:()=>"header",getRow:function(){return{normalizeHeight:function(){}}}},c="function"==typeof(c=e.definition.headerFilterParams||{})?c.call(u.table,s):c,!(r=i.call(this.table.modules.edit,s,(function(e){d=e}),h,(function(){}),c)))return void console.warn("Filter Error - Cannot add filter to "+m+" column, editor returned a value of false");if(!(r instanceof Node))return void console.warn("Filter Error - Cannot add filter to "+m+" column, editor should return an instance of Node, the editor returned:",r);u.langBind("headerFilters|columns|"+e.definition.field,(function(t){r.setAttribute("placeholder",void 0!==t&&t?t:e.definition.headerFilterPlaceholder||u.langText("headerFilters|default"))})),r.addEventListener("click",(function(e){e.stopPropagation(),r.focus()})),r.addEventListener("focus",(e=>{var t=this.table.columnManager.contentsElement.scrollLeft;t!==this.table.rowManager.element.scrollLeft&&(this.table.rowManager.scrollHorizontal(t),this.table.columnManager.scrollHorizontal(t))})),a=!1,l=function(e){a&&clearTimeout(a),a=setTimeout((function(){h(r.value)}),u.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=r,e.modules.filter.attrType=r.hasAttribute("type")?r.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=r.tagName.toLowerCase(),!1!==e.definition.headerFilterLiveFilter&&("autocomplete"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter&&("autocomplete"!==e.definition.editor&&"tickCross"!==e.definition.editor||!0!==e.definition.headerFilter)&&(r.addEventListener("keyup",l),r.addEventListener("search",l),"number"==e.modules.filter.attrType&&r.addEventListener("change",(function(e){h(r.value)})),"text"==e.modules.filter.attrType&&"ie"!==this.table.browser&&r.setAttribute("type","search")),"input"!=e.modules.filter.tagType&&"select"!=e.modules.filter.tagType&&"textarea"!=e.modules.filter.tagType||r.addEventListener("mousedown",(function(e){e.stopPropagation()}))),o.appendChild(r),e.contentElement.appendChild(o),n||u.headerFilterColumns.push(e),d&&d()}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",e.definition.title)}hideHeaderFilterElements(){this.headerFilterColumns.forEach((function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="none")}))}showHeaderFilterElements(){this.headerFilterColumns.forEach((function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="")}))}setHeaderFilterFocus(e){e.modules.filter&&e.modules.filter.headerElement?e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",e.getField())}getHeaderFilterValue(e){if(e.modules.filter&&e.modules.filter.headerElement)return e.modules.filter.value;console.warn("Column Filter Error - No header filter set on column:",e.getField())}setHeaderFilterValue(e,t){e&&(e.modules.filter&&e.modules.filter.headerElement?(this.generateHeaderFilterElement(e,t,!0),e.modules.filter.success(t)):console.warn("Column Filter Error - No header filter set on column:",e.getField()))}reloadHeaderFilter(e){e&&(e.modules.filter&&e.modules.filter.headerElement?this.generateHeaderFilterElement(e,e.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",e.getField()))}refreshFilter(){this.tableInitialized&&("remote"===this.table.options.filterMode?this.reloadData(null,!1,!1):this.refreshData(!0))}trackChanges(){this.changed=!0,this.dispatch("filter-changed")}hasChanged(){var e=this.changed;return this.changed=!1,e}setFilter(e,t,n,o){this.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:n,params:o}]),this.addFilter(e)}addFilter(e,t,n,o){var i=!1;Array.isArray(e)||(e=[{field:e,type:t,value:n,params:o}]),e.forEach((e=>{(e=this.findFilter(e))&&(this.filterList.push(e),i=!0)})),i&&this.trackChanges()}findFilter(e){var t;if(Array.isArray(e))return this.findSubFilters(e);var n=!1;return"function"==typeof e.field?n=function(t){return e.field(t,e.type||{})}:B.filters[e.type]?n=(t=this.table.columnManager.getColumnByField(e.field))?function(n){return B.filters[e.type](e.value,t.getFieldValue(n),n,e.params||{})}:function(t){return B.filters[e.type](e.value,t[e.field],t,e.params||{})}:console.warn("Filter Error - No such filter type found, ignoring: ",e.type),e.func=n,!!e.func&&e}findSubFilters(e){var t=[];return e.forEach((e=>{(e=this.findFilter(e))&&t.push(e)})),!!t.length&&t}getFilters(e,t){var n=[];return e&&(n=this.getHeaderFilters()),t&&n.forEach((function(e){"function"==typeof e.type&&(e.type="function")})),n.concat(this.filtersToArray(this.filterList,t))}filtersToArray(e,t){var n=[];return e.forEach((e=>{var o;Array.isArray(e)?n.push(this.filtersToArray(e,t)):(o={field:e.field,type:e.type,value:e.value},t&&"function"==typeof o.type&&(o.type="function"),n.push(o))})),n}getHeaderFilters(){var e=[];for(var t in this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.headerFilters[t].value});return e}removeFilter(e,t,n){Array.isArray(e)||(e=[{field:e,type:t,value:n}]),e.forEach((e=>{var t;(t="object"==typeof e.field?this.filterList.findIndex((t=>e===t)):this.filterList.findIndex((t=>e.field===t.field&&e.type===t.type&&e.value===t.value)))>-1?this.filterList.splice(t,1):console.warn("Filter Error - No matching filter type found, ignoring: ",e.type)})),this.trackChanges()}clearFilter(e){this.filterList=[],e&&this.clearHeaderFilter(),this.trackChanges()}clearHeaderFilter(){this.headerFilters={},this.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach((e=>{void 0!==e.modules.filter.value&&delete e.modules.filter.value,e.modules.filter.prevSuccess=void 0,this.reloadHeaderFilter(e)})),this.trackChanges()}search(e,t,n,o){var i=[],r=[];return Array.isArray(t)||(t=[{field:t,type:n,value:o}]),t.forEach((e=>{(e=this.findFilter(e))&&r.push(e)})),this.table.rowManager.rows.forEach((t=>{var n=!0;r.forEach((e=>{this.filterRecurse(e,t.getData())||(n=!1)})),n&&i.push("data"===e?t.getData("data"):t.getComponent())})),i}filter(e,t){var n=[],o=[];return this.subscribedExternal("dataFiltering")&&this.dispatchExternal("dataFiltering",this.getFilters(!0)),"remote"!==this.table.options.filterMode&&(this.filterList.length||Object.keys(this.headerFilters).length)?e.forEach((e=>{this.filterRow(e)&&n.push(e)})):n=e.slice(0),this.subscribedExternal("dataFiltered")&&(n.forEach((e=>{o.push(e.getComponent())})),this.dispatchExternal("dataFiltered",this.getFilters(!0),o)),n}filterRow(e,t){var n=!0,o=e.getData();for(var i in this.filterList.forEach((e=>{this.filterRecurse(e,o)||(n=!1)})),this.headerFilters)this.headerFilters[i].func(o)||(n=!1);return n}filterRecurse(e,t){var n=!1;return Array.isArray(e)?e.forEach((e=>{this.filterRecurse(e,t)&&(n=!0)})):n=e.func(t),n}}var W={plaintext:function(e,t,n){return this.emptyToSpace(this.sanitizeHTML(e.getValue()))},html:function(e,t,n){return e.getValue()},textarea:function(e,t,n){return e.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(e.getValue()))},money:function(e,t,n){var o,i,r,s,a,l=parseFloat(e.getValue()),c="",d=t.decimal||".",u=t.thousand||",",h=t.negativeSign||"-",m=t.symbol||"",p=!!t.symbolAfter,f=void 0!==t.precision?t.precision:2;if(isNaN(l))return this.emptyToSpace(this.sanitizeHTML(e.getValue()));if(l<0&&(l=Math.abs(l),c=h),o=!1!==f?l.toFixed(f):l,i=(o=String(o).split("."))[0],r=o.length>1?d+o[1]:"",!1!==t.thousand)for(s=/(\d+)(\d{3})/;s.test(i);)i=i.replace(s,"$1"+u+"$2");return a=i+r,!0===c?(a="("+a+")",p?a+m:m+a):p?c+a+m:c+m+a},link:function(e,t,n){var o,r=e.getValue(),s=t.urlPrefix||"",a=t.download,l=r,c=document.createElement("a");if(t.labelField&&(o=e.getData(),l=function e(t,n){var o=n[t.shift()];return t.length&&"object"==typeof o?e(t,o):o}(t.labelField.split(this.table.options.nestedFieldSeparator),o)),t.label)switch(typeof t.label){case"string":l=t.label;break;case"function":l=t.label(e)}if(l){if(t.urlField&&(o=e.getData(),r=i.retrieveNestedData(this.table.options.nestedFieldSeparator,t.urlField,o)),t.url)switch(typeof t.url){case"string":r=t.url;break;case"function":r=t.url(e)}return c.setAttribute("href",s+r),t.target&&c.setAttribute("target",t.target),t.download&&(a="function"==typeof a?a(e):!0===a?"":a,c.setAttribute("download",a)),c.innerHTML=this.emptyToSpace(this.sanitizeHTML(l)),c}return"&nbsp;"},image:function(e,t,n){var o=document.createElement("img"),i=e.getValue();switch(t.urlPrefix&&(i=t.urlPrefix+e.getValue()),t.urlSuffix&&(i+=t.urlSuffix),o.setAttribute("src",i),typeof t.height){case"number":o.style.height=t.height+"px";break;case"string":o.style.height=t.height}switch(typeof t.width){case"number":o.style.width=t.width+"px";break;case"string":o.style.width=t.width}return o.addEventListener("load",(function(){e.getRow().normalizeHeight()})),o},tickCross:function(e,t,n){var o=e.getValue(),i=e.getElement(),r=t.allowEmpty,s=t.allowTruthy,a=Object.keys(t).includes("trueValue"),l=void 0!==t.tickElement?t.tickElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>',c=void 0!==t.crossElement?t.crossElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>';return a&&o===t.trueValue||!a&&(s&&o||!0===o||"true"===o||"True"===o||1===o||"1"===o)?(i.setAttribute("aria-checked",!0),l||""):!r||"null"!==o&&""!==o&&null!=o?(i.setAttribute("aria-checked",!1),c||""):(i.setAttribute("aria-checked","mixed"),"")},datetime:function(e,t,n){var o,i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),r=t.inputFormat||"yyyy-MM-dd HH:mm:ss",s=t.outputFormat||"dd/MM/yyyy HH:mm:ss",a=void 0!==t.invalidPlaceholder?t.invalidPlaceholder:"",l=e.getValue();if(void 0!==i)return(o=i.isDateTime(l)?l:"iso"===r?i.fromISO(String(l)):i.fromFormat(String(l),r)).isValid?(t.timezone&&(o=o.setZone(t.timezone)),o.toFormat(s)):!0!==a&&l?"function"==typeof a?a(l):a:l;console.error("Format Error - 'datetime' formatter is dependant on luxon.js")},datetimediff:function(e,t,n){var o,i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),r=t.inputFormat||"yyyy-MM-dd HH:mm:ss",s=void 0!==t.invalidPlaceholder?t.invalidPlaceholder:"",a=void 0!==t.suffix&&t.suffix,l=void 0!==t.unit?t.unit:"days",c=void 0!==t.humanize&&t.humanize,d=void 0!==t.date?t.date:i.now(),u=e.getValue();if(void 0!==i)return(o=i.isDateTime(u)?u:"iso"===r?i.fromISO(String(u)):i.fromFormat(String(u),r)).isValid?c?o.diff(d,l).toHuman()+(a?" "+a:""):parseInt(o.diff(d,l)[l])+(a?" "+a:""):!0===s?u:"function"==typeof s?s(u):s;console.error("Format Error - 'datetimediff' formatter is dependant on luxon.js")},lookup:function(e,t,n){var o=e.getValue();return void 0===t[o]?(console.warn("Missing display value for "+o),o):t[o]},star:function(e,t,n){var o=e.getValue(),i=e.getElement(),r=t&&t.stars?t.stars:5,s=document.createElement("span"),a=document.createElementNS("http://www.w3.org/2000/svg","svg");s.style.verticalAlign="middle",a.setAttribute("width","14"),a.setAttribute("height","14"),a.setAttribute("viewBox","0 0 512 512"),a.setAttribute("xml:space","preserve"),a.style.padding="0 1px",o=o&&!isNaN(o)?parseInt(o):0,o=Math.max(0,Math.min(o,r));for(var l=1;l<=r;l++){var c=a.cloneNode(!0);c.innerHTML=l<=o?'<polygon fill="#FFEA00" stroke="#C1AB60" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>':'<polygon fill="#D2D2D2" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>',s.appendChild(c)}return i.style.whiteSpace="nowrap",i.style.overflow="hidden",i.style.textOverflow="ellipsis",i.setAttribute("aria-label",o),s},traffic:function(e,t,n){var o,i,r=this.sanitizeHTML(e.getValue())||0,s=document.createElement("span"),a=t&&t.max?t.max:100,l=t&&t.min?t.min:0,c=t&&void 0!==t.color?t.color:["red","orange","green"],d="#666666";if(!isNaN(r)&&void 0!==e.getValue()){switch(s.classList.add("tabulator-traffic-light"),i=parseFloat(r)<=a?parseFloat(r):a,i=parseFloat(i)>=l?parseFloat(i):l,o=(a-l)/100,i=Math.round((i-l)/o),typeof c){case"string":d=c;break;case"function":d=c(r);break;case"object":if(Array.isArray(c)){var u=100/c.length,h=Math.floor(i/u);h=Math.min(h,c.length-1),d=c[h=Math.max(h,0)];break}}return s.style.backgroundColor=d,s}},progress:function(e,t={},n){var o,i,r,s,a,l=this.sanitizeHTML(e.getValue())||0,c=e.getElement(),d=t.max?t.max:100,u=t.min?t.min:0,h=t.legendAlign?t.legendAlign:"center";switch(i=parseFloat(l)<=d?parseFloat(l):d,i=parseFloat(i)>=u?parseFloat(i):u,o=(d-u)/100,i=Math.round((i-u)/o),typeof t.color){case"string":r=t.color;break;case"function":r=t.color(l);break;case"object":if(Array.isArray(t.color)){let e=100/t.color.length,n=Math.floor(i/e);n=Math.min(n,t.color.length-1),n=Math.max(n,0),r=t.color[n];break}default:r="#2DC214"}switch(typeof t.legend){case"string":s=t.legend;break;case"function":s=t.legend(l);break;case"boolean":s=l;break;default:s=!1}switch(typeof t.legendColor){case"string":a=t.legendColor;break;case"function":a=t.legendColor(l);break;case"object":if(Array.isArray(t.legendColor)){let e=100/t.legendColor.length,n=Math.floor(i/e);n=Math.min(n,t.legendColor.length-1),n=Math.max(n,0),a=t.legendColor[n]}break;default:a="#000"}c.style.minWidth="30px",c.style.position="relative",c.setAttribute("aria-label",i);var m=document.createElement("div");m.style.display="inline-block",m.style.width=i+"%",m.style.backgroundColor=r,m.style.height="100%",m.setAttribute("data-max",d),m.setAttribute("data-min",u);var p=document.createElement("div");if(p.style.position="relative",p.style.width="100%",p.style.height="100%",s){var f=document.createElement("div");f.style.position="absolute",f.style.top=0,f.style.left=0,f.style.textAlign=h,f.style.width="100%",f.style.color=a,f.innerHTML=s}return n((function(){if(!(e instanceof _)){var t=document.createElement("div");t.style.position="absolute",t.style.top="4px",t.style.bottom="4px",t.style.left="4px",t.style.right="4px",c.appendChild(t),c=t}c.appendChild(p),p.appendChild(m),s&&p.appendChild(f)})),""},color:function(e,t,n){return e.getElement().style.backgroundColor=this.sanitizeHTML(e.getValue()),""},buttonTick:function(e,t,n){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>'},buttonCross:function(e,t,n){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>'},toggle:function(e,t,n){var o,i,r=e.getValue(),s=t.size||15,a=s+"px",l=!t.hasOwnProperty("onValue")||t.onValue,c=!!t.hasOwnProperty("offValue")&&t.offValue,d=t.onTruthy?r:r===l;return(o=document.createElement("div")).classList.add("tabulator-toggle"),d?(o.classList.add("tabulator-toggle-on"),o.style.flexDirection="row-reverse",t.onColor&&(o.style.background=t.onColor)):t.offColor&&(o.style.background=t.offColor),o.style.width=2.5*s+"px",o.style.borderRadius=a,t.clickable&&o.addEventListener("click",(t=>{e.setValue(d?c:l)})),(i=document.createElement("div")).classList.add("tabulator-toggle-switch"),i.style.height=a,i.style.width=a,i.style.borderRadius=a,o.appendChild(i),o},rownum:function(e,t,n){var o=document.createElement("span"),i=e.getRow(),r=e.getTable();return i.watchPosition((e=>{t.relativeToPage&&(e+=r.modules.page.getPageSize()*(r.modules.page.getPage()-1)),o.innerText=e})),o},handle:function(e,t,n){return e.getElement().classList.add("tabulator-row-handle"),"<div class='tabulator-row-handle-box'><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div></div>"},adaptable:function(e,t,n){var o,i;return o=t.formatterLookup?t.formatterLookup(e):function(e){var t=e.getValue(),n="plaintext";switch(typeof t){case"boolean":n="tickCross";break;case"string":t.includes("\n")&&(n="textarea")}return n}(e),t.paramsLookup&&(i="function"==typeof t.paramsLookup?t.paramsLookup(o,e):t.paramsLookup[o]),this.table.modules.format.lookupFormatter(o).call(this,e,i||{},n)},array:function(e,t,n){var o,r=t.delimiter||",",s=e.getValue(),a=this.table;return t.valueMap&&(o="string"==typeof t.valueMap?function(e){return e.map((e=>i.retrieveNestedData(a.options.nestedFieldSeparator,t.valueMap,e)))}:t.valueMap),Array.isArray(s)?(o&&(s=o(s)),s.join(r)):s},json:function(e,t,n){var o=t.indent||"\t",i=void 0===t.multiline||t.multiline,r=t.replacer||null,s=e.getValue();return i&&(e.getElement().style.whiteSpace="pre-wrap"),JSON.stringify(s,r,o)}};class V extends s{static moduleName="format";static formatters=W;constructor(e){super(e),this.registerColumnOption("formatter"),this.registerColumnOption("formatterParams"),this.registerColumnOption("formatterPrint"),this.registerColumnOption("formatterPrintParams"),this.registerColumnOption("formatterClipboard"),this.registerColumnOption("formatterClipboardParams"),this.registerColumnOption("formatterHtmlOutput"),this.registerColumnOption("formatterHtmlOutputParams"),this.registerColumnOption("titleFormatter"),this.registerColumnOption("titleFormatterParams")}initialize(){this.subscribe("cell-format",this.formatValue.bind(this)),this.subscribe("cell-rendered",this.cellRendered.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-format",this.formatHeader.bind(this))}initializeColumn(e){e.modules.format=this.lookupTypeFormatter(e,""),void 0!==e.definition.formatterPrint&&(e.modules.format.print=this.lookupTypeFormatter(e,"Print")),void 0!==e.definition.formatterClipboard&&(e.modules.format.clipboard=this.lookupTypeFormatter(e,"Clipboard")),void 0!==e.definition.formatterHtmlOutput&&(e.modules.format.htmlOutput=this.lookupTypeFormatter(e,"HtmlOutput"))}lookupTypeFormatter(e,t){var n={params:e.definition["formatter"+t+"Params"]||{}},o=e.definition["formatter"+t];return n.formatter=this.lookupFormatter(o),n}lookupFormatter(e){var t;switch(typeof e){case"string":V.formatters[e]?t=V.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),t=V.formatters.plaintext);break;case"function":t=e;break;default:t=V.formatters.plaintext}return t}cellRendered(e){e.modules.format&&e.modules.format.renderedCallback&&!e.modules.format.rendered&&(e.modules.format.renderedCallback(),e.modules.format.rendered=!0)}formatHeader(e,t,n){var o,i,r,s;return e.definition.titleFormatter?(o=this.lookupFormatter(e.definition.titleFormatter),r=t=>{e.titleFormatterRendered=t},s={getValue:function(){return t},getElement:function(){return n},getType:function(){return"header"},getColumn:function(){return e.getComponent()},getTable:()=>this.table},i="function"==typeof(i=e.definition.titleFormatterParams||{})?i():i,o.call(this,s,i,r)):t}formatValue(e){var t=e.getComponent(),n="function"==typeof e.column.modules.format.params?e.column.modules.format.params(t):e.column.modules.format.params;return e.column.modules.format.formatter.call(this,t,n,(function(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1}))}formatExportValue(e,t){var n,o=e.column.modules.format[t];if(o){function i(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1}return n="function"==typeof o.params?o.params(e.getComponent()):o.params,o.formatter.call(this,e.getComponent(),n,i)}return this.formatValue(e)}sanitizeHTML(e){if(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(e).replace(/[&<>"'`=/]/g,(function(e){return t[e]}))}return e}emptyToSpace(e){return null==e||""===e?"&nbsp;":e}}class U{constructor(e){return this._group=e,this.type="GroupComponent",new Proxy(this,{get:function(e,t,n){return void 0!==e[t]?e[t]:e._group.groupManager.table.componentFunctionBinder.handle("group",e._group,t)}})}getKey(){return this._group.key}getField(){return this._group.field}getElement(){return this._group.element}getRows(){return this._group.getRows(!0)}getSubGroups(){return this._group.getSubGroups(!0)}getParentGroup(){return!!this._group.parent&&this._group.parent.getComponent()}isVisible(){return this._group.visible}show(){this._group.show()}hide(){this._group.hide()}toggle(){this._group.toggleVisibility()}scrollTo(e,t){return this._group.groupManager.table.rowManager.scrollToRow(this._group,e,t)}_getSelf(){return this._group}getTable(){return this._group.groupManager.table}}class G{constructor(e,t,n,o,i,r,s){this.groupManager=e,this.parent=t,this.key=o,this.level=n,this.field=i,this.hasSubGroups=n<e.groupIDLookups.length-1,this.addRow=this.hasSubGroups?this._addRowToGroup:this._addRow,this.type="group",this.old=s,this.rows=[],this.groups=[],this.groupList=[],this.generator=r,this.element=!1,this.elementContents=!1,this.height=0,this.outerHeight=0,this.initialized=!1,this.calcs={},this.initialized=!1,this.modules={},this.arrowElement=!1,this.visible=s?s.visible:void 0!==e.startOpen[n]?e.startOpen[n]:e.startOpen[0],this.component=null,this.createElements(),this.addBindings(),this.createValueGroups()}wipe(e){e||(this.groupList.length?this.groupList.forEach((function(e){e.wipe()})):this.rows.forEach((e=>{e.modules&&delete e.modules.group}))),this.element=!1,this.arrowElement=!1,this.elementContents=!1}createElements(){var e=document.createElement("div");e.classList.add("tabulator-arrow"),this.element=document.createElement("div"),this.element.classList.add("tabulator-row"),this.element.classList.add("tabulator-group"),this.element.classList.add("tabulator-group-level-"+this.level),this.element.setAttribute("role","rowgroup"),this.arrowElement=document.createElement("div"),this.arrowElement.classList.add("tabulator-group-toggle"),this.arrowElement.appendChild(e),!1!==this.groupManager.table.options.movableRows&&this.groupManager.table.modExists("moveRow")&&this.groupManager.table.modules.moveRow.initializeGroupHeader(this)}createValueGroups(){var e=this.level+1;this.groupManager.allowedValues&&this.groupManager.allowedValues[e]&&this.groupManager.allowedValues[e].forEach((t=>{this._createGroup(t,e)}))}addBindings(){this.groupManager.table.options.groupToggleElement&&("arrow"==this.groupManager.table.options.groupToggleElement?this.arrowElement:this.element).addEventListener("click",(e=>{"arrow"===this.groupManager.table.options.groupToggleElement&&(e.stopPropagation(),e.stopImmediatePropagation()),setTimeout((()=>{this.toggleVisibility()}))}))}_createGroup(e,t){var n=t+"_"+e,o=new G(this.groupManager,this,t,e,this.groupManager.groupIDLookups[t].field,this.groupManager.headerGenerator[t]||this.groupManager.headerGenerator[0],!!this.old&&this.old.groups[n]);this.groups[n]=o,this.groupList.push(o)}_addRowToGroup(e){var t=this.level+1;if(this.hasSubGroups){var n=this.groupManager.groupIDLookups[t].func(e.getData()),o=t+"_"+n;this.groupManager.allowedValues&&this.groupManager.allowedValues[t]?this.groups[o]&&this.groups[o].addRow(e):(this.groups[o]||this._createGroup(n,t),this.groups[o].addRow(e))}}_addRow(e){this.rows.push(e),e.modules.group=this}insertRow(e,t,n){var o=this.conformRowData({});e.updateData(o);var i=this.rows.indexOf(t);i>-1?n?this.rows.splice(i+1,0,e):this.rows.splice(i,0,e):n?this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)}scrollHeader(e){this.arrowElement&&(this.arrowElement.style.marginLeft=e,this.groupList.forEach((function(t){t.scrollHeader(e)})))}getRowIndex(e){}conformRowData(e){return this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(e=this.parent.conformRowData(e)),e}removeRow(e){var t=this.rows.indexOf(e),n=e.getElement();t>-1&&this.rows.splice(t,1),this.groupManager.table.options.groupValues||this.rows.length?(n.parentNode&&n.parentNode.removeChild(n),this.groupManager.blockRedraw||(this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this))):(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0))}removeGroup(e){var t,n=e.level+"_"+e.key;this.groups[n]&&(delete this.groups[n],(t=this.groupList.indexOf(e))>-1&&this.groupList.splice(t,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))}getHeadersAndRows(){var e=[];return e.push(this),this._visSet(),this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.visible?this.groupList.length?this.groupList.forEach((function(t){e=e.concat(t.getHeadersAndRows())})):("table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(this.calcs.top)),e=e.concat(this.rows),"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calcs.bottom))):this.groupList.length||"table"==this.groupManager.table.options.columnCalcs||this.groupManager.table.modExists("columnCalcs")&&(this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(this.calcs.top)),this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calcs.bottom))),e}getData(e,t){var n=[];return this._visSet(),(!e||e&&this.visible)&&this.rows.forEach((e=>{n.push(e.getData(t||"data"))})),n}getRowCount(){var e=0;return this.groupList.length?this.groupList.forEach((t=>{e+=t.getRowCount()})):e=this.rows.length,e}toggleVisibility(){this.visible?this.hide():this.show()}hide(){this.visible=!1,"basic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination||(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach((e=>{e.getHeadersAndRows().forEach((e=>{e.detachElement()}))})):this.rows.forEach((e=>{var t=e.getElement();t.parentNode.removeChild(t)}))),this.groupManager.updateGroupRows(!0),this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!1)}show(){if(this.visible=!0,"basic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination)this.groupManager.updateGroupRows(!0);else{this.element.classList.add("tabulator-group-visible");var e=this.generateElement();this.groupList.length?this.groupList.forEach((t=>{t.getHeadersAndRows().forEach((t=>{var n=t.getElement();e.parentNode.insertBefore(n,e.nextSibling),t.initialize(),e=n}))})):this.rows.forEach((t=>{var n=t.getElement();e.parentNode.insertBefore(n,e.nextSibling),t.initialize(),e=n})),this.groupManager.updateGroupRows(!0)}this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!0)}_visSet(){var e=[];"function"==typeof this.visible&&(this.rows.forEach((function(t){e.push(t.getData())})),this.visible=this.visible(this.key,this.getRowCount(),e,this.getComponent()))}getRowGroup(e){var t=!1;return this.groupList.length?this.groupList.forEach((function(n){var o=n.getRowGroup(e);o&&(t=o)})):this.rows.find((function(t){return t===e}))&&(t=this),t}getSubGroups(e){var t=[];return this.groupList.forEach((function(n){t.push(e?n.getComponent():n)})),t}getRows(e,t){var n=[];return t&&this.groupList.length?this.groupList.forEach((o=>{n=n.concat(o.getRows(e,t))})):this.rows.forEach((function(t){n.push(e?t.getComponent():t)})),n}generateGroupHeaderContents(){var e=[];for(this.getRows(!1,!0).forEach((function(t){e.push(t.getData())})),this.elementContents=this.generator(this.key,this.getRowCount(),e,this.getComponent());this.element.firstChild;)this.element.removeChild(this.element.firstChild);"string"==typeof this.elementContents?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)}getPath(e=[]){return e.unshift(this.key),this.parent&&this.parent.getPath(e),e}getElement(){return this.elementContents?this.element:this.generateElement()}generateElement(){this.addBindings=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var e=0;e<this.element.childNodes.length;++e)this.element.childNodes[e].parentNode.removeChild(this.element.childNodes[e]);return this.generateGroupHeaderContents(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}normalizeHeight(){this.setHeight(this.element.clientHeight)}initialize(e){this.initialized&&!e||(this.normalizeHeight(),this.initialized=!0)}reinitialize(){this.initialized=!1,this.height=0,i.elVisible(this.element)&&this.initialize(!0)}setHeight(e){this.height!=e&&(this.height=e,this.outerHeight=this.element.offsetHeight)}getHeight(){return this.outerHeight}getGroup(){return this}reinitializeHeight(){}calcHeight(){}setCellHeight(){}clearCellHeight(){}deinitializeHeight(){}rendered(){}getComponent(){return this.component||(this.component=new U(this)),this.component}}var K={cellEdit:function(e){e.component.setValueProcessData(e.data.oldValue),e.component.cellRendered()},rowAdd:function(e){e.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowDelete:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t),this.table.rowManager.checkPlaceholder()},rowMove:function(e){var t=e.data.posFrom-e.data.posTo>0;this.table.rowManager.moveRowActual(e.component,this.table.rowManager.getRowFromPosition(e.data.posFrom),t),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},q={cellEdit:function(e){e.component.setValueProcessData(e.data.newValue),e.component.cellRendered()},rowAdd:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t),this.table.rowManager.checkPlaceholder()},rowDelete:function(e){e.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.getRowFromPosition(e.data.posTo),e.data.after),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},X={keybindings:{bindings:{undo:["ctrl + 90","meta + 90"],redo:["ctrl + 89","meta + 89"]},actions:{undo:function(e){this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(this.table.modules.edit.currentCell||(e.preventDefault(),this.table.modules.history.undo()))},redo:function(e){this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(this.table.modules.edit.currentCell||(e.preventDefault(),this.table.modules.history.redo()))}}}};class J extends s{static moduleName="history";static moduleExtensions=X;static undoers=K;static redoers=q;constructor(e){super(e),this.history=[],this.index=-1,this.registerTableOption("history",!1)}initialize(){this.table.options.history&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("cell-delete",this.clearComponentHistory.bind(this)),this.subscribe("row-delete",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clear.bind(this)),this.subscribe("row-added",this.rowAdded.bind(this)),this.subscribe("row-move",this.rowMoved.bind(this))),this.registerTableFunction("undo",this.undo.bind(this)),this.registerTableFunction("redo",this.redo.bind(this)),this.registerTableFunction("getHistoryUndoSize",this.getHistoryUndoSize.bind(this)),this.registerTableFunction("getHistoryRedoSize",this.getHistoryRedoSize.bind(this)),this.registerTableFunction("clearHistory",this.clear.bind(this))}rowMoved(e,t,n){this.action("rowMove",e,{posFrom:e.getPosition(),posTo:t.getPosition(),to:t,after:n})}rowAdded(e,t,n,o){this.action("rowAdd",e,{data:t,pos:n,index:o})}rowDeleted(e){var t,n;this.table.options.groupBy?(t=(n=e.getComponent().getGroup()._getSelf().rows).indexOf(e))&&(t=n[t-1]):(t=e.table.rowManager.getRowIndex(e))&&(t=e.table.rowManager.rows[t-1]),this.action("rowDelete",e,{data:e.getData(),pos:!t,index:t})}cellUpdated(e){this.action("cellEdit",e,{oldValue:e.oldValue,newValue:e.value})}clear(){this.history=[],this.index=-1}action(e,t,n){this.history=this.history.slice(0,this.index+1),this.history.push({type:e,component:t,data:n}),this.index++}getHistoryUndoSize(){return this.index+1}getHistoryRedoSize(){return this.history.length-(this.index+1)}clearComponentHistory(e){var t=this.history.findIndex((function(t){return t.component===e}));t>-1&&(this.history.splice(t,1),t<=this.index&&this.index--,this.clearComponentHistory(e))}undo(){if(this.index>-1){let e=this.history[this.index];return J.undoers[e.type].call(this,e),this.index--,this.dispatchExternal("historyUndo",e.type,e.component.getComponent(),e.data),!0}return console.warn(this.options("history")?"History Undo Error - No more history to undo":"History module not enabled"),!1}redo(){if(this.history.length-1>this.index){this.index++;let e=this.history[this.index];return J.redoers[e.type].call(this,e),this.dispatchExternal("historyRedo",e.type,e.component.getComponent(),e.data),!0}return console.warn(this.options("history")?"History Redo Error - No more history to redo":"History module not enabled"),!1}_rebindRow(e,t){this.history.forEach((function(n){if(n.component instanceof T)n.component===e&&(n.component=t);else if(n.component instanceof S&&n.component.row===e){var o=n.component.column.getField();o&&(n.component=t.getCell(o))}}))}}var Q={csv:function(e){var t=[],n=0,o=0,i=!1;for(let r=0;r<e.length;r++){let s=e[r],a=e[r+1];t[n]||(t[n]=[]),t[n][o]||(t[n][o]=""),'"'==s&&i&&'"'==a?(t[n][o]+=s,r++):'"'!=s?","!=s||i?"\r"!=s||"\n"!=a||i?"\r"!=s&&"\n"!=s||i?t[n][o]+=s:(o=0,n++):(o=0,n++,r++):o++:i=!i}return t},json:function(e){try{return JSON.parse(e)}catch(e){return console.warn("JSON Import Error - File contents is invalid JSON",e),Promise.reject()}},array:function(e){return e},xlsx:function(e){var t=this.dependencyRegistry.lookup("XLSX"),n=t.read(e),o=n.Sheets[n.SheetNames[0]];return t.utils.sheet_to_json(o,{header:1})}};class Z extends s{static moduleName="import";static importers=Q;constructor(e){super(e),this.registerTableOption("importFormat"),this.registerTableOption("importReader","text"),this.registerTableOption("importHeaderTransform"),this.registerTableOption("importValueTransform"),this.registerTableOption("importDataValidator"),this.registerTableOption("importFileValidator")}initialize(){this.registerTableFunction("import",this.importFromFile.bind(this)),this.table.options.importFormat&&(this.subscribe("data-loading",this.loadDataCheck.bind(this),10),this.subscribe("data-load",this.loadData.bind(this),10))}loadDataCheck(e){return this.table.options.importFormat&&("string"==typeof e||Array.isArray(e)&&e.length&&Array.isArray(e))}loadData(e,t,n,o,i){return this.importData(this.lookupImporter(),e).then(this.structureData.bind(this)).catch((e=>(console.error("Import Error:",e||"Unable to import data"),Promise.reject(e))))}lookupImporter(e){var t;return e||(e=this.table.options.importFormat),(t="string"==typeof e?Z.importers[e]:e)||console.error("Import Error - Importer not found:",e),t}importFromFile(e,t,n){var o=this.lookupImporter(e);if(o)return this.pickFile(t,n).then(this.importData.bind(this,o)).then(this.structureData.bind(this)).then(this.mutateData.bind(this)).then(this.validateData.bind(this)).then(this.setData.bind(this)).catch((e=>(this.dispatch("import-error",e),this.dispatchExternal("importError",e),console.error("Import Error:",e||"Unable to import file"),this.table.dataLoader.alertError(),setTimeout((()=>{this.table.dataLoader.clearAlert()}),3e3),Promise.reject(e))))}pickFile(e,t){return new Promise(((n,o)=>{var i=document.createElement("input");i.type="file",i.accept=e,i.addEventListener("change",(e=>{var r=i.files[0],s=new FileReader,a=this.validateFile(r);if(!0===a){switch(this.dispatch("import-importing",i.files),this.dispatchExternal("importImporting",i.files),t||this.table.options.importReader){case"buffer":s.readAsArrayBuffer(r);break;case"binary":s.readAsBinaryString(r);break;case"url":s.readAsDataURL(r);break;default:s.readAsText(r)}s.onload=e=>{n(s.result)},s.onerror=e=>{console.warn("File Load Error - Unable to read file"),o(e)}}else o(a)})),this.dispatch("import-choose"),this.dispatchExternal("importChoose"),i.click()}))}importData(e,t){var n;return this.table.dataLoader.alertLoader(),new Promise(((o,i)=>{setTimeout((()=>{(n=e.call(this.table,t))instanceof Promise||n?o(n):i()}),10)}))}structureData(e){return Array.isArray(e)&&e.length&&Array.isArray(e[0])?this.table.options.autoColumns?this.structureArrayToObject(e):this.structureArrayToColumns(e):e}mutateData(e){var t=[];return Array.isArray(e)?e.forEach((e=>{t.push(this.table.modules.mutator.transformRow(e,"import"))})):t=e,t}transformHeader(e){var t=[];return this.table.options.importHeaderTransform?(e.forEach((n=>{t.push(this.table.options.importHeaderTransform.call(this.table,n,e))})),t):e}transformData(e){var t=[];return this.table.options.importValueTransform?(e.forEach((n=>{t.push(this.table.options.importValueTransform.call(this.table,n,e))})),t):e}structureArrayToObject(e){var t=this.transformHeader(e.shift());return e.map((e=>{var n={};return e=this.transformData(e),t.forEach(((t,o)=>{n[t]=e[o]})),n}))}structureArrayToColumns(e){var t=[],n=this.transformHeader(e[0]),o=this.table.getColumns();return o[0]&&n[0]&&o[0].getDefinition().title===n[0]&&e.shift(),e.forEach((e=>{var n={};(e=this.transformData(e)).forEach(((e,t)=>{var i=o[t];i&&(n[i.getField()]=e)})),t.push(n)})),t}validateFile(e){return!this.table.options.importFileValidator||this.table.options.importFileValidator.call(this.table,e)}validateData(e){var t;return this.table.options.importDataValidator?!0===(t=this.table.options.importDataValidator.call(this.table,e))?e:Promise.reject(t):e}setData(e){return this.dispatch("import-imported",e),this.dispatchExternal("importImported",e),this.table.dataLoader.clearAlert(),this.table.setData(e)}}var ee={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,navLeft:37,navRight:39,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35},te={keyBlock:function(e){e.stopPropagation(),e.preventDefault()},scrollPageUp:function(e){var t=this.table.rowManager,n=t.scrollTop-t.element.clientHeight;e.preventDefault(),t.displayRowsCount&&(n>=0?t.element.scrollTop=n:t.scrollToRow(t.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(e){var t=this.table.rowManager,n=t.scrollTop+t.element.clientHeight,o=t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(n<=o?t.element.scrollTop=n:t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1]),this.table.element.focus()},navPrev:function(e){this.dispatch("keybinding-nav-prev",e)},navNext:function(e){this.dispatch("keybinding-nav-next",e)},navLeft:function(e){this.dispatch("keybinding-nav-left",e)},navRight:function(e){this.dispatch("keybinding-nav-right",e)},navUp:function(e){this.dispatch("keybinding-nav-up",e)},navDown:function(e){this.dispatch("keybinding-nav-down",e)}};class ne extends s{static moduleName="keybindings";static bindings=ee;static actions=te;constructor(e){super(e),this.watchKeys=null,this.pressedKeys=null,this.keyupBinding=!1,this.keydownBinding=!1,this.registerTableOption("keybindings",{}),this.registerTableOption("tabEndNewRow",!1)}initialize(){var e=this.table.options.keybindings,t={};this.watchKeys={},this.pressedKeys=[],!1!==e&&(Object.assign(t,ne.bindings),Object.assign(t,e),this.mapBindings(t),this.bindEvents()),this.subscribe("table-destroy",this.clearBindings.bind(this))}mapBindings(e){for(let t in e)ne.actions[t]?e[t]&&("object"!=typeof e[t]&&(e[t]=[e[t]]),e[t].forEach((e=>{(Array.isArray(e)?e:[e]).forEach((e=>{this.mapBinding(t,e)}))}))):console.warn("Key Binding Error - no such action:",t)}mapBinding(e,t){var n={action:ne.actions[e],keys:[],ctrl:!1,shift:!1,meta:!1};t.toString().toLowerCase().split(" ").join("").split("+").forEach((e=>{switch(e){case"ctrl":n.ctrl=!0;break;case"shift":n.shift=!0;break;case"meta":n.meta=!0;break;default:e=isNaN(e)?e.toUpperCase().charCodeAt(0):parseInt(e),n.keys.push(e),this.watchKeys[e]||(this.watchKeys[e]=[]),this.watchKeys[e].push(n)}}))}bindEvents(){var e=this;this.keyupBinding=function(t){var n=t.keyCode,o=e.watchKeys[n];o&&(e.pressedKeys.push(n),o.forEach((function(n){e.checkBinding(t,n)})))},this.keydownBinding=function(t){var n=t.keyCode;if(e.watchKeys[n]){var o=e.pressedKeys.indexOf(n);o>-1&&e.pressedKeys.splice(o,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)}clearBindings(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)}checkBinding(e,t){var n=!0;return e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&e.metaKey==t.meta&&(t.keys.forEach((e=>{-1==this.pressedKeys.indexOf(e)&&(n=!1)})),n&&t.action.call(this,e),!0)}}var oe={delete:function(e,t,n){e.delete()}},ie={insert:function(e,t,n){return this.table.addRow(e.getData(),void 0,t),!0},add:function(e,t,n){return this.table.addRow(e.getData()),!0},update:function(e,t,n){return!!t&&(t.update(e.getData()),!0)},replace:function(e,t,n){return!!t&&(this.table.addRow(e.getData(),void 0,t),t.delete(),!0)}};class re extends s{static moduleName="moveRow";static senders=oe;static receivers=ie;constructor(e){super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=150,this.moving=!1,this.toRow=!1,this.toRowAfter=!1,this.hasHandle=!1,this.startY=0,this.startX=0,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.tableRowDropEvent=!1,this.touchMove=!1,this.connection=!1,this.connectionSelectorsTables=!1,this.connectionSelectorsElements=!1,this.connectionElements=[],this.connections=[],this.connectedTable=!1,this.connectedRow=!1,this.registerTableOption("movableRows",!1),this.registerTableOption("movableRowsConnectedTables",!1),this.registerTableOption("movableRowsConnectedElements",!1),this.registerTableOption("movableRowsSender",!1),this.registerTableOption("movableRowsReceiver","insert"),this.registerColumnOption("rowHandle")}createPlaceholderElement(){var e=document.createElement("div");return e.classList.add("tabulator-row"),e.classList.add("tabulator-row-placeholder"),e}initialize(){this.table.options.movableRows&&(this.connectionSelectorsTables=this.table.options.movableRowsConnectedTables,this.connectionSelectorsElements=this.table.options.movableRowsConnectedElements,this.connection=this.connectionSelectorsTables||this.connectionSelectorsElements,this.subscribe("cell-init",this.initializeCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)))}initializeGroupHeader(e){var t=this,n={};n.mouseup=function(n){t.tableRowDrop(n,e)}.bind(t),n.mousemove=function(n){var o;n.pageY-i.elOffset(e.element).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?t.toRow===e&&t.toRowAfter||((o=e.getElement()).parentNode.insertBefore(t.placeholderElement,o.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(o=e.getElement()).previousSibling&&(o.parentNode.insertBefore(t.placeholderElement,o),t.moveRow(e,!1))}.bind(t),e.modules.moveRow=n}initializeRow(e){var t,n=this,o={};o.mouseup=function(t){n.tableRowDrop(t,e)}.bind(n),o.mousemove=function(t){var o=e.getElement();t.pageY-i.elOffset(o).top+n.table.rowManager.element.scrollTop>e.getHeight()/2?n.toRow===e&&n.toRowAfter||(o.parentNode.insertBefore(n.placeholderElement,o.nextSibling),n.moveRow(e,!0)):(n.toRow!==e||n.toRowAfter)&&(o.parentNode.insertBefore(n.placeholderElement,o),n.moveRow(e,!1))}.bind(n),this.hasHandle||((t=e.getElement()).addEventListener("mousedown",(function(t){1===t.which&&(n.checkTimeout=setTimeout((function(){n.startMove(t,e)}),n.checkPeriod))})),t.addEventListener("mouseup",(function(e){1===e.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)})),this.bindTouchEvents(e,e.getElement())),e.modules.moveRow=o}initializeColumn(e){e.definition.rowHandle&&!1!==this.table.options.movableRows&&(this.hasHandle=!0)}initializeCell(e){if(e.column.definition.rowHandle&&!1!==this.table.options.movableRows){var t=this,n=e.getElement(!0);n.addEventListener("mousedown",(function(n){1===n.which&&(t.checkTimeout=setTimeout((function(){t.startMove(n,e.row)}),t.checkPeriod))})),n.addEventListener("mouseup",(function(e){1===e.which&&t.checkTimeout&&clearTimeout(t.checkTimeout)})),this.bindTouchEvents(e.row,n)}}bindTouchEvents(e,t){var n,o,i,r,s,a,l=!1;t.addEventListener("touchstart",(t=>{this.checkTimeout=setTimeout((()=>{this.touchMove=!0,n=e.nextRow(),i=n?n.getHeight()/2:0,o=e.prevRow(),r=o?o.getHeight()/2:0,s=0,a=0,l=!1,this.startMove(t,e)}),this.checkPeriod)}),{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",(t=>{var c,d;this.moving&&(t.preventDefault(),this.moveHover(t),l||(l=t.touches[0].pageY),(c=t.touches[0].pageY-l)>0?n&&c-s>i&&(d=n)!==e&&(l=t.touches[0].pageY,d.getElement().parentNode.insertBefore(this.placeholderElement,d.getElement().nextSibling),this.moveRow(d,!0)):o&&-c-a>r&&(d=o)!==e&&(l=t.touches[0].pageY,d.getElement().parentNode.insertBefore(this.placeholderElement,d.getElement()),this.moveRow(d,!1)),d&&(n=d.nextRow(),s=i,i=n?n.getHeight()/2:0,o=d.prevRow(),a=r,r=o?o.getHeight()/2:0))})),t.addEventListener("touchend",(e=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&(this.endMove(e),this.touchMove=!1)}))}_bindMouseMove(){this.table.rowManager.getDisplayRows().forEach((e=>{("row"===e.type||"group"===e.type)&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveRow.mousemove)}))}_unbindMouseMove(){this.table.rowManager.getDisplayRows().forEach((e=>{("row"===e.type||"group"===e.type)&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveRow.mousemove)}))}startMove(e,t){var n=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(t)):(n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n)),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.dispatchExternal("rowMoving",t.getComponent()),this.moveHover(e)}setStartPosition(e,t){var n,o,i=this.touchMove?e.touches[0].pageX:e.pageX,r=this.touchMove?e.touches[0].pageY:e.pageY;n=t.getElement(),this.connection?(o=n.getBoundingClientRect(),this.startX=o.left-i+window.pageXOffset,this.startY=o.top-r+window.pageYOffset):this.startY=r-n.getBoundingClientRect().top}endMove(e){e&&1!==e.which&&!this.touchMove||(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow?this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter):this.dispatchExternal("rowMoveCancelled",this.moving.getComponent()),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))}moveRow(e,t){this.toRow=e,this.toRowAfter=t}moveHover(e){this.connection?this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)}moveHoverTable(e){var t=this.table.rowManager.getElement(),n=t.scrollTop,o=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+n;this.hoverElement.style.top=Math.min(o-this.startY,this.table.rowManager.element.scrollHeight-this.hoverElement.offsetHeight)+"px"}moveHoverConnections(e){this.hoverElement.style.left=this.startX+(this.touchMove?e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?e.touches[0].pageY:e.pageY)+"px"}elementRowDrop(e,t,n){this.dispatchExternal("movableRowsElementDrop",e,t,!!n&&n.getComponent())}connectToTables(e){var t;this.connectionSelectorsTables&&(t=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStart",t),this.commsSend(this.connectionSelectorsTables,"moveRow","connect",{row:e})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach((e=>{"string"==typeof e?this.connectionElements=this.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(e))):this.connectionElements.push(e)})),this.connectionElements.forEach((e=>{var t=t=>{this.elementRowDrop(t,e,this.moving)};e.addEventListener("mouseup",t),e.tabulatorElementDropEvent=t,e.classList.add("tabulator-movingrow-receiving")})))}disconnectFromTables(){var e;this.connectionSelectorsTables&&(e=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStop",e),this.commsSend(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach((e=>{e.classList.remove("tabulator-movingrow-receiving"),e.removeEventListener("mouseup",e.tabulatorElementDropEvent),delete e.tabulatorElementDropEvent}))}connect(e,t){return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach((e=>{"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().addEventListener("mouseup",e.modules.moveRow.mouseup)})),this.tableRowDropEvent=this.tableRowDrop.bind(this),this.table.element.addEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStart",t,e),!0)}disconnect(e){e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach((e=>{"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().removeEventListener("mouseup",e.modules.moveRow.mouseup)})),this.table.element.removeEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStop",e)):console.warn("Move Row Error - trying to disconnect from non connected table")}dropComplete(e,t,n){var o=!1;if(n){switch(typeof this.table.options.movableRowsSender){case"string":o=re.senders[this.table.options.movableRowsSender];break;case"function":o=this.table.options.movableRowsSender}o?o.call(this,this.moving?this.moving.getComponent():void 0,t?t.getComponent():void 0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.dispatchExternal("movableRowsSent",this.moving.getComponent(),t?t.getComponent():void 0,e)}else this.dispatchExternal("movableRowsSentFailed",this.moving.getComponent(),t?t.getComponent():void 0,e);this.endMove()}tableRowDrop(e,t){var n=!1,o=!1;switch(e.stopImmediatePropagation(),typeof this.table.options.movableRowsReceiver){case"string":n=re.receivers[this.table.options.movableRowsReceiver];break;case"function":n=this.table.options.movableRowsReceiver}n?o=n.call(this,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),o?this.dispatchExternal("movableRowsReceived",this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):this.dispatchExternal("movableRowsReceivedFailed",this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable),this.commsSend(this.connectedTable,"moveRow","dropcomplete",{row:t,success:o})}commsReceived(e,t,n){switch(t){case"connect":return this.connect(e,n.row);case"disconnect":return this.disconnect(e);case"dropcomplete":return this.dropComplete(e,n.row,n.success)}}}var se={};class ae extends s{static moduleName="mutator";static mutators=se;constructor(e){super(e),this.allowedTypes=["","data","edit","clipboard","import"],this.enabled=!0,this.registerColumnOption("mutator"),this.registerColumnOption("mutatorParams"),this.registerColumnOption("mutatorData"),this.registerColumnOption("mutatorDataParams"),this.registerColumnOption("mutatorEdit"),this.registerColumnOption("mutatorEditParams"),this.registerColumnOption("mutatorClipboard"),this.registerColumnOption("mutatorClipboardParams"),this.registerColumnOption("mutatorImport"),this.registerColumnOption("mutatorImportParams"),this.registerColumnOption("mutateLink")}initialize(){this.subscribe("cell-value-changing",this.transformCell.bind(this)),this.subscribe("cell-value-changed",this.mutateLink.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-init-before",this.rowDataChanged.bind(this)),this.subscribe("row-data-changing",this.rowDataChanged.bind(this))}rowDataChanged(e,t,n){return this.transformRow(t,"data",n)}initializeColumn(e){var t=!1,n={};this.allowedTypes.forEach((o=>{var i,r="mutator"+(o.charAt(0).toUpperCase()+o.slice(1));e.definition[r]&&(i=this.lookupMutator(e.definition[r]))&&(t=!0,n[r]={mutator:i,params:e.definition[r+"Params"]||{}})})),t&&(e.modules.mutate=n)}lookupMutator(e){var t=!1;switch(typeof e){case"string":ae.mutators[e]?t=ae.mutators[e]:console.warn("Mutator Error - No such mutator found, ignoring: ",e);break;case"function":t=e}return t}transformRow(e,t,n){var o,i="mutator"+(t.charAt(0).toUpperCase()+t.slice(1));return this.enabled&&this.table.columnManager.traverse((r=>{var s,a,l;r.modules.mutate&&(s=r.modules.mutate[i]||r.modules.mutate.mutator||!1)&&(o=r.getFieldValue(void 0!==n?n:e),("data"==t&&!n||void 0!==o)&&(l=r.getComponent(),a="function"==typeof s.params?s.params(o,e,t,l):s.params,r.setFieldValue(e,s.mutator(o,e,t,a,l))))})),e}transformCell(e,t){if(e.column.modules.mutate){var n=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1,o={};if(n)return o=Object.assign(o,e.row.getData()),e.column.setFieldValue(o,t),n.mutator(t,o,"edit",n.params,e.getComponent())}return t}mutateLink(e){var t=e.column.definition.mutateLink;t&&(Array.isArray(t)||(t=[t]),t.forEach((t=>{var n=e.row.getCell(t);n&&n.setValue(n.getValue(),!0,!0)})))}enable(){this.enabled=!0}disable(){this.enabled=!1}}var le={rows:function(e,t,n,o,i){var r=document.createElement("span"),s=document.createElement("span"),a=document.createElement("span"),l=document.createElement("span"),c=document.createElement("span"),d=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",(e=>{s.innerHTML=e})),this.table.modules.localize.langBind("pagination|counter|of",(e=>{l.innerHTML=e})),this.table.modules.localize.langBind("pagination|counter|rows",(e=>{d.innerHTML=e})),o?(a.innerHTML=" "+t+"-"+Math.min(t+e-1,o)+" ",c.innerHTML=" "+o+" ",r.appendChild(s),r.appendChild(a),r.appendChild(l),r.appendChild(c),r.appendChild(d)):(a.innerHTML=" 0 ",r.appendChild(s),r.appendChild(a),r.appendChild(d)),r},pages:function(e,t,n,o,i){var r=document.createElement("span"),s=document.createElement("span"),a=document.createElement("span"),l=document.createElement("span"),c=document.createElement("span"),d=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",(e=>{s.innerHTML=e})),a.innerHTML=" "+n+" ",this.table.modules.localize.langBind("pagination|counter|of",(e=>{l.innerHTML=e})),c.innerHTML=" "+i+" ",this.table.modules.localize.langBind("pagination|counter|pages",(e=>{d.innerHTML=e})),r.appendChild(s),r.appendChild(a),r.appendChild(l),r.appendChild(c),r.appendChild(d),r}};class ce extends s{static moduleName="page";static pageCounters=le;constructor(e){super(e),this.mode="local",this.progressiveLoad=!1,this.element=null,this.pageCounterElement=null,this.pageCounter=null,this.size=0,this.page=1,this.count=5,this.max=1,this.remoteRowCountEstimate=null,this.initialLoad=!0,this.dataChanging=!1,this.pageSizes=[],this.registerTableOption("pagination",!1),this.registerTableOption("paginationMode","local"),this.registerTableOption("paginationSize",!1),this.registerTableOption("paginationInitialPage",1),this.registerTableOption("paginationCounter",!1),this.registerTableOption("paginationCounterElement",!1),this.registerTableOption("paginationButtonCount",5),this.registerTableOption("paginationSizeSelector",!1),this.registerTableOption("paginationElement",!1),this.registerTableOption("paginationAddRow","page"),this.registerTableOption("paginationOutOfRange",!1),this.registerTableOption("progressiveLoad",!1),this.registerTableOption("progressiveLoadDelay",0),this.registerTableOption("progressiveLoadScrollMargin",0),this.registerTableFunction("setMaxPage",this.setMaxPage.bind(this)),this.registerTableFunction("setPage",this.setPage.bind(this)),this.registerTableFunction("setPageToRow",this.userSetPageToRow.bind(this)),this.registerTableFunction("setPageSize",this.userSetPageSize.bind(this)),this.registerTableFunction("getPageSize",this.getPageSize.bind(this)),this.registerTableFunction("previousPage",this.previousPage.bind(this)),this.registerTableFunction("nextPage",this.nextPage.bind(this)),this.registerTableFunction("getPage",this.getPage.bind(this)),this.registerTableFunction("getPageMax",this.getPageMax.bind(this)),this.registerComponentFunction("row","pageTo",this.setPageToRow.bind(this))}initialize(){this.table.options.pagination?(this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("footer-redraw",this.footerRedraw.bind(this)),"page"==this.table.options.paginationAddRow&&this.subscribe("row-adding-position",this.rowAddingPosition.bind(this)),"remote"===this.table.options.paginationMode&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this))),this.table.options.progressiveLoad&&console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time"),this.registerDisplayHandler(this.restOnRenderBefore.bind(this),40),this.registerDisplayHandler(this.getRows.bind(this),50),this.createElements(),this.initializePageCounter(),this.initializePaginator()):this.table.options.progressiveLoad&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.initializeProgressive(this.table.options.progressiveLoad),"scroll"===this.table.options.progressiveLoad&&this.subscribe("scroll-vertical",this.scrollVertical.bind(this)))}rowAddingPosition(e,t){var n,o=this.table.rowManager,i=o.getDisplayRows();return t?i.length?n=i[0]:o.activeRows.length&&(n=o.activeRows[o.activeRows.length-1],t=!1):i.length&&(n=i[i.length-1],t=!(i.length<this.size)),{index:n,top:t}}calculatePageSizes(){var e,t;this.table.options.paginationSize?this.size=this.table.options.paginationSize:((e=document.createElement("div")).classList.add("tabulator-row"),e.style.visibility="hidden",(t=document.createElement("div")).classList.add("tabulator-cell"),t.innerHTML="Page Row Test",e.appendChild(t),this.table.rowManager.getTableElement().appendChild(e),this.size=Math.floor(this.table.rowManager.getElement().clientHeight/e.offsetHeight),this.table.rowManager.getTableElement().removeChild(e)),this.dispatchExternal("pageSizeChanged",this.size),this.generatePageSizeSelectList()}initialLoadComplete(){this.initialLoad=!1}remotePageParams(e,t,n,o){return this.initialLoad||(this.progressiveLoad&&!n||!this.progressiveLoad&&!this.dataChanging)&&this.reset(!0),o.page=this.page,this.size&&(o.size=this.size),o}userSetPageToRow(e){return this.table.options.pagination&&(e=this.table.rowManager.findRow(e))?this.setPageToRow(e):Promise.reject()}userSetPageSize(e){return!!this.table.options.pagination&&(this.setPageSize(e),this.setPage(1))}scrollVertical(e,t){var n;t||this.table.dataLoader.loading||(n=this.table.rowManager.getElement()).scrollHeight-n.clientHeight-e<(this.table.options.progressiveLoadScrollMargin||2*n.clientHeight)&&this.nextPage().catch((()=>{}))}restOnRenderBefore(e,t){return t||"local"===this.mode&&this.reset(),e}rowsUpdated(){this.refreshData(!0,"all")}createElements(){var e;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),(e=document.createElement("button")).classList.add("tabulator-page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribute("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))}generatePageSizeSelectList(){var e=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))e=this.table.options.paginationSizeSelector,this.pageSizes=e,-1==this.pageSizes.indexOf(this.size)&&e.unshift(this.size);else if(-1==this.pageSizes.indexOf(this.size)){e=[];for(let t=1;t<5;t++)e.push(this.size*t);this.pageSizes=e}else e=this.pageSizes;for(;this.pageSizeSelect.firstChild;)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);e.forEach((e=>{var t=document.createElement("option");t.value=e,!0===e?this.langBind("pagination|all",(function(e){t.innerHTML=e})):t.innerHTML=e,this.pageSizeSelect.appendChild(t)})),this.pageSizeSelect.value=this.size}}initializePageCounter(){var e=this.table.options.paginationCounter,t=null;e&&((t="function"==typeof e?e:ce.pageCounters[e])?(this.pageCounter=t,this.pageCounterElement=document.createElement("span"),this.pageCounterElement.classList.add("tabulator-page-counter")):console.warn("Pagination Error - No such page counter found: ",e))}initializePaginator(e){var t,n;e||(this.langBind("pagination|first",(e=>{this.firstBut.innerHTML=e})),this.langBind("pagination|first_title",(e=>{this.firstBut.setAttribute("aria-label",e),this.firstBut.setAttribute("title",e)})),this.langBind("pagination|prev",(e=>{this.prevBut.innerHTML=e})),this.langBind("pagination|prev_title",(e=>{this.prevBut.setAttribute("aria-label",e),this.prevBut.setAttribute("title",e)})),this.langBind("pagination|next",(e=>{this.nextBut.innerHTML=e})),this.langBind("pagination|next_title",(e=>{this.nextBut.setAttribute("aria-label",e),this.nextBut.setAttribute("title",e)})),this.langBind("pagination|last",(e=>{this.lastBut.innerHTML=e})),this.langBind("pagination|last_title",(e=>{this.lastBut.setAttribute("aria-label",e),this.lastBut.setAttribute("title",e)})),this.firstBut.addEventListener("click",(()=>{this.setPage(1)})),this.prevBut.addEventListener("click",(()=>{this.previousPage()})),this.nextBut.addEventListener("click",(()=>{this.nextPage()})),this.lastBut.addEventListener("click",(()=>{this.setPage(this.max)})),this.table.options.paginationElement&&(this.element=this.table.options.paginationElement),this.pageSizeSelect&&(t=document.createElement("label"),this.langBind("pagination|page_size",(e=>{this.pageSizeSelect.setAttribute("aria-label",e),this.pageSizeSelect.setAttribute("title",e),t.innerHTML=e})),this.element.appendChild(t),this.element.appendChild(this.pageSizeSelect),this.pageSizeSelect.addEventListener("change",(e=>{this.setPageSize("true"==this.pageSizeSelect.value||this.pageSizeSelect.value),this.setPage(1)}))),this.element.appendChild(this.firstBut),this.element.appendChild(this.prevBut),this.element.appendChild(this.pagesElement),this.element.appendChild(this.nextBut),this.element.appendChild(this.lastBut),this.table.options.paginationElement||(this.table.options.paginationCounter&&(this.table.options.paginationCounterElement?this.table.options.paginationCounterElement instanceof HTMLElement?this.table.options.paginationCounterElement.appendChild(this.pageCounterElement):"string"==typeof this.table.options.paginationCounterElement&&((n=document.querySelector(this.table.options.paginationCounterElement))?n.appendChild(this.pageCounterElement):console.warn("Pagination Error - Unable to find element matching paginationCounterElement selector:",this.table.options.paginationCounterElement)):this.footerAppend(this.pageCounterElement)),this.footerAppend(this.element)),this.page=this.table.options.paginationInitialPage,this.count=this.table.options.paginationButtonCount),this.mode=this.table.options.paginationMode}initializeProgressive(e){this.initializePaginator(!0),this.mode="progressive_"+e,this.progressiveLoad=!0}trackChanges(){this.dispatch("page-changed")}setMaxRows(e){this.max=e?!0===this.size?1:Math.ceil(e/this.size):1,this.page>this.max&&(this.page=this.max)}reset(e){this.initialLoad||("local"==this.mode||e)&&(this.page=1,this.trackChanges())}setMaxPage(e){e=parseInt(e),this.max=e||1,this.page>this.max&&(this.page=this.max,this.trigger())}setPage(e){switch(e){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return(e=parseInt(e))>0&&e<=this.max||"local"!==this.mode?(this.page=e,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Requested page is out of range of 1 - "+this.max+":",e),Promise.reject())}setPageToRow(e){var t=this.displayRows(-1).indexOf(e);if(t>-1){var n=!0===this.size?1:Math.ceil((t+1)/this.size);return this.setPage(n)}return console.warn("Pagination Error - Requested row is not visible"),Promise.reject()}setPageSize(e){!0!==e&&(e=parseInt(e)),e>0&&(this.size=e,this.dispatchExternal("pageSizeChanged",e)),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.trackChanges()}_setPageCounter(e,t,n){var o;if(this.pageCounter)switch("remote"===this.mode&&(t=this.size,n=(this.page-1)*this.size+1,e=this.remoteRowCountEstimate),typeof(o=this.pageCounter.call(this,t,n,this.page,e,this.max))){case"object":if(o instanceof Node){for(;this.pageCounterElement.firstChild;)this.pageCounterElement.removeChild(this.pageCounterElement.firstChild);this.pageCounterElement.appendChild(o)}else this.pageCounterElement.innerHTML="",null!=o&&console.warn("Page Counter Error - Page Counter has returned a type of object, the only valid page counter object return is an instance of Node, the page counter returned:",o);break;case"undefined":this.pageCounterElement.innerHTML="";break;default:this.pageCounterElement.innerHTML=o}}_setPageButtons(){let e=Math.floor((this.count-1)/2),t=Math.ceil((this.count-1)/2),n=this.max-this.page+e+1<this.count?this.max-this.count+1:Math.max(this.page-e,1),o=this.page<=t?Math.min(this.count,this.max):Math.min(this.page+t,this.max);for(;this.pagesElement.firstChild;)this.pagesElement.removeChild(this.pagesElement.firstChild);1==this.page?(this.firstBut.disabled=!0,this.prevBut.disabled=!0):(this.firstBut.disabled=!1,this.prevBut.disabled=!1),this.page==this.max?(this.lastBut.disabled=!0,this.nextBut.disabled=!0):(this.lastBut.disabled=!1,this.nextBut.disabled=!1);for(let e=n;e<=o;e++)e>0&&e<=this.max&&this.pagesElement.appendChild(this._generatePageButton(e));this.footerRedraw()}_generatePageButton(e){var t=document.createElement("button");return t.classList.add("tabulator-page"),e==this.page&&t.classList.add("active"),t.setAttribute("type","button"),t.setAttribute("role","button"),this.langBind("pagination|page_title",(n=>{t.setAttribute("aria-label",n+" "+e),t.setAttribute("title",n+" "+e)})),t.setAttribute("data-page",e),t.textContent=e,t.addEventListener("click",(t=>{this.setPage(e)})),t}previousPage(){return this.page>1?(this.page--,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Previous page would be less than page 1:",0),Promise.reject())}nextPage(){return this.page<this.max?(this.page++,this.trackChanges(),this.trigger()):(this.progressiveLoad||console.warn("Pagination Error - Next page would be greater than maximum page of "+this.max+":",this.max+1),Promise.reject())}getPage(){return this.page}getPageMax(){return this.max}getPageSize(e){return this.size}getMode(){return this.mode}getRows(e){var t,n,o,i,r=0,s=e.filter((e=>"row"===e.type));if("local"==this.mode){t=[],this.setMaxRows(e.length),!0===this.size?(n=0,o=e.length):o=(n=this.size*(this.page-1))+parseInt(this.size),this._setPageButtons();for(let s=n;s<o;s++){let n=e[s];n&&(t.push(n),"row"===n.type&&(i||(i=n),r++))}return this._setPageCounter(s.length,r,i?s.indexOf(i)+1:0),t}return this._setPageButtons(),this._setPageCounter(s.length),e.slice(0)}trigger(){var e;switch(this.mode){case"local":return e=this.table.rowManager.scrollLeft,this.refreshData(),this.table.rowManager.scrollHorizontal(e),this.dispatchExternal("pageLoaded",this.getPage()),Promise.resolve();case"remote":return this.dataChanging=!0,this.reloadData(null).finally((()=>{this.dataChanging=!1}));case"progressive_load":case"progressive_scroll":return this.reloadData(null,!0);default:return console.warn("Pagination Error - no such pagination mode:",this.mode),Promise.reject()}}_parseRemoteData(e){var t,n;if(void 0===e.last_page&&console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").last_page||"last_page")+"' property"),e.data){if(this.max=parseInt(e.last_page)||1,this.remoteRowCountEstimate=void 0!==e.last_row?e.last_row:e.last_page*this.size-(this.page==e.last_page?this.size-e.data.length:0),this.progressiveLoad){switch(this.mode){case"progressive_load":1==this.page?this.table.rowManager.setData(e.data,!1,1==this.page):this.table.rowManager.addRows(e.data),this.page<this.max&&setTimeout((()=>{this.nextPage()}),this.table.options.progressiveLoadDelay);break;case"progressive_scroll":e=1===this.page?e.data:this.table.rowManager.getData().concat(e.data),this.table.rowManager.setData(e,1!==this.page,1==this.page),t=this.table.options.progressiveLoadScrollMargin||2*this.table.rowManager.element.clientHeight,this.table.rowManager.element.scrollHeight<=this.table.rowManager.element.clientHeight+t&&this.page<this.max&&setTimeout((()=>{this.nextPage()}))}return!1}if(this.page>this.max&&(console.warn("Remote Pagination Error - Server returned last page value lower than the current page"),n=this.options("paginationOutOfRange")))return this.setPage("function"==typeof n?n.call(this,this.page,this.max):n);this.dispatchExternal("pageLoaded",this.getPage())}else console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").data||"data")+"' property");return e.data}footerRedraw(){var e=this.table.footerManager.containerElement;Math.ceil(e.clientWidth)-e.scrollWidth<0?this.pagesElement.style.display="none":(this.pagesElement.style.display="",Math.ceil(e.clientWidth)-e.scrollWidth<0&&(this.pagesElement.style.display="none"))}}var de={local:function(e,t){var n=localStorage.getItem(e+"-"+t);return!!n&&JSON.parse(n)},cookie:function(e,t){var n,o,i=document.cookie,r=e+"-"+t,s=i.indexOf(r+"=");return s>-1&&((n=(i=i.slice(s)).indexOf(";"))>-1&&(i=i.slice(0,n)),o=i.replace(r+"=","")),!!o&&JSON.parse(o)}},ue={local:function(e,t,n){localStorage.setItem(e+"-"+t,JSON.stringify(n))},cookie:function(e,t,n){var o=new Date;o.setDate(o.getDate()+1e4),document.cookie=e+"-"+t+"="+JSON.stringify(n)+"; expires="+o.toUTCString()}};class he extends s{static moduleName="persistence";static moduleInitOrder=-10;static readers=de;static writers=ue;constructor(e){super(e),this.mode="",this.id="",this.defWatcherBlock=!1,this.config={},this.readFunc=!1,this.writeFunc=!1,this.registerTableOption("persistence",!1),this.registerTableOption("persistenceID",""),this.registerTableOption("persistenceMode",!0),this.registerTableOption("persistenceReaderFunc",!1),this.registerTableOption("persistenceWriterFunc",!1)}localStorageTest(){var e="_tabulator_test";try{return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}initialize(){if(this.table.options.persistence){var e,t=this.table.options.persistenceMode,n=this.table.options.persistenceID;this.mode=!0!==t?t:this.localStorageTest()?"local":"cookie",this.table.options.persistenceReaderFunc?"function"==typeof this.table.options.persistenceReaderFunc?this.readFunc=this.table.options.persistenceReaderFunc:he.readers[this.table.options.persistenceReaderFunc]?this.readFunc=he.readers[this.table.options.persistenceReaderFunc]:console.warn("Persistence Read Error - invalid reader set",this.table.options.persistenceReaderFunc):he.readers[this.mode]?this.readFunc=he.readers[this.mode]:console.warn("Persistence Read Error - invalid reader set",this.mode),this.table.options.persistenceWriterFunc?"function"==typeof this.table.options.persistenceWriterFunc?this.writeFunc=this.table.options.persistenceWriterFunc:he.writers[this.table.options.persistenceWriterFunc]?this.writeFunc=he.writers[this.table.options.persistenceWriterFunc]:console.warn("Persistence Write Error - invalid reader set",this.table.options.persistenceWriterFunc):he.writers[this.mode]?this.writeFunc=he.writers[this.mode]:console.warn("Persistence Write Error - invalid writer set",this.mode),this.id="tabulator-"+(n||this.table.element.getAttribute("id")||""),this.config={sort:!0===this.table.options.persistence||this.table.options.persistence.sort,filter:!0===this.table.options.persistence||this.table.options.persistence.filter,headerFilter:!0===this.table.options.persistence||this.table.options.persistence.headerFilter,group:!0===this.table.options.persistence||this.table.options.persistence.group,page:!0===this.table.options.persistence||this.table.options.persistence.page,columns:!0===this.table.options.persistence?["title","width","visible"]:this.table.options.persistence.columns},this.config.page&&(e=this.retrieveData("page"))&&(void 0===e.paginationSize||!0!==this.config.page&&!this.config.page.size||(this.table.options.paginationSize=e.paginationSize),void 0===e.paginationInitialPage||!0!==this.config.page&&!this.config.page.page||(this.table.options.paginationInitialPage=e.paginationInitialPage)),this.config.group&&(e=this.retrieveData("group"))&&(void 0===e.groupBy||!0!==this.config.group&&!this.config.group.groupBy||(this.table.options.groupBy=e.groupBy),void 0===e.groupStartOpen||!0!==this.config.group&&!this.config.group.groupStartOpen||(this.table.options.groupStartOpen=e.groupStartOpen),void 0===e.groupHeader||!0!==this.config.group&&!this.config.group.groupHeader||(this.table.options.groupHeader=e.groupHeader)),this.config.columns&&(this.table.options.columns=this.load("columns",this.table.options.columns),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-show",this.save.bind(this,"columns")),this.subscribe("column-hide",this.save.bind(this,"columns")),this.subscribe("column-moved",this.save.bind(this,"columns"))),this.subscribe("table-built",this.tableBuilt.bind(this),0),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("filter-changed",this.eventSave.bind(this,"filter")),this.subscribe("filter-changed",this.eventSave.bind(this,"headerFilter")),this.subscribe("sort-changed",this.eventSave.bind(this,"sort")),this.subscribe("group-changed",this.eventSave.bind(this,"group")),this.subscribe("page-changed",this.eventSave.bind(this,"page")),this.subscribe("column-resized",this.eventSave.bind(this,"columns")),this.subscribe("column-width",this.eventSave.bind(this,"columns")),this.subscribe("layout-refreshed",this.eventSave.bind(this,"columns"))}this.registerTableFunction("getColumnLayout",this.getColumnLayout.bind(this)),this.registerTableFunction("setColumnLayout",this.setColumnLayout.bind(this))}eventSave(e){this.config[e]&&this.save(e)}tableBuilt(){var e,t,n;this.config.sort&&0==!(e=this.load("sort"))&&(this.table.options.initialSort=e),this.config.filter&&0==!(t=this.load("filter"))&&(this.table.options.initialFilter=t),this.config.headerFilter&&0==!(n=this.load("headerFilter"))&&(this.table.options.initialHeaderFilter=n)}tableRedraw(e){e&&this.config.columns&&this.save("columns")}getColumnLayout(){return this.parseColumns(this.table.columnManager.getColumns())}setColumnLayout(e){return this.table.columnManager.setColumns(this.mergeDefinition(this.table.options.columns,e,!0)),!0}initializeColumn(e){var t;this.config.columns&&(this.defWatcherBlock=!0,t=e.getDefinition(),(!0===this.config.columns?Object.keys(t):this.config.columns).forEach((e=>{var n=Object.getOwnPropertyDescriptor(t,e),o=t[e];n&&Object.defineProperty(t,e,{set:e=>{o=e,this.defWatcherBlock||this.save("columns"),n.set&&n.set(e)},get:()=>(n.get&&n.get(),o)})})),this.defWatcherBlock=!1)}load(e,t){var n=this.retrieveData(e);return t&&(n=n?this.mergeDefinition(t,n):t),n}retrieveData(e){return!!this.readFunc&&this.readFunc(this.id,e)}mergeDefinition(e,t,n){var o=[];return(t=t||[]).forEach(((t,i)=>{var r,s=this._findColumn(e,t);s&&(n?r=Object.keys(t):!0===this.config.columns||null==this.config.columns?(r=Object.keys(s)).push("width"):r=this.config.columns,r.forEach((e=>{"columns"!==e&&void 0!==t[e]&&(s[e]=t[e])})),s.columns&&(s.columns=this.mergeDefinition(s.columns,t.columns)),o.push(s))})),e.forEach(((e,n)=>{this._findColumn(t,e)||(o.length>n?o.splice(n,0,e):o.push(e))})),o}_findColumn(e,t){var n=t.columns?"group":t.field?"field":"object";return e.find((function(e){switch(n){case"group":return e.title===t.title&&e.columns.length===t.columns.length;case"field":return e.field===t.field;case"object":return e===t}}))}save(e){var t={};switch(e){case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":t=this.table.modules.filter.getFilters();break;case"headerFilter":t=this.table.modules.filter.getHeaderFilters();break;case"sort":t=this.validateSorters(this.table.modules.sort.getSort());break;case"group":t=this.getGroupConfig();break;case"page":t=this.getPageConfig()}this.writeFunc&&this.writeFunc(this.id,e,t)}validateSorters(e){return e.forEach((function(e){e.column=e.field,delete e.field})),e}getGroupConfig(){var e={};return this.config.group&&((!0===this.config.group||this.config.group.groupBy)&&(e.groupBy=this.table.options.groupBy),(!0===this.config.group||this.config.group.groupStartOpen)&&(e.groupStartOpen=this.table.options.groupStartOpen),(!0===this.config.group||this.config.group.groupHeader)&&(e.groupHeader=this.table.options.groupHeader)),e}getPageConfig(){var e={};return this.config.page&&((!0===this.config.page||this.config.page.size)&&(e.paginationSize=this.table.modules.page.getPageSize()),(!0===this.config.page||this.config.page.page)&&(e.paginationInitialPage=this.table.modules.page.getPage())),e}parseColumns(e){var t=[],n=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return e.forEach((e=>{var o,i={},r=e.getDefinition();e.isGroup?(i.title=r.title,i.columns=this.parseColumns(e.getColumns())):(i.field=e.getField(),!0===this.config.columns||null==this.config.columns?((o=Object.keys(r)).push("width"),o.push("visible")):o=this.config.columns,o.forEach((t=>{switch(t){case"width":i.width=e.getWidth();break;case"visible":i.visible=e.visible;break;default:"function"!=typeof r[t]&&-1===n.indexOf(t)&&(i[t]=r[t])}}))),t.push(i)})),t}}var me={format:{formatters:{responsiveCollapse:function(e,t,n){var o=document.createElement("div"),i=e.getRow()._row.modules.responsiveLayout;function r(e){var t=i.element;i.open=e,t&&(i.open?(o.classList.add("open"),t.style.display=""):(o.classList.remove("open"),t.style.display="none"))}return o.classList.add("tabulator-responsive-collapse-toggle"),o.innerHTML='<svg class=\'tabulator-responsive-collapse-toggle-open\' viewbox="0 0 24 24">\n <line x1="7" y1="12" x2="17" y2="12" fill="none" stroke-width="3" stroke-linecap="round" />\n <line y1="7" x1="12" y2="17" x2="12" fill="none" stroke-width="3" stroke-linecap="round" />\n</svg>\n\n<svg class=\'tabulator-responsive-collapse-toggle-close\' viewbox="0 0 24 24">\n <line x1="7" y1="12" x2="17" y2="12" fill="none" stroke-width="3" stroke-linecap="round" />\n</svg>',e.getElement().classList.add("tabulator-row-handle"),o.addEventListener("click",(function(t){t.stopImmediatePropagation(),r(!i.open),e.getTable().rowManager.adjustTableSize()})),r(i.open),o}}}},pe={format:{formatters:{rowSelection:function(e,t,n){var o=document.createElement("input"),i=!1;if(o.type="checkbox",o.setAttribute("aria-label","Select Row"),this.table.modExists("selectRow",!0))if(o.addEventListener("click",(e=>{e.stopPropagation()})),"function"==typeof e.getRow){var r=e.getRow();r instanceof k?(o.addEventListener("change",(e=>{"click"===this.table.options.selectableRowsRangeMode&&i?i=!1:r.toggleSelect()})),"click"===this.table.options.selectableRowsRangeMode&&o.addEventListener("click",(e=>{i=!0,this.table.modules.selectRow.handleComplexRowClick(r._row,e)})),o.checked=r.isSelected&&r.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(r,o)):o=""}else o.addEventListener("change",(e=>{this.table.modules.selectRow.selectedRows.length?this.table.deselectRow():this.table.selectRow(t.rowRange)})),this.table.modules.selectRow.registerHeaderSelectCheckbox(o);return o}}}};class fe{constructor(e){return this._range=e,new Proxy(this,{get:function(e,t,n){return void 0!==e[t]?e[t]:e._range.table.componentFunctionBinder.handle("range",e._range,t)}})}getElement(){return this._range.element}getData(){return this._range.getData()}getCells(){return this._range.getCells(!0,!0)}getStructuredCells(){return this._range.getStructuredCells()}getRows(){return this._range.getRows().map((e=>e.getComponent()))}getColumns(){return this._range.getColumns().map((e=>e.getComponent()))}getBounds(){return this._range.getBounds()}getTopEdge(){return this._range.top}getBottomEdge(){return this._range.bottom}getLeftEdge(){return this._range.left}getRightEdge(){return this._range.right}setBounds(e,t){this._range.destroyedGuard("setBounds")&&this._range.setBounds(e?e._cell:e,t?t._cell:t)}setStartBound(e){this._range.destroyedGuard("setStartBound")&&(this._range.setEndBound(e?e._cell:e),this._range.rangeManager.layoutElement())}setEndBound(e){this._range.destroyedGuard("setEndBound")&&(this._range.setEndBound(e?e._cell:e),this._range.rangeManager.layoutElement())}clearValues(){this._range.destroyedGuard("clearValues")&&this._range.clearValues()}remove(){this._range.destroyedGuard("remove")&&this._range.destroy(!0)}}class ge extends o{constructor(e,t,n,o){super(e),this.rangeManager=t,this.element=null,this.initialized=!1,this.initializing={start:!1,end:!1},this.destroyed=!1,this.top=0,this.bottom=0,this.left=0,this.right=0,this.table=e,this.start={row:0,col:0},this.end={row:0,col:0},this.rangeManager.rowHeader&&(this.left=1,this.right=1,this.start.col=1,this.end.col=1),this.initElement(),setTimeout((()=>{this.initBounds(n,o)}))}initElement(){this.element=document.createElement("div"),this.element.classList.add("tabulator-range")}initBounds(e,t){this._updateMinMax(),e&&this.setBounds(e,t||e)}setStart(e,t){this.start.row===e&&this.start.col===t||(this.start.row=e,this.start.col=t,this.initializing.start=!0,this._updateMinMax())}setEnd(e,t){this.end.row===e&&this.end.col===t||(this.end.row=e,this.end.col=t,this.initializing.end=!0,this._updateMinMax())}setBounds(e,t,n){e&&this.setStartBound(e),this.setEndBound(t||e),this.rangeManager.layoutElement(n)}setStartBound(e){var t,n;"column"===e.type?this.rangeManager.columnSelection&&this.setStart(0,e.getPosition()-1):(t=e.row.position-1,n=e.column.getPosition()-1,e.column===this.rangeManager.rowHeader?this.setStart(t,1):this.setStart(t,n))}setEndBound(e){var t,n,o,i=this._getTableRows().length;"column"===e.type?this.rangeManager.columnSelection&&("column"===this.rangeManager.selecting?this.setEnd(i-1,e.getPosition()-1):"cell"===this.rangeManager.selecting&&this.setEnd(0,e.getPosition()-1)):(t=e.row.position-1,n=e.column.getPosition()-1,o=e.column===this.rangeManager.rowHeader,"row"===this.rangeManager.selecting?this.setEnd(t,this._getTableColumns().length-1):"row"!==this.rangeManager.selecting&&o?this.setEnd(t,0):"column"===this.rangeManager.selecting?this.setEnd(i-1,n):this.setEnd(t,n))}_updateMinMax(){this.top=Math.min(this.start.row,this.end.row),this.bottom=Math.max(this.start.row,this.end.row),this.left=Math.min(this.start.col,this.end.col),this.right=Math.max(this.start.col,this.end.col),this.initialized?this.dispatchExternal("rangeChanged",this.getComponent()):this.initializing.start&&this.initializing.end&&(this.initialized=!0,this.dispatchExternal("rangeAdded",this.getComponent()))}_getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}_getTableRows(){return this.table.rowManager.getDisplayRows().filter((e=>"row"===e.type))}layout(){var e,t,n,o,i,r,s,a,l,c,d=this.table.rowManager.renderer.vDomTop,u=this.table.rowManager.renderer.vDomBottom,h=this.table.columnManager.renderer.leftCol,m=this.table.columnManager.renderer.rightCol;"virtual"===this.table.options.renderHorizontal&&this.rangeManager.rowHeader&&(m+=1),null==d&&(d=0),null==u&&(u=1/0),null==h&&(h=0),null==m&&(m=1/0),this.overlaps(h,d,m,u)&&(e=Math.max(this.top,d),t=Math.min(this.bottom,u),n=Math.max(this.left,h),o=Math.min(this.right,m),i=this.rangeManager.getCell(e,n),r=this.rangeManager.getCell(t,o),s=i.getElement(),a=r.getElement(),l=i.row.getElement(),c=r.row.getElement(),this.element.classList.add("tabulator-range-active"),this.table.rtl?(this.element.style.right=l.offsetWidth-s.offsetLeft-s.offsetWidth+"px",this.element.style.width=s.offsetLeft+s.offsetWidth-a.offsetLeft+"px"):(this.element.style.left=l.offsetLeft+s.offsetLeft+"px",this.element.style.width=a.offsetLeft+a.offsetWidth-s.offsetLeft+"px"),this.element.style.top=l.offsetTop+"px",this.element.style.height=c.offsetTop+c.offsetHeight-l.offsetTop+"px")}atTopLeft(e){return e.row.position-1===this.top&&e.column.getPosition()-1===this.left}atBottomRight(e){return e.row.position-1===this.bottom&&e.column.getPosition()-1===this.right}occupies(e){return this.occupiesRow(e.row)&&this.occupiesColumn(e.column)}occupiesRow(e){return this.top<=e.position-1&&e.position-1<=this.bottom}occupiesColumn(e){return this.left<=e.getPosition()-1&&e.getPosition()-1<=this.right}overlaps(e,t,n,o){return!(this.left>n||e>this.right||this.top>o||t>this.bottom)}getData(){var e=[],t=this.getRows(),n=this.getColumns();return t.forEach((t=>{var o=t.getData(),i={};n.forEach((e=>{i[e.field]=o[e.field]})),e.push(i)})),e}getCells(e,t){var n=[],o=this.getRows(),i=this.getColumns();return e?n=o.map((e=>{var n=[];return e.getCells().forEach((e=>{i.includes(e.column)&&n.push(t?e.getComponent():e)})),n})):o.forEach((e=>{e.getCells().forEach((e=>{i.includes(e.column)&&n.push(t?e.getComponent():e)}))})),n}getStructuredCells(){return this.getCells(!0,!0)}getRows(){return this._getTableRows().slice(this.top,this.bottom+1)}getColumns(){return this._getTableColumns().slice(this.left,this.right+1)}clearValues(){var e=this.getCells(),t=this.table.options.selectableRangeClearCellsValue;this.table.blockRedraw(),e.forEach((e=>{e.setValue(t)})),this.table.restoreRedraw()}getBounds(e){var t=this.getCells(!1,e),n={start:null,end:null};return t.length?(n.start=t[0],n.end=t[t.length-1]):console.warn("No bounds defined on range"),n}getComponent(){return this.component||(this.component=new fe(this)),this.component}destroy(e){this.destroyed=!0,this.element.remove(),e&&this.rangeManager.rangeRemoved(this),this.initialized&&this.dispatchExternal("rangeRemoved",this.getComponent())}destroyedGuard(e){return this.destroyed&&console.warn("You cannot call the "+e+" function on a destroyed range"),!this.destroyed}}var be={keybindings:{bindings:{rangeJumpUp:["ctrl + 38","meta + 38"],rangeJumpDown:["ctrl + 40","meta + 40"],rangeJumpLeft:["ctrl + 37","meta + 37"],rangeJumpRight:["ctrl + 39","meta + 39"],rangeExpandUp:"shift + 38",rangeExpandDown:"shift + 40",rangeExpandLeft:"shift + 37",rangeExpandRight:"shift + 39",rangeExpandJumpUp:["ctrl + shift + 38","meta + shift + 38"],rangeExpandJumpDown:["ctrl + shift + 40","meta + shift + 40"],rangeExpandJumpLeft:["ctrl + shift + 37","meta + shift + 37"],rangeExpandJumpRight:["ctrl + shift + 39","meta + shift + 39"]},actions:{rangeJumpLeft:function(e){this.dispatch("keybinding-nav-range",e,"left",!0,!1)},rangeJumpRight:function(e){this.dispatch("keybinding-nav-range",e,"right",!0,!1)},rangeJumpUp:function(e){this.dispatch("keybinding-nav-range",e,"up",!0,!1)},rangeJumpDown:function(e){this.dispatch("keybinding-nav-range",e,"down",!0,!1)},rangeExpandLeft:function(e){this.dispatch("keybinding-nav-range",e,"left",!1,!0)},rangeExpandRight:function(e){this.dispatch("keybinding-nav-range",e,"right",!1,!0)},rangeExpandUp:function(e){this.dispatch("keybinding-nav-range",e,"up",!1,!0)},rangeExpandDown:function(e){this.dispatch("keybinding-nav-range",e,"down",!1,!0)},rangeExpandJumpLeft:function(e){this.dispatch("keybinding-nav-range",e,"left",!0,!0)},rangeExpandJumpRight:function(e){this.dispatch("keybinding-nav-range",e,"right",!0,!0)},rangeExpandJumpUp:function(e){this.dispatch("keybinding-nav-range",e,"up",!0,!0)},rangeExpandJumpDown:function(e){this.dispatch("keybinding-nav-range",e,"down",!0,!0)}}},clipboard:{pasteActions:{range:function(e){var t,n,o,i,r,s=[],a=this.table.modules.selectRange.activeRange,l=!1;return r=e.length,a&&(n=(t=a.getBounds()).start,t.start===t.end&&(l=!0),n&&(o=(s=this.table.rowManager.activeRows.slice()).indexOf(n.row),i=l?e.length:s.indexOf(t.end.row)-o+1,o>-1&&(this.table.blockRedraw(),(s=s.slice(o,o+i)).forEach(((t,n)=>{t.updateData(e[n%r])})),this.table.restoreRedraw()))),s}},pasteParsers:{range:function(e){var t,n,o,i,r,s=[],a=[],l=this.table.modules.selectRange.activeRange,c=!1;return!!(l&&(n=(t=l.getBounds()).start,t.start===t.end&&(c=!0),n&&((e=e.split("\n")).forEach((function(e){s.push(e.split("\t"))})),s.length&&(r=(i=this.table.columnManager.getVisibleColumnsByIndex()).indexOf(n.column))>-1)))&&(o=c?s[0].length:i.indexOf(t.end.column)-r+1,i=i.slice(r,r+o),s.forEach((e=>{var t={},n=e.length;i.forEach((function(o,i){t[o.field]=e[i%n]})),a.push(t)})),a)}}},export:{columnLookups:{range:function(){var e=this.modules.selectRange.selectedColumns();return this.columnManager.rowHeader&&e.unshift(this.columnManager.rowHeader),e}},rowLookups:{range:function(){return this.modules.selectRange.selectedRows()}}}};function ve(e,t,n,o,i,r,s){var a=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),l=s.format||"dd/MM/yyyy HH:mm:ss",c=s.alignEmptyValues,d=0;if(void 0!==a){if(a.isDateTime(e)||(e="iso"===l?a.fromISO(String(e)):a.fromFormat(String(e),l)),a.isDateTime(t)||(t="iso"===l?a.fromISO(String(t)):a.fromFormat(String(t),l)),e.isValid){if(t.isValid)return e-t;d=1}else d=t.isValid?-1:0;return("top"===c&&"desc"===r||"bottom"===c&&"asc"===r)&&(d*=-1),d}console.error("Sort Error - 'datetime' sorter is dependant on luxon.js")}var ye={number:function(e,t,n,o,i,r,s){var a=s.alignEmptyValues,l=s.decimalSeparator,c=s.thousandSeparator,d=0;if(e=String(e),t=String(t),c&&(e=e.split(c).join(""),t=t.split(c).join("")),l&&(e=e.split(l).join("."),t=t.split(l).join(".")),e=parseFloat(e),t=parseFloat(t),isNaN(e))d=isNaN(t)?0:-1;else{if(!isNaN(t))return e-t;d=1}return("top"===a&&"desc"===r||"bottom"===a&&"asc"===r)&&(d*=-1),d},string:function(e,t,n,o,i,r,s){var a,l=s.alignEmptyValues,c=0;if(e){if(t){switch(typeof s.locale){case"boolean":s.locale&&(a=this.langLocale());break;case"string":a=s.locale}return String(e).toLowerCase().localeCompare(String(t).toLowerCase(),a)}c=1}else c=t?-1:0;return("top"===l&&"desc"===r||"bottom"===l&&"asc"===r)&&(c*=-1),c},date:function(e,t,n,o,i,r,s){return s.format||(s.format="dd/MM/yyyy"),ve.call(this,e,t,n,o,i,r,s)},time:function(e,t,n,o,i,r,s){return s.format||(s.format="HH:mm"),ve.call(this,e,t,n,o,i,r,s)},datetime:ve,boolean:function(e,t,n,o,i,r,s){return(!0===e||"true"===e||"True"===e||1===e?1:0)-(!0===t||"true"===t||"True"===t||1===t?1:0)},array:function(e,t,n,o,r,s,a){var l,c=a.type||"length",d=a.alignEmptyValues,u=0,h=this.table;function m(e){var t;switch(l&&(e=l(e)),c){case"length":t=e.length;break;case"sum":t=e.reduce((function(e,t){return e+t}));break;case"max":t=Math.max.apply(null,e);break;case"min":t=Math.min.apply(null,e);break;case"avg":t=e.reduce((function(e,t){return e+t}))/e.length;break;case"string":t=e.join("")}return t}if(a.valueMap&&(l="string"==typeof a.valueMap?function(e){return e.map((e=>i.retrieveNestedData(h.options.nestedFieldSeparator,a.valueMap,e)))}:a.valueMap),Array.isArray(e)){if(Array.isArray(t))return"string"===c?String(m(e)).toLowerCase().localeCompare(String(m(t)).toLowerCase()):m(t)-m(e);u=1}else u=Array.isArray(t)?-1:0;return("top"===d&&"desc"===s||"bottom"===d&&"asc"===s)&&(u*=-1),u},exists:function(e,t,n,o,i,r,s){return(void 0===e?0:1)-(void 0===t?0:1)},alphanum:function(e,t,n,o,i,r,s){var a,l,c,d,u,h=0,m=/(\d+)|(\D+)/g,p=/\d/,f=s.alignEmptyValues,g=0;if(e||0===e){if(t||0===t){if(isFinite(e)&&isFinite(t))return e-t;if((a=String(e).toLowerCase())===(l=String(t).toLowerCase()))return 0;if(!p.test(a)||!p.test(l))return a>l?1:-1;for(a=a.match(m),l=l.match(m),u=a.length>l.length?l.length:a.length;h<u;)if((c=a[h])!==(d=l[h++]))return isFinite(c)&&isFinite(d)?("0"===c.charAt(0)&&(c="."+c),"0"===d.charAt(0)&&(d="."+d),c-d):c>d?1:-1;return a.length>l.length}g=1}else g=t||0===t?-1:0;return("top"===f&&"desc"===r||"bottom"===f&&"asc"===r)&&(g*=-1),g}};class we extends s{static moduleName="sort";static sorters=ye;constructor(e){super(e),this.sortList=[],this.changed=!1,this.registerTableOption("sortMode","local"),this.registerTableOption("initialSort",!1),this.registerTableOption("columnHeaderSortMulti",!0),this.registerTableOption("sortOrderReverse",!1),this.registerTableOption("headerSortElement","<div class='tabulator-arrow'></div>"),this.registerTableOption("headerSortClickElement","header"),this.registerColumnOption("sorter"),this.registerColumnOption("sorterParams"),this.registerColumnOption("headerSort",!0),this.registerColumnOption("headerSortStartingDir"),this.registerColumnOption("headerSortTristate")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.registerDataHandler(this.sort.bind(this),20),this.registerTableFunction("setSort",this.userSetSort.bind(this)),this.registerTableFunction("getSorters",this.getSort.bind(this)),this.registerTableFunction("clearSort",this.clearSort.bind(this)),"remote"===this.table.options.sortMode&&this.subscribe("data-params",this.remoteSortParams.bind(this))}tableBuilt(){this.table.options.initialSort&&this.setSort(this.table.options.initialSort)}remoteSortParams(e,t,n,o){var i=this.getSort();return i.forEach((e=>{delete e.column})),o.sort=i,o}userSetSort(e,t){this.setSort(e,t),this.refreshSort()}clearSort(){this.clear(),this.refreshSort()}initializeColumn(e){var t,n,o=!1;switch(typeof e.definition.sorter){case"string":we.sorters[e.definition.sorter]?o=we.sorters[e.definition.sorter]:console.warn("Sort Error - No such sorter found: ",e.definition.sorter);break;case"function":o=e.definition.sorter}if(e.modules.sort={sorter:o,dir:"none",params:e.definition.sorterParams||{},startingDir:e.definition.headerSortStartingDir||"asc",tristate:e.definition.headerSortTristate},!1!==e.definition.headerSort){switch((t=e.getElement()).classList.add("tabulator-sortable"),(n=document.createElement("div")).classList.add("tabulator-col-sorter"),"icon"===this.table.options.headerSortClickElement?n.classList.add("tabulator-col-sorter-element"):t.classList.add("tabulator-col-sorter-element"),this.table.options.headerSortElement){case"function":break;case"object":n.appendChild(this.table.options.headerSortElement);break;default:n.innerHTML=this.table.options.headerSortElement}e.titleHolderElement.appendChild(n),e.modules.sort.element=n,this.setColumnHeaderSortIcon(e,"none"),"icon"===this.table.options.headerSortClickElement&&n.addEventListener("mousedown",(e=>{e.stopPropagation()})),("icon"===this.table.options.headerSortClickElement?n:t).addEventListener("click",(t=>{var n="",o=[],i=!1;if(e.modules.sort){if(e.modules.sort.tristate)n="none"==e.modules.sort.dir?e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?"asc"==e.modules.sort.dir?"desc":"asc":"none";else switch(e.modules.sort.dir){case"asc":n="desc";break;case"desc":n="asc";break;default:n=e.modules.sort.startingDir}this.table.options.columnHeaderSortMulti&&(t.shiftKey||t.ctrlKey)?(i=(o=this.getSort()).findIndex((t=>t.field===e.getField())),i>-1?(o[i].dir=n,i=o.splice(i,1)[0],"none"!=n&&o.push(i)):"none"!=n&&o.push({column:e,dir:n}),this.setSort(o)):"none"==n?this.clear():this.setSort(e,n),this.refreshSort()}}))}}refreshSort(){"remote"===this.table.options.sortMode?this.reloadData(null,!1,!1):this.refreshData(!0)}hasChanged(){var e=this.changed;return this.changed=!1,e}getSort(){var e=[];return this.sortList.forEach((function(t){t.column&&e.push({column:t.column.getComponent(),field:t.column.getField(),dir:t.dir})})),e}setSort(e,t){var n=this,o=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach((function(e){var t;(t=n.table.columnManager.findColumn(e.column))?(e.column=t,o.push(e),n.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",e.column)})),n.sortList=o,this.dispatch("sort-changed")}clear(){this.setSort([])}findSorter(e){var t,n=this.table.rowManager.activeRows[0],o="string";if(n&&(n=n.getData(),e.getField()))switch(typeof(t=e.getFieldValue(n))){case"undefined":o="string";break;case"boolean":o="boolean";break;default:isNaN(t)||""===t?t.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(o="alphanum"):o="number"}return we.sorters[o]}sort(e,t){var n=this,o=this.table.options.sortOrderReverse?n.sortList.slice().reverse():n.sortList,i=[],r=[];return this.subscribedExternal("dataSorting")&&this.dispatchExternal("dataSorting",n.getSort()),t||n.clearColumnHeaders(),"remote"!==this.table.options.sortMode?(o.forEach((function(e,o){var r;e.column&&((r=e.column.modules.sort)&&(r.sorter||(r.sorter=n.findSorter(e.column)),e.params="function"==typeof r.params?r.params(e.column.getComponent(),e.dir):r.params,i.push(e)),t||n.setColumnHeader(e.column,e.dir))})),i.length&&n._sortItems(e,i)):t||o.forEach((function(e,t){n.setColumnHeader(e.column,e.dir)})),this.subscribedExternal("dataSorted")&&(e.forEach((e=>{r.push(e.getComponent())})),this.dispatchExternal("dataSorted",n.getSort(),r)),e}clearColumnHeaders(){this.table.columnManager.getRealColumns().forEach((e=>{e.modules.sort&&(e.modules.sort.dir="none",e.getElement().setAttribute("aria-sort","none"),this.setColumnHeaderSortIcon(e,"none"))}))}setColumnHeader(e,t){e.modules.sort.dir=t,e.getElement().setAttribute("aria-sort","asc"===t?"ascending":"descending"),this.setColumnHeaderSortIcon(e,t)}setColumnHeaderSortIcon(e,t){var n,o=e.modules.sort.element;if(e.definition.headerSort&&"function"==typeof this.table.options.headerSortElement){for(;o.firstChild;)o.removeChild(o.firstChild);"object"==typeof(n=this.table.options.headerSortElement.call(this.table,e.getComponent(),t))?o.appendChild(n):o.innerHTML=n}}_sortItems(e,t){var n=t.length-1;e.sort(((e,o)=>{for(var i,r=n;r>=0;r--){let n=t[r];if(0!==(i=this._sortRow(e,o,n.column,n.dir,n.params)))break}return i}))}_sortRow(e,t,n,o,i){var r,s,a="asc"==o?e:t,l="asc"==o?t:e;return e=void 0!==(e=n.getFieldValue(a.getData()))?e:"",t=void 0!==(t=n.getFieldValue(l.getData()))?t:"",r=a.getComponent(),s=l.getComponent(),n.modules.sort.sorter.call(this,e,t,r,s,n.getComponent(),o,i)}}class Ce{constructor(e,t){this.columnCount=e,this.rowCount=t,this.columnString=[],this.columns=[],this.rows=[]}genColumns(e){var t=Math.max(this.columnCount,Math.max(...e.map((e=>e.length))));this.columnString=[],this.columns=[];for(let e=1;e<=t;e++)this.incrementChar(this.columnString.length-1),this.columns.push(this.columnString.join(""));return this.columns}genRows(e){var t=Math.max(this.rowCount,e.length);this.rows=[];for(let e=1;e<=t;e++)this.rows.push(e);return this.rows}incrementChar(e){let t=this.columnString[e];t?"Z"!==t?this.columnString[e]=String.fromCharCode(this.columnString[e].charCodeAt(0)+1):(this.columnString[e]="A",e?this.incrementChar(e-1):this.columnString.push("A")):this.columnString.push("A")}setRowCount(e){this.rowCount=e}setColumnCount(e){this.columnCount=e}}class _e{constructor(e){return this._sheet=e,new Proxy(this,{get:function(e,t,n){return void 0!==e[t]?e[t]:e._sheet.table.componentFunctionBinder.handle("sheet",e._sheet,t)}})}getTitle(){return this._sheet.title}getKey(){return this._sheet.key}getDefinition(){return this._sheet.getDefinition()}getData(){return this._sheet.getData()}setData(e){return this._sheet.setData(e)}clear(){return this._sheet.clear()}remove(){return this._sheet.remove()}active(){return this._sheet.active()}setTitle(e){return this._sheet.setTitle(e)}setRows(e){return this._sheet.setRows(e)}setColumns(e){return this._sheet.setColumns(e)}}class Se extends o{constructor(e,t){super(e.table),this.spreadsheetManager=e,this.definition=t,this.title=this.definition.title||"",this.key=this.definition.key||this.definition.title,this.rowCount=this.definition.rows,this.columnCount=this.definition.columns,this.data=this.definition.data||[],this.element=null,this.isActive=!1,this.grid=new Ce(this.columnCount,this.rowCount),this.defaultColumnDefinition={width:100,headerHozAlign:"center",headerSort:!1},this.columnDefinition=Object.assign(this.defaultColumnDefinition,this.options("spreadsheetColumnDefinition")),this.columnDefs=[],this.rowDefs=[],this.columnFields=[],this.columns=[],this.rows=[],this.scrollTop=null,this.scrollLeft=null,this.initialize(),this.dispatchExternal("sheetAdded",this.getComponent())}initialize(){this.initializeElement(),this.initializeColumns(),this.initializeRows()}reinitialize(){this.initializeColumns(),this.initializeRows()}initializeElement(){this.element=document.createElement("div"),this.element.classList.add("tabulator-spreadsheet-tab"),this.element.innerText=this.title,this.element.addEventListener("click",(()=>{this.spreadsheetManager.loadSheet(this)}))}initializeColumns(){this.grid.setColumnCount(this.columnCount),this.columnFields=this.grid.genColumns(this.data),this.columnDefs=[],this.columnFields.forEach((e=>{var t=Object.assign({},this.columnDefinition);t.field=e,t.title=e,this.columnDefs.push(t)}))}initializeRows(){var e;this.grid.setRowCount(this.rowCount),e=this.grid.genRows(this.data),this.rowDefs=[],e.forEach(((e,t)=>{var n={_id:e},o=this.data[t];o&&o.forEach(((e,t)=>{var o=this.columnFields[t];o&&(n[o]=e)})),this.rowDefs.push(n)}))}unload(){this.isActive=!1,this.scrollTop=this.table.rowManager.scrollTop,this.scrollLeft=this.table.rowManager.scrollLeft,this.data=this.getData(!0),this.element.classList.remove("tabulator-spreadsheet-tab-active")}load(){var e=!this.isActive;this.isActive=!0,this.table.blockRedraw(),this.table.setData([]),this.table.setColumns(this.columnDefs),this.table.setData(this.rowDefs),this.table.restoreRedraw(),e&&null!==this.scrollTop&&(this.table.rowManager.element.scrollLeft=this.scrollLeft,this.table.rowManager.element.scrollTop=this.scrollTop),this.element.classList.add("tabulator-spreadsheet-tab-active"),this.dispatchExternal("sheetLoaded",this.getComponent())}getComponent(){return new _e(this)}getDefinition(){return{title:this.title,key:this.key,rows:this.rowCount,columns:this.columnCount,data:this.getData()}}getData(e){var t,n,o,i=[];return this.rowDefs.forEach((e=>{var t=[];this.columnFields.forEach((n=>{t.push(e[n])})),i.push(t)})),e||this.options("spreadsheetOutputFull")||(t=i.map((e=>e.findLastIndex((e=>void 0!==e))+1)),n=Math.max(...t),o=t.findLastIndex((e=>e>0))+1,i=(i=i.slice(0,o)).map((e=>e.slice(0,n)))),i}setData(e){this.data=e,this.reinitialize(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}clear(){this.setData([])}setTitle(e){this.title=e,this.element.innerText=e,this.dispatchExternal("sheetUpdated",this.getComponent())}setRows(e){this.rowCount=e,this.initializeRows(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}setColumns(e){this.columnCount=e,this.reinitialize(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}remove(){this.spreadsheetManager.removeSheet(this)}destroy(){this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispatchExternal("sheetRemoved",this.getComponent())}active(){this.spreadsheetManager.loadSheet(this)}}var Me={integer:function(e,t,n){return""===t||null==t||(t=Number(t),!isNaN(t)&&isFinite(t)&&Math.floor(t)===t)},float:function(e,t,n){return""===t||null==t||(t=Number(t),!isNaN(t)&&isFinite(t)&&t%1!=0)},numeric:function(e,t,n){return""===t||null==t||!isNaN(t)},string:function(e,t,n){return""===t||null==t||isNaN(t)},alphanumeric:function(e,t,n){return""===t||null==t||new RegExp(/^[a-z0-9]+$/i).test(t)},max:function(e,t,n){return""===t||null==t||parseFloat(t)<=n},min:function(e,t,n){return""===t||null==t||parseFloat(t)>=n},starts:function(e,t,n){return""===t||null==t||String(t).toLowerCase().startsWith(String(n).toLowerCase())},ends:function(e,t,n){return""===t||null==t||String(t).toLowerCase().endsWith(String(n).toLowerCase())},minLength:function(e,t,n){return""===t||null==t||String(t).length>=n},maxLength:function(e,t,n){return""===t||null==t||String(t).length<=n},in:function(e,t,n){return""===t||null==t||("string"==typeof n&&(n=n.split("|")),n.indexOf(t)>-1)},regex:function(e,t,n){return""===t||null==t||new RegExp(n).test(t)},unique:function(e,t,n){if(""===t||null==t)return!0;var o=!0,i=e.getData(),r=e.getColumn()._getSelf();return this.table.rowManager.rows.forEach((function(e){var n=e.getData();n!==i&&t==r.getFieldValue(n)&&(o=!1)})),o},required:function(e,t,n){return""!==t&&null!=t}};class Ee extends s{static moduleName="validate";static validators=Me;constructor(e){super(e),this.invalidCells=[],this.registerTableOption("validationMode","blocking"),this.registerColumnOption("validator"),this.registerTableFunction("getInvalidCells",this.getInvalidCells.bind(this)),this.registerTableFunction("clearCellValidation",this.userClearCellValidation.bind(this)),this.registerTableFunction("validate",this.userValidate.bind(this)),this.registerComponentFunction("cell","isValid",this.cellIsValid.bind(this)),this.registerComponentFunction("cell","clearValidation",this.clearValidation.bind(this)),this.registerComponentFunction("cell","validate",this.cellValidate.bind(this)),this.registerComponentFunction("column","validate",this.columnValidate.bind(this)),this.registerComponentFunction("row","validate",this.rowValidate.bind(this))}initialize(){this.subscribe("cell-delete",this.clearValidation.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("edit-success",this.editValidate.bind(this)),this.subscribe("edit-editor-clear",this.editorClear.bind(this)),this.subscribe("edit-edited-clear",this.editedClear.bind(this))}editValidate(e,t,n){var o="manual"===this.table.options.validationMode||this.validate(e.column.modules.validate,e,t);return!0!==o&&setTimeout((()=>{e.getElement().classList.add("tabulator-validation-fail"),this.dispatchExternal("validationFailed",e.getComponent(),t,o)})),o}editorClear(e,t){t&&e.column.modules.validate&&this.cellValidate(e),e.getElement().classList.remove("tabulator-validation-fail")}editedClear(e){e.modules.validate&&(e.modules.validate.invalid=!1)}cellIsValid(e){return e.modules.validate&&e.modules.validate.invalid||!0}cellValidate(e){return this.validate(e.column.modules.validate,e,e.getValue())}columnValidate(e){var t=[];return e.cells.forEach((e=>{!0!==this.cellValidate(e)&&t.push(e.getComponent())})),!t.length||t}rowValidate(e){var t=[];return e.cells.forEach((e=>{!0!==this.cellValidate(e)&&t.push(e.getComponent())})),!t.length||t}userClearCellValidation(e){e||(e=this.getInvalidCells()),Array.isArray(e)||(e=[e]),e.forEach((e=>{this.clearValidation(e._getSelf())}))}userValidate(e){var t=[];return this.table.rowManager.rows.forEach((e=>{var n=(e=e.getComponent()).validate();!0!==n&&(t=t.concat(n))})),!t.length||t}initializeColumnCheck(e){void 0!==e.definition.validator&&this.initializeColumn(e)}initializeColumn(e){var t,n=this,o=[];e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach((e=>{(t=n._extractValidator(e))&&o.push(t)})):(t=this._extractValidator(e.definition.validator))&&o.push(t),e.modules.validate=!!o.length&&o)}_extractValidator(e){var t,n,o;switch(typeof e){case"string":return(o=e.indexOf(":"))>-1?(t=e.substring(0,o),n=e.substring(o+1)):t=e,this._buildValidator(t,n);case"function":return this._buildValidator(e);case"object":return this._buildValidator(e.type,e.parameters)}}_buildValidator(e,t){var n="function"==typeof e?e:Ee.validators[e];return n?{type:"function"==typeof e?"function":e,func:n,params:t}:(console.warn("Validator Setup Error - No matching validator found:",e),!1)}validate(e,t,n){var o=this,i=[],r=this.invalidCells.indexOf(t);return e&&e.forEach((e=>{e.func.call(o,t.getComponent(),n,e.params)||i.push({type:e.type,parameters:e.params})})),t.modules.validate||(t.modules.validate={}),i.length?(t.modules.validate.invalid=i,"manual"!==this.table.options.validationMode&&t.getElement().classList.add("tabulator-validation-fail"),-1==r&&this.invalidCells.push(t)):(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),r>-1&&this.invalidCells.splice(r,1)),!i.length||i}getInvalidCells(){var e=[];return this.invalidCells.forEach((t=>{e.push(t.getComponent())})),e}clearValidation(e){var t;e.modules.validate&&e.modules.validate.invalid&&(e.getElement().classList.remove("tabulator-validation-fail"),e.modules.validate.invalid=!1,(t=this.invalidCells.indexOf(e))>-1&&this.invalidCells.splice(t,1))}}var xe=Object.freeze({__proto__:null,AccessorModule:l,AjaxModule:g,ClipboardModule:w,ColumnCalcsModule:A,DataTreeModule:class extends s{static moduleName="dataTree";constructor(e){super(e),this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this.branchEl=null,this.elementField=!1,this.startOpen=function(){},this.registerTableOption("dataTree",!1),this.registerTableOption("dataTreeFilter",!0),this.registerTableOption("dataTreeSort",!0),this.registerTableOption("dataTreeElementColumn",!1),this.registerTableOption("dataTreeBranchElement",!0),this.registerTableOption("dataTreeChildIndent",9),this.registerTableOption("dataTreeChildField","_children"),this.registerTableOption("dataTreeCollapseElement",!1),this.registerTableOption("dataTreeExpandElement",!1),this.registerTableOption("dataTreeStartExpanded",!1),this.registerTableOption("dataTreeChildColumnCalcs",!1),this.registerTableOption("dataTreeSelectPropagate",!1),this.registerComponentFunction("row","treeCollapse",this.collapseRow.bind(this)),this.registerComponentFunction("row","treeExpand",this.expandRow.bind(this)),this.registerComponentFunction("row","treeToggle",this.toggleRow.bind(this)),this.registerComponentFunction("row","getTreeParent",this.getTreeParent.bind(this)),this.registerComponentFunction("row","getTreeChildren",this.getRowChildren.bind(this)),this.registerComponentFunction("row","addTreeChild",this.addTreeChildRow.bind(this)),this.registerComponentFunction("row","isTreeExpanded",this.isRowExpanded.bind(this))}initialize(){if(this.table.options.dataTree){var e=null,t=this.table.options;switch(this.field=t.dataTreeChildField,this.indent=t.dataTreeChildIndent,this.options("movableRows")&&console.warn("The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"),t.dataTreeBranchElement?!0===t.dataTreeBranchElement?(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch")):"string"==typeof t.dataTreeBranchElement?((e=document.createElement("div")).innerHTML=t.dataTreeBranchElement,this.branchEl=e.firstChild):this.branchEl=t.dataTreeBranchElement:(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch-empty")),t.dataTreeCollapseElement?"string"==typeof t.dataTreeCollapseElement?((e=document.createElement("div")).innerHTML=t.dataTreeCollapseElement,this.collapseEl=e.firstChild):this.collapseEl=t.dataTreeCollapseElement:(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabulator-data-tree-control"),this.collapseEl.tabIndex=0,this.collapseEl.innerHTML="<div class='tabulator-data-tree-control-collapse'></div>"),t.dataTreeExpandElement?"string"==typeof t.dataTreeExpandElement?((e=document.createElement("div")).innerHTML=t.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=t.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="<div class='tabulator-data-tree-control-expand'></div>"),typeof t.dataTreeStartExpanded){case"boolean":this.startOpen=function(e,n){return t.dataTreeStartExpanded};break;case"function":this.startOpen=t.dataTreeStartExpanded;break;default:this.startOpen=function(e,n){return t.dataTreeStartExpanded[n]}}this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowDelete.bind(this),0),this.subscribe("row-data-changed",this.rowDataChanged.bind(this),10),this.subscribe("cell-value-updated",this.cellValueChanged.bind(this)),this.subscribe("edit-cancelled",this.cellValueChanged.bind(this)),this.subscribe("column-moving-rows",this.columnMoving.bind(this)),this.subscribe("table-built",this.initializeElementField.bind(this)),this.subscribe("table-redrawing",this.tableRedrawing.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),30)}}tableRedrawing(e){e&&this.table.rowManager.getRows().forEach((e=>{this.reinitializeRowChildren(e)}))}initializeElementField(){var e=this.table.columnManager.getFirstVisibleColumn();this.elementField=this.table.options.dataTreeElementColumn||!!e&&e.field}getRowChildren(e){return this.getTreeChildren(e,!0)}columnMoving(){var e=[];return this.table.rowManager.rows.forEach((t=>{e=e.concat(this.getTreeChildren(t,!1,!0))})),e}rowDataChanged(e,t,n){this.redrawNeeded(n)&&(this.initializeRow(e),t&&(this.layoutRow(e),this.refreshData(!0)))}cellValueChanged(e){e.column.getField()===this.elementField&&this.layoutRow(e.row)}initializeRow(e){var t=e.getData()[this.field],n=Array.isArray(t),o=n||!n&&"object"==typeof t&&null!==t;!o&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!o&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:!!o&&(e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0)),controlEl:!(!e.modules.dataTree||!o)&&e.modules.dataTree.controlEl,branchEl:!(!e.modules.dataTree||!o)&&e.modules.dataTree.branchEl,parent:!!e.modules.dataTree&&e.modules.dataTree.parent,children:o}}reinitializeRowChildren(e){this.getTreeChildren(e,!1,!0).forEach((function(e){e.reinitialize(!0)}))}layoutRow(e){var t=(this.elementField?e.getCell(this.elementField):e.getCells()[0]).getElement(),n=e.modules.dataTree;n.branchEl&&(n.branchEl.parentNode&&n.branchEl.parentNode.removeChild(n.branchEl),n.branchEl=!1),n.controlEl&&(n.controlEl.parentNode&&n.controlEl.parentNode.removeChild(n.controlEl),n.controlEl=!1),this.generateControlElement(e,t),e.getElement().classList.add("tabulator-tree-level-"+n.index),n.index&&(this.branchEl?(n.branchEl=this.branchEl.cloneNode(!0),t.insertBefore(n.branchEl,t.firstChild),this.table.rtl?n.branchEl.style.marginRight=(n.branchEl.offsetWidth+n.branchEl.style.marginLeft)*(n.index-1)+n.index*this.indent+"px":n.branchEl.style.marginLeft=(n.branchEl.offsetWidth+n.branchEl.style.marginRight)*(n.index-1)+n.index*this.indent+"px"):this.table.rtl?t.style.paddingRight=parseInt(window.getComputedStyle(t,null).getPropertyValue("padding-right"))+n.index*this.indent+"px":t.style.paddingLeft=parseInt(window.getComputedStyle(t,null).getPropertyValue("padding-left"))+n.index*this.indent+"px")}generateControlElement(e,t){var n=e.modules.dataTree,o=n.controlEl;t=t||e.getCells()[0].getElement(),!1!==n.children&&(n.open?(n.controlEl=this.collapseEl.cloneNode(!0),n.controlEl.addEventListener("click",(t=>{t.stopPropagation(),this.collapseRow(e)}))):(n.controlEl=this.expandEl.cloneNode(!0),n.controlEl.addEventListener("click",(t=>{t.stopPropagation(),this.expandRow(e)}))),n.controlEl.addEventListener("mousedown",(e=>{e.stopPropagation()})),o&&o.parentNode===t?o.parentNode.replaceChild(n.controlEl,o):t.insertBefore(n.controlEl,t.firstChild))}getRows(e){var t=[];return e.forEach(((e,n)=>{var o;t.push(e),e instanceof T&&(e.create(),(o=e.modules.dataTree).index||!1===o.children||this.getChildren(e,!1,!0).forEach((e=>{e.create(),t.push(e)})))})),t}getChildren(e,t,n){var o=e.modules.dataTree,i=[],r=[];return!1!==o.children&&(o.open||t)&&(Array.isArray(o.children)||(o.children=this.generateChildren(e)),i=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(o.children):o.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(i,n),i.forEach((e=>{r.push(e),this.getChildren(e,!1,!0).forEach((e=>{r.push(e)}))}))),r}generateChildren(e){var t=[],n=e.getData()[this.field];return Array.isArray(n)||(n=[n]),n.forEach((n=>{var o=new T(n||{},this.table.rowManager);o.create(),o.modules.dataTree.index=e.modules.dataTree.index+1,o.modules.dataTree.parent=e,o.modules.dataTree.children&&(o.modules.dataTree.open=this.startOpen(o.getComponent(),o.modules.dataTree.index)),t.push(o)})),t}expandRow(e,t){var n=e.modules.dataTree;!1!==n.children&&(n.open=!0,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowExpanded",e.getComponent(),e.modules.dataTree.index))}collapseRow(e){var t=e.modules.dataTree;!1!==t.children&&(t.open=!1,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowCollapsed",e.getComponent(),e.modules.dataTree.index))}toggleRow(e){var t=e.modules.dataTree;!1!==t.children&&(t.open?this.collapseRow(e):this.expandRow(e))}isRowExpanded(e){return e.modules.dataTree.open}getTreeParent(e){return!!e.modules.dataTree.parent&&e.modules.dataTree.parent.getComponent()}getTreeParentRoot(e){return e.modules.dataTree&&e.modules.dataTree.parent?this.getTreeParentRoot(e.modules.dataTree.parent):e}getFilteredTreeChildren(e){var t=e.modules.dataTree,n=[];return t.children&&(Array.isArray(t.children)||(t.children=this.generateChildren(e)),(this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(t.children):t.children).forEach((e=>{e instanceof T&&n.push(e)}))),n}rowDeleting(e){var t=e.modules.dataTree;t&&t.children&&Array.isArray(t.children)&&t.children.forEach((e=>{e instanceof T&&e.wipe()}))}rowDelete(e){var t,n=e.modules.dataTree.parent;n&&(!1!==(t=this.findChildIndex(e,n))&&n.data[this.field].splice(t,1),n.data[this.field].length||delete n.data[this.field],this.initializeRow(n),this.layoutRow(n)),this.refreshData(!0)}addTreeChildRow(e,t,n,o){var i=!1;"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),void 0!==o&&!1!==(i=this.findChildIndex(o,e))&&e.data[this.field].splice(n?i:i+1,0,t),!1===i&&(n?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.refreshData(!0)}findChildIndex(e,t){var n=!1;return"object"==typeof e?e instanceof T?n=e.data:e instanceof k?n=e._getSelf().data:"undefined"!=typeof HTMLElement&&e instanceof HTMLElement?t.modules.dataTree&&(n=t.modules.dataTree.children.find((t=>t instanceof T&&t.element===e)))&&(n=n.data):null===e&&(n=!1):n=void 0!==e&&t.data[this.field].find((t=>t.data[this.table.options.index]==e)),n&&(Array.isArray(t.data[this.field])&&(n=t.data[this.field].indexOf(n)),-1==n&&(n=!1)),n}getTreeChildren(e,t,n){var o=e.modules.dataTree,i=[];return o&&o.children&&(Array.isArray(o.children)||(o.children=this.generateChildren(e)),o.children.forEach((e=>{e instanceof T&&(i.push(t?e.getComponent():e),n&&this.getTreeChildren(e,t,n).forEach((e=>{i.push(e)})))}))),i}getChildField(){return this.field}redrawNeeded(e){return!!this.field&&void 0!==e[this.field]||!!this.elementField&&void 0!==e[this.elementField]}},DownloadModule:O,EditModule:P,ExportModule:Y,FilterModule:B,FormatModule:V,FrozenColumnsModule:class extends s{static moduleName="frozenColumns";constructor(e){super(e),this.leftColumns=[],this.rightColumns=[],this.initializationMode="left",this.active=!1,this.blocked=!0,this.registerColumnOption("frozen")}reset(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.active=!1}initialize(){this.subscribe("cell-layout",this.layoutCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-width",this.layout.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("table-layout",this.layout.bind(this)),this.subscribe("columns-loading",this.reset.bind(this)),this.subscribe("column-add",this.reinitializeColumns.bind(this)),this.subscribe("column-deleted",this.reinitializeColumns.bind(this)),this.subscribe("column-hide",this.reinitializeColumns.bind(this)),this.subscribe("column-show",this.reinitializeColumns.bind(this)),this.subscribe("columns-loaded",this.reinitializeColumns.bind(this)),this.subscribe("table-redraw",this.layout.bind(this)),this.subscribe("layout-refreshing",this.blockLayout.bind(this)),this.subscribe("layout-refreshed",this.unblockLayout.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this))}blockLayout(){this.blocked=!0}unblockLayout(){this.blocked=!1}layoutCell(e){this.layoutElement(e.element,e.column)}reinitializeColumns(){this.reset(),this.table.columnManager.columnsByIndex.forEach((e=>{this.initializeColumn(e)})),this.layout()}initializeColumn(e){var t={margin:0,edge:!1};e.isGroup||(this.frozenCheck(e)?(t.position=this.initializationMode,"left"==this.initializationMode?this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!0,e.modules.frozen=t):this.initializationMode="right")}frozenCheck(e){return e.parent.isGroup&&e.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),e.parent.isGroup?this.frozenCheck(e.parent):e.definition.frozen}layoutCalcRows(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow),this.table.modExists("groupRows")&&this.layoutGroupCalcs(this.table.modules.groupRows.getGroups()))}layoutGroupCalcs(e){e.forEach((e=>{e.calcs.top&&this.layoutRow(e.calcs.top),e.calcs.bottom&&this.layoutRow(e.calcs.bottom),e.groupList&&e.groupList.length&&this.layoutGroupCalcs(e.groupList)}))}layoutColumnPosition(e){var t=[],n=0,o=0;this.leftColumns.forEach(((o,i)=>{if(o.modules.frozen.marginValue=n,o.modules.frozen.margin=o.modules.frozen.marginValue+"px",o.visible&&(n+=o.getWidth()),i==this.leftColumns.length-1?o.modules.frozen.edge=!0:o.modules.frozen.edge=!1,o.parent.isGroup){var r=this.getColGroupParentElement(o);t.includes(r)||(this.layoutElement(r,o),t.push(r)),r.classList.toggle("tabulator-frozen-left",o.modules.frozen.edge&&"left"===o.modules.frozen.position),r.classList.toggle("tabulator-frozen-right",o.modules.frozen.edge&&"right"===o.modules.frozen.position)}else this.layoutElement(o.getElement(),o);e&&o.cells.forEach((e=>{this.layoutElement(e.getElement(!0),o)}))})),this.rightColumns.forEach(((t,n)=>{t.modules.frozen.marginValue=o,t.modules.frozen.margin=t.modules.frozen.marginValue+"px",t.visible&&(o+=t.getWidth()),n==this.rightColumns.length-1?t.modules.frozen.edge=!0:t.modules.frozen.edge=!1,t.parent.isGroup?this.layoutElement(this.getColGroupParentElement(t),t):this.layoutElement(t.getElement(),t),e&&t.cells.forEach((e=>{this.layoutElement(e.getElement(!0),t)}))}))}getColGroupParentElement(e){return e.parent.isGroup?this.getColGroupParentElement(e.parent):e.getElement()}layout(){this.active&&!this.blocked&&(this.layoutColumnPosition(),this.reinitializeRows(),this.layoutCalcRows())}reinitializeRows(){var e=this.table.rowManager.getVisibleRows(!0);this.table.rowManager.getRows().filter((t=>!e.includes(t))).forEach((e=>{e.deinitialize()})),e.forEach((e=>{"row"===e.type&&this.layoutRow(e)}))}layoutRow(e){"fitDataFill"===this.table.options.layout&&this.rightColumns.length&&(this.table.rowManager.getTableElement().style.minWidth="calc(100% - "+this.rightMargin+")"),this.leftColumns.forEach((t=>{var n=e.getCell(t);n&&this.layoutElement(n.getElement(!0),t)})),this.rightColumns.forEach((t=>{var n=e.getCell(t);n&&this.layoutElement(n.getElement(!0),t)}))}layoutElement(e,t){var n;t.modules.frozen&&e&&(e.style.position="sticky",n=this.table.rtl?"left"===t.modules.frozen.position?"right":"left":t.modules.frozen.position,e.style[n]=t.modules.frozen.margin,e.classList.add("tabulator-frozen"),e.classList.toggle("tabulator-frozen-left",t.modules.frozen.edge&&"left"===t.modules.frozen.position),e.classList.toggle("tabulator-frozen-right",t.modules.frozen.edge&&"right"===t.modules.frozen.position))}adjustForScrollbar(e){this.rightColumns.length&&(this.table.columnManager.getContentsElement().style.width="calc(100% - "+e+"px)")}getFrozenColumns(){return this.leftColumns.concat(this.rightColumns)}_calcSpace(e,t){var n=0;for(let o=0;o<t;o++)e[o].visible&&(n+=e[o].getWidth());return n}},FrozenRowsModule:class extends s{static moduleName="frozenRows";constructor(e){super(e),this.topElement=document.createElement("div"),this.rows=[],this.registerComponentFunction("row","freeze",this.freezeRow.bind(this)),this.registerComponentFunction("row","unfreeze",this.unfreezeRow.bind(this)),this.registerComponentFunction("row","isFrozen",this.isRowFrozen.bind(this)),this.registerTableOption("frozenRowsField","id"),this.registerTableOption("frozenRows",!1)}initialize(){var e=document.createDocumentFragment();this.rows=[],this.topElement.classList.add("tabulator-frozen-rows-holder"),e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.subscribe("row-deleting",this.detachRow.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),10),this.table.options.frozenRows&&(this.subscribe("data-processed",this.initializeRows.bind(this)),this.subscribe("row-added",this.initializeRow.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this))),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}initializeRows(){this.table.rowManager.getRows().forEach((e=>{this.initializeRow(e)}))}initializeRow(e){var t=this.table.options.frozenRows,n=typeof t;"number"===n?e.getPosition()&&e.getPosition()+this.rows.length<=t&&this.freezeRow(e):"function"===n?t.call(this.table,e.getComponent())&&this.freezeRow(e):Array.isArray(t)&&t.includes(e.data[this.options("frozenRowsField")])&&this.freezeRow(e)}isRowFrozen(e){return this.rows.indexOf(e)>-1}isFrozen(){return!!this.rows.length}visibleRows(e,t){return this.rows.forEach((e=>{t.push(e)})),t}getRows(e){var t=e.slice(0);return this.rows.forEach((function(e){var n=t.indexOf(e);n>-1&&t.splice(n,1)})),t}freezeRow(e){e.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(e.modules.frozen=!0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),this.rows.push(e),this.refreshData(!1,"display"),this.table.rowManager.adjustTableSize(),this.styleRows())}unfreezeRow(e){e.modules.frozen?(e.modules.frozen=!1,this.detachRow(e),this.table.rowManager.adjustTableSize(),this.refreshData(!1,"display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")}detachRow(e){var t=this.rows.indexOf(e);if(t>-1){var n=e.getElement();n.parentNode&&n.parentNode.removeChild(n),this.rows.splice(t,1)}}styleRows(e){this.rows.forEach(((e,t)=>{this.table.rowManager.styleRow(e,t)}))}},GroupRowsModule:class extends s{static moduleName="groupRows";constructor(e){super(e),this.groupIDLookups=!1,this.startOpen=[function(){return!1}],this.headerGenerator=[function(){return""}],this.groupList=[],this.allowedValues=!1,this.groups={},this.displayHandler=this.getRows.bind(this),this.blockRedraw=!1,this.registerTableOption("groupBy",!1),this.registerTableOption("groupStartOpen",!0),this.registerTableOption("groupValues",!1),this.registerTableOption("groupUpdateOnCellEdit",!1),this.registerTableOption("groupHeader",!1),this.registerTableOption("groupHeaderPrint",null),this.registerTableOption("groupHeaderClipboard",null),this.registerTableOption("groupHeaderHtmlOutput",null),this.registerTableOption("groupHeaderDownload",null),this.registerTableOption("groupToggleElement","arrow"),this.registerTableOption("groupClosedShowCalcs",!1),this.registerTableFunction("setGroupBy",this.setGroupBy.bind(this)),this.registerTableFunction("setGroupValues",this.setGroupValues.bind(this)),this.registerTableFunction("setGroupStartOpen",this.setGroupStartOpen.bind(this)),this.registerTableFunction("setGroupHeader",this.setGroupHeader.bind(this)),this.registerTableFunction("getGroups",this.userGetGroups.bind(this)),this.registerTableFunction("getGroupedData",this.userGetGroupedData.bind(this)),this.registerComponentFunction("row","getGroup",this.rowGetGroup.bind(this))}initialize(){this.subscribe("table-destroy",this._blockRedrawing.bind(this)),this.subscribe("rows-wipe",this._blockRedrawing.bind(this)),this.subscribe("rows-wiped",this._restore_redrawing.bind(this)),this.table.options.groupBy&&(this.table.options.groupUpdateOnCellEdit&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("row-data-changed",this.reassignRowToGroup.bind(this),0)),this.subscribe("table-built",this.configureGroupSetup.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHeaders.bind(this)),this.subscribe("rows-wipe",this.wipe.bind(this)),this.subscribe("rows-added",this.rowsUpdated.bind(this)),this.subscribe("row-moving",this.rowMoving.bind(this)),this.subscribe("row-adding-index",this.rowAddingIndex.bind(this)),this.subscribe("rows-sample",this.rowSample.bind(this)),this.subscribe("render-virtual-fill",this.virtualRenderFill.bind(this)),this.registerDisplayHandler(this.displayHandler,20),this.initialized=!0)}_blockRedrawing(){this.blockRedraw=!0}_restore_redrawing(){this.blockRedraw=!1}configureGroupSetup(){if(this.table.options.groupBy){var e=this.table.options.groupBy,t=this.table.options.groupStartOpen,n=this.table.options.groupHeader;this.allowedValues=this.table.options.groupValues,Array.isArray(e)&&Array.isArray(n)&&e.length>n.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),this.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],this.langBind("groups|item",((e,t)=>{this.headerGenerator[0]=(n,o,i)=>(void 0===n?"":n)+"<span>("+o+" "+(1===o?e:t.groups.items)+")</span>"})),this.groupIDLookups=[],e?this.table.modExists("columnCalcs")&&"table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.removeCalcs():this.table.modExists("columnCalcs")&&"group"!=this.table.options.columnCalcs&&this.table.columnManager.getRealColumns().forEach((e=>{e.definition.topCalc&&this.table.modules.columnCalcs.initializeTopRow(),e.definition.bottomCalc&&this.table.modules.columnCalcs.initializeBottomRow()})),Array.isArray(e)||(e=[e]),e.forEach(((e,t)=>{var n,o;n="function"==typeof e?e:(o=this.table.columnManager.getColumnByField(e))?function(e){return o.getFieldValue(e)}:function(t){return t[e]},this.groupIDLookups.push({field:"function"!=typeof e&&e,func:n,values:!!this.allowedValues&&this.allowedValues[t]})})),t&&(Array.isArray(t)||(t=[t]),t.forEach((e=>{})),this.startOpen=t),n&&(this.headerGenerator=Array.isArray(n)?n:[n])}else this.groupList=[],this.groups={}}rowSample(e,t){if(this.table.options.groupBy){var n=this.getGroups(!1)[0];t.push(n.getRows(!1)[0])}return t}virtualRenderFill(){var e=this.table.rowManager.tableElement,t=this.table.rowManager.getVisibleRows();if(!this.table.options.groupBy)return t;t=t.filter((e=>"group"!==e.type)),e.style.minWidth=t.length?"":this.table.columnManager.getWidth()+"px"}rowAddingIndex(e,t,n){if(this.table.options.groupBy){this.assignRowToGroup(e);var o=e.modules.group.rows;return o.length>1&&(!t||t&&-1==o.indexOf(t)?n?o[0]!==e&&(t=o[0],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!n)):o[o.length-1]!==e&&(t=o[o.length-1],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!n)):this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!n)),t}}trackChanges(){this.dispatch("group-changed")}setGroupBy(e){this.table.options.groupBy=e,this.initialized||this.initialize(),this.configureGroupSetup(),!e&&this.table.modExists("columnCalcs")&&!0===this.table.options.columnCalcs&&this.table.modules.columnCalcs.reinitializeCalcs(),this.refreshData(),this.trackChanges()}setGroupValues(e){this.table.options.groupValues=e,this.configureGroupSetup(),this.refreshData(),this.trackChanges()}setGroupStartOpen(e){this.table.options.groupStartOpen=e,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}setGroupHeader(e){this.table.options.groupHeader=e,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}userGetGroups(e){return this.getGroups(!0)}userGetGroupedData(){return this.table.options.groupBy?this.getGroupedData():this.getData()}rowGetGroup(e){return!!e.modules.group&&e.modules.group.getComponent()}rowMoving(e,t,n){if(this.table.options.groupBy){!n&&t instanceof G&&(t=this.table.rowManager.prevDisplayRow(e)||t);var o=t instanceof G?t:t.modules.group,i=e instanceof G?e:e.modules.group;o===i?this.table.rowManager.moveRowInArray(o.rows,e,t,n):(i&&i.removeRow(e),o.insertRow(e,t,n))}}rowDeleting(e){this.table.options.groupBy&&e.modules.group&&e.modules.group.removeRow(e)}rowsUpdated(e){this.table.options.groupBy&&this.updateGroupRows(!0)}cellUpdated(e){this.table.options.groupBy&&this.reassignRowToGroup(e.row)}getRows(e){return this.table.options.groupBy&&this.groupIDLookups.length?(this.dispatchExternal("dataGrouping"),this.generateGroups(e),this.subscribedExternal("dataGrouped")&&this.dispatchExternal("dataGrouped",this.getGroups(!0)),this.updateGroupRows()):e.slice(0)}getGroups(e){var t=[];return this.groupList.forEach((function(n){t.push(e?n.getComponent():n)})),t}getChildGroups(e){var t=[];return e||(e=this),e.groupList.forEach((e=>{e.groupList.length?t=t.concat(this.getChildGroups(e)):t.push(e)})),t}wipe(){this.table.options.groupBy&&(this.groupList.forEach((function(e){e.wipe()})),this.groupList=[],this.groups={})}pullGroupListData(e){var t=[];return e.forEach((e=>{var n={level:0,rowCount:0,headerContent:""},o=[];e.hasSubGroups?(o=this.pullGroupListData(e.groupList),n.level=e.level,n.rowCount=o.length-e.groupList.length,n.headerContent=e.generator(e.key,n.rowCount,e.rows,e),t.push(n),t=t.concat(o)):(n.level=e.level,n.headerContent=e.generator(e.key,e.rows.length,e.rows,e),n.rowCount=e.getRows().length,t.push(n),e.getRows().forEach((e=>{t.push(e.getData("data"))})))})),t}getGroupedData(){return this.pullGroupListData(this.groupList)}getRowGroup(e){var t=!1;return this.options("dataTree")&&(e=this.table.modules.dataTree.getTreeParentRoot(e)),this.groupList.forEach((n=>{var o=n.getRowGroup(e);o&&(t=o)})),t}countGroups(){return this.groupList.length}generateGroups(e){var t=this.groups;this.groups={},this.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach((e=>{this.createGroup(e,0,t)})),e.forEach((e=>{this.assignRowToExistingGroup(e,t)}))):e.forEach((e=>{this.assignRowToGroup(e,t)})),Object.values(t).forEach((e=>{e.wipe(!0)}))}createGroup(e,t,n){var o,i=t+"_"+e;n=n||[],o=new G(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],n[i]),this.groups[i]=o,this.groupList.push(o)}assignRowToExistingGroup(e,t){var n="0_"+this.groupIDLookups[0].func(e.getData());this.groups[n]&&this.groups[n].addRow(e)}assignRowToGroup(e,t){var n=this.groupIDLookups[0].func(e.getData()),o=!this.groups["0_"+n];return o&&this.createGroup(n,0,t),this.groups["0_"+n].addRow(e),!o}reassignRowToGroup(e){if("row"===e.type){var t=e.modules.group,n=t.getPath(),o=this.getExpectedPath(e);n.length==o.length&&n.every(((e,t)=>e===o[t]))||(t.removeRow(e),this.assignRowToGroup(e,this.groups),this.refreshData(!0))}}getExpectedPath(e){var t=[],n=e.getData();return this.groupIDLookups.forEach((e=>{t.push(e.func(n))})),t}updateGroupRows(e){var t=[];return this.blockRedraw||(this.groupList.forEach((e=>{t=t.concat(e.getHeadersAndRows())})),e&&this.refreshData(!0)),t}scrollHeaders(e){this.table.options.groupBy&&("virtual"===this.table.options.renderHorizontal&&(e-=this.table.columnManager.renderer.vDomPadLeft),e+="px",this.groupList.forEach((t=>{t.scrollHeader(e)})))}removeGroup(e){var t,n=e.level+"_"+e.key;this.groups[n]&&(delete this.groups[n],(t=this.groupList.indexOf(e))>-1&&this.groupList.splice(t,1))}checkBasicModeGroupHeaderWidth(){var e=this.table.rowManager.tableElement,t=!0;this.table.rowManager.getDisplayRows().forEach(((n,o)=>{this.table.rowManager.styleRow(n,o),e.appendChild(n.getElement()),n.initialize(!0),"group"!==n.type&&(t=!1)})),e.style.minWidth=t?this.table.columnManager.getWidth()+"px":""}},HistoryModule:J,HtmlTableImportModule:class extends s{static moduleName="htmlTableImport";constructor(e){super(e),this.fieldIndex=[],this.hasIndex=!1}initialize(){this.tableElementCheck()}tableElementCheck(){this.table.originalElement&&"TABLE"===this.table.originalElement.tagName&&(this.table.originalElement.childNodes.length?this.parseTable():console.warn("Unable to parse data from empty table tag, Tabulator should be initialized on a div tag unless importing data from a table element."))}parseTable(){var e=this.table.originalElement,t=this.table.options,n=e.getElementsByTagName("th"),o=e.getElementsByTagName("tbody")[0],i=[];this.hasIndex=!1,this.dispatchExternal("htmlImporting"),o=o?o.getElementsByTagName("tr"):[],this._extractOptions(e,t),n.length?this._extractHeaders(n,o):this._generateBlankHeaders(n,o);for(var r=0;r<o.length;r++){var s=o[r].getElementsByTagName("td"),a={};this.hasIndex||(a[t.index]=r);for(var l=0;l<s.length;l++){var c=s[l];void 0!==this.fieldIndex[l]&&(a[this.fieldIndex[l]]=c.innerHTML)}i.push(a)}t.data=i,this.dispatchExternal("htmlImported")}_extractOptions(e,t,n){var o=e.attributes,i=n?Object.keys(n):Object.keys(t),r={};for(var s in i.forEach((e=>{r[e.toLowerCase()]=e})),o){var a,l=o[s];l&&"object"==typeof l&&l.name&&0===l.name.indexOf("tabulator-")&&(a=l.name.replace("tabulator-",""),void 0!==r[a]&&(t[r[a]]=this._attribValue(l.value)))}}_attribValue(e){return"true"===e||"false"!==e&&e}_findCol(e){return this.table.options.columns.find((t=>t.title===e))||!1}_extractHeaders(e,t){for(var n=0;n<e.length;n++){var o,i=e[n],r=!1,s=this._findCol(i.textContent);s?r=!0:s={title:i.textContent.trim()},s.field||(s.field=i.textContent.trim().toLowerCase().replaceAll(" ","_")),(o=i.getAttribute("width"))&&!s.width&&(s.width=o),this._extractOptions(i,s,this.table.columnManager.optionsList.registeredDefaults),this.fieldIndex[n]=s.field,s.field==this.table.options.index&&(this.hasIndex=!0),r||this.table.options.columns.push(s)}}_generateBlankHeaders(e,t){for(var n=0;n<e.length;n++){var o=e[n],i={title:"",field:"col"+n};this.fieldIndex[n]=i.field;var r=o.getAttribute("width");r&&(i.width=r),this.table.options.columns.push(i)}}},ImportModule:Z,InteractionModule:class extends s{static moduleName="interaction";constructor(e){super(e),this.eventMap={rowClick:"row-click",rowDblClick:"row-dblclick",rowContext:"row-contextmenu",rowMouseEnter:"row-mouseenter",rowMouseLeave:"row-mouseleave",rowMouseOver:"row-mouseover",rowMouseOut:"row-mouseout",rowMouseMove:"row-mousemove",rowMouseDown:"row-mousedown",rowMouseUp:"row-mouseup",rowTap:"row",rowDblTap:"row",rowTapHold:"row",cellClick:"cell-click",cellDblClick:"cell-dblclick",cellContext:"cell-contextmenu",cellMouseEnter:"cell-mouseenter",cellMouseLeave:"cell-mouseleave",cellMouseOver:"cell-mouseover",cellMouseOut:"cell-mouseout",cellMouseMove:"cell-mousemove",cellMouseDown:"cell-mousedown",cellMouseUp:"cell-mouseup",cellTap:"cell",cellDblTap:"cell",cellTapHold:"cell",headerClick:"column-click",headerDblClick:"column-dblclick",headerContext:"column-contextmenu",headerMouseEnter:"column-mouseenter",headerMouseLeave:"column-mouseleave",headerMouseOver:"column-mouseover",headerMouseOut:"column-mouseout",headerMouseMove:"column-mousemove",headerMouseDown:"column-mousedown",headerMouseUp:"column-mouseup",headerTap:"column",headerDblTap:"column",headerTapHold:"column",groupClick:"group-click",groupDblClick:"group-dblclick",groupContext:"group-contextmenu",groupMouseEnter:"group-mouseenter",groupMouseLeave:"group-mouseleave",groupMouseOver:"group-mouseover",groupMouseOut:"group-mouseout",groupMouseMove:"group-mousemove",groupMouseDown:"group-mousedown",groupMouseUp:"group-mouseup",groupTap:"group",groupDblTap:"group",groupTapHold:"group"},this.subscribers={},this.touchSubscribers={},this.columnSubscribers={},this.touchWatchers={row:{tap:null,tapDbl:null,tapHold:null},cell:{tap:null,tapDbl:null,tapHold:null},column:{tap:null,tapDbl:null,tapHold:null},group:{tap:null,tapDbl:null,tapHold:null}},this.registerColumnOption("headerClick"),this.registerColumnOption("headerDblClick"),this.registerColumnOption("headerContext"),this.registerColumnOption("headerMouseEnter"),this.registerColumnOption("headerMouseLeave"),this.registerColumnOption("headerMouseOver"),this.registerColumnOption("headerMouseOut"),this.registerColumnOption("headerMouseMove"),this.registerColumnOption("headerMouseDown"),this.registerColumnOption("headerMouseUp"),this.registerColumnOption("headerTap"),this.registerColumnOption("headerDblTap"),this.registerColumnOption("headerTapHold"),this.registerColumnOption("cellClick"),this.registerColumnOption("cellDblClick"),this.registerColumnOption("cellContext"),this.registerColumnOption("cellMouseEnter"),this.registerColumnOption("cellMouseLeave"),this.registerColumnOption("cellMouseOver"),this.registerColumnOption("cellMouseOut"),this.registerColumnOption("cellMouseMove"),this.registerColumnOption("cellMouseDown"),this.registerColumnOption("cellMouseUp"),this.registerColumnOption("cellTap"),this.registerColumnOption("cellDblTap"),this.registerColumnOption("cellTapHold")}initialize(){this.initializeExternalEvents(),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("cell-dblclick",this.cellContentsSelectionFixer.bind(this)),this.subscribe("scroll-horizontal",this.clearTouchWatchers.bind(this)),this.subscribe("scroll-vertical",this.clearTouchWatchers.bind(this))}clearTouchWatchers(){Object.values(this.touchWatchers).forEach((e=>{for(let t in e)e[t]=null}))}cellContentsSelectionFixer(e,t){var n;if(!this.table.modExists("edit")||this.table.modules.edit.currentCell!==t){e.preventDefault();try{document.selection?((n=document.body.createTextRange()).moveToElementText(t.getElement()),n.select()):window.getSelection&&((n=document.createRange()).selectNode(t.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(n))}catch(e){}}}initializeExternalEvents(){for(let e in this.eventMap)this.subscriptionChangeExternal(e,this.subscriptionChanged.bind(this,e))}subscriptionChanged(e,t){t?this.subscribers[e]||(this.eventMap[e].includes("-")?(this.subscribers[e]=this.handle.bind(this,e),this.subscribe(this.eventMap[e],this.subscribers[e])):this.subscribeTouchEvents(e)):this.eventMap[e].includes("-")?!this.subscribers[e]||this.columnSubscribers[e]||this.subscribedExternal(e)||(this.unsubscribe(this.eventMap[e],this.subscribers[e]),delete this.subscribers[e]):this.unsubscribeTouchEvents(e)}subscribeTouchEvents(e){var t=this.eventMap[e];this.touchSubscribers[t+"-touchstart"]||(this.touchSubscribers[t+"-touchstart"]=this.handleTouch.bind(this,t,"start"),this.touchSubscribers[t+"-touchend"]=this.handleTouch.bind(this,t,"end"),this.subscribe(t+"-touchstart",this.touchSubscribers[t+"-touchstart"]),this.subscribe(t+"-touchend",this.touchSubscribers[t+"-touchend"])),this.subscribers[e]=!0}unsubscribeTouchEvents(e){var t=!0,n=this.eventMap[e];if(this.subscribers[e]&&!this.subscribedExternal(e)){delete this.subscribers[e];for(let e in this.eventMap)this.eventMap[e]===n&&this.subscribers[e]&&(t=!1);t&&(this.unsubscribe(n+"-touchstart",this.touchSubscribers[n+"-touchstart"]),this.unsubscribe(n+"-touchend",this.touchSubscribers[n+"-touchend"]),delete this.touchSubscribers[n+"-touchstart"],delete this.touchSubscribers[n+"-touchend"])}}initializeColumn(e){var t=e.definition;for(let n in this.eventMap)t[n]&&(this.subscriptionChanged(n,!0),this.columnSubscribers[n]||(this.columnSubscribers[n]=[]),this.columnSubscribers[n].push(e))}handle(e,t,n){this.dispatchEvent(e,t,n)}handleTouch(e,t,n,o){var i=this.touchWatchers[e];switch("column"===e&&(e="header"),t){case"start":i.tap=!0,clearTimeout(i.tapHold),i.tapHold=setTimeout((()=>{clearTimeout(i.tapHold),i.tapHold=null,i.tap=null,clearTimeout(i.tapDbl),i.tapDbl=null,this.dispatchEvent(e+"TapHold",n,o)}),1e3);break;case"end":i.tap&&(i.tap=null,this.dispatchEvent(e+"Tap",n,o)),i.tapDbl?(clearTimeout(i.tapDbl),i.tapDbl=null,this.dispatchEvent(e+"DblTap",n,o)):i.tapDbl=setTimeout((()=>{clearTimeout(i.tapDbl),i.tapDbl=null}),300),clearTimeout(i.tapHold),i.tapHold=null}}dispatchEvent(e,t,n){var o,i=n.getComponent();this.columnSubscribers[e]&&(n instanceof S?o=n.column.definition[e]:n instanceof x&&(o=n.definition[e]),o&&o(t,i)),this.dispatchExternal(e,t,i)}},KeybindingsModule:ne,MenuModule:class extends s{static moduleName="menu";constructor(e){super(e),this.menuContainer=null,this.nestedMenuBlock=!1,this.currentComponent=null,this.rootPopup=null,this.columnSubscribers={},this.registerTableOption("rowContextMenu",!1),this.registerTableOption("rowClickMenu",!1),this.registerTableOption("rowDblClickMenu",!1),this.registerTableOption("groupContextMenu",!1),this.registerTableOption("groupClickMenu",!1),this.registerTableOption("groupDblClickMenu",!1),this.registerColumnOption("headerContextMenu"),this.registerColumnOption("headerClickMenu"),this.registerColumnOption("headerDblClickMenu"),this.registerColumnOption("headerMenu"),this.registerColumnOption("headerMenuIcon"),this.registerColumnOption("contextMenu"),this.registerColumnOption("clickMenu"),this.registerColumnOption("dblClickMenu")}initialize(){this.deprecatedOptionsCheck(),this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeRowWatchers(){this.table.options.rowContextMenu&&(this.subscribe("row-contextmenu",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu)),this.table.on("rowTapHold",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu))),this.table.options.rowClickMenu&&this.subscribe("row-click",this.loadMenuEvent.bind(this,this.table.options.rowClickMenu)),this.table.options.rowDblClickMenu&&this.subscribe("row-dblclick",this.loadMenuEvent.bind(this,this.table.options.rowDblClickMenu))}initializeGroupWatchers(){this.table.options.groupContextMenu&&(this.subscribe("group-contextmenu",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu)),this.table.on("groupTapHold",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu))),this.table.options.groupClickMenu&&this.subscribe("group-click",this.loadMenuEvent.bind(this,this.table.options.groupClickMenu)),this.table.options.groupDblClickMenu&&this.subscribe("group-dblclick",this.loadMenuEvent.bind(this,this.table.options.groupDblClickMenu))}initializeColumn(e){var t=e.definition;t.headerContextMenu&&!this.columnSubscribers.headerContextMenu&&(this.columnSubscribers.headerContextMenu=this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextMenu),this.table.on("headerTapHold",this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"))),t.headerClickMenu&&!this.columnSubscribers.headerClickMenu&&(this.columnSubscribers.headerClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerClickMenu"),this.subscribe("column-click",this.columnSubscribers.headerClickMenu)),t.headerDblClickMenu&&!this.columnSubscribers.headerDblClickMenu&&(this.columnSubscribers.headerDblClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerDblClickMenu"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickMenu)),t.headerMenu&&this.initializeColumnHeaderMenu(e),t.contextMenu&&!this.columnSubscribers.contextMenu&&(this.columnSubscribers.contextMenu=this.loadMenuTableCellEvent.bind(this,"contextMenu"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextMenu),this.table.on("cellTapHold",this.loadMenuTableCellEvent.bind(this,"contextMenu"))),t.clickMenu&&!this.columnSubscribers.clickMenu&&(this.columnSubscribers.clickMenu=this.loadMenuTableCellEvent.bind(this,"clickMenu"),this.subscribe("cell-click",this.columnSubscribers.clickMenu)),t.dblClickMenu&&!this.columnSubscribers.dblClickMenu&&(this.columnSubscribers.dblClickMenu=this.loadMenuTableCellEvent.bind(this,"dblClickMenu"),this.subscribe("cell-dblclick",this.columnSubscribers.dblClickMenu))}initializeColumnHeaderMenu(e){var t,n=e.definition.headerMenuIcon;(t=document.createElement("span")).classList.add("tabulator-header-popup-button"),n?("function"==typeof n&&(n=n(e.getComponent())),n instanceof HTMLElement?t.appendChild(n):t.innerHTML=n):t.innerHTML="&vellip;",t.addEventListener("click",(t=>{t.stopPropagation(),t.preventDefault(),this.loadMenuEvent(e.definition.headerMenu,t,e)})),e.titleElement.insertBefore(t,e.titleElement.firstChild)}loadMenuTableCellEvent(e,t,n){n._cell&&(n=n._cell),n.column.definition[e]&&this.loadMenuEvent(n.column.definition[e],t,n)}loadMenuTableColumnEvent(e,t,n){n._column&&(n=n._column),n.definition[e]&&this.loadMenuEvent(n.definition[e],t,n)}loadMenuEvent(e,t,n){n._group?n=n._group:n._row&&(n=n._row),e="function"==typeof e?e.call(this.table,t,n.getComponent()):e,this.loadMenu(t,n,e)}loadMenu(e,t,n,o,i){var r,s=!(e instanceof MouseEvent),a=document.createElement("div");if(a.classList.add("tabulator-menu"),s||e.preventDefault(),n&&n.length){if(o)r=i.child(a);else{if(this.nestedMenuBlock){if(this.rootPopup)return}else this.nestedMenuBlock=setTimeout((()=>{this.nestedMenuBlock=!1}),100);this.rootPopup&&this.rootPopup.hide(),this.rootPopup=r=this.popup(a)}n.forEach((e=>{var n=document.createElement("div"),o=e.label,i=e.disabled;e.separator?n.classList.add("tabulator-menu-separator"):(n.classList.add("tabulator-menu-item"),"function"==typeof o&&(o=o.call(this.table,t.getComponent())),o instanceof Node?n.appendChild(o):n.innerHTML=o,"function"==typeof i&&(i=i.call(this.table,t.getComponent())),i?(n.classList.add("tabulator-menu-item-disabled"),n.addEventListener("click",(e=>{e.stopPropagation()}))):e.menu&&e.menu.length?n.addEventListener("click",(o=>{o.stopPropagation(),this.loadMenu(o,t,e.menu,n,r)})):e.action&&n.addEventListener("click",(n=>{e.action(n,t.getComponent())})),e.menu&&e.menu.length&&n.classList.add("tabulator-menu-item-submenu")),a.appendChild(n)})),a.addEventListener("click",(e=>{this.rootPopup&&this.rootPopup.hide()})),r.show(o||e),r===this.rootPopup&&(this.rootPopup.hideOnBlur((()=>{this.rootPopup=null,this.currentComponent&&(this.dispatch("menu-closed",n,r),this.dispatchExternal("menuClosed",this.currentComponent.getComponent()),this.currentComponent=null)})),this.currentComponent=t,this.dispatch("menu-opened",n,r),this.dispatchExternal("menuOpened",t.getComponent()))}}},MoveColumnsModule:class extends s{static moduleName="moveColumn";constructor(e){super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.registerTableOption("movableColumns",!1)}createPlaceholderElement(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.classList.add("tabulator-col-placeholder"),e}initialize(){this.table.options.movableColumns&&(this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("alert-show",this.abortMove.bind(this)))}abortMove(){clearTimeout(this.checkTimeout)}initializeColumn(e){var t,n=this,o={};e.modules.frozen||e.isGroup||e.isRowHeader||(t=e.getElement(),o.mousemove=function(o){e.parent===n.moving.parent&&((n.touchMove?o.touches[0].pageX:o.pageX)-i.elOffset(t).left+n.table.columnManager.contentsElement.scrollLeft>e.getWidth()/2?n.toCol===e&&n.toColAfter||(t.parentNode.insertBefore(n.placeholderElement,t.nextSibling),n.moveColumn(e,!0)):(n.toCol!==e||n.toColAfter)&&(t.parentNode.insertBefore(n.placeholderElement,t),n.moveColumn(e,!1)))}.bind(n),t.addEventListener("mousedown",(function(t){n.touchMove=!1,1===t.which&&(n.checkTimeout=setTimeout((function(){n.startMove(t,e)}),n.checkPeriod))})),t.addEventListener("mouseup",(function(e){1===e.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)})),n.bindTouchEvents(e)),e.modules.moveColumn=o}bindTouchEvents(e){var t,n,o,i,r,s,a=e.getElement(),l=!1;a.addEventListener("touchstart",(a=>{this.checkTimeout=setTimeout((()=>{this.touchMove=!0,t=e.nextColumn(),o=t?t.getWidth()/2:0,n=e.prevColumn(),i=n?n.getWidth()/2:0,r=0,s=0,l=!1,this.startMove(a,e)}),this.checkPeriod)}),{passive:!0}),a.addEventListener("touchmove",(a=>{var c,d;this.moving&&(this.moveHover(a),l||(l=a.touches[0].pageX),(c=a.touches[0].pageX-l)>0?t&&c-r>o&&(d=t)!==e&&(l=a.touches[0].pageX,d.getElement().parentNode.insertBefore(this.placeholderElement,d.getElement().nextSibling),this.moveColumn(d,!0)):n&&-c-s>i&&(d=n)!==e&&(l=a.touches[0].pageX,d.getElement().parentNode.insertBefore(this.placeholderElement,d.getElement()),this.moveColumn(d,!1)),d&&(t=d.nextColumn(),r=o,o=t?t.getWidth()/2:0,n=d.prevColumn(),s=i,i=n?n.getWidth()/2:0))}),{passive:!0}),a.addEventListener("touchend",(e=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&this.endMove(e)}))}startMove(e,t){var n=t.getElement(),o=this.table.columnManager.getContentsElement(),r=this.table.columnManager.getHeadersElement();this.table.modules.selectRange&&this.table.modules.selectRange.columnSelection&&this.table.modules.selectRange.mousedown&&"column"===this.table.modules.selectRange.selecting||(this.moving=t,this.startX=(this.touchMove?e.touches[0].pageX:e.pageX)-i.elOffset(n).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),o.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom=o.clientHeight-r.offsetHeight+"px",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(e),this.dispatch("column-moving",e,this.moving))}_bindMouseMove(){this.table.columnManager.columnsByIndex.forEach((function(e){e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveColumn.mousemove)}))}_unbindMouseMove(){this.table.columnManager.columnsByIndex.forEach((function(e){e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveColumn.mousemove)}))}moveColumn(e,t){var n=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?e.getCells().forEach((function(e,t){var o=e.getElement(!0);o.parentNode&&n[t]&&o.parentNode.insertBefore(n[t].getElement(),o.nextSibling)})):e.getCells().forEach((function(e,t){var o=e.getElement(!0);o.parentNode&&n[t]&&o.parentNode.insertBefore(n[t].getElement(),o)}))}endMove(e){(1===e.which||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))}moveHover(e){var t,n=this.table.columnManager.getContentsElement(),o=n.scrollLeft,r=(this.touchMove?e.touches[0].pageX:e.pageX)-i.elOffset(n).left+o;this.hoverElement.style.left=r-this.startX+"px",r-o<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout((()=>{t=Math.max(0,o-5),this.table.rowManager.getElement().scrollLeft=t,this.autoScrollTimeout=!1}),1))),o+n.clientWidth-r<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout((()=>{t=Math.min(n.clientWidth,o+5),this.table.rowManager.getElement().scrollLeft=t,this.autoScrollTimeout=!1}),1)))}},MoveRowsModule:re,MutatorModule:ae,PageModule:ce,PersistenceModule:he,PopupModule:class extends s{static moduleName="popup";constructor(e){super(e),this.columnSubscribers={},this.registerTableOption("rowContextPopup",!1),this.registerTableOption("rowClickPopup",!1),this.registerTableOption("rowDblClickPopup",!1),this.registerTableOption("groupContextPopup",!1),this.registerTableOption("groupClickPopup",!1),this.registerTableOption("groupDblClickPopup",!1),this.registerColumnOption("headerContextPopup"),this.registerColumnOption("headerClickPopup"),this.registerColumnOption("headerDblClickPopup"),this.registerColumnOption("headerPopup"),this.registerColumnOption("headerPopupIcon"),this.registerColumnOption("contextPopup"),this.registerColumnOption("clickPopup"),this.registerColumnOption("dblClickPopup"),this.registerComponentFunction("cell","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("column","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("row","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("group","popup",this._componentPopupCall.bind(this))}initialize(){this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}_componentPopupCall(e,t,n){this.loadPopupEvent(t,null,e,n)}initializeRowWatchers(){this.table.options.rowContextPopup&&(this.subscribe("row-contextmenu",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup)),this.table.on("rowTapHold",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup))),this.table.options.rowClickPopup&&this.subscribe("row-click",this.loadPopupEvent.bind(this,this.table.options.rowClickPopup)),this.table.options.rowDblClickPopup&&this.subscribe("row-dblclick",this.loadPopupEvent.bind(this,this.table.options.rowDblClickPopup))}initializeGroupWatchers(){this.table.options.groupContextPopup&&(this.subscribe("group-contextmenu",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup)),this.table.on("groupTapHold",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup))),this.table.options.groupClickPopup&&this.subscribe("group-click",this.loadPopupEvent.bind(this,this.table.options.groupClickPopup)),this.table.options.groupDblClickPopup&&this.subscribe("group-dblclick",this.loadPopupEvent.bind(this,this.table.options.groupDblClickPopup))}initializeColumn(e){var t=e.definition;t.headerContextPopup&&!this.columnSubscribers.headerContextPopup&&(this.columnSubscribers.headerContextPopup=this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextPopup),this.table.on("headerTapHold",this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"))),t.headerClickPopup&&!this.columnSubscribers.headerClickPopup&&(this.columnSubscribers.headerClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerClickPopup"),this.subscribe("column-click",this.columnSubscribers.headerClickPopup)),t.headerDblClickPopup&&!this.columnSubscribers.headerDblClickPopup&&(this.columnSubscribers.headerDblClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerDblClickPopup"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickPopup)),t.headerPopup&&this.initializeColumnHeaderPopup(e),t.contextPopup&&!this.columnSubscribers.contextPopup&&(this.columnSubscribers.contextPopup=this.loadPopupTableCellEvent.bind(this,"contextPopup"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextPopup),this.table.on("cellTapHold",this.loadPopupTableCellEvent.bind(this,"contextPopup"))),t.clickPopup&&!this.columnSubscribers.clickPopup&&(this.columnSubscribers.clickPopup=this.loadPopupTableCellEvent.bind(this,"clickPopup"),this.subscribe("cell-click",this.columnSubscribers.clickPopup)),t.dblClickPopup&&!this.columnSubscribers.dblClickPopup&&(this.columnSubscribers.dblClickPopup=this.loadPopupTableCellEvent.bind(this,"dblClickPopup"),this.subscribe("cell-click",this.columnSubscribers.dblClickPopup))}initializeColumnHeaderPopup(e){var t,n=e.definition.headerPopupIcon;(t=document.createElement("span")).classList.add("tabulator-header-popup-button"),n?("function"==typeof n&&(n=n(e.getComponent())),n instanceof HTMLElement?t.appendChild(n):t.innerHTML=n):t.innerHTML="&vellip;",t.addEventListener("click",(t=>{t.stopPropagation(),t.preventDefault(),this.loadPopupEvent(e.definition.headerPopup,t,e)})),e.titleElement.insertBefore(t,e.titleElement.firstChild)}loadPopupTableCellEvent(e,t,n){n._cell&&(n=n._cell),n.column.definition[e]&&this.loadPopupEvent(n.column.definition[e],t,n)}loadPopupTableColumnEvent(e,t,n){n._column&&(n=n._column),n.definition[e]&&this.loadPopupEvent(n.definition[e],t,n)}loadPopupEvent(e,t,n,o){var i;n._group?n=n._group:n._row&&(n=n._row),e="function"==typeof e?e.call(this.table,t,n.getComponent(),(function(e){i=e})):e,this.loadPopup(t,n,e,i,o)}loadPopup(e,t,n,o,i){var r,s,a=!(e instanceof MouseEvent);n instanceof HTMLElement?r=n:(r=document.createElement("div")).innerHTML=n,r.classList.add("tabulator-popup"),r.addEventListener("click",(e=>{e.stopPropagation()})),a||e.preventDefault(),s=this.popup(r),"function"==typeof o&&s.renderCallback(o),e?s.show(e):s.show(t.getElement(),i||"center"),s.hideOnBlur((()=>{this.dispatchExternal("popupClosed",t.getComponent())})),this.dispatchExternal("popupOpened",t.getComponent())}},PrintModule:class extends s{static moduleName="print";constructor(e){super(e),this.element=!1,this.manualBlock=!1,this.beforeprintEventHandler=null,this.afterprintEventHandler=null,this.registerTableOption("printAsHtml",!1),this.registerTableOption("printFormatter",!1),this.registerTableOption("printHeader",!1),this.registerTableOption("printFooter",!1),this.registerTableOption("printStyled",!0),this.registerTableOption("printRowRange","visible"),this.registerTableOption("printConfig",{}),this.registerColumnOption("print"),this.registerColumnOption("titlePrint")}initialize(){this.table.options.printAsHtml&&(this.beforeprintEventHandler=this.replaceTable.bind(this),this.afterprintEventHandler=this.cleanup.bind(this),window.addEventListener("beforeprint",this.beforeprintEventHandler),window.addEventListener("afterprint",this.afterprintEventHandler),this.subscribe("table-destroy",this.destroy.bind(this))),this.registerTableFunction("print",this.printFullscreen.bind(this))}destroy(){this.table.options.printAsHtml&&(window.removeEventListener("beforeprint",this.beforeprintEventHandler),window.removeEventListener("afterprint",this.afterprintEventHandler))}replaceTable(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.generateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))}cleanup(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")}printFullscreen(e,t,n){var o,i,r=window.scrollX,s=window.scrollY,a=document.createElement("div"),l=document.createElement("div"),c=this.table.modules.export.generateTable(void 0!==n?n:this.table.options.printConfig,void 0!==t?t:this.table.options.printStyled,e||this.table.options.printRowRange,"print");this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(a.classList.add("tabulator-print-header"),"string"==typeof(o="function"==typeof this.table.options.printHeader?this.table.options.printHeader.call(this.table):this.table.options.printHeader)?a.innerHTML=o:a.appendChild(o),this.element.appendChild(a)),this.element.appendChild(c),this.table.options.printFooter&&(l.classList.add("tabulator-print-footer"),"string"==typeof(i="function"==typeof this.table.options.printFooter?this.table.options.printFooter.call(this.table):this.table.options.printFooter)?l.innerHTML=i:l.appendChild(i),this.element.appendChild(l)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,c),window.print(),this.cleanup(),window.scrollTo(r,s),this.manualBlock=!1}},ReactiveDataModule:class extends s{static moduleName="reactiveData";constructor(e){super(e),this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0,this.registerTableOption("reactiveData",!1)}initialize(){this.table.options.reactiveData&&(this.subscribe("cell-value-save-before",this.block.bind(this,"cellsave")),this.subscribe("cell-value-save-after",this.unblock.bind(this,"cellsave")),this.subscribe("row-data-save-before",this.block.bind(this,"rowsave")),this.subscribe("row-data-save-after",this.unblock.bind(this,"rowsave")),this.subscribe("row-data-init-after",this.watchRow.bind(this)),this.subscribe("data-processing",this.watchData.bind(this)),this.subscribe("table-destroy",this.unwatchData.bind(this)))}watchData(e){var t,n=this;this.currentVersion++,t=this.currentVersion,this.unwatchData(),this.data=e,this.origFuncs.push=e.push,Object.defineProperty(this.data,"push",{enumerable:!1,configurable:!0,value:function(){var o,i=Array.from(arguments);return n.blocked||t!==n.currentVersion||(n.block("data-push"),i.forEach((e=>{n.table.rowManager.addRowActual(e,!1)})),o=n.origFuncs.push.apply(e,arguments),n.unblock("data-push")),o}}),this.origFuncs.unshift=e.unshift,Object.defineProperty(this.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var o,i=Array.from(arguments);return n.blocked||t!==n.currentVersion||(n.block("data-unshift"),i.forEach((e=>{n.table.rowManager.addRowActual(e,!0)})),o=n.origFuncs.unshift.apply(e,arguments),n.unblock("data-unshift")),o}}),this.origFuncs.shift=e.shift,Object.defineProperty(this.data,"shift",{enumerable:!1,configurable:!0,value:function(){var o,i;return n.blocked||t!==n.currentVersion||(n.block("data-shift"),n.data.length&&(o=n.table.rowManager.getRowFromDataObject(n.data[0]))&&o.deleteActual(),i=n.origFuncs.shift.call(e),n.unblock("data-shift")),i}}),this.origFuncs.pop=e.pop,Object.defineProperty(this.data,"pop",{enumerable:!1,configurable:!0,value:function(){var o,i;return n.blocked||t!==n.currentVersion||(n.block("data-pop"),n.data.length&&(o=n.table.rowManager.getRowFromDataObject(n.data[n.data.length-1]))&&o.deleteActual(),i=n.origFuncs.pop.call(e),n.unblock("data-pop")),i}}),this.origFuncs.splice=e.splice,Object.defineProperty(this.data,"splice",{enumerable:!1,configurable:!0,value:function(){var o,i,r=Array.from(arguments),s=r[0]<0?e.length+r[0]:r[0],a=r[1],l=!!r[2]&&r.slice(2);if(!n.blocked&&t===n.currentVersion){if(n.block("data-splice"),l&&((o=!!e[s]&&n.table.rowManager.getRowFromDataObject(e[s]))?l.forEach((e=>{n.table.rowManager.addRowActual(e,!0,o,!0)})):(l=l.slice().reverse()).forEach((e=>{n.table.rowManager.addRowActual(e,!0,!1,!0)}))),0!==a){var c=e.slice(s,void 0===r[1]?r[1]:s+a);c.forEach(((e,t)=>{var o=n.table.rowManager.getRowFromDataObject(e);o&&o.deleteActual(t!==c.length-1)}))}(l||0!==a)&&n.table.rowManager.reRenderInPosition(),i=n.origFuncs.splice.apply(e,arguments),n.unblock("data-splice")}return i}})}unwatchData(){if(!1!==this.data)for(var e in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})}watchRow(e){var t=e.getData();for(var n in t)this.watchKey(e,t,n);this.table.options.dataTree&&this.watchTreeChildren(e)}watchTreeChildren(e){var t=this,n=e.getData()[this.table.options.dataTreeChildField],o={};n&&(o.push=n.push,Object.defineProperty(n,"push",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-push");var i=o.push.apply(n,arguments);this.rebuildTree(e),t.unblock("tree-push")}return i}}),o.unshift=n.unshift,Object.defineProperty(n,"unshift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-unshift");var i=o.unshift.apply(n,arguments);this.rebuildTree(e),t.unblock("tree-unshift")}return i}}),o.shift=n.shift,Object.defineProperty(n,"shift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-shift");var i=o.shift.call(n);this.rebuildTree(e),t.unblock("tree-shift")}return i}}),o.pop=n.pop,Object.defineProperty(n,"pop",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-pop");var i=o.pop.call(n);this.rebuildTree(e),t.unblock("tree-pop")}return i}}),o.splice=n.splice,Object.defineProperty(n,"splice",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-splice");var i=o.splice.apply(n,arguments);this.rebuildTree(e),t.unblock("tree-splice")}return i}}))}rebuildTree(e){this.table.modules.dataTree.initializeRow(e),this.table.modules.dataTree.layoutRow(e),this.table.rowManager.refreshActiveData("tree",!1,!0)}watchKey(e,t,n){var o=this,i=Object.getOwnPropertyDescriptor(t,n),r=t[n],s=this.currentVersion;Object.defineProperty(t,n,{set:t=>{if(r=t,!o.blocked&&s===o.currentVersion){o.block("key");var a={};a[n]=t,e.updateData(a),o.unblock("key")}i.set&&i.set(t)},get:()=>(i.get&&i.get(),r)})}unwatchRow(e){var t=e.getData();for(var n in t)Object.defineProperty(t,n,{value:t[n]})}block(e){this.blocked||(this.blocked=e)}unblock(e){this.blocked===e&&(this.blocked=!1)}},ResizeColumnsModule:class extends s{static moduleName="resizeColumns";constructor(e){super(e),this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.latestX=!1,this.handle=null,this.initialNextColumn=null,this.nextColumn=null,this.initialized=!1,this.registerColumnOption("resizable",!0),this.registerTableOption("resizableColumnFit",!1),this.registerTableOption("resizableColumnGuide",!1)}initialize(){this.subscribe("column-rendered",this.layoutColumnHeader.bind(this))}initializeEventWatchers(){this.initialized||(this.subscribe("cell-rendered",this.layoutCellHandles.bind(this)),this.subscribe("cell-delete",this.deInitializeComponent.bind(this)),this.subscribe("cell-height",this.resizeHandle.bind(this)),this.subscribe("column-moved",this.columnLayoutUpdated.bind(this)),this.subscribe("column-hide",this.deInitializeColumn.bind(this)),this.subscribe("column-show",this.columnLayoutUpdated.bind(this)),this.subscribe("column-width",this.columnWidthUpdated.bind(this)),this.subscribe("column-delete",this.deInitializeComponent.bind(this)),this.subscribe("column-height",this.resizeHandle.bind(this)),this.initialized=!0)}layoutCellHandles(e){"row"===e.row.type&&(this.deInitializeComponent(e),this.initializeColumn("cell",e,e.column,e.element))}layoutColumnHeader(e){e.definition.resizable&&(this.initializeEventWatchers(),this.deInitializeComponent(e),this.initializeColumn("header",e,e,e.element))}columnLayoutUpdated(e){var t=e.prevColumn();this.reinitializeColumn(e),t&&this.reinitializeColumn(t)}columnWidthUpdated(e){e.modules.frozen&&(this.table.modules.frozenColumns.leftColumns.includes(e)?this.table.modules.frozenColumns.leftColumns.forEach((e=>{this.reinitializeColumn(e)})):this.table.modules.frozenColumns.rightColumns.includes(e)&&this.table.modules.frozenColumns.rightColumns.forEach((e=>{this.reinitializeColumn(e)})))}frozenColumnOffset(e){var t=!1;return e.modules.frozen&&(t=e.modules.frozen.marginValue,"left"===e.modules.frozen.position?t+=e.getWidth()-3:t&&(t-=3)),!1!==t&&t+"px"}reinitializeColumn(e){var t=this.frozenColumnOffset(e);e.cells.forEach((n=>{n.modules.resize&&n.modules.resize.handleEl&&(t&&(n.modules.resize.handleEl.style[e.modules.frozen.position]=t,n.modules.resize.handleEl.style["z-index"]=11),n.element.after(n.modules.resize.handleEl))})),e.modules.resize&&e.modules.resize.handleEl&&(t&&(e.modules.resize.handleEl.style[e.modules.frozen.position]=t),e.element.after(e.modules.resize.handleEl))}initializeColumn(e,t,n,o){var i=this,r=n.definition.resizable,s={},a=n.getLastColumn();if("header"===e&&(s={variableHeight:"textarea"==n.definition.formatter||n.definition.variableHeight}),(!0===r||r==e)&&this._checkResizability(a)){var l=document.createElement("span");l.className="tabulator-col-resize-handle",l.addEventListener("click",(function(e){e.stopPropagation()}));var c=function(e){i.startColumn=n,i.initialNextColumn=i.nextColumn=a.nextColumn(),i._mouseDown(e,a,l)};l.addEventListener("mousedown",c),l.addEventListener("touchstart",c,{passive:!0}),l.addEventListener("dblclick",(e=>{var t=a.getWidth();e.stopPropagation(),a.reinitializeWidth(!0),t!==a.getWidth()&&(i.dispatch("column-resized",a),i.dispatchExternal("columnResized",a.getComponent()))})),n.modules.frozen&&(l.style.position="sticky",l.style[n.modules.frozen.position]=this.frozenColumnOffset(n)),s.handleEl=l,o.parentNode&&n.visible&&o.after(l)}t.modules.resize=s}deInitializeColumn(e){this.deInitializeComponent(e),e.cells.forEach((e=>{this.deInitializeComponent(e)}))}deInitializeComponent(e){var t;e.modules.resize&&(t=e.modules.resize.handleEl)&&t.parentElement&&t.parentElement.removeChild(t)}resizeHandle(e,t){e.modules.resize&&e.modules.resize.handleEl&&(e.modules.resize.handleEl.style.height=t)}resize(e,t){var n,o,i=void 0===e.clientX?e.touches[0].clientX:e.clientX,r=i-this.startX,s=i-this.latestX;if(this.latestX=i,this.table.rtl&&(r=-r,s=-s),n=t.width==t.minWidth||t.width==t.maxWidth,t.setWidth(this.startWidth+r),o=t.width==t.minWidth||t.width==t.maxWidth,s<0&&(this.nextColumn=this.initialNextColumn),this.table.options.resizableColumnFit&&this.nextColumn&&(!n||!o)){let e=this.nextColumn.getWidth();s>0&&e<=this.nextColumn.minWidth&&(this.nextColumn=this.nextColumn.nextColumn()),this.nextColumn&&this.nextColumn.setWidth(this.nextColumn.getWidth()-s)}this.table.columnManager.rerenderColumns(!0),!this.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}calcGuidePosition(e,t,n){var o=void 0===e.clientX?e.touches[0].clientX:e.clientX,i=n.getBoundingClientRect().x-this.table.element.getBoundingClientRect().x,r=this.table.element.getBoundingClientRect().x,s=t.element.getBoundingClientRect().left-r,a=o-this.startX,l=Math.max(i+a,s+t.minWidth);return t.maxWidth&&(l=Math.min(l,s+t.maxWidth)),l}_checkResizability(e){return e.definition.resizable}_mouseDown(e,t,n){var o,i=this;function r(e){i.table.options.resizableColumnGuide?o.style.left=i.calcGuidePosition(e,t,n)+"px":i.resize(e,t)}function s(e){i.table.options.resizableColumnGuide&&(i.resize(e,t),o.remove()),i.startColumn.modules.edit&&(i.startColumn.modules.edit.blocked=!1),i.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",s),document.body.removeEventListener("mousemove",r),n.removeEventListener("touchmove",r),n.removeEventListener("touchend",s),i.table.element.classList.remove("tabulator-block-select"),i.startWidth!==t.getWidth()&&(i.table.columnManager.verticalAlignHeaders(),i.dispatch("column-resized",t),i.dispatchExternal("columnResized",t.getComponent()))}this.dispatchExternal("columnResizing",t.getComponent()),i.table.options.resizableColumnGuide&&((o=document.createElement("span")).classList.add("tabulator-col-resize-guide"),i.table.element.appendChild(o),setTimeout((()=>{o.style.left=i.calcGuidePosition(e,t,n)+"px"}))),i.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),i.startColumn.modules.edit&&(i.startColumn.modules.edit.blocked=!0),i.startX=void 0===e.clientX?e.touches[0].clientX:e.clientX,i.latestX=i.startX,i.startWidth=t.getWidth(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",s),n.addEventListener("touchmove",r,{passive:!0}),n.addEventListener("touchend",s)}},ResizeRowsModule:class extends s{static moduleName="resizeRows";constructor(e){super(e),this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null,this.registerTableOption("resizableRows",!1),this.registerTableOption("resizableRowGuide",!1)}initialize(){this.table.options.resizableRows&&this.subscribe("row-layout-after",this.initializeRow.bind(this))}initializeRow(e){var t=this,n=e.getElement(),o=document.createElement("div");o.className="tabulator-row-resize-handle";var i=document.createElement("div");i.className="tabulator-row-resize-handle prev",o.addEventListener("click",(function(e){e.stopPropagation()}));var r=function(n){t.startRow=e,t._mouseDown(n,e,o)};o.addEventListener("mousedown",r),o.addEventListener("touchstart",r,{passive:!0}),i.addEventListener("click",(function(e){e.stopPropagation()}));var s=function(n){var o=t.table.rowManager.prevDisplayRow(e);o&&(t.startRow=o,t._mouseDown(n,o,i))};i.addEventListener("mousedown",s),i.addEventListener("touchstart",s,{passive:!0}),n.appendChild(o),n.appendChild(i)}resize(e,t){t.setHeight(this.startHeight+((void 0===e.screenY?e.touches[0].screenY:e.screenY)-this.startY))}calcGuidePosition(e,t,n){var o=void 0===e.screenY?e.touches[0].screenY:e.screenY,i=n.getBoundingClientRect().y-this.table.element.getBoundingClientRect().y,r=this.table.element.getBoundingClientRect().y,s=t.element.getBoundingClientRect().top-r,a=o-this.startY;return Math.max(i+a,s)}_mouseDown(e,t,n){var o,i=this;function r(e){i.table.options.resizableRowGuide?o.style.top=i.calcGuidePosition(e,t,n)+"px":i.resize(e,t)}function s(e){i.table.options.resizableRowGuide&&(i.resize(e,t),o.remove()),document.body.removeEventListener("mouseup",r),document.body.removeEventListener("mousemove",r),n.removeEventListener("touchmove",r),n.removeEventListener("touchend",s),i.table.element.classList.remove("tabulator-block-select"),i.dispatchExternal("rowResized",t.getComponent())}i.dispatchExternal("rowResizing",t.getComponent()),i.table.options.resizableRowGuide&&((o=document.createElement("span")).classList.add("tabulator-row-resize-guide"),i.table.element.appendChild(o),setTimeout((()=>{o.style.top=i.calcGuidePosition(e,t,n)+"px"}))),i.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),i.startY=void 0===e.screenY?e.touches[0].screenY:e.screenY,i.startHeight=t.getHeight(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",s),n.addEventListener("touchmove",r,{passive:!0}),n.addEventListener("touchend",s)}},ResizeTableModule:class extends s{static moduleName="resizeTable";constructor(e){super(e),this.binding=!1,this.visibilityObserver=!1,this.resizeObserver=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1,this.visible=!1,this.initialized=!1,this.initialRedraw=!1,this.registerTableOption("autoResize",!0)}initialize(){if(this.table.options.autoResize){var e,t=this.table;this.tableHeight=t.element.clientHeight,this.tableWidth=t.element.clientWidth,t.element.parentNode&&(this.containerHeight=t.element.parentNode.clientHeight,this.containerWidth=t.element.parentNode.clientWidth),"undefined"!=typeof IntersectionObserver&&"undefined"!=typeof ResizeObserver&&"virtual"===t.rowManager.getRenderMode()?(this.initializeVisibilityObserver(),this.autoResize=!0,this.resizeObserver=new ResizeObserver((e=>{if(!t.browserMobile||t.browserMobile&&(!t.modules.edit||t.modules.edit&&!t.modules.edit.currentCell)){var n=Math.floor(e[0].contentRect.height),o=Math.floor(e[0].contentRect.width);this.tableHeight==n&&this.tableWidth==o||(this.tableHeight=n,this.tableWidth=o,t.element.parentNode&&(this.containerHeight=t.element.parentNode.clientHeight,this.containerWidth=t.element.parentNode.clientWidth),this.redrawTable())}})),this.resizeObserver.observe(t.element),e=window.getComputedStyle(t.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(e.getPropertyValue("max-height")||e.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver((e=>{if(!t.browserMobile||t.browserMobile&&(!t.modules.edit||t.modules.edit&&!t.modules.edit.currentCell)){var n=Math.floor(e[0].contentRect.height),o=Math.floor(e[0].contentRect.width);this.containerHeight==n&&this.containerWidth==o||(this.containerHeight=n,this.containerWidth=o,this.tableHeight=t.element.clientHeight,this.tableWidth=t.element.clientWidth),this.redrawTable()}})),this.containerObserver.observe(this.table.element.parentNode)),this.subscribe("table-resize",this.tableResized.bind(this))):(this.binding=function(){(!t.browserMobile||t.browserMobile&&(!t.modules.edit||t.modules.edit&&!t.modules.edit.currentCell))&&(t.columnManager.rerenderColumns(!0),t.redraw())},window.addEventListener("resize",this.binding)),this.subscribe("table-destroy",this.clearBindings.bind(this))}}initializeVisibilityObserver(){this.visibilityObserver=new IntersectionObserver((e=>{this.visible=e[0].isIntersecting,this.initialized?this.visible&&(this.redrawTable(this.initialRedraw),this.initialRedraw=!1):(this.initialized=!0,this.initialRedraw=!this.visible)})),this.visibilityObserver.observe(this.table.element)}redrawTable(e){this.initialized&&this.visible&&(this.table.columnManager.rerenderColumns(!0),this.table.redraw(e))}tableResized(){this.table.rowManager.redraw()}clearBindings(){this.binding&&window.removeEventListener("resize",this.binding),this.resizeObserver&&this.resizeObserver.unobserve(this.table.element),this.visibilityObserver&&this.visibilityObserver.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)}},ResponsiveLayoutModule:class extends s{static moduleName="responsiveLayout";static moduleExtensions=me;constructor(e){super(e),this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!1,this.registerTableOption("responsiveLayout",!1),this.registerTableOption("responsiveLayoutCollapseStartOpen",!0),this.registerTableOption("responsiveLayoutCollapseUseFormatters",!0),this.registerTableOption("responsiveLayoutCollapseFormatter",!1),this.registerColumnOption("responsive")}initialize(){this.table.options.responsiveLayout&&(this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-show",this.updateColumnVisibility.bind(this)),this.subscribe("column-hide",this.updateColumnVisibility.bind(this)),this.subscribe("columns-loaded",this.initializeResponsivity.bind(this)),this.subscribe("column-moved",this.initializeResponsivity.bind(this)),this.subscribe("column-add",this.initializeResponsivity.bind(this)),this.subscribe("column-delete",this.initializeResponsivity.bind(this)),this.subscribe("table-redrawing",this.tableRedraw.bind(this)),"collapse"===this.table.options.responsiveLayout&&(this.subscribe("row-data-changed",this.generateCollapsedRowContent.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout",this.layoutRow.bind(this))))}tableRedraw(e){-1===["fitColumns","fitDataStretch"].indexOf(this.layoutMode())&&(e||this.update())}initializeResponsivity(){var e=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.collapseFormatter&&(this.collapseFormatter=this.collapseFormatter.bind(this.table)),this.table.columnManager.columnsByIndex.forEach(((t,n)=>{t.modules.responsive&&t.modules.responsive.order&&t.modules.responsive.visible&&(t.modules.responsive.index=n,e.push(t),t.visible||"collapse"!==this.mode||this.hiddenColumns.push(t))})),e=(e=e.reverse()).sort(((e,t)=>t.modules.responsive.order-e.modules.responsive.order||t.modules.responsive.index-e.modules.responsive.index)),this.columns=e,"collapse"===this.mode&&this.generateCollapsedContent();for(let e of this.table.columnManager.columnsByIndex)if("responsiveCollapse"==e.definition.formatter){this.collapseHandleColumn=e;break}this.collapseHandleColumn&&(this.hiddenColumns.length?this.collapseHandleColumn.show():this.collapseHandleColumn.hide())}initializeColumn(e){var t=e.getDefinition();e.modules.responsive={order:void 0===t.responsive?1:t.responsive,visible:!1!==t.visible}}initializeRow(e){var t;"calc"!==e.type&&((t=document.createElement("div")).classList.add("tabulator-responsive-collapse"),e.modules.responsiveLayout={element:t,open:this.collapseStartOpen},this.collapseStartOpen||(t.style.display="none"))}layoutRow(e){var t=e.getElement();e.modules.responsiveLayout&&(t.appendChild(e.modules.responsiveLayout.element),this.generateCollapsedRowContent(e))}updateColumnVisibility(e,t){!t&&e.modules.responsive&&(e.modules.responsive.visible=e.visible,this.initializeResponsivity())}hideColumn(e){var t=this.hiddenColumns.length;e.hide(!1,!0),"collapse"===this.mode&&(this.hiddenColumns.unshift(e),this.generateCollapsedContent(),this.collapseHandleColumn&&!t&&this.collapseHandleColumn.show())}showColumn(e){var t;e.show(!1,!0),e.setWidth(e.getWidth()),"collapse"===this.mode&&((t=this.hiddenColumns.indexOf(e))>-1&&this.hiddenColumns.splice(t,1),this.generateCollapsedContent(),this.collapseHandleColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.hide())}update(){for(var e=!0;e;){let t="fitColumns"==this.table.modules.layout.getMode()?this.table.columnManager.getFlexBaseWidth():this.table.columnManager.getWidth(),n=(this.table.options.headerVisible?this.table.columnManager.element.clientWidth:this.table.element.clientWidth)-t;if(n<0){let t=this.columns[this.index];t?(this.hideColumn(t),this.index++):e=!1}else{let t=this.columns[this.index-1];t&&n>0&&n>=t.getWidth()?(this.showColumn(t),this.index--):e=!1}this.table.rowManager.activeRowsCount||this.table.rowManager.renderEmptyScroll()}}generateCollapsedContent(){this.table.rowManager.getDisplayRows().forEach((e=>{this.generateCollapsedRowContent(e)}))}generateCollapsedRowContent(e){var t,n;if(e.modules.responsiveLayout){for(t=e.modules.responsiveLayout.element;t.firstChild;)t.removeChild(t.firstChild);(n=this.collapseFormatter(this.generateCollapsedRowData(e)))&&t.appendChild(n),e.calcHeight(!0)}}generateCollapsedRowData(e){var t,n=e.getData(),o=[];return this.hiddenColumns.forEach((i=>{var r=i.getFieldValue(n);if(i.definition.title&&i.field)if(i.modules.format&&this.table.options.responsiveLayoutCollapseUseFormatters){function s(e){e()}t={value:!1,data:{},getValue:function(){return r},getData:function(){return n},getType:function(){return"cell"},getElement:function(){return document.createElement("div")},getRow:function(){return e.getComponent()},getColumn:function(){return i.getComponent()},getTable:()=>this.table},o.push({field:i.field,title:i.definition.title,value:i.modules.format.formatter.call(this.table.modules.format,t,i.modules.format.params,s)})}else o.push({field:i.field,title:i.definition.title,value:r})})),o}formatCollapsedData(e){var t=document.createElement("table");return e.forEach((e=>{var n,o=document.createElement("tr"),i=document.createElement("td"),r=document.createElement("td"),s=document.createElement("strong");i.appendChild(s),this.modules.localize.bind("columns|"+e.field,(function(t){s.innerHTML=t||e.title})),e.value instanceof Node?((n=document.createElement("div")).appendChild(e.value),r.appendChild(n)):r.innerHTML=e.value,o.appendChild(i),o.appendChild(r),t.appendChild(o)})),Object.keys(e).length?t:""}},SelectRangeModule:class extends s{static moduleName="selectRange";static moduleInitOrder=1;static moduleExtensions=be;constructor(e){super(e),this.selecting="cell",this.mousedown=!1,this.ranges=[],this.overlay=null,this.rowHeader=null,this.layoutChangeTimeout=null,this.columnSelection=!1,this.rowSelection=!1,this.maxRanges=0,this.activeRange=!1,this.blockKeydown=!1,this.keyDownEvent=this._handleKeyDown.bind(this),this.mouseUpEvent=this._handleMouseUp.bind(this),this.registerTableOption("selectableRange",!1),this.registerTableOption("selectableRangeColumns",!1),this.registerTableOption("selectableRangeRows",!1),this.registerTableOption("selectableRangeClearCells",!1),this.registerTableOption("selectableRangeClearCellsValue",void 0),this.registerTableOption("selectableRangeAutoFocus",!0),this.registerTableFunction("getRangesData",this.getRangesData.bind(this)),this.registerTableFunction("getRanges",this.getRanges.bind(this)),this.registerTableFunction("addRange",this.addRangeFromComponent.bind(this)),this.registerComponentFunction("cell","getRanges",this.cellGetRanges.bind(this)),this.registerComponentFunction("row","getRanges",this.rowGetRanges.bind(this)),this.registerComponentFunction("column","getRanges",this.colGetRanges.bind(this))}initialize(){this.options("selectableRange")&&(this.options("selectableRows")?console.warn("SelectRange functionality cannot be used in conjunction with row selection"):(this.maxRanges=this.options("selectableRange"),this.initializeTable(),this.initializeWatchers()),this.options("columns").findIndex((e=>e.frozen))>0&&console.warn("Having frozen column in arbitrary position with selectRange option may result in unpredictable behavior."),this.options("columns").filter((e=>e.frozen))>1&&console.warn("Having multiple frozen columns with selectRange option may result in unpredictable behavior."))}initializeTable(){this.overlay=document.createElement("div"),this.overlay.classList.add("tabulator-range-overlay"),this.rangeContainer=document.createElement("div"),this.rangeContainer.classList.add("tabulator-range-container"),this.activeRangeCellElement=document.createElement("div"),this.activeRangeCellElement.classList.add("tabulator-range-cell-active"),this.overlay.appendChild(this.rangeContainer),this.overlay.appendChild(this.activeRangeCellElement),this.table.rowManager.element.addEventListener("keydown",this.keyDownEvent),this.resetRanges(),this.table.rowManager.element.appendChild(this.overlay),this.table.columnManager.element.setAttribute("tabindex",0),this.table.element.classList.add("tabulator-ranges")}initializeWatchers(){this.columnSelection=this.options("selectableRangeColumns"),this.rowSelection=this.options("selectableRangeRows"),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-mousedown",this.handleColumnMouseDown.bind(this)),this.subscribe("column-mousemove",this.handleColumnMouseMove.bind(this)),this.subscribe("column-resized",this.handleColumnResized.bind(this)),this.subscribe("column-moving",this.handleColumnMoving.bind(this)),this.subscribe("column-moved",this.handleColumnMoved.bind(this)),this.subscribe("column-width",this.layoutChange.bind(this)),this.subscribe("column-height",this.layoutChange.bind(this)),this.subscribe("column-resized",this.layoutChange.bind(this)),this.subscribe("columns-loaded",this.updateHeaderColumn.bind(this)),this.subscribe("cell-height",this.layoutChange.bind(this)),this.subscribe("cell-rendered",this.renderCell.bind(this)),this.subscribe("cell-mousedown",this.handleCellMouseDown.bind(this)),this.subscribe("cell-mousemove",this.handleCellMouseMove.bind(this)),this.subscribe("cell-click",this.handleCellClick.bind(this)),this.subscribe("cell-editing",this.handleEditingCell.bind(this)),this.subscribe("page-changed",this.redraw.bind(this)),this.subscribe("scroll-vertical",this.layoutChange.bind(this)),this.subscribe("scroll-horizontal",this.layoutChange.bind(this)),this.subscribe("data-destroy",this.tableDestroyed.bind(this)),this.subscribe("data-processed",this.resetRanges.bind(this)),this.subscribe("table-layout",this.layoutElement.bind(this)),this.subscribe("table-redraw",this.redraw.bind(this)),this.subscribe("table-destroy",this.tableDestroyed.bind(this)),this.subscribe("edit-editor-clear",this.finishEditingCell.bind(this)),this.subscribe("edit-blur",this.restoreFocus.bind(this)),this.subscribe("keybinding-nav-prev",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-next",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-left",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-right",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-up",this.keyNavigate.bind(this,"up")),this.subscribe("keybinding-nav-down",this.keyNavigate.bind(this,"down")),this.subscribe("keybinding-nav-range",this.keyNavigateRange.bind(this))}initializeColumn(e){this.columnSelection&&e.definition.headerSort&&"icon"!==this.options("headerSortClickElement")&&console.warn("Using column headerSort with selectableRangeColumns option may result in unpredictable behavior. Consider using headerSortClickElement: 'icon'."),e.modules.edit}updateHeaderColumn(){var e;this.rowSelection&&(this.rowHeader=this.table.columnManager.getVisibleColumnsByIndex()[0],this.rowHeader&&(this.rowHeader.definition.cssClass=this.rowHeader.definition.cssClass+" tabulator-range-row-header",this.rowHeader.definition.headerSort&&console.warn("Using column headerSort with selectableRangeRows option may result in unpredictable behavior"),this.rowHeader.definition.editor&&console.warn("Using column editor with selectableRangeRows option may result in unpredictable behavior"))),this.table.modules.frozenColumns&&this.table.modules.frozenColumns.active&&((e=this.table.modules.frozenColumns.getFrozenColumns()).length>1||1===e.length&&e[0]!==this.rowHeader)&&console.warn("Using frozen columns that are not the range header in combination with the selectRange option may result in unpredictable behavior")}getRanges(){return this.ranges.map((e=>e.getComponent()))}getRangesData(){return this.ranges.map((e=>e.getData()))}addRangeFromComponent(e,t){return e=e?e._cell:null,t=t?t._cell:null,this.addRange(e,t)}cellGetRanges(e){return(e.column===this.rowHeader?this.ranges.filter((t=>t.occupiesRow(e.row))):this.ranges.filter((t=>t.occupies(e)))).map((e=>e.getComponent()))}rowGetRanges(e){return this.ranges.filter((t=>t.occupiesRow(e))).map((e=>e.getComponent()))}colGetRanges(e){return this.ranges.filter((t=>t.occupiesColumn(e))).map((e=>e.getComponent()))}_handleMouseUp(e){this.mousedown=!1,document.removeEventListener("mouseup",this.mouseUpEvent)}_handleKeyDown(e){if(!this.blockKeydown&&(!this.table.modules.edit||this.table.modules.edit&&!this.table.modules.edit.currentCell)){if("Enter"===e.key){if(this.table.modules.edit&&this.table.modules.edit.currentCell)return;this.table.modules.edit.editCell(this.getActiveCell()),e.preventDefault()}"Backspace"!==e.key&&"Delete"!==e.key||!this.options("selectableRangeClearCells")||this.activeRange&&this.activeRange.clearValues()}}initializeFocus(e){var t;this.restoreFocus();try{document.selection?((t=document.body.createTextRange()).moveToElementText(e.getElement()),t.select()):window.getSelection&&((t=document.createRange()).selectNode(e.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(t))}catch(e){}}restoreFocus(e){return this.table.rowManager.element.focus(),!0}handleColumnResized(e){"column"!==this.selecting&&"all"!==this.selecting||this.ranges.some((t=>t.occupiesColumn(e)))&&this.ranges.forEach((t=>{t.getColumns(!0).forEach((t=>{t!==e&&t.setWidth(e.width)}))}))}handleColumnMoving(e,t){this.resetRanges().setBounds(t),this.overlay.style.visibility="hidden"}handleColumnMoved(e,t,n){this.activeRange.setBounds(e),this.layoutElement()}handleColumnMouseDown(e,t){(2!==e.button||"column"!==this.selecting&&"all"!==this.selecting||!this.activeRange.occupiesColumn(t))&&(this.table.options.movableColumns&&"column"===this.selecting&&this.activeRange.occupiesColumn(t)||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(e,t)))}handleColumnMouseMove(e,t){t!==this.rowHeader&&this.mousedown&&"all"!==this.selecting&&this.activeRange.setBounds(!1,t,!0)}renderCell(e){var t=e.getElement(),n=this.ranges.findIndex((t=>t.occupies(e)));t.classList.toggle("tabulator-range-selected",-1!==n),t.classList.toggle("tabulator-range-only-cell-selected",1===this.ranges.length&&this.ranges[0].atTopLeft(e)&&this.ranges[0].atBottomRight(e)),t.dataset.range=n}handleCellMouseDown(e,t){2===e.button&&(this.activeRange.occupies(t)||("row"===this.selecting||"all"===this.selecting)&&this.activeRange.occupiesRow(t.row))||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(e,t))}handleCellMouseMove(e,t){this.mousedown&&"all"!==this.selecting&&this.activeRange.setBounds(!1,t,!0)}handleCellClick(e,t){this.initializeFocus(t)}handleEditingCell(e){this.activeRange&&this.activeRange.setBounds(e)}finishEditingCell(){this.blockKeydown=!0,this.table.rowManager.element.focus(),setTimeout((()=>{this.blockKeydown=!1}),10)}keyNavigate(e,t){this.navigate(!1,!1,e),t.preventDefault()}keyNavigateRange(e,t,n,o){this.navigate(n,o,t),e.preventDefault()}navigate(e,t,n){var o,i,r,s,a,l,c,d,u,h,m;if(this.table.modules.edit&&this.table.modules.edit.currentCell)return!1;if(this.ranges.length>1&&(this.ranges=this.ranges.filter((e=>e===this.activeRange?(e.setEnd(e.start.row,e.start.col),!0):(e.destroy(),!1)))),r={top:(o=this.activeRange).top,bottom:o.bottom,left:o.left,right:o.right},s=(i=t?o.end:o.start).row,a=i.col,e)switch(n){case"left":a=this.findJumpCellLeft(o.start.row,i.col);break;case"right":a=this.findJumpCellRight(o.start.row,i.col);break;case"up":s=this.findJumpCellUp(i.row,o.start.col);break;case"down":s=this.findJumpCellDown(i.row,o.start.col)}else{if(t&&("row"===this.selecting&&("left"===n||"right"===n)||"column"===this.selecting&&("up"===n||"down"===n)))return;switch(n){case"left":a=Math.max(a-1,0);break;case"right":a=Math.min(a+1,this.getTableColumns().length-1);break;case"up":s=Math.max(s-1,0);break;case"down":s=Math.min(s+1,this.getTableRows().length-1)}}return this.rowHeader&&0===a&&(a=1),t||o.setStart(s,a),o.setEnd(s,a),t||(this.selecting="cell"),r.top!==o.top||r.bottom!==o.bottom||r.left!==o.left||r.right!==o.right?(l=this.getRowByRangePos(o.end.row),c=this.getColumnByRangePos(o.end.col),d=l.getElement().getBoundingClientRect(),h=c.getElement().getBoundingClientRect(),u=this.table.rowManager.getElement().getBoundingClientRect(),m=this.table.columnManager.getElement().getBoundingClientRect(),d.top>=u.top&&d.bottom<=u.bottom||(l.getElement().parentNode&&c.getElement().parentNode?this.autoScroll(o,l.getElement(),c.getElement()):l.getComponent().scrollTo(void 0,!1)),h.left>=m.left+this.getRowHeaderWidth()&&h.right<=m.right||(l.getElement().parentNode&&c.getElement().parentNode?this.autoScroll(o,l.getElement(),c.getElement()):c.getComponent().scrollTo(void 0,!1)),this.layoutElement(),!0):void 0}rangeRemoved(e){this.ranges=this.ranges.filter((t=>t!==e)),this.activeRange===e&&(this.ranges.length?this.activeRange=this.ranges[this.ranges.length-1]:this.addRange()),this.layoutElement()}findJumpRow(e,t,n,o,i){return n&&(t=t.reverse()),this.findJumpItem(o,i,t,(function(t){return t.getData()[e.getField()]}))}findJumpCol(e,t,n,o,i){return n&&(t=t.reverse()),this.findJumpItem(o,i,t,(function(t){return e.getData()[t.getField()]}))}findJumpItem(e,t,n,o){var i;for(let r of n){let n=o(r);if(e){if(i=r,n)break}else if(t){if(i=r,n)break}else{if(!n)break;i=r}}return i}findJumpCellLeft(e,t){var n=this.getRowByRangePos(e),o=this.getTableColumns(),i=this.isEmpty(n.getData()[o[t].getField()]),r=!!o[t-1]&&this.isEmpty(n.getData()[o[t-1].getField()]),s=this.rowHeader?o.slice(1,t):o.slice(0,t),a=this.findJumpCol(n,s,!0,i,r);return a?a.getPosition()-1:t}findJumpCellRight(e,t){var n=this.getRowByRangePos(e),o=this.getTableColumns(),i=this.isEmpty(n.getData()[o[t].getField()]),r=!!o[t+1]&&this.isEmpty(n.getData()[o[t+1].getField()]),s=this.findJumpCol(n,o.slice(t+1,o.length),!1,i,r);return s?s.getPosition()-1:t}findJumpCellUp(e,t){var n=this.getColumnByRangePos(t),o=this.getTableRows(),i=this.isEmpty(o[e].getData()[n.getField()]),r=!!o[e-1]&&this.isEmpty(o[e-1].getData()[n.getField()]),s=this.findJumpRow(n,o.slice(0,e),!0,i,r);return s?s.position-1:e}findJumpCellDown(e,t){var n=this.getColumnByRangePos(t),o=this.getTableRows(),i=this.isEmpty(o[e].getData()[n.getField()]),r=!!o[e+1]&&this.isEmpty(o[e+1].getData()[n.getField()]),s=this.findJumpRow(n,o.slice(e+1,o.length),!1,i,r);return s?s.position-1:e}newSelection(e,t){var n;if("column"===t.type){if(!this.columnSelection)return;if(t===this.rowHeader){n=this.resetRanges(),this.selecting="all";var o,i=this.getCell(-1,-1);return o=this.rowHeader?this.getCell(0,1):this.getCell(0,0),void n.setBounds(o,i)}this.selecting="column"}else t.column===this.rowHeader?this.selecting="row":this.selecting="cell";e.shiftKey?this.activeRange.setBounds(!1,t):e.ctrlKey?this.addRange().setBounds(t):this.resetRanges().setBounds(t)}autoScroll(e,t,n){var o,i,r,s=this.table.rowManager.element;void 0===t&&(t=this.getRowByRangePos(e.end.row).getElement()),void 0===n&&(n=this.getColumnByRangePos(e.end.col).getElement()),o={left:n.offsetLeft,right:n.offsetLeft+n.offsetWidth,top:t.offsetTop,bottom:t.offsetTop+t.offsetHeight},r=(i={left:s.scrollLeft+this.getRowHeaderWidth(),right:Math.ceil(s.scrollLeft+s.clientWidth),top:s.scrollTop,bottom:s.scrollTop+s.offsetHeight-this.table.rowManager.scrollbarWidth}).top<o.top&&o.top<i.bottom&&i.top<o.bottom&&o.bottom<i.bottom,i.left<o.left&&o.left<i.right&&i.left<o.right&&o.right<i.right||(o.left<i.left?s.scrollLeft=o.left-this.getRowHeaderWidth():o.right>i.right&&(s.scrollLeft=Math.min(o.right-s.clientWidth,o.left-this.getRowHeaderWidth()))),r||(o.top<i.top?s.scrollTop=o.top:o.bottom>i.bottom&&(s.scrollTop=o.bottom-s.clientHeight))}layoutChange(){this.overlay.style.visibility="hidden",clearTimeout(this.layoutChangeTimeout),this.layoutChangeTimeout=setTimeout(this.layoutRanges.bind(this),200)}redraw(e){e&&(this.selecting="cell",this.resetRanges(),this.layoutElement())}layoutElement(e){(e?this.table.rowManager.getVisibleRows(!0):this.table.rowManager.getRows()).forEach((e=>{"row"===e.type&&(this.layoutRow(e),e.cells.forEach((e=>this.renderCell(e))))})),this.getTableColumns().forEach((e=>{this.layoutColumn(e)})),this.layoutRanges()}layoutRow(e){var t=e.getElement(),n=!1,o=this.ranges.some((t=>t.occupiesRow(e)));"row"===this.selecting?n=o:"all"===this.selecting&&(n=!0),t.classList.toggle("tabulator-range-selected",n),t.classList.toggle("tabulator-range-highlight",o)}layoutColumn(e){var t=e.getElement(),n=!1,o=this.ranges.some((t=>t.occupiesColumn(e)));"column"===this.selecting?n=o:"all"===this.selecting&&(n=!0),t.classList.toggle("tabulator-range-selected",n),t.classList.toggle("tabulator-range-highlight",o)}layoutRanges(){var e,t,n;this.table.initialized&&(e=this.getActiveCell())&&(t=e.getElement(),n=e.row.getElement(),this.table.rtl?this.activeRangeCellElement.style.right=n.offsetWidth-t.offsetLeft-t.offsetWidth+"px":this.activeRangeCellElement.style.left=n.offsetLeft+t.offsetLeft+"px",this.activeRangeCellElement.style.top=n.offsetTop+"px",this.activeRangeCellElement.style.width=t.offsetWidth+"px",this.activeRangeCellElement.style.height=n.offsetHeight+"px",this.ranges.forEach((e=>e.layout())),this.overlay.style.visibility="visible")}getCell(e,t){var n;return t<0&&(t=this.getTableColumns().length+t)<0?null:(e<0&&(e=this.getTableRows().length+e),(n=this.table.rowManager.getRowFromPosition(e+1))?n.getCells(!1,!0).filter((e=>e.column.visible))[t]:null)}getActiveCell(){return this.getCell(this.activeRange.start.row,this.activeRange.start.col)}getRowByRangePos(e){return this.getTableRows()[e]}getColumnByRangePos(e){return this.getTableColumns()[e]}getTableRows(){return this.table.rowManager.getDisplayRows().filter((e=>"row"===e.type))}getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}addRange(e,t){var n;return!0!==this.maxRanges&&this.ranges.length>=this.maxRanges&&this.ranges.shift().destroy(),n=new ge(this.table,this,e,t),this.activeRange=n,this.ranges.push(n),this.rangeContainer.appendChild(n.element),n}resetRanges(){var e,t,n;return this.ranges.forEach((e=>e.destroy())),this.ranges=[],e=this.addRange(),this.table.rowManager.activeRows.length&&(n=this.table.rowManager.activeRows[0].cells.filter((e=>e.column.visible)),(t=n[this.rowHeader?1:0])&&(e.setBounds(t),this.options("selectableRangeAutoFocus")&&this.initializeFocus(t))),e}tableDestroyed(){document.removeEventListener("mouseup",this.mouseUpEvent),this.table.rowManager.element.removeEventListener("keydown",this.keyDownEvent)}selectedRows(e){return e?this.activeRange.getRows().map((e=>e.getComponent())):this.activeRange.getRows()}selectedColumns(e){return e?this.activeRange.getColumns().map((e=>e.getComponent())):this.activeRange.getColumns()}getRowHeaderWidth(){return this.rowHeader?this.rowHeader.getElement().offsetWidth:0}isEmpty(e){return null==e||""===e}},SelectRowModule:class extends s{static moduleName="selectRow";static moduleExtensions=pe;constructor(e){super(e),this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null,this.registerTableOption("selectableRows","highlight"),this.registerTableOption("selectableRowsRangeMode","drag"),this.registerTableOption("selectableRowsRollingSelection",!0),this.registerTableOption("selectableRowsPersistence",!0),this.registerTableOption("selectableRowsCheck",(function(e,t){return!0})),this.registerTableFunction("selectRow",this.selectRows.bind(this)),this.registerTableFunction("deselectRow",this.deselectRows.bind(this)),this.registerTableFunction("toggleSelectRow",this.toggleRow.bind(this)),this.registerTableFunction("getSelectedRows",this.getSelectedRows.bind(this)),this.registerTableFunction("getSelectedData",this.getSelectedData.bind(this)),this.registerComponentFunction("row","select",this.selectRows.bind(this)),this.registerComponentFunction("row","deselect",this.deselectRows.bind(this)),this.registerComponentFunction("row","toggleSelect",this.toggleRow.bind(this)),this.registerComponentFunction("row","isSelected",this.isRowSelected.bind(this))}initialize(){this.deprecatedOptionsCheck(),"highlight"===this.table.options.selectableRows&&this.table.options.selectableRange&&(this.table.options.selectableRows=!1),!1!==this.table.options.selectableRows&&(this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-deleting",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clearSelectionData.bind(this)),this.subscribe("rows-retrieve",this.rowRetrieve.bind(this)),this.table.options.selectableRows&&!this.table.options.selectableRowsPersistence&&this.subscribe("data-refreshing",this.deselectRows.bind(this)))}deprecatedOptionsCheck(){}rowRetrieve(e,t){return"selected"===e?this.selectedRows:t}rowDeleted(e){this._deselectRow(e,!0)}clearSelectionData(e){var t=this.selectedRows.length;this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],t&&!0!==e&&this._rowSelectionChanged()}initializeRow(e){var t=this,n=t.checkRowSelectability(e),o=e.getElement(),i=function(){setTimeout((function(){t.selecting=!1}),50),document.body.removeEventListener("mouseup",i)};e.modules.select={selected:!1},o.classList.toggle("tabulator-selectable",n),o.classList.toggle("tabulator-unselectable",!n),t.checkRowSelectability(e)&&t.table.options.selectableRows&&"highlight"!=t.table.options.selectableRows&&("click"===t.table.options.selectableRowsRangeMode?o.addEventListener("click",this.handleComplexRowClick.bind(this,e)):(o.addEventListener("click",(function(n){t.table.modExists("edit")&&t.table.modules.edit.getCurrentCell()||t.table._clearSelection(),t.selecting||t.toggleRow(e)})),o.addEventListener("mousedown",(function(n){if(n.shiftKey)return t.table._clearSelection(),t.selecting=!0,t.selectPrev=[],document.body.addEventListener("mouseup",i),document.body.addEventListener("keyup",i),t.toggleRow(e),!1})),o.addEventListener("mouseenter",(function(n){t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggleRow(t.selectPrev[0]))})),o.addEventListener("mouseout",(function(n){t.selecting&&(t.table._clearSelection(),t.selectPrev.unshift(e))}))))}handleComplexRowClick(e,t){if(t.shiftKey){this.table._clearSelection(),this.lastClickedRow=this.lastClickedRow||e;var n=this.table.rowManager.getDisplayRowIndex(this.lastClickedRow),o=this.table.rowManager.getDisplayRowIndex(e),i=n<=o?n:o,r=n>=o?n:o,s=this.table.rowManager.getDisplayRows().slice(0).splice(i,r-i+1);t.ctrlKey||t.metaKey?(s.forEach((t=>{t!==this.lastClickedRow&&(!0===this.table.options.selectableRows||this.isRowSelected(e)||this.selectedRows.length<this.table.options.selectableRows)&&this.toggleRow(t)})),this.lastClickedRow=e):(this.deselectRows(void 0,!0),!0!==this.table.options.selectableRows&&s.length>this.table.options.selectableRows&&(s=s.slice(0,this.table.options.selectableRows)),this.selectRows(s)),this.table._clearSelection()}else t.ctrlKey||t.metaKey?(this.toggleRow(e),this.lastClickedRow=e):(this.deselectRows(void 0,!0),this.selectRows(e),this.lastClickedRow=e)}checkRowSelectability(e){return!(!e||"row"!==e.type)&&this.table.options.selectableRowsCheck.call(this.table,e.getComponent())}toggleRow(e){this.checkRowSelectability(e)&&(e.modules.select&&e.modules.select.selected?this._deselectRow(e):this._selectRow(e))}selectRows(e){var t,n,o=[];switch(typeof e){case"undefined":t=this.table.rowManager.rows;break;case"number":t=this.table.rowManager.findRow(e);break;case"string":(t=this.table.rowManager.findRow(e))||(t=this.table.rowManager.getRows(e));break;default:t=e}Array.isArray(t)?t.length&&(t.forEach((e=>{(n=this._selectRow(e,!0,!0))&&o.push(n)})),this._rowSelectionChanged(!1,o)):t&&this._selectRow(t,!1,!0)}_selectRow(e,t,n){if(!isNaN(this.table.options.selectableRows)&&!0!==this.table.options.selectableRows&&!n&&this.selectedRows.length>=this.table.options.selectableRows){if(!this.table.options.selectableRowsRollingSelection)return!1;this._deselectRow(this.selectedRows[0])}var o=this.table.rowManager.findRow(e);if(o){if(-1==this.selectedRows.indexOf(o))return o.getElement().classList.add("tabulator-selected"),o.modules.select||(o.modules.select={}),o.modules.select.selected=!0,o.modules.select.checkboxEl&&(o.modules.select.checkboxEl.checked=!0),this.selectedRows.push(o),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(o,!0),this.dispatchExternal("rowSelected",o.getComponent()),this._rowSelectionChanged(t,o),o}else t||console.warn("Selection Error - No such row found, ignoring selection:"+e)}isRowSelected(e){return-1!==this.selectedRows.indexOf(e)}deselectRows(e,t){var n,o,i=[];switch(typeof e){case"undefined":n=Object.assign([],this.selectedRows);break;case"number":n=this.table.rowManager.findRow(e);break;case"string":(n=this.table.rowManager.findRow(e))||(n=this.table.rowManager.getRows(e));break;default:n=e}Array.isArray(n)?n.length&&(n.forEach((e=>{(o=this._deselectRow(e,!0,!0))&&i.push(o)})),this._rowSelectionChanged(t,[],i)):n&&this._deselectRow(n,t,!0)}_deselectRow(e,t){var n,o,i=this,r=i.table.rowManager.findRow(e);if(r){if((n=i.selectedRows.findIndex((function(e){return e==r})))>-1)return(o=r.getElement())&&o.classList.remove("tabulator-selected"),r.modules.select||(r.modules.select={}),r.modules.select.selected=!1,r.modules.select.checkboxEl&&(r.modules.select.checkboxEl.checked=!1),i.selectedRows.splice(n,1),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(r,!1),this.dispatchExternal("rowDeselected",r.getComponent()),i._rowSelectionChanged(t,void 0,r),r}else t||console.warn("Deselection Error - No such row found, ignoring selection:"+e)}getSelectedData(){var e=[];return this.selectedRows.forEach((function(t){e.push(t.getData())})),e}getSelectedRows(){var e=[];return this.selectedRows.forEach((function(t){e.push(t.getComponent())})),e}_rowSelectionChanged(e,t=[],n=[]){this.headerCheckboxElement&&(0===this.selectedRows.length?(this.headerCheckboxElement.checked=!1,this.headerCheckboxElement.indeterminate=!1):this.table.rowManager.rows.length===this.selectedRows.length?(this.headerCheckboxElement.checked=!0,this.headerCheckboxElement.indeterminate=!1):(this.headerCheckboxElement.indeterminate=!0,this.headerCheckboxElement.checked=!1)),e||(Array.isArray(t)||(t=[t]),t=t.map((e=>e.getComponent())),Array.isArray(n)||(n=[n]),n=n.map((e=>e.getComponent())),this.dispatchExternal("rowSelectionChanged",this.getSelectedData(),this.getSelectedRows(),t,n))}registerRowSelectCheckbox(e,t){e._row.modules.select||(e._row.modules.select={}),e._row.modules.select.checkboxEl=t}registerHeaderSelectCheckbox(e){this.headerCheckboxElement=e}childRowSelection(e,t){var n=this.table.modules.dataTree.getChildren(e,!0,!0);if(t)for(let e of n)this._selectRow(e,!0);else for(let e of n)this._deselectRow(e,!0)}},SortModule:we,SpreadsheetModule:class extends s{static moduleName="spreadsheet";constructor(e){super(e),this.sheets=[],this.element=null,this.registerTableOption("spreadsheet",!1),this.registerTableOption("spreadsheetRows",50),this.registerTableOption("spreadsheetColumns",50),this.registerTableOption("spreadsheetColumnDefinition",{}),this.registerTableOption("spreadsheetOutputFull",!1),this.registerTableOption("spreadsheetData",!1),this.registerTableOption("spreadsheetSheets",!1),this.registerTableOption("spreadsheetSheetTabs",!1),this.registerTableOption("spreadsheetSheetTabsElement",!1),this.registerTableFunction("setSheets",this.setSheets.bind(this)),this.registerTableFunction("addSheet",this.addSheet.bind(this)),this.registerTableFunction("getSheets",this.getSheets.bind(this)),this.registerTableFunction("getSheetDefinitions",this.getSheetDefinitions.bind(this)),this.registerTableFunction("setSheetData",this.setSheetData.bind(this)),this.registerTableFunction("getSheet",this.getSheet.bind(this)),this.registerTableFunction("getSheetData",this.getSheetData.bind(this)),this.registerTableFunction("clearSheet",this.clearSheet.bind(this)),this.registerTableFunction("removeSheet",this.removeSheetFunc.bind(this)),this.registerTableFunction("activeSheet",this.activeSheetFunc.bind(this))}initialize(){this.options("spreadsheet")&&(this.subscribe("table-initialized",this.tableInitialized.bind(this)),this.subscribe("data-loaded",this.loadRemoteData.bind(this)),this.table.options.index="_id",this.options("spreadsheetData")&&this.options("spreadsheetSheets")&&(console.warn("You cannot use spreadsheetData and spreadsheetSheets at the same time, ignoring spreadsheetData"),this.table.options.spreadsheetData=!1),this.compatibilityCheck(),this.options("spreadsheetSheetTabs")&&this.initializeTabset())}compatibilityCheck(){this.options("data")&&console.warn("Do not use the data option when working with spreadsheets, use either spreadsheetData or spreadsheetSheets to pass data into the table"),this.options("pagination")&&console.warn("The spreadsheet module is not compatible with the pagination module"),this.options("groupBy")&&console.warn("The spreadsheet module is not compatible with the row grouping module"),this.options("responsiveCollapse")&&console.warn("The spreadsheet module is not compatible with the responsive collapse module")}initializeTabset(){this.element=document.createElement("div"),this.element.classList.add("tabulator-spreadsheet-tabs");var e=this.options("spreadsheetSheetTabsElement");!e||e instanceof HTMLElement||(e=document.querySelector(e))||console.warn("Unable to find element matching spreadsheetSheetTabsElement selector:",this.options("spreadsheetSheetTabsElement")),e?e.appendChild(this.element):this.footerAppend(this.element)}tableInitialized(){this.sheets.length?this.loadSheet(this.sheets[0]):this.options("spreadsheetSheets")?this.loadSheets(this.options("spreadsheetSheets")):this.options("spreadsheetData")&&this.loadData(this.options("spreadsheetData"))}loadRemoteData(e,t,n){return console.log("data",e,t,n),Array.isArray(e)?(this.table.dataLoader.clearAlert(),this.dispatchExternal("dataLoaded",e),!e.length||Array.isArray(e[0])?this.loadData(e):this.loadSheets(e)):console.error("Spreadsheet Loading Error - Unable to process remote data due to invalid data type \nExpecting: array \nReceived: ",typeof e,"\nData: ",e),!1}loadData(e){var t={data:e};this.loadSheet(this.newSheet(t))}destroySheets(){this.sheets.forEach((e=>{e.destroy()})),this.sheets=[],this.activeSheet=null}loadSheets(e){Array.isArray(e)||(e=[]),this.destroySheets(),e.forEach((e=>{this.newSheet(e)})),this.loadSheet(this.sheets[0])}loadSheet(e){this.activeSheet!==e&&(this.activeSheet&&this.activeSheet.unload(),this.activeSheet=e,e.load())}newSheet(e={}){var t;return e.rows||(e.rows=this.options("spreadsheetRows")),e.columns||(e.columns=this.options("spreadsheetColumns")),t=new Se(this,e),this.sheets.push(t),this.element&&this.element.appendChild(t.element),t}removeSheet(e){var t,n=this.sheets.indexOf(e);this.sheets.length>1?n>-1&&(this.sheets.splice(n,1),e.destroy(),this.activeSheet===e&&((t=this.sheets[n-1]||this.sheets[0])?this.loadSheet(t):this.activeSheet=null)):console.warn("Unable to remove sheet, at least one sheet must be active")}lookupSheet(e){return e?e instanceof Se?e:e instanceof _e?e._sheet:this.sheets.find((t=>t.key===e))||!1:this.activeSheet}setSheets(e){return this.loadSheets(e),this.getSheets()}addSheet(e){return this.newSheet(e).getComponent()}getSheetDefinitions(){return this.sheets.map((e=>e.getDefinition()))}getSheets(){return this.sheets.map((e=>e.getComponent()))}getSheet(e){var t=this.lookupSheet(e);return!!t&&t.getComponent()}setSheetData(e,t){e&&!t&&(t=e,e=!1);var n=this.lookupSheet(e);return!!n&&n.setData(t)}getSheetData(e){var t=this.lookupSheet(e);return!!t&&t.getData()}clearSheet(e){var t=this.lookupSheet(e);return!!t&&t.clear()}removeSheetFunc(e){var t=this.lookupSheet(e);t&&this.removeSheet(t)}activeSheetFunc(e){var t=this.lookupSheet(e);return!!t&&this.loadSheet(t)}},TooltipModule:class extends s{static moduleName="tooltip";constructor(e){super(e),this.tooltipSubscriber=null,this.headerSubscriber=null,this.timeout=null,this.popupInstance=null,this.registerTableOption("tooltipDelay",300),this.registerColumnOption("tooltip"),this.registerColumnOption("headerTooltip")}initialize(){this.deprecatedOptionsCheck(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeColumn(e){e.definition.headerTooltip&&!this.headerSubscriber&&(this.headerSubscriber=!0,this.subscribe("column-mousemove",this.mousemoveCheck.bind(this,"headerTooltip")),this.subscribe("column-mouseout",this.mouseoutCheck.bind(this,"headerTooltip"))),e.definition.tooltip&&!this.tooltipSubscriber&&(this.tooltipSubscriber=!0,this.subscribe("cell-mousemove",this.mousemoveCheck.bind(this,"tooltip")),this.subscribe("cell-mouseout",this.mouseoutCheck.bind(this,"tooltip")))}mousemoveCheck(e,t,n){var o="tooltip"===e?n.column.definition.tooltip:n.definition.headerTooltip;o&&(this.clearPopup(),this.timeout=setTimeout(this.loadTooltip.bind(this,t,n,o),this.table.options.tooltipDelay))}mouseoutCheck(e,t,n){this.popupInstance||this.clearPopup()}clearPopup(e,t,n){clearTimeout(this.timeout),this.timeout=null,this.popupInstance&&this.popupInstance.hide()}loadTooltip(e,t,n){var o,i,r;"function"==typeof n&&(n=n(e,t.getComponent(),(function(e){i=e}))),n instanceof HTMLElement?o=n:(o=document.createElement("div"),!0===n&&(t instanceof S?n=t.value:t.definition.field?this.langBind("columns|"+t.definition.field,(e=>{o.innerHTML=n=e||t.definition.title})):n=t.definition.title),o.innerHTML=n),(n||0===n||!1===n)&&(o.classList.add("tabulator-tooltip"),o.addEventListener("mousemove",(e=>e.preventDefault())),this.popupInstance=this.popup(o),"function"==typeof i&&this.popupInstance.renderCallback(i),r=this.popupInstance.containerEventCoords(e),this.popupInstance.show(r.x+15,r.y+15).hideOnBlur((()=>{this.dispatchExternal("TooltipClosed",t.getComponent()),this.popupInstance=null})),this.dispatchExternal("TooltipOpened",t.getComponent()))}},ValidateModule:Ee}),ke={debugEventsExternal:!1,debugEventsInternal:!1,debugInvalidOptions:!0,debugInvalidComponentFuncs:!0,debugInitialization:!0,debugDeprecation:!0,height:!1,minHeight:!1,maxHeight:!1,columnHeaderVertAlign:"top",popupContainer:!1,columns:[],columnDefaults:{},rowHeader:!1,data:!1,autoColumns:!1,autoColumnsDefinitions:!1,nestedFieldSeparator:".",footerElement:!1,index:"id",textDirection:"auto",addRowPos:"bottom",headerVisible:!0,renderVertical:"virtual",renderHorizontal:"basic",renderVerticalBuffer:0,scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,rowHeight:null,placeholder:!1,dataLoader:!0,dataLoaderLoading:!1,dataLoaderError:!1,dataLoaderErrorTimeout:3e3,dataSendParams:{},dataReceiveParams:{},dependencies:{}};class Te{constructor(e,t,n={}){this.table=e,this.msgType=t,this.registeredDefaults=Object.assign({},n)}register(e,t){this.registeredDefaults[e]=t}generate(e,t={}){var n=Object.assign({},this.registeredDefaults),o=this.table.options.debugInvalidOptions||!0===t.debugInvalidOptions;Object.assign(n,e);for(let e in t)n.hasOwnProperty(e)||(o&&console.warn("Invalid "+this.msgType+" option:",e),n[e]=t.key);for(let e in n)e in t?n[e]=t[e]:Array.isArray(n[e])?n[e]=Object.assign([],n[e]):"object"==typeof n[e]&&null!==n[e]?n[e]=Object.assign({},n[e]):void 0===n[e]&&delete n[e];return n}}class Re extends o{constructor(e){super(e),this.elementVertical=e.rowManager.element,this.elementHorizontal=e.columnManager.element,this.tableElement=e.rowManager.tableElement,this.verticalFillMode="fit"}initialize(){}clearRows(){}clearColumns(){}reinitializeColumnWidths(e){}renderRows(){}renderColumns(){}rerenderRows(e){e&&e()}rerenderColumns(e,t){}renderRowCells(e){}rerenderRowCells(e,t){}scrollColumns(e,t){}scrollRows(e,t){}resize(){}scrollToRow(e){}scrollToRowNearestTop(e){}visibleRows(e){return[]}rows(){return this.table.rowManager.getDisplayRows()}styleRow(e,t){var n=e.getElement();t%2?(n.classList.add("tabulator-row-even"),n.classList.remove("tabulator-row-odd")):(n.classList.add("tabulator-row-odd"),n.classList.remove("tabulator-row-even"))}clear(){this.clearRows(),this.clearColumns()}render(){this.renderRows(),this.renderColumns()}rerender(e){this.rerenderRows(),this.rerenderColumns()}scrollToRowPosition(e,t,n){var o=this.rows().indexOf(e),r=e.getElement(),s=0;return new Promise(((a,l)=>{if(o>-1){if(void 0===n&&(n=this.table.options.scrollToRowIfVisible),!n&&i.elVisible(r)&&(s=i.elOffset(r).top-i.elOffset(this.elementVertical).top)>0&&s<this.elementVertical.clientHeight-r.offsetHeight)return a(),!1;switch(void 0===t&&(t=this.table.options.scrollToRowPosition),"nearest"===t&&(t=this.scrollToRowNearestTop(e)?"top":"bottom"),this.scrollToRow(e),t){case"middle":case"center":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop+(r.offsetTop-this.elementVertical.scrollTop)-(this.elementVertical.scrollHeight-r.offsetTop)/2:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight/2;break;case"bottom":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop-(this.elementVertical.scrollHeight-r.offsetTop)+r.offsetHeight:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight+r.offsetHeight;break;case"top":this.elementVertical.scrollTop=r.offsetTop}a()}else console.warn("Scroll Error - Row not visible"),l("Scroll Error - Row not visible")}))}}class Ae extends Re{constructor(e){super(e)}renderRowCells(e,t){const n=document.createDocumentFragment();e.cells.forEach((e=>{n.appendChild(e.getElement())})),e.element.appendChild(n),t||e.cells.forEach((e=>{e.cellRendered()}))}reinitializeColumnWidths(e){e.forEach((function(e){e.reinitializeWidth()}))}}class Le extends Re{constructor(e){super(e),this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.windowBuffer=200,this.visibleRows=null,this.initialized=!1,this.isFitData=!1,this.columns=[]}initialize(){this.compatibilityCheck(),this.layoutCheck(),this.vertScrollListen()}compatibilityCheck(){"fitDataTable"==this.options("layout")&&console.warn("Horizontal Virtual DOM is not compatible with fitDataTable layout mode"),this.options("responsiveLayout")&&console.warn("Horizontal Virtual DOM is not compatible with responsive columns"),this.options("rtl")&&console.warn("Horizontal Virtual DOM is not currently compatible with RTL text direction")}layoutCheck(){this.isFitData=this.options("layout").startsWith("fitData")}vertScrollListen(){this.subscribe("scroll-vertical",this.clearVisRowCache.bind(this)),this.subscribe("data-refreshed",this.clearVisRowCache.bind(this))}clearVisRowCache(){this.visibleRows=null}renderColumns(e,t){this.dataChange()}scrollColumns(e,t){this.scrollLeft!=e&&(this.scrollLeft=e,this.scroll(e-(this.vDomScrollPosLeft+this.windowBuffer)))}calcWindowBuffer(){var e=this.elementVertical.clientWidth;this.table.columnManager.columnsByIndex.forEach((t=>{if(t.visible){var n=t.getWidth();n>e&&(e=n)}})),this.windowBuffer=2*e}rerenderColumns(e,t){var n={cols:this.columns,leftCol:this.leftCol,rightCol:this.rightCol},o=0;e&&!this.initialized||(this.clear(),this.calcWindowBuffer(),this.scrollLeft=this.elementVertical.scrollLeft,this.vDomScrollPosLeft=this.scrollLeft-this.windowBuffer,this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,this.table.columnManager.columnsByIndex.forEach((e=>{var t,n={};e.visible&&(e.modules.frozen||(t=e.getWidth(),n.leftPos=o,n.rightPos=o+t,n.width=t,this.isFitData&&(n.fitDataCheck=!e.modules.vdomHoz||e.modules.vdomHoz.fitDataCheck),o+t>this.vDomScrollPosLeft&&o<this.vDomScrollPosRight?(-1==this.leftCol&&(this.leftCol=this.columns.length,this.vDomPadLeft=o),this.rightCol=this.columns.length):-1!==this.leftCol&&(this.vDomPadRight+=t),this.columns.push(e),e.modules.vdomHoz=n,o+=t))})),this.tableElement.style.paddingLeft=this.vDomPadLeft+"px",this.tableElement.style.paddingRight=this.vDomPadRight+"px",this.initialized=!0,t||e&&!this.reinitChanged(n)||this.reinitializeRows(),this.elementVertical.scrollLeft=this.scrollLeft)}renderRowCells(e){if(this.initialized)this.initializeRow(e);else{const t=document.createDocumentFragment();e.cells.forEach((e=>{t.appendChild(e.getElement())})),e.element.appendChild(t),e.cells.forEach((e=>{e.cellRendered()}))}}rerenderRowCells(e,t){this.reinitializeRow(e,t)}reinitializeColumnWidths(e){for(let e=this.leftCol;e<=this.rightCol;e++){let t=this.columns[e];t&&t.reinitializeWidth()}}deinitialize(){this.initialized=!1}clear(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0}dataChange(){var e,t,n=!1;if(this.isFitData){if(this.table.columnManager.columnsByIndex.forEach((e=>{!e.definition.width&&e.visible&&(n=!0)})),n&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,e=this.chain("rows-sample",[1],[],(()=>this.table.rowManager.getDisplayRows()))[0])){t=e.getElement(),e.generateCells(),this.tableElement.appendChild(t);for(let n=0;n<e.cells.length;n++){let o=e.cells[n];t.appendChild(o.getElement()),o.column.reinitializeWidth()}t.parentNode.removeChild(t),this.rerenderColumns(!1,!0)}}else"fitColumns"===this.options("layout")&&(this.layoutRefresh(),this.rerenderColumns(!1,!0))}reinitChanged(e){var t=!0;return e.cols.length!==this.columns.length||e.leftCol!==this.leftCol||e.rightCol!==this.rightCol||(e.cols.forEach(((e,n)=>{e!==this.columns[n]&&(t=!1)})),!t)}reinitializeRows(){var e=this.getVisibleRows(),t=this.table.rowManager.getRows().filter((t=>!e.includes(t)));e.forEach((e=>{this.reinitializeRow(e,!0)})),t.forEach((e=>{e.deinitialize()}))}getVisibleRows(){return this.visibleRows||(this.visibleRows=this.table.rowManager.getVisibleRows()),this.visibleRows}scroll(e){this.vDomScrollPosLeft+=e,this.vDomScrollPosRight+=e,Math.abs(e)>this.windowBuffer/2?this.rerenderColumns():e>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())}colPositionAdjust(e,t,n){for(let o=e;o<t;o++){let e=this.columns[o];e.modules.vdomHoz.leftPos+=n,e.modules.vdomHoz.rightPos+=n}}addColRight(){for(var e=!1,t=!0;t;){let n=this.columns[this.rightCol+1];n&&n.modules.vdomHoz.leftPos<=this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach((e=>{if("group"!==e.type){var t=e.getCell(n);e.getElement().insertBefore(t.getElement(),e.getCell(this.columns[this.rightCol]).getElement().nextSibling),t.cellRendered()}})),this.fitDataColActualWidthCheck(n),this.rightCol++,this.getVisibleRows().forEach((e=>{"group"!==e.type&&(e.modules.vdomHoz.rightCol=this.rightCol)})),this.rightCol>=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=n.getWidth()):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}addColLeft(){for(var e=!1,t=!0;t;){let n=this.columns[this.leftCol-1];if(n)if(n.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){e=!0,this.getVisibleRows().forEach((e=>{if("group"!==e.type){var t=e.getCell(n);e.getElement().insertBefore(t.getElement(),e.getCell(this.columns[this.leftCol]).getElement()),t.cellRendered()}})),this.leftCol--,this.getVisibleRows().forEach((e=>{"group"!==e.type&&(e.modules.vdomHoz.leftCol=this.leftCol)})),this.leftCol<=0?this.vDomPadLeft=0:this.vDomPadLeft-=n.getWidth();let t=this.fitDataColActualWidthCheck(n);t&&(this.scrollLeft=this.elementVertical.scrollLeft=this.elementVertical.scrollLeft+t,this.vDomPadRight-=t)}else t=!1;else t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}removeColRight(){for(var e=!1,t=!0;t;){let n=this.columns[this.rightCol];n&&n.modules.vdomHoz.leftPos>this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach((e=>{if("group"!==e.type){var t=e.getCell(n);try{e.getElement().removeChild(t.getElement())}catch(e){console.warn("Could not removeColRight",e.message)}}})),this.vDomPadRight+=n.getWidth(),this.rightCol--,this.getVisibleRows().forEach((e=>{"group"!==e.type&&(e.modules.vdomHoz.rightCol=this.rightCol)}))):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}removeColLeft(){for(var e=!1,t=!0;t;){let n=this.columns[this.leftCol];n&&n.modules.vdomHoz.rightPos<this.vDomScrollPosLeft?(e=!0,this.getVisibleRows().forEach((e=>{if("group"!==e.type){var t=e.getCell(n);try{e.getElement().removeChild(t.getElement())}catch(e){console.warn("Could not removeColLeft",e.message)}}})),this.vDomPadLeft+=n.getWidth(),this.leftCol++,this.getVisibleRows().forEach((e=>{"group"!==e.type&&(e.modules.vdomHoz.leftCol=this.leftCol)}))):t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}fitDataColActualWidthCheck(e){var t,n;return e.modules.vdomHoz.fitDataCheck&&(e.reinitializeWidth(),(n=(t=e.getWidth())-e.modules.vdomHoz.width)&&(e.modules.vdomHoz.rightPos+=n,e.modules.vdomHoz.width=t,this.colPositionAdjust(this.columns.indexOf(e)+1,this.columns.length,n)),e.modules.vdomHoz.fitDataCheck=!1),n}initializeRow(e){if("group"!==e.type){e.modules.vdomHoz={leftCol:this.leftCol,rightCol:this.rightCol},this.table.modules.frozenColumns&&this.table.modules.frozenColumns.leftColumns.forEach((t=>{this.appendCell(e,t)}));for(let t=this.leftCol;t<=this.rightCol;t++)this.appendCell(e,this.columns[t]);this.table.modules.frozenColumns&&this.table.modules.frozenColumns.rightColumns.forEach((t=>{this.appendCell(e,t)}))}}appendCell(e,t){if(t&&t.visible){let n=e.getCell(t);e.getElement().appendChild(n.getElement()),n.cellRendered()}}reinitializeRow(e,t){if("group"!==e.type&&(t||!e.modules.vdomHoz||e.modules.vdomHoz.leftCol!==this.leftCol||e.modules.vdomHoz.rightCol!==this.rightCol)){for(var n=e.getElement();n.firstChild;)n.removeChild(n.firstChild);this.initializeRow(e)}}}class Oe extends o{constructor(e){super(e),this.blockHozScrollEvent=!1,this.headersElement=null,this.contentsElement=null,this.rowHeader=null,this.element=null,this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.scrollLeft=0,this.optionsList=new Te(this.table,"column definition",E),this.redrawBlock=!1,this.redrawBlockUpdate=null,this.renderer=null}initialize(){this.initializeRenderer(),this.headersElement=this.createHeadersElement(),this.contentsElement=this.createHeaderContentsElement(),this.element=this.createHeaderElement(),this.contentsElement.insertBefore(this.headersElement,this.contentsElement.firstChild),this.element.insertBefore(this.contentsElement,this.element.firstChild),this.initializeScrollWheelWatcher(),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("scrollbar-vertical",this.padVerticalScrollbar.bind(this))}padVerticalScrollbar(e){this.table.rtl?this.headersElement.style.marginLeft=e+"px":this.headersElement.style.marginRight=e+"px"}initializeRenderer(){var e,t={virtual:Le,basic:Ae};(e="string"==typeof this.table.options.renderHorizontal?t[this.table.options.renderHorizontal]:this.table.options.renderHorizontal)?(this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize()):console.error("Unable to find matching renderer:",this.table.options.renderHorizontal)}createHeadersElement(){var e=document.createElement("div");return e.classList.add("tabulator-headers"),e.setAttribute("role","row"),e}createHeaderContentsElement(){var e=document.createElement("div");return e.classList.add("tabulator-header-contents"),e.setAttribute("role","rowgroup"),e}createHeaderElement(){var e=document.createElement("div");return e.classList.add("tabulator-header"),e.setAttribute("role","rowgroup"),this.table.options.headerVisible||e.classList.add("tabulator-header-hidden"),e}getElement(){return this.element}getContentsElement(){return this.contentsElement}getHeadersElement(){return this.headersElement}scrollHorizontal(e){this.contentsElement.scrollLeft=e,this.scrollLeft=e,this.renderer.scrollColumns(e)}initializeScrollWheelWatcher(){this.contentsElement.addEventListener("wheel",(e=>{var t;e.deltaX&&(t=this.contentsElement.scrollLeft+e.deltaX,this.table.rowManager.scrollHorizontal(t),this.table.columnManager.scrollHorizontal(t))}))}generateColumnsFromRowData(e){var t=[],n={},o="full"===this.table.options.autoColumns?e:[e[0]],i=this.table.options.autoColumnsDefinitions;if(e&&e.length){if(o.forEach((e=>{Object.keys(e).forEach(((o,i)=>{let r,s=e[o];n[o]?!0!==n[o]&&void 0!==s&&(n[o].sorter=this.calculateSorterFromValue(s),n[o]=!0):(r={field:o,title:o,sorter:this.calculateSorterFromValue(s)},t.splice(i,0,r),n[o]=void 0!==s||r)}))})),i)switch(typeof i){case"function":this.table.options.columns=i.call(this.table,t);break;case"object":Array.isArray(i)?t.forEach((e=>{var t=i.find((t=>t.field===e.field));t&&Object.assign(e,t)})):t.forEach((e=>{i[e.field]&&Object.assign(e,i[e.field])})),this.table.options.columns=t}else this.table.options.columns=t;this.setColumns(this.table.options.columns)}}calculateSorterFromValue(e){var t;switch(typeof e){case"undefined":t="string";break;case"boolean":t="boolean";break;case"number":t="number";break;case"object":t=Array.isArray(e)?"array":"string";break;default:t=isNaN(e)||""===e?e.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?"alphanum":"string":"number"}return t}setColumns(e,t){for(;this.headersElement.firstChild;)this.headersElement.removeChild(this.headersElement.firstChild);this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.dispatch("columns-loading"),this.dispatchExternal("columnsLoading"),this.table.options.rowHeader&&(this.rowHeader=new x(!0===this.table.options.rowHeader?{}:this.table.options.rowHeader,this,!0),this.columns.push(this.rowHeader),this.headersElement.appendChild(this.rowHeader.getElement()),this.rowHeader.columnRendered()),e.forEach(((e,t)=>{this._addColumn(e)})),this._reIndexColumns(),this.dispatch("columns-loaded"),this.subscribedExternal("columnsLoaded")&&this.dispatchExternal("columnsLoaded",this.getComponents()),this.rerenderColumns(!1,!0),this.redraw(!0)}_addColumn(e,t,n){var o=new x(e,this),i=o.getElement(),r=n?this.findColumnIndex(n):n;if(!t||!this.rowHeader||n&&n!==this.rowHeader||(t=!1,n=this.rowHeader,r=0),n&&r>-1){var s=n.getTopColumn(),a=this.columns.indexOf(s),l=s.getElement();t?(this.columns.splice(a,0,o),l.parentNode.insertBefore(i,l)):(this.columns.splice(a+1,0,o),l.parentNode.insertBefore(i,l.nextSibling))}else t?(this.columns.unshift(o),this.headersElement.insertBefore(o.getElement(),this.headersElement.firstChild)):(this.columns.push(o),this.headersElement.appendChild(o.getElement()));return o.columnRendered(),o}registerColumnField(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)}registerColumnPosition(e){this.columnsByIndex.push(e)}_reIndexColumns(){this.columnsByIndex=[],this.columns.forEach((function(e){e.reRegisterPosition()}))}verticalAlignHeaders(){var e=0;this.redrawBlock||(this.headersElement.style.height="",this.columns.forEach((e=>{e.clearVerticalAlign()})),this.columns.forEach((t=>{var n=t.getHeight();n>e&&(e=n)})),this.headersElement.style.height=e+"px",this.columns.forEach((t=>{t.verticalAlign(this.table.options.columnHeaderVertAlign,e)})),this.table.rowManager.adjustTableSize())}findColumn(e){var t;return"object"!=typeof e?this.columnsByField[e]||!1:e instanceof x?e:e instanceof M?e._getSelf()||!1:"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&(t=[],this.columns.forEach((e=>{t.push(e),t=t.concat(e.getColumns(!0))})),t.find((t=>t.element===e))||!1)}getColumnByField(e){return this.columnsByField[e]}getColumnsByFieldRoot(e){var t=[];return Object.keys(this.columnsByField).forEach((n=>{(this.table.options.nestedFieldSeparator?n.split(this.table.options.nestedFieldSeparator)[0]:n)===e&&t.push(this.columnsByField[n])})),t}getColumnByIndex(e){return this.columnsByIndex[e]}getFirstVisibleColumn(){var e=this.columnsByIndex.findIndex((e=>e.visible));return e>-1&&this.columnsByIndex[e]}getVisibleColumnsByIndex(){return this.columnsByIndex.filter((e=>e.visible))}getColumns(){return this.columns}findColumnIndex(e){return this.columnsByIndex.findIndex((t=>e===t))}getRealColumns(){return this.columnsByIndex}traverse(e){this.columnsByIndex.forEach(((t,n)=>{e(t,n)}))}getDefinitions(e){var t=[];return this.columnsByIndex.forEach((n=>{(!e||e&&n.visible)&&t.push(n.getDefinition())})),t}getDefinitionTree(){var e=[];return this.columns.forEach((t=>{e.push(t.getDefinition(!0))})),e}getComponents(e){var t=[];return(e?this.columns:this.columnsByIndex).forEach((e=>{t.push(e.getComponent())})),t}getWidth(){var e=0;return this.columnsByIndex.forEach((t=>{t.visible&&(e+=t.getWidth())})),e}moveColumn(e,t,n){t.element.parentNode.insertBefore(e.element,t.element),n&&t.element.parentNode.insertBefore(t.element,e.element),this.moveColumnActual(e,t,n),this.verticalAlignHeaders(),this.table.rowManager.reinitialize()}moveColumnActual(e,t,n){e.parent.isGroup?this._moveColumnInArray(e.parent.columns,e,t,n):this._moveColumnInArray(this.columns,e,t,n),this._moveColumnInArray(this.columnsByIndex,e,t,n,!0),this.rerenderColumns(!0),this.dispatch("column-moved",e,t,n),this.subscribedExternal("columnMoved")&&this.dispatchExternal("columnMoved",e.getComponent(),this.table.columnManager.getComponents())}_moveColumnInArray(e,t,n,o,i){var r,s=e.indexOf(t);s>-1&&(e.splice(s,1),(r=e.indexOf(n))>-1?o&&(r+=1):r=s,e.splice(r,0,t),i&&(this.chain("column-moving-rows",[t,n,o],null,[])||[]).concat(this.table.rowManager.rows).forEach((function(e){if(e.cells.length){var t=e.cells.splice(s,1)[0];e.cells.splice(r,0,t)}})))}scrollToColumn(e,t,n){var o=0,i=e.getLeftOffset(),r=0,s=e.getElement();return new Promise(((a,l)=>{if(void 0===t&&(t=this.table.options.scrollToColumnPosition),void 0===n&&(n=this.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":r=-this.element.clientWidth/2;break;case"right":r=s.clientWidth-this.headersElement.clientWidth}if(!n&&i>0&&i+s.offsetWidth<this.element.clientWidth)return!1;o=i+r,o=Math.max(Math.min(o,this.table.rowManager.element.scrollWidth-this.table.rowManager.element.clientWidth),0),this.table.rowManager.scrollHorizontal(o),this.scrollHorizontal(o),a()}else console.warn("Scroll Error - Column not visible"),l("Scroll Error - Column not visible")}))}generateCells(e){var t=[];return this.columnsByIndex.forEach((n=>{t.push(n.generateCell(e))})),t}getFlexBaseWidth(){var e=this.table.element.clientWidth,t=0;return this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(e-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),this.columnsByIndex.forEach((function(n){var o,i,r;n.visible&&(o=n.definition.width||0,i=parseInt(n.minWidth),r="string"==typeof o?o.indexOf("%")>-1?e/100*parseInt(o):parseInt(o):o,t+=r>i?r:i)})),t}addColumn(e,t,n){return new Promise(((o,i)=>{var r=this._addColumn(e,t,n);this._reIndexColumns(),this.dispatch("column-add",e,t,n),"fitColumns"!=this.layoutMode()&&r.reinitializeWidth(),this.redraw(!0),this.table.rowManager.reinitialize(),this.rerenderColumns(),o(r)}))}deregisterColumn(e){var t,n=e.getField();n&&delete this.columnsByField[n],(t=this.columnsByIndex.indexOf(e))>-1&&this.columnsByIndex.splice(t,1),(t=this.columns.indexOf(e))>-1&&this.columns.splice(t,1),this.verticalAlignHeaders(),this.redraw()}rerenderColumns(e,t){this.redrawBlock?(!1===e||!0===e&&null===this.redrawBlockUpdate)&&(this.redrawBlockUpdate=e):this.renderer.rerenderColumns(e,t)}blockRedraw(){this.redrawBlock=!0,this.redrawBlockUpdate=null}restoreRedraw(){this.redrawBlock=!1,this.verticalAlignHeaders(),this.renderer.rerenderColumns(this.redrawBlockUpdate)}redraw(e){i.elVisible(this.element)&&this.verticalAlignHeaders(),e&&(this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),this.confirm("table-redrawing",e)||this.layoutRefresh(e),this.dispatch("table-redraw",e),this.table.footerManager.redraw()}}class De extends Re{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.scrollTop=0,e.scrollLeft=0,e.style.minWidth="",e.style.minHeight="",e.style.display="",e.style.visibility=""}renderRows(){var e=this.tableElement,t=!0,n=document.createDocumentFragment(),o=this.rows();o.forEach(((e,o)=>{this.styleRow(e,o),e.initialize(!1,!0),"group"!==e.type&&(t=!1),n.appendChild(e.getElement())})),e.appendChild(n),o.forEach((e=>{e.rendered(),e.heightInitialized||e.calcHeight(!0)})),o.forEach((e=>{e.heightInitialized||e.setCellHeight()})),e.style.minWidth=t?this.table.columnManager.getWidth()+"px":""}rerenderRows(e){this.clearRows(),e&&e(),this.renderRows(),this.rows().length||this.table.rowManager.tableEmpty()}scrollToRowNearestTop(e){var t=i.elOffset(e.getElement()).top;return!(Math.abs(this.elementVertical.scrollTop-t)>Math.abs(this.elementVertical.scrollTop+this.elementVertical.clientHeight-t))}scrollToRow(e){var t=e.getElement();this.elementVertical.scrollTop=i.elOffset(t).top-i.elOffset(this.elementVertical).top+this.elementVertical.scrollTop}visibleRows(e){return this.rows()}}class He extends Re{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[]}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.style.paddingTop="",e.style.paddingBottom="",e.style.minHeight="",e.style.display="",e.style.visibility="",this.elementVertical.scrollTop=0,this.elementVertical.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0,this.vDomTop=0,this.vDomBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0}renderRows(){this._virtualRenderFill()}rerenderRows(e){for(var t=this.elementVertical.scrollTop,n=!1,o=!1,i=this.table.rowManager.scrollLeft,r=this.rows(),s=this.vDomTop;s<=this.vDomBottom;s++)if(r[s]){var a=t-r[s].getElement().offsetTop;if(!(!1===o||Math.abs(a)<o))break;o=a,n=s}r.forEach((e=>{e.deinitializeHeight()})),e&&e(),this.rows().length?this._virtualRenderFill(!1===n?this.rows.length-1:n,!0,o||0):(this.clear(),this.table.rowManager.tableEmpty()),this.scrollColumns(i)}scrollColumns(e){this.table.rowManager.scrollHorizontal(e)}scrollRows(e,t){var n=e-this.vDomScrollPosTop,o=e-this.vDomScrollPosBottom,i=2*this.vDomWindowBuffer,r=this.rows();if(this.scrollTop=e,-n>i||o>i){var s=this.table.rowManager.scrollLeft;this._virtualRenderFill(Math.floor(this.elementVertical.scrollTop/this.elementVertical.scrollHeight*r.length)),this.scrollColumns(s)}else t?(n<0&&this._addTopRow(r,-n),o<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(r,-o):this.vDomScrollPosBottom=this.scrollTop)):(o>=0&&this._addBottomRow(r,o),n>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(r,n):this.vDomScrollPosTop=this.scrollTop))}resize(){this.vDomWindowBuffer=this.table.options.renderVerticalBuffer||this.elementVertical.clientHeight}scrollToRowNearestTop(e){var t=this.rows().indexOf(e);return!(Math.abs(this.vDomTop-t)>Math.abs(this.vDomBottom-t))}scrollToRow(e){var t=this.rows().indexOf(e);t>-1&&this._virtualRenderFill(t,!0)}visibleRows(e){var t=this.elementVertical.scrollTop,n=this.elementVertical.clientHeight+t,o=!1,i=0,r=0,s=this.rows();if(e)i=this.vDomTop,r=this.vDomBottom;else for(var a=this.vDomTop;a<=this.vDomBottom;a++)if(s[a])if(o){if(!(n-s[a].getElement().offsetTop>=0))break;r=a}else if(t-s[a].getElement().offsetTop>=0)i=a;else{if(o=!0,!(n-s[a].getElement().offsetTop>=0))break;r=a}return s.slice(i,r+1)}_virtualRenderFill(e,t,n){var o,r,s=this.tableElement,a=this.elementVertical,l=0,c=0,d=0,u=0,h=0,m=0,p=this.rows(),f=p.length,g=0,b=[],v=0,y=0,w=this.table.rowManager.fixedHeight,C=this.elementVertical.clientHeight,_=this.table.options.rowHeight,S=!0;if(n=n||0,e=e||0){for(;s.firstChild;)s.removeChild(s.firstChild);(u=(f-e+1)*this.vDomRowHeight)<C&&(e-=Math.ceil((C-u)/this.vDomRowHeight))<0&&(e=0),e-=l=Math.min(Math.max(Math.floor(this.vDomWindowBuffer/this.vDomRowHeight),this.vDomWindowMinMarginRows),e)}else this.clear();if(f&&i.elVisible(this.elementVertical)){for(this.vDomTop=e,this.vDomBottom=e-1,w||this.table.options.maxHeight?(_&&(y=C/_+this.vDomWindowBuffer/_),y=Math.max(this.vDomWindowMinTotalRows,Math.ceil(y))):y=f;(y==f||c<=C+this.vDomWindowBuffer||v<this.vDomWindowMinTotalRows)&&this.vDomBottom<f-1;){for(b=[],r=document.createDocumentFragment(),m=0;m<y&&this.vDomBottom<f-1;)o=p[g=this.vDomBottom+1],this.styleRow(o,g),o.initialize(!1,!0),o.heightInitialized||this.table.options.rowHeight||o.clearCellHeight(),r.appendChild(o.getElement()),b.push(o),this.vDomBottom++,m++;if(!b.length)break;s.appendChild(r),b.forEach((e=>{e.rendered(),e.heightInitialized||e.calcHeight(!0)})),b.forEach((e=>{e.heightInitialized||e.setCellHeight()})),b.forEach((e=>{d=e.getHeight(),v<l?h+=d:c+=d,d>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*d),v++})),S=this.table.rowManager.adjustTableSize(),C=this.elementVertical.clientHeight,S&&(w||this.table.options.maxHeight)&&(_=c/v,y=Math.max(this.vDomWindowMinTotalRows,Math.ceil(C/_+this.vDomWindowBuffer/_)))}e?(this.vDomTopPad=t?this.vDomRowHeight*this.vDomTop+n:this.scrollTop-h,this.vDomBottomPad=this.vDomBottom==f-1?0:Math.max(this.vDomScrollHeight-this.vDomTopPad-c-h,0)):(this.vDomTopPad=0,this.vDomRowHeight=Math.floor((c+h)/v),this.vDomBottomPad=this.vDomRowHeight*(f-this.vDomBottom-1),this.vDomScrollHeight=h+c+this.vDomBottomPad-C),s.style.paddingTop=this.vDomTopPad+"px",s.style.paddingBottom=this.vDomBottomPad+"px",t&&(this.scrollTop=this.vDomTopPad+h+n-(this.elementVertical.scrollWidth>this.elementVertical.clientWidth?this.elementVertical.offsetHeight-C:0)),this.scrollTop=Math.min(this.scrollTop,this.elementVertical.scrollHeight-C),this.elementVertical.scrollWidth>this.elementVertical.clientWidth&&t&&(this.scrollTop+=this.elementVertical.offsetHeight-C),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,a.scrollTop=this.scrollTop,this.dispatch("render-virtual-fill")}}_addTopRow(e,t){for(var n=this.tableElement,o=[],i=0,r=this.vDomTop-1,s=0,a=!0;a;)if(this.vDomTop){let l,c,d=e[r];d&&s<this.vDomMaxRenderChain?(l=d.getHeight()||this.vDomRowHeight,c=d.initialized,t>=l?(this.styleRow(d,r),n.insertBefore(d.getElement(),n.firstChild),d.initialized&&d.heightInitialized||o.push(d),d.initialize(),c||(l=d.getElement().offsetHeight,l>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*l)),t-=l,i+=l,this.vDomTop--,r--,s++):a=!1):a=!1}else a=!1;for(let e of o)e.clearCellHeight();this._quickNormalizeRowHeight(o),i&&(this.vDomTopPad-=i,this.vDomTopPad<0&&(this.vDomTopPad=r*this.vDomRowHeight),r<1&&(this.vDomTopPad=0),n.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=i)}_removeTopRow(e,t){for(var n=[],o=0,i=0,r=!0;r;){let s,a=e[this.vDomTop];a&&i<this.vDomMaxRenderChain?(s=a.getHeight()||this.vDomRowHeight,t>=s?(this.vDomTop++,t-=s,o+=s,n.push(a),i++):r=!1):r=!1}for(let e of n){let t=e.getElement();t.parentNode&&t.parentNode.removeChild(t)}o&&(this.vDomTopPad+=o,this.tableElement.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?o:o+this.vDomWindowBuffer)}_addBottomRow(e,t){for(var n=this.tableElement,o=[],i=0,r=this.vDomBottom+1,s=0,a=!0;a;){let l,c,d=e[r];d&&s<this.vDomMaxRenderChain?(l=d.getHeight()||this.vDomRowHeight,c=d.initialized,t>=l?(this.styleRow(d,r),n.appendChild(d.getElement()),d.initialized&&d.heightInitialized||o.push(d),d.initialize(),c||(l=d.getElement().offsetHeight,l>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*l)),t-=l,i+=l,this.vDomBottom++,r++,s++):a=!1):a=!1}for(let e of o)e.clearCellHeight();this._quickNormalizeRowHeight(o),i&&(this.vDomBottomPad-=i,(this.vDomBottomPad<0||r==e.length-1)&&(this.vDomBottomPad=0),n.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=i)}_removeBottomRow(e,t){for(var n=[],o=0,i=0,r=!0;r;){let s,a=e[this.vDomBottom];a&&i<this.vDomMaxRenderChain?(s=a.getHeight()||this.vDomRowHeight,t>=s?(this.vDomBottom--,t-=s,o+=s,n.push(a),i++):r=!1):r=!1}for(let e of n){let t=e.getElement();t.parentNode&&t.parentNode.removeChild(t)}o&&(this.vDomBottomPad+=o,this.vDomBottomPad<0&&(this.vDomBottomPad=0),this.tableElement.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=o)}_quickNormalizeRowHeight(e){for(let t of e)t.calcHeight();for(let t of e)t.setCellHeight()}}class Ie extends o{constructor(e){super(e),this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.placeholder=null,this.placeholderContents=null,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRowsPipeline=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRenderInPosition=!1,this.dataPipeline=[],this.displayPipeline=[],this.scrollbarWidth=0,this.renderer=null}createHolderElement(){var e=document.createElement("div");return e.classList.add("tabulator-tableholder"),e.setAttribute("tabindex",0),e}createTableElement(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e.setAttribute("role","rowgroup"),e}initializePlaceholder(){var e=this.table.options.placeholder;if("function"==typeof e&&(e=e.call(this.table)),e=this.chain("placeholder",[e],e,e)||e){let t=document.createElement("div");if(t.classList.add("tabulator-placeholder"),"string"==typeof e){let n=document.createElement("div");n.classList.add("tabulator-placeholder-contents"),n.innerHTML=e,t.appendChild(n),this.placeholderContents=n}else"undefined"!=typeof HTMLElement&&e instanceof HTMLElement?(t.appendChild(e),this.placeholderContents=e):(console.warn("Invalid placeholder provided, must be string or HTML Element",e),this.el=null);this.placeholder=t}}getElement(){return this.element}getTableElement(){return this.tableElement}initialize(){this.initializePlaceholder(),this.initializeRenderer(),this.element.appendChild(this.tableElement),this.firstRender=!0,this.element.addEventListener("scroll",(()=>{var e=this.element.scrollLeft,t=this.scrollLeft>e,n=this.element.scrollTop,o=this.scrollTop>n;this.scrollLeft!=e&&(this.scrollLeft=e,this.dispatch("scroll-horizontal",e,t),this.dispatchExternal("scrollHorizontal",e,t),this._positionPlaceholder()),this.scrollTop!=n&&(this.scrollTop=n,this.renderer.scrollRows(n,o),this.dispatch("scroll-vertical",n,o),this.dispatchExternal("scrollVertical",n,o))}))}findRow(e){return"object"!=typeof e?void 0!==e&&(this.rows.find((t=>t.data[this.table.options.index]==e))||!1):e instanceof T?e:e instanceof k?e._getSelf()||!1:"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&this.rows.find((t=>t.getElement()===e))||!1}getRowFromDataObject(e){return this.rows.find((t=>t.data===e))||!1}getRowFromPosition(e){return this.getDisplayRows().find((t=>"row"===t.type&&t.getPosition()===e&&t.isDisplayed()))}scrollToRow(e,t,n){return this.renderer.scrollToRowPosition(e,t,n)}setData(e,t,n){return new Promise(((o,i)=>{t&&this.getDisplayRows().length?this.table.options.pagination?this._setDataActual(e,!0):this.reRenderInPosition((()=>{this._setDataActual(e)})):(this.table.options.autoColumns&&n&&this.table.initialized&&this.table.columnManager.generateColumnsFromRowData(e),this.resetScroll(),this._setDataActual(e)),o()}))}_setDataActual(e,t){this.dispatchExternal("dataProcessing",e),this._wipeElements(),Array.isArray(e)?(this.dispatch("data-processing",e),e.forEach(((e,t)=>{if(e&&"object"==typeof e){var n=new T(e,this);this.rows.push(n)}else console.warn("Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",e)})),this.refreshActiveData(!1,!1,t),this.dispatch("data-processed",e),this.dispatchExternal("dataProcessed",e)):console.error("Data Loading Error - Unable to process data due to invalid data type \nExpecting: array \nReceived: ",typeof e,"\nData: ",e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.adjustTableSize(),this.dispatch("rows-wiped")}destroy(){this.rows.forEach((e=>{e.wipe()})),this.rows=[],this.activeRows=[],this.activeRowsPipeline=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0}deleteRow(e,t){var n=this.rows.indexOf(e),o=this.activeRows.indexOf(e);o>-1&&this.activeRows.splice(o,1),n>-1&&this.rows.splice(n,1),this.setActiveRows(this.activeRows),this.displayRowIterator((t=>{var n=t.indexOf(e);n>-1&&t.splice(n,1)})),t||this.reRenderInPosition(),this.regenerateRowPositions(),this.dispatchExternal("rowDeleted",e.getComponent()),this.displayRowsCount||this.tableEmpty(),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.getData())}addRow(e,t,n,o){return this.addRowActual(e,t,n,o)}addRows(e,t,n,o){var i=[];return new Promise(((r,s)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(void 0===n&&t||void 0!==n&&!t)&&e.reverse(),e.forEach(((e,o)=>{var r=this.addRow(e,t,n,!0);i.push(r),this.dispatch("row-added",r,e,t,n)})),this.refreshActiveData(!!o&&"displayPipeline",!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),r(i)}))}findAddRowPos(e){return void 0===e&&(e=this.table.options.addRowPos),"pos"===e&&(e=!0),"bottom"===e&&(e=!1),e}addRowActual(e,t,n,o){var i,r,s=e instanceof T?e:new T(e||{},this),a=this.findAddRowPos(t),l=-1;return n||(r=this.chain("row-adding-position",[s,a],null,{index:n,top:a}),n=r.index,a=r.top),void 0!==n&&(n=this.findRow(n)),(n=this.chain("row-adding-index",[s,n,a],null,n))&&(l=this.rows.indexOf(n)),n&&l>-1?(i=this.activeRows.indexOf(n),this.displayRowIterator((function(e){var t=e.indexOf(n);t>-1&&e.splice(a?t:t+1,0,s)})),i>-1&&this.activeRows.splice(a?i:i+1,0,s),this.rows.splice(a?l:l+1,0,s)):a?(this.displayRowIterator((function(e){e.unshift(s)})),this.activeRows.unshift(s),this.rows.unshift(s)):(this.displayRowIterator((function(e){e.push(s)})),this.activeRows.push(s),this.rows.push(s)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",s.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),o||this.reRenderInPosition(),s}moveRow(e,t,n){this.dispatch("row-move",e,t,n),this.moveRowActual(e,t,n),this.regenerateRowPositions(),this.dispatch("row-moved",e,t,n),this.dispatchExternal("rowMoved",e.getComponent())}moveRowActual(e,t,n){this.moveRowInArray(this.rows,e,t,n),this.moveRowInArray(this.activeRows,e,t,n),this.displayRowIterator((o=>{this.moveRowInArray(o,e,t,n)})),this.dispatch("row-moving",e,t,n)}moveRowInArray(e,t,n,o){var i,r,s;if(t!==n&&((i=e.indexOf(t))>-1&&(e.splice(i,1),(r=e.indexOf(n))>-1?o?e.splice(r+1,0,t):e.splice(r,0,t):e.splice(i,0,t)),e===this.getDisplayRows())){s=r>i?r:i+1;for(let t=i<r?i:r;t<=s;t++)e[t]&&this.styleRow(e[t],t)}}clearData(){this.setData([])}getRowIndex(e){return this.findRowIndex(e,this.rows)}getDisplayRowIndex(e){var t=this.getDisplayRows().indexOf(e);return t>-1&&t}nextDisplayRow(e,t){var n=this.getDisplayRowIndex(e),o=!1;return!1!==n&&n<this.displayRowsCount-1&&(o=this.getDisplayRows()[n+1]),!o||o instanceof T&&"row"==o.type?o:this.nextDisplayRow(o,t)}prevDisplayRow(e,t){var n=this.getDisplayRowIndex(e),o=!1;return n&&(o=this.getDisplayRows()[n-1]),!t||!o||o instanceof T&&"row"==o.type?o:this.prevDisplayRow(o,t)}findRowIndex(e,t){var n;return!!((e=this.findRow(e))&&(n=t.indexOf(e))>-1)&&n}getData(e,t){var n=[];return this.getRows(e).forEach((function(e){"row"==e.type&&n.push(e.getData(t||"data"))})),n}getComponents(e){var t=[];return this.getRows(e).forEach((function(e){t.push(e.getComponent())})),t}getDataCount(e){return this.getRows(e).length}scrollHorizontal(e){this.scrollLeft=e,this.element.scrollLeft=e,this.dispatch("scroll-horizontal",e)}registerDataPipelineHandler(e,t){void 0!==t?(this.dataPipeline.push({handler:e,priority:t}),this.dataPipeline.sort(((e,t)=>e.priority-t.priority))):console.error("Data pipeline handlers must have a priority in order to be registered")}registerDisplayPipelineHandler(e,t){void 0!==t?(this.displayPipeline.push({handler:e,priority:t}),this.displayPipeline.sort(((e,t)=>e.priority-t.priority))):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(e,t,n){var o=this.table,r="",s=0,a=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if("function"==typeof e)if((s=this.dataPipeline.findIndex((t=>t.handler===e)))>-1)r="dataPipeline",t&&(s==this.dataPipeline.length-1?r="display":s++);else{if(!((s=this.displayPipeline.findIndex((t=>t.handler===e)))>-1))return void console.error("Unable to refresh data, invalid handler provided",e);r="displayPipeline",t&&(s==this.displayPipeline.length-1?r="end":s++)}else r=e||"all",s=0;if(this.redrawBlock)return void((!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===r&&s<this.redrawBlockRestoreConfig.index||a.indexOf(r)<a.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRestoreConfig={handler:e,skipStage:t,renderInPosition:n,stage:r,index:s}));i.elVisible(this.element)?n?this.reRenderInPosition(this.refreshPipelines.bind(this,e,r,s,n)):(this.refreshPipelines(e,r,s,n),e||this.table.columnManager.renderer.renderColumns(),this.renderTable(),o.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0)):this.refreshPipelines(e,r,s,n),this.dispatch("data-refreshed")}}refreshPipelines(e,t,n,o){switch(this.dispatch("data-refreshing"),e&&this.activeRowsPipeline[0]||(this.activeRowsPipeline[0]=this.rows.slice(0)),t){case"all":case"dataPipeline":for(let e=n;e<this.dataPipeline.length;e++){let t=this.dataPipeline[e].handler(this.activeRowsPipeline[e].slice(0));this.activeRowsPipeline[e+1]=t||this.activeRowsPipeline[e].slice(0)}this.setActiveRows(this.activeRowsPipeline[this.dataPipeline.length]);case"display":n=0,this.resetDisplayRows();case"displayPipeline":for(let e=n;e<this.displayPipeline.length;e++){let t=this.displayPipeline[e].handler((e?this.getDisplayRows(e-1):this.activeRows).slice(0),o);this.setDisplayRows(t||this.getDisplayRows(e-1).slice(0),e)}case"end":this.regenerateRowPositions()}this.getDisplayRows().length&&this._clearPlaceholder()}regenerateRowPositions(){var e=this.getDisplayRows(),t=1;e.forEach((e=>{"row"===e.type&&(e.setPosition(t),t++)}))}setActiveRows(e){this.activeRows=this.activeRows=Object.assign([],e),this.activeRowsCount=this.activeRows.length}resetDisplayRows(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length}setDisplayRows(e,t){this.displayRows[t]=e,t==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length)}getDisplayRows(e){return void 0===e?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[e]||[]}getVisibleRows(e,t){var n=Object.assign([],this.renderer.visibleRows(!t));return e&&(n=this.chain("rows-visible",[t],n,n)),n}displayRowIterator(e){this.activeRowsPipeline.forEach(e),this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length}getRows(e){var t=[];switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!1,!0);break;default:t=this.chain("rows-retrieve",e,null,this.rows)||this.rows}return t}reRenderInPosition(e){this.redrawBlock?e?e():this.redrawBlockRenderInPosition=!0:(this.dispatchExternal("renderStarted"),this.renderer.rerenderRows(e),this.fixedHeight||this.adjustTableSize(),this.scrollBarCheck(),this.dispatchExternal("renderComplete"))}scrollBarCheck(){var e=0;this.element.scrollHeight>this.element.clientHeight&&(e=this.element.offsetWidth-this.element.clientWidth),e!==this.scrollbarWidth&&(this.scrollbarWidth=e,this.dispatch("scrollbar-vertical",e))}initializeRenderer(){var e,t={virtual:He,basic:De};(e="string"==typeof this.table.options.renderVertical?t[this.table.options.renderVertical]:this.table.options.renderVertical)?(this.renderMode=this.table.options.renderVertical,this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize(),!this.table.element.clientHeight&&!this.table.options.height||this.table.options.minHeight&&this.table.options.maxHeight?this.fixedHeight=!1:this.fixedHeight=!0):console.error("Unable to find matching renderer:",this.table.options.renderVertical)}getRenderMode(){return this.renderMode}renderTable(){this.dispatchExternal("renderStarted"),this.element.scrollTop=0,this._clearTable(),this.displayRowsCount?(this.renderer.renderRows(),this.firstRender&&(this.firstRender=!1,this.fixedHeight||this.adjustTableSize(),this.layoutRefresh(!0))):this.renderEmptyScroll(),this.fixedHeight||this.adjustTableSize(),this.dispatch("table-layout"),this.displayRowsCount||this._showPlaceholder(),this.scrollBarCheck(),this.dispatchExternal("renderComplete")}renderEmptyScroll(){this.placeholder?this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px"}_clearTable(){this._clearPlaceholder(),this.scrollTop=0,this.scrollLeft=0,this.renderer.clearRows()}tableEmpty(){this.renderEmptyScroll(),this._showPlaceholder()}checkPlaceholder(){this.displayRowsCount?this._clearPlaceholder():this.tableEmpty()}_showPlaceholder(){this.placeholder&&(this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.initializePlaceholder(),this.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.placeholder),this._positionPlaceholder(),this.adjustTableSize())}_clearPlaceholder(){this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.tableElement.style.minWidth="",this.tableElement.style.display=""}_positionPlaceholder(){this.placeholder&&this.placeholder.parentNode&&(this.placeholder.style.width=this.table.columnManager.getWidth()+"px",this.placeholderContents.style.width=this.table.rowManager.element.clientWidth+"px",this.placeholderContents.style.marginLeft=this.scrollLeft+"px")}styleRow(e,t){var n=e.getElement();t%2?(n.classList.add("tabulator-row-even"),n.classList.remove("tabulator-row-odd")):(n.classList.add("tabulator-row-odd"),n.classList.remove("tabulator-row-even"))}normalizeHeight(e){this.activeRows.forEach((function(t){t.normalizeHeight(e)}))}adjustTableSize(){let e,t=this.element.clientHeight,n=!1;if("fill"===this.renderer.verticalFillMode){let o=Math.floor(this.table.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));if(this.fixedHeight){e=isNaN(this.table.options.minHeight)?this.table.options.minHeight:this.table.options.minHeight+"px";const t="calc(100% - "+o+"px)";this.element.style.minHeight=e||"calc(100% - "+o+"px)",this.element.style.height=t,this.element.style.maxHeight=t}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-o+"px",this.element.scrollTop=this.scrollTop;this.renderer.resize(),this.fixedHeight||t==this.element.clientHeight||(n=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw()),this.scrollBarCheck()}return this._positionPlaceholder(),n}reinitialize(){this.rows.forEach((function(e){e.reinitialize(!0)}))}blockRedraw(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1}restoreRedraw(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.handler,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRenderInPosition&&this.reRenderInPosition(),this.redrawBlockRenderInPosition=!1}redraw(e){this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():(this.reRenderInPosition(),this.scrollHorizontal(this.scrollLeft))}resetScroll(){if(this.element.scrollLeft=0,this.element.scrollTop=0,"ie"===this.table.browser){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))}}class Pe extends o{constructor(e){super(e),this.active=!1,this.element=this.createElement(),this.containerElement=this.createContainerElement(),this.external=!1}initialize(){this.initializeElement()}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer"),e}createContainerElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer-contents"),this.element.appendChild(e),e}initializeElement(){this.table.options.footerElement&&("string"==typeof this.table.options.footerElement?"<"===this.table.options.footerElement[0]?this.containerElement.innerHTML=this.table.options.footerElement:(this.external=!0,this.containerElement=document.querySelector(this.table.options.footerElement)):this.element=this.table.options.footerElement)}getElement(){return this.element}append(e){this.activate(),this.containerElement.appendChild(e),this.table.rowManager.adjustTableSize()}prepend(e){this.activate(),this.element.insertBefore(e,this.element.firstChild),this.table.rowManager.adjustTableSize()}remove(e){e.parentNode.removeChild(e),this.deactivate()}deactivate(e){this.element.firstChild&&!e||(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)}activate(){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display=""))}redraw(){this.dispatch("footer-redraw")}}class Ne extends o{constructor(e){super(e),this.el=null,this.abortClasses=["tabulator-headers","tabulator-table"],this.previousTargets={},this.listeners=["click","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","mouseup","mousedown","touchstart","touchend"],this.componentMap={"tabulator-cell":"cell","tabulator-row":"row","tabulator-group":"group","tabulator-col":"column"},this.pseudoTrackers={row:{subscriber:null,target:null},cell:{subscriber:null,target:null},group:{subscriber:null,target:null},column:{subscriber:null,target:null}},this.pseudoTracking=!1}initialize(){this.el=this.table.element,this.buildListenerMap(),this.bindSubscriptionWatchers()}buildListenerMap(){var e={};this.listeners.forEach((t=>{e[t]={handler:null,components:[]}})),this.listeners=e}bindPseudoEvents(){Object.keys(this.pseudoTrackers).forEach((e=>{this.pseudoTrackers[e].subscriber=this.pseudoMouseEnter.bind(this,e),this.subscribe(e+"-mouseover",this.pseudoTrackers[e].subscriber)})),this.pseudoTracking=!0}pseudoMouseEnter(e,t,n){this.pseudoTrackers[e].target!==n&&(this.pseudoTrackers[e].target&&this.dispatch(e+"-mouseleave",t,this.pseudoTrackers[e].target),this.pseudoMouseLeave(e,t),this.pseudoTrackers[e].target=n,this.dispatch(e+"-mouseenter",t,n))}pseudoMouseLeave(e,t){var n=Object.keys(this.pseudoTrackers),o={row:["cell"],cell:["row"]};(n=n.filter((t=>{var n=o[e];return t!==e&&(!n||n&&!n.includes(t))}))).forEach((e=>{var n=this.pseudoTrackers[e].target;this.pseudoTrackers[e].target&&(this.dispatch(e+"-mouseleave",t,n),this.pseudoTrackers[e].target=null)}))}bindSubscriptionWatchers(){var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let n of t)for(let t of e){let e=n+"-"+t;this.subscriptionChange(e,this.subscriptionChanged.bind(this,n,t))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,n){var o=this.listeners[t].components,i=o.indexOf(e),r=!1;n?-1===i&&(o.push(e),r=!0):this.subscribed(e+"-"+t)||i>-1&&(o.splice(i,1),r=!0),"mouseenter"!==t&&"mouseleave"!==t||this.pseudoTracking||this.bindPseudoEvents(),r&&this.updateEventListeners()}updateEventListeners(){for(let e in this.listeners){let t=this.listeners[e];t.components.length?t.handler||(t.handler=this.track.bind(this,e),this.el.addEventListener(e,t.handler)):t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}track(e,t){var n=t.composedPath&&t.composedPath()||t.path,o=this.findTargets(n);o=this.bindComponents(e,o),this.triggerEvents(e,t,o),!this.pseudoTracking||"mouseover"!=e&&"mouseleave"!=e||Object.keys(o).length||this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let n=Object.keys(this.componentMap);for(let o of e){let e=o.classList?[...o.classList]:[];if(e.filter((e=>this.abortClasses.includes(e))).length)break;let i=e.filter((e=>n.includes(e)));for(let e of i)t[this.componentMap[e]]||(t[this.componentMap[e]]=o)}return t.group&&t.group===t.row&&delete t.row,t}bindComponents(e,t){var n=Object.keys(t).reverse(),o=this.listeners[e],i={},r={},s={};for(let e of n){let n,r=t[e],a=this.previousTargets[e];if(a&&a.target===r)n=a.component;else switch(e){case"row":case"group":(o.components.includes("row")||o.components.includes("cell")||o.components.includes("group"))&&(n=this.table.rowManager.getVisibleRows(!0).find((e=>e.getElement()===r)),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[e]=!1));break;case"column":o.components.includes("column")&&(n=this.table.columnManager.findColumn(r));break;case"cell":o.components.includes("cell")&&(i.row instanceof T?n=i.row.findCell(r):t.row&&console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"))}n&&(i[e]=n,s[e]={target:r,component:n})}return this.previousTargets=s,Object.keys(t).forEach((e=>{let t=i[e];r[e]=t})),r}triggerEvents(e,t,n){var o=this.listeners[e];for(let i in n)n[i]&&o.components.includes(i)&&this.dispatch(i+"-"+e,t,n[i])}clearWatchers(){for(let e in this.listeners){let t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}}class Fe{constructor(e){this.table=e,this.bindings={}}bind(e,t,n){this.bindings[e]||(this.bindings[e]={}),this.bindings[e][t]?console.warn("Unable to bind component handler, a matching function name is already bound",e,t,n):this.bindings[e][t]=n}handle(e,t,n){if(this.bindings[e]&&this.bindings[e][n]&&"function"==typeof this.bindings[e][n].bind)return this.bindings[e][n].bind(null,t);"then"===n||"string"!=typeof n||n.startsWith("_")||this.table.options.debugInvalidComponentFuncs&&console.error("The "+e+" component does not have a "+n+" function, have you checked that you have the correct Tabulator module installed?")}}class ze extends o{constructor(e){super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,n,o,i,r){var s=++this.requestOrder;return this.table.destroyed?Promise.resolve():(this.dispatchExternal("dataLoading",e),!e||0!=e.indexOf("{")&&0!=e.indexOf("[")||(e=JSON.parse(e)),this.confirm("data-loading",[e,t,n,i])?(this.loading=!0,i||this.alertLoader(),t=this.chain("data-params",[e,n,i],t||{},t||{}),t=this.mapParams(t,this.table.options.dataSendParams),this.chain("data-load",[e,t,n,i],!1,Promise.resolve([])).then((e=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{Array.isArray(e)||"object"!=typeof e||(e=this.mapParams(e,this.objectInvert(this.table.options.dataReceiveParams)));var t=this.chain("data-loaded",[e],null,e);s==this.requestOrder?(this.clearAlert(),!1!==t&&(this.dispatchExternal("dataLoaded",t),this.table.rowManager.setData(t,o,void 0===r?!o:r))):console.warn("Data Load Response Blocked - An active data load request was blocked by an attempt to change table data while the request was being made")}})).catch((e=>{console.error("Data Load Error: ",e),this.dispatchExternal("dataLoadError",e),i||this.alertError(),setTimeout((()=>{this.clearAlert()}),this.table.options.dataLoaderErrorTimeout)})).finally((()=>{this.loading=!1}))):(this.dispatchExternal("dataLoaded",e),e||(e=[]),this.table.rowManager.setData(e,o,void 0===r?!o:r),Promise.resolve()))}mapParams(e,t){var n={};for(let o in e)n[t.hasOwnProperty(o)?t[o]:o]=e[o];return n}objectInvert(e){var t={};for(let n in e)t[e[n]]=n;return t}blockActiveLoad(){this.requestOrder++}alertLoader(){("function"==typeof this.table.options.dataLoader?this.table.options.dataLoader():this.table.options.dataLoader)&&this.table.alertManager.alert(this.table.options.dataLoaderLoading||this.langText("data|loading"))}alertError(){this.table.alertManager.alert(this.table.options.dataLoaderError||this.langText("data|error"),"error")}clearAlert(){this.table.alertManager.clear()}}class je{constructor(e,t,n){this.table=e,this.events={},this.optionsList=t||{},this.subscriptionNotifiers={},this.dispatch=n?this._debugDispatch.bind(this):this._dispatch.bind(this),this.debug=n}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var n;if(this.events[e]){if(t){if(!((n=this.events[e].findIndex((e=>e===t)))>-1))return void console.warn("Cannot remove event, no matching event found:",e,t);this.events[e].splice(n,1)}else delete this.events[e];this._notifySubscriptionChange(e,!1)}else console.warn("Cannot remove event, no events set on:",e)}subscribed(e){return this.events[e]&&this.events[e].length}_notifySubscriptionChange(e,t){var n=this.subscriptionNotifiers[e];n&&n.forEach((e=>{e(t)}))}_dispatch(){var e,t=Array.from(arguments),n=t.shift();return this.events[n]&&this.events[n].forEach(((n,o)=>{let i=n.apply(this.table,t);o||(e=i)})),e}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="ExternalEvent:"+e[0],(!0===this.debug||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}}class Ye{constructor(e){this.events={},this.subscriptionNotifiers={},this.dispatch=e?this._debugDispatch.bind(this):this._dispatch.bind(this),this.chain=e?this._debugChain.bind(this):this._chain.bind(this),this.confirm=e?this._debugConfirm.bind(this):this._confirm.bind(this),this.debug=e}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t,n=1e4){this.events[e]||(this.events[e]=[]),this.events[e].push({callback:t,priority:n}),this.events[e].sort(((e,t)=>e.priority-t.priority)),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var n;if(this.events[e]){if(t){if(!((n=this.events[e].findIndex((e=>e.callback===t)))>-1))return void console.warn("Cannot remove event, no matching event found:",e,t);this.events[e].splice(n,1)}this._notifySubscriptionChange(e,!1)}else console.warn("Cannot remove event, no events set on:",e)}subscribed(e){return this.events[e]&&this.events[e].length}_chain(e,t,n,o){var i=n;return Array.isArray(t)||(t=[t]),this.subscribed(e)?(this.events[e].forEach(((e,n)=>{i=e.callback.apply(this,t.concat([i]))})),i):"function"==typeof o?o():o}_confirm(e,t){var n=!1;return Array.isArray(t)||(t=[t]),this.subscribed(e)&&this.events[e].forEach(((e,o)=>{e.callback.apply(this,t)&&(n=!0)})),n}_notifySubscriptionChange(e,t){var n=this.subscriptionNotifiers[e];n&&n.forEach((e=>{e(t)}))}_dispatch(){var e=Array.from(arguments),t=e.shift();this.events[t]&&this.events[t].forEach((t=>{t.callback.apply(this,e)}))}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(!0===this.debug||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}_debugChain(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(!0===this.debug||this.debug.includes(t))&&console.log(...e),this._chain(...arguments)}_debugConfirm(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(!0===this.debug||this.debug.includes(t))&&console.log(...e),this._confirm(...arguments)}}class $e extends o{constructor(e){super(e)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t,n){var o="";return void 0===this.options(e)||(o="Deprecated Setup Option - Use of the %c"+e+"%c option is now deprecated",t?(o=o+", Please use the %c"+t+"%c option instead",this._warnUser(o,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),n&&(this.table.options[t]=this.table.options[e])):this._warnUser(o,"font-weight: bold;","font-weight: normal;"),!1)}checkMsg(e,t){return void 0===this.options(e)||(this._warnUser("%cDeprecated Setup Option - Use of the %c"+e+" %c option is now deprecated, "+t,"font-weight: normal;","font-weight: bold;","font-weight: normal;"),!1)}msg(e){this._warnUser(e)}}class Be extends o{constructor(e){super(e),this.deps={},this.props={}}initialize(){this.deps=Object.assign({},this.options("dependencies"))}lookup(e,t,n){if(!Array.isArray(e))return t?this.lookupProp(e,t,n):this.lookupKey(e,n);for(const n of e){var o=this.lookup(n,t,!0);if(o)break}if(o)return o;this.error(e)}lookupProp(e,t,n){var o;return this.props[e]&&this.props[e][t]?this.props[e][t]:(o=this.lookupKey(e,n))?(this.props[e]||(this.props[e]={}),this.props[e][t]=o[t]||o,this.props[e][t]):void 0}lookupKey(e,t){var n;return this.deps[e]?n=this.deps[e]:window[e]?(this.deps[e]=window[e],n=this.deps[e]):t||this.error(e),n}error(e){console.error("Unable to find dependency",e,"Please check documentation and ensure you have imported the required library into your project")}}function We(e,t){e.forEach((function(e){e.reinitializeWidth()})),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}var Ve={fitData:function(e,t){t&&this.table.columnManager.renderer.reinitializeColumnWidths(e),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitDataFill:We,fitDataTable:We,fitDataStretch:function(e,t){var n=0,o=this.table.rowManager.element.clientWidth,i=0,r=!1;e.forEach(((e,t)=>{e.widthFixed||e.reinitializeWidth(),(this.table.options.responsiveLayout?e.modules.responsive.visible:e.visible)&&(r=e),e.visible&&(n+=e.getWidth())})),r?(i=o-n+r.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(r.setWidth(0),this.table.modules.responsiveLayout.update()),i>0?r.setWidth(i):r.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitColumns:function(e,t){var n,o,i=this.table.rowManager.element.getBoundingClientRect().width,r=0,s=0,a=0,l=[],c=[],d=0,u=0;function h(e){return"string"==typeof e?e.indexOf("%")>-1?i/100*parseInt(e):parseInt(e):e}function m(e,t,n,o){var i=[],r=0,s=0,l=0,c=a,d=0,u=0,p=[];function f(e){return n*(e.column.definition.widthGrow||1)}function g(e){return h(e.width)-n*(e.column.definition.widthShrink||0)}return e.forEach((function(e,r){var s=o?g(e):f(e);e.column.minWidth>=s?i.push(e):e.column.maxWidth&&e.column.maxWidth<s?(e.width=e.column.maxWidth,t-=e.column.maxWidth,(c-=o?e.column.definition.widthShrink||1:e.column.definition.widthGrow||1)&&(n=Math.floor(t/c))):(p.push(e),u+=o?e.column.definition.widthShrink||1:e.column.definition.widthGrow||1)})),i.length?(i.forEach((function(e){r+=o?e.width-e.column.minWidth:e.column.minWidth,e.width=e.column.minWidth})),s=t-r,l=u?Math.floor(s/u):s,d=m(p,s,l,o)):(d=u?t-Math.floor(t/u)*u:t,p.forEach((function(e){e.width=o?g(e):f(e)}))),d}this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(i-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),e.forEach((function(e){var t,n,o;e.visible&&(t=e.definition.width,n=parseInt(e.minWidth),t?(o=h(t),r+=o>n?o:n,e.definition.widthShrink&&(c.push({column:e,width:o>n?o:n}),d+=e.definition.widthShrink)):(l.push({column:e,width:0}),a+=e.definition.widthGrow||1))})),s=i-r,n=Math.floor(s/a),u=m(l,s,n,!1),l.length&&u>0&&(l[l.length-1].width+=u),l.forEach((function(e){s-=e.width})),(o=Math.abs(u)+s)>0&&d&&(u=m(c,o,Math.floor(o/d),!0)),u&&c.length&&(c[c.length-1].width-=u),l.forEach((function(e){e.column.setWidth(e.width)})),c.forEach((function(e){e.column.setWidth(e.width)}))}};class Ue extends s{static moduleName="layout";static modes=Ve;constructor(e){super(e,"layout"),this.mode=null,this.registerTableOption("layout","fitData"),this.registerTableOption("layoutColumnsOnNewData",!1),this.registerColumnOption("widthGrow"),this.registerColumnOption("widthShrink")}initialize(){var e=this.table.options.layout;Ue.modes[e]?this.mode=e:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+e),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode),this.subscribe("column-init",this.initializeColumn.bind(this))}initializeColumn(e){e.definition.widthGrow&&(e.definition.widthGrow=Number(e.definition.widthGrow)),e.definition.widthShrink&&(e.definition.widthShrink=Number(e.definition.widthShrink))}getMode(){return this.mode}layout(e){var t=this.table.columnManager.columnsByIndex.find((e=>e.definition.variableHeight||"textarea"===e.definition.formatter));this.dispatch("layout-refreshing"),Ue.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}}var Ge={default:{groups:{item:"item",items:"items"},columns:{},data:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},headerFilters:{default:"filter column...",columns:{}}}};class Ke extends s{static moduleName="localize";static langs=Ge;constructor(e){super(e),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=i.deepClone(Ke.langs),!1!==this.table.options.columnDefaults.headerFilterPlaceholder&&this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);for(let e in this.table.options.langs)this.installLang(e,this.table.options.langs[e]);this.setLocale(this.table.options.locale),this.registerTableFunction("setLocale",this.setLocale.bind(this)),this.registerTableFunction("getLocale",this.getLocale.bind(this)),this.registerTableFunction("getLang",this.getLang.bind(this))}setHeaderFilterPlaceholder(e){this.langList.default.headerFilters.default=e}installLang(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t}_setLangProp(e,t){for(let n in t)e[n]&&"object"==typeof e[n]?this._setLangProp(e[n],t[n]):e[n]=t[n]}setLocale(e){if(!0===(e=e||"default")&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!this.langList[e]){let t=e.split("-")[0];this.langList[t]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,t),e=t):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}this.locale=e,this.lang=i.deepClone(this.langList.default||{}),"default"!=e&&function e(t,n){for(var o in t)"object"==typeof t[o]?(n[o]||(n[o]={}),e(t[o],n[o])):n[o]=t[o]}(this.langList[e],this.lang),this.dispatchExternal("localized",this.locale,this.lang),this._executeBindings()}getLocale(e){return this.locale}getLang(e){return e?this.langList[e]:this.lang}getText(e,t){var n=(t?e+"|"+t:e).split("|");return this._getLangElement(n,this.locale)||""}_getLangElement(e,t){var n=this.lang;return e.forEach((function(e){var t;n&&(t=n[e],n=void 0!==t&&t)})),n}bind(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)}_executeBindings(){for(let e in this.bindings)this.bindings[e].forEach((t=>{t(this.getText(e),this.lang)}))}}var qe=Object.freeze({__proto__:null,CommsModule:class extends s{static moduleName="comms";constructor(e){super(e)}initialize(){this.registerTableFunction("tableComms",this.receive.bind(this))}getConnections(e){var t=[];return this.table.constructor.registry.lookupTable(e).forEach((e=>{this.table!==e&&t.push(e)})),t}send(e,t,n,o){var i=this.getConnections(e);i.forEach((e=>{e.tableComms(this.table.element,t,n,o)})),!i.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)}receive(e,t,n,o){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,n,o);console.warn("Inter-table Comms Error - no such module:",t)}},LayoutModule:Ue,LocalizeModule:Ke});class Xe{static registry={tables:[],register(e){Xe.registry.tables.push(e)},deregister(e){var t=Xe.registry.tables.indexOf(e);t>-1&&Xe.registry.tables.splice(t,1)},lookupTable(e,t){var n,o,i=[];if("string"==typeof e){if((n=document.querySelectorAll(e)).length)for(var r=0;r<n.length;r++)(o=Xe.registry.matchElement(n[r]))&&i.push(o)}else"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||e instanceof Xe?(o=Xe.registry.matchElement(e))&&i.push(o):Array.isArray(e)?e.forEach((function(e){i=i.concat(Xe.registry.lookupTable(e))})):t||console.warn("Table Connection Error - Invalid Selector",e);return i},matchElement:e=>Xe.registry.tables.find((function(t){return e instanceof Xe?t===e:t.element===e}))};static findTable(e){var t=Xe.registry.lookupTable(e,!0);return!(Array.isArray(t)&&!t.length)&&t}}class Je extends Xe{static moduleBindings={};static moduleExtensions={};static modulesRegistered=!1;static defaultModules=!1;constructor(){super()}static initializeModuleBinder(e){Je.modulesRegistered||(Je.modulesRegistered=!0,Je._registerModules(qe,!0),e&&Je._registerModules(e))}static _extendModule(e,t,n){if(Je.moduleBindings[e]){var o=Je.moduleBindings[e][t];if(o)if("object"==typeof n)for(let e in n)o[e]=n[e];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)}static _registerModules(e,t){var n=Object.values(e);t&&n.forEach((e=>{e.prototype.moduleCore=!0})),Je._registerModule(n)}static _registerModule(e){Array.isArray(e)||(e=[e]),e.forEach((e=>{Je._registerModuleBinding(e),Je._registerModuleExtensions(e)}))}static _registerModuleBinding(e){e.moduleName?Je.moduleBindings[e.moduleName]=e:console.error("Unable to bind module, no moduleName defined",e.moduleName)}static _registerModuleExtensions(e){var t=e.moduleExtensions;if(e.moduleExtensions)for(let e in t){let n=t[e];if(Je.moduleBindings[e])for(let t in n)Je._extendModule(e,t,n[t]);else{Je.moduleExtensions[e]||(Je.moduleExtensions[e]={});for(let t in n)Je.moduleExtensions[e][t]||(Je.moduleExtensions[e][t]={}),Object.assign(Je.moduleExtensions[e][t],n[t])}}Je._extendModuleFromQueue(e)}static _extendModuleFromQueue(e){var t=Je.moduleExtensions[e.moduleName];if(t)for(let n in t)Je._extendModule(e.moduleName,n,t[n])}_bindModules(){var e=[],t=[],n=[];for(var o in this.modules={},Je.moduleBindings){let i=Je.moduleBindings[o],r=new i(this);this.modules[o]=r,i.prototype.moduleCore?this.modulesCore.push(r):i.moduleInitOrder?i.moduleInitOrder<0?e.push(r):t.push(r):n.push(r)}e.sort(((e,t)=>e.moduleInitOrder>t.moduleInitOrder?1:-1)),t.sort(((e,t)=>e.moduleInitOrder>t.moduleInitOrder?1:-1)),this.modulesRegular=e.concat(n.concat(t))}}class Qe extends o{constructor(e){super(e),this.element=this._createAlertElement(),this.msgElement=this._createMsgElement(),this.type=null,this.element.appendChild(this.msgElement)}_createAlertElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert"),e}_createMsgElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert-msg"),e.setAttribute("role","alert"),e}_typeClass(){return"tabulator-alert-state-"+this.type}alert(e,t="msg"){if(e){for(this.clear(),this.dispatch("alert-show",t),this.type=t;this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.add(this._typeClass()),"function"==typeof e&&(e=e()),e instanceof HTMLElement?this.msgElement.appendChild(e):this.msgElement.innerHTML=e,this.table.element.appendChild(this.element)}}clear(){this.dispatch("alert-hide",this.type),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.msgElement.classList.remove(this._typeClass())}}class Ze extends Je{static defaultOptions=ke;static extendModule(){Ze.initializeModuleBinder(),Ze._extendModule(...arguments)}static registerModule(){Ze.initializeModuleBinder(),Ze._registerModule(...arguments)}constructor(e,t,n){super(),Ze.initializeModuleBinder(n),this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.alertManager=null,this.vdomHoz=null,this.externalEvents=null,this.eventBus=null,this.interactionMonitor=!1,this.browser="",this.browserSlow=!1,this.browserMobile=!1,this.rtl=!1,this.originalElement=null,this.componentFunctionBinder=new Fe(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new $e(this),this.optionsList=new Te(this,"table constructor"),this.dependencyRegistry=new Be(this),this.initialized=!1,this.destroyed=!1,this.initializeElement(e)&&(this.initializeCoreSystems(t),setTimeout((()=>{this._create()}))),this.constructor.registry.register(this)}initializeElement(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement?(this.element=e,!0):"string"==typeof e?(this.element=document.querySelector(e),!!this.element||(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)}initializeCoreSystems(e){this.columnManager=new Oe(this),this.rowManager=new Ie(this),this.footerManager=new Pe(this),this.dataLoader=new ze(this),this.alertManager=new Qe(this),this._bindModules(),this.options=this.optionsList.generate(Ze.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new je(this,this.options,this.options.debugEventsExternal),this.eventBus=new Ye(this.options.debugEventsInternal),this.interactionMonitor=new Ne(this),this.dataLoader.initialize(),this.footerManager.initialize(),this.dependencyRegistry.initialize()}_mapDeprecatedFunctionality(){}_clearSelection(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")}_create(){this.externalEvents.dispatch("tableBuilding"),this.eventBus.dispatch("table-building"),this._rtlCheck(),this._buildElement(),this._initializeTable(),this.initialized=!0,this._loadInitialData().finally((()=>{this.eventBus.dispatch("table-initialized"),this.externalEvents.dispatch("tableBuilt")}))}_rtlCheck(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if("rtl"!==e.direction)break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}}_clearObjectPointers(){this.options.columns=this.options.columns.slice(0),Array.isArray(this.options.data)&&!this.options.reactiveData&&(this.options.data=this.options.data.slice(0))}_buildElement(){var e,t=this.element,n=this.options;if("TABLE"===t.tagName){this.originalElement=this.element,e=document.createElement("div");var o=t.attributes;for(var i in o)"object"==typeof o[i]&&e.setAttribute(o[i].name,o[i].value);t.parentNode.replaceChild(e,t),this.element=t=e}for(t.classList.add("tabulator"),t.setAttribute("role","grid");t.firstChild;)t.removeChild(t.firstChild);n.height&&(n.height=isNaN(n.height)?n.height:n.height+"px",t.style.height=n.height),!1!==n.minHeight&&(n.minHeight=isNaN(n.minHeight)?n.minHeight:n.minHeight+"px",t.style.minHeight=n.minHeight),!1!==n.maxHeight&&(n.maxHeight=isNaN(n.maxHeight)?n.maxHeight:n.maxHeight+"px",t.style.maxHeight=n.maxHeight)}_initializeTable(){var e=this.element,t=this.options;this.interactionMonitor.initialize(),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modulesCore.forEach((e=>{e.initialize()})),e.appendChild(this.columnManager.getElement()),e.appendChild(this.rowManager.getElement()),t.footerElement&&this.footerManager.activate(),t.autoColumns&&t.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modulesRegular.forEach((e=>{e.initialize()})),this.columnManager.setColumns(t.columns),this.eventBus.dispatch("table-built")}_loadInitialData(){return this.dataLoader.load(this.options.data).finally((()=>{this.columnManager.verticalAlignHeaders()}))}destroy(){var e=this.element;for(this.destroyed=!0,this.constructor.registry.deregister(this),this.eventBus.dispatch("table-destroy"),this.rowManager.destroy();e.firstChild;)e.removeChild(e.firstChild);e.classList.remove("tabulator"),this.externalEvents.dispatch("tableDestroyed")}_detectBrowser(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):e.indexOf("Mac OS")>-1?(this.browser="safari",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.slice(0,4))}initGuard(e,t){var n,o;return this.options.debugInitialization&&!this.initialized&&(e||(e=" "==(o="Error"==(n=(new Error).stack.split("\n"))[0]?n[2]:n[1])[0]?o.trim().split(" ")[1].split(".")[1]:o.trim().split("@")[0]),console.warn("Table Not Initialized - Calling the "+e+" function before the table is initialized may result in inconsistent behavior, Please wait for the `tableBuilt` event before calling this function."+(t?" "+t:""))),this.initialized}blockRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-blocking"),this.rowManager.blockRedraw(),this.columnManager.blockRedraw(),this.eventBus.dispatch("redraw-blocked")}restoreRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-restoring"),this.rowManager.restoreRedraw(),this.columnManager.restoreRedraw(),this.eventBus.dispatch("redraw-restored")}setData(e,t,n){return this.initGuard(!1,"To set initial data please use the 'data' property in the table constructor."),this.dataLoader.load(e,t,n,!1)}clearData(){this.initGuard(),this.dataLoader.blockActiveLoad(),this.rowManager.clearData()}getData(e){return this.rowManager.getData(e)}getDataCount(e){return this.rowManager.getDataCount(e)}replaceData(e,t,n){return this.initGuard(),this.dataLoader.load(e,t,n,!0,!0)}updateData(e){var t=0;return this.initGuard(),new Promise(((n,o)=>{this.dataLoader.blockActiveLoad(),"string"==typeof e&&(e=JSON.parse(e)),e&&e.length>0?e.forEach((e=>{var i=this.rowManager.findRow(e[this.options.index]);i?(t++,i.updateData(e).then((()=>{--t||n()})).catch((t=>{o("Update Error - Unable to update row",e,t)}))):o("Update Error - Unable to find row",e)})):(console.warn("Update Error - No data provided"),o("Update Error - No data provided"))}))}addData(e,t,n){return this.initGuard(),new Promise(((o,i)=>{this.dataLoader.blockActiveLoad(),"string"==typeof e&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,n).then((e=>{var t=[];e.forEach((function(e){t.push(e.getComponent())})),o(t)})):(console.warn("Update Error - No data provided"),i("Update Error - No data provided"))}))}updateOrAddData(e){var t=[],n=0;return this.initGuard(),new Promise(((o,i)=>{this.dataLoader.blockActiveLoad(),"string"==typeof e&&(e=JSON.parse(e)),e&&e.length>0?e.forEach((e=>{var i=this.rowManager.findRow(e[this.options.index]);n++,i?i.updateData(e).then((()=>{n--,t.push(i.getComponent()),n||o(t)})):this.rowManager.addRows(e).then((e=>{n--,t.push(e[0].getComponent()),n||o(t)}))})):(console.warn("Update Error - No data provided"),i("Update Error - No data provided"))}))}getRow(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}getRowFromPosition(e){var t=this.rowManager.getRowFromPosition(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}deleteRow(e){var t=[];this.initGuard(),Array.isArray(e)||(e=[e]);for(let n of e){let e=this.rowManager.findRow(n,!0);if(!e)return console.error("Delete Error - No matching row found:",n),Promise.reject("Delete Error - No matching row found");t.push(e)}return t.sort(((e,t)=>this.rowManager.rows.indexOf(e)>this.rowManager.rows.indexOf(t)?1:-1)),t.forEach((e=>{e.delete()})),this.rowManager.reRenderInPosition(),Promise.resolve()}addRow(e,t,n){return this.initGuard(),"string"==typeof e&&(e=JSON.parse(e)),this.rowManager.addRows(e,t,n,!0).then((e=>e[0].getComponent()))}updateOrAddRow(e,t){var n=this.rowManager.findRow(e);return this.initGuard(),"string"==typeof t&&(t=JSON.parse(t)),n?n.updateData(t).then((()=>n.getComponent())):this.rowManager.addRows(t).then((e=>e[0].getComponent()))}updateRow(e,t){var n=this.rowManager.findRow(e);return this.initGuard(),"string"==typeof t&&(t=JSON.parse(t)),n?n.updateData(t).then((()=>Promise.resolve(n.getComponent()))):(console.warn("Update Error - No matching row found:",e),Promise.reject("Update Error - No matching row found"))}scrollToRow(e,t,n){var o=this.rowManager.findRow(e);return o?this.rowManager.scrollToRow(o,t,n):(console.warn("Scroll Error - No matching row found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,n){var o=this.rowManager.findRow(e);this.initGuard(),o?o.moveToRow(t,n):console.warn("Move Error - No matching row found:",e)}getRows(e){return this.rowManager.getComponents(e)}getRowPosition(e){var t=this.rowManager.findRow(e);return t?t.getPosition():(console.warn("Position Error - No matching row found:",e),!1)}setColumns(e){this.initGuard(!1,"To set initial columns please use the 'columns' property in the table constructor"),this.columnManager.setColumns(e)}getColumns(e){return this.columnManager.getComponents(e)}getColumn(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)}getColumnDefinitions(){return this.columnManager.getDefinitionTree()}showColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),!t)return console.warn("Column Show Error - No matching column found:",e),!1;t.show()}hideColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),!t)return console.warn("Column Hide Error - No matching column found:",e),!1;t.hide()}toggleColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),!t)return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1;t.visible?t.hide():t.show()}addColumn(e,t,n){var o=this.columnManager.findColumn(n);return this.initGuard(),this.columnManager.addColumn(e,t,o).then((e=>e.getComponent()))}deleteColumn(e){var t=this.columnManager.findColumn(e);return this.initGuard(),t?t.delete():(console.warn("Column Delete Error - No matching column found:",e),Promise.reject())}updateColumnDefinition(e,t){var n=this.columnManager.findColumn(e);return this.initGuard(),n?n.updateDefinition(t):(console.warn("Column Update Error - No matching column found:",e),Promise.reject())}moveColumn(e,t,n){var o=this.columnManager.findColumn(e),i=this.columnManager.findColumn(t);this.initGuard(),o?i?this.columnManager.moveColumn(o,i,n):console.warn("Move Error - No matching column found:",i):console.warn("Move Error - No matching column found:",e)}scrollToColumn(e,t,n){return new Promise(((o,i)=>{var r=this.columnManager.findColumn(e);return r?this.columnManager.scrollToColumn(r,t,n):(console.warn("Scroll Error - No matching column found:",e),Promise.reject("Scroll Error - No matching column found"))}))}redraw(e){this.initGuard(),this.columnManager.redraw(e),this.rowManager.redraw(e)}setHeight(e){this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.initializeRenderer(),this.rowManager.redraw(!0)}on(e,t){this.externalEvents.subscribe(e,t)}off(e,t){this.externalEvents.unsubscribe(e,t)}dispatchEvent(){Array.from(arguments).shift(),this.externalEvents.dispatch(...arguments)}alert(e,t){this.initGuard(),this.alertManager.alert(e,t)}clearAlert(){this.initGuard(),this.alertManager.clear()}modExists(e,t){return!!this.modules[e]||(t&&console.error("Tabulator Module Not Installed: "+e),!1)}module(e){var t=this.modules[e];return t||console.error("Tabulator module not installed: "+e),t}}var et=Ze,tt=class extends et{static extendModule(){et.initializeModuleBinder(xe),et._extendModule(...arguments)}static registerModule(){et.initializeModuleBinder(xe),et._registerModule(...arguments)}constructor(e,t,n){super(e,t,xe)}}},84451:function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(95093))},84549:(e,t,n)=>{"use strict";var o=n(44576);e.exports=function(e,t){var n=o.Iterator,i=n&&n.prototype,r=i&&i[e],s=!1;if(r)try{r.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(e){e instanceof t||(s=!1)}if(!s)return r}},84606:(e,t,n)=>{"use strict";var o=n(16823),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+o(t)+" of "+o(e))}},84916:(e,t,n)=>{"use strict";var o=n(97751),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},r=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=o("Set");try{(new n)[e](i(0));try{return(new n)[e](i(-1)),!1}catch(o){if(!t)return!0;try{return(new n)[e](r(-1/0)),!1}catch(o){var s=new n;return s.add(1),s.add(2),t(s[e](r(1/0)))}}}catch(e){return!1}}},85045:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2616);function i(e){return e>=0&&e<=255}const r=function(e,t){const{r:n,g:r,b:s,a}=new o.Y(e).toRgb();if(a<1)return e;const{r:l,g:c,b:d}=new o.Y(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-l*(1-e))/e),a=Math.round((r-c*(1-e))/e),u=Math.round((s-d*(1-e))/e);if(i(t)&&i(a)&&i(u))return new o.Y({r:t,g:a,b:u,a:Math.round(100*e)/100}).toRgbString()}return new o.Y({r:n,g:r,b:s,a:1}).toRgbString()}},85072:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var r={},s=[],a=0;a<e.length;a++){var l=e[a],c=o.base?l[0]+o.base:l[0],d=r[c]||0,u="".concat(c," ").concat(d);r[c]=d+1;var h=n(u),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)t[h].references++,t[h].updater(m);else{var p=i(m,o);o.byIndex=a,t.splice(a,0,{identifier:u,updater:p,references:1})}s.push(u)}return s}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var r=o(e=e||[],i=i||{});return function(e){e=e||[];for(var s=0;s<r.length;s++){var a=n(r[s]);t[a].references--}for(var l=o(e,i),c=0;c<r.length;c++){var d=n(r[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}r=l}}},85096:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var o=e%10;return e+(t[o]||t[e%100-o]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(95093))},85160:(e,t,n)=>{"use strict";var o=n(96540),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=o.useSyncExternalStore,s=o.useRef,a=o.useEffect,l=o.useMemo,c=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,o,d){var u=s(null);if(null===u.current){var h={hasValue:!1,value:null};u.current=h}else h=u.current;u=l((function(){function e(e){if(!a){if(a=!0,r=e,e=o(e),void 0!==d&&h.hasValue){var t=h.value;if(d(t,e))return s=t}return s=e}if(t=s,i(r,e))return t;var n=o(e);return void 0!==d&&d(t,n)?(r=e,t):(r=e,s=n)}var r,s,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,o,d]);var m=r(e,u[0],u[1]);return a((function(){h.hasValue=!0,h.value=m}),[m]),c(m),m}},85342:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var o=n(96540),i=n(34164),r=n(14292),s=n(1908),a=n(21362),l=n(14808),c=n(21124),d=n(14921),u=n(57514),h=n(65387);const m=(e,t,n)=>{const o=e.keys[0];var i,r;Array.isArray(t)?t.forEach(((t,o)=>{n(((t,n)=>{o<=e.keys.length-1&&(0===o?Object.assign(t,n):t[e.up(e.keys[o])]=n)}),t)})):t&&"object"==typeof t?(Object.keys(t).length>e.keys.length?e.keys:(i=e.keys,r=Object.keys(t),i.filter((e=>r.includes(e))))).forEach((i=>{if(e.keys.includes(i)){const r=t[i];void 0!==r&&n(((t,n)=>{o===i?Object.assign(t,n):t[e.up(i)]=n}),r)}})):"number"!=typeof t&&"string"!=typeof t||n(((e,t)=>{Object.assign(e,t)}),t)};function p(e){return`--Grid-${e}Spacing`}function f(e){return`--Grid-parent-${e}Spacing`}const g="--Grid-columns",b="--Grid-parent-columns",v=({theme:e,ownerState:t})=>{const n={};return m(e.breakpoints,t.size,((e,t)=>{let o={};"grow"===t&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${b}) - (var(${b}) - ${t}) * (var(${f("column")}) / var(${b})))`}),e(n,o)})),n},y=({theme:e,ownerState:t})=>{const n={};return m(e.breakpoints,t.offset,((e,t)=>{let o={};"auto"===t&&(o={marginLeft:"auto"}),"number"==typeof t&&(o={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${b}) + var(${f("column")}) * ${t} / var(${b}))`}),e(n,o)})),n},w=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[g]:12};return m(e.breakpoints,t.columns,((e,t)=>{const o=t??12;e(n,{[g]:o,"> *":{[b]:o}})})),n},C=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return m(e.breakpoints,t.rowSpacing,((t,o)=>{const i="string"==typeof o?o:e.spacing?.(o);t(n,{[p("row")]:i,"> *":{[f("row")]:i}})})),n},_=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return m(e.breakpoints,t.columnSpacing,((t,o)=>{const i="string"==typeof o?o:e.spacing?.(o);t(n,{[p("column")]:i,"> *":{[f("column")]:i}})})),n},S=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return m(e.breakpoints,t.direction,((e,t)=>{e(n,{flexDirection:t})})),n},M=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${p("row")}) var(${p("column")})`}}),E=e=>{const t=[];return Object.entries(e).forEach((([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)})),t},x=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((([e,o])=>{n(o)&&t.push(`spacing-${e}-${String(o)}`)})),t}return[]},k=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map((([e,t])=>`direction-${e}-${t}`)):[`direction-xs-${String(e)}`];var T=n(74848);const R=(0,h.A)(),A=(0,l.A)("div",{name:"MuiGrid",slot:"Root"});function L(e){return(0,c.A)({props:e,name:"MuiGrid",defaultTheme:R})}var O=n(26739),D=n(20439),H=n(53356);const I=function(e={}){const{createStyledComponent:t=A,useThemeProps:n=L,useTheme:l=d.A,componentName:c="MuiGrid"}=e;function h(e,t,n=()=>!0){const o={};return null===e||(Array.isArray(e)?e.forEach(((e,i)=>{null!==e&&n(e)&&t.keys[i]&&(o[t.keys[i]]=e)})):"object"==typeof e?Object.keys(e).forEach((t=>{const i=e[t];null!=i&&n(i)&&(o[t]=i)})):o[t.keys[0]]=e),o}const m=t(w,_,C,v,S,M,y),p=o.forwardRef((function(e,t){const d=l(),p=n(e),f=(0,u.A)(p);!function(e,t){const n=[];void 0!==e.item&&(delete e.item,n.push("item")),void 0!==e.zeroMinWidth&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach((t=>{void 0!==e[t]&&(n.push(t),delete e[t])}))}(f,d.breakpoints);const{className:g,children:b,columns:v=12,container:y=!1,component:w="div",direction:C="row",wrap:_="wrap",size:S={},offset:M={},spacing:R=0,rowSpacing:A=R,columnSpacing:L=R,unstable_level:O=0,...D}=f,H=h(S,d.breakpoints,(e=>!1!==e)),I=h(M,d.breakpoints),P=e.columns??(O?void 0:v),N=e.spacing??(O?void 0:R),F=e.rowSpacing??e.spacing??(O?void 0:A),z=e.columnSpacing??e.spacing??(O?void 0:L),j={...f,level:O,columns:P,container:y,direction:C,wrap:_,spacing:N,rowSpacing:F,columnSpacing:z,size:H,offset:I},Y=((e,t)=>{const{container:n,direction:o,spacing:i,wrap:r,size:l}=e,d={root:["root",n&&"container","wrap"!==r&&`wrap-xs-${String(r)}`,...k(o),...E(l),...n?x(i,t.breakpoints.keys[0]):[]]};return(0,a.A)(d,(e=>(0,s.Ay)(c,e)),{})})(j,d);return(0,T.jsx)(m,{ref:t,as:w,ownerState:j,className:(0,i.A)(Y.root,g),...D,children:o.Children.map(b,(e=>o.isValidElement(e)&&(0,r.A)(e,["Grid"])&&y&&e.props.container?o.cloneElement(e,{unstable_level:e.props?.unstable_level??O+1}):e))})}));return p.muiName="Grid",p}({createStyledComponent:(0,O.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>(0,D.b)({props:e,name:"MuiGrid"}),useTheme:H.A}),P=I},85408:(e,t,n)=>{"use strict";n.d(t,{K:()=>s});var o=n(41895),i=n(48046),r=n(13317);class s extends o.n{constructor(){super((e=>e))}insert(e,t){const n=(0,r.z)(this.indexedValues,t);this.indexedValues=(0,i.N)(n,e,t),super.insert(e,t)}remove(e){const t=(0,i.H)(this.indexedValues,e);this.indexedValues=(0,r.v)(t,e),super.remove(e)}}},85428:(e,t,n)=>{"use strict";n.d(t,{u:()=>r}),n(16280),n(98992),n(72577);var o=n(83986);const i=e=>`The id '${e}' is already declared in a map.`;function r(){let{errorIdExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map;function n(){return[...t]}function r(e){return t.has(e)}return e=(0,o.Tn)(e)?e:i,{addItem:function(n,o){if(r(n))throw new Error(e(n));t.set(n,o)},clear:function(){t.clear()},getId:function(e){const[t]=n().find((t=>{let[n,o]=t;return e===o&&n}))||[null];return t},getItem:function(e){return t.get(e)},getItems:n,hasItem:r,removeItem:function(e){return t.delete(e)}}}},85498:function(e,t,n){!function(e){"use strict";var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(95093))},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(63662);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.A)(e,t)}},85874:(e,t,n)=>{"use strict";n.d(t,{$I:()=>r,DJ:()=>c,E:()=>a,Wm:()=>s,ZI:()=>l}),n(44114),n(98992),n(23215),n(3949);var o=n(32919);const i=26;function r(e){let t,n=e+1,o="";for(;n>0;)t=(n-1)%i,o=String.fromCharCode(65+t)+o,n=parseInt((n-t)/i,10);return o}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;const o=[];return Array.isArray(e)&&Array.isArray(e[0])||(n=[e]),n.forEach(((e,n)=>{Array.isArray(e)?e.forEach(((e,i)=>{o.push([n+t,i,e])})):Object.keys(e).forEach((i=>{o.push([n+t,i,e[i]])}))})),o}function a(e){let t=0;return Array.isArray(e)&&(e[0]&&Array.isArray(e[0])?t=e[0].length:e[0]&&(0,o.Gv)(e[0])&&(t=(0,o.$3)(e[0]))),t}function l(e){return!!(Array.isArray(e)&&e.length&&e.every((e=>Array.isArray(e))))}function c(e){return!!(Array.isArray(e)&&e.length&&e.every((e=>"object"==typeof e&&!Array.isArray(e)&&null!==e)))}},85916:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var o=n(96540),i=n(34164),r=n(21362),s=n(35124),a=n(26739),l=n(20439),c=n(21942),d=n(58503),u=n(74848);const h=(0,a.Ay)(s.A,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),m=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiDialogTitle"}),{className:s,id:a,...m}=n,p=n,f=(e=>{const{classes:t}=e;return(0,r.A)({root:["root"]},c.t,t)})(p),{titleId:g=a}=o.useContext(d.A);return(0,u.jsx)(h,{component:"h2",className:(0,i.A)(f.root,s),ownerState:p,ref:t,variant:"h6",id:a??g,...m})}))},85975:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});var o=n(77325);function i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return(0,o.mu)(e,((e,t,o)=>e+t.replace(/\r?\n\s*/g,"")+(n[o]?n[o]:"")),"").trim()}},86169:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function o(e,t,n,o){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(95093))},86368:(e,t,n)=>{"use strict";var o=n(46518),i=n(44576),r=n(59225).clear;o({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==r},{clearImmediate:r})},86571:function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},86794:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},87695:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(96369),i=n(73893),r=n(27800),s=n(76562);function a(e){return(0,o.A)(e)||(0,i.A)(e)||(0,r.A)(e)||(0,s.A)()}},87979:(e,t,n)=>{"use strict";n.d(t,{Gk:()=>m,L4:()=>c,r0:()=>h}),n(16280);var o=n(34647),i=n(11080),r=n(54950),s=n(82993);const{register:a,getItem:l,hasItem:c,getNames:d,getValues:u}=(0,o.A)("cellTypes");function h(e){if(!c(e))throw Error(`You declared cell type "${e}" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by\n "Handsontable.cellTypes.registerCellType" method`);return l(e)}function m(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);const{editor:n,renderer:o,validator:l}=t;n&&(0,i.VA)(e,n),o&&(0,r.TS)(e,o),l&&(0,s.qV)(e,l),a(e,t)}},88383:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},88514:(e,t,n)=>{"use strict";function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{C:()=>i}),n(16280),n(98992),n(3949);class i{constructor(e){o(this,"calculationTypes",[]),o(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach((t=>{let[n,o]=t;this.calculationResults.set(n,o),o.initialize(e)}))}_process(e,t){this.calculationTypes.forEach((n=>{let[,o]=n;return o.process(e,t)}))}_finalize(e){this.calculationTypes.forEach((t=>{let[,n]=t;return n.finalize(e)}))}getResultsFor(e){return this.calculationResults.get(e)}}},88629:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(9792),i=n(74848);const r=(0,o.A)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},88727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},89045:(e,t,n)=>{var o=n(73738).default;e.exports=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},89286:(e,t,n)=>{"use strict";var o=n(94402),i=n(38469),r=o.Set,s=o.add;e.exports=function(e){var t=new r;return i(e,(function(e){s(t,e)})),t}},89374:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,o,i){var r=e+" ";switch(o){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?r+(n||i?"sekúndur":"sekúndum"):r+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?r+(n||i?"mínútur":"mínútum"):n?r+"mínúta":r+"mínútu";case"hh":return t(e)?r+(n||i?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?r+"dagar":r+(i?"daga":"dögum"):n?r+"dagur":r+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?r+"mánuðir":r+(i?"mánuði":"mánuðum"):n?r+"mánuður":r+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?r+(n||i?"ár":"árum"):r+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(64467);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},89544:(e,t,n)=>{"use strict";var o=n(82839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},89569:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commonLocale=void 0,t.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},89722:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(95093))},89756:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(95093))},90527:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function o(e,o,i,r){var s="";switch(i){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":s=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":s=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":s=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":s=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":s=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":s=r?"vuoden":"vuotta"}return function(e,o){return e<10?o?n[e]:t[e]:e}(e,r)+" "+s}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},90609:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,o){var i=e;switch(n){case"s":return o||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(o||t)?" másodperc":" másodperce";case"m":return"egy"+(o||t?" perc":" perce");case"mm":return i+(o||t?" perc":" perce");case"h":return"egy"+(o||t?" óra":" órája");case"hh":return i+(o||t?" óra":" órája");case"d":return"egy"+(o||t?" nap":" napja");case"dd":return i+(o||t?" nap":" napja");case"M":return"egy"+(o||t?" hónap":" hónapja");case"MM":return i+(o||t?" hónap":" hónapja");case"y":return"egy"+(o||t?" év":" éve");case"yy":return i+(o||t?" év":" éve")}return""}function o(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return o.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return o.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},90679:(e,t,n)=>{"use strict";var o=n(1625),i=TypeError;e.exports=function(e,t){if(o(t,e))return e;throw new i("Incorrect invocation")}},90729:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=n(96540).createContext({})},90754:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>f,Ay:()=>fe});var o=n(64467),i=n(89379),r=n(5544),s=n(82284),a=n(46942),l=n.n(a),c=n(66588),d=n(8719),u=n(96540),h=n(80045),m=["children"],p=u.createContext({});function f(e){var t=e.children,n=(0,h.A)(e,m);return u.createElement(p.Provider,{value:n},t)}var g=n(23029),b=n(92901),v=n(85501),y=n(49640);const w=function(e){(0,v.A)(n,e);var t=(0,y.A)(n);function n(){return(0,g.A)(this,n),t.apply(this,arguments)}return(0,b.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);var C=n(81470),_=n(1233),S=n(26956),M="none",E="appear",x="enter",k="leave",T="none",R="prepare",A="start",L="active",O="end",D="prepared",H=n(20998);function I(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var P,N,F,z=(P=(0,H.A)(),N="undefined"!=typeof window?window:{},F={animationend:I("Animation","AnimationEnd"),transitionend:I("Transition","TransitionEnd")},P&&("AnimationEvent"in N||delete F.animationend.animation,"TransitionEvent"in N||delete F.transitionend.transition),F),j={};if((0,H.A)()){var Y=document.createElement("div");j=Y.style}var $={};function B(e){if($[e])return $[e];var t=z[e];if(t)for(var n=Object.keys(t),o=n.length,i=0;i<o;i+=1){var r=n[i];if(Object.prototype.hasOwnProperty.call(t,r)&&r in j)return $[e]=t[r],$[e]}return""}var W=B("animationend"),V=B("transitionend"),U=!(!W||!V),G=W||"animationend",K=V||"transitionend";function q(e,t){return e?"object"===(0,s.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const X=(0,H.A)()?u.useLayoutEffect:u.useEffect;var J=n(25371),Q=[R,A,L,O],Z=[R,D],ee=!1;function te(e){return e===L||e===O}function ne(e,t,n,s){var a,l,c,d,h=s.motionEnter,m=void 0===h||h,p=s.motionAppear,f=void 0===p||p,g=s.motionLeave,b=void 0===g||g,v=s.motionDeadline,y=s.motionLeaveImmediately,w=s.onAppearPrepare,H=s.onEnterPrepare,I=s.onLeavePrepare,P=s.onAppearStart,N=s.onEnterStart,F=s.onLeaveStart,z=s.onAppearActive,j=s.onEnterActive,Y=s.onLeaveActive,$=s.onAppearEnd,B=s.onEnterEnd,W=s.onLeaveEnd,V=s.onVisibleChanged,U=(0,_.A)(),q=(0,r.A)(U,2),ne=q[0],oe=q[1],ie=(a=M,l=u.useReducer((function(e){return e+1}),0),c=(0,r.A)(l,2)[1],d=u.useRef(a),[(0,S.A)((function(){return d.current})),(0,S.A)((function(e){d.current="function"==typeof e?e(d.current):e,c()}))]),re=(0,r.A)(ie,2),se=re[0],ae=re[1],le=(0,_.A)(null),ce=(0,r.A)(le,2),de=ce[0],ue=ce[1],he=se(),me=(0,u.useRef)(!1),pe=(0,u.useRef)(null);function fe(){return n()}var ge=(0,u.useRef)(!1);function be(){ae(M),ue(null,!0)}var ve=(0,C._q)((function(e){var t=se();if(t!==M){var n=fe();if(!e||e.deadline||e.target===n){var o,i=ge.current;t===E&&i?o=null==$?void 0:$(n,e):t===x&&i?o=null==B?void 0:B(n,e):t===k&&i&&(o=null==W?void 0:W(n,e)),i&&!1!==o&&be()}}})),ye=function(e){var t=(0,u.useRef)();function n(t){t&&(t.removeEventListener(K,e),t.removeEventListener(G,e))}return u.useEffect((function(){return function(){n(t.current)}}),[]),[function(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(K,e),o.addEventListener(G,e),t.current=o)},n]}(ve),we=(0,r.A)(ye,1)[0],Ce=function(e){switch(e){case E:return(0,o.A)((0,o.A)((0,o.A)({},R,w),A,P),L,z);case x:return(0,o.A)((0,o.A)((0,o.A)({},R,H),A,N),L,j);case k:return(0,o.A)((0,o.A)((0,o.A)({},R,I),A,F),L,Y);default:return{}}},_e=u.useMemo((function(){return Ce(he)}),[he]),Se=function(e,t,n){var o=(0,_.A)(T),i=(0,r.A)(o,2),s=i[0],a=i[1],l=function(){var e=u.useRef(null);function t(){J.A.cancel(e.current)}return u.useEffect((function(){return function(){t()}}),[]),[function n(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var r=(0,J.A)((function(){i<=1?o({isCanceled:function(){return r!==e.current}}):n(o,i-1)}));e.current=r},t]}(),c=(0,r.A)(l,2),d=c[0],h=c[1],m=t?Z:Q;return X((function(){if(s!==T&&s!==O){var e=m.indexOf(s),t=m[e+1],o=n(s);o===ee?a(t,!0):t&&d((function(e){function n(){e.isCanceled()||a(t,!0)}!0===o?n():Promise.resolve(o).then(n)}))}}),[e,s]),u.useEffect((function(){return function(){h()}}),[]),[function(){a(R,!0)},s]}(he,!e,(function(e){if(e===R){var t=_e[R];return t?t(fe()):ee}var n;return xe in _e&&ue((null===(n=_e[xe])||void 0===n?void 0:n.call(_e,fe(),null))||null),xe===L&&he!==M&&(we(fe()),v>0&&(clearTimeout(pe.current),pe.current=setTimeout((function(){ve({deadline:!0})}),v))),xe===D&&be(),!0})),Me=(0,r.A)(Se,2),Ee=Me[0],xe=Me[1],ke=te(xe);ge.current=ke;var Te=(0,u.useRef)(null);X((function(){if(!me.current||Te.current!==t){oe(t);var n,o=me.current;me.current=!0,!o&&t&&f&&(n=E),o&&t&&m&&(n=x),(o&&!t&&b||!o&&y&&!t&&b)&&(n=k);var i=Ce(n);n&&(e||i[R])?(ae(n),Ee()):ae(M),Te.current=t}}),[t]),(0,u.useEffect)((function(){(he===E&&!f||he===x&&!m||he===k&&!b)&&ae(M)}),[f,m,b]),(0,u.useEffect)((function(){return function(){me.current=!1,clearTimeout(pe.current)}}),[]);var Re=u.useRef(!1);(0,u.useEffect)((function(){ne&&(Re.current=!0),void 0!==ne&&he===M&&((Re.current||ne)&&(null==V||V(ne)),Re.current=!0)}),[ne,he]);var Ae=de;return _e[R]&&xe===A&&(Ae=(0,i.A)({transition:"none"},Ae)),[he,xe,Ae,null!=ne?ne:t]}const oe=function(e){var t=e;"object"===(0,s.A)(e)&&(t=e.transitionSupport);var n=u.forwardRef((function(e,n){var s=e.visible,a=void 0===s||s,h=e.removeOnLeave,m=void 0===h||h,f=e.forceRender,g=e.children,b=e.motionName,v=e.leavedClassName,y=e.eventProps,C=function(e,n){return!(!e.motionName||!t||!1===n)}(e,u.useContext(p).motion),_=(0,u.useRef)(),S=(0,u.useRef)(),E=ne(C,a,(function(){try{return _.current instanceof HTMLElement?_.current:(0,c.Ay)(S.current)}catch(e){return null}}),e),x=(0,r.A)(E,4),k=x[0],T=x[1],L=x[2],O=x[3],D=u.useRef(O);O&&(D.current=!0);var H,I=u.useCallback((function(e){_.current=e,(0,d.Xf)(n,e)}),[n]),P=(0,i.A)((0,i.A)({},y),{},{visible:a});if(g)if(k===M)H=O?g((0,i.A)({},P),I):!m&&D.current&&v?g((0,i.A)((0,i.A)({},P),{},{className:v}),I):f||!m&&!v?g((0,i.A)((0,i.A)({},P),{},{style:{display:"none"}}),I):null;else{var N;T===R?N="prepare":te(T)?N="active":T===A&&(N="start");var F=q(b,"".concat(k,"-").concat(N));H=g((0,i.A)((0,i.A)({},P),{},{className:l()(q(b,k),(0,o.A)((0,o.A)({},F,F&&N),b,"string"==typeof b)),style:L}),I)}else H=null;return u.isValidElement(H)&&(0,d.f3)(H)&&((0,d.A9)(H)||(H=u.cloneElement(H,{ref:I}))),u.createElement(w,{ref:S},H)}));return n.displayName="CSSMotion",n}(U);var ie=n(58168),re=n(9417),se="add",ae="keep",le="remove",ce="removed";function de(e){var t;return t=e&&"object"===(0,s.A)(e)&&"key"in e?e:{key:e},(0,i.A)((0,i.A)({},t),{},{key:String(t.key)})}function ue(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(de)}var he=["component","children","onVisibleChanged","onAllRemoved"],me=["status"],pe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,t=function(t){(0,v.A)(r,t);var n=(0,y.A)(r);function r(){var e;(0,g.A)(this,r);for(var t=arguments.length,s=new Array(t),a=0;a<t;a++)s[a]=arguments[a];return e=n.call.apply(n,[this].concat(s)),(0,o.A)((0,re.A)(e),"state",{keyEntities:[]}),(0,o.A)((0,re.A)(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.A)((0,i.A)({},e),{},{status:ce})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==ce})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return(0,b.A)(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,o=this.props,r=o.component,s=o.children,a=o.onVisibleChanged,l=(o.onAllRemoved,(0,h.A)(o,he)),c=r||u.Fragment,d={};return pe.forEach((function(e){d[e]=l[e],delete l[e]})),delete l.keys,u.createElement(c,l,n.map((function(n,o){var r=n.status,l=(0,h.A)(n,me),c=r===se||r===ae;return u.createElement(e,(0,ie.A)({},d,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(e){null==a||a(e,{key:l.key}),e||t.removeKey(l.key)}}),(function(e,t){return s((0,i.A)((0,i.A)({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=ue(n),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,r=t.length,s=ue(e),a=ue(t);s.forEach((function(e){for(var t=!1,s=o;s<r;s+=1){var l=a[s];if(l.key===e.key){o<s&&(n=n.concat(a.slice(o,s).map((function(e){return(0,i.A)((0,i.A)({},e),{},{status:se})}))),o=s),n.push((0,i.A)((0,i.A)({},l),{},{status:ae})),o+=1,t=!0;break}}t||n.push((0,i.A)((0,i.A)({},e),{},{status:le}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return(0,i.A)((0,i.A)({},e),{},{status:se})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==le}))).forEach((function(t){t.key===e&&(t.status=ae)}))})),n}(o,r);return{keyEntities:s.filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ce||e.status!==le}))}}}]),r}(u.Component);(0,o.A)(t,"defaultProps",{component:"div"})}(U);const fe=oe},91181:(e,t,n)=>{"use strict";var o,i,r,s=n(58622),a=n(44576),l=n(20034),c=n(66699),d=n(39297),u=n(77629),h=n(66119),m=n(30421),p="Object already initialized",f=a.TypeError,g=a.WeakMap;if(s||u.state){var b=u.state||(u.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,o=function(e,t){if(b.has(e))throw new f(p);return t.facade=e,b.set(e,t),t},i=function(e){return b.get(e)||{}},r=function(e){return b.has(e)}}else{var v=h("state");m[v]=!0,o=function(e,t){if(d(e,v))throw new f(p);return t.facade=e,c(e,v,t),t},i=function(e){return d(e,v)?e[v]:{}},r=function(e){return d(e,v)}}e.exports={set:o,get:i,has:r,enforce:function(e){return r(e)?i(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}},91291:(e,t,n)=>{"use strict";var o=n(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:o(t)}},91385:(e,t,n)=>{"use strict";var o=n(9539);e.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{n=o(e[i].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}},92140:(e,t,n)=>{"use strict";var o={};o[n(78227)("toStringTag")]="z",e.exports="[object z]"===String(o)},92182:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var o=n(69478),i=n(20091),r=n(65615);function s(e,t,n,s,a,l,c){o.j.apply(this,[e,t,n,s,a,l,c]);let d=l;!d&&c.placeholder&&(d=c.placeholder),d=(0,r.As)(d),c.trimWhitespace&&(d=d.trim()),(0,i.c6)(t,d)}s.RENDERER_TYPE="text"},92187:(e,t,n)=>{"use strict";var o=n(24994).default;t.A=void 0;var i=o(n(67018)),r=o(n(41702)),s=o(n(83009)),a=o(n(82348));const l="${label}不是一个有效的${type}",c={locale:"zh-cn",Pagination:i.default,DatePicker:s.default,TimePicker:a.default,Calendar:r.default,global:{placeholder:"请选择",close:"关闭"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};t.A=c},92297:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(95093))},92572:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),o=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},92796:(e,t,n)=>{"use strict";var o=n(79039),i=n(94901),r=/#|\.prototype\./,s=function(e,t){var n=l[a(e)];return n===d||n!==c&&(i(t)?o(t):!!t)},a=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",d=s.POLYFILL="P";e.exports=s},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(20816);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,o.A)(i.key),i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},93383:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return o?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(95093))},93514:(e,t,n)=>{"use strict";n(6469)("flat")},93601:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},94402:(e,t,n)=>{"use strict";var o=n(79504),i=Set.prototype;e.exports={Set,add:o(i.add),has:o(i.has),remove:o(i.delete),proto:i}},94418:function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),o=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,n){var o=e+" ";switch(n){case"ss":return o+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return o+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return o+(i(e)?"godziny":"godzin");case"ww":return o+(i(e)?"tygodnie":"tygodni");case"MM":return o+(i(e)?"miesiące":"miesięcy");case"yy":return o+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,o){return e?/D MMMM/.test(o)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:r,M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},94726:(e,t,n)=>{"use strict";n.d(t,{U:()=>s,j:()=>r}),n(16280),n(44114);var o=n(88514);function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const r=50;class s extends o.C{constructor(e){let{calculationTypes:t,viewportWidth:n,scrollOffset:o,totalColumns:r,columnWidthFn:s,overrideFn:a,inlineStartOffset:l}=e;super(t),i(this,"viewportWidth",0),i(this,"scrollOffset",0),i(this,"zeroBasedScrollOffset",0),i(this,"totalColumns",0),i(this,"columnWidthFn",null),i(this,"columnWidth",0),i(this,"overrideFn",null),i(this,"inlineStartOffset",0),i(this,"totalCalculatedWidth",0),i(this,"startPositions",[]),i(this,"needReverse",!0),this.viewportWidth=n,this.scrollOffset=o,this.zeroBasedScrollOffset=Math.max(o,0),this.totalColumns=r,this.columnWidthFn=s,this.overrideFn=a,this.inlineStartOffset=l,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalColumns;e++)if(this.columnWidth=this.getColumnWidth(e),this._process(e,this),this.startPositions.push(this.totalCalculatedWidth),this.totalCalculatedWidth+=this.columnWidth,this.totalCalculatedWidth>=this.zeroBasedScrollOffset+this.viewportWidth){this.needReverse=!1;break}this._finalize(this)}getColumnWidth(e){const t=this.columnWidthFn(e);return isNaN(t)?r:t}}},94814:(e,t,n)=>{"use strict";n.d(t,{A:()=>c}),n(16280),n(44114);var o=n(3709);function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){return e.get(s(e,t))}function s(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var a=new WeakMap;class l{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var r,l;i(this,"highlight",null),i(this,"from",null),i(this,"to",null),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,a,!1),this.highlight=e.clone(),this.from=t.clone(),this.to=n.clone(),l=o,(r=a).set(s(r,this),l)}setHighlight(e){return this.highlight=e.clone(),this}setFrom(e){return this.from=e.clone(),this}setTo(e){return this.to=e.clone(),this}normalize(){return this.highlight.normalize(),this.from.normalize(),this.to.normalize(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return!(!this.from.isHeader()||!this.to.isHeader())||this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:t,col:n}=e,o=this.getOuterTopStartCorner(),i=this.getOuterBottomEndCorner();return o.row<=t&&i.row>=t&&o.col<=n&&i.col>=n}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}expandByRange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.includesRange(e)||!this.overlaps(e))return!1;const n=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner(),i=this.getDirection(),r=e.getOuterTopStartCorner(),s=e.getOuterBottomEndCorner(),a=Math.min(n.row,r.row),l=Math.min(n.col,r.col),c=Math.max(o.row,s.row),d=Math.max(o.col,s.col),u=this._createCellCoords(a,l),h=this._createCellCoords(c,d);return this.from=u,this.to=h,this.setDirection(i),t&&(this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally()),!0}getDirection(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()]}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return r(a,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return r(a,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return r(a,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return r(a,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return r(a,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return r(a,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return r(a,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return r(a,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){return e instanceof o.A&&(e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0)}getBordersSharedWith(e){if(!this.includesRange(e))return[];const t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),o=Math.min(this.from.col,this.to.col),i=Math.max(this.from.col,this.to.col),s=Math.min(e.from.row,e.to.row),l=Math.max(e.from.row,e.to.row),c=Math.min(e.from.col,e.to.col),d=Math.max(e.from.col,e.to.col),u=[];return t===s&&u.push("top"),i===d&&u.push(r(a,this)?"left":"right"),n===l&&u.push("bottom"),o===c&&u.push(r(a,this)?"right":"left"),u}getInner(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[];for(let o=e.row;o<=t.row;o++)for(let i=e.col;i<=t.col;i++)this.from.row===o&&this.from.col===i||this.to.row===o&&this.to.col===i||n.push(this._createCellCoords(o,i));return n}getAll(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[];for(let o=e.row;o<=t.row;o++)for(let i=e.col;i<=t.col;i++)e.row===o&&e.col===i?n.push(e):t.row===o&&t.col===i?n.push(t):n.push(this._createCellCoords(o,i));return n}forAll(e){const t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();for(let o=t.row;o<=n.row;o++)for(let i=t.col;i<=n.col;i++)if(!1===e(o,i))return}clone(){return new l(this.highlight,this.from,this.to,r(a,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,t){return new o.A(e,t,r(a,this))}}const c=l},94901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},94925:(e,t,n)=>{"use strict";function o(e){return(e+8)/e}function i(e){const t=Array.from({length:10}).map(((t,n)=>{const o=n-1,i=e*Math.pow(Math.E,o/5),r=n>1?Math.floor(i):Math.ceil(i);return 2*Math.floor(r/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:o(e)})))}n.d(t,{A:()=>i,k:()=>o})},95050:function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(95093))},95093:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,o;function i(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function c(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,o=[],i=e.length;for(n=0;n<i;++n)o.push(t(e[n],n));return o}function m(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,o){return Ht(e,t,n,o,!0).utc()}function f(e){return null==e._pf&&(e._pf={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}),e._pf}function g(e){var t=null,n=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=f(e),n=o.call(t.parsedDateParts,(function(e){return null!=e})),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function b(e){var t=p(NaN);return null!=e?m(f(t),e):f(t).userInvalidated=!0,t}o=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),o=n.length>>>0;for(t=0;t<o;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=i.momentProperties=[],y=!1;function w(e,t){var n,o,i,r=v.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=f(t)),c(t._locale)||(e._locale=t._locale),r>0)for(n=0;n<r;n++)c(i=t[o=v[n]])||(e[o]=i);return e}function C(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function _(e){return e instanceof C||null!=e&&null!=e._isAMomentObject}function S(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,t){var n=!0;return m((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var o,r,s,l=[],c=arguments.length;for(r=0;r<c;r++){if(o="","object"==typeof arguments[r]){for(s in o+="\n["+r+"] ",arguments[0])a(arguments[0],s)&&(o+=s+": "+arguments[0][s]+", ");o=o.slice(0,-2)}else o=arguments[r];l.push(o)}S(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,x={};function k(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),x[e]||(S(t),x[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function R(e,t){var n,o=m({},e);for(n in t)a(t,n)&&(s(e[n])&&s(t[n])?(o[n]={},m(o[n],e[n]),m(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)a(e,n)&&!a(t,n)&&s(e[n])&&(o[n]=m({},o[n]));return o}function A(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};function L(e,t,n){var o=""+Math.abs(e),i=t-o.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+o}var O=/(\[[^\[]*\])|(\\)?([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,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},I={};function P(e,t,n,o){var i=o;"string"==typeof o&&(i=function(){return this[o]()}),e&&(I[e]=i),t&&(I[t[0]]=function(){return L(i.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=F(t,e.localeData()),H[t]=H[t]||function(e){var t,n,o,i=e.match(O);for(t=0,n=i.length;t<n;t++)I[i[t]]?i[t]=I[i[t]]:i[t]=(o=i[t]).match(/\[[\s\S]/)?o.replace(/^\[|\]$/g,""):o.replace(/\\/g,"");return function(t){var o,r="";for(o=0;o<n;o++)r+=T(i[o])?i[o].call(t,e):i[o];return r}}(t),H[t](e)):e.localeData().invalidDate()}function F(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for(D.lastIndex=0;n>=0&&D.test(e);)e=e.replace(D,o),D.lastIndex=0,n-=1;return e}var z={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 j(e){return"string"==typeof e?z[e]||z[e.toLowerCase()]:void 0}function Y(e){var t,n,o={};for(n in e)a(e,n)&&(t=j(n))&&(o[t]=e[n]);return o}var $={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var B,W=/\d/,V=/\d\d/,U=/\d{3}/,G=/\d{4}/,K=/[+-]?\d{6}/,q=/\d\d?/,X=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,Z=/\d{1,4}/,ee=/[+-]?\d{1,6}/,te=/\d+/,ne=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,ie=/Z|[+-]\d\d(?::?\d\d)?/gi,re=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,se=/^[1-9]\d?/,ae=/^([1-9]\d|\d)/;function le(e,t,n){B[e]=T(t)?t:function(e,o){return e&&n?n:t}}function ce(e,t){return a(B,e)?B[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,o,i){return t||n||o||i}))))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}B={};var me={};function pe(e,t){var n,o,i=t;for("string"==typeof e&&(e=[e]),d(t)&&(i=function(e,n){n[t]=he(e)}),o=e.length,n=0;n<o;n++)me[e[n]]=i}function fe(e,t){pe(e,(function(e,n,o,i){o._w=o._w||{},t(e,o._w,o,i)}))}function ge(e,t,n){null!=t&&a(me,e)&&me[e](t,n._a,n,e)}function be(e){return e%4==0&&e%100!=0||e%400==0}var ve=0,ye=1,we=2,Ce=3,_e=4,Se=5,Me=6,Ee=7,xe=8;function ke(e){return be(e)?366:365}P("Y",0,0,(function(){var e=this.year();return e<=9999?L(e,4):"+"+e})),P(0,["YY",2],0,(function(){return this.year()%100})),P(0,["YYYY",4],0,"year"),P(0,["YYYYY",5],0,"year"),P(0,["YYYYYY",6,!0],0,"year"),le("Y",ne),le("YY",q,V),le("YYYY",Z,G),le("YYYYY",ee,K),le("YYYYYY",ee,K),pe(["YYYYY","YYYYYY"],ve),pe("YYYY",(function(e,t){t[ve]=2===e.length?i.parseTwoDigitYear(e):he(e)})),pe("YY",(function(e,t){t[ve]=i.parseTwoDigitYear(e)})),pe("Y",(function(e,t){t[ve]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};var Te,Re=Ae("FullYear",!0);function Ae(e,t){return function(n){return null!=n?(Oe(this,e,n),i.updateOffset(this,t),this):Le(this,e)}}function Le(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Oe(e,t,n){var o,i,r,s,a;if(e.isValid()&&!isNaN(n)){switch(o=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?o.setUTCMilliseconds(n):o.setMilliseconds(n));case"Seconds":return void(i?o.setUTCSeconds(n):o.setSeconds(n));case"Minutes":return void(i?o.setUTCMinutes(n):o.setMinutes(n));case"Hours":return void(i?o.setUTCHours(n):o.setHours(n));case"Date":return void(i?o.setUTCDate(n):o.setDate(n));case"FullYear":break;default:return}r=n,s=e.month(),a=29!==(a=e.date())||1!==s||be(r)?a:28,i?o.setUTCFullYear(r,s,a):o.setFullYear(r,s,a)}}function De(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,o=(t%(n=12)+n)%n;return e+=(t-o)/12,1===o?be(e)?29:28:31-o%7%2}Te=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},P("M",["MM",2],"Mo",(function(){return this.month()+1})),P("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),P("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),le("M",q,se),le("MM",q,V),le("MMM",(function(e,t){return t.monthsShortRegex(e)})),le("MMMM",(function(e,t){return t.monthsRegex(e)})),pe(["M","MM"],(function(e,t){t[ye]=he(e)-1})),pe(["MMM","MMMM"],(function(e,t,n,o){var i=n._locale.monthsParse(e,o,n._strict);null!=i?t[ye]=i:f(n).invalidMonth=e}));var He="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ie="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Pe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ne=re,Fe=re;function ze(e,t,n){var o,i,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)r=p([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Te.call(this._shortMonthsParse,s))?i:null:-1!==(i=Te.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Te.call(this._shortMonthsParse,s))||-1!==(i=Te.call(this._longMonthsParse,s))?i:null:-1!==(i=Te.call(this._longMonthsParse,s))||-1!==(i=Te.call(this._shortMonthsParse,s))?i:null}function je(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=he(t);else if(!d(t=e.localeData().monthsParse(t)))return e;var n=t,o=e.date();return o=o<29?o:Math.min(o,De(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,o):e._d.setMonth(n,o),e}function Ye(e){return null!=e?(je(this,e),i.updateOffset(this,!0),this):Le(this,"Month")}function $e(){function e(e,t){return t.length-e.length}var t,n,o,i,r=[],s=[],a=[];for(t=0;t<12;t++)n=p([2e3,t]),o=de(this.monthsShort(n,"")),i=de(this.months(n,"")),r.push(o),s.push(i),a.push(i),a.push(o);r.sort(e),s.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Be(e,t,n,o,i,r,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,o,i,r,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,o,i,r,s),a}function We(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ve(e,t,n){var o=7+t-n;return-(7+We(e,0,o).getUTCDay()-t)%7+o-1}function Ue(e,t,n,o,i){var r,s,a=1+7*(t-1)+(7+n-o)%7+Ve(e,o,i);return a<=0?s=ke(r=e-1)+a:a>ke(e)?(r=e+1,s=a-ke(e)):(r=e,s=a),{year:r,dayOfYear:s}}function Ge(e,t,n){var o,i,r=Ve(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?o=s+Ke(i=e.year()-1,t,n):s>Ke(e.year(),t,n)?(o=s-Ke(e.year(),t,n),i=e.year()+1):(i=e.year(),o=s),{week:o,year:i}}function Ke(e,t,n){var o=Ve(e,t,n),i=Ve(e+1,t,n);return(ke(e)-o+i)/7}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),le("w",q,se),le("ww",q,V),le("W",q,se),le("WW",q,V),fe(["w","ww","W","WW"],(function(e,t,n,o){t[o.substr(0,1)]=he(e)}));function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}P("d",0,"do","day"),P("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),P("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),P("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),le("d",q),le("e",q),le("E",q),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),fe(["dd","ddd","dddd"],(function(e,t,n,o){var i=n._locale.weekdaysParse(e,o,n._strict);null!=i?t.d=i:f(n).invalidWeekday=e})),fe(["d","e","E"],(function(e,t,n,o){t[o]=he(e)}));var Xe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=re,et=re,tt=re;function nt(e,t,n){var o,i,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)r=p([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Te.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Te.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Te.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Te.call(this._weekdaysParse,s))||-1!==(i=Te.call(this._shortWeekdaysParse,s))||-1!==(i=Te.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Te.call(this._shortWeekdaysParse,s))||-1!==(i=Te.call(this._weekdaysParse,s))||-1!==(i=Te.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Te.call(this._minWeekdaysParse,s))||-1!==(i=Te.call(this._weekdaysParse,s))||-1!==(i=Te.call(this._shortWeekdaysParse,s))?i:null}function ot(){function e(e,t){return t.length-e.length}var t,n,o,i,r,s=[],a=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),o=de(this.weekdaysMin(n,"")),i=de(this.weekdaysShort(n,"")),r=de(this.weekdays(n,"")),s.push(o),a.push(i),l.push(r),c.push(o),c.push(i),c.push(r);s.sort(e),a.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function it(){return this.hours()%12||12}function rt(e,t){P(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function st(e,t){return t._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,it),P("k",["kk",2],0,(function(){return this.hours()||24})),P("hmm",0,0,(function(){return""+it.apply(this)+L(this.minutes(),2)})),P("hmmss",0,0,(function(){return""+it.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)})),P("Hmm",0,0,(function(){return""+this.hours()+L(this.minutes(),2)})),P("Hmmss",0,0,(function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)})),rt("a",!0),rt("A",!1),le("a",st),le("A",st),le("H",q,ae),le("h",q,se),le("k",q,se),le("HH",q,V),le("hh",q,V),le("kk",q,V),le("hmm",X),le("hmmss",J),le("Hmm",X),le("Hmmss",J),pe(["H","HH"],Ce),pe(["k","kk"],(function(e,t,n){var o=he(e);t[Ce]=24===o?0:o})),pe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),pe(["h","hh"],(function(e,t,n){t[Ce]=he(e),f(n).bigHour=!0})),pe("hmm",(function(e,t,n){var o=e.length-2;t[Ce]=he(e.substr(0,o)),t[_e]=he(e.substr(o)),f(n).bigHour=!0})),pe("hmmss",(function(e,t,n){var o=e.length-4,i=e.length-2;t[Ce]=he(e.substr(0,o)),t[_e]=he(e.substr(o,2)),t[Se]=he(e.substr(i)),f(n).bigHour=!0})),pe("Hmm",(function(e,t,n){var o=e.length-2;t[Ce]=he(e.substr(0,o)),t[_e]=he(e.substr(o))})),pe("Hmmss",(function(e,t,n){var o=e.length-4,i=e.length-2;t[Ce]=he(e.substr(0,o)),t[_e]=he(e.substr(o,2)),t[Se]=he(e.substr(i))}));var at=Ae("Hours",!0);var lt,ct={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:He,monthsShort:Ie,week:{dow:0,doy:6},weekdays:Xe,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},dt={},ut={};function ht(e,t){var n,o=Math.min(e.length,t.length);for(n=0;n<o;n+=1)if(e[n]!==t[n])return n;return o}function mt(e){return e?e.toLowerCase().replace("_","-"):e}function pt(t){var o=null;if(void 0===dt[t]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{o=lt._abbr,n(35358)("./"+t),ft(o)}catch(e){dt[t]=null}return dt[t]}function ft(e,t){var n;return e&&((n=c(t)?bt(e):gt(e,t))?lt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),lt._abbr}function gt(e,t){if(null!==t){var n,o=ct;if(t.abbr=e,null!=dt[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=dt[e]._config;else if(null!=t.parentLocale)if(null!=dt[t.parentLocale])o=dt[t.parentLocale]._config;else{if(null==(n=pt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;o=n._config}return dt[e]=new A(R(o,t)),ut[e]&&ut[e].forEach((function(e){gt(e.name,e.config)})),ft(e),dt[e]}return delete dt[e],null}function bt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return lt;if(!r(e)){if(t=pt(e))return t;e=[e]}return function(e){for(var t,n,o,i,r=0;r<e.length;){for(t=(i=mt(e[r]).split("-")).length,n=(n=mt(e[r+1]))?n.split("-"):null;t>0;){if(o=pt(i.slice(0,t).join("-")))return o;if(n&&n.length>=t&&ht(i,n)>=t-1)break;t--}r++}return lt}(e)}function vt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[we]<1||n[we]>De(n[ve],n[ye])?we:n[Ce]<0||n[Ce]>24||24===n[Ce]&&(0!==n[_e]||0!==n[Se]||0!==n[Me])?Ce:n[_e]<0||n[_e]>59?_e:n[Se]<0||n[Se]>59?Se:n[Me]<0||n[Me]>999?Me:-1,f(e)._overflowDayOfYear&&(t<ve||t>we)&&(t=we),f(e)._overflowWeeks&&-1===t&&(t=Ee),f(e)._overflowWeekday&&-1===t&&(t=xe),f(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ct=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],St=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mt=/^\/?Date\((-?\d+)/i,Et=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t,n,o,i,r,s,a=e._i,l=yt.exec(a)||wt.exec(a),c=_t.length,d=St.length;if(l){for(f(e).iso=!0,t=0,n=c;t<n;t++)if(_t[t][1].exec(l[1])){i=_t[t][0],o=!1!==_t[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=d;t<n;t++)if(St[t][1].exec(l[3])){r=(l[2]||" ")+St[t][0];break}if(null==r)return void(e._isValid=!1)}if(!o&&null!=r)return void(e._isValid=!1);if(l[4]){if(!Ct.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(r||"")+(s||""),Ot(e)}else e._isValid=!1}function Tt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Rt(e){var t,n,o,i,r,s,a,l,c=Et.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],o=c[3],i=c[2],r=c[5],s=c[6],a=c[7],l=[Tt(n),Ie.indexOf(o),parseInt(i,10),parseInt(r,10),parseInt(s,10)],a&&l.push(parseInt(a,10)),t=l,!function(e,t,n){return!e||Je.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return xt[e];if(t)return 0;var o=parseInt(n,10),i=o%100;return(o-i)/100*60+i}(c[8],c[9],c[10]),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function At(e,t,n){return null!=e?e:null!=t?t:n}function Lt(e){var t,n,o,r,s,a=[];if(!e._d){for(o=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[we]&&null==e._a[ye]&&function(e){var t,n,o,i,r,s,a,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,s=4,n=At(t.GG,e._a[ve],Ge(It(),1,4).year),o=At(t.W,1),((i=At(t.E,1))<1||i>7)&&(l=!0)):(r=e._locale._week.dow,s=e._locale._week.doy,c=Ge(It(),r,s),n=At(t.gg,e._a[ve],c.year),o=At(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(l=!0)):i=r),o<1||o>Ke(n,r,s)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(a=Ue(n,o,i,r,s),e._a[ve]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=At(e._a[ve],o[ve]),(e._dayOfYear>ke(s)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=We(s,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[we]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=o[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ce]&&0===e._a[_e]&&0===e._a[Se]&&0===e._a[Me]&&(e._nextDay=!0,e._a[Ce]=0),e._d=(e._useUTC?We:Be).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ce]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(f(e).weekdayMismatch=!0)}}function Ot(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],f(e).empty=!0;var t,n,o,r,s,a,l,c=""+e._i,d=c.length,u=0;for(l=(o=F(e._f,e._locale).match(O)||[]).length,t=0;t<l;t++)r=o[t],(n=(c.match(ce(r,e))||[])[0])&&((s=c.substr(0,c.indexOf(n))).length>0&&f(e).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),u+=n.length),I[r]?(n?f(e).empty=!1:f(e).unusedTokens.push(r),ge(r,n,e)):e._strict&&!n&&f(e).unusedTokens.push(r);f(e).charsLeftOver=d-u,c.length>0&&f(e).unusedInput.push(c),e._a[Ce]<=12&&!0===f(e).bigHour&&e._a[Ce]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[Ce]=function(e,t,n){var o;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((o=e.isPM(n))&&t<12&&(t+=12),o||12!==t||(t=0),t):t}(e._locale,e._a[Ce],e._meridiem),null!==(a=f(e).era)&&(e._a[ve]=e._locale.erasConvertYear(a,e._a[ve])),Lt(e),vt(e)}else Rt(e);else kt(e)}function Dt(e){var t=e._i,n=e._f;return e._locale=e._locale||bt(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new C(vt(t)):(u(t)?e._d=t:r(n)?function(e){var t,n,o,i,r,s,a=!1,l=e._f.length;if(0===l)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)r=0,s=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Ot(t),g(t)&&(s=!0),r+=f(t).charsLeftOver,r+=10*f(t).unusedTokens.length,f(t).score=r,a?r<o&&(o=r,n=t):(null==o||r<o||s)&&(o=r,n=t,s&&(a=!0));m(e,n||t)}(e):n?Ot(e):function(e){var t=e._i;c(t)?e._d=new Date(i.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Mt.exec(e._i);null===t?(kt(e),!1===e._isValid&&(delete e._isValid,Rt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Lt(e)):s(t)?function(e){if(!e._d){var t=Y(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Lt(e)}}(e):d(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function Ht(e,t,n,o,i){var a,c={};return!0!==t&&!1!==t||(o=t,t=void 0),!0!==n&&!1!==n||(o=n,n=void 0),(s(e)&&l(e)||r(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=i,c._l=n,c._i=e,c._f=t,c._strict=o,(a=new C(vt(Dt(c))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function It(e,t,n,o){return Ht(e,t,n,o,!1)}i.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Pt=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Nt=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function Ft(e,t){var n,o;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return It();for(n=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](n)||(n=t[o]);return n}var zt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function jt(e){var t=Y(e),n=t.year||0,o=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,d=t.second||0,u=t.millisecond||0;this._isValid=function(e){var t,n,o=!1,i=zt.length;for(t in e)if(a(e,t)&&(-1===Te.call(zt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[zt[n]]){if(o)return!1;parseFloat(e[zt[n]])!==he(e[zt[n]])&&(o=!0)}return!0}(t),this._milliseconds=+u+1e3*d+6e4*c+1e3*l*60*60,this._days=+s+7*r,this._months=+i+3*o+12*n,this._data={},this._locale=bt(),this._bubble()}function Yt(e){return e instanceof jt}function $t(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Bt(e,t){P(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+L(~~(e/60),2)+t+L(~~e%60,2)}))}Bt("Z",":"),Bt("ZZ",""),le("Z",ie),le("ZZ",ie),pe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Vt(ie,e)}));var Wt=/([\+\-]|\d\d)/gi;function Vt(e,t){var n,o,i=(t||"").match(e);return null===i?null:0===(o=60*(n=((i[i.length-1]||[])+"").match(Wt)||["-",0,0])[1]+he(n[2]))?0:"+"===n[0]?o:-o}function Ut(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(_(e)||u(e)?e.valueOf():It(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),i.updateOffset(n,!1),n):It(e).local()}function Gt(e){return-Math.round(e._d.getTimezoneOffset())}function Kt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var qt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Xt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jt(e,t){var n,o,i,r,s,l,c=e,u=null;return Yt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(u=qt.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:he(u[we])*n,h:he(u[Ce])*n,m:he(u[_e])*n,s:he(u[Se])*n,ms:he($t(1e3*u[Me]))*n}):(u=Xt.exec(e))?(n="-"===u[1]?-1:1,c={y:Qt(u[2],n),M:Qt(u[3],n),w:Qt(u[4],n),d:Qt(u[5],n),h:Qt(u[6],n),m:Qt(u[7],n),s:Qt(u[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(r=It(c.from),s=It(c.to),i=r.isValid()&&s.isValid()?(s=Ut(s,r),r.isBefore(s)?l=Zt(r,s):((l=Zt(s,r)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=i.milliseconds,c.M=i.months),o=new jt(c),Yt(e)&&a(e,"_locale")&&(o._locale=e._locale),Yt(e)&&a(e,"_isValid")&&(o._isValid=e._isValid),o}function Qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){return function(n,o){var i;return null===o||isNaN(+o)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),tn(this,Jt(n,o),e),this}}function tn(e,t,n,o){var r=t._milliseconds,s=$t(t._days),a=$t(t._months);e.isValid()&&(o=null==o||o,a&&je(e,Le(e,"Month")+a*n),s&&Oe(e,"Date",Le(e,"Date")+s*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&i.updateOffset(e,s||a))}Jt.fn=jt.prototype,Jt.invalid=function(){return Jt(NaN)};var nn=en(1,"add"),on=en(-1,"subtract");function rn(e){return"string"==typeof e||e instanceof String}function sn(e){return _(e)||u(e)||rn(e)||d(e)||function(e){var t=r(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&rn(e)})).length),t&&n}(e)||function(e){var t,n,o=s(e)&&!l(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=r.length;for(t=0;t<c;t+=1)n=r[t],i=i||a(e,n);return o&&i}(e)||null==e}function an(e,t){if(e.date()<t.date())return-an(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(n,"months");return-(n+(t-o<0?(t-o)/(o-e.clone().add(n-1,"months")):(t-o)/(e.clone().add(n+1,"months")-o)))||0}function ln(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cn=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function dn(){return this._locale}var un=1e3,hn=6e4,mn=36e5,pn=126227808e5;function fn(e,t){return(e%t+t)%t}function gn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-pn:new Date(e,t,n).valueOf()}function bn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-pn:Date.UTC(e,t,n)}function vn(e,t){return t.erasAbbrRegex(e)}function yn(){var e,t,n,o,i,r=[],s=[],a=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=de(c[e].name),o=de(c[e].abbr),i=de(c[e].narrow),s.push(n),r.push(o),a.push(i),l.push(n),l.push(o),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function wn(e,t){P(0,[e,e.length],0,t)}function Cn(e,t,n,o,i){var r;return null==e?Ge(this,o,i).year:(t>(r=Ke(e,o,i))&&(t=r),_n.call(this,e,t,n,o,i))}function _n(e,t,n,o,i){var r=Ue(e,t,n,o,i),s=We(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}P("N",0,0,"eraAbbr"),P("NN",0,0,"eraAbbr"),P("NNN",0,0,"eraAbbr"),P("NNNN",0,0,"eraName"),P("NNNNN",0,0,"eraNarrow"),P("y",["y",1],"yo","eraYear"),P("y",["yy",2],0,"eraYear"),P("y",["yyy",3],0,"eraYear"),P("y",["yyyy",4],0,"eraYear"),le("N",vn),le("NN",vn),le("NNN",vn),le("NNNN",(function(e,t){return t.erasNameRegex(e)})),le("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),pe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,o){var i=n._locale.erasParse(e,o,n._strict);i?f(n).era=i:f(n).invalidEra=e})),le("y",te),le("yy",te),le("yyy",te),le("yyyy",te),le("yo",(function(e,t){return t._eraYearOrdinalRegex||te})),pe(["y","yy","yyy","yyyy"],ve),pe(["yo"],(function(e,t,n,o){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ve]=n._locale.eraYearOrdinalParse(e,i):t[ve]=parseInt(e,10)})),P(0,["gg",2],0,(function(){return this.weekYear()%100})),P(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),wn("gggg","weekYear"),wn("ggggg","weekYear"),wn("GGGG","isoWeekYear"),wn("GGGGG","isoWeekYear"),le("G",ne),le("g",ne),le("GG",q,V),le("gg",q,V),le("GGGG",Z,G),le("gggg",Z,G),le("GGGGG",ee,K),le("ggggg",ee,K),fe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,o){t[o.substr(0,2)]=he(e)})),fe(["gg","GG"],(function(e,t,n,o){t[o]=i.parseTwoDigitYear(e)})),P("Q",0,"Qo","quarter"),le("Q",W),pe("Q",(function(e,t){t[ye]=3*(he(e)-1)})),P("D",["DD",2],"Do","date"),le("D",q,se),le("DD",q,V),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),pe(["D","DD"],we),pe("Do",(function(e,t){t[we]=he(e.match(q)[0])}));var Sn=Ae("Date",!0);P("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",Q),le("DDDD",U),pe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=he(e)})),P("m",["mm",2],0,"minute"),le("m",q,ae),le("mm",q,V),pe(["m","mm"],_e);var Mn=Ae("Minutes",!1);P("s",["ss",2],0,"second"),le("s",q,ae),le("ss",q,V),pe(["s","ss"],Se);var En,xn,kn=Ae("Seconds",!1);for(P("S",0,0,(function(){return~~(this.millisecond()/100)})),P(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),P(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),P(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),P(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),P(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),P(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),le("S",Q,W),le("SS",Q,V),le("SSS",Q,U),En="SSSS";En.length<=9;En+="S")le(En,te);function Tn(e,t){t[Me]=he(1e3*("0."+e))}for(En="S";En.length<=9;En+="S")pe(En,Tn);xn=Ae("Milliseconds",!1),P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var Rn=C.prototype;function An(e){return e}Rn.add=nn,Rn.calendar=function(e,t){1===arguments.length&&(arguments[0]?sn(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=s(e)&&!l(e),o=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)o=o||a(e,i[t]);return n&&o}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||It(),o=Ut(n,this).startOf("day"),r=i.calendarFormat(this,o)||"sameElse",c=t&&(T(t[r])?t[r].call(this,n):t[r]);return this.format(c||this.localeData().calendar(r,this,It(n)))},Rn.clone=function(){return new C(this)},Rn.diff=function(e,t,n){var o,i,r;if(!this.isValid())return NaN;if(!(o=Ut(e,this)).isValid())return NaN;switch(i=6e4*(o.utcOffset()-this.utcOffset()),t=j(t)){case"year":r=an(this,o)/12;break;case"month":r=an(this,o);break;case"quarter":r=an(this,o)/3;break;case"second":r=(this-o)/1e3;break;case"minute":r=(this-o)/6e4;break;case"hour":r=(this-o)/36e5;break;case"day":r=(this-o-i)/864e5;break;case"week":r=(this-o-i)/6048e5;break;default:r=this-o}return n?r:ue(r)},Rn.endOf=function(e){var t,n;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?bn:gn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=mn-fn(t+(this._isUTC?0:this.utcOffset()*hn),mn)-1;break;case"minute":t=this._d.valueOf(),t+=hn-fn(t,hn)-1;break;case"second":t=this._d.valueOf(),t+=un-fn(t,un)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},Rn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=N(this,e);return this.localeData().postformat(t)},Rn.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||It(e).isValid())?Jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Rn.fromNow=function(e){return this.from(It(),e)},Rn.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||It(e).isValid())?Jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Rn.toNow=function(e){return this.to(It(),e)},Rn.get=function(e){return T(this[e=j(e)])?this[e]():this},Rn.invalidAt=function(){return f(this).overflow},Rn.isAfter=function(e,t){var n=_(e)?e:It(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},Rn.isBefore=function(e,t){var n=_(e)?e:It(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},Rn.isBetween=function(e,t,n,o){var i=_(e)?e:It(e),r=_(t)?t:It(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&("("===(o=o||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===o[1]?this.isBefore(r,n):!this.isAfter(r,n))},Rn.isSame=function(e,t){var n,o=_(e)?e:It(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},Rn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Rn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Rn.isValid=function(){return g(this)},Rn.lang=cn,Rn.locale=ln,Rn.localeData=dn,Rn.max=Nt,Rn.min=Pt,Rn.parsingFlags=function(){return m({},f(this))},Rn.set=function(e,t){if("object"==typeof e){var n,o=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:$[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=Y(e)),i=o.length;for(n=0;n<i;n++)this[o[n].unit](e[o[n].unit])}else if(T(this[e=j(e)]))return this[e](t);return this},Rn.startOf=function(e){var t,n;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?bn:gn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fn(t+(this._isUTC?0:this.utcOffset()*hn),mn);break;case"minute":t=this._d.valueOf(),t-=fn(t,hn);break;case"second":t=this._d.valueOf(),t-=fn(t,un)}return this._d.setTime(t),i.updateOffset(this,!0),this},Rn.subtract=on,Rn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Rn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Rn.toDate=function(){return new Date(this.valueOf())},Rn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?N(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(n,"Z")):N(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Rn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,o="moment",i="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Rn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Rn.toJSON=function(){return this.isValid()?this.toISOString():null},Rn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Rn.unix=function(){return Math.floor(this.valueOf()/1e3)},Rn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Rn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Rn.eraName=function(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].name;if(o[e].until<=n&&n<=o[e].since)return o[e].name}return""},Rn.eraNarrow=function(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].narrow;if(o[e].until<=n&&n<=o[e].since)return o[e].narrow}return""},Rn.eraAbbr=function(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].abbr;if(o[e].until<=n&&n<=o[e].since)return o[e].abbr}return""},Rn.eraYear=function(){var e,t,n,o,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,o=this.clone().startOf("day").valueOf(),r[e].since<=o&&o<=r[e].until||r[e].until<=o&&o<=r[e].since)return(this.year()-i(r[e].since).year())*n+r[e].offset;return this.year()},Rn.year=Re,Rn.isLeapYear=function(){return be(this.year())},Rn.weekYear=function(e){return Cn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Rn.isoWeekYear=function(e){return Cn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Rn.quarter=Rn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Rn.month=Ye,Rn.daysInMonth=function(){return De(this.year(),this.month())},Rn.week=Rn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Rn.isoWeek=Rn.isoWeeks=function(e){var t=Ge(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Rn.weeksInYear=function(){var e=this.localeData()._week;return Ke(this.year(),e.dow,e.doy)},Rn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ke(this.weekYear(),e.dow,e.doy)},Rn.isoWeeksInYear=function(){return Ke(this.year(),1,4)},Rn.isoWeeksInISOWeekYear=function(){return Ke(this.isoWeekYear(),1,4)},Rn.date=Sn,Rn.day=Rn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=Le(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Rn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Rn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Rn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Rn.hour=Rn.hours=at,Rn.minute=Rn.minutes=Mn,Rn.second=Rn.seconds=kn,Rn.millisecond=Rn.milliseconds=xn,Rn.utcOffset=function(e,t,n){var o,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Vt(ie,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=Gt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?tn(this,Jt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Gt(this)},Rn.utc=function(e){return this.utcOffset(0,e)},Rn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Gt(this),"m")),this},Rn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Vt(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Rn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?It(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Rn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Rn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Rn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Rn.isUtc=Kt,Rn.isUTC=Kt,Rn.zoneAbbr=function(){return this._isUTC?"UTC":""},Rn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Rn.dates=M("dates accessor is deprecated. Use date instead.",Sn),Rn.months=M("months accessor is deprecated. Use month instead",Ye),Rn.years=M("years accessor is deprecated. Use year instead",Re),Rn.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),Rn.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=Dt(t))._a?(e=t._isUTC?p(t._a):It(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var o,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(o=0;o<i;o++)(n&&e[o]!==t[o]||!n&&he(e[o])!==he(t[o]))&&s++;return s+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Ln=A.prototype;function On(e,t,n,o){var i=bt(),r=p().set(o,t);return i[n](r,e)}function Dn(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return On(e,t,n,"month");var o,i=[];for(o=0;o<12;o++)i[o]=On(e,o,n,"month");return i}function Hn(e,t,n,o){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var i,r=bt(),s=e?r._week.dow:0,a=[];if(null!=n)return On(t,(n+s)%7,o,"day");for(i=0;i<7;i++)a[i]=On(t,(i+s)%7,o,"day");return a}Ln.calendar=function(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return T(o)?o.call(t,n):o},Ln.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(O).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Ln.invalidDate=function(){return this._invalidDate},Ln.ordinal=function(e){return this._ordinal.replace("%d",e)},Ln.preparse=An,Ln.postformat=An,Ln.relativeTime=function(e,t,n,o){var i=this._relativeTime[n];return T(i)?i(e,t,n,o):i.replace(/%d/i,e)},Ln.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},Ln.set=function(e){var t,n;for(n in e)a(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ln.eras=function(e,t){var n,o,r,s=this._eras||bt("en")._eras;for(n=0,o=s.length;n<o;++n)switch("string"==typeof s[n].since&&(r=i(s[n].since).startOf("day"),s[n].since=r.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":r=i(s[n].until).startOf("day").valueOf(),s[n].until=r.valueOf()}return s},Ln.erasParse=function(e,t,n){var o,i,r,s,a,l=this.eras();for(e=e.toUpperCase(),o=0,i=l.length;o<i;++o)if(r=l[o].name.toUpperCase(),s=l[o].abbr.toUpperCase(),a=l[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[o];break;case"NNNN":if(r===e)return l[o];break;case"NNNNN":if(a===e)return l[o]}else if([r,s,a].indexOf(e)>=0)return l[o]},Ln.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},Ln.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||yn.call(this),e?this._erasAbbrRegex:this._erasRegex},Ln.erasNameRegex=function(e){return a(this,"_erasNameRegex")||yn.call(this),e?this._erasNameRegex:this._erasRegex},Ln.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||yn.call(this),e?this._erasNarrowRegex:this._erasRegex},Ln.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},Ln.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ln.monthsParse=function(e,t,n){var o,i,r;if(this._monthsParseExact)return ze.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(i=p([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},Ln.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||$e.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Ln.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||$e.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Ln.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},Ln.firstDayOfYear=function(){return this._week.doy},Ln.firstDayOfWeek=function(){return this._week.dow},Ln.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?qe(n,this._week.dow):e?n[e.day()]:n},Ln.weekdaysMin=function(e){return!0===e?qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Ln.weekdaysShort=function(e){return!0===e?qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Ln.weekdaysParse=function(e,t,n){var o,i,r;if(this._weekdaysParseExact)return nt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(i=p([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},Ln.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Ln.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=et),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ln.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ln.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Ln.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===he(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=M("moment.lang is deprecated. Use moment.locale instead.",ft),i.langData=M("moment.langData is deprecated. Use moment.localeData instead.",bt);var In=Math.abs;function Pn(e,t,n,o){var i=Jt(t,n);return e._milliseconds+=o*i._milliseconds,e._days+=o*i._days,e._months+=o*i._months,e._bubble()}function Nn(e){return e<0?Math.floor(e):Math.ceil(e)}function Fn(e){return 4800*e/146097}function zn(e){return 146097*e/4800}function jn(e){return function(){return this.as(e)}}var Yn=jn("ms"),$n=jn("s"),Bn=jn("m"),Wn=jn("h"),Vn=jn("d"),Un=jn("w"),Gn=jn("M"),Kn=jn("Q"),qn=jn("y"),Xn=Yn;function Jn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Qn=Jn("milliseconds"),Zn=Jn("seconds"),eo=Jn("minutes"),to=Jn("hours"),no=Jn("days"),oo=Jn("months"),io=Jn("years");var ro=Math.round,so={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ao(e,t,n,o,i){return i.relativeTime(t||1,!!n,e,o)}var lo=Math.abs;function co(e){return(e>0)-(e<0)||+e}function uo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,o,i,r,s,a,l=lo(this._milliseconds)/1e3,c=lo(this._days),d=lo(this._months),u=this.asSeconds();return u?(e=ue(l/60),t=ue(e/60),l%=60,e%=60,n=ue(d/12),d%=12,o=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=u<0?"-":"",r=co(this._months)!==co(u)?"-":"",s=co(this._days)!==co(u)?"-":"",a=co(this._milliseconds)!==co(u)?"-":"",i+"P"+(n?r+n+"Y":"")+(d?r+d+"M":"")+(c?s+c+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+o+"S":"")):"P0D"}var ho=jt.prototype;return ho.isValid=function(){return this._isValid},ho.abs=function(){var e=this._data;return this._milliseconds=In(this._milliseconds),this._days=In(this._days),this._months=In(this._months),e.milliseconds=In(e.milliseconds),e.seconds=In(e.seconds),e.minutes=In(e.minutes),e.hours=In(e.hours),e.months=In(e.months),e.years=In(e.years),this},ho.add=function(e,t){return Pn(this,e,t,1)},ho.subtract=function(e,t){return Pn(this,e,t,-1)},ho.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+o/864e5,n=this._months+Fn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(zn(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},ho.asMilliseconds=Yn,ho.asSeconds=$n,ho.asMinutes=Bn,ho.asHours=Wn,ho.asDays=Vn,ho.asWeeks=Un,ho.asMonths=Gn,ho.asQuarters=Kn,ho.asYears=qn,ho.valueOf=Xn,ho._bubble=function(){var e,t,n,o,i,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*Nn(zn(a)+s),s=0,a=0),l.milliseconds=r%1e3,e=ue(r/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,n=ue(t/60),l.hours=n%24,s+=ue(n/24),a+=i=ue(Fn(s)),s-=Nn(zn(i)),o=ue(a/12),a%=12,l.days=s,l.months=a,l.years=o,this},ho.clone=function(){return Jt(this)},ho.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},ho.milliseconds=Qn,ho.seconds=Zn,ho.minutes=eo,ho.hours=to,ho.days=no,ho.weeks=function(){return ue(this.days()/7)},ho.months=oo,ho.years=io,ho.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,o,i=!1,r=so;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(r=Object.assign({},so,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),o=function(e,t,n,o){var i=Jt(e).abs(),r=ro(i.as("s")),s=ro(i.as("m")),a=ro(i.as("h")),l=ro(i.as("d")),c=ro(i.as("M")),d=ro(i.as("w")),u=ro(i.as("y")),h=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||u<=1&&["y"]||["yy",u])[2]=t,h[3]=+e>0,h[4]=o,ao.apply(null,h)}(this,!i,r,n=this.localeData()),i&&(o=n.pastFuture(+this,o)),n.postformat(o)},ho.toISOString=uo,ho.toString=uo,ho.toJSON=uo,ho.locale=ln,ho.localeData=dn,ho.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uo),ho.lang=cn,P("X",0,0,"unix"),P("x",0,0,"valueOf"),le("x",ne),le("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),pe("x",(function(e,t,n){n._d=new Date(he(e))})),i.version="2.30.1",t=It,i.fn=Rn,i.min=function(){return Ft("isBefore",[].slice.call(arguments,0))},i.max=function(){return Ft("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(e){return It(1e3*e)},i.months=function(e,t){return Dn(e,t,"months")},i.isDate=u,i.locale=ft,i.invalid=b,i.duration=Jt,i.isMoment=_,i.weekdays=function(e,t,n){return Hn(e,t,n,"weekdays")},i.parseZone=function(){return It.apply(null,arguments).parseZone()},i.localeData=bt,i.isDuration=Yt,i.monthsShort=function(e,t){return Dn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return Hn(e,t,n,"weekdaysMin")},i.defineLocale=gt,i.updateLocale=function(e,t){if(null!=t){var n,o,i=ct;null!=dt[e]&&null!=dt[e].parentLocale?dt[e].set(R(dt[e]._config,t)):(null!=(o=pt(e))&&(i=o._config),t=R(i,t),null==o&&(t.abbr=e),(n=new A(t)).parentLocale=dt[e],dt[e]=n),ft(e)}else null!=dt[e]&&(null!=dt[e].parentLocale?(dt[e]=dt[e].parentLocale,e===ft()&&ft(e)):null!=dt[e]&&delete dt[e]);return dt[e]},i.locales=function(){return E(dt)},i.weekdaysShort=function(e,t,n){return Hn(e,t,n,"weekdaysShort")},i.normalizeUnits=j,i.relativeTimeRounding=function(e){return void 0===e?ro:"function"==typeof e&&(ro=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==so[e]&&(void 0===t?so[e]:(so[e]=t,"s"===e&&(so.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=Rn,i.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"},i}()},95239:(e,t,n)=>{"use strict";n.d(t,{t:()=>f}),n(16280);var o=n(32564),i=n(28061),r=n(58002),s=n(20091),a=n(71409),l=n(83023),c=n(65615);function d(e,t){const n=(0,s.JC)(t),o=t.value.split("\n");let i=n,r=0;for(let t=0;t<o.length;t++){const s=o[t];0!==t&&(r+=o[t-1].length+1);const a=r+s.length;if("home"===e?i=r:"end"===e&&(i=a),n<=a)break}(0,s.vZ)(t,i)}var u=n(66422);function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m="ht_editor_hidden",p="textEditor";class f extends o.b7{static get EDITOR_TYPE(){return"text"}constructor(e){super(e),h(this,"eventManager",new i.A(this)),h(this,"autoResize",(0,l.j)(this.hot.rootDocument)),h(this,"TEXTAREA",void 0),h(this,"textareaStyle",void 0),h(this,"TEXTAREA_PARENT",void 0),h(this,"textareaParentStyle",void 0),h(this,"layerClass",void 0),this.eventManager=new i.A(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",(()=>this.destroy()))}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e}open(){this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this.autoResize.unObserve(),(0,s.yq)(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,n,i,r,s){const a=this.state;if(super.prepare(e,t,n,i,r,s),!s.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=s;e&&!this.isOpened()&&(this.TEXTAREA.value=""),a===o._T.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===o._T.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),(0,s.vZ)(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){const{rootDocument:e}=this.hot;this.TEXTAREA=e.createElement("TEXTAREA"),(0,s.Bq)(this.TEXTAREA,[["data-hot-input",""],(0,u.vC)(-1)]),(0,s.iQ)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),(0,s.iQ)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,s.nB)(this.TEXTAREA_PARENT,this.layerClass)&&(0,s.vy)(this.TEXTAREA_PARENT,this.layerClass),(0,s.iQ)(this.TEXTAREA_PARENT,m),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){(0,r.UP)()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,s.vy)(this.TEXTAREA_PARENT,this.layerClass),(0,s.iQ)(this.TEXTAREA_PARENT,m)}showEditableElement(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="";const e=this.TEXTAREA_PARENT.childNodes;let t=!1;(0,a.Ti)(e.length-1,(n=>{const o=e[n];if((0,s.nB)(o,"handsontableEditor"))return t=!0,!1})),(0,s.nB)(this.TEXTAREA_PARENT,m)&&(0,s.vy)(this.TEXTAREA_PARENT,m),t?(this.layerClass="ht_editor_visible",(0,s.iQ)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,s.iQ)(this.TEXTAREA_PARENT,this.layerClass))}refreshValue(){const e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}refreshDimensions(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state!==o._T.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD)return void(e||this.close());const{top:t,start:n,width:i,maxWidth:r,height:s,maxHeight:a}=this.getEditedCellRect();this.textareaParentStyle.top=`${t}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${n}px`,this.showEditableElement();const l=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=l.fontSize,this.TEXTAREA.style.fontFamily=l.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(i,r),minHeight:Math.min(s,a),maxWidth:r,maxHeight:a},!0)}bindEvents(){(0,r.un)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",(()=>this.finishEditing(!1))),this.addHook("afterScrollHorizontally",(()=>this.refreshDimensions())),this.addHook("afterScrollVertically",(()=>this.refreshDimensions())),this.addHook("afterColumnResize",(()=>{this.refreshDimensions(),this.state===o._T.EDITING&&this.focus()})),this.addHook("afterRowResize",(()=>{this.refreshDimensions(),this.state===o._T.EDITING&&this.focus()}))}allowKeyEventPropagation(){}destroy(){this.eventManager.destroy(),this.clearHooks()}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={runOnlyIf:()=>(0,c.O9)(this.hot.getSelected()),group:p},n=()=>{this.hot.rootDocument.execCommand("insertText",!1,"\n")};e.addShortcuts([{keys:[["Control","Enter"]],callback:()=>(n(),!1),runOnlyIf:e=>!this.hot.selection.isMultiple()&&!e.altKey},{keys:[["Meta","Enter"]],callback:()=>(n(),!1),runOnlyIf:()=>!this.hot.selection.isMultiple()},{keys:[["Alt","Enter"]],callback:()=>(n(),!1)},{keys:[["Home"]],callback:(e,t)=>{let[n]=t;d(n,this.TEXTAREA)}},{keys:[["End"]],callback:(e,t)=>{let[n]=t;d(n,this.TEXTAREA)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(p)}}},95533:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},95995:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},96069:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},96319:(e,t,n)=>{"use strict";var o=n(28551),i=n(9539);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},96369:(e,t,n)=>{"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,{A:()=>o})},96395:e=>{"use strict";e.exports=!1},96801:(e,t,n)=>{"use strict";var o=n(43724),i=n(48686),r=n(24913),s=n(28551),a=n(25397),l=n(71072);t.f=o&&!i?Object.defineProperties:function(e,t){s(e);for(var n,o=a(t),i=l(t),c=i.length,d=0;c>d;)r.f(e,n=i[d++],o[n]);return e}},96837:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},96870:function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(95093))},97040:(e,t,n)=>{"use strict";var o=n(43724),i=n(24913),r=n(6980);e.exports=function(e,t,n){o?i.f(e,t,r(0,n)):e[t]=n}},97080:(e,t,n)=>{"use strict";var o=n(94402).has;e.exports=function(e){return o(e),e}},97650:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),o=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(95093))},97711:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(95093))},97751:(e,t,n)=>{"use strict";var o=n(44576),i=n(94901);e.exports=function(e,t){return arguments.length<2?(n=o[e],i(n)?n:void 0):o[e]&&o[e][t];var n}},97825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,i&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},98119:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,X:()=>r});var o=n(96540);const i=o.createContext(!1),r=({children:e,disabled:t})=>{const n=o.useContext(i);return o.createElement(i.Provider,{value:null!=t?t:n},e)},s=i},98174:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},o=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:o,monthsShort:o,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},98992:(e,t,n)=>{"use strict";n(18111)},99053:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(95093))},99374:(e,t,n)=>{var o=n(54128),i=n(23805),r=n(44394),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=a.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}}}]);