Please wait. This can take some minutes ...
Project download
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
Project price only 1 $
You can buy this project and download/modify it how often you want.
Information
ureport-asserts.js.designer.bundle.js Maven / Gradle / Ivy
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=334)}([function(e,t,n){"use strict";n.d(t,"l",function(){return a}),n.d(t,"e",function(){return s}),n.d(t,"j",function(){return l}),n.d(t,"a",function(){return d}),n.d(t,"m",function(){return c}),n.d(t,"d",function(){return m}),n.d(t,"f",function(){return g}),n.d(t,"g",function(){return y}),n.d(t,"h",function(){return v}),n.d(t,"k",function(){return b}),n.d(t,"i",function(){return w}),n.d(t,"c",function(){return _}),n.d(t,"b",function(){return M}),n.d(t,"n",function(){return x});var i=n(36),o=n.n(i),r=n(1);function a(){const e=window._server+"/res/ureport-asserts/icons/loading.gif",t=$(window).height()/2,n=$(window).width()/2,i=$(``);$(document.body).append(i);const o=$(`\n 打印数据加载中...`);$(document.body).append(o)}function s(){$(".ureport-loading-cover").remove(),$(".ureport-loading").remove()}function l(e){const t=e.countCols(),n=e.countRows(),i=e.context,o=[];for(let r=0;r13?e+=t.substring(0,10)+"..)":e+=t+")",n.push(e)}else if("expression"===e){let e=i.value||"";e.length>16&&(e=e.substring(0,13)+"..."),n.push(e)}else n.push(i.value||"")}else n.push("")}o.push(n)}e.loadData(o)}function d(e,t){return{rowNumber:e,columnNumber:t,expand:"None",cellStyle:{fontSize:9,forecolor:"0,0,0",fontFamily:"宋体",align:"center",valign:"middle"},value:{type:"simple",value:""}}}function c(e){const t=e.hot,n=t.countRows(),i=t.countCols();let o='',a="",s="";const l=e.rowHeaders;for(let e=0;e `:`
`}for(let e=0;e`}let d="",c=[];for(let o=0;o-1)continue;let i=e.getCell(o,n);if(!i)continue;let a=e.getCellName(o,n);d+=`1&&(d+=` row-span="${l}"`),m>1&&(d+=` col-span="${m}"`),i.linkUrl&&""!==i.linkUrl&&(d+=` link-url="${i.linkUrl}"`),i.linkTargetWindow&&""!==i.linkTargetWindow&&(d+=` link-target-window="${i.linkTargetWindow}"`),d+=">",d+=f(i.cellStyle),i.linkParameters&&i.linkParameters.length>0)for(let e of i.linkParameters)d+=``,d+=` `,d+=" ";const A=i.value;if("dataset"===A.type){let e=null;if(A.datasetName||(e=`${a}单元格数据集属性不能为空!`),e||A.property||(e=`${a}单元格属性不能为空!`),e||A.aggregate||(e=`${a}单元格聚合方式属性不能为空!`),e)throw Object(r.a)(e),e;const t=A.mappingType||"simple";if(d+=`",d+=h(A.conditions),"customgroup"===A.aggregate){const e=A.groupItems;for(let t of e){d+=``;for(let e of t.conditions)d+=``:d+=">",d+=` `,d+=" ";d+=" "}}if("simple"===t){const e=A.mappingItems;if(e&&e.length>0)for(let t of e)d+=` `}d+=" "}else if("expression"===A.type){if(!A.value||""===A.value){const e=`${a}单元格表达式不能为空`;throw Object(r.a)(e),e}d+="",d+=``,d+=" "}else if("simple"===A.type)d+="",d+=``,d+=" ";else if("image"===A.type)d+=`",d+="",d+=``,d+=" ",d+=" ";else if("zxing"===A.type)d+=`",d+="",d+=``,d+=" ",d+=" ";else if("slash"===A.type){d+="";const e=A.slashes;for(let t of e)d+=` `;d+="",d+=``,d+=" ",d+=" "}else if("chart"===A.type){d+="";const e=A.chart,t=e.dataset;d+=` ";const n=e.xaxes;if(n){d+="";const e=n.scaleLabel;e&&(d+=` "),d+=" "}const i=e.yaxes;if(i){d+="";const e=i.scaleLabel;e&&(d+=` "),d+=" "}const o=e.options;if(o)for(let e of o)d+=`";const r=e.plugins||[];for(let e of r)d+=` `;d+=" "}const b=i.conditionPropertyItems||[];for(let e of b){d+=`";const i=e.paging;if(i&&(d+=` `),e.linkParameters&&e.linkParameters.length>0)for(let t of e.linkParameters)d+=``,d+=` `,d+=" ";const o=e.cellStyle;o&&(d+=f(o,!0)),d+=h(e.conditions),d+=" "}d+=" | "}o+=d,o+=a,o+=s;const m=e.reportDef.header;m&&(m.left||m.center||m.right)&&(o+="",m.left&&(o+=` `),m.center&&(o+=` `),m.right&&(o+=` `),o+=" ");const g=e.reportDef.footer;g&&(g.left||g.center||g.right)&&(o+="");let y="";const v=e.reportDef.datasources;for(let e of v){let t=`";for(let n of e.datasets){t+=``,t+=` `;for(let e of n.fields)t+=` `;for(let e of n.parameters)t+=` `;t+=" "}}else if("spring"===n){t+=` bean="${e.beanId}">`;for(let n of e.datasets){t+=``;for(let e of n.fields)t+=` `;t+=" "}}else if("buildin"===n){t+=">";for(let n of e.datasets){t+=``,t+=` `;for(let e of n.fields)t+=` `;for(let e of n.parameters)t+=` `;t+=" "}}y+=t+=" "}o+=y;const b=e.reportDef.paper;let w=0;return null!==b.htmlIntervalRefreshValue&&void 0!==b.htmlIntervalRefreshValue&&(w=b.htmlIntervalRefreshValue),o+=` ",e.reportDef.searchFormXml&&(o+=e.reportDef.searchFormXml),o+=" ",encodeURIComponent(o)}function u(e,t,n){const i=e.getSettings().mergeCells||[];for(let e of i)if(e.row===t&&e.col===n)return e;return{rowspan:0,colspan:0}}function h(e){let t="";if(e)for(let n of e)n.type&&"property"!==n.type?(t+=``:t+=">",t+=` `,t+=` `):(n.left?t+=``:t+=">",t+=` `),t+=" ";return t}function f(e,t){let n="";let i=e.leftBorder;i&&"none"!==i.style&&(n+=` `);let o=e.rightBorder;o&&"none"!==o.style&&(n+=` `);let r=e.topBorder;r&&"none"!==r.style&&(n+=` `);let a=e.bottomBorder;return a&&"none"!==a.style&&(n+=` `),n+" "}function p(e){return e.replace(/[<>&"]/g,function(e){return{"<":"<",">":">","&":"&",'"':"""}[e]})}function m(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!=n?n[2]:null}function g(e){let t=2.834646*e;return Math.round(t)}function y(e){let t=.352778*e;return Math.round(t)}function v(e){const t=1.33*e;return Math.round(t)}function A(e){const t=.75*e;return Math.round(t)}function b(){$("#__save_btn").removeClass("disabled")}function w(){$("#__save_btn").addClass("disabled")}function _(e,t){if("number"==typeof e&&(e=new Date(e)),"string"==typeof e)return e;var n={"M+":e.getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var i in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[i]:("00"+n[i]).substr((""+n[i]).length)));return t}function M(){return{A0:{width:841,height:1189},A1:{width:594,height:841},A2:{width:420,height:594},A3:{width:297,height:420},A4:{width:210,height:297},A5:{width:148,height:210},A6:{width:105,height:148},A7:{width:74,height:105},A8:{width:52,height:74},A9:{width:37,height:52},A10:{width:26,height:37},B0:{width:1e3,height:1414},B1:{width:707,height:1e3},B2:{width:500,height:707},B3:{width:353,height:500},B4:{width:250,height:353},B5:{width:176,height:250},B6:{width:125,height:176},B7:{width:88,height:125},B8:{width:62,height:88},B9:{width:44,height:62},B10:{width:31,height:44}}}const x=new o.a},function(e,t,n){"use strict";function i(e){a("消息提示",e).modal("show")}function o(e,t){a("确认提示",e,[{name:"确认",click:function(){t.call(this)}}]).modal("show")}function r(e,t,n){a(e,t,[{name:"确认",click:function(){n.call(this)}}]).modal("show")}function a(e,t,n,i){const o="modal-dialog"+(i?" modal-lg":"");let r=$(''),a=$(``);r.append(a);let s=$(`\n \n \n \n ${e}\n
\n \n \n ${"string"==typeof t?t:""}\n `);"object"==typeof t&&s.find(".modal-body").append(t),a.append(s);let l=$('');if(s.append(l),n)n.forEach((e,t)=>{let n=$(``);n.click(function(t){e.click.call(this),e.holdDialog||r.modal("hide")}.bind(this)),l.append(n)});else{let e=$('');l.append(e)}return r.on("show.bs.modal",function(){var e=1050;$(document).find(".modal").each(function(t,n){var i=$(n).css("z-index");i&&""!==i&&!isNaN(i)&&(i=parseInt(i))>e&&(e=i)}),e++,r.css({"z-index":e})}),r}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return r})},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,i;function o(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,i=[];for(n=0;n>>0,i=0;i0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},W={};function $(e,t,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),e&&(W[e]=o),t&&(W[t[0]]=function(){return j(o.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=Q(t,e.localeData()),z[t]=z[t]||function(e){var t,n,i,o=e.match(F);for(t=0,n=o.length;t=0&&N.test(e);)e=e.replace(N,i),N.lastIndex=0,n-=1;return e}var G=/\d/,V=/\d\d/,J=/\d{3}/,K=/\d{4}/,X=/[+-]?\d{6}/,q=/\d\d?/,Z=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,ie=/[+-]?\d{1,6}/,oe=/\d+/,re=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,de={};function ce(e,t,n){de[e]=T(t)?t:function(e,i){return e&&n?n:t}}function ue(e,t){return u(de,e)?de[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,o){return t||n||i||o})))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function pe(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,n){n[t]=M(e)}),n=0;n68?1900:2e3)};var Ee,Le=Te("FullYear",!0);function Te(e,t){return function(n){return null!=n?(Ye(this,e,n),o.updateOffset(this,t),this):De(this,e)}}function De(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ye(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ce(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Re(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Re(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?Ce(e)?29:28:31-n%7%2}Ee=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function We(e,t,n){var i=7+t-n;return-((7+ze(e,0,i).getUTCDay()-t)%7)+i-1}function $e(e,t,n,i,o){var r,a,s=1+7*(t-1)+(7+n-i)%7+We(e,i,o);return s<=0?a=Se(r=e-1)+s:s>Se(e)?(r=e+1,a=s-Se(e)):(r=e,a=s),{year:r,dayOfYear:a}}function Ue(e,t,n){var i,o,r=We(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?i=a+Qe(o=e.year()-1,t,n):a>Qe(e.year(),t,n)?(i=a-Qe(e.year(),t,n),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function Qe(e,t,n){var i=We(e,t,n),o=We(e+1,t,n);return(Se(e)-i+o)/7}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),I("week",5),I("isoWeek",5),ce("w",q),ce("ww",q,V),ce("W",q),ce("WW",q,V),me(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=M(e)}),$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),I("day",11),I("weekday",11),I("isoWeekday",11),ce("d",q),ce("e",q),ce("E",q),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,i){var o=n._locale.weekdaysParse(e,i,n._strict);null!=o?t.d=o:p(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,i){t[i]=M(e)});var Ge="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Je="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=le,Xe=le,qe=le;function Ze(){function e(e,t){return t.length-e.length}var t,n,i,o,r,a=[],s=[],l=[],d=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(i),s.push(o),l.push(r),d.push(i),d.push(o),d.push(r);for(a.sort(e),s.sort(e),l.sort(e),d.sort(e),t=0;t<7;t++)s[t]=he(s[t]),l[t]=he(l[t]),d[t]=he(d[t]);this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,et),$("k",["kk",2],0,function(){return this.hours()||24}),$("hmm",0,0,function(){return""+et.apply(this)+j(this.minutes(),2)}),$("hmmss",0,0,function(){return""+et.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),tt("a",!0),tt("A",!1),B("hour","h"),I("hour",13),ce("a",nt),ce("A",nt),ce("H",q),ce("h",q),ce("k",q),ce("HH",q,V),ce("hh",q,V),ce("kk",q,V),ce("hmm",Z),ce("hmmss",ee),ce("Hmm",Z),ce("Hmmss",ee),pe(["H","HH"],be),pe(["k","kk"],function(e,t,n){var i=M(e);t[be]=24===i?0:i}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[be]=M(e),p(n).bigHour=!0}),pe("hmm",function(e,t,n){var i=e.length-2;t[be]=M(e.substr(0,i)),t[we]=M(e.substr(i)),p(n).bigHour=!0}),pe("hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[be]=M(e.substr(0,i)),t[we]=M(e.substr(i,2)),t[_e]=M(e.substr(o)),p(n).bigHour=!0}),pe("Hmm",function(e,t,n){var i=e.length-2;t[be]=M(e.substr(0,i)),t[we]=M(e.substr(i))}),pe("Hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[be]=M(e.substr(0,i)),t[we]=M(e.substr(i,2)),t[_e]=M(e.substr(o))});var it,ot=Te("Hours",!0),rt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:He,week:{dow:0,doy:6},weekdays:Ge,weekdaysMin:Je,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function dt(t){var i=null;if(!at[t]&&void 0!==e&&e&&e.exports)try{i=it._abbr,n(521)("./"+t),ct(i)}catch(e){}return at[t]}function ct(e,t){var n;return e&&((n=s(t)?ht(e):ut(e,t))?it=n:"undefined"!=typeof console&&console.warn),it._abbr}function ut(e,t){if(null!==t){var n,i=rt;if(t.abbr=e,null!=at[e])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=at[e]._config;else if(null!=t.parentLocale)if(null!=at[t.parentLocale])i=at[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;i=n._config}return at[e]=new Y(D(i,t)),st[e]&&st[e].forEach(function(e){ut(e.name,e.config)}),ct(e),at[e]}return delete at[e],null}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return it;if(!r(e)){if(t=dt(e))return t;e=[e]}return function(e){for(var t,n,i,o,r=0;r0;){if(i=dt(o.slice(0,t).join("-")))return i;if(n&&n.length>=t&&x(o,n,!0)>=t-1)break;t--}r++}return it}(e)}function ft(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[ve]<0||n[ve]>11?ve:n[Ae]<1||n[Ae]>Re(n[ye],n[ve])?Ae:n[be]<0||n[be]>24||24===n[be]&&(0!==n[we]||0!==n[_e]||0!==n[Me])?be:n[we]<0||n[we]>59?we:n[_e]<0||n[_e]>59?_e:n[Me]<0||n[Me]>999?Me:-1,p(e)._overflowDayOfYear&&(tAe)&&(t=Ae),p(e)._overflowWeeks&&-1===t&&(t=xe),p(e)._overflowWeekday&&-1===t&&(t=ke),p(e).overflow=t),e}function pt(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,i,r,a,s=[];if(!e._d){for(i=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[Ae]&&null==e._a[ve]&&function(e){var t,n,i,o,r,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=pt(t.GG,e._a[ye],Ue(Lt(),1,4).year),i=pt(t.W,1),((o=pt(t.E,1))<1||o>7)&&(l=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var d=Ue(Lt(),r,a);n=pt(t.gg,e._a[ye],d.year),i=pt(t.w,d.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+r,(t.e<0||t.e>6)&&(l=!0)):o=r}i<1||i>Qe(n,r,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=$e(n,i,o,r,a),e._a[ye]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=pt(e._a[ye],i[ye]),(e._dayOfYear>Se(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=ze(a,0,e._dayOfYear),e._a[ve]=n.getUTCMonth(),e._a[Ae]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[we]&&0===e._a[_e]&&0===e._a[Me]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?ze:function(e,t,n,i,o,r,a){var s=new Date(e,t,n,i,o,r,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,At=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((\-?\d+)/i;function _t(e){var t,n,i,o,r,a,s=e._i,l=gt.exec(s)||yt.exec(s);if(l){for(p(e).iso=!0,t=0,n=At.length;t0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),d+=n.length),W[r]?(n?p(e).empty=!1:p(e).unusedTokens.push(r),ge(r,n,e)):e._strict&&!n&&p(e).unusedTokens.push(r);p(e).charsLeftOver=l-d,s.length>0&&p(e).unusedInput.push(s),e._a[be]<=12&&!0===p(e).bigHour&&e._a[be]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[be]=(c=e._locale,u=e._a[be],null==(h=e._meridiem)?u:null!=c.meridiemHour?c.meridiemHour(u,h):null!=c.isPM?((f=c.isPM(h))&&u<12&&(u+=12),f||12!==u||(u=0),u):u),mt(e),ft(e)}else kt(e);else _t(e);var c,u,h,f}function Ct(e){var t=e._i,n=e._f;return e._locale=e._locale||ht(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(ft(t)):(d(t)?e._d=t:r(n)?function(e){var t,n,i,o,r;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:g()});function Yt(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Lt();for(n=t[0],i=1;i(r=Qe(e,i,o))&&(t=r),function(e,t,n,i,o){var r=$e(e,t,n,i,o),a=ze(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,i,o))}$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),nn("gggg","weekYear"),nn("ggggg","weekYear"),nn("GGGG","isoWeekYear"),nn("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),I("weekYear",1),I("isoWeekYear",1),ce("G",re),ce("g",re),ce("GG",q,V),ce("gg",q,V),ce("GGGG",ne,K),ce("gggg",ne,K),ce("GGGGG",ie,X),ce("ggggg",ie,X),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=M(e)}),me(["gg","GG"],function(e,t,n,i){t[i]=o.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),B("quarter","Q"),I("quarter",7),ce("Q",G),pe("Q",function(e,t){t[ve]=3*(M(e)-1)}),$("D",["DD",2],"Do","date"),B("date","D"),I("date",9),ce("D",q),ce("DD",q,V),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],Ae),pe("Do",function(e,t){t[Ae]=M(e.match(q)[0])});var rn=Te("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),I("dayOfYear",4),ce("DDD",te),ce("DDDD",J),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=M(e)}),$("m",["mm",2],0,"minute"),B("minute","m"),I("minute",14),ce("m",q),ce("mm",q,V),pe(["m","mm"],we);var an=Te("Minutes",!1);$("s",["ss",2],0,"second"),B("second","s"),I("second",15),ce("s",q),ce("ss",q,V),pe(["s","ss"],_e);var sn,ln=Te("Seconds",!1);for($("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),B("millisecond","ms"),I("millisecond",16),ce("S",te,G),ce("SS",te,V),ce("SSS",te,J),sn="SSSS";sn.length<=9;sn+="S")ce(sn,oe);function dn(e,t){t[Me]=M(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")pe(sn,dn);var cn=Te("Milliseconds",!1);$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var un=b.prototype;function hn(e){return e}un.add=Kt,un.calendar=function(e,t){var n=e||Lt(),i=Ft(n,this).startOf("day"),r=o.calendarFormat(this,i)||"sameElse",a=t&&(T(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,Lt(n)))},un.clone=function(){return new b(this)},un.diff=function(e,t,n){var i,o,r;if(!this.isValid())return NaN;if(!(i=Ft(e,this)).isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),t=O(t)){case"year":r=qt(this,i)/12;break;case"month":r=qt(this,i);break;case"quarter":r=qt(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-o)/864e5;break;case"week":r=(this-i-o)/6048e5;break;default:r=this-i}return n?r:_(r)},un.endOf=function(e){return void 0===(e=O(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},un.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},un.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Lt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},un.fromNow=function(e){return this.from(Lt(),e)},un.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Lt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},un.toNow=function(e){return this.to(Lt(),e)},un.get=function(e){return T(this[e=O(e)])?this[e]():this},un.invalidAt=function(){return p(this).overflow},un.isAfter=function(e,t){var n=w(e)?e:Lt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=O(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},un.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+o)},un.toJSON=function(){return this.isValid()?this.toISOString():null},un.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},un.unix=function(){return Math.floor(this.valueOf()/1e3)},un.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},un.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},un.year=Le,un.isLeapYear=function(){return Ce(this.year())},un.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},un.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},un.quarter=un.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},un.month=Ie,un.daysInMonth=function(){return Re(this.year(),this.month())},un.week=un.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},un.isoWeek=un.isoWeeks=function(e){var t=Ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},un.weeksInYear=function(){var e=this.localeData()._week;return Qe(this.year(),e.dow,e.doy)},un.isoWeeksInYear=function(){return Qe(this.year(),1,4)},un.date=rn,un.day=un.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},un.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},un.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},un.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},un.hour=un.hours=ot,un.minute=un.minutes=an,un.second=un.seconds=ln,un.millisecond=un.milliseconds=cn,un.utcOffset=function(e,t,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=jt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Nt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Jt(this,Ut(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Nt(this)},un.utc=function(e){return this.utcOffset(0,e)},un.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},un.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=jt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},un.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Lt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},un.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},un.isLocal=function(){return!!this.isValid()&&!this._isUTC},un.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},un.isUtc=zt,un.isUTC=zt,un.zoneAbbr=function(){return this._isUTC?"UTC":""},un.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},un.dates=S("dates accessor is deprecated. Use date instead.",rn),un.months=S("months accessor is deprecated. Use month instead",Ie),un.years=S("years accessor is deprecated. Use year instead",Le),un.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),un.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),(e=Ct(e))._a){var t=e._isUTC?f(e._a):Lt(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var fn=Y.prototype;function pn(e,t,n,i){var o=ht(),r=f().set(i,t);return o[n](r,e)}function mn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return pn(e,t,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=pn(e,i,n,"month");return o}function gn(e,t,n,i){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,r=ht(),a=e?r._week.dow:0;if(null!=n)return pn(t,(n+a)%7,i,"day");var s=[];for(o=0;o<7;o++)s[o]=pn(t,(o+a)%7,i,"day");return s}fn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return T(i)?i.call(t,n):i},fn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},fn.invalidDate=function(){return this._invalidDate},fn.ordinal=function(e){return this._ordinal.replace("%d",e)},fn.preparse=hn,fn.postformat=hn,fn.relativeTime=function(e,t,n,i){var o=this._relativeTime[n];return T(o)?o(e,t,n,i):o.replace(/%d/i,e)},fn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},fn.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},fn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Be).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},fn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Be.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},fn.monthsParse=function(e,t,n){var i,o,r;if(this._monthsParseExact)return function(e,t,n){var i,o,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Ee.call(this._shortMonthsParse,a))?o:null:-1!==(o=Ee.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Ee.call(this._shortMonthsParse,a))?o:-1!==(o=Ee.call(this._longMonthsParse,a))?o:null:-1!==(o=Ee.call(this._longMonthsParse,a))?o:-1!==(o=Ee.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},fn.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},fn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=je),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},fn.week=function(e){return Ue(e,this._week.dow,this._week.doy).week},fn.firstDayOfYear=function(){return this._week.doy},fn.firstDayOfWeek=function(){return this._week.dow},fn.weekdays=function(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone},fn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},fn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},fn.weekdaysParse=function(e,t,n){var i,o,r;if(this._weekdaysParseExact)return function(e,t,n){var i,o,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Ee.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ee.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Ee.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Ee.call(this._weekdaysParse,a))?o:-1!==(o=Ee.call(this._shortWeekdaysParse,a))?o:-1!==(o=Ee.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ee.call(this._shortWeekdaysParse,a))?o:-1!==(o=Ee.call(this._weekdaysParse,a))?o:-1!==(o=Ee.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Ee.call(this._minWeekdaysParse,a))?o:-1!==(o=Ee.call(this._weekdaysParse,a))?o:-1!==(o=Ee.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},fn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},fn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},fn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},fn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},fn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===M(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=S("moment.lang is deprecated. Use moment.locale instead.",ct),o.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ht);var yn=Math.abs;function vn(e,t,n,i){var o=Ut(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function An(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function _n(e){return function(){return this.as(e)}}var Mn=_n("ms"),xn=_n("s"),kn=_n("m"),Sn=_n("h"),Cn=_n("d"),En=_n("w"),Ln=_n("M"),Tn=_n("y");function Dn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Yn=Dn("milliseconds"),Rn=Dn("seconds"),Bn=Dn("minutes"),On=Dn("hours"),Hn=Dn("days"),Pn=Dn("months"),In=Dn("years"),jn=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11},Nn=Math.abs;function zn(e){return(e>0)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Nn(this._milliseconds)/1e3,i=Nn(this._days),o=Nn(this._months);t=_((e=_(n/60))/60),n%=60,e%=60;var r=_(o/12),a=o%=12,s=i,l=t,d=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var h=u<0?"-":"",f=zn(this._months)!==zn(u)?"-":"",p=zn(this._days)!==zn(u)?"-":"",m=zn(this._milliseconds)!==zn(u)?"-":"";return h+"P"+(r?f+r+"Y":"")+(a?f+a+"M":"")+(s?p+s+"D":"")+(l||d||c?"T":"")+(l?m+l+"H":"")+(d?m+d+"M":"")+(c?m+c+"S":"")}var $n=Bt.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},$n.add=function(e,t){return vn(this,e,t,1)},$n.subtract=function(e,t){return vn(this,e,t,-1)},$n.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=O(e))||"year"===e)return t=this._days+i/864e5,n=this._months+bn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(wn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},$n.asMilliseconds=Mn,$n.asSeconds=xn,$n.asMinutes=kn,$n.asHours=Sn,$n.asDays=Cn,$n.asWeeks=En,$n.asMonths=Ln,$n.asYears=Tn,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*M(this._months/12):NaN},$n._bubble=function(){var e,t,n,i,o,r=this._milliseconds,a=this._days,s=this._months,l=this._data;return r>=0&&a>=0&&s>=0||r<=0&&a<=0&&s<=0||(r+=864e5*An(wn(s)+a),a=0,s=0),l.milliseconds=r%1e3,e=_(r/1e3),l.seconds=e%60,t=_(e/60),l.minutes=t%60,n=_(t/60),l.hours=n%24,s+=o=_(bn(a+=_(n/24))),a-=An(wn(o)),i=_(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},$n.clone=function(){return Ut(this)},$n.get=function(e){return e=O(e),this.isValid()?this[e+"s"]():NaN},$n.milliseconds=Yn,$n.seconds=Rn,$n.minutes=Bn,$n.hours=On,$n.days=Hn,$n.weeks=function(){return _(this.days()/7)},$n.months=Pn,$n.years=In,$n.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var i=Ut(e).abs(),o=jn(i.as("s")),r=jn(i.as("m")),a=jn(i.as("h")),s=jn(i.as("d")),l=jn(i.as("M")),d=jn(i.as("y")),c=o<=Fn.ss&&["s",o]||o0,c[4]=n,function(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},$n.toISOString=Wn,$n.toString=Wn,$n.toJSON=Wn,$n.locale=Zt,$n.localeData=tn,$n.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),$n.lang=en,$("X",0,0,"unix"),$("x",0,0,"valueOf"),ce("x",re),ce("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),pe("x",function(e,t,n){n._d=new Date(M(e))}),o.version="2.22.0",t=Lt,o.fn=un,o.min=function(){return Yt("isBefore",[].slice.call(arguments,0))},o.max=function(){return Yt("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=f,o.unix=function(e){return Lt(1e3*e)},o.months=function(e,t){return mn(e,t,"months")},o.isDate=d,o.locale=ct,o.invalid=g,o.duration=Ut,o.isMoment=w,o.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},o.parseZone=function(){return Lt.apply(null,arguments).parseZone()},o.localeData=ht,o.isDuration=Ot,o.monthsShort=function(e,t){return mn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},o.defineLocale=ut,o.updateLocale=function(e,t){if(null!=t){var n,i,o=rt;null!=(i=dt(e))&&(o=i._config),(n=new Y(t=D(o,t))).parentLocale=at[e],at[e]=n,ct(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},o.locales=function(){return C(at)},o.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},o.normalizeUnits=O,o.relativeTimeRounding=function(e){return void 0===e?jn:"function"==typeof e&&(jn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Fn[e]&&(void 0===t?Fn[e]:(Fn[e]=t,"s"===e&&(Fn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=un,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(60)(e))},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,i;function o(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function s(e,t){var n,i=[];for(n=0;n>>0,i=0;i0)for(n in m)p(o=t[i=m[n]])||(e[i]=o);return e}var y=!1;function v(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===y&&(y=!0,o.updateOffset(this),y=!1)}function A(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e):Math.floor(e)}function w(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function _(e,t,n){var i,o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(i=0;i0;){if(i=O(o.slice(0,t).join("-")))return i;if(n&&n.length>=t&&_(o,n,!0)>=t-1)break;t--}r++}return null}(e)}var j={};function F(e,t){var n=e.toLowerCase();j[n]=j[n+"s"]=j[t]=e}function N(e){return"string"==typeof e?j[e]||j[e.toLowerCase()]:void 0}function z(e){var t,n,i={};for(n in e)l(e,n)&&(t=N(n))&&(i[t]=e[n]);return i}function W(e,t){return function(n){return null!=n?(U(this,e,n),o.updateOffset(this,t),this):$(this,e)}}function $(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function U(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function Q(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(E(this[e=N(e)]))return this[e](t);return this}function G(e,t,n){var i=""+Math.abs(e),o=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var V=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,J=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,K={},X={};function q(e,t,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),e&&(X[e]=o),t&&(X[t[0]]=function(){return G(o.apply(this,arguments),t[1],t[2])}),n&&(X[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function Z(e,t){return e.isValid()?(t=ee(t,e.localeData()),K[t]=K[t]||function(e){var t,n,i,o=e.match(V);for(t=0,n=o.length;t=0&&J.test(e);)e=e.replace(J,i),J.lastIndex=0,n-=1;return e}var te=/\d/,ne=/\d\d/,ie=/\d{3}/,oe=/\d{4}/,re=/[+-]?\d{6}/,ae=/\d\d?/,se=/\d\d\d\d?/,le=/\d\d\d\d\d\d?/,de=/\d{1,3}/,ce=/\d{1,4}/,ue=/[+-]?\d{1,6}/,he=/\d+/,fe=/[+-]?\d+/,pe=/Z|[+-]\d\d:?\d\d/gi,me=/Z|[+-]\d\d(?::?\d\d)?/gi,ge=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ye={};function ve(e,t,n){ye[e]=E(t)?t:function(e,i){return e&&n?n:t}}function Ae(e,t){return l(ye,e)?ye[e](t._strict,t._locale):new RegExp(be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,o){return t||n||i||o})))}function be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var we={};function _e(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(i=function(e,n){n[t]=w(e)}),n=0;n11?Ce:n[Ee]<1||n[Ee]>Oe(n[Se],n[Ce])?Ee:n[Le]<0||n[Le]>24||24===n[Le]&&(0!==n[Te]||0!==n[De]||0!==n[Ye])?Le:n[Te]<0||n[Te]>59?Te:n[De]<0||n[De]>59?De:n[Ye]<0||n[Ye]>999?Ye:-1,u(e)._overflowDayOfYear&&(tEe)&&(t=Ee),u(e)._overflowWeeks&&-1===t&&(t=Re),u(e)._overflowWeekday&&-1===t&&(t=Be),u(e).overflow=t),e}var Ue=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Qe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Ge=/Z|[+-]\d\d(?::?\d\d)?/,Ve=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Je=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ke=/^\/?Date\((\-?\d+)/i;function Xe(e){var t,n,i,o,r,a,s=e._i,l=Ue.exec(s)||Qe.exec(s);if(l){for(u(e).iso=!0,t=0,n=Ve.length;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ze(e){return et(e)?366:365}function et(e){return e%4==0&&e%100!=0||e%400==0}o.createFromInputFallback=x("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),q("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),q(0,["YY",2],0,function(){return this.year()%100}),q(0,["YYYY",4],0,"year"),q(0,["YYYYY",5],0,"year"),q(0,["YYYYYY",6,!0],0,"year"),F("year","y"),ve("Y",fe),ve("YY",ae,ne),ve("YYYY",ce,oe),ve("YYYYY",ue,re),ve("YYYYYY",ue,re),_e(["YYYYY","YYYYYY"],Se),_e("YYYY",function(e,t){t[Se]=2===e.length?o.parseTwoDigitYear(e):w(e)}),_e("YY",function(e,t){t[Se]=o.parseTwoDigitYear(e)}),_e("Y",function(e,t){t[Se]=parseInt(e,10)}),o.parseTwoDigitYear=function(e){return w(e)+(w(e)>68?1900:2e3)};var tt=W("FullYear",!0);function nt(e,t,n){var i=7+t-n;return-((7+qe(e,0,i).getUTCDay()-t)%7)+i-1}function it(e,t,n,i,o){var r,a,s=1+7*(t-1)+(7+n-i)%7+nt(e,i,o);return s<=0?a=Ze(r=e-1)+s:s>Ze(e)?(r=e+1,a=s-Ze(e)):(r=e,a=s),{year:r,dayOfYear:a}}function ot(e,t,n){var i,o,r=nt(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?i=a+rt(o=e.year()-1,t,n):a>rt(e.year(),t,n)?(i=a-rt(e.year(),t,n),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function rt(e,t,n){var i=nt(e,t,n),o=nt(e+1,t,n);return(Ze(e)-i+o)/7}function at(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var t,n,i,r,a=[];if(!e._d){for(i=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[Ee]&&null==e._a[Ce]&&function(e){var t,n,i,o,r,a,s,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,a=4,n=at(t.GG,e._a[Se],ot(ut(),1,4).year),i=at(t.W,1),((o=at(t.E,1))<1||o>7)&&(l=!0)):(r=e._locale._week.dow,a=e._locale._week.doy,n=at(t.gg,e._a[Se],ot(ut(),r,a).year),i=at(t.w,1),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+r,(t.e<0||t.e>6)&&(l=!0)):o=r),i<1||i>rt(n,r,a)?u(e)._overflowWeeks=!0:null!=l?u(e)._overflowWeekday=!0:(s=it(n,i,o,r,a),e._a[Se]=s.year,e._dayOfYear=s.dayOfYear)}(e),e._dayOfYear&&(r=at(e._a[Se],i[Se]),e._dayOfYear>Ze(r)&&(u(e)._overflowDayOfYear=!0),n=qe(r,0,e._dayOfYear),e._a[Ce]=n.getUTCMonth(),e._a[Ee]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Le]&&0===e._a[Te]&&0===e._a[De]&&0===e._a[Ye]&&(e._nextDay=!0,e._a[Le]=0),e._d=(e._useUTC?qe:function(e,t,n,i,o,r,a){var s=new Date(e,t,n,i,o,r,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,a),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Le]=24)}}function lt(e){if(e._f!==o.ISO_8601){e._a=[],u(e).empty=!0;var t,n,i,r,a,s=""+e._i,l=s.length,d=0;for(i=ee(e._f,e._locale).match(V)||[],t=0;t0&&u(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),d+=n.length),X[r]?(n?u(e).empty=!1:u(e).unusedTokens.push(r),xe(r,n,e)):e._strict&&!n&&u(e).unusedTokens.push(r);u(e).charsLeftOver=l-d,s.length>0&&u(e).unusedInput.push(s),!0===u(e).bigHour&&e._a[Le]<=12&&e._a[Le]>0&&(u(e).bigHour=void 0),u(e).parsedDateParts=e._a.slice(0),u(e).meridiem=e._meridiem,e._a[Le]=(c=e._locale,h=e._a[Le],null==(f=e._meridiem)?h:null!=c.meridiemHour?c.meridiemHour(h,f):null!=c.isPM?((p=c.isPM(f))&&h<12&&(h+=12),p||12!==h||(h=0),h):h),st(e),$e(e)}else Xe(e);var c,h,f,p}function dt(e){var t=e._i,n=e._f;return e._locale=e._locale||I(e._l),null===t||void 0===n&&""===t?f({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),A(t)?new v($e(t)):(r(n)?function(e){var t,n,i,o,r;if(0===e._f.length)return u(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:f()});function pt(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return ut();for(n=t[0],i=1;i(r=rt(e,i,o))&&(t=r),function(e,t,n,i,o){var r=it(e,t,n,i,o),a=qe(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,i,o))}q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ht("gggg","weekYear"),Ht("ggggg","weekYear"),Ht("GGGG","isoWeekYear"),Ht("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),ve("G",fe),ve("g",fe),ve("GG",ae,ne),ve("gg",ae,ne),ve("GGGG",ce,oe),ve("gggg",ce,oe),ve("GGGGG",ue,re),ve("ggggg",ue,re),Me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=w(e)}),Me(["gg","GG"],function(e,t,n,i){t[i]=o.parseTwoDigitYear(e)}),q("Q",0,"Qo","quarter"),F("quarter","Q"),ve("Q",te),_e("Q",function(e,t){t[Ce]=3*(w(e)-1)}),q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),ve("w",ae),ve("ww",ae,ne),ve("W",ae),ve("WW",ae,ne),Me(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=w(e)}),q("D",["DD",2],"Do","date"),F("date","D"),ve("D",ae),ve("DD",ae,ne),ve("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),_e(["D","DD"],Ee),_e("Do",function(e,t){t[Ee]=w(e.match(ae)[0])});var It=W("Date",!0);q("d",0,"do","day"),q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),ve("d",ae),ve("e",ae),ve("E",ae),ve("dd",function(e,t){return t.weekdaysMinRegex(e)}),ve("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ve("dddd",function(e,t){return t.weekdaysRegex(e)}),Me(["dd","ddd","dddd"],function(e,t,n,i){var o=n._locale.weekdaysParse(e,i,n._strict);null!=o?t.d=o:u(n).invalidWeekday=e}),Me(["d","e","E"],function(e,t,n,i){t[i]=w(e)});var jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ft="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zt=ge,Wt=ge,$t=ge;function Ut(){function e(e,t){return t.length-e.length}var t,n,i,o,r,a=[],s=[],l=[],d=[];for(t=0;t<7;t++)n=c([2e3,1]).day(t),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(i),s.push(o),l.push(r),d.push(i),d.push(o),d.push(r);for(a.sort(e),s.sort(e),l.sort(e),d.sort(e),t=0;t<7;t++)s[t]=be(s[t]),l[t]=be(l[t]),d[t]=be(d[t]);this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Gt(e,t){q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Vt(e,t){return t._meridiemParse}q("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),ve("DDD",de),ve("DDDD",ie),_e(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Qt),q("k",["kk",2],0,function(){return this.hours()||24}),q("hmm",0,0,function(){return""+Qt.apply(this)+G(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Qt.apply(this)+G(this.minutes(),2)+G(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+G(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+G(this.minutes(),2)+G(this.seconds(),2)}),Gt("a",!0),Gt("A",!1),F("hour","h"),ve("a",Vt),ve("A",Vt),ve("H",ae),ve("h",ae),ve("HH",ae,ne),ve("hh",ae,ne),ve("hmm",se),ve("hmmss",le),ve("Hmm",se),ve("Hmmss",le),_e(["H","HH"],Le),_e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_e(["h","hh"],function(e,t,n){t[Le]=w(e),u(n).bigHour=!0}),_e("hmm",function(e,t,n){var i=e.length-2;t[Le]=w(e.substr(0,i)),t[Te]=w(e.substr(i)),u(n).bigHour=!0}),_e("hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[Le]=w(e.substr(0,i)),t[Te]=w(e.substr(i,2)),t[De]=w(e.substr(o)),u(n).bigHour=!0}),_e("Hmm",function(e,t,n){var i=e.length-2;t[Le]=w(e.substr(0,i)),t[Te]=w(e.substr(i))}),_e("Hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[Le]=w(e.substr(0,i)),t[Te]=w(e.substr(i,2)),t[De]=w(e.substr(o))});var Jt=W("Hours",!0);q("m",["mm",2],0,"minute"),F("minute","m"),ve("m",ae),ve("mm",ae,ne),_e(["m","mm"],Te);var Kt=W("Minutes",!1);q("s",["ss",2],0,"second"),F("second","s"),ve("s",ae),ve("ss",ae,ne),_e(["s","ss"],De);var Xt,qt=W("Seconds",!1);for(q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),F("millisecond","ms"),ve("S",de,te),ve("SS",de,ne),ve("SSS",de,ie),Xt="SSSS";Xt.length<=9;Xt+="S")ve(Xt,he);function Zt(e,t){t[Ye]=w(1e3*("0."+e))}for(Xt="S";Xt.length<=9;Xt+="S")_e(Xt,Zt);var en=W("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var tn=v.prototype;tn.add=Dt,tn.calendar=function(e,t){var n=e||ut(),i=bt(n,this).startOf("day"),o=this.diff(i,"days",!0),r=o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse",a=t&&(E(t[r])?t[r]():t[r]);return this.format(a||this.localeData().calendar(r,this,ut(n)))},tn.clone=function(){return new v(this)},tn.diff=function(e,t,n){var i,o,r,a,s,l,d,c,u;return this.isValid()&&(i=bt(e,this)).isValid()?(o=6e4*(i.utcOffset()-this.utcOffset()),"year"===(t=N(t))||"month"===t||"quarter"===t?(s=this,c=12*((l=i).year()-s.year())+(l.month()-s.month()),l-(u=s.clone().add(c,"months"))<0?d=(l-u)/(u-s.clone().add(c-1,"months")):d=(l-u)/(s.clone().add(c+1,"months")-u),a=-(c+d)||0,"quarter"===t?a/=3:"year"===t&&(a/=12)):(r=this-i,a="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-o)/864e5:"week"===t?(r-o)/6048e5:r),n?a:b(a)):NaN},tn.endOf=function(e){return void 0===(e=N(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},tn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=Z(this,e);return this.localeData().postformat(t)},tn.from=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||ut(e).isValid())?kt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tn.fromNow=function(e){return this.from(ut(),e)},tn.to=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||ut(e).isValid())?kt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tn.toNow=function(e){return this.to(ut(),e)},tn.get=Q,tn.invalidAt=function(){return u(this).overflow},tn.isAfter=function(e,t){var n=A(e)?e:ut(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(p(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tn.isDSTShifted=function(){if(!p(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=dt(e))._a){var t=e._isUTC?c(e._a):ut(e._a);this._isDSTShifted=this.isValid()&&_(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted},tn.isLocal=function(){return!!this.isValid()&&!this._isUTC},tn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tn.isUtc=_t,tn.isUTC=_t,tn.zoneAbbr=function(){return this._isUTC?"UTC":""},tn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tn.dates=x("dates accessor is deprecated. Use date instead.",It),tn.months=x("months accessor is deprecated. Use month instead",Fe),tn.years=x("years accessor is deprecated. Use year instead",tt),tn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()});var nn=tn;function on(e){return e}var rn=D.prototype;function an(e,t,n,i){var o=I(),r=c().set(i,t);return o[n](r,e)}function sn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return an(e,t,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=an(e,i,n,"month");return o}function ln(e,t,n,i){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var o,r=I(),a=e?r._week.dow:0;if(null!=n)return an(t,(n+a)%7,i,"day");var s=[];for(o=0;o<7;o++)s[o]=an(t,(o+a)%7,i,"day");return s}rn._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},rn.calendar=function(e,t,n){var i=this._calendar[e];return E(i)?i.call(t,n):i},rn._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},rn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},rn._invalidDate="Invalid date",rn.invalidDate=function(){return this._invalidDate},rn._ordinal="%d",rn.ordinal=function(e){return this._ordinal.replace("%d",e)},rn._ordinalParse=/\d{1,2}/,rn.preparse=on,rn.postformat=on,rn._relativeTime={future:"in %s",past:"%s ago",s:"a few 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"},rn.relativeTime=function(e,t,n,i){var o=this._relativeTime[n];return E(o)?o(e,t,n,i):o.replace(/%d/i,e)},rn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)},rn.set=function(e){var t,n;for(n in e)E(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},rn.months=function(e,t){return r(this._months)?this._months[e.month()]:this._months[He.test(t)?"format":"standalone"][e.month()]},rn._months=Pe,rn.monthsShort=function(e,t){return r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[He.test(t)?"format":"standalone"][e.month()]},rn._monthsShort=Ie,rn.monthsParse=function(e,t,n){var i,o,r;if(this._monthsParseExact)return function(e,t,n){var i,o,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=c([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=ke.call(this._shortMonthsParse,a))?o:null:-1!==(o=ke.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=ke.call(this._shortMonthsParse,a))?o:-1!==(o=ke.call(this._longMonthsParse,a))?o:null:-1!==(o=ke.call(this._longMonthsParse,a))?o:-1!==(o=ke.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=c([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},rn._monthsRegex=ze,rn.monthsRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex},rn._monthsShortRegex=Ne,rn.monthsShortRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex},rn.week=function(e){return ot(e,this._week.dow,this._week.doy).week},rn._week={dow:0,doy:6},rn.firstDayOfYear=function(){return this._week.doy},rn.firstDayOfWeek=function(){return this._week.dow},rn.weekdays=function(e,t){return r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]},rn._weekdays=jt,rn.weekdaysMin=function(e){return this._weekdaysMin[e.day()]},rn._weekdaysMin=Nt,rn.weekdaysShort=function(e){return this._weekdaysShort[e.day()]},rn._weekdaysShort=Ft,rn.weekdaysParse=function(e,t,n){var i,o,r;if(this._weekdaysParseExact)return function(e,t,n){var i,o,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=c([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ke.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ke.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=ke.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=ke.call(this._weekdaysParse,a))?o:-1!==(o=ke.call(this._shortWeekdaysParse,a))?o:-1!==(o=ke.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ke.call(this._shortWeekdaysParse,a))?o:-1!==(o=ke.call(this._weekdaysParse,a))?o:-1!==(o=ke.call(this._minWeekdaysParse,a))?o:null:-1!==(o=ke.call(this._minWeekdaysParse,a))?o:-1!==(o=ke.call(this._weekdaysParse,a))?o:-1!==(o=ke.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=c([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},rn._weekdaysRegex=zt,rn.weekdaysRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ut.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex},rn._weekdaysShortRegex=Wt,rn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ut.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex},rn._weekdaysMinRegex=$t,rn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ut.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex},rn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},rn._meridiemParse=/[ap]\.?m?\.?/i,rn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},H("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=x("moment.lang is deprecated. Use moment.locale instead.",H),o.langData=x("moment.langData is deprecated. Use moment.localeData instead.",I);var dn=Math.abs;function cn(e,t,n,i){var o=kt(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function un(e){return e<0?Math.floor(e):Math.ceil(e)}function hn(e){return 4800*e/146097}function fn(e){return 146097*e/4800}function pn(e){return function(){return this.as(e)}}var mn=pn("ms"),gn=pn("s"),yn=pn("m"),vn=pn("h"),An=pn("d"),bn=pn("w"),wn=pn("M"),_n=pn("y");function Mn(e){return function(){return this._data[e]}}var xn=Mn("milliseconds"),kn=Mn("seconds"),Sn=Mn("minutes"),Cn=Mn("hours"),En=Mn("days"),Ln=Mn("months"),Tn=Mn("years"),Dn=Math.round,Yn={s:45,m:45,h:22,d:26,M:11},Rn=Math.abs;function Bn(){var e,t,n=Rn(this._milliseconds)/1e3,i=Rn(this._days),o=Rn(this._months);t=b((e=b(n/60))/60),n%=60,e%=60;var r=b(o/12),a=o%=12,s=i,l=t,d=e,c=n,u=this.asSeconds();return u?(u<0?"-":"")+"P"+(r?r+"Y":"")+(a?a+"M":"")+(s?s+"D":"")+(l||d||c?"T":"")+(l?l+"H":"")+(d?d+"M":"")+(c?c+"S":""):"P0D"}var On=mt.prototype;return On.abs=function(){var e=this._data;return this._milliseconds=dn(this._milliseconds),this._days=dn(this._days),this._months=dn(this._months),e.milliseconds=dn(e.milliseconds),e.seconds=dn(e.seconds),e.minutes=dn(e.minutes),e.hours=dn(e.hours),e.months=dn(e.months),e.years=dn(e.years),this},On.add=function(e,t){return cn(this,e,t,1)},On.subtract=function(e,t){return cn(this,e,t,-1)},On.as=function(e){var t,n,i=this._milliseconds;if("month"===(e=N(e))||"year"===e)return t=this._days+i/864e5,n=this._months+hn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(fn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},On.asMilliseconds=mn,On.asSeconds=gn,On.asMinutes=yn,On.asHours=vn,On.asDays=An,On.asWeeks=bn,On.asMonths=wn,On.asYears=_n,On.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12)},On._bubble=function(){var e,t,n,i,o,r=this._milliseconds,a=this._days,s=this._months,l=this._data;return r>=0&&a>=0&&s>=0||r<=0&&a<=0&&s<=0||(r+=864e5*un(fn(s)+a),a=0,s=0),l.milliseconds=r%1e3,e=b(r/1e3),l.seconds=e%60,t=b(e/60),l.minutes=t%60,n=b(t/60),l.hours=n%24,s+=o=b(hn(a+=b(n/24))),a-=un(fn(o)),i=b(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},On.get=function(e){return this[(e=N(e))+"s"]()},On.milliseconds=xn,On.seconds=kn,On.minutes=Sn,On.hours=Cn,On.days=En,On.weeks=function(){return b(this.days()/7)},On.months=Ln,On.years=Tn,On.humanize=function(e){var t=this.localeData(),n=function(e,t,n){var i=kt(e).abs(),o=Dn(i.as("s")),r=Dn(i.as("m")),a=Dn(i.as("h")),s=Dn(i.as("d")),l=Dn(i.as("M")),d=Dn(i.as("y")),c=o0,c[4]=n,function(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},On.toISOString=Bn,On.toString=Bn,On.toJSON=Bn,On.locale=Rt,On.localeData=Ot,On.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Bn),On.lang=Bt,q("X",0,0,"unix"),q("x",0,0,"valueOf"),ve("x",fe),ve("X",/[+-]?\d+(\.\d{1,3})?/),_e("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),_e("x",function(e,t,n){n._d=new Date(w(e))}),o.version="2.13.0",t=ut,o.fn=nn,o.min=function(){return pt("isBefore",[].slice.call(arguments,0))},o.max=function(){return pt("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=c,o.unix=function(e){return ut(1e3*e)},o.months=function(e,t){return sn(e,t,"months")},o.isDate=a,o.locale=H,o.invalid=f,o.duration=kt,o.isMoment=A,o.weekdays=function(e,t,n){return ln(e,t,n,"weekdays")},o.parseZone=function(){return ut.apply(null,arguments).parseZone()},o.localeData=I,o.isDuration=gt,o.monthsShort=function(e,t){return sn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return ln(e,t,n,"weekdaysMin")},o.defineLocale=P,o.updateLocale=function(e,t){var n;return null!=t?(null!=R[e]&&(t=T(R[e]._config,t)),(n=new D(t)).parentLocale=R[e],R[e]=n,H(e)):null!=R[e]&&(null!=R[e].parentLocale?R[e]=R[e].parentLocale:null!=R[e]&&delete R[e]),R[e]},o.locales=function(){return k(R)},o.weekdaysShort=function(e,t,n){return ln(e,t,n,"weekdaysShort")},o.normalizeUnits=N,o.relativeTimeThreshold=function(e,t){return void 0!==Yn[e]&&(void 0===t?Yn[e]:(Yn[e]=t,!0))},o.prototype=nn,o}()}).call(this,n(60)(e))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";e.exports=n(45),e.exports.easing=n(547),e.exports.canvas=n(546),e.exports.options=n(545)},function(e,t,n){var i;i=function(e,t,n,i){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=209)}([function(e,t,n){"use strict";t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.getParent=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,i=null;null!=e;){if(n===t){i=e;break}e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e=e.host:(n++,e=e.parentNode)}return i},t.closest=d,t.closestDown=function(e,t,n){for(var i=[];e&&(e=d(e,t,n))&&(!n||n.contains(e));)i.push(e),e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode;var o=i.length;return o?i[o-1]:null},t.isChildOf=function(e,t){var n=e.parentNode,i=[];for("string"==typeof t?i=Array.prototype.slice.call(document.querySelectorAll(t),0):i.push(t);null!=n;){if(i.indexOf(n)>-1)return!0;n=n.parentNode}return!1},t.isChildOfWebComponentTable=function(e){var t,n="hot-table",i=!1;function o(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===n.toUpperCase()}for(t=c(e);null!=t;){if(o(t)){i=!0;break}if(t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(i=o(t.host))break;t=t.host}t=t.parentNode}return i},t.polymerWrap=c,t.polymerUnwrap=u,t.index=function(e){var t=0;if(e.previousSibling)for(;e=e.previousSibling;)++t;return t},t.overlayContainsElement=function(e,t){var n=document.querySelector(".ht_clone_"+e);return n?n.contains(t):null},t.hasClass=function(e,t){return i(e,t)},t.addClass=function(e,t){return o(e,t)},t.removeClass=function(e,t){return r(e,t)},t.removeTextNodes=function e(t,n){if(3===t.nodeType)n.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var i=t.childNodes,o=i.length-1;o>=0;o--)e(i[o],t)},t.empty=m,t.fastInnerHTML=function(e,t){y.test(t)?e.innerHTML=t:A(e,t)},t.fastInnerText=A,t.isVisible=function e(t){for(var n=t;u(n)!==document.documentElement;){if(null===n)return!1;if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(n.host){if(n.host.impl)return e(n.host.impl);if(n.host)return e(n.host);throw new Error("Lost in Web Components world")}return!1}if("none"===n.style.display)return!1;n=n.parentNode}return!0},t.offset=function(e){var t,n,i,o,r;if(o=document.documentElement,(0,l.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return{top:(r=e.getBoundingClientRect()).top+(window.pageYOffset||o.scrollTop)-(o.clientTop||0),left:r.left+(window.pageXOffset||o.scrollLeft)-(o.clientLeft||0)};for(t=e.offsetLeft,n=e.offsetTop,i=e;(e=e.offsetParent)&&e!==document.body;)t+=e.offsetLeft,n+=e.offsetTop,i=e;return i&&"fixed"===i.style.position&&(t+=window.pageXOffset||o.scrollLeft,n+=window.pageYOffset||o.scrollTop),{left:t,top:n}},t.getWindowScrollTop=b,t.getWindowScrollLeft=w,t.getScrollTop=function(e){return e===window?b():e.scrollTop},t.getScrollLeft=function(e){return e===window?w():e.scrollLeft},t.getScrollableElement=function(e){for(var t,n,i,o=e.parentNode,r=["auto","scroll"],a="",s="",l="",d="";o&&o.style&&document.body!==o;){if(t=o.style.overflow,n=o.style.overflowX,i=o.style.overflowY,"scroll"==t||"scroll"==n||"scroll"==i)return o;if(window.getComputedStyle&&(s=(a=window.getComputedStyle(o)).getPropertyValue("overflow"),l=a.getPropertyValue("overflow-y"),d=a.getPropertyValue("overflow-x"),"scroll"===s||"scroll"===d||"scroll"===l))return o;if(o.clientHeight<=o.scrollHeight&&(-1!==r.indexOf(i)||-1!==r.indexOf(t)||-1!==r.indexOf(s)||-1!==r.indexOf(l)))return o;if(o.clientWidth<=o.scrollWidth&&(-1!==r.indexOf(n)||-1!==r.indexOf(t)||-1!==r.indexOf(s)||-1!==r.indexOf(d)))return o;o=o.parentNode}return window},t.getTrimmingContainer=function(e){for(var t=e.parentNode;t&&t.style&&document.body!==t;){if("visible"!==t.style.overflow&&""!==t.style.overflow)return t;if(window.getComputedStyle){var n=window.getComputedStyle(t);if("visible"!==n.getPropertyValue("overflow")&&""!==n.getPropertyValue("overflow"))return t}t=t.parentNode}return window},t.getStyle=function(e,t){if(e){if(e===window)return"width"===t?window.innerWidth+"px":"height"===t?window.innerHeight+"px":void 0;var n,i=e.style[t];return""!==i&&void 0!==i?i:""!==(n=_(e))[t]&&void 0!==n[t]?n[t]:void 0}},t.getComputedStyle=_,t.outerWidth=function(e){return e.offsetWidth},t.outerHeight=function(e){return(0,l.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.addEvent=function(e,t,n){window.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEvent=function(e,t,n){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;if(document.selection){e.focus();var t=document.selection.createRange();if(null==t)return 0;var n=e.createTextRange(),i=n.duplicate();return n.moveToBookmark(t.getBookmark()),i.setEndPoint("EndToStart",n),i.text.length}return 0},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;if(document.selection){var t=document.selection.createRange();return null==t?0:e.createTextRange().text.indexOf(t.text)+t.text.length}return 0},t.getSelectionText=function(){var e="";return window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e},t.setCaretPosition=function(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(r){var i=e.parentNode,o=i.style.display;i.style.display="block",e.setSelectionRange(t,n),i.style.display=o}}else if(e.createTextRange){var r=e.createTextRange();r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r.select()}},t.getScrollbarWidth=function(){return void 0===g&&(g=function(){var e=document.createElement("div");e.style.height="200px",e.style.width="100%";var t=document.createElement("div");t.style.boxSizing="content-box",t.style.height="150px",t.style.left="0px",t.style.overflow="hidden",t.style.position="absolute",t.style.top="0px",t.style.width="200px",t.style.visibility="hidden",t.appendChild(e),(document.body||document.documentElement).appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var i=e.offsetWidth;return n==i&&(i=t.clientWidth),(document.body||document.documentElement).removeChild(t),n-i}()),g},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.setOverlayPosition=function(e,t,n){(0,s.isIE8)()||(0,s.isIE9)()?(e.style.top=n,e.style.left=t):(0,s.isSafari)()?e.style["-webkit-transform"]="translate3d("+t+","+n+",0)":e.style.transform="translate3d("+t+","+n+",0)"},t.getCssTransform=function(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},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")},t.isInput=M,t.isOutsideInput=function(e){return M(e)&&-1==e.className.indexOf("handsontableInput")&&-1==e.className.indexOf("copyPaste")};var i,o,r,a,s=n(25),l=n(34);function d(e,t,n){for(;null!=e&&e!==n;){if(e.nodeType===Node.ELEMENT_NODE&&(t.indexOf(e.nodeName)>-1||t.indexOf(e)>-1))return e;e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode}return null}function c(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function u(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function h(e){var t=0,n=[];if(!e||!e.length)return n;for(;e[t];)n.push(e[t]),t++;return n}if(document.documentElement.classList){var f=((a=document.createElement("div")).classList.add("test","test2"),a.classList.contains("test2"));i=function(e,t){return""!==t&&e.classList.contains(t)},o=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=h(t),f)e.classList.add.apply(e.classList,t);else for(;t&&t[n];)e.classList.add(t[n]),n++},r=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=h(t),f)e.classList.remove.apply(e.classList,t);else for(;t&&t[n];)e.classList.remove(t[n]),n++}}else{var p=function(e){return new RegExp("(\\s|^)"+e+"(\\s|$)")};i=function(e,t){return!!e.className.match(p(t))},o=function(e,t){var n=0,i=e.className;if("string"==typeof t&&(t=t.split(" ")),""===i)i=t.join(" ");else for(;t&&t[n];)p(t[n]).test(i)||(i+=" "+t[n]),n++;e.className=i},r=function(e,t){var n=0,i=e.className;for("string"==typeof t&&(t=t.split(" "));t&&t[n];)i=i.replace(p(t[n])," ").trim(),n++;e.className!==i&&(e.className=i)}}function m(e){for(var t;t=e.lastChild;)e.removeChild(t)}var g,y=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/,v=!!document.createTextNode("test").textContent;function A(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?v?n.textContent=t:n.data=t:(m(e),e.appendChild(document.createTextNode(t)))}function b(){var e=window.scrollY;return void 0===e&&(e=document.documentElement.scrollTop),e}function w(){var e=window.scrollX;return void 0===e&&(e=document.documentElement.scrollLeft),e}function _(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}function M(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}},function(e,t,n){"use strict";function i(e,t,n,i){var o=-1,r=e.length;for(i&&r&&(n=e[++o]);++ot?e:t},Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return i(e,function(e,t){return e1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:"value",i="_"+n,o=(r(t={_touched:!1},i,e),r(t,"isTouched",function(){return this._touched}),t);return Object.defineProperty(o,n,{get:function(){return this[i]},set:function(e){this._touched=!0,this[i]=e},enumerable:!0,configurable:!0}),o},t.hasOwnProperty=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var o=n(1);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return"object"===(void 0===e?"undefined":i(e))?JSON.parse(JSON.stringify(e)):e}function s(e){return"[object Object]"==Object.prototype.toString.call(e)}function l(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}},function(e,t,n){var i=n(13),o=n(44),r=n(32),a=n(33),s=n(29),l=function(e,t,n){var d,c,u,h,f=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,y=e&l.B,v=p?i:m?i[t]||(i[t]={}):(i[t]||{}).prototype,A=p?o:o[t]||(o[t]={}),b=A.prototype||(A.prototype={});for(d in p&&(n=t),n)u=((c=!f&&v&&void 0!==v[d])?v:n)[d],h=y&&c?s(u,i):g&&"function"==typeof u?s(Function.call,u):u,v&&a(v,d,u,e&l.U),A[d]!=u&&r(A,d,h),g&&b[d]!=u&&(b[d]=u)};i.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return i(e,[{key:"addEventListener",value:function(e,t,n){var i=this,o=this.context;function r(e){e=d(o,e),n.call(this,e)}return this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:r}),window.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r),s++,function(){i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var i=this.context.eventListeners.length,o=void 0;i--;)if((o=this.context.eventListeners[i]).event==t&&o.element==e){if(n&&n!=o.callback)continue;this.context.eventListeners.splice(i,1),o.element.removeEventListener?o.element.removeEventListener(o.event,o.callbackProxy,!1):o.element.detachEvent("on"+o.event,o.callbackProxy),s--}}},{key:"clearEvents",value:function(){if(this.context)for(var e=this.context.eventListeners.length;e--;){var t=this.context.eventListeners[e];t&&this.removeEventListener(t.element,t.event,t.callback)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"fireEvent",value:function(e,t){var n,i={bubbles:!0,cancelable:"mousemove"!==t,view:window,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};document.createEvent?(n=document.createEvent("MouseEvents")).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||document.body.parentNode):n=document.createEventObject(),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent("on"+t,n)}}]),e}();function d(e,t){var n=void 0,i=void 0,s=void 0,d=void 0,c=void 0,u=void 0;if(t.isTargetWebComponent=!1,t.realTarget=t.target,u=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){u.apply(this),(0,a.stopImmediatePropagation)(this)},!l.isHotTableEnv)return t;for(c=(t=(0,o.polymerWrap)(t)).path?t.path.length:0;c--;){if("HOT-TABLE"===t.path[c].nodeName)n=!0;else if(n&&t.path[c].shadowRoot){d=t.path[c];break}0!==c||d||(d=t.path[c])}return d||(d=t.target),t.isTargetWebComponent=!0,(0,r.isWebComponentSupportedNatively)()?t.realTarget=t.srcElement||t.toElement:(e instanceof Core||e instanceof Walkontable)&&(e instanceof Core?i=e.view?e.view.wt.wtTable.TABLE:null:e instanceof Walkontable&&(i=e.wtTable.TABLE.parentNode.parentNode),s=(0,o.closest)(t.target,["HOT-TABLE"],i),t.realTarget=s&&i.querySelector("HOT-TABLE")||t.target),Object.defineProperty(t,"target",{get:function(){return(0,o.polymerWrap)(d)},enumerable:!0,configurable:!0}),t}t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.getPluginName=t.getRegistredPluginNames=t.getPlugin=t.registerPlugin=void 0;var i,o=(i=n(8))&&i.__esModule?i:{default:i},r=n(2),a=n(27),s=new WeakMap;t.registerPlugin=function(e,t){e=(0,a.toUpperCaseFirst)(e),o.default.getSingleton().add("construct",function(){var n=void 0;s.has(this)||s.set(this,{}),(n=s.get(this))[e]||(n[e]=new t(this))}),o.default.getSingleton().add("afterDestroy",function(){if(s.has(this)){var e=s.get(this);(0,r.objectEach)(e,function(e){return e.destroy()}),s.delete(this)}})},t.getPlugin=function(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var n=(0,a.toUpperCaseFirst)(t);if(s.has(e)&&s.get(e)[n])return s.get(e)[n]},t.getRegistredPluginNames=function(e){return s.has(e)?Object.keys(s.get(e)):[]},t.getPluginName=function(e,t){var n=null;return s.has(e)&&(0,r.objectEach)(s.get(e),function(e,i){e===t&&(n=i)}),n}},function(e,t,n){"use strict";t.__esModule=!0;var i="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.isNumeric=function(e){var t=void 0===e?"undefined":i(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)},t.rangeEach=function(e,t,n){var i=-1;for("function"==typeof t?(n=t,t=e):i=e-1;++i<=t&&!1!==n(i););},t.rangeEachReverse=function(e,t,n){var i=e+1;for("function"==typeof t&&(n=t,t=0);--i>=t&&!1!==n(i););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),parseInt(e*t/100,10)}},function(e,t,n){"use strict";t.__esModule=!0,t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0},t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.stopPropagation=function(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.pageX=function(e){return e.pageX?e.pageX:e.clientX+(0,i.getWindowScrollLeft)()},t.pageY=function(e){return e.pageY?e.pageY:e.clientY+(0,i.getWindowScrollTop)()},t.isRightClick=function(e){return 2===e.button},t.isLeftClick=function(e){return 0===e.button};var i=n(0)},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(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,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))(0,o.arrayEach)(t,function(t){return n.add(e,t,i)});else{var r=this.getBucket(i);if(void 0===r[e]&&(this.register(e),r[e]=[]),t.skip=!1,-1===r[e].indexOf(t)){var a=!1;t.initialHook&&(0,o.arrayEach)(r[e],function(n,i){if(n.initialHook)return r[e][i]=t,a=!0,!1}),a||r[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?(0,o.arrayEach)(t,function(t){return n.once(e,t,i)}):(t.runOnce=!0,this.add(e,t,i))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.getBucket(n);return void 0!==i[e]&&i[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,i,o,r,a,s){var l=this.globalBucket[t],d=-1,c=l?l.length:0;if(c)for(;++d0&&void 0!==arguments[0]?arguments[0]:null;(0,r.objectEach)(this.getBucket(e),function(e,t,n){return n[t].length=0})}},{key:"register",value:function(e){this.isRegistered(e)||a.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&a.splice(a.indexOf(e),1)}},{key:"isRegistered",value:function(e){return a.indexOf(e)>=0}},{key:"getRegistered",value:function(){return a}}]),e}(),l=new s;t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.getRegisteredRenderers=t.getRegisteredRendererNames=t.hasRenderer=t.getRenderer=t.registerRenderer=void 0;var i=u(n(51)),o=u(n(260)),r=u(n(261)),a=u(n(262)),s=u(n(263)),l=u(n(264)),d=u(n(265)),c=u(n(266));function u(e){return e&&e.__esModule?e:{default:e}}var h=(0,i.default)("renderers"),f=h.register,p=h.getItem,m=h.hasItem,g=h.getNames,y=h.getValues;f("base",o.default),f("autocomplete",r.default),f("checkbox",a.default),f("html",s.default),f("numeric",l.default),f("password",d.default),f("text",c.default),t.registerRenderer=f,t.getRenderer=function(e){if("function"==typeof e)return e;if(!m(e))throw Error('No registered renderer found under "'+e+'" name');return p(e)},t.hasRenderer=m,t.getRegisteredRendererNames=g,t.getRegisteredRenderers=y},function(e,t,n){var i=n(82)("wks"),o=n(49),r=n(13).Symbol,a="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=a&&r[e]||(a?r:o)("Symbol."+e))}).store=i},function(e,t,n){"use strict";t.__esModule=!0,t.Viewport=t.TableRenderer=t.Table=t.Settings=t.Selection=t.Scroll=t.Overlays=t.Event=t.Core=t.default=t.Border=t.TopLeftCornerOverlay=t.TopOverlay=t.LeftOverlay=t.DebugOverlay=t.RowFilter=t.ColumnFilter=t.CellRange=t.CellCoords=t.ViewportRowsCalculator=t.ViewportColumnsCalculator=void 0,n(96),n(113),n(122),n(123),n(107),n(121),n(104),n(105),n(106),n(95),n(118),n(116),n(114),n(119),n(120),n(115),n(117),n(108),n(109),n(110),n(112),n(111),n(93),n(94),n(89),n(92),n(91),n(90),n(68),n(98),n(99),n(101),n(100),n(97),n(103),n(102),n(124),n(127),n(125),n(126),n(129),n(128),n(131),n(130);var i=M(n(135)),o=M(n(136)),r=M(n(42)),a=M(n(69)),s=M(n(139)),l=M(n(140)),d=M(n(185)),c=M(n(186)),u=M(n(187)),h=M(n(188)),f=M(n(134)),p=M(n(137)),m=M(n(138)),g=M(n(141)),y=M(n(142)),v=M(n(189)),A=M(n(143)),b=M(n(144)),w=M(n(145)),_=M(n(146));function M(e){return e&&e.__esModule?e:{default:e}}t.ViewportColumnsCalculator=i.default,t.ViewportRowsCalculator=o.default,t.CellCoords=r.default,t.CellRange=a.default,t.ColumnFilter=s.default,t.RowFilter=l.default,t.DebugOverlay=d.default,t.LeftOverlay=c.default,t.TopOverlay=u.default,t.TopLeftCornerOverlay=h.default,t.Border=f.default,t.default=p.default,t.Core=p.default,t.Event=m.default,t.Overlays=g.default,t.Scroll=y.default,t.Selection=v.default,t.Settings=A.default,t.Table=b.default,t.TableRenderer=w.default,t.Viewport=_.default},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n=0&&d.splice(d.indexOf(this.pluginName),1),d.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){l.get(this).hooks[e]=l.get(this).hooks[e]||[];var n=l.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),l.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;(0,r.arrayEach)(l.get(this).hooks[e]||[],function(n){t.hot.removeHook(e,n)})}},{key:"clearHooks",value:function(){var e=this,t=l.get(this).hooks;(0,o.objectEach)(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(){(0,r.arrayEach)(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(),(0,o.objectEach)(this,function(t,n){"hot"!==n&&"t"!==n&&(e[n]=null)}),delete this.t,delete this.hot}}]),e}();t.default=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";t.__esModule=!0,t.getRegisteredEditors=t.getRegisteredEditorNames=t.hasEditor=t.getEditorInstance=t.getEditor=t.registerEditor=void 0,t.RegisteredEditor=x,t._getEditorInstance=k;var i=g(n(51)),o=g(n(8)),r=g(n(36)),a=g(n(147)),s=g(n(202)),l=g(n(203)),d=g(n(204)),c=g(n(148)),u=g(n(205)),h=g(n(206)),f=g(n(207)),p=g(n(208)),m=g(n(43));function g(e){return e&&e.__esModule?e:{default:e}}var y=new WeakMap,v=(0,i.default)("editors"),A=v.register,b=v.getItem,w=v.hasItem,_=v.getNames,M=v.getValues;function x(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]},o.default.getSingleton().add("afterDestroy",function(){t={}})}function k(e,t){var n=void 0;if("function"==typeof e)y.get(e)||S(null,e),n=y.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=b(e)}if(!n)throw Error('No editor registered under name "'+e+'"');return n.getInstance(t)}function S(e,t){var n=new x(t);"string"==typeof e&&A(e,n),y.set(t,n)}S("base",r.default),S("autocomplete",a.default),S("checkbox",s.default),S("date",l.default),S("dropdown",d.default),S("handsontable",c.default),S("mobile",u.default),S("numeric",h.default),S("password",f.default),S("select",p.default),S("text",m.default),t.registerEditor=S,t.getEditor=function(e){if(!w(e))throw Error('No registered editor found under "'+e+'" name');return b(e).getConstructor()},t.getEditorInstance=k,t.hasEditor=w,t.getRegisteredEditorNames=_,t.getRegisteredEditors=M},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";t.__esModule=!0,t.KEY_CODES=void 0,t.isPrintableChar=function(e){return 32==e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},t.isMetaKey=function(e){return-1!==[o.ARROW_DOWN,o.ARROW_UP,o.ARROW_LEFT,o.ARROW_RIGHT,o.HOME,o.END,o.DELETE,o.BACKSPACE,o.F1,o.F2,o.F3,o.F4,o.F5,o.F6,o.F7,o.F8,o.F9,o.F10,o.F11,o.F12,o.TAB,o.PAGE_DOWN,o.PAGE_UP,o.ENTER,o.ESCAPE,o.SHIFT,o.CAPS_LOCK,o.ALT].indexOf(e)},t.isCtrlKey=function(e){return-1!==[o.CONTROL_LEFT,224,o.COMMAND_LEFT,o.COMMAND_RIGHT].indexOf(e)},t.isKey=function(e,t){var n=t.split("|"),r=!1;return(0,i.arrayEach)(n,function(t){if(e===o[t])return r=!0,!1}),r};var i=n(1),o=t.KEY_CODES={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL_LEFT:91,COMMAND_LEFT:17,COMMAND_RIGHT:93,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,X:88,C:67,V:86}},function(e,t,n){"use strict";t.__esModule=!0,t.normalizeSelection=function(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}},t.isSeparator=function(e){return(0,o.hasClass)(e,"htSeparator")},t.hasSubMenu=function(e){return(0,o.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,o.hasClass)(e,"htDisabled")},t.isSelectionDisabled=function(e){return(0,o.hasClass)(e,"htSelectionDisabled")},t.getValidSelection=function(e){var t=e.getSelected();return t?t[0]<0?null:t:null},t.prepareVerticalAlignClass=a,t.prepareHorizontalAlignClass=s,t.getAlignmentClasses=function(e,t){for(var n={},i=e.from.row;i<=e.to.row;i++)for(var o=e.from.col;o<=e.to.col;o++)n[i]||(n[i]=[]),n[i][o]=t(i,o);return n},t.align=function(e,t,n,i,o){if(e.from.row==e.to.row&&e.from.col==e.to.col)l(e.from.row,e.from.col,t,n,i,o);else for(var r=e.from.row;r<=e.to.row;r++)for(var a=e.from.col;a<=e.to.col;a++)l(r,a,t,n,i,o)},t.checkSelectionConsistency=function(e,t){var n=!1;return e&&e.forAll(function(e,i){if(t(e,i))return n=!0,!1}),n},t.markLabelAsSelected=function(e){return''+String.fromCharCode(10003)+""+e},t.isItemHidden=function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))},t.filterSeparators=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.KEY,n=e.slice(0);return function(e){var t=[];return(0,i.arrayEach)(e,function(e,n){n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}(n=function(e,t){var n=e.slice(0);return n.reverse(),(n=d(n,t)).reverse(),n}(n=d(n,t),t))};var i=n(1),o=n(0),r=n(70);function a(e,t){return-1!=e.indexOf(t)?e:(e=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ",""),e+=" "+t)}function s(e,t){return-1!=e.indexOf(t)?e:(e=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ",""),e+=" "+t)}function l(e,t,n,i,o,r){var l=o(e,t),d=i;l.className&&(d="vertical"===n?a(l.className,i):s(l.className,i)),r(e,t,"className",d)}function d(e,t){for(var n=e.slice(0);00?o(i(e),9007199254740991):0}},function(e,t,n){"use strict";t.__esModule=!0,t.isIE8=function(){return i},t.isIE9=function(){return o},t.isSafari=function(){return r},t.isChrome=function(){return a},t.isMobileBrowser=function(e){return e||(e=navigator.userAgent),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)};var i=!document.createTextNode("test").textContent,o=!!document.documentMode,r=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),a=/Chrome/.test(navigator.userAgent)&&/Google/.test(navigator.vendor)},function(e,t,n){"use strict";t.__esModule=!0,t.getRegisteredValidators=t.getRegisteredValidatorNames=t.hasValidator=t.getValidator=t.registerValidator=void 0;var i=l(n(51)),o=l(n(271)),r=l(n(272)),a=l(n(273)),s=l(n(274));function l(e){return e&&e.__esModule?e:{default:e}}var d=(0,i.default)("validators"),c=d.register,u=d.getItem,h=d.hasItem,f=d.getNames,p=d.getValues;c("autocomplete",o.default),c("date",r.default),c("numeric",a.default),c("time",s.default),t.registerValidator=c,t.getValidator=function(e){if("function"==typeof e)return e;if(!h(e))throw Error('No registered validator found under "'+e+'" name');return u(e)},t.hasValidator=h,t.getRegisteredValidatorNames=f,t.getRegisteredValidators=p},function(e,t,n){"use strict";t.__esModule=!0,t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},t.equalsIgnoreCase=function(){for(var e=[],t=arguments.length,n=Array(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return(""+e).replace(/(?:\\)?\[([^[\]]+)]/g,function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]})},t.stripTags=function(e){return(e+="").replace(o,"")};var i=n(20);n(6);var o=/<\/?\w+\/?>|<\w+[\s|/][^>]*>/gi},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n0&&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,i=t.style,o=e.parentNode.style;(0,a.arrayEach)([n,i,o],function(e){e.width="",e.height=""})}}},{key:"destroy",value:function(){new s.default(this.clone).destroy()}}]),e}();t.default=u},function(e,t,n){var i=n(71);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(19),o=n(40);e.exports=n(21)?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(13),o=n(32),r=n(22),a=n(49)("src"),s=Function.toString,l=(""+s).split("toString");n(44).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var d="function"==typeof n;d&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(d&&(r(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){"use strict";t.__esModule=!0;var i="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.requestAnimationFrame=function(e){return s.call(window,e)},t.cancelAnimationFrame=function(e){l.call(window,e)},t.isTouchSupported=function(){return"ontouchstart"in window},t.isWebComponentSupportedNatively=function(){var e=document.createElement("div");return!(!e.createShadowRoot||!e.createShadowRoot.toString().match(/\[native code\]/))},t.hasCaptionProblem=function(){return void 0===o&&function(){var e=document.createElement("TABLE");e.style.borderSpacing=0,e.style.borderWidth=0,e.style.padding=0;var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="t
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),o=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}(),o},t.getComparisonFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c||(c="object"===("undefined"==typeof Intl?"undefined":i(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return(""+e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1})};for(var o,r=0,a=["ms","moz","webkit","o"],s=window.requestAnimationFrame,l=window.cancelAnimationFrame,d=0;d1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,i=o(e,t),r=n;function a(){return r?(r--,e.apply(this,arguments)):i.apply(this,arguments)}return a.clearHits=function(){r=n},a},t.debounce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=null,i=void 0;return function(){var o=this,r=arguments;return n&&clearTimeout(n),n=setTimeout(function(){i=e.apply(o,r)},t),i}},t.pipe=function(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),i=1;i=t?e.apply(this,s):n(s)}}([])},t.curryRight=function(e){var t=e.length;return function n(i){return function(){for(var o=arguments.length,r=Array(o),a=0;a=t?e.apply(this,s):n(s)}}([])};var i=n(1);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,i={lastCallThrottled:!0},o=null;return function(){var r=this,a=arguments,s=Date.now(),l=!1;i.lastCallThrottled=!0,n||(n=s,l=!0);var d=t-(s-n);return l?(i.lastCallThrottled=!1,e.apply(this,a)):(o&&clearTimeout(o),o=setTimeout(function(){i.lastCallThrottled=!1,e.apply(r,a),n=0,o=void 0},d)),i}}},function(e,t,n){"use strict";t.__esModule=!0,t.EditorState=void 0;var i=n(11),o=n(20),r=t.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"};function a(e){this.instance=e,this.state=r.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}a.prototype._fireCallbacks=function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)},a.prototype.init=function(){},a.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},a.prototype.setValue=function(e){throw Error("Editor setValue() method unimplemented")},a.prototype.open=function(){throw Error("Editor open() method unimplemented")},a.prototype.close=function(){throw Error("Editor close() method unimplemented")},a.prototype.prepare=function(e,t,n,i,o,a){this.TD=i,this.row=e,this.col=t,this.prop=n,this.originalValue=o,this.cellProperties=a;var s=!document.activeElement||document.activeElement&&void 0===document.activeElement.nodeName;this.instance.view.isMouseDown()&&document.activeElement&&document.activeElement!==document.body&&!s?document.activeElement.blur():s&&document.body.focus(),this.state=r.VIRGIN},a.prototype.extend=function(){var e=this.constructor;return function(e,t){function n(){}return n.prototype=t.prototype,(e.prototype=new n).constructor=e,e}(function(){e.apply(this,arguments)},e)},a.prototype.saveValue=function(e,t){var n=void 0,i=void 0;t?((n=this.instance.getSelected())[0]>n[2]&&(i=n[0],n[0]=n[2],n[2]=i),n[1]>n[3]&&(i=n[1],n[1]=n[3],n[3]=i)):n=[this.row,this.col,null,null],this.instance.populateFromArray(n[0],n[1],e,n[2],n[3],"edit")},a.prototype.beginEditing=function(e,t){this.state==r.VIRGIN&&(this.instance.view.scrollViewport(new i.CellCoords(this.row,this.col)),this.instance.view.render(),this.state=r.EDITING,e="string"==typeof e?e:this.originalValue,this.setValue((0,o.stringify)(e)),this.open(t),this._opened=!0,this.focus(),this.instance.view.render(),this.instance.runHooks("afterBeginEditing",this.row,this.col))},a.prototype.finishEditing=function(e,t,n){var i,o=this;if(n){var a=this._closeCallback;this._closeCallback=function(e){a&&a(e),n(e),o.instance.view.render()}}if(!this.isWaiting())if(this.state!=r.VIRGIN){if(this.state==r.EDITING){if(e)return this.cancelChanges(),void this.instance.view.render();var s=this.getValue();i=this.instance.getSettings().trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=r.WAITING,this.saveValue(i,t),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(e){o.state=r.FINISHED,o.discardEditor(e)}):(this.state=r.FINISHED,this.discardEditor(!0))}}else this.instance._registerTimeout(setTimeout(function(){o._fireCallbacks(!0)},0))},a.prototype.cancelChanges=function(){this.state=r.FINISHED,this.discardEditor()},a.prototype.discardEditor=function(e){this.state===r.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=r.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=r.VIRGIN,this._fireCallbacks(!0)))},a.prototype.enableFullEditMode=function(){this._fullEditMode=!0},a.prototype.isInFullEditMode=function(){return this._fullEditMode},a.prototype.isOpened=function(){return this._opened},a.prototype.isWaiting=function(){return this.state===r.WAITING},a.prototype.checkEditorSection=function(){var e=this.instance.countRows(),t="";return this.row=e-this.instance.getSettings().fixedRowsBottom?t=this.col=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}}]),e}();t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var i=n(0),o=c(n(183)),r=n(36),a=c(r),s=c(n(4)),l=n(16),d=n(7);function c(e){return e&&e.__esModule?e:{default:e}}var u=a.default.prototype.extend();u.prototype.init=function(){var e=this;this.createElements(),this.eventManager=new s.default(this),this.bindEvents(),this.autoResize=(0,o.default)(),this.instance.addHook("afterDestroy",function(){e.destroy()})},u.prototype.getValue=function(){return this.TEXTAREA.value},u.prototype.setValue=function(e){this.TEXTAREA.value=e};var h=function(e){var t,n=this.getActiveEditor();if(t=(e.ctrlKey||e.metaKey)&&!e.altKey,e.target===n.TEXTAREA&&!(0,d.isImmediatePropagationStopped)(e))if(17!==e.keyCode&&224!==e.keyCode&&91!==e.keyCode&&93!==e.keyCode){switch(e.keyCode){case l.KEY_CODES.ARROW_RIGHT:case l.KEY_CODES.ARROW_LEFT:n.isInFullEditMode()&&(!n.isWaiting()&&!n.allowKeyEventPropagation||!n.isWaiting()&&n.allowKeyEventPropagation&&!n.allowKeyEventPropagation(e.keyCode))&&(0,d.stopImmediatePropagation)(e);break;case l.KEY_CODES.ARROW_UP:case l.KEY_CODES.ARROW_DOWN:n.isInFullEditMode()&&(!n.isWaiting()&&!n.allowKeyEventPropagation||!n.isWaiting()&&n.allowKeyEventPropagation&&!n.allowKeyEventPropagation(e.keyCode))&&(0,d.stopImmediatePropagation)(e);break;case l.KEY_CODES.ENTER:var o=n.instance.getSelected(),r=!(o[0]===o[2]&&o[1]===o[3]);if(t&&!r||e.altKey){if(n.isOpened()){var a=(0,i.getCaretPosition)(n.TEXTAREA),s=n.getValue(),c=s.slice(0,a)+"\n"+s.slice(a);n.setValue(c),(0,i.setCaretPosition)(n.TEXTAREA,a+1)}else n.beginEditing(n.originalValue+"\n");(0,d.stopImmediatePropagation)(e)}e.preventDefault();break;case l.KEY_CODES.A:case l.KEY_CODES.X:case l.KEY_CODES.C:case l.KEY_CODES.V:t&&(0,d.stopImmediatePropagation)(e);break;case l.KEY_CODES.BACKSPACE:case l.KEY_CODES.DELETE:case l.KEY_CODES.HOME:case l.KEY_CODES.END:(0,d.stopImmediatePropagation)(e)}-1===[l.KEY_CODES.ARROW_UP,l.KEY_CODES.ARROW_RIGHT,l.KEY_CODES.ARROW_DOWN,l.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&n.autoResize.resize(String.fromCharCode(e.keyCode))}else(0,d.stopImmediatePropagation)(e)};u.prototype.open=function(){this.refreshDimensions(),this.instance.addHook("beforeKeyDown",h)},u.prototype.close=function(e){this.textareaParentStyle.display="none",this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.instance.removeHook("beforeKeyDown",h)},u.prototype.focus=function(){this.TEXTAREA.focus(),(0,i.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},u.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),(0,i.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),(0,i.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.textareaParentStyle.top=0,this.textareaParentStyle.left=0,this.textareaParentStyle.display="none",this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.instance.rootElement.appendChild(this.TEXTAREA_PARENT);var e=this;this.instance._registerTimeout(setTimeout(function(){e.refreshDimensions()},0))},u.prototype.getEditedCell=function(){var e;switch(this.checkEditorSection()){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=101;break;case"top-left-corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"bottom-left-corner":e=this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;case"bottom":e=this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.textareaParentStyle.zIndex=""}return-1!=e&&-2!=e?e:void 0},u.prototype.refreshValue=function(){var e=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()},u.prototype.refreshDimensions=function(){if(this.state===r.EditorState.EDITING)if(this.TD=this.getEditedCell(),this.TD){var e,t=(0,i.offset)(this.TD),n=(0,i.offset)(this.instance.rootElement),o=(0,i.getScrollableElement)(this.TD),a=this.instance.countRows(),s=t.top===n.top?0:1,l=t.top-n.top-s-(o.scrollTop||0),d=t.left-n.left-1-(o.scrollLeft||0),c=this.instance.getSettings(),u=(this.instance.hasRowHeaders(),this.instance.hasColHeaders()),h=this.checkEditorSection(),f=this.TD.style.backgroundColor;switch(h){case"top":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=(0,i.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(u&&0===this.instance.getSelected()[0]||c.fixedRowsBottom&&this.instance.getSelected()[0]===a-c.fixedRowsBottom)&&(l+=1),0===this.instance.getSelected()[1]&&(d+=1),e&&-1!=e?this.textareaParentStyle[e[0]]=e[1]:(0,i.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top=l+"px",this.textareaParentStyle.left=d+"px";var p=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,m=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,g=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),y=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),v=(0,i.getScrollbarWidth)(),A=this.TD.offsetTop+p-y,b=this.TD.offsetLeft+m-g,w=(0,i.innerWidth)(this.TD)-8,_=(0,i.hasVerticalScrollbar)(o)?v:0,M=(0,i.hasHorizontalScrollbar)(o)?v:0,x=this.instance.view.maximumVisibleElementWidth(b)-9-_,k=this.TD.scrollHeight+1,S=Math.max(this.instance.view.maximumVisibleElementHeight(A)-M,23),C=(0,i.getComputedStyle)(this.TD);this.TEXTAREA.style.fontSize=C.fontSize,this.TEXTAREA.style.fontFamily=C.fontFamily,this.TEXTAREA.style.backgroundColor="",this.TEXTAREA.style.backgroundColor=f||(0,i.getComputedStyle)(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(k,S),maxHeight:S,minWidth:Math.min(w,x),maxWidth:x},!0),this.textareaParentStyle.display="block"}else this.close(!0)},u.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(e){(0,d.stopPropagation)(e)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(e){(0,d.stopPropagation)(e)}),this.instance.addHook("afterScrollHorizontally",function(){e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterRowResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterDestroy",function(){e.eventManager.destroy()})},u.prototype.destroy=function(){this.eventManager.destroy()},t.default=u},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports={}},function(e,t,n){var i=n(49)("meta"),o=n(15),r=n(22),a=n(19).f,s=0,l=Object.isExtensible||function(){return!0},d=!n(31)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},u=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,i)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[i].i},getWeak:function(e,t){if(!r(e,i)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[i].w},onFreeze:function(e){return d&&u.NEED&&l(e)&&!r(e,i)&&c(e),e}}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(19).f,o=n(22),r=n(10)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){"use strict";var i;t.__esModule=!0,t.ITEMS=t.UNDO=t.SEPARATOR=t.ROW_BELOW=t.ROW_ABOVE=t.REMOVE_ROW=t.REMOVE_COLUMN=t.REDO=t.READ_ONLY=t.COLUMN_RIGHT=t.COLUMN_LEFT=t.CLEAR_COLUMN=t.ALIGNMENT=void 0;var o=n(223);Object.defineProperty(t,"ALIGNMENT",{enumerable:!0,get:function(){return o.KEY}});var r=n(224);Object.defineProperty(t,"CLEAR_COLUMN",{enumerable:!0,get:function(){return r.KEY}});var a=n(225);Object.defineProperty(t,"COLUMN_LEFT",{enumerable:!0,get:function(){return a.KEY}});var s=n(226);Object.defineProperty(t,"COLUMN_RIGHT",{enumerable:!0,get:function(){return s.KEY}});var l=n(227);Object.defineProperty(t,"READ_ONLY",{enumerable:!0,get:function(){return l.KEY}});var d=n(228);Object.defineProperty(t,"REDO",{enumerable:!0,get:function(){return d.KEY}});var c=n(229);Object.defineProperty(t,"REMOVE_COLUMN",{enumerable:!0,get:function(){return c.KEY}});var u=n(230);Object.defineProperty(t,"REMOVE_ROW",{enumerable:!0,get:function(){return u.KEY}});var h=n(231);Object.defineProperty(t,"ROW_ABOVE",{enumerable:!0,get:function(){return h.KEY}});var f=n(232);Object.defineProperty(t,"ROW_BELOW",{enumerable:!0,get:function(){return f.KEY}});var p=n(70);Object.defineProperty(t,"SEPARATOR",{enumerable:!0,get:function(){return p.KEY}});var m=n(233);Object.defineProperty(t,"UNDO",{enumerable:!0,get:function(){return m.KEY}}),t.predefinedItems=function(){var e={};return(0,g.objectEach)(Y,function(t,n){e[n]=t()}),e},t.addItem=function(e,t){-1===D.indexOf(e)&&(Y[e]=t)};var g=n(2),y=L(o),v=L(r),A=L(a),b=L(s),w=L(l),_=L(d),M=L(c),x=L(u),k=L(h),S=L(f),C=L(p),E=L(m);function L(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=t.ITEMS=[h.KEY,f.KEY,a.KEY,s.KEY,r.KEY,u.KEY,c.KEY,m.KEY,d.KEY,l.KEY,o.KEY,p.KEY],Y=(T(i={},p.KEY,C.default),T(i,h.KEY,k.default),T(i,f.KEY,S.default),T(i,a.KEY,A.default),T(i,s.KEY,b.default),T(i,r.KEY,v.default),T(i,u.KEY,x.default),T(i,c.KEY,M.default),T(i,m.KEY,E.default),T(i,d.KEY,_.default),T(i,l.KEY,w.default),T(i,o.KEY,y.default),i)},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:"common";o.has(e)||o.set(e,new Map);var t=o.get(e);return{register:function(e,n){t.set(e,n)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[].concat(i(t.keys()))},getValues:function(){return[].concat(i(t.values()))}}};var o=t.collection=new Map},function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var i=n(29),o=n(76),r=n(41),a=n(24),s=n(278);e.exports=function(e,t){var n=1==e,l=2==e,d=3==e,c=4==e,u=6==e,h=5==e||u,f=t||s;return function(t,s,p){for(var m,g,y=r(t),v=o(y),A=i(s,p,3),b=a(v.length),w=0,_=n?f(t,b):l?f(t,0):void 0;b>w;w++)if((h||w in v)&&(g=A(m=v[w],w,y),e))if(n)_[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:_.push(m)}else if(c)return!1;return u?-1:d||c?c:_}}},function(e,t,n){"use strict";var i=n(13),o=n(3),r=n(33),a=n(59),s=n(46),l=n(56),d=n(52),c=n(15),u=n(31),h=n(77),f=n(48),p=n(281);e.exports=function(e,t,n,m,g,y){var v=i[e],A=v,b=g?"set":"add",w=A&&A.prototype,_={},M=function(e){var t=w[e];r(w,e,"delete"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof A&&(y||w.forEach&&!u(function(){(new A).entries().next()}))){var x=new A,k=x[b](y?{}:-0,1)!=x,S=u(function(){x.has(1)}),C=h(function(e){new A(e)}),E=!y&&u(function(){for(var e=new A,t=5;t--;)e[b](t,t);return!e.has(-0)});C||((A=t(function(t,n){d(t,A,e);var i=p(new v,t,A);return void 0!=n&&l(n,g,i[b],i),i})).prototype=w,w.constructor=A),(S||E)&&(M("delete"),M("has"),g&&M("get")),(E||k)&&M(b),y&&w.clear&&delete w.clear}else A=m.getConstructor(t,e,g,b),a(A.prototype,n),s.NEED=!0;return f(A,e),_[e]=A,o(o.G+o.W+o.F*(A!=v),_),y||m.setStrong(A,e,g),A}},function(e,t,n){"use strict";var i=n(32),o=n(33),r=n(31),a=n(30),s=n(10);e.exports=function(e,t,n){var l=s(e),d=n(a,l,""[e]),c=d[0],u=d[1];r(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,c),i(RegExp.prototype,l,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){var i=n(29),o=n(165),r=n(161),a=n(18),s=n(24),l=n(176),d={},c={};(t=e.exports=function(e,t,n,u,h){var f,p,m,g,y=h?function(){return e}:l(e),v=i(n,u,t?2:1),A=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(r(y)){for(f=s(e.length);f>A;A++)if((g=t?v(a(p=e[A])[0],p[1]):v(e[A]))===d||g===c)return g}else for(m=y.call(e);!(p=m.next()).done;)if((g=o(m,v,p.value,t))===d||g===c)return g}).BREAK=d,t.RETURN=c},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(33);e.exports=function(e,t,n){for(var o in t)i(e,o,t[o],n);return e}},function(e,t,n){var i=n(61),o=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?o(e+t,0):r(e,t)}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(t,n){t.exports=e},function(e,t,n){"use strict";t.__esModule=!0,t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.hasCellType=t.getCellType=t.registerCellType=void 0;var i=g(n(51)),o=n(14),r=n(9),a=n(26),s=g(n(190)),l=g(n(191)),d=g(n(192)),c=g(n(193)),u=g(n(194)),h=g(n(195)),f=g(n(196)),p=g(n(197)),m=g(n(198));function g(e){return e&&e.__esModule?e:{default:e}}var y=(0,i.default)("cellTypes"),v=y.register,A=y.getItem,b=y.hasItem,w=y.getNames,_=y.getValues;function M(e,t){var n=t.editor,i=t.renderer,s=t.validator;n&&(0,o.registerEditor)(e,n),i&&(0,r.registerRenderer)(e,i),s&&(0,a.registerValidator)(e,s),v(e,t)}M("autocomplete",s.default),M("checkbox",l.default),M("date",d.default),M("dropdown",c.default),M("handsontable",u.default),M("numeric",h.default),M("password",f.default),M("text",p.default),M("time",m.default),t.registerCellType=M,t.getCellType=function(e){if(!b(e))throw Error('You declared cell type "'+e+'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by "Handsontable.cellTypes.registerCellType" method');return A(e)},t.hasCellType=b,t.getRegisteredCellTypeNames=w,t.getRegisteredCellTypes=_},function(e,t,n){"use strict";t.__esModule=!0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o="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.default=function(e,t){var n,L,Y,R,B,O,H=this,P=function(){},I=new f.default(H);(0,p.extend)(P.prototype,C.default.prototype),(0,p.extend)(P.prototype,t),(0,p.extend)(P.prototype,$(t)),this.rootElement=e,this.isHotTableEnv=(0,a.isChildOfWebComponentTable)(this.rootElement),f.default.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("DIV"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),this.guid="ht_"+(0,A.randomString)();var j=(0,x.getTranslator)(H);function F(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue++,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(e){},checkIfQueueIsEmpty:function(){0==this.validatorsInQueue&&0==e&&(e=!0,this.onQueueEmpty(this.valid))}}}function N(e,t,n){var i=new F;i.onQueueEmpty=function(){var i;e.length&&(i=H.runHooks("beforeChange",e,t),(0,l.isFunction)(i)||!1===i&&e.splice(0,e.length)),n()};for(var o=e.length-1;o>=0;o--)if(null===e[o])e.splice(o,1);else{var s=e[o][0],c=L.propToCol(e[o][1]),u=H.getCellMeta(s,c);if("numeric"===u.type&&"string"==typeof e[o][3]&&e[o][3].length>0&&(/^-?[\d\s]*(\.|,)?\d*$/.test(e[o][3])||u.format)){var h=e[o][3].length;(0,d.isUndefined)(u.language)?r.default.culture("en-US"):e[o][3].indexOf(".")===h-3&&-1===e[o][3].indexOf(",")?r.default.culture("en-US"):r.default.culture(u.language),r.default.cultureData(r.default.culture()).delimiters,r.default.validate(e[o][3])&&!isNaN(e[o][3])?e[o][3]=parseFloat(e[o][3]):e[o][3]=(0,r.default)().unformat(e[o][3])||e[o][3]}H.getCellValidator(u)&&(i.addValidatorToQueue(),H.validateCell(e[o][3],u,function(t,n){return function(o){if("boolean"!=typeof o)throw new Error("Validation error: result is not boolean");if(!1===o&&!1===n.allowInvalid){e.splice(t,1),n.valid=!0;var r=H.getCell(n.row,n.col);(0,a.removeClass)(r,H.getSettings().invalidCellClassName),--t}i.removeValidatorFormQueue()}}(o,u),t))}i.checkIfQueueIsEmpty()}function z(e,t){var i=e.length-1;if(!(i<0)){for(;i>=0;i--){var o=!1;if(null!==e[i]){if(null!=e[i][2]||null!=e[i][3]){if(n.settings.allowInsertRow)for(;e[i][0]>H.countRows()-1;){if(0===L.createRow(void 0,void 0,t)){o=!0;break}}if(!o){if("array"===H.dataType&&(!n.settings.columns||0===n.settings.columns.length)&&n.settings.allowInsertColumn)for(;L.propToCol(e[i][1])>H.countCols()-1;)L.createCol(void 0,void 0,t);L.set(e[i][0],e[i][1],e[i][3])}}}else e.splice(i,1)}H.forceFullRender=!0,R.adjustRowsAndCols(),H.runHooks("beforeChangeRender",e,t),B.refreshBorders(null,!0),H.view.wt.wtOverlays.adjustElementsSize(),H.runHooks("afterChange",e,t||"edit");var r=H.getActiveEditor();r&&(0,d.isDefined)(r.refreshValue)&&r.refreshValue()}}function W(e,t,n){return"object"===(void 0===e?"undefined":o(e))?e:[[e,t,n]]}function $(e){if((0,p.hasOwnProperty)(e,"type")){var t,n={};for(var i in"object"===o(e.type)?t=e.type:"string"==typeof e.type&&(t=(0,E.getCellType)(e.type)),t)(0,p.hasOwnProperty)(t,i)&&!(0,p.hasOwnProperty)(e,i)&&(n[i]=t[i]);return n}}Y=new _.default(H),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),n={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new P,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},R={alter:function(e,t,i,o,r){var a;function s(e,t,n,i){var o=(0,m.arrayMap)(new Array(n),function(){return e=void 0,"array"===i?e=[]:"object"===i&&(e={}),e;var e});o.unshift(t,0),e.splice.apply(e,T(o))}switch(i=i||1,e){case"insert_row":var l=H.countSourceRows();if(H.getSettings().maxRows===l)return;t=(0,d.isDefined)(t)?t:l,a=L.createRow(t,i,o),s(n.cellSettings,t,i,"array"),a&&(B.isSelected()&&n.selRange.from.row>=t?(n.selRange.from.row+=a,B.transformEnd(a,0)):B.refreshBorders());break;case"insert_col":a=L.createCol(t,i,o);for(var c=0,u=H.countSourceRows();c=t?(n.selRange.from.col+=a,B.transformEnd(0,a)):B.refreshBorders()}break;case"remove_row":L.removeRow(t,i,o),n.cellSettings.splice(t,i);var f=H.countRows(),p=H.getSettings().fixedRowsTop;p>=t+1&&(H.getSettings().fixedRowsTop-=Math.min(i,p-t));var g=H.getSettings().fixedRowsBottom;g&&t>=f-g&&(H.getSettings().fixedRowsBottom-=Math.min(i,g)),R.adjustRowsAndCols(),B.refreshBorders();break;case"remove_col":var y=j.toPhysicalColumn(t);L.removeCol(t,i,o);for(var v=0,A=H.countSourceRows();v=t+1&&(H.getSettings().fixedColumnsLeft-=Math.min(i,b-t)),Array.isArray(H.getSettings().colHeaders)&&(void 0===y&&(y=-1),H.getSettings().colHeaders.splice(y,i)),R.adjustRowsAndCols(),B.refreshBorders();break;default:throw new Error('There is no such action "'+e+'"')}r||R.adjustRowsAndCols()},adjustRowsAndCols:function(){if(n.settings.minRows){var e=H.countRows();if(ea-1?(l=!0,u>(d=a-1)&&(u=d)):u>a-1&&(l=!0,d>(u=a-1)&&(d=u)),c>s-1?(l=!0,h>(c=s-1)&&(h=c)):h>s-1&&(l=!0,c>(h=s-1)&&(c=h)),l&&H.selectCell(d,c,u,h)}H.view&&H.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,i,r,a,s,l){var c,u,h,f,m,g,y,v,A=[],b={};if(0===(u=t.length))return!1;switch(null===i||i.row,null===i||i.col,a){case"shift_down":for(m=i?i.col-e.col+1:0,g=i?i.row-e.row+1:0,h=0,f=(t=(0,M.translateRowsToColumns)(t)).length,y=Math.max(f,m);h1&&void 0!==arguments[1]?arguments[1]:null,i=t[e%t.length];return null!==n?i[n%i.length]:i},R=t.length,B=i?i.row-e.row+1:0;for(u=i?B:Math.max(R,B),c=0;ci.row&&B>R||!n.settings.allowInsertRow&&b.row>H.countRows()-1||b.row>=n.settings.maxRows);c++){var O=c-C,P=Y(O).length,I=i?i.col-e.col+1:0;if(f=i?I:Math.max(P,I),b.col=e.col,D=H.getCellMeta(b.row,b.col),"CopyPaste.paste"!==r&&"Autofill.autofill"!==r||!D.skipRowOnPaste){for(E=0,h=0;hi.col&&I>P||!n.settings.allowInsertColumn&&b.col>H.countCols()-1||b.col>=n.settings.maxCols);h++)if(D=H.getCellMeta(b.row,b.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!D.skipColumnOnPaste)if(D.readOnly)b.col++;else{var j=h-E,F=Y(O,j),N=H.getDataAtCell(b.row,b.col),z={row:O,col:j};if("Autofill.fill"===r){var W=H.runHooks("beforeAutofillInsidePopulate",z,s,t,l,{},S);W&&(F=(0,d.isUndefined)(W.value)?F:W.value)}if(null!==F&&"object"===(void 0===F?"undefined":o(F)))if(null===N||"object"!==(void 0===N?"undefined":o(N)))L=!1;else{var $=(0,p.duckSchema)(N[0]||N),U=(0,p.duckSchema)(F[0]||F);(0,p.isObjectEquals)($,U)?F=(0,p.deepClone)(F):L=!1}else null!==N&&"object"===(void 0===N?"undefined":o(N))&&(L=!1);L&&A.push([b.row,b.col,F]),L=!0,b.col++}else E++,b.col++,f++;b.row++}else C++,b.row++,u++}H.setDataAtCell(A,null,null,r||"populateFromArray")}}},this.selection=B={inProgress:!1,selectedHeader:{cols:!1,rows:!1},setSelectedHeaders: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];H.selection.selectedHeader.rows=e,H.selection.selectedHeader.cols=t,H.selection.selectedHeader.corner=n},begin:function(){H.selection.inProgress=!0},finish:function(){var e=H.getSelected();H.runHooks("afterSelectionEnd",e[0],e[1],e[2],e[3]),H.runHooks("afterSelectionEndByProp",e[0],H.colToProp(e[1]),e[2],H.colToProp(e[3])),H.selection.inProgress=!1},isInProgress:function(){return H.selection.inProgress},setRangeStart:function(e,t){H.runHooks("beforeSetRangeStart",e),n.selRange=new k.CellRange(e,e,e),B.setRangeEnd(e,null,t)},setRangeStartOnly:function(e){H.runHooks("beforeSetRangeStartOnly",e),n.selRange=new k.CellRange(e,e,e)},setRangeEnd:function(e,t,i){if(null!==n.selRange){var o,r=!1,s=!0,l=H.view.wt.wtTable.getFirstVisibleRow(),d=H.view.wt.wtTable.getFirstVisibleColumn(),c={row:null,col:null};H.runHooks("beforeSetRangeEnd",e),H.selection.begin(),c.row=e.row<0?l:e.row,c.col=e.col<0?d:e.col,n.selRange.to=new k.CellCoords(c.row,c.col),n.settings.multiSelect||(n.selRange.from=e),H.view.wt.selections.current.clear(),"string"==typeof(o=H.getCellMeta(n.selRange.highlight.row,n.selRange.highlight.col).disableVisualSelection)&&(o=[o]),(!1===o||Array.isArray(o)&&-1===o.indexOf("current"))&&H.view.wt.selections.current.add(n.selRange.highlight),H.view.wt.selections.area.clear(),(!1===o||Array.isArray(o)&&-1===o.indexOf("area"))&&B.isMultiple()&&(H.view.wt.selections.area.add(n.selRange.from),H.view.wt.selections.area.add(n.selRange.to)),(n.settings.currentHeaderClassName||n.settings.currentRowClassName||n.settings.currentColClassName)&&(H.view.wt.selections.highlight.clear(),H.view.wt.selections.highlight.add(n.selRange.from),H.view.wt.selections.highlight.add(n.selRange.to));var u=(0,p.createObjectPropListener)("value");H.runHooks("afterSelection",n.selRange.from.row,n.selRange.from.col,n.selRange.to.row,n.selRange.to.col,u),H.runHooks("afterSelectionByProp",n.selRange.from.row,L.colToProp(n.selRange.from.col),n.selRange.to.row,L.colToProp(n.selRange.to.col),u),(0===n.selRange.from.row&&n.selRange.to.row===H.countRows()-1&&H.countRows()>1||0===n.selRange.from.col&&n.selRange.to.col===H.countCols()-1&&H.countCols()>1)&&(r=!0),(e.row<0||e.col<0)&&(s=!1),u.isTouched()&&(t=!u.value),!1!==t&&!r&&s&&(n.selRange.from&&!B.isMultiple()?H.view.scrollViewport(n.selRange.from):H.view.scrollViewport(e)),B.selectedHeader.rows&&B.selectedHeader.cols?(0,a.addClass)(H.rootElement,["ht__selection--rows","ht__selection--columns"]):B.selectedHeader.rows?((0,a.removeClass)(H.rootElement,"ht__selection--columns"),(0,a.addClass)(H.rootElement,"ht__selection--rows")):B.selectedHeader.cols?((0,a.removeClass)(H.rootElement,"ht__selection--rows"),(0,a.addClass)(H.rootElement,"ht__selection--columns")):(0,a.removeClass)(H.rootElement,["ht__selection--rows","ht__selection--columns"]),B.refreshBorders(null,i)}},refreshBorders:function(e,t){t||O.destroyEditor(e),H.view.render(),B.isSelected()&&!t&&O.prepareEditor()},isMultiple:function(){var e=!(n.selRange.to.col===n.selRange.from.col&&n.selRange.to.row===n.selRange.from.row),t=H.runHooks("afterIsMultipleSelection",e);if(e)return t},transformStart:function(e,t,i,o){var r,a,s,l,d=new k.CellCoords(e,t),c=0,u=0;H.runHooks("modifyTransformStart",d),r=H.countRows(),a=H.countCols(),l=H.getSettings().fixedRowsBottom,n.selRange.highlight.row+e>r-1?i&&n.settings.minSpareRows>0&&!(l&&n.selRange.highlight.row>=r-l-1)?(H.alter("insert_row",r),r=H.countRows()):n.settings.autoWrapCol&&(d.row=1-r,d.col=n.selRange.highlight.col+d.col==a-1?1-a:1):n.settings.autoWrapCol&&n.selRange.highlight.row+d.row<0&&n.selRange.highlight.col+d.col>=0&&(d.row=r-1,d.col=n.selRange.highlight.col+d.col==0?a-1:-1),n.selRange.highlight.col+d.col>a-1?i&&n.settings.minSpareCols>0?(H.alter("insert_col",a),a=H.countCols()):n.settings.autoWrapRow&&(d.row=n.selRange.highlight.row+d.row==r-1?1-r:1,d.col=1-a):n.settings.autoWrapRow&&n.selRange.highlight.col+d.col<0&&n.selRange.highlight.row+d.row>=0&&(d.row=n.selRange.highlight.row+d.row==0?r-1:-1,d.col=a-1),(s=new k.CellCoords(n.selRange.highlight.row+d.row,n.selRange.highlight.col+d.col)).row<0?(c=-1,s.row=0):s.row>0&&s.row>=r&&(c=1,s.row=r-1),s.col<0?(u=-1,s.col=0):s.col>0&&s.col>=a&&(u=1,s.col=a-1),H.runHooks("afterModifyTransformStart",s,c,u),B.setRangeStart(s,o)},transformEnd:function(e,t){var i,o,r,a=new k.CellCoords(e,t),s=0,l=0;H.runHooks("modifyTransformEnd",a),i=H.countRows(),o=H.countCols(),(r=new k.CellCoords(n.selRange.to.row+a.row,n.selRange.to.col+a.col)).row<0?(s=-1,r.row=0):r.row>0&&r.row>=i&&(s=1,r.row=i-1),r.col<0?(l=-1,r.col=0):r.col>0&&r.col>=o&&(l=1,r.col=o-1),H.runHooks("afterModifyTransformEnd",r,s,l),B.setRangeEnd(r,!0)},isSelected:function(){return null!==n.selRange},inInSelection:function(e){return!!B.isSelected()&&n.selRange.includes(e)},deselect:function(){B.isSelected()&&(H.selection.inProgress=!1,n.selRange=null,H.view.wt.selections.current.clear(),H.view.wt.selections.area.clear(),(n.settings.currentHeaderClassName||n.settings.currentRowClassName||n.settings.currentColClassName)&&H.view.wt.selections.highlight.clear(),O.destroyEditor(),B.refreshBorders(),(0,a.removeClass)(H.rootElement,["ht__selection--rows","ht__selection--columns"]),H.runHooks("afterDeselect"))},selectAll:function(){n.settings.multiSelect&&(B.setSelectedHeaders(!0,!0,!0),B.setRangeStart(new k.CellCoords(0,0)),B.setRangeEnd(new k.CellCoords(H.countRows()-1,H.countCols()-1),!1))},empty:function(){if(B.isSelected()){var e,t,i=n.selRange.getTopLeftCorner(),o=n.selRange.getBottomRightCorner(),r=[];for(e=i.row;e<=o.row;e++)for(t=i.col;t<=o.col;t++)H.getCellMeta(e,t).readOnly||r.push([e,t,""]);H.setDataAtCell(r)}}},this.init=function(){Y.setData(n.settings.data),H.runHooks("beforeInit"),(0,c.isMobileBrowser)()&&(0,a.addClass)(H.rootElement,"mobile"),this.updateSettings(n.settings,!0),this.view=new w.default(this),O=new h.default(H,n,B,L),this.forceFullRender=!0,H.runHooks("init"),this.view.render(),"object"===o(n.firstRun)&&(H.runHooks("afterChange",n.firstRun[0],n.firstRun[1]),n.firstRun=!1),H.runHooks("afterInit")},this.validateCell=function(e,t,n,i){var o=H.getCellValidator(t);function r(e){var i=t.visualCol,o=t.visualRow,r=H.getCell(o,i,!0);r&&"TH"!=r.nodeName&&H.view.wt.wtSettings.settings.cellRenderer(o,i,r),n(e)}(0,d.isRegExp)(o)&&(o=function(e){return function(t,n){n(e.test(t))}}(o)),(0,l.isFunction)(o)?(e=H.runHooks("beforeValidate",e,t.visualRow,t.prop,i),H._registerTimeout(setTimeout(function(){o.call(t,e,function(n){n=H.runHooks("afterValidate",n,e,t.visualRow,t.prop,i),t.valid=n,r(n),H.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,i)})},0))):H._registerTimeout(setTimeout(function(){t.valid=!0,r(t.valid)},0))},this.setDataAtCell=function(e,t,n,i){var r,a,s,l=W(e,t,n),d=[];for(r=0,a=l.length;r-1?((0,l.isFunction)(e[o])||Array.isArray(e[o]))&&(e[o].initialHook=!0,H.addHook(o,e[o])):!t&&(0,p.hasOwnProperty)(e,o)&&(P.prototype[o]=e[o]));void 0===e.data&&void 0===n.settings.data?H.loadData(null):void 0!==e.data?H.loadData(e.data):void 0!==e.columns&&L.createMap(),c=H.countCols();var u=e.columns||P.prototype.columns;if(u&&(0,l.isFunction)(u)&&(c=H.countSourceCols(),i=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(n.cellSettings.length=0),c>0){var h=void 0,f=void 0;for(o=0,r=0;o-1||A.indexOf("overflow")>-1)?H.rootElement.setAttribute("style",A):(H.rootElement.style.height="",H.rootElement.style.overflow="")}else void 0!==v&&(H.rootElement.style.height=v+"px",H.rootElement.style.overflow="hidden");if(void 0!==e.width){var b=e.width;(0,l.isFunction)(b)&&(b=b()),H.rootElement.style.width=b+"px"}t||(L.clearLengthCache(),H.view&&H.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),H.runHooks("afterUpdateSettings")),R.adjustRowsAndCols(),H.view&&!n.firstRun&&(H.forceFullRender=!0,B.refreshBorders(null,!0)),t||!H.view||""!==y&&""!==v&&void 0!==v||y===v||H.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=H.getSelected();if(P.prototype.getValue){if((0,l.isFunction)(P.prototype.getValue))return P.prototype.getValue.call(H);if(e)return H.getData()[e[0]][P.prototype.getValue]}else if(e)return H.getDataAtCell(e[0],e[1])},this.getSettings=function(){return n.settings},this.clear=function(){B.selectAll(),B.empty()},this.alter=function(e,t,n,i,o){R.alter(e,t,n,i,o)},this.getCell=function(e,t,n){return H.view.getCellAtCoords(new k.CellCoords(e,t),n)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return L.colToProp(e)},this.propToCol=function(e){return L.propToCol(e)},this.toVisualRow=function(e){return j.toVisualRow(e)},this.toVisualColumn=function(e){return j.toVisualColumn(e)},this.toPhysicalRow=function(e){return j.toPhysicalRow(e)},this.toPhysicalColumn=function(e){return j.toPhysicalColumn(e)},this.getDataAtCell=function(e,t){return L.get(e,L.colToProp(t))},this.getDataAtRowProp=function(e,t){return L.get(e,t)},this.getDataAtCol=function(e){var t=[];return t.concat.apply(t,T(L.getRange(new k.CellCoords(0,e),new k.CellCoords(n.settings.data.length-1,e),L.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,i=[];return t=L.getRange(new k.CellCoords(0,L.propToCol(e)),new k.CellCoords(n.settings.data.length-1,L.propToCol(e)),L.DESTINATION_RENDERER),i.concat.apply(i,T(t))},this.getSourceData=function(e,t,n,i){return void 0===e?Y.getData():Y.getByRange(new k.CellCoords(e,t),new k.CellCoords(n,i))},this.getSourceDataArray=function(e,t,n,i){return void 0===e?Y.getData(!0):Y.getByRange(new k.CellCoords(e,t),new k.CellCoords(n,i),!0)},this.getSourceDataAtCol=function(e){return Y.getAtColumn(e)},this.getSourceDataAtRow=function(e){return Y.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return Y.getAtCell(e,t)},this.getDataAtRow=function(e){return L.getRange(new k.CellCoords(e,0),new k.CellCoords(e,this.countCols()-1),L.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,i){var o=this,r=null,a=null;void 0===e&&(e=0,n=this.countRows(),t=0,i=this.countCols()),void 0===n&&(n=e),void 0===i&&(i=t);var s="mixed";return(0,b.rangeEach)(Math.min(e,n),Math.max(e,n),function(e){var n=!0;return(0,b.rangeEach)(Math.min(t,i),Math.max(t,i),function(t){var i=o.getCellMeta(e,t);return a=i.type,r?n=r===a:r=a,n}),s=n?a:"mixed",n}),s},this.removeCellMeta=function(e,t,i){void 0!=H.getCellMeta(e,t)[i]&&delete n.cellSettings[e][t][i]},this.spliceCellsMeta=function(e,t){for(var i,o=arguments.length,r=Array(o>2?o-2:0),a=2;a=0;){for(var i=H.countCols()-1;i>=0;)t.addValidatorToQueue(),H.validateCell(H.getDataAtCell(n,i),H.getCellMeta(n,i),function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(t.valid=!1),t.removeValidatorFormQueue()},"validateCells"),i--;n--}t.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=n.settings.rowHeaders;return void 0!==e&&(e=H.runHooks("modifyRowHeader",e)),void 0===e?(t=[],(0,b.rangeEach)(H.countRows()-1,function(e){t.push(H.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[e]?t=t[e]:(0,l.isFunction)(t)?t=t(e):t&&"string"!=typeof t&&"number"!=typeof t&&(t=e+1),t},this.hasRowHeaders=function(){return!!n.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==n.settings.colHeaders&&null!==n.settings.colHeaders)return!!n.settings.colHeaders;for(var e=0,t=H.countCols();e=0;){if(t=H.runHooks("modifyRow",n),H.isEmptyRow(t))i++;else if(e)break;n--}return i},this.countEmptyCols=function(e){if(H.countRows()<1)return 0;for(var t=H.countCols()-1,n=0;t>=0;){if(H.isEmptyCol(t))n++;else if(e)break;t--}return n},this.isEmptyRow=function(e){return n.settings.isEmptyRow.call(H,e)},this.isEmptyCol=function(e){return n.settings.isEmptyCol.call(H,e)},this.selectCell=function(e,t,i,o,r,a){var s;if(a=(0,d.isUndefined)(a)||!0===a,"number"!=typeof e||e<0||e>=H.countRows())return!1;if("number"!=typeof t||t<0||t>=H.countCols())return!1;if((0,d.isDefined)(i)){if("number"!=typeof i||i<0||i>=H.countRows())return!1;if("number"!=typeof o||o<0||o>=H.countCols())return!1}return s=new k.CellCoords(e,t),n.selRange=new k.CellRange(s,s,s),a&&H.listen(),(0,d.isUndefined)(i)?B.setRangeEnd(n.selRange.from,r):B.setRangeEnd(new k.CellCoords(i,o),r),H.selection.finish(),!0},this.selectCellByProp=function(e,t,n,i,o){var r;return arguments[1]=L.propToCol(arguments[1]),(0,d.isDefined)(arguments[3])&&(arguments[3]=L.propToCol(arguments[3])),(r=H).selectCell.apply(r,arguments)},this.deselectCell=function(){B.deselect()},this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e&&(e<0||e>=H.countRows()))return!1;if(void 0!==t&&(t<0||t>=H.countCols()))return!1;var o=!1;return void 0!==e&&void 0!==t&&(H.view.wt.wtOverlays.topOverlay.scrollTo(e,n),H.view.wt.wtOverlays.leftOverlay.scrollTo(t,i),o=!0),"number"==typeof e&&"number"!=typeof t&&(H.view.wt.wtOverlays.topOverlay.scrollTo(e,n),o=!0),"number"==typeof t&&"number"!=typeof e&&(H.view.wt.wtOverlays.leftOverlay.scrollTo(t,i),o=!0),o},this.destroy=function(){for(var e in H._clearTimeouts(),H.view&&H.view.destroy(),Y&&Y.destroy(),Y=null,(0,a.empty)(H.rootElement),I.destroy(),H.runHooks("afterDestroy"),S.default.getSingleton().destroy(H),H)(0,p.hasOwnProperty)(H,e)&&((0,l.isFunction)(H[e])?H[e]=G:"guid"!==e&&(H[e]=null));L&&L.destroy(),L=null,n=null,R=null,B=null,O=null,H=null,P=null},this.getActiveEditor=function(){return O.getActiveEditor()},this.getPlugin=function(e){return(0,g.getPlugin)(this,e)},this.getInstance=function(){return H},this.addHook=function(e,t){S.default.getSingleton().add(e,t,H)},this.hasHook=function(e){return S.default.getSingleton().has(e,H)},this.addHookOnce=function(e,t){S.default.getSingleton().once(e,t,H)},this.removeHook=function(e,t){S.default.getSingleton().remove(e,t,H)},this.runHooks=function(e,t,n,i,o,r,a){return S.default.getSingleton().run(H,e,t,n,i,o,r,a)},this.timeouts=[],this._registerTimeout=function(e){this.timeouts.push(e)},this._clearTimeouts=function(){for(var e=0,t=this.timeouts.length;e0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e0;)i=(t-1)%a,n=String.fromCharCode(65+i)+n,t=parseInt((t-i)/a,10);return n}},function(e,t,n){"use strict";t.__esModule=!0,t.columnFactory=function(e,t){function n(){}(0,i.inherit)(n,e);for(var o=0,r=t.length;o0&&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=document.createElement("col");return t.style.width=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=document,n=t.createDocumentFragment(),i=t.createElement("table"),r=t.createElement("thead"),a=t.createElement("tbody"),s=t.createElement("colgroup"),l=t.createElement("tr"),d=t.createElement("th");return this.isVertical()&&i.appendChild(s),this.isHorizontal()&&(l.appendChild(d),r.appendChild(l),i.style.tableLayout="auto",i.style.width="auto"),i.appendChild(r),this.isVertical()&&a.appendChild(l),i.appendChild(a),(0,o.addClass)(i,e),n.appendChild(i),{fragment:n,table:i,tHead:r,tBody:a,colGroup:s,tr:l,th:d}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),i=t.createElement("div");return e="htGhostTable htAutoSize "+e.trim(),(0,o.addClass)(i,e),n.appendChild(i),{fragment:n,container:i}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),e}();t.default=a},function(e,t,n){"use strict";var i=n(37),o=n(167),r=n(45),a=n(23);e.exports=n(166)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n=t&&i.col<=n&&o.col>=n}},{key:"includesRange",value:function(e){return this.includes(e.getTopLeftCorner())&&this.includes(e.getBottomRightCorner())}},{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.getTopLeftCorner())&&e.isNorthWestOf(this.getBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getTopLeftCorner().isSouthEastOf(e)||this.getBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getTopLeftCorner().isNorthWestOf(e)||this.getBottomRightCorner().isNorthWestOf(e)}},{key:"expand",value:function(e){var t=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(e.rown.row||e.col>n.col)&&(this.from=new r.default(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new r.default(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(t){if(this.includesRange(t)||!this.overlaps(t))return!1;var n=this.getTopLeftCorner(),i=this.getBottomRightCorner(),o=(this.getTopRightCorner(),this.getBottomLeftCorner(),t.getTopLeftCorner()),a=t.getBottomRightCorner(),s=Math.min(n.row,o.row),l=Math.min(n.col,o.col),d=Math.max(i.row,a.row),c=Math.max(i.col,a.col),u=new r.default(s,l),h=new r.default(d,c),f=new e(u,u,h).isCorner(this.from,t),p=t.isEqual(new e(u,u,h));return f&&!p&&(this.from.col>u.col&&(u.col=c,h.col=l),this.from.row>u.row&&(u.row=d,h.row=s)),this.from=u,this.to=h,!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.getTopLeftCorner(),this.getBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getTopRightCorner(),this.getBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var i=[this.getBottomRightCorner(),this.getTopLeftCorner()];this.from=i[0],this.to=i[1];break;case"SW-NE":var o=[this.getBottomLeftCorner(),this.getTopRightCorner()];this.from=o[0],this.to=o[1]}}},{key:"getTopLeftCorner",value:function(){return new r.default(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getBottomRightCorner",value:function(){return new r.default(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getTopRightCorner",value:function(){return new r.default(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getBottomLeftCorner",value:function(){return new r.default(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.getTopLeftCorner().isEqual(new r.default(t.from.row,t.from.col))||this.getTopRightCorner().isEqual(new r.default(t.from.row,t.to.col))||this.getBottomLeftCorner().isEqual(new r.default(t.to.row,t.from.col))||this.getBottomRightCorner().isEqual(new r.default(t.to.row,t.to.col))))||e.isEqual(this.getTopLeftCorner())||e.isEqual(this.getTopRightCorner())||e.isEqual(this.getBottomLeftCorner())||e.isEqual(this.getBottomRightCorner())}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof r.default))return!1;if(t&&t.includes(e)){if(this.getTopLeftCorner().isEqual(new r.default(t.from.row,t.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new r.default(t.from.row,t.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new r.default(t.to.row,t.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new r.default(t.to.row,t.to.col)))return this.getTopLeftCorner()}return e.isEqual(this.getBottomRightCorner())?this.getTopLeftCorner():e.isEqual(this.getTopLeftCorner())?this.getBottomRightCorner():e.isEqual(this.getTopRightCorner())?this.getBottomLeftCorner():e.isEqual(this.getBottomLeftCorner())?this.getTopRightCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),i=Math.min(this.from.col,this.to.col),o=Math.max(this.from.col,this.to.col),r=Math.min(e.from.row,e.to.row),a=Math.max(e.from.row,e.to.row),s=Math.min(e.from.col,e.to.col),l=Math.max(e.from.col,e.to.col),d=[];return t==r&&d.push("top"),o==l&&d.push("right"),n==a&&d.push("bottom"),i==s&&d.push("left"),d}},{key:"getInner",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],i=e.row;i<=t.row;i++)for(var o=e.col;o<=t.col;o++)this.from.row===i&&this.from.col===o||this.to.row===i&&this.to.col===o||n.push(new r.default(i,o));return n}},{key:"getAll",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],i=e.row;i<=t.row;i++)for(var o=e.col;o<=t.col;o++)e.row===i&&e.col===o?n.push(e):t.row===i&&t.col===o?n.push(t):n.push(new r.default(i,o));return n}},{key:"forAll",value:function(e){for(var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),i=t.row;i<=n.row;i++)for(var o=t.col;o<=n.col;o++)if(!1===e(i,o))return}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{name:i}};var i=t.KEY="---------"},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var i=n(19),o=n(40);e.exports=function(e,t,n){t in e?i.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var i=n(15),o=n(13).document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var i=n(38);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(10)("iterator"),o=!1;try{var r=[7][i]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r=[7],a=r[i]();a.next=function(){return{done:n=!0}},r[i]=function(){return a},e(r)}catch(e){}return n}},function(e,t,n){var i=n(18),o=n(286),r=n(74),a=n(81)("IE_PROTO"),s=function(){},l=function(){var e,t=n(73)("iframe"),i=r.length;for(t.style.display="none",n(159).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("