(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(e,t,n){var r=n("b622"),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},"010e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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}});return t}))},"02fb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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?"വൈകുന്നേരം":"രാത്രി"}});return t}))},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"03ec":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+t},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}});return t}))},"0481":function(e,t,n){"use strict";var r=n("23e7"),o=n("a2bf"),i=n("7b0b"),a=n("50c4"),s=n("a691"),u=n("65f0");r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=a(t.length),r=u(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:s(e)),r}})},"0538":function(e,t,n){"use strict";var r=n("1c0b"),o=n("861d"),i=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:"top center 0",n=arguments.length>2?arguments[2]:void 0;return{name:e,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:n},origin:{type:String,default:t}},render:function(t,n){var i="transition".concat(n.props.group?"-group":""),a={props:{name:e,mode:n.props.mode},on:{beforeEnter:function(e){e.style.transformOrigin=n.props.origin,e.style.webkitTransformOrigin=n.props.origin}}};return n.props.leaveAbsolute&&(a.on.leave=o(a.on.leave,(function(e){return e.style.position="absolute"}))),n.props.hideOnLeave&&(a.on.leave=o(a.on.leave,(function(e){return e.style.display="none"}))),t(i,Object(r["a"])(n.data,a),n.children)}}}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in-out";return{name:e,functional:!0,props:{mode:{type:String,default:n}},render:function(n,o){return n("transition",Object(r["a"])(o.data,{props:{name:e},on:t}),o.children)}}}var s=n("ade3"),u=n("80d2"),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?"width":"height",r="offset".concat(Object(u["s"])(n));return{beforeEnter:function(e){e._parent=e.parentNode,e._initialStyle=Object(s["a"])({transition:e.style.transition,overflow:e.style.overflow},n,e.style[n])},enter:function(t){var o=t._initialStyle;t.style.setProperty("transition","none","important"),t.style.overflow="hidden";var i="".concat(t[r],"px");t.style[n]="0",t.offsetHeight,t.style.transition=o.transition,e&&t._parent&&t._parent.classList.add(e),requestAnimationFrame((function(){t.style[n]=i}))},afterEnter:i,enterCancelled:i,leave:function(e){e._initialStyle=Object(s["a"])({transition:"",overflow:e.style.overflow},n,e.style[n]),e.style.overflow="hidden",e.style[n]="".concat(e[r],"px"),e.offsetHeight,requestAnimationFrame((function(){return e.style[n]="0"}))},afterLeave:o,leaveCancelled:o};function o(t){e&&t._parent&&t._parent.classList.remove(e),i(t)}function i(e){var t=e._initialStyle[n];e.style.overflow=e._initialStyle.overflow,null!=t&&(e.style[n]=t),delete e._initialStyle}},c=(i("carousel-transition"),i("carousel-reverse-transition"),i("tab-transition"),i("tab-reverse-transition"),i("menu-transition"),i("fab-transition","center center","out-in"),i("dialog-transition"),i("dialog-bottom-transition"),i("dialog-top-transition"),i("fade-transition")),f=(i("scale-transition"),i("scroll-x-transition"),i("scroll-x-reverse-transition"),i("scroll-y-transition"),i("scroll-y-reverse-transition"),i("slide-x-transition")),h=(i("slide-x-reverse-transition"),i("slide-y-transition"),i("slide-y-reverse-transition"),a("expand-transition",l()));a("expand-x-transition",l("",!0))},"079e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=e.defineLocale("ja",{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/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()12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}});return n}))},"0cb2":function(e,t,n){var r=n("7b0b"),o=Math.floor,i="".replace,a=/\$([$&'`]|\d\d?|<[^>]*>)/g,s=/\$([$&'`]|\d\d?)/g;e.exports=function(e,t,n,u,l,c){var f=n+e.length,h=u.length,d=s;return void 0!==l&&(l=r(l),d=a),i.call(c,d,(function(r,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":a=l[i.slice(1,-1)];break;default:var s=+i;if(0===s)return r;if(s>h){var c=o(s/10);return 0===c?r:c<=h?void 0===u[c-1]?i.charAt(1):u[c-1]+i.charAt(1):r}a=u[s-1]}return void 0===a?"":a}))}},"0ccb":function(e,t,n){var r=n("50c4"),o=n("1148"),i=n("1d80"),a=Math.ceil,s=function(e){return function(t,n,s){var u,l,c=String(i(t)),f=c.length,h=void 0===s?" ":String(s),d=r(n);return d<=f||""==h?c:(u=d-f,l=o.call(h,a(u/h.length)),l.length>u&&(l=l.slice(0,u)),e?c+l:l+c)}};e.exports={start:s(!1),end:s(!0)}},"0cfb":function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("cc12");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e49":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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}});return t}))},"0e6b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},"0e81":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(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ı"},n=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_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".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 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",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 r=e%10,o=e%100-r,i=e>=100?100:null;return e+(t[r]||t[o]||t[i])}},week:{dow:1,doy:7}});return n}))},"0f14":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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}});return t}))},"0f38":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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}});return t}))},"0fd9":function(e,t,n){"use strict";n("99af"),n("4160"),n("caad"),n("13d5"),n("4ec9"),n("b64b"),n("d3b7"),n("ac1f"),n("2532"),n("3ca3"),n("5319"),n("159b"),n("ddb0");var r=n("ade3"),o=n("5530"),i=(n("4b85"),n("2b0e")),a=n("d9f7"),s=n("80d2"),u=["sm","md","lg","xl"],l=["start","end","center"];function c(e,t){return u.reduce((function(n,r){return n[e+Object(s["s"])(r)]=t(),n}),{})}var f=function(e){return[].concat(l,["baseline","stretch"]).includes(e)},h=c("align",(function(){return{type:String,default:null,validator:f}})),d=function(e){return[].concat(l,["space-between","space-around"]).includes(e)},p=c("justify",(function(){return{type:String,default:null,validator:d}})),m=function(e){return[].concat(l,["space-between","space-around","stretch"]).includes(e)},y=c("alignContent",(function(){return{type:String,default:null,validator:m}})),v={align:Object.keys(h),justify:Object.keys(p),alignContent:Object.keys(y)},g={align:"align",justify:"justify",alignContent:"align-content"};function b(e,t,n){var r=g[e];if(null!=n){if(t){var o=t.replace(e,"");r+="-".concat(o)}return r+="-".concat(n),r.toLowerCase()}}var w=new Map;t["a"]=i["a"].extend({name:"v-row",functional:!0,props:Object(o["a"])(Object(o["a"])(Object(o["a"])({tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:f}},h),{},{justify:{type:String,default:null,validator:d}},p),{},{alignContent:{type:String,default:null,validator:m}},y),render:function(e,t){var n=t.props,o=t.data,i=t.children,s="";for(var u in n)s+=String(n[u]);var l=w.get(s);return l||function(){var e,t;for(t in l=[],v)v[t].forEach((function(e){var r=n[e],o=b(t,e,r);o&&l.push(o)}));l.push((e={"no-gutters":n.noGutters,"row--dense":n.dense},Object(r["a"])(e,"align-".concat(n.align),n.align),Object(r["a"])(e,"justify-".concat(n.justify),n.justify),Object(r["a"])(e,"align-content-".concat(n.alignContent),n.alignContent),e)),w.set(s,l)}(),e(n.tag,Object(a["a"])(o,{staticClass:"row",class:l}),i)}})},"0ff2":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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}});return t}))},"10d1":function(e,t,n){"use strict";var r,o=n("da84"),i=n("e2cc"),a=n("f183"),s=n("6d61"),u=n("acac"),l=n("861d"),c=n("69f3").enforce,f=n("7f9a"),h=!o.ActiveXObject&&"ActiveXObject"in o,d=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=e.exports=s("WeakMap",p,u);if(f&&h){r=u.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var y=m.prototype,v=y["delete"],g=y.has,b=y.get,w=y.set;i(y,{delete:function(e){if(l(e)&&!d(e)){var t=c(this);return t.frozen||(t.frozen=new r),v.call(this,e)||t.frozen["delete"](e)}return v.call(this,e)},has:function(e){if(l(e)&&!d(e)){var t=c(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen.has(e)}return g.call(this,e)},get:function(e){if(l(e)&&!d(e)){var t=c(this);return t.frozen||(t.frozen=new r),g.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(l(e)&&!d(e)){var n=c(this);n.frozen||(n.frozen=new r),g.call(this,e)?w.call(this,e,t):n.frozen.set(e,t)}else w.call(this,e,t);return this}})}},"10d2":function(e,t,n){"use strict";var r=n("8dd9");t["a"]=r["a"]},"10e8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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 วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},1148:function(e,t,n){"use strict";var r=n("a691"),o=n("1d80");e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},1276:function(e,t,n){"use strict";var r=n("d784"),o=n("44e7"),i=n("825a"),a=n("1d80"),s=n("4840"),u=n("8aa5"),l=n("50c4"),c=n("14c3"),f=n("9263"),h=n("d039"),d=[].push,p=Math.min,m=4294967295,y=!h((function(){return!RegExp(m,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=void 0===n?m:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);var s,u,l,c=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,y=new RegExp(e.source,h+"g");while(s=f.call(y,r)){if(u=y.lastIndex,u>p&&(c.push(r.slice(p,s.index)),s.length>1&&s.index=i))break;y.lastIndex===s.index&&y.lastIndex++}return p===r.length?!l&&y.test("")||c.push(""):c.push(r.slice(p)),c.length>i?c.slice(0,i):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var f=i(e),h=String(this),d=s(f,RegExp),v=f.unicode,g=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(y?"y":"g"),b=new d(y?f:"^(?:"+f.source+")",g),w=void 0===o?m:o>>>0;if(0===w)return[];if(0===h.length)return null===c(b,h)?[h]:[];var _=0,S=0,C=[];while(S4}(function(e){e["xSmall"]="12px",e["small"]="16px",e["default"]="24px",e["medium"]="28px",e["large"]="36px",e["xLarge"]="40px"})(r||(r={}));var p=Object(f["a"])(i["a"],a["a"],s["a"],u["a"]).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium:function(){return!1},hasClickListener:function(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon:function(){var e="";return this.$slots.default&&(e=this.$slots.default[0].text.trim()),Object(l["r"])(this,e)},getSize:function(){var e={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},t=Object(l["o"])(e).find((function(t){return e[t]}));return t&&r[t]||Object(l["f"])(this.size)},getDefaultData:function(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:Object(o["a"])({"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0},this.attrs$),on:this.listeners$}},getSvgWrapperData:function(){var e=this.getSize(),t=Object(o["a"])(Object(o["a"])({},this.getDefaultData()),{},{style:e?{fontSize:e,height:e,width:e}:void 0});return this.applyColors(t),t},applyColors:function(e){e.class=Object(o["a"])(Object(o["a"])({},e.class),this.themeClasses),this.setTextColor(this.color,e)},renderFontIcon:function(e,t){var n=[],r=this.getDefaultData(),o="material-icons",i=e.indexOf("-"),a=i<=-1;a?n.push(e):(o=e.slice(0,i),h(o)&&(o="")),r.class[o]=!0,r.class[e]=!a;var s=this.getSize();return s&&(r.style={fontSize:s}),this.applyColors(r),t(this.hasClickListener?"button":this.tag,r,n)},renderSvgIcon:function(e,t){var n={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},r=this.getSize();return r&&(n.style={fontSize:r,height:r,width:r}),t(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[t("svg",n,[t("path",{attrs:{d:e}})])])},renderSvgIconComponent:function(e,t){var n={class:{"v-icon__component":!0}},r=this.getSize();r&&(n.style={fontSize:r,height:r,width:r}),this.applyColors(n);var o=e.component;return n.props=e.props,n.nativeOn=n.on,t(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[t(o,n)])}},render:function(e){var t=this.getIcon();return"string"===typeof t?d(t)?this.renderSvgIcon(t,e):this.renderFontIcon(t,e):this.renderSvgIconComponent(t,e)}});t["a"]=c["a"].extend({name:"v-icon",$_wrapperFor:p,functional:!0,render:function(e,t){var n=t.data,r=t.children,o="";return n.domProps&&(o=n.domProps.textContent||n.domProps.innerHTML||o,delete n.domProps.textContent,delete n.domProps.innerHTML),e(p,n,o?[o]:r)}})},"13d5":function(e,t,n){"use strict";var r=n("23e7"),o=n("d58f").left,i=n("a640"),a=n("ae40"),s=n("2d00"),u=n("605d"),l=i("reduce"),c=a("reduce",{1:0}),f=!u&&s>79&&s<83;r({target:"Array",proto:!0,forced:!l||!c||f},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"13e9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}},n=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:"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",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(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[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:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"14c3":function(e,t,n){var r=n("c6b6"),o=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var i=n.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"14e6":function(e,t,n){ /*! * Pikaday * * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday */ (function(t,r){"use strict";var o;try{o=n("c1df")}catch(i){}e.exports=r(o)})(0,(function(e){"use strict";var t="function"===typeof e,n=!!window.addEventListener,r=window.document,o=window.setTimeout,i=function(e,t,r,o){n?e.addEventListener(t,r,!!o):e.attachEvent("on"+t,r)},a=function(e,t,r,o){n?e.removeEventListener(t,r,!!o):e.detachEvent("on"+t,r)},s=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},u=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},l=function(e,t){u(e,t)||(e.className=""===e.className?t:e.className+" "+t)},c=function(e,t){e.className=s((" "+e.className+" ").replace(" "+t+" "," "))},f=function(e){return/Array/.test(Object.prototype.toString.call(e))},h=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},d=function(e){var t=e.getDay();return 0===t||6===t},p=function(e){return e%4===0&&e%100!==0||e%400===0},m=function(e,t){return[31,p(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},y=function(e){h(e)&&e.setHours(0,0,0,0)},v=function(e,t){return e.getTime()===t.getTime()},g=function(e,t,n){var r,o;for(r in t)o=void 0!==e[r],o&&"object"===typeof t[r]&&null!==t[r]&&void 0===t[r].nodeName?h(t[r])?n&&(e[r]=new Date(t[r].getTime())):f(t[r])?n&&(e[r]=t[r].slice(0)):e[r]=g({},t[r],n):!n&&o||(e[r]=t[r]);return e},b=function(e,t,n){var o;r.createEvent?(o=r.createEvent("HTMLEvents"),o.initEvent(t,!0,!1),o=g(o,n),e.dispatchEvent(o)):r.createEventObject&&(o=r.createEventObject(),o=g(o,n),e.fireEvent("on"+t,o))},w=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},_={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,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},S=function(e,t,n){t+=e.firstDay;while(t>=7)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},C=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'';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"),'"},k=function(e,t,n){var r=new Date(n,0,1),o=Math.ceil(((new Date(n,t,e)-r)/864e5+r.getDay()+1)/7);return''+o+""},M=function(e,t,n,r){return''+(t?e.reverse():e).join("")+""},O=function(e){return""+e.join("")+""},R=function(e){var t,n=[];for(e.showWeekNumber&&n.push(""),t=0;t<7;t++)n.push(''+S(e,t,!0)+"");return""+(e.isRTL?n.reverse():n).join("")+""},T=function(e,t,n,r,o,i){var a,s,u,l,c,h=e._o,d=n===h.minYear,p=n===h.maxYear,m='
',y=!0,v=!0;for(u=[],a=0;a<12;a++)u.push('");for(l='
'+h.i18n.months[r]+'
",f(h.yearRange)?(a=h.yearRange[0],s=h.yearRange[1]+1):(a=n-h.yearRange,s=1+n+h.yearRange),u=[];a=h.minYear&&u.push('");return c='
'+n+h.yearSuffix+'
",h.showMonthAfterYear?m+=c+l:m+=l+c,d&&(0===r||h.minMonth>=r)&&(y=!1),p&&(11===r||h.maxMonth<=r)&&(v=!1),0===t&&(m+='"),t===e._o.numberOfMonths-1&&(m+='"),m+"
"},E=function(e,t,n){return''+R(e)+O(t)+"
"},L=function(a){var s=this,l=s.config(a);s._onMouseDown=function(e){if(s._v){e=e||window.event;var t=e.target||e.srcElement;if(t)if(u(t,"is-disabled")||(!u(t,"pika-button")||u(t,"is-empty")||u(t.parentNode,"is-disabled")?u(t,"pika-prev")?s.prevMonth():u(t,"pika-next")&&s.nextMonth():(s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),l.bound&&o((function(){s.hide(),l.blurFieldOnSelect&&l.field&&l.field.blur()}),100))),u(t,"pika-select"))s._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},s._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(u(t,"pika-select-month")?s.gotoMonth(t.value):u(t,"pika-select-year")&&s.gotoYear(t.value))},s._onKeyChange=function(e){if(e=e||window.event,s.isVisible())switch(e.keyCode){case 13:case 27:l.field&&l.field.blur();break;case 37:e.preventDefault(),s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7);break}},s._onInputChange=function(n){var r;n.firedBy!==s&&(l.parse?r=l.parse(l.field.value,l.format):t?(r=e(l.field.value,l.format,l.formatStrict),r=r&&r.isValid()?r.toDate():null):r=new Date(Date.parse(l.field.value)),h(r)&&s.setDate(r),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var e=r.activeElement;do{if(u(e,"pika-single"))return}while(e=e.parentNode);s._c||(s._b=o((function(){s.hide()}),50)),s._c=!1},s._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,r=t;if(t){!n&&u(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),i(t,"change",s._onChange)));do{if(u(r,"pika-single")||r===l.trigger)return}while(r=r.parentNode);s._v&&t!==l.trigger&&r!==l.trigger&&s.hide()}},s.el=r.createElement("div"),s.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),i(s.el,"mousedown",s._onMouseDown,!0),i(s.el,"touchend",s._onMouseDown,!0),i(s.el,"change",s._onChange),l.keyboardInput&&i(r,"keydown",s._onKeyChange),l.field&&(l.container?l.container.appendChild(s.el):l.bound?r.body.appendChild(s.el):l.field.parentNode.insertBefore(s.el,l.field.nextSibling),i(l.field,"change",s._onInputChange),l.defaultDate||(t&&l.field.value?l.defaultDate=e(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;h(c)?l.setDefaultDate?s.setDate(c,!0):s.gotoDate(c):s.gotoDate(new Date),l.bound?(this.hide(),s.el.className+=" is-bound",i(l.trigger,"click",s._onInputClick),i(l.trigger,"focus",s._onInputFocus),i(l.trigger,"blur",s._onInputBlur)):this.show()};return L.prototype={config:function(e){this._o||(this._o=g({},_,!0));var t=g(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;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,h(t.minDate)||(t.minDate=!1),h(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate100&&(t.yearRange=100);return t},toString:function(n){return n=n||this._o.format,h(this._d)?this._o.toString?this._o.toString(this._d,n):t?e(this._d).format(n):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,r){t&&e.isMoment(n)&&this.setDate(n.toDate(),r)},getDate:function(){return h(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="",b(this._o.field,"change",{firedBy:this})),this.draw();if("string"===typeof e&&(e=new Date(Date.parse(e))),h(e)){var n=this._o.minDate,r=this._o.maxDate;h(n)&&er&&(e=r),this._d=new Date(e.getTime()),y(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),b(this._o.field,"change",{firedBy:this})),t||"function"!==typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(h(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1),t=o=i&&(this._y=i,!isNaN(s)&&this._m>s&&(this._m=s)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l'+T(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,t)+this.render(this.calendars[l].year,this.calendars[l].month,t)+"";this.el.innerHTML=u,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(){var e,t,n,o,i,a,s,u,f,h,d,p;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,n=this.el.offsetWidth,o=this.el.offsetHeight,i=window.innerWidth||r.documentElement.clientWidth,a=window.innerHeight||r.documentElement.clientHeight,s=window.pageYOffset||r.body.scrollTop||r.documentElement.scrollTop,d=!0,p=!0,"function"===typeof e.getBoundingClientRect)h=e.getBoundingClientRect(),u=h.left+window.pageXOffset,f=h.bottom+window.pageYOffset;else{u=t.offsetLeft,f=t.offsetTop+t.offsetHeight;while(t=t.offsetParent)u+=t.offsetLeft,f+=t.offsetTop}(this._o.reposition&&u+n>i||this._o.position.indexOf("right")>-1&&u-n+e.offsetWidth>0)&&(u=u-n+e.offsetWidth,d=!1),(this._o.reposition&&f+o>a+s||this._o.position.indexOf("top")>-1&&f-o-e.offsetHeight>0)&&(f=f-o-e.offsetHeight,p=!1),this.el.style.left=u+"px",this.el.style.top=f+"px",l(this.el,d?"left-aligned":"right-aligned"),l(this.el,p?"bottom-aligned":"top-aligned"),c(this.el,d?"right-aligned":"left-aligned"),c(this.el,p?"top-aligned":"bottom-aligned")}},render:function(e,t,n){var r=this._o,o=new Date,i=m(e,t),a=new Date(e,t,1).getDay(),s=[],u=[];y(o),r.firstDay>0&&(a-=r.firstDay,a<0&&(a+=7));var l=0===t?11:t-1,c=11===t?0:t+1,f=0===t?e-1:e,p=11===t?e+1:e,g=m(f,l),b=i+a,w=b;while(w>7)w-=7;b+=7-w;for(var _=!1,S=0,O=0;S=i+a,x=S-a+1,D=t,N=e,H=r.startRange&&v(r.startRange,R),P=r.endRange&&v(r.endRange,R),j=r.startRange&&r.endRange&&r.startRanger.maxDate||r.disableWeekends&&d(R)||r.disableDayFn&&r.disableDayFn(R);I&&(S=0||(o[n]=e[n]);return o}function o(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},"166a":function(e,t,n){},1699:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"to2dArray",(function(){return I})),n.d(r,"extendArray",(function(){return x})),n.d(r,"pivot",(function(){return D})),n.d(r,"arrayReduce",(function(){return N})),n.d(r,"arrayFilter",(function(){return H})),n.d(r,"arrayMap",(function(){return P})),n.d(r,"arrayEach",(function(){return j})),n.d(r,"arraySum",(function(){return Y})),n.d(r,"arrayMax",(function(){return B})),n.d(r,"arrayMin",(function(){return F})),n.d(r,"arrayAvg",(function(){return V})),n.d(r,"arrayFlatten",(function(){return W})),n.d(r,"arrayUnique",(function(){return U})),n.d(r,"getDifferenceOfArrays",(function(){return z})),n.d(r,"getIntersectionOfArrays",(function(){return G})),n.d(r,"getUnionOfArrays",(function(){return X})),n.d(r,"stringToArray",(function(){return Z}));var o={};n.r(o),n.d(o,"duckSchema",(function(){return Q})),n.d(o,"inherit",(function(){return K})),n.d(o,"extend",(function(){return q})),n.d(o,"deepExtend",(function(){return ee})),n.d(o,"deepClone",(function(){return te})),n.d(o,"clone",(function(){return ne})),n.d(o,"mixin",(function(){return re})),n.d(o,"isObjectEqual",(function(){return oe})),n.d(o,"isObject",(function(){return ie})),n.d(o,"defineGetter",(function(){return ae})),n.d(o,"objectEach",(function(){return se})),n.d(o,"getProperty",(function(){return ue})),n.d(o,"setProperty",(function(){return le})),n.d(o,"deepObjectSize",(function(){return ce})),n.d(o,"createObjectPropListener",(function(){return fe})),n.d(o,"hasOwnProperty",(function(){return he}));var i={};n.r(i),n.d(i,"stringify",(function(){return Me})),n.d(i,"isDefined",(function(){return Oe})),n.d(i,"isUndefined",(function(){return Re})),n.d(i,"isEmpty",(function(){return Te})),n.d(i,"isRegExp",(function(){return Ee})),n.d(i,"_injectProductInfo",(function(){return Fe}));var a={};n.r(a),n.d(a,"toUpperCaseFirst",(function(){return We})),n.d(a,"equalsIgnoreCase",(function(){return Ue})),n.d(a,"randomString",(function(){return ze})),n.d(a,"isPercentValue",(function(){return Ge})),n.d(a,"substitute",(function(){return Xe})),n.d(a,"stripTags",(function(){return Ze})),n.d(a,"sanitize",(function(){return Je}));var s={};n.r(s),n.d(s,"requestAnimationFrame",(function(){return en})),n.d(s,"isClassListSupported",(function(){return tn})),n.d(s,"isTextContentSupported",(function(){return nn})),n.d(s,"isGetComputedStyleSupported",(function(){return rn})),n.d(s,"cancelAnimationFrame",(function(){return on})),n.d(s,"isTouchSupported",(function(){return an})),n.d(s,"hasCaptionProblem",(function(){return un})),n.d(s,"getComparisonFunction",(function(){return ln})),n.d(s,"isPassiveEventSupported",(function(){return cn}));var u={};n.r(u),n.d(u,"setBrowserMeta",(function(){return vn})),n.d(u,"setPlatformMeta",(function(){return gn})),n.d(u,"isChrome",(function(){return bn})),n.d(u,"isEdge",(function(){return wn})),n.d(u,"isIE",(function(){return _n})),n.d(u,"isIE9",(function(){return Sn})),n.d(u,"isMSBrowser",(function(){return Cn})),n.d(u,"isMobileBrowser",(function(){return kn})),n.d(u,"isSafari",(function(){return Mn})),n.d(u,"isFirefox",(function(){return On})),n.d(u,"isWindowsOS",(function(){return Rn})),n.d(u,"isMacOS",(function(){return Tn})),n.d(u,"isLinuxOS",(function(){return En}));var l={};n.r(l),n.d(l,"getParent",(function(){return Hn})),n.d(l,"getFrameElement",(function(){return Pn})),n.d(l,"getParentWindow",(function(){return jn})),n.d(l,"hasAccessToParentWindow",(function(){return Yn})),n.d(l,"closest",(function(){return Bn})),n.d(l,"closestDown",(function(){return Fn})),n.d(l,"isChildOf",(function(){return Vn})),n.d(l,"index",(function(){return Wn})),n.d(l,"overlayContainsElement",(function(){return Un})),n.d(l,"hasClass",(function(){return Zn})),n.d(l,"addClass",(function(){return Jn})),n.d(l,"removeClass",(function(){return $n})),n.d(l,"removeTextNodes",(function(){return Qn})),n.d(l,"empty",(function(){return Kn})),n.d(l,"HTML_CHARACTERS",(function(){return er})),n.d(l,"fastInnerHTML",(function(){return tr})),n.d(l,"fastInnerText",(function(){return nr})),n.d(l,"isVisible",(function(){return rr})),n.d(l,"offset",(function(){return or})),n.d(l,"getWindowScrollTop",(function(){return ir})),n.d(l,"getWindowScrollLeft",(function(){return ar})),n.d(l,"getScrollTop",(function(){return sr})),n.d(l,"getScrollLeft",(function(){return ur})),n.d(l,"getScrollableElement",(function(){return lr})),n.d(l,"getTrimmingContainer",(function(){return cr})),n.d(l,"getStyle",(function(){return fr})),n.d(l,"matchesCSSRules",(function(){return hr})),n.d(l,"getComputedStyle",(function(){return dr})),n.d(l,"outerWidth",(function(){return pr})),n.d(l,"outerHeight",(function(){return mr})),n.d(l,"innerHeight",(function(){return yr})),n.d(l,"innerWidth",(function(){return vr})),n.d(l,"addEvent",(function(){return gr})),n.d(l,"removeEvent",(function(){return br})),n.d(l,"getCaretPosition",(function(){return wr})),n.d(l,"getSelectionEndPosition",(function(){return _r})),n.d(l,"getSelectionText",(function(){return Sr})),n.d(l,"clearTextSelection",(function(){return Cr})),n.d(l,"setCaretPosition",(function(){return kr})),n.d(l,"getScrollbarWidth",(function(){return Or})),n.d(l,"hasVerticalScrollbar",(function(){return Rr})),n.d(l,"hasHorizontalScrollbar",(function(){return Tr})),n.d(l,"setOverlayPosition",(function(){return Er})),n.d(l,"getCssTransform",(function(){return Lr})),n.d(l,"resetCssTransform",(function(){return Ar})),n.d(l,"isInput",(function(){return Ir})),n.d(l,"isOutsideInput",(function(){return xr})),n.d(l,"selectElementIfAllowed",(function(){return Dr})),n.d(l,"isDetached",(function(){return Nr}));var c={};n.r(c),n.d(c,"isFunction",(function(){return Hr})),n.d(c,"throttle",(function(){return Pr})),n.d(c,"throttleAfterHits",(function(){return jr})),n.d(c,"debounce",(function(){return Yr})),n.d(c,"pipe",(function(){return Br})),n.d(c,"partial",(function(){return Fr})),n.d(c,"curry",(function(){return Vr})),n.d(c,"curryRight",(function(){return Wr}));var f={};n.r(f),n.d(f,"stopImmediatePropagation",(function(){return Wi})),n.d(f,"isImmediatePropagationStopped",(function(){return Ui})),n.d(f,"isRightClick",(function(){return zi})),n.d(f,"isLeftClick",(function(){return Gi}));var h={};n.r(h),n.d(h,"KEY_CODES",(function(){return sa})),n.d(h,"isPrintableChar",(function(){return ua})),n.d(h,"isMetaKey",(function(){return la})),n.d(h,"isCtrlKey",(function(){return ca})),n.d(h,"isCtrlMetaKey",(function(){return fa})),n.d(h,"isKey",(function(){return ha}));var d={};n.r(d),n.d(d,"isNumeric",(function(){return yf})),n.d(d,"rangeEach",(function(){return vf})),n.d(d,"rangeEachReverse",(function(){return gf})),n.d(d,"valueAccordingPercent",(function(){return bf}));var p={};n.r(p),n.d(p,"getNormalizedDate",(function(){return bp}));var m={};n.r(m),n.d(m,"instanceToHTML",(function(){return Cm})),n.d(m,"_dataToHTML",(function(){return km})),n.d(m,"htmlToGridSettings",(function(){return Mm}));var y={};n.r(y),n.d(y,"spreadsheetColumnLabel",(function(){return ny})),n.d(y,"spreadsheetColumnIndex",(function(){return ry})),n.d(y,"createSpreadsheetData",(function(){return oy})),n.d(y,"createSpreadsheetObjectData",(function(){return iy})),n.d(y,"createEmptySpreadsheetData",(function(){return ay})),n.d(y,"translateRowsToColumns",(function(){return sy})),n.d(y,"cellMethodLookupFactory",(function(){return uy})),n.d(y,"dataRowToChangesArray",(function(){return ly})),n.d(y,"countFirstRowKeys",(function(){return cy}));var v={};n.r(v),n.d(v,"CONTEXT_MENU_ITEMS_NAMESPACE",(function(){return rb})),n.d(v,"CONTEXTMENU_ITEMS_NO_ITEMS",(function(){return ob})),n.d(v,"CONTEXTMENU_ITEMS_ROW_ABOVE",(function(){return ib})),n.d(v,"CONTEXTMENU_ITEMS_ROW_BELOW",(function(){return ab})),n.d(v,"CONTEXTMENU_ITEMS_INSERT_LEFT",(function(){return sb})),n.d(v,"CONTEXTMENU_ITEMS_INSERT_RIGHT",(function(){return ub})),n.d(v,"CONTEXTMENU_ITEMS_REMOVE_ROW",(function(){return lb})),n.d(v,"CONTEXTMENU_ITEMS_REMOVE_COLUMN",(function(){return cb})),n.d(v,"CONTEXTMENU_ITEMS_UNDO",(function(){return fb})),n.d(v,"CONTEXTMENU_ITEMS_REDO",(function(){return hb})),n.d(v,"CONTEXTMENU_ITEMS_READ_ONLY",(function(){return db})),n.d(v,"CONTEXTMENU_ITEMS_CLEAR_COLUMN",(function(){return pb})),n.d(v,"CONTEXTMENU_ITEMS_COPY",(function(){return mb})),n.d(v,"CONTEXTMENU_ITEMS_CUT",(function(){return yb})),n.d(v,"CONTEXTMENU_ITEMS_FREEZE_COLUMN",(function(){return vb})),n.d(v,"CONTEXTMENU_ITEMS_UNFREEZE_COLUMN",(function(){return gb})),n.d(v,"CONTEXTMENU_ITEMS_MERGE_CELLS",(function(){return bb})),n.d(v,"CONTEXTMENU_ITEMS_UNMERGE_CELLS",(function(){return wb})),n.d(v,"CONTEXTMENU_ITEMS_ADD_COMMENT",(function(){return _b})),n.d(v,"CONTEXTMENU_ITEMS_EDIT_COMMENT",(function(){return Sb})),n.d(v,"CONTEXTMENU_ITEMS_REMOVE_COMMENT",(function(){return Cb})),n.d(v,"CONTEXTMENU_ITEMS_READ_ONLY_COMMENT",(function(){return kb})),n.d(v,"CONTEXTMENU_ITEMS_ALIGNMENT",(function(){return Mb})),n.d(v,"CONTEXTMENU_ITEMS_ALIGNMENT_LEFT",(function(){return Ob})),n.d(v,"CONTEXTMENU_ITEMS_ALIGNMENT_CENTER",(function(){return Rb})),n.d(v,"CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT",(function(){return Tb})),n.d(v,"CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY",(function(){return Eb})),n.d(v,"CONTEXTMENU_ITEMS_ALIGNMENT_TOP",(function(){return Lb})),n.d(v,"CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE",(function(){return Ab})),n.d(v,"CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM",(function(){return Ib})),n.d(v,"CONTEXTMENU_ITEMS_BORDERS",(function(){return xb})),n.d(v,"CONTEXTMENU_ITEMS_BORDERS_TOP",(function(){return Db})),n.d(v,"CONTEXTMENU_ITEMS_BORDERS_RIGHT",(function(){return Nb})),n.d(v,"CONTEXTMENU_ITEMS_BORDERS_BOTTOM",(function(){return Hb})),n.d(v,"CONTEXTMENU_ITEMS_BORDERS_LEFT",(function(){return Pb})),n.d(v,"CONTEXTMENU_ITEMS_REMOVE_BORDERS",(function(){return jb})),n.d(v,"CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD",(function(){return Yb})),n.d(v,"CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD",(function(){return Bb})),n.d(v,"CONTEXTMENU_ITEMS_HIDE_COLUMN",(function(){return Fb})),n.d(v,"CONTEXTMENU_ITEMS_SHOW_COLUMN",(function(){return Vb})),n.d(v,"CONTEXTMENU_ITEMS_HIDE_ROW",(function(){return Wb})),n.d(v,"CONTEXTMENU_ITEMS_SHOW_ROW",(function(){return Ub})),n.d(v,"FILTERS_NAMESPACE",(function(){return zb})),n.d(v,"FILTERS_CONDITIONS_NAMESPACE",(function(){return Gb})),n.d(v,"FILTERS_CONDITIONS_NONE",(function(){return Xb})),n.d(v,"FILTERS_CONDITIONS_EMPTY",(function(){return Zb})),n.d(v,"FILTERS_CONDITIONS_NOT_EMPTY",(function(){return Jb})),n.d(v,"FILTERS_CONDITIONS_EQUAL",(function(){return $b})),n.d(v,"FILTERS_CONDITIONS_NOT_EQUAL",(function(){return Qb})),n.d(v,"FILTERS_CONDITIONS_BEGINS_WITH",(function(){return Kb})),n.d(v,"FILTERS_CONDITIONS_ENDS_WITH",(function(){return qb})),n.d(v,"FILTERS_CONDITIONS_CONTAINS",(function(){return ew})),n.d(v,"FILTERS_CONDITIONS_NOT_CONTAIN",(function(){return tw})),n.d(v,"FILTERS_CONDITIONS_BY_VALUE",(function(){return nw})),n.d(v,"FILTERS_CONDITIONS_GREATER_THAN",(function(){return rw})),n.d(v,"FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL",(function(){return ow})),n.d(v,"FILTERS_CONDITIONS_LESS_THAN",(function(){return iw})),n.d(v,"FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL",(function(){return aw})),n.d(v,"FILTERS_CONDITIONS_BETWEEN",(function(){return sw})),n.d(v,"FILTERS_CONDITIONS_NOT_BETWEEN",(function(){return uw})),n.d(v,"FILTERS_CONDITIONS_AFTER",(function(){return lw})),n.d(v,"FILTERS_CONDITIONS_BEFORE",(function(){return cw})),n.d(v,"FILTERS_CONDITIONS_TODAY",(function(){return fw})),n.d(v,"FILTERS_CONDITIONS_TOMORROW",(function(){return hw})),n.d(v,"FILTERS_CONDITIONS_YESTERDAY",(function(){return dw})),n.d(v,"FILTERS_DIVS_FILTER_BY_CONDITION",(function(){return pw})),n.d(v,"FILTERS_DIVS_FILTER_BY_VALUE",(function(){return mw})),n.d(v,"FILTERS_LABELS_CONJUNCTION",(function(){return yw})),n.d(v,"FILTERS_LABELS_DISJUNCTION",(function(){return vw})),n.d(v,"FILTERS_VALUES_BLANK_CELLS",(function(){return gw})),n.d(v,"FILTERS_BUTTONS_SELECT_ALL",(function(){return bw})),n.d(v,"FILTERS_BUTTONS_CLEAR",(function(){return ww})),n.d(v,"FILTERS_BUTTONS_OK",(function(){return _w})),n.d(v,"FILTERS_BUTTONS_CANCEL",(function(){return Sw})),n.d(v,"FILTERS_BUTTONS_PLACEHOLDER_SEARCH",(function(){return Cw})),n.d(v,"FILTERS_BUTTONS_PLACEHOLDER_VALUE",(function(){return kw})),n.d(v,"FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE",(function(){return Mw}));var g={};n.r(g),n.d(g,"OPERATION_NAME",(function(){return W$})),n.d(g,"prepare",(function(){return U$})),n.d(g,"operate",(function(){return z$}));var b={};n.r(b),n.d(b,"OPERATION_NAME",(function(){return G$})),n.d(b,"operate",(function(){return X$}));var w={};n.r(w),n.d(w,"OPERATION_NAME",(function(){return J$})),n.d(w,"operate",(function(){return $$}));var _={};n.r(_),n.d(_,"OPERATION_NAME",(function(){return K$})),n.d(_,"operate",(function(){return q$}));var S={};n.r(S),n.d(S,"OPERATION_NAME",(function(){return tQ})),n.d(S,"operate",(function(){return nQ}));var C={};n.r(C),n.d(C,"AutoColumnSize",(function(){return jM})),n.d(C,"AutoFill",(function(){return mO})),n.d(C,"AutoRowSize",(function(){return eR})),n.d(C,"Base",(function(){return Wk})),n.d(C,"BindRowsWithHeaders",(function(){return sF})),n.d(C,"CollapsibleColumns",(function(){return s1})),n.d(C,"ColumnSorting",(function(){return UT})),n.d(C,"ColumnSummary",(function(){return EF})),n.d(C,"Comments",(function(){return WE})),n.d(C,"ContextMenu",(function(){return pA})),n.d(C,"CopyPaste",(function(){return iI})),n.d(C,"CustomBorders",(function(){return YI})),n.d(C,"DragToScroll",(function(){return ex})),n.d(C,"DropdownMenu",(function(){return zF})),n.d(C,"ExportFile",(function(){return FV})),n.d(C,"Filters",(function(){return xJ})),n.d(C,"Formulas",(function(){return tK})),n.d(C,"HeaderTooltips",(function(){return vK})),n.d(C,"HiddenColumns",(function(){return R3})),n.d(C,"HiddenRows",(function(){return a5})),n.d(C,"ManualColumnFreeze",(function(){return Lx})),n.d(C,"ManualColumnMove",(function(){return PD})),n.d(C,"ManualColumnResize",(function(){return eN})),n.d(C,"ManualRowMove",(function(){return sH})),n.d(C,"ManualRowResize",(function(){return IO})),n.d(C,"MergeCells",(function(){return wP})),n.d(C,"MultiColumnSorting",(function(){return cj})),n.d(C,"MultipleSelectionHandles",(function(){return NP})),n.d(C,"NestedHeaders",(function(){return N0})),n.d(C,"NestedRows",(function(){return Z2})),n.d(C,"ObserveChanges",(function(){return Bj})),n.d(C,"PersistentState",(function(){return lM})),n.d(C,"Search",(function(){return cY})),n.d(C,"TouchScroll",(function(){return MY})),n.d(C,"TrimRows",(function(){return _5})),n.d(C,"UndoRedo",(function(){return nB}));n("7039"),n("e260"),n("d3b7"),n("3ca3"),n("10d1"),n("ddb0"),n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("fb6a"),n("b0c0"),n("4ec9"),n("25f0");function k(e){return T(e)||R(e)||O(e)||M()}function M(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e,t){if(e){if("string"===typeof e)return E(e,t);var n=Object.prototype.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)?E(e,t):void 0}}function R(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function T(e){if(Array.isArray(e))return E(e)}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"common";L.has(e)||L.set(e,new Map);var t=L.get(e);function n(e,n){t.set(e,n)}function r(e){return t.get(e)}function o(e){return t.has(e)}function i(){return k(t.keys())}function a(){return k(t.values())}return{register:n,getItem:r,hasItem:o,getNames:i,getValues:a}}n("c975"),n("a434"),n("dca8"),n("99af"),n("4de4"),n("caad"),n("ac1f"),n("6062"),n("2532"),n("1276");function I(e){var t=e.length,n=0;while(nt?e:t}),Array.isArray(e)?e[0]:void 0)}function F(e){return N(e,(function(e,t){return e1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)}n("4160"),n("159b");function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e){return $="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)}function Q(e){var t;return Array.isArray(e)?t=[]:(t={},se(e,(function(e,n){"__children"!==n&&(e&&"object"===$(e)&&!Array.isArray(e)?t[n]=Q(e):Array.isArray(e)?e.length&&"object"===$(e[0])&&!Array.isArray(e[0])?t[n]=[Q(e[0])]:t[n]=[]:t[n]=null)}))),t}function K(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function q(e,t,n){var r=Array.isArray(n);return se(t,(function(t,o){(!1===r||n.includes(o))&&(e[o]=t)})),e}function ee(e,t){se(t,(function(n,r){t[r]&&"object"===$(t[r])?(e[r]||(Array.isArray(t[r])?e[r]=[]:"[object Date]"===Object.prototype.toString.call(t[r])?e[r]=t[r]:e[r]={}),ee(e[r],t[r])):e[r]=t[r]}))}function te(e){return"object"===$(e)?JSON.parse(JSON.stringify(e)):e}function ne(e){var t={};return se(e,(function(e,n){t[n]=e})),t}function re(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:"value",r="_".concat(n),o=(t={_touched:!1},J(t,r,e),J(t,"isTouched",(function(){return this._touched})),t);return Object.defineProperty(o,n,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),o}function he(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n("5319");var de=n("c0c4"),pe=(n("f5b2"),n("4d90"),n("c1df")),me=n.n(pe);n("498a");function ye(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rRead more about it in \n the documentation or contact us at support@handsontable.com.'],['\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: \'non-commercial-and-evaluation\'.\\x20\n Read more about it in\\x20\n the documentation or contact us at support@handsontable.com.']);return ve=function(){return e},e}function ge(){var e=Ce(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",'. Renew your \n license key or downgrade to a version released prior to ','. If you need any \n help, contact us at sales@handsontable.com.'],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",'. Renew your\\x20\n license key or downgrade to a version released prior to ','. If you need any\\x20\n help, contact us at sales@handsontable.com.']);return ge=function(){return e},e}function be(){var e=Ce(['\n The license key for Handsontable is invalid. \n Read more on how to \n install it properly or contact us at support@handsontable.com.'],['\n The license key for Handsontable is invalid.\\x20\n Read more on how to\\x20\n install it properly or contact us at support@handsontable.com.']);return be=function(){return e},e}function we(){var e=Ce(["\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact \n us at support@handsontable.com."],["\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\\x20\n us at support@handsontable.com."]);return we=function(){return e},e}function _e(){var e=Ce(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",". Renew your license key at handsontable.com or downgrade to a version released prior \n to ",". If you need any help, contact us at sales@handsontable.com."],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",". Renew your license key at handsontable.com or downgrade to a version released prior\\x20\n to ",". If you need any help, contact us at sales@handsontable.com."]);return _e=function(){return e},e}function Se(){var e=Ce(["\n The license key for Handsontable is invalid. \n If you need any help, contact us at support@handsontable.com."],["\n The license key for Handsontable is invalid.\\x20\n If you need any help, contact us at support@handsontable.com."]);return Se=function(){return e},e}function Ce(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ke(e){return ke="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},ke(e)}function Me(e){var t;switch(ke(e)){case"string":case"number":t="".concat(e);break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString();break}return t}function Oe(e){return"undefined"!==typeof e}function Re(e){return"undefined"===typeof e}function Te(e){return null===e||""===e||Re(e)}function Ee(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var Le="length",Ae=function(e){return parseInt(e,16)},Ie=function(e){return parseInt(e,10)},xe=function(e,t,n){return e["substr"](t,n)},De=function(e){return e["codePointAt"](0)-65},Ne=function(e){return"".concat(e).replace(/\-/g,"")},He=function(e){return Ae(xe(Ne(e),Ae("12"),De("F")))/(Ae(xe(Ne(e),De("B"),~~![][Le]))||9)},Pe=function(){return"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)},je=!1,Ye={invalid:function(){return ye(Se())},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return ye(_e(),t,n,t)},missing:function(){return ye(we())},non_commercial:function(){return""}},Be={invalid:function(){return ye(be())},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return ye(ge(),t,n,t)},missing:function(){return ye(ve())},non_commercial:function(){return""}};function Fe(e,t){var n,r=!Te(e),o="string"===typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="8.2.0",a="invalid",s="invalid";e=Ne(e||"");var u=Ve(e);if(r||o||u)if(u){var l=me()("12/11/2020","DD/MM/YYYY"),c=Math.floor(l.toDate().getTime()/864e5),f=He(e);if(n=me()(864e5*(f+1),"x").format("MMMM DD, YYYY"),c>f){var h=me()().diff(l,"days");a=h<=1?"valid":"expired",s=h<=15?"valid":"expired"}else a="valid",s="valid"}else o?(a="non_commercial",s="valid"):(a="invalid",s="invalid");else a="missing",s="missing";if(Pe()&&(a="valid",s="valid"),!je&&"valid"!==a){var d=Ye[a]({keyValidityDate:n,hotVersion:i});d&&console["non_commercial"===a?"info":"warn"](Ye[a]({keyValidityDate:n,hotVersion:i})),je=!0}if("valid"!==s&&t.parentNode){var p=Be[s]({keyValidityDate:n,hotVersion:i});if(p){var m=document.createElement("div");m.id="hot-display-license-info",m.innerHTML=Be[s]({keyValidityDate:n,hotVersion:i}),t.parentNode.insertBefore(m,t.nextSibling)}}}function Ve(e){var t=[][Le],n=t;if(e[Le]!==De("Z"))return!1;for(var r="",o="B>1:r=xe(e,i,i?1===o[Le]?9:8:6);return n===t}function We(e){return e[0].toUpperCase()+e.substr(1)}function Ue(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return"".concat(e).replace(/(?:\\)?\[([^[\]]+)]/g,(function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]}))}function Ze(e){return Je("".concat(e),{ALLOWED_TAGS:[]})}function Je(e,t){return Object(de["sanitize"])(e,t)}function $e(){var e;Oe(console)&&(e=console).warn.apply(e,arguments)}function Qe(){var e;Oe(console)&&(e=console).error.apply(e,arguments)}function Ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}},{key:"add",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))j(t,(function(t){return n.add(e,t,r)}));else{it.has(e)&&$e(Xe(ot,{hookName:e,removedInVersion:it.get(e)})),at.has(e)&&$e(at.get(e));var o=this.getBucket(r);if("undefined"===typeof o[e]&&(this.register(e),o[e]=[]),t.skip=!1,-1===o[e].indexOf(t)){var i=!1;t.initialHook&&j(o[e],(function(n,r){if(n.initialHook)return o[e][r]=t,i=!0,!1})),i||o[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?j(t,(function(t){return n.once(e,t,r)})):(t.runOnce=!0,this.add(e,t,r))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getBucket(n);return"undefined"!==typeof r[e]&&r[e].indexOf(t)>=0&&(t.skip=!0,!0)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)}},{key:"run",value:function(e,t,n,r,o,i,a,s){var u=this.globalBucket[t],l=u?u.length:0,c=0;if(l)while(c0&&void 0!==arguments[0]?arguments[0]:null;se(this.getBucket(e),(function(e,t,n){return n[t].length=0}))}},{key:"register",value:function(e){this.isRegistered(e)||rt.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&rt.splice(rt.indexOf(e),1)}},{key:"isDeprecated",value:function(e){return at.has(e)||it.has(e)}},{key:"isRegistered",value:function(e){return rt.indexOf(e)>=0}},{key:"getRegistered",value:function(){return rt}}]),e}(),ut=new st;function lt(){return ut}var ct=st,ft=(n("3410"),n("131a"),n("4ae1"),1),ht=2;function dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pt(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,o=t.totalItems,i=t.itemSizeFn,a=t.overrideFn,s=t.calculationType,u=t.stretchMode,l=t.stretchingItemWidthFn,c=void 0===l?function(e){return e}:l;dt(this,e),yt.set(this,{viewportWidth:n,scrollOffset:r,totalColumns:o,columnWidthFn:i,overrideFn:a,calculationType:s,stretchingColumnWidthFn:c}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=u,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return mt(e,null,[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),mt(e,[{key:"calculate",value:function(){for(var e,t=0,n=!0,r=[],o=yt.get(this),i=o.calculationType,a=o.overrideFn,s=o.scrollOffset,u=o.totalColumns,l=o.viewportWidth,c=0;c0?l+1:l;if(t>=s&&t+(i===ht?e:0)<=s+f&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=c),this.endColumn=c),r.push(t),t+=e,i!==ht&&(this.endColumn=c),t>=s+l){n=!1;break}}if(this.endColumn===u-1&&n){this.startColumn=this.endColumn;while(this.startColumn>0){var h=r[this.endColumn]+e-r[this.startColumn-1];if((h<=l||i!==ht)&&(this.startColumn-=1),h>l)break}}i===ft&&null!==this.startColumn&&a&&a(this),this.startPosition=r[this.startColumn],void 0===this.startPosition&&(this.startPosition=null),u0)this.stretchAllRatio=t/o,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&t!==1/0){var l=this._getColumnWidth(r-1),c=u+l;this.stretchLastWidth=c>=0?c:l}}}},{key:"getStretchedColumnWidth",value:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n}},{key:"_getStretchedAllColumnWidth",value:function(e,t){var n=0,r=yt.get(this),o=r.totalColumns;if(!this.stretchAllColumnsWidth[e]){var i=Math.round(t*this.stretchAllRatio),a=r.stretchingColumnWidthFn(i,e);this.stretchAllColumnsWidth[e]=void 0===a?i:isNaN(a)?this._getColumnWidth(e):a}if(this.stretchAllColumnsWidth.length===o&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,o=t.totalItems,i=t.itemSizeFn,a=t.overrideFn,s=t.calculationType,u=t.scrollbarHeight;bt(this,e),St.set(this,{viewportHeight:n,scrollOffset:r,totalRows:o,rowHeightFn:i,overrideFn:a,calculationType:s,horizontalScrollbarHeight:u}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()}return _t(e,null,[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),_t(e,[{key:"calculate",value:function(){for(var t,n=0,r=!0,o=[],i=St.get(this),a=i.calculationType,s=i.overrideFn,u=i.rowHeightFn,l=i.scrollOffset,c=i.totalRows,f=i.viewportHeight,h=i.horizontalScrollbarHeight||0,d=0;d=l&&n+(a===ht?t:0)<=l+f-h&&(null===this.startRow&&(this.startRow=d),this.endRow=d),o.push(n),n+=t,a!==ht&&(this.endRow=d),n>=l+f-h){r=!1;break}if(this.endRow===c-1&&r){this.startRow=this.endRow;while(this.startRow>0){var p=o[this.endRow]+t-o[this.startRow-1];if((p<=f-h||a!==ht)&&(this.startRow-=1),p>=f-h)break}}a===ft&&null!==this.startRow&&s&&s(this),this.startPosition=o[this.startRow],void 0===this.startPosition&&(this.startPosition=null),c=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&this.col>=e.col}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&this.col<=e.col}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&this.col<=e.col}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&this.col>=e.col}},{key:"normalize",value:function(){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}},{key:"clone",value:function(){return new e(this.row,this.col)}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}]),e}(),Et=Tt;function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;Lt(this,e),this.highlight=t.clone().normalize(),this.from=n.clone(),this.to=r.clone()}return It(e,[{key:"setHighlight",value:function(e){return this.highlight=e.clone().normalize(),this}},{key:"setFrom",value:function(e){return this.from=e.clone(),this}},{key:"setTo",value:function(e){return this.to=e.clone(),this}},{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}},{key:"getOuterHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getOuterWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"getHeight",value:function(){var e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}},{key:"getWidth",value:function(){var e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}},{key:"includes",value:function(e){var t=e.row,n=e.col,r=this.getOuterTopLeftCorner(),o=this.getOuterBottomRightCorner();return r.row<=t&&o.row>=t&&r.col<=n&&o.col>=n}},{key:"includesRange",value:function(e){return this.includes(e.getOuterTopLeftCorner())&&this.includes(e.getOuterBottomRightCorner())}},{key:"isEqual",value:function(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)}},{key:"overlaps",value:function(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}},{key:"isOverlappingHorizontally",value:function(e){return this.getOuterTopRightCorner().col>=e.getOuterTopLeftCorner().col&&this.getOuterTopRightCorner().col<=e.getOuterTopRightCorner().col||this.getOuterTopLeftCorner().col<=e.getOuterTopRightCorner().col&&this.getOuterTopLeftCorner().col>=e.getOuterTopLeftCorner().col}},{key:"isOverlappingVertically",value:function(e){return this.getOuterBottomRightCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomRightCorner().row<=e.getOuterBottomRightCorner().row||this.getOuterTopRightCorner().row<=e.getOuterBottomRightCorner().row&&this.getOuterTopRightCorner().row>=e.getOuterTopRightCorner().row}},{key:"expand",value:function(e){var t=this.getOuterTopLeftCorner(),n=this.getOuterBottomRightCorner();return(e.rown.row||e.col>n.col)&&(this.from=new Et(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new Et(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var t=this.getOuterTopLeftCorner(),n=this.getOuterBottomRightCorner(),r=this.getDirection(),o=e.getOuterTopLeftCorner(),i=e.getOuterBottomRightCorner(),a=Math.min(t.row,o.row),s=Math.min(t.col,o.col),u=Math.max(n.row,i.row),l=Math.max(n.col,i.col),c=new Et(a,s),f=new Et(u,l);return this.from=c,this.to=f,this.setDirection(r),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}},{key:"getDirection",value:function(){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}},{key:"setDirection",value:function(e){switch(e){case"NW-SE":var t=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var r=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];this.from=r[0],this.to=r[1];break;case"SW-NE":var o=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()];this.from=o[0],this.to=o[1];break;default:break}}},{key:"getVerticalDirection",value:function(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}},{key:"getHorizontalDirection",value:function(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}},{key:"flipDirectionVertically",value:function(){var e=this.getDirection();switch(e){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");break;default:break}}},{key:"flipDirectionHorizontally",value:function(){var e=this.getDirection();switch(e){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");break;default:break}}},{key:"getTopLeftCorner",value:function(){return new Et(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getBottomRightCorner",value:function(){return new Et(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getTopRightCorner",value:function(){return new Et(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getBottomLeftCorner",value:function(){return new Et(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getOuterTopLeftCorner",value:function(){return new Et(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterBottomRightCorner",value:function(){return new Et(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterTopRightCorner",value:function(){return new Et(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterBottomLeftCorner",value:function(){return new Et(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getOuterTopLeftCorner().isEqual(new Et(t.from.row,t.from.col))||this.getOuterTopRightCorner().isEqual(new Et(t.from.row,t.to.col))||this.getOuterBottomLeftCorner().isEqual(new Et(t.to.row,t.from.col))||this.getOuterBottomRightCorner().isEqual(new Et(t.to.row,t.to.col))))||(e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner()))}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof Et))return!1;if(t&&t.includes(e)){if(this.getOuterTopLeftCorner().isEqual(new Et(t.from.row,t.from.col)))return this.getOuterBottomRightCorner();if(this.getOuterTopRightCorner().isEqual(new Et(t.from.row,t.to.col)))return this.getOuterBottomLeftCorner();if(this.getOuterBottomLeftCorner().isEqual(new Et(t.to.row,t.from.col)))return this.getOuterTopRightCorner();if(this.getOuterBottomRightCorner().isEqual(new Et(t.to.row,t.to.col)))return this.getOuterTopLeftCorner()}return e.isEqual(this.getOuterBottomRightCorner())?this.getOuterTopLeftCorner():e.isEqual(this.getOuterTopLeftCorner())?this.getOuterBottomRightCorner():e.isEqual(this.getOuterTopRightCorner())?this.getOuterBottomLeftCorner():e.isEqual(this.getOuterBottomLeftCorner())?this.getOuterTopRightCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t={top:Math.min(this.from.row,this.to.row),bottom:Math.max(this.from.row,this.to.row),left:Math.min(this.from.col,this.to.col),right:Math.max(this.from.col,this.to.col)},n={top:Math.min(e.from.row,e.to.row),bottom:Math.max(e.from.row,e.to.row),left:Math.min(e.from.col,e.to.col),right:Math.max(e.from.col,e.to.col)},r=[];return t.top===n.top&&r.push("top"),t.right===n.right&&r.push("right"),t.bottom===n.bottom&&r.push("bottom"),t.left===n.left&&r.push("left"),r}},{key:"getInner",value:function(){for(var e=this.getOuterTopLeftCorner(),t=this.getOuterBottomRightCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)this.from.row===r&&this.from.col===o||this.to.row===r&&this.to.col===o||n.push(new Et(r,o));return n}},{key:"getAll",value:function(){for(var e=this.getOuterTopLeftCorner(),t=this.getOuterBottomRightCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)e.row===r&&e.col===o?n.push(e):t.row===r&&t.col===o?n.push(t):n.push(new Et(r,o));return n}},{key:"forAll",value:function(e){for(var t=this.getOuterTopLeftCorner(),n=this.getOuterBottomRightCorner(),r=t.row;r<=n.row;r++)for(var o=t.col;o<=n.col;o++){var i=e(r,o);if(!1===i)return}}},{key:"clone",value:function(){return new e(this.highlight,this.from,this.to)}},{key:"toObject",value:function(){return{from:this.from.toObject(),to:this.to.toObject()}}}]),e}(),Dt=xt;function Nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(e,t){for(var n=0;nt
t";var n=document.createElement("CAPTION");n.innerHTML="c
c
c
c",n.style.padding="0",n.style.margin="0",e.insertBefore(n,t),document.body.appendChild(e),Gt=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}function un(){return void 0===Gt&&sn(),Gt}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Xt||(Xt="object"===("undefined"===typeof Intl?"undefined":zt(Intl))?new Intl.Collator(e,t).compare:"function"===typeof String.prototype.localeCompare?function(e,t){return"".concat(e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1},Xt)}function cn(){if(void 0!==Zt)return Zt;try{var e={get passive(){Zt=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(t){Zt=!1}return Zt}Qt||(Qt=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-Jt)),r=window.setTimeout((function(){e(t+n)}),n);return Jt=t+n,r}),Kt||(Kt=function(e){clearTimeout(e)});var fn,hn,dn,pn=function(e){var t={value:!1,test:function(n,r){t.value=e(n,r)}};return t},mn={chrome:pn((function(e,t){return/Chrome/.test(e)&&/Google/.test(t)})),edge:pn((function(e){return/Edge/.test(e)})),firefox:pn((function(e){return/Firefox/.test(e)})),ie:pn((function(e){return/Trident/.test(e)})),ie9:pn((function(){return!!document.documentMode})),mobile:pn((function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)})),safari:pn((function(e,t){return/Safari/.test(e)&&/Apple Computer/.test(t)}))},yn={mac:pn((function(e){return/^Mac/.test(e)})),win:pn((function(e){return/^Win/.test(e)})),linux:pn((function(e){return/^Linux/.test(e)}))};function vn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userAgent,n=void 0===t?navigator.userAgent:t,r=e.vendor,o=void 0===r?navigator.vendor:r;se(mn,(function(e){var t=e.test;t(n,o)}))}function gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.platform,n=void 0===t?navigator.platform:t;se(yn,(function(e){var t=e.test;t(n)}))}function bn(){return mn.chrome.value}function wn(){return mn.edge.value}function _n(){return mn.ie.value}function Sn(){return mn.ie9.value}function Cn(){return mn.ie.value||mn.edge.value}function kn(){return mn.mobile.value}function Mn(){return mn.safari.value}function On(){return mn.firefox.value}function Rn(){return yn.win.value}function Tn(){return yn.mac.value}function En(){return yn.linux.value}function Ln(e){return Dn(e)||xn(e)||In(e)||An()}function An(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function In(e,t){if(e){if("string"===typeof e)return Nn(e,t);var n=Object.prototype.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)?Nn(e,t):void 0}}function xn(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function Dn(e){if(Array.isArray(e))return Nn(e)}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,o=e;while(null!==o){if(n===t){r=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(n+=1,o=o.parentNode)}return r}function Pn(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function jn(e){return Pn(e)&&e.parent}function Yn(e){return!!Object.getPrototypeOf(e.parent)}function Bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=Node,o=r.ELEMENT_NODE,i=r.DOCUMENT_FRAGMENT_NODE,a=e;while(null!==a&&void 0!==a&&a!==n){var s=a,u=s.nodeType,l=s.nodeName;if(u===o&&(t.includes(l)||t.includes(a)))return a;var c=a,f=c.host;a=f&&u===i?f:a.parentNode}return null}function Fn(e,t,n){var r=[],o=e;while(o){if(o=Bn(o,t,n),!o||n&&!n.contains(o))break;r.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode}var i=r.length;return i?r[i-1]:null}function Vn(e,t){var n=e.parentNode,r=[];"string"===typeof t?r=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);while(null!==n){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function Wn(e){var t=0,n=e;if(n.previousSibling)while(n=n.previousSibling)t+=1;return t}function Un(e,t,n){var r=n.parentElement.querySelector(".ht_clone_".concat(e));return r?r.contains(t):null}function zn(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if(vn(),gn(),tn()){var Gn=function(e){var t=e.createElement("div");return t.classList.add("test","test2"),t.classList.contains("test2")};fn=function(e,t){return void 0!==e.classList&&"string"===typeof t&&""!==t&&e.classList.contains(t)},hn=function(e,t){var n=e.ownerDocument,r=t;if("string"===typeof r&&(r=r.split(" ")),r=zn(r),r.length>0)if(Gn(n)){var o;(o=e.classList).add.apply(o,Ln(r))}else{var i=0;while(r&&r[i])e.classList.add(r[i]),i+=1}},dn=function(e,t){var n=e.ownerDocument,r=t;if("string"===typeof r&&(r=r.split(" ")),r=zn(r),r.length>0)if(Gn(n)){var o;(o=e.classList).remove.apply(o,Ln(r))}else{var i=0;while(r&&r[i])e.classList.remove(r[i]),i+=1}}}else{var Xn=function(e){return new RegExp("(\\s|^)".concat(e,"(\\s|$)"))};fn=function(e,t){return void 0!==e.className&&Xn(t).test(e.className)},hn=function(e,t){var n=e.className,r=t;if("string"===typeof r&&(r=r.split(" ")),r=zn(r),""===n)n=r.join(" ");else for(var o=0;o-1)for(var t=e.childNodes,n=t.length-1;n>=0;n--)Qn(t[n],e)}function Kn(e){var t;while(t=e.lastChild)e.removeChild(t)}var qn,er=/(<(.*)>|&(.*);)/;function tr(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];er.test(t)?e.innerHTML=n?Je(t):t:nr(e,t)}function nr(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?nn?n.textContent=t:n.data=t:(Kn(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function rr(e){var t=e.ownerDocument.documentElement,n=e;while(n!==t){if(null===n)return!1;if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(n.host){if(n.host.impl)return rr(n.host.impl);if(n.host)return rr(n.host);throw new Error("Lost in Web Components world")}return!1}if(n.style&&"none"===n.style.display)return!1;n=n.parentNode}return!0}function or(e){var t,n,r,o,i=e.ownerDocument,a=i.defaultView,s=i.documentElement,u=e;if(un()&&u.firstChild&&"CAPTION"===u.firstChild.nodeName)return o=u.getBoundingClientRect(),{top:o.top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=u.offsetLeft,n=u.offsetTop,r=u;while(u=u.offsetParent){if(u===i.body)break;t+=u.offsetLeft,n+=u.offsetTop,r=u}return r&&"fixed"===r.style.position&&(t+=a.pageXOffset||s.scrollLeft,n+=a.pageYOffset||s.scrollTop),{left:t,top:n}}function ir(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollY;return void 0===t&&(t=e.document.documentElement.scrollTop),t}function ar(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollX;return void 0===t&&(t=e.document.documentElement.scrollLeft),t}function sr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e===t?ir(t):e.scrollTop}function ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e===t?ar(t):e.scrollLeft}function lr(e){var t=e.ownerDocument,n=t?t.defaultView:void 0;t||(t=e.document?e.document:e,n=t.defaultView);var r=["auto","scroll"],o=rn(),i=e.parentNode;while(i&&i.style&&t.body!==i){var a=i.style,s=a.overflow,u=a.overflowX,l=a.overflowY;if([s,u,l].includes("scroll"))return i;if(o){var c=n.getComputedStyle(i);if(s=c.overflow,u=c.overflowX,l=c.overflowY,r.includes(s)||r.includes(u)||r.includes(l))return i}if(i.clientHeight<=i.scrollHeight+1&&(r.includes(l)||r.includes(s)))return i;if(i.clientWidth<=i.scrollWidth+1&&(r.includes(u)||r.includes(s)))return i;i=i.parentNode}return n}function cr(e){var t=e.ownerDocument,n=t.defaultView,r=e.parentNode;while(r&&r.style&&t.body!==r){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;var o=dr(r,n),i=["scroll","hidden","auto"],a=o.getPropertyValue("overflow"),s=o.getPropertyValue("overflow-y"),u=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(u))return r;r=r.parentNode}return n}function fr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(e){if(e===n)return"width"===t?"".concat(n.innerWidth,"px"):"height"===t?"".concat(n.innerHeight,"px"):void 0;var r=e.style[t];if(""!==r&&void 0!==r)return r;var o=dr(e,n);return""!==o[t]&&void 0!==o[t]?o[t]:void 0}}function hr(e,t){var n=t.selectorText,r=!1;return t.type===CSSRule.STYLE_RULE&&n&&(e.msMatchesSelector?r=e.msMatchesSelector(n):e.matches&&(r=e.matches(n))),r}function dr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function pr(e){return Math.ceil(e.getBoundingClientRect().width)}function mr(e){return un()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight}function yr(e){return e.clientHeight||e.innerHeight}function vr(e){return e.clientWidth||e.innerWidth}function gr(e,t,n){e.addEventListener(t,n,!1)}function br(e,t,n){e.removeEventListener(t,n,!1)}function wr(e){var t=e.ownerDocument;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),o=r.duplicate();return r.moveToBookmark(n.getBookmark()),o.setEndPoint("EndToStart",r),o.text.length}return 0}function _r(e){var t=e.ownerDocument;if(e.selectionEnd)return e.selectionEnd;if(t.selection){var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange();return r.text.indexOf(n.text)+n.text.length}return 0}function Sr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document,n="";return e.getSelection?n=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(n=t.selection.createRange().text),n}function Cr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document;e.getSelection?e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges():t.selection&&t.selection.empty()}function kr(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var r=e.parentNode,o=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=o}}}function Mr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.createElement("div");t.style.height="200px",t.style.width="100%";var 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);var r=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;return r===o&&(o=n.clientWidth),(e.body||e.documentElement).removeChild(n),r-o}function Or(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return void 0===qn&&(qn=Mr(e)),qn}function Rr(e){return e.offsetWidth!==e.clientWidth}function Tr(e){return e.offsetHeight!==e.clientHeight}function Er(e,t,n){Sn()?(e.style.top=n,e.style.left=t):Mn()?(e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"),e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)")):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")}function Lr(e){var t;return e.style.transform&&""!==(t=e.style.transform)?["transform",t]:e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"])?["-webkit-transform",t]:-1}function Ar(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")}function Ir(e){var t=["INPUT","SELECT","TEXTAREA"];return e&&(t.indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function xr(e){return Ir(e)&&!1===e.hasAttribute("data-hot-input")}function Dr(e){var t=e.ownerDocument.activeElement;xr(t)||e.select()}function Nr(e){return!e.parentNode}n("26e9");function Hr(e){return"function"===typeof e}function Pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,r={lastCallThrottled:!0},o=null;function i(){for(var i=this,a=arguments.length,s=new Array(a),u=0;u1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=Pr(e,t),o=n;function i(){o=n}function a(){for(var t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:200,r=null;function o(){for(var o=this,i=arguments.length,a=new Array(i),s=0;s1?t-1:0),r=1;r=t?e.apply(this,u):n(u),s}}return n([])}function Wr(e){var t=e.length;function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a=t?e.apply(this,u):n(u),s}}return n([])}var Ur=0,zr=1,Gr=2;function Xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zr(e,t){for(var n=0;n0?this.collectedNodes[e-1]:null}},{key:"getRenderedChildCount",value:function(){var e=this.rootNode,t=this.sizeSet,n=0;if(this.isSharedViewSet()){var r=e.firstElementChild;while(r){if(r.tagName===this.childNodeType)n+=1;else if(t.isPlaceOn(zr))break;r=r.nextElementSibling}}else n=e.childElementCount;return n}},{key:"start",value:function(){this.collectedNodes.length=0,this.visualIndex=0;var e=this.rootNode,t=this.sizeSet,n=this.isSharedViewSet(),r=t.getViewSize(),o=r.nextSize,i=this.getRenderedChildCount();while(io)e.removeChild(s?e.firstChild:e.lastChild),i-=1}},{key:"render",value:function(){var e=this.rootNode,t=this.sizeSet,n=this.visualIndex;this.isSharedViewSet()&&t.isPlaceOn(Gr)&&(n+=t.sharedSize.nextSize);var r=e.childNodes[n];if(r.tagName!==this.childNodeType){var o=this.nodesPool();e.replaceChild(o,r),r=o}this.collectedNodes.push(r),this.visualIndex+=1}},{key:"end",value:function(){}}]),e}();function io(e){return io="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},io(e)}function ao(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function so(e,t){for(var n=0;ni)r.removeChild(r.lastChild),this.renderedNodes-=1}var u=this.rootNode.childNodes.length;if(u>t)for(var l=t;lr)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}},{key:"render",value:function(){this.adjust();for(var e=this.table,t=e.columnsToRender,n=e.rowHeadersCount,r=0;r1e3&&(_i=!0,$e(ye(li()))),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{},r=n.cellRenderer;Ni(this,e),this.rootNode=t,this.rootDocument=this.rootNode.ownerDocument,this.rowHeaders=null,this.columnHeaders=null,this.colGroup=null,this.rows=null,this.cells=null,this.rowFilter=null,this.columnFilter=null,this.rowUtils=null,this.columnUtils=null,this.rowsToRender=0,this.columnsToRender=0,this.rowHeaderFunctions=[],this.rowHeadersCount=0,this.columnHeaderFunctions=[],this.columnHeadersCount=0,this.cellRenderer=r}return Pi(e,[{key:"setAxisUtils",value:function(e,t){this.rowUtils=e,this.columnUtils=t}},{key:"setViewportSize",value:function(e,t){this.rowsToRender=e,this.columnsToRender=t}},{key:"setFilters",value:function(e,t){this.rowFilter=e,this.columnFilter=t}},{key:"setHeaderContentRenderers",value:function(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}},{key:"setRenderers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rowHeaders,n=e.columnHeaders,r=e.colGroup,o=e.rows,i=e.cells;t.setTable(this),n.setTable(this),r.setTable(this),o.setTable(this),i.setTable(this),this.rowHeaders=t,this.columnHeaders=n,this.colGroup=r,this.rows=o,this.cells=i}},{key:"renderedRowToSource",value:function(e){return this.rowFilter.renderedToSource(e)}},{key:"renderedColumnToSource",value:function(e){return this.columnFilter.renderedToSource(e)}},{key:"render",value:function(){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();for(var e=this.rowsToRender,t=this.rows,n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.TABLE,r=t.THEAD,o=t.COLGROUP,i=t.TBODY,a=t.rowUtils,s=t.columnUtils,u=t.cellRenderer;Yi(this,e),this.renderer=new ji(n,{cellRenderer:u}),this.renderer.setRenderers({rowHeaders:new Po,columnHeaders:new Jo(r),colGroup:new si(o),rows:new Si(i),cells:new Di}),this.renderer.setAxisUtils(a,s)}return Fi(e,[{key:"setFilters",value:function(e,t){return this.renderer.setFilters(e,t),this}},{key:"setViewportSize",value:function(e,t){return this.renderer.setViewportSize(e,t),this}},{key:"setHeaderContentRenderers",value:function(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}},{key:"adjust",value:function(){this.renderer.adjust()}},{key:"render",value:function(){this.renderer.render()}}]),e}();function Wi(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function Ui(e){return!1===e.isImmediatePropagationEnabled}function zi(e){return 2===e.button}function Gi(e){return 0===e.button}function Xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zi(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;Xi(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return Ji(e,[{key:"addEventListener",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function i(e){n.call(this,Ki(e))}return"boolean"===typeof o||cn()||(o=!1),this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:i,options:o,eventManager:this}),e.addEventListener(t,i,o),$i+=1,function(){r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context.eventListeners.length;while(i)if(i-=1,r=this.context.eventListeners[i],r.event===t&&r.element===e){if(n&&n!==r.callback)continue;if(o&&r.eventManager!==this)continue;this.context.eventListeners.splice(i,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),$i-=1}}},{key:"clearEvents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.context){var t=this.context.eventListeners.length;while(t){t-=1;var n=this.context.eventListeners[t];n&&this.removeEventListener(n.element,n.event,n.callback,e)}}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"destroyWithOwnEventsOnly",value:function(){this.clearEvents(!0),this.context=null}},{key:"fireEvent",value:function(e,t){var n=e.document,r=e;n||(n=e.ownerDocument?e.ownerDocument:e,r=n.defaultView);var o,i={bubbles:!0,cancelable:"mousemove"!==t,view:r,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};n.createEvent?(o=n.createEvent("MouseEvents"),o.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)):o=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent("on".concat(t),o)}}]),e}();function Ki(e){var t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),Wi(this)},e}var qi=Qi;function ea(){return $i}function ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function na(e,t){for(var n=0;n=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function la(e){var t=[sa.ARROW_DOWN,sa.ARROW_UP,sa.ARROW_LEFT,sa.ARROW_RIGHT,sa.HOME,sa.END,sa.DELETE,sa.BACKSPACE,sa.F1,sa.F2,sa.F3,sa.F4,sa.F5,sa.F6,sa.F7,sa.F8,sa.F9,sa.F10,sa.F11,sa.F12,sa.TAB,sa.PAGE_DOWN,sa.PAGE_UP,sa.ENTER,sa.ESCAPE,sa.SHIFT,sa.CAPS_LOCK,sa.ALT];return-1!==t.indexOf(e)}function ca(e){var t=[];return navigator.platform.includes("Mac")?t.push(sa.COMMAND_LEFT,sa.COMMAND_RIGHT,sa.COMMAND_FIREFOX):t.push(sa.CONTROL),t.includes(e)}function fa(e){return[sa.CONTROL,sa.COMMAND_LEFT,sa.COMMAND_RIGHT,sa.COMMAND_FIREFOX].includes(e)}function ha(e,t){var n=t.split("|"),r=!1;return j(n,(function(t){if(e===sa[t])return r=!0,!1})),r}function da(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pa(e,t){for(var n=0;n1,s=this.scrollableElement===r,u=this.wot.wtSettings.getSetting("preventWheel"),l={passive:s};(u||a||!bn())&&this.eventManager.addEventListener(this.wot.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,u)}),l);var c,f=[this.topOverlay,this.bottomOverlay,this.leftOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay];f.forEach((function(t){if(t&&t.needFullRender){var n=t.clone.wtTable.holder;e.eventManager.addEventListener(n,"wheel",(function(t){return e.onCloneWheel(t,u)}),l)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(c),c=setTimeout((function(){e.wot.getSetting("onWindowResize")}),200)}))}},{key:"deregisterListeners",value:function(){this.eventManager.clearEvents(!0)}},{key:"onTableScroll",value:function(e){var t=this.wot.rootWindow,n=this.leftOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(r!==t&&o!==t&&!e.target.contains(r)||n!==t&&o!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}},{key:"onCloneWheel",value:function(e,t){var n=this.wot.rootWindow,r=this.leftOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target,a=o!==n&&i!==n&&!i.contains(o),s=r!==n&&i!==n&&!i.contains(r);if(!this.keyPressed||!a&&!s){var u=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&u)&&e.preventDefault()}}},{key:"onKeyDown",value:function(e){this.keyPressed=ha(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=this.browserLineHeight,n=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,r=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(r+=r*t,n+=n*t);var o=this.scrollVertically(n),i=this.scrollHorizontally(r);return o||i}},{key:"scrollVertically",value:function(e){var t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}},{key:"scrollHorizontally",value:function(e){var t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}},{key:"syncScrollPositions",value:function(){if(!this.destroyed){var e=this.wot.rootWindow,t=this.topOverlay.clone.wtTable.holder,n=this.leftOverlay.clone.wtTable.holder,r=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],o=r[0],i=r[1];if(this.horizontalScrolling=t.scrollLeft!==o||this.lastScrollX!==e.scrollX,this.verticalScrolling=n.scrollTop!==i||this.lastScrollY!==e.scrollY,this.lastScrollX=e.scrollX,this.lastScrollY=e.scrollY,this.horizontalScrolling){t.scrollLeft=o;var a=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;a&&(a.scrollLeft=o)}this.verticalScrolling&&(n.scrollTop=i),this.refreshAll()}}},{key:"syncScrollWithMaster",value:function(){var e=this.topOverlay.mainTableScrollableElement,t=e.scrollLeft,n=e.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.leftOverlay.needFullRender&&(this.leftOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.leftOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();var e=this.wot,t=e.rootWindow,n=e.wtTable;"hidden"===t.getComputedStyle(n.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=n.holder:this.scrollableElement=lr(n.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.leftOverlay.destroy(),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.destroy(),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.wtTable.spreader,n=t.clientWidth,r=t.clientHeight;n===this.spreaderLastSize.width&&r===this.spreaderLastSize.height||(this.spreaderLastSize.width=n,this.spreaderLastSize.height=r,this.adjustElementsSize()),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.leftOverlay.refresh(e),this.topOverlay.refresh(e),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.refresh(e),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.refresh(e)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot,n=t.wtViewport,r=t.wtTable,o=this.wot.getSetting("totalColumns"),i=this.wot.getSetting("totalRows"),a=n.getRowHeaderWidth(),s=n.getColumnHeaderHeight(),u=r.hider.style;if(u.width="".concat(a+this.leftOverlay.sumCellSizes(0,o),"px"),u.height="".concat(s+this.topOverlay.sumCellSizes(0,i)+1,"px"),this.scrollbarSize>0){var l=r.wtRootElement,c=l.scrollHeight,f=l.scrollWidth,h=r.holder,d=h.scrollHeight,p=h.scrollWidth;this.hasScrollbarRight=cf?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&r.hider.scrollHeight+this.scrollbarSize>c&&(this.hasScrollbarRight=!0)}this.topOverlay.adjustElementsSize(e),this.leftOverlay.adjustElementsSize(e),this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){var e=this.wot.wtTable;e.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.leftOverlay.applyToDOM())}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay],n=null;return j(t,(function(t){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)})),n}},{key:"syncOverlayTableClassNames",value:function(){var e=this.instance.wtTable.TABLE,t=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay];j(t,(function(t){t&&(t.clone.wtTable.TABLE.className=e.className)}))}}]),e}(),va=ya;function ga(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ba(e,t){for(var n=0;n=0&&e<=Math.max(a-1,0)){var u=this.getFirstVisibleColumn(),l=this.getLastVisibleColumn();e>=o&&u>-1&&(e-1&&(e>l||t))&&(s=i.scrollTo(e,!0))}return s}},{key:"scrollViewportVertically",value:function(e,t,n){if(!this.wot.drawn)return!1;var r=this._getVariables(),o=r.fixedRowsBottom,i=r.fixedRowsTop,a=r.topOverlay,s=r.totalRows,u=!1;if(e>=0&&e<=Math.max(s-1,0)){var l=this.getFirstVisibleRow(),c=this.getLastVisibleRow();e>=i&&l>-1&&(e-1&&(e>c&&e0;d--)if(h+=t.sumCellSizes(d-1,d),u.top+l-h<=f){s=d;break}}}return s}},{key:"getLastVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=this.wot.rootWindow,a=n.getLastVisibleRow();if(t.mainTableScrollableElement===i){var s=or(n.wtRootElement),u=sr(i,i);if(s.top>u)for(var l=yr(i),c=r.getColumnHeaderHeight(),f=1;f<=o;f++)if(c+=t.sumCellSizes(f-1,f),s.top+c-u>=l){a=f-2;break}}return a}},{key:"getFirstVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=this.wot.rootWindow,a=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===i){var s=or(n.wtRootElement),u=vr(n.hider),l=vr(i),c=ur(i,i);if(s.left+u-l<=c)for(var f=r.getRowHeaderWidth(),h=o;h>0;h--)if(f+=t.sumCellSizes(h-1,h),s.left+u-f<=c){a=h;break}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=this.wot.rootWindow,a=n.getLastVisibleColumn();if(t.mainTableScrollableElement===i){var s=or(n.wtRootElement),u=ur(i,i);if(s.left>u)for(var l=vr(i),c=r.getRowHeaderWidth(),f=1;f<=o;f++)if(c+=t.sumCellSizes(f-1,f),s.left+c-u>=l){a=f-2;break}}return a}},{key:"_getVariables",value:function(){var e=this.wot,t=e.wtOverlays.topOverlay,n=e.wtOverlays.leftOverlay,r=e.wtTable,o=e.wtViewport,i=e.getSetting("totalRows"),a=e.getSetting("totalColumns"),s=e.getSetting("fixedRowsTop"),u=e.getSetting("fixedRowsBottom"),l=e.getSetting("fixedColumnsLeft");return{topOverlay:t,leftOverlay:n,wtTable:r,wtViewport:o,totalRows:i,totalColumns:a,fixedRowsTop:s,fixedRowsBottom:u,fixedColumnsLeft:l}}}]),e}(),Sa=_a;function Ca(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ka(e,t){for(var n=0;n0||r.getSetting("rowHeaders").length>0},shouldRenderTopOverlay:function(){return r.getSetting("fixedRowsTop")>0||r.getSetting("columnHeaders").length>0},shouldRenderBottomOverlay:function(){return r.getSetting("fixedRowsBottom")>0},minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(e,t,n){var o=r.getSetting("data",e,t);nr(n,void 0===o||null===o?"":o)},columnWidth:function(){},rowHeight:function(){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride: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,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onWindowResize:null,scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null},this.settings={},se(this.defaults,(function(e,t){if(void 0!==n[t])r.settings[t]=n[t];else{if(void 0===e)throw new Error('A required setting "'.concat(t,'" was not provided'));r.settings[t]=e}}))}return Ma(e,[{key:"update",value:function(e,t){var n=this;return void 0===t?se(e,(function(e,t){n.settings[t]=e})):this.settings[e]=t,this.wot}},{key:"getSetting",value:function(e,t,n,r,o){return"function"===typeof this.settings[e]?this.settings[e](t,n,r,o):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}(),Ra=Oa;function Ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ea(e,t){for(var n=0;n0&&t.clientHeight>0?t.clientHeight:1/0}return n}},{key:"getWorkspaceWidth",value:function(){var e,t,n=this.wot,r=n.rootDocument,o=n.rootWindow,i=this.instance.wtOverlays.leftOverlay.trimmingContainer,a=r.documentElement.offsetWidth,s=n.getSetting("totalColumns"),u=n.getSetting("preventOverflow");if(u)return pr(this.instance.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(a-this.getWorkspaceOffset().left,a):Math.min(this.getContainerFillWidth(),a-this.getWorkspaceOffset().left,a),i===o&&s>0&&this.sumColumnWidths(0,s-1)>e)return r.documentElement.clientWidth;if(i!==o&&(t=fr(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow",o),"scroll"===t||"hidden"===t||"auto"===t))return Math.max(e,i.clientWidth);var l=n.getSetting("stretchH");return"none"!==l&&l?e:Math.max(e,pr(this.instance.wtTable.TABLE))}},{key:"hasVerticalScroll",value:function(){return this.getWorkspaceActualHeight()>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.getWorkspaceActualWidth()>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){var n=this.wot.wtTable,r=0,o=e;while(o0&&(e-=t),e}},{key:"getRowHeaderWidth",value:function(){var e=this.instance.getSetting("rowHeaderWidth"),t=this.instance.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,r=t.length;n0?e-t:e}},{key:"createRowsCalculator",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ft,o=this.wot,i=o.wtSettings,a=o.wtOverlays,s=o.wtTable,u=o.rootDocument;this.rowHeaderWidth=NaN,e=i.settings.renderAllRows&&r===ft?1/0:this.getViewportHeight();var l=a.topOverlay.getScrollPosition()-a.topOverlay.getTableParentOffset();l<0&&(l=0);var c=o.getSetting("fixedRowsTop"),f=o.getSetting("fixedRowsBottom"),h=o.getSetting("totalRows");return c&&(n=a.topOverlay.sumCellSizes(0,c),l+=n,e-=n),f&&a.bottomOverlay.clone&&(n=a.bottomOverlay.sumCellSizes(h-f,h),e-=n),t=s.holder.clientHeight===s.holder.offsetHeight?0:Or(u),new kt({viewportSize:e,scrollOffset:l,totalItems:o.getSetting("totalRows"),itemSizeFn:function(e){return s.getRowHeight(e)},overrideFn:i.settings.viewportRowCalculatorOverride,calculationType:r,scrollbarHeight:t})}},{key:"createColumnsCalculator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ft,t=this.wot,n=t.wtSettings,r=t.wtOverlays,o=t.wtTable,i=t.rootDocument,a=this.getViewportWidth(),s=r.leftOverlay.getScrollPosition()-r.leftOverlay.getTableParentOffset();this.columnHeaderHeight=NaN,s<0&&(s=0);var u=t.getSetting("fixedColumnsLeft");if(u){var l=r.leftOverlay.sumCellSizes(0,u);s+=l,a-=l}return o.holder.clientWidth!==o.holder.offsetWidth&&(a-=Or(i)),new gt({viewportSize:a,scrollOffset:s,totalItems:t.getSetting("totalColumns"),itemSizeFn:function(e){return t.wtTable.getColumnWidth(e)},overrideFn:n.settings.viewportColumnCalculatorOverride,calculationType:e,stretchMode:t.getSetting("stretchH"),stretchingItemWidthFn:function(e,n){return t.getSetting("onBeforeStretchingColumnWidth",e,n)}})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e;if(t){var n=this.createRowsCalculator(ht),r=this.createColumnsCalculator(ht);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(r)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(ft),this.columnsRenderCalculator=this.createColumnsCalculator(ft)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(ht),this.columnsVisibleCalculator=this.createColumnsCalculator(ht)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){if(!this.rowsVisibleCalculator)return!1;var t=e.startRow,n=e.endRow,r=this.rowsRenderCalculator,o=r.startRow,i=r.endRow;return!(t0)&&!(n>i||n===i&&n0)&&!(n>i||n===i&&n0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||this.wtTable.isVisible()?this.wtTable.draw(e):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return this.wtTable.getCell(e);var n=this.wtSettings.getSetting("totalRows"),r=this.wtSettings.getSetting("fixedRowsTop"),o=this.wtSettings.getSetting("fixedRowsBottom"),i=this.wtSettings.getSetting("fixedColumnsLeft");if(e.row=n-o){if(this.wtOverlays.bottomLeftCornerOverlay&&this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col=n-o&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}},{key:"update",value:function(e,t){return this.wtSettings.update(e,t)}},{key:"scrollViewport",value:function(e,t,n,r,o){return!(e.col<0||e.row<0)&&this.wtScroll.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"getOverlayName",value:function(){return this.cloneOverlay?this.cloneOverlay.type:"master"}},{key:"exportSettingsAsClassNames",value:function(){var e=this,t={rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},n=[],r=[];se(t,(function(t,o){e.getSetting(o).length&&r.push(t),n.push(t)})),$n(this.wtTable.wtRootElement.parentNode,n),Jn(this.wtTable.wtRootElement.parentNode,r)}},{key:"getSetting",value:function(e,t,n,r,o){return this.wtSettings.getSetting(e,t,n,r,o)}},{key:"hasSetting",value:function(e){return this.wtSettings.has(e)}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}}]),e}(),Pa=Ha;function ja(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ya(e,t){for(var n=0;n=this.wot.getSetting("totalRows")-this.wot.getSetting("fixedRowsBottom"),s={left:this.clone.wtTable.spreader.offsetLeft,top:this.clone.wtTable.spreader.offsetTop},u={left:e.offsetLeft,top:e.offsetTop},l=null;return l=r?this.getRelativeCellPositionWithinWindow(i,o,u,s):this.getRelativeCellPositionWithinHolder(i,a,o,u,s),l}$e("The provided element is not a child of the ".concat(this.type," overlay"))}},{key:"getRelativeCellPositionWithinWindow",value:function(e,t,n,r){var o=this.wot.wtTable.wtRootElement.getBoundingClientRect(),i=0,a=0;if(i=t?o.left<=0?-1*o.left:0:r.left,e){var s=this.clone.wtTable.TABLE.getBoundingClientRect();a=s.top-o.top}else a=r.top;return{left:n.left+i,top:n.top+a}}},{key:"getRelativeCellPositionWithinHolder",value:function(e,t,n,r,o){var i={horizontal:this.clone.cloneSource.wtOverlays.leftOverlay.getScrollPosition(),vertical:this.clone.cloneSource.wtOverlays.topOverlay.getScrollPosition()},a=0,s=0;if(n||(a=i.horizontal-o.left),t){var u=this.wot.wtTable.wtRootElement.getBoundingClientRect(),l=this.clone.wtTable.TABLE.getBoundingClientRect();s=-1*l.top+u.top}else e||(s=i.vertical-o.top);return{left:r.left-a,top:r.top-s}}},{key:"makeClone",value:function(t){if(-1===e.CLONE_TYPES.indexOf(t))throw new Error('Clone type "'.concat(t,'" is not supported.'));var n=this.wot,r=n.wtTable,o=n.rootDocument,i=n.rootWindow,a=o.createElement("DIV"),s=o.createElement("TABLE"),u=r.wtRootElement.parentNode;a.className="ht_clone_".concat(t," handsontable"),a.style.position="absolute",a.style.top=0,a.style.left=0,a.style.overflow="visible",s.className=r.TABLE.className,a.appendChild(s),this.type=t,u.appendChild(a);var l=this.wot.getSetting("preventOverflow");return!0===l||"horizontal"===l&&this.type===e.CLONE_TOP||"vertical"===l&&this.type===e.CLONE_LEFT?this.mainTableScrollableElement=i:"hidden"===i.getComputedStyle(u).getPropertyValue("overflow")?this.mainTableScrollableElement=r.holder:this.mainTableScrollableElement=lr(r.TABLE),new Pa({cloneSource:this.wot,cloneOverlay:this,table:s})}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder,t=this.clone.wtTable.hider,n=e.style,r=t.style,o=e.parentNode.style;j([n,r,o],(function(e){e.width="",e.height=""}))}}},{key:"destroy",value:function(){new qi(this.clone).destroy()}}]),e}(),Wa=Va;function Ua(e){return Ua="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},Ua(e)}function za(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ga(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]&&arguments[0],t=this.wot,n=t.wtOverlays,r=t.wtViewport,o=t.getSetting("totalRows"),i=t.getSetting("totalColumns"),a=t.getSetting("rowHeaders"),s=a.length,u=t.getSetting("columnHeaders"),l=u.length,c=!1,f=e;if(this.isMaster&&(this.holderOffset=or(this.holder),f=r.createRenderCalculators(f),s&&!t.getSetting("fixedColumnsLeft"))){var h=n.leftOverlay.getScrollPosition(),d=this.correctHeaderWidth;this.correctHeaderWidth=h>0,d!==this.correctHeaderWidth&&(f=!1)}if(this.isMaster&&(c=n.prepareOverlays()),f)this.isMaster&&r.createVisibleCalculators(),n&&n.refresh(!0);else{this.isMaster?this.tableOffset=or(this.TABLE):this.tableOffset=this.wot.cloneSource.wtTable.tableOffset;var p=o>0?this.getFirstRenderedRow():0,m=i>0?this.getFirstRenderedColumn():0;this.rowFilter=new Ut(p,o,l),this.columnFilter=new Yt(m,i,s);var y,v=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();var g={};this.wot.getSetting("beforeDraw",!0,g),v=!0!==g.skipRender}if(v)if(this.tableRenderer.setHeaderContentRenderers(a,u),(this.is(Wa.CLONE_BOTTOM)||this.is(Wa.CLONE_BOTTOM_LEFT_CORNER))&&this.tableRenderer.setHeaderContentRenderers(a,[]),this.resetOversizedRows(),this.tableRenderer.setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&(y=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null,this.markOversizedColumnHeaders()),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(Wa.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster){this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var b=pr(this.hider),w=pr(this.TABLE);0!==b&&w!==b&&(this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),y!==this.wot.wtViewport.getWorkspaceWidth()&&(this.wot.wtViewport.containerWidth=null,this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),this.wot.getSetting("onDraw",!0)}else this.is(Wa.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize()}if(this.isMaster){var _=n.topOverlay.resetFixedPosition();n.bottomOverlay.clone&&(_=n.bottomOverlay.resetFixedPosition()||_),_=n.leftOverlay.resetFixedPosition()||_,n.topLeftCornerOverlay&&n.topLeftCornerOverlay.resetFixedPosition(),n.bottomLeftCornerOverlay&&n.bottomLeftCornerOverlay.clone&&n.bottomLeftCornerOverlay.resetFixedPosition(),_&&(n.refreshAll(),n.adjustElementsSize())}return this.refreshSelections(f),c&&n.syncScrollWithMaster(),t.drawn=!0,this}},{key:"markIfOversizedColumnHeader",value:function(e){var t,n,r,o=this.wot.wtTable.columnFilter.renderedToSource(e),i=this.wot.getSetting("columnHeaders").length,a=this.wot.wtSettings.settings.defaultRowHeight,s=this.wot.getSetting("columnHeaderHeight")||[];while(i)i-=1,t=this.wot.wtTable.getColumnHeaderHeight(i),n=this.wot.wtTable.getColumnHeader(o,i),n&&(r=yr(n),(!t&&a=0)throw new Error("TR was expected to be rendered but is not");var a=t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(r)];if(!a&&r>=0)throw new Error("TD or TH was expected to be rendered but is not");return a}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];if(n)return n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getRowHeader",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return t?t.childNodes[0]:void 0}},{key:"getCoords",value:function(e){var t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=Bn(t,["TD","TH"])),null===t)return null;var n=t.parentNode,r=n.parentNode,o=Wn(n),i=t.cellIndex;if(Un(Wa.CLONE_TOP_LEFT_CORNER,t,this.wtRootElement)||Un(Wa.CLONE_TOP,t,this.wtRootElement))"THEAD"===r.nodeName&&(o-=r.childNodes.length);else if(Un(Wa.CLONE_BOTTOM_LEFT_CORNER,t,this.wtRootElement)||Un(Wa.CLONE_BOTTOM,t,this.wtRootElement)){var a=this.wot.getSetting("totalRows");o=a-r.childNodes.length+o}else o=r===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o);return i=Un(Wa.CLONE_TOP_LEFT_CORNER,t,this.wtRootElement)||Un(Wa.CLONE_LEFT,t,this.wtRootElement)||Un(Wa.CLONE_BOTTOM_LEFT_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),new Et(o,i)}},{key:"markOversizedRows",value:function(){if(!this.wot.getSetting("externalRowCalculator")){var e,t,n,r,o,i=this.TBODY.childNodes.length,a=i*this.wot.wtSettings.settings.defaultRowHeight,s=yr(this.TBODY)-1;if(a!==s||this.wot.getSetting("fixedRowsBottom"))while(i)i-=1,n=this.rowFilter.renderedToSource(i),e=this.getRowHeight(n),r=this.getTrForRow(n),o=r.querySelector("th"),t=o?yr(o):yr(r)-1,(!e&&this.wot.wtSettings.settings.defaultRowHeight=0)return!1;var t=this.wot.getSetting("rowHeaders"),n=t.length;return Math.abs(e)<=n}},{key:"isRowHeaderRendered",value:function(e){if(e>=0)return!1;var t=this.wot.getSetting("columnHeaders"),n=t.length;return Math.abs(e)<=n}},{key:"isRowBeforeRenderedRows",value:function(e){var t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):ethis.getLastRenderedRow()}},{key:"isColumnBeforeRenderedColumns",value:function(e){var t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):ethis.getLastRenderedColumn()}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&e>this.getLastVisibleColumn()}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&e>this.getLastVisibleRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"allRowsInViewport",value:function(){return this.wot.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"allColumnsInViewport",value:function(){return this.wot.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getRowHeight",value:function(e){return this.rowUtils.getHeight(e)}},{key:"getColumnHeaderHeight",value:function(e){return this.columnUtils.getHeaderHeight(e)}},{key:"getColumnWidth",value:function(e){return this.columnUtils.getWidth(e)}},{key:"getStretchedColumnWidth",value:function(e){return this.columnUtils.getStretchedColumnWidth(e)}},{key:"hasDefinedSize",value:function(){return this.hasTableHeight&&this.hasTableWidth}},{key:"isVisible",value:function(){return rr(this.TABLE)}},{key:"_modifyRowHeaderWidth",value:function(e){var t=Hr(e)?e():null;return Array.isArray(t)?(t=qa(t),t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}},{key:"_correctRowHeaderWidth",value:function(e){var t=e;return"number"!==typeof e&&(t=this.wot.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}]),e}(),ds=hs,ps="calculatedRows",ms={getFirstRenderedRow:function(){var e=this.wot.wtViewport.rowsRenderCalculator.startRow;return null===e?-1:e},getFirstVisibleRow:function(){var e=this.wot.wtViewport.rowsVisibleCalculator.startRow;return null===e?-1:e},getLastRenderedRow:function(){var e=this.wot.wtViewport.rowsRenderCalculator.endRow;return null===e?-1:e},getLastVisibleRow:function(){var e=this.wot.wtViewport.rowsVisibleCalculator.endRow;return null===e?-1:e},getRenderedRowsCount:function(){return this.wot.wtViewport.rowsRenderCalculator.count},getVisibleRowsCount:function(){return this.wot.wtViewport.rowsVisibleCalculator.count}};ae(ms,"MIXIN_NAME",ps,{writable:!1,enumerable:!1});var ys=ms,vs="calculatedColumns",gs={getFirstRenderedColumn:function(){var e=this.wot.wtViewport.columnsRenderCalculator.startColumn;return null===e?-1:e},getFirstVisibleColumn:function(){var e=this.wot.wtViewport.columnsVisibleCalculator.startColumn;return null===e?-1:e},getLastRenderedColumn:function(){var e=this.wot.wtViewport.columnsRenderCalculator.endColumn;return null===e?-1:e},getLastVisibleColumn:function(){var e=this.wot.wtViewport.columnsVisibleCalculator.endColumn;return null===e?-1:e},getRenderedColumnsCount:function(){return this.wot.wtViewport.columnsRenderCalculator.count},getVisibleColumnsCount:function(){return this.wot.wtViewport.columnsVisibleCalculator.count}};ae(gs,"MIXIN_NAME",vs,{writable:!1,enumerable:!1});var bs=gs;function ws(e){return ws="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},ws(e)}function _s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ss(e,t){for(var n=0;n0,this.hasTableWidth=c>0}this.isTableVisible=rr(this.TABLE)}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wot,t=e.getOverlayName(),n=e.getSetting("columnHeaders"),r=n.length;if(r&&!e.wtViewport.hasOversizedColumnHeadersMarked[t]){for(var o=e.getSetting("rowHeaders"),i=o.length,a=this.getRenderedColumnsCount(),s=0;s0?-s:0,n=o,o+="px",Er(t,o,i)}var l=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),l}}},{key:"setScrollPosition",value:function(e){var t=this.wot.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollX!==e?(t.scrollTo(e,ir(t)),n=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,n=!0),n}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){var n=this.wot.wtSettings.defaultColumnWidth,r=e,o=0;while(r0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,r=e.rootWindow,o=Or(n),i=this.clone.wtTable.holder.parentNode,a=i.style,s=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==r||"vertical"===s){var u=this.wot.wtViewport.getWorkspaceHeight();this.wot.wtOverlays.hasScrollbarBottom&&(u-=o),u=Math.min(u,t.wtRootElement.scrollHeight),a.height="".concat(u,"px")}else a.height="";this.clone.wtTable.holder.style.height=a.height;var l=pr(this.clone.wtTable.TABLE);a.width="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=Math.abs(null!==(e=null===n||void 0===n?void 0:n.getCell().getBorder(this.wot).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.height=this.hider.style.height,t.style.height=t.parentNode.style.height,t.style.width="".concat(parseInt(t.parentNode.style.width,10)+r,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalColumns");if("number"===typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style.left="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style.left="0"}this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"===typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.top=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=this.wot.cloneSource?this.wot.cloneSource:this.wot,o=r.wtTable.holder,i=0;return t&&o.offsetWidth!==o.clientWidth&&(i=Or(this.wot.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),e),n+=i,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=this.wot.getSetting("preventOverflow"),t=0;return e||this.trimmingContainer!==this.wot.rootWindow||(t=this.wot.wtTable.holderOffset.left),t}},{key:"getScrollPosition",value:function(){return ur(this.mainTableScrollableElement,this.wot.rootWindow)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("rowHeaders"),r=this.wot.getSetting("fixedColumnsLeft"),o=this.wot.getSetting("totalRows");o?$n(t,"emptyRows"):Jn(t,"emptyRows");var i=!1;if(r&&!n.length)Jn(t,"innerBorderLeft");else if(!r&&n.length){var a=Zn(t,"innerBorderLeft");e?(Jn(t,"innerBorderLeft"),i=!a):($n(t,"innerBorderLeft"),i=a)}return i}}]),n}(Wa);Wa.registerOverlay(Wa.CLONE_LEFT,iu);var au="stickyRowsTop",su={getFirstRenderedRow:function(){var e=this.wot.getSetting("totalRows");return 0===e?-1:0},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.getRenderedRowsCount()-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wot.getSetting("totalRows");return Math.min(this.wot.getSetting("fixedRowsTop"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};ae(su,"MIXIN_NAME",au,{writable:!1,enumerable:!1});var uu=su;function lu(e){return lu="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},lu(e)}function cu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fu(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&&hu(e,t)}function hu(e,t){return hu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hu(e,t)}function du(e){var t=yu();return function(){var n,r=vu(e);if(t){var o=vu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pu(this,n)}}function pu(e,t){return!t||"object"!==lu(t)&&"function"!==typeof t?mu(e):t}function mu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yu(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function vu(e){return vu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vu(e)}var gu=function(e){fu(n,e);var t=du(n);function n(){return cu(this,n),t.apply(this,arguments)}return n}(ds);re(gu,uu),re(gu,bs);var bu=gu;function wu(e){return wu="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},wu(e)}function _u(e,t,n){return _u=Lu()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&Ou(i,n.prototype),i},_u.apply(null,arguments)}function Su(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cu(e,t){for(var n=0;n0?-u:0,n=i,i+="px",Er(e,o,i)}var f=this.adjustHeaderBordersPosition(n,r);return this.adjustElementsSize(),f}}},{key:"setScrollPosition",value:function(e){var t=this.wot.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollY!==e?(t.scrollTo(ar(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){var n=this.wot.wtSettings.settings.defaultRowHeight,r=e,o=0;while(r0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,r=e.rootWindow,o=Or(n),i=this.clone.wtTable.holder.parentNode,a=i.style,s=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===s){var u=this.wot.wtViewport.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(u-=o),u=Math.min(u,t.wtRootElement.scrollWidth),a.width="".concat(u,"px")}else a.width="";this.clone.wtTable.holder.style.width=a.width;var l=mr(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),a.height="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=Math.abs(null!==(e=null===n||void 0===n?void 0:n.getCell().getBorder(this.wot).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.width=this.hider.style.width,t.style.width=t.parentNode.style.width,t.style.height="".concat(parseInt(t.parentNode.style.height,10)+r,"px")}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if("number"===typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(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()}},{key:"syncOverlayOffset",value:function(){"number"===typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.left="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.left=""}},{key:"scrollTo",value:function(e,t){var n=this.wot,r=n.cloneSource?n.cloneSource:n,o=r.wtTable.holder,i=this.getTableParentOffset(),a=0;if(t&&o.offsetHeight!==o.clientHeight&&(a=Or(n.rootDocument)),t){var s=n.getSetting("fixedRowsBottom"),u=n.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(u-s,u),i+=1}else i+=this.sumCellSizes(n.getSetting("fixedRowsTop"),e);return i+=a,this.setScrollPosition(i)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.wot.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return sr(this.mainTableScrollableElement,this.wot.rootWindow)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.wot.wtTable.holder.parentNode,r=this.wot.getSetting("totalColumns");r?$n(n,"emptyColumns"):Jn(n,"emptyColumns");var o=!1;if(!t){var i=this.wot.getSetting("fixedRowsTop"),a=this.cachedFixedRowsTop!==i,s=this.wot.getSetting("columnHeaders");if((a||0===i)&&s.length>0){var u=Zn(n,"innerBorderTop");this.cachedFixedRowsTop=this.wot.getSetting("fixedRowsTop"),e||0===this.wot.getSetting("totalRows")?(Jn(n,"innerBorderTop"),o=!u):($n(n,"innerBorderTop"),o=u)}}if(0===this.wot.getSetting("rowHeaders").length){var l=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(l)for(var c=0;c0&&(u="".concat(-i,"px")),t&&"horizontal"!==t||o<0&&a-e.offsetHeight>0&&(l="".concat(-o,"px")),Er(e,u,l)}else Ar(e);var c=mr(this.clone.wtTable.TABLE),f=pr(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(c=0),e.style.height="".concat(c,"px"),e.style.width="".concat(f,"px"),!1}}}]),n}(Wa);Wa.registerOverlay(Wa.CLONE_TOP_LEFT_CORNER,rl);var ol="stickyRowsBottom",il={getFirstRenderedRow:function(){var e=this.wot.getSetting("totalRows"),t=this.wot.getSetting("fixedRowsBottom"),n=e-t;return 0===e||0===t?-1:n<0?0:n},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.wot.getSetting("totalRows")-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wot.getSetting("totalRows");return Math.min(this.wot.getSetting("fixedRowsBottom"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};ae(il,"MIXIN_NAME",ol,{writable:!1,enumerable:!1});var al=il;function sl(e){return sl="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},sl(e)}function ul(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ll(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&&cl(e,t)}function cl(e,t){return cl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cl(e,t)}function fl(e){var t=pl();return function(){var n,r=ml(e);if(t){var o=ml(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hl(this,n)}}function hl(e,t){return!t||"object"!==sl(t)&&"function"!==typeof t?dl(e):t}function dl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pl(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function ml(e){return ml=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ml(e)}var yl=function(e){ll(n,e);var t=fl(n);function n(){return ul(this,n),t.apply(this,arguments)}return n}(ds);re(yl,al),re(yl,bs);var vl=yl;function gl(e){return gl="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},gl(e)}function bl(e,t,n){return bl=Tl()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&kl(i,n.prototype),i},bl.apply(null,arguments)}function wl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _l(e,t){for(var n=0;nc?l-c:0,t=o,o+="px",e.style.left=r,e.style.bottom=o}var f=this.adjustHeaderBordersPosition(t);return this.adjustElementsSize(),f}}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,r=this.clone.wtTable.holder.parentNode,o=Or(n);t.holder.clientHeight===t.holder.offsetHeight&&(o=0),r.style.bottom="".concat(o,"px")}},{key:"setScrollPosition",value:function(e){var t=this.wot.rootWindow,n=!1;return this.mainTableScrollableElement===t?(t.scrollTo(ar(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){var n=this.wot,r=n.wtTable,o=n.wtSettings,i=o.settings.defaultRowHeight,a=e,s=0;while(a0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=e.rootWindow,o=Or(this.wot.rootDocument),i=this.clone.wtTable.holder.parentNode,a=i.style,s=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===s){var u=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(u-=o),u=Math.min(u,t.wtRootElement.scrollWidth),a.width="".concat(u,"px")}else a.width="";this.clone.wtTable.holder.style.width=a.width;var l=mr(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),a.height="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=this.clone.wtTable.holder;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if("number"===typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(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()}},{key:"syncOverlayOffset",value:function(){"number"===typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.left="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.left=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=this.wot.cloneSource?this.wot.cloneSource:this.wot,o=r.wtTable.holder,i=0;t&&o.offsetHeight!==o.clientHeight&&(i=Or(this.wot.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wot.getSetting("fixedRowsBottom"),e),n+=i,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.wot.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return sr(this.mainTableScrollableElement,this.wot.rootWindow)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.getSetting("fixedRowsBottom"),n=this.cachedFixedRowsBottom!==t,r=this.wot.getSetting("columnHeaders"),o=!1;if((n||0===t)&&r.length>0){var i=this.wot.wtTable.holder.parentNode,a=Zn(i,"innerBorderBottom");this.cachedFixedRowsBottom=this.wot.getSetting("fixedRowsBottom"),e||0===this.wot.getSetting("totalRows")?(Jn(i,"innerBorderBottom"),o=!a):($n(i,"innerBorderBottom"),o=a)}return o}}]),n}(Wa);Wa.registerOverlay(Wa.CLONE_BOTTOM,Al);function Il(e){return Il="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},Il(e)}function xl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dl(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&&Nl(e,t)}function Nl(e,t){return Nl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nl(e,t)}function Hl(e){var t=Yl();return function(){var n,r=Bl(e);if(t){var o=Bl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pl(this,n)}}function Pl(e,t){return!t||"object"!==Il(t)&&"function"!==typeof t?jl(e):t}function jl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yl(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bl(e)}var Fl=function(e){Dl(n,e);var t=Hl(n);function n(){return xl(this,n),t.apply(this,arguments)}return n}(ds);re(Fl,al),re(Fl,Ns);var Vl=Fl;function Wl(e){return Wl="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},Wl(e)}function Ul(e,t,n){return Ul=ql()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&Jl(i,n.prototype),i},Ul.apply(null,arguments)}function zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gl(e,t){for(var n=0;nc?u-c:0,r+="px",n+="px",t.style.left=n,t.style.bottom=r}else Ar(t),this.repositionOverlay();var f=mr(this.clone.wtTable.TABLE),h=pr(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(f=0),t.style.height="".concat(f,"px"),t.style.width="".concat(h,"px"),!1}}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.rootDocument,r=this.clone.wtTable.holder.parentNode,o=Or(n);t.holder.clientHeight===t.holder.offsetHeight&&(o=0),r.style.bottom="".concat(o,"px")}}]),n}(Wa);Wa.registerOverlay(Wa.CLONE_BOTTOM_LEFT_CORNER,tc);function nc(e,t){return sc(e)||ac(e,t)||oc(e,t)||rc()}function rc(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function oc(e,t){if(e){if("string"===typeof e)return ic(e,t);var n=Object.prototype.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)?ic(e,t):void 0}}function ic(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nMath.ceil(o.top+o.height)||(e.clientXMath.ceil(o.left+o.width)||void 0)))}function a(e){i(e)&&(n.eventManager.removeEventListener(r,"mousemove",a),t.style.display="block")}}},{key:"createBorders",value:function(e){var t=this.wot.rootDocument;this.main=t.createElement("div");var n=["top","left","bottom","right","corner"],r=this.main.style;r.position="absolute",r.top=0,r.left=0;for(var o=0;o<5;o++){var i=n[o],a=t.createElement("div");a.className="wtBorder ".concat(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(a.className+=" hidden"),r=a.style,r.backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,r.height=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),r.width=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),this.main.appendChild(a)}this.top=this.main.childNodes[0],this.left=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.right=this.main.childNodes[3],this.topStyle=this.top.style,this.leftStyle=this.left.style,this.bottomStyle=this.bottom.style,this.rightStyle=this.right.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),kn()&&this.createMultipleSelectorHandles(),this.disappear();var s=this.wot.wtTable,u=s.bordersHolder;u||(u=t.createElement("div"),u.className="htBorders",s.bordersHolder=u,s.spreader.appendChild(u)),u.appendChild(this.main)}},{key:"createMultipleSelectorHandles",value:function(){var e=this,t=this.wot.rootDocument;this.selectionHandles={topLeft:t.createElement("DIV"),topLeftHitArea:t.createElement("DIV"),bottomRight:t.createElement("DIV"),bottomRightHitArea:t.createElement("DIV")};var n=10,r=40;this.selectionHandles.topLeft.className="topLeftSelectionHandle",this.selectionHandles.topLeftHitArea.className="topLeftSelectionHandle-HitArea",this.selectionHandles.bottomRight.className="bottomRightSelectionHandle",this.selectionHandles.bottomRightHitArea.className="bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={topLeft:this.selectionHandles.topLeft.style,topLeftHitArea:this.selectionHandles.topLeftHitArea.style,bottomRight:this.selectionHandles.bottomRight.style,bottomRightHitArea:this.selectionHandles.bottomRightHitArea.style};var o={position:"absolute",height:"".concat(r,"px"),width:"".concat(r,"px"),"border-radius":"".concat(parseInt(r/1.5,10),"px")};se(o,(function(t,n){e.selectionHandles.styles.bottomRightHitArea[n]=t,e.selectionHandles.styles.topLeftHitArea[n]=t}));var i={position:"absolute",height:"".concat(n,"px"),width:"".concat(n,"px"),"border-radius":"".concat(parseInt(n/1.5,10),"px"),background:"#F5F5FF",border:"1px solid #4285c8"};se(i,(function(t,n){e.selectionHandles.styles.bottomRight[n]=t,e.selectionHandles.styles.topLeft[n]=t})),this.main.appendChild(this.selectionHandles.topLeft),this.main.appendChild(this.selectionHandles.bottomRight),this.main.appendChild(this.selectionHandles.topLeftHitArea),this.main.appendChild(this.selectionHandles.bottomRightHitArea)}},{key:"isPartRange",value:function(e,t){var n=this.wot.selections.createOrGetArea();return!(!n.cellRange||e===n.cellRange.to.row&&t===n.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition",value:function(e,t,n,r,o,i){var a=parseInt(this.selectionHandles.styles.topLeft.width,10),s=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top="".concat(parseInt(n-a,10),"px"),this.selectionHandles.styles.topLeft.left="".concat(parseInt(r-a,10),"px"),this.selectionHandles.styles.topLeftHitArea.top="".concat(parseInt(n-s/4*3,10),"px"),this.selectionHandles.styles.topLeftHitArea.left="".concat(parseInt(r-s/4*3,10),"px"),this.selectionHandles.styles.bottomRight.top="".concat(parseInt(n+i,10),"px"),this.selectionHandles.styles.bottomRight.left="".concat(parseInt(r+o,10),"px"),this.selectionHandles.styles.bottomRightHitArea.top="".concat(parseInt(n+i-s/4,10),"px"),this.selectionHandles.styles.bottomRightHitArea.left="".concat(parseInt(r+o-s/4,10),"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(this.selectionHandles.styles.topLeft.display="block",this.selectionHandles.styles.topLeftHitArea.display="block",this.isPartRange(e,t)?(this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"):(this.selectionHandles.styles.bottomRight.display="block",this.selectionHandles.styles.bottomRightHitArea.display="block")):(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.topLeftHitArea.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsLeft")?(this.selectionHandles.styles.topLeft.zIndex="9999",this.selectionHandles.styles.topLeftHitArea.zIndex="9999"):(this.selectionHandles.styles.topLeft.zIndex="",this.selectionHandles.styles.topLeftHitArea.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,o,i=this.wot,a=i.wtTable,s=i.rootDocument,u=i.rootWindow,l=a.getRenderedRowsCount(),c=0;c=e[0]&&f<=e[2]){t=f;break}}for(var h=l-1;h>=0;h-=1){var d=a.rowFilter.renderedToSource(h);if(d>=e[0]&&d<=e[2]){n=d;break}}for(var p=a.getRenderedColumnsCount(),m=0;m=e[1]&&y<=e[3]){r=y;break}}for(var v=p-1;v>=0;v-=1){var g=a.columnFilter.renderedToSource(v);if(g>=e[1]&&g<=e[3]){o=g;break}}if(void 0!==t&&void 0!==r){var b=a.getCell(new Et(t,r)),w=t!==n||r!==o,_=w?a.getCell(new Et(n,o)):b,S=or(b),C=w?or(_):S,k=or(a.TABLE),M=S.top,O=S.left,R=O-k.left-1,T=C.left+pr(_)-O;if(this.isEntireColumnSelected(t,n)){var E=this.getDimensionsFromHeader("columns",r,o,k),L=null;if(E){var A=nc(E,3);L=A[0],R=A[1],T=A[2]}L&&(b=L)}var I=M-k.top-1,x=C.top+mr(_)-M;if(this.isEntireRowSelected(r,o)){var D=this.getDimensionsFromHeader("rows",t,n,k),N=null;if(D){var H=nc(D,3);N=H[0],I=H[1],x=H[2]}N&&(b=N)}var P=dr(b,u);parseInt(P.borderTopWidth,10)>0&&(I+=1,x=x>0?x-1:0),parseInt(P.borderLeftWidth,10)>0&&(R+=1,T=T>0?T-1:0),this.topStyle.top="".concat(I,"px"),this.topStyle.left="".concat(R,"px"),this.topStyle.width="".concat(T,"px"),this.topStyle.display="block",this.leftStyle.top="".concat(I,"px"),this.leftStyle.left="".concat(R,"px"),this.leftStyle.height="".concat(x,"px"),this.leftStyle.display="block";var j=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(I+x-j,"px"),this.bottomStyle.left="".concat(R,"px"),this.bottomStyle.width="".concat(T,"px"),this.bottomStyle.display="block",this.rightStyle.top="".concat(I,"px"),this.rightStyle.left="".concat(R+T-j,"px"),this.rightStyle.height="".concat(x+1,"px"),this.rightStyle.display="block";var Y=this.settings.border.cornerVisible;Y="function"===typeof Y?Y(this.settings.layerLevel):Y;var B=this.wot.getSetting("onModifyGetCellCoords",n,o),F=n,V=o;if(B&&Array.isArray(B)){var W=nc(B,4);F=W[2],V=W[3]}if(kn()||!Y||this.isPartRange(F,V))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(I+x+this.cornerCenterPointOffset-1,"px"),this.cornerStyle.left="".concat(R+T+this.cornerCenterPointOffset-1,"px"),this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var U=cr(a.TABLE),z=U===u;if(z&&(U=s.documentElement),o===this.wot.getSetting("totalColumns")-1){var G=z?_.getBoundingClientRect().left:_.offsetLeft,X=G+pr(_)+parseInt(this.cornerDefaultStyle.width,10)/2,Z=X>=vr(U);Z&&(this.cornerStyle.left="".concat(Math.floor(R+T+this.cornerCenterPointOffset-parseInt(this.cornerDefaultStyle.width,10)/2),"px"),this.cornerStyle.borderRightWidth=0)}if(n===this.wot.getSetting("totalRows")-1){var J=z?_.getBoundingClientRect().top:_.offsetTop,$=J+mr(_)+parseInt(this.cornerDefaultStyle.height,10)/2,Q=$>=yr(U);Q&&(this.cornerStyle.top="".concat(Math.floor(I+x+this.cornerCenterPointOffset-parseInt(this.cornerDefaultStyle.height,10)/2),"px"),this.cornerStyle.borderBottomWidth=0)}this.cornerStyle.display="block"}kn()&&this.updateMultipleSelectionHandlesPosition(n,o,I,R,T,x)}else this.disappear()}}},{key:"isEntireColumnSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}},{key:"isEntireRowSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}},{key:"getDimensionsFromHeader",value:function(e,t,n,r){var o=this.wot.wtTable,i=o.wtRootElement.parentNode,a=null,s=null,u=null,l=null,c=null,f=null,h=null,d=null;switch(e){case"rows":a=function(){return o.getRowHeader.apply(o,arguments)},s=function(){return mr.apply(void 0,arguments)},u="ht__selection--rows",f="top";break;case"columns":a=function(){return o.getColumnHeader.apply(o,arguments)},s=function(){return pr.apply(void 0,arguments)},u="ht__selection--columns",f="left";break;default:}if(i.className.includes(u)){var p=this.wot.getSetting("columnHeaders").length;if(h=a(t,p-1),d=a(n,p-1),!h||!d)return!1;var m=or(h),y=or(d);return h&&d&&(l=m[f]-r[f]-1,c=y[f]+s(d)-m[f]),[h,l,c]}return!1}},{key:"changeBorderStyle",value:function(e,t){var n=this[e].style,r=t[e];!r||r.hide?Jn(this[e],"hidden"):(Zn(this[e],"hidden")&&$n(this[e],"hidden"),n.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(n.height="".concat(r.width,"px")),"right"!==e&&"left"!==e||(n.width="".concat(r.width,"px")))}},{key:"changeBorderToDefaultStyle",value:function(e){var t={width:1,color:"#000"},n=this[e].style;n.backgroundColor=t.color,n.width="".concat(t.width,"px"),n.height="".concat(t.width,"px")}},{key:"toggleHiddenClass",value:function(e,t){this.changeBorderToDefaultStyle(e),t?Jn(this[e],"hidden"):$n(this[e],"hidden")}},{key:"disappear",value:function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",kn()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")}},{key:"destroy",value:function(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}]),e}(),hc=fc;n("07ac");function dc(e,t){return gc(e)||vc(e,t)||mc(e,t)||pc()}function pc(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mc(e,t){if(e){if("string"===typeof e)return yc(e,t);var n=Object.prototype.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)?yc(e,t):void 0}}function yc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n4&&void 0!==arguments[4]&&arguments[4],i=e.wtTable.getCell(new Et(t,n));if("object"===bc(i)){var a=r;o&&(a=this.classNameGenerator(i),this.classNames.includes(a)||this.classNames.push(a)),Jn(i,a)}return this}},{key:"linearClassNameGenerator",value:function(e,t){return function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0===t||0===o)return e;var i=o>=0?o:t,a=e;i-=1;var s=0===i?e:"".concat(e,"-").concat(i);if(Zn(r,s)){var u=i+1;a="".concat(e,"-").concat(u)}else a=n(r,i);return a}}},{key:"draw",value:function(e){if(this.isEmpty())this.settings.border&&this.getBorder(e).disappear();else{var t=e.wtTable.getRenderedRowsCount(),n=e.wtTable.getRenderedColumnsCount(),r=this.getCorners(),o=dc(r,4),i=o[0],a=o[1],s=o[2],u=o[3];if(null!==a&&null!==u)for(var l=0;l=a&&c<=u){var f=e.wtTable.getColumnHeader(c);if(f){var h=[];this.settings.highlightHeaderClassName&&h.push(this.settings.highlightHeaderClassName),this.settings.highlightColumnClassName&&h.push(this.settings.highlightColumnClassName),Jn(f,h)}}}if(null!==i&&null!==s)for(var d=0;d=i&&p<=s){var m=e.wtTable.getRowHeader(p);if(m){var y=[];this.settings.highlightHeaderClassName&&y.push(this.settings.highlightHeaderClassName),this.settings.highlightRowClassName&&y.push(this.settings.highlightRowClassName),Jn(m,y)}}if(null!==a&&null!==u)for(var v=0;v=i&&p<=s&&g>=a&&g<=u?this.settings.className&&this.addClassAtCoords(e,p,g,this.settings.className,this.settings.markIntersections):p>=i&&p<=s?this.settings.highlightRowClassName&&this.addClassAtCoords(e,p,g,this.settings.highlightRowClassName):g>=a&&g<=u&&this.settings.highlightColumnClassName&&this.addClassAtCoords(e,p,g,this.settings.highlightColumnClassName);var b=e.getSetting("onAfterDrawSelection",p,g,this.settings.layerLevel);"string"===typeof b&&this.addClassAtCoords(e,p,g,b)}}e.getSetting("onBeforeDrawBorders",r,this.settings.className),this.settings.border&&this.getBorder(e).appear(r)}}},{key:"destroy",value:function(){Object.values(this.instanceBorders).forEach((function(e){return e.destroy()}))}}]),e}(),kc=Cc,Mc="hooksRefRegisterer",Oc={_hooksStorage:Object.create(null),addHook:function(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey:function(e){var t=this;j(this._hooksStorage[e]||[],(function(n){t.hot.removeHook(e,n)}))},clearHooks:function(){var e=this;se(this._hooksStorage,(function(t,n){return e.removeHooksByKey(n)})),this._hooksStorage={}}};ae(Oc,"MIXIN_NAME",Mc,{writable:!1,enumerable:!1});var Rc=Oc;function Tc(e){return Tc="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},Tc(e)}function Ec(e,t){return Dc(e)||xc(e,t)||Ac(e,t)||Lc()}function Lc(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ac(e,t){if(e){if("string"===typeof e)return Ic(e,t);var n=Object.prototype.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)?Ic(e,t):void 0}}function Ic(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e-this.hot.getSettings().fixedRowsBottom?t=this.col0&&void 0!==arguments[0]&&arguments[0],n=e.getSelectedRange();if(n)for(var r=0;r0&&e.setDataAtCell(c)}}function y(t){var n=e.getSelectedRange();if(n)for(var r=0;r0&&!u.readOnly&&t(c)}}}t.appendChild(u),c&&t.appendChild(s.createTextNode("#bad-value#")),Kc.has(e)||(Kc.set(e,!0),e.addHook("beforeKeyDown",p))}function nf(e){var t=qc.get(e);if(!t){var n=e.rootElement;t=new qi(e),t.addEventListener(n,"click",(function(t){return sf(t,e)})),t.addEventListener(n,"mouseup",(function(t){return af(t,e)})),t.addEventListener(n,"change",(function(t){return uf(t,e)})),qc.set(e,t)}return t}function rf(e){var t=e.createElement("input");return t.className="htCheckboxRendererInput",t.type="checkbox",t.setAttribute("autocomplete","off"),t.setAttribute("tabindex","-1"),t.cloneNode(!1)}function of(e,t){var n=e.createElement("label");return n.className="htCheckboxRendererLabel",n.appendChild(e.createTextNode(t)),n.cloneNode(!0)}function af(e,t){lf(e.target)&&setTimeout(t.listen,10)}function sf(e,t){if(!lf(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),r=parseInt(e.target.getAttribute("data-col"),10),o=t.getCellMeta(n,r);o.readOnly&&e.preventDefault()}function uf(e,t){if(!lf(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),r=parseInt(e.target.getAttribute("data-col"),10),o=t.getCellMeta(n,r);if(!o.readOnly){var i=null;i=e.target.checked?void 0===o.uncheckedTemplate||o.checkedTemplate:void 0!==o.uncheckedTemplate&&o.uncheckedTemplate,t.setDataAtCell(n,r,i)}}function lf(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}var cf=tf;function ff(e,t,n,r,o,i,a){Af("base").apply(this,[e,t,n,r,o,i,a]),tr(t,null===i||void 0===i?"":i,!1)}var hf=ff,df=n("8722"),pf=n.n(df);function mf(e){return mf="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},mf(e)}function yf(e){var t=mf(e);return"number"==t?!isNaN(e)&&isFinite(e):"string"==t?!!e.length&&(1==e.length?/\d/.test(e):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(e)):"object"==t&&(!!e&&"number"==typeof e.valueOf()&&!(e instanceof Date))}function vf(e,t,n){var r=-1;"function"===typeof t?(n=t,t=e):r=e-1;while(++r<=t)if(!1===n(r))break}function gf(e,t,n){var r=e+1;"function"===typeof t&&(n=t,t=0);while(--r>=t)if(!1===n(r))break}function bf(e,t){return t=parseInt(t.toString().replace("%",""),10),t=parseInt(e*t/100,10),t}function wf(e,t,n,r,o,i,a){var s=i;if(yf(s)){var u=a.numericFormat,l=u&&u.culture||"-",c=u&&u.pattern,f=a.className||"",h=f.length?f.split(" "):[];if("undefined"!==typeof l&&!pf.a.languages()[l]){var d=l.replace("-",""),p=pf.a.allLanguages?pf.a.allLanguages[l]:pf.a[d];p&&pf.a.registerLanguage(p)}pf.a.setLanguage(l),s=pf()(s).format(c||"0"),h.indexOf("htLeft")<0&&h.indexOf("htCenter")<0&&h.indexOf("htRight")<0&&h.indexOf("htJustify")<0&&h.push("htRight"),h.indexOf("htNumeric")<0&&h.push("htNumeric"),a.className=h.join(" ")}Af("text")(e,t,n,r,o,s,a)}var _f=wf;function Sf(e,t,n,r,o,i,a){Af("text").apply(this,[e,t,n,r,o,i,a]);var s=a.hashLength||t.innerHTML.length,u=a.hashSymbol||"*",l="";vf(s-1,(function(){l+=u})),tr(t,l)}var Cf=Sf;function kf(e,t,n,r,o,i,a){Af("base").apply(this,[e,t,n,r,o,i,a]);var s=i;if(!s&&a.placeholder&&(s=a.placeholder),s=Me(s),e.getSettings().trimWhitespace||e.getSettings().wordWrap||(s=s.replace(/ /g,String.fromCharCode(160))),a.rendererTemplate){Kn(t);var u=e.rootDocument.createElement("TEMPLATE");u.setAttribute("bind","{{}}"),u.innerHTML=a.rendererTemplate,HTMLTemplateElement.decorate(u),u.model=e.getSourceDataAtRow(n),t.appendChild(u)}else nr(t,s)}var Mf=kf,Of=A("renderers"),Rf=Of.register,Tf=Of.getItem,Ef=Of.hasItem,Lf=Of.getNames;Of.getValues;function Af(e){if("function"===typeof e)return e;if(!Ef(e))throw Error('No registered renderer found under "'.concat(e,'" name'));return Tf(e)}Rf("base",Jc),Rf("autocomplete",Qc),Rf("checkbox",cf),Rf("html",hf),Rf("numeric",_f),Rf("password",Cf),Rf("text",Mf);var If=n("7f2c"),xf=n.n(If);function Df(e){return Df="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},Df(e)}function Nf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hf(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];if(this.state===zc.EDITING||e)if(this.TD=this.getEditedCell(),this.TD){var t,n=this.hot.view.wt,r=n.wtOverlays,o=n.wtViewport,i=or(this.TD),a=or(this.hot.rootElement),s=r.topOverlay.holder,u=r.leftOverlay.holder,l=s!==this.hot.rootWindow?s.scrollTop:0,c=u!==this.hot.rootWindow?u.scrollLeft:0,f=this.checkEditorSection(),h=["","left"].includes(f)?l:0,d=["","top","bottom"].includes(f)?c:0,p=i.top===a.top?0:1,m=this.TD.style.backgroundColor,y=i.top-a.top-p-h,v=i.left-a.left-1-d;switch(f){case"top":t=Lr(r.topOverlay.clone.wtTable.holder.parentNode);break;case"left":t=Lr(r.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":t=Lr(r.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":t=Lr(r.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":t=Lr(r.bottomOverlay.clone.wtTable.holder.parentNode);break;default:break}var g=this.hot.hasColHeaders(),b=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),w=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),_=this.hot.rowIndexMapper.getRenderableIndexesLength(),S=_-this.hot.view.wt.getSetting("fixedRowsBottom");(g&&b<=0||b===S)&&(y+=1),w<=0&&(v+=1),t&&-1!==t?this.textareaParentStyle[t[0]]=t[1]:Ar(this.TEXTAREA_PARENT),this.textareaParentStyle.top="".concat(y,"px"),this.textareaParentStyle.left="".concat(v,"px"),this.showEditableElement();var C=o.rowsRenderCalculator.startPosition,k=o.columnsRenderCalculator.startPosition,M=r.leftOverlay.getScrollPosition(),O=r.topOverlay.getScrollPosition(),R=Or(this.hot.rootDocument),T=this.TD.offsetTop+C-O,E=this.TD.offsetLeft+k-M,L=vr(this.TD)-8,A=Rr(s)?R:0,I=Tr(u)?R:0,x=this.hot.view.maximumVisibleElementWidth(E)-9-A,D=this.TD.scrollHeight+1,N=Math.max(this.hot.view.maximumVisibleElementHeight(T)-I,23),H=dr(this.TD,this.hot.rootWindow);this.TEXTAREA.style.fontSize=H.fontSize,this.TEXTAREA.style.fontFamily=H.fontFamily,this.TEXTAREA.style.backgroundColor=m,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(D,N),maxHeight:N,minWidth:Math.min(L,x),maxWidth:x},!0)}else e||this.close()}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",(function(e){return e.stopPropagation()})),this.eventManager.addEventListener(this.TEXTAREA,"paste",(function(e){return e.stopPropagation()})),this.addHook("afterScrollHorizontally",(function(){return e.refreshDimensions()})),this.addHook("afterScrollVertically",(function(){return e.refreshDimensions()})),this.addHook("afterColumnResize",(function(){e.refreshDimensions(),e.focus()})),this.addHook("afterRowResize",(function(){e.refreshDimensions(),e.focus()}))}},{key:"allowKeyEventPropagation",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.clearHooks()}},{key:"onBeforeKeyDown",value:function(e){var t=(e.ctrlKey||e.metaKey)&&!e.altKey;if(e.target===this.TEXTAREA&&!Ui(e)){switch(e.keyCode){case sa.ARROW_RIGHT:this.isInFullEditMode()&&(this.isWaiting()||this.allowKeyEventPropagation(e.keyCode)||Wi(e));break;case sa.ARROW_LEFT:this.isInFullEditMode()&&(this.isWaiting()||this.allowKeyEventPropagation(e.keyCode)||Wi(e));break;case sa.ARROW_UP:case sa.ARROW_DOWN:this.isInFullEditMode()&&(this.isWaiting()||this.allowKeyEventPropagation(e.keyCode)||Wi(e));break;case sa.ENTER:var n=this.hot.selection.isMultiple();if(t&&!n||e.altKey){if(this.isOpened()){var r=wr(this.TEXTAREA),o=this.getValue(),i="".concat(o.slice(0,r),"\n").concat(o.slice(r));this.setValue(i),kr(this.TEXTAREA,r+1)}else this.beginEditing("".concat(this.originalValue,"\n"));Wi(e)}e.preventDefault();break;case sa.BACKSPACE:case sa.DELETE:case sa.HOME:case sa.END:Wi(e);break;default:break}var a=[sa.ARROW_UP,sa.ARROW_RIGHT,sa.ARROW_DOWN,sa.ARROW_LEFT];-1===a.indexOf(e.keyCode)&&this.autoResize.resize(String.fromCharCode(e.keyCode))}}}]),n}(Xc),$f=Jf;function Qf(e){return Qf="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},Qf(e)}function Kf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qf(e,t){for(var n=0;no.countRows()-1?o.deselectCell():o.selectCell(t,0),o.getData().length&&(e.preventDefault(),Wi(e),this.hot.listen(),this.TEXTAREA.focus())),th(lh(n.prototype),"onBeforeKeyDown",this).call(this,e)}}}]),n}($f),fh=ch;function hh(e){return hh="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},hh(e)}function dh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ph(e,t){for(var n=0;n-1}),r}return mh(n,[{key:"getValue",value:function(){var e=this,t=this.rawChoices.find((function(t){var n=e.stripValueIfNeeded(t);return n===e.TEXTAREA.value}));return Oe(t)?t:this.TEXTAREA.value}},{key:"createElements",value:function(){yh(kh(n.prototype),"createElements",this).call(this),Jn(this.htContainer,"autocompleteEditor"),Jn(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll")}},{key:"open",value:function(){var e=this,t=Mh.get(this);this.TEXTAREA_PARENT.style.overflow="auto",yh(kh(n.prototype),"open",this).call(this),this.TEXTAREA_PARENT.style.overflow="";var r=this.htEditor.getInstance(),o=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.showEditableElement(),this.focus();var i=Or();0===i&&t.isMacOS&&(i+=15),r.updateSettings({colWidths:o?[pr(this.TEXTAREA)-2]:void 0,width:o?pr(this.TEXTAREA)+i:void 0,renderer:function(t,n,r,o,i,a,s){Af("text")(t,n,r,o,i,a,s);var u,l,c=e.cellProperties,f=c.filteringCaseSensitive,h=c.allowHtml,d=e.query,p=Me(a);p&&!h&&(u=!0===f?p.indexOf(d):p.toLowerCase().indexOf(d.toLowerCase()),-1!==u&&(l=p.substr(u,d.length),p=p.replace(l,"".concat(l,"")))),n.innerHTML=p},autoColumnSize:!0}),t.skipOne&&(t.skipOne=!1),this.hot._registerTimeout((function(){e.queryChoices(e.TEXTAREA.value)}))}},{key:"close",value:function(){this.removeHooksByKey("beforeKeyDown"),yh(kh(n.prototype),"close",this).call(this)}},{key:"discardEditor",value:function(e){yh(kh(n.prototype),"discardEditor",this).call(this,e),this.hot.view.render()}},{key:"queryChoices",value:function(e){var t=this,n=this.cellProperties.source;this.query=e,"function"===typeof n?n.call(this.cellProperties,e,(function(e){t.rawChoices=e,t.updateChoicesList(t.stripValuesIfNeeded(e))})):Array.isArray(n)?(this.rawChoices=n,this.updateChoicesList(this.stripValuesIfNeeded(n))):this.updateChoicesList([])}},{key:"updateChoicesList",value:function(e){var t=wr(this.TEXTAREA),r=_r(this.TEXTAREA),o=this.cellProperties.sortByRelevance,i=this.cellProperties.filter,a=null,s=null,u=e;o&&(a=n.sortByRelevance(this.stripValueIfNeeded(this.getValue()),u,this.cellProperties.filteringCaseSensitive));var l=Array.isArray(a)?a.length:0;if(!1===i)l&&(s=a[0]);else{for(var c=[],f=0,h=u.length;fu&&s>u;return l?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(l?s:u,n),l}},{key:"limitDropdownIfNeeded",value:function(e,t){if(t>e){var n=0,r=0,o=0,i=null;do{o=this.htEditor.getRowHeight(r)||this.htEditor.view.wt.wtSettings.settings.defaultRowHeight,n+=o,r+=1}while(n=t?t*e:this.strippedChoices.length*e+8}},{key:"stripValueIfNeeded",value:function(e){return this.stripValuesIfNeeded([e])[0]}},{key:"stripValuesIfNeeded",value:function(e){var t=this.cellProperties.allowHtml,n=P(e,(function(e){return Me(e)})),r=P(n,(function(e){return t?e:Ze(e)}));return r}},{key:"allowKeyEventPropagation",value:function(e){var t=this.htEditor.getSelectedRangeLast(),n={row:t?t.from.row:-1},r=!1;return e===sa.ARROW_DOWN&&n.row>0&&n.row-1&&(r=!0),r}},{key:"onBeforeKeyDown",value:function(e){var t=this,r=Mh.get(this);if(r.skipOne=!1,ua(e.keyCode)||e.keyCode===sa.BACKSPACE||e.keyCode===sa.DELETE||e.keyCode===sa.INSERT){var o=0;if(e.keyCode===sa.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(o+=10),this.htEditor&&this.hot._registerTimeout((function(){t.queryChoices(t.TEXTAREA.value),r.skipOne=!0}),o)}yh(kh(n.prototype),"onBeforeKeyDown",this).call(this,e)}}]),n}(fh);Oh.sortByRelevance=function(e,t,n){var r,o,i,a,s=[],u=[],l=e.length,c=t.length;if(0===l){for(i=0;it.charsLeft)return 1}return 0})),i=0,c=s.length;i0&&void 0!==arguments[0]?arguments[0]:null;Xh(td(n.prototype),"open",this).call(this),this.showDatepicker(e)}},{key:"close",value:function(){var e=this;this._opened=!1,this.instance._registerTimeout((function(){e.instance._refreshBorders()})),Xh(td(n.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var r=this.originalValue;void 0!==r&&this.setValue(r)}this.hideDatepicker(),Xh(td(n.prototype),"finishEditing",this).call(this,e,t)}},{key:"showDatepicker",value:function(e){this.$datePicker.config(this.getDatePickerConfig());var t,n=this.TD.getBoundingClientRect(),r=this.cellProperties.dateFormat||this.defaultDateFormat,o=this.$datePicker.config(),i=this.instance.view.isMouseDown(),a=!!e&&la(e.keyCode);this.datePickerStyle.top="".concat(this.hot.rootWindow.pageYOffset+n.top+mr(this.TD),"px"),this.datePickerStyle.left="".concat(this.hot.rootWindow.pageXOffset+n.left,"px"),this.$datePicker._onInputFocus=function(){},o.format=r,this.originalValue?(t=this.originalValue,me()(t,r,!0).isValid()&&this.$datePicker.setMoment(me()(t,r),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),a||i||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,o.defaultDate=t,me()(t,r,!0).isValid()&&this.$datePicker.setMoment(me()(t,r),!0),a||i||this.setValue("")):this.$datePicker.gotoToday(),this.datePickerStyle.display="block",this.$datePicker.show()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&ee(n,this.cellProperties.datePickerConfig);var r=n.onSelect,o=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.format=n.format||this.defaultDateFormat,n.reposition=n.reposition||!1,n.onSelect=function(t){var n=t;isNaN(n.getTime())||(n=me()(n).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(n),e.hideDatepicker(),r&&r()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),o&&o()},n}}]),n}($f),rd=nd;function od(e){return od="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},od(e)}function id(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ad(e,t){for(var n=0;n0&&(s-=1),parseInt(m.borderLeftWidth,10)>0&&(a-=1),p.height="".concat(s,"px"),p.minWidth="".concat(a,"px"),p.top="".concat(u,"px"),p.left="".concat(l,"px"),p.margin="0px",Jn(this.select,op)}else this.close()}},{key:"onBeforeKeyDown",value:function(){var e=this.select.selectedIndex-1,t=this.select.selectedIndex+1;switch(event.keyCode){case sa.ARROW_UP:e>=0&&(this.select[e].selected=!0),Wi(event),event.preventDefault();break;case sa.ARROW_DOWN:t<=this.select.length-1&&(this.select[t].selected=!0),Wi(event),event.preventDefault();break;default:break}}}]),n}(Xc),ap=ip,sp=new WeakMap,up=A("editors"),lp=up.register,cp=up.getItem,fp=up.hasItem,hp=up.getNames;up.getValues;function dp(e){var 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]},ct.getSingleton().add("afterDestroy",(function(){t[this.guid]=null}))}function pp(e,t){var n;if("function"===typeof e)sp.get(e)||yp(null,e),n=sp.get(e);else{if("string"!==typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=cp(e)}if(!n)throw Error('No editor registered under name "'.concat(e,'"'));return n.getInstance(t)}function mp(e){if(!fp(e))throw Error('No registered editor found under "'.concat(e,'" name'));return cp(e).getConstructor()}function yp(e,t){var n=new dp(t);"string"===typeof e&&lp(e,n),sp.set(t,n)}function vp(e,t){var n=e;null!==n&&void 0!==n||(n=""),this.allowEmpty&&""===n?t(!0):this.strict&&this.source?"function"===typeof this.source?this.source(n,gp(n,t)):gp(n,t)(this.source):t(!0)}function gp(e,t){var n=e;return function(e){for(var r=!1,o=0,i=e.length;o-1;return n=r.isValid()&&r.format("x")===o.format("x")||!o.isValid()||i?r:o,n.format(t)}function Sp(e,t){var n=e;null!==n&&void 0!==n||(n=""),this.allowEmpty&&""===n?t(!0):t(""!==n&&yf(e))}var Cp=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"];function kp(e,t){var n=this.timeFormat||"h:mm:ss a",r=!0,o=e;null===o&&(o=""),o=/^\d{3,}$/.test(o)?parseInt(o,10):o;var i=/^\d{1,2}$/.test(o);i&&(o+=":00");var a=me()(o,Cp,!0).isValid()?me()(o):me()(o,n),s=a.isValid(),u=me()(o,n,!0).isValid()&&!i;if(this.allowEmpty&&""===o&&(s=!0,u=!0),s||(r=!1),!s&&u&&(r=!0),s&&!u)if(!0===this.correctFormat){var l=a.format(n),c=this.instance.toVisualRow(this.row),f=this.instance.toVisualColumn(this.col);this.instance.setDataAtCell(c,f,l,"timeValidator"),r=!0}else r=!1;t(r)}var Mp=A("validators"),Op=Mp.register,Rp=Mp.getItem,Tp=Mp.hasItem,Ep=Mp.getNames;Mp.getValues;function Lp(e){if("function"===typeof e)return e;if(!Tp(e))throw Error('No registered validator found under "'.concat(e,'" name'));return Rp(e)}Op("autocomplete",vp),Op("date",wp),Op("numeric",Sp),Op("time",kp);var Ap="autocomplete",Ip={editor:mp(Ap),renderer:Af(Ap),validator:Lp(Ap)},xp="checkbox",Dp={editor:mp(xp),renderer:Af(xp)},Np="date",Hp={editor:mp(Np),renderer:Af("autocomplete"),validator:Lp(Np)},Pp="dropdown",jp={editor:mp(Pp),renderer:Af("autocomplete"),validator:Lp("autocomplete")},Yp="handsontable",Bp={editor:mp(Yp),renderer:Af("autocomplete")},Fp="numeric",Vp={editor:mp(Fp),renderer:Af(Fp),validator:Lp(Fp),dataType:"number"},Wp="password",Up={editor:mp(Wp),renderer:Af(Wp),copyable:!1},zp="text",Gp={editor:mp(zp),renderer:Af(zp)},Xp="time",Zp={editor:mp("text"),renderer:Af("text"),validator:Lp(Xp)},Jp=A("cellTypes"),$p=Jp.register,Qp=Jp.getItem,Kp=Jp.hasItem,qp=Jp.getNames;Jp.getValues;function em(e){if(!Kp(e))throw Error('You declared cell type "'.concat(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 Qp(e)}function tm(e,t){var n=t.editor,r=t.renderer,o=t.validator;n&&yp(e,n),r&&Rf(e,r),o&&Op(e,o),$p(e,t)}tm("autocomplete",Ip),tm("checkbox",Dp),tm("date",Hp),tm("dropdown",jp),tm("handsontable",Bp),tm("numeric",Vp),tm("password",Up),tm("text",Gp),tm("time",Zp);n("a9e3"),n("8ba4"),n("130f");function nm(e,t){return sm(e)||am(e,t)||om(e,t)||rm()}function rm(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function om(e,t){if(e){if("string"===typeof e)return im(e,t);var n=Object.prototype.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)?im(e,t):void 0}}function im(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"},_m=new RegExp(Object.keys(wm).map((function(e){return"(".concat(e,")")})).join("|"),"gi");function Sm(e){return"TABLE"===(e&&e.nodeName||"")}function Cm(e){for(var t=e.hasColHeaders(),n=e.hasRowHeaders(),r=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],o=e.getData.apply(e,r),i=o.length,a=i>0?o[0].length:0,s=["","
"],u=t?["",""]:[],l=["",""],c=n?1:0,f=t?1:0,h=0;h".concat(e.getColHeader(m-c),"");else if(y)v="".concat(e.getRowHeader(h-f),"");else{var g=o[h][m],b=e.getCellMeta(h-c,m-f),w=b.hidden,_=b.rowspan,S=b.colspan;if(!w){var C=[];if(_&&C.push('rowspan="'.concat(_,'"')),S&&C.push('colspan="'.concat(S,'"')),Te(g))v="");else{var k=g.toString().replace("<","<").replace(">",">").replace(/((\r\n|\n)?|\r\n|\n)/g,"
\r\n").replace(/\x20/gi," ").replace(/\t/gi," ");v="").concat(k,"")}}}p.push(v)}var M=[""].concat(p,[""]).join("");d?u.splice(1,0,M):l.splice(-1,0,M)}return s.splice(1,0,u.join(""),l.join("")),s.join("")}function km(e){for(var t=e.length,n=[""],r=0;r");for(var s=0;s/g,">").replace(/((\r\n|\n)?|\r\n|\n)/g,"
\r\n").replace(/\x20/gi," ").replace(/\t/gi," ");a.push("
"))}n.push.apply(n,[""].concat(a,[""])),r+1===t&&n.push("")}return n.push("
".concat(l,"
"),n.join("")}function Mm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n={},r=t.createDocumentFragment(),o=t.createElement("div");r.appendChild(o);var i=e;if("string"===typeof i){var a=i.replace(/]*?>([\s\S]*?)<\/\s*td>/g,(function(e){var t=e.match(/]*?>/g)[0],n=e.substring(t.length,e.lastIndexOf("<")).replace(/(<(?!br)([^>]+)>)/gi,""),r="";return"".concat(t).concat(n).concat(r)}));o.insertAdjacentHTML("afterbegin","".concat(a)),i=o.querySelector("table")}if(i&&Sm(i)){var s=o.querySelector('meta[name$="enerator"]'),u=null!==i.querySelector("tbody th"),l=i.querySelector("tr"),c=l?Array.from(l.cells).reduce((function(e,t){return e+t.colSpan}),0)-(u?1:0):0,f=i.tFoot&&Array.from(i.tFoot.rows)||[],h=[],d=!1,p=0,m=0;if(i.tHead){var y=Array.from(i.tHead.rows).filter((function(e){var t=null!==e.querySelector("td");return t&&h.push(e),!t}));p=y.length,d=p>0,p>1?n.nestedHeaders=Array.from(y).reduce((function(e,t){var n=Array.from(t.cells).reduce((function(e,t,n){if(u&&0===n)return e;var r=t.colSpan,o=t.innerHTML,i=r>1?{label:o,colspan:r}:o;return e.push(i),e}),[]);return e.push(n),e}),[]):d&&(n.colHeaders=Array.from(y[0].children).reduce((function(e,t,n){return u&&0===n||e.push(t.innerHTML),e}),[]))}h.length&&(n.fixedRowsTop=h.length),f.length&&(n.fixedRowsBottom=f.length);var v=[].concat(h,pm(Array.from(i.tBodies).reduce((function(e,t){return e.push.apply(e,pm(Array.from(t.rows))),e}),[])),pm(f));m=v.length;for(var g=new Array(m),b=0;b1||A>1){for(var x=S;x[\r\n]?[\x20]{0,3}/gim,"\r\n"):E.replace(/[\r\n]?/gim,"\r\n"),g[S][I]=P.replace(_m,(function(e){return wm[e]}))}else _.push(E)}return w.length&&(n.mergeCells=w),_.length&&(n.rowHeaders=_),g.length&&(n.data=g),n}}var Om=new WeakMap;function Rm(e,t){var n=We(e);ct.getSingleton().add("construct",(function(){Om.has(this)||Om.set(this,{});var e=Om.get(this);e[n]||(e[n]=new t(this))})),ct.getSingleton().add("afterDestroy",(function(){if(Om.has(this)){var e=Om.get(this);se(e,(function(e){return e.destroy()})),Om.delete(this)}}))}function Tm(e,t){if("string"!==typeof t)throw Error('Only strings can be passed as "plugin" parameter');var n=We(t);if(Om.has(e)&&Om.get(e)[n])return Om.get(e)[n]}function Em(e){return Om.has(e)?Object.keys(Om.get(e)):[]}function Lm(e,t){var n=null;return Om.has(e)&&se(Om.get(e),(function(e,r){e===t&&(n=r)})),n}function Am(e){var t=e.isShiftKey,n=e.isLeftClick,r=e.isRightClick,o=e.coords,i=e.selection,a=e.controller,s=i.isSelected()?i.getSelectedRange().current():null,u=i.isSelectedByCorner(),l=i.isSelectedByRowHeader();if(t&&s)o.row>=0&&o.col>=0&&!a.cells?i.setRangeEnd(o):(u||l)&&o.row>=0&&o.col>=0&&!a.cells?i.setRangeEnd(new Et(o.row,o.col)):u&&o.row<0&&!a.column?i.setRangeEnd(new Et(s.to.row,o.col)):l&&o.col<0&&!a.row?i.setRangeEnd(new Et(o.row,s.to.col)):(!u&&!l&&o.col<0||u&&o.col<0)&&!a.row?i.selectRows(Math.max(s.from.row,0),o.row):(!u&&!l&&o.row<0||l&&o.row<0)&&!a.column&&i.selectColumns(Math.max(s.from.col,0),o.col);else{var c=!i.inInSelection(o),f=n||r&&c;o.row<0&&o.col>=0&&!a.column?f&&i.selectColumns(o.col):o.col<0&&o.row>=0&&!a.row?f&&i.selectRows(o.row):o.col>=0&&o.row>=0&&!a.cells?f&&i.setRangeStart(o):o.col<0&&o.row<0&&i.selectAll(!0,!0)}}function Im(e){var t=e.isLeftClick,n=e.coords,r=e.selection,o=e.controller;if(t){var i=r.isSelectedByRowHeader(),a=r.isSelectedByColumnHeader(),s=r.tableProps.countCols(),u=r.tableProps.countRows();a&&!o.column?r.setRangeEnd(new Et(u-1,n.col)):i&&!o.row?r.setRangeEnd(new Et(n.row,s-1)):o.cell||r.setRangeEnd(n)}}var xm=new Map([["mousedown",Am],["mouseover",Im],["touchstart",Am]]);function Dm(e,t){var n=t.coords,r=t.selection,o=t.controller;xm.get(e.type)({coords:n,selection:r,controller:o,isShiftKey:e.shiftKey,isLeftClick:Gi(e)||"touchstart"===e.type,isRightClick:zi(e)})}function Nm(e,t){return jm(e)||Pm(e,t)||Um(e,t)||Hm()}function Hm(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pm(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){o=!0,i=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(o)throw i}}return n}}function jm(e){if(Array.isArray(e))return e}function Ym(e,t,n){return Ym=Bm()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&Fm(i,n.prototype),i},Ym.apply(null,arguments)}function Bm(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Fm(e,t){return Fm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fm(e,t)}function Vm(e){return Gm(e)||zm(e)||Um(e)||Wm()}function Wm(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Um(e,t){if(e){if("string"===typeof e)return Xm(e,t);var n=Object.prototype.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)?Xm(e,t):void 0}}function zm(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function Gm(e){if(Array.isArray(e))return Xm(e)}function Xm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?this.instance.rowIndexMapper.getVisualFromRenderableIndex(e):e,r=t>=0?this.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===n&&(n=e),null===r&&(r=t),[n,r]}},{key:"countRenderableColumns",value:function(){return Math.min(this.instance.columnIndexMapper.getRenderableIndexesLength(),this.settings.maxCols)}},{key:"countRenderableRows",value:function(){return Math.min(this.instance.rowIndexMapper.getRenderableIndexesLength(),this.settings.maxRows)}},{key:"countNotHiddenRowIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.rowIndexMapper,this.countRenderableRows())}},{key:"countNotHiddenColumnIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.columnIndexMapper,this.countRenderableColumns())}},{key:"countNotHiddenIndexes",value:function(e,t,n,r){if(isNaN(e)||e<0)return 0;var o=n.getFirstNotHiddenIndex(e,t),i=n.getRenderableFromVisualIndex(o);if(!Number.isInteger(i))return 0;var a=0;return t<0?a=i+1:t>0&&(a=r-i),a}},{key:"initializeWalkontable",value:function(){var e=this,t=Qm.get(this),n={externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:t.table,preventOverflow:function(){return e.settings.preventOverflow},preventWheel:function(){return e.settings.preventWheel},stretchH:function(){return e.settings.stretchH},data:function(t,n){var r;return(r=e.instance).getDataAtCell.apply(r,Vm(e.translateFromRenderableToVisualIndex(t,n)))},totalRows:function(){return e.countRenderableRows()},totalColumns:function(){return e.countRenderableColumns()},fixedColumnsLeft:function(){var t=e.instance.countCols(),n=Math.min(parseInt(e.settings.fixedColumnsLeft,10),t)-1;return e.countNotHiddenColumnIndexes(n,-1)},fixedRowsTop:function(){var t=e.instance.countRows(),n=Math.min(parseInt(e.settings.fixedRowsTop,10),t)-1;return e.countNotHiddenRowIndexes(n,-1)},fixedRowsBottom:function(){var t=e.instance.countRows(),n=Math.max(t-parseInt(e.settings.fixedRowsBottom,10),0);return e.countNotHiddenRowIndexes(n,1)},shouldRenderLeftOverlay:function(){return e.settings.fixedColumnsLeft>0||n.rowHeaders().length>0},shouldRenderTopOverlay:function(){return e.settings.fixedRowsTop>0||n.columnHeaders().length>0},shouldRenderBottomOverlay:function(){return e.settings.fixedRowsBottom>0},minSpareRows:function(){return e.settings.minSpareRows},renderAllRows:this.settings.renderAllRows,rowHeaders:function(){var t=[];return e.instance.hasRowHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.rowIndexMapper.getVisualFromRenderableIndex(t):t;e.appendRowHeader(r,n)})),e.instance.runHooks("afterGetRowHeaderRenderers",t),t},columnHeaders:function(){var t=[];return e.instance.hasColHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;e.appendColHeader(r,n)})),e.instance.runHooks("afterGetColumnHeaderRenderers",t),t},columnWidth:function(t){var n=e.instance.columnIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getColWidth(null===n?t:n)},rowHeight:function(t){var n=e.instance.rowIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getRowHeight(null===n?t:n)},cellRenderer:function(t,n,r){var o=e.translateFromRenderableToVisualIndex(t,n),i=Nm(o,2),a=i[0],s=i[1],u=e.instance.runHooks("modifyGetCellCoords",a,s),l=a,c=s;if(Array.isArray(u)){var f=Nm(u,2);l=f[0],c=f[1]}var h=e.instance.getCellMeta(l,c),d=e.instance.colToProp(c),p=e.instance.getDataAtRowProp(l,d);e.instance.hasHook("beforeValueRender")&&(p=e.instance.runHooks("beforeValueRender",p,h)),e.instance.runHooks("beforeRenderer",r,a,s,d,p,h),e.instance.getCellRenderer(h)(e.instance,r,a,s,d,p,h),e.instance.runHooks("afterRenderer",r,a,s,d,p,h)},selections:this.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return e.settings.fragmentSelection},onWindowResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onCellMouseDown:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.instance.listen(),e.activeWt=i,t.mouseDown=!0,e.instance.runHooks("beforeOnCellMouseDown",n,a,o,s),Ui(n)||(Dm(n,{coords:a,selection:e.instance.selection,controller:s}),e.instance.runHooks("afterOnCellMouseDown",n,a,o),e.activeWt=e.wt)},onCellContextMenu:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r);e.activeWt=i,t.mouseDown=!1,e.instance.selection.isInProgress()&&e.instance.selection.finish(),e.instance.runHooks("beforeOnCellContextMenu",n,a,o),Ui(n)||(e.instance.runHooks("afterOnCellContextMenu",n,a,o),e.activeWt=e.wt)},onCellMouseOut:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseOut",t,i,r),Ui(t)||(e.instance.runHooks("afterOnCellMouseOut",t,i,r),e.activeWt=e.wt)},onCellMouseOver:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.activeWt=i,e.instance.runHooks("beforeOnCellMouseOver",n,a,o,s),Ui(n)||(t.mouseDown&&Dm(n,{coords:a,selection:e.instance.selection,controller:s}),e.instance.runHooks("afterOnCellMouseOver",n,a,o),e.activeWt=e.wt)},onCellMouseUp:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseUp",t,i,r),Ui(t)||(e.instance.runHooks("afterOnCellMouseUp",t,i,r),e.activeWt=e.wt)},onCellCornerMouseDown:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(t,n){return e.beforeRender(t,n)},onDraw:function(t){return e.onDraw(t)},onScrollVertically:function(){return e.instance.runHooks("afterScrollVertically")},onScrollHorizontally:function(){return e.instance.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return e.instance.runHooks("beforeRemoveCellClassNames")},onAfterDrawSelection:function(t,n,r){var o,i=e.translateFromRenderableToVisualIndex(t,n),a=Nm(i,2),s=a[0],u=a[1],l=e.instance.selection.getSelectedRange(),c=l.size();if(c>0){var f=(null!==r&&void 0!==r?r:0)+1-c,h=l.peekByIndex(f);o=[h.from.row,h.from.col,h.to.row,h.to.col]}return e.instance.runHooks("afterDrawSelection",s,u,o,r)},onBeforeDrawBorders:function(t,n){var r=Nm(t,4),o=r[0],i=r[1],a=r[2],s=r[3],u=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(o),e.instance.columnIndexMapper.getVisualFromRenderableIndex(i),e.instance.rowIndexMapper.getVisualFromRenderableIndex(a),e.instance.columnIndexMapper.getVisualFromRenderableIndex(s)];return e.instance.runHooks("beforeDrawBorders",u,n)},onBeforeTouchScroll:function(){return e.instance.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){return e.instance.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){var r=e.instance.columnIndexMapper.getVisualFromRenderableIndex(n);return e.instance.runHooks("beforeStretchingColumnWidth",t,r)},onModifyRowHeaderWidth:function(t){return e.instance.runHooks("modifyRowHeaderWidth",t)},onModifyGetCellCoords:function(t,n,r){var o=e.instance.rowIndexMapper,i=e.instance.columnIndexMapper,a=n>=0?i.getVisualFromRenderableIndex(n):n,s=t>=0?o.getVisualFromRenderableIndex(t):t,u=e.instance.runHooks("modifyGetCellCoords",s,a,r);if(Array.isArray(u)){var l=Nm(u,4),c=l[0],f=l[1],h=l[2],d=l[3];return[c>=0?o.getRenderableFromVisualIndex(o.getFirstNotHiddenIndex(c,1)):c,f>=0?i.getRenderableFromVisualIndex(i.getFirstNotHiddenIndex(f,1)):f,h>=0?o.getRenderableFromVisualIndex(o.getFirstNotHiddenIndex(h,-1)):h,d>=0?i.getRenderableFromVisualIndex(i.getFirstNotHiddenIndex(d,-1)):d]}},viewportRowCalculatorOverride:function(t){var n=e.settings.viewportRowRenderingOffset;if("auto"===n&&e.settings.fixedRowsTop&&(n=10),n>0||"auto"===n){var r=e.countRenderableRows();if("number"===typeof n)t.startRow=Math.max(t.startRow-n,0),t.endRow=Math.min(t.endRow+n,r-1);else if("auto"===n){var o=t.startRow+t.endRow-t.startRow,i=Math.ceil(o/r*12);t.startRow=Math.max(t.startRow-i,0),t.endRow=Math.min(t.endRow+i,r-1)}}e.instance.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var n=e.settings.viewportColumnRenderingOffset;if("auto"===n&&e.settings.fixedColumnsLeft&&(n=10),n>0||"auto"===n){var r=e.countRenderableColumns();if("number"===typeof n&&(t.startColumn=Math.max(t.startColumn-n,0),t.endColumn=Math.min(t.endColumn+n,r-1)),"auto"===n){var o=t.startColumn+t.endColumn-t.startColumn,i=Math.ceil(o/r*12);t.startRow=Math.max(t.startColumn-i,0),t.endColumn=Math.min(t.endColumn+i,r-1)}}e.instance.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return e.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.instance.runHooks("modifyColumnHeaderHeight");return e.settings.columnHeaderHeight||t}};this.instance.runHooks("beforeInitWalkontable",n),this.wt=new Pa(n),this.activeWt=this.wt;var r=this.wt.wtTable.spreader,o=this.instance.rootElement.getBoundingClientRect(),i=o.width,a=o.height;this.setLastSize(i,a),this.eventManager.addEventListener(r,"mousedown",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(r,"contextmenu",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"click",(function(){e.settings.observeDOMVisibility&&e.wt.drawInterrupted&&(e.instance.forceFullRender=!0,e.render())}))}},{key:"isTextSelectionAllowed",value:function(e){if(Ir(e))return!0;var t=Vn(e,this.instance.view.wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))}},{key:"isMouseDown",value:function(){return Qm.get(this).mouseDown}},{key:"isSelectedOnlyCell",value:function(){var e,t;return null!==(e=null===(t=this.instance.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&void 0!==e&&e}},{key:"isCellEdited",value:function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()}},{key:"beforeRender",value:function(e,t){e&&this.instance.runHooks("beforeRender",this.instance.forceFullRender,t)}},{key:"onDraw",value:function(e){e&&this.instance.runHooks("afterRender",this.instance.forceFullRender)}},{key:"appendRowHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;if(!Zn(n,"relative"))return Kn(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var r=this.instance,o=r.rootDocument,i=r.getRowHeader,a=o.createElement("div"),s=o.createElement("span");a.className="relative",s.className="rowHeader",this.updateCellHeader(s,e,i),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetRowHeader",e,t)}},{key:"appendColHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;Zn(n,"relative")?this.updateCellHeader(n.querySelector(".colHeader"),e,this.instance.getColHeader):(Kn(t),this.appendColHeader(e,t))}else{var r=this.instance.rootDocument,o=r.createElement("div"),i=r.createElement("span");o.className="relative",i.className="colHeader",this.updateCellHeader(i,e,this.instance.getColHeader),o.appendChild(i),t.appendChild(o)}this.instance.runHooks("afterGetColHeader",e,t)}},{key:"updateCellHeader",value:function(e,t,n){var r=t,o=this.wt.wtOverlays.getParentOverlay(e)||this.wt;e.parentNode&&(Zn(e,"colHeader")?r=o.wtTable.columnFilter.sourceToRendered(t):Zn(e,"rowHeader")&&(r=o.wtTable.rowFilter.sourceToRendered(t))),r>-1?tr(e,n(t)):(nr(e,String.fromCharCode(160)),Jn(e,"cornerHeader"))}},{key:"maximumVisibleElementWidth",value:function(e){var t=this.wt.wtViewport.getWorkspaceWidth(),n=t-e;return n>0?n:0}},{key:"maximumVisibleElementHeight",value:function(e){var t=this.wt.wtViewport.getWorkspaceHeight(),n=t-e;return n>0?n:0}},{key:"setLastSize",value:function(e,t){var n=Qm.get(this),r=[e,t];n.lastWidth=r[0],n.lastHeight=r[1]}},{key:"getLastSize",value:function(){var e=Qm.get(this);return{width:e.lastWidth,height:e.lastHeight}}},{key:"mainViewIsActive",value:function(){return this.wt===this.activeWt}},{key:"destroy",value:function(){this.wt.destroy(),this.eventManager.destroy()}}]),e}(),qm=Km,ey="ABCDEFGHIJKLMNOPQRSTUVWXYZ",ty=ey.length;function ny(e){var t,n=e+1,r="";while(n>0)t=(n-1)%ty,r=String.fromCharCode(65+t)+r,n=parseInt((n-t)/ty,10);return r}function ry(e){var t=0;if(e)for(var n=0,r=e.length-1;n0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e1&&void 0!==arguments[1]?arguments[1]:0,n=e,r=[];return Array.isArray(e)&&Array.isArray(e[0])||(n=[e]),n.forEach((function(e,n){Array.isArray(e)?e.forEach((function(e,o){r.push([n+t,o,e])})):Object.keys(e).forEach((function(o){r.push([n+t,o,e[o]])}))})),r}function cy(e){var t=0;return Array.isArray(e)&&(e[0]&&Array.isArray(e[0])?t=e[0].length:e[0]&&ie(e[0])&&(t=ce(e[0]))),t}function fy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hy(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];fy(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return dy(e,[{key:"modifyRowData",value:function(e){var t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return j(this.data,(function(r,o){var i=t.getAtCell(o,e);n.push(i)})),n}},{key:"getAtRow",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=void 0===t&&void 0===n,a=null,s=null;if(a=this.modifyRowData(e),Array.isArray(a))s=[],i?a.forEach((function(t,n){s[n]=r.getAtPhysicalCell(e,n,a)})):vf(t,n,(function(n){s[n-t]=r.getAtPhysicalCell(e,n,a)}));else if(ie(a)||Hr(a))if(s=o?[]:{},!i||o){var u=0,l=this.countFirstRowKeys()-1;vf(u,l,(function(i){var c=r.colToProp(i);if(i>=(t||u)&&i<=(n||l)&&!Number.isInteger(c)){var f=r.getAtPhysicalCell(e,c,a);o?s.push(f):le(s,c,f)}}))}else se(a,(function(t,n){le(s,n,r.getAtPhysicalCell(e,n,a))}));return s}},{key:"setAtCell",value:function(e,t,n){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){var r=fe(n);this.hot.runHooks("modifySourceData",e,this.propToCol(t),r,"set"),r.isTouched()&&(n=r.value)}Number.isInteger(t)?this.data[e][t]=n:le(this.data[e],t,n)}}},{key:"getAtPhysicalCell",value:function(e,t,n){var r=null;if(n&&(r="string"===typeof t?ue(n,t):"function"===typeof t?t(n):n[t]),this.hot.hasHook("modifySourceData")){var o=fe(r);this.hot.runHooks("modifySourceData",e,this.colToProp(t),o,"get"),o.isTouched()&&(r=o.value)}return r}},{key:"getAtCell",value:function(e,t){var n=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),n)}},{key:"getByRange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,i=null,a=null,s=null,u=null;null===t||null===n?(o=!0,i=0,s=this.countRows()-1):(i=Math.min(t.row,n.row),a=Math.min(t.col,n.col),s=Math.max(t.row,n.row),u=Math.max(t.col,n.col));var l=[];return vf(i,s,(function(t){l.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,u,r))})),l}},{key:"countRows",value:function(){if(this.hot.hasHook("modifySourceLength")){var e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}},{key:"countFirstRowKeys",value:function(){return cy(this.data)}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}(),my=py;n("cb29"),n("45fc");function yy(e){return wy(e)||by(e)||gy(e)||vy()}function vy(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gy(e,t){if(e){if("string"===typeof e)return _y(e,t);var n=Object.prototype.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)?_y(e,t):void 0}}function by(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function wy(e){if(Array.isArray(e))return _y(e)}function _y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:null;Ry(this,e),this.indexedValues=[],this.initValueOrFn=t}return Ey(e,[{key:"getValues",value:function(){return this.indexedValues}},{key:"getValueAtIndex",value:function(e){var t=this.indexedValues;if(e0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,Hr(this.initValueOrFn)?vf(t-1,(function(t){return e.indexedValues.push(e.initValueOrFn(t))})):vf(t-1,(function(){return e.indexedValues.push(e.initValueOrFn)})),this.runLocalHooks("change")}},{key:"init",value:function(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}},{key:"insert",value:function(){this.runLocalHooks("change")}},{key:"remove",value:function(){this.runLocalHooks("change")}}]),e}();re(Ly,Oy);var Ay=Ly;function Iy(e,t){return P(e,(function(e){return e-t.filter((function(t){return t=n?e+r:e}))}function Dy(e){return jy(e)||Py(e)||Hy(e)||Ny()}function Ny(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Hy(e,t){if(e){if("string"===typeof e)return Yy(e,t);var n=Object.prototype.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)?Yy(e,t):void 0}}function Py(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function jy(e){if(Array.isArray(e))return Yy(e)}function Yy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]&&arguments[0];return _v(this,n),t.call(this,e)}return Cv(n,[{key:"getTrimmedIndexes",value:function(){return N(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(bv),Iv=Av;function xv(e){return xv="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},xv(e)}function Dv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nv(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];return Dv(this,n),t.call(this,e)}return Hv(n,[{key:"getHiddenIndexes",value:function(){return N(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(bv),zv=Uv;function Gv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xv(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];if(!0===e)return this.mergedValuesCache;if(0===this.getLength())return[];for(var t=P(this.get(),(function(e){return e.getValues()})),n=[],r=Oe(t[0])&&t[0].length||0,o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&t.init(n),t}},{key:"unregisterMap",value:function(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}},{key:"getPhysicalFromVisualIndex",value:function(e){var t=this.notTrimmedIndexesCache[e];return Oe(t)?t:null}},{key:"getPhysicalFromRenderableIndex",value:function(e){var t=this.renderablePhysicalIndexesCache[e];return Oe(t)?t:null}},{key:"getVisualFromPhysicalIndex",value:function(e){var t=this.fromPhysicalToVisualIndexesCache.get(e);return Oe(t)?t:null}},{key:"getVisualFromRenderableIndex",value:function(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}},{key:"getRenderableFromVisualIndex",value:function(e){var t=this.fromVisualToRenderableIndexesCache.get(e);return Oe(t)?t:null}},{key:"getFirstNotHiddenIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e-t,o=this.getPhysicalFromVisualIndex(e);return null===o?!0===n&&r!==e-t?this.getFirstNotHiddenIndex(r,-t,!1,r):null:!1===this.isHidden(o)?e:this.getFirstNotHiddenIndex(e+t,t,n,r)}},{key:"initToLength",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=hg(new Array(t).keys()),this.notHiddenIndexesCache=hg(new Array(t).keys()),this.executeBatchOperations((function(){e.indexesSequence.init(t),e.trimmingMapsCollection.initEvery(t)})),this.executeBatchOperations((function(){e.hidingMapsCollection.initEvery(t),e.variousMapsCollection.initEvery(t)})),this.runLocalHooks("init")}},{key:"getIndexesSequence",value:function(){return this.indexesSequence.getValues()}},{key:"setIndexesSequence",value:function(e){this.indexesSequence.setValues(e)}},{key:"getNotTrimmedIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notTrimmedIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isTrimmed(t)}))}},{key:"getNotTrimmedIndexesLength",value:function(){return this.getNotTrimmedIndexes().length}},{key:"getNotHiddenIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notHiddenIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getNotHiddenIndexesLength",value:function(){return this.getNotHiddenIndexes().length}},{key:"getRenderableIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.renderablePhysicalIndexesCache;var n=this.getNotTrimmedIndexes();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getRenderableIndexesLength",value:function(){return this.getRenderableIndexes().length}},{key:"getNumberOfIndexes",value:function(){return this.getIndexesSequence().length}},{key:"moveIndexes",value:function(e,t){var n=this;"number"===typeof e&&(e=[e]);var r=P(e,(function(e){return n.getPhysicalFromVisualIndex(e)})),o=this.getNotTrimmedIndexesLength(),i=e.length,a=Cy(this.getIndexesSequence(),r),s=o-i;if(t+i0&&void 0!==arguments[0]&&arguments[0],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.cacheFromVisualToRenderabIendexes(),this.runLocalHooks("cacheUpdated",this.indexesSequenceChanged,this.trimmedIndexesChanged,this.hiddenIndexesChanged),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}},{key:"cacheFromPhysicalToVisualIndexes",value:function(){var e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(var t=0;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,xg(Fg(n.prototype),"setDefaultValues",this).call(this,e)}},{key:"insert",value:function(e,t){this.indexedValues=By(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=xy(this.orderOfIndexes,t),xg(Fg(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=Fy(this.indexedValues,e),this.orderOfIndexes=Cy(this.orderOfIndexes,e),this.orderOfIndexes=Iy(this.orderOfIndexes,e),xg(Fg(n.prototype),"remove",this).call(this,e)}},{key:"getEntries",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return[t,e.getValueAtIndex(t)]}))}}]),n}(Ay),Ug=Wg,zg=new WeakMap,Gg=Symbol("rootInstance");function Xg(e){zg.set(e,!0)}function Zg(e){return e===Gg}function Jg(e){return zg.has(e)}function $g(){var e=Qg(['Language with code "','" was not found. You should register particular language \n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'],['Language with code "','" was not found. You should register particular language\\x20\n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.']);return $g=function(){return e},e}function Qg(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Kg(e,t){return se(t,(function(t,n){Re(e[n])&&(e[n]=t)})),e}function qg(e){var t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/,n=t.exec(e);return n?"".concat(n[1].toLowerCase(),"-").concat(n[2].toUpperCase()):e}function eb(e){var t=qg(e);return Pw(t)||(t=Ew,tb(e)),t}function tb(e){Oe(e)&&Qe(ye($g(),e))}var nb,rb="ContextMenu:items",ob="".concat(rb,".noItems"),ib="".concat(rb,".insertRowAbove"),ab="".concat(rb,".insertRowBelow"),sb="".concat(rb,".insertColumnOnTheLeft"),ub="".concat(rb,".insertColumnOnTheRight"),lb="".concat(rb,".removeRow"),cb="".concat(rb,".removeColumn"),fb="".concat(rb,".undo"),hb="".concat(rb,".redo"),db="".concat(rb,".readOnly"),pb="".concat(rb,".clearColumn"),mb="".concat(rb,".copy"),yb="".concat(rb,".cut"),vb="".concat(rb,".freezeColumn"),gb="".concat(rb,".unfreezeColumn"),bb="".concat(rb,".mergeCells"),wb="".concat(rb,".unmergeCells"),_b="".concat(rb,".addComment"),Sb="".concat(rb,".editComment"),Cb="".concat(rb,".removeComment"),kb="".concat(rb,".readOnlyComment"),Mb="".concat(rb,".align"),Ob="".concat(rb,".align.left"),Rb="".concat(rb,".align.center"),Tb="".concat(rb,".align.right"),Eb="".concat(rb,".align.justify"),Lb="".concat(rb,".align.top"),Ab="".concat(rb,".align.middle"),Ib="".concat(rb,".align.bottom"),xb="".concat(rb,".borders"),Db="".concat(rb,".borders.top"),Nb="".concat(rb,".borders.right"),Hb="".concat(rb,".borders.bottom"),Pb="".concat(rb,".borders.left"),jb="".concat(rb,".borders.remove"),Yb="".concat(rb,".nestedHeaders.insertChildRow"),Bb="".concat(rb,".nestedHeaders.detachFromParent"),Fb="".concat(rb,".hideColumn"),Vb="".concat(rb,".showColumn"),Wb="".concat(rb,".hideRow"),Ub="".concat(rb,".showRow"),zb="Filters:",Gb="".concat(zb,"conditions"),Xb="".concat(Gb,".none"),Zb="".concat(Gb,".isEmpty"),Jb="".concat(Gb,".isNotEmpty"),$b="".concat(Gb,".isEqualTo"),Qb="".concat(Gb,".isNotEqualTo"),Kb="".concat(Gb,".beginsWith"),qb="".concat(Gb,".endsWith"),ew="".concat(Gb,".contains"),tw="".concat(Gb,".doesNotContain"),nw="".concat(Gb,".byValue"),rw="".concat(Gb,".greaterThan"),ow="".concat(Gb,".greaterThanOrEqualTo"),iw="".concat(Gb,".lessThan"),aw="".concat(Gb,".lessThanOrEqualTo"),sw="".concat(Gb,".isBetween"),uw="".concat(Gb,".isNotBetween"),lw="".concat(Gb,".after"),cw="".concat(Gb,".before"),fw="".concat(Gb,".today"),hw="".concat(Gb,".tomorrow"),dw="".concat(Gb,".yesterday"),pw="".concat(zb,"labels.filterByCondition"),mw="".concat(zb,"labels.filterByValue"),yw="".concat(zb,"labels.conjunction"),vw="".concat(zb,"labels.disjunction"),gw="".concat(zb,"values.blankCells"),bw="".concat(zb,"buttons.selectAll"),ww="".concat(zb,"buttons.clear"),_w="".concat(zb,"buttons.ok"),Sw="".concat(zb,"buttons.cancel"),Cw="".concat(zb,"buttons.placeholder.search"),kw="".concat(zb,"buttons.placeholder.value"),Mw="".concat(zb,"buttons.placeholder.secondValue");function Ow(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e} /** * @preserve * Authors: Handsoncode * Last updated: Nov 15, 2017 * * Description: Definition file for English - United States language-country. */var Rw=(nb={languageCode:"en-US"},Ow(nb,ob,"No available options"),Ow(nb,ib,"Insert row above"),Ow(nb,ab,"Insert row below"),Ow(nb,sb,"Insert column left"),Ow(nb,ub,"Insert column right"),Ow(nb,lb,["Remove row","Remove rows"]),Ow(nb,cb,["Remove column","Remove columns"]),Ow(nb,fb,"Undo"),Ow(nb,hb,"Redo"),Ow(nb,db,"Read only"),Ow(nb,pb,"Clear column"),Ow(nb,Mb,"Alignment"),Ow(nb,Ob,"Left"),Ow(nb,Rb,"Center"),Ow(nb,Tb,"Right"),Ow(nb,Eb,"Justify"),Ow(nb,Lb,"Top"),Ow(nb,Ab,"Middle"),Ow(nb,Ib,"Bottom"),Ow(nb,vb,"Freeze column"),Ow(nb,gb,"Unfreeze column"),Ow(nb,xb,"Borders"),Ow(nb,Db,"Top"),Ow(nb,Nb,"Right"),Ow(nb,Hb,"Bottom"),Ow(nb,Pb,"Left"),Ow(nb,jb,"Remove border(s)"),Ow(nb,_b,"Add comment"),Ow(nb,Sb,"Edit comment"),Ow(nb,Cb,"Delete comment"),Ow(nb,kb,"Read-only comment"),Ow(nb,bb,"Merge cells"),Ow(nb,wb,"Unmerge cells"),Ow(nb,mb,"Copy"),Ow(nb,yb,"Cut"),Ow(nb,Yb,"Insert child row"),Ow(nb,Bb,"Detach from parent"),Ow(nb,Fb,["Hide column","Hide columns"]),Ow(nb,Vb,["Show column","Show columns"]),Ow(nb,Wb,["Hide row","Hide rows"]),Ow(nb,Ub,["Show row","Show rows"]),Ow(nb,Xb,"None"),Ow(nb,Zb,"Is empty"),Ow(nb,Jb,"Is not empty"),Ow(nb,$b,"Is equal to"),Ow(nb,Qb,"Is not equal to"),Ow(nb,Kb,"Begins with"),Ow(nb,qb,"Ends with"),Ow(nb,ew,"Contains"),Ow(nb,tw,"Does not contain"),Ow(nb,rw,"Greater than"),Ow(nb,ow,"Greater than or equal to"),Ow(nb,iw,"Less than"),Ow(nb,aw,"Less than or equal to"),Ow(nb,sw,"Is between"),Ow(nb,uw,"Is not between"),Ow(nb,lw,"After"),Ow(nb,cw,"Before"),Ow(nb,fw,"Today"),Ow(nb,hw,"Tomorrow"),Ow(nb,dw,"Yesterday"),Ow(nb,gw,"Blank cells"),Ow(nb,pw,"Filter by condition"),Ow(nb,mw,"Filter by value"),Ow(nb,yw,"And"),Ow(nb,vw,"Or"),Ow(nb,bw,"Select all"),Ow(nb,ww,"Clear"),Ow(nb,_w,"OK"),Ow(nb,Sw,"Cancel"),Ow(nb,Cw,"Search"),Ow(nb,kw,"Value"),Ow(nb,Mw,"Second value"),nb),Tw=Rw,Ew=Tw.languageCode,Lw=A("languagesDictionaries"),Aw=Lw.register,Iw=Lw.getItem,xw=Lw.hasItem,Dw=Lw.getValues;function Nw(e,t){var n=e,r=t;return ie(e)&&(r=e,n=r.languageCode),jw(n,r),Aw(n,te(r)),te(r)}function Hw(e){return Pw(e)?te(Iw(e)):null}function Pw(e){return xw(e)}function jw(e,t){e!==Ew&&Kg(t,Iw(Ew))}function Yw(){return Dw()}function Bw(e,t){var n=Array.isArray(e)&&Number.isInteger(t);return n?e[t]:e}Nw(Tw);var Fw=A("phraseFormatters"),Vw=Fw.register,Ww=Fw.getValues;function Uw(e,t){Vw(e,t)}function zw(){return Ww()}function Gw(e,t,n){var r=Hw(e);if(null===r)return null;var o=r[t];if(Re(o))return null;var i=Xw(o,n);return Array.isArray(i)?i[0]:i}function Xw(e,t){var n=e;return j(zw(),(function(r){n=r(e,t)})),n}Uw("pluralize",Bw);var Zw=new qi,Jw=new Set,$w=0;function Qw(e){0===$w&&(Zw.addEventListener(e,"keydown",(function(e){Jw.has(e.keyCode)||Jw.add(e.keyCode)})),Zw.addEventListener(e,"keyup",(function(e){Jw.has(e.keyCode)&&Jw.delete(e.keyCode)})),Zw.addEventListener(e,"visibilitychange",(function(){e.hidden&&Jw.clear()})),Zw.addEventListener(e.defaultView,"blur",(function(){Jw.clear()}))),$w+=1}function Kw(){$w>0&&($w-=1),0===$w&&qw()}function qw(){Zw.clearEvents(),Jw.clear(),$w=0}function e_(){var e=Array.from(Jw.values());return e.some((function(e){return fa(e)}))}n("dbb4");function t_(e){return 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},t_(e)}function n_(e,t){return s_(e)||a_(e,t)||o_(e,t)||r_()}function r_(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o_(e,t){if(e){if("string"===typeof e)return i_(e,t);var n=Object.prototype.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)?i_(e,t):void 0}}function i_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:n,o=this.findVisibleCoordsInRowsRange(e.row,t.row,n);if(null===o)return null;var i=this.findVisibleCoordsInColumnsRange(e.col,t.col,r);return null===i?null:new Et(o,i)}},{key:"findVisibleCoordsInRowsRange",value:function(e,t,n){var r=this.settings.visualToRenderableCoords({row:e,col:-1}),o=r.row;return t===e&&null===o?null:null===o?this.findVisibleCoordsInRowsRange(e+n,t,n):e}},{key:"findVisibleCoordsInColumnsRange",value:function(e,t,n){var r=this.settings.visualToRenderableCoords({row:-1,col:e}),o=r.col;return t===e&&null===o?null:null===o?this.findVisibleCoordsInColumnsRange(e+n,t,n):e}},{key:"findVisibleHeaderRange",value:function(e,t,n,r){var o=this.findVisibleCoordsInRowsRange(e.row,t.row,n),i=this.findVisibleCoordsInRowsRange(t.row,e.row,-n),a=this.findVisibleCoordsInColumnsRange(e.col,t.col,r),s=this.findVisibleCoordsInColumnsRange(t.col,e.col,-r);return null===o&&null===i&&null===a&&null===s?null:[new Et(o,a),new Et(i,s)]}},{key:"commit",value:function(){if(null===this.visualCellRange)return this;var e=this.visualCellRange,t=e.from,n=e.to,r=this.getRowSearchDirection(this.visualCellRange),o=this.getColumnSearchDirection(this.visualCellRange),i=this.findVisibleCoordsInRange(t,n,r,o),a=this.findVisibleCoordsInRange(n,t,-r,-o);if(null===i||null===a){var s="header"===this.settings.type,u=null;if(s){var l=this.findVisibleHeaderRange(t,n,r,o),c=n_(l,2),f=c[0],h=c[1];u=this.createRenderableCellRange(f,h)}this.cellRange=u}else this.cellRange=this.createRenderableCellRange(i,a);return this}},{key:"adjustCoordinates",value:function(e){var t=this.getRowSearchDirection(e),n=this.getColumnSearchDirection(e),r=e.from.clone().normalize(),o=e.to.clone().normalize(),i=this.findVisibleCoordsInRange(r,o,t,n);if(null!==i){if(null===this.cellRange){var a=this.settings.visualToRenderableCoords(i);this.cellRange=new Dt(a)}return e.setHighlight(i),this}return e.setHighlight(e.from),this}},{key:"getCorners",value:function(){var e=this.cellRange,t=e.from,n=e.to,r=null===t.row||null===n.row,o=null===t.col||null===n.col,i=new Et(r?null:Math.min(t.row,n.row),o?null:Math.min(t.col,n.col)),a=new Et(r?null:Math.max(t.row,n.row),o?null:Math.max(t.col,n.col));return[i.row,i.col,a.row,a.col]}},{key:"getVisualCorners",value:function(){var e=this.settings.renderableToVisualCoords(this.cellRange.getTopLeftCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomRightCorner());return[e.row,e.col,t.row,t.col]}},{key:"createRenderableCellRange",value:function(e,t){var n=this.settings.visualToRenderableCoords(e),r=this.settings.visualToRenderableCoords(t);return new Dt(n,n,r)}},{key:"getRowSearchDirection",value:function(e){return e.from.row=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function O_(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function R_(e){var t=e.activeHeaderClassName,n=M_(e,["activeHeaderClassName"]),r=new __(C_({highlightHeaderClassName:t},n));return r}var T_=R_;function E_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L_(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function x_(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function D_(e){var t=e.layerLevel,n=e.areaCornerVisible,r=I_(e,["layerLevel","areaCornerVisible"]),o=new __(L_({className:"area",markIntersections:!0,layerLevel:Math.min(t,7),border:{width:1,color:"#4b89ff",cornerVisible:n}},r));return o}var N_=D_;function H_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P_(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function B_(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function F_(e){var t=e.cellCornerVisible,n=Y_(e,["cellCornerVisible"]),r=new __(P_({className:"current",border:{width:2,color:"#4b89ff",cornerVisible:t}},n));return r}var V_=F_;function W_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U_(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function X_(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function Z_(e){var t=e.border,n=e.visualCellRange,r=G_(e,["border","visualCellRange"]),o=new __(U_(U_({},t),r),n);return o}var J_=Z_;n("cca6");function $_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q_(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iS(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function aS(e){var t=e.headerClassName,n=e.rowClassName,r=e.columnClassName,o=oS(e,["headerClassName","rowClassName","columnClassName"]),i=new __(nS({className:"highlight",highlightHeaderClassName:t,highlightRowClassName:n,highlightColumnClassName:r},o));return i}var sS=aS;function uS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lS(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}},{key:"getCell",value:function(){return this.cell}},{key:"getFill",value:function(){return this.fill}},{key:"createOrGetArea",value:function(){var e,t=this.layerLevel;return this.areas.has(t)?e=this.areas.get(t):(e=pS(TS,SS({layerLevel:t},this.options)),this.areas.set(t,e)),e}},{key:"getAreas",value:function(){return mS(this.areas.values())}},{key:"createOrGetHeader",value:function(){var e,t=this.layerLevel;return this.headers.has(t)?e=this.headers.get(t):(e=pS(AS,SS({},this.options)),this.headers.set(t,e)),e}},{key:"getHeaders",value:function(){return mS(this.headers.values())}},{key:"createOrGetActiveHeader",value:function(){var e,t=this.layerLevel;return this.activeHeaders.has(t)?e=this.activeHeaders.get(t):(e=pS(RS,SS({},this.options)),this.activeHeaders.set(t,e)),e}},{key:"getActiveHeaders",value:function(){return mS(this.activeHeaders.values())}},{key:"getCustomSelections",value:function(){return mS(this.customSelections.values())}},{key:"addCustomSelection",value:function(e){this.customSelections.push(pS(IS,SS(SS({},this.options),e)))}},{key:"clear",value:function(){this.cell.clear(),this.fill.clear(),j(this.areas.values(),(function(e){e.clear()})),j(this.headers.values(),(function(e){e.clear()})),j(this.activeHeaders.values(),(function(e){e.clear()}))}},{key:Symbol.iterator,value:function(){return[this.cell,this.fill].concat(mS(this.areas.values()),mS(this.headers.values()),mS(this.activeHeaders.values()),mS(this.customSelections))[Symbol.iterator]()}}]),e}(),DS=xS;function NS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HS(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0,n=this.size()+t-1;return n>=0&&(e=this.ranges[n]),e}},{key:Symbol.iterator,value:function(){return this.ranges[Symbol.iterator]()}}]),e}(),YS=jS;function BS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FS(e,t){for(var n=0;nf-1?n&&p>0&&!(d&&a>=f-d-1)?(this.runLocalHooks("insertRowRequire",f),f=this.options.countRows()):v&&(r.row=1-f,r.col=s+r.col===h-1?1-h:1):v&&a+r.row<0&&s+r.col>=0&&(r.row=f-1,r.col=s+r.col===0?h-1:-1),s+r.col>h-1?n&&m>0?(this.runLocalHooks("insertColRequire",h),h=this.options.countCols()):y&&(r.row=a+r.row===f-1?1-f:1,r.col=1-h):y&&s+r.col<0&&a+r.row>=0&&(r.row=a+r.row===0?f-1:-1,r.col=h-1);var g=new Et(a+r.row,s+r.col);l=0,c=0,g.row<0?(l=-1,g.row=0):g.row>0&&g.row>=f&&(l=1,g.row=f-1),g.col<0?(c=-1,g.col=0):g.col>0&&g.col>=h&&(c=1,g.col=h-1),u=this.options.renderableToVisualCoords(g)}return this.runLocalHooks("afterTransformStart",u,l,c),u}},{key:"transformEnd",value:function(e,t){var n=new Et(e,t),r=this.range.current(),o=r.to,i=0,a=0;this.runLocalHooks("beforeTransformEnd",n);var s=this.options.visualToRenderableCoords(r.highlight),u=s.row,l=s.col;if(null!==u&&null!==l){var c=this.options.countRows(),f=this.options.countCols(),h=this.options.visualToRenderableCoords(r.to),d=h.row,p=h.col,m=new Et(d+n.row,p+n.col);i=0,a=0,m.row<0?(i=-1,m.row=0):m.row>0&&m.row>=c&&(i=1,m.row=c-1),m.col<0?(a=-1,m.col=0):m.col>0&&m.col>=f&&(a=1,m.col=f-1),o=this.options.renderableToVisualCoords(m)}return this.runLocalHooks("afterTransformEnd",o,i,a),o}}]),e}();re(WS,Oy);var US=WS;function zS(e,t){return $S(e)||JS(e,t)||XS(e,t)||GS()}function GS(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function XS(e,t){if(e){if("string"===typeof e)return ZS(e,t);var n=Object.prototype.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)?ZS(e,t):void 0}}function ZS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:oC;if(t!==oC&&t!==iC)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),r=t===oC,o=KS;if(n){var i=e[0];if(0===e.length)o=qS;else if(r&&i instanceof Dt)o=tC;else if(r&&Array.isArray(i))o=aC(i,iC);else if(e.length>=2&&e.length<=4){var a=!e.some((function(e,t){return!rC[t].includes(QS(e))}));a&&(o=eC)}}return o}function sC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.keepDirection,r=void 0!==n&&n,o=t.propToCol;if(!nC.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(t){var n=e===tC,i=n?t.from.row:t[0],a=n?t.from.col:t[1],s=n?t.to.row:t[2],u=n?t.to.col:t[3];if("function"===typeof o&&("string"===typeof a&&(a=o(a)),"string"===typeof u&&(u=o(u))),Re(s)&&(s=i),Re(u)&&(u=a),!r){var l=i,c=a,f=s,h=u;i=Math.min(l,f),a=Math.min(c,h),s=Math.max(l,f),u=Math.max(c,h)}return[i,a,s,u]}}function uC(e){var t=aC(e);if(t===KS||t===qS)return[];var n=sC(t),r=new Set;j(e,(function(e){var t=n(e),o=zS(t,4),i=o[1],a=o[3],s=Math.max(i,0),u=a-s+1;j(Array.from(new Array(u),(function(e,t){return s+t})),(function(e){r.has(e)||r.add(e)}))}));var o=Array.from(r).sort((function(e,t){return e-t})),i=N(o,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[]);return i}function lC(e){var t=aC(e);if(t===KS||t===qS)return[];var n=sC(t),r=new Set;j(e,(function(e){var t=n(e),o=zS(t,3),i=o[0],a=o[2],s=Math.max(i,0),u=a-s+1;j(Array.from(new Array(u),(function(e,t){return s+t})),(function(e){r.has(e)||r.add(e)}))}));var o=Array.from(r).sort((function(e,t){return e-t})),i=N(o,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[]);return i}function cC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return"number"===typeof e&&e>=0&&ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]&&arguments[2],r="multiple"===this.settings.selectionMode,o=Re(t)?e_():t,i=e.row<0,a=e.col<0,s=i&&a;this.selectedByCorner=s,this.runLocalHooks("beforeSetRangeStart".concat(n?"Only":""),e),(!r||r&&!o&&Re(t))&&this.selectedRange.clear(),this.selectedRange.add(e),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),!s&&a&&this.selectedByRowHeader.add(this.getLayerLevel()),!s&&i&&this.selectedByColumnHeader.add(this.getLayerLevel()),n||this.setRangeEnd(e)}},{key:"setRangeStartOnly",value:function(e,t){this.setRangeStart(e,t,!0)}},{key:"setRangeEnd",value:function(e){if(!this.selectedRange.isEmpty()){this.runLocalHooks("beforeSetRangeEnd",e),this.begin();var t=this.selectedRange.current();"single"!==this.settings.selectionMode&&t.setTo(new Et(e.row,e.col)),this.highlight.getCell().clear(),this.highlight.isEnabledFor(ES)&&this.highlight.getCell().add(this.selectedRange.current().highlight).commit().adjustCoordinates(t);var n=this.getLayerLevel();n=1)&&(r.add(t.from).add(t.to).commit(),1===n)){var a=this.selectedRange.previous();this.highlight.useLayerLevel(n-1).createOrGetArea().add(a.from).commit().adjustCoordinates(a),this.highlight.useLayerLevel(n)}if(this.highlight.isEnabledFor(AS)){var s=0===this.tableProps.countRowsTranslated(),u=0===this.tableProps.countColsTranslated(),l=t;(s||u)&&(l=t.clone()),s&&(l.from.row=-1),u&&(l.from.col=-1),"single"===this.settings.selectionMode?(this.isSelectedByAnyHeader()&&l.from.normalize(),o.add(l.from).commit()):o.add(l.from).add(l.to).commit()}if(this.isEntireRowSelected()){var c=this.tableProps.countCols()===t.getWidth();c&&i.add(new Et(t.from.row,-1)).add(new Et(t.to.row,-1)).commit()}if(this.isEntireColumnSelected()){var f=this.tableProps.countRows()===t.getHeight();f&&i.add(new Et(-1,t.from.col)).add(new Et(-1,t.to.col)).commit()}this.runLocalHooks("afterSetRangeEnd",e)}}},{key:"isMultiple",value:function(){var e=fe(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",e),e.value}},{key:"transformStart",value:function(e,t,n){this.setRangeStart(this.transformation.transformStart(e,t,n))}},{key:"transformEnd",value:function(e,t){this.setRangeEnd(this.transformation.transformEnd(e,t))}},{key:"getLayerLevel",value:function(){return this.selectedRange.size()-1}},{key:"isSelected",value:function(){return!this.selectedRange.isEmpty()}},{key:"isSelectedByRowHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner(e)&&this.isEntireRowSelected(e)}},{key:"isEntireRowSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e)}},{key:"isSelectedByColumnHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner()&&this.isEntireColumnSelected(e)}},{key:"isEntireColumnSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e)}},{key:"isSelectedByAnyHeader",value:function(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}},{key:"isSelectedByCorner",value:function(){return this.selectedByCorner}},{key:"inInSelection",value:function(e){return this.selectedRange.includes(e)}},{key:"isCellCornerVisible",value:function(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}},{key:"isAreaCornerVisible",value:function(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&(this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple())}},{key:"clear",value:function(){this.selectedRange.clear(),this.highlight.clear()}},{key:"deselect",value:function(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}},{key:"selectAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.tableProps.countRows(),r=this.tableProps.countCols();if(e||t||0!==n&&0!==r){var o=new Et(t?-1:0,e?-1:0);this.clear(),this.setRangeStartOnly(o),this.selectedByRowHeader.add(this.getLayerLevel()),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(new Et(n-1,r-1)),this.finish()}}},{key:"selectCells",value:function(e){var t=this,n=aC(e);if(n===qS)return!1;if(n===KS)throw new Error(ye(vC()));var r=sC(n,{propToCol:function(e){return t.tableProps.propToCol(e)},keepDirection:!0}),o=this.tableProps.countRows(),i=this.tableProps.countCols(),a=!e.some((function(e){var t=r(e),n=fC(t,4),a=n[0],s=n[1],u=n[2],l=n[3],c=cC(a,o)&&cC(s,i)&&cC(u,o)&&cC(l,i);return!c}));return a&&(this.clear(),j(e,(function(e){var n=r(e),o=fC(n,4),i=o[0],a=o[1],s=o[2],u=o[3];t.setRangeStartOnly(new Et(i,a),!1),t.setRangeEnd(new Et(s,u)),t.finish()}))),a}},{key:"selectColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n="string"===typeof e?this.tableProps.propToCol(e):e,r="string"===typeof t?this.tableProps.propToCol(t):t,o=this.tableProps.countCols(),i=this.tableProps.countRows(),a=cC(n,o)&&cC(r,o);return a&&(this.setRangeStartOnly(new Et(-1,n)),this.setRangeEnd(new Et(i-1,r)),this.finish()),a}},{key:"selectRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.tableProps.countRows(),r=this.tableProps.countCols(),o=cC(e,n)&&cC(t,n);return o&&(this.setRangeStartOnly(new Et(e,-1)),this.setRangeEnd(new Et(t,r-1)),this.finish()),o}},{key:"refresh",value:function(){var e=this.highlight.getCustomSelections();if(e.forEach((function(e){e.commit()})),this.isSelected()){var t=this.highlight.getCell(),n=this.getLayerLevel();t.commit().adjustCoordinates(this.selectedRange.current());for(var r=0;r0?a:this.countFirstRowKeys(),i=!0}else{var s=this.tableMeta.maxCols;r=Math.min(s,n.length)}for(t=0;t1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0,o=this.instance.countSourceRows(),i=o,a=0,s=e;("number"!==typeof s||s>=o)&&(s=o),s1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if(!this.instance.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.");var r=this.dataSource,o=this.tableMeta.maxCols,i=e;("number"!==typeof i||i>=this.instance.countSourceCols())&&(i=this.instance.countSourceCols());var a=this.instance.runHooks("beforeCreateCol",i,t,n);if(!1===a)return 0;var s=this.instance.countSourceCols();i=l)if(u>0)for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,r=Number.isInteger(e)?e:-t,o=this.visualRowsToPhysical(r,t),i=this.instance.countSourceRows();r=(i+r)%i;var a=this.instance.runHooks("beforeRemoveRow",r,o.length,o,n);if(!1===a)return!1;var s=this.dataSource,u=o.length,l=this.filterData(r,u,o);if(l&&(s.length=0,Array.prototype.push.apply(s,l)),r1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if("object"===this.instance.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");var r="number"!==typeof e?-t:e;r=(this.instance.countCols()+r)%this.instance.countCols();var o=this.visualColumnsToPhysical(r,t),i=o.slice(0).sort((function(e,t){return t-e})),a=this.instance.runHooks("beforeRemoveCol",r,t,o,n);if(!1===a)return!1;for(var s=!0,u=i.length,l=this.dataSource,c=0;c3?a-3:0),u=3;u3?a-3:0),u=3;u2?n-2:0),o=2;o-1){var a=t.split("."),s=r;if(!s)return null;for(var u=0,l=a.length;u-1){var u,l=t.split("."),c=i,f=0;for(f=0,u=l.length-1;f=0?this.instance.toPhysicalRow(o):o;for(i=Math.min(t.col,n.col);i<=h;i++){if(null===d)break;a.push(c.call(this,o,this.colToProp(i)))}null!==d&&s.push(a)}return s}},{key:"getText",value:function(t,n){return MC.a.stringify(this.getRange(t,n,e.DESTINATION_RENDERER))}},{key:"getCopyableText",value:function(t,n){return MC.a.stringify(this.getRange(t,n,e.DESTINATION_CLIPBOARD_GENERATOR))}},{key:"destroy",value:function(){this.instance=null,this.tableMeta=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}]),e}(),IC=AC;function xC(e,t){var n="string"===typeof e?em(e):e;if(ie(n)){var r=ie(t),o={};return se(n,(function(e,n){(!r||r&&!he(t,n))&&(o[n]=e)})),o}}function DC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function n(){}K(n,e);for(var r=0;r=0}function HC(e,t){if(!e())throw new Error("Assertion failed: ".concat(t))}function PC(e){return null===e||void 0===e}function jC(e){return jC="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},jC(e)}var YC=function(){return{licenseKey:void 0,data:void 0,dataSchema:void 0,width:void 0,height:void 0,startRows:5,startCols:5,rowHeaders:void 0,colHeaders:null,colWidths:void 0,rowHeights:void 0,columns:void 0,cells:void 0,cell:[],comments:!1,customBorders:!1,minRows:0,minCols:0,maxRows:1/0,maxCols:1/0,minSpareRows:0,minSpareCols:0,allowInsertRow:!0,allowInsertColumn:!0,allowRemoveRow:!0,allowRemoveColumn:!0,selectionMode:"multiple",fillHandle:{autoInsertRow:!1},fixedRowsTop:0,fixedRowsBottom:0,fixedColumnsLeft:0,outsideClickDeselects:!0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},tabMoves:{row:0,col:1},autoWrapRow:!0,autoWrapCol:!0,persistentState:void 0,currentRowClassName:void 0,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",activeHeaderClassName:"ht__active_highlight",className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(e){var t,n,r,o;for(t=0,n=this.countCols();t=0)t=this.data[n],void 0===t&&(t=this.valueFactory(e),this.data[n]=t);else if(t=this.valueFactory(e),this.holes.size>0){var r=this.holes.values().next().value;this.holes.delete(r),this.data[r]=t,this.index[e]=r}else this.data.push(t),this.index[e]=this.data.length-1;return t}},{key:"insert",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;HC((function(){return NC(e)||PC(e)}),"Expecting an unsigned number or null/undefined argument.");for(var r=[],o=this.data.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:1;HC((function(){return NC(e)||PC(e)}),"Expecting an unsigned number or null/undefined argument.");for(var n=this.index.splice(PC(e)?this.index.length-t:e,t),r=0;re?this.index[e]:-1}},{key:"_getKeyByStorageIndex",value:function(e){return this.index.indexOf(e)}},{key:Symbol.iterator,value:function(){return this.entries()}}]),e}();function qC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ek(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};pk(this,e),this.globalMeta=new UC,this.globalMeta.updateMeta(t),this.tableMeta=new ZC(this.globalMeta),this.columnMeta=new rk(this.globalMeta),this.cellMeta=new dk(this.columnMeta)}return yk(e,[{key:"getGlobalMeta",value:function(){return this.globalMeta.getMeta()}},{key:"updateGlobalMeta",value:function(e){this.globalMeta.updateMeta(e)}},{key:"getTableMeta",value:function(){return this.tableMeta.getMeta()}},{key:"updateTableMeta",value:function(e){this.tableMeta.updateMeta(e)}},{key:"getColumnMeta",value:function(e){return this.columnMeta.getMeta(e)}},{key:"updateColumnMeta",value:function(e,t){this.columnMeta.updateMeta(e,t)}},{key:"getCellMeta",value:function(e,t,n){return this.cellMeta.getMeta(e,t,n)}},{key:"setCellMeta",value:function(e,t,n,r){this.cellMeta.setMeta(e,t,n,r)}},{key:"updateCellMeta",value:function(e,t,n){this.cellMeta.updateMeta(e,t,n)}},{key:"removeCellMeta",value:function(e,t,n){this.cellMeta.removeMeta(e,t,n)}},{key:"getCellsMeta",value:function(){return this.cellMeta.getMetas()}},{key:"getCellsMetaAtRow",value:function(e){return this.cellMeta.getMetasAtRow(e)}},{key:"createRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}},{key:"removeRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}},{key:"createColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}},{key:"removeColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}},{key:"clearCellsCache",value:function(){this.cellMeta.clearCache()}},{key:"clearCache",value:function(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}]),e}();function gk(e){return gk="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},gk(e)}function bk(e,t){return Sk(e)||_k(e,t)||Mk(e,t)||wk()}function wk(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _k(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){o=!0,i=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(o)throw i}}return n}}function Sk(e){if(Array.isArray(e))return e}function Ck(e){return Rk(e)||Ok(e)||Mk(e)||kk()}function kk(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mk(e,t){if(e){if("string"===typeof e)return Tk(e,t);var n=Object.prototype.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)?Tk(e,t):void 0}}function Ok(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function Rk(e){if(Array.isArray(e))return Tk(e)}function Tk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]&&arguments[2],u=!1,l=this,c=new qi(l),f=!0;t.language=eb(t.language);var h=new vk(t),d=h.getTableMeta(),p=h.getGlobalMeta();Zg(s)&&Xg(this),this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,Qw(this.rootDocument),this.isDestroyed=!1,this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),Jg(this)&&Fe(t.licenseKey,e),this.guid="ht_".concat(ze()),this.columnIndexMapper=new Sg,this.rowIndexMapper=new Sg,r=new my(l),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);var m=function(e){var t=e.row,n=e.col;return new Et(t>=0?l.rowIndexMapper.getRenderableFromVisualIndex(t):t,n>=0?l.columnIndexMapper.getRenderableFromVisualIndex(n):n)},y=function(e){var t=e.row,n=e.col;return new Et(t>=0?l.rowIndexMapper.getVisualFromRenderableIndex(t):t,n>=0?l.columnIndexMapper.getVisualFromRenderableIndex(n):n)},v=new CC(d,{countCols:function(){return l.countCols()},countRows:function(){return l.countRows()},propToCol:function(e){return n.propToCol(e)},isEditorOpened:function(){return!!l.getActiveEditor()&&l.getActiveEditor().isOpened()},countColsTranslated:function(){return a.view.countRenderableColumns()},countRowsTranslated:function(){return a.view.countRenderableRows()},visualToRenderableCoords:m,renderableToVisualCoords:y});this.selection=v;var g=function(e,t,n){n&&a.selection.refresh()};function b(e){var t=qg(e);Pw(t)?(l.runHooks("beforeLanguageChange",t),p.language=t,l.runHooks("afterLanguageChange",t)):tb(e)}function w(e,t){var n="className"===e?l.rootElement:l.table;if(f)Jn(n,t);else{var r=[],o=[];p[e]&&(r=Array.isArray(p[e])?p[e]:Z(p[e])),t&&(o=Array.isArray(t)?t:Z(t));var i=z(r,o),a=z(o,r);i.length&&$n(n,i),a.length&&Jn(n,a)}p[e]=t}function _(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function S(e){var t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function C(e,t,r){if(e.length){var o=l.getActiveEditor(),i=l.runHooks("beforeChange",e,t||"edit"),a=!0;if(!1!==i){var s=new _,u=function(e){return e.length>0&&/^\s*[+-.]?\s*(?:(?:\d+(?:(\.|,)\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/.test(e)};s.onQueueEmpty=function(e){o&&a&&o.cancelChanges(),r(e)};for(var c=e.length-1;c>=0;c--)if(null===e[c])e.splice(c,1);else{var f=bk(e[c],4),h=f[0],p=f[1],m=f[3],y=n.propToCol(p),v=l.getCellMeta(h,y);"numeric"===v.type&&"string"===typeof m&&u(m)&&(e[c][3]=S(m)),l.getCellValidator(v)&&(s.addValidatorToQueue(),l.validateCell(e[c][3],v,function(t,n){return function(r){if("boolean"!==typeof r)throw new Error("Validation error: result is not boolean");if(!1===r&&!1===n.allowInvalid){a=!1,e.splice(t,1),n.valid=!0;var o=l.getCell(n.visualRow,n.visualCol);null!==o&&$n(o,d.invalidCellClassName)}s.removeValidatorFormQueue()}}(c,v),t))}s.checkIfQueueIsEmpty()}else o&&o.cancelChanges()}}function k(e,t){var r=e.length-1;if(!(r<0)){for(;r>=0;r--){var a=!1;if(null!==e[r]){if(null!==e[r][2]&&void 0!==e[r][2]||null!==e[r][3]&&void 0!==e[r][3]){if(d.allowInsertRow)while(e[r][0]>l.countRows()-1){var s=n.createRow(void 0,void 0,t);if(!(s>=1)){a=!0;break}h.createRow(null,s)}if("array"===l.dataType&&(!d.columns||0===d.columns.length)&&d.allowInsertColumn)while(n.propToCol(e[r][1])>l.countCols()-1){var u=n.createCol(void 0,void 0,t);if(!(u>=1)){a=!0;break}h.createColumn(null,u)}a||n.set(e[r][0],e[r][1],e[r][3])}}else e.splice(r,1)}l.forceFullRender=!0,o.adjustRowsAndCols(),l.runHooks("beforeChangeRender",e,t),i.lockEditor(),l._refreshBorders(null),i.unlockEditor(),l.view.wt.wtOverlays.adjustElementsSize(),l.runHooks("afterChange",e,t||"edit");var c=l.getActiveEditor();c&&Oe(c.refreshValue)&&c.refreshValue()}}function M(e,t,n){return Array.isArray(e)?e:[[e,t,n]]}this.columnIndexMapper.addLocalHook("cacheUpdated",g),this.rowIndexMapper.addLocalHook("cacheUpdated",g),this.selection.addLocalHook("beforeSetRangeStart",(function(e){a.runHooks("beforeSetRangeStart",e)})),this.selection.addLocalHook("beforeSetRangeStartOnly",(function(e){a.runHooks("beforeSetRangeStartOnly",e)})),this.selection.addLocalHook("beforeSetRangeEnd",(function(e){a.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=a.view.wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=a.view.wt.wtTable.getFirstVisibleColumn())})),this.selection.addLocalHook("afterSetRangeEnd",(function(e){var t=fe(!1),n=a.selection.getSelectedRange(),r=n.current(),o=r.from,i=r.to,s=n.size()-1;a.runHooks("afterSelection",o.row,o.col,i.row,i.col,t,s),a.runHooks("afterSelectionByProp",o.row,l.colToProp(o.col),i.row,l.colToProp(i.col),t,s);var c=a.selection.isSelectedByAnyHeader(),f=a.selection.selectedRange.current(),h=!0;u&&(h=!1),t.isTouched()&&(h=!t.value);var d=a.selection.isSelectedByRowHeader(),p=a.selection.isSelectedByColumnHeader();!1!==h&&(c?d?a.view.scrollViewportVertically(l.rowIndexMapper.getRenderableFromVisualIndex(e.row)):p&&a.view.scrollViewportHorizontally(l.columnIndexMapper.getRenderableFromVisualIndex(e.col)):f&&!a.selection.isMultiple()?a.view.scrollViewport(m(f.from)):a.view.scrollViewport(m(e))),d&&p?Jn(a.rootElement,["ht__selection--rows","ht__selection--columns"]):d?($n(a.rootElement,"ht__selection--columns"),Jn(a.rootElement,"ht__selection--rows")):p?($n(a.rootElement,"ht__selection--rows"),Jn(a.rootElement,"ht__selection--columns")):$n(a.rootElement,["ht__selection--rows","ht__selection--columns"]),a._refreshBorders(null)})),this.selection.addLocalHook("afterSelectionFinished",(function(e){var t=e.length-1,n=e[t],r=n.from,o=n.to;a.runHooks("afterSelectionEnd",r.row,r.col,o.row,o.col,t),a.runHooks("afterSelectionEndByProp",r.row,l.colToProp(r.col),o.row,l.colToProp(o.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(function(e){var t=a.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("beforeModifyTransformStart",(function(e){a.runHooks("modifyTransformStart",e)})),this.selection.addLocalHook("afterModifyTransformStart",(function(e,t,n){a.runHooks("afterModifyTransformStart",e,t,n)})),this.selection.addLocalHook("beforeModifyTransformEnd",(function(e){a.runHooks("modifyTransformEnd",e)})),this.selection.addLocalHook("afterModifyTransformEnd",(function(e,t,n){a.runHooks("afterModifyTransformEnd",e,t,n)})),this.selection.addLocalHook("afterDeselect",(function(){i.destroyEditor(),a._refreshBorders(),$n(a.rootElement,["ht__selection--rows","ht__selection--columns"]),a.runHooks("afterDeselect")})),this.selection.addLocalHook("insertRowRequire",(function(e){a.alter("insert_row",e,1,"auto")})),this.selection.addLocalHook("insertColRequire",(function(e){a.alter("insert_col",e,1,"auto")})),o={alter:function(e,t){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,u=function(e){if(0===e.length)return[];var t=Ck(e);t.sort((function(e,t){var n=bk(e,1),r=n[0],o=bk(t,1),i=o[0];return r===i?0:r>i?1:-1}));var n=N(t,(function(e,t){var n=bk(t,2),r=n[0],o=n[1],i=e[e.length-1],a=bk(i,2),s=a[0],u=a[1],l=s+u;if(r<=l){var c=Math.max(o-(l-r),0);i[1]+=c}else e.push([r,o]);return e}),[t[0]]);return n};switch(e){case"insert_row":var c=l.countSourceRows();if(d.maxRows===c)return;if(t=Oe(t)?t:c,r=n.createRow(t,i,a),r){h.createRow(l.toPhysicalRow(t),i);var f=v.selectedRange.current(),p=null===f||void 0===f?void 0:f.from,m=null===p||void 0===p?void 0:p.row;if(Oe(m)&&m>=t){var y=f.to,g=y.row,b=y.col,w=p.col;v.isSelectedByRowHeader()&&(w=-1),v.getSelectedRange().pop(),v.setRangeStartOnly(new Et(m+r,w),!0),v.setRangeEnd(new Et(g+r,b))}else l._refreshBorders()}break;case"insert_col":if(r=n.createCol(t,i,a),r){if(h.createColumn(l.toPhysicalColumn(t),i),Array.isArray(d.colHeaders)){var _=[t,0];_.length+=r,Array.prototype.splice.apply(d.colHeaders,_)}var S=v.selectedRange.current(),C=null===S||void 0===S?void 0:S.from,k=null===C||void 0===C?void 0:C.col;if(Oe(k)&&k>=t){var M=S.to,O=M.row,R=M.col,T=C.row;v.isSelectedByColumnHeader()&&(T=-1),v.getSelectedRange().pop(),v.setRangeStartOnly(new Et(T,k+r),!0),v.setRangeEnd(new Et(O,R+r))}else l._refreshBorders()}break;case"remove_row":var E=function(e){var t=0;j(e,(function(e){var r=bk(e,2),o=r[0],i=r[1],s=Te(o)?l.countRows()-1:Math.max(o-t,0);Number.isInteger(o)&&(o=Math.max(o-t,0));var u=n.removeRow(o,i,a);if(u){h.removeRow(l.toPhysicalRow(s),i);var c=l.countRows(),f=d.fixedRowsTop;f>=s+1&&(d.fixedRowsTop-=Math.min(i,f-s));var p=d.fixedRowsBottom;p&&s>=c-p&&(d.fixedRowsBottom-=Math.min(i,p)),t+=i}}))};Array.isArray(t)?E(u(t)):E([[t,i]]),o.adjustRowsAndCols(),l._refreshBorders();break;case"remove_col":var L=function(e){var t=0;j(e,(function(e){var r=bk(e,2),o=r[0],i=r[1],s=Te(o)?l.countCols()-1:Math.max(o-t,0),u=l.toPhysicalColumn(s);Number.isInteger(o)&&(o=Math.max(o-t,0));var c=n.removeCol(o,i,a);if(c){h.removeColumn(u,i);var f=d.fixedColumnsLeft;f>=s+1&&(d.fixedColumnsLeft-=Math.min(i,f-s)),Array.isArray(d.colHeaders)&&("undefined"===typeof u&&(u=-1),d.colHeaders.splice(u,i)),t+=i}}))};Array.isArray(t)?L(u(t)):L([[t,i]]),o.adjustRowsAndCols(),l._refreshBorders();break;default:throw new Error('There is no such action "'.concat(e,'"'))}s||o.adjustRowsAndCols()},adjustRowsAndCols:function(){if(d.minRows){var e=l.countRows();if(ea-1?(n=a-1,t=!0,o>n&&(o=n)):o>a-1&&(o=a-1,t=!0,n>o&&(n=o)),r>s-1?(r=s-1,t=!0,i>r&&(i=r)):i>s-1&&(i=s-1,t=!0,r>i&&(r=i)),t&&l.selectCell(n,r,o,i)})),l.view&&l.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,n,r,o,i,a){var s,u,c,f,h,p,m,y,v=[],g={};if(u=t.length,0===u)return!1;switch(o){case"shift_down":for(h=n?n.col-e.col+1:0,p=n?n.row-e.row+1:0,t=sy(t),c=0,f=t.length,m=Math.max(f,h);c1&&void 0!==arguments[1]?arguments[1]:null,r=t[e%t.length];return null!==n?r[n%r.length]:r},E=t.length,L=n?n.row-e.row+1:0;for(u=n?L:Math.max(E,L),s=0;sn.row&&L>E||!d.allowInsertRow&&g.row>l.countRows()-1||g.row>=d.maxRows)break;var A=s-M,I=T(A).length,x=n?n.col-e.col+1:0;if(f=n?x:Math.max(I,x),g.col=e.col,C=l.getCellMeta(g.row,g.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!C.skipRowOnPaste){for(O=0,c=0;cn.col&&x>I||!d.allowInsertColumn&&g.col>l.countCols()-1||g.col>=d.maxCols)break;if(C=l.getCellMeta(g.row,g.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!C.skipColumnOnPaste)if(C.readOnly)g.col+=1;else{var D=c-O,N=T(A,D),H=l.getDataAtCell(g.row,g.col),P={row:A,col:D};if("Autofill.fill"===r){var j=l.runHooks("beforeAutofillInsidePopulate",P,i,t,a,{},k);j&&(N=Re(j.value)?N:j.value)}if(null!==N&&"object"===gk(N))if(Array.isArray(N)&&null===H&&(H=[]),null===H||"object"!==gk(H))R=!1;else{var Y=Q(Array.isArray(H)?H:H[0]||H),B=Q(Array.isArray(N)?N:N[0]||N);oe(Y,B)?N=te(N):R=!1}else null!==H&&"object"===gk(H)&&(R=!1);R&&v.push([g.row,g.col,N]),R=!0,g.col+=1}else O+=1,g.col+=1,f+=1}g.row+=1}else M+=1,g.row+=1,u+=1}l.setDataAtCell(v,null,null,r||"populateFromArray");break}}},this.batch=function(e){var t=this;this.columnIndexMapper.executeBatchOperations((function(){t.rowIndexMapper.executeBatchOperations((function(){e()}))}))},this.init=function(){r.setData(d.data),l.runHooks("beforeInit"),kn()&&Jn(l.rootElement,"mobile"),this.updateSettings(d,!0),this.view=new qm(this),i=dm.getInstance(l,d,v),l.runHooks("init"),this.forceFullRender=!0,this.view.render(),"object"===gk(f)&&(l.runHooks("afterChange",f[0],f[1]),f=!1),l.runHooks("afterInit")},this.validateCell=function(e,t,n,r){var o=l.getCellValidator(t);function i(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(r&&!0!==t.hidden){var o=t.visualCol,i=t.visualRow,a=l.getCell(i,o,!0);if(a&&"TH"!==a.nodeName){var s=l.rowIndexMapper.getRenderableFromVisualIndex(i),u=l.columnIndexMapper.getRenderableFromVisualIndex(o);l.view.wt.wtSettings.settings.cellRenderer(s,u,a)}n(e)}else n(e)}Ee(o)&&(o=function(e){return function(t,n){n(e.test(t))}}(o)),Hr(o)?(e=l.runHooks("beforeValidate",e,t.visualRow,t.prop,r),l._registerImmediate((function(){o.call(t,e,(function(n){l&&(n=l.runHooks("afterValidate",n,e,t.visualRow,t.prop,r),t.valid=n,i(n),l.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,r))}))}))):l._registerImmediate((function(){t.valid=!0,i(t.valid,!1)}))},this.setDataAtCell=function(e,t,o,i){var a,s,u,c=M(e,t,o),f=[],h=i;for(a=0,s=c.length;a=this.countCols()?c[a][1]:n.colToProp(c[a][1]),f.push([c[a][0],u,r.getAtCell(this.toPhysicalRow(c[a][0]),c[a][1]),c[a][2]])}h||"object"!==gk(e)||(h=t),l.runHooks("afterSetDataAtCell",f,h),C(f,h,(function(){k(f,h)}))},this.setDataAtRowProp=function(e,t,n,o){var i,a,s=M(e,t,n),u=[],c=o;for(i=0,a=s.length;i0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];l._refreshBorders(e,t)},this.populateFromArray=function(e,t,n,r,i,a,s,u,l){if("object"!==gk(n)||"object"!==gk(n[0]))throw new Error("populateFromArray parameter `input` must be an array of arrays");var c="number"===typeof r?new Et(r,i):null;return o.populateFromArray(new Et(e,t),n,c,a,s,u,l)},this.spliceCol=function(e,t,r){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s3?i-3:0),s=3;s0&&(e=t[t.length-1]),e},this.getSelectedRange=function(){if(v.isSelected())return Array.from(v.getSelectedRange())},this.getSelectedRangeLast=function(){var e,t=this.getSelectedRange();return t&&t.length>0&&(e=t[t.length-1]),e},this.emptySelectedCells=function(e){var t=this;if(v.isSelected()&&0!==this.countRows()&&0!==this.countCols()){var n=[];j(v.getSelectedRange(),(function(e){var r=e.getTopLeftCorner(),o=e.getBottomRightCorner();vf(r.row,o.row,(function(e){vf(r.col,o.col,(function(r){t.getCellMeta(e,r).readOnly||n.push([e,r,null])}))}))})),n.length>0&&this.setDataAtCell(n,e)}},this.render=function(){l.view&&(l.renderCall=!0,l.forceFullRender=!0,i.lockEditor(),l._refreshBorders(null),i.unlockEditor())},this.refreshDimensions=function(){if(l.view){var e=l.view.getLastSize(),t=e.width,n=e.height,r=l.rootElement.getBoundingClientRect(),o=r.width,i=r.height,a=o!==t||i!==n,s=!1===l.runHooks("beforeRefreshDimensions",{width:t,height:n},{width:o,height:i},a);s||((a||l.view.wt.wtOverlays.scrollableElement===l.rootWindow)&&(l.view.setLastSize(o,i),l.render()),l.runHooks("afterRefreshDimensions",{width:t,height:n},{width:o,height:i},a))}},this.loadData=function(e){if(Array.isArray(d.dataSchema)?l.dataType="array":Hr(d.dataSchema)?l.dataType="function":l.dataType="object",n&&n.destroy(),n=new IC(l,e,d),"object"===gk(e)&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("loadData only accepts array of objects or array of arrays (".concat(gk(e)," given)"));var t,i=n.getSchema();e=[];var a=0,s=0;for(a=0,s=d.startRows;a1&&void 0!==arguments[1]&&arguments[1],s=!1;if(Oe(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if(Oe(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if(Oe(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(t in e)"data"!==t&&("language"!==t?"className"===t?w("className",e.className):"tableClassName"===t&&l.table?(w("tableClassName",e.tableClassName),l.view.wt.wtOverlays.syncOverlayTableClassNames()):ct.getSingleton().isRegistered(t)||ct.getSingleton().isDeprecated(t)?(Hr(e[t])||Array.isArray(e[t]))&&(e[t].initialHook=!0,l.addHook(t,e[t])):!a&&he(e,t)&&(p[t]=e[t]):b(e.language));void 0===e.data&&void 0===d.data?l.loadData(null):void 0!==e.data?l.loadData(e.data):void 0!==e.columns&&(n.createMap(),l.initIndexMappers());var u=l.countCols(),c=d.columns;if(c&&Hr(c)&&(s=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||h.clearCache(),u>0)for(t=0,r=0;t-1||_.indexOf("overflow")>-1)?l.rootElement.setAttribute("style",_):(l.rootElement.style.height="",l.rootElement.style.overflow="")}else void 0!==v&&(l.rootElement.style.height=isNaN(v)?"".concat(v):"".concat(v,"px"),l.rootElement.style.overflow="hidden");if("undefined"!==typeof e.width){var S=e.width;Hr(S)&&(S=S()),l.rootElement.style.width=isNaN(S)?"".concat(S):"".concat(S,"px")}a||(l.view&&(l.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),l.view.wt.exportSettingsAsClassNames()),l.runHooks("afterUpdateSettings",e)),o.adjustRowsAndCols(),l.view&&!f&&(l.forceFullRender=!0,i.lockEditor(),l._refreshBorders(null),i.unlockEditor()),a||!l.view||""!==y&&""!==v&&void 0!==v||y===v||l.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=l.getSelectedLast();if(d.getValue){if(Hr(d.getValue))return d.getValue.call(l);if(e)return l.getData()[e[0][0]][d.getValue]}else if(e)return l.getDataAtCell(e[0],e[1])},this.getSettings=function(){return d},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,r,i){o.alter(e,t,n,r,i)},this.getCell=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t,o=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;r=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;o=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===o||null===r?null:l.view.getCellAtCoords(new Et(o,r),n)},this.getCoords=function(e){var t=this.view.wt.wtTable.getCoords(e);if(null===t)return null;var n=t.row,r=t.col,o=n,i=r;return n>=0&&(o=this.rowIndexMapper.getVisualFromRenderableIndex(n)),r>=0&&(i=this.columnIndexMapper.getVisualFromRenderableIndex(r)),new Et(o,i)},this.colToProp=function(e){return n.colToProp(e)},this.propToCol=function(e){return n.propToCol(e)},this.toVisualRow=function(e){return a.rowIndexMapper.getVisualFromPhysicalIndex(e)},this.toVisualColumn=function(e){return a.columnIndexMapper.getVisualFromPhysicalIndex(e)},this.toPhysicalRow=function(e){return a.rowIndexMapper.getPhysicalFromVisualIndex(e)},this.toPhysicalColumn=function(e){return a.columnIndexMapper.getPhysicalFromVisualIndex(e)},this.getDataAtCell=function(e,t){return n.get(e,n.colToProp(t))},this.getDataAtRowProp=function(e,t){return n.get(e,t)},this.getDataAtCol=function(e){var t;return(t=[]).concat.apply(t,Ck(n.getRange(new Et(0,e),new Et(d.data.length-1,e),n.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,r=n.getRange(new Et(0,n.propToCol(e)),new Et(d.data.length-1,n.propToCol(e)),n.DESTINATION_RENDERER);return(t=[]).concat.apply(t,Ck(r))},this.getSourceData=function(e,t,n,o){var i;return i=void 0===e?r.getData():r.getByRange(new Et(e,t),new Et(n,o)),i},this.getSourceDataArray=function(e,t,n,o){var i;return i=void 0===e?r.getData(!0):r.getByRange(new Et(e,t),new Et(n,o),!0),i},this.getSourceDataAtCol=function(e){return r.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=M(e,t,n),s=this.hasHook("afterSetSourceDataAtCell"),u=[];s&&j(a,(function(e){var t=bk(e,3),n=t[0],o=t[1],i=t[2];u.push([n,o,r.getAtCell(n,o),i])})),j(a,(function(e){var t=bk(e,3),n=t[0],o=t[1],i=t[2];r.setAtCell(n,o,i)})),s&&this.runHooks("afterSetSourceDataAtCell",u,o),i||this.render();var c=l.getActiveEditor();c&&Oe(c.refreshValue)&&c.refreshValue()},this.getSourceDataAtRow=function(e){return r.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return r.getAtCell(e,t)},this.getDataAtRow=function(e){var t=n.getRange(new Et(e,0),new Et(e,this.countCols()-1),n.DESTINATION_RENDERER);return t[0]||[]},this.getDataType=function(e,t,n,r){var o=this,i=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,r],a=i[0],s=i[1],u=i[2],l=i[3],c=null,f=null;void 0===u&&(u=a),void 0===l&&(l=s);var h="mixed";return vf(Math.max(Math.min(a,u),0),Math.max(a,u),(function(e){var t=!0;return vf(Math.max(Math.min(s,l),0),Math.max(s,l),(function(n){var r=o.getCellMeta(e,n);return f=r.type,c?t=c===f:c=f,t})),h=t?f:"mixed",t})),h},this.removeCellMeta=function(e,t,n){var r=[this.toPhysicalRow(e),this.toPhysicalColumn(t)],o=r[0],i=r[1],a=h.getCellMeta(o,i,n),s=l.runHooks("beforeRemoveCellMeta",e,t,n,a);!1!==s&&(h.removeCellMeta(o,i,n),l.runHooks("afterRemoveCellMeta",e,t,n,a)),a=null},this.spliceCellsMeta=function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i0&&!Array.isArray(o[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");n>0&&h.removeRow(this.toPhysicalRow(e),n),o.length>0&&j(o.reverse(),(function(n){h.createRow(t.toPhysicalRow(e)),j(n,(function(n,r){return t.setCellMetaObject(e,r,n)}))}))},this.setCellMetaObject=function(e,t,n){var r=this;"object"===gk(n)&&se(n,(function(n,o){r.setCellMeta(e,t,o,n)}))},this.setCellMeta=function(e,t,n,r){var o=l.runHooks("beforeSetCellMeta",e,t,n,r);if(!1!==o){var i=e,a=t;e=0)if(void 0===t||-1!==t.indexOf(o)){var i=l.countCols()-1;while(i>=0)void 0===n||-1!==n.indexOf(i)?(r.addValidatorToQueue(),l.validateCell(l.getDataAtCell(o,i),l.getCellMeta(o,i),(function(e){if("boolean"!==typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(r.valid=!1),r.removeValidatorFormQueue()}),"validateCells"),i-=1):i-=1;o-=1}else o-=1;r.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=d.rowHeaders,n=e;return void 0!==n&&(n=l.runHooks("modifyRowHeader",n)),void 0===n?(t=[],vf(l.countRows()-1,(function(e){t.push(l.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[n]?t=t[n]:Hr(t)?t=t(n):t&&"string"!==typeof t&&"number"!==typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!d.rowHeaders},this.hasColHeaders=function(){if(void 0!==d.colHeaders&&null!==d.colHeaders)return!!d.colHeaders;for(var e=0,t=l.countCols();e=0){var n=l.getCellMeta(0,e);t=n.width}if(void 0!==t&&t!==d.width||(t=d.colWidths),void 0!==t&&null!==t){switch(gk(t)){case"object":t=t[e];break;case"function":t=t(e);break;default:break}"string"===typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e){var t=l._getColWidthFromSettings(e);return t=l.runHooks("modifyColWidth",t,e),void 0===t&&(t=gt.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=d.rowHeights;if(void 0!==t&&null!==t){switch(gk(t)){case"object":t=t[e];break;case"function":t=t(e);break;default:break}"string"===typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e){var t=l._getRowHeightFromSettings(e);return t=l.runHooks("modifyRowHeight",t,e),t},this.countSourceRows=function(){return r.countRows()},this.countSourceCols=function(){return r.countFirstRowKeys()},this.countRows=function(){return n.getLength()},this.countCols=function(){var e=d.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return l.view.wt.drawn?l.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return l.view.wt.drawn?l.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return l.view.wt.drawn?l.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return l.view.wt.drawn?l.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return gf(l.countRows()-1,(function(n){if(l.isEmptyRow(n))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(l.countRows()<1)return 0;var t=0;return gf(l.countCols()-1,(function(n){if(l.isEmptyCol(n))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return d.isEmptyRow.call(l,e)},this.isEmptyCol=function(e){return d.isEmptyCol.call(l,e)},this.selectCell=function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!Re(e)&&!Re(t)&&this.selectCells([[e,t,n,r]],o,i)},this.selectCells=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===t&&(u=!0);var r=v.selectCells(e);return r&&n&&l.listen(),u=!1,r},this.selectColumns=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return v.selectColumns(e,t)},this.selectRows=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return v.selectRows(e,t)},this.deselectCell=function(){v.deselect()},this.selectAll=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e&&this.hasRowHeaders(),n=e&&this.hasColHeaders();u=!0,v.selectAll(t,n),u=!1};var T=function(e,t){return e.getFirstNotHiddenIndex(t,1,!0)};function E(e){return function(){throw new Error('The "'.concat(e,'" method cannot be called because this Handsontable instance has been destroyed'))}}this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!n,a=!r,s=e,u=t;if(o){var c=Number.isInteger(e),f=Number.isInteger(t),h=c?T(this.rowIndexMapper,e):void 0,d=f?T(this.columnIndexMapper,t):void 0;if(null===h||null===d)return!1;s=c?l.rowIndexMapper.getRenderableFromVisualIndex(h):void 0,u=f?l.columnIndexMapper.getRenderableFromVisualIndex(d):void 0}var p=Number.isInteger(s),m=Number.isInteger(u);return p&&m?l.view.scrollViewport(new Et(s,u),i,r,n,a):p&&!1===m?l.view.scrollViewportVertically(s,i,n):!(!m||!1!==p)&&l.view.scrollViewportHorizontally(u,r,a)},this.destroy=function(){if(l._clearTimeouts(),l._clearImmediates(),l.view&&l.view.destroy(),r&&r.destroy(),r=null,h.clearCache(),Kw(),Jg(l)){var e=this.rootDocument.querySelector("#hot-display-license-info");e&&e.parentNode.removeChild(e)}Kn(l.rootElement),c.destroy(),i&&i.destroy(),l.batch((function(){l.runHooks("afterDestroy")})),ct.getSingleton().destroy(l),se(l,(function(e,t,n){Hr(e)?n[t]=E(t):"guid"!==t&&(n[t]=null)})),l.isDestroyed=!0,n&&n.destroy(),l.rowIndexMapper=null,l.columnIndexMapper=null,n=null,o=null,v=null,i=null,l=null},this.getActiveEditor=function(){return i.getActiveEditor()},this.getPlugin=function(e){return Tm(this,e)},this.getInstance=function(){return l},this.addHook=function(e,t){ct.getSingleton().add(e,t,l)},this.hasHook=function(e){return ct.getSingleton().has(e,l)},this.addHookOnce=function(e,t){ct.getSingleton().once(e,t,l)},this.removeHook=function(e,t){ct.getSingleton().remove(e,t,l)},this.runHooks=function(e,t,n,r,o,i,a){return ct.getSingleton().run(l,e,t,n,r,o,i,a)},this.getTranslatedPhrase=function(e,t){return Gw(d.language,e,t)},this.toHTML=function(){return Cm(a)},this.toTableElement=function(){var e=a.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",Cm(a)),e.firstElementChild},this.timeouts=[],this._registerTimeout=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;"function"===typeof n&&(n=setTimeout(n,t)),this.timeouts.push(n)},this._clearTimeouts=function(){j(this.timeouts,(function(e){clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){j(this.immediates,(function(e){clearImmediate(e)}))},this._refreshBorders=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];i.destroyEditor(e),l.view.render(),t&&v.isSelected()&&i.prepareEditor()},ct.getSingleton().run(l,"construct")}function Ak(e){var t="undefined"!==typeof window&&window.jQuery;t&&(t.fn.handsontable=function(t){var n,r=this.first(),o=r.data("handsontable");if("string"!==typeof t){var i=t||{};return o?o.updateSettings(i):(o=new e.Core(r[0],i),r.data("handsontable",o),o.init()),r}if(o){if("undefined"===typeof o[t])throw new Error("Handsontable do not provide action: ".concat(t));for(var a,s=arguments.length,u=new Array(s>1?s-1:0),l=1;l0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(e){var t=this.hot.rootDocument.createElement("col");return t.style.width="".concat(this.hot.view.wt.wtTable.getStretchedColumnWidth(e),"px"),t}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("table"),o=t.createElement("thead"),i=t.createElement("tbody"),a=t.createElement("colgroup"),s=t.createElement("tr"),u=t.createElement("th");return this.isVertical()&&r.appendChild(a),this.isHorizontal()&&(s.appendChild(u),o.appendChild(s),r.style.tableLayout="auto",r.style.width="auto"),r.appendChild(o),this.isVertical()&&i.appendChild(s),r.appendChild(i),Jn(r,e),n.appendChild(r),{fragment:n,table:r,tHead:o,tBody:i,colGroup:a,tr:s,th:u}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("div"),o="htGhostTable htAutoSize ".concat(e.trim());return Jn(r,o),n.appendChild(r),{fragment:n,container:r}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),e}(),Hk=Nk;function Pk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jk(e,t){for(var n=0;n=0&&Fk.splice(Fk.indexOf(this.pluginName),1),Fk.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1}},{key:"addHook",value:function(e,t){Bk.get(this).hooks[e]=Bk.get(this).hooks[e]||[];var n=Bk.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),Bk.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;j(Bk.get(this).hooks[e]||[],(function(n){t.hot.removeHook(e,n)}))}},{key:"clearHooks",value:function(){var e=this,t=Bk.get(this).hooks;se(t,(function(t,n){return e.removeHooks(n)})),t.length=0}},{key:"callOnPluginsReady",value:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}},{key:"onAfterPluginsInitialized",value:function(){j(this.pluginsInitializedCallbacks,(function(e){return e()})),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var e=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),se(this,(function(t,n){"hot"!==n&&(e[n]=null)})),delete this.t,delete this.hot}}]),e}(),Wk=Vk;function Uk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zk(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:window;Uk(this,e),this.rootWindow=n,this.prefix=t,this.savedKeys=[],this.loadSavedKeys()}return Gk(e,[{key:"saveValue",value:function(e,t){this.rootWindow.localStorage.setItem("".concat(this.prefix,"_").concat(e),JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}},{key:"loadValue",value:function(e,t){var n="undefined"===typeof e?t:e,r=this.rootWindow.localStorage.getItem("".concat(this.prefix,"_").concat(n));return null===r?void 0:JSON.parse(r)}},{key:"reset",value:function(e){this.rootWindow.localStorage.removeItem("".concat(this.prefix,"_").concat(e))}},{key:"resetAll",value:function(){var e=this;j(this.savedKeys,(function(t,n){e.rootWindow.localStorage.removeItem("".concat(e.prefix,"_").concat(e.savedKeys[n]))})),this.clearSavedKeys()}},{key:"loadSavedKeys",value:function(){var e=this.rootWindow.localStorage.getItem("".concat(this.prefix,"__persistentStateKeys")),t="string"===typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}},{key:"saveSavedKeys",value:function(){this.rootWindow.localStorage.setItem("".concat(this.prefix,"__persistentStateKeys"),JSON.stringify(this.savedKeys))}},{key:"clearSavedKeys",value:function(){this.savedKeys.length=0,this.saveSavedKeys()}}]),e}(),Zk=Xk;function Jk(e){return Jk="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},Jk(e)}function $k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qk(e,t){for(var n=0;n0;s=ie(l)?Object.keys(l).length:Array.isArray(l)?l.length:Me(l).length,f&&(s+=c),o.has(s)||o.set(s,{needed:r.getSampleCount(),strings:[]});var h=o.get(s);if(h.needed){var d=a.indexOf(l)>-1;(!d||r.allowDuplicates||f)&&(h.strings.push(cM({value:l},i,t)),a.push(l),h.needed-=1)}})),o}}]),e}(),mM=pM;function yM(e){return yM="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},yM(e)}function vM(e,t){return SM(e)||_M(e,t)||bM(e,t)||gM()}function gM(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bM(e,t){if(e){if("string"===typeof e)return wM(e,t);var n=Object.prototype.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)?wM(e,t):void 0}}function wM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="number"===typeof t?{from:t,to:t}:t,i="number"===typeof n?{from:n,to:n}:n;vf(o.from,o.to,(function(t){var n=e.hot.toPhysicalColumn(t);if(null===n&&(n=t),r||null===e.columnWidthsMap.getValueAtIndex(n)&&!e.hot._getColWidthFromSettings(n)){var o=e.samplesGenerator.generateColumnSamples(t,i);j(o,(function(t){var n=vM(t,2),r=n[0],o=n[1];return e.ghostTable.addColumn(r,o)}))}})),this.ghostTable.columns.length&&(this.hot.batch((function(){e.ghostTable.getWidths((function(t,n){var r=e.hot.toPhysicalColumn(t);e.columnWidthsMap.setValueAtIndex(r,n)}))})),this.measuredColumns=o.to+1,this.ghostTable.clean())}},{key:"calculateAllColumnsWidth",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},r=0,o=this.hot.countCols()-1,i=null;this.inProgress=!0;var a=function a(){if(!e.hot)return on(i),void(e.inProgress=!1);e.calculateColumnsWidth({from:r,to:Math.min(r+n.CALCULATION_STEP,o)},t),r=r+n.CALCULATION_STEP+1,r=0&&(this.calculateColumnsWidth({from:0,to:s},t),this.firstCalculation=!1,r=s+1),r>=0),Math.min(e,t)}},{key:"getColumnWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t;return void 0===r&&(r=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),n&&"number"===typeof r&&(r=Math.max(r,gt.DEFAULT_WIDTH))),r}},{key:"getFirstVisibleColumn",value:function(){var e=this.hot.view.wt;if(e.wtViewport.columnsVisibleCalculator){var t=e.wtTable.getFirstVisibleColumn();if(-1!==t)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(t)}if(e.wtViewport.columnsRenderCalculator){var n=e.wtTable.getFirstRenderedColumn();if(-1!==n)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)}return-1}},{key:"getLastVisibleColumn",value:function(){var e=this.hot.view.wt;if(e.wtViewport.columnsVisibleCalculator){var t=e.wtTable.getLastVisibleColumn();if(-1!==t)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(t)}if(e.wtViewport.columnsRenderCalculator){var n=e.wtTable.getLastRenderedColumn();if(-1!==n)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)}return-1}},{key:"findColumnsWhereHeaderWasChanged",value:function(){var e=this.hot.getColHeader(),t=NM.get(this),n=t.cachedColumnHeaders,r=N(e,(function(e,t,r){var o=n.length;return(o-10&&void 0!==arguments[0]?arguments[0]:[];t.length?this.hot.batch((function(){j(t,(function(t){e.columnWidthsMap.setValueAtIndex(t,null)}))})):this.columnWidthsMap.clear()}},{key:"isNeedRecalculate",value:function(){return!!H(this.columnWidthsMap.getValues().slice(0,this.measuredColumns),(function(e){return null===e})).length}},{key:"onBeforeRender",value:function(){this.calculateVisibleColumnsWidth(),this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth()}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllColumnsWidth():setTimeout((function(){e.hot&&e.recalculateAllColumnsWidth()}),0)}},{key:"onBeforeChange",value:function(e){var t=this,n=P(e,(function(e){var n=vM(e,2),r=n[1];return t.hot.toPhysicalColumn(t.hot.propToCol(r))}));this.clearCache(Array.from(new Set(n)))}},{key:"onBeforeColumnResize",value:function(e,t,n){var r=e;return n&&(this.calculateColumnsWidth(t,void 0,!0),r=this.getColumnWidth(t,void 0,!1)),r}},{key:"onAfterInit",value:function(){NM.get(this).cachedColumnHeaders=this.hot.getColHeader()}},{key:"destroy",value:function(){this.hot.columnIndexMapper.unregisterMap(HM),this.ghostTable.clean(),kM(DM(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("autoColumnSize",PM);var jM=PM,YM={horizontal:"horizontal",vertical:"vertical"};function BM(e,t,n,r){var o=n.length,i=n?n[0].length:0,a=[],s=t.row-e.row,u=t.col-e.col;if(-1!==["down","up"].indexOf(r)){for(var l=[],c=0;ce[3]?(o="right",n=new Et(t[0],e[3]+1),r=new Et(t[2],t[3])):t[0]e[2]&&t[1]===e[1]&&(o="down",n=new Et(e[2]+1,t[1]),r=new Et(t[2],t[3])),n&&n.normalize(),r&&r.normalize(),{directionOfDrag:o,startOfDragCoords:n,endOfDragCoords:r}}function VM(e){var t={};return!0===e?(t.directions=Object.keys(YM),t.autoInsertRow=!0):ie(e)?(Oe(e.autoInsertRow)?e.direction===YM.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,Oe(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(YM)):"string"===typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1),t}function WM(e){return WM="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},WM(e)}function UM(e){return XM(e)||GM(e)||$M(e)||zM()}function zM(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function GM(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function XM(e){if(Array.isArray(e))return QM(e)}function ZM(e,t){return qM(e)||KM(e,t)||$M(e,t)||JM()}function JM(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $M(e,t){if(e){if("string"===typeof e)return QM(e,t);var n=Object.prototype.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)?QM(e,t):void 0}}function QM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&d.col>-1){var m=this.getSelectionData(),y=this.hot.runHooks("beforeAutofill",d,p,m);if(!1===y)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;var v=BM(d,p,m,h),g=m;if(["up","left"].indexOf(h)>-1){g=[];var b=null,w=null;if("up"===h){b=p.row-d.row+1,w=b%m.length;for(var _=0;_=e.col)&&(r=new Et(n.row,e.col)),(n.rowe.row)&&(r=new Et(e.row,n.col))}else if(this.directions.includes(YM.vertical))r=new Et(e.row,n.col);else{if(!this.directions.includes(YM.horizontal))return;r=new Et(n.row,e.col)}return this.reduceSelectionAreaIfNeeded(r)}},{key:"showBorder",value:function(e){var t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}},{key:"addRow",value:function(){var e=this;this.hot._registerTimeout((function(){e.hot.alter(hO,void 0,1,"".concat(e.pluginName,".fill")),e.addingStarted=!1}),dO)}},{key:"addNewRowIfNeeded",value:function(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){var e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),n=this.hot.countRows();e[2]n&&e.clientX<=r}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()})),this.eventManager.addEventListener(t,"mousemove",(function(t){return e.onMouseMove(t)}))}},{key:"onCellCornerDblClick",value:function(){var e=this.selectAdjacent();e&&this.fillIn()}},{key:"onAfterCellCornerMouseDown",value:function(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}},{key:"onBeforeCellMouseOver",value:function(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}},{key:"onMouseUp",value:function(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}},{key:"onMouseMove",value:function(e){var 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()}},{key:"clearMappedSettings",value:function(){this.directions.length=0,this.autoInsertRow=!1}},{key:"mapSettings",value:function(){var e=VM(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}},{key:"destroy",value:function(){rO(fO(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("autofill",pO);var mO=pO;function yO(e){return yO="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},yO(e)}function vO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gO(e,t){for(var n=0;n=n.countNotHiddenRowIndexes(0,1)-r.getSetting("fixedRowsBottom");l?a=r.wtOverlays.topLeftCornerOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col):c&&(a=r.wtOverlays.bottomLeftCornerOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col)),a||(a=r.wtOverlays.leftOverlay.getRelativeCellPosition(this.currentTH,o.row,o.col)),this.currentRow=this.hot.rowIndexMapper.getVisualFromRenderableIndex(i),this.selectedRows=[];var f=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();if(this.hot.selection.isSelected()&&f){var h=this.hot.getSelectedRange();j(h,(function(e){var n=e.getTopLeftCorner().row,r=e.getBottomLeftCorner().row;vf(n,r,(function(e){t.selectedRows.includes(e)||t.selectedRows.push(e)}))}))}this.selectedRows.includes(this.currentRow)||(this.selectedRows=[this.currentRow]),this.startOffset=a.top-6,this.startHeight=parseInt(u.height,10),this.handle.style.top="".concat(this.startOffset+this.startHeight,"px"),this.handle.style.left="".concat(a.left,"px"),this.handle.style.width="".concat(s,"px"),this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.top="".concat(this.startOffset+this.currentHeight,"px")}},{key:"setupGuidePosition",value:function(){var e=parseInt(pr(this.handle),10),t=parseInt(this.handle.style.left,10)+e,n=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);Jn(this.handle,"active"),Jn(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style.left="".concat(t,"px"),this.guide.style.width="".concat(n-e,"px"),this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.top=this.handle.style.top}},{key:"hideHandleAndGuide",value:function(){$n(this.handle,"active"),$n(this.guide,"active")}},{key:"checkIfRowHeader",value:function(e){var t,n,r=Bn(e,["TH"],this.hot.rootElement);return r&&"TBODY"===(null===(t=e.parentNode)||void 0===t||null===(n=t.parentNode)||void 0===n?void 0:n.tagName)}},{key:"getClosestTHParent",value:function(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}},{key:"getActualRowHeight",value:function(e){var t=this.hot.view.wt.wtTable.getRowHeight(e);return void 0!==t&&this.newSize=2){var r=this.selectedRows.length;r>1?(j(this.selectedRows,(function(e){n(e)})),t()):j(this.selectedRows,(function(e){n(e,!0)}))}this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;Zn(e.target,"manualRowResizer")&&(this.setupHandlePosition(this.currentTH),this.setupGuidePosition(),this.pressed=!0,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout((function(){return t.afterMouseDownTimeout()}),500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startY=e.pageY,this.newSize=this.startHeight)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+(e.pageY-this.startY),j(this.selectedRows,(function(e){t.newSize=t.setManualSize(e,t.currentHeight)})),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,r){e.hot.runHooks("beforeRowResize",e.getActualRowHeight(n),n,!1),r&&t(),e.saveManualRowHeights(),e.hot.runHooks("afterRowResize",e.getActualRowHeight(n),n,!1)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startHeight){var r=this.selectedRows.length;r>1?(j(this.selectedRows,(function(e){n(e)})),t()):j(this.selectedRows,(function(e){n(e,!0)}))}this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this,t=this.hot,n=t.rootElement,r=t.rootWindow;this.eventManager.addEventListener(n,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(n,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(r,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(r,"mouseup",(function(){return e.onMouseUp()}))}},{key:"onModifyRowHeight",value:function(e,t){var n=e;if(this.enabled){var r=this.hot.toPhysicalRow(t),o=this.rowHeightsMap.getValueAtIndex(r);this.hot.getSettings().manualRowResize&&o&&(n=o)}return n}},{key:"onMapInit",value:function(){var e=this,t=LO.get(this),n=this.hot.getSettings().manualRowResize,r=this.loadManualRowHeights();this.hot.batch((function(){"undefined"!==typeof r?r.forEach((function(t,n){e.rowHeightsMap.setValueAtIndex(n,t)})):Array.isArray(n)?(n.forEach((function(t,n){e.rowHeightsMap.setValueAtIndex(n,t)})),t.config=n):!0===n&&Array.isArray(t.config)&&t.config.forEach((function(t,n){e.rowHeightsMap.setValueAtIndex(n,t)}))}))}},{key:"destroy",value:function(){this.hot.rowIndexMapper.unregisterMap(this.pluginName),wO(TO(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("manualRowResize",AO);var IO=AO;function xO(e){return xO="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},xO(e)}function DO(e,t){return YO(e)||jO(e,t)||HO(e,t)||NO()}function NO(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function HO(e,t){if(e){if("string"===typeof e)return PO(e,t);var n=Object.prototype.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)?PO(e,t):void 0}}function PO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?n=r.hot.getDataAtCell(e,t):-1===e&&(n=r.hot.getColHeader(t)),{value:n}})),r.firstCalculation=!0,r.inProgress=!1,r.measuredRows=0,r.rowHeightsMap=new bv,r.hot.rowIndexMapper.registerMap(KO,r.rowHeightsMap),r.addHook("beforeRowResize",(function(e,t,n){return r.onBeforeRowResize(e,t,n)})),r}return UO(n,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),UO(n,[{key:"isEnabled",value:function(){return!0===this.hot.getSettings().autoRowSize||ie(this.hot.getSettings().autoRowSize)}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",(function(){return e.onAfterLoadData()})),this.addHook("beforeChange",(function(t){return e.onBeforeChange(t)})),this.addHook("beforeColumnResize",(function(){return e.recalculateAllRowsHeight()})),this.addHook("beforeRender",(function(t){return e.onBeforeRender(t)})),this.addHook("modifyRowHeight",(function(t,n){return e.getRowHeight(n,t)})),this.addHook("modifyColumnHeaderHeight",(function(){return e.getColumnHeaderHeight()})),FO(QO(n.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=this;this.headerHeight=null,FO(QO(n.prototype),"disablePlugin",this).call(this),this.addHook("beforeRowResize",(function(t,n,r){return e.onBeforeRowResize(t,n,r)}))}},{key:"calculateRowsHeight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="number"===typeof t?{from:t,to:t}:t,i="number"===typeof n?{from:n,to:n}:n;if(null!==this.hot.getColHeader(0)){var a=this.samplesGenerator.generateRowSamples(-1,i);this.ghostTable.addColumnHeadersRow(a.get(-1))}vf(o.from,o.to,(function(t){if(r||null===e.rowHeightsMap.getValueAtIndex(t)){var n=e.samplesGenerator.generateRowSamples(t,i);j(n,(function(t){var n=DO(t,2),r=n[0],o=n[1];return e.ghostTable.addRow(r,o)}))}})),this.ghostTable.rows.length&&(this.hot.batch((function(){e.ghostTable.getHeights((function(t,n){t<0?e.headerHeight=n:e.rowHeightsMap.setValueAtIndex(e.hot.toPhysicalRow(t),n)}))})),this.measuredRows=o.to+1,this.ghostTable.clean())}},{key:"calculateAllRowsHeight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},r=0,o=this.hot.countRows()-1,i=null;this.inProgress=!0;var a=function a(){if(!e.hot)return on(i),void(e.inProgress=!1);e.calculateRowsHeight({from:r,to:Math.min(r+n.CALCULATION_STEP,o)},t),r=r+n.CALCULATION_STEP+1,r=0&&(this.calculateRowsHeight({from:0,to:s},t),this.firstCalculation=!1,r=s+1),r>=0),Math.min(e,t)}},{key:"getRowHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=e<0?this.headerHeight:this.rowHeightsMap.getValueAtIndex(this.hot.toPhysicalRow(e)),r=t;return null!==n&&n>(t||0)&&(r=n),r}},{key:"getColumnHeaderHeight",value:function(){return this.headerHeight}},{key:"getFirstVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getFirstVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getFirstRenderedRow():-1}},{key:"getLastVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getLastVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getLastRenderedRow():-1}},{key:"clearCache",value:function(){this.headerHeight=null,this.rowHeightsMap.init()}},{key:"clearCacheByRange",value:function(e){var t=this,n="number"===typeof e?{from:e,to:e}:e,r=n.from,o=n.to;this.hot.batch((function(){vf(Math.min(r,o),Math.max(r,o),(function(e){t.rowHeightsMap.setValueAtIndex(e,null)}))}))}},{key:"isNeedRecalculate",value:function(){return!!H(this.rowHeightsMap.getValues().slice(0,this.measuredRows),(function(e){return null===e})).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall,t=this.hot.getSettings().fixedRowsBottom,n=this.getFirstVisibleRow(),r=this.getLastVisibleRow();if(-1!==n&&-1!==r){if(this.calculateRowsHeight({from:n,to:r},void 0,e),t){var o=this.hot.countRows()-1;this.calculateRowsHeight({from:o-t,to:o})}this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllRowsHeight()}}},{key:"onBeforeRowMove",value:function(e,t){this.clearCacheByRange({from:e,to:t}),this.calculateAllRowsHeight()}},{key:"onBeforeRowResize",value:function(e,t,n){var r=e;return n&&(this.calculateRowsHeight(t,void 0,!0),r=this.getRowHeight(t)),r}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllRowsHeight():setTimeout((function(){e.hot&&e.recalculateAllRowsHeight()}),0)}},{key:"onBeforeChange",value:function(e){var t=null;1===e.length?t=e[0][0]:e.length>1&&(t={from:e[0][0],to:e[e.length-1][0]}),null!==t&&this.clearCacheByRange(t)}},{key:"destroy",value:function(){this.hot.rowIndexMapper.unregisterMap(KO),this.ghostTable.clean(),FO(QO(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("autoRowSize",qO);var eR=qO;n("a623");function tR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nR(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&!1===zi(n)}var TR="ascending",ER="descending",LR="indicatorDisabled",AR="columnSorting",IR="sortAction",xR=new Map([[bR,TR],[wR,ER]]);function DR(e,t,n,r){var o=[AR];if(r&&o.push(IR),!1===n)return o.push(LR),o;var i=e.getSortOrderOfColumn(t);return Oe(i)&&o.push(xR.get(i)),o}function NR(){return Array.from(xR.values()).concat(IR,LR,AR)}function HR(e,t,n){return function(t,r){var o=n.sortEmptyCells;return"string"===typeof t&&(t=t.toLowerCase()),"string"===typeof r&&(r=r.toLowerCase()),t===r?iT:Te(t)?Te(r)?iT:o&&"asc"===e?aT:sT:Te(r)?o&&"asc"===e?sT:aT:isNaN(t)&&!isNaN(r)?"asc"===e?sT:aT:!isNaN(t)&&isNaN(r)?"asc"===e?aT:sT:(isNaN(t)||isNaN(r)||(t=parseFloat(t),r=parseFloat(r)),tr?"asc"===e?sT:aT:iT)}}var PR="default";function jR(e,t,n){return function(t,r){var o=parseFloat(t),i=parseFloat(r),a=n.sortEmptyCells;if(o===i||isNaN(o)&&isNaN(i))return iT;if(a){if(Te(t))return"asc"===e?aT:sT;if(Te(r))return"asc"===e?sT:aT}return isNaN(o)?sT:isNaN(i)?aT:oi?"asc"===e?sT:aT:iT}}var YR="numeric";function BR(e,t,n){return function(r,o){var i=n.sortEmptyCells;if(r===o)return iT;if(Te(r))return Te(o)?iT:i&&"asc"===e?aT:sT;if(Te(o))return i&&"asc"===e?sT:aT;var a=t.dateFormat,s=me()(r,a),u=me()(o,a);return s.isValid()?u.isValid()?u.isAfter(s)?"asc"===e?aT:sT:u.isBefore(s)?"asc"===e?sT:aT:iT:aT:sT}}var FR="date",VR=A("sorting.compareFunctionFactory"),WR=VR.register,UR=VR.getItem,zR=VR.hasItem,GR=A("sorting.mainSortComparator"),XR=GR.register,ZR=GR.getItem;function JR(e){return zR(e)?UR(e):UR(PR)}function $R(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:nT,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(Math.abs(r-n)<=1)return[];var o=Math.ceil((n+r)/2);return rT(e,t,n,o),rT(e,t,o,r),oT(e,t,n,o,r)}function oT(e,t,n,r,o){for(var i=new tT,a=new tT,s=r-n,u=o-r,l=Math.max(s,u),c=o-n,f=0;f0?e[n+h]=a.shift().data:e[n+h]=i.shift().data:i.first?e[n+h]=i.shift().data:e[n+h]=a.shift().data,h+=1;return e}var iT=0,aT=-1,sT=1;function uT(e,t){for(var n=ZR(t),r=arguments.length,o=new Array(r>2?r-2:0),i=2;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function RT(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function TT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ET(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.slice(0,1):[e]}},{key:"areValidSortConfigs",value:function(e){var t=this.hot.countCols();return CR(e)&&e.every((function(e){var n=e.column;return n<=t&&n>=0}))}},{key:"saveAllSortSettings",value:function(e){var t=this,n=this.columnStatesManager.getAllColumnsProperties(),r=function(e){var n=e.column,r=OT(e,["column"]);return kT({column:t.hot.toPhysicalColumn(n)},r)};n.initialConfig=P(e,r),this.hot.runHooks("persistentStateSave","columnSorting",n)}},{key:"getAllSavedSortSettings",value:function(){var e=this,t={};this.hot.runHooks("persistentStateLoad","columnSorting",t);var n=t.value,r=function(t){var n=t.column,r=OT(t,["column"]);return kT({column:e.hot.toVisualColumn(n)},r)};return Oe(n)&&Array.isArray(n.initialConfig)&&(n.initialConfig=P(n.initialConfig,r)),n}},{key:"getColumnNextConfig",value:function(e){var t=this.columnStatesManager.getSortOrderOfColumn(e);if(Oe(t)){var n=kR(t);return Oe(n)?{column:e,sortOrder:n}:void 0}var r=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&e1&&void 0!==arguments[1]?arguments[1]:BT,n=this.columnStatesManager.getIndexOfColumnInSortQueue(e),r=-1!==n,o=this.getSortConfig(),i=this.getColumnNextConfig(e);if(r){if(Re(i))return[].concat(vT(o.slice(0,n)),vT(o.slice(n+1)));if(t===BT)return[].concat(vT(o.slice(0,n)),vT(o.slice(n+1)),[i]);if(t===FT)return[].concat(vT(o.slice(0,n)),[i],vT(o.slice(n+1)))}return Oe(i)?o.concat(i):o}},{key:"getPluginColumnConfig",value:function(e){if(ie(e)){var t=e[this.pluginKey];if(ie(t))return t}return{}}},{key:"getMergedPluginSettings",value:function(e){var t=this.hot.getSettings()[this.pluginKey],n=this.columnStatesManager.getAllColumnsProperties(),r=this.hot.getCellMeta(0,e),o=Object.getPrototypeOf(r);return Array.isArray(o.columns)?Object.assign(n,t,this.getPluginColumnConfig(o.columns[e])):Hr(o.columns)?Object.assign(n,t,this.getPluginColumnConfig(o.columns(e))):Object.assign(n,t)}},{key:"getFirstCellSettings",value:function(e){var t=this.hot.getCellMeta(0,e),n=Object.create(t);return n[this.pluginKey]=this.columnMetaCache.getValueAtIndex(this.hot.toPhysicalColumn(e)),n}},{key:"getNumberOfRowsToSort",value:function(e){var t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}},{key:"sortByPresetSortStates",value:function(e){var t=this;if(0!==e.length){for(var n=[],r=this.hot.countRows(),o=function(n){return P(e,(function(e){return t.hot.getDataAtCell(n,e.column)}))},i=0;i1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:"",t=e||"";this.getInputElement().value=t}},{key:"getValue",value:function(){return this.getInputElement().value}},{key:"isFocused",value:function(){return this.rootDocument.activeElement===this.getInputElement()}},{key:"focus",value:function(){this.getInputElement().focus()}},{key:"createEditor",value:function(){var t=this.rootDocument.createElement("div"),n=this.rootDocument.createElement("textarea");return this.container=this.rootDocument.querySelector(".".concat(e.CLASS_EDITOR_CONTAINER)),this.container||(this.container=this.rootDocument.createElement("div"),Jn(this.container,e.CLASS_EDITOR_CONTAINER),this.rootDocument.body.appendChild(this.container)),Jn(t,e.CLASS_EDITOR),Jn(n,e.CLASS_INPUT),t.appendChild(n),this.container.appendChild(t),t}},{key:"getInputElement",value:function(){return this.editor.querySelector(".".concat(e.CLASS_INPUT))}},{key:"destroy",value:function(){var e=this.container?this.container.parentNode:null;this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null,e&&e.removeChild(this.container)}}]),e}(),JT=ZT,$T="---------";function QT(){return{name:$T}}function KT(e){return P(e,(function(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}}))}function qT(e){return Zn(e,"htSeparator")}function eE(e){return Zn(e,"htSubmenu")}function tE(e){return Zn(e,"htDisabled")}function nE(e){return Zn(e,"htSelectionDisabled")}function rE(e){var t=e.getSelected();return t?t[0]<0?null:t:null}function oE(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","");return"".concat(n," ").concat(t)}function iE(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","");return"".concat(n," ").concat(t)}function aE(e,t){var n={};return j(e,(function(e){e.forAll((function(e,r){e>=0&&r>=0&&(n[e]||(n[e]=[]),n[e][r]=t(e,r))}))})),n}function sE(e,t,n,r,o){j(e,(function(e){e.forAll((function(e,i){e>=0&&i>=0&&uE(e,i,t,n,r,o)}))}))}function uE(e,t,n,r,o,i){var a=o(e,t),s=r;a.className&&(s="vertical"===n?oE(a.className,r):iE(a.className,r)),i(e,t,"className",s)}function lE(e,t){var n=!1;return Array.isArray(e)&&j(e,(function(e){return e.forAll((function(e,r){if(e>=0&&r>=0&&t(e,r))return n=!0,!1})),n})),n}function cE(e){return''.concat(String.fromCharCode(10003),"").concat(e)}function fE(e,t){return!e.hidden||!("function"===typeof e.hidden&&e.hidden.call(t))}function hE(e,t){for(var n=e.slice(0),r=0;r0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)})),t}function mE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$T,n=e.slice(0);return n=hE(n,t),n=dE(n,t),n=pE(n),n}function yE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vE(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:bE;this.showDebounced=Yr((function(t){e.wasLastActionShow&&e.runLocalHooks("show",t.from.row,t.from.col)}),t)}},{key:"destroy",value:function(){this.clearLocalHooks()}}]),e}();re(_E,Oy);var SE=_E;function CE(e){return CE="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},CE(e)}function kE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ME(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OE(e,t){for(var n=0;n0&&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,jE,void 0),e&&this.hot.render(),this.hide()}},{key:"removeCommentAtCell",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:new Et(e,t)}),this.removeComment(n)}},{key:"getComment",value:function(){var e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,YE)}},{key:"getCommentAtCell",value:function(e,t){return this.getCommentMeta(e,t,YE)}},{key:"show",value:function(){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var e=this.range.from,t=e.row,n=e.col;if(t<0||t>this.hot.countSourceRows()-1||n<0||n>this.hot.countSourceCols()-1)return!1;var r=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.refreshEditor(!0),this.editor.setValue(r[jE]?r[jE][YE]:""),this.editor.hidden&&this.editor.show(),!0}},{key:"showAtCell",value:function(e,t){return this.setRange({from:new Et(e,t)}),this.show()}},{key:"hide",value:function(){this.editor.hidden||this.editor.hide()}},{key:"refreshEditor",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n||this.range.from&&this.editor.isVisible()){var r=this.hot,o=r.rowIndexMapper,i=r.columnIndexMapper,a=this.range.from,s=a.row,u=a.col,l=o.getRenderableFromVisualIndex(s),c=i.getRenderableFromVisualIndex(u),f=null===l;null===l&&(l=o.getRenderableFromVisualIndex(o.getFirstNotHiddenIndex(s,-1))),null===c&&(c=i.getRenderableFromVisualIndex(i.getFirstNotHiddenIndex(u,-1)));var h=null===l,d=null===c;l=null!==(e=l)&&void 0!==e?e:0,c=null!==(t=c)&&void 0!==t?t:0;var p=this.hot,m=p.rootWindow,y=p.view.wt,v=y.wtTable,g=y.wtOverlays,b=y.wtViewport,w=g.scrollableElement,_=v.getCell({row:l,col:c}),S=or(_),C=d?0:v.getStretchedColumnWidth(c),k=f&&!h?mr(_):0,M=S.top,O=S.left;b.hasVerticalScroll()&&w!==m&&(M-=g.topOverlay.getScrollPosition()),b.hasHorizontalScroll()&&w!==m&&(O-=g.leftOverlay.getScrollPosition());var R=O+C,T=M+k,E=this.getCommentMeta(s,u,BE),L=this.getCommentMeta(s,u,FE);E?this.editor.setSize(E.width,E.height):this.editor.resetSize(),this.editor.setReadOnlyState(L),this.editor.setPosition(R,T)}}},{key:"checkSelectionCommentsConsistency",value:function(){var e=this.hot.getSelectedRangeLast();if(!e)return!1;var t=!1,n=e.getTopLeftCorner();return this.getCommentMeta(n.row,n.col,YE)&&(t=!0),t}},{key:"updateCommentMeta",value:function(e,t,n){var r,o=this.hot.getCellMeta(e,t)[jE];o?(r=te(o),ee(r,n)):r=n,this.hot.setCellMeta(e,t,jE,r)}},{key:"getCommentMeta",value:function(e,t,n){var r=this.hot.getCellMeta(e,t);if(r[jE])return r[jE][n]}},{key:"onMouseDown",value:function(e){if(this.mouseDown=!0,this.hot.view&&this.hot.view.wt){if(!this.contextMenuEvent&&!this.targetIsCommentTextArea(e)){var t=Bn(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.view.wt.wtTable.getCoords(t),n={row:this.hot.rowIndexMapper.getVisualFromRenderableIndex(n.row),col:this.hot.columnIndexMapper.getVisualFromRenderableIndex(n.col)}),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}this.contextMenuEvent=!1}}},{key:"onMouseOver",value:function(e){var t=PE.get(this),n=this.hot.rootDocument;if(t.cellBelowCursor=n.elementFromPoint(e.clientX,e.clientY),!(this.mouseDown||this.editor.isFocused()||Zn(e.target,"wtBorder")||t.cellBelowCursor!==e.target)&&this.editor)if(this.targetIsCellWithComment(e)){var r=this.hot.view.wt.wtTable.getCoords(e.target),o={from:new Et(this.hot.rowIndexMapper.getVisualFromRenderableIndex(r.row),this.hot.columnIndexMapper.getVisualFromRenderableIndex(r.col))};this.displaySwitch.show(o)}else Vn(e.target,n)&&!this.targetIsCommentTextArea(e)&&this.displaySwitch.hide()}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onAfterRenderer",value:function(e,t){t[jE]&&t[jE][YE]&&Jn(e,t.commentedCellClassName)}},{key:"onEditorBlur",value:function(){this.setComment()}},{key:"onEditorMouseDown",value:function(e){var t=PE.get(this);t.tempEditorDimensions={width:pr(e.target),height:mr(e.target)}}},{key:"onEditorMouseUp",value:function(e){var t=PE.get(this),n=pr(e.target),r=mr(e.target);n===t.tempEditorDimensions.width+1&&r===t.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,kE({},BE,{width:n,height:r}))}},{key:"onContextMenuAddComment",value:function(){var e=this;this.displaySwitch.cancelHiding();var t=this.hot.getSelectedRangeLast();this.contextMenuEvent=!0,this.setRange({from:t.highlight}),this.show(),setTimeout((function(){e.hot&&(e.hot.deselectCell(),e.editor.focus())}),10)}},{key:"onContextMenuRemoveComment",value:function(){var e=this,t=this.hot.getSelectedRangeLast();this.contextMenuEvent=!0,t.forAll((function(t,n){t>=0&&n>=0&&e.removeCommentAtCell(t,n,!1)})),this.hot.render()}},{key:"onContextMenuMakeReadOnly",value:function(){var e=this,t=this.hot.getSelectedRangeLast();this.contextMenuEvent=!0,t.forAll((function(t,n){if(t>=0&&n>=0){var r=!!e.getCommentMeta(t,n,FE);e.updateCommentMeta(t,n,kE({},FE,!r))}}))}},{key:"addToContextMenu",value:function(e){var t=this,n=function(){return t.hot.rowIndexMapper.getRenderableIndexesLength()>0&&t.hot.columnIndexMapper.getRenderableIndexesLength()>0};e.items.push({name:"---------"},{key:"commentsAddEdit",name:function(){return t.checkSelectionCommentsConsistency()?t.hot.getTranslatedPhrase(Sb):t.hot.getTranslatedPhrase(_b)},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!n()||!(t.hot.getSelectedLast()&&!t.hot.selection.isSelectedByCorner())}},{key:"commentsRemove",name:function(){return this.getTranslatedPhrase(Cb)},callback:function(){return t.onContextMenuRemoveComment()},disabled:function(){return!n()||!(t.hot.getSelectedLast()&&!t.hot.selection.isSelectedByCorner())}},{key:"commentsReadOnly",name:function(){var e=this,t=this.getTranslatedPhrase(kb),n=lE(this.getSelectedRangeLast(),(function(t,n){var r=e.getCellMeta(t,n)[jE];if(r&&(r=r[FE]),r)return!0}));return n&&(t=cE(t)),t},callback:function(){return t.onContextMenuMakeReadOnly()},disabled:function(){return!n()||(!(t.hot.getSelectedLast()&&!t.hot.selection.isSelectedByCorner())||!t.checkSelectionCommentsConsistency())}})}},{key:"getDisplayDelaySetting",value:function(){var e=this.hot.getSettings().comments;if(ie(e))return e.displayDelay}},{key:"onAfterBeginEditing",value:function(){this.hide()}},{key:"destroy",value:function(){this.editor&&this.editor.destroy(),this.displaySwitch&&this.displaySwitch.destroy(),TE(HE(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("comments",VE);var WE=VE;function UE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zE(e,t){for(var n=0;n1?n-1:0),o=1;o=this.getSettings().maxCols},hidden:function(){return!this.getSettings().allowInsertColumn}}}var nL="col_right";function rL(){return{key:nL,name:function(){return this.getTranslatedPhrase(ub)},callback:function(e,t){var n=this.selection.isSelectedByCorner(),r=0;if(n)r=this.countCols();else{var o,i=t[Math.max(t.length-1,0)],a=null===i||void 0===i||null===(o=i.end)||void 0===o?void 0:o.col;r=Oe(a)?a+1:0}this.alter("insert_col",r,1,"ContextMenu.columnRight"),n&&this.selectAll()},disabled:function(){if(!this.isColumnModificationAllowed())return!0;var e=rE(this);return!e||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols)},hidden:function(){return!this.getSettings().allowInsertColumn}}}var oL="make_read_only";function iL(){return{key:oL,name:function(){var e=this,t=this.getTranslatedPhrase(db),n=lE(this.getSelectedRange(),(function(t,n){return e.getCellMeta(t,n).readOnly}));return n&&(t=cE(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=lE(t,(function(t,n){return e.getCellMeta(t,n).readOnly}));j(t,(function(t){t.forAll((function(t,r){t>=0&&r>=0&&e.setCellMeta(t,r,"readOnly",!n)}))})),this.render()},disabled:function(){return!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))}}}var aL="redo";function sL(){return{key:aL,name:function(){return this.getTranslatedPhrase(hb)},callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}}}function uL(e,t){return dL(e)||hL(e,t)||cL(e,t)||lL()}function lL(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function cL(e,t){if(e){if("string"===typeof e)return fL(e,t);var n=Object.prototype.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)?fL(e,t):void 0}}function fL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)t=1;else{var n=uL(e[0],4),r=n[1],o=n[3];r-o!==0&&(t=1)}return this.getTranslatedPhrase(cb,t)},callback:function(){this.alter("remove_col",uC(this.getSelected()),null,"ContextMenu.removeColumn")},disabled:function(){if(!this.isColumnModificationAllowed())return!0;var e=rE(this);if(!e)return!0;var t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden:function(){return!this.getSettings().allowRemoveColumn}}}function yL(e,t){return _L(e)||wL(e,t)||gL(e,t)||vL()}function vL(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gL(e,t){if(e){if("string"===typeof e)return bL(e,t);var n=Object.prototype.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)?bL(e,t):void 0}}function bL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)t=1;else{var n=yL(e[0],3),r=n[0],o=n[2];r-o!==0&&(t=1)}return this.getTranslatedPhrase(lb,t)},callback:function(){this.alter("remove_row",lC(this.getSelected()),1,"ContextMenu.removeRow")},disabled:function(){var e=rE(this);if(!e)return!0;var t=this.countRows();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByColumnHeader()||0===t},hidden:function(){return!this.getSettings().allowRemoveRow}}}var kL="row_above";function ML(){return{key:kL,name:function(){return this.getTranslatedPhrase(ib)},callback:function(e,t){var n=this.selection.isSelectedByCorner(),r=0;if(!n){var o=t[Math.max(t.length-1,0)];r=o.start.row}this.alter("insert_row",r,1,"ContextMenu.rowAbove"),n&&this.selectAll()},disabled:function(){var e=rE(this);if(!e)return!0;if(this.selection.isSelectedByCorner()){var t=this.countRows();return 0===t}return this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}var OL="row_below";function RL(){return{key:OL,name:function(){return this.getTranslatedPhrase(ab)},callback:function(e,t){var n=this.selection.isSelectedByCorner(),r=0;if(n)r=this.countRows();else{var o,i=t[Math.max(t.length-1,0)],a=null===i||void 0===i||null===(o=i.end)||void 0===o?void 0:o.row;r=Oe(a)?a+1:0}this.alter("insert_row",r,1,"ContextMenu.rowBelow"),n&&this.selectAll()},disabled:function(){var e=rE(this);return!e||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}}var TL="no_items";function EL(){return{key:TL,name:function(){return this.getTranslatedPhrase(ob)},disabled:!0,isCommand:!1}}var LL,AL="undo";function IL(){return{key:AL,name:function(){return this.getTranslatedPhrase(fb)},callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}}}function xL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DL=[kL,OL,eL,nL,KE,SL,pL,AL,aL,oL,$E,$T,TL],NL=(LL={},xL(LL,$T,QT),xL(LL,TL,EL),xL(LL,kL,ML),xL(LL,OL,RL),xL(LL,eL,tL),xL(LL,nL,rL),xL(LL,KE,qE),xL(LL,SL,CL),xL(LL,pL,mL),xL(LL,AL,IL),xL(LL,aL,sL),xL(LL,oL,iL),xL(LL,$E,QE),LL);function HL(){var e={};return se(NL,(function(t,n){e[n]=t()})),e}function PL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jL(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null;PL(this,e),this.hot=t,this.predefinedItems=HL(),this.defaultOrderPattern=n}return YL(e,[{key:"setPredefinedItems",value:function(e){var t=this,n={};this.defaultOrderPattern.length=0,se(e,(function(e,r){var o="";e.name===$T?(n[$T]=e,o=$T):isNaN(parseInt(r,10))?(e.key=void 0===e.key?r:e.key,n[r]=e,o=e.key):(n[e.key]=e,o=e.key),t.defaultOrderPattern.push(o)})),this.predefinedItems=n}},{key:"getItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return FL(e,this.defaultOrderPattern,this.predefinedItems)}}]),e}();function FL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=e;return o&&o.items?o=o.items:Array.isArray(o)||(o=t),ie(o)?se(o,(function(e,t){var o=n["string"===typeof e?e:t];o||(o=e),ie(e)?q(o,e):"string"===typeof o&&(o={name:o}),void 0===o.key&&(o.key=t),r.push(o)})):j(o,(function(e,t){var o=n[e];!o&&DL.indexOf(e)>=0||(o||(o={name:e,key:"".concat(t)}),ie(e)&&q(o,e),void 0===o.key&&(o.key=t),r.push(o))})),r}var VL=BL;function WL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UL(e,t){for(var n=0;n=e.offsetHeight}},{key:"fitsBelow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}},{key:"fitsOnRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}},{key:"fitsOnLeft",value:function(e){return this.leftRelative>=e.offsetWidth}}]),e}(),XL=GL;function ZL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JL(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;this.offset[e]=t}},{key:"isSubMenu",value:function(){return null!==this.parentMenu}},{key:"open",value:function(){var e=this;this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";var t=Yr((function(t){return e.openSubMenu(t)}),300),n=this.options.minWidth||QL,r=!1,o=H(this.menuItems,(function(t){return t.key===TL&&(r=!0),fE(t,e.hot)}));if(o.length<1&&!r)o.push(HL()[TL]);else if(0===o.length)return;o=mE(o,$T);var i=!1,a={data:o,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:function(e){return Oe(e)&&e0&&void 0!==arguments[0]&&arguments[0];this.isOpened()&&(e&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))}},{key:"openSubMenu",value:function(t){if(!this.hotMenu)return!1;var n=this.hotMenu.getCell(t,0);if(this.closeAllSubMenus(),!n||!eE(n))return!1;var r=this.hotMenu.getSourceDataAtRow(t),o=new e(this.hot,{parent:this,name:r.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return o.setMenuItems(r.submenu.items),o.open(),o.setPosition(n.getBoundingClientRect()),this.hotSubMenus[r.key]=o,o}},{key:"closeSubMenu",value:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])}},{key:"closeAllSubMenus",value:function(){var e=this;j(this.hotMenu.getData(),(function(t,n){return e.closeSubMenu(n)}))}},{key:"isAllSubMenusClosed",value:function(){return 0===Object.keys(this.hotSubMenus).length}},{key:"destroy",value:function(){var e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hasSelectedItem()){var t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),!this.isCommandPassive(t)){var n=this.hot.getSelectedRange(),r=n?KT(n):[];this.runLocalHooks("executeCommand",t.key,r,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,r,e)}}}},{key:"isCommandPassive",value:function(e){var t=e.isCommand,n=e.name,r=e.disabled,o=e.submenu,i=!0===r||"function"===typeof r&&!0===r.call(this.hot);return!1===t||n===$T||!0===i||o}},{key:"setPosition",value:function(e){var t=new XL(e,this.container.ownerDocument.defaultView);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),t.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(t):this.setPositionOnLeftOfCursor(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{key:"setPositionAboveCursor",value:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top="".concat(t,"px")}},{key:"setPositionBelowCursor",value:function(e){var t=this.offset.below+e.top;this.isSubMenu()&&(t=e.top-1),this.container.style.top="".concat(t,"px")}},{key:"setPositionOnRightOfCursor",value:function(e){var t;t=this.isSubMenu()?1+e.left+e.cellWidth:this.offset.right+1+e.left,this.container.style.left="".concat(t,"px")}},{key:"setPositionOnLeftOfCursor",value:function(e){var t=Or(this.hot.rootDocument),n=this.offset.left+e.left-this.container.offsetWidth+t+4;this.container.style.left="".concat(n,"px")}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);qT(e)||tE(e)||nE(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)}},{key:"selectLastCell",value:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);qT(t)||tE(t)||nE(t)?this.selectPrevCell(e,0):this.hotMenu.selectCell(e,0)}},{key:"selectNextCell",value:function(e,t){var n=e+1,r=n=0?this.hotMenu.getCell(n,t):null;r&&(qT(r)||tE(r)||nE(r)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,r,o,i){var a=this,s=e.getSourceDataAtRow(n),u=this.hot.rootDocument.createElement("div"),l=function(e){return he(e,"submenu")},c=function(e){return new RegExp($T,"i").test(e.name)},f=function(e){return!0===e.disabled||"function"===typeof e.disabled&&!0===e.disabled.call(a.hot)},h=function(e){return e.disableSelection},d=i;"function"===typeof d&&(d=d.call(this.hot)),Kn(t),Jn(u,"htItemWrapper"),t.appendChild(u),c(s)?Jn(t,"htSeparator"):"function"===typeof s.renderer?(Jn(t,"htCustomMenuRenderer"),t.appendChild(s.renderer(e,u,n,r,o,d))):tr(u,d),f(s)?(Jn(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()}))):h(s)?(Jn(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()}))):l(s)?(Jn(t,"htSubmenu"),h(s)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)}))):($n(t,["htSubmenu","htDisabled"]),h(s)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)})))}},{key:"createContainer",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.options.container.ownerDocument,r=t;return r&&(Hr(r)&&(r=r.call(this.hot),r=null===r||Re(r)?"":r.toString()),r=r.replace(/[^A-z0-9]/g,"_"),r="".concat(this.options.className,"Sub_").concat(r),e=n.querySelector(".".concat(this.options.className,".").concat(r))),e||(e=n.createElement("div"),Jn(e,"htMenu ".concat(this.options.className)),r&&Jn(e,r),this.options.container.appendChild(e)),e}},{key:"blockMainTableCallbacks",value:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)}},{key:"releaseMainTableCallbacks",value:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)}},{key:"onBeforeKeyDown",value:function(e){if(Ir(e.target)&&this.container.contains(e.target))Wi(e);else{var t=this.hotMenu.getSelectedLast(),n=!1;switch(this.keyEvent=!0,e.keyCode){case sa.ESCAPE:this.close(),n=!0;break;case sa.ENTER:t&&(this.hotMenu.getSourceDataAtRow(t[0]).submenu?n=!0:(this.executeCommand(e),this.close(!0)));break;case sa.ARROW_DOWN:t?this.selectNextCell(t[0],t[1]):this.selectFirstCell(),n=!0;break;case sa.ARROW_UP:t?this.selectPrevCell(t[0],t[1]):this.selectLastCell(),n=!0;break;case sa.ARROW_RIGHT:if(t){var r=this.openSubMenu(t[0]);r&&r.selectFirstCell()}n=!0;break;case sa.ARROW_LEFT:t&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),n=!0);break;default:break}n&&(e.preventDefault(),Wi(e)),this.keyEvent=!1}}},{key:"onAfterInit",value:function(){var e=this.hotMenu.view.wt.wtTable,t=this.hotMenu.getSettings().data,n=e.hider.style,r=e.holder.style,o=parseInt(n.width,10),i=N(t,(function(e,t){return e+(t.name===$T?1:26)}),0);r.width="".concat(o+3,"px"),r.height="".concat(i+3,"px"),n.height=r.height}},{key:"onAfterSelection",value:function(e,t,n,r,o){!1===this.keyEvent&&(o.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!Vn(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||Vn(e.target,".htMenu")||!Vn(e.target,this.container.ownerDocument)&&!Vn(e.target,this.hot.rootDocument)||this.close(!0))}},{key:"onDocumentContextMenu",value:function(e){this.isOpened()&&Zn(e.target,"htCore")&&Vn(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}]),e}();re(KL,Oy);var qL=KL;function eA(e){return eA="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},eA(e)}function tA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nA(e,t,n){return nA="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=rA(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},nA(e,t,n||e)}function rA(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=hA(e),null===e)break;return e}function oA(e,t){for(var n=0;n1?n-1:0),o=1;o1},hidden:!1}}function yA(e){return{key:"cut",name:function(){return this.getTranslatedPhrase(yb)},callback:function(){e.cut()},disabled:function(){if(0===this.countRows()||0===this.countCols())return!0;var e=this.getSelected();return!e||e.length>1},hidden:!1}}function vA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gA(e,t){for(var n=0;n0&&(t-=1),EA(e),t<=0){t=0;var n=IA.get(e.container);n&&n.parentNode&&(n.parentNode.removeChild(n),IA.delete(e.container)),e.mainElement=null}RA.set(e.container,t)}}function NA(e,t){return BA(e)||YA(e,t)||PA(e,t)||HA()}function HA(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function PA(e,t){if(e){if("string"===typeof e)return jA(e,t);var n=Object.prototype.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)?jA(e,t):void 0}}function jA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n',''].join(""),oI=function(e){XA(n,e);var t=JA(n);function n(e){var r;return VA(this,n),r=t.call(this,e),r.columnsLimit=tI,r.copyableRanges=[],r.focusableElement=void 0,r.pasteMode="overwrite",r.rowsLimit=eI,r.uiContainer=r.hot.rootDocument.body,nI.set(QA(r),{isTriggeredByCopy:!1,isTriggeredByCut:!1,isBeginEditing:!1,isFragmentSelectionEnabled:!1}),r}return UA(n,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().copyPaste}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings(),r=t.copyPaste,o=t.fragmentSelection,i=nI.get(this);i.isFragmentSelectionEnabled=!!o,"object"===FA(r)&&(this.pasteMode=r.pasteMode||this.pasteMode,this.rowsLimit=isNaN(r.rowsLimit)?this.rowsLimit:r.rowsLimit,this.columnsLimit=isNaN(r.columnsLimit)?this.columnsLimit:r.columnsLimit,this.uiContainer=r.uiContainer||this.uiContainer),this.addHook("afterContextMenuDefaultOptions",(function(t){return e.onAfterContextMenuDefaultOptions(t)})),this.addHook("afterOnCellMouseUp",(function(){return e.onAfterOnCellMouseUp()})),this.addHook("afterSelectionEnd",(function(){return e.onAfterSelectionEnd()})),this.addHook("beforeKeyDown",(function(){return e.onBeforeKeyDown()})),this.focusableElement=TA(this.uiContainer),this.focusableElement.addLocalHook("copy",(function(t){return e.onCopy(t)})).addLocalHook("cut",(function(t){return e.onCut(t)})).addLocalHook("paste",(function(t){return e.onPaste(t)})),zA(qA(n.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.getOrCreateFocusableElement(),zA(qA(n.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.focusableElement&&DA(this.focusableElement),zA(qA(n.prototype),"disablePlugin",this).call(this)}},{key:"copy",value:function(){var e=nI.get(this);e.isTriggeredByCopy=!0,this.getOrCreateFocusableElement(),this.focusableElement.focus(),this.hot.rootDocument.execCommand("copy")}},{key:"cut",value:function(){var e=nI.get(this);e.isTriggeredByCut=!0,this.getOrCreateFocusableElement(),this.focusableElement.focus(),this.hot.rootDocument.execCommand("cut")}},{key:"getRangedCopyableData",value:function(e){var t=this,n=[],r=[],o=[];return j(e,(function(e){vf(e.startRow,e.endRow,(function(e){-1===r.indexOf(e)&&r.push(e)})),vf(e.startCol,e.endCol,(function(e){-1===o.indexOf(e)&&o.push(e)}))})),j(r,(function(e){var r=[];j(o,(function(n){r.push(t.hot.getCopyableData(e,n))})),n.push(r)})),MC.a.stringify(n)}},{key:"getRangedData",value:function(e){var t=this,n=[],r=[],o=[];return j(e,(function(e){vf(e.startRow,e.endRow,(function(e){-1===r.indexOf(e)&&r.push(e)})),vf(e.startCol,e.endCol,(function(e){-1===o.indexOf(e)&&o.push(e)}))})),j(r,(function(e){var r=[];j(o,(function(n){r.push(t.hot.getCopyableData(e,n))})),n.push(r)})),n}},{key:"paste",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e||t){var n=new SA;e&&n.clipboardData.setData("text/plain",e),t&&n.clipboardData.setData("text/html",t),this.getOrCreateFocusableElement(),this.onPaste(n)}}},{key:"setCopyableText",value:function(){var e=this.hot.getSelectedRangeLast();if(e){var t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),r=t.row,o=t.col,i=n.row,a=n.col,s=Math.min(i,r+this.rowsLimit-1),u=Math.min(a,o+this.columnsLimit-1);this.copyableRanges.length=0,this.copyableRanges.push({startRow:r,startCol:o,endRow:s,endCol:u}),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges),i===s&&a===u||this.hot.runHooks("afterCopyLimit",i-r+1,a-o+1,this.rowsLimit,this.columnsLimit)}}},{key:"getOrCreateFocusableElement",value:function(){var e=this.hot.getActiveEditor(),t=e?e.TEXTAREA:void 0;t?this.focusableElement.setFocusableElement(t):this.focusableElement.useSecondaryElement()}},{key:"isEditorOpened",value:function(){var e=this.hot.getActiveEditor();return e&&e.isOpened()}},{key:"populateValues",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.getSelectedRangeLast();if(e.length){var n=e.length,r=e[0].length,o=[],i=t.getTopLeftCorner(),a=i.row,s=i.col,u=t.getBottomRightCorner(),l=u.row,c=u.col,f=a,h=s,d=a,p=s;while(o.length'.concat(String.fromCharCode(10003),"").concat(e)}function pI(e){return{key:"borders:bottom",name:function(){var e=this.getTranslatedPhrase(Hb),t=hI(this,"bottom");return t&&(e=dI(e)),e},callback:function(t,n){var r=hI(this,"bottom");e.prepareBorder(n,"bottom",r)}}}function mI(e){return{key:"borders:left",name:function(){var e=this.getTranslatedPhrase(Pb),t=hI(this,"left");return t&&(e=dI(e)),e},callback:function(t,n){var r=hI(this,"left");e.prepareBorder(n,"left",r)}}}function yI(e){return{key:"borders:no_borders",name:function(){return this.getTranslatedPhrase(jb)},callback:function(t,n){e.prepareBorder(n,"noBorders")},disabled:function(){return!hI(this)}}}function vI(e){return{key:"borders:right",name:function(){var e=this.getTranslatedPhrase(Nb),t=hI(this,"right");return t&&(e=dI(e)),e},callback:function(t,n){var r=hI(this,"right");e.prepareBorder(n,"right",r)}}}function gI(e){return{key:"borders:top",name:function(){var e=this.getTranslatedPhrase(Db),t=hI(this,"top");return t&&(e=dI(e)),e},callback:function(t,n){var r=hI(this,"top");e.prepareBorder(n,"top",r)}}}function bI(e){return bI="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},bI(e)}function wI(e,t){return MI(e)||kI(e,t)||SI(e,t)||_I()}function _I(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function SI(e,t){if(e){if("string"===typeof e)return CI(e,t);var n=Object.prototype.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)?CI(e,t):void 0}}function CI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=o||t>=i)){var a=cI(e,t);n&&(a=fI(a,n),j(this.hot.selection.highlight.customSelections,(function(e){if(a.id===e.settings.id)return Object.assign(e.settings,n),a.id=e.settings.id,a.left=e.settings.left,a.right=e.settings.right,a.top=e.settings.top,a.bottom=e.settings.bottom,!1}))),this.hot.setCellMeta(e,t,"borders",a),this.insertBorderIntoSettings(a,r)}}},{key:"prepareBorderFromCustomAddedRange",value:function(e){var t=this,n=e.range,r=Math.min(n.to.row,this.hot.countRows()-1),o=Math.min(n.to.col,this.hot.countCols()-1);vf(n.from.row,r,(function(r){vf(n.from.col,o,(function(o){var i=cI(r,o),a=0;r===n.from.row&&he(e,"top")&&(a+=1,i.top=e.top),r===n.to.row&&he(e,"bottom")&&(a+=1,i.bottom=e.bottom),o===n.from.col&&he(e,"left")&&(a+=1,i.left=e.left),o===n.to.col&&he(e,"right")&&(a+=1,i.right=e.right),a>0&&(t.hot.setCellMeta(r,o,"borders",i),t.insertBorderIntoSettings(i))}))}))}},{key:"removeAllBorders",value:function(e,t){var n=aI(e,t);this.spliceBorder(n),this.clearBordersFromSelectionSettings(n),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}},{key:"setBorder",value:function(e,t,n,r){var o=this.hot.getCellMeta(e,t).borders;if(o&&void 0!==o.border||(o=cI(e,t)),r){o[n]=uI();var i=this.countHide(o);if(4===i)this.removeAllBorders(e,t);else{var a=this.checkCustomSelectionsFromContextMenu(o,n,r);a||this.insertBorderIntoSettings(o),this.hot.setCellMeta(e,t,"borders",o)}}else{o[n]=sI();var s=this.checkCustomSelectionsFromContextMenu(o,n,r);s||this.insertBorderIntoSettings(o),this.hot.setCellMeta(e,t,"borders",o)}}},{key:"prepareBorder",value:function(e,t,n){var r=this;j(e,(function(e){var o=e.start,i=e.end;if(o.row===i.row&&o.col===i.col)"noBorders"===t?r.removeAllBorders(o.row,o.col):r.setBorder(o.row,o.col,t,n);else switch(t){case"noBorders":vf(o.col,i.col,(function(e){vf(o.row,i.row,(function(t){r.removeAllBorders(t,e)}))}));break;case"top":vf(o.col,i.col,(function(e){r.setBorder(o.row,e,t,n)}));break;case"right":vf(o.row,i.row,(function(e){r.setBorder(e,i.col,t,n)}));break;case"bottom":vf(o.col,i.col,(function(e){r.setBorder(i.row,e,t,n)}));break;case"left":vf(o.row,i.row,(function(e){r.setBorder(e,o.col,t,n)}));break;default:break}}))}},{key:"createCustomBorders",value:function(e){var t=this;j(e,(function(e){e.range?t.prepareBorderFromCustomAddedRange(e):t.prepareBorderFromCustomAdded(e.row,e.col,e)}))}},{key:"countHide",value:function(e){var t=Object.values(e);return N(t,(function(e,t){var n=e;return t.hide&&(n+=1),n}),0)}},{key:"clearBordersFromSelectionSettings",value:function(e){var t=P(this.hot.selection.highlight.customSelections,(function(e){return e.settings.id})).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}},{key:"clearNullCellRange",value:function(){var e=this;j(this.hot.selection.highlight.customSelections,(function(t,n){if(null===t.cellRange)return e.hot.selection.highlight.customSelections[n].destroy(),e.hot.selection.highlight.customSelections.splice(n,1),!1}))}},{key:"hideBorders",value:function(){var e=this;j(this.savedBorders,(function(t){e.clearBordersFromSelectionSettings(t.id),e.clearNullCellRange()}))}},{key:"spliceBorder",value:function(e){var t=P(this.savedBorders,(function(e){return e.id})).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}},{key:"checkSavedBorders",value:function(e){var t=this,n=!1,r=this.countHide(e);return 4===r?(this.spliceBorder(e.id),n=!0):j(this.savedBorders,(function(r,o){if(e.id===r.id)return t.savedBorders[o]=e,n=!0,!1})),n}},{key:"checkCustomSelectionsFromContextMenu",value:function(e,t,n){var r=!1;return j(this.hot.selection.highlight.customSelections,(function(o){if(e.id===o.settings.id)return se(o.instanceBorders,(function(e){e.toggleHiddenClass(t,n)})),r=!0,!1})),r}},{key:"checkCustomSelections",value:function(e,t,n){var r=this.countHide(e),o=!1;return 4===r?(this.removeAllBorders(e.row,e.col),o=!0):j(this.hot.selection.highlight.customSelections,(function(r){if(e.id===r.settings.id)return r.visualCellRange=t,r.commit(),n&&se(r.instanceBorders,(function(t){t.changeBorderStyle(n,e)})),o=!0,!1})),o}},{key:"changeBorderSettings",value:function(){var e=this.hot.getSettings().customBorders;Array.isArray(e)?(e.length||(this.savedBorders=e),this.createCustomBorders(e)):void 0!==e&&this.createCustomBorders(this.savedBorders)}},{key:"onAfterContextMenuDefaultOptions",value:function(e){this.hot.getSettings().customBorders&&e.items.push({name:"---------"},{key:"borders",name:function(){return this.getTranslatedPhrase(xb)},disabled:function(){return this.selection.isSelectedByCorner()},submenu:{items:[gI(this),vI(this),pI(this),mI(this),yI(this)]}})}},{key:"onAfterInit",value:function(){this.changeBorderSettings()}},{key:"destroy",value:function(){EI(PI(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("customBorders",jI);var YI=jI;function BI(e){return BI="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},BI(e)}function FI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VI(e,t){for(var n=0;nthis.boundaries.bottom&&(r=t-this.boundaries.bottom),ethis.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,r)}},{key:"listen",value:function(){this.listening=!0}},{key:"unlisten",value:function(){this.listening=!1}},{key:"isListening",value:function(){return this.listening}},{key:"registerEvents",value:function(){var e=this,t=this.hot.rootWindow,n=t;while(n)this.eventManager.addEventListener(n.document,"contextmenu",(function(){return e.unlisten()})),this.eventManager.addEventListener(n.document,"mouseup",(function(){return e.unlisten()})),this.eventManager.addEventListener(n.document,"mousemove",(function(t){return e.onMouseMove(t)})),n=jn(n)}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"setupListening",value:function(e){if(!zi(e)){var t=this.hot.view.wt.wtTable.holder;t!==this.hot.rootWindow&&(this.setBoundaries(t.getBoundingClientRect()),this.setCallback((function(e,n){e<0?t.scrollLeft-=50:e>0&&(t.scrollLeft+=50),n<0?t.scrollTop-=20:n>0&&(t.scrollTop+=20)})),this.listen())}}},{key:"onMouseMove",value:function(e){this.isListening()&&this.check(e.clientX,e.clientY)}},{key:"destroy",value:function(){UI(KI(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("dragToScroll",qI);var ex=qI;function tx(e,t){return ax(e)||ix(e,t)||rx(e,t)||nx()}function nx(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rx(e,t){if(e){if("string"===typeof e)return ox(e,t);var n=Object.prototype.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)?ox(e,t):void 0}}function ox(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1||e[0].from.col!==e[0].to.col||e[0].from.col<=this.getSettings().fixedColumnsLeft-1)&&(t=!0),t}}}function ux(e,t){return dx(e)||hx(e,t)||cx(e,t)||lx()}function lx(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function cx(e,t){if(e){if("string"===typeof e)return fx(e,t);var n=Object.prototype.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)?fx(e,t):void 0}}function fx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsLeft)&&(t=!0),t}}}function mx(e){return mx="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},mx(e)}function yx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vx(e,t){for(var n=0;nn.fixedColumnsLeft-1||(n.fixedColumnsLeft-=1,this.hot.columnIndexMapper.moveIndexes(e,n.fixedColumnsLeft))}},{key:"addContextMenuEntry",value:function(e){e.items.push({name:"---------"},sx(this),px(this))}},{key:"onBeforeColumnMove",value:function(e,t){var n=Tx.get(this);if(n.afterFirstUse){var r=this.hot.getSettings().fixedColumnsLeft;if(t=Nx}},{key:"setPosition",value:function(e,t){yf(e)&&(this._element.style.top=e+Px),yf(t)&&(this._element.style.left=t+Px)}},{key:"getPosition",value:function(){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}}},{key:"setSize",value:function(e,t){yf(e)&&(this._element.style.width=e+Px),yf(t)&&(this._element.style.height=t+Px)}},{key:"getSize",value:function(){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}}},{key:"setOffset",value:function(e,t){yf(e)&&(this._element.style.marginTop=e+Px),yf(t)&&(this._element.style.marginLeft=t+Px)}},{key:"getOffset",value:function(){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}}}]),e}(),Yx=jx;function Bx(e){return Bx="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},Bx(e)}function Fx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vx(e,t){for(var n=0;nn,o=t<0,i=e.some((function(e){return e<0})),a=e.some((function(e){return e>=n}));return!(r||o||i||a)}},{key:"isColumnOrderChanged",value:function(e,t){return e.some((function(e,n){return e-n!==t}))}},{key:"countFinalIndex",value:function(e,t){var n=N(e,(function(e,n){return n0?e.target.col=0:e.target.col=t>0?t-1:t;else if(e.target.TD.offsetWidth/2+a<=s){var d=e.coords>=e.countCols?e.countCols-1:e.coords;e.target.col=d+1,a+=e.target.TD.offsetWidth,e.target.col>n&&n=e.fixedColumns&&t>0&&this.hot.scrollViewportTo(void 0,t-1);e.target.col<=t&&e.target.col>=e.fixedColumns&&t>0&&this.hot.scrollViewportTo(void 0,t-1);var p=s,m=a;s+f+c>=u?p=u-f-c:s+c=u-1?m=u-1:0===m?m=1:void 0!==o.scrollX&&e.coords=d&&t.col<=p){r.column=!0,s.pressed=!0,s.target.eventPageX=e.pageX,s.coords=t.col,s.target.TD=n,s.target.col=t.col,s.columnsToMove=this.prepareColumnsToMoving(d,p),s.hasRowHeaders=!!this.hot.getSettings().rowHeaders,s.countCols=this.hot.countCols(),s.fixedColumns=this.hot.getSettings().fixedColumnsLeft,s.rootElementOffset=or(this.hot.rootElement).left;var m=s.hasRowHeaders?-1:0,y=o.holder.scrollTop+o.getColumnHeaderHeight(0)+1,v=t.col-1?$n(this.hot.rootElement,xD):Jn(this.hot.rootElement,xD),r.row=!0,r.column=!0,r.cell=!0,i.coords=t.col,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=AD.get(this),t=e.target.col,n=e.columnsToMove.length;if(e.coords=void 0,e.pressed=!1,e.backlightWidth=0,$n(this.hot.rootElement,[DD,xD,ND]),this.hot.selection.isSelectedByColumnHeader()&&Jn(this.hot.rootElement,ND),!(n<1||void 0===t)){var r=e.columnsToMove[0],o=this.hot.toPhysicalColumn(r),i=this.dragColumns(e.columnsToMove,t);if(e.columnsToMove.length=0,!0===i){this.persistentStateSave(),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0);var a=this.hot.toVisualColumn(o),s=a+n-1;this.hot.selectColumns(a,s)}}}},{key:"onAfterScrollVertically",value:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnHeaderHeight(0)+1,n=e.holder.scrollTop,r=t+n;this.backlight.setPosition(r),this.backlight.setSize(null,e.hider.offsetHeight-r)}},{key:"buildPluginUI",value:function(){this.backlight.build(),this.guideline.build()}},{key:"onAfterLoadData",value:function(){this.moveBySettingsOrLoad()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),SD(LD(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("ManualColumnMove",HD);var PD=HD;function jD(e){return jD="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},jD(e)}function YD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BD(e,t){for(var n=0;n=2){var r=this.selectedCols.length;r>1?(j(this.selectedCols,(function(e){n(e)})),t()):j(this.selectedCols,(function(e){n(e,!0)}))}this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;Zn(e.target,"manualColumnResizer")&&(this.setupHandlePosition(this.currentTH),this.setupGuidePosition(),this.pressed=!0,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout((function(){return t.afterMouseDownTimeout()}),500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startX=e.pageX,this.newSize=this.startWidth)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentWidth=this.startWidth+(e.pageX-this.startX),j(this.selectedCols,(function(e){t.newSize=t.setManualSize(e,t.currentWidth)})),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,r){e.hot.runHooks("beforeColumnResize",e.newSize,n,!1),r&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",e.newSize,n,!1)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startWidth){var r=this.selectedCols.length;r>1?(j(this.selectedCols,(function(e){n(e)})),t()):j(this.selectedCols,(function(e){n(e,!0)}))}this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var e=this,t=this.hot,n=t.rootWindow,r=t.rootElement;this.eventManager.addEventListener(r,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(r,"mousedown",(function(t){return e.onMouseDown(t)})),this.eventManager.addEventListener(n,"mousemove",(function(t){return e.onMouseMove(t)})),this.eventManager.addEventListener(n,"mouseup",(function(){return e.onMouseUp()}))}},{key:"onModifyColWidth",value:function(e,t){var n=e;if(this.enabled){var r=this.hot.toPhysicalColumn(t),o=this.columnWidthsMap.getValueAtIndex(r);this.hot.getSettings().manualColumnResize&&o&&(n=o)}return n}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=this.columnWidthsMap.getValueAtIndex(t);return null===n&&(n=e),n}},{key:"onBeforeColumnResize",value:function(){this.hot.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked()}},{key:"destroy",value:function(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),VD($D(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("manualColumnResize",qD);var eN=qD;function tN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nN(e,t){for(var n=0;n=iN}},{key:"setPosition",value:function(e,t){void 0!==e&&(this._element.style.top=e+sN),void 0!==t&&(this._element.style.left=t+sN)}},{key:"getPosition",value:function(){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}}},{key:"setSize",value:function(e,t){e&&(this._element.style.width=e+sN),t&&(this._element.style.height=t+sN)}},{key:"getSize",value:function(){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}}},{key:"setOffset",value:function(e,t){e&&(this._element.style.marginTop=e+sN),t&&(this._element.style.marginLeft=t+sN)}},{key:"getOffset",value:function(){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}}}]),e}(),lN=uN;function cN(e){return cN="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},cN(e)}function fN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hN(e,t){for(var n=0;nn,o=t<0,i=e.some((function(e){return e<0})),a=e.some((function(e){return e>=n}));return!(r||o||i||a)}},{key:"isRowOrderChanged",value:function(e,t){return e.some((function(e,n){return e-n!==t}))}},{key:"countFinalIndex",value:function(e,t){var n=N(e,(function(e,n){return nthis.hot.getSettings().fixedRowsBottom}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualRowMove",this.hot.rowIndexMapper.getIndexesSequence())}},{key:"persistentStateLoad",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}},{key:"prepareRowsToMoving",value:function(){var e=this.hot.getSelectedRangeLast(),t=[];if(!e)return t;var n=e.from,r=e.to,o=Math.min(n.row,r.row),i=Math.max(n.row,r.row);return vf(o,i,(function(e){t.push(e)})),t}},{key:"refreshPositions",value:function(){var e=tH.get(this),t=e.target.coords,n=this.hot.view.wt.wtTable.getFirstVisibleRow(),r=this.hot.view.wt.wtTable.getLastVisibleRow(),o=this.hot.getSettings().fixedRowsTop,i=this.hot.countRows();t.row0&&this.hot.scrollViewportTo(n-1),t.row>=r&&r0?n-1:n:s.offsetHeight/2+l<=c?(e.target.row=t.row+1,l+=0===t.row?s.offsetHeight-1:s.offsetHeight):e.target.row=t.row;var m=c,y=l;c+p+d>=f?m=f-p-d:c+d=f-1&&(y=f-1);var v=0;this.hot.view.wt.wtOverlays.topOverlay&&(v=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.TABLE.offsetHeight),t.row>=o&&y-a.holder.scrollTop=p&&t.row<=m){r.row=!0,l.pressed=!0,l.target.eventPageY=e.pageY,l.target.coords=t,l.target.TD=n,l.rowsToMove=this.prepareRowsToMoving();var y=i.holder.scrollLeft+a.getRowHeaderWidth();this.backlight.setPosition(null,y),this.backlight.setSize(i.hider.offsetWidth-y,this.getRowsHeight(p,m)),this.backlight.setOffset(-1*(this.getRowsHeight(p,t.row-1)+e.offsetY),null),Jn(this.hot.rootElement,oH),this.refreshPositions()}else $n(this.hot.rootElement,iH),l.pressed=!1,l.rowsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=tH.get(this);if(t.pressed){if(e.target===this.backlight.element){var n=this.backlight.getSize().height;this.backlight.setSize(null,0),setTimeout((function(){this.backlight.setPosition(null,n)}))}t.target.eventPageY=e.pageY,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,r){var o=this.hot.getSelectedRangeLast(),i=tH.get(this);o&&i.pressed&&(i.rowsToMove.indexOf(t.row)>-1?$n(this.hot.rootElement,rH):Jn(this.hot.rootElement,rH),r.row=!0,r.column=!0,r.cell=!0,i.target.coords=t,i.target.TD=n)}},{key:"onMouseUp",value:function(){var e=tH.get(this),t=e.target.row,n=e.rowsToMove.length;if(e.pressed=!1,e.backlightHeight=0,$n(this.hot.rootElement,[oH,rH,iH]),this.hot.selection.isSelectedByRowHeader()&&Jn(this.hot.rootElement,iH),!(n<1||void 0===t)){var r=e.rowsToMove[0],o=this.hot.toPhysicalRow(r),i=this.dragRows(e.rowsToMove,t);if(e.rowsToMove.length=0,!0===i){this.persistentStateSave(),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0);var a=this.hot.toVisualRow(o),s=a+n-1;this.hot.selectRows(a,s)}}}},{key:"onAfterScrollHorizontally",value:function(){var e=this.hot.view.wt.wtTable,t=this.hot.view.wt.wtViewport.getRowHeaderWidth(),n=e.holder.scrollLeft,r=t+n;this.backlight.setPosition(null,r),this.backlight.setSize(e.hider.offsetWidth-r)}},{key:"buildPluginUI",value:function(){this.backlight.build(),this.guideline.build()}},{key:"onAfterLoadData",value:function(){this.moveBySettingsOrLoad()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),GN(eH(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("ManualRowMove",aH);var sH=aH;function uH(){var e=hH(["The merged cell declared at [",", ",'] has "rowspan" \n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has "rowspan"\\x20\n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.']);return uH=function(){return e},e}function lH(){var e=hH(["The merged cell declared at [",", ",'] has both "rowspan" \n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has both "rowspan"\\x20\n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.']);return lH=function(){return e},e}function cH(){var e=hH(["The merged cell declared at [",", ","] is positioned \n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."],["The merged cell declared at [",", ","] is positioned\\x20\n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."]);return cH=function(){return e},e}function fH(){var e=hH(["The merged cell declared with {row: ",", col: ",", \n rowspan: ",", colspan: ","} contains negative values, which is \n not supported. It will not be added to the collection."],["The merged cell declared with {row: ",", col: ",",\\x20\n rowspan: ",", colspan: ","} contains negative values, which is\\x20\n not supported. It will not be added to the collection."]);return fH=function(){return e},e}function hH(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function dH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pH(e,t){for(var n=0;nt-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)}},{key:"includes",value:function(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}},{key:"includesHorizontally",value:function(e){return this.col<=e&&this.col+this.colspan-1>=e}},{key:"includesVertically",value:function(e){return this.row<=e&&this.row+this.rowspan-1>=e}},{key:"shift",value:function(e,t){var n=e[0]||e[1],r=t+Math.abs(e[0]||e[1])-1,o=e[0]?"colspan":"rowspan",i=e[0]?"col":"row",a=Math.min(t,r),s=Math.max(t,r),u=this[i],l=this[i]+this[o]-1;if(u>=t&&(this[i]+=n),n>0)t<=l&&t>u&&(this[o]+=n);else if(n<0){if(a<=u&&s>=l)return this.removed=!0,!1;if(u>=a&&u<=s){var c=s-u+1,f=Math.abs(n)-c;this[i]-=f+n,this[o]-=c}else if(u<=a&&l>=s)this[o]+=n;else if(u<=a&&l>=a&&lthis.row:"right"===t?e.col+e.colspan-1this.col:null)}},{key:"getLastRow",value:function(){return this.row+this.rowspan-1}},{key:"getLastColumn",value:function(){return this.col+this.colspan-1}},{key:"getRange",value:function(){return new Dt(new Et(this.row,this.col),new Et(this.row,this.col),new Et(this.getLastRow(),this.getLastColumn()))}}],[{key:"NEGATIVE_VALUES_WARNING",value:function(e){return ye(fH(),e.row,e.col,e.rowspan,e.colspan)}},{key:"IS_OUT_OF_BOUNDS_WARNING",value:function(e){return ye(cH(),e.row,e.col)}},{key:"IS_SINGLE_CELL",value:function(e){return ye(lH(),e.row,e.col)}},{key:"ZERO_SPAN_WARNING",value:function(e){return ye(uH(),e.row,e.col)}},{key:"containsNegativeValues",value:function(e){return e.row<0||e.col<0||e.rowspan<0||e.colspan<0}},{key:"isSingleCell",value:function(e){return 1===e.colspan&&1===e.rowspan}},{key:"containsZeroSpan",value:function(e){return 0===e.colspan||0===e.rowspan}},{key:"isOutOfBounds",value:function(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}}]),e}(),vH=yH;function gH(e,t,n,r){t?t.row===n&&t.col===r?(e.setAttribute("rowspan",t.rowspan.toString()),e.setAttribute("colspan",t.colspan.toString())):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="")}function bH(){var e=wH(["The merged cell declared at [",", ","], overlaps \n with the other declared merged cell. The overlapping merged cell was not added to the table, please \n fix your setup."],["The merged cell declared at [",", ","], overlaps\\x20\n with the other declared merged cell. The overlapping merged cell was not added to the table, please\\x20\n fix your setup."]);return bH=function(){return e},e}function wH(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _H(e){return MH(e)||kH(e)||CH(e)||SH()}function SH(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function CH(e,t){if(e){if("string"===typeof e)return OH(e,t);var n=Object.prototype.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)?OH(e,t):void 0}}function kH(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function MH(e){if(Array.isArray(e))return OH(e)}function OH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e&&n.col<=t&&n.col+n.colspan-1>=t)||(r=n,!1)})),r}},{key:"getByRange",value:function(e){var t=this.mergedCells,n=!1;return j(t,(function(t){return!(t.row<=e.from.row&&t.row+t.rowspan-1>=e.to.row&&t.col<=e.from.col&&t.col+t.colspan-1>=e.to.col)||(n=t,n)})),n}},{key:"getWithinRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.mergedCells,r=[],o=e;if(!o.includesRange){var i=new Et(o.from.row,o.from.col),a=new Et(o.to.row,o.to.col);o=new Dt(i,i,a)}return j(n,(function(e){var n=new Et(e.row,e.col),i=new Et(e.row+e.rowspan-1,e.col+e.colspan-1),a=new Dt(n,n,i);t?o.overlaps(a)&&r.push(e):o.includesRange(a)&&r.push(e)})),!!r.length&&r}},{key:"add",value:function(t){var n=this.mergedCells,r=t.row,o=t.col,i=t.rowspan,a=t.colspan,s=new vH(r,o,i,a),u=this.get(r,o),l=this.isOverlapping(s);return u||l?($e(e.IS_OVERLAPPING_WARNING(s)),!1):(this.hot&&s.normalize(this.hot),n.push(s),s)}},{key:"remove",value:function(e,t){var n=this.mergedCells,r=this.get(e,t),o=r?this.mergedCells.indexOf(r):null;return!(!r||!1===o)&&(n.splice(o,1),r)}},{key:"clear",value:function(){var e=this,t=this.mergedCells,n=[],r=[];j(t,(function(t){var r=e.hot.getCell(t.row,t.col);r&&n.push([r,e.get(t.row,t.col),t.row,t.col])})),this.mergedCells.length=0,j(n,(function(t,o){vf(0,t.rowspan-1,(function(n){vf(0,t.colspan-1,(function(o){if(0!==o||0!==n){var i=e.hot.getCell(t.row+n,t.col+o);i&&r.push([i,null,null,null])}}))})),n[o][1]=null})),j(n,(function(e){gH.apply(void 0,_H(e))})),j(r,(function(e){gH.apply(void 0,_H(e))}))}},{key:"isOverlapping",value:function(e){var t=new Dt(new Et(0,0),new Et(e.row,e.col),new Et(e.row+e.rowspan-1,e.col+e.colspan-1)),n=!1;return j(this.mergedCells,(function(e){var r=new Dt(new Et(0,0),new Et(e.row,e.col),new Et(e.row+e.rowspan-1,e.col+e.colspan-1));return!r.overlaps(t)||(n=!0,!1)})),n}},{key:"isFirstRenderableMergedCell",value:function(e,t){var n=this.get(e,t);return n&&this.hot.rowIndexMapper.getFirstNotHiddenIndex(n.row,1)===e&&this.hot.columnIndexMapper.getFirstNotHiddenIndex(n.col,1)===t}},{key:"getFirstRenderableCoords",value:function(e,t){var n=this.get(e,t);if(!n||this.isFirstRenderableMergedCell(e,t))return new Et(e,t);var r=this.hot.rowIndexMapper.getFirstNotHiddenIndex(n.row,1),o=this.hot.columnIndexMapper.getFirstNotHiddenIndex(n.col,1);return new Et(r,o)}},{key:"shiftCollections",value:function(e,t,n){var r=this,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;break;default:}j(this.mergedCells,(function(e){e.shift(o,t)})),gf(this.mergedCells.length-1,0,(function(e){var t=r.mergedCells[e];t&&t.removed&&r.mergedCells.splice(r.mergedCells.indexOf(t),1)}))}}],[{key:"IS_OVERLAPPING_WARNING",value:function(e){return ye(bH(),e.row,e.col)}}]),e}(),AH=LH;function IH(e,t){return PH(e)||HH(e,t)||DH(e,t)||xH()}function xH(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function DH(e,t){if(e){if("string"===typeof e)return NH(e,t);var n=Object.prototype.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)?NH(e,t):void 0}}function NH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1,h=f?l-s+1:c-u+1,d=Math.floor(i/h)*h,p=i-d,m=this.getFarthestCollection(e,t,n,r);if(m)if("down"===n){var y=m.row+m.rowspan-s-p,v=o[2]+y;v>=this.plugin.hot.countRows()?o[2]-=p:o[2]+=p?y:0}else if("right"===n){var g=m.col+m.colspan-u-p,b=o[3]+g;b>=this.plugin.hot.countCols()?o[3]-=p:o[3]+=p?g:0}else if("up"===n){var w=l-p-m.row+1,_=o[0]+w;_<0?o[0]+=p:o[0]-=p?w:0}else if("left"===n){var S=c-p-m.col+1,C=o[1]+S;C<0?o[1]+=p:o[1]-=p?S:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:n,foundMergedCells:r,fillSize:i,dragArea:o,cycleLength:h}),o}},{key:"updateCurrentFillCache",value:function(e){this.currentFillData||(this.currentFillData={}),q(this.currentFillData,e)}},{key:"getAutofillSize",value:function(e,t,n){var r=IH(e,4),o=r[0],i=r[1],a=r[2],s=r[3],u=IH(t,4),l=u[0],c=u[1],f=u[2],h=u[3];switch(n){case"up":return o-l;case"down":return f-a;case"left":return i-c;case"right":return h-s;default:return null}}},{key:"getDragArea",value:function(e,t,n){var r=IH(e,4),o=r[0],i=r[1],a=r[2],s=r[3],u=IH(t,4),l=u[0],c=u[1],f=u[2],h=u[3];switch(n){case"up":return[l,c,o-1,s];case"down":return[a+1,i,f,s];case"left":return[l,c,a,i-1];case"right":return[o,s+1,f,h];default:return null}}},{key:"getFarthestCollection",value:function(e,t,n,r){var o=IH(e,4),i=o[0],a=o[1],s=o[2],u=o[3],l=["up","down"].indexOf(n)>-1,c=l?s:u,f=l?i:a,h=this.getAutofillSize(e,t,n),d=l?s-i+1:u-a+1,p=Math.floor(h/d)*d,m=h-p,y=null,v=null,g=null;switch(n){case"up":y="includesVertically",g=c-m+1;break;case"left":y="includesHorizontally",g=c-m+1;break;case"down":y="includesVertically",g=f+m-1;break;case"right":y="includesHorizontally",g=f+m-1;break;default:}return j(r,(function(e){e[y](g)&&e.isFarther(v,n)&&(v=e)})),v}},{key:"recreateAfterDataPopulation",value:function(e){if(this.currentFillData){var t=this.getRangeFromChanges(e),n=this.currentFillData.foundMergedCells,r=this.currentFillData.dragDirection,o=function(e,n){switch(r){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}},i=0,a=null,s=1;do{for(var u=0;un.max)&&(n.max=o),(null===r.min||ir.max)&&(r.max=i)})),{from:{row:n.min,column:r.min},to:{row:n.max,column:r.max}}}},{key:"dragAreaOverlapsCollections",value:function(e,t,n){var r=this.getDragArea(e,t,n),o=IH(r,4),i=o[0],a=o[1],s=o[2],u=o[3],l=new Et(i,a),c=new Et(s,u),f=new Dt(l,l,c);return!!this.mergedCellsCollection.getWithinRange(f,!0)}}]),e}(),VH=FH;function WH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UH(e,t){for(var n=0;n0?o&&n!==i&&(r+=a-n+1):o&&n!==a&&(r-=n-i+1),e.row?e.row=r:e.col&&(e.col=r))}},{key:"getUpdatedSelectionRange",value:function(e,t){return new Dt(e.highlight,e.from,new Et(e.to.row+t.row,e.to.col+t.col))}},{key:"getSelectedMergedCellClassName",value:function(e,t,n,r){var o=Math.min(n[0],n[2]),i=Math.min(n[1],n[3]),a=Math.max(n[0],n[2]),s=Math.max(n[1],n[3]);if(void 0!==r){var u=this.plugin.mergedCellsCollection.isFirstRenderableMergedCell(e,t);if(u){var l=this.plugin.mergedCellsCollection.get(e,t);if(l){var c=l.getLastRow(),f=l.getLastColumn(),h=o<=l.row&&i<=l.col&&a>=c&&s>=f;return h?"".concat(this.fullySelectedMergedCellClassName,"-").concat(r):this.plugin.selectionCalculations.isMergeCellFullySelected(l,this.plugin.hot.getSelectedRange())?"".concat(this.fullySelectedMergedCellClassName,"-multiple"):void 0}}}}},{key:"isMergeCellFullySelected",value:function(e,t){var n=[];if(!t||!e)return!1;for(var r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];return!!t||this.validateSetting(e)}},{key:"toggleMergeOnSelection",value:function(){var e=this.hot.getSelectedRangeLast();if(e){e.setDirection("NW-SE");var t=e.from,n=e.to;this.toggleMerge(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){e.setDirection("NW-SE");var t=e.from,n=e.to;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"unmergeSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(e){var t=e.from,n=e.to;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}}},{key:"mergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.getTopLeftCorner(),i=e.getBottomRightCorner(),a={row:o.row,col:o.col,rowspan:i.row-o.row+1,colspan:i.col-o.col+1},s=[],u=null;if(!this.canMergeRange(a,n))return!1;this.hot.runHooks("beforeMergeCells",e,n),vf(0,a.rowspan-1,(function(e){vf(0,a.colspan-1,(function(n){var r=null;s[e]||(s[e]=[]),0===e&&0===n?r=t.hot.getDataAtCell(a.row,a.col):t.hot.setCellMeta(a.row+e,a.col+n,"hidden",!0),s[e][n]=r}))})),this.hot.setCellMeta(a.row,a.col,"spanned",!0);var l=this.mergedCellsCollection.add(a);return!l||(r?u=[a.row,a.col,s]:this.hot.populateFromArray(a.row,a.col,s,void 0,void 0,this.pluginName),this.hot.runHooks("afterMergeCells",e,a,n),u)}},{key:"unmergeRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.mergedCellsCollection.getWithinRange(e);r&&(this.hot.runHooks("beforeUnmergeCells",e,n),j(r,(function(e){t.mergedCellsCollection.remove(e.row,e.col),vf(0,e.rowspan-1,(function(n){vf(0,e.colspan-1,(function(r){t.hot.removeCellMeta(e.row+n,e.col+r,"hidden")}))})),t.hot.removeCellMeta(e.row,e.col,"spanned")})),this.hot.runHooks("afterUnmergeCells",e,n),this.hot.render())}},{key:"toggleMerge",value:function(e){var t=this.mergedCellsCollection.get(e.from.row,e.from.col),n=t.row===e.from.row&&t.col===e.from.col&&t.row+t.rowspan-1===e.to.row&&t.col+t.colspan-1===e.to.col;n?this.unmergeRange(e):this.mergeSelection(e)}},{key:"merge",value:function(e,t,n,r){var o=new Et(e,t),i=new Et(n,r);this.mergeRange(new Dt(o,o,i))}},{key:"unmerge",value:function(e,t,n,r){var o=new Et(e,t),i=new Et(n,r);this.unmergeRange(new Dt(o,o,i))}},{key:"onAfterInit",value:function(){this.generateFromSettings(this.hot.getSettings().mergeCells),this.hot.render()}},{key:"onBeforeKeyDown",value:function(e){var t=(e.ctrlKey||e.metaKey)&&!e.altKey;t&&77===e.keyCode&&(this.toggleMerge(this.hot.getSelectedRangeLast()),this.hot.render(),Wi(e))}},{key:"onAfterIsMultipleSelection",value:function(e){if(e)for(var t=this.mergedCellsCollection.mergedCells,n=this.hot.getSelectedRangeLast(),r=0;r0?r.row=a.row+a.rowspan-1-i.row+e.row:e.row<0&&(r.row=i.row-a.row+e.row),e.col>0?r.col=a.col+a.colspan-1-i.col+e.col:e.col<0&&(r.col=i.col-a.col+e.col)}o=new Et(n.highlight.row+r.row,n.highlight.col+r.col);var c=this.mergedCellsCollection.get(o.row,o.col);if(c){var f=this.mergedCellsCollection.getFirstRenderableCoords(c.row,c.col);t.lastDesiredCoords=o,r={row:f.row-i.row,col:f.col-i.col}}0!==r.row&&(e.row=r.row),0!==r.col&&(e.col=r.col)}},{key:"onModifyTransformEnd",value:function(e){var t=this,n=this.hot.getSelectedRangeLast(),r=ne(e),o=this.selectionCalculations.getUpdatedSelectionRange(n,e),i=ne(r),a=this.mergedCellsCollection.getWithinRange(o,!0);do{i=ne(r),this.selectionCalculations.getUpdatedSelectionRange(n,r),j(a,(function(e){t.selectionCalculations.snapDelta(r,n,e)}))}while(r.row!==i.row||r.col!==i.col);e.row=r.row,e.col=r.col}},{key:"onModifyGetCellCoords",value:function(e,t){if(!(e<0||t<0)){var n=this.mergedCellsCollection.get(e,t);if(n){var r=n.row,o=n.col,i=n.colspan,a=n.rowspan;return[r,o,r+a-1,o+i-1]}}}},{key:"addMergeActionsToContextMenu",value:function(e){e.items.push({name:"---------"},ZH(this))}},{key:"onAfterRenderer",value:function(e,t,n){var r=this.mergedCellsCollection.get(t,n),o=ie(r)?ne(r):void 0;if(ie(o)){var i=this.hot,a=i.rowIndexMapper,s=i.columnIndexMapper,u=o.row,l=o.col,c=o.colspan,f=o.rowspan,h=this.translateMergedCellToRenderable(u,f,l,c),d=$H(h,2),p=d[0],m=d[1],y=a.getRenderableFromVisualIndex(t),v=s.getRenderableFromVisualIndex(n),g=p-y+1,b=m-v+1;o.row=a.getFirstNotHiddenIndex(o.row,1),o.col=s.getFirstNotHiddenIndex(o.col,1),o.rowspan=Math.min(o.rowspan,g),o.colspan=Math.min(o.colspan,b)}gH(e,o,t,n)}},{key:"onBeforeSetRangeStart",value:function(e){if(this.mergedCellsCollection.isFirstRenderableMergedCell(e.row,e.col)){var t=this.mergedCellsCollection.get(e.row,e.col),n=[t.row,t.col];e.row=n[0],e.col=n[1]}}},{key:"onBeforeSetRangeEnd",value:function(e){var t=this.hot.getSelectedRangeLast();t.highlight=new Et(t.highlight.row,t.highlight.col),t.to=e;var n=!1;if(!this.hot.selection.isSelectedByColumnHeader()&&!this.hot.selection.isSelectedByRowHeader())do{n=!1;for(var r=0;re.endRow)return e.endRow=s,void this.modifyViewportRowEnd(e,t)}}}},{key:"onAfterViewportColumnCalculatorOverride",value:function(e){var t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}},{key:"modifyViewportColumnStart",value:function(e,t){for(var n=this.hot.columnIndexMapper,r=n.getVisualFromRenderableIndex(e.startColumn),o=0;oe.endColumn)return e.endColumn=s,void this.modifyViewportColumnEnd(e,t)}}}},{key:"translateMergedCellToRenderable",value:function(e,t,n,r){var o,i,a=this.hot,s=a.rowIndexMapper,u=a.columnIndexMapper;o=0===t?s.getFirstNotHiddenIndex(e,1):s.getFirstNotHiddenIndex(e+t-1,-1),i=0===r?u.getFirstNotHiddenIndex(n,1):u.getFirstNotHiddenIndex(n+r-1,-1);var l=e>=0?s.getRenderableFromVisualIndex(o):e,c=n>=0?u.getRenderableFromVisualIndex(i):n;return[l,c]}},{key:"onModifyAutofillRange",value:function(e,t){this.autofillCalculations.correctSelectionAreaSize(t);var n=this.autofillCalculations.getDirection(t,e),r=e;if(this.autofillCalculations.dragAreaOverlapsCollections(t,r,n))return r=t,r;var o=this.mergedCellsCollection.getWithinRange({from:{row:t[0],col:t[1]},to:{row:t[2],col:t[3]}});return o?(r=this.autofillCalculations.snapDragArea(t,r,n,o),r):r}},{key:"onAfterCreateCol",value:function(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}},{key:"onAfterRemoveCol",value:function(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}},{key:"onAfterCreateRow",value:function(e,t,n){"auto"!==n&&this.mergedCellsCollection.shiftCollections("down",e,t)}},{key:"onAfterRemoveRow",value:function(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}},{key:"onAfterChange",value:function(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}},{key:"onBeforeDrawAreaBorders",value:function(e,t){if(t&&"area"===t){var n=this.hot.getSelectedRangeLast(),r=this.mergedCellsCollection.getWithinRange(n);j(r,(function(t){n.getBottomRightCorner().row===t.getLastRow()&&n.getBottomRightCorner().col===t.getLastColumn()&&(e[2]=t.row,e[3]=t.col)}))}}},{key:"onAfterModifyTransformStart",value:function(e,t,n){if(this.enabled){var r=this.mergedCellsCollection.get(e.row,e.col);if(r){var o=t>0,i=t<0,a=n<0,s=n>0,u=r.row+r.rowspan-1===this.hot.countRows()-1,l=0===r.row,c=r.col+r.colspan-1===this.hot.countCols()-1,f=0===r.col;(o&&u||i&&l||s&&c||a&&f)&&(e.row=r.row,e.col=r.col)}}}},{key:"onAfterDrawSelection",value:function(e,t,n,r){if(n)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,n,r)}},{key:"onBeforeRemoveCellClassNames",value:function(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}}]),n}(Wk);Rm("mergeCells",bP);var wP=bP;function _P(e){return _P="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},_P(e)}function SP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CP(e,t){for(var n=0;n0}}]),n}(Wk);Rm("multipleSelectionHandles",DP);var NP=DP;function HP(e){return FP(e)||BP(e)||jP(e)||PP()}function PP(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jP(e,t){if(e){if("string"===typeof e)return YP(e,t);var n=Object.prototype.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)?YP(e,t):void 0}}function YP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&r.push("".concat(UP,"-").concat(e.getIndexOfColumnInSortQueue(t)+1)),r}function GP(e){var t=e.className.split(" "),n=new RegExp("^".concat(UP,"-[0-9]{1,2}$"));return t.filter((function(e){return n.test(e)}))}function XP(e){return XP="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},XP(e)}function ZP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JP(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}},{key:"updateHeaderClasses",value:function(e){for(var t,r=arguments.length,o=new Array(r>1?r-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod(),o=this.hot.countRows(),i=this.hot.countCols(),a=[],s=this.hot;return vf(0,o-1,(function(o){vf(0,i-1,(function(i){var u=t.hot.getDataAtCell(o,i),l=t.hot.getCellMeta(o,i),c=l.search.callback||n,f=l.search.queryMethod||r,h=f(e,u,l);if(h){var d={row:o,col:i,data:u};a.push(d)}c&&c(s,o,i,u,h)}))})),a}},{key:"getCallback",value:function(){return this.callback}},{key:"setCallback",value:function(e){this.callback=e}},{key:"getQueryMethod",value:function(){return this.queryMethod}},{key:"setQueryMethod",value:function(e){this.queryMethod=e}},{key:"getSearchResultClass",value:function(){return this.searchResultClass}},{key:"setSearchResultClass",value:function(e){this.searchResultClass=e}},{key:"updatePluginSettings",value:function(e){ie(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}},{key:"onBeforeRenderer",value:function(e,t,n,r,o,i){var a,s=i.className||[],u=[];"string"===typeof s?u=s.split(" "):(a=u).push.apply(a,Vj(s));this.isEnabled()&&i.isSearchResult?u.includes(this.searchResultClass)||u.push("".concat(this.searchResultClass)):u.includes(this.searchResultClass)&&u.splice(u.indexOf(this.searchResultClass),1),i.className=u.join(" ")}},{key:"destroy",value:function(){Qj(iY(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("search",lY);var cY=lY;function fY(e){return fY="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},fY(e)}function hY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dY(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?this.getSelected():[[a[0][0],a[0][1]]];t.done(new XY.ChangeAction(a,s))}}})),e.addHook("afterCreateRow",(function(e,n,r){if("UndoRedo.undo"!==r&&"UndoRedo.undo"!==r&&"auto"!==r){var o=new XY.CreateRowAction(e,n);t.done(o)}})),e.addHook("beforeRemoveRow",(function(n,r,o,i){if("UndoRedo.undo"!==i&&"UndoRedo.redo"!==i&&"auto"!==i){var a=t.instance.getSourceDataArray(),s=(a.length+n)%a.length,u=e.toPhysicalRow(s),l=te(a.slice(u,u+r));t.done(new XY.RemoveRowAction(s,l,e.getSettings().fixedRowsBottom,e.getSettings().fixedRowsTop))}})),e.addHook("afterCreateCol",(function(e,n,r){"UndoRedo.undo"!==r&&"UndoRedo.redo"!==r&&"auto"!==r&&t.done(new XY.CreateColumnAction(e,n))})),e.addHook("beforeRemoveCol",(function(n,r,o,i){if("UndoRedo.undo"!==i&&"UndoRedo.redo"!==i&&"auto"!==i){var a=t.instance.getSourceDataArray(),s=(t.instance.countCols()+n)%t.instance.countCols(),u=[],l=[],c=[];vf(a.length-1,(function(t){var n=[],o=a[t];vf(s,s+(r-1),(function(t){n.push(o[e.toPhysicalColumn(t)])})),u.push(n)})),vf(r-1,(function(t){c.push(e.toPhysicalColumn(s+t))})),Array.isArray(e.getSettings().colHeaders)&&vf(r-1,(function(t){l.push(e.getSettings().colHeaders[e.toPhysicalColumn(s+t)]||null)}));var f=e.columnIndexMapper.getIndexesSequence(),h=e.rowIndexMapper.getIndexesSequence(),d=new XY.RemoveColumnAction(s,c,u,l,f,h,e.getSettings().fixedColumnsLeft);t.done(d)}})),e.addHook("beforeCellAlignment",(function(e,n,r,o){var i=new XY.CellAlignmentAction(e,n,r,o);t.done(i)})),e.addHook("beforeFilter",(function(e){t.done(new XY.FiltersAction(e))})),e.addHook("beforeRowMove",(function(e,n){!1!==e&&t.done(new XY.RowMoveAction(e,n))})),e.addHook("beforeMergeCells",(function(n,r){r||t.done(new XY.MergeCellsAction(e,n))})),e.addHook("afterUnmergeCells",(function(n,r){r||t.done(new XY.UnmergeCellsAction(e,n))}))}XY.prototype.done=function(e){this.ignoreNewActions||(this.doneActions.push(e),this.undoneActions.length=0)},XY.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.pop(),t=te(e),n=this.instance,r=n.runHooks("beforeUndo",t);if(!1===r)return;this.ignoreNewActions=!0;var o=this;e.undo(this.instance,(function(){o.ignoreNewActions=!1,o.undoneActions.push(e)})),n.runHooks("afterUndo",t)}},XY.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.pop(),t=te(e),n=this.instance,r=n.runHooks("beforeRedo",t);if(!1===r)return;this.ignoreNewActions=!0;var o=this;e.redo(this.instance,(function(){o.ignoreNewActions=!1,o.doneActions.push(e)})),n.runHooks("afterRedo",t)}},XY.prototype.isUndoAvailable=function(){return this.doneActions.length>0},XY.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},XY.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},XY.Action=function(){},XY.Action.prototype.undo=function(){},XY.Action.prototype.redo=function(){},XY.ChangeAction=function(e,t){this.changes=e,this.selected=t,this.actionType="change"},K(XY.ChangeAction,XY.Action),XY.ChangeAction.prototype.undo=function(e,t){for(var n=te(this.changes),r=e.countEmptyRows(!0),o=e.countEmptyCols(!0),i=0,a=n.length;i=n&&this.index-r=0&&r>=0&&e.setCellMeta(t,r,"className",n.stateBefore[t][r]||" htLeft")}))})),e.addHookOnce("afterRender",t),e.render()},XY.CellAlignmentAction.prototype.redo=function(e,t){sE(this.range,this.type,this.alignment,(function(t,n){return e.getCellMeta(t,n)}),(function(t,n,r,o){return e.setCellMeta(t,n,r,o)})),e.addHookOnce("afterRender",t),e.render()},XY.FiltersAction=function(e){this.conditionsStack=e,this.actionType="filter"},K(XY.FiltersAction,XY.Action),XY.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack.slice(0,this.conditionsStack.length-1)),n.filter()},XY.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.conditionCollection.importAllConditions(this.conditionsStack),n.filter()};var ZY=function(e){LY(n,e);var t=IY(n);function n(e,r){var o;RY(this,n),o=t.call(this),o.cellRange=r;var i=o.cellRange.getTopLeftCorner(),a=o.cellRange.getBottomRightCorner();return o.rangeData=e.getData(i.row,i.col,a.row,a.col),o}return EY(n,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.unmergeRange(this.cellRange,!0);var r=this.cellRange.getTopLeftCorner();e.populateFromArray(r.row,r.col,this.rangeData,void 0,void 0,"MergeCells")}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.mergeRange(this.cellRange)}}]),n}(XY.Action);XY.MergeCellsAction=ZY;var JY=function(e){LY(n,e);var t=IY(n);function n(e,r){var o;return RY(this,n),o=t.call(this),o.cellRange=r,o}return EY(n,[{key:"undo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.mergeRange(this.cellRange,!0)}},{key:"redo",value:function(e,t){var n=e.getPlugin("mergeCells");e.addHookOnce("afterRender",t),n.unmergeRange(this.cellRange,!0),e.render()}}]),n}(XY.Action);function $Y(){var e=this,t="undefined"===typeof e.getSettings().undo||e.getSettings().undo;t?e.undoRedo||(e.undoRedo=new XY(e),qY(e),e.addHook("beforeKeyDown",QY),e.addHook("afterChange",KY)):e.undoRedo&&(delete e.undoRedo,eB(e),e.removeHook("beforeKeyDown",QY),e.removeHook("afterChange",KY))}function QY(e){if(!Ui(e)){var t=this,n=t.getActiveEditor();if(!n||!n.isOpened()){var r=e.altKey,o=e.ctrlKey,i=e.keyCode,a=e.metaKey,s=e.shiftKey,u=(o||a)&&!r;if(u){var l=89===i||s&&90===i;l?(t.undoRedo.redo(),Wi(e)):90===i&&(t.undoRedo.undo(),Wi(e))}}}}function KY(e,t){var n=this;if("loadData"===t)return n.undoRedo.clear()}function qY(e){e.undo=function(){return e.undoRedo.undo()},e.redo=function(){return e.undoRedo.redo()},e.isUndoAvailable=function(){return e.undoRedo.isUndoAvailable()},e.isRedoAvailable=function(){return e.undoRedo.isRedoAvailable()},e.clearUndo=function(){return e.undoRedo.clear()}}function eB(e){delete e.undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo}XY.UnmergeCellsAction=JY,XY.RowMoveAction=function(e,t){this.rows=e.slice(),this.finalIndex=t},K(XY.RowMoveAction,XY.Action),XY.RowMoveAction.prototype.undo=function(e,t){var n=this,r=e.getPlugin("manualRowMove"),o=[].concat(this.rows),i=o.filter((function(e){return e>n.finalIndex})),a=o.filter((function(e){return e<=n.finalIndex})),s=i.sort((function(e,t){return t-e})).concat(a.sort((function(e,t){return e-t})));e.addHookOnce("afterRender",t);for(var u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1?"row":"col",o=this.getAllEndpoints();j(o,(function(o){"row"===r&&o.destinationRow>=t&&("insert_row"===e?o.alterRowOffset=n:"remove_row"===e&&(o.alterRowOffset=-1*n)),"col"===r&&o.destinationColumn>=t&&("insert_col"===e?o.alterColumnOffset=n:"remove_col"===e&&(o.alterColumnOffset=-1*n))})),this.resetAllEndpoints(o,!1)}}},{key:"resetSetupAfterStructureAlteration",value:function(e,t,n,r,o){var i=this,a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"!==this.settingsType){var s=e.indexOf("row")>-1?"row":"col",u=e.indexOf("remove")>-1?-1:1,l=this.getAllEndpoints(),c=0===e.indexOf("move_row"),f=t;j(l,(function(e){"row"===s&&e.destinationRow>=f&&(e.alterRowOffset=u*n),"col"===s&&e.destinationColumn>=f&&(e.alterColumnOffset=u*n)})),this.resetAllEndpoints(l,!c),j(l,c?function(e){i.extendEndpointRanges(e,f,r[0],r.length),i.recreatePhysicalRanges(e),i.clearOffsetInformation(e)}:function(e){i.shiftEndpointCoordinates(e,f)}),a&&this.refreshAllEndpoints()}else{var h=function e(){return i.hot.removeHook("beforeRender",e),i.refreshAllEndpoints()};this.hot.addHookOnce("beforeRender",h)}}},{key:"clearOffsetInformation",value:function(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}},{key:"extendEndpointRanges",value:function(e,t,n,r){j(e.ranges,(function(e){e[1]&&(t>=e[0]&&t<=e[1]?n>e[1]?e[1]+=r:n=e[0]&&n<=e[1]&&(e[1]-=r,t<=e[0]&&(e[0]+=1,e[1]+=1)))}))}},{key:"recreatePhysicalRanges",value:function(e){var t=this,n=e.ranges,r=[],o=[];j(n,(function(e){var n=[];if(e[1])for(var r=e[0];r<=e[1];r++)n.push(t.hot.toPhysicalRow(r));else n.push(t.hot.toPhysicalRow(e[0]));o.push(n)})),j(o,(function(e){var t=[];j(e,(function(n,o){0===o?t.push(n):e[o]!==e[o-1]+1&&(t.push(e[o-1]),r.push(t),t=[],t.push(n)),o===e.length-1&&(t.push(n),r.push(t))}))})),e.ranges=r}},{key:"shiftEndpointCoordinates",value:function(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,j(e.ranges,(function(n){j(n,(function(r,o){r>=t&&(n[o]+=e.alterRowOffset||0)}))}))):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}},{key:"resetAllEndpoints",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.some((function(t){var n=t.alterRowOffset||0,r=t.alterColumnOffset||0;return t.destinationRow+n>=e.hot.countRows()||t.destinationColumn+r>=e.hot.countCols()}));r||(this.cellsToSetCache=[],j(t,(function(t){e.resetEndpointValue(t,n)})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}},{key:"refreshAllEndpoints",value:function(){var e=this;this.cellsToSetCache=[],j(this.getAllEndpoints(),(function(t){e.currentEndpoint=t,e.plugin.calculate(t),e.setEndpointValue(t,"init")})),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}},{key:"refreshChangedEndpoints",value:function(e){var t=this,n=[];this.cellsToSetCache=[],j(e,(function(e,r,o){"".concat(e[2]||"")!=="".concat(e[3])&&j(t.getAllEndpoints(),(function(e,i){t.hot.propToCol(o[r][1])===e.sourceColumn&&-1===n.indexOf(i)&&n.push(i)}))})),j(n,(function(e){t.refreshEndpoint(t.getEndpoint(e))})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}},{key:"refreshEndpoint",value:function(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}},{key:"resetEndpointValue",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.alterRowOffset||0,r=e.alterColumnOffset||0,o=[this.hot.toVisualRow(e.destinationRow),this.hot.toVisualColumn(e.destinationColumn)],i=o[0],a=o[1];if(null!==a&&null!==i){var s=this.hot.getCellMeta(i,a);s.readOnly=!1,s.className=""}this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?n:0)),this.hot.toVisualColumn(e.destinationColumn+(t?r:0)),""])}},{key:"setEndpointValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1*e.alterRowOffset||0,o=-1*e.alterColumnOffset||0,i=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())this.throwOutOfBoundsWarning();else{var a=this.hot.toVisualRow(e.destinationRow+r);if(null!==a){var s=this.hot.getCellMeta(a,e.destinationColumn+o);"init"!==t&&s.readOnly===e.readOnly||(s.readOnly=e.readOnly,s.className="columnSummaryResult")}e.roundFloat&&!isNaN(e.result)&&(e.result=e.result.toFixed(e.roundFloat)),n?this.hot.setDataAtCell(i,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([i,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}}},{key:"throwOutOfBoundsWarning",value:function(){$e("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}]),e}(),hF=fF;function dF(e){return dF="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},dF(e)}function pF(){var e=mF(["ColumnSummary plugin: cell at (",", ",") is not in a \n numeric format. Cannot do the calculation."],["ColumnSummary plugin: cell at (",", ",") is not in a\\x20\n numeric format. Cannot do the calculation."]);return pF=function(){return e},e}function mF(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function yF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vF(e,t){for(var n=0;ni&&(i=a),n+=o||0,r-=1}while(r>=e[0]);return Math.round(n*Math.pow(10,i))/Math.pow(10,i)}},{key:"calculateMinMax",value:function(e,t){var n=this,r=null;return se(e.ranges,(function(o){var i=n.getPartialMinMax(o,e.sourceColumn,t);if(null===r&&null!==i&&(r=i),null!==i)switch(t){case"min":r=Math.min(r,i);break;case"max":r=Math.max(r,i);break;default:break}})),null===r?"Not enough data":r}},{key:"getPartialMinMax",value:function(e,t,n){var r,o=null,i=e[1]||e[0];do{if(r=this.getCellValue(i,t)||null,null===o)o=r;else if(null!==r)switch(n){case"min":o=Math.min(o,r);break;case"max":o=Math.max(o,r);break;default:break}i-=1}while(i>=e[0]);return o}},{key:"countEmpty",value:function(e,t){var n,r=0,o=e[1]||e[0];do{n=this.getCellValue(o,t),n||(r+=1),o-=1}while(o>=e[0]);return r}},{key:"countEntries",value:function(e){var t=this,n=0,r=e.ranges;return se(r,(function(r){var o=void 0===r[1]?1:r[1]-r[0]+1,i=t.countEmpty(r,e.sourceColumn);n+=o,n-=i})),n}},{key:"calculateAverage",value:function(e){var t=this.calculateSum(e),n=this.countEntries(e);return t/n}},{key:"getCellValue",value:function(e,t){var n=this.hot.toVisualRow(e),r=this.hot.toVisualColumn(t),o=this.hot.getSourceDataAtCell(e,t),i="";if(null!==n&&null!==r&&(i=this.hot.getCellMeta(n,r).className||""),i.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"===typeof o&&(o=o.replace(/,/,".")),o=parseFloat(o)),isNaN(o)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error(ye(pF(),e,t));return o}},{key:"onAfterInit",value:function(){this.endpoints.endpoints=this.endpoints.parseSettings(),this.endpoints.refreshAllEndpoints(!0)}},{key:"onAfterChange",value:function(e,t){e&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(e)}},{key:"onAfterRowMove",value:function(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)}}]),n}(Wk);Rm("columnSummary",TF);var EF=TF;function LF(e){return LF="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},LF(e)}function AF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IF(e,t,n){return IF="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=xF(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},IF(e,t,n||e)}function xF(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=VF(e),null===e)break;return e}function DF(e,t){for(var n=0;n1?n-1:0),o=1;o0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}},{key:"onTableClick",value:function(e){if(e.stopPropagation(),Zn(e.target,WF)&&!this.menu.isOpened()){var t=0,n=0;if(this.hot.rootDocument!==this.menu.container.ownerDocument){var r=this.hot.rootWindow.frameElement,o=r.getBoundingClientRect(),i=o.top,a=o.left;t=i,n=a}var s=e.target.getBoundingClientRect();this.open({left:s.left+n,top:s.top+e.target.offsetHeight+3+t,width:s.width,height:s.height})}}},{key:"onAfterGetColHeader",value:function(e,t){var n=t.parentNode;if(n){var r=n.parentNode.childNodes,o=Array.prototype.indexOf.call(r,n);if(!(e<0||o!==r.length-1)){var i=t.querySelector(".".concat(WF));if(!this.enabled||!i)if(this.enabled){var a=this.hot.rootDocument.createElement("button");a.className=WF,a.onclick=function(){return!1},t.firstChild.insertBefore(a,t.firstChild.firstChild)}else i&&i.parentNode.removeChild(i)}}}},{key:"onMenuBeforeOpen",value:function(){this.hot.runHooks("beforeDropdownMenuShow",this)}},{key:"onMenuAfterOpen",value:function(){this.hot.runHooks("afterDropdownMenuShow",this)}},{key:"onMenuAfterClose",value:function(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}},{key:"destroy",value:function(){this.close(),this.menu&&this.menu.destroy(),IF(VF(n.prototype),"destroy",this).call(this)}}]),n}(Wk);UF.SEPARATOR={name:$T},Rm("dropdownMenu",UF);var zF=UF;function GF(e,t){return QF(e)||$F(e,t)||ZF(e,t)||XF()}function XF(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ZF(e,t){if(e){if("string"===typeof e)return JF(e,t);var n=Object.prototype.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)?JF(e,t):void 0}}function JF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,i=this.dataProvider.getRowHeaders(),a=i.length>0,s=t.bom?String.fromCharCode(65279):"";return o&&(r=P(r,(function(t){return e._escapeCell(t,!0)})),a&&(s+=t.columnDelimiter),s+=r.join(t.columnDelimiter),s+=t.rowDelimiter),j(n,(function(n,r){r>0&&(s+=t.rowDelimiter),a&&(s+=e._escapeCell(i[r])+t.columnDelimiter),s+=n.map((function(t){return e._escapeCell(t)})).join(t.columnDelimiter)})),s}},{key:"_escapeCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Me(e);return""!==n&&(t||n.indexOf(bV)>=0||n.indexOf(wV)>=0||n.indexOf(_V)>=0||n.indexOf(this.options.columnDelimiter)>=0)&&(n=n.replace(new RegExp('"',"g"),'""'),n='"'.concat(n,'"')),n}}],[{key:"DEFAULT_OPTIONS",get:function(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n"}}}]),n}(sV),CV=SV;function kV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MV="csv",OV=kV({},MV,CV);function RV(e,t,n){return"function"===typeof OV[e]?new OV[e](t,n):null}function TV(e){return TV="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},TV(e)}function EV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LV(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}},{key:"exportAsBlob",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}},{key:"downloadFile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.hot,r=n.rootDocument,o=n.rootWindow,i=this._createTypeFormatter(e,t),a=this._createBlob(i),s=o.URL||o.webkitURL,u=r.createElement("a"),l="".concat(i.options.filename,".").concat(i.options.fileExtension);if(void 0!==u.download){var c=s.createObjectURL(a);u.style.display="none",u.setAttribute("href",c),u.setAttribute("download",l),r.body.appendChild(u),u.dispatchEvent(new MouseEvent("click")),r.body.removeChild(u),setTimeout((function(){s.revokeObjectURL(c)}),100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(a,l)}},{key:"_createTypeFormatter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!OV[e])throw new Error('Export format type "'.concat(e,'" is not supported.'));return RV(e,new nV(this.hot),t)}},{key:"_createBlob",value:function(e){var t=null;return"undefined"!==typeof Blob&&(t=new Blob([e.export()],{type:"".concat(e.options.mimeType,";charset=").concat(e.options.encoding)})),t}}]),n}(Wk);Rm("exportFile",YV);var BV,FV=YV;n("2ca0");function VV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WV="stateSaver",UV="state_",zV="_states",GV=function(e,t){return e[zV][UV+t]},XV=function(e,t,n){e[zV][UV+t]=n},ZV=(BV={},VV(BV,zV,{}),VV(BV,"getCachedState",(function(e){return GV(this,e)})),VV(BV,"setCachedState",(function(e,t){XV(this,e,t)})),VV(BV,"saveState",(function(e){XV(this,e,this.getState())})),VV(BV,"restoreState",(function(e){this.setState(GV(this,e))})),VV(BV,"hasSavedState",(function(e){return void 0!==GV(this,e)})),VV(BV,"clearState",(function(e){XV(this,e)})),VV(BV,"clearStates",(function(){this[zV]={}})),BV);ae(ZV,"MIXIN_NAME",WV,{writable:!1,enumerable:!1});var JV=ZV;function $V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QV(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);no}function EW(e,t){return DW(e)||xW(e,t)||AW(e,t)||LW()}function LW(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function AW(e,t){if(e){if("string"===typeof e)return IW(e,t);var n=Object.prototype.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)?IW(e,t):void 0}}function IW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=o}function PW(e,t){return VW(e)||FW(e,t)||YW(e,t)||jW()}function jW(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function YW(e,t){if(e){if("string"===typeof e)return BW(e,t);var n=Object.prototype.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)?BW(e,t):void 0}}function BW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0}function sU(e,t){return hU(e)||fU(e,t)||lU(e,t)||uU()}function uU(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lU(e,t){if(e){if("string"===typeof e)return cU(e,t);var n=Object.prototype.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)?cU(e,t):void 0}}function cU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=i&&e.value<=a}oW(_U,SU,{name:sw,inputsCount:2,showOperators:!0});var CU="not_between";function kU(e,t){return!nW(_U,t)(e)}function MU(e,t){return LU(e)||EU(e,t)||RU(e,t)||OU()}function OU(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function RU(e,t){if(e){if("string"===typeof e)return TU(e,t);var n=Object.prototype.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)?TU(e,t):void 0}}function TU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0}oW(XU,ZU,{name:ew,inputsCount:1,showOperators:!0});var JU="not_contains";function $U(e,t){return!nW(XU,t)(e)}oW(JU,$U,{name:tw,inputsCount:1,showOperators:!0});var QU="date_tomorrow";function KU(e){var t=me()(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame(me()().subtract(-1,"days").startOf("day"),"d")}oW(QU,KU,{name:hw,inputsCount:0});var qU="date_today";function ez(e){var t=me()(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame(me()().startOf("day"),"d")}oW(qU,ez,{name:fw,inputsCount:0});var tz="date_yesterday";function nz(e){var t=me()(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame(me()().subtract(1,"days").startOf("day"),"d")}oW(tz,nz,{name:dw,inputsCount:0});ln();function rz(e,t){var n=e;return""===n&&(n="(".concat(t,")")),n}var oz=new Set([1]).has(1),iz=oz&&"function"===typeof Array.from;function az(e){var t=e;return oz&&(t=new Set(t)),function(e){var n;return n=oz?t.has(e):!!~t.indexOf(e),n}}function sz(e){return null===e||void 0===e?"":e}function uz(e){var t=e;return t=iz?Array.from(new Set(t)):U(t),t=t.sort((function(e,t){return"number"===typeof e&&"number"===typeof t?e-t:e===t?0:e>t?1:-1})),t}function lz(e,t,n,r){var o,i=[],a=e===t;return a||(o=az(t)),j(e,(function(e){var t=!1;(a||o(e))&&(t=!0);var s={checked:t,value:e,visualValue:rz(e,n)};r&&r(s),i.push(s)})),i}function cz(e,t){return mz(e)||pz(e,t)||hz(e,t)||fz()}function fz(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hz(e,t){if(e){if("string"===typeof e)return dz(e,t);var n=Object.prototype.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)?dz(e,t):void 0}}function dz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn.inputsCount-1)return!1;var o=t.getInputElement(r);o.setValue(e),o[n.inputsCount>r?"show":"hide"](),r||setTimeout((function(){return o.focus()}),10)}))}}},{key:"getState",value:function(){var e=this.getSelectElement().getValue()||rW(iW),t=[];return j(this.getInputElements(),(function(n,r){e.inputsCount>r&&t.push(n.getValue())})),{command:e,args:t}}},{key:"updateState",value:function(e,t){var n=rW(e?e.name:iW);this.setCachedState(t,{command:n,args:e?e.args:[]}),e||j(this.getInputElements(),(function(e){return e.setValue(null)}))}},{key:"getSelectElement",value:function(){return this.elements.filter((function(e){return e instanceof RG}))[0]}},{key:"getInputElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}},{key:"getInputElements",value:function(){return this.elements.filter((function(e){return e instanceof fG}))}},{key:"getMenuItemDescriptor",value:function(){var e=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,n,r,o,i,a){Jn(n.parentNode,"htFiltersMenuCondition"),e.addSeparator&&Jn(n.parentNode,"border");var s=e.hot.rootDocument.createElement("div");return Jn(s,"htFiltersMenuLabel"),s.textContent=a,n.appendChild(s),n.parentNode.hasAttribute("ghost-table")||j(e.elements,(function(e){return n.appendChild(e.element)})),n}}}},{key:"reset",value:function(){var e,t=this.hot.getPlugin("filters").getSelectedColumn(),r=t&&t.visualIndex,o=(e=this.hot).getDataType.apply(e,EG(this.hot.getSelectedLast()||[0,r])),i=Fz(o);j(this.getInputElements(),(function(e){return e.hide()})),this.getSelectElement().setItems(i),jG(GG(n.prototype),"reset",this).call(this),this.getSelectElement().setValue(i[0])}},{key:"onConditionSelect",value:function(e){j(this.getInputElements(),(function(t,n){t[e.inputsCount>n?"show":"hide"](),0===n&&setTimeout((function(){return t.focus()}),10)})),this.runLocalHooks("change",e)}},{key:"onSelectUIClosed",value:function(){this.runLocalHooks("afterClose")}},{key:"onInputKeyDown",value:function(e){ha(e.keyCode,"ENTER")?(this.runLocalHooks("accept"),Wi(e)):ha(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),Wi(e))}}]),n}(eW),ZG=XG;function JG(e){return JG="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},JG(e)}function $G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QG(e,t,n){return QG="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=KG(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},QG(e,t,n||e)}function KG(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=sX(e),null===e)break;return e}function qG(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.options.checked=e,this.update()}},{key:"focus",value:function(){this.isBuilt()&&uX.get(this).input.focus()}}]),n}(Jz),cX=lX;function fX(e){return fX="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},fX(e)}function hX(){var e=dX(["Radio button with index "," doesn't exist."]);return hX=function(){return e},e}function dX(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function pX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mX(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:Oz,t=arguments.length>1?arguments[1]:void 0,n=e;n===xz&&(n=Ez),this.setCachedState(t,n)}},{key:"reset",value:function(){this.setChecked(kX)}},{key:"onRadioInputChange",value:function(e){this.setState(e.target.value)}}]),n}(eW),OX=MX;n("9911");function RX(e){return RX="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},RX(e)}function TX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EX(e,t,n){return EX="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=LX(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},EX(e,t,n||e)}function LX(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=YX(e),null===e)break;return e}function AX(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0})),this.itemsBox.loadData(t)}},{key:"onInputKeyDown",value:function(e){this.runLocalHooks("keydown",e,this);var t=Fr(ha,e.keyCode);t("ARROW_DOWN|TAB")&&!this.itemsBox.isListening()&&(Wi(e),this.itemsBox.listen(),this.itemsBox.selectCell(0,0))}},{key:"onItemsBoxBeforeKeyDown",value:function(e){var t=Fr(ha,e.keyCode);t("ESCAPE")&&this.runLocalHooks("keydown",e,this),t("ARROW_UP|ARROW_DOWN|ARROW_LEFT|ARROW_RIGHT|TAB|SPACE|ENTER")||(Wi(e),this.itemsBox.unlisten(),this.itemsBox.deselectCell(),this.searchInput.focus())}},{key:"onSelectAllClick",value:function(e){var t=[];e.preventDefault(),j(this.itemsBox.getSourceData(),(function(e,n){e.checked=!0,t.push(ly(e,n)[0])})),this.itemsBox.setSourceDataAtCell(t)}},{key:"onClearAllClick",value:function(e){var t=[];e.preventDefault(),j(this.itemsBox.getSourceData(),(function(e,n){e.checked=!1,t.push(ly(e,n)[0])})),this.itemsBox.setSourceDataAtCell(t)}}]),n}(Jz),cZ=lZ;function fZ(e,t){var n=az(t);return P(e,(function(e){return e.checked=n(e.value),e}))}function hZ(e){var t=[];return j(e,(function(e){e.checked&&t.push(e.value)})),t}function dZ(e){return dZ="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},dZ(e)}function pZ(e,t){return bZ(e)||gZ(e,t)||yZ(e,t)||mZ()}function mZ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yZ(e,t){if(e){if("string"===typeof e)return vZ(e,t);var n=Object.prototype.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)?vZ(e,t):void 0}}function vZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:Oz,r=!1;return r=!e.length||Cz(n)(e,t),r}},{key:"addCondition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oz,r=P(t.args,(function(e){return"string"===typeof e?e.toLowerCase():e})),o=t.name||t.command.key;this.runLocalHooks("beforeAdd",e),-1===this.orderStack.indexOf(e)&&this.orderStack.push(e);var i=this.columnTypes[e];if(i){if(i!==n)throw Error(ye(ZZ(),e,i))}else{if(!this.conditions[n])throw new Error(ye(XZ(),n));this.columnTypes[e]=n}this.getConditions(e).push({name:o,args:r,func:nW(o,r)}),this.runLocalHooks("afterAdd",e)}},{key:"getConditions",value:function(e){var t=this.columnTypes[e];return t?(this.conditions[t][e]||(this.conditions[t][e]=[]),this.conditions[t][e]):[]}},{key:"exportAllConditions",value:function(){var e=this,t=[];return j(this.orderStack,(function(n){var r=P(e.getConditions(n),(function(e){var t=e.name,n=e.args;return{name:t,args:n}})),o=e.columnTypes[n];t.push({column:n,operation:o,conditions:r})})),t}},{key:"importAllConditions",value:function(e){var t=this;this.clean(),j(e,(function(e){t.orderStack.push(e.column),j(e.conditions,(function(n){return t.addCondition(e.column,n)}))}))}},{key:"removeConditions",value:function(e){this.runLocalHooks("beforeRemove",e),this.orderStack.indexOf(e)>=0&&this.orderStack.splice(this.orderStack.indexOf(e),1),this.clearConditions(e),this.runLocalHooks("afterRemove",e)}},{key:"clearConditions",value:function(e){this.runLocalHooks("beforeClear",e),this.getConditions(e).length=0,delete this.columnTypes[e],this.runLocalHooks("afterClear",e)}},{key:"hasConditions",value:function(e,t){var n=this.columnTypes[e],r=!1;if(!n)return!1;var o=this.getConditions(e);return r=t?H(o,(function(e){return e.name===t})).length>0:o.length>0,r}},{key:"clean",value:function(){this.runLocalHooks("beforeClean"),this.columnTypes=Object.create(null),this.orderStack.length=0,this.conditions=this.initConditionsCollection(),this.runLocalHooks("afterClean")}},{key:"destroy",value:function(){this.clearLocalHooks(),this.conditions=null,this.orderStack=null,this.columnTypes=null}},{key:"initConditionsCollection",value:function(){var e=Object.create(null);return se(Sz,(function(t,n){e[n]=Object.create(null)})),e}}]),e}();re(qZ,Oy);var eJ=qZ;function tJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nJ(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:function(){return[]};tJ(this,e),this.conditionCollection=t,this.columnDataFactory=n}return rJ(e,[{key:"filter",value:function(){var e=this,t=[];return this.conditionCollection.isEmpty()||j(this.conditionCollection.orderStack,(function(n,r){var o=e.columnDataFactory(n);r&&(o=e._getIntersectData(o,t)),t=e.filterByColumn(n,o)})),t}},{key:"filterByColumn",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];return j(n,(function(n){void 0!==n&&t.conditionCollection.isMatch(n,e)&&r.push(n)})),r}},{key:"_getIntersectData",value:function(e,t){var n=[];return j(t,(function(t){var r=t.meta.visualRow;void 0!==e[r]&&(n[r]=e[r])})),n}}]),e}(),iJ=oJ;function aJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sJ(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:function(){return[]};aJ(this,e),this.conditionCollection=t,this.columnDataFactory=r,this.changes=[],this.grouping=!1,this.latestEditedColumnPosition=-1,this.latestOrderStack=[],this.conditionCollection.addLocalHook("beforeRemove",(function(e){return n._onConditionBeforeModify(e)})),this.conditionCollection.addLocalHook("afterAdd",(function(e){return n.updateStatesAtColumn(e)})),this.conditionCollection.addLocalHook("afterClear",(function(e){return n.updateStatesAtColumn(e)})),this.conditionCollection.addLocalHook("beforeClean",(function(){return n._onConditionBeforeClean()})),this.conditionCollection.addLocalHook("afterClean",(function(){return n._onConditionAfterClean()}))}return uJ(e,[{key:"groupChanges",value:function(){this.grouping=!0}},{key:"flush",value:function(){var e=this;this.grouping=!1,j(this.changes,(function(t){e.updateStatesAtColumn(t)})),this.changes.length=0}},{key:"_onConditionBeforeModify",value:function(e){this.latestEditedColumnPosition=this.conditionCollection.orderStack.indexOf(e)}},{key:"updateStatesAtColumn",value:function(e,t){var n=this;if(this.grouping)-1===this.changes.indexOf(e)&&this.changes.push(e);else{var r=this.conditionCollection.exportAllConditions(),o=this.conditionCollection.orderStack.indexOf(e);-1===o&&(o=this.latestEditedColumnPosition);var i=r.slice(0,o),a=r.slice(o);a.length&&a[0].column===e&&a.shift();var s=Vr((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=new eJ,i=[].concat(e,r);o.importAllConditions(i);var a,s=n.columnDataFactory(t);a=o.isEmpty()?s:new iJ(o,(function(e){return n.columnDataFactory(e)})).filter(),a=P(a,(function(e){return e.meta.visualRow}));var u=az(a);return H(s,(function(e){return u(e.meta.visualRow)}))}))(i),u=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:u},dependentConditionStacks:a,filteredRowsFactory:s,conditionArgsChange:t})}}},{key:"_onConditionBeforeClean",value:function(){this.latestOrderStack=[].concat(this.conditionCollection.orderStack)}},{key:"_onConditionAfterClean",value:function(){var e=this;j(this.latestOrderStack,(function(t){e.updateStatesAtColumn(t)}))}},{key:"destroy",value:function(){var e=this;this.clearLocalHooks(),se(this,(function(t,n){e[n]=null}))}}]),e}();re(lJ,Oy);var cJ=lJ;function fJ(e){return fJ="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},fJ(e)}function hJ(){var e=dJ(["The filter conditions have been applied properly, but couldn’t be displayed visually. \n The overall amount of conditions exceed the capability of the dropdown menu. \n For more details see the documentation."],["The filter conditions have been applied properly, but couldn’t be displayed visually.\\x20\n The overall amount of conditions exceed the capability of the dropdown menu.\\x20\n For more details see the documentation."]);return hJ=function(){return e},e}function dJ(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function pJ(e,t){return bJ(e)||gJ(e,t)||yJ(e,t)||mJ()}function mJ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yJ(e,t){if(e){if("string"===typeof e)return vJ(e,t);var n=Object.prototype.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)?vJ(e,t):void 0}}function vJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:Oz,o=this.hot.toPhysicalColumn(e);this.conditionCollection.addCondition(o,{command:{key:t},args:n},r)}},{key:"removeConditions",value:function(e){var t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}},{key:"clearConditions",value:function(e){if(void 0===e)this.conditionCollection.clean();else{var t=this.hot.toPhysicalColumn(e);this.conditionCollection.clearConditions(t)}}},{key:"filter",value:function(){var e=this,t=this._createDataFilter(),n=!this.conditionCollection.isEmpty(),r=[],o=this.conditionCollection.exportAllConditions(),i=this.hot.runHooks("beforeFilter",o);if(!1!==i)if(n){var a=[];this.hot.batch((function(){e.filtersRowsMap.clear(),r=P(t.filter(),(function(e){return e.meta.visualRow}));var n=az(r);vf(e.hot.countSourceRows()-1,(function(e){n(e)||a.push(e)})),j(a,(function(t){e.filtersRowsMap.setValueAtIndex(t,!0)}))})),r.length||this.hot.deselectCell()}else this.filtersRowsMap.clear();this.hot.runHooks("afterFilter",o),this.hot.view.wt.wtOverlays.adjustElementsSize(!0),this.hot.render(),this.clearColumnSelection()}},{key:"getSelectedColumn",value:function(){return this.lastSelectedColumn}},{key:"clearColumnSelection",value:function(){var e,t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.getTopLeftCorner();void 0!==t&&this.hot.selectCell(t.row,t.col)}},{key:"getDataMapAtColumn",value:function(e){var t=this,n=this.hot.toVisualColumn(e),r=[];return j(this.hot.getSourceDataAtCol(n),(function(e,o){var i=t.hot.getCellMeta(o,n),a=i.row,s=i.col,u=i.visualCol,l=i.visualRow,c=i.type,f=i.instance,h=i.dateFormat;r.push({meta:{row:a,col:s,visualCol:u,visualRow:l,type:c,instance:f,dateFormat:h},value:sz(e)})})),r}},{key:"onAfterChange",value:function(e){var t=this;e&&j(e,(function(e){var n=pJ(e,2),r=n[1],o=t.hot.propToCol(r);t.conditionCollection.hasConditions(o)&&t.updateValueComponentCondition(o)}))}},{key:"updateValueComponentCondition",value:function(e){var t=this.hot.getDataAtCol(e),n=uz(t);this.conditionUpdateObserver.updateStatesAtColumn(e,n)}},{key:"restoreComponents",value:function(e){var t=this.getSelectedColumn(),n=t&&t.physicalIndex;e.forEach((function(e){!1===e.isHidden()&&e.restoreState(n)}))}},{key:"onAfterDropdownMenuShow",value:function(){this.restoreComponents([this.components.get("filter_by_condition"),this.components.get("filter_operators"),this.components.get("filter_by_condition2"),this.components.get("filter_by_value")])}},{key:"onAfterDropdownMenuHide",value:function(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}},{key:"onBeforeDropdownMenuSetItems",value:function(e){var t=P(e,(function(e){return e.key}));this.components.forEach((function(e){e[-1===t.indexOf(e.getMenuItemDescriptor().key)?"hide":"show"]()})),this.initHiddenRowsCache()}},{key:"onAfterDropdownMenuDefaultOptions",value:function(e){e.items.push({name:$T}),this.components.forEach((function(t){e.items.push(t.getMenuItemDescriptor())}))}},{key:"getOperationBasedOnArguments",value:function(e,t,n,r){var o=e;return o===Ez&&t.command.key!==iW&&n.command.key!==iW&&r.command.key!==iW?o=xz:r.command.key!==iW&&(t.command.key!==iW&&n.command.key!==iW||(o=Oz)),o}},{key:"onActionBarSubmit",value:function(e){if("accept"===e){var t=this.getSelectedColumn(),n=t&&t.physicalIndex,r=this.components.get("filter_by_condition").getState(),o=this.components.get("filter_by_condition2").getState(),i=this.components.get("filter_by_value").getState(),a=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),r,o,i);this.conditionUpdateObserver.groupChanges(),this.conditionCollection.clearConditions(n),r.command.key===iW&&o.command.key===iW&&i.command.key===iW?this.conditionCollection.removeConditions(n):(r.command.key!==iW&&(this.conditionCollection.addCondition(n,r,a),o.command.key!==iW&&this.conditionCollection.addCondition(n,o,a)),i.command.key!==iW&&this.conditionCollection.addCondition(n,i,a)),this.conditionUpdateObserver.flush(),this.components.get("filter_operators").saveState(n),this.components.get("filter_by_value").saveState(n),this.saveHiddenRowsCache(n),this.filtersRowsMap.clear(),this.filter()}this.dropdownMenuPlugin.close()}},{key:"onComponentChange",value:function(e,t){if(e===this.components.get("filter_by_condition")){var n=[this.components.get("filter_by_condition2"),this.components.get("filter_operators")];t.showOperators?this.showComponents.apply(this,n):this.hideComponents.apply(this,n)}e.constructor!==ZG||t.inputsCount||this.setListeningDropdownMenu()}},{key:"onSelectUIClosed",value:function(){this.setListeningDropdownMenu()}},{key:"setListeningDropdownMenu",value:function(){this.dropdownMenuPlugin.setListening()}},{key:"onAfterGetColHeader",value:function(e,t){var n=this.hot.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(n)?Jn(t,"htFiltersActive"):$n(t,"htFiltersActive")}},{key:"onTableClick",value:function(e){var t=Bn(e.target,"TH");if(t){var n=this.hot.getCoords(t).col,r=this.hot.toPhysicalColumn(n);this.lastSelectedColumn={visualIndex:n,physicalIndex:r}}}},{key:"_createDataFilter",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.conditionCollection;return new iJ(t,(function(t){return e.getDataMapAtColumn(t)}))}},{key:"updateComponents",value:function(e){if(this.dropdownMenuPlugin.enabled){var t=e.editedConditionStack.conditions,n=e.editedConditionStack.column,r=t.filter((function(e){return e.name===yz})),o=t.filter((function(e){return e.name!==yz})),i=this.conditionCollection.columnTypes[n];2===r.length||3===o.length?$e(ye(hJ())):(o.length>0&&this.showComponentForParticularColumn(this.components.get("filter_operators"),n),this.components.get("filter_by_condition").updateState(o[0],n),this.components.get("filter_by_condition2").updateState(o[1],n),this.components.get("filter_by_value").updateState(e),this.components.get("filter_operators").updateState(i,n))}}},{key:"showComponentForParticularColumn",value:function(e,t){if(this.hiddenRowsCache.has(t)){var n=this.getIndexesOfComponents(e);this.removeIndexesFromHiddenRowsCache(t,n)}else this.hiddenRowsCache.set(t,[])}},{key:"removeIndexesFromHiddenRowsCache",value:function(e,t){var n=this.hiddenRowsCache.get(e);j(t,(function(e){n.includes(e)&&n.splice(n.indexOf(e),1)}))}},{key:"getIndexesOfComponents",value:function(){for(var e=this.dropdownMenuPlugin.menu,t=[],n=arguments.length,r=new Array(n),o=0;o0&&void 0!==arguments[0])||arguments[0],t=this.dropdownMenuPlugin.menu,n=t.hotMenu,r=n.getPlugin("hiddenRows"),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a=2&&"="===e.charAt(0)}function NJ(e){return"string"===typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}function HJ(e){return NJ(e)?e.substr(1):e}function PJ(e){var t=/(\\"|"(?:\\"|[^"])*"|(\+))|(\\'|'(?:\\'|[^'])*'|(\+))/g,n=e.match(t)||[],r=-1;return e.toUpperCase().replace(t,(function(){return r+=1,n[r]}))}function jJ(e,t){return function(n){return{row:"row"===e?t:n.row,column:"column"===e?t:n.column}}}var YJ=n("e9d0");function BJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FJ(e,t){for(var n=0;n0}},{key:"hasPrecedent",value:function(e){return H(this.precedents,(function(t){return t.isEqual(e)})).length>0}}]),n}(UJ),s$=a$;function u$(e){return u$="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},u$(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=n&&e.row<=o},u=function(e){return void 0===r||e.column>=r&&e.column<=i};return this.cellReferences=H(this.cellReferences,(function(e){return!s(e)||!u(e)||(a.push(e),!1)})),a}},{key:"reset",value:function(){this.data.length=0,this.cellReferences.length=0}}]),e}(),M$=k$;function O$(e,t){return A$(e)||L$(e,t)||T$(e,t)||R$()}function R$(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T$(e,t){if(e){if("string"===typeof e)return E$(e,t);var n=Object.prototype.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)?E$(e,t):void 0}}function E$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};return j(this.cells,(function(e){null!==n&&void 0!==n&&t._translateCell(e,"row",n,o.row),null!==r&&void 0!==r&&t._translateCell(e,"column",r,o.column)})),this}},{key:"toString",value:function(){var e=this,t=this.expression.replace(Y$,(function(t,n,r){var o=-1===t.indexOf(":"),i=t,a=t,s=null;o&&(a=N$.test(n)?n:r);var u=e._searchCell(a);return u&&(s=u.refError?Object(YJ["error"])(YJ["ERROR_REF"]):u.toLabel(),i=o?t.replace(a,s):s),i}));return t.startsWith("=")||(t="=".concat(t)),t}},{key:"_translateCell",value:function(e,t,n,r){var o=e.start,i=e.end,a=o[t].index,s=i[t].index,u=n,l=n,c=!1;if(this.customModifier){var f=this.customModifier(e,t,n,r),h=O$(f,3);u=h[0],l=h[1],c=h[2]}else o[t].isAbsolute&&(u=0),i[t].isAbsolute&&(l=0);u&&!c&&(a+u<0&&(c=!0),o[t].index=Math.max(a+u,0)),l&&!c&&(s+l<0&&(c=!0),i[t].index=Math.max(s+l,0)),c&&(e.refError=!0)}},{key:"_extractCells",value:function(){var e=this,t=this.expression.match(P$);t&&j(t,(function(t){var n=t.match(H$);if(n){var r=Object(YJ["extractLabel"])(n[0]),o=O$(r,2),i=o[0],a=o[1];e.cells.push(e._createCell({row:i,column:a},{row:i,column:a},n[0]))}}))}},{key:"_extractCellsRange",value:function(){var e=this,t=this.expression.match(j$);t&&j(t,(function(t){var n=t.split(":"),r=O$(n,2),o=r[0],i=r[1],a=Object(YJ["extractLabel"])(o),s=O$(a,2),u=s[0],l=s[1],c=Object(YJ["extractLabel"])(i),f=O$(c,2),h=f[0],d=f[1],p={row:u,column:l},m={row:h,column:d};e.cells.push(e._createCell(p,m,t))}))}},{key:"_searchCell",value:function(e){var t=H(this.cells,(function(t){return t.origLabel===e})),n=O$(t,1),r=n[0];return r||null}},{key:"_createCell",value:function(e,t,n){return{start:e,end:t,origLabel:n,type:-1===n.indexOf(":")?"cell":"range",refError:!1,toLabel:function(){var e=Object(YJ["toLabel"])(this.start.row,this.start.column);return"range"===this.type&&(e+=":".concat(Object(YJ["toLabel"])(this.end.row,this.end.column))),e}}}}]),e}();re(B$,Oy);var F$,V$=B$,W$="column_sorting";function U$(){var e=this.matrix,t=this.hot;F$=new WeakMap,j(e.data,(function(e){F$.set(e,t.toVisualRow(e.row))}))}function z$(){var e=this.matrix,t=this.dataProvider,n=this.hot;e.cellReferences.length=0,j(e.data,(function(e){e.setState(s$.STATE_OUT_OFF_DATE),e.clearPrecedents();var r=e.row,o=e.column,i=t.getSourceDataAtCell(r,o);if(DJ(i)){var a=F$.get(e),s=new V$(i);s.translate({row:n.toVisualRow(r)-a}),t.updateSourceData(r,o,s.toString())}})),F$=null}var G$="insert_column";function X$(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.matrix,o=this.dataProvider,i=[0,t];j(r.cellReferences,(function(t){t.column>=e&&t.translateTo.apply(t,i)})),j(r.data,(function(r){var a=r.row,s=r.column;if(r.column>=e&&(r.translateTo.apply(r,i),r.setState(s$.STATE_OUT_OFF_DATE)),n){var u=r.row,l=r.column,c=o.getSourceDataAtCell(u,l);if(DJ(c)){var f=jJ("column",e),h=new V$(c);h.useCustomModifier(Z$),h.translate({column:t},f({row:a,column:s})),o.updateSourceData(u,l,h.toString())}}}))}function Z$(e,t,n,r){var o=e.start,i=e.end,a=o[t].index,s=i[t].index,u=n,l=n;return r>a&&(u=0),r>s&&(l=0),[u,l,!1]}var J$="insert_row";function $$(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.matrix,o=this.dataProvider,i=[t,0];j(r.cellReferences,(function(t){t.row>=e&&t.translateTo.apply(t,i)})),j(r.data,(function(r){var a=r.row,s=r.column;if(r.row>=e&&(r.translateTo.apply(r,i),r.setState(s$.STATE_OUT_OFF_DATE)),n){var u=r.row,l=r.column,c=o.getSourceDataAtCell(u,l);if(DJ(c)){var f=jJ("row",e),h=new V$(c);h.useCustomModifier(Q$),h.translate({row:t},f({row:a,column:s})),o.updateSourceData(u,l,h.toString())}}}))}function Q$(e,t,n,r){var o=e.start,i=e.end,a=o[t].index,s=i[t].index,u=n,l=n;return r>a&&(u=0),r>s&&(l=0),[u,l,!1]}var K$="remove_column";function q$(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=-t,o=this.matrix,i=this.dataProvider,a=this.sheet,s=[0,r],u=Math.abs(r)-1,l=o.removeCellRefsAtRange({column:e},{column:e+u}),c=[];j(o.data,(function(t){j(l,(function(e){t.hasPrecedent(e)&&(t.removePrecedent(e),t.setState(s$.STATE_OUT_OFF_DATE),j(a.getCellDependencies(t.row,t.column),(function(e){e.setState(s$.STATE_OUT_OFF_DATE)})))})),t.column>=e&&t.column<=e+u&&c.push(t)})),o.remove(c),j(o.cellReferences,(function(t){t.column>=e&&t.translateTo.apply(t,s)})),j(o.data,(function(t){var o=t.row,a=t.column;if(t.column>=e&&(t.translateTo.apply(t,s),t.setState(s$.STATE_OUT_OFF_DATE)),n){var u=t.row,l=t.column,c=i.getSourceDataAtCell(u,l);if(DJ(c)){var f=jJ("column",e),h=new V$(c);h.useCustomModifier(eQ),h.translate({column:r},f({row:o,column:a})),i.updateSourceData(u,l,h.toString())}}}))}function eQ(e,t,n,r){var o=e.start,i=e.end,a=e.type,s=o[t].index,u=i[t].index,l=Math.abs(n)-1,c=n,f=n,h=!1;return s>=r&&u<=r+l&&(h=!0),h||"cell"!==a||r>=s&&(c=0,f=0),h||"range"!==a||(r>=s&&(c=0),r>u?f=0:u<=r+l&&(f-=Math.min(u-(r+l),0))),s+c<0&&(c-=s+c),[c,f,h]}var tQ="remove_row";function nQ(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=-t,o=this.matrix,i=this.dataProvider,a=this.sheet,s=[r,0],u=Math.abs(r)-1,l=o.removeCellRefsAtRange({row:e},{row:e+u}),c=[];j(o.data,(function(t){j(l,(function(e){t.hasPrecedent(e)&&(t.removePrecedent(e),t.setState(s$.STATE_OUT_OFF_DATE),j(a.getCellDependencies(t.row,t.column),(function(e){e.setState(s$.STATE_OUT_OFF_DATE)})))})),t.row>=e&&t.row<=e+u&&c.push(t)})),o.remove(c),j(o.cellReferences,(function(t){t.row>=e&&t.translateTo.apply(t,s)})),j(o.data,(function(t){var o=t.row,a=t.column;if(t.row>=e&&(t.translateTo.apply(t,s),t.setState(s$.STATE_OUT_OFF_DATE)),n){var u=t.row,l=t.column,c=i.getSourceDataAtCell(u,l);if(DJ(c)){var f=jJ("row",e),h=new V$(c);h.useCustomModifier(rQ),h.translate({row:r},f({row:o,column:a})),i.updateSourceData(u,l,h.toString())}}}))}function rQ(e,t,n,r){var o=e.start,i=e.end,a=e.type,s=o[t].index,u=i[t].index,l=Math.abs(n)-1,c=n,f=n,h=!1;return s>=r&&u<=r+l&&(h=!0),h||"cell"!==a||r>=s&&(c=0,f=0),h||"range"!==a||(r>=s&&(c=0),r>u?f=0:u<=r+l&&(f-=Math.min(u-(r+l),0))),s+c<0&&(c-=s+c),[c,f,h]}function oQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iQ(e,t){for(var n=0;n1?t-1:0),r=1;r1?t-1:0),r=1;r=0&&e=0&&t0&&void 0!==arguments[0]?arguments[0]:[];MQ(this,e),this.items=t}return RQ(e,[{key:"push",value:function(){var e;(e=this.items).push.apply(e,arguments)}},{key:"pop",value:function(){return this.items.pop()}},{key:"peek",value:function(){return this.isEmpty()?void 0:this.items[this.items.length-1]}},{key:"isEmpty",value:function(){return!this.size()}},{key:"size",value:function(){return this.items.length}}]),e}(),EQ=TQ;function LQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AQ(e,t){for(var n=0;nt+(n-1)){var u=i.getSourceDataAtCell(o,s);a.push({row:o,column:s,value:u})}})),this.stack.push({axis:e,index:t,amount:n,changes:a})}},{key:"restore",value:function(){var e=this.sheet,t=e.matrix,n=e.dataProvider,r=this.stack.pop(),o=r.axis,i=r.index,a=r.amount,s=r.changes;s&&j(s,(function(e){e[o]>i+(a-1)&&(e[o]-=a);var r=e.row,s=e.column,u=e.value,l=n.getSourceDataAtCell(r,s);l!==u&&(n.updateSourceData(r,s,u),t.getCellAt(r,s).setState(s$.STATE_OUT_OFF_DATE))}))}},{key:"destroy",value:function(){this.sheet=null,this.stack=null}}]),e}(),DQ=xQ;function NQ(e){return NQ="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},NQ(e)}function HQ(e,t){return FQ(e)||BQ(e,t)||jQ(e,t)||PQ()}function PQ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jQ(e,t){if(e){if("string"===typeof e)return YQ(e,t);var n=Object.prototype.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)?YQ(e,t):void 0}}function YQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=pr(t)&&0!==pr(n)&&t.setAttribute("title",n.textContent):t.setAttribute("title",n.textContent))}},{key:"destroy",value:function(){this.settings=null,aK(pK(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("headerTooltips",yK);var vK=yK,gK={label:"",colspan:1,origColspan:1,collapsible:!1,isCollapsed:!1,isHidden:!1,isBlank:!1},bK=["label","collapsible"];function wK(e){return kK(e)||CK(e)||SK(e)||_K()}function _K(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function SK(e,t){if(e){if("string"===typeof e)return MK(e,t);var n=Object.prototype.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)?MK(e,t):void 0}}function CK(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function kK(e){if(Array.isArray(e))return MK(e)}function MK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:1/0,n=[];if(0===t)return n;j(e,(function(e){var r=[],o=0;n.push(r),j(e,(function(e){var n=RK({},gK);if(ie(e)){var i=e.label,a=e.colspan;n.label=Me(i),"number"===typeof a&&a>1&&(n.colspan=a,n.origColspan=a)}else n.label=Me(e);o+=n.origColspan;var s=!1;if(o>=t&&(n.colspan=n.origColspan-(o-t),n.origColspan=n.colspan,s=!0),r.push(n),n.colspan>1)for(var u=0;u=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DK(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function NK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HK(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];YK(this,BK,EK(e,jK(this,VK))),YK(this,FK,jK(this,BK).length)}},{key:"getData",value:function(){return jK(this,BK)}},{key:"mergeWith",value:function(e){var t=this;j(e,(function(e){var n=e.row,r=e.col,o=xK(e,["row","col"]),i=t.getHeaderSettings(n,r);null!==i&&q(i,o,bK)}))}},{key:"map",value:function(e){j(jK(this,BK),(function(t){j(t,(function(t){var n=e(AK({},t));ie(n)&&q(t,n,bK)}))}))}},{key:"getHeaderSettings",value:function(e,t){var n;if(e>=jK(this,FK)||e<0)return null;var r=jK(this,BK)[e];return t>=r.length?null:null!==(n=r[t])&&void 0!==n?n:null}},{key:"getHeadersSettings",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=[];if(e>=jK(this,FK)||e<0)return r;for(var o=jK(this,BK)[e],i=0,a=t;a1&&(a+=s.colspan-1),i===n)break;if(i>n)throw new Error("The last column settings cannot overlap the other header layers")}return r}},{key:"getLayersCount",value:function(){return jK(this,FK)}},{key:"getColumnsCount",value:function(){return jK(this,FK)>0?jK(this,BK)[0].length:0}},{key:"clear",value:function(){YK(this,BK,[]),YK(this,FK,0)}}]),e}();function UK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zK(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:this,n=new e(zK({},t.data)),r=0;r1&&void 0!==arguments[1]?arguments[1]:uq;if(!lq.has(t))throw new Error('Traversal strategy "'.concat(t,'" does not exist'));lq.get(t).call(this,e,this)}},{key:"walkUp",value:function(e){var t=this,n=function n(r){var o=e.call(t,r);!1!==o&&null!==r.parent&&n(r.parent)};n(this)}}]),e}();function fq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hq(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=i&&o<=i+a-1)return r=t,!1;i+=a}})),r}}},{key:"rebuildTreeIndex",value:function(){var e=this,t=0;Cq(this,Oq).clear(),j(Cq(this,Mq),(function(n){for(var r=pq(n,2),o=r[1].data.colspan,i=t;i3&&void 0!==arguments[3]?arguments[3]:1,i=Cq(this,Rq).getHeadersSettings(n,t,o);n+=1,j(i,(function(o){var i,a=hq(hq({},o),{},{headerLevel:n-1,columnIndex:t});1===n?(e.data=a,i=e):(i=new cq(a),e.addChild(i)),n0)j(a,(function(e){Dq(e,(function(e){s.add(e)})),e.data.clonedTree=e.cloneTree(),e.walkDown((function(e){var t=e.data;t.isHidden=!0}))}));else for(var u=1;u0)j(i,(function(e){e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;var t=e.data;s+=t.colspan,Dq(e,(function(e){a.add(e)}))}));else{var u=n.colspan,l=n.origColspan,c=n.columnIndex;s=l-u;for(var f=1;f=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):Hq(e)&&(t.isCollapsed=Nq(e,"isCollapsed"))})),{rollbackModification:function(){return t.collapseNode(e)},affectedColumns:Array.from(a),colspanCompensation:s}}},{key:"triggerAction",value:function(t,n){if(!e.AVAILABLE_ACTIONS.includes(t))throw new Error('The node modifier action ("'.concat(t,'") does not exist.'));return this["".concat(t,"Node")](n)}}]),e}();function Dq(e,t){e.walkDown((function(e){var n=e.data,r=e.childs;if(!n.isHidden&&(t(n.columnIndex),0===r.length))for(var o=1;o1)for(var f=0;f=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Gq(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function Xq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zq(e,t){for(var n=0;n=this.getLayersCount()?Wq({},gK):null!==(n=null===(r=Qq(this,t0)[e])||void 0===r?void 0:r[t])&&void 0!==n?n:Wq({},gK)}},{key:"findLeftMostColumnIndex",value:function(e,t){var n=this.getHeaderSettings(e,t),r=n.isBlank;if(!1===r)return t;var o=t-1;do{var i=this.getHeaderSettings(e,o),a=i.isBlank;if(!1===a)break;o-=1}while(t>=0);return o}},{key:"getLayersCount",value:function(){return Qq(this,Kq).getLayersCount()}},{key:"getColumnsCount",value:function(){return Qq(this,Kq).getColumnsCount()}},{key:"clear",value:function(){$q(this,t0,[]),Qq(this,Kq).clear(),Qq(this,e0).clear()}}]),e}();function r0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o0(e,t){for(var n=0;n1&&(o=!0),i&&(d.label+='')),tr(h,d.label),h.colSpan=d.colspan,c.appendChild(h))}r.appendChild(c)}if(o){for(var p=t.createElement("tr"),m=0;me.length)&&(t=e.length);for(var n=0,r=new Array(t);n1){var p,m,y=null===(p=u.wt.wtOverlays.topLeftCornerOverlay)||void 0===p?void 0:p.clone.wtTable.THEAD.contains(o),v=null===(m=u.wt.wtOverlays.leftOverlay)||void 0===m?void 0:m.clone.wtTable.THEAD.contains(o),g=y||v?Math.min(f,n-l):f;g>1&&o.setAttribute("colspan",g)}var b=a.createElement("div"),w=a.createElement("span");Jn(b,"relative"),Jn(w,"colHeader"),tr(w,h),b.appendChild(w),Kn(o),o.appendChild(b),t.hot.runHooks("afterGetColHeader",l,o)}}},{key:"updateHeadersHighlight",value:function(){var e=this,t=this.hot,n=t.getSelectedRange();if(void 0!==n){var r=this.hot.getSettings(),o=function(e){return function(t,n){return function(){return t?n(t,e):null}}},i=o(r.currentHeaderClassName),a=o(r.activeHeaderClassName),s=t.selection.isSelectedByColumnHeader()||t.selection.isSelectedByCorner(),u=I0(this,x0).getLayersCount(),l=new Map,c=new Map;j(n,(function(t){for(var n=t.getTopLeftCorner(),r=t.getTopRightCorner(),o=I0(e,x0).findLeftMostColumnIndex(-1,n.col),f=r.col,h=f-o+1,d=0,p=o;p<=f;p++){for(var m=function(t){var n=I0(e,x0).getHeaderSettings(t,p),r=n.colspan,o=n.isHidden,f=t===u-1,m=!f&&d+r>h,y=e.getColumnHeaders(p,t);j(y,(function(e){m||o?(l.set(e,a(e,$n)),c.set(e,i(e,$n))):s?(l.set(e,a(e,Jn)),c.set(e,i(e,Jn))):f?c.set(e,i(e,Jn)):c.set(e,i(e,$n))}))},y=u-1;y>-1;y--)m(y);d+=1}})),j(l,(function(e){var t=l0(e,2),n=t[1];n()})),j(c,(function(e){var t=l0(e,2),n=t[1];n()})),l.clear(),c.clear()}}},{key:"onAfterOnCellMouseDown",value:function(e,t){if(t.row<0){var n=I0(this,x0).getHeaderSettings(t.row,t.col),r=n.origColspan;r>1&&this.hot.selection.selectColumns(t.col,t.col+r-1)}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,r){if(!(t.row>=0||t.col<0)&&this.hot.view.isMouseDown()){var o=this.hot.getSelectedRangeLast(),i=o.from,a=o.to,s=I0(this,x0).getHeaderSettings(t.row,t.col),u=s.origColspan,l=t.col+u-1,c=!1;if(i.col<=a.col?(t.col=i.col&&li.col||t.col>i.col||t.col<=a.col&&l>i.col||t.col>a.col&&l>i.col)&&(c=!0),c){var f=[a.col,i.col];i.col=f[0],a.col=f[1]}if(u>1){var h;r.column=!0,r.cell=!0;var d=[];i.col===a.col&&(l<=i.col&&t.cola.col?l:a.col)),i.cola.col&&d.push(i.col,t.col),(h=this.hot).selectColumns.apply(h,d)}}}},{key:"onAfterGetColumnHeaderRenderers",value:function(e){if(e){e.length=0;for(var t=0;tn?e:n}},{key:"onInit",value:function(){this.updatePlugin()}},{key:"onAfterLoadData",value:function(e,t){t||this.updatePlugin()}},{key:"destroy",value:function(){A0(this,x0,null),_0(E0(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("nestedHeaders",D0);var N0=D0;function H0(e){return H0="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},H0(e)}function P0(e){return F0(e)||B0(e)||Y0(e)||j0()}function j0(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Y0(e,t){if(e){if("string"===typeof e)return V0(e,t);var n=Object.prototype.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)?V0(e,t):void 0}}function B0(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function F0(e){if(Array.isArray(e))return V0(e)}function V0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1}})):Array.isArray(t)&&this.headerStateManager.mergeStateWith(t)}G0(e1(n.prototype),"updatePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),r1(this,i1,null),this.nestedHeadersPlugin=null,this.clearButtons(),G0(e1(n.prototype),"disablePlugin",this).call(this)}},{key:"clearButtons",value:function(){if(this.hot.view){var 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,r=this.hot.view.wt.wtOverlays.topLeftCornerOverlay?this.hot.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.THEAD:null,o=function(e){e&&e.parentNode.removeChild(e)};vf(0,e-1,(function(e){var i=t.childNodes[e],a=n.childNodes[e],s=r?r.childNodes[e]:null;vf(0,i.childNodes.length-1,(function(e){var t=i.childNodes[e].querySelector(".collapsibleIndicator");o(t),a&&a.childNodes[e]&&(t=a.childNodes[e].querySelector(".collapsibleIndicator"),o(t)),r&&s&&s.childNodes[e]&&(t=s.childNodes[e].querySelector(".collapsibleIndicator"),o(t))}))}),!0)}}},{key:"expandSection",value:function(e){this.toggleCollapsibleSection([e],"expand")}},{key:"collapseSection",value:function(e){this.toggleCollapsibleSection([e],"collapse")}},{key:"toggleAllCollapsibleSections",value:function(e){var t=this,n=this.headerStateManager.mapNodes((function(e){var n=e.collapsible,r=e.origColspan,o=e.headerLevel,i=e.columnIndex;if(!0===n&&r>1)return{row:t.headerStateManager.levelToRowCoords(o),col:i}}));this.toggleCollapsibleSection(n,e)}},{key:"collapseAll",value:function(){this.toggleAllCollapsibleSections("collapse")}},{key:"expandAll",value:function(){this.toggleAllCollapsibleSections("expand")}},{key:"toggleCollapsibleSection",value:function(e,t){var n=this;if(!o1.has(t))throw new Error("Unsupported action is passed (".concat(t,")."));if(Array.isArray(e)){var r=H(e,(function(e){var t=e.row;return t<0})),o=r.length>0;j(r,(function(e){var r=e.row,i=e.col,a=n.headerStateManager.getHeaderSettings(r,i),s=a.collapsible,u=a.isCollapsed;if(!s||u&&"collapse"===t||!u&&"expand"===t)return o=!1,!1}));var i=[],a=[];o&&j(r,(function(e){var r=e.row,o=e.col,s=n.headerStateManager.triggerNodeModification(t,r,o),u=s.colspanCompensation,l=s.affectedColumns,c=s.rollbackModification;u>0&&(a.push.apply(a,P0(l)),i.push(c))}));var s=this.getCollapsedColumns(),u=[];"collapse"===t?u=U([].concat(P0(s),a)):"expand"===t&&(u=H(s,(function(e){return!a.includes(e)})));var l=o1.get(t),c=this.hot.runHooks(l.beforeHook,s,u,o);if(!1!==c){this.hot.batch((function(){j(a,(function(e){n1(n,i1).setValueAtIndex(n.hot.toPhysicalColumn(e),l.hideColumn)}))}));var f=this.getCollapsedColumns().length!==s.length;this.hot.runHooks(l.afterHook,s,u,o,f),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0)}else j(i,(function(e){e()}))}}},{key:"getCollapsedColumns",value:function(){return n1(this,i1).getHiddenIndexes()}},{key:"generateIndicator",value:function(e,t){var n=this.hot.rootDocument.createElement("div"),r=this.headerStateManager.getHeaderSettings(e,t);return Jn(n,"collapsibleIndicator"),r.isCollapsed?(Jn(n,"collapsed"),nr(n,"+")):(Jn(n,"expanded"),nr(n,"-")),n}},{key:"onAfterGetColHeader",value:function(e,t){var n=t.parentNode,r=n.parentNode,o=-1*r.childNodes.length+Array.prototype.indexOf.call(r.childNodes,n),i=this.headerStateManager.getHeaderSettings(o,e),a=i.collapsible,s=i.origColspan;if(a&&s>1&&e>=this.hot.getSettings().fixedColumnsLeft){var u=this.generateIndicator(o,e);t.querySelector("div:first-child").appendChild(u)}}},{key:"onBeforeOnCellMouseDown",value:function(e,t){Zn(e.target,"collapsibleIndicator")&&(Zn(e.target,"expanded")?(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):Zn(e.target,"collapsed")&&(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"expand")),Wi(e))}},{key:"onInit",value:function(){this.updatePlugin()}},{key:"onAfterLoadData",value:function(e,t){t||this.updatePlugin()}},{key:"destroy",value:function(){r1(this,i1,null),this.hot.columnIndexMapper.unregisterMap(this.pluginName),G0(e1(n.prototype),"destroy",this).call(this)}}]),n}(Wk);Rm("collapsibleColumns",a1);var s1=a1;function u1(e){return h1(e)||f1(e)||c1(e)||l1()}function l1(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c1(e,t){if(e){if("string"===typeof e)return d1(e,t);var n=Object.prototype.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)?d1(e,t):void 0}}function f1(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function h1(e){if(Array.isArray(e))return d1(e)}function d1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"below",n=this.translateTrimmedRow(e),r=this.getRowParent(n),o=this.getRowIndexWithinParent(n);switch(t){case"below":this.addChildAtIndex(r,o+1,null);break;case"above":this.addChildAtIndex(r,o,null);break;default:break}}},{key:"detachFromParent",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null,o=[];Array.isArray(e)?(vf(e[0],e[2],(function(e){var n=t.translateTrimmedRow(e);o.push(t.getDataObject(n))})),vf(0,o.length-2,(function(e){t.detachFromParent(o[e],!1)})),r=o[o.length-1]):r=e;var i=this.getRowIndex(r),a=this.getRowIndexWithinParent(r),s=this.getRowParent(r),u=this.getRowParent(s),l=this.getRowIndex(u),c=null;this.hot.runHooks("beforeDetachChild",s,r),null!==a&&void 0!==a&&(this.hot.runHooks("beforeRemoveRow",i,1,[i],this.plugin.pluginName),s.__children.splice(a,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",i,1,[i],this.plugin.pluginName),u?(c=l+this.countChildren(u),this.hot.runHooks("beforeCreateRow",c,1,this.plugin.pluginName),u.__children.push(r)):(c=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",c,1,this.plugin.pluginName),this.data.push(r))),this.rewriteCache(),this.hot.runHooks("afterCreateRow",c,1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",s,r),n&&this.hot.render()}},{key:"filterData",value:function(e,t,n){var r=this,o=[];j(n,(function(e){o.push(r.getDataObject(e))})),j(o,(function(e){var t=r.getRowIndexWithinParent(e),n=r.getRowParent(e);null===n?r.data.splice(t,1):n.__children.splice(t,1)})),this.rewriteCache()}},{key:"spliceData",value:function(e,t,n){var r,o=this.getDataObject(e-1),i=null,a=e;if(o&&o.__children&&0===o.__children.length?(i=o,a=0):e4&&void 0!==arguments[4]&&arguments[4],i=t===this.hot.countRows(),a=this.getRowParent(e),s=this.getRowIndexWithinParent(e),u=a.__children.slice(s,s+1),l=e>t,c=i?this.getRowParent(t-1):this.getRowParent(t);null!==c&&void 0!==c||(c=this.getRowParent(t-1)),null!==c&&void 0!==c||(c=this.getDataObject(t-1)),c?c.__children||(c.__children=[]):(c=this.getDataObject(t),c.__children=[]);var f=i||n||r?c.__children.length:this.getRowIndexWithinParent(t),h=a===c;c.__children.splice(f,0,u[0]),a.__children.splice(s+(l&&h?1:0),1),this.syncRowWithRawSource(a),h||this.syncRowWithRawSource(c),o||this.hot.render()}},{key:"translateTrimmedRow",value:function(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}},{key:"untranslateTrimmedRow",value:function(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}}]),e}(),b1=g1;function w1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _1=function e(t,n){w1(this,e),this.hot=n,this.plugin=t},S1=_1;function C1(e){return C1="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},C1(e)}function k1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M1(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]&&arguments[0];o.lastCollapsedRows=o.collapsedRows.slice(0),o.expandMultipleChildren(o.lastCollapsedRows,e)},shiftStash:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;null!==t&&void 0!==t||(t=1/0),j(o.lastCollapsedRows,(function(r,i){r>=e&&r0&&void 0!==arguments[0])||arguments[0];o.collapseMultipleChildren(o.lastCollapsedRows,e),o.lastCollapsedRows=void 0},trimStash:function(e,t){vf(e,e+t-1,(function(e){var t=o.lastCollapsedRows.indexOf(e);t>-1&&o.lastCollapsedRows.splice(t,1)}))}},o}return z1(n,[{key:"collapseChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[],i=null,a=null,s=null;return isNaN(e)?(i=e,a=this.dataManager.getRowIndex(i)):(i=this.dataManager.getDataObject(e),a=e),this.dataManager.hasChildren(i)&&j(i.__children,(function(e){o.push(t.dataManager.getRowIndex(e))})),s=this.collapseRows(o,!0,!1),r&&this.trimRows(s),n&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(a)&&this.collapsedRows.push(a),s}},{key:"collapseMultipleChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[];j(e,(function(e){o.push.apply(o,P1(t.collapseChildren(e,!1,!1)))})),r&&this.trimRows(o),n&&this.renderAndAdjust()}},{key:"collapseRow",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.collapseRows([e],t)}},{key:"collapseRows",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return j(e,(function(e){o.push(e),n&&t.collapseChildRows(e,o)})),r&&this.trimRows(o),o}},{key:"collapseChildRows",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.dataManager.hasChildren(e)){var o=this.dataManager.getDataObject(e);j(o.__children,(function(e){var r=t.dataManager.getRowIndex(e);n.push(r),t.collapseChildRows(r,n)}))}r&&this.trimRows(n)}},{key:"expandRow",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.expandRows([e],t)}},{key:"expandRows",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return j(e,(function(e){o.push(e),n&&t.expandChildRows(e,o)})),r&&this.untrimRows(o),o}},{key:"expandChildRows",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.dataManager.hasChildren(e)){var o=this.dataManager.getDataObject(e);j(o.__children,(function(e){if(!t.isAnyParentCollapsed(e)){var r=t.dataManager.getRowIndex(e);n.push(r),t.expandChildRows(r,n)}}))}r&&this.untrimRows(n)}},{key:"expandChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[],i=null,a=null,s=null;return isNaN(e)?(i=e,a=this.dataManager.getRowIndex(e)):(i=this.dataManager.getDataObject(e),a=e),this.collapsedRows.splice(this.collapsedRows.indexOf(a),1),this.dataManager.hasChildren(i)&&j(i.__children,(function(e){var n=t.dataManager.getRowIndex(e);o.push(n)})),s=this.expandRows(o,!0,!1),r&&this.untrimRows(s),n&&this.renderAndAdjust(),s}},{key:"expandMultipleChildren",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[];j(e,(function(e){o.push.apply(o,P1(t.expandChildren(e,!1,!1)))})),r&&this.untrimRows(o),n&&this.renderAndAdjust()}},{key:"collapseAll",value:function(){var e=this,t=this.dataManager.getData(),n=[];j(t,(function(t){e.dataManager.hasChildren(t)&&n.push(t)})),this.collapseMultipleChildren(n),this.renderAndAdjust()}},{key:"expandAll",value:function(){var e=this,t=this.dataManager.getData(),n=[];j(t,(function(t){e.dataManager.hasChildren(t)&&n.push(t)})),this.expandMultipleChildren(n),this.renderAndAdjust()}},{key:"trimRows",value:function(e){var t=this;this.hot.batch((function(){j(e,(function(e){t.plugin.collapsedRowsMap.setValueAtIndex(e,!0)}))}))}},{key:"untrimRows",value:function(e){var t=this;this.hot.batch((function(){j(e,(function(e){t.plugin.collapsedRowsMap.setValueAtIndex(e,!1)}))}))}},{key:"areChildrenCollapsed",value:function(e){var t=this,n=isNaN(e)?e:this.dataManager.getDataObject(e),r=!0;return null===n&&(n={__children:this.dataManager.data}),this.dataManager.hasChildren(n)&&j(n.__children,(function(e){var n=t.dataManager.getRowIndex(e);if(!t.plugin.collapsedRowsMap.getValueAtIndex(n))return r=!1,!1})),r}},{key:"isAnyParentCollapsed",value:function(e){var t=e;while(null!==t){t=this.dataManager.getRowParent(t);var n=this.dataManager.getRowIndex(t);if(this.collapsedRows.indexOf(n)>-1)return!0}return!1}},{key:"toggleState",value:function(e,t){if(!(t.col>=0)){var n=this.translateTrimmedRow(t.row);Zn(e.target,N1.CSS_CLASSES.button)&&(this.areChildrenCollapsed(n)?this.expandChildren(n):this.collapseChildren(n),Wi(e))}}},{key:"translateTrimmedRow",value:function(e){return this.hot.toPhysicalRow(e)}},{key:"untranslateTrimmedRow",value:function(e){return this.hot.toVisualRow(e)}},{key:"renderAndAdjust",value:function(){this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize()}}]),n}(S1),e2=q1;function t2(e){return t2="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},t2(e)}function n2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r2(e,t){for(var n=0;n=t.hot.getSettings().maxRows}},{key:"detach_from_parent",name:function(){return this.getTranslatedPhrase(Bb)},callback:function(){t.dataManager.detachFromParent(t.hot.getSelectedLast())},disabled:function(){var e=t.hot.getSelectedLast(),n=t.dataManager.translateTrimmedRow(e[0]),r=t.dataManager.getRowParent(n);return!r||!e||e[0]<0||t.hot.selection.isSelectedByColumnHeader()||t.hot.countRows()>=t.hot.getSettings().maxRows}},{name:"---------"}];return vf(0,e.items.length-1,(function(t){if(0===t)return j(n,(function(n,r){e.items.splice(t+r,0,n)})),!1})),this.modifyRowInsertingOptions(e)}},{key:"modifyRowInsertingOptions",value:function(e){var t=h2.get(this);return vf(0,e.items.length-1,(function(n){var r=t[e.items[n].key];null!==r&&void 0!==r&&(e.items[n].callback=r)})),e}}]),n}(S1),p2=d2;function m2(e){return b2(e)||g2(e)||v2(e)||y2()}function y2(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v2(e,t){if(e){if("string"===typeof e)return w2(e,t);var n=Object.prototype.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)?w2(e,t):void 0}}function g2(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function b2(e){if(Array.isArray(e))return w2(e)}function w2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&this.headersUI.updateRowHeaderWidth(e)}},{key:"onBeforeRender",value:function(e,t){var n=G2.get(this);n.skipRender&&(t.skipRender=!0)}},{key:"destroy",value:function(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),P2(z2(n.prototype),"destroy",this).call(this)}},{key:"onBeforeLoadData",value:function(e){this.dataManager.setData(e),this.dataManager.rewriteCache()}}]),n}(Wk);Rm("nestedRows",X2);var Z2=X2;function J2(e,t){return e3(e)||q2(e,t)||Q2(e,t)||$2()}function $2(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Q2(e,t){if(e){if("string"===typeof e)return K2(e,t);var n=Object.prototype.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)?K2(e,t):void 0}}function K2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?this.selectColumns(c):this.deselectCell(),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}}function n3(e){return a3(e)||i3(e)||o3(e)||r3()}function r3(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o3(e,t){if(e){if("string"===typeof e)return s3(e,t);var n=Object.prototype.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)?s3(e,t):void 0}}function i3(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function a3(e){if(Array.isArray(e))return s3(e)}function s3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:0;return this.getTranslatedPhrase(Vb,e)},callback:function(){var n,r;if(0!==t.length){var o=t[0],i=t[t.length-1];o=null!==(n=this.columnIndexMapper.getFirstNotHiddenIndex(o-1,-1))&&void 0!==n?n:0,i=null!==(r=this.columnIndexMapper.getFirstNotHiddenIndex(i+1,1))&&void 0!==r?r:this.countCols()-1,e.showColumns(t),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0);var a=i-o+1===this.countCols();a||this.selectColumns(o,i)}},disabled:!1,hidden:function(){var n=this,r=P(e.getHiddenColumns(),(function(e){return n.toPhysicalColumn(e)}));if(!this.selection.isSelectedByColumnHeader()&&!this.selection.isSelectedByCorner()||r.length<1)return!0;t.length=0;var o=this.getSelectedRangeLast(),i=o.getTopLeftCorner().col,a=o.getBottomRightCorner().col,s=this.columnIndexMapper,u=s.getRenderableFromVisualIndex(i),l=s.getRenderableFromVisualIndex(a),c=s.getNotTrimmedIndexes(),f=[];if(i!==a){var h=a-i+1,d=l-u+1;if(h>d){var p=c.slice(i,a+1);f.push.apply(f,n3(p.filter((function(e){return r.includes(e)}))))}}else if(0===u&&ua&&f.push.apply(f,n3(c.slice(a+1)))}return j(f,(function(e){t.push(n.toVisualColumn(e))})),0===t.length}}}function l3(e){return l3="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},l3(e)}function c3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f3(e,t){for(var n=0;n0;if(r&&a){var s=e.map((function(e){return t.hot.toPhysicalColumn(e)}));j(s,(function(e){i[e]=!1})),o=N(i,(function(e,n,r){return n&&e.push(t.hot.toVisualColumn(r)),e}),[])}var u=this.hot.runHooks("beforeUnhideColumns",n,o,r&&a);!1!==u&&(r&&a&&S3(this,M3).setValues(i),this.hot.view.wt.wtOverlays.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",n,o,r&&a,r&&o.lengthn.length))}},{key:"hideColumn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0)&&e.every((function(e){return Number.isInteger(e)&&e>=0&&e0){var o=r.indexOf("afterHiddenColumn");o>-1&&r.splice(o,1),n.className=r.join(" ")}}}},{key:"onModifyCopyableRange",value:function(e){var t=this;if(S3(this,k3).copyPasteEnabled)return e;var n=[],r=function(e,t,r,o){n.push({startRow:e,endRow:t,startCol:r,endCol:o})};return j(e,(function(e){var n=!0,o=0;vf(e.startCol,e.endCol,(function(i){t.isHidden(i)?(n||r(e.startRow,e.endRow,o,i-1),n=!0):(n&&(o=i),i===e.endCol&&r(e.startRow,e.endRow,o,i),n=!1)}))})),n}},{key:"onAfterGetColHeader",value:function(e,t){if(S3(this,k3).indicators&&!(e<0)){var n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenColumn"),ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?this.selectRows(c):this.deselectCell(),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner())}}}function N3(e){return Y3(e)||j3(e)||P3(e)||H3()}function H3(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P3(e,t){if(e){if("string"===typeof e)return B3(e,t);var n=Object.prototype.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)?B3(e,t):void 0}}function j3(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function Y3(e){if(Array.isArray(e))return B3(e)}function B3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:0;return this.getTranslatedPhrase(Ub,e)},callback:function(){var n,r;if(0!==t.length){var o=t[0],i=t[t.length-1];o=null!==(n=this.rowIndexMapper.getFirstNotHiddenIndex(o-1,-1))&&void 0!==n?n:0,i=null!==(r=this.rowIndexMapper.getFirstNotHiddenIndex(i+1,1))&&void 0!==r?r:this.countRows()-1,e.showRows(t),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0);var a=i-o+1===this.countRows();a||this.selectRows(o,i)}},disabled:!1,hidden:function(){var n=this,r=P(e.getHiddenRows(),(function(e){return n.toPhysicalRow(e)}));if(!this.selection.isSelectedByRowHeader()&&!this.selection.isSelectedByCorner()||r.length<1)return!0;t.length=0;var o=this.getSelectedRangeLast(),i=o.getTopLeftCorner().row,a=o.getBottomRightCorner().row,s=this.rowIndexMapper,u=s.getRenderableFromVisualIndex(i),l=s.getRenderableFromVisualIndex(a),c=s.getNotTrimmedIndexes(),f=[];if(i!==a){var h=a-i+1,d=l-u+1;if(h>d){var p=c.slice(i,a+1);f.push.apply(f,N3(p.filter((function(e){return r.includes(e)}))))}}else if(0===u&&ua&&f.push.apply(f,N3(c.slice(a+1)))}return j(f,(function(e){t.push(n.toVisualRow(e))})),0===t.length}}}function V3(e){return V3="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},V3(e)}function W3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U3(e,t){for(var n=0;n0;if(r&&a){var s=e.map((function(e){return t.hot.toPhysicalRow(e)}));j(s,(function(e){i[e]=!1})),o=N(i,(function(e,n,r){return n&&e.push(t.hot.toVisualRow(r)),e}),[])}var u=this.hot.runHooks("beforeUnhideRows",n,o,r&&a);!1!==u&&(r&&a&&t5(this,o5).setValues(i),this.hot.runHooks("afterUnhideRows",n,o,r&&a,r&&o.lengthn.length))}},{key:"hideRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0)&&e.every((function(e){return Number.isInteger(e)&&e>=0&&e0){var o=r.indexOf("afterHiddenRow");o>-1&&r.splice(o,1),n.className=r.join(" ")}}}},{key:"onModifyCopyableRange",value:function(e){var t=this;if(t5(this,r5).copyPasteEnabled)return e;var n=[],r=function(e,t,r,o){n.push({startRow:e,endRow:t,startCol:r,endCol:o})};return j(e,(function(e){var n=!0,o=0;vf(e.startRow,e.endRow,(function(i){t.isHidden(i)?(n||r(o,i-1,e.startCol,e.endCol),n=!0):(n&&(o=i),i===e.endRow&&r(o,i,e.startCol,e.endCol),n=!1)}))})),n}},{key:"onAfterGetRowHeader",value:function(e,t){if(t5(this,r5).indicators&&!(e<0)){var n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenRow"),en.length))}},{key:"trimRow",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0;n&&i&&(j(e,(function(e){o[e]=!1})),r=N(o,(function(e,t,n){return t&&e.push(n),e}),[]));var a=this.hot.runHooks("beforeUntrimRow",t,r,n&&i);!1!==a&&(n&&i&&this.trimmedRowsMap.setValues(o),this.hot.runHooks("afterUntrimRow",t,r,n&&i,n&&r.length=0&&e1&&void 0!==arguments[1]?arguments[1]:{};return new Lk(e,t,Gg)},S5.DefaultSettings=YC(),S5.EventManager=qi,S5._getListenersCounter=ea,S5._getRegisteredMapsCounter=Kv,S5.packageName="handsontable",S5.buildDate="09/11/2020 11:32:10",S5.version="8.2.0",S5.hooks=ct.getSingleton(),S5.__GhostTable=Hk;var C5=[r,u,y,p,s,c,i,d,o,a,h,m],k5=[l,f];S5.helper={},S5.dom={},j(C5,(function(e){j(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(S5.helper[t]=e[t])}))})),j(k5,(function(e){j(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(S5.dom[t]=e[t])}))})),S5.cellTypes={},j(qp(),(function(e){S5.cellTypes[e]=em(e)})),S5.cellTypes.registerCellType=tm,S5.cellTypes.getCellType=em,S5.editors={},j(hp(),(function(e){S5.editors["".concat(We(e),"Editor")]=mp(e)})),S5.editors.registerEditor=yp,S5.editors.getEditor=mp,S5.renderers={},j(Lf(),(function(e){var t=Af(e);"base"===e&&(S5.renderers.cellDecorator=t),S5.renderers["".concat(We(e),"Renderer")]=t})),S5.renderers.registerRenderer=Rf,S5.renderers.getRenderer=Af,S5.validators={},j(Ep(),(function(e){S5.validators["".concat(We(e),"Validator")]=Lp(e)})),S5.validators.registerValidator=Op,S5.validators.getValidator=Lp,S5.plugins={},j(Object.getOwnPropertyNames(C),(function(e){var t=C[e];"Base"===e?S5.plugins["".concat(e,"Plugin")]=t:S5.plugins[e]=t})),S5.plugins.registerPlugin=Rm,S5.languages={},S5.languages.dictionaryKeys=v,S5.languages.getLanguageDictionary=Hw,S5.languages.getLanguagesDictionaries=Yw,S5.languages.registerLanguageDictionary=Nw,S5.languages.getTranslatedPhrase=function(){return Gw.apply(void 0,arguments)};t["a"]=S5},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,o=n("a640"),i=n("ae40"),a=o("forEach"),s=i("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"18a5":function(e,t,n){"use strict";var r=n("23e7"),o=n("857a"),i=n("af03");r({target:"String",proto:!0,forced:i("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"19cd":function(e,t,n){ /*! * https://github.com/Starcounter-Jack/JSON-Patch * json-patch-duplex.js version: 0.5.7 * (c) 2013 Joachim Wester * MIT license */ var r,o=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},i=Error;(function(e){var t=function(e){if(l(e)){for(var t=new Array(e.length),n=0;n0&&(e.patches=[],e.callback&&e.callback(o)),o}function w(e,n,r,o){for(var i=t(n),a=t(e),s=!1,l=a.length-1;l>=0;l--){var c=a[l],f=e[c];if(n.hasOwnProperty(c)){var h=n[c];"object"==typeof f&&null!=f&&"object"==typeof h&&null!=h?w(f,h,r,o+"/"+u(c)):f!=h&&(!0,r.push({op:"replace",path:o+"/"+u(c),value:v(h)}))}else r.push({op:"remove",path:o+"/"+u(c)}),s=!0}if(s||i.length!=a.length)for(l=0;l=48&&t<=57))return!1;n++}return!0}function S(e,t,n){var o,i,u=!1,c=0,f=t.length;while(c=y){u=s[o.op].call(o,p,i,e);break}if(l(p)){if("-"===i)i=p.length;else{if(n&&!_(i))throw new k("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",c-1,o.path,o);i=parseInt(i,10)}if(m>=y){if(n&&"add"===o.op&&i>p.length)throw new k("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",c-1,o.path,o);u=a[o.op].call(o,p,i,e);break}}else if(i&&-1!=i.indexOf("~")&&(i=i.replace(/~1/g,"/").replace(/~0/g,"~")),m>=y){u=r[o.op].call(o,p,i,e);break}p=p[i]}}return u}function C(e,t){var n=[];return w(e,t,n,""),n}e.unobserve=y,e.observe=g,e.generate=b,l=Array.isArray?Array.isArray:function(e){return e.push&&"number"===typeof e.length},e.apply=S,e.compare=C;var k=function(e){function t(t,n,r,o,i){e.call(this,t),this.message=t,this.name=n,this.index=r,this.operation=o,this.tree=i}return o(t,e),t}(i);function M(e){if(void 0===e)return!0;if("array"==typeof e||"object"==typeof e)for(var t in e)if(M(e[t]))return!0;return!1}function O(t,n,o,i){if("object"!==typeof t||null===t||l(t))throw new k("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,t,o);if(!r[t.op])throw new k("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,t,o);if("string"!==typeof t.path)throw new k("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,t,o);if(("move"===t.op||"copy"===t.op)&&"string"!==typeof t.from)throw new k("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,t,o);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&void 0===t.value)throw new k("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,t,o);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&M(t.value))throw new k("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,t,o);if(o)if("add"==t.op){var a=t.path.split("/").length,s=i.split("/").length;if(a!==s+1&&a!==s)throw new k("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,t,o)}else if("replace"===t.op||"remove"===t.op||"_get"===t.op){if(t.path!==i)throw new k("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,t,o)}else if("move"===t.op||"copy"===t.op){var u={op:"_get",path:t.from,value:void 0},c=e.validate([u],o);if(c&&"OPERATION_PATH_UNRESOLVABLE"===c.name)throw new k("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,t,o)}}function R(e,t){try{if(!l(e))throw new k("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)t=JSON.parse(JSON.stringify(t)),S.call(this,t,e,!0);else for(var n=0;n=3&&e%100<=10?3:e%100>=11?4:5},r={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(t,o,i,a){var s=n(t),u=r[e][n(t)];return 2===s&&(u=u[o?0:1]),u.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],a=e.defineLocale("ar-ly",{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")},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}});return a}))},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1fb5":function(e,t,n){"use strict";t.byteLength=c,t.toByteArray=h,t.fromByteArray=m;for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,r=l(e),a=r[0],s=r[1],u=new i(f(e,a,s)),c=0,h=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,o=[],i=t;iu?u:s+a));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"1fc1":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var o={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t(o[r],+e)}var r=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:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},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}});return r}))},"1fe2":function(e,t,n){"use strict";var r=n("6d61"),o=n("acac");r("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"201b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".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:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},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}});return t}))},"20f6":function(e,t,n){},2266:function(e,t,n){var r=n("825a"),o=n("e95a"),i=n("50c4"),a=n("0366"),s=n("35a1"),u=n("2a62"),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var c,f,h,d,p,m,y,v=n&&n.that,g=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),_=a(t,v,1+g+w),S=function(e){return c&&u(c),new l(!0,e)},C=function(e){return g?(r(e),w?_(e[0],e[1],S):_(e[0],e[1])):w?_(e,S):_(e)};if(b)c=e;else{if(f=s(e),"function"!=typeof f)throw TypeError("Target is not iterable");if(o(f)){for(h=0,d=i(e.length);d>h;h++)if(p=C(e[h]),p&&p instanceof l)return p;return new l(!1)}c=f.call(e)}m=c.next;while(!(y=m.call(c)).done){try{p=C(y.value)}catch(k){throw u(c),k}if("object"==typeof p&&p&&p instanceof l)return p}return new l(!1)}},"22f8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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?"오전":"오후"}});return t}))},"23cb":function(e,t,n){var r=n("a691"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},"23e7":function(e,t,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),a=n("6eeb"),s=n("ce4e"),u=n("e893"),l=n("94ca");e.exports=function(e,t){var n,c,f,h,d,p,m=e.target,y=e.global,v=e.stat;if(c=y?r:v?r[m]||s(m,{}):(r[m]||{}).prototype,c)for(f in t){if(d=t[f],e.noTargetGet?(p=o(c,f),h=p&&p.value):h=c[f],n=l(y?f:m+(v?".":"#")+f,e.forced),!n&&void 0!==h){if(typeof d===typeof h)continue;u(d,h)}(e.sham||h&&h.sham)&&i(d,"sham",!0),a(c,f,d,e)}}},"241c":function(e,t,n){var r=n("ca84"),o=n("7839"),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},2421:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(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"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],o=e.defineLocale("ku",{months:r,monthsShort:r,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}});return o}))},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),o=n("c8af"),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var u={adapter:s(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(i)})),e.exports=u}).call(this,n("4362"))},"24b2":function(e,t,n){"use strict";n("a9e3");var r=n("80d2"),o=n("2b0e");t["a"]=o["a"].extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles:function(){var e={},t=Object(r["f"])(this.height),n=Object(r["f"])(this.minHeight),o=Object(r["f"])(this.minWidth),i=Object(r["f"])(this.maxHeight),a=Object(r["f"])(this.maxWidth),s=Object(r["f"])(this.width);return t&&(e.height=t),n&&(e.minHeight=n),o&&(e.minWidth=o),i&&(e.maxHeight=i),a&&(e.maxWidth=a),s&&(e.width=s),e}}})},2532:function(e,t,n){"use strict";var r=n("23e7"),o=n("5a34"),i=n("1d80"),a=n("ab13");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},2554:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var n=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: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}});return n}))},"25a8":function(e,t,n){},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),o=n("825a"),i=n("d039"),a=n("ad6d"),s="toString",u=RegExp.prototype,l=u[s],c=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=l.name!=s;(c||f)&&r(RegExp.prototype,s,(function(){var e=o(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in u)?a.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),o=n("9bf2"),i=n("b622"),a=n("83ab"),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"26e9":function(e,t,n){"use strict";var r=n("23e7"),o=n("e8b5"),i=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},"26f9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(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,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?i(n)[0]:r?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 a(e,t,n,a){var s=e+" ";return 1===e?s+r(e,t,n[0],a):t?s+(o(e)?i(n)[1]:i(n)[0]):a?s+i(n)[1]:s+(o(e)?i(n)[1]:i(n)[2])}var s=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:n,ss:a,m:r,mm:a,h:r,hh:a,d:r,dd:a,M:r,MM:a,y:r,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return s}))},2877:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){var u,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):o&&(u=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(e,t){return u.call(t),c(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:l}}n.d(t,"a",(function(){return r}))},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("6b75");function o(e){if(Array.isArray(e))return Object(r["a"])(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0");function i(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}var a=n("06c5");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e){return o(e)||i(e)||Object(a["a"])(e)||s()}},2921:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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 rồi 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",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}});return t}))},"293c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(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,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}},n=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(){var e=["[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"];return e[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}});return n}))},"2a62":function(e,t,n){var r=n("825a");e.exports=function(e){var t=e["return"];if(void 0!==t)return r(t.call(e)).value}},"2a7f":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("71d9"),o=n("80d2"),i=Object(o["g"])("v-toolbar__title"),a=Object(o["g"])("v-toolbar__items");r["a"]},"2b0e":function(e,t,n){"use strict";(function(e){ /*! * Vue.js v2.6.12 * (c) 2014-2020 Evan You * Released under the MIT License. */ var n=Object.freeze({});function r(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function i(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return null!==e&&"object"===typeof e}var l=Object.prototype.toString;function c(e){return"[object Object]"===l.call(e)}function f(e){return"[object RegExp]"===l.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function y(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(e,t){return b.call(e,t)}function _(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var S=/-(\w)/g,C=_((function(e){return e.replace(S,(function(e,t){return t?t.toUpperCase():""}))})),k=_((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),M=/\B([A-Z])/g,O=_((function(e){return e.replace(M,"-$1").toLowerCase()}));function R(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function T(e,t){return e.bind(t)}var E=Function.prototype.bind?T:R;function L(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function A(e,t){for(var n in t)e[n]=t[n];return e}function I(e){for(var t={},n=0;n0,ne=q&&q.indexOf("edge/")>0,re=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===K),oe=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/)),ie={}.watch,ae=!1;if($)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(Ca){}var ue=function(){return void 0===Z&&(Z=!$&&!Q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),Z},le=$&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,he="undefined"!==typeof Symbol&&ce(Symbol)&&"undefined"!==typeof Reflect&&ce(Reflect.ownKeys);fe="undefined"!==typeof Set&&ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=x,pe=0,me=function(){this.id=pe++,this.subs=[]};me.prototype.addSub=function(e){this.subs.push(e)},me.prototype.removeSub=function(e){g(this.subs,e)},me.prototype.depend=function(){me.target&&me.target.addDep(this)},me.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(i&&!w(o,"default"))a=!1;else if(""===a||a===O(e)){var u=et(String,o.type);(u<0||s0&&(a=Rt(a,(t||"")+"_"+n),Ot(a[0])&&Ot(l)&&(c[u]=Se(l.text+a[0].text),a.shift()),c.push.apply(c,a)):s(a)?Ot(l)?c[u]=Se(l.text+a):""!==a&&c.push(Se(a)):Ot(a)&&Ot(l)?c[u]=Se(l.text+a.text):(i(e._isVList)&&o(a.tag)&&r(a.key)&&o(t)&&(a.key="__vlist"+t+"_"+n+"__"),c.push(a)));return c}function Tt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Et(e){var t=Lt(e.$options.inject,e);t&&(Ee(!1),Object.keys(t).forEach((function(n){De(e,n,t[n])})),Ee(!0))}function Lt(e,t){if(e){for(var n=Object.create(null),r=he?Reflect.ownKeys(e):Object.keys(e),o=0;o0,a=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!i&&!r.$hasNormal)return r;for(var u in o={},e)e[u]&&"$"!==u[0]&&(o[u]=Dt(t,u,e[u]))}else o={};for(var l in t)l in o||(o[l]=Nt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=o),z(o,"$stable",a),z(o,"$key",s),z(o,"$hasNormal",i),o}function Dt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Mt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Nt(e,t){return function(){return e[t]}}function Ht(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,i=e.length;r1?L(n):n;for(var r=L(arguments,1),o='event handler for "'+e+'"',i=0,a=n.length;idocument.createEvent("Event").timeStamp&&(Zn=function(){return Jn.now()})}function $n(){var e,t;for(Xn=Zn(),Un=!0,Bn.sort((function(e,t){return e.id-t.id})),zn=0;znzn&&Bn[n].id>e.id)n--;Bn.splice(n+1,0,e)}else Bn.push(e);Wn||(Wn=!0,pt($n))}}var tr=0,nr=function(e,t,n,r,o){this.vm=e,o&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++tr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fe,this.newDepIds=new fe,this.expression="","function"===typeof t?this.getter=t:(this.getter=X(t),this.getter||(this.getter=x)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var e;ve(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Ca){if(!this.user)throw Ca;tt(Ca,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&yt(e),ge(),this.cleanupDeps()}return e},nr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},nr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():er(this)},nr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Ca){tt(Ca,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:x,set:x};function or(e,t,n){rr.get=function(){return this[t][n]},rr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,rr)}function ir(e){e._watchers=[];var t=e.$options;t.props&&ar(e,t.props),t.methods&&pr(e,t.methods),t.data?sr(e):xe(e._data={},!0),t.computed&&cr(e,t.computed),t.watch&&t.watch!==ie&&mr(e,t.watch)}function ar(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;i||Ee(!1);var a=function(i){o.push(i);var a=$e(i,t,n,e);De(r,i,a),i in e||or(e,"_props",i)};for(var s in t)a(s);Ee(!0)}function sr(e){var t=e.$options.data;t=e._data="function"===typeof t?ur(t,e):t||{},c(t)||(t={});var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);while(o--){var i=n[o];0,r&&w(r,i)||U(i)||or(e,"_data",i)}xe(t,!0)}function ur(e,t){ve();try{return e.call(t,t)}catch(Ca){return tt(Ca,t,"data()"),{}}finally{ge()}}var lr={lazy:!0};function cr(e,t){var n=e._computedWatchers=Object.create(null),r=ue();for(var o in t){var i=t[o],a="function"===typeof i?i:i.get;0,r||(n[o]=new nr(e,a||x,x,lr)),o in e||fr(e,o,i)}}function fr(e,t,n){var r=!ue();"function"===typeof n?(rr.get=r?hr(t):dr(n),rr.set=x):(rr.get=n.get?r&&!1!==n.cache?hr(t):dr(n.get):x,rr.set=n.set||x),Object.defineProperty(e,t,rr)}function hr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),me.target&&t.depend(),t.value}}function dr(e){return function(){return e.call(this,this)}}function pr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?x:E(t[n],e)}function mr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o-1)return this;var n=L(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Mr(e){e.mixin=function(e){return this.options=Ze(this.options,e),this}}function Or(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Ze(n.options,e),a["super"]=n,a.options.props&&Rr(a),a.options.computed&&Tr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,B.forEach((function(e){a[e]=n[e]})),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=A({},a.options),o[r]=a,a}}function Rr(e){var t=e.options.props;for(var n in t)or(e.prototype,"_props",n)}function Tr(e){var t=e.options.computed;for(var n in t)fr(e.prototype,n,t[n])}function Er(e){B.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Lr(e){return e&&(e.Ctor.options.name||e.tag)}function Ar(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function Ir(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=Lr(a.componentOptions);s&&!t(s)&&xr(n,i,r,o)}}}function xr(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,g(n,t)}br(Cr),vr(Cr),En(Cr),xn(Cr),gn(Cr);var Dr=[String,RegExp,Array],Nr={name:"keep-alive",abstract:!0,props:{include:Dr,exclude:Dr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)xr(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Ir(e,(function(e){return Ar(t,e)}))})),this.$watch("exclude",(function(t){Ir(e,(function(e){return!Ar(t,e)}))}))},render:function(){var e=this.$slots.default,t=Cn(e),n=t&&t.componentOptions;if(n){var r=Lr(n),o=this,i=o.include,a=o.exclude;if(i&&(!r||!Ar(i,r))||a&&r&&Ar(a,r))return t;var s=this,u=s.cache,l=s.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;u[c]?(t.componentInstance=u[c].componentInstance,g(l,c),l.push(c)):(u[c]=t,l.push(c),this.max&&l.length>parseInt(this.max)&&xr(u,l[0],l,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Hr={KeepAlive:Nr};function Pr(e){var t={get:function(){return V}};Object.defineProperty(e,"config",t),e.util={warn:de,extend:A,mergeOptions:Ze,defineReactive:De},e.set=Ne,e.delete=He,e.nextTick=pt,e.observable=function(e){return xe(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,A(e.options.components,Hr),kr(e),Mr(e),Or(e),Er(e)}Pr(Cr),Object.defineProperty(Cr.prototype,"$isServer",{get:ue}),Object.defineProperty(Cr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cr,"FunctionalRenderContext",{value:Qt}),Cr.version="2.6.12";var jr=y("style,class"),Yr=y("input,textarea,option,select,progress"),Br=function(e,t,n){return"value"===n&&Yr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Fr=y("contenteditable,draggable,spellcheck"),Vr=y("events,caret,typing,plaintext-only"),Wr=function(e,t){return Zr(t)||"false"===t?"false":"contenteditable"===e&&Vr(t)?t:"true"},Ur=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),zr="http://www.w3.org/1999/xlink",Gr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Xr=function(e){return Gr(e)?e.slice(6,e.length):""},Zr=function(e){return null==e||!1===e};function Jr(e){var t=e.data,n=e,r=e;while(o(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=$r(r.data,t));while(o(n=n.parent))n&&n.data&&(t=$r(t,n.data));return Qr(t.staticClass,t.class)}function $r(e,t){return{staticClass:Kr(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Qr(e,t){return o(e)||o(t)?Kr(e,qr(t)):""}function Kr(e,t){return e?t?e+" "+t:e:t||""}function qr(e){return Array.isArray(e)?eo(e):u(e)?to(e):"string"===typeof e?e:""}function eo(e){for(var t,n="",r=0,i=e.length;r-1?so[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:so[e]=/HTMLUnknownElement/.test(t.toString())}var lo=y("text,number,password,search,email,tel,url");function co(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function fo(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function ho(e,t){return document.createElementNS(no[e],t)}function po(e){return document.createTextNode(e)}function mo(e){return document.createComment(e)}function yo(e,t,n){e.insertBefore(t,n)}function vo(e,t){e.removeChild(t)}function go(e,t){e.appendChild(t)}function bo(e){return e.parentNode}function wo(e){return e.nextSibling}function _o(e){return e.tagName}function So(e,t){e.textContent=t}function Co(e,t){e.setAttribute(t,"")}var ko=Object.freeze({createElement:fo,createElementNS:ho,createTextNode:po,createComment:mo,insertBefore:yo,removeChild:vo,appendChild:go,parentNode:bo,nextSibling:wo,tagName:_o,setTextContent:So,setStyleScope:Co}),Mo={create:function(e,t){Oo(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Oo(e,!0),Oo(t))},destroy:function(e){Oo(e,!0)}};function Oo(e,t){var n=e.data.ref;if(o(n)){var r=e.context,i=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?g(a[n],i):a[n]===i&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var Ro=new be("",{},[]),To=["create","activate","update","remove","destroy"];function Eo(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&o(e.data)===o(t.data)&&Lo(e,t)||i(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function Lo(e,t){if("input"!==e.tag)return!0;var n,r=o(n=e.data)&&o(n=n.attrs)&&n.type,i=o(n=t.data)&&o(n=n.attrs)&&n.type;return r===i||lo(r)&&lo(i)}function Ao(e,t,n){var r,i,a={};for(r=t;r<=n;++r)i=e[r].key,o(i)&&(a[i]=r);return a}function Io(e){var t,n,a={},u=e.modules,l=e.nodeOps;for(t=0;tm?(f=r(n[g+1])?null:n[g+1].elm,C(e,f,n,p,g,i)):p>g&&M(t,h,m)}function T(e,t,n,r){for(var i=n;i-1?Wo(e,t,n):Ur(t)?Zr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Fr(t)?e.setAttribute(t,Wr(t,n)):Gr(t)?Zr(n)?e.removeAttributeNS(zr,Xr(t)):e.setAttributeNS(zr,t,n):Wo(e,t,n)}function Wo(e,t,n){if(Zr(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Uo={create:Fo,update:Fo};function zo(e,t){var n=t.elm,i=t.data,a=e.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Jr(t),u=n._transitionClasses;o(u)&&(s=Kr(s,qr(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Go,Xo={create:zo,update:zo},Zo="__r",Jo="__c";function $o(e){if(o(e[Zo])){var t=ee?"change":"input";e[t]=[].concat(e[Zo],e[t]||[]),delete e[Zo]}o(e[Jo])&&(e.change=[].concat(e[Jo],e.change||[]),delete e[Jo])}function Qo(e,t,n){var r=Go;return function o(){var i=t.apply(null,arguments);null!==i&&ei(e,o,n,r)}}var Ko=at&&!(oe&&Number(oe[1])<=53);function qo(e,t,n,r){if(Ko){var o=Xn,i=t;t=i._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=o||e.timeStamp<=0||e.target.ownerDocument!==document)return i.apply(this,arguments)}}Go.addEventListener(e,t,ae?{capture:n,passive:r}:n)}function ei(e,t,n,r){(r||Go).removeEventListener(e,t._wrapper||t,n)}function ti(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},o=e.data.on||{};Go=t.elm,$o(n),wt(n,o,qo,ei,Qo,t.context),Go=void 0}}var ni,ri={create:ti,update:ti};function oi(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,i,a=t.elm,s=e.data.domProps||{},u=t.data.domProps||{};for(n in o(u.__ob__)&&(u=t.data.domProps=A({},u)),s)n in u||(a[n]="");for(n in u){if(i=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),i===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=i;var l=r(i)?"":String(i);ii(a,l)&&(a.value=l)}else if("innerHTML"===n&&oo(a.tagName)&&r(a.innerHTML)){ni=ni||document.createElement("div"),ni.innerHTML=""+i+"";var c=ni.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(c.firstChild)a.appendChild(c.firstChild)}else if(i!==s[n])try{a[n]=i}catch(Ca){}}}}function ii(e,t){return!e.composing&&("OPTION"===e.tagName||ai(e,t)||si(e,t))}function ai(e,t){var n=!0;try{n=document.activeElement!==e}catch(Ca){}return n&&e.value!==t}function si(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.number)return m(n)!==m(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var ui={create:oi,update:oi},li=_((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function ci(e){var t=fi(e.style);return e.staticStyle?A(e.staticStyle,t):t}function fi(e){return Array.isArray(e)?I(e):"string"===typeof e?li(e):e}function hi(e,t){var n,r={};if(t){var o=e;while(o.componentInstance)o=o.componentInstance._vnode,o&&o.data&&(n=ci(o.data))&&A(r,n)}(n=ci(e.data))&&A(r,n);var i=e;while(i=i.parent)i.data&&(n=ci(i.data))&&A(r,n);return r}var di,pi=/^--/,mi=/\s*!important$/,yi=function(e,t,n){if(pi.test(t))e.style.setProperty(t,n);else if(mi.test(n))e.style.setProperty(O(t),n.replace(mi,""),"important");else{var r=gi(t);if(Array.isArray(n))for(var o=0,i=n.length;o-1?t.split(_i).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ci(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(_i).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function ki(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&A(t,Mi(e.name||"v")),A(t,e),t}return"string"===typeof e?Mi(e):void 0}}var Mi=_((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Oi=$&&!te,Ri="transition",Ti="animation",Ei="transition",Li="transitionend",Ai="animation",Ii="animationend";Oi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ei="WebkitTransition",Li="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ai="WebkitAnimation",Ii="webkitAnimationEnd"));var xi=$?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Di(e){xi((function(){xi(e)}))}function Ni(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Si(e,t))}function Hi(e,t){e._transitionClasses&&g(e._transitionClasses,t),Ci(e,t)}function Pi(e,t,n){var r=Yi(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Ri?Li:Ii,u=0,l=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++u>=a&&l()};setTimeout((function(){u0&&(n=Ri,c=a,f=i.length):t===Ti?l>0&&(n=Ti,c=l,f=u.length):(c=Math.max(a,l),n=c>0?a>l?Ri:Ti:null,f=n?n===Ri?i.length:u.length:0);var h=n===Ri&&ji.test(r[Ei+"Property"]);return{type:n,timeout:c,propCount:f,hasTransform:h}}function Bi(e,t){while(e.length1}function Gi(e,t){!0!==t.data.show&&Vi(t)}var Xi=$?{create:Gi,activate:Gi,remove:function(e,t){!0!==e.data.show?Wi(e,t):t()}}:{},Zi=[Uo,Xo,ri,ui,wi,Xi],Ji=Zi.concat(Bo),$i=Io({nodeOps:ko,modules:Ji});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&oa(e,"input")}));var Qi={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?_t(n,"postpatch",(function(){Qi.componentUpdated(e,t,n)})):Ki(e,t,n.context),e._vOptions=[].map.call(e.options,ta)):("textarea"===n.tag||lo(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",na),e.addEventListener("compositionend",ra),e.addEventListener("change",ra),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ki(e,t,n.context);var r=e._vOptions,o=e._vOptions=[].map.call(e.options,ta);if(o.some((function(e,t){return!H(e,r[t])}))){var i=e.multiple?t.value.some((function(e){return ea(e,o)})):t.value!==t.oldValue&&ea(t.value,o);i&&oa(e,"change")}}}};function Ki(e,t,n){qi(e,t,n),(ee||ne)&&setTimeout((function(){qi(e,t,n)}),0)}function qi(e,t,n){var r=t.value,o=e.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,u=e.options.length;s-1,a.selected!==i&&(a.selected=i);else if(H(ta(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function ea(e,t){return t.every((function(t){return!H(t,e)}))}function ta(e){return"_value"in e?e._value:e.value}function na(e){e.target.composing=!0}function ra(e){e.target.composing&&(e.target.composing=!1,oa(e.target,"input"))}function oa(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ia(e){return!e.componentInstance||e.data&&e.data.transition?e:ia(e.componentInstance._vnode)}var aa={bind:function(e,t,n){var r=t.value;n=ia(n);var o=n.data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&o?(n.data.show=!0,Vi(n,(function(){e.style.display=i}))):e.style.display=r?i:"none"},update:function(e,t,n){var r=t.value,o=t.oldValue;if(!r!==!o){n=ia(n);var i=n.data&&n.data.transition;i?(n.data.show=!0,r?Vi(n,(function(){e.style.display=e.__vOriginalDisplay})):Wi(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},sa={model:Qi,show:aa},ua={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function la(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?la(Cn(t.children)):e}function ca(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var i in o)t[C(i)]=o[i];return t}function fa(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function ha(e){while(e=e.parent)if(e.data.transition)return!0}function da(e,t){return t.key===e.key&&t.tag===e.tag}var pa=function(e){return e.tag||Sn(e)},ma=function(e){return"show"===e.name},ya={name:"transition",props:ua,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var o=n[0];if(ha(this.$vnode))return o;var i=la(o);if(!i)return o;if(this._leaving)return fa(e,o);var a="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?a+"comment":a+i.tag:s(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var u=(i.data||(i.data={})).transition=ca(this),l=this._vnode,c=la(l);if(i.data.directives&&i.data.directives.some(ma)&&(i.data.show=!0),c&&c.data&&!da(i,c)&&!Sn(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var f=c.data.transition=A({},u);if("out-in"===r)return this._leaving=!0,_t(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),fa(e,o);if("in-out"===r){if(Sn(i))return l;var h,d=function(){h()};_t(u,"afterEnter",d),_t(u,"enterCancelled",d),_t(f,"delayLeave",(function(e){h=e}))}}return o}}},va=A({tag:String,moveClass:String},ua);delete va.mode;var ga={props:va,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var o=An(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,o(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=ca(this),s=0;s=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},"2ca0":function(e,t,n){"use strict";var r=n("23e7"),o=n("06cf").f,i=n("50c4"),a=n("5a34"),s=n("1d80"),u=n("ab13"),l=n("c430"),c="".startsWith,f=Math.min,h=u("startsWith"),d=!l&&!h&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!d&&!h},{startsWith:function(e){var t=String(s(this));a(e);var n=i(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return c?c.call(t,r,n):t.slice(n,n+r.length)===r}})},"2cf4":function(e,t,n){var r,o,i,a=n("da84"),s=n("d039"),u=n("0366"),l=n("1be4"),c=n("cc12"),f=n("1cdc"),h=n("605d"),d=a.location,p=a.setImmediate,m=a.clearImmediate,y=a.process,v=a.MessageChannel,g=a.Dispatch,b=0,w={},_="onreadystatechange",S=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},C=function(e){return function(){S(e)}},k=function(e){S(e.data)},M=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};p&&m||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},m=function(e){delete w[e]},h?r=function(e){y.nextTick(C(e))}:g&&g.now?r=function(e){g.now(C(e))}:v&&!f?(o=new v,i=o.port2,o.port1.onmessage=k,r=u(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&d&&"file:"!==d.protocol&&!s(M)?(r=M,a.addEventListener("message",k,!1)):r=_ in c("script")?function(e){l.appendChild(c("script"))[_]=function(){l.removeChild(this),S(e)}}:function(e){setTimeout(C(e),0)}),e.exports={set:p,clear:m}},"2d00":function(e,t,n){var r,o,i=n("da84"),a=n("342f"),s=i.process,u=s&&s.versions,l=u&&u.v8;l?(r=l.split("."),o=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=r[1]))),e.exports=o&&+o},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2e8c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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}});return t}))},"2fa4":function(e,t,n){"use strict";n("20f6");var r=n("80d2");t["a"]=Object(r["g"])("spacer","div","v-spacer")},"30b5":function(e,t,n){"use strict";var r=n("c532");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},3206:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n("99af");var r=n("ade3"),o=n("2b0e"),i=n("d9bd");function a(e,t){return function(){return Object(i["c"])("The ".concat(e," component must be used inside a ").concat(t))}}function s(e,t,n){var i=t&&n?{register:a(t,n),unregister:a(t,n)}:null;return o["a"].extend({name:"registrable-inject",inject:Object(r["a"])({},e,{default:i})})}},3408:function(e,t,n){},3410:function(e,t,n){var r=n("23e7"),o=n("d039"),i=n("7b0b"),a=n("e163"),s=n("e177"),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:u,sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"34c3":function(e,t,n){"use strict";n("498a");var r=n("2b0e");t["a"]=r["a"].extend({name:"v-list-item-icon",functional:!0,render:function(e,t){var n=t.data,r=t.children;return n.staticClass="v-list-item__icon ".concat(n.staticClass||"").trim(),e("div",n,r)}})},"35a1":function(e,t,n){var r=n("f5df"),o=n("3f8c"),i=n("b622"),a=i("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||o[r(e)]}},"36a7":function(e,t,n){},"37e8":function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),a=n("df75");e.exports=r?Object.defineProperties:function(e,t){i(e);var n,r=a(t),s=r.length,u=0;while(s>u)o.f(e,n=r[u++],t[n]);return e}},3835:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function o(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){o=!0,i=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(o)throw i}}return n}}var i=n("06c5");function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||o(e,t)||Object(i["a"])(e,t)||a()}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3886:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t}))},"38cf":function(e,t,n){var r=n("23e7"),o=n("1148");r({target:"String",proto:!0},{repeat:o})},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"39a6":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";var t=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,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},"39bd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(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 r(e,t,n,r){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे";break}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां";break}return o.replace(/%d/i,e)}var o=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:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},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}});return o}))},"3a2f":function(e,t,n){"use strict";n("a9e3");var r=n("ade3"),o=(n("9734"),n("caad"),n("45fc"),n("b0c0"),n("b64b"),n("53ca")),i=n("2b0e"),a=i["a"].extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:function(){return{openTimeout:void 0,closeTimeout:void 0}},methods:{clearDelay:function(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay:function(e,t){var n=this;this.clearDelay();var r=parseInt(this["".concat(e,"Delay")],10);this["".concat(e,"Timeout")]=setTimeout(t||function(){n.isActive={open:!0,close:!1}[e]},r)}}}),s=n("f2e7"),u=n("58df"),l=n("80d2"),c=n("d9bd"),f=Object(u["a"])(a,s["a"]),h=f.extend({name:"activatable",props:{activator:{default:null,validator:function(e){return["string","object"].includes(Object(o["a"])(e))}},disabled:Boolean,internalActivator:Boolean,openOnHover:Boolean,openOnFocus:Boolean},data:function(){return{activatorElement:null,activatorNode:[],events:["click","mouseenter","mouseleave","focus"],listeners:{}}},watch:{activator:"resetActivator",openOnFocus:"resetActivator",openOnHover:"resetActivator"},mounted:function(){var e=Object(l["l"])(this,"activator",!0);e&&["v-slot","normal"].includes(e)&&Object(c["b"])('The activator slot must be bound, try \'