Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

1 wiersze
2.3 MiB

!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=380)}([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(166),o=n.n(i),r=n(2);function a(){const e=window._server+"/res/ureport-asserts/icons/loading.gif",t=$(window).height()/2,n=$(window).width()/2,i=$(`<div class="ureport-loading-cover" style="position: absolute;left: 0px;top: 0px;width:${2*n}px;height:${2*t}px;z-index: 1199;background:rgba(222,222,222,.5)"></div>`);$(document.body).append(i);const o=$(`<div class="ureport-loading" style="text-align: center;position: absolute;z-index: 1120;left: ${n-35}px;top: ${t-35}px;"><img src="${e}">\n <div style="margin-top: 5px">打印数据加载中...</div></div>`);$(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;r<n;r++){let n=[];for(let o=0;o<t;o++){if(!e.getCell(r,o)){n.push("");continue}let t=i.getCell(r,o);if(t){let e=t.value.type,i=t.value;if("dataset"===e){let e=i.datasetName+"."+i.aggregate+"(",t=i.property;t.length>13?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='<?xml version="1.0" encoding="UTF-8"?><ureport>',a="",s="";const l=e.rowHeaders;for(let e=0;e<n;e++){let n=t.getRowHeight(e)||16;n=A(n);let i=null;for(let t of l)if(t.rowNumber===e){i=t.band;break}a+=i?`<row row-number="${e+1}" height="${n}" band="${i}"/>`:`<row row-number="${e+1}" height="${n}"/>`}for(let e=0;e<i;e++){let n=t.getColWidth(e)||30;s+=`<column col-number="${e+1}" width="${n=A(n)}"/>`}let d="",c=[];for(let o=0;o<n;o++)for(let n=0;n<i;n++){if(c.indexOf(o+","+n)>-1)continue;let i=e.getCell(o,n);if(!i)continue;let a=e.getCellName(o,n);d+=`<cell expand="${i.expand}" name="${a}" row="${o+1}" col="${n+1}"`,i.leftParentCellName&&""!==i.leftParentCellName&&(d+=` left-cell="${i.leftParentCellName}"`),i.topParentCellName&&""!==i.topParentCellName&&(d+=` top-cell="${i.topParentCellName}"`),i.fillBlankRows&&(d+=` fill-blank-rows="${i.fillBlankRows}"`,i.multiple&&(d+=` multiple="${i.multiple}"`));const s=u(t,o,n);let l=s.rowspan,m=s.colspan,g=o+l-1,y=n,v=n+m-1;for(let e=o;e<=g;e++)for(let t=y;t<=v;t++)c.push(e+","+t);if(l>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+=`<link-parameter name="${e.name}">`,d+=`<value><![CDATA[${e.value}]]></value>`,d+="</link-parameter>";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+=`<dataset-value dataset-name="${p(A.datasetName)}" aggregate="${A.aggregate}" property="${A.property}" order="${A.order}" mapping-type="${t}"`,"dataset"===t&&(d+=` mapping-dataset="${A.mappingDataset}" mapping-key-property="${A.mappingKeyProperty}" mapping-value-property="${A.mappingValueProperty}"`),d+=">",d+=h(A.conditions),"customgroup"===A.aggregate){const e=A.groupItems;for(let t of e){d+=`<group-item name="${t.name}">`;for(let e of t.conditions)d+=`<condition property="${e.leftProperty}" op="${p(e.op)}" id="${e.id}"`,e.join?d+=` join="${e.join}">`:d+=">",d+=`<value><![CDATA[${e.rightExpression}]]></value>`,d+="</condition>";d+="</group-item>"}}if("simple"===t){const e=A.mappingItems;if(e&&e.length>0)for(let t of e)d+=`<mapping-item value="${p(t.value)}" label="${p(t.label)}"/>`}d+="</dataset-value>"}else if("expression"===A.type){if(!A.value||""===A.value){const e=`${a}单元格表达式不能为空`;throw Object(r.a)(e),e}d+="<expression-value>",d+=`<![CDATA[${A.value}]]>`,d+="</expression-value>"}else if("simple"===A.type)d+="<simple-value>",d+=`<![CDATA[${A.value||""}]]>`,d+="</simple-value>";else if("image"===A.type)d+=`<image-value source="${A.source}"`,A.width&&(d+=` width="${A.width}"`),A.height&&(d+=` height="${A.height}"`),d+=">",d+="<text>",d+=`<![CDATA[${A.value}]]>`,d+="</text>",d+="</image-value>";else if("zxing"===A.type)d+=`<zxing-value source="${A.source}" category="${A.category}" width="${A.width}" height="${A.height}"`,A.format&&(d+=` format="${A.format}"`),d+=">",d+="<text>",d+=`<![CDATA[${A.value}]]>`,d+="</text>",d+="</zxing-value>";else if("slash"===A.type){d+="<slash-value>";const e=A.slashes;for(let t of e)d+=`<slash text="${t.text}" x="${t.x}" y="${t.y}" degree="${t.degree}"/>`;d+="<base64-data>",d+=`<![CDATA[${A.base64Data}]]>`,d+="</base64-data>",d+="</slash-value>"}else if("chart"===A.type){d+="<chart-value>";const e=A.chart,t=e.dataset;d+=`<dataset dataset-name="${t.datasetName}" type="${t.type}"`,t.categoryProperty&&(d+=` category-property="${t.categoryProperty}"`),t.seriesProperty&&(d+=` series-property="${t.seriesProperty}"`),t.seriesType&&(d+=` series-type="${t.seriesType}"`),t.seriesText&&(d+=` series-text="${t.seriesText}"`),t.valueProperty&&(d+=` value-property="${t.valueProperty}"`),t.rProperty&&(d+=` r-property="${t.rProperty}"`),t.xProperty&&(d+=` x-property="${t.xProperty}"`),t.yProperty&&(d+=` y-property="${t.yProperty}"`),t.collectType&&(d+=` collect-type="${t.collectType}"`),d+="/>";const n=e.xaxes;if(n){d+="<xaxes",n.rotation&&(d+=` rotation="${n.rotation}"`),d+=">";const e=n.scaleLabel;e&&(d+=`<scale-label display="${e.display}"`,e.labelString&&(d+=` label-string="${e.labelString}"`),d+="/>"),d+="</xaxes>"}const i=e.yaxes;if(i){d+="<yaxes",i.rotation&&(d+=` rotation="${i.rotation}"`),d+=">";const e=i.scaleLabel;e&&(d+=`<scale-label display="${e.display}"`,e.labelString&&(d+=` label-string="${e.labelString}"`),d+="/>"),d+="</yaxes>"}const o=e.options;if(o)for(let e of o)d+=`<option type="${e.type}"`,e.position&&(d+=` position="${e.position}"`),void 0!==e.display&&null!==e.display&&(d+=` display="${e.display}"`),e.duration&&(d+=` duration="${e.duration}"`),e.easing&&(d+=` easing="${e.easing}"`),e.text&&(d+=` text="${e.text}"`),d+="/>";d+="</chart-value>"}const b=i.conditionPropertyItems||[];for(let e of b){d+=`<condition-property-item name="${e.name}"`;const t=e.rowHeight;null!==t&&void 0!==t&&-1!==t&&(d+=` row-height="${t}"`);const n=e.colWidth;if(null!==n&&void 0!==n&&-1!==n&&(d+=` col-width="${n}"`),e.newValue&&""!==e.newValue&&(d+=` new-value="${e.newValue}"`),e.linkUrl&&""!==e.linkUrl){d+=` link-url="${e.linkUrl}"`;let t=e.linkTargetWindow;t&&""!==t||(t="_self"),d+=` link-target-window="${e.linkTargetWindow}"`}d+=">";const i=e.paging;if(i&&(d+=`<paging position="${i.position}" line="${i.line}"/>`),e.linkParameters&&e.linkParameters.length>0)for(let t of e.linkParameters)d+=`<link-parameter name="${t.name}">`,d+=`<value><![CDATA[${t.value}]]></value>`,d+="</link-parameter>";const o=e.cellStyle;o&&(d+=f(o,!0)),d+=h(e.conditions),d+="</condition-property-item>"}d+="</cell>"}o+=d,o+=a,o+=s;const m=e.reportDef.header;m&&(m.left||m.center||m.right)&&(o+="<header ",m.fontFamily&&(o+=` font-family="${m.fontFamily}"`),m.fontSize&&(o+=` font-size="${m.fontSize}"`),m.forecolor&&(o+=` forecolor="${m.forecolor}"`),m.bold&&(o+=` bold="${m.bold}"`),m.italic&&(o+=` italic="${m.italic}"`),m.underline&&(o+=` underline="${m.underline}"`),m.margin&&(o+=` margin="${m.margin}"`),o+=">",m.left&&(o+=`<left><![CDATA[${m.left}]]></left>`),m.center&&(o+=`<center><![CDATA[${m.center}]]></center>`),m.right&&(o+=`<right><![CDATA[${m.right}]]></right>`),o+="</header>");const g=e.reportDef.footer;g&&(g.left||g.center||g.right)&&(o+="<footer ",g.fontFamily&&(o+=` font-family="${g.fontFamily}"`),g.fontSize&&(o+=` font-size="${g.fontSize}"`),g.forecolor&&(o+=` forecolor="${g.forecolor}"`),g.bold&&(o+=` bold="${g.bold}"`),g.italic&&(o+=` italic="${g.italic}"`),g.underline&&(o+=` underline="${g.underline}"`),g.margin&&(o+=` margin="${g.margin}"`),o+=">",g.left&&(o+=`<left><![CDATA[${g.left}]]></left>`),g.center&&(o+=`<center><![CDATA[${g.center}]]></center>`),g.right&&(o+=`<right><![CDATA[${g.right}]]></right>`),o+="</footer>");let y="";const v=e.reportDef.datasources;for(let e of v){let t=`<datasource name="${p(e.name)}" type="${e.type}"`,n=e.type;if("jdbc"===n){t+=` username="${p(e.username)}"`,t+=` password="${p(e.password)}"`,t+=` url="${p(e.url)}"`,t+=` driver="${e.driver}"`,t+=">";for(let n of e.datasets){t+=`<dataset name="${p(n.name)}" type="sql">`,t+=`<sql><![CDATA[${n.sql}]]></sql>`;for(let e of n.fields)t+=`<field name="${e.name}"/>`;for(let e of n.parameters)t+=`<parameter name="${p(e.name)}" type="${e.type}" default-value="${p(e.defaultValue)}"/>`;t+="</dataset>"}}else if("spring"===n){t+=` bean="${e.beanId}">`;for(let n of e.datasets){t+=`<dataset name="${p(n.name)}" type="bean" method="${n.method}" clazz="${n.clazz}">`;for(let e of n.fields)t+=`<field name="${e.name}"/>`;t+="</dataset>"}}else if("buildin"===n){t+=">";for(let n of e.datasets){t+=`<dataset name="${p(n.name)}" type="sql">`,t+=`<sql><![CDATA[${n.sql}]]></sql>`;for(let e of n.fields)t+=`<field name="${e.name}"/>`;for(let e of n.parameters)t+=`<parameter name="${e.name}" type="${e.type}" default-value="${e.defaultValue}"/>`;t+="</dataset>"}}y+=t+="</datasource>"}o+=y;const b=e.reportDef.paper;let w=0;return null!==b.htmlIntervalRefreshValue&&void 0!==b.htmlIntervalRefreshValue&&(w=b.htmlIntervalRefreshValue),o+=`<paper type="${b.paperType}" left-margin="${b.leftMargin}" right-margin="${b.rightMargin}"\n top-margin="${b.topMargin}" bottom-margin="${b.bottomMargin}" paging-mode="${b.pagingMode}" fixrows="${b.fixRows}"\n width="${b.width}" height="${b.height}" orientation="${b.orientation}" html-report-align="${b.htmlReportAlign}" bg-image="${b.bgImage||""}" html-interval-refresh-value="${w}" column-enabled="${b.columnEnabled}"`,b.columnEnabled&&(o+=` column-count="${b.columnCount}" column-margin="${b.columnMargin}"`),o+="></paper>",e.reportDef.searchFormXml&&(o+=e.reportDef.searchFormXml),o+="</ureport>",encodeURI(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+=`<condition type="${n.type}" op="${p(n.operation)}" id="${n.id}"`,n.join?t+=` join="${n.join}">`:t+=">",t+=`<left><![CDATA[${n.left}]]></left>`,t+=`<right><![CDATA[${n.right}]]></right>`):(n.left?t+=`<condition property="${n.left}" op="${p(n.operation)}" id="${n.id}"`:t+=`<condition op="${p(n.operation)}" id="${n.id}"`,t+=` type="${n.type}"`,n.join?t+=` join="${n.join}">`:t+=">",t+=`<value><![CDATA[${n.right}]]></value>`),t+="</condition>";return t}function f(e,t){let n="<cell-style";t&&(n+=' for-condition="true"'),e.fontSize&&""!==e.fontSize&&(n+=` font-size="${e.fontSize}"`),e.fontSizeScope&&(n+=` font-size-scope="${e.fontSizeScope}"`),e.forecolor&&""!==e.forecolor&&(n+=` forecolor="${e.forecolor}"`),e.forecolorScope&&(n+=` forecolor-scope="${e.forecolorScope}"`),e.fontFamily&&("0"===e.fontFamily?n+=' font-family=""':n+=` font-family="${e.fontFamily}"`),e.fontFamilyScope&&(n+=` font-family-scope="${e.fontFamilyScope}"`),e.bgcolor&&""!==e.bgcolor&&(n+=` bgcolor="${e.bgcolor}"`),e.bgcolorScope&&(n+=` bgcolor-scope="${e.bgcolorScope}"`),e.format&&""!==e.format&&(n+=` format="${e.format}"`),void 0!==e.bold&&null!==e.bold&&(n+=` bold="${e.bold}"`),e.boldScope&&(n+=` bold-scope="${e.boldScope}"`),void 0!==e.italic&&null!==e.italic&&(n+=` italic="${e.italic}"`),e.italicScope&&(n+=` italic-scope="${e.italicScope}"`),void 0!==e.underline&&null!==e.underline&&(n+=` underline="${e.underline}"`),e.underlineScope&&(n+=` underline-scope="${e.underlineScope}"`),void 0!==e.wrapCompute&&null!==e.wrapCompute&&(n+=` wrap-compute="${e.wrapCompute}"`),e.align&&""!==e.align&&(n+=` align="${e.align}"`),e.alignScope&&(n+=` align-scope="${e.alignScope}"`),e.valign&&""!==e.valign&&(n+=` valign="${e.valign}"`),e.valignScope&&(n+=` valign-scope="${e.valignScope}"`),e.lineHeight&&(n+=` line-height="${e.lineHeight}"`),n+=">";let i=e.leftBorder;i&&"none"!==i.style&&(n+=`<left-border width="${i.width}" style="${i.style}" color="${i.color}"/>`);let o=e.rightBorder;o&&"none"!==o.style&&(n+=`<right-border width="${o.width}" style="${o.style}" color="${o.color}"/>`);let r=e.topBorder;r&&"none"!==r.style&&(n+=`<top-border width="${r.width}" style="${r.style}" color="${r.color}"/>`);let a=e.bottomBorder;return a&&"none"!==a.style&&(n+=`<bottom-border width="${a.width}" style="${a.style}" color="${a.color}"/>`),n+"</cell-style>"}function p(e){return e.replace(/[<>&"]/g,function(e){return{"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;"}[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){(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<e.length;++n)i.push(t(e[n],n));return i}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,i){return Et(e,t,n,i,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=p(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function g(e){var t=f(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var y=o.momentProperties=[];function v(e,t){var n,i,o;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),y.length>0)for(n=0;n<y.length;n++)s(o=t[i=y[n]])||(e[i]=o);return e}var A=!1;function b(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===A&&(A=!0,o.updateOffset(this),A=!1)}function w(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function _(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=_(t)),n}function x(e,t,n){var i,o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(i=0;i<o;i++)(n&&e[i]!==t[i]||!n&&M(e[i])!==M(t[i]))&&a++;return a+r}function k(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function S(e,t){var n=!0;return h(function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){for(var i,r=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){for(var s in i+="\n["+a+"] ",arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[a];r.push(i)}k((Array.prototype.slice.call(r).join(""),(new Error).stack)),n=!1}return t.apply(this,arguments)},t)}var C,E={};function L(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),E[e]||(k(),E[e]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e,t){var n,i=h({},e);for(n in t)u(t,n)&&(a(e[n])&&a(t[n])?(i[n]={},h(i[n],e[n]),h(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)u(e,n)&&!u(t,n)&&a(e[n])&&(i[n]=h({},i[n]));return i}function Y(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var R={};function B(e,t){var n=e.toLowerCase();R[n]=R[n+"s"]=R[t]=e}function O(e){return"string"==typeof e?R[e]||R[e.toLowerCase()]:void 0}function H(e){var t,n,i={};for(n in e)u(e,n)&&(t=O(n))&&(i[t]=e[n]);return i}var P={};function I(e,t){P[e]=t}function j(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 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<n;t++)W[o[t]]?o[t]=W[o[t]]:o[t]=(i=o[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,r="";for(i=0;i<n;i++)r+=T(o[i])?o[i].call(t,e):o[i];return r}}(t),z[t](e)):e.localeData().invalidDate()}function Q(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;n>=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;n<e.length;n++)fe[e[n]]=i}function me(e,t){pe(e,function(e,n,i,o){i._w=i._w||{},t(e,i._w,i,o)})}function ge(e,t,n){null!=t&&u(fe,e)&&fe[e](t,n._a,n,e)}var ye=0,ve=1,Ae=2,be=3,we=4,_e=5,Me=6,xe=7,ke=8;function Se(e){return Ce(e)?366:365}function Ce(e){return e%4==0&&e%100!=0||e%400==0}$("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),B("year","y"),I("year",1),ce("Y",re),ce("YY",q,V),ce("YYYY",ne,K),ce("YYYYY",ie,X),ce("YYYYYY",ie,X),pe(["YYYYY","YYYYYY"],ye),pe("YYYY",function(e,t){t[ye]=2===e.length?o.parseTwoDigitYear(e):M(e)}),pe("YY",function(e,t){t[ye]=o.parseTwoDigitYear(e)}),pe("Y",function(e,t){t[ye]=parseInt(e,10)}),o.parseTwoDigitYear=function(e){return M(e)+(M(e)>68?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<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),B("month","M"),I("month",8),ce("M",q),ce("MM",q,V),ce("MMM",function(e,t){return t.monthsShortRegex(e)}),ce("MMMM",function(e,t){return t.monthsRegex(e)}),pe(["M","MM"],function(e,t){t[ve]=M(e)-1}),pe(["MMM","MMMM"],function(e,t,n,i){var o=n._locale.monthsParse(e,i,n._strict);null!=o?t[ve]=o:p(n).invalidMonth=e});var Be=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),He="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Pe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=M(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Re(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ie(e){return null!=e?(Pe(this,e),o.updateOffset(this,!0),this):De(this,"Month")}var je=le,Fe=le;function Ne(){function e(e,t){return t.length-e.length}var t,n,i=[],o=[],r=[];for(t=0;t<12;t++)n=f([2e3,t]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(e),o.sort(e),r.sort(e),t=0;t<12;t++)i[t]=he(i[t]),o[t]=he(o[t]);for(t=0;t<24;t++)r[t]=he(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ze(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=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(207)("./"+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;r<e.length;){for(t=(o=lt(e[r]).split("-")).length,n=(n=lt(e[r+1]))?n.split("-"):null;t>0;){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&&(t<ye||t>Ae)&&(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;t<n;t++)if(At[t][1].exec(l[1])){o=At[t][0],i=!1!==At[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(l[3])){r=(l[2]||" ")+bt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!i&&null!=r)return void(e._isValid=!1);if(l[4]){if(!vt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(r||"")+(a||""),St(e)}else e._isValid=!1}var Mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;var xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t=Mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(t){var n=function(e,t,n,i,o,r){var a=[function(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}(e),He.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return r&&a.push(parseInt(r,10)),a}(t[4],t[3],t[2],t[5],t[6],t[7]);if(!function(e,t,n){if(e&&Ve.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return p(n).weekdayMismatch=!0,n._isValid=!1,!1;return!0}(t[1],n,e))return;e._a=n,e._tzm=function(e,t,n){if(e)return xt[e];if(t)return 0;var i=parseInt(n,10),o=i%100;return 60*((i-o)/100)+o}(t[8],t[9],t[10]),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function St(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],p(e).empty=!0;var t,n,i,r,a,s=""+e._i,l=s.length,d=0;for(i=Q(e._f,e._locale).match(F)||[],t=0;t<i.length;t++)r=i[t],(n=(s.match(ue(r,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&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;o<e._f.length;o++)r=0,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],St(t),m(t)&&(r+=p(t).charsLeftOver,r+=10*p(t).unusedTokens.length,p(t).score=r,(null==i||r<i)&&(i=r,n=t));h(e,n||t)}(e):n?St(e):function(e){var t=e._i;s(t)?e._d=new Date(o.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=wt.exec(e._i);null===t?(_t(e),!1===e._isValid&&(delete e._isValid,kt(e),!1===e._isValid&&(delete e._isValid,o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=c(t.slice(0),function(e){return parseInt(e,10)}),mt(e)):a(t)?function(e){if(!e._d){var t=H(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),mt(e)}}(e):l(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Et(e,t,n,i,o){var s,l={};return!0!==n&&!1!==n||(i=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||r(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=e,l._f=t,l._strict=i,(s=new b(ft(Ct(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Lt(e,t,n,i){return Et(e,t,n,i,!1)}o.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),o.ISO_8601=function(){},o.RFC_2822=function(){};var Tt=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Lt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Dt=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Lt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?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<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Rt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Bt(e){var t=H(e),n=t.year||0,i=t.quarter||0,o=t.month||0,r=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,d=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Ee.call(Rt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<Rt.length;++i)if(e[Rt[i]]){if(n)return!1;parseFloat(e[Rt[i]])!==M(e[Rt[i]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*d+6e4*l+1e3*s*60*60,this._days=+a+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=ht(),this._bubble()}function Ot(e){return e instanceof Bt}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){$(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+j(~~(e/60),2)+t+j(~~e%60,2)})}Pt("Z",":"),Pt("ZZ",""),ce("Z",se),ce("ZZ",se),pe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=jt(se,e)});var It=/([\+\-]|\d\d)/gi;function jt(e,t){var n=(t||"").match(e);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(It)||["-",0,0],o=60*i[1]+M(i[2]);return 0===o?0:"+"===i[0]?o:-o}function Ft(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(w(e)||d(e)?e.valueOf():Lt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),o.updateOffset(n,!1),n):Lt(e).local()}function Nt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function zt(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Wt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,$t=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var n,i,o,r,a,s,d=e,c=null;return Ot(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(d={},t?d[t]=e:d.milliseconds=e):(c=Wt.exec(e))?(n="-"===c[1]?-1:1,d={y:0,d:M(c[Ae])*n,h:M(c[be])*n,m:M(c[we])*n,s:M(c[_e])*n,ms:M(Ht(1e3*c[Me]))*n}):(c=$t.exec(e))?(n="-"===c[1]?-1:(c[1],1),d={y:Qt(c[2],n),M:Qt(c[3],n),w:Qt(c[4],n),d:Qt(c[5],n),h:Qt(c[6],n),m:Qt(c[7],n),s:Qt(c[8],n)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(r=Lt(d.from),a=Lt(d.to),o=r.isValid()&&a.isValid()?(a=Ft(a,r),r.isBefore(a)?s=Gt(r,a):((s=Gt(a,r)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(d={}).ms=o.milliseconds,d.M=o.months),i=new Bt(d),Ot(e)&&u(e,"_locale")&&(i._locale=e._locale),i}function Qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Gt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(e,t){return function(n,i){var o;return null===i||isNaN(+i)||(L(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),Jt(this,Ut(n="string"==typeof n?+n:n,i),e),this}}function Jt(e,t,n,i){var r=t._milliseconds,a=Ht(t._days),s=Ht(t._months);e.isValid()&&(i=null==i||i,s&&Pe(e,De(e,"Month")+s*n),a&&Ye(e,"Date",De(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),i&&o.updateOffset(e,a||s))}Ut.fn=Bt.prototype,Ut.invalid=function(){return Ut(NaN)};var Kt=Vt(1,"add"),Xt=Vt(-1,"subtract");function qt(e,t){var n,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?n=(t-o)/(o-e.clone().add(i-1,"months")):n=(t-o)/(e.clone().add(i+1,"months")-o),-(i+n)||0}function Zt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ht(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tn(){return this._locale}function nn(e,t){$(0,[e,e.length],0,t)}function on(e,t,n,i,o){var r;return null==e?Ue(this,i,o).year:(t>(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()<this.clone().startOf(t).valueOf())},un.isBefore=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():this.clone().endOf(t).valueOf()<n.valueOf())},un.isBetween=function(e,t,n,i){return("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},un.isSame=function(e,t){var n,i=w(e)?e:Lt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=O(t||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},un.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},un.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},un.isValid=function(){return m(this)},un.lang=en,un.locale=Zt,un.localeData=tn,un.max=Dt,un.min=Tt,un.parsingFlags=function(){return h({},p(this))},un.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:P[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=H(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(T(this[e=O(e)]))return this[e](t);return this},un.startOf=function(e){switch(e=O(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},un.subtract=Xt,un.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},un.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},un.toDate=function(){return new Date(this.valueOf())},un.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?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]||o<Fn.s&&["ss",o]||r<=1&&["m"]||r<Fn.m&&["mm",r]||a<=1&&["h"]||a<Fn.h&&["hh",a]||s<=1&&["d"]||s<Fn.d&&["dd",s]||l<=1&&["M"]||l<Fn.M&&["MM",l]||d<=1&&["y"]||["yy",d];return c[2]=t,c[3]=+e>0,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(160)(e))},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=$('<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true"></div>'),a=$(`<div class="${o}"></div>`);r.append(a);let s=$(`<div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${e}\n </h4>\n </div>\n <div class="modal-body">\n ${"string"==typeof t?t:""}\n </div>`);"object"==typeof t&&s.find(".modal-body").append(t),a.append(s);let l=$('<div class="modal-footer"></div>');if(s.append(l),n)n.forEach((e,t)=>{let n=$(`<button type="button" class="btn btn-default">${e.name}</button>`);n.click(function(t){e.click.call(this),e.holdDialog||r.modal("hide")}.bind(this)),l.append(n)});else{let e=$('<button type="button" class="btn btn-default" data-dismiss="modal">确定</button>');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 e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function s(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,i){return ct(e,t,n,i,!0).utc()}function u(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}),e._pf}function h(e){if(null==e._isValid){var t=u(e),n=i.call(t.parsedDateParts,function(e){return null!=e});e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function f(e){var t=c(NaN);return null!=e?d(u(t),e):u(t).userInvalidated=!0,t}function p(e){return void 0===e}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var m=o.momentProperties=[];function g(e,t){var n,i,o;if(p(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),p(t._i)||(e._i=t._i),p(t._f)||(e._f=t._f),p(t._l)||(e._l=t._l),p(t._strict)||(e._strict=t._strict),p(t._tzm)||(e._tzm=t._tzm),p(t._isUTC)||(e._isUTC=t._isUTC),p(t._offset)||(e._offset=t._offset),p(t._pf)||(e._pf=u(t)),p(t._locale)||(e._locale=t._locale),m.length>0)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;i<o;i++)(n&&e[i]!==t[i]||!n&&w(e[i])!==w(t[i]))&&a++;return a+r}function M(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function x(e,t){var n=!0;return d(function(){return null!=o.deprecationHandler&&o.deprecationHandler(null,e),n&&(M((Array.prototype.slice.call(arguments).join(", "),(new Error).stack)),n=!1),t.apply(this,arguments)},t)}var k,S={};function C(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),S[e]||(M(),S[e]=!0)}function E(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function L(e){return"[object Object]"===Object.prototype.toString.call(e)}function T(e,t){var n,i=d({},e);for(n in t)l(t,n)&&(L(e[n])&&L(t[n])?(i[n]={},d(i[n],e[n]),d(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);return i}function D(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var Y,R={};function B(e){return e?e.toLowerCase().replace("_","-"):e}function O(t){var i=null;if(!R[t]&&void 0!==e&&e&&e.exports)try{i=Y._abbr,n(547)("./"+t),H(i)}catch(e){}return R[t]}function H(e,t){var n;return e&&(n=p(t)?I(e):P(e,t))&&(Y=n),Y._abbr}function P(e,t){return null!==t?(t.abbr=e,null!=R[e]?(C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),t=T(R[e]._config,t)):null!=t.parentLocale&&(null!=R[t.parentLocale]?t=T(R[t.parentLocale]._config,t):C("parentLocaleUndefined","specified parentLocale is not defined yet")),R[e]=new D(t),H(e),R[e]):(delete R[e],null)}function I(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Y;if(!r(e)){if(t=O(e))return t;e=[e]}return function(e){for(var t,n,i,o,r=0;r<e.length;){for(t=(o=B(e[r]).split("-")).length,n=(n=B(e[r+1]))?n.split("-"):null;t>0;){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<n;t++)X[o[t]]?o[t]=X[o[t]]:o[t]=(i=o[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,r="";for(i=0;i<n;i++)r+=o[i]instanceof Function?o[i].call(t,e):o[i];return r}}(t),K[t](e)):e.localeData().invalidDate()}function ee(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(J.lastIndex=0;n>=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;n<e.length;n++)we[e[n]]=i}function Me(e,t){_e(e,function(e,n,i,o){i._w=i._w||{},t(e,i._w,i,o)})}function xe(e,t,n){null!=t&&l(we,e)&&we[e](t,n._a,n,e)}var ke,Se=0,Ce=1,Ee=2,Le=3,Te=4,De=5,Ye=6,Re=7,Be=8;function Oe(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}ke=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},q("M",["MM",2],"Mo",function(){return this.month()+1}),q("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),q("MMMM",0,0,function(e){return this.localeData().months(this,e)}),F("month","M"),ve("M",ae),ve("MM",ae,ne),ve("MMM",function(e,t){return t.monthsShortRegex(e)}),ve("MMMM",function(e,t){return t.monthsRegex(e)}),_e(["M","MM"],function(e,t){t[Ce]=w(e)-1}),_e(["MMM","MMMM"],function(e,t,n,i){var o=n._locale.monthsParse(e,i,n._strict);null!=o?t[Ce]=o:u(n).invalidMonth=e});var He=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ie="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function je(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=w(t);else if("number"!=typeof(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Fe(e){return null!=e?(je(this,e),o.updateOffset(this,!0),this):$(this,"Month")}var Ne=ge,ze=ge;function We(){function e(e,t){return t.length-e.length}var t,n,i=[],o=[],r=[];for(t=0;t<12;t++)n=c([2e3,t]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(e),o.sort(e),r.sort(e),t=0;t<12;t++)i[t]=be(i[t]),o[t]=be(o[t]),r[t]=be(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function $e(e){var t,n=e._a;return n&&-2===u(e).overflow&&(t=n[Ce]<0||n[Ce]>11?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&&(t<Se||t>Ee)&&(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<n;t++)if(Ve[t][1].exec(l[1])){o=Ve[t][0],i=!1!==Ve[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=Je.length;t<n;t++)if(Je[t][1].exec(l[3])){r=(l[2]||" ")+Je[t][0];break}if(null==r)return void(e._isValid=!1)}if(!i&&null!=r)return void(e._isValid=!1);if(l[4]){if(!Ge.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(r||"")+(a||""),lt(e)}else e._isValid=!1}function qe(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=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;t<i.length;t++)r=i[t],(n=(s.match(Ae(r,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&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;o<e._f.length;o++)r=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],lt(t),h(t)&&(r+=u(t).charsLeftOver,r+=10*u(t).unusedTokens.length,u(t).score=r,(null==i||r<i)&&(i=r,n=t));d(e,n||t)}(e):n?lt(e):a(t)?e._d=t:function(e){var t=e._i;void 0===t?e._d=new Date(o.now()):a(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Ke.exec(e._i);null===t?(Xe(e),!1===e._isValid&&(delete e._isValid,o.createFromInputFallback(e))):e._d=new Date(+t[1])}(e):r(t)?(e._a=s(t.slice(0),function(e){return parseInt(e,10)}),st(e)):"object"==typeof t?function(e){if(!e._d){var t=z(e._i);e._a=s([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),st(e)}}(e):"number"==typeof t?e._d=new Date(t):o.createFromInputFallback(e)}(e),h(e)||(e._d=null),e))}function ct(e,t,n,i,o){var r,a={};return"boolean"==typeof n&&(i=n,n=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=n,a._i=e,a._f=t,a._strict=i,(r=new v($e(dt(a))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function ut(e,t,n,i){return ct(e,t,n,i,!1)}o.ISO_8601=function(){};var ht=x("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=ut.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:f()}),ft=x("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=ut.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?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<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function mt(e){var t=z(e),n=t.year||0,i=t.quarter||0,o=t.month||0,r=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,d=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*d+6e4*l+1e3*s*60*60,this._days=+a+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=I(),this._bubble()}function gt(e){return e instanceof mt}function yt(e,t){q(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+G(~~(e/60),2)+t+G(~~e%60,2)})}yt("Z",":"),yt("ZZ",""),ve("Z",me),ve("ZZ",me),_e(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=At(me,e)});var vt=/([\+\-]|\d\d)/gi;function At(e,t){var n=(t||"").match(e)||[],i=((n[n.length-1]||[])+"").match(vt)||["-",0,0],o=60*i[1]+w(i[2]);return"+"===i[0]?o:-o}function bt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(A(e)||a(e)?e.valueOf():ut(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),o.updateOffset(n,!1),n):ut(e).local()}function wt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function _t(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Mt=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,xt=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;function kt(e,t){var n,i,o,r,a,s,d=e,c=null;return gt(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(d={},t?d[t]=e:d.milliseconds=e):(c=Mt.exec(e))?(n="-"===c[1]?-1:1,d={y:0,d:w(c[Ee])*n,h:w(c[Le])*n,m:w(c[Te])*n,s:w(c[De])*n,ms:w(c[Ye])*n}):(c=xt.exec(e))?(n="-"===c[1]?-1:1,d={y:St(c[2],n),M:St(c[3],n),w:St(c[4],n),d:St(c[5],n),h:St(c[6],n),m:St(c[7],n),s:St(c[8],n)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(r=ut(d.from),a=ut(d.to),o=r.isValid()&&a.isValid()?(a=bt(a,r),r.isBefore(a)?s=Ct(r,a):((s=Ct(a,r)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(d={}).ms=o.milliseconds,d.M=o.months),i=new mt(d),gt(e)&&l(e,"_locale")&&(i._locale=e._locale),i}function St(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ct(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Et(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,t){return function(n,i){var o;return null===i||isNaN(+i)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),o=n,n=i,i=o),Tt(this,kt(n="string"==typeof n?+n:n,i),e),this}}function Tt(e,t,n,i){var r=t._milliseconds,a=Et(t._days),s=Et(t._months);e.isValid()&&(i=null==i||i,r&&e._d.setTime(e._d.valueOf()+r*n),a&&U(e,"Date",$(e,"Date")+a*n),s&&je(e,$(e,"Month")+s*n),i&&o.updateOffset(e,a||s))}kt.fn=mt.prototype;var Dt=Lt(1,"add"),Yt=Lt(-1,"subtract");function Rt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=I(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Bt=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Ot(){return this._locale}function Ht(e,t){q(0,[e,e.length],0,t)}function Pt(e,t,n,i,o){var r;return null==e?ot(this,i,o).year:(t>(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().startOf(t).valueOf())},tn.isBefore=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():this.clone().endOf(t).valueOf()<n.valueOf())},tn.isBetween=function(e,t,n,i){return("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},tn.isSame=function(e,t){var n,i=A(e)?e:ut(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=N(t||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},tn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tn.isValid=function(){return h(this)},tn.lang=Bt,tn.locale=Rt,tn.localeData=Ot,tn.max=ft,tn.min=ht,tn.parsingFlags=function(){return d({},u(this))},tn.set=Q,tn.startOf=function(e){switch(e=N(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},tn.subtract=Yt,tn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},tn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},tn.toDate=function(){return this._offset?new Date(this.valueOf()):this._d},tn.toISOString=function(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?E(Date.prototype.toISOString)?this.toDate().toISOString():Z(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):Z(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},tn.toJSON=function(){return this.isValid()?this.toISOString():null},tn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tn.unix=function(){return Math.floor(this.valueOf()/1e3)},tn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tn.year=tt,tn.isLeapYear=function(){return et(this.year())},tn.weekYear=function(e){return Pt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},tn.isoWeekYear=function(e){return Pt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tn.quarter=tn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},tn.month=Fe,tn.daysInMonth=function(){return Oe(this.year(),this.month())},tn.week=tn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},tn.isoWeek=tn.isoWeeks=function(e){var t=ot(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},tn.weeksInYear=function(){var e=this.localeData()._week;return rt(this.year(),e.dow,e.doy)},tn.isoWeeksInYear=function(){return rt(this.year(),1,4)},tn.date=It,tn.day=tn.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},tn.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")},tn.isoWeekday=function(e){return this.isValid()?null==e?this.day()||7:this.day(this.day()%7?e:e-7):null!=e?this:NaN},tn.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")},tn.hour=tn.hours=Jt,tn.minute=tn.minutes=Kt,tn.second=tn.seconds=qt,tn.millisecond=tn.milliseconds=en,tn.utcOffset=function(e,t){var n,i=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=At(me,e):Math.abs(e)<16&&(e*=60),!this._isUTC&&t&&(n=wt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?Tt(this,kt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:wt(this):null!=e?this:NaN},tn.utc=function(e){return this.utcOffset(0,e)},tn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(wt(this),"m")),this},tn.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(At(pe,this._i)),this},tn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ut(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tn.isDST=function(){return this.utcOffset()>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=o<Yn.s&&["s",o]||r<=1&&["m"]||r<Yn.m&&["mm",r]||a<=1&&["h"]||a<Yn.h&&["hh",a]||s<=1&&["d"]||s<Yn.d&&["dd",s]||l<=1&&["M"]||l<Yn.M&&["MM",l]||d<=1&&["y"]||["yy",d];return c[2]=t,c[3]=+e>0,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(160)(e))},function(e,t,n){"use strict";e.exports=n(24),e.exports.easing=n(233),e.exports.canvas=n(232),e.exports.options=n(231)},function(e,t,n){"use strict";var i=n(4);e.exports={_set:function(e,t){return i.merge(this[e]||(this[e]={}),t)}}},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){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]);++o<r;)n=t(n,e[o],o,e);return n}function o(e,t){for(var n=-1,i=e.length;++n<i&&!1!==t(e[n],n,e););return e}function r(e){return i(e,function(e,t){return e+t},0)}t.__esModule=!0,t.to2dArray=function(e){for(var t=0,n=e.length;t<n;)e[t]=[e[t]],t++},t.extendArray=function(e,t){for(var n=0,i=t.length;n<i;)e.push(t[n]),n++},t.pivot=function(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,i=e[0].length,o=0;o<n;o++)for(var r=0;r<i;r++)t[r]||(t[r]=[]),t[r][o]=e[o][r];return t},t.arrayReduce=i,t.arrayFilter=function(e,t){for(var n=-1,i=e.length,o=-1,r=[];++n<i;){var a=e[n];t(a,n,e)&&(r[++o]=a)}return r},t.arrayMap=function(e,t){for(var n=-1,i=e.length,o=-1,r=[];++n<i;){var a=e[n];r[++o]=t(a,n,e)}return r},t.arrayEach=o,t.arraySum=r,t.arrayMax=function(e){return i(e,function(e,t){return e>t?e:t},Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return i(e,function(e,t){return e<t?e:t},Array.isArray(e)?e[0]:void 0)},t.arrayAvg=function(e){return e.length?r(e)/e.length:0},t.arrayFlatten=function e(t){return i(t,function(t,n){return t.concat(Array.isArray(n)?e(n):n)},[])},t.arrayUnique=function(e){var t=[];return o(e,function(e){-1===t.indexOf(e)&&t.push(e)}),t}},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.duckSchema=function e(t){var n;return Array.isArray(t)?n=[]:(n={},l(t,function(t,o){"__children"!==o&&(t&&"object"===(void 0===t?"undefined":i(t))&&!Array.isArray(t)?n[o]=e(t):Array.isArray(t)?t.length&&"object"===i(t[0])&&!Array.isArray(t[0])?n[o]=[e(t[0])]:n[o]=[]:n[o]=null)})),n},t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.extend=function(e,t){return l(t,function(t,n){e[n]=t}),e},t.deepExtend=function e(t,n){l(n,function(o,r){n[r]&&"object"===i(n[r])?(t[r]||(Array.isArray(n[r])?t[r]=[]:"[object Date]"===Object.prototype.toString.call(n[r])?t[r]=n[r]:t[r]={}),e(t[r],n[r])):t[r]=n[r]})},t.deepClone=a,t.clone=function(e){var t={};return l(e,function(e,n){t[n]=e}),t},t.mixin=function(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return(0,o.arrayEach)(n,function(t){e.MIXINS.push(t.MIXIN_NAME),l(t,function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '"+n+"' already exist and cannot be overwritten.");var i;"function"==typeof t?e.prototype[n]=t:Object.defineProperty(e.prototype,n,{get:function(e,t){return e="_"+e,function(){var n;return void 0===this[e]&&(this[e]=(n=t,(Array.isArray(n)||s(n))&&(n=a(n)),n)),this[e]}}(n,t),set:(i=n,i="_"+i,function(e){this[i]=e}),configurable:!0})})}),e},t.isObjectEquals=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.isObject=s,t.defineGetter=function(e,t,n,i){i.value=n,i.writable=!1!==i.writable,i.enumerable=!1!==i.enumerable,i.configurable=!1!==i.configurable,Object.defineProperty(e,t,i)},t.objectEach=l,t.getProperty=function(e,t){var n=e;return l(t.split("."),function(e){if(void 0===(n=n[e]))return n=void 0,!1}),n},t.deepObjectSize=function(e){return s(e)?function e(t){var n=0;return s(t)?l(t,function(t){n+=e(t)}):n++,n}(e):0},t.createObjectPropListener=function(e){var t,n=arguments.length>1&&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;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t.getListenersCounter=function(){return s};var o=n(0),r=n(34),a=n(7),s=0,l=function(){function e(){var t=arguments.length>0&&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;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(1),r=n(2),a=["afterCellMetaReset","afterChange","afterChangesObserved","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","afterRender","beforeRenderer","afterRenderer","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterUpdateSettings","afterValidate","beforeAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeInit","beforeInitWalkontable","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeRender","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyCol","unmodifyCol","unmodifyRow","modifyColHeader","modifyColWidth","modifyRow","modifyRowHeader","modifyRowHeight","modifyData","modifyRowData","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnMove","afterColumnMove","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","modifyColumnHeaderHeight","beforeUndo","afterUndo","beforeRedo","afterRedo","modifyRowHeaderWidth","beforeAutofillInsidePopulate","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","beforeValueRender","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","manualRowHeights","skipLengthCache","afterTrimRow","afterUntrimRow","afterDropdownMenuShow","afterDropdownMenuHide","hiddenRow","hiddenColumn","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing"],s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalBucket=this.createEmptyBucket()}return i(e,null,[{key:"getSingleton",value:function(){return l}}]),i(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return(0,o.arrayEach)(a,function(t){return e[t]=[]}),e}},{key:"getBucket",value:function(){var e=arguments.length>0&&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(;++d<c;)if(l[d]&&!l[d].skip){var u=l[d].call(e,n,i,o,r,a,s);void 0!==u&&(n=u),l[d]&&l[d].runOnce&&this.remove(t,l[d])}var h=this.getBucket(e)[t],f=-1,p=h?h.length:0;if(p)for(;++f<p;)if(h[f]&&!h[f].skip){var m=h[f].call(e,n,i,o,r,a,s);void 0!==m&&(n=m),h[f]&&h[f].runOnce&&this.remove(t,h[f],e)}return n}},{key:"destroy",value:function(){var e=arguments.length>0&&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<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(2),r=n(1),a=n(153),s=n(5),l=new WeakMap,d=null,c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,o.defineGetter)(this,"hot",t,{writable:!1}),(0,o.defineGetter)(this,"t",(0,a.getTranslator)(t),{writable:!1}),l.set(this,{hooks:{}}),d=null,this.pluginName=null,this.pluginsInitializedCallbacks=[],this.isPluginsReady=!1,this.enabled=!1,this.initialized=!1,this.hot.addHook("afterPluginsInitialized",function(){return n.onAfterPluginsInitialized()}),this.hot.addHook("afterUpdateSettings",function(){return n.onUpdateSettings()}),this.hot.addHook("beforeInit",function(){return n.init()})}return i(e,[{key:"init",value:function(){this.pluginName=(0,s.getPluginName)(this.hot,this),this.isEnabled&&this.isEnabled()&&this.enablePlugin(),d||(d=(0,s.getRegistredPluginNames)(this.hot)),d.indexOf(this.pluginName)>=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'<span class="selected">'+String.fromCharCode(10003)+"</span>"+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);0<n.length&&n[0].name===t;)n.shift();return n}},function(e,t,n){var i=n(15);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var i=n(18),o=n(160),r=n(85),a=Object.defineProperty;t.f=n(21)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},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};function o(e){return void 0===e}t.stringify=function(e){var t=void 0;switch(void 0===e?"undefined":i(e)){case"string":case"number":t=""+e;break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t},t.isDefined=function(e){return void 0!==e},t.isUndefined=o,t.isEmpty=function(e){return null===e||""===e||o(e)},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},function(e,t,n){e.exports=!n(31)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(76),o=n(30);e.exports=function(e){return i(o(e))}},function(e,t,n){var i=n(61),o=Math.min;e.exports=function(e){return e>0?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;o<t;o++)n[o]=arguments[o];for(var r=n.length;r--;){var a=(0,i.stringify)(n[r]).toLowerCase();-1===e.indexOf(a)&&e.push(a)}return 1===e.length},t.randomString=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()},t.isPercentValue=function(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)},t.substitute=function(e){var t=arguments.length>1&&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;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),r=n(2),a=n(1),s=d(n(4)),l=d(n(137));function d(e){return e&&e.__esModule?e:{default:e}}var c={},u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,r.defineGetter)(this,"wot",t,{writable:!1}),this.instance=this.wot,this.type="",this.mainTableScrollableElement=null,this.TABLE=this.wot.wtTable.TABLE,this.hider=this.wot.wtTable.hider,this.spreader=this.wot.wtTable.spreader,this.holder=this.wot.wtTable.holder,this.wtRootElement=this.wot.wtTable.wtRootElement,this.trimmingContainer=(0,o.getTrimmingContainer)(this.hider.parentNode.parentNode),this.areElementSizesAdjusted=!1,this.updateStateOfRendering()}return i(e,null,[{key:"registerOverlay",value:function(t,n){if(-1===e.CLONE_TYPES.indexOf(t))throw new Error("Unsupported overlay ("+t+").");c[t]=n}},{key:"createOverlay",value:function(e,t){return new c[e](t)}},{key:"hasOverlay",value:function(e){return void 0!==c[e]}},{key:"isOverlayTypeOf",value:function(e,t){return!(!e||!c[t])&&e instanceof c[t]}},{key:"CLONE_TOP",get:function(){return"top"}},{key:"CLONE_BOTTOM",get:function(){return"bottom"}},{key:"CLONE_LEFT",get:function(){return"left"}},{key:"CLONE_TOP_LEFT_CORNER",get:function(){return"top_left_corner"}},{key:"CLONE_BOTTOM_LEFT_CORNER",get:function(){return"bottom_left_corner"}},{key:"CLONE_DEBUG",get:function(){return"debug"}},{key:"CLONE_TYPES",get:function(){return[e.CLONE_TOP,e.CLONE_BOTTOM,e.CLONE_LEFT,e.CLONE_TOP_LEFT_CORNER,e.CLONE_BOTTOM_LEFT_CORNER,e.CLONE_DEBUG]}}]),i(e,[{key:"updateStateOfRendering",value:function(){var e=this.needFullRender;this.needFullRender=this.shouldBeRendered();var t=e!==this.needFullRender;return t&&!this.needFullRender&&this.reset(),t}},{key:"shouldBeRendered",value:function(){return!0}},{key:"updateTrimmingContainer",value:function(){this.trimmingContainer=(0,o.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){this.mainTableScrollableElement=(0,o.getScrollableElement)(this.wot.wtTable.TABLE)}},{key:"makeClone",value:function(t){if(-1===e.CLONE_TYPES.indexOf(t))throw new Error('Clone type "'+t+'" is not supported.');var n=document.createElement("DIV"),i=document.createElement("TABLE");n.className="ht_clone_"+t+" handsontable",n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.overflow="hidden",i.className=this.wot.wtTable.TABLE.className,n.appendChild(i),this.type=t,this.wot.wtTable.wtRootElement.parentNode.appendChild(n);var r=this.wot.getSetting("preventOverflow");return!0===r||"horizontal"===r&&this.type===e.CLONE_TOP||"vertical"===r&&this.type===e.CLONE_LEFT?this.mainTableScrollableElement=window:this.mainTableScrollableElement=(0,o.getScrollableElement)(this.wot.wtTable.TABLE),new l.default({cloneSource:this.wot,cloneOverlay:this,table:i})}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder,t=this.clone.wtTable.hider,n=e.style,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="<tr><td>t<br>t</td></tr>";var n=document.createElement("CAPTION");n.innerHTML="c<br>c<br>c<br>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;d<a.length&&!s;++d)s=window[a[d]+"RequestAnimationFrame"],l=window[a[d]+"CancelAnimationFrame"]||window[a[d]+"CancelRequestAnimationFrame"];s||(s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-r)),i=window.setTimeout(function(){e(t+n)},n);return r=t+n,i}),l||(l=function(e){clearTimeout(e)});var c=void 0},function(e,t,n){"use strict";t.__esModule=!0,t.isFunction=function(e){return"function"==typeof e},t.throttle=o,t.throttleAfterHits=function(e){var t=arguments.length>1&&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;n<e;n++)t[n]=arguments[n];var o=t[0],r=t.slice(1);return function(){return(0,i.arrayReduce)(r,function(e,t){return t(e)},o.apply(this,arguments))}},t.partial=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return function(){for(var t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];return e.apply(this,n.concat(i))}},t.curry=function(e){var t=e.length;return function n(i){return function(){for(var o=arguments.length,r=Array(o),a=0;a<o;a++)r[a]=arguments[a];var s=i.concat(r);return s.length>=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<o;a++)r[a]=arguments[a];var s=i.concat(r.reverse());return s.length>=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<this.instance.getSettings().fixedRowsTop?t=this.col<this.instance.getSettings().fixedColumnsLeft?"top-left-corner":"top":this.instance.getSettings().fixedRowsBottom&&this.row>=e-this.instance.getSettings().fixedRowsBottom?t=this.col<this.instance.getSettings().fixedColumnsLeft?"bottom-left-corner":"bottom":this.col<this.instance.getSettings().fixedColumnsLeft&&(t="left"),t},t.default=a},function(e,t,n){var i=n(10)("unscopables"),o=Array.prototype;void 0==o[i]&&n(32)(o,i,{}),e.exports=function(e){o[i][e]=!0}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(169),o=n(74);e.exports=Object.keys||function(e){return i(e,o)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(30);e.exports=function(e){return Object(i(e))}},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),void 0!==t&&void 0!==n?(this.row=t,this.col=n):(this.row=null,this.col=null)}return i(e,[{key:"isValid",value:function(e){return!(this.row<0||this.col<0||this.row>=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);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.__esModule=!0,t.default=function(){var e=arguments.length>0&&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<u;c++)n.cellSettings[c]&&s(n.cellSettings[c],t,i);if(a){if(Array.isArray(H.getSettings().colHeaders)){var h=[t,0];h.length+=a,Array.prototype.splice.apply(H.getSettings().colHeaders,h)}B.isSelected()&&n.selRange.from.col>=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<A;v++)n.cellSettings[v]&&n.cellSettings[v].splice(y,i);var b=H.getSettings().fixedColumnsLeft;b>=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(e<n.settings.minRows)for(var t=0,i=n.settings.minRows;t<i-e;t++)L.createRow(H.countRows(),1,"auto")}if(n.settings.minSpareRows){var o=H.countEmptyRows(!0);if(o<n.settings.minSpareRows)for(;o<n.settings.minSpareRows&&H.countSourceRows()<n.settings.maxRows;o++)L.createRow(H.countRows(),1,"auto")}var r=void 0;if((n.settings.minCols||n.settings.minSpareCols)&&(r=H.countEmptyCols(!0)),n.settings.minCols&&!n.settings.columns&&H.countCols()<n.settings.minCols)for(;H.countCols()<n.settings.minCols;r++)L.createCol(H.countCols(),1,"auto");if(n.settings.minSpareCols&&!n.settings.columns&&"array"===H.dataType&&r<n.settings.minSpareCols)for(;r<n.settings.minSpareCols&&H.countCols()<n.settings.maxCols;r++)L.createCol(H.countCols(),1,"auto");var a=H.countRows(),s=H.countCols();if(0!==a&&0!==s||B.deselect(),B.isSelected()){var l=!1,d=n.selRange.from.row,c=n.selRange.from.col,u=n.selRange.to.row,h=n.selRange.to.col;d>a-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);h<y;h++)if(h<f){var w;for(c=0,u=t[h].length;c<g-u;c++)t[h].push(t[h][c%u]);t[h].unshift(e.col+h,e.row,0),(w=H).spliceCol.apply(w,T(t[h]))}else{var _;t[h%f][0]=e.col+h,(_=H).spliceCol.apply(_,T(t[h%f]))}break;case"shift_right":for(m=i?i.col-e.col+1:0,g=i?i.row-e.row+1:0,c=0,u=t.length,v=Math.max(u,g);c<v;c++)if(c<u){var x;for(h=0,f=t[c].length;h<m-f;h++)t[c].push(t[c][h%f]);t[c].unshift(e.row+c,e.col,0),(x=H).spliceRow.apply(x,T(t[c]))}else{var k;t[c%u][0]=e.row+c,(k=H).spliceRow.apply(k,T(t[c%u]))}break;case"overwrite":default:b.row=e.row,b.col=e.col;var S={row:i&&e?i.row-e.row+1:1,col:i&&e?i.col-e.col+1:1},C=0,E=0,L=!0,D=void 0,Y=function(e){var n=arguments.length>1&&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;c<u&&!(i&&b.row>i.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;h<f&&!(i&&b.col>i.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<a;r++){if("object"!==o(l[r]))throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof l[r][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");s=L.colToProp(l[r][1]),d.push([l[r][0],s,Y.getAtCell(j.toPhysicalRow(l[r][0]),l[r][1]),l[r][2]])}i||"object"!==(void 0===e?"undefined":o(e))||(i=t),H.runHooks("afterSetDataAtCell",d,i),N(d,i,function(){z(d,i)})},this.setDataAtRowProp=function(e,t,n,i){var r,a,s=W(e,t,n),l=[];for(r=0,a=s.length;r<a;r++)l.push([s[r][0],s[r][1],Y.getAtCell(j.toPhysicalRow(s[r][0]),s[r][1]),s[r][2]]);i||"object"!==(void 0===e?"undefined":o(e))||(i=t),H.runHooks("afterSetDataAtRowProp",l,i),N(l,i,function(){z(l,i)})},this.listen=function(){D=H.guid},this.unlisten=function(){D=null},this.isListening=function(){return D===H.guid},this.destroyEditor=function(e){B.refreshBorders(e)},this.populateFromArray=function(e,t,n,i,r,a,s,l,d){var c;if("object"!==(void 0===n?"undefined":o(n))||"object"!==o(n[0]))throw new Error("populateFromArray parameter `input` must be an array of arrays");return c="number"==typeof i?new k.CellCoords(i,r):null,R.populateFromArray(new k.CellCoords(e,t),n,c,a,s,l,d)},this.spliceCol=function(e,t,n){var i;return(i=L).spliceCol.apply(i,arguments)},this.spliceRow=function(e,t,n){var i;return(i=L).spliceRow.apply(i,arguments)},this.getSelected=function(){if(B.isSelected())return[n.selRange.from.row,n.selRange.from.col,n.selRange.to.row,n.selRange.to.col]},this.getSelectedRange=function(){if(B.isSelected())return n.selRange},this.render=function(){H.view&&(H.renderCall=!0,H.forceFullRender=!0,B.refreshBorders(null,!0))},this.loadData=function(e){if(Array.isArray(n.settings.dataSchema)?H.dataType="array":(0,l.isFunction)(n.settings.dataSchema)?H.dataType="function":H.dataType="object",L&&L.destroy(),L=new u.default(H,n,P),"object"===(void 0===e?"undefined":o(e))&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("loadData only accepts array of objects or array of arrays ("+(void 0===e?"undefined":o(e))+" given)");var t;e=[];var i,r=0,a=L.getSchema();for(r=0,i=n.settings.startRows;r<i;r++)if("object"!==H.dataType&&"function"!==H.dataType||!n.settings.dataSchema)if("array"===H.dataType)t=(0,p.deepClone)(a[0]),e.push(t);else{t=[];for(var s=0,d=n.settings.startCols;s<d;s++)t.push(null);e.push(t)}else t=(0,p.deepClone)(a),e.push(t)}n.isPopulated=!1,P.prototype.data=e,Array.isArray(e[0])&&(H.dataType="array"),L.dataSource=e,Y.data=e,Y.dataType=H.dataType,Y.colToProp=L.colToProp.bind(L),Y.propToCol=L.propToCol.bind(L),n.cellSettings.length=0,R.adjustRowsAndCols(),H.runHooks("afterLoadData",n.firstRun),n.firstRun?n.firstRun=[null,"loadData"]:(H.runHooks("afterChange",null,"loadData"),H.render()),n.isPopulated=!0},this.getData=function(e,t,n,i){return(0,d.isUndefined)(e)?L.getAll():L.getRange(new k.CellCoords(e,t),new k.CellCoords(n,i),L.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,i){return L.getCopyableText(new k.CellCoords(e,t),new k.CellCoords(n,i))},this.getCopyableData=function(e,t){return L.getCopyable(e,L.colToProp(t))},this.getSchema=function(){return L.getSchema()},this.updateSettings=function(e,t){var i=!1,o=void 0,r=void 0,c=void 0;if((0,d.isDefined)(e.rows))throw new Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if((0,d.isDefined)(e.cols))throw new Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(o in e)"data"!==o&&(S.default.getSingleton().getRegistered().indexOf(o)>-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<c;o++)i&&!u(o)||(n.columnSettings[r]=(0,s.columnFactory)(P,n.columnsSettingConflicts),h=n.columnSettings[r].prototype,u&&(f=i?u(o):u[r])&&((0,p.extend)(h,f),(0,p.extend)(h,$(f))),r++)}if((0,d.isDefined)(e.cell))for(var m in e.cell)if((0,p.hasOwnProperty)(e.cell,m)){var g=e.cell[m];H.setCellMetaObject(g.row,g.col,g)}H.runHooks("afterCellMetaReset"),(0,d.isDefined)(e.className)&&(P.prototype.className&&(0,a.removeClass)(H.rootElement,P.prototype.className),e.className&&(0,a.addClass)(H.rootElement,e.className));var y=H.rootElement.style.height;""!==y&&(y=parseInt(H.rootElement.style.height,10));var v=e.height;((0,l.isFunction)(v)&&(v=v()),t)&&(H.rootElement.getAttribute("style")&&H.rootElement.setAttribute("data-initialstyle",H.rootElement.getAttribute("style")));if(null===v){var A=H.rootElement.getAttribute("data-initialstyle");A&&(A.indexOf("height")>-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<o;a++)r[a-2]=arguments[a];(i=n.cellSettings).splice.apply(i,[e,t].concat(r))},this.setCellMetaObject=function(e,t,n){if("object"===(void 0===n?"undefined":o(n)))for(var i in n)if((0,p.hasOwnProperty)(n,i)){var r=n[i];this.setCellMeta(e,t,i,r)}},this.setCellMeta=function(e,t,o,r){var a=j.toPhysical(e,t),l=i(a,2);e=l[0],t=l[1],n.columnSettings[t]||(n.columnSettings[t]=(0,s.columnFactory)(P,n.columnsSettingConflicts)),n.cellSettings[e]||(n.cellSettings[e]=[]),n.cellSettings[e][t]||(n.cellSettings[e][t]=new n.columnSettings[t]),n.cellSettings[e][t][o]=r,H.runHooks("afterSetCellMeta",e,t,o,r)},this.getCellsMeta=function(){return(0,m.arrayFlatten)(n.cellSettings)},this.getCellMeta=function(e,t){var o,r=L.colToProp(t),a=e,l=t,d=j.toPhysical(e,t),c=i(d,2);if(e=c[0],t=c[1],n.columnSettings[t]||(n.columnSettings[t]=(0,s.columnFactory)(P,n.columnsSettingConflicts)),n.cellSettings[e]||(n.cellSettings[e]=[]),n.cellSettings[e][t]||(n.cellSettings[e][t]=new n.columnSettings[t]),(o=n.cellSettings[e][t]).row=e,o.col=t,o.visualRow=a,o.visualCol=l,o.prop=r,o.instance=H,H.runHooks("beforeGetCellMeta",e,t,o),(0,p.extend)(o,$(o)),o.cells){var u=o.cells.call(o,e,t,r);u&&((0,p.extend)(o,u),(0,p.extend)(o,$(u)))}return H.runHooks("afterGetCellMeta",e,t,o),o},this.getCellMetaAtRow=function(e){return n.cellSettings[e]},this.isColumnModificationAllowed=function(){return!("object"===H.dataType||H.getSettings().columns)};var U=(0,M.cellMethodLookupFactory)("renderer");this.getCellRenderer=function(e,t){return(0,y.getRenderer)(U.call(this,e,t))},this.getCellEditor=(0,M.cellMethodLookupFactory)("editor");var Q=(0,M.cellMethodLookupFactory)("validator");function G(){throw new Error("This method cannot be called because this Handsontable instance has been destroyed")}this.getCellValidator=function(e,t){var n=Q.call(this,e,t);return"string"==typeof n&&(n=(0,v.getValidator)(n)),n},this.validateCells=function(e){var t=new F;e&&(t.onQueueEmpty=e);for(var n=H.countRows()-1;n>=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<t;e++)if(H.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=n.settings.columns&&(0,l.isFunction)(n.settings.columns),i=n.settings.colHeaders;if(void 0===(e=H.runHooks("modifyColHeader",e))){for(var o=[],r=t?H.countSourceCols():H.countCols(),a=0;a<r;a++)o.push(H.getColHeader(a));i=o}else{var s=e,d=function(e){for(var t=[],n=H.countSourceCols(),i=0;i<n;i++)(0,l.isFunction)(H.getSettings().columns)&&H.getSettings().columns(i)&&t.push(i);return t[e]}(e=H.runHooks("modifyCol",e));n.settings.columns&&(0,l.isFunction)(n.settings.columns)&&n.settings.columns(d)&&n.settings.columns(d).title?i=n.settings.columns(d).title:n.settings.columns&&n.settings.columns[e]&&n.settings.columns[e].title?i=n.settings.columns[e].title:Array.isArray(n.settings.colHeaders)&&void 0!==n.settings.colHeaders[e]?i=n.settings.colHeaders[e]:(0,l.isFunction)(n.settings.colHeaders)?i=n.settings.colHeaders(e):n.settings.colHeaders&&"string"!=typeof n.settings.colHeaders&&"number"!=typeof n.settings.colHeaders&&(i=(0,M.spreadsheetColumnLabel)(s))}return i},this._getColWidthFromSettings=function(e){var t=H.getCellMeta(0,e),i=t.width;if(void 0!==i&&i!==n.settings.width||(i=t.colWidths),void 0!==i&&null!==i){switch(void 0===i?"undefined":o(i)){case"object":i=i[e];break;case"function":i=i(e)}"string"==typeof i&&(i=parseInt(i,10))}return i},this.getColWidth=function(e){var t=H._getColWidthFromSettings(e);return void 0===(t=H.runHooks("modifyColWidth",t,e))&&(t=k.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=n.settings.rowHeights;if(void 0!==t&&null!==t){switch(void 0===t?"undefined":o(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e){var t=H._getRowHeightFromSettings(e);return H.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return H.runHooks("modifySourceLength")||(H.getSourceData()?H.getSourceData().length:0)},this.countSourceCols=function(){var e=H.getSourceData()&&H.getSourceData()[0]?H.getSourceData()[0]:[];return(0,p.isObject)(e)?(0,p.deepObjectSize)(e):e.length||0},this.countRows=function(){return L.getLength()},this.countCols=function(){var e=this.getSettings().maxCols,t=!1,i=0;if("array"===H.dataType&&(t=n.settings.data&&n.settings.data[0]&&n.settings.data[0].length),t&&(i=n.settings.data[0].length),n.settings.columns)if((0,l.isFunction)(n.settings.columns))if("array"===H.dataType){for(var o=0,r=0;r<i;r++)n.settings.columns(r)&&o++;i=o}else"object"!==H.dataType&&"function"!==H.dataType||(i=L.colToPropCache.length);else i=n.settings.columns.length;else"object"!==H.dataType&&"function"!==H.dataType||(i=L.colToPropCache.length);return Math.min(e,i)},this.rowOffset=function(){return H.view.wt.wtTable.getFirstRenderedRow()},this.colOffset=function(){return H.view.wt.wtTable.getFirstRenderedColumn()},this.countRenderedRows=function(){return H.view.wt.drawn?H.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return H.view.wt.drawn?H.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return H.view.wt.drawn?H.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return H.view.wt.drawn?H.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(e){for(var t,n=H.countRows()-1,i=0;n>=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;e<t;e++)clearTimeout(this.timeouts[e])},S.default.getSingleton().run(H,"construct")};var r=L(n(86)),a=n(0),s=n(66),l=n(35),d=n(20),c=n(25),u=L(n(199)),h=L(n(201)),f=L(n(4)),p=n(2),m=n(1),g=n(5),y=n(9),v=n(26),A=n(27),b=n(6),w=L(n(267)),_=L(n(200)),M=n(65),x=n(153),k=n(11),S=L(n(8)),C=L(n(87)),E=n(63);function L(e){return e&&e.__esModule?e:{default:e}}function T(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var D=null},function(e,t,n){"use strict";t.__esModule=!0,t.spreadsheetColumnLabel=s,t.spreadsheetColumnIndex=function(e){var t=0;if(e)for(var n=0,i=e.length-1;n<e.length;n+=1,i-=1)t+=Math.pow(a,i)*(r.indexOf(e[n])+1);return--t},t.createSpreadsheetData=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e<n;e++){var r=[];for(t=0;t<i;t++)r.push(s(t)+(e+1));o.push(r)}return o},t.createSpreadsheetObjectData=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e<n;e++){var r={};for(t=0;t<i;t++)r["prop"+t]=s(t)+(e+1);o.push(r)}return o},t.createEmptySpreadsheetData=function(e,t){for(var n=[],i=void 0,o=0;o<e;o++){i=[];for(var r=0;r<t;r++)i.push("");n.push(i)}return n},t.translateRowsToColumns=function(e){var t,n,i,o,r=[],a=0;for(t=0,n=e.length;t<n;t++)for(i=0,o=e[t].length;i<o;i++)i==a&&(r.push([]),a++),r[i].push(e[t][i]);return r},t.cellMethodLookupFactory=function(e,t){return t=void 0===t||t,function(n,r){return function n(r){if(r){if((0,o.hasOwnProperty)(r,e)&&void 0!==r[e])return r[e];if((0,o.hasOwnProperty)(r,"type")&&r.type){var a;if("string"!=typeof r.type)throw new Error("Cell type must be a string ");if(a=(0,i.getCellType)(r.type),(0,o.hasOwnProperty)(a,e))return a[e];if(t)return}return n(Object.getPrototypeOf(r))}}("number"==typeof n?this.getCellMeta(n,r):n)}};var i=n(63),o=n(2),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ",a=r.length;function s(e){for(var t=e+1,n="",i=void 0;t>0;)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;o<r;o++)n.prototype[t[o]]=void 0;return n};var i=n(2)},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),r=n(1),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return i(e,[{key:"addRow",value:function(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"addColumnHeadersRow",value:function(e){if(null!=this.hot.getColHeader(0)){var t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tHead.appendChild(this.createColumnHeadersRow()),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}}},{key:"addColumn",value:function(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"getHeights",value:function(e){this.injected||this.injectTable(),(0,r.arrayEach)(this.rows,function(t){e(t.row,(0,o.outerHeight)(t.table)-1)})}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,r.arrayEach)(this.columns,function(t){e(t.col,(0,o.outerWidth)(t.table))})}},{key:"setSettings",value:function(e){this.settings=e}},{key:"setSetting",value:function(e,t){this.settings||(this.settings={}),this.settings[e]=t}},{key:"getSettings",value:function(){return this.settings}},{key:"getSetting",value:function(e){return this.settings?this.settings[e]:null}},{key:"createColGroupsCol",value:function(){var e=this,t=document.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1)),this.samples.forEach(function(n){(0,r.arrayEach)(n.strings,function(n){t.appendChild(e.createColElement(n.col))})}),t}},{key:"createRow",value:function(e){var t=this,n=document,i=n.createDocumentFragment(),o=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,o),i.appendChild(o)),this.samples.forEach(function(o){(0,r.arrayEach)(o.strings,function(o){var r=o.col,a=t.hot.getCellMeta(e,r);a.col=r,a.row=e;var s=t.hot.getCellRenderer(a),l=n.createElement("td");s(t.hot,l,e,r,t.hot.colToProp(r),o.value,a),i.appendChild(l)})}),i}},{key:"createColumnHeadersRow",value:function(){var e=this,t=document,n=t.createDocumentFragment();if(this.hot.hasRowHeaders()){var i=t.createElement("th");this.hot.view.appendColHeader(-1,i),n.appendChild(i)}return this.samples.forEach(function(i){(0,r.arrayEach)(i.strings,function(i){var o=i.col,r=t.createElement("th");e.hot.view.appendColHeader(o,r),n.appendChild(r)})}),n}},{key:"createCol",value:function(e){var t=this,n=document,i=n.createDocumentFragment();return this.samples.forEach(function(o){(0,r.arrayEach)(o.strings,function(o){var r=o.row,a=t.hot.getCellMeta(r,e);a.col=e,a.row=r;var s=t.hot.getCellRenderer(a),l=n.createElement("td"),d=n.createElement("tr");s(t.hot,l,r,e,t.hot.colToProp(e),o.value,a),d.appendChild(l),i.appendChild(d)})}),i}},{key:"clean",value:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}},{key:"injectTable",value:function(){var e=arguments.length>0&&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.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(42))&&i.__esModule?i:{default:i},a=function(){function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.highlight=t,this.from=n,this.to=i}return o(e,[{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row===this.to.row&&this.from.col===this.to.col}},{key:"getHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"includes",value:function(e){var t=e.row,n=e.col,i=this.getTopLeftCorner(),o=this.getBottomRightCorner();return i.row<=t&&o.row>=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.row<t.row||e.col<t.col||e.row>n.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("<script>document.F=Object<\/script>"),e.close(),l=e.F;i--;)delete l.prototype[r[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t,n){var i=n(47),o=n(40),r=n(23),a=n(85),s=n(22),l=n(160),d=Object.getOwnPropertyDescriptor;t.f=n(21)?d:function(e,t){if(e=r(e),t=a(t,!0),l)try{return d(e,t)}catch(e){}if(s(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){var i=n(169),o=n(74).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},function(e,t,n){var i=n(82)("keys"),o=n(49);e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){var i=n(13),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var i=n(164),o=n(30);e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var i,o,r,a=n(29),s=n(282),l=n(159),d=n(73),c=n(13),u=c.process,h=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},v=function(e){y.call(e.data)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++m]=function(){s("function"==typeof e?e:Function(e),t)},i(m),m},f=function(e){delete g[e]},"process"==n(38)(u)?i=function(e){u.nextTick(a(y,e,1))}:p?(r=(o=new p).port2,o.port1.onmessage=v,i=a(r.postMessage,r,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(e){c.postMessage(e+"","*")},c.addEventListener("message",v,!1)):i="onreadystatechange"in d("script")?function(e){l.appendChild(d("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:h,clear:f}},function(e,t,n){var i=n(15);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,n){e.exports=t},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},o=n(20);function r(){}r.prototype={data:void 0,dataSchema:void 0,width:void 0,height:void 0,startRows:5,startCols:5,rowHeaders:void 0,colHeaders:null,colWidths:void 0,rowHeights:void 0,columns:void 0,cells:void 0,cell:[],comments:!1,customBorders:!1,minRows:0,minCols:0,maxRows:1/0,maxCols:1/0,minSpareRows:0,minSpareCols:0,allowInsertRow:!0,allowInsertColumn:!0,allowRemoveRow:!0,allowRemoveColumn:!0,multiSelect:!0,fillHandle:!0,fixedRowsTop:0,fixedRowsBottom:0,fixedColumnsLeft:0,outsideClickDeselects:!0,enterBeginsEditing:!0,enterMoves:{row:1,col:0},tabMoves:{row:0,col:1},autoWrapRow:!1,autoWrapCol:!1,copyRowsLimit:1e3,copyColsLimit:1e3,pasteMode:"overwrite",persistentState:void 0,currentRowClassName:void 0,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(e){var t,n,r,a;for(t=0,n=this.countCols();t<n;t++)if(""!==(r=this.getDataAtCell(e,t))&&null!==r&&(0,o.isDefined)(r))return"object"===(void 0===r?"undefined":i(r))&&(a=this.getCellMeta(e,t),isObjectEquals(this.getSchema()[a.prop],r));return!0},isEmptyCol:function(e){var t,n,i;for(t=0,n=this.countRows();t<n;t++)if(""!==(i=this.getDataAtCell(t,e))&&null!==i&&(0,o.isDefined)(i))return!1;return!0},observeDOMVisibility:!0,allowInvalid:!0,allowEmpty:!0,invalidCellClassName:"htInvalid",placeholder:!1,placeholderCellClassName:"htPlaceholder",readOnlyCellClassName:"htDimmed",renderer:void 0,commentedCellClassName:"htCommentCell",fragmentSelection:!1,readOnly:!1,skipColumnOnPaste:!1,search:!1,type:"text",copyable:!0,editor:void 0,autoComplete:void 0,visibleRows:10,trimDropdown:!0,debug:!1,wordWrap:!0,noWordWrapClassName:"htNoWrap",contextMenu:void 0,contextMenuCopyPaste:void 0,copyPaste:void 0,undo:void 0,columnSorting:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,mergeCells:!1,viewportRowRenderingOffset:"auto",viewportColumnRenderingOffset:"auto",validator:void 0,disableVisualSelection:!1,sortIndicator:void 0,manualColumnFreeze:void 0,trimWhitespace:!0,settings:void 0,source:void 0,title:void 0,checkedTemplate:void 0,uncheckedTemplate:void 0,label:void 0,format:void 0,language:void 0,selectOptions:void 0,autoColumnSize:void 0,autoRowSize:void 0,dateFormat:void 0,correctFormat:!1,defaultDate:void 0,strict:void 0,allowHtml:!1,renderAllRows:void 0,preventOverflow:!1,bindRowsWithHeaders:void 0,collapsibleColumns:void 0,columnSummary:void 0,dropdownMenu:void 0,filters:void 0,formulas:void 0,ganttChart:void 0,headerTooltips:void 0,hiddenColumns:void 0,hiddenRows:void 0,nestedHeaders:void 0,trimRows:void 0,rowHeaderWidth:void 0,columnHeaderHeight:void 0,observeChanges:void 0,sortFunction:void 0,sortByRelevance:!0,filter:!0,filteringCaseSensitive:!1},t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){var t=new Date(e);return isNaN(new Date(e+"T00:00").getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}},function(e,t,n){var i=n(3);i(i.P,"Array",{copyWithin:n(275)}),n(37)("copyWithin")},function(e,t,n){var i=n(3);i(i.P,"Array",{fill:n(276)}),n(37)("fill")},function(e,t,n){"use strict";var i=n(3),o=n(53)(6),r="findIndex",a=!0;r in[]&&Array(1)[r](function(){a=!1}),i(i.P+i.F*a,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(37)(r)},function(e,t,n){"use strict";var i=n(3),o=n(53)(5),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),i(i.P+i.F*r,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},function(e,t,n){"use strict";var i=n(29),o=n(3),r=n(41),a=n(165),s=n(161),l=n(24),d=n(72),c=n(176);o(o.S+o.F*!n(77)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,u,h=r(e),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,y=0,v=c(h);if(g&&(m=i(m,p>2?arguments[2]:void 0,2)),void 0==v||f==Array&&s(v))for(n=new f(t=l(h.length));t>y;y++)d(n,y,g?m(h[y],y):h[y]);else for(u=v.call(h),n=new f;!(o=u.next()).done;y++)d(n,y,g?a(u,m,[o.value,y],!0):o.value);return n.length=y,n}})},function(e,t,n){"use strict";var i=n(3),o=n(72);i(i.S+i.F*n(31)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){var i=n(19).f,o=n(40),r=n(22),a=Function.prototype,s=/^\s*function ([^ (]*)/,l=Object.isExtensible||function(){return!0};"name"in a||n(21)&&i(a,"name",{configurable:!0,get:function(){try{var e=(""+this).match(s)[1];return r(this,"name")||!l(this)||i(this,"name",o(5,e)),e}catch(e){return""}}})},function(e,t,n){"use strict";var i=n(157);e.exports=n(54)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=i.getEntry(this,e);return t&&t.v},set:function(e,t){return i.def(this,0===e?0:e,t)}},i,!0)},function(e,t,n){var i=n(3);i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var i=n(3),o=n(13).isFinite;i(i.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var i=n(3);i(i.S,"Number",{isInteger:n(163)})},function(e,t,n){var i=n(3);i(i.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var i=n(3),o=n(163),r=Math.abs;i(i.S,"Number",{isSafeInteger:function(e){return o(e)&&r(e)<=9007199254740991}})},function(e,t,n){var i=n(3);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var i=n(3);i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var i=n(3);i(i.S+i.F,"Object",{assign:n(168)})},function(e,t,n){var i=n(3);i(i.S,"Object",{is:n(290)})},function(e,t,n){var i=n(3);i(i.S,"Object",{setPrototypeOf:n(171).set})},function(e,t,n){"use strict";var i,o,r,a=n(57),s=n(13),l=n(29),d=n(156),c=n(3),u=n(15),h=n(71),f=n(52),p=n(56),m=n(291),g=n(84).set,y=n(285)(),v=s.TypeError,A=s.process,b=s.Promise,w="process"==d(A=s.process),_=function(){},M=!!function(){try{var e=b.resolve(1),t=(e.constructor={})[n(10)("species")]=function(e){e(_,_)};return(w||"function"==typeof PromiseRejectionEvent)&&e.then(_)instanceof t}catch(e){}}(),x=function(e,t){return e===t||e===b&&t===r},k=function(e){var t;return!(!u(e)||"function"!=typeof(t=e.then))&&t},S=function(e){return x(b,e)?new C(e):new o(e)},C=o=function(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw v("Bad Promise constructor");t=e,n=i}),this.resolve=h(t),this.reject=h(n)},E=function(e){try{e()}catch(e){return{error:e}}},L=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var i=e._v,o=1==e._s,r=0,a=function(t){var n,r,a=o?t.ok:t.fail,s=t.resolve,l=t.reject,d=t.domain;try{a?(o||(2==e._h&&Y(e),e._h=1),!0===a?n=i:(d&&d.enter(),n=a(i),d&&d.exit()),n===t.promise?l(v("Promise-chain cycle")):(r=k(n))?r.call(n,s,l):s(n)):l(i)}catch(e){l(e)}};n.length>r;)a(n[r++]);e._c=[],e._n=!1,t&&!e._h&&T(e)})}},T=function(e){g.call(s,function(){var t,n,i,o=e._v;if(D(e)&&(t=E(function(){w?A.emit("unhandledRejection",o,e):(n=s.onunhandledrejection)?n({promise:e,reason:o}):(i=s.console)&&i.error&&i.error("Unhandled promise rejection",o)}),e._h=w||D(e)?2:1),e._a=void 0,t)throw t.error})},D=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,i=0;n.length>i;)if((t=n[i++]).fail||!D(t.promise))return!1;return!0},Y=function(e){g.call(s,function(){var t;w?A.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},R=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),L(t,!0))},B=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw v("Promise can't be resolved itself");(t=k(e))?y(function(){var i={_w:n,_d:!1};try{t.call(e,l(B,i,1),l(R,i,1))}catch(e){R.call(i,e)}}):(n._v=e,n._s=1,L(n,!1))}catch(e){R.call({_w:n,_d:!1},e)}}};M||(b=function(e){f(this,b,"Promise","_h"),h(e),i.call(this);try{e(l(B,this,1),l(R,this,1))}catch(e){R.call(this,e)}},(i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(59)(b.prototype,{then:function(e,t){var n=S(m(this,b));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=w?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),C=function(){var e=new i;this.promise=e,this.resolve=l(B,e,1),this.reject=l(R,e,1)}),c(c.G+c.W+c.F*!M,{Promise:b}),n(48)(b,"Promise"),n(172)("Promise"),r=n(44).Promise,c(c.S+c.F*!M,"Promise",{reject:function(e){var t=S(this);return(0,t.reject)(e),t.promise}}),c(c.S+c.F*(a||!M),"Promise",{resolve:function(e){if(e instanceof b&&x(e.constructor,this))return e;var t=S(this);return(0,t.resolve)(e),t.promise}}),c(c.S+c.F*!(M&&n(77)(function(e){b.all(e).catch(_)})),"Promise",{all:function(e){var t=this,n=S(t),i=n.resolve,o=n.reject,r=E(function(){var n=[],r=0,a=1;p(e,!1,function(e){var s=r++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||i(n))},o)}),--a||i(n)});return r&&o(r.error),n.promise},race:function(e){var t=this,n=S(t),i=n.reject,o=E(function(){p(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return o&&i(o.error),n.promise}})},function(e,t,n){n(21)&&"g"!=/./g.flags&&n(19).f(RegExp.prototype,"flags",{configurable:!0,get:n(280)})},function(e,t,n){n(55)("match",1,function(e,t,n){return[function(n){"use strict";var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){n(55)("replace",2,function(e,t,n){return[function(i,o){"use strict";var r=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,r,o):n.call(String(r),i,o)},n]})},function(e,t,n){n(55)("search",1,function(e,t,n){return[function(n){"use strict";var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){n(55)("split",2,function(e,t,i){"use strict";var o=n(164),r=i,a=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var s=void 0===/()??/.exec("")[1];i=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!o(e))return r.call(n,e,t);var i,l,d,c,u,h=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=void 0===t?4294967295:t>>>0,g=new RegExp(e.source,f+"g");for(s||(i=new RegExp("^"+g.source+"$(?!\\s)",f));(l=g.exec(n))&&!((d=l.index+l[0].length)>p&&(h.push(n.slice(p,l.index)),!s&&l.length>1&&l[0].replace(i,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(l[u]=void 0)}),l.length>1&&l.index<n.length&&a.apply(h,l.slice(1)),c=l[0].length,p=d,h.length>=m));)g.lastIndex===l.index&&g.lastIndex++;return p===n.length?!c&&g.test("")||h.push(""):h.push(n.slice(p)),h.length>m?h.slice(0,m):h}}else"0".split(void 0,0).length&&(i=function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)});return[function(n,o){var r=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,r,o):i.call(String(r),n,o)},i]})},function(e,t,n){"use strict";var i=n(157);e.exports=n(54)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return i.def(this,e=0===e?0:e,e)}},i)},function(e,t,n){"use strict";var i=n(3),o=n(292)(!1);i(i.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var i=n(3),o=n(24),r=n(83),a="".endsWith;i(i.P+i.F*n(75)("endsWith"),"String",{endsWith:function(e){var t=r(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,i=o(t.length),s=void 0===n?i:Math.min(o(n),i),l=String(e);return a?a.call(t,l,s):t.slice(s-l.length,s)===l}})},function(e,t,n){var i=n(3),o=n(60),r=String.fromCharCode,a=String.fromCodePoint;i(i.S+i.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],i=arguments.length,a=0;i>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?r(t):r(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var i=n(3),o=n(83);i(i.P+i.F*n(75)("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(3),o=n(23),r=n(24);i(i.S,"String",{raw:function(e){for(var t=o(e.raw),n=r(t.length),i=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<i&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){var i=n(3);i(i.P,"String",{repeat:n(174)})},function(e,t,n){"use strict";var i=n(3),o=n(24),r=n(83),a="".startsWith;i(i.P+i.F*n(75)("startsWith"),"String",{startsWith:function(e){var t=r(this,e,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return a?a.call(t,i,n):t.slice(n,n+i.length)===i}})},function(e,t,n){"use strict";var i=n(13),o=n(22),r=n(21),a=n(3),s=n(33),l=n(46).KEY,d=n(31),c=n(82),u=n(48),h=n(49),f=n(10),p=n(175),m=n(293),g=n(284),y=n(279),v=n(162),A=n(18),b=n(23),w=n(85),_=n(40),M=n(78),x=n(287),k=n(79),S=n(19),C=n(39),E=k.f,L=S.f,T=x.f,D=i.Symbol,Y=i.JSON,R=Y&&Y.stringify,B=f("_hidden"),O=f("toPrimitive"),H={}.propertyIsEnumerable,P=c("symbol-registry"),I=c("symbols"),j=c("op-symbols"),F=Object.prototype,N="function"==typeof D,z=i.QObject,W=!z||!z.prototype||!z.prototype.findChild,$=r&&d(function(){return 7!=M(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=E(F,t);i&&delete F[t],L(e,t,n),i&&e!==F&&L(F,t,i)}:L,U=function(e){var t=I[e]=M(D.prototype);return t._k=e,t},Q=N&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},G=function(e,t,n){return e===F&&G(j,t,n),A(e),t=w(t,!0),A(n),o(I,t)?(n.enumerable?(o(e,B)&&e[B][t]&&(e[B][t]=!1),n=M(n,{enumerable:_(0,!1)})):(o(e,B)||L(e,B,_(1,{})),e[B][t]=!0),$(e,t,n)):L(e,t,n)},V=function(e,t){A(e);for(var n,i=y(t=b(t)),o=0,r=i.length;r>o;)G(e,n=i[o++],t[n]);return e},J=function(e){var t=H.call(this,e=w(e,!0));return!(this===F&&o(I,e)&&!o(j,e))&&(!(t||!o(this,e)||!o(I,e)||o(this,B)&&this[B][e])||t)},K=function(e,t){if(e=b(e),t=w(t,!0),e!==F||!o(I,t)||o(j,t)){var n=E(e,t);return!n||!o(I,t)||o(e,B)&&e[B][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=T(b(e)),i=[],r=0;n.length>r;)o(I,t=n[r++])||t==B||t==l||i.push(t);return i},q=function(e){for(var t,n=e===F,i=T(n?j:b(e)),r=[],a=0;i.length>a;)!o(I,t=i[a++])||n&&!o(F,t)||r.push(I[t]);return r};N||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===F&&t.call(j,n),o(this,B)&&o(this[B],e)&&(this[B][e]=!1),$(this,e,_(1,n))};return r&&W&&$(F,e,{configurable:!0,set:t}),U(e)}).prototype,"toString",function(){return this._k}),k.f=K,S.f=G,n(80).f=x.f=X,n(47).f=J,n(58).f=q,r&&!n(57)&&s(F,"propertyIsEnumerable",J,!0),p.f=function(e){return U(f(e))}),a(a.G+a.W+a.F*!N,{Symbol:D});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)f(Z[ee++]);for(Z=C(f.store),ee=0;Z.length>ee;)m(Z[ee++]);a(a.S+a.F*!N,"Symbol",{for:function(e){return o(P,e+="")?P[e]:P[e]=D(e)},keyFor:function(e){if(Q(e))return g(P,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!N,"Object",{create:function(e,t){return void 0===t?M(e):V(M(e),t)},defineProperty:G,defineProperties:V,getOwnPropertyDescriptor:K,getOwnPropertyNames:X,getOwnPropertySymbols:q}),Y&&a(a.S+a.F*(!N||d(function(){var e=D();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!Q(e)){for(var t,n,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);return"function"==typeof(t=i[1])&&(n=t),!n&&v(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!Q(t))return t}),i[1]=t,R.apply(Y,i)}}}),D.prototype[O]||n(32)(D.prototype,O,D.prototype.valueOf),u(D,"Symbol"),u(Math,"Math",!0),u(i.JSON,"JSON",!0)},function(e,t,n){"use strict";var i,o=n(53)(0),r=n(33),a=n(46),s=n(168),l=n(158),d=n(15),c=a.getWeak,u=Object.isExtensible,h=l.ufstore,f={},p=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(e){if(d(e)){var t=c(e);return!0===t?h(this).get(e):t?t[this._i]:void 0}},set:function(e,t){return l.def(this,e,t)}},g=e.exports=n(54)("WeakMap",p,m,l,!0,!0);7!=(new g).set((Object.freeze||Object)(f),7).get(f)&&(s((i=l.getConstructor(p)).prototype,m),a.NEED=!0,o(["delete","has","get","set"],function(e){var t=g.prototype,n=t[e];r(t,e,function(t,o){if(d(t)&&!u(t)){this._f||(this._f=new i);var r=this._f[e](t,o);return"set"==e?this:r}return n.call(this,t,o)})}))},function(e,t,n){"use strict";var i=n(158);n(54)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return i.def(this,e,!0)}},i,!1,!0)},function(e,t,n){"use strict";var i=n(3),o=n(155)(!0);i(i.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(e,t,n){var i=n(3),o=n(170)(!0);i(i.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){var i=n(3),o=n(289),r=n(23),a=n(79),s=n(72);i(i.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n=r(e),i=a.f,l=o(n),d={},c=0;l.length>c;)s(d,t=l[c++],i(n,t));return d}})},function(e,t,n){var i=n(3),o=n(170)(!1);i(i.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){"use strict";var i=n(3),o=n(173);i(i.P,"String",{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";var i=n(3),o=n(173);i(i.P,"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){for(var i=n(68),o=n(33),r=n(13),a=n(32),s=n(45),l=n(10),d=l("iterator"),c=l("toStringTag"),u=s.Array,h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],f=0;f<5;f++){var p,m=h[f],g=r[m],y=g&&g.prototype;if(y)for(p in y[d]||a(y,d,u),y[c]||a(y,c,m),s[m]=u,i)y[p]||o(y,p,i[p],!0)}},function(e,t,n){var i=n(3),o=n(84);i(i.G+i.B,{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){"use strict";!function(e){function n(e){return e.split('"').length-1}t.parse=function(e){var t,i,o,r,a,s,l,d=[],c=0;for((o=e.split("\n")).length>1&&""===o[o.length-1]&&o.pop(),t=0,i=o.length;t<i;t+=1){for(o[t]=o[t].split("\t"),r=0,a=o[t].length;r<a;r+=1)d[c]||(d[c]=[]),s&&0===r?(l=d[c].length-1,d[c][l]=d[c][l]+"\n"+o[t][0],s&&1&n(o[t][0])&&(s=!1,d[c][l]=d[c][l].substring(0,d[c][l].length-1).replace(/""/g,'"'))):r===a-1&&0===o[t][r].indexOf('"')&&1&n(o[t][r])?(d[c].push(o[t][r].substring(1).replace(/""/g,'"')),s=!0):(d[c].push(o[t][r].replace(/""/g,'"')),s=!1);s||(c+=1)}return d},t.stringify=function(e){var t,n,i,o,r,a="";for(t=0,n=e.length;t<n;t+=1){for(o=e[t].length,i=0;i<o;i+=1)i>0&&(a+="\t"),"string"==typeof(r=e[t][i])?r.indexOf("\n")>-1?a+='"'+r.replace(/"/g,'""')+'"':a+=r:a+=null===r||void 0===r?"":r;t!==n-1&&(a+="\n")}return a}}(window)},function(e,t,n){"use strict";var i,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},r=Error;!function(e){var t=function(e){if(l(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);for(var i in t=[],e)e.hasOwnProperty(i)&&t.push(i);return t},n={add:function(e,t){return e[t]=this.value,!0},remove:function(e,t){return delete e[t],!0},replace:function(e,t){return e[t]=this.value,!0},move:function(e,t,n){var i={op:"_get",path:this.from};return g(n,[i]),g(n,[{op:"remove",path:this.from}]),g(n,[{op:"add",path:this.path,value:i.value}]),!0},copy:function(e,t,n){var i={op:"_get",path:this.from};return g(n,[i]),g(n,[{op:"add",path:this.path,value:i.value}]),!0},test:function(e,n){return function e(n,i){switch(void 0===n?"undefined":o(n)){case"undefined":case"boolean":case"string":case"number":return n===i;case"object":if(null===n)return null===i;if(l(n)){if(!l(i)||n.length!==i.length)return!1;for(var r=0,a=n.length;r<a;r++)if(!e(n[r],i[r]))return!1;return!0}var s=t(i).length;if(t(n).length!==s)return!1;for(r=0;r<s;r++)if(!e(n[r],i[r]))return!1;return!0;default:return!1}}(e[n],this.value)},_get:function(e,t){this.value=e[t]}},i={add:function(e,t){return e.splice(t,0,this.value),!0},remove:function(e,t){return e.splice(t,1),!0},replace:function(e,t){return e[t]=this.value,!0},move:n.move,copy:n.copy,test:n.test,_get:n._get},a={add:function(e){for(var t in a.remove.call(this,e),this.value)this.value.hasOwnProperty(t)&&(e[t]=this.value[t]);return!0},remove:function(e){for(var t in e)e.hasOwnProperty(t)&&n.remove.call(this,e,t);return!0},replace:function(e){return g(e,[{op:"remove",path:this.path}]),g(e,[{op:"add",path:this.path,value:this.value}]),!0},move:n.move,copy:n.copy,test:function(e){return JSON.stringify(e)===JSON.stringify(this.value)},_get:function(e){this.value=e}};function s(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}var l,d=[],c=function(e){this.observers=[],this.obj=e},u=function(e,t){this.callback=e,this.observer=t};function h(e){return"object"===(void 0===e?"undefined":o(e))?JSON.parse(JSON.stringify(e)):e}function f(e){for(var t,n=0,i=d.length;n<i;n++)if(d[n].obj===e.object){t=d[n];break}p(t.value,e.object,e.patches,""),e.patches.length&&g(t.value,e.patches);var o=e.patches;return o.length>0&&(e.patches=[],e.callback&&e.callback(o)),o}function p(e,n,i,r){for(var a=t(n),l=t(e),d=!1,c=l.length-1;c>=0;c--){var u=e[m=l[c]];if(n.hasOwnProperty(m)){var f=n[m];"object"==(void 0===u?"undefined":o(u))&&null!=u&&"object"==(void 0===f?"undefined":o(f))&&null!=f?p(u,f,i,r+"/"+s(m)):u!=f&&i.push({op:"replace",path:r+"/"+s(m),value:h(f)})}else i.push({op:"remove",path:r+"/"+s(m)}),d=!0}if(d||a.length!=l.length)for(c=0;c<a.length;c++){var m=a[c];e.hasOwnProperty(m)||i.push({op:"add",path:r+"/"+s(m),value:h(n[m])})}}function m(e){for(var t,n=0,i=e.length;n<i;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function g(e,t,o){for(var r,s,d=!1,c=0,u=t.length;c<u;){r=t[c],c++;for(var h=(r.path||"").split("/"),f=e,p=1,g=h.length,v=void 0;;){if(s=h[p],o&&void 0===v&&(void 0===f[s]?v=h.slice(0,p).join("/"):p==g-1&&(v=r.path),void 0!==v&&this.validator(r,c-1,e,v)),p++,void 0===s&&p>=g){d=a[r.op].call(r,f,s,e);break}if(l(f)){if("-"===s)s=f.length;else{if(o&&!m(s))throw new y("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",c-1,r.path,r);s=parseInt(s,10)}if(p>=g){if(o&&"add"===r.op&&s>f.length)throw new y("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",c-1,r.path,r);d=i[r.op].call(r,f,s,e);break}}else if(s&&-1!=s.indexOf("~")&&(s=s.replace(/~1/g,"/").replace(/~0/g,"~")),p>=g){d=n[r.op].call(r,f,s,e);break}f=f[s]}}return d}e.unobserve=function(e,t){t.unobserve()},e.observe=function(e,t){var n,i=function(e){for(var t=0,n=d.length;t<n;t++)if(d[t].obj===e)return d[t]}(e);if(i?n=function(e,t){for(var n=0,i=e.observers.length;n<i;n++)if(e.observers[n].callback===t)return e.observers[n].observer}(i,t):(i=new c(e),d.push(i)),n)return n;if(n={},i.value=h(e),t){n.callback=t,n.next=null;var o=this.intervals||[100,1e3,1e4,6e4];if(void 0===o.push)throw new r("jsonpatch.intervals must be an array");var a=0,s=function(){f(n)},l=function(){clearTimeout(n.next),n.next=setTimeout(function(){s(),a=0,n.next=setTimeout(p,o[a++])},0)},p=function e(){s(),a==o.length&&(a=o.length-1),n.next=setTimeout(e,o[a++])};"undefined"!=typeof window&&(window.addEventListener?(window.addEventListener("mousedown",l),window.addEventListener("mouseup",l),window.addEventListener("keydown",l)):(document.documentElement.attachEvent("onmousedown",l),document.documentElement.attachEvent("onmouseup",l),document.documentElement.attachEvent("onkeydown",l))),n.next=setTimeout(p,o[a++])}return n.patches=[],n.object=e,n.unobserve=function(){f(n),clearTimeout(n.next),function(e,t){for(var n=0,i=e.observers.length;n<i;n++)if(e.observers[n].observer===t)return void e.observers.splice(n,1)}(i,n),"undefined"!=typeof window&&(window.removeEventListener?(window.removeEventListener("mousedown",l),window.removeEventListener("mouseup",l),window.removeEventListener("keydown",l)):(document.documentElement.detachEvent("onmousedown",l),document.documentElement.detachEvent("onmouseup",l),document.documentElement.detachEvent("onkeydown",l)))},i.observers.push(new u(t,n)),n},e.generate=f,l=Array.isArray?Array.isArray:function(e){return e.push&&"number"==typeof e.length},e.apply=g,e.compare=function(e,t){var n=[];return p(e,t,n,""),n};var y=function(e){function t(t,n,i,o,r){e.call(this,t),this.message=t,this.name=n,this.index=i,this.operation=o,this.tree=r}return function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function i(){this.constructor=e}e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(t,e),t}(r);e.JsonPatchError=y,e.Error=y,e.validator=function(t,i,r,a){if("object"!==(void 0===t?"undefined":o(t))||null===t||l(t))throw new y("Operation is not an object","OPERATION_NOT_AN_OBJECT",i,t,r);if(!n[t.op])throw new y("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,r);if("string"!=typeof t.path)throw new y("Operation `path` property is not a string","OPERATION_PATH_INVALID",i,t,r);if(("move"===t.op||"copy"===t.op)&&"string"!=typeof t.from)throw new y("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",i,t,r);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&void 0===t.value)throw new y("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",i,t,r);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&function e(t){if(void 0===t)return!0;if("array"==typeof t||"object"==(void 0===t?"undefined":o(t)))for(var n in t)if(e(t[n]))return!0;return!1}(t.value))throw new y("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",i,t,r);if(r)if("add"==t.op){var s=t.path.split("/").length,d=a.split("/").length;if(s!==d+1&&s!==d)throw new y("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",i,t,r)}else if("replace"===t.op||"remove"===t.op||"_get"===t.op){if(t.path!==a)throw new y("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",i,t,r)}else if("move"===t.op||"copy"===t.op){var c={op:"_get",path:t.from,value:void 0},u=e.validate([c],r);if(u&&"OPERATION_PATH_UNRESOLVABLE"===u.name)throw new y("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",i,t,r)}},e.validate=function(e,t){try{if(!l(e))throw new y("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)t=JSON.parse(JSON.stringify(t)),g.call(this,t,e,!0);else for(var n=0;n<e.length;n++)this.validator(e[n],n)}catch(e){if(e instanceof y)return e;throw e}}}(i||(i={})),t.apply=i.apply,t.observe=i.observe,t.unobserve=i.unobserve,t.generate=i.generate,t.compare=i.compare,t.validate=i.validate,t.validator=i.validator,t.JsonPatchError=i.JsonPatchError,t.Error=i.Error},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),r=n(7),a=n(2),s=n(25),l=c(n(4)),d=c(n(42));function c(e){return e&&e.__esModule?e:{default:e}}c(n(28));var u=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n&&(this.eventManager=new l.default(t),this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.left=null,this.bottom=null,this.right=null,this.topStyle=null,this.leftStyle=null,this.bottomStyle=null,this.rightStyle=null,this.cornerDefaultStyle={width:"5px",height:"5px",borderWidth:"2px",borderStyle:"solid",borderColor:"#FFF"},this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}return i(e,[{key:"registerListeners",value:function(){var e=this;this.eventManager.addEventListener(document.body,"mousedown",function(){return e.onMouseDown()}),this.eventManager.addEventListener(document.body,"mouseup",function(){return e.onMouseUp()});for(var t=function(t,n){e.eventManager.addEventListener(e.main.childNodes[t],"mouseenter",function(n){return e.onMouseEnter(n,e.main.childNodes[t])})},n=0,i=this.main.childNodes.length;n<i;n++)t(n)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,r.stopImmediatePropagation)(e);var n=this,i=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(document.body,"mousemove",function e(o){(function(e){return e.clientY<Math.floor(i.top)||e.clientY>Math.ceil(i.top+i.height)||e.clientX<Math.floor(i.left)||e.clientX>Math.ceil(i.left+i.width)||void 0})(o)&&(n.eventManager.removeEventListener(document.body,"mousemove",e),t.style.display="block")})}}},{key:"createBorders",value:function(e){this.main=document.createElement("div");var t=["top","left","bottom","right","corner"],n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(var i=0;i<5;i++){var o=t[i],r=document.createElement("div");r.className="wtBorder "+(this.settings.className||""),this.settings[o]&&this.settings[o].hide&&(r.className+=" hidden"),(n=r.style).backgroundColor=this.settings[o]&&this.settings[o].color?this.settings[o].color:e.border.color,n.height=this.settings[o]&&this.settings[o].width?this.settings[o].width+"px":e.border.width+"px",n.width=this.settings[o]&&this.settings[o].width?this.settings[o].width+"px":e.border.width+"px",this.main.appendChild(r)}this.top=this.main.childNodes[0],this.left=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.right=this.main.childNodes[3],this.topStyle=this.top.style,this.leftStyle=this.left.style,this.bottomStyle=this.bottom.style,this.rightStyle=this.right.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,s.isMobileBrowser)()&&this.createMultipleSelectorHandles(),this.disappear(),this.wot.wtTable.bordersHolder||(this.wot.wtTable.bordersHolder=document.createElement("div"),this.wot.wtTable.bordersHolder.className="htBorders",this.wot.wtTable.spreader.appendChild(this.wot.wtTable.bordersHolder)),this.wot.wtTable.bordersHolder.insertBefore(this.main,this.wot.wtTable.bordersHolder.firstChild)}},{key:"createMultipleSelectorHandles",value:function(){this.selectionHandles={topLeft:document.createElement("DIV"),topLeftHitArea:document.createElement("DIV"),bottomRight:document.createElement("DIV"),bottomRightHitArea:document.createElement("DIV")},this.selectionHandles.topLeft.className="topLeftSelectionHandle",this.selectionHandles.topLeftHitArea.className="topLeftSelectionHandle-HitArea",this.selectionHandles.bottomRight.className="bottomRightSelectionHandle",this.selectionHandles.bottomRightHitArea.className="bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={topLeft:this.selectionHandles.topLeft.style,topLeftHitArea:this.selectionHandles.topLeftHitArea.style,bottomRight:this.selectionHandles.bottomRight.style,bottomRightHitArea:this.selectionHandles.bottomRightHitArea.style};var e={position:"absolute",height:"40px",width:"40px","border-radius":parseInt(40/1.5,10)+"px"};for(var t in e)(0,a.hasOwnProperty)(e,t)&&(this.selectionHandles.styles.bottomRightHitArea[t]=e[t],this.selectionHandles.styles.topLeftHitArea[t]=e[t]);var n={position:"absolute",height:"10px",width:"10px","border-radius":parseInt(10/1.5,10)+"px",background:"#F5F5FF",border:"1px solid #4285c8"};for(var i in n)(0,a.hasOwnProperty)(n,i)&&(this.selectionHandles.styles.bottomRight[i]=n[i],this.selectionHandles.styles.topLeft[i]=n[i]);this.main.appendChild(this.selectionHandles.topLeft),this.main.appendChild(this.selectionHandles.bottomRight),this.main.appendChild(this.selectionHandles.topLeftHitArea),this.main.appendChild(this.selectionHandles.bottomRightHitArea)}},{key:"isPartRange",value:function(e,t){return!(!this.wot.selections.area.cellRange||e==this.wot.selections.area.cellRange.to.row&&t==this.wot.selections.area.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition",value:function(e,t,n,i,o,r){var a=parseInt(this.selectionHandles.styles.topLeft.width,10),s=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top=parseInt(n-a,10)+"px",this.selectionHandles.styles.topLeft.left=parseInt(i-a,10)+"px",this.selectionHandles.styles.topLeftHitArea.top=parseInt(n-s/4*3,10)+"px",this.selectionHandles.styles.topLeftHitArea.left=parseInt(i-s/4*3,10)+"px",this.selectionHandles.styles.bottomRight.top=parseInt(n+r,10)+"px",this.selectionHandles.styles.bottomRight.left=parseInt(i+o,10)+"px",this.selectionHandles.styles.bottomRightHitArea.top=parseInt(n+r-s/4,10)+"px",this.selectionHandles.styles.bottomRightHitArea.left=parseInt(i+o-s/4,10)+"px",this.settings.border.multipleSelectionHandlesVisible&&this.settings.border.multipleSelectionHandlesVisible()?(this.selectionHandles.styles.topLeft.display="block",this.selectionHandles.styles.topLeftHitArea.display="block",this.isPartRange(e,t)?(this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"):(this.selectionHandles.styles.bottomRight.display="block",this.selectionHandles.styles.bottomRightHitArea.display="block")):(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.topLeftHitArea.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"),e==this.wot.wtSettings.getSetting("fixedRowsTop")||t==this.wot.wtSettings.getSetting("fixedColumnsLeft")?(this.selectionHandles.styles.topLeft.zIndex="9999",this.selectionHandles.styles.topLeftHitArea.zIndex="9999"):(this.selectionHandles.styles.topLeft.zIndex="",this.selectionHandles.styles.topLeftHitArea.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){var t,n,i,r,a,l,c,u,h,f,p,m,g,y,v,A,b,w;w=this.wot.wtTable.getRenderedRowsCount();for(var _=0;_<w;_++){var M=this.wot.wtTable.rowFilter.renderedToSource(_);if(M>=e[0]&&M<=e[2]){g=M;break}}for(var x=w-1;x>=0;x--){var k=this.wot.wtTable.rowFilter.renderedToSource(x);if(k>=e[0]&&k<=e[2]){v=k;break}}w=this.wot.wtTable.getRenderedColumnsCount();for(var S=0;S<w;S++){var C=this.wot.wtTable.columnFilter.renderedToSource(S);if(C>=e[1]&&C<=e[3]){y=C;break}}for(var E=w-1;E>=0;E--){var L=this.wot.wtTable.columnFilter.renderedToSource(E);if(L>=e[1]&&L<=e[3]){A=L;break}}if(void 0!==g&&void 0!==y){t=g!==v||y!==A,n=this.wot.wtTable.getCell(new d.default(g,y)),i=t?this.wot.wtTable.getCell(new d.default(v,A)):n,r=(0,o.offset)(n),a=t?(0,o.offset)(i):r,l=(0,o.offset)(this.wot.wtTable.TABLE),u=r.top,p=a.top+(0,o.outerHeight)(i)-u,f=r.left,m=a.left+(0,o.outerWidth)(i)-f,c=u-l.top-1,h=f-l.left-1;var T=(0,o.getComputedStyle)(n);parseInt(T.borderTopWidth,10)>0&&(c+=1,p=p>0?p-1:0),parseInt(T.borderLeftWidth,10)>0&&(h+=1,m=m>0?m-1:0),this.topStyle.top=c+"px",this.topStyle.left=h+"px",this.topStyle.width=m+"px",this.topStyle.display="block",this.leftStyle.top=c+"px",this.leftStyle.left=h+"px",this.leftStyle.height=p+"px",this.leftStyle.display="block";var D=Math.floor(this.settings.border.width/2);this.bottomStyle.top=c+p-D+"px",this.bottomStyle.left=h+"px",this.bottomStyle.width=m+"px",this.bottomStyle.display="block",this.rightStyle.top=c+"px",this.rightStyle.left=h+m-D+"px",this.rightStyle.height=p+1+"px",this.rightStyle.display="block",(0,s.isMobileBrowser)()||!this.hasSetting(this.settings.border.cornerVisible)||this.isPartRange(v,A)?this.cornerStyle.display="none":(this.cornerStyle.top=c+p-4+"px",this.cornerStyle.left=h+m-4+"px",this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none",b=(0,o.getTrimmingContainer)(this.wot.wtTable.TABLE),A===this.wot.getSetting("totalColumns")-1&&i.offsetLeft+(0,o.outerWidth)(i)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,o.innerWidth)(b)&&(this.cornerStyle.left=Math.floor(h+m-3-parseInt(this.cornerDefaultStyle.width,10)/2)+"px",this.cornerStyle.borderRightWidth=0),v===this.wot.getSetting("totalRows")-1&&i.offsetTop+(0,o.outerHeight)(i)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,o.innerHeight)(b)&&(this.cornerStyle.top=Math.floor(c+p-3-parseInt(this.cornerDefaultStyle.height,10)/2)+"px",this.cornerStyle.borderBottomWidth=0),this.cornerStyle.display="block"),(0,s.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(g,y,c,h,m,p)}else this.disappear()}}},{key:"disappear",value:function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",(0,s.isMobileBrowser)()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")}},{key:"hasSetting",value:function(e){return"function"==typeof e?e():!!e}}]),e}();t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=new WeakMap,r=function(){function e(t,n,i,r,a,s,l){var d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:function(e){return e};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o.set(this,{viewportWidth:t,scrollOffset:n,totalColumns:i,columnWidthFn:r,overrideFn:a,onlyFullyVisible:s,stretchingColumnWidthFn:d}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=l,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return i(e,null,[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),i(e,[{key:"calculate",value:function(){for(var e=0,t=!0,n=[],i=void 0,r=o.get(this),a=r.onlyFullyVisible,s=r.overrideFn,l=r.scrollOffset,d=r.totalColumns,c=r.viewportWidth,u=0;u<d;u++)if(i=this._getColumnWidth(u),e<=l&&!a&&(this.startColumn=u),e>=l&&e+i<=l+(l>0?c+1:c)&&(null==this.startColumn&&(this.startColumn=u),this.endColumn=u),n.push(e),e+=i,a||(this.endColumn=u),e>=l+c){t=!1;break}if(this.endColumn===d-1&&t)for(this.startColumn=this.endColumn;this.startColumn>0;){var h=n[this.endColumn]+i-n[this.startColumn-1];if((h<=c||!a)&&this.startColumn--,h>c)break}null!==this.startColumn&&s&&s(this),this.startPosition=n[this.startColumn],void 0==this.startPosition&&(this.startPosition=null),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}},{key:"refreshStretching",value:function(e){if("none"!==this.stretch){this.totalTargetWidth=e;for(var t=o.get(this),n=t.totalColumns,i=0,r=0;r<n;r++){var a=this._getColumnWidth(r),s=t.stretchingColumnWidthFn(void 0,r);"number"==typeof s?e-=s:i+=a}var l=e-i;if("all"===this.stretch&&l>0)this.stretchAllRatio=e/i,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&e!==1/0){var d=this._getColumnWidth(n-1),c=l+d;this.stretchLastWidth=c>=0?c:d}}}},{key:"getStretchedColumnWidth",value:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n}},{key:"_getStretchedAllColumnWidth",value:function(e,t){var n=0,i=o.get(this),r=i.totalColumns;if(!this.stretchAllColumnsWidth[e]){var a=Math.round(t*this.stretchAllRatio),s=i.stretchingColumnWidthFn(a,e);this.stretchAllColumnsWidth[e]=void 0===s?a:isNaN(s)?this._getColumnWidth(e):s}if(this.stretchAllColumnsWidth.length===r&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var l=0;l<this.stretchAllColumnsWidth.length;l++)n+=this.stretchAllColumnsWidth[l];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]}},{key:"_getStretchedLastColumnWidth",value:function(e){return e===o.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(t){var n=o.get(this).columnWidthFn(t);return void 0===n&&(n=e.DEFAULT_WIDTH),n}}]),e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=new WeakMap,r=function(){function e(t,n,i,r,a,s,l){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o.set(this,{viewportHeight:t,scrollOffset:n,totalRows:i,rowHeightFn:r,overrideFn:a,onlyFullyVisible:s,horizontalScrollbarHeight:l}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()}return i(e,null,[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),i(e,[{key:"calculate",value:function(){for(var t=0,n=!0,i=[],r=o.get(this),a=r.onlyFullyVisible,s=r.overrideFn,l=r.rowHeightFn,d=r.scrollOffset,c=r.totalRows,u=r.viewportHeight,h=r.horizontalScrollbarHeight||0,f=void 0,p=0;p<c;p++)if(void 0===(f=l(p))&&(f=e.DEFAULT_HEIGHT),t<=d&&!a&&(this.startRow=p),t>=d&&t+f<=d+u-h&&(null===this.startRow&&(this.startRow=p),this.endRow=p),i.push(t),t+=f,a||(this.endRow=p),t>=d+u-h){n=!1;break}if(this.endRow===c-1&&n)for(this.startRow=this.endRow;this.startRow>0;){var m=i[this.endRow]+f-i[this.startRow-1];if((m<=u-h||!a)&&this.startRow--,m>=u-h)break}null!==this.startRow&&s&&s(this),this.startPosition=i[this.startRow],void 0==this.startPosition&&(this.startPosition=null),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}]),e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),r=n(2),a=n(27),s=f(n(138)),l=f(n(141)),d=f(n(142)),c=f(n(143)),u=f(n(144)),h=f(n(146));function f(e){return e&&e.__esModule?e:{default:e}}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=[];if(this.guid="wt_"+(0,a.randomString)(),t.cloneSource?(this.cloneSource=t.cloneSource,this.cloneOverlay=t.cloneOverlay,this.wtSettings=t.cloneSource.wtSettings,this.wtTable=new u.default(this,t.table,t.wtRootElement),this.wtScroll=new d.default(this),this.wtViewport=t.cloneSource.wtViewport,this.wtEvent=new s.default(this),this.selections=this.cloneSource.selections):(this.wtSettings=new c.default(this,t),this.wtTable=new u.default(this,t.table),this.wtScroll=new d.default(this),this.wtViewport=new h.default(this),this.wtEvent=new s.default(this),this.selections=this.getSetting("selections"),this.wtOverlays=new l.default(this),this.exportSettingsAsClassNames()),this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var i=0,r=this.wtTable.THEAD.childNodes[0].childNodes.length;i<r;i++)n.push(this.wtTable.THEAD.childNodes[0].childNodes[i].innerHTML);this.getSetting("columnHeaders").length||this.update("columnHeaders",[function(e,t){(0,o.fastInnerText)(t,n[e])}])}this.drawn=!1,this.drawInterrupted=!1}return i(e,[{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||(0,o.isVisible)(this.wtTable.TABLE)?this.wtTable.draw(e):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);var t=this.wtSettings.getSetting("totalRows"),n=this.wtSettings.getSetting("fixedRowsTop"),i=this.wtSettings.getSetting("fixedRowsBottom"),o=this.wtSettings.getSetting("fixedColumnsLeft");if(e.row<n&&e.col<o)return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(e);if(e.row<n)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<o&&e.row>=t-i){if(this.wtOverlays.bottomLeftCornerOverlay&&this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<o)return this.wtOverlays.leftOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>t-i&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}},{key:"update",value:function(e,t){return this.wtSettings.update(e,t)}},{key:"scrollVertical",value:function(e){return this.wtOverlays.topOverlay.scrollTo(e),this.getSetting("onScrollVertically"),this}},{key:"scrollHorizontal",value:function(e){return this.wtOverlays.leftOverlay.scrollTo(e),this.getSetting("onScrollHorizontally"),this}},{key:"scrollViewport",value:function(e){return this.wtScroll.scrollViewport(e),this}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"getOverlayName",value:function(){return this.cloneOverlay?this.cloneOverlay.type:"master"}},{key:"isOverlayName",value:function(e){return!!this.cloneOverlay&&this.cloneOverlay.type===e}},{key:"exportSettingsAsClassNames",value:function(){var e=this,t=[],n=[];(0,r.objectEach)({rowHeaders:["array"],columnHeaders:["array"]},function(i,o){i.indexOf("array")>-1&&e.getSetting(o).length&&n.push("ht"+(0,a.toUpperCaseFirst)(o)),t.push("ht"+(0,a.toUpperCaseFirst)(o))}),(0,o.removeClass)(this.wtTable.wtRootElement.parentNode,t),(0,o.addClass)(this.wtTable.wtRootElement.parentNode,n)}},{key:"getSetting",value:function(e,t,n,i,o){return this.wtSettings.getSetting(e,t,n,i,o)}},{key:"hasSetting",value:function(e){return this.wtSettings.has(e)}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}}]),e}();t.default=p},function(e,t,n){"use strict";t.__esModule=!0;var i,o=n(0),r=n(35),a=n(25),s=(i=n(4))&&i.__esModule?i:{default:i};function l(e){var t=this,n=new s.default(e);this.instance=e;var i=[null,null];this.dblClickTimeout=[null,null];var l=function(e){var n=document.activeElement,a=(0,r.partial)(o.getParent,e.realTarget),s=e.realTarget;if(s!==n&&a(0)!==n&&a(1)!==n){var l=t.parentCell(s);(0,o.hasClass)(s,"corner")?t.instance.getSetting("onCellCornerMouseDown",e,s):l.TD&&t.instance.hasSetting("onCellMouseDown")&&t.instance.getSetting("onCellMouseDown",e,l.coords,l.TD,t.instance),2!==e.button&&l.TD&&(i[0]=l.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout(function(){i[0]=null},1e3))}},d=function(e){t.instance.touchMoving=!0},c=function(e){if(2!==e.button){var n=t.parentCell(e.realTarget);n.TD===i[0]&&n.TD===i[1]?((0,o.hasClass)(e.realTarget,"corner")?t.instance.getSetting("onCellCornerDblClick",e,n.coords,n.TD,t.instance):t.instance.getSetting("onCellDblClick",e,n.coords,n.TD,t.instance),i[0]=null,i[1]=null):n.TD===i[0]?(t.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,t.instance),i[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout(function(){i[1]=null},500)):n.TD&&t.instance.hasSetting("onCellMouseUp")&&t.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,t.instance)}};if(n.addEventListener(this.instance.wtTable.holder,"mousedown",l),n.addEventListener(this.instance.wtTable.TABLE,"mouseover",function(e){var n,i,r;t.instance.hasSetting("onCellMouseOver")&&(n=t.instance.wtTable.TABLE,i=(0,o.closestDown)(e.realTarget,["TD","TH"],n),r=t.instance.cloneSource||t.instance,i&&i!==r.lastMouseOver&&(0,o.isChildOf)(i,n)&&(r.lastMouseOver=i,t.instance.getSetting("onCellMouseOver",e,t.instance.wtTable.getCoords(i),i,t.instance)))}),n.addEventListener(this.instance.wtTable.TABLE,"mouseout",function(e){var n=void 0,i=void 0,r=void 0;t.instance.hasSetting("onCellMouseOut")&&(n=t.instance.wtTable.TABLE,i=(0,o.closestDown)(e.realTarget,["TD","TH"],n),r=(0,o.closestDown)(e.relatedTarget,["TD","TH"],n),i&&i!==r&&(0,o.isChildOf)(i,n)&&t.instance.getSetting("onCellMouseOut",e,t.instance.wtTable.getCoords(i),i,t.instance))}),n.addEventListener(this.instance.wtTable.holder,"mouseup",c),this.instance.wtTable.holder.parentNode.parentNode&&(0,a.isMobileBrowser)()&&!t.instance.wtTable.isWorkingOnClone()){var u="."+this.instance.wtTable.holder.parentNode.className.split(" ").join(".");n.addEventListener(this.instance.wtTable.holder,"touchstart",function(e){t.instance.touchApplied=!0,(0,o.isChildOf)(e.target,u)&&function(e){n.addEventListener(this,"touchmove",d),t.checkIfTouchMove=setTimeout(function(){!0===t.instance.touchMoving&&(t.instance.touchMoving=void 0,n.removeEventListener("touchmove",d,!1)),l(e)},30)}.call(e.target,e)}),n.addEventListener(this.instance.wtTable.holder,"touchend",function(e){t.instance.touchApplied=!1,(0,o.isChildOf)(e.target,u)&&function(e){clearTimeout(void 0),e.preventDefault(),c(e)}.call(e.target,e)}),t.instance.momentumScrolling||(t.instance.momentumScrolling={}),n.addEventListener(this.instance.wtTable.holder,"scroll",function(e){clearTimeout(t.instance.momentumScrolling._timeout),t.instance.momentumScrolling.ongoing||t.instance.getSetting("onBeforeTouchScroll"),t.instance.momentumScrolling.ongoing=!0,t.instance.momentumScrolling._timeout=setTimeout(function(){t.instance.touchApplied||(t.instance.momentumScrolling.ongoing=!1,t.instance.getSetting("onAfterMomentumScroll"))},200)})}n.addEventListener(window,"resize",function(){"none"!==t.instance.getSetting("stretchH")&&t.instance.draw()}),this.destroy=function(){clearTimeout(this.dblClickTimeout[0]),clearTimeout(this.dblClickTimeout[1]),n.destroy()}}l.prototype.parentCell=function(e){var t={},n=this.instance.wtTable.TABLE,i=(0,o.closestDown)(e,["TD","TH"],n);return i?(t.coords=this.instance.wtTable.getCoords(i),t.TD=i):(0,o.hasClass)(e,"wtBorder")&&(0,o.hasClass)(e,"current")?(t.coords=this.instance.selections.current.cellRange.highlight,t.TD=this.instance.wtTable.getCell(t.coords)):(0,o.hasClass)(e,"wtBorder")&&(0,o.hasClass)(e,"area")&&this.instance.selections.area.cellRange&&(t.coords=this.instance.selections.area.cellRange.to,t.TD=this.instance.wtTable.getCell(t.coords)),t},t.default=l},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(){function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.offset=t,this.total=n,this.countTH=i}return i(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleRowHeadedColumnToSourceColumn",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceColumnToVisibleRowHeadedColumn",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(){function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.offset=t,this.total=n,this.countTH=i}return i(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleColHeadedRowToSourceRow",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceRowToVisibleColHeadedRow",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),r=n(1),a=n(16),s=n(25),l=c(n(4)),d=c(n(28));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t,this.instance=this.wot,this.eventManager=new l.default(this.wot),this.wot.update("scrollbarWidth",(0,o.getScrollbarWidth)()),this.wot.update("scrollbarHeight",(0,o.getScrollbarWidth)()),this.scrollableElement=(0,o.getScrollableElement)(this.wot.wtTable.TABLE),this.prepareOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.overlayScrollPositions={master:{top:0,left:0},top:{top:null,left:0},bottom:{top:null,left:0},left:{top:0,left:null}},this.pendingScrollCallbacks={master:{top:0,left:0},top:{left:0},bottom:{left:0},left:{top:0}},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.delegatedScrollCallback=!1,this.registeredListeners=[],this.registerListeners()}return i(e,[{key:"prepareOverlays",value:function(){var e=!1;return this.topOverlay?e=this.topOverlay.updateStateOfRendering()||e:this.topOverlay=d.default.createOverlay(d.default.CLONE_TOP,this.wot),d.default.hasOverlay(d.default.CLONE_BOTTOM)||(this.bottomOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),d.default.hasOverlay(d.default.CLONE_BOTTOM_LEFT_CORNER)||(this.bottomLeftCornerOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),this.bottomOverlay?e=this.bottomOverlay.updateStateOfRendering()||e:this.bottomOverlay=d.default.createOverlay(d.default.CLONE_BOTTOM,this.wot),this.leftOverlay?e=this.leftOverlay.updateStateOfRendering()||e:this.leftOverlay=d.default.createOverlay(d.default.CLONE_LEFT,this.wot),this.topOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.topLeftCornerOverlay?e=this.topLeftCornerOverlay.updateStateOfRendering()||e:this.topLeftCornerOverlay=d.default.createOverlay(d.default.CLONE_TOP_LEFT_CORNER,this.wot)),this.bottomOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.bottomLeftCornerOverlay?e=this.bottomLeftCornerOverlay.updateStateOfRendering()||e:this.bottomLeftCornerOverlay=d.default.createOverlay(d.default.CLONE_BOTTOM_LEFT_CORNER,this.wot)),this.wot.getSetting("debug")&&!this.debug&&(this.debug=d.default.createOverlay(d.default.CLONE_DEBUG,this.wot)),e}},{key:"refreshAll",value:function(){this.wot.drawn&&(this.wot.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.leftOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}},{key:"registerListeners",value:function(){var e=this,t=this.topOverlay.mainTableScrollableElement,n=this.leftOverlay.mainTableScrollableElement,i=[];for(i.push([document.documentElement,"keydown",function(t){return e.onKeyDown(t)}]),i.push([document.documentElement,"keyup",function(){return e.onKeyUp()}]),i.push([document,"visibilitychange",function(){return e.onKeyUp()}]),i.push([t,"scroll",function(t){return e.onTableScroll(t)}]),t!==n&&i.push([n,"scroll",function(t){return e.onTableScroll(t)}]),this.topOverlay.needFullRender&&(i.push([this.topOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),i.push([this.topOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.bottomOverlay.needFullRender&&(i.push([this.bottomOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),i.push([this.bottomOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.leftOverlay.needFullRender&&(i.push([this.leftOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),i.push([this.leftOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.needFullRender&&i.push([this.topLeftCornerOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}]),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.needFullRender&&i.push([this.bottomLeftCornerOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}]),this.topOverlay.trimmingContainer!==window&&this.leftOverlay.trimmingContainer!==window&&i.push([window,"wheel",function(t){var n=void 0,i=t.wheelDeltaY||t.deltaY,o=t.wheelDeltaX||t.deltaX;e.topOverlay.clone.wtTable.holder.contains(t.realTarget)?n="top":e.bottomOverlay.clone&&e.bottomOverlay.clone.wtTable.holder.contains(t.realTarget)?n="bottom":e.leftOverlay.clone.wtTable.holder.contains(t.realTarget)?n="left":e.topLeftCornerOverlay&&e.topLeftCornerOverlay.clone&&e.topLeftCornerOverlay.clone.wtTable.holder.contains(t.realTarget)?n="topLeft":e.bottomLeftCornerOverlay&&e.bottomLeftCornerOverlay.clone&&e.bottomLeftCornerOverlay.clone.wtTable.holder.contains(t.realTarget)&&(n="bottomLeft"),("top"==n&&0!==i||"left"==n&&0!==o||"bottom"==n&&0!==i||("topLeft"===n||"bottomLeft"===n)&&(0!==i||0!==o))&&t.preventDefault()}]);i.length;){var o=i.pop();this.eventManager.addEventListener(o[0],o[1],o[2]),this.registeredListeners.push(o)}}},{key:"deregisterListeners",value:function(){for(;this.registeredListeners.length;){var e=this.registeredListeners.pop();this.eventManager.removeEventListener(e[0],e[1],e[2])}}},{key:"onTableScroll",value:function(e){if(!(0,s.isMobileBrowser)()){var t=this.leftOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,i=e.target;this.keyPressed&&(n!==window&&i!==window&&!e.target.contains(n)||t!==window&&i!==window&&!e.target.contains(t))||("scroll"===e.type?this.syncScrollPositions(e):this.translateMouseWheelToScroll(e))}}},{key:"onKeyDown",value:function(e){this.keyPressed=(0,a.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=this.topOverlay.clone.wtTable.holder,n=this.bottomOverlay.clone?this.bottomOverlay.clone.wtTable.holder:null,i=this.leftOverlay.clone.wtTable.holder,o=this.topLeftCornerOverlay&&this.topLeftCornerOverlay.clone?this.topLeftCornerOverlay.clone.wtTable.holder:null,r=this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone?this.bottomLeftCornerOverlay.clone.wtTable.holder:null,a=e.wheelDeltaY||-1*e.deltaY,s=e.wheelDeltaX||-1*e.deltaX,l=null,d={type:"wheel"},c=e.target,u=null;for(1===e.deltaMode&&(a*=120,s*=120);c!=document&&null!=c;){if(c.className.indexOf("wtHolder")>-1){l=c;break}c=c.parentNode}return d.target=l,l===o||l===r?(this.syncScrollPositions(d,-.2*s,"x"),this.syncScrollPositions(d,-.2*a,"y")):(l===t||l===n?u=a:l===i&&(u=s),this.syncScrollPositions(d,-.2*u)),!1}},{key:"syncScrollPositions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!this.destroyed)if(0!==arguments.length){var i=this.leftOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,a=e.target,s=0,l=!1,d=void 0,c=void 0,u=void 0,h=void 0,f=void 0,p=!1,m=this.wot.getSetting("preventOverflow");this.topOverlay.needFullRender&&(d=this.topOverlay.clone.wtTable.holder),this.bottomOverlay.needFullRender&&(f=this.bottomOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&(c=this.leftOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&this.topOverlay.needFullRender&&(u=this.topLeftCornerOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&this.bottomOverlay.needFullRender&&(h=this.bottomLeftCornerOverlay.clone.wtTable.holder),a===document&&(a=window),a===i||a===r?(s=m?(0,o.getScrollLeft)(this.scrollableElement):(0,o.getScrollLeft)(a),this.horizontalScrolling=!0,this.overlayScrollPositions.master.left=s,l=!0,this.pendingScrollCallbacks.master.left>0?this.pendingScrollCallbacks.master.left--:(d&&d.scrollLeft!==s&&(null==t&&this.pendingScrollCallbacks.top.left++,d.scrollLeft=s,p=i!==window),f&&f.scrollLeft!==s&&(null==t&&this.pendingScrollCallbacks.bottom.left++,f.scrollLeft=s,p=i!==window)),s=(0,o.getScrollTop)(a),this.verticalScrolling=!0,this.overlayScrollPositions.master.top=s,l=!0,this.pendingScrollCallbacks.master.top>0?this.pendingScrollCallbacks.master.top--:c&&c.scrollTop!==s&&(null==t&&this.pendingScrollCallbacks.left.top++,c.scrollTop=s,p=r!==window)):a===f?(s=(0,o.getScrollLeft)(a),this.horizontalScrolling=!0,this.overlayScrollPositions.bottom.left=s,l=!0,this.pendingScrollCallbacks.bottom.left>0?this.pendingScrollCallbacks.bottom.left--:(null==t&&this.pendingScrollCallbacks.master.left++,i.scrollLeft=s,d&&d.scrollLeft!==s&&(null==t&&this.pendingScrollCallbacks.top.left++,d.scrollLeft=s,p=r!==window)),null!==t&&(l=!0,r.scrollTop+=t)):a===d?(s=(0,o.getScrollLeft)(a),this.horizontalScrolling=!0,this.overlayScrollPositions.top.left=s,l=!0,this.pendingScrollCallbacks.top.left>0?this.pendingScrollCallbacks.top.left--:(null==t&&this.pendingScrollCallbacks.master.left++,i.scrollLeft=s),null!==t&&(l=!0,r.scrollTop+=t),f&&f.scrollLeft!==s&&(null==t&&this.pendingScrollCallbacks.bottom.left++,f.scrollLeft=s,p=r!==window)):a===c?(s=(0,o.getScrollTop)(a),this.overlayScrollPositions.left.top!==s&&(this.verticalScrolling=!0,this.overlayScrollPositions.left.top=s,l=!0,this.pendingScrollCallbacks.left.top>0?this.pendingScrollCallbacks.left.top--:(null==t&&this.pendingScrollCallbacks.master.top++,r.scrollTop=s)),null!==t&&(l=!0,r.scrollLeft+=t)):a!==u&&a!==h||null!==t&&(l=!0,"x"===n?r.scrollLeft+=t:"y"===n&&(r.scrollTop+=t)),!this.keyPressed&&l&&"scroll"===e.type&&(this.delegatedScrollCallback?this.delegatedScrollCallback=!1:this.refreshAll(),p&&(this.delegatedScrollCallback=!0))}else this.syncScrollWithMaster()}},{key:"syncScrollWithMaster",value:function(){var e=this.topOverlay.mainTableScrollableElement,t=e.scrollLeft,n=e.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.leftOverlay.needFullRender&&(this.leftOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.leftOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement(),this.scrollableElement=(0,o.getScrollableElement)(this.wot.wtTable.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.leftOverlay.destroy(),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.destroy(),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.destroy(),this.debug&&this.debug.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted){var t=this.wot.wtTable.wtRootElement.parentNode||this.wot.wtTable.wtRootElement,n=t.clientWidth,i=t.clientHeight;n===this.spreaderLastSize.width&&i===this.spreaderLastSize.height||(this.spreaderLastSize.width=n,this.spreaderLastSize.height=i,this.adjustElementsSize())}this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.leftOverlay.refresh(e),this.topOverlay.refresh(e),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.refresh(e),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.refresh(e),this.debug&&this.debug.refresh(e)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.getSetting("totalColumns"),n=this.wot.getSetting("totalRows"),i=this.wot.wtViewport.getRowHeaderWidth(),o=this.wot.wtViewport.getColumnHeaderHeight(),r=this.wot.wtTable.hider.style;r.width=i+this.leftOverlay.sumCellSizes(0,t)+"px",r.height=o+this.topOverlay.sumCellSizes(0,n)+1+"px",this.topOverlay.adjustElementsSize(e),this.leftOverlay.adjustElementsSize(e),this.bottomOverlay.clone&&this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted||this.adjustElementsSize(),this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.leftOverlay.applyToDOM()}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay],n=null;return(0,r.arrayEach)(t,function(t,i){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)}),n}}]),e}();t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),r=n(6),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t,this.instance=t}return i(e,[{key:"scrollViewport",value:function(e){if(this.wot.drawn){var t=this._getVariables(),n=t.topOverlay,i=t.leftOverlay,o=t.totalRows,r=t.totalColumns,a=t.fixedRowsTop,s=t.fixedRowsBottom,l=t.fixedColumnsLeft;if(e.row<0||e.row>Math.max(o-1,0))throw new Error("row "+e.row+" does not exist");if(e.col<0||e.col>Math.max(r-1,0))throw new Error("column "+e.col+" does not exist");e.row>=a&&e.row<this.getFirstVisibleRow()?n.scrollTo(e.row):e.row>this.getLastVisibleRow()&&e.row<o-s&&n.scrollTo(e.row,!0),e.col>=l&&e.col<this.getFirstVisibleColumn()?i.scrollTo(e.col):e.col>this.getLastVisibleColumn()&&i.scrollTo(e.col,!0)}}},{key:"getFirstVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,i=e.wtViewport,a=e.totalRows,s=e.fixedRowsTop,l=n.getFirstVisibleRow();if(t.mainTableScrollableElement===window){var d=(0,o.offset)(n.wtRootElement),c=(0,o.innerHeight)(n.hider),u=(0,o.innerHeight)(window),h=(0,o.getScrollTop)(window);if(d.top+c-u<=h){var f=i.getColumnHeaderHeight();f+=t.sumCellSizes(0,s),(0,r.rangeEachReverse)(a,1,function(e){if(f+=t.sumCellSizes(e-1,e),d.top+c-f<=h)return l=e,!1})}}return l}},{key:"getLastVisibleRow",value:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,i=e.wtViewport,a=e.totalRows,s=n.getLastVisibleRow();if(t.mainTableScrollableElement===window){var l=(0,o.offset)(n.wtRootElement),d=(0,o.innerHeight)(window),c=(0,o.getScrollTop)(window);if(l.top>c){var u=i.getColumnHeaderHeight();(0,r.rangeEach)(1,a,function(e){if(u+=t.sumCellSizes(e-1,e),l.top+u-c>=d)return s=e-2,!1})}}return s}},{key:"getFirstVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,i=e.wtViewport,a=e.totalColumns,s=(e.fixedColumnsLeft,n.getFirstVisibleColumn());if(t.mainTableScrollableElement===window){var l=(0,o.offset)(n.wtRootElement),d=(0,o.innerWidth)(n.hider),c=(0,o.innerWidth)(window),u=(0,o.getScrollLeft)(window);if(l.left+d-c<=u){var h=i.getRowHeaderWidth();(0,r.rangeEachReverse)(a,1,function(e){if(h+=t.sumCellSizes(e-1,e),l.left+d-h<=u)return s=e,!1})}}return s}},{key:"getLastVisibleColumn",value:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,i=e.wtViewport,a=e.totalColumns,s=n.getLastVisibleColumn();if(t.mainTableScrollableElement===window){var l=(0,o.offset)(n.wtRootElement),d=(0,o.innerWidth)(window),c=(0,o.getScrollLeft)(window);if(l.left>c){var u=i.getRowHeaderWidth();(0,r.rangeEach)(1,a,function(e){if(u+=t.sumCellSizes(e-1,e),l.left+u-c>=d)return s=e-2,!1})}}return s}},{key:"_getVariables",value:function(){var e=this.wot;return{topOverlay:e.wtOverlays.topOverlay,leftOverlay:e.wtOverlays.leftOverlay,wtTable:e.wtTable,wtViewport:e.wtViewport,totalRows:e.getSetting("totalRows"),totalColumns:e.getSetting("totalColumns"),fixedRowsTop:e.getSetting("fixedRowsTop"),fixedRowsBottom:e.getSetting("fixedRowsBottom"),fixedColumnsLeft:e.getSetting("fixedColumnsLeft")}}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),r=n(2),a=function(){function e(t,n){var i=this;for(var a in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t,this.instance=t,this.defaults={table:void 0,debug:!1,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},data:void 0,freezeOverlays:!1,fixedColumnsLeft:0,fixedRowsTop:0,fixedRowsBottom:0,minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(e,t,n){var r=i.getSetting("data",e,t);(0,o.fastInnerText)(n,void 0===r||null===r?"":r)},columnWidth:function(e){},rowHeight:function(e){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null},this.settings={},this.defaults)if((0,r.hasOwnProperty)(this.defaults,a))if(void 0!==n[a])this.settings[a]=n[a];else{if(void 0===this.defaults[a])throw new Error('A required setting "'+a+'" was not provided');this.settings[a]=this.defaults[a]}}return i(e,[{key:"update",value:function(e,t){if(void 0===t)for(var n in e)(0,r.hasOwnProperty)(e,n)&&(this.settings[n]=e[n]);else this.settings[e]=t;return this.wot}},{key:"getSetting",value:function(e,t,n,i,o){return"function"==typeof this.settings[e]?this.settings[e](t,n,i,o):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}();t.default=a},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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),a=n(35),s=h(n(42)),l=(h(n(69)),h(n(139))),d=h(n(140)),c=h(n(145)),u=h(n(28));function h(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(t,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t,this.instance=this.wot,this.TABLE=n,this.TBODY=null,this.THEAD=null,this.COLGROUP=null,this.tableOffset=0,this.holderOffset=0,(0,r.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.colgroupChildrenLength=this.COLGROUP.childNodes.length,this.theadChildrenLength=this.THEAD.firstChild?this.THEAD.firstChild.childNodes.length:0,this.tbodyChildrenLength=this.TBODY.childNodes.length,this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var o=this.wot.wtSettings.settings.rowHeaderWidth;this.wot.wtSettings.settings.rowHeaderWidth=function(){return i._modifyRowHeaderWidth(o)}}return o(e,[{key:"fixTableDomTree",value:function(){this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=document.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=document.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=document.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD)),this.wot.getSetting("columnHeaders").length&&!this.THEAD.childNodes.length&&this.THEAD.appendChild(document.createElement("TR"))}},{key:"createSpreader",value:function(e){var t=e.parentNode,n=void 0;return t&&1===t.nodeType&&(0,r.hasClass)(t,"wtHolder")||((n=document.createElement("div")).className="wtSpreader",t&&t.insertBefore(n,e),n.appendChild(e)),n.style.position="relative",n}},{key:"createHider",value:function(e){var t=e.parentNode,n=void 0;return t&&1===t.nodeType&&(0,r.hasClass)(t,"wtHolder")||((n=document.createElement("div")).className="wtHider",t&&t.insertBefore(n,e),n.appendChild(e)),n}},{key:"createHolder",value:function(e){var t=e.parentNode,n=void 0;return t&&1===t.nodeType&&(0,r.hasClass)(t,"wtHolder")||((n=document.createElement("div")).style.position="relative",n.className="wtHolder",t&&t.insertBefore(n,e),this.isWorkingOnClone()||(n.parentNode.className+="ht_master handsontable"),n.appendChild(e)),n}},{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,r.getTrimmingContainer)(this.wtRootElement);this.isWorkingOnClone()||(this.holder.parentNode.style.position="relative",e===window?this.wot.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible"):(this.holder.style.width=(0,r.getStyle)(e,"width"),this.holder.style.height=(0,r.getStyle)(e,"height"),this.holder.style.overflow=""))}},{key:"isWorkingOnClone",value:function(){return!!this.wot.cloneSource}},{key:"draw",value:function(e){var t=this.wot,n=t.wtOverlays,i=t.wtViewport,o=this.instance.getSetting("totalRows"),a=this.wot.getSetting("rowHeaders").length,s=this.wot.getSetting("columnHeaders").length,c=!1;if(!this.isWorkingOnClone()&&(this.holderOffset=(0,r.offset)(this.holder),e=i.createRenderCalculators(e),a&&!this.wot.getSetting("fixedColumnsLeft"))){var h=n.leftOverlay.getScrollPosition(),f=this.correctHeaderWidth;this.correctHeaderWidth=h>0,f!==this.correctHeaderWidth&&(e=!1)}if(this.isWorkingOnClone()||(c=n.prepareOverlays()),e)this.isWorkingOnClone()||i.createVisibleCalculators(),n&&n.refresh(!0);else{this.isWorkingOnClone()?this.tableOffset=this.wot.cloneSource.wtTable.tableOffset:this.tableOffset=(0,r.offset)(this.TABLE);var p;p=u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_DEBUG)||u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_TOP)||u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_TOP_LEFT_CORNER)?0:u.default.isOverlayTypeOf(this.instance.cloneOverlay,u.default.CLONE_BOTTOM)||u.default.isOverlayTypeOf(this.instance.cloneOverlay,u.default.CLONE_BOTTOM_LEFT_CORNER)?Math.max(o-this.wot.getSetting("fixedRowsBottom"),0):i.rowsRenderCalculator.startRow;var m;m=u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_DEBUG)||u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_LEFT)||u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_TOP_LEFT_CORNER)||u.default.isOverlayTypeOf(this.wot.cloneOverlay,u.default.CLONE_BOTTOM_LEFT_CORNER)?0:i.columnsRenderCalculator.startColumn,this.rowFilter=new d.default(p,o,s),this.columnFilter=new l.default(m,this.wot.getSetting("totalColumns"),a),this.alignOverlaysWithTrimmingContainer(),this._doDraw()}return this.refreshSelections(e),this.isWorkingOnClone()||(n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&n.bottomOverlay.resetFixedPosition(),n.leftOverlay.resetFixedPosition(),n.topLeftCornerOverlay&&n.topLeftCornerOverlay.resetFixedPosition(),n.bottomLeftCornerOverlay&&n.bottomLeftCornerOverlay.clone&&n.bottomLeftCornerOverlay.resetFixedPosition()),c&&n.syncScrollWithMaster(),this.wot.drawn=!0,this}},{key:"_doDraw",value:function(){new c.default(this).render()}},{key:"removeClassFromCells",value:function(e){for(var t=this.TABLE.querySelectorAll("."+e),n=0,i=t.length;n<i;n++)(0,r.removeClass)(t[n],e)}},{key:"refreshSelections",value:function(e){if(this.wot.selections){var t=this.wot.selections.length;if(e)for(var n=0;n<t;n++)this.wot.selections[n].settings.className&&this.removeClassFromCells(this.wot.selections[n].settings.className),this.wot.selections[n].settings.highlightHeaderClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightHeaderClassName),this.wot.selections[n].settings.highlightRowClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightRowClassName),this.wot.selections[n].settings.highlightColumnClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightColumnClassName);for(var i=0;i<t;i++)this.wot.selections[i].draw(this.wot,e)}}},{key:"getCell",value:function(e){if(this.isRowBeforeRenderedRows(e.row))return-1;if(this.isRowAfterRenderedRows(e.row))return-2;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e.row)];return t?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e.col)]:void 0}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];if(n)return n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getRowHeader",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return t?t.childNodes[0]:void 0}},{key:"getCoords",value:function(e){if("TD"!==e.nodeName&&"TH"!==e.nodeName&&(e=(0,r.closest)(e,["TD","TH"])),null===e)return null;var t=e.parentNode,n=t.parentNode,i=(0,r.index)(t),o=e.cellIndex;return(0,r.overlayContainsElement)(u.default.CLONE_TOP_LEFT_CORNER,e)||(0,r.overlayContainsElement)(u.default.CLONE_TOP,e)?"THEAD"===n.nodeName&&(i-=n.childNodes.length):i=n===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(i):this.rowFilter.renderedToSource(i),o=(0,r.overlayContainsElement)(u.default.CLONE_TOP_LEFT_CORNER,e)||(0,r.overlayContainsElement)(u.default.CLONE_LEFT,e)?this.columnFilter.offsettedTH(o):this.columnFilter.visibleRowHeadedColumnToSourceColumn(o),new s.default(i,o)}},{key:"getTrForRow",value:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}},{key:"getFirstRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.startRow}},{key:"getFirstVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.startRow}},{key:"getFirstRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.startColumn}},{key:"getFirstVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.startColumn}},{key:"getLastRenderedRow",value:function(){return this.wot.wtViewport.rowsRenderCalculator.endRow}},{key:"getLastVisibleRow",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.endRow}},{key:"getLastRenderedColumn",value:function(){return this.wot.wtViewport.columnsRenderCalculator.endColumn}},{key:"getLastVisibleColumn",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.endColumn}},{key:"isRowBeforeRenderedRows",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)<0&&e>=0}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastVisibleRow()}},{key:"isRowAfterRenderedRows",value:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastRenderedRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)>this.getLastVisibleColumn()}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"getRenderedColumnsCount",value:function(){var e=this.wot.wtViewport.columnsRenderCalculator.count,t=this.wot.getSetting("totalColumns");if(this.wot.isOverlayName(u.default.CLONE_DEBUG))e=t;else if(this.wot.isOverlayName(u.default.CLONE_LEFT)||this.wot.isOverlayName(u.default.CLONE_TOP_LEFT_CORNER)||this.wot.isOverlayName(u.default.CLONE_BOTTOM_LEFT_CORNER))return Math.min(this.wot.getSetting("fixedColumnsLeft"),t);return e}},{key:"getRenderedRowsCount",value:function(){var e=this.wot.wtViewport.rowsRenderCalculator.count,t=this.wot.getSetting("totalRows");return this.wot.isOverlayName(u.default.CLONE_DEBUG)?e=t:this.wot.isOverlayName(u.default.CLONE_TOP)||this.wot.isOverlayName(u.default.CLONE_TOP_LEFT_CORNER)?e=Math.min(this.wot.getSetting("fixedRowsTop"),t):(this.wot.isOverlayName(u.default.CLONE_BOTTOM)||this.wot.isOverlayName(u.default.CLONE_BOTTOM_LEFT_CORNER))&&(e=Math.min(this.wot.getSetting("fixedRowsBottom"),t)),e}},{key:"getVisibleRowsCount",value:function(){return this.wot.wtViewport.rowsVisibleCalculator.count}},{key:"allRowsInViewport",value:function(){return this.wot.getSetting("totalRows")==this.getVisibleRowsCount()}},{key:"getRowHeight",value:function(e){var t=this.wot.wtSettings.settings.rowHeight(e),n=this.wot.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}},{key:"getColumnHeaderHeight",value:function(e){var t=this.wot.wtSettings.settings.defaultRowHeight,n=this.wot.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}},{key:"getVisibleColumnsCount",value:function(){return this.wot.wtViewport.columnsVisibleCalculator.count}},{key:"allColumnsInViewport",value:function(){return this.wot.getSetting("totalColumns")==this.getVisibleColumnsCount()}},{key:"getColumnWidth",value:function(e){var t=this.wot.wtSettings.settings.columnWidth;return"function"==typeof t?t=t(e):"object"===(void 0===t?"undefined":i(t))&&(t=t[e]),t||this.wot.wtSettings.settings.defaultColumnWidth}},{key:"getStretchedColumnWidth",value:function(e){var t=this.getColumnWidth(e),n=null==t?this.instance.wtSettings.settings.defaultColumnWidth:t,i=this.wot.wtViewport.columnsRenderCalculator;if(i){var o=i.getStretchedColumnWidth(e,n);o&&(n=o)}return n}},{key:"_modifyRowHeaderWidth",value:function(e){var t=(0,a.isFunction)(e)?e():null;return Array.isArray(t)?(t=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t)))[t.length-1]=this._correctRowHeaderWidth(t[t.length-1]):t=this._correctRowHeaderWidth(t),t}},{key:"_correctRowHeaderWidth",value:function(e){return"number"!=typeof e&&(e=this.wot.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&e++,e}}]),e}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),a=(i=n(28))&&i.__esModule?i:{default:i},s=!1,l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wtTable=t,this.wot=t.instance,this.instance=t.instance,this.rowFilter=t.rowFilter,this.columnFilter=t.columnFilter,this.TABLE=t.TABLE,this.THEAD=t.THEAD,this.TBODY=t.TBODY,this.COLGROUP=t.COLGROUP,this.rowHeaders=[],this.rowHeaderCount=0,this.columnHeaders=[],this.columnHeaderCount=0,this.fixedRowsTop=0,this.fixedRowsBottom=0}return o(e,[{key:"render",value:function(){if(!this.wtTable.isWorkingOnClone()){var e={};if(this.wot.getSetting("beforeDraw",!0,e),!0===e.skipRender)return}this.rowHeaders=this.wot.getSetting("rowHeaders"),this.rowHeaderCount=this.rowHeaders.length,this.fixedRowsTop=this.wot.getSetting("fixedRowsTop"),this.fixedRowsBottom=this.wot.getSetting("fixedRowsBottom"),this.columnHeaders=this.wot.getSetting("columnHeaders"),this.columnHeaderCount=this.columnHeaders.length;var t=this.wtTable.getRenderedColumnsCount(),n=this.wtTable.getRenderedRowsCount(),i=this.wot.getSetting("totalColumns"),o=this.wot.getSetting("totalRows"),s=void 0,l=!1;if((a.default.isOverlayTypeOf(this.wot.cloneOverlay,a.default.CLONE_BOTTOM)||a.default.isOverlayTypeOf(this.wot.cloneOverlay,a.default.CLONE_BOTTOM_LEFT_CORNER))&&(this.columnHeaders=[],this.columnHeaderCount=0),i>=0&&(this.adjustAvailableNodes(),l=!0,this.renderColumnHeaders(),this.renderRows(o,n,t),this.wtTable.isWorkingOnClone()||(s=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null),this.adjustColumnWidths(t),this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights()),l||this.adjustAvailableNodes(),this.removeRedundantRows(n),this.wtTable.isWorkingOnClone()&&!this.wot.isOverlayName(a.default.CLONE_BOTTOM)||this.markOversizedRows(),this.wtTable.isWorkingOnClone())this.wot.isOverlayName(a.default.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize();else{this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var d=(0,r.outerWidth)(this.wtTable.hider),c=(0,r.outerWidth)(this.wtTable.TABLE);if(0!==d&&c!==d&&this.adjustColumnWidths(t),s!==this.wot.wtViewport.getWorkspaceWidth()){this.wot.wtViewport.containerWidth=null;var u=this.wtTable.getFirstRenderedColumn(),h=this.wtTable.getLastRenderedColumn(),f=this.wot.getSetting("defaultColumnWidth"),p=this.wot.getSetting("rowHeaderWidth");if(null!=(p=this.instance.getSetting("onModifyRowHeaderWidth",p)))for(var m=0;m<this.rowHeaderCount;m++){var g=Array.isArray(p)?p[m]:p;g=null==g?f:g,this.COLGROUP.childNodes[m].style.width=g+"px"}for(var y=u;y<h;y++){var v=this.wtTable.getStretchedColumnWidth(y),A=this.columnFilter.sourceToRendered(y);this.COLGROUP.childNodes[A+this.rowHeaderCount].style.width=v+"px"}}this.wot.getSetting("onDraw",!0)}}},{key:"removeRedundantRows",value:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--}},{key:"renderRows",value:function(e,t,n){for(var i=void 0,o=0,r=this.rowFilter.renderedToSource(o),l=this.wtTable.isWorkingOnClone();r<e&&r>=0&&(!s&&o>1e3&&(s=!0),void 0===t||o!==t);){if(i=this.getOrCreateTrForRow(o,i),this.renderRowHeaders(r,i),this.adjustColumns(i,n+this.rowHeaderCount),this.renderCells(r,i,n),l&&!this.wot.isOverlayName(a.default.CLONE_BOTTOM)||this.resetOversizedRow(r),i.firstChild){var d=this.wot.wtTable.getRowHeight(r);d?(d--,i.firstChild.style.height=d+"px"):i.firstChild.style.height=""}o++,r=this.rowFilter.renderedToSource(o)}}},{key:"resetOversizedRow",value:function(e){this.wot.getSetting("externalRowCalculator")||this.wot.wtViewport.oversizedRows&&this.wot.wtViewport.oversizedRows[e]&&(this.wot.wtViewport.oversizedRows[e]=void 0)}},{key:"markOversizedRows",value:function(){if(!this.wot.getSetting("externalRowCalculator")){var e=this.instance.wtTable.TBODY.childNodes.length,t=e*this.instance.wtSettings.settings.defaultRowHeight,n=(0,r.innerHeight)(this.instance.wtTable.TBODY)-1,i=void 0,o=void 0,a=void 0,s=void 0,l=void 0;if(this.instance.getSetting("totalRows"),t!==n||this.instance.getSetting("fixedRowsBottom"))for(;e;)e--,a=this.instance.wtTable.rowFilter.renderedToSource(e),i=this.instance.wtTable.getRowHeight(a),o=(l=(s=this.instance.wtTable.getTrForRow(a)).querySelector("th"))?(0,r.innerHeight)(l):(0,r.innerHeight)(s)-1,(!i&&this.instance.wtSettings.settings.defaultRowHeight<o||i<o)&&(this.instance.wtViewport.oversizedRows[a]=++o)}}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wot.getOverlayName();if(this.columnHeaderCount&&!this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]&&!this.wtTable.isWorkingOnClone()){for(var t=this.wtTable.getRenderedColumnsCount(),n=0;n<this.columnHeaderCount;n++)for(var i=-1*this.rowHeaderCount;i<t;i++)this.markIfOversizedColumnHeader(i);this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]=!0}}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wot.getSetting("columnHeaders"),t=this.wot.wtTable.THEAD.childNodes,n=this.wot.wtViewport.oversizedColumnHeaders,i=0,o=e.length;i<o;i++)if(n[i]){if(!t[i]||0===t[i].childNodes.length)return;t[i].childNodes[0].style.height=n[i]+"px"}}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t=this.wot.wtTable.columnFilter.renderedToSource(e),n=this.columnHeaderCount,i=this.wot.wtSettings.settings.defaultRowHeight,o=void 0,a=void 0,s=void 0,l=this.wot.getSetting("columnHeaderHeight")||[];n;)n--,o=this.wot.wtTable.getColumnHeaderHeight(n),(a=this.wot.wtTable.getColumnHeader(t,n))&&(s=(0,r.innerHeight)(a),(!o&&i<s||o<s)&&(this.wot.wtViewport.oversizedColumnHeaders[n]=s),Array.isArray(l)?null!=l[n]&&(this.wot.wtViewport.oversizedColumnHeaders[n]=l[n]):isNaN(l)||(this.wot.wtViewport.oversizedColumnHeaders[n]=l),this.wot.wtViewport.oversizedColumnHeaders[n]<(l[n]||l)&&(this.wot.wtViewport.oversizedColumnHeaders[n]=l[n]||l))}},{key:"renderCells",value:function(e,t,n){for(var i=void 0,o=void 0,a=0;a<n;a++)o=this.columnFilter.renderedToSource(a),"TH"==(i=0===a?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(o)]:i.nextSibling).nodeName&&(i=c(i,t)),(0,r.hasClass)(i,"hide")||(i.className=""),i.removeAttribute("style"),this.wot.wtSettings.settings.cellRenderer(e,o,i);return i}},{key:"adjustColumnWidths",value:function(e){var t=0,n=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,i=this.wot.getSetting("defaultColumnWidth"),o=this.wot.getSetting("rowHeaderWidth");if(n.offsetHeight<n.scrollHeight&&(t=(0,r.getScrollbarWidth)()),this.wot.wtViewport.columnsRenderCalculator.refreshStretching(this.wot.wtViewport.getViewportWidth()-t),null!=(o=this.instance.getSetting("onModifyRowHeaderWidth",o)))for(var a=0;a<this.rowHeaderCount;a++){var s=Array.isArray(o)?o[a]:o;s=null==s?i:s,this.COLGROUP.childNodes[a].style.width=s+"px"}for(var l=0;l<e;l++){var d=this.wtTable.getStretchedColumnWidth(this.columnFilter.renderedToSource(l));this.COLGROUP.childNodes[l+this.rowHeaderCount].style.width=d+"px"}}},{key:"appendToTbody",value:function(e){this.TBODY.appendChild(e),this.wtTable.tbodyChildrenLength++}},{key:"getOrCreateTrForRow",value:function(e,t){var n=void 0;return e>=this.wtTable.tbodyChildrenLength?(n=this.createRow(),this.appendToTbody(n)):n=0===e?this.TBODY.firstChild:t.nextSibling,n.className&&n.removeAttribute("class"),n}},{key:"createRow",value:function(){for(var e=document.createElement("TR"),t=0;t<this.rowHeaderCount;t++)e.appendChild(document.createElement("TH"));return e}},{key:"renderRowHeader",value:function(e,t,n){n.className="",n.removeAttribute("style"),this.rowHeaders[t](e,n,t)}},{key:"renderRowHeaders",value:function(e,t){for(var n=t.firstChild,i=0;i<this.rowHeaderCount;i++)n?"TD"==n.nodeName&&(n=d(n,t)):(n=document.createElement("TH"),t.appendChild(n)),this.renderRowHeader(e,i,n),n=n.nextSibling}},{key:"adjustAvailableNodes",value:function(){this.adjustColGroups(),this.adjustThead()}},{key:"renderColumnHeaders",value:function(){if(this.columnHeaderCount)for(var e=this.wtTable.getRenderedColumnsCount(),t=0;t<this.columnHeaderCount;t++)for(var n=this.getTrForColumnHeaders(t),i=-1*this.rowHeaderCount;i<e;i++){var o=this.columnFilter.renderedToSource(i);this.renderColumnHeader(t,o,n.childNodes[i+this.rowHeaderCount])}}},{key:"adjustColGroups",value:function(){for(var e=this.wtTable.getRenderedColumnsCount();this.wtTable.colgroupChildrenLength<e+this.rowHeaderCount;)this.COLGROUP.appendChild(document.createElement("COL")),this.wtTable.colgroupChildrenLength++;for(;this.wtTable.colgroupChildrenLength>e+this.rowHeaderCount;)this.COLGROUP.removeChild(this.COLGROUP.lastChild),this.wtTable.colgroupChildrenLength--;this.rowHeaderCount&&(0,r.addClass)(this.COLGROUP.childNodes[0],"rowHeader")}},{key:"adjustThead",value:function(){var e=this.wtTable.getRenderedColumnsCount(),t=this.THEAD.firstChild;if(this.columnHeaders.length){for(var n=0,i=this.columnHeaders.length;n<i;n++){for((t=this.THEAD.childNodes[n])||(t=document.createElement("TR"),this.THEAD.appendChild(t)),this.theadChildrenLength=t.childNodes.length;this.theadChildrenLength<e+this.rowHeaderCount;)t.appendChild(document.createElement("TH")),this.theadChildrenLength++;for(;this.theadChildrenLength>e+this.rowHeaderCount;)t.removeChild(t.lastChild),this.theadChildrenLength--}var o=this.THEAD.childNodes.length;if(o>this.columnHeaders.length)for(var a=this.columnHeaders.length;a<o;a++)this.THEAD.removeChild(this.THEAD.lastChild)}else t&&(0,r.empty)(t)}},{key:"getTrForColumnHeaders",value:function(e){return this.THEAD.childNodes[e]}},{key:"renderColumnHeader",value:function(e,t,n){return n.className="",n.removeAttribute("style"),this.columnHeaders[e](t,n,e)}},{key:"adjustColumns",value:function(e,t){for(var n=e.childNodes.length;n<t;){var i=document.createElement("TD");e.appendChild(i),n++}for(;n>t;)e.removeChild(e.lastChild),n--}},{key:"removeRedundantColumns",value:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--}}]),e}();function d(e,t){var n=document.createElement("TH");return t.insertBefore(n,e),t.removeChild(e),n}function c(e,t){var n=document.createElement("TD");return t.insertBefore(n,e),t.removeChild(e),n}t.default=l},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),r=n(2),a=d(n(4)),s=d(n(135)),l=d(n(136));function d(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wot=t,this.instance=this.wot,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=new a.default(this.wot),this.eventManager.addEventListener(window,"resize",function(){n.clientHeight=n.getWorkspaceHeight()})}return i(e,[{key:"getWorkspaceHeight",value:function(){var e=this.instance.wtOverlays.topOverlay.trimmingContainer;return e===window?document.documentElement.clientHeight:(0,o.outerHeight)(e)>0&&e.clientHeight>0?e.clientHeight:1/0}},{key:"getWorkspaceWidth",value:function(){var e=void 0,t=this.wot.getSetting("totalColumns"),n=this.instance.wtOverlays.leftOverlay.trimmingContainer,i=void 0,r=this.wot.getSetting("stretchH"),a=document.documentElement.offsetWidth;return this.wot.getSetting("preventOverflow")?(0,o.outerWidth)(this.instance.wtTable.wtRootElement):(e=this.wot.getSetting("freezeOverlays")?Math.min(a-this.getWorkspaceOffset().left,a):Math.min(this.getContainerFillWidth(),a-this.getWorkspaceOffset().left,a),n===window&&t>0&&this.sumColumnWidths(0,t-1)>e?document.documentElement.clientWidth:n===window||"scroll"!=(i=(0,o.getStyle)(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow"))&&"hidden"!=i&&"auto"!=i?"none"!==r&&r?e:Math.max(e,(0,o.outerWidth)(this.instance.wtTable.TABLE)):Math.max(e,n.clientWidth))}},{key:"hasVerticalScroll",value:function(){return this.getWorkspaceActualHeight()>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.getWorkspaceActualWidth()>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=0;e<t;)n+=this.wot.wtTable.getColumnWidth(e),e++;return n}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e,t=this.instance.wtTable.holder,n=void 0;return(n=document.createElement("div")).style.width="100%",n.style.height="1px",t.appendChild(n),e=n.offsetWidth,this.containerWidth=e,t.removeChild(n),e}},{key:"getWorkspaceOffset",value:function(){return(0,o.offset)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualHeight",value:function(){return(0,o.outerHeight)(this.wot.wtTable.TABLE)}},{key:"getWorkspaceActualWidth",value:function(){return(0,o.outerWidth)(this.wot.wtTable.TABLE)||(0,o.outerWidth)(this.wot.wtTable.TBODY)||(0,o.outerWidth)(this.wot.wtTable.THEAD)}},{key:"getColumnHeaderHeight",value:function(){return isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,o.outerHeight)(this.wot.wtTable.THEAD)),this.columnHeaderHeight}},{key:"getViewportHeight",value:function(){var e,t=this.getWorkspaceHeight();return t===1/0?t:((e=this.getColumnHeaderHeight())>0&&(t-=e),t)}},{key:"getRowHeaderWidth",value:function(){var e=this.instance.getSetting("rowHeaderWidth"),t=this.instance.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,i=t.length;n<i;n++)this.rowHeaderWidth+=e[n]||e}if(this.wot.cloneSource)return this.wot.cloneSource.wtViewport.getRowHeaderWidth();if(isNaN(this.rowHeaderWidth))if(t.length){var r=this.instance.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var a=0,s=t.length;a<s;a++)r?(this.rowHeaderWidth+=(0,o.outerWidth)(r),r=r.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.instance.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}},{key:"getViewportWidth",value:function(){var e,t=this.getWorkspaceWidth();return t===1/0?t:(e=this.getRowHeaderWidth())>0?t-e:t}},{key:"createRowsCalculator",value:function(){var e,t,n,i,r=this,a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=void 0,d=void 0,c=void 0;return this.rowHeaderWidth=NaN,s=this.wot.wtSettings.settings.renderAllRows?1/0:this.getViewportHeight(),(d=this.wot.wtOverlays.topOverlay.getScrollPosition()-this.wot.wtOverlays.topOverlay.getTableParentOffset())<0&&(d=0),e=this.wot.getSetting("fixedRowsTop"),t=this.wot.getSetting("fixedRowsBottom"),n=this.wot.getSetting("totalRows"),e&&(d+=c=this.wot.wtOverlays.topOverlay.sumCellSizes(0,e),s-=c),t&&this.wot.wtOverlays.bottomOverlay.clone&&(s-=c=this.wot.wtOverlays.bottomOverlay.sumCellSizes(n-t,n)),i=this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight?0:(0,o.getScrollbarWidth)(),new l.default(s,d,this.wot.getSetting("totalRows"),function(e){return r.wot.wtTable.getRowHeight(e)},a?null:this.wot.wtSettings.settings.viewportRowCalculatorOverride,a,i)}},{key:"createColumnsCalculator",value:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.getViewportWidth(),r=void 0;if(this.columnHeaderHeight=NaN,(r=this.wot.wtOverlays.leftOverlay.getScrollPosition()-this.wot.wtOverlays.leftOverlay.getTableParentOffset())<0&&(r=0),e=this.wot.getSetting("fixedColumnsLeft")){var a=this.wot.wtOverlays.leftOverlay.sumCellSizes(0,e);r+=a,i-=a}return this.wot.wtTable.holder.clientWidth!==this.wot.wtTable.holder.offsetWidth&&(i-=(0,o.getScrollbarWidth)()),new s.default(i,r,this.wot.getSetting("totalColumns"),function(e){return t.wot.wtTable.getColumnWidth(e)},n?null:this.wot.wtSettings.settings.viewportColumnCalculatorOverride,n,this.wot.getSetting("stretchH"),function(e,n){return t.wot.getSetting("onBeforeStretchingColumnWidth",e,n)})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e){var t=this.createRowsCalculator(!0),n=this.createColumnsCalculator(!0);this.areAllProposedVisibleRowsAlreadyRendered(t)&&this.areAllProposedVisibleColumnsAlreadyRendered(n)||(e=!1)}return e||(this.rowsRenderCalculator=this.createRowsCalculator(),this.columnsRenderCalculator=this.createColumnsCalculator()),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,e}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(!0),this.columnsVisibleCalculator=this.createColumnsCalculator(!0)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){return!(!this.rowsVisibleCalculator||e.startRow<this.rowsRenderCalculator.startRow||e.startRow===this.rowsRenderCalculator.startRow&&e.startRow>0||e.endRow>this.rowsRenderCalculator.endRow||e.endRow===this.rowsRenderCalculator.endRow&&e.endRow<this.wot.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){return!(!this.columnsVisibleCalculator||e.startColumn<this.columnsRenderCalculator.startColumn||e.startColumn===this.columnsRenderCalculator.startColumn&&e.startColumn>0||e.endColumn>this.columnsRenderCalculator.endColumn||e.endColumn===this.columnsRenderCalculator.endColumn&&e.endColumn<this.wot.getSetting("totalColumns")-1)}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,r.objectEach)(this.hasOversizedColumnHeadersMarked,function(e,t,n){n[t]=void 0})}}]),e}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0;var i,o=n(16),r=n(20),a=n(27),s=n(1),l=n(0),d=(i=n(148))&&i.__esModule?i:{default:i},c=d.default.prototype.extend();c.prototype.init=function(){d.default.prototype.init.apply(this,arguments),this.query=null,this.strippedChoices=[],this.rawChoices=[]},c.prototype.getValue=function(){var e=this,t=this.rawChoices.find(function(t){return e.stripValueIfNeeded(t)===e.TEXTAREA.value});return(0,r.isDefined)(t)?t:this.TEXTAREA.value},c.prototype.createElements=function(){d.default.prototype.createElements.apply(this,arguments),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===window.navigator.platform.indexOf("Mac")?"":"htMacScroll")};var u=!1;function h(e){u=!1;var t=this.getActiveEditor();if((0,o.isPrintableChar)(e.keyCode)||e.keyCode===o.KEY_CODES.BACKSPACE||e.keyCode===o.KEY_CODES.DELETE||e.keyCode===o.KEY_CODES.INSERT){var n=0;if(e.keyCode===o.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;t.isOpened()||(n+=10),t.htEditor&&t.instance._registerTimeout(setTimeout(function(){t.queryChoices(t.TEXTAREA.value),u=!0},n))}}c.prototype.prepare=function(){this.instance.addHook("beforeKeyDown",h),d.default.prototype.prepare.apply(this,arguments)},c.prototype.open=function(){this.TEXTAREA_PARENT.style.overflow="auto",d.default.prototype.open.apply(this,arguments),this.TEXTAREA_PARENT.style.overflow="";var e=this.htEditor.getInstance(),t=this,n=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.TEXTAREA.style.visibility="visible",this.focus(),e.updateSettings({colWidths:n?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,width:n?(0,l.outerWidth)(this.TEXTAREA)+(0,l.getScrollbarWidth)()+2:void 0,afterRenderer:function(e,n,i,o,a,s){var l=t.cellProperties,d=l.filteringCaseSensitive,c=l.allowHtml,u=void 0,h=void 0;(a=(0,r.stringify)(a))&&!c&&-1!==(u=!0===d?a.indexOf(this.query):a.toLowerCase().indexOf(t.query.toLowerCase()))&&(h=a.substr(u,t.query.length),a=a.replace(h,"<strong>"+h+"</strong>")),e.innerHTML=a},autoColumnSize:!0,modifyColWidth:function(e,t){var i=this.getPlugin("autoColumnSize").widths;return i[t]&&(e=i[t]),n?e:e+15}}),this.htEditor.view.wt.wtTable.holder.parentNode.style["padding-right"]=(0,l.getScrollbarWidth)()+2+"px",u&&(u=!1),t.instance._registerTimeout(setTimeout(function(){t.queryChoices(t.TEXTAREA.value)},0))},c.prototype.close=function(){d.default.prototype.close.apply(this,arguments)},c.prototype.queryChoices=function(e){var t=this;this.query=e;var n=this.cellProperties.source;"function"==typeof n?n.call(this.cellProperties,e,function(e){t.rawChoices=e,t.updateChoicesList(t.stripValuesIfNeeded(e))}):Array.isArray(n)?(this.rawChoices=n,this.updateChoicesList(this.stripValuesIfNeeded(n))):this.updateChoicesList([])},c.prototype.updateChoicesList=function(e){var t=(0,l.getCaretPosition)(this.TEXTAREA),n=(0,l.getSelectionEndPosition)(this.TEXTAREA),i=this.cellProperties.sortByRelevance,o=this.cellProperties.filter,r=null,a=null;i&&(r=c.sortByRelevance(this.stripValueIfNeeded(this.getValue()),e,this.cellProperties.filteringCaseSensitive));var d=Array.isArray(r)?r.length:0;if(!1===o)d&&(a=r[0]);else{for(var u=[],h=0,f=e.length;h<f&&!(i&&d<=h);h++)d?u.push(e[r[h]]):u.push(e[h]);a=0,e=u}this.strippedChoices=e,this.htEditor.loadData((0,s.pivot)([e])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(a),this.instance.listen(),this.TEXTAREA.focus(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===n?void 0:n)},c.prototype.flipDropdownIfNeeded=function(){var e=(0,l.offset)(this.TEXTAREA),t=(0,l.outerHeight)(this.TEXTAREA),n=this.getDropdownHeight(),i=(0,l.getTrimmingContainer)(this.instance.view.wt.wtTable.TABLE),o=i.scrollTop,r=(0,l.outerHeight)(this.instance.view.wt.wtTable.THEAD),a={row:0,col:0};i!==window&&(a=(0,l.offset)(i));var s=e.top-a.top-r+o,d=i.scrollHeight-s-r-t,c=n>d&&s>d;return c?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(c?s:d,n),c},c.prototype.limitDropdownIfNeeded=function(e,t){if(t>e){var n,i=0,o=0,r=0;do{i+=r=this.htEditor.getRowHeight(o)||this.htEditor.view.wt.wtSettings.settings.defaultRowHeight,o++}while(i<e);n=i-r,this.htEditor.flipped&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-n+"px"),this.setDropdownHeight(i-r)}},c.prototype.flipDropdown=function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top=-e+"px",this.htEditor.flipped=!0},c.prototype.unflipDropdown=function(){var e=this.htEditor.rootElement.style;"absolute"===e.position&&(e.position="",e.top=""),this.htEditor.flipped=void 0},c.prototype.updateDropdownHeight=function(){var e=this.htEditor.getColWidth(0)+(0,l.getScrollbarWidth)()+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer()},c.prototype.setDropdownHeight=function(e){this.htEditor.updateSettings({height:e})},c.prototype.finishEditing=function(e){e||this.instance.removeHook("beforeKeyDown",h),d.default.prototype.finishEditing.apply(this,arguments)},c.prototype.highlightBestMatchingChoice=function(e){"number"==typeof e?this.htEditor.selectCell(e,0):this.htEditor.deselectCell()},c.sortByRelevance=function(e,t,n){var i=[],o=void 0,s=e.length,l=void 0,d=void 0,c=[],u=void 0,h=t.length;if(0===s){for(u=0;u<h;u++)c.push(u);return c}for(u=0;u<h;u++)o=(0,a.stripTags)((0,r.stringify)(t[u])),-1!==(l=n?o.indexOf(e):o.toLowerCase().indexOf(e.toLowerCase()))&&(d=o.length-l-s,i.push({baseIndex:u,index:l,charsLeft:d,value:o}));for(i.sort(function(e,t){if(-1===t.index)return-1;if(-1===e.index)return 1;if(e.index<t.index)return-1;if(t.index<e.index)return 1;if(e.index===t.index){if(e.charsLeft<t.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0}),u=0,h=i.length;u<h;u++)c.push(i[u].baseIndex);return c},c.prototype.getDropdownHeight=function(){var e=this.htEditor.getInstance().getRowHeight(0)||23,t=this.cellProperties.visibleRows;return this.strippedChoices.length>=t?t*e:this.strippedChoices.length*e+8},c.prototype.stripValueIfNeeded=function(e){return this.stripValuesIfNeeded([e])[0]},c.prototype.stripValuesIfNeeded=function(e){var t=this.cellProperties.allowHtml,n=(0,s.arrayMap)(e,function(e){return(0,r.stringify)(e)});return(0,s.arrayMap)(n,function(e){return t?e:(0,a.stripTags)(e)})},c.prototype.allowKeyEventPropagation=function(e){var t=this.htEditor.getSelectedRange()?this.htEditor.getSelectedRange().from.row:-1,n=!1;return e===o.KEY_CODES.ARROW_DOWN&&t>0&&t<this.htEditor.countRows()-1&&(n=!0),e===o.KEY_CODES.ARROW_UP&&t>-1&&(n=!0),n},c.prototype.discardEditor=function(e){d.default.prototype.discardEditor.apply(this,arguments),this.instance.view.render()},t.default=c},function(e,t,n){"use strict";t.__esModule=!0;var i,o=n(16),r=n(2),a=n(0),s=n(7),l=(i=n(43))&&i.__esModule?i:{default:i},d=l.default.prototype.extend();d.prototype.createElements=function(){l.default.prototype.createElements.apply(this,arguments);var e=document.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()},d.prototype.prepare=function(e,t,n,i,o,a){l.default.prototype.prepare.apply(this,arguments);var s=this,d={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,afterOnCellMouseDown:function(e,t){var n=this.getSourceData(t.row,t.col);void 0!==n&&s.setValue(n),s.instance.destroyEditor()}};this.cellProperties.handsontable&&(0,r.extend)(d,a.handsontable),this.htOptions=d};var c=function(e){if(!(0,s.isImmediatePropagationStopped)(e)){var t,n,i=this.getActiveEditor(),r=i.htEditor.getInstance();if(e.keyCode==o.KEY_CODES.ARROW_DOWN)if(r.getSelected()||r.flipped){if(r.getSelected())if(r.flipped)t=r.getSelected()[0]+1;else if(!r.flipped){n=r.getSelected()[0];var a=r.countRows()-1;t=Math.min(a,n+1)}}else t=0;else e.keyCode==o.KEY_CODES.ARROW_UP&&(!r.getSelected()&&r.flipped?t=r.countRows()-1:r.getSelected()&&(r.flipped?(n=r.getSelected()[0],t=Math.max(0,n-1)):t=(n=r.getSelected()[0])-1));void 0!==t&&(t<0||r.flipped&&t>r.countRows()-1?r.deselectCell():r.selectCell(t,0),r.getData().length&&(e.preventDefault(),(0,s.stopImmediatePropagation)(e),i.instance.listen(),i.TEXTAREA.focus()))}};d.prototype.open=function(){this.instance.addHook("beforeKeyDown",c),l.default.prototype.open.apply(this,arguments),this.htEditor&&this.htEditor.destroy(),this.htEditor=new Handsontable(this.htContainer,this.htOptions),this.cellProperties.strict?(this.htEditor.selectCell(0,0),this.TEXTAREA.style.visibility="hidden"):(this.htEditor.deselectCell(),this.TEXTAREA.style.visibility="visible"),(0,a.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length)},d.prototype.close=function(){this.instance.removeHook("beforeKeyDown",c),this.instance.listen(),l.default.prototype.close.apply(this,arguments)},d.prototype.focus=function(){this.instance.listen(),l.default.prototype.focus.apply(this,arguments)},d.prototype.beginEditing=function(e){var t=this.instance.getSettings().onBeginEditing;t&&!1===t()||l.default.prototype.beginEditing.apply(this,arguments)},d.prototype.finishEditing=function(e,t){if(this.htEditor&&this.htEditor.isListening()&&this.instance.listen(),this.htEditor&&this.htEditor.getSelected()){var n=this.htEditor.getInstance().getValue();void 0!==n&&this.setValue(n)}return l.default.prototype.finishEditing.apply(this,arguments)},d.prototype.assignHooks=function(){var e=this;this.instance.addHook("afterDestroy",function(){e.htEditor&&e.htEditor.destroy()})},t.default=d},function(e,t,n){"use strict";t.__esModule=!0;var i=n(1),o=n(2),r=n(6),a={_arrayMap:[],getValueByIndex:function(e){var t;return void 0===(t=this._arrayMap[e])?null:t},getIndexByValue:function(e){var t;return-1===(t=this._arrayMap.indexOf(e))?null:t},insertItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=(0,i.arrayMax)(this._arrayMap)+1,a=[];return(0,r.rangeEach)(n-1,function(n){a.push(t._arrayMap.splice(e+n,0,o+n))}),a},removeItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=[];if(Array.isArray(e)){var r=[].concat(this._arrayMap);e.sort(function(e,t){return t-e}),o=(0,i.arrayReduce)(e,function(e,n){return t._arrayMap.splice(n,1),e.concat(r.slice(n,n+1))},[])}else o=this._arrayMap.splice(e,n);return o},unshiftItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.removeItems(e,t);this._arrayMap=(0,i.arrayMap)(this._arrayMap,function(e,t){var o=function(e){return(0,i.arrayReduce)(n,function(t,n){return e>n&&t++,t},0)}(e);return o&&(e-=o),e})},shiftItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._arrayMap=(0,i.arrayMap)(this._arrayMap,function(t){return t>=e&&(t+=n),t}),(0,r.rangeEach)(n-1,function(n){t._arrayMap.splice(e+n,0,e+n)})},clearMap:function(){this._arrayMap.length=0}};(0,o.defineGetter)(a,"MIXIN_NAME","arrayMapper",{writable:!1,enumerable:!1}),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var i=n(1),o=n(2),r={_localHooks:Object.create(null),addLocalHook:function(e,t){this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t)},runLocalHooks:function(e){for(var t=this,n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this._localHooks[e]&&(0,i.arrayEach)(this._localHooks[e],function(e){return e.apply(t,o)})},clearLocalHooks:function(){this._localHooks={}}};(0,o.defineGetter)(r,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1}),t.default=r},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(6),r=0,a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this._element=null,this.state=r}return i(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=document.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=r}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){(0,o.isNumeric)(e)&&(this._element.style.top=e+"px"),(0,o.isNumeric)(t)&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){(0,o.isNumeric)(e)&&(this._element.style.width=e+"px"),(0,o.isNumeric)(t)&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){(0,o.isNumeric)(e)&&(this._element.style.marginTop=e+"px"),(0,o.isNumeric)(t)&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=0,r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this._element=null,this.state=o}return i(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){this._element=document.createElement("div"),this.state=1}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=o}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){e&&(this._element.style.top=e+"px"),t&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){e&&(this._element.style.width=e+"px"),t&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){e&&(this._element.style.marginTop=e+"px"),t&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.RecordTranslator=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t.registerIdentity=function(e,t){l.set(e,t)},t.getTranslator=function(e){var t=void 0;if(!(e instanceof r.default)){if(!l.has(e))throw Error("Record translator was not registered for this object identity");e=l.get(e)}return d.has(e)?t=d.get(e):(t=new s(e),d.set(e,t)),t};var o,r=(o=n(64))&&o.__esModule?o:{default:o},a=n(2),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t}return i(e,[{key:"toVisualRow",value:function(e){return this.hot.runHooks("unmodifyRow",e)}},{key:"toVisualColumn",value:function(e){return this.hot.runHooks("unmodifyCol",e)}},{key:"toVisual",value:function(e,t){return(0,a.isObject)(e)?{row:this.toVisualRow(e.row),column:this.toVisualColumn(e.column)}:[this.toVisualRow(e),this.toVisualColumn(t)]}},{key:"toPhysicalRow",value:function(e){return this.hot.runHooks("modifyRow",e)}},{key:"toPhysicalColumn",value:function(e){return this.hot.runHooks("modifyCol",e)}},{key:"toPhysical",value:function(e,t){return(0,a.isObject)(e)?{row:this.toPhysicalRow(e.row),column:this.toPhysicalColumn(e.column)}:[this.toPhysicalRow(e),this.toPhysicalColumn(t)]}}]),e}();t.RecordTranslator=s;var l=new WeakMap,d=new WeakMap},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(2),r=n(6),a=n(20),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.samples=null,this.dataFactory=t,this.customSampleCount=null,this.allowDuplicates=!1}return i(e,null,[{key:"SAMPLE_COUNT",get:function(){return 3}}]),i(e,[{key:"getSampleCount",value:function(){return this.customSampleCount?this.customSampleCount:e.SAMPLE_COUNT}},{key:"setSampleCount",value:function(e){this.customSampleCount=e}},{key:"setAllowDuplicates",value:function(e){this.allowDuplicates=e}},{key:"generateRowSamples",value:function(e,t){return this.generateSamples("row",t,e)}},{key:"generateColumnSamples",value:function(e,t){return this.generateSamples("col",t,e)}},{key:"generateSamples",value:function(e,t,n){var i=this,o=new Map;return"number"==typeof n&&(n={from:n,to:n}),(0,r.rangeEach)(n.from,n.to,function(n){var r=i.generateSample(e,t,n);o.set(n,r)}),o}},{key:"generateSample",value:function(e,t,n){var i=this,s=new Map,l=[],d=void 0;return(0,r.rangeEach)(t.from,t.to,function(t){var r=void 0;if("row"===e)r=i.dataFactory(n,t);else{if("col"!==e)throw new Error("Unsupported sample type");r=i.dataFactory(t,n)}d=(0,o.isObject)(r)?Object.keys(r).length:Array.isArray(r)?r.length:(0,a.stringify)(r).length,s.has(d)||s.set(d,{needed:i.getSampleCount(),strings:[]});var c=s.get(d);if(c.needed&&(!(l.indexOf(r)>-1)||i.allowDuplicates)){var u="row"===e?"col":"row";c.strings.push(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({value:r},u,t)),l.push(r),c.needed--}}),s}}]),e}();t.default=s},function(e,t,n){var i=n(23),o=n(24),r=n(60);e.exports=function(e){return function(t,n,a){var s,l=i(t),d=o(l.length),c=r(a,d);if(e&&n!=n){for(;d>c;)if((s=l[c++])!=s)return!0}else for(;d>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var i=n(38),o=n(10)("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){"use strict";var i=n(19).f,o=n(78),r=n(59),a=n(29),s=n(52),l=n(30),d=n(56),c=n(166),u=n(167),h=n(172),f=n(21),p=n(46).fastKey,m=f?"_s":"size",g=function(e,t){var n,i=p(t);if("F"!==i)return e._i[i];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var u=e(function(e,i){s(e,u,t,"_i"),e._i=o(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=i&&d(i,n,e[c],e)});return r(u.prototype,{clear:function(){for(var e=this._i,t=this._f;t;t=t.n)t.r=!0,t.p&&(t.p=t.p.n=void 0),delete e[t.i];this._f=this._l=void 0,this[m]=0},delete:function(e){var t=g(this,e);if(t){var n=t.n,i=t.p;delete this._i[t.i],t.r=!0,i&&(i.n=n),n&&(n.p=i),this._f==t&&(this._f=n),this._l==t&&(this._l=i),this[m]--}return!!t},forEach:function(e){s(this,u,"forEach");for(var t,n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!g(this,e)}}),f&&i(u.prototype,"size",{get:function(){return l(this[m])}}),u},def:function(e,t,n){var i,o,r=g(e,t);return r?r.v=n:(e._l=r={i:o=p(t,!0),k:t,v:n,p:i=e._l,n:void 0,r:!1},e._f||(e._f=r),i&&(i.n=r),e[m]++,"F"!==o&&(e._i[o]=r)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?u(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,u(1))},n?"entries":"values",!n,!0),h(t)}}},function(e,t,n){"use strict";var i=n(59),o=n(46).getWeak,r=n(18),a=n(15),s=n(52),l=n(56),d=n(53),c=n(22),u=d(5),h=d(6),f=0,p=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},g=function(e,t){return u(e.a,function(e){return e[0]===t})};m.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var n=g(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=h(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e(function(e,i){s(e,d,t,"_i"),e._i=f++,e._l=void 0,void 0!=i&&l(i,n,e[r],e)});return i(d.prototype,{delete:function(e){if(!a(e))return!1;var t=o(e);return!0===t?p(this).delete(e):t&&c(t,this._i)&&delete t[this._i]},has:function(e){if(!a(e))return!1;var t=o(e);return!0===t?p(this).has(e):t&&c(t,this._i)}}),d},def:function(e,t,n){var i=o(r(t),!0);return!0===i?p(e).set(t,n):i[e._i]=n,e},ufstore:p}},function(e,t,n){e.exports=n(13).document&&document.documentElement},function(e,t,n){e.exports=!n(21)&&!n(31)(function(){return 7!=Object.defineProperty(n(73)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(45),o=n(10)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[o]===e)}},function(e,t,n){var i=n(38);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(15),o=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var i=n(15),o=n(38),r=n(10)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},function(e,t,n){var i=n(18);e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&i(r.call(e)),t}}},function(e,t,n){"use strict";var i=n(57),o=n(3),r=n(33),a=n(32),s=n(22),l=n(45),d=n(283),c=n(48),u=n(288),h=n(10)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,m,g,y,v){d(n,t,m);var A,b,w,_=function(e){if(!f&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},M=t+" Iterator",x="values"==g,k=!1,S=e.prototype,C=S[h]||S["@@iterator"]||g&&S[g],E=C||_(g),L=g?x?_("entries"):E:void 0,T="Array"==t&&S.entries||C;if(T&&(w=u(T.call(new e)))!==Object.prototype&&(c(w,M,!0),i||s(w,h)||a(w,h,p)),x&&C&&"values"!==C.name&&(k=!0,E=function(){return C.call(this)}),i&&!v||!f&&!k&&S[h]||a(S,h,E),l[t]=E,l[M]=p,g)if(A={values:x?E:_("values"),keys:y?E:_("keys"),entries:L},v)for(b in A)b in S||r(S,b,A[b]);else o(o.P+o.F*(f||k),t,A);return A}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var i=n(39),o=n(58),r=n(47),a=n(41),s=n(76),l=Object.assign;e.exports=!l||n(31)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){for(var n=a(e),l=arguments.length,d=1,c=o.f,u=r.f;l>d;)for(var h,f=s(arguments[d++]),p=c?i(f).concat(c(f)):i(f),m=p.length,g=0;m>g;)u.call(f,h=p[g++])&&(n[h]=f[h]);return n}:l},function(e,t,n){var i=n(22),o=n(23),r=n(155)(!1),a=n(81)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,d=[];for(n in s)n!=a&&i(s,n)&&d.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~r(d,n)||d.push(n));return d}},function(e,t,n){var i=n(39),o=n(23),r=n(47).f;e.exports=function(e){return function(t){for(var n,a=o(t),s=i(a),l=s.length,d=0,c=[];l>d;)r.call(a,n=s[d++])&&c.push(e?[n,a[n]]:a[n]);return c}}},function(e,t,n){var i=n(15),o=n(18),r=function(e,t){if(o(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=n(29)(Function.call,n(79).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return r(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:r}},function(e,t,n){"use strict";var i=n(13),o=n(19),r=n(21),a=n(10)("species");e.exports=function(e){var t=i[e];r&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(24),o=n(174),r=n(30);e.exports=function(e,t,n,a){var s=String(r(e)),l=s.length,d=void 0===n?" ":String(n),c=i(t);if(c<=l||""==d)return s;var u=c-l,h=o.call(d,Math.ceil(u/d.length));return h.length>u&&(h=h.slice(0,u)),a?h+s:s+h}},function(e,t,n){"use strict";var i=n(61),o=n(30);e.exports=function(e){var t=String(o(this)),n="",r=i(e);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},function(e,t,n){t.f=n(10)},function(e,t,n){var i=n(156),o=n(10)("iterator"),r=n(45);e.exports=n(44).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||r[i(e)]}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t="undefined"!=typeof window&&window.jQuery;t&&(t.fn.handsontable=function(t){var n=this.first(),i=n.data("handsontable");if("string"!=typeof t){var o=t||{};return i?i.updateSettings(o):(i=new e.Core(n[0],o),n.data("handsontable",i),i.init()),n}var r=[],a=void 0;if(arguments.length>1)for(var s=1,l=arguments.length;s<l;s++)r.push(arguments[s]);if(i){if(void 0===i[t])throw new Error("Handsontable do not provide action: "+t);a=i[t].apply(i,r),"destroy"===t&&n.removeData()}return a})}},function(e,t,n){"use strict";t.__esModule=!0,t.Base=t.UndoRedo=t.TouchScroll=t.Search=t.PersistentState=t.ObserveChanges=t.MultipleSelectionHandles=t.MergeCells=t.ManualRowResize=t.ManualRowMove=t.ManualColumnResize=t.ManualColumnMove=t.ManualColumnFreeze=t.DragToScroll=t.CustomBorders=t.CopyPaste=t.ContextMenuCopyPaste=t.ContextMenu=t.Comments=t.ColumnSorting=t.AutoRowSize=t.AutoFill=t.AutoColumnSize=void 0;var i=S(n(211)),o=S(n(213)),r=S(n(212)),a=S(n(215)),s=S(n(217)),l=S(n(219)),d=S(n(234)),c=S(n(235)),u=S(n(236)),h=S(n(237)),f=S(n(240)),p=S(n(242)),m=S(n(245)),g=S(n(246)),y=S(n(250)),v=S(n(251)),A=S(n(252)),b=S(n(254)),w=S(n(256)),_=S(n(257)),M=S(n(258)),x=S(n(259)),k=S(n(12));function S(e){return e&&e.__esModule?e:{default:e}}t.AutoColumnSize=i.default,t.AutoFill=o.default,t.AutoRowSize=r.default,t.ColumnSorting=a.default,t.Comments=s.default,t.ContextMenu=l.default,t.ContextMenuCopyPaste=d.default,t.CopyPaste=c.default,t.CustomBorders=u.default,t.DragToScroll=h.default,t.ManualColumnFreeze=f.default,t.ManualColumnMove=p.default,t.ManualColumnResize=m.default,t.ManualRowMove=g.default,t.ManualRowResize=y.default,t.MergeCells=v.default,t.MultipleSelectionHandles=A.default,t.ObserveChanges=b.default,t.PersistentState=w.default,t.Search=_.default,t.TouchScroll=M.default,t.UndoRedo=x.default,t.Base=k.default},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";e.exports=function(){var e,t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},n=document.body,i=document.createTextNode(""),o=document.createElement("SPAN"),r=function(e,t,n){window.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n,!1)},a=function(e,t,n){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},s=function(r){var a,s;r?/^[a-zA-Z \.,\\\/\|0-9]$/.test(r)||(r="."):r="",void 0!==i.textContent?i.textContent=e.value+r:i.data=e.value+r,o.style.fontSize=c(e).fontSize,o.style.fontFamily=c(e).fontFamily,o.style.whiteSpace="pre",n.appendChild(o),a=o.clientWidth+2,n.removeChild(o),e.style.height=t.minHeight+"px",t.minWidth>a?e.style.width=t.minWidth+"px":a>t.maxWidth?e.style.width=t.maxWidth+"px":e.style.width=a+"px",s=e.scrollHeight?e.scrollHeight-1:0,t.minHeight>s?e.style.height=t.minHeight+"px":t.maxHeight<s?(e.style.height=t.maxHeight+"px",e.style.overflowY="visible"):e.style.height=s+"px"},l=function(){window.setTimeout(s,0)},d=function(n,a,d){e=n,function(n){if(n&&n.minHeight)if("inherit"==n.minHeight)t.minHeight=e.clientHeight;else{var r=parseInt(n.minHeight);isNaN(r)||(t.minHeight=r)}if(n&&n.maxHeight)if("inherit"==n.maxHeight)t.maxHeight=e.clientHeight;else{var a=parseInt(n.maxHeight);isNaN(a)||(t.maxHeight=a)}if(n&&n.minWidth)if("inherit"==n.minWidth)t.minWidth=e.clientWidth;else{var s=parseInt(n.minWidth);isNaN(s)||(t.minWidth=s)}if(n&&n.maxWidth)if("inherit"==n.maxWidth)t.maxWidth=e.clientWidth;else{var l=parseInt(n.maxWidth);isNaN(l)||(t.maxWidth=l)}o.firstChild||(o.className="autoResize",o.style.display="inline-block",o.appendChild(i))}(a),"TEXTAREA"==e.nodeName&&(e.style.resize="none",e.style.overflowY="",e.style.height=t.minHeight+"px",e.style.minWidth=t.minWidth+"px",e.style.maxWidth=t.maxWidth+"px",e.style.overflowY="hidden"),d&&(r(e,"change",s),r(e,"cut",l),r(e,"paste",l),r(e,"drop",l),r(e,"keydown",l),r(e,"focus",s)),s()};function c(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(e,t,n){d(e,t,n)},unObserve:function(){a(e,"change",s),a(e,"cut",l),a(e,"paste",l),a(e,"drop",l),a(e,"keydown",l),a(e,"focus",s)},resize:s}}},function(e,t,n){"use strict";var i;function o(){this.refCounter=0,this.init()}e.exports=function(){return i?i.hasBeenDestroyed()&&i.init():i=new o,i.refCounter++,i},o.prototype.init=function(){var e,t;this.copyCallbacks=[],this.cutCallbacks=[],this.pasteCallbacks=[],t=document.body,document.getElementById("CopyPasteDiv")?(this.elDiv=document.getElementById("CopyPasteDiv"),this.elTextarea=this.elDiv.firstChild):(this.elDiv=document.createElement("div"),this.elDiv.id="CopyPasteDiv",(e=this.elDiv.style).position="fixed",e.top="-10000px",e.left="-10000px",t.appendChild(this.elDiv),this.elTextarea=document.createElement("textarea"),this.elTextarea.className="copyPaste",this.elTextarea.onpaste=function(e){var t,n;"WebkitAppearance"in document.documentElement.style&&(t=e.clipboardData.getData("Text"),-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&(""===(n=t.split("\n"))[n.length-1]&&n.pop(),t=n.join("\n")),this.value=t,e.preventDefault())},(e=this.elTextarea.style).width="10000px",e.height="10000px",e.overflow="hidden",this.elDiv.appendChild(this.elTextarea),void 0!==e.opacity&&(e.opacity=0)),this.onKeyDownRef=this.onKeyDown.bind(this),document.documentElement.addEventListener("keydown",this.onKeyDownRef,!1)},o.prototype.onKeyDown=function(e){var t,n=this,i=!1;if(e.metaKey?i=!0:e.ctrlKey&&-1===navigator.userAgent.indexOf("Mac")&&(i=!0),i){if(document.activeElement!==this.elTextarea&&(""!==this.getSelectionText()||((t=document.activeElement).shadowRoot&&t.shadowRoot.activeElement&&(t=t.shadowRoot.activeElement),["INPUT","SELECT","TEXTAREA"].indexOf(t.nodeName)>-1||"true"===t.contentEditable)))return;this.selectNodeText(this.elTextarea),setTimeout(function(){document.activeElement!==n.elTextarea&&n.selectNodeText(n.elTextarea)},0)}!1===e.isImmediatePropagationEnabled||!i||67!==e.keyCode&&86!==e.keyCode&&88!==e.keyCode||(88===e.keyCode?setTimeout(function(){n.triggerCut(e)},0):86===e.keyCode&&setTimeout(function(){n.triggerPaste(e)},0))},o.prototype.selectNodeText=function(e){e&&e.select()},o.prototype.getSelectionText=function(){var e="";return window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e},o.prototype.copyable=function(e){if("string"!=typeof e&&void 0===e.toString)throw new Error("copyable requires string parameter");this.elTextarea.value=e,this.selectNodeText(this.elTextarea)},o.prototype.onCut=function(e){this.cutCallbacks.push(e)},o.prototype.onPaste=function(e){this.pasteCallbacks.push(e)},o.prototype.removeCallback=function(e){var t,n;for(t=0,n=this.copyCallbacks.length;t<n;t++)if(this.copyCallbacks[t]===e)return this.copyCallbacks.splice(t,1),!0;for(t=0,n=this.cutCallbacks.length;t<n;t++)if(this.cutCallbacks[t]===e)return this.cutCallbacks.splice(t,1),!0;for(t=0,n=this.pasteCallbacks.length;t<n;t++)if(this.pasteCallbacks[t]===e)return this.pasteCallbacks.splice(t,1),!0;return!1},o.prototype.triggerCut=function(e){var t=this;t.cutCallbacks&&setTimeout(function(){for(var n=0,i=t.cutCallbacks.length;n<i;n++)t.cutCallbacks[n](e)},50)},o.prototype.triggerPaste=function(e,t){var n=this;n.pasteCallbacks&&setTimeout(function(){for(var i=t||n.elTextarea.value,o=0,r=n.pasteCallbacks.length;o<r;o++)n.pasteCallbacks[o](i,e)},50)},o.prototype.destroy=function(){this.hasBeenDestroyed()||0!=--this.refCounter||(this.elDiv&&this.elDiv.parentNode&&(this.elDiv.parentNode.removeChild(this.elDiv),this.elDiv=null,this.elTextarea=null),document.documentElement.removeEventListener("keydown",this.onKeyDownRef),this.onKeyDownRef=null)},o.prototype.hasBeenDestroyed=function(){return!this.refCounter}},function(e,t,n){"use strict";t.__esModule=!0;var i,o=n(0),r=(i=n(28))&&i.__esModule?i:{default:i},a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(r.default.CLONE_DEBUG),n.clone.wtTable.holder.style.opacity=.4,n.clone.wtTable.holder.style.textShadow="0 0 2px #ff0000",(0,o.addClass)(n.clone.wtTable.holder.parentNode,"wtDebugVisible"),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),t}();r.default.registerOverlay(r.default.CLONE_DEBUG,a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),a=(i=n(28))&&i.__esModule?i:{default:i},s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(a.default.CLONE_LEFT),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),o(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"horizontal"===n)t=this.getScrollPosition(),(0,r.resetCssTransform)(e);else{var i=this.wot.wtTable.hider.getBoundingClientRect(),o=Math.ceil(i.left),a=Math.ceil(i.right),s=void 0,l=void 0;l=""===(l=this.wot.wtTable.hider.style.top)?0:l,t=s=o<0&&a-e.offsetWidth>0?-o:0,s+="px",(0,r.setOverlayPosition)(e,s,l)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){this.mainTableScrollableElement===window?window.scrollTo(e,(0,r.getWindowScrollTop)()):this.mainTableScrollableElement.scrollLeft=e}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=0,i=this.wot.wtSettings.defaultColumnWidth;e<t;)n+=this.wot.wtTable.getStretchedColumnWidth(e)||i,e++;return n}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e,t=this.wot.wtTable.holder,n=t.clientHeight===t.offsetHeight?0:(0,r.getScrollbarWidth)(),i=this.clone.wtTable.holder.parentNode.style,o=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"vertical"===o){var a=this.wot.wtViewport.getWorkspaceHeight()-n;a=Math.min(a,(0,r.innerHeight)(this.wot.wtTable.wtRootElement)),i.height=a+"px"}else i.height="";this.clone.wtTable.holder.style.height=i.height,e=(0,r.outerWidth)(this.clone.wtTable.TABLE),i.width=(0===e?e:e+4)+"px"}},{key:"adjustRootChildrenSize",value:function(){var e=(0,r.getScrollbarWidth)();this.clone.wtTable.hider.style.height=this.hider.style.height,this.clone.wtTable.holder.style.height=this.clone.wtTable.holder.parentNode.style.height,0===e&&(e=30),this.clone.wtTable.holder.style.width=parseInt(this.clone.wtTable.holder.parentNode.style.width,10)+e+"px"}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalColumns");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style.left=this.wot.wtViewport.columnsRenderCalculator.startPosition+"px";else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style.left="0"}this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=this.wot.wtViewport.rowsRenderCalculator.startPosition+"px":this.clone.wtTable.spreader.style.top=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),i=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&i.offsetWidth!==i.clientWidth&&(o=(0,r.getScrollbarWidth)()),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=0;return this.wot.getSetting("preventOverflow")||this.trimmingContainer!==window||(e=this.wot.wtTable.holderOffset.left),e}},{key:"getScrollPosition",value:function(){return(0,r.getScrollLeft)(this.mainTableScrollableElement)}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("rowHeaders"),i=this.wot.getSetting("fixedColumnsLeft");if(this.wot.getSetting("totalRows")?(0,r.removeClass)(t,"emptyRows"):(0,r.addClass)(t,"emptyRows"),i&&!n.length)(0,r.addClass)(t,"innerBorderLeft");else if(!i&&n.length){var o=(0,r.hasClass)(t,"innerBorderLeft");e?(0,r.addClass)(t,"innerBorderLeft"):(0,r.removeClass)(t,"innerBorderLeft"),(!o&&e||o&&!e)&&this.wot.wtOverlays.adjustElementsSize()}}}]),t}();a.default.registerOverlay(a.default.CLONE_LEFT,s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),a=(i=n(28))&&i.__esModule?i:{default:i},s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(a.default.CLONE_TOP),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),o(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"vertical"===n)t=this.getScrollPosition(),(0,r.resetCssTransform)(e);else{var i=this.wot.wtTable.hider.getBoundingClientRect(),o=Math.ceil(i.top),a=Math.ceil(i.bottom),s=void 0,l=void 0;s=""===(s=this.wot.wtTable.hider.style.left)?0:s,t=l=o<0&&a-e.offsetHeight>0?-o:0,l+="px",(0,r.setOverlayPosition)(e,s,l)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}}},{key:"setScrollPosition",value:function(e){this.mainTableScrollableElement===window?window.scrollTo((0,r.getWindowScrollLeft)(),e):this.mainTableScrollableElement.scrollTop=e}},{key:"onScroll",value:function(){this.wot.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=0,i=this.wot.wtSettings.settings.defaultRowHeight;e<t;){var o=this.wot.wtTable.getRowHeight(e);n+=void 0===o?i:o,e++}return n}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))}},{key:"adjustRootElementSize",value:function(){var e,t=this.wot.wtTable.holder,n=t.clientWidth===t.offsetWidth?0:(0,r.getScrollbarWidth)(),i=this.clone.wtTable.holder.parentNode.style,o=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"horizontal"===o){var a=this.wot.wtViewport.getWorkspaceWidth()-n;a=Math.min(a,(0,r.innerWidth)(this.wot.wtTable.wtRootElement)),i.width=a+"px"}else i.width="";this.clone.wtTable.holder.style.width=i.width,e=(0,r.outerHeight)(this.clone.wtTable.TABLE),i.height=(0===e?e:e+4)+"px"}},{key:"adjustRootChildrenSize",value:function(){var e=(0,r.getScrollbarWidth)();this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height=parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e+"px"}},{key:"applyToDOM",value:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=this.wot.wtViewport.rowsRenderCalculator.startPosition+"px";else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.left=this.wot.wtViewport.columnsRenderCalculator.startPosition+"px":this.clone.wtTable.spreader.style.left=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),i=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;if(t&&i.offsetHeight!==i.clientHeight&&(o=(0,r.getScrollbarWidth)()),t){var a=this.wot.getSetting("fixedRowsBottom"),s=(this.wot.getSetting("fixedRowsTop"),this.wot.getSetting("totalRows"));n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight()-this.sumCellSizes(s-a,s),n+=1}else n+=this.sumCellSizes(this.wot.getSetting("fixedRowsTop"),e);n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===window?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,r.getScrollTop)(this.mainTableScrollableElement)}},{key:"redrawSelectionBorders",value:function(e){if(e&&e.cellRange){var t=e.getBorder(this.wot);if(t){var n=e.getCorners();t.disappear(),t.appear(n)}}}},{key:"redrawAllSelectionsBorders",value:function(){var e=this.wot.selections;this.redrawSelectionBorders(e.current),this.redrawSelectionBorders(e.area),this.redrawSelectionBorders(e.fill),this.wot.wtTable.wot.wtOverlays.leftOverlay.refresh()}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode;if(this.wot.getSetting("totalColumns")?(0,r.removeClass)(t,"emptyColumns"):(0,r.addClass)(t,"emptyColumns"),0===this.wot.getSetting("fixedRowsTop")&&this.wot.getSetting("columnHeaders").length>0){var n=(0,r.hasClass)(t,"innerBorderTop");e||0===this.wot.getSetting("totalRows")?(0,r.addClass)(t,"innerBorderTop"):(0,r.removeClass)(t,"innerBorderTop"),(!n&&e||n&&!e)&&(this.wot.wtOverlays.adjustElementsSize(),this.redrawAllSelectionsBorders())}if(0===this.wot.getSetting("rowHeaders").length){var i=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(i)for(var o=0;o<i.length;o++)i[o].style["border-left-width"]=0}}}]),t}();a.default.registerOverlay(a.default.CLONE_TOP,s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),a=(i=n(28))&&i.__esModule?i:{default:i},s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clone=n.makeClone(a.default.CLONE_TOP_LEFT_CORNER),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),o(t,[{key:"shouldBeRendered",value:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length||!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=(0,r.outerHeight)(this.clone.wtTable.TABLE),n=(0,r.outerWidth)(this.clone.wtTable.TABLE),i=this.wot.getSetting("preventOverflow");if(this.trimmingContainer===window){var o=this.wot.wtTable.hider.getBoundingClientRect(),a=Math.ceil(o.top),s=Math.ceil(o.left),l=Math.ceil(o.bottom),d=Math.ceil(o.right),c="0",u="0";i&&"vertical"!==i||s<0&&d-e.offsetWidth>0&&(c=-s+"px"),i&&"horizontal"!==i||a<0&&l-e.offsetHeight>0&&(u=-a+"px"),(0,r.setOverlayPosition)(e,c,u)}else(0,r.resetCssTransform)(e);e.style.height=(0===t?t:t+4)+"px",e.style.width=(0===n?n:n+4)+"px"}}}]),t}();a.default.registerOverlay(a.default.CLONE_TOP_LEFT_CORNER,s),t.default=s},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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),a=d(n(134)),s=d(n(42)),l=d(n(69));function d(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.settings=t,this.cellRange=n||null,this.instanceBorders={}}return o(e,[{key:"getBorder",value:function(e){if(this.instanceBorders[e.guid])return this.instanceBorders[e.guid];this.instanceBorders[e.guid]=new a.default(e,this.settings)}},{key:"isEmpty",value:function(){return null===this.cellRange}},{key:"add",value:function(e){this.isEmpty()?this.cellRange=new l.default(e,e,e):this.cellRange.expand(e)}},{key:"replace",value:function(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}},{key:"clear",value:function(){this.cellRange=null}},{key:"getCorners",value:function(){var e=this.cellRange.getTopLeftCorner(),t=this.cellRange.getBottomRightCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,o){var a=e.wtTable.getCell(new s.default(t,n));"object"===(void 0===a?"undefined":i(a))&&(0,r.addClass)(a,o)}},{key:"draw",value:function(e){if(this.isEmpty()){if(this.settings.border){var t=this.getBorder(e);t&&t.disappear()}}else{for(var n=e.wtTable.getRenderedRowsCount(),i=e.wtTable.getRenderedColumnsCount(),o=this.getCorners(),a=void 0,s=void 0,l=void 0,d=0;d<i;d++)if((s=e.wtTable.columnFilter.renderedToSource(d))>=o[1]&&s<=o[3]&&(l=e.wtTable.getColumnHeader(s))){var c=[];this.settings.highlightHeaderClassName&&c.push(this.settings.highlightHeaderClassName),this.settings.highlightColumnClassName&&c.push(this.settings.highlightColumnClassName),(0,r.addClass)(l,c)}for(var u=0;u<n;u++){if((a=e.wtTable.rowFilter.renderedToSource(u))>=o[0]&&a<=o[2]&&(l=e.wtTable.getRowHeader(a))){var h=[];this.settings.highlightHeaderClassName&&h.push(this.settings.highlightHeaderClassName),this.settings.highlightRowClassName&&h.push(this.settings.highlightRowClassName),(0,r.addClass)(l,h)}for(var f=0;f<i;f++)s=e.wtTable.columnFilter.renderedToSource(f),a>=o[0]&&a<=o[2]&&s>=o[1]&&s<=o[3]?this.settings.className&&this.addClassAtCoords(e,a,s,this.settings.className):a>=o[0]&&a<=o[2]?this.settings.highlightRowClassName&&this.addClassAtCoords(e,a,s,this.settings.highlightRowClassName):s>=o[1]&&s<=o[3]&&this.settings.highlightColumnClassName&&this.addClassAtCoords(e,a,s,this.settings.highlightColumnClassName)}if(e.getSetting("onBeforeDrawBorders",o,this.settings.className),this.settings.border){var p=this.getBorder(e);p&&p.appear(o)}}}}]),e}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0;var i=n(14),o=n(9),r=n(26);t.default={editor:(0,i.getEditor)("autocomplete"),renderer:(0,o.getRenderer)("autocomplete"),validator:(0,r.getValidator)("autocomplete")}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(14),o=n(9);t.default={editor:(0,i.getEditor)("checkbox"),renderer:(0,o.getRenderer)("checkbox")}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(14),o=n(9),r=n(26);t.default={editor:(0,i.getEditor)("date"),renderer:(0,o.getRenderer)("autocomplete"),validator:(0,r.getValidator)("date")}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(14),o=n(9),r=n(26);t.default={editor:(0,i.getEditor)("dropdown"),renderer:(0,o.getRenderer)("autocomplete"),validator:(0,r.getValidator)("autocomplete")}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(14),o=n(9);t.default={editor:(0,i.getEditor)("handsontable"),renderer:(0,o.getRenderer)("autocomplete")}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(14),o=n(9),r=n(26);t.default={editor:(0,i.getEditor)("numeric"),renderer:(0,o.getRenderer)("numeric"),validator:(0,r.getValidator)("numeric"),dataType:"number"}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(14),o=n(9);n(26),t.default={editor:(0,i.getEditor)("password"),renderer:(0,o.getRenderer)("password"),copyable:!1}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(25),o=n(14),r=n(9);t.default={editor:(0,i.isMobileBrowser)()?(0,o.getEditor)("mobile"):(0,o.getEditor)("text"),renderer:(0,r.getRenderer)("text")}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(14),o=n(9),r=n(26);t.default={editor:(0,i.getEditor)("text"),renderer:(0,o.getRenderer)("text"),validator:(0,r.getValidator)("time")}},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},o=h(n(132)),r=n(65),a=n(66),s=n(2),l=n(1),d=h(n(269)),c=n(6),u=h(n(210));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){var i=this;this.instance=e,this.priv=t,this.GridSettings=n,this.dataSource=this.instance.getSettings().data,this.cachedLength=null,this.skipCache=!1,this.latestSourceRowsCount=0,this.dataSource&&this.dataSource[0]?this.duckSchema=this.recursiveDuckSchema(this.dataSource[0]):this.duckSchema={},this.createMap(),this.interval=d.default.create(function(){return i.clearLengthCache()},"15fps"),this.instance.addHook("skipLengthCache",function(e){return i.onSkipLengthCache(e)}),this.onSkipLengthCache(500)}h(n(8)),f.prototype.DESTINATION_RENDERER=1,f.prototype.DESTINATION_CLIPBOARD_GENERATOR=2,f.prototype.recursiveDuckSchema=function(e){return(0,s.duckSchema)(e)},f.prototype.recursiveDuckColumns=function(e,t,n){var o,r;if(void 0===t&&(t=0,n=""),"object"===(void 0===e?"undefined":i(e))&&!Array.isArray(e))for(r in e)(0,s.hasOwnProperty)(e,r)&&(null===e[r]?(o=n+r,this.colToPropCache.push(o),this.propToColCache.set(o,t),t++):t=this.recursiveDuckColumns(e[r],t,r+"."));return t},f.prototype.createMap=function(){var e=void 0,t=this.getSchema();if(void 0===t)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");this.colToPropCache=[],this.propToColCache=new u.default;var n=this.instance.getSettings().columns;if(n){var i=this.instance.getSettings().maxCols,o=Math.min(i,n.length),r=0,a=!1,l=(0,s.deepObjectSize)(t);for("function"==typeof n&&(o=l>0?l:this.instance.countSourceCols(),a=!0),e=0;e<o;e++){var d=a?n(e):n[e];if((0,s.isObject)(d)){if(void 0!==d.data){var c=a?r:e;this.colToPropCache[c]=d.data,this.propToColCache.set(d.data,c)}r++}}}else this.recursiveDuckColumns(t)},f.prototype.colToProp=function(e){return e=this.instance.runHooks("modifyCol",e),!isNaN(e)&&this.colToPropCache&&void 0!==this.colToPropCache[e]?this.colToPropCache[e]:e},f.prototype.propToCol=function(e){var t;return t=void 0===this.propToColCache.get(e)?e:this.propToColCache.get(e),this.instance.runHooks("unmodifyCol",t)},f.prototype.getSchema=function(){var e=this.instance.getSettings().dataSchema;return e?"function"==typeof e?e():e:this.duckSchema},f.prototype.createRow=function(e,t,n){var i,o=this.instance.countCols(),r=0;t||(t=1),("number"!=typeof e||e>=this.instance.countSourceRows())&&(e=this.instance.countSourceRows()),this.instance.runHooks("beforeCreateRow",e,t,n);for(var a=this.instance.getSettings().maxRows;r<t&&this.instance.countSourceRows()<a;)"array"===this.instance.dataType?this.instance.getSettings().dataSchema?i=(0,s.deepClone)(this.getSchema()):(i=[],(0,c.rangeEach)(o-1,function(){return i.push(null)})):"function"===this.instance.dataType?i=this.instance.getSettings().dataSchema(e):(i={},(0,s.deepExtend)(i,this.getSchema())),e===this.instance.countSourceRows()?this.dataSource.push(i):this.spliceData(e,0,i),r++;return this.instance.runHooks("afterCreateRow",e,r,n),this.instance.forceFullRender=!0,r},f.prototype.createCol=function(e,t,n){if(!this.instance.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");var i,o,r=this.instance.countSourceRows(),s=this.dataSource,l=0;t||(t=1),("number"!=typeof e||e>=this.instance.countCols())&&(e=this.instance.countCols()),this.instance.runHooks("beforeCreateCol",e,t,n),o=e;for(var d=this.instance.getSettings().maxCols;l<t&&this.instance.countCols()<d;){if(i=(0,a.columnFactory)(this.GridSettings,this.priv.columnsSettingConflicts),"number"!=typeof e||e>=this.instance.countCols()){if(r>0)for(var c=0;c<r;c++)void 0===s[c]&&(s[c]=[]),s[c].push(null);else s.push([null]);this.priv.columnSettings.push(i)}else{for(var u=0;u<r;u++)s[u].splice(o,0,null);this.priv.columnSettings.splice(o,0,i)}l++,o++}return this.instance.runHooks("afterCreateCol",e,l,n),this.instance.forceFullRender=!0,l},f.prototype.removeRow=function(e,t,n){t||(t=1),"number"!=typeof e&&(e=-t),t=this.instance.runHooks("modifyRemovedAmount",t,e),e=(this.instance.countSourceRows()+e)%this.instance.countSourceRows();var i=this.physicalRowsToLogical(e,t);if(!1!==this.instance.runHooks("beforeRemoveRow",e,t,i,n)){var o,r=this.dataSource;(o=this.filterData(e,t))&&(r.length=0,Array.prototype.push.apply(r,o)),this.instance.runHooks("afterRemoveRow",e,t,i,n),this.instance.forceFullRender=!0}},f.prototype.removeCol=function(e,t,n){if("object"===this.instance.dataType||this.instance.getSettings().columns)throw new Error("cannot remove column with object data source or columns option specified");t||(t=1),"number"!=typeof e&&(e=-t),e=(this.instance.countCols()+e)%this.instance.countCols();var i=this.physicalColumnsToLogical(e,t),o=i.slice(0).sort(function(e,t){return t-e});if(!1!==this.instance.runHooks("beforeRemoveCol",e,t,i,n)){for(var r=!0,a=o.length,s=this.dataSource,l=0;l<a;l++)r&&i[0]!==i[l]-l&&(r=!1);if(r)for(var d=0,c=this.instance.countSourceRows();d<c;d++)s[d].splice(i[0],t);else{for(var u=0,h=this.instance.countSourceRows();u<h;u++)for(var f=0;f<a;f++)s[u].splice(o[f],1);for(var p=0;p<a;p++)this.priv.columnSettings.splice(i[p],1)}this.instance.runHooks("afterRemoveCol",e,t,i,n),this.instance.forceFullRender=!0}},f.prototype.spliceCol=function(e,t,n){var i=arguments.length>=4?[].slice.call(arguments,3):[],o=this.instance.getDataAtCol(e),r=o.slice(t,t+n),a=o.slice(t+n);(0,l.extendArray)(i,a);for(var s=0;s<n;)i.push(null),s++;return(0,l.to2dArray)(i),this.instance.populateFromArray(t,e,i,null,null,"spliceCol"),r},f.prototype.spliceRow=function(e,t,n){var i=arguments.length>=4?[].slice.call(arguments,3):[],o=this.instance.getSourceDataAtRow(e),r=o.slice(t,t+n),a=o.slice(t+n);(0,l.extendArray)(i,a);for(var s=0;s<n;)i.push(null),s++;return this.instance.populateFromArray(e,t,[i],null,null,"spliceRow"),r},f.prototype.spliceData=function(e,t,n){!1!==this.instance.runHooks("beforeDataSplice",e,t,n)&&this.dataSource.splice(e,t,n)},f.prototype.filterData=function(e,t){var n=this.physicalRowsToLogical(e,t);if(!1!==this.instance.runHooks("beforeDataFilter",e,t,n))return this.dataSource.filter(function(e,t){return-1==n.indexOf(t)})},f.prototype.get=function(e,t){e=this.instance.runHooks("modifyRow",e);var n=this.dataSource[e],i=this.instance.runHooks("modifyRowData",e),o=null;if((n=isNaN(i)?i:n)&&n.hasOwnProperty&&(0,s.hasOwnProperty)(n,t))o=n[t];else if("string"==typeof t&&t.indexOf(".")>-1){var r=t.split("."),a=n;if(!a)return null;for(var l=0,d=r.length;l<d;l++)if(void 0===(a=a[r[l]]))return null;o=a}else"function"==typeof t&&(o=t(this.dataSource.slice(e,e+1)[0]));if(this.instance.hasHook("modifyData")){var c=(0,s.createObjectPropListener)(o);this.instance.runHooks("modifyData",e,this.propToCol(t),c,"get"),c.isTouched()&&(o=c.value)}return o};var p=(0,r.cellMethodLookupFactory)("copyable",!1);f.prototype.getCopyable=function(e,t){return p.call(this.instance,e,this.propToCol(t))?this.get(e,t):""},f.prototype.set=function(e,t,n,i){e=this.instance.runHooks("modifyRow",e,i||"datamapGet");var o=this.dataSource[e],r=this.instance.runHooks("modifyRowData",e);if(o=isNaN(r)?r:o,this.instance.hasHook("modifyData")){var a=(0,s.createObjectPropListener)(n);this.instance.runHooks("modifyData",e,this.propToCol(t),a,"set"),a.isTouched()&&(n=a.value)}if(o&&o.hasOwnProperty&&(0,s.hasOwnProperty)(o,t))o[t]=n;else if("string"==typeof t&&t.indexOf(".")>-1){var l,d=t.split("."),c=o,u=0;for(u=0,l=d.length-1;u<l;u++)void 0===c[d[u]]&&(c[d[u]]={}),c=c[d[u]];c[d[u]]=n}else"function"==typeof t?t(this.dataSource.slice(e,e+1)[0],n):o[t]=n},f.prototype.physicalRowsToLogical=function(e,t){for(var n,i=this.instance.countSourceRows(),o=(i+e)%i,r=[],a=t;o<i&&a;)n=this.instance.runHooks("modifyRow",o),r.push(n),a--,o++;return r},f.prototype.physicalColumnsToLogical=function(e,t){for(var n=this.instance.countCols(),i=(n+e)%n,o=[],r=t;i<n&&r;){var a=this.instance.runHooks("modifyCol",i);o.push(a),r--,i++}return o},f.prototype.clear=function(){for(var e=0;e<this.instance.countSourceRows();e++)for(var t=0;t<this.instance.countCols();t++)this.set(e,this.colToProp(t),"")},f.prototype.clearLengthCache=function(){this.cachedLength=null},f.prototype.getLength=function(){var e,t=this,n=this.instance.getSettings().maxRows;e=n<0||0===n?0:n||1/0;var i=this.instance.countSourceRows();if(this.instance.hasHook("modifyRow")){var o=this.skipCache;this.interval.start(),i!==this.latestSourceRowsCount&&(o=!0),this.latestSourceRowsCount=i,null===this.cachedLength||o?((0,c.rangeEach)(i-1,function(e){null===(e=t.instance.runHooks("modifyRow",e))&&--i}),this.cachedLength=i):i=this.cachedLength}else this.interval.stop();return Math.min(i,e)},f.prototype.getAll=function(){var e={row:0,col:0},t={row:Math.max(this.instance.countSourceRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return e.row-t.row!=0||this.instance.countSourceRows()?this.getRange(e,t,f.prototype.DESTINATION_RENDERER):[]},f.prototype.getRange=function(e,t,n){var i,o,r,a,s,l=[],d=this.instance.getSettings().maxRows,c=this.instance.getSettings().maxCols;if(0===d||0===c)return[];var u=n===this.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get;for(o=Math.min(Math.max(d-1,0),Math.max(e.row,t.row)),a=Math.min(Math.max(c-1,0),Math.max(e.col,t.col)),i=Math.min(e.row,t.row);i<=o;i++){s=[];var h=this.instance.runHooks("modifyRow",i);for(r=Math.min(e.col,t.col);r<=a&&null!==h;r++)s.push(u.call(this,i,this.colToProp(r)));null!==h&&l.push(s)}return l},f.prototype.getText=function(e,t){return o.default.stringify(this.getRange(e,t,this.DESTINATION_RENDERER))},f.prototype.getCopyableText=function(e,t){return o.default.stringify(this.getRange(e,t,this.DESTINATION_CLIPBOARD_GENERATOR))},f.prototype.onSkipLengthCache=function(e){var t=this;this.skipCache=!0,setTimeout(function(){t.skipCache=!1},e)},f.prototype.destroy=function(){this.interval.stop(),this.interval=null,this.instance=null,this.priv=null,this.GridSettings=null,this.dataSource=null,this.cachedLength=null,this.duckSchema=null},t.default=f},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(2),r=n(1),a=n(6),s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return i(e,[{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data;return e&&(t=this.getByRange({row:0,col:0},{row:Math.max(this.countRows()-1,0),col:Math.max(this.countColumns()-1,0)},!0)),t}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return(0,r.arrayEach)(this.data,function(i){var r=t.colToProp(e);i="string"==typeof r?(0,o.getProperty)(i,r):i[r],n.push(i)}),n}},{key:"getAtRow",value:function(e){return this.data[e]}},{key:"getAtCell",value:function(e,t){var n=null,i=this.hot.runHooks("modifyRowData",e),r=isNaN(i)?i:this.data[e];if(r){var a=this.colToProp(t);n="string"==typeof a?(0,o.getProperty)(r,a):"function"==typeof a?a(this.data.slice(e,e+1)[0]):r[a]}return n}},{key:"getByRange",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Math.min(e.row,t.row),r=Math.min(e.col,t.col),s=Math.max(e.row,t.row),l=Math.max(e.col,t.col),d=[];return(0,a.rangeEach)(o,s,function(e){var t=n.getAtRow(e),o=void 0;"array"===n.dataType?o=t.slice(r,l+1):"object"===n.dataType&&(o=i?[]:{},(0,a.rangeEach)(r,l,function(e){var r=n.colToProp(e);i?o.push(t[r]):o[r]=t[r]})),d.push(o)}),d}},{key:"countRows",value:function(){return Array.isArray(this.data)?this.data.length:0}},{key:"countColumns",value:function(){var e=0;return Array.isArray(this.data)&&("array"===this.dataType?e=this.data[0].length:"object"===this.dataType&&(e=Object.keys(this.data[0]).length)),e}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i,o=n(11),r=n(16),a=n(7),s=n(14),l=(i=n(4))&&i.__esModule?i:{default:i},d=n(36);t.default=function(e,t,n){var i,c,u=this,h=!1;function f(e){n.setSelectedHeaders(!1,!1,!1);var i="function"==typeof t.settings.enterMoves?t.settings.enterMoves(event):t.settings.enterMoves;e?n.transformStart(-i.row,-i.col):n.transformStart(i.row,i.col,!0)}i=new l.default(e),this.destroyEditor=function(e){this.closeEditor(e)},this.getActiveEditor=function(){return c},this.prepareEditor=function(){var n,i,o,r,a,l,d;c&&c.isWaiting()?this.closeEditor(!1,!1,function(e){e&&u.prepareEditor()}):(n=t.selRange.highlight.row,i=t.selRange.highlight.col,o=e.colToProp(i),r=e.getCell(n,i),a=e.getSourceDataAtCell(e.runHooks("modifyRow",n),i),l=e.getCellMeta(n,i),(d=e.getCellEditor(l))?(c=(0,s.getEditorInstance)(d,e)).prepare(n,i,o,r,a,l):c=void 0)},this.isEditorOpened=function(){return c&&c.isOpened()},this.openEditor=function(e,t){c&&!c.cellProperties.readOnly?c.beginEditing(e,t):c&&c.cellProperties.readOnly&&t&&t.keyCode===r.KEY_CODES.ENTER&&f()},this.closeEditor=function(e,t,n){c?c.finishEditing(e,t,n):n&&n(!1)},this.closeEditorAndSaveChanges=function(e){return this.closeEditor(!1,e)},this.closeEditorAndRestoreOriginalValue=function(e){return this.closeEditor(!0,e)},e.addHook("afterDocumentKeyDown",function(i){var s,l;if(e.isListening()&&(e.runHooks("beforeKeyDown",i),!h&&!(0,a.isImmediatePropagationStopped)(i)&&(t.lastKeyCode=i.keyCode,n.isSelected())))if(s=(i.ctrlKey||i.metaKey)&&!i.altKey,!c||c.isWaiting()||(0,r.isMetaKey)(i.keyCode)||(0,r.isCtrlKey)(i.keyCode)||s||u.isEditorOpened())switch(l=i.shiftKey?n.setRangeEnd:n.setRangeStart,i.keyCode){case r.KEY_CODES.A:!u.isEditorOpened()&&s&&(n.selectAll(),i.preventDefault(),(0,a.stopPropagation)(i));break;case r.KEY_CODES.ARROW_UP:u.isEditorOpened()&&!c.isWaiting()&&u.closeEditorAndSaveChanges(s),i.shiftKey?(n.selectedHeader.cols&&n.setSelectedHeaders(n.selectedHeader.rows,!1,!1),n.transformEnd(-1,0)):(n.setSelectedHeaders(!1,!1,!1),n.transformStart(-1,0)),i.preventDefault(),(0,a.stopPropagation)(i);break;case r.KEY_CODES.ARROW_DOWN:u.isEditorOpened()&&!c.isWaiting()&&u.closeEditorAndSaveChanges(s),i.shiftKey?n.transformEnd(1,0):(n.setSelectedHeaders(!1,!1,!1),n.transformStart(1,0)),i.preventDefault(),(0,a.stopPropagation)(i);break;case r.KEY_CODES.ARROW_RIGHT:u.isEditorOpened()&&!c.isWaiting()&&u.closeEditorAndSaveChanges(s),i.shiftKey?n.transformEnd(0,1):(n.setSelectedHeaders(!1,!1,!1),n.transformStart(0,1)),i.preventDefault(),(0,a.stopPropagation)(i);break;case r.KEY_CODES.ARROW_LEFT:u.isEditorOpened()&&!c.isWaiting()&&u.closeEditorAndSaveChanges(s),i.shiftKey?(n.selectedHeader.rows&&n.setSelectedHeaders(!1,n.selectedHeader.cols,!1),n.transformEnd(0,-1)):(n.setSelectedHeaders(!1,!1,!1),n.transformStart(0,-1)),i.preventDefault(),(0,a.stopPropagation)(i);break;case r.KEY_CODES.TAB:n.setSelectedHeaders(!1,!1,!1);var p="function"==typeof t.settings.tabMoves?t.settings.tabMoves(i):t.settings.tabMoves;i.shiftKey?n.transformStart(-p.row,-p.col):n.transformStart(p.row,p.col,!0),i.preventDefault(),(0,a.stopPropagation)(i);break;case r.KEY_CODES.BACKSPACE:case r.KEY_CODES.DELETE:n.empty(i),u.prepareEditor(),i.preventDefault();break;case r.KEY_CODES.F2:u.openEditor(null,i),c&&c.enableFullEditMode(),i.preventDefault();break;case r.KEY_CODES.ENTER:u.isEditorOpened()?(c&&c.state!==d.EditorState.WAITING&&u.closeEditorAndSaveChanges(s),f(i.shiftKey)):e.getSettings().enterBeginsEditing?(u.openEditor(null,i),c&&c.enableFullEditMode()):f(i.shiftKey),i.preventDefault(),(0,a.stopImmediatePropagation)(i);break;case r.KEY_CODES.ESCAPE:u.isEditorOpened()&&u.closeEditorAndRestoreOriginalValue(s),i.preventDefault();break;case r.KEY_CODES.HOME:n.setSelectedHeaders(!1,!1,!1),i.ctrlKey||i.metaKey?l(new o.CellCoords(0,t.selRange.from.col)):l(new o.CellCoords(t.selRange.from.row,0)),i.preventDefault(),(0,a.stopPropagation)(i);break;case r.KEY_CODES.END:n.setSelectedHeaders(!1,!1,!1),i.ctrlKey||i.metaKey?l(new o.CellCoords(e.countRows()-1,t.selRange.from.col)):l(new o.CellCoords(t.selRange.from.row,e.countCols()-1)),i.preventDefault(),(0,a.stopPropagation)(i);break;case r.KEY_CODES.PAGE_UP:n.setSelectedHeaders(!1,!1,!1),n.transformStart(-e.countVisibleRows(),0),i.preventDefault(),(0,a.stopPropagation)(i);break;case r.KEY_CODES.PAGE_DOWN:n.setSelectedHeaders(!1,!1,!1),n.transformStart(e.countVisibleRows(),0),i.preventDefault(),(0,a.stopPropagation)(i)}else u.openEditor("",i)}),i.addEventListener(document.documentElement,"keydown",function(t){h||e.runHooks("afterDocumentKeyDown",t)}),e.view.wt.update("onCellDblClick",function(e,t,n){"TD"==n.nodeName&&(u.openEditor(),c&&c.enableFullEditMode())}),e.addHook("afterDestroy",function(){h=!0})}},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(36))&&i.__esModule?i:{default:i},a=n(0),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),o(t,[{key:"beginEditing",value:function(e,t){if(void 0===t){var n=this.TD.querySelector('input[type="checkbox"]');(0,a.hasClass)(n,"htBadValue")||n.click()}}},{key:"finishEditing",value:function(){}},{key:"init",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"focus",value:function(){}}]),t}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=f(n(62)),a=f(n(299));n(182);var s=n(0),l=n(2),d=f(n(4)),c=n(16),u=n(7),h=f(n(43));function f(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.defaultDateFormat="DD/MM/YYYY",n.isCellEdited=!1,n.parentDestroyed=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,h.default),i(t,[{key:"init",value:function(){var e=this;if("function"!=typeof r.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof a.default)throw new Error("You need to include Pikaday to your project.");o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"init",this).call(this),this.instance.addHook("afterDestroy",function(){e.parentDestroyed=!0,e.destroyElements()})}},{key:"createElements",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createElements",this).call(this),this.datePicker=document.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,(0,s.addClass)(this.datePicker,"htDatepickerHolder"),document.body.appendChild(this.datePicker),this.$datePicker=new a.default(this.getDatePickerConfig()),new d.default(this).addEventListener(this.datePicker,"mousedown",function(e){return(0,u.stopPropagation)(e)}),this.hideDatepicker()}},{key:"destroyElements",value:function(){this.$datePicker.destroy()}},{key:"prepare",value:function(e,n,i,r,a,s){this._opened=!1,o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"prepare",this).call(this,e,n,i,r,a,s)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"open",this).call(this),this.showDatepicker(e)}},{key:"close",value:function(){var e=this;this._opened=!1,this.instance._registerTimeout(setTimeout(function(){e.instance.selection.refreshBorders()},0)),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var i=this.originalValue;void 0!==i&&this.setValue(i)}this.hideDatepicker(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"finishEditing",this).call(this,e,n)}},{key:"showDatepicker",value:function(e){this.$datePicker.config(this.getDatePickerConfig());var t=this.TD.getBoundingClientRect(),n=this.cellProperties.dateFormat||this.defaultDateFormat,i=this.$datePicker.config(),o=void 0,a=this.instance.view.isMouseDown(),l=!!e&&(0,c.isMetaKey)(e.keyCode);this.datePickerStyle.top=window.pageYOffset+t.top+(0,s.outerHeight)(this.TD)+"px",this.datePickerStyle.left=window.pageXOffset+t.left+"px",this.$datePicker._onInputFocus=function(){},i.format=n,this.originalValue?(o=this.originalValue,(0,r.default)(o,n,!0).isValid()&&this.$datePicker.setMoment((0,r.default)(o,n),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),l||a||this.setValue("")):this.cellProperties.defaultDate?(o=this.cellProperties.defaultDate,i.defaultDate=o,(0,r.default)(o,n,!0).isValid()&&this.$datePicker.setMoment((0,r.default)(o,n),!0),l||a||this.setValue("")):this.$datePicker.gotoToday(),this.datePickerStyle.display="block",this.$datePicker.show()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none",this.$datePicker.hide()}},{key:"getDatePickerConfig",value:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,l.deepExtend)(n,this.cellProperties.datePickerConfig);var i=n.onSelect,o=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.format=n.format||this.defaultDateFormat,n.reposition=n.reposition||!1,n.onSelect=function(t){isNaN(t.getTime())||(t=(0,r.default)(t).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(t),e.hideDatepicker(),i&&i()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),o&&o()},n}}]),t}();t.default=p},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=a(n(147)),r=a(n(8));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),i(t,[{key:"prepare",value:function(e,n,i,o,r,a){(function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"prepare",this).call(this,e,n,i,o,r,a),this.cellProperties.filter=!1,this.cellProperties.strict=!0}}]),t}();r.default.getSingleton().add("beforeValidate",function(e,t,n,i){var o=this.getCellMeta(t,this.propToCol(n));o.editor===s&&void 0===o.strict&&(o.filter=!1,o.strict=!0)}),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i=n(16),o=n(7),r=n(0),a=l(n(36)),s=l(n(4));function l(e){return e&&e.__esModule?e:{default:e}}var d=a.default.prototype.extend(),c={};d.prototype.valueChanged=function(){return this.initValue!=this.getValue()},d.prototype.init=function(){var e=this;this.eventManager=new s.default(this.instance),this.createElements(),this.bindEvents(),this.instance.addHook("afterDestroy",function(){e.destroy()})},d.prototype.getValue=function(){return this.TEXTAREA.value},d.prototype.setValue=function(e){this.initValue=e,this.TEXTAREA.value=e},d.prototype.createElements=function(){this.editorContainer=document.createElement("DIV"),this.editorContainer.className="htMobileEditorContainer",this.cellPointer=document.createElement("DIV"),this.cellPointer.className="cellPointer",this.moveHandle=document.createElement("DIV"),this.moveHandle.className="moveHandle",this.inputPane=document.createElement("DIV"),this.inputPane.className="inputs",this.positionControls=document.createElement("DIV"),this.positionControls.className="positionControls",this.TEXTAREA=document.createElement("TEXTAREA"),(0,r.addClass)(this.TEXTAREA,"handsontableInput"),this.inputPane.appendChild(this.TEXTAREA),this.editorContainer.appendChild(this.cellPointer),this.editorContainer.appendChild(this.moveHandle),this.editorContainer.appendChild(this.inputPane),this.editorContainer.appendChild(this.positionControls),function(){for(var e in this.controls={},this.controls.leftButton=document.createElement("DIV"),this.controls.leftButton.className="leftButton",this.controls.rightButton=document.createElement("DIV"),this.controls.rightButton.className="rightButton",this.controls.upButton=document.createElement("DIV"),this.controls.upButton.className="upButton",this.controls.downButton=document.createElement("DIV"),this.controls.downButton.className="downButton",this.controls)Object.prototype.hasOwnProperty.call(this.controls,e)&&this.positionControls.appendChild(this.controls[e])}.call(this),document.body.appendChild(this.editorContainer)},d.prototype.onBeforeKeyDown=function(e){var t=this.getActiveEditor();if(e.target===t.TEXTAREA&&!(0,o.isImmediatePropagationStopped)(e))switch(e.keyCode){case i.KEY_CODES.ENTER:t.close(),e.preventDefault();break;case i.KEY_CODES.BACKSPACE:(0,o.stopImmediatePropagation)(e)}},d.prototype.open=function(){this.instance.addHook("beforeKeyDown",this.onBeforeKeyDown),(0,r.addClass)(this.editorContainer,"active"),(0,r.removeClass)(this.cellPointer,"hidden"),this.updateEditorPosition()},d.prototype.focus=function(){this.TEXTAREA.focus(),(0,r.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},d.prototype.close=function(){this.TEXTAREA.blur(),this.instance.removeHook("beforeKeyDown",this.onBeforeKeyDown),(0,r.removeClass)(this.editorContainer,"active")},d.prototype.scrollToView=function(){var e=this.instance.getSelectedRange().highlight;this.instance.view.scrollViewport(e)},d.prototype.hideCellPointer=function(){(0,r.hasClass)(this.cellPointer,"hidden")||(0,r.addClass)(this.cellPointer,"hidden")},d.prototype.updateEditorPosition=function(e,t){if(e&&t)e=parseInt(e,10),t=parseInt(t,10),this.editorContainer.style.top=t+"px",this.editorContainer.style.left=e+"px";else{var n=this.instance.getSelected(),i=this.instance.getCell(n[0],n[1]);if(c.cellPointer||(c.cellPointer={height:(0,r.outerHeight)(this.cellPointer),width:(0,r.outerWidth)(this.cellPointer)}),c.editorContainer||(c.editorContainer={width:(0,r.outerWidth)(this.editorContainer)}),void 0!==i){var o=this.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer==window?0:(0,r.getScrollLeft)(this.instance.view.wt.wtOverlays.leftOverlay.holder),a=this.instance.view.wt.wtOverlays.topOverlay.trimmingContainer==window?0:(0,r.getScrollTop)(this.instance.view.wt.wtOverlays.topOverlay.holder),s=(0,r.offset)(i),l=(0,r.outerWidth)(i),d={x:o,y:a};this.editorContainer.style.top=parseInt(s.top+(0,r.outerHeight)(i)-d.y+c.cellPointer.height,10)+"px",this.editorContainer.style.left=parseInt(window.innerWidth/2-c.editorContainer.width/2,10)+"px",s.left+l/2>parseInt(this.editorContainer.style.left,10)+c.editorContainer.width?this.editorContainer.style.left=window.innerWidth-c.editorContainer.width+"px":s.left+l/2<parseInt(this.editorContainer.style.left,10)+20&&(this.editorContainer.style.left="0px"),this.cellPointer.style.left=parseInt(s.left-c.cellPointer.width/2-(0,r.offset)(this.editorContainer).left+l/2-d.x,10)+"px"}}},d.prototype.updateEditorData=function(){var e=this.instance.getSelected(),t=this.instance.getDataAtCell(e[0],e[1]);this.row=e[0],this.col=e[1],this.setValue(t),this.updateEditorPosition()},d.prototype.prepareAndSave=function(){var e;this.valueChanged()&&(e=this.instance.getSettings().trimWhitespace?[[String.prototype.trim.call(this.getValue())]]:[[this.getValue()]],this.saveValue(e))},d.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.controls.leftButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(0,-1,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.rightButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(0,1,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.upButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(-1,0,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.downButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(1,0,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.moveHandle,"touchstart",function(t){if(1==t.touches.length){var n=t.touches[0],i={x:e.editorContainer.offsetLeft,y:e.editorContainer.offsetTop},o={x:n.pageX-i.x,y:n.pageY-i.y};e.eventManager.addEventListener(this,"touchmove",function(t){var n=t.touches[0];e.updateEditorPosition(n.pageX-o.x,n.pageY-o.y),e.hideCellPointer(),t.preventDefault()})}}),this.eventManager.addEventListener(document.body,"touchend",function(t){(0,r.isChildOf)(t.target,e.editorContainer)||(0,r.isChildOf)(t.target,e.instance.rootElement)||e.close()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.leftOverlay.holder,"scroll",function(t){e.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer!=window&&e.hideCellPointer()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.topOverlay.holder,"scroll",function(t){e.instance.view.wt.wtOverlays.topOverlay.trimmingContainer!=window&&e.hideCellPointer()})},d.prototype.destroy=function(){this.eventManager.clear(),this.editorContainer.parentNode.removeChild(this.editorContainer)},t.default=d},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=a(n(86)),r=a(n(43));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),i(t,[{key:"beginEditing",value:function(e){if(void 0===e&&this.originalValue){void 0!==this.cellProperties.language&&o.default.culture(this.cellProperties.language);var n=o.default.cultureData().delimiters.decimal;e=(""+this.originalValue).replace(".",n)}(function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"beginEditing",this).call(this,e)}}]),t}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),a=(i=n(43))&&i.__esModule?i:{default:i},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),o(t,[{key:"createElements",value:function(){(function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createElements",this).call(this),this.TEXTAREA=document.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,(0,r.empty)(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}]),t}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i,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},r=n(0),a=n(7),s=n(16),l=n(36),d=(i=l)&&i.__esModule?i:{default:i},c=d.default.prototype.extend();c.prototype.init=function(){this.select=document.createElement("SELECT"),(0,r.addClass)(this.select,"htSelectEditor"),this.select.style.display="none",this.instance.rootElement.appendChild(this.select),this.registerHooks()},c.prototype.registerHooks=function(){var e=this;this.instance.addHook("afterScrollHorizontally",function(){return e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){return e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){return e.refreshDimensions()}),this.instance.addHook("afterRowResize",function(){return e.refreshDimensions()})},c.prototype.prepare=function(){d.default.prototype.prepare.apply(this,arguments);var e,t=this.cellProperties.selectOptions;for(var n in e="function"==typeof t?this.prepareOptions(t(this.row,this.col,this.prop)):this.prepareOptions(t),(0,r.empty)(this.select),e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=document.createElement("OPTION");i.value=n,(0,r.fastInnerHTML)(i,e[n]),this.select.appendChild(i)}},c.prototype.prepareOptions=function(e){var t={};if(Array.isArray(e))for(var n=0,i=e.length;n<i;n++)t[e[n]]=e[n];else"object"==(void 0===e?"undefined":o(e))&&(t=e);return t},c.prototype.getValue=function(){return this.select.value},c.prototype.setValue=function(e){this.select.value=e};var u=function(e){var t=this.getActiveEditor();switch(e.keyCode){case s.KEY_CODES.ARROW_UP:var n=t.select.selectedIndex-1;n>=0&&(t.select[n].selected=!0),(0,a.stopImmediatePropagation)(e),e.preventDefault();break;case s.KEY_CODES.ARROW_DOWN:var i=t.select.selectedIndex+1;i<=t.select.length-1&&(t.select[i].selected=!0),(0,a.stopImmediatePropagation)(e),e.preventDefault()}};c.prototype.open=function(){this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.instance.addHook("beforeKeyDown",u)},c.prototype.close=function(){this._opened=!1,this.select.style.display="none",this.instance.removeHook("beforeKeyDown",u)},c.prototype.focus=function(){this.select.focus()},c.prototype.refreshValue=function(){var e=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()},c.prototype.refreshDimensions=function(){if(this.state===l.EditorState.EDITING)if(this.TD=this.getEditedCell(),this.TD){var e,t=(0,r.outerWidth)(this.TD)+1,n=(0,r.outerHeight)(this.TD)+1,i=(0,r.offset)(this.TD),o=(0,r.offset)(this.instance.rootElement),a=(0,r.getScrollableElement)(this.TD),s=i.top-o.top-1-(a.scrollTop||0),d=i.left-o.left-1-(a.scrollLeft||0),c=this.checkEditorSection(),u=this.instance.getSettings();switch(u.rowHeaders,u.colHeaders,c){case"top":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}0===this.instance.getSelected()[0]&&(s+=1),0===this.instance.getSelected()[1]&&(d+=1);var h=this.select.style;e&&-1!=e?h[e[0]]=e[1]:(0,r.resetCssTransform)(this.select);var f=(0,r.getComputedStyle)(this.TD);parseInt(f.borderTopWidth,10)>0&&(n-=1),parseInt(f.borderLeftWidth,10)>0&&(t-=1),h.height=n+"px",h.minWidth=t+"px",h.top=s+"px",h.left=d+"px",h.margin="0px"}else this.close()},c.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.select.style.zIndex=101;break;case"corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.select.style.zIndex=""}return-1!=e&&-2!=e?e:void 0},t.default=c},function(e,t,n){"use strict";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),n(179),n(180),n(181);var i=n(14),o=n(9),r=n(26),a=n(63),s=D(n(64)),l=D(n(177)),d=n(4),c=D(d),u=D(n(8)),h=D(n(67)),f=T(n(1)),p=T(n(25)),m=T(n(65)),g=T(n(88)),y=T(n(34)),v=T(n(35)),A=T(n(20)),b=T(n(6)),w=T(n(2)),_=T(n(66)),M=T(n(27)),x=T(n(16)),k=T(n(0)),S=T(n(7)),C=T(n(178)),E=n(5),L=D(n(87));function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function D(e){return e&&e.__esModule?e:{default:e}}function Y(e,t){var n=new s.default(e,t||{});return n.init(),n}(0,l.default)(Y),Y.Core=s.default,Y.DefaultSettings=L.default,Y.EventManager=c.default,Y._getListenersCounter=d.getListenersCounter,Y.buildDate="2017-05-30T10:18:32.902Z",Y.packageName="handsontable",Y.version="0.32.0",Y.hooks=u.default.getSingleton(),Y.__GhostTable=h.default;var R=[f,p,m,g,y,v,A,b,w,_,M,x],B=[k,S];Y.helper={},Y.dom={},f.arrayEach(R,function(e){f.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(Y.helper[t]=e[t])})}),f.arrayEach(B,function(e){f.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(Y.dom[t]=e[t])})}),Y.cellTypes={},f.arrayEach((0,a.getRegisteredCellTypeNames)(),function(e){Y.cellTypes[e]=(0,a.getCellType)(e)}),Y.cellTypes.registerCellType=a.registerCellType,Y.cellTypes.getCellType=a.getCellType,Y.editors={},f.arrayEach((0,i.getRegisteredEditorNames)(),function(e){Y.editors[M.toUpperCaseFirst(e)+"Editor"]=(0,i.getEditor)(e)}),Y.editors.registerEditor=i.registerEditor,Y.editors.getEditor=i.getEditor,Y.renderers={},f.arrayEach((0,o.getRegisteredRendererNames)(),function(e){var t=(0,o.getRenderer)(e);"base"===e&&(Y.renderers.cellDecorator=t),Y.renderers[M.toUpperCaseFirst(e)+"Renderer"]=t}),Y.renderers.registerRenderer=o.registerRenderer,Y.renderers.getRenderer=o.getRenderer,Y.validators={},f.arrayEach((0,r.getRegisteredValidatorNames)(),function(e){Y.validators[M.toUpperCaseFirst(e)+"Validator"]=(0,r.getValidator)(e)}),Y.validators.registerValidator=r.registerValidator,Y.validators.getValidator=r.getValidator,Y.plugins={},f.arrayEach(Object.getOwnPropertyNames(C),function(e){var t=C[e];"Base"===e?Y.plugins[e+"Plugin"]=t:Y.plugins[e]=t}),Y.plugins.registerPlugin=E.registerPlugin,e.exports=Y},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.default=function(){var e={arrayMap:[],weakMap:new WeakMap};return{get:function(i){return t(i)?e.arrayMap[i]:n(i)?e.weakMap.get(i):void 0},set:function(i,o){if(t(i))e.arrayMap[i]=o;else{if(!n(i))throw new Error("Invalid key type");e.weakMap.set(i,o)}},delete:function(i){t(i)?delete e.arrayMap[i]:n(i)&&e.weakMap.delete(i)}};function t(e){return null!==e&&!function(e){return e!=e}(e)&&("string"==typeof e||"number"==typeof e)}function n(e){return null!==e&&("object"==(void 0===e?"undefined":i(e))||"function"==typeof e)}}},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 e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=y(n(12)),s=n(1),l=n(34),d=n(0),c=y(n(67)),u=n(2),h=n(6),f=n(5),p=y(n(154)),m=n(27),g=n(11);function y(e){return e&&e.__esModule?e:{default:e}}var v=new WeakMap,A=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return v.set(n,{cachedColumnHeaders:[]}),n.widths=[],n.ghostTable=new c.default(n.hot),n.samplesGenerator=new p.default(function(e,t){return n.hot.getDataAtCell(e,t)}),n.firstCalculation=!0,n.inProgress=!1,n.addHook("beforeColumnResize",function(e,t,i){return n.onBeforeColumnResize(e,t,i)}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),r(t,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 50}}]),r(t,[{key:"isEnabled",value:function(){return!1!==this.hot.getSettings().autoColumnSize&&!this.hot.getSettings().colWidths}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){var n=this.hot.getSettings().autoColumnSize;n&&null!=n.useHeaders&&this.ghostTable.setSetting("useHeaders",n.useHeaders),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("modifyColWidth",function(t,n){return e.getColumnWidth(n,t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.findColumnsWhereHeaderWasChanged();e.length&&this.clearCache(e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"calculateColumnsWidth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];"number"==typeof e&&(e={from:e,to:e}),"number"==typeof n&&(n={from:n,to:n}),(0,h.rangeEach)(e.from,e.to,function(e){(i||void 0===t.widths[e]&&!t.hot._getColWidthFromSettings(e))&&t.samplesGenerator.generateColumnSamples(e,n).forEach(function(e,n){return t.ghostTable.addColumn(n,e)})}),this.ghostTable.columns.length&&(this.ghostTable.getWidths(function(e,n){t.widths[e]=n}),this.ghostTable.clean())}},{key:"calculateAllColumnsWidth",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},i=0,o=this.hot.countCols()-1,r=null;this.inProgress=!0,this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateColumnsWidth({from:0,to:this.getSyncCalculationLimit()},n),this.firstCalculation=!1,i=this.getSyncCalculationLimit()+1),i<o?function a(){if(!e.hot)return(0,l.cancelAnimationFrame)(r),void(e.inProgress=!1);e.calculateColumnsWidth({from:i,to:Math.min(i+t.CALCULATION_STEP,o)},n),(i=i+t.CALCULATION_STEP+1)<o?r=(0,l.requestAnimationFrame)(a):((0,l.cancelAnimationFrame)(r),e.inProgress=!1,e.hot.view.wt.wtOverlays.adjustElementsSize(!0),e.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&e.hot.view.wt.wtOverlays.leftOverlay.clone.draw())}():this.inProgress=!1}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoColumnSize,t=e&&(0,u.hasOwnProperty)(e,"samplingRatio")?this.hot.getSettings().autoColumnSize.samplingRatio:void 0,n=e&&(0,u.hasOwnProperty)(e,"allowSampleDuplicates")?this.hot.getSettings().autoColumnSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllColumnsWidth",value:function(){this.hot.view&&(0,d.isVisible)(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllColumnsWidth())}},{key:"getSyncCalculationLimit",value:function(){var e=t.SYNC_CALCULATION_LIMIT,n=this.hot.countCols()-1;return(0,u.isObject)(this.hot.getSettings().autoColumnSize)&&(e=this.hot.getSettings().autoColumnSize.syncLimit,(0,m.isPercentValue)(e)?e=(0,h.valueAccordingPercent)(n,e):e>>=0),Math.min(e,n)}},{key:"getColumnWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t;return void 0===i&&(i=this.widths[e],n&&"number"==typeof i&&(i=Math.max(i,g.ViewportColumnsCalculator.DEFAULT_WIDTH))),i}},{key:"getFirstVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getFirstVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getFirstRenderedColumn():-1}},{key:"getLastVisibleColumn",value:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getLastVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getLastRenderedColumn():-1}},{key:"findColumnsWhereHeaderWasChanged",value:function(){var e=this.hot.getColHeader(),t=v.get(this).cachedColumnHeaders;return(0,s.arrayReduce)(e,function(e,n,i){var o=t.length;return(o-1<i||t[i]!==n)&&e.push(i),o-1<i?t.push(n):t[i]=n,e},[])}},{key:"clearCache",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length?(0,s.arrayEach)(t,function(t){e.widths[t]=void 0}):this.widths.length=0}},{key:"isNeedRecalculate",value:function(){return!!(0,s.arrayFilter)(this.widths,function(e){return void 0===e}).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall;this.hot.countRows()&&(this.calculateColumnsWidth({from:this.getFirstVisibleColumn(),to:this.getLastVisibleColumn()},void 0,e),this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth())}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllColumnsWidth():setTimeout(function(){e.hot&&e.recalculateAllColumnsWidth()},0)}},{key:"onBeforeChange",value:function(e){var t=this,n=(0,s.arrayMap)(e,function(e){var n=i(e,2),o=(n[0],n[1]);return t.hot.propToCol(o)});this.clearCache(n)}},{key:"onBeforeColumnResize",value:function(e,t,n){return n&&(this.calculateColumnsWidth(e,void 0,!0),t=this.getColumnWidth(e,void 0,!1)),t}},{key:"onAfterInit",value:function(){v.get(this).cachedColumnHeaders=this.hot.getColHeader()}},{key:"destroy",value:function(){this.ghostTable.clean(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();(0,f.registerPlugin)("autoColumnSize",A),t.default=A},function(e,t,n){"use strict";t.__esModule=!0;var i=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=m(n(12)),a=n(1),s=n(34),l=n(0),d=m(n(67)),c=n(2),u=n(6),h=n(5),f=m(n(154)),p=n(27);function m(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.heights=[],n.ghostTable=new d.default(n.hot),n.samplesGenerator=new f.default(function(e,t){return e>=0?n.hot.getDataAtCell(e,t):-1===e?n.hot.getColHeader(t):null}),n.firstCalculation=!0,n.inProgress=!1,n.addHook("beforeRowResize",function(e,t,i){return n.onBeforeRowResize(e,t,i)}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),o(t,null,[{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),o(t,[{key:"isEnabled",value:function(){return!0===this.hot.getSettings().autoRowSize||(0,c.isObject)(this.hot.getSettings().autoRowSize)}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeColumnMove",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnResize",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnSort",function(){return e.clearCache()}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("beforeRowMove",function(t,n){return e.onBeforeRowMove(t,n)}),this.addHook("modifyRowHeight",function(t,n){return e.getRowHeight(n,t)}),this.addHook("modifyColumnHeaderHeight",function(){return e.getColumnHeaderHeight()}),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"calculateRowsHeight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("number"==typeof e&&(e={from:e,to:e}),"number"==typeof n&&(n={from:n,to:n}),null!==this.hot.getColHeader(0)){var o=this.samplesGenerator.generateRowSamples(-1,n);this.ghostTable.addColumnHeadersRow(o.get(-1))}(0,u.rangeEach)(e.from,e.to,function(e){(i||void 0===t.heights[e])&&t.samplesGenerator.generateRowSamples(e,n).forEach(function(e,n){t.ghostTable.addRow(n,e)})}),this.ghostTable.rows.length&&(this.ghostTable.getHeights(function(e,n){t.heights[e]=n}),this.ghostTable.clean())}},{key:"calculateAllRowsHeight",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},i=0,o=this.hot.countRows()-1,r=null;this.inProgress=!0,this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateRowsHeight({from:0,to:this.getSyncCalculationLimit()},n),this.firstCalculation=!1,i=this.getSyncCalculationLimit()+1),i<o?function a(){if(!e.hot)return(0,s.cancelAnimationFrame)(r),void(e.inProgress=!1);e.calculateRowsHeight({from:i,to:Math.min(i+t.CALCULATION_STEP,o)},n),(i=i+t.CALCULATION_STEP+1)<o?r=(0,s.requestAnimationFrame)(a):((0,s.cancelAnimationFrame)(r),e.inProgress=!1,e.hot.view.wt.wtOverlays.adjustElementsSize(!0),e.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&e.hot.view.wt.wtOverlays.leftOverlay.clone.draw())}():(this.inProgress=!1,this.hot.view.wt.wtOverlays.adjustElementsSize(!1))}},{key:"setSamplingOptions",value:function(){var e=this.hot.getSettings().autoRowSize,t=e&&(0,c.hasOwnProperty)(e,"samplingRatio")?this.hot.getSettings().autoRowSize.samplingRatio:void 0,n=e&&(0,c.hasOwnProperty)(e,"allowSampleDuplicates")?this.hot.getSettings().autoRowSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)}},{key:"recalculateAllRowsHeight",value:function(){(0,l.isVisible)(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())}},{key:"getSyncCalculationLimit",value:function(){var e=t.SYNC_CALCULATION_LIMIT,n=this.hot.countRows()-1;return(0,c.isObject)(this.hot.getSettings().autoRowSize)&&(e=this.hot.getSettings().autoRowSize.syncLimit,(0,p.isPercentValue)(e)?e=(0,u.valueAccordingPercent)(n,e):e>>=0),Math.min(e,n)}},{key:"getRowHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=t;return void 0!==this.heights[e]&&this.heights[e]>(t||0)&&(n=this.heights[e]),n}},{key:"getColumnHeaderHeight",value:function(){return this.heights[-1]}},{key:"getFirstVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getFirstVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getFirstRenderedRow():-1}},{key:"getLastVisibleRow",value:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getLastVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getLastRenderedRow():-1}},{key:"clearCache",value:function(){this.heights.length=0,this.heights[-1]=void 0}},{key:"clearCacheByRange",value:function(e){var t=this;"number"==typeof e&&(e={from:e,to:e}),(0,u.rangeEach)(Math.min(e.from,e.to),Math.max(e.from,e.to),function(e){t.heights[e]=void 0})}},{key:"isNeedRecalculate",value:function(){return!!(0,a.arrayFilter)(this.heights,function(e){return void 0===e}).length}},{key:"onBeforeRender",value:function(){var e=this.hot.renderCall;this.calculateRowsHeight({from:this.getFirstVisibleRow(),to:this.getLastVisibleRow()},void 0,e);var t=this.hot.getSettings().fixedRowsBottom;if(t){var n=this.hot.countRows()-1;this.calculateRowsHeight({from:n-t,to:n})}this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllRowsHeight()}},{key:"onBeforeRowMove",value:function(e,t){this.clearCacheByRange({from:e,to:t}),this.calculateAllRowsHeight()}},{key:"onBeforeRowResize",value:function(e,t,n){return n&&(this.calculateRowsHeight(e,void 0,!0),t=this.getRowHeight(e)),t}},{key:"onAfterLoadData",value:function(){var e=this;this.hot.view?this.recalculateAllRowsHeight():setTimeout(function(){e.hot&&e.recalculateAllRowsHeight()},0)}},{key:"onBeforeChange",value:function(e){var t=null;1===e.length?t=e[0][0]:e.length>1&&(t={from:e[0][0],to:e[e.length-1][0]}),null!==t&&this.clearCacheByRange(t)}},{key:"destroy",value:function(){this.ghostTable.clean(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();(0,h.registerPlugin)("autoRowSize",g),t.default=g},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=h(n(12)),a=h(n(8)),s=n(0),l=h(n(4)),d=n(5),c=n(11),u=n(214);function h(e){return e&&e.__esModule?e:{default:e}}a.default.getSingleton().register("modifyAutofillRange"),a.default.getSingleton().register("beforeAutofill");var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventManager=new l.default(n),n.addingStarted=!1,n.mouseDownOnCellCorner=!1,n.mouseDragOutside=!1,n.handleDraggedCells=0,n.directions=[],n.autoInsertRow=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),i(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().fillHandle}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",function(t){return e.onAfterCellCornerMouseDown(t)}),this.addHook("afterOnCellCornerDblClick",function(t){return e.onCellCornerDblClick(t)}),this.addHook("beforeOnCellMouseOver",function(t,n,i){return e.onBeforeCellMouseOver(n)}),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.clearMappedSettings(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"getSelectionData",value:function(){var e={from:this.hot.getSelectedRange().from,to:this.hot.getSelectedRange().to};return this.hot.getData(e.from.row,e.from.col,e.to.row,e.to.col)}},{key:"fillIn",value:function(){if(this.hot.view.wt.selections.fill.isEmpty())return!1;var e=this.hot.view.wt.selections.fill.getCorners();this.resetSelectionOfDraggedArea();var t=this.getCornersOfSelectedCells(),n=(0,u.getDragDirectionAndRange)(t,e),i=n.directionOfDrag,o=n.startOfDragCoords,r=n.endOfDragCoords;if(this.hot.runHooks("modifyAutofillRange",t,e),o&&o.row>-1&&o.col>-1){var a=this.getSelectionData(),s=(0,u.getDeltas)(o,r,a,i);this.hot.runHooks("beforeAutofill",o,r,a),this.hot.populateFromArray(o.row,o.col,a,r.row,r.col,this.pluginName+".fill",null,i,s),this.setSelection(e)}else this.hot.selection.refreshBorders();return!0}},{key:"reduceSelectionAreaIfNeeded",value:function(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}},{key:"getCoordsOfDragAndDropBorders",value:function(e){var t=this.hot.getSelectedRange().getTopLeftCorner(),n=this.hot.getSelectedRange().getBottomRightCorner(),i=void 0;if(this.directions.includes(u.DIRECTIONS.vertical)&&(n.row<e.row||t.row>e.row))i=new c.CellCoords(e.row,n.col);else{if(!this.directions.includes(u.DIRECTIONS.horizontal))return;i=new c.CellCoords(n.row,e.col)}return this.reduceSelectionAreaIfNeeded(i)}},{key:"showBorder",value:function(e){var t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}},{key:"addRow",value:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.alter("insert_row",void 0,1,e.pluginName+".fill"),e.addingStarted=!1},200))}},{key:"addNewRowIfNeeded",value:function(){if(this.hot.view.wt.selections.fill.cellRange&&!1===this.addingStarted&&this.autoInsertRow){var e=this.hot.getSelected(),t=this.hot.view.wt.selections.fill.getCorners(),n=this.hot.countRows();e[2]<n-1&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}},{key:"getCornersOfSelectedCells",value:function(){return this.hot.selection.isMultiple()?this.hot.view.wt.selections.area.getCorners():this.hot.view.wt.selections.current.getCorners()}},{key:"getIndexOfLastAdjacentFilledInRow",value:function(e){for(var t=this.hot.getData(),n=this.hot.countRows(),i=void 0,o=e[2]+1;o<n;o++){for(var r=e[1];r<=e[3];r++)if(t[o][r])return-1;var a=t[o][e[1]-1],s=t[o][e[3]+1];(a||s)&&(i=o)}return i}},{key:"addSelectionFromStartAreaToSpecificRowIndex",value:function(e,t){this.hot.view.wt.selections.fill.clear(),this.hot.view.wt.selections.fill.add(new c.CellCoords(e[0],e[1])),this.hot.view.wt.selections.fill.add(new c.CellCoords(t,e[3]))}},{key:"setSelection",value:function(e){this.hot.selection.setRangeStart(new c.CellCoords(e[0],e[1])),this.hot.selection.setRangeEnd(new c.CellCoords(e[2],e[3]))}},{key:"selectAdjacent",value:function(){var e=this.getCornersOfSelectedCells(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}},{key:"resetSelectionOfDraggedArea",value:function(){this.handleDraggedCells=0,this.hot.view.wt.selections.fill.clear()}},{key:"redrawBorders",value:function(e){this.hot.view.wt.selections.fill.clear(),this.hot.view.wt.selections.fill.add(this.hot.getSelectedRange().from),this.hot.view.wt.selections.fill.add(this.hot.getSelectedRange().to),this.hot.view.wt.selections.fill.add(e),this.hot.view.render()}},{key:"getIfMouseWasDraggedOutside",value:function(e){var t=(0,s.offset)(this.hot.table).top-(window.pageYOffset||document.documentElement.scrollTop)+(0,s.outerHeight)(this.hot.table),n=(0,s.offset)(this.hot.table).left-(window.pageXOffset||document.documentElement.scrollLeft)+(0,s.outerWidth)(this.hot.table);return e.clientY>t&&e.clientX<=n}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()}),this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)})}},{key:"onCellCornerDblClick",value:function(){this.selectAdjacent()&&this.fillIn()}},{key:"onAfterCellCornerMouseDown",value:function(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}},{key:"onBeforeCellMouseOver",value:function(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells++,this.showBorder(e),this.addNewRowIfNeeded())}},{key:"onMouseUp",value:function(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}},{key:"onMouseMove",value:function(e){var t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}},{key:"clearMappedSettings",value:function(){this.directions.length=0,this.autoInsertRow=!1}},{key:"mapSettings",value:function(){var e=(0,u.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}},{key:"destroy",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();(0,d.registerPlugin)("autofill",f),t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.DIRECTIONS=void 0,t.getDeltas=function(e,t,n,i){var o=n.length,r=n?n[0].length:0,a=[],s=t.row-e.row,l=t.col-e.col;if(-1!==["down","up"].indexOf(i)){for(var d=[],c=0;c<=l;c++){var u=parseInt(n[0][c],10),h=parseInt(n[o-1][c],10),f=("down"===i?h-u:u-h)/(o-1)||0;d.push(f)}a.push(d)}if(-1!==["right","left"].indexOf(i))for(var p=0;p<=s;p++){var m=parseInt(n[p][0],10),g=parseInt(n[p][r-1],10),y=("right"===i?g-m:m-g)/(r-1)||0;a.push([y])}return a},t.getDragDirectionAndRange=function(e,t){var n=void 0,i=void 0,o=void 0;return t[0]===e[0]&&t[1]<e[1]?(o="left",n=new r.CellCoords(t[0],t[1]),i=new r.CellCoords(t[2],e[1]-1)):t[0]===e[0]&&t[3]>e[3]?(o="right",n=new r.CellCoords(t[0],e[3]+1),i=new r.CellCoords(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(o="up",n=new r.CellCoords(t[0],t[1]),i=new r.CellCoords(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(o="down",n=new r.CellCoords(e[2]+1,t[1]),i=new r.CellCoords(t[2],t[3])),{directionOfDrag:o,startOfDragCoords:n,endOfDragCoords:i}},t.getMappedFillHandleSetting=function(e){var t={};return!0===e?(t.directions=Object.keys(a),t.autoInsertRow=!0):(0,i.isObject)(e)?((0,o.isDefined)(e.autoInsertRow)?e.direction===a.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,o.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(a)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1),t};var i=n(2),o=n(20),r=n(11),a=t.DIRECTIONS={horizontal:"horizontal",vertical:"vertical"}},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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=m(n(62)),s=n(0),l=n(1),d=n(20),c=n(2),u=m(n(12)),h=n(5),f=m(n(270)),p=m(n(8));function m(e){return e&&e.__esModule?e:{default:e}}p.default.getSingleton().register("beforeColumnSort"),p.default.getSingleton().register("afterColumnSort");var g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.sortIndicators=[],n.lastSortedColumn=null,n.sortEmptyCells=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default),o(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().columnSorting}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.setPluginOptions();var n=this;this.hot.sortIndex=[],this.hot.sort=function(){var e=Array.prototype.slice.call(arguments);return n.sortByColumn.apply(n,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e))},void 0===this.hot.getSettings().observeChanges&&this.enableObserveChangesPlugin(),this.addHook("afterTrimRow",function(t){return e.sort()}),this.addHook("afterUntrimRow",function(t){return e.sort()}),this.addHook("modifyRow",function(t){return e.translateRow(t)}),this.addHook("unmodifyRow",function(t){return e.untranslateRow(t)}),this.addHook("afterUpdateSettings",function(){return e.onAfterUpdateSettings()}),this.addHook("afterGetColHeader",function(t,n){return e.getColHeader(t,n)}),this.addHook("afterOnCellMouseDown",function(t,n){return e.onAfterOnCellMouseDown(t,n)}),this.addHook("afterCreateRow",function(){n.afterCreateRow.apply(n,arguments)}),this.addHook("afterRemoveRow",function(){n.afterRemoveRow.apply(n,arguments)}),this.addHook("afterInit",function(){return e.sortBySettings()}),this.addHook("afterLoadData",function(){e.hot.sortIndex=[],e.hot.view&&e.sortBySettings()}),this.hot.view&&this.sortBySettings(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.hot.sort=void 0,r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"onAfterUpdateSettings",value:function(){this.sortBySettings()}},{key:"sortBySettings",value:function(){var e=this.hot.getSettings().columnSorting,t=this.loadSortingState(),n=void 0,i=void 0;void 0===t?(n=e.column,i=e.sortOrder):(n=t.sortColumn,i=t.sortOrder),"number"==typeof n&&(this.lastSortedColumn=n,this.sortByColumn(n,i))}},{key:"setSortingColumn",value:function(e,t){if(void 0===e)return this.hot.sortColumn=void 0,void(this.hot.sortOrder=void 0);this.hot.sortColumn===e&&void 0===t?!1===this.hot.sortOrder?this.hot.sortOrder=void 0:this.hot.sortOrder=!this.hot.sortOrder:this.hot.sortOrder=void 0===t||t,this.hot.sortColumn=e}},{key:"sortByColumn",value:function(e,t){this.setSortingColumn(e,t),void 0!==this.hot.sortColumn&&(!1!==this.hot.runHooks("beforeColumnSort",this.hot.sortColumn,this.hot.sortOrder)&&this.sort(),this.updateOrderClass(),this.updateSortIndicator(),this.hot.runHooks("afterColumnSort",this.hot.sortColumn,this.hot.sortOrder),this.hot.render(),this.saveSortingState())}},{key:"saveSortingState",value:function(){var e={};void 0!==this.hot.sortColumn&&(e.sortColumn=this.hot.sortColumn),void 0!==this.hot.sortOrder&&(e.sortOrder=this.hot.sortOrder),((0,c.hasOwnProperty)(e,"sortColumn")||(0,c.hasOwnProperty)(e,"sortOrder"))&&this.hot.runHooks("persistentStateSave","columnSorting",e)}},{key:"loadSortingState",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","columnSorting",e),e.value}},{key:"updateOrderClass",value:function(){var e=void 0;!0===this.hot.sortOrder?e="ascending":!1===this.hot.sortOrder&&(e="descending"),this.sortOrderClass=e}},{key:"enableObserveChangesPlugin",value:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.updateSettings({observeChanges:!0})},0))}},{key:"defaultSort",value:function(e,t){return function(n,i){return"string"==typeof n[1]&&(n[1]=n[1].toLowerCase()),"string"==typeof i[1]&&(i[1]=i[1].toLowerCase()),n[1]===i[1]?0:(0,d.isEmpty)(n[1])?(0,d.isEmpty)(i[1])?0:t.columnSorting.sortEmptyCells&&e?-1:1:(0,d.isEmpty)(i[1])?(0,d.isEmpty)(n[1])?0:t.columnSorting.sortEmptyCells&&e?1:-1:isNaN(n[1])&&!isNaN(i[1])?e?1:-1:!isNaN(n[1])&&isNaN(i[1])?e?-1:1:(isNaN(n[1])||isNaN(i[1])||(n[1]=parseFloat(n[1]),i[1]=parseFloat(i[1])),n[1]<i[1]?e?-1:1:n[1]>i[1]?e?1:-1:0)}}},{key:"dateSort",value:function(e,t){return function(n,i){if(n[1]===i[1])return 0;if((0,d.isEmpty)(n[1]))return(0,d.isEmpty)(i[1])?0:t.columnSorting.sortEmptyCells&&e?-1:1;if((0,d.isEmpty)(i[1]))return(0,d.isEmpty)(n[1])?0:t.columnSorting.sortEmptyCells&&e?1:-1;var o=(0,a.default)(n[1],t.dateFormat),r=(0,a.default)(i[1],t.dateFormat);return o.isValid()?r.isValid()?r.isAfter(o)?e?-1:1:r.isBefore(o)?e?1:-1:0:-1:1}}},{key:"numericSort",value:function(e,t){return function(n,i){var o=parseFloat(n[1]),r=parseFloat(i[1]);if(o===r||isNaN(o)&&isNaN(r))return 0;if(t.columnSorting.sortEmptyCells){if((0,d.isEmpty)(n[1]))return e?-1:1;if((0,d.isEmpty)(i[1]))return e?1:-1}return isNaN(o)?1:isNaN(r)?-1:o<r?e?-1:1:o>r?e?1:-1:0}}},{key:"sort",value:function(){if(void 0!==this.hot.sortOrder){var e=this.hot.getCellMeta(0,this.hot.sortColumn),t=this.hot.countEmptyRows(),n=void 0;this.hot.sortingEnabled=!1,this.hot.sortIndex.length=0,void 0===e.columnSorting.sortEmptyCells&&(e.columnSorting={sortEmptyCells:this.sortEmptyCells});for(var i=0,o=this.hot.getSettings().maxRows===Number.POSITIVE_INFINITY?this.hot.countRows()-this.hot.getSettings().minSpareRows:this.hot.countRows()-t;i<o;i++)this.hot.sortIndex.push([i,this.hot.getDataAtCell(i,this.hot.sortColumn)]);if(e.sortFunction)n=e.sortFunction;else switch(e.type){case"date":n=this.dateSort;break;case"numeric":n=this.numericSort;break;default:n=this.defaultSort}(0,f.default)(this.hot.sortIndex,n(this.hot.sortOrder,e));for(var r=this.hot.sortIndex.length;r<this.hot.countRows();r++)this.hot.sortIndex.push([r,this.hot.getDataAtCell(r,this.hot.sortColumn)]);this.hot.sortingEnabled=!0}else this.hot.sortIndex.length=0}},{key:"updateSortIndicator",value:function(){if(void 0!==this.hot.sortOrder){var e=this.hot.getCellMeta(0,this.hot.sortColumn);this.sortIndicators[this.hot.sortColumn]=e.sortIndicator}}},{key:"translateRow",value:function(e){return this.hot.sortingEnabled&&void 0!==this.hot.sortOrder&&this.hot.sortIndex&&this.hot.sortIndex.length&&this.hot.sortIndex[e]?this.hot.sortIndex[e][0]:e}},{key:"untranslateRow",value:function(e){if(this.hot.sortingEnabled&&this.hot.sortIndex&&this.hot.sortIndex.length)for(var t=0;t<this.hot.sortIndex.length;t++)if(this.hot.sortIndex[t][0]==e)return t}},{key:"getColHeader",value:function(e,t){if(e<0||!t.parentNode)return!1;var n=t.querySelector(".colHeader"),i=(t.getAttribute("colspan"),t.parentNode.parentNode.childNodes),o=Array.prototype.indexOf.call(i,t.parentNode);o-=i.length,n&&(this.hot.getSettings().columnSorting&&e>=0&&-1===o&&(0,s.addClass)(n,"columnSorting"),(0,s.removeClass)(n,"descending"),(0,s.removeClass)(n,"ascending"),this.sortIndicators[e]&&e===this.hot.sortColumn&&("ascending"===this.sortOrderClass?(0,s.addClass)(n,"ascending"):"descending"===this.sortOrderClass&&(0,s.addClass)(n,"descending")))}},{key:"isSorted",value:function(){return void 0!==this.hot.sortColumn}},{key:"afterCreateRow",value:function(e,t){if(this.isSorted()){for(var n=0;n<this.hot.sortIndex.length;n++)this.hot.sortIndex[n][0]>=e&&(this.hot.sortIndex[n][0]+=t);for(var i=0;i<t;i++)this.hot.sortIndex.splice(e+i,0,[e+i,this.hot.getSourceData()[e+i][this.hot.sortColumn+this.hot.colOffset()]]);this.saveSortingState()}}},{key:"afterRemoveRow",value:function(e,t){if(this.isSorted()){var n=this.hot.sortIndex.splice(e,t);n=(0,l.arrayMap)(n,function(e){return e[0]}),this.hot.sortIndex=(0,l.arrayMap)(this.hot.sortIndex,function(e,t){var i=function(e){return(0,l.arrayReduce)(n,function(t,n){return e>n&&t++,t},0)}(e[0]);return i&&(e[0]-=i),e}),this.saveSortingState()}}},{key:"setPluginOptions",value:function(){var e=this.hot.getSettings().columnSorting;"object"===(void 0===e?"undefined":i(e))?this.sortEmptyCells=e.sortEmptyCells||!1:this.sortEmptyCells=!1}},{key:"onAfterOnCellMouseDown",value:function(e,t){t.row>-1||(0,s.hasClass)(e.realTarget,"columnSorting")&&(t.col!==this.lastSortedColumn&&(this.hot.sortOrder=!0),this.lastSortedColumn=t.col,this.sortByColumn(t.col))}}]),t}();(0,h.registerPlugin)("columnSorting",g),t.default=g},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hidden=!0,this.hide()}return i(e,null,[{key:"CLASS_EDITOR_CONTAINER",get:function(){return"htCommentsContainer"}},{key:"CLASS_EDITOR",get:function(){return"htComments"}},{key:"CLASS_INPUT",get:function(){return"htCommentTextArea"}},{key:"CLASS_CELL",get:function(){return"htCommentCell"}}]),i(e,[{key:"setPosition",value:function(e,t){this.editorStyle.left=e+"px",this.editorStyle.top=t+"px"}},{key:"setSize",value:function(e,t){if(e&&t){var n=this.getInputElement();n.style.width=e+"px",n.style.height=t+"px"}}},{key:"resetSize",value:function(){var e=this.getInputElement();e.style.width="",e.style.height=""}},{key:"setReadOnlyState",value:function(e){this.getInputElement().readOnly=e}},{key:"show",value:function(){this.editorStyle.display="block",this.hidden=!1}},{key:"hide",value:function(){this.editorStyle.display="none",this.hidden=!0}},{key:"isVisible",value:function(){return"block"===this.editorStyle.display}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=e||"",this.getInputElement().value=e}},{key:"getValue",value:function(){return this.getInputElement().value}},{key:"isFocused",value:function(){return document.activeElement===this.getInputElement()}},{key:"focus",value:function(){this.getInputElement().focus()}},{key:"createEditor",value:function(){var t,n=document.querySelector("."+e.CLASS_EDITOR_CONTAINER),i=void 0;return n||(n=document.createElement("div"),(0,o.addClass)(n,e.CLASS_EDITOR_CONTAINER),document.body.appendChild(n)),i=document.createElement("div"),(0,o.addClass)(i,e.CLASS_EDITOR),t=document.createElement("textarea"),(0,o.addClass)(t,e.CLASS_INPUT),i.appendChild(t),n.appendChild(i),i}},{key:"getInputElement",value:function(){return this.editor.querySelector("."+e.CLASS_INPUT)}},{key:"destroy",value:function(){this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null}}]),e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=n(0),a=n(2),s=n(35),l=p(n(4)),d=n(11),c=n(5),u=p(n(12)),h=p(n(216)),f=n(17);function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(294);var g=new WeakMap,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.editor=null,n.eventManager=null,n.range={},n.mouseDown=!1,n.contextMenuEvent=!1,n.timer=null,n.displayDelay=250,g.set(n,{tempEditorDimensions:{},cellBelowCursor:null}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default),i(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().comments}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.editor||(this.editor=new h.default),this.eventManager||(this.eventManager=new l.default(this)),this.addHook("afterContextMenuDefaultOptions",function(t){return e.addToContextMenu(t)}),this.addHook("afterRenderer",function(t,n,i,o,r,a){return e.onAfterRenderer(t,a)}),this.addHook("afterScrollHorizontally",function(){return e.hide()}),this.addHook("afterScrollVertically",function(){return e.hide()}),this.addHook("afterBeginEditing",function(t){return e.onAfterBeginEditing(t)}),this.registerListeners(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"registerListeners",value:function(){var e=this;this.eventManager.addEventListener(document,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(document,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(document,"mouseup",function(t){return e.onMouseUp(t)}),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",function(t){return e.onEditorBlur(t)}),this.eventManager.addEventListener(this.editor.getInputElement(),"mousedown",function(t){return e.onEditorMouseDown(t)}),this.eventManager.addEventListener(this.editor.getInputElement(),"mouseup",function(t){return e.onEditorMouseUp(t)})}},{key:"setRange",value:function(e){this.range=e}},{key:"clearRange",value:function(){this.range={}}},{key:"targetIsCellWithComment",value:function(e){var t=(0,r.closest)(e.target,"TD","TBODY");return!!(t&&(0,r.hasClass)(t,"htCommentCell")&&(0,r.closest)(t,[this.hot.rootElement]))}},{key:"targetIsCommentTextArea",value:function(e){return this.editor.getInputElement()===e.target}},{key:"setComment",value:function(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var t=this.editor.getValue(),n="";null!=e?n=e:null!=t&&(n=t);var i=this.range.from.row,o=this.range.from.col;this.updateCommentMeta(i,o,m({},"value",n)),this.hot.render()}},{key:"setCommentAtCell",value:function(e,t,n){this.setRange({from:new d.CellCoords(e,t)}),this.setComment(n)}},{key:"removeComment",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.setCellMeta(this.range.from.row,this.range.from.col,"comment",void 0),e&&this.hot.render(),this.hide()}},{key:"removeCommentAtCell",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:new d.CellCoords(e,t)}),this.removeComment(n)}},{key:"getComment",value:function(){var e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,"value")}},{key:"getCommentAtCell",value:function(e,t){return this.getCommentMeta(e,t,"value")}},{key:"show",value:function(){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var e=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.refreshEditor(!0),this.editor.setValue(e.comment?e.comment.value:""),this.editor.hidden&&this.editor.show(),!0}},{key:"showAtCell",value:function(e,t){return this.setRange({from:new d.CellCoords(e,t)}),this.show()}},{key:"hide",value:function(){this.editor.hidden||this.editor.hide()}},{key:"refreshEditor",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&this.editor.isVisible()){var e=(0,r.getScrollableElement)(this.hot.view.wt.wtTable.TABLE),t=this.hot.view.wt.wtTable.getCell(this.range.from),n=this.range.from.row,i=this.range.from.col,o=(0,r.offset)(t),a=this.hot.view.wt.wtTable.getStretchedColumnWidth(i),s=o.top<0?0:o.top,l=o.left;this.hot.view.wt.wtViewport.hasVerticalScroll()&&e!==window&&(s-=this.hot.view.wt.wtOverlays.topOverlay.getScrollPosition()),this.hot.view.wt.wtViewport.hasHorizontalScroll()&&e!==window&&(l-=this.hot.view.wt.wtOverlays.leftOverlay.getScrollPosition());var d=l+a,c=s,u=this.getCommentMeta(n,i,"style"),h=this.getCommentMeta(n,i,"readOnly");u?this.editor.setSize(u.width,u.height):this.editor.resetSize(),this.editor.setReadOnlyState(h),this.editor.setPosition(d,c)}}},{key:"checkSelectionCommentsConsistency",value:function(){var e=this.hot.getSelectedRange();if(!e)return!1;var t=!1,n=e.from;return this.getCommentMeta(n.row,n.col,"value")&&(t=!0),t}},{key:"updateCommentMeta",value:function(e,t,n){var i=this.hot.getCellMeta(e,t).comment,o=void 0;i?(o=(0,a.deepClone)(i),(0,a.deepExtend)(o,n)):o=n,this.hot.setCellMeta(e,t,"comment",o)}},{key:"getCommentMeta",value:function(e,t,n){var i=this.hot.getCellMeta(e,t);if(i.comment)return i.comment[n]}},{key:"onMouseDown",value:function(e){if(this.mouseDown=!0,this.hot.view&&this.hot.view.wt){if(!this.contextMenuEvent&&!this.targetIsCommentTextArea(e)){var t=(0,r.closest)(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.view.wt.wtTable.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}this.contextMenuEvent=!1}}},{key:"onMouseOver",value:function(e){var t=this;if(!this.mouseDown&&!this.editor.isFocused()){var n=g.get(this);n.cellBelowCursor=document.elementFromPoint(e.clientX,e.clientY),(0,s.debounce)(function(){if(!(0,r.hasClass)(e.target,"wtBorder")&&n.cellBelowCursor===e.target&&t.editor)if(t.targetIsCellWithComment(e)){var i=t.hot.view.wt.wtTable.getCoords(e.target),o={from:new d.CellCoords(i.row,i.col)};t.setRange(o),t.show()}else!(0,r.isChildOf)(e.target,document)||t.targetIsCommentTextArea(e)||t.editor.isFocused()||t.hide()},this.displayDelay)()}}},{key:"onMouseUp",value:function(e){this.mouseDown=!1}},{key:"onAfterRenderer",value:function(e,t){t.comment&&t.comment.value&&(0,r.addClass)(e,t.commentedCellClassName)}},{key:"onEditorBlur",value:function(e){this.setComment()}},{key:"onEditorMouseDown",value:function(e){g.get(this).tempEditorDimensions={width:(0,r.outerWidth)(e.target),height:(0,r.outerHeight)(e.target)}}},{key:"onEditorMouseUp",value:function(e){var t=g.get(this),n=(0,r.outerWidth)(e.target),i=(0,r.outerHeight)(e.target);n===t.tempEditorDimensions.width+1&&i===t.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,m({},"style",{width:n,height:i}))}},{key:"onContextMenuAddComment",value:function(){var e=this,t=this.hot.getSelectedRange();this.contextMenuEvent=!0,this.setRange({from:t.from}),this.show(),setTimeout(function(){e.hot&&(e.hot.deselectCell(),e.editor.focus())},10)}},{key:"onContextMenuRemoveComment",value:function(e){this.contextMenuEvent=!0;for(var t=e.start.row;t<=e.end.row;t++)for(var n=e.start.col;n<=e.end.col;n++)this.removeCommentAtCell(t,n,!1);this.hot.render()}},{key:"onContextMenuMakeReadOnly",value:function(e){this.contextMenuEvent=!0;for(var t=e.start.row;t<=e.end.row;t++)for(var n=e.start.col;n<=e.end.col;n++){var i=!!this.getCommentMeta(t,n,"readOnly");this.updateCommentMeta(t,n,m({},"readOnly",!i))}}},{key:"addToContextMenu",value:function(e){var t=this;e.items.push((0,c.getPlugin)(this.hot,"contextMenu").constructor.SEPARATOR,{key:"commentsAddEdit",name:function(){return t.checkSelectionCommentsConsistency()?"Edit comment":"Add comment"},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!(this.getSelected()&&!this.selection.selectedHeader.corner)}},{key:"commentsRemove",name:function(){return"Delete comment"},callback:function(e,n){return t.onContextMenuRemoveComment(n)},disabled:function(){return t.hot.selection.selectedHeader.corner}},{key:"commentsReadOnly",name:function(){var e=this,t="Read only comment";return(0,f.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var i=e.getCellMeta(t,n).comment;if(i&&(i=i.readOnly),i)return!0})&&(t=(0,f.markLabelAsSelected)(t)),t},callback:function(e,n){return t.onContextMenuMakeReadOnly(n)},disabled:function(){return t.hot.selection.selectedHeader.corner||!t.checkSelectionCommentsConsistency()}})}},{key:"onAfterBeginEditing",value:function(e,t){this.hide()}},{key:"destroy",value:function(){this.editor&&this.editor.destroy(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();(0,c.registerPlugin)("comments",y),t.default=y},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(1),r=n(2),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.commands={},this.commonCallback=null}return i(e,[{key:"registerCommand",value:function(e,t){this.commands[e]=t}},{key:"setCommonCallback",value:function(e){this.commonCallback=e}},{key:"execute",value:function(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var s=e.split(":");e=s[0];var l=2===s.length?s[1]:null,d=this.commands[e];if(!d)throw new Error("Menu command '"+e+"' not exists.");if(l&&d.submenu&&(d=function(e,t){var n=void 0;return(0,o.arrayEach)(t,function(t){var i=t.key?t.key.split(":"):null;if(Array.isArray(i)&&i[1]===e)return n=t,!1}),n}(l,d.submenu.items)),!0!==d.disabled&&("function"!=typeof d.disabled||!0!==d.disabled.call(this.hot))&&!(0,r.hasOwnProperty)(d,"submenu")){var c=[];"function"==typeof d.callback&&c.push(d.callback),"function"==typeof this.commonCallback&&c.push(this.commonCallback),i.unshift(s.join(":")),(0,o.arrayEach)(c,function(e){return e.apply(t.hot,i)})}}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var i=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=g(n(12)),a=g(n(8)),s=n(1),l=g(n(218)),d=g(n(4)),c=g(n(221)),u=g(n(222)),h=n(5),f=n(7),p=n(0),m=n(50);function g(e){return e&&e.__esModule?e:{default:e}}n(295),a.default.getSingleton().register("afterContextMenuDefaultOptions"),a.default.getSingleton().register("afterContextMenuShow"),a.default.getSingleton().register("afterContextMenuHide"),a.default.getSingleton().register("afterContextMenuExecute");var y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventManager=new d.default(n),n.commandExecutor=new l.default(n.hot),n.itemsFactory=null,n.menu=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),o(t,null,[{key:"DEFAULT_ITEMS",get:function(){return[m.ROW_ABOVE,m.ROW_BELOW,m.SEPARATOR,m.COLUMN_LEFT,m.COLUMN_RIGHT,m.SEPARATOR,m.REMOVE_ROW,m.REMOVE_COLUMN,m.SEPARATOR,m.UNDO,m.REDO,m.SEPARATOR,m.READ_ONLY,m.SEPARATOR,m.ALIGNMENT]}}]),o(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().contextMenu}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.itemsFactory=new c.default(this.hot,t.DEFAULT_ITEMS);var n=this.hot.getSettings().contextMenu,o={items:this.itemsFactory.getItems(n)};this.registerEvents(),"function"==typeof n.callback&&this.commandExecutor.setCommonCallback(n.callback),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this),this.callOnPluginsReady(function(){e.hot.runHooks("afterContextMenuDefaultOptions",o),e.itemsFactory.setPredefinedItems(o.items);var t=e.itemsFactory.getItems(n);e.menu=new u.default(e.hot,{className:"htContextMenu",keepInViewport:!0}),e.hot.runHooks("beforeContextMenuSetItems",t),e.menu.setMenuItems(t),e.menu.addLocalHook("afterOpen",function(){return e.onMenuAfterOpen()}),e.menu.addLocalHook("afterClose",function(){return e.onMenuAfterClose()}),e.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.executeCommand.apply(e,n)}),(0,s.arrayEach)(t,function(t){return e.commandExecutor.registerCommand(t.key,t)})})}}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"contextmenu",function(t){return e.onContextMenu(t)})}},{key:"open",value:function(e){this.menu&&(this.menu.open(),this.menu.setPosition({top:parseInt((0,f.pageY)(e),10)-(0,p.getWindowScrollTop)(),left:parseInt((0,f.pageX)(e),10)-(0,p.getWindowScrollLeft)()}),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv)}},{key:"close",value:function(){this.menu&&this.menu.close()}},{key:"executeCommand",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.commandExecutor.execute.apply(this.commandExecutor,t)}},{key:"onContextMenu",value:function(e){var t=this.hot.getSettings(),n=t.rowHeaders,i=t.colHeaders,o=e.realTarget;this.close(),(0,p.hasClass)(o,"handsontableInput")||(e.preventDefault(),(0,f.stopPropagation)(e),(n||i||function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(o)||(0,p.hasClass)(o,"current")&&(0,p.hasClass)(o,"wtBorder"))&&this.open(e))}},{key:"onMenuAfterOpen",value:function(){this.hot.runHooks("afterContextMenuShow",this)}},{key:"onMenuAfterClose",value:function(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}},{key:"destroy",value:function(){this.close(),this.menu&&this.menu.destroy(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();y.SEPARATOR={name:m.SEPARATOR},(0,h.registerPlugin)("contextMenu",y),t.default=y},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),r=n(7),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=(0,o.getWindowScrollTop)(),i=(0,o.getWindowScrollLeft)(),a=void 0,s=void 0,l=void 0,d=void 0,c=void 0,u=void 0;this.type=this.getSourceType(t),"literal"===this.type?(a=parseInt(t.top,10),l=parseInt(t.left,10),c=t.height||0,u=t.width||0,s=a,d=l,a+=n,l+=i):"event"===this.type&&(a=parseInt((0,r.pageY)(t),10),l=parseInt((0,r.pageX)(t),10),c=t.target.clientHeight,u=t.target.clientWidth,s=a-n,d=l-i),this.top=a,this.topRelative=s,this.left=l,this.leftRelative=d,this.scrollTop=n,this.scrollLeft=i,this.cellHeight=c,this.cellWidth=u}return i(e,[{key:"getSourceType",value:function(e){var t="literal";return e instanceof Event&&(t="event"),t}},{key:"fitsAbove",value:function(e){return this.topRelative>=e.offsetHeight}},{key:"fitsBelow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.innerHeight;return this.topRelative+e.offsetHeight<=t}},{key:"fitsOnRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}},{key:"fitsOnLeft",value:function(e){return this.leftRelative>=e.offsetWidth}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(2),r=n(1),a=n(50),s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.predefinedItems=(0,a.predefinedItems)(),this.defaultOrderPattern=n}return i(e,[{key:"setPredefinedItems",value:function(e){var t=this,n={};this.defaultOrderPattern.length=0,(0,o.objectEach)(e,function(e,i){var o="";e.name===a.SEPARATOR?(n[a.SEPARATOR]=e,o=a.SEPARATOR):isNaN(parseInt(i,10))?(e.key=void 0===e.key?i:e.key,n[i]=e,o=e.key):(n[e.key]=e,o=e.key),t.defaultOrderPattern.push(o)}),this.predefinedItems=n}},{key:"getItems",value:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[];return e&&e.items?e=e.items:Array.isArray(e)||(e=t),(0,o.isObject)(e)?(0,o.objectEach)(e,function(e,t){var r=n["string"==typeof e?e:t];r||(r=e),(0,o.isObject)(e)?(0,o.extend)(r,e):"string"==typeof r&&(r={name:r}),void 0===r.key&&(r.key=t),i.push(r)}):(0,r.arrayEach)(e,function(e,t){var r=n[e];!r&&a.ITEMS.indexOf(e)>=0||(r||(r={name:e,key:""+t}),(0,o.isObject)(e)&&(0,o.extend)(r,e),void 0===r.key&&(r.key=t),i.push(r))}),i}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}]),e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=g(n(64)),r=n(0),a=n(1),s=g(n(220)),l=g(n(4)),d=n(2),c=n(35),u=n(17),h=n(16),f=g(n(150)),p=n(50),m=n(7);function g(e){return e&&e.__esModule?e:{default:e}}var y=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hot=t,this.options=n||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1},this.eventManager=new l.default(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.keyEvent=!1,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()}return i(e,[{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){return e.onDocumentMouseDown(t)})}},{key:"setMenuItems",value:function(e){this.menuItems=e}},{key:"setOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.offset[e]=t}},{key:"isSubMenu",value:function(){return null!==this.parentMenu}},{key:"open",value:function(){var e=this;this.container.removeAttribute("style"),this.container.style.display="block";var t=(0,c.debounce)(function(t){return e.openSubMenu(t)},300),n=(0,a.arrayFilter)(this.menuItems,function(t){return(0,u.isItemHidden)(t,e.hot)}),i={data:n=(0,u.filterSeparators)(n,p.SEPARATOR),colHeaders:!1,colWidths:[200],autoRowSize:!1,readOnly:!0,copyPaste:!1,columns:[{data:"name",renderer:function(t,n,i,o,r,a){return e.menuItemRenderer(t,n,i,o,r,a)}}],renderAllRows:!0,fragmentSelection:"cell",disableVisualSelection:"area",beforeKeyDown:function(t){return e.onBeforeKeyDown(t)},afterOnCellMouseOver:function(n,i,o){e.isAllSubMenusClosed()?t(i.row):e.openSubMenu(i.row)},rowHeights:function(e){return n[e].name===p.SEPARATOR?1:23}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new o.default(this.container,i),this.hotMenu.addHook("afterInit",function(){return e.onAfterInit()}),this.hotMenu.addHook("afterSelection",function(t,n,i,o,r){return e.onAfterSelection(t,n,i,o,r)}),this.hotMenu.init(),this.hotMenu.listen(),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isOpened()&&(e&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))}},{key:"openSubMenu",value:function(t){if(!this.hotMenu)return!1;var n=this.hotMenu.getCell(t,0);if(this.closeAllSubMenus(),!n||!(0,u.hasSubMenu)(n))return!1;var i=this.hotMenu.getSourceDataAtRow(t),o=new e(this.hot,{parent:this,name:i.name,className:this.options.className,keepInViewport:!0});return o.setMenuItems(i.submenu.items),o.open(),o.setPosition(n.getBoundingClientRect()),this.hotSubMenus[i.key]=o,o}},{key:"closeSubMenu",value:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])}},{key:"closeAllSubMenus",value:function(){var e=this;(0,a.arrayEach)(this.hotMenu.getData(),function(t,n){return e.closeSubMenu(n)})}},{key:"isAllSubMenusClosed",value:function(){return 0===Object.keys(this.hotSubMenus).length}},{key:"destroy",value:function(){this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy()}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hotMenu.getSelected()){var t=this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelected()[0]);if(this.runLocalHooks("select",t,e),!1!==t.isCommand&&t.name!==p.SEPARATOR){var n=this.hot.getSelectedRange(),i=n?(0,u.normalizeSelection)(n):{},o=!0;(!0===t.disabled||"function"==typeof t.disabled&&!0===t.disabled.call(this.hot)||t.submenu)&&(o=!1),this.runLocalHooks("executeCommand",t.key,i,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,i,e),o&&this.close(!0)}}}},{key:"setPosition",value:function(e){var t=new s.default(e);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),t.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(t):this.setPositionOnLeftOfCursor(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{key:"setPositionAboveCursor",value:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top=t+"px"}},{key:"setPositionBelowCursor",value:function(e){var t=this.offset.below+e.top;this.isSubMenu()&&(t=e.top-1),this.container.style.top=t+"px"}},{key:"setPositionOnRightOfCursor",value:function(e){var t;t=this.isSubMenu()?1+e.left+e.cellWidth:this.offset.right+1+e.left,this.container.style.left=t+"px"}},{key:"setPositionOnLeftOfCursor",value:function(e){var t=this.offset.left+e.left-this.container.offsetWidth+(0,r.getScrollbarWidth)()+4;this.container.style.left=t+"px"}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);(0,u.isSeparator)(e)||(0,u.isDisabled)(e)||(0,u.isSelectionDisabled)(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)}},{key:"selectLastCell",value:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);(0,u.isSeparator)(t)||(0,u.isDisabled)(t)||(0,u.isSelectionDisabled)(t)?this.selectPrevCell(e,0):this.hotMenu.selectCell(e,0)}},{key:"selectNextCell",value:function(e,t){var n=e+1,i=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;i&&((0,u.isSeparator)(i)||(0,u.isDisabled)(i)||(0,u.isSelectionDisabled)(i)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"selectPrevCell",value:function(e,t){var n=e-1,i=n>=0?this.hotMenu.getCell(n,t):null;i&&((0,u.isSeparator)(i)||(0,u.isDisabled)(i)||(0,u.isSelectionDisabled)(i)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,i,o,a){var s=this,l=e.getSourceDataAtRow(n),c=document.createElement("div"),u=function(e){return e.disableSelection};"function"==typeof a&&(a=a.call(this.hot)),(0,r.empty)(t),(0,r.addClass)(c,"htItemWrapper"),t.appendChild(c),function(e){return new RegExp(p.SEPARATOR,"i").test(e.name)}(l)?(0,r.addClass)(t,"htSeparator"):"function"==typeof l.renderer?((0,r.addClass)(t,"htCustomMenuRenderer"),t.appendChild(l.renderer(e,c,n,i,o,a))):(0,r.fastInnerHTML)(c,a),function(e){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(s.hot)}(l)?((0,r.addClass)(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):u(l)?((0,r.addClass)(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):function(e){return(0,d.hasOwnProperty)(e,"submenu")}(l)?((0,r.addClass)(t,"htSubmenu"),u(l)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,i,void 0,void 0,!1,!1)})):((0,r.removeClass)(t,"htSubmenu"),(0,r.removeClass)(t,"htDisabled"),u(l)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,i,void 0,void 0,!1,!1)}))}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(e=e.replace(/[^A-z0-9]/g,"_"),e=this.options.className+"Sub_"+e);var t=void 0;return(t=e?document.querySelector("."+this.options.className+"."+e):document.querySelector("."+this.options.className))||(t=document.createElement("div"),(0,r.addClass)(t,"htMenu "+this.options.className),e&&(0,r.addClass)(t,e),document.getElementsByTagName("body")[0].appendChild(t)),t}},{key:"blockMainTableCallbacks",value:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)}},{key:"releaseMainTableCallbacks",value:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)}},{key:"onBeforeKeyDown",value:function(e){var t=this.hotMenu.getSelected(),n=!1;switch(this.keyEvent=!0,e.keyCode){case h.KEY_CODES.ESCAPE:this.close(),n=!0;break;case h.KEY_CODES.ENTER:t&&(this.hotMenu.getSourceDataAtRow(t[0]).submenu?n=!0:(this.executeCommand(e),this.close(!0)));break;case h.KEY_CODES.ARROW_DOWN:t?this.selectNextCell(t[0],t[1]):this.selectFirstCell(),n=!0;break;case h.KEY_CODES.ARROW_UP:t?this.selectPrevCell(t[0],t[1]):this.selectLastCell(),n=!0;break;case h.KEY_CODES.ARROW_RIGHT:if(t){var i=this.openSubMenu(t[0]);i&&i.selectFirstCell()}n=!0;break;case h.KEY_CODES.ARROW_LEFT:t&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),n=!0)}n&&(e.preventDefault(),(0,m.stopImmediatePropagation)(e)),this.keyEvent=!1}},{key:"onAfterInit",value:function(){var e=this.hotMenu.getSettings().data,t=this.hotMenu.view.wt.wtTable.hider.style,n=this.hotMenu.view.wt.wtTable.holder.style,i=parseInt(t.width,10),o=(0,a.arrayReduce)(e,function(e,t){return e+(t.name===p.SEPARATOR?1:26)},0);n.width=i+22+"px",n.height=o+4+"px",t.height=n.height}},{key:"onAfterSelection",value:function(e,t,n,i,o){!1===this.keyEvent&&(o.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.container&&(0,r.isChildOf)(e.target,this.container)&&this.executeCommand(e),this.options.standalone&&this.hotMenu&&!(0,r.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):(this.isAllSubMenusClosed()||this.isSubMenu())&&!(0,r.isChildOf)(e.target,".htMenu")&&(0,r.isChildOf)(e.target,document)&&this.close(!0))}}]),e}();(0,d.mixin)(y,f.default),t.default=y},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:r,name:"Alignment",disabled:function(){return!(this.getSelectedRange()&&!this.selection.selectedHeader.corner)},submenu:{items:[{key:r+":left",name:function(){var e=this,t="Left";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var i=e.getCellMeta(t,n).className;if(i&&-1!==i.indexOf("htLeft"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htLeft"),(0,i.align)(t,"horizontal","htLeft",function(t,n){return e.getCellMeta(t,n)},function(t,n,i,o){return e.setCellMeta(t,n,i,o)}),this.render()},disabled:!1},{key:r+":center",name:function(){var e=this,t="Center";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var i=e.getCellMeta(t,n).className;if(i&&-1!==i.indexOf("htCenter"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htCenter"),(0,i.align)(t,"horizontal","htCenter",function(t,n){return e.getCellMeta(t,n)},function(t,n,i,o){return e.setCellMeta(t,n,i,o)}),this.render()},disabled:!1},{key:r+":right",name:function(){var e=this,t="Right";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var i=e.getCellMeta(t,n).className;if(i&&-1!==i.indexOf("htRight"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htRight"),(0,i.align)(t,"horizontal","htRight",function(t,n){return e.getCellMeta(t,n)},function(t,n,i,o){return e.setCellMeta(t,n,i,o)}),this.render()},disabled:!1},{key:r+":justify",name:function(){var e=this,t="Justify";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var i=e.getCellMeta(t,n).className;if(i&&-1!==i.indexOf("htJustify"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"horizontal","htJustify"),(0,i.align)(t,"horizontal","htJustify",function(t,n){return e.getCellMeta(t,n)},function(t,n,i,o){return e.setCellMeta(t,n,i,o)}),this.render()},disabled:!1},{name:o.KEY},{key:r+":top",name:function(){var e=this,t="Top";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var i=e.getCellMeta(t,n).className;if(i&&-1!==i.indexOf("htTop"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htTop"),(0,i.align)(t,"vertical","htTop",function(t,n){return e.getCellMeta(t,n)},function(t,n,i,o){return e.setCellMeta(t,n,i,o)}),this.render()},disabled:!1},{key:r+":middle",name:function(){var e=this,t="Middle";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var i=e.getCellMeta(t,n).className;if(i&&-1!==i.indexOf("htMiddle"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htMiddle"),(0,i.align)(t,"vertical","htMiddle",function(t,n){return e.getCellMeta(t,n)},function(t,n,i,o){return e.setCellMeta(t,n,i,o)}),this.render()},disabled:!1},{key:r+":bottom",name:function(){var e=this,t="Bottom";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){var i=e.getCellMeta(t,n).className;if(i&&-1!==i.indexOf("htBottom"))return!0})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.getAlignmentClasses)(t,function(t,n){return e.getCellMeta(t,n).className});this.runHooks("beforeCellAlignment",n,t,"vertical","htBottom"),(0,i.align)(t,"vertical","htBottom",function(t,n){return e.getCellMeta(t,n)},function(t,n,i,o){return e.setCellMeta(t,n,i,o)}),this.render()},disabled:!1}]}}};var i=n(17),o=n(70),r=t.KEY="alignment"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:o,name:"Clear column",callback:function(e,t){var n=t.start.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t.start.row,t.end.row),n,"ContextMenu.clearColumn")},disabled:function(){var e=(0,i.getValidSelection)(this);if(!e)return!0;var t=[e[0],0,e[0],this.countCols()-1].join(",")==e.join(",");return e[1]<0||this.countCols()>=this.getSettings().maxCols||t}}};var i=n(17),o=t.KEY="clear_column"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:o,name:"Insert column on the left",callback:function(e,t){this.alter("insert_col",t.start.col,1,"ContextMenu.columnLeft")},disabled:function(){var e=(0,i.getValidSelection)(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1].join(",")==e.join(","),n=1===this.countCols();return e[1]<0||this.countCols()>=this.getSettings().maxCols||!n&&t},hidden:function(){return!this.getSettings().allowInsertColumn}}};var i=n(17),o=t.KEY="col_left"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:o,name:"Insert column on the right",callback:function(e,t){this.alter("insert_col",t.end.col+1,1,"ContextMenu.columnRight")},disabled:function(){var e=(0,i.getValidSelection)(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1].join(",")==e.join(","),n=1===this.countCols();return e[1]<0||this.countCols()>=this.getSettings().maxCols||!n&&t},hidden:function(){return!this.getSettings().allowInsertColumn}}};var i=n(17),o=t.KEY="col_right"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:o,name:function(){var e=this,t="Read only";return(0,i.checkSelectionConsistency)(this.getSelectedRange(),function(t,n){return e.getCellMeta(t,n).readOnly})&&(t=(0,i.markLabelAsSelected)(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=(0,i.checkSelectionConsistency)(t,function(t,n){return e.getCellMeta(t,n).readOnly});t.forAll(function(t,i){e.setCellMeta(t,i,"readOnly",!n)}),this.render()},disabled:function(){return!(this.getSelectedRange()&&!this.selection.selectedHeader.corner)}}};var i=n(17),o=t.KEY="make_read_only"},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:i,name:"Redo",callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}}};var i=t.KEY="redo"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:o,name:"Remove column",callback:function(e,t){var n=t.end.col-t.start.col+1;this.alter("remove_col",t.start.col,n,"ContextMenu.removeColumn")},disabled:function(){var e=(0,i.getValidSelection)(this),t=this.countCols();return!e||this.selection.selectedHeader.rows||this.selection.selectedHeader.corner||!this.isColumnModificationAllowed()||!t},hidden:function(){return!this.getSettings().allowRemoveColumn}}};var i=n(17),o=t.KEY="remove_col"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:o,name:"Remove row",callback:function(e,t){var n=t.end.row-t.start.row+1;this.alter("remove_row",t.start.row,n,"ContextMenu.removeRow")},disabled:function(){var e=(0,i.getValidSelection)(this),t=this.countRows();return!e||this.selection.selectedHeader.cols||this.selection.selectedHeader.corner||!t},hidden:function(){return!this.getSettings().allowRemoveRow}}};var i=n(17),o=t.KEY="remove_row"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:o,name:"Insert row above",callback:function(e,t){this.alter("insert_row",t.start.row,1,"ContextMenu.rowAbove")},disabled:function(){return!(0,i.getValidSelection)(this)||this.selection.selectedHeader.cols||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}};var i=n(17),o=t.KEY="row_above"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{key:o,name:"Insert row below",callback:function(e,t){this.alter("insert_row",t.end.row+1,1,"ContextMenu.rowBelow")},disabled:function(){return!(0,i.getValidSelection)(this)||this.selection.selectedHeader.cols||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}};var i=n(17),o=t.KEY="row_below"},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{key:i,name:"Undo",callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}}};var i=t.KEY="undo"},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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=f(n(300)),s=f(n(12)),l=n(0),d=n(1),c=f(n(4)),u=n(5),h=n(50);function f(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventManager=new c.default(n),n.swfPath=null,n.outsideClickDeselectsCache=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),o(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().contextMenuCopyPaste}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){"object"===i(this.hot.getSettings().contextMenuCopyPaste)&&(this.swfPath=this.hot.getSettings().contextMenuCopyPaste.swfPath),a.default;try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){navigator.mimeTypes["application/x-shockwave-flash"]}this.swfPath&&a.default.config({swfPath:this.swfPath}),this.hot.addHook("afterContextMenuShow",function(){return e.onAfterContextMenuShow()}),this.hot.addHook("afterContextMenuDefaultOptions",function(t){return e.onAfterContextMenuDefaultOptions(t)}),this.registerEvents(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document,"mouseenter",function(){return e.removeCurrentClass()}),this.eventManager.addEventListener(document,"mouseleave",function(){return e.removeZeroClipboardClass()})}},{key:"getCopyValue",value:function(){return this.hot.copyPaste.setCopyableText(),this.hot.copyPaste.copyPasteInstance.triggerCopy(),this.hot.copyPaste.copyPasteInstance.elTextarea.value}},{key:"onAfterContextMenuDefaultOptions",value:function(e){e.items.unshift({key:"copy",name:"Copy",disabled:function(){return this.selection.selectedHeader.corner}},{key:"paste",name:"Paste",callback:function(){this.copyPaste.triggerPaste()},disabled:function(){return this.selection.selectedHeader.corner}},{name:h.SEPARATOR})}},{key:"onAfterContextMenuShow",value:function(){var e=this,t=this.hot.getPlugin("contextMenu"),n=t.menu.hotMenu.getSourceData();(0,d.arrayEach)(n,function(n,i){if("copy"===n.key){var o=new a.default(t.menu.hotMenu.getCell(i,0));return o.off(),o.on("copy",function(t){t.clipboardData.setData("text/plain",e.getCopyValue()),e.hot.getSettings().outsideClickDeselects=e.outsideClickDeselectsCache}),!1}})}},{key:"removeCurrentClass",value:function(){var e=this.hot.getPlugin("contextMenu");if(e.enabled){if(e.menu.isOpened()){var t=e.menu.hotMenu.rootElement.querySelector("td.current");t&&(0,l.removeClass)(t,"current")}this.outsideClickDeselectsCache=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1}}},{key:"removeZeroClipboardClass",value:function(){var e=this.hot.getPlugin("contextMenu");if(e.enabled){if(e.menu.isOpened()){var t=e.menu.hotMenu.rootElement.querySelector("td.zeroclipboard-is-hover");t&&(0,l.removeClass)(t,"zeroclipboard-is-hover")}this.hot.getSettings().outsideClickDeselects=this.outsideClickDeselectsCache}}}]),t}();(0,u.registerPlugin)("contextMenuCopyPaste",p),t.default=p},function(e,t,n){"use strict";t.__esModule=!0;var i=h(n(184)),o=h(n(132)),r=h(n(8)),a=n(16),s=n(1),l=n(6),d=n(7),c=n(0),u=n(11);function h(e){return e&&e.__esModule?e:{default:e}}function f(e){var t=this;function n(){e.isListening()}function r(){if(e.isListening()){var n=t.getRangedData(t.copyableRanges);e.getSettings().fragmentSelection&&o.default.stringify(n)!=(0,c.getSelectionText)()||(e.runHooks("beforeCopy",n,t.copyableRanges)?(e.copyPaste.copyPasteInstance.copyable(o.default.stringify(n)),e.runHooks("afterCopy",n,t.copyableRanges)):e.copyPaste.copyPasteInstance.copyable(""))}}function h(n){var i,r,a,l,d,c,h,f,p,m;if(e.isListening()&&e.selection.isSelected()){i=n,r=o.default.parse(i),a=e.getSelected(),l=new u.CellCoords(a[0],a[1]),d=new u.CellCoords(a[2],a[3]),h=(c=new u.CellRange(l,l,d)).getTopLeftCorner(),f=c.getBottomRightCorner(),p=h,m=new u.CellCoords(Math.max(f.row,r.length-1+h.row),Math.max(f.col,r[0].length-1+h.col));var g=d.row-l.row>=r.length-1,y=d.col-l.col>=r[0].length-1;e.addHookOnce("afterChange",function(t,n){var i=t?t.length:0;if(i){var o={row:0,col:0},r=-1;(0,s.arrayEach)(t,function(e,n){var a=i>n+1?t[n+1]:null;a&&(g||(o.row+=Math.max(a[0]-e[0]-1,0)),!y&&e[1]>r&&(r=e[1],o.col+=Math.max(a[1]-e[1]-1,0)))}),e.selectCell(p.row,p.col,m.row+o.row,m.col+o.col)}}),e.runHooks("beforePaste",r,t.copyableRanges)&&(e.populateFromArray(p.row,p.col,r,m.row,m.col,"CopyPaste.paste",e.getSettings().pasteMode),e.runHooks("afterPaste",r,t.copyableRanges))}}function f(n){if(e.getSelected()&&!(e.getActiveEditor()&&e.getActiveEditor().isOpened()||(0,d.isImmediatePropagationStopped)(n))){if((0,a.isCtrlKey)(n.keyCode)){if(e.getSettings().fragmentSelection&&(0,c.getSelectionText)())return;return t.setCopyableText(),void(0,d.stopImmediatePropagation)(n)}var i;(n.ctrlKey||n.metaKey)&&!n.altKey&&(n.keyCode==a.KEY_CODES.A&&e._registerTimeout(setTimeout(t.setCopyableText.bind(t),0)),n.keyCode==a.KEY_CODES.X&&(i=t.getRangedData(t.copyableRanges),e.getSettings().fragmentSelection&&o.default.stringify(i)!=(0,c.getSelectionText)()||(e.runHooks("beforeCut",i,t.copyableRanges)?(e.copyPaste.copyPasteInstance.copyable(o.default.stringify(i)),e.selection.empty(),e.runHooks("afterCut",i,t.copyableRanges)):e.copyPaste.copyPasteInstance.copyable(""))),n.keyCode==a.KEY_CODES.C&&r())}}this.copyPasteInstance=(0,i.default)(),this.copyPasteInstance.onCut(n),this.copyPasteInstance.triggerCopy=r,this.copyPasteInstance.onPaste(h),this.onPaste=h,this.copyableRanges=[],e.addHook("beforeKeyDown",f),this.destroy=function(){this.copyPasteInstance&&(this.copyPasteInstance.removeCallback(n),this.copyPasteInstance.removeCallback(h),this.copyPasteInstance.destroy(),this.copyPasteInstance=null),e.removeHook("beforeKeyDown",f)},e.addHook("afterDestroy",this.destroy.bind(this)),this.triggerPaste=this.copyPasteInstance.triggerPaste.bind(this.copyPasteInstance),this.triggerCut=this.copyPasteInstance.triggerCut.bind(this.copyPasteInstance),this.setCopyableText=function(){var t=e.getSettings(),n=t.copyRowsLimit,i=t.copyColsLimit,o=e.getSelectedRange(),r=o.getTopLeftCorner(),a=o.getBottomRightCorner(),s=r.row,l=r.col,d=a.row,c=a.col,u=Math.min(d,s+n-1),h=Math.min(c,l+i-1);this.copyableRanges.length=0,this.copyableRanges.push({startRow:s,startCol:l,endRow:u,endCol:h}),this.copyableRanges=e.runHooks("modifyCopyableRange",this.copyableRanges);var f=this.getRangedCopyableData(this.copyableRanges);e.copyPaste.copyPasteInstance.copyable(f),d===u&&c===h||e.runHooks("afterCopyLimit",d-s+1,c-l+1,n,i)},this.getRangedCopyableData=function(t){var n=[],i=[],r=[];return(0,s.arrayEach)(t,function(e){(0,l.rangeEach)(e.startRow,e.endRow,function(e){-1===i.indexOf(e)&&i.push(e)}),(0,l.rangeEach)(e.startCol,e.endCol,function(e){-1===r.indexOf(e)&&r.push(e)})}),(0,s.arrayEach)(i,function(t){var i=[];(0,s.arrayEach)(r,function(n){i.push(e.getCopyableData(t,n))}),n.push(i)}),o.default.stringify(n)},this.getRangedData=function(t){var n=[],i=[],o=[];return(0,s.arrayEach)(t,function(e){(0,l.rangeEach)(e.startRow,e.endRow,function(e){-1===i.indexOf(e)&&i.push(e)}),(0,l.rangeEach)(e.startCol,e.endCol,function(e){-1===o.indexOf(e)&&o.push(e)})}),(0,s.arrayEach)(i,function(t){var i=[];(0,s.arrayEach)(o,function(n){i.push(e.getCopyableData(t,n))}),n.push(i)}),n}}function p(){var e=!1!==this.getSettings().copyPaste;e&&!this.copyPaste?this.copyPaste=new f(this):!e&&this.copyPaste&&(this.copyPaste.destroy(),this.copyPaste=null)}r.default.getSingleton().register("afterCopyLimit"),r.default.getSingleton().register("modifyCopyableRange"),r.default.getSingleton().register("beforeCut"),r.default.getSingleton().register("afterCut"),r.default.getSingleton().register("beforePaste"),r.default.getSingleton().register("afterPaste"),r.default.getSingleton().register("beforeCopy"),r.default.getSingleton().register("afterCopy"),r.default.getSingleton().add("afterInit",p),r.default.getSingleton().add("afterUpdateSettings",p),t.default=f},function(e,t,n){"use strict";var i,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(i=n(8))&&i.__esModule?i:{default:i},s=(n(5),n(2)),l=n(11),d=function(e){var t={row:e.row,col:e.col},n=new l.Selection(e,new l.CellRange(t,t,t)),i=function(e){for(var t=0;t<o.view.wt.selections.length;t++)if(o.view.wt.selections[t].settings.className==e)return t;return-1}(e.className);i>=0?o.view.wt.selections[i]=n:o.view.wt.selections.push(n)},c=function(e,t,n){var i=f(e,t);i=p(i,n),this.setCellMeta(e,t,"borders",i),d(i)},u=function(e){for(var t=e.range,n=t.from.row;n<=t.to.row;n++)for(var i=t.from.col;i<=t.to.col;i++){var o=f(n,i),r=0;n==t.from.row&&(r++,(0,s.hasOwnProperty)(e,"top")&&(o.top=e.top)),n==t.to.row&&(r++,(0,s.hasOwnProperty)(e,"bottom")&&(o.bottom=e.bottom)),i==t.from.col&&(r++,(0,s.hasOwnProperty)(e,"left")&&(o.left=e.left)),i==t.to.col&&(r++,(0,s.hasOwnProperty)(e,"right")&&(o.right=e.right)),r>0&&(this.setCellMeta(n,i,"borders",o),d(o))}},h=function(e,t){return"border_row"+e+"col"+t},f=function(e,t){return{className:h(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},right:{hide:!0},bottom:{hide:!0},left:{hide:!0}}},p=function(e,t){return(0,s.hasOwnProperty)(t,"border")&&(e.border=t.border),(0,s.hasOwnProperty)(t,"top")&&(e.top=t.top),(0,s.hasOwnProperty)(t,"right")&&(e.right=t.right),(0,s.hasOwnProperty)(t,"bottom")&&(e.bottom=t.bottom),(0,s.hasOwnProperty)(t,"left")&&(e.left=t.left),e},m=function(e){for(var t=document.querySelectorAll("."+e),n=0;n<t.length;n++)if(t[n]&&"TD"!=t[n].nodeName){var i=t[n].parentNode;i.parentNode&&i.parentNode.removeChild(i)}},g=function(e,t){var n=h(e,t);m(n),this.removeCellMeta(e,t,"borders")},y=function(e,t,n,i){var o=this.getCellMeta(e,t).borders;o&&void 0!=o.border||(o=f(e,t)),o[n]=i?{hide:!0}:{width:1,color:"#000"},this.setCellMeta(e,t,"borders",o);var r=h(e,t);m(r),d(o),this.render()},v=function(e,t,n){if(e.from.row==e.to.row&&e.from.col==e.to.col)"noBorders"==t?g.call(this,e.from.row,e.from.col):y.call(this,e.from.row,e.from.col,t,n);else switch(t){case"noBorders":for(var i=e.from.col;i<=e.to.col;i++)for(var o=e.from.row;o<=e.to.row;o++)g.call(this,o,i);break;case"top":for(var r=e.from.col;r<=e.to.col;r++)y.call(this,e.from.row,r,t,n);break;case"right":for(var a=e.from.row;a<=e.to.row;a++)y.call(this,a,e.to.col,t);break;case"bottom":for(var s=e.from.col;s<=e.to.col;s++)y.call(this,e.to.row,s,t);break;case"left":for(var l=e.from.row;l<=e.to.row;l++)y.call(this,l,e.from.col,t)}},A=function(e,t){var n=!1;return e.getSelectedRange().forAll(function(i,o){var r=e.getCellMeta(i,o).borders;if(r){if(!t)return n=!0,!1;if(!(0,s.hasOwnProperty)(r[t],"hide"))return n=!0,!1}}),n},b=function(e){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e};a.default.getSingleton().add("beforeInit",function(){var e;("boolean"==typeof(e=this.getSettings().customBorders)&&!0===e||"object"===(void 0===e?"undefined":r(e))&&e.length>0)&&(this.customBorders||(o=this,this.customBorders=new function(){}))}),a.default.getSingleton().add("afterContextMenuDefaultOptions",function(e){this.getSettings().customBorders&&(e.items.push({name:"---------"}),e.items.push({key:"borders",name:"Borders",disabled:function(){return this.selection.selectedHeader.corner},submenu:{items:[{key:"borders:top",name:function(){var e="Top";return A(this,"top")&&(e=b(e)),e},callback:function(){var e=A(this,"top");v.call(this,this.getSelectedRange(),"top",e)}},{key:"borders:right",name:function(){var e="Right";return A(this,"right")&&(e=b(e)),e},callback:function(){var e=A(this,"right");v.call(this,this.getSelectedRange(),"right",e)}},{key:"borders:bottom",name:function(){var e="Bottom";return A(this,"bottom")&&(e=b(e)),e},callback:function(){var e=A(this,"bottom");v.call(this,this.getSelectedRange(),"bottom",e)}},{key:"borders:left",name:function(){var e="Left";return A(this,"left")&&(e=b(e)),e},callback:function(){var e=A(this,"left");v.call(this,this.getSelectedRange(),"left",e)}},{key:"borders:no_borders",name:"Remove border(s)",callback:function(){v.call(this,this.getSelectedRange(),"noBorders")},disabled:function(){return!A(this)}}]}}))}),a.default.getSingleton().add("afterInit",function(){var e=this.getSettings().customBorders;if(e){for(var t=0;t<e.length;t++)e[t].range?u.call(this,e[t]):c.call(this,e[t].row,e[t].col,e[t]);this.render(),this.view.wt.draw(!0)}})},function(e,t,n){"use strict";t.__esModule=!0;var i,o=a(n(8)),r=a(n(4));function a(e){return e&&e.__esModule?e:{default:e}}function s(){this.boundaries=null,this.callback=null}n(5),s.prototype.setBoundaries=function(e){this.boundaries=e},s.prototype.setCallback=function(e){this.callback=e},s.prototype.check=function(e,t){var n=0,i=0;t<this.boundaries.top?i=t-this.boundaries.top:t>this.boundaries.bottom&&(i=t-this.boundaries.bottom),e<this.boundaries.left?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,i)};var l=function(e){e.dragToScrollListening=!1;var t=e.view.wt.wtTable.holder;i=new s,t!==window&&(i.setBoundaries(t.getBoundingClientRect()),i.setCallback(function(e,n){e<0?t.scrollLeft-=50:e>0&&(t.scrollLeft+=50),n<0?t.scrollTop-=20:n>0&&(t.scrollTop+=20)}),e.dragToScrollListening=!0)};o.default.getSingleton().add("afterInit",function(){var e=this,t=new r.default(this);t.addEventListener(document,"mouseup",function(){e.dragToScrollListening=!1}),t.addEventListener(document,"mousemove",function(t){e.dragToScrollListening&&i.check(t.clientX,t.clientY)})}),o.default.getSingleton().add("afterDestroy",function(){new r.default(this).clear()}),o.default.getSingleton().add("afterOnCellMouseDown",function(){l(this)}),o.default.getSingleton().add("afterOnCellCornerMouseDown",function(){l(this)}),t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"freeze_column",name:"Freeze this column",callback:function(){var t=this.getSelectedRange().from.col;e.freezeColumn(t),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:(e.from.col!==e.to.col||e.from.col<=this.getSettings().fixedColumnsLeft-1)&&(t=!0),t}}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name:"Unfreeze this column",callback:function(){var t=this.getSelectedRange().from.col;e.unfreezeColumn(t),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:(e.from.col!==e.to.col||e.from.col>=this.getSettings().fixedColumnsLeft)&&(t=!0),t}}}},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=c(n(12)),a=n(5),s=n(1),l=c(n(238)),d=c(n(239));function c(e){return e&&e.__esModule?e:{default:e}}n(296);var u=new WeakMap,h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return u.set(n,{moveByFreeze:!1,afterFirstUse:!1}),n.frozenColumnsBasePositions=[],n.manualColumnMovePlugin=void 0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),i(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnFreeze}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",function(t){return e.addContextMenuEntry(t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),this.addHook("beforeColumnMove",function(t,n){return e.onBeforeColumnMove(t,n)}),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var e=u.get(this);e.afterFirstUse=!1,e.moveByFreeze=!1,o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"freezeColumn",value:function(e){var t=u.get(this),n=this.hot.getSettings();t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsLeft===this.hot.countCols()||e<=n.fixedColumnsLeft-1||(t.moveByFreeze=!0,e!==this.getMovePlugin().columnsMapper.getValueByIndex(e)&&(this.frozenColumnsBasePositions[n.fixedColumnsLeft]=e),this.getMovePlugin().moveColumn(e,n.fixedColumnsLeft++))}},{key:"unfreezeColumn",value:function(e){var t=u.get(this),n=this.hot.getSettings();if(t.afterFirstUse||(t.afterFirstUse=!0),!(n.fixedColumnsLeft<=0||e>n.fixedColumnsLeft-1)){var i=this.getBestColumnReturnPosition(e);t.moveByFreeze=!0,n.fixedColumnsLeft--,this.getMovePlugin().moveColumn(e,i+1)}}},{key:"getMovePlugin",value:function(){return this.manualColumnMovePlugin||(this.manualColumnMovePlugin=this.hot.getPlugin("manualColumnMove")),this.manualColumnMovePlugin}},{key:"getBestColumnReturnPosition",value:function(e){var t=this.getMovePlugin(),n=this.hot.getSettings().fixedColumnsLeft,i=t.columnsMapper.getValueByIndex(n),o=void 0;if(null==this.frozenColumnsBasePositions[e])for(o=t.columnsMapper.getValueByIndex(e);i<o;)n++,i=t.columnsMapper.getValueByIndex(n);else{for(o=this.frozenColumnsBasePositions[e],this.frozenColumnsBasePositions[e]=void 0;i<=o;)n++,i=t.columnsMapper.getValueByIndex(n);n=i}return n-1}},{key:"addContextMenuEntry",value:function(e){e.items.push({name:"---------"},(0,l.default)(this),(0,d.default)(this))}},{key:"onAfterInit",value:function(){this.getMovePlugin().isEnabled()||this.getMovePlugin().enablePlugin()}},{key:"onBeforeColumnMove",value:function(e,t){var n=u.get(this);if(n.afterFirstUse&&!n.moveByFreeze){var i=this.hot.getSettings().fixedColumnsLeft,o=t<i;if(o||(0,s.arrayEach)(e,function(e,t,n){if(e<i)return o=!0,!1}),o)return!1}n.moveByFreeze&&(n.moveByFreeze=!1)}},{key:"destroy",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();(0,a.registerPlugin)("manualColumnFreeze",h),t.default=h},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(149))&&i.__esModule?i:{default:i},a=n(1),s=n(2),l=n(6),d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manualColumnMove=t}return o(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,(0,l.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveColumn",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=(0,a.arrayFilter)(this._arrayMap,function(e){return null!==e})}}]),e}();(0,s.mixin)(d,r.default),t.default=d},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=g(n(12)),a=g(n(8)),s=n(1),l=n(0),d=n(6),c=g(n(4)),u=n(5),h=g(n(241)),f=g(n(243)),p=g(n(244)),m=n(11);function g(e){return e&&e.__esModule?e:{default:e}}n(297),a.default.getSingleton().register("beforeColumnMove"),a.default.getSingleton().register("afterColumnMove"),a.default.getSingleton().register("unmodifyCol");var y=new WeakMap,v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return y.set(n,{columnsToMove:[],countCols:0,fixedColumns:0,pressed:void 0,disallowMoving:void 0,target:{eventPageX:void 0,coords:void 0,TD:void 0,col:void 0}}),n.removedColumns=[],n.columnsMapper=new h.default(n),n.eventManager=new c.default(n),n.backlight=new f.default(e),n.guideline=new p.default(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),i(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(t,n,i,o){return e.onBeforeOnCellMouseDown(t,n,i,o)}),this.addHook("beforeOnCellMouseOver",function(t,n,i,o){return e.onBeforeOnCellMouseOver(t,n,i,o)}),this.addHook("afterScrollVertically",function(){return e.onAfterScrollVertically()}),this.addHook("modifyCol",function(t,n){return e.onModifyCol(t,n)}),this.addHook("beforeRemoveCol",function(t,n){return e.onBeforeRemoveCol(t,n)}),this.addHook("afterRemoveCol",function(t,n){return e.onAfterRemoveCol(t,n)}),this.addHook("afterCreateCol",function(t,n){return e.onAfterCreateCol(t,n)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),this.addHook("unmodifyCol",function(t){return e.onUnmodifyCol(t)}),this.registerEvents(),(0,l.addClass)(this.hot.rootElement,"ht__manualColumnMove"),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)&&this.columnsMapper.clearMap(),(0,l.removeClass)(this.hot.rootElement,"ht__manualColumnMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"moveColumn",value:function(e,t){this.moveColumns([e],t)}},{key:"moveColumns",value:function(e,t){var n=this,i=y.get(this),o=this.hot.runHooks("beforeColumnMove",e,t);i.disallowMoving=!o,!1!==o&&((0,s.arrayEach)(e,function(e,t,i){i[t]=n.columnsMapper.getValueByIndex(e)}),(0,s.arrayEach)(e,function(e,i){var o=n.columnsMapper.getIndexByValue(e);o!==t&&n.columnsMapper.moveColumn(o,t+i)}),this.columnsMapper.clearNull()),this.hot.runHooks("afterColumnMove",e,t)}},{key:"changeSelection",value:function(e,t){var n=this.hot.selection,i=this.hot.countRows()-1;n.setRangeStartOnly(new m.CellCoords(0,e)),n.setRangeEnd(new m.CellCoords(i,t),!1)}},{key:"getColumnsWidth",value:function(e,t){for(var n=0,i=e;i<t;i++)n+=i<0?this.hot.view.wt.wtTable.getColumnWidth(i)||0:this.hot.view.wt.wtTable.getStretchedColumnWidth(i)||0;return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)?this.moveColumns(e,0):void 0!==e&&this.persistentStateLoad()}},{key:"isFixedColumnsLeft",value:function(e){return e<this.hot.getSettings().fixedColumnsLeft}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.columnsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value&&(this.columnsMapper._arrayMap=e.value)}},{key:"prepareColumnsToMoving",value:function(e,t){var n=[];return(0,d.rangeEach)(e,t,function(e){n.push(e)}),n}},{key:"refreshPositions",value:function(){var e=y.get(this),t=this.hot.view.wt.wtTable.getFirstVisibleColumn(),n=this.hot.view.wt.wtTable.getLastVisibleColumn(),i=this.hot.view.wt.wtTable,o=this.hot.view.wt.wtOverlays.scrollableElement,r="number"==typeof o.scrollX?o.scrollX:o.scrollLeft,a=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,e.coordsColumn),s=e.target.eventPageX-(e.rootElementOffset-(void 0===o.scrollX?r:0)),l=i.hider.offsetWidth,d=i.TBODY.offsetLeft,c=this.backlight.getOffset().left,u=this.backlight.getSize().width,h=0;if(e.rootElementOffset+i.holder.offsetWidth+r<e.target.eventPageX&&e.coordsColumn<e.countCols&&e.coordsColumn++,e.hasRowHeaders&&(h=this.hot.view.wt.wtOverlays.leftOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsLeft(e.coordsColumn)&&(a+=r),a+=h,e.coordsColumn<0)e.fixedColumns>0?e.target.col=0:e.target.col=t>0?t-1:t;else if(e.target.TD.offsetWidth/2+a<=s){var f=e.coordsColumn>=e.countCols?e.countCols-1:e.coordsColumn;e.target.col=f+1,a+=e.target.TD.offsetWidth,e.target.col>n&&this.hot.scrollViewportTo(void 0,n+1,void 0,!0)}else e.target.col=e.coordsColumn,e.target.col<=t&&e.target.col>=e.fixedColumns&&this.hot.scrollViewportTo(void 0,t-1);e.target.col<=t&&e.target.col>=e.fixedColumns&&this.hot.scrollViewportTo(void 0,t-1);var p=s,m=a;s+u+c>=l?p=l-u-c:s+c<d+h&&(p=d+h+Math.abs(c)),a>=l-1?m=l-1:0===m?m=1:void 0!==o.scrollX&&e.coordsColumn<e.fixedColumns&&(m-=e.rootElementOffset<=o.scrollX?e.rootElementOffset:0),this.backlight.setPosition(null,p),this.guideline.setPosition(null,m)}},{key:"updateColumnsMapper",value:function(){var e=this.hot.countSourceCols(),t=this.columnsMapper._arrayMap.length;if(0===t)this.columnsMapper.createMap(e||this.hot.getSettings().startCols);else if(t<e){var n=e-t;this.columnsMapper.insertItems(t,n)}else if(t>e){var i=e-1,o=[];(0,s.arrayEach)(this.columnsMapper._arrayMap,function(e,t,n){e>i&&o.push(t)}),this.columnsMapper.removeItems(o)}}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,i){var o=this.hot.view.wt.wtTable,r=this.hot.selection.selectedHeader.cols,a=this.hot.getSelectedRange(),s=y.get(this),d=e.realTarget.className.indexOf("columnSorting")>-1;if(!a||!r||s.pressed||0!==e.button||d)return s.pressed=!1,s.columnsToMove.length=0,void(0,l.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui"]);var c=this.guideline.isBuilt()&&!this.guideline.isAppended(),u=this.backlight.isBuilt()&&!this.backlight.isAppended();c&&u&&(this.guideline.appendTo(o.hider),this.backlight.appendTo(o.hider));var h=a.from,f=a.to,p=Math.min(h.col,f.col),m=Math.max(h.col,f.col);if(t.row<0&&t.col>=p&&t.col<=m){i.column=!0,s.pressed=!0,s.target.eventPageX=e.pageX,s.coordsColumn=t.col,s.target.TD=n,s.target.col=t.col,s.columnsToMove=this.prepareColumnsToMoving(p,m),s.hasRowHeaders=!!this.hot.getSettings().rowHeaders,s.countCols=this.hot.countCols(),s.fixedColumns=this.hot.getSettings().fixedColumnsLeft,s.rootElementOffset=(0,l.offset)(this.hot.rootElement).left;var g=s.hasRowHeaders?-1:0,v=o.holder.scrollTop+o.getColumnHeaderHeight(0)+1,A=t.col<s.fixedColumns,b=this.hot.view.wt.wtOverlays.scrollableElement,w=b.scrollX?b.scrollX-s.rootElementOffset:0,_=e.layerX-(A?w:0),M=Math.abs(this.getColumnsWidth(p,t.col)+_);this.backlight.setPosition(v,this.getColumnsWidth(g,p)+M),this.backlight.setSize(this.getColumnsWidth(p,m+1),o.hider.offsetHeight-v),this.backlight.setOffset(null,-1*M),(0,l.addClass)(this.hot.rootElement,"on-moving--columns")}else(0,l.removeClass)(this.hot.rootElement,"after-selection--columns"),s.pressed=!1,s.columnsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=y.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().width;this.backlight.setSize(0),setTimeout(function(){this.backlight.setPosition(n)})}t.target.eventPageX=e.pageX,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,i){var o=this.hot.getSelectedRange(),r=y.get(this);o&&r.pressed&&(r.columnsToMove.indexOf(t.col)>-1?(0,l.removeClass)(this.hot.rootElement,"show-ui"):(0,l.addClass)(this.hot.rootElement,"show-ui"),i.row=!0,i.column=!0,i.cell=!0,r.coordsColumn=t.col,r.target.TD=n)}},{key:"onMouseUp",value:function(){var e=y.get(this);if(e.coordsColumn=void 0,e.pressed=!1,e.backlightWidth=0,(0,l.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui","after-selection--columns"]),this.hot.selection.selectedHeader.cols&&(0,l.addClass)(this.hot.rootElement,"after-selection--columns"),!(e.columnsToMove.length<1||void 0===e.target.col||e.columnsToMove.indexOf(e.target.col)>-1)){if(this.moveColumns(e.columnsToMove,e.target.col),this.persistentStateSave(),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0),!e.disallowMoving){var t=this.columnsMapper.getIndexByValue(e.columnsToMove[0]),n=this.columnsMapper.getIndexByValue(e.columnsToMove[e.columnsToMove.length-1]);this.changeSelection(t,n)}e.columnsToMove.length=0}}},{key:"onAfterScrollVertically",value:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnHeaderHeight(0)+1+e.holder.scrollTop;this.backlight.setPosition(t),this.backlight.setSize(null,e.hider.offsetHeight-t)}},{key:"onAfterCreateCol",value:function(e,t){this.columnsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveCol",value:function(e,t){var n=this;this.removedColumns.length=0,!1!==e&&(0,d.rangeEach)(e,e+t-1,function(e){n.removedColumns.push(n.hot.runHooks("modifyCol",e,n.pluginName))})}},{key:"onAfterRemoveCol",value:function(e,t){this.columnsMapper.unshiftItems(this.removedColumns)}},{key:"onAfterLoadData",value:function(e){this.updateColumnsMapper()}},{key:"onModifyCol",value:function(e,t){if(t!==this.pluginName){var n=this.columnsMapper.getValueByIndex(e);e=null===n?e:n}return e}},{key:"onUnmodifyCol",value:function(e){var t=this.columnsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateColumnsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();(0,u.registerPlugin)("ManualColumnMove",v),t.default=v},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(151))&&i.__esModule?i:{default:i},a=n(0),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),o(t,[{key:"build",value:function(){(function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,a.addClass)(this._element,"ht__manualColumnMove--backlight")}}]),t}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(151))&&i.__esModule?i:{default:i},a=n(0),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),o(t,[{key:"build",value:function(){(function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,a.addClass)(this._element,"ht__manualColumnMove--guideline")}}]),t}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=h(n(12)),a=n(0),s=h(n(4)),l=n(7),d=n(1),c=n(6),u=n(5);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.currentTH=null,n.currentCol=null,n.selectedCols=[],n.currentWidth=null,n.newSize=null,n.startY=null,n.startWidth=null,n.startOffset=null,n.handle=document.createElement("DIV"),n.guide=document.createElement("DIV"),n.eventManager=new s.default(n),n.pressed=null,n.dblclick=0,n.autoresizeTimeout=null,n.manualColumnWidths=[],(0,a.addClass)(n.handle,"manualColumnResizer"),(0,a.addClass)(n.guide,"manualColumnResizerGuide"),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),i(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().manualColumnResize}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.manualColumnWidths=[];var n=this.hot.getSettings().manualColumnResize,i=this.loadManualColumnWidths();this.addHook("modifyColWidth",function(t,n){return e.onModifyColWidth(t,n)}),this.addHook("beforeStretchingColumnWidth",function(t,n){return e.onBeforeStretchingColumnWidth(t,n)}),this.addHook("beforeColumnResize",function(t,n,i){return e.onBeforeColumnResize(t,n,i)}),void 0!==i?this.manualColumnWidths=i:Array.isArray(n)?this.manualColumnWidths=n:this.manualColumnWidths=[],this.bindEvents(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualColumnResize;Array.isArray(e)?this.manualColumnWidths=e:e||(this.manualColumnWidths=[])}},{key:"disablePlugin",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualColumnWidths",value:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.manualColumnWidths)}},{key:"loadManualColumnWidths",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;if(!e.parentNode)return!1;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(e).col,i=(0,a.outerHeight)(this.currentTH);if(n>=0){var o=this.currentTH.getBoundingClientRect();if(this.currentCol=n,this.selectedCols=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.cols){var r=this.hot.getSelectedRange(),s=r.from,l=r.to,d=s.col,u=l.col;d>=u&&(d=l.col,u=s.col),this.currentCol>=d&&this.currentCol<=u?(0,c.rangeEach)(d,u,function(e){return t.selectedCols.push(e)}):this.selectedCols.push(this.currentCol)}else this.selectedCols.push(this.currentCol);this.startOffset=o.left-6,this.startWidth=parseInt(o.width,10),this.handle.style.top=o.top+"px",this.handle.style.left=this.startOffset+this.startWidth+"px",this.handle.style.height=i+"px",this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.left=this.startOffset+this.currentWidth+"px"}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,a.outerHeight)(this.handle),10),t=parseInt(this.handle.style.top,10)+e,n=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);(0,a.addClass)(this.handle,"active"),(0,a.addClass)(this.guide,"active"),this.guide.style.top=t+"px",this.guide.style.left=this.handle.style.left,this.guide.style.height=n-e+"px",this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.left=this.handle.style.left}},{key:"hideHandleAndGuide",value:function(){(0,a.removeClass)(this.handle,"active"),(0,a.removeClass)(this.guide,"active")}},{key:"checkIfColumnHeader",value:function(e){if(e!=this.hot.rootElement){var t=e.parentNode;return"THEAD"===t.tagName||this.checkIfColumnHeader(t)}return!1}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!=e.tagName?"TH"==e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfColumnHeader(e.target)){var t=this.getTHFromTargetElement(e.target);if(!t)return;var n=t.getAttribute("colspan");!t||null!==n&&1!==n||this.pressed||this.setupHandlePosition(t)}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,i){var o=e.hot.runHooks("beforeColumnResize",n,e.newSize,!0);void 0!==o&&(e.newSize=o),"all"===e.hot.getSettings().stretchH?e.clearManualSize(n):e.setManualSize(n,e.newSize),i&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",n,e.newSize,!0)};this.dblclick>=2&&(this.selectedCols.length>1?((0,d.arrayEach)(this.selectedCols,function(e){n(e)}),t()):(0,d.arrayEach)(this.selectedCols,function(e){n(e,!0)})),this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,a.hasClass)(e.target,"manualColumnResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick++,this.startX=(0,l.pageX)(e),this.newSize=this.startWidth)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentWidth=this.startWidth+((0,l.pageX)(e)-this.startX),(0,d.arrayEach)(this.selectedCols,function(e){t.newSize=t.setManualSize(e,t.currentWidth)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(e){var t=this,n=function(){t.hot.forceFullRender=!0,t.hot.view.render(),t.hot.view.wt.wtOverlays.adjustElementsSize(!0)},i=function(e,i){t.hot.runHooks("beforeColumnResize",e,t.newSize),i&&n(),t.saveManualColumnWidths(),t.hot.runHooks("afterColumnResize",e,t.newSize)};this.pressed&&(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startWidth&&(this.selectedCols.length>1?((0,d.arrayEach)(this.selectedCols,function(e){i(e)}),n()):(0,d.arrayEach)(this.selectedCols,function(e){i(e,!0)})),this.setupHandlePosition(this.currentTH))}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(t){return e.onMouseUp(t)})}},{key:"setManualSize",value:function(e,t){return t=Math.max(t,20),e=this.hot.runHooks("modifyCol",e),this.manualColumnWidths[e]=t,t}},{key:"clearManualSize",value:function(e){e=this.hot.runHooks("modifyCol",e),this.manualColumnWidths[e]=void 0}},{key:"onModifyColWidth",value:function(e,t){return this.enabled&&(t=this.hot.runHooks("modifyCol",t),this.hot.getSettings().manualColumnResize&&this.manualColumnWidths[t])?this.manualColumnWidths[t]:e}},{key:"onBeforeStretchingColumnWidth",value:function(e,t){var n=this.manualColumnWidths[t];return void 0===n&&(n=e),n}},{key:"onBeforeColumnResize",value:function(){this.hot.view.wt.wtViewport.hasOversizedColumnHeadersMarked={}}}]),t}();(0,u.registerPlugin)("manualColumnResize",f),t.default=f},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=g(n(12)),a=g(n(8)),s=n(1),l=n(0),d=n(6),c=g(n(4)),u=n(5),h=g(n(247)),f=g(n(248)),p=g(n(249)),m=n(11);function g(e){return e&&e.__esModule?e:{default:e}}n(298),a.default.getSingleton().register("beforeRowMove"),a.default.getSingleton().register("afterRowMove"),a.default.getSingleton().register("unmodifyRow");var y=new WeakMap,v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return y.set(n,{rowsToMove:[],pressed:void 0,disallowMoving:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0}}),n.removedRows=[],n.rowsMapper=new h.default(n),n.eventManager=new c.default(n),n.backlight=new f.default(e),n.guideline=new p.default(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),i(t,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualRowMove}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(t,n,i,o){return e.onBeforeOnCellMouseDown(t,n,i,o)}),this.addHook("beforeOnCellMouseOver",function(t,n,i,o){return e.onBeforeOnCellMouseOver(t,n,i,o)}),this.addHook("afterScrollHorizontally",function(){return e.onAfterScrollHorizontally()}),this.addHook("modifyRow",function(t,n){return e.onModifyRow(t,n)}),this.addHook("beforeRemoveRow",function(t,n){return e.onBeforeRemoveRow(t,n)}),this.addHook("afterRemoveRow",function(t,n){return e.onAfterRemoveRow(t,n)}),this.addHook("afterCreateRow",function(t,n){return e.onAfterCreateRow(t,n)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),this.addHook("beforeColumnSort",function(t,n){return e.onBeforeColumnSort(t,n)}),this.addHook("unmodifyRow",function(t){return e.onUnmodifyRow(t)}),this.registerEvents(),(0,l.addClass)(this.hot.rootElement,"ht__manualRowMove"),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var e=this.hot.getSettings().manualRowMove;Array.isArray(e)&&this.rowsMapper.clearMap(),(0,l.removeClass)(this.hot.rootElement,"ht__manualRowMove"),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"moveRow",value:function(e,t){this.moveRows([e],t)}},{key:"moveRows",value:function(e,t){var n=this,i=y.get(this),o=this.hot.runHooks("beforeRowMove",e,t);i.disallowMoving=!1===o,i.disallowMoving||((0,s.arrayEach)(e,function(e,t,i){i[t]=n.rowsMapper.getValueByIndex(e)}),(0,s.arrayEach)(e,function(e,i){var o=n.rowsMapper.getIndexByValue(e);o!==t&&n.rowsMapper.moveRow(o,t+i)}),this.rowsMapper.clearNull()),this.hot.runHooks("afterRowMove",e,t)}},{key:"changeSelection",value:function(e,t){var n=this.hot.selection,i=this.hot.countCols()-1;n.setRangeStartOnly(new m.CellCoords(e,0)),n.setRangeEnd(new m.CellCoords(t,i),!1)}},{key:"getRowsHeight",value:function(e,t){for(var n=0,i=e;i<t;i++)n+=this.hot.view.wt.wtTable.getRowHeight(i)||23;return n}},{key:"initialSettings",value:function(){var e=this.hot.getSettings().manualRowMove;if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveRows(t,0)}}},{key:"isFixedRowTop",value:function(e){return e<this.hot.getSettings().fixedRowsTop}},{key:"isFixedRowBottom",value:function(e){return e>this.hot.getSettings().fixedRowsBottom}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualRowMove",this.rowsMapper._arrayMap)}},{key:"persistentStateLoad",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}},{key:"prepareRowsToMoving",value:function(){var e=this.hot.getSelectedRange(),t=[];if(!e)return t;var n=e.from,i=e.to,o=Math.min(n.row,i.row),r=Math.max(n.row,i.row);return(0,d.rangeEach)(o,r,function(e){t.push(e)}),t}},{key:"refreshPositions",value:function(){var e=y.get(this),t=e.target.coords,n=this.hot.view.wt.wtTable.getFirstVisibleRow(),i=this.hot.view.wt.wtTable.getLastVisibleRow(),o=this.hot.getSettings().fixedRowsTop,r=this.hot.countRows();t.row<o&&n>0&&this.hot.scrollViewportTo(n-1),t.row>=i&&i<r&&this.hot.scrollViewportTo(i+1,void 0,!0);var a=this.hot.view.wt.wtTable,s=e.target.TD,d=(0,l.offset)(this.hot.rootElement),c=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,t.row),u=e.target.eventPageY-d.top+a.holder.scrollTop,h=a.hider.offsetHeight,f=a.TBODY.offsetTop,p=this.backlight.getOffset().top,m=this.backlight.getSize().height;d.top+a.holder.offsetHeight<e.target.eventPageY&&e.target.coords.row++,this.isFixedRowTop(t.row)&&(c+=a.holder.scrollTop),t.row<0?e.target.row=n>0?n-1:n:s.offsetHeight/2+c<=u?(e.target.row=t.row+1,c+=0===t.row?s.offsetHeight-1:s.offsetHeight):e.target.row=t.row;var g=u,v=c;u+m+p>=h?g=h-m-p:u+p<f&&(g=f+Math.abs(p)),c>=h-1&&(v=h-1);var A=0;this.hot.view.wt.wtOverlays.topOverlay&&(A=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.TABLE.offsetHeight),t.row>=o&&v-a.holder.scrollTop<A&&this.hot.scrollViewportTo(t.row),this.backlight.setPosition(g),this.guideline.setPosition(v)}},{key:"updateRowsMapper",value:function(){var e=this.hot.countSourceRows(),t=this.rowsMapper._arrayMap.length;if(0===t)this.rowsMapper.createMap(e||this.hot.getSettings().startRows);else if(t<e){var n=e-t;this.rowsMapper.insertItems(t,n)}else if(t>e){var i=e-1,o=[];(0,s.arrayEach)(this.rowsMapper._arrayMap,function(e,t,n){e>i&&o.push(t)}),this.rowsMapper.removeItems(o)}}},{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeColumnSort",value:function(e,t){y.get(this).disallowMoving=void 0!==t}},{key:"onBeforeOnCellMouseDown",value:function(e,t,n,i){var o=this.hot.view.wt.wtTable,r=this.hot.selection.selectedHeader.rows,a=this.hot.getSelectedRange(),s=y.get(this);if(!a||!r||s.pressed||0!==e.button)return s.pressed=!1,s.rowsToMove.length=0,void(0,l.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui"]);var d=this.guideline.isBuilt()&&!this.guideline.isAppended(),c=this.backlight.isBuilt()&&!this.backlight.isAppended();d&&c&&(this.guideline.appendTo(o.hider),this.backlight.appendTo(o.hider));var u=a.from,h=a.to,f=Math.min(u.row,h.row),p=Math.max(u.row,h.row);if(t.col<0&&t.row>=f&&t.row<=p){i.row=!0,s.pressed=!0,s.target.eventPageY=e.pageY,s.target.coords=t,s.target.TD=n,s.rowsToMove=this.prepareRowsToMoving();var m=o.holder.scrollLeft+o.getColumnWidth(-1);this.backlight.setPosition(null,m),this.backlight.setSize(o.hider.offsetWidth-m,this.getRowsHeight(f,p+1)),this.backlight.setOffset(-1*(this.getRowsHeight(f,t.row)+e.layerY),null),(0,l.addClass)(this.hot.rootElement,"on-moving--rows"),this.refreshPositions()}else(0,l.removeClass)(this.hot.rootElement,"after-selection--rows"),s.pressed=!1,s.rowsToMove.length=0}},{key:"onMouseMove",value:function(e){var t=y.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().height;this.backlight.setSize(null,0),setTimeout(function(){this.backlight.setPosition(null,n)})}t.target.eventPageY=e.pageY,this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(e,t,n,i){var o=this.hot.getSelectedRange(),r=y.get(this);o&&r.pressed&&(r.rowsToMove.indexOf(t.row)>-1?(0,l.removeClass)(this.hot.rootElement,"show-ui"):(0,l.addClass)(this.hot.rootElement,"show-ui"),i.row=!0,i.column=!0,i.cell=!0,r.target.coords=t,r.target.TD=n)}},{key:"onMouseUp",value:function(){var e=y.get(this),t=e.target.row,n=e.rowsToMove.length;if(e.pressed=!1,e.backlightHeight=0,(0,l.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui","after-selection--rows"]),this.hot.selection.selectedHeader.rows&&(0,l.addClass)(this.hot.rootElement,"after-selection--rows"),!(n<1||void 0===t||e.rowsToMove.indexOf(t)>-1||e.rowsToMove[n-1]===t-1)){if(this.moveRows(e.rowsToMove,t),this.persistentStateSave(),this.hot.render(),!e.disallowMoving){var i=this.rowsMapper.getIndexByValue(e.rowsToMove[0]),o=this.rowsMapper.getIndexByValue(e.rowsToMove[n-1]);this.changeSelection(i,o)}e.rowsToMove.length=0}}},{key:"onAfterScrollHorizontally",value:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnWidth(-1)+e.holder.scrollLeft;this.backlight.setPosition(null,t),this.backlight.setSize(e.hider.offsetWidth-t)}},{key:"onAfterCreateRow",value:function(e,t){this.rowsMapper.shiftItems(e,t)}},{key:"onBeforeRemoveRow",value:function(e,t){var n=this;this.removedRows.length=0,!1!==e&&(0,d.rangeEach)(e,e+t-1,function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e,n.pluginName))})}},{key:"onAfterRemoveRow",value:function(e,t){this.rowsMapper.unshiftItems(this.removedRows)}},{key:"onAfterLoadData",value:function(e){this.updateRowsMapper()}},{key:"onModifyRow",value:function(e,t){if(t!==this.pluginName){var n=this.rowsMapper.getValueByIndex(e);e=null===n?e:n}return e}},{key:"onUnmodifyRow",value:function(e){var t=this.rowsMapper.getIndexByValue(e);return null===t?e:t}},{key:"onAfterPluginsInitialized",value:function(){this.updateRowsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()}},{key:"destroy",value:function(){this.backlight.destroy(),this.guideline.destroy(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();(0,u.registerPlugin)("ManualRowMove",v),t.default=v},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(149))&&i.__esModule?i:{default:i},a=n(1),s=n(2),l=n(6),d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manualRowMove=t}return o(e,[{key:"createMap",value:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,(0,l.rangeEach)(n-1,function(e){t._arrayMap[e]=e})}},{key:"destroy",value:function(){this._arrayMap=null}},{key:"moveRow",value:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)}},{key:"clearNull",value:function(){this._arrayMap=(0,a.arrayFilter)(this._arrayMap,function(e){return null!==e})}}]),e}();(0,s.mixin)(d,r.default),t.default=d},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(152))&&i.__esModule?i:{default:i},a=n(0),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),o(t,[{key:"build",value:function(){(function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,a.addClass)(this._element,"ht__manualRowMove--backlight")}}]),t}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(152))&&i.__esModule?i:{default:i},a=n(0),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),o(t,[{key:"build",value:function(){(function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"build",this).call(this),(0,a.addClass)(this._element,"ht__manualRowMove--guideline")}}]),t}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=h(n(12)),a=n(0),s=h(n(4)),l=n(7),d=n(1),c=n(6),u=n(5);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.currentTH=null,n.currentRow=null,n.selectedRows=[],n.currentHeight=null,n.newSize=null,n.startY=null,n.startHeight=null,n.startOffset=null,n.handle=document.createElement("DIV"),n.guide=document.createElement("DIV"),n.eventManager=new s.default(n),n.pressed=null,n.dblclick=0,n.autoresizeTimeout=null,n.manualRowHeights=[],(0,a.addClass)(n.handle,"manualRowResizer"),(0,a.addClass)(n.guide,"manualRowResizerGuide"),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),i(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().manualRowResize}},{key:"enablePlugin",value:function(){var e=this;if(!this.enabled){this.manualRowHeights=[];var n=this.hot.getSettings().manualRowResize,i=this.loadManualRowHeights();void 0!==i?this.manualRowHeights=i:Array.isArray(n)?this.manualRowHeights=n:this.manualRowHeights=[],this.addHook("modifyRowHeight",function(t,n){return e.onModifyRowHeight(t,n)}),this.bindEvents(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var e=this.hot.getSettings().manualRowResize;Array.isArray(e)?this.manualRowHeights=e:e||(this.manualRowHeights=[])}},{key:"disablePlugin",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualRowHeights",value:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.manualRowHeights)}},{key:"loadManualRowHeights",value:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",e),e.value}},{key:"setupHandlePosition",value:function(e){var t=this;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(e).row,i=(0,a.outerWidth)(this.currentTH);if(n>=0){var o=this.currentTH.getBoundingClientRect();if(this.currentRow=n,this.selectedRows=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.rows){var r=this.hot.getSelectedRange(),s=r.from,l=r.to,d=s.row,u=l.row;d>=u&&(d=l.row,u=s.row),this.currentRow>=d&&this.currentRow<=u?(0,c.rangeEach)(d,u,function(e){return t.selectedRows.push(e)}):this.selectedRows.push(this.currentRow)}else this.selectedRows.push(this.currentRow);this.startOffset=o.top-6,this.startHeight=parseInt(o.height,10),this.handle.style.left=o.left+"px",this.handle.style.top=this.startOffset+this.startHeight+"px",this.handle.style.width=i+"px",this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.top=this.startOffset+this.currentHeight+"px"}},{key:"setupGuidePosition",value:function(){var e=parseInt((0,a.outerWidth)(this.handle),10),t=parseInt(this.handle.style.left,10)+e,n=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);(0,a.addClass)(this.handle,"active"),(0,a.addClass)(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style.left=t+"px",this.guide.style.width=n-e+"px",this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.top=this.handle.style.top}},{key:"hideHandleAndGuide",value:function(){(0,a.removeClass)(this.handle,"active"),(0,a.removeClass)(this.guide,"active")}},{key:"checkIfRowHeader",value:function(e){if(e!=this.hot.rootElement){var t=e.parentNode;return"TBODY"===t.tagName||this.checkIfRowHeader(t)}return!1}},{key:"getTHFromTargetElement",value:function(e){return"TABLE"!=e.tagName?"TH"==e.tagName?e:this.getTHFromTargetElement(e.parentNode):null}},{key:"onMouseOver",value:function(e){if(this.checkIfRowHeader(e.target)){var t=this.getTHFromTargetElement(e.target);t&&(this.pressed||this.setupHandlePosition(t))}}},{key:"afterMouseDownTimeout",value:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,i){var o=e.hot.runHooks("beforeRowResize",n,e.newSize,!0);void 0!==o&&(e.newSize=o),e.setManualSize(n,e.newSize),i&&t(),e.hot.runHooks("afterRowResize",n,e.newSize,!0)};this.dblclick>=2&&(this.selectedRows.length>1?((0,d.arrayEach)(this.selectedRows,function(e){n(e)}),t()):(0,d.arrayEach)(this.selectedRows,function(e){n(e,!0)})),this.dblclick=0,this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(e){var t=this;(0,a.hasClass)(e.target,"manualRowResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null==this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick++,this.startY=(0,l.pageY)(e),this.newSize=this.startHeight)}},{key:"onMouseMove",value:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+((0,l.pageY)(e)-this.startY),(0,d.arrayEach)(this.selectedRows,function(e){t.newSize=t.setManualSize(e,t.currentHeight)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(e){var t=this,n=function(){t.hot.forceFullRender=!0,t.hot.view.render(),t.hot.view.wt.wtOverlays.adjustElementsSize(!0)},i=function(e,i){t.hot.runHooks("beforeRowResize",e,t.newSize),i&&n(),t.saveManualRowHeights(),t.hot.runHooks("afterRowResize",e,t.newSize)};this.pressed&&(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startHeight&&(this.selectedRows.length>1?((0,d.arrayEach)(this.selectedRows,function(e){i(e)}),n()):(0,d.arrayEach)(this.selectedRows,function(e){i(e,!0)})),this.setupHandlePosition(this.currentTH))}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(t){return e.onMouseUp(t)})}},{key:"setManualSize",value:function(e,t){return e=this.hot.runHooks("modifyRow",e),this.manualRowHeights[e]=t,t}},{key:"onModifyRowHeight",value:function(e,t){if(this.enabled){var n=this.hot.getPlugin("autoRowSize"),i=n?n.heights[t]:null;t=this.hot.runHooks("modifyRow",t);var o=this.manualRowHeights[t];if(void 0!==o&&(o===i||o>(e||0)))return o}return e}}]),t}();(0,u.registerPlugin)("manualRowResize",f),t.default=f},function(e,t,n){"use strict";t.__esModule=!0;var i,o=(i=n(8))&&i.__esModule?i:{default:i},r=(n(5),n(7)),a=n(11);function s(){var e=[];return e.getInfo=function(e,t){for(var n=0,i=this.length;n<i;n++)if(this[n].row<=e&&this[n].row+this[n].rowspan-1>=e&&this[n].col<=t&&this[n].col+this[n].colspan-1>=t)return this[n]},e.setInfo=function(e){for(var t=0,n=this.length;t<n;t++)if(this[t].row===e.row&&this[t].col===e.col)return void(this[t]=e);this.push(e)},e.removeInfo=function(e,t){for(var n=0,i=this.length;n<i;n++)if(this[n].row===e&&this[n].col===t){this.splice(n,1);break}},e}function l(e){if(this.mergedCellInfoCollection=new s,Array.isArray(e))for(var t=0,n=e.length;t<n;t++)this.mergedCellInfoCollection.setInfo(e[t])}l.prototype.canMergeRange=function(e){return!e.isSingle()},l.prototype.mergeRange=function(e){if(this.canMergeRange(e)){var t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),i={};i.row=t.row,i.col=t.col,i.rowspan=n.row-t.row+1,i.colspan=n.col-t.col+1,this.mergedCellInfoCollection.setInfo(i)}},l.prototype.mergeOrUnmergeSelection=function(e){this.mergedCellInfoCollection.getInfo(e.from.row,e.from.col)?this.unmergeSelection(e.from):this.mergeSelection(e)},l.prototype.mergeSelection=function(e){this.mergeRange(e)},l.prototype.unmergeSelection=function(e){var t=this.mergedCellInfoCollection.getInfo(e.row,e.col);this.mergedCellInfoCollection.removeInfo(t.row,t.col)},l.prototype.applySpanProperties=function(e,t,n){var i=this.mergedCellInfoCollection.getInfo(t,n);i?i.row===t&&i.col===n?(e.setAttribute("rowspan",i.rowspan),e.setAttribute("colspan",i.colspan)):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"))},l.prototype.modifyTransform=function(e,t,n){var i,o,r=function(e,t){return t.col>=e.col&&t.col<=e.col+e.colspan-1},s=function(e){return new a.CellCoords(t.to.row+e.row,t.to.col+e.col)},l={row:n.row,col:n.col};if("modifyTransformStart"==e){var d;this.lastDesiredCoords||(this.lastDesiredCoords=new a.CellCoords(null,null));for(var c=new a.CellCoords(t.highlight.row,t.highlight.col),u=this.mergedCellInfoCollection.getInfo(c.row,c.col),h=0,f=this.mergedCellInfoCollection.length;h<f;h++){var p=this.mergedCellInfoCollection[h];if(p=new a.CellCoords(p.row+p.rowspan-1,p.col+p.colspan-1),t.includes(p))break}if(u){var m=new a.CellCoords(u.row,u.col),g=new a.CellCoords(u.row+u.rowspan-1,u.col+u.colspan-1);new a.CellRange(m,m,g).includes(this.lastDesiredCoords)||(this.lastDesiredCoords=new a.CellCoords(null,null)),l.row=this.lastDesiredCoords.row?this.lastDesiredCoords.row-c.row:l.row,l.col=this.lastDesiredCoords.col?this.lastDesiredCoords.col-c.col:l.col,n.row>0?l.row=u.row+u.rowspan-1-c.row+n.row:n.row<0&&(l.row=c.row-u.row+n.row),n.col>0?l.col=u.col+u.colspan-1-c.col+n.col:n.col<0&&(l.col=c.col-u.col+n.col)}d=new a.CellCoords(t.highlight.row+l.row,t.highlight.col+l.col);var y=this.mergedCellInfoCollection.getInfo(d.row,d.col);y&&(this.lastDesiredCoords=d,l={row:y.row-c.row,col:y.col-c.col})}else if("modifyTransformEnd"==e)for(var v=0,A=this.mergedCellInfoCollection.length;v<A;v++){var b=this.mergedCellInfoCollection[v],w=new a.CellCoords(b.row,b.col),_=new a.CellCoords(b.row+b.rowspan-1,b.col+b.colspan-1),M=new a.CellRange(w,w,_),x=t.getBordersSharedWith(M);if(M.isEqual(t))t.setDirection("NW-SE");else if(x.length>0){var k=t.highlight.isEqual(M.from);x.indexOf("top")>-1?t.to.isSouthEastOf(M.from)&&k?t.setDirection("NW-SE"):t.to.isSouthWestOf(M.from)&&k&&t.setDirection("NE-SW"):x.indexOf("bottom")>-1&&(t.to.isNorthEastOf(M.from)&&k?t.setDirection("SW-NE"):t.to.isNorthWestOf(M.from)&&k&&t.setDirection("SE-NW"))}var S=(i=b,(o=d=s(l)).row>=i.row&&o.row<=i.row+i.rowspan-1),C=r(b,d);t.includesRange(M)&&(M.includes(d)||S||C)&&(S&&(l.row<0?l.row-=b.rowspan-1:l.row>0&&(l.row+=b.rowspan-1)),C&&(l.col<0?l.col-=b.colspan-1:l.col>0&&(l.col+=b.colspan-1)))}0!==l.row&&(n.row=l.row),0!==l.col&&(n.col=l.col)},l.prototype.shiftCollection=function(e,t,n){var i=[0,0];switch(e){case"right":i[0]+=1;break;case"left":i[0]-=1;break;case"down":i[1]+=1;break;case"up":i[1]-=1}for(var o=0;o<this.mergedCellInfoCollection.length;o++){var r=this.mergedCellInfoCollection[o];"right"===e||"left"===e?t<=r.col&&(r.col+=i[0]):t<=r.row&&(r.row+=i[1])}};var d=function(e){return function(t){if(this.getSettings().mergeCells){var n=this.getSelectedRange();if(this.mergeCells.modifyTransform(e,n,t),"modifyTransformEnd"===e){var i=this.countRows(),o=this.countCols();n.from.row<0?n.from.row=0:n.from.row>0&&n.from.row>=i&&(n.from.row=n.from-1),n.from.col<0?n.from.col=0:n.from.col>0&&n.from.col>=o&&(n.from.col=o-1)}}}},c=o.default.getSingleton();c.add("beforeInit",function(){var e=this.getSettings().mergeCells;e&&(this.mergeCells||(this.mergeCells=new l(e)))}),c.add("afterInit",function(){var e=this;e.mergeCells&&(e.view.wt.wtTable.getCell=function(t){if(e.getSettings().mergeCells){var n=e.mergeCells.mergedCellInfoCollection.getInfo(t.row,t.col);n&&(t=n)}return a.Table.prototype.getCell.call(this,t)})}),c.add("afterUpdateSettings",function(){var e=this.getSettings().mergeCells;if(e)if(this.mergeCells){if(this.mergeCells.mergedCellInfoCollection=new s,Array.isArray(e))for(var t=0,n=e.length;t<n;t++)this.mergeCells.mergedCellInfoCollection.setInfo(e[t])}else this.mergeCells=new l(e);else this.mergeCells&&(this.mergeCells.mergedCellInfoCollection=new s)}),c.add("beforeKeyDown",function(e){this.mergeCells&&(e.ctrlKey||e.metaKey)&&!e.altKey&&77===e.keyCode&&(this.mergeCells.mergeOrUnmergeSelection(this.getSelectedRange()),this.render(),(0,r.stopImmediatePropagation)(e))}),c.add("modifyTransformStart",d("modifyTransformStart")),c.add("modifyTransformEnd",d("modifyTransformEnd")),c.add("beforeSetRangeEnd",function(e){if(this.lastDesiredCoords=null,this.getSettings().mergeCells){var t=this.getSelectedRange();t.highlight=new a.CellCoords(t.highlight.row,t.highlight.col),t.to=e;var n=!1;do{n=!1;for(var i=0,o=this.mergeCells.mergedCellInfoCollection.length;i<o;i++){var r=this.mergeCells.mergedCellInfoCollection[i],s=new a.CellCoords(r.row,r.col),l=new a.CellCoords(r.row+r.rowspan-1,r.col+r.colspan-1),d=new a.CellRange(s,s,l);t.expandByRange(d)&&(e.row=t.to.row,e.col=t.to.col,n=!0)}}while(n)}}),c.add("beforeDrawBorders",function(e,t){if(t&&"area"==t&&this.getSettings().mergeCells)for(var n=this.getSelectedRange(),i=new a.CellRange(n.from,n.from,n.from),o=new a.CellRange(n.to,n.to,n.to),r=0,s=this.mergeCells.mergedCellInfoCollection.length;r<s;r++){var l=this.mergeCells.mergedCellInfoCollection[r],d=new a.CellCoords(l.row,l.col),c=new a.CellCoords(l.row+l.rowspan-1,l.col+l.colspan-1),u=new a.CellRange(d,d,c);i.expandByRange(u)&&(e[0]=i.from.row,e[1]=i.from.col),o.expandByRange(u)&&(e[2]=o.from.row,e[3]=o.from.col)}}),c.add("afterIsMultipleSelection",function(e){if(e&&this.mergeCells){var t=this.mergeCells.mergedCellInfoCollection,n=this.getSelectedRange();for(var i in t)if(n.highlight.row==t[i].row&&n.highlight.col==t[i].col&&n.to.row==t[i].row+t[i].rowspan-1&&n.to.col==t[i].col+t[i].colspan-1)return!1}return e}),c.add("afterRenderer",function(e,t,n,i,o,r){this.mergeCells&&this.mergeCells.applySpanProperties(e,t,n)}),c.add("afterContextMenuDefaultOptions",function(e){this.getSettings().mergeCells&&(e.items.push({name:"---------"}),e.items.push({key:"mergeCells",name:function(){var e=this.getSelected();return this.mergeCells.mergedCellInfoCollection.getInfo(e[0],e[1])?"Unmerge cells":"Merge cells"},callback:function(){this.mergeCells.mergeOrUnmergeSelection(this.getSelectedRange()),this.render()},disabled:function(){return this.selection.selectedHeader.corner}}))}),c.add("afterGetCellMeta",function(e,t,n){if(this.getSettings().mergeCells){var i=this.mergeCells.mergedCellInfoCollection.getInfo(e,t);!i||i.row==e&&i.col==t||(n.copyable=!1)}}),c.add("afterViewportRowCalculatorOverride",function e(t){if(this.getSettings().mergeCells)for(var n,i=this.countCols(),o=0;o<i;o++){if((n=this.mergeCells.mergedCellInfoCollection.getInfo(t.startRow,o))&&n.row<t.startRow)return t.startRow=n.row,e.call(this,t);if(n=this.mergeCells.mergedCellInfoCollection.getInfo(t.endRow,o)){var r=n.row+n.rowspan-1;if(r>t.endRow)return t.endRow=r,e.call(this,t)}}}),c.add("afterViewportColumnCalculatorOverride",function e(t){if(this.getSettings().mergeCells)for(var n,i=this.countRows(),o=0;o<i;o++){if((n=this.mergeCells.mergedCellInfoCollection.getInfo(o,t.startColumn))&&n.col<t.startColumn)return t.startColumn=n.col,e.call(this,t);if(n=this.mergeCells.mergedCellInfoCollection.getInfo(o,t.endColumn)){var r=n.col+n.colspan-1;if(r>t.endColumn)return t.endColumn=r,e.call(this,t)}}}),c.add("modifyAutofillRange",function(e,t){if(this.getSettings().mergeCells&&!this.selection.isMultiple()){var n=this.mergeCells.mergedCellInfoCollection.getInfo(e[0],e[1]);n&&(e[0]=n.row,e[1]=n.col,e[2]=n.row+n.rowspan-1,e[3]=n.col+n.colspan-1)}}),c.add("afterCreateCol",function(e,t){this.mergeCells&&this.mergeCells.shiftCollection("right",e,t)}),c.add("afterRemoveCol",function(e,t){this.mergeCells&&this.mergeCells.shiftCollection("left",e,t)}),c.add("afterCreateRow",function(e,t){this.mergeCells&&this.mergeCells.shiftCollection("down",e,t)}),c.add("afterRemoveRow",function(e,t){this.mergeCells&&this.mergeCells.shiftCollection("up",e,t)}),t.default=l},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=(c(n(8)),n(0)),r=n(25),a=c(n(12)),s=c(n(4)),l=n(5),d=n(11);function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.dragged=[],n.eventManager=null,n.lastSetCell=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),i(t,[{key:"isEnabled",value:function(){return(0,r.isMobileBrowser)()}},{key:"enablePlugin",value:function(){this.enabled||(this.eventManager||(this.eventManager=new s.default(this)),this.registerListeners(),function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"registerListeners",value:function(){var e=this;function t(t){if(1===e.dragged.length)return e.dragged.splice(0,e.dragged.length),!0;var n=e.dragged.indexOf(t);if(-1==n)return!1;0===n?e.dragged=e.dragged.slice(0,1):1==n&&(e.dragged=e.dragged.slice(-1))}this.eventManager.addEventListener(this.hot.rootElement,"touchstart",function(t){var n=void 0;return(0,o.hasClass)(t.target,"topLeftSelectionHandle-HitArea")?(n=e.hot.getSelectedRange(),e.dragged.push("topLeft"),e.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},t.preventDefault(),!1):(0,o.hasClass)(t.target,"bottomRightSelectionHandle-HitArea")?(n=e.hot.getSelectedRange(),e.dragged.push("bottomRight"),e.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},t.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchend",function(n){return(0,o.hasClass)(n.target,"topLeftSelectionHandle-HitArea")?(t.call(e,"topLeft"),e.touchStartRange=void 0,n.preventDefault(),!1):(0,o.hasClass)(n.target,"bottomRightSelectionHandle-HitArea")?(t.call(e,"bottomRight"),e.touchStartRange=void 0,n.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchmove",function(t){var n,i=(0,o.getWindowScrollTop)(),r=(0,o.getWindowScrollLeft)(),a=void 0,s=void 0,l=void 0,d=void 0,c=void 0,u=void 0;0!==e.dragged.length&&(n=document.elementFromPoint(t.touches[0].screenX-r,t.touches[0].screenY-i))&&n!==e.lastSetCell&&("TD"!=n.nodeName&&"TH"!=n.nodeName||(-1==(a=e.hot.getCoords(n)).col&&(a.col=0),l=(s=e.hot.getSelectedRange()).getWidth(),d=s.getHeight(),c=s.getDirection(),1==l&&1==d&&e.hot.selection.setRangeEnd(a),null!==(u=e.getCurrentRangeCoords(s,a,e.touchStartRange.direction,c,e.dragged[0])).start&&e.hot.selection.setRangeStart(u.start),e.hot.selection.setRangeEnd(u.end),e.lastSetCell=n),t.preventDefault())})}},{key:"getCurrentRangeCoords",value:function(e,t,n,i,o){var r=e.getTopLeftCorner(),a=e.getBottomRightCorner(),s=e.getBottomLeftCorner(),l=e.getTopRightCorner(),c={start:null,end:null};switch(n){case"NE-SW":switch(i){case"NE-SW":case"NW-SE":c="topLeft"==o?{start:new d.CellCoords(t.row,e.highlight.col),end:new d.CellCoords(s.row,t.col)}:{start:new d.CellCoords(e.highlight.row,t.col),end:new d.CellCoords(t.row,r.col)};break;case"SE-NW":"bottomRight"==o&&(c={start:new d.CellCoords(a.row,t.col),end:new d.CellCoords(t.row,r.col)})}break;case"NW-SE":switch(i){case"NE-SW":"topLeft"==o?c={start:t,end:s}:c.end=t;break;case"NW-SE":"topLeft"==o?c={start:t,end:a}:c.end=t;break;case"SE-NW":"topLeft"==o?c={start:t,end:r}:c.end=t;break;case"SW-NE":"topLeft"==o?c={start:t,end:l}:c.end=t}break;case"SW-NE":switch(i){case"NW-SE":c="bottomRight"==o?{start:new d.CellCoords(t.row,r.col),end:new d.CellCoords(s.row,t.col)}:{start:new d.CellCoords(r.row,t.col),end:new d.CellCoords(t.row,a.col)};break;case"SW-NE":c="topLeft"==o?{start:new d.CellCoords(e.highlight.row,t.col),end:new d.CellCoords(t.row,a.col)}:{start:new d.CellCoords(t.row,r.col),end:new d.CellCoords(r.row,t.col)};break;case"SE-NW":"bottomRight"==o?c={start:new d.CellCoords(t.row,l.col),end:new d.CellCoords(r.row,t.col)}:"topLeft"==o&&(c={start:s,end:t})}break;case"SE-NW":switch(i){case"NW-SE":case"NE-SW":case"SW-NE":"topLeft"==o&&(c.end=t);break;case"SE-NW":"topLeft"==o?c.end=t:c={start:t,end:r}}}return c}},{key:"isDragged",value:function(){return this.dragged.length>0}}]),t}();(0,l.registerPlugin)("multipleSelectionHandles",u),t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=l(n(133)),r=l(n(150)),a=n(2),s=n(255);function l(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.observedData=null,this.observer=null,this.paused=!1,this.setObservedData(t)}return i(e,[{key:"setObservedData",value:function(e){var t=this;this.observer&&o.default.unobserve(this.observedData,this.observer),this.observedData=e,this.observer=o.default.observe(this.observedData,function(e){return t.onChange(e)})}},{key:"isPaused",value:function(){return this.paused}},{key:"pause",value:function(){this.paused=!0}},{key:"resume",value:function(){this.paused=!1}},{key:"onChange",value:function(e){this.runLocalHooks("change",(0,s.cleanPatches)(e))}},{key:"destroy",value:function(){o.default.unobserve(this.observedData,this.observer),this.observedData=null,this.observer=null}}]),e}();(0,a.mixin)(d,r.default),t.default=d},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=d(n(12)),a=(d(n(133)),d(n(253))),s=n(1),l=n(5);function d(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.observer=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),i(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().observeChanges}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.observer||(this.observer=new a.default(this.hot.getSourceData()),this._exposePublicApi()),this.observer.addLocalHook("change",function(t){return e.onDataChange(t)}),this.addHook("afterCreateRow",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveRow",function(){return e.onAfterTableAlter()}),this.addHook("afterCreateCol",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveCol",function(){return e.onAfterTableAlter()}),this.addHook("afterChange",function(t,n){return e.onAfterTableAlter(n)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.observer&&(this.observer.destroy(),this.observer=null,this._deletePublicApi()),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"onDataChange",value:function(e){var t=this;if(!this.observer.isPaused()){var n=this.pluginName+".change",i={add:function(e){isNaN(e.col)?t.hot.runHooks("afterCreateRow",e.row,1,n):t.hot.runHooks("afterCreateCol",e.col,1,n)},remove:function(e){isNaN(e.col)?t.hot.runHooks("afterRemoveRow",e.row,1,n):t.hot.runHooks("afterRemoveCol",e.col,1,n)},replace:function(e){t.hot.runHooks("afterChange",[e.row,e.col,null,e.value],n)}};(0,s.arrayEach)(e,function(e){i[e.op]&&i[e.op](e)}),this.hot.render()}this.hot.runHooks("afterChangesObserved")}},{key:"onAfterTableAlter",value:function(e){var t=this;"loadData"!==e&&(this.observer.pause(),this.hot.addHookOnce("afterChangesObserved",function(){return t.observer.resume()}))}},{key:"onAfterLoadData",value:function(e){e||this.observer.setObservedData(this.hot.getSourceData())}},{key:"destroy",value:function(){this.observer&&(this.observer.destroy(),this._deletePublicApi()),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"_exposePublicApi",value:function(){var e=this,t=this.hot;t.pauseObservingChanges=function(){return e.observer.pause()},t.resumeObservingChanges=function(){return e.observer.resume()},t.isPausedObservingChanges=function(){return e.observer.isPaused()}}},{key:"_deletePublicApi",value:function(){var e=this.hot;delete e.pauseObservingChanges,delete e.resumeObservingChanges,delete e.isPausedObservingChanges}}]),t}();t.default=c,(0,l.registerPlugin)("observeChanges",c)},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")};t.cleanPatches=function(e){var t=[];return e=(0,o.arrayFilter)(e,function(e){return!/[/]length/gi.test(e.path)&&!!r(e.path)}),e=(0,o.arrayMap)(e,function(e){var t=r(e.path);return e.row=t.row,e.col=t.col,e}),e=(0,o.arrayFilter)(e,function(e){if(-1!==["add","remove"].indexOf(e.op)&&!isNaN(e.col)){if(-1!==t.indexOf(e.col))return!1;t.push(e.col)}return!0}),t.length=0,e},t.parsePath=r;var o=n(1);function r(e){var t=e.match(/^\/(\d+)\/?(.*)?$/);if(!t)return null;var n=i(t,3),o=n[1],r=n[2];return{row:parseInt(o,10),col:/^\d*$/.test(r)?parseInt(r,10):r}}},function(e,t,n){"use strict";t.__esModule=!0;var i,o=(i=n(8))&&i.__esModule?i:{default:i},r=(n(5),n(2));function a(){var e=this;this.init=function(){var n=this.getSettings().persistentState;e.enabled=!!n,e.enabled?(this.storage||(this.storage=new function(e){var t,n,i,o=function(){window.localStorage[e+"__persistentStateKeys"]=JSON.stringify(t)};i="string"==typeof(n=window.localStorage[e+"__persistentStateKeys"])?JSON.parse(n):void 0,t=i||[],this.saveValue=function(n,i){window.localStorage[e+"_"+n]=JSON.stringify(i),-1==t.indexOf(n)&&(t.push(n),o())},this.loadValue=function(t,n){t=void 0===t?n:t;var i=window.localStorage[e+"_"+t];return void 0===i?void 0:JSON.parse(i)},this.reset=function(t){window.localStorage.removeItem(e+"_"+t)},this.resetAll=function(){for(var n=0;n<t.length;n++)window.localStorage.removeItem(e+"_"+t[n]);t=[],o()}}(this.rootElement.id)),this.resetState=e.resetValue,function(){for(var e in t)(0,r.hasOwnProperty)(t,e)&&this.addHook(e,t[e])}.call(this)):function(){for(var e in t)(0,r.hasOwnProperty)(t,e)&&this.removeHook(e,t[e])}.call(this)},this.saveValue=function(e,t){this.storage.saveValue(e,t)},this.loadValue=function(e,t){t.value=this.storage.loadValue(e)},this.resetValue=function(e){void 0===e?this.storage.resetAll():this.storage.reset(e)};var t={persistentStateSave:e.saveValue,persistentStateLoad:e.loadValue,persistentStateReset:e.resetValue};for(var n in t)(0,r.hasOwnProperty)(t,n)&&o.default.getSingleton().register(n)}var s=new a;o.default.getSingleton().add("beforeInit",s.init),o.default.getSingleton().add("afterUpdateSettings",s.init),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var i,o,r,a,s="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},l=(i=n(8))&&i.__esModule?i:{default:i},d=n(0),c=n(9);function u(e){this.query=function(t,n,i){var o=e.countRows(),r=e.countCols(),a=[];n||(n=u.global.getDefaultCallback()),i||(i=u.global.getDefaultQueryMethod());for(var s=0;s<o;s++)for(var l=0;l<r;l++){var d=e.getDataAtCell(s,l),c=e.getCellMeta(s,l),h=c.search.callback||n,f=(c.search.queryMethod||i)(t,d);if(f){var p={row:s,col:l,data:d};a.push(p)}h&&h(e,s,l,d,f)}return a}}u.DEFAULT_CALLBACK=function(e,t,n,i,o){e.getCellMeta(t,n).isSearchResult=o},u.DEFAULT_QUERY_METHOD=function(e,t){return!(void 0===e||null==e||!e.toLowerCase||0===e.length)&&void 0!==t&&null!=t&&-1!=t.toString().toLowerCase().indexOf(e.toLowerCase())},u.DEFAULT_SEARCH_RESULT_CLASS="htSearchResult",u.global=(o=u.DEFAULT_CALLBACK,r=u.DEFAULT_QUERY_METHOD,a=u.DEFAULT_SEARCH_RESULT_CLASS,{getDefaultCallback:function(){return o},setDefaultCallback:function(e){o=e},getDefaultQueryMethod:function(){return r},setDefaultQueryMethod:function(e){r=e},getDefaultSearchResultClass:function(){return a},setDefaultSearchResultClass:function(e){a=e}});var h=(0,c.getRenderer)("base");function f(){this.getSettings().search?this.search=new u(this):delete this.search}(0,c.registerRenderer)("base",function(e,t,n,i,o,r,a){h.apply(this,arguments),function(e,t,n,i,o,r,a){var l=null!==a.search&&"object"==s(a.search)&&a.search.searchResultClass||u.global.getDefaultSearchResultClass();a.isSearchResult?(0,d.addClass)(t,l):(0,d.removeClass)(t,l)}.apply(this,arguments)}),l.default.getSingleton().add("afterInit",f),l.default.getSingleton().add("afterUpdateSettings",f),t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=n(0),s=n(1),l=(i=n(12))&&i.__esModule?i:{default:i},d=n(5),c=n(34),u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollbars=[],n.clones=[],n.lockedCollection=!1,n.freezeOverlays=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default),o(t,[{key:"isEnabled",value:function(){return(0,c.isTouchSupported)()}},{key:"enablePlugin",value:function(){var e=this;this.enabled||(this.addHook("afterRender",function(){return e.onAfterRender()}),this.registerEvents(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.lockedCollection=!1,r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var e=this;this.addHook("beforeTouchScroll",function(){return e.onBeforeTouchScroll()}),this.addHook("afterMomentumScroll",function(){return e.onAfterMomentumScroll()})}},{key:"onAfterRender",value:function(){if(!this.lockedCollection){var e=this.hot.view.wt.wtOverlays,t=e.topOverlay,n=e.bottomOverlay,i=e.leftOverlay,o=e.topLeftCornerOverlay,r=e.bottomLeftCornerOverlay;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(t),n.clone&&this.scrollbars.push(n),this.scrollbars.push(i),o&&this.scrollbars.push(o),r&&r.clone&&this.scrollbars.push(r),this.clones.length=0,t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),i.needFullRender&&this.clones.push(i.clone.wtTable.holder.parentNode),o&&this.clones.push(o.clone.wtTable.holder.parentNode),r&&r.clone&&this.clones.push(r.clone.wtTable.holder.parentNode)}}},{key:"onBeforeTouchScroll",value:function(){this.freezeOverlays=!0,(0,s.arrayEach)(this.clones,function(e){(0,a.addClass)(e,"hide-tween")})}},{key:"onAfterMomentumScroll",value:function(){var e=this;this.freezeOverlays=!1,(0,s.arrayEach)(this.clones,function(e){(0,a.removeClass)(e,"hide-tween"),(0,a.addClass)(e,"show-tween")}),setTimeout(function(){(0,s.arrayEach)(e.clones,function(e){(0,a.removeClass)(e,"show-tween")})},400),(0,s.arrayEach)(this.scrollbars,function(e){e.refresh(),e.resetFixedPosition()}),this.hot.view.wt.wtOverlays.syncScrollWithMaster()}}]),t}();(0,d.registerPlugin)("touchScroll",u),t.default=u},function(e,t,n){"use strict";var i,o=(i=n(8))&&i.__esModule?i:{default:i},r=n(1),a=n(6),s=n(2),l=n(7),d=n(11);function c(e){var t=this;this.instance=e,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,e.addHook("afterChange",function(e,n){e&&"UndoRedo.undo"!==n&&"UndoRedo.redo"!==n&&t.done(new c.ChangeAction(e))}),e.addHook("afterCreateRow",function(e,n,i){if("UndoRedo.undo"!==i&&"UndoRedo.undo"!==i&&"auto"!==i){var o=new c.CreateRowAction(e,n);t.done(o)}}),e.addHook("beforeRemoveRow",function(e,n,i,o){if("UndoRedo.undo"!==o&&"UndoRedo.redo"!==o&&"auto"!==o){var r=t.instance.getSourceDataArray();e=(r.length+e)%r.length;var a=(0,s.deepClone)(r.slice(e,e+n));t.done(new c.RemoveRowAction(e,a))}}),e.addHook("afterCreateCol",function(e,n,i){"UndoRedo.undo"!==i&&"UndoRedo.redo"!==i&&"auto"!==i&&t.done(new c.CreateColumnAction(e,n))}),e.addHook("beforeRemoveCol",function(n,i,o,r){if("UndoRedo.undo"!==r&&"UndoRedo.redo"!==r&&"auto"!==r){var s=t.instance.getSourceDataArray();n=(t.instance.countCols()+n)%t.instance.countCols();var l=[],d=[],u=[];(0,a.rangeEach)(s.length-1,function(t){var o=[],r=s[t];(0,a.rangeEach)(n,n+(i-1),function(t){o.push(r[e.runHooks("modifyCol",t)])}),l.push(o)}),(0,a.rangeEach)(i-1,function(t){u.push(e.runHooks("modifyCol",n+t))}),Array.isArray(e.getSettings().colHeaders)&&(0,a.rangeEach)(i-1,function(t){d.push(e.getSettings().colHeaders[e.runHooks("modifyCol",n+t)]||null)});var h=t.instance.getPlugin("manualColumnMove"),f=h.isEnabled()?h.columnsMapper.__arrayMap:[],p=new c.RemoveColumnAction(n,u,l,d,f);t.done(p)}}),e.addHook("beforeCellAlignment",function(e,n,i,o){var r=new c.CellAlignmentAction(e,n,i,o);t.done(r)}),e.addHook("beforeFilter",function(e){t.done(new c.FiltersAction(e))}),e.addHook("beforeRowMove",function(e,n){!1!==e&&t.done(new c.RowMoveAction(e,n))})}function u(){var e;void 0===this.getSettings().undo||this.getSettings().undo?this.undoRedo||(this.undoRedo=new c(this),(e=this).undo=function(){return e.undoRedo.undo()},e.redo=function(){return e.undoRedo.redo()},e.isUndoAvailable=function(){return e.undoRedo.isUndoAvailable()},e.isRedoAvailable=function(){return e.undoRedo.isRedoAvailable()},e.clearUndo=function(){return e.undoRedo.clear()},this.addHook("beforeKeyDown",h),this.addHook("afterChange",f)):this.undoRedo&&(delete this.undoRedo,function(e){delete e.undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo}(this),this.removeHook("beforeKeyDown",h),this.removeHook("afterChange",f))}function h(e){(e.ctrlKey||e.metaKey)&&!e.altKey&&(89===e.keyCode||e.shiftKey&&90===e.keyCode?(this.undoRedo.redo(),(0,l.stopImmediatePropagation)(e)):90===e.keyCode&&(this.undoRedo.undo(),(0,l.stopImmediatePropagation)(e)))}function f(e,t){if("loadData"===t)return this.undoRedo.clear()}c.prototype.done=function(e){this.ignoreNewActions||(this.doneActions.push(e),this.undoneActions.length=0)},c.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.pop(),t=(0,s.deepClone)(e),n=this.instance;if(!1===n.runHooks("beforeUndo",t))return;this.ignoreNewActions=!0;var i=this;e.undo(this.instance,function(){i.ignoreNewActions=!1,i.undoneActions.push(e)}),n.runHooks("afterUndo",t)}},c.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.pop(),t=(0,s.deepClone)(e),n=this.instance;if(!1===n.runHooks("beforeRedo",t))return;this.ignoreNewActions=!0;var i=this;e.redo(this.instance,function(){i.ignoreNewActions=!1,i.doneActions.push(e)}),n.runHooks("afterRedo",t)}},c.prototype.isUndoAvailable=function(){return this.doneActions.length>0},c.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},c.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},c.Action=function(){},c.Action.prototype.undo=function(){},c.Action.prototype.redo=function(){},c.ChangeAction=function(e){this.changes=e,this.actionType="change"},(0,s.inherit)(c.ChangeAction,c.Action),c.ChangeAction.prototype.undo=function(e,t){for(var n=(0,s.deepClone)(this.changes),i=e.countEmptyRows(!0),o=e.countEmptyCols(!0),r=0,a=n.length;r<a;r++)n[r].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.undo");for(var l=0,d=n.length;l<d;l++)e.getSettings().minSpareRows&&n[l][0]+1+e.getSettings().minSpareRows===e.countRows()&&i==e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(n[l][0]+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&n[l][1]+1+e.getSettings().minSpareCols===e.countCols()&&o==e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(n[l][1]+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())},c.ChangeAction.prototype.redo=function(e,t){for(var n=(0,s.deepClone)(this.changes),i=0,o=n.length;i<o;i++)n[i].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.redo")},c.CreateRowAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_row"},(0,s.inherit)(c.CreateRowAction,c.Action),c.CreateRowAction.prototype.undo=function(e,t){var n=e.countRows(),i=e.getSettings().minSpareRows;this.index>=n&&this.index-i<n&&(this.index-=i),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")},c.CreateRowAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row",this.index,this.amount,"UndoRedo.redo")},c.RemoveRowAction=function(e,t){this.index=e,this.data=t,this.actionType="remove_row"},(0,s.inherit)(c.RemoveRowAction,c.Action),c.RemoveRowAction.prototype.undo=function(e,t){e.alter("insert_row",this.index,this.data.length,"UndoRedo.undo"),e.addHookOnce("afterRender",t),e.populateFromArray(this.index,0,this.data,void 0,void 0,"UndoRedo.undo")},c.RemoveRowAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")},c.CreateColumnAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_col"},(0,s.inherit)(c.CreateColumnAction,c.Action),c.CreateColumnAction.prototype.undo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")},c.CreateColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col",this.index,this.amount,"UndoRedo.redo")},c.RemoveColumnAction=function(e,t,n,i,o){this.index=e,this.indexes=t,this.data=n,this.amount=this.data[0].length,this.headers=i,this.columnPositions=o.slice(0),this.actionType="remove_col"},(0,s.inherit)(c.RemoveColumnAction,c.Action),c.RemoveColumnAction.prototype.undo=function(e,t){var n,i=this,o=void 0,s=this.indexes.slice(0).sort(),l=function(e,t,n){return n[i.indexes.indexOf(s[t])]},d=[];(0,a.rangeEach)(this.data.length-1,function(e){d[e]=(0,r.arrayMap)(i.data[e],l)}),n=(0,r.arrayMap)(this.headers,l);var c=[];e.runHooks("beforeCreateCol",this.indexes[0],this.indexes[this.indexes.length-1],"UndoRedo.undo"),(0,a.rangeEach)(this.data.length-1,function(t){o=e.getSourceDataAtRow(t),(0,a.rangeEach)(s.length-1,function(e){o.splice(s[e],0,d[t][e]),c.push([t,s[e],null,d[t][e]])})}),e.getPlugin("formulas")&&e.getPlugin("formulas").onAfterSetDataAtCell(c),void 0!==this.headers&&(0,a.rangeEach)(n.length-1,function(t){e.getSettings().colHeaders.splice(s[t],0,n[t])}),e.getPlugin("manualColumnMove")&&(e.getPlugin("manualColumnMove").columnsMapper.__arrayMap=this.columnPositions),e.addHookOnce("afterRender",t),e.runHooks("afterCreateCol",this.indexes[0],this.indexes[this.indexes.length-1],"UndoRedo.undo"),e.getPlugin("formulas")&&e.getPlugin("formulas").recalculateFull(),e.render()},c.RemoveColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")},c.CellAlignmentAction=function(e,t,n,i){this.stateBefore=e,this.range=t,this.type=n,this.alignment=i},c.CellAlignmentAction.prototype.undo=function(e,t){if(e.getPlugin("contextMenu").isEnabled()){for(var n=this.range.from.row;n<=this.range.to.row;n++)for(var i=this.range.from.col;i<=this.range.to.col;i++)e.setCellMeta(n,i,"className",this.stateBefore[n][i]||" htLeft");e.addHookOnce("afterRender",t),e.render()}},c.CellAlignmentAction.prototype.redo=function(e,t){e.getPlugin("contextMenu").isEnabled()&&(e.selectCell(this.range.from.row,this.range.from.col,this.range.to.row,this.range.to.col),e.getPlugin("contextMenu").executeCommand("alignment:"+this.alignment.replace("ht","").toLowerCase()),e.addHookOnce("afterRender",t),e.render())},c.FiltersAction=function(e){this.formulaStacks=e,this.actionType="filter"},(0,s.inherit)(c.FiltersAction,c.Action),c.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.formulaCollection.importAllFormulas(this.formulaStacks.slice(0,this.formulaStacks.length-1)),n.filter()},c.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.formulaCollection.importAllFormulas(this.formulaStacks),n.filter()},c.RowMoveAction=function(e,t){this.rows=e.slice(),this.target=t},(0,s.inherit)(c.RowMoveAction,c.Action),c.RowMoveAction.prototype.undo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t);for(var i=this.rows[0]<this.target?-1*this.rows.length:0,o=this.rows[0]>this.target?this.rows[0]+this.rows.length:this.rows[0],r=[],a=this.rows.length+i,s=i;s<a;s++)r.push(this.target+s);n.moveRows(r.slice(),o),e.render(),e.selection.setRangeStartOnly(new d.CellCoords(this.rows[0],0)),e.selection.setRangeEnd(new d.CellCoords(this.rows[this.rows.length-1],e.countCols()-1))},c.RowMoveAction.prototype.redo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t),n.moveRows(this.rows.slice(),this.target),e.render();var i=this.rows[0]<this.target?this.target-this.rows.length:this.target;e.selection.setRangeStartOnly(new d.CellCoords(i,0)),e.selection.setRangeEnd(new d.CellCoords(i+this.rows.length-1,e.countCols()-1))};var p=o.default.getSingleton();p.add("afterInit",u),p.add("afterUpdateSettings",u),p.register("beforeUndo"),p.register("afterUndo"),p.register("beforeRedo"),p.register("afterRedo")},function(e,t,n){"use strict";t.__esModule=!0;var i=n(0);t.default=function(e,t,n,o,r,a,s){s.className&&(t.className?t.className=t.className+" "+s.className:t.className=s.className),s.readOnly&&(0,i.addClass)(t,s.readOnlyCellClassName),!1===s.valid&&s.invalidCellClassName?(0,i.addClass)(t,s.invalidCellClassName):(0,i.removeClass)(t,s.invalidCellClassName),!1===s.wordWrap&&s.noWordWrapClassName&&(0,i.addClass)(t,s.noWordWrapClassName),!a&&s.placeholder&&(0,i.addClass)(t,s.placeholderCellClassName)}},function(e,t,n){"use strict";t.__esModule=!0;var i,o=n(0),r=(i=n(4))&&i.__esModule?i:{default:i},a=n(11),s=n(9),l=document.createElement("DIV");l.className="htAutocompleteWrapper";var d=document.createElement("DIV");d.className="htAutocompleteArrow",d.appendChild(document.createTextNode(String.fromCharCode(9660))),t.default=function(e,t,n,i,c,u,h){l.cloneNode(!0);var f=d.cloneNode(!0);if(h.allowHtml?(0,s.getRenderer)("html").apply(this,arguments):(0,s.getRenderer)("text").apply(this,arguments),t.appendChild(f),(0,o.addClass)(t,"htAutocomplete"),t.firstChild||t.appendChild(document.createTextNode(String.fromCharCode(160))),!e.acArrowListener){var p=new r.default(e);e.acArrowListener=function(r){(0,o.hasClass)(r.target,"htAutocompleteArrow")&&e.view.wt.getSetting("onCellDblClick",null,new a.CellCoords(n,i),t)},p.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",function(){p.destroy()})}}},function(e,t,n){"use strict";t.__esModule=!0;var i,o=n(0),r=n(27),a=(i=n(4))&&i.__esModule?i:{default:i},s=n(16),l=n(35),d=n(7),c=n(9),u=new WeakMap,h=new WeakMap;function f(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}t.default=function(e,t,n,i,p,m,g){(0,c.getRenderer)("base").apply(this,arguments),function(e){var t=h.get(e);t||((t=new a.default(e)).addEventListener(e.rootElement,"click",function(t){return function(e,t){if(!f(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),i=parseInt(e.target.getAttribute("data-col"),10);t.getCellMeta(n,i).readOnly&&e.preventDefault()}(t,e)}),t.addEventListener(e.rootElement,"mouseup",function(t){return function(e,t){f(e.target)&&setTimeout(t.listen,10)}(t,e)}),t.addEventListener(e.rootElement,"change",function(t){return function(e,t){if(!f(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),i=parseInt(e.target.getAttribute("data-col"),10),o=t.getCellMeta(n,i);if(!o.readOnly){var r;r=e.target.checked?void 0===o.uncheckedTemplate||o.checkedTemplate:void 0!==o.uncheckedTemplate&&o.uncheckedTemplate,t.setDataAtCell(n,i,r)}}(t,e)}),h.set(e,t))}(e);var y=function(){var e=document.createElement("input");return e.className="htCheckboxRendererInput",e.type="checkbox",e.setAttribute("autocomplete","off"),e.setAttribute("tabindex","-1"),e.cloneNode(!1)}(),v=g.label,A=!1;if(void 0===g.checkedTemplate&&(g.checkedTemplate=!0),void 0===g.uncheckedTemplate&&(g.uncheckedTemplate=!1),(0,o.empty)(t),m===g.checkedTemplate||(0,r.equalsIgnoreCase)(m,g.checkedTemplate)?y.checked=!0:m===g.uncheckedTemplate||(0,r.equalsIgnoreCase)(m,g.uncheckedTemplate)?y.checked=!1:null===m?(0,o.addClass)(y,"noValue"):(y.style.display="none",(0,o.addClass)(y,"htBadValue"),A=!0),y.setAttribute("data-row",n),y.setAttribute("data-col",i),!A&&v){var b="";v.value?b="function"==typeof v.value?v.value.call(this,n,i,p,m):v.value:v.property&&(b=e.getDataAtRowProp(n,v.property));var w=function(e){var t=document.createElement("label");return t.className="htCheckboxRendererLabel",t.appendChild(document.createTextNode(e)),t.cloneNode(!0)}(b);"before"===v.position?w.appendChild(y):w.insertBefore(y,w.firstChild),y=w}function _(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getSelectedRange();if(n){for(var i=n.getTopLeftCorner(),o=n.getBottomRightCorner(),r=[],a=i.row;a<=o.row;a+=1)for(var s=i.col;s<=o.col;s+=1){var l=e.getCellMeta(a,s);if("checkbox"!==l.type)return;if(!0!==l.readOnly){void 0===l.checkedTemplate&&(l.checkedTemplate=!0),void 0===l.uncheckedTemplate&&(l.uncheckedTemplate=!1);var d=e.getDataAtCell(a,s);!1===t?d===l.checkedTemplate?r.push([a,s,l.uncheckedTemplate]):-1!==[l.uncheckedTemplate,null,void 0].indexOf(d)&&r.push([a,s,l.checkedTemplate]):r.push([a,s,l.uncheckedTemplate])}}r.length>0&&e.setDataAtCell(r)}}t.appendChild(y),A&&t.appendChild(document.createTextNode("#bad-value#")),u.has(e)||(u.set(e,!0),e.addHook("beforeKeyDown",function(t){var n=(0,l.partial)(s.isKey,t.keyCode);n("SPACE|ENTER|DELETE|BACKSPACE")&&!(0,d.isImmediatePropagationStopped)(t)&&function(t){var n=e.getSelectedRange();if(n)for(var i=n.getTopLeftCorner(),o=n.getBottomRightCorner(),r=i.row;r<=o.row;r++)for(var a=i.col;a<=o.col;a++){var s=e.getCellMeta(r,a);if("checkbox"!==s.type)return;var l=e.getCell(r,a);if(null==l)t();else{var d=l.querySelectorAll("input[type=checkbox]");d.length>0&&!s.readOnly&&t()}}}(function(){(0,d.stopImmediatePropagation)(t),t.preventDefault()}),n("SPACE|ENTER")&&_(),n("DELETE|BACKSPACE")&&_(!0)}))}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(0),o=n(9);t.default=function(e,t,n,r,a,s,l){(0,o.getRenderer)("base").apply(this,arguments),null!==s&&void 0!==s||(s=""),(0,i.fastInnerHTML)(t,s)}},function(e,t,n){"use strict";t.__esModule=!0;var i,o=(i=n(86))&&i.__esModule?i:{default:i},r=n(9),a=n(6);t.default=function(e,t,n,i,s,l,d){if((0,a.isNumeric)(l)){void 0!==d.language&&o.default.culture(d.language),l=(0,o.default)(l).format(d.format||"0");var c=d.className||"",u=c.length?c.split(" "):[];u.indexOf("htLeft")<0&&u.indexOf("htCenter")<0&&u.indexOf("htRight")<0&&u.indexOf("htJustify")<0&&u.push("htRight"),u.indexOf("htNumeric")<0&&u.push("htNumeric"),d.className=u.join(" ")}(0,r.getRenderer)("text")(e,t,n,i,s,l,d)}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(0),o=n(9),r=n(6);t.default=function(e,t,n,a,s,l,d){(0,o.getRenderer)("text").apply(this,arguments),l=t.innerHTML;var c=d.hashLength||l.length,u=d.hashSymbol||"*",h="";(0,r.rangeEach)(c-1,function(){h+=u}),(0,i.fastInnerHTML)(t,h)}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(0),o=n(20),r=n(9);t.default=function(e,t,n,a,s,l,d){(0,r.getRenderer)("base").apply(this,arguments),!l&&d.placeholder&&(l=d.placeholder);var c=(0,o.stringify)(l);if(e.getSettings().trimWhitespace||(c=c.replace(/ /g,String.fromCharCode(160))),d.rendererTemplate){(0,i.empty)(t);var u=document.createElement("TEMPLATE");u.setAttribute("bind","{{}}"),u.innerHTML=d.rendererTemplate,HTMLTemplateElement.decorate(u),u.model=e.getSourceDataAtRow(n),t.appendChild(u)}else(0,i.fastInnerText)(t,c)}},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=n(0),r=n(25),a=c(n(4)),s=n(7),l=n(11),d=c(l);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=this,n=this;this.eventManager=new a.default(e),this.instance=e,this.settings=e.getSettings(),this.selectionMouseDown=!1;var i=e.rootElement.getAttribute("style");i&&e.rootElement.setAttribute("data-originalstyle",i),(0,o.addClass)(e.rootElement,"handsontable");var c,u=document.createElement("TABLE");(0,o.addClass)(u,"htCore"),e.getSettings().tableClassName&&(0,o.addClass)(u,e.getSettings().tableClassName),this.THEAD=document.createElement("THEAD"),u.appendChild(this.THEAD),this.TBODY=document.createElement("TBODY"),u.appendChild(this.TBODY),e.table=u,e.container.insertBefore(u,e.container.firstChild),this.eventManager.addEventListener(e.rootElement,"mousedown",function(e){this.selectionMouseDown=!0,n.isTextSelectionAllowed(e.target)||(h(),e.preventDefault(),window.focus())}),this.eventManager.addEventListener(e.rootElement,"mouseup",function(e){this.selectionMouseDown=!1}),this.eventManager.addEventListener(e.rootElement,"mousemove",function(e){this.selectionMouseDown&&!n.isTextSelectionAllowed(e.target)&&(h(),e.preventDefault())}),this.eventManager.addEventListener(document.documentElement,"keyup",function(t){e.selection.isInProgress()&&!t.shiftKey&&e.selection.finish()}),this.isMouseDown=function(){return c},this.eventManager.addEventListener(document.documentElement,"mouseup",function(t){e.selection.isInProgress()&&1===t.which&&e.selection.finish(),c=!1,(0,o.isOutsideInput)(document.activeElement)&&e.unlisten()}),this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){var i=t.target,r=t.target,a=t.x||t.clientX,s=t.y||t.clientY;if(!c&&e.rootElement){if(r===e.view.wt.wtTable.holder){var l=(0,o.getScrollbarWidth)();if(document.elementFromPoint(a+l,s)!==e.view.wt.wtTable.holder||document.elementFromPoint(a,s+l)!==e.view.wt.wtTable.holder)return}else for(;r!==document.documentElement;){if(null===r){if(t.isTargetWebComponent)break;return}if(r===e.rootElement)return;r=r.parentNode}("function"==typeof n.settings.outsideClickDeselects?n.settings.outsideClickDeselects(i):n.settings.outsideClickDeselects)?e.deselectCell():e.destroyEditor()}}),this.eventManager.addEventListener(u,"selectstart",function(e){n.settings.fragmentSelection||(0,o.isInput)(e.target)||e.preventDefault()});var h=function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},f=[new l.Selection({className:"current",border:{width:2,color:"#5292F7",cornerVisible:function(){return n.settings.fillHandle&&!n.isCellEdited()&&!e.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!n.isCellEdited()&&!e.selection.isMultiple()}}}),new l.Selection({className:"area",border:{width:1,color:"#89AFF9",cornerVisible:function(){return n.settings.fillHandle&&!n.isCellEdited()&&e.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!n.isCellEdited()&&e.selection.isMultiple()}}}),new l.Selection({className:"highlight",highlightHeaderClassName:n.settings.currentHeaderClassName,highlightRowClassName:n.settings.currentRowClassName,highlightColumnClassName:n.settings.currentColClassName}),new l.Selection({className:"fill",border:{width:1,color:"red"}})];f.current=f[0],f.area=f[1],f.highlight=f[2],f.fill=f[3];var p={debug:function(){return n.settings.debug},externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:u,preventOverflow:function(){return t.settings.preventOverflow},stretchH:function(){return n.settings.stretchH},data:e.getDataAtCell,totalRows:function(){return e.countRows()},totalColumns:function(){return e.countCols()},fixedColumnsLeft:function(){return n.settings.fixedColumnsLeft},fixedRowsTop:function(){return n.settings.fixedRowsTop},fixedRowsBottom:function(){return n.settings.fixedRowsBottom},minSpareRows:function(){return n.settings.minSpareRows},renderAllRows:n.settings.renderAllRows,rowHeaders:function(){var t=[];return e.hasRowHeaders()&&t.push(function(e,t){n.appendRowHeader(e,t)}),e.runHooks("afterGetRowHeaderRenderers",t),t},columnHeaders:function(){var t=[];return e.hasColHeaders()&&t.push(function(e,t){n.appendColHeader(e,t)}),e.runHooks("afterGetColumnHeaderRenderers",t),t},columnWidth:e.getColWidth,rowHeight:e.getRowHeight,cellRenderer:function(e,t,i){var o=n.instance.getCellMeta(e,t),r=n.instance.colToProp(t),a=n.instance.getDataAtRowProp(e,r);n.instance.hasHook("beforeValueRender")&&(a=n.instance.runHooks("beforeValueRender",a)),n.instance.runHooks("beforeRenderer",i,e,t,r,a,o),n.instance.getCellRenderer(o)(n.instance,i,e,t,r,a,o),n.instance.runHooks("afterRenderer",i,e,t,r,a,o)},selections:f,hideBorderOnMouseDownOver:function(){return n.settings.fragmentSelection},onCellMouseDown:function(t,i,o,r){var a={row:!1,column:!1,cells:!1};if(e.listen(),n.activeWt=r,c=!0,e.runHooks("beforeOnCellMouseDown",t,i,o,a),!(0,s.isImmediatePropagationStopped)(t)){var d=e.getSelectedRange(),u=e.selection,h=u.selectedHeader;if(t.shiftKey&&d)i.row>=0&&i.col>=0&&!a.cells?(u.setSelectedHeaders(!1,!1),u.setRangeEnd(i)):(h.cols||h.rows)&&i.row>=0&&i.col>=0&&!a.cells?(u.setSelectedHeaders(!1,!1),u.setRangeEnd(new l.CellCoords(i.row,i.col))):h.cols&&i.row<0&&!a.column?u.setRangeEnd(new l.CellCoords(d.to.row,i.col)):h.rows&&i.col<0&&!a.row?u.setRangeEnd(new l.CellCoords(i.row,d.to.col)):(!h.cols&&!h.rows&&i.col<0||h.cols&&i.col<0)&&!a.row?(u.setSelectedHeaders(!0,!1),u.setRangeStartOnly(new l.CellCoords(d.from.row,0)),u.setRangeEnd(new l.CellCoords(i.row,e.countCols()-1))):(!h.cols&&!h.rows&&i.row<0||h.rows&&i.row<0)&&!a.column&&(u.setSelectedHeaders(!1,!0),u.setRangeStartOnly(new l.CellCoords(0,d.from.col)),u.setRangeEnd(new l.CellCoords(e.countRows()-1,i.col)));else{var f=!0;if(d){var p=d.from,m=d.to,g=!u.inInSelection(i);if(i.row<0&&h.cols){var y=Math.min(p.col,m.col),v=Math.max(p.col,m.col);f=i.col<y||i.col>v}else if(i.col<0&&h.rows){var A=Math.min(p.row,m.row),b=Math.max(p.row,m.row);f=i.row<A||i.row>b}else f=g}var w=(0,s.isRightClick)(t),_=(0,s.isLeftClick)(t)||"touchstart"===t.type;i.row<0&&i.col>=0&&!a.column?(u.setSelectedHeaders(!1,!0),(_||w&&f)&&(u.setRangeStartOnly(new l.CellCoords(0,i.col)),u.setRangeEnd(new l.CellCoords(Math.max(e.countRows()-1,0),i.col),!1))):i.col<0&&i.row>=0&&!a.row?(u.setSelectedHeaders(!0,!1),(_||w&&f)&&(u.setRangeStartOnly(new l.CellCoords(i.row,0)),u.setRangeEnd(new l.CellCoords(i.row,Math.max(e.countCols()-1,0)),!1))):i.col>=0&&i.row>=0&&!a.cells?(_||w&&f)&&(u.setSelectedHeaders(!1,!1),u.setRangeStart(i)):i.col<0&&i.row<0&&(i.row=0,i.col=0,u.setSelectedHeaders(!1,!1,!0),u.setRangeStart(i))}e.runHooks("afterOnCellMouseDown",t,i,o),n.activeWt=n.wt}},onCellMouseOut:function(t,i,o,r){n.activeWt=r,e.runHooks("beforeOnCellMouseOut",t,i,o),(0,s.isImmediatePropagationStopped)(t)||(e.runHooks("afterOnCellMouseOut",t,i,o),n.activeWt=n.wt)},onCellMouseOver:function(t,i,o,r){var a={row:!1,column:!1,cell:!1};n.activeWt=r,e.runHooks("beforeOnCellMouseOver",t,i,o,a),(0,s.isImmediatePropagationStopped)(t)||(0===t.button&&c&&(i.row>=0&&i.col,e.selection.selectedHeader.cols&&!a.column?e.selection.setRangeEnd(new l.CellCoords(e.countRows()-1,i.col),!1):e.selection.selectedHeader.rows&&!a.row?e.selection.setRangeEnd(new l.CellCoords(i.row,e.countCols()-1),!1):a.cell||e.selection.setRangeEnd(i)),e.runHooks("afterOnCellMouseOver",t,i,o),n.activeWt=n.wt)},onCellMouseUp:function(t,i,o,r){n.activeWt=r,e.runHooks("beforeOnCellMouseUp",t,i,o),e.runHooks("afterOnCellMouseUp",t,i,o),n.activeWt=n.wt},onCellCornerMouseDown:function(t){t.preventDefault(),e.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(e,t){n.beforeRender(e,t)},onDraw:function(e){n.onDraw(e)},onScrollVertically:function(){e.runHooks("afterScrollVertically")},onScrollHorizontally:function(){e.runHooks("afterScrollHorizontally")},onBeforeDrawBorders:function(t,n){e.runHooks("beforeDrawBorders",t,n)},onBeforeTouchScroll:function(){e.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){e.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){return e.runHooks("beforeStretchingColumnWidth",t,n)},onModifyRowHeaderWidth:function(t){return e.runHooks("modifyRowHeaderWidth",t)},viewportRowCalculatorOverride:function(t){var i=e.countRows(),o=n.settings.viewportRowRenderingOffset;if("auto"===o&&n.settings.fixedRowsTop&&(o=10),"number"==typeof o&&(t.startRow=Math.max(t.startRow-o,0),t.endRow=Math.min(t.endRow+o,i-1)),"auto"===o){var r=t.startRow+t.endRow-t.startRow,a=Math.ceil(r/i*12);t.startRow=Math.max(t.startRow-a,0),t.endRow=Math.min(t.endRow+a,i-1)}e.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var i=e.countCols(),o=n.settings.viewportColumnRenderingOffset;if("auto"===o&&n.settings.fixedColumnsLeft&&(o=10),"number"==typeof o&&(t.startColumn=Math.max(t.startColumn-o,0),t.endColumn=Math.min(t.endColumn+o,i-1)),"auto"===o){var r=t.startColumn+t.endColumn-t.startColumn,a=Math.ceil(r/i*12);t.startRow=Math.max(t.startColumn-a,0),t.endColumn=Math.min(t.endColumn+a,i-1)}e.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return n.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.runHooks("modifyColumnHeaderHeight");return n.settings.columnHeaderHeight||t}};e.runHooks("beforeInitWalkontable",p),this.wt=new d.default(p),this.activeWt=this.wt,(0,r.isChrome)()||(0,r.isSafari)()||this.eventManager.addEventListener(e.rootElement,"wheel",function(e){e.preventDefault();var t=parseInt((0,o.getComputedStyle)(document.body)["font-size"],10),i=n.wt.wtOverlays.scrollableElement,r=e.wheelDeltaY||e.deltaY,a=e.wheelDeltaX||e.deltaX;switch(e.deltaMode){case 0:i.scrollLeft+=a,i.scrollTop+=r;break;case 1:i.scrollLeft+=a*t,i.scrollTop+=r*t}}),this.eventManager.addEventListener(n.wt.wtTable.spreader,"mousedown",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&(0,s.stopPropagation)(e)}),this.eventManager.addEventListener(n.wt.wtTable.spreader,"contextmenu",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&(0,s.stopPropagation)(e)}),this.eventManager.addEventListener(document.documentElement,"click",function(){n.settings.observeDOMVisibility&&n.wt.drawInterrupted&&(n.instance.forceFullRender=!0,n.render())})}u.prototype.isTextSelectionAllowed=function(e){if((0,o.isInput)(e))return!0;var t=(0,o.isChildOf)(e,this.instance.view.wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell())},u.prototype.isSelectedOnlyCell=function(){var e=this.instance.getSelected()||[],t=i(e,4),n=t[0],o=t[1],r=t[2],a=t[3];return void 0!==n&&n===r&&o===a},u.prototype.isCellEdited=function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()},u.prototype.beforeRender=function(e,t){e&&this.instance.runHooks("beforeRender",this.instance.forceFullRender,t)},u.prototype.onDraw=function(e){e&&this.instance.runHooks("afterRender",this.instance.forceFullRender)},u.prototype.render=function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1},u.prototype.getCellAtCoords=function(e,t){var n=this.wt.getCell(e,t);return n<0?null:n},u.prototype.scrollViewport=function(e){this.wt.scrollViewport(e)},u.prototype.appendRowHeader=function(e,t){if(t.firstChild){var n=t.firstChild;if(!(0,o.hasClass)(n,"relative"))return(0,o.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var i=document.createElement("div"),r=document.createElement("span");i.className="relative",r.className="rowHeader",this.updateCellHeader(r,e,this.instance.getRowHeader),i.appendChild(r),t.appendChild(i)}this.instance.runHooks("afterGetRowHeader",e,t)},u.prototype.appendColHeader=function(e,t){if(t.firstChild){var n=t.firstChild;(0,o.hasClass)(n,"relative")?this.updateCellHeader(n.querySelector(".colHeader"),e,this.instance.getColHeader):((0,o.empty)(t),this.appendColHeader(e,t))}else{var i=document.createElement("div"),r=document.createElement("span");i.className="relative",r.className="colHeader",this.updateCellHeader(r,e,this.instance.getColHeader),i.appendChild(r),t.appendChild(i)}this.instance.runHooks("afterGetColHeader",e,t)},u.prototype.updateCellHeader=function(e,t,n){var i=t,r=this.wt.wtOverlays.getParentOverlay(e)||this.wt;e.parentNode&&((0,o.hasClass)(e,"colHeader")?i=r.wtTable.columnFilter.sourceToRendered(t):(0,o.hasClass)(e,"rowHeader")&&(i=r.wtTable.rowFilter.sourceToRendered(t))),i>-1?(0,o.fastInnerHTML)(e,n(t)):((0,o.fastInnerText)(e,String.fromCharCode(160)),(0,o.addClass)(e,"cornerHeader"))},u.prototype.maximumVisibleElementWidth=function(e){var t=this.wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0},u.prototype.maximumVisibleElementHeight=function(e){var t=this.wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0},u.prototype.mainViewIsActive=function(){return this.wt===this.activeWt},u.prototype.destroy=function(){this.wt.destroy(),this.eventManager.destroy()},t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function e(t){o(this,e),this.data=t,this.next=null,this.prev=null},a=function(){function e(){o(this,e),this.first=null,this.last=null}return i(e,[{key:"push",value:function(e){var t=new r(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.last;this.last=t,t.prev=n,n.next=t}}},{key:"unshift",value:function(e){var t=new r(e);if(null===this.first)this.first=t,this.last=t;else{var n=this.first;this.first=t,t.next=n,n.prev=t}}},{key:"inorder",value:function(e){for(var t=this.first;t;)e(t),t=t.next}},{key:"remove",value:function(e){if(null===this.first)return!1;for(var t=this.first,n=void 0,i=void 0;t;){if(t.data===e)return n=t.next,i=t.prev,n&&(n.prev=i),i&&(i.next=n),t===this.first&&(this.first=n),t===this.last&&(this.last=i),!0;t=t.next}return!1}},{key:"hasCycle",value:function(){for(var e=this.first,t=this.first;;){if(null===e)return!1;if(null===(e=e.next))return!1;if((e=e.next)===(t=t.next))return!0}}},{key:"pop",value:function(){if(null===this.last)return null;var e=this.last;return this.last=this.last.prev,e}},{key:"shift",value:function(){if(null===this.first)return null;var e=this.first;return this.first=this.first.next,e}},{key:"recursiveReverse",value:function(){if(this.first){!function e(t,n){n&&(e(n,n.next),n.next=t)}(this.first,this.first.next),this.first.next=null;var e=this.first;this.first=this.last,this.last=e}}},{key:"reverse",value:function(){if(this.first&&this.first.next){for(var e=this.first.next,t=this.first,n=void 0;e;)n=e.next,e.next=t,t.prev=e,t=e,e=n;this.first.next=null,this.last.prev=null,n=this.first,this.first=t,this.last=n}}}]),e}();t.NodeStructure=r,t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t.parseDelay=a;var o=n(34),r=function(){function e(t,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.timer=null,this.func=t,this.delay=a(n),this.stopped=!0,this._then=null,this._callback=function(){return i.__callback()}}return i(e,null,[{key:"create",value:function(t,n){return new e(t,n)}}]),i(e,[{key:"start",value:function(){return this.stopped&&(this._then=Date.now(),this.stopped=!1,this.timer=(0,o.requestAnimationFrame)(this._callback)),this}},{key:"stop",value:function(){return this.stopped||(this.stopped=!0,(0,o.cancelAnimationFrame)(this.timer),this.timer=null),this}},{key:"__callback",value:function(){if(this.timer=(0,o.requestAnimationFrame)(this._callback),this.delay){var e=Date.now(),t=e-this._then;t>this.delay&&(this._then=e-t%this.delay,this.func())}else this.func()}}]),e}();function a(e){return"string"==typeof e&&/fps$/.test(e)&&(e=1e3/parseInt(e.replace("fps","")||0,10)),e}t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(Math.abs(o-i)<=1)return[];var s=Math.ceil((i+o)/2);return e(t,n,i,s),e(t,n,s,o),a(t,n,i,s,o)},t.merge=a;var i,o=(i=n(268))&&i.__esModule?i:{default:i},r=function(e,t){var n=e.toString(),i=t.toString();return n===i?0:n<i?-1:1};function a(e,t,n,i,r){for(var a=new o.default,s=new o.default,l=i-n,d=r-i,c=Math.max(l,d),u=r-n,h=0;h<c;h+=1)h<l&&a.push(e[n+h]),h<d&&s.push(e[i+h]);for(var f=0;f<u;)a.first&&s.first?t(a.first.data,s.first.data)>0?e[n+f]=s.shift().data:e[n+f]=a.shift().data:a.first?e[n+f]=a.shift().data:e[n+f]=s.shift().data,f+=1;return e}},function(e,t,n){"use strict";function i(e,t){var n=e;return function(e){for(var i=!1,o=0,r=e.length;o<r;o++)if(n===e[o]){i=!0;break}t(i)}}t.__esModule=!0,t.default=function(e,t){null==e&&(e=""),this.allowEmpty&&""===e?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(e,i(e,t)):i(e,t)(this.source):t(!0)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=!0,i=(0,a.getEditorInstance)("date",this.instance);null==e&&(e="");var r=(0,o.default)(new Date(e)).isValid()||(0,o.default)(e,i.defaultDateFormat).isValid(),l=(0,o.default)(e,this.dateFormat||i.defaultDateFormat,!0).isValid();if(this.allowEmpty&&""===e&&(r=!0,l=!0),r||(n=!1),!r&&l&&(n=!0),r&&!l)if(!0===this.correctFormat){var d=s(e,this.dateFormat),c=this.instance.runHooks("unmodifyRow",this.row),u=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(c,u,d,"dateValidator"),n=!0}else n=!1;t(n)},t.correctFormat=s;var i,o=(i=n(62))&&i.__esModule?i:{default:i},r=n(88),a=n(14);function s(e,t){var n=(0,o.default)((0,r.getNormalizedDate)(e)),i=(0,o.default)(e,t),a=e.search(/[A-z]/g)>-1;return(n.isValid()&&n.format("x")===i.format("x")||!i.isValid()||a?n:i).format(t)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){null==e&&(e=""),this.allowEmpty&&""===e?t(!0):t(""!==e&&/^-?\d*(\.|,)?\d*$/.test(e))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=!0,i=this.timeFormat||"h:mm:ss a";null===e&&(e=""),e=/^\d{3,}$/.test(e)?parseInt(e,10):e;var a=/^\d{1,2}$/.test(e);a&&(e+=":00");var s=(0,o.default)(e,r,!0).isValid()?(0,o.default)(e):(0,o.default)(e,i),l=s.isValid(),d=(0,o.default)(e,i,!0).isValid()&&!a;if(this.allowEmpty&&""===e&&(l=!0,d=!0),l||(n=!1),!l&&d&&(n=!0),l&&!d)if(!0===this.correctFormat){var c=s.format(i),u=this.instance.runHooks("unmodifyRow",this.row),h=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(u,h,c,"timeValidator"),n=!0}else n=!1;t(n)};var i,o=(i=n(62))&&i.__esModule?i:{default:i},r=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"]},function(e,t,n){"use strict";var i=n(41),o=n(60),r=n(24);e.exports=[].copyWithin||function(e,t){var n=i(this),a=r(n.length),s=o(e,a),l=o(t,a),d=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===d?a:o(d,a))-l,a-s),u=1;for(l<s&&s<l+c&&(u=-1,l+=c-1,s+=c-1);c-- >0;)l in n?n[s]=n[l]:delete n[s],s+=u,l+=u;return n}},function(e,t,n){"use strict";var i=n(41),o=n(60),r=n(24);e.exports=function(e){for(var t=i(this),n=r(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,d=void 0===l?n:o(l,n);d>s;)t[s++]=e;return t}},function(e,t,n){var i=n(15),o=n(162),r=n(10)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(277);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(39),o=n(58),r=n(47);e.exports=function(e){var t=i(e),n=o.f;if(n)for(var a,s=n(e),l=r.f,d=0;s.length>d;)l.call(e,a=s[d++])&&t.push(a);return t}},function(e,t,n){"use strict";var i=n(18);e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var i=n(15),o=n(171).set;e.exports=function(e,t,n){var r,a=t.constructor;return a!==n&&"function"==typeof a&&(r=a.prototype)!==n.prototype&&i(r)&&o&&o(e,r),e}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){"use strict";var i=n(78),o=n(40),r=n(48),a={};n(32)(a,n(10)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:o(1,n)}),r(e,t+" Iterator")}},function(e,t,n){var i=n(39),o=n(23);e.exports=function(e,t){for(var n,r=o(e),a=i(r),s=a.length,l=0;s>l;)if(r[n=a[l++]]===t)return n}},function(e,t,n){var i=n(13),o=n(84).set,r=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l="process"==n(38)(a);e.exports=function(){var e,t,n,d=function(){var i,o;for(l&&(i=a.domain)&&i.exit();e;){o=e.fn,e=e.next;try{o()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(l)n=function(){a.nextTick(d)};else if(r){var c=!0,u=document.createTextNode("");new r(d).observe(u,{characterData:!0}),n=function(){u.data=c=!c}}else if(s&&s.resolve){var h=s.resolve();n=function(){h.then(d)}}else n=function(){o.call(i,d)};return function(i){var o={fn:i,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t,n){var i=n(19),o=n(18),r=n(39);e.exports=n(21)?Object.defineProperties:function(e,t){o(e);for(var n,a=r(t),s=a.length,l=0;s>l;)i.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var i=n(23),o=n(80).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==r.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(i(e))}},function(e,t,n){var i=n(22),o=n(41),r=n(81)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var i=n(80),o=n(58),r=n(18),a=n(13).Reflect;e.exports=a&&a.ownKeys||function(e){var t=i.f(r(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var i=n(18),o=n(71),r=n(10)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[r])?t:o(n)}},function(e,t,n){var i=n(61),o=n(30);e.exports=function(e){return function(t,n){var r,a,s=String(o(t)),l=i(n),d=s.length;return l<0||l>=d?e?"":void 0:(r=s.charCodeAt(l))<55296||r>56319||l+1===d||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):r:e?s.slice(l,l+2):a-56320+(r-55296<<10)+65536}}},function(e,t,n){var i=n(13),o=n(44),r=n(57),a=n(175),s=n(19).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=r?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){e.exports=n},function(e,t){e.exports=i}])},e.exports=i(n(3),n(546),n(484),n(483))},function(e,t,n){var i=n(9),o=i.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=a),r(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){"use strict";(function(e){var i=n(482),o=n(481),r=n(270);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return d(this,e,t,n)}function d(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t),e}(e,t,n,i):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(t,n),o=(e=s(e,i)).write(t,n);return o!==i&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?s(e,0):h(e,t);if("Buffer"===t.type&&r(t.data))return h(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e,t){if(c(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function f(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return N(e).length;default:if(i)return F(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function g(e,t,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,o){var r,a=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function d(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(r=n;r<s;r++)if(d(e,r)===d(t,-1===c?0:r-c)){if(-1===c&&(c=r),r-c+1===l)return c*a}else-1!==c&&(r-=r-c),c=-1}else for(n+l>s&&(n=s-l),r=n;r>=0;r--){for(var u=!0,h=0;h<l;h++)if(d(e,r+h)!==d(t,h)){u=!1;break}if(u)return r}return-1}function v(e,t,n,i){n=Number(n)||0;var o=e.length-n;i?(i=Number(i))>o&&(i=o):i=o;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function A(e,t,n,i){return z(F(t,e.length-n),e,n,i)}function b(e,t,n,i){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function w(e,t,n,i){return b(e,t,n,i)}function _(e,t,n,i){return z(N(t),e,n,i)}function M(e,t,n,i){return z(function(e,t){for(var n,i,o,r=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(n=e.charCodeAt(a))>>8,o=n%256,r.push(o),r.push(i);return r}(t,e.length-n),e,n,i)}function x(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var i=[],o=t;o<n;){var r,a,s,l,d=e[o],c=null,u=d>239?4:d>223?3:d>191?2:1;if(o+u<=n)switch(u){case 1:d<128&&(c=d);break;case 2:128==(192&(r=e[o+1]))&&(l=(31&d)<<6|63&r)>127&&(c=l);break;case 3:r=e[o+1],a=e[o+2],128==(192&r)&&128==(192&a)&&(l=(15&d)<<12|(63&r)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:r=e[o+1],a=e[o+2],s=e[o+3],128==(192&r)&&128==(192&a)&&128==(192&s)&&(l=(15&d)<<18|(63&r)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,u=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),o+=u}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);for(var n="",i=0;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=S));return n}(i)}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return d(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,i){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof i?s(e,t).fill(n,i):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return u(null,e)},l.allocUnsafeSlow=function(e){return u(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,o=0,r=Math.min(n,i);o<r;++o)if(e[o]!==t[o]){n=e[o],i=t[o];break}return n<i?-1:i<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):function(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,i,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var r=o-i,a=n-t,s=Math.min(r,a),d=this.slice(i,o),c=e.slice(t,n),u=0;u<s;++u)if(d[u]!==c[u]){r=d[u],a=c[u];break}return r<a?-1:a<r?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},l.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function C(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(127&e[o]);return i}function E(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(e[o]);return i}function L(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",r=t;r<n;++r)o+=j(e[r]);return o}function T(e,t,n){for(var i=e.slice(t,n),o="",r=0;r<i.length;r+=2)o+=String.fromCharCode(i[r]+256*i[r+1]);return o}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Y(e,t,n,i,o,r){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<r)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function R(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o<r;++o)e[n+o]=(t&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function B(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o<r;++o)e[n+o]=t>>>8*(i?o:3-o)&255}function O(e,t,n,i,o,r){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,i,r){return r||O(e,0,n,4),o.write(e,t,n,i,23,4),n+4}function P(e,t,n,i,r){return r||O(e,0,n,8),o.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var r=0;r<o;++r)n[r]=this[r+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var i=this[e],o=1,r=0;++r<t&&(o*=256);)i+=this[e+r]*o;return i},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var i=this[e+--t],o=1;t>0&&(o*=256);)i+=this[e+--t]*o;return i},l.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var i=this[e],o=1,r=0;++r<t&&(o*=256);)i+=this[e+r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var i=t,o=1,r=this[e+--i];i>0&&(o*=256);)r+=this[e+--i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||Y(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[t]=255&e;++r<n&&(o*=256);)this[t+r]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,i){e=+e,t|=0,n|=0,i||Y(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,r=1;for(this[t+o]=255&e;--o>=0&&(r*=256);)this[t+o]=e/r&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Y(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Y(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Y(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Y(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Y(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);Y(this,e,t,n,o-1,-o)}var r=0,a=1,s=0;for(this[t]=255&e;++r<n&&(a*=256);)e<0&&0===s&&0!==this[t+r-1]&&(s=1),this[t+r]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);Y(this,e,t,n,o-1,-o)}var r=n-1,a=1,s=0;for(this[t+r]=255&e;--r>=0&&(a*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Y(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Y(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Y(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Y(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Y(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var o,r=i-n;if(this===e&&n<t&&t<i)for(o=r-1;o>=0;--o)e[o+t]=this[o+n];else if(r<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<r;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+r),t);return r},l.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var r;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r<n;++r)this[r]=e;else{var a=l.isBuffer(e)?e:F(new l(e,i).toString()),s=a.length;for(r=0;r<n-t;++r)this[r+t]=a[r%s]}return this};var I=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var n;t=t||1/0;for(var i=e.length,o=null,r=[],a=0;a<i;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function N(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,i){for(var o=0;o<i&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(22))},function(e,t,n){(function(i){var o;!function(r){"use strict";var a,s,l,d;r?function(){var e=r.crypto||r.msCrypto;if(!a&&e&&e.getRandomValues)try{var t=new Uint8Array(16);d=a=function(){return e.getRandomValues(t),t},a()}catch(e){}if(!a){var n=new Array(16);s=a=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n},"undefined"!=typeof console&&console.warn}}():function(){try{var e=n(480).randomBytes;l=a=e&&function(){return e(16)},a()}catch(e){}}();for(var c="function"==typeof i?i:Array,u=[],h={},f=0;f<256;f++)u[f]=(f+256).toString(16).substr(1),h[u[f]]=f;function p(e,t){var n=t||0,i=u;return i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]}var m=a(),g=[1|m[0],m[1],m[2],m[3],m[4],m[5]],y=16383&(m[6]<<8|m[7]),v=0,A=0;function b(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new c(16):null,e=null);var o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var r=0;r<16;r++)t[i+r]=o[r];return t||p(o)}var w=b;w.v1=function(e,t,n){var i=t&&n||0,o=t||[],r=null!=(e=e||{}).clockseq?e.clockseq:y,a=null!=e.msecs?e.msecs:(new Date).getTime(),s=null!=e.nsecs?e.nsecs:A+1,l=a-v+(s-A)/1e4;if(l<0&&null==e.clockseq&&(r=r+1&16383),(l<0||a>v)&&null==e.nsecs&&(s=0),s>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=a,A=s,y=r;var d=(1e4*(268435455&(a+=122192928e5))+s)%4294967296;o[i++]=d>>>24&255,o[i++]=d>>>16&255,o[i++]=d>>>8&255,o[i++]=255&d;var c=a/4294967296*1e4&268435455;o[i++]=c>>>8&255,o[i++]=255&c,o[i++]=c>>>24&15|16,o[i++]=c>>>16&255,o[i++]=r>>>8|128,o[i++]=255&r;for(var u=e.node||g,h=0;h<6;h++)o[i+h]=u[h];return t||p(o)},w.v4=b,w.parse=function(e,t,n){var i=t&&n||0,o=0;for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){o<16&&(t[i+o++]=h[e])});o<16;)t[i+o++]=0;return t},w.unparse=p,w.BufferClass=c,w._rng=a,w._mathRNG=s,w._nodeRNG=l,w._whatwgRNG=d,void 0!==e&&e.exports?e.exports=w:void 0===(o=function(){return w}.call(t,n,t,e))||(e.exports=o)}("undefined"!=typeof window?window:null)}).call(this,n(9).Buffer)},function(e,t,n){"use strict";var i=n(164),o=n(4),r=function(e){o.extend(this,e),this.initialize.apply(this,arguments)};o.extend(r.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=o.clone(e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,o=t._start,r=t._view;return n&&1!==e?(r||(r=t._view={}),o||(o=t._start={}),function(e,t,n,o){var r,a,s,l,d,c,u,h,f,p=Object.keys(n);for(r=0,a=p.length;r<a;++r)if(c=n[s=p[r]],t.hasOwnProperty(s)||(t[s]=c),(l=t[s])!==c&&"_"!==s[0]){if(e.hasOwnProperty(s)||(e[s]=l),(u=typeof c)==typeof(d=e[s]))if("string"===u){if((h=i(d)).valid&&(f=i(c)).valid){t[s]=f.mix(h,o).rgbString();continue}}else if("number"===u&&isFinite(d)&&isFinite(c)){t[s]=d+(c-d)*o;continue}t[s]=c}}(o,r,n,e),t):(t._view=n,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return o.isNumber(this._model.x)&&o.isNumber(this._model.y)}}),r.extend=o.inherits,e.exports=r},function(e,t,n){(function(e){!function(e,t){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function r(e,t,n){if(r.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=r:t.BN=r,r.BN=r,r.wordSize=26;try{a=n(441).Buffer}catch(e){}function s(e,t,n){for(var i=0,o=Math.min(e.length,n),r=t;r<o;r++){var a=e.charCodeAt(r)-48;i<<=4,i|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function l(e,t,n,i){for(var o=0,r=Math.min(e.length,n),a=t;a<r;a++){var s=e.charCodeAt(a)-48;o*=i,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}r.isBN=function(e){return e instanceof r||null!==e&&"object"==typeof e&&e.constructor.wordSize===r.wordSize&&Array.isArray(e.words)},r.max=function(e,t){return e.cmp(t)>0?e:t},r.min=function(e,t){return e.cmp(t)<0?e:t},r.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&o++,16===t?this._parseHex(e,o):this._parseBase(e,t,o),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},r.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},r.prototype._initArray=function(e,t,n){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var r,a,s=0;if("be"===n)for(o=e.length-1,r=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===n)for(o=0,r=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this.strip()},r.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o,r=0;for(n=e.length-6,i=0;n>=t;n-=6)o=s(e,n,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303,(r+=24)>=26&&(r-=26,i++);n+6!==t&&(o=s(e,t,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303),this.strip()},r.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=t)i++;i--,o=o/t|0;for(var r=e.length-n,a=r%i,s=Math.min(r,r-a)+n,d=0,c=n;c<s;c+=i)d=l(e,c,c+i,t),this.imuln(o),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d);if(0!==a){var u=1;for(d=l(e,c,e.length,t),c=0;c<a;c++)u*=t;this.imuln(u),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d)}},r.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},r.prototype.clone=function(){var e=new r(null);return this.copy(e),e},r.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var i=e.length+t.length|0;n.length=i,i=i-1|0;var o=0|e.words[0],r=0|t.words[0],a=o*r,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var d=1;d<i;d++){for(var c=l>>>26,u=67108863&l,h=Math.min(d,t.length-1),f=Math.max(0,d-e.length+1);f<=h;f++){var p=d-f|0;c+=(a=(o=0|e.words[p])*(r=0|t.words[f])+u)/67108864|0,u=67108863&a}n.words[d]=0|u,l=0|c}return 0!==l?n.words[d]=0|l:n.length--,n.strip()}r.prototype.toString=function(e,t){var n;if(e=e||10,t=0|t||1,16===e||"hex"===e){n="";for(var o=0,r=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<o|r)).toString(16);n=0!=(r=s>>>24-o&16777215)||a!==this.length-1?d[6-l.length]+l+n:l+n,(o+=2)>=26&&(o-=26,a--)}for(0!==r&&(n=r.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=c[e],f=u[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);n=(p=p.idivn(f)).isZero()?m+n:d[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(e,t){return i(void 0!==a),this.toArrayLike(a,e,t)},r.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},r.prototype.toArrayLike=function(e,t,n){var o=this.byteLength(),r=n||Math.max(1,o);i(o<=r,"byte array longer than desired length"),i(r>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,d=new e(r),c=this.clone();if(l){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),d[s]=a;for(;s<r;s++)d[s]=0}else{for(s=0;s<r-o;s++)d[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),d[r-s-1]=a}return d},Math.clz32?r.prototype._countBits=function(e){return 32-Math.clz32(e)}:r.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},r.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},r.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},r.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},r.prototype.ior=function(e){return i(0==(this.negative|e.negative)),this.iuor(e)},r.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},r.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},r.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},r.prototype.iand=function(e){return i(0==(this.negative|e.negative)),this.iuand(e)},r.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},r.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},r.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var i=0;i<n.length;i++)this.words[i]=t.words[i]^n.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this.strip()},r.prototype.ixor=function(e){return i(0==(this.negative|e.negative)),this.iuxor(e)},r.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},r.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},r.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var o=0;o<t;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},r.prototype.notn=function(e){return this.clone().inotn(e)},r.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},r.prototype.iadd=function(e){var t,n,i;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,i=e):(n=e,i=this);for(var o=0,r=0;r<i.length;r++)t=(0|n.words[r])+(0|i.words[r])+o,this.words[r]=67108863&t,o=t>>>26;for(;0!==o&&r<n.length;r++)t=(0|n.words[r])+o,this.words[r]=67108863&t,o=t>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;r<n.length;r++)this.words[r]=n.words[r];return this},r.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},r.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,i,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=e):(n=e,i=this);for(var r=0,a=0;a<i.length;a++)r=(t=(0|n.words[a])-(0|i.words[a])+r)>>26,this.words[a]=67108863&t;for(;0!==r&&a<n.length;a++)r=(t=(0|n.words[a])+r)>>26,this.words[a]=67108863&t;if(0===r&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,n){var i,o,r,a=e.words,s=t.words,l=n.words,d=0,c=0|a[0],u=8191&c,h=c>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],y=8191&g,v=g>>>13,A=0|a[3],b=8191&A,w=A>>>13,_=0|a[4],M=8191&_,x=_>>>13,k=0|a[5],S=8191&k,C=k>>>13,E=0|a[6],L=8191&E,T=E>>>13,D=0|a[7],Y=8191&D,R=D>>>13,B=0|a[8],O=8191&B,H=B>>>13,P=0|a[9],I=8191&P,j=P>>>13,F=0|s[0],N=8191&F,z=F>>>13,W=0|s[1],$=8191&W,U=W>>>13,Q=0|s[2],G=8191&Q,V=Q>>>13,J=0|s[3],K=8191&J,X=J>>>13,q=0|s[4],Z=8191&q,ee=q>>>13,te=0|s[5],ne=8191&te,ie=te>>>13,oe=0|s[6],re=8191&oe,ae=oe>>>13,se=0|s[7],le=8191&se,de=se>>>13,ce=0|s[8],ue=8191&ce,he=ce>>>13,fe=0|s[9],pe=8191&fe,me=fe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(d+(i=Math.imul(u,N))|0)+((8191&(o=(o=Math.imul(u,z))+Math.imul(h,N)|0))<<13)|0;d=((r=Math.imul(h,z))+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(p,N),o=(o=Math.imul(p,z))+Math.imul(m,N)|0,r=Math.imul(m,z);var ye=(d+(i=i+Math.imul(u,$)|0)|0)+((8191&(o=(o=o+Math.imul(u,U)|0)+Math.imul(h,$)|0))<<13)|0;d=((r=r+Math.imul(h,U)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(y,N),o=(o=Math.imul(y,z))+Math.imul(v,N)|0,r=Math.imul(v,z),i=i+Math.imul(p,$)|0,o=(o=o+Math.imul(p,U)|0)+Math.imul(m,$)|0,r=r+Math.imul(m,U)|0;var ve=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(o=(o=o+Math.imul(u,V)|0)+Math.imul(h,G)|0))<<13)|0;d=((r=r+Math.imul(h,V)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(b,N),o=(o=Math.imul(b,z))+Math.imul(w,N)|0,r=Math.imul(w,z),i=i+Math.imul(y,$)|0,o=(o=o+Math.imul(y,U)|0)+Math.imul(v,$)|0,r=r+Math.imul(v,U)|0,i=i+Math.imul(p,G)|0,o=(o=o+Math.imul(p,V)|0)+Math.imul(m,G)|0,r=r+Math.imul(m,V)|0;var Ae=(d+(i=i+Math.imul(u,K)|0)|0)+((8191&(o=(o=o+Math.imul(u,X)|0)+Math.imul(h,K)|0))<<13)|0;d=((r=r+Math.imul(h,X)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(M,N),o=(o=Math.imul(M,z))+Math.imul(x,N)|0,r=Math.imul(x,z),i=i+Math.imul(b,$)|0,o=(o=o+Math.imul(b,U)|0)+Math.imul(w,$)|0,r=r+Math.imul(w,U)|0,i=i+Math.imul(y,G)|0,o=(o=o+Math.imul(y,V)|0)+Math.imul(v,G)|0,r=r+Math.imul(v,V)|0,i=i+Math.imul(p,K)|0,o=(o=o+Math.imul(p,X)|0)+Math.imul(m,K)|0,r=r+Math.imul(m,X)|0;var be=(d+(i=i+Math.imul(u,Z)|0)|0)+((8191&(o=(o=o+Math.imul(u,ee)|0)+Math.imul(h,Z)|0))<<13)|0;d=((r=r+Math.imul(h,ee)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,i=Math.imul(S,N),o=(o=Math.imul(S,z))+Math.imul(C,N)|0,r=Math.imul(C,z),i=i+Math.imul(M,$)|0,o=(o=o+Math.imul(M,U)|0)+Math.imul(x,$)|0,r=r+Math.imul(x,U)|0,i=i+Math.imul(b,G)|0,o=(o=o+Math.imul(b,V)|0)+Math.imul(w,G)|0,r=r+Math.imul(w,V)|0,i=i+Math.imul(y,K)|0,o=(o=o+Math.imul(y,X)|0)+Math.imul(v,K)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(p,Z)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,Z)|0,r=r+Math.imul(m,ee)|0;var we=(d+(i=i+Math.imul(u,ne)|0)|0)+((8191&(o=(o=o+Math.imul(u,ie)|0)+Math.imul(h,ne)|0))<<13)|0;d=((r=r+Math.imul(h,ie)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(L,N),o=(o=Math.imul(L,z))+Math.imul(T,N)|0,r=Math.imul(T,z),i=i+Math.imul(S,$)|0,o=(o=o+Math.imul(S,U)|0)+Math.imul(C,$)|0,r=r+Math.imul(C,U)|0,i=i+Math.imul(M,G)|0,o=(o=o+Math.imul(M,V)|0)+Math.imul(x,G)|0,r=r+Math.imul(x,V)|0,i=i+Math.imul(b,K)|0,o=(o=o+Math.imul(b,X)|0)+Math.imul(w,K)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(y,Z)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(v,Z)|0,r=r+Math.imul(v,ee)|0,i=i+Math.imul(p,ne)|0,o=(o=o+Math.imul(p,ie)|0)+Math.imul(m,ne)|0,r=r+Math.imul(m,ie)|0;var _e=(d+(i=i+Math.imul(u,re)|0)|0)+((8191&(o=(o=o+Math.imul(u,ae)|0)+Math.imul(h,re)|0))<<13)|0;d=((r=r+Math.imul(h,ae)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(Y,N),o=(o=Math.imul(Y,z))+Math.imul(R,N)|0,r=Math.imul(R,z),i=i+Math.imul(L,$)|0,o=(o=o+Math.imul(L,U)|0)+Math.imul(T,$)|0,r=r+Math.imul(T,U)|0,i=i+Math.imul(S,G)|0,o=(o=o+Math.imul(S,V)|0)+Math.imul(C,G)|0,r=r+Math.imul(C,V)|0,i=i+Math.imul(M,K)|0,o=(o=o+Math.imul(M,X)|0)+Math.imul(x,K)|0,r=r+Math.imul(x,X)|0,i=i+Math.imul(b,Z)|0,o=(o=o+Math.imul(b,ee)|0)+Math.imul(w,Z)|0,r=r+Math.imul(w,ee)|0,i=i+Math.imul(y,ne)|0,o=(o=o+Math.imul(y,ie)|0)+Math.imul(v,ne)|0,r=r+Math.imul(v,ie)|0,i=i+Math.imul(p,re)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,re)|0,r=r+Math.imul(m,ae)|0;var Me=(d+(i=i+Math.imul(u,le)|0)|0)+((8191&(o=(o=o+Math.imul(u,de)|0)+Math.imul(h,le)|0))<<13)|0;d=((r=r+Math.imul(h,de)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(O,N),o=(o=Math.imul(O,z))+Math.imul(H,N)|0,r=Math.imul(H,z),i=i+Math.imul(Y,$)|0,o=(o=o+Math.imul(Y,U)|0)+Math.imul(R,$)|0,r=r+Math.imul(R,U)|0,i=i+Math.imul(L,G)|0,o=(o=o+Math.imul(L,V)|0)+Math.imul(T,G)|0,r=r+Math.imul(T,V)|0,i=i+Math.imul(S,K)|0,o=(o=o+Math.imul(S,X)|0)+Math.imul(C,K)|0,r=r+Math.imul(C,X)|0,i=i+Math.imul(M,Z)|0,o=(o=o+Math.imul(M,ee)|0)+Math.imul(x,Z)|0,r=r+Math.imul(x,ee)|0,i=i+Math.imul(b,ne)|0,o=(o=o+Math.imul(b,ie)|0)+Math.imul(w,ne)|0,r=r+Math.imul(w,ie)|0,i=i+Math.imul(y,re)|0,o=(o=o+Math.imul(y,ae)|0)+Math.imul(v,re)|0,r=r+Math.imul(v,ae)|0,i=i+Math.imul(p,le)|0,o=(o=o+Math.imul(p,de)|0)+Math.imul(m,le)|0,r=r+Math.imul(m,de)|0;var xe=(d+(i=i+Math.imul(u,ue)|0)|0)+((8191&(o=(o=o+Math.imul(u,he)|0)+Math.imul(h,ue)|0))<<13)|0;d=((r=r+Math.imul(h,he)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(I,N),o=(o=Math.imul(I,z))+Math.imul(j,N)|0,r=Math.imul(j,z),i=i+Math.imul(O,$)|0,o=(o=o+Math.imul(O,U)|0)+Math.imul(H,$)|0,r=r+Math.imul(H,U)|0,i=i+Math.imul(Y,G)|0,o=(o=o+Math.imul(Y,V)|0)+Math.imul(R,G)|0,r=r+Math.imul(R,V)|0,i=i+Math.imul(L,K)|0,o=(o=o+Math.imul(L,X)|0)+Math.imul(T,K)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(S,Z)|0,o=(o=o+Math.imul(S,ee)|0)+Math.imul(C,Z)|0,r=r+Math.imul(C,ee)|0,i=i+Math.imul(M,ne)|0,o=(o=o+Math.imul(M,ie)|0)+Math.imul(x,ne)|0,r=r+Math.imul(x,ie)|0,i=i+Math.imul(b,re)|0,o=(o=o+Math.imul(b,ae)|0)+Math.imul(w,re)|0,r=r+Math.imul(w,ae)|0,i=i+Math.imul(y,le)|0,o=(o=o+Math.imul(y,de)|0)+Math.imul(v,le)|0,r=r+Math.imul(v,de)|0,i=i+Math.imul(p,ue)|0,o=(o=o+Math.imul(p,he)|0)+Math.imul(m,ue)|0,r=r+Math.imul(m,he)|0;var ke=(d+(i=i+Math.imul(u,pe)|0)|0)+((8191&(o=(o=o+Math.imul(u,me)|0)+Math.imul(h,pe)|0))<<13)|0;d=((r=r+Math.imul(h,me)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(I,$),o=(o=Math.imul(I,U))+Math.imul(j,$)|0,r=Math.imul(j,U),i=i+Math.imul(O,G)|0,o=(o=o+Math.imul(O,V)|0)+Math.imul(H,G)|0,r=r+Math.imul(H,V)|0,i=i+Math.imul(Y,K)|0,o=(o=o+Math.imul(Y,X)|0)+Math.imul(R,K)|0,r=r+Math.imul(R,X)|0,i=i+Math.imul(L,Z)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(T,Z)|0,r=r+Math.imul(T,ee)|0,i=i+Math.imul(S,ne)|0,o=(o=o+Math.imul(S,ie)|0)+Math.imul(C,ne)|0,r=r+Math.imul(C,ie)|0,i=i+Math.imul(M,re)|0,o=(o=o+Math.imul(M,ae)|0)+Math.imul(x,re)|0,r=r+Math.imul(x,ae)|0,i=i+Math.imul(b,le)|0,o=(o=o+Math.imul(b,de)|0)+Math.imul(w,le)|0,r=r+Math.imul(w,de)|0,i=i+Math.imul(y,ue)|0,o=(o=o+Math.imul(y,he)|0)+Math.imul(v,ue)|0,r=r+Math.imul(v,he)|0;var Se=(d+(i=i+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;d=((r=r+Math.imul(m,me)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(I,G),o=(o=Math.imul(I,V))+Math.imul(j,G)|0,r=Math.imul(j,V),i=i+Math.imul(O,K)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(H,K)|0,r=r+Math.imul(H,X)|0,i=i+Math.imul(Y,Z)|0,o=(o=o+Math.imul(Y,ee)|0)+Math.imul(R,Z)|0,r=r+Math.imul(R,ee)|0,i=i+Math.imul(L,ne)|0,o=(o=o+Math.imul(L,ie)|0)+Math.imul(T,ne)|0,r=r+Math.imul(T,ie)|0,i=i+Math.imul(S,re)|0,o=(o=o+Math.imul(S,ae)|0)+Math.imul(C,re)|0,r=r+Math.imul(C,ae)|0,i=i+Math.imul(M,le)|0,o=(o=o+Math.imul(M,de)|0)+Math.imul(x,le)|0,r=r+Math.imul(x,de)|0,i=i+Math.imul(b,ue)|0,o=(o=o+Math.imul(b,he)|0)+Math.imul(w,ue)|0,r=r+Math.imul(w,he)|0;var Ce=(d+(i=i+Math.imul(y,pe)|0)|0)+((8191&(o=(o=o+Math.imul(y,me)|0)+Math.imul(v,pe)|0))<<13)|0;d=((r=r+Math.imul(v,me)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,i=Math.imul(I,K),o=(o=Math.imul(I,X))+Math.imul(j,K)|0,r=Math.imul(j,X),i=i+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(H,Z)|0,r=r+Math.imul(H,ee)|0,i=i+Math.imul(Y,ne)|0,o=(o=o+Math.imul(Y,ie)|0)+Math.imul(R,ne)|0,r=r+Math.imul(R,ie)|0,i=i+Math.imul(L,re)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(T,re)|0,r=r+Math.imul(T,ae)|0,i=i+Math.imul(S,le)|0,o=(o=o+Math.imul(S,de)|0)+Math.imul(C,le)|0,r=r+Math.imul(C,de)|0,i=i+Math.imul(M,ue)|0,o=(o=o+Math.imul(M,he)|0)+Math.imul(x,ue)|0,r=r+Math.imul(x,he)|0;var Ee=(d+(i=i+Math.imul(b,pe)|0)|0)+((8191&(o=(o=o+Math.imul(b,me)|0)+Math.imul(w,pe)|0))<<13)|0;d=((r=r+Math.imul(w,me)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(I,Z),o=(o=Math.imul(I,ee))+Math.imul(j,Z)|0,r=Math.imul(j,ee),i=i+Math.imul(O,ne)|0,o=(o=o+Math.imul(O,ie)|0)+Math.imul(H,ne)|0,r=r+Math.imul(H,ie)|0,i=i+Math.imul(Y,re)|0,o=(o=o+Math.imul(Y,ae)|0)+Math.imul(R,re)|0,r=r+Math.imul(R,ae)|0,i=i+Math.imul(L,le)|0,o=(o=o+Math.imul(L,de)|0)+Math.imul(T,le)|0,r=r+Math.imul(T,de)|0,i=i+Math.imul(S,ue)|0,o=(o=o+Math.imul(S,he)|0)+Math.imul(C,ue)|0,r=r+Math.imul(C,he)|0;var Le=(d+(i=i+Math.imul(M,pe)|0)|0)+((8191&(o=(o=o+Math.imul(M,me)|0)+Math.imul(x,pe)|0))<<13)|0;d=((r=r+Math.imul(x,me)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,i=Math.imul(I,ne),o=(o=Math.imul(I,ie))+Math.imul(j,ne)|0,r=Math.imul(j,ie),i=i+Math.imul(O,re)|0,o=(o=o+Math.imul(O,ae)|0)+Math.imul(H,re)|0,r=r+Math.imul(H,ae)|0,i=i+Math.imul(Y,le)|0,o=(o=o+Math.imul(Y,de)|0)+Math.imul(R,le)|0,r=r+Math.imul(R,de)|0,i=i+Math.imul(L,ue)|0,o=(o=o+Math.imul(L,he)|0)+Math.imul(T,ue)|0,r=r+Math.imul(T,he)|0;var Te=(d+(i=i+Math.imul(S,pe)|0)|0)+((8191&(o=(o=o+Math.imul(S,me)|0)+Math.imul(C,pe)|0))<<13)|0;d=((r=r+Math.imul(C,me)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(I,re),o=(o=Math.imul(I,ae))+Math.imul(j,re)|0,r=Math.imul(j,ae),i=i+Math.imul(O,le)|0,o=(o=o+Math.imul(O,de)|0)+Math.imul(H,le)|0,r=r+Math.imul(H,de)|0,i=i+Math.imul(Y,ue)|0,o=(o=o+Math.imul(Y,he)|0)+Math.imul(R,ue)|0,r=r+Math.imul(R,he)|0;var De=(d+(i=i+Math.imul(L,pe)|0)|0)+((8191&(o=(o=o+Math.imul(L,me)|0)+Math.imul(T,pe)|0))<<13)|0;d=((r=r+Math.imul(T,me)|0)+(o>>>13)|0)+(De>>>26)|0,De&=67108863,i=Math.imul(I,le),o=(o=Math.imul(I,de))+Math.imul(j,le)|0,r=Math.imul(j,de),i=i+Math.imul(O,ue)|0,o=(o=o+Math.imul(O,he)|0)+Math.imul(H,ue)|0,r=r+Math.imul(H,he)|0;var Ye=(d+(i=i+Math.imul(Y,pe)|0)|0)+((8191&(o=(o=o+Math.imul(Y,me)|0)+Math.imul(R,pe)|0))<<13)|0;d=((r=r+Math.imul(R,me)|0)+(o>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,i=Math.imul(I,ue),o=(o=Math.imul(I,he))+Math.imul(j,ue)|0,r=Math.imul(j,he);var Re=(d+(i=i+Math.imul(O,pe)|0)|0)+((8191&(o=(o=o+Math.imul(O,me)|0)+Math.imul(H,pe)|0))<<13)|0;d=((r=r+Math.imul(H,me)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(d+(i=Math.imul(I,pe))|0)+((8191&(o=(o=Math.imul(I,me))+Math.imul(j,pe)|0))<<13)|0;return d=((r=Math.imul(j,me))+(o>>>13)|0)+(Be>>>26)|0,Be&=67108863,l[0]=ge,l[1]=ye,l[2]=ve,l[3]=Ae,l[4]=be,l[5]=we,l[6]=_e,l[7]=Me,l[8]=xe,l[9]=ke,l[10]=Se,l[11]=Ce,l[12]=Ee,l[13]=Le,l[14]=Te,l[15]=De,l[16]=Ye,l[17]=Re,l[18]=Be,0!==d&&(l[19]=d,n.length++),n};function p(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(f=h),r.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var i=0,o=0,r=0;r<n.length-1;r++){var a=o;o=0;for(var s=67108863&i,l=Math.min(r,t.length-1),d=Math.max(0,r-e.length+1);d<=l;d++){var c=r-d,u=(0|e.words[c])*(0|t.words[d]),h=67108863&u;s=67108863&(h=h+s|0),o+=(a=(a=a+(u/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}n.words[r]=s,i=a,a=o}return 0!==i?n.words[r]=i:n.length--,n.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=r.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var i=0,o=0;o<t;o++)i|=(1&e)<<t-o-1,e>>=1;return i},m.prototype.permute=function(e,t,n,i,o,r){for(var a=0;a<r;a++)i[a]=t[e[a]],o[a]=n[e[a]]},m.prototype.transform=function(e,t,n,i,o,r){this.permute(r,e,t,n,i,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),d=Math.sin(2*Math.PI/s),c=0;c<o;c+=s)for(var u=l,h=d,f=0;f<a;f++){var p=n[c+f],m=i[c+f],g=n[c+f+a],y=i[c+f+a],v=u*g-h*y;y=u*y+h*g,g=v,n[c+f]=p+g,i[c+f]=m+y,n[c+f+a]=p-g,i[c+f+a]=m-y,f!==s&&(v=l*u-d*h,h=l*h+d*u,u=v)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),i=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+i},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var i=0;i<n/2;i++){var o=e[i];e[i]=e[n-i-1],e[n-i-1]=o,o=t[i],t[i]=-t[n-i-1],t[n-i-1]=-o}},m.prototype.normalize13b=function(e,t){for(var n=0,i=0;i<t/2;i++){var o=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+n;e[i]=67108863&o,n=o<67108864?0:o/67108864|0}return e},m.prototype.convert13b=function(e,t,n,o){for(var r=0,a=0;a<t;a++)r+=0|e[a],n[2*a]=8191&r,r>>>=13,n[2*a+1]=8191&r,r>>>=13;for(a=2*t;a<o;++a)n[a]=0;i(0===r),i(0==(-8192&r))},m.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var i=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(i),r=this.stub(i),a=new Array(i),s=new Array(i),l=new Array(i),d=new Array(i),c=new Array(i),u=new Array(i),h=n.words;h.length=i,this.convert13b(e.words,e.length,a,i),this.convert13b(t.words,t.length,d,i),this.transform(a,r,s,l,i,o),this.transform(d,r,c,u,i,o);for(var f=0;f<i;f++){var p=s[f]*c[f]-l[f]*u[f];l[f]=s[f]*u[f]+l[f]*c[f],s[f]=p}return this.conjugate(s,l,i),this.transform(s,l,h,r,i,o),this.conjugate(h,r,i),this.normalize13b(h,i),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},r.prototype.mul=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},r.prototype.mulf=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),p(this,e,t)},r.prototype.imul=function(e){return this.clone().mulTo(e,this)},r.prototype.imuln=function(e){i("number"==typeof e),i(e<67108864);for(var t=0,n=0;n<this.length;n++){var o=(0|this.words[n])*e,r=(67108863&o)+(67108863&t);t>>=26,t+=o/67108864|0,t+=r>>>26,this.words[n]=67108863&r}return 0!==t&&(this.words[n]=t,this.length++),this},r.prototype.muln=function(e){return this.clone().imuln(e)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var i=n/26|0,o=n%26;t[n]=(e.words[i]&1<<o)>>>o}return t}(e);if(0===t.length)return new r(1);for(var n=this,i=0;i<t.length&&0===t[i];i++,n=n.sqr());if(++i<t.length)for(var o=n.sqr();i<t.length;i++,o=o.sqr())0!==t[i]&&(n=n.mul(o));return n},r.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,n=e%26,o=(e-n)/26,r=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&r,l=(0|this.words[t])-s<<n;this.words[t]=l|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t<o;t++)this.words[t]=0;this.length+=o}return this.strip()},r.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},r.prototype.iushrn=function(e,t,n){var o;i("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var r=e%26,a=Math.min((e-r)/26,this.length),s=67108863^67108863>>>r<<r,l=n;if(o-=a,o=Math.max(0,o),l){for(var d=0;d<a;d++)l.words[d]=this.words[d];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,d=0;d<this.length;d++)this.words[d]=this.words[d+a];else this.words[0]=0,this.length=1;var c=0;for(d=this.length-1;d>=0&&(0!==c||d>=o);d--){var u=0|this.words[d];this.words[d]=c<<26-r|u>>>r,c=u&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(e,t,n){return i(0===this.negative),this.iushrn(e,t,n)},r.prototype.shln=function(e){return this.clone().ishln(e)},r.prototype.ushln=function(e){return this.clone().iushln(e)},r.prototype.shrn=function(e){return this.clone().ishrn(e)},r.prototype.ushrn=function(e){return this.clone().iushrn(e)},r.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,o=1<<t;return!(this.length<=n||!(this.words[n]&o))},r.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var o=67108863^67108863>>>t<<t;this.words[this.length-1]&=o}return this.strip()},r.prototype.maskn=function(e){return this.clone().imaskn(e)},r.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},r.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},r.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},r.prototype.addn=function(e){return this.clone().iaddn(e)},r.prototype.subn=function(e){return this.clone().isubn(e)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(e,t,n){var o,r,a=e.length+n;this._expand(a);var s=0;for(o=0;o<e.length;o++){r=(0|this.words[o+n])+s;var l=(0|e.words[o])*t;s=((r-=67108863&l)>>26)-(l/67108864|0),this.words[o+n]=67108863&r}for(;o<this.length-n;o++)s=(r=(0|this.words[o+n])+s)>>26,this.words[o+n]=67108863&r;if(0===s)return this.strip();for(i(-1===s),s=0,o=0;o<this.length;o++)s=(r=-(0|this.words[o])+s)>>26,this.words[o]=67108863&r;return this.negative=1,this.strip()},r.prototype._wordDiv=function(e,t){var n=(this.length,e.length),i=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s,l=i.length-o.length;if("mod"!==t){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var d=0;d<s.length;d++)s.words[d]=0}var c=i.clone()._ishlnsubmul(o,1,l);0===c.negative&&(i=c,s&&(s.words[l]=1));for(var u=l-1;u>=0;u--){var h=67108864*(0|i.words[o.length+u])+(0|i.words[o.length+u-1]);for(h=Math.min(h/a|0,67108863),i._ishlnsubmul(o,h,u);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(o,1,u),i.isZero()||(i.negative^=1);s&&(s.words[u]=h)}return s&&s.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},r.prototype.divmod=function(e,t,n){return i(!e.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new r(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new r(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new r(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},r.prototype.div=function(e){return this.divmod(e,"div",!1).div},r.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},r.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},r.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),o=e.andln(1),r=n.cmp(i);return r<0||1===o&&0===r?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},r.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,n=0,o=this.length-1;o>=0;o--)n=(t*n+(0|this.words[o]))%e;return n},r.prototype.idivn=function(e){i(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*t;this.words[n]=o/e|0,t=o%e}return this.strip()},r.prototype.divn=function(e){return this.clone().idivn(e)},r.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new r(1),a=new r(0),s=new r(0),l=new r(1),d=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++d;for(var c=n.clone(),u=t.clone();!t.isZero();){for(var h=0,f=1;0==(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(u)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(u)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s),a.isub(l)):(n.isub(t),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:n.iushln(d)}},r.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new r(1),s=new r(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;0==(t.words[0]&c)&&d<26;++d,c<<=1);if(d>0)for(t.iushrn(d);d-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var u=0,h=1;0==(n.words[0]&h)&&u<26;++u,h<<=1);if(u>0)for(n.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},r.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var i=0;t.isEven()&&n.isEven();i++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=t.cmp(n);if(o<0){var r=t;t=n,n=r}else if(0===o||0===n.cmpn(1))break;t.isub(n)}return n.iushln(i)},r.prototype.invm=function(e){return this.egcd(e).a.umod(e)},r.prototype.isEven=function(){return 0==(1&this.words[0])},r.prototype.isOdd=function(){return 1==(1&this.words[0])},r.prototype.andln=function(e){return this.words[0]&e},r.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,n=(e-t)/26,o=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var r=o,a=n;0!==r&&a<this.length;a++){var s=0|this.words[a];r=(s+=r)>>>26,s&=67108863,this.words[a]=s}return 0!==r&&(this.words[a]=r,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),i(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},r.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},r.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],o=0|e.words[n];if(i!==o){i<o?t=-1:i>o&&(t=1);break}}return t},r.prototype.gtn=function(e){return 1===this.cmpn(e)},r.prototype.gt=function(e){return 1===this.cmp(e)},r.prototype.gten=function(e){return this.cmpn(e)>=0},r.prototype.gte=function(e){return this.cmp(e)>=0},r.prototype.ltn=function(e){return-1===this.cmpn(e)},r.prototype.lt=function(e){return-1===this.cmp(e)},r.prototype.lten=function(e){return this.cmpn(e)<=0},r.prototype.lte=function(e){return this.cmp(e)<=0},r.prototype.eqn=function(e){return 0===this.cmpn(e)},r.prototype.eq=function(e){return 0===this.cmp(e)},r.red=function(e){return new _(e)},r.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(e){return this.red=e,this},r.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},r.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},r.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},r.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},r.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},r.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},r.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},r.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new r(t,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=r._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function M(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new r(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):n.strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},o(v,y),v.prototype.split=function(e,t){for(var n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=4194303&o,i=10;i<e.length;i++){var r=0|e.words[i];e.words[i-10]=(4194303&r)<<4|o>>>22,o=r}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var i=0|e.words[n];t+=977*i,e.words[n]=67108863&t,t=64*i+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(A,y),o(b,y),o(w,y),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var i=19*(0|e.words[n])+t,o=67108863&i;i>>>=26,e.words[n]=o,t=i}return 0!==t&&(e.words[e.length++]=t),e},r._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new A;else if("p192"===e)t=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return g[e]=t,t},_.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var n=this.m.add(new r(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);i(!o.isZero());var s=new r(1).toRed(this),l=s.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new r(2*c*c).toRed(this);0!==this.pow(c,d).cmp(l);)c.redIAdd(l);for(var u=this.pow(c,o),h=this.pow(e,o.addn(1).iushrn(1)),f=this.pow(e,o),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();i(g<p);var y=this.pow(u,new r(1).iushln(p-g-1));h=h.redMul(y),u=y.redSqr(),f=f.redMul(u),p=g}return h},_.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},_.prototype.pow=function(e,t){if(t.isZero())return new r(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new r(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var o=n[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var d=t.words[i],c=l-1;c>=0;c--){var u=d>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==u||0!==a?(a<<=1,a|=u,(4==++s||0===i&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},r.mont=function(e){return new M(e)},o(M,_),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),r=o;return o.cmp(this.m)>=0?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new r(0)._forceRed(this);var n=e.mul(t),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(this,n(160)(e))},function(e,t,n){"use strict";e.exports={},e.exports.Arc=n(225),e.exports.Line=n(224),e.exports.Point=n(223),e.exports.Rectangle=n(222)},function(e,t){var n={},i=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},o=i(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),r=i(function(){return document.head||document.getElementsByTagName("head")[0]}),a=null,s=0,l=[];function d(e,t){for(var i=0;i<e.length;i++){var o=e[i],r=n[o.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](o.parts[a]);for(;a<o.parts.length;a++)r.parts.push(p(o.parts[a],t))}else{var s=[];for(a=0;a<o.parts.length;a++)s.push(p(o.parts[a],t));n[o.id]={id:o.id,refs:1,parts:s}}}}function c(e){for(var t=[],n={},i=0;i<e.length;i++){var o=e[i],r=o[0],a={css:o[1],media:o[2],sourceMap:o[3]};n[r]?n[r].parts.push(a):t.push(n[r]={id:r,parts:[a]})}return t}function u(e,t){var n=r(),i=l[l.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),l.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function h(e){e.parentNode.removeChild(e);var t=l.indexOf(e);t>=0&&l.splice(t,1)}function f(e){var t=document.createElement("style");return t.type="text/css",u(e,t),t}function p(e,t){var n,i,o;if(t.singleton){var r=s++;n=a||(a=f(t)),i=y.bind(null,n,r,!1),o=y.bind(null,n,r,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",u(e,t),t}(t),i=function(e,t){var n=t.css,i=t.sourceMap;i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([n],{type:"text/css"}),r=e.href;e.href=URL.createObjectURL(o),r&&URL.revokeObjectURL(r)}.bind(null,n),o=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=f(t),i=function(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){h(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");void 0===(t=t||{}).singleton&&(t.singleton=o()),void 0===t.insertAt&&(t.insertAt="bottom");var i=c(e);return d(i,t),function(e){for(var o=[],r=0;r<i.length;r++){var a=i[r];(s=n[a.id]).refs--,o.push(s)}for(e&&d(c(e),t),r=0;r<o.length;r++){var s;if(0===(s=o[r]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete n[s.id]}}}};var m,g=(m=[],function(e,t){return m[e]=t,m.filter(Boolean).join("\n")});function y(e,t,n,i){var o=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=g(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n,i=e[1]||"",o=e[3];if(!o)return i;if(t&&"function"==typeof btoa){var r=(n=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"});return[i].concat(a).concat([r]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){"use strict";var i=t;i.version=n(435).version,i.utils=n(434),i.rand=n(249),i.curve=n(170),i.curves=n(429),i.ec=n(420),i.eddsa=n(416)},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var i=n(4);e.exports={formatters:{values:function(e){return i.isArray(e)?e:""+e},linear:function(e,t,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&e!==Math.floor(e)&&(o=e-Math.floor(e));var r=i.log10(Math.abs(o)),a="";if(0!==e){var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),a=e.toFixed(s)}else a="0";return a},logarithmic:function(e,t,n){var o=e/Math.pow(10,Math.floor(i.log10(e)));return 0===e?"0":1===o||2===o||5===o||0===t||t===n.length-1?e.toExponential():""}}}},function(e,t,n){"use strict";var i=n(4);function o(e,t){return i.where(e,function(e){return e.position===t})}function r(e,t){e.forEach(function(e,t){return e._tmpIndex_=t,e}),e.sort(function(e,n){var i=t?n:e,o=t?e:n;return i.weight===o.weight?i._tmpIndex_-o._tmpIndex_:i.weight-o.weight}),e.forEach(function(e){delete e._tmpIndex_})}e.exports={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var i,o=["fullWidth","position","weight"],r=o.length,a=0;a<r;++a)i=o[a],n.hasOwnProperty(i)&&(t[i]=n[i])},update:function(e,t,n){if(e){var a=e.options.layout||{},s=i.options.toPadding(a.padding),l=s.left,d=s.right,c=s.top,u=s.bottom,h=o(e.boxes,"left"),f=o(e.boxes,"right"),p=o(e.boxes,"top"),m=o(e.boxes,"bottom"),g=o(e.boxes,"chartArea");r(h,!0),r(f,!1),r(p,!0),r(m,!1);var y=t-l-d,v=n-c-u,A=v/2,b=(t-y/2)/(h.length+f.length),w=(n-A)/(p.length+m.length),_=y,M=v,x=[];i.each(h.concat(f,p,m),function(e){var t,n=e.isHorizontal();n?(t=e.update(e.fullWidth?y:_,w),M-=t.height):(t=e.update(b,M),_-=t.width),x.push({horizontal:n,minSize:t,box:e})});var k=0,S=0,C=0,E=0;i.each(p.concat(m),function(e){if(e.getPadding){var t=e.getPadding();k=Math.max(k,t.left),S=Math.max(S,t.right)}}),i.each(h.concat(f),function(e){if(e.getPadding){var t=e.getPadding();C=Math.max(C,t.top),E=Math.max(E,t.bottom)}});var L=l,T=d,D=c,Y=u;i.each(h.concat(f),j),i.each(h,function(e){L+=e.width}),i.each(f,function(e){T+=e.width}),i.each(p.concat(m),j),i.each(p,function(e){D+=e.height}),i.each(m,function(e){Y+=e.height}),i.each(h.concat(f),function(e){var t=i.findNextWhere(x,function(t){return t.box===e}),n={left:0,right:0,top:D,bottom:Y};t&&e.update(t.minSize.width,M,n)}),L=l,T=d,D=c,Y=u,i.each(h,function(e){L+=e.width}),i.each(f,function(e){T+=e.width}),i.each(p,function(e){D+=e.height}),i.each(m,function(e){Y+=e.height});var R=Math.max(k-L,0);L+=R,T+=Math.max(S-T,0);var B=Math.max(C-D,0);D+=B,Y+=Math.max(E-Y,0);var O=n-D-Y,H=t-L-T;H===_&&O===M||(i.each(h,function(e){e.height=O}),i.each(f,function(e){e.height=O}),i.each(p,function(e){e.fullWidth||(e.width=H)}),i.each(m,function(e){e.fullWidth||(e.width=H)}),M=O,_=H);var P=l+R,I=c+B;i.each(h.concat(p),F),P+=_,I+=M,i.each(f,F),i.each(m,F),e.chartArea={left:L,top:D,right:L+_,bottom:D+M},i.each(g,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(_,M)})}function j(e){var t=i.findNextWhere(x,function(t){return t.box===e});if(t)if(e.isHorizontal()){var n={left:Math.max(L,k),right:Math.max(T,S),top:0,bottom:0};e.update(e.fullWidth?y:_,v/2,n)}else e.update(t.minSize.width,M)}function F(e){e.isHorizontal()?(e.left=e.fullWidth?l:L,e.right=e.fullWidth?t-d:L+_,e.top=I,e.bottom=I+e.height,I=e.bottom):(e.left=P,e.right=P+e.width,e.top=D,e.bottom=D+M,P=e.right)}}}},function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),r=/Edge\/(\d+)/.exec(e),a=i||o||r,s=a&&(i?document.documentMode||6:+(r||o)[1]),l=!r&&/WebKit\//.test(e),d=l&&/Qt\/\d+\.\d+/.test(e),c=!r&&/Chrome\//.test(e),u=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),m=!r&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),y=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=m||/Mac/.test(t),A=/\bCrOS\b/.test(e),b=/win/i.test(t),w=u&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(u=!1,l=!0);var _=v&&(d||u&&(null==w||w<12.11)),M=n||a&&s>=9;function x(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var k,S=function(e,t){var n=e.className,i=x(t).exec(n);if(i){var o=n.slice(i.index+i[0].length);e.className=n.slice(0,i.index)+(o?i[1]+o:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function E(e,t){return C(e).appendChild(t)}function L(e,t,n,i){var o=document.createElement(e);if(n&&(o.className=n),i&&(o.style.cssText=i),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var r=0;r<t.length;++r)o.appendChild(t[r]);return o}function T(e,t,n,i){var o=L(e,t,n,i);return o.setAttribute("role","presentation"),o}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function Y(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function R(e,t){var n=e.className;x(t).test(n)||(e.className+=(n?" ":"")+t)}function B(e,t){for(var n=e.split(" "),i=0;i<n.length;i++)n[i]&&!x(n[i]).test(t)&&(t+=" "+n[i]);return t}k=document.createRange?function(e,t,n,i){var o=document.createRange();return o.setEnd(i||e,n),o.setStart(e,t),o}:function(e,t,n){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch(e){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i};var O=function(e){e.select()};function H(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function P(e,t,n){for(var i in t||(t={}),e)!e.hasOwnProperty(i)||!1===n&&t.hasOwnProperty(i)||(t[i]=e[i]);return t}function I(e,t,n,i,o){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var r=i||0,a=o||0;;){var s=e.indexOf("\t",r);if(s<0||s>=t)return a+(t-r);a+=s-r,a+=n-a%n,r=s+1}}m?O=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(O=function(e){try{e.select()}catch(e){}});var j=function(){this.id=null};function F(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}j.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var N=30,z={toString:function(){return"CodeMirror.Pass"}},W={scroll:!1},$={origin:"*mouse"},U={origin:"+move"};function Q(e,t,n){for(var i=0,o=0;;){var r=e.indexOf("\t",i);-1==r&&(r=e.length);var a=r-i;if(r==e.length||o+a>=t)return i+Math.min(a,t-o);if(o+=r-i,i=r+1,(o+=n-o%n)>=t)return i}}var G=[""];function V(e){for(;G.length<=e;)G.push(J(G)+" ");return G[e]}function J(e){return e[e.length-1]}function K(e,t){for(var n=[],i=0;i<e.length;i++)n[i]=t(e[i],i);return n}function X(){}function q(e,t){var n;return Object.create?n=Object.create(e):(X.prototype=e,n=new X),t&&P(t,n),n}var Z=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ee(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Z.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function ne(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function re(e,t,n){for(;(n<0?t>0:t<e.length)&&oe(e.charAt(t));)t+=n;return t}function ae(e,t,n){for(var i=t>n?-1:1;;){if(t==n)return t;var o=(t+n)/2,r=i<0?Math.ceil(o):Math.floor(o);if(r==t)return e(r)?t:n;e(r)?n=r:t=r+i}}function se(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var o=n.children[i],r=o.chunkSize();if(t<r){n=o;break}t-=r}return n.lines[t]}function le(e,t,n){var i=[],o=t.line;return e.iter(t.line,n.line+1,function(e){var r=e.text;o==n.line&&(r=r.slice(0,n.ch)),o==t.line&&(r=r.slice(t.ch)),i.push(r),++o}),i}function de(e,t,n){var i=[];return e.iter(t,n,function(e){i.push(e.text)}),i}function ce(e,t){var n=t-e.height;if(n)for(var i=e;i;i=i.parent)i.height+=n}function ue(e){if(null==e.parent)return null;for(var t=e.parent,n=F(t.lines,e),i=t.parent;i;t=i,i=i.parent)for(var o=0;i.children[o]!=t;++o)n+=i.children[o].chunkSize();return n+t.first}function he(e,t){var n=e.first;e:do{for(var i=0;i<e.children.length;++i){var o=e.children[i],r=o.height;if(t<r){e=o;continue e}t-=r,n+=o.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function fe(e,t){return t>=e.first&&t<e.first+e.size}function pe(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function me(e,t,n){if(void 0===n&&(n=null),!(this instanceof me))return new me(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ge(e,t){return e.line-t.line||e.ch-t.ch}function ye(e,t){return e.sticky==t.sticky&&0==ge(e,t)}function ve(e){return me(e.line,e.ch)}function Ae(e,t){return ge(e,t)<0?t:e}function be(e,t){return ge(e,t)<0?e:t}function we(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function _e(e,t){if(t.line<e.first)return me(e.first,0);var n=e.first+e.size-1;return t.line>n?me(n,se(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?me(e.line,t):n<0?me(e.line,0):e}(t,se(e,t.line).text.length)}function Me(e,t){for(var n=[],i=0;i<t.length;i++)n[i]=_e(e,t[i]);return n}var xe=!1,ke=!1;function Se(e,t,n){this.marker=e,this.from=t,this.to=n}function Ce(e,t){if(e)for(var n=0;n<e.length;++n){var i=e[n];if(i.marker==t)return i}}function Ee(e,t){for(var n,i=0;i<e.length;++i)e[i]!=t&&(n||(n=[])).push(e[i]);return n}function Le(e,t){if(t.full)return null;var n=fe(e,t.from.line)&&se(e,t.from.line).markedSpans,i=fe(e,t.to.line)&&se(e,t.to.line).markedSpans;if(!n&&!i)return null;var o=t.from.ch,r=t.to.ch,a=0==ge(t.from,t.to),s=function(e,t,n){var i;if(e)for(var o=0;o<e.length;++o){var r=e[o],a=r.marker;if(null==r.from||(a.inclusiveLeft?r.from<=t:r.from<t)||r.from==t&&"bookmark"==a.type&&(!n||!r.marker.insertLeft)){var s=null==r.to||(a.inclusiveRight?r.to>=t:r.to>t);(i||(i=[])).push(new Se(a,r.from,s?null:r.to))}}return i}(n,o,a),l=function(e,t,n){var i;if(e)for(var o=0;o<e.length;++o){var r=e[o],a=r.marker;if(null==r.to||(a.inclusiveRight?r.to>=t:r.to>t)||r.from==t&&"bookmark"==a.type&&(!n||r.marker.insertLeft)){var s=null==r.from||(a.inclusiveLeft?r.from<=t:r.from<t);(i||(i=[])).push(new Se(a,s?null:r.from-t,null==r.to?null:r.to-t))}}return i}(i,r,a),d=1==t.text.length,c=J(t.text).length+(d?o:0);if(s)for(var u=0;u<s.length;++u){var h=s[u];if(null==h.to){var f=Ce(l,h.marker);f?d&&(h.to=null==f.to?null:f.to+c):h.to=o}}if(l)for(var p=0;p<l.length;++p){var m=l[p];if(null!=m.to&&(m.to+=c),null==m.from)Ce(s,m.marker)||(m.from=c,d&&(s||(s=[])).push(m));else m.from+=c,d&&(s||(s=[])).push(m)}s&&(s=Te(s)),l&&l!=s&&(l=Te(l));var g=[s];if(!d){var y,v=t.text.length-2;if(v>0&&s)for(var A=0;A<s.length;++A)null==s[A].to&&(y||(y=[])).push(new Se(s[A].marker,null,null));for(var b=0;b<v;++b)g.push(y);g.push(l)}return g}function Te(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function De(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ye(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Re(e){return e.inclusiveLeft?-1:0}function Be(e){return e.inclusiveRight?1:0}function Oe(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var i=e.find(),o=t.find(),r=ge(i.from,o.from)||Re(e)-Re(t);return r?-r:ge(i.to,o.to)||Be(e)-Be(t)||t.id-e.id}function He(e,t){var n,i=ke&&e.markedSpans;if(i)for(var o=void 0,r=0;r<i.length;++r)(o=i[r]).marker.collapsed&&null==(t?o.from:o.to)&&(!n||Oe(n,o.marker)<0)&&(n=o.marker);return n}function Pe(e){return He(e,!0)}function Ie(e){return He(e,!1)}function je(e,t,n,i,o){var r=se(e,t),a=ke&&r.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var d=l.marker.find(0),c=ge(d.from,n)||Re(l.marker)-Re(o),u=ge(d.to,i)||Be(l.marker)-Be(o);if(!(c>=0&&u<=0||c<=0&&u>=0)&&(c<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?ge(d.to,n)>=0:ge(d.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?ge(d.from,i)<=0:ge(d.from,i)<0)))return!0}}}function Fe(e){for(var t;t=Pe(e);)e=t.find(-1,!0).line;return e}function Ne(e,t){var n=se(e,t),i=Fe(n);return n==i?t:ue(i)}function ze(e,t){if(t>e.lastLine())return t;var n,i=se(e,t);if(!We(e,i))return t;for(;n=Ie(i);)i=n.find(1,!0).line;return ue(i)+1}function We(e,t){var n=ke&&t.markedSpans;if(n)for(var i=void 0,o=0;o<n.length;++o)if((i=n[o]).marker.collapsed){if(null==i.from)return!0;if(!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&$e(e,t,i))return!0}}function $e(e,t,n){if(null==n.to){var i=n.marker.find(1,!0);return $e(e,i.line,Ce(i.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var o=void 0,r=0;r<t.markedSpans.length;++r)if((o=t.markedSpans[r]).marker.collapsed&&!o.marker.widgetNode&&o.from==n.to&&(null==o.to||o.to!=n.from)&&(o.marker.inclusiveLeft||n.marker.inclusiveRight)&&$e(e,t,o))return!0}function Ue(e){for(var t=0,n=(e=Fe(e)).parent,i=0;i<n.lines.length;++i){var o=n.lines[i];if(o==e)break;t+=o.height}for(var r=n.parent;r;r=(n=r).parent)for(var a=0;a<r.children.length;++a){var s=r.children[a];if(s==n)break;t+=s.height}return t}function Qe(e){if(0==e.height)return 0;for(var t,n=e.text.length,i=e;t=Pe(i);){var o=t.find(0,!0);i=o.from.line,n+=o.from.ch-o.to.ch}for(i=e;t=Ie(i);){var r=t.find(0,!0);n-=i.text.length-r.from.ch,n+=(i=r.to.line).text.length-r.to.ch}return n}function Ge(e){var t=e.display,n=e.doc;t.maxLine=se(n,n.first),t.maxLineLength=Qe(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=Qe(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Ve=null;function Je(e,t,n){var i;Ve=null;for(var o=0;o<e.length;++o){var r=e[o];if(r.from<t&&r.to>t)return o;r.to==t&&(r.from!=r.to&&"before"==n?i=o:Ve=o),r.from==t&&(r.from!=r.to&&"before"!=n?i=o:Ve=o)}return null!=i?i:Ve}var Ke=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,i=/[Lb1n]/,o=/[1n]/;function r(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l,d="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var c=a.length,u=[],h=0;h<c;++h)u.push((l=a.charCodeAt(h))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var f=0,p=d;f<c;++f){var m=u[f];"m"==m?u[f]=p:p=m}for(var g=0,y=d;g<c;++g){var v=u[g];"1"==v&&"r"==y?u[g]="n":n.test(v)&&(y=v,"r"==v&&(u[g]="R"))}for(var A=1,b=u[0];A<c-1;++A){var w=u[A];"+"==w&&"1"==b&&"1"==u[A+1]?u[A]="1":","!=w||b!=u[A+1]||"1"!=b&&"n"!=b||(u[A]=b),b=w}for(var _=0;_<c;++_){var M=u[_];if(","==M)u[_]="N";else if("%"==M){var x=void 0;for(x=_+1;x<c&&"%"==u[x];++x);for(var k=_&&"!"==u[_-1]||x<c&&"1"==u[x]?"1":"N",S=_;S<x;++S)u[S]=k;_=x-1}}for(var C=0,E=d;C<c;++C){var L=u[C];"L"==E&&"1"==L?u[C]="L":n.test(L)&&(E=L)}for(var T=0;T<c;++T)if(t.test(u[T])){var D=void 0;for(D=T+1;D<c&&t.test(u[D]);++D);for(var Y="L"==(T?u[T-1]:d),R=Y==("L"==(D<c?u[D]:d))?Y?"L":"R":d,B=T;B<D;++B)u[B]=R;T=D-1}for(var O,H=[],P=0;P<c;)if(i.test(u[P])){var I=P;for(++P;P<c&&i.test(u[P]);++P);H.push(new r(0,I,P))}else{var j=P,F=H.length;for(++P;P<c&&"L"!=u[P];++P);for(var N=j;N<P;)if(o.test(u[N])){j<N&&H.splice(F,0,new r(1,j,N));var z=N;for(++N;N<P&&o.test(u[N]);++N);H.splice(F,0,new r(2,z,N)),j=N}else++N;j<P&&H.splice(F,0,new r(1,j,P))}return"ltr"==s&&(1==H[0].level&&(O=a.match(/^\s+/))&&(H[0].from=O[0].length,H.unshift(new r(0,0,O[0].length))),1==J(H).level&&(O=a.match(/\s+$/))&&(J(H).to-=O[0].length,H.push(new r(0,c-O[0].length,c)))),"rtl"==s?H.reverse():H}}();function Xe(e,t){var n=e.order;return null==n&&(n=e.order=Ke(e.text,t)),n}var qe=[],Ze=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var i=e._handlers||(e._handlers={});i[t]=(i[t]||qe).concat(n)}};function et(e,t){return e._handlers&&e._handlers[t]||qe}function tt(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var i=e._handlers,o=i&&i[t];if(o){var r=F(o,n);r>-1&&(i[t]=o.slice(0,r).concat(o.slice(r+1)))}}}function nt(e,t){var n=et(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),o=0;o<n.length;++o)n[o].apply(null,i)}function it(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),nt(e,n||t.type,e,t),dt(t)||t.codemirrorIgnore}function ot(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),i=0;i<t.length;++i)-1==F(n,t[i])&&n.push(t[i])}function rt(e,t){return et(e,t).length>0}function at(e){e.prototype.on=function(e,t){Ze(this,e,t)},e.prototype.off=function(e,t){tt(this,e,t)}}function st(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function lt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function dt(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ct(e){st(e),lt(e)}function ut(e){return e.target||e.srcElement}function ht(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}var ft,pt,mt=function(){if(a&&s<9)return!1;var e=L("div");return"draggable"in e||"dragDrop"in e}();function gt(e){if(null==ft){var t=L("span","​");E(e,L("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(ft=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=ft?L("span","​"):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function yt(e){if(null!=pt)return pt;var t=E(e,document.createTextNode("AخA")),n=k(t,0,1).getBoundingClientRect(),i=k(t,1,2).getBoundingClientRect();return C(e),!(!n||n.left==n.right)&&(pt=i.right-n.right<3)}var vt,At=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],i=e.length;t<=i;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var r=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=r.indexOf("\r");-1!=a?(n.push(r.slice(0,a)),t+=a+1):(n.push(r),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},bt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},wt="oncopy"in(vt=L("div"))||(vt.setAttribute("oncopy","return;"),"function"==typeof vt.oncopy),_t=null,Mt={},xt={};function kt(e){if("string"==typeof e&&xt.hasOwnProperty(e))e=xt[e];else if(e&&"string"==typeof e.name&&xt.hasOwnProperty(e.name)){var t=xt[e.name];"string"==typeof t&&(t={name:t}),(e=q(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return kt("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return kt("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function St(e,t){t=kt(t);var n=Mt[t.name];if(!n)return St(e,"text/plain");var i=n(e,t);if(Ct.hasOwnProperty(t.name)){var o=Ct[t.name];for(var r in o)o.hasOwnProperty(r)&&(i.hasOwnProperty(r)&&(i["_"+r]=i[r]),i[r]=o[r])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)i[a]=t.modeProps[a];return i}var Ct={};function Et(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var o=t[i];o instanceof Array&&(o=o.concat([])),n[i]=o}return n}function Lt(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Tt(e,t,n){return!e.startState||e.startState(t,n)}var Dt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Dt.prototype.eol=function(){return this.pos>=this.string.length},Dt.prototype.sol=function(){return this.pos==this.lineStart},Dt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Dt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Dt.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Dt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Dt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Dt.prototype.skipToEnd=function(){this.pos=this.string.length},Dt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Dt.prototype.backUp=function(e){this.pos-=e},Dt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=I(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?I(this.string,this.lineStart,this.tabSize):0)},Dt.prototype.indentation=function(){return I(this.string,null,this.tabSize)-(this.lineStart?I(this.string,this.lineStart,this.tabSize):0)},Dt.prototype.match=function(e,t,n){if("string"!=typeof e){var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},Dt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Dt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Dt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Dt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Yt=function(e,t){this.state=e,this.lookAhead=t},Rt=function(e,t,n,i){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function Bt(e,t,n,i){var o=[e.state.modeGen],r={};Wt(e,t.text,e.doc.mode,n,function(e,t){return o.push(e,t)},r,i);for(var a=n.state,s=function(i){n.baseTokens=o;var s=e.state.overlays[i],l=1,d=0;n.state=!0,Wt(e,t.text,s.mode,n,function(e,t){for(var n=l;d<e;){var i=o[l];i>e&&o.splice(l,1,e,o[l+1],i),l+=2,d=Math.min(e,i)}if(t)if(s.opaque)o.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var r=o[n+1];o[n+1]=(r?r+" ":"")+"overlay "+t}},r),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:o,classes:r.bgClass||r.textClass?r:null}}function Ot(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var i=Ht(e,ue(t)),o=t.text.length>e.options.maxHighlightLength&&Et(e.doc.mode,i.state),r=Bt(e,t,i);o&&(i.state=o),t.stateAfter=i.save(!o),t.styles=r.styles,r.classes?t.styleClasses=r.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ht(e,t,n){var i=e.doc,o=e.display;if(!i.mode.startState)return new Rt(i,!0,t);var r=function(e,t,n){for(var i,o,r=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=r.first)return r.first;var l=se(r,s-1),d=l.stateAfter;if(d&&(!n||s+(d instanceof Yt?d.lookAhead:0)<=r.modeFrontier))return s;var c=I(l.text,null,e.options.tabSize);(null==o||i>c)&&(o=s-1,i=c)}return o}(e,t,n),a=r>i.first&&se(i,r-1).stateAfter,s=a?Rt.fromSaved(i,a,r):new Rt(i,Tt(i.mode),r);return i.iter(r,t,function(n){Pt(e,n.text,s);var i=s.line;n.stateAfter=i==t-1||i%5==0||i>=o.viewFrom&&i<o.viewTo?s.save():null,s.nextLine()}),n&&(i.modeFrontier=s.line),s}function Pt(e,t,n,i){var o=e.doc.mode,r=new Dt(t,e.options.tabSize,n);for(r.start=r.pos=i||0,""==t&&It(o,n.state);!r.eol();)jt(o,r,n.state),r.start=r.pos}function It(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Lt(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function jt(e,t,n,i){for(var o=0;o<10;o++){i&&(i[0]=Lt(e,n).mode);var r=e.token(t,n);if(t.pos>t.start)return r}throw new Error("Mode "+e.name+" failed to advance stream.")}Rt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Rt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Rt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Rt.fromSaved=function(e,t,n){return t instanceof Yt?new Rt(e,Et(e.mode,t.state),n,t.lookAhead):new Rt(e,Et(e.mode,t),n)},Rt.prototype.save=function(e){var t=!1!==e?Et(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Yt(t,this.maxLookAhead):t};var Ft=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Nt(e,t,n,i){var o,r,a=e.doc,s=a.mode,l=se(a,(t=_e(a,t)).line),d=Ht(e,t.line,n),c=new Dt(l.text,e.options.tabSize,d);for(i&&(r=[]);(i||c.pos<t.ch)&&!c.eol();)c.start=c.pos,o=jt(s,c,d.state),i&&r.push(new Ft(c,o,Et(a.mode,d.state)));return i?r:new Ft(c,o,d.state)}function zt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var i=n[1]?"bgClass":"textClass";null==t[i]?t[i]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[i])||(t[i]+=" "+n[2])}return e}function Wt(e,t,n,i,o,r,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,d=0,c=null,u=new Dt(t,e.options.tabSize,i),h=e.options.addModeClass&&[null];for(""==t&&zt(It(n,i.state),r);!u.eol();){if(u.pos>e.options.maxHighlightLength?(s=!1,a&&Pt(e,t,i,u.pos),u.pos=t.length,l=null):l=zt(jt(n,u,i.state,h),r),h){var f=h[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||c!=l){for(;d<u.start;)o(d=Math.min(u.start,d+5e3),c);c=l}u.start=u.pos}for(;d<u.pos;){var p=Math.min(u.pos,d+5e3);o(p,c),d=p}}var $t=function(e,t,n){this.text=e,Ye(this,t),this.height=n?n(this):1};function Ut(e){e.parent=null,De(e)}$t.prototype.lineNo=function(){return ue(this)},at($t);var Qt={},Gt={};function Vt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Gt:Qt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Jt(e,t){var n=T("span",null,null,l?"padding-right: .1px":null),i={pre:T("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(a||l)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var r=o?t.rest[o-1]:t.line,s=void 0;i.pos=0,i.addToken=Xt,yt(e.display.measure)&&(s=Xe(r,e.doc.direction))&&(i.addToken=qt(i.addToken,s)),i.map=[],en(r,i,Ot(e,r,t!=e.display.externalMeasured&&ue(r))),r.styleClasses&&(r.styleClasses.bgClass&&(i.bgClass=B(r.styleClasses.bgClass,i.bgClass||"")),r.styleClasses.textClass&&(i.textClass=B(r.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(gt(e.display.measure))),0==o?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var d=i.content.lastChild;(/\bcm-tab\b/.test(d.className)||d.querySelector&&d.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return nt(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=B(i.pre.className,i.textClass||"")),i}function Kt(e){var t=L("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Xt(e,t,n,i,o,r,l){if(t){var d,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",o=0;o<e.length;o++){var r=e.charAt(o);" "!=r||!n||o!=e.length-1&&32!=e.charCodeAt(o+1)||(r=" "),i+=r,n=" "==r}return i}(t,e.trailingSpace):t,u=e.cm.state.specialChars,h=!1;if(u.test(t)){d=document.createDocumentFragment();for(var f=0;;){u.lastIndex=f;var p=u.exec(t),m=p?p.index-f:t.length-f;if(m){var g=document.createTextNode(c.slice(f,f+m));a&&s<9?d.appendChild(L("span",[g])):d.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!p)break;f+=m+1;var y=void 0;if("\t"==p[0]){var v=e.cm.options.tabSize,A=v-e.col%v;(y=d.appendChild(L("span",V(A),"cm-tab"))).setAttribute("role","presentation"),y.setAttribute("cm-text","\t"),e.col+=A}else"\r"==p[0]||"\n"==p[0]?((y=d.appendChild(L("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((y=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&s<9?d.appendChild(L("span",[y])):d.appendChild(y),e.col+=1);e.map.push(e.pos,e.pos+1,y),e.pos++}}else e.col+=t.length,d=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,d),a&&s<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||i||o||h||l){var b=n||"";i&&(b+=i),o&&(b+=o);var w=L("span",[d],b,l);return r&&(w.title=r),e.content.appendChild(w)}e.content.appendChild(d)}}function qt(e,t){return function(n,i,o,r,a,s,l){o=o?o+" cm-force-border":"cm-force-border";for(var d=n.pos,c=d+i.length;;){for(var u=void 0,h=0;h<t.length&&!((u=t[h]).to>d&&u.from<=d);h++);if(u.to>=c)return e(n,i,o,r,a,s,l);e(n,i.slice(0,u.to-d),o,r,null,s,l),r=null,i=i.slice(u.to-d),d=u.to}}}function Zt(e,t,n,i){var o=!i&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!i&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function en(e,t,n){var i=e.markedSpans,o=e.text,r=0;if(i)for(var a,s,l,d,c,u,h,f=o.length,p=0,m=1,g="",y=0;;){if(y==p){l=d=c=u=s="",h=null,y=1/0;for(var v=[],A=void 0,b=0;b<i.length;++b){var w=i[b],_=w.marker;"bookmark"==_.type&&w.from==p&&_.widgetNode?v.push(_):w.from<=p&&(null==w.to||w.to>p||_.collapsed&&w.to==p&&w.from==p)?(null!=w.to&&w.to!=p&&y>w.to&&(y=w.to,d=""),_.className&&(l+=" "+_.className),_.css&&(s=(s?s+";":"")+_.css),_.startStyle&&w.from==p&&(c+=" "+_.startStyle),_.endStyle&&w.to==y&&(A||(A=[])).push(_.endStyle,w.to),_.title&&!u&&(u=_.title),_.collapsed&&(!h||Oe(h.marker,_)<0)&&(h=w)):w.from>p&&y>w.from&&(y=w.from)}if(A)for(var M=0;M<A.length;M+=2)A[M+1]==y&&(d+=" "+A[M]);if(!h||h.from==p)for(var x=0;x<v.length;++x)Zt(t,0,v[x]);if(h&&(h.from||0)==p){if(Zt(t,(null==h.to?f+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(p>=f)break;for(var k=Math.min(f,y);;){if(g){var S=p+g.length;if(!h){var C=S>k?g.slice(0,k-p):g;t.addToken(t,C,a?a+l:l,c,p+C.length==y?d:"",u,s)}if(S>=k){g=g.slice(k-p),p=k;break}p=S,c=""}g=o.slice(r,r=n[m++]),a=Vt(n[m++],t.cm.options)}}else for(var E=1;E<n.length;E+=2)t.addToken(t,o.slice(r,r=n[E]),Vt(n[E+1],t.cm.options))}function tn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Ie(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?ue(J(this.rest))-n+1:1,this.node=this.text=null,this.hidden=We(e,t)}function nn(e,t,n){for(var i,o=[],r=t;r<n;r=i){var a=new tn(e.doc,se(e.doc,r),r);i=r+a.size,o.push(a)}return o}var on=null,rn=null;function an(e,t){var n=et(e,t);if(n.length){var i,o=Array.prototype.slice.call(arguments,2);on?i=on.delayedCallbacks:rn?i=rn:(i=rn=[],setTimeout(sn,0));for(var r=function(e){i.push(function(){return n[e].apply(null,o)})},a=0;a<n.length;++a)r(a)}}function sn(){var e=rn;rn=null;for(var t=0;t<e.length;++t)e[t]()}function ln(e,t,n,i){for(var o=0;o<t.changes.length;o++){var r=t.changes[o];"text"==r?un(e,t):"gutter"==r?fn(e,t,n,i):"class"==r?hn(e,t):"widget"==r&&pn(e,t,i)}t.changes=null}function dn(e){return e.node==e.text&&(e.node=L("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function cn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Jt(e,t)}function un(e,t){var n=t.text.className,i=cn(e,t);t.text==t.node&&(t.node=i.pre),t.text.parentNode.replaceChild(i.pre,t.text),t.text=i.pre,i.bgClass!=t.bgClass||i.textClass!=t.textClass?(t.bgClass=i.bgClass,t.textClass=i.textClass,hn(e,t)):n&&(t.text.className=n)}function hn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var i=dn(t);t.background=i.insertBefore(L("div",null,n),i.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?dn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function fn(e,t,n,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=dn(t);t.gutterBackground=L("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var r=t.line.gutterMarkers;if(e.options.lineNumbers||r){var a=dn(t),s=t.gutter=L("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||r&&r["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(L("div",pe(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),r)for(var l=0;l<e.options.gutters.length;++l){var d=e.options.gutters[l],c=r.hasOwnProperty(d)&&r[d];c&&s.appendChild(L("div",[c],"CodeMirror-gutter-elt","left: "+i.gutterLeft[d]+"px; width: "+i.gutterWidth[d]+"px"))}}}function pn(e,t,n){t.alignable&&(t.alignable=null);for(var i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,"CodeMirror-linewidget"==i.className&&t.node.removeChild(i);gn(e,t,n)}function mn(e,t,n,i){var o=cn(e,t);return t.text=t.node=o.pre,o.bgClass&&(t.bgClass=o.bgClass),o.textClass&&(t.textClass=o.textClass),hn(e,t),fn(e,t,n,i),gn(e,t,i),t.node}function gn(e,t,n){if(yn(e,t.line,t,n,!0),t.rest)for(var i=0;i<t.rest.length;i++)yn(e,t.rest[i],t,n,!1)}function yn(e,t,n,i,o){if(t.widgets)for(var r=dn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],d=L("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||d.setAttribute("cm-ignore-events","true"),vn(l,d,n,i),e.display.input.setUneditable(d),o&&l.above?r.insertBefore(d,n.gutter||n.text):r.appendChild(d),an(l,"redraw")}}function vn(e,t,n,i){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var o=i.wrapperWidth;t.style.left=i.fixedPos+"px",e.coverGutter||(o-=i.gutterTotalWidth,t.style.paddingLeft=i.gutterTotalWidth+"px"),t.style.width=o+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-i.gutterTotalWidth+"px"))}function An(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),E(t.display.measure,L("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function bn(e,t){for(var n=ut(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function wn(e){return e.lineSpace.offsetTop}function _n(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Mn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=E(e.measure,L("pre","x")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,i={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(i.left)||isNaN(i.right)||(e.cachedPaddingH=i),i}function xn(e){return N-e.display.nativeBarWidth}function kn(e){return e.display.scroller.clientWidth-xn(e)-e.display.barWidth}function Sn(e){return e.display.scroller.clientHeight-xn(e)-e.display.barHeight}function Cn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var i=0;i<e.rest.length;i++)if(e.rest[i]==t)return{map:e.measure.maps[i],cache:e.measure.caches[i]};for(var o=0;o<e.rest.length;o++)if(ue(e.rest[o])>n)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function En(e,t,n,i){return Dn(e,Tn(e,t),n,i)}function Ln(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ai(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Tn(e,t){var n=ue(t),i=Ln(e,n);i&&!i.text?i=null:i&&i.changes&&(ln(e,i,n,ti(e)),e.curOp.forceUpdate=!0),i||(i=function(e,t){var n=ue(t=Fe(t)),i=e.display.externalMeasured=new tn(e.doc,t,n);i.lineN=n;var o=i.built=Jt(e,i);return i.text=o.pre,E(e.display.lineMeasure,o.pre),i}(e,t));var o=Cn(i,t,n);return{line:t,view:i,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function Dn(e,t,n,i,o){t.before&&(n=-1);var r,l=n+(i||"");return t.cache.hasOwnProperty(l)?r=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var i=e.options.lineWrapping,o=i&&kn(e);if(!t.measure.heights||i&&t.measure.width!=o){var r=t.measure.heights=[];if(i){t.measure.width=o;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],d=a[s+1];Math.abs(l.bottom-d.bottom)>2&&r.push((l.bottom+d.top)/2-n.top)}}r.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(r=function(e,t,n,i){var o,r=Bn(t.map,n,i),l=r.node,d=r.start,c=r.end,u=r.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){for(;d&&oe(t.line.text.charAt(r.coverStart+d));)--d;for(;r.coverStart+c<r.coverEnd&&oe(t.line.text.charAt(r.coverStart+c));)++c;if((o=a&&s<9&&0==d&&c==r.coverEnd-r.coverStart?l.parentNode.getBoundingClientRect():On(k(l,d,c).getClientRects(),i)).left||o.right||0==d)break;c=d,d-=1,u="right"}a&&s<11&&(o=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=_t)return _t;var t=E(e,L("span","x")),n=t.getBoundingClientRect(),i=k(t,0,1).getBoundingClientRect();return _t=Math.abs(n.left-i.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*i,bottom:t.bottom*i}}(e.display.measure,o))}else{var f;d>0&&(u=i="right"),o=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==i?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!d&&(!o||!o.left&&!o.right)){var p=l.parentNode.getClientRects()[0];o=p?{left:p.left,right:p.left+ei(e.display),top:p.top,bottom:p.bottom}:Rn}for(var m=o.top-t.rect.top,g=o.bottom-t.rect.top,y=(m+g)/2,v=t.view.measure.heights,A=0;A<v.length-1&&!(y<v[A]);A++);var b=A?v[A-1]:0,w=v[A],_={left:("right"==u?o.right:o.left)-t.rect.left,right:("left"==u?o.left:o.right)-t.rect.left,top:b,bottom:w};return o.left||o.right||(_.bogus=!0),e.options.singleCursorHeightPerLine||(_.rtop=m,_.rbottom=g),_}(e,t,n,i)).bogus||(t.cache[l]=r)),{left:r.left,right:r.right,top:o?r.rtop:r.top,bottom:o?r.rbottom:r.bottom}}var Yn,Rn={left:0,right:0,top:0,bottom:0};function Bn(e,t,n){for(var i,o,r,a,s,l,d=0;d<e.length;d+=3)if(s=e[d],l=e[d+1],t<s?(o=0,r=1,a="left"):t<l?r=1+(o=t-s):(d==e.length-3||t==l&&e[d+3]>t)&&(o=(r=l-s)-1,t>=l&&(a="right")),null!=o){if(i=e[d+2],s==l&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;d&&e[d-2]==e[d-3]&&e[d-1].insertLeft;)i=e[2+(d-=3)],a="left";if("right"==n&&o==l-s)for(;d<e.length-3&&e[d+3]==e[d+4]&&!e[d+5].insertLeft;)i=e[(d+=3)+2],a="right";break}return{node:i,start:o,end:r,collapse:a,coverStart:s,coverEnd:l}}function On(e,t){var n=Rn;if("left"==t)for(var i=0;i<e.length&&(n=e[i]).left==n.right;i++);else for(var o=e.length-1;o>=0&&(n=e[o]).left==n.right;o--);return n}function Hn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Pn(e){e.display.externalMeasure=null,C(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Hn(e.display.view[t])}function In(e){Pn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function jn(){return c&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Fn(){return c&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Nn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=An(e.widgets[n]));return t}function zn(e,t,n,i,o){if(!o){var r=Nn(t);n.top+=r,n.bottom+=r}if("line"==i)return n;i||(i="local");var a=Ue(t);if("local"==i?a+=wn(e.display):a-=e.display.viewOffset,"page"==i||"window"==i){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==i?0:Fn());var l=s.left+("window"==i?0:jn());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Wn(e,t,n){if("div"==n)return t;var i=t.left,o=t.top;if("page"==n)i-=jn(),o-=Fn();else if("local"==n||!n){var r=e.display.sizer.getBoundingClientRect();i+=r.left,o+=r.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:i-a.left,top:o-a.top}}function $n(e,t,n,i,o){return i||(i=se(e.doc,t.line)),zn(e,i,En(e,i,t.ch,o),n)}function Un(e,t,n,i,o,r){function a(t,a){var s=Dn(e,o,t,a?"right":"left",r);return a?s.left=s.right:s.right=s.left,zn(e,i,s,n)}i=i||se(e.doc,t.line),o||(o=Tn(e,i));var s=Xe(i,e.doc.direction),l=t.ch,d=t.sticky;if(l>=i.text.length?(l=i.text.length,d="before"):l<=0&&(l=0,d="after"),!s)return a("before"==d?l-1:l,"before"==d);function c(e,t,n){var i=1==s[t].level;return a(n?e-1:e,i!=n)}var u=Je(s,l,d),h=Ve,f=c(l,u,"before"==d);return null!=h&&(f.other=c(l,h,"before"!=d)),f}function Qn(e,t){var n=0;t=_e(e.doc,t),e.options.lineWrapping||(n=ei(e.display)*t.ch);var i=se(e.doc,t.line),o=Ue(i)+wn(e.display);return{left:n,right:n,top:o,bottom:o+i.height}}function Gn(e,t,n,i,o){var r=me(e,t,n);return r.xRel=o,i&&(r.outside=!0),r}function Vn(e,t,n){var i=e.doc;if((n+=e.display.viewOffset)<0)return Gn(i.first,0,null,!0,-1);var o=he(i,n),r=i.first+i.size-1;if(o>r)return Gn(i.first+i.size-1,se(i,r).text.length,null,!0,1);t<0&&(t=0);for(var a=se(i,o);;){var s=qn(e,a,o,t,n),l=Ie(a),d=l&&l.find(0,!0);if(!l||!(s.ch>d.from.ch||s.ch==d.from.ch&&s.xRel>0))return s;o=ue(a=d.to.line)}}function Jn(e,t,n,i){i-=Nn(t);var o=t.text.length,r=ae(function(t){return Dn(e,n,t-1).bottom<=i},o,0);return{begin:r,end:o=ae(function(t){return Dn(e,n,t).top>i},r,o)}}function Kn(e,t,n,i){return n||(n=Tn(e,t)),Jn(e,t,n,zn(e,t,Dn(e,n,i),"line").top)}function Xn(e,t,n,i){return!(e.bottom<=n)&&(e.top>n||(i?e.left:e.right)>t)}function qn(e,t,n,i,o){o-=Ue(t);var r=Tn(e,t),a=Nn(t),s=0,l=t.text.length,d=!0,c=Xe(t,e.doc.direction);if(c){var u=(e.options.lineWrapping?function(e,t,n,i,o,r,a){var s=Jn(e,t,i,a),l=s.begin,d=s.end;/\s/.test(t.text.charAt(d-1))&&d--;for(var c=null,u=null,h=0;h<o.length;h++){var f=o[h];if(!(f.from>=d||f.to<=l)){var p=Dn(e,i,1!=f.level?Math.min(d,f.to)-1:Math.max(l,f.from)).right,m=p<r?r-p+1e9:p-r;(!c||u>m)&&(c=f,u=m)}}return c||(c=o[o.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>d&&(c={from:c.from,to:d,level:c.level}),c}:function(e,t,n,i,o,r,a){var s=ae(function(s){var l=o[s],d=1!=l.level;return Xn(Un(e,me(n,d?l.to:l.from,d?"before":"after"),"line",t,i),r,a,!0)},0,o.length-1),l=o[s];if(s>0){var d=1!=l.level,c=Un(e,me(n,d?l.from:l.to,d?"after":"before"),"line",t,i);Xn(c,r,a,!0)&&c.top>a&&(l=o[s-1])}return l})(e,t,n,r,c,i,o);s=(d=1!=u.level)?u.from:u.to-1,l=d?u.to:u.from-1}var h,f,p=null,m=null,g=ae(function(t){var n=Dn(e,r,t);return n.top+=a,n.bottom+=a,!!Xn(n,i,o,!1)&&(n.top<=o&&n.left<=i&&(p=t,m=n),!0)},s,l),y=!1;if(m){var v=i-m.left<m.right-i,A=v==d;g=p+(A?0:1),f=A?"after":"before",h=v?m.left:m.right}else{d||g!=l&&g!=s||g++,f=0==g?"after":g==t.text.length?"before":Dn(e,r,g-(d?1:0)).bottom+a<=o==d?"after":"before";var b=Un(e,me(n,g,f),"line",t,r);h=b.left,y=o<b.top||o>=b.bottom}return Gn(n,g=re(t.text,g,1),f,y,i-h)}function Zn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Yn){Yn=L("pre");for(var t=0;t<49;++t)Yn.appendChild(document.createTextNode("x")),Yn.appendChild(L("br"));Yn.appendChild(document.createTextNode("x"))}E(e.measure,Yn);var n=Yn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),C(e.measure),n||1}function ei(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=L("span","xxxxxxxxxx"),n=L("pre",[t]);E(e.measure,n);var i=t.getBoundingClientRect(),o=(i.right-i.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function ti(e){for(var t=e.display,n={},i={},o=t.gutters.clientLeft,r=t.gutters.firstChild,a=0;r;r=r.nextSibling,++a)n[e.options.gutters[a]]=r.offsetLeft+r.clientLeft+o,i[e.options.gutters[a]]=r.clientWidth;return{fixedPos:ni(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function ni(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ii(e){var t=Zn(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/ei(e.display)-3);return function(o){if(We(e.doc,o))return 0;var r=0;if(o.widgets)for(var a=0;a<o.widgets.length;a++)o.widgets[a].height&&(r+=o.widgets[a].height);return n?r+(Math.ceil(o.text.length/i)||1)*t:r+t}}function oi(e){var t=e.doc,n=ii(e);t.iter(function(e){var t=n(e);t!=e.height&&ce(e,t)})}function ri(e,t,n,i){var o=e.display;if(!n&&"true"==ut(t).getAttribute("cm-not-content"))return null;var r,a,s=o.lineSpace.getBoundingClientRect();try{r=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var l,d=Vn(e,r,a);if(i&&1==d.xRel&&(l=se(e.doc,d.line).text).length==d.ch){var c=I(l,l.length,e.options.tabSize)-l.length;d=me(d.line,Math.max(0,Math.round((r-Mn(e.display).left)/ei(e.display))-c))}return d}function ai(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,i=0;i<n.length;i++)if((t-=n[i].size)<0)return i}function si(e){e.display.input.showSelection(e.display.input.prepareSelection())}function li(e,t){void 0===t&&(t=!0);for(var n=e.doc,i={},o=i.cursors=document.createDocumentFragment(),r=i.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var l=s.empty();(l||e.options.showCursorWhenSelecting)&&di(e,s.head,o),l||ui(e,s,r)}}return i}function di(e,t,n){var i=Un(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=n.appendChild(L("div"," ","CodeMirror-cursor"));if(o.style.left=i.left+"px",o.style.top=i.top+"px",o.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",i.other){var r=n.appendChild(L("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));r.style.display="",r.style.left=i.other.left+"px",r.style.top=i.other.top+"px",r.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function ci(e,t){return e.top-t.top||e.left-t.left}function ui(e,t,n){var i=e.display,o=e.doc,r=document.createDocumentFragment(),a=Mn(e.display),s=a.left,l=Math.max(i.sizerWidth,kn(e)-i.sizer.offsetLeft)-a.right,d="ltr"==o.direction;function c(e,t,n,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),r.appendChild(L("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(i-t)+"px"))}function u(t,n,i){var r,a,u=se(o,t),h=u.text.length;function f(n,i){return $n(e,me(t,n),"div",u,i)}function p(t,n,i){var o=Kn(e,u,null,t),r="ltr"==n==("after"==i)?"left":"right";return f("after"==i?o.begin:o.end-(/\s/.test(u.text.charAt(o.end-1))?2:1),r)[r]}var m=Xe(u,o.direction);return function(e,t,n,i){if(!e)return i(t,n,"ltr",0);for(var o=!1,r=0;r<e.length;++r){var a=e[r];(a.from<n&&a.to>t||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",r),o=!0)}o||i(t,n,"ltr")}(m,n||0,null==i?h:i,function(e,t,o,u){var g="ltr"==o,y=f(e,g?"left":"right"),v=f(t-1,g?"right":"left"),A=null==n&&0==e,b=null==i&&t==h,w=0==u,_=!m||u==m.length-1;if(v.top-y.top<=3){var M=(d?b:A)&&_,x=(d?A:b)&&w?s:(g?y:v).left,k=M?l:(g?v:y).right;c(x,y.top,k-x,y.bottom)}else{var S,C,E,L;g?(S=d&&A&&w?s:y.left,C=d?l:p(e,o,"before"),E=d?s:p(t,o,"after"),L=d&&b&&_?l:v.right):(S=d?p(e,o,"before"):s,C=!d&&A&&w?l:y.right,E=!d&&b&&_?s:v.left,L=d?p(t,o,"after"):l),c(S,y.top,C-S,y.bottom),y.bottom<v.top&&c(s,y.bottom,null,v.top),c(E,v.top,L-E,v.bottom)}(!r||ci(y,r)<0)&&(r=y),ci(v,r)<0&&(r=v),(!a||ci(y,a)<0)&&(a=y),ci(v,a)<0&&(a=v)}),{start:r,end:a}}var h=t.from(),f=t.to();if(h.line==f.line)u(h.line,h.ch,f.ch);else{var p=se(o,h.line),m=se(o,f.line),g=Fe(p)==Fe(m),y=u(h.line,h.ch,g?p.text.length+1:null).end,v=u(f.line,g?0:null,f.ch).start;g&&(y.top<v.top-2?(c(y.right,y.top,null,y.bottom),c(s,v.top,v.left,v.bottom)):c(y.right,y.top,v.left-y.right,y.bottom)),y.bottom<v.top&&c(s,y.bottom,null,v.top)}n.appendChild(r)}function hi(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function fi(e){e.state.focused||(e.display.input.focus(),mi(e))}function pi(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,gi(e))},100)}function mi(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(nt(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),hi(e))}function gi(e,t){e.state.delayingBlurEvent||(e.state.focused&&(nt(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function yi(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=0;i<t.view.length;i++){var o=t.view[i],r=void 0;if(!o.hidden){if(a&&s<8){var l=o.node.offsetTop+o.node.offsetHeight;r=l-n,n=l}else{var d=o.node.getBoundingClientRect();r=d.bottom-d.top}var c=o.line.height-r;if(r<2&&(r=Zn(t)),(c>.005||c<-.005)&&(ce(o.line,r),vi(o.line),o.rest))for(var u=0;u<o.rest.length;u++)vi(o.rest[u])}}}function vi(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],i=n.node.parentNode;i&&(n.height=i.offsetHeight)}}function Ai(e,t,n){var i=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;i=Math.floor(i-wn(e));var o=n&&null!=n.bottom?n.bottom:i+e.wrapper.clientHeight,r=he(t,i),a=he(t,o);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<r?(r=s,a=he(t,Ue(se(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(r=he(t,Ue(se(t,l))-e.wrapper.clientHeight),a=l)}return{from:r,to:Math.max(a,r+1)}}function bi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=ni(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,r=i+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=r),n[a].gutterBackground&&(n[a].gutterBackground.style.left=r));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=r}e.options.fixedGutter&&(t.gutters.style.left=i+o+"px")}}function wi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=pe(e.options,t.first+t.size-1),i=e.display;if(n.length!=i.lineNumChars){var o=i.measure.appendChild(L("div",[L("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),r=o.firstChild.offsetWidth,a=o.offsetWidth-r;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(r,i.lineGutter.offsetWidth-a)+1,i.lineNumWidth=i.lineNumInnerWidth+a,i.lineNumChars=i.lineNumInnerWidth?n.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",ao(e),!0}return!1}function _i(e,t){var n=e.display,i=Zn(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,r=Sn(e),a={};t.bottom-t.top>r&&(t.bottom=t.top+r);var s=e.doc.height+_n(n),l=t.top<i,d=t.bottom>s-i;if(t.top<o)a.scrollTop=l?0:t.top;else if(t.bottom>o+r){var c=Math.min(t.top,(d?s:t.bottom)-r);c!=o&&(a.scrollTop=c)}var u=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,h=kn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),f=t.right-t.left>h;return f&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.left<u?a.scrollLeft=Math.max(0,t.left-(f?0:10)):t.right>h+u-3&&(a.scrollLeft=t.right+(f?0:10)-h),a}function Mi(e,t){null!=t&&(Si(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function xi(e){Si(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ki(e,t,n){null==t&&null==n||Si(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Si(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Ci(e,Qn(e,t.from),Qn(e,t.to),t.margin))}function Ci(e,t,n,i){var o=_i(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-i,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+i});ki(e,o.scrollLeft,o.scrollTop)}function Ei(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||ro(e,{top:t}),Li(e,t,!0),n&&ro(e),eo(e,100))}function Li(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ti(e,t,n,i){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,bi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Di(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+_n(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+xn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Yi=function(e,t,n){this.cm=n;var i=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(i),e(o),Ze(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),Ze(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Yi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var o=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var r=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+r)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},Yi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Yi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Yi.prototype.zeroWidthHack=function(){var e=v&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new j,this.disableVert=new j},Yi.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function i(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,i)})},Yi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ri=function(){};function Bi(e,t){t||(t=Di(e));var n=e.display.barWidth,i=e.display.barHeight;Oi(e,t);for(var o=0;o<4&&n!=e.display.barWidth||i!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&yi(e),Oi(e,Di(e)),n=e.display.barWidth,i=e.display.barHeight}function Oi(e,t){var n=e.display,i=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Ri.prototype.update=function(){return{bottom:0,right:0}},Ri.prototype.setScrollLeft=function(){},Ri.prototype.setScrollTop=function(){},Ri.prototype.clear=function(){};var Hi={native:Yi,null:Ri};function Pi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Hi[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ze(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Ti(e,t):Ei(e,t)},e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var Ii=0;function ji(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ii},t=e.curOp,on?on.ops.push(t):t.ownsGroup=on={ops:[t],delayedCallbacks:[]}}function Fi(e){!function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var i=0;i<e.ops.length;i++){var o=e.ops[i];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(n<t.length)}(n)}finally{on=null,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Ni(t[n]);for(var i=0;i<t.length;i++)(o=t[i]).updatedDisplay=o.mustUpdate&&io(o.cm,o.update);for(var o,r=0;r<t.length;r++)zi(t[r]);for(var a=0;a<t.length;a++)Wi(t[a]);for(var s=0;s<t.length;s++)$i(t[s])}(e)}(n)}}(e.curOp)}function Ni(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=xn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=xn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Ge(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new no(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function zi(e){var t=e.cm,n=t.display;e.updatedDisplay&&yi(t),e.barMeasure=Di(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=En(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+xn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-kn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Wi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Ti(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==Y();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Bi(t,e.barMeasure),e.updatedDisplay&&so(t,e.barMeasure),e.selectionChanged&&hi(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&fi(e.cm)}function $i(e){var t=e.cm,n=t.display,i=t.doc;if(e.updatedDisplay&&oo(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Li(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Ti(t,e.scrollLeft,!0,!0),e.scrollToPos){var o=function(e,t,n,i){var o;null==i&&(i=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?me(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?me(t.line,t.ch+1,"before"):t);for(var r=0;r<5;r++){var a=!1,s=Un(e,t),l=n&&n!=t?Un(e,n):s,d=_i(e,o={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-i,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+i}),c=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=d.scrollTop&&(Ei(e,d.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=d.scrollLeft&&(Ti(e,d.scrollLeft),Math.abs(e.doc.scrollLeft-u)>1&&(a=!0)),!a)break}return o}(t,_e(i,e.scrollToPos.from),_e(i,e.scrollToPos.to),e.scrollToPos.margin);!function(e,t){if(!it(e,"scrollCursorIntoView")){var n=e.display,i=n.sizer.getBoundingClientRect(),o=null;if(t.top+i.top<0?o=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!p){var r=L("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-wn(e.display))+"px;\n height: "+(t.bottom-t.top+xn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(r),r.scrollIntoView(o),e.display.lineSpace.removeChild(r)}}}(t,o)}var r=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(r)for(var s=0;s<r.length;++s)r[s].lines.length||nt(r[s],"hide");if(a)for(var l=0;l<a.length;++l)a[l].lines.length&&nt(a[l],"unhide");n.wrapper.offsetHeight&&(i.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&nt(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ui(e,t){if(e.curOp)return t();ji(e);try{return t()}finally{Fi(e)}}function Qi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);ji(e);try{return t.apply(e,arguments)}finally{Fi(e)}}}function Gi(e){return function(){if(this.curOp)return e.apply(this,arguments);ji(this);try{return e.apply(this,arguments)}finally{Fi(this)}}}function Vi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);ji(t);try{return e.apply(this,arguments)}finally{Fi(t)}}}function Ji(e,t,n,i){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),i||(i=0);var o=e.display;if(i&&n<o.viewTo&&(null==o.updateLineNumbers||o.updateLineNumbers>t)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)ke&&Ne(e.doc,t)<o.viewTo&&Xi(e);else if(n<=o.viewFrom)ke&&ze(e.doc,n+i)>o.viewFrom?Xi(e):(o.viewFrom+=i,o.viewTo+=i);else if(t<=o.viewFrom&&n>=o.viewTo)Xi(e);else if(t<=o.viewFrom){var r=qi(e,n,n+i,1);r?(o.view=o.view.slice(r.index),o.viewFrom=r.lineN,o.viewTo+=i):Xi(e)}else if(n>=o.viewTo){var a=qi(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):Xi(e)}else{var s=qi(e,t,t,-1),l=qi(e,n,n+i,1);s&&l?(o.view=o.view.slice(0,s.index).concat(nn(e,s.lineN,l.lineN)).concat(o.view.slice(l.index)),o.viewTo+=i):Xi(e)}var d=o.externalMeasured;d&&(n<d.lineN?d.lineN+=i:t<d.lineN+d.size&&(o.externalMeasured=null))}function Ki(e,t,n){e.curOp.viewChanged=!0;var i=e.display,o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size&&(i.externalMeasured=null),!(t<i.viewFrom||t>=i.viewTo)){var r=i.view[ai(e,t)];if(null!=r.node){var a=r.changes||(r.changes=[]);-1==F(a,n)&&a.push(n)}}}function Xi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function qi(e,t,n,i){var o,r=ai(e,t),a=e.display.view;if(!ke||n==e.doc.first+e.doc.size)return{index:r,lineN:n};for(var s=e.display.viewFrom,l=0;l<r;l++)s+=a[l].size;if(s!=t){if(i>0){if(r==a.length-1)return null;o=s+a[r].size-t,r++}else o=s-t;t+=o,n+=o}for(;Ne(e.doc,n)!=n;){if(r==(i<0?0:a.length-1))return null;n+=i*a[r-(i<0?1:0)].size,r+=i}return{index:r,lineN:n}}function Zi(e){for(var t=e.display.view,n=0,i=0;i<t.length;i++){var o=t[i];o.hidden||o.node&&!o.changes||++n}return n}function eo(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,H(to,e))}function to(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,i=Ht(e,t.highlightFrontier),o=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),function(r){if(i.line>=e.display.viewFrom){var a=r.styles,s=r.text.length>e.options.maxHighlightLength?Et(t.mode,i.state):null,l=Bt(e,r,i,!0);s&&(i.state=s),r.styles=l.styles;var d=r.styleClasses,c=l.classes;c?r.styleClasses=c:d&&(r.styleClasses=null);for(var u=!a||a.length!=r.styles.length||d!=c&&(!d||!c||d.bgClass!=c.bgClass||d.textClass!=c.textClass),h=0;!u&&h<a.length;++h)u=a[h]!=r.styles[h];u&&o.push(i.line),r.stateAfter=i.save(),i.nextLine()}else r.text.length<=e.options.maxHighlightLength&&Pt(e,r.text,i),r.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>n)return eo(e,e.options.workDelay),!0}),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),o.length&&Ui(e,function(){for(var t=0;t<o.length;t++)Ki(e,o[t],"text")})}}var no=function(e,t,n){var i=e.display;this.viewport=t,this.visible=Ai(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=kn(e),this.force=n,this.dims=ti(e),this.events=[]};function io(e,t){var n=e.display,i=e.doc;if(t.editorIsHidden)return Xi(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Zi(e))return!1;wi(e)&&(Xi(e),t.dims=ti(e));var o=i.first+i.size,r=Math.max(t.visible.from-e.options.viewportMargin,i.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFrom<r&&r-n.viewFrom<20&&(r=Math.max(i.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),ke&&(r=Ne(e.doc,r),a=ze(e.doc,a));var s=r!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var i=e.display;0==i.view.length||t>=i.viewTo||n<=i.viewFrom?(i.view=nn(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=nn(e,t,i.viewFrom).concat(i.view):i.viewFrom<t&&(i.view=i.view.slice(ai(e,t))),i.viewFrom=t,i.viewTo<n?i.view=i.view.concat(nn(e,i.viewTo,n)):i.viewTo>n&&(i.view=i.view.slice(0,ai(e,n)))),i.viewTo=n}(e,r,a),n.viewOffset=Ue(se(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var d=Zi(e);if(!s&&0==d&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=Y();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&D(e.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}(e);return d>4&&(n.lineDiv.style.display="none"),function(e,t,n){var i=e.display,o=e.options.lineNumbers,r=i.lineDiv,a=r.firstChild;function s(t){var n=t.nextSibling;return l&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var d=i.view,c=i.viewFrom,u=0;u<d.length;u++){var h=d[u];if(h.hidden);else if(h.node&&h.node.parentNode==r){for(;a!=h.node;)a=s(a);var f=o&&null!=t&&t<=c&&h.lineNumber;h.changes&&(F(h.changes,"gutter")>-1&&(f=!1),ln(e,h,c,n)),f&&(C(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(pe(e.options,c)))),a=h.node.nextSibling}else{var p=mn(e,h,c,n);r.insertBefore(p,a)}c+=h.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),d>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=Y()&&(e.activeElt.focus(),e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,eo(e,400)),n.updateLineNumbers=null,!0}function oo(e,t){for(var n=t.viewport,i=!0;(i&&e.options.lineWrapping&&t.oldDisplayWidth!=kn(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+_n(e.display)-Sn(e),n.top)}),t.visible=Ai(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&io(e,t);i=!1){yi(e);var o=Di(e);si(e),Bi(e,o),so(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ro(e,t){var n=new no(e,t);if(io(e,n)){yi(e),oo(e,n);var i=Di(e);si(e),Bi(e,i),so(e,i),n.finish()}}function ao(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function so(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+xn(e)+"px"}function lo(e){var t=e.display.gutters,n=e.options.gutters;C(t);for(var i=0;i<n.length;++i){var o=n[i],r=t.appendChild(L("div",null,"CodeMirror-gutter "+o));"CodeMirror-linenumbers"==o&&(e.display.lineGutter=r,r.style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=i?"":"none",ao(e)}function co(e){var t=F(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}no.prototype.signal=function(e,t){rt(e,t)&&this.events.push(arguments)},no.prototype.finish=function(){for(var e=0;e<this.events.length;e++)nt.apply(null,this.events[e])};var uo=0,ho=null;function fo(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function po(e,t){var i=fo(t),o=i.x,r=i.y,a=e.display,s=a.scroller,d=s.scrollWidth>s.clientWidth,c=s.scrollHeight>s.clientHeight;if(o&&d||r&&c){if(r&&v&&l)e:for(var h=t.target,f=a.view;h!=s;h=h.parentNode)for(var p=0;p<f.length;p++)if(f[p].node==h){e.display.currentWheelTarget=h;break e}if(o&&!n&&!u&&null!=ho)return r&&c&&Ei(e,Math.max(0,s.scrollTop+r*ho)),Ti(e,Math.max(0,s.scrollLeft+o*ho)),(!r||r&&c)&&st(t),void(a.wheelStartX=null);if(r&&null!=ho){var m=r*ho,g=e.doc.scrollTop,y=g+a.wrapper.clientHeight;m<0?g=Math.max(0,g+m-50):y=Math.min(e.doc.height,y+m+50),ro(e,{top:g,bottom:y})}uo<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=o,a.wheelDY=r,setTimeout(function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(ho=(ho*uo+n)/(uo+1),++uo)}},200)):(a.wheelDX+=o,a.wheelDY+=r))}}a?ho=-.53:n?ho=15:c?ho=-.7:h&&(ho=-1/3);var mo=function(e,t){this.ranges=e,this.primIndex=t};mo.prototype.primary=function(){return this.ranges[this.primIndex]},mo.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],i=e.ranges[t];if(!ye(n.anchor,i.anchor)||!ye(n.head,i.head))return!1}return!0},mo.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new go(ve(this.ranges[t].anchor),ve(this.ranges[t].head));return new mo(e,this.primIndex)},mo.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},mo.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var i=this.ranges[n];if(ge(t,i.from())>=0&&ge(e,i.to())<=0)return n}return-1};var go=function(e,t){this.anchor=e,this.head=t};function yo(e,t){var n=e[t];e.sort(function(e,t){return ge(e.from(),t.from())}),t=F(e,n);for(var i=1;i<e.length;i++){var o=e[i],r=e[i-1];if(ge(r.to(),o.from())>=0){var a=be(r.from(),o.from()),s=Ae(r.to(),o.to()),l=r.empty()?o.from()==o.head:r.from()==r.head;i<=t&&--t,e.splice(--i,2,new go(l?s:a,l?a:s))}}return new mo(e,t)}function vo(e,t){return new mo([new go(e,t||e)],0)}function Ao(e){return e.text?me(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function bo(e,t){if(ge(e,t.from)<0)return e;if(ge(e,t.to)<=0)return Ao(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=Ao(t).ch-t.to.ch),me(n,i)}function wo(e,t){for(var n=[],i=0;i<e.sel.ranges.length;i++){var o=e.sel.ranges[i];n.push(new go(bo(o.anchor,t),bo(o.head,t)))}return yo(n,e.sel.primIndex)}function _o(e,t,n){return e.line==t.line?me(n.line,e.ch-t.ch+n.ch):me(n.line+(e.line-t.line),e.ch)}function Mo(e){e.doc.mode=St(e.options,e.doc.modeOption),xo(e)}function xo(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,eo(e,100),e.state.modeGen++,e.curOp&&Ji(e)}function ko(e,t){return 0==t.from.ch&&0==t.to.ch&&""==J(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function So(e,t,n,i){function o(e){return n?n[e]:null}function r(e,n,o){!function(e,t,n,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),De(e),Ye(e,n);var o=i?i(e):1;o!=e.height&&ce(e,o)}(e,n,o,i),an(e,"change",e,t)}function a(e,t){for(var n=[],r=e;r<t;++r)n.push(new $t(d[r],o(r),i));return n}var s=t.from,l=t.to,d=t.text,c=se(e,s.line),u=se(e,l.line),h=J(d),f=o(d.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,d.length)),e.remove(d.length,e.size-d.length);else if(ko(e,t)){var m=a(0,d.length-1);r(u,u.text,f),p&&e.remove(s.line,p),m.length&&e.insert(s.line,m)}else if(c==u)if(1==d.length)r(c,c.text.slice(0,s.ch)+h+c.text.slice(l.ch),f);else{var g=a(1,d.length-1);g.push(new $t(h+c.text.slice(l.ch),f,i)),r(c,c.text.slice(0,s.ch)+d[0],o(0)),e.insert(s.line+1,g)}else if(1==d.length)r(c,c.text.slice(0,s.ch)+d[0]+u.text.slice(l.ch),o(0)),e.remove(s.line+1,p);else{r(c,c.text.slice(0,s.ch)+d[0],o(0)),r(u,h+u.text.slice(l.ch),f);var y=a(1,d.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,y)}an(e,"change",e,t)}function Co(e,t,n){!function e(i,o,r){if(i.linked)for(var a=0;a<i.linked.length;++a){var s=i.linked[a];if(s.doc!=o){var l=r&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,i,l))}}}(e,null,!0)}function Eo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,oi(e),Mo(e),Lo(e),e.options.lineWrapping||Ge(e),e.options.mode=t.modeOption,Ji(e)}function Lo(e){("rtl"==e.doc.direction?R:S)(e.display.lineDiv,"CodeMirror-rtl")}function To(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Do(e,t){var n={from:ve(t.from),to:Ao(t),text:le(e,t.from,t.to)};return Oo(e,n,t.from.line,t.to.line+1),Co(e,function(e){return Oo(e,n,t.from.line,t.to.line+1)},!0),n}function Yo(e){for(;e.length;){if(!J(e).ranges)break;e.pop()}}function Ro(e,t,n,i){var o=e.history;o.undone.length=0;var r,a,s=+new Date;if((o.lastOp==i||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(r=function(e,t){return o.lastOp==i?(Yo(e.done),J(e.done)):e.done.length&&!J(e.done).ranges?J(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}(o)))a=J(r.changes),0==ge(t.from,t.to)&&0==ge(t.from,a.to)?a.to=Ao(t):r.changes.push(Do(e,t));else{var l=J(o.done);for(l&&l.ranges||Bo(e.sel,o.done),r={changes:[Do(e,t)],generation:o.generation},o.done.push(r);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=i,o.lastOrigin=o.lastSelOrigin=t.origin,a||nt(e,"historyAdded")}function Bo(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Oo(e,t,n,i){var o=t["spans_"+e.id],r=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[r]=n.markedSpans),++r})}function Ho(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Po(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var i=[],o=0;o<t.text.length;++o)i.push(Ho(n[o]));return i}(e,t),i=Le(e,t);if(!n)return i;if(!i)return n;for(var o=0;o<n.length;++o){var r=n[o],a=i[o];if(r&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],d=0;d<r.length;++d)if(r[d].marker==l.marker)continue e;r.push(l)}else a&&(n[o]=a)}return n}function Io(e,t,n){for(var i=[],o=0;o<e.length;++o){var r=e[o];if(r.ranges)i.push(n?mo.prototype.deepCopy.call(r):r);else{var a=r.changes,s=[];i.push({changes:s});for(var l=0;l<a.length;++l){var d=a[l],c=void 0;if(s.push({from:d.from,to:d.to,text:d.text}),t)for(var u in d)(c=u.match(/^spans_(\d+)$/))&&F(t,Number(c[1]))>-1&&(J(s)[u]=d[u],delete d[u])}}}return i}function jo(e,t,n,i){if(i){var o=e.anchor;if(n){var r=ge(t,o)<0;r!=ge(n,o)<0?(o=t,t=n):r!=ge(t,n)<0&&(t=n)}return new go(o,t)}return new go(n||t,t)}function Fo(e,t,n,i,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Uo(e,new mo([jo(e.sel.primary(),t,n,o)],0),i)}function No(e,t,n){for(var i=[],o=e.cm&&(e.cm.display.shift||e.extend),r=0;r<e.sel.ranges.length;r++)i[r]=jo(e.sel.ranges[r],t[r],null,o);Uo(e,yo(i,e.sel.primIndex),n)}function zo(e,t,n,i){var o=e.sel.ranges.slice(0);o[t]=n,Uo(e,yo(o,e.sel.primIndex),i)}function Wo(e,t,n,i){Uo(e,vo(t,n),i)}function $o(e,t,n){var i=e.history.done,o=J(i);o&&o.ranges?(i[i.length-1]=t,Qo(e,t,n)):Uo(e,t,n)}function Uo(e,t,n){Qo(e,t,n),function(e,t,n,i){var o=e.history,r=i&&i.origin;n==o.lastSelOp||r&&o.lastSelOrigin==r&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==r||function(e,t,n,i){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,r,J(o.done),t))?o.done[o.done.length-1]=t:Bo(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=r,o.lastSelOp=n,i&&!1!==i.clearRedo&&Yo(o.undone)}(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Qo(e,t,n){(rt(e,"beforeSelectionChange")||e.cm&&rt(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var i={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new go(_e(e,t[n].anchor),_e(e,t[n].head))},origin:n&&n.origin};return nt(e,"beforeSelectionChange",e,i),e.cm&&nt(e.cm,"beforeSelectionChange",e.cm,i),i.ranges!=t.ranges?yo(i.ranges,i.ranges.length-1):t}(e,t,n)),Go(e,Jo(e,t,n&&n.bias||(ge(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!e.cm||xi(e.cm)}function Go(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,ot(e.cm)),an(e,"cursorActivity",e))}function Vo(e){Go(e,Jo(e,e.sel,null,!1))}function Jo(e,t,n,i){for(var o,r=0;r<t.ranges.length;r++){var a=t.ranges[r],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[r],l=Xo(e,a.anchor,s&&s.anchor,n,i),d=Xo(e,a.head,s&&s.head,n,i);(o||l!=a.anchor||d!=a.head)&&(o||(o=t.ranges.slice(0,r)),o[r]=new go(l,d))}return o?yo(o,t.primIndex):t}function Ko(e,t,n,i,o){var r=se(e,t.line);if(r.markedSpans)for(var a=0;a<r.markedSpans.length;++a){var s=r.markedSpans[a],l=s.marker;if((null==s.from||(l.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(l.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(o&&(nt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(r.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(i<0?1:-1),c=void 0;if((i<0?l.inclusiveRight:l.inclusiveLeft)&&(d=qo(e,d,-i,d&&d.line==t.line?r:null)),d&&d.line==t.line&&(c=ge(d,n))&&(i<0?c<0:c>0))return Ko(e,d,t,i,o)}var u=l.find(i<0?-1:1);return(i<0?l.inclusiveLeft:l.inclusiveRight)&&(u=qo(e,u,i,u.line==t.line?r:null)),u?Ko(e,u,t,i,o):null}}return t}function Xo(e,t,n,i,o){var r=i||1;return Ko(e,t,n,r,o)||!o&&Ko(e,t,n,r,!0)||Ko(e,t,n,-r,o)||!o&&Ko(e,t,n,-r,!0)||(e.cantEdit=!0,me(e.first,0))}function qo(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?_e(e,me(t.line-1)):null:n>0&&t.ch==(i||se(e,t.line)).text.length?t.line<e.first+e.size-1?me(t.line+1,0):null:new me(t.line,t.ch+n)}function Zo(e){e.setSelection(me(e.firstLine(),0),me(e.lastLine()),W)}function er(e,t,n){var i={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return i.canceled=!0}};return n&&(i.update=function(t,n,o,r){t&&(i.from=_e(e,t)),n&&(i.to=_e(e,n)),o&&(i.text=o),void 0!==r&&(i.origin=r)}),nt(e,"beforeChange",e,i),e.cm&&nt(e.cm,"beforeChange",e.cm,i),i.canceled?null:{from:i.from,to:i.to,text:i.text,origin:i.origin}}function tr(e,t,n){if(e.cm){if(!e.cm.curOp)return Qi(e.cm,tr)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(rt(e,"beforeChange")||e.cm&&rt(e.cm,"beforeChange"))||(t=er(e,t,!0))){var i=xe&&!n&&function(e,t,n){var i=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||i&&-1!=F(i,n)||(i||(i=[])).push(n)}}),!i)return null;for(var o=[{from:t,to:n}],r=0;r<i.length;++r)for(var a=i[r],s=a.find(0),l=0;l<o.length;++l){var d=o[l];if(!(ge(d.to,s.from)<0||ge(d.from,s.to)>0)){var c=[l,1],u=ge(d.from,s.from),h=ge(d.to,s.to);(u<0||!a.inclusiveLeft&&!u)&&c.push({from:d.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&c.push({from:s.to,to:d.to}),o.splice.apply(o,c),l+=c.length-3}}return o}(e,t.from,t.to);if(i)for(var o=i.length-1;o>=0;--o)nr(e,{from:i[o].from,to:i[o].to,text:o?[""]:t.text,origin:t.origin});else nr(e,t)}}function nr(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ge(t.from,t.to)){var n=wo(e,t);Ro(e,t,n,e.cm?e.cm.curOp.id:NaN),rr(e,t,n,Le(e,t));var i=[];Co(e,function(e,n){n||-1!=F(i,e.history)||(dr(e.history,t),i.push(e.history)),rr(e,t,null,Le(e,t))})}}function ir(e,t,n){var i=e.cm&&e.cm.state.suppressEdits;if(!i||n){for(var o,r=e.history,a=e.sel,s="undo"==t?r.done:r.undone,l="undo"==t?r.undone:r.done,d=0;d<s.length&&(o=s[d],n?!o.ranges||o.equals(e.sel):o.ranges);d++);if(d!=s.length){for(r.lastOrigin=r.lastSelOrigin=null;;){if(!(o=s.pop()).ranges){if(i)return void s.push(o);break}if(Bo(o,l),n&&!o.equals(e.sel))return void Uo(e,o,{clearRedo:!1});a=o}var c=[];Bo(a,l),l.push({changes:c,generation:r.generation}),r.generation=o.generation||++r.maxGeneration;for(var u=rt(e,"beforeChange")||e.cm&&rt(e.cm,"beforeChange"),h=function(n){var i=o.changes[n];if(i.origin=t,u&&!er(e,i,!1))return s.length=0,{};c.push(Do(e,i));var r=n?wo(e,i):J(s);rr(e,i,r,Po(e,i)),!n&&e.cm&&e.cm.scrollIntoView({from:i.from,to:Ao(i)});var a=[];Co(e,function(e,t){t||-1!=F(a,e.history)||(dr(e.history,i),a.push(e.history)),rr(e,i,null,Po(e,i))})},f=o.changes.length-1;f>=0;--f){var p=h(f);if(p)return p.v}}}}function or(e,t){if(0!=t&&(e.first+=t,e.sel=new mo(K(e.sel.ranges,function(e){return new go(me(e.anchor.line+t,e.anchor.ch),me(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Ji(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;i<n.viewTo;i++)Ki(e.cm,i,"gutter")}}function rr(e,t,n,i){if(e.cm&&!e.cm.curOp)return Qi(e.cm,rr)(e,t,n,i);if(t.to.line<e.first)or(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var o=t.text.length-1-(e.first-t.from.line);or(e,o),t={from:me(e.first,0),to:me(t.to.line+o,t.to.ch),text:[J(t.text)],origin:t.origin}}var r=e.lastLine();t.to.line>r&&(t={from:t.from,to:me(r,se(e,r).text.length),text:[t.text[0]],origin:t.origin}),t.removed=le(e,t.from,t.to),n||(n=wo(e,t)),e.cm?function(e,t,n){var i=e.doc,o=e.display,r=t.from,a=t.to,s=!1,l=r.line;e.options.lineWrapping||(l=ue(Fe(se(i,r.line))),i.iter(l,a.line+1,function(e){if(e==o.maxLine)return s=!0,!0})),i.sel.contains(t.from,t.to)>-1&&ot(e),So(i,t,n,ii(e)),e.options.lineWrapping||(i.iter(l,r.line+t.text.length,function(e){var t=Qe(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,i=t-1;i>n;i--){var o=se(e,i).stateAfter;if(o&&(!(o instanceof Yt)||i+o.lookAhead<t)){n=i+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(i,r.line),eo(e,400);var d=t.text.length-(a.line-r.line)-1;t.full?Ji(e):r.line!=a.line||1!=t.text.length||ko(e.doc,t)?Ji(e,r.line,a.line+1,d):Ki(e,r.line,"text");var c=rt(e,"changes"),u=rt(e,"change");if(u||c){var h={from:r,to:a,text:t.text,removed:t.removed,origin:t.origin};u&&an(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}(e.cm,t,i):So(e,t,i),Qo(e,n,W)}}function ar(e,t,n,i,o){var r;i||(i=n),ge(i,n)<0&&(n=(r=[i,n])[0],i=r[1]),"string"==typeof t&&(t=e.splitLines(t)),tr(e,{from:n,to:i,text:t,origin:o})}function sr(e,t,n,i){n<e.line?e.line+=i:t<e.line&&(e.line=t,e.ch=0)}function lr(e,t,n,i){for(var o=0;o<e.length;++o){var r=e[o],a=!0;if(r.ranges){r.copied||((r=e[o]=r.deepCopy()).copied=!0);for(var s=0;s<r.ranges.length;s++)sr(r.ranges[s].anchor,t,n,i),sr(r.ranges[s].head,t,n,i)}else{for(var l=0;l<r.changes.length;++l){var d=r.changes[l];if(n<d.from.line)d.from=me(d.from.line+i,d.from.ch),d.to=me(d.to.line+i,d.to.ch);else if(t<=d.to.line){a=!1;break}}a||(e.splice(0,o+1),o=0)}}}function dr(e,t){var n=t.from.line,i=t.to.line,o=t.text.length-(i-n)-1;lr(e.done,n,i,o),lr(e.undone,n,i,o)}function cr(e,t,n,i){var o=t,r=t;return"number"==typeof t?r=se(e,we(e,t)):o=ue(t),null==o?null:(i(r,o)&&e.cm&&Ki(e.cm,o,n),r)}function ur(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function hr(e){this.children=e;for(var t=0,n=0,i=0;i<e.length;++i){var o=e[i];t+=o.chunkSize(),n+=o.height,o.parent=this}this.size=t,this.height=n,this.parent=null}go.prototype.from=function(){return be(this.anchor,this.head)},go.prototype.to=function(){return Ae(this.anchor,this.head)},go.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},ur.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,i=e+t;n<i;++n){var o=this.lines[n];this.height-=o.height,Ut(o),an(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=this},iterN:function(e,t,n){for(var i=e+t;e<i;++e)if(n(this.lines[e]))return!0}},hr.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<o){var r=Math.min(t,o-e),a=i.height;if(i.removeInner(e,r),this.height-=a-i.height,o==r&&(this.children.splice(n--,1),i.parent=null),0==(t-=r))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ur))){var s=[];this.collapse(s),this.children=[new ur(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var i=0;i<this.children.length;++i){var o=this.children[i],r=o.chunkSize();if(e<=r){if(o.insertInner(e,t,n),o.lines&&o.lines.length>50){for(var a=o.lines.length%25+25,s=a;s<o.lines.length;){var l=new ur(o.lines.slice(s,s+=25));o.height-=l.height,this.children.splice(++i,0,l),l.parent=this}o.lines=o.lines.slice(0,a),this.maybeSpill()}break}e-=r}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new hr(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=F(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var i=new hr(e.children);i.parent=e,e.children=[i,t],e=i}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var i=0;i<this.children.length;++i){var o=this.children[i],r=o.chunkSize();if(e<r){var a=Math.min(t,r-e);if(o.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=r}}};var fr=function(e,t,n){if(n)for(var i in n)n.hasOwnProperty(i)&&(this[i]=n[i]);this.doc=e,this.node=t};function pr(e,t,n){Ue(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Mi(e,n)}fr.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,i=ue(n);if(null!=i&&t){for(var o=0;o<t.length;++o)t[o]==this&&t.splice(o--,1);t.length||(n.widgets=null);var r=An(this);ce(n,Math.max(0,n.height-r)),e&&(Ui(e,function(){pr(e,n,-r),Ki(e,i,"widget")}),an(e,"lineWidgetCleared",e,this,i))}},fr.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,i=this.line;this.height=null;var o=An(this)-t;o&&(ce(i,i.height+o),n&&Ui(n,function(){n.curOp.forceUpdate=!0,pr(n,i,o),an(n,"lineWidgetChanged",n,e,ue(i))}))},at(fr);var mr=0,gr=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++mr};function yr(e,t,n,i,o){if(i&&i.shared)return function(e,t,n,i,o){(i=P(i)).shared=!1;var r=[yr(e,t,n,i,o)],a=r[0],s=i.widgetNode;return Co(e,function(e){s&&(i.widgetNode=s.cloneNode(!0)),r.push(yr(e,_e(e,t),_e(e,n),i,o));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=J(r)}),new vr(r,a)}(e,t,n,i,o);if(e.cm&&!e.cm.curOp)return Qi(e.cm,yr)(e,t,n,i,o);var r=new gr(e,o),a=ge(t,n);if(i&&P(i,r,!1),a>0||0==a&&!1!==r.clearWhenEmpty)return r;if(r.replacedWith&&(r.collapsed=!0,r.widgetNode=T("span",[r.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||r.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(r.widgetNode.insertLeft=!0)),r.collapsed){if(je(e,t.line,t,n,r)||t.line!=n.line&&je(e,n.line,t,n,r))throw new Error("Inserting collapsed marker partially overlapping an existing one");ke=!0}r.addToHistory&&Ro(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,d=e.cm;if(e.iter(l,n.line+1,function(e){d&&r.collapsed&&!d.options.lineWrapping&&Fe(e)==d.display.maxLine&&(s=!0),r.collapsed&&l!=t.line&&ce(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Se(r,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),r.collapsed&&e.iter(t.line,n.line+1,function(t){We(e,t)&&ce(t,0)}),r.clearOnEnter&&Ze(r,"beforeCursorEnter",function(){return r.clear()}),r.readOnly&&(xe=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),r.collapsed&&(r.id=++mr,r.atomic=!0),d){if(s&&(d.curOp.updateMaxLine=!0),r.collapsed)Ji(d,t.line,n.line+1);else if(r.className||r.title||r.startStyle||r.endStyle||r.css)for(var c=t.line;c<=n.line;c++)Ki(d,c,"text");r.atomic&&Vo(d.doc),an(d,"markerAdded",d,r)}return r}gr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&ji(e),rt(this,"clear")){var n=this.find();n&&an(this,"clear",n.from,n.to)}for(var i=null,o=null,r=0;r<this.lines.length;++r){var a=this.lines[r],s=Ce(a.markedSpans,this);e&&!this.collapsed?Ki(e,ue(a),"text"):e&&(null!=s.to&&(o=ue(a)),null!=s.from&&(i=ue(a))),a.markedSpans=Ee(a.markedSpans,s),null==s.from&&this.collapsed&&!We(this.doc,a)&&e&&ce(a,Zn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var d=Fe(this.lines[l]),c=Qe(d);c>e.display.maxLineLength&&(e.display.maxLine=d,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&Ji(e,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Vo(e.doc)),e&&an(e,"markerCleared",e,this,i,o),t&&Fi(e),this.parent&&this.parent.clear()}},gr.prototype.find=function(e,t){var n,i;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o<this.lines.length;++o){var r=this.lines[o],a=Ce(r.markedSpans,this);if(null!=a.from&&(n=me(t?r:ue(r),a.from),-1==e))return n;if(null!=a.to&&(i=me(t?r:ue(r),a.to),1==e))return i}return n&&{from:n,to:i}},gr.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,i=this.doc.cm;t&&i&&Ui(i,function(){var o=t.line,r=ue(t.line),a=Ln(i,r);if(a&&(Hn(a),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!We(n.doc,o)&&null!=n.height){var s=n.height;n.height=null;var l=An(n)-s;l&&ce(o,o.height+l)}an(i,"markerChanged",i,e)})},gr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=F(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},gr.prototype.detachLine=function(e){if(this.lines.splice(F(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},at(gr);var vr=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Ar(e){return e.findMarks(me(e.first,0),e.clipPos(me(e.lastLine())),function(e){return e.parent})}function br(e){for(var t=function(t){var n=e[t],i=[n.primary.doc];Co(n.primary.doc,function(e){return i.push(e)});for(var o=0;o<n.markers.length;o++){var r=n.markers[o];-1==F(i,r.doc)&&(r.parent=null,n.markers.splice(o--,1))}},n=0;n<e.length;n++)t(n)}vr.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();an(this,"clear")}},vr.prototype.find=function(e,t){return this.primary.find(e,t)},at(vr);var wr=0,_r=function(e,t,n,i,o){if(!(this instanceof _r))return new _r(e,t,n,i,o);null==n&&(n=0),hr.call(this,[new ur([new $t("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var r=me(n,0);this.sel=vo(r),this.history=new To(null),this.id=++wr,this.modeOption=t,this.lineSep=i,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),So(this,{from:r,to:r,text:e}),Uo(this,vo(r),W)};_r.prototype=q(hr.prototype,{constructor:_r,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,i=0;i<t.length;++i)n+=t[i].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=de(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Vi(function(e){var t=me(this.first,0),n=this.first+this.size-1;tr(this,{from:t,to:me(n,se(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ki(this.cm,0,0),Uo(this,vo(t),W)}),replaceRange:function(e,t,n,i){ar(this,e,t=_e(this,t),n=n?_e(this,n):t,i)},getRange:function(e,t,n){var i=le(this,_e(this,e),_e(this,t));return!1===n?i:i.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(fe(this,e))return se(this,e)},getLineNumber:function(e){return ue(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=se(this,e)),Fe(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return _e(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vi(function(e,t,n){Wo(this,_e(this,"number"==typeof e?me(e,t||0):e),null,n)}),setSelection:Vi(function(e,t,n){Wo(this,_e(this,e),_e(this,t||e),n)}),extendSelection:Vi(function(e,t,n){Fo(this,_e(this,e),t&&_e(this,t),n)}),extendSelections:Vi(function(e,t){No(this,Me(this,e),t)}),extendSelectionsBy:Vi(function(e,t){No(this,Me(this,K(this.sel.ranges,e)),t)}),setSelections:Vi(function(e,t,n){if(e.length){for(var i=[],o=0;o<e.length;o++)i[o]=new go(_e(this,e[o].anchor),_e(this,e[o].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Uo(this,yo(i,t),n)}}),addSelection:Vi(function(e,t,n){var i=this.sel.ranges.slice(0);i.push(new go(_e(this,e),_e(this,t||e))),Uo(this,yo(i,i.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,i=0;i<n.length;i++){var o=le(this,n[i].from(),n[i].to());t=t?t.concat(o):o}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,i=0;i<n.length;i++){var o=le(this,n[i].from(),n[i].to());!1!==e&&(o=o.join(e||this.lineSeparator())),t[i]=o}return t},replaceSelection:function(e,t,n){for(var i=[],o=0;o<this.sel.ranges.length;o++)i[o]=e;this.replaceSelections(i,t,n||"+input")},replaceSelections:Vi(function(e,t,n){for(var i=[],o=this.sel,r=0;r<o.ranges.length;r++){var a=o.ranges[r];i[r]={from:a.from(),to:a.to(),text:this.splitLines(e[r]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var i=[],o=me(e.first,0),r=o,a=0;a<t.length;a++){var s=t[a],l=_o(s.from,o,r),d=_o(Ao(s),o,r);if(o=s.to,r=d,"around"==n){var c=e.sel.ranges[a],u=ge(c.head,c.anchor)<0;i[a]=new go(u?d:l,u?l:d)}else i[a]=new go(l,l)}return new mo(i,e.sel.primIndex)}(this,i,t),l=i.length-1;l>=0;l--)tr(this,i[l]);s?$o(this,s):this.cm&&xi(this.cm)}),undo:Vi(function(){ir(this,"undo")}),redo:Vi(function(){ir(this,"redo")}),undoSelection:Vi(function(){ir(this,"undo",!0)}),redoSelection:Vi(function(){ir(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i<e.done.length;i++)e.done[i].ranges||++t;for(var o=0;o<e.undone.length;o++)e.undone[o].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new To(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Io(this.history.done),undone:Io(this.history.undone)}},setHistory:function(e){var t=this.history=new To(this.history.maxGeneration);t.done=Io(e.done.slice(0),null,!0),t.undone=Io(e.undone.slice(0),null,!0)},setGutterMarker:Vi(function(e,t,n){return cr(this,e,"gutter",function(e){var i=e.gutterMarkers||(e.gutterMarkers={});return i[t]=n,!n&&ne(i)&&(e.gutterMarkers=null),!0})}),clearGutter:Vi(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&cr(t,n,"gutter",function(){return n.gutterMarkers[e]=null,ne(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!fe(this,e))return null;if(t=e,!(e=se(this,e)))return null}else if(null==(t=ue(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Vi(function(e,t,n){return cr(this,e,"gutter"==t?"gutter":"class",function(e){var i="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[i]){if(x(n).test(e[i]))return!1;e[i]+=" "+n}else e[i]=n;return!0})}),removeLineClass:Vi(function(e,t,n){return cr(this,e,"gutter"==t?"gutter":"class",function(e){var i="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",o=e[i];if(!o)return!1;if(null==n)e[i]=null;else{var r=o.match(x(n));if(!r)return!1;var a=r.index+r[0].length;e[i]=o.slice(0,r.index)+(r.index&&a!=o.length?" ":"")+o.slice(a)||null}return!0})}),addLineWidget:Vi(function(e,t,n){return function(e,t,n,i){var o=new fr(e,n,i),r=e.cm;return r&&o.noHScroll&&(r.display.alignWidgets=!0),cr(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==o.insertAt?n.push(o):n.splice(Math.min(n.length-1,Math.max(0,o.insertAt)),0,o),o.line=t,r&&!We(e,t)){var i=Ue(t)<e.scrollTop;ce(t,t.height+An(o)),i&&Mi(r,o.height),r.curOp.forceUpdate=!0}return!0}),r&&an(r,"lineWidgetAdded",r,o,"number"==typeof t?t:ue(t)),o}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return yr(this,_e(this,e),_e(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return yr(this,e=_e(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=se(this,(e=_e(this,e)).line).markedSpans;if(n)for(var i=0;i<n.length;++i){var o=n[i];(null==o.from||o.from<=e.ch)&&(null==o.to||o.to>=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=_e(this,e),t=_e(this,t);var i=[],o=e.line;return this.iter(e.line,t.line+1,function(r){var a=r.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&o==e.line&&e.ch>=l.to||null==l.from&&o!=e.line||null!=l.from&&o==t.line&&l.from>=t.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++o}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var i=0;i<n.length;++i)null!=n[i].from&&e.push(n[i].marker)}),e},posFromIndex:function(e){var t,n=this.first,i=this.lineSeparator().length;return this.iter(function(o){var r=o.text.length+i;if(r>e)return t=e,!0;e-=r,++n}),_e(this,me(n,t))},indexFromPos:function(e){var t=(e=_e(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new _r(de(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var i=new _r(de(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:e.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var i=t[n],o=i.find(),r=e.clipPos(o.from),a=e.clipPos(o.to);if(ge(r,a)){var s=yr(e,r,a,i.primary,i.primary.type);i.markers.push(s),s.parent=i}}}(i,Ar(this)),i},unlinkDoc:function(e){if(e instanceof ya&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),br(Ar(this));break}}if(e.history==this.history){var n=[e.id];Co(e,function(e){return n.push(e.id)},!0),e.history=new To(null),e.history.done=Io(this.history.done,n),e.history.undone=Io(this.history.undone,n)}},iterLinkedDocs:function(e){Co(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):At(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Vi(function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Ui(t=this.cm,function(){Lo(t),Ji(t)}))})}),_r.prototype.eachLine=_r.prototype.iter;var Mr=0;function xr(e){var t=this;if(kr(t),!it(t,e)&&!bn(t.display,e)){st(e),a&&(Mr=+new Date);var n=ri(t,e,!0),i=e.dataTransfer.files;if(n&&!t.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var o=i.length,r=Array(o),s=0,l=function(e,i){if(!t.options.allowDropFileTypes||-1!=F(t.options.allowDropFileTypes,e.type)){var a=new FileReader;a.onload=Qi(t,function(){var e=a.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),r[i]=e,++s==o){var l={from:n=_e(t.doc,n),to:n,text:t.doc.splitLines(r.join(t.doc.lineSeparator())),origin:"paste"};tr(t.doc,l),$o(t.doc,vo(n,Ao(l)))}}),a.readAsText(e)}},d=0;d<o;++d)l(i[d],d);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var c=e.dataTransfer.getData("Text");if(c){var u;if(t.state.draggingText&&!t.state.draggingText.copy&&(u=t.listSelections()),Qo(t.doc,vo(n,n)),u)for(var h=0;h<u.length;++h)ar(t.doc,"",u[h].anchor,u[h].head,"drag");t.replaceSelection(c,"around","paste"),t.display.input.focus()}}catch(e){}}}}function kr(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Sr(e){if(document.getElementsByClassName)for(var t=document.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&e(i)}}var Cr=!1;function Er(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}for(var Lr={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Tr=0;Tr<10;Tr++)Lr[Tr+48]=Lr[Tr+96]=String(Tr);for(var Dr=65;Dr<=90;Dr++)Lr[Dr]=String.fromCharCode(Dr);for(var Yr=1;Yr<=12;Yr++)Lr[Yr+111]=Lr[Yr+63235]="F"+Yr;var Rr={};function Br(e){var t,n,i,o,r=e.split(/-(?!$)/);e=r[r.length-1];for(var a=0;a<r.length-1;a++){var s=r[a];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);i=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function Or(e,t,n,i){var o=(t=jr(t)).call?t.call(e,i):t[e];if(!1===o)return"nothing";if("..."===o)return"multi";if(null!=o&&n(o))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Or(e,t.fallthrough,n,i);for(var r=0;r<t.fallthrough.length;r++){var a=Or(e,t.fallthrough[r],n,i);if(a)return a}}}function Hr(e){var t="string"==typeof e?e:Lr[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Pr(e,t,n){var i=e;return t.altKey&&"Alt"!=i&&(e="Alt-"+e),(_?t.metaKey:t.ctrlKey)&&"Ctrl"!=i&&(e="Ctrl-"+e),(_?t.ctrlKey:t.metaKey)&&"Cmd"!=i&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=i&&(e="Shift-"+e),e}function Ir(e,t){if(u&&34==e.keyCode&&e.char)return!1;var n=Lr[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Pr(n,e,t))}function jr(e){return"string"==typeof e?Rr[e]:e}function Fr(e,t){for(var n=e.doc.sel.ranges,i=[],o=0;o<n.length;o++){for(var r=t(n[o]);i.length&&ge(r.from,J(i).to)<=0;){var a=i.pop();if(ge(a.from,r.from)<0){r.from=a.from;break}}i.push(r)}Ui(e,function(){for(var t=i.length-1;t>=0;t--)ar(e.doc,"",i[t].from,i[t].to,"+delete");xi(e)})}function Nr(e,t,n){var i=re(e.text,t+n,n);return i<0||i>e.text.length?null:i}function zr(e,t,n){var i=Nr(e,t.ch,n);return null==i?null:new me(t.line,i,n<0?"after":"before")}function Wr(e,t,n,i,o){if(e){var r=Xe(n,t.doc.direction);if(r){var a,s=o<0?J(r):r[0],l=o<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var d=Tn(t,n);a=o<0?n.text.length-1:0;var c=Dn(t,d,a).top;a=ae(function(e){return Dn(t,d,e).top==c},o<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Nr(n,a,1))}else a=o<0?s.to:s.from;return new me(i,a,l)}}return new me(i,o<0?n.text.length:0,o<0?"before":"after")}Rr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Rr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Rr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Rr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Rr.default=v?Rr.macDefault:Rr.pcDefault;var $r={selectAll:Zo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),W)},killLine:function(e){return Fr(e,function(t){if(t.empty()){var n=se(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:me(t.head.line+1,0)}:{from:t.head,to:me(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Fr(e,function(t){return{from:me(t.from().line,0),to:_e(e.doc,me(t.to().line+1,0))}})},delLineLeft:function(e){return Fr(e,function(e){return{from:me(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Fr(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Fr(e,function(t){var n=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:i}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(me(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(me(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Ur(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Qr(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var n=se(e.doc,t),i=function(e){for(var t;t=Ie(e);)e=t.find(1,!0).line;return e}(n);return i!=n&&(t=ue(i)),Wr(!0,e,n,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},U)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},U)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:n},"div");return i.ch<e.getLine(i.line).search(/\S/)?Qr(e,t.head):i},U)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),i=e.options.tabSize,o=0;o<n.length;o++){var r=n[o].from(),a=I(e.getLine(r.line),r.ch,i);t.push(V(i-a%i))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ui(e,function(){for(var t=e.listSelections(),n=[],i=0;i<t.length;i++)if(t[i].empty()){var o=t[i].head,r=se(e.doc,o.line).text;if(r)if(o.ch==r.length&&(o=new me(o.line,o.ch-1)),o.ch>0)o=new me(o.line,o.ch+1),e.replaceRange(r.charAt(o.ch-1)+r.charAt(o.ch-2),me(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=se(e.doc,o.line-1).text;a&&(o=new me(o.line,1),e.replaceRange(r.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),me(o.line-1,a.length-1),o,"+transpose"))}n.push(new go(o,o))}e.setSelections(n)})},newlineAndIndent:function(e){return Ui(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var i=0;i<t.length;i++)e.indentLine(t[i].from().line,null,!0);xi(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ur(e,t){var n=se(e.doc,t),i=Fe(n);return i!=n&&(t=ue(i)),Wr(!0,e,i,t,1)}function Qr(e,t){var n=Ur(e,t.line),i=se(e.doc,n.line),o=Xe(i,e.doc.direction);if(!o||0==o[0].level){var r=Math.max(0,i.text.search(/\S/)),a=t.line==n.line&&t.ch<=r&&t.ch;return me(n.line,a?0:r,n.sticky)}return n}function Gr(e,t,n){if("string"==typeof t&&!(t=$r[t]))return!1;e.display.input.ensurePolled();var i=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),o=t(e)!=z}finally{e.display.shift=i,e.state.suppressEdits=!1}return o}var Vr=new j;function Jr(e,t,n,i){var o=e.state.keySeq;if(o){if(Hr(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Vr.set(50,function(){e.state.keySeq==o&&(e.state.keySeq=null,e.display.input.reset())}),Kr(e,o+" "+t,n,i))return!0}return Kr(e,t,n,i)}function Kr(e,t,n,i){var o=function(e,t,n){for(var i=0;i<e.state.keyMaps.length;i++){var o=Or(t,e.state.keyMaps[i],n,e);if(o)return o}return e.options.extraKeys&&Or(t,e.options.extraKeys,n,e)||Or(t,e.options.keyMap,n,e)}(e,t,i);return"multi"==o&&(e.state.keySeq=t),"handled"==o&&an(e,"keyHandled",e,t,n),"handled"!=o&&"multi"!=o||(st(n),hi(e)),!!o}function Xr(e,t){var n=Ir(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?Jr(e,"Shift-"+n,t,function(t){return Gr(e,t,!0)})||Jr(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return Gr(e,t)}):Jr(e,n,t,function(t){return Gr(e,t)}))}var qr=null;function Zr(e){var t=this;if(t.curOp.focus=Y(),!it(t,e)){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var i=Xr(t,e);u&&(qr=i?n:null,!i&&88==n&&!wt&&(v?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(S(t,"CodeMirror-crosshair"),tt(document,"keyup",n),tt(document,"mouseover",n))}R(t,"CodeMirror-crosshair"),Ze(document,"keyup",n),Ze(document,"mouseover",n)}(t)}}function ea(e){16==e.keyCode&&(this.doc.sel.shift=!1),it(this,e)}function ta(e){var t=this;if(!(bn(t.display,e)||it(t,e)||e.ctrlKey&&!e.altKey||v&&e.metaKey)){var n=e.keyCode,i=e.charCode;if(u&&n==qr)return qr=null,void st(e);if(!u||e.which&&!(e.which<10)||!Xr(t,e)){var o=String.fromCharCode(null==i?n:i);"\b"!=o&&(function(e,t,n){return Jr(e,"'"+o+"'",t,function(t){return Gr(e,t,!0)})}(t,e)||t.display.input.onKeyPress(e))}}}var na,ia,oa=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ra(e){var t=this,n=t.display;if(!(it(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,bn(n,e))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!la(t,e)){var i=ri(t,e),o=ht(e),r=i?function(e,t){var n=+new Date;return ia&&ia.compare(n,e,t)?(na=ia=null,"triple"):na&&na.compare(n,e,t)?(ia=new oa(n,e,t),na=null,"double"):(na=new oa(n,e,t),ia=null,"single")}(i,o):"single";window.focus(),1==o&&t.state.selectingText&&t.state.selectingText(e),i&&function(e,t,n,i,o){var r="Click";return"double"==i?r="Double"+r:"triple"==i&&(r="Triple"+r),Jr(e,Pr(r=(1==t?"Left":2==t?"Middle":"Right")+r,o),o,function(t){if("string"==typeof t&&(t=$r[t]),!t)return!1;var i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i=t(e,n)!=z}finally{e.state.suppressEdits=!1}return i})}(t,o,i,r,e)||(1==o?i?function(e,t,n,i){a?setTimeout(H(fi,e),0):e.curOp.focus=Y();var o,r=function(e,t,n){var i=e.getOption("configureMouse"),o=i?i(e,t,n):{};if(null==o.unit){var r=A?n.shiftKey&&n.metaKey:n.altKey;o.unit=r?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==o.extend||e.doc.extend)&&(o.extend=e.doc.extend||n.shiftKey),null==o.addNew&&(o.addNew=v?n.metaKey:n.ctrlKey),null==o.moveOnDrag&&(o.moveOnDrag=!(v?n.altKey:n.ctrlKey)),o}(e,n,i),d=e.doc.sel;e.options.dragDrop&&mt&&!e.isReadOnly()&&"single"==n&&(o=d.contains(t))>-1&&(ge((o=d.ranges[o]).from(),t)<0||t.xRel>0)&&(ge(o.to(),t)>0||t.xRel<0)?function(e,t,n,i){var o=e.display,r=!1,d=Qi(e,function(t){l&&(o.scroller.draggable=!1),e.state.draggingText=!1,tt(o.wrapper.ownerDocument,"mouseup",d),tt(o.wrapper.ownerDocument,"mousemove",c),tt(o.scroller,"dragstart",u),tt(o.scroller,"drop",d),r||(st(t),i.addNew||Fo(e.doc,n,null,null,i.extend),l||a&&9==s?setTimeout(function(){o.wrapper.ownerDocument.body.focus(),o.input.focus()},20):o.input.focus())}),c=function(e){r=r||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return r=!0};l&&(o.scroller.draggable=!0),e.state.draggingText=d,d.copy=!i.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop(),Ze(o.wrapper.ownerDocument,"mouseup",d),Ze(o.wrapper.ownerDocument,"mousemove",c),Ze(o.scroller,"dragstart",u),Ze(o.scroller,"drop",d),pi(e),setTimeout(function(){return o.input.focus()},20)}(e,i,t,r):function(e,t,n,i){var o=e.display,r=e.doc;st(t);var a,s,l=r.sel,d=l.ranges;if(i.addNew&&!i.extend?(s=r.sel.contains(n),a=s>-1?d[s]:new go(n,n)):(a=r.sel.primary(),s=r.sel.primIndex),"rectangle"==i.unit)i.addNew||(a=new go(n,n)),n=ri(e,t,!0,!0),s=-1;else{var c=aa(e,n,i.unit);a=i.extend?jo(a,c.anchor,c.head,i.extend):c}i.addNew?-1==s?(s=d.length,Uo(r,yo(d.concat([a]),s),{scroll:!1,origin:"*mouse"})):d.length>1&&d[s].empty()&&"char"==i.unit&&!i.extend?(Uo(r,yo(d.slice(0,s).concat(d.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=r.sel):zo(r,s,a,$):(s=0,Uo(r,new mo([a],0),$),l=r.sel);var u=n;function h(t){if(0!=ge(u,t))if(u=t,"rectangle"==i.unit){for(var o=[],d=e.options.tabSize,c=I(se(r,n.line).text,n.ch,d),h=I(se(r,t.line).text,t.ch,d),f=Math.min(c,h),p=Math.max(c,h),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var y=se(r,m).text,v=Q(y,f,d);f==p?o.push(new go(me(m,v),me(m,v))):y.length>v&&o.push(new go(me(m,v),me(m,Q(y,p,d))))}o.length||o.push(new go(n,n)),Uo(r,yo(l.ranges.slice(0,s).concat(o),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var A,b=a,w=aa(e,t,i.unit),_=b.anchor;ge(w.anchor,_)>0?(A=w.head,_=be(b.from(),w.anchor)):(A=w.anchor,_=Ae(b.to(),w.head));var M=l.ranges.slice(0);M[s]=function(e,t){var n=t.anchor,i=t.head,o=se(e.doc,n.line);if(0==ge(n,i)&&n.sticky==i.sticky)return t;var r=Xe(o);if(!r)return t;var a=Je(r,n.ch,n.sticky),s=r[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,d=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==d||d==r.length)return t;if(i.line!=n.line)l=(i.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=Je(r,i.ch,i.sticky),u=c-a||(i.ch-n.ch)*(1==s.level?-1:1);l=c==d-1||c==d?u<0:u>0}var h=r[d+(l?-1:0)],f=l==(1==h.level),p=f?h.from:h.to,m=f?"after":"before";return n.ch==p&&n.sticky==m?t:new go(new me(n.line,p,m),i)}(e,new go(_e(r,_),A)),Uo(r,yo(M,s),$)}}var f=o.wrapper.getBoundingClientRect(),p=0;function m(t){e.state.selectingText=!1,p=1/0,st(t),o.input.focus(),tt(o.wrapper.ownerDocument,"mousemove",g),tt(o.wrapper.ownerDocument,"mouseup",y),r.history.lastSelOrigin=null}var g=Qi(e,function(t){ht(t)?function t(n){var a=++p,s=ri(e,n,!0,"rectangle"==i.unit);if(s)if(0!=ge(s,u)){e.curOp.focus=Y(),h(s);var l=Ai(o,r);(s.line>=l.to||s.line<l.from)&&setTimeout(Qi(e,function(){p==a&&t(n)}),150)}else{var d=n.clientY<f.top?-20:n.clientY>f.bottom?20:0;d&&setTimeout(Qi(e,function(){p==a&&(o.scroller.scrollTop+=d,t(n))}),50)}}(t):m(t)}),y=Qi(e,m);e.state.selectingText=y,Ze(o.wrapper.ownerDocument,"mousemove",g),Ze(o.wrapper.ownerDocument,"mouseup",y)}(e,i,t,r)}(t,i,r,e):ut(e)==n.scroller&&st(e):2==o?(i&&Fo(t.doc,i),setTimeout(function(){return n.input.focus()},20)):3==o&&(M?da(t,e):pi(t)))}}function aa(e,t,n){if("char"==n)return new go(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new go(me(t.line,0),_e(e.doc,me(t.line+1,0)));var i=n(e,t);return new go(i.from,i.to)}function sa(e,t,n,i){var o,r;if(t.touches)o=t.touches[0].clientX,r=t.touches[0].clientY;else try{o=t.clientX,r=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&st(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(r>s.bottom||!rt(e,n))return dt(t);r-=s.top-a.viewOffset;for(var l=0;l<e.options.gutters.length;++l){var d=a.gutters.childNodes[l];if(d&&d.getBoundingClientRect().right>=o)return nt(e,n,e,he(e.doc,r),e.options.gutters[l],t),dt(t)}}function la(e,t){return sa(e,t,"gutterClick",!0)}function da(e,t){bn(e.display,t)||function(e,t){return!!rt(e,"gutterContextMenu")&&sa(e,t,"gutterContextMenu",!1)}(e,t)||it(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function ca(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),In(e)}oa.prototype.compare=function(e,t,n){return this.time+400>e&&0==ge(t,this.pos)&&n==this.button};var ua={toString:function(){return"CodeMirror.Init"}},ha={},fa={};function pa(e){lo(e),Ji(e),bi(e)}function ma(e,t,n){if(!t!=!(n&&n!=ua)){var i=e.display.dragFunctions,o=t?Ze:tt;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function ga(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),Ge(e)),oi(e),Ji(e),In(e),setTimeout(function(){return Bi(e)},100)}function ya(e,t){var i=this;if(!(this instanceof ya))return new ya(e,t);this.options=t=t?P(t):{},P(ha,t,!1),co(t);var o=t.value;"string"==typeof o&&(o=new _r(o,t.mode,null,t.lineSeparator,t.direction)),this.doc=o;var r=new ya.inputStyles[t.inputStyle](this),d=this.display=new function(e,t,i){var o=this;this.input=i,o.scrollbarFiller=L("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=L("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=T("div",null,"CodeMirror-code"),o.selectionDiv=L("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=L("div",null,"CodeMirror-cursors"),o.measure=L("div",null,"CodeMirror-measure"),o.lineMeasure=L("div",null,"CodeMirror-measure"),o.lineSpace=T("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var r=T("div",[o.lineSpace],"CodeMirror-lines");o.mover=L("div",[r],null,"position: relative"),o.sizer=L("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=L("div",null,null,"position: absolute; height: "+N+"px; width: 1px;"),o.gutters=L("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=L("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=L("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,i.init(o)}(e,o,r);for(var c in d.wrapper.CodeMirror=this,lo(this),ca(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Pi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new j,keySeq:null,specialChars:null},t.autofocus&&!y&&d.input.focus(),a&&s<11&&setTimeout(function(){return i.display.input.reset(!0)},20),function(e){var t=e.display;Ze(t.scroller,"mousedown",Qi(e,ra)),Ze(t.scroller,"dblclick",a&&s<11?Qi(e,function(t){if(!it(e,t)){var n=ri(e,t);if(n&&!la(e,t)&&!bn(e.display,t)){st(t);var i=e.findWordAt(n);Fo(e.doc,i.anchor,i.head)}}}):function(t){return it(e,t)||st(t)}),M||Ze(t.scroller,"contextmenu",function(t){return da(e,t)});var n,i={end:0};function o(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(i=t.activeTouch).end=+new Date)}function r(e,t){if(null==t.left)return!0;var n=t.left-e.left,i=t.top-e.top;return n*n+i*i>400}Ze(t.scroller,"touchstart",function(o){if(!it(e,o)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(o)&&!la(e,o)){t.input.ensurePolled(),clearTimeout(n);var r=+new Date;t.activeTouch={start:r,moved:!1,prev:r-i.end<=300?i:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}}),Ze(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ze(t.scroller,"touchend",function(n){var i=t.activeTouch;if(i&&!bn(t,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!i.prev||r(i,i.prev)?new go(s,s):!i.prev.prev||r(i,i.prev.prev)?e.findWordAt(s):new go(me(s.line,0),_e(e.doc,me(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),st(n)}o()}),Ze(t.scroller,"touchcancel",o),Ze(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ei(e,t.scroller.scrollTop),Ti(e,t.scroller.scrollLeft,!0),nt(e,"scroll",e))}),Ze(t.scroller,"mousewheel",function(t){return po(e,t)}),Ze(t.scroller,"DOMMouseScroll",function(t){return po(e,t)}),Ze(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){it(e,t)||ct(t)},over:function(t){it(e,t)||(function(e,t){var n=ri(e,t);if(n){var i=document.createDocumentFragment();di(e,n,i),e.display.dragCursor||(e.display.dragCursor=L("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),E(e.display.dragCursor,i)}}(e,t),ct(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Mr<100))ct(t);else if(!it(e,t)&&!bn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=L("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",u&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),u&&n.parentNode.removeChild(n)}}(e,t)},drop:Qi(e,xr),leave:function(t){it(e,t)||kr(e)}};var l=t.input.getField();Ze(l,"keyup",function(t){return ea.call(e,t)}),Ze(l,"keydown",Qi(e,Zr)),Ze(l,"keypress",Qi(e,ta)),Ze(l,"focus",function(t){return mi(e,t)}),Ze(l,"blur",function(t){return gi(e,t)})}(this),function(){var e;Cr||(Ze(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Sr(Er)},100))}),Ze(window,"blur",function(){return Sr(gi)}),Cr=!0)}(),ji(this),this.curOp.forceUpdate=!0,Eo(this,o),t.autofocus&&!y||this.hasFocus()?setTimeout(H(mi,this),20):gi(this),fa)fa.hasOwnProperty(c)&&fa[c](i,t[c],ua);wi(this),t.finishInit&&t.finishInit(this);for(var f=0;f<va.length;++f)va[f](i);Fi(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(d.lineDiv).textRendering&&(d.lineDiv.style.textRendering="auto")}ya.defaults=ha,ya.optionHandlers=fa;var va=[];function Aa(e,t,n,i){var o,r=e.doc;null==n&&(n="add"),"smart"==n&&(r.mode.indent?o=Ht(e,t).state:n="prev");var a=e.options.tabSize,s=se(r,t),l=I(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var d,c=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&((d=r.mode.indent(o,s.text.slice(c.length),s.text))==z||d>150)){if(!i)return;n="prev"}}else d=0,n="not";"prev"==n?d=t>r.first?I(se(r,t-1).text,null,a):0:"add"==n?d=l+e.options.indentUnit:"subtract"==n?d=l-e.options.indentUnit:"number"==typeof n&&(d=l+n),d=Math.max(0,d);var u="",h=0;if(e.options.indentWithTabs)for(var f=Math.floor(d/a);f;--f)h+=a,u+="\t";if(h<d&&(u+=V(d-h)),u!=c)return ar(r,u,me(t,0),me(t,c.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<r.sel.ranges.length;p++){var m=r.sel.ranges[p];if(m.head.line==t&&m.head.ch<c.length){var g=me(t,c.length);zo(r,p,new go(g,g));break}}}ya.defineInitHook=function(e){return va.push(e)};var ba=null;function wa(e){ba=e}function _a(e,t,n,i,o){var r=e.doc;e.display.shift=!1,i||(i=r.sel);var a,s=e.state.pasteIncoming||"paste"==o,l=At(t),d=null;if(s&&i.ranges.length>1)if(ba&&ba.text.join("\n")==t){if(i.ranges.length%ba.text.length==0){d=[];for(var c=0;c<ba.text.length;c++)d.push(r.splitLines(ba.text[c]))}}else l.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(d=K(l,function(e){return[e]}));for(var u=i.ranges.length-1;u>=0;u--){var h=i.ranges[u],f=h.from(),p=h.to();h.empty()&&(n&&n>0?f=me(f.line,f.ch-n):e.state.overwrite&&!s?p=me(p.line,Math.min(se(r,p.line).text.length,p.ch+J(l).length)):ba&&ba.lineWise&&ba.text.join("\n")==t&&(f=p=me(f.line,0))),a=e.curOp.updateInput;var m={from:f,to:p,text:d?d[u%d.length]:l,origin:o||(s?"paste":e.state.cutIncoming?"cut":"+input")};tr(e.doc,m),an(e,"inputRead",e,m)}t&&!s&&xa(e,t),xi(e),e.curOp.updateInput=a,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Ma(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Ui(t,function(){return _a(t,n,0,null,"paste")}),!0}function xa(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var o=n.ranges[i];if(!(o.head.ch>100||i&&n.ranges[i-1].head.line==o.head.line)){var r=e.getModeAt(o.head),a=!1;if(r.electricChars){for(var s=0;s<r.electricChars.length;s++)if(t.indexOf(r.electricChars.charAt(s))>-1){a=Aa(e,o.head.line,"smart");break}}else r.electricInput&&r.electricInput.test(se(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Aa(e,o.head.line,"smart"));a&&an(e,"electricInput",e,o.head.line)}}}function ka(e){for(var t=[],n=[],i=0;i<e.doc.sel.ranges.length;i++){var o=e.doc.sel.ranges[i].head.line,r={anchor:me(o,0),head:me(o+1,0)};n.push(r),t.push(e.getRange(r.anchor,r.head))}return{text:t,ranges:n}}function Sa(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function Ca(){var e=L("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=L("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Sa(e),t}function Ea(e,t,n,i,o){var r=t,a=n,s=se(e,t.line);function l(i){var r,a;if(null==(r=o?function(e,t,n,i){var o=Xe(t,e.doc.direction);if(!o)return zr(t,n,i);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var r=Je(o,n.ch,n.sticky),a=o[r];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from<n.ch))return zr(t,n,i);var s,l=function(e,n){return Nr(t,e instanceof me?e.ch:e,n)},d=function(n){return e.options.lineWrapping?(s=s||Tn(e,t),Kn(e,t,s,n)):{begin:0,end:t.text.length}},c=d("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var u=1==a.level==i<0,h=l(n,u?1:-1);if(null!=h&&(u?h<=a.to&&h<=c.end:h>=a.from&&h>=c.begin)){var f=u?"before":"after";return new me(n.line,h,f)}}var p=function(e,t,i){for(var r=function(e,t){return t?new me(n.line,l(e,1),"before"):new me(n.line,e,"after")};e>=0&&e<o.length;e+=t){var a=o[e],s=t>0==(1!=a.level),d=s?i.begin:l(i.end,-1);if(a.from<=d&&d<a.to)return r(d,s);if(d=s?a.from:l(a.to,-1),i.begin<=d&&d<i.end)return r(d,s)}},m=p(r+i,i,c);if(m)return m;var g=i>0?c.end:l(c.begin,-1);return null==g||i>0&&g==t.text.length||!(m=p(i>0?0:o.length-1,i,d(g)))?null:m}(e.cm,s,t,n):zr(s,t,n))){if(i||(a=t.line+n)<e.first||a>=e.first+e.size||(t=new me(a,t.ch,t.sticky),!(s=se(e,a))))return!1;t=Wr(o,e.cm,s,t.line,n)}else t=r;return!0}if("char"==i)l();else if("column"==i)l(!0);else if("word"==i||"group"==i)for(var d=null,c="group"==i,u=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||l(!h);h=!1){var f=s.text.charAt(t.ch)||"\n",p=te(f,u)?"w":c&&"\n"==f?"n":!c||/\s/.test(f)?null:"p";if(!c||h||p||(p="s"),d&&d!=p){n<0&&(n=1,l(),t.sticky="after");break}if(p&&(d=p),n>0&&!l(!h))break}var m=Xo(e,t,r,a,!0);return ye(r,m)&&(m.hitSide=!0),m}function La(e,t,n,i){var o,r,a=e.doc,s=t.left;if("page"==i){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),d=Math.max(l-.5*Zn(e.display),3);o=(n>0?t.bottom:t.top)+n*d}else"line"==i&&(o=n>0?t.bottom+3:t.top-3);for(;(r=Vn(e,s,o)).outside;){if(n<0?o<=0:o>=a.height){r.hitSide=!0;break}o+=5*n}return r}var Ta=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new j,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Da(e,t){var n=Ln(e,t.line);if(!n||n.hidden)return null;var i=se(e.doc,t.line),o=Cn(n,i,t.line),r=Xe(i,e.doc.direction),a="left";r&&(a=Je(r,t.ch)%2?"right":"left");var s=Bn(o.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ya(e,t){return t&&(e.bad=!0),e}function Ra(e,t,n){var i;if(t==e.display.lineDiv){if(!(i=e.display.lineDiv.childNodes[n]))return Ya(e.clipPos(me(e.display.viewTo-1)),!0);t=null,n=0}else for(i=t;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var o=0;o<e.display.view.length;o++){var r=e.display.view[o];if(r.node==i)return Ba(r,t,n)}}function Ba(e,t,n){var i=e.text.firstChild,o=!1;if(!t||!D(i,t))return Ya(me(ue(e.line),0),!0);if(t==i&&(o=!0,t=i.childNodes[n],n=0,!t)){var r=e.rest?J(e.rest):e.line;return Ya(me(ue(r),r.text.length),o)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=i;)s=s.parentNode;var l=e.measure,d=l.maps;function c(t,n,i){for(var o=-1;o<(d?d.length:0);o++)for(var r=o<0?l.map:d[o],a=0;a<r.length;a+=3){var s=r[a+2];if(s==t||s==n){var c=ue(o<0?e.line:e.rest[o]),u=r[a]+i;return(i<0||s!=t)&&(u=r[a+(i?1:0)]),me(c,u)}}}var u=c(a,s,n);if(u)return Ya(u,o);for(var h=s.nextSibling,f=a?a.nodeValue.length-n:0;h;h=h.nextSibling){if(u=c(h,h.firstChild,0))return Ya(me(u.line,u.ch-f),o);f+=h.textContent.length}for(var p=s.previousSibling,m=n;p;p=p.previousSibling){if(u=c(p,p.firstChild,-1))return Ya(me(u.line,u.ch+m),o);m+=p.textContent.length}}Ta.prototype.init=function(e){var t=this,n=this,i=n.cm,o=n.div=e.lineDiv;function r(e){if(!it(i,e)){if(i.somethingSelected())wa({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=ka(i);wa({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,W),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var r=ba.text.join("\n");if(e.clipboardData.setData("Text",r),e.clipboardData.getData("Text")==r)return void e.preventDefault()}var a=Ca(),s=a.firstChild;i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),s.value=ba.text.join("\n");var l=document.activeElement;O(s),setTimeout(function(){i.display.lineSpace.removeChild(a),l.focus(),l==o&&n.showPrimarySelection()},50)}}Sa(o,i.options.spellcheck),Ze(o,"paste",function(e){it(i,e)||Ma(e,i)||s<=11&&setTimeout(Qi(i,function(){return t.updateFromDOM()}),20)}),Ze(o,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),Ze(o,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),Ze(o,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ze(o,"touchstart",function(){return n.forceCompositionEnd()}),Ze(o,"input",function(){t.composing||t.readFromDOMSoon()}),Ze(o,"copy",r),Ze(o,"cut",r)},Ta.prototype.prepareSelection=function(){var e=li(this.cm,!1);return e.focus=this.cm.state.focused,e},Ta.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ta.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm,i=t.doc.sel.primary(),o=i.from(),r=i.to();if(t.display.viewTo==t.display.viewFrom||o.line>=t.display.viewTo||r.line<t.display.viewFrom)e.removeAllRanges();else{var a=Ra(t,e.anchorNode,e.anchorOffset),s=Ra(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ge(be(a,s),o)||0!=ge(Ae(a,s),r)){var l=t.display.view,d=o.line>=t.display.viewFrom&&Da(t,o)||{node:l[0].measure.map[2],offset:0},c=r.line<t.display.viewTo&&Da(t,r);if(!c){var u=l[l.length-1].measure,h=u.maps?u.maps[u.maps.length-1]:u.map;c={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(d&&c){var f,p=e.rangeCount&&e.getRangeAt(0);try{f=k(d.node,d.offset,c.offset,c.node)}catch(e){}f&&(!n&&t.state.focused?(e.collapse(d.node,d.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ta.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ta.prototype.showMultipleSelections=function(e){E(this.cm.display.cursorDiv,e.cursors),E(this.cm.display.selectionDiv,e.selection)},Ta.prototype.rememberSelection=function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ta.prototype.selectionInEditor=function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},Ta.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ta.prototype.blur=function(){this.div.blur()},Ta.prototype.getField=function(){return this.div},Ta.prototype.supportsTouch=function(){return!0},Ta.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Ui(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))})},Ta.prototype.selectionChanged=function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ta.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;if(g&&c&&this.cm.options.gutters.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ra(t,e.anchorNode,e.anchorOffset),i=Ra(t,e.focusNode,e.focusOffset);n&&i&&Ui(t,function(){Uo(t.doc,vo(n,i),W),(n.bad||i.bad)&&(t.curOp.selectionChanged=!0)})}}},Ta.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,i=this.cm,o=i.display,r=i.doc.sel.primary(),a=r.from(),s=r.to();if(0==a.ch&&a.line>i.firstLine()&&(a=me(a.line-1,se(i.doc,a.line-1).length)),s.ch==se(i.doc,s.line).text.length&&s.line<i.lastLine()&&(s=me(s.line+1,0)),a.line<o.viewFrom||s.line>o.viewTo-1)return!1;a.line==o.viewFrom||0==(e=ai(i,a.line))?(t=ue(o.view[0].line),n=o.view[0].node):(t=ue(o.view[e].line),n=o.view[e-1].node.nextSibling);var l,d,c=ai(i,s.line);if(c==o.view.length-1?(l=o.viewTo-1,d=o.lineDiv.lastChild):(l=ue(o.view[c+1].line)-1,d=o.view[c+1].node.previousSibling),!n)return!1;for(var u=i.doc.splitLines(function(e,t,n,i,o){var r="",a=!1,s=e.doc.lineSeparator();function l(){a&&(r+=s,a=!1)}function d(e){e&&(l(),r+=e)}function c(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void d(n||t.textContent.replace(/\u200b/g,""));var r,u=t.getAttribute("cm-marker");if(u){var h=e.findMarks(me(i,0),me(o+1,0),(m=+u,function(e){return e.id==m}));return void(h.length&&(r=h[0].find(0))&&d(le(e.doc,r.from,r.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var f=/^(pre|div|p)$/i.test(t.nodeName);f&&l();for(var p=0;p<t.childNodes.length;p++)c(t.childNodes[p]);f&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue);var m}for(;c(t),t!=n;)t=t.nextSibling;return r}(i,n,d,t,l)),h=le(i.doc,me(t,0),me(l,se(i.doc,l).text.length));u.length>1&&h.length>1;)if(J(u)==J(h))u.pop(),h.pop(),l--;else{if(u[0]!=h[0])break;u.shift(),h.shift(),t++}for(var f=0,p=0,m=u[0],g=h[0],y=Math.min(m.length,g.length);f<y&&m.charCodeAt(f)==g.charCodeAt(f);)++f;for(var v=J(u),A=J(h),b=Math.min(v.length-(1==u.length?f:0),A.length-(1==h.length?f:0));p<b&&v.charCodeAt(v.length-p-1)==A.charCodeAt(A.length-p-1);)++p;if(1==u.length&&1==h.length&&t==a.line)for(;f&&f>a.ch&&v.charCodeAt(v.length-p-1)==A.charCodeAt(A.length-p-1);)f--,p++;u[u.length-1]=v.slice(0,v.length-p).replace(/^\u200b+/,""),u[0]=u[0].slice(f).replace(/\u200b+$/,"");var w=me(t,f),_=me(l,h.length?J(h).length-p:0);return u.length>1||u[0]||ge(w,_)?(ar(i.doc,u,w,_,"+input"),!0):void 0},Ta.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ta.prototype.reset=function(){this.forceCompositionEnd()},Ta.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ta.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ta.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ui(this.cm,function(){return Ji(e.cm)})},Ta.prototype.setUneditable=function(e){e.contentEditable="false"},Ta.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||Qi(this.cm,_a)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ta.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ta.prototype.onContextMenu=function(){},Ta.prototype.resetPosition=function(){},Ta.prototype.needsContentAttribute=!0;var Oa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new j,this.hasSelection=!1,this.composing=null};Oa.prototype.init=function(e){var t=this,n=this,i=this.cm;this.createField(e);var o=this.textarea;function r(e){if(!it(i,e)){if(i.somethingSelected())wa({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=ka(i);wa({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,W):(n.prevInput="",o.value=t.text.join("\n"),O(o))}"cut"==e.type&&(i.state.cutIncoming=!0)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(o.style.width="0px"),Ze(o,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),Ze(o,"paste",function(e){it(i,e)||Ma(e,i)||(i.state.pasteIncoming=!0,n.fastPoll())}),Ze(o,"cut",r),Ze(o,"copy",r),Ze(e.scroller,"paste",function(t){bn(e,t)||it(i,t)||(i.state.pasteIncoming=!0,n.focus())}),Ze(e.lineSpace,"selectstart",function(t){bn(e,t)||st(t)}),Ze(o,"compositionstart",function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Ze(o,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Oa.prototype.createField=function(e){this.wrapper=Ca(),this.textarea=this.wrapper.firstChild},Oa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=li(e);if(e.options.moveInputWithCursor){var o=Un(e,n.sel.primary().head,"div"),r=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-r.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-r.left))}return i},Oa.prototype.showSelection=function(e){var t=this.cm.display;E(t.cursorDiv,e.cursors),E(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Oa.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&O(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Oa.prototype.getField=function(){return this.textarea},Oa.prototype.supportsTouch=function(){return!1},Oa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||Y()!=this.textarea))try{this.textarea.focus()}catch(e){}},Oa.prototype.blur=function(){this.textarea.blur()},Oa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Oa.prototype.receivedFocus=function(){this.slowPoll()},Oa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Oa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Oa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||bt(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==i&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===o||v&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var r=o.charCodeAt(0);if(8203!=r||i||(i="​"),8666==r)return this.reset(),this.cm.execCommand("undo")}for(var l=0,d=Math.min(i.length,o.length);l<d&&i.charCodeAt(l)==o.charCodeAt(l);)++l;return Ui(t,function(){_a(t,o.slice(l),i.length-l,null,e.composing?"*compose":null),o.length>1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Oa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Oa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Oa.prototype.onContextMenu=function(e){var t=this,n=t.cm,i=n.display,o=t.textarea,r=ri(n,e),d=i.scroller.scrollTop;if(r&&!u){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(r)&&Qi(n,Uo)(n.doc,vo(r),W);var c=o.style.cssText,h=t.wrapper.style.cssText;t.wrapper.style.cssText="position: absolute";var f,p=t.wrapper.getBoundingClientRect();if(o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(f=window.scrollY),i.input.focus(),l&&window.scrollTo(null,f),i.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=!0,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),a&&s>=9&&g(),M){ct(e);var m=function(){tt(window,"mouseup",m),setTimeout(y,20)};Ze(window,"mouseup",m)}else setTimeout(y,50)}function g(){if(null!=o.selectionStart){var e=n.somethingSelected(),r="​"+(e?o.value:"");o.value="⇚",o.value=r,t.prevInput=e?"":"​",o.selectionStart=1,o.selectionEnd=r.length,i.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending=!1,t.wrapper.style.cssText=h,o.style.cssText=c,a&&s<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=d),null!=o.selectionStart){(!a||a&&s<9)&&g();var e=0,r=function(){i.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"​"==t.prevInput?Qi(n,Zo)(n):e++<10?i.detectingSelectAll=setTimeout(r,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(r,200)}}},Oa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Oa.prototype.setUneditable=function(){},Oa.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,i,o,r){e.defaults[n]=i,o&&(t[n]=r?function(e,t,n){n!=ua&&o(e,t,n)}:o)}e.defineOption=n,e.Init=ua,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Mo(e)},!0),n("indentUnit",2,Mo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){xo(e),In(e),Ji(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter(function(e){for(var o=0;;){var r=e.text.indexOf(t,o);if(-1==r)break;o=r+t.length,n.push(me(i,r))}i++});for(var o=n.length-1;o>=0;o--)ar(e.doc,t,n[o],me(n[o].line,n[o].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=ua&&e.refresh()}),n("specialCharPlaceholder",Kt,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("rtlMoveVisually",!b),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){ca(e),pa(e)},!0),n("keyMap","default",function(e,t,n){var i=jr(t),o=n!=ua&&jr(n);o&&o.detach&&o.detach(e,i),i.attach&&i.attach(e,o||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,ga,!0),n("gutters",[],function(e){co(e.options),pa(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?ni(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Bi(e)},!0),n("scrollbarStyle","native",function(e){Pi(e),Bi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e){co(e.options),pa(e)},!0),n("firstLineNumber",1,pa,!0),n("lineNumberFormatter",function(e){return e},pa,!0),n("showCursorWhenSelecting",!1,si,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("readOnly",!1,function(e,t){"nocursor"==t&&(gi(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,ma),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,si,!0),n("singleCursorHeightPerLine",!0,si,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,xo,!0),n("addModeClass",!1,xo,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,xo,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(ya),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var i=this.options,o=i[e];i[e]==n&&"mode"!=e||(i[e]=n,t.hasOwnProperty(e)&&Qi(this,t[e])(this,n,o),nt(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](jr(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Gi(function(t,n){var i=t.token?t:e.getMode(this.options,t);if(i.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var i=0,o=n(t);i<e.length&&n(e[i])<=o;)i++;e.splice(i,0,t)}(this.state.overlays,{mode:i,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,Ji(this)}),removeOverlay:Gi(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var i=t[n].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return t.splice(n,1),this.state.modeGen++,void Ji(this)}}),indentLine:Gi(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),fe(this.doc,e)&&Aa(this,e,t,n)}),indentSelection:Gi(function(e){for(var t=this.doc.sel.ranges,n=-1,i=0;i<t.length;i++){var o=t[i];if(o.empty())o.head.line>n&&(Aa(this,o.head.line,e,!0),n=o.head.line,i==this.doc.sel.primIndex&&xi(this));else{var r=o.from(),a=o.to(),s=Math.max(n,r.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Aa(this,l,e);var d=this.doc.sel.ranges;0==r.ch&&t.length==d.length&&d[i].from().ch>0&&zo(this.doc,i,new go(r,d[i].to()),W)}}}),getTokenAt:function(e,t){return Nt(this,e,t)},getLineTokens:function(e,t){return Nt(this,me(e),t,!0)},getTokenTypeAt:function(e){e=_e(this.doc,e);var t,n=Ot(this,se(this.doc,e.line)),i=0,o=(n.length-1)/2,r=e.ch;if(0==r)t=n[2];else for(;;){var a=i+o>>1;if((a?n[2*a-1]:0)>=r)o=a;else{if(!(n[2*a+1]<r)){t=n[2*a+2];break}i=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var i=[];if(!n.hasOwnProperty(t))return i;var o=n[t],r=this.getModeAt(e);if("string"==typeof r[t])o[r[t]]&&i.push(o[r[t]]);else if(r[t])for(var a=0;a<r[t].length;a++){var s=o[r[t][a]];s&&i.push(s)}else r.helperType&&o[r.helperType]?i.push(o[r.helperType]):o[r.name]&&i.push(o[r.name]);for(var l=0;l<o._global.length;l++){var d=o._global[l];d.pred(r,this)&&-1==F(i,d.val)&&i.push(d.val)}return i},getStateAfter:function(e,t){var n=this.doc;return Ht(this,(e=we(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Un(this,null==e?n.head:"object"==typeof e?_e(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return $n(this,_e(this.doc,e),t||"page")},coordsChar:function(e,t){return Vn(this,(e=Wn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Wn(this,{top:e,left:0},t||"page").top,he(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var i,o=!1;if("number"==typeof e){var r=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>r&&(e=r,o=!0),i=se(this.doc,e)}else i=e;return zn(this,i,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-Ue(i):0)},defaultTextHeight:function(){return Zn(this.display)},defaultCharWidth:function(){return ei(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,o){var r,a,s=this.display,l=(e=Un(this,_e(this.doc,e))).bottom,d=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==i)l=e.top;else if("above"==i||"near"==i){var c=Math.max(s.wrapper.clientHeight,this.doc.height),u=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>c)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=c&&(l=e.bottom),d+t.offsetWidth>u&&(d=u-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==o?(d=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?d=0:"middle"==o&&(d=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=d+"px"),n&&(null!=(a=_i(r=this,{left:d,top:l,right:d+t.offsetWidth,bottom:l+t.offsetHeight})).scrollTop&&Ei(r,a.scrollTop),null!=a.scrollLeft&&Ti(r,a.scrollLeft))},triggerOnKeyDown:Gi(Zr),triggerOnKeyPress:Gi(ta),triggerOnKeyUp:ea,triggerOnMouseDown:Gi(ra),execCommand:function(e){if($r.hasOwnProperty(e))return $r[e].call(null,this)},triggerElectric:Gi(function(e){xa(this,e)}),findPosH:function(e,t,n,i){var o=1;t<0&&(o=-1,t=-t);for(var r=_e(this.doc,e),a=0;a<t&&!(r=Ea(this.doc,r,o,n,i)).hitSide;++a);return r},moveH:Gi(function(e,t){var n=this;this.extendSelectionsBy(function(i){return n.display.shift||n.doc.extend||i.empty()?Ea(n.doc,i.head,e,t,n.options.rtlMoveVisually):e<0?i.from():i.to()},U)}),deleteH:Gi(function(e,t){var n=this.doc.sel,i=this.doc;n.somethingSelected()?i.replaceSelection("",null,"+delete"):Fr(this,function(n){var o=Ea(i,n.head,e,t,!1);return e<0?{from:o,to:n.head}:{from:n.head,to:o}})}),findPosV:function(e,t,n,i){var o=1,r=i;t<0&&(o=-1,t=-t);for(var a=_e(this.doc,e),s=0;s<t;++s){var l=Un(this,a,"div");if(null==r?r=l.left:l.left=r,(a=La(this,l,o,n)).hitSide)break}return a},moveV:Gi(function(e,t){var n=this,i=this.doc,o=[],r=!this.display.shift&&!i.extend&&i.sel.somethingSelected();if(i.extendSelectionsBy(function(a){if(r)return e<0?a.from():a.to();var s=Un(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),o.push(s.left);var l=La(n,s,e,t);return"page"==t&&a==i.sel.primary()&&Mi(n,$n(n,l,"div").top-s.top),l},U),o.length)for(var a=0;a<i.sel.ranges.length;a++)i.sel.ranges[a].goalColumn=o[a]}),findWordAt:function(e){var t=se(this.doc,e.line).text,n=e.ch,i=e.ch;if(t){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=t.length||!n?++i:--n;for(var r=t.charAt(n),a=te(r,o)?function(e){return te(e,o)}:/\s/.test(r)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!te(e)};n>0&&a(t.charAt(n-1));)--n;for(;i<t.length&&a(t.charAt(i));)++i}return new go(me(e.line,n),me(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?R(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),nt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Y()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Gi(function(e,t){ki(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-xn(this)-this.display.barHeight,width:e.scrollWidth-xn(this)-this.display.barWidth,clientHeight:Sn(this),clientWidth:kn(this)}},scrollIntoView:Gi(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:me(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Si(e),e.curOp.scrollToPos=t}(this,e):Ci(this,e.from,e.to,e.margin)}),setSize:Gi(function(e,t){var n=this,i=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=i(e)),null!=t&&(this.display.wrapper.style.height=i(t)),this.options.lineWrapping&&Pn(this);var o=this.display.viewFrom;this.doc.iter(o,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Ki(n,o,"widget");break}++o}),this.curOp.forceUpdate=!0,nt(this,"refresh",this)}),operation:function(e){return Ui(this,e)},startOperation:function(){return ji(this)},endOperation:function(){return Fi(this)},refresh:Gi(function(){var e=this.display.cachedTextHeight;Ji(this),this.curOp.forceUpdate=!0,In(this),ki(this,this.doc.scrollLeft,this.doc.scrollTop),ao(this),(null==e||Math.abs(e-Zn(this.display))>.5)&&oi(this),nt(this,"refresh",this)}),swapDoc:Gi(function(e){var t=this.doc;return t.cm=null,Eo(this,e),In(this),this.display.input.reset(),ki(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,an(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},at(e),e.registerHelper=function(t,i,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=o},e.registerGlobalHelper=function(t,i,o,r){e.registerHelper(t,i,r),n[t]._global.push({pred:o,val:r})}}(ya);var Ha,Pa="iter insert remove copy getEditor constructor".split(" ");for(var Ia in _r.prototype)_r.prototype.hasOwnProperty(Ia)&&F(Pa,Ia)<0&&(ya.prototype[Ia]=function(e){return function(){return e.apply(this.doc,arguments)}}(_r.prototype[Ia]));return at(_r),ya.inputStyles={textarea:Oa,contenteditable:Ta},ya.defineMode=function(e){ya.defaults.mode||"null"==e||(ya.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Mt[e]=t}.apply(this,arguments)},ya.defineMIME=function(e,t){xt[e]=t},ya.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ya.defineMIME("text/plain","null"),ya.defineExtension=function(e,t){ya.prototype[e]=t},ya.defineDocExtension=function(e,t){_r.prototype[e]=t},ya.fromTextArea=function(e,t){if((t=t?P(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=Y();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function i(){e.value=s.getValue()}var o;if(e.form&&(Ze(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var r=e.form;o=r.submit;try{var a=r.submit=function(){i(),r.submit=o,r.submit(),r.submit=a}}catch(e){}}t.finishInit=function(t){t.save=i,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,i(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(tt(e.form,"submit",i),"function"==typeof e.form.submit&&(e.form.submit=o))}},e.style.display="none";var s=ya(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},(Ha=ya).off=tt,Ha.on=Ze,Ha.wheelEventPixels=function(e){var t=fo(e);return t.x*=ho,t.y*=ho,t},Ha.Doc=_r,Ha.splitLines=At,Ha.countColumn=I,Ha.findColumn=Q,Ha.isWordChar=ee,Ha.Pass=z,Ha.signal=nt,Ha.Line=$t,Ha.changeEnd=Ao,Ha.scrollbarModel=Hi,Ha.Pos=me,Ha.cmpPos=ge,Ha.modes=Mt,Ha.mimeModes=xt,Ha.resolveMode=kt,Ha.getMode=St,Ha.modeExtensions=Ct,Ha.extendMode=function(e,t){P(t,Ct.hasOwnProperty(e)?Ct[e]:Ct[e]={})},Ha.copyState=Et,Ha.startState=Tt,Ha.innerMode=Lt,Ha.commands=$r,Ha.keyMap=Rr,Ha.keyName=Ir,Ha.isModifierKey=Hr,Ha.lookupKey=Or,Ha.normalizeKeyMap=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==i){delete e[n];continue}for(var o=K(n.split(" "),Br),r=0;r<o.length;r++){var a=void 0,s=void 0;r==o.length-1?(s=o.join(" "),a=i):(s=o.slice(0,r+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var d in t)e[d]=t[d];return e},Ha.StringStream=Dt,Ha.SharedTextMarker=vr,Ha.TextMarker=gr,Ha.LineWidget=fr,Ha.e_preventDefault=st,Ha.e_stopPropagation=lt,Ha.e_stop=ct,Ha.addClass=R,Ha.contains=D,Ha.rmClass=S,Ha.keyNames=Lr,ya.version="5.36.0",ya}()},function(e,t,n){"use strict";var i=n(17),o=n(428);function r(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var i=0;i<e.length;i++){var o=e.charCodeAt(i),r=o>>8,a=255&o;r?n.push(r,a):n.push(a)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=r,t.toHex32=function(e,t){for(var n="",i=0;i<e.length;i++){var o=e[i];"little"===t&&(o=r(o)),n+=s(o.toString(16))}return n},t.zero2=a,t.zero8=s,t.join32=function(e,t,n,o){var r=n-t;i(r%4==0);for(var a=new Array(r/4),s=0,l=t;s<a.length;s++,l+=4){var d;d="big"===o?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],a[s]=d>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),i=0,o=0;i<e.length;i++,o+=4){var r=e[i];"big"===t?(n[o]=r>>>24,n[o+1]=r>>>16&255,n[o+2]=r>>>8&255,n[o+3]=255&r):(n[o+3]=r>>>24,n[o+2]=r>>>16&255,n[o+1]=r>>>8&255,n[o]=255&r)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,i){return e+t+n+i>>>0},t.sum32_5=function(e,t,n,i,o){return e+t+n+i+o>>>0},t.sum64=function(e,t,n,i){var o=e[t],r=i+e[t+1]>>>0,a=(r<i?1:0)+n+o;e[t]=a>>>0,e[t+1]=r},t.sum64_hi=function(e,t,n,i){return(t+i>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,i){return t+i>>>0},t.sum64_4_hi=function(e,t,n,i,o,r,a,s){var l=0,d=t;return l+=(d=d+i>>>0)<t?1:0,l+=(d=d+r>>>0)<r?1:0,e+n+o+a+(l+=(d=d+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,i,o,r,a,s){return t+i+r+s>>>0},t.sum64_5_hi=function(e,t,n,i,o,r,a,s,l,d){var c=0,u=t;return c+=(u=u+i>>>0)<t?1:0,c+=(u=u+r>>>0)<r?1:0,c+=(u=u+s>>>0)<s?1:0,e+n+o+a+l+(c+=(u=u+d>>>0)<d?1:0)>>>0},t.sum64_5_lo=function(e,t,n,i,o,r,a,s,l,d){return t+i+r+s+d>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var l,d=[],c=!1,u=-1;function h(){c&&l&&(c=!1,l.length?d=l.concat(d):u=-1,d.length&&f())}function f(){if(!c){var e=s(h);c=!0;for(var t=d.length;t;){for(l=d,d=[];++u<t;)l&&l[u].run();u=-1,t=d.length}l=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new p(e,t)),1!==d.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var i,o={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(e){return null===e||void 0===e},isArray:Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return o.valueOrDefault(o.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,i){var r,a,s;if(o.isArray(e))if(a=e.length,i)for(r=a-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<a;r++)t.call(n,e[r],r);else if(o.isObject(e))for(a=(s=Object.keys(e)).length,r=0;r<a;r++)t.call(n,e[s[r]],s[r])},arrayEquals:function(e,t){var n,i,r,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],a=t[n],r instanceof Array&&a instanceof Array){if(!o.arrayEquals(r,a))return!1}else if(r!==a)return!1;return!0},clone:function(e){if(o.isArray(e))return e.map(o.clone);if(o.isObject(e)){for(var t={},n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=o.clone(e[n[r]]);return t}return e},_merger:function(e,t,n,i){var r=t[e],a=n[e];o.isObject(r)&&o.isObject(a)?o.merge(r,a,i):t[e]=o.clone(a)},_mergerIf:function(e,t,n){var i=t[e],r=n[e];o.isObject(i)&&o.isObject(r)?o.mergeIf(i,r):t.hasOwnProperty(e)||(t[e]=o.clone(r))},merge:function(e,t,n){var i,r,a,s,l,d=o.isArray(t)?t:[t],c=d.length;if(!o.isObject(e))return e;for(i=(n=n||{}).merger||o._merger,r=0;r<c;++r)if(t=d[r],o.isObject(t))for(l=0,s=(a=Object.keys(t)).length;l<s;++l)i(a[l],e,t,n);return e},mergeIf:function(e,t){return o.merge(e,t,{merger:o._mergerIf})},extend:function(e){for(var t=function(t,n){e[n]=t},n=1,i=arguments.length;n<i;++n)o.each(arguments[n],t);return e},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=t.prototype,n.prototype=new i,n.extend=o.inherits,e&&o.extend(n.prototype,e),n.__super__=t.prototype,n}};e.exports=o,o.callCallback=o.callback,o.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},o.getValueOrDefault=o.valueOrDefault,o.getValueAtIndexOrDefault=o.valueAtIndexOrDefault},function(e,t,n){var i=n(8).Buffer,o=n(174).Transform,r=n(184).StringDecoder;function a(e){o.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(6)(a,o),a.prototype.update=function(e,t,n){"string"==typeof e&&(e=i.from(e,t));var o=this._update(e);return this.hashMode?this:(n&&(o=this._toString(o,n)),o)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,n){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{n(i)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new r(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var i=this._decoder.write(e);return n&&(i+=this._decoder.end()),i},e.exports=a},function(e,t,n){"use strict";var i=n(173),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var r=n(35);r.inherits=n(34);var a=n(269),s=n(185);r.inherits(u,a);for(var l=o(s.prototype),d=0;d<l.length;d++){var c=l[d];u.prototype[c]||(u.prototype[c]=s.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||i.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),u.prototype._destroy=function(e,t){this.push(null),this.end(),i.nextTick(t,e)}},function(e,t,n){var i=n(8).Buffer;function o(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=i.from(e,t));for(var n=this._block,o=this._blockSize,r=e.length,a=this._len,s=0;s<r;){for(var l=a%o,d=Math.min(r-s,o-l),c=0;c<d;c++)n[l+c]=e[s+c];s+=d,(a+=d)%o==0&&this._update(n)}return this._len+=r,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var i=(4294967295&n)>>>0,o=(n-i)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var r=this._hash();return e?r.toString(e):r},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},function(e,t,n){"use strict";(function(t,i){var o=n(8).Buffer,r=t.crypto||t.msCrypto;r&&r.getRandomValues?e.exports=function(e,n){if(e>65536)throw new Error("requested too many random bytes");var a=new t.Uint8Array(e);e>0&&r.getRandomValues(a);var s=o.from(a.buffer);return"function"==typeof n?i.nextTick(function(){n(null,s)}):s}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(22),n(23))},function(e,t,n){var i=n(234)();i.helpers=n(4),n(230)(i),i.defaults=n(5),i.Element=n(11),i.elements=n(13),i.Interaction=n(163),i.layouts=n(19),i.platform=n(162),i.plugins=n(161),i.Ticks=n(18),n(219)(i),n(218)(i),n(217)(i),n(216)(i),n(215)(i),n(214)(i),n(213)(i),n(212)(i),n(211)(i),n(210)(i),n(209)(i),n(208)(i),n(206)(i),n(205)(i),n(204)(i),n(203)(i),n(202)(i),n(201)(i),n(200)(i),n(199)(i),n(198)(i),n(197)(i),n(196)(i),n(195)(i),n(194)(i),n(193)(i);var o=n(192);for(var r in o)o.hasOwnProperty(r)&&i.plugins.register(o[r]);i.platform.initialize(),e.exports=i,"undefined"!=typeof window&&(window.Chart=i),i.Legend=o.legend._element,i.Title=o.title._element,i.pluginService=i.plugins,i.PluginBase=i.Element.extend({}),i.canvasHelpers=i.helpers.canvas,i.layoutService=i.layouts},function(e,t,n){var i=t;i.Reporter=n(409).Reporter,i.DecoderBuffer=n(244).DecoderBuffer,i.EncoderBuffer=n(244).EncoderBuffer,i.Node=n(408)},function(e,t,n){var i=t;i.bignum=n(12),i.define=n(412).define,i.base=n(30),i.constants=n(243),i.decoders=n(406),i.encoders=n(404)},function(e,t,n){"use strict";var i=n(21),o=n(17);function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=r,r.prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-n,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},r.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},r.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,i=new Array(n+this.padLength);i[0]=128;for(var o=1;o<n;o++)i[o]=0;if(e<<=3,"big"===this.endian){for(var r=8;r<this.padLength;r++)i[o++]=0;i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=e>>>24&255,i[o++]=e>>>16&255,i[o++]=e>>>8&255,i[o++]=255&e}else for(i[o++]=255&e,i[o++]=e>>>8&255,i[o++]=e>>>16&255,i[o++]=e>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,r=8;r<this.padLength;r++)i[o++]=0;return i}},function(e,t,n){(function(t){e.exports=function(e,n){for(var i=Math.min(e.length,n.length),o=new t(i),r=0;r<i;++r)o[r]=e[r]^n[r];return o}}).call(this,n(9).Buffer)},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){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(9).Buffer)},function(e,t,n){"use strict";var i=n(6),o=n(188),r=n(183),a=n(182),s=n(25);function l(e){s.call(this,"digest"),this._hash=e}i(l,s),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new o:"rmd160"===e||"ripemd160"===e?new r:new l(a(e))}},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,o;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(i=+e,o={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),i%10==1&&i%100!=11?o[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?o[1]:o[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"يېرىم كېچە":i<900?"سەھەر":i<1130?"چۈشتىن بۇرۇن":i<1230?"چۈش":i<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i?o[n][0]:t?o[n][0]:o[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,o){var r=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),o=e%10,r="";return n>0&&(r+=t[n]+"vatlh"),i>0&&(r+=(""!==r?" ":"")+t[i]+"maH"),o>0&&(r+=(""!==r?" ":"")+t[o]),""===r?"pagh":r}(e);switch(i){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var o=t.words[i];return 1===i.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var o=t.words[i];return 1===i.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return o+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return o+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return o+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return o+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return o+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return o+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function o(e,t,n,o){var r=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?r+(i(e)?"sekundy":"sekúnd"):r+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?r+(i(e)?"minúty":"minút"):r+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?r+(i(e)?"hodiny":"hodín"):r+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?r+(i(e)?"dni":"dní"):r+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?r+(i(e)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?r+(i(e)?"roky":"rokov"):r+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,o;return"m"===n?t?"минута":"минуту":e+" "+(i=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),i%10==1&&i%100!=11?o[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?o[1]:o[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function o(e,t,n){var o=e+" ";switch(n){case"ss":return o+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return o+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return o+(i(e)?"godziny":"godzin");case"MM":return o+(i(e)?"miesiące":"miesięcy");case"yy":return o+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?""===i?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function i(e,t,n,i){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var o=t.words[i];return 1===i.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,o){return e+" "+n(t[o],e,i)}function o(e,i,o){return n(t[o],e,i)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:i,m:o,mm:i,h:o,hh:i,d:o,dd:i,M:o,MM:i,y:o,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,i){return t?o(n)[0]:i?o(n)[1]:o(n)[2]}function i(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split("_")}function r(e,t,r,a){var s=e+" ";return 1===e?s+n(0,t,r[0],a):t?s+(i(e)?o(r)[1]:o(r)[0]):a?s+o(r)[1]:s+(i(e)?o(r)[1]:o(r)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,i){return t?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"},ss:r,m:n,mm:r,h:n,hh:r,d:n,dd:r,M:n,MM:r,y:n,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()<e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,o){var r=e+" ";switch(i){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?r+(n||o?"sekúndur":"sekúndum"):r+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?r+(n||o?"mínútur":"mínútum"):n?r+"mínúta":r+"mínútu";case"hh":return t(e)?r+(n||o?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?r+"dagar":r+(o?"daga":"dögum"):n?r+"dagur":r+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?r+"mánuðir":r+(o?"mánuði":"mánuðum"):n?r+"mánuður":r+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?r+(n||o?"ár":"árum"):r+(n||o?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,i){var o=e;switch(n){case"s":return i||t?"néhány másodperc":"néhány másodperce";case"ss":return o+(i||t)?" másodperc":" másodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return o+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" óra":" órája");case"hh":return o+(i||t?" óra":" órája");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return o+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" hónap":" hónapja");case"MM":return o+(i||t?" hónap":" hónapja");case"y":return"egy"+(i||t?" év":" éve");case"yy":return o+(i||t?" év":" éve")}return""}function i(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" horam"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?o[n][0]:o[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,o,r){var a="";switch(o){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":a=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":a=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":a=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":a=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":a=r?"vuoden":"vuotta"}return function(e,i){return e<10?r?n[e]:t[e]:e}(e)+" "+a}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:i?o[n][0]:o[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(1))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,i=this._calendarEl[e],o=t&&t.hours();return((n=i)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function i(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,o){var r=e+" ";switch(n){case"s":return t||o?"pár sekund":"pár sekundami";case"ss":return t||o?r+(i(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":o?"minutu":"minutou";case"mm":return t||o?r+(i(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?r+(i(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||o?"den":"dnem";case"dd":return t||o?r+(i(e)?"dny":"dní"):r+"dny";case"M":return t||o?"měsíc":"měsícem";case"MM":return t||o?r+(i(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||o?"rok":"rokem";case"yy":return t||o?r+(i(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsParse:function(e,t){var n,i=[];for(n=0;n<12;n++)i[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return i}(t,n),shortMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(n),longMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(t),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,o;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(i=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),i%10==1&&i%100!=11?o[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?o[1]:o[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,o,r,a){var s=n(t),l=i[e][n(t)];return 2===s&&(l=l[o?0:1]),l.replace(/%d/i,t)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,n,r,a){var s=i(t),l=o[e][i(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(1))},function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(1))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var i=n(5),o=n(4);i._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,o,r,a,s,l=this.descriptors(e),d=l.length;for(i=0;i<d;++i)if("function"==typeof(s=(r=(o=l[i]).plugin)[t])&&((a=[e].concat(n||[])).push(o.options),!1===s.apply(r,a)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],r=[],a=e&&e.config||{},s=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach(function(e){if(-1===n.indexOf(e)){var t=e.id,a=s[t];!1!==a&&(!0===a&&(a=o.clone(i.global.plugins[t])),n.push(e),r.push({plugin:e,options:a||{}}))}}),t.descriptors=r,t.id=this._cacheId,r},_invalidate:function(e){delete e.$plugins}}},function(e,t,n){"use strict";var i=n(4),o=n(221),r=n(220),a=r._enabled?r:o;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a)},function(e,t,n){"use strict";var i=n(4);function o(e,t){return e.native?{x:e.x,y:e.y}:i.getRelativePosition(e,t)}function r(e,t){var n,i,o,r,a;for(i=0,r=e.data.datasets.length;i<r;++i)if(e.isDatasetVisible(i))for(o=0,a=(n=e.getDatasetMeta(i)).data.length;o<a;++o){var s=n.data[o];s._view.skip||t(s)}}function a(e,t){var n=[];return r(e,function(e){e.inRange(t.x,t.y)&&n.push(e)}),n}function s(e,t,n,i){var o=Number.POSITIVE_INFINITY,a=[];return r(e,function(e){if(!n||e.inRange(t.x,t.y)){var r=e.getCenterPoint(),s=i(t,r);s<o?(a=[e],o=s):s===o&&a.push(e)}}),a}function l(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){var o=t?Math.abs(e.x-i.x):0,r=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function d(e,t,n){var i=o(t,e);n.axis=n.axis||"x";var r=l(n.axis),d=n.intersect?a(e,i):s(e,i,!1,r),c=[];return d.length?(e.data.datasets.forEach(function(t,n){if(e.isDatasetVisible(n)){var i=e.getDatasetMeta(n).data[d[0]._index];i&&!i._view.skip&&c.push(i)}}),c):[]}e.exports={modes:{single:function(e,t){var n=o(t,e),i=[];return r(e,function(e){if(e.inRange(n.x,n.y))return i.push(e),i}),i.slice(0,1)},label:d,index:d,dataset:function(e,t,n){var i=o(t,e);n.axis=n.axis||"xy";var r=l(n.axis),d=n.intersect?a(e,i):s(e,i,!1,r);return d.length>0&&(d=e.getDatasetMeta(d[0]._datasetIndex).data),d},"x-axis":function(e,t){return d(e,t,{intersect:!1})},point:function(e,t){return a(e,o(t,e))},nearest:function(e,t,n){var i=o(t,e);n.axis=n.axis||"xy";var r=l(n.axis),a=s(e,i,n.intersect,r);return a.length>1&&a.sort(function(e,t){var n=e.getArea()-t.getArea();return 0===n&&(n=e._datasetIndex-t._datasetIndex),n}),a.slice(0,1)},x:function(e,t,n){var i=o(t,e),a=[],s=!1;return r(e,function(e){e.inXRange(i.x)&&a.push(e),e.inRange(i.x,i.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a},y:function(e,t,n){var i=o(t,e),a=[],s=!1;return r(e,function(e){e.inYRange(i.y)&&a.push(e),e.inRange(i.x,i.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a}}}},function(e,t,n){var i=n(229),o=n(227),r=function(e){return e instanceof r?e:this instanceof r?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=o.getRgba(e))?this.setValues("rgb",t):(t=o.getHsla(e))?this.setValues("hsl",t):(t=o.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new r(e);var t};r.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return o.hexString(this.values.rgb)},rgbString:function(){return o.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return o.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return o.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return o.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return o.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return o.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return o.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,i=void 0===t?.5:t,o=2*i-1,r=this.alpha()-n.alpha(),a=((o*r==-1?o:(o+r)/(1+o*r))+1)/2,s=1-a;return this.rgb(a*this.red()+s*n.red(),a*this.green()+s*n.green(),a*this.blue()+s*n.blue()).alpha(this.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new r,i=this.values,o=n.values;for(var a in i)i.hasOwnProperty(a)&&(e=i[a],"[object Array]"===(t={}.toString.call(e))?o[a]=e.slice(0):"[object Number]"===t&&(o[a]=e));return n}},r.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},r.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},r.prototype.getValues=function(e){for(var t=this.values,n={},i=0;i<e.length;i++)n[e.charAt(i)]=t[e][i];return 1!==t.alpha&&(n.a=t.alpha),n},r.prototype.setValues=function(e,t){var n,o,r=this.values,a=this.spaces,s=this.maxes,l=1;if(this.valid=!0,"alpha"===e)l=t;else if(t.length)r[e]=t.slice(0,e.length),l=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)r[e][n]=t[e.charAt(n)];l=t.a}else if(void 0!==t[a[e][0]]){var d=a[e];for(n=0;n<e.length;n++)r[e][n]=t[d[n]];l=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===l?r.alpha:l)),"alpha"===e)return!1;for(n=0;n<e.length;n++)o=Math.max(0,Math.min(s[e][n],r[e][n])),r[e][n]=Math.round(o);for(var c in a)c!==e&&(r[c]=i[e][c](r[e]));return!0},r.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},r.prototype.setChannel=function(e,t,n){var i=this.values[e];return void 0===n?i[t]:n===i[t]?this:(i[t]=n,this.setValues(e,i),this)},"undefined"!=typeof window&&(window.Color=r),e.exports=r},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,n){var i;!function(){"use strict";var o=function(){var e,t,n=[],i=-1,o=0,r=!1;return t=function(e,t){return e&&"function"==typeof e[t]?(r=!0,e[t](),r=!1,this):this},{add:function(t){return r?this:(n.splice(i+1,n.length-i),n.push(t),o&&n.length>o&&(0,s=-(o+1),(a=n).splice(0,!s||1+s-0+(!(s<0^!0)&&(s<0||-1)*a.length)),a.length),i=n.length-1,e&&e(),this);var a,s},setCallback:function(t){e=t},undo:function(){var o=n[i];return o?(t(o,"undo"),i-=1,e&&e(),this):this},redo:function(){var o=n[i+1];return o?(t(o,"redo"),i+=1,e&&e(),this):this},clear:function(){var t=n.length;n=[],i=-1,e&&t>0&&e()},hasUndo:function(){return-1!==i},hasRedo:function(){return i<n.length-1},getCommands:function(){return n},getIndex:function(){return i},setLimit:function(e){o=e}}};void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}()},function(e,t,n){!function(e){"use strict";var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function i(t,i,o){var r=function(t,n){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",i.style.left=t.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip",i.appendChild(n.cloneNode(!0)),document.body.appendChild(i),e.on(document,"mousemove",o),o(t),null!=i.style.opacity&&(i.style.opacity=1),i}(t,i);function a(){var t;e.off(o,"mouseout",a),r&&((t=r).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout(function(){n(t)},600)),r=null)}var s=setInterval(function(){if(r)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){a();break}}if(!r)return clearInterval(s)},400);e.on(o,"mouseout",a)}function o(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var o=n.getBoundingClientRect(),r=(o.left+o.right)/2,a=(o.top+o.bottom)/2,l=e.findMarksAt(e.coordsChar({left:r,top:a},"client")),d=[],c=0;c<l.length;++c){var u=l[c].__annotation;u&&d.push(u)}d.length&&function(e,t){for(var n=t.target||t.srcElement,o=document.createDocumentFragment(),r=0;r<e.length;r++){var a=e[r];o.appendChild(s(a))}i(t,o,n)}(d,t)}}(e,t)},this.waitingFor=0}function r(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t);for(var i=0;i<n.marked.length;++i)n.marked[i].clear();n.marked.length=0}function a(t,n,o,r){var a=document.createElement("div"),s=a;return a.className="CodeMirror-lint-marker-"+n,o&&((s=a.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker-multiple"),0!=r&&e.on(s,"mouseover",function(e){i(e,t,s)}),a}function s(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function l(t){var n=t.state.lint.options,i=n.options||n,o=n.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(o)if(n.async||o.async)!function(t,n,i){var o=t.state.lint,r=++o.waitingFor;function a(){r=-1,t.off("change",a)}t.on("change",a),n(t.getValue(),function(n,i){t.off("change",a),o.waitingFor==r&&(i&&n instanceof e&&(n=i),t.operation(function(){d(t,n)}))},i,t)}(t,o,i);else{var r=o(t.getValue(),i,t);if(!r)return;r.then?r.then(function(e){t.operation(function(){d(t,e)})}):t.operation(function(){d(t,r)})}}function d(e,n){r(e);for(var i=e.state.lint,o=i.options,l=function(e){for(var t=[],n=0;n<e.length;++n){var i=e[n],o=i.from.line;(t[o]||(t[o]=[])).push(i)}return t}(n),d=0;d<l.length;++d){var c=l[d];if(c){for(var u=null,h=i.hasGutter&&document.createDocumentFragment(),f=0;f<c.length;++f){var p=c[f],m=p.severity;m||(m="error"),u="error"==(g=u)?g:b,o.formatAnnotation&&(p=o.formatAnnotation(p)),i.hasGutter&&h.appendChild(s(p)),p.to&&i.marked.push(e.markText(p.from,p.to,{className:"CodeMirror-lint-mark-"+m,__annotation:p}))}i.hasGutter&&e.setGutterMarker(d,t,a(h,u,c.length>1,i.options.tooltips))}}var g;o.onUpdateLinting&&o.onUpdateLinting(n,l,e)}function c(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){l(e)},t.options.delay||500))}e.defineOption("lint",!1,function(n,i,a){if(a&&a!=e.Init&&(r(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",c),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),i){for(var s=n.getOption("gutters"),d=!1,u=0;u<s.length;++u)s[u]==t&&(d=!0);var h=n.state.lint=new o(n,(f=i)instanceof Function?{getAnnotations:f}:(f&&!0!==f||(f={}),f),d);!1!==h.options.lintOnChange&&n.on("change",c),0!=h.options.tooltips&&"gutter"!=h.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",h.onMouseOver),l(n)}var f}),e.defineExtension("performLint",function(){this.state.lint&&l(this)})}(n(20))},function(e,t,n){!function(e){"use strict";var t="CodeMirror-hint",n="CodeMirror-hint-active";function i(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var i={hint:t};if(n)for(var o in n)i[o]=n[o];return e.showHint(i)},e.defineExtension("showHint",function(t){t=function(e,t,n){var i=e.options.hintOptions,o={};for(var r in c)o[r]=c[r];if(i)for(var r in i)void 0!==i[r]&&(o[r]=i[r]);if(n)for(var r in n)void 0!==n[r]&&(o[r]=n[r]);return o.hint.resolve&&(o.hint=o.hint.resolve(e,t)),o}(this,this.getCursor("start"),t);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var o=0;o<n.length;o++)if(n[o].head.line!=n[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var r=this.state.completionActive=new i(this,t);r.options.hint&&(e.signal(this,"startCompletion",this),r.update(!0))}});var o=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},r=window.cancelAnimationFrame||clearTimeout;function a(e){return"string"==typeof e?e:e.text}function s(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function l(i,o){this.completion=i,this.data=o,this.picked=!1;var r=this,l=i.cm,d=this.hints=document.createElement("ul");d.className="CodeMirror-hints",this.selectedHint=o.selectedHint||0;for(var c=o.list,u=0;u<c.length;++u){var h=d.appendChild(document.createElement("li")),f=c[u],p=t+(u!=this.selectedHint?"":" "+n);null!=f.className&&(p=f.className+" "+p),h.className=p,f.render?f.render(h,o,f):h.appendChild(document.createTextNode(f.displayText||a(f))),h.hintId=u}var m=l.cursorCoords(i.options.alignWithWord?o.from:null),g=m.left,y=m.bottom,v=!0;d.style.left=g+"px",d.style.top=y+"px";var A=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),b=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(i.options.container||document.body).appendChild(d);var w=d.getBoundingClientRect(),_=w.bottom-b,M=d.scrollHeight>d.clientHeight+1,x=l.getScrollInfo();if(_>0){var k=w.bottom-w.top;if(m.top-(m.bottom-w.top)-k>0)d.style.top=(y=m.top-k)+"px",v=!1;else if(k>b){d.style.height=b-5+"px",d.style.top=(y=m.bottom-w.top)+"px";var S=l.getCursor();o.from.ch!=S.ch&&(m=l.cursorCoords(S),d.style.left=(g=m.left)+"px",w=d.getBoundingClientRect())}}var C,E=w.right-A;if(E>0&&(w.right-w.left>A&&(d.style.width=A-5+"px",E-=w.right-w.left-A),d.style.left=(g=m.left-E)+"px"),M)for(var L=d.firstChild;L;L=L.nextSibling)L.style.paddingRight=l.display.nativeBarWidth+"px";return l.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close},i=e.options.customKeys,o=i?{}:n;function r(e,i){var r;r="string"!=typeof i?function(e){return i(e,t)}:n.hasOwnProperty(i)?n[i]:i,o[e]=r}if(i)for(var a in i)i.hasOwnProperty(a)&&r(a,i[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&r(a,s[a]);return o}(i,{moveFocus:function(e,t){r.changeActive(r.selectedHint+e,t)},setFocus:function(e){r.changeActive(e)},menuSize:function(){return r.screenAmount()},length:c.length,close:function(){i.close()},pick:function(){r.pick()},data:o})),i.options.closeOnUnfocus&&(l.on("blur",this.onBlur=function(){C=setTimeout(function(){i.close()},100)}),l.on("focus",this.onFocus=function(){clearTimeout(C)})),l.on("scroll",this.onScroll=function(){var e=l.getScrollInfo(),t=l.getWrapperElement().getBoundingClientRect(),n=y+x.top-e.top,o=n-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(v||(o+=d.offsetHeight),o<=t.top||o>=t.bottom)return i.close();d.style.top=n+"px",d.style.left=g+x.left-e.left+"px"}),e.on(d,"dblclick",function(e){var t=s(d,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),r.pick())}),e.on(d,"click",function(e){var t=s(d,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),i.options.completeOnSingleClick&&r.pick())}),e.on(d,"mousedown",function(){setTimeout(function(){l.focus()},20)}),e.signal(o,"select",c[this.selectedHint],d.childNodes[this.selectedHint]),!0}function d(e,t,n,i){if(e.async)e(t,i,n);else{var o=e(t,n);o&&o.then?o.then(i):i(o)}}i.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var i=t.list[n];i.hint?i.hint(this.cm,t,i):this.cm.replaceRange(a(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line);if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||e.ch<this.startPos.ch||this.cm.somethingSelected()||e.ch&&this.options.closeCharacters.test(t.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=o(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;d(this.options.hint,this.cm,this.options,function(i){t.tick==n&&t.finishUpdate(i,e)})}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var i=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&1==t.list.length?this.pick(t,0):(this.widget=new l(this,t),e.signal(t,"shown")))}},l.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,i){if(t>=this.data.list.length?t=i?this.data.list.length-1:0:t<0&&(t=i?0:this.data.list.length-1),this.selectedHint!=t){var o=this.hints.childNodes[this.selectedHint];o.className=o.className.replace(" "+n,""),(o=this.hints.childNodes[this.selectedHint=t]).className+=" "+n,o.offsetTop<this.hints.scrollTop?this.hints.scrollTop=o.offsetTop-3:o.offsetTop+o.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=o.offsetTop+o.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],o)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var i,o=t.getHelpers(n,"hint");if(o.length){var r=function(e,t,n){var i=function(e,t){if(!e.somethingSelected())return t;for(var n=[],i=0;i<t.length;i++)t[i].supportsSelection&&n.push(t[i]);return n}(e,o);!function o(r){if(r==i.length)return t(null);d(i[r],e,n,function(e){e&&e.list.length>0?t(e):o(r+1)})}(0)};return r.async=!0,r.supportsSelection=!0,r}return(i=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:i})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",function(t,n){var i,o=t.getCursor(),r=t.getTokenAt(o),a=e.Pos(o.line,r.start),s=o;r.start<o.ch&&/\w/.test(r.string.charAt(o.ch-r.start-1))?i=r.string.substr(0,o.ch-r.start):(i="",a=o);for(var l=[],d=0;d<n.words.length;d++){var c=n.words[d];c.slice(0,i.length)==i&&l.push(c)}if(l.length)return{list:l,from:a,to:s}}),e.commands.autocomplete=e.showHint;var c={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}(n(20))},function(e,t,n){(function(t){var i=n(413),o=n(401),r=n(400),a=n(180),s=n(260);function l(e){var n;"object"!=typeof e||t.isBuffer(e)||(n=e.passphrase,e=e.key),"string"==typeof e&&(e=new t(e));var l,d,c=r(e,n),u=c.tag,h=c.data;switch(u){case"CERTIFICATE":d=i.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(d||(d=i.PublicKey.decode(h,"der")),l=d.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(d.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return d.subjectPrivateKey=d.subjectPublicKey,{type:"ec",data:d};case"1.2.840.10040.4.1":return d.algorithm.params.pub_key=i.DSAparam.decode(d.subjectPublicKey.data,"der"),{type:"dsa",data:d.algorithm.params};default:throw new Error("unknown key id "+l)}throw new Error("unknown key type "+u);case"ENCRYPTED PRIVATE KEY":h=function(e,n){var i=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),l=o[e.algorithm.decrypt.cipher.algo.join(".")],d=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,u=parseInt(l.split("-")[1],10)/8,h=s.pbkdf2Sync(n,i,r,u),f=a.createDecipheriv(l,h,d),p=[];return p.push(f.update(c)),p.push(f.final()),t.concat(p)}(h=i.EncryptedPrivateKey.decode(h,"der"),n);case"PRIVATE KEY":switch(l=(d=i.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(d.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:d.algorithm.curve,privateKey:i.ECPrivateKey.decode(d.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return d.algorithm.params.priv_key=i.DSAparam.decode(d.subjectPrivateKey,"der"),{type:"dsa",params:d.algorithm.params};default:throw new Error("unknown key id "+l)}throw new Error("unknown key type "+u);case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=i.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+u)}}e.exports=l,l.signature=i.signature}).call(this,n(9).Buffer)},function(e,t,n){"use strict";var i=t;i.base=n(433),i.short=n(432),i.mont=n(431),i.edwards=n(430)},function(e,t,n){var i=n(8).Buffer,o=n(188);e.exports=function(e,t,n,r){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=i.alloc(a),l=i.alloc(r||0),d=i.alloc(0);a>0||r>0;){var c=new o;c.update(d),c.update(e),t&&c.update(t),d=c.digest();var u=0;if(a>0){var h=s.length-a;u=Math.min(a,d.length),d.copy(s,h,0,u),a-=u}if(u<d.length&&r>0){var f=l.length-r,p=Math.min(r,d.length-u);d.copy(l,f,u,u+p),r-=p}}return d.fill(0),{key:s,iv:l}}},function(e,t,n){var i=n(8).Buffer;function o(e){i.isBuffer(e)||(e=i.from(e));for(var t=e.length/4|0,n=new Array(t),o=0;o<t;o++)n[o]=e.readUInt32BE(4*o);return n}function r(e){for(;0<e.length;e++)e[0]=0}function a(e,t,n,i,o){for(var r,a,s,l,d=n[0],c=n[1],u=n[2],h=n[3],f=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],y=4,v=1;v<o;v++)r=d[f>>>24]^c[p>>>16&255]^u[m>>>8&255]^h[255&g]^t[y++],a=d[p>>>24]^c[m>>>16&255]^u[g>>>8&255]^h[255&f]^t[y++],s=d[m>>>24]^c[g>>>16&255]^u[f>>>8&255]^h[255&p]^t[y++],l=d[g>>>24]^c[f>>>16&255]^u[p>>>8&255]^h[255&m]^t[y++],f=r,p=a,m=s,g=l;return r=(i[f>>>24]<<24|i[p>>>16&255]<<16|i[m>>>8&255]<<8|i[255&g])^t[y++],a=(i[p>>>24]<<24|i[m>>>16&255]<<16|i[g>>>8&255]<<8|i[255&f])^t[y++],s=(i[m>>>24]<<24|i[g>>>16&255]<<16|i[f>>>8&255]<<8|i[255&p])^t[y++],l=(i[g>>>24]<<24|i[f>>>16&255]<<16|i[p>>>8&255]<<8|i[255&m])^t[y++],[r>>>=0,a>>>=0,s>>>=0,l>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],i=[],o=[[],[],[],[]],r=[[],[],[],[]],a=0,s=0,l=0;l<256;++l){var d=s^s<<1^s<<2^s<<3^s<<4;d=d>>>8^255&d^99,n[a]=d,i[d]=a;var c=e[a],u=e[c],h=e[u],f=257*e[d]^16843008*d;o[0][a]=f<<24|f>>>8,o[1][a]=f<<16|f>>>16,o[2][a]=f<<8|f>>>24,o[3][a]=f,f=16843009*h^65537*u^257*c^16843008*a,r[0][d]=f<<24|f>>>8,r[1][d]=f<<16|f>>>16,r[2][d]=f<<8|f>>>24,r[3][d]=f,0===a?a=s=1:(a=c^e[e[e[h^c]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:i,SUB_MIX:o,INV_SUB_MIX:r}}();function d(e){this._key=o(e),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,i=4*(n+1),o=[],r=0;r<t;r++)o[r]=e[r];for(r=t;r<i;r++){var a=o[r-1];r%t==0?(a=a<<8|a>>>24,a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a],a^=s[r/t|0]<<24):t>6&&r%t==4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),o[r]=o[r-t]^a}for(var d=[],c=0;c<i;c++){var u=i-c,h=o[u-(c%4?0:4)];d[c]=c<4||u<=4?h:l.INV_SUB_MIX[0][l.SBOX[h>>>24]]^l.INV_SUB_MIX[1][l.SBOX[h>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[h>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&h]]}this._nRounds=n,this._keySchedule=o,this._invKeySchedule=d},d.prototype.encryptBlockRaw=function(e){return a(e=o(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},d.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=i.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},d.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var n=a(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),r=i.allocUnsafe(16);return r.writeUInt32BE(n[0],0),r.writeUInt32BE(n[3],4),r.writeUInt32BE(n[2],8),r.writeUInt32BE(n[1],12),r},d.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},e.exports.AES=d},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,i,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var r,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,i)});case 4:return t.nextTick(function(){e.call(null,n,i,o)});default:for(r=new Array(s-1),a=0;a<r.length;)r[a++]=arguments[a];return t.nextTick(function(){e.apply(null,r)})}}}:e.exports=t}).call(this,n(23))},function(e,t,n){e.exports=o;var i=n(187).EventEmitter;function o(){i.call(this)}n(6)(o,i),o.Readable=n(186),o.Writable=n(471),o.Duplex=n(470),o.Transform=n(469),o.PassThrough=n(468),o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function r(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",r),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function d(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",o),e.removeListener("drain",r),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",d),e.removeListener("error",d),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",d),e.on("error",d),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},,,function(e,t,n){var i=t;i.utils=n(21),i.common=n(32),i.sha=n(427),i.ripemd=n(423),i.hmac=n(422),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(e,t,n){(function(t){var i=n(12),o=n(28);function r(e,n){var o=function(e){var t=a(e);return{blinder:t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),r=n.modulus.byteLength(),s=(i.mont(n.modulus),new i(e).mul(o.blinder).umod(n.modulus)),l=s.toRed(i.mont(n.prime1)),d=s.toRed(i.mont(n.prime2)),c=n.coefficient,u=n.prime1,h=n.prime2,f=l.redPow(n.exponent1),p=d.redPow(n.exponent2);f=f.fromRed(),p=p.fromRed();var m=f.isub(p).imul(c).umod(u);return m.imul(h),p.iadd(m),new t(p.imul(o.unblinder).umod(n.modulus).toArray(!1,r))}function a(e){for(var t=e.modulus.byteLength(),n=new i(o(t));n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new i(o(t));return n}e.exports=r,r.getr=a}).call(this,n(9).Buffer)},function(e,t,n){var i={ECB:n(451),CBC:n(450),CFB:n(449),CFB8:n(448),CFB1:n(447),OFB:n(446),CTR:n(256),GCM:n(256)},o=n(254);for(var r in o)o[r].module=i[o[r].mode];e.exports=o},function(e,t,n){var i=n(452),o=n(444),r=n(254);t.createCipher=t.Cipher=i.createCipher,t.createCipheriv=t.Cipheriv=i.createCipheriv,t.createDecipher=t.Decipher=o.createDecipher,t.createDecipheriv=t.Decipheriv=o.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(r)}},function(e,t,n){"use strict";t.utils=n(457),t.Cipher=n(456),t.DES=n(455),t.CBC=n(454),t.EDE=n(453)},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(466),t.sha1=n(465),t.sha224=n(464),t.sha256=n(265),t.sha384=n(463),t.sha512=n(264)},function(e,t,n){"use strict";(function(t){var i=n(6),o=n(467);function r(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function a(e,t){return e<<t|e>>>32-t}function s(e,t,n,i,o,r,s,l){return a(e+(t^n^i)+r+s|0,l)+o|0}function l(e,t,n,i,o,r,s,l){return a(e+(t&n|~t&i)+r+s|0,l)+o|0}function d(e,t,n,i,o,r,s,l){return a(e+((t|~n)^i)+r+s|0,l)+o|0}function c(e,t,n,i,o,r,s,l){return a(e+(t&i|n&~i)+r+s|0,l)+o|0}function u(e,t,n,i,o,r,s,l){return a(e+(t^(n|~i))+r+s|0,l)+o|0}i(r,o),r.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,i=this._b,o=this._c,r=this._d,h=this._e;h=s(h,n=s(n,i,o,r,h,e[0],0,11),i,o=a(o,10),r,e[1],0,14),i=s(i=a(i,10),o=s(o,r=s(r,h,n,i,o,e[2],0,15),h,n=a(n,10),i,e[3],0,12),r,h=a(h,10),n,e[4],0,5),r=s(r=a(r,10),h=s(h,n=s(n,i,o,r,h,e[5],0,8),i,o=a(o,10),r,e[6],0,7),n,i=a(i,10),o,e[7],0,9),n=s(n=a(n,10),i=s(i,o=s(o,r,h,n,i,e[8],0,11),r,h=a(h,10),n,e[9],0,13),o,r=a(r,10),h,e[10],0,14),o=s(o=a(o,10),r=s(r,h=s(h,n,i,o,r,e[11],0,15),n,i=a(i,10),o,e[12],0,6),h,n=a(n,10),i,e[13],0,7),h=l(h=a(h,10),n=s(n,i=s(i,o,r,h,n,e[14],0,9),o,r=a(r,10),h,e[15],0,8),i,o=a(o,10),r,e[7],1518500249,7),i=l(i=a(i,10),o=l(o,r=l(r,h,n,i,o,e[4],1518500249,6),h,n=a(n,10),i,e[13],1518500249,8),r,h=a(h,10),n,e[1],1518500249,13),r=l(r=a(r,10),h=l(h,n=l(n,i,o,r,h,e[10],1518500249,11),i,o=a(o,10),r,e[6],1518500249,9),n,i=a(i,10),o,e[15],1518500249,7),n=l(n=a(n,10),i=l(i,o=l(o,r,h,n,i,e[3],1518500249,15),r,h=a(h,10),n,e[12],1518500249,7),o,r=a(r,10),h,e[0],1518500249,12),o=l(o=a(o,10),r=l(r,h=l(h,n,i,o,r,e[9],1518500249,15),n,i=a(i,10),o,e[5],1518500249,9),h,n=a(n,10),i,e[2],1518500249,11),h=l(h=a(h,10),n=l(n,i=l(i,o,r,h,n,e[14],1518500249,7),o,r=a(r,10),h,e[11],1518500249,13),i,o=a(o,10),r,e[8],1518500249,12),i=d(i=a(i,10),o=d(o,r=d(r,h,n,i,o,e[3],1859775393,11),h,n=a(n,10),i,e[10],1859775393,13),r,h=a(h,10),n,e[14],1859775393,6),r=d(r=a(r,10),h=d(h,n=d(n,i,o,r,h,e[4],1859775393,7),i,o=a(o,10),r,e[9],1859775393,14),n,i=a(i,10),o,e[15],1859775393,9),n=d(n=a(n,10),i=d(i,o=d(o,r,h,n,i,e[8],1859775393,13),r,h=a(h,10),n,e[1],1859775393,15),o,r=a(r,10),h,e[2],1859775393,14),o=d(o=a(o,10),r=d(r,h=d(h,n,i,o,r,e[7],1859775393,8),n,i=a(i,10),o,e[0],1859775393,13),h,n=a(n,10),i,e[6],1859775393,6),h=d(h=a(h,10),n=d(n,i=d(i,o,r,h,n,e[13],1859775393,5),o,r=a(r,10),h,e[11],1859775393,12),i,o=a(o,10),r,e[5],1859775393,7),i=c(i=a(i,10),o=c(o,r=d(r,h,n,i,o,e[12],1859775393,5),h,n=a(n,10),i,e[1],2400959708,11),r,h=a(h,10),n,e[9],2400959708,12),r=c(r=a(r,10),h=c(h,n=c(n,i,o,r,h,e[11],2400959708,14),i,o=a(o,10),r,e[10],2400959708,15),n,i=a(i,10),o,e[0],2400959708,14),n=c(n=a(n,10),i=c(i,o=c(o,r,h,n,i,e[8],2400959708,15),r,h=a(h,10),n,e[12],2400959708,9),o,r=a(r,10),h,e[4],2400959708,8),o=c(o=a(o,10),r=c(r,h=c(h,n,i,o,r,e[13],2400959708,9),n,i=a(i,10),o,e[3],2400959708,14),h,n=a(n,10),i,e[7],2400959708,5),h=c(h=a(h,10),n=c(n,i=c(i,o,r,h,n,e[15],2400959708,6),o,r=a(r,10),h,e[14],2400959708,8),i,o=a(o,10),r,e[5],2400959708,6),i=u(i=a(i,10),o=c(o,r=c(r,h,n,i,o,e[6],2400959708,5),h,n=a(n,10),i,e[2],2400959708,12),r,h=a(h,10),n,e[4],2840853838,9),r=u(r=a(r,10),h=u(h,n=u(n,i,o,r,h,e[0],2840853838,15),i,o=a(o,10),r,e[5],2840853838,5),n,i=a(i,10),o,e[9],2840853838,11),n=u(n=a(n,10),i=u(i,o=u(o,r,h,n,i,e[7],2840853838,6),r,h=a(h,10),n,e[12],2840853838,8),o,r=a(r,10),h,e[2],2840853838,13),o=u(o=a(o,10),r=u(r,h=u(h,n,i,o,r,e[10],2840853838,12),n,i=a(i,10),o,e[14],2840853838,5),h,n=a(n,10),i,e[1],2840853838,12),h=u(h=a(h,10),n=u(n,i=u(i,o,r,h,n,e[3],2840853838,13),o,r=a(r,10),h,e[8],2840853838,14),i,o=a(o,10),r,e[11],2840853838,11),i=u(i=a(i,10),o=u(o,r=u(r,h,n,i,o,e[6],2840853838,8),h,n=a(n,10),i,e[15],2840853838,5),r,h=a(h,10),n,e[13],2840853838,6),r=a(r,10);var f=this._a,p=this._b,m=this._c,g=this._d,y=this._e;y=u(y,f=u(f,p,m,g,y,e[5],1352829926,8),p,m=a(m,10),g,e[14],1352829926,9),p=u(p=a(p,10),m=u(m,g=u(g,y,f,p,m,e[7],1352829926,9),y,f=a(f,10),p,e[0],1352829926,11),g,y=a(y,10),f,e[9],1352829926,13),g=u(g=a(g,10),y=u(y,f=u(f,p,m,g,y,e[2],1352829926,15),p,m=a(m,10),g,e[11],1352829926,15),f,p=a(p,10),m,e[4],1352829926,5),f=u(f=a(f,10),p=u(p,m=u(m,g,y,f,p,e[13],1352829926,7),g,y=a(y,10),f,e[6],1352829926,7),m,g=a(g,10),y,e[15],1352829926,8),m=u(m=a(m,10),g=u(g,y=u(y,f,p,m,g,e[8],1352829926,11),f,p=a(p,10),m,e[1],1352829926,14),y,f=a(f,10),p,e[10],1352829926,14),y=c(y=a(y,10),f=u(f,p=u(p,m,g,y,f,e[3],1352829926,12),m,g=a(g,10),y,e[12],1352829926,6),p,m=a(m,10),g,e[6],1548603684,9),p=c(p=a(p,10),m=c(m,g=c(g,y,f,p,m,e[11],1548603684,13),y,f=a(f,10),p,e[3],1548603684,15),g,y=a(y,10),f,e[7],1548603684,7),g=c(g=a(g,10),y=c(y,f=c(f,p,m,g,y,e[0],1548603684,12),p,m=a(m,10),g,e[13],1548603684,8),f,p=a(p,10),m,e[5],1548603684,9),f=c(f=a(f,10),p=c(p,m=c(m,g,y,f,p,e[10],1548603684,11),g,y=a(y,10),f,e[14],1548603684,7),m,g=a(g,10),y,e[15],1548603684,7),m=c(m=a(m,10),g=c(g,y=c(y,f,p,m,g,e[8],1548603684,12),f,p=a(p,10),m,e[12],1548603684,7),y,f=a(f,10),p,e[4],1548603684,6),y=c(y=a(y,10),f=c(f,p=c(p,m,g,y,f,e[9],1548603684,15),m,g=a(g,10),y,e[1],1548603684,13),p,m=a(m,10),g,e[2],1548603684,11),p=d(p=a(p,10),m=d(m,g=d(g,y,f,p,m,e[15],1836072691,9),y,f=a(f,10),p,e[5],1836072691,7),g,y=a(y,10),f,e[1],1836072691,15),g=d(g=a(g,10),y=d(y,f=d(f,p,m,g,y,e[3],1836072691,11),p,m=a(m,10),g,e[7],1836072691,8),f,p=a(p,10),m,e[14],1836072691,6),f=d(f=a(f,10),p=d(p,m=d(m,g,y,f,p,e[6],1836072691,6),g,y=a(y,10),f,e[9],1836072691,14),m,g=a(g,10),y,e[11],1836072691,12),m=d(m=a(m,10),g=d(g,y=d(y,f,p,m,g,e[8],1836072691,13),f,p=a(p,10),m,e[12],1836072691,5),y,f=a(f,10),p,e[2],1836072691,14),y=d(y=a(y,10),f=d(f,p=d(p,m,g,y,f,e[10],1836072691,13),m,g=a(g,10),y,e[0],1836072691,13),p,m=a(m,10),g,e[4],1836072691,7),p=l(p=a(p,10),m=l(m,g=d(g,y,f,p,m,e[13],1836072691,5),y,f=a(f,10),p,e[8],2053994217,15),g,y=a(y,10),f,e[6],2053994217,5),g=l(g=a(g,10),y=l(y,f=l(f,p,m,g,y,e[4],2053994217,8),p,m=a(m,10),g,e[1],2053994217,11),f,p=a(p,10),m,e[3],2053994217,14),f=l(f=a(f,10),p=l(p,m=l(m,g,y,f,p,e[11],2053994217,14),g,y=a(y,10),f,e[15],2053994217,6),m,g=a(g,10),y,e[0],2053994217,14),m=l(m=a(m,10),g=l(g,y=l(y,f,p,m,g,e[5],2053994217,6),f,p=a(p,10),m,e[12],2053994217,9),y,f=a(f,10),p,e[2],2053994217,12),y=l(y=a(y,10),f=l(f,p=l(p,m,g,y,f,e[13],2053994217,9),m,g=a(g,10),y,e[9],2053994217,12),p,m=a(m,10),g,e[7],2053994217,5),p=s(p=a(p,10),m=l(m,g=l(g,y,f,p,m,e[10],2053994217,15),y,f=a(f,10),p,e[14],2053994217,8),g,y=a(y,10),f,e[12],0,8),g=s(g=a(g,10),y=s(y,f=s(f,p,m,g,y,e[15],0,5),p,m=a(m,10),g,e[10],0,12),f,p=a(p,10),m,e[4],0,9),f=s(f=a(f,10),p=s(p,m=s(m,g,y,f,p,e[1],0,12),g,y=a(y,10),f,e[5],0,5),m,g=a(g,10),y,e[8],0,14),m=s(m=a(m,10),g=s(g,y=s(y,f,p,m,g,e[7],0,6),f,p=a(p,10),m,e[6],0,8),y,f=a(f,10),p,e[2],0,13),y=s(y=a(y,10),f=s(f,p=s(p,m,g,y,f,e[13],0,6),m,g=a(g,10),y,e[14],0,5),p,m=a(m,10),g,e[0],0,15),p=s(p=a(p,10),m=s(m,g=s(g,y,f,p,m,e[3],0,13),y,f=a(f,10),p,e[9],0,11),g,y=a(y,10),f,e[11],0,11),g=a(g,10);var v=this._b+o+g|0;this._b=this._c+r+y|0,this._c=this._d+h+f|0,this._d=this._e+n+p|0,this._e=this._a+i+m|0,this._a=v},r.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=r}).call(this,n(9).Buffer)},function(e,t,n){"use strict";var i=n(8).Buffer,o=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=d,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=u,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function d(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=r,r.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},r.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},r.prototype.text=function(e,t){var n=function(e,t,n){var i=t.length-1;if(i<n)return 0;var o=a(t[i]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--i<n||-2===o?0:(o=a(t[i]))>=0?(o>0&&(e.lastNeed=o-2),o):--i<n||-2===o?0:(o=a(t[i]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},r.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";(function(t,i,o){var r=n(173);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var i=e.entry;for(e.entry=null;i;){var o=i.callback;t.pendingcb--,o(void 0),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:r.nextTick;v.WritableState=y;var d=n(35);d.inherits=n(34);var c,u={deprecate:n(473)},h=n(268),f=n(8).Buffer,p=o.Uint8Array||function(){},m=n(267);function g(){}function y(e,t){s=s||n(26),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,d=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(d||0===d)?d:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),x(e,t))}(e,n,i,t,o);else{var a=_(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),i?l(b,e,n,a,o):b(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||n(26),!(c.call(v,this)||this instanceof s))return new v(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function A(e,t,n,i,o,r,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,r,t.onwrite),t.sync=!1}function b(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),x(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,o=new Array(i),r=t.corkedRequestsFree;r.entry=n;for(var s=0,l=!0;n;)o[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;o.allBuffers=l,A(e,t,!0,t.length,o,"",r.finish),t.pendingcb++,t.lastBufferedRequest=null,r.next?(t.corkedRequestsFree=r.next,r.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var d=n.chunk,c=n.encoding,u=n.callback;if(A(e,t,!1,t.objectMode?1:d.length,d,c,u),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),x(e,t)})}function x(e,t){var n=_(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,r.nextTick(M,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}d.inherits(v,h),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===v&&e&&e._writableState instanceof y}})):c=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,f.isBuffer(i)||i instanceof p);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=g),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),r.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),r.nextTick(i,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,i,o,r){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n)),t}(t,i,o);i!==a&&(n=!0,o="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:o,isBuf:n,callback:r,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,i,o,r);return l}(this,o,s,e,t,n)),a},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},v.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,n){t.ending=!0,x(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(23),n(475).setImmediate,n(22))},function(e,t,n){(t=e.exports=n(269)).Stream=t,t.Readable=t,t.Writable=n(185),t.Duplex=n(26),t.Transform=n(266),t.PassThrough=n(472)},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"object"==typeof e&&null!==e}function r(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,l,d;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(r(n=this._events[e]))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),a=(d=n.slice()).length,l=0;l<a;l++)d[l].apply(this,s);return!0},n.prototype.addListener=function(e,t){var a;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(a=r(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var n=!1;function o(){this.removeListener(e,o),n||(n=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(i(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";(function(t){var i=n(6),o=n(479),r=new Array(16);function a(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<<t|e>>>32-t}function l(e,t,n,i,o,r,a){return s(e+(t&n|~t&i)+o+r|0,a)+t|0}function d(e,t,n,i,o,r,a){return s(e+(t&i|n&~i)+o+r|0,a)+t|0}function c(e,t,n,i,o,r,a){return s(e+(t^n^i)+o+r|0,a)+t|0}function u(e,t,n,i,o,r,a){return s(e+(n^(t|~i))+o+r|0,a)+t|0}i(a,o),a.prototype._update=function(){for(var e=r,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,i=this._b,o=this._c,a=this._d;i=u(i=u(i=u(i=u(i=c(i=c(i=c(i=c(i=d(i=d(i=d(i=d(i=l(i=l(i=l(i=l(i,o=l(o,a=l(a,n=l(n,i,o,a,e[0],3614090360,7),i,o,e[1],3905402710,12),n,i,e[2],606105819,17),a,n,e[3],3250441966,22),o=l(o,a=l(a,n=l(n,i,o,a,e[4],4118548399,7),i,o,e[5],1200080426,12),n,i,e[6],2821735955,17),a,n,e[7],4249261313,22),o=l(o,a=l(a,n=l(n,i,o,a,e[8],1770035416,7),i,o,e[9],2336552879,12),n,i,e[10],4294925233,17),a,n,e[11],2304563134,22),o=l(o,a=l(a,n=l(n,i,o,a,e[12],1804603682,7),i,o,e[13],4254626195,12),n,i,e[14],2792965006,17),a,n,e[15],1236535329,22),o=d(o,a=d(a,n=d(n,i,o,a,e[1],4129170786,5),i,o,e[6],3225465664,9),n,i,e[11],643717713,14),a,n,e[0],3921069994,20),o=d(o,a=d(a,n=d(n,i,o,a,e[5],3593408605,5),i,o,e[10],38016083,9),n,i,e[15],3634488961,14),a,n,e[4],3889429448,20),o=d(o,a=d(a,n=d(n,i,o,a,e[9],568446438,5),i,o,e[14],3275163606,9),n,i,e[3],4107603335,14),a,n,e[8],1163531501,20),o=d(o,a=d(a,n=d(n,i,o,a,e[13],2850285829,5),i,o,e[2],4243563512,9),n,i,e[7],1735328473,14),a,n,e[12],2368359562,20),o=c(o,a=c(a,n=c(n,i,o,a,e[5],4294588738,4),i,o,e[8],2272392833,11),n,i,e[11],1839030562,16),a,n,e[14],4259657740,23),o=c(o,a=c(a,n=c(n,i,o,a,e[1],2763975236,4),i,o,e[4],1272893353,11),n,i,e[7],4139469664,16),a,n,e[10],3200236656,23),o=c(o,a=c(a,n=c(n,i,o,a,e[13],681279174,4),i,o,e[0],3936430074,11),n,i,e[3],3572445317,16),a,n,e[6],76029189,23),o=c(o,a=c(a,n=c(n,i,o,a,e[9],3654602809,4),i,o,e[12],3873151461,11),n,i,e[15],530742520,16),a,n,e[2],3299628645,23),o=u(o,a=u(a,n=u(n,i,o,a,e[0],4096336452,6),i,o,e[7],1126891415,10),n,i,e[14],2878612391,15),a,n,e[5],4237533241,21),o=u(o,a=u(a,n=u(n,i,o,a,e[12],1700485571,6),i,o,e[3],2399980690,10),n,i,e[10],4293915773,15),a,n,e[1],2240044497,21),o=u(o,a=u(a,n=u(n,i,o,a,e[8],1873313359,6),i,o,e[15],4264355552,10),n,i,e[6],2734768916,15),a,n,e[13],1309151649,21),o=u(o,a=u(a,n=u(n,i,o,a,e[4],4149444226,6),i,o,e[11],3174756917,10),n,i,e[2],718787259,15),a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+i|0,this._c=this._c+o|0,this._d=this._d+a|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=a}).call(this,n(9).Buffer)},function(e,t,n){"use strict";var i=n(5),o=n(11),r=n(4),a=n(19),s=r.noop;i._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var l=o.extend({initialize:function(e){r.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:s,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:s,afterBuildLabels:s,beforeFit:s,fit:function(){var e=this,t=r.valueOrDefault,n=e.options,o=n.display,a=t(n.fontSize,i.global.defaultFontSize),s=e.minSize,l=r.isArray(n.text)?n.text.length:1,d=r.options.toLineHeight(n.lineHeight,a),c=o?l*d+2*n.padding:0;e.isHorizontal()?(s.width=e.maxWidth,s.height=c):(s.width=c,s.height=e.maxHeight),e.width=s.width,e.height=s.height},afterFit:s,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=r.valueOrDefault,o=e.options,a=i.global;if(o.display){var s,l,d,c=n(o.fontSize,a.defaultFontSize),u=n(o.fontStyle,a.defaultFontStyle),h=n(o.fontFamily,a.defaultFontFamily),f=r.fontString(c,u,h),p=r.options.toLineHeight(o.lineHeight,c),m=p/2+o.padding,g=0,y=e.top,v=e.left,A=e.bottom,b=e.right;t.fillStyle=n(o.fontColor,a.defaultFontColor),t.font=f,e.isHorizontal()?(l=v+(b-v)/2,d=y+m,s=b-v):(l="left"===o.position?v+m:b-m,d=y+(A-y)/2,s=A-y,g=Math.PI*("left"===o.position?-.5:.5)),t.save(),t.translate(l,d),t.rotate(g),t.textAlign="center",t.textBaseline="middle";var w=o.text;if(r.isArray(w))for(var _=0,M=0;M<w.length;++M)t.fillText(w[M],0,_,s),_+=p;else t.fillText(w,0,0,s);t.restore()}}});function d(e,t){var n=new l({ctx:e.ctx,options:t,chart:e});a.configure(e,n,t),a.addBox(e,n),e.titleBlock=n}e.exports={id:"title",_element:l,beforeInit:function(e){var t=e.options.title;t&&d(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(r.mergeIf(t,i.global.title),n?(a.configure(e,n,t),n.options=t):d(e,t)):n&&(a.removeBox(e,n),delete e.titleBlock)}}},function(e,t,n){"use strict";var i=n(5),o=n(11),r=n(4),a=n(19),s=r.noop;function l(e,t){return e.usePointStyle?t*Math.SQRT2:e.boxWidth}i._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,i=this.chart,o=i.getDatasetMeta(n);o.hidden=null===o.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data;return r.isArray(t.datasets)?t.datasets.map(function(t,n){return{text:t.label,fillStyle:r.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!e.isDatasetVisible(n),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:n}},this):[]}}},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var n=0;n<e.data.datasets.length;n++)t.push('<li><span style="background-color:'+e.data.datasets[n].backgroundColor+'"></span>'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("</li>");return t.push("</ul>"),t.join("")}});var d=o.extend({initialize:function(e){r.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var e=this,t=e.options.labels||{},n=r.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var e=this,t=e.options,n=t.labels,o=t.display,a=e.ctx,s=i.global,d=r.valueOrDefault,c=d(n.fontSize,s.defaultFontSize),u=d(n.fontStyle,s.defaultFontStyle),h=d(n.fontFamily,s.defaultFontFamily),f=r.fontString(c,u,h),p=e.legendHitBoxes=[],m=e.minSize,g=e.isHorizontal();if(g?(m.width=e.maxWidth,m.height=o?10:0):(m.width=o?10:0,m.height=e.maxHeight),o)if(a.font=f,g){var y=e.lineWidths=[0],v=e.legendItems.length?c+n.padding:0;a.textAlign="left",a.textBaseline="top",r.each(e.legendItems,function(t,i){var o=l(n,c)+c/2+a.measureText(t.text).width;y[y.length-1]+o+n.padding>=e.width&&(v+=c+n.padding,y[y.length]=e.left),p[i]={left:0,top:0,width:o,height:c},y[y.length-1]+=o+n.padding}),m.height+=v}else{var A=n.padding,b=e.columnWidths=[],w=n.padding,_=0,M=0,x=c+A;r.each(e.legendItems,function(e,t){var i=l(n,c)+c/2+a.measureText(e.text).width;M+x>m.height&&(w+=_+n.padding,b.push(_),_=0,M=0),_=Math.max(_,i),M+=x,p[t]={left:0,top:0,width:i,height:c}}),w+=_,b.push(_),m.width+=w}e.width=m.width,e.height=m.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,o=i.global,a=o.elements.line,s=e.width,d=e.lineWidths;if(t.display){var c,u=e.ctx,h=r.valueOrDefault,f=h(n.fontColor,o.defaultFontColor),p=h(n.fontSize,o.defaultFontSize),m=h(n.fontStyle,o.defaultFontStyle),g=h(n.fontFamily,o.defaultFontFamily),y=r.fontString(p,m,g);u.textAlign="left",u.textBaseline="middle",u.lineWidth=.5,u.strokeStyle=f,u.fillStyle=f,u.font=y;var v=l(n,p),A=e.legendHitBoxes,b=e.isHorizontal();c=b?{x:e.left+(s-d[0])/2,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var w=p+n.padding;r.each(e.legendItems,function(i,l){var f=u.measureText(i.text).width,m=v+p/2+f,g=c.x,y=c.y;b?g+m>=s&&(y=c.y+=w,c.line++,g=c.x=e.left+(s-d[c.line])/2):y+w>e.bottom&&(g=c.x=g+e.columnWidths[c.line]+n.padding,y=c.y=e.top+n.padding,c.line++),function(e,n,i){if(!(isNaN(v)||v<=0)){u.save(),u.fillStyle=h(i.fillStyle,o.defaultColor),u.lineCap=h(i.lineCap,a.borderCapStyle),u.lineDashOffset=h(i.lineDashOffset,a.borderDashOffset),u.lineJoin=h(i.lineJoin,a.borderJoinStyle),u.lineWidth=h(i.lineWidth,a.borderWidth),u.strokeStyle=h(i.strokeStyle,o.defaultColor);var s=0===h(i.lineWidth,a.borderWidth);if(u.setLineDash&&u.setLineDash(h(i.lineDash,a.borderDash)),t.labels&&t.labels.usePointStyle){var l=p*Math.SQRT2/2,d=l/Math.SQRT2,c=e+d,f=n+d;r.canvas.drawPoint(u,i.pointStyle,l,c,f)}else s||u.strokeRect(e,n,v,p),u.fillRect(e,n,v,p);u.restore()}}(g,y,i),A[l].left=g,A[l].top=y,function(e,t,n,i){var o=p/2,r=v+o+g,a=y+o;u.fillText(n.text,r,a),n.hidden&&(u.beginPath(),u.lineWidth=2,u.moveTo(r,a),u.lineTo(r+i,a),u.stroke())}(0,0,i,f),b?c.x+=m+n.padding:c.y+=w})}},handleEvent:function(e){var t=this,n=t.options,i="mouseup"===e.type?"click":e.type,o=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var r=e.x,a=e.y;if(r>=t.left&&r<=t.right&&a>=t.top&&a<=t.bottom)for(var s=t.legendHitBoxes,l=0;l<s.length;++l){var d=s[l];if(r>=d.left&&r<=d.left+d.width&&a>=d.top&&a<=d.top+d.height){if("click"===i){n.onClick.call(t,e.native,t.legendItems[l]),o=!0;break}if("mousemove"===i){n.onHover.call(t,e.native,t.legendItems[l]),o=!0;break}}}return o}});function c(e,t){var n=new d({ctx:e.ctx,options:t,chart:e});a.configure(e,n,t),a.addBox(e,n),e.legend=n}e.exports={id:"legend",_element:d,beforeInit:function(e){var t=e.options.legend;t&&c(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(r.mergeIf(t,i.global.legend),n?(a.configure(e,n,t),n.options=t):c(e,t)):n&&(a.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}}},function(e,t,n){"use strict";var i=n(5),o=n(13),r=n(4);i._set("global",{plugins:{filler:{propagate:!0}}});var a={dataset:function(e){var t=e.fill,n=e.chart,i=n.getDatasetMeta(t),o=i&&n.isDatasetVisible(t)&&i.dataset._children||[],r=o.length||0;return r?function(e,t){return t<r&&o[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,i=t?t.y:null;return function(e){return{x:null===n?e.x:n,y:null===i?e.y:i}}}};function s(e,t,n){var i,o=e._model||{},r=o.fill;if(void 0===r&&(r=!!o.backgroundColor),!1===r||null===r)return!1;if(!0===r)return"origin";if(i=parseFloat(r,10),isFinite(i)&&Math.floor(i)===i)return"-"!==r[0]&&"+"!==r[0]||(i=t+i),!(i===t||i<0||i>=n)&&i;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function l(e){var t,n=e.el._model||{},i=e.el._scale||{},o=e.fill,r=null;if(isFinite(o))return null;if("start"===o?r=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===o?r=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?r=n.scaleZero:i.getBasePosition?r=i.getBasePosition():i.getBasePixel&&(r=i.getBasePixel()),void 0!==r&&null!==r){if(void 0!==r.x&&void 0!==r.y)return r;if("number"==typeof r&&isFinite(r))return{x:(t=i.isHorizontal())?r:null,y:t?null:r}}return null}function d(e,t,n){var i,o=e[t].fill,r=[t];if(!n)return o;for(;!1!==o&&-1===r.indexOf(o);){if(!isFinite(o))return o;if(!(i=e[o]))return!1;if(i.visible)return o;r.push(o),o=i.fill}return!1}function c(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),a[n](e))}function u(e){return e&&!e.skip}function h(e,t,n,i,o){var a;if(i&&o){for(e.moveTo(t[0].x,t[0].y),a=1;a<i;++a)r.canvas.lineTo(e,t[a-1],t[a]);for(e.lineTo(n[o-1].x,n[o-1].y),a=o-1;a>0;--a)r.canvas.lineTo(e,n[a],n[a-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(e,t){var n,i,r,a,u=(e.data.datasets||[]).length,h=t.propagate,f=[];for(i=0;i<u;++i)a=null,(r=(n=e.getDatasetMeta(i)).dataset)&&r._model&&r instanceof o.Line&&(a={visible:e.isDatasetVisible(i),fill:s(r,i,u),chart:e,el:r}),n.$filler=a,f.push(a);for(i=0;i<u;++i)(a=f[i])&&(a.fill=d(f,i,h),a.boundary=l(a),a.mapper=c(a))},beforeDatasetDraw:function(e,t){var n=t.meta.$filler;if(n){var o=e.ctx,a=n.el,s=a._view,l=a._children||[],d=n.mapper,c=s.backgroundColor||i.global.defaultColor;d&&c&&l.length&&(r.canvas.clipArea(o,e.chartArea),function(e,t,n,i,o,r){var a,s,l,d,c,f,p,m=t.length,g=i.spanGaps,y=[],v=[],A=0,b=0;for(e.beginPath(),a=0,s=m+!!r;a<s;++a)c=n(d=t[l=a%m]._view,l,i),f=u(d),p=u(c),f&&p?(A=y.push(d),b=v.push(c)):A&&b&&(g?(f&&y.push(d),p&&v.push(c)):(h(e,y,v,A,b),A=b=0,y=[],v=[]));h(e,y,v,A,b),e.closePath(),e.fillStyle=o,e.fill()}(o,l,d,s,c,a._loop),r.canvas.unclipArea(o))}}}},function(e,t,n){"use strict";e.exports={},e.exports.filler=n(191),e.exports.legend=n(190),e.exports.title=n(189)},function(e,t,n){"use strict";e.exports=function(e){e.Scatter=function(t,n){return n.type="scatter",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Radar=function(t,n){return n.type="radar",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.PolarArea=function(t,n){return n.type="polarArea",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Line=function(t,n){return n.type="line",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Doughnut=function(t,n){return n.type="doughnut",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Bubble=function(t,n){return n.type="bubble",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Bar=function(t,n){return n.type="bar",new e(t,n)}}},function(e,t,n){"use strict";n(5)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),e.exports=function(e){e.controllers.scatter=e.controllers.line}},function(e,t,n){"use strict";var i=n(5),o=n(13),r=n(4);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(e){e.controllers.radar=e.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,linkScales:r.noop,update:function(e){var t=this,n=t.getMeta(),i=n.dataset,o=n.data,a=i.custom||{},s=t.getDataset(),l=t.chart.options.elements.line,d=t.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),r.extend(n.dataset,{_datasetIndex:t.index,_scale:d,_children:o,_loop:!0,_model:{tension:a.tension?a.tension:r.valueOrDefault(s.lineTension,l.tension),backgroundColor:a.backgroundColor?a.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:s.borderWidth||l.borderWidth,borderColor:a.borderColor?a.borderColor:s.borderColor||l.borderColor,fill:a.fill?a.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:a.borderCapStyle?a.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:a.borderDash?a.borderDash:s.borderDash||l.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),r.each(o,function(n,i){t.updateElement(n,i,e)},t),t.updateBezierControlPoints()},updateElement:function(e,t,n){var i=this,o=e.custom||{},a=i.getDataset(),s=i.chart.scale,l=i.chart.options.elements.point,d=s.getPointPositionForValue(t,a.data[t]);void 0!==a.radius&&void 0===a.pointRadius&&(a.pointRadius=a.radius),void 0!==a.hitRadius&&void 0===a.pointHitRadius&&(a.pointHitRadius=a.hitRadius),r.extend(e,{_datasetIndex:i.index,_index:t,_scale:s,_model:{x:n?s.xCenter:d.x,y:n?s.yCenter:d.y,tension:o.tension?o.tension:r.valueOrDefault(a.lineTension,i.chart.options.elements.line.tension),radius:o.radius?o.radius:r.valueAtIndexOrDefault(a.pointRadius,t,l.radius),backgroundColor:o.backgroundColor?o.backgroundColor:r.valueAtIndexOrDefault(a.pointBackgroundColor,t,l.backgroundColor),borderColor:o.borderColor?o.borderColor:r.valueAtIndexOrDefault(a.pointBorderColor,t,l.borderColor),borderWidth:o.borderWidth?o.borderWidth:r.valueAtIndexOrDefault(a.pointBorderWidth,t,l.borderWidth),pointStyle:o.pointStyle?o.pointStyle:r.valueAtIndexOrDefault(a.pointStyle,t,l.pointStyle),hitRadius:o.hitRadius?o.hitRadius:r.valueAtIndexOrDefault(a.pointHitRadius,t,l.hitRadius)}}),e._model.skip=o.skip?o.skip:isNaN(e._model.x)||isNaN(e._model.y)},updateBezierControlPoints:function(){var e=this.chart.chartArea,t=this.getMeta();r.each(t.data,function(n,i){var o=n._model,a=r.splineCurve(r.previousItem(t.data,i,!0)._model,o,r.nextItem(t.data,i,!0)._model,o.tension);o.controlPointPreviousX=Math.max(Math.min(a.previous.x,e.right),e.left),o.controlPointPreviousY=Math.max(Math.min(a.previous.y,e.bottom),e.top),o.controlPointNextX=Math.max(Math.min(a.next.x,e.right),e.left),o.controlPointNextY=Math.max(Math.min(a.next.y,e.bottom),e.top),n.pivot()})},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e.custom||{},i=e._index,o=e._model;o.radius=n.hoverRadius?n.hoverRadius:r.valueAtIndexOrDefault(t.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),o.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:r.valueAtIndexOrDefault(t.pointHoverBackgroundColor,i,r.getHoverColor(o.backgroundColor)),o.borderColor=n.hoverBorderColor?n.hoverBorderColor:r.valueAtIndexOrDefault(t.pointHoverBorderColor,i,r.getHoverColor(o.borderColor)),o.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:r.valueAtIndexOrDefault(t.pointHoverBorderWidth,i,o.borderWidth)},removeHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e.custom||{},i=e._index,o=e._model,a=this.chart.options.elements.point;o.radius=n.radius?n.radius:r.valueAtIndexOrDefault(t.pointRadius,i,a.radius),o.backgroundColor=n.backgroundColor?n.backgroundColor:r.valueAtIndexOrDefault(t.pointBackgroundColor,i,a.backgroundColor),o.borderColor=n.borderColor?n.borderColor:r.valueAtIndexOrDefault(t.pointBorderColor,i,a.borderColor),o.borderWidth=n.borderWidth?n.borderWidth:r.valueAtIndexOrDefault(t.pointBorderWidth,i,a.borderWidth)}})}},function(e,t,n){"use strict";var i=n(5),o=n(13),r=n(4);i._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,i=n.datasets,o=n.labels;if(i.length)for(var r=0;r<i[0].data.length;++r)t.push('<li><span style="background-color:'+i[0].backgroundColor[r]+'"></span>'),o[r]&&t.push(o[r]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,i){var o=e.getDatasetMeta(0),a=t.datasets[0],s=o.data[i].custom||{},l=r.valueAtIndexOrDefault,d=e.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(a.backgroundColor,i,d.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(a.borderColor,i,d.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(a.borderWidth,i,d.borderWidth),hidden:isNaN(a.data[i])||o.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var n,i,o,r=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(o=a.getDatasetMeta(n)).data[r].hidden=!o.data[r].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:o.Arc,linkScales:r.noop,update:function(e){var t=this,n=t.chart,i=n.chartArea,o=t.getMeta(),a=n.options,s=a.elements.arc,l=Math.min(i.right-i.left,i.bottom-i.top);n.outerRadius=Math.max((l-s.borderWidth/2)/2,0),n.innerRadius=Math.max(a.cutoutPercentage?n.outerRadius/100*a.cutoutPercentage:1,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),t.outerRadius=n.outerRadius-n.radiusLength*t.index,t.innerRadius=t.outerRadius-n.radiusLength,o.count=t.countVisibleElements(),r.each(o.data,function(n,i){t.updateElement(n,i,e)})},updateElement:function(e,t,n){for(var i=this,o=i.chart,a=i.getDataset(),s=o.options,l=s.animation,d=o.scale,c=o.data.labels,u=i.calculateCircumference(a.data[t]),h=d.xCenter,f=d.yCenter,p=0,m=i.getMeta(),g=0;g<t;++g)isNaN(a.data[g])||m.data[g].hidden||++p;var y=s.startAngle,v=e.hidden?0:d.getDistanceFromCenterForValue(a.data[t]),A=y+u*p,b=A+(e.hidden?0:u),w=l.animateScale?0:d.getDistanceFromCenterForValue(a.data[t]);r.extend(e,{_datasetIndex:i.index,_index:t,_scale:d,_model:{x:h,y:f,innerRadius:0,outerRadius:n?w:v,startAngle:n&&l.animateRotate?y:A,endAngle:n&&l.animateRotate?y:b,label:r.valueAtIndexOrDefault(c,t,c[t])}}),i.removeHoverStyle(e),e.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return r.each(t.data,function(t,i){isNaN(e.data[i])||t.hidden||n++}),n},calculateCircumference:function(e){var t=this.getMeta().count;return t>0&&!isNaN(e)?2*Math.PI/t:0}})}},function(e,t,n){"use strict";var i=n(5),o=n(13),r=n(4);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(e){function t(e,t){return r.valueOrDefault(e.showLine,t.showLines)}e.controllers.line=e.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,update:function(e){var n,i,o,a=this,s=a.getMeta(),l=s.dataset,d=s.data||[],c=a.chart.options,u=c.elements.line,h=a.getScaleForId(s.yAxisID),f=a.getDataset(),p=t(f,c);for(p&&(o=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=a.index,l._children=d,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:o.tension?o.tension:r.valueOrDefault(f.lineTension,u.tension),backgroundColor:o.backgroundColor?o.backgroundColor:f.backgroundColor||u.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:f.borderWidth||u.borderWidth,borderColor:o.borderColor?o.borderColor:f.borderColor||u.borderColor,borderCapStyle:o.borderCapStyle?o.borderCapStyle:f.borderCapStyle||u.borderCapStyle,borderDash:o.borderDash?o.borderDash:f.borderDash||u.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:f.borderDashOffset||u.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:f.borderJoinStyle||u.borderJoinStyle,fill:o.fill?o.fill:void 0!==f.fill?f.fill:u.fill,steppedLine:o.steppedLine?o.steppedLine:r.valueOrDefault(f.steppedLine,u.stepped),cubicInterpolationMode:o.cubicInterpolationMode?o.cubicInterpolationMode:r.valueOrDefault(f.cubicInterpolationMode,u.cubicInterpolationMode)},l.pivot()),n=0,i=d.length;n<i;++n)a.updateElement(d[n],n,e);for(p&&0!==l._model.tension&&a.updateBezierControlPoints(),n=0,i=d.length;n<i;++n)d[n].pivot()},getPointBackgroundColor:function(e,t){var n=this.chart.options.elements.point.backgroundColor,i=this.getDataset(),o=e.custom||{};return o.backgroundColor?n=o.backgroundColor:i.pointBackgroundColor?n=r.valueAtIndexOrDefault(i.pointBackgroundColor,t,n):i.backgroundColor&&(n=i.backgroundColor),n},getPointBorderColor:function(e,t){var n=this.chart.options.elements.point.borderColor,i=this.getDataset(),o=e.custom||{};return o.borderColor?n=o.borderColor:i.pointBorderColor?n=r.valueAtIndexOrDefault(i.pointBorderColor,t,n):i.borderColor&&(n=i.borderColor),n},getPointBorderWidth:function(e,t){var n=this.chart.options.elements.point.borderWidth,i=this.getDataset(),o=e.custom||{};return isNaN(o.borderWidth)?!isNaN(i.pointBorderWidth)||r.isArray(i.pointBorderWidth)?n=r.valueAtIndexOrDefault(i.pointBorderWidth,t,n):isNaN(i.borderWidth)||(n=i.borderWidth):n=o.borderWidth,n},updateElement:function(e,t,n){var i,o,a=this,s=a.getMeta(),l=e.custom||{},d=a.getDataset(),c=a.index,u=d.data[t],h=a.getScaleForId(s.yAxisID),f=a.getScaleForId(s.xAxisID),p=a.chart.options.elements.point;void 0!==d.radius&&void 0===d.pointRadius&&(d.pointRadius=d.radius),void 0!==d.hitRadius&&void 0===d.pointHitRadius&&(d.pointHitRadius=d.hitRadius),i=f.getPixelForValue("object"==typeof u?u:NaN,t,c),o=n?h.getBasePixel():a.calculatePointY(u,t,c),e._xScale=f,e._yScale=h,e._datasetIndex=c,e._index=t,e._model={x:i,y:o,skip:l.skip||isNaN(i)||isNaN(o),radius:l.radius||r.valueAtIndexOrDefault(d.pointRadius,t,p.radius),pointStyle:l.pointStyle||r.valueAtIndexOrDefault(d.pointStyle,t,p.pointStyle),backgroundColor:a.getPointBackgroundColor(e,t),borderColor:a.getPointBorderColor(e,t),borderWidth:a.getPointBorderWidth(e,t),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:l.hitRadius||r.valueAtIndexOrDefault(d.pointHitRadius,t,p.hitRadius)}},calculatePointY:function(e,t,n){var i,o,r,a=this.chart,s=this.getMeta(),l=this.getScaleForId(s.yAxisID),d=0,c=0;if(l.options.stacked){for(i=0;i<n;i++)if(o=a.data.datasets[i],"line"===(r=a.getDatasetMeta(i)).type&&r.yAxisID===l.id&&a.isDatasetVisible(i)){var u=Number(l.getRightValue(o.data[t]));u<0?c+=u||0:d+=u||0}var h=Number(l.getRightValue(e));return h<0?l.getPixelForValue(c+h):l.getPixelForValue(d+h)}return l.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,i,o=this.getMeta(),a=this.chart.chartArea,s=o.data||[];function l(e,t,n){return Math.max(Math.min(e,n),t)}if(o.dataset._model.spanGaps&&(s=s.filter(function(e){return!e._model.skip})),"monotone"===o.dataset._model.cubicInterpolationMode)r.splineCurveMonotone(s);else for(e=0,t=s.length;e<t;++e)n=s[e]._model,i=r.splineCurve(r.previousItem(s,e)._model,n,r.nextItem(s,e)._model,o.dataset._model.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(this.chart.options.elements.line.capBezierPoints)for(e=0,t=s.length;e<t;++e)(n=s[e]._model).controlPointPreviousX=l(n.controlPointPreviousX,a.left,a.right),n.controlPointPreviousY=l(n.controlPointPreviousY,a.top,a.bottom),n.controlPointNextX=l(n.controlPointNextX,a.left,a.right),n.controlPointNextY=l(n.controlPointNextY,a.top,a.bottom)},draw:function(){var e=this.chart,n=this.getMeta(),i=n.data||[],o=e.chartArea,a=i.length,s=0;for(r.canvas.clipArea(e.ctx,o),t(this.getDataset(),e.options)&&n.dataset.draw(),r.canvas.unclipArea(e.ctx);s<a;++s)i[s].draw(o)},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},o=e._model;o.radius=i.hoverRadius||r.valueAtIndexOrDefault(t.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),o.backgroundColor=i.hoverBackgroundColor||r.valueAtIndexOrDefault(t.pointHoverBackgroundColor,n,r.getHoverColor(o.backgroundColor)),o.borderColor=i.hoverBorderColor||r.valueAtIndexOrDefault(t.pointHoverBorderColor,n,r.getHoverColor(o.borderColor)),o.borderWidth=i.hoverBorderWidth||r.valueAtIndexOrDefault(t.pointHoverBorderWidth,n,o.borderWidth)},removeHoverStyle:function(e){var t=this,n=t.chart.data.datasets[e._datasetIndex],i=e._index,o=e.custom||{},a=e._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),a.radius=o.radius||r.valueAtIndexOrDefault(n.pointRadius,i,t.chart.options.elements.point.radius),a.backgroundColor=t.getPointBackgroundColor(e,i),a.borderColor=t.getPointBorderColor(e,i),a.borderWidth=t.getPointBorderWidth(e,i)}})}},function(e,t,n){"use strict";var i=n(5),o=n(13),r=n(4);i._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,i=n.datasets,o=n.labels;if(i.length)for(var r=0;r<i[0].data.length;++r)t.push('<li><span style="background-color:'+i[0].backgroundColor[r]+'"></span>'),o[r]&&t.push(o[r]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,i){var o=e.getDatasetMeta(0),a=t.datasets[0],s=o.data[i],l=s&&s.custom||{},d=r.valueAtIndexOrDefault,c=e.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:d(a.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:d(a.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:d(a.borderWidth,i,c.borderWidth),hidden:isNaN(a.data[i])||o.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var n,i,o,r=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(o=a.getDatasetMeta(n)).data[r]&&(o.data[r].hidden=!o.data[r].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return r.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}}),i._set("pie",r.clone(i.doughnut)),i._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:o.Arc,linkScales:r.noop,getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t=this,n=t.chart,i=n.chartArea,o=n.options,a=o.elements.arc,s=i.right-i.left-a.borderWidth,l=i.bottom-i.top-a.borderWidth,d=Math.min(s,l),c={x:0,y:0},u=t.getMeta(),h=o.cutoutPercentage,f=o.circumference;if(f<2*Math.PI){var p=o.rotation%(2*Math.PI),m=(p+=2*Math.PI*(p>=Math.PI?-1:p<-Math.PI?1:0))+f,g={x:Math.cos(p),y:Math.sin(p)},y={x:Math.cos(m),y:Math.sin(m)},v=p<=0&&m>=0||p<=2*Math.PI&&2*Math.PI<=m,A=p<=.5*Math.PI&&.5*Math.PI<=m||p<=2.5*Math.PI&&2.5*Math.PI<=m,b=p<=-Math.PI&&-Math.PI<=m||p<=Math.PI&&Math.PI<=m,w=p<=.5*-Math.PI&&.5*-Math.PI<=m||p<=1.5*Math.PI&&1.5*Math.PI<=m,_=h/100,M={x:b?-1:Math.min(g.x*(g.x<0?1:_),y.x*(y.x<0?1:_)),y:w?-1:Math.min(g.y*(g.y<0?1:_),y.y*(y.y<0?1:_))},x={x:v?1:Math.max(g.x*(g.x>0?1:_),y.x*(y.x>0?1:_)),y:A?1:Math.max(g.y*(g.y>0?1:_),y.y*(y.y>0?1:_))},k={width:.5*(x.x-M.x),height:.5*(x.y-M.y)};d=Math.min(s/k.width,l/k.height),c={x:-.5*(x.x+M.x),y:-.5*(x.y+M.y)}}n.borderWidth=t.getMaxBorderWidth(u.data),n.outerRadius=Math.max((d-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,u.total=t.calculateTotal(),t.outerRadius=n.outerRadius-n.radiusLength*t.getRingIndex(t.index),t.innerRadius=Math.max(t.outerRadius-n.radiusLength,0),r.each(u.data,function(n,i){t.updateElement(n,i,e)})},updateElement:function(e,t,n){var i=this,o=i.chart,a=o.chartArea,s=o.options,l=s.animation,d=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=s.rotation,h=s.rotation,f=i.getDataset(),p=n&&l.animateRotate?0:e.hidden?0:i.calculateCircumference(f.data[t])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:i.innerRadius,g=n&&l.animateScale?0:i.outerRadius,y=r.valueAtIndexOrDefault;r.extend(e,{_datasetIndex:i.index,_index:t,_model:{x:d+o.offsetX,y:c+o.offsetY,startAngle:u,endAngle:h,circumference:p,outerRadius:g,innerRadius:m,label:y(f.label,t,o.data.labels[t])}});var v=e._model;this.removeHoverStyle(e),n&&l.animateRotate||(v.startAngle=0===t?s.rotation:i.getMeta().data[t-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),e.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),i=0;return r.each(n.data,function(n,o){e=t.data[o],isNaN(e)||n.hidden||(i+=Math.abs(e))}),i},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){for(var t,n,i=0,o=this.index,r=e.length,a=0;a<r;a++)t=e[a]._model?e[a]._model.borderWidth:0,i=(n=e[a]._chart?e[a]._chart.config.data.datasets[o].hoverBorderWidth:0)>(i=t>i?t:i)?n:i;return i}})}},function(e,t,n){"use strict";var i=n(5),o=n(13),r=n(4);i._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",i=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+i.r+")"}}}}),e.exports=function(e){e.controllers.bubble=e.DatasetController.extend({dataElementType:o.Point,update:function(e){var t=this,n=t.getMeta().data;r.each(n,function(n,i){t.updateElement(n,i,e)})},updateElement:function(e,t,n){var i=this,o=i.getMeta(),r=e.custom||{},a=i.getScaleForId(o.xAxisID),s=i.getScaleForId(o.yAxisID),l=i._resolveElementOptions(e,t),d=i.getDataset().data[t],c=i.index,u=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"==typeof d?d:NaN,t,c),h=n?s.getBasePixel():s.getPixelForValue(d,t,c);e._xScale=a,e._yScale=s,e._options=l,e._datasetIndex=c,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,radius:n?0:l.radius,skip:r.skip||isNaN(u)||isNaN(h),x:u,y:h},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options;t.backgroundColor=r.valueOrDefault(n.hoverBackgroundColor,r.getHoverColor(n.backgroundColor)),t.borderColor=r.valueOrDefault(n.hoverBorderColor,r.getHoverColor(n.borderColor)),t.borderWidth=r.valueOrDefault(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},removeHoverStyle:function(e){var t=e._model,n=e._options;t.backgroundColor=n.backgroundColor,t.borderColor=n.borderColor,t.borderWidth=n.borderWidth,t.radius=n.radius},_resolveElementOptions:function(e,t){var n,i,o,a=this.chart,s=a.data.datasets[this.index],l=e.custom||{},d=a.options.elements.point,c=r.options.resolve,u=s.data[t],h={},f={chart:a,dataIndex:t,dataset:s,datasetIndex:this.index},p=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"];for(n=0,i=p.length;n<i;++n)h[o=p[n]]=c([l[o],s[o],d[o]],f,t);return h.radius=c([l.radius,u?u.r:void 0,s.radius,d.radius],f,t),h}})}},function(e,t,n){"use strict";var i=n(5),o=n(13),r=n(4);i._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),i._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(e,t){var n="";return e.length>0&&(e[0].yLabel?n=e[0].yLabel:t.labels.length>0&&e[0].index<t.labels.length&&(n=t.labels[e[0].index])),n},label:function(e,t){return(t.datasets[e.datasetIndex].label||"")+": "+e.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:o.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(e){var t,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=i.length;t<n;++t)this.updateElement(i[t],t,e)},updateElement:function(e,t,n){var i=this,o=i.chart,a=i.getMeta(),s=i.getDataset(),l=e.custom||{},d=o.options.elements.rectangle;e._xScale=i.getScaleForId(a.xAxisID),e._yScale=i.getScaleForId(a.yAxisID),e._datasetIndex=i.index,e._index=t,e._model={datasetLabel:s.label,label:o.data.labels[t],borderSkipped:l.borderSkipped?l.borderSkipped:d.borderSkipped,backgroundColor:l.backgroundColor?l.backgroundColor:r.valueAtIndexOrDefault(s.backgroundColor,t,d.backgroundColor),borderColor:l.borderColor?l.borderColor:r.valueAtIndexOrDefault(s.borderColor,t,d.borderColor),borderWidth:l.borderWidth?l.borderWidth:r.valueAtIndexOrDefault(s.borderWidth,t,d.borderWidth)},i.updateElementGeometry(e,t,n),e.pivot()},updateElementGeometry:function(e,t,n){var i=this,o=e._model,r=i.getValueScale(),a=r.getBasePixel(),s=r.isHorizontal(),l=i._ruler||i.getRuler(),d=i.calculateBarValuePixels(i.index,t),c=i.calculateBarIndexPixels(i.index,t,l);o.horizontal=s,o.base=n?a:d.base,o.x=s?n?a:d.head:c.center,o.y=s?c.center:n?a:d.head,o.height=s?c.size:void 0,o.width=s?void 0:c.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(e){var t,n,i=this.chart,o=this.getIndexScale().options.stacked,r=void 0===e?i.data.datasets.length:e+1,a=[];for(t=0;t<r;++t)(n=i.getDatasetMeta(t)).bar&&i.isDatasetVisible(t)&&(!1===o||!0===o&&-1===a.indexOf(n.stack)||void 0===o&&(void 0===n.stack||-1===a.indexOf(n.stack)))&&a.push(n.stack);return a},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),i=void 0!==t?n.indexOf(t):-1;return-1===i?n.length-1:i},getRuler:function(){var e,t,n=this.getIndexScale(),i=this.getStackCount(),o=this.index,a=n.isHorizontal(),s=a?n.left:n.top,l=s+(a?n.width:n.height),d=[];for(e=0,t=this.getMeta().data.length;e<t;++e)d.push(n.getPixelForValue(null,e,o));return{min:r.isNullOrUndef(n.options.barThickness)?function(e,t){var n,i,o,r,a=e.isHorizontal()?e.width:e.height,s=e.getTicks();for(o=1,r=t.length;o<r;++o)a=Math.min(a,t[o]-t[o-1]);for(o=0,r=s.length;o<r;++o)i=e.getPixelForTick(o),a=o>0?Math.min(a,i-n):a,n=i;return a}(n,d):-1,pixels:d,start:s,end:l,stackCount:i,scale:n}},calculateBarValuePixels:function(e,t){var n,i,o,r,a,s,l=this.chart,d=this.getMeta(),c=this.getValueScale(),u=l.data.datasets,h=c.getRightValue(u[e].data[t]),f=c.options.stacked,p=d.stack,m=0;if(f||void 0===f&&void 0!==p)for(n=0;n<e;++n)(i=l.getDatasetMeta(n)).bar&&i.stack===p&&i.controller.getValueScaleId()===c.id&&l.isDatasetVisible(n)&&(o=c.getRightValue(u[n].data[t]),(h<0&&o<0||h>=0&&o>0)&&(m+=o));return r=c.getPixelForValue(m),{size:s=((a=c.getPixelForValue(m+h))-r)/2,base:r,head:a,center:a+s/2}},calculateBarIndexPixels:function(e,t,n){var i=n.scale.options,o="flex"===i.barThickness?function(e,t,n){var i,o=t.pixels,r=o[e],a=e>0?o[e-1]:null,s=e<o.length-1?o[e+1]:null,l=n.categoryPercentage;return null===a&&(a=r-(null===s?t.end-r:s-r)),null===s&&(s=r+r-a),i=r-(r-a)/2*l,{chunk:(s-a)/2*l/t.stackCount,ratio:n.barPercentage,start:i}}(t,n,i):function(e,t,n){var i,o,a=n.barThickness,s=t.stackCount,l=t.pixels[e];return r.isNullOrUndef(a)?(i=t.min*n.categoryPercentage,o=n.barPercentage):(i=a*s,o=1),{chunk:i/s,ratio:o,start:l-i/2}}(t,n,i),a=this.getStackIndex(e,this.getMeta().stack),s=o.start+o.chunk*a+o.chunk/2,l=Math.min(r.valueOrDefault(i.maxBarThickness,1/0),o.chunk*o.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var e=this.chart,t=this.getValueScale(),n=this.getMeta().data,i=this.getDataset(),o=n.length,a=0;for(r.canvas.clipArea(e.ctx,e.chartArea);a<o;++a)isNaN(t.getRightValue(i.data[a]))||n[a].draw();r.canvas.unclipArea(e.ctx)},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},o=e._model;o.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:r.valueAtIndexOrDefault(t.hoverBackgroundColor,n,r.getHoverColor(o.backgroundColor)),o.borderColor=i.hoverBorderColor?i.hoverBorderColor:r.valueAtIndexOrDefault(t.hoverBorderColor,n,r.getHoverColor(o.borderColor)),o.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:r.valueAtIndexOrDefault(t.hoverBorderWidth,n,o.borderWidth)},removeHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},o=e._model,a=this.chart.options.elements.rectangle;o.backgroundColor=i.backgroundColor?i.backgroundColor:r.valueAtIndexOrDefault(t.backgroundColor,n,a.backgroundColor),o.borderColor=i.borderColor?i.borderColor:r.valueAtIndexOrDefault(t.borderColor,n,a.borderColor),o.borderWidth=i.borderWidth?i.borderWidth:r.valueAtIndexOrDefault(t.borderWidth,n,a.borderWidth)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},function(e,t,n){var i={"./af":159,"./af.js":159,"./ar":158,"./ar-dz":157,"./ar-dz.js":157,"./ar-kw":156,"./ar-kw.js":156,"./ar-ly":155,"./ar-ly.js":155,"./ar-ma":154,"./ar-ma.js":154,"./ar-sa":153,"./ar-sa.js":153,"./ar-tn":152,"./ar-tn.js":152,"./ar.js":158,"./az":151,"./az.js":151,"./be":150,"./be.js":150,"./bg":149,"./bg.js":149,"./bm":148,"./bm.js":148,"./bn":147,"./bn.js":147,"./bo":146,"./bo.js":146,"./br":145,"./br.js":145,"./bs":144,"./bs.js":144,"./ca":143,"./ca.js":143,"./cs":142,"./cs.js":142,"./cv":141,"./cv.js":141,"./cy":140,"./cy.js":140,"./da":139,"./da.js":139,"./de":138,"./de-at":137,"./de-at.js":137,"./de-ch":136,"./de-ch.js":136,"./de.js":138,"./dv":135,"./dv.js":135,"./el":134,"./el.js":134,"./en-au":133,"./en-au.js":133,"./en-ca":132,"./en-ca.js":132,"./en-gb":131,"./en-gb.js":131,"./en-ie":130,"./en-ie.js":130,"./en-il":129,"./en-il.js":129,"./en-nz":128,"./en-nz.js":128,"./eo":127,"./eo.js":127,"./es":126,"./es-do":125,"./es-do.js":125,"./es-us":124,"./es-us.js":124,"./es.js":126,"./et":123,"./et.js":123,"./eu":122,"./eu.js":122,"./fa":121,"./fa.js":121,"./fi":120,"./fi.js":120,"./fo":119,"./fo.js":119,"./fr":118,"./fr-ca":117,"./fr-ca.js":117,"./fr-ch":116,"./fr-ch.js":116,"./fr.js":118,"./fy":115,"./fy.js":115,"./gd":114,"./gd.js":114,"./gl":113,"./gl.js":113,"./gom-latn":112,"./gom-latn.js":112,"./gu":111,"./gu.js":111,"./he":110,"./he.js":110,"./hi":109,"./hi.js":109,"./hr":108,"./hr.js":108,"./hu":107,"./hu.js":107,"./hy-am":106,"./hy-am.js":106,"./id":105,"./id.js":105,"./is":104,"./is.js":104,"./it":103,"./it.js":103,"./ja":102,"./ja.js":102,"./jv":101,"./jv.js":101,"./ka":100,"./ka.js":100,"./kk":99,"./kk.js":99,"./km":98,"./km.js":98,"./kn":97,"./kn.js":97,"./ko":96,"./ko.js":96,"./ky":95,"./ky.js":95,"./lb":94,"./lb.js":94,"./lo":93,"./lo.js":93,"./lt":92,"./lt.js":92,"./lv":91,"./lv.js":91,"./me":90,"./me.js":90,"./mi":89,"./mi.js":89,"./mk":88,"./mk.js":88,"./ml":87,"./ml.js":87,"./mn":86,"./mn.js":86,"./mr":85,"./mr.js":85,"./ms":84,"./ms-my":83,"./ms-my.js":83,"./ms.js":84,"./mt":82,"./mt.js":82,"./my":81,"./my.js":81,"./nb":80,"./nb.js":80,"./ne":79,"./ne.js":79,"./nl":78,"./nl-be":77,"./nl-be.js":77,"./nl.js":78,"./nn":76,"./nn.js":76,"./pa-in":75,"./pa-in.js":75,"./pl":74,"./pl.js":74,"./pt":73,"./pt-br":72,"./pt-br.js":72,"./pt.js":73,"./ro":71,"./ro.js":71,"./ru":70,"./ru.js":70,"./sd":69,"./sd.js":69,"./se":68,"./se.js":68,"./si":67,"./si.js":67,"./sk":66,"./sk.js":66,"./sl":65,"./sl.js":65,"./sq":64,"./sq.js":64,"./sr":63,"./sr-cyrl":62,"./sr-cyrl.js":62,"./sr.js":63,"./ss":61,"./ss.js":61,"./sv":60,"./sv.js":60,"./sw":59,"./sw.js":59,"./ta":58,"./ta.js":58,"./te":57,"./te.js":57,"./tet":56,"./tet.js":56,"./tg":55,"./tg.js":55,"./th":54,"./th.js":54,"./tl-ph":53,"./tl-ph.js":53,"./tlh":52,"./tlh.js":52,"./tr":51,"./tr.js":51,"./tzl":50,"./tzl.js":50,"./tzm":49,"./tzm-latn":48,"./tzm-latn.js":48,"./tzm.js":49,"./ug-cn":47,"./ug-cn.js":47,"./uk":46,"./uk.js":46,"./ur":45,"./ur.js":45,"./uz":44,"./uz-latn":43,"./uz-latn.js":43,"./uz.js":44,"./vi":42,"./vi.js":42,"./x-pseudo":41,"./x-pseudo.js":41,"./yo":40,"./yo.js":40,"./zh-cn":39,"./zh-cn.js":39,"./zh-hk":38,"./zh-hk.js":38,"./zh-tw":37,"./zh-tw.js":37};function o(e){var t=r(e);return n(t)}function r(e){var t=i[e];if(!(t+1)){var n=new Error('Cannot find module "'+e+'".');throw n.code="MODULE_NOT_FOUND",n}return t}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id=207},function(e,t,n){"use strict";var i=n(1);i="function"==typeof i?i:window.moment;var o=n(5),r=n(4),a=Number.MIN_SAFE_INTEGER||-9007199254740991,s=Number.MAX_SAFE_INTEGER||9007199254740991,l={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},d=Object.keys(l);function c(e,t){return e-t}function u(e){var t,n,i,o={},r=[];for(t=0,n=e.length;t<n;++t)o[i=e[t]]||(o[i]=!0,r.push(i));return r}function h(e,t,n,i){var o=function(e,t,n){for(var i,o,r,a=0,s=e.length-1;a>=0&&a<=s;){if(o=e[(i=a+s>>1)-1]||null,r=e[i],!o)return{lo:null,hi:r};if(r[t]<n)a=i+1;else{if(!(o[t]>n))return{lo:o,hi:r};s=i-1}}return{lo:r,hi:null}}(e,t,n),r=o.lo?o.hi?o.lo:e[e.length-2]:e[0],a=o.lo?o.hi?o.hi:e[e.length-1]:e[1],s=a[t]-r[t],l=s?(n-r[t])/s:0,d=(a[i]-r[i])*l;return r[i]+d}function f(e,t){var n=t.parser,o=t.parser||t.format;return"function"==typeof n?n(e):"string"==typeof e&&"string"==typeof o?i(e,o):(e instanceof i||(e=i(e)),e.isValid()?e:"function"==typeof o?o(e):e)}function p(e,t){if(r.isNullOrUndef(e))return null;var n=t.options.time,i=f(t.getRightValue(e),n);return i.isValid()?(n.round&&i.startOf(n.round),i.valueOf()):null}function m(e){for(var t=d.indexOf(e)+1,n=d.length;t<n;++t)if(l[d[t]].common)return d[t]}function g(e,t,n,o){var a,c=o.time,u=c.unit||function(e,t,n,i){var o,r,a,c=d.length;for(o=d.indexOf(e);o<c-1;++o)if(a=(r=l[d[o]]).steps?r.steps[r.steps.length-1]:s,r.common&&Math.ceil((n-t)/(a*r.size))<=i)return d[o];return d[c-1]}(c.minUnit,e,t,n),h=m(u),f=r.valueOrDefault(c.stepSize,c.unitStepSize),p="week"===u&&c.isoWeekday,g=o.ticks.major.enabled,y=l[u],v=i(e),A=i(t),b=[];for(f||(f=function(e,t,n,i){var o,r,a,s=t-e,d=l[n],c=d.size,u=d.steps;if(!u)return Math.ceil(s/(i*c));for(o=0,r=u.length;o<r&&(a=u[o],!(Math.ceil(s/(c*a))<=i));++o);return a}(e,t,u,n)),p&&(v=v.isoWeekday(p),A=A.isoWeekday(p)),v=v.startOf(p?"day":u),(A=A.startOf(p?"day":u))<t&&A.add(1,u),a=i(v),g&&h&&!p&&!c.round&&(a.startOf(h),a.add(~~((v-a)/(y.size*f))*f,u));a<A;a.add(f,u))b.push(+a);return b.push(+a),b}e.exports=function(e){var t=e.Scale.extend({initialize:function(){if(!i)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),e.Scale.prototype.initialize.call(this)},update:function(){var t=this.options;return t.time&&t.time.format,e.Scale.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),e.Scale.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var e,t,n,o,l,d,h=this,f=h.chart,m=h.options.time,g=m.unit||"day",y=s,v=a,A=[],b=[],w=[];for(e=0,n=f.data.labels.length;e<n;++e)w.push(p(f.data.labels[e],h));for(e=0,n=(f.data.datasets||[]).length;e<n;++e)if(f.isDatasetVisible(e))if(l=f.data.datasets[e].data,r.isObject(l[0]))for(b[e]=[],t=0,o=l.length;t<o;++t)d=p(l[t],h),A.push(d),b[e][t]=d;else A.push.apply(A,w),b[e]=w.slice(0);else b[e]=[];w.length&&(w=u(w).sort(c),y=Math.min(y,w[0]),v=Math.max(v,w[w.length-1])),A.length&&(A=u(A).sort(c),y=Math.min(y,A[0]),v=Math.max(v,A[A.length-1])),y=p(m.min,h)||y,v=p(m.max,h)||v,y=y===s?+i().startOf(g):y,v=v===a?+i().endOf(g)+1:v,h.min=Math.min(y,v),h.max=Math.max(y+1,v),h._horizontal=h.isHorizontal(),h._table=[],h._timestamps={data:A,datasets:b,labels:w}},buildTicks:function(){var e,t,n,o=this,r=o.min,a=o.max,s=o.options,c=s.time,u=[],y=[];switch(s.ticks.source){case"data":u=o._timestamps.data;break;case"labels":u=o._timestamps.labels;break;case"auto":default:u=g(r,a,o.getLabelCapacity(r),s)}for("ticks"===s.bounds&&u.length&&(r=u[0],a=u[u.length-1]),r=p(c.min,o)||r,a=p(c.max,o)||a,e=0,t=u.length;e<t;++e)(n=u[e])>=r&&n<=a&&y.push(n);return o.min=r,o.max=a,o._unit=c.unit||function(e,t,n,o){var r,a,s=i.duration(i(o).diff(i(n)));for(r=d.length-1;r>=d.indexOf(t);r--)if(a=d[r],l[a].common&&s.as(a)>=e.length)return a;return d[t?d.indexOf(t):0]}(y,c.minUnit,o.min,o.max),o._majorUnit=m(o._unit),o._table=function(e,t,n,i){if("linear"===i||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var o,r,a,s,l,d=[],c=[t];for(o=0,r=e.length;o<r;++o)(s=e[o])>t&&s<n&&c.push(s);for(c.push(n),o=0,r=c.length;o<r;++o)l=c[o+1],a=c[o-1],s=c[o],void 0!==a&&void 0!==l&&Math.round((l+a)/2)===s||d.push({time:s,pos:o/(r-1)});return d}(o._timestamps.data,r,a,s.distribution),o._offsets=function(e,t,n,i,o){var r,a,s=0,l=0;return o.offset&&t.length&&(o.time.min||(r=t.length>1?t[1]:i,a=t[0],s=(h(e,"time",r,"pos")-h(e,"time",a,"pos"))/2),o.time.max||(r=t[t.length-1],a=t.length>1?t[t.length-2]:n,l=(h(e,"time",r,"pos")-h(e,"time",a,"pos"))/2)),{left:s,right:l}}(o._table,y,r,a,s),o._labelFormat=function(e,t){var n,i,o,r=e.length;for(n=0;n<r;n++){if(0!==(i=f(e[n],t)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===i.second()&&0===i.minute()&&0===i.hour()||(o=!0)}return o?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(o._timestamps.data,c),function(e,t){var n,o,r,a,s=[];for(n=0,o=e.length;n<o;++n)r=e[n],a=!!t&&r===+i(r).startOf(t),s.push({value:r,major:a});return s}(y,o._majorUnit)},getLabelForIndex:function(e,t){var n=this.chart.data,i=this.options.time,o=n.labels&&e<n.labels.length?n.labels[e]:"",a=n.datasets[t].data[e];return r.isObject(a)&&(o=this.getRightValue(a)),i.tooltipFormat?f(o,i).format(i.tooltipFormat):"string"==typeof o?o:f(o,i).format(this._labelFormat)},tickFormatFunction:function(e,t,n,i){var o=this.options,a=e.valueOf(),s=o.time.displayFormats,l=s[this._unit],d=this._majorUnit,c=s[d],u=e.clone().startOf(d).valueOf(),h=o.ticks.major,f=h.enabled&&d&&c&&a===u,p=e.format(i||(f?c:l)),m=f?h:o.ticks.minor,g=r.valueOrDefault(m.callback,m.userCallback);return g?g(p,t,n):p},convertTicksToLabels:function(e){var t,n,o=[];for(t=0,n=e.length;t<n;++t)o.push(this.tickFormatFunction(i(e[t].value),t,e));return o},getPixelForOffset:function(e){var t=this,n=t._horizontal?t.width:t.height,i=t._horizontal?t.left:t.top,o=h(t._table,"time",e,"pos");return i+n*(t._offsets.left+o)/(t._offsets.left+1+t._offsets.right)},getPixelForValue:function(e,t,n){var i=null;if(void 0!==t&&void 0!==n&&(i=this._timestamps.datasets[n][t]),null===i&&(i=p(e,this)),null!==i)return this.getPixelForOffset(i)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._horizontal?t.width:t.height,o=t._horizontal?t.left:t.top,r=(n?(e-o)/n:0)*(t._offsets.left+1+t._offsets.left)-t._offsets.right,a=h(t._table,"pos",r,"time");return i(a)},getLabelWidth:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,i=r.toRadians(t.maxRotation),a=Math.cos(i),s=Math.sin(i);return n*a+r.valueOrDefault(t.fontSize,o.global.defaultFontSize)*s},getLabelCapacity:function(e){var t=this,n=t.options.time.displayFormats.millisecond,o=t.tickFormatFunction(i(e),0,[],n),r=t.getLabelWidth(o),a=t.isHorizontal()?t.width:t.height,s=Math.floor(a/r);return s>0?s:1}});e.scaleService.registerScaleType("time",t,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},function(e,t,n){"use strict";var i=n(5),o=n(4),r=n(18);e.exports=function(e){var t=i.global,n={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:r.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function a(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function s(e){var n=e.options.pointLabels,i=o.valueOrDefault(n.fontSize,t.defaultFontSize),r=o.valueOrDefault(n.fontStyle,t.defaultFontStyle),a=o.valueOrDefault(n.fontFamily,t.defaultFontFamily);return{size:i,style:r,family:a,font:o.fontString(i,r,a)}}function l(e,t,n,i,o){return e===i||e===o?{start:t-n/2,end:t+n/2}:e<i||e>o?{start:t-n-5,end:t}:{start:t,end:t+n+5}}function d(e){return 0===e||180===e?"center":e<180?"left":"right"}function c(e,t,n,i){if(o.isArray(t))for(var r=n.y,a=1.5*i,s=0;s<t.length;++s)e.fillText(t[s],n.x,r),r+=a;else e.fillText(t,n.x,n.y)}function u(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function h(e){return o.isNumber(e)?e:0}var f=e.LinearScaleBase.extend({setDimensions:function(){var e=this,n=e.options,i=n.ticks;e.width=e.maxWidth,e.height=e.maxHeight,e.xCenter=Math.round(e.width/2),e.yCenter=Math.round(e.height/2);var r=o.min([e.height,e.width]),a=o.valueOrDefault(i.fontSize,t.defaultFontSize);e.drawingArea=n.display?r/2-(a/2+i.backdropPaddingY):r/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;o.each(t.data.datasets,function(r,a){if(t.isDatasetVisible(a)){var s=t.getDatasetMeta(a);o.each(r.data,function(t,o){var r=+e.getRightValue(t);isNaN(r)||s.data[o].hidden||(n=Math.min(r,n),i=Math.max(r,i))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=i===Number.NEGATIVE_INFINITY?0:i,e.handleTickRangeOptions()},getTickLimit:function(){var e=this.options.ticks,n=o.valueOrDefault(e.fontSize,t.defaultFontSize);return Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var t=this;e.LinearScaleBase.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e,t;this.options.pointLabels.display?function(e){var t,n,i,r=s(e),d=Math.min(e.height/2,e.width/2),c={r:e.width,l:0,t:e.height,b:0},u={};e.ctx.font=r.font,e._pointLabelSizes=[];var h,f,p,m=a(e);for(t=0;t<m;t++){i=e.getPointPosition(t,d),h=e.ctx,f=r.size,p=e.pointLabels[t]||"",n=o.isArray(p)?{w:o.longestText(h,h.font,p),h:p.length*f+1.5*(p.length-1)*f}:{w:h.measureText(p).width,h:f},e._pointLabelSizes[t]=n;var g=e.getIndexAngle(t),y=o.toDegrees(g)%360,v=l(y,i.x,n.w,0,180),A=l(y,i.y,n.h,90,270);v.start<c.l&&(c.l=v.start,u.l=g),v.end>c.r&&(c.r=v.end,u.r=g),A.start<c.t&&(c.t=A.start,u.t=g),A.end>c.b&&(c.b=A.end,u.b=g)}e.setReductions(d,c,u)}(this):(e=this,t=Math.min(e.height/2,e.width/2),e.drawingArea=Math.round(t),e.setCenterPoint(0,0,0,0))},setReductions:function(e,t,n){var i=t.l/Math.sin(n.l),o=Math.max(t.r-this.width,0)/Math.sin(n.r),r=-t.t/Math.cos(n.t),a=-Math.max(t.b-this.height,0)/Math.cos(n.b);i=h(i),o=h(o),r=h(r),a=h(a),this.drawingArea=Math.min(Math.round(e-(i+o)/2),Math.round(e-(r+a)/2)),this.setCenterPoint(i,o,r,a)},setCenterPoint:function(e,t,n,i){var o=this,r=o.width-t-o.drawingArea,a=e+o.drawingArea,s=n+o.drawingArea,l=o.height-i-o.drawingArea;o.xCenter=Math.round((a+r)/2+o.left),o.yCenter=Math.round((s+l)/2+o.top)},getIndexAngle:function(e){return e*(2*Math.PI/a(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.round(Math.cos(n)*t)+this.xCenter,y:Math.round(Math.sin(n)*t)+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this.min,t=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0)},draw:function(){var e=this,n=e.options,i=n.gridLines,r=n.ticks,l=o.valueOrDefault;if(n.display){var h=e.ctx,f=this.getIndexAngle(0),p=l(r.fontSize,t.defaultFontSize),m=l(r.fontStyle,t.defaultFontStyle),g=l(r.fontFamily,t.defaultFontFamily),y=o.fontString(p,m,g);o.each(e.ticks,function(n,s){if(s>0||r.reverse){var d=e.getDistanceFromCenterForValue(e.ticksAsNumbers[s]);if(i.display&&0!==s&&function(e,t,n,i){var r=e.ctx;if(r.strokeStyle=o.valueAtIndexOrDefault(t.color,i-1),r.lineWidth=o.valueAtIndexOrDefault(t.lineWidth,i-1),e.options.gridLines.circular)r.beginPath(),r.arc(e.xCenter,e.yCenter,n,0,2*Math.PI),r.closePath(),r.stroke();else{var s=a(e);if(0===s)return;r.beginPath();var l=e.getPointPosition(0,n);r.moveTo(l.x,l.y);for(var d=1;d<s;d++)l=e.getPointPosition(d,n),r.lineTo(l.x,l.y);r.closePath(),r.stroke()}}(e,i,d,s),r.display){var c=l(r.fontColor,t.defaultFontColor);if(h.font=y,h.save(),h.translate(e.xCenter,e.yCenter),h.rotate(f),r.showLabelBackdrop){var u=h.measureText(n).width;h.fillStyle=r.backdropColor,h.fillRect(-u/2-r.backdropPaddingX,-d-p/2-r.backdropPaddingY,u+2*r.backdropPaddingX,p+2*r.backdropPaddingY)}h.textAlign="center",h.textBaseline="middle",h.fillStyle=c,h.fillText(n,0,-d),h.restore()}}}),(n.angleLines.display||n.pointLabels.display)&&function(e){var n=e.ctx,i=e.options,r=i.angleLines,l=i.pointLabels;n.lineWidth=r.lineWidth,n.strokeStyle=r.color;var h=e.getDistanceFromCenterForValue(i.ticks.reverse?e.min:e.max),f=s(e);n.textBaseline="top";for(var p=a(e)-1;p>=0;p--){if(r.display){var m=e.getPointPosition(p,h);n.beginPath(),n.moveTo(e.xCenter,e.yCenter),n.lineTo(m.x,m.y),n.stroke(),n.closePath()}if(l.display){var g=e.getPointPosition(p,h+5),y=o.valueAtIndexOrDefault(l.fontColor,p,t.defaultFontColor);n.font=f.font,n.fillStyle=y;var v=e.getIndexAngle(p),A=o.toDegrees(v);n.textAlign=d(A),u(A,e._pointLabelSizes[p],g),c(n,e.pointLabels[p]||"",g,f.size)}}}(e)}}});e.scaleService.registerScaleType("radialLinear",f,n)}},function(e,t,n){"use strict";var i=n(4),o=n(18);e.exports=function(e){var t={position:"left",ticks:{callback:o.formatters.logarithmic}},n=e.Scale.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,o=n.data.datasets,r=e.isHorizontal();function a(t){return r?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null,e.minNotZero=null;var s=t.stacked;if(void 0===s&&i.each(o,function(e,t){if(!s){var i=n.getDatasetMeta(t);n.isDatasetVisible(t)&&a(i)&&void 0!==i.stack&&(s=!0)}}),t.stacked||s){var l={};i.each(o,function(o,r){var s=n.getDatasetMeta(r),d=[s.type,void 0===t.stacked&&void 0===s.stack?r:"",s.stack].join(".");n.isDatasetVisible(r)&&a(s)&&(void 0===l[d]&&(l[d]=[]),i.each(o.data,function(t,n){var i=l[d],o=+e.getRightValue(t);isNaN(o)||s.data[n].hidden||o<0||(i[n]=i[n]||0,i[n]+=o)}))}),i.each(l,function(t){if(t.length>0){var n=i.min(t),o=i.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?o:Math.max(e.max,o)}})}else i.each(o,function(t,o){var r=n.getDatasetMeta(o);n.isDatasetVisible(o)&&a(r)&&i.each(t.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||r.data[n].hidden||i<0||(null===e.min?e.min=i:i<e.min&&(e.min=i),null===e.max?e.max=i:i>e.max&&(e.max=i),0!==i&&(null===e.minNotZero||i<e.minNotZero)&&(e.minNotZero=i))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,n=i.valueOrDefault;e.min=n(t.min,e.min),e.max=n(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(i.log10(e.min))-1),e.max=Math.pow(10,Math.floor(i.log10(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(i.log10(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(i.log10(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(i.log10(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),o={min:t.min,max:t.max},r=e.ticks=function(e,t){var n,o,r=[],a=i.valueOrDefault,s=a(e.min,Math.pow(10,Math.floor(i.log10(t.min)))),l=Math.floor(i.log10(t.max)),d=Math.ceil(t.max/Math.pow(10,l));0===s?(n=Math.floor(i.log10(t.minNotZero)),o=Math.floor(t.minNotZero/Math.pow(10,n)),r.push(s),s=o*Math.pow(10,n)):(n=Math.floor(i.log10(s)),o=Math.floor(s/Math.pow(10,n)));var c=n<0?Math.pow(10,Math.abs(n)):1;do{r.push(s),10==++o&&(o=1,c=++n>=0?1:c),s=Math.round(o*Math.pow(10,n)*c)/c}while(n<l||n===l&&o<d);var u=a(e.max,s);return r.push(u),r}(o,e);e.max=i.max(r),e.min=i.min(r),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),e.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(i.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(t){var n,o,r,a,s,l=this,d=l.options.ticks.reverse,c=i.log10,u=l._getFirstTickValue(l.minNotZero),h=0;return t=+l.getRightValue(t),d?(r=l.end,a=l.start,s=-1):(r=l.start,a=l.end,s=1),l.isHorizontal()?(n=l.width,o=d?l.right:l.left):(n=l.height,s*=-1,o=d?l.top:l.bottom),t!==r&&(0===r&&(n-=h=i.getValueOrDefault(l.options.ticks.fontSize,e.defaults.global.defaultFontSize),r=u),0!==t&&(h+=n/(c(a)-c(r))*(c(t)-c(r))),o+=s*h),o},getValueForPixel:function(t){var n,o,r,a,s=this,l=s.options.ticks.reverse,d=i.log10,c=s._getFirstTickValue(s.minNotZero);if(l?(o=s.end,r=s.start):(o=s.start,r=s.end),s.isHorizontal()?(n=s.width,a=l?s.right-t:t-s.left):(n=s.height,a=l?t-s.top:s.bottom-t),a!==o){if(0===o){var u=i.getValueOrDefault(s.options.ticks.fontSize,e.defaults.global.defaultFontSize);a-=u,n-=u,o=c}a*=d(r)-d(o),a/=n,a=Math.pow(10,d(o)+a)}return a}});e.scaleService.registerScaleType("logarithmic",n,t)}},function(e,t,n){"use strict";var i=n(5),o=n(4),r=n(18);e.exports=function(e){var t={position:"left",ticks:{callback:r.formatters.linear}},n=e.LinearScaleBase.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,i=n.data.datasets,r=e.isHorizontal();function a(t){return r?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null;var s=t.stacked;if(void 0===s&&o.each(i,function(e,t){if(!s){var i=n.getDatasetMeta(t);n.isDatasetVisible(t)&&a(i)&&void 0!==i.stack&&(s=!0)}}),t.stacked||s){var l={};o.each(i,function(i,r){var s=n.getDatasetMeta(r),d=[s.type,void 0===t.stacked&&void 0===s.stack?r:"",s.stack].join(".");void 0===l[d]&&(l[d]={positiveValues:[],negativeValues:[]});var c=l[d].positiveValues,u=l[d].negativeValues;n.isDatasetVisible(r)&&a(s)&&o.each(i.data,function(n,i){var o=+e.getRightValue(n);isNaN(o)||s.data[i].hidden||(c[i]=c[i]||0,u[i]=u[i]||0,t.relativePoints?c[i]=100:o<0?u[i]+=o:c[i]+=o)})}),o.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),i=o.min(n),r=o.max(n);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?r:Math.max(e.max,r)})}else o.each(i,function(t,i){var r=n.getDatasetMeta(i);n.isDatasetVisible(i)&&a(r)&&o.each(t.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||r.data[n].hidden||(null===e.min?e.min=i:i<e.min&&(e.min=i),null===e.max?e.max=i:i>e.max&&(e.max=i))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var e,t=this.options.ticks;if(this.isHorizontal())e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.width/50));else{var n=o.valueOrDefault(t.fontSize,i.global.defaultFontSize);e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.height/(2*n)))}return e},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,i=+t.getRightValue(e),o=t.end-n;return t.isHorizontal()?t.left+t.width/o*(i-n):t.bottom-t.height/o*(i-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal(),i=n?t.width:t.height,o=(n?e-t.left:t.bottom-e)/i;return t.start+(t.end-t.start)*o},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});e.scaleService.registerScaleType("linear",n,t)}},function(e,t,n){"use strict";e.exports=function(e){var t=e.Scale.extend({getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e,t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1,void 0!==t.options.ticks.min&&(e=n.indexOf(t.options.ticks.min),t.minIndex=-1!==e?e:t.minIndex),void 0!==t.options.ticks.max&&(e=n.indexOf(t.options.ticks.max),t.maxIndex=-1!==e?e:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+1)},getLabelForIndex:function(e,t){var n=this,i=n.chart.data,o=n.isHorizontal();return i.yLabels&&!o?n.getRightValue(i.datasets[t].data[e]):n.ticks[e-n.minIndex]},getPixelForValue:function(e,t){var n,i=this,o=i.options.offset,r=Math.max(i.maxIndex+1-i.minIndex-(o?0:1),1);if(void 0!==e&&null!==e&&(n=i.isHorizontal()?e.x:e.y),void 0!==n||void 0!==e&&isNaN(t)){var a=i.getLabels();e=n||e;var s=a.indexOf(e);t=-1!==s?s:t}if(i.isHorizontal()){var l=i.width/r,d=l*(t-i.minIndex);return o&&(d+=l/2),i.left+Math.round(d)}var c=i.height/r,u=c*(t-i.minIndex);return o&&(u+=c/2),i.top+Math.round(u)},getPixelForTick:function(e){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null)},getValueForPixel:function(e){var t=this,n=t.options.offset,i=Math.max(t._ticks.length-(n?0:1),1),o=t.isHorizontal(),r=(o?t.width:t.height)/i;return e-=o?t.left:t.top,n&&(e-=r/2),(e<=0?0:Math.round(e/r))+t.minIndex},getBasePixel:function(){return this.bottom}});e.scaleService.registerScaleType("category",t,{position:"bottom"})}},function(e,t,n){"use strict";var i=n(4);e.exports=function(e){var t=i.noop;e.LinearScaleBase=e.Scale.extend({getRightValue:function(t){return"string"==typeof t?+t:e.Scale.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=i.sign(e.min),o=i.sign(e.max);n<0&&o<0?e.max=0:n>0&&o>0&&(e.min=0)}var r=void 0!==t.min||void 0!==t.suggestedMin,a=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),r!==a&&e.min>=e.max&&(r?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),o={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,stepSize:i.valueOrDefault(t.fixedStepSize,t.stepSize)},r=e.ticks=function(e,t){var n,o=[];if(e.stepSize&&e.stepSize>0)n=e.stepSize;else{var r=i.niceNum(t.max-t.min,!1);n=i.niceNum(r/(e.maxTicks-1),!0)}var a=Math.floor(t.min/n)*n,s=Math.ceil(t.max/n)*n;e.min&&e.max&&e.stepSize&&i.almostWhole((e.max-e.min)/e.stepSize,n/1e3)&&(a=e.min,s=e.max);var l=(s-a)/n;l=i.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l);var d=1;n<1&&(d=Math.pow(10,n.toString().length-2),a=Math.round(a*d)/d,s=Math.round(s*d)/d),o.push(void 0!==e.min?e.min:a);for(var c=1;c<l;++c)o.push(Math.round((a+c*n)*d)/d);return o.push(void 0!==e.max?e.max:s),o}(o,e);e.handleDirectionalChanges(),e.max=i.max(r),e.min=i.min(r),t.reverse?(r.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),e.Scale.prototype.convertTicksToLabels.call(t)}})}},function(e,t,n){"use strict";var i=n(5),o=n(11),r=n(4);i._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:r.noop,title:function(e,t){var n="",i=t.labels,o=i?i.length:0;if(e.length>0){var r=e[0];r.xLabel?n=r.xLabel:o>0&&r.index<o&&(n=i[r.index])}return n},afterTitle:r.noop,beforeBody:r.noop,beforeLabel:r.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),n+e.yLabel},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:r.noop,afterBody:r.noop,beforeFooter:r.noop,footer:r.noop,afterFooter:r.noop}}}),e.exports=function(e){function t(e,t){var n=r.color(e);return n.alpha(t*n.alpha()).rgbaString()}function n(e,t){return t&&(r.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function a(e){var t=i.global,n=r.valueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:n(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:n(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:n(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:n(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:n(e.titleFontStyle,t.defaultFontStyle),titleFontSize:n(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:n(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:n(e.footerFontStyle,t.defaultFontStyle),footerFontSize:n(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}e.Tooltip=o.extend({initialize:function(){this._model=a(this._options),this._lastActive=[]},getTitle:function(){var e=this._options.callbacks,t=e.beforeTitle.apply(this,arguments),i=e.title.apply(this,arguments),o=e.afterTitle.apply(this,arguments),r=[];return n(r=n(r=n(r,t),i),o)},getBeforeBody:function(){var e=this._options.callbacks.beforeBody.apply(this,arguments);return r.isArray(e)?e:void 0!==e?[e]:[]},getBody:function(e,t){var i=this,o=i._options.callbacks,a=[];return r.each(e,function(e){var r={before:[],lines:[],after:[]};n(r.before,o.beforeLabel.call(i,e,t)),n(r.lines,o.label.call(i,e,t)),n(r.after,o.afterLabel.call(i,e,t)),a.push(r)}),a},getAfterBody:function(){var e=this._options.callbacks.afterBody.apply(this,arguments);return r.isArray(e)?e:void 0!==e?[e]:[]},getFooter:function(){var e=this._options.callbacks,t=e.beforeFooter.apply(this,arguments),i=e.footer.apply(this,arguments),o=e.afterFooter.apply(this,arguments),r=[];return n(r=n(r=n(r,t),i),o)},update:function(t){var n,i,o,s,l,d,c,u=this,h=u._options,f=u._model,p=u._model=a(h),m=u._active,g=u._data,y={xAlign:f.xAlign,yAlign:f.yAlign},v={x:f.x,y:f.y},A={width:f.width,height:f.height},b={x:f.caretX,y:f.caretY};if(m.length){p.opacity=1;var w=[],_=[];b=e.Tooltip.positioners[h.position].call(u,m,u._eventPosition);var M=[];for(n=0,i=m.length;n<i;++n)M.push((s=void 0,l=void 0,s=(o=m[n])._xScale,l=o._yScale||o._scale,d=o._index,c=o._datasetIndex,{xLabel:s?s.getLabelForIndex(d,c):"",yLabel:l?l.getLabelForIndex(d,c):"",index:d,datasetIndex:c,x:o._model.x,y:o._model.y}));h.filter&&(M=M.filter(function(e){return h.filter(e,g)})),h.itemSort&&(M=M.sort(function(e,t){return h.itemSort(e,t,g)})),r.each(M,function(e){w.push(h.callbacks.labelColor.call(u,e,u._chart)),_.push(h.callbacks.labelTextColor.call(u,e,u._chart))}),p.title=u.getTitle(M,g),p.beforeBody=u.getBeforeBody(M,g),p.body=u.getBody(M,g),p.afterBody=u.getAfterBody(M,g),p.footer=u.getFooter(M,g),p.x=Math.round(b.x),p.y=Math.round(b.y),p.caretPadding=h.caretPadding,p.labelColors=w,p.labelTextColors=_,p.dataPoints=M,v=function(e,t,n,i){var o=e.x,r=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,d=n.xAlign,c=n.yAlign,u=a+s,h=l+s;return"right"===d?o-=t.width:"center"===d&&((o-=t.width/2)+t.width>i.width&&(o=i.width-t.width),o<0&&(o=0)),"top"===c?r+=u:r-="bottom"===c?t.height+u:t.height/2,"center"===c?"left"===d?o+=u:"right"===d&&(o-=u):"left"===d?o-=h:"right"===d&&(o+=h),{x:o,y:r}}(p,A=function(e,t){var n=e._chart.ctx,i=2*t.yPadding,o=0,a=t.body,s=a.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);s+=t.beforeBody.length+t.afterBody.length;var l=t.title.length,d=t.footer.length,c=t.titleFontSize,u=t.bodyFontSize,h=t.footerFontSize;i+=l*c,i+=l?(l-1)*t.titleSpacing:0,i+=l?t.titleMarginBottom:0,i+=s*u,i+=s?(s-1)*t.bodySpacing:0,i+=d?t.footerMarginTop:0,i+=d*h,i+=d?(d-1)*t.footerSpacing:0;var f=0,p=function(e){o=Math.max(o,n.measureText(e).width+f)};return n.font=r.fontString(c,t._titleFontStyle,t._titleFontFamily),r.each(t.title,p),n.font=r.fontString(u,t._bodyFontStyle,t._bodyFontFamily),r.each(t.beforeBody.concat(t.afterBody),p),f=t.displayColors?u+2:0,r.each(a,function(e){r.each(e.before,p),r.each(e.lines,p),r.each(e.after,p)}),f=0,n.font=r.fontString(h,t._footerFontStyle,t._footerFontFamily),r.each(t.footer,p),{width:o+=2*t.xPadding,height:i}}(this,p),y=function(e,t){var n,i,o,r,a,s=e._model,l=e._chart,d=e._chart.chartArea,c="center",u="center";s.y<t.height?u="top":s.y>l.height-t.height&&(u="bottom");var h=(d.left+d.right)/2,f=(d.top+d.bottom)/2;"center"===u?(n=function(e){return e<=h},i=function(e){return e>h}):(n=function(e){return e<=t.width/2},i=function(e){return e>=l.width-t.width/2}),o=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},r=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=f?"top":"bottom"},n(s.x)?(c="left",o(s.x)&&(c="center",u=a(s.y))):i(s.x)&&(c="right",r(s.x)&&(c="center",u=a(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:u}}(this,A),u._chart)}else p.opacity=0;return p.xAlign=y.xAlign,p.yAlign=y.yAlign,p.x=v.x,p.y=v.y,p.width=A.width,p.height=A.height,p.caretX=b.x,p.caretY=b.y,u._model=p,t&&h.custom&&h.custom.call(u,p),u},drawCaret:function(e,t){var n=this._chart.ctx,i=this._view,o=this.getCaretPosition(e,t,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)},getCaretPosition:function(e,t,n){var i,o,r,a,s,l,d=n.caretSize,c=n.cornerRadius,u=n.xAlign,h=n.yAlign,f=e.x,p=e.y,m=t.width,g=t.height;if("center"===h)s=p+g/2,"left"===u?(o=(i=f)-d,r=i,a=s+d,l=s-d):(o=(i=f+m)+d,r=i,a=s-d,l=s+d);else if("left"===u?(i=(o=f+c+d)-d,r=o+d):"right"===u?(i=(o=f+m-c-d)-d,r=o+d):(i=(o=n.caretX)-d,r=o+d),"top"===h)s=(a=p)-d,l=a;else{s=(a=p+g)+d,l=a;var y=r;r=i,i=y}return{x1:i,x2:o,x3:r,y1:a,y2:s,y3:l}},drawTitle:function(e,n,i,o){var a=n.title;if(a.length){i.textAlign=n._titleAlign,i.textBaseline="top";var s,l,d=n.titleFontSize,c=n.titleSpacing;for(i.fillStyle=t(n.titleFontColor,o),i.font=r.fontString(d,n._titleFontStyle,n._titleFontFamily),s=0,l=a.length;s<l;++s)i.fillText(a[s],e.x,e.y),e.y+=d+c,s+1===a.length&&(e.y+=n.titleMarginBottom-c)}},drawBody:function(e,n,i,o){var a=n.bodyFontSize,s=n.bodySpacing,l=n.body;i.textAlign=n._bodyAlign,i.textBaseline="top",i.font=r.fontString(a,n._bodyFontStyle,n._bodyFontFamily);var d=0,c=function(t){i.fillText(t,e.x+d,e.y),e.y+=a+s};i.fillStyle=t(n.bodyFontColor,o),r.each(n.beforeBody,c);var u=n.displayColors;d=u?a+2:0,r.each(l,function(s,l){var d=t(n.labelTextColors[l],o);i.fillStyle=d,r.each(s.before,c),r.each(s.lines,function(r){u&&(i.fillStyle=t(n.legendColorBackground,o),i.fillRect(e.x,e.y,a,a),i.lineWidth=1,i.strokeStyle=t(n.labelColors[l].borderColor,o),i.strokeRect(e.x,e.y,a,a),i.fillStyle=t(n.labelColors[l].backgroundColor,o),i.fillRect(e.x+1,e.y+1,a-2,a-2),i.fillStyle=d),c(r)}),r.each(s.after,c)}),d=0,r.each(n.afterBody,c),e.y-=s},drawFooter:function(e,n,i,o){var a=n.footer;a.length&&(e.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top",i.fillStyle=t(n.footerFontColor,o),i.font=r.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),r.each(a,function(t){i.fillText(t,e.x,e.y),e.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(e,n,i,o,r){i.fillStyle=t(n.backgroundColor,r),i.strokeStyle=t(n.borderColor,r),i.lineWidth=n.borderWidth;var a=n.xAlign,s=n.yAlign,l=e.x,d=e.y,c=o.width,u=o.height,h=n.cornerRadius;i.beginPath(),i.moveTo(l+h,d),"top"===s&&this.drawCaret(e,o),i.lineTo(l+c-h,d),i.quadraticCurveTo(l+c,d,l+c,d+h),"center"===s&&"right"===a&&this.drawCaret(e,o),i.lineTo(l+c,d+u-h),i.quadraticCurveTo(l+c,d+u,l+c-h,d+u),"bottom"===s&&this.drawCaret(e,o),i.lineTo(l+h,d+u),i.quadraticCurveTo(l,d+u,l,d+u-h),"center"===s&&"left"===a&&this.drawCaret(e,o),i.lineTo(l,d+h),i.quadraticCurveTo(l,d,l+h,d),i.closePath(),i.fill(),n.borderWidth>0&&i.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},o=Math.abs(t.opacity<.001)?0:t.opacity,r=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&r&&(this.drawBackground(i,t,e,n,o),i.x+=t.xPadding,i.y+=t.yPadding,this.drawTitle(i,t,e,o),this.drawBody(i,t,e,o),this.drawFooter(i,t,e,o))}},handleEvent:function(e){var t,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(e,i.mode,i),(t=!r.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),e.Tooltip.positioners={average:function(e){if(!e.length)return!1;var t,n,i=0,o=0,r=0;for(t=0,n=e.length;t<n;++t){var a=e[t];if(a&&a.hasValue()){var s=a.tooltipPosition();i+=s.x,o+=s.y,++r}}return{x:Math.round(i/r),y:Math.round(o/r)}},nearest:function(e,t){var n,i,o,a=t.x,s=t.y,l=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){var d=e[n];if(d&&d.hasValue()){var c=d.getCenterPoint(),u=r.distanceBetweenPoints(t,c);u<l&&(l=u,o=d)}}if(o){var h=o.tooltipPosition();a=h.x,s=h.y}return{x:a,y:s}}}}},function(e,t,n){"use strict";var i=n(5),o=n(11),r=n(4),a=n(18);function s(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(e[t].label);return i}function l(e,t,n){var i=e.getPixelForTick(t);return n&&(i-=0===t?(e.getPixelForTick(1)-i)/2:(i-e.getPixelForTick(t-1))/2),i}i._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:a.formatters.values,minor:{},major:{}}}),e.exports=function(e){function t(e,t,n){return r.isArray(t)?r.longestText(e,n,t):e.measureText(t).width}function n(e){var t=r.valueOrDefault,n=i.global,o=t(e.fontSize,n.defaultFontSize),a=t(e.fontStyle,n.defaultFontStyle),s=t(e.fontFamily,n.defaultFontFamily);return{size:o,style:a,family:s,font:r.fontString(o,a,s)}}function a(e){return r.options.toLineHeight(r.valueOrDefault(e.lineHeight,1.2),r.valueOrDefault(e.fontSize,i.global.defaultFontSize))}e.Scale=o.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var e=this.options.ticks;for(var t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){r.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,o,a,s,l,d,c=this;for(c.beforeUpdate(),c.maxWidth=e,c.maxHeight=t,c.margins=r.extend({left:0,right:0,top:0,bottom:0},n),c.longestTextCache=c.longestTextCache||{},c.beforeSetDimensions(),c.setDimensions(),c.afterSetDimensions(),c.beforeDataLimits(),c.determineDataLimits(),c.afterDataLimits(),c.beforeBuildTicks(),l=c.buildTicks()||[],c.afterBuildTicks(),c.beforeTickToLabelConversion(),a=c.convertTicksToLabels(l)||c.ticks,c.afterTickToLabelConversion(),c.ticks=a,i=0,o=a.length;i<o;++i)s=a[i],(d=l[i])?d.label=s:l.push(d={label:s,major:!1});return c._ticks=l,c.beforeCalculateTickRotation(),c.calculateTickRotation(),c.afterCalculateTickRotation(),c.beforeFit(),c.fit(),c.afterFit(),c.afterUpdate(),c.minSize},afterUpdate:function(){r.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){r.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){r.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){r.callback(this.options.beforeDataLimits,[this])},determineDataLimits:r.noop,afterDataLimits:function(){r.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){r.callback(this.options.beforeBuildTicks,[this])},buildTicks:r.noop,afterBuildTicks:function(){r.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){r.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){r.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){r.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e=this,t=e.ctx,i=e.options.ticks,o=s(e._ticks),a=n(i);t.font=a.font;var l=i.minRotation||0;if(o.length&&e.options.display&&e.isHorizontal())for(var d,c=r.longestText(t,a.font,o,e.longestTextCache),u=c,h=e.getPixelForTick(1)-e.getPixelForTick(0)-6;u>h&&l<i.maxRotation;){var f=r.toRadians(l);if(d=Math.cos(f),Math.sin(f)*c>e.maxHeight){l--;break}l++,u=d*c}e.labelRotation=l},afterCalculateTickRotation:function(){r.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){r.callback(this.options.beforeFit,[this])},fit:function(){var e=this,i=e.minSize={width:0,height:0},o=s(e._ticks),l=e.options,d=l.ticks,c=l.scaleLabel,u=l.gridLines,h=l.display,f=e.isHorizontal(),p=n(d),m=l.gridLines.tickMarkLength;if(i.width=f?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:h&&u.drawTicks?m:0,i.height=f?h&&u.drawTicks?m:0:e.maxHeight,c.display&&h){var g=a(c)+r.options.toPadding(c.padding).height;f?i.height+=g:i.width+=g}if(d.display&&h){var y=r.longestText(e.ctx,p.font,o,e.longestTextCache),v=r.numberOfLabelLines(o),A=.5*p.size,b=e.options.ticks.padding;if(f){e.longestLabelWidth=y;var w=r.toRadians(e.labelRotation),_=Math.cos(w),M=Math.sin(w)*y+p.size*v+A*(v-1)+A;i.height=Math.min(e.maxHeight,i.height+M+b),e.ctx.font=p.font;var x=t(e.ctx,o[0],p.font),k=t(e.ctx,o[o.length-1],p.font);0!==e.labelRotation?(e.paddingLeft="bottom"===l.position?_*x+3:_*A+3,e.paddingRight="bottom"===l.position?_*A+3:_*k+3):(e.paddingLeft=x/2+3,e.paddingRight=k/2+3)}else d.mirror?y=0:y+=b+A,i.width=Math.min(e.maxWidth,i.width+y),e.paddingTop=p.size/2,e.paddingBottom=p.size/2}e.handleMargins(),e.width=i.width,e.height=i.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){r.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(r.isNullOrUndef(e))return NaN;if("number"==typeof e&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:r.noop,getPixelForValue:r.noop,getValueForPixel:r.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var i=(t.width-(t.paddingLeft+t.paddingRight))/Math.max(t._ticks.length-(n?0:1),1),o=i*e+t.paddingLeft;return n&&(o+=i/2),t.left+Math.round(o)+(t.isFullWidth()?t.margins.left:0)}var r=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(r/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var n=(t.width-(t.paddingLeft+t.paddingRight))*e+t.paddingLeft;return t.left+Math.round(n)+(t.isFullWidth()?t.margins.left:0)}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,i,o,a=this,s=a.isHorizontal(),l=a.options.ticks.minor,d=e.length,c=r.toRadians(a.labelRotation),u=Math.cos(c),h=a.longestLabelWidth*u,f=[];for(l.maxTicksLimit&&(o=l.maxTicksLimit),s&&(t=!1,(h+l.autoSkipPadding)*d>a.width-(a.paddingLeft+a.paddingRight)&&(t=1+Math.floor((h+l.autoSkipPadding)*d/(a.width-(a.paddingLeft+a.paddingRight)))),o&&d>o&&(t=Math.max(t,Math.floor(d/o)))),n=0;n<d;n++)i=e[n],(t>1&&n%t>0||n%t==0&&n+t>=d)&&n!==d-1&&delete i.label,f.push(i);return f},draw:function(e){var t=this,o=t.options;if(o.display){var s=t.ctx,d=i.global,c=o.ticks.minor,u=o.ticks.major||c,h=o.gridLines,f=o.scaleLabel,p=0!==t.labelRotation,m=t.isHorizontal(),g=c.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),y=r.valueOrDefault(c.fontColor,d.defaultFontColor),v=n(c),A=r.valueOrDefault(u.fontColor,d.defaultFontColor),b=n(u),w=h.drawTicks?h.tickMarkLength:0,_=r.valueOrDefault(f.fontColor,d.defaultFontColor),M=n(f),x=r.options.toPadding(f.padding),k=r.toRadians(t.labelRotation),S=[],C=t.options.gridLines.lineWidth,E="right"===o.position?t.right:t.right-C-w,L="right"===o.position?t.right+w:t.right,T="bottom"===o.position?t.top+C:t.bottom-w-C,D="bottom"===o.position?t.top+C+w:t.bottom+C;if(r.each(g,function(n,i){if(!r.isNullOrUndef(n.label)){var a,s,u,f,y,v,A,b,_,M,x,Y,R,B,O=n.label;i===t.zeroLineIndex&&o.offset===h.offsetGridLines?(a=h.zeroLineWidth,s=h.zeroLineColor,u=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(a=r.valueAtIndexOrDefault(h.lineWidth,i),s=r.valueAtIndexOrDefault(h.color,i),u=r.valueOrDefault(h.borderDash,d.borderDash),f=r.valueOrDefault(h.borderDashOffset,d.borderDashOffset));var H="middle",P="middle",I=c.padding;if(m){var j=w+I;"bottom"===o.position?(P=p?"middle":"top",H=p?"right":"center",B=t.top+j):(P=p?"middle":"bottom",H=p?"left":"center",B=t.bottom-j);var F=l(t,i,h.offsetGridLines&&g.length>1);F<t.left&&(s="rgba(0,0,0,0)"),F+=r.aliasPixel(a),R=t.getPixelForTick(i)+c.labelOffset,y=A=_=x=F,v=T,b=D,M=e.top,Y=e.bottom+C}else{var N,z="left"===o.position;c.mirror?(H=z?"left":"right",N=I):(H=z?"right":"left",N=w+I),R=z?t.right-N:t.left+N;var W=l(t,i,h.offsetGridLines&&g.length>1);W<t.top&&(s="rgba(0,0,0,0)"),W+=r.aliasPixel(a),B=t.getPixelForTick(i)+c.labelOffset,y=E,A=L,_=e.left,x=e.right+C,v=b=M=Y=W}S.push({tx1:y,ty1:v,tx2:A,ty2:b,x1:_,y1:M,x2:x,y2:Y,labelX:R,labelY:B,glWidth:a,glColor:s,glBorderDash:u,glBorderDashOffset:f,rotation:-1*k,label:O,major:n.major,textBaseline:P,textAlign:H})}}),r.each(S,function(e){if(h.display&&(s.save(),s.lineWidth=e.glWidth,s.strokeStyle=e.glColor,s.setLineDash&&(s.setLineDash(e.glBorderDash),s.lineDashOffset=e.glBorderDashOffset),s.beginPath(),h.drawTicks&&(s.moveTo(e.tx1,e.ty1),s.lineTo(e.tx2,e.ty2)),h.drawOnChartArea&&(s.moveTo(e.x1,e.y1),s.lineTo(e.x2,e.y2)),s.stroke(),s.restore()),c.display){s.save(),s.translate(e.labelX,e.labelY),s.rotate(e.rotation),s.font=e.major?b.font:v.font,s.fillStyle=e.major?A:y,s.textBaseline=e.textBaseline,s.textAlign=e.textAlign;var n=e.label;if(r.isArray(n))for(var i=n.length,o=1.5*v.size,a=t.isHorizontal()?0:-o*(i-1)/2,l=0;l<i;++l)s.fillText(""+n[l],0,a),a+=o;else s.fillText(n,0,0);s.restore()}}),f.display){var Y,R,B=0,O=a(f)/2;if(m)Y=t.left+(t.right-t.left)/2,R="bottom"===o.position?t.bottom-O-x.bottom:t.top+O+x.top;else{var H="left"===o.position;Y=H?t.left+O+x.top:t.right-O-x.top,R=t.top+(t.bottom-t.top)/2,B=H?-.5*Math.PI:.5*Math.PI}s.save(),s.translate(Y,R),s.rotate(B),s.textAlign="center",s.textBaseline="middle",s.fillStyle=_,s.font=M.font,s.fillText(f.labelString,0,0),s.restore()}if(h.drawBorder){s.lineWidth=r.valueAtIndexOrDefault(h.lineWidth,0),s.strokeStyle=r.valueAtIndexOrDefault(h.color,0);var P=t.left,I=t.right+C,j=t.top,F=t.bottom+C,N=r.aliasPixel(s.lineWidth);m?(j=F="top"===o.position?t.bottom:t.top,j+=N,F+=N):(P=I="left"===o.position?t.right:t.left,P+=N,I+=N),s.beginPath(),s.moveTo(P,j),s.lineTo(I,F),s.stroke()}}}})}},function(e,t,n){"use strict";var i=n(5),o=n(4),r=n(19);e.exports=function(e){e.scaleService={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=o.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?o.merge({},[i.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=o.extend(this.defaults[e],t))},addScalesToLayout:function(e){o.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,r.addBox(e,t)})}}}},function(e,t,n){"use strict";var i=n(4);e.exports=function(e){var t=["push","pop","shift","splice","unshift"];function n(e,n){var i=e._chartjs;if(i){var o=i.listeners,r=o.indexOf(n);-1!==r&&o.splice(r,1),o.length>0||(t.forEach(function(t){delete e[t]}),delete e._chartjs)}}e.DatasetController=function(e,t){this.initialize(e,t)},i.extend(e.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){this.chart=e,this.index=t,this.linkScales(),this.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),i=this.getDataset().data||[],o=n.data;for(e=0,t=i.length;e<t;++e)o[e]=o[e]||this.createMetaData(e);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,o,r=this,a=r.getDataset(),s=a.data||(a.data=[]);r._data!==s&&(r._data&&n(r._data,r),o=r,(e=s)._chartjs?e._chartjs.listeners.push(o):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),t.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),o=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),r=o.apply(this,t);return i.each(e._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),r}})})),r._data=s),r.resyncElements()},update:i.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],i=n.length,o=0;o<i;++o)n[o].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,i=0;for(e.dataset&&e.dataset.draw();i<n;++i)t[i].draw()},removeHoverStyle:function(e,t){var n=this.chart.data.datasets[e._datasetIndex],o=e._index,r=e.custom||{},a=i.valueAtIndexOrDefault,s=e._model;s.backgroundColor=r.backgroundColor?r.backgroundColor:a(n.backgroundColor,o,t.backgroundColor),s.borderColor=r.borderColor?r.borderColor:a(n.borderColor,o,t.borderColor),s.borderWidth=r.borderWidth?r.borderWidth:a(n.borderWidth,o,t.borderWidth)},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,o=e.custom||{},r=i.valueAtIndexOrDefault,a=i.getHoverColor,s=e._model;s.backgroundColor=o.hoverBackgroundColor?o.hoverBackgroundColor:r(t.hoverBackgroundColor,n,a(s.backgroundColor)),s.borderColor=o.hoverBorderColor?o.hoverBorderColor:r(t.hoverBorderColor,n,a(s.borderColor)),s.borderWidth=o.hoverBorderWidth?o.hoverBorderWidth:r(t.hoverBorderWidth,n,s.borderWidth)},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,i=t.length;i<n?e.data.splice(i,n-i):i>n&&this.insertElements(n,i-n)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),e.DatasetController.extend=i.inherits}},function(e,t,n){"use strict";var i=n(5),o=n(4),r=n(163),a=n(19),s=n(162),l=n(161);e.exports=function(e){function t(e){return"top"===e||"bottom"===e}e.types={},e.instances={},e.controllers={},o.extend(e.prototype,{construct:function(t,n){var r=this;n=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=o.configMerge(i.global,i[e.type],e.options||{}),e}(n);var a=s.acquireContext(t,n),l=a&&a.canvas,d=l&&l.height,c=l&&l.width;r.id=o.uid(),r.ctx=a,r.canvas=l,r.config=n,r.width=c,r.height=d,r.aspectRatio=d?c/d:null,r.options=n.options,r._bufferedRender=!1,r.chart=r,r.controller=r,e.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),a&&l&&(r.initialize(),r.update())},initialize:function(){var e=this;return l.notify(e,"beforeInit"),o.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),l.notify(e,"afterInit"),e},clear:function(){return o.canvas.clear(this),this},stop:function(){return e.animationService.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,i=t.canvas,r=n.maintainAspectRatio&&t.aspectRatio||null,a=Math.max(0,Math.floor(o.getMaximumWidth(i))),s=Math.max(0,Math.floor(r?a/r:o.getMaximumHeight(i)));if((t.width!==a||t.height!==s)&&(i.width=t.width=a,i.height=t.height=s,i.style.width=a+"px",i.style.height=s+"px",o.retinaScale(t,n.devicePixelRatio),!e)){var d={width:a,height:s};l.notify(t,"resize",[d]),t.options.onResize&&t.options.onResize(t,d),t.stop(),t.update(t.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;o.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t}),o.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var n=this,i=n.options,r=n.scales||{},a=[],s=Object.keys(r).reduce(function(e,t){return e[t]=!1,e},{});i.scales&&(a=a.concat((i.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(i.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),i.scale&&a.push({options:i.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),o.each(a,function(i){var a=i.options,l=a.id,d=o.valueOrDefault(a.type,i.dtype);t(a.position)!==t(i.dposition)&&(a.position=i.dposition),s[l]=!0;var c=null;if(l in r&&r[l].type===d)(c=r[l]).options=a,c.ctx=n.ctx,c.chart=n;else{var u=e.scaleService.getScaleConstructor(d);if(!u)return;c=new u({id:l,type:d,options:a,ctx:n.ctx,chart:n}),r[c.id]=c}c.mergeTicksOptions(),i.isDefault&&(n.scale=c)}),o.each(s,function(e,t){e||delete r[t]}),n.scales=r,e.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t=this,n=[],i=[];return o.each(t.data.datasets,function(o,r){var a=t.getDatasetMeta(r),s=o.type||t.config.type;if(a.type&&a.type!==s&&(t.destroyDatasetMeta(r),a=t.getDatasetMeta(r)),a.type=s,n.push(a.type),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{var l=e.controllers[a.type];if(void 0===l)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new l(t,r),i.push(a.controller)}},t),i},resetElements:function(){var e=this;o.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var n,i,r=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),i=(n=r).options,o.each(n.scales,function(e){a.removeBox(n,e)}),i=o.configMerge(e.defaults.global,e.defaults[n.config.type],i),n.options=n.config.options=i,n.ensureScalesHaveIDs(),n.buildOrUpdateScales(),n.tooltip._options=i.tooltips,n.tooltip.initialize(),l._invalidate(r),!1!==l.notify(r,"beforeUpdate")){r.tooltip._data=r.data;var s=r.buildOrUpdateControllers();o.each(r.data.datasets,function(e,t){r.getDatasetMeta(t).controller.buildOrUpdateElements()},r),r.updateLayout(),r.options.animation&&r.options.animation.duration&&o.each(s,function(e){e.reset()}),r.updateDatasets(),r.tooltip.initialize(),r.lastActive=[],l.notify(r,"afterUpdate"),r._bufferedRender?r._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:r.render(t)}},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(a.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);l.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==l.notify(this,"beforeDatasetUpdate",[n])&&(t.controller.update(),l.notify(this,"afterDatasetUpdate",[n]))},render:function(t){var n=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]});var i=t.duration,r=t.lazy;if(!1!==l.notify(n,"beforeRender")){var a=n.options.animation,s=function(e){l.notify(n,"afterRender"),o.callback(a&&a.onComplete,[e],n)};if(a&&(void 0!==i&&0!==i||void 0===i&&0!==a.duration)){var d=new e.Animation({numSteps:(i||a.duration)/16.66,easing:t.easing||a.easing,render:function(e,t){var n=o.easing.effects[t.easing],i=t.currentStep,r=i/t.numSteps;e.draw(n(r),r,i)},onAnimationProgress:a.onProgress,onAnimationComplete:s});e.animationService.addAnimation(n,d,i,r)}else n.draw(),s(new e.Animation({numSteps:0,chart:n}));return n}},draw:function(e){var t=this;t.clear(),o.isNullOrUndef(e)&&(e=1),t.transition(e),!1!==l.notify(t,"beforeDraw",[e])&&(o.each(t.boxes,function(e){e.draw(t.chartArea)},t),t.scale&&t.scale.draw(),t.drawDatasets(e),t._drawTooltip(e),l.notify(t,"afterDraw",[e]))},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},drawDatasets:function(e){var t=this;if(!1!==l.notify(t,"beforeDatasetsDraw",[e])){for(var n=(t.data.datasets||[]).length-1;n>=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);l.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this.getDatasetMeta(e),i={meta:n,index:e,easingValue:t};!1!==l.notify(this,"beforeDatasetDraw",[i])&&(n.controller.draw(t),l.notify(this,"afterDatasetDraw",[i]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==l.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),l.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return r.modes.single(this,e)},getElementsAtEvent:function(e){return r.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return r.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=r.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return r.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],i=n._meta&&n._meta[t];i&&(i.controller.destroy(),delete n._meta[t])},destroy:function(){var t,n,i=this,r=i.canvas;for(i.stop(),t=0,n=i.data.datasets.length;t<n;++t)i.destroyDatasetMeta(t);r&&(i.unbindEvents(),o.canvas.clear(i),s.releaseContext(i.ctx),i.canvas=null,i.ctx=null),l.notify(i,"destroy"),delete e.instances[i.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new e.Tooltip({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};o.each(e.options.events,function(i){s.addEventListener(e,i,n),t[i]=n}),e.options.responsive&&(n=function(){e.resize()},s.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,o.each(t,function(t,n){s.removeEventListener(e,n,t)}))},updateHoverStyle:function(e,t,n){var i,o,r,a=n?"setHoverStyle":"removeHoverStyle";for(o=0,r=e.length;o<r;++o)(i=e[o])&&this.getDatasetMeta(i._datasetIndex).controller[a](i)},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==l.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var i=t.handleEvent(e);n&&(i=n._start?n.handleEvent(e):i|n.handleEvent(e)),l.notify(t,"afterEvent",[e]);var o=t._bufferedRequest;return o?t.render(o):i&&!t.animating&&(t.stop(),t.render(t.options.hover.animationDuration,!0)),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,i=n.options||{},r=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,r.mode,r),o.callback(i.onHover||i.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||i.onClick&&i.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,r.mode,!1),n.active.length&&r.mode&&n.updateHoverStyle(n.active,r.mode,!0),t=!o.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),e.Controller=e}},function(e,t,n){"use strict";var i=n(5),o=n(11),r=n(4);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:r.noop,onComplete:r.noop}}),e.exports=function(e){e.Animation=o.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),e.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(e,t,n,i){var o,r,a=this.animations;for(t.chart=e,i||(e.animating=!0),o=0,r=a.length;o<r;++o)if(a[o].chart===e)return void(a[o]=t);a.push(t),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=r.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=r.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){var e=this,t=Date.now(),n=0;e.dropFrames>1&&(n=Math.floor(e.dropFrames),e.dropFrames=e.dropFrames%1),e.advance(1+n);var i=Date.now();e.dropFrames+=(i-t)/e.frameDuration,e.animations.length>0&&e.requestAnimationFrame()},advance:function(e){for(var t,n,i=this.animations,o=0;o<i.length;)n=(t=i[o]).chart,t.currentStep=(t.currentStep||0)+e,t.currentStep=Math.min(t.currentStep,t.numSteps),r.callback(t.render,[n,t],n),r.callback(t.onAnimationProgress,[t],n),t.currentStep>=t.numSteps?(r.callback(t.onAnimationComplete,[t],n),n.animating=!1,i.splice(o,1)):++o}},Object.defineProperty(e.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(e.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}})}},function(e,t,n){"use strict";var i=n(4),o="$chartjs",r="chartjs-",a=r+"render-monitor",s=r+"render-animation",l=["animationstart","webkitAnimationStart"],d={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function c(e,t){var n=i.getStyle(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?Number(o[1]):void 0}var u=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function h(e,t,n){e.addEventListener(t,n,u)}function f(e,t,n){e.removeEventListener(t,n,u)}function p(e,t,n,i,o){return{type:e,chart:t,native:o||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function m(e,t,n){var d,c,u,f,m=e[o]||(e[o]={}),g=m.resizer=function(e){var t=document.createElement("div"),n=r+"size-monitor",i="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";t.style.cssText=i,t.className=n,t.innerHTML='<div class="'+n+'-expand" style="'+i+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+n+'-shrink" style="'+i+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var o=t.childNodes[0],a=t.childNodes[1];t._reset=function(){o.scrollLeft=1e6,o.scrollTop=1e6,a.scrollLeft=1e6,a.scrollTop=1e6};var s=function(){t._reset(),e()};return h(o,"scroll",s.bind(o,"expand")),h(a,"scroll",s.bind(a,"shrink")),t}((d=function(){if(m.resizer)return t(p("resize",n))},u=!1,f=[],function(){f=Array.prototype.slice.call(arguments),c=c||this,u||(u=!0,i.requestAnimFrame.call(window,function(){u=!1,d.apply(c,f)}))}));!function(e,t){var n=e[o]||(e[o]={}),r=n.renderProxy=function(e){e.animationName===s&&t()};i.each(l,function(t){h(e,t,r)}),n.reflow=!!e.offsetParent,e.classList.add(a)}(e,function(){if(m.resizer){var t=e.parentNode;t&&t!==g.parentNode&&t.insertBefore(g,t.firstChild),g._reset()}})}function g(e){var t=e[o]||{},n=t.resizer;delete t.resizer,function(e){var t=e[o]||{},n=t.renderProxy;n&&(i.each(l,function(t){f(e,t,n)}),delete t.renderProxy),e.classList.remove(a)}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var e,t,n,i="from{opacity:0.99}to{opacity:1}";t="@-webkit-keyframes "+s+"{"+i+"}@keyframes "+s+"{"+i+"}."+a+"{-webkit-animation:"+s+" 0.001s;animation:"+s+" 0.001s;}",n=(e=this)._style||document.createElement("style"),e._style||(e._style=n,t="/* Chart.js */\n"+t,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(t))},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[o]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var a=c(e,"width");void 0!==a&&(e.width=a)}if(null===i||""===i)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var s=c(e,"height");void 0!==a&&(e.height=s)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[o]){var n=t[o].initial;["height","width"].forEach(function(e){var o=n[e];i.isNullOrUndef(o)?t.removeAttribute(e):t.setAttribute(e,o)}),i.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t[o]}},addEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var a=n[o]||(n[o]={});h(r,t,(a.proxies||(a.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=d[e.type]||e.type,o=i.getRelativePosition(e,t);return p(n,t,o.x,o.y,e)}(t,e))})}else m(r,n,e)},removeEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=((n[o]||{}).proxies||{})[e.id+"_"+t];r&&f(i,t,r)}else g(i)}},i.addEvent=h,i.removeEvent=f},function(e,t){e.exports={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}}},function(e,t,n){"use strict";var i=n(5),o=n(11);function r(e){return void 0!==e._view.width}function a(e){var t,n,i,o,a=e._view;if(r(e)){var s=a.width/2;t=a.x-s,n=a.x+s,i=Math.min(a.y,a.base),o=Math.max(a.y,a.base)}else{var l=a.height/2;t=Math.min(a.x,a.base),n=Math.max(a.x,a.base),i=a.y-l,o=a.y+l}return{left:t,top:i,right:n,bottom:o}}i._set("global",{elements:{rectangle:{backgroundColor:i.global.defaultColor,borderColor:i.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=o.extend({draw:function(){var e,t,n,i,o,r,a,s=this._chart.ctx,l=this._view,d=l.borderWidth;if(l.horizontal?(e=l.base,t=l.x,n=l.y-l.height/2,i=l.y+l.height/2,o=t>e?1:-1,r=1,a=l.borderSkipped||"left"):(e=l.x-l.width/2,t=l.x+l.width/2,n=l.y,o=1,r=(i=l.base)>n?1:-1,a=l.borderSkipped||"bottom"),d){var c=Math.min(Math.abs(e-t),Math.abs(n-i)),u=(d=d>c?c:d)/2,h=e+("left"!==a?u*o:0),f=t+("right"!==a?-u*o:0),p=n+("top"!==a?u*r:0),m=i+("bottom"!==a?-u*r:0);h!==f&&(n=p,i=m),p!==m&&(e=h,t=f)}s.beginPath(),s.fillStyle=l.backgroundColor,s.strokeStyle=l.borderColor,s.lineWidth=d;var g=[[e,i],[e,n],[t,n],[t,i]],y=["bottom","left","top","right"].indexOf(a,0);function v(e){return g[(y+e)%4]}-1===y&&(y=0);var A=v(0);s.moveTo(A[0],A[1]);for(var b=1;b<4;b++)A=v(b),s.lineTo(A[0],A[1]);s.fill(),d&&s.stroke()},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){var n=!1;if(this._view){var i=a(this);n=e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom}return n},inLabelRange:function(e,t){if(!this._view)return!1;var n=a(this);return r(this)?e>=n.left&&e<=n.right:t>=n.top&&t<=n.bottom},inXRange:function(e){var t=a(this);return e>=t.left&&e<=t.right},inYRange:function(e){var t=a(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function(){var e,t,n=this._view;return r(this)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})},function(e,t,n){"use strict";var i=n(5),o=n(11),r=n(4),a=i.global.defaultColor;function s(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}i._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:a,borderColor:a,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=o.extend({inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:s,inXRange:s,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._model,o=this._chart.ctx,s=t.pointStyle,l=t.radius,d=t.x,c=t.y,u=r.color,h=0;t.skip||(o.strokeStyle=t.borderColor||a,o.lineWidth=r.valueOrDefault(t.borderWidth,i.global.elements.point.borderWidth),o.fillStyle=t.backgroundColor||a,void 0!==e&&(n.x<e.left||1.01*e.right<n.x||n.y<e.top||1.01*e.bottom<n.y)&&(n.x<e.left?h=(d-n.x)/(e.left-n.x):1.01*e.right<n.x?h=(n.x-d)/(n.x-e.right):n.y<e.top?h=(c-n.y)/(e.top-n.y):1.01*e.bottom<n.y&&(h=(n.y-c)/(n.y-e.bottom)),h=Math.round(100*h)/100,o.strokeStyle=u(o.strokeStyle).alpha(h).rgbString(),o.fillStyle=u(o.fillStyle).alpha(h).rgbString()),r.canvas.drawPoint(o,s,l,d,c))}})},function(e,t,n){"use strict";var i=n(5),o=n(11),r=n(4),a=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:a.defaultColor,borderWidth:3,borderColor:a.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=o.extend({draw:function(){var e,t,n,i,o=this._view,s=this._chart.ctx,l=o.spanGaps,d=this._children.slice(),c=a.elements.line,u=-1;for(this._loop&&d.length&&d.push(d[0]),s.save(),s.lineCap=o.borderCapStyle||c.borderCapStyle,s.setLineDash&&s.setLineDash(o.borderDash||c.borderDash),s.lineDashOffset=o.borderDashOffset||c.borderDashOffset,s.lineJoin=o.borderJoinStyle||c.borderJoinStyle,s.lineWidth=o.borderWidth||c.borderWidth,s.strokeStyle=o.borderColor||a.defaultColor,s.beginPath(),u=-1,e=0;e<d.length;++e)t=d[e],n=r.previousItem(d,e),i=t._view,0===e?i.skip||(s.moveTo(i.x,i.y),u=e):(n=-1===u?n:d[u],i.skip||(u!==e-1&&!l||-1===u?s.moveTo(i.x,i.y):r.canvas.lineTo(s,n._view,t._view),u=e));s.stroke(),s.restore()}})},function(e,t,n){"use strict";var i=n(5),o=n(11),r=n(4);i._set("global",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=o.extend({inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var i=r.getAngleFromPoint(n,{x:e,y:t}),o=i.angle,a=i.distance,s=n.startAngle,l=n.endAngle;l<s;)l+=2*Math.PI;for(;o>l;)o-=2*Math.PI;for(;o<s;)o+=2*Math.PI;var d=o>=s&&o<=l,c=a>=n.innerRadius&&a<=n.outerRadius;return d&&c}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e=this._chart.ctx,t=this._view,n=t.startAngle,i=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,n,i),e.arc(t.x,t.y,t.innerRadius,i,n,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin="bevel",t.borderWidth&&e.stroke()}})},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){var i=n(226);function o(e){if(e){var t=[0,0,0],n=1,o=e.match(/^#([a-fA-F0-9]{3})$/i);if(o){o=o[1];for(var r=0;r<t.length;r++)t[r]=parseInt(o[r]+o[r],16)}else if(o=e.match(/^#([a-fA-F0-9]{6})$/i))for(o=o[1],r=0;r<t.length;r++)t[r]=parseInt(o.slice(2*r,2*r+2),16);else if(o=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(r=0;r<t.length;r++)t[r]=parseInt(o[r+1]);n=parseFloat(o[4])}else if(o=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(r=0;r<t.length;r++)t[r]=Math.round(2.55*parseFloat(o[r+1]));n=parseFloat(o[4])}else if(o=e.match(/(\w+)/)){if("transparent"==o[1])return[0,0,0,0];if(!(t=i[o[1]]))return}for(r=0;r<t.length;r++)t[r]=c(t[r],0,255);return n=n||0==n?c(n,0,1):1,t[3]=n,t}}function r(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[c(parseInt(t[1]),0,360),c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}}}function a(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[c(parseInt(t[1]),0,360),c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}}}function s(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function l(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function d(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:o,getHsla:r,getRgb:function(e){var t=o(e);return t&&t.slice(0,3)},getHsl:function(e){var t=r(e);return t&&t.slice(0,3)},getHwb:a,getAlpha:function(e){var t=o(e);return t?t[3]:(t=r(e))?t[3]:(t=a(e))?t[3]:void 0},hexString:function(e){return"#"+u(e[0])+u(e[1])+u(e[2])},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?s(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:s,percentString:function(e,t){return t<1||e[3]&&e[3]<1?l(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:l,hslString:function(e,t){return t<1||e[3]&&e[3]<1?d(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:d,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return h[e.slice(0,3)]}};var h={};for(var f in i)h[i[f]]=f},function(e,t){function n(e){var t,n,i=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.min(i,o,r),s=Math.max(i,o,r),l=s-a;return s==a?t=0:i==s?t=(o-r)/l:o==s?t=2+(r-i)/l:r==s&&(t=4+(i-o)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s==a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]}function i(e){var t,n,i=e[0],o=e[1],r=e[2],a=Math.min(i,o,r),s=Math.max(i,o,r),l=s-a;return n=0==s?0:l/s*1e3/10,s==a?t=0:i==s?t=(o-r)/l:o==s?t=2+(r-i)/l:r==s&&(t=4+(i-o)/l),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]}function o(e){var t=e[0],i=e[1],o=e[2];return[n(e)[0],1/255*Math.min(t,Math.min(i,o))*100,100*(o=1-1/255*Math.max(t,Math.max(i,o)))]}function a(e){var t,n=e[0]/255,i=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-o)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]}function s(e){return x[JSON.stringify(e)]}function l(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]}function d(e){var t=l(e),n=t[0],i=t[1],o=t[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]}function c(e){var t,n,i,o,r,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0==s)return[r=255*l,r,r];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),o=[0,0,0];for(var d=0;d<3;d++)(i=a+1/3*-(d-1))<0&&i++,i>1&&i--,r=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t,o[d]=255*r;return o}function u(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,o=Math.floor(t)%6,r=t-Math.floor(t),a=255*i*(1-n),s=255*i*(1-n*r),l=255*i*(1-n*(1-r));switch(i*=255,o){case 0:return[i,l,a];case 1:return[s,i,a];case 2:return[a,i,l];case 3:return[a,s,i];case 4:return[l,a,i];case 5:return[i,a,s]}}function h(e){var t,n,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100,d=s+l;switch(d>1&&(s/=d,l/=d),n=1-l,i=6*a-(t=Math.floor(6*a)),0!=(1&t)&&(i=1-i),o=s+i*(n-s),t){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function f(e){var t=e[0]/100,n=e[1]/100,i=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,i*(1-o)+o))]}function p(e){var t,n,i,o=e[0]/100,r=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*r+.0415*a,i=.0557*o+-.204*r+1.057*a,t=(t=3.2406*o+-1.5372*r+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]}function m(e){var t=e[0],n=e[1],i=e[2];return n/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]}function y(e){var t,n,i,o,r=e[0],a=e[1],s=e[2];return r<=8?o=(n=100*r/903.3)/100*7.787+16/116:(n=100*Math.pow((r+16)/116,3),o=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(a/500+o-16/116)/7.787:95.047*Math.pow(a/500+o,3),n,i=i/108.883<=.008859?i=108.883*(o-s/200-16/116)/7.787:108.883*Math.pow(o-s/200,3)]}function v(e){var t,n=e[0],i=e[1],o=e[2];return(t=360*Math.atan2(o,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+o*o),t]}function A(e){return p(y(e))}function w(e){var t,n=e[0],i=e[1];return t=e[2]/360*2*Math.PI,[n,i*Math.cos(t),i*Math.sin(t)]}function _(e){return M[e]}e.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:a,rgb2keyword:s,rgb2xyz:l,rgb2lab:d,rgb2lch:function(e){return v(d(e))},hsl2rgb:c,hsl2hsv:function(e){var t=e[0],n=e[1]/100,i=e[2]/100;return 0===i?[0,0,0]:[t,2*(n*=(i*=2)<=1?i:2-i)/(i+n)*100,(i+n)/2*100]},hsl2hwb:function(e){return o(c(e))},hsl2cmyk:function(e){return a(c(e))},hsl2keyword:function(e){return s(c(e))},hsv2rgb:u,hsv2hsl:function(e){var t,n,i=e[0],o=e[1]/100,r=e[2]/100;return t=o*r,[i,100*(t=(t/=(n=(2-o)*r)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return o(u(e))},hsv2cmyk:function(e){return a(u(e))},hsv2keyword:function(e){return s(u(e))},hwb2rgb:h,hwb2hsl:function(e){return n(h(e))},hwb2hsv:function(e){return i(h(e))},hwb2cmyk:function(e){return a(h(e))},hwb2keyword:function(e){return s(h(e))},cmyk2rgb:f,cmyk2hsl:function(e){return n(f(e))},cmyk2hsv:function(e){return i(f(e))},cmyk2hwb:function(e){return o(f(e))},cmyk2keyword:function(e){return s(f(e))},keyword2rgb:_,keyword2hsl:function(e){return n(_(e))},keyword2hsv:function(e){return i(_(e))},keyword2hwb:function(e){return o(_(e))},keyword2cmyk:function(e){return a(_(e))},keyword2lab:function(e){return d(_(e))},keyword2xyz:function(e){return l(_(e))},xyz2rgb:p,xyz2lab:m,xyz2lch:function(e){return v(m(e))},lab2xyz:y,lab2rgb:A,lab2lch:v,lch2lab:w,lch2xyz:function(e){return y(w(e))},lch2rgb:function(e){return A(w(e))}};var M={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},x={};for(var k in M)x[JSON.stringify(M[k])]=k},function(e,t,n){var i=n(228),o=function(){return new d};for(var r in i){o[r+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),i[e](t)}}(r);var a=/(\w+)2(\w+)/.exec(r),s=a[1],l=a[2];(o[s]=o[s]||{})[l]=o[r]=function(e){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=i[e](t);if("string"==typeof n||void 0===n)return n;for(var o=0;o<n.length;o++)n[o]=Math.round(n[o]);return n}}(r)}var d=function(){this.convs={}};d.prototype.routeSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n))},d.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},d.prototype.getValues=function(e){var t=this.convs[e];if(!t){var n=this.space,i=this.convs[n];t=o[n][e](i),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){d.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=o},function(e,t,n){"use strict";var i=n(164),o=n(5),r=n(4);e.exports=function(e){function t(e,t,n){var i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}function n(e){return void 0!==e&&null!==e&&"none"!==e}function a(e,i,o){var r=document.defaultView,a=e.parentNode,s=r.getComputedStyle(e)[i],l=r.getComputedStyle(a)[i],d=n(s),c=n(l),u=Number.POSITIVE_INFINITY;return d||c?Math.min(d?t(s,e,o):u,c?t(l,a,o):u):"none"}r.configMerge=function(){return r.merge(r.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,n,i,o){var a=n[t]||{},s=i[t];"scales"===t?n[t]=r.scaleMerge(a,s):"scale"===t?n[t]=r.merge(a,[e.scaleService.getScaleDefaults(s.type),s]):r._merger(t,n,i,o)}})},r.scaleMerge=function(){return r.merge(r.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,n,i,o){if("xAxes"===t||"yAxes"===t){var a,s,l,d=i[t].length;for(n[t]||(n[t]=[]),a=0;a<d;++a)l=i[t][a],s=r.valueOrDefault(l.type,"xAxes"===t?"category":"linear"),a>=n[t].length&&n[t].push({}),!n[t][a].type||l.type&&l.type!==n[t][a].type?r.merge(n[t][a],[e.scaleService.getScaleDefaults(s),l]):r.merge(n[t][a],l)}else r._merger(t,n,i,o)}})},r.where=function(e,t){if(r.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return r.each(e,function(e){t(e)&&n.push(e)}),n},r.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var i=0,o=e.length;i<o;++i)if(t.call(n,e[i],i,e))return i;return-1},r.findNextWhere=function(e,t,n){r.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var o=e[i];if(t(o))return o}},r.findPreviousWhere=function(e,t,n){r.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;i>=0;i--){var o=e[i];if(t(o))return o}},r.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},r.almostEquals=function(e,t,n){return Math.abs(e-t)<n},r.almostWhole=function(e,t){var n=Math.round(e);return n-t<e&&n+t>e},r.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},r.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},r.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},r.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},r.toRadians=function(e){return e*(Math.PI/180)},r.toDegrees=function(e){return e*(180/Math.PI)},r.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,o=Math.sqrt(n*n+i*i),r=Math.atan2(i,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:o}},r.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},r.aliasPixel=function(e){return e%2==0?0:.5},r.splineCurve=function(e,t,n,i){var o=e.skip?t:e,r=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),l=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),d=s/(s+l),c=l/(s+l),u=i*(d=isNaN(d)?0:d),h=i*(c=isNaN(c)?0:c);return{previous:{x:r.x-u*(a.x-o.x),y:r.y-u*(a.y-o.y)},next:{x:r.x+h*(a.x-o.x),y:r.y+h*(a.y-o.y)}}},r.EPSILON=Number.EPSILON||1e-14,r.splineCurveMonotone=function(e){var t,n,i,o,a,s,l,d,c,u=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),h=u.length;for(t=0;t<h;++t)if(!(i=u[t]).model.skip){if(n=t>0?u[t-1]:null,(o=t<h-1?u[t+1]:null)&&!o.model.skip){var f=o.model.x-i.model.x;i.deltaK=0!==f?(o.model.y-i.model.y)/f:0}!n||n.model.skip?i.mK=i.deltaK:!o||o.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}for(t=0;t<h-1;++t)i=u[t],o=u[t+1],i.model.skip||o.model.skip||(r.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=o.mK=0:(a=i.mK/i.deltaK,s=o.mK/i.deltaK,(d=Math.pow(a,2)+Math.pow(s,2))<=9||(l=3/Math.sqrt(d),i.mK=a*l*i.deltaK,o.mK=s*l*i.deltaK)));for(t=0;t<h;++t)(i=u[t]).model.skip||(n=t>0?u[t-1]:null,o=t<h-1?u[t+1]:null,n&&!n.model.skip&&(c=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-c,i.model.controlPointPreviousY=i.model.y-c*i.mK),o&&!o.model.skip&&(c=(o.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+c,i.model.controlPointNextY=i.model.y+c*i.mK))},r.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},r.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},r.niceNum=function(e,t){var n=Math.floor(r.log10(e)),i=e/Math.pow(10,n);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},r.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},r.getRelativePosition=function(e,t){var n,i,o=e.originalEvent||e,a=e.currentTarget||e.srcElement,s=a.getBoundingClientRect(),l=o.touches;l&&l.length>0?(n=l[0].clientX,i=l[0].clientY):(n=o.clientX,i=o.clientY);var d=parseFloat(r.getStyle(a,"padding-left")),c=parseFloat(r.getStyle(a,"padding-top")),u=parseFloat(r.getStyle(a,"padding-right")),h=parseFloat(r.getStyle(a,"padding-bottom")),f=s.right-s.left-d-u,p=s.bottom-s.top-c-h;return{x:n=Math.round((n-s.left-d)/f*a.width/t.currentDevicePixelRatio),y:i=Math.round((i-s.top-c)/p*a.height/t.currentDevicePixelRatio)}},r.getConstraintWidth=function(e){return a(e,"max-width","clientWidth")},r.getConstraintHeight=function(e){return a(e,"max-height","clientHeight")},r.getMaximumWidth=function(e){var t=e.parentNode;if(!t)return e.clientWidth;var n=parseInt(r.getStyle(t,"padding-left"),10),i=parseInt(r.getStyle(t,"padding-right"),10),o=t.clientWidth-n-i,a=r.getConstraintWidth(e);return isNaN(a)?o:Math.min(o,a)},r.getMaximumHeight=function(e){var t=e.parentNode;if(!t)return e.clientHeight;var n=parseInt(r.getStyle(t,"padding-top"),10),i=parseInt(r.getStyle(t,"padding-bottom"),10),o=t.clientHeight-n-i,a=r.getConstraintHeight(e);return isNaN(a)?o:Math.min(o,a)},r.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},r.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||window.devicePixelRatio||1;if(1!==n){var i=e.canvas,o=e.height,r=e.width;i.height=o*n,i.width=r*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=o+"px",i.style.width=r+"px")}},r.fontString=function(e,t,n){return t+" "+e+"px "+n},r.longestText=function(e,t,n,i){var o=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(o=i.data={},a=i.garbageCollect=[],i.font=t),e.font=t;var s=0;r.each(n,function(t){void 0!==t&&null!==t&&!0!==r.isArray(t)?s=r.measureText(e,o,a,s,t):r.isArray(t)&&r.each(t,function(t){void 0===t||null===t||r.isArray(t)||(s=r.measureText(e,o,a,s,t))})});var l=a.length/2;if(l>n.length){for(var d=0;d<l;d++)delete o[a[d]];a.splice(0,l)}return s},r.measureText=function(e,t,n,i,o){var r=t[o];return r||(r=t[o]=e.measureText(o).width,n.push(o)),r>i&&(i=r),i},r.numberOfLabelLines=function(e){var t=1;return r.each(e,function(e){r.isArray(e)&&e.length>t&&(t=e.length)}),t},r.color=i?function(e){return e instanceof CanvasGradient&&(e=o.global.defaultColor),i(e)}:function(e){return e},r.getHoverColor=function(e){return e instanceof CanvasPattern?e:r.color(e).saturate(.5).darken(.1).rgbString()}}},function(e,t,n){"use strict";var i=n(24);e.exports={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,o,r;return i.isObject(e)?(t=+e.top||0,n=+e.right||0,o=+e.bottom||0,r=+e.left||0):t=n=o=r=+e||0,{top:t,right:n,bottom:o,left:r,height:t+o,width:r+n}},resolve:function(e,t,n){var o,r,a;for(o=0,r=e.length;o<r;++o)if(void 0!==(a=e[o])&&(void 0!==t&&"function"==typeof a&&(a=a(t)),void 0!==n&&i.isArray(a)&&(a=a[n]),void 0!==a))return a}}},function(e,t,n){"use strict";var i=n(24);t=e.exports={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,o,r){if(r){var a=Math.min(r,i/2),s=Math.min(r,o/2);e.moveTo(t+a,n),e.lineTo(t+i-a,n),e.quadraticCurveTo(t+i,n,t+i,n+s),e.lineTo(t+i,n+o-s),e.quadraticCurveTo(t+i,n+o,t+i-a,n+o),e.lineTo(t+a,n+o),e.quadraticCurveTo(t,n+o,t,n+o-s),e.lineTo(t,n+s),e.quadraticCurveTo(t,n,t+a,n)}else e.rect(t,n,i,o)},drawPoint:function(e,t,n,i,o){var r,a,s,l,d,c;if(!t||"object"!=typeof t||"[object HTMLImageElement]"!==(r=t.toString())&&"[object HTMLCanvasElement]"!==r){if(!(isNaN(n)||n<=0)){switch(t){default:e.beginPath(),e.arc(i,o,n,0,2*Math.PI),e.closePath(),e.fill();break;case"triangle":e.beginPath(),d=(a=3*n/Math.sqrt(3))*Math.sqrt(3)/2,e.moveTo(i-a/2,o+d/3),e.lineTo(i+a/2,o+d/3),e.lineTo(i,o-2*d/3),e.closePath(),e.fill();break;case"rect":c=1/Math.SQRT2*n,e.beginPath(),e.fillRect(i-c,o-c,2*c,2*c),e.strokeRect(i-c,o-c,2*c,2*c);break;case"rectRounded":var u=n/Math.SQRT2,h=i-u,f=o-u,p=Math.SQRT2*n;e.beginPath(),this.roundedRect(e,h,f,p,p,n/2),e.closePath(),e.fill();break;case"rectRot":c=1/Math.SQRT2*n,e.beginPath(),e.moveTo(i-c,o),e.lineTo(i,o+c),e.lineTo(i+c,o),e.lineTo(i,o-c),e.closePath(),e.fill();break;case"cross":e.beginPath(),e.moveTo(i,o+n),e.lineTo(i,o-n),e.moveTo(i-n,o),e.lineTo(i+n,o),e.closePath();break;case"crossRot":e.beginPath(),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,e.moveTo(i-s,o-l),e.lineTo(i+s,o+l),e.moveTo(i-s,o+l),e.lineTo(i+s,o-l),e.closePath();break;case"star":e.beginPath(),e.moveTo(i,o+n),e.lineTo(i,o-n),e.moveTo(i-n,o),e.lineTo(i+n,o),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,e.moveTo(i-s,o-l),e.lineTo(i+s,o+l),e.moveTo(i-s,o+l),e.lineTo(i+s,o-l),e.closePath();break;case"line":e.beginPath(),e.moveTo(i-n,o),e.lineTo(i+n,o),e.closePath();break;case"dash":e.beginPath(),e.moveTo(i,o),e.lineTo(i+n,o),e.closePath()}e.stroke()}}else e.drawImage(t,i-t.width/2,o-t.height/2,t.width,t.height)},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,i){if(n.steppedLine)return"after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y),void e.lineTo(n.x,n.y);n.tension?e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},i.clear=t.clear,i.drawRoundedRectangle=function(e){e.beginPath(),t.roundedRect.apply(t,arguments),e.closePath()}},function(e,t,n){"use strict";var i=n(24),o={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-o.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*o.easeInBounce(2*e):.5*o.easeOutBounce(2*e-1)+.5}};e.exports={effects:o},i.easingEffects=o},function(e,t,n){"use strict";n(5)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var e=function(e,t){return this.construct(e,t),this};return e.Chart=e,e}},function(e,t){if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;return e(this).one("bsTransitionEnd",function(){n=!0}),setTimeout(function(){n||e(i).trigger(e.support.transition.end)},t),this},e(function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var i=e(this),o=i.attr("data-target");o||(o=(o=i.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,""));var r=e("#"===o?[]:o);function a(){r.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),r.length||(r=i.closest(".alert")),r.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",a).emulateTransitionEnd(n.TRANSITION_DURATION):a())};var i=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var i=e(this),o=i.data("bs.alert");o||i.data("bs.alert",o=new n(this)),"string"==typeof t&&o[t].call(i)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";var t=function(n,i){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,i),this.isLoading=!1};function n(n){return this.each(function(){var i=e(this),o=i.data("bs.button"),r="object"==typeof n&&n;o||i.data("bs.button",o=new t(this,r)),"toggle"==n?o.toggle():n&&o.setState(n)})}t.VERSION="3.3.7",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",i=this.$element,o=i.is("input")?"val":"html",r=i.data();t+="Text",null==r.resetText&&i.data("resetText",i[o]()),setTimeout(e.proxy(function(){i[o](null==r[t]?this.options[t]:r[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var i=e(t.target).closest(".btn");n.call(i,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each(function(){var i=e(this),o=i.data("bs.carousel"),r=e.extend({},t.DEFAULTS,i.data(),"object"==typeof n&&n),a="string"==typeof n?n:r.slide;o||i.data("bs.carousel",o=new t(this,r)),"number"==typeof n?o.to(n):a?o[a]():r.interval&&o.pause().cycle()})}t.VERSION="3.3.7",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(i)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,i){var o=this.$element.find(".item.active"),r=i||this.getItemForDirection(n,o),a=this.interval,s="next"==n?"left":"right",l=this;if(r.hasClass("active"))return this.sliding=!1;var d=r[0],c=e.Event("slide.bs.carousel",{relatedTarget:d,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=e(this.$indicators.children()[this.getItemIndex(r)]);u&&u.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:d,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(r.addClass(n),r[0].offsetWidth,o.addClass(s),r.addClass(s),o.one("bsTransitionEnd",function(){r.removeClass([n,s].join(" ")).addClass("active"),o.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(o.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(h)),a&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this};var o=function(t){var i,o=e(this),r=e(o.attr("data-target")||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(r.hasClass("carousel")){var a=e.extend({},r.data(),o.data()),s=o.attr("data-slide-to");s&&(a.interval=!1),n.call(r,a),s&&r.data("bs.carousel").to(s),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),function(e){"use strict";var t=function(n,i){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,i),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,i=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(i)}function i(n){return this.each(function(){var i=e(this),o=i.data("bs.collapse"),r=e.extend({},t.DEFAULTS,i.data(),"object"==typeof n&&n);!o&&r.toggle&&/show|hide/.test(n)&&(r.toggle=!1),o||i.data("bs.collapse",o=new t(this,r)),"string"==typeof n&&o[n]()})}t.VERSION="3.3.7",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(n=o.data("bs.collapse"))&&n.transitioning)){var r=e.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){o&&o.length&&(i.call(o,"hide"),n||o.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[a](this.$element[0][l])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return o.call(this);this.$element[i](0).one("bsTransitionEnd",e.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(t,i){var o=e(i);this.addAriaAndCollapsedClass(n(o),o)},this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=e.fn.collapse;e.fn.collapse=i,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=o,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var o=e(this);o.attr("data-target")||t.preventDefault();var r=n(o),a=r.data("bs.collapse")?"toggle":o.data();i.call(r,a)})}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',i=function(t){e(t).on("click.bs.dropdown",this.toggle)};function o(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}function r(i){i&&3===i.which||(e(t).remove(),e(n).each(function(){var t=e(this),n=o(t),r={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&e.contains(n[0],i.target)||(n.trigger(i=e.Event("hide.bs.dropdown",r)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",r)))))}))}i.VERSION="3.3.7",i.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var i=o(n),a=i.hasClass("open");if(r(),!a){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",r);var s={relatedTarget:this};if(i.trigger(t=e.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var i=e(this);if(t.preventDefault(),t.stopPropagation(),!i.is(".disabled, :disabled")){var r=o(i),a=r.hasClass("open");if(!a&&27!=t.which||a&&27==t.which)return 27==t.which&&r.find(n).trigger("focus"),i.trigger("click");var s=r.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(t.target);38==t.which&&l>0&&l--,40==t.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var a=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var n=e(this),o=n.data("bs.dropdown");o||n.data("bs.dropdown",o=new i(this)),"string"==typeof t&&o[t].call(n)})},e.fn.dropdown.Constructor=i,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=a,this},e(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",n,i.prototype.toggle).on("keydown.bs.dropdown.data-api",n,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(e){"use strict";var t=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function n(n,i){return this.each(function(){var o=e(this),r=o.data("bs.modal"),a=e.extend({},t.DEFAULTS,o.data(),"object"==typeof n&&n);r||o.data("bs.modal",r=new t(this,a)),"string"==typeof n?r[n](i):a.show&&r.show(i)})}t.VERSION="3.3.7",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(n){var i=this,o=e.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var o=e.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),o&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var r=e.Event("shown.bs.modal",{relatedTarget:n});o?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(t.TRANSITION_DURATION):i.$element.trigger("focus").trigger(r)}))},t.prototype.hide=function(n){n&&n.preventDefault(),n=e.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(n){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=e.support.transition&&o;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;r?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){i.removeBackdrop(),n&&n()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):a()}else n&&n()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},t.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var i=e.fn.modal;e.fn.modal=n,e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=i,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=e(this),o=i.attr("href"),r=e(i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),a=r.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(o)&&o},r.data(),i.data());i.is("a")&&t.preventDefault(),r.one("show.bs.modal",function(e){e.isDefaultPrevented()||r.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),n.call(r,a,this)})}(jQuery),function(e){"use strict";var t=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,n,i){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),r=o.length;r--;){var a=o[r];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},t.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},t.prototype.show=function(){var n=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!i)return;var o=this,r=this.tip(),a=this.getUID(this.type);this.setContent(),r.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&r.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,d=l.test(s);d&&(s=s.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),u=r[0].offsetWidth,h=r[0].offsetHeight;if(d){var f=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>p.bottom?"top":"top"==s&&c.top-h<p.top?"bottom":"right"==s&&c.right+u>p.width?"left":"left"==s&&c.left-u<p.left?"right":s,r.removeClass(f).addClass(s)}var m=this.getCalculatedOffset(s,c,u,h);this.applyPlacement(m,s);var g=function(){var e=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==e&&o.leave(o)};e.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",g).emulateTransitionEnd(t.TRANSITION_DURATION):g()}},t.prototype.applyPlacement=function(t,n){var i=this.tip(),o=i[0].offsetWidth,r=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),t.top+=a,t.left+=s,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),i.addClass("in");var l=i[0].offsetWidth,d=i[0].offsetHeight;"top"==n&&d!=r&&(t.top=t.top+r-d);var c=this.getViewportAdjustedDelta(n,t,l,d);c.left?t.left+=c.left:t.top+=c.top;var u=/top|bottom/.test(n),h=u?2*c.left-o+l:2*c.top-r+d,f=u?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(h,i[0][f],u)},t.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(n){var i=this,o=e(this.$tip),r=e.Event("hide.bs."+this.type);function a(){"in"!=i.hoverState&&o.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),n&&n()}if(this.$element.trigger(r),!r.isDefaultPrevented())return o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),this.hoverState=null,this},t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){var n=(t=t||this.$element)[0],i="BODY"==n.tagName,o=n.getBoundingClientRect();null==o.width&&(o=e.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var r=window.SVGElement&&n instanceof window.SVGElement,a=i?{top:0,left:0}:r?null:t.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},l=i?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},o,s,l,a)},t.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(e,t,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var r=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-r-a.scroll,l=t.top+r-a.scroll+i;s<a.top?o.top=a.top-s:l>a.top+a.height&&(o.top=a.top+a.height-l)}else{var d=t.left-r,c=t.left+r+n;d<a.left?o.left=a.left-d:c>a.right&&(o.left=a.left+a.width-c)}return o},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var i=e(this),o=i.data("bs.tooltip"),r="object"==typeof n&&n;!o&&/destroy|hide/.test(n)||(o||i.data("bs.tooltip",o=new t(this,r)),"string"==typeof n&&o[n]())})},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.7",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype)).constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var i=e(this),o=i.data("bs.popover"),r="object"==typeof n&&n;!o&&/destroy|hide/.test(n)||(o||i.data("bs.popover",o=new t(this,r)),"string"==typeof n&&o[n]())})},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),function(e){"use strict";function t(n,i){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=e(this),o=i.data("bs.scrollspy"),r="object"==typeof n&&n;o||i.data("bs.scrollspy",o=new t(this,r)),"string"==typeof n&&o[n]()})}t.VERSION="3.3.7",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),o=t.data("target")||t.attr("href"),r=/^#./.test(o)&&e(o);return r&&r.length&&r.is(":visible")&&[[r[n]().top+i,o]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,r=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=i)return a!=(e=r[r.length-1])&&this.activate(e);if(a&&t<o[0])return this.activeTarget=null,this.clear();for(e=o.length;e--;)a!=r[e]&&t>=o[e]&&(void 0===o[e+1]||t<o[e+1])&&this.activate(r[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=e(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=i,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),function(e){"use strict";var t=function(t){this.element=e(t)};function n(n){return this.each(function(){var i=e(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new t(this)),"string"==typeof n&&o[n]()})}t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var o=n.find(".active:last a"),r=e.Event("hide.bs.tab",{relatedTarget:t[0]}),a=e.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(r),t.trigger(a),!a.isDefaultPrevented()&&!r.isDefaultPrevented()){var s=e(i);this.activate(t.closest("li"),n),this.activate(s,s.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},t.prototype.activate=function(n,i,o){var r=i.find("> .active"),a=o&&e.support.transition&&(r.length&&r.hasClass("fade")||!!i.find("> .fade").length);function s(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}r.length&&a?r.one("bsTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s(),r.removeClass("in")};var i=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var o=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(e){"use strict";var t=function(n,i){this.options=e.extend({},t.DEFAULTS,i),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var i=e(this),o=i.data("bs.affix"),r="object"==typeof n&&n;o||i.data("bs.affix",o=new t(this,r)),"string"==typeof n&&o[n]()})}t.VERSION="3.3.7",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,i){var o=this.$target.scrollTop(),r=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return o<n&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=r.top)&&"bottom":!(o+a<=e-i)&&"bottom";var s=null==this.affixed,l=s?o:r.top;return null!=n&&o<=n?"top":null!=i&&l+(s?a:t)>=e-i&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),i=this.options.offset,o=i.top,r=i.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof i&&(r=o=i),"function"==typeof o&&(o=i.top(this.$element)),"function"==typeof r&&(r=i.bottom(this.$element));var s=this.getState(a,n,o,r);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),d=e.Event(l+".bs.affix");if(this.$element.trigger(d),d.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-n-r})}};var i=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=i,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),i=t.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),n.call(t,i)})})}(jQuery)},,function(e,t,n){(function(t){var i=n(12);e.exports=function(e,n){return new t(e.toRed(i.mont(n.modulus)).redPow(new i(n.publicExponent)).fromRed().toArray())}}).call(this,n(9).Buffer)},function(e,t){e.exports=function(e,t){for(var n=e.length,i=-1;++i<n;)e[i]^=t[i];return e}},function(e,t,n){(function(t){var i=n(36);function o(e){var n=new t(4);return n.writeUInt32BE(e,0),n}e.exports=function(e,n){for(var r,a=new t(""),s=0;a.length<n;)r=o(s++),a=t.concat([a,i("sha1").update(e).update(r).digest()]);return a.slice(0,n)}}).call(this,n(9).Buffer)},function(e){e.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},function(e,t,n){var i=n(6),o=n(9).Buffer,r=n(31),a=r.base,s=r.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new d,this.tree._init(e.body)}function d(e){a.Node.call(this,"der",e)}function c(e){return e<10?"0"+e:e}e.exports=l,l.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},i(d,a.Node),d.prototype._encodeComposite=function(e,t,n,i){var r,a=function(e,t,n,i){var o;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))o=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return i.error("Unknown tag: "+e);o=e}return o>=31?i.error("Multi-octet tag encoding unsupported"):(t||(o|=32),o|s.tagClassByName[n||"universal"]<<6)}(e,t,n,this.reporter);if(i.length<128)return(r=new o(2))[0]=a,r[1]=i.length,this._createEncoderBuffer([r,i]);for(var l=1,d=i.length;d>=256;d>>=8)l++;(r=new o(2+l))[0]=a,r[1]=128|l,d=1+l;for(var c=i.length;c>0;d--,c>>=8)r[d]=255&c;return this._createEncoderBuffer([r,i])},d.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new o(2*e.length),i=0;i<e.length;i++)n.writeUInt16BE(e.charCodeAt(i),2*i);return this._createEncoderBuffer(n)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},d.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var i=0;i<e.length;i++)e[i]|=0}else if(Array.isArray(e))for(e=e.slice(),i=0;i<e.length;i++)e[i]|=0;if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var r=0;for(i=0;i<e.length;i++){var a=e[i];for(r++;a>=128;a>>=7)r++}var s=new o(r),l=s.length-1;for(i=e.length-1;i>=0;i--)for(a=e[i],s[l--]=127&a;(a>>=7)>0;)s[l--]=128|127&a;return this._createEncoderBuffer(s)},d.prototype._encodeTime=function(e,t){var n,i=new Date(e);return"gentime"===t?n=[c(i.getFullYear()),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[c(i.getFullYear()%100),c(i.getUTCMonth()+1),c(i.getUTCDate()),c(i.getUTCHours()),c(i.getUTCMinutes()),c(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!o.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new o(n)}if(o.isBuffer(e)){var i=e.length;0===e.length&&i++;var r=new o(i);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);i=1;for(var a=e;a>=256;a>>=8)i++;for(a=(r=new Array(i)).length-1;a>=0;a--)r[a]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(new o(r))},d.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},d.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},d.prototype._skipDefault=function(e,t,n){var i,o=this._baseState;if(null===o.default)return!1;var r=e.join();if(void 0===o.defaultBuffer&&(o.defaultBuffer=this._encodeValue(o.default,t,n).join()),r.length!==o.defaultBuffer.length)return!1;for(i=0;i<r.length;i++)if(r[i]!==o.defaultBuffer[i])return!1;return!0}},function(e,t,n){var i=n(6),o=n(31),r=o.base,a=o.bignum,s=o.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new d,this.tree._init(e.body)}function d(e){r.Node.call(this,"der",e)}function c(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var i=s.tagClass[n>>6],o=0==(32&n);if(31==(31&n)){var r=n;for(n=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:i,primitive:o,tag:n,tagStr:s.tag[n]}}function u(e,t,n){var i=e.readUInt8(n);if(e.isError(i))return i;if(!t&&128===i)return null;if(0==(128&i))return i;var o=127&i;if(o>4)return e.error("length octect is too long");i=0;for(var r=0;r<o;r++){i<<=8;var a=e.readUInt8(n);if(e.isError(a))return a;i|=a}return i}e.exports=l,l.prototype.decode=function(e,t){return e instanceof r.DecoderBuffer||(e=new r.DecoderBuffer(e,t)),this.tree._decode(e,t)},i(d,r.Node),d.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var i=e.save(),o=c(e,'Failed to peek tag: "'+t+'"');return e.isError(o)?o:(e.restore(i),o.tag===t||o.tagStr===t||o.tagStr+"of"===t||n)},d.prototype._decodeTag=function(e,t,n){var i=c(e,'Failed to decode tag of "'+t+'"');if(e.isError(i))return i;var o=u(e,i.primitive,'Failed to get length of "'+t+'"');if(e.isError(o))return o;if(!n&&i.tag!==t&&i.tagStr!==t&&i.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(i.primitive||null!==o)return e.skip(o,'Failed to match body of: "'+t+'"');var r=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(o=e.offset-r.offset,e.restore(r),e.skip(o,'Failed to match body of: "'+t+'"'))},d.prototype._skipUntilEnd=function(e,t){for(;;){var n=c(e,t);if(e.isError(n))return n;var i,o=u(e,n.primitive,t);if(e.isError(o))return o;if(i=n.primitive||null!==o?e.skip(o):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===n.tagStr)break}},d.prototype._decodeList=function(e,t,n,i){for(var o=[];!e.isEmpty();){var r=this._peekTag(e,"end");if(e.isError(r))return r;var a=n.decode(e,"der",i);if(e.isError(a)&&r)break;o.push(a)}return o},d.prototype._decodeStr=function(e,t){if("bitstr"===t){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if("bmpstr"===t){var i=e.raw();if(i.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var o="",r=0;r<i.length/2;r++)o+=String.fromCharCode(i.readUInt16BE(2*r));return o}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},d.prototype._decodeObjid=function(e,t,n){for(var i,o=[],r=0;!e.isEmpty();){var a=e.readUInt8();r<<=7,r|=127&a,0==(128&a)&&(o.push(r),r=0)}128&a&&o.push(r);var s=o[0]/40|0,l=o[0]%40;if(i=n?o:[s,l].concat(o.slice(1)),t){var d=t[i.join(" ")];void 0===d&&(d=t[i.join(".")]),void 0!==d&&(i=d)}return i},d.prototype._decodeTime=function(e,t){var n=e.raw().toString();if("gentime"===t)var i=0|n.slice(0,4),o=0|n.slice(4,6),r=0|n.slice(6,8),a=0|n.slice(8,10),s=0|n.slice(10,12),l=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");i=0|n.slice(0,2),o=0|n.slice(2,4),r=0|n.slice(4,6),a=0|n.slice(6,8),s=0|n.slice(8,10),l=0|n.slice(10,12),i=i<70?2e3+i:1900+i}return Date.UTC(i,o-1,r,a,s,l,0)},d.prototype._decodeNull=function(e){return null},d.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},d.prototype._decodeInt=function(e,t){var n=e.raw(),i=new a(n);return t&&(i=t[i.toString(10)]||i),i},d.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,n){var i=t;i._reverse=function(e){var t={};return Object.keys(e).forEach(function(n){(0|n)==n&&(n|=0);var i=e[n];t[i]=n}),t},i.der=n(407)},function(e,t,n){var i=n(6),o=n(30).Reporter,r=n(9).Buffer;function a(e,t){o.call(this,t),r.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=r.byteLength(e);else{if(!r.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}i(a,o),t.DecoderBuffer=a,a.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new a(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=s,s.prototype.join=function(e,t){return e||(e=new r(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):r.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)}},function(e,t,n){"use strict";var i=n(21),o=n(32),r=n(17),a=i.rotr64_hi,s=i.rotr64_lo,l=i.shr64_hi,d=i.shr64_lo,c=i.sum64,u=i.sum64_hi,h=i.sum64_lo,f=i.sum64_4_hi,p=i.sum64_4_lo,m=i.sum64_5_hi,g=i.sum64_5_lo,y=o.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function A(){if(!(this instanceof A))return new A;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}function b(e,t,n,i,o){var r=e&n^~e&o;return r<0&&(r+=4294967296),r}function w(e,t,n,i,o,r){var a=t&i^~t&r;return a<0&&(a+=4294967296),a}function _(e,t,n,i,o){var r=e&n^e&o^n&o;return r<0&&(r+=4294967296),r}function M(e,t,n,i,o,r){var a=t&i^t&r^i&r;return a<0&&(a+=4294967296),a}function x(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function k(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function S(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function C(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function E(e,t){var n=a(e,t,1)^a(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function L(e,t){var n=s(e,t,1)^s(e,t,8)^d(e,t,7);return n<0&&(n+=4294967296),n}function T(e,t){var n=a(e,t,19)^a(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}function D(e,t){var n=s(e,t,19)^s(t,e,29)^d(e,t,6);return n<0&&(n+=4294967296),n}i.inherits(A,y),e.exports=A,A.blockSize=1024,A.outSize=512,A.hmacStrength=192,A.padLength=128,A.prototype._prepareBlock=function(e,t){for(var n=this.W,i=0;i<32;i++)n[i]=e[t+i];for(;i<n.length;i+=2){var o=T(n[i-4],n[i-3]),r=D(n[i-4],n[i-3]),a=n[i-14],s=n[i-13],l=E(n[i-30],n[i-29]),d=L(n[i-30],n[i-29]),c=n[i-32],u=n[i-31];n[i]=f(o,r,a,s,l,d,c,u),n[i+1]=p(o,r,a,s,l,d,c,u)}},A.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],d=this.h[5],f=this.h[6],p=this.h[7],y=this.h[8],v=this.h[9],A=this.h[10],E=this.h[11],L=this.h[12],T=this.h[13],D=this.h[14],Y=this.h[15];r(this.k.length===n.length);for(var R=0;R<n.length;R+=2){var B=D,O=Y,H=S(y,v),P=C(y,v),I=b(y,0,A,0,L),j=w(0,v,0,E,0,T),F=this.k[R],N=this.k[R+1],z=n[R],W=n[R+1],$=m(B,O,H,P,I,j,F,N,z,W),U=g(B,O,H,P,I,j,F,N,z,W);B=x(i,o),O=k(i,o),H=_(i,0,a,0,l),P=M(0,o,0,s,0,d);var Q=u(B,O,H,P),G=h(B,O,H,P);D=L,Y=T,L=A,T=E,A=y,E=v,y=u(f,p,$,U),v=h(p,p,$,U),f=l,p=d,l=a,d=s,a=i,s=o,i=u($,U,Q,G),o=h($,U,Q,G)}c(this.h,0,i,o),c(this.h,2,a,s),c(this.h,4,l,d),c(this.h,6,f,p),c(this.h,8,y,v),c(this.h,10,A,E),c(this.h,12,L,T),c(this.h,14,D,Y)},A.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(e,t,n){"use strict";var i=n(21),o=n(32),r=n(247),a=n(17),s=i.sum32,l=i.sum32_4,d=i.sum32_5,c=r.ch32,u=r.maj32,h=r.s0_256,f=r.s1_256,p=r.g0_256,m=r.g1_256,g=o.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}i.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var n=this.W,i=0;i<16;i++)n[i]=e[t+i];for(;i<n.length;i++)n[i]=l(m(n[i-2]),n[i-7],p(n[i-15]),n[i-16]);var o=this.h[0],r=this.h[1],g=this.h[2],y=this.h[3],v=this.h[4],A=this.h[5],b=this.h[6],w=this.h[7];for(a(this.k.length===n.length),i=0;i<n.length;i++){var _=d(w,f(v),c(v,A,b),this.k[i],n[i]),M=s(h(o),u(o,r,g));w=b,b=A,A=v,v=s(y,_),y=g,g=r,r=o,o=s(_,M)}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],r),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],A),this.h[6]=s(this.h[6],b),this.h[7]=s(this.h[7],w)},v.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(e,t,n){"use strict";var i=n(21).rotr32;function o(e,t,n){return e&t^~e&n}function r(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,i){return 0===e?o(t,n,i):1===e||3===e?a(t,n,i):2===e?r(t,n,i):void 0},t.ch32=o,t.maj32=r,t.p32=a,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},function(e,t,n){"use strict";var i=t;function o(e){return 1===e.length?"0"+e:e}function r(e){for(var t="",n=0;n<e.length;n++)t+=o(e[n].toString(16));return t}i.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var i=0;i<e.length;i++)n[i]=0|e[i];return n}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16));else for(i=0;i<e.length;i++){var o=e.charCodeAt(i),r=o>>8,a=255&o;r?n.push(r,a):n.push(a)}return n},i.zero2=o,i.toHex=r,i.encode=function(e,t){return"hex"===t?r(e):e}},function(e,t,n){var i;function o(e){this.rand=e}if(e.exports=function(e){return i||(i=new o(null)),i.generate(e)},e.exports.Rand=o,o.prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var r=n(440);if("function"!=typeof r.randomBytes)throw new Error("Not supported");o.prototype._rand=function(e){return r.randomBytes(e)}}catch(e){}},function(e,t,n){var i=n(12),o=n(249);function r(e){this.rand=e||new o.Rand}e.exports=r,r.create=function(e){return new r(e)},r.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var o=new i(this.rand.generate(n))}while(o.cmp(e)>=0);return o},r.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},r.prototype.test=function(e,t,n){var o=e.bitLength(),r=i.mont(e),a=new i(1).toRed(r);t||(t=Math.max(1,o/48|0));for(var s=e.subn(1),l=0;!s.testn(l);l++);for(var d=e.shrn(l),c=s.toRed(r);t>0;t--){var u=this._randrange(new i(2),s);n&&n(u);var h=u.toRed(r).redPow(d);if(0!==h.cmp(a)&&0!==h.cmp(c)){for(var f=1;f<l;f++){if(0===(h=h.redSqr()).cmp(a))return!1;if(0===h.cmp(c))break}if(f===l)return!1}}return!0},r.prototype.getDivisor=function(e,t){var n=e.bitLength(),o=i.mont(e),r=new i(1).toRed(o);t||(t=Math.max(1,n/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var l=e.shrn(s),d=a.toRed(o);t>0;t--){var c=this._randrange(new i(2),a),u=e.gcd(c);if(0!==u.cmpn(1))return u;var h=c.toRed(o).redPow(l);if(0!==h.cmp(r)&&0!==h.cmp(d)){for(var f=1;f<s;f++){if(0===(h=h.redSqr()).cmp(r))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(d))break}if(f===s)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,n){var i=n(28);e.exports=y,y.simpleSieve=m,y.fermatTest=g;var o=n(12),r=new o(24),a=new(n(250)),s=new o(1),l=new o(2),d=new o(5),c=(new o(16),new o(8),new o(10)),u=new o(3),h=(new o(7),new o(11)),f=new o(4),p=(new o(12),null);function m(e){for(var t=function(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var i=Math.ceil(Math.sqrt(n)),o=0;o<t&&e[o]<=i&&n%e[o]!=0;o++);t!==o&&e[o]<=i||(e[t++]=n)}return p=e,e}(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function g(e){var t=o.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function y(e,t){if(e<16)return new o(2===t||5===t?[140,123]:[140,39]);var n,p;for(t=new o(t);;){for(n=new o(i(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(l),t.cmp(l)){if(!t.cmp(d))for(;n.mod(c).cmp(u);)n.iadd(f)}else for(;n.mod(r).cmp(h);)n.iadd(f);if(m(p=n.shrn(1))&&m(n)&&g(p)&&g(n)&&a.test(p)&&a.test(n))return n}}},function(e,t,n){var i=n(172),o=n(8).Buffer,r=n(25);function a(e,t,n,a){r.call(this),this._cipher=new i.AES(t),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=a,this._mode=e}n(6)(a,r),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},function(e,t,n){var i=n(172),o=n(8).Buffer,r=n(25),a=n(6),s=n(445),l=n(33),d=n(255);function c(e,t,n,a){r.call(this);var l=o.alloc(4,0);this._cipher=new i.AES(t);var c=this._cipher.encryptBlock(l);this._ghash=new s(c),n=function(e,t,n){if(12===t.length)return e._finID=o.concat([t,o.from([0,0,0,1])]),o.concat([t,o.from([0,0,0,2])]);var i=new s(n),r=t.length,a=r%16;i.update(t),a&&(a=16-a,i.update(o.alloc(a,0))),i.update(o.alloc(8,0));var l=8*r,c=o.alloc(8);c.writeUIntBE(l,0,8),i.update(c),e._finID=i.state;var u=o.from(e._finID);return d(u),u}(this,n,c),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(c,r),c.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=o.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var i=Math.min(e.length,t.length),o=0;o<i;++o)n+=e[o]^t[o];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},c.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},c.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},c.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=c},function(e){e.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},function(e,t){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},function(e,t,n){var i=n(33),o=n(8).Buffer,r=n(255);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return r(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),r=e._cache.length;e._cache=o.concat([e._cache,o.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var l=a(e),d=r+16*s;e._cache.writeUInt32BE(l[0],d+0),e._cache.writeUInt32BE(l[1],d+4),e._cache.writeUInt32BE(l[2],d+8),e._cache.writeUInt32BE(l[3],d+12)}var c=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),i(t,c)}},function(e,t,n){var i=n(262),o=n(183),r=n(182),a=n(259),s=n(258),l=n(8).Buffer,d=l.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function u(e,t,n){var a=function(e){return"rmd160"===e||"ripemd160"===e?o:"md5"===e?i:function(t){return r(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.length<s&&(t=l.concat([t,d],s));for(var u=l.allocUnsafe(s+c[e]),h=l.allocUnsafe(s+c[e]),f=0;f<s;f++)u[f]=54^t[f],h[f]=92^t[f];var p=l.allocUnsafe(s+n+4);u.copy(p,0,0,s),this.ipad1=p,this.ipad2=u,this.opad=h,this.alg=e,this.blocksize=s,this.hash=a,this.size=c[e]}u.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,n,i,o){l.isBuffer(e)||(e=l.from(e,s)),l.isBuffer(t)||(t=l.from(t,s)),a(n,i);var r=new u(o=o||"sha1",e,t.length),d=l.allocUnsafe(i),h=l.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var f=0,p=c[o],m=Math.ceil(i/p),g=1;g<=m;g++){h.writeUInt32BE(g,t.length);for(var y=r.run(h,r.ipad1),v=y,A=1;A<n;A++){v=r.run(v,r.ipad2);for(var b=0;b<p;b++)y[b]^=v[b]}y.copy(d,f),f+=p}return d}},function(e,t,n){(function(t){var n;n=t.browser?"utf-8":parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary",e.exports=n}).call(this,n(23))},function(e,t){var n=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>n||t!=t)throw new TypeError("Bad key length")}},function(e,t,n){t.pbkdf2=n(460),t.pbkdf2Sync=n(257)},function(e){e.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},function(e,t,n){var i=n(188);e.exports=function(e){return(new i).update(e).digest()}},function(e,t,n){"use strict";var i=n(6),o=n(462),r=n(25),a=n(8).Buffer,s=n(262),l=n(183),d=n(182),c=a.alloc(128);function u(e,t){r.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var n="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>n?t=("rmd160"===e?new l:d(e)).update(t).digest():t.length<n&&(t=a.concat([t,c],n));for(var i=this._ipad=a.allocUnsafe(n),o=this._opad=a.allocUnsafe(n),s=0;s<n;s++)i[s]=54^t[s],o[s]=92^t[s];this._hash="rmd160"===e?new l:d(e),this._hash.update(i)}i(u,r),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:d(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new u("rmd160",t):"md5"===e?new o(s,t):new u(e,t)}},function(e,t,n){var i=n(6),o=n(27),r=n(8).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function l(){this.init(),this._w=s,o.call(this,128,112)}function d(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0<t>>>0?1:0}i(l,o),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,n=0|this._ah,i=0|this._bh,o=0|this._ch,r=0|this._dh,s=0|this._eh,l=0|this._fh,v=0|this._gh,A=0|this._hh,b=0|this._al,w=0|this._bl,_=0|this._cl,M=0|this._dl,x=0|this._el,k=0|this._fl,S=0|this._gl,C=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var L=t[E-30],T=t[E-30+1],D=f(L,T),Y=p(T,L),R=m(L=t[E-4],T=t[E-4+1]),B=g(T,L),O=t[E-14],H=t[E-14+1],P=t[E-32],I=t[E-32+1],j=Y+H|0,F=D+O+y(j,Y)|0;F=(F=F+R+y(j=j+B|0,B)|0)+P+y(j=j+I|0,I)|0,t[E]=F,t[E+1]=j}for(var N=0;N<160;N+=2){F=t[N],j=t[N+1];var z=c(n,i,o),W=c(b,w,_),$=u(n,b),U=u(b,n),Q=h(s,x),G=h(x,s),V=a[N],J=a[N+1],K=d(s,l,v),X=d(x,k,S),q=C+G|0,Z=A+Q+y(q,C)|0;Z=(Z=(Z=Z+K+y(q=q+X|0,X)|0)+V+y(q=q+J|0,J)|0)+F+y(q=q+j|0,j)|0;var ee=U+W|0,te=$+z+y(ee,U)|0;A=v,C=S,v=l,S=k,l=s,k=x,s=r+Z+y(x=M+q|0,M)|0,r=o,M=_,o=i,_=w,i=n,w=b,n=Z+te+y(b=q+ee|0,q)|0}this._al=this._al+b|0,this._bl=this._bl+w|0,this._cl=this._cl+_|0,this._dl=this._dl+M|0,this._el=this._el+x|0,this._fl=this._fl+k|0,this._gl=this._gl+S|0,this._hl=this._hl+C|0,this._ah=this._ah+n+y(this._al,b)|0,this._bh=this._bh+i+y(this._bl,w)|0,this._ch=this._ch+o+y(this._cl,_)|0,this._dh=this._dh+r+y(this._dl,M)|0,this._eh=this._eh+s+y(this._el,x)|0,this._fh=this._fh+l+y(this._fl,k)|0,this._gh=this._gh+v+y(this._gl,S)|0,this._hh=this._hh+A+y(this._hl,C)|0},l.prototype._hash=function(){var e=r.allocUnsafe(64);function t(t,n,i){e.writeInt32BE(t,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},function(e,t,n){var i=n(6),o=n(27),r=n(8).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function l(){this.init(),this._w=s,o.call(this,64,56)}function d(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function u(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}i(l,o),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t,n=this._w,i=0|this._a,o=0|this._b,r=0|this._c,s=0|this._d,l=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)n[y]=e.readInt32BE(4*y);for(;y<64;++y)n[y]=0|(((t=n[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[y-7]+f(n[y-15])+n[y-16];for(var v=0;v<64;++v){var A=g+h(l)+d(l,p,m)+a[v]+n[v]|0,b=u(i)+c(i,o,r)|0;g=m,m=p,p=l,l=s+A|0,s=r,r=o,o=i,i=A+b|0}this._a=i+this._a|0,this._b=o+this._b|0,this._c=r+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},l.prototype._hash=function(){var e=r.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},function(e,t,n){"use strict";e.exports=r;var i=n(26),o=n(35);function r(e){if(!(this instanceof r))return new r(e);i.call(this,e),this._transformState={afterTransform:function(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){s(e,t,n)}):s(this,null,null)}function s(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=n(34),o.inherits(r,i),r.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},r.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},r.prototype._write=function(e,t,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var o=this._readableState;(i.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},r.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},r.prototype._destroy=function(e,t){var n=this;i.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},function(e,t,n){"use strict";var i=n(173);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return r||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||i.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(i.nextTick(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){e.exports=n(187).EventEmitter},function(e,t,n){"use strict";(function(t,i){var o=n(173);e.exports=A;var r,a=n(270);A.ReadableState=v,n(187).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(268),d=n(8).Buffer,c=t.Uint8Array||function(){},u=n(35);u.inherits=n(34);var h=n(478),f=void 0;f=h&&h.debuglog?h.debuglog("stream"):function(){};var p,m=n(477),g=n(267);u.inherits(A,l);var y=["error","close","destroy","pause","resume"];function v(e,t){r=r||n(26),e=e||{};var i=t instanceof r;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(184).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function A(e){if(r=r||n(26),!(this instanceof A))return new A(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function b(e,t,n,i,o){var r,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,x(e)}}(e,a)):(o||(r=function(e,t){var n,i;return i=t,d.isBuffer(i)||i instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(a,t)),r?e.emit("error",r):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=function(e){return d.from(e)}(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):S(e,a)):w(e,a,t,!1))):i||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&x(e)),S(e,t)}Object.defineProperty(A.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=g.destroy,A.prototype._undestroy=g.undestroy,A.prototype._destroy=function(e,t){this.push(null),t(e)},A.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=d.from(e,t),t=""),n=!0),b(this,e,t,!1,n)},A.prototype.unshift=function(e){return b(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){return p||(p=n(184).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var _=8388608;function M(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(k,e):k(e))}function k(e){f("emit readable"),e.emit("readable"),T(e)}function S(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function E(e){f("readable nexttick read 0"),e.read(0)}function L(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),T(e),t.flowing&&!t.reading&&e.read(0)}function T(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):i=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,i=1,o=n.data;for(e-=o.length;n=n.next;){var r=n.data,a=e>r.length?r.length:e;if(a===r.length?o+=r:o+=r.slice(0,e),0==(e-=a)){a===r.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=r.slice(a));break}++i}return t.length-=i,o}(e,t):function(e,t){var n=d.allocUnsafe(e),i=t.head,o=1;for(i.data.copy(n),e-=i.data.length;i=i.next;){var r=i.data,a=e>r.length?r.length:e;if(r.copy(n,n.length-e,0,a),0==(e-=a)){a===r.length?(++o,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=r.slice(a));break}++o}return t.length-=o,n}(e,t),i}(e,t.buffer,t.decoder),n);var n}function Y(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}A.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Y(this):x(this),null;if(0===(e=M(e,t))&&t.ended)return 0===t.length&&Y(this),null;var i,o=t.needReadable;return f("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",o=!0),t.ended||t.reading?f("reading or ended",o=!1):o&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=M(n,t))),null===(i=e>0?D(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Y(this)),null!==i&&this.emit("data",i),i},A.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},A.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,f("pipe count=%d opts=%j",r.pipesCount,t);var l=t&&!1===t.end||e===i.stdout||e===i.stderr?v:d;function d(){f("onend"),e.end()}r.endEmitted?o.nextTick(l):n.once("end",l),e.on("unpipe",function t(i,o){f("onunpipe"),i===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,f("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",c),e.removeListener("error",m),e.removeListener("unpipe",t),n.removeListener("end",d),n.removeListener("end",v),n.removeListener("data",p),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||c())});var c=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(n);e.on("drain",c);var u=!1,h=!1;function p(t){f("ondata"),h=!1,!1!==e.write(t)||h||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==B(r.pipes,e))&&!u&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function m(t){f("onerror",t),v(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),v()}function y(){f("onfinish"),e.removeListener("close",g),v()}function v(){f("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",g),e.once("finish",y),e.emit("pipe",n),r.flowing||(f("pipe resume"),n.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var r=0;r<o;r++)i[r].emit("unpipe",this,n);return this}var a=B(t.pipes,e);return-1===a?this:(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},A.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&x(this):o.nextTick(E,this))}return n},A.prototype.addListener=A.prototype.on,A.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(L,e,t))}(this,e)),this},A.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},A.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var o in e.on("end",function(){if(f("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){f("wrapped data"),n.decoder&&(o=n.decoder.write(o)),(!n.objectMode||null!==o&&void 0!==o)&&(n.objectMode||o&&o.length)&&(t.push(o)||(i=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var r=0;r<y.length;r++)e.on(y[r],this.emit.bind(this,y[r]));return this._read=function(t){f("wrapped _read",t),i&&(i=!1,e.resume())},this},Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),A._fromList=D}).call(this,n(22),n(23))},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1分鐘",mm:"%d分鐘",h:"1小時",hh:"%d小時",d:"1天",dd:"%d天",M:"1個月",MM:"%d個月",y:"1年",yy:"%d年"}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var t,n;return t=e().startOf("week"),n=this.diff(t,"days")>=7?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()<t.unix()?"[上]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,o;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(i=+e,o={mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),i%10==1&&i%100!=11?o[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?o[1]:o[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){return{nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")}[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i?o[n][0]:t?o[n][0]:o[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,o){var r=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),o=e%10,r="";return n>0&&(r+=t[n]+"vatlh"),i>0&&(r+=(""!==r?" ":"")+t[i]+"maH"),o>0&&(r+=(""!==r?" ":"")+t[o]),""===r?"pagh":r}(e);switch(i){case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"H นาฬิกา m นาที s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H นาฬิกา m นาที",LLLL:"วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},ordinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},ordinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var o=t.words[i];return 1===i.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var o=t.words[i];return 1===i.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return o+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return o+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return o+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return o+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return o+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function o(e,t,n,o){var r=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?r+(i(e)?"minúty":"minút"):r+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?r+(i(e)?"hodiny":"hodín"):r+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?r+(i(e)?"dni":"dní"):r+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?r+(i(e)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?r+(i(e)?"roky":"rokov"):r+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},ordinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,o;return"m"===n?t?"минута":"минуту":e+" "+(i=+e,o={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),i%10==1&&i%100!=11?o[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?o[1]:o[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(сентябр[яь]|октябр[яь]|декабр[яь]|феврал[яь]|январ[яь]|апрел[яь]|августа?|ноябр[яь]|сент\.|февр\.|нояб\.|июнь|янв.|июль|дек.|авг.|апр.|марта|мар[.т]|окт.|июн[яь]|июл[яь]|ма[яй])/i,monthsShortRegex:/^(сентябр[яь]|октябр[яь]|декабр[яь]|феврал[яь]|январ[яь]|апрел[яь]|августа?|ноябр[яь]|сент\.|февр\.|нояб\.|июнь|янв.|июль|дек.|авг.|апр.|марта|мар[.т]|окт.|июн[яь]|июл[яь]|ма[яй])/i,monthsStrictRegex:/^(сентябр[яь]|октябр[яь]|декабр[яь]|феврал[яь]|январ[яь]|апрел[яь]|августа?|ноябр[яь]|марта?|июн[яь]|июл[яь]|ма[яй])/i,monthsShortStrictRegex:/^(нояб\.|февр\.|сент\.|июль|янв\.|июн[яь]|мар[.т]|авг\.|апр\.|окт\.|дек\.|ма[яй])/i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function o(e,t,n){var o=e+" ";switch(n){case"m":return t?"minuta":"minutę";case"mm":return o+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return o+(i(e)?"godziny":"godzin");case"MM":return o+(i(e)?"miesiące":"miesięcy");case"yy":return o+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return""===i?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(i)?n[e.month()]:t[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:o,y:"rok",yy:o},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return/-MMM-/.test(i)?n[e.month()]:t[e.month()]},monthsParseExact:!0,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function i(e,t,n,i){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={words:{m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var o=t.words[i];return 1===i.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&11!==t?e[2]:e[3]:t%10==1&&11!==t?e[0]:e[1]}function i(e,i,o){return e+" "+n(t[o],e,i)}function o(e,i,o){return n(t[o],e,i)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},m:o,mm:i,h:o,hh:i,d:o,dd:i,M:o,MM:i,y:o,yy:i},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,i){return t?o(n)[0]:i?o(n)[1]:o(n)[2]}function i(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split("_")}function r(e,t,r,a){var s=e+" ";return 1===e?s+n(0,t,r[0],a):t?s+(i(e)?o(r)[1]:o(r)[0]):a?s+o(r)[1]:s+(i(e)?o(r)[1]:o(r)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_")},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,i){return t?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"},m:n,mm:r,h:n,hh:r,d:n,dd:r,M:n,MM:r,y:n,yy:r},ordinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},ordinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"일분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},ordinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"Do_Lu_Ma_Me_Gi_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,o){var r=e+" ";switch(i){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?r+(n||o?"mínútur":"mínútum"):n?r+"mínúta":r+"mínútu";case"hh":return t(e)?r+(n||o?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?r+"dagar":r+(o?"daga":"dögum"):n?r+"dagur":r+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?r+"mánuðir":r+(o?"mánuði":"mánuðum"):n?r+"mánuður":r+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?r+(n||o?"ár":"árum"):r+(n||o?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,i){var o=e;switch(n){case"s":return i||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return o+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" óra":" órája");case"hh":return o+(i||t?" óra":" órája");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return o+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" hónap":" hónapja");case"MM":return o+(i||t?" hónap":" hónapja");case"y":return"egy"+(i||t?" év":" éve");case"yy":return o+(i||t?" év":" éve")}return""}function i(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),monthsParseExact:!0,weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return"uns segundos"===e?"nuns segundos":"en "+e},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},ordinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return/-MMM-/.test(i)?n[e.month()]:t[e.month()]},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(e){return e+(1===e?"er":"e")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(e){return e+(1===e?"er":"e")}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,o,r){var a="";switch(o){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"m":return r?"minuutin":"minuutti";case"mm":a=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":a=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":a=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":a=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":a=r?"vuoden":"vuotta"}return function(e,i){return e<10?r?n[e]:t[e]:e}(e)+" "+a}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:i?o[n][0]:o[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return/-MMM-/.test(i)?n[e.month()]:t[e.month()]},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-an de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,i=this._calendarEl[e],o=t&&t.hours();return((n=i)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY HH:mm"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function i(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,o){var r=e+" ";switch(n){case"s":return t||o?"pár sekund":"pár sekundami";case"m":return t?"minuta":o?"minutu":"minutou";case"mm":return t||o?r+(i(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?r+(i(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||o?"den":"dnem";case"dd":return t||o?r+(i(e)?"dny":"dní"):r+"dny";case"M":return t||o?"měsíc":"měsícem";case"MM":return t||o?r+(i(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||o?"rok":"rokem";case"yy":return t||o?r+(i(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsParse:function(e,t){var n,i=[];for(n=0;n<12;n++)i[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return i}(t,n),shortMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(n),longMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(t),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্র_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,o;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(i=+e,o={mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),i%10==1&&i%100!=11?o[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?o[1]:o[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,n,r,a){var s=i(t),l=o[e][i(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},a=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(3))},function(e,t){e.exports="data:application/vnd.ms-fontobject;base64,yA0AAPgMAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAUHXl+wAAAAAAAAAAAAAAAAAAAAAAACQAYwBvAG4AdABlAHgAdAAtAG0AZQBuAHUALQBpAGMAbwBuAHMAAAAOAFIAZQBnAHUAbABhAHIAAAAWAFYAZQByAHMAaQBvAG4AIAAxAC4AMAAAACQAYwBvAG4AdABlAHgAdAAtAG0AZQBuAHUALQBpAGMAbwBuAHMAAAAAAAABAAAACwCAAAMAMEdTVUIgiyV6AAABOAAAAFRPUy8yQG9P2AAAAYwAAABWY21hcIsI7vIAAAIIAAAB0mdseWap/oa/AAAD8AAABhRoZWFkEL3zUwAAAOAAAAA2aGhlYQe/A8gAAAC8AAAAJGhtdHggAP/6AAAB5AAAACRsb2NhBp4H6AAAA9wAAAAUbWF4cAEaAI4AAAEYAAAAIG5hbWWhQ3MWAAAKBAAAAo5wb3N0ObP5owAADJQAAABjAAEAAAPA/8AAAAQA//r//gQCAAEAAAAAAAAAAAAAAAAAAAAJAAEAAAABAAD75XVQXw889QALBAAAAAAA1tFXawAAAADW0Vdr//r/wAQCA8AAAAAIAAIAAAAAAAAAAQAAAAkAggAHAAAAAAACAAAACgAKAAAA/wAAAAAAAAABAAAACgAwAD4AAkRGTFQADmxhdG4AGgAEAAAAAAAAAAEAAAAEAAAAAAAAAAEAAAABbGlnYQAIAAAAAQAAAAEABAAEAAAAAQAIAAEABgAAAAEAAAABA44BkAAFAAAEcQLMAAAAjwRxAswAAAHrADIBCAAAAgAFAwAAAAAAAAAAAAAAAAAAAAAAAAAAAABQZkVkAEDqAeoIA8D/wABcA8AAQAAAAAEAAAAAAAAAAAAABAAAAAQAAAAEAP/6BAAAAAQAAAAEAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAABYgABAAAAAABcAAMAAQAAACwAAwAKAAABYgAEADAAAAAEAAQAAQAA6gj//wAA6gH//wAAAAEABAAAAAEAAgADAAQABQAGAAcACAAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAcAAAAAAAAAAIAADqAQAA6gEAAAABAADqAgAA6gIAAAACAADqAwAA6gMAAAADAADqBAAA6gQAAAAEAADqBQAA6gUAAAAFAADqBgAA6gYAAAAGAADqBwAA6gcAAAAHAADqCAAA6ggAAAAIAAAAAAAAADIAjAFWAdYCSAJ8As4DCgABAAAAAAOTA3cAIwAAARUUBisBFRQGKwEiJj0BIyImPQE0NjsBNTQ2OwEyFh0BMzIWA5IgF+0gF24XIO0XICAX7SAXbhcg7RcgAhttFyDuFyAgF+4gF20XIO4XICAX7iAAAAAABQAA/8AEAAPAAB8AIgAlADMAPAAAATIWFREUBiMhIiY9ASEiJjURNDY/AT4BOwEyFh0BNjMPATMBBzMXNzUjFRQGKwERITU0NgERIxUUBisBEQPJFyAgF/3cFyD+yRcgFxDpEDcX7RcgJyJJq6v+k6urcLTbIBfuASUXAjLcIBbuAuUgF/1JFyAgF6QgFwGAFzcQ6RAXIBe7F3qrAYarxrTu7hcg/pOSFzf+RAKS7Rcg/pIAB//6AAAEAgMuAAgASwBZAGcAcgB7AIEAAAEyFhQGIiY0NhcFFgYPAQYiJyUHBgcWBw4BBwYjIicmNz4BNzYzMhc2PwEnJicGIyInLgEnJjY3NjMyFx4BFxYHMh8BJTYyHwEeAQcFNiYnJiMiBwYWFxYzMgM+AScmIyIHDgEXFjMyExc1ND8BJwcGDwEfAQEnBRUHHwEFNyUHBgcCJQ4WFh0WFroBIhAFEUkIEgj+dT8EAggDBDgvTFJOMTQHBDguTFMwJwUHRkYHBScwU0wuOAQDFxkwT1JMLzgEAwgCBD8BiwgSCEkRBRD9WRocLzQ5KxYaHC80OSsbLxwaFis5NC8cGhYrOZo3EwgtFQQDBHs3AaRJ/klbCRwB7Un+12UBBgHAFh0WFh0WJeMLKQklBAXdJgIBHBssUR4wLTBGK1IeMBIIBSkqBQgSMB5RLCI9Fy0wHlEsHBwCJt0FBCUJKQtPGEseIRQYTB0i/msdTBgUIR1MGBQBgCIHFAwEGxUFAgOFEwFJJfZBNwgctyTqTwICAAAFAAAAAAOTA3cADwAfAC8ANwBbAAAlETQmKwEiBhURFBY7ATI2NxE0JisBIgYVERQWOwEyNjcRNCYrASIGFREUFjsBMjYBIScmJyMGBwUVFAYrAREUBiMhIiY1ESMiJj0BNDY7ATc+ATsBMhYfATMyFgGSCgglCAoKCCUICpMLCCQICwsIJAgLkgoIJQgKCgglCAr+yQEAGwQGtQYEAfYKCDc2Jf4kJTY3CAoKCLEoCC0XthctCCixCAquAZIICgoI/m4ICwsIAZIICgoI/m4ICwsIAZIICgoI/m4ICwsCP0IGAQEGVSQIC/3jMEVDLwIgCwgkCAtfFR4eFV8LAAAABQAAAAAD/AN3AAYADwA5AD4ASAAAATcnBxUzFQEmDwEGFj8BNhMVFAYjISImNRE0NjMhMhceAQ8BBicmIyEiBhURFBYzITI2PQE0PwE2FgMXASM1AQcnNzYyHwEWFAH7Q1dCNgEcCQrIChMJyAolYUT+JURhYUQB2yQfCAQHHAgKDQ3+JSY2NiYB2yY1BiQJFzek/oCkAn00pTUQLhBWEAEbQ1dDIDcBnAkKyAkTCsgK/rVsRGFhRAHbRGEOBBMHHAgDBDYm/iUmNjYmSAcFJQkKAZqk/oCkATU1pTQQEFcQLQAAAQAA/9ID7gOpACEAAAEUDgIiLgI1ND4BNxUOARUUHgIyPgI1NCYnNR4CA+5PhLbKtoRPb8B2fqc7YYiUiGE7p352wG8BwGW2hE9PhLZletSJEoMZyoNKiGE7O2GISoPKGYMSidQAAAAEAAD/wAQAA8AACAAYABsANwAAJSERIyImPQEjNzU0JiMhIgYdARQWMyEyNhMzJwURFAYjISImPQEhIiY1ETQ2MyEyFh0BFh8BHgEBtwIA7hcg25ILB/5uCAsLCAGSBwuSq6sBJSAX/dwXIP7JFyAgFwJuFiAMCekQFwkBbiAX7aUlBwsLByUHCwv+h6v0/oAXICAXWyAXAwAXICAXuwgI6RA3AAEAAAAAA1QC7wAkAAAlFA8BBiIvAQcGIi8BJjQ/AScmND8BNjIfATc2Mh8BFhQPARcWA1MQTRAuEKioEC4QTRAQqKgQEE0QLhCoqBAuEE0QEKioEM0XEE4QEKioEBBOEC0QqKgQLhBOEBCoqBAQThAuEKioEAAAAAAAEADGAAEAAAAAAAEAEgAAAAEAAAAAAAIABwASAAEAAAAAAAMAEgAZAAEAAAAAAAQAEgArAAEAAAAAAAUACwA9AAEAAAAAAAYAEgBIAAEAAAAAAAoAKwBaAAEAAAAAAAsAEwCFAAMAAQQJAAEAJACYAAMAAQQJAAIADgC8AAMAAQQJAAMAJADKAAMAAQQJAAQAJADuAAMAAQQJAAUAFgESAAMAAQQJAAYAJAEoAAMAAQQJAAoAVgFMAAMAAQQJAAsAJgGiY29udGV4dC1tZW51LWljb25zUmVndWxhcmNvbnRleHQtbWVudS1pY29uc2NvbnRleHQtbWVudS1pY29uc1ZlcnNpb24gMS4wY29udGV4dC1tZW51LWljb25zR2VuZXJhdGVkIGJ5IHN2ZzJ0dGYgZnJvbSBGb250ZWxsbyBwcm9qZWN0Lmh0dHA6Ly9mb250ZWxsby5jb20AYwBvAG4AdABlAHgAdAAtAG0AZQBuAHUALQBpAGMAbwBuAHMAUgBlAGcAdQBsAGEAcgBjAG8AbgB0AGUAeAB0AC0AbQBlAG4AdQAtAGkAYwBvAG4AcwBjAG8AbgB0AGUAeAB0AC0AbQBlAG4AdQAtAGkAYwBvAG4AcwBWAGUAcgBzAGkAbwBuACAAMQAuADAAYwBvAG4AdABlAHgAdAAtAG0AZQBuAHUALQBpAGMAbwBuAHMARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJAQIBAwEEAQUBBgEHAQgBCQEKAANhZGQEY29weQNjdXQGZGVsZXRlBGVkaXQHbG9hZGluZwVwYXN0ZQRxdWl0AAAA"},,,function(e){e.exports={selectTargetCellFirst:"Please select target cell first!",selectMultiTargetCellFirst:"Please select multiple cells first!",mergeSplitCells:"Merge/Split Cells",image:"Image",importExcel:"Import Excel",italic:"Italic",openFile:"Open File...",setting:"Setting",underline:"Underline",panel:{property:"Property",datasource:"Data Source",tip:"Click display/hide Panel"},tools:{searchFormSwitch:"Switch to search form designer",alignLeft:{upDownAlign:"Align Top and Bottom",leftRightAlign:"Align Left and Right",changeMenu:"Change Menu",leftAlign:"Align Left",centerAlign:"Align Center",rightAlign:"Align Right"},alignTop:{upDownAlign:"Align Top and Bottom",changeMenu:"Change Menu",topAlign:"Align Top",middleAlign:"Align Middle",bottomAlign:"Align Bottom"},bgColor:{bgColor:"Background Color",changeMenu:"Change Menu"},bold:{bold:"Bold"},border:{borderLine:"Border Line",allLine:"All Border Line",noBorder:"No Border",leftBorder:"Left Border Line",rightBorder:"Right Border Line",topBorder:"Top Border Line",bottomBorder:"Bottom Border Line",customBorder:"Custom Border Line",up:"Up",down:"Down",left:"Left",right:"Right",customBorderLine:"Custom Border Line",lineStyle:"Line Style",solidLine:"Solid",dashed:"Dashed",none:"None",size:"Size",color:"Color"},chart:{chart:"Chart",pie:"Pie",doughnut:"Doughnut",line:"Line",bar:"Bar",horizontalBar:"Horizontal Bar",area:"Area",radar:"Radar",polar:"Polar",scatter:"Scatter",bubble:"Bubble"},crosstab:{title:"Slash Line"},font:{font:"Font",changeMenu:"Change Menu"},fontSize:{size:"Font Size",changeMenu:"Change Menu"},foreColor:{color:"Fill Color",changeMenu:"Change Menu"},preview:{preview:"Report Preview",view:"Preview Report",pagingPreview:"Preview Report with Paging",previewFail:"Report Preview Fail."},redo:{noRedo:"Nothing to redo.",redo:"Redo"},undo:{noUndo:"Nothing to undo.",redo:"Undo"},save:{save:"Save",successSave:"Save Successfully",failSave:"Save Failed",saveAs:"Save as..."},zxing:{title:"Barcode/QRCode",qrcode:"QRCode",barcode:"Barcode"}},dialog:{bean:{beanDatasetConfig:"Spring Bean Dataset Config",datasetName:"Dataset Name:",methodName:"Method Name:",selectMethod:"Select Method",methodParameters:"Method must be contain three Parameters:",returnObject:"Return Object:",className:"Class full name for generate fields,if not specified,you need add field manually",ok:"OK",dataset:"Dataset",datasetExist:"already exist,please change dataset name."},buildin:{selectDatasource:"Select Buildin Datasource",datasourceName:"Datasource Name",select:"Select",datasource:"Datasource",datasourceExist:"already exist,please other datasource",loadFail:"Load buildin datasource fail."},condition:{config:"Condition Config",relationship:"Relation with the previous condition:",and:"And",or:"Or",propertyName:"Property Name:",op:"Operator:",greatThen:"Greater Then",greatEquals:"Greater Then or Equals",lessThen:"Less Then",lessEquals:"Less Then or Equals",equals:"Equals",notEquals:"Not Equals",in:"In",like:"Like",valueExpr:"Value Expr:",exprError:"Syntax error!",ok:"OK",selectProperty:"Please select Property!",selectOp:"Please select Operator!",inputExpr:"Please input value Expr!"},crosstab:{title:"Custom Slash Line",crosstab:"Slash Line",tip:"Multiple slash lines split with '|',keep blank will generate all slash lines",ok:"OK"},customGroup:{title:"Custom Group Config",deleteTip:"Please select group item for delete!",deleteConfirm:"Are you sure delete the group item?",modTip:"Please select group item for modify!",groupCondition:"Group Condition",addCondition:"Add Condition",selectTip:"Please select group item first!",editTip:"Edit Selected Condition",editConditionTip:"Please select condition for modify first!",delTitle:"Delete Selected Condition",delConditionTip:"Please select condition for delete first!"},datasource:{title:"Datasource Config",name:"Datasource Name:",username:"Username:",password:"Password:",driver:"Driver:",url:"URL:",test:"Test Connection",save:"Save",nameTip:"Datasource name can not be null.",usernameTip:"Username can not be null.",driverTip:"Driver can not be null",urlTip:"URL can not be null",datasource:"Datasource",existTip:"already exist,please change the datasource name.",testSuccess:"Test connection successfully!",testFail:"Test connection fail:",failTip:"Test connection fail,please confirm connection info is right.",failTip1:"Test connection fail."},editPropCondition:{title:"Condition Config",relation:"Relation with Prev Condition:",and:"And",or:"Or",leftValue:"Left Value:",currentValue:"Current Value",property:"Property",expression:"Expression",propName:"Property Name:",expr:"Expression:",syntaxError:"exist syntax error!",operator:"Operator:",greater:"Greater Then",greaterEquals:"Greater Then or Equals",less:"Less Then",lessEquals:"Less Then or Equals",equals:"Equals",notEquals:"Not Equals",in:"in",like:"like",valueExpr:"Value Expression:",ok:"OK",selectProp:"Please select property!",leftValueExpr:"Please input left value expression",selectOperator:"Please select operator",inputExpr:"Please input expression value"},fontSetting:{title:"Font Style Setting",font:"Font:",color:"Color:",size:"Size",bold:"Bold:",yes:"Yes",no:"No",italic:"Italic",underline:"Underline:",ok:"OK"},groupItem:{title:"Custom Group Item",name:"Group Name:",ok:"OK",nameTip:"Please input group item name!",addItem:"Add custom group item",editItem:"Modify custom group item"},import:{title:"Import Excel File",desc:"This operation will import the first sheet content of Excel,if you choice the xlsx format of Excel file,if the background color could not parse,you can save the file as xls format,and upload it again.",file:"Select the excel file to import:",upload:"Upload",fail:"Import fail"},mapping:{title:"Add Data Mapping",key:"Actual Value",value:"Display Value",save:"Save",tip:"Please input all mapping item!",add:"Add data mapping",edit:"Edit data mapping"},methodSelect:{title:"SpringBean Dataset config",methodName:"Method Name",select:"Select",load:"Load Bean",fail:"avaliable method fail!"},open:{title:"Open Report File",source:"Report File Source:",fileName:"File Name",modDate:"Modify Date",open:"Open",del:"Delete",openConfirm:"Are you sure open file ",delConfirm:"Are you sure delete file ",delFail:"File delete fail",loadFail:"Load report file fail."},sqlParam:{title:"SQL Parameters",name:"Parameter Name:",datatype:"Datatype:",defaultValue:"Default Value:",tip:'Date type data default value pattern is "yyyy-MM-dd HH:mm:ss"',ok:"OK",nameTip:"Parameter name can not be null!",datatypeTip:"Datatype can not be null!",param:"Parameter ",exist:" already exist!"},paramTable:{addParam:"Add Parameter",paramName:"Parameter Name",paramDatatype:"Datatype",defaultValue:"Default Value",operator:"Operator",delParam:"Delete Parameter",editParam:"Edit Parameter"},preview:{title:"Data Preview",load:"Data loading...",ok:"Ok",total:"Total ",totalMid:",preview first ",item:""},propCondition:{title:"Condition Property Config",config:"Condition Config",addItem:"Add New",editItem:"Edit Selected",editTip:"Please select a item first!",delItem:"Delete Item",delTip:"Please select a item first!",delConfirm:"Are you sure delete item ",conditionConfig:"Condition Config",propConfig:"Property Config",currentValue:"Current Value",addValue:"Add Condition",selectItem:"Please select a item first!",editConditionItem:"Edit selection Condition",editConditionTip:"Please select a item first!",selectConditionItem:"Please select a item first!",delCondition:"Delete selection Condition",delConditionTip:"Please select a item first!",selectDelCondition:"Please select a condition item first!",forecolor:"Forecolor",scope:"Scope:",currentCell:"Current Cell",currentRow:"Current Row",currentCol:"Current Column",bgcolor:"BGColor",font:"Font",fontSize:"Font Size",bold:"Bold",yes:"Yes",no:"No",italic:"Italic",underline:"Underline",align:"Align",left:"Left",center:"Center",right:"Right",valign:"VAlign",top:"Top",mid:"Middle",bottom:"Bottom",border:"Border",borderConfig:"Border Config",newValue:"New Value",format:"Format",rowHeight:"Row Height",colWidth:"Col Width",paging:"Paging",rowBefore:"Current Row Before",rowAfter:"Current Row After",link:"Link",target:"Target:",newWindow:"New Window",currentWindow:"Current Window",parentWindow:"Parent Window",topWindow:"Top Window",urlParameter:"URL Parameters Config",linkUrl:"Please config url first!"},conditionItem:{title:"Add Condition Item",itemName:"Condition Name:",ok:"OK",nameTip:"Please input Condition Item Name!",add:"Add Condition Item",edit:"Edit Condition Item"},rowColWidthHeight:{title:"Row height or Column width setting",tip:"Please enter a number greater than 0",numValidate:"Please enter a valid number! ",colWidth:"Column Width",ok:"OK",rowHeight:"Row Height"},save:{title:"Save Report File",source:"Store Destination:",fileName:"File Name",modDate:"Modify Date",del:"Delete",delConfirm:"Are you sure delete the file :",delFail:"File delete failed.",save:"Save",nameTip:"File name can not be null.",locationTip:"Please select destination to store file.",file:"File",exist:" already exist",success:"Save successfully",fail:"Save failed",loadFail:"Load file failed."},setting:{title:"Report Setting",pageSetting:"Page Setting",headerFooterSetting:"Header Footer",pagingSetting:"Paging",columnSetting:"Column Setting",sheetExport:"Export Excel by Sheet:",disable:"Disable",enable:"Enable",recordCountPerPage:"The number of records of sheet :",recordCountTip:"Each sheet records not less than 1!",paperType:"Paper Type:",custom:"Custom",paperWidth:"Paper Width(mm):",numberTip:"Please enter a number! ",paperHeight:"Paper Height(mm):",leftMargin:"Left Margin(mm):",rightMargin:"Right Margin(mm):",topMargin:"Top Margin(mm):",bottomMargin:"Bottom Margin(mm):",orientation:"Orientation:",portrait:"Portrait",landscape:"Landscape",htmlAlign:"Align for Html Report:",left:"Left",center:"Center",right:"Right",refreshSecond:"Html Report timing refresh(s):",tip1:"0 means no refresh",tip2:"0 means no refresh",secondTip:"Please enter a number greater than or equal to 0",bg:"Background Image for Print:",bgTip:"Please enter background image url for print,image resolution needs to be set to 96dpi",hfdesc:'Headers/footers defined by expressions,like:"Page"+page()+",total"+pages()',header:"Header",fontStyleSetting:"Font Style Setting",headerMargin:"Header Top Margin(mm):",footer:"Footer",footerMargin:"Footer Bottom Margin(mm):",hfLeft:"Left",hfCenter:"Center",hfRight:"Right",pagingType:"Paging Type:",auto:"Auto",fixRows:"Fix Rows",rowsPerPage:"Rows per Page:",fixRowsTip:"Fixed rows cannot be less than one",colDesc:"The column effect is shown in paging,and print,exporting report.",column:"Column:",columnCount:"Column count:",columnUnit:" columns",columnTip:"Please enter column number",columnMargin:"Column Margin(mm):",numTip:"Please enter a number!",syntaxError:"Syntax error:",syntaxCheckFail:"Syntax check failed!"},springDS:{title:"Spring Bean Datasource Config",name:"Datasource Name:",bean:"Bean ID:",save:"Save",nameTip:"Datasource name cannot be null!",beanTip:"Bean ID cannot be null!",ds:"Datasource",exist:" already exist!"},sql:{title:"SQL Dataset Config",search:"Table Search",tableName:"Table Name",type:"Type",datasetName:"Dataset Name:",desc:"SQL support expression,like:${expr...}</span>):",syntaxCheckError:"Syntax check failed!",fiterParam:"Search Parameters",paramDesc:"(Please define parameters in the below table)",preview:"Preview Data",previewFail:"Preview data fail!",ok:"OK",nameTip:"Dataset name cannot be null!",sqlTip:"SQL cannot be null!",ds:"Dataset",exist:" already exist.",addSql:"Double click to add sql",table:"Table",view:"View",loadFail:"Load failed!"},urlParam:{title:"URL Parameters Config",add:"Add Parameter",delTip:"Are you sure delete it?",name:"Parameter Name",expr:"Value Expr",op:"Operate"},paramItem:{title:"Add Parameter",name:"Parameter Name",expr:"Value Expr:",save:"Save",tip:"Parameter item cannot be null!",add:"Add Parameter",edit:"Edit Parameter"}},property:{datasource:{title:"Add Database Connection",addBean:"Add SpringBean Connection",addBuildin:"Add Buildin Connection"},prop:{linkConfig:"Link Config",target:"Target:",newWindow:"New Window",currentWindow:"Current Window",urlParameterConfig:"URL Parameters",parentWindow:"Parent Window",topWindow:"Top Window",urlTip:"Please config link first!",cellType:"Cell Type:",text:"Text",expr:"Expression",dataset:"Dataset",image:"Image",slash:"Slash",qrcode:"QRCode",barcode:"Barcode",chart:"Chart",leftParent:"Left Parent:",topParent:"Top Parent:",default:"Default",custom:"Custom",renderBean:"Render Bean:",selectBean:"Select Bean",prop:"Property ",none:"None"},base:{fillBlank:"Fill Rows:",open:"On",close:"Off",rowTimes:"Times:",newLineCompute:"New Line Compute:",newLineComputeTip:"New Line compute will consuming more computing time!",format:"Format:",formatTip:"Format date or number,like: #.##",conditionProp:"Condition Property:",configCondition:"Config Condition Property",syntaxError:"Syntax check failed."},dataset:{datasetConfig:"Dataset Config",filterCondition:"Filter",mapping:"Mapping",dataset:"Dataset:",property:"Property:",aggregateType:"Aggregate Type",select:"Select",group:"Group",customGroup:"Custom Group",sum:"Sum",count:"Count",max:"Max",min:"Min",avg:"Avg",configCustomGroup:"Custom Group Config",sortType:"Sort Type:",notSort:"None",asc:"Asc",desc:"Desc",expand:"Expand:",down:"Down",right:"Right",noneExpand:"None",lineHeight:"Line Height:",lineHeightTip:"Please enter a number!",addFilterCondition:"Add Condition",editFilterCondition:"Edit Condition",selectFilterConditionTip:"Please select condition for edit!",delFilterCondition:"Delete Condition",delFilterConditionTip:"Please select condition for delete!",mappingType:"Mapping Type:",simple:"Simple",ds:"Dataset",addMapping:"Add Mapping",delConfirm:"Are you sure delete?",realValue:"Key",displayValue:"Value",op:"Operate",realValueProp:"Key Property:",displayValueProp:"Value Property",bindDatasetTip:"Please select dataset first!"},expr:{expr:"Expression",expand:"Expand:",down:"Down",right:"Right",noneExpand:"None"},image:{source:"Image Source:",path:"Path",expr:"Expression",p:"Path:",tip:'The default supports image starting with "classpath:" or "/"',expand:"Expand:",down:"Down",right:"Right",noneExpand:"None"},simple:{content:"Text Content",lineHeight:"Line Height",tip:"Please enter a number!"},slash:{content:"Slash Content",refresh:"Refresh",name:"Name:",angle:"Angle:"},zxing:{width:"Width:",numberTip:"Please enter a number",height:"Height:",format:"Format:",displayText:"Display Text:",yes:"Yes",no:"No",source:"Data source:",text:"Text",expr:"Expression",text1:"Text:",expand:"Expand:",down:"Down",right:"Right",noneExpand:"None"}},chart:{datasetBind:"Dataset Bind",option:"Option",axisConfig:"Axis Config",propBindConfig:"Property Bind Config",dataset:"Dataset:",categoryProperty:"Category Property:",xProperty:"X Propverty:",yProperty:"Y Property:",rProperty:"R Property:",valueProperty:"Value Property:",seriesProperty:"Series Property:",property:"Property",static:"Static Value",prop:"Property:",staticValue:"Static Value:",aggregate:"Aggregate Type:",select:"Select",sum:"Sum",count:"Count",max:"Max",min:"Min",avg:"Avg",xAxis:"X Axis Config",titleRotation:"Title Angle:",angleScope:"Angle scope is 0~90",titleFormat:"Title Format",displayAxisTitle:"Display Axis Title:",yes:"Yes",no:"No",axisTitle:"Axis Title:",yAxisConfig:"Y Axis Config",motionConfig:"Motion Config",motionDelay:"Motion Delay:",effect:"Effect",margin:"Margin",up:"Up",down:"Down",left:"Left",right:"Right",legendConfig:"Legend Config",display:"Display",position:"Position:",titleConfig:"Title Config",titleContent:"Title Content:"},table:{render:{image:"Image:",slash:"Slash",qrcode:"QRcode",barcode:"Barcode",chart:"Chart"},contextMenu:{insertRowUp:"Insert Row(Up)",insertRowDown:"Insert Row(Down)",insertColBefore:"Insert Column(Before)",insertColAfter:"Insert Column(After)",delRow:"Delete Row",delCol:"Delete Column",rowHeight:"Set Row Height",colWidth:"Set Column Width",title:"Title Row",repeatHeader:"Repeat Header",repeatFooter:"Repeat Footer",summary:"Summary Row",cancel:"Cancel",copy:"Copy Style",paste:"Paste Style",clearContent:"Empty Content",clearStyle:"Empty Style",clearAll:"Empty All",cancelConetntFail:"Cancel empty cell content failed!",cancelStyleFail:"Cancel empty cell style failed!",cancelClearFail:"Cancel empty cell failed!"},header:{hr:"",fr:"",t:"",s:""},report:{tip:"",load:"Load report file ",fail:" failed!"},colTip:"Please select a column!",rowTip:"Please select a row!"},tree:{cellTip:"Please select a cell!",delConfirm:"Are you sure delete the datasource ",addDataset:"Add Dataset",delete:"Delete",inputTip:"Please enter field name:",addField:"Add Field",fieldExist:"Field Exist!",delDatasetConfirm:"Are you sure delete the dataset ",add:"Edit",edit:"Edit",del:"Delete",refresh:"Refresh",loadFieldFail:"Load field failed!",doubleClick:"Double click to add field",delFieldConfirm:"Are sure delete field "}}},function(e){e.exports={selectTargetCellFirst:"请先选择目标单元格!",selectMultiTargetCellFirst:"请选择多个单元格后再进行此操作!",mergeSplitCells:"合并/拆分单元格",image:"图片",importExcel:"导入Excel模版文件",italic:"倾斜",openFile:"打开报表文件",setting:"设置",underline:"下划线",panel:{property:"属性",datasource:"数据源",tip:"点击显示/隐藏属性面板"},tools:{searchFormSwitch:"切换到查询表单设计页",alignLeft:{upDownAlign:"上下对齐",leftRightAlign:"左右对齐",changeMenu:"切换下拉菜单",leftAlign:"左对齐",centerAlign:"居中对齐",rightAlign:"右对齐"},alignTop:{upDownAlign:"上下对齐",changeMenu:"切换下拉菜单",topAlign:"顶部对齐",middleAlign:"中部对齐",bottomAlign:"下部对齐"},bgColor:{bgColor:"背景颜色",changeMenu:"切换下拉菜单"},bold:{bold:"加粗"},border:{borderLine:"边框线",allLine:"所有框线",noBorder:"无框线",leftBorder:"左框线",rightBorder:"右框线",topBorder:"上框线",bottomBorder:"下框线",customBorder:"自定义框线",up:"上",down:"下",left:"左",right:"右",customBorderLine:"自定义单元格框线",lineStyle:"线型",solidLine:"实线",dashed:"虚线",none:"无",size:"尺寸",color:"颜色"},chart:{chart:"图表",pie:"饼状图",doughnut:"圆环图",line:"曲线图",bar:"柱状图",horizontalBar:"水平柱状图",area:"面积图",radar:"雷达图",polar:"极坐标图",scatter:"散点图",bubble:"气泡图"},crosstab:{title:"斜线表头"},font:{font:"字体",changeMenu:"切换下拉菜单"},fontSize:{size:"字体尺寸",changeMenu:"切换下拉菜单"},foreColor:{color:"填充颜色",changeMenu:"切换下拉菜单"},preview:{preview:"预览报表",view:"预览",pagingPreview:"分页预览",previewFail:"报表预览操作失败!"},redo:{noRedo:"当前没有内容可以重做!",redo:"重做"},undo:{noUndo:"当前没有内容可以撤消!",undo:"撤消"},save:{save:"保存",successSave:"保存成功!",failSave:"文件保存错误!",saveAs:"另存为"},zxing:{title:"二维码/条码",qrcode:"二维码",barcode:"条码"}},dialog:{bean:{beanDatasetConfig:"SpringBean数据集配置",datasetName:"数据集名称:",methodName:"方法名:",selectMethod:"选择方法",methodParameters:"方法必须包含三个参数:",returnObject:"返回对象:",className:"指定该方法返回类全名,用于生成字段,如不指定需手工添加字段",ok:"确定",dataset:"数据集",datasetExist:"已存在,请换一个数据集名称."},buildin:{selectDatasource:"内置数据源选择",datasourceName:"数据源名称",select:"选择",datasource:"数据源",datasourceExist:"已存在,请选择其它数据源",loadFail:"加载内置数据源列表失败!"},condition:{config:"条件配置",relationship:"与上一条件关系:",and:"与",or:"或",propertyName:"属性名:",op:"操作符:",greatThen:"大于",greatEquals:"大于等于",lessThen:"小于",lessEquals:"小于等于",equals:"等于",notEquals:"不等于",in:"在集合中",like:"相似",valueExpr:"值表达式:",exprError:"存在语法错误!",ok:"确定",selectProperty:"请选择属性!",selectOp:"请选择操作符!",inputExpr:"请输入表达式值!"},crosstab:{title:"斜表头定义",crosstab:"斜表头",tip:"多个斜表头以|号分隔,为空则表示生成所有斜表头信息",ok:"确定"},customGroup:{title:"自定义分组配置",deleteTip:"请选择要删除的分组项!",deleteConfirm:"真的要删除分组项",modTip:"请选择要修改的分组项!",groupCondition:"分组条件",addCondition:"添加条件",selectTip:"请先选择一个分组项!",editTip:"编辑选中的条件",editConditionTip:"请先选中要编辑的条件!",delTitle:"删除选中的条件",delConditionTip:"请先选中要删除的条件!"},datasource:{title:"数据源配置",name:"数据源名称:",username:"连接用户名:",password:"连接密码:",driver:"驱动名称:",url:"连接URL:",test:"测试连接",save:"保存",nameTip:"请输入数据源名称",usernameTip:"请输入连接用户名",driverTip:"请输入连接驱动",urlTip:"请输入连接URL",datasource:"数据源",existTip:"已存在,请更换当前数据源名称.",testSuccess:"连接测试成功!",testFail:"连接测试失败:",failTip:"连接测试失败,不能进行后续动作,请确认当前连接信息是否正确。",failTip1:"连接测试操作失败!"},editPropCondition:{title:"条件配置",relation:"与上一条件关系:",and:"与",or:"或",leftValue:"条件左值:",currentValue:"当前值",property:"属性",expression:"表达式",propName:"属性名:",expr:"表达式:",syntaxError:"存在语法错误!",operator:"操作符:",greater:"大于",greaterEquals:"大于等于",less:"小于",lessEquals:"小于等于",equals:"等于",notEquals:"不等于",in:"在集合中",like:"相似",valueExpr:"值表达式:",ok:"确定",selectProp:"请选择属性!",leftValueExpr:"请输入左值表达式",selectOperator:"请选择操作符!",inputExpr:"请输入表达式值!"},fontSetting:{title:"字体样式配置",font:"字体:",color:"颜色:",size:"尺寸:",bold:"加粗:",yes:"是",no:"否",italic:"倾斜:",underline:"下划线:",ok:"确定"},groupItem:{title:"自定义分组项",name:"分组名称:",ok:"确定",nameTip:"请输入分组项名称!",addItem:"添加自定义分组项",editItem:"修改自定义分组项"},import:{title:"导入Excel模版文件",desc:"此操作将导入Excel的第一个Sheet页内容,如果选择是的xlsx格式的Excel文件,导入后发现背景色未正常解析,可将该文件另存为xls格式,再次上传这个xls格式Excel文件即可。",file:"请选择要导入的Excel文件:",upload:"上传文件",fail:"导入失败"},mapping:{title:"添加数据映射项",key:"实际值:",value:"显示值:",save:"保存",tip:"映射项请输入完整!",add:"添加数据映射项",edit:"编辑数据映射项"},methodSelect:{title:"SpringBean数据集配置",methodName:"方法名",select:"选择",load:"加载Bean",fail:"的可用方法失败!"},open:{title:"打开报表文件",source:"报表来源:",fileName:"文件名",modDate:"修改日期",open:"打开",del:"删除",openConfirm:"真的要打开文件",delConfirm:"真要删除文件:",delFail:"文件删除操作失败!",loadFail:"加载报表文件列表失败!"},sqlParam:{title:"SQL参数",name:"参数名称:",datatype:"数据类型:",defaultValue:"默认值:",tip:"Date类型默认值为一个格式为yyyy-MM-dd HH:mm:ss的日期值",ok:"确定",nameTip:"请输入参数名!",datatypeTip:"请选择数据类型!",param:"参数",exist:"已存在!"},paramTable:{addParam:"添加参数",paramName:"参数名",paramDatatype:"数据类型",defaultValue:"默认值",operator:"操作",delParam:"删除参数",editParam:"修改参数"},preview:{title:"数据预览",load:"数据加载中...",ok:"确定",total:"共",totalMid:"条数据,当前预览前",item:"条"},propCondition:{title:"条件属性配置",config:"条件项配置",addItem:"添加新项目",editItem:"编辑选中项目",editTip:"请先选中要编辑的项目!",delItem:"删除选中项目",delTip:"请先选中要删除的项目!",delConfirm:"真的要删除条件项",conditionConfig:"条件配置",propConfig:"属性配置",currentValue:"当前值",addValue:"添加条件",selectItem:"请先选择条件项!",editConditionItem:"编辑选中的条件",editConditionTip:"请先选中要编辑的条件!",selectConditionItem:"请先选择条件项!",delCondition:"删除选中的条件",delConditionTip:"请先选中要删除的条件!",selectDelCondition:"请先选择条件项!",forecolor:"前景色",scope:"作用范围:",currentCell:"当前单元格",currentRow:"当前行",currentCol:"当前列",bgcolor:"背景色",font:"字体",fontSize:"文字尺寸",bold:"文字加粗",yes:"是",no:"否",italic:"文字倾斜",underline:"文字下划线",align:"水平对齐",left:"居左",center:"居中",right:"居右",valign:"竖直对齐",top:"顶部对齐",mid:"中部对齐",bottom:"下部对齐",border:"边框",borderConfig:"边框配置",newValue:"新值",format:"格式化",rowHeight:"行高",colWidth:"列宽",paging:"分页",rowBefore:"当前行前",rowAfter:"当前行后",link:"链接",target:"目标窗口:",newWindow:"新窗口",currentWindow:"当前窗口",parentWindow:"父窗口",topWindow:"顶层窗口",urlParameter:"URL参数配置",linkUrl:"请先定义链接URL!"},conditionItem:{title:"新增条件项",itemName:"条件项名称:",ok:"确定",nameTip:"请输入条件项名称!",add:"添加条件项",edit:"修改条件项"},rowColWidthHeight:{title:"行列宽高设置",tip:"请输入一个大于0的数字",numValidate:"请输入一个合法的数字!",colWidth:"设置列宽",ok:"确定",rowHeight:"设置行高"},save:{title:"保存报表文件",source:"存储目的地:",fileName:"文件名",modDate:"修改日期",del:"删除",delConfirm:"真要删除文件:",delFail:"文件删除操作失败!",save:"保存",nameTip:"请输入文件名!",locationTip:"请选择文件保存地!",file:"文件",exist:"已存在",success:"保存成功!",fail:"文件保存失败!",loadFail:"加载报表文件列表失败!"},setting:{title:"报表配置",pageSetting:"页面配置",headerFooterSetting:"页眉页脚",pagingSetting:"分页配置",columnSetting:"分栏配置",sheetExport:"分Sheet导出Excel:",disable:"禁用",enable:"启用",recordCountPerPage:"每Sheet页记录数:",recordCountTip:"每Sheet页记录数不能少于1条!",paperType:"页面类型:",custom:"自定义",paperWidth:"页面宽(毫米):",numberTip:"请输入数字!",paperHeight:"页面高(毫米):",leftMargin:"左边距(毫米):",rightMargin:"右边距(毫米):",topMargin:"上边距(毫米):",bottomMargin:"下边距(毫米):",orientation:"方向:",portrait:"纵向",landscape:"横向",htmlAlign:"HTML报表输出时对齐方式:",left:"居左",center:"居中",right:"居右",refreshSecond:"HTML报表定时刷新(秒):",tip1:"0表示不刷新",tip2:"为0时不刷新",secondTip:"请输入一个大于或等于0的数字",bg:"套打背景图:",bgTip:"请输入背景图片URL,图片分辨率需要为96dpi",hfdesc:'页眉页脚采用表达式方式定义,如:"第"+page()+"页,共"+pages()+"页"',header:"页眉",fontStyleSetting:"字体样式配置",headerMargin:"页眉顶端距离(毫米):",footer:"页脚",footerMargin:"页脚底端距离(毫米):",hfLeft:"左",hfCenter:"中",hfRight:"右",pagingType:"分页方式:",auto:"自动",fixRows:"固定行数",rowsPerPage:"每页行数:",fixRowsTip:"固定行数不能少于一行",colDesc:"分栏效果在分页时显示,同时在打印、导出报表时采用。",column:"分栏:",columnCount:"栏数:",columnUnit:"栏",columnTip:"请选择具体栏数!",columnMargin:"栏间距(毫米):",numTip:"请输入数字!",syntaxError:"表达式存在语法错误:",syntaxCheckFail:"语法检查失败!"},springDS:{title:"SpringBean数据源配置",name:"数据源名称:",bean:"Bean ID:",save:"保存",nameTip:"数据源名称不能为空!",beanTip:"BeanID不能为空",ds:"数据源",exist:"已存在,请更换当前数据源名称."},sql:{title:"SQL数据集配置",search:"表名查询",tableName:"表名",type:"类型",datasetName:"数据集名称:",desc:"SQL支持表达式,格式为:${表达式...}</span>):",syntaxCheckError:"语法检查操作失败!",fiterParam:"查询参数",paramDesc:"(请将上述SQL中用到的查询参数名定义在下面的表格中)",preview:"预览数据",previewFail:"数据预览失败,请检查配置是否正确.",ok:"确定",nameTip:"数据集名称不能为空!",sqlTip:"数据集SQL不能为空!",ds:"数据集",exist:"已存在,请换一个数据集名称.",addSql:"双击表名添加查询",table:"表",view:"视图",loadFail:"加载表失败!"},urlParam:{title:"URL参数配置",add:"添加参数",delTip:"真的要删除?",name:"参数名",expr:"参数值表达式",op:"操作"},paramItem:{title:"添加参数",name:"参数名:",expr:"值表达式:",save:"保存",tip:"参数项请输入完整!",add:"添加参数",edit:"编辑参数"}},property:{datasource:{title:"添加数据库连接",addBean:"添加SpringBean连接",addBuildin:"添加内置数据源连接"},prop:{linkConfig:"链接配置",target:"目标窗口:",newWindow:"新窗口",currentWindow:"当前窗口",parentWindow:"父窗口",topWindow:"顶层窗口",urlParameterConfig:"URL参数配置",urlTip:"请先定义链接URL!",cellType:"单元格类型:",text:"普通文本",expr:"表达式",dataset:"数据集",image:"图片",slash:"斜表头",qrcode:"二维码",barcode:"条码",chart:"图表",leftParent:"左父格:",topParent:"上父格:",default:"默认",custom:"自定义",renderBean:"渲染Bean:",selectBean:"选择Bean",prop:"属性",none:"无"},base:{fillBlank:"补充空白行:",open:"打开",close:"关闭",rowTimes:"数据行倍数:",newLineCompute:"换行计算:",newLineComputeTip:"打开换行计算将耗费更多报表计算时间",format:"格式化:",formatTip:"对日期或数字格式化,如#.##",conditionProp:"条件属性:",configCondition:"配置条件",syntaxError:"语法检查操作失败!"},dataset:{datasetConfig:"数据集配置",filterCondition:"过滤条件",mapping:"数据映射",dataset:"数据集:",property:"属性:",aggregateType:"聚合方式:",select:"列表",group:"分组",customGroup:"自定义分组",sum:"汇总",count:"统计数量",max:"最大值",min:"最小值",avg:"平均值",configCustomGroup:"自定义分组配置",sortType:"排序方式:",notSort:"不排序",asc:"正序",desc:"倒序",expand:"数据展开方向:",down:"向下",right:"向右",noneExpand:"不展开",lineHeight:"行高:",lineHeightTip:"请输入一个数字,为空表示采用默认行高",addFilterCondition:"添加过滤条件",editFilterCondition:"编辑选中的过滤条件",selectFilterConditionTip:"请先选中要编辑的条件!",delFilterCondition:"删除选中的过滤条件",delFilterConditionTip:"请先选中要删除的条件!",mappingType:"映射方式:",simple:"简单值",ds:"数据集",addMapping:"添加映射项",delConfirm:"确定要删除?",realValue:"实际值",displayValue:"显示值",op:"操作",realValueProp:"实际值属性:",displayValueProp:"显示值属性:",bindDatasetTip:"请先选择当前单元格要绑定的数据集"},expr:{expr:"表达式",expand:"数据展开方向:",down:"向下",right:"向右",noneExpand:"不展开"},image:{source:"图片来源:",path:"路径",expr:"表达式",p:"路径:",tip:"默认支持以classpath:开头位于classpath下的图片文件,或以/开头位于WEB应用根下或某目录下的图片文件",expand:"内容展开方向:",down:"向下",right:"向右",noneExpand:"不展开"},simple:{content:"文本内容",lineHeight:"行高:",tip:"请输入一个数字,为空表示采用默认行高"},slash:{content:"斜表头内容",refresh:"刷新",name:"名称:",angle:"角度:"},zxing:{width:"宽:",numberTip:"请输入数字!",height:"高:",format:"条码格式:",displayText:"显示条码字符:",yes:"是",no:"否",source:"数据来源:",text:"文本",expr:"表达式",text1:"文本:",expand:"内容展开方向:",down:"向下",right:"向右",noneExpand:"不展开"}},chart:{datasetBind:"数据集绑定",option:"选项",axisConfig:"轴配置",propBindConfig:"属性绑定配置",dataset:"数据集:",categoryProperty:"分类属性:",xProperty:"X值属性:",yProperty:"Y值属性:",rProperty:"半径值属性:",valueProperty:"值属性:",seriesProperty:"系列值:",property:"属性",static:"静态值",prop:"属性:",staticValue:"静态值:",aggregate:"聚合方式:",select:"罗列数据",sum:"汇总",count:"统计数量",max:"最大值",min:"最小值",avg:"平均值",xAxis:"X轴配置",titleRotation:"标题旋转角度:",angleScope:"角度值为0~90",titleFormat:"标题格式化:",displayAxisTitle:"显示轴标题:",yes:"是",no:"否",axisTitle:"轴标题:",yAxisConfig:"Y轴配置",motionConfig:"动画效果配置",motionDelay:"动画延时:",effect:"效果:",margin:"边距配置",up:"上",down:"下",left:"左",right:"右",legendConfig:"图例配置",display:"显示:",position:"位置:",titleConfig:"标题配置",titleContent:"标题内容:"},table:{render:{image:"图片:",slash:"斜线表头",qrcode:"二维码",barcode:"条码",chart:"图表"},contextMenu:{insertRowUp:"插入行(上)",insertRowDown:"插入行(下)",insertColBefore:"插入列(前)",insertColAfter:"插入列(后)",delRow:"删除行",delCol:"删除列",rowHeight:"设置行高",colWidth:"设置列宽",title:"标题行",repeatHeader:"重复表头",repeatFooter:"重复表尾",summary:"总结行",cancel:"取消行类型",copy:"复制单元格样式",paste:"粘贴单元格样式",clearContent:"清空内容",clearStyle:"清空格式",clearAll:"清空所有",cancelConetntFail:"撤消清空单元格内容操作失败!",cancelStyleFail:"撤消清空单元格样式操作失败!",cancelClearFail:"撤消清空单元格操作失败!"},header:{hr:"分页时每页头部重复显示",fr:"分页时每页尾部重复显示",t:"分页时只会出现在第一页第一行的行",s:"分页输出时最后一页的最下端显示"},report:{tip:"未命名",load:"加载报表文件",fail:"失败!"},colTip:"请先选中列!",rowTip:"请先选中行!"},tree:{cellTip:"请先选择单元格!",delConfirm:"真的要删除当前数据源",addDataset:"添加数据集",delete:"删除",inputTip:"请输入字段名:",addField:"添加字段",fieldExist:"字段名已存在!",delDatasetConfirm:"真的要删除当前数据集",add:"添加",edit:"编辑",del:"删除",refresh:"刷新",loadFieldFail:"加载字段失败!",doubleClick:"双击添加字段到单元格",delFieldConfirm:"真的要删除字段"}}},function(e,t,n){var i;!function(){var o=void 0!==t&&t||{}||this;function r(e){if(!((t=e)instanceof HTMLElement||t instanceof SVGElement))throw new Error("an HTMLElement or SVGElement is required; got "+e);var t}function a(e,t,n){for(var i=t.selectorRemap,o=t.modifyStyle,r=t.modifyCss||function(e,t){return(e=i?i(e):e)+" { "+(o?o(t):t)+" }\n"},a="",s=[],l=document.styleSheets,d=0;d<l.length;d++){try{var c=l[d].cssRules}catch(e){continue}if(null!=c)for(var u,h=0;h<c.length;h++,u=null){var f=c[h];if(void 0!==f.style){var p;try{p=f.selectorText}catch(e){}try{p&&(u=e.querySelector(p)||e.parentNode&&e.parentNode.querySelector(p))}catch(e){}if(u)a+=r(f.selectorText,f.style.cssText);else if(f.cssText.match(/^@font-face/)){var m=/url\(["']?(.+?)["']?\)/,g=f.cssText.match(m),y=g&&g[1]||"";y.match(/^data:/)&&(y=""),"about:blank"===y&&(y=""),y?(y.startsWith("../")?y=l[d].href+"/../"+y:y.startsWith("./")&&(y=l[d].href+"/."+y),s.push({text:f.cssText,fontUrlRegexp:m,format:v(y),url:y})):a+=f.cssText+"\n"}}}}function v(e){for(var t={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},n=Object.keys(t),i=0;i<n.length;++i){var o=n[i];if(e.indexOf("."+o)>0)return t[o]}return"application/octet-stream"}function A(e){e.length>0?function(t){var n=new XMLHttpRequest;function i(n){console.warn("Failed to load font from: "+t.url),console.warn(n),a+=t.text+"\n",A(e)}function o(t,n){var i='url("data:'+t.format+";base64,"+n+'")';a+=t.text.replace(t.fontUrlRegexp,i)+"\n",setTimeout(function(){A(e)},0)}n.addEventListener("load",function(){var e=function(e){for(var t="",n=new Uint8Array(e),i=n.byteLength,o=0;o<i;o++)t+=String.fromCharCode(n[o]);return window.btoa(t)}(n.response);o(t,e)}),n.addEventListener("error",i),n.addEventListener("abort",i),n.open("GET",t.url),n.responseType="arraybuffer",n.send()}(e.pop()):n(a)}!function(e){e.length>0?function(t){var n=new XMLHttpRequest;function i(n){a+=t.text+"\n",A(e)}n.addEventListener("load",function(){var i=function(e){for(var t="",n=new Uint8Array(e),i=n.byteLength,o=0;o<i;o++)t+=String.fromCharCode(n[o]);return window.btoa(t)}(n.response);!function(t,n){var i='url("data:'+t.format+";base64,"+n+'")';a+=t.text.replace(t.fontUrlRegexp,i)+"\n",setTimeout(function(){A(e)},0)}(t,i)}),n.addEventListener("error",i),n.addEventListener("abort",i),n.open("GET",t.url),n.responseType="arraybuffer",n.send()}(e.pop()):n(a)}(s)}function s(e,t,n){var i=e.viewBox&&e.viewBox.baseVal&&e.viewBox.baseVal[n]||null!==t.getAttribute(n)&&!t.getAttribute(n).match(/%$/)&&parseInt(t.getAttribute(n))||e.getBoundingClientRect()[n]||parseInt(t.style[n])||parseInt(window.getComputedStyle(e).getPropertyValue(n));return void 0===i||null===i||isNaN(parseFloat(i))?0:i}function l(e){for(var t=window.atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(t.length),o=new Uint8Array(i),r=0;r<t.length;r++)o[r]=t.charCodeAt(r);return new Blob([i],{type:n})}o.prepareSvg=function(e,t,n){r(e),(t=t||{}).scale=t.scale||1,t.responsive=t.responsive||!1;var i="http://www.w3.org/2000/xmlns/";!function(e,t){r(e);var n=e.querySelectorAll("image"),i=n.length,o=function(){0===i&&t()};o();for(var a=0;a<n.length;a++)!function(e){var t=document.createElement("canvas"),n=t.getContext("2d"),r=new Image;r.crossOrigin="anonymous";var a,s=e.getAttributeNS("http://www.w3.org/1999/xlink","href");(a=s=s||e.getAttribute("href"))&&0==a.lastIndexOf("http",0)&&-1==a.lastIndexOf(window.location.host)&&(s+=(-1===s.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),s?(r.src=s,r.onload=function(){t.width=r.width,t.height=r.height,n.drawImage(r,0,0),e.setAttributeNS("http://www.w3.org/1999/xlink","href",t.toDataURL("image/png")),i--,o()},r.onerror=function(){i--,o()}):(i--,o())}(n[a])}(e,function(){var o,r,l=document.createElement("div"),d=e.cloneNode(!0);if("svg"==e.tagName)o=t.width||s(e,d,"width"),r=t.height||s(e,d,"height");else{if(!e.getBBox)return;var c=e.getBBox();o=c.x+c.width,r=c.y+c.height,d.setAttribute("transform",d.getAttribute("transform").replace(/translate\(.*?\)/,""));var u=document.createElementNS("http://www.w3.org/2000/svg","svg");u.appendChild(d),d=u}d.setAttribute("version","1.1"),d.getAttribute("xmlns")||d.setAttributeNS(i,"xmlns","http://www.w3.org/2000/svg"),d.getAttribute("xmlns:xlink")||d.setAttributeNS(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),t.responsive?(d.removeAttribute("width"),d.removeAttribute("height"),d.setAttribute("preserveAspectRatio","xMinYMin meet")):(d.setAttribute("width",o*t.scale),d.setAttribute("height",r*t.scale)),d.setAttribute("viewBox",[t.left||0,t.top||0,o,r].join(" "));for(var h=d.querySelectorAll("foreignObject > *"),f=0;f<h.length;f++)h[f].getAttribute("xmlns")||h[f].setAttributeNS(i,"xmlns","http://www.w3.org/1999/xhtml");l.appendChild(d),a(e,t,function(e){var t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML="<![CDATA[\n"+e+"\n]]>";var i=document.createElement("defs");if(i.appendChild(t),d.insertBefore(i,d.firstChild),n){var a=l.innerHTML;a=a.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href'),n(a,o,r)}})})},o.svgAsDataUri=function(e,t,n){o.prepareSvg(e,t,function(e){var t,i="data:image/svg+xml;base64,"+window.btoa((t='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp "&#160;">]>'+e,t=(t=encodeURIComponent(t)).replace(/%([0-9A-F]{2})/g,function(e,t){var n=String.fromCharCode("0x"+t);return"%"===n?"%25":n}),decodeURIComponent(t)));n&&n(i)})},o.svgAsPngUri=function(e,t,n){r(e),(t=t||{}).encoderType=t.encoderType||"image/png",t.encoderOptions=t.encoderOptions||.8;var i=function(e,i,o){var r=document.createElement("canvas"),a=r.getContext("2d");r.width=i,r.height=o;var s,l=window.devicePixelRatio||1;r.style.width=r.width+"px",r.style.height=r.height+"px",r.width*=l,r.height*=l,a.setTransform(l,0,0,l,0,0),t.canvg?t.canvg(r,e):a.drawImage(e,0,0),t.backgroundColor&&(a.globalCompositeOperation="destination-over",a.fillStyle=t.backgroundColor,a.fillRect(0,0,r.width,r.height));try{s=r.toDataURL(t.encoderType,t.encoderOptions)}catch(e){if("undefined"!=typeof SecurityError&&e instanceof SecurityError||"SecurityError"==e.name)return;throw e}n(s)};t.canvg?o.prepareSvg(e,t,i):o.svgAsDataUri(e,t,function(e){var t=new Image;t.onload=function(){i(t,t.width,t.height)},t.onerror=function(){},t.src=e})},o.download=function(e,t){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(l(t),e);else{var n=document.createElement("a");if("download"in n){n.download=e,n.style.display="none",document.body.appendChild(n);try{var i=l(t),o=URL.createObjectURL(i);n.href=o,n.onclick=function(){requestAnimationFrame(function(){URL.revokeObjectURL(o)})}}catch(e){n.href=t}n.click(),document.body.removeChild(n)}else window.open(t,"_temp","menubar=no,toolbar=no,status=no")}},o.saveSvg=function(e,t,n){r(e),n=n||{},o.svgAsDataUri(e,n,function(e){o.download(t,e)})},o.saveSvgAsPng=function(e,t,n){r(e),n=n||{},o.svgAsPngUri(e,n,function(e){o.download(t,e)})},void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}()},function(e,t,n){var i;i=function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var i,o;i=[n(1),n(3),n(4)],void 0===(o=function(e){return e}.apply(t,i))||(e.exports=o)},function(e,t,n){var i,o;i=[n(2)],void 0===(o=function(e){function t(n){if(t.is(n,"function"))return y?n():e.on("raphael.DOMload",n);if(t.is(n,$))return t._engine.create[S](t,n.splice(0,3+t.is(n[0],z))).add(n);var i=Array.prototype.slice.call(arguments,0);if(t.is(i[i.length-1],"function")){var o=i.pop();return y?o.call(t._engine.create[S](t,i)):e.on("raphael.DOMload",function(){o.call(t._engine.create[S](t,i))})}return t._engine.create[S](t,arguments)}function n(e){if("function"==typeof e||Object(e)!==e)return e;var t=new e.constructor;for(var i in e)e[_](i)&&(t[i]=n(e[i]));return t}function i(e,t,n){return function i(){var o=Array.prototype.slice.call(arguments,0),r=o.join("␀"),a=i.cache=i.cache||{},s=i.count=i.count||[];return a[_](r)?(function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return e.push(e.splice(n,1)[0])}(s,r),n?n(a[r]):a[r]):(s.length>=1e3&&delete a[s.shift()],s.push(r),a[r]=e[S](t,o),n?n(a[r]):a[r])}}function o(){return this.hex}function r(e,t){for(var n=[],i=0,o=e.length;o-2*!t>i;i+=2){var r=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?o-4==i?r[3]={x:+e[0],y:+e[1]}:o-2==i&&(r[2]={x:+e[0],y:+e[1]},r[3]={x:+e[2],y:+e[3]}):r[0]={x:+e[o-2],y:+e[o-1]}:o-4==i?r[3]=r[2]:i||(r[0]={x:+e[i],y:+e[i+1]}),n.push(["C",(-r[0].x+6*r[1].x+r[2].x)/6,(-r[0].y+6*r[1].y+r[2].y)/6,(r[1].x+6*r[2].x-r[3].x)/6,(r[1].y+6*r[2].y-r[3].y)/6,r[2].x,r[2].y])}return n}function a(e,t,n,i,o){return e*(e*(-3*t+9*n-9*i+3*o)+6*t-12*n+6*i)-3*t+3*n}function s(e,t,n,i,o,r,s,l,d){null==d&&(d=1);for(var c=(d=d>1?1:d<0?0:d)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var m=c*u[p]+c,g=a(m,e,n,o,s),y=a(m,t,i,r,l),v=g*g+y*y;f+=h[p]*H.sqrt(v)}return c*f}function l(e,t,n,i,o,r,a,s){if(!(P(e,n)<I(o,a)||I(e,n)>P(o,a)||P(t,i)<I(r,s)||I(t,i)>P(r,s))){var l=(e-n)*(r-s)-(t-i)*(o-a);if(l){var d=((e*i-t*n)*(o-a)-(e-n)*(o*s-r*a))/l,c=((e*i-t*n)*(r-s)-(t-i)*(o*s-r*a))/l,u=+d.toFixed(2),h=+c.toFixed(2);if(!(u<+I(e,n).toFixed(2)||u>+P(e,n).toFixed(2)||u<+I(o,a).toFixed(2)||u>+P(o,a).toFixed(2)||h<+I(t,i).toFixed(2)||h>+P(t,i).toFixed(2)||h<+I(r,s).toFixed(2)||h>+P(r,s).toFixed(2)))return{x:d,y:c}}}}function d(e,n,i){var o=t.bezierBBox(e),r=t.bezierBBox(n);if(!t.isBBoxIntersect(o,r))return i?0:[];for(var a=s.apply(0,e),d=s.apply(0,n),c=P(~~(a/5),1),u=P(~~(d/5),1),h=[],f=[],p={},m=i?0:[],g=0;g<c+1;g++){var y=t.findDotsAtSegment.apply(t,e.concat(g/c));h.push({x:y.x,y:y.y,t:g/c})}for(g=0;g<u+1;g++)y=t.findDotsAtSegment.apply(t,n.concat(g/u)),f.push({x:y.x,y:y.y,t:g/u});for(g=0;g<c;g++)for(var v=0;v<u;v++){var A=h[g],b=h[g+1],w=f[v],_=f[v+1],M=j(b.x-A.x)<.001?"y":"x",x=j(_.x-w.x)<.001?"y":"x",k=l(A.x,A.y,b.x,b.y,w.x,w.y,_.x,_.y);if(k){if(p[k.x.toFixed(4)]==k.y.toFixed(4))continue;p[k.x.toFixed(4)]=k.y.toFixed(4);var S=A.t+j((k[M]-A[M])/(b[M]-A[M]))*(b.t-A.t),C=w.t+j((k[x]-w[x])/(_[x]-w[x]))*(_.t-w.t);S>=0&&S<=1.001&&C>=0&&C<=1.001&&(i?m++:m.push({x:k.x,y:k.y,t1:I(S,1),t2:I(C,1)}))}}return m}function c(e,n,i){e=t._path2curve(e),n=t._path2curve(n);for(var o,r,a,s,l,c,u,h,f,p,m=i?0:[],g=0,y=e.length;g<y;g++){var v=e[g];if("M"==v[0])o=l=v[1],r=c=v[2];else{"C"==v[0]?(o=(f=[o,r].concat(v.slice(1)))[6],r=f[7]):(f=[o,r,o,r,l,c,l,c],o=l,r=c);for(var A=0,b=n.length;A<b;A++){var w=n[A];if("M"==w[0])a=u=w[1],s=h=w[2];else{"C"==w[0]?(a=(p=[a,s].concat(w.slice(1)))[6],s=p[7]):(p=[a,s,a,s,u,h,u,h],a=u,s=h);var _=d(f,p,i);if(i)m+=_;else{for(var M=0,x=_.length;M<x;M++)_[M].segment1=g,_[M].segment2=A,_[M].bez1=f,_[M].bez2=p;m=m.concat(_)}}}}}return m}function u(e,t,n,i,o,r){null!=e?(this.a=+e,this.b=+t,this.c=+n,this.d=+i,this.e=+o,this.f=+r):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function h(){return this.x+T+this.y+T+this.width+" × "+this.height}function f(e,t,n,i,o,r){function a(e){return((d*e+l)*e+s)*e}var s=3*t,l=3*(i-t)-s,d=1-s-l,c=3*n,u=3*(o-n)-c,h=1-c-u;return function(e,t){var n=function(e,t){var n,i,o,r,c,u;for(o=e,u=0;u<8;u++){if(r=a(o)-e,j(r)<t)return o;if(j(c=(3*d*o+2*l)*o+s)<1e-6)break;o-=r/c}if(i=1,(o=e)<(n=0))return n;if(o>i)return i;for(;n<i;){if(r=a(o),j(r-e)<t)return o;e>r?n=o:i=o,o=(i-n)/2+n}return o}(e,1/(200*r));return((h*n+u)*n+c)*n}(e)}function p(e,t){var n=[],i={};if(this.ms=t,this.times=1,e){for(var o in e)e[_](o)&&(i[K(o)]=e[o],n.push(K(o)));n.sort(le)}this.anim=i,this.top=n[n.length-1],this.percents=n}function m(n,i,o,r,a,s){o=K(o);var l,d,c,h,p,m,g=n.ms,y={},v={},b={};if(r)for(M=0,x=nt.length;M<x;M++){var w=nt[M];if(w.el.id==i.id&&w.anim==n){w.percent!=o?(nt.splice(M,1),c=1):d=w,i.attr(w.totalOrigin);break}}else r=+v;for(var M=0,x=n.percents.length;M<x;M++){if(n.percents[M]==o||n.percents[M]>r*n.top){o=n.percents[M],p=n.percents[M-1]||0,g=g/n.top*(o-p),h=n.percents[M+1],l=n.anim[o];break}r&&i.attr(n.anim[n.percents[M]])}if(l){if(d)d.initstatus=r,d.start=new Date-d.ms*r;else{for(var k in l)if(l[_](k)&&(ee[_](k)||i.paper.customAttributes[_](k)))switch(y[k]=i.attr(k),null==y[k]&&(y[k]=Z[k]),v[k]=l[k],ee[k]){case z:b[k]=(v[k]-y[k])/g;break;case"colour":y[k]=t.getRGB(y[k]);var S=t.getRGB(v[k]);b[k]={r:(S.r-y[k].r)/g,g:(S.g-y[k].g)/g,b:(S.b-y[k].b)/g};break;case"path":var E=Ye(y[k],v[k]),L=E[1];for(y[k]=E[0],b[k]=[],M=0,x=y[k].length;M<x;M++){b[k][M]=[0];for(var T=1,R=y[k][M].length;T<R;T++)b[k][M][T]=(L[M][T]-y[k][M][T])/g}break;case"transform":var B=i._,O=Pe(B[k],v[k]);if(O)for(y[k]=O.from,v[k]=O.to,b[k]=[],b[k].real=!0,M=0,x=y[k].length;M<x;M++)for(b[k][M]=[y[k][M][0]],T=1,R=y[k][M].length;T<R;T++)b[k][M][T]=(v[k][M][T]-y[k][M][T])/g;else{var H=i.matrix||new u,P={_:{transform:B.transform},getBBox:function(){return i.getBBox(1)}};y[k]=[H.a,H.b,H.c,H.d,H.e,H.f],Oe(P,v[k]),v[k]=P._.transform,b[k]=[(P.matrix.a-H.a)/g,(P.matrix.b-H.b)/g,(P.matrix.c-H.c)/g,(P.matrix.d-H.d)/g,(P.matrix.e-H.e)/g,(P.matrix.f-H.f)/g]}break;case"csv":var I=D(l[k])[Y](A),j=D(y[k])[Y](A);if("clip-rect"==k)for(y[k]=j,b[k]=[],M=j.length;M--;)b[k][M]=(I[M]-y[k][M])/g;v[k]=I;break;default:for(I=[][C](l[k]),j=[][C](y[k]),b[k]=[],M=i.paper.customAttributes[k].length;M--;)b[k][M]=((I[M]||0)-(j[M]||0))/g}var F=l.easing,N=t.easing_formulas[F];if(!N)if((N=D(F).match(V))&&5==N.length){var W=N;N=function(e){return f(e,+W[1],+W[2],+W[3],+W[4],g)}}else N=de;if(w={anim:n,percent:o,timestamp:m=l.start||n.start||+new Date,start:m+(n.del||0),status:0,initstatus:r||0,stop:!1,ms:g,easing:N,from:y,diff:b,to:v,el:i,callback:l.callback,prev:p,next:h,repeat:s||n.times,origin:i.attr(),totalOrigin:a},nt.push(w),r&&!d&&!c&&(w.stop=!0,w.start=new Date-g*r,1==nt.length))return ot();c&&(w.start=new Date-w.ms*r),1==nt.length&&it(ot)}e("raphael.anim.start."+i.id,i,n)}}function g(e){for(var t=0;t<nt.length;t++)nt[t].el.paper==e&&nt.splice(t--,1)}t.version="2.2.0",t.eve=e;var y,v,A=/[, ]+/,b={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},w=/\{(\d+)\}/g,_="hasOwnProperty",M={doc:document,win:window},x={was:Object.prototype[_].call(M.win,"Raphael"),is:M.win.Raphael},k=function(){this.ca=this.customAttributes={}},S="apply",C="concat",E="ontouchstart"in M.win||M.win.DocumentTouch&&M.doc instanceof DocumentTouch,L="",T=" ",D=String,Y="split",R="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[Y](T),B={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},O=D.prototype.toLowerCase,H=Math,P=H.max,I=H.min,j=H.abs,F=H.pow,N=H.PI,z="number",W="string",$="array",U=Object.prototype.toString,Q=(t._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),G={NaN:1,Infinity:1,"-Infinity":1},V=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,J=H.round,K=parseFloat,X=parseInt,q=D.prototype.toUpperCase,Z=t._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},ee=t._availableAnimAttrs={blur:z,"clip-rect":"csv",cx:z,cy:z,fill:"colour","fill-opacity":z,"font-size":z,height:z,opacity:z,path:"path",r:z,rx:z,ry:z,stroke:"colour","stroke-opacity":z,"stroke-width":z,transform:"transform",width:z,x:z,y:z},te=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,ne={hs:1,rg:1},ie=/,?([achlmqrstvxz]),?/gi,oe=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,re=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,ae=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,se=(t._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),le=function(e,t){return K(e)-K(t)},de=function(e){return e},ce=t._rectPath=function(e,t,n,i,o){return o?[["M",e+o,t],["l",n-2*o,0],["a",o,o,0,0,1,o,o],["l",0,i-2*o],["a",o,o,0,0,1,-o,o],["l",2*o-n,0],["a",o,o,0,0,1,-o,-o],["l",0,2*o-i],["a",o,o,0,0,1,o,-o],["z"]]:[["M",e,t],["l",n,0],["l",0,i],["l",-n,0],["z"]]},ue=function(e,t,n,i){return null==i&&(i=n),[["M",e,t],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]]},he=t._getPath={path:function(e){return e.attr("path")},circle:function(e){var t=e.attrs;return ue(t.cx,t.cy,t.r)},ellipse:function(e){var t=e.attrs;return ue(t.cx,t.cy,t.rx,t.ry)},rect:function(e){var t=e.attrs;return ce(t.x,t.y,t.width,t.height,t.r)},image:function(e){var t=e.attrs;return ce(t.x,t.y,t.width,t.height)},text:function(e){var t=e._getBBox();return ce(t.x,t.y,t.width,t.height)},set:function(e){var t=e._getBBox();return ce(t.x,t.y,t.width,t.height)}},fe=t.mapPath=function(e,t){if(!t)return e;var n,i,o,r,a,s,l;for(o=0,a=(e=Ye(e)).length;o<a;o++)for(r=1,s=(l=e[o]).length;r<s;r+=2)n=t.x(l[r],l[r+1]),i=t.y(l[r],l[r+1]),l[r]=n,l[r+1]=i;return e};if(t._g=M,t.type=M.win.SVGAngle||M.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==t.type){var pe,me=M.doc.createElement("div");if(me.innerHTML='<v:shape adj="1"/>',(pe=me.firstChild).style.behavior="url(#default#VML)",!pe||"object"!=typeof pe.adj)return t.type=L;me=null}t.svg=!(t.vml="VML"==t.type),t._Paper=k,t.fn=v=k.prototype=t.prototype,t._id=0,t.is=function(e,t){return"finite"==(t=O.call(t))?!G[_](+e):"array"==t?e instanceof Array:"null"==t&&null===e||t==typeof e&&null!==e||"object"==t&&e===Object(e)||"array"==t&&Array.isArray&&Array.isArray(e)||U.call(e).slice(8,-1).toLowerCase()==t},t.angle=function(e,n,i,o,r,a){if(null==r){var s=e-i,l=n-o;return s||l?(180+180*H.atan2(-l,-s)/N+360)%360:0}return t.angle(e,n,r,a)-t.angle(i,o,r,a)},t.rad=function(e){return e%360*N/180},t.deg=function(e){return Math.round(180*e/N%360*1e3)/1e3},t.snapTo=function(e,n,i){if(i=t.is(i,"finite")?i:10,t.is(e,$)){for(var o=e.length;o--;)if(j(e[o]-n)<=i)return e[o]}else{var r=n%(e=+e);if(r<i)return n-r;if(r>e-i)return n-r+e}return n},t.createUUID=function(e,t){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(e,t).toUpperCase()}}(/[xy]/g,function(e){var t=16*H.random()|0;return("x"==e?t:3&t|8).toString(16)}),t.setWindow=function(n){e("raphael.setWindow",t,M.win,n),M.win=n,M.doc=M.win.document,t._engine.initWin&&t._engine.initWin(M.win)};var ge=function(e){if(t.vml){var n,o=/^\s+|\s+$/g;try{var r=new ActiveXObject("htmlfile");r.write("<body>"),r.close(),n=r.body}catch(e){n=createPopup().document.body}var a=n.createTextRange();ge=i(function(e){try{n.style.color=D(e).replace(o,L);var t=a.queryCommandValue("ForeColor");return"#"+("000000"+(t=(255&t)<<16|65280&t|(16711680&t)>>>16).toString(16)).slice(-6)}catch(e){return"none"}})}else{var s=M.doc.createElement("i");s.title="Raphaël Colour Picker",s.style.display="none",M.doc.body.appendChild(s),ge=i(function(e){return s.style.color=e,M.doc.defaultView.getComputedStyle(s,L).getPropertyValue("color")})}return ge(e)},ye=function(){return"hsb("+[this.h,this.s,this.b]+")"},ve=function(){return"hsl("+[this.h,this.s,this.l]+")"},Ae=function(){return this.hex},be=function(e,n,i){if(null==n&&t.is(e,"object")&&"r"in e&&"g"in e&&"b"in e&&(i=e.b,n=e.g,e=e.r),null==n&&t.is(e,W)){var o=t.getRGB(e);e=o.r,n=o.g,i=o.b}return(e>1||n>1||i>1)&&(e/=255,n/=255,i/=255),[e,n,i]},we=function(e,n,i,o){var r={r:e*=255,g:n*=255,b:i*=255,hex:t.rgb(e,n,i),toString:Ae};return t.is(o,"finite")&&(r.opacity=o),r};t.color=function(e){var n;return t.is(e,"object")&&"h"in e&&"s"in e&&"b"in e?(n=t.hsb2rgb(e),e.r=n.r,e.g=n.g,e.b=n.b,e.hex=n.hex):t.is(e,"object")&&"h"in e&&"s"in e&&"l"in e?(n=t.hsl2rgb(e),e.r=n.r,e.g=n.g,e.b=n.b,e.hex=n.hex):(t.is(e,"string")&&(e=t.getRGB(e)),t.is(e,"object")&&"r"in e&&"g"in e&&"b"in e?(n=t.rgb2hsl(e),e.h=n.h,e.s=n.s,e.l=n.l,n=t.rgb2hsb(e),e.v=n.b):(e={hex:"none"}).r=e.g=e.b=e.h=e.s=e.v=e.l=-1),e.toString=Ae,e},t.hsb2rgb=function(e,t,n,i){var o,r,a,s,l;return this.is(e,"object")&&"h"in e&&"s"in e&&"b"in e&&(n=e.b,t=e.s,i=e.o,e=e.h),s=(l=n*t)*(1-j((e=(e*=360)%360/60)%2-1)),o=r=a=n-l,we(o+=[l,s,0,0,s,l][e=~~e],r+=[s,l,l,s,0,0][e],a+=[0,0,s,l,l,s][e],i)},t.hsl2rgb=function(e,t,n,i){var o,r,a,s,l;return this.is(e,"object")&&"h"in e&&"s"in e&&"l"in e&&(n=e.l,t=e.s,e=e.h),(e>1||t>1||n>1)&&(e/=360,t/=100,n/=100),e=(e*=360)%360/60,s=(l=2*t*(n<.5?n:1-n))*(1-j(e%2-1)),o=r=a=n-l/2,we(o+=[l,s,0,0,s,l][e=~~e],r+=[s,l,l,s,0,0][e],a+=[0,0,s,l,l,s][e],i)},t.rgb2hsb=function(e,t,n){var i,o;return e=(n=be(e,t,n))[0],t=n[1],n=n[2],{h:((0==(o=(i=P(e,t,n))-I(e,t,n))?null:i==e?(t-n)/o:i==t?(n-e)/o+2:(e-t)/o+4)+360)%6*60/360,s:0==o?0:o/i,b:i,toString:ye}},t.rgb2hsl=function(e,t,n){var i,o,r,a;return e=(n=be(e,t,n))[0],t=n[1],n=n[2],i=((o=P(e,t,n))+(r=I(e,t,n)))/2,{h:((0==(a=o-r)?null:o==e?(t-n)/a:o==t?(n-e)/a+2:(e-t)/a+4)+360)%6*60/360,s:0==a?0:i<.5?a/(2*i):a/(2-2*i),l:i,toString:ve}},t._path2string=function(){return this.join(",").replace(ie,"$1")},t._preload=function(e,t){var n=M.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){t.call(this),this.onload=null,M.doc.body.removeChild(this)},n.onerror=function(){M.doc.body.removeChild(this)},M.doc.body.appendChild(n),n.src=e},t.getRGB=i(function(e){if(!e||(e=D(e)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o};if("none"==e)return{r:-1,g:-1,b:-1,hex:"none",toString:o};!ne[_](e.toLowerCase().substring(0,2))&&"#"!=e.charAt()&&(e=ge(e));var n,i,r,a,s,l,d=e.match(Q);return d?(d[2]&&(r=X(d[2].substring(5),16),i=X(d[2].substring(3,5),16),n=X(d[2].substring(1,3),16)),d[3]&&(r=X((s=d[3].charAt(3))+s,16),i=X((s=d[3].charAt(2))+s,16),n=X((s=d[3].charAt(1))+s,16)),d[4]&&(l=d[4][Y](te),n=K(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),i=K(l[1]),"%"==l[1].slice(-1)&&(i*=2.55),r=K(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),"rgba"==d[1].toLowerCase().slice(0,4)&&(a=K(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100)),d[5]?(l=d[5][Y](te),n=K(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),i=K(l[1]),"%"==l[1].slice(-1)&&(i*=2.55),r=K(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(n/=360),"hsba"==d[1].toLowerCase().slice(0,4)&&(a=K(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),t.hsb2rgb(n,i,r,a)):d[6]?(l=d[6][Y](te),n=K(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),i=K(l[1]),"%"==l[1].slice(-1)&&(i*=2.55),r=K(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(n/=360),"hsla"==d[1].toLowerCase().slice(0,4)&&(a=K(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),t.hsl2rgb(n,i,r,a)):((d={r:n,g:i,b:r,toString:o}).hex="#"+(16777216|r|i<<8|n<<16).toString(16).slice(1),t.is(a,"finite")&&(d.opacity=a),d)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o}},t),t.hsb=i(function(e,n,i){return t.hsb2rgb(e,n,i).hex}),t.hsl=i(function(e,n,i){return t.hsl2rgb(e,n,i).hex}),t.rgb=i(function(e,t,n){function i(e){return e+.5|0}return"#"+(16777216|i(n)|i(t)<<8|i(e)<<16).toString(16).slice(1)}),t.getColor=function(e){var t=this.getColor.start=this.getColor.start||{h:0,s:1,b:e||.75},n=this.hsb2rgb(t.h,t.s,t.b);return t.h+=.075,t.h>1&&(t.h=0,t.s-=.2,t.s<=0&&(this.getColor.start={h:0,s:1,b:t.b})),n.hex},t.getColor.reset=function(){delete this.start},t.parsePathString=function(e){if(!e)return null;var n=_e(e);if(n.arr)return xe(n.arr);var i={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},o=[];return t.is(e,$)&&t.is(e[0],$)&&(o=xe(e)),o.length||D(e).replace(oe,function(e,t,n){var r=[],a=t.toLowerCase();if(n.replace(ae,function(e,t){t&&r.push(+t)}),"m"==a&&r.length>2&&(o.push([t][C](r.splice(0,2))),a="l",t="m"==t?"l":"L"),"r"==a)o.push([t][C](r));else for(;r.length>=i[a]&&(o.push([t][C](r.splice(0,i[a]))),i[a]););}),o.toString=t._path2string,n.arr=xe(o),o},t.parseTransformString=i(function(e){if(!e)return null;var n=[];return t.is(e,$)&&t.is(e[0],$)&&(n=xe(e)),n.length||D(e).replace(re,function(e,t,i){var o=[];O.call(t),i.replace(ae,function(e,t){t&&o.push(+t)}),n.push([t][C](o))}),n.toString=t._path2string,n});var _e=function(e){var t=_e.ps=_e.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout(function(){for(var n in t)t[_](n)&&n!=e&&(t[n].sleep--,!t[n].sleep&&delete t[n])}),t[e]};t.findDotsAtSegment=function(e,t,n,i,o,r,a,s,l){var d=1-l,c=F(d,3),u=F(d,2),h=l*l,f=h*l,p=c*e+3*u*l*n+3*d*l*l*o+f*a,m=c*t+3*u*l*i+3*d*l*l*r+f*s,g=e+2*l*(n-e)+h*(o-2*n+e),y=t+2*l*(i-t)+h*(r-2*i+t),v=n+2*l*(o-n)+h*(a-2*o+n),A=i+2*l*(r-i)+h*(s-2*r+i),b=d*e+l*n,w=d*t+l*i,_=d*o+l*a,M=d*r+l*s,x=90-180*H.atan2(g-v,y-A)/N;return(g>v||y<A)&&(x+=180),{x:p,y:m,m:{x:g,y:y},n:{x:v,y:A},start:{x:b,y:w},end:{x:_,y:M},alpha:x}},t.bezierBBox=function(e,n,i,o,r,a,s,l){t.is(e,"array")||(e=[e,n,i,o,r,a,s,l]);var d=De.apply(null,e);return{x:d.min.x,y:d.min.y,x2:d.max.x,y2:d.max.y,width:d.max.x-d.min.x,height:d.max.y-d.min.y}},t.isPointInsideBBox=function(e,t,n){return t>=e.x&&t<=e.x2&&n>=e.y&&n<=e.y2},t.isBBoxIntersect=function(e,n){var i=t.isPointInsideBBox;return i(n,e.x,e.y)||i(n,e.x2,e.y)||i(n,e.x,e.y2)||i(n,e.x2,e.y2)||i(e,n.x,n.y)||i(e,n.x2,n.y)||i(e,n.x,n.y2)||i(e,n.x2,n.y2)||(e.x<n.x2&&e.x>n.x||n.x<e.x2&&n.x>e.x)&&(e.y<n.y2&&e.y>n.y||n.y<e.y2&&n.y>e.y)},t.pathIntersection=function(e,t){return c(e,t)},t.pathIntersectionNumber=function(e,t){return c(e,t,1)},t.isPointInsidePath=function(e,n,i){var o=t.pathBBox(e);return t.isPointInsideBBox(o,n,i)&&c(e,[["M",n,i],["H",o.x2+10]],1)%2==1},t._removedFactory=function(t){return function(){e("raphael.log",null,"Raphaël: you are calling to method “"+t+"” of removed object",t)}};var Me=t.pathBBox=function(e){var t=_e(e);if(t.bbox)return n(t.bbox);if(!e)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,o=0,r=0,a=[],s=[],l=0,d=(e=Ye(e)).length;l<d;l++)if("M"==(i=e[l])[0])o=i[1],r=i[2],a.push(o),s.push(r);else{var c=De(o,r,i[1],i[2],i[3],i[4],i[5],i[6]);a=a[C](c.min.x,c.max.x),s=s[C](c.min.y,c.max.y),o=i[5],r=i[6]}var u=I[S](0,a),h=I[S](0,s),f=P[S](0,a),p=P[S](0,s),m=f-u,g=p-h,y={x:u,y:h,x2:f,y2:p,width:m,height:g,cx:u+m/2,cy:h+g/2};return t.bbox=n(y),y},xe=function(e){var i=n(e);return i.toString=t._path2string,i},ke=t._pathToRelative=function(e){var n=_e(e);if(n.rel)return xe(n.rel);t.is(e,$)&&t.is(e&&e[0],$)||(e=t.parsePathString(e));var i=[],o=0,r=0,a=0,s=0,l=0;"M"==e[0][0]&&(a=o=e[0][1],s=r=e[0][2],l++,i.push(["M",o,r]));for(var d=l,c=e.length;d<c;d++){var u=i[d]=[],h=e[d];if(h[0]!=O.call(h[0]))switch(u[0]=O.call(h[0]),u[0]){case"a":u[1]=h[1],u[2]=h[2],u[3]=h[3],u[4]=h[4],u[5]=h[5],u[6]=+(h[6]-o).toFixed(3),u[7]=+(h[7]-r).toFixed(3);break;case"v":u[1]=+(h[1]-r).toFixed(3);break;case"m":a=h[1],s=h[2];default:for(var f=1,p=h.length;f<p;f++)u[f]=+(h[f]-(f%2?o:r)).toFixed(3)}else{u=i[d]=[],"m"==h[0]&&(a=h[1]+o,s=h[2]+r);for(var m=0,g=h.length;m<g;m++)i[d][m]=h[m]}var y=i[d].length;switch(i[d][0]){case"z":o=a,r=s;break;case"h":o+=+i[d][y-1];break;case"v":r+=+i[d][y-1];break;default:o+=+i[d][y-2],r+=+i[d][y-1]}}return i.toString=t._path2string,n.rel=xe(i),i},Se=t._pathToAbsolute=function(e){var n=_e(e);if(n.abs)return xe(n.abs);if(t.is(e,$)&&t.is(e&&e[0],$)||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var i=[],o=0,a=0,s=0,l=0,d=0;"M"==e[0][0]&&(s=o=+e[0][1],l=a=+e[0][2],d++,i[0]=["M",o,a]);for(var c,u,h=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),f=d,p=e.length;f<p;f++){if(i.push(c=[]),(u=e[f])[0]!=q.call(u[0]))switch(c[0]=q.call(u[0]),c[0]){case"A":c[1]=u[1],c[2]=u[2],c[3]=u[3],c[4]=u[4],c[5]=u[5],c[6]=+(u[6]+o),c[7]=+(u[7]+a);break;case"V":c[1]=+u[1]+a;break;case"H":c[1]=+u[1]+o;break;case"R":for(var m=[o,a][C](u.slice(1)),g=2,y=m.length;g<y;g++)m[g]=+m[g]+o,m[++g]=+m[g]+a;i.pop(),i=i[C](r(m,h));break;case"M":s=+u[1]+o,l=+u[2]+a;default:for(g=1,y=u.length;g<y;g++)c[g]=+u[g]+(g%2?o:a)}else if("R"==u[0])m=[o,a][C](u.slice(1)),i.pop(),i=i[C](r(m,h)),c=["R"][C](u.slice(-2));else for(var v=0,A=u.length;v<A;v++)c[v]=u[v];switch(c[0]){case"Z":o=s,a=l;break;case"H":o=c[1];break;case"V":a=c[1];break;case"M":s=c[c.length-2],l=c[c.length-1];default:o=c[c.length-2],a=c[c.length-1]}}return i.toString=t._path2string,n.abs=xe(i),i},Ce=function(e,t,n,i){return[e,t,n,i,n,i]},Ee=function(e,t,n,i,o,r){var a=1/3,s=2/3;return[a*e+s*n,a*t+s*i,a*o+s*n,a*r+s*i,o,r]},Le=function(e,t,n,o,r,a,s,l,d,c){var u,h=120*N/180,f=N/180*(+r||0),p=[],m=i(function(e,t,n){return{x:e*H.cos(n)-t*H.sin(n),y:e*H.sin(n)+t*H.cos(n)}});if(c)x=c[0],k=c[1],_=c[2],M=c[3];else{e=(u=m(e,t,-f)).x,t=u.y,l=(u=m(l,d,-f)).x,d=u.y,H.cos(N/180*r),H.sin(N/180*r);var g=(e-l)/2,y=(t-d)/2,v=g*g/(n*n)+y*y/(o*o);v>1&&(n*=v=H.sqrt(v),o*=v);var A=n*n,b=o*o,w=(a==s?-1:1)*H.sqrt(j((A*b-A*y*y-b*g*g)/(A*y*y+b*g*g))),_=w*n*y/o+(e+l)/2,M=w*-o*g/n+(t+d)/2,x=H.asin(((t-M)/o).toFixed(9)),k=H.asin(((d-M)/o).toFixed(9));x=e<_?N-x:x,k=l<_?N-k:k,x<0&&(x=2*N+x),k<0&&(k=2*N+k),s&&x>k&&(x-=2*N),!s&&k>x&&(k-=2*N)}var S=k-x;if(j(S)>h){var E=k,L=l,T=d;k=x+h*(s&&k>x?1:-1),l=_+n*H.cos(k),d=M+o*H.sin(k),p=Le(l,d,n,o,r,0,s,L,T,[k,E,_,M])}S=k-x;var D=H.cos(x),R=H.sin(x),B=H.cos(k),O=H.sin(k),P=H.tan(S/4),I=4/3*n*P,F=4/3*o*P,z=[e,t],W=[e+I*R,t-F*D],$=[l+I*O,d-F*B],U=[l,d];if(W[0]=2*z[0]-W[0],W[1]=2*z[1]-W[1],c)return[W,$,U][C](p);for(var Q=[],G=0,V=(p=[W,$,U][C](p).join()[Y](",")).length;G<V;G++)Q[G]=G%2?m(p[G-1],p[G],f).y:m(p[G],p[G+1],f).x;return Q},Te=function(e,t,n,i,o,r,a,s,l){var d=1-l;return{x:F(d,3)*e+3*F(d,2)*l*n+3*d*l*l*o+F(l,3)*a,y:F(d,3)*t+3*F(d,2)*l*i+3*d*l*l*r+F(l,3)*s}},De=i(function(e,t,n,i,o,r,a,s){var l,d=o-2*n+e-(a-2*o+n),c=2*(n-e)-2*(o-n),u=e-n,h=(-c+H.sqrt(c*c-4*d*u))/2/d,f=(-c-H.sqrt(c*c-4*d*u))/2/d,p=[t,s],m=[e,a];return j(h)>"1e12"&&(h=.5),j(f)>"1e12"&&(f=.5),h>0&&h<1&&(l=Te(e,t,n,i,o,r,a,s,h),m.push(l.x),p.push(l.y)),f>0&&f<1&&(l=Te(e,t,n,i,o,r,a,s,f),m.push(l.x),p.push(l.y)),d=r-2*i+t-(s-2*r+i),u=t-i,h=(-(c=2*(i-t)-2*(r-i))+H.sqrt(c*c-4*d*u))/2/d,f=(-c-H.sqrt(c*c-4*d*u))/2/d,j(h)>"1e12"&&(h=.5),j(f)>"1e12"&&(f=.5),h>0&&h<1&&(l=Te(e,t,n,i,o,r,a,s,h),m.push(l.x),p.push(l.y)),f>0&&f<1&&(l=Te(e,t,n,i,o,r,a,s,f),m.push(l.x),p.push(l.y)),{min:{x:I[S](0,m),y:I[S](0,p)},max:{x:P[S](0,m),y:P[S](0,p)}}}),Ye=t._path2curve=i(function(e,t){var n=!t&&_e(e);if(!t&&n.curve)return xe(n.curve);for(var i=Se(e),o=t&&Se(t),r={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(e,t,n){var i,o;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"][C](Le[S](0,[t.x,t.y][C](e.slice(1))));break;case"S":"C"==n||"S"==n?(i=2*t.x-t.bx,o=2*t.y-t.by):(i=t.x,o=t.y),e=["C",i,o][C](e.slice(1));break;case"T":"Q"==n||"T"==n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=["C"][C](Ee(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"][C](Ee(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"][C](Ce(t.x,t.y,e[1],e[2]));break;case"H":e=["C"][C](Ce(t.x,t.y,e[1],t.y));break;case"V":e=["C"][C](Ce(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"][C](Ce(t.x,t.y,t.X,t.Y))}return e},l=function(e,t){if(e[t].length>7){e[t].shift();for(var n=e[t];n.length;)c[t]="A",o&&(u[t]="A"),e.splice(t++,0,["C"][C](n.splice(0,6)));e.splice(t,1),m=P(i.length,o&&o.length||0)}},d=function(e,t,n,r,a){e&&t&&"M"==e[a][0]&&"M"!=t[a][0]&&(t.splice(a,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=e[a][1],n.y=e[a][2],m=P(i.length,o&&o.length||0))},c=[],u=[],h="",f="",p=0,m=P(i.length,o&&o.length||0);p<m;p++){i[p]&&(h=i[p][0]),"C"!=h&&(c[p]=h,p&&(f=c[p-1])),i[p]=s(i[p],r,f),"A"!=c[p]&&"C"==h&&(c[p]="C"),l(i,p),o&&(o[p]&&(h=o[p][0]),"C"!=h&&(u[p]=h,p&&(f=u[p-1])),o[p]=s(o[p],a,f),"A"!=u[p]&&"C"==h&&(u[p]="C"),l(o,p)),d(i,o,r,a,p),d(o,i,a,r,p);var g=i[p],y=o&&o[p],v=g.length,A=o&&y.length;r.x=g[v-2],r.y=g[v-1],r.bx=K(g[v-4])||r.x,r.by=K(g[v-3])||r.y,a.bx=o&&(K(y[A-4])||a.x),a.by=o&&(K(y[A-3])||a.y),a.x=o&&y[A-2],a.y=o&&y[A-1]}return o||(n.curve=xe(i)),o?[i,o]:i},null,xe),Re=(t._parseDots=i(function(e){for(var n=[],i=0,o=e.length;i<o;i++){var r={},a=e[i].match(/^([^:]*):?([\d\.]*)/);if(r.color=t.getRGB(a[1]),r.color.error)return null;r.opacity=r.color.opacity,r.color=r.color.hex,a[2]&&(r.offset=a[2]+"%"),n.push(r)}for(i=1,o=n.length-1;i<o;i++)if(!n[i].offset){for(var s=K(n[i-1].offset||0),l=0,d=i+1;d<o;d++)if(n[d].offset){l=n[d].offset;break}l||(l=100,d=o);for(var c=((l=K(l))-s)/(d-i+1);i<d;i++)s+=c,n[i].offset=s+"%"}return n}),t._tear=function(e,t){e==t.top&&(t.top=e.prev),e==t.bottom&&(t.bottom=e.next),e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next)}),Be=(t._tofront=function(e,t){t.top!==e&&(Re(e,t),e.next=null,e.prev=t.top,t.top.next=e,t.top=e)},t._toback=function(e,t){t.bottom!==e&&(Re(e,t),e.next=t.bottom,e.prev=null,t.bottom.prev=e,t.bottom=e)},t._insertafter=function(e,t,n){Re(e,n),t==n.top&&(n.top=e),t.next&&(t.next.prev=e),e.next=t.next,e.prev=t,t.next=e},t._insertbefore=function(e,t,n){Re(e,n),t==n.bottom&&(n.bottom=e),t.prev&&(t.prev.next=e),e.prev=t.prev,t.prev=e,e.next=t},t.toMatrix=function(e,t){var n=Me(e),i={_:{transform:L},getBBox:function(){return n}};return Oe(i,t),i.matrix}),Oe=(t.transformPath=function(e,t){return fe(e,Be(e,t))},t._extractTransform=function(e,n){if(null==n)return e._.transform;n=D(n).replace(/\.{3}|\u2026/g,e._.transform||L);var i,o,r=t.parseTransformString(n),a=0,s=1,l=1,d=e._,c=new u;if(d.transform=r||[],r)for(var h=0,f=r.length;h<f;h++){var p,m,g,y,v,A=r[h],b=A.length,w=D(A[0]).toLowerCase(),_=A[0]!=w,M=_?c.invert():0;"t"==w&&3==b?_?(p=M.x(0,0),m=M.y(0,0),g=M.x(A[1],A[2]),y=M.y(A[1],A[2]),c.translate(g-p,y-m)):c.translate(A[1],A[2]):"r"==w?2==b?(v=v||e.getBBox(1),c.rotate(A[1],v.x+v.width/2,v.y+v.height/2),a+=A[1]):4==b&&(_?(g=M.x(A[2],A[3]),y=M.y(A[2],A[3]),c.rotate(A[1],g,y)):c.rotate(A[1],A[2],A[3]),a+=A[1]):"s"==w?2==b||3==b?(v=v||e.getBBox(1),c.scale(A[1],A[b-1],v.x+v.width/2,v.y+v.height/2),s*=A[1],l*=A[b-1]):5==b&&(_?(g=M.x(A[3],A[4]),y=M.y(A[3],A[4]),c.scale(A[1],A[2],g,y)):c.scale(A[1],A[2],A[3],A[4]),s*=A[1],l*=A[2]):"m"==w&&7==b&&c.add(A[1],A[2],A[3],A[4],A[5],A[6]),d.dirtyT=1,e.matrix=c}e.matrix=c,d.sx=s,d.sy=l,d.deg=a,d.dx=i=c.e,d.dy=o=c.f,1==s&&1==l&&!a&&d.bbox?(d.bbox.x+=+i,d.bbox.y+=+o):d.dirtyT=1}),He=function(e){var t=e[0];switch(t.toLowerCase()){case"t":return[t,0,0];case"m":return[t,1,0,0,1,0,0];case"r":return 4==e.length?[t,0,e[2],e[3]]:[t,0];case"s":return 5==e.length?[t,1,1,e[3],e[4]]:3==e.length?[t,1,1]:[t,1]}},Pe=t._equaliseTransform=function(e,n){n=D(n).replace(/\.{3}|\u2026/g,e),e=t.parseTransformString(e)||[],n=t.parseTransformString(n)||[];for(var i,o,r,a,s=P(e.length,n.length),l=[],d=[],c=0;c<s;c++){if(r=e[c]||He(n[c]),a=n[c]||He(r),r[0]!=a[0]||"r"==r[0].toLowerCase()&&(r[2]!=a[2]||r[3]!=a[3])||"s"==r[0].toLowerCase()&&(r[3]!=a[3]||r[4]!=a[4]))return;for(l[c]=[],d[c]=[],i=0,o=P(r.length,a.length);i<o;i++)i in r&&(l[c][i]=r[i]),i in a&&(d[c][i]=a[i])}return{from:l,to:d}};t._getContainer=function(e,n,i,o){var r;if(null!=(r=null!=o||t.is(e,"object")?e:M.doc.getElementById(e)))return r.tagName?null==n?{container:r,width:r.style.pixelWidth||r.offsetWidth,height:r.style.pixelHeight||r.offsetHeight}:{container:r,width:n,height:i}:{container:1,x:e,y:n,width:i,height:o}},t.pathToRelative=ke,t._engine={},t.path2curve=Ye,t.matrix=function(e,t,n,i,o,r){return new u(e,t,n,i,o,r)},function(e){function n(e){return e[0]*e[0]+e[1]*e[1]}function i(e){var t=H.sqrt(n(e));e[0]&&(e[0]/=t),e[1]&&(e[1]/=t)}e.add=function(e,t,n,i,o,r){var a,s,l,d,c=[[],[],[]],h=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],f=[[e,n,o],[t,i,r],[0,0,1]];for(e&&e instanceof u&&(f=[[e.a,e.c,e.e],[e.b,e.d,e.f],[0,0,1]]),a=0;a<3;a++)for(s=0;s<3;s++){for(d=0,l=0;l<3;l++)d+=h[a][l]*f[l][s];c[a][s]=d}this.a=c[0][0],this.b=c[1][0],this.c=c[0][1],this.d=c[1][1],this.e=c[0][2],this.f=c[1][2]},e.invert=function(){var e=this,t=e.a*e.d-e.b*e.c;return new u(e.d/t,-e.b/t,-e.c/t,e.a/t,(e.c*e.f-e.d*e.e)/t,(e.b*e.e-e.a*e.f)/t)},e.clone=function(){return new u(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(e,t){this.add(1,0,0,1,e,t)},e.scale=function(e,t,n,i){null==t&&(t=e),(n||i)&&this.add(1,0,0,1,n,i),this.add(e,0,0,t,0,0),(n||i)&&this.add(1,0,0,1,-n,-i)},e.rotate=function(e,n,i){e=t.rad(e),n=n||0,i=i||0;var o=+H.cos(e).toFixed(9),r=+H.sin(e).toFixed(9);this.add(o,r,-r,o,n,i),this.add(1,0,0,1,-n,-i)},e.x=function(e,t){return e*this.a+t*this.c+this.e},e.y=function(e,t){return e*this.b+t*this.d+this.f},e.get=function(e){return+this[D.fromCharCode(97+e)].toFixed(4)},e.toString=function(){return t.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},e.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var o=[[this.a,this.c],[this.b,this.d]];e.scalex=H.sqrt(n(o[0])),i(o[0]),e.shear=o[0][0]*o[1][0]+o[0][1]*o[1][1],o[1]=[o[1][0]-o[0][0]*e.shear,o[1][1]-o[0][1]*e.shear],e.scaley=H.sqrt(n(o[1])),i(o[1]),e.shear/=e.scaley;var r=-o[0][1],a=o[1][1];return a<0?(e.rotate=t.deg(H.acos(a)),r<0&&(e.rotate=360-e.rotate)):e.rotate=t.deg(H.asin(r)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(e){var t=e||this[Y]();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[t.dx,t.dy]:L)+(1!=t.scalex||1!=t.scaley?"s"+[t.scalex,t.scaley,0,0]:L)+(t.rotate?"r"+[t.rotate,0,0]:L)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(u.prototype);for(var Ie=function(){this.returnValue=!1},je=function(){return this.originalEvent.preventDefault()},Fe=function(){this.cancelBubble=!0},Ne=function(){return this.originalEvent.stopPropagation()},ze=function(e){var t=M.doc.documentElement.scrollTop||M.doc.body.scrollTop,n=M.doc.documentElement.scrollLeft||M.doc.body.scrollLeft;return{x:e.clientX+n,y:e.clientY+t}},We=M.doc.addEventListener?function(e,t,n,i){var o=function(e){var t=ze(e);return n.call(i,e,t.x,t.y)};if(e.addEventListener(t,o,!1),E&&B[t]){var r=function(t){for(var o=ze(t),r=t,a=0,s=t.targetTouches&&t.targetTouches.length;a<s;a++)if(t.targetTouches[a].target==e){(t=t.targetTouches[a]).originalEvent=r,t.preventDefault=je,t.stopPropagation=Ne;break}return n.call(i,t,o.x,o.y)};e.addEventListener(B[t],r,!1)}return function(){return e.removeEventListener(t,o,!1),E&&B[t]&&e.removeEventListener(B[t],r,!1),!0}}:M.doc.attachEvent?function(e,t,n,i){var o=function(e){e=e||M.win.event;var t=M.doc.documentElement.scrollTop||M.doc.body.scrollTop,o=M.doc.documentElement.scrollLeft||M.doc.body.scrollLeft,r=e.clientX+o,a=e.clientY+t;return e.preventDefault=e.preventDefault||Ie,e.stopPropagation=e.stopPropagation||Fe,n.call(i,e,r,a)};return e.attachEvent("on"+t,o),function(){return e.detachEvent("on"+t,o),!0}}:void 0,$e=[],Ue=function(t){for(var n,i=t.clientX,o=t.clientY,r=M.doc.documentElement.scrollTop||M.doc.body.scrollTop,a=M.doc.documentElement.scrollLeft||M.doc.body.scrollLeft,s=$e.length;s--;){if(n=$e[s],E&&t.touches){for(var l,d=t.touches.length;d--;)if((l=t.touches[d]).identifier==n.el._drag.id){i=l.clientX,o=l.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var c,u=n.el.node,h=u.nextSibling,f=u.parentNode,p=u.style.display;M.win.opera&&f.removeChild(u),u.style.display="none",c=n.el.paper.getElementByPoint(i,o),u.style.display=p,M.win.opera&&(h?f.insertBefore(u,h):f.appendChild(u)),c&&e("raphael.drag.over."+n.el.id,n.el,c),i+=a,o+=r,e("raphael.drag.move."+n.el.id,n.move_scope||n.el,i-n.el._drag.x,o-n.el._drag.y,i,o,t)}},Qe=function(n){t.unmousemove(Ue).unmouseup(Qe);for(var i,o=$e.length;o--;)(i=$e[o]).el._drag={},e("raphael.drag.end."+i.el.id,i.end_scope||i.start_scope||i.move_scope||i.el,n);$e=[]},Ge=t.el={},Ve=R.length;Ve--;)!function(e){t[e]=Ge[e]=function(n,i){return t.is(n,"function")&&(this.events=this.events||[],this.events.push({name:e,f:n,unbind:We(this.shape||this.node||M.doc,e,n,i||this)})),this},t["un"+e]=Ge["un"+e]=function(n){for(var i=this.events||[],o=i.length;o--;)i[o].name!=e||!t.is(n,"undefined")&&i[o].f!=n||(i[o].unbind(),i.splice(o,1),!i.length&&delete this.events);return this}}(R[Ve]);Ge.data=function(n,i){var o=se[this.id]=se[this.id]||{};if(0==arguments.length)return o;if(1==arguments.length){if(t.is(n,"object")){for(var r in n)n[_](r)&&this.data(r,n[r]);return this}return e("raphael.data.get."+this.id,this,o[n],n),o[n]}return o[n]=i,e("raphael.data.set."+this.id,this,i,n),this},Ge.removeData=function(e){return null==e?se[this.id]={}:se[this.id]&&delete se[this.id][e],this},Ge.getData=function(){return n(se[this.id]||{})},Ge.hover=function(e,t,n,i){return this.mouseover(e,n).mouseout(t,i||n)},Ge.unhover=function(e,t){return this.unmouseover(e).unmouseout(t)};var Je=[];Ge.drag=function(n,i,o,r,a,s){function l(l){(l.originalEvent||l).preventDefault();var d=l.clientX,c=l.clientY,u=M.doc.documentElement.scrollTop||M.doc.body.scrollTop,h=M.doc.documentElement.scrollLeft||M.doc.body.scrollLeft;if(this._drag.id=l.identifier,E&&l.touches)for(var f,p=l.touches.length;p--;)if(f=l.touches[p],this._drag.id=f.identifier,f.identifier==this._drag.id){d=f.clientX,c=f.clientY;break}this._drag.x=d+h,this._drag.y=c+u,!$e.length&&t.mousemove(Ue).mouseup(Qe),$e.push({el:this,move_scope:r,start_scope:a,end_scope:s}),i&&e.on("raphael.drag.start."+this.id,i),n&&e.on("raphael.drag.move."+this.id,n),o&&e.on("raphael.drag.end."+this.id,o),e("raphael.drag.start."+this.id,a||r||this,l.clientX+h,l.clientY+u,l)}return this._drag={},Je.push({el:this,start:l}),this.mousedown(l),this},Ge.onDragOver=function(t){t?e.on("raphael.drag.over."+this.id,t):e.unbind("raphael.drag.over."+this.id)},Ge.undrag=function(){for(var n=Je.length;n--;)Je[n].el==this&&(this.unmousedown(Je[n].start),Je.splice(n,1),e.unbind("raphael.drag.*."+this.id));!Je.length&&t.unmousemove(Ue).unmouseup(Qe),$e=[]},v.circle=function(e,n,i){var o=t._engine.circle(this,e||0,n||0,i||0);return this.__set__&&this.__set__.push(o),o},v.rect=function(e,n,i,o,r){var a=t._engine.rect(this,e||0,n||0,i||0,o||0,r||0);return this.__set__&&this.__set__.push(a),a},v.ellipse=function(e,n,i,o){var r=t._engine.ellipse(this,e||0,n||0,i||0,o||0);return this.__set__&&this.__set__.push(r),r},v.path=function(e){e&&!t.is(e,W)&&!t.is(e[0],$)&&(e+=L);var n=t._engine.path(t.format[S](t,arguments),this);return this.__set__&&this.__set__.push(n),n},v.image=function(e,n,i,o,r){var a=t._engine.image(this,e||"about:blank",n||0,i||0,o||0,r||0);return this.__set__&&this.__set__.push(a),a},v.text=function(e,n,i){var o=t._engine.text(this,e||0,n||0,D(i));return this.__set__&&this.__set__.push(o),o},v.set=function(e){!t.is(e,"array")&&(e=Array.prototype.splice.call(arguments,0,arguments.length));var n=new at(e);return this.__set__&&this.__set__.push(n),n.paper=this,n.type="set",n},v.setStart=function(e){this.__set__=e||this.set()},v.setFinish=function(e){var t=this.__set__;return delete this.__set__,t},v.getSize=function(){var e=this.canvas.parentNode;return{width:e.offsetWidth,height:e.offsetHeight}},v.setSize=function(e,n){return t._engine.setSize.call(this,e,n)},v.setViewBox=function(e,n,i,o,r){return t._engine.setViewBox.call(this,e,n,i,o,r)},v.top=v.bottom=null,v.raphael=t,v.getElementByPoint=function(e,t){var n=this,i=n.canvas,o=M.doc.elementFromPoint(e,t);if(M.win.opera&&"svg"==o.tagName){var r=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,i=n.body,o=n.documentElement,r=o.clientTop||i.clientTop||0,a=o.clientLeft||i.clientLeft||0;return{y:t.top+(M.win.pageYOffset||o.scrollTop||i.scrollTop)-r,x:t.left+(M.win.pageXOffset||o.scrollLeft||i.scrollLeft)-a}}(i),a=i.createSVGRect();a.x=e-r.x,a.y=t-r.y,a.width=a.height=1;var s=i.getIntersectionList(a,null);s.length&&(o=s[s.length-1])}if(!o)return null;for(;o.parentNode&&o!=i.parentNode&&!o.raphael;)o=o.parentNode;return o==n.canvas.parentNode&&(o=i),o&&o.raphael?n.getById(o.raphaelid):null},v.getElementsByBBox=function(e){var n=this.set();return this.forEach(function(i){t.isBBoxIntersect(i.getBBox(),e)&&n.push(i)}),n},v.getById=function(e){for(var t=this.bottom;t;){if(t.id==e)return t;t=t.next}return null},v.forEach=function(e,t){for(var n=this.bottom;n;){if(!1===e.call(t,n))return this;n=n.next}return this},v.getElementsByPoint=function(e,t){var n=this.set();return this.forEach(function(i){i.isPointInside(e,t)&&n.push(i)}),n},Ge.isPointInside=function(e,n){var i=this.realPath=he[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(i=t.transformPath(i,this.attr("transform"))),t.isPointInsidePath(i,e,n)},Ge.getBBox=function(e){if(this.removed)return{};var t=this._;return e?(!t.dirty&&t.bboxwt||(this.realPath=he[this.type](this),t.bboxwt=Me(this.realPath),t.bboxwt.toString=h,t.dirty=0),t.bboxwt):((t.dirty||t.dirtyT||!t.bbox)&&(!t.dirty&&this.realPath||(t.bboxwt=0,this.realPath=he[this.type](this)),t.bbox=Me(fe(this.realPath,this.matrix)),t.bbox.toString=h,t.dirty=t.dirtyT=0),t.bbox)},Ge.clone=function(){if(this.removed)return null;var e=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(e),e},Ge.glow=function(e){if("text"==this.type)return null;var t={width:((e=e||{}).width||10)+(+this.attr("stroke-width")||1),fill:e.fill||!1,opacity:null==e.opacity?.5:e.opacity,offsetx:e.offsetx||0,offsety:e.offsety||0,color:e.color||"#000"},n=t.width/2,i=this.paper,o=i.set(),r=this.realPath||he[this.type](this);r=this.matrix?fe(r,this.matrix):r;for(var a=1;a<n+1;a++)o.push(i.path(r).attr({stroke:t.color,fill:t.fill?t.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(t.width/n*a).toFixed(3),opacity:+(t.opacity/n).toFixed(3)}));return o.insertBefore(this).translate(t.offsetx,t.offsety)};var Ke=function(e,n,i,o,r,a,l,d,c){return null==c?s(e,n,i,o,r,a,l,d):t.findDotsAtSegment(e,n,i,o,r,a,l,d,function(e,t,n,i,o,r,a,l,d){if(!(d<0||s(e,t,n,i,o,r,a,l)<d)){var c,u=.5,h=1-u;for(c=s(e,t,n,i,o,r,a,l,h);j(c-d)>.01;)u/=2,c=s(e,t,n,i,o,r,a,l,h+=(c<d?1:-1)*u);return h}}(e,n,i,o,r,a,l,d,c))},Xe=function(e,n){return function(i,o,r){for(var a,s,l,d,c,u="",h={},f=0,p=0,m=(i=Ye(i)).length;p<m;p++){if("M"==(l=i[p])[0])a=+l[1],s=+l[2];else{if(f+(d=Ke(a,s,l[1],l[2],l[3],l[4],l[5],l[6]))>o){if(n&&!h.start){if(u+=["C"+(c=Ke(a,s,l[1],l[2],l[3],l[4],l[5],l[6],o-f)).start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],r)return u;h.start=u,u=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,l[5],l[6]].join(),f+=d,a=+l[5],s=+l[6];continue}if(!e&&!n)return{x:(c=Ke(a,s,l[1],l[2],l[3],l[4],l[5],l[6],o-f)).x,y:c.y,alpha:c.alpha}}f+=d,a=+l[5],s=+l[6]}u+=l.shift()+l}return h.end=u,(c=e?f:n?h:t.findDotsAtSegment(a,s,l[0],l[1],l[2],l[3],l[4],l[5],1)).alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},qe=Xe(1),Ze=Xe(),et=Xe(0,1);t.getTotalLength=qe,t.getPointAtLength=Ze,t.getSubpath=function(e,t,n){if(this.getTotalLength(e)-n<1e-6)return et(e,t).end;var i=et(e,n,1);return t?et(i,t).end:i},Ge.getTotalLength=function(){var e=this.getPath();if(e)return this.node.getTotalLength?this.node.getTotalLength():qe(e)},Ge.getPointAtLength=function(e){var t=this.getPath();if(t)return Ze(t,e)},Ge.getPath=function(){var e,n=t._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return n&&(e=n(this)),e},Ge.getSubpath=function(e,n){var i=this.getPath();if(i)return t.getSubpath(i,e,n)};var tt=t.easing_formulas={linear:function(e){return e},"<":function(e){return F(e,1.7)},">":function(e){return F(e,.48)},"<>":function(e){var t=.48-e/1.04,n=H.sqrt(.1734+t*t),i=n-t,o=-n-t,r=F(j(i),1/3)*(i<0?-1:1)+F(j(o),1/3)*(o<0?-1:1)+.5;return 3*(1-r)*r*r+r*r*r},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},elastic:function(e){return e==!!e?e:F(2,-10*e)*H.sin(2*N*(e-.075)/.3)+1},bounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375}};tt.easeIn=tt["ease-in"]=tt["<"],tt.easeOut=tt["ease-out"]=tt[">"],tt.easeInOut=tt["ease-in-out"]=tt["<>"],tt["back-in"]=tt.backIn,tt["back-out"]=tt.backOut;var nt=[],it=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,16)},ot=function(){for(var n=+new Date,i=0;i<nt.length;i++){var o=nt[i];if(!o.el.removed&&!o.paused){var r,a,s=n-o.start,l=o.ms,d=o.easing,c=o.from,u=o.diff,h=o.to,f=(o.t,o.el),p={},g={};if(o.initstatus?(s=(o.initstatus*o.anim.top-o.prev)/(o.percent-o.prev)*l,o.status=o.initstatus,delete o.initstatus,o.stop&&nt.splice(i--,1)):o.status=(o.prev+(o.percent-o.prev)*(s/l))/o.anim.top,!(s<0))if(s<l){var y=d(s/l);for(var v in c)if(c[_](v)){switch(ee[v]){case z:r=+c[v]+y*l*u[v];break;case"colour":r="rgb("+[rt(J(c[v].r+y*l*u[v].r)),rt(J(c[v].g+y*l*u[v].g)),rt(J(c[v].b+y*l*u[v].b))].join(",")+")";break;case"path":r=[];for(var A=0,b=c[v].length;A<b;A++){r[A]=[c[v][A][0]];for(var w=1,M=c[v][A].length;w<M;w++)r[A][w]=+c[v][A][w]+y*l*u[v][A][w];r[A]=r[A].join(T)}r=r.join(T);break;case"transform":if(u[v].real)for(r=[],A=0,b=c[v].length;A<b;A++)for(r[A]=[c[v][A][0]],w=1,M=c[v][A].length;w<M;w++)r[A][w]=c[v][A][w]+y*l*u[v][A][w];else{var x=function(e){return+c[v][e]+y*l*u[v][e]};r=[["m",x(0),x(1),x(2),x(3),x(4),x(5)]]}break;case"csv":if("clip-rect"==v)for(r=[],A=4;A--;)r[A]=+c[v][A]+y*l*u[v][A];break;default:var k=[][C](c[v]);for(r=[],A=f.paper.customAttributes[v].length;A--;)r[A]=+k[A]+y*l*u[v][A]}p[v]=r}f.attr(p),function(t,n,i){setTimeout(function(){e("raphael.anim.frame."+t,n,i)})}(f.id,f,o.anim)}else{if(function(n,i,o){setTimeout(function(){e("raphael.anim.frame."+i.id,i,o),e("raphael.anim.finish."+i.id,i,o),t.is(n,"function")&&n.call(i)})}(o.callback,f,o.anim),f.attr(h),nt.splice(i--,1),o.repeat>1&&!o.next){for(a in h)h[_](a)&&(g[a]=o.totalOrigin[a]);o.el.attr(g),m(o.anim,o.el,o.anim.percents[0],null,o.totalOrigin,o.repeat-1)}o.next&&!o.stop&&m(o.anim,o.el,o.next,null,o.totalOrigin,o.repeat)}}}nt.length&&it(ot)},rt=function(e){return e>255?255:e<0?0:e};Ge.animateWith=function(e,n,i,o,r,a){var s=this;if(s.removed)return a&&a.call(s),s;var l=i instanceof p?i:t.animation(i,o,r,a);m(l,s,l.percents[0],null,s.attr());for(var d=0,c=nt.length;d<c;d++)if(nt[d].anim==n&&nt[d].el==e){nt[c-1].start=nt[d].start;break}return s},Ge.onAnimation=function(t){return t?e.on("raphael.anim.frame."+this.id,t):e.unbind("raphael.anim.frame."+this.id),this},p.prototype.delay=function(e){var t=new p(this.anim,this.ms);return t.times=this.times,t.del=+e||0,t},p.prototype.repeat=function(e){var t=new p(this.anim,this.ms);return t.del=this.del,t.times=H.floor(P(e,0))||1,t},t.animation=function(e,n,i,o){if(e instanceof p)return e;!t.is(i,"function")&&i||(o=o||i||null,i=null),e=Object(e),n=+n||0;var r,a,s={};for(a in e)e[_](a)&&K(a)!=a&&K(a)+"%"!=a&&(r=!0,s[a]=e[a]);if(r)return i&&(s.easing=i),o&&(s.callback=o),new p({100:s},n);if(o){var l=0;for(var d in e){var c=X(d);e[_](d)&&c>l&&(l=c)}!e[l+="%"].callback&&(e[l].callback=o)}return new p(e,n)},Ge.animate=function(e,n,i,o){var r=this;if(r.removed)return o&&o.call(r),r;var a=e instanceof p?e:t.animation(e,n,i,o);return m(a,r,a.percents[0],null,r.attr()),r},Ge.setTime=function(e,t){return e&&null!=t&&this.status(e,I(t,e.ms)/e.ms),this},Ge.status=function(e,t){var n,i,o=[],r=0;if(null!=t)return m(e,this,-1,I(t,1)),this;for(n=nt.length;r<n;r++)if((i=nt[r]).el.id==this.id&&(!e||i.anim==e)){if(e)return i.status;o.push({anim:i.anim,status:i.status})}return e?0:o},Ge.pause=function(t){for(var n=0;n<nt.length;n++)nt[n].el.id!=this.id||t&&nt[n].anim!=t||!1!==e("raphael.anim.pause."+this.id,this,nt[n].anim)&&(nt[n].paused=!0);return this},Ge.resume=function(t){for(var n=0;n<nt.length;n++)if(nt[n].el.id==this.id&&(!t||nt[n].anim==t)){var i=nt[n];!1!==e("raphael.anim.resume."+this.id,this,i.anim)&&(delete i.paused,this.status(i.anim,i.status))}return this},Ge.stop=function(t){for(var n=0;n<nt.length;n++)nt[n].el.id!=this.id||t&&nt[n].anim!=t||!1!==e("raphael.anim.stop."+this.id,this,nt[n].anim)&&nt.splice(n--,1);return this},e.on("raphael.remove",g),e.on("raphael.clear",g),Ge.toString=function(){return"Raphaël’s object"};var at=function(e){if(this.items=[],this.length=0,this.type="set",e)for(var t=0,n=e.length;t<n;t++)!e[t]||e[t].constructor!=Ge.constructor&&e[t].constructor!=at||(this[this.items.length]=this.items[this.items.length]=e[t],this.length++)},st=at.prototype;for(var lt in st.push=function(){for(var e,t,n=0,i=arguments.length;n<i;n++)!(e=arguments[n])||e.constructor!=Ge.constructor&&e.constructor!=at||(this[t=this.items.length]=this.items[t]=e,this.length++);return this},st.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},st.forEach=function(e,t){for(var n=0,i=this.items.length;n<i;n++)if(!1===e.call(t,this.items[n],n))return this;return this},Ge)Ge[_](lt)&&(st[lt]=function(e){return function(){var t=arguments;return this.forEach(function(n){n[e][S](n,t)})}}(lt));return st.attr=function(e,n){if(e&&t.is(e,$)&&t.is(e[0],"object"))for(var i=0,o=e.length;i<o;i++)this.items[i].attr(e[i]);else for(var r=0,a=this.items.length;r<a;r++)this.items[r].attr(e,n);return this},st.clear=function(){for(;this.length;)this.pop()},st.splice=function(e,t,n){e=e<0?P(this.length+e,0):e,t=P(0,I(this.length-e,t));var i,o=[],r=[],a=[];for(i=2;i<arguments.length;i++)a.push(arguments[i]);for(i=0;i<t;i++)r.push(this[e+i]);for(;i<this.length-e;i++)o.push(this[e+i]);var s=a.length;for(i=0;i<s+o.length;i++)this.items[e+i]=this[e+i]=i<s?a[i]:o[i-s];for(i=this.items.length=this.length-=t-s;this[i];)delete this[i++];return new at(r)},st.exclude=function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]==e)return this.splice(t,1),!0},st.animate=function(e,n,i,o){(t.is(i,"function")||!i)&&(o=i||null);var r,a,s=this.items.length,l=s,d=this;if(!s)return this;o&&(a=function(){!--s&&o.call(d)}),i=t.is(i,W)?i:a;var c=t.animation(e,n,i,a);for(r=this.items[--l].animate(c);l--;)this.items[l]&&!this.items[l].removed&&this.items[l].animateWith(r,c,c),this.items[l]&&!this.items[l].removed||s--;return this},st.insertAfter=function(e){for(var t=this.items.length;t--;)this.items[t].insertAfter(e);return this},st.getBBox=function(){for(var e=[],t=[],n=[],i=[],o=this.items.length;o--;)if(!this.items[o].removed){var r=this.items[o].getBBox();e.push(r.x),t.push(r.y),n.push(r.x+r.width),i.push(r.y+r.height)}return{x:e=I[S](0,e),y:t=I[S](0,t),x2:n=P[S](0,n),y2:i=P[S](0,i),width:n-e,height:i-t}},st.clone=function(e){e=this.paper.set();for(var t=0,n=this.items.length;t<n;t++)e.push(this.items[t].clone());return e},st.toString=function(){return"Raphaël‘s set"},st.glow=function(e){var t=this.paper.set();return this.forEach(function(n,i){var o=n.glow(e);null!=o&&o.forEach(function(e,n){t.push(e)})}),t},st.isPointInside=function(e,t){var n=!1;return this.forEach(function(i){if(i.isPointInside(e,t))return n=!0,!1}),n},t.registerFont=function(e){if(!e.face)return e;this.fonts=this.fonts||{};var t={w:e.w,face:{},glyphs:{}},n=e.face["font-family"];for(var i in e.face)e.face[_](i)&&(t.face[i]=e.face[i]);if(this.fonts[n]?this.fonts[n].push(t):this.fonts[n]=[t],!e.svg)for(var o in t.face["units-per-em"]=X(e.face["units-per-em"],10),e.glyphs)if(e.glyphs[_](o)){var r=e.glyphs[o];if(t.glyphs[o]={w:r.w,k:{},d:r.d&&"M"+r.d.replace(/[mlcxtrv]/g,function(e){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[e]||"M"})+"z"},r.k)for(var a in r.k)r[_](a)&&(t.glyphs[o].k[a]=r.k[a])}return e},v.getFont=function(e,n,i,o){if(o=o||"normal",i=i||"normal",n=+n||{normal:400,bold:700,lighter:300,bolder:800}[n]||400,t.fonts){var r,a=t.fonts[e];if(!a){var s=new RegExp("(^|\\s)"+e.replace(/[^\w\d\s+!~.:_-]/g,L)+"(\\s|$)","i");for(var l in t.fonts)if(t.fonts[_](l)&&s.test(l)){a=t.fonts[l];break}}if(a)for(var d=0,c=a.length;d<c&&((r=a[d]).face["font-weight"]!=n||r.face["font-style"]!=i&&r.face["font-style"]||r.face["font-stretch"]!=o);d++);return r}},v.print=function(e,n,i,o,r,a,s,l){a=a||"middle",s=P(I(s||0,1),-1),l=P(I(l||1,3),1);var d,c=D(i)[Y](L),u=0,h=0,f=L;if(t.is(o,"string")&&(o=this.getFont(o)),o){d=(r||16)/o.face["units-per-em"];for(var p=o.face.bbox[Y](A),m=+p[0],g=p[3]-p[1],y=0,v=+p[1]+("baseline"==a?g+ +o.face.descent:g/2),b=0,w=c.length;b<w;b++){if("\n"==c[b])u=0,M=0,h=0,y+=g*l;else{var _=h&&o.glyphs[c[b-1]]||{},M=o.glyphs[c[b]];u+=h?(_.w||o.w)+(_.k&&_.k[c[b]]||0)+o.w*s:0,h=1}M&&M.d&&(f+=t.transformPath(M.d,["t",u*d,y*d,"s",d,d,m,v,"t",(e-m)/d,(n-v)/d]))}}return this.path(f).attr({fill:"#000",stroke:"none"})},v.add=function(e){if(t.is(e,"array"))for(var n,i=this.set(),o=0,r=e.length;o<r;o++)n=e[o]||{},b[_](n.type)&&i.push(this[n.type]().attr(n));return i},t.format=function(e,n){var i=t.is(n,$)?[0][C](n):arguments;return e&&t.is(e,W)&&i.length-1&&(e=e.replace(w,function(e,t){return null==i[++t]?L:i[t]})),e||L},t.fullfill=function(){var e=/\{([^\}]+)\}/g,t=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,n=function(e,n,i){var o=i;return n.replace(t,function(e,t,n,i,r){t=t||i,o&&(t in o&&(o=o[t]),"function"==typeof o&&r&&(o=o()))}),o=(null==o||o==i?e:o)+""};return function(t,i){return String(t).replace(e,function(e,t){return n(e,t,i)})}}(),t.ninja=function(){if(x.was)M.win.Raphael=x.is;else{window.Raphael=void 0;try{delete window.Raphael}catch(e){}}return t},t.st=st,e.on("raphael.DOMload",function(){y=!0}),function(e,n,i){null==e.readyState&&e.addEventListener&&(e.addEventListener(n,i=function(){e.removeEventListener(n,i,!1),e.readyState="complete"},!1),e.readyState="loading"),function n(){/in/.test(e.readyState)?setTimeout(n,9):t.eve("raphael.DOMload")}()}(document,"DOMContentLoaded"),t}.apply(t,i))||(e.exports=o)},function(e,t,n){var i,o,r,a,s,l,d,c,u,h,f,p,m,g;a="0.5.0",s="hasOwnProperty",l=/[\.\/]/,d=/\s*,\s*/,c=function(e,t){return e-t},u={n:{}},h=function(){for(var e=0,t=this.length;e<t;e++)if(void 0!==this[e])return this[e]},f=function(){for(var e=this.length;--e;)if(void 0!==this[e])return this[e]},p=Object.prototype.toString,m=String,g=Array.isArray||function(e){return e instanceof Array||"[object Array]"==p.call(e)},eve=function(e,t){var n,i=r,a=Array.prototype.slice.call(arguments,2),s=eve.listeners(e),l=0,d=[],u={},p=[],m=o;p.firstDefined=h,p.lastDefined=f,o=e,r=0;for(var g=0,y=s.length;g<y;g++)"zIndex"in s[g]&&(d.push(s[g].zIndex),s[g].zIndex<0&&(u[s[g].zIndex]=s[g]));for(d.sort(c);d[l]<0;)if(n=u[d[l++]],p.push(n.apply(t,a)),r)return r=i,p;for(g=0;g<y;g++)if("zIndex"in(n=s[g]))if(n.zIndex==d[l]){if(p.push(n.apply(t,a)),r)break;do{if((n=u[d[++l]])&&p.push(n.apply(t,a)),r)break}while(n)}else u[n.zIndex]=n;else if(p.push(n.apply(t,a)),r)break;return r=i,o=m,p},eve._events=u,eve.listeners=function(e){var t,n,i,o,r,a,s,d,c=g(e)?e:e.split(l),h=u,f=[h],p=[];for(o=0,r=c.length;o<r;o++){for(d=[],a=0,s=f.length;a<s;a++)for(n=[(h=f[a].n)[c[o]],h["*"]],i=2;i--;)(t=n[i])&&(d.push(t),p=p.concat(t.f||[]));f=d}return p},eve.separator=function(e){e?(e="["+(e=m(e).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",l=new RegExp(e)):l=/[\.\/]/},eve.on=function(e,t){if("function"!=typeof t)return function(){};for(var n=g(e)?g(e[0])?e:[e]:m(e).split(d),i=0,o=n.length;i<o;i++)!function(e){for(var n,i=g(e)?e:m(e).split(l),o=u,r=0,a=i.length;r<a;r++)o=(o=o.n).hasOwnProperty(i[r])&&o[i[r]]||(o[i[r]]={n:{}});for(o.f=o.f||[],r=0,a=o.f.length;r<a;r++)if(o.f[r]==t){n=!0;break}!n&&o.f.push(t)}(n[i]);return function(e){+e==+e&&(t.zIndex=+e)}},eve.f=function(e){var t=[].slice.call(arguments,1);return function(){eve.apply(null,[e,null].concat(t).concat([].slice.call(arguments,0)))}},eve.stop=function(){r=1},eve.nt=function(e){var t=g(o)?o.join("."):o;return e?new RegExp("(?:\\.|\\/|^)"+e+"(?:\\.|\\/|$)").test(t):t},eve.nts=function(){return g(o)?o:o.split(l)},eve.off=eve.unbind=function(e,t){if(e){var n=g(e)?g(e[0])?e:[e]:m(e).split(d);if(n.length>1)for(var i=0,o=n.length;i<o;i++)eve.off(n[i],t);else{n=g(e)?e:m(e).split(l);var r,a,c,h,f,p=[u];for(i=0,o=n.length;i<o;i++)for(h=0;h<p.length;h+=c.length-2){if(c=[h,1],r=p[h].n,"*"!=n[i])r[n[i]]&&c.push(r[n[i]]);else for(a in r)r[s](a)&&c.push(r[a]);p.splice.apply(p,c)}for(i=0,o=p.length;i<o;i++)for(r=p[i];r.n;){if(t){if(r.f){for(h=0,f=r.f.length;h<f;h++)if(r.f[h]==t){r.f.splice(h,1);break}!r.f.length&&delete r.f}for(a in r.n)if(r.n[s](a)&&r.n[a].f){var y=r.n[a].f;for(h=0,f=y.length;h<f;h++)if(y[h]==t){y.splice(h,1);break}!y.length&&delete r.n[a].f}}else for(a in delete r.f,r.n)r.n[s](a)&&r.n[a].f&&delete r.n[a].f;r=r.n}}}else eve._events=u={n:{}}},eve.once=function(e,t){var n=function(){return eve.off(e,n),t.apply(this,arguments)};return eve.on(e,n)},eve.version=a,eve.toString=function(){return"You are running Eve "+a},void 0!==e&&e.exports?e.exports=eve:void 0===(i=function(){return eve}.apply(t,[]))||(e.exports=i)},function(e,t,n){var i,o;i=[n(1)],void 0===(o=function(e){if(!e||e.svg){var t="hasOwnProperty",n=String,i=parseFloat,o=parseInt,r=Math,a=r.max,s=r.abs,l=r.pow,d=/[, ]+/,c=e.eve,u="",h=" ",f="http://www.w3.org/1999/xlink",p={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},m={};e.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var g=function(i,o){if(o)for(var r in"string"==typeof i&&(i=g(i)),o)o[t](r)&&("xlink:"==r.substring(0,6)?i.setAttributeNS(f,r.substring(6),n(o[r])):i.setAttribute(r,n(o[r])));else(i=e._g.doc.createElementNS("http://www.w3.org/2000/svg",i)).style&&(i.style.webkitTapHighlightColor="rgba(0,0,0,0)");return i},y=function(t,o){var d="linear",c=t.id+o,h=.5,f=.5,p=t.node,m=t.paper,y=p.style,A=e._g.doc.getElementById(c);if(!A){if(o=(o=n(o).replace(e._radial_gradient,function(e,t,n){if(d="radial",t&&n){h=i(t);var o=2*((f=i(n))>.5)-1;l(h-.5,2)+l(f-.5,2)>.25&&(f=r.sqrt(.25-l(h-.5,2))*o+.5)&&.5!=f&&(f=f.toFixed(5)-1e-5*o)}return u})).split(/\s*\-\s*/),"linear"==d){var b=o.shift();if(b=-i(b),isNaN(b))return null;var w=[0,0,r.cos(e.rad(b)),r.sin(e.rad(b))],_=1/(a(s(w[2]),s(w[3]))||1);w[2]*=_,w[3]*=_,w[2]<0&&(w[0]=-w[2],w[2]=0),w[3]<0&&(w[1]=-w[3],w[3]=0)}var M=e._parseDots(o);if(!M)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),t.gradient&&c!=t.gradient.id&&(m.defs.removeChild(t.gradient),delete t.gradient),!t.gradient){A=g(d+"Gradient",{id:c}),t.gradient=A,g(A,"radial"==d?{fx:h,fy:f}:{x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientTransform:t.matrix.invert()}),m.defs.appendChild(A);for(var x=0,k=M.length;x<k;x++)A.appendChild(g("stop",{offset:M[x].offset?M[x].offset:x?"100%":"0%","stop-color":M[x].color||"#fff","stop-opacity":isFinite(M[x].opacity)?M[x].opacity:1}))}}return g(p,{fill:v(c),opacity:1,"fill-opacity":1}),y.fill=u,y.opacity=1,y.fillOpacity=1,1},v=function(e){if(function(){var e=document.documentMode;return e&&(9===e||10===e)}())return"url('#"+e+"')";var t=document.location;return"url('"+t.protocol+"//"+t.host+t.pathname+t.search+"#"+e+"')"},A=function(e){var t=e.getBBox(1);g(e.pattern,{patternTransform:e.matrix.invert()+" translate("+t.x+","+t.y+")"})},b=function(i,o,r){if("path"==i.type){for(var a,s,l,d,c,h=n(o).toLowerCase().split("-"),f=i.paper,y=r?"end":"start",v=i.node,A=i.attrs,b=A["stroke-width"],w=h.length,_="classic",M=3,x=3,k=5;w--;)switch(h[w]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":_=h[w];break;case"wide":x=5;break;case"narrow":x=2;break;case"long":M=5;break;case"short":M=2}if("open"==_?(M+=2,x+=2,k+=2,l=1,d=r?4:1,c={fill:"none",stroke:A.stroke}):(d=l=M/2,c={fill:A.stroke,stroke:"none"}),i._.arrows?r?(i._.arrows.endPath&&m[i._.arrows.endPath]--,i._.arrows.endMarker&&m[i._.arrows.endMarker]--):(i._.arrows.startPath&&m[i._.arrows.startPath]--,i._.arrows.startMarker&&m[i._.arrows.startMarker]--):i._.arrows={},"none"!=_){var S="raphael-marker-"+_,C="raphael-marker-"+y+_+M+x+"-obj"+i.id;e._g.doc.getElementById(S)?m[S]++:(f.defs.appendChild(g(g("path"),{"stroke-linecap":"round",d:p[_],id:S})),m[S]=1);var E,L=e._g.doc.getElementById(C);L?(m[C]++,E=L.getElementsByTagName("use")[0]):(L=g(g("marker"),{id:C,markerHeight:x,markerWidth:M,orient:"auto",refX:d,refY:x/2}),E=g(g("use"),{"xlink:href":"#"+S,transform:(r?"rotate(180 "+M/2+" "+x/2+") ":u)+"scale("+M/k+","+x/k+")","stroke-width":(1/((M/k+x/k)/2)).toFixed(4)}),L.appendChild(E),f.defs.appendChild(L),m[C]=1),g(E,c);var T=l*("diamond"!=_&&"oval"!=_);r?(a=i._.arrows.startdx*b||0,s=e.getTotalLength(A.path)-T*b):(a=T*b,s=e.getTotalLength(A.path)-(i._.arrows.enddx*b||0)),(c={})["marker-"+y]="url(#"+C+")",(s||a)&&(c.d=e.getSubpath(A.path,a,s)),g(v,c),i._.arrows[y+"Path"]=S,i._.arrows[y+"Marker"]=C,i._.arrows[y+"dx"]=T,i._.arrows[y+"Type"]=_,i._.arrows[y+"String"]=o}else r?(a=i._.arrows.startdx*b||0,s=e.getTotalLength(A.path)-a):(a=0,s=e.getTotalLength(A.path)-(i._.arrows.enddx*b||0)),i._.arrows[y+"Path"]&&g(v,{d:e.getSubpath(A.path,a,s)}),delete i._.arrows[y+"Path"],delete i._.arrows[y+"Marker"],delete i._.arrows[y+"dx"],delete i._.arrows[y+"Type"],delete i._.arrows[y+"String"];for(c in m)if(m[t](c)&&!m[c]){var D=e._g.doc.getElementById(c);D&&D.parentNode.removeChild(D)}}},w={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},_=function(e,t,i){if(t=w[n(t).toLowerCase()]){for(var o=e.attrs["stroke-width"]||"1",r={round:o,square:o,butt:0}[e.attrs["stroke-linecap"]||i["stroke-linecap"]]||0,a=[],s=t.length;s--;)a[s]=t[s]*o+(s%2?1:-1)*r;g(e.node,{"stroke-dasharray":a.join(",")})}else g(e.node,{"stroke-dasharray":"none"})},M=function(i,r){var l=i.node,c=i.attrs,h=l.style.visibility;for(var p in l.style.visibility="hidden",r)if(r[t](p)){if(!e._availableAttrs[t](p))continue;var m=r[p];switch(c[p]=m,p){case"blur":i.blur(m);break;case"title":var v=l.getElementsByTagName("title");if(v.length&&(v=v[0]))v.firstChild.nodeValue=m;else{v=g("title");var w=e._g.doc.createTextNode(m);v.appendChild(w),l.appendChild(v)}break;case"href":case"target":var M=l.parentNode;if("a"!=M.tagName.toLowerCase()){var k=g("a");M.insertBefore(k,l),k.appendChild(l),M=k}"target"==p?M.setAttributeNS(f,"show","blank"==m?"new":m):M.setAttributeNS(f,p,m);break;case"cursor":l.style.cursor=m;break;case"transform":i.transform(m);break;case"arrow-start":b(i,m);break;case"arrow-end":b(i,m,1);break;case"clip-rect":var S=n(m).split(d);if(4==S.length){i.clip&&i.clip.parentNode.parentNode.removeChild(i.clip.parentNode);var C=g("clipPath"),E=g("rect");C.id=e.createUUID(),g(E,{x:S[0],y:S[1],width:S[2],height:S[3]}),C.appendChild(E),i.paper.defs.appendChild(C),g(l,{"clip-path":"url(#"+C.id+")"}),i.clip=E}if(!m){var L=l.getAttribute("clip-path");if(L){var T=e._g.doc.getElementById(L.replace(/(^url\(#|\)$)/g,u));T&&T.parentNode.removeChild(T),g(l,{"clip-path":u}),delete i.clip}}break;case"path":"path"==i.type&&(g(l,{d:m?c.path=e._pathToAbsolute(m):"M0,0"}),i._.dirty=1,i._.arrows&&("startString"in i._.arrows&&b(i,i._.arrows.startString),"endString"in i._.arrows&&b(i,i._.arrows.endString,1)));break;case"width":if(l.setAttribute(p,m),i._.dirty=1,!c.fx)break;p="x",m=c.x;case"x":c.fx&&(m=-c.x-(c.width||0));case"rx":if("rx"==p&&"rect"==i.type)break;case"cx":l.setAttribute(p,m),i.pattern&&A(i),i._.dirty=1;break;case"height":if(l.setAttribute(p,m),i._.dirty=1,!c.fy)break;p="y",m=c.y;case"y":c.fy&&(m=-c.y-(c.height||0));case"ry":if("ry"==p&&"rect"==i.type)break;case"cy":l.setAttribute(p,m),i.pattern&&A(i),i._.dirty=1;break;case"r":"rect"==i.type?g(l,{rx:m,ry:m}):l.setAttribute(p,m),i._.dirty=1;break;case"src":"image"==i.type&&l.setAttributeNS(f,"href",m);break;case"stroke-width":1==i._.sx&&1==i._.sy||(m/=a(s(i._.sx),s(i._.sy))||1),l.setAttribute(p,m),c["stroke-dasharray"]&&_(i,c["stroke-dasharray"],r),i._.arrows&&("startString"in i._.arrows&&b(i,i._.arrows.startString),"endString"in i._.arrows&&b(i,i._.arrows.endString,1));break;case"stroke-dasharray":_(i,m,r);break;case"fill":var D=n(m).match(e._ISURL);if(D){C=g("pattern");var Y=g("image");C.id=e.createUUID(),g(C,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),g(Y,{x:0,y:0,"xlink:href":D[1]}),C.appendChild(Y),function(t){e._preload(D[1],function(){var e=this.offsetWidth,n=this.offsetHeight;g(t,{width:e,height:n}),g(Y,{width:e,height:n})})}(C),i.paper.defs.appendChild(C),g(l,{fill:"url(#"+C.id+")"}),i.pattern=C,i.pattern&&A(i);break}var R=e.getRGB(m);if(R.error){if(("circle"==i.type||"ellipse"==i.type||"r"!=n(m).charAt())&&y(i,m)){if("opacity"in c||"fill-opacity"in c){var B=e._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,u));if(B){var O=B.getElementsByTagName("stop");g(O[O.length-1],{"stop-opacity":("opacity"in c?c.opacity:1)*("fill-opacity"in c?c["fill-opacity"]:1)})}}c.gradient=m,c.fill="none";break}}else delete r.gradient,delete c.gradient,!e.is(c.opacity,"undefined")&&e.is(r.opacity,"undefined")&&g(l,{opacity:c.opacity}),!e.is(c["fill-opacity"],"undefined")&&e.is(r["fill-opacity"],"undefined")&&g(l,{"fill-opacity":c["fill-opacity"]});R[t]("opacity")&&g(l,{"fill-opacity":R.opacity>1?R.opacity/100:R.opacity});case"stroke":R=e.getRGB(m),l.setAttribute(p,R.hex),"stroke"==p&&R[t]("opacity")&&g(l,{"stroke-opacity":R.opacity>1?R.opacity/100:R.opacity}),"stroke"==p&&i._.arrows&&("startString"in i._.arrows&&b(i,i._.arrows.startString),"endString"in i._.arrows&&b(i,i._.arrows.endString,1));break;case"gradient":("circle"==i.type||"ellipse"==i.type||"r"!=n(m).charAt())&&y(i,m);break;case"opacity":c.gradient&&!c[t]("stroke-opacity")&&g(l,{"stroke-opacity":m>1?m/100:m});case"fill-opacity":if(c.gradient){(B=e._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,u)))&&(O=B.getElementsByTagName("stop"),g(O[O.length-1],{"stop-opacity":m}));break}default:"font-size"==p&&(m=o(m,10)+"px");var H=p.replace(/(\-.)/g,function(e){return e.substring(1).toUpperCase()});l.style[H]=m,i._.dirty=1,l.setAttribute(p,m)}}x(i,r),l.style.visibility=h},x=function(i,r){if("text"==i.type&&(r[t]("text")||r[t]("font")||r[t]("font-size")||r[t]("x")||r[t]("y"))){var a=i.attrs,s=i.node,l=s.firstChild?o(e._g.doc.defaultView.getComputedStyle(s.firstChild,u).getPropertyValue("font-size"),10):10;if(r[t]("text")){for(a.text=r.text;s.firstChild;)s.removeChild(s.firstChild);for(var d,c=n(r.text).split("\n"),h=[],f=0,p=c.length;f<p;f++)d=g("tspan"),f&&g(d,{dy:1.2*l,x:a.x}),d.appendChild(e._g.doc.createTextNode(c[f])),s.appendChild(d),h[f]=d}else for(f=0,p=(h=s.getElementsByTagName("tspan")).length;f<p;f++)f?g(h[f],{dy:1.2*l,x:a.x}):g(h[0],{dy:0});g(s,{x:a.x,y:a.y}),i._.dirty=1;var m=i._getBBox(),y=a.y-(m.y+m.height/2);y&&e.is(y,"finite")&&g(h[0],{dy:y})}},k=function(e){return e.parentNode&&"a"===e.parentNode.tagName.toLowerCase()?e.parentNode:e},S=function(t,n){this[0]=this.node=t,t.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),t.raphaelid=this.id,this.matrix=e.matrix(),this.realPath=null,this.paper=n,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!n.bottom&&(n.bottom=this),this.prev=n.top,n.top&&(n.top.next=this),n.top=this,this.next=null},C=e.el;S.prototype=C,C.constructor=S,e._engine.path=function(e,t){var n=g("path");t.canvas&&t.canvas.appendChild(n);var i=new S(n,t);return i.type="path",M(i,{fill:"none",stroke:"#000",path:e}),i},C.rotate=function(e,t,o){if(this.removed)return this;if((e=n(e).split(d)).length-1&&(t=i(e[1]),o=i(e[2])),e=i(e[0]),null==o&&(t=o),null==t||null==o){var r=this.getBBox(1);t=r.x+r.width/2,o=r.y+r.height/2}return this.transform(this._.transform.concat([["r",e,t,o]])),this},C.scale=function(e,t,o,r){if(this.removed)return this;if((e=n(e).split(d)).length-1&&(t=i(e[1]),o=i(e[2]),r=i(e[3])),e=i(e[0]),null==t&&(t=e),null==r&&(o=r),null==o||null==r)var a=this.getBBox(1);return o=null==o?a.x+a.width/2:o,r=null==r?a.y+a.height/2:r,this.transform(this._.transform.concat([["s",e,t,o,r]])),this},C.translate=function(e,t){return this.removed?this:((e=n(e).split(d)).length-1&&(t=i(e[1])),e=i(e[0])||0,t=+t||0,this.transform(this._.transform.concat([["t",e,t]])),this)},C.transform=function(n){var i=this._;if(null==n)return i.transform;if(e._extractTransform(this,n),this.clip&&g(this.clip,{transform:this.matrix.invert()}),this.pattern&&A(this),this.node&&g(this.node,{transform:this.matrix}),1!=i.sx||1!=i.sy){var o=this.attrs[t]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":o})}return this},C.hide=function(){return this.removed||(this.node.style.display="none"),this},C.show=function(){return this.removed||(this.node.style.display=""),this},C.remove=function(){var t=k(this.node);if(!this.removed&&t.parentNode){var n=this.paper;for(var i in n.__set__&&n.__set__.exclude(this),c.unbind("raphael.*.*."+this.id),this.gradient&&n.defs.removeChild(this.gradient),e._tear(this,n),t.parentNode.removeChild(t),this.removeData(),this)this[i]="function"==typeof this[i]?e._removedFactory(i):null;this.removed=!0}},C._getBBox=function(){if("none"==this.node.style.display){this.show();var e=!0}var t,n=!1;this.paper.canvas.parentElement?t=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(t=this.paper.canvas.parentNode.style),t&&"none"==t.display&&(n=!0,t.display="");var i={};try{i=this.node.getBBox()}catch(e){i={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{i=i||{},n&&(t.display="none")}return e&&this.hide(),i},C.attr=function(n,i){if(this.removed)return this;if(null==n){var o={};for(var r in this.attrs)this.attrs[t](r)&&(o[r]=this.attrs[r]);return o.gradient&&"none"==o.fill&&(o.fill=o.gradient)&&delete o.gradient,o.transform=this._.transform,o}if(null==i&&e.is(n,"string")){if("fill"==n&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==n)return this._.transform;for(var a=n.split(d),s={},l=0,u=a.length;l<u;l++)(n=a[l])in this.attrs?s[n]=this.attrs[n]:e.is(this.paper.customAttributes[n],"function")?s[n]=this.paper.customAttributes[n].def:s[n]=e._availableAttrs[n];return u-1?s:s[a[0]]}if(null==i&&e.is(n,"array")){for(s={},l=0,u=n.length;l<u;l++)s[n[l]]=this.attr(n[l]);return s}if(null!=i){var h={};h[n]=i}else null!=n&&e.is(n,"object")&&(h=n);for(var f in h)c("raphael.attr."+f+"."+this.id,this,h[f]);for(f in this.paper.customAttributes)if(this.paper.customAttributes[t](f)&&h[t](f)&&e.is(this.paper.customAttributes[f],"function")){var p=this.paper.customAttributes[f].apply(this,[].concat(h[f]));for(var m in this.attrs[f]=h[f],p)p[t](m)&&(h[m]=p[m])}return M(this,h),this},C.toFront=function(){if(this.removed)return this;var t=k(this.node);t.parentNode.appendChild(t);var n=this.paper;return n.top!=this&&e._tofront(this,n),this},C.toBack=function(){if(this.removed)return this;var t=k(this.node),n=t.parentNode;return n.insertBefore(t,n.firstChild),e._toback(this,this.paper),this.paper,this},C.insertAfter=function(t){if(this.removed||!t)return this;var n=k(this.node),i=k(t.node||t[t.length-1].node);return i.nextSibling?i.parentNode.insertBefore(n,i.nextSibling):i.parentNode.appendChild(n),e._insertafter(this,t,this.paper),this},C.insertBefore=function(t){if(this.removed||!t)return this;var n=k(this.node),i=k(t.node||t[0].node);return i.parentNode.insertBefore(n,i),e._insertbefore(this,t,this.paper),this},C.blur=function(t){var n=this;if(0!=+t){var i=g("filter"),o=g("feGaussianBlur");n.attrs.blur=t,i.id=e.createUUID(),g(o,{stdDeviation:+t||1.5}),i.appendChild(o),n.paper.defs.appendChild(i),n._blur=i,g(n.node,{filter:"url(#"+i.id+")"})}else n._blur&&(n._blur.parentNode.removeChild(n._blur),delete n._blur,delete n.attrs.blur),n.node.removeAttribute("filter");return n},e._engine.circle=function(e,t,n,i){var o=g("circle");e.canvas&&e.canvas.appendChild(o);var r=new S(o,e);return r.attrs={cx:t,cy:n,r:i,fill:"none",stroke:"#000"},r.type="circle",g(o,r.attrs),r},e._engine.rect=function(e,t,n,i,o,r){var a=g("rect");e.canvas&&e.canvas.appendChild(a);var s=new S(a,e);return s.attrs={x:t,y:n,width:i,height:o,rx:r||0,ry:r||0,fill:"none",stroke:"#000"},s.type="rect",g(a,s.attrs),s},e._engine.ellipse=function(e,t,n,i,o){var r=g("ellipse");e.canvas&&e.canvas.appendChild(r);var a=new S(r,e);return a.attrs={cx:t,cy:n,rx:i,ry:o,fill:"none",stroke:"#000"},a.type="ellipse",g(r,a.attrs),a},e._engine.image=function(e,t,n,i,o,r){var a=g("image");g(a,{x:n,y:i,width:o,height:r,preserveAspectRatio:"none"}),a.setAttributeNS(f,"href",t),e.canvas&&e.canvas.appendChild(a);var s=new S(a,e);return s.attrs={x:n,y:i,width:o,height:r,src:t},s.type="image",s},e._engine.text=function(t,n,i,o){var r=g("text");t.canvas&&t.canvas.appendChild(r);var a=new S(r,t);return a.attrs={x:n,y:i,"text-anchor":"middle",text:o,"font-family":e._availableAttrs["font-family"],"font-size":e._availableAttrs["font-size"],stroke:"none",fill:"#000"},a.type="text",M(a,a.attrs),a},e._engine.setSize=function(e,t){return this.width=e||this.width,this.height=t||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},e._engine.create=function(){var t=e._getContainer.apply(0,arguments),n=t&&t.container,i=t.x,o=t.y,r=t.width,a=t.height;if(!n)throw new Error("SVG container not found.");var s,l=g("svg"),d="overflow:hidden;";return i=i||0,o=o||0,r=r||512,g(l,{height:a=a||342,version:1.1,width:r,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),1==n?(l.style.cssText=d+"position:absolute;left:"+i+"px;top:"+o+"px",e._g.doc.body.appendChild(l),s=1):(l.style.cssText=d+"position:relative",n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l)),(n=new e._Paper).width=r,n.height=a,n.canvas=l,n.clear(),n._left=n._top=0,s&&(n.renderfix=function(){}),n.renderfix(),n},e._engine.setViewBox=function(e,t,n,i,o){c("raphael.setViewBox",this,this._viewBox,[e,t,n,i,o]);var r,s,l=this.getSize(),d=a(n/l.width,i/l.height),u=this.top,f=o?"xMidYMid meet":"xMinYMin";for(null==e?(this._vbSize&&(d=1),delete this._vbSize,r="0 0 "+this.width+h+this.height):(this._vbSize=d,r=e+h+t+h+n+h+i),g(this.canvas,{viewBox:r,preserveAspectRatio:f});d&&u;)s="stroke-width"in u.attrs?u.attrs["stroke-width"]:1,u.attr({"stroke-width":s}),u._.dirty=1,u._.dirtyT=1,u=u.prev;return this._viewBox=[e,t,n,i,!!o],this},e.prototype.renderfix=function(){var e,t=this.canvas,n=t.style;try{e=t.getScreenCTM()||t.createSVGMatrix()}catch(n){e=t.createSVGMatrix()}var i=-e.e%1,o=-e.f%1;(i||o)&&(i&&(this._left=(this._left+i)%1,n.left=this._left+"px"),o&&(this._top=(this._top+o)%1,n.top=this._top+"px"))},e.prototype.clear=function(){e.eve("raphael.clear",this);for(var t=this.canvas;t.firstChild;)t.removeChild(t.firstChild);this.bottom=this.top=null,(this.desc=g("desc")).appendChild(e._g.doc.createTextNode("Created with Raphaël "+e.version)),t.appendChild(this.desc),t.appendChild(this.defs=g("defs"))},e.prototype.remove=function(){for(var t in c("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[t]="function"==typeof this[t]?e._removedFactory(t):null};var E=e.st;for(var L in C)C[t](L)&&!E[t](L)&&(E[L]=function(e){return function(){var t=arguments;return this.forEach(function(n){n[e].apply(n,t)})}}(L))}}.apply(t,i))||(e.exports=o)},function(e,t,n){var i,o;i=[n(1)],void 0===(o=function(e){if(!e||e.vml){var t="hasOwnProperty",n=String,i=parseFloat,o=Math,r=o.round,a=o.max,s=o.min,l=o.abs,d="fill",c=/[, ]+/,u=e.eve,h=" ",f="",p={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},m=/([clmz]),?([^clmz]*)/gi,g=/ progid:\S+Blur\([^\)]+\)/g,y=/-?[^,\s-]+/g,v="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",A=21600,b={path:1,rect:1,image:1},w={circle:1,ellipse:1},_=function(t){var i=/[ahqstv]/gi,o=e._pathToAbsolute;if(n(t).match(i)&&(o=e._path2curve),i=/[clmz]/g,o==e._pathToAbsolute&&!n(t).match(i)){var a=n(t).replace(m,function(e,t,n){var i=[],o="m"==t.toLowerCase(),a=p[t];return n.replace(y,function(e){o&&2==i.length&&(a+=i+p["m"==t?"l":"L"],i=[]),i.push(r(e*A))}),a+i});return a}var s,l,d=o(t);a=[];for(var c=0,u=d.length;c<u;c++){s=d[c],"z"==(l=d[c][0].toLowerCase())&&(l="x");for(var g=1,v=s.length;g<v;g++)l+=r(s[g]*A)+(g!=v-1?",":f);a.push(l)}return a.join(h)},M=function(t,n,i){var o=e.matrix();return o.rotate(-t,.5,.5),{dx:o.x(n,i),dy:o.y(n,i)}},x=function(e,t,n,i,o,r){var a=e._,s=e.matrix,c=a.fillpos,u=e.node,f=u.style,p=1,m="",g=A/t,y=A/n;if(f.visibility="hidden",t&&n){if(u.coordsize=l(g)+h+l(y),f.rotation=r*(t*n<0?-1:1),r){var v=M(r,i,o);i=v.dx,o=v.dy}if(t<0&&(m+="x"),n<0&&(m+=" y")&&(p=-1),f.flip=m,u.coordorigin=i*-g+h+o*-y,c||a.fillsize){var b=u.getElementsByTagName(d);b=b&&b[0],u.removeChild(b),c&&(v=M(r,s.x(c[0],c[1]),s.y(c[0],c[1])),b.position=v.dx*p+h+v.dy*p),a.fillsize&&(b.size=a.fillsize[0]*l(t)+h+a.fillsize[1]*l(n)),u.appendChild(b)}f.visibility="visible"}};e.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var k,S=function(e,t,i){for(var o=n(t).toLowerCase().split("-"),r=i?"end":"start",a=o.length,s="classic",l="medium",d="medium";a--;)switch(o[a]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":s=o[a];break;case"wide":case"narrow":d=o[a];break;case"long":case"short":l=o[a]}var c=e.node.getElementsByTagName("stroke")[0];c[r+"arrow"]=s,c[r+"arrowlength"]=l,c[r+"arrowwidth"]=d},C=function(o,l){o.attrs=o.attrs||{};var u=o.node,p=o.attrs,m=u.style,g=b[o.type]&&(l.x!=p.x||l.y!=p.y||l.width!=p.width||l.height!=p.height||l.cx!=p.cx||l.cy!=p.cy||l.rx!=p.rx||l.ry!=p.ry||l.r!=p.r),y=w[o.type]&&(p.cx!=l.cx||p.cy!=l.cy||p.r!=l.r||p.rx!=l.rx||p.ry!=l.ry),v=o;for(var M in l)l[t](M)&&(p[M]=l[M]);if(g&&(p.path=e._getPath[o.type](o),o._.dirty=1),l.href&&(u.href=l.href),l.title&&(u.title=l.title),l.target&&(u.target=l.target),l.cursor&&(m.cursor=l.cursor),"blur"in l&&o.blur(l.blur),(l.path&&"path"==o.type||g)&&(u.path=_(~n(p.path).toLowerCase().indexOf("r")?e._pathToAbsolute(p.path):p.path),o._.dirty=1,"image"==o.type&&(o._.fillpos=[p.x,p.y],o._.fillsize=[p.width,p.height],x(o,1,1,0,0,0))),"transform"in l&&o.transform(l.transform),y){var C=+p.cx,L=+p.cy,T=+p.rx||+p.r||0,D=+p.ry||+p.r||0;u.path=e.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",r((C-T)*A),r((L-D)*A),r((C+T)*A),r((L+D)*A),r(C*A)),o._.dirty=1}if("clip-rect"in l){var Y=n(l["clip-rect"]).split(c);if(4==Y.length){Y[2]=+Y[2]+ +Y[0],Y[3]=+Y[3]+ +Y[1];var R=u.clipRect||e._g.doc.createElement("div"),B=R.style;B.clip=e.format("rect({1}px {2}px {3}px {0}px)",Y),u.clipRect||(B.position="absolute",B.top=0,B.left=0,B.width=o.paper.width+"px",B.height=o.paper.height+"px",u.parentNode.insertBefore(R,u),R.appendChild(u),u.clipRect=R)}l["clip-rect"]||u.clipRect&&(u.clipRect.style.clip="auto")}if(o.textpath){var O=o.textpath.style;l.font&&(O.font=l.font),l["font-family"]&&(O.fontFamily='"'+l["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,f)+'"'),l["font-size"]&&(O.fontSize=l["font-size"]),l["font-weight"]&&(O.fontWeight=l["font-weight"]),l["font-style"]&&(O.fontStyle=l["font-style"])}if("arrow-start"in l&&S(v,l["arrow-start"]),"arrow-end"in l&&S(v,l["arrow-end"],1),null!=l.opacity||null!=l.fill||null!=l.src||null!=l.stroke||null!=l["stroke-width"]||null!=l["stroke-opacity"]||null!=l["fill-opacity"]||null!=l["stroke-dasharray"]||null!=l["stroke-miterlimit"]||null!=l["stroke-linejoin"]||null!=l["stroke-linecap"]){var H=u.getElementsByTagName(d);if(!(H=H&&H[0])&&(H=k(d)),"image"==o.type&&l.src&&(H.src=l.src),l.fill&&(H.on=!0),null!=H.on&&"none"!=l.fill&&null!==l.fill||(H.on=!1),H.on&&l.fill){var P=n(l.fill).match(e._ISURL);if(P){H.parentNode==u&&u.removeChild(H),H.rotate=!0,H.src=P[1],H.type="tile";var I=o.getBBox(1);H.position=I.x+h+I.y,o._.fillpos=[I.x,I.y],e._preload(P[1],function(){o._.fillsize=[this.offsetWidth,this.offsetHeight]})}else H.color=e.getRGB(l.fill).hex,H.src=f,H.type="solid",e.getRGB(l.fill).error&&(v.type in{circle:1,ellipse:1}||"r"!=n(l.fill).charAt())&&E(v,l.fill,H)&&(p.fill="none",p.gradient=l.fill,H.rotate=!1)}if("fill-opacity"in l||"opacity"in l){var j=((+p["fill-opacity"]+1||2)-1)*((+p.opacity+1||2)-1)*((+e.getRGB(l.fill).o+1||2)-1);j=s(a(j,0),1),H.opacity=j,H.src&&(H.color="none")}u.appendChild(H);var F=u.getElementsByTagName("stroke")&&u.getElementsByTagName("stroke")[0],N=!1;!F&&(N=F=k("stroke")),(l.stroke&&"none"!=l.stroke||l["stroke-width"]||null!=l["stroke-opacity"]||l["stroke-dasharray"]||l["stroke-miterlimit"]||l["stroke-linejoin"]||l["stroke-linecap"])&&(F.on=!0),("none"==l.stroke||null===l.stroke||null==F.on||0==l.stroke||0==l["stroke-width"])&&(F.on=!1);var z=e.getRGB(l.stroke);F.on&&l.stroke&&(F.color=z.hex),j=((+p["stroke-opacity"]+1||2)-1)*((+p.opacity+1||2)-1)*((+z.o+1||2)-1);var W=.75*(i(l["stroke-width"])||1);if(j=s(a(j,0),1),null==l["stroke-width"]&&(W=p["stroke-width"]),l["stroke-width"]&&(F.weight=W),W&&W<1&&(j*=W)&&(F.weight=1),F.opacity=j,l["stroke-linejoin"]&&(F.joinstyle=l["stroke-linejoin"]||"miter"),F.miterlimit=l["stroke-miterlimit"]||8,l["stroke-linecap"]&&(F.endcap="butt"==l["stroke-linecap"]?"flat":"square"==l["stroke-linecap"]?"square":"round"),"stroke-dasharray"in l){var $={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};F.dashstyle=$[t](l["stroke-dasharray"])?$[l["stroke-dasharray"]]:f}N&&u.appendChild(F)}if("text"==v.type){v.paper.canvas.style.display=f;var U=v.paper.span,Q=p.font&&p.font.match(/\d+(?:\.\d*)?(?=px)/);m=U.style,p.font&&(m.font=p.font),p["font-family"]&&(m.fontFamily=p["font-family"]),p["font-weight"]&&(m.fontWeight=p["font-weight"]),p["font-style"]&&(m.fontStyle=p["font-style"]),Q=i(p["font-size"]||Q&&Q[0])||10,m.fontSize=100*Q+"px",v.textpath.string&&(U.innerHTML=n(v.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var G=U.getBoundingClientRect();v.W=p.w=(G.right-G.left)/100,v.H=p.h=(G.bottom-G.top)/100,v.X=p.x,v.Y=p.y+v.H/2,("x"in l||"y"in l)&&(v.path.v=e.format("m{0},{1}l{2},{1}",r(p.x*A),r(p.y*A),r(p.x*A)+1));for(var V=["x","y","text","font","font-family","font-weight","font-style","font-size"],J=0,K=V.length;J<K;J++)if(V[J]in l){v._.dirty=1;break}switch(p["text-anchor"]){case"start":v.textpath.style["v-text-align"]="left",v.bbx=v.W/2;break;case"end":v.textpath.style["v-text-align"]="right",v.bbx=-v.W/2;break;default:v.textpath.style["v-text-align"]="center",v.bbx=0}v.textpath.style["v-text-kern"]=!0}},E=function(t,r,a){t.attrs=t.attrs||{},t.attrs;var s=Math.pow,l="linear",d=".5 .5";if(t.attrs.gradient=r,r=(r=n(r).replace(e._radial_gradient,function(e,t,n){return l="radial",t&&n&&(t=i(t),n=i(n),s(t-.5,2)+s(n-.5,2)>.25&&(n=o.sqrt(.25-s(t-.5,2))*(2*(n>.5)-1)+.5),d=t+h+n),f})).split(/\s*\-\s*/),"linear"==l){var c=r.shift();if(c=-i(c),isNaN(c))return null}var u=e._parseDots(r);if(!u)return null;if(t=t.shape||t.node,u.length){t.removeChild(a),a.on=!0,a.method="none",a.color=u[0].color,a.color2=u[u.length-1].color;for(var p=[],m=0,g=u.length;m<g;m++)u[m].offset&&p.push(u[m].offset+h+u[m].color);a.colors=p.length?p.join():"0% "+a.color,"radial"==l?(a.type="gradientTitle",a.focus="100%",a.focussize="0 0",a.focusposition=d,a.angle=0):(a.type="gradient",a.angle=(270-c)%360),t.appendChild(a)}return 1},L=function(t,n){this[0]=this.node=t,t.raphael=!0,this.id=e._oid++,t.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=n,this.matrix=e.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!n.bottom&&(n.bottom=this),this.prev=n.top,n.top&&(n.top.next=this),n.top=this,this.next=null},T=e.el;L.prototype=T,T.constructor=L,T.transform=function(t){if(null==t)return this._.transform;var i,o=this.paper._viewBoxShift,r=o?"s"+[o.scale,o.scale]+"-1-1t"+[o.dx,o.dy]:f;o&&(i=t=n(t).replace(/\.{3}|\u2026/g,this._.transform||f)),e._extractTransform(this,r+t);var a,s=this.matrix.clone(),l=this.skew,d=this.node,c=~n(this.attrs.fill).indexOf("-"),u=!n(this.attrs.fill).indexOf("url(");if(s.translate(1,1),u||c||"image"==this.type)if(l.matrix="1 0 0 1",l.offset="0 0",a=s.split(),c&&a.noRotation||!a.isSimple){d.style.filter=s.toFilter();var p=this.getBBox(),m=this.getBBox(1),g=p.x-m.x,y=p.y-m.y;d.coordorigin=g*-A+h+y*-A,x(this,1,1,g,y,0)}else d.style.filter=f,x(this,a.scalex,a.scaley,a.dx,a.dy,a.rotate);else d.style.filter=f,l.matrix=n(s),l.offset=s.offset();return null!==i&&(this._.transform=i,e._extractTransform(this,i)),this},T.rotate=function(e,t,o){if(this.removed)return this;if(null!=e){if((e=n(e).split(c)).length-1&&(t=i(e[1]),o=i(e[2])),e=i(e[0]),null==o&&(t=o),null==t||null==o){var r=this.getBBox(1);t=r.x+r.width/2,o=r.y+r.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",e,t,o]])),this}},T.translate=function(e,t){return this.removed?this:((e=n(e).split(c)).length-1&&(t=i(e[1])),e=i(e[0])||0,t=+t||0,this._.bbox&&(this._.bbox.x+=e,this._.bbox.y+=t),this.transform(this._.transform.concat([["t",e,t]])),this)},T.scale=function(e,t,o,r){if(this.removed)return this;if((e=n(e).split(c)).length-1&&(t=i(e[1]),o=i(e[2]),r=i(e[3]),isNaN(o)&&(o=null),isNaN(r)&&(r=null)),e=i(e[0]),null==t&&(t=e),null==r&&(o=r),null==o||null==r)var a=this.getBBox(1);return o=null==o?a.x+a.width/2:o,r=null==r?a.y+a.height/2:r,this.transform(this._.transform.concat([["s",e,t,o,r]])),this._.dirtyT=1,this},T.hide=function(){return!this.removed&&(this.node.style.display="none"),this},T.show=function(){return!this.removed&&(this.node.style.display=f),this},T.auxGetBBox=e.el.getBBox,T.getBBox=function(){var e=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var t={},n=1/this.paper._viewBoxShift.scale;return t.x=e.x-this.paper._viewBoxShift.dx,t.x*=n,t.y=e.y-this.paper._viewBoxShift.dy,t.y*=n,t.width=e.width*n,t.height=e.height*n,t.x2=t.x+t.width,t.y2=t.y+t.height,t}return e},T._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},T.remove=function(){if(!this.removed&&this.node.parentNode){for(var t in this.paper.__set__&&this.paper.__set__.exclude(this),e.eve.unbind("raphael.*.*."+this.id),e._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[t]="function"==typeof this[t]?e._removedFactory(t):null;this.removed=!0}},T.attr=function(n,i){if(this.removed)return this;if(null==n){var o={};for(var r in this.attrs)this.attrs[t](r)&&(o[r]=this.attrs[r]);return o.gradient&&"none"==o.fill&&(o.fill=o.gradient)&&delete o.gradient,o.transform=this._.transform,o}if(null==i&&e.is(n,"string")){if(n==d&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var a=n.split(c),s={},l=0,h=a.length;l<h;l++)(n=a[l])in this.attrs?s[n]=this.attrs[n]:e.is(this.paper.customAttributes[n],"function")?s[n]=this.paper.customAttributes[n].def:s[n]=e._availableAttrs[n];return h-1?s:s[a[0]]}if(this.attrs&&null==i&&e.is(n,"array")){for(s={},l=0,h=n.length;l<h;l++)s[n[l]]=this.attr(n[l]);return s}var f;for(var p in null!=i&&((f={})[n]=i),null==i&&e.is(n,"object")&&(f=n),f)u("raphael.attr."+p+"."+this.id,this,f[p]);if(f){for(p in this.paper.customAttributes)if(this.paper.customAttributes[t](p)&&f[t](p)&&e.is(this.paper.customAttributes[p],"function")){var m=this.paper.customAttributes[p].apply(this,[].concat(f[p]));for(var g in this.attrs[p]=f[p],m)m[t](g)&&(f[g]=m[g])}f.text&&"text"==this.type&&(this.textpath.string=f.text),C(this,f)}return this},T.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&e._tofront(this,this.paper),this},T.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),e._toback(this,this.paper)),this)},T.insertAfter=function(t){return this.removed?this:(t.constructor==e.st.constructor&&(t=t[t.length-1]),t.node.nextSibling?t.node.parentNode.insertBefore(this.node,t.node.nextSibling):t.node.parentNode.appendChild(this.node),e._insertafter(this,t,this.paper),this)},T.insertBefore=function(t){return this.removed?this:(t.constructor==e.st.constructor&&(t=t[0]),t.node.parentNode.insertBefore(this.node,t.node),e._insertbefore(this,t,this.paper),this)},T.blur=function(t){var n=this.node.runtimeStyle,i=n.filter;return i=i.replace(g,f),0!=+t?(this.attrs.blur=t,n.filter=i+h+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+t||1.5)+")",n.margin=e.format("-{0}px 0 0 -{0}px",r(+t||1.5))):(n.filter=i,n.margin=0,delete this.attrs.blur),this},e._engine.path=function(e,t){var n=k("shape");n.style.cssText=v,n.coordsize=A+h+A,n.coordorigin=t.coordorigin;var i=new L(n,t),o={fill:"none",stroke:"#000"};e&&(o.path=e),i.type="path",i.path=[],i.Path=f,C(i,o),t.canvas&&t.canvas.appendChild(n);var r=k("skew");return r.on=!0,n.appendChild(r),i.skew=r,i.transform(f),i},e._engine.rect=function(t,n,i,o,r,a){var s=e._rectPath(n,i,o,r,a),l=t.path(s),d=l.attrs;return l.X=d.x=n,l.Y=d.y=i,l.W=d.width=o,l.H=d.height=r,d.r=a,d.path=s,l.type="rect",l},e._engine.ellipse=function(e,t,n,i,o){var r=e.path();return r.attrs,r.X=t-i,r.Y=n-o,r.W=2*i,r.H=2*o,r.type="ellipse",C(r,{cx:t,cy:n,rx:i,ry:o}),r},e._engine.circle=function(e,t,n,i){var o=e.path();return o.attrs,o.X=t-i,o.Y=n-i,o.W=o.H=2*i,o.type="circle",C(o,{cx:t,cy:n,r:i}),o},e._engine.image=function(t,n,i,o,r,a){var s=e._rectPath(i,o,r,a),l=t.path(s).attr({stroke:"none"}),c=l.attrs,u=l.node,h=u.getElementsByTagName(d)[0];return c.src=n,l.X=c.x=i,l.Y=c.y=o,l.W=c.width=r,l.H=c.height=a,c.path=s,l.type="image",h.parentNode==u&&u.removeChild(h),h.rotate=!0,h.src=n,h.type="tile",l._.fillpos=[i,o],l._.fillsize=[r,a],u.appendChild(h),x(l,1,1,0,0,0),l},e._engine.text=function(t,i,o,a){var s=k("shape"),l=k("path"),d=k("textpath");i=i||0,o=o||0,a=a||"",l.v=e.format("m{0},{1}l{2},{1}",r(i*A),r(o*A),r(i*A)+1),l.textpathok=!0,d.string=n(a),d.on=!0,s.style.cssText=v,s.coordsize=A+h+A,s.coordorigin="0 0";var c=new L(s,t),u={fill:"#000",stroke:"none",font:e._availableAttrs.font,text:a};c.shape=s,c.path=l,c.textpath=d,c.type="text",c.attrs.text=n(a),c.attrs.x=i,c.attrs.y=o,c.attrs.w=1,c.attrs.h=1,C(c,u),s.appendChild(d),s.appendChild(l),t.canvas.appendChild(s);var p=k("skew");return p.on=!0,s.appendChild(p),c.skew=p,c.transform(f),c},e._engine.setSize=function(t,n){var i=this.canvas.style;return this.width=t,this.height=n,t==+t&&(t+="px"),n==+n&&(n+="px"),i.width=t,i.height=n,i.clip="rect(0 "+t+" "+n+" 0)",this._viewBox&&e._engine.setViewBox.apply(this,this._viewBox),this},e._engine.setViewBox=function(t,n,i,o,r){e.eve("raphael.setViewBox",this,this._viewBox,[t,n,i,o,r]);var a,s,l=this.getSize(),d=l.width,c=l.height;return r&&(s=d/i,i*(a=c/o)<d&&(t-=(d-i*a)/2/a),o*s<c&&(n-=(c-o*s)/2/s)),this._viewBox=[t,n,i,o,!!r],this._viewBoxShift={dx:-t,dy:-n,scale:l},this.forEach(function(e){e.transform("...")}),this},e._engine.initWin=function(e){var t=e.document;t.styleSheets.length<31?t.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):t.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!t.namespaces.rvml&&t.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),k=function(e){return t.createElement("<rvml:"+e+' class="rvml">')}}catch(e){k=function(e){return t.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},e._engine.initWin(e._g.win),e._engine.create=function(){var t=e._getContainer.apply(0,arguments),n=t.container,i=t.height,o=t.width,r=t.x,a=t.y;if(!n)throw new Error("VML container not found.");var s=new e._Paper,l=s.canvas=e._g.doc.createElement("div"),d=l.style;return r=r||0,a=a||0,o=o||512,i=i||342,s.width=o,s.height=i,o==+o&&(o+="px"),i==+i&&(i+="px"),s.coordsize=216e5+h+216e5,s.coordorigin="0 0",s.span=e._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(s.span),d.cssText=e.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",o,i),1==n?(e._g.doc.body.appendChild(l),d.left=r+"px",d.top=a+"px",d.position="absolute"):n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l),s.renderfix=function(){},s},e.prototype.clear=function(){e.eve("raphael.clear",this),this.canvas.innerHTML=f,this.span=e._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},e.prototype.remove=function(){for(var t in e.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[t]="function"==typeof this[t]?e._removedFactory(t):null;return!0};var D=e.st;for(var Y in T)T[t](Y)&&!D[t](Y)&&(D[Y]=function(e){return function(){var t=arguments;return this.forEach(function(n){n[e].apply(n,t)})}}(Y))}}.apply(t,i))||(e.exports=o)}])},e.exports=i()},,,function(e,t,n){"use strict";n.r(t),n(574),n(569),n(567),n(565),n(563),n(561),n(559),n(557),n(553),n(551),n(549),n(235),n(548);var i=n(2);var o=n(0),r=n(377),a=n.n(r),s=n(376),l=n.n(s);class d{constructor(e,t,n,i,o){if(this.context=e,this.hot=e.hot,this.rowIndex=t,this.colIndex=n,this.slashData=[],o)for(let e of o.split("|"))this.slashData.push(e);this.refreshCell(i)}refreshCell(e){const t=$(this.hot.getCell(this.rowIndex,this.colIndex));this.rowSpan=t.prop("rowspan"),this.colSpan=t.prop("colspan"),this.width=-2,this.height=-4;const n=this.rowIndex,i=this.rowIndex+this.rowSpan;for(let e=n;e<i;e++)this.height+=this.hot.getRowHeight(e);const o=this.colIndex,r=this.colIndex+this.colSpan;for(let e=o;e<r;e++)this.width+=this.hot.getColWidth(e);e||this._buildSlashes()}_buildSlashes(){const e=this.colIndex,t=this.colIndex+this.colSpan;let n=0;for(let i=e;i<t;i++)n+=this.hot.getColWidth(i);let i=0;const o=this.rowIndex,r=this.rowIndex+this.rowSpan;for(let e=o;e<r;e++)i+=this.hot.getRowHeight(e);const a=this.slashData.length;let s=1;const l=[];for(let e=0;e<this.rowSpan;e++){let t=0;for(let n=0;n<e;n++)t+=this.hot.getRowHeight(n);0===e||e+1<this.rowSpan?t+=8:t-=3;let i="项目"+s;if(a>0&&s-1>=a)break;a>0&&(i=this.slashData[s-1]);const o=this._computeDegree(n,t),r=(this.hot.getColWidth(this.colIndex+(this.colSpan-1)),parseInt(n-30));l.push({degree:o,x:r,y:t,text:i}),s++}if(0===a||s-1<a){let e="项目"+s;a>0&&(e=this.slashData[s-1]);const t=this._computeDegree(n,i);let o=n;this.colSpan>1?o-=this.hot.getColWidth(this.colIndex+(this.colSpan-1)):o-=parseInt(o/5);let r=i;this.rowSpan>1?r-=parseInt(this.hot.getRowHeight(this.rowIndex+(this.rowSpan-1))/2)+5:r-=parseInt(r/2),l.push({degree:t,x:o,y:r,text:e}),s++}for(let e=0;e<this.colSpan;e++){let t=0;for(let n=0;n<e;n++)t+=this.hot.getColWidth(n);let n="项目"+s;if(a>0&&s-1>=a)break;a>0&&(n=this.slashData[s-1]),t+=20;const o=this._computeDegree(i,t),r=i-20;l.push({degree:o,x:t,y:r,text:n}),s++}const d=this.context.getCell(this.rowIndex,this.colIndex);d.cellStyle,d.value={slashes:l,type:"slash"}}doDraw(e,t,n){null!=t&&void 0!=t&&(this.rowIndex=t),null!=n&&void 0!=n&&(this.colIndex=n);const i=e.value,o=e.cellStyle;o.forecolor||(o.forecolor="0,0,0");let r=0;const s=this.hot.getCell(this.rowIndex,this.colIndex),d=$(s);d.empty();const u=$("<div></div>");d.append(u),this.paper=a()(u.get(0),this.width,this.height);let h=o.fontSize+"pt "+(o.fontFamily?o.fontFamily:"宋体"),f=o.bold?"bold":"normal",p=o.italic?"italic":"normal",m=o.underline?"underline":"none",g={fill:c(o.forecolor),font:h,"font-weight":f,"font-style":p,"text-decoration":m};const y=i.slashes,v=y.length;for(let e=0;e<this.rowSpan-1&&!(v>0&&r>=v);e++){let t=0;for(let n=0;n<=e;n++)t+=this.hot.getRowHeight(this.rowIndex+n);2==v&&(t=this.height),r<v&&this.paper.path("M0 0L"+this.width+" "+t).attr({stroke:c(o.forecolor)});let n=y[r];this.paper.text(0,0,n.text).attr(g).attr({transform:"T"+n.x+","+n.y+"R"+n.degree}),r++}if(0===v||r<v){let e=this.height-this.hot.getRowHeight(this.rowIndex+(this.rowSpan-1))/3;r+1<v&&(2==v&&(e=this.height),this.paper.path("M0 0L"+this.width+" "+e).attr({stroke:c(o.forecolor)}));let t=y[r];r++;let n=this.paper.text(0,0,t.text).attr(g);if(n.attr({transform:"T"+t.x+","+t.y+"R"+t.degree}),0===v||r<v){let e=this.width-this.hot.getColWidth(this.colIndex+(this.colSpan-1))/3;r+1<v&&(2==v&&(e=this.width),this.paper.path("M0 0L"+e+" "+this.height).attr({stroke:c(o.forecolor)})),t=y[r],r++,(n=this.paper.text(0,0,t.text).attr(g)).attr({transform:"T"+t.x+","+t.y+"R"+t.degree})}}for(let e=0;e<this.colSpan-1&&!(v>0&&r>=v);e++){let t=0;for(let n=0;n<=e;n++)t+=this.hot.getColWidth(this.colIndex+n);2==v&&(t=this.width),this.paper.path("M0 0L"+t+" "+this.height).attr({stroke:c(o.forecolor)});let n=y[r];r++,this.paper.text(0,0,n.text).attr(g).attr({transform:"T"+n.x+","+n.y+"R"+n.degree})}if(0===v||r<v){let e=y[r];r++,this.paper.text(0,0,e.text).attr(g).attr({transform:"T"+e.x+","+e.y+"R"+e.degree})}const A=u.children("svg").get(0);l.a.svgAsPngUri(A,{encoderOptions:1},function(e){i.base64Data=e})}_computeDegree(e,t){const n=Math.sqrt(e*e+t*t),i=Math.sin(t/n),o=180/Math.PI*Math.asin(i);return parseInt(o)}}function c(e){e=e.split(",");const t=parseInt(e[0]),n=parseInt(e[1]),i=parseInt(e[2]);return"#"+u(t)+u(n)+u(i)}function u(e){var t=e.toString(16);return 1==t.length?"0"+t:t}var h=n(29),f=n.n(h);class p{constructor(e,t){this.container=e,this.cellDef=t}renderChart(e,t,n,o){e&&(this.container=e),this.hot=t.hot,this.rowIndex=n,this.colIndex=o;const r=this.container;this.rowSpan=r.prop("rowspan"),this.colSpan=r.prop("colspan"),this.width=-2,this.height=-2;const a=this.rowIndex,s=this.rowIndex+this.rowSpan;for(let e=a;e<s;e++)this.height+=this.hot.getRowHeight(e);const l=this.colIndex,d=this.colIndex+this.colSpan;for(let e=l;e<d;e++)this.width+=this.hot.getColWidth(e);this.container.empty();const c=$(`<div style="position: relative;"><canvas style="width: ${this.width}px;height: ${this.height}px;;"></canvas></div>`);this.container.append(c);const u=this.cellDef.value.chart.dataset.type;let h,p=null,m={};const g=this.cellDef.value.chart.options;if(g)for(let e of g)m[e.type]=e;const y=this.cellDef.value.chart.xaxes;if(y){let e=m.scales;e||(e={},m.scales=e);let t=e.xAxes;if(t||(t=[],e.xAxes=t),y.rotation){let e=y.ticks;e||(e={},y.ticks=e),e.minRotation=y.rotation}t.push(y)}const v=this.cellDef.value.chart.yaxes;if(v){let e=m.scales;e||(e={},m.scales=e);let t=e.yAxes;if(t||(t=[],e.yAxes=t),v.rotation){let e=v.ticks;e||(e={},v.ticks=e),e.minRotation=v.rotation}t.push(v)}const A=f.a.helpers.color;switch(u){case"bar":h="bar",p={labels:["类型1","类型2","类型3","类型4","类型5","类型6"],datasets:[{label:"系列1",backgroundColor:A(window.chartColors.red).alpha(.5).rgbString(),borderColor:window.chartColors.red,borderWidth:1,data:[21,25,8,12,31,19]},{label:"系列2",backgroundColor:A(window.chartColors.blue).alpha(.5).rgbString(),borderColor:window.chartColors.blue,borderWidth:1,data:[11,13,18,9,23,29]}]};break;case"horizontalBar":h="horizontalBar",p={labels:["类型1","类型2","类型3","类型4","类型5","类型6"],datasets:[{label:"系列1",backgroundColor:A(window.chartColors.red).alpha(.5).rgbString(),borderColor:window.chartColors.red,borderWidth:1,data:[21,25,8,12,31,19]},{label:"系列2",backgroundColor:A(window.chartColors.blue).alpha(.5).rgbString(),borderColor:window.chartColors.blue,borderWidth:1,data:[11,13,18,9,23,29]}]};break;case"line":h="line",p={labels:["类型1","类型2","类型3","类型4","类型5","类型6"],datasets:[{label:"系列1",backgroundColor:A(window.chartColors.red).alpha(.5).rgbString(),borderColor:window.chartColors.red,borderWidth:1,fill:!1,data:[21,25,8,12,31,19]},{label:"系列2",backgroundColor:A(window.chartColors.blue).alpha(.5).rgbString(),borderColor:window.chartColors.blue,borderWidth:1,fill:!1,data:[11,13,18,9,23,29]}]};break;case"area":h="line",p={labels:["类型1","类型2","类型3","类型4","类型5","类型6"],datasets:[{label:"系列1",backgroundColor:A(window.chartColors.red).alpha(.5).rgbString(),borderColor:window.chartColors.red,borderWidth:1,data:[21,25,8,12,31,19]},{label:"系列2",backgroundColor:A(window.chartColors.blue).alpha(.5).rgbString(),borderColor:window.chartColors.blue,borderWidth:1,data:[11,13,18,9,23,29]}]},m.scales={yAxes:[{stacked:!0}]};break;case"pie":h="pie",p={labels:["类型1","类型2","类型3","类型4"],datasets:[{label:"系列1",backgroundColor:[window.chartColors.red,window.chartColors.orange,window.chartColors.yellow,window.chartColors.green],data:[21,25,8,12]}]};break;case"doughnut":h="doughnut",p={labels:["类型1","类型2","类型3","类型4"],datasets:[{label:"系列1",backgroundColor:[window.chartColors.red,window.chartColors.orange,window.chartColors.yellow,window.chartColors.green],data:[21,25,8,12]}]};break;case"radar":h="radar",p={labels:["类型1","类型2","类型3","类型4","类型5"],datasets:[{label:"系列1",backgroundColor:A(window.chartColors.red).alpha(.5).rgbString(),borderColor:window.chartColors.red,borderWidth:1,data:[21,25,8,12,31]},{label:"系列2",backgroundColor:A(window.chartColors.blue).alpha(.5).rgbString(),borderColor:window.chartColors.blue,borderWidth:1,data:[11,13,18,9,23,9]}]};break;case"polar":h="polarArea",p={labels:["类型1","类型2","类型3","类型4"],datasets:[{label:"系列1",backgroundColor:[window.chartColors.red,window.chartColors.orange,window.chartColors.yellow,window.chartColors.green],data:[21,25,12,31]}]};break;case"scatter":h="scatter",p={datasets:[{label:"系列1",borderColor:window.chartColors.red,backgroundColor:A(window.chartColors.red).alpha(.2).rgbString(),data:[{x:10,y:10},{x:5,y:15},{x:8,y:12},{x:18,y:10}]},{label:"系列2",borderColor:window.chartColors.blue,backgroundColor:A(window.chartColors.blue).alpha(.2).rgbString(),data:[{x:13,y:6},{x:25,y:10},{x:18,y:11},{x:14,y:16}]}]};break;case"bubble":h="bubble",p={datasets:[{label:"系列1",borderColor:window.chartColors.red,backgroundColor:A(window.chartColors.red).alpha(.2).rgbString(),data:[{x:10,y:10,r:4},{x:5,y:15,r:6},{x:8,y:12,r:2},{x:18,y:10,r:8}]},{label:"系列2",borderColor:window.chartColors.blue,backgroundColor:A(window.chartColors.blue).alpha(.2).rgbString(),data:[{x:13,y:6,r:3},{x:25,y:10,r:9},{x:18,y:11,r:2},{x:14,y:16,r:10}]}]};break;case"mix":h="bar",p={labels:["类型1","类型2","类型3","类型4","类型5","类型6"],datasets:[{type:"line",label:"系列1",backgroundColor:A(window.chartColors.red).alpha(.5).rgbString(),borderColor:window.chartColors.red,data:[21,25,8,12,31,19]},{type:"bar",label:"系列2",backgroundColor:A(window.chartColors.blue).alpha(.5).rgbString(),borderColor:window.chartColors.blue,borderWidth:1,data:[11,13,18,9,23,29]}]};break;default:Object(i.a)("不能识别的图表类型:"+u)}const b=this.cellDef.value.chart.options||[];for(let e of b)switch(e.type){case"title":e.display&&(m.title={display:!0,position:e.position,text:e.text});break;case"legend":e.display?m.legend={display:!0,position:e.position}:m.display={display:!1};break;case"layout":e.padding&&(m.layout={padding:{left:e.padding.left,right:e.padding.right,top:e.padding.top,bottom:e.padding.bottom}})}this.chart=new f.a(c.children("canvas").get(0),{type:h,data:p,options:m||{}})}}function m(e,t,n,i,o,r){if(!this.context)return;let a=this.context.getCell(t,n);if(!a)return;const s=a.cellStyle,l=a.value,c=$(e),u=l.type;let h="";if("dataset"===u)h=l.datasetName+"."+l.aggregate+"(",h+=l.property+")",""===c.html()&&c.html(h);else if("expression"===u)h=l.value||"",""===c.html()&&c.html(h);else if("image"===u){h=`${window.i18n.table.render.image}`+l.value;const e=window._server+"/res/ureport-asserts/icons/image.svg",t=$(`<img src="${e}" width="20px">`);c.empty(),c.append(t)}else if("slash"===u)h=`${window.i18n.table.render.slash}`,a.crossTabWidget||(a.crossTabWidget=new d(this.context,t,n,a)),a.crossTabWidget.doDraw(a,t,n);else if("zxing"===u){let e=window._server+"/res/ureport-asserts/icons/qrcode.svg";h=`${window.i18n.table.render.qrcode}`,"barcode"===l.category&&(h=`${window.i18n.table.render.barcode}`,e=window._server+"/res/ureport-asserts/icons/barcode.svg");const t=l.width,n=l.height,i=$(`<img src="${e}" width="${t}px" height="${n}px">`);c.empty(),c.append(i)}else"chart"===u?(h=`${window.i18n.table.render.chart}`,a.chartWidget||(a.chartWidget=new p(c,a)),a.chartWidget.renderChart(c,this.context,t,n)):(h=l.value||"",""===c.html()&&c.html(h));if(c.prop("title",h),"simple"===u){let e=c.text();e&&""!==e&&(e=(e=(e=(e=(e=e.replace(new RegExp("<","gm"),"&lt;")).replace(new RegExp(">","gm"),"&gt;")).replace(new RegExp("\r\n","gm"),"<br>")).replace(new RegExp("\n","gm"),"<br>")).replace(new RegExp(" ","gm"),"&nbsp;"),c.html(e))}if(c.css({"word-break":"break-all","line-height":"normal","white-space":"nowrap",padding:"0 1px"}),"Down"===a.expand){let e=window._server+"/res/ureport-asserts/icons/expr-expand-down.svg";"dataset"===u&&(e=window._server+"/res/ureport-asserts/icons/expand-down.svg"),c.prepend(`<image src="${e}"></image>`)}else if("Right"===a.expand){let e=window._server+"/res/ureport-asserts/icons/expr-expand-right.svg";"dataset"===u&&(e=window._server+"/res/ureport-asserts/icons/expand-right.svg"),c.prepend(`<image src="${e}" style="display: block;"></image>`)}else if("dataset"===u){let e=window._server+"/res/ureport-asserts/icons/property.svg";c.prepend(`<image src="${e}" style="display: inline-block;"></image>`)}else if("expression"===u){let e=window._server+"/res/ureport-asserts/icons/expression.svg";c.prepend(`<image src="${e}" style="display: inline-block;"></image>`)}s.align&&c.css("text-align",s.align),s.valign&&c.css("vertical-align",s.valign),s.bold&&c.css("font-weight","bold"),s.italic&&c.css("font-style","italic"),s.underline&&c.css("text-decoration","underline"),s.forecolor&&c.css("color","rgb("+s.forecolor+")"),s.bgcolor&&c.css("background-color","rgb("+s.bgcolor+")"),s.fontSize&&c.css("font-size",s.fontSize+"pt"),s.fontFamily&&c.css("font-family",s.fontFamily),s.lineHeight?c.css("line-height",s.lineHeight):c.css("line-height","");const f=s.leftBorder;if(f)if(""===f||"none"===f.style)c.css({"border-left":""});else{let e="double",t=f.width;t=null===t||void 0===t||""===t?0:parseInt(t),"solid"!==f.style&&t>0&&(e=f.style,t++);let n=e+" "+t+"px rgb("+f.color+")";c.css({"border-left":n})}const m=s.rightBorder;if(m)if(""===m||"none"===m.style)c.css({"border-right":""});else{let e=m.style+" "+m.width+"px rgb("+m.color+")";c.css({"border-right":e})}const g=s.topBorder;if(g)if(""===g||"none"===g.style)c.css({"border-top":""});else{let e="double",t=g.width;t=null===t||void 0===t||""===t?0:parseInt(t),"solid"!==g.style&&t>0&&(e=g.style,t++);let n=e+" "+t+"px rgb("+g.color+")";c.css({"border-top":n})}const y=s.bottomBorder;if(y)if(""===y||"none"===y.style)c.css({"border-bottom":""});else{let e=y.style+" "+y.width+"px rgb("+y.color+")";c.css({"border-bottom":e})}}function g(e,t){const n=e.countRows(),i=[],o=t.rowHeaders;for(let e=1;e<=n;e++){let t="";for(let n of o)if(n.rowNumber===e-1){"headerrepeat"===n.band?t=`<span style='color:blue;font-size: 10px' title='${window.i18n.table.header.hr}'>HR</span>`:"footerrepeat"===n.band?t=`<span style='color:#d30a16;font-size: 10px' title='${window.i18n.table.header.fr}'>FR</span>`:"title"===n.band?t=`<span style='color:#d30a16;font-size: 10px' title='${window.i18n.table.header.t}'>T</span>`:"summary"===n.band&&(t=`<span style='color:#d30a16;font-size: 10px' title='${window.i18n.table.header.s}'>S</span>`);break}i.push(e+t)}e.updateSettings({rowHeaders:i})}function y(e){const t=this.getSelected();if(!t)return void Object(i.a)(`${window.i18n.table.rowTip}`);let n=t[0],r=t[2],a=n;a=n>r?e?r:n+1:e?n:r+1;let s=this.getSettings().rowHeights,l=s.concat([]);l.splice(a,0,25),this.alter("insert_row",a),this.context.adjustInsertRowHeaders(a),g(this,this.context),function(e,t){const n=e.countCols(),i=(e.countRows(),e.context),r=i.cellsMap,a=[];for(let e of r.values()){e.rowNumber-1>=t&&a.push(e)}for(let e of a)i.removeCell(e);for(let e of a)e.rowNumber=e.rowNumber+1,i.addCell(e);for(let e=0;e<n;e++){let n=Object(o.a)(t+1,e+1);i.addCell(n)}}(this,a),this.updateSettings({rowHeights:l,manualRowResize:l}),Object(o.j)(this),Object(o.k)();const d=this,c=this.context,u=this.context.cellsMap,h=[];let f=25;o.n.add({redo:function(){s=d.getSettings().rowHeights,(l=s.concat([])).splice(a,0,f),d.alter("insert_row",a),d.context.adjustInsertRowHeaders(a),g(d,d.context);let e=[];for(let t of u.values())t.rowNumber-1>=a&&e.push(t);for(let t of e)c.removeCell(t);for(let t of e)t.rowNumber=t.rowNumber+1,c.addCell(t);for(let e of h)c.addCell(e);d.updateSettings({rowHeights:l,manualRowResize:l}),Object(o.j)(d),Object(o.k)()},undo:function(){h.splice(0,h.length),s=d.getSettings().rowHeights,l=s.concat([]),f=l[a],l.splice(a,1),d.alter("remove_row",a),d.context.adjustDelRowHeaders(a),g(d,d.context),d.updateSettings({rowHeights:l,manualRowResize:l});let e=d.countCols();for(let t=0;t<e;t++){let e=c.getCell(a,t);e&&(h.push(e),c.removeCell(e))}let t=[];for(let e of u.values())e.rowNumber-1>a&&t.push(e);for(let e of t)c.removeCell(e);for(let e of t)e.rowNumber=e.rowNumber-1,c.addCell(e);Object(o.j)(d),Object(o.k)()}})}function v(e){const t=this.getSelected();if(!t)return void alert(`${window.i18n.table.colTip}`);let n=t[1],i=t[3],r=n;r=n>i?e?i:n+1:e?n:i+1;let a=this.getSettings().colWidths,s=a.concat([]);s.splice(r,0,98),this.alter("insert_col",r);const l=this.context,d=this.context.cellsMap,c=[];for(let e of d.values())e.columnNumber-1>=r&&c.push(e);for(let e of c)l.removeCell(e);for(let e of c)e.columnNumber=e.columnNumber+1,l.addCell(e);let u=this.countRows();for(let e=0;e<u;e++){let t=Object(o.a)(e+1,r+1);l.addCell(t)}this.updateSettings({colWidths:s,manualColumnResize:s}),Object(o.j)(this),Object(o.k)();const h=this,f=[];let p=98;o.n.add({redo:function(){a=h.getSettings().colWidths,(s=a.concat([])).splice(r,0,p),h.alter("insert_col",r),c.splice(0,c.length);for(let e of d.values())e.columnNumber-1>=r&&c.push(e);for(let e of c)l.removeCell(e);for(let e of c)e.columnNumber=e.columnNumber+1,l.addCell(e);for(let e of f)l.addCell(e);h.updateSettings({colWidths:s,manualColumnResize:s}),Object(o.j)(h),Object(o.k)()},undo:function(){f.splice(0,f.length),a=h.getSettings().colWidths,s=a.concat([]),p=s[r],s.splice(r,1),h.alter("remove_col",r),h.updateSettings({colWidths:s,manualColumnResize:s});let e=h.countRows();for(let t=0;t<e;t++){let e=l.getCell(t,r);e&&(l.removeCell(e),f.push(e))}c.splice(0,c.length);for(let e of d.values())e.columnNumber-1>r&&c.push(e);for(let e of c)l.removeCell(e);for(let e of c)e.columnNumber=e.columnNumber-1,l.addCell(e);Object(o.j)(h),Object(o.k)()}})}window.chartColors={red:"rgb(255, 99, 132)",orange:"rgb(255, 159, 64)",yellow:"rgb(255, 205, 86)",green:"rgb(75, 192, 192)",blue:"rgb(54, 162, 235)",purple:"rgb(153, 102, 255)",grey:"rgb(201, 203, 207)"};class A{constructor(){this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 11001">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title row-col-wh">\n ${window.i18n.dialog.rowColWidthHeight.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`);const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t)}initBody(e,t){const n=$('<div class="form-group"></div>');this.label=$("<label></label>"),n.append(this.label),this.valueEditor=$(`<input type="number" class="form-control" placeholder="${window.i18n.dialog.rowColWidthHeight.tip}">`),n.append(this.valueEditor),e.append(n);const o=$(`<button type="button" class="btn btn-danger">${window.i18n.dialog.rowColWidthHeight.ok}</button>`);t.append(o);const r=this;o.click(function(){const e=parseInt(r.valueEditor.val());e?(r.callback.call(this,e),r.dialog.modal("hide")):Object(i.a)(`${window.i18n.dialog.rowColWidthHeight.numValidate}`)})}show(e,t,n){this.dialog.modal("show"),this.callback=e,n?(this.label.html(`${window.i18n.dialog.rowColWidthHeight.colWidth}:`),$(".row-col-wh").html(`${window.i18n.dialog.rowColWidthHeight.colWidth}`)):(this.label.html(`${window.i18n.dialog.rowColWidthHeight.rowHeight}:`),$(".row-col-wh").html(`${window.i18n.dialog.rowColWidthHeight.rowHeight}`)),this.valueEditor.val(t)}}var b=n(7),w=n.n(b);class _{constructor(e){this.context=e}buildButton(){const e=$(`<button type="button" class="btn btn-default" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px;" title="${this.getTitle()}">\n ${this.getIcon()}\n </button>`),t=this;return e.click(function(){t.execute()}),e}checkSelection(){const e=this.context.hot.getSelected();return!(!e||0===e.length)||(Object(i.a)(`${window.i18n.selectTargetCellFirst}`),!1)}}class M{constructor(){this.reportFilesData={},this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog modal-lg">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.save.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>`);const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e),this.initFooter(t)}initBody(e){const t=$(`<div class="form-group"><label>${window.i18n.dialog.save.fileName}:</label></div>`);this.fileEditor=$('<input type="text" class="form-control" style="display: inline-block;width: 480px">'),t.append(this.fileEditor),e.append(t);const n=$(`<div class="form-group"><label>${window.i18n.dialog.save.source}</label></div>`);this.providerSelect=$('<select class="form-control" style="display: inline-block;width:450px;">'),n.append(this.providerSelect),e.append(n);const r=$('<div style="height:350px;overflow: auto"></div>');e.append(r);const a=$(`<table class="table table-bordered"><thead><tr style="background: #f4f4f4;height: 30px;"><td style="vertical-align: middle">${window.i18n.dialog.save.fileName}</td><td style="width: 150px;vertical-align: middle">${window.i18n.dialog.save.modDate}</td><td style="width:50px;vertical-align: middle">${window.i18n.dialog.save.del}</td></tr></thead></table>`);this.fileTableBody=$("<tbody></tbody>"),a.append(this.fileTableBody),r.append(a);const s=this;this.providerSelect.change(function(){let e=$(this).val();if(!e||""===e)return;s.fileTableBody.empty();let t=s.reportFilesData[e];if(t){for(let n of t){let r=$('<tr style="height: 35px;"></tr>');s.fileTableBody.append(r),r.append(`<td style="vertical-align: middle">${n.name}</td>`),r.append(`<td style="vertical-align: middle">${Object(o.c)(n.updateDate)}</td>`);let a=$('<td style="vertical-align: middle"></td>');r.append(a);let l=$('<a href="###"><i class="glyphicon glyphicon-trash" style="color: red;font-size: 14pt"></i></a>');a.append(l),l.click(function(){Object(i.b)(`${window.i18n.dialog.save.delConfirm}`+n.name,function(){let o=e+n.name;$.ajax({type:"POST",data:{file:o},url:window._server+"/designer/deleteReportFile",success:function(){r.remove();let e=t.indexOf(n);t.splice(e,1)},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.dialog.save.delFail}`)}})})})}s.currentProviderPrefix=e,s.currentReportFiles=t}})}initFooter(e){const t=$(`<button type="button" class="btn btn-primary">${window.i18n.dialog.save.save}</button>`);e.append(t);const n=this;t.click(function(){let e=n.fileEditor.val();if(""!==e)if(n.currentProviderPrefix&&n.currentReportFiles){for(let t of n.currentReportFiles){let n=t.name,o=n.indexOf(".");if((n=n.substring(0,o))===e)return void Object(i.a)(`${window.i18n.dialog.save.file}[${e}]${window.i18n.dialog.save.exist}`)}e=n.currentProviderPrefix+e+".ureport.xml",$.ajax({url:window._server+"/designer/saveReportFile",data:{file:e,content:n.content},type:"POST",success:function(){Object(i.a)(`${window.i18n.dialog.save.success}`),window._reportFile=e,n.context.fileInfo.setFile(e),Object(o.i)(),n.dialog.modal("hide")},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.dialog.save.fail}`)}})}else Object(i.a)(`${window.i18n.dialog.save.locationTip}`);else Object(i.a)(`${window.i18n.dialog.save.nameTip}`)})}show(e,t){this.content=e,this.context=t,this.fileEditor.val(""),this.providerSelect.empty(),this.fileTableBody.empty(),this.reportFilesData={};const n=this;$.ajax({url:window._server+"/designer/loadReportProviders",success:function(e){for(let t of e){let{reportFiles:e,name:i,prefix:o}=t;n.reportFilesData[o]=e,n.providerSelect.append(`<option value="${o}">${i}</option>`)}n.providerSelect.trigger("change")},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.dialog.save.loadFail}`)}}),this.dialog.modal("show")}}class x{constructor(e){this.context=e,this.reportFilesData={},this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog modal-lg">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.open.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>`);const t=this.dialog.find(".modal-body");this.dialog.find(".modal-footer"),this.initBody(t)}initBody(e){const t=$(`<div class="form-group"><label>${window.i18n.dialog.open.source}</label></div>`);this.providerSelect=$('<select class="form-control" style="display: inline-block;width:450px;">'),t.append(this.providerSelect),e.append(t);const n=$('<div style="height:350px;overflow: auto"></div>');e.append(n);const r=$(`<table class="table table-bordered"><thead><tr style="background: #f4f4f4;height: 30px;">\n <td style="vertical-align: middle">${window.i18n.dialog.open.fileName}</td>\n <td style="width: 150px;vertical-align: middle">${window.i18n.dialog.open.modDate}</td>\n <td style="width:50px;vertical-align: middle">${window.i18n.dialog.open.open}</td>\n <td style="width:50px;vertical-align: middle">${window.i18n.dialog.open.del}</td></tr></thead></table>`);this.fileTableBody=$("<tbody></tbody>"),r.append(this.fileTableBody),n.append(r);const a=this;this.providerSelect.change(function(){let e=$(this).val();if(!e||""===e)return;a.fileTableBody.empty();let t=a.reportFilesData[e];if(t){for(let n of t){let r=$('<tr style="height: 35px;"></tr>');a.fileTableBody.append(r),r.append(`<td style="vertical-align: middle;">${n.name}</td>`),r.append(`<td style="vertical-align: middle;">${Object(o.c)(n.updateDate)}</td>`);let s=$('<td style="vertical-align: middle;"></td>');r.append(s);let l=$('<a href="###"><i class="glyphicon glyphicon-folder-open" style="color: #008ed3;font-size: 14pt"></i></a>');s.append(l),l.click(function(){Object(i.b)(`${window.i18n.dialog.open.openConfirm}[${n.name}]?`,function(){let t=e+encodeURI(encodeURI(n.name)),i=window._server+"/designer?_u="+t;window.open(i,"_self")})});let d=$('<td style="vertical-align: middle;"></td>');r.append(d);let c=$('<a href="###"><i class="glyphicon glyphicon-trash" style="color: red;font-size: 14pt"></i></a>');d.append(c),c.click(function(){Object(i.b)(`${window.i18n.dialog.open.delConfirm}`+n.name,function(){let o=e+n.name;$.ajax({type:"POST",data:{file:o},url:window._server+"/designer/deleteReportFile",success:function(){r.remove();let e=t.indexOf(n);t.splice(e,1)},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.dialog.open.delFail}`)}})})})}a.currentProviderPrefix=e,a.currentReportFiles=t}})}show(){this.providerSelect.empty(),this.fileTableBody.empty(),this.reportFilesData={};const e=this;$.ajax({url:window._server+"/designer/loadReportProviders",success:function(t){for(let n of t){let{reportFiles:t,name:i,prefix:o}=n;e.reportFilesData[o]=t,e.providerSelect.append(`<option value="${o}">${i}</option>`)}e.providerSelect.trigger("change")},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.dialog.open.loadFail}`)}}),this.dialog.modal("show")}}function k(e,t,n,i,o,r,a,s,l){let d=e.hot,c=r,u=a,h=s,f=l;"none"===r.style&&(c=""),"none"===a.style&&(u=""),"none"===s.style&&(h=""),"none"===l.style&&(f="");const p={};for(let r=t;r<=i;r++)for(let t=n;t<=o;t++){d.getCell(r,t);let n=e.getCell(r,t);if(!n)continue;const i=n.cellStyle;p[r+","+t]={leftBorder:i.leftBorder,rightBorder:i.rightBorder,topBorder:i.topBorder,bottomBorder:i.bottomBorder},i.leftBorder=S(c),i.rightBorder=S(u),i.topBorder=S(h),i.bottomBorder=S(f)}return d.render(),p}function S(e){if(e&&""!==e){const t=JSON.stringify(e);return JSON.parse(t)}return e}function C(e,t){const n=$(`<div style="margin: 20px 0 10px 0;"><span>${window.i18n.tools.border.lineStyle}:</span></div>`);e.append(n);const i=$(`\n <select class="form-control" style="display: inline-block;width:120px">\n <option value="solid" ${"solid"===t.style?"selected":""}>${window.i18n.tools.border.solidLine}</option>\n <option value="dashed" ${"dashed"===t.style?"selected":""}>${window.i18n.tools.border.dashed}</option>\n <option value="none" ${t.style?"":"selected"}>${window.i18n.tools.border.none}</option>\n </select>\n `);n.append(i),i.change(function(){const e=$(this).val();t.style=e});const o=$(`<div style="margin: 20px 0 10px 0;"><span>${window.i18n.tools.border.size}:</span></div>`);e.append(o);const r=$('\n <select class="form-control" style="display: inline-block;width:120px">\n </select>\n ');for(let e=1;e<=10;e++)t.width===e?r.append(`<option value="${e}" selected>${e}</option>`):r.append(`<option value="${e}">${e}</option>`);o.append(r),r.change(function(){t.width=$(this).val()});const a=$("<div></div>");e.append(a);const s=$(`<div><span>${window.i18n.tools.border.color}:</span></div>`);a.append(s),s.colorpicker({color:t.color,container:!0,inline:!0,colorSelectors:{black:"#000000",red:"#FF0000",default:"#777777",primary:"#337ab7",success:"#5cb85c",info:"#5bc0de",warning:"#f0ad4e",danger:"#d9534f"}}),s.colorpicker().on("changeColor",function(e){let n=e.color.toRGB(),i=n.r+","+n.g+","+n.b;t.color=i})}function E(e,t,n,i,o,r){let a=e.hot;for(let s=t;s<=i;s++)for(let t=n;t<=o;t++){a.getCell(s,t);let n=e.getCell(s,t);if(!n)continue;let i=r[s+","+t],o=n.cellStyle;o.leftBorder=i.leftBorder||"",o.rightBorder=i.rightBorder||"",o.topBorder=i.topBorder||"",o.bottomBorder=i.bottomBorder||""}a.render()}function L(e,t,n,i,o,r,a){const s={},l=e.hot;for(let d=t;d<=i;d++)for(let t=n;t<=o;t++){l.getCell(d,t);let n=e.getCell(d,t);if(!n)continue;let i=n.cellStyle;s[d+","+t]={leftBorder:i.leftBorder,rightBorder:i.rightBorder,topBorder:i.topBorder,bottomBorder:i.bottomBorder},a?"left"===a?(i.leftBorder=r,i.rightBorder="",i.topBorder="",i.bottomBorder=""):"right"===a?(i.rightBorder=r,i.leftBorder="",i.topBorder="",i.bottomBorder=""):"top"===a?(i.topBorder=r,i.leftBorder="",i.rightBorder="",i.bottomBorder=""):"bottom"===a&&(i.bottomBorder=r,i.leftBorder="",i.rightBorder="",i.topBorder=""):(i.leftBorder=r,i.rightBorder=r,i.topBorder=r,i.bottomBorder=r)}return s}function T(e,t,n,i,o){let r=e.hot;const a={};for(let r=t;r<=i;r++)for(let t=n;t<=o;t++){let n=e.getCell(r,t);if(!n)continue;let i=n.cellStyle;a[r+","+t]=i.bold,i.bold?i.bold=!1:i.bold=!0}return r.render(),a}function D(e,t,n,i,o){let r=e.hot;const a={};for(let r=t;r<=i;r++)for(let t=n;t<=o;t++){let n=e.getCell(r,t);if(!n)continue;let i=n.cellStyle;a[r+","+t]=i.italic,i.italic?i.italic=!1:i.italic=!0}return r.render(),a}function Y(e,t,n,i,o,r){const a={},s=e.hot;for(let l=t;l<=i;l++)for(let t=n;t<=o;t++){s.getCell(l,t);let n=e.getCell(l,t);if(!n)continue;let i="underline";r&&(i=r[l+","+t]);let o=n.cellStyle;a[l+","+t]=o.underline,o.underline?o.underline=!1:o.underline=!0}return s.render(),a}function R(e,t,n,i,o,r,a){let s=e.hot;const l={};for(let d=t;d<=i;d++)for(let t=n;t<=o;t++){s.getCell(d,t);let n=e.getCell(d,t);if(!n)continue;let i=n.cellStyle;l[d+","+t]=i.bgcolor,i.bgcolor=r,$(".ud-select-bgcolor").css("background-color","rgb("+r+")"),a.bgcolor=r}return s.render(),l}function B(e,t,n,i,o,r,a){let s=e.hot;const l={};for(let s=t;s<=i;s++)for(let t=n;t<=o;t++){let n=e.getCell(s,t);if(!n)continue;let i=n.cellStyle;l[s+","+t]=i.forecolor,i.forecolor=r,$(".ud-select-color").css("background-color","rgb("+r+")"),a.forecolor=r}return s.render(),l}class O{constructor(){this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10001">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.crosstab.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`);const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t)}initBody(e,t){const n=$(`<div class="form-group"><label>${window.i18n.dialog.crosstab.crosstab}(<span style="font-size: 12px;color: #4e4e4e">${window.i18n.dialog.crosstab.tip}</span>):</label></div>`);this.nameEditor=$('<input type="text" class="form-control">'),n.append(this.nameEditor),e.append(n);const i=$(`<button type="button" class="btn btn-default">${window.i18n.dialog.crosstab.ok}</button>`);t.append(i);const o=this;i.click(function(){const e=o.nameEditor.val();o.callback.call(this,e),o.dialog.modal("hide")})}show(e){this.callback=e,this.dialog.modal("show")}}function H(e,t,n,r,a,s){let l=!0,d=!1;s.getCell(e,t);const c=a.getSettings().mergeCells||[];for(let i=e;i<=n;i++)for(let e=t;e<=r;e++){let t=a.getCell(i,e);if(!t)continue;let n=$(t),o=n.prop("colspan")||"1",r=n.prop("rowspan")||"1";if(o=parseInt(o),r=parseInt(r),o>1||r>1){let t=0;for(d=!0,l=!1;t<c.length;){let n=c[t],o=n.row,r=n.col;if(o===i&&r===e){c.splice(t,1);break}t++}}}if(l){if(n<e){let t=e;e=n,n=t}if(r<t){let e=t;t=r,r=e}let i=n-e,o=r-t;0===i?i=1:i++,0===o?o=1:o++;const a={row:e,col:t,rowspan:i,colspan:o};c.push(a)}else if(d)for(let i=e;i<=n;i++)for(let e=t;e<=r;e++){let t=s.getCell(i,e);t||(t=Object(o.a)(i+1,e+1),s.addCell(t))}else Object(i.a)(`${window.i18n.selectMultiTargetCellFirst}`);a.updateSettings({mergeCells:c})}class P{constructor(){this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.import.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`);const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t)}initBody(e,t){const n=window._server+"/import",o=$(`<form enctype="multipart/form-data" action="${n}" method="post" target="_import_excel_frame"></form>`);e.append(o),o.append(`<div style="margin-bottom: 10px;line-height: 2;color: #929191;">${window.i18n.dialog.import.desc}</div>`);const r=$(`<div class="form-group"><label>${window.i18n.dialog.import.file}</label></div>`);o.append(r);const a=$('<input name="_excel_file" class="form-control" type="file">');r.append(a);const s=$('<div class="form-group"></div>'),l=$(`<button type="submit" class="btn btn-primary">${window.i18n.dialog.import.upload}</button>`);s.append(l),o.append(s);const d=$('<iframe height="0" width="0" src="" name="_import_excel_frame"></iframe>');e.append(d),d.on("load",function(e){const t=d.contents().find("body").text();if(!t||""===t)return;const n=JSON.parse(t);if(n.result){const e=window._server+"/designer";window.open(e,"_self")}else{const e=n.errorInfo;e?Object(i.a)(`${window.i18n.dialog.import.fail}:`+e):Object(i.a)(`${window.i18n.dialog.import.fail}`)}})}show(){this.dialog.modal("show")}}function I(e,t,n){let i=e.hot,r=i.getSelected(),a=r[0],s=r[1],l=r[2],d=r[3],c=l;a>l&&(l=a,a=c),c=d,s>d&&(d=s,s=c);const u=this;let h=j(e,a,s,l,d,t,n,u);o.n.add({redo:function(){h=j(e,a,s,l,d,t,n,u),Object(o.k)()},undo:function(){for(let t=a;t<=l;t++)for(let i=s;i<=d;i++){let o=e.getCell(t,i);if(!o)continue;let r=o.cellStyle;r.fontFamily=h[t+","+i],n.html(r.fontFamily),u.fontFamily=r.fontFamily}i.render(),Object(o.k)()}}),Object(o.k)()}function j(e,t,n,i,o,r,a,s){let l=e.hot;const d={};for(let l=t;l<=i;l++)for(let t=n;t<=o;t++){let n=e.getCell(l,t);if(!n)continue;let i=n.cellStyle;d[l+","+t]=i.fontFamily,i.fontFamily=r,a.html(r),s.fontFamily=r}return l.render(),d}function F(e,t,n,i){let r=e.hot,a=r.getSelected(),s=a[0],l=a[1],d=a[2],c=a[3],u=d;s>d&&(d=s,s=u),u=c,l>c&&(c=l,l=u);let h=N(e,s,l,d,c,t,n,i);o.n.add({redo:function(){h=N(e,s,l,d,c,t,n,i),Object(o.k)()},undo:function(){for(let t=s;t<=d;t++)for(let o=l;o<=c;o++){let r=e.getCell(t,o);if(!r)continue;let a=r.cellStyle;a.fontSize=h[t+","+o],n.html(a.fontSize),i.fontSize=a.fontSize}r.render(),Object(o.k)()}}),Object(o.k)()}function N(e,t,n,i,o,r,a,s){let l=e.hot;const d={};for(let l=t;l<=i;l++)for(let t=n;t<=o;t++){let n=e.getCell(l,t);if(!n)continue;let i=n.cellStyle;d[l+","+t]=i.fontSize,i.fontSize=r,a.html(r),s.fontSize=r}return l.render(),d}class z{constructor(e){this.datasources=e,this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 11005">\n <div class="modal-dialog" style="width: 320px;">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.fontSetting.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`);const t=this.dialog.find(".modal-body"),n=this.dialog.find(".modal-footer");this.initBody(t,n)}initBody(e,t){const n=this,i=$(`<div class="form-group" style="margin-top: 10px"><label>${window.i18n.dialog.fontSetting.font}</label></div>`);e.append(i);const o=[];o.push("宋体"),o.push("仿宋"),o.push("黑体"),o.push("楷体"),o.push("微软雅黑"),o.push("Arial"),o.push("Impact"),o.push("Times New Roman"),o.push("Comic Sans MS"),o.push("Courier New"),this.fontFamilySelect=$('<select class="form-control" style="display: inline-block;width: 200px;"></select>');for(let e of o)this.fontFamilySelect.append(`<option>${e}</option>`);i.append(this.fontFamilySelect),this.fontFamilySelect.change(function(){n.newStyle.fontFamily=$(this).val()});const r=$(`<div class="form-group"><label>${window.i18n.dialog.fontSetting.color}</label></div>`);e.append(r),this.colorEditor=$('<div class="input-group colorpicker-component" style="width: 200px;height: 26px;display: inline-block;margin-left: 10px;vertical-align: bottom">\n <input type="text" value="#00AABB" class="form-control" style="width: 150px;height: 29px;"/>\n <span class="input-group-addon" style="width: 22px"><i></i></span>\n </div>'),r.append(this.colorEditor),this.colorEditor.colorpicker({color:"#000000",container:!0,format:"rgb",colorSelectors:{black:"#000000",white:"#FFFFFF",red:"#FF0000",default:"#777777",primary:"#337ab7",success:"#5cb85c",info:"#5bc0de",warning:"#f0ad4e",danger:"#d9534f"}}),this.colorEditor.children("input").change(function(){let e=$(this).val();e.length>5&&(e=e.substring(4,e.length-1)),n.newStyle.forecolor=e});const a=$(`<div class="form-group"><label>${window.i18n.dialog.fontSetting.size}</label></div>`);e.append(a),this.fontSizeSelect=$('<select class="form-control" style="display: inline-block;width: 200px;"></select>');for(let e=1;e<=100;e++)this.fontSizeSelect.append(`<option>${e}</option>`);a.append(this.fontSizeSelect),this.fontSizeSelect.change(function(){n.newStyle.fontSize=$(this).val()});const s=$(`<div class="form-group"><label>${window.i18n.dialog.fontSetting.bold}</label></div>`);e.append(s),this.boldSelect=$('<select class="form-control" style="display: inline-block;width: 200px;">\n <option value="true">是</option>\n <option value="false">否</option>\n </select>'),s.append(this.boldSelect),this.boldSelect.change(function(){n.newStyle.bold=$(this).val()});const l=$(`<div class="form-group"><label>${window.i18n.dialog.fontSetting.italic}</label></div>`);e.append(l),this.italicSelect=$('<select class="form-control" style="display: inline-block;width: 200px;">\n <option value="true">是</option>\n <option value="false">否</option>\n </select>'),l.append(this.italicSelect),this.italicSelect.change(function(){n.newStyle.italic=$(this).val()});const d=$(`<div class="form-group"><label>${window.i18n.dialog.fontSetting.underline}</label></div>`);e.append(d),this.underlineSelect=$('<select class="form-control" style="display: inline-block;width: 185px;">\n <option value="true">是</option>\n <option value="false">否</option>\n </select>'),d.append(this.underlineSelect),this.underlineSelect.change(function(){n.newStyle.underline=$(this).val()});const c=$(`<button type="button" class="btn btn-primary">${window.i18n.dialog.fontSetting.ok}</button>`);t.append(c),c.click(function(){n.style=n.newStyle,n.callback.call(this,n.newStyle),n.dialog.modal("hide")})}show(e,t){this.dialog.modal("show"),this.callback=t,this.style=e,this.newStyle=e,this.newStyle.fontFamily||(this.newStyle.fontFamily="宋体"),this.newStyle.fontSize||(this.newStyle.fontSize="10"),this.newStyle.forecolor||(this.newStyle.forecolor="0,0,0"),void 0!==this.newStyle.bold&&null!==this.newStyle.bold||(this.newStyle.bold="false"),void 0!==this.newStyle.italic&&null!==this.newStyle.italic||(this.newStyle.italic="false"),void 0!==this.newStyle.underline&&null!==this.newStyle.underline||(this.newStyle.underline="false"),this.fontFamilySelect.val(this.newStyle.fontFamily),this.fontSizeSelect.val(this.newStyle.fontSize),this.colorEditor.children("input").val("rgb("+this.newStyle.forecolor+")"),this.colorEditor.children("input").trigger("change"),this.boldSelect.val(this.newStyle.bold),this.italicSelect.val(this.newStyle.italic),this.underlineSelect.val(this.newStyle.underline)}}class W{constructor(){this.paperSizeList=Object(o.b)(),this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.setting.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>`);const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t)}initBody(e,t){const n=$(`<ul class="nav nav-tabs">\n <li class="active"><a href="#__page_setup" data-toggle="tab">${window.i18n.dialog.setting.pageSetting}</a></li>\n <li><a href="#__header_footer" data-toggle="tab">${window.i18n.dialog.setting.headerFooterSetting}</a></li>\n <li><a href="#__paging" data-toggle="tab">${window.i18n.dialog.setting.pagingSetting}</a></li>\n <li><a href="#__column" data-toggle="tab">${window.i18n.dialog.setting.columnSetting}</a></li>\n </ul>`);e.append(n);const i=$('<div class="tab-content"></div>');e.append(i);const o=$('<div class="tab-pane fade in active" id="__page_setup"></div>');i.append(o);const r=$('<div class="tab-pane fade" id="__header_footer"></div>');i.append(r);const a=$('<div class="tab-pane fade" id="__paging"></div>');i.append(a);const s=$('<div class="tab-pane fade" id="__column"></div>');i.append(s),this.initPageSetting(o),this.initHeaderFootSetting(r),this.initPagingSetting(a),this.initColumnSetting(s)}initExportSetting(e){const t=$(`<div class="form-group" style="margin-top: 12px;display: inline-block"><label>${window.i18n.dialog.setting.sheetExport}</label></div>`);e.append(t),this.disabledExcelSheetRadio=$(`<label class="checkbox-inline" style="padding-left: 5px">\n <input type="radio" name="useColumn" value="true" checked> ${window.i18n.dialog.setting.disable}\n </label>`),t.append(this.disabledExcelSheetRadio),this.enabledExcelSheetRadio=$(`<label class="checkbox-inline">\n <input type="radio" name="useColumn" value="true"> ${window.i18n.dialog.setting.enable}\n </label>`),t.append(this.enabledExcelSheetRadio);const n=this;this.disabledExcelSheetRadio.children("input").click(function(){n.paper.columnEnabled=!1,n.sheetSizeEditor.prop("disabled",!0)}),this.enabledExcelSheetRadio.children("input").click(function(){n.paper.columnEnabled=!0,n.sheetSizeEditor.prop("disabled",!1)});const o=$(`<div class="form-group"><label>${window.i18n.dialog.setting.recordCountPerPage}</label></div>`);this.sheetSizeEditor=$('<input type="number" class="form-control" value="65535" style="display: inline-block;width:100px">'),o.append(this.sheetSizeEditor),e.append(o),this.sheetSizeEditor.prop("disabled",!0),this.sheetSizeEditor.change(function(){const e=$(this).val();parseInt(e)<1?Object(i.a)(`${window.i18n.dialog.setting.recordCountTip}`):this.paper.sheetSize=e})}initPageSetting(e){const t=$(`<div class="form-group" style="margin-top: 12px;display: inline-block"><label>${window.i18n.dialog.setting.paperType}</label></div>`);e.append(t),this.pageSelect=$(`<select class="form-control" style="display: inline-block;width: 95px;">\n <option>A0</option>\n <option>A1</option>\n <option>A2</option>\n <option>A3</option>\n <option>A4</option>\n <option>A5</option>\n <option>A6</option>\n <option>A7</option>\n <option>A8</option>\n <option>A9</option>\n <option>A10</option>\n <option>B0</option>\n <option>B1</option>\n <option>B2</option>\n <option>B3</option>\n <option>B4</option>\n <option>B5</option>\n <option>B6</option>\n <option>B7</option>\n <option>B8</option>\n <option>B9</option>\n <option>B10</option>\n <option value="CUSTOM">${window.i18n.dialog.setting.custom}</option>\n </select>`),t.append(this.pageSelect);const n=this;this.pageSelect.change(function(){let e=$(this).val();if("CUSTOM"===e)n.pageWidthEditor.prop("readonly",!1),n.pageHeightEditor.prop("readonly",!1);else{n.pageWidthEditor.prop("readonly",!0),n.pageHeightEditor.prop("readonly",!0);let t=n.paperSizeList[e];n.pageWidthEditor.val(t.width),n.pageHeightEditor.val(t.height),n.paper.width=Object(o.f)(t.width),n.paper.height=Object(o.f)(t.height),n.context.printLine.refresh()}n.paper.paperType=e,Object(o.k)()});const r=$(`<div class="form-group" style="display: inline-block;margin-left: 25px"><span>${window.i18n.dialog.setting.paperWidth}</span></div>`);e.append(r),this.pageWidthEditor=$('<input type="number" class="form-control" readonly style="display: inline-block;width: 80px;">'),r.append(this.pageWidthEditor),this.pageWidthEditor.change(function(){let e=$(this).val();e&&!isNaN(e)?(n.paper.width=Object(o.f)(e),n.context.printLine.refresh(),Object(o.k)()):Object(i.a)(`${window.i18n.dialog.setting.numberTip}`)});const a=$(`<div class="form-group" style="display: inline-block;margin-left: 15px"><span>${window.i18n.dialog.setting.paperHeight}</span></div>`);e.append(a),this.pageHeightEditor=$('<input type="number" class="form-control" readonly style="display: inline-block;width: 80px;">'),a.append(this.pageHeightEditor),this.pageHeightEditor.change(function(){let e=$(this).val();e&&!isNaN(e)?(n.paper.height=Object(o.f)(e),Object(o.k)()):Object(i.a)(`${window.i18n.dialog.setting.numberTip}`)});const s=$(`<div class="form-group" style="display: inline-block;margin-top: 5px;"><label>${window.i18n.dialog.setting.leftMargin}</label></div>`);e.append(s),this.leftMarginEditor=$('<input type="number" class="form-control" style="display: inline-block;width: 70px;padding: 2px">'),s.append(this.leftMarginEditor),this.leftMarginEditor.change(function(){let e=$(this).val();e&&!isNaN(e)?(n.paper.leftMargin=Object(o.f)(e),n.context.printLine.refresh(),Object(o.k)()):Object(i.a)(`${window.i18n.dialog.setting.numberTip}`)});const l=$(`<div class="form-group" style="display: inline-block;margin-top: 5px;margin-left: 25px""><label>${window.i18n.dialog.setting.rightMargin}</label></div>`);e.append(l),this.rightMarginEditor=$('<input type="number" class="form-control" style="display: inline-block;width: 70px;padding: 2px">'),l.append(this.rightMarginEditor),e.append("<div></div>"),this.rightMarginEditor.change(function(){let e=$(this).val();e&&!isNaN(e)?(n.paper.rightMargin=Object(o.f)(e),n.context.printLine.refresh(),Object(o.k)()):Object(i.a)(`${window.i18n.dialog.setting.numberTip}`)});const d=$(`<div class="form-group" style="display: inline-block;margin-top: 5px;"><label>${window.i18n.dialog.setting.topMargin}</label></div>`);e.append(d),this.topMarginEditor=$('<input type="number" class="form-control" style="display: inline-block;width: 70px;padding: 2px">'),d.append(this.topMarginEditor),this.topMarginEditor.change(function(){let e=$(this).val();e&&!isNaN(e)?(n.paper.topMargin=Object(o.f)(e),Object(o.k)()):Object(i.a)(`${window.i18n.dialog.setting.numberTip}`)});const c=$(`<div class="form-group" style="display: inline-block;margin-top: 5px;margin-left: 25px""><label>${window.i18n.dialog.setting.bottomMargin}</label></div>`);e.append(c),this.bottomMarginEditor=$('<input type="number" class="form-control" style="display: inline-block;width: 70px;padding: 2px">'),c.append(this.bottomMarginEditor),this.bottomMarginEditor.change(function(){let e=$(this).val();e&&!isNaN(e)?(n.paper.bottomMargin=Object(o.f)(e),Object(o.k)()):Object(i.a)(`${window.i18n.dialog.setting.numberTip}`)});const u=$(`<div class="form-group"><label>${window.i18n.dialog.setting.orientation}</label></div>`);e.append(u),this.orientationSelect=$(`<select class="form-control" style="display:inline-block;width: 312px">\n <option value="portrait">${window.i18n.dialog.setting.portrait}</option>\n <option value="landscape">${window.i18n.dialog.setting.landscape}</option>\n </select>`),u.append(this.orientationSelect),this.orientationSelect.change(function(){let e=$(this).val();n.paper.orientation=e,n.context.printLine.refresh(),Object(o.k)()});const h=$(`<div class="form-group"><label>${window.i18n.dialog.setting.htmlAlign}</label></div>`);e.append(h),this.htmlReportAlignSelect=$(`<select class="form-control" style="display:inline-block;width: 80px">\n <option value="left">${window.i18n.dialog.setting.left}</option>\n <option value="center">${window.i18n.dialog.setting.center}</option>\n <option value="right">${window.i18n.dialog.setting.right}</option>\n </select>`),this.htmlReportAlignSelect.change(function(){let e=$(this).val();n.paper.htmlReportAlign=e,Object(o.k)()}),h.append(this.htmlReportAlignSelect);const f=$(`<span style="margin-left: 35px;"><label>${window.i18n.dialog.setting.refreshSecond}</label></span>`);h.append(f),this.htmlIntervalEditor=$(`<input type="number" class="form-control" placeholder="${window.i18n.dialog.setting.tip1}" title="${window.i18n.dialog.setting.tip2}" value="0" style="width: 90px;display: inline-block">`),f.append(this.htmlIntervalEditor),this.htmlIntervalEditor.change(function(){let e=$(this).val();isNaN(e)?Object(i.a)(`${window.i18n.dialog.setting.secondTip}`):parseInt(e)<0?Object(i.a)(`${window.i18n.dialog.setting.secondTip}`):(n.paper.htmlIntervalRefreshValue=e,Object(o.k)())});const p=$(`<div class="form-group"><label>${window.i18n.dialog.setting.bg}</label></div>`);e.append(p),this.bgImageEditor=$(`<input type="text" class="form-control" style="display: inline-block;width: 470px;" placeholder="${window.i18n.dialog.setting.bgTip}">`),p.append(this.bgImageEditor),this.bgImageEditor.change(function(){let e=$(this).val();n.paper.bgImage=e,""===e?$(".ht_master").css("background","transparent"):$(".ht_master").css("background",`url(${e}) 50px 26px no-repeat`),Object(o.k)()})}initHeaderFootSetting(e){const t=this,n=$(`<div class="form-group" style="margin-top: 10px;color: #999999;">\n ${window.i18n.dialog.setting.hfdesc}\n </div>`);e.append(n);const i=$(`<label>${window.i18n.dialog.setting.header}</label>`);e.append(i);const r=$(`<button type="button" class="btn btn-link" style="margin-left: 10px;">${window.i18n.dialog.setting.fontStyleSetting}</button>`);e.append(r);const a=$(`<span style="margin-left:10px"><span>${window.i18n.dialog.setting.headerMargin}</span></span>`);e.append(a),this.headerMarginEditor=$('<input type="number" class="form-control" style="display: inline-block;width:100px;padding: 5px;height: 26px;">'),a.append(this.headerMarginEditor),this.headerMarginEditor.change(function(){t.header.margin=Object(o.f)($(this).val()),Object(o.k)()});const s=new z,l=$('<div class="form-group"></div>');e.append(l);const d=$(`<span><span style="vertical-align: top">${window.i18n.dialog.setting.hfLeft}</span></span>`);l.append(d),this.leftHeaderEditor=$('<textarea class="form-control" style="font-size:10pt;font-family:\'宋体\';padding: 5px;display: inline-block;width: 140px;height: 80px;margin-top: 15px"></textarea>'),d.append(this.leftHeaderEditor),this.leftHeaderEditor.change(function(){const e=$(this).val();U(e,function(){t.header.left=e,Object(o.k)()})});const c=$(`<span style="margin-left: 15px;"><span style="vertical-align: top">${window.i18n.dialog.setting.hfCenter}</span></span>`);l.append(c),this.centerHeaderEditor=$('<textarea class="form-control" style="padding: 5px;font-size:10pt;font-family:\'宋体\';display: inline-block;width: 140px;height: 80px;margin-top: 15px"></textarea>'),c.append(this.centerHeaderEditor),this.centerHeaderEditor.change(function(){const e=$(this).val();U(e,function(){t.header.center=e,Object(o.k)()})});const u=$(`<span style="margin-left: 15px;"><span style="vertical-align: top">${window.i18n.dialog.setting.hfRight}</span></span>`);l.append(u),this.rightHeaderEditor=$('<textarea class="form-control" style="padding: 5px;font-size:10pt;font-family:\'宋体\';display: inline-block;width: 140px;height: 80px;margin-top: 15px"></textarea>'),u.append(this.rightHeaderEditor),this.rightHeaderEditor.change(function(){const e=$(this).val();U(e,function(){t.header.right=e,Object(o.k)()})});const h=$(`<label style="margin-top: 10px;">${window.i18n.dialog.setting.footer}</label>`);e.append(h);const f=$(`<button type="button" class="btn btn-link" style="margin-left: 10px;">${window.i18n.dialog.setting.fontStyleSetting}</button>`);e.append(f);const p=$(`<span style="margin-left:10px"><span>${window.i18n.dialog.setting.footerMargin}</span></span>`);e.append(p),this.footerMarginEditor=$('<input type="number" class="form-control" style="display: inline-block;width:100px;padding: 5px;height: 26px;">'),p.append(this.footerMarginEditor),this.footerMarginEditor.change(function(){t.footer.margin=Object(o.f)($(this).val()),Object(o.k)()});const m=$('<div class="form-group" style="margin-bottom: 5px"></div>');e.append(m);const g=$(`<span><span style="vertical-align: top">${window.i18n.dialog.setting.hfLeft}</span></span>`);m.append(g),this.leftFooterEditor=$('<textarea class="form-control" style="padding: 5px;font-size:10pt;font-family:\'宋体\';display: inline-block;width: 140px;height: 80px;margin-top: 15px"></textarea>'),g.append(this.leftFooterEditor),this.leftFooterEditor.change(function(){const e=$(this).val();U(e,function(){t.footer.left=e,Object(o.k)()})});const y=$(`<span style="margin-left: 15px;"><span style="vertical-align: top">${window.i18n.dialog.setting.hfCenter}</span></span>`);m.append(y),this.centerFooterEditor=$('<textarea class="form-control" style="padding: 5px;font-size:10pt;font-family:\'宋体\';display: inline-block;width: 140px;height: 80px;margin-top: 15px"></textarea>'),y.append(this.centerFooterEditor),this.centerFooterEditor.change(function(){const e=$(this).val();U(e,function(){t.footer.center=e,Object(o.k)()})});const v=$(`<span style="margin-left: 15px;"><span style="vertical-align: top">${window.i18n.dialog.setting.hfRight}</span></span>`);m.append(v),this.rightFooterEditor=$('<textarea class="form-control" style="padding: 5px;font-size:10pt;font-family:\'宋体\';display: inline-block;width: 140px;height: 80px;margin-top: 15px"></textarea>'),v.append(this.rightFooterEditor),this.rightFooterEditor.change(function(){const e=$(this).val();U(e,function(){t.footer.right=e,Object(o.k)()})}),r.click(function(){s.show(t.header,function(e){Q(t.leftHeaderEditor,e),Q(t.centerHeaderEditor,e),Q(t.rightHeaderEditor,e)})}),f.click(function(){s.show(t.footer,function(e){Q(t.leftFooterEditor,e),Q(t.centerFooterEditor,e),Q(t.rightFooterEditor,e)})})}initPagingSetting(e){const t=this,n=$(`<div class="form-group" style="margin-top: 10px;height: 12px;"><label>${window.i18n.dialog.setting.pagingType}</label></div>`);e.append(n),this.fitPage=$(`<label class="checkbox-inline" style="padding-left: 5px">\n <input type="radio" name="pagingType" value="true"> ${window.i18n.dialog.setting.auto}\n </label>`),n.append(this.fitPage),this.fixNum=$(`<label class="checkbox-inline" style="padding-left: 5px">\n <input type="radio" name="pagingType" value="true"> ${window.i18n.dialog.setting.fixRows}\n </label>`),n.append(this.fixNum);const r=$(`<span style="margin-left: 15px"><span>${window.i18n.dialog.setting.rowsPerPage}</span></span>`);n.append(r),r.hide(),this.rowNumberEditor=$('<input type="number" class="form-control" style="display: inline-block;width: 80px;padding: 5px;height: 30px;">'),r.append(this.rowNumberEditor),this.rowNumberEditor.change(function(){const e=parseInt($(this).val());e<1?Object(i.a)(`${window.i18n.dialog.setting.fixRowsTip}`):(t.paper.fixRows=e,Object(o.k)())}),this.fitPage.children("input").click(function(){r.hide(),t.paper.pagingMode="fitpage",Object(o.k)()}),this.fixNum.children("input").click(function(){r.show(),t.paper.pagingMode="fixrows",Object(o.k)()})}initColumnSetting(e){e.append(`<div style="margin-top: 12px;color:#999999;font-size: 12px">${window.i18n.dialog.setting.colDesc}</div>`);const t=this,n=$(`<div class="form-group" style="margin-top: 8px;"><label>${window.i18n.dialog.setting.column}</label></div>`);e.append(n),this.disabledColumnRadio=$(`<label class="checkbox-inline" style="padding-left: 5px">\n <input type="radio" name="useColumn" value="true"> ${window.i18n.dialog.setting.disable}\n </label>`),n.append(this.disabledColumnRadio),this.enabledColumnRadio=$(`<label class="checkbox-inline">\n <input type="radio" name="useColumn" value="true"> ${window.i18n.dialog.setting.enable}\n </label>`),n.append(this.enabledColumnRadio),this.disabledColumnRadio.children("input").click(function(){t.paper.columnEnabled=!1,t.columnCountSelect.prop("disabled",!0),t.columnMarginEditor.prop("readonly",!0)}),this.enabledColumnRadio.children("input").click(function(){t.paper.columnEnabled=!0,t.columnCountSelect.prop("disabled",!1),t.columnMarginEditor.prop("readonly",!1)});const r=$(`<div class="form-group" style="margin-top: 1px;display: inline-block"><label>${window.i18n.dialog.setting.columnCount}</label></div>`);e.append(r),this.columnCountSelect=$(`<select class="form-control" style="display: inherit;width: inherit;padding-left: 5px">\n <option value="2">2${window.i18n.dialog.setting.columnUnit}</option>\n <option value="3">3${window.i18n.dialog.setting.columnUnit}</option>\n <option value="4">4${window.i18n.dialog.setting.columnUnit}</option>\n <option value="5">5${window.i18n.dialog.setting.columnUnit}</option>\n <option value="6">6${window.i18n.dialog.setting.columnUnit}</option>\n <option value="7">7${window.i18n.dialog.setting.columnUnit}</option>\n <option value="8">8${window.i18n.dialog.setting.columnUnit}</option>\n <option value="9">9${window.i18n.dialog.setting.columnUnit}</option>\n <option value="10">10${window.i18n.dialog.setting.columnUnit}</option>\n </select>`),r.append(this.columnCountSelect),this.columnCountSelect.change(function(){let e=$(this).val();e&&!isNaN(e)?(t.paper.columnCount=e,Object(o.k)()):Object(i.a)(`${window.i18n.dialog.setting.columnTip}`)});const a=$(`<span style="margin-left: 20px"><label>${window.i18n.dialog.setting.columnMargin}</label></span>`);r.append(a),this.columnMarginEditor=$('<input type="number" class="form-control" style="width: 50px;display: inline-block">'),a.append(this.columnMarginEditor),this.columnMarginEditor.change(function(){let e=$(this).val();e&&!isNaN(e)?(t.paper.columnMargin=Object(o.f)(e),Object(o.k)()):Object(i.a)(`${window.i18n.dialog.setting.numTip}`)})}show(e){this.context=e,this.reportDef=this.context.reportDef,this.paper=this.reportDef.paper,this.reportDef.header||(this.reportDef.header={margin:30}),this.reportDef.footer||(this.reportDef.footer={margin:30}),this.header=this.reportDef.header,this.footer=this.reportDef.footer,this.dialog.modal("show"),this.pageSelect.val(this.paper.paperType),this.htmlReportAlignSelect.val(this.paper.htmlReportAlign),this.htmlIntervalEditor.val(this.paper.htmlIntervalRefreshValue),this.bgImageEditor.val(this.paper.bgImage||""),this.pageWidthEditor.val(Object(o.g)(this.paper.width)),this.pageHeightEditor.val(Object(o.g)(this.paper.height)),this.pageSelect.trigger("change"),this.leftMarginEditor.val(Object(o.g)(this.paper.leftMargin)),this.rightMarginEditor.val(Object(o.g)(this.paper.rightMargin)),this.topMarginEditor.val(Object(o.g)(this.paper.topMargin)),this.bottomMarginEditor.val(Object(o.g)(this.paper.bottomMargin)),this.orientationSelect.val(this.paper.orientation),this.columnMarginEditor.val(Object(o.g)(this.paper.columnMargin)),this.columnCountSelect.val(this.paper.columnCount),this.paper.columnEnabled?(this.enabledColumnRadio.children("input").trigger("click"),this.enabledColumnRadio.children("input").prop("checked",!0)):(this.disabledColumnRadio.children("input").trigger("click"),this.disabledColumnRadio.children("input").prop("checked",!0)),this.headerMarginEditor.val(Object(o.g)(this.header.margin)),this.footerMarginEditor.val(Object(o.g)(this.footer.margin)),Q(this.leftHeaderEditor,this.header),Q(this.centerHeaderEditor,this.header),Q(this.rightHeaderEditor,this.header),Q(this.leftFooterEditor,this.footer),Q(this.centerFooterEditor,this.footer),Q(this.rightFooterEditor,this.footer),this.leftHeaderEditor.val(this.header.left),this.centerHeaderEditor.val(this.header.center),this.rightHeaderEditor.val(this.header.right),this.leftFooterEditor.val(this.footer.left),this.centerFooterEditor.val(this.footer.center),this.rightFooterEditor.val(this.footer.right),"fitpage"===this.paper.pagingMode?(this.fitPage.children("input").trigger("click"),this.fitPage.children("input").prop("checked",!0)):(this.fixNum.children("input").trigger("click"),this.fixNum.children("input").prop("checked",!0),this.rowNumberEditor.val(this.paper.fixRows))}}function U(e,t){if(!e||""===e)return void t.call(this);const n=window._server+"/designer/scriptValidation";$.ajax({url:n,data:{content:e},type:"POST",success:function(e){let n="";for(let t of e)n+=t.message;""!==n?Object(i.a)(`${window.i18n.dialog.setting.syntaxError}${n}`):t.call(this)},error:function(){Object(i.a)(`${window.i18n.dialog.setting.syntaxCheckFail}`)}})}function Q(e,t){e.css({"font-family":t.fontFamily,"font-size":t.fontSize+"pt",color:"rgb("+t.forecolor+")"}),t.bold&&"false"!==t.bold?e.css("font-weight","bold"):e.css("font-weight","normal"),t.italic&&"false"!==t.italic?e.css("font-style","italic"):e.css("font-style","normal"),t.underline&&"false"!==t.underline?e.css("text-decoration","underline"):e.css("text-decoration","none")}class G{constructor(){this.dialog=$('<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 11003">\n <div class="modal-dialog modal-lg" style="width: 1200px">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n 查询表单设计器\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>');const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t),this.dialog.on("hide.bs.modal",function(){window.__current_report_def._formBuilder.buildData()}),this.index=0}initBody(e,t){this.iframe=$('<iframe frameborder="0" width="100%" height="500px"></iframe>'),e.append(this.iframe)}show(e){window.__current_report_def=e,this.dialog.modal("show");const t=window._server+"/searchFormDesigner?_i"+this.index++;this.iframe.prop("src",t)}}var V=n(10),J=n.n(V),K=n(20),X=n.n(K);n(168),n(167);class q{constructor(e){this.data=e,this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.sqlParam.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>`);const t=this.dialog.find(".modal-body"),n=this.dialog.find(".modal-footer");this.init(t,n)}init(e,t){const n=$(`<div class="row" style="margin-bottom: 10px;margin-right:6px;"><div class="col-md-3" style="padding: 0 10px 0 0px;text-align:right;margin-top:5px">${window.i18n.dialog.sqlParam.name}</div></div>`),o=$('<div class="col-md-9" style="padding: 0 10px 0 0px"></div>');this.nameEditor=$('<input type="text" class="form-control">'),o.append(this.nameEditor),n.append(o),e.append(n);const r=$(`<div class="row" style="margin-bottom: 10px;margin-right:6px;"><div class="col-md-3" style="padding: 0 10px 0 0px;text-align:right;margin-top:5px">${window.i18n.dialog.sqlParam.datatype}</div></div>`),a=$('<div class="col-md-9" style="padding: 0 10px 0 0px"></div>');this.typeEditor=$('<select class="form-control">\n <option>String</option>\n <option>Integer</option>\n <option>Float</option>\n <option>Boolean</option>\n <option>Date</option>\n <option>List</option>\n </select>'),a.append(this.typeEditor),r.append(a),e.append(r);const s=$(`<div class="row" style="margin-bottom: 10px;margin-right:6px;"><div class="col-md-3" style="padding: 0 10px 0 0px;text-align:right;margin-top:5px">${window.i18n.dialog.sqlParam.defaultValue}</div></div>`),l=$('<div class="col-md-9" style="padding: 0 10px 0 0px"></div>');this.defaultValueEditor=$(`<input type="text" placeholder="${window.i18n.dialog.sqlParam.tip}" class="form-control">`),l.append(this.defaultValueEditor),s.append(l),e.append(s);const d=this,c=$(`<button class="btn btn-primary">${window.i18n.dialog.sqlParam.ok}</button>`);t.append(c),c.click(function(){const e=d.nameEditor.val(),t=d.typeEditor.val(),n=d.defaultValueEditor.val();if(""!==e)if(""!==t){if(!d.editData||e!==d.editData.name)for(let t of d.data)if(t.name===e)return void Object(i.a)(`${window.i18n.dialog.sqlParam.param}[${e}]${window.i18n.dialog.sqlParam.exist}`);d.onSave.call(this,e,t,n),d.dialog.modal("hide")}else Object(i.a)(`${window.i18n.dialog.sqlParam.datatypeTip}`);else Object(i.a)(`${window.i18n.dialog.sqlParam.nameTip}`)})}show(e,t){this.onSave=e,this.dialog.modal("show"),t&&(this.editData=t,this.nameEditor.val(t.name),this.typeEditor.val(t.type),this.defaultValueEditor.val(t.defaultValue))}}class Z{constructor(e,t){this.data=t;const n=$(`<button type="button" class="btn btn-info">${window.i18n.dialog.paramTable.addParam}</button>`);e.append(n);const i=this,o=$(`<table class="table table-bordered" style="margin-bottom: 0">\n <thead>\n <tr style="background: #f4f4f4;height: 30px;"><td style="vertical-align: middle">${window.i18n.dialog.paramTable.paramName}</td><td style="vertical-align: middle">${window.i18n.dialog.paramTable.paramDatatype}</td><td style="vertical-align: middle">${window.i18n.dialog.paramTable.defaultValue}</td><td style="vertical-align: middle;width: 80px;">${window.i18n.dialog.paramTable.operator}</td></tr>\n </thead>\n </table>`);this.body=$("<tbody></tbody>"),o.append(this.body),this._buildParameters(),e.append(o),this.parameterDialog=new q(this.data),n.click(function(){i.parameterDialog.show(function(e,t,n){const o={name:e,type:t,defaultValue:n};i.data.push(o);const r=$('<tr style="height: 35px;"></tr>'),a=$(`<td style="vertical-align: middle">${e}</td>`),s=$(`<td style="vertical-align: middle">${t}</td>`),l=$(`<td style="vertical-align: middle">${n}</td>`);r.append(a),r.append(s),r.append(l);const d=$('<td style="vertical-align: middle"></td>'),c=$(`<span><a href="###"><i class="glyphicon glyphicon-trash" title="${window.i18n.dialog.paramTable.delParam}" style="font-size: 12pt;color: #d30a16;"></a></span>`);d.append(c),r.append(d),i.body.append(r),c.click(function(){let e=i.data.indexOf(o);i.data.splice(e,1),r.remove()});const u=$(`<span><a href="###"><i class="glyphicon glyphicon-edit" title="${window.i18n.dialog.paramTable.editParam}" style="font-size: 12pt;color: #005fd3;margin-left: 10px"></a></span>`);d.append(u),u.click(function(){i.parameterDialog.show(function(e,t,n){o.name=e,o.type=t,o.defaultValue=n,a.html(e),s.html(t),l.html(n)},o)})},null)})}refreshData(){this.body.empty(),this.parameterDialog.data=this.data,this._buildParameters()}_buildParameters(){const e=this;for(let t of this.data){const n=$('<tr style="height: 35px;"></tr>'),i=$(`<td style="vertical-align: middle">${t.name}</td>`),o=$(`<td style="vertical-align: middle">${t.type}</td>`),r=$(`<td style="vertical-align: middle">${t.defaultValue}</td>`);n.append(i),n.append(o),n.append(r);const a=$('<td style="vertical-align: middle"></td>'),s=$(`<span><a href="###"><i class="glyphicon glyphicon-trash" title="${window.i18n.dialog.paramTable.delParam}" style="font-size: 12pt;color: #d30a16;"></a></span>`);a.append(s),n.append(a),s.click(function(){let i=e.data.indexOf(t);e.data.splice(i,1),n.remove()}),this.body.append(n);const l=$(`<span><a href="###"><i class="glyphicon glyphicon-edit" title="${window.i18n.dialog.paramTable.editParam}" style="font-size: 12pt;color: #005fd3;margin-left: 10px"></a></span>`);a.append(l),l.click(function(){e.parameterDialog.show(function(e,n,a){t.name=e,t.type=n,t.defaultValue=a,i.html(e),o.html(n),r.html(a)},t)})}}}class ee{constructor(){const e=$(window).width();$(window).height(),this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog modal-lg" style="width: ${e-100}px;">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.preview.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`),this.body=this.dialog.find(".modal-body");const t=this.dialog.find(".modal-footer");this.initBody(),this.initButton(t)}initBody(){this.body.append(`${window.i18n.dialog.preview.load}`)}initButton(e){const t=$(`<button class="btn btn-primary">${window.i18n.dialog.preview.ok}</button>`);e.append(t);const n=this;t.click(function(){n.dialog.modal("hide")})}showData(e){this.body.empty();const t=e.data;this.body.append(`<div style="height: 30px;background: #fdfdfd;">\n <span style="margin: 4px;">${window.i18n.dialog.preview.total}${e.total}${window.i18n.dialog.preview.totalMid}${e.currentTotal}${window.i18n.dialog.preview.item}</span>\n </div>`);const n=$('<div style="overflow-x: auto"></div>');this.body.append(n);const i=$('<table class="table table-bordered" style="margin-top: 2px;table-layout: fixed"></table>');n.append(i);const o=e.fields,r=$('<tr style="background: #f3f3f3"></tr>');for(let e of o)r.append(`<td style="word-wrap:break-word;width: 120px">${e}</td>`);const a=$("<thead></thead>");a.append(r),i.append(a);const s=$("<tbody></tbody>");i.append(s);for(let e of t){const t=$("<tr></tr>");for(let n of o)t.append(`<td style="word-wrap:break-word">${e[n]}</td>`);s.append(t)}}showError(e){this.body.empty(),this.body.append(e)}show(){this.dialog.modal("show")}}class te{constructor(e,t){this.db=e,this.datasources=e.datasources,this.data=t,this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000;overflow: auto">\n <div class="modal-dialog modal-lg" style="width: 980px">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.sql.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>`);const n=this.dialog.find(".modal-body"),i=this.dialog.find(".modal-footer"),o=$("<div></div>");n.append(o);const r=$('<div style="width: 250px;display: inline-block;vertical-align: top;height: 450px;overflow: auto;"></div>'),a=$('<div style="display: inline-block"></div>');o.append(r),o.append(a),this.initTables(r),this.initSqlEditor(a),this.initParameterEditor(a),this.initButton(i)}initTables(e){const t=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(t);const n=$(`<input class="form-control" placeholder="${window.i18n.dialog.sql.search}" style="display: inline-block;width: 150px;">`);t.append(n);const i=$('<button class="btn btn-default"><i class="glyphicon glyphicon-search"></i></button>');t.append(i);const o=this;i.click(function(){const e=n.val(),t=o.tableBody.children("tr");for(let n of t){const t=$(n);if(!e||""===e){t.show();continue}const i=t.find("a");$(i).text().indexOf(e)>-1?t.show():t.hide()}});const r=$(`<table class="table table-bordered" style="font-size: 12px"><thead><tr style="height: 30px;background: #fafafa"><td style="width: 135px;vertical-align: middle">${window.i18n.dialog.sql.tableName}</td><td style="width: 35px;vertical-align: middle">${window.i18n.dialog.sql.type}</td></tr></thead></table>`);this.tableBody=$("<tbody></tbody>"),r.append(this.tableBody),e.append(r)}initSqlEditor(e){const t=$(`<div class="row" style="margin: 10px;">${window.i18n.dialog.sql.datasetName}</div>`);this.nameEditor=$('<input type="text" class="form-control" style="font-size: 13px;width:570px;display: inline-block">'),t.append(this.nameEditor),e.append(t);const n=$(`<div class="row" style="margin:10px;">SQL(<span style="color: #999999;font-size: 12px;">${window.i18n.dialog.sql.desc}`);this.sqlEditor=$('<textarea placeholder="select username,dept_id from employee where dept_id=:deptId" class="form-control" rows="8" cols="30" style="width: 660px"></textarea>'),n.append(this.sqlEditor),e.append(n)}_buildScriptLintFunction(){return function(e,t,n,o){if(""===e)return void t(o,[]);if(!e||""===e)return;const r=e.substring(0,2),a=e.substring(e.length-1,e.length);if("${"!==r||"}"!==a)return;e=e.substring(2,e.length-1);const s=window._server+"/designer/scriptValidation";$.ajax({url:s,data:{content:e},type:"POST",success:function(e){if(e){for(let t of e)t.from={line:t.line-1},t.to={line:t.line-1};t(o,e)}else t(o,[])},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.dialog.sql.syntaxCheckError}`)}})}}initParameterEditor(e){const t=$(`<div class="row" style="margin:10px;">${window.i18n.dialog.sql.fiterParam}<span class="text-info">${window.i18n.dialog.sql.paramDesc}</span>:</div>`);e.append(t);const n=$('<div class="row" style="margin:10px;"></div>');e.append(n),this.parameterTable=new Z(n,this.data.parameters)}initButton(e){const t=this,n=$(`<button class="btn btn-primary">${window.i18n.dialog.sql.preview}</button>`);e.append(n),n.click(function(){const e=t.codeMirror.getValue(),n=t.db.type,o={sql:e,type:n,parameters:JSON.stringify(t.data.parameters)};"jdbc"===n?(o.username=t.db.username,o.password=t.db.password,o.driver=t.db.driver,o.url=t.db.url):"buildin"===n&&(o.name=t.db.name);const r=new ee;r.show();const a=window._server+"/datasource/previewData";$.ajax({type:"POST",url:a,data:o,success:function(e){r.showData(e)},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):r.showError(`<div style='color: #d30e00;'>${window.i18n.dialog.sql.previewFail}</div>`)}})});const r=$(`<button class="btn btn-primary">${window.i18n.dialog.sql.ok}</button>`);e.append(r),r.click(function(){const e=t.nameEditor.val(),n=t.codeMirror.getValue();if(!e||""===e)return void Object(i.a)(`${window.i18n.dialog.sql.nameTip}`);if(!n||""===n)return void Object(i.a)(`${window.i18n.dialog.sql.sqlTip}`);let r=!1;if(t.oldName&&e===t.oldName||(r=!0),r)for(let n of t.datasources){let t=n.datasets;for(let n of t)if(n.name===e)return void Object(i.a)(`${window.i18n.dialog.sql.ds}[${e}]${window.i18n.dialog.sql.exist}`)}t.onSave.call(this,e,n,t.data.parameters),Object(o.k)(),t.dialog.modal("hide")})}show(e,t){this.onSave=e,t&&(this.data=t,this.parameterTable.data=this.data.parameters),this.dialog.modal("show"),this.oldName=this.data.name,this.nameEditor.val(this.data.name),this.parameterTable.refreshData(),setTimeout(()=>{this.codeMirror||(this.codeMirror=X.a.fromTextArea(this.sqlEditor.get(0),{mode:"javascript",lineNumbers:!0,gutters:["CodeMirror-linenumbers","CodeMirror-lint-markers"],lint:{getAnnotations:this._buildScriptLintFunction(),async:!0}}),this.codeMirror.setSize("660px","160px")),this.codeMirror.setValue(this.data.sql)},500);const n=this.db.type,o={type:n};"jdbc"===n?(o.username=this.db.username,o.password=this.db.password,o.driver=this.db.driver,o.url=this.db.url):"buildin"===n&&(o.name=this.db.name);const r=this,a=window._server+"/datasource/buildDatabaseTables";$.ajax({type:"POST",data:o,url:a,success:function(e){r.tableBody.empty();for(let t of e){const e=$('<tr style="height: 30px"></tr>'),n=$(`<td style="vertical-align: middle"><a href="###" title="${window.i18n.dialog.sql.addSql}">${t.name}</a></td>`);e.append(n),n.dblclick(function(){const e="select * from "+t.name;r.codeMirror.setValue(e)});const i=$('<td style="vertical-align: middle"></td>');e.append(i),"TABLE"===t.type?i.append(`<span style="color: #49a700">${window.i18n.dialog.sql.table}</span>`):i.append(`<span style="color: #8B2252">${window.i18n.dialog.sql.view}</span>`),r.tableBody.append(e)}},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.dialog.sql.loadFail}`)}})}}class ne{_buildClickEvent(e,t,n){let r=n.hot,a=(n.cellsMap,r.getSelected());if(!a||0===a.length)return void Object(i.a)(`${window.i18n.tree.cellTip}`);let s=a[0],l=a[1],d=n.getCell(s,l),c=Object.assign({},d);"dataset"!==d.value.type&&(n.removeCell(d),d={value:{type:"dataset",conditions:[]},rowNumber:d.rowNumber,columnNumber:d.columnNumber,cellStyle:d.cellStyle},n.addCell(d)),d.expand="Down";let u=d.value;u.aggregate="group",u.datasetName=e.name,u.property=t.name,u.order="none";let h=u.datasetName+"."+u.aggregate+"(",f=u.property;h+=f+")",r.setDataAtCell(s,l,h),Object(o.k)(),r.render(),w.a.hooks.run(r,"afterSelectionEnd",a[0],a[1],a[2],a[3]),o.n.add({redo:function(){d=n.getCell(s,l),c=Object.assign({},d),"dataset"!==d.value.type&&(n.removeCell(d),d={value:{type:"dataset",conditions:[]},rowNumber:d.rowNumber,columnNumber:d.columnNumber,cellStyle:d.cellStyle},n.addCell(d)),d.expand="Down",(u=d.value).aggregate="group",u.datasetName=e.name,u.property=t.name,u.order="none",h=u.datasetName+"."+u.aggregate+"(",f=u.property,h+=f+")",r.setDataAtCell(s,l,h),Object(o.k)(),r.render(),w.a.hooks.run(r,"afterSelectionEnd",a[0],a[1],a[2],a[3])},undo:function(){d=n.getCell(s,l),n.removeCell(d),n.addCell(c);let e=(u=c.value).value||"";"dataset"===u.type&&(e=u.datasetName+"."+u.aggregate+"(",e+=u.property+")"),r.setDataAtCell(s,l,e),Object(o.k)(),r.render(),w.a.hooks.run(r,"afterSelectionEnd",a[0],a[1],a[2],a[3])}})}}class ie extends ne{constructor(e,t,n,i,o){super(),this.type="jdbc",this.datasources=t,this.ds=n,this.datasets=n.datasets||[],this.datasourceDialog=i,this.context=o,this.id=J.a.v1(),this.name=n.name,this.username=n.username,this.password=n.password,this.driver=n.driver,this.url=n.url,this.init(e)}init(e){this.treeContainer=$('<div class="tree" style="margin-left: 10px"></div>'),e.append(this.treeContainer),this.ul=$('<ul style="padding-left: 20px;"></ul>'),this.treeContainer.append(this.ul),this._buildDatasource();for(let e of this.datasets){const t=this.addDataset(e);this.buildFileds(e,t)}}_buildDatasource(){this.datasourceLi=$("<li></li>");const e=$(`\n <span id="${this.id}">\n <i class='ureport ureport-minus' style='margin-right:2px'></i>\n <i class="ureport ureport-database"></i> <a href='###' class="ds_name">${this.name}</a>\n </span>`);this.datasourceLi.append(e),this.ul.append(this.datasourceLi),this.attachEvent(e,this.datasourceLi),this.datasetUL=$('<ul style="margin-left: -16px;"></ul>'),this.datasourceLi.append(this.datasetUL);const t=this,n=new te(this,{parameters:[]});$.contextMenu({selector:"#"+this.id,callback:function(o,r){"add"===o?($(r.selector),n.show(function(e,n,i){const o={name:e,sql:n,parameters:i};t.datasets.push(o);const r=t.addDataset(o);t.buildFileds(o,r)},{parameters:[]})):"delete"===o?Object(i.b)(`${window.i18n.tree.delConfirm}[${t.name}]?`,function(){let e=-1;const n=t.datasources;for(let i=0;i<n.length;i++)if(t.datasources[i].name===t.name){e=i;break}n.splice(e,1),t.treeContainer.remove()}):"edit"===o&&t.datasourceDialog.show(function(n,i,o,r,a){t.name=n,t.username=i,t.password=o,t.driver=r,t.url=a,t.ds.name=n,t.ds.username=i,t.ds.password=o,t.ds.driver=r,t.ds.url=a,e.find(".ds_name").html(n)},{name:t.name,username:t.username,password:t.password,driver:t.driver,url:t.url})},items:{add:{name:`${window.i18n.tree.addDataset}`,icon:"add"},edit:{name:`${window.i18n.tree.edit}`,icon:"edit"},delete:{name:`${window.i18n.tree.del}`,icon:"delete"}}})}addDataset(e){const t=$("<li></li>"),n=J.a.v1(),o=$(`<span id="${n}"><i class='ureport ureport-minus' style='margin-right:2px'></i> <i class="ureport ureport-sqlds"></i> <a href='###' class="dataset_name">${e.name}</a></span>`);t.append(o),this.datasetUL.append(t),this.attachEvent(o,t);const r=$('<ul style="padding-left: 22px;"></ul>');t.append(r);const a=this,s=new te(this,e),l=$(`<div>${window.i18n.tree.inputTip}</div>`),d=$('<input type="text" class="form-control">');return l.append(d),$.contextMenu({selector:"#"+n,callback:function(n,c){"add"===n?($(c.selector),Object(i.c)(`${window.i18n.tree.addField}`,l,function(){const t=d.val();for(let n of e.fields)if(n.name===t)return void Object(i.a)(`${window.i18n.tree.fieldExist}`);let n={name:t};e.fields.push(n),a.addField(e,e.fields,n,r)})):"delete"===n?Object(i.b)(`${window.i18n.tree.delDatasetConfirm}[${e.name}]?`,function(){let n=-1;for(let t=0;t<a.datasets.length;t++)if(a.datasets[t].name===e.name){n=t;break}a.datasets.splice(n,1),t.remove()}):"edit"===n?s.show(function(t,n,i){e.name=t,e.sql=n,e.parameters=i,o.find(".dataset_name").html(t),e.fields=null,a.buildFileds(e,r)}):"refresh"===n&&(e.fields=null,a.buildFileds(e,r))},items:{add:{name:`${window.i18n.tree.addField}`,icon:"add"},edit:{name:`${window.i18n.tree.edit}`,icon:"edit"},delete:{name:`${window.i18n.tree.del}`,icon:"delete"},refresh:{name:`${window.i18n.tree.refresh}`,icon:"loading"}}}),r}buildFileds(e,t){const n=e.fields,o=this;if(n){t.empty();for(let i of n)o.addField(e,n,i,t)}else $.ajax({url:window._server+"/datasource/buildFields",data:{sql:e.sql,parameters:JSON.stringify(e.parameters),username:this.username,password:this.password,driver:this.driver,url:this.url,type:"jdbc"},success:function(n){e.fields=n,t.empty();for(let i of n)o.addField(e,n,i,t)},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.tree.loadFieldFail}`)}})}addField(e,t,n,o){const r=this,a=$("<li></li>"),s=J.a.v1(),l=$(`<span id="${s}" title="${window.i18n.tree.doubleClick}"><i class="ureport ureport-property"></i> <a href='###'>${n.name}</a></span>`);a.append(l),l.dblclick(function(){r._buildClickEvent(e,n,r.context)}),o.append(a),$.contextMenu({selector:"#"+s,callback:function(e,o){"delete"===e&&Object(i.b)(`${window.i18n.tree.delFieldConfirm}[${n.name}]?`,function(){const e=t.indexOf(n);t.splice(e,1),a.remove()})},items:{delete:{name:`${window.i18n.tree.del}`,icon:"delete"}}})}attachEvent(e,t){e.click(function(n){let i=t.find(" > ul > li");i.is(":visible")?(i.hide("fast"),e.children("i:first").addClass("ureport-plus").removeClass("ureport-minus")):(i.show("fast"),e.children("i:first").addClass("ureport-minus").removeClass("ureport-plus")),n.stopPropagation()})}}class oe{constructor(){this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.methodSelect.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>`);const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t)}initBody(e,t){const n=$(`<table class="table table-bordered">\n <thead><tr style="background: #f4f4f4;height: 30px;"><td style="vertical-align: middle">${window.i18n.dialog.methodSelect.methodName}</td><td style="vertical-align: middle">${window.i18n.dialog.methodSelect.select}</td></tr></thead>\n </table>`);this.tbody=$("<tbody></tbody>"),n.append(this.tbody),e.append(n)}show(e,t){this.dialog.modal("show"),this.tbody.empty();const n=this;$.ajax({url:window._server+"/datasource/loadMethods",data:{beanId:t},success:function(t){for(let i of t){const t=$(`<tr style="height: 35px;"><td style="vertical-align: middle">${i}</td></tr>`),o=$('<td style="vertical-align: middle"></td>');t.append(o);const r=$('<a href="###"><i class="glyphicon glyphicon-hand-up" style="font-size: 13pt"></i></a>');r.click(function(){e.call(this,i),n.dialog.modal("hide")}),o.append(r),n.tbody.append(t)}},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.dialog.methodSelect.load}["+beanId+"]${window.i18n.dialog.methodSelect.fail}`)}})}}class re{constructor(e,t){this.datasources=e,this.beanId=t,this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.bean.beanDatasetConfig}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`);const n=this.dialog.find(".modal-body"),i=this.dialog.find(".modal-footer");this.initBody(n),this.initButton(i)}initBody(e){const t=$(`<div class="row" style="margin: 10px;"><div class="col-md-3" style="text-align: right;margin-top:8px">${window.i18n.dialog.bean.datasetName}</div></div>`),n=$('<div class="col-md-9" style="padding: 0px;"></div>');t.append(n),this.nameEditor=$('<input type="text" class="form-control">'),n.append(this.nameEditor),e.append(t);const i=this,o=$(`<div class="row" style="margin: 10px;"><div class="col-md-3" style="text-align: right;margin-top:8px">${window.i18n.dialog.bean.methodName}</div></div>`),r=$('<div class="col-md-9" style="padding: 0px;"></div>'),a=$('<div class="input-group"></div>');r.append(a),this.methodEditor=$(`<input type="text" placeholder="${window.i18n.dialog.bean.methodParameters}String,String,Map" class="form-control">`),a.append(this.methodEditor);const s=$(`<span class="input-group-btn"><button type="button" class="btn btn-default">${window.i18n.dialog.bean.selectMethod}</button></span>`);a.append(s);const l=new oe;s.click(function(){l.show(function(e){i.methodEditor.val(e)},i.beanId)}),o.append(r),e.append(o);const d=$(`<div class="row" style="margin: 10px;"><div class="col-md-3" style="text-align: right;margin-top:8px">${window.i18n.dialog.bean.returnObject}</div></div>`),c=$('<div class="col-md-9" style="padding: 0px;"></div>');d.append(c),this.helpEditor=$(`<input type="text" placeholder="${window.i18n.dialog.bean.className}" class="form-control">`),c.append(this.helpEditor),e.append(d)}initButton(e){const t=$(`<button class="btn btn-primary">${window.i18n.dialog.bean.ok}</button>`);e.append(t);const n=this;t.click(function(){const e=n.nameEditor.val(),t=n.methodEditor.val(),r=n.helpEditor.val();let a=!1;if(n.oldName&&e===n.oldName||(a=!0),a)for(let t of n.datasources){let n=t.datasets;for(let t of n)if(t.name===e)return void Object(i.a)(`${window.i18n.dialog.bean.dataset}["+name+"]${window.i18n.dialog.bean.datasetExist}`)}n.onSave.call(this,e,t,r),Object(o.k)(),n.dialog.modal("hide")})}show(e,t){this.onSave=e,this.dialog.modal("show"),t&&(this.oldName=t.name,this.nameEditor.val(t.name),this.methodEditor.val(t.method),this.helpEditor.val(t.clazz))}}class ae extends ne{constructor(e,t,n,i,o){super(),this.type="spring",this.datasources=t,this.datasets=n.datasets||[],this.springDialog=i,this.context=o,this.id=J.a.v1(),this.name=n.name,this.beanId=n.beanId,this.init(e)}init(e){this.treeContainer=$('<div class="tree" style="margin-left: 10px"></div>'),e.append(this.treeContainer),this.ul=$('<ul style="padding-left: 20px;"></ul>'),this.treeContainer.append(this.ul),this._buildDatasource();for(let e of this.datasets){const t=this.addDataset(e);this.buildFileds(e,t)}}_buildDatasource(){this.datasourceLi=$("<li></li>");const e=$(`\n <span id="${this.id}">\n <i class='ureport ureport-minus' style='margin-right:2px'></i>\n <i class="ureport ureport-leaf"></i> <a href='###' class="ds_name">${this.name}</a>\n </span>`);this.datasourceLi.append(e),this.ul.append(this.datasourceLi),this.attachEvent(e,this.datasourceLi),this.datasetUL=$('<ul style="margin-left: -16px;"></ul>'),this.datasourceLi.append(this.datasetUL);const t=this,n=new re(this.datasources,this.beanId);$.contextMenu({selector:"#"+this.id,callback:function(o,r){"add"===o?($(r.selector),n.show(function(e,n,i){const o={name:e,method:n,clazz:i,fields:[]};t.datasets.push(o);const r=t.addDataset(o);i&&""!==i&&t.buildFileds(o,r)})):"delete"===o?Object(i.b)(`${window.i18n.tree.delConfirm}[${t.name}]?`,function(){const e=t.datasources,n=e.indexOf(t);e.splice(n,1),t.treeContainer.remove()}):"edit"===o&&t.springDialog.show(function(n,i){t.name=n,t.beanId=i,e.find(".ds_name").html(n)},{name:t.name,beanId:t.beanId})},items:{add:{name:`${window.i18n.tree.addDataset}`,icon:"add"},edit:{name:`${window.i18n.tree.edit}`,icon:"edit"},delete:{name:`${window.i18n.tree.del}`,icon:"delete"}}})}addDataset(e){const t=$("<li></li>"),n=J.a.v1(),o=$(`<span id="${n}"><i class='ureport ureport-minus' style='margin-right:2px'></i> <i class="ureport ureport-sqlds"></i> <a href='###' class="dataset_name">${e.name}</a></span>`);t.append(o),this.datasetUL.append(t),this.attachEvent(o,t);const r=$('<ul style="padding-left: 22px;"></ul>');t.append(r);const a=this,s=new re(this.datasources,this.beanId),l=$(`<div>${window.i18n.tree.inputTip}</div>`),d=$('<input type="text" class="form-control">');return l.append(d),$.contextMenu({selector:"#"+n,callback:function(n,c){"add"===n?($(c.selector),Object(i.c)(`${window.i18n.tree.addField}`,l,function(){const t=d.val();for(let n of e.fields)if(n.name===t)return void Object(i.a)(`${window.i18n.tree.addField}`);let n={name:t};e.fields.push(n),a.addField(e,e.fields,n,r)})):"delete"===n?Object(i.b)(`${window.i18n.tree.delDatasetConfirm}[${e.name}]?`,function(){const n=a.datasets.indexOf(e);a.datasets.splice(n,1),t.remove()}):"edit"===n?s.show(function(t,n,i){e.name=t,e.method=n,e.clazz=i,o.find(".dataset_name").html(t),i&&""!==i&&a.buildFileds(e,r)},e):"refresh"===n&&a.buildFileds(e,r,!0)},items:{add:{name:`${window.i18n.tree.addField}`,icon:"add"},edit:{name:`${window.i18n.tree.edit}`,icon:"edit"},delete:{name:`${window.i18n.tree.del}`,icon:"delete"},refresh:{name:`${window.i18n.tree.refresh}`,icon:"loading"}}}),r}buildFileds(e,t,n){const o=e.fields,r=this;if(n||!o)$.ajax({url:window._server+"/datasource/buildClass",data:{clazz:e.clazz},success:function(n){e.fields=n,t.empty();for(let i of n)r.addField(e,n,i,t)},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.tree.loadFieldFail}`)}});else for(let n of o)r.addField(e,o,n,t)}addField(e,t,n,o){const r=this,a=$("<li></li>"),s=J.a.v1(),l=$(`<span id="${s}" title="${window.i18n.tree.doubleClick}"><i class="ureport ureport-property"></i> <a href='###'>${n.name}</a></span>`);a.append(l),l.dblclick(function(){r._buildClickEvent(e,n,r.context)}),o.append(a),$.contextMenu({selector:"#"+s,callback:function(e,o){"delete"===e&&Object(i.b)(`${window.i18n.tree.delFieldConfirm}[${n.name}]?`,function(){const e=t.indexOf(n);t.splice(e,1),a.remove()})},items:{delete:{name:`${window.i18n.tree.del}`,icon:"delete"}}})}attachEvent(e,t){e.click(function(n){let i=t.find(" > ul > li");i.is(":visible")?(i.hide("fast"),e.children("i:first").addClass("ureport-plus").removeClass("ureport-minus")):(i.show("fast"),e.children("i:first").addClass("ureport-minus").removeClass("ureport-plus")),n.stopPropagation()})}}class se extends ne{constructor(e,t,n,i){super(),this.type="buildin",this.datasources=t,this.datasets=n.datasets||[],this.id=J.a.v1(),this.name=n.name,this.context=i,this.init(e)}init(e){this.treeContainer=$('<div class="tree" style="margin-left: 10px"></div>'),e.append(this.treeContainer),this.ul=$('<ul style="padding-left: 20px;"></ul>'),this.treeContainer.append(this.ul),this._buildDatasource();for(let e of this.datasets){const t=this.addDataset(e);this.buildFileds(e,t)}}_buildDatasource(){this.datasourceLi=$("<li></li>");const e=$(`\n <span id="${this.id}">\n <i class='ureport ureport-minus' style='margin-right:2px'></i>\n <i class="ureport ureport-shareconnection"></i> <a href='###' class="ds_name">${this.name}</a>\n </span>`);this.datasourceLi.append(e),this.ul.append(this.datasourceLi),this.attachEvent(e,this.datasourceLi),this.datasetUL=$('<ul style="margin-left: -16px;"></ul>'),this.datasourceLi.append(this.datasetUL);const t=this,n=new te(this,{parameters:[]});$.contextMenu({selector:"#"+this.id,callback:function(e,o){"add"===e?($(o.selector),n.show(function(e,n,i){const o={name:e,sql:n,parameters:i};t.datasets.push(o);const r=t.addDataset(o);t.buildFileds(o,r)},{parameters:[]})):"delete"===e&&Object(i.b)(`${window.i18n.tree.delConfirm}[${t.name}]?`,function(){let e=-1;const n=t.datasources;for(let i=0;i<n.length;i++)if(t.datasources[i].name===t.name){e=i;break}n.splice(e,1),t.treeContainer.remove()})},items:{add:{name:`${window.i18n.tree.addDataset}`,icon:"add"},delete:{name:`${window.i18n.tree.delete}`,icon:"delete"}}})}addDataset(e){const t=$("<li></li>"),n=J.a.v1(),o=$(`<span id="${n}"><i class='ureport ureport-minus' style='margin-right:2px'></i> <i class="ureport ureport-sqlds"></i> <a href='###' class="dataset_name">${e.name}</a></span>`);t.append(o),this.datasetUL.append(t),this.attachEvent(o,t);const r=$('<ul style="padding-left: 22px;"></ul>');t.append(r);const a=this,s=new te(this,e),l=$(`<div>${window.i18n.tree.inputTip}</div>`),d=$('<input type="text" class="form-control">');return l.append(d),$.contextMenu({selector:"#"+n,callback:function(n,c){"add"===n?($(c.selector),Object(i.c)(`${window.i18n.tree.addField}`,l,function(){const t=d.val();for(let n of e.fields)if(n.name===t)return void Object(i.a)(`${window.i18n.tree.fieldExist}`);let n={name:t};e.fields.push(n),a.addField(e.fields,n,r)})):"delete"===n?Object(i.b)(`${window.i18n.tree.delDatasetConfirm}[${e.name}]?`,function(){let n=-1;for(let t=0;t<a.datasets.length;t++)if(a.datasets[t].name===e.name){n=t;break}a.datasets.splice(n,1),t.remove()}):"edit"===n?s.show(function(t,n,i){e.name=t,e.sql=n,e.parameters=i,o.find(".dataset_name").html(t),e.fields=null,a.buildFileds(e,r)}):"refresh"===n&&(e.fields=null,a.buildFileds(e,r))},items:{add:{name:`${window.i18n.tree.addField}`,icon:"add"},edit:{name:`${window.i18n.tree.edit}`,icon:"edit"},delete:{name:`${window.i18n.tree.del}`,icon:"delete"},refresh:{name:`${window.i18n.tree.refresh}`,icon:"loading"}}}),r}buildFileds(e,t){const n=e.fields,o=this;if(n){t.empty();for(let i of n)o.addField(e,n,i,t)}else $.ajax({url:window._server+"/datasource/buildFields",type:"POST",data:{sql:e.sql,parameters:JSON.stringify(e.parameters),name:this.name,type:"buildin"},success:function(n){e.fields=n,t.empty();for(let i of n)o.addField(e,n,i,t)},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.tree.loadFieldFail}`)}})}addField(e,t,n,o){const r=this,a=$("<li></li>"),s=J.a.v1(),l=$(`<span id="${s}" title="${window.i18n.tree.doubleClick}"><i class="ureport ureport-property"></i> <a href='###'>${n.name}</a></span>`);a.append(l),l.dblclick(function(){r._buildClickEvent(e,n,r.context)}),o.append(a),$.contextMenu({selector:"#"+s,callback:function(e,o){"delete"===e&&Object(i.b)(`${window.i18n.tree.delFieldConfirm}[${n.name}]?`,function(){const e=t.indexOf(n);t.splice(e,1),a.remove()})},items:{delete:{name:`${window.i18n.tree.del}`,icon:"delete"}}})}attachEvent(e,t){e.click(function(n){let i=t.find(" > ul > li");i.is(":visible")?(i.hide("fast"),e.children("i:first").addClass("ureport-plus").removeClass("ureport-minus")):(i.show("fast"),e.children("i:first").addClass("ureport-minus").removeClass("ureport-plus")),n.stopPropagation()})}}class le{constructor(e){this.datasources=e,this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog modal-lg">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.datasource.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`);const t=this.dialog.find(".modal-body"),n=this.dialog.find(".modal-footer");this.initBody(t,n)}initBody(e,t){const n=$(`<div class="row" style="margin-bottom: 10px;margin-right:6px;"><div class="col-md-2" style="padding: 0 10px 0 0px;text-align:right;margin-top:5px">${window.i18n.dialog.datasource.name}</div></div>`),i=$('<div class="col-md-10" style="padding: 0 10px 0 0px"></div>');this.dsNameEditor=$('<input type="text" class="form-control" style="font-size: 13px">'),i.append(this.dsNameEditor),n.append(i),e.append(n);const r=$(`<div class="row" style="margin-bottom: 10px;margin-right:6px;"><div class="col-md-2" style="padding: 0 10px 0 0px;text-align:right;margin-top:5px">${window.i18n.dialog.datasource.username}</div></div>`),a=$('<div class="col-md-10" style="padding: 0 10px 0 0px"></div>');this.usernameEditor=$('<input type="text" class="form-control" style="font-size: 13px">'),a.append(this.usernameEditor),r.append(a),e.append(r);const s=$(`<div class="row" style="margin-bottom: 10px;margin-right:6px;"><div class="col-md-2" style="padding: 0 10px 0 0px;text-align:right;margin-top:5px">${window.i18n.dialog.datasource.password}</div></div>`),l=$('<div class="col-md-10" style="padding: 0 10px 0 0px"></div>');this.passwordEditor=$('<input type="password" class="form-control" style="font-size: 13px">'),l.append(this.passwordEditor),s.append(l),e.append(s);const d=$(`<div class="row" style="margin-bottom: 10px;margin-right:6px;"><div class="col-md-2" style="padding: 0 10px 0 0px;text-align:right;margin-top:5px">${window.i18n.dialog.datasource.driver}</div></div>`),c=$('<div class="col-md-10" style="padding: 0 10px 0 0px"></div>');this.driverEditor=$('<input type="text" class="form-control" style="font-size: 13px">'),c.append(this.driverEditor),d.append(c),e.append(d),this.driverEditor.completer({source:["oracle.jdbc.OracleDriver","com.ibm.db2.jcc.DB2Driver","com.microsoft.sqlserver.jdbc.SQLServerDriver","com.mysql.jdbc.Driver"],suggest:!0,zIndex:2e5});const u=$(`<div class="row" style="margin-bottom: 10px;margin-right:6px;"><div class="col-md-2" style="padding: 0 10px 0 0px;text-align:right;margin-top:5px">${window.i18n.dialog.datasource.url}</div></div>`),h=$('<div class="col-md-10" style="padding: 0 10px 0 0px"></div>');this.urlEditor=$('<input type="text" class="form-control" style="font-size: 13px">'),h.append(this.urlEditor),u.append(h),e.append(u),this.urlEditor.completer({source:["jdbc:oracle:thin:@localhost:1521:orcl","jdbc:db2://localhost:50000/dbname","jdbc:sqlserver://localhost:1433;databaseName=dbname","jdbc:mysql://localhost:3306/dbname?useUnicode=true&characterEncoding=UTF-8"],suggest:!0,zIndex:2e5});const f=this,p=$(`<button type="button" class="btn btn-default">${window.i18n.dialog.datasource.test}</button>`);t.append(p),p.click(function(){const e=f.dsNameEditor.val(),t=f.usernameEditor.val(),n=f.passwordEditor.val(),i=f.driverEditor.val(),o=f.urlEditor.val();f.testConnection(e,t,n,i,o)});const m=$(`<button type="button" class="btn btn-primary">${window.i18n.dialog.datasource.save}</button>`);t.append(m),m.click(function(){const e=f.dsNameEditor.val(),t=f.usernameEditor.val(),n=f.passwordEditor.val(),i=f.driverEditor.val(),r=f.urlEditor.val();f.testConnection(e,t,n,i,r,function(){f.onSave.call(this,e,t,n,i,r),Object(o.k)(),f.dialog.modal("hide")})})}testConnection(e,t,n,o,r,a){if(""===e)return void Object(i.a)(`${window.i18n.dialog.datasource.nameTip}`);if(""===t)return void Object(i.a)(`${window.i18n.dialog.datasource.usernameTip}`);if(""===o)return void Object(i.a)(`${window.i18n.dialog.datasource.driverTip}`);if(""===r)return void Object(i.a)(`${window.i18n.dialog.datasource.urlTip}`);let s=!1;if(this.oldName&&e===this.oldName||(s=!0),s)for(let t of this.datasources)if(t.name===e)return void Object(i.a)(`${window.i18n.dialog.datasource.datasource}[${e}]${window.i18n.dialog.datasource.existTip}`);const l=this;$.ajax({url:window._server+"/datasource/testConnection",data:{username:t,password:n,driver:o,url:r},type:"POST",success:function(e){a?a.call(l):e.result?Object(i.a)(`${window.i18n.dialog.datasource.testSuccess}`):Object(i.a)(`${window.i18n.dialog.datasource.testFail}`+e.error)},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.dialog.datasource.failTip}`)}})}show(e,t){this.dialog.modal("show"),this.onSave=e,t&&(this.oldName=t.name,this.dsNameEditor.val(t.name),this.usernameEditor.val(t.username),this.passwordEditor.val(t.password),this.driverEditor.val(t.driver),this.urlEditor.val(t.url))}}class de{constructor(e){this.datasources=e,this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.springDS.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`);const t=this.dialog.find(".modal-body"),n=this.dialog.find(".modal-footer");this.initBody(t,n)}initBody(e,t){const n=$(`<div class="row" style="margin-bottom: 10px;margin-right:6px;"><div class="col-md-3" style="padding: 0 10px 0 0px;text-align:right;margin-top:5px">${window.i18n.dialog.springDS.name}</div></div>`),r=$('<div class="col-md-9" style="padding: 0 10px 0 0px"></div>');this.dsNameEditor=$('<input type="text" class="form-control">'),r.append(this.dsNameEditor),n.append(r),e.append(n);const a=$(`<div class="row" style="margin-bottom: 10px;margin-right:6px;"><div class="col-md-3" style="padding: 0 10px 0 0px;text-align:right;margin-top:5px">${window.i18n.dialog.springDS.bean}</div></div>`),s=$('<div class="col-md-9" style="padding: 0 10px 0 0px"></div>');this.beanIdEditor=$('<input type="text" class="form-control">'),s.append(this.beanIdEditor),a.append(s),e.append(a);const l=this,d=$(`<button type="button" class="btn btn-primary">${window.i18n.dialog.springDS.save}</button>`);t.append(d),d.click(function(){const e=l.dsNameEditor.val(),t=l.beanIdEditor.val();if(""===e)return void Object(i.a)(`${window.i18n.dialog.springDS.nameTip}`);if(""===t)return void Object(i.a)(`${window.i18n.dialog.springDS.beanTip}`);let n=!1;if(l.oldName&&e===l.oldName||(n=!0),n)for(let t of l.datasources)if(t.name===e)return void Object(i.a)(`${window.i18n.dialog.springDS.ds}["+dsName+"]${window.i18n.dialog.springDS.exist}`);l.onSave.call(this,e,t),l.dialog.modal("hide"),Object(o.k)()})}show(e,t){this.onSave=e,t&&(this.oldName=t.name,this.dsNameEditor.val(t.name),this.beanIdEditor.val(t.beanId)),this.dialog.modal("show")}}class ce{constructor(e){this.datasources=e,this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.buildin.selectDatasource}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`);const t=this.dialog.find(".modal-body"),n=this.dialog.find(".modal-footer");this.initBody(t,n)}initBody(e,t){const n=$(`<table class="table table-bordered">\n <thead><tr style="background: #f4f4f4;height: 30px;"><td style="vertical-align: middle">${window.i18n.dialog.buildin.datasourceName}</td><td style="vertical-align: middle">${window.i18n.dialog.buildin.select}</td></tr></thead>\n </table>`);this.tbody=$("<tbody></tbody>"),n.append(this.tbody),e.append(n)}show(e){this.dialog.modal("show"),this.tbody.empty();const t=this;$.ajax({url:window._server+"/datasource/loadBuildinDatasources",success:function(n){for(let r of n){const n=$(`<tr style="height: 35px;"><td style="vertical-align: middle">${r}</td></tr>`),a=$('<td style="vertical-align: middle"></td>');n.append(a);const s=$('<a href="###"><i class="glyphicon glyphicon-hand-up" style="font-size: 13pt"></i></a>');s.click(function(){for(let e of t.datasources)if(e.name===r)return void Object(i.a)(`${window.i18n.dialog.buildin.datasource}["+name+"]${window.i18n.dialog.buildin.datasourceExist}`);e.call(this,r),Object(o.k)(),t.dialog.modal("hide")}),a.append(s),t.tbody.append(n)}},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.dialog.buildin.loadFail}`)}})}}class ue{constructor(e,t){this.context=t,this.container=$("<div></div>"),e.append(this.container),this.container.hide(),this.init()}init(){const e=this;this.container.append(this.buildLineHeight()),this.container.append(`<div><label>${window.i18n.property.simple.content}</label></div>`),this.editor=$('<textarea rows="5" cols="10" class="form-control"></textarea>'),this.container.append(this.editor),this.editor.change(function(){const t=$(this).val();e.cellDef.value.value=t,e.context.hot.setDataAtCell(e.rowIndex,e.colIndex,t),Object(o.k)()})}buildLineHeight(){const e=this,t=$(`<div class="form-group" style="margin-left: 8px;margin-top: 5px;margin-bottom: 5px;"><label>${window.i18n.property.simple.lineHeight}</label></div>`);return this.lineHeightEditor=$(`<input type="number" class="form-control" placeholder="${window.i18n.property.simple.tip}" style="display: inline-block;width: 310px;padding: 3px;font-size: 12px;height: 25px;">`),t.append(this.lineHeightEditor),this.lineHeightEditor.change(function(){const t=$(this).val();e.cellDef.cellStyle.lineHeight=t;let n=e.context.hot.getCell(e.rowIndex,e.colIndex);""===t?$(n).css("line-height",""):$(n).css("line-height",t),e.context.hot.render()}),t}show(e,t,n,i,o){this.cellDef=e,this.rowIndex=t,this.colIndex=n,this.container.show(),this.editor.val(e.value.value),this.lineHeightEditor.val(e.cellStyle.lineHeight)}hide(){this.container.hide()}}class he{constructor(){this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 11001">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.conditionItem.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`);const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t)}initBody(e,t){const n=$(`<div class="form-group"><label>${window.i18n.dialog.conditionItem.itemName}</label></div>`);this.nameEditor=$('<input type="text" class="form-control">'),n.append(this.nameEditor),e.append(n);const o=$(`<button type="button" class="btn btn-default">${window.i18n.dialog.conditionItem.ok}</button>`);t.append(o);const r=this;o.click(function(){const e=r.nameEditor.val();""!==e?(r.conditionItem.name=e,r.callback.call(this),r.dialog.modal("hide")):Object(i.a)(`${window.i18n.dialog.conditionItem.nameTip}`)})}show(e,t,n){this.conditionItem=e,this.callback=t,this.dialog.modal("show"),this.nameEditor.val(e.name);const i=this.dialog.find(".modal-title");"add"===n?i.html(`${window.i18n.dialog.conditionItem.add}`):"edit"===n&&i.html(`${window.i18n.dialog.conditionItem.edit}`)}}class fe{constructor(e){this.conditions=e,this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 11001">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.editPropCondition.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>`);const t=this.dialog.find(".modal-body"),n=this.dialog.find(".modal-footer");this.init(t,n)}init(e,t){const n=this;this.joinGroup=$(`<div class="form-group"><label>${window.i18n.dialog.editPropCondition.relation}</label></div>`),this.joinSelect=$(`<select class="form-control" style="display: inline-block;width:430px;">\n <option value="and">${window.i18n.dialog.editPropCondition.and}</option>\n <option value="or">${window.i18n.dialog.editPropCondition.or}</option>\n </select>`),this.joinGroup.append(this.joinSelect),e.append(this.joinGroup);const o=$(`<div class="form-group"><label>${window.i18n.dialog.editPropCondition.leftValue}</label></div>`);this.leftTypeSelect=$(`<select class="form-control" style="display: inline-block;width: inherit">\n <option value="current">${window.i18n.dialog.editPropCondition.currentValue}</option>\n <option value="property">${window.i18n.dialog.editPropCondition.property}</option>\n <option value="expression">${window.i18n.dialog.editPropCondition.expression}</option>\n </select>`),o.append(this.leftTypeSelect),this.propertyGroup=$(`<span style="margin-left: 10px"><label>${window.i18n.dialog.editPropCondition.propName}</label></span>`),this.propertySelect=$('<select class="form-control" style="display: inline-block;width:320px;"></select>'),this.propertyGroup.append(this.propertySelect),o.append(this.propertyGroup),e.append(o),this.exprGroup=$(`<span style="margin-left: 10px"><label>${window.i18n.dialog.editPropCondition.expr}</label></span>`),this.exprEditor=$('<input type="text" style="display: inline-block;width:320px;" class="form-control">'),this.exprGroup.append(this.exprEditor),o.append(this.exprGroup),this.exprEditor.change(function(){const e=$(this).val(),t=window._server+"/designer/conditionScriptValidation";$.ajax({url:t,type:"POST",data:{content:e},success:function(t){t.length>0&&Object(i.a)(`${e} ${window.i18n.dialog.editPropCondition.syntaxError}`)}})}),this.leftTypeSelect.change(function(){const e=$(this).val();"current"===e?(n.exprGroup.hide(),n.propertyGroup.hide()):"property"===e?(n.exprGroup.hide(),n.propertyGroup.show()):(n.propertyGroup.hide(),n.exprGroup.show())});const r=$(`<div class="form-group"><label>${window.i18n.dialog.editPropCondition.operator}</label></div>`);this.operatorSelect=$(`<select class="form-control" style="display: inline-block;width:490px;">\n <option value=">">${window.i18n.dialog.editPropCondition.greater}</option>\n <option value=">=">${window.i18n.dialog.editPropCondition.greaterEquals}</option>\n <option value="<">${window.i18n.dialog.editPropCondition.less}</option>\n <option value="<=">${window.i18n.dialog.editPropCondition.lessEquals}</option>\n <option value="==">${window.i18n.dialog.editPropCondition.equals}</option>\n <option value="!=">${window.i18n.dialog.editPropCondition.notEquals}</option>\n <option value="in">${window.i18n.dialog.editPropCondition.in}</option>\n <option value="like">${window.i18n.dialog.editPropCondition.like}</option>\n </select>`),r.append(this.operatorSelect),e.append(r);const a=$(`<div class="form-group"><label>${window.i18n.dialog.editPropCondition.valueExpr}</label></div>`);this.valueEditor=$('<input type="text" class="form-control" style="display: inline-block;width:477px;">'),a.append(this.valueEditor),e.append(a),this.valueEditor.change(function(){const e=$(this).val(),t=window._server+"/designer/conditionScriptValidation";$.ajax({url:t,type:"POST",data:{content:e},success:function(t){t.length>0&&Object(i.a)(`${e} ${window.i18n.dialog.editPropCondition.syntaxError}`)}})});const s=$(`<button class="btn btn-default">${window.i18n.dialog.editPropCondition.ok}</button>`);s.click(function(){let e=n.propertySelect.val(),t=n.operatorSelect.val(),o=n.valueEditor.val(),r=n.joinSelect.val(),a=n.leftTypeSelect.val(),s=n.exprEditor.val();if("property"===a){if(""===e)return void Object(i.a)(`${window.i18n.dialog.editPropCondition.selectProp}`)}else if("expression"===a){if(""===s)return void Object(i.a)(`${window.i18n.dialog.editPropCondition.leftValueExpr}`);e=s}else e=null;"current"===a&&(a="property"),""!==t?""!==o?(n.condition?n.condition.join?n.callback.call(n,a,e,t,o,r):n.callback.call(n,a,e,t,o):n.conditions.length>0?n.callback.call(n,a,e,t,o,r):n.callback.call(n,a,e,t,o),n.dialog.modal("hide")):Object(i.a)(`${window.i18n.dialog.editPropCondition.inputExpr}`):Object(i.a)(`${window.i18n.dialog.editPropCondition.selectOperator}`)}),t.append(s)}show(e,t,n){this.callback=e,this.condition=n,this.type="current",n?(this.type=n.type,n.join?this.joinGroup.show():this.joinGroup.hide()):this.conditions.length>0?this.joinGroup.show():this.joinGroup.hide(),this.propertySelect.empty();for(let e of t)this.propertySelect.append(`<option>${e.name}</option>`);n?("expression"===this.type?(this.leftTypeSelect.val("expression"),this.exprEditor.val(n.left),this.propertyGroup.hide(),this.exprGroup.show()):(n.left&&""!==n.left?(this.propertySelect.val(n.left),this.leftTypeSelect.val("property"),this.propertyGroup.show()):(this.leftTypeSelect.val("current"),this.propertyGroup.hide()),this.exprGroup.hide()),this.operatorSelect.val(n.operation||n.op),this.valueEditor.val(n.right),this.joinSelect.val(n.join)):(this.leftTypeSelect.val("current"),this.propertyGroup.hide(),this.exprGroup.hide()),this.dialog.modal("show")}}class pe{constructor(){this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 11003">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.paramItem.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>`);const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t)}initBody(e,t){const n=$(`<div class="form-group"><label>${window.i18n.dialog.paramItem.name}</label></div>`);e.append(n),this.nameEditor=$('<input type="text" class="form-control" style="display: inline-block;width:500px;">'),n.append(this.nameEditor);const o=$(`<div class="form-group"><label>${window.i18n.dialog.paramItem.expr}</label></div>`);this.valueEditor=$('<input type="text" class="form-control" style="display: inline-block;width:485px;">'),o.append(this.valueEditor),e.append(o);const r=$(`<button type="button" class="btn btn-primary">${window.i18n.dialog.paramItem.save}</button>`);t.append(r);const a=this;r.click(function(){const e=a.nameEditor.val(),t=a.valueEditor.val();""!==e&&""!==t?(a.paramItem.name=e,a.paramItem.value=t,a.callback.call(this),a.dialog.modal("hide")):Object(i.a)(`${window.i18n.dialog.paramItem.tip}`)})}show(e,t,n){this.callback=e,this.paramItem=t,this.dialog.modal("show"),"add"===n?this.dialog.find(".modal-title").html(`${window.i18n.dialog.paramItem.add}`):this.dialog.find(".modal-title").html(`${window.i18n.dialog.paramItem.edit}`),this.nameEditor.val(t.name),this.valueEditor.val(t.value)}}class me{constructor(){this.urlParameterItemDialog=new pe,this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 11001">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.urlParam.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`);const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t)}initBody(e,t){const n=$(`<button type="button" class="btn btn-default" style="float: right">\n <i class="glyphicon glyphicon-plus-sign" style="font-size: 12pt;color: #0000C0" title="${window.i18n.dialog.urlParam.add}"></i>\n </button>`),o=this;n.click(function(){const e={name:"",value:""};o.urlParameterItemDialog.show(function(){o.parameters.push(e);const t=$('<tr style="height: 30px"></tr>'),n=$(`<td style="vertical-align: middle">${e.name}</td>`),r=$(`<td style="vertical-align: middle">${e.value}</td>`);t.append(n),t.append(r),o.tbody.append(t);const a=$('<td style="vertical-align: middle"></td>'),s=$('<a href="###"><i class="glyphicon glyphicon-edit" style="font-size: 12pt;color: #0000C0"></i></a>');a.append(s),s.click(function(){o.urlParameterItemDialog.show(function(){n.html(e.name),r.html(e.value)},e,"edit")});const l=$('<a href="###" style="margin-left: 10px"><i class="glyphicon glyphicon-trash" style="font-size: 12pt;color: #0000C0"></i></a>');a.append(l),l.click(function(){Object(i.b)(`${window.i18n.dialog.urlParam.delTip}`,function(){const n=o.parameters.indexOf(e);o.parameters.splice(n,1),t.remove()})}),t.append(a)},e,"add")}),e.append(n);const r=$(`<table class="table table-bordered">\n <thead><tr style="background-color: #eeeeee;height: 30px;"><td style="width: 150px;vertical-align: middle">${window.i18n.dialog.urlParam.name}</td><td style="width: 350px;vertical-align: middle">${window.i18n.dialog.urlParam.expr}</td><td style="vertical-align: middle">${window.i18n.dialog.urlParam.op}</td></tr></thead>\n </table>`);this.tbody=$("<tbody></tbody>"),r.append(this.tbody),e.append(r)}show(e){this.parameters=e,this.dialog.modal("show"),this.tbody.empty();const t=this;for(let n of e){const e=$('<tr style="height: 30px"></tr>'),o=$(`<td style="vertical-align: middle">${n.name}</td>`),r=$(`<td style="vertical-align: middle">${n.value}</td>`);e.append(o),e.append(r),t.tbody.append(e);const a=$('<td style="vertical-align: middle"></td>'),s=$('<a href="###"><i class="glyphicon glyphicon-edit" style="font-size: 12pt;color: #0000C0"></i></a>');a.append(s),s.click(function(){t.urlParameterItemDialog.show(function(){o.html(n.name),r.html(n.value)},n,"edit")});const l=$('<a href="###" style="margin-left: 10px"><i class="glyphicon glyphicon-trash" style="font-size: 12pt;color: #0000C0"></i></a>');a.append(l),l.click(function(){Object(i.b)(`${window.i18n.dialog.urlParam.delTip}`,function(){const i=t.parameters.indexOf(n);t.parameters.splice(i,1),e.remove()})}),e.append(a)}}}class ge{constructor(){this.dialog=$('<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 11003">\n <div class="modal-dialog" style="width: 240px">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n 自定义边框\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>');const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t)}initBody(e,t){const n=$("<div></div>");e.append(n);const i=$("<ul class='nav nav-tabs'></ul>");n.append(i);const o=$("<li class='active'><a data-toggle='tab' href='#_topBorderConfig'>上</a></li>");i.append(o);const r=$("<li><a data-toggle='tab' href='#_bottomBorderConfig'>下</a></li>");i.append(r);const a=$("<li><a data-toggle='tab' href='#_leftBorderConfig'>左</a></li>");i.append(a);const s=$("<li><a data-toggle='tab' href='#_rightBorderConfig'>右</a></li>");i.append(s);const l=this,d=$("<div class='tab-content'></div>"),c=$('<div class="tab-pane fade in active" id="_topBorderConfig"></div>');d.append(c);let u=$('<div style="margin: 20px 0 10px 0;"><span>线型:</span></div>');c.append(u),this.topBorderLineList=$('\n <select class="form-control" style="display: inline-block;width:120px">\n <option value="solid">实线</option>\n <option value="dashed">虚线</option>\n <option value="none">无</option>\n </select>\n '),u.append(this.topBorderLineList),this.topBorderLineList.change(function(){l.cellStyle.topBorder.style=$(this).val()});let h=$('<div style="margin: 20px 0 10px 0;"><span>尺寸:</span></div>');c.append(h),this.topBorderSizeList=$('\n <select class="form-control" style="display: inline-block;width:120px">\n </select>\n ');for(let e=1;e<=10;e++)this.topBorderSizeList.append(`<option value="${e}">${e}</option>`);h.append(this.topBorderSizeList),this.topBorderSizeList.change(function(){l.cellStyle.topBorder.width=$(this).val()});let f=$("<div></div>");c.append(f),this.topBorderColorContainer=$("<div><span>颜色:</span></div>"),f.append(this.topBorderColorContainer),this.topBorderColorContainer.colorpicker({container:!0,inline:!0,colorSelectors:{black:"#000000",red:"#FF0000",default:"#777777",primary:"#337ab7",success:"#5cb85c",info:"#5bc0de",warning:"#f0ad4e",danger:"#d9534f"}}),this.topBorderColorContainer.colorpicker().on("changeColor",function(e){let t=e.color.toRGB(),n=t.r+","+t.g+","+t.b;l.cellStyle.topBorder.color=n});const p=$('<div class="tab-pane fade" id="_bottomBorderConfig"></div>');d.append(p),u=$('<div style="margin: 20px 0 10px 0;"><span>线型:</span></div>'),p.append(u),this.bottomBorderLineList=$('\n <select class="form-control" style="display: inline-block;width:120px">\n <option value="solid">实线</option>\n <option value="dashed">虚线</option>\n <option value="none">无</option>\n </select>\n '),u.append(this.bottomBorderLineList),this.bottomBorderLineList.change(function(){l.cellStyle.bottomBorder.style=$(this).val()}),h=$('<div style="margin: 20px 0 10px 0;"><span>尺寸:</span></div>'),p.append(h),this.bottomBorderSizeList=$('\n <select class="form-control" style="display: inline-block;width:120px">\n </select>\n ');for(let e=1;e<=10;e++)this.bottomBorderSizeList.append(`<option value="${e}">${e}</option>`);h.append(this.bottomBorderSizeList),this.bottomBorderSizeList.change(function(){l.cellStyle.bottomBorder.width=$(this).val()}),f=$("<div></div>"),p.append(f),this.bottomBorderColorContainer=$("<div><span>颜色:</span></div>"),f.append(this.bottomBorderColorContainer),this.bottomBorderColorContainer.colorpicker({container:!0,inline:!0,colorSelectors:{black:"#000000",red:"#FF0000",default:"#777777",primary:"#337ab7",success:"#5cb85c",info:"#5bc0de",warning:"#f0ad4e",danger:"#d9534f"}}),this.bottomBorderColorContainer.colorpicker().on("changeColor",function(e){let t=e.color.toRGB(),n=t.r+","+t.g+","+t.b;l.cellStyle.bottomBorder.color=n});const m=$('<div class="tab-pane fade" id="_leftBorderConfig"></div>');d.append(m),u=$('<div style="margin: 20px 0 10px 0;"><span>线型:</span></div>'),m.append(u),this.leftBorderLineList=$('\n <select class="form-control" style="display: inline-block;width:120px">\n <option value="solid">实线</option>\n <option value="dashed">虚线</option>\n <option value="none">无</option>\n </select>\n '),u.append(this.leftBorderLineList),this.leftBorderLineList.change(function(){l.cellStyle.leftBorder.style=$(this).val()}),h=$('<div style="margin: 20px 0 10px 0;"><span>尺寸:</span></div>'),m.append(h),this.leftBorderSizeList=$('\n <select class="form-control" style="display: inline-block;width:120px">\n </select>\n ');for(let e=1;e<=10;e++)this.leftBorderSizeList.append(`<option value="${e}">${e}</option>`);h.append(this.leftBorderSizeList),this.leftBorderSizeList.change(function(){l.cellStyle.leftBorder.width=$(this).val()}),f=$("<div></div>"),m.append(f),this.leftBorderColorContainer=$("<div><span>颜色:</span></div>"),f.append(this.leftBorderColorContainer),this.leftBorderColorContainer.colorpicker({container:!0,inline:!0,colorSelectors:{black:"#000000",red:"#FF0000",default:"#777777",primary:"#337ab7",success:"#5cb85c",info:"#5bc0de",warning:"#f0ad4e",danger:"#d9534f"}}),this.leftBorderColorContainer.colorpicker().on("changeColor",function(e){let t=e.color.toRGB(),n=t.r+","+t.g+","+t.b;l.cellStyle.leftBorder.color=n});const g=$('<div class="tab-pane fade" id="_rightBorderConfig"></div>');d.append(g),u=$('<div style="margin: 20px 0 10px 0;"><span>线型:</span></div>'),g.append(u),this.rightBorderLineList=$('\n <select class="form-control" style="display: inline-block;width:120px">\n <option value="solid">实线</option>\n <option value="dashed">虚线</option>\n <option value="none">无</option>\n </select>\n '),u.append(this.rightBorderLineList),this.rightBorderLineList.change(function(){l.cellStyle.rightBorder.style=$(this).val()}),h=$('<div style="margin: 20px 0 10px 0;"><span>尺寸:</span></div>'),g.append(h),this.rightBorderSizeList=$('\n <select class="form-control" style="display: inline-block;width:120px">\n </select>\n ');for(let e=1;e<=10;e++)this.rightBorderSizeList.append(`<option value="${e}">${e}</option>`);h.append(this.rightBorderSizeList),this.rightBorderSizeList.change(function(){l.cellStyle.rightBorder.width=$(this).val()}),f=$("<div></div>"),g.append(f),this.rightBorderColorContainer=$("<div><span>颜色:</span></div>"),f.append(this.rightBorderColorContainer),this.rightBorderColorContainer.colorpicker({container:!0,inline:!0,colorSelectors:{black:"#000000",red:"#FF0000",default:"#777777",primary:"#337ab7",success:"#5cb85c",info:"#5bc0de",warning:"#f0ad4e",danger:"#d9534f"}}),this.rightBorderColorContainer.colorpicker().on("changeColor",function(e){let t=e.color.toRGB(),n=t.r+","+t.g+","+t.b;l.cellStyle.rightBorder.color=n}),n.append(d)}show(e){this.cellStyle=e,this.dialog.modal("show");const t=e.topBorder;this.topBorderSizeList.val(t.width),this.topBorderLineList.val(t.style),this.topBorderColorContainer.colorpicker("setValue","rgb("+t.color+")");const n=e.bottomBorder;this.bottomBorderSizeList.val(n.width),this.bottomBorderLineList.val(n.style),this.bottomBorderColorContainer.colorpicker("setValue","rgb("+n.color+")");const i=e.leftBorder;this.leftBorderSizeList.val(i.width),this.leftBorderLineList.val(i.style),this.leftBorderColorContainer.colorpicker("setValue","rgb("+i.color+")");const o=e.rightBorder;this.rightBorderSizeList.val(o.width),this.rightBorderLineList.val(o.style),this.rightBorderColorContainer.colorpicker("setValue","rgb("+o.color+")")}}class ye{constructor(e){this.datasources=e,this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 1100">\n <div class="modal-dialog modal-lg" style="width: 1000px;">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.propCondition.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`);const t=this.dialog.find(".modal-body"),n=this.dialog.find(".modal-footer");this.initBody(t,n)}initBody(e,t){const n=this,r=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px;width: 160px;display: inline-block;">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.dialog.propCondition.config}</legend></fieldset>`);e.append(r);const a=$("<span></span>");r.append(a);const s=new he,l=$(`<button type="button" class="btn btn-default">\n <i class="glyphicon glyphicon-plus-sign" style="color: #49a700;" title="${window.i18n.dialog.propCondition.addItem}"></i></button>`);a.append(l),l.click(function(){const e={name:"",id:J.a.v1()};s.show(e,function(){n.propertyConditions.push(e);const t=$(`<option>${e.name}</option>`);t.data(e),n.itemSelect.append(t),Object(o.k)()},"add")});const d=$(`<button type="button" class="btn btn-default">\n <i class="glyphicon glyphicon-edit" style="color: #005fd3;" title="${window.i18n.dialog.propCondition.editItem}"></i></button>`);a.append(d),d.click(function(){const e=n.itemSelect.find("option:selected");if(0===e.length)return void Object(i.a)(`${window.i18n.dialog.propCondition.editTip}`);const t=e.data();s.show(t,function(){let i;e.html(`${t.name}`);for(let e of n.propertyConditions)if(e.id===t.id){i=e;break}i=t,e.data(t),Object(o.k)()},"edit")});const c=$(`<button type="button" class="btn btn-default">\n <i class="glyphicon glyphicon-minus-sign" style="color: #d30e00;" title="${window.i18n.dialog.propCondition.delItem}"></i></button>`);a.append(c),c.click(function(){const e=n.itemSelect.find("option:selected");if(0===e.length)return void Object(i.a)(`${window.i18n.dialog.propCondition.delTip}`);const t=e.data();Object(i.b)(`${window.i18n.dialog.propCondition.delConfirm}[${t.name}]?`,function(){let i;for(let e of n.propertyConditions)if(e.id===t.id){i=e;break}const r=n.propertyConditions.indexOf(i);n.propertyConditions.splice(r,1),e.remove(),n.conditionList.empty(),n.propGroup.hide(),Object(o.k)()})}),this.itemSelect=$('<select size="10" class="form-control" style="height: 500px;"></select>'),a.append(this.itemSelect);const u=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px;width: 325px;display: inline-block;height:590px;vertical-align: top;margin-left: 10px">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.dialog.propCondition.conditionConfig}</legend></fieldset>`);e.append(u),this._initCondition(u),this.propGroup=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px;width: 455px;display: inline-block;height:590px;vertical-align: top;margin-left: 10px">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.dialog.propCondition.propConfig}</legend></fieldset>`),e.append(this.propGroup),this._initProperty(this.propGroup),this.propGroup.hide(),this.itemSelect.change(function(){const e=n.itemSelect.find("option:selected");if(0===e.length)return;n.conditionList.empty(),n.propGroup.show();const t=e.data();n._refreshProperties(t),t.conditions||(t.conditions=[]);const i=t.conditions;for(let e of i){e.id||(e.id=J.a.v1());const t=e.operation;let i=e.left+" "+t+" "+e.right;e.left&&""!==e.left||(i=`${window.i18n.dialog.propCondition.currentValue} `+t+" "+(e.right||e.expr)),e.join&&(i=e.join+" "+i);const r=$(`<option>${i}</option>`);r.data(e),n.conditionList.append(r),Object(o.k)()}})}_initCondition(e){const t=this,n=$('<div class="form-group" style="margin-bottom: 10px;"></div>'),r=$('<span style="float: right"></span>');n.append(r);const a=$(`<button type="button" class="btn btn-default" title="${window.i18n.dialog.propCondition.addValue}"><i class="glyphicon glyphicon-plus-sign"></i></button>`);r.append(a),this.conditionList=$('<select class="form-control" size="100" style="height: 500px;padding: 3px;"></select>'),a.click(function(){let e=t._buildFields();const n=t.itemSelect.find("option:selected");if(0===n.length)return void Object(i.a)(`${window.i18n.dialog.propCondition.selectItem}`);const r=n.data();let a;for(let e of t.propertyConditions)if(e.id===r.id){a=e;break}const s=r.conditions;a.conditions=s,new fe(s).show(function(e,n,i,r,a){const l={type:e,left:n,operation:i,right:r,join:a,id:J.a.v1()};s.push(l);let d=n+" "+i+" "+r;"property"!==e||n&&""!==n||(d=`${window.i18n.dialog.propCondition.currentValue} `+i+" "+r),a&&(d=a+" "+d);const c=$(`<option>${d}</option>`);c.data(l),t.conditionList.append(c),Object(o.k)()},e)});const s=$(`<button type="button" class="btn btn-default" style="margin-left: 1px;" title="${window.i18n.dialog.propCondition.editConditionItem}"><i class="glyphicon glyphicon-edit"></i></button>`);r.append(s),s.click(function(){let e=t._buildFields();const n=t.conditionList.find("option:selected");if(0===n.length)return void Object(i.a)(`${window.i18n.dialog.propCondition.editConditionTip}`);const r=n.data(),a=t.itemSelect.find("option:selected");if(0===a.length)return void Object(i.a)(`${window.i18n.dialog.propCondition.selectConditionItem}`);const s=a.data().conditions;new fe(s).show(function(e,n,i,r,a){const l=t.conditionList.find("option:selected");let d=l.data();d.type=e,d.left=n,d.operation=i,d.right=r,d.join=a;let c,u=n+" "+i+" "+r;"property"!==e||n&&""!==n||(u=`${window.i18n.dialog.propCondition.currentValue} `+i+" "+r),a&&(u=a+" "+u),l.data(d),l.html(u);for(let e of s)if(e.id===d.id){c=e;break}const h=s.indexOf(c);s.splice(h,1,d),Object(o.k)()},e,r)});const l=$(`<button type="button" class="btn btn-default" style="margin-left: 1px;" title="${window.i18n.dialog.propCondition.delCondition}"><i class="glyphicon glyphicon-minus-sign"></i></button>`);r.append(l),l.click(function(){const e=t.conditionList.find("option:selected");if(0===e.length)return void Object(i.a)(`${window.i18n.dialog.propCondition.delConditionTip}`);const n=e.data(),r=t.itemSelect.find("option:selected");if(0===r.length)return void Object(i.a)(`${window.i18n.dialog.propCondition.selectDelCondition}`);const a=r.data().conditions;let s=a.indexOf(n);a.splice(s,1),e.remove(),Object(o.k)()}),n.append(this.conditionList),e.append(n)}_buildFields(){let e=[];if(!this.datasetName||""===this.datasetName)return e;for(let t of this.datasources){let n=t.datasets||[];for(let t of n)if(t.name===this.datasetName){e=t.fields||[];break}if(e.length>0)break}return e}_initProperty(e){const t=this,n=$('<div class="form-group" style="margin-bottom: 10px;"></div>');e.append(n),this.forceCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.forecolor}</label>`),n.append(this.forceCheckbox),this.forceGroup=$("<span></span>"),n.append(this.forceGroup),this.forceColorEditor=$('<div class="input-group colorpicker-component" style="width: 170px;height: 26px;display: inline-block;margin-left: 10px;vertical-align: bottom">\n <input type="text" value="#00AABB" class="form-control" style="width: 120px;padding: 2px;height: 29px;vertical-align: top"/>\n <span class="input-group-addon" style="width: 22px"><i></i></span>\n </div>'),this.forceColorEditor.colorpicker({color:"#000",container:!0,format:"rgb",colorSelectors:{black:"#000000",white:"#FFFFFF",red:"#FF0000",default:"#777777",primary:"#337ab7",success:"#5cb85c",info:"#5bc0de",warning:"#f0ad4e",danger:"#d9534f"}}),this.forceGroup.append(this.forceColorEditor),this.forceColorEditor.children("input").change(function(){let e=$(this).val();e.length>5&&(e=e.substring(4,e.length-1)),t.item.cellStyle.forecolor=e,Object(o.k)()});const r=$(`<span style="margin-left: 5px;">${window.i18n.dialog.propCondition.scope}</span>`);this.forceScopeSelect=$(`<select class="form-control" style="height: 26px;padding: 3px;width: 120px;display: inline-block;vertical-align: top">\n <option value="cell">${window.i18n.dialog.propCondition.currentCell}</option>\n <option value="row">${window.i18n.dialog.propCondition.currentRow}</option>\n <option value="column">${window.i18n.dialog.propCondition.currentCol}</option>\n </select>`),r.append(this.forceScopeSelect),this.forceScopeSelect.change(function(){let e=$(this).val();t.item.cellStyle.forecolorScope=e,Object(o.k)()}),this.forceGroup.append(r),this.forceCheckbox.children("input").click(function(){$(this).prop("checked")?(t.item.forecolorScope="cell",t.forceScopeSelect.val("cell"),t.forceGroup.show()):(t.forceGroup.hide(),t.forceColorEditor.val(""),t.item.cellStyle.forecolor=null,t.item.forecolorScope=null),Object(o.k)()}),this.forceGroup.hide();const a=$('<div class="form-group" style="margin-bottom: 10px;"></div>');e.append(a),this.bgcolorCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.bgcolor}</label>`),a.append(this.bgcolorCheckbox),this.bgcolorGroup=$("<span></span>"),this.bgColorEditor=$('<div class="input-group colorpicker-component" style="width: 170px;height: 26px;display: inline-block;margin-left: 10px;vertical-align: bottom">\n <input type="text" value="#00AABB" class="form-control" style="width: 120px;padding: 3px;height: 29px;vertical-align: top"/>\n <span class="input-group-addon" style="width: 22px"><i></i></span>\n </div>'),this.bgColorEditor.colorpicker({color:"#fff",container:!0,format:"rgb",colorSelectors:{black:"#000000",white:"#FFFFFF",red:"#FF0000",default:"#777777",primary:"#337ab7",success:"#5cb85c",info:"#5bc0de",warning:"#f0ad4e",danger:"#d9534f"}}),this.bgcolorGroup.append(this.bgColorEditor),this.bgColorEditor.children("input").change(function(){let e=$(this).val();e.length>5&&(e=e.substring(4,e.length-1)),t.item.cellStyle.bgcolor=e,Object(o.k)()});const s=$(`<span style="margin-left: 5px;">${window.i18n.dialog.propCondition.scope}</span>`);this.bgcolorScopeSelect=$(`<select class="form-control" style="height: 26px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option value="cell">${window.i18n.dialog.propCondition.currentCell}</option>\n <option value="row">${window.i18n.dialog.propCondition.currentRow}</option>\n <option value="column">${window.i18n.dialog.propCondition.currentCol}</option>\n </select>`),s.append(this.bgcolorScopeSelect),this.bgcolorScopeSelect.change(function(){let e=$(this).val();t.item.cellStyle.bgcolorScope=e,Object(o.k)()}),this.bgcolorGroup.append(s),a.append(this.bgcolorGroup),this.bgcolorCheckbox.children("input").click(function(){$(this).prop("checked")?(t.item.bgcolorScope="cell",t.bgcolorScopeSelect.val("cell"),t.bgcolorGroup.show()):(t.bgcolorGroup.hide(),t.bgColorEditor.val(""),t.item.cellStyle.bgcolor=null,t.item.bgcolorScope=null),Object(o.k)()}),this.bgcolorGroup.hide();const l=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(l),this.fontCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.font}</label>`),l.append(this.fontCheckbox),this.fontGroup=$('<span style="margin-left: 10px"></span>');const d=[];d.push("宋体"),d.push("仿宋"),d.push("黑体"),d.push("楷体"),d.push("微软雅黑"),d.push("Arial"),d.push("Impact"),d.push("Times New Roman"),d.push("Comic Sans MS"),d.push("Courier New"),d.push(""),this.fontSelect=$('<select class="form-control" style="height: 25px;display: inline-block;padding: 3px;width: inherit;vertical-align: top"></select>');for(let e of d)this.fontSelect.append(`<option>${e}</option>`);this.fontGroup.append(this.fontSelect),this.fontSelect.change(function(){t.item.cellStyle.fontFamily=$(this).val(),Object(o.k)()}),l.append(this.fontGroup),this.fontCheckbox.children("input").click(function(){$(this).prop("checked")?(t.fontScopeSelect.val("cell"),t.item.fontFamilyScope="cell",t.fontGroup.show()):(t.fontGroup.hide(),t.fontSelect.val(""),t.item.cellStyle.fontFamily="0",t.item.fontFamilyScope=null),Object(o.k)()}),this.fontGroup.hide();const c=$(`<span style="margin-left: 15px;">${window.i18n.dialog.propCondition.scope}</span>`);this.fontScopeSelect=$(`<select class="form-control" style="height: 26px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option value="cell">${window.i18n.dialog.propCondition.currentCell}</option>\n <option value="row">${window.i18n.dialog.propCondition.currentRow}</option>\n <option value="column">${window.i18n.dialog.propCondition.currentCol}</option>\n </select>`),c.append(this.fontScopeSelect),this.fontScopeSelect.change(function(){let e=$(this).val();t.item.cellStyle.fontFamilyScope=e,Object(o.k)()}),this.fontGroup.append(c);const u=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(u),this.fontSizeCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.fontSize}</label>`),u.append(this.fontSizeCheckbox),this.fontSizeGroup=$('<span style="padding-left: 10px;;"></span>'),this.fontSizeSelect=$('<select class="form-control" style="height: 25px;padding: 3px;width: inherit;display: inline-block;vertical-align: top"><option></option></select>');for(let e=1;e<=100;e++)this.fontSizeSelect.append(`<option>${e}</option>`);this.fontSizeGroup.append(this.fontSizeSelect),this.fontSizeSelect.change(function(){t.item.cellStyle.fontSize=$(this).val(),Object(o.k)()}),u.append(this.fontSizeGroup),this.fontSizeCheckbox.children("input").click(function(){$(this).prop("checked")?(t.fontSizeScopeSelect.val("cell"),t.item.fontSizeScope="cell",t.fontSizeGroup.show()):(t.fontSizeGroup.hide(),t.fontSizeSelect.val(""),t.item.cellStyle.fontSize="0",t.item.fontSizeScope=null),Object(o.k)()}),this.fontSizeGroup.hide();const h=$(`<span style="margin-left: 15px;">${window.i18n.dialog.propCondition.scope}</span>`);this.fontSizeScopeSelect=$(`<select class="form-control" style="height: 26px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option value="cell">${window.i18n.dialog.propCondition.currentCell}</option>\n <option value="row">${window.i18n.dialog.propCondition.currentRow}</option>\n <option value="column">${window.i18n.dialog.propCondition.currentCol}</option>\n </select>`),h.append(this.fontSizeScopeSelect),this.fontSizeScopeSelect.change(function(){let e=$(this).val();t.item.cellStyle.fontSizeScope=e,Object(o.k)()}),this.fontSizeGroup.append(h);const f=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(f),this.fontBoldCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.bold}</label>`),f.append(this.fontBoldCheckbox),this.fontBoldGroup=$('<span style="padding-left: 10px"></span>'),this.fontBoldSelect=$(`<select class="form-control" style="height: 25px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option selected></option>\n <option value="true">${window.i18n.dialog.propCondition.yes}</option>\n <option value="false">${window.i18n.dialog.propCondition.no}</option>\n </select>`),this.fontBoldGroup.append(this.fontBoldSelect),this.fontBoldSelect.change(function(){t.item.cellStyle.bold=$(this).val(),Object(o.k)()}),f.append(this.fontBoldGroup),this.fontBoldCheckbox.children("input").click(function(){$(this).prop("checked")?(t.fontBoldScopeSelect.val("cell"),t.item.boldScope="cell",t.fontBoldGroup.show()):(t.fontBoldGroup.hide(),t.fontBoldSelect.val(""),t.item.cellStyle.bold=null,t.item.boldScope=null),Object(o.k)()}),this.fontBoldGroup.hide();const p=$(`<span style="margin-left: 15px;">${window.i18n.dialog.propCondition.scope}</span>`);this.fontBoldScopeSelect=$(`<select class="form-control" style="height: 26px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option value="cell">${window.i18n.dialog.propCondition.currentCell}</option>\n <option value="row">${window.i18n.dialog.propCondition.currentRow}</option>\n <option value="column">${window.i18n.dialog.propCondition.currentCol}</option>\n </select>`),p.append(this.fontBoldScopeSelect),this.fontBoldScopeSelect.change(function(){let e=$(this).val();t.item.cellStyle.boldScope=e,Object(o.k)()}),this.fontBoldGroup.append(p);const m=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(m),this.fontItalicCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.italic}</label>`),m.append(this.fontItalicCheckbox),this.fontItalicGroup=$('<span style="padding-left: 10px"></span>'),this.fontItalicSelect=$(`<select class="form-control" style="height: 25px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option selected></option>\n <option value="true">${window.i18n.dialog.propCondition.yes}</option>\n <option value="false">${window.i18n.dialog.propCondition.no}</option>\n </select>`),this.fontItalicGroup.append(this.fontItalicSelect),this.fontItalicSelect.change(function(){t.item.cellStyle.italic=$(this).val(),Object(o.k)()}),m.append(this.fontItalicGroup),this.fontItalicCheckbox.children("input").click(function(){$(this).prop("checked")?(t.fontItalicScopeSelect.val("cell"),t.item.italicScope="cell",t.fontItalicGroup.show()):(t.fontItalicGroup.hide(),t.fontItalicSelect.val(""),t.item.cellStyle.italic=null,t.item.italicScope=null),Object(o.k)()}),this.fontItalicGroup.hide();const g=$(`<span style="margin-left: 15px;">${window.i18n.dialog.propCondition.scope}</span>`);this.fontItalicScopeSelect=$(`<select class="form-control" style="height: 26px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option value="cell">${window.i18n.dialog.propCondition.currentCell}</option>\n <option value="row">${window.i18n.dialog.propCondition.currentRow}</option>\n <option value="column">${window.i18n.dialog.propCondition.currentCol}</option>\n </select>`),g.append(this.fontItalicScopeSelect),this.fontItalicScopeSelect.change(function(){let e=$(this).val();t.item.cellStyle.italicScope=e,Object(o.k)()}),this.fontItalicGroup.append(g);const y=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(y),this.fontUnderlineCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.underline}</label>`),y.append(this.fontUnderlineCheckbox),this.fontUnderlineGroup=$('<span style="padding-left: 10px"></span>'),this.fontUnderlineSelect=$(`<select class="form-control" style="height: 25px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option selected></option>\n <option value="true">${window.i18n.dialog.propCondition.yes}</option>\n <option value="false">${window.i18n.dialog.propCondition.no}</option>\n </select>`),this.fontUnderlineGroup.append(this.fontUnderlineSelect),this.fontUnderlineSelect.change(function(){t.item.cellStyle.underline=$(this).val(),Object(o.k)()}),y.append(this.fontUnderlineGroup),this.fontUnderlineCheckbox.children("input").click(function(){$(this).prop("checked")?(t.fontUnderlineScopeSelect.val("cell"),t.item.underlineScope="cell",t.fontUnderlineGroup.show()):(t.fontUnderlineGroup.hide(),t.fontUnderlineSelect.val(""),t.item.cellStyle.underline=null,t.item.underlineScope=null),Object(o.k)()}),this.fontUnderlineGroup.hide();const v=$(`<span style="margin-left: 15px;">${window.i18n.dialog.propCondition.scope}</span>`);this.fontUnderlineScopeSelect=$(`<select class="form-control" style="height: 26px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option value="cell">${window.i18n.dialog.propCondition.currentCell}</option>\n <option value="row">${window.i18n.dialog.propCondition.currentRow}</option>\n <option value="column">${window.i18n.dialog.propCondition.currentCol}</option>\n </select>`),v.append(this.fontUnderlineScopeSelect),this.fontUnderlineScopeSelect.change(function(){let e=$(this).val();t.item.cellStyle.underlineScope=e,Object(o.k)()}),this.fontUnderlineGroup.append(v);const A=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(A),this.alignCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.align}</label>`),A.append(this.alignCheckbox),this.alignGroup=$('<span style="margin-left: 10px"></span>'),this.alignSelect=$(`<select class="form-control" style="height: 25px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option selected></option>\n <option value="left">${window.i18n.dialog.propCondition.left}</option>\n <option value="center">${window.i18n.dialog.propCondition.center}</option>\n <option value="right">${window.i18n.dialog.propCondition.right}</option>\n </select>`),this.alignGroup.append(this.alignSelect),this.alignSelect.change(function(){t.item.cellStyle.align=$(this).val(),Object(o.k)()}),A.append(this.alignGroup),this.alignCheckbox.children("input").click(function(){$(this).prop("checked")?(t.alignScopeSelect.val("cell"),t.item.alignScope="cell",t.alignGroup.show()):(t.alignGroup.hide(),t.alignSelect.val(""),t.item.cellStyle.align=null,t.item.alignScope=null),Object(o.k)()}),this.alignGroup.hide();const b=$(`<span style="margin-left: 15px;">${window.i18n.dialog.propCondition.scope}</span>`);this.alignScopeSelect=$(`<select class="form-control" style="height: 26px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option value="cell">${window.i18n.dialog.propCondition.currentCell}</option>\n <option value="row">${window.i18n.dialog.propCondition.currentRow}</option>\n <option value="column">${window.i18n.dialog.propCondition.currentCol}</option>\n </select>`),b.append(this.alignScopeSelect),this.alignScopeSelect.change(function(){let e=$(this).val();t.item.cellStyle.alignScope=e,Object(o.k)()}),this.alignGroup.append(b);const w=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(w),this.valignCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.valign}</label>`),w.append(this.valignCheckbox),this.valignGroup=$('<span style="margin-left: 10px"></span>'),this.valignSelect=$(`<select class="form-control" style="height: 25px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option selected></option>\n <option value="top">${window.i18n.dialog.propCondition.top}</option>\n <option value="middle">${window.i18n.dialog.propCondition.mid}</option>\n <option value="bottom">${window.i18n.dialog.propCondition.bottom}</option>\n </select>`),this.valignGroup.append(this.valignSelect),this.valignSelect.change(function(){t.item.cellStyle.valign=$(this).val(),Object(o.k)()}),w.append(this.valignGroup),this.valignCheckbox.children("input").click(function(){$(this).prop("checked")?(t.valignScopeSelect.val("cell"),t.item.valignScope="cell",t.valignGroup.show()):(t.valignGroup.hide(),t.valignSelect.val(""),t.item.cellStyle.valign=null,t.item.valignScope=null),Object(o.k)()}),this.valignGroup.hide();const _=$(`<span style="margin-left: 15px;">${window.i18n.dialog.propCondition.scope}</span>`);this.valignScopeSelect=$(`<select class="form-control" style="height: 26px;padding: 3px;width: inherit;display: inline-block;vertical-align: top">\n <option value="cell">${window.i18n.dialog.propCondition.currentCell}</option>\n <option value="row">${window.i18n.dialog.propCondition.currentRow}</option>\n <option value="column">${window.i18n.dialog.propCondition.currentCol}</option>\n </select>`),_.append(this.valignScopeSelect),this.valignScopeSelect.change(function(){let e=$(this).val();t.item.cellStyle.valignScope=e,Object(o.k)()}),this.valignGroup.append(_);const M=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(M),this.borderCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.border}</label>`),M.append(this.borderCheckbox),this.borderGroup=$('<span style="margin-left: 10px;"></span>'),M.append(this.borderGroup);const x=$(`<button type="button" class="btn btn-default" style="padding: 1px 8px;"><i class="ureport ureport-setting"></i> ${window.i18n.dialog.propCondition.borderConfig}</button>`),k=new ge;x.click(function(){const e=t.item.cellStyle;e.leftBorder||(e.leftBorder={color:"0,0,0",width:"1",style:"solid"}),e.rightBorder||(e.rightBorder={color:"0,0,0",width:"1",style:"solid"}),e.topBorder||(e.topBorder={color:"0,0,0",width:"1",style:"solid"}),e.bottomBorder||(e.bottomBorder={color:"0,0,0",width:"1",style:"solid"}),k.show(e),Object(o.k)()}),this.borderGroup.append(x),this.borderCheckbox.children("input").click(function(){if($(this).prop("checked"))t.borderGroup.show();else{t.borderGroup.hide(),t.alignSelect.val("");const e=t.item.cellStyle;e.leftBorder=null,e.rightBorder=null,e.topBorder=null,e.bottomBorder=null}Object(o.k)()}),this.borderGroup.hide();const S=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(S),this.newValueCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.newValue}</label>`),S.append(this.newValueCheckbox),this.newValueGroup=$('<span style="margin-left: 10px;"></span>'),S.append(this.newValueGroup),this.newValueEditor=$('<input type="text" class="form-control" style="display: inline-block;height: 25px;padding: 3px;width: 268px;">'),this.newValueGroup.append(this.newValueEditor),this.newValueEditor.change(function(){t.item.newValue=$(this).val(),Object(o.k)()}),this.newValueCheckbox.children("input").click(function(){$(this).prop("checked")?t.newValueGroup.show():(t.newValueGroup.hide(),t.newValueEditor.val(""),t.item.newValue=null),Object(o.k)()}),this.newValueGroup.hide();const C=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(C),this.formatCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.format}</label>`),C.append(this.formatCheckbox),this.formatGroup=$('<span style="margin-left: 10px;"></span>'),C.append(this.formatGroup),this.formatEditor=$('<input type="text" class="form-control" style="display: inline-block;height: 25px;padding: 3px;width: 268px;">'),this.formatGroup.append(this.formatEditor),this.formatEditor.change(function(){t.item.cellStyle.format=$(this).val()}),this.formatCheckbox.children("input").click(function(){$(this).prop("checked")?t.formatGroup.show():(t.formatGroup.hide(),t.formatEditor.val(""),t.item.cellStyle.format=null),Object(o.k)()}),this.formatGroup.hide(),this.formatEditor.completer({source:["yyyy/MM/dd","yyyy/MM","yyyy-MM","yyyy","yyyy-MM-dd HH:mm:ss","yyyy年MM月dd日 HH:mm:ss","yyyy-MM-dd","yyyy年MM月dd日","HH:mm","HH:mm:ss","#.##","#.00","##.##%","##.00%","##,###.##","¥##,###.##","$##,###.##","0.00E00","##0.0E0"],complete:function(){let e=t.formatEditor.val();t.item.cellStyle.format=e},suggest:!0,zIndex:1301});const E=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(E),this.rowHeightCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.rowHeight}</label>`),E.append(this.rowHeightCheckbox),this.rowHeightGroup=$('<span style="margin-left: 10px;"></span>'),E.append(this.rowHeightGroup),this.rowHeightEditor=$('<input type="number" class="form-control" style="display: inline-block;height: 25px;padding: 3px;width: 88px;">'),this.rowHeightGroup.append(this.rowHeightEditor),this.rowHeightEditor.change(function(){t.item.rowHeight=$(this).val()}),this.rowHeightCheckbox.children("input").click(function(){$(this).prop("checked")?(t.rowHeightGroup.show(),t.item.rowHeight=0,t.rowHeightEditor.val("0")):(t.rowHeightGroup.hide(),t.rowHeightEditor.val(""),t.item.rowHeight=null),Object(o.k)()}),this.rowHeightGroup.hide();const L=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(L),this.colWidthCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.colWidth}</label>`),L.append(this.colWidthCheckbox),this.colWidthGroup=$('<span style="margin-left: 10px;"></span>'),L.append(this.colWidthGroup),this.colWidthEditor=$('<input type="number" class="form-control" style="display: inline-block;height: 25px;padding: 3px;width: 88px;">'),this.colWidthGroup.append(this.colWidthEditor),this.colWidthEditor.change(function(){t.item.colWidth=$(this).val()}),this.colWidthCheckbox.children("input").click(function(){$(this).prop("checked")?(t.colWidthGroup.show(),t.item.colWidth=0,t.colWidthEditor.val("0")):(t.colWidthGroup.hide(),t.colWidthEditor.val(""),t.item.colWidth=null),Object(o.k)()}),this.colWidthGroup.hide();const T=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(T),this.pagingBreakCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.paging}</label>`),T.append(this.pagingBreakCheckbox),this.pagingBreakGroup=$('<span style="margin-left: 10px;"></span>'),T.append(this.pagingBreakGroup),this.pagingBreakSelect=$(`<select class="form-control" style="display: inline-block;height: 25px;padding: 1px;width: 90px;vertical-align: top">\n <option value="before">${window.i18n.dialog.propCondition.rowBefore}</option>\n <option value="after" selected>${window.i18n.dialog.propCondition.rowAfter}</option>\n </select>`),this.pagingBreakGroup.append(this.pagingBreakSelect),this.pagingBreakSelect.change(function(){t.item.paging.position=$(this).val()}),this.pagingLineEditor=$('<input type="number" class="form-control" value="0" style="display: inline-block;height: 25px;padding: 3px;width: 60px;vertical-align: top;margin-left: 5px">'),this.pagingBreakGroup.append(this.pagingLineEditor),this.pagingLineEditor.hide(),this.pagingBreakGroup.append(`<span style='margin-left: 5px'>${window.i18n.dialog.propCondition.paging}</span>`),this.pagingLineEditor.change(function(){t.item.paging.line=$(this).val()}),this.pagingBreakCheckbox.children("input").click(function(){$(this).prop("checked")?(t.pagingBreakGroup.show(),t.item.paging={position:"after",line:0},t.pagingLineEditor.val("0")):(t.pagingBreakGroup.hide(),t.item.paging=null,t.pagingLineEditor.val("0")),Object(o.k)()}),this.pagingBreakGroup.hide();const D=$('<div class="form-group" style="margin-bottom: 5px;"></div>');e.append(D),this.linkCheckbox=$(`<label><input type="checkbox">${window.i18n.dialog.propCondition.link}</label>`),D.append(this.linkCheckbox),this.linkGroup=$('<span style="margin-left: 10px"></span>'),this.linkEditor=$('<span>URL:<input type="text" class="form-control" style="height: 25px;padding: 3px;display: inline-block;width:270px;"></span>'),this.linkGroup.append(this.linkEditor),this.linkEditor.children("input").change(function(){t.item.linkUrl=$(this).val(),Object(o.k)()}),this.linkTargetSelect=$(`<span style="margin-left: 60px;">${window.i18n.dialog.propCondition.target}<select class="form-control" style="height: 25px;display: inline-block;padding: 3px;width: 136px">\n <option></option>\n <option value="_blank">${window.i18n.dialog.propCondition.newWindow}</option>\n <option value="_self">${window.i18n.dialog.propCondition.currentWindow}</option>\n <option value="_parent">${window.i18n.dialog.propCondition.parentWindow}</option>\n <option value="_top">${window.i18n.dialog.propCondition.topWindow}</option>\n </select></span>`),this.linkGroup.append(this.linkTargetSelect),this.linkTargetSelect.children("select").change(function(){t.item.linkTargetWindow=$(this).val(),Object(o.k)()});const Y=$(`<button type="button" class="btn btn-default" style="margin-left: 5px;padding: 1px 8px;">${window.i18n.dialog.propCondition.urlParameter}</button>`);this.linkGroup.append(Y);const R=new me;Y.click(function(){t.item.linkUrl?(t.item.linkParameters||(t.item.linkParameters=[]),R.show(t.item.linkParameters),Object(o.k)()):Object(i.a)(`${window.i18n.dialog.propCondition.linkUrl}`)}),D.append(this.linkGroup),this.linkCheckbox.children("input").click(function(){$(this).prop("checked")?t.linkGroup.show():(t.linkGroup.hide(),t.linkEditor.children("input").val(""),t.linkTargetSelect.children("select").val(""),t.item.linkUrl=null,t.item.linkTargetWindow=null,t.item.linkParameters=null),Object(o.k)()}),this.linkGroup.hide()}_refreshProperties(e){let t;e.cellStyle||(e.cellStyle={fontSize:"0",fontFamily:"0"});for(let n of this.propertyConditions)if(n.id===e.id){t=n;break}const n=this.propertyConditions.indexOf(t);this.propertyConditions.splice(n,1,e),this.item=e,this.propGroup.show(),this.rowHeightEditor.val("");const i=e.rowHeight;null!==i&&void 0!==i&&-1!==i?(this.rowHeightGroup.show(),this.rowHeightEditor.val(i),this.rowHeightCheckbox.children("input").prop("checked",!0)):(this.rowHeightGroup.hide(),this.rowHeightCheckbox.children("input").prop("checked",!1)),this.colWidthEditor.val("");const o=e.colWidth;null!==o&&void 0!==o&&-1!==o?(this.colWidthGroup.show(),this.colWidthEditor.val(o),this.colWidthCheckbox.children("input").prop("checked",!0)):(this.colWidthGroup.hide(),this.colWidthCheckbox.children("input").prop("checked",!1)),this.newValueEditor.val("");const r=e.newValue;r&&""!==r?(this.newValueEditor.val(r),this.newValueGroup.show(),this.newValueCheckbox.children("input").prop("checked",!0)):(this.newValueGroup.hide(),this.newValueCheckbox.children("input").prop("checked",!1)),this.linkEditor.children("input").val(""),this.linkTargetSelect.children("select").val("");const a=e.linkUrl;a?(this.linkEditor.children("input").val(a),this.linkTargetSelect.children("select").val(e.linkTargetWindow),this.linkGroup.show(),this.linkCheckbox.children("input").prop("checked",!0)):(this.linkGroup.hide(),this.linkCheckbox.children("input").prop("checked",!1)),this.pagingBreakSelect.val(""),this.pagingLineEditor.val("");const s=e.paging;s?(this.pagingBreakGroup.show(),this.pagingBreakCheckbox.children("input").prop("checked",!0),this.pagingBreakSelect.val(s.position),this.pagingLineEditor.val(s.line)):(this.pagingBreakCheckbox.children("input").prop("checked",!1),this.pagingBreakGroup.hide()),this.forceColorEditor.children("input").val(""),this.forceScopeSelect.val("");const l=e.cellStyle||{},d=l.forecolor;d&&""!==d?(this.forceGroup.show(),this.forceColorEditor.children("input").val("rgb("+d+")"),this.forceColorEditor.children("input").trigger("change"),this.forceCheckbox.children("input").prop("checked",!0),this.forceScopeSelect.val(l.forecolorScope)):(this.forceGroup.hide(),this.forceCheckbox.children("input").prop("checked",!1)),this.bgColorEditor.children("input").val(""),this.bgcolorScopeSelect.val("");const c=l.bgcolor;c&&""!==c?(this.bgcolorGroup.show(),this.bgColorEditor.children("input").val("rgb("+c+")"),this.bgColorEditor.children("input").trigger("change"),this.bgcolorCheckbox.children("input").prop("checked",!0),this.bgcolorScopeSelect.val(l.bgcolorScope)):(this.bgcolorGroup.hide(),this.bgcolorCheckbox.children("input").prop("checked",!1)),this.fontSelect.val(""),this.fontScopeSelect.val("");const u=l.fontFamily;u&&"0"!==u?(this.fontSelect.val(u),this.fontGroup.show(),this.fontCheckbox.children("input").prop("checked",!0),this.fontScopeSelect.val(l.fontFamilyScope)):(this.fontGroup.hide(),this.fontCheckbox.children("input").prop("checked",!1)),this.fontSizeSelect.val(""),this.fontSizeScopeSelect.val("");const h=l.fontSize;h&&"0"!==h?(this.fontSizeSelect.val(h),this.fontSizeCheckbox.children("input").prop("checked",!0),this.fontSizeGroup.show(),this.fontSizeScopeSelect.val(l.fontSizeScope)):(this.fontSizeCheckbox.children("input").prop("checked",!1),this.fontSizeGroup.hide()),this.fontBoldSelect.val("false"),this.fontBoldScopeSelect.val("");const f=l.bold;null!==f&&void 0!==f&&""!==f?("true"===f||!0===f?this.fontBoldSelect.val("true"):this.fontBoldSelect.val("false"),this.fontBoldCheckbox.children("input").prop("checked",!0),this.fontBoldGroup.show(),this.fontBoldScopeSelect.val(l.boldScope)):(this.fontBoldCheckbox.children("input").prop("checked",!1),this.fontBoldGroup.hide()),this.fontItalicSelect.val("false"),this.fontItalicScopeSelect.val("");const p=l.italic;null!==p&&void 0!==p&&""!==p?(!0===p||"true"===p?this.fontItalicSelect.val("true"):this.fontItalicSelect.val("false"),this.fontItalicCheckbox.children("input").prop("checked",!0),this.fontItalicGroup.show(),this.fontItalicScopeSelect.val(l.italicScope)):(this.fontItalicCheckbox.children("input").prop("checked",!1),this.fontItalicGroup.hide()),this.fontUnderlineSelect.val("false"),this.fontUnderlineScopeSelect.val("");const m=l.underline;null!==m&&void 0!==m&&""!==m?(!0===m||"true"===m?this.fontUnderlineSelect.val("true"):this.fontUnderlineSelect.val("false"),this.fontUnderlineCheckbox.children("input").prop("checked",!0),this.fontUnderlineGroup.show(),this.fontUnderlineScopeSelect.val(l.underlineScope)):(this.fontUnderlineCheckbox.children("input").prop("checked",!1),this.fontUnderlineGroup.hide()),this.alignSelect.val(""),this.alignScopeSelect.val("");const g=l.align;g&&""!==g?(this.alignSelect.val(g),this.alignCheckbox.children("input").prop("checked",!0),this.alignGroup.show(),this.alignScopeSelect.val(l.alignScope)):(this.alignCheckbox.children("input").prop("checked",!1),this.alignGroup.hide()),this.valignSelect.val(""),this.valignScopeSelect.val("");const y=l.valign;y&&""!==y?(this.valignSelect.val(y),this.valignCheckbox.children("input").prop("checked",!0),this.valignGroup.show(),this.valignScopeSelect.val(l.valignScope)):(this.valignCheckbox.children("input").prop("checked",!1),this.valignGroup.hide()),l.leftBorder||l.rightBorder||l.topBorder||l.bottomBorder?(this.borderCheckbox.children("input").prop("checked",!0),this.borderGroup.show()):(this.borderCheckbox.children("input").prop("checked",!1),this.borderGroup.hide()),this.formatEditor.val("");const v=l.format;v&&""!==v?(this.formatEditor.val(v),this.formatCheckbox.children("input").prop("checked",!0),this.formatGroup.show()):(this.formatCheckbox.children("input").prop("checked",!1),this.formatGroup.hide())}show(e,t,n){this.datasources=e,this.datasetName=t,this.propertyConditions=n,this.dialog.modal("show"),this.itemSelect.empty();for(let e of n){e.id||(e.id=J.a.v1());const t=$(`<option>${e.name}</option>`);t.data(e),this.itemSelect.append(t)}this.conditionList.empty(),this.propGroup.hide()}}class ve{_buildFillBlankRows(e){this.fillGroup=$(`<div class="form-group" style="margin-bottom: 10px;height: 25px;"><label>${window.i18n.property.base.fillBlank}</label></div>`),this.enableFillRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__fill_blank_row_radio" value="default">${window.i18n.property.base.open}</label>`),this.fillGroup.append(this.enableFillRadio),this.disableFillRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__fill_blank_row_radio" value="custom">${window.i18n.property.base.close}</label>`),this.fillGroup.append(this.disableFillRadio),e?e.append(this.fillGroup):this.container.append(this.fillGroup);const t=this;this.enableFillRadio.children("input").click(function(){t._setFillBlankRows(!0),t.multipleGroup.show()}),this.disableFillRadio.children("input").click(function(){t._setFillBlankRows(!1),t.multipleGroup.hide()}),this.multipleGroup=$(`<span style="margin-left: 10px">${window.i18n.property.base.rowTimes}</span>`),this.fillGroup.append(this.multipleGroup),this.multipleEditor=$('<input type="number" class="form-control" style="display: inline-block;width: 77px;height: 25px;padding: 3px;font-size: 12px">'),this.multipleGroup.append(this.multipleEditor),this.multipleEditor.change(function(){const e=$(this).val();for(let n=t.rowIndex;n<=t.row2Index;n++)for(let i=t.colIndex;i<=t.col2Index;i++){const o=t.context.getCell(n,i);o&&(o.multiple=e)}Object(o.k)()})}_setFillBlankRows(e){if(!this.initialized){for(let t=this.rowIndex;t<=this.row2Index;t++)for(let n=this.colIndex;n<=this.col2Index;n++){const i=this.context.getCell(t,n);i&&(i.fillBlankRows=e,i.multiple||(i.multiple=0))}Object(o.k)()}}_buildWrapCompute(e){this.wrapGroup=$(`<div class="form-group" style="margin-bottom: 10px"><label>${window.i18n.property.base.newLineCompute}</label></div>`),this.enableWrapComput=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__wrap_compute_radio" value="default" title="${window.i18n.property.base.newLineComputeTip}">${window.i18n.property.base.open}</label>`),this.wrapGroup.append(this.enableWrapComput),this.disableWrapComput=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__wrap_compute_radio" value="custom">${window.i18n.property.base.close}</label>`),this.wrapGroup.append(this.disableWrapComput),e?e.append(this.wrapGroup):this.container.append(this.wrapGroup);const t=this;this.enableWrapComput.children("input").click(function(){t._setWrapCompute(!0)}),this.disableWrapComput.children("input").click(function(){t._setWrapCompute(!1)})}_setWrapCompute(e){if(!this.initialized){for(let t=this.rowIndex;t<=this.row2Index;t++)for(let n=this.colIndex;n<=this.col2Index;n++){const i=this.context.getCell(t,n);i&&(i.cellStyle.wrapCompute=e)}Object(o.k)()}}_buildFormat(e){const t=this;this.formatGroup=$(`<div class="form-group" style="margin-bottom:10px;"><label>${window.i18n.property.base.format}</label></div>`),this.formatEditor=$(`<input type="text" class="form-control" style="display: inline-block;width: 302px;padding: 3px;font-size: 12px;height: 25px;" placeholder="${window.i18n.property.base.formatTip}">`),this.formatGroup.append(this.formatEditor),this.formatEditor.completer({source:["yyyy/MM/dd","yyyy/MM","yyyy-MM","yyyy","yyyy-MM-dd HH:mm:ss","yyyy年MM月dd日 HH:mm:ss","yyyy-MM-dd","yyyy年MM月dd日","HH:mm","HH:mm:ss","#.##","#.00","##.##%","##.00%","##,###.##","¥##,###.##","$##,###.##","0.00E00","##0.0E0"],complete:function(){let e=t.formatEditor.val();t._setFormat(e)},suggest:!0,zIndex:1200}),e?e.append(this.formatGroup):this.container.append(this.formatGroup),this.formatEditor.change(function(){t._setFormat($(this).val())})}_buildConditionProperty(e){const t=this,n=$(`<div class="form-group" style="margin-bottom: 10px"><label>${window.i18n.property.base.conditionProp}</label></div>`);e?e.append(n):this.container.append(n);const i=$(`<button type="button" class="btn btn-default" style="font-size: 12px;height: 25px;padding: 4px;10px;"><i class="glyphicon glyphicon-filter"></i> ${window.i18n.property.base.configCondition}</button>`);n.append(i);const o=new ye;i.click(function(){const e=t.cellDef.conditionPropertyItems||[];t.cellDef.conditionPropertyItems||(t.cellDef.conditionPropertyItems=e);let n="";if(t.datasetSelect)n=t.datasetSelect.val(),o.show(t.datasources,n,e);else{const i=t.codeMirror.getValue();if(i&&""!==i){const r=window._server+"/designer/parseDatasetName";$.ajax({url:r,type:"POST",data:{expr:i},success:function(i){n=i.datasetName,o.show(t.datasources,n,e)},error:function(){o.show(t.datasources,n,e)}})}}})}_setFormat(e){if(!this.initialized){for(let t=this.rowIndex;t<=this.row2Index;t++)for(let n=this.colIndex;n<=this.col2Index;n++){const i=this.context.getCell(t,n);i&&(i.cellStyle.format=e)}Object(o.k)()}}_buildScriptLintFunction(){return function(e,t,n,i){if(""===e)return void t(i,[]);if(!e||""===e)return;const o=window._server+"/designer/scriptValidation";$.ajax({url:o,data:{content:e},type:"POST",success:function(e){if(e){for(let t of e)t.from={line:t.line-1},t.to={line:t.line-1};t(i,e)}else t(i,[])},error:function(){alert(`${window.i18n.property.base.syntaxError}`)}})}}}class Ae extends ve{constructor(e,t){super(),this.context=t,this.container=$("<div></div>"),e.append(this.container),this._buildWrapCompute(this.container),this._buildExpand(),this._buildFormat(),this._buildConditionProperty(),this._initCodeEditor()}_initCodeEditor(){this.container.append(`<label>${window.i18n.property.expr.expr}</label>`);const e=$('<div style="border: solid 1px #eeeeee;"></div>');this.container.append(e);const t=$("<textarea></textarea>");e.append(t);const n=this;setTimeout(function(){n.codeMirror=X.a.fromTextArea(t.get(0),{mode:"javascript",lineNumbers:!0,gutters:["CodeMirror-linenumbers","CodeMirror-lint-markers"],lint:{getAnnotations:n._buildScriptLintFunction(),async:!0}}),n.codeMirror.setSize("auto","160px"),n.codeMirror.on("change",function(e,t){let i=e.getValue();n.cellDef.value.value=i,n.context.hot.setDataAtCell(n.rowIndex,n.colIndex,i),Object(o.k)()}),n.container.hide()},100)}_buildExpand(){const e=this,t=$(`<div class="form-group" style="margin-bottom: 10px;"><label>${window.i18n.property.expr.expand}</label></div>`);this.downExpandRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__expand_radio" value="Down">${window.i18n.property.expr.down}</label>`),t.append(this.downExpandRadio),this.downExpandRadio.children("input").click(function(){e._setExpand("Down")}),this.rightExpandRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__expand_radio" value="Right">${window.i18n.property.expr.right}</label>`),t.append(this.rightExpandRadio),this.rightExpandRadio.children("input").click(function(){e._setExpand("Right")}),this.noneExpandRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__expand_radio" value="None">${window.i18n.property.expr.noneExpand}</label>`),t.append(this.noneExpandRadio),this.noneExpandRadio.children("input").click(function(){e._setExpand("None")}),this.container.append(t)}_setExpand(e){const t=this.context.hot;for(let n=this.rowIndex;n<=this.row2Index;n++)for(let i=this.colIndex;i<=this.col2Index;i++){const o=t.context.getCell(n,i);if(!o)continue;const r=o.value.type;"dataset"!==r&&"expression"!==r||(o.expand=e)}t.render(),Object(o.k)()}show(e,t,n,i,o){this.cellDef=e,this.datasources=this.context.reportDef.datasources,this.rowIndex=t,this.colIndex=n,this.row2Index=i,this.col2Index=o,this.container.show(),this.codeMirror.setValue(e.value.value);const r=e.expand;"None"===r?this.noneExpandRadio.trigger("click"):"Down"===r?this.downExpandRadio.trigger("click"):"Right"===r&&this.rightExpandRadio.trigger("click");const a=e.cellStyle;a.format?this.formatEditor.val(a.format):this.formatEditor.val(""),a.wrapCompute?this.enableWrapComput.children("input").prop("checked",!0):this.disableWrapComput.children("input").prop("checked",!0)}hide(){this.container.hide()}}class be{constructor(e){this.conditions=e,this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.condition.config}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>`);const t=this.dialog.find(".modal-body"),n=this.dialog.find(".modal-footer");this.init(t,n)}init(e,t){const n=this;this.joinGroup=$(`<div class="form-group"><label>${window.i18n.dialog.condition.relationship}</label></div>`),this.joinSelect=$(`<select class="form-control" style="display: inline-block;width:430px;">\n <option value="and">${window.i18n.dialog.condition.and}</option>\n <option value="or">${window.i18n.dialog.condition.or}</option>\n </select>`),this.joinGroup.append(this.joinSelect),e.append(this.joinGroup);const o=$(`<div class="form-group"><label>${window.i18n.dialog.condition.propertyName}</label></div>`);this.propertySelect=$('<select class="form-control" style="display: inline-block;width:490px;"></select>'),o.append(this.propertySelect),e.append(o);const r=$(`<div class="form-group"><label>${window.i18n.dialog.condition.op}</label></div>`);this.operatorSelect=$(`<select class="form-control" style="display: inline-block;width:490px;">\n <option value=">">${window.i18n.dialog.condition.greatThen}</option>\n <option value=">=">${window.i18n.dialog.condition.greatEquals}</option>\n <option value="<">${window.i18n.dialog.condition.lessThen}</option>\n <option value="<=">${window.i18n.dialog.condition.lessEquals}</option>\n <option value="==">${window.i18n.dialog.condition.equals}</option>\n <option value="!=">${window.i18n.dialog.condition.notEquals}</option>\n <option value="in">${window.i18n.dialog.condition.in}</option>\n <option value="like">${window.i18n.dialog.condition.like}</option>\n </select>`),r.append(this.operatorSelect),e.append(r);const a=$(`<div class="form-group"><label>${window.i18n.dialog.condition.valueExpr}</label></div>`);this.valueEditor=$('<input type="text" class="form-control" style="display: inline-block;width:477px;">'),a.append(this.valueEditor),e.append(a),this.valueEditor.change(function(){const e=$(this).val(),t=window._server+"/designer/conditionScriptValidation";$.ajax({url:t,type:"POST",data:{content:e},success:function(t){t.length>0&&Object(i.a)(`${e} ${window.i18n.dialog.condition.exprError}`)}})});const s=$(`<button class="btn btn-default">${window.i18n.dialog.condition.ok}</button>`);s.click(function(){const e=n.propertySelect.val(),t=n.operatorSelect.val(),o=n.valueEditor.val(),r=n.joinSelect.val();""!==e?""!==t?""!==o?(n.condition?n.condition.join?n.callback.call(n,e,t,o,r):n.callback.call(n,e,t,o):n.conditions.length>0?n.callback.call(n,e,t,o,r):n.callback.call(n,e,t,o),n.dialog.modal("hide")):Object(i.a)(`${window.i18n.dialog.condition.inputExpr}`):Object(i.a)(`${window.i18n.dialog.condition.selectOp}`):Object(i.a)(`${window.i18n.dialog.condition.selectProperty}`)}),t.append(s)}show(e,t,n){this.callback=e,this.condition=n,n?n.join?this.joinGroup.show():this.joinGroup.hide():this.conditions.length>0?this.joinGroup.show():this.joinGroup.hide(),this.propertySelect.empty();for(let e of t)this.propertySelect.append(`<option>${e.name}</option>`);n&&(this.propertySelect.val(n.left),this.operatorSelect.val(n.operation||n.op),this.valueEditor.val(n.right),this.joinSelect.val(n.join)),this.dialog.modal("show")}}class we{constructor(){this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10001">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.groupItem.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer">\n </div>\n </div>\n </div>\n </div>`);const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t)}initBody(e,t){const n=$(`<div class="form-group"><label>${window.i18n.dialog.groupItem.name}</label></div>`);this.nameEditor=$('<input type="text" class="form-control">'),n.append(this.nameEditor),e.append(n);const o=$(`<button type="button" class="btn btn-default">${window.i18n.dialog.groupItem.ok}</button>`);t.append(o);const r=this;o.click(function(){const e=r.nameEditor.val();""!==e?(r.groupItem.name=e,r.callback.call(this),r.dialog.modal("hide")):Object(i.a)(`${window.i18n.dialog.groupItem.nameTip}`)})}show(e,t,n){this.groupItem=e,this.callback=t,this.dialog.modal("show"),this.nameEditor.val(e.name);const i=this.dialog.find(".modal-title");"add"===n?i.html(`${window.i18n.dialog.groupItem.addItem}`):"edit"===n&&i.html(`${window.i18n.dialog.groupItem.editItem}`)}}class _e{constructor(){this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.customGroup.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>`);const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t)}initBody(e,t){const n=$('<div class="form-group"></div>');e.append(n);const o=$("<span></span>");n.append(o),this.initCondition(n);const r=$('<div style="margin-bottom: 5px"></div>');o.append(r);const a=$('<button type="button" class="btn btn-default"><i class="glyphicon glyphicon-plus-sign" style="color: #00a8c6"></i></button>');r.append(a);const s=new we,l=this;a.click(function(){const e=l.cellDef.value.groupItems,t={name:"",conditions:[]};s.show(t,function(){e.push(t);const n=$(`<option>${t.name}</option>`);n.data(t),l.itemSelect.append(n)},"add")});const d=$('<button type="button" class="btn btn-default"><i class="glyphicon glyphicon-minus-sign" style="color: #d30e00"></i></button>');r.append(d),d.click(function(){const e=l.itemSelect.find("option:selected"),t=e.text();if(""===t)return void Object(i.a)(`${window.i18n.dialog.customGroup.deleteTip}`);const n=l.cellDef.value.groupItems;let o=-1,r=0;for(let e of n){if(e.name===t){o=r;break}r++}-1!==o?Object(i.b)(`${window.i18n.dialog.customGroup.deleteConfirm}[${t}]?`,function(){n.splice(o,1),e.remove()}):Object(i.a)(`${window.i18n.dialog.customGroup.deleteTip}`)});const c=$('<button type="button" class="btn btn-default"><i class="glyphicon glyphicon-pencil" style="color: #3344d3"></i></button>');r.append(c),c.click(function(){const e=l.itemSelect.find("option:selected"),t=e.text();let n=null;const o=l.cellDef.value.groupItems;for(let e of o)if(e.name===t){n=e;break}n?s.show(n,function(){e.text(n.name),e.data(n)},"edit"):Object(i.a)(`${window.i18n.dialog.customGroup.modTip}`)}),this.itemSelect=$('<select size="15" class="form-control" style="width:200px;height: 285px;display: inline-block"></select>'),o.append(this.itemSelect),this.itemSelect.change(function(){const e=$(this).find("option:selected");if(""===e.text())return;l.conditionList.empty();const t=e.data().conditions;let n=0;for(let e of t){let t=e.leftProperty+" "+e.op+" "+e.rightExpression;const i=e.join;n>0&&i&&(t=i+" "+t);const o=$(`<option>${t}</option>`);o.data(e),l.conditionList.append(o),n++}l.conditionGroup.show()})}initCondition(e){this.conditionGroup=$("<span></span>"),e.append(this.conditionGroup),this._buildConditionTable(this.conditionGroup),this.conditionGroup.hide()}_buildConditionTable(e){const t=this,n=$(`<div style="margin-left: 20px;width:330px;display: inline-block;vertical-align: top"><label style="margin-right: 10px;">${window.i18n.dialog.customGroup.groupCondition}</label></div>`),r=$('<div style="float: right"></div>');n.append(r);const a=$(`<button type="button" class="btn btn-default" title="${window.i18n.dialog.customGroup.addCondition}"><i class="glyphicon glyphicon-plus-sign"></i></button>`);r.append(a),this.conditionList=$('<select class="form-control" size="13" style="height: 250px"></select>'),a.click(function(){const e=t.itemSelect.find("option:selected");if(""===e.text())return void Object(i.a)(`${window.i18n.dialog.customGroup.selectTip}`);const n=e.data().conditions;new be(n).show(function(e,i,o,r){const a={leftProperty:e,op:i,rightExpression:o,join:r,id:J.a.v1()};n.push(a);let s=e+" "+i+" "+o;r&&(s=r+" "+s);const l=$(`<option>${s}</option>`);l.data(a),t.conditionList.append(l)},t.fields)});const s=$(`<button type="button" class="btn btn-default" style="margin-left: 1px;" title="${window.i18n.dialog.customGroup.editTip}"><i class="glyphicon glyphicon-edit"></i></button>`);r.append(s),s.click(function(){const e=t.conditionList.find("option:selected");if(0===e.length)return void Object(i.a)(`${window.i18n.dialog.customGroup.editConditionTip}`);const n=e.data(),r=t.itemSelect.find("option:selected");if(""===r.text())return void Object(i.a)(`${window.i18n.dialog.customGroup.selectTip}`);const a=r.data().conditions;new be(a).show(function(t,i,r,s){let l=null;for(let e=0;e<a.length;e++){let t=a[e];if(t.id===n.id){l=t;break}}l.leftProperty=t,l.op=i,l.rightExpression=r,l.join=s;let d=t+" "+i+" "+r;s&&(d=s+" "+d),e.data(l),e.html(d),Object(o.k)()},t.fields,n)});const l=$(`<button type="button" class="btn btn-default" style="margin-left: 1px;" title="${window.i18n.dialog.customGroup.delTitle}"><i class="glyphicon glyphicon-minus-sign"></i></button>`);r.append(l),l.click(function(){const e=t.conditionList.find("option:selected");if(0===e.length)return void Object(i.a)(`${window.i18n.dialog.customGroup.delConditionTip}`);const n=e.data(),r=t.itemSelect.find("option:selected");if(""===r.text())return void Object(i.a)(`${window.i18n.dialog.customGroup.selectTip}`);const a=r.data().conditions;let s=-1;for(let e=0;e<a.length;e++)if(a[e].id===n.id){s=e;break}a.splice(s,1),e.remove(),Object(o.k)()}),n.append(this.conditionList),e.append(n)}show(e,t){this.cellDef=e,this.fields=t,this.dialog.modal("show"),this.itemSelect.empty(),this.conditionGroup.hide();const n=e.value.groupItems;for(let e of n){const t=$(`<option>${e.name}</option>`);t.data(e),this.itemSelect.append(t)}}}class Me{constructor(){this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n &times;\n </button>\n <h4 class="modal-title">\n ${window.i18n.dialog.mapping.title}\n </h4>\n </div>\n <div class="modal-body"></div>\n <div class="modal-footer"></div>\n </div>\n </div>\n </div>`);const e=this.dialog.find(".modal-body"),t=this.dialog.find(".modal-footer");this.initBody(e,t)}initBody(e,t){const n=$(`<div class="form-group"><label>${window.i18n.dialog.mapping.key}</label></div>`);e.append(n),this.valueEditor=$('<input type="text" class="form-control" style="display: inline-block;width:500px;">'),n.append(this.valueEditor);const o=$(`<div class="form-group"><label>${window.i18n.dialog.mapping.value}</label></div>`);this.labelEditor=$('<input type="text" class="form-control" style="display: inline-block;width:500px;">'),o.append(this.labelEditor),e.append(o);const r=$(`<button type="button" class="btn btn-primary">${window.i18n.dialog.mapping.save}</button>`);t.append(r);const a=this;r.click(function(){const e=a.valueEditor.val(),t=a.labelEditor.val();""!==e&&""!==t?(a.mappingItem.value=e,a.mappingItem.label=t,a.callback.call(this),a.dialog.modal("hide")):Object(i.a)(`${window.i18n.dialog.mapping.tip}`)})}show(e,t,n){this.callback=e,this.mappingItem=t,this.dialog.modal("show"),"add"===n?this.dialog.find(".modal-title").html(`${window.i18n.dialog.mapping.add}`):this.dialog.find(".modal-title").html(`${window.i18n.dialog.mapping.edit}`),this.valueEditor.val(t.value),this.labelEditor.val(t.label)}}class xe extends ve{constructor(e,t){super(),this.context=t,this.container=$('<div style="margin: 5px;"></div>'),e.append(this.container),this.mappingDialog=new Me,this._init(),this.container.hide()}_init(){const e=this,t=$(`<ul class="nav nav-tabs">\n <li class="active"><a href="#__dataset_config" data-toggle="tab">${window.i18n.property.dataset.datasetConfig}</a></li>\n <li><a href="#__filter_condition" data-toggle="tab">${window.i18n.property.dataset.filterCondition}</a></li>\n <li><a href="#__data_mapping" data-toggle="tab">${window.i18n.property.dataset.mapping}</a></li>\n </ul>`);this.container.append(t);const n=$('<div class="tab-content"></div>');this.container.append(n);const i=$('<div id="__dataset_config" class="tab-pane fade in active"></div>');n.append(i);const r=$('<div id="__filter_condition" class="tab-pane fade"></div>');n.append(r),this._buildConditionTable(r);const a=$('<div id="__data_mapping" class="tab-pane fade"></div>');n.append(a),this._buildMappingTable(a);const s=$(`<div class="form-group" style="margin-bottom: 5px;margin-top: 10px;"><label>${window.i18n.property.dataset.dataset}</label></div>`);this.datasetSelect=$('<select class="form-control" style="display: inline-block;width:305px;padding:2px;font-size: 12px;height: 25px"></select>'),s.append(this.datasetSelect),i.append(s);const l=$(`<div class="form-group" style="margin-left: 8px;margin-top: 5px;margin-bottom: 5px;"><label>${window.i18n.property.dataset.property}</label></div>`);this.propertySelect=$('<select class="form-control" style="display: inline-block;width:310px;padding: 2px;font-size: 12px;height: 25px"></select>'),l.append(this.propertySelect),i.append(l),this.datasetSelect.change(function(){e.propertySelect.empty();const t=$(this).val();let n=[];for(let i of e.datasources){let e=i.datasets||[];for(let i of e)if(i.name===t){n=i.fields||[];break}if(n.length>0)break}for(let t of n)e.propertySelect.append(`<option>${t.name}</option>`);e.propertySelect.append("<option selected></option>"),e._setDatasetName(t)}),this.propertySelect.change(function(){const t=$(this).val();e._setProperty(t)});const d=$(`<div class="form-group" style="margin-bottom: 10px;"><label>${window.i18n.property.dataset.aggregateType}</label></div>`);this.aggregateSelect=$(`<select class="form-control" style="display: inline-block;width: 143px;font-size: 12px;height: 25px;padding: 3px;">\n <option value="select">${window.i18n.property.dataset.select}</option>\n <option value="group">${window.i18n.property.dataset.group}</option>\n <option value="customgroup">${window.i18n.property.dataset.customGroup}</option>\n <option value="sum">${window.i18n.property.dataset.sum}</option>\n <option value="count">${window.i18n.property.dataset.count}</option>\n <option value="max">${window.i18n.property.dataset.max}</option>\n <option value="min">${window.i18n.property.dataset.min}</option>\n <option value="avg">${window.i18n.property.dataset.avg}</option>\n </select>`),d.append(this.aggregateSelect);const c=$(`<button type="button" class="btn btn-danger" style="margin-left: 10px;font-size: 12px;height: 25px;padding: 4px 10px;">${window.i18n.property.dataset.configCustomGroup}</button>`);this.aggregateSelect.change(function(){const t=$(this).val();e.cellDef.value.aggregate=t,"customgroup"===t?c.show():c.hide(),"group"===t||"select"===t?e.mappingGroup.show():e.mappingGroup.hide(),"sum"===t||"count"===t||"max"===t||"min"===t||"avg"===t?(h.hide(),f.hide()):(f.show(),h.show()),e._setAggregate(t)});const u=new _e;c.click(function(){e.cellDef.value.groupItems||(e.cellDef.value.groupItems=[]);let t=e._buildFields();u.show(e.cellDef,t),Object(o.k)()}),d.append(c),i.append(d);const h=$(`<div class="form-group" style="margin-bottom: 10px;"><label>${window.i18n.property.dataset.sortType}</label></div>`);this.noneSortRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__sort_radio" value="asc">${window.i18n.property.dataset.notSort}</label>`),h.append(this.noneSortRadio),this.noneSortRadio.children("input").click(function(){e._setOrder("none")}),this.ascSortRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__sort_radio" value="asc">${window.i18n.property.dataset.asc}</label>`),h.append(this.ascSortRadio),this.ascSortRadio.children("input").click(function(){e._setOrder("asc")}),this.descSortRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__sort_radio" value="desc">${window.i18n.property.dataset.desc}</label>`),h.append(this.descSortRadio),this.descSortRadio.children("input").click(function(){e._setOrder("desc")}),i.append(h);const f=$(`<div class="form-group" style="margin-bottom: 10px;"><label>${window.i18n.property.dataset.expand}</label></div>`);this.downExpandRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__expand_radio" value="Down">${window.i18n.property.dataset.down}</label>`),f.append(this.downExpandRadio),this.downExpandRadio.children("input").click(function(){e._setExpand("Down")}),this.rightExpandRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__expand_radio" value="Right">${window.i18n.property.dataset.right}</label>`),f.append(this.rightExpandRadio),this.rightExpandRadio.children("input").click(function(){e._setExpand("Right")}),this.noneExpandRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__expand_radio" value="None">${window.i18n.property.dataset.noneExpand}</label>`),f.append(this.noneExpandRadio),this.noneExpandRadio.children("input").click(function(){e._setExpand("None")}),i.append(f),i.append(this.buildLineHeight()),this._buildWrapCompute(i),this._buildFormat(i),this._buildFillBlankRows(i),this._buildConditionProperty(i)}buildLineHeight(){const e=this,t=$(`<div class="form-group" style="margin-left: 8px;margin-top: 5px;margin-bottom: 5px;"><label>${window.i18n.property.dataset.lineHeight}</label></div>`);return this.lineHeightEditor=$(`<input type="number" class="form-control" placeholder="${window.i18n.property.dataset.lineHeightTip}" style="display: inline-block;width: 316px;padding: 3px;font-size: 12px;height: 25px;">`),t.append(this.lineHeightEditor),this.lineHeightEditor.change(function(){const t=$(this).val();e.cellDef.cellStyle.lineHeight=t;let n=e.context.hot.getCell(e.rowIndex,e.colIndex);""===t?$(n).css("line-height",""):$(n).css("line-height",t),e.context.hot.render()}),t}_setDatasetName(e){if(this.initialized)return;const t=this.context.hot;for(let n=this.rowIndex;n<=this.row2Index;n++)for(let i=this.colIndex;i<=this.col2Index;i++){const o=t.context.getCell(n,i);o&&"dataset"===o.value.type&&(o.value.datasetName=e)}this._updateTableData(),Object(o.k)()}_setProperty(e){if(this.initialized)return;const t=this.context.hot;for(let n=this.rowIndex;n<=this.row2Index;n++)for(let i=this.colIndex;i<=this.col2Index;i++){const o=t.context.getCell(n,i);o&&"dataset"===o.value.type&&(o.value.property=e)}this._updateTableData(),Object(o.k)()}_setAggregate(e){if(this.initialized)return;const t=this.context.hot;let n=!1;for(let i=this.rowIndex;i<=this.row2Index;i++)for(let o=this.colIndex;o<=this.col2Index;o++){const r=t.context.getCell(i,o);r&&"dataset"===r.value.type&&(r.value.aggregate=e,"sum"!==e&&"count"!==e&&"max"!==e&&"min"!==e&&"avg"!==e||(r.value.order="none",r.expand="None",n=!0))}n&&(this.noneSortRadio.children("input").trigger("click"),this.noneExpandRadio.children("input").trigger("click")),this._updateTableData(),t.render(),Object(o.k)()}_setOrder(e){if(this.initialized)return;const t=this.context.hot;for(let n=this.rowIndex;n<=this.row2Index;n++)for(let i=this.colIndex;i<=this.col2Index;i++){const o=t.context.getCell(n,i);o&&"dataset"===o.value.type&&(o.value.order=e)}Object(o.k)()}_setExpand(e){if(this.initialized)return;const t=this.context.hot;for(let n=this.rowIndex;n<=this.row2Index;n++)for(let i=this.colIndex;i<=this.col2Index;i++){const o=t.context.getCell(n,i);if(!o)continue;const r=o.value.type;"dataset"!==r&&"expression"!==r||(o.expand=e)}t.render(),Object(o.k)()}_buildConditionTable(e){const t=this,n=$('<div class="form-group" style="margin-bottom: 10px;"></div>'),r=$('<span style="float: right"></span>');n.append(r);const a=$(`<button type="button" class="btn btn-default" title="${window.i18n.property.dataset.addFilterCondition}"><i class="glyphicon glyphicon-plus-sign"></i></button>`);r.append(a),this.conditionList=$('<select class="form-control" size="5" style="height: 100px;"></select>'),a.click(function(){let e=t._buildFields();if(!e)return;const n=t.cellDef.value.conditions;new be(n).show(function(e,i,o,r){const a={left:e,operation:i,right:o,join:r,id:J.a.v1()};n.push(a);let s=e+" "+i+" "+o;r&&(s=r+" "+s);const l=$(`<option>${s}</option>`);l.data(a),t.conditionList.append(l)},e)});const s=$(`<button type="button" class="btn btn-default" style="margin-left: 1px;" title="${window.i18n.property.dataset.editFilterCondition}"><i class="glyphicon glyphicon-edit"></i></button>`);r.append(s),s.click(function(){const e=t.conditionList.find("option:selected");if(0===e.length)return void Object(i.a)(`${window.i18n.property.dataset.selectFilterConditionTip}`);const n=e.data();let r=t._buildFields();if(!r)return;const a=t.cellDef.value.conditions;new be(a).show(function(t,i,r,s){let l=null;for(let e=0;e<a.length;e++){let t=a[e];if(t.id===n.id){l=t;break}}l.left=t,l.operation=i,l.right=r,l.join=s;let d=t+" "+i+" "+r;s&&(d=s+" "+d),e.data(l),e.html(d),Object(o.k)()},r,n)});const l=$(`<button type="button" class="btn btn-default" style="margin-left: 1px;" title="${window.i18n.property.dataset.delFilterCondition}"><i class="glyphicon glyphicon-minus-sign"></i></button>`);r.append(l),l.click(function(){const e=t.conditionList.find("option:selected");if(0===e.length)return void Object(i.a)(`${window.i18n.property.dataset.delFilterConditionTip}`);const n=e.data(),r=t.cellDef.value.conditions;let a=-1;for(let e=0;e<r.length;e++)if(r[e].id===n.id){a=e;break}r.splice(a,1),e.remove(),Object(o.k)()}),n.append(this.conditionList),e.append(n)}_buildMappingTable(e){this.mappingGroup=$('<div class="form-group" style="padding-top: 10px"></div>');const t=this,n=$(`<div class="form-group" style="margin-bottom: 1px;"><label>${window.i18n.property.dataset.mappingType}</label></div>`);this.mappingGroup.append(n),this.simpleMappingRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__data_mapping_radio" value="Down">${window.i18n.property.dataset.simple}</label>`),n.append(this.simpleMappingRadio),this.simpleMappingRadio.children("input").click(function(){t.sampleMappingGroup.show(),t.datasetMappingGroup.hide(),t.cellDef.value.mappingType="simple"}),this.datasetMappingRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__data_mapping_radio" value="Right">${window.i18n.property.dataset.ds}</label>`),n.append(this.datasetMappingRadio),this.datasetMappingRadio.children("input").click(function(){t.sampleMappingGroup.hide(),t.datasetMappingGroup.show(),t.cellDef.value.mappingType="dataset"}),this.sampleMappingGroup=$('<div class="form-group" style="padding-top: 1px"></div>'),this.mappingGroup.append(this.sampleMappingGroup);const o=$(`<button type="button" class="btn btn-default" style="float: right;" title="${window.i18n.property.dataset.addMappping}"><i class="glyphicon glyphicon-plus-sign" style="color: #00746f;"></i></button>`);this.sampleMappingGroup.append(o),o.click(function(){const e={value:"",label:""};t.mappingDialog.show(function(){const n=t.cellDef.value;n.mappingItems||(n.mappingItems=[]),n.mappingItems.push(e);const o=$('<tr style="height: 30px"></tr>'),r=$(`<td style="vertical-align: middle">${e.value}</td>`),a=$(`<td style="vertical-align: middle">${e.label}</td>`);o.append(r),o.append(a),t.mappingTbody.append(o);const s=$('<td style="vertical-align: middle"></td>');o.append(s);const l=$('<a href="###"><i class="glyphicon glyphicon-trash" style="font-size: 16px;color: #d30e00;"></i></a>');s.append(l),l.click(function(){Object(i.b)(`${window.i18n.property.dataset.delConfirm}`,function(){const t=n.mappingItems.indexOf(e);n.mappingItems.splice(t,1),o.remove()})});const d=$('<a href="###" style="margin-left: 10px"><i class="glyphicon glyphicon-pencil" style="font-size: 16px;color: #005fd3;"></i></a>');s.append(d),d.click(function(){t.mappingDialog.show(function(){r.html(e.value),a.html(e.label)},e,"edit")})},e,"add")});const r=$(`<table class="table table-bordered"><thead><tr style="background-color: #f5f5f5;height: 30px;"><td style="width: 130px;vertical-align: middle">${window.i18n.property.dataset.realValue}</td><td style="width: 170px;vertical-align: middle">${window.i18n.property.dataset.displayValue}</td><td style="vertical-align: middle">${window.i18n.property.dataset.op}</td></tr></thead></table>`);this.mappingTbody=$('<tbody style="font-size: 12px"></tbody>'),r.append(this.mappingTbody),this.sampleMappingGroup.append(r),this.datasetMappingGroup=$('<div class="form-group" style="padding-top: 1px"></div>'),this.mappingGroup.append(this.datasetMappingGroup);const a=$(`<div class="form-group" style="margin-bottom: 5px;margin-top: 10px;"><label>${window.i18n.property.dataset.dataset}</label></div>`);this.mappingDatasetSelect=$('<select class="form-control" style="display: inline-block;width:305px;padding:2px;font-size: 12px;height: 25px"></select>'),a.append(this.mappingDatasetSelect),this.datasetMappingGroup.append(a);const s=$(`<div class="form-group" style="margin-left: 8px;margin-top: 5px;margin-bottom: 5px;"><label>${window.i18n.property.dataset.realValueProp}</label></div>`);this.mappingKeyPropertySelect=$('<select class="form-control" style="display: inline-block;width:270px;padding: 2px;font-size: 12px;height: 25px"></select>'),s.append(this.mappingKeyPropertySelect),this.datasetMappingGroup.append(s);const l=$(`<div class="form-group" style="margin-left: 8px;margin-top: 5px;margin-bottom: 5px;"><label>${window.i18n.property.dataset.displayValueProp}</label></div>`);this.mappingValuePropertySelect=$('<select class="form-control" style="display: inline-block;width:270px;padding: 2px;font-size: 12px;height: 25px"></select>'),l.append(this.mappingValuePropertySelect),this.datasetMappingGroup.append(l),this.mappingDatasetSelect.change(function(){t.mappingKeyPropertySelect.empty(),t.mappingValuePropertySelect.empty();const e=$(this).val();t.cellDef.value.mappingDataset=e;let n=[];for(let i of t.datasources){let t=i.datasets||[];for(let i of t)if(i.name===e){n=i.fields||[];break}if(n.length>0)break}for(let e of n)t.mappingKeyPropertySelect.append(`<option>${e.name}</option>`),t.mappingValuePropertySelect.append(`<option>${e.name}</option>`);t.mappingKeyPropertySelect.append("<option selected></option>"),t.mappingValuePropertySelect.append("<option selected></option>")}),this.mappingKeyPropertySelect.change(function(){t.cellDef.value.mappingKeyProperty=$(this).val()}),this.mappingValuePropertySelect.change(function(){t.cellDef.value.mappingValueProperty=$(this).val()}),e.append(this.mappingGroup)}_buildFields(){const e=this;let t=[],n=e.datasetSelect.val();if(""===n)return Object(i.a)(`${window.i18n.property.dataset.bindDatasetTip}`),null;for(let i of e.datasources){let e=i.datasets||[];for(let i of e)if(i.name===n){t=i.fields||[];break}if(t.length>0)break}return t}_updateTableData(){const e=this.context.hot;this.context.cellList;for(let t=this.rowIndex;t<=this.row2Index;t++)for(let n=this.colIndex;n<=this.col2Index;n++){const i=e.context.getCell(t,n);if(!i)continue;const o=i.value,r=i.value.type;let a="";"simple"===r?a=o.value:"dataset"===r?a=o.datasetName+"."+o.aggregate+"("+o.property+")":"expression"===r&&(a=o.value),e.setDataAtCell(i.rowNumber-1,i.columnNumber-1,a)}}show(e,t,n,o,r){let a=e.cellStyle;a.wrapCompute?this.enableWrapComput.children("input").prop("checked",!0):this.disableWrapComput.children("input").prop("checked",!0),a.lineHeight?this.lineHeightEditor.val(a.lineHeight):this.lineHeightEditor.val(""),a.format?this.formatEditor.val(a.format):this.formatEditor.val(""),this.initialized=!0,this.cellDef=e,this.rowIndex=t,this.colIndex=n,this.row2Index=o,this.col2Index=r,this.container.show(),this.datasetSelect.empty(),this.mappingDatasetSelect.empty(),this.propertySelect.empty(),this.mappingKeyPropertySelect.empty(),this.mappingValuePropertySelect.empty(),this.datasources=this.context.reportDef.datasources;for(let e of this.datasources){let t=e.datasets||[];for(let e of t)this.datasetSelect.append(`<option>${e.name}</option>`),this.mappingDatasetSelect.append(`<option>${e.name}</option>`)}e.fillBlankRows?(this.enableFillRadio.trigger("click"),this.multipleEditor.val(e.multiple),this.multipleGroup.show()):(this.disableFillRadio.trigger("click"),this.multipleGroup.hide());const s=e.expand;"None"===s?this.noneExpandRadio.trigger("click"):"Down"===s?this.downExpandRadio.trigger("click"):"Right"===s&&this.rightExpandRadio.trigger("click");const l=e.value;this.datasetSelect.val(l.datasetName),this.datasetSelect.trigger("change"),this.propertySelect.val(l.property),this.aggregateSelect.val(l.aggregate),this.aggregateSelect.trigger("change"),this.mappingDatasetSelect.val(l.mappingDataset),this.mappingDatasetSelect.trigger("change"),this.mappingKeyPropertySelect.val(l.mappingKeyProperty),this.mappingValuePropertySelect.val(l.mappingValueProperty),l.mappingType&&"simple"!==l.mappingType?this.datasetMappingRadio.trigger("click"):this.simpleMappingRadio.trigger("click");const d=l.order;"none"===d?this.noneSortRadio.trigger("click"):"desc"===d?this.descSortRadio.trigger("click"):"asc"===d&&this.ascSortRadio.trigger("click"),this.initialized=!1,this.conditionList.empty();const c=this.cellDef.value.conditions;for(let e of c){e.id||(e.id=J.a.v1());const t=e.operation;let n=e.left+" "+t+" "+e.right;e.join&&(n=e.join+" "+n);const i=$(`<option>${n}</option>`);i.data(e),this.conditionList.append(i)}this.mappingTbody.empty();const u=this.cellDef.value,h=u.mappingItems||[],f=this;for(let e of h){const t=$('<tr style="height: 30px"></tr>'),n=$(`<td style="vertical-align: middle">${e.value}</td>`),o=$(`<td style="vertical-align: middle">${e.label}</td>`);t.append(n),t.append(o),this.mappingTbody.append(t);const r=$('<td style="vertical-align: middle"></td>');t.append(r);const a=$('<a href="###"><i class="glyphicon glyphicon-trash" style="font-size: 16px;color: #d30e00;"></i></a>');r.append(a),a.click(function(){Object(i.b)(`${window.i18n.property.dataset.delConfirm}`,function(){const n=u.mappingItems.indexOf(e);u.mappingItems.splice(n,1),t.remove()})});const s=$('<a href="###" style="margin-left: 10px"><i class="glyphicon glyphicon-pencil" style="font-size: 16px;color: #005fd3;"></i></a>');r.append(s),s.click(function(){f.mappingDialog.show(function(){n.html(e.value),o.html(e.label)},e,"edit")})}l.mappingType&&"simple"!==l.mappingType?(this.sampleMappingGroup.hide(),this.datasetMappingGroup.show()):(this.sampleMappingGroup.show(),this.datasetMappingGroup.hide())}hide(){this.container.hide()}}class ke extends ve{constructor(e,t){super(),this.context=t,this.container=$("<div></div>"),e.append(this.container),this._initSizeGroup(),this._initTypeSelect(),this._buildExpand(),this._initExpressionEditor(),this._initPathEditor()}_initSizeGroup(){const e=this,t=$('<div class="form-group"><label>宽:</label></div>');this.widthEditor=$('<input class="form-control" type="number" placeholder="为0或空表示采用图片默认宽度" style="display: inline-block;width:335px">'),t.append(this.widthEditor),this.widthEditor.change(function(){e.cellDef.value.width=$(this).val()}),this.container.append(t);const n=$('<div class="form-group"><label>高:</label></div>');this.heightEditor=$('<input class="form-control" type="number" placeholder="为0或空表示采用图片默认高度" style="display: inline-block;width:335px">'),n.append(this.heightEditor),this.heightEditor.change(function(){e.cellDef.value.height=$(this).val()}),this.container.append(n)}_initTypeSelect(){const e=$(`<div class="form-group"><label>${window.i18n.property.image.source}</label></div>`);this.sourceSelect=$(`<select class="form-control" style="display: inline-block;width:295px">\n <option value="text">${window.i18n.property.image.path}</option>\n <option value="expression">${window.i18n.property.image.expr}</option>\n </select>`),e.append(this.sourceSelect);const t=this;this.sourceSelect.change(function(){const e=$(this).val();t.cellDef.value.source=e,"text"===e?(t.pathEditorGroup.show(),t.expressionEditorGroup.hide(),t.expandGroup.hide()):(t.expressionEditorGroup.show(),t.expandGroup.show(),t.pathEditorGroup.hide()),Object(o.k)()}),this.container.append(e)}_initPathEditor(){const e=this;this.pathEditorGroup=$(`<div><label>${window.i18n.property.image.p}</label></div>`),this.pathEditor=$(`<input class="form-control" title="${window.i18n.property.image.tip}" placeholder="${window.i18n.property.image.tip}" style="display: inline-block;width: 325px;padding: 5px">`),this.pathEditorGroup.append(this.pathEditor),this.pathEditor.change(function(){e.cellDef.value.value=$(this).val(),Object(o.k)()}),this.pathEditorGroup.hide(),this.container.append(this.pathEditorGroup)}_initExpressionEditor(){this.expressionEditorGroup=$(`<div><label>${window.i18n.property.image.expr}</label></div>`),this.container.append(this.expressionEditorGroup);const e=$('<div style="border: solid 1px #eeeeee;"></div>'),t=$("<textarea></textarea>");e.append(t),this.expressionEditorGroup.append(e);const n=this;setTimeout(function(){n.codeMirror=X.a.fromTextArea(t.get(0),{mode:"javascript",lineNumbers:!0,gutters:["CodeMirror-linenumbers","CodeMirror-lint-markers"],lint:{getAnnotations:n._buildScriptLintFunction(),async:!0}}),n.codeMirror.setSize("auto","120px"),n.codeMirror.on("change",function(e,t){if(n.initialize)return;let i=e.getValue();n.cellDef.value.value=i,Object(o.k)()}),n.expressionEditorGroup.hide(),n.container.hide()},100)}_buildExpand(){const e=this;this.expandGroup=$(`<div class="form-group" style="margin-bottom: 10px;"><label>${window.i18n.property.image.expand}</label></div>`),this.downExpandRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__expand_radio" value="Down">${window.i18n.property.image.down}</label>`),this.expandGroup.append(this.downExpandRadio),this.downExpandRadio.children("input").click(function(){e._setExpand("Down")}),this.rightExpandRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__expand_radio" value="Right">${window.i18n.property.image.right}</label>`),this.expandGroup.append(this.rightExpandRadio),this.rightExpandRadio.children("input").click(function(){e._setExpand("Right")}),this.noneExpandRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__expand_radio" value="None">${window.i18n.property.image.noneExpand}</label>`),this.expandGroup.append(this.noneExpandRadio),this.noneExpandRadio.children("input").click(function(){e._setExpand("None")}),this.container.append(this.expandGroup),this.expandGroup.hide()}_setExpand(e){const t=this.context.hot;for(let n=this.rowIndex;n<=this.row2Index;n++)for(let i=this.colIndex;i<=this.col2Index;i++){const o=t.context.getCell(n,i);if(!o)continue;const r=o.value.type;"dataset"!==r&&"expression"!==r&&"image"!==r||(o.expand=e)}t.render(),Object(o.k)()}show(e,t,n,i,o){this.initialize=!0,this.cellDef=e,this.rowIndex=t,this.colIndex=n,this.row2Index=i,this.col2Index=o,this.container.show(),this.widthEditor.val(e.value.width),this.heightEditor.val(e.value.height);const r=e.value.source;this.sourceSelect.val(r),this.pathEditor.val(""),this.codeMirror.setValue(""),"text"===r?(this.pathEditorGroup.show(),this.expressionEditorGroup.hide(),this.pathEditor.val(e.value.value||"")):(this.expressionEditorGroup.show(),this.pathEditorGroup.hide(),this.codeMirror.setValue(e.value.value||""));const a=e.expand;"None"===a?this.noneExpandRadio.trigger("click"):"Down"===a?this.downExpandRadio.trigger("click"):"Right"===a&&this.rightExpandRadio.trigger("click"),this.initialize=!1}hide(){this.container.hide()}}class Se{constructor(e,t){this.context=t,this.container=$(`<div><label>${window.i18n.property.slash.content}</label></div>`),e.append(this.container),this.headerContainer=$("<div></div>"),this.container.append(this.headerContainer),this.container.hide()}show(e,t,n,i,o){this.cellDef=e,this.rowIndex=t,this.colIndex=n,this.container.show(),this.headerContainer.empty();const r=$("<div></div>");this.headerContainer.append(r),this._buildSlashes(e,r);const a=this,s=$(`<button type="button" class="btn btn-danger" style="margin-bottom: 10px;margin-top: 10px;float: right"><i class="glyphicon glyphicon-refresh"></i> ${window.i18n.property.slash.refresh}</button>`);s.click(function(){const i=e.crossTabWidget;i.refreshCell(),i.doDraw(e,t,n),r.empty(),a._buildSlashes(e,r)}),this.headerContainer.append(s)}_buildSlashes(e,t){const n=e.value.slashes;for(let i of n){const n=$('<div style="margin-left: 10px;margin-top: 10px;"></div>');t.append(n);const r=$(`<span>${window.i18n.property.slash.name}</span>`);n.append(r);const a=$('<input type="text" class="form-control" style="width:90px;display: inline-block;padding: 5px;height:28px">');r.append(a),a.val(i.text),a.change(function(){i.text=$(this).val(),e.crossTabWidget.doDraw(e),Object(o.k)()});const s=$('<span style="margin-left: 8px">X:</span>');n.append(s);const l=$('<input type="number" class="form-control" style="display: inline-block;width:50px;padding: 1px;height:28px">');s.append(l),l.change(function(){i.x=$(this).val(),e.crossTabWidget.doDraw(e),Object(o.k)()}),l.val(i.x);const d=$('<span style="margin-left: 8px">Y:</span>');n.append(d);const c=$('<input type="number" class="form-control" style="display: inline-block;width:50px;padding: 1px;height:28px">');d.append(c),c.change(function(){i.y=$(this).val(),e.crossTabWidget.doDraw(e),Object(o.k)()}),c.val(i.y);const u=$(`<span style="margin-left: 8px">${window.i18n.property.slash.angle}</span>`);n.append(u);const h=$('<input type="number" class="form-control" style="display: inline-block;width:50px;padding: 1px;height:28px">');u.append(h),h.change(function(){i.degree=$(this).val(),e.crossTabWidget.doDraw(e),Object(o.k)()}),h.val(i.degree)}}hide(){this.container.hide()}}class Ce extends ve{constructor(e,t){super(),this.context=t,this.container=$("<div></div>"),e.append(this.container),this._initSize(),this._initFormat(),this._initTypeSelect(),this._buildExpand(),this._initExpressionEditor(),this._initTextEditor()}_initSize(){const e=this,t=$(`<div class="form-group"><label>${window.i18n.property.zxing.width}</label></div>`);this.container.append(t),this.widthEditor=$('<input class="form-control" type="number" style="display: inline-block;width: 140px;">'),t.append(this.widthEditor),this.widthEditor.change(function(){let t=$(this).val();t&&!isNaN(t)?(e.cellDef.value.width=t,e.context.hot.render(),Object(o.k)()):alert(`${window.i18n.property.zxing.numberTip}`)}),t.append(`<label style="margin-left: 20px">${window.i18n.property.zxing.height}</label>`),this.heightEditor=$('<input class="form-control" type="number" style="display: inline-block;width: 148px">'),t.append(this.heightEditor),this.heightEditor.change(function(){let t=$(this).val();t&&!isNaN(t)?(e.cellDef.value.height=t,e.context.hot.render(),Object(o.k)()):alert(`${window.i18n.property.zxing.numberTip}`)})}_initFormat(){this.formatGroup=$(`<div class="form-group"><label>${window.i18n.property.zxing.format}</label></div>`),this.container.append(this.formatGroup),this.formatSelect=$('<select class="form-control" style="display: inline-block;width: 295px;">\n <option>AZTEC</option>\n <option>CODABAR</option>\n <option>CODE_39</option>\n <option>CODE_93</option>\n <option>CODE_128</option>\n <option>CODABAR</option>\n <option>DATA_MATRIX</option>\n <option>EAN_8</option>\n <option>EAN_13</option>\n <option>ITF</option>\n <option>PDF_417</option>\n <option>UPC_E</option>\n <option>UPC_A</option>\n </select>');const e=this;this.formatSelect.change(function(){e.cellDef.value.format=$(this).val(),Object(o.k)()}),this.formatGroup.append(this.formatSelect)}_initCodeDisplay(){this.codeDisplayGroup=$(`<div class="form-group"><label>${window.i18n.property.zxing.displayText}</label></div>`),this.container.append(this.codeDisplayGroup),this.enabledCodeDisplayRadio=$(`<label class="checkbox-inline" style="padding-left: 5px">\n <input type="radio" name="codeDisplay" value="true"> ${window.i18n.property.zxing.yes}\n </label>`);const e=this;this.codeDisplayGroup.append(this.enabledCodeDisplayRadio),this.enabledCodeDisplayRadio.children("input").click(function(){e.cellDef.value.codeDisplay=!0,Object(o.k)()}),this.disabledCodeDisplayRadio=$(`<label class="checkbox-inline" style="padding-left: 5px">\n <input type="radio" name="codeDisplay" value="true"> ${window.i18n.property.zxing.no}\n </label>`),this.codeDisplayGroup.append(this.disabledCodeDisplayRadio),this.disabledCodeDisplayRadio.children("input").click(function(){e.cellDef.value.codeDisplay=!1,Object(o.k)()})}_initTypeSelect(){const e=$(`<div class="form-group"><label>${window.i18n.property.zxing.source}</label></div>`);this.sourceSelect=$(`<select class="form-control" style="display: inline-block;width:295px">\n <option value="text">${window.i18n.property.zxing.text}</option>\n <option value="expression">${window.i18n.property.zxing.expr}</option>\n </select>`),e.append(this.sourceSelect);const t=this;this.sourceSelect.change(function(){const e=$(this).val();t.cellDef.value.source=e,"text"===e?(t.textEditorGroup.show(),t.expressionEditorGroup.hide(),t.expandGroup.hide()):(t.expressionEditorGroup.show(),t.expandGroup.show(),t.textEditorGroup.hide()),Object(o.k)()}),this.container.append(e)}_initTextEditor(){const e=this;this.textEditorGroup=$(`<div><label>${window.i18n.property.zxing.text1}</label></div>`),this.textEditor=$('<input class="form-control" style="display: inline-block;width: 325px;padding: 5px">'),this.textEditorGroup.append(this.textEditor),this.textEditor.change(function(){e.cellDef.value.value=$(this).val(),Object(o.k)()}),this.textEditorGroup.hide(),this.container.append(this.textEditorGroup)}_initExpressionEditor(){this.expressionEditorGroup=$(`<div><label>${window.i18n.property.zxing.expr}</label></div>`),this.container.append(this.expressionEditorGroup);const e=$('<div style="border: solid 1px #eeeeee;"></div>'),t=$("<textarea></textarea>");e.append(t),this.expressionEditorGroup.append(e);const n=this;setTimeout(function(){n.codeMirror=X.a.fromTextArea(t.get(0),{mode:"javascript",lineNumbers:!0,gutters:["CodeMirror-linenumbers","CodeMirror-lint-markers"],lint:{getAnnotations:n._buildScriptLintFunction(),async:!0}}),n.codeMirror.setSize("auto","120px"),n.codeMirror.on("change",function(e,t){let i=e.getValue();n.cellDef.value.value=i,Object(o.k)()}),n.expressionEditorGroup.hide(),n.container.hide()},100)}_buildExpand(){const e=this;this.expandGroup=$(`<div class="form-group" style="margin-bottom: 10px;"><label>${window.i18n.property.zxing.expand}</label></div>`),this.downExpandRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__expand_radio" value="Down">${window.i18n.property.zxing.down}</label>`),this.expandGroup.append(this.downExpandRadio),this.downExpandRadio.children("input").click(function(){e._setExpand("Down")}),this.rightExpandRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__expand_radio" value="Right">${window.i18n.property.zxing.right}</label>`),this.expandGroup.append(this.rightExpandRadio),this.rightExpandRadio.children("input").click(function(){e._setExpand("Right")}),this.noneExpandRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__expand_radio" value="None">${window.i18n.property.zxing.noneExpand}</label>`),this.expandGroup.append(this.noneExpandRadio),this.noneExpandRadio.children("input").click(function(){e._setExpand("None")}),this.container.append(this.expandGroup),this.expandGroup.hide()}_setExpand(e){const t=this.context.hot;for(let n=this.rowIndex;n<=this.row2Index;n++)for(let i=this.colIndex;i<=this.col2Index;i++){const o=t.context.getCell(n,i);if(!o)continue;const r=o.value.type;"dataset"!==r&&"expression"!==r&&"image"!==r&&"zxing"!==r||(o.expand=e)}t.render(),Object(o.k)()}show(e,t,n,i,o){this.cellDef=e,this.rowIndex=t,this.colIndex=n,this.row2Index=i,this.col2Index=o,this.container.show();const r=e.value.source;this.widthEditor.val(e.value.width),this.heightEditor.val(e.value.height),this.sourceSelect.val(r),this.textEditor.val(""),"text"===r?(this.textEditorGroup.show(),this.expressionEditorGroup.hide(),this.textEditor.val(e.value.value||""),this.expandGroup.hide()):(this.expressionEditorGroup.show(),this.textEditorGroup.hide(),this.codeMirror.setValue(e.value.expression.expr||""),this.expandGroup.show()),"qrcode"===e.value.category?this.formatGroup.hide():(this.formatGroup.show(),this.formatSelect.val(e.value.format));const a=e.expand;"None"===a?this.noneExpandRadio.trigger("click"):"Down"===a?this.downExpandRadio.trigger("click"):"Right"===a&&this.rightExpandRadio.trigger("click")}hide(){this.container.hide()}}class Ee{constructor(){}initAnimationsOption(e){const t=this,n=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px;margin-top: 10px">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.chart.motionConfig}</legend></fieldset>`);e.append(n);const i=$(`<div class="form-group" style="margin-bottom: 0"><label>${window.i18n.chart.motionDelay}</label></div>`);n.append(i),this.durationEditor=$('<input type="number" class="form-control" style="display: inline-block;width:100px;padding:2px;font-size: 12px;height: 25px" value="1000">'),i.append(this.durationEditor),this.durationEditor.change(function(){t.getTargetOption("animation").duration=$(this).val(),Object(o.k)()});const r=$(`<span style="margin-left: 20px">${window.i18n.chart.effect}</span>`);i.append(r),this.easingSelect=$('<select class="form-control" style="display: inline-block;width:inherit;padding:2px;font-size: 12px;height: 25px"></select>');for(let e of"linear,easeInQuad,easeOutQuad,easeInOutQuad,easeInCubic,easeOutCubic,easeInOutCubic,easeInQuart,easeOutQuart,easeInOutQuart,easeInQuint,easeOutQuint,easeInOutQuint,easeInSine,easeOutSine,easeInOutSine,easeInExpo,easeOutExpo,easeInOutExpo,easeInCirc,easeOutCirc,easeInOutCirc,easeInElastic,easeOutElastic,easeInOutElastic,easeInBack,easeOutBack,easeInOutBack,easeInBounce,easeOutBounce,easeInOutBounce".split(","))"easeOutQuart"===e?this.easingSelect.append(`<option selected>${e}</option>`):this.easingSelect.append(`<option>${e}</option>`);r.append(this.easingSelect),this.easingSelect.change(function(){t.getTargetOption("animation").easing=$(this).val(),Object(o.k)()})}initPaddingOption(e){const t=this,n=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.chart.margin}</legend></fieldset>`);e.append(n);const i=$("<span>上:</span>");n.append(i),this.upPaddingEditor=$('<input type="number" value="0" class="form-control" style="display: inline-block;width:50px;padding:2px;font-size: 12px;height: 25px">'),i.append(this.upPaddingEditor),this.upPaddingEditor.change(function(){const e=t.getTargetOption("layout");e.padding||(e.padding={left:0,right:0,top:0,bottom:0}),e.padding.top=$(this).val(),t.cellDef.chartWidget.chart.options.layout={padding:e.padding},t.cellDef.chartWidget.chart.update(),Object(o.k)()});const r=$(`<span style="margin-left: 10px">${window.i18n.chart.down}:</span>`);n.append(r),this.downPaddingEditor=$('<input type="number" value="0" class="form-control" style="display: inline-block;width:50px;padding:2px;font-size: 12px;height: 25px">'),r.append(this.downPaddingEditor),this.downPaddingEditor.change(function(){const e=t.getTargetOption("layout");e.padding||(e.padding={left:0,right:0,top:0,bottom:0}),e.padding.bottom=$(this).val(),t.cellDef.chartWidget.chart.options.layout={padding:e.padding},t.cellDef.chartWidget.chart.update(),Object(o.k)()});const a=$(`<span style="margin-left: 10px">${window.i18n.chart.left}:</span>`);n.append(a),this.leftPaddingEditor=$('<input type="number" value="0" class="form-control" style="display: inline-block;width:50px;padding:2px;font-size: 12px;height: 25px">'),a.append(this.leftPaddingEditor),this.leftPaddingEditor.change(function(){const e=t.getTargetOption("layout");e.padding||(e.padding={left:0,right:0,top:0,bottom:0}),e.padding.left=$(this).val(),t.cellDef.chartWidget.chart.options.layout={padding:e.padding},t.cellDef.chartWidget.chart.update(),Object(o.k)()});const s=$(`<span style="margin-left: 10px">${window.i18n.chart.right}:</span>`);n.append(s),this.rightPaddingEditor=$('<input type="number" value="0" class="form-control" style="display: inline-block;width:50px;padding:2px;font-size: 12px;height: 25px">'),s.append(this.rightPaddingEditor),this.rightPaddingEditor.change(function(){const e=t.getTargetOption("layout");e.padding||(e.padding={left:0,right:0,top:0,bottom:0}),e.padding.right=$(this).val(),t.cellDef.chartWidget.chart.options.layout={padding:e.padding},t.cellDef.chartWidget.chart.update(),Object(o.k)()})}initLegendOption(e){const t=this,n=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px;margin-bottom: 10px;">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.chart.legendConfig}</legend></fieldset>`);e.append(n);const i=$(`<div class="form-group" style="margin-bottom: 0"><label>${window.i18n.chart.display}</label></div>`);n.append(i),this.showLegendRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__show_legend_radio_${this.id}" value="asc" checked>${window.i18n.chart.yes}</label>`),i.append(this.showLegendRadio),this.hideLegendRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__show_legend_radio_${this.id}" value="asc">${window.i18n.chart.no}</label>`),i.append(this.hideLegendRadio),this.showLegendRadio.children("input").change(function(){const e=t.getTargetOption("legend");e.display=!0,e.position="top",t.legendPositionGroup.show(),t.legendPositionSelect.val(e.position),t.cellDef.chartWidget.chart.options.legend={display:!0,position:e.position},t.cellDef.chartWidget.chart.update(),Object(o.k)()}),this.hideLegendRadio.children("input").change(function(){t.getTargetOption("legend").display=!1,t.legendPositionGroup.hide(),t.cellDef.chartWidget.chart.options.legend={display:!1},t.cellDef.chartWidget.chart.update(),Object(o.k)()}),this.legendPositionGroup=$(`<span style="margin-left: 20px">${window.i18n.chart.position}</span>`),i.append(this.legendPositionGroup),this.legendPositionSelect=$(`<select class="form-control" style="display: inline-block;width:50px;padding:2px;font-size: 12px;height: 25px">\n <option value="top" selected>${window.i18n.chart.up}</option>\n <option value="bottom">${window.i18n.chart.down}</option>\n <option value="left">${window.i18n.chart.left}</option>\n <option value="right">${window.i18n.chart.right}</option>\n </select>`),this.legendPositionGroup.append(this.legendPositionSelect),this.legendPositionSelect.change(function(){const e=t.getTargetOption("legend");e.position=$(this).val(),t.cellDef.chartWidget.chart.options.legend={display:!0,position:e.position},t.cellDef.chartWidget.chart.update(),Object(o.k)()})}initTitleOption(e){const t=this,n=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px;margin-top:10px;margin-bottom: 15px">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.chart.titleConfig}</legend></fieldset>`);e.append(n);const i=$(`<div class="form-group" style="margin-bottom: 0"><label style="margin-bottom: 15px">${window.i18n.chart.display}</label></div>`);n.append(i),this.showTitleRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__show_title_radio_${this.id}" value="asc">${window.i18n.chart.yes}</label>`),i.append(this.showTitleRadio),this.hideTitleRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__show_title_radio_${this.id}" value="asc" checked>${window.i18n.chart.no}</label>`),i.append(this.hideTitleRadio),this.showTitleRadio.children("input").change(function(){const e=t.getTargetOption("title");e.display=!0,e.text="",e.position="top",t.titleTextGroup.show(),t.titleTextEditor.val(e.text),t.titlePositionGroup.show(),t.titlePositionSelect.val(e.position),t.cellDef.chartWidget.chart.options.title={display:!0,text:"",fontSize:14,position:"top"},t.cellDef.chartWidget.chart.update(),Object(o.k)()}),this.hideTitleRadio.children("input").change(function(){t.getTargetOption("title").display=!1,t.titleTextGroup.hide(),t.titlePositionGroup.hide(),t.cellDef.chartWidget.chart.options.title={display:!1},t.cellDef.chartWidget.chart.update(),Object(o.k)()}),this.titlePositionGroup=$(`<span style="margin-left: 15px">${window.i18n.chart.position}</span>`),i.append(this.titlePositionGroup),this.titlePositionSelect=$(`<select class="form-control" style="display: inline-block;width:50px;padding:2px;font-size: 12px;height: 25px">\n <option value="top">${window.i18n.chart.up}</option>\n <option value="bottom">${window.i18n.chart.down}</option>\n <option value="left">${window.i18n.chart.left}</option>\n <option value="right">${window.i18n.chart.right}</option>\n </select>`),this.titlePositionGroup.append(this.titlePositionSelect),this.titlePositionSelect.change(function(){const e=t.getTargetOption("title");e.position=$(this).val(),t.cellDef.chartWidget.chart.options.title={display:!0,text:e.text,fontSize:14,position:e.position},t.cellDef.chartWidget.chart.update(),Object(o.k)()}),this.titleTextGroup=$(`<div class="form-group" style="margin-bottom: 0"><label>${window.i18n.chart.titleContent}</label></div>`),i.append(this.titleTextGroup),this.titleTextEditor=$('<input type="text" class="form-control" style="display: inline-block;width:280px;padding:2px;font-size: 12px;height: 25px">'),this.titleTextGroup.append(this.titleTextEditor),this.titleTextEditor.change(function(){const e=t.getTargetOption("title");e.text=$(this).val(),t.cellDef.chartWidget.chart.options.title={display:!0,text:e.text,position:e.position},t.cellDef.chartWidget.chart.update(),Object(o.k)()}),this.titleTextGroup.hide(),this.titlePositionGroup.hide()}getTargetOption(e){let t=this.cellDef.value.chart.options;t||(t=[],this.cellDef.value.chart.options=t);let n=null;for(let i of t)if(i.type===e){n=i;break}return n||(n={type:e},t.push(n)),n}getDatasetConfig(){let e=this.cellDef.value.chart.dataset;return e||(e={},this.cellDef.value.chart.dataset=e),e}}class Le extends Ee{constructor(){super()}initCategoryDataset(e){const t=this,n=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px;margin-bottom: 10px;margin-top: 10px">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.chart.propBindConfig}</legend></fieldset>`);e.append(n);const i=$(`<div class="form-group" style="margin-top: 10px;margin-bottom: 5px"><label>${window.i18n.chart.dataset}</label></div>`);n.append(i),this.datasetSelect=$('<select class="form-control" style="display: inline-block;width:300px;padding:2px;font-size: 12px;height: 25px"></select>'),i.append(this.datasetSelect);const r=$(`<div class="form-group" style="margin-top: 5px;margin-bottom: 5px;"><label>${window.i18n.chart.categoryProperty}</label></div>`);this.categoryPropertySelect=$('<select class="form-control" style="display: inline-block;width:285px;padding: 2px;font-size: 12px;height: 25px"></select>'),r.append(this.categoryPropertySelect),i.append(r),this.categoryPropertySelect.change(function(){t.getDatasetConfig().categoryProperty=$(this).val(),Object(o.k)()});const a=$(`<div class="form-group"><label>${window.i18n.chart.valueProperty}</label></div>`);this.valuePropertySelect=$('<select class="form-control" style="display: inline-block;width:300px;padding: 2px;font-size: 12px;height: 25px"></select>'),a.append(this.valuePropertySelect),n.append(a),this.valuePropertySelect.change(function(){t.getDatasetConfig().valueProperty=$(this).val(),Object(o.k)()});const s=$(`<div class="form-group" style="margin-bottom: 0"><label>${window.i18n.chart.seriesProperty}</label></div>`);n.append(s),this.propertySeriesRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__chart_series_radio_${this.id}">${window.i18n.chart.property}</label>`),s.append(this.propertySeriesRadio),this.textSeriesRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__chart_series_radio_${this.id}" checked>${window.i18n.chart.static}</label>`),s.append(this.textSeriesRadio),this.propertySeriesRadio.children("input").click(function(){t.seriesPropertyGroup.show(),t.seriesTextGroup.hide(),t.getDatasetConfig().seriesType="property",Object(o.k)()}),this.textSeriesRadio.children("input").click(function(){t.seriesPropertyGroup.hide(),t.seriesTextGroup.show(),t.getDatasetConfig().seriesType="text",Object(o.k)()}),this.seriesPropertyGroup=$(`<div class="form-group" style="margin-left: 10px"><span>${window.i18n.chart.prop}</span></div>`),this.seriesPropertySelect=$('<select class="form-control" style="display: inline-block;width:303px;padding: 2px;font-size: 12px;height: 25px"></select>'),this.seriesPropertyGroup.append(this.seriesPropertySelect),n.append(this.seriesPropertyGroup),this.seriesPropertySelect.change(function(){t.getDatasetConfig().seriesProperty=$(this).val(),Object(o.k)()}),this.seriesPropertyGroup.hide(),this.seriesTextGroup=$(`<div class="form-group" style="margin-left: 10px"><span>${window.i18n.chart.staticValue}</span></div>`),this.seriesTextEditor=$('<input type="text" class="form-control" style="display: inline-block;width:288px;padding: 2px;font-size: 12px;height: 25px">'),this.seriesTextGroup.append(this.seriesTextEditor),n.append(this.seriesTextGroup),this.seriesTextEditor.change(function(){t.getDatasetConfig().seriesText=$(this).val(),Object(o.k)()}),this.datasetSelect.change(function(){t.categoryPropertySelect.empty(),t.seriesPropertySelect.empty(),t.valuePropertySelect.empty();const e=$(this).val();let n=[];for(let i of t.datasources){let t=i.datasets||[];for(let i of t)if(i.name===e){n=i.fields||[];break}if(n.length>0)break}for(let e of n)t.categoryPropertySelect.append(`<option>${e.name}</option>`),t.seriesPropertySelect.append(`<option>${e.name}</option>`),t.valuePropertySelect.append(`<option>${e.name}</option>`);t.categoryPropertySelect.append("<option selected></option>"),t.seriesPropertySelect.append("<option selected></option>"),t.valuePropertySelect.append("<option selected></option>"),t.getDatasetConfig().datasetName=e,Object(o.k)()});const l=$(`<div class="form-group" style="margin-bottom: 5px"><label>${window.i18n.chart.aggregate}</label></div>`);n.append(l),this.aggregateSelect=$(`<select class="form-control" style="display: inline-block;width: 285px;font-size: 12px;height: 25px;padding: 3px;">\n <option value="select">${window.i18n.chart.select}</option>\n <option value="sum">${window.i18n.chart.sum}</option>\n <option value="count">${window.i18n.chart.count}</option>\n <option value="max">${window.i18n.chart.max}</option>\n <option value="min">${window.i18n.chart.min}</option>\n <option value="avg">${window.i18n.chart.avg}</option>\n <option selected></option>\n </select>`),l.append(this.aggregateSelect),this.aggregateSelect.change(function(){t.getDatasetConfig().collectType=$(this).val(),Object(o.k)()})}initXAxes(e){const t=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px;margin-bottom: 10px;margin-top: 10px">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.chart.xAxis}</legend></fieldset>`);e.append(t);const n=this,i=$(`<div class="form-group" style="margin-bottom: 10px;display:inline-block;margin-right: 20px"><label>${window.i18n.chart.titleRotation}</label></div>`);t.append(i),this.xAxesRotationEditor=$(`<input type="number" class="form-control" value="0" title="${window.i18n.chart.angleScope}" style="display: inline-block;width: 80px;font-size: 12px;height: 25px;padding: 3px;">`),i.append(this.xAxesRotationEditor),this.xAxesRotationEditor.change(function(){const e=n.getXAxesConfig();e.rotation=$(this).val(),n.getXTicks().minRotation=e.rotation,n.cellDef.chartWidget.chart.update(),Object(o.k)()});const r=$(`<div class="form-group" style="margin-bottom: 10px"><label>${window.i18n.chart.titleFormat}</label></div>`);t.append(r),this.formatEditor=$('<input type="text" class="form-control" style="display: inline-block;width: 260px;font-size: 12px;height: 25px;padding: 3px;">'),r.append(this.formatEditor),this.formatEditor.change(function(){n.getDatasetConfig().format=$(this).val(),Object(o.k)()});const a=$(`<div class="form-group" style="margin-bottom: 10px"><label>${window.i18n.chart.displayAxisTitle}</label></div>`);t.append(a),this.showXTitleRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__show_xtitle_radio_${this.id}">${window.i18n.chart.yes}</label>`),a.append(this.showXTitleRadio),this.hideXTitleRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__show_xtitle_radio_${this.id}" checked>${window.i18n.chart.no}</label>`),a.append(this.hideXTitleRadio),this.showXTitleRadio.children("input").change(function(){n.xTitleGroup.show();const e=n.getXAxesConfig();let t=e.scaleLabel;t||(t={},e.scaleLabel=t),t.display=!0,n.getXScaleLabel().display=!0,n.cellDef.chartWidget.chart.update(),Object(o.k)()}),this.hideXTitleRadio.children("input").change(function(){n.xTitleGroup.hide();const e=n.getXAxesConfig();let t=e.scaleLabel;t||(t={},e.scaleLabel=t),t.display=!1,n.getXScaleLabel().display=!1,n.cellDef.chartWidget.chart.update(),Object(o.k)()}),this.xTitleGroup=$(`<div class="form-group" style="margin-bottom: 0"><label>${window.i18n.chart.axisTitle}</label></div>`),t.append(this.xTitleGroup),this.xTitleEditor=$('<input type="text" class="form-control" style="display: inline-block;width: 288px;font-size: 12px;height: 25px;padding: 3px;">'),this.xTitleGroup.append(this.xTitleEditor),this.xTitleEditor.change(function(){const e=n.getXAxesConfig();let t=e.scaleLabel;t||(t={},e.scaleLabel=t),t.labelString=$(this).val(),n.getXScaleLabel().labelString=$(this).val(),n.cellDef.chartWidget.chart.update(),Object(o.k)()}),this.xTitleGroup.hide()}initYAxes(e){const t=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px;">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.chart.yAxisConfig}</legend></fieldset>`);e.append(t);const n=this,i=$(`<div class="form-group" style="margin-bottom: 10px;display:inline-block;margin-right: 20px"><label>${window.i18n.chart.titleRotation}</label></div>`);t.append(i),this.yAxesRotationEditor=$(`<input type="number" class="form-control" value="0" title="${window.i18n.chart.angleScope}" style="display: inline-block;width: 80px;font-size: 12px;height: 25px;padding: 3px;">`),i.append(this.yAxesRotationEditor),this.yAxesRotationEditor.change(function(){const e=n.getYAxesConfig();e.rotation=$(this).val(),n.getYTicks().minRotation=e.rotation,n.cellDef.chartWidget.chart.update(),Object(o.k)()});const r=$(`<div class="form-group" style="margin-bottom: 10px"><label>${window.i18n.chart.displayAxisTitle}</label></div>`);t.append(r),this.showYTitleRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__show_ytitle_radio_${this.id}">${window.i18n.chart.yes}</label>`),r.append(this.showYTitleRadio),this.hideYTitleRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__show_ytitle_radio_${this.id}" checked>${window.i18n.chart.no}</label>`),r.append(this.hideYTitleRadio),this.showYTitleRadio.children("input").change(function(){n.yTitleGroup.show();const e=n.getYAxesConfig();let t=e.scaleLabel;t||(t={},e.scaleLabel=t),t.display=!0,n.getYScaleLabel().display=!0,n.cellDef.chartWidget.chart.update(),Object(o.k)()}),this.hideYTitleRadio.children("input").change(function(){n.yTitleGroup.hide();const e=n.getYAxesConfig();let t=e.scaleLabel;t||(t={},e.scaleLabel=t),t.display=!1,n.getYScaleLabel().display=!1,n.cellDef.chartWidget.chart.update(),Object(o.k)()}),this.yTitleGroup=$(`<div class="form-group" style="margin-bottom: 0"><label>${window.i18n.chart.axisTitle}</label></div>`),t.append(this.yTitleGroup),this.yTitleEditor=$('<input type="text" class="form-control" style="display: inline-block;width: 288px;font-size: 12px;height: 25px;padding: 3px;">'),this.yTitleGroup.append(this.yTitleEditor),this.yTitleEditor.change(function(){const e=n.getYAxesConfig();let t=e.scaleLabel;t||(t={},e.scaleLabel=t),t.labelString=$(this).val(),n.getYScaleLabel().labelString=$(this).val(),n.cellDef.chartWidget.chart.update(),Object(o.k)()}),this.yTitleGroup.hide()}getXTicks(){const e=this.cellDef.chartWidget.chart;let t=e.options.scales;t||(t={},e.options.scales=t);let n=t.xAxes;n||(n=[],t.xAxes=n);let i=null;for(let e of n)if(e.ticks){i=e.ticks;break}return i||(i={},n.push(i)),i}getYTicks(){const e=this.cellDef.chartWidget.chart;let t=e.options.scales;t||(t={},e.options.scales=t);let n=t.yAxes;n||(n=[],t.yAxes=n);let i=null;for(let e of n)if(e.ticks){i=e.ticks;break}return i||(i={},n.push(i)),i}getXScaleLabel(){const e=this.cellDef.chartWidget.chart;let t=e.options.scales;t||(t={},e.options.scales=t);let n=t.xAxes;n||(n=[],t.xAxes=n);let i=null;for(let e of n)if(e.scaleLabel){i=e.scaleLabel;break}return i||(i={},n.push(i)),i}getYScaleLabel(){const e=this.cellDef.chartWidget.chart;let t=e.options.scales;t||(t={},e.options.scales=t);let n=t.yAxes;n||(n=[],t.yAxes=n);let i=null;for(let e of n)if(e.scaleLabel){i=e.scaleLabel;break}return i||(i={},n.push(i)),i}getXAxesConfig(){let e=this.cellDef.value.chart.xaxes;return e||(e={},this.cellDef.value.chart.xaxes=e),e}getYAxesConfig(){let e=this.cellDef.value.chart.yaxes;return e||(e={},this.cellDef.value.chart.yaxes=e),e}}class Te extends Le{constructor(e,t,n){super(),this.id=n||"bar",this.context=t,this.container=$("<div></div>"),e.append(this.container);const i=$('<ul class="nav nav-tabs"></ul>');this.container.append(i);const o=$(`<li class="active"><a href="#chart_bind_dataset_${this.id}" data-toggle="tab">${window.i18n.chart.datasetBind}</a></li>`);i.append(o);const r=$(`<li><a href="#chart_option_${this.id}" data-toggle="tab">${window.i18n.chart.option}</a></li>`);i.append(r),this.axisLI=$(`<li><a href="#chart_axis_${this.id}" data-toggle="tab">${window.i18n.chart.axisConfig}</a></li>`),i.append(this.axisLI);const a=$('<div class="tab-content"></div>');this.container.append(a);const s=$(`<div class="tab-pane fade in active" id="chart_bind_dataset_${this.id}"></div>`);a.append(s),this._initDatasetTab(s);const l=$(`<div class="tab-pane fade in" id="chart_option_${this.id}"></div>`);a.append(l),this._initOptionTab(l);const d=$(`<div class="tab-pane fade in" id="chart_axis_${this.id}"></div>`);a.append(d),this._initAxisTab(d),this.container.hide()}_initDatasetTab(e){this.initCategoryDataset(e)}_initOptionTab(e){const t=$("<div></div>");e.append(t),this.initTitleOption(t),this.initLegendOption(t),this.initAnimationsOption(t)}_initAxisTab(e){this.initXAxes(e),this.initYAxes(e)}show(e,t,n,i,o){this.cellDef=e,this.rowIndex=t,this.colIndex=n,this.container.show();const r=e.value.chart;this.datasetSelect.empty(),this.datasources=this.context.reportDef.datasources;for(let e of this.datasources){let t=e.datasets||[];for(let e of t)this.datasetSelect.append(`<option>${e.name}</option>`)}this.datasetSelect.append("<option selected></option>");const a=r.dataset;this.datasetSelect.val(a.datasetName),this.datasetSelect.trigger("change"),this.categoryPropertySelect.val(a.categoryProperty),this.seriesPropertySelect.val(a.seriesProperty),this.seriesTextEditor.val(a.seriesText),this.valuePropertySelect.val(a.valueProperty),this.aggregateSelect.val(a.collectType),"property"===a.seriesType?(this.propertySeriesRadio.children("input").attr("checked",!0),this.propertySeriesRadio.children("input").trigger("click")):(this.textSeriesRadio.children("input").attr("checked",!0),this.textSeriesRadio.children("input").trigger("click")),this.formatEditor.val(a.format);const s=r.xaxes||{rotation:0,xposition:"left"};this.xAxesRotationEditor.val(s.rotation);const l=s.scaleLabel||{};l.display?(this.showXTitleRadio.trigger("click"),this.xTitleEditor.val(l.labelString)):this.hideXTitleRadio.trigger("click");const d=r.yaxes||{rotation:0,yposition:"bottom"};this.yAxesRotationEditor.val(d.rotation);const c=d.scaleLabel||{};c.display?(this.showYTitleRadio.trigger("click"),this.yTitleEditor.val(c.labelString)):this.hideYTitleRadio.trigger("click");const u=r.options||[];for(let e of u)switch(e.type){case"animation":this.durationEditor.val(e.duration),this.easingSelect.val(e.easing);break;case"title":e.display?(this.showTitleRadio.children("input").attr("checked",!0),this.titlePositionSelect.val(e.position),this.titleTextEditor.val(e.text),this.titleTextGroup.show(),this.titlePositionGroup.show()):(this.hideTitleRadio.children("input").attr("checked",!0),this.titleTextGroup.hide(),this.titlePositionGroup.hide());break;case"layout":const t=e.layout||{left:0,right:0,top:0,bottom:0};this.upPaddingEditor.val(t.top),this.downPaddingEditor.val(t.bottom),this.leftPaddingEditor.val(t.left),this.rightPaddingEditor.val(t.right);break;case"legend":e.display?(this.showLegendRadio.children("input").attr("checked",!0),this.legendPositionGroup.show(),this.legendPositionSelect.val(e.position)):(this.hideLegendRadio.children("input").attr("checked",!0),this.legendPositionGroup.hide())}}hide(){this.container.hide()}}class De extends Te{constructor(e,t){super(e,t,"line")}}class Ye extends Te{constructor(e,t){super(e,t,"area")}}class Re extends Te{constructor(e,t){super(e,t,"horbar")}}class Be extends Le{constructor(e,t){super(),this.context=t,this.container=$("<div></div>"),e.append(this.container);const n=$('<ul class="nav nav-tabs"></ul>');this.container.append(n);const i=$(`<li class="active"><a href="#chart_bind_dataset_bubble" data-toggle="tab">${window.i18n.chart.datasetBind}</a></li>`);n.append(i);const o=$(`<li><a href="#chart_option_bubble" data-toggle="tab">${window.i18n.chart.option}</a></li>`);n.append(o),this.axisLI=$(`<li><a href="#chart_axis_bubble" data-toggle="tab">${window.i18n.chart.axisConfig}</a></li>`),n.append(this.axisLI);const r=$('<div class="tab-content"></div>');this.container.append(r);const a=$('<div class="tab-pane fade in active" id="chart_bind_dataset_bubble"></div>');r.append(a),this._initDatasetTab(a);const s=$('<div class="tab-pane fade in" id="chart_option_bubble"></div>');r.append(s),this._initOptionTab(s);const l=$('<div class="tab-pane fade in" id="chart_axis_bubble"></div>');r.append(l),this._initAxisTab(l),this.container.hide()}_initDatasetTab(e){const t=this,n=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px;margin-bottom: 10px;margin-top: 10px">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.chart.propBindConfig}</legend></fieldset>`);e.append(n);const i=$(`<div class="form-group" style="margin-top: 10px"><label>${window.i18n.chart.dataset}</label></div>`);n.append(i),this.datasetSelect=$('<select class="form-control" style="display: inline-block;width:295px;padding:2px;font-size: 12px;height: 25px"></select>'),i.append(this.datasetSelect);const r=$(`<div class="form-group" style="margin-top: 5px;margin-bottom: 5px;"><label>${window.i18n.chart.categoryProperty}</label></div>`);this.categoryPropertySelect=$('<select class="form-control" style="display: inline-block;width:280px;padding: 2px;font-size: 12px;height: 25px"></select>'),r.append(this.categoryPropertySelect),i.append(r),this.categoryPropertySelect.change(function(){t.getDatasetConfig().categoryProperty=$(this).val()});const a=$(`<div class="form-group" style="margin-bottom: 5px;"><label>${window.i18n.chart.xProperty}</label></div>`);this.xPropertySelect=$('<select class="form-control" style="display: inline-block;width:285px;padding: 2px;font-size: 12px;height: 25px"></select>'),a.append(this.xPropertySelect),a.append(a),this.xPropertySelect.change(function(){t.getDatasetConfig().xProperty=$(this).val(),Object(o.k)()}),n.append(a);const s=$(`<div class="form-group" style="margin-bottom: 5px;"><label>${window.i18n.chart.yProperty}</label></div>`);this.yPropertySelect=$('<select class="form-control" style="display: inline-block;width:285px;padding: 2px;font-size: 12px;height: 25px"></select>'),s.append(this.yPropertySelect),s.append(s),this.yPropertySelect.change(function(){t.getDatasetConfig().yProperty=$(this).val(),Object(o.k)()}),n.append(s);const l=$(`<div class="form-group" style="margin-bottom: 5px;"><label>${window.i18n.chart.rProperty}</label></div>`);this.rPropertySelect=$('<select class="form-control" style="display: inline-block;width:265px;padding: 2px;font-size: 12px;height: 25px"></select>'),l.append(this.rPropertySelect),l.append(l),this.rPropertySelect.change(function(){t.getDatasetConfig().rProperty=$(this).val(),Object(o.k)()}),n.append(l),this.datasetSelect.change(function(){t.categoryPropertySelect.empty(),t.xPropertySelect.empty(),t.yPropertySelect.empty(),t.rPropertySelect.empty();const e=$(this).val();let n=[];for(let i of t.datasources){let t=i.datasets||[];for(let i of t)if(i.name===e){n=i.fields||[];break}if(n.length>0)break}for(let e of n)t.categoryPropertySelect.append(`<option>${e.name}</option>`),t.xPropertySelect.append(`<option>${e.name}</option>`),t.yPropertySelect.append(`<option>${e.name}</option>`),t.rPropertySelect.append(`<option>${e.name}</option>`);t.categoryPropertySelect.append("<option selected></option>"),t.xPropertySelect.append("<option selected></option>"),t.yPropertySelect.append("<option selected></option>"),t.rPropertySelect.append("<option selected></option>"),t.getDatasetConfig().datasetName=e})}_initOptionTab(e){const t=$("<div></div>");e.append(t),this.initTitleOption(t),this.initLegendOption(t),this.initAnimationsOption(t)}_initAxisTab(e){this.initXAxes(e),this.initYAxes(e)}show(e,t,n,i,o){this.cellDef=e,this.rowIndex=t,this.colIndex=n,this.container.show();const r=e.value.chart;this.datasetSelect.empty(),this.datasources=this.context.reportDef.datasources;for(let e of this.datasources){let t=e.datasets||[];for(let e of t)this.datasetSelect.append(`<option>${e.name}</option>`)}this.datasetSelect.append("<option selected></option>");const a=r.dataset;this.datasetSelect.val(a.datasetName),this.datasetSelect.trigger("change"),this.categoryPropertySelect.val(a.categoryProperty),this.xPropertySelect.val(a.xProperty),this.yPropertySelect.val(a.yProperty),this.rPropertySelect.val(a.rProperty),this.formatEditor.val(a.format);const s=r.xaxes||{rotation:0,xposition:"left"};this.xAxesRotationEditor.val(s.rotation);const l=s.scaleLabel||{};l.display?(this.showXTitleRadio.trigger("click"),this.xTitleEditor.val(l.labelString)):this.hideXTitleRadio.trigger("click");const d=r.yaxes||{rotation:0,yposition:"bottom"};this.yAxesRotationEditor.val(d.rotation);const c=d.scaleLabel||{};c.display?(this.showYTitleRadio.trigger("click"),this.yTitleEditor.val(c.labelString)):this.hideYTitleRadio.trigger("click");const u=r.options||[];for(let e of u)switch(e.type){case"animation":this.durationEditor.val(e.duration),this.easingSelect.val(e.easing);break;case"title":e.display?(this.showTitleRadio.children("input").attr("checked",!0),this.titlePositionSelect.val(e.position),this.titleTextEditor.val(e.text),this.titleTextGroup.show(),this.titlePositionGroup.show()):(this.hideTitleRadio.children("input").attr("checked",!0),this.titleTextGroup.hide(),this.titlePositionGroup.hide());break;case"layout":const t=e.layout||{left:0,right:0,top:0,bottom:0};this.upPaddingEditor.val(t.top),this.downPaddingEditor.val(t.bottom),this.leftPaddingEditor.val(t.left),this.rightPaddingEditor.val(t.right);break;case"legend":e.display?(this.showLegendRadio.children("input").attr("checked",!0),this.legendPositionGroup.show(),this.legendPositionSelect.val(e.position)):(this.hideLegendRadio.children("input").attr("checked",!0),this.legendPositionGroup.hide())}}hide(){this.container.hide()}}class Oe extends Te{constructor(e,t){super(e,t,"doughnut"),this.axisLI.hide()}}class He extends Te{constructor(e,t){super(e,t,"pie"),this.axisLI.hide()}}class Pe extends Te{constructor(e,t){super(e,t,"polar"),this.axisLI.hide()}}class Ie extends Te{constructor(e,t){super(e,t,"radar"),this.axisLI.hide()}}class je extends Le{constructor(e,t){super(),this.context=t,this.container=$("<div></div>"),e.append(this.container);const n=$('<ul class="nav nav-tabs"></ul>');this.container.append(n);const i=$(`<li class="active"><a href="#chart_bind_dataset_scatter" data-toggle="tab">${window.i18n.chart.datasetBind}</a></li>`);n.append(i);const o=$(`<li><a href="#chart_option_scatter" data-toggle="tab">${window.i18n.chart.option}</a></li>`);n.append(o),this.axisLI=$(`<li><a href="#chart_axis_scatter" data-toggle="tab">${window.i18n.chart.axisConfig}</a></li>`),n.append(this.axisLI);const r=$('<div class="tab-content"></div>');this.container.append(r);const a=$('<div class="tab-pane fade in active" id="chart_bind_dataset_scatter"></div>');r.append(a),this._initDatasetTab(a);const s=$('<div class="tab-pane fade in" id="chart_option_scatter"></div>');r.append(s),this._initOptionTab(s);const l=$('<div class="tab-pane fade in" id="chart_axis_scatter"></div>');r.append(l),this._initAxisTab(l),this.container.hide()}_initDatasetTab(e){const t=this,n=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px;margin-bottom: 10px;margin-top: 10px">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.chart.propBindConfig}</legend></fieldset>`);e.append(n);const i=$(`<div class="form-group" style="margin-top: 10px"><label>${window.i18n.chart.dataset}</label></div>`);n.append(i),this.datasetSelect=$('<select class="form-control" style="display: inline-block;width:295px;padding:2px;font-size: 12px;height: 25px"></select>'),i.append(this.datasetSelect);const r=$(`<div class="form-group" style="margin-top: 5px;margin-bottom: 5px;"><label>${window.i18n.chart.categoryProperty}</label></div>`);this.categoryPropertySelect=$('<select class="form-control" style="display: inline-block;width:280px;padding: 2px;font-size: 12px;height: 25px"></select>'),r.append(this.categoryPropertySelect),i.append(r),this.categoryPropertySelect.change(function(){t.getDatasetConfig().categoryProperty=$(this).val(),Object(o.k)()});const a=$(`<div class="form-group" style="margin-bottom: 5px;"><label>${window.i18n.chart.xProperty}</label></div>`);this.xPropertySelect=$('<select class="form-control" style="display: inline-block;width:285px;padding: 2px;font-size: 12px;height: 25px"></select>'),a.append(this.xPropertySelect),a.append(a),this.xPropertySelect.change(function(){t.getDatasetConfig().xProperty=$(this).val(),Object(o.k)()}),n.append(a);const s=$(`<div class="form-group" style="margin-bottom: 5px;"><label>${window.i18n.chart.yProperty}</label></div>`);this.yPropertySelect=$('<select class="form-control" style="display: inline-block;width:285px;padding: 2px;font-size: 12px;height: 25px"></select>'),s.append(this.yPropertySelect),s.append(s),this.yPropertySelect.change(function(){t.getDatasetConfig().yProperty=$(this).val(),Object(o.k)()}),n.append(s),this.datasetSelect.change(function(){t.categoryPropertySelect.empty(),t.xPropertySelect.empty(),t.yPropertySelect.empty();const e=$(this).val();let n=[];for(let i of t.datasources){let t=i.datasets||[];for(let i of t)if(i.name===e){n=i.fields||[];break}if(n.length>0)break}for(let e of n)t.categoryPropertySelect.append(`<option>${e.name}</option>`),t.xPropertySelect.append(`<option>${e.name}</option>`),t.yPropertySelect.append(`<option>${e.name}</option>`);t.categoryPropertySelect.append("<option selected></option>"),t.xPropertySelect.append("<option selected></option>"),t.yPropertySelect.append("<option selected></option>"),t.getDatasetConfig().datasetName=e,Object(o.k)()})}_initOptionTab(e){const t=$("<div></div>");e.append(t),this.initTitleOption(t),this.initLegendOption(t),this.initAnimationsOption(t)}_initAxisTab(e){this.initXAxes(e),this.initYAxes(e)}show(e,t,n,i,o){this.cellDef=e,this.rowIndex=t,this.colIndex=n,this.container.show();const r=e.value.chart;this.datasetSelect.empty(),this.datasources=this.context.reportDef.datasources;for(let e of this.datasources){let t=e.datasets||[];for(let e of t)this.datasetSelect.append(`<option>${e.name}</option>`)}this.datasetSelect.append("<option selected></option>");const a=r.dataset;this.datasetSelect.val(a.datasetName),this.datasetSelect.trigger("change"),this.categoryPropertySelect.val(a.categoryProperty),this.xPropertySelect.val(a.xProperty),this.yPropertySelect.val(a.yProperty),this.formatEditor.val(a.format);const s=r.xaxes||{rotation:0,xposition:"left"};this.xAxesRotationEditor.val(s.rotation);const l=s.scaleLabel||{};l.display?(this.showXTitleRadio.trigger("click"),this.xTitleEditor.val(l.labelString)):this.hideXTitleRadio.trigger("click");const d=r.xaxes||{rotation:0,yposition:"bottom"};this.yAxesRotationEditor.val(d.rotation);const c=d.scaleLabel||{};c.display?(this.showYTitleRadio.trigger("click"),this.yTitleEditor.val(c.labelString)):this.hideYTitleRadio.trigger("click");const u=r.options||[];for(let e of u)switch(e.type){case"animation":this.durationEditor.val(e.duration),this.easingSelect.val(e.easing);break;case"title":e.display?(this.showTitleRadio.children("input").attr("checked",!0),this.titlePositionSelect.val(e.position),this.titleTextEditor.val(e.text),this.titleTextGroup.show(),this.titlePositionGroup.show()):(this.hideTitleRadio.children("input").attr("checked",!0),this.titleTextGroup.hide(),this.titlePositionGroup.hide());break;case"layout":const t=e.layout||{left:0,right:0,top:0,bottom:0};this.upPaddingEditor.val(t.top),this.downPaddingEditor.val(t.bottom),this.leftPaddingEditor.val(t.left),this.rightPaddingEditor.val(t.right);break;case"legend":e.display?(this.showLegendRadio.children("input").attr("checked",!0),this.legendPositionGroup.show(),this.legendPositionSelect.val(e.position)):(this.hideLegendRadio.children("input").attr("checked",!0),this.legendPositionGroup.hide())}}hide(){this.container.hide()}}class Fe{constructor(e){this.context=e}buildPanel(){this.panel=$('<div style="margin: 8px"></div>'),this._buildParentCell(),this._buildRenderer(),this._buildLinkConfig(),this._buildCellType(),this.editorMap=new Map;const e=new ue(this.panel,this.context);this.editorMap.set("simple",e);const t=new Ae(this.panel,this.context);this.editorMap.set("expression",t);const n=new xe(this.panel,this.context);this.editorMap.set("dataset",n);const i=new ke(this.panel,this.context);this.editorMap.set("image",i);const o=new Se(this.panel,this.context);this.editorMap.set("slash",o);const r=new Ce(this.panel,this.context);return this.editorMap.set("zxing",r),this.chartEditorMap=new Map,this.chartEditorMap.set("bar",new Te(this.panel,this.context)),this.chartEditorMap.set("line",new De(this.panel,this.context)),this.chartEditorMap.set("horizontalBar",new Re(this.panel,this.context)),this.chartEditorMap.set("area",new Ye(this.panel,this.context)),this.chartEditorMap.set("radar",new Ie(this.panel,this.context)),this.chartEditorMap.set("polar",new Pe(this.panel,this.context)),this.chartEditorMap.set("scatter",new je(this.panel,this.context)),this.chartEditorMap.set("bubble",new Be(this.panel,this.context)),this.chartEditorMap.set("doughnut",new Oe(this.panel,this.context)),this.chartEditorMap.set("pie",new He(this.panel,this.context)),this.panel}_buildLinkConfig(){const e=this;this.linkGroup=$(`<fieldset style="padding: 10px;border:solid 1px #dddddd;border-radius: 8px">\n <legend style="width: auto;margin-bottom: 1px;border-bottom:none;font-size: inherit;color: #4b4b4b;">${window.i18n.property.prop.linkConfig}</legend></fieldset>`);const t=$('<div class="form-group" style="margin-bottom:8px"><label>URL(<span style="font-size: 12px;color: #747474" title="如:${# == \'1\' ? \'a.jsp\' : \'b.jsp\'}">支持表达式,表达式定义在${...}中</span>):</label></div>');this.linkGroup.append(t),this.linkEditor=$('<input type="text" placeholder="如:${# == \'1\' ? \'a.jsp\' : \'b.jsp\'}" class="form-control" style="width: 360px;padding: 3px;font-size: 12px;height: 25px;">'),t.append(this.linkEditor),this.linkEditor.change(function(){e.cellDef.linkUrl=$(this).val(),Object(o.k)()});const n=$(`<div class="form-group" style="margin-bottom:0px"><label>${window.i18n.property.prop.target}</label></div>`);this.linkGroup.append(n),this.targetSelect=$(`<select class="form-control" style="display: inline-block;width: 160px;font-size: 12px;height: 25px;padding: 3px;">\n <option value="_blank">${window.i18n.property.prop.newWindow}</option>\n <option value="_self">${window.i18n.property.prop.currentWindow}</option>\n <option value="_parent">${window.i18n.property.prop.parentWindow}</option>\n <option value="_top">${window.i18n.property.prop.topWindow}</option>\n </select>`),n.append(this.targetSelect),this.targetSelect.change(function(){e.cellDef.linkTargetWindow=$(this).val(),Object(o.k)()});const r=new me,a=$(`<button type="button" class="btn btn-primary" style="margin-left: 10px;font-size: 12px;height: 25px;padding: 4px 10px;">${window.i18n.property.prop.urlParameterConfig}</button>`);n.append(a),a.click(function(){e.cellDef.linkUrl&&""!==e.cellDef.linkUrl?(e.cellDef.linkParameters||(e.cellDef.linkParameters=[]),r.show(e.cellDef.linkParameters),Object(o.k)()):Object(i.a)(`${window.i18n.property.prop.urlTip}`)}),this.panel.append(this.linkGroup),this.linkGroup.hide()}_buildCellType(){this.typeGruop=$(`<div class="form-group" style="margin-bottom:10px;margin-top: 10px;"><label>${window.i18n.property.prop.cellType}</label></div>`),this.typeSelect=$(`<select class="form-control" style="display: inline-block;width:280px;padding: 3px;font-size: 12px;height: 25px;">\n <option value="simple">${window.i18n.property.prop.text}</option>\n <option value="expression">${window.i18n.property.prop.expr}</option>\n <option value="dataset">${window.i18n.property.prop.dataset}</option>\n <option value="image">${window.i18n.property.prop.image}</option>\n <option value="slash">${window.i18n.property.prop.slash}</option>\n <option value="qrcode">${window.i18n.property.prop.qrcode}</option>\n <option value="barcode">${window.i18n.property.prop.barcode}</option>\n <option value="chart">${window.i18n.property.prop.chart}</option>\n </select>`),this.typeGruop.append(this.typeSelect),this.panel.append(this.typeGruop),this.typeGruop.hide();const e=this;this.typeSelect.change(function(){for(let t of e.editorMap.values())t.hide();let t=e.cellDef,n=$(this).val();if("simple"===n)"simple"!==t.value.type&&(t.value={type:"simple"}),t.expand="None",e.editorMap.get("simple").show(e.cellDef,e.rowIndex,e.colIndex,e.row2Index,e.col2Index);else if("expression"===n)"expression"!==t.value.type&&(t.value={type:"expression",value:""}),t.expand="None",e.editorMap.get("expression").show(e.cellDef,e.rowIndex,e.colIndex,e.row2Index,e.col2Index);else if("dataset"===n)"dataset"!==t.value.type&&(t.value={type:"dataset",datasetName:"",property:"",aggregate:"",conditions:[],order:"none"}),t.expand="Down",e.editorMap.get("dataset").show(e.cellDef,e.rowIndex,e.colIndex,e.row2Index,e.col2Index);else if("image"===n)"image"!==t.value.type&&(t.value={type:"image",source:"text"}),t.expand="None",e.editorMap.get("image").show(e.cellDef,e.rowIndex,e.colIndex,e.row2Index,e.col2Index);else if("qrcode"===n){if("zxing"!==t.value.type||"qrcode"!==t.value.category){const n=e.rowIndex,i=this.colIndex,o=e.context.hot.getCell(n,i),r=e._buildWidth(i,o.colSpan,e.context.hot),a=e._buildHeight(n,o.rowSpan,e.context.hot);t.value={width:r,height:a,type:"zxing",source:"text",category:"qrcode",data:""},t.expand="None"}e.editorMap.get("zxing").show(e.cellDef,e.rowIndex,e.colIndex,e.row2Index,e.col2Index)}else if("barcode"===n){if("zxing"!==t.value.type||"barcode"!==t.value.category){const n=e.rowIndex,i=this.colIndex,o=e.context.hot.getCell(n,i),r=e._buildWidth(i,o.colSpan,e.context.hot),a=e._buildHeight(n,o.rowSpan,e.context.hot);t.value={width:r,height:a,type:"zxing",source:"text",category:"barcode",data:"",format:"CODE_128"},t.expand="None"}e.editorMap.get("zxing").show(e.cellDef,e.rowIndex,e.colIndex,e.row2Index,e.col2Index)}else if("slash"===n)t.crossTabWidget=new d(e.context,e.rowIndex,e.colIndex),t.expand="None",e.editorMap.get("slash").show(e.cellDef,e.rowIndex,e.colIndex,e.row2Index,e.col2Index);else if("chart"===n){const n=e.rowIndex,i=this.colIndex,o=e.context.hot.getCell(n,i),r=e._buildWidth(i,o.colSpan,e.context.hot),a=e._buildHeight(n,o.rowSpan,e.context.hot);t.value={width:r,height:a,type:"chart",chart:{dataset:{type:"pie"}}}}e.context.hot.setDataAtCell(e.rowIndex,e.colIndex,""),e.context.hot.render(),Object(o.k)()})}_buildParentCell(){this.parentGroup=$("<div></div>");const e=$(`<div class="form-group" style="margin-bottom:6px"><label>${window.i18n.property.prop.leftParent}</label></div>`);this.parentGroup.append(e),this.defaultLeftRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" class="__left_p_radio" name="__left_p_radio" value="default">${window.i18n.property.prop.default}</label>`),e.append(this.defaultLeftRadio),this.customLeftRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" class="__left_p_radio" name="__left_p_radio" value="custom">${window.i18n.property.prop.custom}</label>`),e.append(this.customLeftRadio),this.leftParentCellNameSelect=$('<select class="form-control" disabled style="width: 90px;display: inline-block;margin-left: 10px;padding: 3px;font-size: 12px;height: 25px"></select>'),e.append(this.leftParentCellNameSelect),this.leftParentRowNumberSelect=$('<select class="form-control" disabled style="width: 66px;display: inline-block;margin-left: 10px;padding: 3px;font-size: 12px;height: 25px"></select>'),e.append(this.leftParentRowNumberSelect);const t=this;this.leftParentCellNameSelect.change(function(){let e=$(this).val();if("root"===e)t.leftParentRowNumberSelect.prop("disabled",!0),t.leftParentRowNumberSelect.val(""),t._setParentCell("root",!0);else{t.leftParentRowNumberSelect.prop("disabled",!1);let n=t.leftParentRowNumberSelect.val();""!==e&&""!==n&&t._setParentCell(e+n,!0)}}),this.leftParentRowNumberSelect.change(function(){let e=t.leftParentCellNameSelect.val();if("root"===e)t._setParentCell("root",!0);else{let n=$(this).val();""!==e&&""!==n&&t._setParentCell(e+n,!0)}}),this.defaultLeftRadio.children("input").click(function(){t.leftParentCellNameSelect.prop("disabled",!0),t.leftParentRowNumberSelect.prop("disabled",!0),t._setParentCell(null,!0)}),this.customLeftRadio.children("input").click(function(){t.leftParentCellNameSelect.prop("disabled",!1),t.leftParentRowNumberSelect.prop("disabled",!1),Object(o.k)()});const n=$(`<div class="form-group" style="margin-bottom:6px"><label>${window.i18n.property.prop.topParent}</label></div>`);this.parentGroup.append(n),this.defaultTopRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__top_p_radio" value="default">${window.i18n.property.prop.default}</label>`),n.append(this.defaultTopRadio),this.customTopRadio=$(`<label class="checkbox-inline" style="padding-left: 2px"><input type="radio" name="__top_p_radio" value="custom">${window.i18n.property.prop.custom}</label>`),n.append(this.customTopRadio),this.topParentCellNameSelect=$('<select class="form-control" disabled style="width: 90px;display: inline-block;margin-left: 10px;padding: 3px;font-size: 12px;height: 25px;"></select>'),n.append(this.topParentCellNameSelect),this.topParentRowNumberSelect=$('<select class="form-control" disabled style="width: 66px;display: inline-block;margin-left: 10px;padding: 3px;font-size: 12px;height: 25px"></select>'),n.append(this.topParentRowNumberSelect),this.topParentCellNameSelect.change(function(){let e=$(this).val();if("root"===e)t.topParentRowNumberSelect.prop("disabled",!0),t.topParentRowNumberSelect.val(""),t._setParentCell("root",!1);else{t.topParentRowNumberSelect.prop("disabled",!1);let n=t.topParentRowNumberSelect.val();""!==e&&""!==n&&t._setParentCell(e+n,!1)}}),this.topParentRowNumberSelect.change(function(){let e=t.topParentCellNameSelect.val();if("root"===e)t._setParentCell("root",!1);else{let n=$(this).val();""!==e&&""!==n&&t._setParentCell(e+n,!1)}}),this.defaultTopRadio.children("input").click(function(){t.topParentCellNameSelect.prop("disabled",!0),t.topParentRowNumberSelect.prop("disabled",!0),t._setParentCell(null,!1)}),this.customTopRadio.children("input").click(function(){t.topParentCellNameSelect.prop("disabled",!1),t.topParentRowNumberSelect.prop("disabled",!1)}),this.panel.append(this.parentGroup),this.parentGroup.hide()}_setParentCell(e,t){if(!this.initialized){for(let n=this.rowIndex;n<=this.row2Index;n++)for(let i=this.colIndex;i<=this.col2Index;i++){const o=this.context.getCell(n,i);o&&(t?o.leftParentCellName=e||null:o.topParentCellName=e||null)}Object(o.k)()}}_buildParentCellNameOptions(e){e.empty();const t=this.context.hot.countCols();e.append(`<option value="root">${window.i18n.property.prop.none}</option>`);for(let n=0;n<t;n++){let t=this.context.getCellName(null,n);e.append(`<option value="${t}">${t}</option>`)}}_buildParentRowNumberOptions(e){e.empty();const t=this.context.hot.countRows();e.append("<option></option>");for(let n=0;n<t;n++)e.append(`<option>${n+1}</option>`)}_buildRenderer(){this.rendererGroup=$(`<div class="form-group" style="margin-bottom:6px"><label>${window.i18n.property.prop.renderBean}</label></div>`);const e=$('<div class="input-group" style="width: 290px;display: inline-block;height: 22px;"></div>');this.rendererGroup.append(e),this.rendererBeanEditor=$('<input type="text" class="form-control" style="width: 204px">'),e.append(this.rendererBeanEditor);const t=$('<span class="input-group-btn"></span>'),n=$(`<button type="button" class="btn btn-default">${window.i18n.property.prop.selectBean}</button>`);t.append(n),e.append(t);const i=this;n.click(function(){}),this.panel.append(this.rendererGroup),this.rendererBeanEditor.change(function(){i._setRenderer($(this).val())}),this.rendererGroup.hide()}_setRenderer(e){if(!this.initialized){for(let t=this.rowIndex;t<=this.row2Index;t++)for(let n=this.colIndex;n<=this.col2Index;n++){const i=this.context.getCell(t,n);i&&(i.renderer=e)}Object(o.k)()}}refresh(e,t,n,i){const o=this.context.getCell(e,t);if(!o)return;this.cellDef=o;let r=this.context.getCellName(e,t);$("#__prop_tab_link").html(`${window.i18n.property.prop.prop}[${r}]`),this.rowIndex=e,this.colIndex=t,this.row2Index=n,this.col2Index=i,this.parentGroup.show(),this.typeGruop.show(),this.linkGroup.show(),this.initialized=!0,this.linkEditor.val(o.linkUrl),this.targetSelect.val(o.linkTargetWindow),this._buildParentCellNameOptions(this.leftParentCellNameSelect),this._buildParentRowNumberOptions(this.leftParentRowNumberSelect),this._buildParentCellNameOptions(this.topParentCellNameSelect),this._buildParentRowNumberOptions(this.topParentRowNumberSelect);const a=o.leftParentCellName;if(a){if(this.customLeftRadio.trigger("click"),"root"===a)this.leftParentCellNameSelect.val("root"),this.leftParentRowNumberSelect.val("");else{let e=this._parseCellName(a);this.leftParentCellNameSelect.val(e.name),this.leftParentRowNumberSelect.val(e.num)}this.leftParentCellNameSelect.prop("disabled",!1),this.leftParentRowNumberSelect.prop("disabled",!1),this.leftParentCellNameSelect.trigger("change")}else{if(this.defaultLeftRadio.trigger("click"),0===t)this.leftParentCellNameSelect.val("root"),this.leftParentRowNumberSelect.val("");else{let n=e,i=t-1,o=this.context.hot.getCell(n,i);if("none"===$(o).css("display")){let e=this.context.hot.getSettings().mergeCells;for(let t of e){let e=t.row,o=t.rowspan,r=t.col,a=t.colspan;if(n>=e&&n<=e+o-1&&i>=r&&i<=r+a-1){n=e,i=r;break}}}let r=this.context.getCellName(n,i),a=this._parseCellName(r);this.leftParentCellNameSelect.val(a.name),this.leftParentRowNumberSelect.val(a.num)}this.leftParentCellNameSelect.prop("disabled",!0),this.leftParentRowNumberSelect.prop("disabled",!0)}const s=o.topParentCellName;if(s){if(this.customTopRadio.trigger("click"),"root"===s)this.topParentCellNameSelect.val("root"),this.topParentRowNumberSelect.val("");else{let e=this._parseCellName(s);this.topParentCellNameSelect.val(e.name),this.topParentRowNumberSelect.val(e.num)}this.topParentCellNameSelect.prop("disabled",!1),this.topParentRowNumberSelect.prop("disabled",!1),this.topParentCellNameSelect.trigger("change")}else{if(this.defaultTopRadio.trigger("click"),0===e)this.topParentCellNameSelect.val("root"),this.topParentRowNumberSelect.val("");else{let n=e-1,i=t,o=this.context.hot.getCell(n,i);if("none"===$(o).css("display")){let e=this.context.hot.getSettings().mergeCells;for(let t of e){let e=t.row,o=t.rowspan,r=t.col,a=t.colspan;if(n>=e&&n<=e+o-1&&i>=r&&i<=r+a-1){n=e,i=r;break}}}let r=this.context.getCellName(n,i),a=this._parseCellName(r);this.topParentCellNameSelect.val(a.name),this.topParentRowNumberSelect.val(a.num)}this.topParentCellNameSelect.prop("disabled",!0),this.topParentRowNumberSelect.prop("disabled",!0)}const l=o.cellStyle;l.renderer?this.rendererBeanEditor.val(l.renderer):this.rendererBeanEditor.val("");let d=o.value.type||"simple";if("zxing"===d){const e=o.value.category;this.typeSelect.val(e)}else this.typeSelect.val(d);for(let e of this.editorMap.values())e.hide();for(let e of this.chartEditorMap.values())e.hide();if("chart"===d){const r=o.value.chart.dataset.type;this.chartEditorMap.get(r).show(o,e,t,n,i)}else this.editorMap.get(d).show(o,e,t,n,i);this.initialized=!1}_parseCellName(e){let t=-1;for(let n=0;n<e.length;n++){let i=e.charAt(n),o=parseInt(i);if(!isNaN(o)){t=n;break}}return{name:e.substring(0,t),num:e.substring(t,e.length)}}_buildWidth(e,t,n){let i=n.getColWidth(e)-3;if(!t||t<2)return i;let o=e+t;for(let t=e+1;t<o;t++)i+=n.getColWidth(t);return i}_buildHeight(e,t,n){let i=n.getRowHeight(e)-3;if(!t||t<2)return i;let o=e+t;for(let t=e+1;t<o;t++)i+=n.getRowHeight(t);return i}}var Ne=n(375),ze=n(374);$(document).ready(function(){!function(){let e=window.navigator.language||window.navigator.browserLanguage;e||(e="zh-cn"),e=e.toLowerCase(),window.i18n=Ne,"zh-cn"!==e&&(window.i18n=ze)}(),new class{constructor(e,t){o.n.setLimit(100);const n=this;this.container=$("#"+e);const i=$("<div></div>");this.container.append(i);const r=new class{setFile(e){this.fileInfo||(this.fileInfo=$('<div style="float: right;font-size: 12px;color: #009688;margin-top: 8px;margin-right: 5px"></div>'),$(".ud-toolbar").append(this.fileInfo));let t=e.indexOf(".ureport.xml");t>-1&&(e=e.substring(0,t)),e=decodeURI(decodeURI(e)),this.fileInfo.html("报表:"+e)}};new class{constructor(e,t){this.container=e,this.hot=new w.a(e,{startCols:1,startRows:1,fillHandle:{autoInsertRow:!1},colHeaders:!0,rowHeaders:!0,autoColumnSize:!1,autoRowSize:!1,manualColumnResize:!0,manualRowResize:!0,maxColsNumber:700,outsideClickDeselects:!1}),this.buildMenu(),this.hot.addHook("afterRenderer",m);let n=o.d("_u");n&&null!==n&&""!==n?window._reportFile=n:n="classpath:template/template.ureport.xml",this.cellsMap=new Map,this.loadFile(n,t),this.hot.addHook("afterRowResize",function(e,t){let n=this.getSettings().rowHeights,i=n.concat([]),r=n.concat([]);r.splice(e,1,t),this.updateSettings({rowHeights:r,manualRowResize:r});const a=this;o.n.add({redo:function(){n=a.getSettings().rowHeights,i=n.concat([]),r.splice(e,1,t),a.updateSettings({rowHeights:r,manualRowResize:r}),o.k()},undo:function(){a.updateSettings({rowHeights:i,manualRowResize:i}),o.k()}}),o.k()}),this.hot.addHook("afterColumnResize",function(e,t){let n=this.getSettings().colWidths,i=n.concat([]),r=n.concat([]);i.splice(e,1,t),this.updateSettings({colWidths:i,manualColumnResize:i});const a=this;o.n.add({redo:function(){n=a.getSettings().colWidths,i=n.concat([]),r=n.concat([]),i.splice(e,1,t),a.updateSettings({colWidths:i,manualColumnResize:i}),o.k()},undo:function(){a.updateSettings({colWidths:r,manualColumnResize:r}),o.k()}}),o.k()})}loadFile(e,t){const n=this,i=window._server+"/designer/loadReport";$.ajax({url:i,type:"POST",data:{file:e},success:function(i){n.reportDef=i,n._buildReportData(i),t&&t.call(n,i),n.hot.render(),"classpath:template/template.ureport.xml"!==e?n.hot.context.fileInfo.setFile(e):n.hot.context.fileInfo.setFile(`${window.i18n.table.report.tip}`),i.paper.bgImage?$(".ht_master").css("background",`url(${i.paper.bgImage}) 50px 26px no-repeat`):$(".ht_master").css("background","transparent")},error:function(t){t&&t.responseText?alert("服务端错误:"+t.responseText):alert(`${window.i18n.table.report.load}${e}${window.i18n.table.report.fail}`)}})}_buildReportData(e){this.cellsMap.clear();const t=e.rows,n=[];for(let e of t){const t=e.height;n.push(o.h(t))}const i=e.columns,r=[];for(let e of i){const t=e.width;r.push(o.h(t))}const a=e.cellsMap,s=[],l=[];for(let e of t){const t=[];for(let n of i){let i=e.rowNumber+","+n.columnNumber,o=a[i];if(o){this.cellsMap.set(i,o),t.push(o.value.value||"");let r=o.rowSpan,a=o.colSpan;(r>0||a>0)&&(0===r&&(r=1),0===a&&(a=1),l.push({rowspan:r,colspan:a,row:e.rowNumber-1,col:n.columnNumber-1}))}else t.push("")}s.push(t)}this.hot.loadData(s),this.hot.updateSettings({colWidths:r,rowHeights:n,mergeCells:l,readOnly:!0})}buildMenu(){this.hot.updateSettings({contextMenu:function(){return{callback:function(r,a){const s=this;if("insert_row_above"===r)y.call(this,!0);else if("insert_row_below"===r)y.call(this);else if("insert_col_left"===r)v.call(this,!0);else if("insert_col_right"===r)v.call(this);else if("del_row"===r)(function(){const e=this.getSelected(),t=this.context;if(!e)return void Object(i.a)(`${window.i18n.table.rowTip}`);let n=e[0],r=e[2];if(r<n){let e=n;n=r,r=e}let a=this.getSettings().rowHeights,s=this.getSettings().mergeCells,l=[],d=s.concat([]);for(let e of s){l.push(Object.assign({},e));let t=e.row,i=e.rowspan,o=t+i-1,a=d.indexOf(e);if(t>=n&&o<=r)d.splice(a,1);else if(t<=n&&o>=r){let o=i-(r-n+1);0===o&&(o=1),1===o&&1===e.colspan?d.splice(a,1):d[a]={col:e.col,row:t,rowspan:o,colspan:e.colspan}}else if(t>r){let i=r-n+1;d[a]={col:e.col,row:t-i,rowspan:e.rowspan,colspan:e.colspan}}}this.updateSettings({mergeCells:[]});let c=r-n+1,u=a.concat([]),h=a.concat([]);h.splice(n,c);let f=this.countCols(),p=[];for(let e=r;e>=n;e--){for(let n=0;n<f;n++){let i=t.getCell(e,n);i&&(t.removeCell(i),p.push(i))}this.alter("remove_row",e),this.context.adjustDelRowHeaders(e)}g(this,this.context);let m=t.cellsMap,y=[];for(let e of m.values())e.rowNumber-1>=r&&y.push(e);for(let e of y)t.removeCell(e);for(let e of y)e.rowNumber=e.rowNumber-c,t.addCell(e);this.updateSettings({rowHeights:h,mergeCells:d}),Object(o.j)(this),Object(o.k)();const v=this;o.n.add({redo:function(){a=v.getSettings().rowHeights,s=v.getSettings().mergeCells,l=[],d=s.concat([]);for(let e of s){l.push(Object.assign({},e));let t=e.row,i=e.rowspan,o=t+i-1,a=d.indexOf(e);if(t>=n&&o<=r)d.splice(a,1);else if(t<=n&&o>=r){let o=i-(r-n+1);0===o&&(o=1),1===o&&1===e.colspan?d.splice(a,1):d[a]={col:e.col,row:t,rowspan:o,colspan:e.colspan}}else if(t>r){let i=r-n+1;d[a]={col:e.col,row:t-i,rowspan:e.rowspan,colspan:e.colspan}}}v.updateSettings({mergeCells:[]}),u=a.concat([]),(h=a.concat([])).splice(n,c),f=v.countCols(),p.splice(0,p.length);for(let e=r;e>=n;e--){for(let n=0;n<f;n++){let i=t.getCell(e,n);i&&(t.removeCell(i),p.push(i))}v.alter("remove_row",e),v.context.adjustDelRowHeaders(e)}g(v,v.context),y.splice(0,y.length);for(let e of m.values())e.rowNumber-1>=r&&y.push(e);for(let e of y)t.removeCell(e);for(let e of y)e.rowNumber=e.rowNumber-c,t.addCell(e);v.updateSettings({rowHeights:h,mergeCells:d}),Object(o.j)(v),Object(o.k)()},undo:function(){for(let e=r;e>=n;e--)v.alter("insert_row",e),v.context.adjustInsertRowHeaders(e);g(v,v.context),y.splice(0,y.length);for(let e of m.values())e.rowNumber-1>=n&&y.push(e);for(let e of y)t.removeCell(e);for(let e of y)e.rowNumber=e.rowNumber+c,t.addCell(e);for(let e of p)t.addCell(e);v.updateSettings({rowHeights:u,mergeCells:l}),Object(o.j)(v),Object(o.k)()}})}).call(this);else if("del_col"===r)(function(){const e=this.getSelected(),t=this.context;if(!e)return void Object(i.a)(`${window.i18n.table.colTip}`);let n=e[1],r=e[3];if(r<n){let e=n;n=r,r=e}let a=this.getSettings().colWidths,s=this.getSettings().mergeCells,l=[],d=s.concat([]);for(let e of s){l.push(Object.assign({},e));let t=e.col,i=e.colspan,o=t+i-1,a=d.indexOf(e);if(t>=n&&o<=r)d.splice(a,1);else if(t<=n&&o>=r){let o=i-(r-n+1);0===o&&(o=1),1===o&&1===e.rowspan?d.splice(a,1):d[a]={col:t,row:e.row,rowspan:e.rowspan,colspan:o}}else if(t>r){let i=r-n+1;d[a]={row:e.row,col:t-i,rowspan:e.rowspan,colspan:e.colspan}}}this.updateSettings({mergeCells:[]});let c=r-n+1,u=a.concat([]),h=a.concat([]);h.splice(n,c);let f=this.countRows(),p=[];for(let e=r;e>=n;e--){this.alter("remove_col",e);for(let n=0;n<f;n++){let i=t.getCell(n,e);i&&(t.removeCell(i),p.push(i))}}let m=t.cellsMap,g=[];for(let e of m.values())e.columnNumber-1>=r&&g.push(e);for(let e of g)t.removeCell(e);for(let e of g)e.columnNumber=e.columnNumber-c,t.addCell(e);this.updateSettings({colWidths:h,mergeCells:d}),Object(o.j)(this),Object(o.k)();const y=this;o.n.add({redo:function(){a=y.getSettings().colWidths,s=y.getSettings().mergeCells,l=[],d=s.concat([]);for(let e of s){l.push(Object.assign({},e));let t=e.col,i=e.colspan,o=t+i-1,a=d.indexOf(e);if(t>=n&&o<=r)d.splice(a,1);else if(t<=n&&o>=r){let o=i-(r-n+1);0===o&&(o=1),1===o&&1===e.rowspan?d.splice(a,1):d[a]={col:t,row:e.row,rowspan:e.rowspan,colspan:o}}else if(t>r){let i=r-n+1;d[a]={row:e.row,col:t-i,rowspan:e.rowspan,colspan:e.colspan}}}y.updateSettings({mergeCells:[]}),u=a.concat([]),(h=a.concat([])).splice(n,c),f=y.countRows(),p.splice(0,p.length);for(let e=r;e>=n;e--){for(let n=0;n<f;n++){let i=t.getCell(n,e);i&&(t.removeCell(i),p.push(i))}y.alter("remove_col",e)}g.splice(0,g.length);for(let e of m.values())e.columnNumber-1>=r&&g.push(e);for(let e of g)t.removeCell(e);for(let e of g)e.columnNumber=e.columnNumber-c,t.addCell(e);y.updateSettings({colWidths:h,mergeCells:d}),Object(o.j)(y),Object(o.k)()},undo:function(){for(let e=r;e>=n;e--)y.alter("insert_col",e);g.splice(0,g.length);for(let e of m.values())e.columnNumber-1>=n&&g.push(e);for(let e of g)t.removeCell(e);for(let e of g)e.columnNumber=e.columnNumber+c,t.addCell(e);for(let e of p)t.addCell(e);y.updateSettings({colWidths:u,mergeCells:l}),Object(o.j)(y),Object(o.k)()}})}).call(this);else if("clean_content"===r){const t=this.getSelected(),i=t[0],r=t[2],a=t[1],l=t[3];let d=n(s.context,i,r,a,l,"content");o.n.add({redo:function(){d=n(s.context,i,r,a,l,"content")},undo:function(){e(s.context,i,r,a,l,d,"content")}})}else if("clean_style"===r){const t=this.getSelected(),i=t[0],r=t[2],a=t[1],l=t[3];let d=n(s.context,i,r,a,l,"style");o.n.add({redo:function(){d=n(s.context,i,r,a,l,"style")},undo:function(){e(s.context,i,r,a,l,d,"style")}})}else if("clean"===r){const t=this.getSelected(),i=t[0],r=t[2],a=t[1],l=t[3];let d=n(s.context,i,r,a,l,"all");o.n.add({redo:function(){d=n(s.context,i,r,a,l,"all")},undo:function(){e(s.context,i,r,a,l,d,"all")}})}else if("repeat_row_header"===r){const e=this.getSelected(),t=e[0],n=e[2],i=this.context;for(let e=t;e<=n;e++)i.addRowHeader(e,"headerrepeat");g(this,i),Object(o.k)()}else if("title_row"===r){const e=this.getSelected(),t=e[0],n=e[2],i=this.context;for(let e=t;e<=n;e++)i.addRowHeader(e,"title");g(this,i),Object(o.k)()}else if("repeat_row_footer"===r){const e=this.getSelected(),t=e[0],n=e[2],i=this.context;for(let e=t;e<=n;e++)i.addRowHeader(e,"footerrepeat");g(this,i),Object(o.k)()}else if("summary_row"===r){const e=this.getSelected(),t=e[0],n=e[2],i=this.context;for(let e=t;e<=n;e++)i.addRowHeader(e,"summary");g(this,i),Object(o.k)()}else if("repeat_cancel"===r){const e=this.getSelected(),t=e[0],n=e[2],i=this.context;for(let e=t;e<=n;e++)i.adjustDelRowHeaders(e);g(this,i),Object(o.k)()}else if("row_height"===r){const e=this.getSelected()[0],t=this.getRowHeight(e);(new A).show(function(t){const n=s.getSettings().rowHeights;n.splice(e,1,t),s.updateSettings({rowHeights:n,manualRowResize:n})},t,!1),Object(o.k)()}else if("col_width"===r){const e=this.getSelected()[1],t=this.getColWidth(e);(new A).show(function(t){const n=s.getSettings().colWidths;n.splice(e,1,t),s.updateSettings({colWidths:n,manualColumnResize:n})},t,!0),Object(o.k)()}else if("copy_style"===r){const e=this.getSelected(),t=e[0],n=(e[2],e[1]);e[3];let i=s.context.getCell(t,n);if(!i)return void alert("请先选中目标单元格!");window.__copy_cell_style__=i.cellStyle}else if("paste_style"===r){if(!window.__copy_cell_style__)return void alert("请先复制目标单元格样式");const e=this.getSelected(),n=e[0],i=e[2],r=e[1],a=e[3];let l=t(s.context,n,i,r,a);o.n.add({redo:function(){l=t(s.context,n,i,r,a)},undo:function(){!function(e,t,n,i,o,r){window.__copy_cell_style__,new Map;let a=e.hot;for(let a=t;a<=n;a++)for(let t=i;t<=o;t++){let n=e.getCell(a,t);if(!n)continue;let i=n.rowNumber+","+n.columnNumber;const o=r.get(i);o&&(n.cellStyle=o)}w.a.hooks.run(a,"afterSelectionEnd",t,i,n,o),a.render()}(s.context,n,i,r,a,l)}})}},items:{insert_row_above:{name:`<i class="ureport ureport-insertrow" style="color: #3344d3;font-size: 13px"></i> ${window.i18n.table.contextMenu.insertRowUp}`},insert_row_below:{name:`<i class="ureport ureport-insertrow" style="color: #3344d3;font-size: 13px"></i> ${window.i18n.table.contextMenu.insertRowDown}`},insert_col_left:{name:`<i class="ureport ureport-insert-column" style="color: #008ed3;font-size: 13px"></i> ${window.i18n.table.contextMenu.insertColBefore}`},insert_col_right:{name:`<i class="ureport ureport-insert-column" style="color: #008ed3;font-size: 13px"></i> ${window.i18n.table.contextMenu.insertColAfter}`},del_row:{name:`<i class="ureport ureport-deleterow" style="color: #d30a16;font-size: 13px"></i> ${window.i18n.table.contextMenu.delRow}`,disabled:r},del_col:{name:`<i class="ureport ureport-deletecolumn" style="color: #d30a16;font-size: 13px"></i> ${window.i18n.table.contextMenu.delCol}`,disabled:a},row_height:{name:`<i class="ureport ureport-height" style="color: #d30a16;font-size: 13px;font-weight:bold"></i> ${window.i18n.table.contextMenu.rowHeight}`,disabled:r},col_width:{name:`<i class="ureport ureport-width" style="color: #d30a16;font-size: 13px;font-weight:bold"></i> ${window.i18n.table.contextMenu.colWidth}`,disabled:a},title_row:{name:`<i class="ureport ureport-title" style="color: #9C27B0;font-size: 13px"></i> ${window.i18n.table.contextMenu.title}`,disabled:r},repeat_row_header:{name:`<i class="ureport ureport-header-repeat" style="color: #9C27B0;font-size: 13px"></i> ${window.i18n.table.contextMenu.repeatHeader}`,disabled:r},repeat_row_footer:{name:`<i class="ureport ureport-footer-repeat" style="color: #9C27B0;font-size: 13px"></i> ${window.i18n.table.contextMenu.repeatFooter}`,disabled:r},summary_row:{name:`<i class="ureport ureport-summary" style="color: #9C27B0;font-size: 13px"></i> ${window.i18n.table.contextMenu.summary}`,disabled:r},repeat_cancel:{name:`<i class="glyphicon glyphicon-remove-circle" style="color: #d30e00;font-size: 13px"></i> ${window.i18n.table.contextMenu.cancel}`,disabled:r},copy_style:{name:`<i class="ureport ureport-copy" style="color: #d30e00;font-size: 13px"></i> ${window.i18n.table.contextMenu.copy}`,disabled:function(){return!this.getSelected()}},paste_style:{name:`<i class="ureport ureport-paste" style="color: #d30e00;font-size: 13px"></i> ${window.i18n.table.contextMenu.paste}`,disabled:function(){return!this.getSelected()||!window.__copy_cell_style__}},clean_content:{name:`<i class="ureport ureport-clean-content" style="color: #007471;font-size: 13px"></i> ${window.i18n.table.contextMenu.clearContent}`,disabled:s},clean_style:{name:`<i class="ureport ureport-clean-style" style="color: #00746f;font-size: 13px"></i> ${window.i18n.table.contextMenu.clearStyle}`,disabled:s},clean:{name:`<i class="ureport ureport-clean" style="color: #d30e00;font-size: 13px"></i> ${window.i18n.table.contextMenu.clearAll}`,disabled:s}}};function e(e,t,n,i,o,r,a){e.cellsMap;let s=e.hot;for(let l=t;l<=n;l++)for(let t=i;t<=o;t++){let n=e.getCell(l,t);if(!n)continue;let i=n.rowNumber+","+n.columnNumber;if("content"===a){let e=r.get(i);if(!e)return void alert(`${window.i18n.table.contextMenu.cancelConetntFail}`);n.value=e;let o=n.value,a=o.type,d=o.value;"dataset"===a&&(d=o.datasetName+"."+o.aggregate+"("+o.property+")"),s.setDataAtCell(l,t,d)}else if("style"===a){let e=r.get(i);if(!e)return void alert(`${window.i18n.table.contextMenu.cancelStyleFail}`);n.cellStyle=e}else if("all"===a){e.removeCell(n);let o=r.get(i);if(!o)return void alert(`${window.i18n.table.contextMenu.cancelClearFail}`);e.addCell(o);let a=o.value,d=a.type,c=a.value;"dataset"===d&&(c=a.datasetName+"."+a.aggregate+"("+a.property+")"),s.setDataAtCell(l,t,c)}}w.a.hooks.run(s,"afterSelectionEnd",t,i,n,o),s.render()}function t(e,t,n,i,o){const r=window.__copy_cell_style__;let a=new Map,s=e.hot;for(let s=t;s<=n;s++)for(let t=i;t<=o;t++){let n=e.getCell(s,t);if(!n)continue;let i=n.rowNumber+","+n.columnNumber;n.cellStyle||(n.cellStyle={});const o=JSON.parse(JSON.stringify(n.cellStyle));a.set(i,o),n.cellStyle.fontSize=r.fontSize,n.cellStyle.forecolor=r.forecolor,n.cellStyle.fontFamily=r.fontFamily,n.cellStyle.valign=r.valign,n.cellStyle.align=r.align,n.cellStyle.bgcolor=r.bgcolor,n.cellStyle.bold=r.bold,n.cellStyle.italic=r.italic,n.cellStyle.underline=r.underline}return w.a.hooks.run(s,"afterSelectionEnd",t,i,n,o),s.render(),a}function n(e,t,n,i,o,r){let a=new Map,s=e.hot;for(let l=t;l<=n;l++)for(let t=i;t<=o;t++){let n=e.getCell(l,t);if(!n)continue;n.cellStyle.format=null;let i=n.rowNumber+","+n.columnNumber;if("content"===r)a.set(i,n.value),n.value={type:"simple",value:""},n.expand="None",n.conditionPropertyItems=null,s.setDataAtCell(l,t,"");else if("style"===r)a.set(i,n.cellStyle),n.cellStyle={fontSize:9,forecolor:"0,0,0",fontFamily:"宋体",align:"center",valign:"middle"};else if("all"===r){e.removeCell(n),a.set(i,n);let o={rowNumber:n.rowNumber,columnNumber:n.columnNumber,expand:"None",value:{type:"simple",value:""},cellStyle:{fontSize:9,forecolor:"0,0,0",fontFamily:"宋体",align:"center",valign:"middle"}};e.addCell(o),s.setDataAtCell(l,t,"")}}return w.a.hooks.run(s,"afterSelectionEnd",t,i,n,o),s.render(),a}function r(){const e=this.getSelected();if(!e)return!0;const t=e[0],n=e[2];return Math.abs(t-n)+1>=this.countRows()}function a(){const e=this.getSelected();if(!e)return!0;const t=e[1],n=e[3];return Math.abs(t-n)+1>=this.countCols()}function s(){const e=this.getSelected();return!e||0===e.length}}()})}bindSelectionEvent(e){const t=this;w.a.hooks.add("afterSelectionEnd",function(n,i,o,r){e.call(t,n,i,o,r)},this.hot)}}(i.get(0),function(){n.context=new class{constructor(e){this.reportTable=e,this.reportDef=e.reportDef,this.hot=e.hot,this.hot.context=this,this._initLetters(),this.cellsMap=e.cellsMap,this.rowHeaders=[]}_initLetters(){const e=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];this.LETTERS=e.concat([]);for(let t=0;t<e.length;t++){let n=e[t];for(let t=0;t<e.length;t++)this.LETTERS.push(n+e[t])}}adjustInsertRowHeaders(e){for(let t of this.rowHeaders)t.rowNumber>=e&&(t.rowNumber+=1)}adjustDelRowHeaders(e){let t=null;for(let n of this.rowHeaders)if(n.rowNumber===e){t=n;break}if(t){const e=this.rowHeaders.indexOf(t);this.rowHeaders.splice(e,1)}}addRowHeader(e,t){let n=null;for(let t of this.rowHeaders)if(t.rowNumber===e){n=t;break}if(n)n.band=t;else{const n={band:t,rowNumber:e};this.rowHeaders.push(n)}}getCellName(e,t){return null!=e?this.LETTERS[t]+(e+1):this.LETTERS[t]}getCell(e,t){let n=e+1+","+(t+1);return this.cellsMap.get(n)}addCell(e){let t=e.rowNumber+","+e.columnNumber;this.cellsMap.set(t,e)}removeCell(e){let t=e.rowNumber+","+e.columnNumber;this.cellsMap.delete(t)}deleteCell(e,t){let n=e+","+t;this.cellsMap.delete(n)}getSelectedCells(){const e=this.hot.getSelected();if(!e)return null;const t=e[0],n=e[1],i=e[2],o=e[3],r=[];for(let e=t;e<=i;e++)for(let t=n;t<=o;t++){const n=this.hot.getCell(e,t,!0);-1===r.indexOf(n)&&r.push(n)}return r}}(this),n.context.fileInfo=r,n.buildTools(n.context),n.datasourcePanel=new class{constructor(e){this.context=e,e.datasourcePanel=this;const t=e.reportDef;t.datasources||(t.datasources=[]),this.datasources=t.datasources}buildPanel(){const e=$('<div style="width:100%;"></div>'),t=$('<div class="btn-group ud-toolbar"></div>');e.append(t);const n=$(`<button class="btn btn-default" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 8px;" title="${window.i18n.property.datasource.title}">\n <i class="ureport ureport-database"></i>\n </button>`);t.append(n),this.treeContainer=$('<div style="height: 500px;overflow: auto">'),e.append(this.treeContainer),this.datasourceDialog=new le(this.datasources);const i=this;n.click(function(){i.datasourceDialog.show(function(e,t,n,o,r){const a={name:e,username:t,password:n,driver:o,url:r},s=new ie(i.treeContainer,i.datasources,a,i.datasourceDialog,i.context);i.datasources.push(s)})});const o=$(`<button class="btn btn-default" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 8px;" title="${window.i18n.property.datasource.addBean}">\n <i class="ureport ureport-leaf"></i>\n </button>`);t.append(o),this.springDialog=new de(this.datasources),o.click(function(){i.springDialog.show(function(e,t){const n={name:e,beanId:t},o=new ae(i.treeContainer,i.datasources,n,i.springDialog,i.context);i.datasources.push(o)})});const r=$(`<button class="btn btn-default" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 8px;" title="${window.i18n.property.datasource.addBuildin}">\n <i class="ureport ureport-shareconnection"></i>\n </button>`);t.append(r);const a=new ce(this.datasources);return r.click(function(){a.show(function(e){const t={name:e},n=new se(i.treeContainer,i.datasources,t,i.context);i.datasources.push(n)})}),this.buildDatasources(),e}buildDatasources(){this.treeContainer.empty();for(let e of this.datasources)"jdbc"===e.type?new ie(this.treeContainer,this.datasources,e,this.datasourceDialog,this.context):"spring"===e.type?new ae(this.treeContainer,this.datasources,e,this.springDialog,this.context):"buildin"===e.type&&new se(this.treeContainer,this.datasources,e,this.context)}}(n.context),n.propertyPanel=new Fe(n.context),n.buildPropertyPanel(),this.bindSelectionEvent(function(e,t,i,o){n.propertyPanel.refresh(e,t,i,o);for(let r of n.tools)r.refresh&&r.refresh(e,t,i,o)}),n.printLine=new class{constructor(e){e.printLine=this,this.context=e;const t=$(window).height()-90,n=$(`<hr title="打印线" class="ureport-right-hr-for-print" style="height: ${t}px;width:0px;border-left:dashed 1px #999999;position: absolute;left: 300pt;top: 35px;z-index: 10">`);$(document.body).append(n),this.refresh()}refresh(){const e=this.context.reportDef.paper,t=e.orientation;let n=e.width;"landscape"===t&&(n=e.height),n=n-e.leftMargin-e.rightMargin+38,$(".ureport-right-hr-for-print").css("left",n+"pt")}}(n.context);const e=n.context.reportDef.rows;for(let t of e){const e=t.band;e&&n.context.addRowHeader(t.rowNumber-1,e)}g(n.context.hot,n.context)})}buildPropertyPanel(){const e=$('<div class="ud-property-panel"/>');this.container.prepend(e);const t=$(`<ul class="nav nav-tabs">\n <li class="active">\n <a href="#_prop_container" data-toggle="tab" id="__prop_tab_link">${window.i18n.panel.property}</a>\n </li>\n <li>\n <a href="#_datasource_container" data-toggle="tab">${window.i18n.panel.datasource}</a>\n </li>\n </ul>`),n=$(`\n <i class="glyphicon glyphicon-circle-arrow-down"\n style="color:#9E9E9E;font-size: 16px;vertical-align: middle;cursor: pointer;float: right;margin: 10px 10px 0px 0px;"\n title="${window.i18n.panel.tip}">\n </i>\n `);t.append(n),e.append(t),t.mousedown(function(e){e.preventDefault()});const i=$('<div class="tab-content" style="min-height: 300px"/>'),o=$('<div id="_prop_container" class="tab-pane fade in active"></div>'),r=$('<div id="_datasource_container" class="tab-pane fade"></div>');i.append(o),i.append(r),o.append(this.propertyPanel.buildPanel()),r.append(this.datasourcePanel.buildPanel()),e.append(i),e.draggable(),n.click(function(){i.toggle();const e=i.css("display");e&&"none"!==e?(n.removeClass("glyphicon-circle-arrow-left"),n.addClass("glyphicon-circle-arrow-down")):(n.removeClass("glyphicon-circle-arrow-down"),n.addClass("glyphicon-circle-arrow-left"))})}buildTools(e){const t=$('<div class="btn-group ud-toolbar top-toolbar"></div>');this.container.prepend(t),this.tools=[],this.tools.push(new class extends _{execute(){}buildButton(){const e=$('<div class="btn-group"></div>'),t=$(`<button type="button" class="btn btn-default dropdown-toggle" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px;" data-toggle="dropdown" title="${window.i18n.tools.preview.preview}">\n <i class="ureport ureport-preview" style="color: #0e90d2;"></i>\n <span class="caret"></span>\n </button>`),n=$('<ul class="dropdown-menu" role="menu"></ul>'),i=$(`<li>\n <a href="###">\n <i class="ureport ureport-preview" style="color: #0e90d2;"></i> ${window.i18n.tools.preview.view}\n </a>\n </li>`);n.append(i);const o=this;i.click(function(){o.doPreview()});const r=$(`<li>\n <a href="###">\n <i class="glyphicon glyphicon-search" style="color: #0e90d2;"></i> ${window.i18n.tools.preview.pagingPreview}\n </a>\n </li>`);return n.append(r),r.click(function(){o.doPreview(!0)}),e.append(t),e.append(n),e}doPreview(e){let t=window._server+"/preview?_u=p";e&&(t+="&_i=1&_r=1");const n=Object(o.m)(this.context);$.ajax({url:window._server+"/designer/savePreviewData",type:"POST",data:{content:n},success:function(){window.open(t,"_blank").focus()},error:function(){Object(i.a)(`${window.i18n.tools.preview.previewFail}`)}})}getTitle(){return`${window.i18n.tools.preview.preview}`}getIcon(){return'<i class="ureport ureport-preview" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{execute(){}buildButton(){const e=$('<div class="btn-group"></div>'),t=$(`<button type="button" class="btn btn-default dropdown-toggle" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 8px;" data-toggle="dropdown" title="${window.i18n.tools.save.save}">\n <i class="ureport ureport-save" style="color: #0e90d2;"></i>\n <span class="caret"></span>\n </button>`),n=$('<ul class="dropdown-menu" role="menu"></ul>'),r=$(`<li id="__save_btn" class="disabled">\n <a href="###">\n <i class="ureport ureport-save" style="color: #0e90d2;"></i> ${window.i18n.tools.save.save}\n </a>\n </li>`);n.append(r);const a=new M,s=this;r.click(function(){const e=Object(o.m)(s.context);window._reportFile?$.ajax({url:window._server+"/designer/saveReportFile",data:{content:e,file:window._reportFile},type:"POST",success:function(){Object(i.a)(`${window.i18n.tools.save.successSave}`),Object(o.i)()},error:function(e){e&&e.responseText?Object(i.a)("服务端错误:"+e.responseText):Object(i.a)(`${window.i18n.tools.save.failSave}`)}}):a.show(e,s.context)});const l=$(`<li>\n <a href="###">\n <i class="glyphicon glyphicon-floppy-disk" style="color: #0e90d2;font-size: 16px"></i> ${window.i18n.tools.save.saveAs}\n </a>\n </li>`);return n.append(l),l.click(function(){const e=Object(o.m)(s.context);a.show(e,s.context)}),e.append(t),e.append(n),e}getTitle(){return`${window.i18n.tools.save.save}`}getIcon(){return'<i class="ureport ureport-save" style="color: #0e90d2"></i>'}}(e)),this.tools.push(new class extends _{constructor(e){super(e),this.openDialog=new x(e)}execute(){this.openDialog.show()}getTitle(){return`${window.i18n.openFile}`}getIcon(){return'<i class="ureport ureport-open" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{constructor(){super(),this.dialog=new P}execute(){this.dialog.show()}getTitle(){return`${window.i18n.importExcel}`}getIcon(){return'<i class="ureport ureport-import" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{execute(){o.n.hasRedo()?o.n.redo():Object(i.a)(`${window.i18n.tools.redo.noRedo}`)}getTitle(){return`${window.i18n.tools.redo.redo}`}getIcon(){return'<i class="ureport ureport-redo" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{execute(){o.n.hasUndo()?o.n.undo():Object(i.a)(`${window.i18n.tools.undo.noUndo}`)}getTitle(){return`${window.i18n.tools.undo.undo}`}getIcon(){return'<i class="ureport ureport-undo" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{execute(){const e=this.context.hot,t=e.getSelected();if(!t)return void Object(i.a)(`${window.i18n.selectTargetCellFirst}`);let n=e.getSettings().mergeCells||[],r=n.concat([]),a=t[0],s=t[1],l=t[2],d=t[3],c=l;a>l&&(l=a,a=c),c=d,s>d&&(d=s,s=c);const u=this;H(a,s,l,d,e,this.context),o.n.add({redo:function(){n=e.getSettings().mergeCells||[],r=n.concat([]),H(a,s,l,d,e,u.context),Object(o.k)()},undo:function(){e.updateSettings({mergeCells:r}),Object(o.k)()}}),Object(o.k)()}getTitle(){return`${window.i18n.mergeSplitCells}`}getIcon(){return'<i class="ureport ureport-merge" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{execute(){const e=this.context.getSelectedCells();if(e)for(const t of e)t.cellDef.cellStyle.align="left",$(t).css("text-align","left");else Object(i.a)(`${window.i18n.selectTargetCellFirst}`)}buildButton(){const e=this;this.align="left";const t=$('<div class="btn-group"></div>'),n=$(`<button type="button" class="btn btn-default"\n style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 1px 6px 5px;color: #0e90d2;font-size: 12pt;" title="${window.i18n.tools.alignLeft.upDownAlign}">\n <i class="ureport ureport-alignleft" id="align_button" style="color: #0e90d2;"></i>\n </button>`);t.append(n);const r=$(`<button type="button" class="btn btn-default dropdown-toggle" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px;" data-toggle="dropdown" title="${window.i18n.tools.alignLeft.leftRightAlign}">\n <span class="caret"></span>\n <span class="sr-only">${window.i18n.tools.alignLeft.changeMenu}</span>\n </button>`),a=$('<ul class="dropdown-menu" role="menu"></ul>'),s=$(`<li>\n <a href="###">\n <i class="ureport ureport-alignleft" style="color: #0e90d2;"></i> ${window.i18n.tools.alignLeft.leftAlign}\n </a>\n </li>`);a.append(s),n.click(function(){const t=e.context.hot.getSelected();if(!t||0===t.length)return void Object(i.a)(`${window.i18n.selectTargetCellFirst}`);const n=e.align;let r=e._buildCellAlign(e.context,e.align);o.n.add({undo:function(){r=e._buildCellAlign(e.context,null,r),Object(o.k)()},redo:function(){r=e._buildCellAlign(e.context,n),Object(o.k)()}}),Object(o.k)()}),s.click(function(){const t=e.context.hot.getSelected();if(!t||0===t.length)return void Object(i.a)(`${window.i18n.selectTargetCellFirst}`);let n=e._buildCellAlign(e.context,"left");o.n.add({undo:function(){n=e._buildCellAlign(e.context,null,n),Object(o.k)()},redo:function(){n=e._buildCellAlign(e.context,"left"),Object(o.k)()}}),Object(o.k)()});const l=$(`<li>\n <a href="###">\n <i class="ureport ureport-aligncenter" style="color: #0e90d2;"></i> ${window.i18n.tools.alignLeft.centerAlign}\n </a>\n </li>`);l.click(function(){const t=e.context.hot.getSelected();if(!t||0===t.length)return void Object(i.a)(`${window.i18n.selectTargetCellFirst}`);let n=e._buildCellAlign(e.context,"center");o.n.add({undo:function(){n=e._buildCellAlign(e.context,null,n),Object(o.k)()},redo:function(){n=e._buildCellAlign(e.context,"center"),Object(o.k)()}}),Object(o.k)()}),a.append(l);const d=$(`<li>\n <a href="###">\n <i class="ureport ureport-alignright" style="color: #0e90d2;"></i> ${window.i18n.tools.alignLeft.rightAlign}\n </a>\n </li>`);return d.click(function(){const t=e.context.hot.getSelected();if(!t||0===t.length)return void Object(i.a)(`${window.i18n.selectTargetCellFirst}`);let n=e._buildCellAlign(e.context,"right");o.n.add({undo:function(){n=e._buildCellAlign(e.context,null,n),Object(o.k)()},redo:function(){n=e._buildCellAlign(e.context,"right"),Object(o.k)()}}),Object(o.k)()}),a.append(d),t.append(r),t.append(a),t}refresh(e,t,n,i){let o=n;e>n&&(n=e,e=o),o=i,t>i&&(i=t,t=o);for(let o=e;o<=n;o++){for(let e=t;e<=i;e++){let t=this.context.getCell(o,e);if(!t)continue;const n=t.cellStyle.align||"left";$("#align_button").removeClass().addClass("ureport ureport-align"+n),this.align=n;break}break}}_buildCellAlign(e,t,n){const i={},o=e.hot.getSelected();let r=o[0],a=o[1],s=o[2],l=o[3],d=s;r>s&&(s=r,r=d),d=l,a>l&&(l=a,a=d);for(let o=r;o<=s;o++)for(let r=a;r<=l;r++){let a=e.getCell(o,r),s=e.hot.getCell(o,r);if(!a)continue;const l=a.cellStyle;i[o+","+r]=l.align||"",n&&(t=n[o+","+r]),$(s).css("text-align",t),l.align=t,$("#align_button").removeClass().addClass("ureport ureport-align"+t),this.align=t}return i}getTitle(){return`${window.i18n.tools.alignLeft.leftRightAlign}`}getIcon(){return'<i class="ureport ureport-alignleft" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{execute(){}buildButton(){const e=this;this.align="middle";const t=$('<div class="btn-group"></div>'),n=$(`<button type="button" class="btn btn-default"\n style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 1px 6px 5px;color: #0e90d2;font-size: 12pt;" title="${window.i18n.tools.alignTop.upDownAlign}">\n <i class="ureport ureport-alignmiddle" id="valign_button" style="color: #0e90d2;"></i>\n </button>`);t.append(n);const r=$(`<button type="button" class="btn btn-default dropdown-toggle" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px" data-toggle="dropdown" title="${window.i18n.tools.alignTop.upDownAlign}">\n <span class="caret"></span>\n <span class="sr-only">${window.i18n.tools.alignTop.changeMenu}</span>\n </button>`);n.click(function(){const t=e.context.hot.getSelected();if(!t||0===t.length)return void Object(i.a)(`${window.i18n.selectTargetCellFirst}`);const n=e.align;let r=e._buildCellAlign(e.context,e.align);o.n.add({undo:function(){r=e._buildCellAlign(e.context,null,r),Object(o.k)()},redo:function(){r=e._buildCellAlign(e.context,n),Object(o.k)()}}),Object(o.k)()});const a=$('<ul class="dropdown-menu" role="menu"></ul>'),s=$(`<li>\n <a href="###">\n <i class="ureport ureport-aligntop" style="color: #0e90d2;"></i> ${window.i18n.tools.alignTop.topAlign}\n </a>\n </li>`);s.click(function(){const t=e.context.hot.getSelected();if(!t||0===t.length)return void Object(i.a)(`${window.i18n.selectTargetCellFirst}`);let n=e._buildCellAlign(e.context,"top");o.n.add({undo:function(){n=e._buildCellAlign(e.context,null,n),Object(o.k)()},redo:function(){n=e._buildCellAlign(e.context,"top"),Object(o.k)()}}),Object(o.k)()}),a.append(s);const l=$(`<li>\n <a href="###">\n <i class="ureport ureport-alignmiddle" style="color: #0e90d2;"></i> ${window.i18n.tools.alignTop.middleAlign}\n </a>\n </li>`);l.click(function(){const t=e.context.hot.getSelected();if(!t||0===t.length)return void Object(i.a)(`${window.i18n.selectTargetCellFirst}`);let n=e._buildCellAlign(e.context,"middle");o.n.add({undo:function(){n=e._buildCellAlign(e.context,null,n),Object(o.k)()},redo:function(){n=e._buildCellAlign(e.context,"middle"),Object(o.k)()}}),Object(o.k)()}),a.append(l);const d=$(`<li>\n <a href="###">\n <i class="ureport ureport-alignbottom" style="color: #0e90d2;"></i> ${window.i18n.tools.alignTop.bottomAlign}\n </a>\n </li>`);return d.click(function(){const t=e.context.hot.getSelected();if(!t||0===t.length)return void Object(i.a)(`${window.i18n.selectTargetCellFirst}`);let n=e._buildCellAlign(e.context,"bottom");o.n.add({undo:function(){n=e._buildCellAlign(e.context,null,n),Object(o.k)()},redo:function(){n=e._buildCellAlign(e.context,"bottom"),Object(o.k)()}}),Object(o.k)()}),a.append(d),t.append(r),t.append(a),t}refresh(e,t,n,i){let o=n;e>n&&(n=e,e=o),o=i,t>i&&(i=t,t=o);for(let o=e;o<=n;o++){for(let e=t;e<=i;e++){let t=this.context.getCell(o,e);if(!t)continue;const n=t.cellStyle.valign||"top";$("#valign_button").removeClass().addClass("ureport ureport-align"+n),this.align=n;break}break}}_buildCellAlign(e,t,n){const i={},o=e.hot.getSelected();let r=o[0],a=o[1],s=o[2],l=o[3],d=s;r>s&&(s=r,r=d),d=l,a>l&&(l=a,a=d);for(let o=r;o<=s;o++)for(let r=a;r<=l;r++){let a=e.getCell(o,r),s=e.hot.getCell(o,r);if(!a)continue;const l=a.cellStyle;i[o+","+r]=l.valign||"",n&&(t=n[o+","+r]),$(s).css("vertical-align",t),l.valign=t,$("#valign_button").removeClass().addClass("ureport ureport-align"+t),this.align=t}return i}getTitle(){return`${window.i18n.tools.alignTop.topAlign}`}getIcon(){return'<i class="ureport ureport-aligntop" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{execute(){}buildButton(){const e=this,t=$('<div class="btn-group"></div>'),n=$(`<button type="button" class="btn btn-default dropdown-toggle" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px;" data-toggle="dropdown" title="${window.i18n.tools.border.borderLine}">\n <i class="ureport ureport-no-border" style="color: #0e90d2;"></i>\n <span class="caret"></span>\n </button>`),r=$('<ul class="dropdown-menu" role="menu"></ul>'),a=$(`<li>\n <a href="###">\n <i class="ureport ureport-full-border" style="color: #0e90d2;"></i> ${window.i18n.tools.border.allLine}\n </a>\n </li>`);a.click(function(){if(!e.checkSelection())return;const t=e.context.hot,n=t.getSelected();let i=n[0],r=n[1],a=n[2],s=n[3],l=a;i>a&&(a=i,i=l),l=s,r>s&&(s=r,r=l);let d={width:1,color:"0,0,0",style:"solid"},c=L(e.context,i,r,a,s,d);t.render(),o.n.add({redo:function(){c=L(e.context,i,r,a,s,d),t.render(),Object(o.k)()},undo:function(){E(e.context,i,r,a,s,c),Object(o.k)()}}),Object(o.k)()}),r.append(a);const s=$(`<li>\n <a href="###">\n <i class="ureport ureport-no-border" style="color: #0e90d2;"></i> ${window.i18n.tools.border.noBorder}\n </a>\n </li>`);s.click(function(){if(!e.checkSelection())return;const t=e.context.hot,n=t.getSelected();let i=n[0],r=n[1],a=n[2],s=n[3],l=a;i>a&&(a=i,i=l),l=s,r>s&&(s=r,r=l);let d=L(e.context,i,r,a,s,"");t.render(),o.n.add({redo:function(){d=L(e.context,i,r,a,s,""),t.render(),Object(o.k)()},undo:function(){E(e.context,i,r,a,s,d),Object(o.k)()}}),Object(o.k)()}),r.append(s);const l=$(`<li>\n <a href="###">\n <i class="ureport ureport-left-border" style="color: #0e90d2;"></i> ${window.i18n.tools.border.leftBorder}\n </a>\n </li>`);l.click(function(){if(!e.checkSelection())return;const t=e.context.hot,n=t.getSelected();let i=n[0],r=n[1],a=n[2],s=n[3],l=a;i>a&&(a=i,i=l),l=s,r>s&&(s=r,r=l);let d={width:1,color:"0,0,0",style:"solid"},c=L(e.context,i,r,a,s,d,"left");t.render(),o.n.add({redo:function(){c=L(e.context,i,r,a,s,d,"left"),t.render(),Object(o.k)()},undo:function(){E(e.context,i,r,a,s,c),Object(o.k)()}}),Object(o.k)()}),r.append(l);const d=$(`<li>\n <a href="###">\n <i class="ureport ureport-right-border" style="color: #0e90d2;"></i> ${window.i18n.tools.border.rightBorder}\n </a>\n </li>`);d.click(function(){if(!e.checkSelection())return;const t=e.context.hot,n=t.getSelected();let i=n[0],r=n[1],a=n[2],s=n[3],l=a;i>a&&(a=i,i=l),l=s,r>s&&(s=r,r=l);let d={width:1,color:"0,0,0",style:"solid"},c=L(e.context,i,r,a,s,d,"right");t.render(),o.n.add({redo:function(){c=L(e.context,i,r,a,s,d,"right"),t.render(),Object(o.k)()},undo:function(){E(e.context,i,r,a,s,c),Object(o.k)()}}),Object(o.k)()}),r.append(d);const c=$(`<li>\n <a href="###">\n <i class="ureport ureport-top-border" style="color: #0e90d2;"></i> ${window.i18n.tools.border.topBorder}\n </a>\n </li>`);c.click(function(){if(!e.checkSelection())return;const t=e.context.hot,n=t.getSelected();let i=n[0],r=n[1],a=n[2],s=n[3],l=a;i>a&&(a=i,i=l),l=s,r>s&&(s=r,r=l);let d={width:1,color:"0,0,0",style:"solid"},c=L(e.context,i,r,a,s,d,"top");t.render(),o.n.add({redo:function(){c=L(e.context,i,r,a,s,d,"top"),t.render(),Object(o.k)()},undo:function(){E(e.context,i,r,a,s,c),Object(o.k)()}}),Object(o.k)()}),r.append(c);const u=$(`<li>\n <a href="###">\n <i class="ureport ureport-bottom-border" style="color: #0e90d2;"></i> ${window.i18n.tools.border.bottomBorder}\n </a>\n </li>`);u.click(function(){if(!e.checkSelection())return;const t=e.context.hot,n=t.getSelected();let i=n[0],r=n[1],a=n[2],s=n[3],l=a;i>a&&(a=i,i=l),l=s,r>s&&(s=r,r=l);let d={width:1,color:"0,0,0",style:"solid"},c=L(e.context,i,r,a,s,d,"bottom");t.render(),o.n.add({redo:function(){c=L(e.context,i,r,a,s,d,"bottom"),t.render(),Object(o.k)()},undo:function(){E(e.context,i,r,a,s,c),Object(o.k)()}}),Object(o.k)()}),r.append(u),r.append('<li class="divider"></li>');const h=$(`<li>\n <a href="###">\n <i class="ureport ureport-full-border" style="color: #0e90d2;"></i> ${window.i18n.tools.border.customBorder}\n </a>\n </li>`);let f=null;const p={width:1,style:"solid",color:"0,0,0"},m={width:1,style:"solid",color:"0,0,0"},g={width:1,style:"solid",color:"0,0,0"},y={width:1,style:"solid",color:"0,0,0"};return h.click(function(){e.checkSelection()&&(f=function(e,t,n,r,a,s){if(!t){t=$("<div></div>");const e=$("<ul class='nav nav-tabs'></ul>");t.append(e);const i=$(`<li class='active'><a data-toggle='tab' href='#topBorderConfig'>${window.i18n.tools.border.up}</a></li>`);e.append(i);const o=$(`<li><a data-toggle='tab' href='#bottomBorderConfig'>${window.i18n.tools.border.down}</a></li>`);e.append(o);const l=$(`<li><a data-toggle='tab' href='#leftBorderConfig'>${window.i18n.tools.border.left}</a></li>`);e.append(l);const d=$(`<li><a data-toggle='tab' href='#rightBorderConfig'>${window.i18n.tools.border.right}</a></li>`);e.append(d);const c=$("<div class='tab-content'></div>"),u=$('<div class="tab-pane fade in active" id="topBorderConfig"></div>');c.append(u),C(u,n);const h=$('<div class="tab-pane fade" id="bottomBorderConfig"></div>');c.append(h),C(h,r);const f=$('<div class="tab-pane fade" id="leftBorderConfig"></div>');c.append(f),C(f,a);const p=$('<div class="tab-pane fade" id="rightBorderConfig"></div>');c.append(p),C(p,s),t.append(c)}return Object(i.c)(`${window.i18n.tools.border.customBorderLine}`,t,function(){const t=e.hot.getSelected(),i=t[0],l=t[1],d=t[2],c=t[3];let u=k(e,i,l,d,c,a,s,n,r);o.n.add({redo:function(){u=k(e,i,l,d,c,a,s,n,r)},undo:function(){E(e,i,l,d,c,u)}}),Object(o.k)()}),t.parents(".modal-content").css({width:"280px"}),t}(e.context,f,p,m,g,y))}),r.append(h),t.append(n),t.append(r),t}}(e)),this.tools.push(new class extends _{execute(){}buildButton(){const e=this;this.fontFamily="宋体";const t=$('<div class="btn-group"></div>');this.nameButton=$(`<button type="button" class="btn btn-default"\n style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 1px 6px 5px;color: #0e90d2;" title="${window.i18n.tools.font.font}">\n 宋体\n </button>`),t.append(this.nameButton);const n=$(`<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px;" title="${window.i18n.tools.font.font}">\n <span class="caret"></span>\n <span class="sr-only">${window.i18n.tools.font.changeMenu}</span>\n </button>`),i=$('<ul class="dropdown-menu" role="menu" style="padding: 1px;"></ul>'),r=[];r.push("宋体"),r.push("仿宋"),r.push("黑体"),r.push("楷体"),r.push("微软雅黑"),r.push("Arial"),r.push("Impact"),r.push("Times New Roman"),r.push("Comic Sans MS"),r.push("Courier New");for(let t of r){let n=$(`<li data="${t}"><a href='###'>${t}</a></li>`);i.append(n),n.click(function(t){e.checkSelection()&&(I.call(e,e.context,n.attr("data"),e.nameButton),Object(o.k)())})}return this.nameButton.click(function(){e.checkSelection()&&(I.call(e,e.context,e.fontFamily,e.nameButton),Object(o.k)())}),t.append(n),t.append(i),t}refresh(e,t,n,i){let o=n;e>n&&(n=e,e=o),o=i,t>i&&(i=t,t=o);for(let o=e;o<=n;o++){for(let e=t;e<=i;e++){let t=this.context.getCell(o,e);if(!t)continue;const n=t.cellStyle.fontFamily||"宋体";this.nameButton.html(n),this.fontFamily=n;break}break}}}(e)),this.tools.push(new class extends _{execute(){}buildButton(){const e=this;this.fontSize=10;const t=$('<div class="btn-group"></div>');this.nameButton=$(`<button type="button" class="btn btn-default"\n style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 1px 6px 5px;color: #0e90d2;font-size: 12pt;" title="${window.i18n.tools.fontSize.size}">10</button>`),t.append(this.nameButton);const n=$(`<button type="button" class="btn btn-default dropdown-toggle" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px;" data-toggle="dropdown" title="${window.i18n.tools.fontSize.size}">\n <span class="caret"></span>\n <span class="sr-only">${window.i18n.tools.fontSize.changeMenu}</span>\n </button>`),i=$('<ul class="dropdown-menu" role="menu" style="padding: 1px;"></ul>');for(let t=1;t<=100;t++){let n=$(`<li data="${t}"><a href='###'>${t}</a></li>`);i.append(n),n.click(function(t){e.checkSelection()&&F.call(this,e.context,n.attr("data"),e.nameButton,e)})}return this.nameButton.click(function(){e.checkSelection()&&F.call(this,e.context,this.fontSize,e.nameButton,e)}),t.append(n),t.append(i),t}refresh(e,t,n,i){let o=n;e>n&&(n=e,e=o),o=i,t>i&&(i=t,t=o);for(let o=e;o<=n;o++){for(let e=t;e<=i;e++){let t=this.context.getCell(o,e);if(!t)continue;const n=t.cellStyle.fontSize||10;this.nameButton.html(n),this.fontSize=n;break}break}}}(e)),this.tools.push(new class extends _{execute(){if(!this.checkSelection())return;const e=this,t=this.context.hot,n=t.getSelected();let i=n[0],r=n[1],a=n[2],s=n[3],l=a;i>a&&(a=i,i=l),l=s,r>s&&(s=r,r=l);let d=T(e.context,i,r,a,s);o.n.add({redo:function(){d=T(e.context,i,r,a,s),Object(o.k)()},undo:function(){for(let t=i;t<=a;t++)for(let n=r;n<=s;n++){let i=e.context.getCell(t,n);if(!i)continue;let o=i.cellStyle,r=d[t+","+n];o.bold=r}t.render(),Object(o.k)()}}),Object(o.k)()}getTitle(){return`${window.i18n.tools.bold.bold}`}getIcon(){return'<i class="ureport ureport-bold" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{execute(){if(!this.checkSelection())return;const e=this,t=this.context.hot,n=t.getSelected();let i=n[0],r=n[1],a=n[2],s=n[3],l=a;i>a&&(a=i,i=l),l=s,r>s&&(s=r,r=l);let d=D(e.context,i,r,a,s);o.n.add({redo:function(){d=D(e.context,i,r,a,s),Object(o.k)()},undo:function(){for(let t=i;t<=a;t++)for(let n=r;n<=s;n++){let i=e.context.getCell(t,n);if(!i)continue;let o=i.cellStyle,r=d[t+","+n];o.italic=r}t.render(),Object(o.k)()}}),Object(o.k)()}getTitle(){return`${window.i18n.italic}`}getIcon(){return'<i class="ureport ureport-italic" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{execute(){if(!this.checkSelection())return;const e=this,t=this.context.hot.getSelected();let n=t[0],i=t[1],r=t[2],a=t[3],s=r;n>r&&(r=n,n=s),s=a,i>a&&(a=i,i=s);let l=Y(this.context,n,i,r,a);o.n.add({redo:function(){l=Y(e.context,n,i,r,a),Object(o.k)()},undo:function(){l=Y(e.context,n,i,r,a,l),Object(o.k)()}}),Object(o.k)()}getTitle(){return`${window.i18n.underline}`}getIcon(){return'<i class="ureport ureport-underline" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{execute(){}buildButton(){this.bgcolor="255,255,255";const e=$('<div class="btn-group"></div>');this.nameButton=$(`<button type="button" class="btn btn-default"\n style="border:none;border-radius:0;background: #f8f8f8;padding: 2px 1px 6px 5px;color: #0e90d2;" title="${window.i18n.tools.bgColor.bgColor}">\n <span class="ureport ureport-bgcolor" style="color: #0e90d2;font-size: 13px"></span>\n <span class="ud-select-bgcolor"></span>\n </button>`),e.append(this.nameButton);const t=$(`<button type="button" class="btn btn-default dropdown-toggle" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px;" data-toggle="dropdown" title="${window.i18n.tools.bgColor.bgColor}">\n <span class="caret"></span>\n <span class="sr-only">${window.i18n.tools.bgColor.changeMenu}</span>\n </button>`),n=$('<ul class="dropdown-menu" role="menu" style="padding: 1px;"></ul>'),i=$("<li></li>");n.append(i),i.colorpicker({color:"#000",container:!0,inline:!0,colorSelectors:{black:"#000000",white:"#FFFFFF",gray1:"#efefef",gray:"#CCCCCC",red:"#FF0000",default:"#777777",primary:"#337ab7",success:"#5cb85c",info:"#5bc0de",warning:"#f0ad4e",danger:"#d9534f"}});const r=this;return i.colorpicker().on("changeColor",function(e){if(!r.checkSelection())return;let t=e.color.toRGB(),n=t.r+","+t.g+","+t.b;const i=r.context.hot,a=i.getSelected();let s=a[0],l=a[1],d=a[2],c=a[3],u=d;s>d&&(d=s,s=u),u=c,l>c&&(c=l,l=u);let h=R(r.context,s,l,d,c,n,r);o.n.add({redo:function(){h=R(r.context,s,l,d,c,n,r),Object(o.k)()},undo:function(){for(let e=s;e<=d;e++)for(let t=l;t<=c;t++){let n=r.context.getCell(e,t);if(!n)continue;let i=n.cellStyle,o=h[e+","+t];i.bgcolor=o,$(".ud-select-bgcolor").css("background-color","rgb("+o+")"),r.bgcolor=o}i.render(),Object(o.k)()}}),Object(o.k)()}),this.nameButton.click(function(){if(!r.checkSelection())return;const e=r.context.hot.getSelected();let t=e[0],n=e[1],i=e[2],o=e[3],a=i;t>i&&(i=t,t=a),a=o,n>o&&(o=n,n=a),R(r.context,t,n,i,o,r.bgcolor,r)}),e.append(t),e.append(n),e}refresh(e,t,n,i){let o=n;e>n&&(n=e,e=o),o=i,t>i&&(i=t,t=o);for(let o=e;o<=n;o++){for(let e=t;e<=i;e++){let t=this.context.getCell(o,e);if(!t)continue;const n=t.cellStyle.bgcolor||"255,255,255";$(".ud-select-bgcolor").css("background-color","rgb("+n+")"),this.bgcolor=n;break}break}}}(e)),this.tools.push(new class extends _{execute(){}buildButton(){this.forecolor="0,0,0";const e=$('<div class="btn-group"></div>');this.nameButton=$(`<button type="button" class="btn btn-default"\n style="border:none;border-radius:0;background: #f8f8f8;padding: 2px 1px 6px 5px;color: #0e90d2;" title="${window.i18n.tools.foreColor.color}">\n <i class="ureport ureport-forecolor" style="color: #0e90d2;font-size: 14px"></i>\n <span class="ud-select-color"></span>\n </button>`),e.append(this.nameButton);const t=$(`<button type="button" class="btn btn-default dropdown-toggle" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px;" data-toggle="dropdown" title="${window.i18n.tools.foreColor.color}">\n <span class="caret"></span>\n <span class="sr-only">${window.i18n.tools.foreColor.changeMenu}</span>\n </button>`),n=$('<ul class="dropdown-menu" role="menu" style="padding: 1px;"></ul>'),i=$("<li></li>");n.append(i),i.colorpicker({color:"#000",container:!0,inline:!0,colorSelectors:{black:"#000000",white:"#FFFFFF",gray1:"#efefef",gray:"#CCCCCC",red:"#FF0000",default:"#777777",primary:"#337ab7",success:"#5cb85c",info:"#5bc0de",warning:"#f0ad4e",danger:"#d9534f"}});const r=this;return i.colorpicker().on("changeColor",function(e){if(!r.checkSelection())return;let t=e.color.toRGB(),n=t.r+","+t.g+","+t.b;const i=r.context.hot,a=i.getSelected();let s=a[0],l=a[1],d=a[2],c=a[3],u=d;s>d&&(d=s,s=u),u=c,l>c&&(c=l,l=u);let h=B(r.context,s,l,d,c,n,r);o.n.add({redo:function(){h=B(r.context,s,l,d,c,n,r),Object(o.k)()},undo:function(){for(let e=s;e<=d;e++)for(let t=l;t<=c;t++){let n=r.context.getCell(e,t);if(!n)continue;let i=n.cellStyle,o=h[e+","+t];i.forecolor=o,$(".ud-select-color").css("background-color","rgb("+o+")"),r.forecolor=o}i.render(),Object(o.k)()}}),Object(o.k)()}),this.nameButton.click(function(){if(!r.checkSelection())return;const e=r.context.hot.getSelected();let t=e[0],n=e[1],i=e[2],o=e[3],a=i;t>i&&(i=t,t=a),a=o,n>o&&(o=n,n=a),B(r.context,t,n,i,o,r.forecolor,r)}),e.append(t),e.append(n),e}refresh(e,t,n,i){let o=n;e>n&&(n=e,e=o),o=i,t>i&&(i=t,t=o);for(let o=e;o<=n;o++){for(let e=t;e<=i;e++){let t=this.context.getCell(o,e);if(!t)continue;const n=t.cellStyle.forecolor||"0,0,0";$(".ud-select-color").css("background-color","rgb("+n+")"),this.forecolor=n;break}break}}}(e)),this.tools.push(new class extends _{execute(){if(!this.checkSelection())return;const e=this.context.hot,t=e.getSelected(),n=t[0],i=t[1],r=this.context.getCell(n,i);let a=e.getDataAtCell(n,i),s=r.value;$(e.getCell(n,i));const l=this;(new O).show(function(c){r.crossTabWidget=new d(l.context,n,i,null,c),e.render(),Object(o.k)(),w.a.hooks.run(e,"afterSelectionEnd",n,i,t[2],t[3]),o.n.add({redo:function(){a=e.getDataAtCell(n,i),s=r.value,r.crossTabWidget=new d(l.context,n,i,null,c),e.render(),Object(o.k)(),w.a.hooks.run(e,"afterSelectionEnd",n,i,t[2],t[3])},undo:function(){r.value=s,r.crossTabWidget=null,e.setDataAtCell(n,i,a),e.render(),Object(o.k)(),w.a.hooks.run(e,"afterSelectionEnd",n,i,t[2],t[3])}})})}getTitle(){return`${window.i18n.tools.crosstab.title}`}getIcon(){return'<i class="ureport ureport-crosstab" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{execute(){if(!this.checkSelection())return;const e=this.context.hot,t=e.getSelected();let n=t[0],i=t[1],r=t[2],a=t[3],s=r;n>r&&(r=n,n=s),s=a,i>a&&(a=i,i=s);let l=this.context.getCell(n,i),d=e.getDataAtCell(n,i),c=Object(o.a)(n+1,i+1);c.value={type:"image",source:"text",value:""},this.context.addCell(c);const u=window._server+"/res/ureport-asserts/icons/image.svg",h=$(`<img src="${u}" width="20px">`);let f=$(e.getCell(n,i));f.empty(),f.append(h),Object(o.k)(),w.a.hooks.run(e,"afterSelectionEnd",n,i,r,a);const p=this;o.n.add({redo:function(){l=p.context.getCell(n,i),d=e.getDataAtCell(n,i),(c=Object(o.a)(n+1,i+1)).value={type:"image",source:"text",value:""},p.context.addCell(c),e.setDataAtCell(n,i,""),e.render(),Object(o.k)(),w.a.hooks.run(e,"afterSelectionEnd",n,i,r,a)},undo:function(){p.context.addCell(l),e.setDataAtCell(n,i,d),e.render(),Object(o.k)(),w.a.hooks.run(e,"afterSelectionEnd",n,i,r,a)}})}getTitle(){return`${window.i18n.image}`}getIcon(){return'<i class="ureport ureport-image" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{execute(){}buildButton(){const e=$('<div class="btn-group"></div>'),t=$(`<button type="button" class="btn btn-default dropdown-toggle" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px;" data-toggle="dropdown" title="${window.i18n.tools.zxing.title}">\n <i class="ureport ureport-qrcode" style="color: #0e90d2;"></i>\n <span class="caret"></span>\n </button>`),n=$('<ul class="dropdown-menu" role="menu"></ul>'),i=$(`<li>\n <a href="###">\n <i class="ureport ureport-qrcode" style="color: #0e90d2;"></i> ${window.i18n.tools.zxing.qrcode}\n </a>\n </li>`);n.append(i),new M;const r=this;i.click(function(){if(!r.checkSelection())return;const e=r.context.hot,t=e.getSelected(),n=t[0],i=t[1],a=t[2],s=t[3];let l=r.context.getCell(n,i),d=l.value,c=e.getDataAtCell(n,i);e.setDataAtCell(n,i,"");let u=e.getCell(n,i),h=r._buildWidth(i,u.colSpan,e),f=r._buildHeight(n,u.rowSpan,e);l.value={width:h,height:f,type:"zxing",category:"qrcode",source:"text",data:""},e.render(),Object(o.k)(),w.a.hooks.run(e,"afterSelectionEnd",n,i,a,s),o.n.add({redo:function(){l=r.context.getCell(n,i),d=l.value,c=e.getDataAtCell(n,i),e.setDataAtCell(n,i,""),u=e.getCell(n,i),h=r._buildWidth(i,u.colSpan,e),f=r._buildHeight(n,u.rowSpan,e),l.value={width:h,height:f,type:"zxing",category:"qrcode",source:"text",data:""},e.render(),Object(o.k)(),w.a.hooks.run(e,"afterSelectionEnd",n,i,a,s)},undo:function(){(l=r.context.getCell(n,i)).value=d,e.setDataAtCell(n,i,c),e.render(),Object(o.k)(),w.a.hooks.run(e,"afterSelectionEnd",n,i,a,s)}})});const a=$(`<li>\n <a href="###">\n <i class="ureport ureport-barcode" style="color: #0e90d2;font-size: 16px"></i> ${window.i18n.tools.zxing.barcode}\n </a>\n </li>`);return n.append(a),a.click(function(){if(!r.checkSelection())return;const e=r.context.hot,t=e.getSelected(),n=t[0],i=t[1],a=t[2],s=t[3];let l=r.context.getCell(n,i),d=l.value,c=e.getDataAtCell(n,i);e.setDataAtCell(n,i,"");let u=e.getCell(n,i),h=r._buildWidth(i,u.colSpan,e),f=r._buildHeight(n,u.rowSpan,e);l.value={width:h,height:f,type:"zxing",category:"barcode",source:"text",format:"CODE_128",data:""},e.render(),Object(o.k)(),w.a.hooks.run(e,"afterSelectionEnd",n,i,a,s),o.n.add({redo:function(){l=r.context.getCell(n,i),d=l.value,c=e.getDataAtCell(n,i),e.setDataAtCell(n,i,""),u=e.getCell(n,i),h=r._buildWidth(i,u.colSpan,e),f=r._buildHeight(n,u.rowSpan,e),l.value={width:h,height:f,type:"zxing",category:"barcode",source:"text",format:"CODE_128",data:""},e.render(),Object(o.k)(),w.a.hooks.run(e,"afterSelectionEnd",n,i,a,s)},undo:function(){(l=r.context.getCell(n,i)).value=d,e.setDataAtCell(n,i,c),e.render(),Object(o.k)(),w.a.hooks.run(e,"afterSelectionEnd",n,i,a,s)}})}),e.append(t),e.append(n),e}_buildWidth(e,t,n){let i=n.getColWidth(e)-3;if(!t||t<2)return i;let o=e+t;for(let t=e+1;t<o;t++)i+=n.getColWidth(t);return i}_buildHeight(e,t,n){let i=n.getRowHeight(e)-3;if(!t||t<2)return i;let o=e+t;for(let t=e+1;t<o;t++)i+=n.getRowHeight(t);return i}}(e)),this.tools.push(new class extends _{execute(){}buildButton(){const e=this,t=$('<div class="btn-group"></div>'),n=$(`<button type="button" class="btn btn-default dropdown-toggle" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px;" data-toggle="dropdown" title="${window.i18n.tools.chart.chart}">\n <i class="ureport ureport-pie" style="color: #0e90d2;"></i>\n <span class="caret"></span>\n </button>`),i=$('<ul class="dropdown-menu" role="menu"></ul>'),o=$(`<li>\n <a href="###">\n <i class="ureport ureport-pie" style="color: #0e90d2;"></i> ${window.i18n.tools.chart.pie}\n </a>\n </li>`);i.append(o),o.click(function(){e._doClick("pie")});const r=$(`<li>\n <a href="###">\n <i class="ureport ureport-doughnut" style="color: #0e90d2;"></i> ${window.i18n.tools.chart.doughnut}\n </a>\n </li>`);i.append(r),r.click(function(){e._doClick("doughnut")});const a=$(`<li>\n <a href="###">\n <i class="ureport ureport-line" style="color: #0e90d2;"></i> ${window.i18n.tools.chart.line}\n </a>\n </li>`);i.append(a),a.click(function(){e._doClick("line")});const s=$(`<li>\n <a href="###">\n <i class="ureport ureport-bar" style="color: #0e90d2;"></i> ${window.i18n.tools.chart.bar}\n </a>\n </li>`);i.append(s),s.click(function(){e._doClick("bar")});const l=$(`<li>\n <a href="###">\n <i class="ureport ureport-horizontal-bar" style="color: #0e90d2;"></i> ${window.i18n.tools.chart.horizontalBar}\n </a>\n </li>`);i.append(l),l.click(function(){e._doClick("horizontalBar")});const d=$(`<li>\n <a href="###">\n <i class="ureport ureport-area" style="color: #0e90d2;"></i> ${window.i18n.tools.chart.area}\n </a>\n </li>`);i.append(d),d.click(function(){e._doClick("area")});const c=$(`<li>\n <a href="###">\n <i class="ureport ureport-radar" style="color: #0e90d2;"></i> ${window.i18n.tools.chart.radar}\n </a>\n </li>`);i.append(c),c.click(function(){e._doClick("radar")});const u=$(`<li>\n <a href="###">\n <i class="ureport ureport-polar" style="color: #0e90d2;"></i> ${window.i18n.tools.chart.polar}\n </a>\n </li>`);i.append(u),u.click(function(){e._doClick("polar")});const h=$(`<li>\n <a href="###">\n <i class="ureport ureport-scatter" style="color: #0e90d2;"></i> ${window.i18n.tools.chart.scatter}\n </a>\n </li>`);i.append(h),h.click(function(){e._doClick("scatter")});const f=$(`<li>\n <a href="###">\n <i class="ureport ureport-bubble" style="color: #0e90d2;"></i> ${window.i18n.tools.chart.bubble}\n </a>\n </li>`);return i.append(f),f.click(function(){e._doClick("bubble")}),t.append(n),t.append(i),t}_doClick(e){if(!this.checkSelection())return;const t=this,n=t.context.hot,i=n.getSelected(),r=i[0],a=i[1],s=i[2],l=i[3];let d=t.context.getCell(r,a),c=d.value,u=n.getDataAtCell(r,a);n.setDataAtCell(r,a,""),d.value={type:"chart",chart:this._newChart(e)},n.render(),Object(o.k)(),w.a.hooks.run(n,"afterSelectionEnd",r,a,s,l),o.n.add({redo:function(){d=t.context.getCell(r,a),c=d.value,u=n.getDataAtCell(r,a),n.setDataAtCell(r,a,""),d.value={type:"chart",chart:t._newChart(e)},n.render(),Object(o.k)(),w.a.hooks.run(n,"afterSelectionEnd",r,a,s,l)},undo:function(){(d=t.context.getCell(r,a)).value=c,n.setDataAtCell(r,a,u),n.render(),Object(o.k)(),w.a.hooks.run(n,"afterSelectionEnd",r,a,s,l)}})}_newChart(e){return{dataset:{type:e}}}}(e)),this.tools.push(new class extends _{constructor(e){super(e),this.settingsDialog=new W}execute(){this.settingsDialog.show(this.context)}getTitle(){return`${window.i18n.setting}`}getIcon(){return'<i class="ureport ureport-setting" style="color: #0e90d2;"></i>'}}(e)),this.tools.push(new class extends _{constructor(e){super(e),this.dialog=new G}execute(){Object(o.k)(),this.dialog.show(this.context.reportDef)}getTitle(){return`${window.i18n.tools.searchFormSwitch}`}getIcon(){return'<i class="glyphicon glyphicon-list-alt" style="color: #0e90d2;font-size: 22px;"></i>'}}(e));for(const e of this.tools)t.append(e.buildButton())}}("container");let e=0;$(window).scroll(function(){const t=$(window).scrollTop(),n=$(".top-toolbar");t>0?(n.css({position:"absolute",top:t+"px","z-index":5}),$(".ht_clone_top").css({top:"40px"})):(n.css({position:"relative",top:"auto"}),$(".ht_clone_top").css({top:0}));const i=$(".ud-property-panel");let o=parseInt(i.css("top")),r=parseInt(o+(t-e)+.5)+"px";i.css("top",r);const a=$(".ureport-right-hr-for-print");o=parseInt(a.css("top")),r=parseInt(o+(t-e)+.5)+"px",a.css("top",r),e=t})})},,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e,i){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var r=n(8),a=n(28),s=r.Buffer,l=r.kMaxLength,d=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function u(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function h(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>l)throw new RangeError("buffer too small")}function f(e,t,n,o){if(i.browser){var r=e.buffer,s=new Uint8Array(r,t,n);return d.getRandomValues(s),o?void i.nextTick(function(){o(null,e)}):e}if(!o)return a(n).copy(e,t),e;a(n,function(n,i){if(n)return o(n);i.copy(e,t),o(null,e)})}d&&d.getRandomValues||!i.browser?(t.randomFill=function(t,n,i,o){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)o=n,n=0,i=t.length;else if("function"==typeof i)o=i,i=t.length-n;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return u(n,t.length),h(i,n,t.length),f(t,n,i,o)},t.randomFillSync=function(t,n,i){if(void 0===n&&(n=0),!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return u(n,t.length),void 0===i&&(i=t.length-n),h(i,n,t.length),f(t,n,i)}):(t.randomFill=o,t.randomFillSync=o)}).call(this,n(22),n(23))},function(e,t,n){(function(t){var i=n(169),o=n(239),r=n(238),a=n(12),s=n(178),l=n(36),d=n(237);e.exports=function(e,n,c){var u;u=e.padding?e.padding:c?1:4;var h,f=i(e),p=f.modulus.byteLength();if(n.length>p||new a(n).cmp(f.modulus)>=0)throw new Error("decryption error");h=c?d(new a(n),f):s(n,f);var m=new t(p-h.length);if(m.fill(0),h=t.concat([m,h],p),4===u)return function(e,n){e.modulus;var i=e.modulus.byteLength(),a=(n.length,l("sha1").update(new t("")).digest()),s=a.length;if(0!==n[0])throw new Error("decryption error");var d=n.slice(1,s+1),c=n.slice(s+1),u=r(d,o(c,s)),h=r(c,o(u,i-s-1));if(function(e,n){e=new t(e),n=new t(n);var i=0,o=e.length;e.length!==n.length&&(i++,o=Math.min(e.length,n.length));for(var r=-1;++r<o;)i+=e[r]^n[r];return i}(a,h.slice(0,s)))throw new Error("decryption error");for(var f=s;0===h[f];)f++;if(1!==h[f++])throw new Error("decryption error");return h.slice(f)}(f,h);if(1===u)return function(e,t,n){for(var i=t.slice(0,2),o=2,r=0;0!==t[o++];)if(o>=t.length){r++;break}var a=t.slice(2,o-1);if(t.slice(o-1,o),("0002"!==i.toString("hex")&&!n||"0001"!==i.toString("hex")&&n)&&r++,a.length<8&&r++,r)throw new Error("decryption error");return t.slice(o)}(0,h,c);if(3===u)return h;throw new Error("unknown padding")}}).call(this,n(9).Buffer)},function(e,t,n){(function(t){var i=n(169),o=n(28),r=n(36),a=n(239),s=n(238),l=n(12),d=n(237),c=n(178);e.exports=function(e,n,u){var h;h=e.padding?e.padding:u?1:4;var f,p=i(e);if(4===h)f=function(e,n){var i=e.modulus.byteLength(),d=n.length,c=r("sha1").update(new t("")).digest(),u=c.length,h=2*u;if(d>i-h-2)throw new Error("message too long");var f=new t(i-d-h-2);f.fill(0);var p=i-u-1,m=o(u),g=s(t.concat([c,f,new t([1]),n],p),a(m,p)),y=s(m,a(g,u));return new l(t.concat([new t([0]),y,g],i))}(p,n);else if(1===h)f=function(e,n,i){var r,a=n.length,s=e.modulus.byteLength();if(a>s-11)throw new Error("message too long");return i?(r=new t(s-a-3)).fill(255):r=function(e,n){for(var i,r=new t(e),a=0,s=o(2*e),l=0;a<e;)l===s.length&&(s=o(2*e),l=0),(i=s[l++])&&(r[a++]=i);return r}(s-a-3),new l(t.concat([new t([0,i?1:2]),r,new t([0]),n],s))}(p,n,u);else{if(3!==h)throw new Error("unknown padding");if((f=new l(n)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return u?c(f,p):d(f,p)}}).call(this,n(9).Buffer)},function(e,t,n){t.publicEncrypt=n(396),t.privateDecrypt=n(395),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){(function(t){var i=n(16),o=n(12);e.exports=function(e){return new a(e)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=r[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function s(e,n,i){Array.isArray(e)||(e=e.toArray());var o=new t(e);if(i&&o.length<i){var r=new t(i-o.length);r.fill(0),o=t.concat([r,o])}return n?o.toString(n):o}r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,n,i){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),i,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,e)},a.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var i=new o(e);return i=i.toString(16),this.keys._importPrivate(i),this}}).call(this,n(9).Buffer)},function(e,t,n){(function(t){var i=n(12),o=n(16).ec,r=n(169),a=n(240);function s(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,n,l,d,c){var u=r(l);if("ec"===u.type){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong public key type");return function(e,t,n){var i=a[n.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var r=new o(i),s=n.data.subjectPrivateKey.data;return r.verify(t,e,s)}(e,n,u)}if("dsa"===u.type){if("dsa"!==d)throw new Error("wrong public key type");return function(e,t,n){var o=n.data.p,a=n.data.q,l=n.data.g,d=n.data.pub_key,c=r.signature.decode(e,"der"),u=c.s,h=c.r;s(u,a),s(h,a);var f=i.mont(o),p=u.invm(a);return 0===l.toRed(f).redPow(new i(t).mul(p).mod(a)).fromRed().mul(d.toRed(f).redPow(h.mul(p).mod(a)).fromRed()).mod(o).mod(a).cmp(h)}(e,n,u)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong public key type");n=t.concat([c,n]);for(var h=u.modulus.byteLength(),f=[1],p=0;n.length+f.length+2<h;)f.push(255),p++;f.push(0);for(var m=-1;++m<n.length;)f.push(n[m]);f=new t(f);var g=i.mont(u.modulus);e=(e=new i(e).toRed(g)).redPow(new i(u.publicExponent)),e=new t(e.fromRed().toArray());var y=p<8?1:0;for(h=Math.min(e.length,f.length),e.length!==f.length&&(y=1),m=-1;++m<h;)y|=e[m]^f[m];return 0===y}}).call(this,n(9).Buffer)},function(e,t,n){(function(t){var i=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,o=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m,r=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,a=n(171),s=n(180);e.exports=function(e,n){var l,d=e.toString(),c=d.match(i);if(c){var u="aes"+c[1],h=new t(c[2],"hex"),f=new t(c[3].replace(/[\r\n]/g,""),"base64"),p=a(n,h.slice(0,8),parseInt(c[1],10)).key,m=[],g=s.createDecipheriv(u,p,h);m.push(g.update(f)),m.push(g.final()),l=t.concat(m)}else{var y=d.match(r);l=new t(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(o)[1],data:l}}}).call(this,n(9).Buffer)},function(e){e.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},function(e,t,n){"use strict";var i=n(31),o=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),r=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),s=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),l=i.define("RelativeDistinguishedName",function(){this.setof(r)}),d=i.define("RDNSequence",function(){this.seqof(l)}),c=i.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),u=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))}),h=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(c),this.key("validity").use(u),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}),p=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});e.exports=p},function(e,t,n){var i=n(6),o=n(241);function r(e){o.call(this,e),this.enc="pem"}i(r,o),e.exports=r,r.prototype.encode=function(e,t){for(var n=o.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"],r=0;r<n.length;r+=64)i.push(n.slice(r,r+64));return i.push("-----END "+t.label+"-----"),i.join("\n")}},function(e,t,n){var i=t;i.der=n(241),i.pem=n(403)},function(e,t,n){var i=n(6),o=n(9).Buffer,r=n(242);function a(e){r.call(this,e),this.enc="pem"}i(a,r),e.exports=a,a.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),i=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,l=-1,d=0;d<n.length;d++){var c=n[d].match(a);if(null!==c&&c[2]===i){if(-1!==s){if("END"!==c[1])break;l=d;break}if("BEGIN"!==c[1])break;s=d}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+i);var u=n.slice(s+1,l).join("");u.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new o(u,"base64");return r.prototype.decode.call(this,h,t)}},function(e,t,n){var i=t;i.der=n(242),i.pem=n(405)},function(e,t,n){var i=n(243);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=i._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=i._reverse(t.tag)},function(e,t,n){var i=n(30).Reporter,o=n(30).EncoderBuffer,r=n(30).DecoderBuffer,a=n(17),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function d(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=d;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];d.prototype.clone=function(){var e=this._baseState,t={};c.forEach(function(n){t[n]=e[n]});var n=new this.constructor(t.parent);return n._baseState=t,n},d.prototype._wrap=function(){var e=this._baseState;l.forEach(function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}},this)},d.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},d.prototype._useArgs=function(e){var t=this._baseState,n=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==n.length&&(a(null===t.children),t.children=n,n.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(n){n==(0|n)&&(n|=0);var i=e[n];t[i]=n}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){d.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),s.forEach(function(e){d.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(n),this}}),d.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},d.prototype.optional=function(){return this._baseState.optional=!0,this},d.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},d.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},d.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},d.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},d.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},d.prototype.any=function(){return this._baseState.any=!0,this},d.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},d.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},d.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var i,o=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var l=null;if(null!==n.explicit?l=n.explicit:null!==n.implicit?l=n.implicit:null!==n.tag&&(l=n.tag),null!==l||n.any){if(a=this._peekTag(e,l,n.any),e.isError(a))return a}else{var d=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(d)}}if(n.obj&&a&&(i=e.enterObject()),a){if(null!==n.explicit){var c=this._decodeTag(e,n.explicit);if(e.isError(c))return c;e=c}var u=e.offset;if(null===n.use&&null===n.choice){n.any&&(d=e.save());var h=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(h))return h;n.any?o=e.raw(d):e=h}if(t&&t.track&&null!==n.tag&&t.track(e.path(),u,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),o=n.any?o:null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(o))return o;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var f=new r(o);o=this._getUse(n.contains,e._reporterState.obj)._decode(f,t)}}return n.obj&&a&&(o=e.leaveObject(i)),null===n.key||null===o&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,o),o},d.prototype._decodeGeneric=function(e,t,n){var i=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,i.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&i.args?this._decodeObjid(t,i.args[0],i.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,i.args&&i.args[0],n):null!==i.use?this._getUse(i.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},d.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),a(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},d.prototype._decodeChoice=function(e,t){var n=this._baseState,i=null,o=!1;return Object.keys(n.choice).some(function(r){var a=e.save(),s=n.choice[r];try{var l=s._decode(e,t);if(e.isError(l))return!1;i={type:r,value:l},o=!0}catch(t){return e.restore(a),!1}return!0},this),o?i:e.error("Choice not matched")},d.prototype._createEncoderBuffer=function(e){return new o(e,this.reporter)},d.prototype._encode=function(e,t,n){var i=this._baseState;if(null===i.default||i.default!==e){var o=this._encodeValue(e,t,n);if(void 0!==o&&!this._skipDefault(o,t,n))return o}},d.prototype._encodeValue=function(e,t,n){var o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new i);var r=null;if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return;e=o.default}var a=null,s=!1;if(o.any)r=this._createEncoderBuffer(e);else if(o.choice)r=this._encodeChoice(e,t);else if(o.contains)a=this._getUse(o.contains,n)._encode(e,t),s=!0;else if(o.children)a=o.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var i=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var o=n._encode(e[n._baseState.key],t,e);return t.leaveKey(i),o},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(n){var i=this._baseState;return this._getUse(i.args[0],e)._encode(n,t)},l))}else null!==o.use?r=this._getUse(o.use,n)._encode(e,t):(a=this._encodePrimitive(o.tag,e),s=!0);if(!o.any&&null===o.choice){var d=null!==o.implicit?o.implicit:o.tag,c=null===o.implicit?"universal":"context";null===d?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(r=this._encodeComposite(d,s,c,a))}return null!==o.explicit&&(r=this._encodeComposite(o.explicit,!1,"context",r)),r},d.prototype._encodeChoice=function(e,t){var n=this._baseState,i=n.choice[e.type];return i||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(e.value,t)},d.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},d.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},d.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){var i=n(6);function o(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function r(e,t){this.path=e,this.rethrow(t)}t.Reporter=o,o.prototype.isError=function(e){return e instanceof r},o.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},o.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},o.prototype.enterKey=function(e){return this._reporterState.path.push(e)},o.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},o.prototype.leaveKey=function(e,t,n){var i=this._reporterState;this.exitKey(e),null!==i.obj&&(i.obj[t]=n)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},o.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},o.prototype.error=function(e){var t,n=this._reporterState,i=e instanceof r;if(t=i?e:new r(n.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return i||n.errors.push(t),t},o.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},i(r,Error),r.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,r),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var i=0;i<e.length;++i)if(e[i]===t)return i;return-1}},function(module,exports,__webpack_require__){var indexOf=__webpack_require__(410),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,i=n.eval,o=n.execScript;!i&&o&&(o.call(n,"null"),i=n.eval),forEach(Object_keys(e),function(t){n[t]=e[t]}),forEach(globals,function(t){e[t]&&(n[t]=e[t])});var r=Object_keys(n),a=i.call(n,this.code);return forEach(Object_keys(n),function(t){(t in e||-1===indexOf(r,t))&&(e[t]=n[t])}),forEach(globals,function(t){t in e||defineProp(e,t,n[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return forEach(Object_keys(t),function(n){e[n]=t[n]}),n},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(n){t[n]=e[n]}),t}},function(e,t,n){var i=n(31),o=n(6);function r(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new r(e,t)},r.prototype._createNamed=function(e){var t;try{t=n(411).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return o(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},r.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i.decoders[e])),this.decoders[e]},r.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},r.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(i.encoders[e])),this.encoders[e]},r.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(e,t,n){"use strict";var i=n(31);t.certificate=n(402);var o=i.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});t.RSAPrivateKey=o;var r=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t.RSAPublicKey=r;var a=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});t.PublicKey=a;var s=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),l=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});t.PrivateKey=l;var d=i.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});t.EncryptedPrivateKey=d;var c=i.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});t.DSAPrivateKey=c,t.DSAparam=i.define("DSAparam",function(){this.int()});var u=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});t.ECPrivateKey=u;var h=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(e,t,n){"use strict";var i=n(12),o=n(16).utils,r=o.assert,a=o.cachedProperty,s=o.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),r(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=l},function(e,t,n){"use strict";var i=n(16).utils,o=i.assert,r=i.parseBytes,a=i.cachedProperty;function s(e,t){this.eddsa=e,this._secret=r(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=r(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,i=t.slice(0,e.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return o(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},s.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},e.exports=s},function(e,t,n){"use strict";var i=n(177),o=n(16),r=o.utils,a=r.assert,s=r.parseBytes,l=n(415),d=n(414);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=o.curves[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),i=this.hashInt(n.messagePrefix(),e),o=this.g.mul(i),r=this.encodePoint(o),a=this.hashInt(r,n.pubBytes(),e).mul(n.priv()),l=i.add(a).umod(this.curve.n);return this.makeSignature({R:o,S:l,Rencoded:r})},c.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(n),o=this.hashInt(t.Rencoded(),i.pubBytes(),e),r=this.g.mul(t.S());return t.R().add(i.pub().mul(o)).eq(r)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return r.intFromLE(e.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},c.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},c.prototype.makeSignature=function(e){return e instanceof d?e:new d(this,e)},c.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},c.prototype.decodePoint=function(e){var t=(e=r.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),i=0!=(128&e[t]),o=r.intFromLE(n);return this.curve.pointFromY(o,i)},c.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(e){return r.intFromLE(e)},c.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";var i=n(12),o=n(16).utils,r=o.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(r(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(e,t){var n=e[t.place++];if(!(128&n))return n;for(var i=15&n,o=0,r=0,a=t.place;r<i;r++,a++)o<<=8,o|=e[a];return t.place=a,o}function l(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function d(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=o.toArray(e,t);var n=new function(){this.place=0};if(48!==e[n.place++])return!1;if(s(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var r=s(e,n),a=e.slice(n.place,r+n.place);if(n.place+=r,2!==e[n.place++])return!1;var l=s(e,n);if(e.length!==l+n.place)return!1;var d=e.slice(n.place,l+n.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===d[0]&&128&d[1]&&(d=d.slice(1)),this.r=new i(a),this.s=new i(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=l(t),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var i=[2];d(i,t.length),(i=i.concat(t)).push(2),d(i,n.length);var r=i.concat(n),a=[48];return d(a,r.length),a=a.concat(r),o.encode(a,e)}},function(e,t,n){"use strict";var i=n(12),o=n(16).utils.assert;function r(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=r,r.fromPublic=function(e,t,n){return t instanceof r?t:new r(e,{pub:t,pubEnc:n})},r.fromPrivate=function(e,t,n){return t instanceof r?t:new r(e,{priv:t,privEnc:n})},r.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},r.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},r.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},r.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?o(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},r.prototype.derive=function(e){return e.mul(this.priv).getX()},r.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},r.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";var i=n(177),o=n(248),r=n(17);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),n=o.toArray(e.nonce,e.nonceEnc||"hex"),i=o.toArray(e.pers,e.persEnc||"hex");r(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,i)}e.exports=a,a.prototype._init=function(e,t,n){var i=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,n,i){"string"!=typeof t&&(i=n,n=t,t=null),e=o.toArray(e,t),n=o.toArray(n,i),r(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},a.prototype.generate=function(e,t,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=n,n=t,t=null),n&&(n=o.toArray(n,i||"hex"),this._update(n));for(var r=[];r.length<e;)this.V=this._hmac().update(this.V).digest(),r=r.concat(this.V);var a=r.slice(0,e);return this._update(n),this._reseed++,o.encode(a,t)}},function(e,t,n){"use strict";var i=n(12),o=n(419),r=n(16),a=r.utils.assert,s=n(418),l=n(417);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(a(r.curves.hasOwnProperty(e),"Unknown curve "+e),e=r.curves[e]),e instanceof r.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new s(this,e)},d.prototype.keyFromPrivate=function(e,t){return s.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return s.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new o({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||r.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new i(2));;){var s=new i(t.generate(n));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},d.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new i(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),d=e.toArray("be",a),c=new o({hash:this.hash,entropy:s,nonce:d,pers:r.pers,persEnc:r.persEnc||"utf8"}),u=this.n.sub(new i(1)),h=0;;h++){var f=r.k?r.k(h):new i(c.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(u)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var y=f.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return r.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),v^=1),new l({r:g,s:y,recoveryParam:v})}}}}}},d.prototype.verify=function(e,t,n,o){e=this._truncateToN(new i(e,16)),n=this.keyFromPublic(n,o);var r=(t=new l(t,"hex")).r,a=t.s;if(r.cmpn(1)<0||r.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,d=a.invm(this.n),c=d.mul(e).umod(this.n),u=d.mul(r).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,n.getPublic(),u)).isInfinity()&&s.eqXToP(r):!(s=this.g.mulAdd(c,n.getPublic(),u)).isInfinity()&&0===s.getX().umod(this.n).cmp(r)},d.prototype.recoverPubKey=function(e,t,n,o){a((3&n)===n,"The recovery param is more than two bits"),t=new l(t,o);var r=this.n,s=new i(e),d=t.r,c=t.s,u=1&n,h=n>>1;if(d.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");d=h?this.curve.pointFromX(d.add(this.curve.n),u):this.curve.pointFromX(d,u);var f=t.r.invm(r),p=r.sub(s).mul(f).umod(r),m=c.mul(f).umod(r);return this.g.mulAdd(p,d,m)},d.prototype.getKeyRecoveryParam=function(e,t,n,i){if(null!==(t=new l(t,i)).recoveryParam)return t.recoveryParam;for(var o=0;o<4;o++){var r;try{r=this.recoverPubKey(e,t,o)}catch(e){continue}if(r.eq(n))return o}throw new Error("Unable to find valid recovery factor")}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,n){"use strict";var i=n(21),o=n(17);function r(e,t,n){if(!(this instanceof r))return new r(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(t,n))}e.exports=r,r.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},r.prototype.update=function(e,t){return this.inner.update(e,t),this},r.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,n){"use strict";var i=n(21),o=n(32),r=i.rotl32,a=i.sum32,s=i.sum32_3,l=i.sum32_4,d=o.BlockHash;function c(){if(!(this instanceof c))return new c;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function u(e,t,n,i){return e<=15?t^n^i:e<=31?t&n|~t&i:e<=47?(t|~n)^i:e<=63?t&i|n&~i:t^(n|~i)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}i.inherits(c,d),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var n=this.h[0],i=this.h[1],o=this.h[2],d=this.h[3],c=this.h[4],v=n,A=i,b=o,w=d,_=c,M=0;M<80;M++){var x=a(r(l(n,u(M,i,o,d),e[p[M]+t],h(M)),g[M]),c);n=c,c=d,d=r(o,10),o=i,i=x,x=a(r(l(v,u(79-M,A,b,w),e[m[M]+t],f(M)),y[M]),_),v=_,_=w,w=r(b,10),b=A,A=x}x=s(this.h[1],o,w),this.h[1]=s(this.h[2],d,_),this.h[2]=s(this.h[3],c,v),this.h[3]=s(this.h[4],n,A),this.h[4]=s(this.h[0],i,b),this.h[0]=x},c.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,n){"use strict";var i=n(21),o=n(245);function r(){if(!(this instanceof r))return new r;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(r,o),e.exports=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var i=n(21),o=n(246);function r(){if(!(this instanceof r))return new r;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(r,o),e.exports=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var i=n(21),o=n(32),r=n(247),a=i.rotl32,s=i.sum32,l=i.sum32_5,d=r.ft_1,c=o.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(h,c),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var n=this.W,i=0;i<16;i++)n[i]=e[t+i];for(;i<n.length;i++)n[i]=a(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var o=this.h[0],r=this.h[1],c=this.h[2],h=this.h[3],f=this.h[4];for(i=0;i<n.length;i++){var p=~~(i/20),m=l(a(o,5),d(p,r,c,h),f,n[i],u[p]);f=h,h=c,c=a(r,30),r=o,o=m}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],r),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],f)},h.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(e,t,n){"use strict";t.sha1=n(426),t.sha224=n(425),t.sha256=n(246),t.sha384=n(424),t.sha512=n(245)},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";var i,o=t,r=n(177),a=n(16),s=a.utils.assert;function l(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(e,t){Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:function(){var n=new l(t);return Object.defineProperty(o,e,{configurable:!0,enumerable:!0,value:n}),n}})}o.PresetCurve=l,d("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),d("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),d("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=n(421)}catch(e){i=void 0}d("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(e,t,n){"use strict";var i=n(170),o=n(16),r=n(12),a=n(6),s=i.base,l=o.utils.assert;function d(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new r(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),l(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,n,i,o){s.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new r(t,16),this.y=new r(n,16),this.z=i?new r(i,16):this.curve.one,this.t=o&&new r(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(d,s),e.exports=d,d.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},d.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},d.prototype.jpoint=function(e,t,n,i){return this.point(e,t,n,i)},d.prototype.pointFromX=function(e,t){(e=new r(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),i=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=i.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var l=s.fromRed().isOdd();return(t&&!l||!t&&l)&&(s=s.redNeg()),this.point(e,s)},d.prototype.pointFromY=function(e,t){(e=new r(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),i=n.redSub(this.one),o=n.redMul(this.d).redAdd(this.one),a=i.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},d.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),i=t.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===i.cmp(o)},a(c,s.BasePoint),d.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},d.prototype.point=function(e,t,n,i){return new c(this,e,t,n,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(e),o=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),r=i.redAdd(t),a=r.redSub(n),s=i.redSub(t),l=o.redMul(a),d=r.redMul(s),c=o.redMul(s),u=a.redMul(r);return this.curve.point(l,d,u,c)},c.prototype._projDbl=function(){var e,t,n,i=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),r=this.y.redSqr();if(this.curve.twisted){var a=(d=this.curve._mulA(o)).redAdd(r);if(this.zOne)e=i.redSub(o).redSub(r).redMul(a.redSub(this.curve.two)),t=a.redMul(d.redSub(r)),n=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),l=a.redSub(s).redISub(s);e=i.redSub(o).redISub(r).redMul(l),t=a.redMul(d.redSub(r)),n=a.redMul(l)}}else{var d=o.redAdd(r);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),l=d.redSub(s).redSub(s),e=this.curve._mulC(i.redISub(d)).redMul(l),t=this.curve._mulC(d).redMul(o.redISub(r)),n=d.redMul(l)}return this.curve.point(e,t,n)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),o=this.z.redMul(e.z.redAdd(e.z)),r=n.redSub(t),a=o.redSub(i),s=o.redAdd(i),l=n.redAdd(t),d=r.redMul(a),c=s.redMul(l),u=r.redMul(l),h=a.redMul(s);return this.curve.point(d,c,h,u)},c.prototype._projAdd=function(e){var t,n,i=this.z.redMul(e.z),o=i.redSqr(),r=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(r).redMul(a),l=o.redSub(s),d=o.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(r).redISub(a),u=i.redMul(l).redMul(c);return this.curve.twisted?(t=i.redMul(d).redMul(a.redSub(this.curve._mulA(r))),n=l.redMul(d)):(t=i.redMul(d).redMul(a.redSub(r)),n=this.curve._mulC(l).redMul(d)),this.curve.point(u,t,n)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},c.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,n){"use strict";var i=n(170),o=n(12),r=n(6),a=i.base,s=n(16).utils;function l(e){a.call(this,"mont",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.i4=new o(4).toRed(this.red).redInvm(),this.two=new o(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function d(e,t,n){a.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new o(t,16),this.z=new o(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(l,a),e.exports=l,l.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),i=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},r(d,a.BasePoint),l.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},l.prototype.point=function(e,t){return new d(this,e,t)},l.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},d.prototype.precompute=function(){},d.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},d.fromJSON=function(e,t){return new d(e,t[0],t[1]||e.one)},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},d.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),i=e.redMul(t),o=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(i,o)},d.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),o=e.x.redAdd(e.z),r=e.x.redSub(e.z).redMul(n),a=o.redMul(i),s=t.z.redMul(r.redAdd(a).redSqr()),l=t.x.redMul(r.redISub(a).redSqr());return this.curve.point(s,l)},d.prototype.mul=function(e){for(var t=e.clone(),n=this,i=this.curve.point(null,null),o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var r=o.length-1;r>=0;r--)0===o[r]?(n=n.diffAdd(i,this),i=i.dbl()):(i=n.diffAdd(i,this),n=n.dbl());return i},d.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},d.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var i=n(170),o=n(16),r=n(12),a=n(6),s=i.base,l=o.utils.assert;function d(e){s.call(this,"short",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,n,i){s.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(t,16),this.y=new r(n,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,n,i){s.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(t,16),this.y=new r(n,16),this.z=new r(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(d,s),e.exports=d,d.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new r(e.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);t=(t=i[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red)}if(e.lambda)n=new r(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?n=o[0]:(n=o[1],l(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map(function(e){return{a:new r(e.a,16),b:new r(e.b,16)}}):this._getEndoBasis(n)}}},d.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:r.mont(e),n=new r(2).toRed(t).redInvm(),i=n.redNeg(),o=new r(3).toRed(t).redNeg().redSqrt().redMul(n);return[i.redAdd(o).fromRed(),i.redSub(o).fromRed()]},d.prototype._getEndoBasis=function(e){for(var t,n,i,o,a,s,l,d,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,f=this.n.clone(),p=new r(1),m=new r(0),g=new r(0),y=new r(1),v=0;0!==h.cmpn(0);){var A=f.div(h);d=f.sub(A.mul(h)),c=g.sub(A.mul(p));var b=y.sub(A.mul(m));if(!i&&d.cmp(u)<0)t=l.neg(),n=p,i=d.neg(),o=c;else if(i&&2==++v)break;l=d,f=h,h=d,g=p,p=c,y=m,m=b}a=d.neg(),s=c;var w=i.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=t,s=n),i.negative&&(i=i.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:o},{a:a,b:s}]},d.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],i=t[1],o=i.b.mul(e).divRound(this.n),r=n.b.neg().mul(e).divRound(this.n),a=o.mul(n.a),s=r.mul(i.a),l=o.mul(n.b),d=r.mul(i.b);return{k1:e.sub(a).sub(s),k2:l.add(d).neg()}},d.prototype.pointFromX=function(e,t){(e=new r(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(0!==i.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=i.fromRed().isOdd();return(t&&!o||!t&&o)&&(i=i.redNeg()),this.point(e,i)},d.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,i=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===n.redSqr().redISub(o).cmpn(0)},d.prototype._endoWnafMulAdd=function(e,t,n){for(var i=this._endoWnafT1,o=this._endoWnafT2,r=0;r<e.length;r++){var a=this._endoSplit(t[r]),s=e[r],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),i[2*r]=s,i[2*r+1]=l,o[2*r]=a.k1,o[2*r+1]=a.k2}for(var d=this._wnafMulAdd(1,i,o,2*r,n),c=0;c<2*r;c++)i[c]=null,o[c]=null;return d},a(c,s.BasePoint),d.prototype.point=function(e,t,n){return new c(this,e,t,n)},d.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,i=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var i=e.point(t[0],t[1],n);if(!t[2])return i;function o(t){return e.point(t[0],t[1],n)}var r=t[2];return i.precomputed={beta:null,doubles:r.doubles&&{step:r.doubles.step,points:[i].concat(r.doubles.points.map(o))},naf:r.naf&&{wnd:r.naf.wnd,points:[i].concat(r.naf.points.map(o))}},i},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(i),r=o.redSqr().redISub(this.x.redAdd(this.x)),a=o.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new r(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){var i=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o):this.curve._wnafMulAdd(1,i,o,2)},c.prototype.jmulAdd=function(e,t,n){var i=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o,!0):this.curve._wnafMulAdd(1,i,o,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,s.BasePoint),d.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(n,i)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(t),o=e.x.redMul(n),r=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=i.redSub(o),l=r.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=s.redSqr(),c=d.redMul(s),u=i.redMul(d),h=l.redSqr().redIAdd(c).redISub(u).redISub(u),f=l.redMul(u.redISub(h)).redISub(r.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,f,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,i=e.x.redMul(t),o=this.y,r=e.y.redMul(t).redMul(this.z),a=n.redSub(i),s=o.redSub(r);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),d=l.redMul(a),c=n.redMul(l),u=s.redSqr().redIAdd(d).redISub(c).redISub(c),h=s.redMul(c.redISub(u)).redISub(o.redMul(d)),f=this.z.redMul(a);return this.curve.jpoint(u,h,f)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}var i=this.curve.a,o=this.curve.tinv,r=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),d=a.redAdd(a);for(n=0;n<e;n++){var c=r.redSqr(),u=d.redSqr(),h=u.redSqr(),f=c.redAdd(c).redIAdd(c).redIAdd(i.redMul(l)),p=r.redMul(u),m=f.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),y=f.redMul(g);y=y.redIAdd(y).redISub(h);var v=d.redMul(s);n+1<e&&(l=l.redMul(h)),r=m,s=v,d=y}return this.curve.jpoint(r,d.redMul(o),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var i=this.x.redSqr(),o=this.y.redSqr(),r=o.redSqr(),a=this.x.redAdd(o).redSqr().redISub(i).redISub(r);a=a.redIAdd(a);var s=i.redAdd(i).redIAdd(i),l=s.redSqr().redISub(a).redISub(a),d=r.redIAdd(r);d=(d=d.redIAdd(d)).redIAdd(d),e=l,t=s.redMul(a.redISub(l)).redISub(d),n=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),u=this.y.redSqr(),h=u.redSqr(),f=this.x.redAdd(u).redSqr().redISub(c).redISub(h);f=f.redIAdd(f);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),g=h.redIAdd(h);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var i=this.x.redSqr(),o=this.y.redSqr(),r=o.redSqr(),a=this.x.redAdd(o).redSqr().redISub(i).redISub(r);a=a.redIAdd(a);var s=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var d=r.redIAdd(r);d=(d=d.redIAdd(d)).redIAdd(d),t=s.redMul(a.redISub(l)).redISub(d),n=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),u=this.y.redSqr(),h=this.x.redMul(u),f=this.x.redSub(c).redMul(this.x.redAdd(c));f=f.redAdd(f).redIAdd(f);var p=h.redIAdd(h),m=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(u).redISub(c);var g=u.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=f.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,i=this.z,o=i.redSqr().redSqr(),r=t.redSqr(),a=n.redSqr(),s=r.redAdd(r).redIAdd(r).redIAdd(e.redMul(o)),l=t.redAdd(t),d=(l=l.redIAdd(l)).redMul(a),c=s.redSqr().redISub(d.redAdd(d)),u=d.redISub(c),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=s.redMul(u).redISub(h),p=n.redAdd(n).redMul(i);return this.curve.jpoint(c,f,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),i=t.redSqr(),o=e.redAdd(e).redIAdd(e),r=o.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(i),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(r)).redSqr(),l=i.redIAdd(i);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=o.redIAdd(a).redSqr().redISub(r).redISub(s).redISub(l),c=t.redMul(d);c=(c=c.redIAdd(c)).redIAdd(c);var u=this.x.redMul(s).redISub(c);u=(u=u.redIAdd(u)).redIAdd(u);var h=this.y.redMul(d.redMul(l.redISub(d)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(u,h,f)},u.prototype.mul=function(e,t){return e=new r(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var i=t.redMul(this.z),o=n.redMul(e.z);return 0===this.y.redMul(o).redISub(e.y.redMul(i)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var i=e.clone(),o=this.curve.redN.redMul(t);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(o),0===this.x.cmp(n))return!0}return!1},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,n){"use strict";var i=n(12),o=n(16).utils,r=o.getNAF,a=o.getJSF,s=o.assert;function l(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),i=r(t,1),o=(1<<n.step+1)-(n.step%2==0?2:1);o/=3;for(var a=[],l=0;l<i.length;l+=n.step){var d=0;for(t=l+n.step-1;t>=l;t--)d=(d<<1)+i[t];a.push(d)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),h=o;h>0;h--){for(l=0;l<a.length;l++)(d=a[l])===h?u=u.mixedAdd(n.points[l]):d===-h&&(u=u.mixedAdd(n.points[l].neg()));c=c.add(u)}return c.toP()},l.prototype._wnafMul=function(e,t){var n=4,i=e._getNAFPoints(n);n=i.wnd;for(var o=i.points,a=r(t,n),l=this.jpoint(null,null,null),d=a.length-1;d>=0;d--){for(t=0;d>=0&&0===a[d];d--)t++;if(d>=0&&t++,l=l.dblp(t),d<0)break;var c=a[d];s(0!==c),l="affine"===e.type?c>0?l.mixedAdd(o[c-1>>1]):l.mixedAdd(o[-c-1>>1].neg()):c>0?l.add(o[c-1>>1]):l.add(o[-c-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,n,i,o){for(var s=this._wnafT1,l=this._wnafT2,d=this._wnafT3,c=0,u=0;u<i;u++){var h=(k=t[u])._getNAFPoints(e);s[u]=h.wnd,l[u]=h.points}for(u=i-1;u>=1;u-=2){var f=u-1,p=u;if(1===s[f]&&1===s[p]){var m=[t[f],null,null,t[p]];0===t[f].y.cmp(t[p].y)?(m[1]=t[f].add(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg())):0===t[f].y.cmp(t[p].y.redNeg())?(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].add(t[p].neg())):(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=a(n[f],n[p]);c=Math.max(y[0].length,c),d[f]=new Array(c),d[p]=new Array(c);for(var v=0;v<c;v++){var A=0|y[0][v],b=0|y[1][v];d[f][v]=g[3*(A+1)+(b+1)],d[p][v]=0,l[f]=m}}else d[f]=r(n[f],s[f]),d[p]=r(n[p],s[p]),c=Math.max(d[f].length,c),c=Math.max(d[p].length,c)}var w=this.jpoint(null,null,null),_=this._wnafT4;for(u=c;u>=0;u--){for(var M=0;u>=0;){var x=!0;for(v=0;v<i;v++)_[v]=0|d[v][u],0!==_[v]&&(x=!1);if(!x)break;M++,u--}if(u>=0&&M++,w=w.dblp(M),u<0)break;for(v=0;v<i;v++){var k,S=_[v];0!==S&&(S>0?k=l[v][S-1>>1]:S<0&&(k=l[v][-S-1>>1].neg()),w="affine"===k.type?w.mixedAdd(k):w.add(k))}}for(u=0;u<i;u++)l[u]=null;return o?w:w.toP()},l.BasePoint=d,d.prototype.eq=function(){throw new Error("Not implemented")},d.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=o.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},d.prototype.encodeCompressed=function(e){return this.encode(e,!0)},d.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},d.prototype.encode=function(e,t){return o.encode(this._encode(t),e)},d.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},d.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,o=0;o<t;o+=e){for(var r=0;r<e;r++)i=i.dbl();n.push(i)}return{step:e,points:n}},d.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,i=1===n?null:this.dbl(),o=1;o<n;o++)t[o]=t[o-1].add(i);return{wnd:e,points:t}},d.prototype._getBeta=function(){return null},d.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},function(e,t,n){"use strict";var i=t,o=n(12),r=n(17),a=n(248);i.assert=r,i.toArray=a.toArray,i.zero2=a.zero2,i.toHex=a.toHex,i.encode=a.encode,i.getNAF=function(e,t){for(var n=[],i=1<<t+1,o=e.clone();o.cmpn(1)>=0;){var r;if(o.isOdd()){var a=o.andln(i-1);r=a>(i>>1)-1?(i>>1)-a:a,o.isubn(r)}else r=0;n.push(r);for(var s=0!==o.cmpn(0)&&0===o.andln(i-1)?t+1:1,l=1;l<s;l++)n.push(0);o.iushrn(s)}return n},i.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var r,a,s,l=e.andln(3)+i&3,d=t.andln(3)+o&3;3===l&&(l=-1),3===d&&(d=-1),r=0==(1&l)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==d?l:-l,n[0].push(r),a=0==(1&d)?0:3!=(s=t.andln(7)+o&7)&&5!==s||2!==l?d:-d,n[1].push(a),2*i===r+1&&(i=1-i),2*o===a+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},i.cachedProperty=function(e,t,n){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=n.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new o(e,"hex","le")}},function(e){e.exports={_from:"elliptic@^6.0.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/node-libs-browser/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.0.0",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.0.0",saveSpec:null,fetchSpec:"^6.0.0"},_requiredBy:["/node-libs-browser/browserify-sign","/node-libs-browser/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_spec:"elliptic@^6.0.0",_where:"C:\\Users\\Jacky\\AppData\\Roaming\\npm\\node_modules\\node-libs-browser\\node_modules\\browserify-sign",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},function(e,t,n){(function(t){var i=n(263),o=n(178),r=n(16).ec,a=n(12),s=n(169),l=n(240);function d(e,n,o,r){if((e=new t(e.toArray())).length<n.byteLength()){var a=new t(n.byteLength()-e.length);a.fill(0),e=t.concat([a,e])}var s=o.length,l=function(e,n){e=(e=c(e,n)).mod(n);var i=new t(e.toArray());if(i.length<n.byteLength()){var o=new t(n.byteLength()-i.length);o.fill(0),i=t.concat([o,i])}return i}(o,n),d=new t(s);d.fill(1);var u=new t(s);return u.fill(0),u=i(r,u).update(d).update(new t([0])).update(e).update(l).digest(),d=i(r,u).update(d).digest(),{k:u=i(r,u).update(d).update(new t([1])).update(e).update(l).digest(),v:d=i(r,u).update(d).digest()}}function c(e,t){var n=new a(e),i=(e.length<<3)-t.bitLength();return i>0&&n.ishrn(i),n}function u(e,n,o){var r,a;do{for(r=new t(0);8*r.length<e.bitLength();)n.v=i(o,n.k).update(n.v).digest(),r=t.concat([r,n.v]);a=c(r,e),n.k=i(o,n.k).update(n.v).update(new t([0])).digest(),n.v=i(o,n.k).update(n.v).digest()}while(-1!==a.cmp(e));return a}function h(e,t,n,i){return e.toRed(a.mont(n)).redPow(t).fromRed().mod(i)}e.exports=function(e,n,i,f,p){var m=s(n);if(m.curve){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong private key type");return function(e,n){var i=l[n.curve.join(".")];if(!i)throw new Error("unknown curve "+n.curve.join("."));var o=new r(i).keyFromPrivate(n.privateKey).sign(e);return new t(o.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==f)throw new Error("wrong private key type");return function(e,n,i){for(var o,r=n.params.priv_key,s=n.params.p,l=n.params.q,f=n.params.g,p=new a(0),m=c(e,l).mod(l),g=!1,y=d(r,l,e,i);!1===g;)p=h(f,o=u(l,y,i),s,l),0===(g=o.invm(l).imul(m.add(r.mul(p))).mod(l)).cmpn(0)&&(g=!1,p=new a(0));return function(e,n){e=e.toArray(),n=n.toArray(),128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n));var i=[48,e.length+n.length+4,2,e.length];return i=i.concat(e,[2,n.length],n),new t(i)}(p,g)}(e,m,i)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong private key type");e=t.concat([p,e]);for(var g=m.modulus.byteLength(),y=[0,1];e.length+y.length+1<g;)y.push(255);y.push(0);for(var v=-1;++v<e.length;)y.push(e[v]);return o(y,m)},e.exports.getKey=d,e.exports.makeKey=u}).call(this,n(9).Buffer)},function(e,t,n){(function(t){var i=n(36),o=n(174),r=n(6),a=n(436),s=n(399),l=n(261);function d(e){o.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function c(e){o.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){return new d(e)}function h(e){return new c(e)}Object.keys(l).forEach(function(e){l[e].id=new t(l[e].id,"hex"),l[e.toLowerCase()]=l[e]}),r(d,o.Writable),d.prototype._write=function(e,t,n){this._hash.update(e),n()},d.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},d.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),i=a(n,e,this._hashType,this._signType,this._tag);return t?i.toString(t):i},r(c,o.Writable),c.prototype._write=function(e,t,n){this._hash.update(e),n()},c.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},c.prototype.verify=function(e,n,i){"string"==typeof n&&(n=new t(n,i)),this.end();var o=this._hash.digest();return s(n,o,e,this._signType,this._tag)},e.exports={Sign:u,Verify:h,createSign:u,createVerify:h}}).call(this,n(9).Buffer)},function(e,t,n){(function(t){var i=n(12),o=new(n(250)),r=new i(24),a=new i(11),s=new i(10),l=new i(3),d=new i(7),c=n(251),u=n(28);function h(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new i(e),this}function f(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new i(e),this}e.exports=m;var p={};function m(e,t,n){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=h,this.setPrivateKey=f):this._primeCode=8}function g(e,n){var i=new t(e.toArray());return n?i.toString(n):i}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),i=[n,e.toString(16)].join("_");if(i in p)return p[i];var u,h=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!o.test(e))return h+=1,h+="02"===n||"05"===n?8:4,p[i]=h,h;switch(o.test(e.shrn(1))||(h+=2),n){case"02":e.mod(r).cmp(a)&&(h+=8);break;case"05":(u=e.mod(s)).cmp(l)&&u.cmp(d)&&(h+=8);break;default:h+=4}return p[i]=h,h}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new i(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var n=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new t(n.toArray()),r=this.getPrime();if(o.length<r.length){var a=new t(r.length-o.length);a.fill(0),o=t.concat([a,o])}return o},m.prototype.getPublicKey=function(e){return g(this._pub,e)},m.prototype.getPrivateKey=function(e){return g(this._priv,e)},m.prototype.getPrime=function(e){return g(this.__prime,e)},m.prototype.getGenerator=function(e){return g(this._gen,e)},m.prototype.setGenerator=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.__gen=e,this._gen=new i(e),this}}).call(this,n(9).Buffer)},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t){},function(e,t){},function(e,t,n){(function(e){var i=n(251),o=n(439),r=n(438),a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(o[t].prime,"hex"),i=new e(o[t].gen,"hex");return new r(n,i)},t.createDiffieHellman=t.DiffieHellman=function t(n,o,s,l){return e.isBuffer(o)||void 0===a[o]?t(n,"binary",o,s):(o=o||"binary",l=l||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,l)),"number"==typeof n?new r(i(n,s),s,!0):(e.isBuffer(n)||(n=new e(n,o)),new r(n,s,!0)))}}).call(this,n(9).Buffer)},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,n){var i=n(253),o=n(8).Buffer,r=n(179),a=n(252),s=n(25),l=n(172),d=n(171);function c(e,t,n){s.call(this),this._cache=new u,this._last=void 0,this._cipher=new l.AES(t),this._prev=o.from(n),this._mode=e,this._autopadding=!0}function u(){this.cache=o.allocUnsafe(0)}function h(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=o.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,n,!0):"auth"===s.type?new i(s.module,t,n,!0):new c(s.module,t,n)}n(6)(c,s),c.prototype._update=function(e){var t,n;this._cache.add(e);for(var i=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),i.push(n);return o.concat(i)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},u.prototype.add=function(e){this.cache=o.concat([this.cache,e])},u.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=d(t,!1,n.key,n.iv);return h(e,i.key,i.iv)},t.createDecipheriv=h},function(e,t,n){var i=n(8).Buffer,o=i.alloc(16,0);function r(e){var t=i.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,n,i=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],o=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(o[0]^=i[0],o[1]^=i[1],o[2]^=i[2],o[3]^=i[3]),n=0!=(1&i[3]),t=3;t>0;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,n&&(i[0]=i[0]^225<<24)}this.state=r(o)},a.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,o],16)),this.ghash(r([0,e,0,t])),this.state},e.exports=a},function(e,t,n){(function(e){var i=n(33);function o(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=e.concat([t._cache,o(t)]);var r=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),i(n,r)}}).call(this,n(9).Buffer)},function(e,t,n){var i=n(8).Buffer;function o(e,t,n){for(var i,o,a,s=-1,l=0;++s<8;)i=e._cipher.encryptBlock(e._prev),o=t&1<<7-s?128:0,l+=(128&(a=i[0]^o))>>s%8,e._prev=r(e._prev,n?o:a);return l}function r(e,t){var n=e.length,o=-1,r=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++o<n;)r[o]=e[o]<<1|e[o+1]>>7;return r}t.encrypt=function(e,t,n){for(var r=t.length,a=i.allocUnsafe(r),s=-1;++s<r;)a[s]=o(e,t[s],n);return a}},function(e,t,n){var i=n(8).Buffer;function o(e,t,n){var o=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=i.concat([e._prev.slice(1),i.from([n?t:o])]),o}t.encrypt=function(e,t,n){for(var r=t.length,a=i.allocUnsafe(r),s=-1;++s<r;)a[s]=o(e,t[s],n);return a}},function(e,t,n){var i=n(8).Buffer,o=n(33);function r(e,t,n){var r=t.length,a=o(t,e._cache);return e._cache=e._cache.slice(r),e._prev=i.concat([e._prev,n?t:a]),a}t.encrypt=function(e,t,n){for(var o,a=i.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=i.allocUnsafe(0)),!(e._cache.length<=t.length)){a=i.concat([a,r(e,t,n)]);break}o=e._cache.length,a=i.concat([a,r(e,t.slice(0,o),n)]),t=t.slice(o)}return a}},function(e,t,n){var i=n(33);t.encrypt=function(e,t){var n=i(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var o=e._cipher.decryptBlock(t);return i(o,n)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,n){var i=n(179),o=n(253),r=n(8).Buffer,a=n(252),s=n(25),l=n(172),d=n(171);function c(e,t,n){s.call(this),this._cache=new h,this._cipher=new l.AES(t),this._prev=r.from(n),this._mode=e,this._autopadding=!0}n(6)(c,s),c.prototype._update=function(e){var t,n;this._cache.add(e);for(var i=[];t=this._cache.get();)n=this._mode.encrypt(this,t),i.push(n);return r.concat(i)};var u=r.alloc(16,16);function h(){this.cache=r.allocUnsafe(0)}function f(e,t,n){var s=i[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=r.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=r.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new a(s.module,t,n):"auth"===s.type?new o(s.module,t,n):new c(s.module,t,n)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=r.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=r.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return r.concat([this.cache,t])},t.createCipheriv=f,t.createCipher=function(e,t){var n=i[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var o=d(t,!1,n.key,n.iv);return f(e,o.key,o.iv)}},function(e,t,n){"use strict";var i=n(17),o=n(6),r=n(181),a=r.Cipher,s=r.DES;function l(e){a.call(this,e);var t=new function(e,t){i.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),o=t.slice(8,16),r=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:n}),s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:r})]:[s.create({type:"decrypt",key:r}),s.create({type:"encrypt",key:o}),s.create({type:"decrypt",key:n})]}(this.type,this.options.key);this._edeState=t}o(l,a),e.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,n,i){var o=this._edeState;o.ciphers[0]._update(e,t,n,i),o.ciphers[1]._update(n,i,n,i),o.ciphers[2]._update(n,i,n,i)},l.prototype._pad=s.prototype._pad,l.prototype._unpad=s.prototype._unpad},function(e,t,n){"use strict";var i=n(17),o=n(6),r={};t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}o(t,e);for(var n=Object.keys(r),i=0;i<n.length;i++){var a=n[i];t.prototype[a]=r[a]}return t.create=function(e){return new t(e)},t},r._cbcInit=function(){var e=new function(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}(this.options.iv);this._cbcState=e},r._update=function(e,t,n,i){var o=this._cbcState,r=this.constructor.super_.prototype,a=o.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];for(r._update.call(this,a,0,n,i),s=0;s<this.blockSize;s++)a[s]=n[i+s]}else{for(r._update.call(this,e,t,n,i),s=0;s<this.blockSize;s++)n[i+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},function(e,t,n){"use strict";var i=n(17),o=n(6),r=n(181),a=r.utils,s=r.Cipher;function l(e){s.call(this,e);var t=new function(){this.tmp=new Array(2),this.keys=null};this._desState=t,this.deriveKeys(t,e.key)}o(l,s),e.exports=l,l.create=function(e){return new l(e)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),i.equal(t.length,this.blockSize,"Invalid key length");var n=a.readUInt32BE(t,0),o=a.readUInt32BE(t,4);a.pc1(n,o,e.tmp,0),n=e.tmp[0],o=e.tmp[1];for(var r=0;r<e.keys.length;r+=2){var s=d[r>>>1];n=a.r28shl(n,s),o=a.r28shl(o,s),a.pc2(n,o,e.keys,r)}},l.prototype._update=function(e,t,n,i){var o=this._desState,r=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(r,s,o.tmp,0),r=o.tmp[0],s=o.tmp[1],"encrypt"===this.type?this._encrypt(o,r,s,o.tmp,0):this._decrypt(o,r,s,o.tmp,0),r=o.tmp[0],s=o.tmp[1],a.writeUInt32BE(n,r,i),a.writeUInt32BE(n,s,i+4)},l.prototype._pad=function(e,t){for(var n=e.length-t,i=t;i<e.length;i++)e[i]=n;return!0},l.prototype._unpad=function(e){for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)i.equal(e[n],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,n,i,o){for(var r=t,s=n,l=0;l<e.keys.length;l+=2){var d=e.keys[l],c=e.keys[l+1];a.expand(s,e.tmp,0),d^=e.tmp[0],c^=e.tmp[1];var u=a.substitute(d,c),h=s;s=(r^a.permute(u))>>>0,r=h}a.rip(s,r,i,o)},l.prototype._decrypt=function(e,t,n,i,o){for(var r=n,s=t,l=e.keys.length-2;l>=0;l-=2){var d=e.keys[l],c=e.keys[l+1];a.expand(r,e.tmp,0),d^=e.tmp[0],c^=e.tmp[1];var u=a.substitute(d,c),h=r;r=(s^a.permute(u))>>>0,s=h}a.rip(r,s,i,o)}},function(e,t,n){"use strict";var i=n(17);function o(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=o,o.prototype._init=function(){},o.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},o.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),i=0;i<n;i++)this.buffer[this.bufferOff+i]=e[t+i];return this.bufferOff+=n,n},o.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(e){var t=0,n=0,i=(this.bufferOff+e.length)/this.blockSize|0,o=new Array(i*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(o,n)));for(var r=e.length-(e.length-t)%this.blockSize;t<r;t+=this.blockSize)this._update(e,t,o,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return o},o.prototype._updateDecrypt=function(e){for(var t=0,n=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,o=new Array(i*this.blockSize);i>0;i--)t+=this._buffer(e,t),n+=this._flushBuffer(o,n);return t+=this._buffer(e,t),o},o.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},o.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},o.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},o.prototype._unpad=function(e){return e},o.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,n){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,i){for(var o=0,r=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)r<<=1,r|=t>>>s+a&1;for(s=1;s<=25;s+=8)r<<=1,r|=e>>>s+a&1}n[i+0]=o>>>0,n[i+1]=r>>>0},t.rip=function(e,t,n,i){for(var o=0,r=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)r<<=1,r|=t>>>s+a&1,r<<=1,r|=e>>>s+a&1;n[i+0]=o>>>0,n[i+1]=r>>>0},t.pc1=function(e,t,n,i){for(var o=0,r=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)r<<=1,r|=t>>s+a&1;for(s=0;s<=24;s+=8)r<<=1,r|=e>>s+a&1}for(s=0;s<=24;s+=8)r<<=1,r|=e>>s+a&1;n[i+0]=o>>>0,n[i+1]=r>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,o){for(var r=0,a=0,s=i.length>>>1,l=0;l<s;l++)r<<=1,r|=e>>>i[l]&1;for(l=s;l<i.length;l++)a<<=1,a|=t>>>i[l]&1;n[o+0]=r>>>0,n[o+1]=a>>>0},t.expand=function(e,t,n){var i=0,o=0;i=(1&e)<<5|e>>>27;for(var r=23;r>=15;r-=4)i<<=6,i|=e>>>r&63;for(r=11;r>=3;r-=4)o|=e>>>r&63,o<<=6;o|=(31&e)<<1|e>>>31,t[n+0]=i>>>0,t[n+1]=o>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,i=0;i<4;i++)n<<=4,n|=o[64*i+(e>>>18-6*i&63)];for(i=0;i<4;i++)n<<=4,n|=o[256+64*i+(t>>>18-6*i&63)];return n>>>0};var r=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n<r.length;n++)t<<=1,t|=e>>>r[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var i=e.toString(2);i.length<t;)i="0"+i;for(var o=[],r=0;r<t;r+=n)o.push(i.slice(r,r+n));return o.join(" ")}},function(e,t,n){(function(t){var i=n(25),o=n(181),r=n(6),a={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function s(e){i.call(this);var n,o=e.mode.toLowerCase(),r=a[o];n=e.decrypt?"decrypt":"encrypt";var s=e.key;"des-ede"!==o&&"des-ede-cbc"!==o||(s=t.concat([s,s.slice(0,8)]));var l=e.iv;this._des=r.create({key:s,iv:l,type:n})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],e.exports=s,r(s,i),s.prototype._update=function(e){return new t(this._des.update(e))},s.prototype._final=function(){return new t(this._des.final())}}).call(this,n(9).Buffer)},function(e,t,n){var i=n(458),o=n(180),r=n(179),a=n(443),s=n(171);function l(e,t,n){if(e=e.toLowerCase(),r[e])return o.createCipheriv(e,t,n);if(a[e])return new i({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function d(e,t,n){if(e=e.toLowerCase(),r[e])return o.createDecipheriv(e,t,n);if(a[e])return new i({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,i;if(e=e.toLowerCase(),r[e])n=r[e].key,i=r[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,i=a[e].iv}var o=s(t,!1,n,i);return l(e,o.key,o.iv)},t.createCipheriv=t.Cipheriv=l,t.createDecipher=t.Decipher=function(e,t){var n,i;if(e=e.toLowerCase(),r[e])n=r[e].key,i=r[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,i=a[e].iv}var o=s(t,!1,n,i);return d(e,o.key,o.iv)},t.createDecipheriv=t.Decipheriv=d,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(o.getCiphers())}},function(e,t,n){(function(t,i){var o,r=n(259),a=n(258),s=n(257),l=n(8).Buffer,d=t.crypto&&t.crypto.subtle,c={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},u=[];function h(e,t,n,i,o){return d.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return d.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:o}},e,i<<3)}).then(function(e){return l.from(e)})}e.exports=function(e,n,f,p,m,g){if(l.isBuffer(e)||(e=l.from(e,a)),l.isBuffer(n)||(n=l.from(n,a)),r(f,p),"function"==typeof m&&(g=m,m=void 0),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");var y=c[(m=m||"sha1").toLowerCase()];if(!y||"function"!=typeof t.Promise)return i.nextTick(function(){var t;try{t=s(e,n,f,p,m)}catch(e){return g(e)}g(null,t)});!function(e,t){e.then(function(e){i.nextTick(function(){t(null,e)})},function(e){i.nextTick(function(){t(e)})})}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==u[e])return u[e];var n=h(o=o||l.alloc(8),o,10,128,e).then(function(){return!0}).catch(function(){return!1});return u[e]=n,n}(y).then(function(t){return t?h(e,n,f,p,y):s(e,n,f,p,m)}),g)}}).call(this,n(22),n(23))},function(e,t,n){e.exports=n(261)},function(e,t,n){"use strict";var i=n(6),o=n(8).Buffer,r=n(25),a=o.alloc(128),s=64;function l(e,t){r.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=o.concat([t,a],s));for(var n=this._ipad=o.allocUnsafe(s),i=this._opad=o.allocUnsafe(s),l=0;l<s;l++)n[l]=54^t[l],i[l]=92^t[l];this._hash=[n]}i(l,r),l.prototype._update=function(e){this._hash.push(e)},l.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},e.exports=l},function(e,t,n){var i=n(6),o=n(264),r=n(27),a=n(8).Buffer,s=new Array(160);function l(){this.init(),this._w=s,r.call(this,128,112)}i(l,o),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,i){e.writeInt32BE(t,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},function(e,t,n){var i=n(6),o=n(265),r=n(27),a=n(8).Buffer,s=new Array(64);function l(){this.init(),this._w=s,r.call(this,64,56)}i(l,o),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},function(e,t,n){var i=n(6),o=n(27),r=n(8).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,o.call(this,64,56)}function d(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function u(e,t,n,i){return 0===e?t&n|~t&i:2===e?t&n|t&i|n&i:t^n^i}i(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,n=this._w,i=0|this._a,o=0|this._b,r=0|this._c,s=0|this._d,l=0|this._e,h=0;h<16;++h)n[h]=e.readInt32BE(4*h);for(;h<80;++h)n[h]=(t=n[h-3]^n[h-8]^n[h-14]^n[h-16])<<1|t>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=d(i)+u(p,o,r,s)+l+n[f]+a[p]|0;l=s,s=r,r=c(o),o=i,i=m}this._a=i+this._a|0,this._b=o+this._b|0,this._c=r+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=r.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},function(e,t,n){var i=n(6),o=n(27),r=n(8).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,o.call(this,64,56)}function d(e){return e<<30|e>>>2}function c(e,t,n,i){return 0===e?t&n|~t&i:2===e?t&n|t&i|n&i:t^n^i}i(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,n=this._w,i=0|this._a,o=0|this._b,r=0|this._c,s=0|this._d,l=0|this._e,u=0;u<16;++u)n[u]=e.readInt32BE(4*u);for(;u<80;++u)n[u]=n[u-3]^n[u-8]^n[u-14]^n[u-16];for(var h=0;h<80;++h){var f=~~(h/20),p=0|((t=i)<<5|t>>>27)+c(f,o,r,s)+l+n[h]+a[f];l=s,s=r,r=d(o),o=i,i=p}this._a=i+this._a|0,this._b=o+this._b|0,this._c=r+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=r.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},function(e,t,n){"use strict";(function(t){var i=n(174).Transform;function o(e){i.call(this),this._block=new t(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(6)(o,i),o.prototype._transform=function(e,n,i){var o=null;try{"buffer"!==n&&(e=new t(e,n)),this.update(e)}catch(e){o=e}i(o)},o.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,n){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");t.isBuffer(e)||(e=new t(e,n||"binary"));for(var i=this._block,o=0;this._blockOffset+e.length-o>=this._blockSize;){for(var r=this._blockOffset;r<this._blockSize;)i[r++]=e[o++];this._update(),this._blockOffset=0}for(;o<e.length;)i[this._blockOffset++]=e[o++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(e){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return void 0!==e&&(t=t.toString(e)),t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o}).call(this,n(9).Buffer)},function(e,t,n){e.exports=n(186).PassThrough},function(e,t,n){e.exports=n(186).Transform},function(e,t,n){e.exports=n(26)},function(e,t,n){e.exports=n(185)},function(e,t,n){"use strict";e.exports=r;var i=n(266),o=n(35);function r(e){if(!(this instanceof r))return new r(e);i.call(this,e)}o.inherits=n(34),o.inherits(r,i),r.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation"),i=!0}return e.apply(this,arguments)}}}).call(this,n(22))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var i,o,r,a,s,l=1,d={},c=!1,u=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick(function(){p(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){p(e.data)},i=function(e){r.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(o=u.documentElement,i=function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):i=function(e){setTimeout(p,0,e)},h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return d[l]=o,i(l),l++},h.clearImmediate=f}function f(e){delete d[e]}function p(e){if(c)setTimeout(p,0,e);else{var t=d[e];if(t){c=!0;try{!function(e){var t=e.callback,i=e.args;switch(i.length){case 0:t();break;case 1:t(i[0]);break;case 2:t(i[0],i[1]);break;case 3:t(i[0],i[1],i[2]);break;default:t.apply(n,i)}}(t)}finally{f(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(22),n(23))},function(e,t,n){(function(e){var i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(474),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(22))},function(e,t){},function(e,t,n){"use strict";var i=n(8).Buffer,o=n(476);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t,n,o=i.allocUnsafe(e>>>0),r=this.head,a=0;r;)t=o,n=a,r.data.copy(t,n),a+=r.data.length,r=r.next;return o},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){"use strict";var i=n(8).Buffer,o=n(174).Transform;function r(e){o.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(6)(r,o),r.prototype._transform=function(e,t,n){var i=null;try{this.update(e,t)}catch(e){i=e}n(i)},r.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},r.prototype.update=function(e,t){if(function(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");i.isBuffer(e)||(e=i.from(e,t));for(var n=this._block,o=0;this._blockOffset+e.length-o>=this._blockSize;){for(var r=this._blockOffset;r<this._blockSize;)n[r++]=e[o++];this._update(),this._blockOffset=0}for(;o<e.length;)n[this._blockOffset++]=e[o++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},r.prototype._update=function(){throw new Error("_update is not implemented")},r.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},r.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=r},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(28),t.createHash=t.Hash=n(36),t.createHmac=t.Hmac=n(263);var i=n(461),o=Object.keys(i),r=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);t.getHashes=function(){return r};var a=n(260);t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var s=n(459);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var l=n(442);t.DiffieHellmanGroup=l.DiffieHellmanGroup,t.createDiffieHellmanGroup=l.createDiffieHellmanGroup,t.getDiffieHellman=l.getDiffieHellman,t.createDiffieHellman=l.createDiffieHellman,t.DiffieHellman=l.DiffieHellman;var d=n(437);t.createSign=d.createSign,t.Sign=d.Sign,t.createVerify=d.createVerify,t.Verify=d.Verify,t.createECDH=n(398);var c=n(397);t.publicEncrypt=c.publicEncrypt,t.privateEncrypt=c.privateEncrypt,t.publicDecrypt=c.publicDecrypt,t.privateDecrypt=c.privateDecrypt;var u=n(394);t.randomFill=u.randomFill,t.randomFillSync=u.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t){t.read=function(e,t,n,i,o){var r,a,s=8*o-i-1,l=(1<<s)-1,d=l>>1,c=-7,u=n?o-1:0,h=n?-1:1,f=e[t+u];for(u+=h,r=f&(1<<-c)-1,f>>=-c,c+=s;c>0;r=256*r+e[t+u],u+=h,c-=8);for(a=r&(1<<-c)-1,r>>=-c,c+=i;c>0;a=256*a+e[t+u],u+=h,c-=8);if(0===r)r=1-d;else{if(r===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),r-=d}return(f?-1:1)*a*Math.pow(2,r-i)},t.write=function(e,t,n,i,o,r){var a,s,l,d=8*r-o-1,c=(1<<d)-1,u=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:r-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+u>=1?h/l:h*Math.pow(2,1-u))*l>=2&&(a++,l/=2),a+u>=c?(s=0,a=c):a+u>=1?(s=(t*l-1)*Math.pow(2,o),a+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,o),a=0));o>=8;e[n+f]=255&s,f+=p,s/=256,o-=8);for(a=a<<o|s,d+=o;d>0;e[n+f]=255&a,f+=p,a/=256,d-=8);e[n+f-p]|=128*m}},function(e,t,n){"use strict";t.byteLength=function(e){return 3*e.length/4-d(e)},t.toByteArray=function(e){var t,n,i,a,s,l=e.length;a=d(e),s=new r(3*l/4-a),n=a>0?l-4:l;var c=0;for(t=0;t<n;t+=4)i=o[e.charCodeAt(t)]<<18|o[e.charCodeAt(t+1)]<<12|o[e.charCodeAt(t+2)]<<6|o[e.charCodeAt(t+3)],s[c++]=i>>16&255,s[c++]=i>>8&255,s[c++]=255&i;return 2===a?(i=o[e.charCodeAt(t)]<<2|o[e.charCodeAt(t+1)]>>4,s[c++]=255&i):1===a&&(i=o[e.charCodeAt(t)]<<10|o[e.charCodeAt(t+1)]<<4|o[e.charCodeAt(t+2)]>>2,s[c++]=i>>8&255,s[c++]=255&i),s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,r="",a=[],s=0,l=n-o;s<l;s+=16383)a.push(c(e,s,s+16383>l?l:s+16383));return 1===o?(t=e[n-1],r+=i[t>>2],r+=i[t<<4&63],r+="=="):2===o&&(t=(e[n-2]<<8)+e[n-1],r+=i[t>>10],r+=i[t>>4&63],r+=i[t<<2&63],r+="="),a.push(r),a.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)i[s]=a[s],o[a.charCodeAt(s)]=s;function d(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function c(e,t,n){for(var o,r,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(i[(r=o)>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t,n){var i;!function(o,r){"use strict";var a,s,l,d=o,c=d.document,u=d.navigator,h=d.setTimeout,f=d.clearTimeout,p=d.setInterval,m=d.clearInterval,g=d.getComputedStyle,y=d.encodeURIComponent,v=d.ActiveXObject,A=d.Error,b=d.Number.parseInt||d.parseInt,w=d.Number.parseFloat||d.parseFloat,_=d.Number.isNaN||d.isNaN,M=d.Date.now,x=d.Object.keys,k=d.Object.prototype.hasOwnProperty,S=d.Array.prototype.slice,C=function(){var e=function(e){return e};if("function"==typeof d.wrap&&"function"==typeof d.unwrap)try{var t=c.createElement("div"),n=d.unwrap(t);1===t.nodeType&&n&&1===n.nodeType&&(e=d.unwrap)}catch(e){}return e}(),E=function(e){return S.call(e,0)},L=function(){var e,t,n,i,o,r=E(arguments),a=r[0]||{};for(e=1,t=r.length;e<t;e++)if(null!=(n=r[e]))for(i in n)k.call(n,i)&&(a[i],a!==(o=n[i])&&void 0!==o&&(a[i]=o));return a},T=function(e){var t,n,i,o;if("object"!=typeof e||null==e||"number"==typeof e.nodeType)t=e;else if("number"==typeof e.length)for(t=[],n=0,i=e.length;n<i;n++)k.call(e,n)&&(t[n]=T(e[n]));else for(o in t={},e)k.call(e,o)&&(t[o]=T(e[o]));return t},D=function(e,t){if(e&&1===e.nodeType&&e.ownerDocument&&t&&(1===t.nodeType&&t.ownerDocument&&t.ownerDocument===e.ownerDocument||9===t.nodeType&&!t.ownerDocument&&t===e.ownerDocument))do{if(e===t)return!0;e=e.parentNode}while(e);return!1},Y=function(e){var t;return"string"==typeof e&&e&&(t=e.split("#")[0].split("?")[0],t=e.slice(0,e.lastIndexOf("/")+1)),t},R=null==d.opener&&(!!d.top&&d!=d.top||!!d.parent&&d!=d.parent),B="html"===c.documentElement.nodeName,O={bridge:null,version:"0.0.0",pluginType:"unknown",sandboxed:null,disabled:null,outdated:null,insecure:null,unavailable:null,degraded:null,deactivated:null,overdue:null,ready:null},H={},P={},I=null,j=0,F=0,N={ready:"Flash communication is established",error:{"flash-sandboxed":"Attempting to run Flash in a sandboxed iframe, which is impossible","flash-disabled":"Flash is disabled or not installed. May also be attempting to run Flash in a sandboxed iframe, which is impossible.","flash-outdated":"Flash is too outdated to support ZeroClipboard","flash-insecure":"Flash will be unable to communicate due to a protocol mismatch between your `swfPath` configuration and the page","flash-unavailable":"Flash is unable to communicate bidirectionally with JavaScript","flash-degraded":"Flash is unable to preserve data fidelity when communicating with JavaScript","flash-deactivated":"Flash is too outdated for your browser and/or is configured as click-to-activate.\nThis may also mean that the ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity.\nMay also be attempting to run Flash in a sandboxed iframe, which is impossible.","flash-overdue":"Flash communication was established but NOT within the acceptable time limit","version-mismatch":"ZeroClipboard JS version number does not match ZeroClipboard SWF version number","clipboard-error":"At least one error was thrown while ZeroClipboard was attempting to inject your data into the clipboard","config-mismatch":"ZeroClipboard configuration does not match Flash's reality","swf-not-found":"The ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity","browser-unsupported":"The browser does not support the required HTML DOM and JavaScript features"}},z=["flash-unavailable","flash-degraded","flash-overdue","version-mismatch","config-mismatch","clipboard-error"],W=["flash-sandboxed","flash-disabled","flash-outdated","flash-insecure","flash-unavailable","flash-degraded","flash-deactivated","flash-overdue"],$=new RegExp("^flash-("+W.map(function(e){return e.replace(/^flash-/,"")}).join("|")+")$"),U=new RegExp("^flash-("+W.filter(function(e){return"flash-disabled"!==e}).map(function(e){return e.replace(/^flash-/,"")}).join("|")+")$"),Q={swfPath:(Y(function(){var e,t,n;if(c.currentScript&&(e=c.currentScript.src))return e;if(1===(t=c.getElementsByTagName("script")).length)return t[0].src||void 0;if("readyState"in(t[0]||document.createElement("script")))for(n=t.length;n--;)if("interactive"===t[n].readyState&&(e=t[n].src))return e;return"loading"===c.readyState&&(e=t[t.length-1].src)?e:(e=function(){var e,t;try{throw new A}catch(e){t=e}return t&&(e=t.sourceURL||t.fileName||function(e){var t,n;return"string"==typeof e&&e&&((n=e.match(/^(?:|[^:@]*@|.+\)@(?=http[s]?|file)|.+?\s+(?: at |@)(?:[^:\(]+ )*[\(]?)((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/))&&n[1]?t=n[1]:(n=e.match(/\)@((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/))&&n[1]&&(t=n[1])),t}(t.stack)),e}())?e:void 0}())||function(){var e,t,n,i=c.getElementsByTagName("script");for(e=i.length;e--;){if(!(n=i[e].src)){t=null;break}if(n=Y(n),null==t)t=n;else if(t!==n){t=null;break}}return t||void 0}()||"")+"ZeroClipboard.swf",trustedDomains:d.location.host?[d.location.host]:[],cacheBust:!0,forceEnhancedClipboard:!1,flashLoadTimeout:3e4,autoActivate:!0,bubbleEvents:!0,fixLineEndings:!0,containerId:"global-zeroclipboard-html-bridge",containerClass:"global-zeroclipboard-container",swfObjectId:"global-zeroclipboard-flash-bridge",hoverClass:"zeroclipboard-is-hover",activeClass:"zeroclipboard-is-active",forceHandCursor:!1,title:null,zIndex:999999999},G=function(){return!!(c.addEventListener&&d.Object.keys&&d.Array.prototype.map)},V=function(){var e=Q.swfPath||"",t=e.slice(0,2),n=e.slice(0,e.indexOf("://")+1);return"\\\\"===t?"file:":"//"===t||""===n?d.location.protocol:n},J=function(e){var t;if("string"==typeof e&&e?(t=e,e={}):"object"==typeof e&&e&&"string"==typeof e.type&&e.type&&(t=e.type),t){t=t.toLowerCase(),!e.target&&(/^(copy|aftercopy|_click)$/.test(t)||"error"===t&&"clipboard-error"===e.name)&&(e.target=l),L(e,{type:t,target:e.target||s||null,relatedTarget:e.relatedTarget||null,currentTarget:O&&O.bridge||null,timeStamp:e.timeStamp||M()||null});var n=N[e.type];return"error"===e.type&&e.name&&n&&(n=n[e.name]),n&&(e.message=n),"ready"===e.type&&L(e,{target:null,version:O.version}),"error"===e.type&&($.test(e.name)&&L(e,{target:null,minimumVersion:"11.0.0"}),U.test(e.name)&&L(e,{version:O.version}),"flash-insecure"===e.name&&L(e,{pageProtocol:d.location.protocol,swfProtocol:V()})),"copy"===e.type&&(e.clipboardData={setData:Ae.setData,clearData:Ae.clearData}),"aftercopy"===e.type&&(e=ie(e,I)),e.target&&!e.relatedTarget&&(e.relatedTarget=K(e.target)),X(e)}},K=function(e){var t=e&&e.getAttribute&&e.getAttribute("data-clipboard-target");return t?c.getElementById(t):null},X=function(e){if(e&&/^_(?:click|mouse(?:over|out|down|up|move))$/.test(e.type)){var t=e.target,n="_mouseover"===e.type&&e.relatedTarget?e.relatedTarget:void 0,i="_mouseout"===e.type&&e.relatedTarget?e.relatedTarget:void 0,o=he(t),r=d.screenLeft||d.screenX||0,a=d.screenTop||d.screenY||0,s=c.body.scrollLeft+c.documentElement.scrollLeft,l=c.body.scrollTop+c.documentElement.scrollTop,u=o.left+("number"==typeof e._stageX?e._stageX:0),h=o.top+("number"==typeof e._stageY?e._stageY:0),f=u-s,p=h-l,m=r+f,g=a+p,y="number"==typeof e.movementX?e.movementX:0,v="number"==typeof e.movementY?e.movementY:0;delete e._stageX,delete e._stageY,L(e,{srcElement:t,fromElement:n,toElement:i,screenX:m,screenY:g,pageX:u,pageY:h,clientX:f,clientY:p,x:f,y:p,movementX:y,movementY:v,offsetX:0,offsetY:0,layerX:0,layerY:0})}return e},q=function(e){var t=e&&"string"==typeof e.type&&e.type||"";return!/^(?:(?:before)?copy|destroy)$/.test(t)},Z=function(e,t,n,i){i?h(function(){e.apply(t,n)},0):e.apply(t,n)},ee=function(e){if(e.errors&&e.errors.length>0){var t=T(e);L(t,{type:"error",name:"clipboard-error"}),delete t.success,h(function(){Ae.emit(t)},0)}},te=function(e){if(e&&"string"==typeof e.type&&e){var t,n=e.target||null,i=n&&n.ownerDocument||c,o={view:i.defaultView||d,canBubble:!0,cancelable:!0,detail:"click"===e.type?1:0,button:"number"==typeof e.which?e.which-1:"number"==typeof e.button?e.button:i.createEvent?0:1},r=L(o,e);n&&i.createEvent&&n.dispatchEvent&&(r=[r.type,r.canBubble,r.cancelable,r.view,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget],(t=i.createEvent("MouseEvents")).initMouseEvent&&(t.initMouseEvent.apply(t,r),t._source="js",n.dispatchEvent(t)))}},ne=function(e){for(var t=e&&e.parentNode;t&&"OBJECT"===t.nodeName&&t.parentNode;)t=t.parentNode;return t||null},ie=function(e,t){if("object"!=typeof e||!e||"object"!=typeof t||!t)return e;var n={};for(var i in e)if(k.call(e,i))if("errors"===i){n[i]=e[i]?e[i].slice():[];for(var o=0,r=n[i].length;o<r;o++)n[i][o].format=t[n[i][o].format]}else if("success"!==i&&"data"!==i)n[i]=e[i];else{n[i]={};var a=e[i];for(var s in a)s&&k.call(a,s)&&k.call(t,s)&&(n[i][t[s]]=a[s])}return n},oe=function(e,t){return null==t||t&&!0===t.cacheBust?(-1===e.indexOf("?")?"?":"&")+"noCache="+M():""},re=function(e){var t,n,i,o,r="",a=[];if(e.trustedDomains&&("string"==typeof e.trustedDomains?o=[e.trustedDomains]:"object"==typeof e.trustedDomains&&"length"in e.trustedDomains&&(o=e.trustedDomains)),o&&o.length)for(t=0,n=o.length;t<n;t++)if(k.call(o,t)&&o[t]&&"string"==typeof o[t]){if(!(i=ae(o[t])))continue;if("*"===i){a.length=0,a.push(i);break}a.push.apply(a,[i,"//"+i,d.location.protocol+"//"+i])}return a.length&&(r+="trustedOrigins="+y(a.join(","))),!0===e.forceEnhancedClipboard&&(r+=(r?"&":"")+"forceEnhancedClipboard=true"),"string"==typeof e.swfObjectId&&e.swfObjectId&&(r+=(r?"&":"")+"swfObjectId="+y(e.swfObjectId)),"string"==typeof e.jsVersion&&e.jsVersion&&(r+=(r?"&":"")+"jsVersion="+y(e.jsVersion)),r},ae=function(e){if(null==e||""===e)return null;if(""===(e=e.replace(/^\s+|\s+$/g,"")))return null;var t=e.indexOf("//"),n=(e=-1===t?e:e.slice(t+2)).indexOf("/");return(e=-1===n?e:-1===t||0===n?null:e.slice(0,n))&&".swf"===e.slice(-4).toLowerCase()?null:e||null},se=function(e,t){var n=ae(t.swfPath);null===n&&(n=e);var i=function(e){var t,n,i,o=[];if("string"==typeof e&&(e=[e]),"object"!=typeof e||!e||"number"!=typeof e.length)return o;for(t=0,n=e.length;t<n;t++)if(k.call(e,t)&&(i=ae(e[t]))){if("*"===i){o.length=0,o.push("*");break}-1===o.indexOf(i)&&o.push(i)}return o}(t.trustedDomains),o=i.length;if(o>0){if(1===o&&"*"===i[0])return"always";if(-1!==i.indexOf(e))return 1===o&&e===n?"sameDomain":"always"}return"never"},le=function(){try{return c.activeElement}catch(e){return null}},de=function(e,t){var n,i,o,r=[];if("string"==typeof t&&t&&(r=t.split(/\s+/)),e&&1===e.nodeType&&r.length>0){for(o=(" "+(e.className||"")+" ").replace(/[\t\r\n\f]/g," "),n=0,i=r.length;n<i;n++)-1===o.indexOf(" "+r[n]+" ")&&(o+=r[n]+" ");(o=o.replace(/^\s+|\s+$/g,""))!==e.className&&(e.className=o)}return e},ce=function(e,t){var n,i,o,r=[];if("string"==typeof t&&t&&(r=t.split(/\s+/)),e&&1===e.nodeType&&r.length>0&&e.className){for(o=(" "+e.className+" ").replace(/[\t\r\n\f]/g," "),n=0,i=r.length;n<i;n++)o=o.replace(" "+r[n]+" "," ");(o=o.replace(/^\s+|\s+$/g,""))!==e.className&&(e.className=o)}return e},ue=function(e,t){var n=g(e,null).getPropertyValue(t);return"cursor"!==t||n&&"auto"!==n||"A"!==e.nodeName?n:"pointer"},he=function(e){var t={left:0,top:0,width:0,height:0};if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),i=d.pageXOffset,o=d.pageYOffset,r=c.documentElement.clientLeft||0,a=c.documentElement.clientTop||0,s=0,l=0;if("relative"===ue(c.body,"position")){var u=c.body.getBoundingClientRect(),h=c.documentElement.getBoundingClientRect();s=u.left-h.left||0,l=u.top-h.top||0}t.left=n.left+i-r-s,t.top=n.top+o-a-l,t.width="width"in n?n.width:n.right-n.left,t.height="height"in n?n.height:n.bottom-n.top}return t},fe=function(e){if(!e)return!1;var t=g(e,null);if(!t)return!1;var n=w(t.height)>0,i=w(t.width)>0,o=w(t.top)>=0,r=w(t.left)>=0,a=n&&i&&o&&r,s=a?null:he(e);return"none"!==t.display&&"collapse"!==t.visibility&&(a||!!s&&(n||s.height>0)&&(i||s.width>0)&&(o||s.top>=0)&&(r||s.left>=0))},pe=function(){f(j),j=0,m(F),F=0},me=function(e){return/^(?:auto|inherit)$/.test(e)?e:("number"!=typeof e||_(e)?"string"==typeof e&&(t=me(b(e,10))):t=e,"number"==typeof t?t:"auto");var t},ge=function(e){var t,n=/(\r\n|\r|\n)/g;return"string"==typeof e&&!0===Q.fixLineEndings&&(t=/win(dows|[\s]?(nt|me|ce|xp|vista|[\d]+))/i,u&&(t.test(u.appVersion||"")||t.test(u.platform||"")||-1!==(u.userAgent||"").indexOf("Windows"))?/((^|[^\r])\n|\r([^\n]|$))/.test(e)&&(e=e.replace(n,"\r\n")):/\r/.test(e)&&(e=e.replace(n,"\n"))),e},ye=function(e){var t,n,i,r=O.sandboxed,a=null;if(e=!0===e,!1===R)a=!1;else{try{n=o.frameElement||null}catch(e){i={name:e.name,message:e.message}}if(n&&1===n.nodeType&&"IFRAME"===n.nodeName)try{a=n.hasAttribute("sandbox")}catch(e){a=null}else{try{t=document.domain||null}catch(e){t=null}(null===t||i&&"SecurityError"===i.name&&/(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(i.message.toLowerCase()))&&(a=!0)}}return O.sandboxed=a,r===a||e||ve(v),a},ve=function(e){var t,n,i=!1,o=!1,r=!1,a="";function s(e){var t=e.match(/[\d]+/g);return t.length=3,t.join(".")}function l(e){var t;e&&(i=!0,e.version&&(a=s(e.version)),!a&&e.description&&(a=s(e.description)),e.filename&&(t=e.filename,r=!!t&&(t=t.toLowerCase())&&(/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(t)||"chrome.plugin"===t.slice(-13))))}if(u.plugins&&u.plugins.length)l(u.plugins["Shockwave Flash"]),u.plugins["Shockwave Flash 2.0"]&&(i=!0,a="2.0.0.11");else if(u.mimeTypes&&u.mimeTypes.length)l((n=u.mimeTypes["application/x-shockwave-flash"])&&n.enabledPlugin);else if(void 0!==e){o=!0;try{t=new e("ShockwaveFlash.ShockwaveFlash.7"),i=!0,a=s(t.GetVariable("$version"))}catch(n){try{t=new e("ShockwaveFlash.ShockwaveFlash.6"),i=!0,a="6.0.21"}catch(n){try{t=new e("ShockwaveFlash.ShockwaveFlash"),i=!0,a=s(t.GetVariable("$version"))}catch(e){o=!1}}}}O.disabled=!0!==i,O.outdated=a&&w(a)<w("11.0.0"),O.version=a||"0.0.0",O.pluginType=r?"pepper":o?"activex":i?"netscape":"unknown"};ve(v),ye(!0);var Ae=function(){if(!(this instanceof Ae))return new Ae;"function"==typeof Ae._createClient&&Ae._createClient.apply(this,E(arguments))};Ae.version="2.3.0",Ae.config=function(){return function(e){return"object"!=typeof e||!e||"length"in e||x(e).forEach(function(t){if(/^(?:forceHandCursor|title|zIndex|bubbleEvents|fixLineEndings)$/.test(t))Q[t]=e[t];else if(null==O.bridge)if("containerId"===t||"swfObjectId"===t){if(!function(e){return"string"==typeof e&&e&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(e)}(e[t]))throw new Error("The specified `"+t+"` value is not valid as an HTML4 Element ID");Q[t]=e[t]}else Q[t]=e[t]}),"string"==typeof e&&e?k.call(Q,e)?Q[e]:void 0:T(Q)}.apply(this,E(arguments))},Ae.state=function(){return function(){return ye(),{browser:L(function(e,t){for(var n={},i=0,o=t.length;i<o;i++)t[i]in e&&(n[t[i]]=e[t[i]]);return n}(u,["userAgent","platform","appName","appVersion"]),{isSupported:G()}),flash:function(e,t){var n={};for(var i in e)-1===t.indexOf(i)&&(n[i]=e[i]);return n}(O,["bridge"]),zeroclipboard:{version:Ae.version,config:Ae.config()}}}.apply(this,E(arguments))},Ae.isFlashUnusable=function(){return function(){return!!(O.sandboxed||O.disabled||O.outdated||O.unavailable||O.degraded||O.deactivated)}.apply(this,E(arguments))},Ae.on=function(){return function(e,t){var n,i,o,r={};if("string"==typeof e&&e?o=e.toLowerCase().split(/\s+/):"object"!=typeof e||!e||"length"in e||void 0!==t||x(e).forEach(function(t){var n=e[t];"function"==typeof n&&Ae.on(t,n)}),o&&o.length&&t){for(n=0,i=o.length;n<i;n++)r[e=o[n].replace(/^on/,"")]=!0,H[e]||(H[e]=[]),H[e].push(t);if(r.ready&&O.ready&&Ae.emit({type:"ready"}),r.error){for(G()||Ae.emit({type:"error",name:"browser-unsupported"}),n=0,i=W.length;n<i;n++)if(!0===O[W[n].replace(/^flash-/,"")]){Ae.emit({type:"error",name:W[n]});break}void 0!==a&&Ae.version!==a&&Ae.emit({type:"error",name:"version-mismatch",jsVersion:Ae.version,swfVersion:a})}}return Ae}.apply(this,E(arguments))},Ae.off=function(){return function(e,t){var n,i,o,r,a;if(0===arguments.length?r=x(H):"string"==typeof e&&e?r=e.toLowerCase().split(/\s+/):"object"!=typeof e||!e||"length"in e||void 0!==t||x(e).forEach(function(t){var n=e[t];"function"==typeof n&&Ae.off(t,n)}),r&&r.length)for(n=0,i=r.length;n<i;n++)if(e=r[n].replace(/^on/,""),(a=H[e])&&a.length)if(t)for(o=a.indexOf(t);-1!==o;)a.splice(o,1),o=a.indexOf(t,o);else a.length=0;return Ae}.apply(this,E(arguments))},Ae.handlers=function(){return function(e){return"string"==typeof e&&e?T(H[e])||null:T(H)}.apply(this,E(arguments))},Ae.emit=function(){return function(e){var t,n,i;if((e=J(e))&&!function(e){var t=e.target||s||null,n="swf"===e._source;switch(delete e._source,e.type){case"error":var i="flash-sandboxed"===e.name||function(e){var t=null;return(!1===R||e&&"error"===e.type&&e.name&&-1!==z.indexOf(e.name))&&(t=!1),t}(e);"boolean"==typeof i&&(O.sandboxed=i),"browser-unsupported"===e.name?L(O,{disabled:!1,outdated:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:!1,ready:!1}):-1!==W.indexOf(e.name)?L(O,{disabled:"flash-disabled"===e.name,outdated:"flash-outdated"===e.name,insecure:"flash-insecure"===e.name,unavailable:"flash-unavailable"===e.name,degraded:"flash-degraded"===e.name,deactivated:"flash-deactivated"===e.name,overdue:"flash-overdue"===e.name,ready:!1}):"version-mismatch"===e.name&&(a=e.swfVersion,L(O,{disabled:!1,outdated:!1,insecure:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:!1,ready:!1})),pe();break;case"ready":a=e.swfVersion;var o=!0===O.deactivated;L(O,{sandboxed:!1,disabled:!1,outdated:!1,insecure:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:o,ready:!o}),pe();break;case"beforecopy":l=t;break;case"copy":var r,d,c=e.relatedTarget;!P["text/html"]&&!P["text/plain"]&&c&&(d=c.value||c.outerHTML||c.innerHTML)&&(r=c.value||c.textContent||c.innerText)?(e.clipboardData.clearData(),e.clipboardData.setData("text/plain",r),d!==r&&e.clipboardData.setData("text/html",d)):!P["text/plain"]&&e.target&&(r=e.target.getAttribute("data-clipboard-text"))&&(e.clipboardData.clearData(),e.clipboardData.setData("text/plain",r));break;case"aftercopy":ee(e),Ae.clearData(),t&&t!==le()&&t.focus&&t.focus();break;case"_mouseover":Ae.focus(t),!0===Q.bubbleEvents&&n&&(t&&t!==e.relatedTarget&&!D(e.relatedTarget,t)&&te(L({},e,{type:"mouseenter",bubbles:!1,cancelable:!1})),te(L({},e,{type:"mouseover"})));break;case"_mouseout":Ae.blur(),!0===Q.bubbleEvents&&n&&(t&&t!==e.relatedTarget&&!D(e.relatedTarget,t)&&te(L({},e,{type:"mouseleave",bubbles:!1,cancelable:!1})),te(L({},e,{type:"mouseout"})));break;case"_mousedown":de(t,Q.activeClass),!0===Q.bubbleEvents&&n&&te(L({},e,{type:e.type.slice(1)}));break;case"_mouseup":ce(t,Q.activeClass),!0===Q.bubbleEvents&&n&&te(L({},e,{type:e.type.slice(1)}));break;case"_click":l=null,!0===Q.bubbleEvents&&n&&te(L({},e,{type:e.type.slice(1)}));break;case"_mousemove":!0===Q.bubbleEvents&&n&&te(L({},e,{type:e.type.slice(1)}))}if(/^_(?:click|mouse(?:over|out|down|up|move))$/.test(e.type))return!0}(e))return"ready"===e.type&&!0===O.overdue?Ae.emit({type:"error",name:"flash-overdue"}):(t=L({},e),function(e){if("object"==typeof e&&e&&e.type){var t,n,i,o,r,a=q(e),s=H["*"]||[],l=H[e.type]||[],c=s.concat(l);if(c&&c.length)for(t=0,n=c.length;t<n;t++)o=this,"string"==typeof(i=c[t])&&"function"==typeof d[i]&&(i=d[i]),"object"==typeof i&&i&&"function"==typeof i.handleEvent&&(o=i,i=i.handleEvent),"function"==typeof i&&(r=L({},e),Z(i,o,[r],a));return this}}.call(this,t),"copy"===e.type&&(n=(i=function(e){var t={},n={};if("object"==typeof e&&e){for(var i in e)if(i&&k.call(e,i)&&"string"==typeof e[i]&&e[i])switch(i.toLowerCase()){case"text/plain":case"text":case"air:text":case"flash:text":t.text=e[i],n.text=i;break;case"text/html":case"html":case"air:html":case"flash:html":t.html=e[i],n.html=i;break;case"application/rtf":case"text/rtf":case"rtf":case"richtext":case"air:rtf":case"flash:rtf":t.rtf=e[i],n.rtf=i}return{data:t,formatMap:n}}}(P)).data,I=i.formatMap),n)}.apply(this,E(arguments))},Ae.create=function(){return function(){var e,t,n=O.sandboxed;if(!G())return O.ready=!1,void Ae.emit({type:"error",name:"browser-unsupported"});ye(),"boolean"!=typeof O.ready&&(O.ready=!1),O.sandboxed!==n&&!0===O.sandboxed?(O.ready=!1,Ae.emit({type:"error",name:"flash-sandboxed"})):Ae.isFlashUnusable()||null!==O.bridge||((t=V())&&t!==d.location.protocol?Ae.emit({type:"error",name:"flash-insecure"}):("number"==typeof(e=Q.flashLoadTimeout)&&e>=0&&(j=h(function(){"boolean"!=typeof O.deactivated&&(O.deactivated=!0),!0===O.deactivated&&Ae.emit({type:"error",name:"flash-deactivated"})},e)),O.overdue=!1,function(){var e,t,n=O.bridge,i=ne(n);if(!n){var o=se(d.location.host,Q),r="never"===o?"none":"all",a=re(L({jsVersion:Ae.version},Q)),s=Q.swfPath+oe(Q.swfPath,Q);B&&(s="string"==typeof(t=s)&&t?t.replace(/["&'<>]/g,function(e){switch(e){case'"':return"&quot;";case"&":return"&amp;";case"'":return"&apos;";case"<":return"&lt;";case">":return"&gt;";default:return e}}):t),i=function(){var e=c.createElement("div");return e.id=Q.containerId,e.className=Q.containerClass,e.style.position="absolute",e.style.left="0px",e.style.top="-9999px",e.style.width="1px",e.style.height="1px",e.style.zIndex=""+me(Q.zIndex),e}();var l=c.createElement("div");i.appendChild(l),c.body.appendChild(i);var u=c.createElement("div"),h="activex"===O.pluginType;u.innerHTML='<object id="'+Q.swfObjectId+'" name="'+Q.swfObjectId+'" width="100%" height="100%" '+(h?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"':'type="application/x-shockwave-flash" data="'+s+'"')+">"+(h?'<param name="movie" value="'+s+'"/>':"")+'<param name="allowScriptAccess" value="'+o+'"/><param name="allowNetworking" value="'+r+'"/><param name="menu" value="false"/><param name="wmode" value="transparent"/><param name="flashvars" value="'+a+'"/><div id="'+Q.swfObjectId+'_fallbackContent">&nbsp;</div></object>',n=u.firstChild,u=null,C(n).ZeroClipboard=Ae,i.replaceChild(n,l),function(){var e=Q.flashLoadTimeout;if("number"==typeof e&&e>=0){var t=Math.min(1e3,e/10),n=Q.swfObjectId+"_fallbackContent";F=p(function(){var e=c.getElementById(n);fe(e)&&(pe(),O.deactivated=null,Ae.emit({type:"error",name:"swf-not-found"}))},t)}}()}n||((n=c[Q.swfObjectId])&&(e=n.length)&&(n=n[e-1]),!n&&i&&(n=i.firstChild)),O.bridge=n||null}()))}.apply(this,E(arguments))},Ae.destroy=function(){return function(){Ae.clearData(),Ae.blur(),Ae.emit("destroy"),function(){var e=O.bridge;if(e){var t=ne(e);t&&("activex"===O.pluginType&&"readyState"in e?(e.style.display="none",function n(){if(4===e.readyState){for(var i in e)"function"==typeof e[i]&&(e[i]=null);e.parentNode&&e.parentNode.removeChild(e),t.parentNode&&t.parentNode.removeChild(t)}else h(n,10)}()):(e.parentNode&&e.parentNode.removeChild(e),t.parentNode&&t.parentNode.removeChild(t))),pe(),O.ready=null,O.bridge=null,O.deactivated=null,O.insecure=null,a=void 0}}(),Ae.off()}.apply(this,E(arguments))},Ae.setData=function(){return function(e,t){var n;if("object"==typeof e&&e&&void 0===t)n=e,Ae.clearData();else{if("string"!=typeof e||!e)return;(n={})[e]=t}for(var i in n)"string"==typeof i&&i&&k.call(n,i)&&"string"==typeof n[i]&&n[i]&&(P[i]=ge(n[i]))}.apply(this,E(arguments))},Ae.clearData=function(){return function(e){void 0===e?(function(e){if(e)for(var t in e)k.call(e,t)&&delete e[t]}(P),I=null):"string"==typeof e&&k.call(P,e)&&delete P[e]}.apply(this,E(arguments))},Ae.getData=function(){return function(e){return void 0===e?T(P):"string"==typeof e&&k.call(P,e)?P[e]:void 0}.apply(this,E(arguments))},Ae.focus=Ae.activate=function(){return function(e){if(e&&1===e.nodeType){s&&(ce(s,Q.activeClass),s!==e&&ce(s,Q.hoverClass)),s=e,de(e,Q.hoverClass);var t=e.getAttribute("title")||Q.title;if("string"==typeof t&&t){var n=ne(O.bridge);n&&n.setAttribute("title",t)}(function(e){!0===O.ready&&(O.bridge&&"function"==typeof O.bridge.setHandCursor?O.bridge.setHandCursor(e):O.ready=!1)})(!0===Q.forceHandCursor||"pointer"===ue(e,"cursor")),function(){var e;if(s&&(e=ne(O.bridge))){var t=he(s);L(e.style,{width:t.width+"px",height:t.height+"px",top:t.top+"px",left:t.left+"px",zIndex:""+me(Q.zIndex)})}}()}}.apply(this,E(arguments))},Ae.blur=Ae.deactivate=function(){return function(){var e=ne(O.bridge);e&&(e.removeAttribute("title"),e.style.left="0px",e.style.top="-9999px",e.style.width="1px",e.style.height="1px"),s&&(ce(s,Q.hoverClass),ce(s,Q.activeClass),s=null)}.apply(this,E(arguments))},Ae.activeElement=function(){return function(){return s||null}.apply(this,E(arguments))};var be=0,we={},_e=0,Me={},xe={};L(Q,{autoActivate:!0});var ke=function(e){return"string"==typeof e&&(e=[]),"number"!=typeof e.length?[e]:e},Se=function(e){if(e&&1===e.nodeType){var t=function(e){(e||(e=d.event))&&("js"!==e._source&&(e.stopImmediatePropagation(),e.preventDefault()),delete e._source)},n=function(n){(n||(n=d.event))&&(t(n),Ae.focus(e))};e.addEventListener("mouseover",n,!1),e.addEventListener("mouseout",t,!1),e.addEventListener("mouseenter",t,!1),e.addEventListener("mouseleave",t,!1),e.addEventListener("mousemove",t,!1),xe[e.zcClippingId]={mouseover:n,mouseout:t,mouseenter:t,mouseleave:t,mousemove:t}}},Ce=function(e){if(e&&1===e.nodeType){var t=xe[e.zcClippingId];if("object"==typeof t&&t){for(var n,i,o=["move","leave","enter","out","over"],r=0,a=o.length;r<a;r++)"function"==typeof(i=t[n="mouse"+o[r]])&&e.removeEventListener(n,i,!1);delete xe[e.zcClippingId]}}};Ae._createClient=function(){(function(e){var t,n=this;n.id=""+be++,t={instance:n,elements:[],handlers:{},coreWildcardHandler:function(e){return n.emit(e)}},we[n.id]=t,e&&n.clip(e),Ae.on("*",t.coreWildcardHandler),Ae.on("destroy",function(){n.destroy()}),Ae.create()}).apply(this,E(arguments))},Ae.prototype.on=function(){return function(e,t){var n,i,o,r={},s=this,l=we[s.id],d=l&&l.handlers;if(!l)throw new Error("Attempted to add new listener(s) to a destroyed ZeroClipboard client instance");if("string"==typeof e&&e?o=e.toLowerCase().split(/\s+/):"object"!=typeof e||!e||"length"in e||void 0!==t||x(e).forEach(function(t){var n=e[t];"function"==typeof n&&s.on(t,n)}),o&&o.length&&t){for(n=0,i=o.length;n<i;n++)r[e=o[n].replace(/^on/,"")]=!0,d[e]||(d[e]=[]),d[e].push(t);if(r.ready&&O.ready&&this.emit({type:"ready",client:this}),r.error){for(n=0,i=W.length;n<i;n++)if(O[W[n].replace(/^flash-/,"")]){this.emit({type:"error",name:W[n],client:this});break}void 0!==a&&Ae.version!==a&&this.emit({type:"error",name:"version-mismatch",jsVersion:Ae.version,swfVersion:a})}}return s}.apply(this,E(arguments))},Ae.prototype.off=function(){return function(e,t){var n,i,o,r,a,s=this,l=we[s.id],d=l&&l.handlers;if(!d)return s;if(0===arguments.length?r=x(d):"string"==typeof e&&e?r=e.split(/\s+/):"object"!=typeof e||!e||"length"in e||void 0!==t||x(e).forEach(function(t){var n=e[t];"function"==typeof n&&s.off(t,n)}),r&&r.length)for(n=0,i=r.length;n<i;n++)if((a=d[e=r[n].toLowerCase().replace(/^on/,"")])&&a.length)if(t)for(o=a.indexOf(t);-1!==o;)a.splice(o,1),o=a.indexOf(t,o);else a.length=0;return s}.apply(this,E(arguments))},Ae.prototype.handlers=function(){return function(e){var t=null,n=we[this.id]&&we[this.id].handlers;return n&&(t="string"==typeof e&&e?n[e]?n[e].slice(0):[]:T(n)),t}.apply(this,E(arguments))},Ae.prototype.emit=function(){return function(e){var t;return function(e){if(!e||!e.type)return!1;if(e.client&&e.client!==this)return!1;var t=we[this.id],n=t&&t.elements,i=!!n&&n.length>0,o=!e.target||i&&-1!==n.indexOf(e.target),r=e.relatedTarget&&i&&-1!==n.indexOf(e.relatedTarget),a=e.client&&e.client===this;return!(!t||!(o||r||a))}.call(this,e)&&("object"==typeof e&&e&&"string"==typeof e.type&&e.type&&(e=L({},e)),t=L({},J(e),{client:this}),function(e){var t=we[this.id];if("object"==typeof e&&e&&e.type&&t){var n,i,o,r,a,s=q(e),l=t&&t.handlers["*"]||[],c=t&&t.handlers[e.type]||[],u=l.concat(c);if(u&&u.length)for(n=0,i=u.length;n<i;n++)r=this,"string"==typeof(o=u[n])&&"function"==typeof d[o]&&(o=d[o]),"object"==typeof o&&o&&"function"==typeof o.handleEvent&&(r=o,o=o.handleEvent),"function"==typeof o&&(a=L({},e),Z(o,r,[a],s))}}.call(this,t)),this}.apply(this,E(arguments))},Ae.prototype.clip=function(){return function(e){if(!we[this.id])throw new Error("Attempted to clip element(s) to a destroyed ZeroClipboard client instance");e=ke(e);for(var t=0;t<e.length;t++)if(k.call(e,t)&&e[t]&&1===e[t].nodeType){e[t].zcClippingId?-1===Me[e[t].zcClippingId].indexOf(this.id)&&Me[e[t].zcClippingId].push(this.id):(e[t].zcClippingId="zcClippingId_"+_e++,Me[e[t].zcClippingId]=[this.id],!0===Q.autoActivate&&Se(e[t]));var n=we[this.id]&&we[this.id].elements;-1===n.indexOf(e[t])&&n.push(e[t])}return this}.apply(this,E(arguments))},Ae.prototype.unclip=function(){return function(e){var t=we[this.id];if(!t)return this;for(var n,i=t.elements,o=(e=void 0===e?i.slice(0):ke(e)).length;o--;)if(k.call(e,o)&&e[o]&&1===e[o].nodeType){for(n=0;-1!==(n=i.indexOf(e[o],n));)i.splice(n,1);var r=Me[e[o].zcClippingId];if(r){for(n=0;-1!==(n=r.indexOf(this.id,n));)r.splice(n,1);0===r.length&&(!0===Q.autoActivate&&Ce(e[o]),delete e[o].zcClippingId)}}return this}.apply(this,E(arguments))},Ae.prototype.elements=function(){return function(){var e=we[this.id];return e&&e.elements?e.elements.slice(0):[]}.apply(this,E(arguments))},Ae.prototype.destroy=function(){return function(){var e=we[this.id];e&&(this.unclip(),this.off(),Ae.off("*",e.coreWildcardHandler),delete we[this.id])}.apply(this,E(arguments))},Ae.prototype.setText=function(e){if(!we[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Ae.setData("text/plain",e),this},Ae.prototype.setHtml=function(e){if(!we[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Ae.setData("text/html",e),this},Ae.prototype.setRichText=function(e){if(!we[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Ae.setData("application/rtf",e),this},Ae.prototype.setData=function(){if(!we[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Ae.setData.apply(this,E(arguments)),this},Ae.prototype.clearData=function(){if(!we[this.id])throw new Error("Attempted to clear pending clipboard data from a destroyed ZeroClipboard client instance");return Ae.clearData.apply(this,E(arguments)),this},Ae.prototype.getData=function(){if(!we[this.id])throw new Error("Attempted to get pending clipboard data from a destroyed ZeroClipboard client instance");return Ae.getData.apply(this,E(arguments))},void 0===(i=function(){return Ae}.call(t,n,t,e))||(e.exports=i)}(function(){return this||window}())},function(e,t,n){!function(t,i){"use strict";var o;try{o=n(1)}catch(e){}e.exports=function(e){var t="function"==typeof e,n=!!window.addEventListener,i=window.document,o=window.setTimeout,r=function(e,t,i,o){n?e.addEventListener(t,i,!!o):e.attachEvent("on"+t,i)},a=function(e,t,i,o){n?e.removeEventListener(t,i,!!o):e.detachEvent("on"+t,i)},s=function(e,t,n){var o;i.createEvent?((o=i.createEvent("HTMLEvents")).initEvent(t,!0,!1),o=p(o,n),e.dispatchEvent(o)):i.createEventObject&&(o=i.createEventObject(),o=p(o,n),e.fireEvent("on"+t,o))},l=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},d=function(e){return/Array/.test(Object.prototype.toString.call(e))},c=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},u=function(e){var t=e.getDay();return 0===t||6===t},h=function(e){c(e)&&e.setHours(0,0,0,0)},f=function(e,t){return e.getTime()===t.getTime()},p=function(e,t,n){var i,o;for(i in t)(o=void 0!==e[i])&&"object"==typeof t[i]&&null!==t[i]&&void 0===t[i].nodeName?c(t[i])?n&&(e[i]=new Date(t[i].getTime())):d(t[i])?n&&(e[i]=t[i].slice(0)):e[i]=p({},t[i],n):!n&&o||(e[i]=t[i]);return e},m=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},g={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},y=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},v=function(e){if(e.isEmpty)return'<td class="is-empty"></td>';var t=[];return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&t.push("is-selected"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},A=function(e,t){return"<tr>"+(t?e.reverse():e).join("")+"</tr>"},b=function(e,t,n,i,o){var r,a,s,l,c,u=e._o,h=n===u.minYear,f=n===u.maxYear,p='<div class="pika-title">',m=!0,g=!0;for(s=[],r=0;r<12;r++)s.push('<option value="'+(n===o?r-t:12+r-t)+'"'+(r===i?" selected":"")+(h&&r<u.minMonth||f&&r>u.maxMonth?"disabled":"")+">"+u.i18n.months[r]+"</option>");for(l='<div class="pika-label">'+u.i18n.months[i]+'<select class="pika-select pika-select-month" tabindex="-1">'+s.join("")+"</select></div>",d(u.yearRange)?(r=u.yearRange[0],a=u.yearRange[1]+1):(r=n-u.yearRange,a=1+n+u.yearRange),s=[];r<a&&r<=u.maxYear;r++)r>=u.minYear&&s.push('<option value="'+r+'"'+(r===n?" selected":"")+">"+r+"</option>");return c='<div class="pika-label">'+n+u.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+s.join("")+"</select></div>",u.showMonthAfterYear?p+=c+l:p+=l+c,h&&(0===i||u.minMonth>=i)&&(m=!1),f&&(11===i||u.maxMonth<=i)&&(g=!1),0===t&&(p+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+u.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(p+='<button class="pika-next'+(g?"":" is-disabled")+'" type="button">'+u.i18n.nextMonth+"</button>"),p+"</div>"},w=function(a){var s=this,d=s.config(a);s._onMouseDown=function(e){if(s._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(l(t,"is-disabled")||(l(t,"pika-button")&&!l(t,"is-empty")?(s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),d.bound&&o(function(){s.hide(),d.field&&d.field.blur()},100)):l(t,"pika-prev")?s.prevMonth():l(t,"pika-next")&&s.nextMonth()),l(t,"pika-select"))s._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},s._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(l(t,"pika-select-month")?s.gotoMonth(t.value):l(t,"pika-select-year")&&s.gotoYear(t.value))},s._onInputChange=function(n){var i;n.firedBy!==s&&(i=t?(i=e(d.field.value,d.format))&&i.isValid()?i.toDate():null:new Date(Date.parse(d.field.value)),c(i)&&s.setDate(i),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var e=i.activeElement;do{if(l(e,"pika-single"))return}while(e=e.parentNode);s._c||(s._b=o(function(){s.hide()},50)),s._c=!1},s._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,i=t;if(t){!n&&l(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),r(t,"change",s._onChange)));do{if(l(i,"pika-single")||i===d.trigger)return}while(i=i.parentNode);s._v&&t!==d.trigger&&i!==d.trigger&&s.hide()}},s.el=i.createElement("div"),s.el.className="pika-single"+(d.isRTL?" is-rtl":"")+(d.theme?" "+d.theme:""),r(s.el,"mousedown",s._onMouseDown,!0),r(s.el,"touchend",s._onMouseDown,!0),r(s.el,"change",s._onChange),d.field&&(d.container?d.container.appendChild(s.el):d.bound?i.body.appendChild(s.el):d.field.parentNode.insertBefore(s.el,d.field.nextSibling),r(d.field,"change",s._onInputChange),d.defaultDate||(t&&d.field.value?d.defaultDate=e(d.field.value,d.format).toDate():d.defaultDate=new Date(Date.parse(d.field.value)),d.setDefaultDate=!0));var u=d.defaultDate;c(u)?d.setDefaultDate?s.setDate(u,!0):s.gotoDate(u):s.gotoDate(new Date),d.bound?(this.hide(),s.el.className+=" is-bound",r(d.trigger,"click",s._onInputClick),r(d.trigger,"focus",s._onInputFocus),r(d.trigger,"blur",s._onInputBlur)):this.show()};return w.prototype={config:function(e){this._o||(this._o=p({},g,!0));var t=p(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,c(t.minDate)||(t.minDate=!1),c(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),d(t.yearRange)){var i=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||i,t.yearRange[1]=parseInt(t.yearRange[1],10)||i}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||g.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return c(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,i){t&&e.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return c(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",s(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),c(e)){var n=this._o.minDate,i=this._o.maxDate;c(n)&&e<n?e=n:c(i)&&e>i&&(e=i),this._d=new Date(e.getTime()),h(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),s(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(c(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),t=o<n.getTime()||i.getTime()<o}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustCalendars:function(){this.calendars[0]=m(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=m({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){h(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth(),this.draw()},setMaxDate:function(e){h(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth(),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t=this._o,n=t.minYear,i=t.maxYear,r=t.minMonth,a=t.maxMonth,s="";this._y<=n&&(this._y=n,!isNaN(r)&&this._m<r&&(this._m=r)),this._y>=i&&(this._y=i,!isNaN(a)&&this._m>a&&(this._m=a));for(var l=0;l<t.numberOfMonths;l++)s+='<div class="pika-lendar">'+b(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year)+this.render(this.calendars[l].year,this.calendars[l].month)+"</div>";if(this.el.innerHTML=s,t.bound&&"hidden"!==t.field.type&&o(function(){t.trigger.focus()},1),"function"==typeof this._o.onDraw){var d=this;o(function(){d._o.onDraw.call(d)},0)}}},adjustPosition:function(){var e,t,n,o,r,a,s,l,d,c;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,n=this.el.offsetWidth,o=this.el.offsetHeight,r=window.innerWidth||i.documentElement.clientWidth,a=window.innerHeight||i.documentElement.clientHeight,s=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)l=(c=e.getBoundingClientRect()).left+window.pageXOffset,d=c.bottom+window.pageYOffset;else for(l=t.offsetLeft,d=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,d+=t.offsetTop;(this._o.reposition&&l+n>r||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth),(this._o.reposition&&d+o>a+s||this._o.position.indexOf("top")>-1&&d-o-e.offsetHeight>0)&&(d=d-o-e.offsetHeight),this.el.style.left=l+"px",this.el.style.top=d+"px"}},render:function(e,t){var n=this._o,i=new Date,o=function(e,t){return[31,function(e){return e%4==0&&e%100!=0||e%400==0}(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]}(e,t),r=new Date(e,t,1).getDay(),a=[],s=[];h(i),n.firstDay>0&&(r-=n.firstDay)<0&&(r+=7);for(var l,d,p,m,g=o+r,b=g;b>7;)b-=7;g+=7-b;for(var w=0,_=0;w<g;w++){var M=new Date(e,t,w-r+1),x=!!c(this._d)&&f(M,this._d),k=f(M,i),S=w<r||w>=o+r,C=n.startRange&&f(n.startRange,M),E=n.endRange&&f(n.endRange,M),L=n.startRange&&n.endRange&&n.startRange<M&&M<n.endRange,T={day:w-r+1,month:t,year:e,isSelected:x,isToday:k,isDisabled:n.minDate&&M<n.minDate||n.maxDate&&M>n.maxDate||n.disableWeekends&&u(M)||n.disableDayFn&&n.disableDayFn(M),isEmpty:S,isStartRange:C,isEndRange:E,isInRange:L};s.push(v(T)),7==++_&&(n.showWeekNumber&&s.unshift((l=w-r,d=t,p=e,m=void 0,m=new Date(p,0,1),'<td class="pika-week">'+Math.ceil(((new Date(p,d,l)-m)/864e5+m.getDay()+1)/7)+"</td>")),a.push(A(s,n.isRTL)),s=[],_=0)}return function(e,t){return'<table cellpadding="0" cellspacing="0" class="pika-table">'+function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+y(e,t)+'">'+y(e,t,!0)+"</abbr></th>");return"<thead>"+(e.isRTL?n.reverse():n).join("")+"</thead>"}(n)+"<tbody>"+t.join("")+"</tbody></table>"}(0,a)},isVisible:function(){return this._v},show:function(){var e,t,n;this._v||(t="is-hidden",(e=this.el).className=(n=(" "+e.className+" ").replace(" "+t+" "," ")).trim?n.trim():n.replace(/^\s+|\s+$/g,""),this._v=!0,this.draw(),this._o.bound&&(r(i,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e,t,n=this._v;!1!==n&&(this._o.bound&&a(i,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",e=this.el,l(e,t="is-hidden")||(e.className=""===e.className?t:e.className+" "+t),this._v=!1,void 0!==n&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),this._o.field&&(a(this._o.field,"change",this._onInputChange),this._o.bound&&(a(this._o.trigger,"click",this._onInputClick),a(this._o.trigger,"focus",this._onInputFocus),a(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},w}(o)}()},function(e,t){(function(){"use strict";var t={langLocaleCode:"zh-TW",cultureCode:"zh-TW",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百萬",billion:"十億",trillion:"兆"},ordinal:function(){return"第"},currency:{symbol:"NT$"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"zh-SG",cultureCode:"zh-SG",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"$"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("zh-SG",t)}).call("undefined"==typeof window?this:window)},function(e,t){!function(){"use strict";var t={langLocaleCode:"zh-MO",cultureCode:"zh-MO",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百萬",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"MOP"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("zh-MO",t)}()},function(e,t){(function(){"use strict";var t={langLocaleCode:"zh-CN",cultureCode:"zh-CN",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"uk-UA",cultureCode:"uk-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n={langLocaleCode:"tr-TR",cultureCode:"tr-TR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(e){if(0===e)return"'ıncı";var n=e%10;return t[n]||t[e%100-n]||t[e>=100?100:null]},currency:{symbol:"₺",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=n),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(n.cultureCode,n)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"th-TH",cultureCode:"th-TH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(){return"."},currency:{symbol:"฿",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"sv-SE",cultureCode:"sv-SE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"tmd"},currency:{symbol:"kr",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){!function(){"use strict";var t={langLocaleCode:"sr-Cyrl-RS",cultureCode:"sr-Cyrl-RS",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"RSD"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("sr-Cyrl-RS",t)}()},function(e,t){!function(){"use strict";var t={langLocaleCode:"sl",cultureCode:"sl",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("sl",t)}()},function(e,t){(function(){"use strict";var t={langLocaleCode:"sk-SK",cultureCode:"sk-SK",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"mld.",trillion:"bil."},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",spaceSeparated:!0},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"ru-UA",cultureCode:"ru-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"ru-RU",cultureCode:"ru-RU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"руб.",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"ro",cultureCode:"ro",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mie",million:"mln",billion:"mld",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"RON"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("ro",t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"ro-RO",cultureCode:"ro-RO",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mii",million:"mil",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:" lei",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"pt-PT",cultureCode:"pt-PT",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"pt-BR",cultureCode:"pt-BR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"R$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"pl-PL",cultureCode:"pl-PL",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:" zł",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){!function(){"use strict";var t={langLocaleCode:"nn",cultureCode:"nn",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"mil",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.language&&window.numbro.language("nn",t)}()},function(e,t){(function(){"use strict";var t={langLocaleCode:"nl-NL",cultureCode:"nl-NL",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"nl-BE",cultureCode:"nl-BE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"nb",cultureCode:"nb",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"mil",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("nb",t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"nb-NO",cultureCode:"nb-NO",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"t"},currency:{symbol:"kr",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"lv-LV",cultureCode:"lv-LV",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tūkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"ko-KR",cultureCode:"ko-KR",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"천",million:"백만",billion:"십억",trillion:"일조"},ordinal:function(){return"."},currency:{symbol:"₩"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"ja-JP",cultureCode:"ja-JP",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"it-IT",cultureCode:"it-IT",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"it-CH",cultureCode:"it-CH",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"°"},currency:{symbol:"CHF"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("it-CH",t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"id",cultureCode:"id",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"r",million:"j",billion:"m",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Rp"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("id",t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"hu-HU",cultureCode:"hu-HU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(){return"."},currency:{symbol:" Ft",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"he-IL",cultureCode:"he-IL",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"אלף",million:"מליון",billion:"בליון",trillion:"טריליון"},currency:{symbol:"₪",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"₪ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"₪ ,0"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"fr-FR",cultureCode:"fr-FR",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"ème"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"fr-CH",cultureCode:"fr-CH",delimiters:{thousands:" ",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"ème"},currency:{symbol:"CHF",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"fr-CA",cultureCode:"fr-CA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"ème"},currency:{symbol:"$",position:"postfix",spaceSeparated:!0},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"fil-PH",cultureCode:"fil-PH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"₱"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"fi-FI",cultureCode:"fi-FI",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"fa-IR",cultureCode:"fa-IR",delimiters:{thousands:"،",decimal:"."},abbreviations:{thousand:"هزار",million:"میلیون",billion:"میلیارد",trillion:"تریلیون"},ordinal:function(){return"ام"},currency:{symbol:"﷼"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"et-EE",cultureCode:"et-EE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"es-SV",cultureCode:"es-SV",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"es-PR",cultureCode:"es-PR",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"es-PE",cultureCode:"es-PE",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"S/.",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"es-NI",cultureCode:"es-NI",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"C$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"es-ES",cultureCode:"es-ES",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"es-CR",cultureCode:"es-CR",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"₡",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"es-CO",cultureCode:"es-CO",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"es-CL",cultureCode:"es-CL",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:"$0,0"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"es-AR",cultureCode:"es-AR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"en-ZA",cultureCode:"en-ZA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"R",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"en-NZ",cultureCode:"en-NZ",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"en-IE",cultureCode:"en-IE",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"€"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("en-gb",t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"en-GB",cultureCode:"en-GB",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"£",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"en-AU",cultureCode:"en-AU",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"el",cultureCode:"el",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"χ",million:"ε",billion:"δ",trillion:"τ"},ordinal:function(){return"."},currency:{symbol:"€"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("el",t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"de-LI",cultureCode:"de-LI",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"CHF",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"de-DE",cultureCode:"de-DE",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",spaceSeparated:!0},defaults:{currencyFormat:",4"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"de-CH",cultureCode:"de-CH",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"CHF",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"de-AT",cultureCode:"de-AT",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"da-DK",cultureCode:"da-DK",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"cs-CZ",cultureCode:"cs-CZ",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"mld.",trillion:"bil."},ordinal:function(){return"."},currency:{symbol:"Kč",position:"postfix",spaceSeparated:!0},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}).call("undefined"==typeof window?this:window)},function(e,t){(function(){"use strict";var t={langLocaleCode:"bg",cultureCode:"bg",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"И",million:"А",billion:"M",trillion:"T"},ordinal:function(){return"."},currency:{symbol:"лв."}};void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&this.numbro.culture("bg",t)}).call("undefined"==typeof window?this:window)},function(e,t,n){t.bg=n(544),t["cs-CZ"]=n(543),t["da-DK"]=n(542),t["de-AT"]=n(541),t["de-CH"]=n(540),t["de-DE"]=n(539),t["de-LI"]=n(538),t.el=n(537),t["en-AU"]=n(536),t["en-GB"]=n(535),t["en-IE"]=n(534),t["en-NZ"]=n(533),t["en-ZA"]=n(532),t["es-AR"]=n(531),t["es-CL"]=n(530),t["es-CO"]=n(529),t["es-CR"]=n(528),t["es-ES"]=n(527),t["es-NI"]=n(526),t["es-PE"]=n(525),t["es-PR"]=n(524),t["es-SV"]=n(523),t["et-EE"]=n(522),t["fa-IR"]=n(521),t["fi-FI"]=n(520),t["fil-PH"]=n(519),t["fr-CA"]=n(518),t["fr-CH"]=n(517),t["fr-FR"]=n(516),t["he-IL"]=n(515),t["hu-HU"]=n(514),t.id=n(513),t["it-CH"]=n(512),t["it-IT"]=n(511),t["ja-JP"]=n(510),t["ko-KR"]=n(509),t["lv-LV"]=n(508),t["nb-NO"]=n(507),t.nb=n(506),t["nl-BE"]=n(505),t["nl-NL"]=n(504),t.nn=n(503),t["pl-PL"]=n(502),t["pt-BR"]=n(501),t["pt-PT"]=n(500),t["ro-RO"]=n(499),t.ro=n(498),t["ru-RU"]=n(497),t["ru-UA"]=n(496),t["sk-SK"]=n(495),t.sl=n(494),t["sr-Cyrl-RS"]=n(493),t["sv-SE"]=n(492),t["th-TH"]=n(491),t["tr-TR"]=n(490),t["uk-UA"]=n(489),t["zh-CN"]=n(488),t["zh-MO"]=n(487),t["zh-SG"]=n(486),t["zh-TW"]=n(485)},function(e,t,n){(function(i){var o;(function(){"use strict";var r,a=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],l={general:{scale:1024,suffixes:s,marker:"bd"},binary:{scale:1024,suffixes:a,marker:"b"},decimal:{scale:1e3,suffixes:s,marker:"d"}},d=[l.general,l.binary,l.decimal],c={},u=c,h="en-US",f=null,p="0,0",m="0$",g=void 0!==e&&e.exports;function y(e){this._value=e}function v(e){return 0===e?1:Math.floor(Math.log(Math.abs(e))/Math.LN10)+1}function A(e){var t,n="";for(t=0;t<e;t++)n+="0";return n}function b(e,t,n,i){var o,r,a=Math.pow(10,t);return e.toString().indexOf("e")>-1?"-"===(r=function(e,t){var n,i,o,r,a,s;return n=(s=e.toString()).split("e")[0],r=s.split("e")[1],i=n.split(".")[0],o=n.split(".")[1]||"",+r>0?s=i+o+A(r-o.length):(a=+i<0?"-0":"0",t>0&&(a+="."),s=a+(A(-1*r-1)+Math.abs(i)+o).substr(0,t)),+r>0&&t>0&&(s+="."+A(t)),s}(e,t)).charAt(0)&&+r>=0&&(r=r.substr(1)):r=(n(e+"e+"+t)/a).toFixed(t),i&&(o=new RegExp("0{1,"+i+"}$"),r=r.replace(o,"")),r}function w(e,t,n,i){var o,r,a=n,s=a.indexOf("$"),l=a.indexOf("("),d=a.indexOf("+"),u=a.indexOf("-"),f="",p="";if(-1===a.indexOf("$")?"infix"===c[h].currency.position?(p=t,c[h].currency.spaceSeparated&&(p=" "+p+" ")):c[h].currency.spaceSeparated&&(f=" "):a.indexOf(" $")>-1?(f=" ",a=a.replace(" $","")):a.indexOf("$ ")>-1?(f=" ",a=a.replace("$ ","")):a=a.replace("$",""),r=M(e._value,a,i,p),-1===n.indexOf("$"))switch(c[h].currency.position){case"postfix":r.indexOf(")")>-1?((r=r.split("")).splice(-1,0,f+t),r=r.join("")):r=r+f+t;break;case"infix":break;case"prefix":r.indexOf("(")>-1||r.indexOf("-")>-1?(r=r.split(""),o=Math.max(l,u)+1,r.splice(o,0,t+f),r=r.join("")):r=t+f+r;break;default:throw Error('Currency position should be among ["prefix", "infix", "postfix"]')}else s<=1?r.indexOf("(")>-1||r.indexOf("+")>-1||r.indexOf("-")>-1?(r=r.split(""),o=1,(s<l||s<d||s<u)&&(o=0),r.splice(o,0,t+f),r=r.join("")):r=t+f+r:r.indexOf(")")>-1?((r=r.split("")).splice(-1,0,f+t),r=r.join("")):r=r+f+t;return r}function _(e,t,n){var i,o,r,a=t[0],s=Math.abs(e);if(s>=n){for(i=1;i<t.length;++i)if(o=Math.pow(n,i),r=Math.pow(n,i+1),s>=o&&s<r){a=t[i],e/=o;break}a===t[0]&&(e/=Math.pow(n,t.length-1),a=t[t.length-1])}return{value:e,suffix:a}}function M(e,t,n,i){var o,r,a,s,l,u,p,m,g,y,w,M,x,k,S,C=!1,E=!1,L=!1,T="",D=!1,Y=!1,R=!1,B=!1,O=!1,H="",P="",I=Math.abs(e),j="",F=!1,N=!1;if(0===e&&null!==f)return f;if(!isFinite(e))return""+e;if(0===t.indexOf("{")){var z=t.indexOf("}");if(-1===z)throw Error('Format should also contain a "}"');y=t.slice(1,z),t=t.slice(z+1)}else y="";if(t.indexOf("}")===t.length-1&&t.length){var W=t.indexOf("{");if(-1===W)throw Error('Format should also contain a "{"');w=t.slice(W+1,-1),t=t.slice(0,W+1)}else w="";for(x=null===(S=-1===t.indexOf(".")?t.match(/([0-9]+).*/):t.match(/([0-9]+)\..*/))?-1:S[1].length,-1!==t.indexOf("-")&&(F=!0),t.indexOf("(")>-1?(C=!0,t=t.slice(1,-1)):t.indexOf("+")>-1&&(E=!0,t=t.replace(/\+/g,"")),t.indexOf("a")>-1&&(m=t.split(".")[0].match(/[0-9]+/g)||["0"],m=parseInt(m[0],10),D=t.indexOf("aK")>=0,Y=t.indexOf("aM")>=0,R=t.indexOf("aB")>=0,B=t.indexOf("aT")>=0,O=D||Y||R||B,t.indexOf(" a")>-1?(T=" ",t=t.replace(" a","")):t=t.replace("a",""),l=0==(l=(a=v(e))%3)?3:l,m&&0!==I&&(u=3*~~((Math.min(m,a)-l)/3),I/=Math.pow(10,u)),a!==m&&(I>=Math.pow(10,12)&&!O||B?(T+=c[h].abbreviations.trillion,e/=Math.pow(10,12)):I<Math.pow(10,12)&&I>=Math.pow(10,9)&&!O||R?(T+=c[h].abbreviations.billion,e/=Math.pow(10,9)):I<Math.pow(10,9)&&I>=Math.pow(10,6)&&!O||Y?(T+=c[h].abbreviations.million,e/=Math.pow(10,6)):(I<Math.pow(10,6)&&I>=Math.pow(10,3)&&!O||D)&&(T+=c[h].abbreviations.thousand,e/=Math.pow(10,3))),s=v(e),m&&s<m&&-1===t.indexOf(".")&&(t+="[.]",t+=A(m-s))),k=0;k<d.length;++k)if(o=d[k],t.indexOf(o.marker)>-1){t.indexOf(" "+o.marker)>-1&&(H=" "),t=t.replace(H+o.marker,""),e=(r=_(e,o.suffixes,o.scale)).value,H+=r.suffix;break}if(t.indexOf("o")>-1&&(t.indexOf(" o")>-1?(P=" ",t=t.replace(" o","")):t=t.replace("o",""),c[h].ordinal&&(P+=c[h].ordinal(e))),t.indexOf("[.]")>-1&&(L=!0,t=t.replace("[.]",".")),g=t.split(".")[1],M=t.indexOf(","),g){var $=[];-1!==g.indexOf("*")?($=(j=e.toString()).split(".")).length>1&&(j=b(e,$[1].length,n)):j=g.indexOf("[")>-1?b(e,(g=(g=g.replace("]","")).split("["))[0].length+g[1].length,n,g[1].length):b(e,g.length,n),p=($=j.split("."))[0],j=$.length>1&&$[1].length?(i?T+i:c[h].delimiters.decimal)+$[1]:"",L&&0===Number(j.slice(1))&&(j="")}else p=b(e,0,n);return p.indexOf("-")>-1&&(p=p.slice(1),N=!0),p.length<x&&(p=A(x-p.length)+p),M>-1&&(p=p.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+c[h].delimiters.thousands)),0===t.indexOf(".")&&(p=""),y+(t.indexOf("(")<t.indexOf("-")?(C&&N?"(":"")+(F&&N||!C&&N?"-":""):(F&&N||!C&&N?"-":"")+(C&&N?"(":""))+(!N&&E&&0!==e?"+":"")+p+j+(P||"")+(T&&!i?T:"")+(H||"")+(C&&N?")":"")+w}function x(e,t){c[e]=t}function k(e){h=e;var t=c[e].defaults;t&&t.format&&r.defaultFormat(t.format),t&&t.currencyFormat&&r.defaultCurrencyFormat(t.currencyFormat)}function S(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)}function C(){return Array.prototype.slice.call(arguments).reduce(function(e,t){var n=S(e),i=S(t);return n>i?n:i},-1/0)}(r=function(e){return e=r.isNumbro(e)?e.value():"string"==typeof e||"number"==typeof e?r.fn.unformat(e):NaN,new y(Number(e))}).version="1.11.0",r.isNumbro=function(e){return e instanceof y},r.setLanguage=function(e,t){var n=e,i=e.split("-")[0],o=null;u[n]||(Object.keys(u).forEach(function(e){o||e.split("-")[0]!==i||(o=e)}),n=o||t||"en-US"),k(n)},r.setCulture=function(e,t){var n=e,i=e.split("-")[1],o=null;c[n]||(i&&Object.keys(c).forEach(function(e){o||e.split("-")[1]!==i||(o=e)}),n=o||t||"en-US"),k(n)},r.language=function(e,t){if(!e)return h;if(e&&!t){if(!u[e])throw new Error("Unknown language : "+e);k(e)}return!t&&u[e]||x(e,t),r},r.culture=function(e,t){if(!e)return h;if(e&&!t){if(!c[e])throw new Error("Unknown culture : "+e);k(e)}return!t&&c[e]||x(e,t),r},r.languageData=function(e){if(!e)return u[h];if(!u[e])throw new Error("Unknown language : "+e);return u[e]},r.cultureData=function(e){if(!e)return c[h];if(!c[e])throw new Error("Unknown culture : "+e);return c[e]},r.culture("en-US",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}}),r.languages=function(){return u},r.cultures=function(){return c},r.zeroFormat=function(e){f="string"==typeof e?e:null},r.defaultFormat=function(e){p="string"==typeof e?e:"0.0"},r.defaultCurrencyFormat=function(e){m="string"==typeof e?e:"0$"},r.validate=function(e,t){var n,i,o,a,s,l,d,c;if("string"!=typeof e&&(e+="",console.warn),(e=(e=e.trim()).replace(/^[+-]?/,"")).match(/^\d+$/))return!0;if(""===e)return!1;try{d=r.cultureData(t)}catch(e){d=r.cultureData(r.culture())}return o=d.currency.symbol,s=d.abbreviations,n=d.delimiters.decimal,i="."===d.delimiters.thousands?"\\.":d.delimiters.thousands,!(null!==(c=e.match(/^[^\d\.\,]+/))&&(e=e.substr(1),c[0]!==o)||null!==(c=e.match(/[^\d]+$/))&&(e=e.slice(0,-1),c[0]!==s.thousand&&c[0]!==s.million&&c[0]!==s.billion&&c[0]!==s.trillion)||(l=new RegExp(i+"{2}"),e.match(/[^\d.,]/g)||(a=e.split(n)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(l):""===a[0]?a[0].match(l)||!a[1].match(/^\d+$/):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(l)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(l)||!a[1].match(/^\d+$/))))},r.loadLanguagesInNode=function(){r.loadCulturesInNode()},r.loadCulturesInNode=function(){var e=n(545);for(var t in e)t&&r.culture(t,e[t])},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(e,t){if(null===this||void 0===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var n,i,o=this.length>>>0,r=!1;for(1<arguments.length&&(i=t,r=!0),n=0;o>n;++n)this.hasOwnProperty(n)&&(r?i=e(i,this[n],n,this):(i=this[n],r=!0));if(!r)throw new TypeError("Reduce of empty array with no initial value");return i}),r.fn=y.prototype={clone:function(){return r(this)},format:function(e,t){return function(e,t,n){var i=t.replace(/\{[^\{\}]*\}/g,"");return i.indexOf("$")>-1?w(e,c[h].currency.symbol,t,n):i.indexOf("%")>-1?function(e,t,n){var i,o="",r=100*e._value;return t.indexOf(" %")>-1?(o=" ",t=t.replace(" %","")):t=t.replace("%",""),(i=M(r,t,n)).indexOf(")")>-1?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i}(e,t,n):i.indexOf(":")>-1?function(e){var t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),i=Math.round(e._value-60*t*60-60*n);return t+":"+(n<10?"0"+n:n)+":"+(i<10?"0"+i:i)}(e):M(e._value,t,n)}(this,e||p,void 0!==t?t:Math.round)},formatCurrency:function(e,t){return w(this,c[h].currency.symbol,e||m,void 0!==t?t:Math.round)},formatForeignCurrency:function(e,t,n){return function(e,t,n,i){return w(e,t,n,i)}(this,e,t||m,void 0!==n?n:Math.round)},unformat:function(e){if("number"==typeof e)return e;if("string"==typeof e){var t=function(e,t){var n,i,o,r,l,d=t,u=!1;if(t.indexOf(":")>-1)e._value=function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}(t);else if(t===f)e._value=0;else{for("."!==c[h].delimiters.decimal&&(t=t.replace(/\./g,"").replace(c[h].delimiters.decimal,".")),n=new RegExp("[^a-zA-Z]"+c[h].abbreviations.thousand+"(?:\\)|(\\"+c[h].currency.symbol+")?(?:\\))?)?$"),i=new RegExp("[^a-zA-Z]"+c[h].abbreviations.million+"(?:\\)|(\\"+c[h].currency.symbol+")?(?:\\))?)?$"),o=new RegExp("[^a-zA-Z]"+c[h].abbreviations.billion+"(?:\\)|(\\"+c[h].currency.symbol+")?(?:\\))?)?$"),r=new RegExp("[^a-zA-Z]"+c[h].abbreviations.trillion+"(?:\\)|(\\"+c[h].currency.symbol+")?(?:\\))?)?$"),l=1;l<a.length&&!u;++l)t.indexOf(a[l])>-1?u=Math.pow(1024,l):t.indexOf(s[l])>-1&&(u=Math.pow(1e3,l));var p=t.replace(/[^0-9\.]+/g,"");""===p?e._value=NaN:(e._value=(u||1)*(d.match(n)?Math.pow(10,3):1)*(d.match(i)?Math.pow(10,6):1)*(d.match(o)?Math.pow(10,9):1)*(d.match(r)?Math.pow(10,12):1)*(t.indexOf("%")>-1?.01:1)*((t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1)*Number(p),e._value=u?Math.ceil(e._value):e._value)}return e._value}(this,e);return isNaN(t)?void 0:t}},binaryByteUnits:function(){return _(this._value,l.binary.suffixes,l.binary.scale).suffix},byteUnits:function(){return _(this._value,l.general.suffixes,l.general.scale).suffix},decimalByteUnits:function(){return _(this._value,l.decimal.suffixes,l.decimal.scale).suffix},value:function(){return this._value},valueOf:function(){return this._value},set:function(e){return this._value=Number(e),this},add:function(e){var t=C.call(null,this._value,e);return this._value=[this._value,e].reduce(function(e,n){return e+t*n},0)/t,this},subtract:function(e){var t=C.call(null,this._value,e);return this._value=[e].reduce(function(e,n){return e-t*n},this._value*t)/t,this},multiply:function(e){return this._value=[this._value,e].reduce(function(e,t){var n=C(e,t),i=e*n;return(i*=t*n)/(n*n)},1),this},divide:function(e){return this._value=[this._value,e].reduce(function(e,t){var n=C(e,t);return e*n/(t*n)}),this},difference:function(e){return Math.abs(r(this._value).subtract(e).value())}},void 0!==i&&void 0===i.browser&&i.title&&(-1!==i.title.indexOf("node")||i.title.indexOf("meteor-tool")>0||"grunt"===i.title||"gulp"===i.title)&&r.loadCulturesInNode(),g?e.exports=r:("undefined"==typeof ender&&(this.numbro=r),void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o))}).call("undefined"==typeof window?this:window)}).call(this,n(23))},function(e,t,n){var i={"./af":370,"./af.js":370,"./ar":369,"./ar-ma":368,"./ar-ma.js":368,"./ar-sa":367,"./ar-sa.js":367,"./ar-tn":366,"./ar-tn.js":366,"./ar.js":369,"./az":365,"./az.js":365,"./be":364,"./be.js":364,"./bg":363,"./bg.js":363,"./bn":362,"./bn.js":362,"./bo":361,"./bo.js":361,"./br":360,"./br.js":360,"./bs":359,"./bs.js":359,"./ca":358,"./ca.js":358,"./cs":357,"./cs.js":357,"./cv":356,"./cv.js":356,"./cy":355,"./cy.js":355,"./da":354,"./da.js":354,"./de":353,"./de-at":352,"./de-at.js":352,"./de.js":353,"./dv":351,"./dv.js":351,"./el":350,"./el.js":350,"./en-au":349,"./en-au.js":349,"./en-ca":348,"./en-ca.js":348,"./en-gb":347,"./en-gb.js":347,"./en-ie":346,"./en-ie.js":346,"./en-nz":345,"./en-nz.js":345,"./eo":344,"./eo.js":344,"./es":343,"./es.js":343,"./et":342,"./et.js":342,"./eu":341,"./eu.js":341,"./fa":340,"./fa.js":340,"./fi":339,"./fi.js":339,"./fo":338,"./fo.js":338,"./fr":337,"./fr-ca":336,"./fr-ca.js":336,"./fr-ch":335,"./fr-ch.js":335,"./fr.js":337,"./fy":334,"./fy.js":334,"./gd":333,"./gd.js":333,"./gl":332,"./gl.js":332,"./he":331,"./he.js":331,"./hi":330,"./hi.js":330,"./hr":329,"./hr.js":329,"./hu":328,"./hu.js":328,"./hy-am":327,"./hy-am.js":327,"./id":326,"./id.js":326,"./is":325,"./is.js":325,"./it":324,"./it.js":324,"./ja":323,"./ja.js":323,"./jv":322,"./jv.js":322,"./ka":321,"./ka.js":321,"./kk":320,"./kk.js":320,"./km":319,"./km.js":319,"./ko":318,"./ko.js":318,"./ky":317,"./ky.js":317,"./lb":316,"./lb.js":316,"./lo":315,"./lo.js":315,"./lt":314,"./lt.js":314,"./lv":313,"./lv.js":313,"./me":312,"./me.js":312,"./mk":311,"./mk.js":311,"./ml":310,"./ml.js":310,"./mr":309,"./mr.js":309,"./ms":308,"./ms-my":307,"./ms-my.js":307,"./ms.js":308,"./my":306,"./my.js":306,"./nb":305,"./nb.js":305,"./ne":304,"./ne.js":304,"./nl":303,"./nl.js":303,"./nn":302,"./nn.js":302,"./pa-in":301,"./pa-in.js":301,"./pl":300,"./pl.js":300,"./pt":299,"./pt-br":298,"./pt-br.js":298,"./pt.js":299,"./ro":297,"./ro.js":297,"./ru":296,"./ru.js":296,"./se":295,"./se.js":295,"./si":294,"./si.js":294,"./sk":293,"./sk.js":293,"./sl":292,"./sl.js":292,"./sq":291,"./sq.js":291,"./sr":290,"./sr-cyrl":289,"./sr-cyrl.js":289,"./sr.js":290,"./ss":288,"./ss.js":288,"./sv":287,"./sv.js":287,"./sw":286,"./sw.js":286,"./ta":285,"./ta.js":285,"./te":284,"./te.js":284,"./th":283,"./th.js":283,"./tl-ph":282,"./tl-ph.js":282,"./tlh":281,"./tlh.js":281,"./tr":280,"./tr.js":280,"./tzl":279,"./tzl.js":279,"./tzm":278,"./tzm-latn":277,"./tzm-latn.js":277,"./tzm.js":278,"./uk":276,"./uk.js":276,"./uz":275,"./uz.js":275,"./vi":274,"./vi.js":274,"./x-pseudo":273,"./x-pseudo.js":273,"./zh-cn":272,"./zh-cn.js":272,"./zh-tw":271,"./zh-tw.js":271};function o(e){var t=r(e);return n(t)}function r(e){var t=i[e];if(!(t+1)){var n=new Error('Cannot find module "'+e+'".');throw n.code="MODULE_NOT_FOUND",n}return t}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id=547},function(e,t,n){!function(e){"use strict";e.defineMode("javascript",function(t,n){var i,o,r=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,d=n.typescript,c=n.wordCharacters||/[\w$\xa1-\uffff]/,u=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),i=e("keyword c"),o=e("keyword d"),r=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:o,break:o,continue:o,new:e("new"),delete:i,void:i,throw:i,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:r,typeof:r,instanceof:r,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:i,export:e("export"),import:e("import"),extends:i,await:i}}(),h=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e,t,n){return i=e,o=n,t}function m(e,t){var n,i=e.next();if('"'==i||"'"==i)return t.tokenize=(n=i,function(e,t){var i,o=!1;if(s&&"@"==e.peek()&&e.match(f))return t.tokenize=m,p("jsonld-keyword","meta");for(;null!=(i=e.next())&&(i!=n||o);)o=!o&&"\\"==i;return o||(t.tokenize=m),p("string","string")}),t.tokenize(e,t);if("."==i&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return p("number","number");if("."==i&&e.match(".."))return p("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(i))return p(i);if("="==i&&e.eat(">"))return p("=>","operator");if("0"==i&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),p("number","number");if("0"==i&&e.eat(/o/i))return e.eatWhile(/[0-7]/i),p("number","number");if("0"==i&&e.eat(/b/i))return e.eatWhile(/[01]/i),p("number","number");if(/\d/.test(i))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),p("number","number");if("/"==i)return e.eat("*")?(t.tokenize=g,g(e,t)):e.eat("/")?(e.skipToEnd(),p("comment","comment")):Ne(e,t,1)?(function(e){for(var t,n=!1,i=!1;null!=(t=e.next());){if(!n){if("/"==t&&!i)return;"["==t?i=!0:i&&"]"==t&&(i=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),p("regexp","string-2")):(e.eat("="),p("operator","operator",e.current()));if("`"==i)return t.tokenize=y,y(e,t);if("#"==i)return e.skipToEnd(),p("error","error");if(h.test(i))return">"==i&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=i&&"="!=i||e.eat("="):/[<>*+\-]/.test(i)&&(e.eat(i),">"==i&&e.eat(i))),p("operator","operator",e.current());if(c.test(i)){e.eatWhile(c);var o=e.current();if("."!=t.lastType){if(u.propertyIsEnumerable(o)){var r=u[o];return p(r.type,r.style,o)}if("async"==o&&e.match(/^(\s|\/\*.*?\*\/)*[\(\w]/,!1))return p("async","keyword",o)}return p("variable","variable",o)}}function g(e,t){for(var n,i=!1;n=e.next();){if("/"==n&&i){t.tokenize=m;break}i="*"==n}return p("comment","comment")}function y(e,t){for(var n,i=!1;null!=(n=e.next());){if(!i&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=m;break}i=!i&&"\\"==n}return p("quasi","string-2",e.current())}var v="([{}])";function A(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(d){var i=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));i&&(n=i.index)}for(var o=0,r=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=v.indexOf(s);if(l>=0&&l<3){if(!o){++a;break}if(0==--o){"("==s&&(r=!0);break}}else if(l>=3&&l<6)++o;else if(c.test(s))r=!0;else{if(/["'\/]/.test(s))return;if(r&&!o){++a;break}}}r&&!o&&(t.fatArrowAt=a)}}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function w(e,t,n,i,o,r){this.indented=e,this.column=t,this.type=n,this.prev=o,this.info=r,null!=i&&(this.align=i)}function _(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var i=e.context;i;i=i.prev)for(n=i.vars;n;n=n.next)if(n.name==t)return!0}var M={state:null,column:null,marked:null,cc:null};function x(){for(var e=arguments.length-1;e>=0;e--)M.cc.push(arguments[e])}function k(){return x.apply(null,arguments),!0}function S(e){function t(t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}var i=M.state;if(M.marked="def",i.context){if(t(i.localVars))return;i.localVars={name:e,next:i.localVars}}else{if(t(i.globalVars))return;n.globalVars&&(i.globalVars={name:e,next:i.globalVars})}}function C(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}var E={name:"this",next:{name:"arguments"}};function L(){M.state.context={prev:M.state.context,vars:M.state.localVars},M.state.localVars=E}function T(){M.state.localVars=M.state.context.vars,M.state.context=M.state.context.prev}function D(e,t){var n=function(){var n=M.state,i=n.indented;if("stat"==n.lexical.type)i=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)i=o.indented;n.lexical=new w(i,M.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function Y(){var e=M.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function R(e){return function t(n){return n==e?k():";"==e?x():k(t)}}function B(e,t){return"var"==e?k(D("vardef",t.length),fe,R(";"),Y):"keyword a"==e?k(D("form"),P,B,Y):"keyword b"==e?k(D("form"),B,Y):"keyword d"==e?M.stream.match(/^\s*$/,!1)?k():k(D("stat"),j,R(";"),Y):"debugger"==e?k(R(";")):"{"==e?k(D("}"),te,Y):";"==e?k():"if"==e?("else"==M.state.lexical.info&&M.state.cc[M.state.cc.length-1]==Y&&M.state.cc.pop()(),k(D("form"),P,B,Y,ve)):"function"==e?k(xe):"for"==e?k(D("form"),Ae,B,Y):"class"==e||d&&"interface"==t?(M.marked="keyword",k(D("form"),Ce,Y)):"variable"==e?d&&"declare"==t?(M.marked="keyword",k(B)):d&&("module"==t||"enum"==t||"type"==t)&&M.stream.match(/^\s*\w/,!1)?(M.marked="keyword","enum"==t?k(je):"type"==t?k(re,R("operator"),re,R(";")):k(D("form"),pe,R("{"),D("}"),te,Y,Y)):d&&"namespace"==t?(M.marked="keyword",k(D("form"),O,te,Y)):k(D("stat"),V):"switch"==e?k(D("form"),P,R("{"),D("}","switch"),te,Y,Y):"case"==e?k(O,R(":")):"default"==e?k(R(":")):"catch"==e?k(D("form"),L,R("("),ke,R(")"),B,Y,T):"export"==e?k(D("stat"),De,Y):"import"==e?k(D("stat"),Re,Y):"async"==e?k(B):"@"==t?k(O,B):x(D("stat"),O,R(";"),Y)}function O(e,t){return I(e,t,!1)}function H(e,t){return I(e,t,!0)}function P(e){return"("!=e?x():k(D(")"),O,R(")"),Y)}function I(e,t,n){if(M.state.fatArrowAt==M.stream.start){var i=n?U:$;if("("==e)return k(L,D(")"),Z(ke,")"),Y,R("=>"),i,T);if("variable"==e)return x(L,pe,R("=>"),i,T)}var o=n?N:F;return b.hasOwnProperty(e)?k(o):"function"==e?k(xe,o):"class"==e||d&&"interface"==t?(M.marked="keyword",k(D("form"),Se,Y)):"keyword c"==e||"async"==e?k(n?H:O):"("==e?k(D(")"),j,R(")"),Y,o):"operator"==e||"spread"==e?k(n?H:O):"["==e?k(D("]"),Ie,Y,o):"{"==e?ee(K,"}",null,o):"quasi"==e?x(z,o):"new"==e?k(function(e){return function(t){return"."==t?k(e?G:Q):"variable"==t&&d?k(ce,e?N:F):x(e?H:O)}}(n)):"import"==e?k(O):k()}function j(e){return e.match(/[;\}\)\],]/)?x():x(O)}function F(e,t){return","==e?k(O):N(e,t,!1)}function N(e,t,n){var i=0==n?F:N,o=0==n?O:H;return"=>"==e?k(L,n?U:$,T):"operator"==e?/\+\+|--/.test(t)||d&&"!"==t?k(i):d&&"<"==t&&M.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?k(D(">"),Z(re,">"),Y,i):"?"==t?k(O,R(":"),o):k(o):"quasi"==e?x(z,i):";"!=e?"("==e?ee(H,")","call",i):"."==e?k(J,i):"["==e?k(D("]"),j,R("]"),Y,i):d&&"as"==t?(M.marked="keyword",k(re,i)):"regexp"==e?(M.state.lastType=M.marked="operator",M.stream.backUp(M.stream.pos-M.stream.start-1),k(o)):void 0:void 0}function z(e,t){return"quasi"!=e?x():"${"!=t.slice(t.length-2)?k(z):k(O,W)}function W(e){if("}"==e)return M.marked="string-2",M.state.tokenize=y,k(z)}function $(e){return A(M.stream,M.state),x("{"==e?B:O)}function U(e){return A(M.stream,M.state),x("{"==e?B:H)}function Q(e,t){if("target"==t)return M.marked="keyword",k(F)}function G(e,t){if("target"==t)return M.marked="keyword",k(N)}function V(e){return":"==e?k(Y,B):x(F,R(";"),Y)}function J(e){if("variable"==e)return M.marked="property",k()}function K(e,t){if("async"==e)return M.marked="property",k(K);if("variable"==e||"keyword"==M.style){return M.marked="property","get"==t||"set"==t?k(X):(d&&M.state.fatArrowAt==M.stream.start&&(n=M.stream.match(/^\s*:\s*/,!1))&&(M.state.fatArrowAt=M.stream.pos+n[0].length),k(q));var n}else{if("number"==e||"string"==e)return M.marked=s?"property":M.style+" property",k(q);if("jsonld-keyword"==e)return k(q);if(d&&C(t))return M.marked="keyword",k(K);if("["==e)return k(O,ne,R("]"),q);if("spread"==e)return k(H,q);if("*"==t)return M.marked="keyword",k(K);if(":"==e)return x(q)}}function X(e){return"variable"!=e?x(q):(M.marked="property",k(xe))}function q(e){return":"==e?k(H):"("==e?x(xe):void 0}function Z(e,t,n){function i(o,r){if(n?n.indexOf(o)>-1:","==o){var a=M.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),k(function(n,i){return n==t||i==t?x():x(e)},i)}return o==t||r==t?k():k(R(t))}return function(n,o){return n==t||o==t?k():x(e,i)}}function ee(e,t,n){for(var i=3;i<arguments.length;i++)M.cc.push(arguments[i]);return k(D(t,n),Z(e,t),Y)}function te(e){return"}"==e?k():x(B,te)}function ne(e,t){if(d){if(":"==e)return k(re);if("?"==t)return k(ne)}}function ie(e){if(d&&":"==e)return M.stream.match(/^\s*\w+\s+is\b/,!1)?k(O,oe,re):k(re)}function oe(e,t){if("is"==t)return M.marked="keyword",k()}function re(e,t){return"keyof"==t||"typeof"==t?(M.marked="keyword",k("keyof"==t?re:O)):"variable"==e||"void"==t?(M.marked="type",k(de)):"string"==e||"number"==e||"atom"==e?k(de):"["==e?k(D("]"),Z(re,"]",","),Y,de):"{"==e?k(D("}"),Z(se,"}",",;"),Y,de):"("==e?k(Z(le,")"),ae):void 0}function ae(e){if("=>"==e)return k(re)}function se(e,t){return"variable"==e||"keyword"==M.style?(M.marked="property",k(se)):"?"==t?k(se):":"==e?k(re):"["==e?k(O,ne,R("]"),se):void 0}function le(e){return"variable"==e?k(le):":"==e?k(re):void 0}function de(e,t){return"<"==t?k(D(">"),Z(re,">"),Y,de):"|"==t||"."==e||"&"==t?k(re):"["==e?k(R("]"),de):"extends"==t||"implements"==t?(M.marked="keyword",k(re)):void 0}function ce(e,t){if("<"==t)return k(D(">"),Z(re,">"),Y,de)}function ue(){return x(re,he)}function he(e,t){if("="==t)return k(re)}function fe(e,t){return"enum"==t?(M.marked="keyword",k(je)):x(pe,ne,ge,ye)}function pe(e,t){return d&&C(t)?(M.marked="keyword",k(pe)):"variable"==e?(S(t),k()):"spread"==e?k(pe):"["==e?ee(pe,"]"):"{"==e?ee(me,"}"):void 0}function me(e,t){return"variable"!=e||M.stream.match(/^\s*:/,!1)?("variable"==e&&(M.marked="property"),"spread"==e?k(pe):"}"==e?x():k(R(":"),pe,ge)):(S(t),k(ge))}function ge(e,t){if("="==t)return k(H)}function ye(e){if(","==e)return k(fe)}function ve(e,t){if("keyword b"==e&&"else"==t)return k(D("form","else"),B,Y)}function Ae(e,t){return"await"==t?k(Ae):"("==e?k(D(")"),be,R(")"),Y):void 0}function be(e){return"var"==e?k(fe,R(";"),_e):";"==e?k(_e):"variable"==e?k(we):x(O,R(";"),_e)}function we(e,t){return"in"==t||"of"==t?(M.marked="keyword",k(O)):k(F,_e)}function _e(e,t){return";"==e?k(Me):"in"==t||"of"==t?(M.marked="keyword",k(O)):x(O,R(";"),Me)}function Me(e){")"!=e&&k(O)}function xe(e,t){return"*"==t?(M.marked="keyword",k(xe)):"variable"==e?(S(t),k(xe)):"("==e?k(L,D(")"),Z(ke,")"),Y,ie,B,T):d&&"<"==t?k(D(">"),Z(ue,">"),Y,xe):void 0}function ke(e,t){return"@"==t&&k(O,ke),"spread"==e?k(ke):d&&C(t)?(M.marked="keyword",k(ke)):x(pe,ne,ge)}function Se(e,t){return"variable"==e?Ce(e,t):Ee(e,t)}function Ce(e,t){if("variable"==e)return S(t),k(Ee)}function Ee(e,t){return"<"==t?k(D(">"),Z(ue,">"),Y,Ee):"extends"==t||"implements"==t||d&&","==e?("implements"==t&&(M.marked="keyword"),k(d?re:O,Ee)):"{"==e?k(D("}"),Le,Y):void 0}function Le(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||d&&C(t))&&M.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(M.marked="keyword",k(Le)):"variable"==e||"keyword"==M.style?(M.marked="property",k(d?Te:xe,Le)):"["==e?k(O,ne,R("]"),d?Te:xe,Le):"*"==t?(M.marked="keyword",k(Le)):";"==e?k(Le):"}"==e?k():"@"==t?k(O,Le):void 0}function Te(e,t){return"?"==t?k(Te):":"==e?k(re,ge):"="==t?k(H):x(xe)}function De(e,t){return"*"==t?(M.marked="keyword",k(Pe,R(";"))):"default"==t?(M.marked="keyword",k(O,R(";"))):"{"==e?k(Z(Ye,"}"),Pe,R(";")):x(B)}function Ye(e,t){return"as"==t?(M.marked="keyword",k(R("variable"))):"variable"==e?x(H,Ye):void 0}function Re(e){return"string"==e?k():"("==e?x(O):x(Be,Oe,Pe)}function Be(e,t){return"{"==e?ee(Be,"}"):("variable"==e&&S(t),"*"==t&&(M.marked="keyword"),k(He))}function Oe(e){if(","==e)return k(Be,Oe)}function He(e,t){if("as"==t)return M.marked="keyword",k(Be)}function Pe(e,t){if("from"==t)return M.marked="keyword",k(O)}function Ie(e){return"]"==e?k():x(Z(H,"]"))}function je(){return x(D("form"),pe,R("{"),D("}"),Z(Fe,"}"),Y,Y)}function Fe(){return x(pe,ge)}function Ne(e,t,n){return t.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return Y.lex=!0,{startState:function(e){var t={tokenize:m,lastType:"sof",cc:[],lexical:new w((e||0)-r,0,"block",!1),localVars:n.localVars,context:n.localVars&&{vars:n.localVars},indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),A(e,t)),t.tokenize!=g&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==i?n:(t.lastType="operator"!=i||"++"!=o&&"--"!=o?i:"incdec",function(e,t,n,i,o){var r=e.cc;for(M.state=e,M.stream=o,M.marked=null,M.cc=r,M.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((r.length?r.pop():l?O:B)(n,i)){for(;r.length&&r[r.length-1].lex;)r.pop()();return M.marked?M.marked:"variable"==n&&_(e,i)?"variable-2":t}}}(t,n,i,o,e))},indent:function(t,i){if(t.tokenize==g)return e.Pass;if(t.tokenize!=m)return 0;var o,s=i&&i.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(i))for(var d=t.cc.length-1;d>=0;--d){var c=t.cc[d];if(c==Y)l=l.prev;else if(c!=ve)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(o=t.cc[t.cc.length-1])&&(o==F||o==N)&&!/^[,\.=+\-*:?[\(]/.test(i));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var u=l.type,f=s==u;return"vardef"==u?l.indented+("operator"==t.lastType||","==t.lastType?l.info+1:0):"form"==u&&"{"==s?l.indented:"form"==u?l.indented+r:"stat"==u?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,i)?a||r:0):"switch"!=l.info||f||0==n.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:r):l.indented+(/^(?:case|default)\b/.test(i)?r:2*r)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Ne,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=O&&t!=H||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(20))},function(e,t){var n;(n=jQuery).fn.draggable=function(e){var t=n.extend({handle:0,exclude:0},e);return this.each(function(){var e,i,o=n(this);(t.handle?n(t.handle,o):o).on({mousedown:function(r){var a=r.target,s="",l=!1;if(a&&(s=a.className)&&((s=s.trim()).indexOf("cm-")>-1?l=!0:s.indexOf("CodeMirror-")>-1&&(l=!0)),(!s||"form-control"!==s&&"presentation"!==s&&!l)&&!(s.indexOf("ureport")>-1||s.indexOf("ds_name")>-1||s.indexOf("dataset_name")>-1||"A"===a.tagName||a&&"presentation"===n(a).attr("role")||t.exclude&&~n.inArray(r.target,n(t.exclude,o)))){var d=o.offset();e=r.pageX-d.left,i=r.pageY-d.top,n(document).on("mousemove.drag",function(t){o.offset({top:t.pageY-i,left:t.pageX-e})})}},mouseup:function(e){n(document).off("mousemove.drag")}})})}},function(e,t,n){(e.exports=n(15)(!1)).push([e.i,".tree {\r\n}\r\n.tree li {\r\n list-style-type:none;\r\n margin:0;\r\n padding:2px 5px 0 0px;\r\n position:relative;\r\n line-height: 1;\r\n}\r\n.tree li::before, .tree li::after {\r\n content:'';\r\n left:-35px;\r\n position:absolute;\r\n right:auto\r\n}\r\n.tree li::before {\r\n border-left:1px solid #999;\r\n bottom:50px;\r\n height:100%;\r\n top:-1px;\r\n width:1px;\r\n}\r\n.tree li div li::before {\r\n border:none;\r\n}\r\n.tree li::after {\r\n border-top:1px solid #999;\r\n height:20px;\r\n top:23px;\r\n width:15px\r\n}\r\n.tree li div li::after {\r\n border:none\r\n}\r\n.tree li {\r\n margin-top:-5px;\r\n}\r\n.tree li span {\r\n border:1px solid transparent;\r\n display:block;\r\n margin:10px 0px 5px -20px;\r\n cursor:pointer;\r\n white-space: nowrap;\r\n}\r\n.tree li.parent_li>span {\r\n}\r\n.tree>ul>li::before, .tree>ul>li::after {\r\n border:0\r\n}\r\n.tree li:last-child::before {\r\n height:30px;\r\n}\r\n.tree-active{\r\n border:solid 1px #2196F3 !important\r\n}",""])},function(e,t,n){var i=n(550);"string"==typeof i&&(i=[[e.i,i,""]]),n(14)(i,{}),i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(15)(!1)).push([e.i,".handsontable tr{\r\n background: transparent;\r\n}\r\n.handsontable td, .handsontable th{\r\n background: transparent;\r\n}\r\n.ud-toolbar{\r\n width: 100%;\r\n background: #f8f8f8;\r\n}\r\n.ud-property-panel{\r\n width: 400px;\r\n border: solid 1px #999;\r\n border-radius: 5px;\r\n top: 35px;\r\n left: 710px;\r\n z-index: 105;\r\n position: absolute;\r\n background: #ffffff;\r\n box-shadow: 5px 5px 5px #888888;\r\n}\r\n.ud-select-color{\r\n background: #000000;\r\n width: 14px;\r\n height: 4px;\r\n display: block;\r\n}\r\n.ud-select-bgcolor{\r\n background: #fff;\r\n width: 14px;\r\n height: 4px;\r\n display: block;\r\n}",""])},function(e,t,n){var i=n(552);"string"==typeof i&&(i=[[e.i,i,""]]),n(14)(i,{}),i.locals&&(e.exports=i.locals)},function(e,t){e.exports="data:application/x-font-ttf;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJXQk0vAAABfAAAAFZjbWFw67yaGgAAAxgAAAbiZ2x5ZndTQz4AAAqgAABAFGhlYWQRXWXwAAAA4AAAADZoaGVhCQEFIgAAALwAAAAkaG10eEeG/8oAAAHUAAABRGxvY2F/HI6+AAAJ/AAAAKRtYXhwAZQA8wAAARgAAAAgbmFtZTi0GigAAEq0AAACYXBvc3Q0SV4zAABNGAAAA2EAAQAAA4D/gABcBVP/z//9BVMAAQAAAAAAAAAAAAAAAAAAAFEAAQAAAAEAAOh5VEtfDzz1AAsEAAAAAADWjhEjAAAAANaOESP/z/8sBVMDgQAAAAgAAgAAAAAAAAABAAAAUQDnADkAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQLAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjrMQOA/4AAXAOBANQAAAABAAAAAAAABAAAAAPpAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAFUwAABAAAAAQAAAAEAAAABAD//gQAAAAEAAAABAAAAAQAAAAEAAAABJMAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAP/PBAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQB//0EAAAABJwAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABRgAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAxIAAQAAAAACDAADAAEAAAAsAAMACgAAAxIABAHgAAAATABAAAUADAB45hLmGeYt5i/mNOY55j3mP+ZE5kvmT+Zg5mnma+Zx5nXmkOaT5pbmnOaw5rbmu+b05vjnEucs50rnVOds6G/oiOiM6Kvp1+sx//8AAAB45gDmGOYc5i/mMuY55j3mP+ZE5kvmT+Zg5mnma+Zw5nXmj+aT5pXmnOaw5rbmu+bz5vjnEucs50nnVOds6G/oiOiM6Kvp1+sx//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAEwATABwAHIAlACUAJgAmACYAJgAmACYAJgAmACYAJgAmgCaAJwAnACeAJ4AngCeAJ4AoACgAKAAoACiAKIAogCiAKIAogCiAKIAAAABADUASgAcAAIAMgA3AEgASQADADEASwAHABUARwBNADoAPwBOAFAAEQBMAC8AQwBCABQARABFAEYAIwAeACQAQQAlACYAKwAXACgADwALABsADAAqACwALQAuABAAPgA7AAgABAAwAAUAJwBAACIAKQAaABgAPABPABYAGQANAD0AHwAgAAkANAAOADgAMwAhAAYAHQA2ADkACgASABMAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAA9AAAAAAAAAAUAAAAHgAAAB4AAAAAQAA5gAAAOYAAAAANQAA5gEAAOYBAAAASgAA5gIAAOYCAAAAHAAA5gMAAOYDAAAAAgAA5gQAAOYEAAAAMgAA5gUAAOYFAAAANwAA5gYAAOYGAAAASAAA5gcAAOYHAAAASQAA5ggAAOYIAAAAAwAA5gkAAOYJAAAAMQAA5goAAOYKAAAASwAA5gsAAOYLAAAABwAA5gwAAOYMAAAAFQAA5g0AAOYNAAAARwAA5g4AAOYOAAAATQAA5g8AAOYPAAAAOgAA5hAAAOYQAAAAPwAA5hEAAOYRAAAATgAA5hIAAOYSAAAAUAAA5hgAAOYYAAAAEQAA5hkAAOYZAAAATAAA5hwAAOYcAAAALwAA5h0AAOYdAAAAQwAA5h4AAOYeAAAAQgAA5h8AAOYfAAAAFAAA5iAAAOYgAAAARAAA5iEAAOYhAAAARQAA5iIAAOYiAAAARgAA5iMAAOYjAAAAIwAA5iQAAOYkAAAAHgAA5iUAAOYlAAAAJAAA5iYAAOYmAAAAQQAA5icAAOYnAAAAJQAA5igAAOYoAAAAJgAA5ikAAOYpAAAAKwAA5ioAAOYqAAAAFwAA5isAAOYrAAAAKAAA5iwAAOYsAAAADwAA5i0AAOYtAAAACwAA5i8AAOYvAAAAGwAA5jIAAOYyAAAADAAA5jMAAOYzAAAAKgAA5jQAAOY0AAAALAAA5jkAAOY5AAAALQAA5j0AAOY9AAAALgAA5j8AAOY/AAAAEAAA5kQAAOZEAAAAPgAA5ksAAOZLAAAAOwAA5k8AAOZPAAAACAAA5mAAAOZgAAAABAAA5mkAAOZpAAAAMAAA5msAAOZrAAAABQAA5nAAAOZwAAAAJwAA5nEAAOZxAAAAQAAA5nUAAOZ1AAAAIgAA5o8AAOaPAAAAKQAA5pAAAOaQAAAAGgAA5pMAAOaTAAAAGAAA5pUAAOaVAAAAPAAA5pYAAOaWAAAATwAA5pwAAOacAAAAFgAA5rAAAOawAAAAGQAA5rYAAOa2AAAADQAA5rsAAOa7AAAAPQAA5vMAAObzAAAAHwAA5vQAAOb0AAAAIAAA5vgAAOb4AAAACQAA5xIAAOcSAAAANAAA5ywAAOcsAAAADgAA50kAAOdJAAAAOAAA50oAAOdKAAAAMwAA51QAAOdUAAAAIQAA52wAAOdsAAAABgAA6G8AAOhvAAAAHQAA6IgAAOiIAAAANgAA6IwAAOiMAAAAOQAA6KsAAOirAAAACgAA6dcAAOnXAAAAEgAA6zEAAOsxAAAAEwAAAAAAAAB2ANoBGgFkAdQCKANIA9QEPgRuBPgFmAW6BwIHuAfkCAwIKgh+CLoI9gmCCj4KjAsSC3QMAgw8DJoMtgz8DUINlA4uDkgOYg58DuQPAA+EECIQkhCoENAQ+BE2EVQRzhJoEsgS4hMYE9wUOhSCFKgU6hWQFqYXChd2F+wYUBlQGc4achsgG04b7hyUHOQdNB3KHfAeBh5WHswfMB+WIAoABQAA/+EDvAMYABMAKAAxAEQAUAAAAQYrASIOAh0BISc0LgIrARUhBRUXFA4DJyMnIQcjIi4DPQEXIgYUFjI2NCYXBgcGDwEOAR4BMyEyNicuAicBNTQ+AjsBMhYdAQEZGxpTEiUcEgOQAQoYJx6F/koCogEVHyMcDz4t/kksPxQyIBMIdwwSEhkSEowIBgUFCAICBA8OAW0XFgkFCQoG/qQFDxoVvB8pAh8BDBknGkxZDSAbEmGING4dJRcJAQGAgAETGyAOpz8RGhERGhF8GhYTEhkHEA0IGBoNIyQUAXfkCxgTDB0m4wAAAAADAAD/qwPUA1QAJwAzAD8AAAE1IyYnNycHJic1IxUGBycHFwYHIxUzFhcHFzcWFxUzNTY3FzcnNjcHBiInJjQ3NjIXFhQlHgEXPgE3LgEnDgED1HENMFBXUEROe05DT1hQLw1ycQ0vUFhPRE58TkRPWFAvDdQ+oT46Oj6hPjv+ywE9Li09AQE9LS49AUJ8TkRQV1AvDXFxDi5PWE9DTXxOQ1BYUDANcXENL1BYUENOUDs7PaE+Ozs+oVEuPQEBPS4tPQEBPQAAAAMAAP+iA+ADXgALABcAIwAAAQYABxYAFzYANyYAAy4BJz4BNx4BFw4BAzUjFSMVMxUzNTM1AgLL/vIFBQEOy8oBDgUF/vLKuPUEBPW4t/UFBfWZPbCwPbADXgb+88vL/vMGBgENy8sBDfx3BfS4uPQFBfS4uPQBy7CwPrCwPgAAAQAA/58DbgNgACoAACUGByU2NCclFhc+ATcuAScOAQcUFwUmJw4BBx4BFzY3BQYVHgEXPgE3LgECzTgp/uoCAgEWKThEWwEBW0REWgID/ukpOERaAgJaRDgpARcDAlpERFsBAVvgASCnDRoNpyABAlpERFoCAlpEDQ2nIAECWkREWgIBIKcNDURaAgJaRERaAAAAAAUAAP+aA+YDZgAIABgAKAA4AEgAADcRIxEUFjMhNSUzPgE3ES4BKwEiBgcRHgEXMz4BNxEuASsBIgYHER4BFzM+ATc1LgErASIGBxUeARczPgE3ES4BJyMOAQcRHgGUeSIaA479RzwNEQEBEQ08DREBARHDPA0RAQERDTwNEQEBEcM8DREBARENPA0RAQERwzwNEQEBEQ08DREBAREUA1H8choieXkBEQ0BLw0REQ3+0Q0RAQERDQIiDRERDf3eDREBARENtg0REQ22DREBARENAagNEQEBEQ3+WA0RAAAABQAA/5gD+AMqABQAGwAoACsALwAAAS4BIyc1IREzBw4BHwEWNjcBFT4BJTUzFQYPAQUBBi8BJjY3ARUzNRcTFzcFIRUhAugnkAhz/t0Bcg4ECuALIQ4BHxXI/ZTCBgW3AY/+1QoIywMBBAE5MJ1Pqqv8DAKv/VECCyMkhFP+3WcNIA34DAEMAQKoB86awhwDBKWI/vMIB+IECgMBGqKCrv6HyclHWwAAMAAA/7EDzwNqAAMABwALAA8AEwAXABsAHwAjACcAKwAzADcAOwA/AEMARwBLAE8AUwBXAFsAXwBjAGcAawBvAHMAdwB7AH8AgwCHAIsAjwCTAJcAmwCfAKMApwCrAK8AswC3ALsAvwDDAAABMxUjJzMVIyczFSMlMxUjNzMVIyUzFSMBMxUjNzMVIyczFSMnMxUjJTMVIzcRIREjESERIzMVIwEzFSMRMxUjNTMVIxEzFSMVMxUjETMVIyczFSM3MxUjJzMVIyczFSMlMxUjAzMVIzczFSMBMxUjATMVIyUzFSMlMxUjATMVIxEzFSMRMxUjNTMVIxUzFSMXMxUjAzMVIzUzFSMlMxUjFTMVIxEzFSMRMxUjETMVIxEzFSMRMxUjETMVIyczFSMlNwEHAlw/P/0/P34/PwH1Pz96Pz/9Ej8/ATo+Pn09Pfk9PX9AQAH1PT35/NNFA7G8Pj7+yEZGRkZGRkZGRkZGRj4+Pn09Pfk9PX9AQAH1PT36Pj59PT3+BEVFAvU+Pv4OPT0Bdj09/YdFRUVFRUVFRUVFhEBAhEVFRUUDcj8/Pz8/Pz8/Pz8/Pz8/Pz99Pj79FjEDbjEBskZGRkZGRkZGRkZGAf1FRUVFRUVFRUVF/IsDdfxJA7dF/gw/ATw/vkD+Rj9APwM2P35FRUVFRUVFRUX80EJCQgM5P/1IQkJCQkIDtz/8ykIBPz+9P71AP0ICPD+9Pz8/Pz/+xEABPD/+xEIDOT/+RT8Ctz8/RQsw/IwxAAAAEwAA/5gFUwOBAAMABwALAA8AEwAXABsAHwAjACcAKAAsADAANAA4ADwAQABEAFkAAAERIREBIzUzNSM1MzUjNTMTIzUzNSM1MzUjNTMTIzUzNSM1MzUjNTMlAREhEQEjNTM1IzUzEyM1MzUjNTMTIzUzNSM1MxMXBwYHDgEHDgEHPgE3PgE3Nic1BwFyAcL+y3t7e3t7e5aIiIiIiIiOgICAgICAAjD6yAKL/kKysrKy2cXFxcXNubm5uUaqXQ8OBh8GHmYGAzULBQkBAQFlAvL+ewGF/olRDl0OX/7XUQ5dDl/+11EOXQ5f3P5L/c4CMv3idRWG/vB1FYb+8HUVhgFZrAYhIw4uCCFKAwROHA4lDh4REgYAABAAAAAABAADAAADAAcACwAPABMAFwAbAB8AIwAnACsALwAzADcAOwA/AAARMxEjEzMRIxMzESMTMxEjATMRIxMzESMBMxEjAzMRIwEzESMFMxUjNzMVIzczFSMlMxUjJTMVIyczFSMlMxUjgIDAQECAQEDAQEABAEBAwEBA/sAgIMAgIAGgICD8oEBAwEBAgEBAAUBAQAFAQEDAgID+wICAAwD9gAKA/YACgP2AAoD9gAKA/YACgP2AAoD9gAKA/YACgP2AQEBAQEBAQEBAQEBAQEAAAgAA/4sDVgNIABYAGgAAATMRDgEHLgEnETMRFBYXHgEyNjc+ATUBIRUhAs2IA8GRkcEDiBwbHk1WTR4bHP3eAqr9VgNH/kSCrQQErYIBvP5EIDsYGxwcGxg7IP6JiQAABQAA/8wEAQMyABYAKAA4AEgAWAAAExUeARchNjIXDgEHJS4BNxE+ARcWFAcFND0BNiYnIQ4BFxUGFhchPgEXFjYnNTYmJyEOARcVBjY3BTU2JichDgEXFRQWNyE+AQc1LgEnIyIGFxUUFjczPgFNBT8FAx4EQQQCHwL8k0wgAwQtAxcCAsMCGDr+JDkZAgIYOgHcORmdORkDAh4z/TUyHwECHTUBzAEeIv5zMh8BKCgBjSMdvwEkI8YyHwEoKMYkJAE22R8pAQIXGRkBAgdmBwLGGhABBD8FKhUIGxMmAQEoEhsYKQECIeIBChc9EycCASEcQSUIA3sXEykCASMcGigYAQIpqBcTKwIlHBsnFwIBJwAACv/+/8sD+wMyABYAHwAoADEAOgBDAEwAVQBeAGcAABMVHgEXITYyFw4BIyUuATcRPgEXFhQHAR4BMjY0JiIGJz4BNCYiBhQWNz4BNCYiBhQWJT4BNCYiBhQWBzI2NCYiBhQWBR4BMjY0JiIGNz4BNCYiBhQWFx4BMjY0JiIGNz4BNCYiBhQWSgU/BQMeBEEEAh4D/JNMIAQDLQMXAgJYATFLMjJLMTwhLCxCLS1cISwsQywsARYdJyc6JiYUIiwsQyws/U0BJjsmJjsmwyk4OFM3Nz0BJzonJzonuR0nJzomJgE12R8pAQIXGRkBB2YHAsYaEAEEPwT+QSYxMUsyMloBLEMsLEMswwEsQi0tQiw5ASc6Jyc6J+stQiwsQi3OHScnOicnTwE3Uzc3Uze7HiYmOyYmJwEnOiYmOicAAAADAAD/wAMiA0AAAwAHAAsAAAENASUBBRElBRElEQGV/pcBbAFp/QgBa/6VAa4BawNA0dLR/iPRAaTR1P5f0QGiAAAAADkAAP8sBAADLAADAAgADAAQABUAGQAdACIAJgAqAC4AMgA2ADoAPgBCAEYASgBOAFIAVgBaAF4AYgBmAGoAbgByAHYAegB+AIIAhgCKAI4AkgCWAJoAngCiAKYAqgCuALIAtgC6AL4AwgDGAMoAzgDSANYA2gDeAOIA5gAAASERIRMxESERFzMVIyUhESETMREhERczFSMBIREhEzERIREXMxUjATMVIzsBFSsBMxUjOwEVKwEzFSM7ARUrATMVIxUzFSM7ARUrATMVIzsBFSsBMxUjOwEVKwEzFSM7ARUjATMVIyUzFSM3MxUjJzMVIyUzFSM7ARUjNzMVIzsBFSM3MxUjOwEVIzczFSM7ARUjNzMVIxczFSMlMxUjNzMVIzsBFSM3MxUjNzMVIxczFSMlMxUjNzMVIzczFSM7ARUjNzMVIxczFSMlMxUjOwEVIzczFSM7ARUrATMVIzczFSM3MxUjAUD/AAEAQP6AgICAA0D/AAEAQP6AgICA/kD/AAEAQP6AgICAAUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAcBAQPyAQEBAQECAQEABAEBAQEBAQEBAwEBAQEBAQEBAQEBAQEBAQEBAQEBA/oBAQEBAQEBAQIBAQEBAQEBAQP6AQEBAQECAQEBAQEBAQEBAQED+wEBAQEBAQEBAQEBAwEBAgEBAgEBAAuz/AAFA/oABgICAwP8AAUD+gAGAgID+QP8AAUD+gAGAgIADgEBAQEBAQEBAQEBAQEBAQEACAEBAQIBAQEBAQECAQECAQECAQECAQIBAQECAQEBAQIBAgEBAQIBAQEBAgECAQIBAQIBAQEBAQEBAAAAABAAA/4cD/QMBAFkAXwB3AHgAAAEmJy4BLwEmIg8BDgEHBgcGFRQfAQcGFB8BHgEyNj8BNjQmIg8BBiIvASY0PwEWFx4BFx4BMz4BNCYnBgcuAic3AQcGFjsBMhYXHgEVFBceATM+ATc2NTQnJSY1PgE3AQ4BBy4BNTQnJic3NjQvARYXFhcWFRQHMQPIKUk0VxLxBhEHD0RxKi8ZHC4HWy4u7Rc6PjkY9AYMEQf0JF0j7SIiYBwkPX0xBhMMEhgYEhgMVW80FOkBkRoLCwwBAg8KCxQOCxoJFxsGETT84ygBfm0CVgUKAwUMKwsKFQYGfiImQCQtDQFaQS4gHQPxBwcPARQTFB4hKDorBlswfzHtFxcXF/UGEQ0G9SEh7SRdI2APDRMQAQoMARgkFwEBFAQVEgvp/nAbChoKDxFRSDIiGg8CJhY5Z2tToSEsMT4I/VMUEgIFJyWLPQ4IFQYRB30NFyk6SF5XMwAAAAQAAP/eA/QDIgACAAoADQAVAAAbAgMjATM3IRczPwEXAyMHFzUzFzPpc3QLsf74ez4BMj+ZC0NDB2ZSJLElWQEeAXX+iwIE/LzHx8KysgEF3XACcwAAAAAFAAD/twObA0kAAwAHAAsADwATAAABMxEjASEVIRMhFSEDMxUjJTMVIwGY0ND+zgM0/MzLAZ7+YstlZQLPZWUC4/06Aytl/TplA5DU1NQAAAIAAP/JBJMDNwAFAAsAACUVIREzEQETIREJAQSS+25JA26S/EkBAAFJEkkDbvzbAkn+AAFKAUn+twAAAAEAAP+sAzkDVQA1AAAXPwE2NzY/ATYSJzUuAic3FxYzMj8BBgcOAQcOAQ8BBgIPAQ4BFxUWFwYHIgYjIiYjJiMiBsgKMi4WEQgmJUEBDyUvDAykJiMdH4YDCRJXFwQIAggRSQsUBQkBC2YCCAYbBhJHEVQpH3BTNA0MCxUosawBPhYPCAYDAj8IAgIIGB4GFwkLHQo1W/61M1oZNAkLAhEbIQIMAQoAAAMAAP+kAzUDYAAOABcAIAAAAT4BNS4BJyERIT4BNy4BATMeARcOAQcjEyMRMx4BFw4BArAeIgOadP6sAZlzmwMBR/5qbC49AQE9LmypqakwQQEBQAGeJFkzc5sD/EUDm3NLeQFdAkw6OkwC/mYBEQJMOjpOAAAAAAMAAP+gA/YDYAAMABkAHQAABSYAJzYANxYAFwYABxEOAQceARc+ATcuAScDIRUhAhXM/vEFBQEPzMwBDwUF/vHMuvYFBfa6uvcFBfe64AHW/ipgBQEPzMwBDwUF/vHMzP7xBQOVBPe6uvcEBPe6uvcE/msrAAAAAAgAAP+kA9wDXAALABcAIwAvADsARABNAFYAAAUmACc2ADcWABcGAAMOAQceARc+ATcuARMhIiY0NjchHgEUBichIiY0NjMhMhYUBichLgE0NjMhMhYUBgEiJjQ2MhYUBiciJjQ2MhYUBicuATQ2MhYUBgIAyv70BQUBDMrKAQwFBf70yrPvBATvs7PvBATvIP7DCw8PCwE9Cw8PC/7DCw8PCwE9Cw8PC/7DCw8PCwE9Cw8P/k8LDw8WDw8LCw8PFg8PCwsPDxYPD1sFAQzKygEMBQX+9MrK/vQDfATvs7PvBATvs7Pv/YsPFw8BAQ8XD7kPFhAPFw+4AQ4WEA8XDv6ODxcPDxcPuQ8WEA8XD7gBDhYQDxcOAAAHAAD/dwO3AuEAGwBBAFkAYgBuAHoAhgAAATI2NREhFxUeATI2PQE0LwEmJyYjISIGFREUFgUmKwEOAQcVITUmJyYnIyIGFREUFjsBMjY9ASEVFBY7ATI2NRE2AyM1NCYHISYGHQEjETMVFBYzITI2PQEzBw4BFBYyNjQmAyMiBhQWFzM+ATQmByMOARQWOwEyNjQmAyEiBhQWFyE+ATQmARcKDAE4cAEMEgwGeAEDBgj+pwkMDAKiBgpkCQwB/bcBDQUFZAkNDQm6CgwBgg0I1goMAy6pDQn+UQkMkDsMCQJ2CQ03UQ8UFB4TE8j+CQwMCf4KDAwK/gkMDAn+CgwMGP8ACgwNCQEACQwMAVgMCQFIcdcJDAwJ4QkHdwQBBw0J/qMJDQQHAQwJOTgPBgEBDQn+YAkMDAlZWQkMDAkBoAn+bVgJDQEBDQlYAXQ6CQwMCTrWARMeFBQeEwHFCQ0IAQEIDghrAQgNCQkNCP3lCQ0IAQEIDQkAAwAA/58DFANhABIAJAAzAAAlNh0BFAYgJj0BNDYXHgEgNjcwEzYXFRQGICY9ATQXHgEgNjcwATIWHQEUBiAmPQE0NjMwAwQQ5P7M5QkGI8sBAssjAwgF3/7D4Q8hzQECziP+jp7h4f7F4eGd5RYYblCGhlBuCAULOUpKOQEVEhJ+S2RkS34WFjI/PzIBZ1Y7RUBZWUBFO1YAAAAACAAA/44D+wNyAA8AHwArADQAPQBGAE8AWAAAFxQGIzEiJjURNDYzMTIWFQMiJjUxNDY3IR4BFTEUBiMBHgEXPgE3LgEnDgElHgEyNjQmIgY3HgEyNjQmIgYDHgEyNjQmIgYBHgEyNjQmIgYHHgEyNjQmIgZgFxISFxcSEhcpEhcXEgOaERgYEf7QAl9HSF8CAl9IR1/+EQEuRy4uRy7qARcjGBgjF1QBFyMYGCMXAUcBITMiIjMhWAEXIxgYIxdIERgYEQOQERgYEfxHGBESFwEBFxIRGAE4SF8CAl9IR18CAl/HIy8vRi8vkBIXFyMYGP5XEhcXJBcXASoZIiIyIiLuEhcXIxgYAAAAAA3/z/+eBAMDdwADAA8AEwAXABsAHwAjACcAKwAvADMANwA/AAAnBREFFzMXNzMHFyMnByM3BSMVMxUjFTM1IxUzESMVMzUjFTMTMzUjNTM1IxEzNSMTIxUzBzM1IwMVIREhFSERMQJz/Y2dWS0tWVlwWkNDWnAB7XBwcHBwcHBwcHBDnJycnJycnJycnJycswGS/m4BwA5wA9lws1RUqdN+ftMKLd8tsy0BOSyzLf5tLVkt/sctAhkthiwBDS39BywDUgAIAAD/0AN0AxwADwAbAC4AOQA9AEEAUQBhAAAFISImNRE0NjMhMhYXEQ4BASIVERQzITI1ETQjASMuATURND4CFzMVIxEUFhczASM1IzUzNh4CBwMzFSMVMxUjAw4BKwEiJic1PgE3Mx4BHwEUBiMhIiY9ATQ2MyEyFhUDNf7rGyMjGwEVGyIBASL+0AICARUCAv6F2ispBRggEVNkEQbaAQQ8eHgOGBMEAWShoaGhjAEVESwQFQEBFRAsERUBjB0W/v0WHR0WAQMWHS8jGwE9GyMjG/7DGyMBfQL+wwICAT0C/vsDTScBzAcbGQUBPP4xFyMBAUHJPAEEExoP/po8KD0B8hggIBhtFyABASAXtBQZGRQKExoaEwAAAAQAAP+ABAADgAAMABEAFgAbAAAJAQ4BIyYAJzYANxEUJSERFgAFIS4BJxM+ATchAeUBADRzPdr+3wYFAQ7OAh/+IcUBCv5xAVYetoK7Y3gJ/jgBcf5FGhwGASHa0QEdEf4BCSkB3xD+9oWCth78n0LMfQAABAAA/6ED3gNdABkAKQA3ADwAAAUgIScmJyYnETc2PwEhHgEXFhceARcRBwYHJTIzMjcRJiMhIgcRFBcWMwEyMzI9ATQHISIdARQzATIzESMDe/6F/oUFQhYDAwIORwwCixUhDjAvDhgFAg5H/nmjoykBASn9dCkBAQciATN0dSws/i8sLAFFNzVsXwIMPwsLAvYFSBMDBRYOLjAPIhX9dAVIEyIqAWUqKf6aBwYdAics8y0BK/QsASb/AAACAAD/2gPlAvIAAwAKAAAFEyEDEwMRIRchFQMutvzptnp6ARJ5AYwlAeb+GgIj/d0DF3p6AAAAAAIAAP/AA8ADQQAPACsAAAEVIREzEzMRIREzETMRITUTNzYyFhQPARcWFAYiLwEHBiImND8BJyY0NjIXAUD/AD8BwAGAwED/AGBpChoTCWpqCRMaCmlpChoTCWpqCRMaCgHAgP6AAUD+wAFA/sABgIABDWoJExoKaWkKGhMJamoJExoKaWkKGhMJAAAAAgAA/8ADwQNAAA8AKwAAJSMRITUlNSERITUhNSERMyU3NjQmIg8BJyYiBhQfAQcGFBYyPwEXFjI2NCcCQID+gAFA/sABQP7AAYCAAQ1qCRMaCmlpChoTCWpqCRMaCmlpChoTCcD/AD8BwAGAwED/AGBpChoTCWpqCRMaCmlpChoTCWpqCRMaCgAAAAAEAAD/lQPAA1YAHAAgACgAMAAAARYUBwYjJyIvASYvATQiJz0BPgE/AjYeARQPASUhESEBITUhESE1JREhNSERITUlATYKCgUFDQ0KfwICAwEBAQQDAn4KGhQKZALu/cACQP2A/wABQP7AAQD/AAFA/sABAAEIChoKBQEJfQIEBwICAgIFCQQCiQkFFBoKaqX+wAJAQP8APwH9wED/AD8BAAAAAAcAAP+tA2IDUwAPAB8AMgA4AEsAVwBjAAABISIGBxUeARchPgE3NS4BExQGByEuASc1PgE3IR4BFRMhDgEPAQYVER4BFyE+ATcRLgEFFRQGKwEBDgEHIS4BNREzMjY3NTchHgEVBTMyNjQmKwEiBhQWByEyNjQmJyEOARQWAoz+5yMvAQEvIwEZJC4BAS4WIRn+5xghAQEhGAEZGSFh/mcNFwawFQEgGQI/GC8CASD+MxMOiQJ/AR8Q/cEOE5oYIQECAZkOE/6w1AYHBwbUBQcHvwGYBgcHBv5oBgcHAX0vI7kjLwEBLyO5Iy/+9RghAQEhGLkYIQEBIRgCKAEPB7AVFP2EGCEBAR8aAzIYISqIDxL9aA0TAQESDgJ/IRmZAQESDqQHCwcHCweIBwoHAQEHCgcAAwAAAAAD6gN5AAMABwALAAATIRUhFSEVIRUhFSEXA9L8LgPS/C4D0vwuA3hto22jbAAAAAMAAP+JA+cBrQADAAcACwAAEyEVIRUhFSEVIRUhDwPX/CkD1/wpA9f8KQGsbW1ubW0AAAADAAAAAAPsAocAAwAHAAsAABMhFSEVIRUhFSEVIRQD2PwoA9j8KAPY/CgChm1tbm1tAAAAAgAA/6QDnAN5ABMAQgAAATE1LgEnIxEuASIGBxEjDgEHFSETAzQnLgEjISIGBwMUFRQWOwETFwMzExcDMxMXAzMTFwMzAzcTMwM3EzMyNjUxNANnATEksQEhMyEBwyUwAQKXMy8BAg4K/ZQJDgNlDww8RyhFVyspKlMJKQlJCykLWhspHFlGKEgkDA8BZAgnNAEBdRkiIhn+iwE0Jz7+mgEOAwIJCwoI/ugDAgwPARkK/vEBGgb+7AEaAv7oARcC/usBFgT+5gERC/7kDwwEAAIAAP+KA9YDegAHAAoAAAUzASMBMxMhJyETAyiu/oa4/pKsYgF/J/7ciHYD7/wRARONAb0AAAAAAv/9//8EAAL6ACsAVwAAAQcOASMiJi8BLgE3NjsBNTQmIyEGDwEnJiciBgc+ATchHgEXFTMyFhcWBgcBIS4BJzUjIiYnJjY/AT4BMhYfAR4BBw4BKwEVHgEzITI2Nx4BMzI2Mw4BBwPtgAoZCg4VCoAOCAoTJkAjHf6ADgsUKRYUDh0OFGFEAYBUagJAFCAGBQQO/tP+gFNrAkAUIAUKCA6AChUcFgmADwcJBiAUQAEiHQGADhYJEygYDxwPFWVAAZOACQoKCYAPJBQmQB0jAQYMDAYBCAU7SgICa1NAFBMKJhD+bQJrU0ATExQkD4AJCgoJgA8kFBMTQB0jCgkJCgY6SwEAAAAAAwAA/4AEAAOAAB0AJABnAAAlND0BITUhNSE1ITUhNSE1ITUhNSE1ITUhNSE1IRElNDURJRElNx4BNz4BNz4BNxcWNz4BJy4BLwImNzYXJgYnLgE3BgcGJy4BNz4BFx4BFxY2NTYnJgcGBwYWBw4BBz4BNw4BBwYUAm8BOP7IATj+yAE4/sgBOP7IATj+yAE4/sgBkfwAAkH9vykCEBEaKxEqVi9BMT4HAwEeOyUGAwQFUDsdYS8+OBIJBQQBCQgJAggBCAYCAwQCDAgUCQUIEwQNaSoIJhIaKgoDAwUnLSxELEUrRStFLEYrQ/0G/iHoAQlt/ABtqgYRCRpAKAwVDRsUBwIIBQcDEQICAgIEDy8TBRWMQBgaCgYkRxoCAQEHEBIIBAkWFA4IAw4xVyxH1CAkJxkNJh0KBwAAAAYAAP+ABJwDgAADAAcACwAjAC0ARwAAJSEVIREhFSEVIRUhASEOAQcRHgEXMjY3ESERHgEzPgE3ES4BAyERNDY3IR4BFRcUBiImPQEzNSEVMxUOASImNRE0NjMhMhYVASEBvv5CAU7+sgG+/kIDDPxCMD4BAT4wEyMNAzgNIxMvPwEBQJ79IiUdAlkdJrIlOiYs/HAsASU6JSUdA74dJeQsAWQtby0CLQE+MP5vMD4BDAr+WQGnCgwBPjABkTA+/C4ChR0lAQElHbIdJSUd9Sws9R0lJR0BkR0lJR0AAAAAAgAA/4AEAAOAAAIABgAABQkBBSERIQQA/QADAPwAAQD/AIACAAIAgP0AAAAFAAD/sAPQA1AAAwAHAAsADwATAAABIRUhESEVIQUhNSERITUhERUhNQIA/jAB0P4wAdD+MAOg/GADoPxgA6ACiYT+9oTHhQEJhAGOhYUAAAUAAP+wA9ADUAADAAcACwAPABMAAAEhNSERITUhASE1IREhNSERFSE1AgAB0P4wAdD+MP4wA6D8YAOg/GADoAIFhP3uhP61hQEJhAGOhYUABwAA/60D0wNTAAMABwALAA8AGQAdACEAABMhFSERIRUhATMVIxEzFSMBJxUhNQcXNSEVAREhEQMhESFVA1b8qgNW/KoBhCcnJycBq3T+B3V1Afn9HgOkJ/yqA1YCaSf+fCcClML+LsIBq3VOTnV1Tk4CR/xcA6T8gwNWAAIAAP+PA7MDcQABAAsAABMxBTUJATUEAhcmEhACLgF0/oz+xlRe0YADcPDw/oz+jPYG/rqi8QH0AAAAAAUAAP+IA/gDeAAQACYANABCAFAAAAUhLgEnET4BMhYVESEyFhQGASImJyY2PwE2HwEBNjIWFAcBBi8BBxMRIxEjETQ2OwEyFhURMzUjFSM1NDY7ATIWFxUzESMRIxE+ATsBMhYVEQPa/EwNEAEBEBsQA5YNEBD8PwkKBQgFCecSEuEBhwkXEgn+aBIS4dXtPDsQDnYOEM87OxANdw0QAc87PAEQDXcNEHgBEA0DtA0QEA38ahAbEAFjBwUJFwmsCQmIAW8JEhcJ/n8RC4ig/roBBf77ASIOEBAO/t6goL4NEBANvgFe/qIBew4QEA7+hQAAAAAHAAD/nwPgA2AADwAUABwAJgAxADkAYQAAJS4BJyIHFSc3FTYzHgEXFAExMhcmAyEiJjQ2MyElMxYfASEiJjQ2AzQ2MyEGDwEhIiYXIiY0NjMhBwEuASchDgEHER4BFyE+ATc1FhcWFxUOAQchLgEnET4BNyEeARcRJicD1hmJXAwMqqoMDHCVA/74BwUGdv5gCg4OCgFw/pDyBxEG/vAKDg4ODgoB4BkTF/5jCg4YCg4OCgE9MAF7ARsU/WAUGwEBGxQCoBQbAR0MAwQBNin9YCk2AQE2KQKgKTYBFxlgVWkCAl6qqWQBA5VwJgHuBAP+IQ4UDpAYEgYOFA4BCAoOBhMXDp4OFA4wAVAUGwEBGxT9ABQbAQEbFIweKAcHOCk2AQE2KQMAKTYBATYp/uYMCQAAAAIAAP+aA5MDYwATADcAAAETNi4BBgcDJyYOARYfARY+ASYnJSYGDwEGBwYHDgEHDgEfARYXFhceARceATc2NzY3EzYmJy4BAsvBBwcaGwjBZg0bDgcM8gwbDwcN/tULHAoGCQwiKjJlMRARBAIDBAsTHE4zSYY6EQgPBX8FDA0ZuAHeAU4NGw4HDP6xPAYHGRsIiwcHGhoIEQkDCwgKDSQiKTIGAhkQCAgLHSAtTh4pFwwDAwYPAU4OGQYLawAAAAEAAP+AA9EDgAAJAAAFNgIlFQkBFQQSAvphWP69/oABgAGNhICoAVAG/gGAAYD4C/38AAABAAD/nQN6A2EAHwAAEzQ1NDc2MyAhHgEVERQHDgEmJwEuAQcGBwEOAS4BNRGHIw4OAToBOhskAgMQFAf+5xEmEw0K/ugIFA8FAXDZ2CcRBwEjG/ygCQgMBgwIARQRCAkHCv7tCQsGFgwBqgAhAAD/mgPOA04AAwAHAAsADwATABcAGwAfACMAJwArAC8AMwA3ADsAPwBDAEcASwBPAFMAVwBbAF8AYwBnAGsAbwBzAHcAewB/AIMAABczFSMRMxUjETMVIyUzFSMnMxUjETMVIzczFSM3MxUjETMVIwEzFSMDMxUjETMVIxMzFSM3MxUjFTMVIxUzFSMFMxUjJTMVIwEzFSM3MxUjNzMVIyUzFSMBMxUjJTMVIwUzFSMlMxUjBTMVIxUzFSMVMxUjATMVIxUzFSMlMxUjFzMVIxtISEhISEgBI0lJkklJSUmSSUmRSUlJSQEkSUmSSUlJSZJJSZFJSUlJSUn+S0lJAbVJSf0oSUmSSUmRSUkBJElJ/ShISAG0SUn+TEhIAbRJSQG1SUlJSUlJ/JdISEhIAbRJSZJJSR1IAo9JAWxJSUlJSf6USUlJ20kBbEn+lEkB/kn+lEkB/klJSUhJSUnaSdpJ/pRISEhISEhIAyFJSUnbSUlJSElJSUlIAWxJSUlJSUlIAAAAAAUAAP+ABRgDgAAPAB8ALwA/AEAAACUVFAYjISImPQE0NjMhMhYBFRQGIyEiJj0BNDYzITIWExUUBiMhIiY9ATQ2MyEyFgEVFAYjISImPQE0NjMhMhYVBRcbE/tGExwcEwS6Exv+6RwT/XUTHBwTAosTHLocEvwAExwcEwQAEhz+6RwT/i8THBwTAdETHAxdExwcE10TGxsBBF0THBwTXRMbGwEEXRMbGxNdExwcAQRdExsbE10THBwTAAAAAwAA/38EAAOAABsAHwAsAAABFSEVIRUhFSEVIRUhFSEVIRUhFSEVIRUhFSERJREFEQMjJwcjAzMXNzMbATMCcQE2/soBNv7KATb+ygE2/soBNv7KATb+ygGP/AACQZ9VNUQ6U1MhN1cvMlMC+0IsRitEK0UrRCxEK1kC9hj82m0EAP1S7u4BX9vx/vkBBwAABAAA/8ADwANAAAMABwALAA8AABMhESEBIREhBSERIQEhESFAAYD+gAIAAYD+gP4AAYD+gAIAAYD+gANA/oABgP6AgP6AAYD+gAAAAAMAAP+UA+wDbAASABoAIgAAJS4BJz4BNxEGAAcWABcyNjcDBjchJgAnER4BBSEUBgcTPgECAEJYAQFYQtH+6gUFARbRVptB0CtkAVEF/urRQlgBUv6vIBvPWGTlAVhCQlgBAVEF/urR0f7qBTczAQggmtEBFgX+rwFYQiU/Fv74RccAAAYAAP+fA+ADYAAmADYAQgBOAGQAcAAABTUhIiY1ETQ2MyEyFh0BMDEeATI2PQEuASchDgEHER4BFyE+ATQmEzE0JichDgEVMRQWMyEyNgEzPgE0JisBIgYUFhMzMjY0JisBIgYUFgEnPgE1LgEnDgEHHgEXMjY3FxYyNjQlLgEnPgE3HgEXDgECcf4yJDMzJAI3JDMBDBINAUo4/ck3SwEBSzcBzggKCksMCf4gCgwMCgHgCQz+C4IKDAwKggoMDApXCQwMCVcKDAwDFaIcHwONa2uNAwONay5SIaIGEg3+mFh1AgJ1WFh1AgJ1NQEzJAK6JDMzJMQJDQ0JxDhKAQFKOP1GN0sBAgwQDALiCQwBAQwJCQ0N/ZkBDBINDRIMASwNEg0NEg3+XKIhUi5rjQMDjWtrjQMfHKIGDRJ6AnVYWHUCAnVYWHUAAAAABgAA/6QDtQNeACcATQBnAJAAtgDQAAABIxEWFw4BIyEiJjU2NxEjIiY9ATQ2NyE1PgE3Mx4BFxUhHgEdARQGATU0NjsBMhYdATM1NDY7ATIWHQEzNT4BOwEyFh0BMyYnESERBgcBNCYnITU0JisBIgYdASEOAR0BFBYzITI2NRUjERYXDgEjISImNTY3ESMiJj0BNDY3ITU+ATczHgEXFSEeAR0BFAYjATU0NjsBMhYdATM1NDY7ATIWHQEzNT4BOwEyFh0BMyYnESERFAcBNCYnITU0JisBIgYdASEOAQcXFBYzITI2NQOSEQERARQO/SEPExABEg8TEw8BIwEwJDMlMAEBIw8TE/2jCAUJBgeQCAUJBQiIAQcFCQYHqxAB/UMBEQMCCgf+zCIZJBki/swHCgoHAwIHChEBEQEUDv0hDxMQARIPExMPASMBMCQzJTABASMPExMP/bIIBQkGB5AIBQkFCIgBBwUJBgegDwH9VhIC7QkI/s8iGg4aIv7MBwkBAQkIAuoICQFa/vtMRgsSEw8+SgEKEw+rDhMBvyQxAQExJL8BEw6rDxP+buIGBwcG4uIGBwcG4uIGBwcG4j5KAQr++ElEAlEHCQHWGSIiGdYBCQeJBwoKBzT++0tGDBITDz9JAQsTD6sOEwG/JDEBATEkvwETDqsPE/551wYHBwbX1wYHBwbX1wYHBwbXNT8BE/7xQToCOQcJAeIZGBgZ4AEJB3MHCgoHAAIAAP+9A+gDQwAQAEYAABchMjY0JiMhETQmIgYHER4BNz4BNzE0JzcWMzE2NxceATI2PQE3FjMxPgE0JiIGFRQXByYjIgcnLgEiBgcUFwcmIzEOARQWOwOODRERDfyQERoRAQERoBwkAQWACAsdE3gBJDclqAwOHCQkNyUDnREXGxN7AiQ2JAEGfQoNGyUlQhAYEAMwDBAQDPy0DBDcASYdDgyaAwEVPx0mJh0EmAYBJjonJx0LC44OE0EbJCcdDw6YBAEmOiYAAgAAAAAEAAM3ABQASwAAATQmIyIOAQcGFBYyNzY/AT4BMzI2JRQHDgEHBiMiJy4BIyIOAiMiJi8BLgE1ND4CNTQmJyY1ND4CNz4EPwUyHgIC2xUPYqeCRgsWHQwPGyZPlmgPFQElCxuefXqAVU8IVA0JGxkjERgYDgYBAiMrIxABBTJWbD8fZ2ZmVRYRERAUGRckEgkB7g8VOGFNDB0VCw0bJkc7FoA2OIC2Pj4bAyolKyUUGAwCBwQULB8hCwMmBh0fQXhbRBUKCQEFFxUREAsJAzVLQgAABwAA/4AEAAOAAB8AIwArAC8AMwBHAEsAACUVDgEjISImJzUuASc1PgE3NT4BNyEeARcVHgEXFQ4BBSERIQEhFTM1IRUzJRUhNRMjFTMHIQ4BBxUzNT4BNyEeARcVMzUuATcjFTMDRAIpG/4BGyQBUWwCAmlRAScbAf8bKQJRaQICaf1nAgj9+AII/fg9AY49/nUBDn0oKAb+ATZIAT8BJBsB/xspAj8BTjoqKgNGGyIiG0YCbFG/Um8C/BskAQEkG/wCb1K/UWxIARECcvy8vICAgP7xKz8CUDdJSRwuAgIuHElJN1BsKwAAAAAEAAD/oAM5A2AAHAAgADwAQAAAASYrASIPAQYUFxY/AREUFjI2NxEXFj4BNTE0LwElIRUhAQYrASIvASY0NzYfARE0NjIWFxE3Nh4BFTEUBwUhNSECDQUHAQcFiAUECQtxCQ4JAW4FDAkEiP67AnH9jwFFBQcBBwWIBQQJC3EJDgkBbgUMCQT+MwJx/Y8DMAQFhwUOBQgFcf6+BwkJBwFCbgQBCQcGBYcxJfyWBQWHBQ4FCAVxAUIHCQkH/r5uBAEJBwYFuCYAABoAAP+LA7gDdQAXABsAHwAjACcASQBOAFIAVgBaAF0AYQBkAGcAagBvAHQAeAB8AIEAhACHAIsAjwCTAJYAAAEFDgEVERQWFwUWMjclPgE1ETQmJyUmIhcFByUnFQUnBxcRBwUlNwU1JTcnBxEXNyclFQcXNxUXNRc3JzUFDwE3ESc1BzcXBTUnFzUlFwUlJxE3BScVNwcXNSc3FTcXBxU3JzUHNzUHFxU/AicHFQc3NScHJTcHFyUnBxcHJwcXPwEVNxc1DwIXNRMHFRcHFzcHPwEHAer+dAoMDAoBjAsWCwGMCgwMCv50CxYaAXtY/t0e/t1YDlhYAYn+hVgBI/79Qhs2RAo/AQNJJCUePy5tAQMlBDhPSTtO/v0eHgEjWP6EAYpYWP35RUU2llERMn1RlrQyMjJQMh9FVz9vUSVxAZIGd0j+5FwfDw4LRDYZ4TIOMuEMwcNFRaUgWnrDFxcDb+UGEwz+NgsUBuUGBuUGFAsBygwTBuUGJtszqWVlqTMZM/6wM/TbM6klliYSHwEsJxwkllsqDxYlDDElCT9blhUkIP7ULTp1Ii2WKBPFZakz2/QzAVAzrCiuKEFXUC9lOh1IL1BXHTodTzodTzodfigyDB8vLysPQSonFik+JlsJGQbCJA68Oh1TOh2CB4EgAUEoXijGFo9Gu6UNAAAAAwAA/6ED3wNfAAgAQABTAAATHgEyNjQmIgYlJi8FLgEjIQYPAwYPAQYVERQXFh8BFh8BFh8BHgEzITM2PwE2PwE2PwcRNAMmIgcBJyYiDwERPgE3IR4BFxGqAjlXOjpXOQMvAQEHBgMMCRIwG/1SLCIKEAYQBgECAwkaCQYHEQgHBwkTCgKqDAwMCQgICA8LCQgLAwUFAd4VNxb+/noVNxZaASgcAqocKAECbyw5OVc6OlsEAxMLBg8KERQBGAgQCRYbCAsL/VYPDicbCQUFCgMDAgMCAQMDAwMFCAsKChEICxUVAq4Q/skUFP7+eRUVWQIHHCgBASgc/kEAGwAA/6YD2gNaAAMABwALAA8AEwAXABsAHwAjACcAKwAvADMANwA7AD8AQwBHAEsATwBTAFcAWwBfAGMAZwBrAAAXIRUhETMVIzczFSMRMxUjEzMVIxEzFSMTMxUjNzMVIxEzFSMTMxUjETMVIxMzFSMFMxUjJTMVIyUzFSMFMxUjJTMVIyUzFSMFMxUjJTMVIyUzFSMFMxUjJTMVIyUzFSMVMxUjJTMVIyUzFSMnA7L8TklJkUlJSUmSSUlJSZJISJFJSUlJkklJSUmRSUn8l0lJAbVISAG0SUn8l0lJAbVISAG0SUn8l0lJAbVISAG0SUn8l0lJAbVISAG0SUlJSfyXSUkBtUhIEEkDsklJSf6USAH9Sf6USAH9SUlJ/pRIAf1J/pRIAf1JSElJSUlJSUlJSUlJSUhISEhISUlJSUlJSUlJSUlJABwAAP+mA9oDWgADAAcACwAPABMAFwAbAB8AIwAnACsALwAzADcAOwA/AEMARwBLAE8AUwBXAFsAXwBjAGcAawBvAAATIRUhEzMVIxEzFSMTMxUjETMVIxMzFSMRMxUjEzMVIxEzFSMTMxUjETMVIwEzFSMlMxUjJTMVIwUzFSMlMxUjJTMVIwUzFSMlMxUjJTMVIwUzFSMlMxUjJTMVIwUzFSMlMxUjJTMVIwUzFSMlMxUjJwOy/E6RSUlJSZJJSUlJkkhISEiRSUlJSZJJSUlJ/ShJSQG1SEgBtElJ/JdJSQG1SEgBtElJ/JdJSQG1SEgBtElJ/JdJSQG1SEgBtElJ/JdJSQG1SEgBtElJ/JdJSQNpSUkDWUn+lEj+lEkB/Uj+lEkB/Uj+lEkB/Uj+lEkB/Uj+lEkDIUlJSUlJSUlJSUlJSUhISEhISUlJSUlJSUlJSUlJSElJSQAAAAUAAP+mA9oDWgAEAAgADAAQABQAAAEhESERBSERIRkBIREpAREhJREhEQIk/gMDsvyXAWz+lAFsAbT+lAFs/pQBbANZ/E4Dskn+lP5MAWz+lAFsSAFs/pQAAAAAGwAA/6YD2gNaAAMABwALAA8AEwAXABsAHwAjACcAKwAvADMANwA7AD8AQwBHAEsATwBTAFcAWwBfAGMAZwBrAAATMxEjATMVIxUzFSM1MxUjETMVIxEzFSMVMxUjETMVIwEzFSMRMxUjETMVIxMzFSMRMxUjETMVIwEzFSMBMxUjETMVIxUzFSMRMxUjETMVIxUzFSMnMxUjAzMVIxMzFSM3MxUjJTMVIxMzFSMnSUkBtUhISEhISEhISEhISEhI/txJSUlJSUmSSUlJSUlJASNJSQEjSUlJSUlJSUlJSUlJkUlJkklJkklJkUlJ/t1JSZJJSQNZ/E4B/UjbSdtJAWxJAWxJSEn9cUkB/UgB/Un84EkDskn+lEj+lEkDskn9cUkBbEhJSQFsSQFsSUhJ2kn+lEj+lElJSUlJAf1IAAAbAAD/pgPaA1oAAwAHAAsADwATABcAGwAfACMAJwArAC8AMwA3ADsAPwBDAEcASwBPAFMAVwBbAF8AYwBnAGsAAAEzESMBMxUjNzMVIxEzFSMRMxUjEzMVIxEzFSMRMxUjEzMVIxEzFSMTMxUjETMVIxEzFSMTMxUjETMVIxEzFSMBMxUjJTMVIwUzFSMlMxUjBTMVIyUzFSMFMxUjJTMVIwUzFSMlMxUjBTMVIwOQSUn8l0lJkUlJSUlJSZJJSUlJSUmSSEhISJFJSUlJSUmSSUlJSUlJ/ShJSQG1SEj+S0lJAbVISP5LSUkBtUhI/ktJSQG1SEj+S0lJAbVISP5LSUkDWfxOA7JJSUn+lEj+lEkDskn+lEj+lEkDskn84EkDskn+lEj+lEkDskn+lEj+lEkDIUlJSUlJSUlJSEhISUlJSUlJSUlISQAAAAIAAP/bA8cDJwAYAC0AAAEjNwEmJyMOARUUFxYXCQEGHQEUFhczNjcJASYnMQ4BBxQXFhcJAQYHFR4BMjcCXQEC/msRGQEaIwQIDgE1/sIRIxoBGREC/f5sERoaIwEFBw4BNv7CEQEBIzMRAX4CAZMRAQEiGg0LEQr+y/7DERkBGiIBARABlgGTEQEBIhoMCxEL/sv+wxEZARkjEAAAAAACAAD/2QOgAyUAGAAtAAABMwcBFhczPgE1NCcmJwkBNj0BNCYnIwYHCQEWFzE+ATc0JyYnCQE2NzUuASIHAaMBAgGVERkBGiMECA7+ywE+ESMaARkR/QMBlBEaGiMBBQcO/soBPhEBASMzEQGCAv5tEQEBIhoNCxEKATUBPREZARoiAQEQ/mr+bREBASIaDAsRCwE1AT0RGQEZIxAAAAAACQAA/88DsQMyABEAFQAZACcANgBEAE4AWwBoAAABIzUhFSMOAQcRMxUhNTMRLgElIRUhASE1IRcjNSEVIxE+ATchHgEXBS4BKwEVMzUzMj4CNCYHDgEHMisBNTMyHgIUBTM1MzUjNTM1IwcuASsBFTMyPgI0JgcOAisBNTMyHgIUA0U2/eI2Lj0BogIeogE9/bUBsP5QAbD+UAGwo2z94mwBHhcCihceAf3/BhUQRRsqEBUMBAQaAwkIAQYoKQUKBwUBIxtHR1FsVgkaEkFBEhoRCAgVAgwUEBsbEBQMBAJ0vb0BPi7+odnZAV8uPoiH/ZH0G1FRASkXHwEBHxcdBwqdPAoOEQ4SJQUHATMCBgoPZUYWKRgXCg2dDRUcIRxDCg8IbwgPFRcAAAAAAwAA/5EDaANvAAMADAAQAAABGwEjEyMDMzchFzMJASEVIQFhb3Df1Kr+dTwBJj2U/v/+JAMQ/PABfAFl/pkB7/zfwMADJ/yIZgAAAAEAAP+gA5wDYAAHAAAJAREBETMRIwMS/VMCrYmJATv+ZQPA/mUBm/xAAAAABAAA/8AD6wNAABwAIAAoADAAACU2MhcWFQcUDwEGDwEiFAcrAS4BLwImPgEyHwEDESERAREjESERIwMhESMRIREjAwJ4ChoKBQEJfQIEBwICAgIFCQQCiQkFFBoKaqUBQP3AQAEAPwECQEABAD8BtgoKBAYNDQp/AgIDAQEBBAMCfgoaFApkAu79wAJA/YD/AAFA/sABAP8AAUD+wAEAAAcAAP/bA+8DRgAjACgALwA0ADoAPwBEAAABLgEnNycuASMxIgYHJwcOAQcVIR4BFwcXHgEzMjcXNz4BNzUjITceAQE+ATMWFwMBEyE+ARMzBy4BJwEGIic3EwMhDgEDhAVPRDUPMHA9OWgvMw+AkQEBPwU3LDoPJVUuUEg2D2d1AY7+84Y8Rv4dKV80aFa+/vHw/h8FfrujUSQrAwFJQI5Ah9q7AXcFYgF0UYotXAkcHxsZXglM+pQSOFodWQkWFyVdCT3KeBHpKHkBDxYYAS7+vAGP/l+B2/6BjRpMLv7+Hx/p/s0BRWSrAAAABAAAAAAD4AK5ABwAIAA8AEAAAAE2PQE0LwEmIgcGHwEhIgYUFhchBwYeATMxMj8BExEjEQEmPQE0PwE2MhcWDwEhMhYUBgchFxYOASMxIicDETMRA7AEBYcFDgUIBXH+vgcJCQcBQm4EAQkHBgWHMSX8lgUFhwUOBQgFcQFCBwkJB/6+bgQBCQcGBbgmAXMFBwEHBYgFBAkLcQkOCQFuBQwJBIgBRv2PAnH+ugUHAQcFiAUECQtxCQ4JAW4FDAkEAc79jwJxAAACAAAAAAPgAvcAIgBGAAABIgYdAQ4BByE3NjQmIg8BBhUxFB8BFjI2NC8BIT4BNzU0JiUxMwcGFBYyPwE2NTE0LwEmIgYUHwEhDgEHFRQWMjY9AT4BNwOzExoCZkz+jRwNGiYNaQ0NaQ0mGQwcAXNzmAMa/pRHHA0ZJw1pDQ1pDSYZDBz+jXOYAxomGgJmTAIWGhNpTGYCHA0mGg1pDRMTDWkNGiYNHAOYc2kTGh4cDScZDWkNExMNaQ0aJg0cA5hzaRMaGhNpTGYCAAAIAAAAAAM7Au8ADwATABQAJwAoADQAQABMAAABDgEVERQWMyEyNjURNCYjBSERITEDDgEVERQWOwE1IxEhFTM1NCYnIRMzMjY0JisBIgYUFhczMjY0JicjDgEUFhczPgE0JicjDgEUFgGXFh4eFgFvFh4eFv6RAW/+kZ0WHh4WNDQBbzQeFv6R5OELDg4L4QsODgvhCw4OC+ELDg4L4QsODgvhCw4OAlIBHhb+KRYeHhYB1xYeNP4pAqkBHhb+KRYeNAHXNDQWHgH+lA8VDw8VD3MOFg4BAQ4WDnQBDhYOAQEOFg4AAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQAHABUAAQAAAAAAAgAHABwAAQAAAAAAAwAHACMAAQAAAAAABAAHACoAAQAAAAAABQALADEAAQAAAAAABgAHADwAAQAAAAAACgArAEMAAQAAAAAACwATAG4AAwABBAkAAAAqAIEAAwABBAkAAQAOAKsAAwABBAkAAgAOALkAAwABBAkAAwAOAMcAAwABBAkABAAOANUAAwABBAkABQAWAOMAAwABBAkABgAOAPkAAwABBAkACgBWAQcAAwABBAkACwAmAV0KQ3JlYXRlZCBieSBpY29uZm9udAp1cmVwb3J0UmVndWxhcnVyZXBvcnR1cmVwb3J0VmVyc2lvbiAxLjB1cmVwb3J0R2VuZXJhdGVkIGJ5IHN2ZzJ0dGYgZnJvbSBGb250ZWxsbyBwcm9qZWN0Lmh0dHA6Ly9mb250ZWxsby5jb20ACgBDAHIAZQBhAHQAZQBkACAAYgB5ACAAaQBjAG8AbgBmAG8AbgB0AAoAdQByAGUAcABvAHIAdABSAGUAZwB1AGwAYQByAHUAcgBlAHAAbwByAHQAdQByAGUAcABvAHIAdABWAGUAcgBzAGkAbwBuACAAMQAuADAAdQByAGUAcABvAHIAdABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABRAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETARQBFQEWARcBGAEZARoBGwEcAR0BHgEfASABIQEiASMBJAElASYBJwEoASkBKgErASwBLQEuAS8BMAExATIBMwE0ATUBNgE3ATgBOQE6ATsBPAE9AT4BPwFAAUEBQgFDAUQBRQFGAUcBSAFJAUoBSwFMAU0BTgFPAVABUQFSAAF4B3NldHRpbmcEcGx1cw9zaGFyZWNvbm5lY3Rpb24DYmFyCGJnY29sb3IyCGNyb3NzdGFiCXN1YnJlcG9ydAdiYXJjb2RlCXVuZGVybGluZQ5ob3Jpem9udGFsLWJhcgdzY2F0dGVyBXNxbGRzBnFyY29kZQdiZ2NvbG9yCGZvbnRzaXplCmZvbnRmYW1pbHkEYXJlYQZpdGFsaWMEYm9sZAVtaW51cwhtZXRob2RkcwZwcmludDEIZGF0YWJhc2UGYnViYmxlBngteGxzeARjb3B5A3BpZQRzYXZlBG9wZW4MZGVsZXRlY29sdW1uCWRlbGV0ZXJvdwlpbnNlcnRyb3cIcHJvcGVydHkIYWxpZ250b3ALYWxpZ25ib3R0b20LYWxpZ25taWRkbGUFY2xlYW4JZm9yZWNvbG9yDWZvb3Rlci1yZXBlYXQDcGRmBXByaW50BWZpcnN0CWFsaWdubGVmdAphbGlnbnJpZ2h0BW1lcmdlBHJlZG8IbWl4Y2hhcnQGaW1wb3J0DWNsZWFuLWNvbnRlbnQEdW5kbwV0aXRsZQluby1ib3JkZXILYWxpZ25jZW50ZXIEd29yZAdzdW1tYXJ5CGRvdWdobnV0B3ByZXZpZXcLY2xlYW4tc3R5bGUEbGluZQRsZWFmBzIxcHJpbnQGaGVpZ2h0BXJhZGFyBWltYWdlDWJvdHRvbS1ib3JkZXIKdG9wLWJvcmRlcgtmdWxsLWJvcmRlcgtsZWZ0LWJvcmRlcgxyaWdodC1ib3JkZXIEbmV4dARwcmV2C3BkZi1wcmludGVyCmZvcmVjb2xvcjEDZW5kDWluc2VydC1jb2x1bW4FcG9sYXIFd2lkdGgNaGVhZGVyLXJlcGVhdAVwYXN0ZQAAAAAA"},function(e,t){e.exports="data:application/vnd.ms-fontobject;base64,IFEAAHxQAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAs6566AAAAAAAAAAAAAAAAAAAAAAAAA4AdQByAGUAcABvAHIAdAAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgB1AHIAZQBwAG8AcgB0AAAAAAAAAQAAAAsAgAADADBHU1VCsP6z7QAAATgAAABCT1MvMldCTS8AAAF8AAAAVmNtYXDrvJoaAAADGAAABuJnbHlmd1NDPgAACqAAAEAUaGVhZBFdZfAAAADgAAAANmhoZWEJAQUiAAAAvAAAACRobXR4R4b/ygAAAdQAAAFEbG9jYX8cjr4AAAn8AAAApG1heHABlADzAAABGAAAACBuYW1lOLQaKAAASrQAAAJhcG9zdDRJXjMAAE0YAAADYQABAAADgP+AAFwFU//P//0FUwABAAAAAAAAAAAAAAAAAAAAUQABAAAAAQAA6Hqus18PPPUACwQAAAAAANaOESMAAAAA1o4RI//P/ywFUwOBAAAACAACAAAAAAAAAAEAAABRAOcAOQAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQAAAAoAHgAsAAFERkxUAAgABAAAAAAAAAABAAAAAWxpZ2EACAAAAAEAAAABAAQABAAAAAEACAABAAYAAAABAAAAAAABBAsBkAAFAAgCiQLMAAAAjwKJAswAAAHrADIBCAAAAgAFAwAAAAAAAAAAAAAAAAAAAAAAAAAAAABQZkVkAEAAeOsxA4D/gABcA4EA1AAAAAEAAAAAAAAEAAAAA+kAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAVTAAAEAAAABAAAAAQAAAAEAP/+BAAAAAQAAAAEAAAABAAAAAQAAAAEkwAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQA/88EAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAH//QQAAAAEnAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAFGAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAADEgABAAAAAAIMAAMAAQAAACwAAwAKAAADEgAEAeAAAABMAEAABQAMAHjmEuYZ5i3mL+Y05jnmPeY/5kTmS+ZP5mDmaeZr5nHmdeaQ5pPmluac5rDmtua75vTm+OcS5yznSudU52zob+iI6Izoq+nX6zH//wAAAHjmAOYY5hzmL+Yy5jnmPeY/5kTmS+ZP5mDmaeZr5nDmdeaP5pPmleac5rDmtua75vPm+OcS5yznSedU52zob+iI6Izoq+nX6zH//wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEATABMAHAAcgCUAJQAmACYAJgAmACYAJgAmACYAJgAmACaAJoAnACcAJ4AngCeAJ4AngCgAKAAoACgAKIAogCiAKIAogCiAKIAogAAAAEANQBKABwAAgAyADcASABJAAMAMQBLAAcAFQBHAE0AOgA/AE4AUAARAEwALwBDAEIAFABEAEUARgAjAB4AJABBACUAJgArABcAKAAPAAsAGwAMACoALAAtAC4AEAA+ADsACAAEADAABQAnAEAAIgApABoAGAA8AE8AFgAZAA0APQAfACAACQA0AA4AOAAzACEABgAdADYAOQAKABIAEwAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAD0AAAAAAAAABQAAAAeAAAAHgAAAABAADmAAAA5gAAAAA1AADmAQAA5gEAAABKAADmAgAA5gIAAAAcAADmAwAA5gMAAAACAADmBAAA5gQAAAAyAADmBQAA5gUAAAA3AADmBgAA5gYAAABIAADmBwAA5gcAAABJAADmCAAA5ggAAAADAADmCQAA5gkAAAAxAADmCgAA5goAAABLAADmCwAA5gsAAAAHAADmDAAA5gwAAAAVAADmDQAA5g0AAABHAADmDgAA5g4AAABNAADmDwAA5g8AAAA6AADmEAAA5hAAAAA/AADmEQAA5hEAAABOAADmEgAA5hIAAABQAADmGAAA5hgAAAARAADmGQAA5hkAAABMAADmHAAA5hwAAAAvAADmHQAA5h0AAABDAADmHgAA5h4AAABCAADmHwAA5h8AAAAUAADmIAAA5iAAAABEAADmIQAA5iEAAABFAADmIgAA5iIAAABGAADmIwAA5iMAAAAjAADmJAAA5iQAAAAeAADmJQAA5iUAAAAkAADmJgAA5iYAAABBAADmJwAA5icAAAAlAADmKAAA5igAAAAmAADmKQAA5ikAAAArAADmKgAA5ioAAAAXAADmKwAA5isAAAAoAADmLAAA5iwAAAAPAADmLQAA5i0AAAALAADmLwAA5i8AAAAbAADmMgAA5jIAAAAMAADmMwAA5jMAAAAqAADmNAAA5jQAAAAsAADmOQAA5jkAAAAtAADmPQAA5j0AAAAuAADmPwAA5j8AAAAQAADmRAAA5kQAAAA+AADmSwAA5ksAAAA7AADmTwAA5k8AAAAIAADmYAAA5mAAAAAEAADmaQAA5mkAAAAwAADmawAA5msAAAAFAADmcAAA5nAAAAAnAADmcQAA5nEAAABAAADmdQAA5nUAAAAiAADmjwAA5o8AAAApAADmkAAA5pAAAAAaAADmkwAA5pMAAAAYAADmlQAA5pUAAAA8AADmlgAA5pYAAABPAADmnAAA5pwAAAAWAADmsAAA5rAAAAAZAADmtgAA5rYAAAANAADmuwAA5rsAAAA9AADm8wAA5vMAAAAfAADm9AAA5vQAAAAgAADm+AAA5vgAAAAJAADnEgAA5xIAAAA0AADnLAAA5ywAAAAOAADnSQAA50kAAAA4AADnSgAA50oAAAAzAADnVAAA51QAAAAhAADnbAAA52wAAAAGAADobwAA6G8AAAAdAADoiAAA6IgAAAA2AADojAAA6IwAAAA5AADoqwAA6KsAAAAKAADp1wAA6dcAAAASAADrMQAA6zEAAAATAAAAAAAAAHYA2gEaAWQB1AIoA0gD1AQ+BG4E+AWYBboHAge4B+QIDAgqCH4Iugj2CYIKPgqMCxILdAwCDDwMmgy2DPwNQg2UDi4OSA5iDnwO5A8AD4QQIhCSEKgQ0BD4ETYRVBHOEmgSyBLiExgT3BQ6FIIUqBTqFZAWphcKF3YX7BhQGVAZzhpyGyAbThvuHJQc5B00Hcod8B4GHlYezB8wH5YgCgAFAAD/4QO8AxgAEwAoADEARABQAAABBisBIg4CHQEhJzQuAisBFSEFFRcUDgMnIychByMiLgM9ARciBhQWMjY0JhcGBwYPAQ4BHgEzITI2Jy4CJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIxwPPi3+SSw/FDIgEwh3DBISGRISjAgGBQUIAgIEDw4BbRcWCQUJCgb+pAUPGhW8HykCHwEMGScaTFkNIBsSYYg0bh0lFwkBAYCAARMbIA6nPxEaEREaEXwaFhMSGQcQDQgYGg0jJBQBd+QLGBMMHSbjAAAAAAMAAP+rA9QDVAAnADMAPwAAATUjJic3JwcmJzUjFQYHJwcXBgcjFTMWFwcXNxYXFTM1NjcXNyc2NwcGIicmNDc2MhcWFCUeARc+ATcuAScOAQPUcQ0wUFdQRE57TkNPWFAvDXJxDS9QWE9ETnxORE9YUC8N1D6hPjo6PqE+O/7LAT0uLT0BAT0tLj0BQnxORFBXUC8NcXEOLk9YT0NNfE5DUFhQMA1xcQ0vUFhQQ05QOzs9oT47Oz6hUS49AQE9Li09AQE9AAAAAwAA/6ID4ANeAAsAFwAjAAABBgAHFgAXNgA3JgADLgEnPgE3HgEXDgEDNSMVIxUzFTM1MzUCAsv+8gUFAQ7LygEOBQX+8sq49QQE9bi39QUF9Zk9sLA9sANeBv7zy8v+8wYGAQ3LywEN/HcF9Li49AUF9Li49AHLsLA+sLA+AAABAAD/nwNuA2AAKgAAJQYHJTY0JyUWFz4BNy4BJw4BBxQXBSYnDgEHHgEXNjcFBhUeARc+ATcuAQLNOCn+6gICARYpOERbAQFbRERaAgP+6Sk4RFoCAlpEOCkBFwMCWkREWwEBW+ABIKcNGg2nIAECWkREWgICWkQNDacgAQJaRERaAgEgpw0NRFoCAlpERFoAAAAABQAA/5oD5gNmAAgAGAAoADgASAAANxEjERQWMyE1JTM+ATcRLgErASIGBxEeARczPgE3ES4BKwEiBgcRHgEXMz4BNzUuASsBIgYHFR4BFzM+ATcRLgEnIw4BBxEeAZR5IhoDjv1HPA0RAQERDTwNEQEBEcM8DREBARENPA0RAQERwzwNEQEBEQ08DREBARHDPA0RAQERDTwNEQEBERQDUfxyGiJ5eQERDQEvDRERDf7RDREBARENAiINEREN/d4NEQEBEQ22DRERDbYNEQEBEQ0BqA0RAQERDf5YDREAAAAFAAD/mAP4AyoAFAAbACgAKwAvAAABLgEjJzUhETMHDgEfARY2NwEVPgElNTMVBg8BBQEGLwEmNjcBFTM1FxMXNwUhFSEC6CeQCHP+3QFyDgQK4AshDgEfFcj9lMIGBbcBj/7VCgjLAwEEATkwnU+qq/wMAq/9UQILIySEU/7dZw0gDfgMAQwBAqgHzprCHAMEpYj+8wgH4gQKAwEaooKu/ofJyUdbAAAwAAD/sQPPA2oAAwAHAAsADwATABcAGwAfACMAJwArADMANwA7AD8AQwBHAEsATwBTAFcAWwBfAGMAZwBrAG8AcwB3AHsAfwCDAIcAiwCPAJMAlwCbAJ8AowCnAKsArwCzALcAuwC/AMMAAAEzFSMnMxUjJzMVIyUzFSM3MxUjJTMVIwEzFSM3MxUjJzMVIyczFSMlMxUjNxEhESMRIREjMxUjATMVIxEzFSM1MxUjETMVIxUzFSMRMxUjJzMVIzczFSMnMxUjJzMVIyUzFSMDMxUjNzMVIwEzFSMBMxUjJTMVIyUzFSMBMxUjETMVIxEzFSM1MxUjFTMVIxczFSMDMxUjNTMVIyUzFSMVMxUjETMVIxEzFSMRMxUjETMVIxEzFSMRMxUjJzMVIyU3AQcCXD8//T8/fj8/AfU/P3o/P/0SPz8BOj4+fT09+T09f0BAAfU9Pfn800UDsbw+Pv7IRkZGRkZGRkZGRkZGPj4+fT09+T09f0BAAfU9Pfo+Pn09Pf4ERUUC9T4+/g49PQF2PT39h0VFRUVFRUVFRUWEQECERUVFRQNyPz8/Pz8/Pz8/Pz8/Pz8/P30+Pv0WMQNuMQGyRkZGRkZGRkZGRkYB/UVFRUVFRUVFRUX8iwN1/EkDt0X+DD8BPD++QP5GP0A/AzY/fkVFRUVFRUVFRfzQQkJCAzk//UhCQkJCQgO3P/zKQgE/P70/vUA/QgI8P70/Pz8/P/7EQAE8P/7EQgM5P/5FPwK3Pz9FCzD8jDEAAAATAAD/mAVTA4EAAwAHAAsADwATABcAGwAfACMAJwAoACwAMAA0ADgAPABAAEQAWQAAAREhEQEjNTM1IzUzNSM1MxMjNTM1IzUzNSM1MxMjNTM1IzUzNSM1MyUBESERASM1MzUjNTMTIzUzNSM1MxMjNTM1IzUzExcHBgcOAQcOAQc+ATc+ATc2JzUHAXIBwv7Le3t7e3t7loiIiIiIiI6AgICAgIACMPrIAov+QrKysrLZxcXFxc25ubm5RqpdDw4GHwYeZgYDNQsFCQEBAWUC8v57AYX+iVEOXQ5f/tdRDl0OX/7XUQ5dDl/c/kv9zgIy/eJ1FYb+8HUVhv7wdRWGAVmsBiEjDi4IIUoDBE4cDiUOHhESBgAAEAAAAAAEAAMAAAMABwALAA8AEwAXABsAHwAjACcAKwAvADMANwA7AD8AABEzESMTMxEjEzMRIxMzESMBMxEjEzMRIwEzESMDMxEjATMRIwUzFSM3MxUjNzMVIyUzFSMlMxUjJzMVIyUzFSOAgMBAQIBAQMBAQAEAQEDAQED+wCAgwCAgAaAgIPygQEDAQECAQEABQEBAAUBAQMCAgP7AgIADAP2AAoD9gAKA/YACgP2AAoD9gAKA/YACgP2AAoD9gAKA/YBAQEBAQEBAQEBAQEBAQAACAAD/iwNWA0gAFgAaAAABMxEOAQcuAScRMxEUFhceATI2Nz4BNQEhFSECzYgDwZGRwQOIHBseTVZNHhsc/d4Cqv1WA0f+RIKtBAStggG8/kQgOxgbHBwbGDsg/omJAAAFAAD/zAQBAzIAFgAoADgASABYAAATFR4BFyE2MhcOAQclLgE3ET4BFxYUBwU0PQE2JichDgEXFQYWFyE+ARcWNic1NiYnIQ4BFxUGNjcFNTYmJyEOARcVFBY3IT4BBzUuAScjIgYXFRQWNzM+AU0FPwUDHgRBBAIfAvyTTCADBC0DFwICwwIYOv4kORkCAhg6Adw5GZ05GQMCHjP9NTIfAQIdNQHMAR4i/nMyHwEoKAGNIx2/ASQjxjIfASgoxiQkATbZHykBAhcZGQECB2YHAsYaEAEEPwUqFQgbEyYBASgSGxgpAQIh4gEKFz0TJwIBIRxBJQgDexcTKQIBIxwaKBgBAimoFxMrAiUcGycXAgEnAAAK//7/ywP7AzIAFgAfACgAMQA6AEMATABVAF4AZwAAExUeARchNjIXDgEjJS4BNxE+ARcWFAcBHgEyNjQmIgYnPgE0JiIGFBY3PgE0JiIGFBYlPgE0JiIGFBYHMjY0JiIGFBYFHgEyNjQmIgY3PgE0JiIGFBYXHgEyNjQmIgY3PgE0JiIGFBZKBT8FAx4EQQQCHgP8k0wgBAMtAxcCAlgBMUsyMksxPCEsLEItLVwhLCxDLCwBFh0nJzomJhQiLCxDLCz9TQEmOyYmOybDKTg4Uzc3PQEnOicnOie5HScnOiYmATXZHykBAhcZGQEHZgcCxhoQAQQ/BP5BJjExSzIyWgEsQywsQyzDASxCLS1CLDkBJzonJzon6y1CLCxCLc4dJyc6JydPATdTNzdTN7seJiY7JiYnASc6JiY6JwAAAAMAAP/AAyIDQAADAAcACwAAAQ0BJQEFESUFESURAZX+lwFsAWn9CAFr/pUBrgFrA0DR0tH+I9EBpNHU/l/RAaIAAAAAOQAA/ywEAAMsAAMACAAMABAAFQAZAB0AIgAmACoALgAyADYAOgA+AEIARgBKAE4AUgBWAFoAXgBiAGYAagBuAHIAdgB6AH4AggCGAIoAjgCSAJYAmgCeAKIApgCqAK4AsgC2ALoAvgDCAMYAygDOANIA1gDaAN4A4gDmAAABIREhEzERIREXMxUjJSERIRMxESERFzMVIwEhESETMREhERczFSMBMxUjOwEVKwEzFSM7ARUrATMVIzsBFSsBMxUjFTMVIzsBFSsBMxUjOwEVKwEzFSM7ARUrATMVIzsBFSMBMxUjJTMVIzczFSMnMxUjJTMVIzsBFSM3MxUjOwEVIzczFSM7ARUjNzMVIzsBFSM3MxUjFzMVIyUzFSM3MxUjOwEVIzczFSM3MxUjFzMVIyUzFSM3MxUjNzMVIzsBFSM3MxUjFzMVIyUzFSM7ARUjNzMVIzsBFSsBMxUjNzMVIzczFSMBQP8AAQBA/oCAgIADQP8AAQBA/oCAgID+QP8AAQBA/oCAgIABQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEABwEBA/IBAQEBAQIBAQAEAQEBAQEBAQEDAQEBAQEBAQEBAQEBAQEBAQEBAQED+gEBAQEBAQEBAgEBAQEBAQEBA/oBAQEBAQIBAQEBAQEBAQEBAQP7AQEBAQEBAQEBAQEDAQECAQECAQEAC7P8AAUD+gAGAgIDA/wABQP6AAYCAgP5A/wABQP6AAYCAgAOAQEBAQEBAQEBAQEBAQEBAQAIAQEBAgEBAQEBAQIBAQIBAQIBAQIBAgEBAQIBAQEBAgECAQEBAgEBAQECAQIBAgEBAgEBAQEBAQEAAAAAEAAD/hwP9AwEAWQBfAHcAeAAAASYnLgEvASYiDwEOAQcGBwYVFB8BBwYUHwEeATI2PwE2NCYiDwEGIi8BJjQ/ARYXHgEXHgEzPgE0JicGBy4CJzcBBwYWOwEyFhceARUUFx4BMz4BNzY1NCclJjU+ATcBDgEHLgE1NCcmJzc2NC8BFhcWFxYVFAcxA8gpSTRXEvEGEQcPRHEqLxkcLgdbLi7tFzo+ORj0BgwRB/QkXSPtIiJgHCQ9fTEGEwwSGBgSGAxVbzQU6QGRGgsLDAECDwoLFA4LGgkXGwYRNPzjKAF+bQJWBQoDBQwrCwoVBgZ+IiZAJC0NAVpBLiAdA/EHBw8BFBMUHiEoOisGWzB/Me0XFxcX9QYRDQb1ISHtJF0jYA8NExABCgwBGCQXAQEUBBUSC+n+cBsKGgoPEVFIMiIaDwImFjlna1OhISwxPgj9UxQSAgUnJYs9DggVBhEHfQ0XKTpIXlczAAAABAAA/94D9AMiAAIACgANABUAABsCAyMBMzchFzM/ARcDIwcXNTMXM+lzdAux/vh7PgEyP5kLQ0MHZlIksSVZAR4Bdf6LAgT8vMfHwrKyAQXdcAJzAAAAAAUAAP+3A5sDSQADAAcACwAPABMAAAEzESMBIRUhEyEVIQMzFSMlMxUjAZjQ0P7OAzT8zMsBnv5iy2VlAs9lZQLj/ToDK2X9OmUDkNTU1AAAAgAA/8kEkwM3AAUACwAAJRUhETMRARMhEQkBBJL7bkkDbpL8SQEAAUkSSQNu/NsCSf4AAUoBSf63AAAAAQAA/6wDOQNVADUAABc/ATY3Nj8BNhInNS4CJzcXFjMyPwEGBw4BBw4BDwEGAg8BDgEXFRYXBgciBiMiJiMmIyIGyAoyLhYRCCYlQQEPJS8MDKQmIx0fhgMJElcXBAgCCBFJCxQFCQELZgIIBhsGEkcRVCkfcFM0DQwLFSixrAE+Fg8IBgMCPwgCAggYHgYXCQsdCjVb/rUzWhk0CQsCERshAgwBCgAAAwAA/6QDNQNgAA4AFwAgAAABPgE1LgEnIREhPgE3LgEBMx4BFw4BByMTIxEzHgEXDgECsB4iA5p0/qwBmXObAwFH/mpsLj0BAT0ubKmpqTBBAQFAAZ4kWTNzmwP8RQObc0t5AV0CTDo6TAL+ZgERAkw6Ok4AAAAAAwAA/6AD9gNgAAwAGQAdAAAFJgAnNgA3FgAXBgAHEQ4BBx4BFz4BNy4BJwMhFSECFcz+8QUFAQ/MzAEPBQX+8cy69gUF9rq69wUF97rgAdb+KmAFAQ/MzAEPBQX+8czM/vEFA5UE97q69wQE97q69wT+aysAAAAACAAA/6QD3ANcAAsAFwAjAC8AOwBEAE0AVgAABSYAJzYANxYAFwYAAw4BBx4BFz4BNy4BEyEiJjQ2NyEeARQGJyEiJjQ2MyEyFhQGJyEuATQ2MyEyFhQGASImNDYyFhQGJyImNDYyFhQGJy4BNDYyFhQGAgDK/vQFBQEMysoBDAUF/vTKs+8EBO+zs+8EBO8g/sMLDw8LAT0LDw8L/sMLDw8LAT0LDw8L/sMLDw8LAT0LDw/+TwsPDxYPDwsLDw8WDw8LCw8PFg8PWwUBDMrKAQwFBf70ysr+9AN8BO+zs+8EBO+zs+/9iw8XDwEBDxcPuQ8WEA8XD7gBDhYQDxcO/o4PFw8PFw+5DxYQDxcPuAEOFhAPFw4AAAcAAP93A7cC4QAbAEEAWQBiAG4AegCGAAABMjY1ESEXFR4BMjY9ATQvASYnJiMhIgYVERQWBSYrAQ4BBxUhNSYnJicjIgYVERQWOwEyNj0BIRUUFjsBMjY1ETYDIzU0JgchJgYdASMRMxUUFjMhMjY9ATMHDgEUFjI2NCYDIyIGFBYXMz4BNCYHIw4BFBY7ATI2NCYDISIGFBYXIT4BNCYBFwoMAThwAQwSDAZ4AQMGCP6nCQwMAqIGCmQJDAH9twENBQVkCQ0NCboKDAGCDQjWCgwDLqkNCf5RCQyQOwwJAnYJDTdRDxQUHhMTyP4JDAwJ/goMDAr+CQwMCf4KDAwY/wAKDA0JAQAJDAwBWAwJAUhx1wkMDAnhCQd3BAEHDQn+owkNBAcBDAk5OA8GAQENCf5gCQwMCVlZCQwMCQGgCf5tWAkNAQENCVgBdDoJDAwJOtYBEx4UFB4TAcUJDQgBAQgOCGsBCA0JCQ0I/eUJDQgBAQgNCQADAAD/nwMUA2EAEgAkADMAACU2HQEUBiAmPQE0NhceASA2NzATNhcVFAYgJj0BNBceASA2NzABMhYdARQGICY9ATQ2MzADBBDk/szlCQYjywECyyMDCAXf/sPhDyHNAQLOI/6OnuHh/sXh4Z3lFhhuUIaGUG4IBQs5Sko5ARUSEn5LZGRLfhYWMj8/MgFnVjtFQFlZQEU7VgAAAAAIAAD/jgP7A3IADwAfACsANAA9AEYATwBYAAAXFAYjMSImNRE0NjMxMhYVAyImNTE0NjchHgEVMRQGIwEeARc+ATcuAScOASUeATI2NCYiBjceATI2NCYiBgMeATI2NCYiBgEeATI2NCYiBgceATI2NCYiBmAXEhIXFxISFykSFxcSA5oRGBgR/tACX0dIXwICX0hHX/4RAS5HLi5HLuoBFyMYGCMXVAEXIxgYIxcBRwEhMyIiMyFYARcjGBgjF0gRGBgRA5ARGBgR/EcYERIXAQEXEhEYAThIXwICX0hHXwICX8cjLy9GLy+QEhcXIxgY/lcSFxckFxcBKhkiIjIiIu4SFxcjGBgAAAAADf/P/54EAwN3AAMADwATABcAGwAfACMAJwArAC8AMwA3AD8AACcFEQUXMxc3MwcXIycHIzcFIxUzFSMVMzUjFTMRIxUzNSMVMxMzNSM1MzUjETM1IxMjFTMHMzUjAxUhESEVIRExAnP9jZ1ZLS1ZWXBaQ0NacAHtcHBwcHBwcHBwcEOcnJycnJycnJycnJyzAZL+bgHADnAD2XCzVFSp035+0wot3y2zLQE5LLMt/m0tWS3+xy0CGS2GLAENLf0HLANSAAgAAP/QA3QDHAAPABsALgA5AD0AQQBRAGEAAAUhIiY1ETQ2MyEyFhcRDgEBIhURFDMhMjURNCMBIy4BNRE0PgIXMxUjERQWFzMBIzUjNTM2HgIHAzMVIxUzFSMDDgErASImJzU+ATczHgEfARQGIyEiJj0BNDYzITIWFQM1/usbIyMbARUbIgEBIv7QAgIBFQIC/oXaKykFGCARU2QRBtoBBDx4eA4YEwQBZKGhoaGMARURLBAVAQEVECwRFQGMHRb+/RYdHRYBAxYdLyMbAT0bIyMb/sMbIwF9Av7DAgIBPQL++wNNJwHMBxsZBQE8/jEXIwEBQck8AQQTGg/+mjwoPQHyGCAgGG0XIAEBIBe0FBkZFAoTGhoTAAAABAAA/4AEAAOAAAwAEQAWABsAAAkBDgEjJgAnNgA3ERQlIREWAAUhLgEnEz4BNyEB5QEANHM92v7fBgUBDs4CH/4hxQEK/nEBVh62grtjeAn+OAFx/kUaHAYBIdrRAR0R/gEJKQHfEP72hYK2HvyfQsx9AAAEAAD/oQPeA10AGQApADcAPAAABSAhJyYnJicRNzY/ASEeARcWFx4BFxEHBgclMjMyNxEmIyEiBxEUFxYzATIzMj0BNAchIh0BFDMBMjMRIwN7/oX+hQVCFgMDAg5HDAKLFSEOMC8OGAUCDkf+eaOjKQEBKf10KQEBByIBM3R1LCz+LywsAUU3NWxfAgw/CwsC9gVIEwMFFg4uMA8iFf10BUgTIioBZSop/poHBh0CJyzzLQEr9CwBJv8AAAIAAP/aA+UC8gADAAoAAAUTIQMTAxEhFyEVAy62/Om2enoBEnkBjCUB5v4aAiP93QMXenoAAAAAAgAA/8ADwANBAA8AKwAAARUhETMTMxEhETMRMxEhNRM3NjIWFA8BFxYUBiIvAQcGIiY0PwEnJjQ2MhcBQP8APwHAAYDAQP8AYGkKGhMJamoJExoKaWkKGhMJamoJExoKAcCA/oABQP7AAUD+wAGAgAENagkTGgppaQoaEwlqagkTGgppaQoaEwkAAAACAAD/wAPBA0AADwArAAAlIxEhNSU1IREhNSE1IREzJTc2NCYiDwEnJiIGFB8BBwYUFjI/ARcWMjY0JwJAgP6AAUD+wAFA/sABgIABDWoJExoKaWkKGhMJamoJExoKaWkKGhMJwP8APwHAAYDAQP8AYGkKGhMJamoJExoKaWkKGhMJamoJExoKAAAAAAQAAP+VA8ADVgAcACAAKAAwAAABFhQHBiMnIi8BJi8BNCInPQE+AT8CNh4BFA8BJSERIQEhNSERITUlESE1IREhNSUBNgoKBQUNDQp/AgIDAQEBBAMCfgoaFApkAu79wAJA/YD/AAFA/sABAP8AAUD+wAEAAQgKGgoFAQl9AgQHAgICAgUJBAKJCQUUGgpqpf7AAkBA/wA/Af3AQP8APwEAAAAABwAA/60DYgNTAA8AHwAyADgASwBXAGMAAAEhIgYHFR4BFyE+ATc1LgETFAYHIS4BJzU+ATchHgEVEyEOAQ8BBhURHgEXIT4BNxEuAQUVFAYrAQEOAQchLgE1ETMyNjc1NyEeARUFMzI2NCYrASIGFBYHITI2NCYnIQ4BFBYCjP7nIy8BAS8jARkkLgEBLhYhGf7nGCEBASEYARkZIWH+Zw0XBrAVASAZAj8YLwIBIP4zEw6JAn8BHxD9wQ4TmhghAQIBmQ4T/rDUBgcHBtQFBwe/AZgGBwcG/mgGBwcBfS8juSMvAQEvI7kjL/71GCEBASEYuRghAQEhGAIoAQ8HsBUU/YQYIQEBHxoDMhghKogPEv1oDRMBARIOAn8hGZkBARIOpAcLBwcLB4gHCgcBAQcKBwADAAAAAAPqA3kAAwAHAAsAABMhFSEVIRUhFSEVIRcD0vwuA9L8LgPS/C4DeG2jbaNsAAAAAwAA/4kD5wGtAAMABwALAAATIRUhFSEVIRUhFSEPA9f8KQPX/CkD1/wpAaxtbW5tbQAAAAMAAAAAA+wChwADAAcACwAAEyEVIRUhFSEVIRUhFAPY/CgD2PwoA9j8KAKGbW1ubW0AAAACAAD/pAOcA3kAEwBCAAABMTUuAScjES4BIgYHESMOAQcVIRMDNCcuASMhIgYHAxQVFBY7ARMXAzMTFwMzExcDMxMXAzMDNxMzAzcTMzI2NTE0A2cBMSSxASEzIQHDJTABApczLwECDgr9lAkOA2UPDDxHKEVXKykqUwkpCUkLKQtaGykcWUYoSCQMDwFkCCc0AQF1GSIiGf6LATQnPv6aAQ4DAgkLCgj+6AMCDA8BGQr+8QEaBv7sARoC/ugBFwL+6wEWBP7mAREL/uQPDAQAAgAA/4oD1gN6AAcACgAABTMBIwEzEyEnIRMDKK7+hrj+kqxiAX8n/tyIdgPv/BEBE40BvQAAAAAC//3//wQAAvoAKwBXAAABBw4BIyImLwEuATc2OwE1NCYjIQYPAScmJyIGBz4BNyEeARcVMzIWFxYGBwEhLgEnNSMiJicmNj8BPgEyFh8BHgEHDgErARUeATMhMjY3HgEzMjYzDgEHA+2AChkKDhUKgA4IChMmQCMd/oAOCxQpFhQOHQ4UYUQBgFRqAkAUIAYFBA7+0/6AU2sCQBQgBQoIDoAKFRwWCYAPBwkGIBRAASIdAYAOFgkTKBgPHA8VZUABk4AJCgoJgA8kFCZAHSMBBgwMBgEIBTtKAgJrU0AUEwomEP5tAmtTQBMTFCQPgAkKCgmADyQUExNAHSMKCQkKBjpLAQAAAAADAAD/gAQAA4AAHQAkAGcAACU0PQEhNSE1ITUhNSE1ITUhNSE1ITUhNSE1ITUhESU0NRElESU3HgE3PgE3PgE3FxY3PgEnLgEvAiY3NhcmBicuATcGBwYnLgE3PgEXHgEXFjY1NicmBwYHBhYHDgEHPgE3DgEHBhQCbwE4/sgBOP7IATj+yAE4/sgBOP7IATj+yAGR/AACQf2/KQIQERorESpWL0ExPgcDAR47JQYDBAVQOx1hLz44EgkFBAEJCAkCCAEIBgIDBAIMCBQJBQgTBA1pKggmEhoqCgMDBSctLEQsRStFK0UsRitD/Qb+IegBCW38AG2qBhEJGkAoDBUNGxQHAggFBwMRAgICAgQPLxMFFYxAGBoKBiRHGgIBAQcQEggECRYUDggDDjFXLEfUICQnGQ0mHQoHAAAABgAA/4AEnAOAAAMABwALACMALQBHAAAlIRUhESEVIRUhFSEBIQ4BBxEeARcyNjcRIREeATM+ATcRLgEDIRE0NjchHgEVFxQGIiY9ATM1IRUzFQ4BIiY1ETQ2MyEyFhUBIQG+/kIBTv6yAb7+QgMM/EIwPgEBPjATIw0DOA0jEy8/AQFAnv0iJR0CWR0msiU6Jiz8cCwBJTolJR0Dvh0l5CwBZC1vLQItAT4w/m8wPgEMCv5ZAacKDAE+MAGRMD78LgKFHSUBASUdsh0lJR31LCz1HSUlHQGRHSUlHQAAAAACAAD/gAQAA4AAAgAGAAAFCQEFIREhBAD9AAMA/AABAP8AgAIAAgCA/QAAAAUAAP+wA9ADUAADAAcACwAPABMAAAEhFSERIRUhBSE1IREhNSERFSE1AgD+MAHQ/jAB0P4wA6D8YAOg/GADoAKJhP72hMeFAQmEAY6FhQAABQAA/7AD0ANQAAMABwALAA8AEwAAASE1IREhNSEBITUhESE1IREVITUCAAHQ/jAB0P4w/jADoPxgA6D8YAOgAgWE/e6E/rWFAQmEAY6FhQAHAAD/rQPTA1MAAwAHAAsADwAZAB0AIQAAEyEVIREhFSEBMxUjETMVIwEnFSE1Bxc1IRUBESERAyERIVUDVvyqA1b8qgGEJycnJwGrdP4HdXUB+f0eA6Qn/KoDVgJpJ/58JwKUwv4uwgGrdU5OdXVOTgJH/FwDpPyDA1YAAgAA/48DswNxAAEACwAAEzEFNQkBNQQCFyYSEAIuAXT+jP7GVF7RgANw8PD+jP6M9gb+uqLxAfQAAAAABQAA/4gD+AN4ABAAJgA0AEIAUAAABSEuAScRPgEyFhURITIWFAYBIiYnJjY/ATYfAQE2MhYUBwEGLwEHExEjESMRNDY7ATIWFREzNSMVIzU0NjsBMhYXFTMRIxEjET4BOwEyFhURA9r8TA0QAQEQGxADlg0QEPw/CQoFCAUJ5xIS4QGHCRcSCf5oEhLh1e08OxAOdg4Qzzs7EA13DRABzzs8ARANdw0QeAEQDQO0DRAQDfxqEBsQAWMHBQkXCawJCYgBbwkSFwn+fxELiKD+ugEF/vsBIg4QEA7+3qCgvg0QEA2+AV7+ogF7DhAQDv6FAAAAAAcAAP+fA+ADYAAPABQAHAAmADEAOQBhAAAlLgEnIgcVJzcVNjMeARcUATEyFyYDISImNDYzISUzFh8BISImNDYDNDYzIQYPASEiJhciJjQ2MyEHAS4BJyEOAQcRHgEXIT4BNzUWFxYXFQ4BByEuAScRPgE3IR4BFxEmJwPWGYlcDAyqqgwMcJUD/vgHBQZ2/mAKDg4KAXD+kPIHEQb+8AoODg4OCgHgGRMX/mMKDhgKDg4KAT0wAXsBGxT9YBQbAQEbFAKgFBsBHQwDBAE2Kf1gKTYBATYpAqApNgEXGWBVaQICXqqpZAEDlXAmAe4EA/4hDhQOkBgSBg4UDgEICg4GExcOng4UDjABUBQbAQEbFP0AFBsBARsUjB4oBwc4KTYBATYpAwApNgEBNin+5gwJAAAAAgAA/5oDkwNjABMANwAAARM2LgEGBwMnJg4BFh8BFj4BJiclJgYPAQYHBgcOAQcOAR8BFhcWFx4BFx4BNzY3NjcTNiYnLgECy8EHBxobCMFmDRsOBwzyDBsPBw3+1QscCgYJDCIqMmUxEBEEAgMECxMcTjNJhjoRCA8FfwUMDRm4Ad4BTg0bDgcM/rE8BgcZGwiLBwcaGggRCQMLCAoNJCIpMgYCGRAICAsdIC1OHikXDAMDBg8BTg4ZBgtrAAAAAQAA/4AD0QOAAAkAAAU2AiUVCQEVBBIC+mFY/r3+gAGAAY2EgKgBUAb+AYABgPgL/fwAAAEAAP+dA3oDYQAfAAATNDU0NzYzICEeARURFAcOASYnAS4BBwYHAQ4BLgE1EYcjDg4BOgE6GyQCAxAUB/7nESYTDQr+6AgUDwUBcNnYJxEHASMb/KAJCAwGDAgBFBEICQcK/u0JCwYWDAGqACEAAP+aA84DTgADAAcACwAPABMAFwAbAB8AIwAnACsALwAzADcAOwA/AEMARwBLAE8AUwBXAFsAXwBjAGcAawBvAHMAdwB7AH8AgwAAFzMVIxEzFSMRMxUjJTMVIyczFSMRMxUjNzMVIzczFSMRMxUjATMVIwMzFSMRMxUjEzMVIzczFSMVMxUjFTMVIwUzFSMlMxUjATMVIzczFSM3MxUjJTMVIwEzFSMlMxUjBTMVIyUzFSMFMxUjFTMVIxUzFSMBMxUjFTMVIyUzFSMXMxUjG0hISEhISAEjSUmSSUlJSZJJSZFJSUlJASRJSZJJSUlJkklJkUlJSUlJSf5LSUkBtUlJ/ShJSZJJSZFJSQEkSUn9KEhIAbRJSf5MSEgBtElJAbVJSUlJSUn8l0hISEgBtElJkklJHUgCj0kBbElJSUlJ/pRJSUnbSQFsSf6USQH+Sf6USQH+SUlJSElJSdpJ2kn+lEhISEhISEgDIUlJSdtJSUlISUlJSUgBbElJSUlJSUgAAAAABQAA/4AFGAOAAA8AHwAvAD8AQAAAJRUUBiMhIiY9ATQ2MyEyFgEVFAYjISImPQE0NjMhMhYTFRQGIyEiJj0BNDYzITIWARUUBiMhIiY9ATQ2MyEyFhUFFxsT+0YTHBwTBLoTG/7pHBP9dRMcHBMCixMcuhwS/AATHBwTBAASHP7pHBP+LxMcHBMB0RMcDF0THBwTXRMbGwEEXRMcHBNdExsbAQRdExsbE10THBwBBF0TGxsTXRMcHBMAAAADAAD/fwQAA4AAGwAfACwAAAEVIRUhFSEVIRUhFSEVIRUhFSEVIRUhFSEVIRElEQURAyMnByMDMxc3MxsBMwJxATb+ygE2/soBNv7KATb+ygE2/soBNv7KAY/8AAJBn1U1RDpTUyE3Vy8yUwL7QixGK0QrRStELEQrWQL2GPzabQQA/VLu7gFf2/H++QEHAAAEAAD/wAPAA0AAAwAHAAsADwAAEyERIQEhESEFIREhASERIUABgP6AAgABgP6A/gABgP6AAgABgP6AA0D+gAGA/oCA/oABgP6AAAAAAwAA/5QD7ANsABIAGgAiAAAlLgEnPgE3EQYABxYAFzI2NwMGNyEmACcRHgEFIRQGBxM+AQIAQlgBAVhC0f7qBQUBFtFWm0HQK2QBUQX+6tFCWAFS/q8gG89YZOUBWEJCWAEBUQX+6tHR/uoFNzMBCCCa0QEWBf6vAVhCJT8W/vhFxwAABgAA/58D4ANgACYANgBCAE4AZABwAAAFNSEiJjURNDYzITIWHQEwMR4BMjY9AS4BJyEOAQcRHgEXIT4BNCYTMTQmJyEOARUxFBYzITI2ATM+ATQmKwEiBhQWEzMyNjQmKwEiBhQWASc+ATUuAScOAQceARcyNjcXFjI2NCUuASc+ATceARcOAQJx/jIkMzMkAjckMwEMEg0BSjj9yTdLAQFLNwHOCAoKSwwJ/iAKDAwKAeAJDP4LggoMDAqCCgwMClcJDAwJVwoMDAMVohwfA41ra40DA41rLlIhogYSDf6YWHUCAnVYWHUCAnU1ATMkArokMzMkxAkNDQnEOEoBAUo4/UY3SwECDBAMAuIJDAEBDAkJDQ39mQEMEg0NEgwBLA0SDQ0SDf5coiFSLmuNAwONa2uNAx8cogYNEnoCdVhYdQICdVhYdQAAAAAGAAD/pAO1A14AJwBNAGcAkAC2ANAAAAEjERYXDgEjISImNTY3ESMiJj0BNDY3ITU+ATczHgEXFSEeAR0BFAYBNTQ2OwEyFh0BMzU0NjsBMhYdATM1PgE7ATIWHQEzJicRIREGBwE0JichNTQmKwEiBh0BIQ4BHQEUFjMhMjY1FSMRFhcOASMhIiY1NjcRIyImPQE0NjchNT4BNzMeARcVIR4BHQEUBiMBNTQ2OwEyFh0BMzU0NjsBMhYdATM1PgE7ATIWHQEzJicRIREUBwE0JichNTQmKwEiBh0BIQ4BBxcUFjMhMjY1A5IRAREBFA79IQ8TEAESDxMTDwEjATAkMyUwAQEjDxMT/aMIBQkGB5AIBQkFCIgBBwUJBgerEAH9QwERAwIKB/7MIhkkGSL+zAcKCgcDAgcKEQERARQO/SEPExABEg8TEw8BIwEwJDMlMAEBIw8TEw/9sggFCQYHkAgFCQUIiAEHBQkGB6APAf1WEgLtCQj+zyIaDhoi/swHCQEBCQgC6ggJAVr++0xGCxITDz5KAQoTD6sOEwG/JDEBATEkvwETDqsPE/5u4gYHBwbi4gYHBwbi4gYHBwbiPkoBCv74SUQCUQcJAdYZIiIZ1gEJB4kHCgoHNP77S0YMEhMPP0kBCxMPqw4TAb8kMQEBMSS/ARMOqw8T/nnXBgcHBtfXBgcHBtfXBgcHBtc1PwET/vFBOgI5BwkB4hkYGBngAQkHcwcKCgcAAgAA/70D6ANDABAARgAAFyEyNjQmIyERNCYiBgcRHgE3PgE3MTQnNxYzMTY3Fx4BMjY9ATcWMzE+ATQmIgYVFBcHJiMiBycuASIGBxQXByYjMQ4BFBY7A44NEREN/JARGhEBARGgHCQBBYAICx0TeAEkNyWoDA4cJCQ3JQOdERcbE3sCJDYkAQZ9Cg0bJSVCEBgQAzAMEBAM/LQMENwBJh0ODJoDARU/HSYmHQSYBgEmOicnHQsLjg4TQRskJx0PDpgEASY6JgACAAAAAAQAAzcAFABLAAABNCYjIg4BBwYUFjI3Nj8BPgEzMjYlFAcOAQcGIyInLgEjIg4CIyImLwEuATU0PgI1NCYnJjU0PgI3PgQ/BTIeAgLbFQ9ip4JGCxYdDA8bJk+WaA8VASULG559eoBVTwhUDQkbGSMRGBgOBgECIysjEAEFMlZsPx9nZmZVFhEREBQZFyQSCQHuDxU4YU0MHRULDRsmRzsWgDY4gLY+PhsDKiUrJRQYDAIHBBQsHyELAyYGHR9BeFtEFQoJAQUXFREQCwkDNUtCAAAHAAD/gAQAA4AAHwAjACsALwAzAEcASwAAJRUOASMhIiYnNS4BJzU+ATc1PgE3IR4BFxUeARcVDgEFIREhASEVMzUhFTMlFSE1EyMVMwchDgEHFTM1PgE3IR4BFxUzNS4BNyMVMwNEAikb/gEbJAFRbAICaVEBJxsB/xspAlFpAgJp/WcCCP34Agj9+D0Bjj3+dQEOfSgoBv4BNkgBPwEkGwH/GykCPwFOOioqA0YbIiIbRgJsUb9SbwL8GyQBASQb/AJvUr9RbEgBEQJy/Ly8gICA/vErPwJQN0lJHC4CAi4cSUk3UGwrAAAAAAQAAP+gAzkDYAAcACAAPABAAAABJisBIg8BBhQXFj8BERQWMjY3ERcWPgE1MTQvASUhFSEBBisBIi8BJjQ3Nh8BETQ2MhYXETc2HgEVMRQHBSE1IQINBQcBBwWIBQQJC3EJDgkBbgUMCQSI/rsCcf2PAUUFBwEHBYgFBAkLcQkOCQFuBQwJBP4zAnH9jwMwBAWHBQ4FCAVx/r4HCQkHAUJuBAEJBwYFhzEl/JYFBYcFDgUIBXEBQgcJCQf+vm4EAQkHBgW4JgAAGgAA/4sDuAN1ABcAGwAfACMAJwBJAE4AUgBWAFoAXQBhAGQAZwBqAG8AdAB4AHwAgQCEAIcAiwCPAJMAlgAAAQUOARURFBYXBRYyNyU+ATURNCYnJSYiFwUHJScVBScHFxEHBSU3BTUlNycHERc3JyUVBxc3FRc1FzcnNQUPATcRJzUHNxcFNScXNSUXBSUnETcFJxU3Bxc1JzcVNxcHFTcnNQc3NQcXFT8CJwcVBzc1JwclNwcXJScHFwcnBxc/ARU3FzUPAhc1EwcVFwcXNwc/AQcB6v50CgwMCgGMCxYLAYwKDAwK/nQLFhoBe1j+3R7+3VgOWFgBif6FWAEj/v1CGzZECj8BA0kkJR4/Lm0BAyUEOE9JO07+/R4eASNY/oQBilhY/flFRTaWUREyfVGWtDIyMlAyH0VXP29RJXEBkgZ3SP7kXB8PDgtENhnhMg4y4QzBw0VFpSBaesMXFwNv5QYTDP42CxQG5QYG5QYUCwHKDBMG5QYm2zOpZWWpMxkz/rAz9NszqSWWJhIfASwnHCSWWyoPFiUMMSUJP1uWFSQg/tQtOnUiLZYoE8VlqTPb9DMBUDOsKK4oQVdQL2U6HUgvUFcdOh1POh1POh1+KDIMHy8vKw9BKicWKT4mWwkZBsIkDrw6HVM6HYIHgSABQSheKMYWj0a7pQ0AAAADAAD/oQPfA18ACABAAFMAABMeATI2NCYiBiUmLwUuASMhBg8DBg8BBhURFBcWHwEWHwEWHwEeATMhMzY/ATY/ATY/BxE0AyYiBwEnJiIPARE+ATchHgEXEaoCOVc6Olc5Ay8BAQcGAwwJEjAb/VIsIgoQBhAGAQIDCRoJBgcRCAcHCRMKAqoMDAwJCAgIDwsJCAsDBQUB3hU3Fv7+ehU3FloBKBwCqhwoAQJvLDk5Vzo6WwQDEwsGDwoRFAEYCBAJFhsICwv9Vg8OJxsJBQUKAwMCAwIBAwMDAwUICwoKEQgLFRUCrhD+yRQU/v55FRVZAgccKAEBKBz+QQAbAAD/pgPaA1oAAwAHAAsADwATABcAGwAfACMAJwArAC8AMwA3ADsAPwBDAEcASwBPAFMAVwBbAF8AYwBnAGsAABchFSERMxUjNzMVIxEzFSMTMxUjETMVIxMzFSM3MxUjETMVIxMzFSMRMxUjEzMVIwUzFSMlMxUjJTMVIwUzFSMlMxUjJTMVIwUzFSMlMxUjJTMVIwUzFSMlMxUjJTMVIxUzFSMlMxUjJTMVIycDsvxOSUmRSUlJSZJJSUlJkkhIkUlJSUmSSUlJSZFJSfyXSUkBtUhIAbRJSfyXSUkBtUhIAbRJSfyXSUkBtUhIAbRJSfyXSUkBtUhIAbRJSUlJ/JdJSQG1SEgQSQOySUlJ/pRIAf1J/pRIAf1JSUn+lEgB/Un+lEgB/UlISUlJSUlJSUlJSUlJSEhISEhJSUlJSUlJSUlJSUkAHAAA/6YD2gNaAAMABwALAA8AEwAXABsAHwAjACcAKwAvADMANwA7AD8AQwBHAEsATwBTAFcAWwBfAGMAZwBrAG8AABMhFSETMxUjETMVIxMzFSMRMxUjEzMVIxEzFSMTMxUjETMVIxMzFSMRMxUjATMVIyUzFSMlMxUjBTMVIyUzFSMlMxUjBTMVIyUzFSMlMxUjBTMVIyUzFSMlMxUjBTMVIyUzFSMlMxUjBTMVIyUzFSMnA7L8TpFJSUlJkklJSUmSSEhISJFJSUlJkklJSUn9KElJAbVISAG0SUn8l0lJAbVISAG0SUn8l0lJAbVISAG0SUn8l0lJAbVISAG0SUn8l0lJAbVISAG0SUn8l0lJA2lJSQNZSf6USP6USQH9SP6USQH9SP6USQH9SP6USQH9SP6USQMhSUlJSUlJSUlJSUlJSEhISEhJSUlJSUlJSUlJSUlISUlJAAAABQAA/6YD2gNaAAQACAAMABAAFAAAASERIREFIREhGQEhESkBESElESERAiT+AwOy/JcBbP6UAWwBtP6UAWz+lAFsA1n8TgOySf6U/kwBbP6UAWxIAWz+lAAAAAAbAAD/pgPaA1oAAwAHAAsADwATABcAGwAfACMAJwArAC8AMwA3ADsAPwBDAEcASwBPAFMAVwBbAF8AYwBnAGsAABMzESMBMxUjFTMVIzUzFSMRMxUjETMVIxUzFSMRMxUjATMVIxEzFSMRMxUjEzMVIxEzFSMRMxUjATMVIwEzFSMRMxUjFTMVIxEzFSMRMxUjFTMVIyczFSMDMxUjEzMVIzczFSMlMxUjEzMVIydJSQG1SEhISEhISEhISEhISEj+3ElJSUlJSZJJSUlJSUkBI0lJASNJSUlJSUlJSUlJSUmRSUmSSUmSSUmRSUn+3UlJkklJA1n8TgH9SNtJ20kBbEkBbElISf1xSQH9SAH9SfzgSQOySf6USP6USQOySf1xSQFsSElJAWxJAWxJSEnaSf6USP6USUlJSUkB/UgAABsAAP+mA9oDWgADAAcACwAPABMAFwAbAB8AIwAnACsALwAzADcAOwA/AEMARwBLAE8AUwBXAFsAXwBjAGcAawAAATMRIwEzFSM3MxUjETMVIxEzFSMTMxUjETMVIxEzFSMTMxUjETMVIxMzFSMRMxUjETMVIxMzFSMRMxUjETMVIwEzFSMlMxUjBTMVIyUzFSMFMxUjJTMVIwUzFSMlMxUjBTMVIyUzFSMFMxUjA5BJSfyXSUmRSUlJSUlJkklJSUlJSZJISEhIkUlJSUlJSZJJSUlJSUn9KElJAbVISP5LSUkBtUhI/ktJSQG1SEj+S0lJAbVISP5LSUkBtUhI/ktJSQNZ/E4DsklJSf6USP6USQOySf6USP6USQOySfzgSQOySf6USP6USQOySf6USP6USQMhSUlJSUlJSUlISEhJSUlJSUlJSUhJAAAAAgAA/9sDxwMnABgALQAAASM3ASYnIw4BFRQXFhcJAQYdARQWFzM2NwkBJicxDgEHFBcWFwkBBgcVHgEyNwJdAQL+axEZARojBAgOATX+whEjGgEZEQL9/mwRGhojAQUHDgE2/sIRAQEjMxEBfgIBkxEBASIaDQsRCv7L/sMRGQEaIgEBEAGWAZMRAQEiGgwLEQv+y/7DERkBGSMQAAAAAAIAAP/ZA6ADJQAYAC0AAAEzBwEWFzM+ATU0JyYnCQE2PQE0JicjBgcJARYXMT4BNzQnJicJATY3NS4BIgcBowECAZURGQEaIwQIDv7LAT4RIxoBGRH9AwGUERoaIwEFBw7+ygE+EQEBIzMRAYIC/m0RAQEiGg0LEQoBNQE9ERkBGiIBARD+av5tEQEBIhoMCxELATUBPREZARkjEAAAAAAJAAD/zwOxAzIAEQAVABkAJwA2AEQATgBbAGgAAAEjNSEVIw4BBxEzFSE1MxEuASUhFSEBITUhFyM1IRUjET4BNyEeARcFLgErARUzNTMyPgI0JgcOAQcyKwE1MzIeAhQFMzUzNSM1MzUjBy4BKwEVMzI+AjQmBw4CKwE1MzIeAhQDRTb94jYuPQGiAh6iAT39tQGw/lABsP5QAbCjbP3ibAEeFwKKFx4B/f8GFRBFGyoQFQwEBBoDCQgBBigpBQoHBQEjG0dHUWxWCRoSQUESGhEICBUCDBQQGxsQFAwEAnS9vQE+Lv6h2dkBXy4+iIf9kfQbUVEBKRcfAQEfFx0HCp08Cg4RDhIlBQcBMwIGCg9lRhYpGBcKDZ0NFRwhHEMKDwhvCA8VFwAAAAADAAD/kQNoA28AAwAMABAAAAEbASMTIwMzNyEXMwkBIRUhAWFvcN/Uqv51PAEmPZT+//4kAxD88AF8AWX+mQHv/N/AwAMn/IhmAAAAAQAA/6ADnANgAAcAAAkBEQERMxEjAxL9UwKtiYkBO/5lA8D+ZQGb/EAAAAAEAAD/wAPrA0AAHAAgACgAMAAAJTYyFxYVBxQPAQYPASIUBysBLgEvAiY+ATIfAQMRIREBESMRIREjAyERIxEhESMDAngKGgoFAQl9AgQHAgICAgUJBAKJCQUUGgpqpQFA/cBAAQA/AQJAQAEAPwG2CgoEBg0NCn8CAgMBAQEEAwJ+ChoUCmQC7v3AAkD9gP8AAUD+wAEA/wABQP7AAQAABwAA/9sD7wNGACMAKAAvADQAOgA/AEQAAAEuASc3Jy4BIzEiBgcnBw4BBxUhHgEXBxceATMyNxc3PgE3NSMhNx4BAT4BMxYXAwETIT4BEzMHLgEnAQYiJzcTAyEOAQOEBU9ENQ8wcD05aC8zD4CRAQE/BTcsOg8lVS5QSDYPZ3UBjv7zhjxG/h0pXzRoVr7+8fD+HwV+u6NRJCsDAUlAjkCH2rsBdwViAXRRii1cCRwfGxleCUz6lBI4Wh1ZCRYXJV0JPcp4EekoeQEPFhgBLv68AY/+X4Hb/oGNGkwu/v4fH+n+zQFFZKsAAAAEAAAAAAPgArkAHAAgADwAQAAAATY9ATQvASYiBwYfASEiBhQWFyEHBh4BMzEyPwETESMRASY9ATQ/ATYyFxYPASEyFhQGByEXFg4BIzEiJwMRMxEDsAQFhwUOBQgFcf6+BwkJBwFCbgQBCQcGBYcxJfyWBQWHBQ4FCAVxAUIHCQkH/r5uBAEJBwYFuCYBcwUHAQcFiAUECQtxCQ4JAW4FDAkEiAFG/Y8Ccf66BQcBBwWIBQQJC3EJDgkBbgUMCQQBzv2PAnEAAAIAAAAAA+AC9wAiAEYAAAEiBh0BDgEHITc2NCYiDwEGFTEUHwEWMjY0LwEhPgE3NTQmJTEzBwYUFjI/ATY1MTQvASYiBhQfASEOAQcVFBYyNj0BPgE3A7MTGgJmTP6NHA0aJg1pDQ1pDSYZDBwBc3OYAxr+lEccDRknDWkNDWkNJhkMHP6Nc5gDGiYaAmZMAhYaE2lMZgIcDSYaDWkNExMNaQ0aJg0cA5hzaRMaHhwNJxkNaQ0TEw1pDRomDRwDmHNpExoaE2lMZgIAAAgAAAAAAzsC7wAPABMAFAAnACgANABAAEwAAAEOARURFBYzITI2NRE0JiMFIREhMQMOARURFBY7ATUjESEVMzU0JichEzMyNjQmKwEiBhQWFzMyNjQmJyMOARQWFzM+ATQmJyMOARQWAZcWHh4WAW8WHh4W/pEBb/6RnRYeHhY0NAFvNB4W/pHk4QsODgvhCw4OC+ELDg4L4QsODgvhCw4OC+ELDg4CUgEeFv4pFh4eFgHXFh40/ikCqQEeFv4pFh40Adc0NBYeAf6UDxUPDxUPcw4WDgEBDhYOdAEOFg4BAQ4WDgAAAAAAABIA3gABAAAAAAAAABUAAAABAAAAAAABAAcAFQABAAAAAAACAAcAHAABAAAAAAADAAcAIwABAAAAAAAEAAcAKgABAAAAAAAFAAsAMQABAAAAAAAGAAcAPAABAAAAAAAKACsAQwABAAAAAAALABMAbgADAAEECQAAACoAgQADAAEECQABAA4AqwADAAEECQACAA4AuQADAAEECQADAA4AxwADAAEECQAEAA4A1QADAAEECQAFABYA4wADAAEECQAGAA4A+QADAAEECQAKAFYBBwADAAEECQALACYBXQpDcmVhdGVkIGJ5IGljb25mb250CnVyZXBvcnRSZWd1bGFydXJlcG9ydHVyZXBvcnRWZXJzaW9uIDEuMHVyZXBvcnRHZW5lcmF0ZWQgYnkgc3ZnMnR0ZiBmcm9tIEZvbnRlbGxvIHByb2plY3QuaHR0cDovL2ZvbnRlbGxvLmNvbQAKAEMAcgBlAGEAdABlAGQAIABiAHkAIABpAGMAbwBuAGYAbwBuAHQACgB1AHIAZQBwAG8AcgB0AFIAZQBnAHUAbABhAHIAdQByAGUAcABvAHIAdAB1AHIAZQBwAG8AcgB0AFYAZQByAHMAaQBvAG4AIAAxAC4AMAB1AHIAZQBwAG8AcgB0AEcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAAcwB2AGcAMgB0AHQAZgAgAGYAcgBvAG0AIABGAG8AbgB0AGUAbABsAG8AIABwAHIAbwBqAGUAYwB0AC4AaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAAAACAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFEBAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgEPARABEQESARMBFAEVARYBFwEYARkBGgEbARwBHQEeAR8BIAEhASIBIwEkASUBJgEnASgBKQEqASsBLAEtAS4BLwEwATEBMgEzATQBNQE2ATcBOAE5AToBOwE8AT0BPgE/AUABQQFCAUMBRAFFAUYBRwFIAUkBSgFLAUwBTQFOAU8BUAFRAVIAAXgHc2V0dGluZwRwbHVzD3NoYXJlY29ubmVjdGlvbgNiYXIIYmdjb2xvcjIIY3Jvc3N0YWIJc3VicmVwb3J0B2JhcmNvZGUJdW5kZXJsaW5lDmhvcml6b250YWwtYmFyB3NjYXR0ZXIFc3FsZHMGcXJjb2RlB2JnY29sb3IIZm9udHNpemUKZm9udGZhbWlseQRhcmVhBml0YWxpYwRib2xkBW1pbnVzCG1ldGhvZGRzBnByaW50MQhkYXRhYmFzZQZidWJibGUGeC14bHN4BGNvcHkDcGllBHNhdmUEb3BlbgxkZWxldGVjb2x1bW4JZGVsZXRlcm93CWluc2VydHJvdwhwcm9wZXJ0eQhhbGlnbnRvcAthbGlnbmJvdHRvbQthbGlnbm1pZGRsZQVjbGVhbglmb3JlY29sb3INZm9vdGVyLXJlcGVhdANwZGYFcHJpbnQFZmlyc3QJYWxpZ25sZWZ0CmFsaWducmlnaHQFbWVyZ2UEcmVkbwhtaXhjaGFydAZpbXBvcnQNY2xlYW4tY29udGVudAR1bmRvBXRpdGxlCW5vLWJvcmRlcgthbGlnbmNlbnRlcgR3b3JkB3N1bW1hcnkIZG91Z2hudXQHcHJldmlldwtjbGVhbi1zdHlsZQRsaW5lBGxlYWYHMjFwcmludAZoZWlnaHQFcmFkYXIFaW1hZ2UNYm90dG9tLWJvcmRlcgp0b3AtYm9yZGVyC2Z1bGwtYm9yZGVyC2xlZnQtYm9yZGVyDHJpZ2h0LWJvcmRlcgRuZXh0BHByZXYLcGRmLXByaW50ZXIKZm9yZWNvbG9yMQNlbmQNaW5zZXJ0LWNvbHVtbgVwb2xhcgV3aWR0aA1oZWFkZXItcmVwZWF0BXBhc3RlAAAAAAA="},function(e,t,n){var i=n(165);(e.exports=n(15)(!1)).push([e.i,'\r\n@font-face {font-family: "ureport";\r\n src: url('+i(n(555))+"); /* IE9*/\r\n src: url("+i(n(554))+') format(\'truetype\');\r\n}\r\n\r\n.ureport {\r\n font-family:"ureport" !important;\r\n font-size:16px;\r\n font-style:normal;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\n.ureport-setting:before { content: "\\E603"; }\r\n\r\n.ureport-plus:before { content: "\\E608"; }\r\n\r\n.ureport-shareconnection:before { content: "\\E660"; }\r\n\r\n.ureport-bar:before { content: "\\E66B"; }\r\n\r\n.ureport-bgcolor2:before { content: "\\E76C"; }\r\n\r\n.ureport-crosstab:before { content: "\\E60B"; }\r\n\r\n.ureport-subreport:before { content: "\\E64F"; }\r\n\r\n.ureport-barcode:before { content: "\\E6F8"; }\r\n\r\n.ureport-underline:before { content: "\\E8AB"; }\r\n\r\n.ureport-horizontal-bar:before { content: "\\E62D"; }\r\n\r\n.ureport-scatter:before { content: "\\E632"; }\r\n\r\n.ureport-sqlds:before { content: "\\E6B6"; }\r\n\r\n.ureport-qrcode:before { content: "\\E72C"; }\r\n\r\n.ureport-bgcolor:before { content: "\\E62C"; }\r\n\r\n.ureport-fontsize:before { content: "\\E63F"; }\r\n\r\n.ureport-fontfamily:before { content: "\\E618"; }\r\n\r\n.ureport-area:before { content: "\\E9D7"; }\r\n\r\n.ureport-italic:before { content: "\\EB31"; }\r\n\r\n.ureport-bold:before { content: "\\E61F"; }\r\n\r\n.ureport-minus:before { content: "\\E60C"; }\r\n\r\n.ureport-methodds:before { content: "\\E69C"; }\r\n\r\n.ureport-print1:before { content: "\\E62A"; }\r\n\r\n.ureport-database:before { content: "\\E693"; }\r\n\r\n.ureport-bubble:before { content: "\\E6B0"; }\r\n\r\n.ureport-x-xlsx:before { content: "\\E690"; }\r\n\r\n.ureport-copy:before { content: "\\E62F"; }\r\n\r\n.ureport-pie:before { content: "\\E602"; }\r\n\r\n.ureport-save:before { content: "\\E86F"; }\r\n\r\n.ureport-open:before { content: "\\E624"; }\r\n\r\n.ureport-deletecolumn:before { content: "\\E6F3"; }\r\n\r\n.ureport-deleterow:before { content: "\\E6F4"; }\r\n\r\n.ureport-insertrow:before { content: "\\E754"; }\r\n\r\n.ureport-property:before { content: "\\E675"; }\r\n\r\n.ureport-aligntop:before { content: "\\E623"; }\r\n\r\n.ureport-alignbottom:before { content: "\\E625"; }\r\n\r\n.ureport-alignmiddle:before { content: "\\E627"; }\r\n\r\n.ureport-clean:before { content: "\\E628"; }\r\n\r\n.ureport-forecolor:before { content: "\\E670"; }\r\n\r\n.ureport-footer-repeat:before { content: "\\E62B"; }\r\n\r\n.ureport-pdf:before { content: "\\E68F"; }\r\n\r\n.ureport-print:before { content: "\\E633"; }\r\n\r\n.ureport-first:before { content: "\\E629"; }\r\n\r\n.ureport-alignleft:before { content: "\\E634"; }\r\n\r\n.ureport-alignright:before { content: "\\E639"; }\r\n\r\n.ureport-merge:before { content: "\\E63D"; }\r\n\r\n.ureport-redo:before { content: "\\E61C"; }\r\n\r\n.ureport-mixchart:before { content: "\\E669"; }\r\n\r\n.ureport-import:before { content: "\\E609"; }\r\n\r\n.ureport-clean-content:before { content: "\\E604"; }\r\n\r\n.ureport-undo:before { content: "\\E74A"; }\r\n\r\n.ureport-title:before { content: "\\E712"; }\r\n\r\n.ureport-no-border:before { content: "\\E600"; }\r\n\r\n.ureport-aligncenter:before { content: "\\E888"; }\r\n\r\n.ureport-word:before { content: "\\E605"; }\r\n\r\n.ureport-summary:before { content: "\\E749"; }\r\n\r\n.ureport-doughnut:before { content: "\\E88C"; }\r\n\r\n.ureport-preview:before { content: "\\E60F"; }\r\n\r\n.ureport-clean-style:before { content: "\\E64B"; }\r\n\r\n.ureport-line:before { content: "\\E695"; }\r\n\r\n.ureport-leaf:before { content: "\\E6BB"; }\r\n\r\n.ureport-21print:before { content: "\\E644"; }\r\n\r\n.ureport-height:before { content: "\\E610"; }\r\n\r\n.ureport-radar:before { content: "\\E671"; }\r\n\r\n.ureport-image:before { content: "\\E626"; }\r\n\r\n.ureport-bottom-border:before { content: "\\E61E"; }\r\n\r\n.ureport-top-border:before { content: "\\E61D"; }\r\n\r\n.ureport-full-border:before { content: "\\E620"; }\r\n\r\n.ureport-left-border:before { content: "\\E621"; }\r\n\r\n.ureport-right-border:before { content: "\\E622"; }\r\n\r\n.ureport-next:before { content: "\\E60D"; }\r\n\r\n.ureport-prev:before { content: "\\E606"; }\r\n\r\n.ureport-pdf-printer:before { content: "\\E607"; }\r\n\r\n.ureport-forecolor1:before { content: "\\E601"; }\r\n\r\n.ureport-end:before { content: "\\E60A"; }\r\n\r\n.ureport-insert-column:before { content: "\\E619"; }\r\n\r\n.ureport-polar:before { content: "\\E60E"; }\r\n\r\n.ureport-width:before { content: "\\E611"; }\r\n\r\n.ureport-header-repeat:before { content: "\\E696"; }\r\n\r\n.ureport-paste:before { content: "\\E612"; }\r\n\r\n',""])},function(e,t,n){var i=n(556);"string"==typeof i&&(i=[[e.i,i,""]]),n(14)(i,{}),i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(15)(!1)).push([e.i,'/* The lint marker gutter */\n.CodeMirror-lint-markers {\n width: 16px;\n}\n\n.CodeMirror-lint-tooltip {\n background-color: #ffd;\n border: 1px solid black;\n border-radius: 4px 4px 4px 4px;\n color: black;\n font-family: monospace;\n font-size: 10pt;\n overflow: hidden;\n padding: 2px 5px;\n position: fixed;\n white-space: pre;\n white-space: pre-wrap;\n z-index: 100;\n max-width: 600px;\n opacity: 0;\n transition: opacity .4s;\n -moz-transition: opacity .4s;\n -webkit-transition: opacity .4s;\n -o-transition: opacity .4s;\n -ms-transition: opacity .4s;\n}\n\n.CodeMirror-lint-mark-error, .CodeMirror-lint-mark-warning {\n background-position: left bottom;\n background-repeat: repeat-x;\n}\n\n.CodeMirror-lint-mark-error {\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==")\n ;\n}\n\n.CodeMirror-lint-mark-warning {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=");\n}\n\n.CodeMirror-lint-marker-error, .CodeMirror-lint-marker-warning {\n background-position: center center;\n background-repeat: no-repeat;\n cursor: pointer;\n display: inline-block;\n height: 16px;\n width: 16px;\n vertical-align: middle;\n position: relative;\n}\n\n.CodeMirror-lint-message-error, .CodeMirror-lint-message-warning {\n padding-left: 18px;\n background-position: top left;\n background-repeat: no-repeat;\n}\n\n.CodeMirror-lint-marker-error, .CodeMirror-lint-message-error {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=");\n}\n\n.CodeMirror-lint-marker-warning, .CodeMirror-lint-message-warning {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=");\n}\n\n.CodeMirror-lint-marker-multiple {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC");\n background-repeat: no-repeat;\n background-position: right bottom;\n width: 100%; height: 100%;\n}\n',""])},function(e,t,n){var i=n(558);"string"==typeof i&&(i=[[e.i,i,""]]),n(14)(i,{}),i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(15)(!1)).push([e.i,".CodeMirror-hints {\n position: absolute;\n z-index: 10;\n overflow: hidden;\n list-style: none;\n\n margin: 0;\n padding: 2px;\n\n -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n border-radius: 3px;\n border: 1px solid silver;\n\n background: white;\n font-size: 90%;\n font-family: monospace;\n\n max-height: 20em;\n overflow-y: auto;\n}\n\n.CodeMirror-hint {\n margin: 0;\n padding: 0 4px;\n border-radius: 2px;\n white-space: pre;\n color: black;\n cursor: pointer;\n}\n\nli.CodeMirror-hint-active {\n background: #08f;\n color: white;\n}\n",""])},function(e,t,n){var i=n(560);"string"==typeof i&&(i=[[e.i,i,""]]),n(14)(i,{}),i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(15)(!1)).push([e.i,"/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor-mark {\n background-color: rgba(20, 255, 20, 0.5);\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n}\n.cm-animate-fat-cursor {\n width: auto;\n border: 0;\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n background-color: #7e7;\n}\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: -20px;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -30px; margin-right: -30px;\n padding-bottom: 30px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 30px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -30px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n",""])},function(e,t,n){var i=n(562);"string"==typeof i&&(i=[[e.i,i,""]]),n(14)(i,{}),i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(15)(!1)).push([e.i,'@charset "UTF-8";\n/*!\n * (The MIT License)\n * \n * Copyright (c) 2012-2014 Marcin Warpechowski\n * Copyright (c) 2015 Handsoncode sp. z o.o. <hello@handsoncode.net>\n * \n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * \'Software\'), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n * \n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED \'AS IS\', WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * \n * Version: 0.32.0\n * Date: Tue May 30 2017 12:18:39 GMT+0200 (CEST)\n */.handsontable .table td,.handsontable .table th{border-top:none}.handsontable tr{background:#fff}.handsontable td{background-color:inherit}.table caption+thead tr:first-child td,.table caption+thead tr:first-child th,.table colgroup+thead tr:first-child td,.table colgroup+thead tr:first-child th,.table thead:first-child tr:first-child td,.table thead:first-child tr:first-child th{border-top:1px solid #ccc}.handsontable .table-bordered{border:0;border-collapse:separate}.handsontable .table-bordered td,.handsontable .table-bordered th{border-left:none}.handsontable .table-bordered td:first-child,.handsontable .table-bordered th:first-child{border-left:1px solid #ccc}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{line-height:21px;padding:0 4px}.col-lg-1.handsontable,.col-lg-2.handsontable,.col-lg-3.handsontable,.col-lg-4.handsontable,.col-lg-5.handsontable,.col-lg-6.handsontable,.col-lg-7.handsontable,.col-lg-8.handsontable,.col-lg-9.handsontable,.col-lg-10.handsontable,.col-lg-11.handsontable,.col-lg-12.handsontable,.col-md-1.handsontable,.col-md-2.handsontable,.col-md-3.handsontable,.col-md-4.handsontable,.col-md-5.handsontable,.col-md-6.handsontable,.col-md-7.handsontable,.col-md-8.handsontable,.col-md-9.handsontable .col-sm-1.handsontable,.col-md-10.handsontable,.col-md-11.handsontable,.col-md-12.handsontable,.col-sm-2.handsontable,.col-sm-3.handsontable,.col-sm-4.handsontable,.col-sm-5.handsontable,.col-sm-6.handsontable,.col-sm-7.handsontable,.col-sm-8.handsontable,.col-sm-9.handsontable .col-xs-1.handsontable,.col-sm-10.handsontable,.col-sm-11.handsontable,.col-sm-12.handsontable,.col-xs-2.handsontable,.col-xs-3.handsontable,.col-xs-4.handsontable,.col-xs-5.handsontable,.col-xs-6.handsontable,.col-xs-7.handsontable,.col-xs-8.handsontable,.col-xs-9.handsontable,.col-xs-10.handsontable,.col-xs-11.handsontable,.col-xs-12.handsontable{padding-left:0;padding-right:0}.table-striped>tbody>tr:nth-of-type(2n){background-color:#fff}.handsontable{position:relative}.handsontable .hide{display:none}.handsontable .relative{position:relative}.handsontable.htAutoSize{visibility:hidden;left:-99000px;position:absolute;top:-99000px}.handsontable .wtHider{width:0}.handsontable .wtSpreader{position:relative;width:0;height:auto}.handsontable div,.handsontable input,.handsontable table,.handsontable tbody,.handsontable td,.handsontable textarea,.handsontable th,.handsontable thead{box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.handsontable input,.handsontable textarea{min-height:0}.handsontable table.htCore{border-collapse:separate;border-spacing:0;margin:0;border-width:0;table-layout:fixed;width:0;outline-width:0;max-width:none;max-height:none}.handsontable col,.handsontable col.rowHeader{width:50px}.handsontable td,.handsontable th{border-top-width:0;border-left-width:0;border-right:1px solid #ccc;border-bottom:1px solid #ccc;height:22px;empty-cells:show;line-height:21px;padding:0 4px;background-color:#fff;vertical-align:top;overflow:hidden;outline-width:0;white-space:pre-line;background-clip:padding-box}.handsontable td.htInvalid{background-color:#ff4c42!important}.handsontable td.htNoWrap{white-space:nowrap}.handsontable th:last-child{border-right:1px solid #ccc;border-bottom:1px solid #ccc}.handsontable th.htNoFrame,.handsontable th:first-child.htNoFrame,.handsontable tr:first-child th.htNoFrame{border-left-width:0;background-color:#fff;border-color:#fff}.handsontable .htNoFrame+td,.handsontable .htNoFrame+th,.handsontable.htRowHeaders thead tr th:nth-child(2),.handsontable td:first-of-type,.handsontable th:first-child,.handsontable th:nth-child(2){border-left:1px solid #ccc}.handsontable tr:first-child td,.handsontable tr:first-child th{border-top:1px solid #ccc}.ht_master:not(.innerBorderLeft):not(.emptyColumns)~.handsontable:not(.ht_clone_top) thead tr th:first-child,.ht_master:not(.innerBorderLeft):not(.emptyColumns)~.handsontable tbody tr th{border-right-width:0}.ht_master:not(.innerBorderTop) thead tr.lastChild th,.ht_master:not(.innerBorderTop) thead tr:last-child th,.ht_master:not(.innerBorderTop)~.handsontable thead tr.lastChild th,.ht_master:not(.innerBorderTop)~.handsontable thead tr:last-child th{border-bottom-width:0}.handsontable th{background-color:#f3f3f3;color:#222;text-align:center;font-weight:400;white-space:nowrap}.handsontable thead th{padding:0}.handsontable th.active{background-color:#ccc}.handsontable thead th .relative{padding:2px 4px}.handsontable tbody th.ht__highlight,.handsontable thead th.ht__highlight{background-color:#dcdcdc}.handsontable.ht__selection--columns thead th.ht__highlight,.handsontable.ht__selection--rows tbody th.ht__highlight{background-color:#8eb0e7;color:#000}.handsontable .manualColumnResizer{position:fixed;top:0;cursor:col-resize;z-index:6;width:5px;height:25px}.handsontable .manualRowResizer{position:fixed;left:0;cursor:row-resize;z-index:6;height:5px;width:50px}.handsontable .manualColumnResizer.active,.handsontable .manualColumnResizer:hover,.handsontable .manualRowResizer.active,.handsontable .manualRowResizer:hover{background-color:#aab}.handsontable .manualColumnResizerGuide{position:fixed;right:0;top:0;background-color:#aab;display:none;width:0;border-right:1px dashed #777;margin-left:5px}.handsontable .manualRowResizerGuide{position:fixed;left:0;bottom:0;background-color:#aab;display:none;height:0;border-bottom:1px dashed #777;margin-top:5px}.handsontable .manualColumnResizerGuide.active,.handsontable .manualRowResizerGuide.active{display:block;z-index:7}.handsontable .columnSorting{position:relative}.handsontable .columnSorting:hover{text-decoration:underline;cursor:pointer}.handsontable .columnSorting.ascending:after{content:"\\25B2";color:#5f5f5f;position:absolute;right:-15px}.handsontable .columnSorting.descending:after{content:"\\25BC";color:#5f5f5f;position:absolute;right:-15px}.handsontable .wtBorder{position:absolute;font-size:0}.handsontable .wtBorder.hidden{display:none!important}.handsontable td.area{background:linear-gradient(180deg,rgba(181,209,255,.34) 0,rgba(181,209,255,.34));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#57b5d1ff",endColorstr="#57b5d1ff",GradientType=0);background-color:#fff}.handsontable .wtBorder.corner{font-size:0;cursor:crosshair}.handsontable .htBorder.htFillBorder{background:red;width:1px;height:1px}.handsontableInput{border:none;outline-width:0;margin:0;padding:1px 5px 0;font-family:inherit;line-height:21px;font-size:inherit;box-shadow:inset 0 0 0 2px #5292f7;resize:none;display:inline-block;color:#000;border-radius:0;background-color:#fff}.handsontableInputHolder{position:absolute;top:0;left:0;z-index:1}.htSelectEditor{-webkit-appearance:menulist-button!important;position:absolute;width:auto}.handsontable .htDimmed{color:#777}.handsontable .htSubmenu{position:relative}.handsontable .htSubmenu :after{content:"\\25B6";color:#777;position:absolute;right:5px}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htPlaceholder{color:#999}.handsontable .htAutocompleteArrow{float:right;font-size:10px;color:#eee;cursor:default;width:16px;text-align:center}.handsontable td .htAutocompleteArrow:hover{color:#777}.handsontable td.area .htAutocompleteArrow{color:#d3d3d3}.handsontable .htCheckboxRendererInput{display:inline-block;vertical-align:middle}.handsontable .htCheckboxRendererInput.noValue{opacity:.5}.handsontable .htCheckboxRendererLabel{cursor:pointer;display:inline-block;width:100%}@-webkit-keyframes a{0%{opacity:1}to{opacity:0}}@keyframes a{0%{opacity:1}to{opacity:0}}@-webkit-keyframes b{0%{opacity:0}to{opacity:1}}@keyframes b{0%{opacity:0}to{opacity:1}}.handsontable .handsontable.ht_clone_top .wtHider{padding:0 0 5px}.handsontable .autocompleteEditor.handsontable{padding-right:17px}.handsontable .autocompleteEditor.handsontable.htMacScroll{padding-right:15px}.handsontable.listbox{margin:0}.handsontable.listbox .ht_master table{border:1px solid #ccc;border-collapse:separate;background:#fff}.handsontable.listbox td,.handsontable.listbox th,.handsontable.listbox tr:first-child td,.handsontable.listbox tr:first-child th,.handsontable.listbox tr:last-child th{border-color:transparent}.handsontable.listbox td,.handsontable.listbox th{white-space:nowrap;text-overflow:ellipsis}.handsontable.listbox td.htDimmed{cursor:default;color:inherit;font-style:inherit}.handsontable.listbox .wtBorder{visibility:hidden}.handsontable.listbox tr:hover td,.handsontable.listbox tr td.current{background:#eee}.ht_clone_top{z-index:2}.ht_clone_left{z-index:3}.ht_clone_bottom_left_corner,.ht_clone_debug,.ht_clone_top_left_corner{z-index:4}.handsontable td.htSearchResult{background:#fcedd9;color:#583707}.htBordered{border-width:1px}.htBordered.htTopBorderSolid{border-top-style:solid;border-top-color:#000}.htBordered.htRightBorderSolid{border-right-style:solid;border-right-color:#000}.htBordered.htBottomBorderSolid{border-bottom-style:solid;border-bottom-color:#000}.htBordered.htLeftBorderSolid{border-left-style:solid;border-left-color:#000}.handsontable tbody tr th:nth-last-child(2){border-right:1px solid #ccc}.handsontable thead tr:nth-last-child(2) th.htGroupIndicatorContainer{border-bottom:1px solid #ccc;padding-bottom:5px}.ht_clone_top_left_corner thead tr th:nth-last-child(2){border-right:1px solid #ccc}.htCollapseButton{width:10px;height:10px;line-height:10px;text-align:center;border-radius:5px;border:1px solid #f3f3f3;box-shadow:1px 1px 3px rgba(0,0,0,.4);cursor:pointer;margin-bottom:3px;position:relative}.htCollapseButton:after{content:"";height:300%;width:1px;display:block;background:#ccc;margin-left:4px;position:absolute;bottom:10px}thead .htCollapseButton{right:5px;position:absolute;top:5px;background:#fff}thead .htCollapseButton:after{height:1px;width:700%;right:10px;top:4px}.handsontable tr th .htExpandButton{position:absolute;width:10px;height:10px;line-height:10px;text-align:center;border-radius:5px;border:1px solid #f3f3f3;box-shadow:1px 1px 3px rgba(0,0,0,.4);cursor:pointer;top:0;display:none}.handsontable thead tr th .htExpandButton{top:5px}.handsontable tr th .htExpandButton.clickable{display:block}.collapsibleIndicator{position:absolute;top:50%;transform:translateY(-50%);right:5px;border:1px solid #a6a6a6;line-height:10px;color:#222;border-radius:10px;font-size:10px;width:10px;height:10px;cursor:pointer;box-shadow:0 0 0 6px #eee;background:#eee}.handsontable col.hidden{width:0!important}.handsontable table tr th.lightRightBorder{border-right:1px solid #e6e6e6}.handsontable tr.hidden,.handsontable tr.hidden td,.handsontable tr.hidden th{display:none}.ht_clone_bottom,.ht_clone_left,.ht_clone_top,.ht_master{overflow:hidden}.ht_master .wtHolder{overflow:auto}.ht_clone_left .wtHolder{overflow-x:hidden;overflow-y:auto}.ht_clone_bottom .wtHolder,.ht_clone_top .wtHolder{overflow-x:auto;overflow-y:hidden}.wtDebugHidden{display:none}.wtDebugVisible{display:block;-webkit-animation-duration:.5s;-webkit-animation-name:c;animation-duration:.5s;animation-name:c}@keyframes c{0%{display:none;opacity:0}1%{display:block;opacity:0}to{display:block;opacity:1}}@-webkit-keyframes c{0%{display:none;opacity:0}1%{display:block;opacity:0}to{display:block;opacity:1}}.handsontable.mobile,.handsontable.mobile .wtHolder{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-overflow-scrolling:touch}.htMobileEditorContainer{display:none;position:absolute;top:0;width:70%;height:54pt;background:#f8f8f8;border-radius:20px;border:1px solid #ebebeb;z-index:8;box-sizing:border-box;-webkit-box-sizing:border-box;-webkit-text-size-adjust:none}.topLeftSelectionHandle-HitArea:not(.ht_master .topLeftSelectionHandle-HitArea),.topLeftSelectionHandle:not(.ht_master .topLeftSelectionHandle){z-index:12}.bottomRightSelectionHandle,.bottomRightSelectionHandle-HitArea,.topLeftSelectionHandle,.topLeftSelectionHandle-HitArea{left:-10000px;top:-10000px}.htMobileEditorContainer.active{display:block}.htMobileEditorContainer .inputs{position:absolute;right:210pt;bottom:10pt;top:10pt;left:14px;height:34pt}.htMobileEditorContainer .inputs textarea{font-size:13pt;border:1px solid #a1a1a1;-webkit-appearance:none;box-shadow:none;position:absolute;left:14px;right:14px;top:0;bottom:0;padding:7pt}.htMobileEditorContainer .cellPointer{position:absolute;top:-13pt;height:0;width:0;left:30px;border-left:13pt solid transparent;border-right:13pt solid transparent;border-bottom:13pt solid #ebebeb}.htMobileEditorContainer .cellPointer.hidden{display:none}.htMobileEditorContainer .cellPointer:before{content:"";display:block;position:absolute;top:2px;height:0;width:0;left:-13pt;border-left:13pt solid transparent;border-right:13pt solid transparent;border-bottom:13pt solid #f8f8f8}.htMobileEditorContainer .moveHandle{position:absolute;top:10pt;left:5px;width:30px;bottom:0;cursor:move;z-index:12}.htMobileEditorContainer .moveHandle:after{content:"..\\A..\\A..\\A..";white-space:pre;line-height:10px;font-size:20pt;display:inline-block;margin-top:-8px;color:#ebebeb}.htMobileEditorContainer .positionControls{width:205pt;position:absolute;right:5pt;top:0;bottom:0}.htMobileEditorContainer .positionControls>div{width:50pt;height:100%;float:left}.htMobileEditorContainer .positionControls>div:after{content:" ";display:block;width:15pt;height:15pt;text-align:center;line-height:50pt}.htMobileEditorContainer .downButton:after,.htMobileEditorContainer .leftButton:after,.htMobileEditorContainer .rightButton:after,.htMobileEditorContainer .upButton:after{transform-origin:5pt 5pt;-webkit-transform-origin:5pt 5pt;margin:21pt 0 0 21pt}.htMobileEditorContainer .leftButton:after{border-top:2px solid #288ffe;border-left:2px solid #288ffe;-webkit-transform:rotate(-45deg)}.htMobileEditorContainer .leftButton:active:after{border-color:#cfcfcf}.htMobileEditorContainer .rightButton:after{border-top:2px solid #288ffe;border-left:2px solid #288ffe;-webkit-transform:rotate(135deg)}.htMobileEditorContainer .rightButton:active:after{border-color:#cfcfcf}.htMobileEditorContainer .upButton:after{border-top:2px solid #288ffe;border-left:2px solid #288ffe;-webkit-transform:rotate(45deg)}.htMobileEditorContainer .upButton:active:after{border-color:#cfcfcf}.htMobileEditorContainer .downButton:after{border-top:2px solid #288ffe;border-left:2px solid #288ffe;-webkit-transform:rotate(225deg)}.htMobileEditorContainer .downButton:active:after{border-color:#cfcfcf}.handsontable.hide-tween{-webkit-animation:a .3s;animation:a .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.handsontable.show-tween{-webkit-animation:b .3s;animation:b .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}\n\n/*!\n * Pikaday\n * Copyright © 2014 David Bushell | BSD & MIT license | http://dbushell.com/\n */.pika-single{z-index:12;display:block;position:relative;color:#333;background:#fff;border:1px solid #ccc;border-bottom-color:#bbb;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.pika-single:after,.pika-single:before{content:" ";display:table}.pika-single:after{clear:both}.pika-single{*zoom:1}.pika-single.is-hidden{display:none}.pika-single.is-bound{position:absolute;box-shadow:0 5px 15px -5px rgba(0,0,0,.5)}.pika-lendar{float:left;width:240px;margin:8px}.pika-title{position:relative;text-align:center}.pika-label{display:inline-block;*display:inline;position:relative;z-index:12;overflow:hidden;margin:0;padding:5px 3px;font-size:14px;line-height:20px;font-weight:700;background-color:#fff}.pika-title select{cursor:pointer;position:absolute;z-index:11;margin:0;left:0;top:5px;filter:alpha(opacity=0);opacity:0}.pika-next,.pika-prev{display:block;cursor:pointer;position:relative;outline:none;border:0;padding:0;width:20px;height:30px;text-indent:20px;white-space:nowrap;overflow:hidden;background-color:transparent;background-position:50%;background-repeat:no-repeat;background-size:75% 75%;opacity:.5;*position:absolute;*top:0}.pika-next:hover,.pika-prev:hover{opacity:1}.is-rtl .pika-next,.pika-prev{float:left;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==");*left:0}.is-rtl .pika-prev,.pika-next{float:right;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=");*right:0}.pika-next.is-disabled,.pika-prev.is-disabled{cursor:default;opacity:.2}.pika-select{display:inline-block;*display:inline}.pika-table{width:100%;border-collapse:collapse;border-spacing:0;border:0}.pika-table td,.pika-table th{width:14.285714285714286%;padding:0}.pika-table th{color:#999;font-size:12px;line-height:25px;font-weight:700;text-align:center}.pika-button{cursor:pointer;display:block;box-sizing:border-box;-moz-box-sizing:border-box;outline:none;border:0;margin:0;width:100%;padding:5px;color:#666;font-size:12px;line-height:15px;text-align:right;background:#f5f5f5}.pika-week{font-size:11px;color:#999}.is-today .pika-button{color:#3af;font-weight:700}.is-selected .pika-button{color:#fff;font-weight:700;background:#3af;box-shadow:inset 0 1px 3px #178fe5;border-radius:3px}.is-inrange .pika-button{background:#d5e9f7}.is-startrange .pika-button{color:#fff;background:#6cb31d;box-shadow:none;border-radius:3px}.is-endrange .pika-button{color:#fff;background:#3af;box-shadow:none;border-radius:3px}.is-disabled .pika-button{pointer-events:none;cursor:default;color:#999;opacity:.3}.pika-button:hover{color:#fff;background:#ff8000;box-shadow:none;border-radius:3px}.pika-table abbr{border-bottom:none;cursor:help}.htCommentCell{position:relative}.htCommentCell:after{content:"";position:absolute;top:0;right:0;border-left:6px solid transparent;border-top:6px solid #000}.htComments{display:none;z-index:9;position:absolute}.htCommentTextArea{box-shadow:0 1px 3px rgba(0,0,0,.117647),0 1px 2px rgba(0,0,0,.239216);box-sizing:border-box;border:none;border-left:3px solid #ccc;background-color:#fff;width:215px;height:90px;font-size:12px;padding:5px;outline:0!important;-webkit-appearance:none}.htCommentTextArea:focus{box-shadow:0 1px 3px rgba(0,0,0,.117647),0 1px 2px rgba(0,0,0,.239216),inset 0 0 0 1px #5292f7;border-left:3px solid #5292f7}\n/*!\n * Handsontable ContextMenu\n */.htContextMenu{display:none;position:absolute;z-index:10}.htContextMenu .ht_clone_corner,.htContextMenu .ht_clone_debug,.htContextMenu .ht_clone_left,.htContextMenu .ht_clone_top{display:none}.htContextMenu table.htCore{border:1px solid #ccc;border-bottom-width:2px;border-right-width:2px}.htContextMenu .wtBorder{visibility:hidden}.htContextMenu table tbody tr td{background:#fff;border-width:0;padding:4px 6px 0;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.htContextMenu table tbody tr td:first-child{border:0}.htContextMenu table tbody tr td.htDimmed{font-style:normal;color:#323232}.htContextMenu table tbody tr td.current,.htContextMenu table tbody tr td.zeroclipboard-is-hover{background:#f3f3f3}.htContextMenu table tbody tr td.htSeparator{border-top:1px solid #bbb;height:0;padding:0;cursor:default}.htContextMenu table tbody tr td.htDisabled{color:#999;cursor:default}.htContextMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htContextMenu table tbody tr.htHidden{display:none}.htContextMenu table tbody tr td .htItemWrapper{margin-left:10px;margin-right:6px}.htContextMenu table tbody tr td div span.selected{margin-top:-2px;position:absolute;left:4px}.htContextMenu .ht_master .wtHolder{overflow:hidden}.htRowHeaders .ht_master.innerBorderLeft~.ht_clone_left td:first-of-type,.htRowHeaders .ht_master.innerBorderLeft~.ht_clone_top_left_corner th:nth-child(2){border-left:0 none}.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__highlight{cursor:move;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualColumnMove.on-moving--columns,.handsontable.ht__manualColumnMove.on-moving--columns thead th.ht__highlight{cursor:move;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualColumnMove.on-moving--columns .manualColumnResizer{display:none}.handsontable .ht__manualColumnMove--backlight,.handsontable .ht__manualColumnMove--guideline{position:absolute;height:100%;display:none}.handsontable .ht__manualColumnMove--guideline{background:#757575;width:2px;top:0;margin-left:-1px;z-index:5}.handsontable .ht__manualColumnMove--backlight{background:#343434;background:rgba(52,52,52,.25);display:none;z-index:5;pointer-events:none}.handsontable.on-moving--columns .ht__manualColumnMove--backlight,.handsontable.on-moving--columns.show-ui .ht__manualColumnMove--guideline{display:block}.handsontable .wtHider{position:relative}.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualRowMove.on-moving--rows,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--backlight,.handsontable .ht__manualRowMove--guideline{position:absolute;width:100%;display:none}.handsontable .ht__manualRowMove--guideline{background:#757575;height:2px;left:0;margin-top:-1px;z-index:5}.handsontable .ht__manualRowMove--backlight{background:#343434;background:rgba(52,52,52,.25);display:none;z-index:5;pointer-events:none}.handsontable.on-moving--rows .ht__manualRowMove--backlight,.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline{display:block}',""])},function(e,t,n){var i=n(564);"string"==typeof i&&(i=[[e.i,i,""]]),n(14)(i,{}),i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(15)(!1)).push([e.i,"/*!\n * Bootstrap Colorpicker v2.5.2\n * https://itsjavi.com/bootstrap-colorpicker/\n *\n * Originally written by (c) 2012 Stefan Petre\n * Licensed under the Apache License v2.0\n * http://www.apache.org/licenses/LICENSE-2.0.txt\n *\n */.colorpicker-saturation{width:100px;height:100px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAQAAADa613fAAAP9klEQVR4XnRWC47rNgwcKjlA0bv2VL1Qi/YELRav7203iS1ppqZoiXCAhuBHVLI74xFtG3/Hz2joIOjRGuR5eMYuRn9YA1fds859KX8ZvczLr9/pImiR3Rqky9/wlajRIdVE/1Rufeu/0No3/ASgBZAJUkwgi0iCaEatekJJoEqiTQncd67/gyOfRCZshTed0Nl8LbLj8D6qxtoq9/7kJz/aH/3Xfu8VwI5+AUH8DxE7gUyiIpZ5LwiGzUqE3CScJsCDQHAsvBnxWpkbC0QMHmBp6latWS0bnvrCN/x1+xPfce+Ij0GAyeAGGz15sOiax2UylPhKrFaMPnVWClwepKh07hdhkVDsK2uoyEIySergjdbY2VBtV8VLr8Mf9mF/4wMb7kR8FOhzFWZZe7HIZD9JRIbee28eJKBweTB6TwjYkAgWaUmtDveGw1Wx3zZ76YlPPfQd/+gTTUFkiGiJ+NQAszU1EPT/QJEgufolAMPkNU4CVOyUIBLg4xglEZHGQnTFOFV0VaulYddBhA986ge/7N/yQi/3flFgwfQq2ibLnTDBRl9TmUHyJASPV/eoN0UISIr+ICQKIFV4EpljSjV1uFVUq9hRtet5e9gXvuyHPW0zMhQxWaoBBa9Tg8vsCEhww23Smd0CKjIkmPIoxWrUBDgJqFCyESF43ctQxLUoHN7Q1KyVhqrNNm3cy2vMyQNPVKjc29Rh5SSU+giWdRJHkLnQG71FQEuNyNGBTDdBQQAKCuGiEUS/jcyGbkMPq931OIzb/dUPGuVlG7f+slqkO5NAAlzTMdcq0NkzmsEBmAQkbI+pSHbiqnuWIA6lijhvqwIxMyWxMGZiPU669XJE1tADDTs2HWpwKxuqdnTpOiOR42xlzLtm3pXGel3xd8/oTs8Xy0MV8GM1RlsC2Y3Wy3wut3M+2mEVux0Gt9fhzTWyLvGiiJYaqY5DWRFIwAiQ5r6gB9GpQihJw4I9j5Mkscj3BnzGjBhv8xna5P1Jo428o6IOPY5KFZtVOkEKqUjqQY9Gi+jrIOFwJUDzRtA9xyoIrGGmkNRmxVAnZoK+TkUIeUYni5wEzgOG5iZX5HCr2JyQNqdk++G0rgb1ochSIGutTj4P7F0PuRUAolmh5sCzAHn1BYyaADh6bgFeoBx6vst091CEvcSLWBBpqGq384jZ5llVHSwEShLx+D4d0mU3D5eEAJQ9KEhOZUYnDENV2qKgmIlQhWfdvcoXYaegPp/n1oKIOgYFqxrzQSciqNhv/5FqPpy6b0UcX2vf13DfWySRSEgkEYlEJJGQSyKJSEQSCYlEEpHexIVO3XOevffze2a+PfPv9x1rne1c3b3Mmlmz9mE++zuzngfnw/E+Dlc4LL4NwHdFy7u3KGPVmZ6/4eeMoDyre3i/KHADIHYO04w9zO0mAotuKnrc7XaPjvu66bNe5cDT7RlPepEnfS2X8dF1/utDvD+OwGDBxEgQywLCvIMYWBY+DShwAAORAdv9PswhDAqOUCi5+71AbFcDMR4xBDNfhySKXPXZ1+Vub+Q1Ltf5z7eC0AjVldHI26rIFdKIAyYBJCFVUhVDwttAnM52B3Ect1TFQXzJ0z33lOuib/QO8g+CuO0gKBRU80A8hkeJ0b1KRQWmFQVSh8mf3lpUpNaRulzN5NArrmKKGMijXgzk7w5ijdFVgT8f1IdFNjVWjDWicUYWEEMmSFDtILdzHW5XueHp7p+yuS54ep5/c5BE2Gw/gWPNYU4/PZaak2VGEsFjSbOf8irea6KQgojGCk0KxZY31tWWgzwayF8N5KYyo3VADVicWWrhwzr3ZqIOa5xW5zbqMPPMiyDURHDIHQTeWq7KFXcQPOqzPOL5Ov/iIDEDy7DHEwx0PTgjO8SS0fOEHcZNMt+XKEFMj8Q4QUSvPu6HPuvd4N9/x12RPwcIVRCAakSOUzHgsUSMFWYzDQ+PiOJqAOuYc9jh5TecnA+xHfFyOYhebeTH89P80wrCJzUjlsx7euIV0g4zQFUSiBPioIWBACFC7GgDj8P91ZSJOQmQP74MAnQo8H5RIe8kZ0kBcQCMAlEpRDiKROBxbR0ksdhWFq0gR9q9uQzkDzuIFQSPqAgRCAsCaVNF2ZAAhxvtzcqcnDk6tpXxSsayqXLIgSOb6zqeH+fvO0i9XEu5EVV+OZehRZJ6BGTeaRhCkTzVIZeAzaWGAFfErIPogQI5CuR3HQQx7DzBB16R3s7e0MBUPedjWutgG/JUTPqMeAQNEiytJRnJearWUgdwFNxN7rtBoECuj/O3BMHaTIxQ0a4GctireElTJHJvLTaalih5kvBCGMvkdESUMAdCFaI4yG8SpDfRWAptqkAJUwCG6B7lOREFSZBqKs57MEHqVJEBwHa2lp0OiKtiQ18gx9P89QrSXyc0vObBM4vPmBADqJZLAo/yzK7qPSZstCy+fDSZlhrm+Zkyjsf5q2otdC14zkLjHLf0me9wjNqQo0B1a6wBJRaIEgC2Qw9oby/cRHA+xHCQy/xlB1HVSV3Y/5yVhsc7dBi2UoIWCMcbELZWgxNCGUZ5y4ceBaLlE8dAfrEosrYT+z8ya3sxXndFBxuQivNGEHFCbLGBlBLKGYHZoeoQpcjtMn/uICPefcxecpuDOEemg9S/44cflZPIlWolyHkLrEpgbS9IQRlAgZgi0WDjsEiPh+PN/Fkogq4GdzPtarlRGW2tJwEK1RMTEvdVdmhAKHO1pdUuGQsVcX+rSfGzDbwGyE8NRPQc83HCaOkTZwPqABZBdFq8zAN1gue0FPO8wYUFBE1WkMwVzM1iQ4BItFh+H36Qy/yJg0DRQICmBl+tbKUC5cCj3yXI+SUFBS78ZAcBtHt+e9lBuiqpTNh9zTvIjzuIWxVYGQJpAZY+VWS3QKh84iSZbwuIdiDpc4KztQa/sjhMaDJEJDSZ8mZ+kCBdC0JpKVNQzZdKu+EsOeFCosrngVAkDS/uy6iGnW7UxmMpkB8FyFKo6iQW8z1HuBdMu1pdkZdB8jWTjlFtNaiJRYniIDcD+eECMqFLS9ED6DgxzCMKnRD3HYYA2uMCJUh70OK8G0EUnJV8lqe8nj84QdqLhdoJskNlEw1ivajM8LtPBhIeN99LESXI9xcQIHFQudHngZjUhXOQeGlUYmAddh5pxMhzV0M1vMAtMFIVmfp6fq+DgEWefjQVenstaqUy3bJQAiVlEihDghCDINFQg8oUhoQPkO8SBEM7SFQ72VYBwPuE7k8uYF5LNwg/TEd2zkuKjIIhTiJRlYrDfNS1QL7DYUcbcCyKJNwOwucVCVSwBBj/DwghXA2hQtACgCBBPprfXkAIFIYRXhONQARFU00Tsh6LEmmQUbkTImMi9me5qaHDIeBgHeRbdxAIqAJBCDSoCNVQglrciqX/ZCD9RRP6rgpBvhmKAFhg2ForBLXBYPtUjj7vCHPe8SXbYAY47gHB9mKeqjjIg/53fmMD0fR9Bug7SFcHI6EA1OC/E8QTL4NgBSGiCiyTChnI1zcQxmyfRZGM6w701KRybDvsIK3LWDx6mxGkcglEZQLkawnCdppZ6sgCh8trWWBUQaUWCEOlOs7HAenFE45QSu9RQQDAqchXNxDq4orQR44qRIFUQvM+mRJuB6GDEixgCbSBQGXghEEbdn1P/zO/QhAWCsWsmRhLa2VFkSZIgSVKmgEQhvk6K8YKMRZl7Dwg4amOUYvFBfLlE4RasOCB5S9PXKq0AqGDMiYIReXF0mYctITWBmqR5F38X5Y7yJfeCtKBzNbWYm5XpsMpf3dRZD3jPDesvdVCOs6KYQXIFw1E4fcE8dHWOepZBXpLJcACWUZVMRZbfvgXR4Ak8A7VVSKSVuu9p6/mFxyE7cOWavtLp952O8huK83+gmHzHaAsVXLgAvl8gPCvHzAFsM8GNXGKPH5cmN02sXTLa8QdKRXMzHv67/k5A9k1UIx36UH/VlWWtuKssNiRapB6BaLXl6MA+ayDcNS3v/sYXgCL620F1kk8QhKAEOvKu4DvajDO5zkHc4fBg76anyEIIcamBPex5EK8AoVHhMW7QAqWrYD1204CJB1hCfOAV/PTBPH0zBmJmsZZKCEaAmdqm4zMcYxYLN0JuHThIAjirAnp3px7TRgD+ZSD/K92M1CNIgbC8Ex7FkSEIlQEEUQEQQQBRBABEUQQEQTx3X0Evap9AhP39jL5OvuzAWuvbDaTTDIzX2aypUCJ0i7nAigoQAk9gUIUSxXEoCFyyVIuL9ZQcMZoArnwr4D0OLS8jGNGTgGnsZQWMYrcOARoIReAALBeWhf+RUCAIEsECFQHLkwR5zj4JW3t5WOUU5djvgQIawD53EDsctmYz8xGaZGPBUR3qNkiGwqDICUYIFpqBgRaayCfFiAWR2wWvoobmzxdF8N5kyxXmvap/sgGcLF/aoBosbG+lE395R8zCA4BqUYgOgYq+HtvBrT0LK15X8lZwx5f9klCX0rdgXzIIGbdhXMqZtHzJhuptEjmsFc4KzmN5IFPtfM7gWw2kPczSIqQSPUDYKYBMamsBCpKphW0iA5H8AbMDPJOQYjLZg1Vk4G49GlCYNYAkdOd0kwRQ8FCyAHydgLZ6Z2AqrVtjDUQ7hCEmrkEooDAsB2YnBCvkBpZ6yBvJpCd7Mn5zJ6C4QF2BUQPgHEIGUrGnHzQ8rlMekBeTyAzwDJksxwM4+w3BY02B8mIl0CmFRm+ZscxAuSnvwqQsECTIGSV6FEoJFTygVuzB5xAsKqBvAQE3+nkVoJDI1BJIaPBWik7ZSu5NIp5A3mRQaTFvLgkO9fVgEgMqqeVfb+p55tijWH+Kea71ubq4v8Sl8089sZKbKEZNq+VUfISJJF7j79WrbYgS994ZEf+nIz0pNFRWqapSmK6P45i3OQuItIiPDyg6RnxZ4D0g+CFPxAzluoRsWsaA6I6JOqVWCisDvJ0BgHTzMSRgMi0vmi8R+sR6tg/XUh7kCc7kMRqSNkTBDx0OkAUegFcMazciBXNpm798R6klXap/WZz49TQwBHqEcj4oCToUPjUuP9lfxcbyKMAwT6bTf1qqIIQDl3i5oCERNmVm0wgW4A8BGRxMX3hWh8bEV5Rvfp4DS5F3djWH2ztDNWKW7OBjgjIwsDWaKRknJjqMsh9QCa1p608lLovFkBE969DYtYelSzwSRcg535vAsFeNU9SzRCYZb4LDmxmFQKkwYGM+5y/G7b1uxMIylLdyE5yxIyYsoXWhQIpzQhYPi3JkJoKkB9+BxD0OMuyOEBe36DgyPSrxscmATldgKj8PxrkA/kA5PYMgkrocwIQ6GSRGmF0VaNqBKQZ5FYDEZSDzFTzq9mBQjAayE1A+ryDTzcQZe0Ibbxj7EwpAmTrJwEimZR9CCPtODhzxuNtY19Zd2Lf/fjCTnEiDAOg62j1utb/dv9mZ/aHCj4AyOHbsW3/As0BTzIgeJU7AAAAAElFTkSuQmCC);cursor:crosshair;float:left}.colorpicker-saturation i{display:block;height:5px;width:5px;border:1px solid #000;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;position:absolute;top:0;left:0;margin:-4px 0 0 -4px}.colorpicker-saturation i b{display:block;height:5px;width:5px;border:1px solid #fff;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.colorpicker-alpha,.colorpicker-hue{width:15px;height:100px;float:left;cursor:row-resize;margin-left:4px;margin-bottom:4px}.colorpicker-alpha i,.colorpicker-hue i{display:block;height:1px;background:#000;border-top:1px solid #fff;position:absolute;top:0;left:0;width:100%;margin-top:-1px}.colorpicker-hue{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABkCAMAAABw8qpSAAABLFBMVEXqFBb/ABH/ACL/ADH/AEH/AFD/AGD/AG7/AH7/AI3/AJ3/AKz/ALz/AMr/ANv/AOr/APr2AP/mAP/XAP/HAP+4AP+oAP+aAP+JAP97AP9rAP9cAP9MAP8+AP8tAP8fAP8PAP8BAv8AEP8AH/8AL/8APv8ATv8AXP8Abf8Ae/8Ai/8Amv8Aqv8AuP8Ayf8A1/8A5/8A9/8A//gA/+kA/9kA/8oA/7oA/6wA/5sA/40A/30A/24A/14A/1AA/z8A/zEA/yEA/xEB/wMN/wAd/wAs/wA8/wBK/wBb/wBp/wB5/wCI/wCY/wCm/wC3/wDF/wDV/wDk/wD1/wD/+gD/7AD/3AD/zAD/vgD/rQD/nwD/jgD/gAD/cAD/YgD/UQD/QwD/MgD/JAD/FAD4Eg42qAedAAAAh0lEQVR4XgXAg3EDAAAAwI9to7Zt27a1/w49BASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTS1tHXo1KVbj159+g0YNGTYiFFjxk2YNGXajFlz5i1YtGTZilVr1m3YtGXbjl179h04dOTYiVNnzl24dOXajVt37j149OTZi1dv3n349OXbj19//wOxE1dQ8reGAAAAAElFTkSuQmCC)}.colorpicker-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAABkCAQAAAAVxWkcAAABr0lEQVR4Xo2VwU0DQQxF7dmRuNIFlzlSAR3QAaXQQdIBJVABFXDcOVAAd67cjJLR07dkhcSrkZKfb/t7bG88rFo3B5gZPMNycItu2xloGV7MWHzM9zuzFWCkmA0nK6AszCUJDW6+mG6R03ncw5v8EMTEvZ2O3AliYjpslblc0RF9LmZYWxURU6aKytWZYsoWCAe+xwOZp1GsEukGiIkYxcQCHck99+gRgB7JncyIB5SGEhP3Yh5P6JwX+u6AnYot104d8DJT7uH7M9JH6OZbimj0vfMVaYnJIZFJDBW9kHlerL2C6JV4mSt7uuo2N57RxnZ+usQjn0R1jwBJBrNO3evJpVYUWsJ/E3UiXRlv24/7YZ04xmEdWlzcKS+B/eapeyMvFd2k0+hRk/T0AmTW8h69s2sjYMsdPntECiILhAeIMZAeH4QvUwfn6ijC0tTV+fT9ky8jM9nK2g7Ly1VjSpKYq6IvsAm7MtNu1orEqa/K3KNvgMFdhfquPfJmp2dbh0/8Gzb6Y22ViaNr6n5410zXdngVhbu6XqdOtWOuin5hjABGp4a2uotZ71MVCfwDBt2/v37yo6AAAAAASUVORK5CYII=);display:none}.colorpicker-alpha,.colorpicker-hue,.colorpicker-saturation{background-size:contain}.colorpicker{padding:4px;min-width:130px;margin-top:1px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;z-index:2500}.colorpicker:after,.colorpicker:before{display:table;content:\"\";line-height:0}.colorpicker:after{clear:both}.colorpicker:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2);position:absolute;top:-7px;left:6px}.colorpicker:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:7px}.colorpicker div{position:relative}.colorpicker.colorpicker-with-alpha{min-width:140px}.colorpicker.colorpicker-with-alpha .colorpicker-alpha{display:block}.colorpicker-color{height:10px;margin-top:5px;clear:both;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAABkCAQAAAAVxWkcAAABr0lEQVR4Xo2VwU0DQQxF7dmRuNIFlzlSAR3QAaXQQdIBJVABFXDcOVAAd67cjJLR07dkhcSrkZKfb/t7bG88rFo3B5gZPMNycItu2xloGV7MWHzM9zuzFWCkmA0nK6AszCUJDW6+mG6R03ncw5v8EMTEvZ2O3AliYjpslblc0RF9LmZYWxURU6aKytWZYsoWCAe+xwOZp1GsEukGiIkYxcQCHck99+gRgB7JncyIB5SGEhP3Yh5P6JwX+u6AnYot104d8DJT7uH7M9JH6OZbimj0vfMVaYnJIZFJDBW9kHlerL2C6JV4mSt7uuo2N57RxnZ+usQjn0R1jwBJBrNO3evJpVYUWsJ/E3UiXRlv24/7YZ04xmEdWlzcKS+B/eapeyMvFd2k0+hRk/T0AmTW8h69s2sjYMsdPntECiILhAeIMZAeH4QvUwfn6ijC0tTV+fT9ky8jM9nK2g7Ly1VjSpKYq6IvsAm7MtNu1orEqa/K3KNvgMFdhfquPfJmp2dbh0/8Gzb6Y22ViaNr6n5410zXdngVhbu6XqdOtWOuin5hjABGp4a2uotZ71MVCfwDBt2/v37yo6AAAAAASUVORK5CYII=);background-position:0 100%}.colorpicker-color div{height:10px}.colorpicker-selectors{display:none;height:10px;margin-top:5px;clear:both}.colorpicker-selectors i{cursor:pointer;float:left;height:10px;width:10px}.colorpicker-selectors i+i{margin-left:3px}.colorpicker-element .add-on i,.colorpicker-element .input-group-addon i{display:inline-block;cursor:pointer;height:16px;vertical-align:text-top;width:16px}.colorpicker.colorpicker-inline{position:relative;display:inline-block;float:none;z-index:auto}.colorpicker.colorpicker-horizontal{width:110px;min-width:110px;height:auto}.colorpicker.colorpicker-horizontal .colorpicker-saturation{margin-bottom:4px}.colorpicker.colorpicker-horizontal .colorpicker-color{width:100px}.colorpicker.colorpicker-horizontal .colorpicker-alpha,.colorpicker.colorpicker-horizontal .colorpicker-hue{width:100px;height:15px;float:left;cursor:col-resize;margin-left:0;margin-bottom:4px}.colorpicker.colorpicker-horizontal .colorpicker-alpha i,.colorpicker.colorpicker-horizontal .colorpicker-hue i{display:block;height:15px;background:#fff;position:absolute;top:0;left:0;width:1px;border:none;margin-top:0}.colorpicker.colorpicker-horizontal .colorpicker-hue{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAABCAMAAAAfBfuPAAABLFBMVEXqFBb/ABH/ACL/ADH/AEH/AFD/AGD/AG7/AH7/AI3/AJ3/AKz/ALz/AMr/ANv/AOr/APr2AP/mAP/XAP/HAP+4AP+oAP+aAP+JAP97AP9rAP9cAP9MAP8+AP8tAP8fAP8PAP8BAv8AEP8AH/8AL/8APv8ATv8AXP8Abf8Ae/8Ai/8Amv8Aqv8AuP8Ayf8A1/8A5/8A9/8A//gA/+kA/9kA/8oA/7oA/6wA/5sA/40A/30A/24A/14A/1AA/z8A/zEA/yEA/xEB/wMN/wAd/wAs/wA8/wBK/wBb/wBp/wB5/wCI/wCY/wCm/wC3/wDF/wDV/wDk/wD1/wD/+gD/7AD/3AD/zAD/vgD/rQD/nwD/jgD/gAD/cAD/YgD/UQD/QwD/MgD/JAD/FAD4Eg42qAedAAAAbUlEQVR4XgXAghEDsbxtlrZt27ax/w49ACAYQTGcICmaYTleECVZUTXdMC1Wm93hdLk9Xp8/EAyFI9FYPJFMpTPZXL5QLJUr1Vq90Wy1O91efzAcjSfT2XyxXK03293+cDydL9fb/fF8vT/f3x+LfRNXARMbCAAAAABJRU5ErkJggg==)}.colorpicker.colorpicker-horizontal .colorpicker-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAKCAQAAADoFTP1AAAB9ElEQVR4XoWTQW4VMRBEu9qWEimL7DhEMp8NF+ASnJJLcAQgE1bcgBUSkYKUuHCrZ9pjeqSU5Yn9LPu7umJQBIIv+k7vIOrtK66L4lmr3pVOrOv3otp619KZ0/KjdNI79L52Uo09FBQWrU0vfe5trezU+hLsoUKd3Repovte+0vbq/7Lj5XbaHECKasR9G4MPlbp+gzZxd6koPEJCkAYC5SjcOTAIIOK90Dja1IfIZ8Z+zAY9jm3b5Ia+MT5sFcqRJrR2AYYA8Kua5BzYRrFPNmD4PQMegGJMOffJJUsWiI3nCHZZjInNdffLWOufzbc3JaboCAVxwmnRHbhLSPwRJ4wU0BRSc6HkECYYVw95nMKgJOcylxrJttE5Ibzf9Xq9GPvP+WX3MiV/MGHfRu/SentRQrfG1GzsIrytdNXucSRKxQNIGHM9YhGFQJcdjNcBZvfJayuYe4Sia1CzwW+19mWOhe37HsxJWKwbu/jluEU15QzAQjAqCEbhMJc78GYV2E0kooHDubUImWkTOhGpgv8PoT8DJG/bzxna4BZ0eOFSOaLADGeSpFsg5AzeaDZIDQQXjZ4y/8ryfzUXBwdELRjTjCNvOeT0rNlrJz90vwy6N9pXXQEluX0inElpPWokSdiLCfiNJJjMKQ8Qsh8GEKQKMo/eiHrNbI9UksAAAAASUVORK5CYII=)}.colorpicker-right:before{left:auto;right:6px}.colorpicker-right:after{left:auto;right:7px}.colorpicker-no-arrow:before{border-right:0;border-left:0}.colorpicker-no-arrow:after{border-right:0;border-left:0}.colorpicker-alpha.colorpicker-visible,.colorpicker-hue.colorpicker-visible,.colorpicker-saturation.colorpicker-visible,.colorpicker-selectors.colorpicker-visible,.colorpicker.colorpicker-visible{display:block}.colorpicker-alpha.colorpicker-hidden,.colorpicker-hue.colorpicker-hidden,.colorpicker-saturation.colorpicker-hidden,.colorpicker-selectors.colorpicker-hidden,.colorpicker.colorpicker-hidden{display:none}.colorpicker-inline.colorpicker-visible{display:inline-block}",""])},function(e,t,n){var i=n(566);"string"==typeof i&&(i=[[e.i,i,""]]),n(14)(i,{}),i.locals&&(e.exports=i.locals)},function(e,t,n){(e.exports=n(15)(!1)).push([e.i,"/*!\n * Completer v0.1.3\n * https://github.com/fengyuanchen/completer\n *\n * Copyright (c) 2014-2016 Fengyuan Chen\n * Released under the MIT license\n *\n * Date: 2016-06-13T12:43:37.946Z\n */.completer-container{font-family:inherit;font-size:14px;line-height:normal;position:absolute;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;list-style:none;border:1px solid #ccc;border-bottom-color:#39f;background-color:#fff}.completer-container li{overflow:hidden;margin:0;padding:.5em .8em;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid #eee;background-color:#fff}.completer-container .completer-selected,.completer-container li:hover{margin-left:-1px;border-left:1px solid #39f;background-color:#eee}",""])},function(e,t,n){var i=n(568);"string"==typeof i&&(i=[[e.i,i,""]]),n(14)(i,{}),i.locals&&(e.exports=i.locals)},function(e,t){e.exports="data:application/x-font-ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzJAb0/YAAABjAAAAFZjbWFwiwju8gAAAggAAAHSZ2x5Zqn+hr8AAAPwAAAGFGhlYWQQvfNTAAAA4AAAADZoaGVhB78DyAAAALwAAAAkaG10eCAA//oAAAHkAAAAJGxvY2EGngfoAAAD3AAAABRtYXhwARoAjgAAARgAAAAgbmFtZaFDcxYAAAoEAAACjnBvc3Q5s/mjAAAMlAAAAGMAAQAAA8D/wAAABAD/+v/+BAIAAQAAAAAAAAAAAAAAAAAAAAkAAQAAAAEAAPvldVBfDzz1AAsEAAAAAADW0VdrAAAAANbRV2v/+v/ABAIDwAAAAAgAAgAAAAAAAAABAAAACQCCAAcAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAEDjgGQAAUAAARxAswAAACPBHECzAAAAesAMgEIAAACAAUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBmRWQAQOoB6ggDwP/AAFwDwABAAAAAAQAAAAAAAAAAAAAEAAAABAAAAAQA//oEAAAABAAAAAQAAAAEAAAABAAAAAAAAAUAAAADAAAALAAAAAQAAAFiAAEAAAAAAFwAAwABAAAALAADAAoAAAFiAAQAMAAAAAQABAABAADqCP//AADqAf//AAAAAQAEAAAAAQACAAMABAAFAAYABwAIAAABBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAABwAAAAAAAAAAgAAOoBAADqAQAAAAEAAOoCAADqAgAAAAIAAOoDAADqAwAAAAMAAOoEAADqBAAAAAQAAOoFAADqBQAAAAUAAOoGAADqBgAAAAYAAOoHAADqBwAAAAcAAOoIAADqCAAAAAgAAAAAAAAAMgCMAVYB1gJIAnwCzgMKAAEAAAAAA5MDdwAjAAABFRQGKwEVFAYrASImPQEjIiY9ATQ2OwE1NDY7ATIWHQEzMhYDkiAX7SAXbhcg7RcgIBftIBduFyDtFyACG20XIO4XICAX7iAXbRcg7hcgIBfuIAAAAAAFAAD/wAQAA8AAHwAiACUAMwA8AAABMhYVERQGIyEiJj0BISImNRE0Nj8BPgE7ATIWHQE2Mw8BMwEHMxc3NSMVFAYrAREhNTQ2AREjFRQGKwERA8kXICAX/dwXIP7JFyAXEOkQNxftFyAnIkmrq/6Tq6twtNsgF+4BJRcCMtwgFu4C5SAX/UkXICAXpCAXAYAXNxDpEBcgF7sXeqsBhqvGtO7uFyD+k5IXN/5EApLtFyD+kgAH//oAAAQCAy4ACABLAFkAZwByAHsAgQAAATIWFAYiJjQ2FwUWBg8BBiInJQcGBxYHDgEHBiMiJyY3PgE3NjMyFzY/AScmJwYjIicuAScmNjc2MzIXHgEXFgcyHwElNjIfAR4BBwU2JicmIyIHBhYXFjMyAz4BJyYjIgcOARcWMzITFzU0PwEnBwYPAR8BAScFFQcfAQU3JQcGBwIlDhYWHRYWugEiEAURSQgSCP51PwQCCAMEOC9MUk4xNAcEOC5MUzAnBQdGRgcFJzBTTC44BAMXGTBPUkwvOAQDCAIEPwGLCBIISREFEP1ZGhwvNDkrFhocLzQ5KxsvHBoWKzk0LxwaFis5mjcTCC0VBAMEezcBpEn+SVsJHAHtSf7XZQEGAcAWHRYWHRYl4wspCSUEBd0mAgEcGyxRHjAtMEYrUh4wEggFKSoFCBIwHlEsIj0XLTAeUSwcHAIm3QUEJQkpC08YSx4hFBhMHSL+ax1MGBQhHUwYFAGAIgcUDAQbFQUCA4UTAUkl9kE3CBy3JOpPAgIAAAUAAAAAA5MDdwAPAB8ALwA3AFsAACURNCYrASIGFREUFjsBMjY3ETQmKwEiBhURFBY7ATI2NxE0JisBIgYVERQWOwEyNgEhJyYnIwYHBRUUBisBERQGIyEiJjURIyImPQE0NjsBNz4BOwEyFh8BMzIWAZIKCCUICgoIJQgKkwsIJAgLCwgkCAuSCgglCAoKCCUICv7JAQAbBAa1BgQB9goINzYl/iQlNjcICgoIsSgILRe2Fy0IKLEICq4BkggKCgj+bggLCwgBkggKCgj+bggLCwgBkggKCgj+bggLCwI/QgYBAQZVJAgL/eMwRUMvAiALCCQIC18VHh4VXwsAAAAFAAAAAAP8A3cABgAPADkAPgBIAAABNycHFTMVASYPAQYWPwE2ExUUBiMhIiY1ETQ2MyEyFx4BDwEGJyYjISIGFREUFjMhMjY9ATQ/ATYWAxcBIzUBByc3NjIfARYUAftDV0I2ARwJCsgKEwnICiVhRP4lRGFhRAHbJB8IBAccCAoNDf4lJjY2JgHbJjUGJAkXN6T+gKQCfTSlNRAuEFYQARtDV0MgNwGcCQrICRMKyAr+tWxEYWFEAdtEYQ4EEwccCAMENib+JSY2NiZIBwUlCQoBmqT+gKQBNTWlNBAQVxAtAAABAAD/0gPuA6kAIQAAARQOAiIuAjU0PgE3FQ4BFRQeAjI+AjU0Jic1HgID7k+Etsq2hE9vwHZ+pzthiJSIYTunfnbAbwHAZbaET0+EtmV61IkSgxnKg0qIYTs7YYhKg8oZgxKJ1AAAAAQAAP/ABAADwAAIABgAGwA3AAAlIREjIiY9ASM3NTQmIyEiBh0BFBYzITI2EzMnBREUBiMhIiY9ASEiJjURNDYzITIWHQEWHwEeAQG3AgDuFyDbkgsH/m4ICwsIAZIHC5KrqwElIBf93Bcg/skXICAXAm4WIAwJ6RAXCQFuIBftpSUHCwsHJQcLC/6Hq/T+gBcgIBdbIBcDABcgIBe7CAjpEDcAAQAAAAADVALvACQAACUUDwEGIi8BBwYiLwEmND8BJyY0PwE2Mh8BNzYyHwEWFA8BFxYDUxBNEC4QqKgQLhBNEBCoqBAQTRAuEKioEC4QTRAQqKgQzRcQThAQqKgQEE4QLRCoqBAuEE4QEKioEBBOEC4QqKgQAAAAAAAQAMYAAQAAAAAAAQASAAAAAQAAAAAAAgAHABIAAQAAAAAAAwASABkAAQAAAAAABAASACsAAQAAAAAABQALAD0AAQAAAAAABgASAEgAAQAAAAAACgArAFoAAQAAAAAACwATAIUAAwABBAkAAQAkAJgAAwABBAkAAgAOALwAAwABBAkAAwAkAMoAAwABBAkABAAkAO4AAwABBAkABQAWARIAAwABBAkABgAkASgAAwABBAkACgBWAUwAAwABBAkACwAmAaJjb250ZXh0LW1lbnUtaWNvbnNSZWd1bGFyY29udGV4dC1tZW51LWljb25zY29udGV4dC1tZW51LWljb25zVmVyc2lvbiAxLjBjb250ZXh0LW1lbnUtaWNvbnNHZW5lcmF0ZWQgYnkgc3ZnMnR0ZiBmcm9tIEZvbnRlbGxvIHByb2plY3QuaHR0cDovL2ZvbnRlbGxvLmNvbQBjAG8AbgB0AGUAeAB0AC0AbQBlAG4AdQAtAGkAYwBvAG4AcwBSAGUAZwB1AGwAYQByAGMAbwBuAHQAZQB4AHQALQBtAGUAbgB1AC0AaQBjAG8AbgBzAGMAbwBuAHQAZQB4AHQALQBtAGUAbgB1AC0AaQBjAG8AbgBzAFYAZQByAHMAaQBvAG4AIAAxAC4AMABjAG8AbgB0AGUAeAB0AC0AbQBlAG4AdQAtAGkAYwBvAG4AcwBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAACAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkBAgEDAQQBBQEGAQcBCAEJAQoAA2FkZARjb3B5A2N1dAZkZWxldGUEZWRpdAdsb2FkaW5nBXBhc3RlBHF1aXQAAAA="},function(e,t){e.exports="data:application/font-woff;base64,d09GRgABAAAAAAiEAAsAAAAADPgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAARAAAAFZAb0/YY21hcAAAAYgAAABuAAAB0osI7vJnbHlmAAAB+AAABGMAAAYUqf6Gv2hlYWQAAAZcAAAAMQAAADYQvfNTaGhlYQAABpAAAAAgAAAAJAe/A8hobXR4AAAGsAAAABUAAAAkIAD/+mxvY2EAAAbIAAAAFAAAABQGngfobWF4cAAABtwAAAAfAAAAIAEaAI5uYW1lAAAG/AAAATwAAAKOoUNzFnBvc3QAAAg4AAAATAAAAGM5s/mjeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGTuY5zAwMrAwFLIdIaBgaEfQjO+ZjBi5GBgYGJgZWbACgLSXFMYHF4xvuJgPvD/AEMM8wEGB6AwI0gOAAYnDM14nO2R0Q2EQAhE37q4EmMpflxB92UFV/c24TFgGZK8mTAhfACwAj04A4N20VB9I22Zd/bMjU/OmPLp9x3apNFb6hKzFhsHGx7B4K0j9fd0rpsVecWlQN4LfWNaobvOtdCn5iiQbwVyL/A/vZIXbwAAeJyFVEtoXFUYPv99z0w7uZOZuSfpvO487r2N6Tycx70JsQk2MXTaaUITNZQsyiyCCzUVwQotlkiqtribuCouE1oZEAptCnYzK2kDbqTgIu2quFDIuJEu1Nz6n7lJWgriXfznf5zzP8757keA4Mev8Z+SLCEQjUjDnsiYxyHLRNUegxoTZS0BlbLGt3S6o9Nlqu9Q/SWVi31I9S5zdXX6QmXpRUKedwTCd0iKZIhBKuQNrFXWoqGIlE2zIihqoao9AePgFbIrfVABuUKdWrbXTyiNTUBoz+Afsuy7j6nuokbV31SHYg9Wpt5uu2vt9kd3trE4GJQrP9a1Lvcrbq6zI+s6hRXq4AE8dp9easOX7R/vdLFZd61FHXeKa2Eet0Xk538RInB8gSjkNDlH3iMfk8vk817fESljVm0qalIfSBnLkCVZk4MgS9mMZTrj4NiVMsVhLNNirgIqds+XBKrJ5RQYNookyKJtWmY2I0sa1Splfhx6VhCYFaa1KqaQsUYKwBKjcgpEh9XijKCmJTTtB8ioYqiu9CvuJxMCp/DCSLExN/N6VRZGCo35kiXK09OyaJXmG4URgaeDpdm5RhE1hRMm4Gs8Vw+J6u65I/FidXRY85ZYMX5EGx6tessNJ6zkowIvXHZgve7WF31x2Km7vyyBBB3WQ0IzngaGfIYgPjE5iMeOnU2W8qXp4blkqV8Rh14Tlf5S8uyxzHGaZ2s8zplPRMHwDQVmB04n05GBRiLjvp9oDETSTMBKRo4cEmJRkeO/CEPdePamo8Tv5X6f5bgejvaw2odIKhKHLBJihKomwlVCMGmIHdv5HxvS+CxZSRY9JHkIrIUOsO54EEwxrEPLrxiKvyfWAkpOCfTES173IZCYIN2VBHjmVxzbcHOG7bDg7aNKnm7SvHL0tuL/HlrM5y6zDP+hcxMnJADpHSyw+7T01mSR03vVzkeTyej5ANmf/x+cX8IbGCXj5CTi0bHkaCUKJmJRmwA7HN0fqWpX0gxzGEBcpb0rQJeNg+JGjaeQrYFsOQyNWgT+nlw4YUPc53/gD/se+I3mlGtMNZtTsJ1LKYIcV/yHD7uGadsmbJs1Keejzrq7ss59Vt2oqQX1XRVikwuTugPfYgpfGNO4dz/wEkw1g0IYM/CCbXopTsqi4fPDDZYBarWNqqouqHkcB7niZ77Lf0fSaESCXKbA1ar4T0WDSExJrjyOpmnVkhzfnb26ubV5dfZC5+KVm2PNa99ca47dvHKxcwE6S+jG6NKlR9f7Vwe3Vk9hCHecWt0aXO2//givUTjgJIUMkBhiiRhpDwVZByuw+0qAd1/hiiW+SlXoR5rS2G8M9ziCBLLdCsj7jyoHWu02GC8oSqfcsqYf8iHv+GAZaXPDkAMBmQn3q/af7grbsqhTnjDlvqIgoxGPm9/m/iA57C7CyKaILIPCZNTABHu6vffrQ9rg59Uz+BS3bqE4o7L1Vfsnqs54gRk17wUO7N5GQv4FV5EzGAB4nGNgZGBgAOLfT/1vxPPbfGXgZmEAgWsXw7Nh9P9f/w+wMDEfAHI5GJhAogCJPQ4VAAAAeJxjYGRgYD7w/wADAwvD/1///7EwMQBFUAAnAKWfBo54nGNgYGBggeP/v1hQ+BAMACzQAhoAAAAAAAAAADIAjAFWAdYCSAJ8As4DCnicY2BkYGDgZGhiYGcAASYg5gJCBob/YD4DABaQAakAeJyNjrtOwzAUhn/TC6KVECoSEpuHCiGhppexEmvLwNShA1uaOm2qJI4ct2ofgHdg5jmYGXgYnoE/xmKgS23p+DvfuSQArvAJgeoIdFyszhnOmf1yjXTruU5+8NxAG4+em/RPnlvsePHcxjVeuUHUL2i6ePN8hkt8eK7Rf3muk789N3AjOp6b6Ip7zy3MxbPnNu7Ee6Rzq/a2l6l820uYlTO12qahOS4cm7kyZaJzOQwGx8WpypUJrVrKxUGWu9XI2ljGRmdyUvWmqZaF0RsV2WBtbTHu92Pvg0hniKCRw0Jhz9hDRsqxJSW+VmJGt6JLEcKcNHFKz5zO8E1cLjFEgMFJk1PnqunQdS45vcCBscSOfzqitYiZx+zR3CEx+dub8mqawtU2NBF9gLWbKjBGnzf+1x+4r2c/1uR9/3icbcjLCoAgEAXQuT7TvxRnCEHSaFz09wVtO8tDhj6Z/iUYWDh4BERsSMhkC7OrY962Lg0sXVSccNPYR+F27H6W661zNSV6AHljD4A="},function(e,t){e.exports="data:application/font-woff2;base64,d09GMgABAAAAAAagAAsAAAAADPgAAAZUAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGVgCDUgqMFIoSATYCJAMkCxQABCAFhQ4HYxscC1GUT06U7GeCTadvgUWIs0bPtqn1FjiJ8QGIKuNrKni+3x//a599rh+cAFZo+nMSkpOc4NBeQ6gMlT80OKQ/cw/nMk/ofyojVX45ZAXoClegdMl1CMJPqrHSm5r+Bgj4Qj39b+qjmoPWaagJqahScaTiMgmbk69Gp0qnasnU/ne/X/0b5pHzI2enE5rFQpxgd9tDxIeodc+EoslEGpT8Q40owM5WPpPwHgQIqTej2L2ytUu6cyamZEgZca6A01rmAs8kdS4ZmxAg+HFuxLl6Jhc4YJeLP8C54Xj5TWM+GBxFPLZndtkhc7/65etL/MKwlkp7dYUAbDMUqO5OqkxGZg9TsqDaUGFUdpn6ZGnR6Zcfx8Av0URnORoaFIvz/cfz8EFcRJUAl6VqH36JIjG0gQRaIYG2kEA7kEC7kEB7kED7wGRDoHVMQ8hBjIeUQ0TvZkZw8KCcZTtOimlJk4Kgq9uNAjeFvEu9uBZUVsLCRkope/yK3D8MVfvRnYh97z6KAo9vATYMsIk4CSU01wOzWzFGdZautxchSaRBzqEYqIqWWoYQu7Vb15XRK1lr/D7Hs+NUtWIBTso5YU2WHJ1rueBa+DWYy7nALL4ZdRORRKgwhlYKd8EcveeG/aKtXgcRCbX7ut1cS4lFdq1K/WNq5UK0bfxG5AWYc19zPeI8Iinae9OTh7msXdc81iKS0myIdcMi3eUoSqU30lWAtPCoZmpIOVqrzSoHZuRAS6xo71RUjDexxbAVL4TlaDUQy2FYR3wNNuBuQLowp4QgVoUgzPy9aTJ2W1HqCYpGhiYBAjwlSsrXTkdqMUh7gjZ7EzGUiBRzUXe5UOmHS2XDZcDVEnbH4lQrS6g6GOrNowuHVaEQj4qvie7cjXoQe/MmA5wMIL4Od8lNA7E3aAg5tcba85PFQGxpmXIAukqxiKoYoau15gb0lw0bg6JS22aJTrii1SQlO8YMvEEBUMRRBI9wtmnH/mNqDXQoiRo1Bg8Ugmjpcw52UghPXBFGdRZjDf9fvfrvYpl32NvgTAzz/HjbdDTqPL51q+Zu0R007SIp1hCwV3ovRVehpgPgB40oO+k7duNOT34RAgLvNevj7j0PMBn1jArLU2f6FeQYxOmlRIbl33eeUehfnVaX4p7iUZdW7V+Y6Xc/LC/KqW3Gn9wCAqmv7zWqFfCcu9dn1kvgAuLXqhyVTYbaP8Kr0PDPfBeQYS1/x9SoCr0i/PGjcydX66NevWeSg50CR6bVLCcIfMfXhJLQmXvf7SBc3F/X5UD5YGy9VDBXIFIo0LwO86T6UsFaAQ4KxM/Hj+kn7hwaC6wTQvK254V8JXH/zmF2/iHJonuikEQ/xzCev7fZ7FbRdx7bgZ3vM2M343rgl3ViIk0nJDqGhtnMnzX35Mk5zrPViObiGW3JVVXJd8/B1b2BDXsHpUcN77pSrsp1UlwJfTJ4VnPo3OXLJ09esWJCcDCulfTf9z9F//cBsY8P1edsnzp1e84ZmerUvmb9SMfVg7P6TadOtFx1empG5MyqqpmRcpKSlEzImOqnYbFTYzofnNVxFewQgHTeGqrvjq0Q6fO9pAozEgRS9BgbGud5/LN4A+BSAHDvEGbt3TlzJXQAIf7nMYnirOxWwGqR6cwJ6ROOb7GKXeSheq0rg1+wRmu9wsD/m8RX9J/eIneg+Pec7sfvr7m3Zjz170f3btmXV6aVKhz8ig9V0/IF8DGXo+KpZD+WYPsX81hGiykB7yhlbvzLeiMhCgQF7POMAUKpDGIg5qZ4qzZXSMscAMZKc0AtqwdkXSTiENFCXNKskZAqxxdHpHuhiA0Qir0SxJDEA1GKfSHr8kscskojLsWVk5Ah2bpJRGk3U50pwjkqCaS5EnBrENvg5bHJQ4cIOGIfuAhYSg1Vj3nNKqTATQSHWhdUnHp9RJe6nCV0JduD4pjRjLMQbFR9xGxC09yoD6s2S4gNIwUBzkEUCUBKjiKIzhRscxvvkRNjwjOPOBn2ySqOIPCuPmVQ6YXUapAXVGYmcJBpcaE1FJzi0f8axIUqhsNIrPiVKiGWqhhUFp0ZAmQVovILmIwJGjWZm1WpDVvJtl8AhIjfH4gRFSuOuOKJL4GE6ITjlG2WXZTsHKsOxIBQBifAWsxMvUHqVTJT+N1P8iRCAA=="},function(e,t,n){var i=n(165);(e.exports=n(15)(!1)).push([e.i,'@charset "UTF-8";/*!\n * jQuery contextMenu - Plugin for simple contextMenu handling\n *\n * Version: v2.6.4\n *\n * Authors: Björn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)\n * Web: http://swisnl.github.io/jQuery-contextMenu/\n *\n * Copyright (c) 2011-2018 SWIS BV and contributors\n *\n * Licensed under\n * MIT License http://www.opensource.org/licenses/mit-license\n *\n * Date: 2018-03-16T11:13:46.072Z\n */@-webkit-keyframes cm-spin{0%{-webkit-transform:translateY(-50%) rotate(0);transform:translateY(-50%) rotate(0)}100%{-webkit-transform:translateY(-50%) rotate(359deg);transform:translateY(-50%) rotate(359deg)}}@-o-keyframes cm-spin{0%{-webkit-transform:translateY(-50%) rotate(0);-o-transform:translateY(-50%) rotate(0);transform:translateY(-50%) rotate(0)}100%{-webkit-transform:translateY(-50%) rotate(359deg);-o-transform:translateY(-50%) rotate(359deg);transform:translateY(-50%) rotate(359deg)}}@keyframes cm-spin{0%{-webkit-transform:translateY(-50%) rotate(0);-o-transform:translateY(-50%) rotate(0);transform:translateY(-50%) rotate(0)}100%{-webkit-transform:translateY(-50%) rotate(359deg);-o-transform:translateY(-50%) rotate(359deg);transform:translateY(-50%) rotate(359deg)}}@font-face{font-family:context-menu-icons;font-style:normal;font-weight:400;src:url('+i(n(371))+");src:url("+i(n(371))+'#iefix) format("embedded-opentype"),url('+i(n(572))+') format("woff2"),url('+i(n(571))+') format("woff"),url('+i(n(570))+') format("truetype")}.context-menu-icon-add:before{content:"\\EA01"}.context-menu-icon-copy:before{content:"\\EA02"}.context-menu-icon-cut:before{content:"\\EA03"}.context-menu-icon-delete:before{content:"\\EA04"}.context-menu-icon-edit:before{content:"\\EA05"}.context-menu-icon-loading:before{content:"\\EA06"}.context-menu-icon-paste:before{content:"\\EA07"}.context-menu-icon-quit:before{content:"\\EA08"}.context-menu-icon::before{position:absolute;top:50%;left:0;width:2em;font-family:context-menu-icons;font-size:1em;font-style:normal;font-weight:400;line-height:1;color:#2980b9;text-align:center;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.context-menu-icon.context-menu-hover:before{color:#fff}.context-menu-icon.context-menu-disabled::before{color:#bbb}.context-menu-icon.context-menu-icon-loading:before{-webkit-animation:cm-spin 2s infinite;-o-animation:cm-spin 2s infinite;animation:cm-spin 2s infinite}.context-menu-icon.context-menu-icon--fa{display:list-item;font-family:inherit;line-height:inherit}.context-menu-icon.context-menu-icon--fa::before{position:absolute;top:50%;left:0;width:2em;font-family:FontAwesome;font-size:1em;font-style:normal;font-weight:400;line-height:1;color:#2980b9;text-align:center;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.context-menu-icon.context-menu-icon--fa.context-menu-hover:before{color:#fff}.context-menu-icon.context-menu-icon--fa.context-menu-disabled::before{color:#bbb}.context-menu-list{position:absolute;display:inline-block;min-width:13em;max-width:26em;padding:.25em 0;margin:.3em;font-family:inherit;font-size:inherit;list-style-type:none;background:#fff;border:1px solid #bebebe;border-radius:.2em;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.5);box-shadow:0 2px 5px rgba(0,0,0,.5)}.context-menu-item{position:relative;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;padding:.2em 2em;color:#2f2f2f;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff}.context-menu-separator{padding:0;margin:.35em 0;border-bottom:1px solid #e6e6e6}.context-menu-item>label>input,.context-menu-item>label>textarea{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.context-menu-item.context-menu-hover{color:#fff;cursor:pointer;background-color:#2980b9}.context-menu-item.context-menu-disabled{color:#bbb;cursor:default;background-color:#fff}.context-menu-input.context-menu-hover{color:#2f2f2f;cursor:default}.context-menu-submenu:after{position:absolute;top:50%;right:.5em;z-index:1;width:0;height:0;content:\'\';border-color:transparent transparent transparent #2f2f2f;border-style:solid;border-width:.25em 0 .25em .25em;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.context-menu-item.context-menu-input{padding:.3em .6em}.context-menu-input>label>*{vertical-align:top}.context-menu-input>label>input[type=checkbox],.context-menu-input>label>input[type=radio]{position:relative;top:.12em;margin-right:.4em}.context-menu-input>label{margin:0}.context-menu-input>label,.context-menu-input>label>input[type=text],.context-menu-input>label>select,.context-menu-input>label>textarea{display:block;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.context-menu-input>label>textarea{height:7em}.context-menu-item>.context-menu-list{top:.3em;right:-.3em;display:none}.context-menu-item.context-menu-visible>.context-menu-list{display:block}.context-menu-accesskey{text-decoration:underline}\n',""])},function(e,t,n){var i=n(573);"string"==typeof i&&(i=[[e.i,i,""]]),n(14)(i,{}),i.locals&&(e.exports=i.locals)}]);