vendor: 4,687 bytes, line 1
1!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";function c(a,b){b=b||_;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}function d(a){var b=!!a&&"length"in a&&a.length,c=ma.type(a);return"function"===c||ma.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function e(a,b,c){if(ma.isFunction(b))return ma.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return ma.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(wa.test(b))return ma.filter(b,a,c);b=ma.filter(b,a)}return ma.grep(a,function(a){return ea.call(b,a)>-1!==c&&1===a.nodeType})}function f(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function g(a){var b={};return ma.each(a.match(Ca)||[],function(a,c){b[c]=!0}),b}function h(a){return a}function i(a){throw a}function j(a,b,c){var d;try{a&&ma.isFunction(d=a.promise)?d.call(a).done(b).fail(c):a&&ma.isFunction(d=a.then)?d.call(a,b,c):b.call(void 0,a)}catch(a){c.call(void 0,a)}}function k(){_.removeEventListener("DOMContentLoaded",k),a.removeEventListener("load",k),ma.ready()}function l(){this.expando=ma.expando+l.uid++}function m(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Ka,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:Ja.test(c)?JSON.parse(c):c}catch(e){}Ia.set(a,b,c)}else c=void 0;return c}function n(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return ma.css(a,b,"")},i=h(),j=c&&c[3]||(ma.cssNumber[b]?"":"px"),k=(ma.cssNumber[b]||"px"!==j&&+i)&&Ma.exec(ma.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,ma.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}function o(a){var b,c=a.ownerDocument,d=a.nodeName,e=Qa[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=ma.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e="block"),Qa[d]=e,e)}function p(a,b){for(var c,d,e=[],f=0,g=a.length;g>f;f++)d=a[f],d.style&&(c=d.style.display,b?("none"===c&&(e[f]=Ha.get(d,"display")||null,e[f]||(d.style.display="")),""===d.style.display&&Oa(d)&&(e[f]=o(d))):"none"!==c&&(e[f]="none",Ha.set(d,"display",c)));for(f=0;g>f;f++)null!=e[f]&&(a[f].style.display=e[f]);return a}function q(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&ma.nodeName(a,b)?ma.merge([a],c):c}function r(a,b){for(var c=0,d=a.length;d>c;c++)Ha.set(a[c],"globalEval",!b||Ha.get(b[c],"globalEval"))}function s(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],n=0,o=a.length;o>n;n++)if(f=a[n],f||0===f)if("object"===ma.type(f))ma.merge(m,f.nodeType?[f]:f);else if(Va.test(f)){for(g=g||l.appendChild(b.createElement("div")),h=(Sa.exec(f)||["",""])[1].toLowerCase(),i=Ua[h]||Ua._default,g.innerHTML=i[1]+ma.htmlPrefilter(f)+i[2],k=i[0];k--;)g=g.lastChild;ma.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));for(l.textContent="",n=0;f=m[n++];)if(d&&ma.inArray(f,d)>-1)e&&e.push(f);else if(j=ma.contains(f.ownerDocument,f),g=q(l.appendChild(f),"script"),j&&r(g),c)for(k=0;f=g[k++];)Ta.test(f.type||"")&&c.push(f);return l}function t(){return!0}function u(){return!1}function v(){try{return _.activeElement}catch(a){}}function w(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)w(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=u;else if(!e)return a;return 1===f&&(g=e,e=function(a){return ma().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=ma.guid++)),a.each(function(){ma.event.add(this,b,e,d,c)})}function x(a,b){return ma.nodeName(a,"table")&&ma.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a:a}function y(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function z(a){var b=bb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function A(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(Ha.hasData(a)&&(f=Ha.access(a),g=Ha.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)ma.event.add(b,e,j[e][c])}Ia.hasData(a)&&(h=Ia.access(a),i=ma.extend({},h),Ia.set(b,i))}}function B(a,b){var c=b.nodeName.toLowerCase();
vendor: 6,385 bytes, line 1
1"input"===c&&Ra.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function C(a,b,d,e){b=ca.apply([],b);var f,g,h,i,j,k,l=0,m=a.length,n=m-1,o=b[0],p=ma.isFunction(o);if(p||m>1&&"string"==typeof o&&!ka.checkClone&&ab.test(o))return a.each(function(c){var f=a.eq(c);p&&(b[0]=o.call(this,c,f.html())),C(f,b,d,e)});if(m&&(f=s(b,a[0].ownerDocument,!1,a,e),g=f.firstChild,1===f.childNodes.length&&(f=g),g||e)){for(h=ma.map(q(f,"script"),y),i=h.length;m>l;l++)j=f,l!==n&&(j=ma.clone(j,!0,!0),i&&ma.merge(h,q(j,"script"))),d.call(a[l],j,l);if(i)for(k=h[h.length-1].ownerDocument,ma.map(h,z),l=0;i>l;l++)j=h[l],Ta.test(j.type||"")&&!Ha.access(j,"globalEval")&&ma.contains(k,j)&&(j.src?ma._evalUrl&&ma._evalUrl(j.src):c(j.textContent.replace(cb,""),k))}return a}function D(a,b,c){for(var d,e=b?ma.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||ma.cleanData(q(d)),d.parentNode&&(c&&ma.contains(d.ownerDocument,d)&&r(q(d,"script")),d.parentNode.removeChild(d));return a}function E(a,b,c){var d,e,f,g,h=a.style;return c=c||fb(a),c&&(g=c.getPropertyValue(b)||c[b],""!==g||ma.contains(a.ownerDocument,a)||(g=ma.style(a,b)),!ka.pixelMarginRight()&&eb.test(g)&&db.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function F(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function G(a){if(a in kb)return a;for(var b=a[0].toUpperCase()+a.slice(1),c=jb.length;c--;)if(a=jb[c]+b,a in kb)return a}function H(a,b,c){var d=Ma.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function I(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=ma.css(a,c+Na[f],!0,e)),d?("content"===c&&(g-=ma.css(a,"padding"+Na[f],!0,e)),"margin"!==c&&(g-=ma.css(a,"border"+Na[f]+"Width",!0,e))):(g+=ma.css(a,"padding"+Na[f],!0,e),"padding"!==c&&(g+=ma.css(a,"border"+Na[f]+"Width",!0,e)));return g}function J(a,b,c){var d,e=!0,f=fb(a),g="border-box"===ma.css(a,"boxSizing",!1,f);if(a.getClientRects().length&&(d=a.getBoundingClientRect()[b]),0>=d||null==d){if(d=E(a,b,f),(0>d||null==d)&&(d=a.style[b]),eb.test(d))return d;e=g&&(ka.boxSizingReliable()||d===a.style[b]),d=parseFloat(d)||0}return d+I(a,b,c||(g?"border":"content"),e,f)+"px"}function K(a,b,c,d,e){return new K.prototype.init(a,b,c,d,e)}function L(){mb&&(a.requestAnimationFrame(L),ma.fx.tick())}function M(){return a.setTimeout(function(){lb=void 0}),lb=ma.now()}function N(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=Na[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function O(a,b,c){for(var d,e=(R.tweeners[b]||[]).concat(R.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function P(a,b,c){var d,e,f,g,h,i,j,k,l="width"in b||"height"in b,m=this,n={},o=a.style,q=a.nodeType&&Oa(a),r=Ha.get(a,"fxshow");c.queue||(g=ma._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,h=g.empty.fire,g.empty.fire=function(){g.unqueued||h()}),g.unqueued++,m.always(function(){m.always(function(){g.unqueued--,ma.queue(a,"fx").length||g.empty.fire()})}));for(d in b)if(e=b[d],nb.test(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}n[d]=r&&r[d]||ma.style(a,d)}if(i=!ma.isEmptyObject(b),i||!ma.isEmptyObject(n)){l&&1===a.nodeType&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=r&&r.display,null==j&&(j=Ha.get(a,"display")),k=ma.css(a,"display"),"none"===k&&(j?k=j:(p([a],!0),j=a.style.display||j,k=ma.css(a,"display"),p([a]))),("inline"===k||"inline-block"===k&&null!=j)&&"none"===ma.css(a,"float")&&(i||(m.done(function(){o.display=j}),null==j&&(k=o.display,j="none"===k?"":k)),o.display="inline-block")),c.overflow&&(o.overflow="hidden",m.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]})),i=!1;for(d in n)i||(r?"hidden"in r&&(q=r.hidden):r=Ha.access(a,"fxshow",{display:j}),f&&(r.hidden=!q),q&&p([a],!0),m.done(function(){q||p([a]),Ha.remove(a,"fxshow");for(d in n)ma.style(a,d,n[d])})),i=O(q?r[d]:0,d,m),d in r||(r[d]=i.start,q&&(i.end=i.start,i.start=0))}}function Q(a,b){var c,d,e,f,g;for(c in a)if(d=ma.camelCase(c),e=b[d],f=a[c],ma.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=ma.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function R(a,b,c){var d,e,f=0,g=R.prefilters.length,h=ma.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=lb||M(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:ma.extend({},b),opts:ma.extend(!0,{specialEasing:{},easing:ma.easing._default},c),originalProperties:b,originalOptions:c,startTime:lb||M(),duration:c.duration,tweens:[],createTween:function(b,c){var d=ma.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Q(k,j.opts.specialEasing);g>f;f++)if(d=R.prefilters[f].call(j,a,k,j.opts))return ma.isFunction(d.stop)&&(ma._queueHooks(j.elem,j.opts.queue).stop=ma.proxy(d.stop,d)),d;return ma.map(k,O,j),ma.isFunction(j.opts.start)&&j.opts.start.call(a,j),ma.fx.timer(ma.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function S(a){return a.getAttribute&&a.getAttribute("class")||""}function T(a,b,c,d){var e;if(ma.isArray(b))ma.each(b,function(b,e){c||Ab.test(a)?d(a,e):T(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==ma.type(b))d(a,b);else for(e in b)T(a+"["+e+"]",b[e],c,d)}function U(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(Ca)||[];if(ma.isFunction(c))for(;d=f[e++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function V(a,b,c,d){function e(h){var i;return f[h]=!0,ma.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={}
vendor: 7,133 bytes, line 1
1,g=a===Mb;return e(b.dataTypes[0])||!f["*"]&&e("*")}function W(a,b){var c,d,e=ma.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&ma.extend(!0,a,d),a}function X(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Y(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}function Z(a){return ma.isWindow(a)?a:9===a.nodeType&&a.defaultView}var $=[],_=a.document,aa=Object.getPrototypeOf,ba=$.slice,ca=$.concat,da=$.push,ea=$.indexOf,fa={},ga=fa.toString,ha=fa.hasOwnProperty,ia=ha.toString,ja=ia.call(Object),ka={},la="3.1.0",ma=function(a,b){return new ma.fn.init(a,b)},na=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,oa=/^-ms-/,pa=/-([a-z])/g,qa=function(a,b){return b.toUpperCase()};ma.fn=ma.prototype={jquery:la,constructor:ma,length:0,toArray:function(){return ba.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:ba.call(this)},pushStack:function(a){var b=ma.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return ma.each(this,a)},map:function(a){return this.pushStack(ma.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(ba.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:da,sort:$.sort,splice:$.splice},ma.extend=ma.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||ma.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(ma.isPlainObject(d)||(e=ma.isArray(d)))?(e?(e=!1,f=c&&ma.isArray(c)?c:[]):f=c&&ma.isPlainObject(c)?c:{},g[b]=ma.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},ma.extend({expando:"jQuery"+(la+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===ma.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=ma.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return a&&"[object Object]"===ga.call(a)?(b=aa(a))?(c=ha.call(b,"constructor")&&b.constructor,"function"==typeof c&&ia.call(c)===ja):!0:!1},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?fa[ga.call(a)]||"object":typeof a},globalEval:function(a){c(a)},camelCase:function(a){return a.replace(oa,"ms-").replace(pa,qa)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,e=0;if(d(a))for(c=a.length;c>e&&b.call(a[e],e,a[e])!==!1;e++);else for(e in a)if(b.call(a[e],e,a[e])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(na,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(d(Object(a))?ma.merge(c,"string"==typeof a?[a]:a):da.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:ea.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var e,f,g=0,h=[];if(d(a))for(e=a.length;e>g;g++)f=b(a[g],g,c),null!=f&&h.push(f);else for(g in a)f=b(a[g],g,c),null!=f&&h.push(f);return ca.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;return"string"==typeof b&&(c=a[b],b=a,a=c),ma.isFunction(a)?(d=ba.call(arguments,2),e=function(){return a.apply(b||this,d.concat(ba.call(arguments)))},e.guid=a.guid=a.guid||ma.guid++,e):void 0},now:Date.now,support:ka}),"function"==typeof Symbol&&(ma.fn[Symbol.iterator]=$[Symbol.iterator]),ma.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){fa["[object "+b+"]"]=b.toLowerCase()});var ra=function(a){function b(a,b,c,d){var e,f,g,h,i,j,k,m=b&&b.ownerDocument,o=b?b.nodeType:9;if(c=c||[],"string"!=typeof a||!a||1!==o&&9!==o&&11!==o)return c;if(!d&&((b?b.ownerDocument||b:P)!==H&&G(b),b=b||H,J)){if(11!==o&&(i=ra.exec(a)))if(e=i[1]){if(9===o){if(!(g=b.getElementById(e)))return c;if(g.id===e)return c.push(g),c}else if(m&&(g=m.getElementById(e))&&N(b,g)&&g.id===e)return c.push(g),c}else{if(i[2])return $.apply(c,b.getElementsByTagName(a)),c;if((e=i[3])&&w.getElementsByClassName&&b.getElementsByClassName)return $.apply(c,b.getElementsByClassName(e)),c}if(!(!w.qsa||U[a+" "]||K&&K.test(a))){if(1!==o)m=b,k=a;else if("object"!==b.nodeName.toLowerCase()){for((h=b.getAttribute("id"))?h=h.replace(va,wa):b.setAttribute("id",h=O),j=A(a),f=j.length;f--;)j[f]="#"+h+" "+n(j[f]);k=j.join(","),m=sa.test(a)&&l(b.parentNode)||b}if(k)try{return $.apply(c,m.querySelectorAll(k)),c}catch(p){}finally{h===O&&b.removeAttribute("id")}}}return C(a.replace(ha,"$1"),b,c,d)}function c(){function a(c,d){return b.push(c+" ")>x.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function d(a){return a[O]=!0,a}function e(a){var b=H.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function f(a,b){for(var c=a.split("|"),d=c.length;d--;)x.attrHandle[c[d]]=b}function g(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function h(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function i(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function j(a){return function(b){return"label"in b&&b.disabled===a||"form"in b&&b.disabled===a||"form"in b&&b.disabled===!1&&(b.isDisabled===a||b.isDisabled!==!a&&("label"in b||!ya(b))!==a)}}function k(a){return d(function(b){return b=+b,d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function l(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}function m(){}function n(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function o(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=R++;
vendor: 4,313 bytes, line 1
1return b.first?function(b,c,e){for(;b=b[d];)if(1===b.nodeType||g)return a(b,c,e)}:function(b,c,i){var j,k,l,m=[Q,h];if(i){for(;b=b[d];)if((1===b.nodeType||g)&&a(b,c,i))return!0}else for(;b=b[d];)if(1===b.nodeType||g)if(l=b[O]||(b[O]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===Q&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}}}function p(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function q(a,c,d){for(var e=0,f=c.length;f>e;e++)b(a,c[e],d);return d}function r(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function s(a,b,c,e,f,g){return e&&!e[O]&&(e=s(e)),f&&!f[O]&&(f=s(f,g)),d(function(d,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=d||q(b||"*",h.nodeType?[h]:h,[]),s=!a||!d&&b?p:r(p,m,a,h,i),t=c?f||(d?a:o||e)?[]:g:s;if(c&&c(s,t,h,i),e)for(j=r(t,n),e(j,[],h,i),k=j.length;k--;)(l=j[k])&&(t[n[k]]=!(s[n[k]]=l));if(d){if(f||a){if(f){for(j=[],k=t.length;k--;)(l=t[k])&&j.push(s[k]=l);f(null,t=[],j,i)}for(k=t.length;k--;)(l=t[k])&&(j=f?aa(d,l):m[k])>-1&&(d[j]=!(g[j]=l))}}else t=r(t===g?t.splice(o,t.length):t),f?f(null,g,t,i):$.apply(g,t)})}function t(a){for(var b,c,d,e=a.length,f=x.relative[a[0].type],g=f||x.relative[" "],h=f?1:0,i=o(function(a){return a===b},g,!0),j=o(function(a){return aa(b,a)>-1},g,!0),k=[function(a,c,d){var e=!f&&(d||c!==D)||((b=c).nodeType?i(a,c,d):j(a,c,d));return b=null,e}];e>h;h++)if(c=x.relative[a[h].type])k=[o(p(k),c)];else{if(c=x.filter[a[h].type].apply(null,a[h].matches),c[O]){for(d=++h;e>d&&!x.relative[a[d].type];d++);return s(h>1&&p(k),h>1&&n(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(ha,"$1"),c,d>h&&t(a.slice(h,d)),e>d&&t(a=a.slice(d)),e>d&&n(a))}k.push(c)}return p(k)}function u(a,c){var e=c.length>0,f=a.length>0,g=function(d,g,h,i,j){var k,l,m,n=0,o="0",p=d&&[],q=[],s=D,t=d||f&&x.find.TAG("*",j),u=Q+=null==s?1:Math.random()||.1,v=t.length;for(j&&(D=g===H||g||j);o!==v&&null!=(k=t[o]);o++){if(f&&k){for(l=0,g||k.ownerDocument===H||(G(k),h=!J);m=a[l++];)if(m(k,g||H,h)){i.push(k);break}j&&(Q=u)}e&&((k=!m&&k)&&n--,d&&p.push(k))}if(n+=o,e&&o!==n){for(l=0;m=c[l++];)m(p,q,g,h);if(d){if(n>0)for(;o--;)p[o]||q[o]||(q[o]=Y.call(i));q=r(q)}$.apply(i,q),j&&!d&&q.length>0&&n+c.length>1&&b.uniqueSort(i)}return j&&(Q=u,D=s),p};return e?d(g):g}var v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O="sizzle"+1*new Date,P=a.document,Q=0,R=0,S=c(),T=c(),U=c(),V=function(a,b){return a===b&&(F=!0),0},W={}.hasOwnProperty,X=[],Y=X.pop,Z=X.push,$=X.push,_=X.slice,aa=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},ba="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ca="[\\x20\\t\\r\\n\\f]",da="(?:\\\\.|[\\w-]|[^\x00-\\xa0])+",ea="\\["+ca+"*("+da+")(?:"+ca+"*([*^$|!~]?=)"+ca+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+da+"))|)"+ca+"*\\]",fa=":("+da+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ea+")*)|.*)\\)|)",ga=new RegExp(ca+"+","g"),ha=new RegExp("^"+ca+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ca+"+$","g"),ia=new RegExp("^"+ca+"*,"+ca+"*"),ja=new RegExp("^"+ca+"*([>+~]|"+ca+")"+ca+"*"),ka=new RegExp("="+ca+"*([^\\]'\"]*?)"+ca+"*\\]","g"),la=new RegExp(fa),ma=new RegExp("^"+da+"$"),na={ID:new RegExp("^#("+da+")"),CLASS:new RegExp("^\\.("+da+")"),TAG:new RegExp("^("+da+"|[*])"),ATTR:new RegExp("^"+ea),PSEUDO:new RegExp("^"+fa),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ca+"*(even|odd|(([+-]|)(\\d*)n|)"+ca+"*(?:([+-]|)"+ca+"*(\\d+)|))"+ca+"*\\)|)","i"),bool:new RegExp("^(?:"+ba+")$","i"),needsContext:new RegExp("^"+ca+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ca+"*((?:-\\d)?\\d*)"+ca+"*\\)|)(?=[^-]|$)","i")},oa=/^(?:input|select|textarea|button)$/i,pa=/^h\d$/i,qa=/^[^{]+\{\s*\[native \w/,ra=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sa=/[+~]/,ta=new RegExp("\\\\([\\da-f]{1,6}"+ca+"?|("+ca+")|.)","ig"),ua=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},va=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,wa=function(a,b){return b?"\x00"===a?"�":a.slice(0,-1)+"\\"+a.charCo
vendor: 7,300 bytes, line 1
1deAt(a.length-1).toString(16)+" ":"\\"+a},xa=function(){G()},ya=o(function(a){return a.disabled===!0},{dir:"parentNode",next:"legend"});try{$.apply(X=_.call(P.childNodes),P.childNodes),X[P.childNodes.length].nodeType}catch(za){$={apply:X.length?function(a,b){Z.apply(a,_.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}w=b.support={},z=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},G=b.setDocument=function(a){var b,c,d=a?a.ownerDocument||a:P;return d!==H&&9===d.nodeType&&d.documentElement?(H=d,I=H.documentElement,J=!z(H),P!==H&&(c=H.defaultView)&&c.top!==c&&(c.addEventListener?c.addEventListener("unload",xa,!1):c.attachEvent&&c.attachEvent("onunload",xa)),w.attributes=e(function(a){return a.className="i",!a.getAttribute("className")}),w.getElementsByTagName=e(function(a){return a.appendChild(H.createComment("")),!a.getElementsByTagName("*").length}),w.getElementsByClassName=qa.test(H.getElementsByClassName),w.getById=e(function(a){return I.appendChild(a).id=O,!H.getElementsByName||!H.getElementsByName(O).length}),w.getById?(x.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&J){var c=b.getElementById(a);return c?[c]:[]}},x.filter.ID=function(a){var b=a.replace(ta,ua);return function(a){return a.getAttribute("id")===b}}):(delete x.find.ID,x.filter.ID=function(a){var b=a.replace(ta,ua);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),x.find.TAG=w.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):w.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},x.find.CLASS=w.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&J?b.getElementsByClassName(a):void 0},L=[],K=[],(w.qsa=qa.test(H.querySelectorAll))&&(e(function(a){I.appendChild(a).innerHTML="<a id='"+O+"'></a><select id='"+O+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&K.push("[*^$]="+ca+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||K.push("\\["+ca+"*(?:value|"+ba+")"),a.querySelectorAll("[id~="+O+"-]").length||K.push("~="),a.querySelectorAll(":checked").length||K.push(":checked"),a.querySelectorAll("a#"+O+"+*").length||K.push(".#.+[+~]")}),e(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=H.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&K.push("name"+ca+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&K.push(":enabled",":disabled"),I.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&K.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),K.push(",.*:")})),(w.matchesSelector=qa.test(M=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&e(function(a){w.disconnectedMatch=M.call(a,"*"),M.call(a,"[s!='']:x"),L.push("!=",fa)}),K=K.length&&new RegExp(K.join("|")),L=L.length&&new RegExp(L.join("|")),b=qa.test(I.compareDocumentPosition),N=b||qa.test(I.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},V=b?function(a,b){if(a===b)return F=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;return c?c:(c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&c||!w.sortDetached&&b.compareDocumentPosition(a)===c?a===H||a.ownerDocument===P&&N(P,a)?-1:b===H||b.ownerDocument===P&&N(P,b)?1:E?aa(E,a)-aa(E,b):0:4&c?-1:1)}:function(a,b){if(a===b)return F=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===H?-1:b===H?1:e?-1:f?1:E?aa(E,a)-aa(E,b):0;if(e===f)return g(a,b);for(c=a;c=c.parentNode;)h.unshift(c);for(c=b;c=c.parentNode;)i.unshift(c);for(;h[d]===i[d];)d++;return d?g(h[d],i[d]):h[d]===P?-1:i[d]===P?1:0},H):H},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if((a.ownerDocument||a)!==H&&G(a),c=c.replace(ka,"='$1']"),!(!w.matchesSelector||!J||U[c+" "]||L&&L.test(c)||K&&K.test(c)))try{var d=M.call(a,c);if(d||w.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return b(c,H,null,[a]).length>0},b.contains=function(a,b){return(a.ownerDocument||a)!==H&&G(a),N(a,b)},b.attr=function(a,b){(a.ownerDocument||a)!==H&&G(a);var c=x.attrHandle[b.toLowerCase()],d=c&&W.call(x.attrHandle,b.toLowerCase())?c(a,b,!J):void 0;return void 0!==d?d:w.attributes||!J?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null},b.escape=function(a){return(a+"").replace(va,wa)},b.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},b.uniqueSort=function(a){var b,c=[],d=0,e=0;if(F=!w.detectDuplicates,E=!w.sortStable&&a.slice(0),a.sort(V),F){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}return E=null,a},y=b.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=y(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=y(b);return c},x=b.selectors={cacheLength:50,createPseudo:d,match:na,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ta,ua),a[3]=(a[3]||a[4]||a[5]||"").replace(ta,ua),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return na.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&la.test(c)&&(b=A(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ta,ua).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=S[a+" "];return b||(b=new RegExp("(^|"+ca+")"+a+"("+ca+"|$)"))&&S(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,c,d){return function(e){var f=b.attr(e,a);return null==f?"!="===c:c?(f+="","="===c?f===d:"!="===c?f!==d:"^="===c?d&&0===f.indexOf(d):"*="===c?d&&f.indexOf(d)>-1:"$="===c?d&&f.slice(-d.length)===d:"~="===c?(" "+f.replace(ga," ")+" ").indexOf(d)>-1:"|="===c?f===d||f.slice(0,d.length+1)===d+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;
vendor: 6,813 bytes, lines 1-2
1if(q){if(f){for(;p;){for(m=b;m=m[p];)if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){for(m=q,l=m[O]||(m[O]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===Q&&j[1],t=n&&j[2],m=n&&q.childNodes[n];m=++n&&m&&m[p]||(t=n=0)||o.pop();)if(1===m.nodeType&&++t&&m===b){k[a]=[Q,n,t];break}}else if(s&&(m=b,l=m[O]||(m[O]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===Q&&j[1],t=n),t===!1)for(;(m=++n&&m&&m[p]||(t=n=0)||o.pop())&&((h?m.nodeName.toLowerCase()!==r:1!==m.nodeType)||!++t||(s&&(l=m[O]||(m[O]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[Q,t]),m!==b)););return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,c){var e,f=x.pseudos[a]||x.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[O]?f(c):f.length>1?(e=[a,a,"",c],x.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=aa(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=B(a.replace(ha,"$1"));return e[O]?d(function(a,b,c,d){for(var f,g=e(a,null,d,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,d,f){return b[0]=a,e(b,null,f,c),b[0]=null,!c.pop()}}),has:d(function(a){return function(c){return b(a,c).length>0}}),contains:d(function(a){return a=a.replace(ta,ua),function(b){return(b.textContent||b.innerText||y(b)).indexOf(a)>-1}}),lang:d(function(a){return ma.test(a||"")||b.error("unsupported lang: "+a),a=a.replace(ta,ua).toLowerCase(),function(b){var c;do if(c=J?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===I},focus:function(a){return a===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:j(!1),disabled:j(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0}, 2empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!x.pseudos.empty(a)},header:function(a){return pa.test(a.nodeName)},input:function(a){return oa.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:k(function(){return[0]}),last:k(function(a,b){return[b-1]}),eq:k(function(a,b,c){return[0>c?c+b:c]}),even:k(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:k(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:k(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:k(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},x.pseudos.nth=x.pseudos.eq;for(v in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[v]=h(v);for(v in{submit:!0,reset:!0})x.pseudos[v]=i(v);return m.prototype=x.filters=x.pseudos,x.setFilters=new m,A=b.tokenize=function(a,c){var d,e,f,g,h,i,j,k=T[a+" "];if(k)return c?0:k.slice(0);for(h=a,i=[],j=x.preFilter;h;){(!d||(e=ia.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=ja.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(ha," ")}),h=h.slice(d.length));for(g in x.filter)!(e=na[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):T(a,i).slice(0)},B=b.compile=function(a,b){var c,d=[],e=[],f=U[a+" "];if(!f){for(b||(b=A(a)),c=b.length;c--;)f=t(b[c]),f[O]?d.push(f):e.push(f);f=U(a,u(e,d)),f.selector=a}return f},C=b.select=function(a,b,c,d){var e,f,g,h,i,j="function"==typeof a&&a,k=!d&&A(a=j.selector||a);if(c=c||[],1===k.length){if(f=k[0]=k[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&w.getById&&9===b.nodeType&&J&&x.relative[f[1].type]){if(b=(x.find.ID(g.matches[0].replace(ta,ua),b)||[])[0],!b)return c;j&&(b=b.parentNode),a=a.slice(f.shift().value.length)}for(e=na.needsContext.test(a)?0:f.length;e--&&(g=f[e],!x.relative[h=g.type]);)if((i=x.find[h])&&(d=i(g.matches[0].replace(ta,ua),sa.test(f[0].type)&&l(b.parentNode)||b))){if(f.splice(e,1),a=d.length&&n(f),!a)return $.apply(c,d),c;break}}return(j||B(a,k))(d,b,!J,c,!b||sa.test(a)&&l(b.parentNode)||b),c},w.sortStable=O.split("").sort(V).join("")===O,w.detectDuplicates=!!F,G(),w.sortDetached=e(function(a){return 1&a.compareDocumentPosition(H.createElement("fieldset"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),w.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||f("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f(ba,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),b}(a);ma.find=ra,ma.expr=ra.selectors,ma.expr[":"]=ma.expr.pseudos,ma.uniqueSort=ma.unique=ra.uniqueSort,ma.text=ra.getText,ma.isXMLDoc=ra.isXML,ma.contains=ra.contains,ma.escapeSelector=ra.escape;var sa=function(a,b,c){for(var d=[],e=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(e&&ma(a).is(c))break;d.push(a)}return d},ta=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},ua=ma.expr.match.needsContext,va=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,wa=/^.[^:#\[\.,]*$/;ma.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?ma.find.matchesSelector(d,a)?[d]:[]:ma.find.matches(a,ma.grep(b,function(a){return 1===a.nodeType}))},ma.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(ma(a).filter(function(){for(b=0;d>b;b++)if(ma.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;d>b;b++)ma.find(a,e[b],c);return d>1?ma.uniqueSort(c):c},filter:function(a){return this.pushStack(e(this,a||[],!1))},not:function(a){return this.pushStack(e(this,a||[],!0))},is:function(a){return!!e(this,"string"==typeof a&&ua.test(a)?ma(a):a||[],!1).length}});var xa,ya=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,za=ma.fn.init=function(a,b,c){var d,e;if(!a)return this;if(c=c||xa,"string"==typeof a){if(d="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:ya.exec(a),!d||!d[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);
vendor: 4,218 bytes, line 2
2if(d[1]){if(b=b instanceof ma?b[0]:b,ma.merge(this,ma.parseHTML(d[1],b&&b.nodeType?b.ownerDocument||b:_,!0)),va.test(d[1])&&ma.isPlainObject(b))for(d in b)ma.isFunction(this[d])?this[d](b[d]):this.attr(d,b[d]);return this}return e=_.getElementById(d[2]),e&&(this[0]=e,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):ma.isFunction(a)?void 0!==c.ready?c.ready(a):a(ma):ma.makeArray(a,this)};za.prototype=ma.fn,xa=ma(_);var Aa=/^(?:parents|prev(?:Until|All))/,Ba={children:!0,contents:!0,next:!0,prev:!0};ma.fn.extend({has:function(a){var b=ma(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(ma.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&ma(a);if(!ua.test(a))for(;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&ma.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?ma.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?ea.call(ma(a),this[0]):ea.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(ma.uniqueSort(ma.merge(this.get(),ma(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),ma.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return sa(a,"parentNode")},parentsUntil:function(a,b,c){return sa(a,"parentNode",c)},next:function(a){return f(a,"nextSibling")},prev:function(a){return f(a,"previousSibling")},nextAll:function(a){return sa(a,"nextSibling")},prevAll:function(a){return sa(a,"previousSibling")},nextUntil:function(a,b,c){return sa(a,"nextSibling",c)},prevUntil:function(a,b,c){return sa(a,"previousSibling",c)},siblings:function(a){return ta((a.parentNode||{}).firstChild,a)},children:function(a){return ta(a.firstChild)},contents:function(a){return a.contentDocument||ma.merge([],a.childNodes)}},function(a,b){ma.fn[a]=function(c,d){var e=ma.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=ma.filter(d,e)),this.length>1&&(Ba[a]||ma.uniqueSort(e),Aa.test(a)&&e.reverse()),this.pushStack(e)}});var Ca=/\S+/g;ma.Callbacks=function(a){a="string"==typeof a?g(a):ma.extend({},a);var b,c,d,e,f=[],h=[],i=-1,j=function(){for(e=a.once,d=b=!0;h.length;i=-1)for(c=h.shift();++i<f.length;)f[i].apply(c[0],c[1])===!1&&a.stopOnFalse&&(i=f.length,c=!1);a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},k={add:function(){return f&&(c&&!b&&(i=f.length-1,h.push(c)),function d(b){ma.each(b,function(b,c){ma.isFunction(c)?a.unique&&k.has(c)||f.push(c):c&&c.length&&"string"!==ma.type(c)&&d(c)})}(arguments),c&&!b&&j()),this},remove:function(){return ma.each(arguments,function(a,b){for(var c;(c=ma.inArray(b,f,c))>-1;)f.splice(c,1),i>=c&&i--}),this},has:function(a){return a?ma.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=h=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=h=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],h.push(c),b||j()),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},ma.extend({Deferred:function(b){var c=[["notify","progress",ma.Callbacks("memory"),ma.Callbacks("memory"),2],["resolve","done",ma.Callbacks("once memory"),ma.Callbacks("once memory"),0,"resolved"],["reject","fail",ma.Callbacks("once memory"),ma.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return ma.Deferred(function(b){ma.each(c,function(c,d){var e=ma.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&ma.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){function f(b,c,d,e){return function(){var j=this,k=arguments,l=function(){var a,l;if(!(g>b)){if(a=d.apply(j,k),a===c.promise())throw new TypeError("Thenable self
2-resolution");l=a&&("object"==typeof a||"function"==typeof a)&&a.then,ma.isFunction(l)?e?l.call(a,f(g,c,h,e),f(g,c,i,e)):(g++,l.call(a,f(g,c,h,e),f(g,c,i,e),f(g,c,h,c.notifyWith))):(d!==h&&(j=void 0,k=[a]),(e||c.resolveWith)(j,k))}},m=e?l:function(){try{l()}catch(a){ma.Deferred.exceptionHook&&ma.Deferred.exceptionHook(a,m.stackTrace),b+1>=g&&(d!==i&&(j=void 0,k=[a]),c.rejectWith(j,k))}};b?m():(ma.Deferred.getStackHook&&(m.stackTrace=ma.Deferred.getStackHook()),a.setTimeout(m))}}var g=0;return ma.Deferred(function(a){c[0][3].add(f(0,a,ma.isFunction(e)?e:h,a.notifyWith)),c[1][3].add(f(0,a,ma.isFunction(b)?b:h)),c[2][3].add(f(0,a,ma.isFunction(d)?d:i))}).promise()},promise:function(a){return null!=a?ma.extend(a,e):e}},f={};return ma.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=ba.call(arguments),f=ma.Deferred(),g=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?ba.call(arguments):c,--b||f.resolveWith(d,e)}};if(1>=b&&(j(a,f.done(g(c)).resolve,f.reject),"pending"===f.state()||ma.isFunction(e[c]&&e[c].then)))return f.then();for(;c--;)j(e[c],g(c),f.reject);return f.promise()}});var Da=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ma.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Da.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},ma.readyException=function(b){a.setTimeout(function(){throw b})};var Ea=ma.Deferred();ma.fn.ready=function(a){return Ea.then(a)["catch"](function(a){ma.readyException(a)}),this},ma.extend({isReady:!1,readyWait:1,holdReady:function(a){a?ma.readyWait++:ma.ready(!0)},ready:function(a){(a===!0?--ma.readyWait:ma.isReady)||(ma.isReady=!0,a!==!0&&--ma.readyWait>0||Ea.resolveWith(_,[ma]))}}),ma.ready.then=Ea.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?a.setTimeout(ma.ready):(_.addEventListener("DOMContentLoaded",k),a.addEventListener("load",k));var Fa=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===ma.type(c)){e=!0;for(h in c)Fa(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,ma.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(ma(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Ga=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};l.uid=1,l.prototype={cache:function(a){var b=a[this.expando];return b||(b={},Ga(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[ma.camelCase(b)]=c;else for(d in b)e[ma.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][ma.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){ma.isArray(b)?b=b.map(ma.camelCase):(b=ma.camelCase(b),b=b in d?[b]:b.match(Ca)||[]),c=b.length;for(;c--;)delete d[b[c]]}(void 0===b||ma.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!ma.isEmptyObject(b)}};var Ha=new l,Ia=new l,Ja=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ka=/[A-Z]/g;ma.extend({hasData:function(a){return Ia.hasData(a)||Ha.hasData(a)},data:function(a,b,c){return Ia.access(a,b,c)},removeData:function(a,b){Ia.remove(a,b)},_data:function(a,b,c){return Ha.access(a,b,c)},_removeData:function(a,b){Ha.remove(a,b)}}),ma.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=Ia.get(f),1===f.nodeType&&!Ha.get(f,"hasDataAttrs"))){for(c=g.length;c--;)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=ma.camelCase(d.slice(5)),m(f,d,e[d])));Ha.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){Ia.set(this,a)}):Fa(this,function(b){var c;if(f&&void 0===b){if(c=Ia.get(f,a),void 0!==c)return c;if(c=m(f,a),void 0!==c)return c}else this.each(function(){Ia.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){Ia.remove(this,a)})}}),ma.extend({queue:function(a,b,c){var d;
vendor: 15,614 bytes, line 2
2return a?(b=(b||"fx")+"queue",d=Ha.get(a,b),c&&(!d||ma.isArray(c)?d=Ha.access(a,b,ma.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=ma.queue(a,b),d=c.length,e=c.shift(),f=ma._queueHooks(a,b),g=function(){ma.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return Ha.get(a,c)||Ha.access(a,c,{empty:ma.Callbacks("once memory").add(function(){Ha.remove(a,[b+"queue",c])})})}}),ma.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?ma.queue(this[0],a):void 0===b?this:this.each(function(){var c=ma.queue(this,a,b);ma._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&ma.dequeue(this,a)})},dequeue:function(a){return this.each(function(){ma.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=ma.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};for("string"!=typeof a&&(b=a,a=void 0),a=a||"fx";g--;)c=Ha.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var La=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ma=new RegExp("^(?:([+-])=|)("+La+")([a-z%]*)$","i"),Na=["Top","Right","Bottom","Left"],Oa=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&ma.contains(a.ownerDocument,a)&&"none"===ma.css(a,"display")},Pa=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Qa={};ma.fn.extend({show:function(){return p(this,!0)},hide:function(){return p(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){Oa(this)?ma(this).show():ma(this).hide()})}});var Ra=/^(?:checkbox|radio)$/i,Sa=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Ta=/^$|\/(?:java|ecma)script/i,Ua={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ua.optgroup=Ua.option,Ua.tbody=Ua.tfoot=Ua.colgroup=Ua.caption=Ua.thead,Ua.th=Ua.td;var Va=/<|&#?\w+;/;!function(){var a=_.createDocumentFragment(),b=a.appendChild(_.createElement("div")),c=_.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),ka.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",ka.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var Wa=_.documentElement,Xa=/^key/,Ya=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Za=/^([^.]*)(?:\.(.+)|)/;ma.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=Ha.get(a);if(q)for(c.handler&&(f=c,c=f.handler,e=f.selector),e&&ma.find.matchesSelector(Wa,e),c.guid||(c.guid=ma.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof ma&&ma.event.triggered!==b.type?ma.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(Ca)||[""],j=b.length;j--;)h=Za.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=ma.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=ma.event.special[n]||{},k=ma.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&ma.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),ma.event.global[n]=!0)},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=Ha.hasData(a)&&Ha.get(a);if(q&&(i=q.events)){for(b=(b||"").match(Ca)||[""],j=b.length;j--;)if(h=Za.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=ma.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;f--;)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||ma.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)ma.event.remove(a,n+b[j],c,d,!0);ma.isEmptyObject(i)&&Ha.remove(a,"handle events")}},dispatch:function(a){var b,c,d,e,f,g,h=ma.event.fix(a),i=new Array(arguments.length),j=(Ha.get(this,"events")||{})[h.type]||[],k=ma.event.special[h.type]||{};for(i[0]=h,b=1;b<arguments.length;b++)i[b]=arguments[b];if(h.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,h)!==!1){for(g=ma.event.handlers.call(this,h,j),b=0;(e=g[b++])&&!h.isPropagationStopped();)for(h.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!h.isImmediatePropagationStopped();)(!h.rnamespace||h.rnamespace.test(f.namespace))&&(h.handleObj=f,h.data=f.data,d=((ma.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,i),void 0!==d&&(h.result=d)===!1&&(h.preventDefault(),h.stopPropagation()));return k.postDispatch&&k.postDispatch.call(this,h),h.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?ma(e,this).index(i)>-1:ma.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},addProp:function(a,b){Object.defineProperty(ma.Event.prototype,a,{enumerable:!0,configurable:!0,get:ma.isFunction(b)?function(){return this.originalEvent?b(this.originalEvent):void 0}:function(){return this.originalEvent?this.originalEvent[a]:void 0},set:function(b){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(a){return a[ma.expando]?a:new ma.Event(a)},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==v()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===v()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&ma.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return ma.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},ma.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},ma.Event=function(a,b){return this instanceof ma.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?t:u,this.target=a.target&&3===a.target.nodeType?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,b&&ma.extend(this,b),this.timeStamp=a&&a.timeStamp||ma.now(),void(this[ma.expando]=!0)):new ma.Event(a,b)},ma.Event.prototype={constructor:ma.Event,isDefaultPrevented:u,isPropagationStopped:u,isImmediatePropagationStopped:u,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=t,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=t,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=t,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},ma.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;return null==a.which&&Xa.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&Ya.test(a.type)?1&b?1:2&b?3:4&b?2:0:a.which}},ma.event.addProp),ma.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){ma.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!ma.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),ma.fn.extend({on:function(a,b,c,d){return w(this,a,b,c,d)},one:function(a,b,c,d){return w(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,ma(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=u),this.each(function(){ma.event.remove(this,a,c,b)})}});var $a=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,_a=/<script|<style|<link/i,ab=/checked\s*(?:[^=]|=\s*.checked.)/i,bb=/^true\/(.*)/,cb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ma.extend({htmlPrefilter:function(a){return a.replace($a,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=ma.contains(a.ownerDocument,a);if(!(ka.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||ma.isXMLDoc(a)))for(g=q(h),f=q(a),d=0,e=f.length;e>d;d++)B(f[d],g[d]);if(b)if(c)for(f=f||q(a),g=g||q(h),d=0,e=f.length;e>d;d++)A(f[d],g[d]);else A(a,h);return g=q(h,"script"),g.length>0&&r(g,!i&&q(a,"script")),h},cleanData:function(a){for(var b,c,d,e=ma.event.special,f=0;void 0!==(c=a[f]);f++)if(Ga(c)){if(b=c[Ha.expando]){if(b.events)for(d in b.events)e[d]?ma.event.remove(c,d):ma.removeEvent(c,d,b.handle);c[Ha.expando]=void 0}c[Ia.expando]&&(c[Ia.expando]=void 0)}}}),ma.fn.extend({detach:function(a){return D(this,a,!0)},remove:function(a){return D(this,a)},text:function(a){return Fa(this,function(a){return void 0===a?ma.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return C(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=x(this,a);b.appendChild(a)}})},prepend:function(){return C(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=x(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return C(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return C(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(ma.cleanData(q(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return ma.clone(this,a,b)})},html:function(a){return Fa(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!_a.test(a)&&!Ua[(Sa.exec(a)||["",""])[1].toLowerCase()]){a=ma.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(ma.cleanData(q(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return C(this,arguments,function(b){var c=this.parentNode;ma.inArray(this,a)<0&&(ma.cleanData(q(this)),c&&c.replaceChild(b,this))},a)}}),ma.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){ma.fn[a]=function(a){for(var c,d=[],e=ma(a),f=e.length-1,g=0;f>=g;g++)c=g===f?this:this.clone(!0),ma(e[g])[b](c),da.apply(d,c.get());return this.pushStack(d)}});var db=/^margin/,eb=new RegExp("^("+La+")(?!px)[a-z%]+$","i"),fb=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)};!function(){function b(){if(h){h.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",Wa.appendChild(g);var b=a.getComputedStyle(h);c="1%"!==b.top,f="2px"===b.marginLeft,d="4px"===b.width,h.style.marginRight="50%",e="4px"===b.marginRight,Wa.removeChild(g),h=null}}var c,d,e,f,g=_.createElement("div"),h=_.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",ka.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h),ma.extend(ka,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return b(),d},pixelMarginRight:function(){return b(),e},reliableMarginLeft:function(){return b(),f}}))}();var gb=/^(none|table(?!-c[ea]).+)/,hb={position:"absolute",visibility:"hidden",display:"block"},ib={letterSpacing:"0",fontWeight:"400"},jb=["Webkit","Moz","ms"],kb=_.createElement("div").style;ma.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=E(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=ma.camelCase(b),i=a.style;return b=ma.cssProps[h]||(ma.cssProps[h]=G(h)||h),g=ma.cssHooks[b]||ma.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Ma.exec(c))&&e[1]&&(c=n(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(ma.cssNumber[h]?"":"px")),ka.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=ma.camelCase(b);return b=ma.cssProps[h]||(ma.cssProps[h]=G(h)||h),g=ma.cssHooks[b]||ma.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=E(a,b,d)),"normal"===e&&b in ib&&(e=ib[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),ma.each(["height","width"],function(a,b){ma.cssHooks[b]={get:function(a,c,d){return c?!gb.test(ma.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?J(a,b,d):Pa(a,hb,function(){return J(a,b,d)}):void 0},set:function(a,c,d){var e,f=d&&fb(a),g=d&&I(a,b,d,"border-box"===ma.css(a,"boxSizing",!1,f),f);return g&&(e=Ma.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=ma.css(a,b)),H(a,c,g)}}}),ma.cssHooks.marginLeft=F(ka.reliableMarginLeft,function(a,b){return b?(parseFloat(E(a,"marginLeft"))||a.getBoundingClientRect().left-Pa(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),ma.each({margin:"",padding:"",border:"Width"},function(a,b){ma.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+Na[d]+b]=f[d]||f[d-2]||f[0];return e}},db.test(a)||(ma.cssHooks[a+b].set=H)}),ma.fn.extend({css:function(a,b){return Fa(this,function(a,b,c){var d,e,f={},g=0;if(ma.isArray(b)){for(d=fb(a),e=b.length;e>g;g++)f[b[g]]=ma.css(a,b[g],!1,d);return f}return void 0!==c?ma.style(a,b,c):ma.css(a,b)},a,b,arguments.length>1)}}),ma.Tween=K,K.prototype={constructor:K,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||ma.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(ma.
vendor: 10,312 bytes, lines 2-3
2cssNumber[c]?"":"px")},cur:function(){var a=K.propHooks[this.prop];return a&&a.get?a.get(this):K.propHooks._default.get(this)},run:function(a){var b,c=K.propHooks[this.prop];return this.pos=b=this.options.duration?ma.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):K.propHooks._default.set(this),this}},K.prototype.init.prototype=K.prototype,K.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=ma.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){ma.fx.step[a.prop]?ma.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[ma.cssProps[a.prop]]&&!ma.cssHooks[a.prop]?a.elem[a.prop]=a.now:ma.style(a.elem,a.prop,a.now+a.unit)}}},K.propHooks.scrollTop=K.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},ma.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},ma.fx=K.prototype.init,ma.fx.step={};var lb,mb,nb=/^(?:toggle|show|hide)$/,ob=/queueHooks$/;ma.Animation=ma.extend(R,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return n(c.elem,a,Ma.exec(b),c),c}]},tweener:function(a,b){ma.isFunction(a)?(b=a,a=["*"]):a=a.match(Ca);for(var c,d=0,e=a.length;e>d;d++)c=a[d],R.tweeners[c]=R.tweeners[c]||[],R.tweeners[c].unshift(b)},prefilters:[P],prefilter:function(a,b){b?R.prefilters.unshift(a):R.prefilters.push(a)}}),ma.speed=function(a,b,c){var d=a&&"object"==typeof a?ma.extend({},a):{complete:c||!c&&b||ma.isFunction(a)&&a,duration:a,easing:c&&b||b&&!ma.isFunction(b)&&b};return d.duration=ma.fx.off||_.hidden?0:"number"==typeof d.duration?d.duration:d.duration in ma.fx.speeds?ma.fx.speeds[d.duration]:ma.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){ma.isFunction(d.old)&&d.old.call(this),d.queue&&ma.dequeue(this,d.queue)},d},ma.fn.extend({fadeTo:function(a,b,c,d){return this.filter(Oa).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=ma.isEmptyObject(a),f=ma.speed(b,c,d),g=function(){var b=R(this,ma.extend({},a),f);(e||Ha.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=ma.timers,g=Ha.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&ob.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&ma.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=Ha.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=ma.timers,g=d?d.length:0;for(c.finish=!0,ma.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0), 3b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),ma.each(["toggle","show","hide"],function(a,b){var c=ma.fn[b];ma.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(N(b,!0),a,d,e)}}),ma.each({slideDown:N("show"),slideUp:N("hide"),slideToggle:N("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){ma.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),ma.timers=[],ma.fx.tick=function(){var a,b=0,c=ma.timers;for(lb=ma.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||ma.fx.stop(),lb=void 0},ma.fx.timer=function(a){ma.timers.push(a),a()?ma.fx.start():ma.timers.pop()},ma.fx.interval=13,ma.fx.start=function(){mb||(mb=a.requestAnimationFrame?a.requestAnimationFrame(L):a.setInterval(ma.fx.tick,ma.fx.interval))},ma.fx.stop=function(){a.cancelAnimationFrame?a.cancelAnimationFrame(mb):a.clearInterval(mb),mb=null},ma.fx.speeds={slow:600,fast:200,_default:400},ma.fn.delay=function(b,c){return b=ma.fx?ma.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=_.createElement("input"),b=_.createElement("select"),c=b.appendChild(_.createElement("option"));a.type="checkbox",ka.checkOn=""!==a.value,ka.optSelected=c.selected,a=_.createElement("input"),a.value="t",a.type="radio",ka.radioValue="t"===a.value}();var pb,qb=ma.expr.attrHandle;ma.fn.extend({attr:function(a,b){return Fa(this,ma.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){ma.removeAttr(this,a)})}}),ma.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?ma.prop(a,b,c):(1===f&&ma.isXMLDoc(a)||(e=ma.attrHooks[b.toLowerCase()]||(ma.expr.match.bool.test(b)?pb:void 0)),void 0!==c?null===c?void ma.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=ma.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!ka.radioValue&&"radio"===b&&ma.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(Ca);if(e&&1===a.nodeType)for(;c=e[d++];)a.removeAttribute(c)}}),pb={set:function(a,b,c){return b===!1?ma.removeAttr(a,c):a.setAttribute(c,c),c}},ma.each(ma.expr.match.bool.source.match(/\w+/g),function(a,b){var c=qb[b]||ma.find.attr;qb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=qb[g],qb[g]=e,e=null!=c(a,b,d)?g:null,qb[g]=f),e}});var rb=/^(?:input|select|textarea|button)$/i,sb=/^(?:a|area)$/i;ma.fn.extend({prop:function(a,b){return Fa(this,ma.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[ma.propFix[a]||a]})}}),ma.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&ma.isXMLDoc(a)||(b=ma.propFix[b]||b,e=ma.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=ma.find.attr(a,"tabindex");return b?parseInt(b,10):rb.test(a.nodeName)||sb.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ka.optSelected||(ma.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),ma.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ma.propFix[this.toLowerCase()]=this});var tb=/[\t\r\n\f]/g;ma.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(ma.isFunction(a))return this.each(function(b){ma(this).addClass(a.call(this,b,S(this)))});if("string"==typeof a&&a)for(b=a.match(Ca)||[];c=this[i++];)if(e=S(c),d=1===c.nodeType&&(" "+e+" ").replace(tb," ")){for(g=0;f=b[g++];)d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=ma.trim(d),e!==h&&c.setAttribute("class",h)}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(ma.isFunction(a))return this.each(function(b){ma(this).removeClass(a.call(this,b,S(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a)for(b=a.match(Ca)||[];c=this[i++];)if(e=S(c),d=1===c.nodeType&&(" "+e+" ").replace(tb," ")){for(g=0;f=b[g++];)for(;d.indexOf(" "+f+" ")>-1;)d=d.replace(" "+f+" "," ");h=ma.trim(d),e!==h&&c.setAttribute("class",h)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(ma.isFunction(a)?function(c){ma(this).toggleClass(a.call(this,c,S(this),b),b)}:function(){var b,d,e,f;if("string"===c)for(d=0,e=ma(this),f=a.match(Ca)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else(void 0===a||"boolean"===c)&&(b=S(this),b&&Ha.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":Ha.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;for(b=" "+a+" ";c=this[d++];)if(1===c.nodeType&&(" "+S(c)+" ").replace(tb," ").indexOf(b)>-1)return!0;return!1}});var ub=/\r/g,vb=/[\x20\t\r\n\f]+/g;ma.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=ma.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,ma(this).val()):a,null==e?e="":"number"==typeof e?e+="":ma.isArray(e)&&(e=ma.map(e,function(a){return null==a?"":a+""})),b=ma.valHooks[this.type]||ma.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=ma.valHooks[e.type]||ma.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(ub,""):null==c?"":c)}}}),ma.extend({valHooks:{option:{get:function(a){var b=ma.find.attr(a,"value");return null!=b?b:ma.trim(ma.text(a)).replace(vb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||c.disabled||c.parentNode.disabled&&ma.nodeName(c.parentNode,"optgroup"))){if(b=ma(c).val(),f)return b;g.push(b)}return g},set:function(a,b){for(var c,d,e=a.options,f=ma.makeArray(b),g=e.length;g--;)d=e[g],(d.selected=ma.inArray(ma.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),ma.each(["radio","checkbox"],function(){ma.valHooks[this]={set:function(a,b){return ma.isArray(b)?a.checked=ma.inArray(ma(a).val(),b)>-1:void 0}},ka.checkOn||(ma.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var wb=/^(?:focusinfocus|focusoutblur)$/;ma.extend(ma.event,{trigger:function(b,c,d,e){var f,g,h,i,j,k,l,m=[d||_],n=ha.call(b,"type")?b.type:b,o=ha.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||_,3!==d.nodeType&&8!==d.nodeType&&!wb.test(n+ma.event.triggered)&&(n.indexOf(".")>-1&&(o=n.split("."),n=o.shift(),o.sort()),j=n.indexOf(":")<0&&"on"+n,b=b[ma.expando]?b:new ma.Event(n,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=o.join("."),b.rnamespace=b.
vendor: 10,322 bytes, line 3
3namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:ma.makeArray(c,[b]),l=ma.event.special[n]||{},e||!l.trigger||l.trigger.apply(d,c)!==!1)){if(!e&&!l.noBubble&&!ma.isWindow(d)){for(i=l.delegateType||n,wb.test(i+n)||(g=g.parentNode);g;g=g.parentNode)m.push(g),h=g;h===(d.ownerDocument||_)&&m.push(h.defaultView||h.parentWindow||a)}for(f=0;(g=m[f++])&&!b.isPropagationStopped();)b.type=f>1?i:l.bindType||n,k=(Ha.get(g,"events")||{})[b.type]&&Ha.get(g,"handle"),k&&k.apply(g,c),k=j&&g[j],k&&k.apply&&Ga(g)&&(b.result=k.apply(g,c),b.result===!1&&b.preventDefault());return b.type=n,e||b.isDefaultPrevented()||l._default&&l._default.apply(m.pop(),c)!==!1||!Ga(d)||j&&ma.isFunction(d[n])&&!ma.isWindow(d)&&(h=d[j],h&&(d[j]=null),ma.event.triggered=n,d[n](),ma.event.triggered=void 0,h&&(d[j]=h)),b.result}},simulate:function(a,b,c){var d=ma.extend(new ma.Event,c,{type:a,isSimulated:!0});ma.event.trigger(d,null,b)}}),ma.fn.extend({trigger:function(a,b){return this.each(function(){ma.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?ma.event.trigger(a,b,c,!0):void 0}}),ma.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){ma.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),ma.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),ka.focusin="onfocusin"in a,ka.focusin||ma.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){ma.event.simulate(b,a.target,ma.event.fix(a))};ma.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=Ha.access(d,b);e||d.addEventListener(a,c,!0),Ha.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=Ha.access(d,b)-1;e?Ha.access(d,b,e):(d.removeEventListener(a,c,!0),Ha.remove(d,b))}}});var xb=a.location,yb=ma.now(),zb=/\?/;ma.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return(!c||c.getElementsByTagName("parsererror").length)&&ma.error("Invalid XML: "+b),c};var Ab=/\[\]$/,Bb=/\r?\n/g,Cb=/^(?:submit|button|image|reset|file)$/i,Db=/^(?:input|select|textarea|keygen)/i;ma.param=function(a,b){var c,d=[],e=function(a,b){var c=ma.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(ma.isArray(a)||a.jquery&&!ma.isPlainObject(a))ma.each(a,function(){e(this.name,this.value)});else for(c in a)T(c,a[c],b,e);return d.join("&")},ma.fn.extend({serialize:function(){return ma.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=ma.prop(this,"elements");return a?ma.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!ma(this).is(":disabled")&&Db.test(this.nodeName)&&!Cb.test(a)&&(this.checked||!Ra.test(a))}).map(function(a,b){var c=ma(this).val();return null==c?null:ma.isArray(c)?ma.map(c,function(a){return{name:b.name,value:a.replace(Bb,"\r\n")}}):{name:b.name,value:c.replace(Bb,"\r\n")}}).get()}});var Eb=/%20/g,Fb=/#.*$/,Gb=/([?&])_=[^&]*/,Hb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ib=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Jb=/^(?:GET|HEAD)$/,Kb=/^\/\//,Lb={},Mb={},Nb="*/".concat("*"),Ob=_.createElement("a");Ob.href=xb.href,ma.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xb.href,type:"GET",isLocal:Ib.test(xb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ma.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?W(W(a,ma.ajaxSettings),b):W(ma.ajaxSettings,a)},ajaxPrefilter:U(Lb),ajaxTransport:U(Mb),ajax:function(b,c){function d(b,c,d,h){var j,m,n,u,v,w=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",x.readyState=b>0?4:0,j=b>=200&&300>b||304===b,d&&(u=X(o,x,d)),u=Y(o,u,x,j),j?(o.ifModified&&(v=x.getResponseHeader("Last-Modified"),v&&(ma.lastModified[f]=v),v=x.getResponseHeader("etag"),v&&(ma.etag[f]=v)),204===b||"HEAD"===o.type?w="nocontent":304===b?w="notmodified":(w=u.state,m=u.data,n=u.error,j=!n)):(n=w,(b||!w)&&(w="error",0>b&&(b=0))),x.status=b,x.statusText=(c||w)+"",j?r.resolveWith(p,[m,w,x]):r.rejectWith(p,[x,w,n]),x.statusCode(t),t=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[x,o,j?m:n]),s.fireWith(p,[x,w]),l&&(q.trigger("ajaxComplete",[x,o]),--ma.active||ma.event.trigger("ajaxStop")))}"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=ma.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?ma(p):ma.event,r=ma.Deferred(),s=ma.Callbacks("once memory"),t=o.statusCode||{},u={},v={},w="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h)for(h={};b=Hb.exec(g);)h[b[1].toLowerCase()]=b[2];b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=v[a.toLowerCase()]=v[a.toLowerCase()]||a,u[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)x.always(a[x.status]);else for(b in a)t[b]=[t[b],a[b]];return this},abort:function(a){var b=a||w;return e&&e.abort(b),d(0,b),this}};if(r.promise(x),o.url=((b||o.url||xb.href)+"").replace(Kb,xb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(Ca)||[""],null==o.crossDomain){j=_.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Ob.protocol+"//"+Ob.host!=j.protocol+"//"+j.host}catch(y){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=ma.param(o.data,o.traditional)),V(Lb,o,c,x),k)return x;l=ma.event&&o.global,l&&0===ma.active++&&ma.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Jb.test(o.type),f=o.url.replace(Fb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(Eb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(zb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Gb,""),n=(zb.test(f)?"&":"?")+"_="+yb++ +n),o.url=f+n),o.ifModified&&(ma.lastModified[f]&&x.setRequestHeader("If-Modified-Since",ma.lastModified[f]),ma.etag[f]&&x.setRequestHeader("If-None-Match",ma.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",o.contentType),x.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Nb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)x.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,x,o)===!1||k))return x.abort();if(w="abort",s.add(o.complete),x.done(o.success),x.fail(o.error),e=V(Mb,o,c,x)){if(x.readyState=1,l&&q.trigger("ajaxSend",[x,o]),k)return x;o.async&&o.timeout>0&&(i=a.setTimeout(function(){x.abort("timeout")},o.timeout));try{k=!1,e.send(u,d)}catch(y){if(k)throw y;d(-1,y)}}else d(-1,"No Transport");return x},getJSON:function(a,b,c){return ma.get(a,b,c,"json")},getScript:function(a,b){return ma.get(a,void 0,b,"script")}}),ma.each(["get","post"],function(a,b){ma[b]=function(a,c,d,e){return ma.isFunction(c)&&(e=e||d,d=c,c=void 0),ma.ajax(ma.extend({url:a,type:b,dataType:e,data:c,success:d},ma.isPlainObject(a)&&a))}}),ma._evalUrl=function(a){return ma.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},ma.fn.extend({wrapAll:function(a){var b;return this[0]&&(ma.isFunction(a)&&(a=a.call(this[0])),b=ma(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return this.each(ma.isFunction(a)?function(b){ma(this).wrapInner(a.call(this,b))}:function(){var b=ma(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=ma.isFunction(a);return this.each(function(c){ma(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){ma(this).replaceWith(this.childNodes)}),this}}),ma.expr.pseudos.hidden=function(a){return!ma.expr.pseudos.visible(a)},ma.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},ma.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Pb={0:200,1223:204},Qb=ma.ajaxSettings.xhr();ka.cors=!!Qb&&"withCredentials"in Qb,ka.ajax=Qb=!!Qb,ma.ajaxTransport(function(b){var c,d;return ka.cors||Qb&&!b.crossDomain?{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Pb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}:void 0}),ma.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),ma.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return ma.globalEval(a),a}}}),ma.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}
vendor: 5,917 bytes, line 3
3),ma.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=ma("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),_.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Rb=[],Sb=/(=)\?(?=&|$)|\?\?/;ma.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Rb.pop()||ma.expando+"_"+yb++;return this[a]=!0,a}}),ma.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Sb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Sb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=ma.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Sb,"$1"+e):b.jsonp!==!1&&(b.url+=(zb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||ma.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?ma(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Rb.push(e)),g&&ma.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),ka.createHTMLDocument=function(){var a=_.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",2===a.childNodes.length}(),ma.parseHTML=function(a,b,c){if("string"!=typeof a)return[];"boolean"==typeof b&&(c=b,b=!1);var d,e,f;return b||(ka.createHTMLDocument?(b=_.implementation.createHTMLDocument(""),d=b.createElement("base"),d.href=_.location.href,b.head.appendChild(d)):b=_),e=va.exec(a),f=!c&&[],e?[b.createElement(e[1])]:(e=s([a],b,f),f&&f.length&&ma(f).remove(),ma.merge([],e.childNodes))},ma.fn.load=function(a,b,c){var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=ma.trim(a.slice(h)),a=a.slice(0,h)),ma.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&ma.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?ma("<div>").append(ma.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},ma.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){ma.fn[b]=function(a){return this.on(b,a)}}),ma.expr.pseudos.animated=function(a){return ma.grep(ma.timers,function(b){return a===b.elem}).length},ma.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=ma.css(a,"position"),l=ma(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=ma.css(a,"top"),i=ma.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),ma.isFunction(b)&&(b=b.call(a,c,ma.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},ma.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){ma.offset.setOffset(this,a,b)});var b,c,d,e,f=this[0];if(f)return f.getClientRects().length?(d=f.getBoundingClientRect(),d.width||d.height?(e=f.ownerDocument,c=Z(e),b=e.documentElement,{top:d.top+c.pageYOffset-b.clientTop,left:d.left+c.pageXOffset-b.clientLeft}):d):{top:0,left:0}},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===ma.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),ma.nodeName(a[0],"html")||(d=a.offset()),d={top:d.top+ma.css(a[0],"borderTopWidth",!0),left:d.left+ma.css(a[0],"borderLeftWidth",!0)}),{top:b.top-d.top-ma.css(c,"marginTop",!0),left:b.left-d.left-ma.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&"static"===ma.css(a,"position");)a=a.offsetParent;return a||Wa})}}),ma.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;ma.fn[a]=function(d){return Fa(this,function(a,d,e){var f=Z(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),ma.each(["top","left"],function(a,b){ma.cssHooks[b]=F(ka.pixelPosition,function(a,c){return c?(c=E(a,b),eb.test(c)?ma(a).position()[b]+"px":c):void 0})}),ma.each({Height:"height",Width:"width"},function(a,b){ma.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){ma.fn[d]=function(e,f){var g=arguments.length&&(c||"boolean"!=typeof e),h=c||(e===!0||f===!0?"margin":"border");return Fa(this,function(b,c,e){var f;return ma.isWindow(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):void 0===e?ma.css(b,c,h):ma.style(b,c,e,h)},b,g?e:void 0,g)}})}),ma.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),ma.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ma});var Tb=a.jQuery,Ub=a.$;return ma.noConflict=function(b){return a.$===ma&&(a.$=Ub),b&&a.jQuery===ma&&(a.jQuery=Tb),ma},b||(a.jQuery=a.$=ma),ma});var saveAs=saveAs||function(a){"use strict";if(!("undefined"==typeof a||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var b=a.document,c=function(){return a.URL||a.webkitURL||a},d=b.createElementNS("http://www.w3.org/1999/xhtml","a"),e="download"in d,f=function(a){var b=new MouseEvent("click");a.dispatchEvent(b)},g=/constructor/i.test(a.HTMLElement),h=/CriOS\/[\d]+/.test(navigator.userAgent),i=function(b){(a.setImmediate||a.setTimeout)(function(){throw b},0)},j="application/octet-stream",k=4e4,l=function(a){var b=function(){"string"==typeof a?c().revokeObjectURL(a):a.remove()};setTimeout(b,k)}
3,m=function(a,b,c){b=[].concat(b);for(var d=b.length;d--;){var e=a["on"+b[d]];if("function"==typeof e)try{e.call(a,c||a)}catch(f){i(f)}}},n=function(a){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob([String.fromCharCode(65279),a],{type:a.type}):a},o=function(b,i,k){k||(b=n(b));var o,p=this,q=b.type,r=q===j,s=function(){m(p,"writestart progress write writeend".split(" "))},t=function(){if((h||r&&g)&&a.FileReader){var d=new FileReader;return d.onloadend=function(){var b=h?d.result:d.result.replace(/^data:[^;]*;/,"data:attachment/file;"),c=a.open(b,"_blank");c||(a.location.href=b),b=void 0,p.readyState=p.DONE,s()},d.readAsDataURL(b),void(p.readyState=p.INIT)}if(o||(o=c().createObjectURL(b)),r)a.location.href=o;else{var e=a.open(o,"_blank");e||(a.location.href=o)}p.readyState=p.DONE,s(),l(o)};return p.readyState=p.INIT,e?(o=c().createObjectURL(b),void setTimeout(function(){d.href=o,d.download=i,f(d),s(),l(o),p.readyState=p.DONE})):void t()},p=o.prototype,q=function(a,b,c){return new o(a,b||a.name||"download",c)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(a,b,c){return b=b||a.name||"download",c||(a=n(a)),navigator.msSaveOrOpenBlob(a,b)}:(p.abort=function(){},p.readyState=p.INIT=0,p.WRITING=1,p.DONE=2,p.error=p.onwritestart=p.onprogress=p.onwrite=p.onabort=p.onerror=p.onwriteend=null,q)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!=typeof define&&null!==define&&null!==define.amd&&define([],function(){return saveAs}),!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.JSZip=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";c.encode=function(a){for(var b,c,e,f,g,h,i,j="",k=0;k<a.length;)b=a.charCodeAt(k++),c=a.charCodeAt(k++),e=a.charCodeAt(k++),f=b>>2,g=(3&b)<<4|c>>4,h=(15&c)<<2|e>>6,i=63&e,isNaN(c)?h=i=64:isNaN(e)&&(i=64),j=j+d.charAt(f)+d.charAt(g)+d.charAt(h)+d.charAt(i);return j},c.decode=function(a){var b,c,e,f,g,h,i,j="",k=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");k<a.length;)f=d.indexOf(a.charAt(k++)),g=d.indexOf(a.charAt(k++)),h=d.indexOf(a.charAt(k++)),i=d.indexOf(a.charAt(k++)),b=f<<2|g>>4,c=(15&g)<<4|h>>2,e=(3&h)<<6|i,j+=String.fromCharCode(b),64!=h&&(j+=String.fromCharCode(c)),64!=i&&(j+=String.fromCharCode(e));return j}},{}],2:[function(a,b){"use strict";function c(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}c.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},b.exports=c},{}],3:[function(a,b,c){"use strict";c.STORE={magic:"\x00\x00",compress:function(a){return a},uncompress:function(a){return a},compressInputType:null,uncompressInputType:null},c.DEFLATE=a("./flate")},{"./flate":8}],4:[function(a,b){"use strict";var c=a("./utils"),d=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,39
304427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];b.exports=function(a,b){if("undefined"==typeof a||!a.length)return 0;var e="string"!==c.getTypeOf(a);"undefined"==typeof b&&(b=0);var f=0,g=0,h=0;b=-1^b;for(var i=0,j=a.length;j>i;i++)h=e?a[i]:a.charCodeAt(i),g=255&(b^h),f=d[g],b=b>>>8^f;return-1^b}},{"./utils":21}],5:[function(a,b){"use strict";function c(){this.data=null,this.length=0,this.index=0}var d=a("./utils");c.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<a||0>a)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var b,c=0;for(this.checkOffset(a),b=this.index+a-1;b>=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return d.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1)}},b.exports=c},{"./utils":21}],6:[function(a,b,c){"use strict";c.base64=!1,c.binary=!1,c.dir=!1,c.createFolders=!1,c.date=null,c.compression=null,c.compressionOptions=null,c.comment=null,c.unixPermissions=null,c.dosPermissions=null},{}],7:[function(a,b,c){"use strict";var d=a("./utils");c.string2binary=function(a){return d.string2binary(a)},c.string2Uint8Array=function(a){return d.transformTo("uint8array",a)},c.uint8Array2String=function(a){return d.transformTo("string",a)},c.string2Blob=function(a){var b=d.transformTo("arraybuffer",a);return d.arrayBuffer2Blob(b)},c.arrayBuffer2Blob=function(a){return d.arrayBuffer2Blob(a)},c.transformTo=function(a,b){return d.transformTo(a,b)},c.getTypeOf=function(a){return d.getTypeOf(a)},c.checkSupport=function(a){return d.checkSupport(a)},c.MAX_VALUE_16BITS=d.MAX_VALUE_16BITS,c.MAX_VALUE_32BITS=d.MAX_VALUE_32BITS,c.pretty=function(a){return d.pretty(a)},c.findCompression=function(a){return d.findCompression(a)},c.isRegExp=function(a){return d.isRegExp(a)}},{"./utils":21}],8:[function(a,b,c){"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,e=a("pako"); 4 5c.uncompressInputType=d?"uint8array":"array",c.compressInputType=d?"uint8array":"array",c.magic="\b\x00",c.compress=function(a,b){return e.deflateRaw(a,{level:b.level||-1})},c.uncompress=function(a){return e.inflateRaw(a)}},{pako:24}],9:[function(a,b){"use strict";function c(a,b){return this instanceof c?(this.files={},this.comment=null,this.root="",a&&this.load(a,b),void(this.clone=function(){var a=new c;for(var b in this)"function"!=typeof this[b]&&(a[b]=this[b]);return a})):new c(a,b)}var d=a("./base64");c.prototype=a("./object"),c.prototype.load=a("./load"),c.support=a("./support"),c.defaults=a("./defaults"),c.utils=a("./deprecatedPublicUtils"),c.base64={encode:function(a){return d.encode(a)},decode:function(a){return d.decode(a)}},c.compressions=a("./compressions"),b.exports=c},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(a,b){"use strict";var c=a("./base64"),d=a("./zipEntries");b.exports=function(a,b){var e,f,g,h;for(b=b||{},b.base64&&(a=c.decode(a)),f=new d(a,b),e=f.files,g=0;g<e.length;g++)h=e[g],this.file(h.fileName,h.decompressed,{binary:!0,optimizedBinaryString:!0,date:h.date,dir:h.dir,comment:h.fileComment.length?h.fileComment:null,unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions,createFolders:b.createFolders});return f.zipComment.length&&(this.comment=f.zipComment),this}},{"./base64":1,"./zipEntries":22}],11:[function(a,b){(function(a){"use strict";b.exports=function(b,c){return new a(b,c)}
5,b.exports.test=function(b){return a.isBuffer(b)}}).call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],12:[function(a,b){"use strict";function c(a){this.data=a,this.length=this.data.length,this.index=0}var d=a("./uint8ArrayReader");c.prototype=new d,c.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.index,this.index+a);return this.index+=a,b},b.exports=c},{"./uint8ArrayReader":18}],13:[function(a,b){"use strict";var c=a("./support"),d=a("./utils"),e=a("./crc32"),f=a("./signature"),g=a("./defaults"),h=a("./base64"),i=a("./compressions"),j=a("./compressedObject"),k=a("./nodeBuffer"),l=a("./utf8"),m=a("./stringWriter"),n=a("./uint8ArrayWriter"),o=function(a){if(a._data instanceof j&&(a._data=a._data.getContent(),a.options.binary=!0,a.options.base64=!1,"uint8array"===d.getTypeOf(a._data))){var b=a._data;a._data=new Uint8Array(b.length),0!==b.length&&a._data.set(b,0)}return a._data},p=function(a){var b=o(a),e=d.getTypeOf(b);return"string"===e?!a.options.binary&&c.nodebuffer?k(b,"utf-8"):a.asBinary():b},q=function(a){var b=o(this);return null===b||"undefined"==typeof b?"":(this.options.base64&&(b=h.decode(b)),b=a&&this.options.binary?D.utf8decode(b):d.transformTo("string",b),a||this.options.binary||(b=d.transformTo("string",D.utf8encode(b))),b)},r=function(a,b,c){this.name=a,this.dir=c.dir,this.date=c.date,this.comment=c.comment,this.unixPermissions=c.unixPermissions,this.dosPermissions=c.dosPermissions,this._data=b,this.options=c,this._initialMetadata={dir:c.dir,date:c.date}};r.prototype={asText:function(){return q.call(this,!0)},asBinary:function(){return q.call(this,!1)},asNodeBuffer:function(){var a=p(this);return d.transformTo("nodebuffer",a)},asUint8Array:function(){var a=p(this);return d.transformTo("uint8array",a)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var s=function(a,b){var c,d="";for(c=0;b>c;c++)d+=String.fromCharCode(255&a),a>>>=8;return d},t=function(){var a,b,c={};for(a=0;a<arguments.length;a++)for(b in arguments[a])arguments[a].hasOwnProperty(b)&&"undefined"==typeof c[b]&&(c[b]=arguments[a][b]);return c},u=function(a){return a=a||{},a.base64!==!0||null!==a.binary&&void 0!==a.binary||(a.binary=!0),a=t(a,g),a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),a},v=function(a,b,c){var e,f=d.getTypeOf(b);if(c=u(c),"string"==typeof c.unixPermissions&&(c.unixPermissions=parseInt(c.unixPermissions,8)),c.unixPermissions&&16384&c.unixPermissions&&(c.dir=!0),c.dosPermissions&&16&c.dosPermissions&&(c.dir=!0),c.dir&&(a=x(a)
5),c.createFolders&&(e=w(a))&&y.call(this,e,!0),c.dir||null===b||"undefined"==typeof b)c.base64=!1,c.binary=!1,b=null,f=null;else if("string"===f)c.binary&&!c.base64&&c.optimizedBinaryString!==!0&&(b=d.string2binary(b));else{if(c.base64=!1,c.binary=!0,!(f||b instanceof j))throw new Error("The data of '"+a+"' is in an unsupported format !");"arraybuffer"===f&&(b=d.transformTo("uint8array",b))}var g=new r(a,b,c);return this.files[a]=g,g},w=function(a){"/"==a.slice(-1)&&(a=a.substring(0,a.length-1));var b=a.lastIndexOf("/");return b>0?a.substring(0,b):""},x=function(a){return"/"!=a.slice(-1)&&(a+="/"),a},y=function(a,b){return b="undefined"!=typeof b?b:!1,a=x(a),this.files[a]||v.call(this,a,null,{dir:!0,createFolders:b}),this.files[a]},z=function(a,b,c){var f,g=new j;return a._data instanceof j?(g.uncompressedSize=a._data.uncompressedSize,g.crc32=a._data.crc32,0===g.uncompressedSize||a.dir?(b=i.STORE,g.compressedContent="",g.crc32=0):a._data.compressionMethod===b.magic?g.compressedContent=a._data.getCompressedContent():(f=a._data.getContent(),g.compressedContent=b.compress(d.transformTo(b.compressInputType,f),c))):(f=p(a),(!f||0===f.length||a.dir)&&(b=i.STORE,f=""),g.uncompressedSize=f.length,g.crc32=e(f),g.compressedContent=b.compress(d.transformTo(b.compressInputType,f),c)),g.compressedSize=g.compressedContent.length,g.compressionMethod=b.magic,g},A=function(a,b){var c=a;return a||(c=b?16893:33204),(65535&c)<<16},B=function(a){return 63&(a||0)},C=function(a,b,c,g,h){var i,j,k,m,n=(c.compressedContent,d.transformTo("string",l.utf8encode(b.name))),o=b.comment||"",p=d.transformTo("string",l.utf8encode(o)),q=n.length!==b.name.length,r=p.length!==o.length,t=b.options,u="",v="",w="";k=b._initialMetadata.dir!==b.dir?b.dir:t.dir,m=b._initialMetadata.date!==b.date?b.date:t.date;var x=0,y=0;k&&(x|=16),"UNIX"===h?(y=798,x|=A(b.unixPermissions,k)):(y=20,x|=B(b.dosPermissions,k)),i=m.getHours(),i<<=6,i|=m.getMinutes(),i<<=5,i|=m.getSeconds()/2,j=m.getFullYear()-1980,j<<=4,j|=m.getMonth()+1,j<<=5,j|=m.getDate(),q&&(v=s(1,1)+s(e(n),4)+n,u+="up"+s(v.length,2)+v),r&&(w=s(1,1)+s(this.crc32(p),4)+p,u+="uc"+s(w.length,2)+w);var z="";z+="\n\x00",z+=q||r?"\x00\b":"\x00\x00",z+=c.compressionMethod,z+=s(i,2),z+=s(j,2),z+=s(c.crc32,4),z+=s(c.compressedSize,4),z+=s(c.uncompressedSize,4),z+=s(n.length,2),z+=s(u.length,2);var C=f.LOCAL_FILE_HEADER+z+n+u,D=f.CENTRAL_FILE_HEADER+s(y,2)+z+s(p.length,2)+"\x00\x00\x00\x00"+s(x,4)+s(g,4)+n+u+p;return{fileRecord:C,dirRecord:D,compressedObject:c}},D={load:function(){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(a){var b,c,d,e,f=[];for(b in this.files)this.files.hasOwnProperty(b)&&(d=this.files[b],e=new r(d.name,d._data,t(d.options)),c=b.slice(this.root.length,b.length),b.slice(0,this.root.length)===this.root&&a(c,e)&&f.push(e));return f},file:function(a,b,c){if(1===arguments.length){if(d.isRegExp(a)){var e=a;return this.filter(function(a,b){return!b.dir&&e.test(a)})}return this.filter(function(b,c){return!c.dir&&b===a})[0]||null}return a=this.root+a,v.call(this,a,b,c),this},folder:function(a){if(!a)return this;if(d.isRegExp(a))return this.filter(function(b,c){return c.dir&&a.test(b)});var b=this.root+a,c=y.call(this,b),e=this.clone();return e.root=c.name,e},remove:function(a){a=this.root+a;var b=this.files[a];if(b||("/"!=a.slice(-1)&&(a+="/"),b=this.files[a]),b&&!b.dir)delete this.files[a];else for(var c=this.filter(function(b,c){return c.name.slice(0,a.length)===a}),d=0;d<c.length;d++)delete this.files[c[d].name];return this},generate:function(a){a=t(a||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip"}),d.checkSupport(a.type),("darwin"===a.platform||"freebsd"===a.platform||"linux"===a.platform||"sunos"===a.platform)&&(a.platform="UNIX"),"win32"===a.platform&&(a.platform="DOS");var b,c,e=[],g=0,j=0,k=d.transformTo("string",this.utf8encode(a.comment||this.comment||""));for(var l in this.files)if(this.files.hasOwnProperty(l)){var o=this.files[l],p=o.options.compression||a.compression.toUpperCase(),q=i[p];if(!q)throw new Error(p+" is not a valid compression method !");var r=o.options.compressionOptions||a.compressionOptions||{},u=z.call(this,o,q,r),v=C.call(this,l,o,u,g,a.platform);g+=v.fileRecord.length+u.compressedSize,j+=v.dirRecord.length,e.push(v)}var w="";w=f.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+s(e.length,2)+s(e.length,2)+s(j,4)+s(g,4)+s(k.length,2)+k;var x=a.type.toLowerCase();for(b="uint8array"===x||"arraybuffer"===x||"blob"===x||"nodebuffer"===x?new n(g+j+w.length):new m(g+j+w.length),c=0;c<e.length;c++)b.append(e[c].fileRecord),b.append(e[c].compressedObject.compressedContent);for(c=0;c<e.length;c++)b.append(e[c].dirRecord);b.append(w);var y=b.finalize();switch(a.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return d.transformTo(a.type.toLowerCase(),y);case"blob":return d.arrayBuffer2Blob(d.transformTo("arraybuffer",y),a.mimeType);case"base64":return a.base64?h.encode(y):y;default:return y}},crc32:function(a,b){return e(a,b)},utf8encode:function(a){return d.transformTo("string",l.utf8encode(a))},utf8decode:function(a){return l.utf8decode(a)}};b.exports=D},{"./base64":1,"./compressedObject":2,"./compressions":3,"./crc32":4,"./defaults":6,"./nodeBuffer":11,"./signature":14,"./stringWriter"
5:16,"./support":17,"./uint8ArrayWriter":19,"./utf8":20,"./utils":21}],14:[function(a,b,c){"use strict";c.LOCAL_FILE_HEADER="PK��",c.CENTRAL_FILE_HEADER="PK��",c.CENTRAL_DIRECTORY_END="PK��",c.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK��",c.ZIP64_CENTRAL_DIRECTORY_END="PK��",c.DATA_DESCRIPTOR="PK�\b"},{}],15:[function(a,b){"use strict";function c(a,b){this.data=a,b||(this.data=e.string2binary(this.data)),this.length=this.data.length,this.index=0}var d=a("./dataReader"),e=a("./utils");c.prototype=new d,c.prototype.byteAt=function(a){return this.data.charCodeAt(a)},c.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)},c.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.index,this.index+a);return this.index+=a,b},b.exports=c},{"./dataReader":5,"./utils":21}],16:[function(a,b){"use strict";var c=a("./utils"),d=function(){this.data=[]};d.prototype={append:function(a){a=c.transformTo("string",a),this.data.push(a)},finalize:function(){return this.data.join("")}},b.exports=d},{"./utils":21}],17:[function(a,b,c){(function(a){"use strict";if(c.base64=!0,c.array=!0,c.string=!0,c.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,c.nodebuffer="undefined"!=typeof a,c.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)c.blob=!1;else{var b=new ArrayBuffer(0);try{c.blob=0===new Blob([b],{type:"application/zip"}).size}catch(d){try{var e=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,f=new e;f.append(b),c.blob=0===f.getBlob("application/zip").size}catch(d){c.blob=!1}}}}).call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],18:[function(a,b){"use strict";function c(a){a&&(this.data=a,this.length=this.data.length,this.index=0)}var d=a("./dataReader");c.prototype=new d,c.prototype.byteAt=function(a){return this.data[a]},c.prototype.lastIndexOfSignature=function(a){for(var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.length-4;f>=0;--f)if(this.data[f]===b&&this.data[f+1]===c&&this.data[f+2]===d&&this.data[f+3]===e)return f;return-1},c.prototype.readData=function(a){if(this.checkOffset(a),0===a)return new Uint8Array(0);var b=this.data.subarray(this.index,this.index+a);return this.index+=a,b},b.exports=c},{"./dataReader":5}],19:[function(a,b){"use strict";var c=a("./utils"),d=function(a){this.data=new Uint8Array(a),this.index=0};d.prototype={append:function(a){0!==a.length&&(a=c.transformTo("uint8array",a),this.data.set(a,this.index),this.index+=a.length)},finalize:function(){return this.data}},b.exports=d},{"./utils":21}],20:[function(a,b,c){"use strict";for(var d=a("./utils"),e=a("./support"),f=a("./nodeBuffer"),g=new Array(256),h=0;256>h;h++)g[h]=h>=252?6:h>=248?5:h>=240?4:h>=224?3:h>=192?2:1;g[254]=g[254]=1;var i=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;h>f;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),i+=128>c?1:2048>c?2:65536>c?3:4;for(b=e.uint8array?new Uint8Array(i):new Array(i),g=0,f=0;i>g;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),128>c?b[g++]=c:2048>c?(b[g++]=192|c>>>6,b[g++]=128|63&c):65536>c?(b[g++]=224|c>>>12,b[g++]=128|c>>>6&63,b[g++]=128|63&c):(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63,b[g++]=128|c>>>6&63,b[g++]=128|63&c);return b},j=function(a,b){var c;for(b=b||a.length,b>a.length&&(b=a.length),c=b-1;c>=0&&128===(192&a[c]);)c--;return 0>c?b:0===c?b:c+g[a[c]]>b?c:b},k=function(a){var b,c,e,f,h=a.length,i=new Array(2*h);for(c=0,b=0;h>b;)if(e=a[b++],128>e)i[c++]=e;else if(f=g[e],f>4)i[c++]=65533,b+=f-1;else{for(e&=2===f?31:3===f?15:7;f>1&&h>b;)e=e<<6|63&a[b++],f--;f>1?i[c++]=65533:65536>e?i[c++]=e:(e-=65536,i[c++]=55296|e>>10&1023,i[c++]=56320|1023&e)}return i.length!==c&&(i.subarray?i=i.subarray(0,c):i.length=c),d.applyFromCharCode(i)};c.utf8encode=function(a){return e.nodebuffer?f(a,"utf-8"):i(a)},c.utf8decode=function(a){if(e.nodebuffer)return d.transformTo("nodebuffer",a).toString("utf-8");a=d.transformTo(e.uint8array?"uint8array":"array",a);
vendor: 6,027 bytes, line 5
5for(var b=[],c=0,f=a.length,g=65536;f>c;){var h=j(a,Math.min(c+g,f));b.push(e.uint8array?k(a.subarray(c,h)):k(a.slice(c,h))),c=h}return b.join("")}},{"./nodeBuffer":11,"./support":17,"./utils":21}],21:[function(a,b,c){"use strict";function d(a){return a}function e(a,b){for(var c=0;c<a.length;++c)b[c]=255&a.charCodeAt(c);return b}function f(a){var b=65536,d=[],e=a.length,f=c.getTypeOf(a),g=0,h=!0;try{switch(f){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,j(0))}}catch(i){h=!1}if(!h){for(var k="",l=0;l<a.length;l++)k+=String.fromCharCode(a[l]);return k}for(;e>g&&b>1;)try{d.push("array"===f||"nodebuffer"===f?String.fromCharCode.apply(null,a.slice(g,Math.min(g+b,e))):String.fromCharCode.apply(null,a.subarray(g,Math.min(g+b,e)))),g+=b}catch(i){b=Math.floor(b/2)}return d.join("")}function g(a,b){for(var c=0;c<a.length;c++)b[c]=a[c];return b}var h=a("./support"),i=a("./compressions"),j=a("./nodeBuffer");c.string2binary=function(a){for(var b="",c=0;c<a.length;c++)b+=String.fromCharCode(255&a.charCodeAt(c));return b},c.arrayBuffer2Blob=function(a,b){c.checkSupport("blob"),b=b||"application/zip";try{return new Blob([a],{type:b})}catch(d){try{var e=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,f=new e;return f.append(a),f.getBlob(b)}catch(d){throw new Error("Bug : can't construct the Blob.")}}},c.applyFromCharCode=f;var k={};k.string={string:d,array:function(a){return e(a,new Array(a.length))},arraybuffer:function(a){return k.string.uint8array(a).buffer},uint8array:function(a){return e(a,new Uint8Array(a.length))},nodebuffer:function(a){return e(a,j(a.length))}},k.array={string:f,array:d,arraybuffer:function(a){return new Uint8Array(a).buffer},uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return j(a)}},k.arraybuffer={string:function(a){return f(new Uint8Array(a))},array:function(a){return g(new Uint8Array(a),new Array(a.byteLength))},arraybuffer:d,uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return j(new Uint8Array(a))}},k.uint8array={string:f,array:function(a){return g(a,new Array(a.length))},arraybuffer:function(a){return a.buffer},uint8array:d,nodebuffer:function(a){return j(a)}},k.nodebuffer={string:f,array:function(a){return g(a,new Array(a.length))},arraybuffer:function(a){return k.nodebuffer.uint8array(a).buffer},uint8array:function(a){return g(a,new Uint8Array(a.length))},nodebuffer:d},c.transformTo=function(a,b){if(b||(b=""),!a)return b;c.checkSupport(a);var d=c.getTypeOf(b),e=k[d][a](b);return e},c.getTypeOf=function(a){return"string"==typeof a?"string":"[object Array]"===Object.prototype.toString.call(a)?"array":h.nodebuffer&&j.test(a)?"nodebuffer":h.uint8array&&a instanceof Uint8Array?"uint8array":h.arraybuffer&&a instanceof ArrayBuffer?"arraybuffer":void 0},c.checkSupport=function(a){var b=h[a.toLowerCase()];if(!b)throw new Error(a+" is not supported by this browser")},c.MAX_VALUE_16BITS=65535,c.MAX_VALUE_32BITS=-1,c.pretty=function(a){var b,c,d="";for(c=0;c<(a||"").length;c++)b=a.charCodeAt(c),d+="\\x"+(16>b?"0":"")+b.toString(16).toUpperCase();return d},c.findCompression=function(a){for(var b in i)if(i.hasOwnProperty(b)&&i[b].magic===a)return i[b];return null},c.isRegExp=function(a){return"[object RegExp]"===Object.prototype.toString.call(a)}},{"./compressions":3,"./nodeBuffer":11,"./support":17}],22:[function(a,b){"use strict";function c(a,b){this.files=[],this.loadOptions=b,a&&this.load(a)}var d=a("./stringReader"),e=a("./nodeBufferReader"),f=a("./uint8ArrayReader"),g=a("./utils"),h=a("./signature"),i=a("./zipEntry"),j=a("./support"),k=a("./object");c.prototype={checkSignature:function(a){var b=this.reader.readString(4);if(b!==a)throw new Error("Corrupted zip or bug : unexpected signature ("+g.pretty(b)+", expected "+g.pretty(a)+")")},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2),this.zipComment=this.reader.readString(this.zipCommentLength),this.zipComment=k.utf8decode(this.zipComment)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var a,b,c,d=this.zip64EndOfCentralSize-44,e=0;d>e;)a=this.reader.readInt(2),b=this.reader.readInt(4),c=this.reader.readString(b),this.zip64ExtensibleData[a]={id:a,length:b,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var a,b;for(a=0;a<this.files.length;a++)b=this.files[a],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(h.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var a;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===h.CENTRAL_FILE_HEADER;)a=new i({zip64:this.zip64},this.loadOptions),a.readCentralPart(this.reader),this.files.push(a)},readEndOfCentral:function(){var a=this.reader.lastIndexOfSignature(h.CENTRAL_DIRECTORY_END);if(-1===a){var b=!0;try{this.reader.setIndex(0),this.checkSignature(h.LOCAL_FILE_HEADER),b=!1}catch(c){}throw new Error(b?"Can't find end of central directory : is this a zip f
5ile ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html":"Corrupted zip : can't find end of central directory")}if(this.reader.setIndex(a),this.checkSignature(h.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===g.MAX_VALUE_16BITS||this.diskWithCentralDirStart===g.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===g.MAX_VALUE_16BITS||this.centralDirRecords===g.MAX_VALUE_16BITS||this.centralDirSize===g.MAX_VALUE_32BITS||this.centralDirOffset===g.MAX_VALUE_32BITS){if(this.zip64=!0,a=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),-1===a)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");this.reader.setIndex(a),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}},prepareReader:function(a){var b=g.getTypeOf(a);this.reader="string"!==b||j.uint8array?"nodebuffer"===b?new e(a):new f(g.transformTo("uint8array",a)):new d(a,this.loadOptions.optimizedBinaryString)},load:function(a){this.prepareReader(a),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},b.exports=c},{"./nodeBufferReader":12,"./object":13,"./signature":14,"./stringReader":15,"./support":17,"./uint8ArrayReader":18,"./utils":21,"./zipEntry":23}],23:[function(a,b){"use strict";function c(a,b){this.options=a,this.loadOptions=b}var d=a("./stringReader"),e=a("./utils"),f=a("./compressedObject"),g=a("./object"),h=0,i=3;c.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},prepareCompressedContent:function(a,b,c){return function(){var d=a.index;a.setIndex(b);var e=a.readData(c);return a.setIndex(d),e}},prepareContent:function(a,b,c,d,f){return function(){var a=e.transformTo(d.uncompressInputType,this.getCompressedContent()),b=d.uncompress(a);if(b.length!==f)throw new Error("Bug : uncompressed data size mismatch");return b}},readLocalPart:function(a){var b,c;if(a.skip(22),this.fileNameLength=a.readInt(2),c=a.readInt(2),this.fileName=a.readString(this.fileNameLength),a.skip(c),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(b=e.findCompression(this.compressionMethod),null===b)throw new Error("Corrupted zip : compression "+e.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");if(this.decompressed=new f,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(a,a.index,this.compressedSize,b),this.decompressed.getContent=this.prepareContent(a,a.index,this.compressedSize,b,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=e.transformTo("string",this.decompressed.getContent()),g.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(a){if(this.versionMadeBy=a.readInt(2),this.versionNeeded=a.readInt(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4),this.fileNameLength=a.readInt(2),this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=a.readString(this.fileNameLength),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readString(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var a=this.versionMadeBy>>8;this.dir=16&this.externalFileAttributes?!0:!1,a===h&&(this.dosPermissions=63&this.externalFileAttributes),a===i&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileName.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var a=new d(this.extraFields[1].value);
5this.uncompressedSize===e.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===e.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===e.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===e.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4))}},readExtraFields:function(a){var b,c,d,e=a.index;for(this.extraFields=this.extraFields||{};a.index<e+this.extraFieldsLength;)b=a.readInt(2),c=a.readInt(2),d=a.readString(c),this.extraFields[b]={id:b,length:c,value:d}},handleUTF8:function(){if(this.useUTF8())this.fileName=g.utf8decode(this.fileName),this.fileComment=g.utf8decode(this.fileComment);else{var a=this.findExtraFieldUnicodePath();null!==a&&(this.fileName=a);var b=this.findExtraFieldUnicodeComment();null!==b&&(this.fileComment=b)}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var b=new d(a.value);return 1!==b.readInt(1)?null:g.crc32(this.fileName)!==b.readInt(4)?null:g.utf8decode(b.readString(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var b=new d(a.value);return 1!==b.readInt(1)?null:g.crc32(this.fileComment)!==b.readInt(4)?null:g.utf8decode(b.readString(a.length-5))}return null}},b.exports=c},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(a,b){"use strict";var c=a("./lib/utils/common").assign,d=a("./lib/deflate"),e=a("./lib/inflate"),f=a("./lib/zlib/constants"),g={};c(g,d,e,f),b.exports=g},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(a,b,c){"use strict";function d(a,b){var c=new s(b);if(c.push(a,!0),c.err)throw c.msg;return c.result}function e(a,b){return b=b||{},b.raw=!0,d(a,b)}function f(a,b){return b=b||{},b.gzip=!0,d(a,b)}var g=a("./zlib/deflate.js"),h=a("./utils/common"),i=a("./utils/strings"),j=a("./zlib/messages"),k=a("./zlib/zstream"),l=0,m=4,n=0,o=1,p=-1,q=0,r=8,s=function(a){this.options=h.assign({level:p,method:r,chunkSize:16384,windowBits:15,memLevel:8,strategy:q,to:""},a||{});var b=this.options;b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new k,this.strm.avail_out=0;var c=g.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(c!==n)throw new Error(j[c]);b.header&&g.deflateSetHeader(this.strm,b.header)};s.prototype.push=function(a,b){var c,d,e=this.strm,f=this.options.chunkSize;if(this.ended)return!1;d=b===~~b?b:b===!0?m:l,e.input="string"==typeof a?i.string2buf(a):a,e.next_in=0,e.avail_in=e.input.length;do{if(0===e.avail_out&&(e.output=new h.Buf8(f),e.next_out=0,e.avail_out=f),c=g.deflate(e,d),c!==o&&c!==n)return this.onEnd(c),this.ended=!0,!1;(0===e.avail_out||0===e.avail_in&&d===m)&&this.onData("string"===this.options.to?i.buf2binstring(h.shrinkBuf(e.output,e.next_out)):h.shrinkBuf(e.output,e.next_out))}while((e.avail_in>0||0===e.avail_out)&&c!==o);return d===m?(c=g.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===n):!0},s.prototype.onData=function(a){this.chunks.push(a)},s.prototype.onEnd=function(a){a===n&&(this.result="string"===this.options.to?this.chunks.join(""):h.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Deflate=s,c.deflate=d,c.deflateRaw=e,c.gzip=f},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(a,b,c){"use strict";function d(a,b){var c=new m(b);if(c.push(a,!0),c.err)throw c.msg;return c.result}function e(a,b){return b=b||{},b.raw=!0,d(a,b)}var f=a("./zlib/inflate.js"),g=a("./utils/common"),h=a("./utils/strings"),i=a("./zlib/constants"),j=a("./zlib/messages"),k=a("./zlib/zstream"),l=a("./zlib/gzheader"),m=function(a){this.options=g.assign({chunkSize:16384,windowBits:0,to:""},a||{});var b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,0===b.windowBits&&(b.windowBits=-15)),!(b.windowBits>=0&&b.windowBits<16)||a&&a.windowBits||(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&0===(15&b.windowBits)&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new k,this.strm.avail_out=0;var c=f.inflateInit2(this.strm,b.windowBits);if(c!==i.Z_OK)throw new Error(j[c]);this.header=new l,f.inflateGetHeader(this.strm,this.header)};m.prototype.push=function(a,b){var c,d,e,j,k,l=this.strm,m=this.options.chunkSize;if(this.ended)return!1;
5d=b===~~b?b:b===!0?i.Z_FINISH:i.Z_NO_FLUSH,l.input="string"==typeof a?h.binstring2buf(a):a,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=new g.Buf8(m),l.next_out=0,l.avail_out=m),c=f.inflate(l,i.Z_NO_FLUSH),c!==i.Z_STREAM_END&&c!==i.Z_OK)return this.onEnd(c),this.ended=!0,!1;l.next_out&&(0===l.avail_out||c===i.Z_STREAM_END||0===l.avail_in&&d===i.Z_FINISH)&&("string"===this.options.to?(e=h.utf8border(l.output,l.next_out),j=l.next_out-e,k=h.buf2string(l.output,e),l.next_out=j,l.avail_out=m-j,j&&g.arraySet(l.output,l.output,e,j,0),this.onData(k)):this.onData(g.shrinkBuf(l.output,l.next_out)))}while(l.avail_in>0&&c!==i.Z_STREAM_END);return c===i.Z_STREAM_END&&(d=i.Z_FINISH),d===i.Z_FINISH?(c=f.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===i.Z_OK):!0},m.prototype.onData=function(a){this.chunks.push(a)},m.prototype.onEnd=function(a){a===i.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):g.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Inflate=m,c.inflate=d,c.inflateRaw=e,c.ungzip=d},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(a,b,c){"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;c.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!=typeof c)throw new TypeError(c+"must be non-object");for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}}return a},c.shrinkBuf=function(a,b){return a.length===b?a:a.subarray?a.subarray(0,b):(a.length=b,a)};var e={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)return void a.set(b.subarray(c,c+d),e);for(var f=0;d>f;f++)a[e+f]=b[c+f]},flattenChunks:function(a){var b,c,d,e,f,g;for(d=0,b=0,c=a.length;c>b;b++)d+=a[b].length;for(g=new Uint8Array(d),e=0,b=0,c=a.length;c>b;b++)f=a[b],g.set(f,e),e+=f.length;return g}},f={arraySet:function(a,b,c,d,e){for(var f=0;d>f;f++)a[e+f]=b[c+f]},flattenChunks:function(a){return[].concat.apply([],a)}};c.setTyped=function(a){a?(c.Buf8=Uint8Array,c.Buf16=Uint16Array,c.Buf32=Int32Array,c.assign(c,e)):(c.Buf8=Array,c.Buf16=Array,c.Buf32=Array,c.assign(c,f))},c.setTyped(d)},{}],28:[function(a,b,c){"use strict";function d(a,b){if(65537>b&&(a.subarray&&g||!a.subarray&&f))return String.fromCharCode.apply(null,e.shrinkBuf(a,b));for(var c="",d=0;b>d;d++)c+=String.fromCharCode(a[d]);return c}var e=a("./common"),f=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch(h){f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(h){g=!1}for(var i=new e.Buf8(256),j=0;256>j;j++)i[j]=j>=252?6:j>=248?5:j>=240?4:j>=224?3:j>=192?2:1;i[254]=i[254]=1,c.string2buf=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;h>f;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),i+=128>c?1:2048>c?2:65536>c?3:4;for(b=new e.Buf8(i),g=0,f=0;i>g;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),128>c?b[g++]=c:2048>c?(b[g++]=192|c>>>6,b[g++]=128|63&c):65536>c?(b[g++]=224|c>>>12,b[g++]=128|c>>>6&63,b[g++]=128|63&c):(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63,b[g++]=128|c>>>6&63,b[g++]=128|63&c);return b},c.buf2binstring=function(a){return d(a,a.length)},c.binstring2buf=function(a){ 6for(var b=new e.Buf8(a.length),c=0,d=b.length;d>c;c++)b[c]=a.charCodeAt(c);return b},c.buf2string=function(a,b){var c,e,f,g,h=b||a.length,j=new Array(2*h);for(e=0,c=0;h>c;)if(f=a[c++],128>f)j[e++]=f;else if(g=i[f],g>4)j[e++]=65533,c+=g-1;else{for(f&=2===g?31:3===g?15:7;g>1&&h>c;)f=f<<6|63&a[c++],g--;g>1?j[e++]=65533:65536>f?j[e++]=f:(f-=65536,j[e++]=55296|f>>10&1023,j[e++]=56320|1023&f)}return d(j,e)},c.utf8border=function(a,b){var c;for(b=b||a.length,b>a.length&&(b=a.length),c=b-1;c>=0&&128===(192&a[c]);)c--;return 0>c?b:0===c?b:c+i[a[c]]>b?c:b}},{"./common":27}],29:[function(a,b){"use strict";function c(a,b,c,d){for(var e=65535&a|0,f=a>>>16&65535|0,g=0;0!==c;){g=c>2e3?2e3:c,c-=g;do e=e+b[d++]|0,f=f+e|0;while(--g);e%=65521,f%=65521}return e|f<<16|0}b.exports=c},{}],30:[function(a,b){b.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ER
vendor: 14,406 bytes, line 6
6ROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],31:[function(a,b){"use strict";function c(){for(var a,b=[],c=0;256>c;c++){a=c;for(var d=0;8>d;d++)a=1&a?3988292384^a>>>1:a>>>1;b[c]=a}return b}function d(a,b,c,d){var f=e,g=d+c;a=-1^a;for(var h=d;g>h;h++)a=a>>>8^f[255&(a^b[h])];return-1^a}var e=c();b.exports=d},{}],32:[function(a,b,c){"use strict";function d(a,b){return a.msg=G[b],b}function e(a){return(a<<1)-(a>4?9:0)}function f(a){for(var b=a.length;--b>=0;)a[b]=0}function g(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(C.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function h(a,b){D._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,g(a.strm)}function i(a,b){a.pending_buf[a.pending++]=b}function j(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function k(a,b,c,d){var e=a.avail_in;return e>d&&(e=d),0===e?0:(a.avail_in-=e,C.arraySet(b,a.input,a.next_in,e,c),1===a.state.wrap?a.adler=E(a.adler,b,e,c):2===a.state.wrap&&(a.adler=F(a.adler,b,e,c)),a.next_in+=e,a.total_in+=e,e)}function l(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-ja?a.strstart-(a.w_size-ja):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+ia,n=j[f+g-1],o=j[f+g];a.prev_length>=a.good_match&&(e>>=2),h>a.lookahead&&(h=a.lookahead);do if(c=b,j[c+g]===o&&j[c+g-1]===n&&j[c]===j[f]&&j[++c]===j[f+1]){f+=2,c++;do;while(j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&m>f);if(d=ia-(m-f),f=m-ia,d>g){if(a.match_start=b,g=d,d>=h)break;n=j[f+g-1],o=j[f+g]}}while((b=l[b&k])>i&&0!==--e);return g<=a.lookahead?g:a.lookahead}function m(a){var b,c,d,e,f,g=a.w_size;do{if(e=a.window_size-a.lookahead-a.strstart,a.strstart>=g+(g-ja)){C.arraySet(a.window,a.window,g,g,0),a.match_start-=g,a.strstart-=g,a.block_start-=g,c=a.hash_size,b=c;do d=a.head[--b],a.head[b]=d>=g?d-g:0;while(--c);c=g,b=c;do d=a.prev[--b],a.prev[b]=d>=g?d-g:0;while(--c);e+=g}if(0===a.strm.avail_in)break;if(c=k(a.strm,a.window,a.strstart+a.lookahead,e),a.lookahead+=c,a.lookahead+a.insert>=ha)for(f=a.strstart-a.insert,a.ins_h=a.window[f],a.ins_h=(a.ins_h<<a.hash_shift^a.window[f+1])&a.hash_mask;a.insert&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[f+ha-1])&a.hash_mask,a.prev[f&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=f,f++,a.insert--,!(a.lookahead+a.insert<ha)););}while(a.lookahead<ja&&0!==a.strm.avail_in)}function n(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){if(m(a),0===a.lookahead&&b===H)return sa;if(0===a.lookahead)break}a.strstart+=a.lookahead,a.lookahead=0;var d=a.block_start+c;if((0===a.strstart||a.strstart>=d)&&(a.lookahead=a.strstart-d,a.strstart=d,h(a,!1),0===a.strm.avail_out))return sa;if(a.strstart-a.block_start>=a.w_size-ja&&(h(a,!1),0===a.strm.avail_out))return sa}return a.insert=0,b===K?(h(a,!0),0===a.strm.avail_out?ua:va):a.strstart>a.block_start&&(h(a,!1),0===a.strm.avail_out)?sa:sa}function o(a,b){for(var c,d;;){if(a.lookahead<ja){if(m(a),a.lookahead<ja&&b===H)return sa;if(0===a.lookahead)break}if(c=0,a.lookahead>=ha&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+ha-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),0!==c&&a.strstart-c<=a.w_size-ja&&(a.match_length=l(a,c)),a.match_length>=ha)if(d=D._tr_tally(a,a.strstart-a.match_start,a.match_length-ha),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=ha){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+ha-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(0!==--a.match_length);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else d=D._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(d&&(h(a,!1),0===a.strm.avail_out))return sa}return a.insert=a.strstart<ha-1?a.strstart:ha-1,b===K?(h(a,!0),0===a.strm.avail_out?ua:va):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?sa:ta}function p(a,b){for(var c,d,e;;){if(a.lookahead<ja){if(m(a),a.lookahead<ja&&b===H)return sa;if(0===a.lookahead)break}if(c=0,a.lookahead>=ha&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+ha-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=ha-1,0!==c&&a.prev_length<a.max_lazy_match&&a.strstart-c<=a.w_size-ja&&(a.match_length=l(a,c),a.match_length<=5&&(a.strategy===S||a.match_length===ha&&a.strstart-a.match_start>4096)&&(a.match_length=ha-1)),a.prev_length>=ha&&a.match_length<=a.prev_length){e=a.strstart+a.lookahead-ha,d=D._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-ha),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+ha-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(0!==--a.prev_length);if(a.match_available=0,a.match_length=ha-1,a.strstart++,d&&(h(a,!1),0===a.strm.avail_out))return sa}else if(a.match_available){if(d=D._tr_tally(a,0,a.window[a.strstart-1]),d&&h(a,!1),a.strstart++,a.lookahead--,0===a.strm.avail_out)return sa}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(d=D._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart<ha-1?a.strstart:ha-1,b===K?(h(a,!0),0===a.strm.avail_out?ua:va):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?sa:ta}function q(a,b){for(var c,d,e,f,g=a.window;;){if(a.lookahead<=ia){if(m(a),a.lookahead<=ia&&b===H)return sa;if(0===a.lookahead)break}if(a.match_length=0,a.lookahead>=ha&&a.strstart>0&&(e=a.strstart-1,d=g[e],d===g[++e]&&d===g[++e]&&d===g[++e])){f=a.strstart+ia;do;while(d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&f>e);a.match_length=ia-(f-e),a.match_length>a.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=ha?(c=D._tr_tally(a,1,a.match_length-ha),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=D._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(h(a,!1),0===a.strm.avail_out))return sa}return a.insert=0,b===K?(h(a,!0),0===a.strm.avail_out?ua:va):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?sa:ta}function r(a,b){for(var c;;){if(0===a.lookahead&&(m(a),0===a.lookahead)){if(b===H)return sa;break}if(a.match_length=0,c=D._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(h(a,!1),0===a.strm.avail_out))return sa}return a.insert=0,b===K?(h(a,!0),0===a.strm.avail_out?ua:va):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?sa:ta}function s(a){a.window_size=2*a.w_size,f(a.head),a.max_lazy_match=B[a.level].max_lazy,a.good_match=B[a.level].good_length,a.nice_match=B[a.level].nice_length,a.max_chain_length=B[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=ha-1,a.match_available=0,a.ins_h=0}function t(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new C.Buf16(2*fa),this.dyn_dtree=new C.Buf16(2*(2*da+1)),this.bl_tree=new C.Buf16(2*(2*ea+1)),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new C.Buf16(ga+1),this.heap=new C.Buf16(2*ca+1),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new C.Buf16(2*ca+1),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function u(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=X,b=a.state,b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?la:qa,a.adler=2===b.wrap?0:1,b.last_flush=H,D._tr_init(b),M):d(a,O)}function v(a){var b=u(a);return b===M&&s(a.state),b}function w(a,b){return a&&a.state?2!==a.state.wrap?O:(a.state.gzhead=b,M):O}function x(a,b,c,e,f,g){if(!a)return O;var h=1;if(b===R&&(b=6),0>e?(h=0,e=-e):e>15&&(h=2,e-=16),1>f||f>Z||c!==Y||8>e||e>15||0>b||b>9||0>g||g>V)return d(a,O);8===e&&(e=9);var i=new t;return a.state=i,i.strm=a,i.wrap=h,i.gzhead=null,i.w_bits=e,i.w_size=1<<i.w_bits,i.w_mask=i.w_size-1,i.hash_bits=f+7,i.hash_size=1<<i.hash_bits,i.hash_mask=i.hash_size-1,i.hash_shift=~~((i.hash_bits+ha-1)/ha),i.window=new C.Buf8(2*i.w_size),i.head=new C.Buf16(i.hash_size),i.prev=new C.Buf16(i.w_size),i.lit_bufsize=1<<f+6,i.pending_buf_size=4*i.lit_bufsize,i.pending_buf=new C.Buf8(i.pending_buf_size),i.d_buf=i.lit_bufsize>>1,i.l_buf=3*i.lit_bufsize,i.level=b,i.strategy=g,i.method=c,v(a)}function y(a,b){return x(a,b,Y,$,_,W)}function z(a,b){var c,h,k,l;if(!a||!a.state||b>L||0>b)return a?d(a,O):O;if(h=a.state,!a.output||!a.input&&0!==a.avail_in||h.status===ra&&b!==K)return d(a,0===a.avail_out?Q:O);if(h.strm=a,c=h.last_flush,h.last_flush=b,h.status===la)if(2===h.wrap)a.adler=0,i(h,31),i(h,139),i(h,8),h.gzhead?(i(h,(h.gzhead.text?1:0)+(h.gzhead.hcrc?2:0)+(h.gzhead.extra?4:0)+(h.gzhead.name?8:0)+(h.gzhead.comment?16:0)),i(h,255&h.gzhead.time),i(h,h.gzhead.time>>8&255),i(h,h.gzhead.time>>16&255),i(h,h.gzhead.time>>24&255),i(h,9===h.level?2:h.strategy>=T||h.level<2?4:0),i(h,255&h.gzhead.os),h.gzhead.extra&&h.gzhead.extra.length&&(i(h,255&h.gzhead.extra.length),i(h,h.gzhead.extra.length>>8&255)),h.gzhead.hcrc&&(a.adler=F(a.adler,h.pending_buf,h.pending,0)),h.gzindex=0,h.status=ma):(i(h,0),i(h,0),i(h,0),i(h,0),i(h,0),i(h,9===h.level?2:h.strategy>=T||h.level<2?4:0),i(h,wa),h.status=qa);else{var m=Y+(h.w_bits-8<<4)<<8,n=-1;n=h.strategy>=T||h.level<2?0:h.level<6?1:6===h.level?2:3,m|=n<<6,0!==h.strstart&&(m|=ka),m+=31-m%31,h.status=qa,j(h,m),0!==h.strstart&&(j(h,a.adler>>>16),j(h,65535&a.adler)),a.adler=1}if(h.status===ma)if(h.gzhead.extra){for(k=h.pending;h.gzindex<(65535&h.gzhead.extra.length)&&(h.pending!==h.pending_buf_size||(h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending!==h.pending_buf_size));)i(h,255&h.gzhead.extra[h.gzindex]),h.gzindex++;h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),h.gzindex===h.gzhead.extra.length&&(h.gzindex=0,h.status=na)}else h.status=na;if(h.status===na)if(h.gzhead.name){k=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending===h.pending_buf_size)){l=1;break}l=h.gzindex<h.gzhead.name.length?255&h.gzhead.name.charCodeAt(h.gzindex++):0,i(h,l)}while(0!==l);h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),0===l&&(h.gzindex=0,h.status=oa)}else h.status=oa;if(h.status===oa)if(h.gzhead.comment){k=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending===h.pending_buf_size)){l=1;break}l=h.gzindex<h.gzhead.comment.length?255&h.gzhead.comment.charCodeAt(h.gzindex++):0,i(h,l)}while(0!==l);h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),0===l&&(h.status=pa)}else h.status=pa;if(h.status===pa&&(h.gzhead.hcrc?(h.pending+2>h.pending_buf_size&&g(a),h.pending+2<=h.pending_buf_size&&(i(h,255&a.adler),i(h,a.adler>>8&255),a.adler=0,h.status=qa)):h.status=qa),0!==h.pending){if(g(a),0===a.avail_out)return h.last_flush=-1,M}else if(0===a.avail_in&&e(b)<=e(c)&&b!==K)return d(a,Q);if(h.status===ra&&0!==a.avail_in)return d(a,Q);if(0!==a.avail_in||0!==h.lookahead||b!==H&&h.status!==ra){var o=h.strategy===T?r(h,b):h.strategy===U?q(h,b):B[h.level].func(h,b);if((o===ua||o===va)&&(h.status=ra),o===sa||o===ua)return 0===a.avail_out&&(h.last_flush=-1),M;if(o===ta&&(b===I?D._tr_align(h):b!==L&&(D._tr_stored_block(h,0,0,!1),b===J&&(f(h.head),0===h.lookahead&&(h.strstart=0,h.block_start=0,h.insert=0))),g(a),0===a.avail_out))return h.last_flush=-1,M}return b!==K?M:h.wrap<=0?N:(2===h.wrap?(i(h,255&a.adler),i(h,a.adler>>8&255),i(h,a.adler>>16&255),i(h,a.adler>>24&255),i(h,255&a.total_in),i(h,a.total_in>>8&255),i(h,a.total_in>>16&255),i(h,a.total_in>>24&255)):(j(h,a.adler>>>16),j(h,65535&a.adler)),g(a),h.wrap>0&&(h.wrap=-h.wrap),0!==h.pending?M:N)}function A(a){var b;return a&&a.state?(b=a.state.status,b!==la&&b!==ma&&b!==na&&b!==oa&&b!==pa&&b!==qa&&b!==ra?d(a,O):(a.state=null,b===qa?d(a,P):M)):O}var B,C=a("../utils/common"),D=a("./trees"),E=a("./adler32"),F=a("./crc32"),G=a("./messages"),H=0,I=1,J=3,K=4,L=5,M=0,N=1,O=-2,P=-3,Q=-5,R=-1,S=1,T=2,U=3,V=4,W=0,X=2,Y=8,Z=9,$=15,_=8,aa=29,ba=256,ca=ba+1+aa,da=30,ea=19,fa=2*ca+1,ga=15,ha=3,ia=258,ja=ia+ha+1,ka=32,la=42,ma=69,na=73,oa=91,pa=103,qa=113,ra=666,sa=1,ta=2,ua=3,va=4,wa=3,xa=function(a,b,c,d,e){this.good_length=a,this.max_lazy=b,this.nice_length=c,this.max_chain=d,this.func=e};B=[new xa(0,0,0,0,n),new xa(4,4,8,4,o),new xa(4,5,16,8,o),new xa(4,6,32,32,o),new xa(4,4,16,16,p),new xa(8,16,32,32,p),new xa(8,16,128,128,p),new xa(8,32,128,256,p),new xa(32,128,258,1024,p),new xa(32,258,258,4096,p)],c.deflateInit=y,c.deflateInit2=x,c.deflateReset=v,c.deflateResetKeep=u,c.deflateSetHeader=w,c.deflate=z,c.deflateEnd=A,c.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./messages":37,"./trees":38}],33:[function(a,b){"use strict";function c(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}b.exports=c},{}],34:[function(a,b){"use strict";var c=30,d=12;
vendor: 14,686 bytes, line 6
6b.exports=function(a,b){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C;e=a.state,f=a.next_in,B=a.input,g=f+(a.avail_in-5),h=a.next_out,C=a.output,i=h-(b-a.avail_out),j=h+(a.avail_out-257),k=e.dmax,l=e.wsize,m=e.whave,n=e.wnext,o=e.window,p=e.hold,q=e.bits,r=e.lencode,s=e.distcode,t=(1<<e.lenbits)-1,u=(1<<e.distbits)-1;a:do{15>q&&(p+=B[f++]<<q,q+=8,p+=B[f++]<<q,q+=8),v=r[p&t];b:for(;;){if(w=v>>>24,p>>>=w,q-=w,w=v>>>16&255,0===w)C[h++]=65535&v;else{if(!(16&w)){if(0===(64&w)){v=r[(65535&v)+(p&(1<<w)-1)];continue b}if(32&w){e.mode=d;break a}a.msg="invalid literal/length code",e.mode=c;break a}x=65535&v,w&=15,w&&(w>q&&(p+=B[f++]<<q,q+=8),x+=p&(1<<w)-1,p>>>=w,q-=w),15>q&&(p+=B[f++]<<q,q+=8,p+=B[f++]<<q,q+=8),v=s[p&u];c:for(;;){if(w=v>>>24,p>>>=w,q-=w,w=v>>>16&255,!(16&w)){if(0===(64&w)){v=s[(65535&v)+(p&(1<<w)-1)];continue c}a.msg="invalid distance code",e.mode=c;break a}if(y=65535&v,w&=15,w>q&&(p+=B[f++]<<q,q+=8,w>q&&(p+=B[f++]<<q,q+=8)),y+=p&(1<<w)-1,y>k){a.msg="invalid distance too far back",e.mode=c;break a}if(p>>>=w,q-=w,w=h-i,y>w){if(w=y-w,w>m&&e.sane){a.msg="invalid distance too far back",e.mode=c;break a}if(z=0,A=o,0===n){if(z+=l-w,x>w){x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}}else if(w>n){if(z+=l+n-w,w-=n,x>w){x-=w;do C[h++]=o[z++];while(--w);if(z=0,x>n){w=n,x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}}}else if(z+=n-w,x>w){x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}for(;x>2;)C[h++]=A[z++],C[h++]=A[z++],C[h++]=A[z++],x-=3;x&&(C[h++]=A[z++],x>1&&(C[h++]=A[z++]))}else{z=h-y;do C[h++]=C[z++],C[h++]=C[z++],C[h++]=C[z++],x-=3;while(x>2);x&&(C[h++]=C[z++],x>1&&(C[h++]=C[z++]))}break}}break}}while(g>f&&j>h);x=q>>3,f-=x,q-=x<<3,p&=(1<<q)-1,a.next_in=f,a.next_out=h,a.avail_in=g>f?5+(g-f):5-(f-g),a.avail_out=j>h?257+(j-h):257-(h-j),e.hold=p,e.bits=q}},{}],35:[function(a,b,c){"use strict";function d(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function e(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=K,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new r.Buf32(oa),b.distcode=b.distdyn=new r.Buf32(pa),b.sane=1,b.back=-1,C):F}function g(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.wnext=0,f(a)):F}function h(a,b){var c,d;return a&&a.state?(d=a.state,0>b?(c=0,b=-b):(c=(b>>4)+1,48>b&&(b&=15)),b&&(8>b||b>15)?F:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,g(a))):F}function i(a,b){var c,d;return a?(d=new e,a.state=d,d.window=null,c=h(a,b),c!==C&&(a.state=null),c):F}function j(a){return i(a,ra)}function k(a){if(sa){var b;for(p=new r.Buf32(512),q=new r.Buf32(32),b=0;144>b;)a.lens[b++]=8;for(;256>b;)a.lens[b++]=9;for(;280>b;)a.lens[b++]=7;for(;288>b;)a.lens[b++]=8;for(v(x,a.lens,0,288,p,0,a.work,{bits:9}),b=0;32>b;)a.lens[b++]=5;v(y,a.lens,0,32,q,0,a.work,{bits:5}),sa=!1}a.lencode=p,a.lenbits=9,a.distcode=q,a.distbits=5}function l(a,b,c,d){var e,f=a.state;return null===f.window&&(f.wsize=1<<f.wbits,f.wnext=0,f.whave=0,f.window=new r.Buf8(f.wsize)),d>=f.wsize?(r.arraySet(f.window,b,c-f.wsize,f.wsize,0),f.wnext=0,f.whave=f.wsize):(e=f.wsize-f.wnext,e>d&&(e=d),r.arraySet(f.window,b,c-d,e,f.wnext),d-=e,d?(r.arraySet(f.window,b,c-d,d,0),f.wnext=d,f.whave=f.wsize):(f.wnext+=e,f.wnext===f.wsize&&(f.wnext=0),f.whave<f.wsize&&(f.whave+=e))),0}function m(a,b){var c,e,f,g,h,i,j,m,n,o,p,q,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa=0,Ba=new r.Buf8(4),Ca=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.output||!a.input&&0!==a.avail_in)return F;c=a.state,c.mode===V&&(c.mode=W),h=a.next_out,f=a.output,j=a.avail_out,g=a.next_in,e=a.input,i=a.avail_in,m=c.hold,n=c.bits,o=i,p=j,xa=C;a:for(;;)switch(c.mode){case K:if(0===c.wrap){c.mode=W;break}for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(2&c.wrap&&35615===m){c.check=0,Ba[0]=255&m,Ba[1]=m>>>8&255,c.check=t(c.check,Ba,2,0),m=0,n=0,c.mode=L;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&m)<<8)+(m>>8))%31){a.msg="incorrect header check",c.mode=la;break}if((15&m)!==J){a.msg="unknown compression method",c.mode=la;break}if(m>>>=4,n-=4,wa=(15&m)+8,0===c.wbits)c.wbits=wa;else if(wa>c.wbits){a.msg="invalid window size",c.mode=la;break}c.dmax=1<<wa,a.adler=c.check=1,c.mode=512&m?T:V,m=0,n=0;break;case L:for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(c.flags=m,(255&c.flags)!==J){a.msg="unknown compression method",c.mode=la;break}if(57344&c.flags){a.msg="unknown header flags set",c.mode=la;break}c.head&&(c.head.text=m>>8&1),512&c.flags&&(Ba[0]=255&m,Ba[1]=m>>>8&255,c.check=t(c.check,Ba,2,0)),m=0,n=0,c.mode=M;case M:for(;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.head&&(c.head.time=m),512&c.flags&&(Ba[0]=255&m,Ba[1]=m>>>8&255,Ba[2]=m>>>16&255,Ba[3]=m>>>24&255,c.check=t(c.check,Ba,4,0)),m=0,n=0,c.mode=N;case N:for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.head&&(c.head.xflags=255&m,c.head.os=m>>8),512&c.flags&&(Ba[0]=255&m,Ba[1]=m>>>8&255,c.check=t(c.check,Ba,2,0)),m=0,n=0,c.mode=O;case O:if(1024&c.flags){for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.length=m,c.head&&(c.head.extra_len=m),512&c.flags&&(Ba[0]=255&m,Ba[1]=m>>>8&255,c.check=t(c.check,Ba,2,0)),m=0,n=0}else c.head&&(c.head.extra=null);c.mode=P;case P:if(1024&c.flags&&(q=c.length,q>i&&(q=i),q&&(c.head&&(wa=c.head.extra_len-c.length,c.head.extra||(c.head.extra=new Array(c.head.extra_len)),r.arraySet(c.head.extra,e,g,q,wa)),512&c.flags&&(c.check=t(c.check,e,q,g)),i-=q,g+=q,c.length-=q),c.length))break a;c.length=0,c.mode=Q;case Q:if(2048&c.flags){if(0===i)break a;q=0;do wa=e[g+q++],c.head&&wa&&c.length<65536&&(c.head.name+=String.fromCharCode(wa));while(wa&&i>q);if(512&c.flags&&(c.check=t(c.check,e,q,g)),i-=q,g+=q,wa)break a}else c.head&&(c.head.name=null);c.length=0,c.mode=R;case R:if(4096&c.flags){if(0===i)break a;q=0;do wa=e[g+q++],c.head&&wa&&c.length<65536&&(c.head.comment+=String.fromCharCode(wa));while(wa&&i>q);if(512&c.flags&&(c.check=t(c.check,e,q,g)),i-=q,g+=q,wa)break a}else c.head&&(c.head.comment=null);c.mode=S;case S:if(512&c.flags){for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m!==(65535&c.check)){a.msg="header crc mismatch",c.mode=la;break}m=0,n=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=V;break;case T:for(;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}a.adler=c.check=d(m),m=0,n=0,c.mode=U;case U:if(0===c.havedict)return a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,E;a.adler=c.check=1,c.mode=V;case V:if(b===A||b===B)break a;case W:if(c.last){m>>>=7&n,n-=7&n,c.mode=ia;break}for(;3>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}switch(c.last=1&m,m>>>=1,n-=1,3&m){case 0:c.mode=X;break;case 1:if(k(c),c.mode=ba,b===B){m>>>=2,n-=2;break a}break;case 2:c.mode=$;break;case 3:a.msg="invalid block type",c.mode=la}m>>>=2,n-=2;break;case X:for(m>>>=7&n,n-=7&n;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if((65535&m)!==(m>>>16^65535)){a.msg="invalid stored block lengths",c.mode=la;break}if(c.length=65535&m,m=0,n=0,c.mode=Y,b===B)break a;case Y:c.mode=Z;case Z:if(q=c.length){if(q>i&&(q=i),q>j&&(q=j),0===q)break a;r.arraySet(f,e,g,q,h),i-=q,g+=q,j-=q,h+=q,c.length-=q;break}c.mode=V;break;case $:for(;14>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(c.nlen=(31&m)+257,m>>>=5,n-=5,c.ndist=(31&m)+1,m>>>=5,n-=5,c.ncode=(15&m)+4,m>>>=4,n-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=la;break}c.have=0,c.mode=_;case _:for(;c.have<c.ncode;){for(;3>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.lens[Ca[c.have++]]=7&m,m>>>=3,n-=3}for(;c.have<19;)c.lens[Ca[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,ya={bits:c.lenbits},xa=v(w,c.lens,0,19,c.lencode,0,c.work,ya),c.lenbits=ya.bits,xa){a.msg="invalid code lengths set",c.mode=la;break}c.have=0,c.mode=aa;case aa:for(;c.have<c.nlen+c.ndist;){for(;Aa=c.lencode[m&(1<<c.lenbits)-1],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(n>=qa);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(16>sa)m>>>=qa,n-=qa,c.lens[c.have++]=sa;else{if(16===sa){for(za=qa+2;za>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m>>>=qa,n-=qa,0===c.have){a.msg="invalid bit length repeat",c.mode=la;break}wa=c.lens[c.have-1],q=3+(3&m),m>>>=2,n-=2}else if(17===sa){for(za=qa+3;za>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=qa,n-=qa,wa=0,q=3+(7&m),m>>>=3,n-=3}else{for(za=qa+7;za>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=qa,n-=qa,wa=0,q=11+(127&m),m>>>=7,n-=7}if(c.have+q>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=la;break}for(;q--;)c.lens[c.have++]=wa}}if(c.mode===la)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=la;break}if(c.lenbits=9,ya={bits:c.lenbits},xa=v(x,c.lens,0,c.nlen,c.lencode,0,c.work,ya),c.lenbits=ya.bits,xa){a.msg="invalid literal/lengths set",c.mode=la;break}if(c.distbits=6,c.distcode=c.distdyn,ya={bits:c.distbits},xa=v(y,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,ya),c.distbits=ya.bits,xa){a.msg="invalid distances set",c.mode=la;break}if(c.mode=ba,b===B)break a;case ba:c.mode=ca;case ca:if(i>=6&&j>=258){a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,u(a,p),h=a.next_out,f=a.output,j=a.avail_out,g=a.next_in,e=a.input,i=a.avail_in,m=c.hold,n=c.bits,c.mode===V&&(c.back=-1);break}for(c.back=0;Aa=c.lencode[m&(1<<c.lenbits)-1],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(n>=qa);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(ra&&0===(240&ra)){for(ta=qa,ua=ra,va=sa;Aa=c.lencode[va+((m&(1<<ta+ua)-1)>>ta)],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(n>=ta+qa);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=ta,n-=ta,c.back+=ta}if(m>>>=qa,n-=qa,c.back+=qa,c.length=sa,0===ra){c.mode=ha;break}if(32&ra){c.back=-1,c.mode=V;break}if(64&ra){a.msg="invalid literal/length code",c.mode=la;break}c.extra=15&ra,c.mode=da;case da:if(c.extra){for(za=c.extra;za>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.length+=m&(1<<c.extra)-1,m>>>=c.extra,n-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=ea;case ea:for(;Aa=c.distcode[m&(1<<c.distbits)-1],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(n>=qa);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(0===(240&ra)){for(ta=qa,ua=ra,va=sa;Aa=c.distcode[va+((m&(1<<ta+ua)-1)>>ta)],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(n>=ta+qa);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=ta,n-=ta,c.back+=ta}if(m>>>=qa,n-=qa,c.back+=qa,64&ra){a.msg="invalid distance code",c.mode=la;break}c.offset=sa,c.extra=15&ra,c.mode=fa;case fa:if(c.extra){for(za=c.extra;za>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.offset+=m&(1<<c.extra)-1,m>>>=c.extra,n-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=la;break}c.mode=ga;case ga:if(0===j)break a;if(q=p-j,c.offset>q){if(q=c.offset-q,q>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=la;break}q>c.wnext?(q-=c.wnext,oa=c.wsize-q):oa=c.wnext-q,q>c.length&&(q=c.length),pa=c.window}else pa=f,oa=h-c.offset,q=c.length;q>j&&(q=j),j-=q,c.length-=q;do f[h++]=pa[oa++];while(--q);0===c.length&&(c.mode=ca);break;case ha:if(0===j)break a;f[h++]=c.length,j--,c.mode=ca;break;case ia:if(c.wrap){for(;32>n;){if(0===i)break a;i--,m|=e[g++]<<n,n+=8}if(p-=j,a.total_out+=p,c.total+=p,p&&(a.adler=c.check=c.flags?t(c.check,f,p,h-p):s(c.check,f,p,h-p)),p=j,(c.flags?m:d(m))!==c.check){a.msg="incorrect data check",c.mode=la;break}m=0,n=0}c.mode=ja;case ja:if(c.wrap&&c.flags){for(;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m!==(4294967295&c.total)){a.msg="incorrect length check",c.mode=la;break}m=0,n=0}c.mode=ka;case ka:xa=D;break a;case la:xa=G;break a;case ma:return H;case na:default:return F}return a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,(c.wsize||p!==a.avail_out&&c.mode<la&&(c.mode<ia||b!==z))&&l(a,a.output,a.next_out,p-a.avail_out)?(c.mode=ma,H):(o-=a.avail_in,p-=a.avail_out,a.total_in+=o,a.total_out+=p,c.total+=p,c.wrap&&p&&(a.adler=c.check=c.flags?t(c.check,f,p,a.next_out-p):s(c.check,f,p,a.next_out-p)),a.data_type=c.bits+(c.last?64:0)+(c.mode===V?128:0)+(c.mode===ba||c.mode===Y?256:0),(0===o&&0===p||b===z)&&xa===C&&(xa=I),xa)}function n(a){if(!a||!a.state)return F;var b=a.state;return b.window&&(b.window=null),a.state=null,C}function o(a,b){var c;return a&&a.state?(c=a.state,0===(2&c.wrap)?F:(c.head=b,b.done=!1,C)):F}var p,q,r=a("../utils/common"),s=a("./adler32"),t=a("./crc32"),u=a("./inffast"),v=a("./inftrees"),w=0,x=1,y=2,z=4,A=5,B=6,C=0,D=1,E=2,F=-2,G=-3,H=-4,I=-5,J=8,K=1,L=2,M=3,N=4,O=5,P=6,Q=7,R=8,S=9,T=10,U=11,V=12,W=13,X=14,Y=15,Z=16,$=17,_=18,aa=19,ba=20,ca=21,da=22,ea=23,fa=24,ga=25,ha=26,ia=27,ja=28,ka=29,la=30,ma=31,na=32,oa=852,pa=592,qa=15,ra=qa,sa=!0;c.inflateReset=g,c.inflateReset2=h,c.inflateResetKeep=f,c.inflateInit=j,c.inflateInit2=i,c.inflate=m,c.inflateEnd=n,c.inflateGetHeader=o,c.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./inffast":34,"./inftrees":36}],36:[function(a,b){"use strict";var c=a("../utils/common"),d=15,e=852,f=592,g=0,h=1,i=2,j=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],k=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],m=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];b.exports=function(a,b,n,o,p,q,r,s){var t,u,v,w,x,y,z,A,B,C=s.bits,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=null,O=0,P=new c.Buf16(d+1),Q=new c.Buf16(d+1),R=null,S=0;for(D=0;d>=D;D++)P[D]=0;for(E=0;o>E;E++)P[b[n+E]]++;for(H=C,G=d;G>=1&&0===P[G];G--);if(H>G&&(H=G),0===G)return p[q++]=20971520,p[q++]=20971520,s.bits=1,0;for(F=1;G>F&&0===P[F];F++);for(F>H&&(H=F),K=1,D=1;d>=D;D++)if(K<<=1,K-=P[D],0>K)return-1;if(K>0&&(a===g||1!==G))return-1;for(Q[1]=0,D=1;d>D;D++)Q[D+1]=Q[D]+P[D];for(E=0;o>E;E++)0!==b[n+E]&&(r[Q[b[n+E]]++]=E);if(a===g?(N=R=r,y=19):a===h?(N=j,O-=257,R=k,S-=257,y=256):(N=l,R=m,y=-1),M=0,E=0,D=F,x=q,I=H,J=0,v=-1,L=1<<H,w=L-1,a===h&&L>e||a===i&&L>f)return 1;for(var T=0;;){T++,z=D-J,r[E]<y?(A=0,B=r[E]):r[E]>y?(A=R[S+r[E]],B=N[O+r[E]]):(A=96,B=0),t=1<<D-J,u=1<<I,F=u;do u-=t,p[x+(M>>J)+u]=z<<24|A<<16|B|0;while(0!==u);for(t=1<<D-1;M&t;)t>>
vendor: 4,243 bytes, lines 6-8
6=1;if(0!==t?(M&=t-1,M+=t):M=0,E++,0===--P[D]){if(D===G)break;D=b[n+r[E]]}if(D>H&&(M&w)!==v){for(0===J&&(J=H),x+=F,I=D-J,K=1<<I;G>I+J&&(K-=P[I+J],!(0>=K));)I++,K<<=1;if(L+=1<<I,a===h&&L>e||a===i&&L>f)return 1;v=M&w,p[v]=H<<24|I<<16|x-q|0}}return 0!==M&&(p[x+M]=D-J<<24|64<<16|0),s.bits=H,0}},{"../utils/common":27}],37:[function(a,b){"use strict";b.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],38:[function(a,b,c){"use strict";function d(a){for(var b=a.length;--b>=0;)a[b]=0}function e(a){return 256>a?ga[a]:ga[256+(a>>>7)]}function f(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function g(a,b,c){a.bi_valid>V-c?(a.bi_buf|=b<<a.bi_valid&65535,f(a,a.bi_buf),a.bi_buf=b>>V-a.bi_valid,a.bi_valid+=c-V):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)}function h(a,b,c){g(a,c[2*b],c[2*b+1])}function i(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}function j(a){16===a.bi_valid?(f(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}function k(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc.static_tree,l=b.stat_desc.has_stree,m=b.stat_desc.extra_bits,n=b.stat_desc.extra_base,o=b.stat_desc.max_length,p=0;for(f=0;U>=f;f++)a.bl_count[f]=0;for(i[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;T>c;c++)d=a.heap[c],f=i[2*i[2*d+1]+1]+1,f>o&&(f=o,p++),i[2*d+1]=f,d>j||(a.bl_count[f]++,g=0,d>=n&&(g=m[d-n]),h=i[2*d],a.opt_len+=h*(f+g),l&&(a.static_len+=h*(k[2*d+1]+g)));if(0!==p){do{for(f=o-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[o]--,p-=2}while(p>0);for(f=o;0!==f;f--)for(d=a.bl_count[f];0!==d;)e=a.heap[--c],e>j||(i[2*e+1]!==f&&(a.opt_len+=(f-i[2*e+1])*i[2*e],i[2*e+1]=f),d--)}}function l(a,b,c){var d,e,f=new Array(U+1),g=0;for(d=1;U>=d;d++)f[d]=g=g+c[d-1]<<1; 7 8for(e=0;b>=e;e++){var h=a[2*e+1];0!==h&&(a[2*e]=i(f[h]++,h))}}function m(){var a,b,c,d,e,f=new Array(U+1);for(c=0,d=0;O-1>d;d++)for(ia[d]=c,a=0;a<1<<_[d];a++)ha[c++]=d;for(ha[c-1]=d,e=0,d=0;16>d;d++)for(ja[d]=e,a=0;a<1<<aa[d];a++)ga[e++]=d;for(e>>=7;R>d;d++)for(ja[d]=e<<7,a=0;a<1<<aa[d]-7;a++)ga[256+e++]=d;for(b=0;U>=b;b++)f[b]=0;for(a=0;143>=a;)ea[2*a+1]=8,a++,f[8]++;for(;255>=a;)ea[2*a+1]=9,a++,f[9]++;for(;279>=a;)ea[2*a+1]=7,a++,f[7]++;for(;287>=a;)ea[2*a+1]=8,a++,f[8]++;for(l(ea,Q+1,f),a=0;R>a;a++)fa[2*a+1]=5,fa[2*a]=i(a,5);ka=new na(ea,_,P+1,Q,U),la=new na(fa,aa,0,R,U),ma=new na(new Array(0),ba,0,S,W)}function n(a){var b;for(b=0;Q>b;b++)a.dyn_ltree[2*b]=0;for(b=0;R>b;b++)a.dyn_dtree[2*b]=0;for(b=0;S>b;b++)a.bl_tree[2*b]=0;a.dyn_ltree[2*X]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function o(a){a.bi_valid>8?f(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function p(a,b,c,d){o(a),d&&(f(a,c),f(a,~c)),E.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}function q(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function r(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_len&&q(b,a.heap[e+1],a.heap[e],a.depth)&&e++,!q(b,d,a.heap[e],a.depth));)a.heap[c]=a.heap[e],c=e,e<<=1;a.heap[c]=d}function s(a,b,c){var d,f,i,j,k=0;if(0!==a.last_lit)do d=a.pending_buf[a.d_buf+2*k]<<8|a.pending_buf[a.d_buf+2*k+1],f=a.pending_buf[a.l_buf+k],k++,0===d?h(a,f,b):(i=ha[f],h(a,i+P+1,b),j=_[i],0!==j&&(f-=ia[i],g(a,f,j)),d--,i=e(d),h(a,i,c),j=aa[i],0!==j&&(d-=ja[i],g(a,d,j)));while(k<a.last_lit);h(a,X,b)}function t(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.stat_desc.has_stree,i=b.stat_desc.elems,j=-1;for(a.heap_len=0,a.heap_max=T,c=0;i>c;c++)0!==f[2*c]?(a.heap[++a.heap_len]=j=c,a.depth[c]=0):f[2*c+1]=0;for(;a.heap_len<2;)e=a.heap[++a.heap_len]=2>j?++j:0,f[2*e]=1,a.depth[e]=0,a.opt_len--,h&&(a.static_len-=g[2*e+1]);for(b.max_code=j,c=a.heap_len>>1;c>=1;c--)r(a,f,c);e=i;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],r(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,r(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],k(a,b),l(f,j,a.bl_count)}
8function u(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[2*(c+1)+1]=65535,d=0;c>=d;d++)e=g,g=b[2*(d+1)+1],++h<i&&e===g||(j>h?a.bl_tree[2*e]+=h:0!==e?(e!==f&&a.bl_tree[2*e]++,a.bl_tree[2*Y]++):10>=h?a.bl_tree[2*Z]++:a.bl_tree[2*$]++,h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4))}function v(a,b,c){var d,e,f=-1,i=b[1],j=0,k=7,l=4;for(0===i&&(k=138,l=3),d=0;c>=d;d++)if(e=i,i=b[2*(d+1)+1],!(++j<k&&e===i)){if(l>j){do h(a,e,a.bl_tree);while(0!==--j)}else 0!==e?(e!==f&&(h(a,e,a.bl_tree),j--),h(a,Y,a.bl_tree),g(a,j-3,2)):10>=j?(h(a,Z,a.bl_tree),g(a,j-3,3)):(h(a,$,a.bl_tree),g(a,j-11,7));j=0,f=e,0===i?(k=138,l=3):e===i?(k=6,l=3):(k=7,l=4)}}function w(a){var b;for(u(a,a.dyn_ltree,a.l_desc.max_code),u(a,a.dyn_dtree,a.d_desc.max_code),t(a,a.bl_desc),b=S-1;b>=3&&0===a.bl_tree[2*ca[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}function x(a,b,c,d){var e;for(g(a,b-257,5),g(a,c-1,5),g(a,d-4,4),e=0;d>e;e++)g(a,a.bl_tree[2*ca[e]+1],3);v(a,a.dyn_ltree,b-1),v(a,a.dyn_dtree,c-1)}function y(a){var b,c=4093624447;for(b=0;31>=b;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return G;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return H;for(b=32;P>b;b++)if(0!==a.dyn_ltree[2*b])return H;return G}function z(a){pa||(m(),pa=!0),a.l_desc=new oa(a.dyn_ltree,ka),a.d_desc=new oa(a.dyn_dtree,la),a.bl_desc=new oa(a.bl_tree,ma),a.bi_buf=0,a.bi_valid=0,n(a)}function A(a,b,c,d){g(a,(J<<1)+(d?1:0),3),p(a,b,c,!0)}function B(a){g(a,K<<1,3),h(a,X,ea),j(a)}function C(a,b,c,d){var e,f,h=0;a.level>0?(a.strm.data_type===I&&(a.strm.data_type=y(a)),t(a,a.l_desc),t(a,a.d_desc),h=w(a),e=a.opt_len+3+7>>>3,f=a.static_len+3+7>>>3,e>=f&&(e=f)):e=f=c+5,e>=c+4&&-1!==b?A(a,b,c,d):a.strategy===F||f===e?(g(a,(K<<1)+(d?1:0),3),s(a,ea,fa)):(g(a,(L<<1)+(d?1:0),3),x(a,a.l_desc.max_code+1,a.d_desc.max_code+1,h+1),s(a,a.dyn_ltree,a.dyn_dtree)),n(a),d&&o(a)}function D(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[2*(ha[c]+P+1)]++,a.dyn_dtree[2*e(b)]++),a.last_lit===a.lit_bufsize-1}var E=a("../utils/common"),F=4,G=0,H=1,I=2,J=0,K=1,L=2,M=3,N=258,O=29,P=256,Q=P+1+O,R=30,S=19,T=2*Q+1,U=15,V=16,W=7,X=256,Y=16,Z=17,$=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],aa=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ba=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ca=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],da=512,ea=new Array(2*(Q+2));d(ea);var fa=new Array(2*R);d(fa);var ga=new Array(da);d(ga);var ha=new Array(N-M+1);d(ha);var ia=new Array(O);d(ia);var ja=new Array(R);d(ja);var ka,la,ma,na=function(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length},oa=function(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b},pa=!1;c._tr_init=z,c._tr_stored_block=A,c._tr_flush_block=C,c._tr_tally=D,c._tr_align=B},{"../utils/common":27}],39:[function(a,b){"use strict";function c(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}b.exports=c},{}]},{},[9])(9)}),!function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZipUtils=a():"undefined"!=typeof global?global.JSZipUtils=a():"undefined"!=typeof self&&(self.JSZipUtils=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b){"use strict";function c(){try{return new window.XMLHttpRequest}catch(a){}}function d(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}var e={};e._getBinaryFromXHR=function(a){return a.response||a.responseText};var f=window.ActiveXObject?function(){return c()||d()}:c;e.getBinaryContent=function(a,b){try{var c=f();c.open("GET",a,!0),"responseType"in c&&(c.responseType="arraybuffer"),c.overrideMimeType&&c.overrideMimeType("text/plain;
8 charset=x-user-defined"),c.onreadystatechange=function(){var d,f;if(4===c.readyState)if(200===c.status||0===c.status){d=null,f=null;try{d=e._getBinaryFromXHR(c)}catch(g){f=new Error(g)}b(f,d)}else b(new Error("Ajax error for "+a+" : "+this.status+" "+this.statusText),null)},c.send()}catch(d){b(new Error(d),null)}},b.exports=e},{}]},{},[1])(1)}),function(){function a(a,b){if(a!==b){var c=null===a,d=a===w,e=a===a,f=null===b,g=b===w,h=b===b;if(a>b&&!f||!e||c&&!g&&h||d&&h)return 1;if(b>a&&!c||!h||f&&!d&&e||g&&e)return-1}return 0}function b(a,b,c){for(var d=a.length,e=c?d:-1;c?e--:++e<d;)if(b(a[e],e,a))return e;return-1}function c(a,b,c){if(b!==b)return n(a,c);for(var d=c-1,e=a.length;++d<e;)if(a[d]===b)return d;return-1}function d(a){return"function"==typeof a||!1}function e(a){return null==a?"":a+""}function f(a,b){for(var c=-1,d=a.length;++c<d&&b.indexOf(a.charAt(c))>-1;);return c}function g(a,b){for(var c=a.length;c--&&b.indexOf(a.charAt(c))>-1;);return c}function h(b,c){return a(b.criteria,c.criteria)||b.index-c.index}function i(b,c,d){for(var e=-1,f=b.criteria,g=c.criteria,h=f.length,i=d.length;++e<h;){var j=a(f[e],g[e]);if(j){if(e>=i)return j;var k=d[e];return j*("asc"===k||k===!0?1:-1)}}return b.index-c.index}function j(a){return Pa[a]}function k(a){return Qa[a]}function l(a,b,c){return b?a=Ta[a]:c&&(a=Ua[a]),"\\"+a}function m(a){return"\\"+Ua[a]}function n(a,b,c){for(var d=a.length,e=b+(c?0:-1);c?e--:++e<d;){var f=a[e];if(f!==f)return e}return-1}function o(a){return!!a&&"object"==typeof a}function p(a){return 160>=a&&a>=9&&13>=a||32==a||160==a||5760==a||6158==a||a>=8192&&(8202>=a||8232==a||8233==a||8239==a||8287==a||12288==a||65279==a)}function q(a,b){for(var c=-1,d=a.length,e=-1,f=[];++c<d;)a[c]===b&&(a[c]=P,f[++e]=c);return f}function r(a,b){for(var c,d=-1,e=a.length,f=-1,g=[];++d<e;){var h=a[d],i=b?b(h,d,a):h;d&&c===i||(c=i,g[++f]=h)}return g}function s(a){for(var b=-1,c=a.length;++b<c&&p(a.charCodeAt(b)););return b}function t(a){for(var b=a.length;b--&&p(a.charCodeAt(b)););return b}function u(a){return Ra[a]}function v(p){function W(a){if(o(a)&&!Ch(a)&&!(a instanceof Pa)){if(a instanceof aa)return a;if(ag.call(a,"__chain__")&&ag.call(a,"__wrapped__"))return md(a)}return new aa(a)}function $(){}function aa(a,b,c){this.__wrapped__=a,this.__actions__=c||[],this.__chain__=!!b}function Pa(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Bg,this.__views__=[]}function Qa(){var a=new Pa(this.__wrapped__);return a.__actions__=cb(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=cb(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=cb(this.__views__),a}function Ra(){if(this.__filtered__){var a=new Pa(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Sa(){var a=this.__wrapped__.value(),b=this.__dir__,c=Ch(a),d=0>b,e=c?a.length:0,f=Tc(0,e,this.__views__),g=f.start,h=f.end,i=h-g,j=d?h:g-1,k=this.__iteratees__,l=k.length,m=0,n=wg(i,this.__takeCount__);if(!c||L>e||e==i&&n==i)return cc(a,this.__actions__);var o=[];a:for(;i--&&n>m;){j+=b;for(var p=-1,q=a[j];++p<l;){var r=k[p],s=r.iteratee,t=r.type,u=s(q);if(t==N)q=u;else if(!u){if(t==M)continue a;break a}}o[m++]=q}return o}function Ta(){this.__data__={}}function Ua(a){return this.has(a)&&delete this.__data__[a]}function Va(a){return"__proto__"==a?w:this.__data__[a]}function Wa(a){return"__proto__"!=a&&ag.call(this.__data__,a)}function Xa(a,b){return"__proto__"!=a&&(this.__data__[a]=b),this}function Ya(a){var b=a?a.length:0;for(this.data={hash:qg(null),set:new kg};b--;)this.push(a[b])}function Za(a,b){var c=a.data,d="string"==typeof b||He(b)?c.set.has(b):c.hash[b];return d?0:-1}function $a(a){var b=this.data;"string"==typeof a||He(a)?b.set.add(a):b.hash[a]=!0}function bb(a,b){for(var c=-1,d=a.length,e=-1,f=b.length,g=Of(d+f);++c<d;)g[c]=a[c];for(;++e<f;)g[c++]=b[e];return g}function cb(a,b){var c=-1,d=a.length;for(b||(b=Of(d));++c<d;)b[c]=a[c];return b}function db(a,b){for(var c=-1,d=a.length;++c<d&&b(a[c],c,a)!==!1;);return a}function eb(a,b){for(var c=a.length;c--&&b(a[c],c,a)!==!1;);return a}function fb(a,b){for(var c=-1,d=a.length;++c<d;)if(!b(a[c],c,a))return!1;return!0}
8function gb(a,b,c,d){for(var e=-1,f=a.length,g=d,h=g;++e<f;){var i=a[e],j=+b(i);c(j,g)&&(g=j,h=i)}return h}function hb(a,b){for(var c=-1,d=a.length,e=-1,f=[];++c<d;){var g=a[c];b(g,c,a)&&(f[++e]=g)}return f}function ib(a,b){for(var c=-1,d=a.length,e=Of(d);++c<d;)e[c]=b(a[c],c,a);return e}function jb(a,b){for(var c=-1,d=b.length,e=a.length;++c<d;)a[e+c]=b[c];return a}function kb(a,b,c,d){var e=-1,f=a.length;for(d&&f&&(c=a[++e]);++e<f;)c=b(c,a[e],e,a);return c}function lb(a,b,c,d){var e=a.length;for(d&&e&&(c=a[--e]);e--;)c=b(c,a[e],e,a);return c}function mb(a,b){for(var c=-1,d=a.length;++c<d;)if(b(a[c],c,a))return!0;return!1}function nb(a,b){for(var c=a.length,d=0;c--;)d+=+b(a[c])||0;return d}function ob(a,b){return a===w?b:a}function pb(a,b,c,d){return a!==w&&ag.call(d,c)?a:b}function qb(a,b,c){for(var d=-1,e=Nh(b),f=e.length;++d<f;){var g=e[d],h=a[g],i=c(h,b[g],g,a,b);(i===i?i===h:h!==h)&&(h!==w||g in a)||(a[g]=i)}return a}function rb(a,b){return null==b?a:tb(b,Nh(b),a)}function sb(a,b){for(var c=-1,d=null==a,e=!d&&Yc(a),f=e?a.length:0,g=b.length,h=Of(g);++c<g;){var i=b[c];h[c]=e?Zc(i,f)?a[i]:w:d?w:a[i]}return h}function tb(a,b,c){c||(c={});for(var d=-1,e=b.length;++d<e;){var f=b[d];c[f]=a[f]}return c}function ub(a,b,c){var d=typeof a;return"function"==d?b===w?a:fc(a,b,c):null==a?Bf:"object"==d?Nb(a):b===w?Hf(a):Ob(a,b)}function vb(a,b,c,d,e,f,g){var h;if(c&&(h=e?c(a,d,e):c(a)),h!==w)return h;if(!He(a))return a;var i=Ch(a);if(i){if(h=Uc(a),!b)return cb(a,h)}else{var j=cg.call(a),k=j==V;if(j!=Y&&j!=Q&&(!k||e))return Oa[j]?Wc(a,j,b):e?a:{};if(h=Vc(k?{}:a),!b)return rb(h,a)}f||(f=[]),g||(g=[]);for(var l=f.length;l--;)if(f[l]==a)return g[l];return f.push(a),g.push(h),(i?db:Fb)(a,function(d,e){h[e]=vb(d,b,c,e,a,f,g)}),h}function wb(a,b,c){if("function"!=typeof a)throw new Xf(O);return lg(function(){a.apply(w,c)},b)}function xb(a,b){var d=a?a.length:0,e=[];if(!d)return e;var f=-1,g=Qc(),h=g===c,i=h&&b.length>=L?oc(b):null,j=b.length;i&&(g=Za,h=!1,b=i);a:for(;++f<d;){var k=a[f];if(h&&k===k){for(var l=j;l--;)if(b[l]===k)continue a;e.push(k)}else g(b,k,0)<0&&e.push(k)}return e}function yb(a,b){var c=!0;return Jg(a,function(a,d,e){return c=!!b(a,d,e)}),c}function zb(a,b,c,d){var e=d,f=e;return Jg(a,function(a,g,h){var i=+b(a,g,h);(c(i,e)||i===d&&i===f)&&(e=i,f=a)}),f}function Ab(a,b,c,d){var e=a.length;for(c=null==c?0:+c||0,0>c&&(c=-c>e?0:e+c),d=d===w||d>e?e:+d||0,0>d&&(d+=e),e=c>d?0:d>>>0,c>>>=0;e>c;)a[c++]=b;return a}function Bb(a,b){var c=[];return Jg(a,function(a,d,e){b(a,d,e)&&c.push(a)}),c}function Cb(a,b,c,d){var e;return c(a,function(a,c,f){return b(a,c,f)?(e=d?c:a,!1):void 0}),e}function Db(a,b,c,d){d||(d=[]);for(var e=-1,f=a.length;++e<f;){var g=a[e];o(g)&&Yc(g)&&(c||Ch(g)||ye(g))?b?Db(g,b,c,d):jb(d,g):c||(d[d.length]=g)}return d}function Eb(a,b){return Lg(a,b,_e)}function Fb(a,b){return Lg(a,b,Nh)}function Gb(a,b){return Mg(a,b,Nh)}function Hb(a,b){for(var c=-1,d=b.length,e=-1,f=[];++c<d;){var g=b[c];Ge(a[g])&&(f[++e]=g)}return f}function Ib(a,b,c){if(null!=a){c!==w&&c in kd(a)&&(b=[c]);for(var d=0,e=b.length;null!=a&&e>d;)a=a[b[d++]];return d&&d==e?a:w}}function Jb(a,b,c,d,e,f){return a===b?!0:null==a||null==b||!He(a)&&!o(b)?a!==a&&b!==b:Kb(a,b,Jb,c,d,e,f)}function Kb(a,b,c,d,e,f,g){var h=Ch(a),i=Ch(b),j=R,k=R;h||(j=cg.call(a),j==Q?j=Y:j!=Y&&(h=Qe(a))),i||(k=cg.call(b),k==Q?k=Y:k!=Y&&(i=Qe(b)));var l=j==Y,m=k==Y,n=j==k;if(n&&!h&&!l)return Mc(a,b,j);if(!e){var o=l&&ag.call(a,"__wrapped__"),p=m&&ag.call(b,"__wrapped__");
8if(o||p)return c(o?a.value():a,p?b.value():b,d,e,f,g)}if(!n)return!1;f||(f=[]),g||(g=[]);for(var q=f.length;q--;)if(f[q]==a)return g[q]==b;f.push(a),g.push(b);var r=(h?Lc:Nc)(a,b,c,d,e,f,g);return f.pop(),g.pop(),r}function Lb(a,b,c){var d=b.length,e=d,f=!c;if(null==a)return!e;for(a=kd(a);d--;){var g=b[d];if(f&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++d<e;){g=b[d];var h=g[0],i=a[h],j=g[1];if(f&&g[2]){if(i===w&&!(h in a))return!1}else{var k=c?c(i,j,h):w;if(!(k===w?Jb(j,i,c,!0):k))return!1}}return!0}function Mb(a,b){var c=-1,d=Yc(a)?Of(a.length):[];return Jg(a,function(a,e,f){d[++c]=b(a,e,f)}),d}function Nb(a){var b=Rc(a);if(1==b.length&&b[0][2]){var c=b[0][0],d=b[0][1];return function(a){return null==a?!1:a[c]===d&&(d!==w||c in kd(a))}}return function(a){return Lb(a,b)}}function Ob(a,b){var c=Ch(a),d=_c(a)&&cd(b),e=a+"";return a=ld(a),function(f){if(null==f)return!1;var g=e;if(f=kd(f),!(!c&&d||g in f)){if(f=1==a.length?f:Ib(f,Wb(a,0,-1)),null==f)return!1;g=zd(a),f=kd(f)}return f[g]===b?b!==w||g in f:Jb(b,f[g],w,!0)}}function Pb(a,b,c,d,e){if(!He(a))return a;var f=Yc(b)&&(Ch(b)||Qe(b)),g=f?w:Nh(b);return db(g||b,function(h,i){if(g&&(i=h,h=b[i]),o(h))d||(d=[]),e||(e=[]),Qb(a,b,i,Pb,c,d,e);else{var j=a[i],k=c?c(j,h,i,a,b):w,l=k===w;l&&(k=h),k===w&&(!f||i in a)||!l&&(k===k?k===j:j!==j)||(a[i]=k)}}),a}function Qb(a,b,c,d,e,f,g){for(var h=f.length,i=b[c];h--;)if(f[h]==i)return void(a[c]=g[h]);var j=a[c],k=e?e(j,i,c,a,b):w,l=k===w;l&&(k=i,Yc(i)&&(Ch(i)||Qe(i))?k=Ch(j)?j:Yc(j)?cb(j):[]:Ne(i)||ye(i)?k=ye(j)?Ve(j):Ne(j)?j:{}:l=!1),f.push(i),g.push(k),l?a[c]=d(k,i,e,f,g):(k===k?k!==j:j===j)&&(a[c]=k)}function Rb(a){return function(b){return null==b?w:b[a]}}function Sb(a){var b=a+"";return a=ld(a),function(c){return Ib(c,a,b)}}function Tb(a,b){for(var c=a?b.length:0;c--;){var d=b[c];if(d!=e&&Zc(d)){var e=d;mg.call(a,d,1)}}return a}function Ub(a,b){return a+rg(zg()*(b-a+1))}function Vb(a,b,c,d,e){return e(a,function(a,e,f){c=d?(d=!1,a):b(c,a,e,f)}),c}function Wb(a,b,c){var d=-1,e=a.length;b=null==b?0:+b||0,0>b&&(b=-b>e?0:e+b),c=c===w||c>e?e:+c||0,0>c&&(c+=e),e=b>c?0:c-b>>>0,b>>>=0;for(var f=Of(e);++d<e;)f[d]=a[d+b];return f}function Xb(a,b){var c;return Jg(a,function(a,d,e){return c=b(a,d,e),!c}),!!c}function Yb(a,b){var c=a.length;for(a.sort(b);c--;)a[c]=a[c].value;return a}function Zb(a,b,c){var d=Oc(),e=-1;b=ib(b,function(a){return d(a)});var f=Mb(a,function(a){var c=ib(b,function(b){return b(a)});return{criteria:c,index:++e,value:a}});return Yb(f,function(a,b){return i(a,b,c)})}function $b(a,b){var c=0;return Jg(a,function(a,d,e){c+=+b(a,d,e)||0}),c}function _b(a,b){var d=-1,e=Qc(),f=a.length,g=e===c,h=g&&f>=L,i=h?oc():null,j=[];i?(e=Za,g=!1):(h=!1,i=b?[]:j);a:for(;++d<f;){var k=a[d],l=b?b(k,d,a):k;if(g&&k===k){for(var m=i.length;m--;)if(i[m]===l)continue a;b&&i.push(l),j.push(k)}else e(i,l,0)<0&&((b||h)&&i.push(l),j.push(k))}return j}function ac(a,b){for(var c=-1,d=b.length,e=Of(d);++c<d;)e[c]=a[b[c]];return e}function bc(a,b,c,d){for(var e=a.length,f=d?e:-1;(d?f--:++f<e)&&b(a[f],f,a););return c?Wb(a,d?0:f,d?f+1:e):Wb(a,d?f+1:0,d?e:f)}function cc(a,b){var c=a;c instanceof Pa&&(c=c.value());for(var d=-1,e=b.length;++d<e;){var f=b[d];c=f.func.apply(f.thisArg,jb([c],f.args))}return c}function dc(a,b,c){var d=0,e=a?a.length:d;if("number"==typeof b&&b===b&&Eg>=e){for(;e>d;){var f=d+e>>>1,g=a[f];(c?b>=g:b>g)&&null!==g?d=f+1:e=f}return e}return ec(a,b,Bf,c)}function ec(a,b,c,d){b=c(b);for(var e=0,f=a?a.length:0,g=b!==b,h=null===b,i=b===w;f>e;){var j=rg((e+f)/2),k=c(a[j]),l=k!==w,m=k===k;if(g)var n=m||d;else n=h?m&&l&&(d||null!=k):i?m&&(d||l):null==k?!1:d?b>=k:b>k;n?e=j+1:f=j}return wg(f,Dg)}function fc(a,b,c){if("function"!=typeof a)return Bf;if(b===w)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 3:return function(c,d,e){return a.call(b,c,d,e)};case 4:return function(c,d,e,f){return a.call(b,c,d,e,f)};case 5:return function(c,d,e,f,g){return a.call(b,c,d,e,f,g)}}return function(){return a.apply(b,arguments)}}function gc(a){var b=new fg(a.byteLength),c=new ng(b);return c.set(new ng(a)),b}function hc(a,b,c){for(var d=c.length,e=-1,f=vg(a.length-d,0),g=-1,h=b.length,i=Of(h+f);++g<h;)i[g]=b[g];for(;++e<d;)i[c[e]]=a[e];for(;f--;)i[g++]=a[e++];return i}function ic(a,b,c){for(var d=-1,e=c.length,f=-1,g=vg(a.length-e,0),h=-1,i=b.length,j=Of(g+i);++f<g;)j[f]=a[f];for(var k=f;++h<i;)j[k+h]=b[h];for(;++d<e;)j[k+c[d]]=a[f++];return j}function jc(a,b){return function(c,d,e){var f=b?b():{};if(d=Oc(d,e,3),Ch(c))for(var g=-1,h=c.length;++g<h;){var i=c[g];a(f,i,d(i,g,c),c)}else Jg(c,function(b,c,e){a(f,b,d(b,c,e),e)});return f}}function kc(a){return qe(function(b,c){var d=-1,e=null==b?0:c.length,f=e>2?c[e-2]:w,g=e>2?c[2]:w,h=e>1?c[e-1]:w;for("function"==typeof f?(f=fc(f,h,5),e-=2):(f="function"==typeof h?h:w,e-=f?1:0),g&&$c(c[0],c[1],g)&&(f=3>e?w:f,e=1);++d<e;){var i=c[d];i&&a(b,i,f)}return b})}function lc(a,b){return function(c,d){var e=c?Pg(c):0;if(!bd(e))return a(c,d);for(var f=b?e:-1,g=kd(c);(b?f--:++f<e)&&d(g[f],f,g)!==!1;);return c}}function mc(a){return function(b,c,d){for(var e=kd(b),f=d(b),g=f.length,h=a?g:-1;a?h--:++h<g;){var i=f[h];if(c(e[i],i,e)===!1)break}return b}}function nc(a,b){function c(){var e=this&&this!==_a&&this instanceof c?d:a;return e.apply(b,arguments)}var d=qc(a);return c}function oc(a){return qg&&kg?new Ya(a):null}function pc(a){return function(b){for(var c=-1,d=yf(kf(b)),e=d.length,f="";++c<e;)f=a(f,d[c],c);return f}}function qc(a){return function(){var b=arguments;switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3]);case 5:return new a(b[0],b[1],b[2],b[3],b[4]);case 6:return new a(b[0],b[1],b[2],b[3],b[4],b[5]);case 7:return new a(b[0],b[1],b[2],b[3],b[4],b[5],b[6])}var c=Ig(a.prototype),d=a.apply(c,b);return He(d)?d:c}}function rc(a){function b(c,d,e){e&&$c(c,d,e)&&(d=w);var f=Kc(c,a,w,w,w,w,w,d);return f.placeholder=b.placeholder,f}return b}function sc(a,b){return qe(function(c){var d=c[0];return null==d?d:(c.push(b),a.apply(w,c))})}function tc(a,b){return function(c,d,e){if(e&&$c(c,d,e)&&(d=w),d=Oc(d,e,3),1==d.length){c=Ch(c)?c:jd(c);var f=gb(c,d,a,b);if(!c.length||f!==b)return f}return zb(c,d,a,b)}}function uc(a,c){return function(d,e,f){if(e=Oc(e,f,3),Ch(d)){var g=b(d,e,c);return g>-1?d[g]:w}return Cb(d,e,a)}}
8function vc(a){return function(c,d,e){return c&&c.length?(d=Oc(d,e,3),b(c,d,a)):-1}}function wc(a){return function(b,c,d){return c=Oc(c,d,3),Cb(b,c,a,!0)}}function xc(a){return function(){for(var b,c=arguments.length,d=a?c:-1,e=0,f=Of(c);a?d--:++d<c;){var g=f[e++]=arguments[d];if("function"!=typeof g)throw new Xf(O);!b&&aa.prototype.thru&&"wrapper"==Pc(g)&&(b=new aa([],!0))}for(d=b?-1:c;++d<c;){g=f[d];var h=Pc(g),i="wrapper"==h?Og(g):w;b=i&&ad(i[0])&&i[1]==(F|B|D|G)&&!i[4].length&&1==i[9]?b[Pc(i[0])].apply(b,i[3]):1==g.length&&ad(g)?b[h]():b.thru(g)}return function(){var a=arguments,d=a[0];if(b&&1==a.length&&Ch(d)&&d.length>=L)return b.plant(d).value();for(var e=0,g=c?f[e].apply(this,a):d;++e<c;)g=f[e].call(this,g);return g}}}function yc(a,b){return function(c,d,e){return"function"==typeof d&&e===w&&Ch(c)?a(c,d):b(c,fc(d,e,3))}}function zc(a){return function(b,c,d){return("function"!=typeof c||d!==w)&&(c=fc(c,d,3)),a(b,c,_e)}}function Ac(a){return function(b,c,d){return("function"!=typeof c||d!==w)&&(c=fc(c,d,3)),a(b,c)}}function Bc(a){return function(b,c,d){var e={};return c=Oc(c,d,3),Fb(b,function(b,d,f){var g=c(b,d,f);d=a?g:d,b=a?b:g,e[d]=b}),e}}function Cc(a){return function(b,c,d){return b=e(b),(a?b:"")+Gc(b,c,d)+(a?"":b)}}function Dc(a){var b=qe(function(c,d){var e=q(d,b.placeholder);return Kc(c,a,w,d,e)});return b}function Ec(a,b){return function(c,d,e,f){var g=arguments.length<3;return"function"==typeof d&&f===w&&Ch(c)?a(c,d,e,g):Vb(c,Oc(d,f,4),e,g,b)}}function Fc(a,b,c,d,e,f,g,h,i,j){function k(){for(var t=arguments.length,u=t,v=Of(t);u--;)v[u]=arguments[u];if(d&&(v=hc(v,d,e)),f&&(v=ic(v,f,g)),o||r){var x=k.placeholder,A=q(v,x);if(t-=A.length,j>t){var B=h?cb(h):w,C=vg(j-t,0),F=o?A:w,G=o?w:A,H=o?v:w,I=o?w:v;b|=o?D:E,b&=~(o?E:D),p||(b&=~(y|z));var J=[a,b,c,H,F,I,G,B,i,C],K=Fc.apply(w,J);return ad(a)&&Qg(K,J),K.placeholder=x,K}}var L=m?c:this,M=n?L[a]:a;return h&&(v=hd(v,h)),l&&i<v.length&&(v.length=i),this&&this!==_a&&this instanceof k&&(M=s||qc(a)),M.apply(L,v)}var l=b&F,m=b&y,n=b&z,o=b&B,p=b&A,r=b&C,s=n?w:qc(a);return k}function Gc(a,b,c){var d=a.length;if(b=+b,d>=b||!tg(b))return"";var e=b-d;return c=null==c?" ":c+"",qf(c,pg(e/c.length)).slice(0,e)}function Hc(a,b,c,d){function e(){for(var b=-1,h=arguments.length,i=-1,j=d.length,k=Of(j+h);++i<j;)k[i]=d[i];for(;h--;)k[i++]=arguments[++b];var l=this&&this!==_a&&this instanceof e?g:a;return l.apply(f?c:this,k)}var f=b&y,g=qc(a);return e}function Ic(a){var b=Sf[a];return function(a,c){return c=c===w?0:+c||0,c?(c=ig(10,c),b(a*c)/c):b(a)}}function Jc(a){return function(b,c,d,e){var f=Oc(d);return null==d&&f===ub?dc(b,c,a):ec(b,c,f(d,e,1),a)}}function Kc(a,b,c,d,e,f,g,h){var i=b&z;if(!i&&"function"!=typeof a)throw new Xf(O);var j=d?d.length:0;if(j||(b&=~(D|E),d=e=w),j-=e?e.length:0,b&E){var k=d,l=e;d=e=w}var m=i?w:Og(a),n=[a,b,c,d,e,k,l,f,g,h];if(m&&(dd(n,m),b=n[1],h=n[9]),n[9]=null==h?i?0:a.length:vg(h-j,0)||0,b==y)var o=nc(n[0],n[2]);else o=b!=D&&b!=(y|D)||n[4].length?Fc.apply(w,n):Hc.apply(w,n);var p=m?Ng:Qg;return p(o,n)}function Lc(a,b,c,d,e,f,g){var h=-1,i=a.length,j=b.length;if(i!=j&&!(e&&j>i))return!1;for(;++h<i;){var k=a[h],l=b[h],m=d?d(e?l:k,e?k:l,h):w;if(m!==w){if(m)continue;return!1}if(e){if(!mb(b,function(a){return k===a||c(k,a,d,e,f,g)}))return!1}else if(k!==l&&!c(k,l,d,e,f,g))return!1}return!0}function Mc(a,b,c){switch(c){case S:case T:return+a==+b;case U:return a.name==b.name&&a.message==b.message;case X:return a!=+a?b!=+b:a==+b;
8case Z:case _:return a==b+""}return!1}function Nc(a,b,c,d,e,f,g){var h=Nh(a),i=h.length,j=Nh(b),k=j.length;if(i!=k&&!e)return!1;for(var l=i;l--;){var m=h[l];if(!(e?m in b:ag.call(b,m)))return!1}for(var n=e;++l<i;){m=h[l];var o=a[m],p=b[m],q=d?d(e?p:o,e?o:p,m):w;if(!(q===w?c(o,p,d,e,f,g):q))return!1;n||(n="constructor"==m)}if(!n){var r=a.constructor,s=b.constructor;if(r!=s&&"constructor"in a&&"constructor"in b&&!("function"==typeof r&&r instanceof r&&"function"==typeof s&&s instanceof s))return!1}return!0}function Oc(a,b,c){var d=W.callback||zf;return d=d===zf?ub:d,c?d(a,b,c):d}function Pc(a){for(var b=a.name+"",c=Hg[b],d=c?c.length:0;d--;){var e=c[d],f=e.func;if(null==f||f==a)return e.name}return b}function Qc(a,b,d){var e=W.indexOf||xd;return e=e===xd?c:e,a?e(a,b,d):e}function Rc(a){for(var b=af(a),c=b.length;c--;)b[c][2]=cd(b[c][1]);return b}function Sc(a,b){var c=null==a?w:a[b];return Ke(c)?c:w}function Tc(a,b,c){for(var d=-1,e=c.length;++d<e;){var f=c[d],g=f.size;switch(f.type){case"drop":a+=g;break;case"dropRight":b-=g;break;case"take":b=wg(b,a+g);break;case"takeRight":a=vg(a,b-g)}}return{start:a,end:b}}function Uc(a){var b=a.length,c=new a.constructor(b);return b&&"string"==typeof a[0]&&ag.call(a,"index")&&(c.index=a.index,c.input=a.input),c}function Vc(a){var b=a.constructor;return"function"==typeof b&&b instanceof b||(b=Uf),new b}function Wc(a,b,c){var d=a.constructor;switch(b){case ba:return gc(a);case S:case T:return new d(+a);case ca:case da:case ea:case fa:case ga:case ha:case ia:case ja:case ka:var e=a.buffer;return new d(c?gc(e):e,a.byteOffset,a.length);case X:case _:return new d(a);case Z:var f=new d(a.source,Da.exec(a));f.lastIndex=a.lastIndex}return f}function Xc(a,b,c){null==a||_c(b,a)||(b=ld(b),a=1==b.length?a:Ib(a,Wb(b,0,-1)),b=zd(b));var d=null==a?a:a[b];return null==d?w:d.apply(a,c)}function Yc(a){return null!=a&&bd(Pg(a))}function Zc(a,b){return a="number"==typeof a||Ga.test(a)?+a:-1,b=null==b?Fg:b,a>-1&&a%1==0&&b>a}function $c(a,b,c){if(!He(c))return!1;var d=typeof b;if("number"==d?Yc(c)&&Zc(b,c.length):"string"==d&&b in c){var e=c[b];return a===a?a===e:e!==e}return!1}function _c(a,b){var c=typeof a;if("string"==c&&wa.test(a)||"number"==c)return!0;if(Ch(a))return!1;var d=!va.test(a);return d||null!=b&&a in kd(b)}function ad(a){var b=Pc(a),c=W[b];if("function"!=typeof c||!(b in Pa.prototype))return!1;if(a===c)return!0;var d=Og(c);return!!d&&a===d[0]}function bd(a){return"number"==typeof a&&a>-1&&a%1==0&&Fg>=a}function cd(a){return a===a&&!He(a)}function dd(a,b){var c=a[1],d=b[1],e=c|d,f=F>e,g=d==F&&c==B||d==F&&c==G&&a[7].length<=b[8]||d==(F|G)&&c==B;if(!f&&!g)return a;d&y&&(a[2]=b[2],e|=c&y?0:A);var h=b[3];if(h){var i=a[3];a[3]=i?hc(i,h,b[4]):cb(h),a[4]=i?q(a[3],P):cb(b[4])}return h=b[5],h&&(i=a[5],a[5]=i?ic(i,h,b[6]):cb(h),a[6]=i?q(a[5],P):cb(b[6])),h=b[7],h&&(a[7]=cb(h)),d&F&&(a[8]=null==a[8]?b[8]:wg(a[8],b[8])),null==a[9]&&(a[9]=b[9]),a[0]=b[0],a[1]=e,a}function ed(a,b){return a===w?b:Dh(a,b,ed)}function fd(a,b){a=kd(a);for(var c=-1,d=b.length,e={};++c<d;){var f=b[c];f in a&&(e[f]=a[f])}return e}function gd(a,b){var c={};return Eb(a,function(a,d,e){b(a,d,e)&&(c[d]=a)}),c}function hd(a,b){for(var c=a.length,d=wg(b.length,c),e=cb(a);d--;){var f=b[d];a[d]=Zc(f,c)?e[f]:w}return a}function id(a){for(var b=_e(a),c=b.length,d=c&&a.length,e=!!d&&bd(d)&&(Ch(a)||ye(a)),f=-1,g=[];++f<c;){var h=b[f];(e&&Zc(h,d)||ag.call(a,h))&&g.push(h)}return g}function jd(a){return null==a?[]:Yc(a)?He(a)?a:Uf(a):ef(a)}function kd(a){return He(a)?a:Uf(a)}function ld(a){if(Ch(a))return a;var b=[];return e(a).replace(xa,function(a,c,d,e){b.push(d?e.replace(Ba,"$1"):c||a)}),b}function md(a){return a instanceof Pa?a.clone():new aa(a.__wrapped__,a.__chain__,cb(a.__actions__))}function nd(a,b,c){b=(c?$c(a,b,c):null==b)?1:vg(rg(b)||1,1);for(var d=0,e=a?a.length:0,f=-1,g=Of(pg(e/b));e>d;)g[++f]=Wb(a,d,d+=b);return g}function od(a){for(var b=-1,c=a?a.length:0,d=-1,e=[];++b<c;){var f=a[b];f&&(e[++d]=f)}return e}function pd(a,b,c){var d=a?a.length:0;return d?((c?$c(a,b,c):null==b)&&(b=1),Wb(a,0>b?0:b)):[]}function qd(a,b,c){var d=a?a.length:0;return d?((c?$c(a,b,c):null==b)&&(b=1),b=d-(+b||0),Wb(a,0,0>b?0:b)):[]}function rd(a,b,c){return a&&a.length?bc(a,Oc(b,c,3),!0,!0):[]}function sd(a,b,c){return a&&a.length?bc(a,Oc(b,c,3),!0):[]}function td(a,b,c,d){var e=a?a.length:0;return e?(c&&"number"!=typeof c&&$c(a,b,c)&&(c=0,d=e),Ab(a,b,c,d)):[]}function ud(a){return a?a[0]:w}function vd(a,b,c){var d=a?a.length:0;return c&&$c(a,b,c)&&(b=!1),d?Db(a,b):[]}function wd(a){var b=a?a.length:0;return b?Db(a,!0):[]}function xd(a,b,d){var e=a?a.length:0;if(!e)return-1;if("number"==typeof d)d=0>d?vg(e+d,0):d;else if(d){var f=dc(a,b);return e>f&&(b===b?b===a[f]:a[f]!==a[f])?f:-1}return c(a,b,d||0)}function yd(a){return qd(a,1)}function zd(a){var b=a?a.length:0;return b?a[b-1]:w}function Ad(a,b,c){var d=a?a.length:0;if(!d)return-1;var e=d;if("number"==typeof c)e=(0>c?vg(d+c,0):wg(c||0,d-1))+1;else if(c){e=dc(a,b,!0)-1;var f=a[e];return(b===b?b===f:f!==f)?e:-1}if(b!==b)return n(a,e,!0);for(;e--;)if(a[e]===b)return e;return-1}function Bd(){var a=arguments,b=a[0];if(!b||!b.length)return b;for(var c=0,d=Qc(),e=a.length;++c<e;)for(var f=0,g=a[c];(f=d(b,g,f))>-1;)mg.call(b,f,1);return b}function Cd(a,b,c){var d=[];if(!a||!a.length)return d;var e=-1,f=[],g=a.length;for(b=Oc(b,c,3);++e<g;){var h=a[e];
8b(h,e,a)&&(d.push(h),f.push(e))}return Tb(a,f),d}function Dd(a){return pd(a,1)}function Ed(a,b,c){var d=a?a.length:0;return d?(c&&"number"!=typeof c&&$c(a,b,c)&&(b=0,c=d),Wb(a,b,c)):[]}function Fd(a,b,c){var d=a?a.length:0;return d?((c?$c(a,b,c):null==b)&&(b=1),Wb(a,0,0>b?0:b)):[]}function Gd(a,b,c){var d=a?a.length:0;return d?((c?$c(a,b,c):null==b)&&(b=1),b=d-(+b||0),Wb(a,0>b?0:b)):[]}function Hd(a,b,c){return a&&a.length?bc(a,Oc(b,c,3),!1,!0):[]}function Id(a,b,c){return a&&a.length?bc(a,Oc(b,c,3)):[]}function Jd(a,b,d,e){var f=a?a.length:0;if(!f)return[];null!=b&&"boolean"!=typeof b&&(e=d,d=$c(a,b,e)?w:b,b=!1);var g=Oc();return(null!=d||g!==ub)&&(d=g(d,e,3)),b&&Qc()===c?r(a,d):_b(a,d)}function Kd(a){if(!a||!a.length)return[];var b=-1,c=0;a=hb(a,function(a){return Yc(a)?(c=vg(a.length,c),!0):void 0});for(var d=Of(c);++b<c;)d[b]=ib(a,Rb(b));return d}function Ld(a,b,c){var d=a?a.length:0;if(!d)return[];var e=Kd(a);return null==b?e:(b=fc(b,c,4),ib(e,function(a){return kb(a,b,w,!0)}))}function Md(){for(var a=-1,b=arguments.length;++a<b;){var c=arguments[a];if(Yc(c))var d=d?jb(xb(d,c),xb(c,d)):c}return d?_b(d):[]}function Nd(a,b){var c=-1,d=a?a.length:0,e={};
8for(!d||b||Ch(a[0])||(b=[]);++c<d;){var f=a[c];b?e[f]=b[c]:f&&(e[f[0]]=f[1])}return e}function Od(a){var b=W(a);return b.__chain__=!0,b}function Pd(a,b,c){return b.call(c,a),a}function Qd(a,b,c){return b.call(c,a)}function Rd(){return Od(this)}function Sd(){return new aa(this.value(),this.__chain__)}function Td(a){for(var b,c=this;c instanceof $;){var d=md(c);b?e.__wrapped__=d:b=d;var e=d;c=c.__wrapped__}return e.__wrapped__=a,b}function Ud(){var a=this.__wrapped__,b=function(a){return a.reverse()};if(a instanceof Pa){var c=a;return this.__actions__.length&&(c=new Pa(this)),c=c.reverse(),c.__actions__.push({func:Qd,args:[b],thisArg:w}),new aa(c,this.__chain__)}return this.thru(b)}function Vd(){return this.value()+""}function Wd(){return cc(this.__wrapped__,this.__actions__)}function Xd(a,b,c){var d=Ch(a)?fb:yb;return c&&$c(a,b,c)&&(b=w),("function"!=typeof b||c!==w)&&(b=Oc(b,c,3)),d(a,b)}function Yd(a,b,c){var d=Ch(a)?hb:Bb;return b=Oc(b,c,3),d(a,b)}function Zd(a,b){return dh(a,Nb(b))}function $d(a,b,c,d){var e=a?Pg(a):0;return bd(e)||(a=ef(a),e=a.length),c="number"!=typeof c||d&&$c(b,c,d)?0:0>c?vg(e+c,0):c||0,"string"==typeof a||!Ch(a)&&Pe(a)?e>=c&&a.indexOf(b,c)>-1:!!e&&Qc(a,b,c)>-1; 9 10}function _d(a,b,c){var d=Ch(a)?ib:Mb;return b=Oc(b,c,3),d(a,b)}function ae(a,b){return _d(a,Hf(b))}function be(a,b,c){var d=Ch(a)?hb:Bb;return b=Oc(b,c,3),d(a,function(a,c,d){return!b(a,c,d)})}function ce(a,b,c){if(c?$c(a,b,c):null==b){a=jd(a);var d=a.length;return d>0?a[Ub(0,d-1)]:w}var e=-1,f=Ue(a),d=f.length,g=d-1;for(b=wg(0>b?0:+b||0,d);++e<b;){var h=Ub(e,g),i=f[h];f[h]=f[e],f[e]=i}return f.length=b,f}function de(a){return ce(a,Bg)}function ee(a){var b=a?Pg(a):0;return bd(b)?b:Nh(a).length}function fe(a,b,c){var d=Ch(a)?mb:Xb;return c&&$c(a,b,c)&&(b=w),("function"!=typeof b||c!==w)&&(b=Oc(b,c,3)),d(a,b)}function ge(a,b,c){if(null==a)return[];c&&$c(a,b,c)&&(b=w);var d=-1;b=Oc(b,c,3);var e=Mb(a,function(a,c,e){return{criteria:b(a,c,e),index:++d,value:a}});return Yb(e,h)}function he(a,b,c,d){return null==a?[]:(d&&$c(b,c,d)&&(c=w),Ch(b)||(b=null==b?[]:[b]),Ch(c)||(c=null==c?[]:[c]),Zb(a,b,c))}function ie(a,b){return Yd(a,Nb(b))}function je(a,b){if("function"!=typeof b){if("function"!=typeof a)throw new Xf(O);var c=a;a=b,b=c}return a=tg(a=+a)?a:0,function(){return--a<1?b.apply(this,arguments):void 0}}function ke(a,b,c){return c&&$c(a,b,c)&&(b=w),b=a&&null==b?a.length:vg(+b||0,0),Kc(a,F,w,w,w,w,b)}function le(a,b){var c;if("function"!=typeof b){if("function"!=typeof a)throw new Xf(O);var d=a;a=b,b=d}return function(){return--a>0&&(c=b.apply(this,arguments)),1>=a&&(b=w),c}}function me(a,b,c){function d(){n&&gg(n),j&&gg(j),p=0,j=n=o=w}function e(b,c){c&&gg(c),j=n=o=w,b&&(p=oh(),k=a.apply(m,i),n||j||(i=m=w))}function f(){var a=b-(oh()-l);0>=a||a>b?e(o,j):n=lg(f,a)}function g(){e(r,n)}function h(){if(i=arguments,l=oh(),m=this,o=r&&(n||!s),q===!1)var c=s&&!n;else{j||s||(p=l);var d=q-(l-p),e=0>=d||d>q;e?(j&&(j=gg(j)),p=l,k=a.apply(m,i)):j||(j=lg(g,d))}return e&&n?n=gg(n):n||b===q||(n=lg(f,b)),c&&(e=!0,k=a.apply(m,i)),!e||n||j||(i=m=w),k}var i,j,k,l,m,n,o,p=0,q=!1,r=!0;if("function"!=typeof a)throw new Xf(O);if(b=0>b?0:+b||0,c===!0){var s=!0;r=!1}else He(c)&&(s=!!c.leading,q="maxWait"in c&&vg(+c.maxWait||0,b),r="trailing"in c?!!c.trailing:r);return h.cancel=d,h}function ne(a,b){if("function"!=typeof a||b&&"function"!=typeof b)throw new Xf(O);var c=function(){var d=arguments,e=b?b.apply(this,d):d[0],f=c.cache;if(f.has(e))return f.get(e);var g=a.apply(this,d);return c.cache=f.set(e,g),g};return c.cache=new ne.Cache,c}function oe(a){if("function"!=typeof a)throw new Xf(O);return function(){return!a.apply(this,arguments)}}function pe(a){return le(2,a)}function qe(a,b){if("function"!=typeof a)throw new Xf(O);return b=vg(b===w?a.length-1:+b||0,0),function(){for(var c=arguments,d=-1,e=vg(c.length-b,0),f=Of(e);++d<e;)f[d]=c[b+d];switch(b){case 0:return a.call(this,f);case 1:return a.call(this,c[0],f);case 2:return a.call(this,c[0],c[1],f)}var g=Of(b+1);for(d=-1;++d<b;)g[d]=c[d];return g[b]=f,a.apply(this,g)}}function re(a){if("function"!=typeof a)throw new Xf(O);return function(b){return a.apply(this,b)}}function se(a,b,c){var d=!0,e=!0;if("function"!=typeof a)throw new Xf(O);return c===!1?d=!1:He(c)&&(d="leading"in c?!!c.leading:d,e="trailing"in c?!!c.trailing:e),me(a,b,{leading:d,maxWait:+b,trailing:e})}function te(a,b){return b=null==b?Bf:b,Kc(b,D,w,[a],[])}function ue(a,b,c,d){return b&&"boolean"!=typeof b&&$c(a,b,c)?b=!1:"function"==typeof b&&(d=c,c=b,b=!1),"function"==typeof c?vb(a,b,fc(c,d,3)):vb(a,b)}function ve(a,b,c){return"function"==typeof b?vb(a,!0,fc(b,c,3)):vb(a,!0)}function we(a,b){return a>b}function xe(a,b){return a>=b}function ye(a){return o(a)&&Yc(a)&&ag.call(a,"callee")&&!jg.call(a,"callee")}function ze(a){return a===!0||a===!1||o(a)&&cg.call(a)==S}function Ae(a){return o(a)&&cg.call(a)==T}function Be(a){return!!a&&1===a.nodeType&&o(a)&&!Ne(a)}function Ce(a){return null==a?!0:Yc(a)&&(Ch(a)||Pe(a)||ye(a)||o(a)&&Ge(a.splice))?!a.length:!Nh(a).length}function De(a,b,c,d){c="function"==typeof c?fc(c,d,3):w;var e=c?c(a,b):w;return e===w?Jb(a,b,c):!!e}function Ee(a){return o(a)&&"string"==typeof a.message&&cg.call(a)==U}function Fe(a){return"number"==typeof a&&tg(a)}function Ge(a){return He(a)&&cg.call(a)==V}function He(a){var b=typeof a;return!!a&&("object"==b||"function"==b)}function Ie(a,b,c,d){return c="function"==typeof c?fc(c,d,3):w,Lb(a,Rc(b),c)}
10function Je(a){return Me(a)&&a!=+a}function Ke(a){return null==a?!1:Ge(a)?eg.test(_f.call(a)):o(a)&&Fa.test(a)}function Le(a){return null===a}function Me(a){return"number"==typeof a||o(a)&&cg.call(a)==X}function Ne(a){var b;if(!o(a)||cg.call(a)!=Y||ye(a)||!ag.call(a,"constructor")&&(b=a.constructor,"function"==typeof b&&!(b instanceof b)))return!1;var c;return Eb(a,function(a,b){c=b}),c===w||ag.call(a,c)}function Oe(a){return He(a)&&cg.call(a)==Z}function Pe(a){return"string"==typeof a||o(a)&&cg.call(a)==_}function Qe(a){return o(a)&&bd(a.length)&&!!Na[cg.call(a)]}function Re(a){return a===w}function Se(a,b){return b>a}function Te(a,b){return b>=a}function Ue(a){var b=a?Pg(a):0;return bd(b)?b?cb(a):[]:ef(a)}function Ve(a){return tb(a,_e(a))}function We(a,b,c){var d=Ig(a);return c&&$c(a,b,c)&&(b=w),b?rb(d,b):d}function Xe(a){return Hb(a,_e(a))}function Ye(a,b,c){var d=null==a?w:Ib(a,ld(b),b+"");return d===w?c:d}function Ze(a,b){if(null==a)return!1;var c=ag.call(a,b);if(!c&&!_c(b)){if(b=ld(b),a=1==b.length?a:Ib(a,Wb(b,0,-1)),null==a)return!1;b=zd(b),c=ag.call(a,b)}return c||bd(a.length)&&Zc(b,a.length)&&(Ch(a)||ye(a))}function $e(a,b,c){c&&$c(a,b,c)&&(b=w);for(var d=-1,e=Nh(a),f=e.length,g={};++d<f;){var h=e[d],i=a[h];b?ag.call(g,i)?g[i].push(h):g[i]=[h]:g[i]=h}return g}function _e(a){if(null==a)return[];He(a)||(a=Uf(a));var b=a.length;b=b&&bd(b)&&(Ch(a)||ye(a))&&b||0;for(var c=a.constructor,d=-1,e="function"==typeof c&&c.prototype===a,f=Of(b),g=b>0;++d<b;)f[d]=d+"";for(var h in a)g&&Zc(h,b)||"constructor"==h&&(e||!ag.call(a,h))||f.push(h);return f}function af(a){a=kd(a);for(var b=-1,c=Nh(a),d=c.length,e=Of(d);++b<d;){var f=c[b];e[b]=[f,a[f]]}return e}function bf(a,b,c){var d=null==a?w:a[b];return d===w&&(null==a||_c(b,a)||(b=ld(b),a=1==b.length?a:Ib(a,Wb(b,0,-1)),d=null==a?w:a[zd(b)]),d=d===w?c:d),Ge(d)?d.call(a):d}function cf(a,b,c){if(null==a)return a;var d=b+"";b=null!=a[d]||_c(b,a)?[d]:ld(b);for(var e=-1,f=b.length,g=f-1,h=a;null!=h&&++e<f;){var i=b[e];He(h)&&(e==g?h[i]=c:null==h[i]&&(h[i]=Zc(b[e+1])?[]:{})),h=h[i]}return a}function df(a,b,c,d){var e=Ch(a)||Qe(a);if(b=Oc(b,d,4),null==c)if(e||He(a)){var f=a.constructor;c=e?Ch(a)?new f:[]:Ig(Ge(f)?f.prototype:w)}else c={};return(e?db:Fb)(a,function(a,d,e){return b(c,a,d,e)}),c}function ef(a){return ac(a,Nh(a))}function ff(a){return ac(a,_e(a))}function gf(a,b,c){return b=+b||0,c===w?(c=b,b=0):c=+c||0,a>=wg(b,c)&&a<vg(b,c)}function hf(a,b,c){c&&$c(a,b,c)&&(b=c=w);var d=null==a,e=null==b;if(null==c&&(e&&"boolean"==typeof a?(c=a,a=1):"boolean"==typeof b&&(c=b,e=!0)),d&&e&&(b=1,e=!1),a=+a||0,e?(b=a,a=0):b=+b||0,c||a%1||b%1){var f=zg();return wg(a+f*(b-a+hg("1e-"+((f+"").length-1))),b)}return Ub(a,b)}function jf(a){return a=e(a),a&&a.charAt(0).toUpperCase()+a.slice(1)}function kf(a){return a=e(a),a&&a.replace(Ha,j).replace(Aa,"")}function lf(a,b,c){a=e(a),b+="";var d=a.length;return c=c===w?d:wg(0>c?0:+c||0,d),c-=b.length,c>=0&&a.indexOf(b,c)==c}function mf(a){return a=e(a),a&&ra.test(a)?a.replace(pa,k):a}function nf(a){return a=e(a),a&&za.test(a)?a.replace(ya,l):a||"(?:)"}function of(a,b,c){a=e(a),b=+b;var d=a.length;if(d>=b||!tg(b))return a;var f=(b-d)/2,g=rg(f),h=pg(f);return c=Gc("",h,c),c.slice(0,g)+a+c}function pf(a,b,c){return(c?$c(a,b,c):null==b)?b=0:b&&(b=+b),a=tf(a),yg(a,b||(Ea.test(a)?16:10))}function qf(a,b){var c="";if(a=e(a),b=+b,1>b||!a||!tg(b))return c;do b%2&&(c+=a),b=rg(b/2),a+=a;while(b);return c}function rf(a,b,c){return a=e(a),c=null==c?0:wg(0>c?0:+c||0,a.length),a.lastIndexOf(b,c)==c}function sf(a,b,c){var d=W.templateSettings;c&&$c(a,b,c)&&(b=c=w),a=e(a),b=qb(rb({},c||b),d,pb);var f,g,h=qb(rb({},b.imports),d.imports,pb),i=Nh(h),j=ac(h,i),k=0,l=b.interpolate||Ia,n="__p += '",o=Vf((b.escape||Ia).source+"|"+l.source+"|"+(l===ua?Ca:Ia).source+"|"+(b.evaluate||Ia).source+"|$","g"),p="//# sourceURL="+("sourceURL"in b?b.sourceURL:"lodash.templateSources["+ ++Ma+"]")+"\n";a.replace(o,function(b,c,d,e,h,i){return d||(d=e),n+=a.slice(k,i).replace(Ja,m),c&&(f=!0,n+="' +\n__e("+c+") +\n'"),h&&(g=!0,n+="';\n"+h+";\n__p += '"),d&&(n+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),k=i+b.length,b}),n+="';\n";var q=b.variable;q||(n="with (obj) {\n"+n+"\n}\n"),n=(g?n.replace(la,""):n).replace(ma,"$1").replace(na,"$1;"),n="function("+(q||"obj")+") {\n"+(q?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(f?", __e = _.escape":"")+(g?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
10\n")+n+"return __p\n}";var r=Yh(function(){return Rf(i,p+"return "+n).apply(w,j)});if(r.source=n,Ee(r))throw r;return r}function tf(a,b,c){var d=a;return(a=e(a))?(c?$c(d,b,c):null==b)?a.slice(s(a),t(a)+1):(b+="",a.slice(f(a,b),g(a,b)+1)):a}function uf(a,b,c){var d=a;return a=e(a),a?a.slice((c?$c(d,b,c):null==b)?s(a):f(a,b+"")):a}function vf(a,b,c){var d=a;return a=e(a),a?(c?$c(d,b,c):null==b)?a.slice(0,t(a)+1):a.slice(0,g(a,b+"")+1):a}function wf(a,b,c){c&&$c(a,b,c)&&(b=w);var d=H,f=I;if(null!=b)if(He(b)){var g="separator"in b?b.separator:g;d="length"in b?+b.length||0:d,f="omission"in b?e(b.omission):f}else d=+b||0;if(a=e(a),d>=a.length)return a;var h=d-f.length;if(1>h)return f;var i=a.slice(0,h);if(null==g)return i+f;if(Oe(g)){if(a.slice(h).search(g)){var j,k,l=a.slice(0,h);for(g.global||(g=Vf(g.source,(Da.exec(g)||"")+"g")),g.lastIndex=0;j=g.exec(l);)k=j.index;i=i.slice(0,null==k?h:k)}}else if(a.indexOf(g,h)!=h){var m=i.lastIndexOf(g);m>-1&&(i=i.slice(0,m))}return i+f}function xf(a){return a=e(a),a&&qa.test(a)?a.replace(oa,u):a}function yf(a,b,c){return c&&$c(a,b,c)&&(b=w),a=e(a),a.match(b||Ka)||[]}function zf(a,b,c){return c&&$c(a,b,c)&&(b=w),o(a)?Cf(a):ub(a,b)}function Af(a){return function(){return a}}function Bf(a){return a}function Cf(a){return Nb(vb(a,!0))}function Df(a,b){return Ob(a,vb(b,!0))}function Ef(a,b,c){if(null==c){var d=He(b),e=d?Nh(b):w,f=e&&e.length?Hb(b,e):w;(f?f.length:d)||(f=!1,c=b,b=a,a=this)}f||(f=Hb(b,Nh(b)));var g=!0,h=-1,i=Ge(a),j=f.length;c===!1?g=!1:He(c)&&"chain"in c&&(g=c.chain);for(;++h<j;){var k=f[h],l=b[k];a[k]=l,i&&(a.prototype[k]=function(b){return function(){var c=this.__chain__;if(g||c){var d=a(this.__wrapped__),e=d.__actions__=cb(this.__actions__);return e.push({func:b,args:arguments,thisArg:a}),d.__chain__=c,d}return b.apply(a,jb([this.value()],arguments))}}(l))}return a}function Ff(){return _a._=dg,this}function Gf(){}function Hf(a){return _c(a)?Rb(a):Sb(a)}function If(a){return function(b){return Ib(a,ld(b),b+"")}}function Jf(a,b,c){c&&$c(a,b,c)&&(b=c=w),a=+a||0,c=null==c?1:+c||0,null==b?(b=a,a=0):b=+b||0;for(var d=-1,e=vg(pg((b-a)/(c||1)),0),f=Of(e);++d<e;)f[d]=a,a+=c;return f}function Kf(a,b,c){if(a=rg(a),1>a||!tg(a))return[];var d=-1,e=Of(wg(a,Cg));for(b=fc(b,c,1);++d<a;)Cg>d?e[d]=b(d):b(d);return e}function Lf(a){var b=++bg;return e(a)+b}function Mf(a,b){return(+a||0)+(+b||0)}function Nf(a,b,c){return c&&$c(a,b,c)&&(b=w),b=Oc(b,c,3),1==b.length?nb(Ch(a)?a:jd(a),b):$b(a,b)}p=p?ab.defaults(_a.Object(),p,ab.pick(_a,La)):_a;{var Of=p.Array,Pf=p.Date,Qf=p.Error,Rf=p.Function,Sf=p.Math,Tf=p.Number,Uf=p.Object,Vf=p.RegExp,Wf=p.String,Xf=p.TypeError,Yf=Of.prototype,Zf=Uf.prototype,$f=Wf.prototype,_f=Rf.prototype.toString,ag=Zf.hasOwnProperty,bg=0,cg=Zf.toString,dg=_a._,eg=Vf("^"+_f.call(ag).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fg=p.ArrayBuffer,gg=p.clearTimeout,hg=p.parseFloat,ig=Sf.pow,jg=Zf.propertyIsEnumerable,kg=Sc(p,"Set"),lg=p.setTimeout,mg=Yf.splice,ng=p.Uint8Array,og=Sc(p,"WeakMap"),pg=Sf.ceil,qg=Sc(Uf,"create"),rg=Sf.floor,sg=Sc(Of,"isArray"),tg=p.isFinite,ug=Sc(Uf,"keys"),vg=Sf.max,wg=Sf.min,xg=Sc(Pf,"now"),yg=p.parseInt,zg=Sf.random,Ag=Tf.NEGATIVE_INFINITY,Bg=Tf.POSITIVE_INFINITY,Cg=4294967295,Dg=Cg-1,Eg=Cg>>>1,Fg=9007199254740991,Gg=og&&new og,Hg={};W.support={}}W.templateSettings={escape:sa,evaluate:ta,interpolate:ua,variable:"",imports:{_:W}};var Ig=function(){function a(){}return function(b){if(He(b)){a.prototype=b;var c=new a;a.prototype=w}return c||{}}}(),Jg=lc(Fb),Kg=lc(Gb,!0),Lg=mc(),Mg=mc(!0),Ng=Gg?function(a,b){return Gg.set(a,b),a}:Bf,Og=Gg?function(a){return Gg.get(a)}:Gf,Pg=Rb("length"),Qg=function(){var a=0,b=0;return function(c,d){var e=oh(),f=K-(e-b);if(b=e,f>0){if(++a>=J)return c}else a=0;return Ng(c,d)}}(),Rg=qe(function(a,b){return o(a)&&Yc(a)?xb(a,Db(b,!1,!0)):[]}),Sg=vc(),Tg=vc(!0),Ug=qe(function(a){for(var b=a.length,d=b,e=Of(l),f=Qc(),g=f===c,h=[];d--;){var i=a[d]=Yc(i=a[d])?i:[];e[d]=g&&i.length>=120?oc(d&&i):null}var j=a[0],k=-1,l=j?j.length:0,m=e[0];a:for(;++k<l;)if(i=j[k],(m?Za(m,i):f(h,i,0))<0){for(var d=b;--d;){var n=e[d];if((n?Za(n,i):f(a[d],i,0))<0)continue a}m&&m.push(i),h.push(i)}return h}),Vg=qe(function(b,c){c=Db(c);var d=sb(b,c);return Tb(b,c.sort(a)),d}),Wg=Jc(),Xg=Jc(!0),Yg=qe(function(a){return _b(Db(a,!1,!0))}),Zg=qe(function(a,b){return Yc(a)?xb(a,b):[]}
10),$g=qe(Kd),_g=qe(function(a){var b=a.length,c=b>2?a[b-2]:w,d=b>1?a[b-1]:w;return b>2&&"function"==typeof c?b-=2:(c=b>1&&"function"==typeof d?(--b,d):w,d=w),a.length=b,Ld(a,c,d)}),ah=qe(function(a){return a=Db(a),this.thru(function(b){return bb(Ch(b)?b:[kd(b)],a)})}),bh=qe(function(a,b){return sb(a,Db(b))}),ch=jc(function(a,b,c){ag.call(a,c)?++a[c]:a[c]=1}),dh=uc(Jg),eh=uc(Kg,!0),fh=yc(db,Jg),gh=yc(eb,Kg),hh=jc(function(a,b,c){ag.call(a,c)?a[c].push(b):a[c]=[b]}),ih=jc(function(a,b,c){a[c]=b}),jh=qe(function(a,b,c){var d=-1,e="function"==typeof b,f=_c(b),g=Yc(a)?Of(a.length):[];return Jg(a,function(a){var h=e?b:f&&null!=a?a[b]:w;g[++d]=h?h.apply(a,c):Xc(a,b,c)}),g}),kh=jc(function(a,b,c){a[c?0:1].push(b)},function(){return[[],[]]}),lh=Ec(kb,Jg),mh=Ec(lb,Kg),nh=qe(function(a,b){if(null==a)return[];var c=b[2];return c&&$c(b[0],b[1],c)&&(b.length=1),Zb(a,Db(b),[])}),oh=xg||function(){return(new Pf).getTime()},ph=qe(function(a,b,c){var d=y;if(c.length){var e=q(c,ph.placeholder);d|=D}return Kc(a,d,b,c,e)}),qh=qe(function(a,b){b=b.length?Db(b):Xe(a);for(var c=-1,d=b.length;++c<d;){var e=b[c];a[e]=Kc(a[e],y,a)}return a}),rh=qe(function(a,b,c){var d=y|z;if(c.length){var e=q(c,rh.placeholder);d|=D}return Kc(b,d,a,c,e)}),sh=rc(B),th=rc(C),uh=qe(function(a,b){return wb(a,1,b)}),vh=qe(function(a,b,c){return wb(a,b,c)}),wh=xc(),xh=xc(!0),yh=qe(function(a,b){if(b=Db(b),"function"!=typeof a||!fb(b,d))throw new Xf(O);var c=b.length;return qe(function(d){for(var e=wg(d.length,c);e--;)d[e]=b[e](d[e]);return a.apply(this,d)})}),zh=Dc(D),Ah=Dc(E),Bh=qe(function(a,b){return Kc(a,G,w,w,w,Db(b))}),Ch=sg||function(a){return o(a)&&bd(a.length)&&cg.call(a)==R},Dh=kc(Pb),Eh=kc(function(a,b,c){return c?qb(a,b,c):rb(a,b)}),Fh=sc(Eh,ob),Gh=sc(Dh,ed),Hh=wc(Fb),Ih=wc(Gb),Jh=zc(Lg),Kh=zc(Mg),Lh=Ac(Fb),Mh=Ac(Gb),Nh=ug?function(a){var b=null==a?w:a.constructor;return"function"==typeof b&&b.prototype===a||"function"!=typeof a&&Yc(a)?id(a):He(a)?ug(a):[]}:id,Oh=Bc(!0),Ph=Bc(),Qh=qe(function(a,b){if(null==a)return{};if("function"!=typeof b[0]){var b=ib(Db(b),Wf);return fd(a,xb(_e(a),b))}var c=fc(b[0],b[1],3);return gd(a,function(a,b,d){return!c(a,b,d)})}),Rh=qe(function(a,b){return null==a?{}:"function"==typeof b[0]?gd(a,fc(b[0],b[1],3)):fd(a,Db(b))}),Sh=pc(function(a,b,c){return b=b.toLowerCase(),a+(c?b.charAt(0).toUpperCase()+b.slice(1):b)}),Th=pc(function(a,b,c){return a+(c?"-":"")+b.toLowerCase()}),Uh=Cc(),Vh=Cc(!0),Wh=pc(function(a,b,c){return a+(c?"_":"")+b.toLowerCase()}),Xh=pc(function(a,b,c){return a+(c?" ":"")+(b.charAt(0).toUpperCase()+b.slice(1))}),Yh=qe(function(a,b){try{return a.apply(w,b)}catch(c){return Ee(c)?c:new Qf(c)}}),Zh=qe(function(a,b){return function(c){return Xc(c,a,b)}}),$h=qe(function(a,b){return function(c){return Xc(a,c,b)}}),_h=Ic("ceil"),ai=Ic("floor"),bi=tc(we,Ag),ci=tc(Se,Bg),di=Ic("round");return W.prototype=$.prototype,aa.prototype=Ig($.prototype),aa.prototype.constructor=aa,Pa.prototype=Ig($.prototype),Pa.prototype.constructor=Pa,Ta.prototype["delete"]=Ua,Ta.prototype.get=Va,Ta.prototype.has=Wa,Ta.prototype.set=Xa,Ya.prototype.push=$a,ne.Cache=Ta,W.after=je,W.ary=ke,W.assign=Eh,W.at=bh,W.before=le,W.bind=ph,W.bindAll=qh,W.bindKey=rh,W.callback=zf,W.chain=Od,W.chunk=nd,W.compact=od,W.constant=Af,W.countBy=ch,W.create=We,W.curry=sh,W.curryRight=th,W.debounce=me,W.defaults=Fh,W.defaultsDeep=Gh,W.defer=uh,W.delay=vh,W.difference=Rg,W.drop=pd,W.dropRight=qd,W.dropRightWhile=rd,W.dropWhile=sd,W.fill=td,W.filter=Yd,W.flatten=vd,W.flattenDeep=wd,W.flow=wh,W.flowRight=xh,W.forEach=fh,W.forEachRight=gh,W.forIn=Jh,W.forInRight=Kh,W.forOwn=Lh,W.forOwnRight=Mh,W.functions=Xe,W.groupBy=hh,W.indexBy=ih,W.initial=yd,W.intersection=Ug,W.invert=$e,W.invoke=jh,W.keys=Nh,W.keysIn=_e,W.map=_d,W.mapKeys=Oh,W.mapValues=Ph,W.matches=Cf,W.matchesProperty=Df,W.memoize=ne,W.merge=Dh,W.method=Zh,W.methodOf=$h,W.mixin=Ef,W.modArgs=yh,W.negate=oe,W.omit=Qh,W.once=pe,W.pairs=af,W.partial=zh,W.partialRight=Ah,W.partition=kh,W.pick=Rh,W.pluck=ae,W.property=Hf,W.propertyOf=If,W.pull=Bd,W.pullAt=Vg,W.range=Jf,W.rearg=Bh,W.reject=be,W.remove=Cd,W.rest=Dd,W.restParam=qe,W.set=cf,W.shuffle=de,W.slice=Ed,W.sortBy=ge,W.s
10ortByAll=nh,W.sortByOrder=he,W.spread=re,W.take=Fd,W.takeRight=Gd,W.takeRightWhile=Hd,W.takeWhile=Id,W.tap=Pd,W.throttle=se,W.thru=Qd,W.times=Kf,W.toArray=Ue,W.toPlainObject=Ve,W.transform=df,W.union=Yg,W.uniq=Jd,W.unzip=Kd,W.unzipWith=Ld,W.values=ef,W.valuesIn=ff,W.where=ie,W.without=Zg,W.wrap=te,W.xor=Md,W.zip=$g,W.zipObject=Nd,W.zipWith=_g,W.backflow=xh,W.collect=_d,W.compose=xh,W.each=fh,W.eachRight=gh,W.extend=Eh,W.iteratee=zf,W.methods=Xe,W.object=Nd,W.select=Yd,W.tail=Dd,W.unique=Jd,Ef(W,W),W.add=Mf,W.attempt=Yh,W.camelCase=Sh,W.capitalize=jf,W.ceil=_h,W.clone=ue,W.cloneDeep=ve,W.deburr=kf,W.endsWith=lf,W.escape=mf,W.escapeRegExp=nf,W.every=Xd,W.find=dh,W.findIndex=Sg,W.findKey=Hh,W.findLast=eh,W.findLastIndex=Tg,W.findLastKey=Ih,W.findWhere=Zd,W.first=ud,W.floor=ai,W.get=Ye,W.gt=we,W.gte=xe,W.has=Ze,W.identity=Bf,W.includes=$d,W.indexOf=xd,W.inRange=gf,W.isArguments=ye,W.isArray=Ch,W.isBoolean=ze,W.isDate=Ae,W.isElement=Be,W.isEmpty=Ce,W.isEqual=De,W.isError=Ee,W.isFinite=Fe,W.isFunction=Ge,W.isMatch=Ie,W.isNaN=Je,W.isNative=Ke,W.isNull=Le,W.isNumber=Me,W.isObject=He,W.isPlainObject=Ne,W.isRegExp=Oe,W.isString=Pe,W.isTypedArray=Qe,W.isUndefined=Re,W.kebabCase=Th,W.last=zd,W.lastIndexOf=Ad,W.lt=Se,W.lte=Te,W.max=bi,W.min=ci,W.noConflict=Ff,W.noop=Gf,W.now=oh,W.pad=of,W.padLeft=Uh,W.padRight=Vh,W.parseInt=pf,W.random=hf,W.reduce=lh,W.reduceRight=mh,W.repeat=qf,W.result=bf,W.round=di,W.runInContext=v,W.size=ee,W.snakeCase=Wh,W.some=fe,W.sortedIndex=Wg,W.sortedLastIndex=Xg,W.startCase=Xh,W.startsWith=rf,W.sum=Nf,W.template=sf,W.trim=tf,W.trimLeft=uf,W.trimRight=vf,W.trunc=wf,W.unescape=xf,W.uniqueId=Lf,W.words=yf,W.all=Xd,W.any=fe,W.contains=$d,W.eq=De,W.detect=dh,W.foldl=lh,W.foldr=mh,W.head=ud,W.include=$d,W.inject=lh,Ef(W,function(){var a={};return Fb(W,function(b,c){W.prototype[c]||(a[c]=b)}),a}(),!1),W.sample=ce,W.prototype.sample=function(a){return this.__chain__||null!=a?this.thru(function(b){return ce(b,a)}):ce(this.value())},W.VERSION=x,db(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){W[a].placeholder=W}),db(["drop","take"],function(a,b){Pa.prototype[a]=function(c){var d=this.__filtered__;if(d&&!b)return new Pa(this);c=null==c?1:vg(rg(c)||0,0);var e=this.clone();return d?e.__takeCount__=wg(e.__takeCount__,c):e.__views__.push({size:c,type:a+(e.__dir__<0?"Right":"")}),e},Pa.prototype[a+"Right"]=function(b){return this.reverse()[a](b).reverse()}}),db(["filter","map","takeWhile"],function(a,b){var c=b+1,d=c!=N;Pa.prototype[a]=function(a,b){var e=this.clone();return e.__iteratees__.push({iteratee:Oc(a,b,1),type:c}),e.__filtered__=e.__filtered__||d,e}}),db(["first","last"],function(a,b){var c="take"+(b?"Right":"");Pa.prototype[a]=function(){return this[c](1).value()[0]}}),db(["initial","rest"],function(a,b){var c="drop"+(b?"":"Right");Pa.prototype[a]=function(){return this.__filtered__?new Pa(this):this[c](1)}}),db(["pluck","where"],function(a,b){var c=b?"filter":"map",d=b?Nb:Hf;Pa.prototype[a]=function(a){return this[c](d(a))}}),Pa.prototype.compact=function(){return this.filter(Bf)},Pa.prototype.reject=function(a,b){return a=Oc(a,b,1),this.filter(function(b){return!a(b)})},Pa.prototype.slice=function(a,b){a=null==a?0:+a||0;var c=this;return c.__filtered__&&(a>0||0>b)?new Pa(c):(0>a?c=c.takeRight(-a):a&&(c=c.drop(a)),b!==w&&(b=+b||0,c=0>b?c.dropRight(-b):c.take(b-a)),c)},Pa.prototype.takeRightWhile=function(a,b){return this.reverse().takeWhile(a,b).reverse()},Pa.prototype.toArray=function(){return this.take(Bg)},Fb(Pa.prototype,function(a,b){var c=/^(?:filter|map|reject)|While$/.test(b),d=/^(?:first|last)$/.test(b),e=W[d?"take"+("last"==b?"Right":""):b];e&&(W.prototype[b]=function(){var b=d?[1]:arguments,f=this.__chain__,g=this.__wrapped__,h=!!this.__actions__.length,i=g instanceof Pa,j=b[0],k=i||Ch(g);k&&c&&"function"==typeof j&&1!=j.length&&(i=k=!1);var l=function(a){return d&&f?e(a,1)[0]:e.apply(w,jb([a],b))},m={func:Qd,args:[l],thisArg:w},n=i&&!h;if(d&&!f)return n?(g=g.clone(),g.__actions__.push(m),a.call(g)):e.call(w,this.value())[0];if(!d&&k){g=n?g:new Pa(this);var o=a.apply(g,b);return o.__actions__.push(m),new aa(o,f)}return this.thru(l)})}),db(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(a){var b=(/^(?:replace|split)$/.test(a)?$f:Yf)[a],c=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",d=/^(?:join|pop|replace|shift)$/.test(a);W.prototype[a]=function(){var a=arguments;return d&&!this.__chain__?b.apply(this.value(),a):this[c](function(c){return b.apply(c,a)})}}),Fb(Pa.prototype,function(a,b){var c=W[b];
10if(c){var d=c.name+"",e=Hg[d]||(Hg[d]=[]);e.push({name:b,func:c})}}),Hg[Fc(w,z).name]=[{name:"wrapper",func:w}],Pa.prototype.clone=Qa,Pa.prototype.reverse=Ra,Pa.prototype.value=Sa,W.prototype.chain=Rd,W.prototype.commit=Sd,W.prototype.concat=ah,W.prototype.plant=Td,W.prototype.reverse=Ud,W.prototype.toString=Vd,W.prototype.run=W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=Wd,W.prototype.collect=W.prototype.map,W.prototype.head=W.prototype.first,W.prototype.select=W.prototype.filter,W.prototype.tail=W.prototype.rest,W}var w,x="3.10.1",y=1,z=2,A=4,B=8,C=16,D=32,E=64,F=128,G=256,H=30,I="...",J=150,K=16,L=200,M=1,N=2,O="Expected a function",P="__lodash_placeholder__",Q="[object Arguments]",R="[object Array]",S="[object Boolean]",T="[object Date]",U="[object Error]",V="[object Function]",W="[object Map]",X="[object Number]",Y="[object Object]",Z="[object RegExp]",$="[object Set]",_="[object String]",aa="[object WeakMap]",ba="[object ArrayBuffer]",ca="[object Float32Array]",da="[object Float64Array]",ea="[object Int8Array]",fa="[object Int16Array]",ga="[object Int32Array]",ha="[object Uint8Array]",ia="[object Uint8ClampedArray]",ja="[object Uint16Array]",ka="[object Uint32Array]",la=/\b__p \+= '';/g,ma=/\b(__p \+=) '' \+/g,na=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oa=/&(?:amp|lt|gt|quot|#39|#96);/g,pa=/[&<>"'`]/g,qa=RegExp(oa.source),ra=RegExp(pa.source),sa=/<%-([\s\S]+?)%>/g,ta=/<%([\s\S]+?)%>/g,ua=/<%=([\s\S]+?)%>/g,va=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,wa=/^\w*$/,xa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,ya=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,za=RegExp(ya.source),Aa=/[\u0300-\u036f\ufe20-\ufe23]/g,Ba=/\\(\\)?/g,Ca=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Da=/\w*$/,Ea=/^0[xX]/,Fa=/^\[object .+?Constructor\]$/,Ga=/^\d+$/,Ha=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Ia=/($^)/,Ja=/['\n\r\u2028\u2029\\]/g,Ka=function(){var a="[A-Z\\xc0-\\xd6\\xd8-\\xde]",b="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(a+"+(?="+a+b+")|"+a+"?"+b+"|"+a+"+|[0-9]+","g")}(),La=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Ma=-1,Na={};Na[ca]=Na[da]=Na[ea]=Na[fa]=Na[ga]=Na[ha]=Na[ia]=Na[ja]=Na[ka]=!0,Na[Q]=Na[R]=Na[ba]=Na[S]=Na[T]=Na[U]=Na[V]=Na[W]=Na[X]=Na[Y]=Na[Z]=Na[$]=Na[_]=Na[aa]=!1;var Oa={};Oa[Q]=Oa[R]=Oa[ba]=Oa[S]=Oa[T]=Oa[ca]=Oa[da]=Oa[ea]=Oa[fa]=Oa[ga]=Oa[X]=Oa[Y]=Oa[Z]=Oa[_]=Oa[ha]=Oa[ia]=Oa[ja]=Oa[ka]=!0,Oa[U]=Oa[V]=Oa[W]=Oa[$]=Oa[aa]=!1;var Pa={"Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã
":"A","à ":"a","á":"a","â":"a","ã":"a","ä":"a","Ã¥":"a","Ã":"C","ç":"c","Ã":"D","ð":"d","Ã":"E","Ã":"E","Ã":"E","Ã":"E","è":"e","é":"e","ê":"e","ë":"e","Ã":"I","Ã":"I","Ã":"I","Ã":"I","ì":"i","Ã":"i","î":"i","ï":"i","Ã":"N","ñ":"n","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ã":"U","Ã":"U","Ã":"U","Ã":"U","ù":"u","ú":"u","û":"u","ü":"u","Ã":"Y","ý":"y","ÿ":"y","Ã":"Ae","æ":"ae","Ã":"Th","þ":"th","Ã":"ss"},Qa={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Ra={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Sa={"function":!0,object:!0},Ta={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Ua={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Va=Sa[typeof exports]&&exports&&!exports.nodeType&&exports,Wa=Sa[typeof module]&&module&&!module.nodeType&&module,Xa=Va&&Wa&&"object"==typeof global&&global&&global.Object&&global,Ya=Sa[typeof self]&&self&&self.Object&&self,Za=Sa[typeof window]&&window&&window.Object&&window,$a=Wa&&Wa.exports===Va&&Va,_a=Xa||Za!==(this&&this.window)&&Za||Ya||this,ab=v();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(_a._=ab,define(function(){return ab})):Va&&Wa?$a?(Wa.exports=ab)._=ab:Va._=ab:_a._=ab}.call(this),function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):b(a.topojson=a.topojson||{})}(this,function(a){"use strict";function b(){}function c(a){if(!a)return b;var c,d,e=a.scale[0],f=a.scale[1],g=a.translate[0],h=a.translate[1];return function(a,b){b||(c=d=0),a[0]=(c+=a[0])*e+g,a[1]=(d+=a[1])*f+h}}function d(a){if(!a)return b;var c,d,e=a.scale[0],f=a.scale[1],g=a.translate[0],h=a.translate[1];return function(a,b){b||(c=d=0);var i=Math.round((a[0]-g)/e),j=Math.round((a[1]-h)/f);a[0]=i-c,a[1]=j-d,c=i,d=j}}function e(a,b){for(var c,d=a.length,e=d-b;e<--d;)c=a[e],a[e++]=a[d],a[d]=c}function f(a,b){for(var c=0,d=a.length;d>c;){var e=c+d>>>1;a[e]<b?c=e+1:d=e}return c}function g(a,b){return"GeometryCollection"===b.type?{type:"FeatureCollection",features:b.geometries.map(function(b){return h(a,b)})}:h(a,b)}function h(a,b){var c={type:"Feature",id:b.id,properties:b.properties||{},geometry:i(a,b)};return null==b.id&&delete c.id,c}function i(a,b){function d(a,b){b.length&&b.pop();for(var c,d=l[0>a?~a:a],f=0,g=d.length;g>f;++f)b.push(c=d[f].slice()),k(c,f);0>a&&e(b,g)}function f(a){return a=a.slice(),k(a,0),a}
10function g(a){for(var b=[],c=0,e=a.length;e>c;++c)d(a[c],b);return b.length<2&&b.push(b[0].slice()),b}function h(a){for(var b=g(a);b.length<4;)b.push(b[0].slice());return b}function i(a){return a.map(h)}function j(a){var b=a.type;return"GeometryCollection"===b?{type:b,geometries:a.geometries.map(j)}:b in m?{type:b,coordinates:m[b](a)}:null}var k=c(a.transform),l=a.arcs,m={Point:function(a){return f(a.coordinates)},MultiPoint:function(a){return a.coordinates.map(f)},LineString:function(a){return g(a.arcs)},MultiLineString:function(a){return a.arcs.map(g)},Polygon:function(a){return i(a.arcs)},MultiPolygon:function(a){return a.arcs.map(i)}};return j(b)}function j(a,b){function c(b){var c,d=a.arcs[0>b?~b:b],e=d[0];return a.transform?(c=[0,0],d.forEach(function(a){c[0]+=a[0],c[1]+=a[1]})):c=d[d.length-1],0>b?[c,e]:[e,c]}function d(a,b){for(var c in a){var d=a[c];delete b[d.start],delete d.start,delete d.end,d.forEach(function(a){e[0>a?~a:a]=1}),h.push(d)}}var e={},f={},g={},h=[],i=-1;return b.forEach(function(c,d){var e,f=a.arcs[0>c?~c:c];f.length<3&&!f[1][0]&&!f[1][1]&&(e=b[++i],b[i]=c,b[d]=e)}),b.forEach(function(a){var b,d,e=c(a),h=e[0],i=e[1];if(b=g[h])if(delete g[b.end],b.push(a),b.end=i,d=f[i]){delete f[d.start];var j=d===b?b:b.concat(d);f[j.start=b.start]=g[j.end=d.end]=j}else f[b.start]=g[b.end]=b;else if(b=f[i])if(delete f[b.start],b.unshift(a),b.start=h,d=g[h]){delete g[d.end];var k=d===b?b:d.concat(b);f[k.start=d.start]=g[k.end=b.end]=k}else f[b.start]=g[b.end]=b;else b=[a],f[b.start=h]=g[b.end=i]=b}),d(g,f),d(f,g),b.forEach(function(a){e[0>a?~a:a]||h.push([a])}),h}function k(a){return i(a,l.apply(this,arguments))}function l(a,b,c){function d(a){var b=0>a?~a:a;(k[b]||(k[b]=[])).push({i:a,g:i})}function e(a){a.forEach(d)}function f(a){a.forEach(e)}function g(a){"GeometryCollection"===a.type?a.geometries.forEach(g):a.type in l&&(i=a,l[a.type](a.arcs))}var h=[];if(arguments.length>1){var i,k=[],l={LineString:e,MultiLineString:f,Polygon:f,MultiPolygon:function(a){a.forEach(f)}};g(b),k.forEach(arguments.length<3?function(a){h.push(a[0].i)}:function(a){c(a[0].g,a[a.length-1].g)&&h.push(a[0].i)})}else for(var m=0,n=a.arcs.length;n>m;++m)h.push(m);return{type:"MultiLineString",arcs:j(a,h)}}function m(a){var b=a[0],c=a[1],d=a[2];return Math.abs((b[0]-d[0])*(c[1]-b[1])-(b[0]-c[0])*(d[1]-b[1]))}function n(a){for(var b,c=-1,d=a.length,e=a[d-1],f=0;++c<d;)b=e,e=a[c],f+=b[0]*e[1]-b[1]*e[0];return f/2}function o(a){return i(a,p.apply(this,arguments))}function p(a,b){function c(a){a.forEach(function(b){b.forEach(function(b){(e[b=0>b?~b:b]||(e[b]=[])).push(a)})}),f.push(a)}function d(b){return Math.abs(n(i(a,{type:"Polygon",arcs:[b]}).coordinates[0]))}var e={},f=[],g=[];return b.forEach(function(a){"Polygon"===a.type?c(a.arcs):"MultiPolygon"===a.type&&a.arcs.forEach(c)}),f.forEach(function(a){if(!a._){var b=[],c=[a];for(a._=1,g.push(b);a=c.pop();)b.push(a),a.forEach(function(a){a.forEach(function(a){e[0>a?~a:a].forEach(function(a){a._||(a._=1,c.push(a))})})})}}),f.forEach(function(a){delete a._}),{type:"MultiPolygon",arcs:g.map(function(b){var c,f=[];if(b.forEach(function(a){a.forEach(function(a){a.forEach(function(a){e[0>a?~a:a].length<2&&f.push(a)})})}),f=j(a,f),(c=f.length)>1)for(var g,h,i=1,k=d(f[0]);c>i;++i)(g=d(f[i]))>k&&(h=f[0],f[0]=f[i],f[i]=h,k=g);return f})}}function q(a){function b(a,b){a.forEach(function(a){0>a&&(a=~a);var c=e[a];c?c.push(b):e[a]=[b]})}function c(a,c){a.forEach(function(a){b(a,c)})}function d(a,b){"GeometryCollection"===a.type?a.geometries.forEach(function(a){d(a,b)}):a.type in h&&h[a.type](a.arcs,b)}var e={},g=a.map(function(){return[]}),h={LineString:b,MultiLineString:c,Polygon:c,MultiPolygon:function(a,b){a.forEach(function(a){c(a,b)})}};a.forEach(d);for(var i in e)for(var j=e[i],k=j.length,l=0;k>l;++l)for(var m=l+1;k>m;++m){var n,o=j[l],p=j[m];(n=g[o])[i=f(n,p)]!==p&&n.splice(i,0,p),(n=g[p])[i=f(n,o)]!==o&&n.splice(i,0,o)}return g}function r(a,b){return a[1][2]-b[1][2]}function s(){function a(a,b){for(;b>0;){var c=(b+1>>1)-1,e=d[c];if(r(a,e)>=0)break;d[e._=b]=e,d[a._=b=c]=a}}function b(a,b){for(;;){var c=b+1<<1,f=c-1,g=b,h=d[g];if(e>f&&r(d[f],h)<0&&(h=d[g=f]),e>
10c&&r(d[c],h)<0&&(h=d[g=c]),g===b)break;d[h._=b]=h,d[a._=b=g]=a}}var c={},d=[],e=0;return c.push=function(b){return a(d[b._=e]=b,e++),e},c.pop=function(){if(!(0>=e)){var a,c=d[0];return--e>0&&(a=d[e],b(d[a._=0]=a,0)),c}},c.remove=function(c){var f,g=c._;if(d[g]===c)return g!==--e&&(f=d[e],(r(f,c)<0?a:b)(d[f._=g]=f,g)),g},c}function t(a,b){function e(a){h.remove(a),a[1][2]=b(a),h.push(a)}var f=c(a.transform),g=d(a.transform),h=s();return b||(b=m),a.arcs.forEach(function(a){var c,d,i,j,k=[],l=0;for(d=0,i=a.length;i>d;++d)j=a[d],f(a[d]=[j[0],j[1],1/0],d);for(d=1,i=a.length-1;i>d;++d)c=a.slice(d-1,d+2), 11c[1][2]=b(c),k.push(c),h.push(c);for(d=0,i=k.length;i>d;++d)c=k[d],c.previous=k[d-1],c.next=k[d+1];for(;c=h.pop();){var m=c.previous,n=c.next;c[1][2]<l?c[1][2]=l:l=c[1][2],m&&(m.next=n,m[2]=c[2],e(m)),n&&(n.previous=m,n[0]=c[0],e(n))}a.forEach(g)}),a}var u="1.6.27";a.version=u,a.mesh=k,a.meshArcs=l,a.merge=o,a.mergeArcs=p,a.feature=g,a.neighbors=q,a.presimplify=t,Object.defineProperty(a,"__esModule",{value:!0})}),function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b()}(this,function(){"use strict";function a(){return md.apply(null,arguments)}function b(a){md=a}function c(a){return a instanceof Array||"[object Array]"===Object.prototype.toString.call(a)}function d(a){return"[object Object]"===Object.prototype.toString.call(a)}function e(a){var b;for(b in a)return!1;return!0}function f(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function g(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function h(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function i(a,b){for(var c in b)h(b,c)&&(a[c]=b[c]);return h(b,"toString")&&(a.toString=b.toString),h(b,"valueOf")&&(a.valueOf=b.valueOf),a}function j(a,b,c,d){return qb(a,b,c,d,!0).utc()}function k(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function l(a){return null==a._pf&&(a._pf=k()),a._pf}function m(a){if(null==a._isValid){var b=l(a),c=nd.call(b.parsedDateParts,function(a){return null!=a});a._isValid=!isNaN(a._d.getTime())&&b.overflow<0&&!b.empty&&!b.invalidMonth&&!b.invalidWeekday&&!b.nullInput&&!b.invalidFormat&&!b.userInvalidated&&(!b.meridiem||b.meridiem&&c),a._strict&&(a._isValid=a._isValid&&0===b.charsLeftOver&&0===b.unusedTokens.length&&void 0===b.bigHour)}return a._isValid}function n(a){var b=j(0/0);return null!=a?i(l(b),a):l(b).userInvalidated=!0,b}function o(a){return void 0===a}function p(a,b){var c,d,e;if(o(b._isAMomentObject)||(a._isAMomentObject=b._isAMomentObject),o(b._i)||(a._i=b._i),o(b._f)||(a._f=b._f),o(b._l)||(a._l=b._l),o(b._strict)||(a._strict=b._strict),o(b._tzm)||(a._tzm=b._tzm),o(b._isUTC)||(a._isUTC=b._isUTC),o(b._offset)||(a._offset=b._offset),o(b._pf)||(a._pf=l(b)),o(b._locale)||(a._locale=b._locale),od.length>0)for(c in od)d=od[c],e=b[d],o(e)||(a[d]=e);return a}function q(b){p(this,b),this._d=new Date(null!=b._d?b._d.getTime():0/0),pd===!1&&(pd=!0,a.updateOffset(this),pd=!1)}function r(a){return a instanceof q||null!=a&&null!=a._isAMomentObject}function s(a){return 0>a?Math.ceil(a)||0:Math.floor(a)}function t(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=s(b)),c}function u(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&t(a[d])!==t(b[d]))&&g++;return g+f}function v(b){a.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+b)}function w(b,c){var d=!0;return i(function(){return null!=a.deprecationHandler&&a.deprecationHandler(null,b),d&&(v(b+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),d=!1),c.apply(this,arguments)},c)}function x(b,c){null!=a.deprecationHandler&&a.deprecationHandler(b,c),qd[b]||(v(c),qd[b]=!0)}function y(a){return a instanceof Function||"[object Function]"===Object.prototype.toString.call(a)}function z(a){var b,c;for(c in a)b=a[c],y(b)?this[c]=b:this["_"+c]=b;this._config=a,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function A(a,b){var c,e=i({},a);for(c in b)h(b,c)&&(d(a[c])&&d(b[c])?(e[c]={},i(e[c],a[c]),i(e[c],b[c])):null!=b[c]?e[c]=b[c]:delete e[c]);for(c in a)h(a,c)&&!h(b,c)&&d(a[c])&&(e[c]=i({},e[c]));return e}function B(a){null!=a&&this.set(a)}function C(a,b,c){var d=this._calendar[a]||this._calendar.sameElse;return y(d)?d.call(b,c):d}function D(a){var b=this._longDateFormat[a],c=this._longDateFormat[a.toUpperCase()];return b||!c?b:(this._longDateFormat[a]=c.replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a])}function E(){return this._invalidDate}function F(a){return this._ordinal.replace("%d",a)}function G(a,b,c,d){var e=this._relativeTime[c];
vendor: 9,294 bytes, line 11
11return y(e)?e(a,b,c,d):e.replace(/%d/i,a)}function H(a,b){var c=this._relativeTime[a>0?"future":"past"];return y(c)?c(b):c.replace(/%s/i,b)}function I(a,b){var c=a.toLowerCase();zd[c]=zd[c+"s"]=zd[b]=a}function J(a){return"string"==typeof a?zd[a]||zd[a.toLowerCase()]:void 0}function K(a){var b,c,d={};for(c in a)h(a,c)&&(b=J(c),b&&(d[b]=a[c]));return d}function L(a,b){Ad[a]=b}function M(a){var b=[];for(var c in a)b.push({unit:c,priority:Ad[c]});return b.sort(function(a,b){return a.priority-b.priority}),b}function N(b,c){return function(d){return null!=d?(P(this,b,d),a.updateOffset(this,c),this):O(this,b)}}function O(a,b){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+b]():0/0}function P(a,b,c){a.isValid()&&a._d["set"+(a._isUTC?"UTC":"")+b](c)}function Q(a){return a=J(a),y(this[a])?this[a]():this}function R(a,b){if("object"==typeof a){a=K(a);for(var c=M(a),d=0;d<c.length;d++)this[c[d].unit](a[c[d].unit])}else if(a=J(a),y(this[a]))return this[a](b);return this}function S(a,b,c){var d=""+Math.abs(a),e=b-d.length,f=a>=0;return(f?c?"+":"":"-")+Math.pow(10,Math.max(0,e)).toString().substr(1)+d}function T(a,b,c,d){var e=d;"string"==typeof d&&(e=function(){return this[d]()}),a&&(Ed[a]=e),b&&(Ed[b[0]]=function(){return S(e.apply(this,arguments),b[1],b[2])}),c&&(Ed[c]=function(){return this.localeData().ordinal(e.apply(this,arguments),a)})}function U(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function V(a){var b,c,d=a.match(Bd);for(b=0,c=d.length;c>b;b++)d[b]=Ed[d[b]]?Ed[d[b]]:U(d[b]);return function(b){var e,f="";for(e=0;c>e;e++)f+=d[e]instanceof Function?d[e].call(b,a):d[e];return f}}function W(a,b){return a.isValid()?(b=X(b,a.localeData()),Dd[b]=Dd[b]||V(b),Dd[b](a)):a.localeData().invalidDate()}function X(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Cd.lastIndex=0;d>=0&&Cd.test(a);)a=a.replace(Cd,c),Cd.lastIndex=0,d-=1;return a}function Y(a,b,c){Wd[a]=y(b)?b:function(a){return a&&c?c:b}}function Z(a,b){return h(Wd,a)?Wd[a](b._strict,b._locale):new RegExp($(a))}function $(a){return _(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e}))}function _(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function aa(a,b){var c,d=b;for("string"==typeof a&&(a=[a]),"number"==typeof b&&(d=function(a,c){c[b]=t(a)}),c=0;c<a.length;c++)Xd[a[c]]=d}function ba(a,b){aa(a,function(a,c,d,e){d._w=d._w||{},b(a,d._w,d,e)})}function ca(a,b,c){null!=b&&h(Xd,a)&&Xd[a](b,c._a,c,a)}function da(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function ea(a,b){return c(this._months)?this._months[a.month()]:this._months[(this._months.isFormat||fe).test(b)?"format":"standalone"][a.month()]}function fa(a,b){return c(this._monthsShort)?this._monthsShort[a.month()]:this._monthsShort[fe.test(b)?"format":"standalone"][a.month()]}function ga(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],d=0;12>d;++d)f=j([2e3,d]),this._shortMonthsParse[d]=this.monthsShort(f,"").toLocaleLowerCase(),this._longMonthsParse[d]=this.months(f,"").toLocaleLowerCase();return c?"MMM"===b?(e=sd.call(this._shortMonthsParse,g),-1!==e?e:null):(e=sd.call(this._longMonthsParse,g),-1!==e?e:null):"MMM"===b?(e=sd.call(this._shortMonthsParse,g),-1!==e?e:(e=sd.call(this._longMonthsParse,g),-1!==e?e:null)):(e=sd.call(this._longMonthsParse,g),-1!==e?e:(e=sd.call(this._shortMonthsParse,g),-1!==e?e:null))}function ha(a,b,c){var d,e,f;if(this._monthsParseExact)return ga.call(this,a,b,c);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;12>d;d++){if(e=j([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}}function ia(a,b){var c;if(!a.isValid())return a;if("string"==typeof b)if(/^\d+$/.test(b))b=t(b);else if(b=a.localeData().monthsParse(b),"number"!=typeof b)return a;return c=Math.min(a.date(),da(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a}function ja(b){return null!=b?(ia(this,b),a.updateOffset(this,!0),this):O(this,"Month")}function ka(){return da(this.year(),this.month())}function la(a){return this._monthsParseExact?(h(this,"_monthsRegex")||na.call(this),a?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=ie),this._monthsShortStrictRegex&&a?this._monthsShortStrictRegex:this._monthsShortRegex)}function ma(a){return this._monthsParseExact?(h(this,"_monthsRegex")||na.call(this),a?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=je),this._monthsStrictRegex&&a?this._monthsStrictRegex:this._monthsRegex)}function na(){function a(a,b){return b.length-a.length}var b,c,d=[],e=[],f=[];for(b=0;12>b;b++)c=j([2e3,b]),d.push(this.monthsShort(c,"")),e.push(this.months(c,"")),f.push(this.months(c,"")),f.push(this.monthsShort(c,""));for(d.sort(a),e.sort(a),f.sort(a),b=0;12>b;b++)d[b]=_(d[b]),e[b]=_(e[b]);for(b=0;24>b;b++)f[b]=_(f[b]);this._monthsRegex=new RegExp("^("+f.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+e.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+d.join("|")+")","i")}function oa(a){return pa(a)?366:365}function pa(a){return a%4===0&&a%100!==0||a%400===0}function qa(){return pa(this.year())}function ra(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 100>a&&a>=0&&isFinite(h.getFullYear())&&h.setFullYear(a),h}function sa(a){var b=new Date(Date.UTC.apply(null,arguments));return 100>a&&a>=0&&isFinite(b.getUTCFullYear())&&b.setUTCFullYear(a),b}function ta(a,b,c){var d=7+b-c,e=(7+sa(a,0,d).getUTCDay()-b)%7;return-e+d-1}function ua(a,b,c,d,e){var f,g,h=(7+c-d)%7,i=ta(a,d,e),j=1+7*(b-1)+h+i;return 0>=j?(f=a-1,g=oa(f)+j):j>oa(a)?(f=a+1,g=j-oa(a)):(f=a,g=j),{year:f,dayOfYear:g}}function va(a,b,c){var d,e,f=ta(a.year(),b,c),g=Math.floor((a.dayOfYear()-f-1)/7)+1;return 1>g?(e=a.year()-1,d=g+wa(e,b,c)):g>wa(a.year(),b,c)?(d=g-wa(a.year(),b,c),e=a.year()+1):(e=a.year(),d=g),{week:d,year:e}}function wa(a,b,c){var d=ta(a,b,c),e=ta(a+1,b,c);return(oa(a)-d+e)/7}function xa(a){return va(a,this._week.dow,this._week.doy).week}function ya(){return this._week.dow}function za(){return this._week.doy}function Aa(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")}function Ba(a){var b=va(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")}function Ca(a,b){return"string"!=typeof a?a:isNaN(a)?(a=b.weekdaysParse(a),"number"==typeof a?a:null):parseInt(a,10)}function Da(a,b){return"string"==typeof a?b.weekdaysParse(a)%7||7:isNaN(a)?null:a}function Ea(a,b){return c(this._weekdays)?this._weekdays[a.day()]:this._weekdays[this._weekdays.isFormat.test(b)?"format":"standalone"][a.day()]}function Fa(a){return this._weekdaysShort[a.day()]}function Ga(a){return this._weekdaysMin[a.day()]}function Ha(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],d=0;7>d;++d)f=j([2e3,1]).day(d),this._minWeekdaysParse[d]=this.weekdaysMin(f,"").toLocaleLowerCase(),this._shortWeekdaysParse[d]=this.weekdaysShort(f,"").toLocaleLowerCase(),this._weekdaysParse[d]=this.weekdays(f,"").toLocaleLowerCase();return c?"dddd"===b?(e=sd.call(this._weekdaysParse,g),-1!==e?e:null):"ddd"===b?(e=sd.call(this._shortWeekdaysParse,g),-1!==e?e:null):(e=sd.call(this._minWeekdaysParse,g),-1!==e?e:null):"dddd"===b?(e=sd.call(this._weekdaysParse,g),-1!==e?e:(e=sd.call(this._shortWeekdaysParse,g),-1!==e?e:(e=sd.call(this._minWeekdaysParse,g),-1!==e?e:null))):"ddd"===b?(e=sd.call(this._shortWeekdaysParse,g),-1!==e?e:(e=sd.call(this._weekdaysParse,g),-1!==e?e:(e=sd.call(this._minWeekdaysParse,g),-1!==e?e:null))):(e=sd.call(this._minWeekdaysParse,g),-1!==e?e:(e=sd.call(this._weekdaysParse,g),-1!==e?e:(e=sd.call(this._shortWeekdaysParse,g),-1!==e?e:null)))}function Ia(a,b,c){var d,e,f;if(this._weekdaysParseExact)return Ha.call(this,a,b,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),d=0;7>d;d++){if(e=j([2e3,1]).day(d),c&&!this._fullWeekdaysParse[d]&&(this._fullWeekdaysParse[d]=new RegExp("^"+this.weekdays(e,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[d]=new RegExp("^"+this.weekdaysShort(e,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[d]=new RegExp("^"+this.weekdaysMin(e,"").replace(".",".?")+"$","i")),this._weekdaysParse[d]||(f="^"+this.weekdays(e,"")+"|^"+this.weekdaysShort(e,"")+"|^"+this.weekdaysMin(e,""),this._weekdaysParse[d]=new RegExp(f.replace(".",""),"i")),c&&"dddd"===b&&this._fullWeekdaysParse[d].test(a))return d;if(c&&"ddd"===b&&this._shortWeekdaysParse[d].test(a))return d;if(c&&"dd"===b&&this._minWeekdaysParse[d].test(a))return d;if(!c&&this._weekdaysParse[d].test(a))return d}}
vendor: 1,119 bytes, line 11
11function Ja(a){if(!this.isValid())return null!=a?this:0/0;var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=Ca(a,this.localeData()),this.add(a-b,"d")):b}function Ka(a){if(!this.isValid())return null!=a?this:0/0;var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")}function La(a){if(!this.isValid())return null!=a?this:0/0;if(null!=a){var b=Da(a,this.localeData());return this.day(this.day()%7?b:b-7)}return this.day()||7}function Ma(a){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Pa.call(this),a?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=pe),this._weekdaysStrictRegex&&a?this._weekdaysStrictRegex:this._weekdaysRegex)}function Na(a){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Pa.call(this),a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Oa(a){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Pa.
vendor: 33,132 bytes, lines 11-13
11call(this),a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=re),this._weekdaysMinStrictRegex&&a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Pa(){function a(a,b){return b.length-a.length}var b,c,d,e,f,g=[],h=[],i=[],k=[];for(b=0;7>b;b++)c=j([2e3,1]).day(b),d=this.weekdaysMin(c,""),e=this.weekdaysShort(c,""),f=this.weekdays(c,""),g.push(d),h.push(e),i.push(f),k.push(d),k.push(e),k.push(f);for(g.sort(a),h.sort(a),i.sort(a),k.sort(a),b=0;7>b;b++)h[b]=_(h[b]),i[b]=_(i[b]),k[b]=_(k[b]);this._weekdaysRegex=new RegExp("^("+k.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+g.join("|")+")","i")}function Qa(){return this.hours()%12||12}function Ra(){return this.hours()||24}function Sa(a,b){T(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}function Ta(a,b){return b._meridiemParse}function Ua(a){return"p"===(a+"").toLowerCase().charAt(0)}function Va(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"}function Wa(a){return a?a.toLowerCase().replace("_","-"):a}function Xa(a){for(var b,c,d,e,f=0;f<a.length;){for(e=Wa(a[f]).split("-"),b=e.length,c=Wa(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=Ya(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&u(e,c,!0)>=b-1)break;b--}f++}return null}function Ya(a){var b=null;if(!we[a]&&"undefined"!=typeof module&&module&&module.exports)try{b=se._abbr,require("./locale/"+a),Za(b)}catch(c){}return we[a]}function Za(a,b){var c;return a&&(c=o(b)?ab(a):$a(a,b),c&&(se=c)),se._abbr}function $a(a,b){if(null!==b){var c=ve;return b.abbr=a,null!=we[a]?(x("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."),c=we[a]._config):null!=b.parentLocale&&(null!=we[b.parentLocale]?c=we[b.parentLocale]._config:x("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),we[a]=new B(A(c,b)),Za(a),we[a]}return delete we[a],null}function _a(a,b){if(null!=b){var c,d=ve;null!=we[a]&&(d=we[a]._config),b=A(d,b),c=new B(b),c.parentLocale=we[a],we[a]=c,Za(a)}else null!=we[a]&&(null!=we[a].parentLocale?we[a]=we[a].parentLocale:null!=we[a]&&delete we[a]);return we[a]}function ab(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return se;if(!c(a)){if(b=Ya(a))return b;a=[a]}return Xa(a)}function bb(){return rd(we)}function cb(a){var b,c=a._a;return c&&-2===l(a).overflow&&(b=c[Zd]<0||c[Zd]>11?Zd:c[$d]<1||c[$d]>da(c[Yd],c[Zd])?$d:c[_d]<0||c[_d]>24||24===c[_d]&&(0!==c[ae]||0!==c[be]||0!==c[ce])?_d:c[ae]<0||c[ae]>59?ae:c[be]<0||c[be]>59?be:c[ce]<0||c[ce]>999?ce:-1,l(a)._overflowDayOfYear&&(Yd>b||b>$d)&&(b=$d),l(a)._overflowWeeks&&-1===b&&(b=de),l(a)._overflowWeekday&&-1===b&&(b=ee),l(a).overflow=b),a}function db(a){var b,c,d,e,f,g,h=a._i,i=xe.exec(h)||ye.exec(h);if(i){for(l(a).iso=!0,b=0,c=Ae.length;c>b;b++)if(Ae[b][1].exec(i[1])){e=Ae[b][0],d=Ae[b][2]!==!1;break}if(null==e)return void(a._isValid=!1);if(i[3]){for(b=0,c=Be.length;c>b;b++)if(Be[b][1].exec(i[3])){f=(i[2]||" ")+Be[b][0];break}if(null==f)return void(a._isValid=!1)}if(!d&&null!=f)return void(a._isValid=!1);if(i[4]){if(!ze.exec(i[4]))return void(a._isValid=!1);g="Z"}a._f=e+(f||"")+(g||""),jb(a)}else a._isValid=!1}function eb(b){var c=Ce.exec(b._i);return null!==c?void(b._d=new Date(+c[1])):(db(b),void(b._isValid===!1&&(delete b._isValid,a.createFromInputFallback(b))))}function fb(a,b,c){return null!=a?a:null!=b?b:c}function gb(b){var c=new Date(a.now());return b._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()]}function hb(a){var b,c,d,e,f=[];if(!a._d){for(d=gb(a),a._w&&null==a._a[$d]&&null==a._a[Zd]&&ib(a),a._dayOfYear&&(e=fb(a._a[Yd],d[Yd]),a._dayOfYear>oa(e)&&(l(a)._overflowDayOfYear=!0),c=sa(e,0,a._dayOfYear),a._a[Zd]=c.getUTCMonth(),a._a[$d]=c.getUTCDate()),b=0;3>b&&null==a._a[b];++b)a._a[b]=f[b]=d[b];for(;7>b;b++)a._a[b]=f[b]=null==a._a[b]?2===b?1:0:a._a[b];24===a._a[_d]&&0===a._a[ae]&&0===a._a[be]&&0===a._a[ce]&&(a._nextDay=!0,a._a[_d]=0),a._d=(a._useUTC?sa:ra).apply(null,f),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[_d]=24)}}function ib(a){var b,c,d,e,f,g,h,i;b=a._w,null!=b.GG||null!=b.W||null!=b.E?(f=1,g=4,c=fb(b.GG,a._a[Yd],va(rb(),1,4).year),d=fb(b.W,1),e=fb(b.E,1),(1>e||e>7)&&(i=!0)):(f=a._locale._week.dow,g=a._locale._week.doy,c=fb(b.gg,a._a[Yd],va(rb(),f,g).year),d=fb(b.w,1),null!=b.d?(e=b.d,(0>e||e>6)&&(i=!0)):null!=b.e?(e=b.e+f,(b.e<0||b.e>6)&&(i=!0)):e=f),1>d||d>wa(c,f,g)?l(a)._overflowWeeks=!0:null!=i?l(a)._overflowWeekday=!0:(h=ua(c,d,e,f,g),a._a[Yd]=h.year,a._dayOfYear=h.dayOfYear)}function jb(b){if(b._f===a.ISO_8601)return void db(b);b._a=[],l(b).empty=!0;var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=X(b._f,b._locale).match(Bd)||[],c=0;c<e.length;c++)f=e[c],d=(h.match(Z(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&l(b).unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),Ed[f]?(d?l(b).empty=!1:l(b).unusedTokens.push(f),ca(f,d,b)):b._strict&&!d&&l(b).unusedTokens.push(f);l(b).charsLeftOver=i-j,h.length>0&&l(b).unusedInput.push(h),b._a[_d]<=12&&l(b).bigHour===!0&&b._a[_d]>0&&(l(b).bigHour=void 0),l(b).parsedDateParts=b._a.slice(0),l(b).meridiem=b._meridiem,b._a[_d]=kb(b._locale,b._a[_d],b._meridiem),hb(b),cb(b)}function kb(a,b,c){var d;return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&12>b&&(b+=12),d||12!==b||(b=0),b):b}function lb(a){var b,c,d,e,f;if(0===a._f.length)return l(a).invalidFormat=!0,void(a._d=new Date(0/0));for(e=0;e<a._f.length;e++)f=0,b=p({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._f=a._f[e],jb(b),m(b)&&(f+=l(b).charsLeftOver,f+=10*l(b).unusedTokens.length,l(b).score=f,(null==d||d>f)&&(d=f,c=b));i(a,c||b)}function mb(a){if(!a._d){var b=K(a._i);a._a=g([b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],function(a){return a&&parseInt(a,10)}),hb(a)}}function nb(a){var b=new q(cb(ob(a)));return b._nextDay&&(b.add(1,"d"),b._nextDay=void 0),b}function ob(a){var b=a._i,d=a._f;return a._locale=a._locale||ab(a._l),null===b||void 0===d&&""===b?n({nullInput:!0}):("string"==typeof b&&(a._i=b=a._locale.preparse(b)),r(b)?new q(cb(b)):(c(d)?lb(a):f(b)?a._d=b:d?jb(a):pb(a),m(a)||(a._d=null),a))}function pb(b){var d=b._i;void 0===d?b._d=new Date(a.now()):f(d)?b._d=new Date(d.valueOf()):"string"==typeof d?eb(b):c(d)?(b._a=g(d.slice(0),function(a){return parseInt(a,10)}),hb(b)):"object"==typeof d?mb(b):"number"==typeof d?b._d=new Date(d):a.createFromInputFallback(b)}function qb(a,b,f,g,h){var i={};return"boolean"==typeof f&&(g=f,f=void 0),(d(a)&&e(a)||c(a)&&0===a.length)&&(a=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=h,i._l=f,i._i=a,i._f=b,i._strict=g,nb(i)}function rb(a,b,c,d){return qb(a,b,c,d,!1)}function sb(a,b){var d,e;if(1===b.length&&c(b[0])&&(b=b[0]),!b.length)return rb();for(d=b[0],e=1;e<b.length;++e)(!b[e].isValid()||b[e][a](d))&&(d=b[e]);return d}function tb(){var a=[].slice.call(arguments,0);return sb("isBefore",a)}function ub(){var a=[].slice.call(arguments,0);return sb("isAfter",a)}function vb(a){var b=K(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+1e3*h*60*60,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=ab(),this._bubble()}function wb(a){return a instanceof vb}function xb(a,b){T(a,0,0,function(){var a=this.utcOffset(),c="+";return 0>a&&(a=-a,c="-"),c+S(~~(a/60),2)+b+S(~~a%60,2)})}function yb(a,b){var c=(b||"").match(a)||[],d=c[c.length-1]||[],e=(d+"").match(Ge)||["-",0,0],f=+(60*e[1])+t(e[2]);return"+"===e[0]?f:-f}function zb(b,c){var d,e;return c._isUTC?(d=c.clone(),e=(r(b)||f(b)?b.valueOf():rb(b).valueOf())-d.valueOf(),d._d.setTime(d._d.valueOf()+e),a.updateOffset(d,!1),d):rb(b).local()}function Ab(a){return 15*-Math.round(a._d.getTimezoneOffset()/15)}function Bb(b,c){var d,e=this._offset||0;return this.isValid()?null!=b?("string"==typeof b?b=yb(Td,b):Math.abs(b)<16&&(b=60*b),!this._isUTC&&c&&(d=Ab(this)),this._offset=b,this._isUTC=!0,null!=d&&this.add(d,"m"),e!==b&&(!c||this._changeInProgress?Sb(this,Mb(b-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?e:Ab(this):null!=b?this:0/0}function Cb(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}function Db(a){return this.utcOffset(0,a)}function Eb(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(Ab(this),"m")),this}function Fb(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(yb(Sd,this._i)),this}function Gb(a){return this.isValid()?(a=a?rb(a).utcOffset():0,(this.utcOffset()-a)%60===0):!1}function Hb(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ib(){if(!o(this._isDSTShifted))return this._isDSTShifted;var a={};if(p(a,this),a=ob(a),a._a){var b=a._isUTC?j(a._a):rb(a._a);this._isDSTShifted=this.isValid()&&u(a._a,b.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Jb(){return this.isValid()?!this._isUTC:!1}function Kb(){return this.isValid()?this._isUTC:!1}function Lb(){return this.isValid()?this._isUTC&&0===this._offset:!1}function Mb(a,b){var c,d,e,f=a,g=null;return wb(a)?f={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(f={},b?f[b]=a:f.milliseconds=a):(g=He.exec(a))?(c="-"===g[1]?-1:1,f={y:0,d:t(g[$d])*c,h:t(g[_d])*c,m:t(g[ae])*c,s:t(g[be])*c,ms:t(g[ce])*c}):(g=Ie.exec(a))?(c="-"===g[1]?-1:1,f={y:Nb(g[2],c),M:Nb(g[3],c),w:Nb(g[4],c),d:Nb(g[5],c),h:Nb(g[6],c),m:Nb(g[7],c),s:Nb(g[8],c)}):null==f?f={}:"object"==typeof f&&("from"in f||"to"in f)&&(e=Pb(rb(f.from),rb(f.to)),f={},f.ms=e.milliseconds,f.M=e.months),d=new vb(f),wb(a)&&h(a,"_locale")&&(d._locale=a._locale),d}function Nb(a,b){var c=a&&parseFloat(a.replace(",","."));return(isNaN(c)?0:c)*b}function Ob(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function Pb(a,b){var c;return a.isValid()&&b.isValid()?(b=zb(b,a),a.isBefore(b)?c=Ob(a,b):(c=Ob(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}function Qb(a){return 0>a?-1*Math.round(-1*a):Math.round(a)}function Rb(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||(x(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=Mb(c,d),Sb(this,e,a),this}}function Sb(b,c,d,e){var f=c._milliseconds,g=Qb(c._days),h=Qb(c._months);b.isValid()&&(e=null==e?!0:e,f&&b._d.setTime(b._d.valueOf()+f*d),g&&P(b,"Date",O(b,"Date")+g*d),h&&ia(b,O(b,"Month")+h*d),e&&a.updateOffset(b,g||h))}function Tb(a,b){var c=a.diff(b,"days",!0);return-6>c?"sameElse":-1>c?"lastWeek":0>c?"lastDay":1>c?"sameDay":2>c?"nextDay":7>c?"nextWeek":"sameElse"}function Ub(b,c){var d=b||rb(),e=zb(d,this).startOf("day"),f=a.calendarFormat(this,e)||"sameElse",g=c&&(y(c[f])?c[f].call(this,d):c[f]);return this.format(g||this.localeData().calendar(f,this,rb(d)))}function Vb(){return new q(this)}function Wb(a,b){var c=r(a)?a:rb(a);return this.isValid()&&c.isValid()?(b=J(o(b)?"millisecond":b),"millisecond"===b?this.valueOf()>c.valueOf():c.valueOf()<this.clone().startOf(b).valueOf()):!1}function Xb(a,b){var c=r(a)?a:rb(a);return this.isValid()&&c.isValid()?(b=J(o(b)?"millisecond":b),"millisecond"===b?this.valueOf()<c.valueOf():this.clone().endOf(b).valueOf()<c.valueOf()):!1}function Yb(a,b,c,d){return d=d||"()",("("===d[0]?this.isAfter(a,c):!this.isBefore(a,c))&&(")"===d[1]?this.isBefore(b,c):!this.isAfter(b,c))}function Zb(a,b){var c,d=r(a)?a:rb(a);return this.isValid()&&d.isValid()?(b=J(b||"millisecond"),"millisecond"===b?this.valueOf()===d.valueOf():(c=d.valueOf(),this.clone().startOf(b).valueOf()<=c&&c<=this.clone().endOf(b).valueOf())):!1}function $b(a,b){return this.isSame(a,b)||this.isAfter(a,b)}function _b(a,b){return this.isSame(a,b)||this.isBefore(a,b)}function ac(a,b,c){var d,e,f,g;return this.isValid()?(d=zb(a,this),d.isValid()?(e=6e4*(d.utcOffset()-this.utcOffset()),b=J(b),"year"===b||"month"===b||"quarter"===b?(g=bc(this,d),"quarter"===b?g/=3:"year"===b&&(g/=12)):(f=this-d,g="second"===b?f/1e3:"minute"===b?f/6e4:"hour"===b?f/36e5:"day"===b?(f-e)/864e5:"week"===b?(f-e)/6048e5:f),c?g:s(g)):0/0):0/0}function bc(a,b){var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),f=a.clone().add(e,"months");return 0>b-f?(c=a.clone().add(e-1,"months"),d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)||0}function cc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dc(){var a=this.clone().utc();return 0<a.year()&&a.year()<=9999?y(Date.prototype.toISOString)?this.toDate().toISOString():W(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):W(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ec(b){b||(b=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var c=W(this,b);return this.localeData().postformat(c)}function fc(a,b){return this.isValid()&&(r(a)&&a.isValid()||rb(a).isValid())?Mb({to:this,from:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function gc(a){return this.from(rb(),a)}function hc(a,b){return this.isValid()&&(r(a)&&a.isValid()||rb(a).isValid())?Mb({from:this,to:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function ic(a){return this.to(rb(),a)}function jc(a){var b;return void 0===a?this._locale._abbr:(b=ab(a),null!=b&&(this._locale=b),this)}function kc(){return this._locale}function lc(a){switch(a=J(a)){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"===a&&this.weekday(0),"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this}function mc(a){return a=J(a),void 0===a||"millisecond"===a?this:("date"===a&&(a="day"),this.startOf(a).add(1,"isoWeek"===a?"week":a).subtract(1,"ms"))}function nc(){return this._d.valueOf()-6e4*(this._offset||0)}function oc(){return Math.floor(this.valueOf()/1e3)}function pc(){return new Date(this.valueOf())}function qc(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function rc(){var a=this;return{years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function sc(){return this.isValid()?this.toISOString():null}function tc(){return m(this)}function uc(){return i({},l(this))}function vc(){return l(this).overflow}function wc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xc(a,b){T(0,[a,a.length],0,b)}function yc(a){return Cc.call(this,a,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function zc(a){return Cc.call(this,a,this.isoWeek(),this.isoWeekday(),1,4)}function Ac(){return wa(this.year(),1,4)}function Bc(){var a=this.localeData()._week;return wa(this.year(),a.dow,a.doy)}function Cc(a,b,c,d,e){var f;return null==a?va(this,d,e).year:(f=wa(a,d,e),b>f&&(b=f),Dc.call(this,a,b,c,d,e))}function Dc(a,b,c,d,e){var f=ua(a,b,c,d,e),g=sa(f.year,0,f.dayOfYear);return this.year(g.getUTCFullYear()),this.month(g.getUTCMonth()),this.date(g.getUTCDate()),this}function Ec(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)}function Fc(a){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")}function Gc(a,b){b[ce]=t(1e3*("0."+a))}function Hc(){return this._isUTC?"UTC":""}function Ic(){return this._isUTC?"Coordinated Universal Time":""}function Jc(a){return rb(1e3*a)}function Kc(){return rb.apply(null,arguments).parseZone()}function Lc(a){return a}function Mc(a,b,c,d){var e=ab(),f=j().set(d,b);return e[c](f,a)}function Nc(a,b,c){if("number"==typeof a&&(b=a,a=void 0),a=a||"",null!=b)return Mc(a,b,c,"month");var d,e=[];for(d=0;12>d;d++)e[d]=Mc(a,d,c,"month");return e}function Oc(a,b,c,d){"boolean"==typeof a?("number"==typeof b&&(c=b,b=void 0),b=b||""):(b=a,c=b,a=!1,"number"==typeof b&&(c=b,b=void 0),b=b||"");var e=ab(),f=a?e._week.dow:0;if(null!=c)return Mc(b,(c+f)%7,d,"day");var g,h=[];for(g=0;7>g;g++)h[g]=Mc(b,(g+f)%7,d,"day");return h}function Pc(a,b){return Nc(a,b,"months")}function Qc(a,b){return Nc(a,b,"monthsShort")}function Rc(a,b,c){return Oc(a,b,c,"weekdays")}function Sc(a,b,c){return Oc(a,b,c,"weekdaysShort")}function Tc(a,b,c){return Oc(a,b,c,"weekdaysMin"); 12 13}function Uc(){var a=this._data;return this._milliseconds=Ue(this._milliseconds),this._days=Ue(this._days),this._months=Ue(this._months),a.milliseconds=Ue(a.milliseconds),a.seconds=Ue(a.seconds),a.minutes=Ue(a.minutes),a.hours=Ue(a.hours),a.months=Ue(a.months),a.years=Ue(a.years),this}function Vc(a,b,c,d){var e=Mb(b,c);return a._milliseconds+=d*e._milliseconds,a._days+=d*e._days,a._months+=d*e._months,a._bubble()}function Wc(a,b){return Vc(this,a,b,1)}function Xc(a,b){return Vc(this,a,b,-1)}function Yc(a){return 0>a?Math.floor(a):Math.ceil(a)}function Zc(){var a,b,c,d,e,f=this._milliseconds,g=this._days,h=this._months,i=this._data;return f>=0&&g>=0&&h>=0||0>=f&&0>=g&&0>=h||(f+=864e5*Yc(_c(h)+g),g=0,h=0),i.milliseconds=f%1e3,a=s(f/1e3),i.seconds=a%60,b=s(a/60),i.minutes=b%60,c=s(b/60),i.hours=c%24,g+=s(c/24),e=s($c(g)),h+=e,g-=Yc(_c(e)),d=s(h/12),h%=12,i.days=g,i.months=h,i.years=d,this}function $c(a){return 4800*a/146097}function _c(a){return 146097*a/4800}function ad(a){var b,c,d=this._milliseconds;if(a=J(a),"month"===a||"year"===a)return b=this._days+d/864e5,c=this._months+$c(b),"month"===a?c:c/12;switch(b=this._days+Math.round(_c(this._months)),a){case"week":return b/7+d/6048e5;case"day":return b+d/864e5;case"hour":return 24*b+d/36e5;case"minute":return 1440*b+d/6e4;case"second":return 86400*b+d/1e3;case"millisecond":return Math.floor(864e5*b)+d;default:throw new Error("Unknown unit "+a)}}function bd(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*t(this._months/12)}function cd(a){return function(){return this.as(a)}}function dd(a){return a=J(a),this[a+"s"]()}function ed(a){return function(){return this._data[a]}}function fd(){return s(this.days()/7)}function gd(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function hd(a,b,c){var d=Mb(a).abs(),e=jf(d.as("s")),f=jf(d.as("m")),g=jf(d.as("h")),h=jf(d.as("d")),i=jf(d.as("M")),j=jf(d.as("y")),k=e<kf.s&&["s",e]||1>=f&&["m"]||f<kf.m&&["mm",f]||1>=g&&["h"]||g<kf.h&&["hh",g]||1>=h&&["d"]||h<kf.d&&["dd",h]||1>=i&&["M"]||i<kf.M&&["MM",i]||1>=j&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,gd.apply(null,k)}function id(a){return void 0===a?jf:"function"==typeof a?(jf=a,!0):!1}function jd(a,b){return void 0===kf[a]?!1:void 0===b?kf[a]:(kf[a]=b,!0)}function kd(a){var b=this.localeData(),c=hd(this,!a,b);return a&&(c=b.pastFuture(+this,c)),b.postformat(c)}function ld(){var a,b,c,d=lf(this._milliseconds)/1e3,e=lf(this._days),f=lf(this._months);a=s(d/60),b=s(a/60),d%=60,a%=60,c=s(f/12),f%=12;var g=c,h=f,i=e,j=b,k=a,l=d,m=this.asSeconds();return m?(0>m?"-":"")+"P"+(g?g+"Y":"")+(h?h+"M":"")+(i?i+"D":"")+(j||k||l?"T":"")+(j?j+"H":"")+(k?k+"M":"")+(l?l+"S":""):"P0D"}var md,nd;nd=Array.prototype.some?Array.prototype.some:function(a){for(var b=Object(this),c=b.length>>>0,d=0;c>d;d++)if(d in b&&a.call(this,b[d],d,b))return!0;return!1};var od=a.momentProperties=[],pd=!1,qd={};a.suppressDeprecationWarnings=!1,a.deprecationHandler=null;var rd;rd=Object.keys?Object.keys:function(a){var b,c=[];for(b in a)h(a,b)&&c.push(b);return c};var sd,td={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},ud={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"},vd="Invalid date",wd="%d",xd=/\d{1,2}/,yd={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"},zd={},Ad={},Bd=/(\[[^\[]*\])|(\\)?([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,Cd=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Dd={},Ed={},Fd=/\d/,Gd=/\d\d/,Hd=/\d{3}/,Id=/\d{4}/,Jd=/[+-]?\d{6}/,Kd=/\d\d?/,Ld=/\d\d\d\d?/,Md=/\d\d\d\d\d\d?/,Nd=/\d{1,3}/,Od=/\d{1,4}/,Pd=/[+-]?\d{1,6}/,Qd=/\d+/,Rd=/[+-]?\d+/,Sd=/Z|[+-]\d\d:?\d\d/gi,Td=/Z|[+-]\d\d(?::?\d\d)?/gi,Ud=/[+-]?\d+(\.\d{1,3})?/,Vd=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Wd={},Xd={},Yd=0,Zd=1,$d=2,_d=3,ae=4,be=5,ce=6,de=7,ee=8;sd=Array.prototype.indexOf?Array.prototype.indexOf:function(a){var b;for(b=0;b<this.length;++b)if(this[b]===a)return b;return-1},T("M",["MM",2],"Mo",function(){return this.month()+1}),T("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)}),T("MMMM",0,0,function(a){return this.localeData().months(this,a)}),I("month","M"),L("month",8),Y("M",Kd),Y("MM",Kd,Gd),Y("MMM",function(a,b){return b.monthsShortRegex(a)}),Y("MMMM",function(a,b){return b.monthsRegex(a)}),aa(["M","MM"],function(a,b){b[Zd]=t(a)-1}),aa(["MMM","MMMM"],function(a,b,c,d){var e=c._locale.monthsParse(a,d,c._strict);null!=e?b[Zd]=e:l(c).invalidMonth=a});var fe=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,ge="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("_"),ie=Vd,je=Vd;T("Y",0,0,function(){var a=this.year();return 9999>=a?""+a:"+"+a}),T(0,["YY",2],0,function(){return this.year()%100}),T(0,["YYYY",4],0,"year"),T(0,["YYYYY",5],0,"year"),T(0,["YYYYYY",6,!0],0,"year"),I("year","y"),L("year",1),Y("Y",Rd),Y("YY",Kd,Gd),Y("YYYY",Od,Id),Y("YYYYY",Pd,Jd),Y("YYYYYY",Pd,Jd),aa(["YYYYY","YYYYYY"],Yd),aa("YYYY",function(b,c){c[Yd]=2===b.length?a.parseTwoDigitYear(b):t(b)}),aa("YY",function(b,c){c[Yd]=a.parseTwoDigitYear(b)}),aa("Y",function(a,b){b[Yd]=parseInt(a,10)}),a.parseTwoDigitYear=function(a){return t(a)+(t(a)>68?1900:2e3)};var ke=N("FullYear",!0);T("w",["ww",2],"wo","week"),T("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),L("week",5),L("isoWeek",5),Y("w",Kd),Y("ww",Kd,Gd),Y("W",Kd),Y("WW",Kd,Gd),ba(["w","ww","W","WW"],function(a,b,c,d){b[d.substr(0,1)]=t(a)});var le={dow:0,doy:6};T("d",0,"do","day"),T("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),T("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),T("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),T("e",0,0,"weekday"),T("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),Y("d",Kd),Y("e",Kd),Y("E",Kd),Y("dd",function(a,b){return b.weekdaysMinRegex(a)}),Y("ddd",function(a,b){return b.weekdaysShortRegex(a)}),Y("dddd",function(a,b){return b.weekdaysRegex(a)}),ba(["dd","ddd","dddd"],function(a,b,c,d){var e=c._locale.weekdaysParse(a,d,c._strict);null!=e?b.d=e:l(c).invalidWeekday=a}),ba(["d","e","E"],function(a,b,c,d){b[d]=t(a)});var me="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),oe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),pe=Vd,qe=Vd,re=Vd;T("H",["HH",2],0,"hour"),T("h",["hh",2],0,Qa),T("k",["kk",2],0,Ra),T("hmm",0,0,function(){return""+Qa.apply(this)+S(this.minutes(),2)}),T("hmmss",0,0,function(){return""+Qa.apply(this)+S(this.minutes(),2)+S(this.seconds(),2)}),T("Hmm",0,0,function(){return""+this.hours()+S(this.minutes(),2)}),T("Hmmss",0,0,function(){return""+this.hours()+S(this.minutes(),2)+S(this.seconds(),2)}),Sa("a",!0),Sa("A",!1),I("hour","h"),L("hour",13),Y("a",Ta),Y("A",Ta),Y("H",Kd),Y("h",Kd),Y("HH",Kd,Gd),Y("hh",Kd,Gd),Y("hmm",Ld),Y("hmmss",Md),Y("Hmm",Ld),Y("Hmmss",Md),aa(["H","HH"],_d),aa(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),aa(["h","hh"],function(a,b,c){b[_d]=t(a),l(c).bigHour=!0}),aa("hmm",function(a,b,c){var d=a.length-2;b[_d]=t(a.substr(0,d)),b[ae]=t(a.substr(d)),l(c).bigHour=!0}),aa("hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[_d]=t(a.substr(0,d)),b[ae]=t(a.substr(d,2)),b[be]=t(a.substr(e)),l(c).bigHour=!0}),aa("Hmm",function(a,b){var c=a.length-2;b[_d]=t(a.substr(0,c)),b[ae]=t(a.substr(c))}),aa("Hmmss",function(a,b){var c=a.length-4,d=a.length-2;b[_d]=t(a.substr(0,c)),b[ae]=t(a.substr(c,2)),b[be]=t(a.substr(d))});var se,te=/[ap]\.?m?\.?/i,ue=N("Hours",!0),ve={calendar:td,longDateFormat:ud,invalidDate:vd,ordinal:wd,ordinalParse:xd,relativeTime:yd,months:ge,monthsShort:he,week:le,weekdays:me,weekdaysMin:oe,weekdaysShort:ne,meridiemParse:te},we={},xe=/^\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)?)?/,ye=/^\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)?)?/,ze=/Z|[+-]\d\d(?::?\d\d)?/,Ae=[["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}/]],Be=[["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/]],Ce=/^\/?Date\((\-?\d+)/i;a.createFromInputFallback=w("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),a.ISO_8601=function(){};var De=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=rb.apply(null,arguments);return this.isValid()&&a.isValid()?this>a?this:a:n()}),Ee=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=rb.apply(null,arguments);return this.isValid()&&a.isValid()?a>this?this:a:n()}),Fe=function(){return Date.now?Date.now():+new Date};xb("Z",":"),xb("ZZ",""),Y("Z",Td),Y("ZZ",Td),aa(["Z","ZZ"],function(a,b,c){c._useUTC=!0,c._tzm=yb(Td,a)});var Ge=/([\+\-]|\d\d)/gi;a.updateOffset=function(){};var He=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,Ie=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Mb.fn=vb.prototype;var Je=Rb(1,"add"),Ke=Rb(-1,"subtract");a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Le=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return void 0===a?this.localeData():this.locale(a)});T(0,["gg",2],0,function(){return this.weekYear()%100}),T(0,["GG",2],0,function(){return this.isoWeekYear()%100}),xc("gggg","weekYear"),xc("ggggg","weekYear"),xc("GGGG","isoWeekYear"),xc("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),Y("G",Rd),Y("g",Rd),Y("GG",Kd,Gd),Y("gg",Kd,Gd),Y("GGGG",Od,Id),Y("gggg",Od,Id),Y("GGGGG",Pd,Jd),Y("ggggg",Pd,Jd),ba(["gggg","ggggg","GGGG","GGGGG"],function(a,b,c,d){b[d.substr(0,2)]=t(a)}),ba(["gg","GG"],function(b,c,d,e){c[e]=a.parseTwoDigitYear(b)}),T("Q",0,"Qo","quarter"),I("quarter","Q"),L("quarter",7),Y("Q",Fd),aa("Q",function(a,b){b[Zd]=3*(t(a)-1)}),T("D",["DD",2],"Do","date"),I("date","D"),L("date",9),Y("D",Kd),Y("DD",Kd,Gd),Y("Do",function(a,b){return a?b._ordinalParse:b._ordinalParseLenient}),aa(["D","DD"],$d),aa("Do",function(a,b){b[$d]=t(a.match(Kd)[0],10)});var Me=N("Date",!0);T("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),L("dayOfYear",4),Y("DDD",Nd),Y("DDDD",Hd),aa(["DDD","DDDD"],function(a,b,c){c._dayOfYear=t(a)}),T("m",["mm",2],0,"minute"),I("minute","m"),L("minute",14),Y("m",Kd),Y("mm",Kd,Gd),aa(["m","mm"],ae);var Ne=N("Minutes",!1);T("s",["ss",2],0,"second"),I("second","s"),L("second",15),Y("s",Kd),Y("ss",Kd,Gd),aa(["s","ss"],be);var Oe=N("Seconds",!1);T("S",0,0,function(){return~~(this.millisecond()/100)}),T(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),T(0,["SSS",3],0,"millisecond"),T(0,["SSSS",4],0,function(){return 10*this.millisecond()}),T(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),T(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),T(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),T(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),T(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),L("millisecond",16),Y("S",Nd,Fd),Y("SS",Nd,Gd),Y("SSS",Nd,Hd);var Pe;for(Pe="SSSS";Pe.length<=9;Pe+="S")Y(Pe,Qd);for(Pe="S";Pe.length<=9;Pe+="S")aa(Pe,Gc);var Qe=N("Milliseconds",!1);T("z",0,0,"zoneAbbr"),T("zz",0,0,"zoneName");var Re=q.prototype;Re.add=Je,Re.calendar=Ub,Re.clone=Vb,Re.diff=ac,Re.endOf=mc,Re.format=ec,Re.from=fc,Re.fromNow=gc,Re.to=hc,Re.toNow=ic,Re.get=Q,Re.invalidAt=vc,Re.isAfter=Wb,Re.isBefore=Xb,Re.isBetween=Yb,Re.isSame=Zb,Re.isSameOrAfter=$b,Re.isSameOrBefore=_b,Re.isValid=tc,Re.lang=Le,Re.locale=jc,Re.localeData=kc,Re.max=Ee,Re.min=De,Re.parsingFlags=uc,Re.set=R,Re.startOf=lc,Re.subtract=Ke,Re.toArray=qc,Re.toObject=rc,Re.toDate=pc,Re.toISOString=dc,Re.toJSON=sc,Re.toString=cc,Re.unix=oc,Re.valueOf=nc,Re.creationData=wc,Re.year=ke,Re.isLeapYear=qa,Re.weekYear=yc,Re.isoWeekYear=zc,Re.quarter=Re.quarters=Ec,Re.month=ja,Re.daysInMonth=ka,Re.week=Re.weeks=Aa,Re.isoWeek=Re.isoWeeks=Ba,Re.weeksInYear=Bc,Re.isoWeeksInYear=Ac,Re.date=Me,Re.day=Re.days=Ja,Re.weekday=Ka,Re.isoWeekday=La,Re.dayOfYear=Fc,Re.hour=Re.hours=ue,Re.minute=Re.minutes=Ne,Re.second=Re.seconds=Oe,Re.millisecond=Re.milliseconds=Qe,Re.utcOffset=Bb,Re.utc=Db,Re.local=Eb,Re.parseZone=Fb,Re.hasAlignedHourOffset=Gb,Re.isDST=Hb,Re.isLocal=Jb,Re.isUtcOffset=Kb,Re.isUtc=Lb,Re.isUTC=Lb,Re.zoneAbbr=Hc,Re.zoneName=Ic,Re.dates=w("dates accessor is deprecated. Use date instead.",Me),Re.months=w("months accessor is deprecated. Use month instead",ja),Re.years=w("years accessor is deprecated. Use year instead",ke),Re.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Cb),Re.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ib);var Se=Re,Te=B.prototype;Te.calendar=C,Te.longDateFormat=D,Te.invalidDate=E,Te.ordinal=F,Te.preparse=Lc,Te.postformat=Lc,Te.relativeTime=G,Te.pastFuture=H,Te.set=z,Te.months=ea,Te.monthsShort=fa,Te.monthsParse=ha,Te.monthsRegex=ma,Te.monthsShortRegex=la,Te.week=xa,Te.firstDayOfYear=za,Te.firstDayOfWeek=ya,Te.weekdays=Ea,Te.weekdaysMin=Ga,Te.weekdaysShort=Fa,Te.weekdaysParse=Ia,Te.weekdaysRegex=Ma,Te.weekdaysShortRegex=Na,Te.weekdaysMinRegex=Oa,Te.isPM=Ua,Te.meridiem=Va,Za("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===t(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),a.lang=w("moment.lang is deprecated. Use moment.locale instead.",Za),a.langData=w("moment.langData is deprecated. Use moment.localeData instead.",ab);var Ue=Math.abs,Ve=cd("ms"),We=cd("s"),Xe=cd("m"),Ye=cd("h"),Ze=cd("d"),$e=cd("w"),_e=cd("M"),af=cd("y"),bf=ed("milliseconds"),cf=ed("seconds"),df=ed("minutes"),ef=ed("hours"),ff=ed("days"),gf=ed("months"),hf=ed("years"),jf=Math.round,kf={s:45,m:45,h:22,d:26,M:11},lf=Math.abs,mf=vb.prototype;mf.abs=Uc,mf.add=Wc,mf.subtract=Xc,mf.as=ad,mf.asMilliseconds=Ve,mf.asSeconds=We,mf.asMinutes=Xe,mf.asHours=Ye,mf.asDays=Ze,mf.asWeeks=$e,mf.asMonths=_e,mf.asYears=af,mf.valueOf=bd,mf._bubble=Zc,mf.get=dd,mf.milliseconds=bf,mf.seconds=cf,mf.minutes=df,mf.hours=ef,mf.days=ff,mf.weeks=fd,mf.months=gf,mf.years=hf,mf.humanize=kd,mf.toISOString=ld,mf.toString=ld,mf.toJSON=ld,mf.locale=jc,mf.localeData=kc,mf.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ld),mf.lang=Le,T("X",0,0,"unix"),T("x",0,0,"valueOf"),Y("x",Rd),Y
13("X",Ud),aa("X",function(a,b,c){c._d=new Date(1e3*parseFloat(a,10))}),aa("x",function(a,b,c){c._d=new Date(t(a))}),a.version="2.14.1",b(rb),a.fn=Se,a.min=tb,a.max=ub,a.now=Fe,a.utc=j,a.unix=Jc,a.months=Pc,a.isDate=f,a.locale=Za,a.invalid=n,a.duration=Mb,a.isMoment=r,a.weekdays=Rc,a.parseZone=Kc,a.localeData=ab,a.isDuration=wb,a.monthsShort=Qc,a.weekdaysMin=Tc,a.defineLocale=$a,a.updateLocale=_a,a.locales=bb,a.weekdaysShort=Sc,a.normalizeUnits=J,a.relativeTimeRounding=id,a.relativeTimeThreshold=jd,a.calendarFormat=Tb,a.prototype=Se;var nf=a;return nf}),function(){"use strict";function a(a){this._value=a}function b(a){var b,c="";for(b=0;a>b;b++)c+="0";return c}function c(a,c){var d,e,f,g,h,i,j,k;return k=a.toString(),d=k.split("e")[0],g=k.split("e")[1],e=d.split(".")[0],f=d.split(".")[1]||"",+g>0?k=e+f+b(g-f.length):(h=0>+e?"-0":"0",c>0&&(h+="."),j=b(-1*g-1),i=(j+Math.abs(e)+f).substr(0,c),k=h+i),+g>0&&c>0&&(k+="."+b(c)),k}function d(a,b,d,e){var f,g,h=Math.pow(10,b);return a.toString().indexOf("e")>-1?(g=c(a,b),"-"===g.charAt(0)&&+g>=0&&(g=g.substr(1))):g=(d(a+"e+"+b)/h).toFixed(b),e&&(f=new RegExp("0{1,"+e+"}$"),g=g.replace(f,"")),g}function e(a,b,c){var d,e=b.replace(/\{[^\{\}]*\}/g,"");return d=e.indexOf("$")>-1?g(a,y[A].currency.symbol,b,c):e.indexOf("%")>-1?i(a,b,c):e.indexOf(":")>-1?j(a,b):m(a._value,b,c)}function f(a,b){var c,d,e,f,g,h=b,i=!1;if(b.indexOf(":")>-1)a._value=k(b);else if(b===B)a._value=0;else{for("."!==y[A].delimiters.decimal&&(b=b.replace(/\./g,"").replace(y[A].delimiters.decimal,".")),c=new RegExp("[^a-zA-Z]"+y[A].abbreviations.thousand+"(?:\\)|(\\"+y[A].currency.symbol+")?(?:\\))?)?$"),d=new RegExp("[^a-zA-Z]"+y[A].abbreviations.million+"(?:\\)|(\\"+y[A].currency.symbol+")?(?:\\))?)?$"),e=new RegExp("[^a-zA-Z]"+y[A].abbreviations.billion+"(?:\\)|(\\"+y[A].currency.symbol+")?(?:\\))?)?$"),f=new RegExp("[^a-zA-Z]"+y[A].abbreviations.trillion+"(?:\\)|(\\"+y[A].currency.symbol+")?(?:\\))?)?$"),g=1;g<u.length&&!i;++g)b.indexOf(u[g])>-1?i=Math.pow(1024,g):b.indexOf(v[g])>-1&&(i=Math.pow(1e3,g));var j=b.replace(/[^0-9\.]+/g,"");""===j?a._value=0/0:(a._value=(i?i:1)*(h.match(c)?Math.pow(10,3):1)*(h.match(d)?Math.pow(10,6):1)*(h.match(e)?Math.pow(10,9):1)*(h.match(f)?Math.pow(10,12):1)*(b.indexOf("%")>-1?.01:1)*((b.split("-").length+Math.min(b.split("(").length-1,b.split(")").length-1))%2?1:-1)*Number(j),a._value=i?Math.ceil(a._value):a._value)}return a._value}function g(a,b,c,d){var e,f,g=c,h=g.indexOf("$"),i=g.indexOf("("),j=g.indexOf("+"),k=g.indexOf("-"),l="",n="";if(-1===g.indexOf("$")?"infix"===y[A].currency.position?(n=b,y[A].currency.spaceSeparated&&(n=" "+n+" ")):y[A].currency.spaceSeparated&&(l=" "):g.indexOf(" $")>-1?(l=" ",g=g.replace(" $","")):g.indexOf("$ ")>-1?(l=" ",g=g.replace("$ ","")):g=g.replace("$",""),f=m(a._value,g,d,n),-1===c.indexOf("$"))switch(y[A].currency.position){case"postfix":f.indexOf(")")>-1?(f=f.split(""),f.splice(-1,0,l+b),f=f.join("")):f=f+l+b;break;case"infix":break;case"prefix":f.indexOf("(")>-1||f.indexOf("-")>-1?(f=f.split(""),e=Math.max(i,k)+1,f.splice(e,0,b+l),f=f.join("")):f=b+l+f;break;default:throw Error('Currency position should be among ["prefix", "infix", "postfix"]')}else 1>=h?f.indexOf("(")>-1||f.indexOf("+")>-1||f.indexOf("-")>-1?(f=f.split(""),e=1,(i>h||j>h||k>h)&&(e=0),f.splice(e,0,b+l),f=f.join("")):f=b+l+f:f.indexOf(")")>-1?(f=f.split(""),f.splice(-1,0,l+b),f=f.join("")):f=f+l+b;return f}function h(a,b,c,d){return g(a,b,c,d)}function i(a,b,c){var d,e="",f=100*a._value;return b.indexOf(" %")>-1?(e=" ",b=b.replace(" %","")):b=b.replace("%",""),d=m(f,b,c),d.indexOf(")")>-1?(d=d.split(""),d.splice(-1,0,e+"%"),d=d.join("")):d=d+e+"%",d}function j(a){var b=Math.floor(a._value/60/60),c=Math.floor((a._value-60*b*60)/60),d=Math.round(a._value-60*b*60-60*c);return b+":"+(10>c?"0"+c:c)+":"+(10>d?"0"+d:d)}function k(a){var b=a.split(":"),c=0;return 3===b.length?(c+=60*Number(b[0])*60,c+=60*Number(b[1]),c+=Number(b[2])):2===b.length&&(c+=60*Number(b[0]),c+=Number(b[1])),Number(c)}function l(a,b,c){var d,e,f,g=b[0],h=Math.abs(a);if(h>=c){for(d=1;d<b.length;++d)if(e=Math.pow(c,d),f=Math.pow(c,d+1),h>=e&&f>h){g=b[d],a/=e;break}g===b[0]&&(a/=Math.pow(c,b.length-1),g=b[b.length-1])}return{value:a,suffix:g}}function m(a,c,e,f){var g,h,i,j,k,m,n,o,p,q,r,s,t,u,v,w,z,C=!1,D=!1,E=!1,F="",G=!1,H=!1,I=!1,J=!1,K=!1,L="",M="",N=Math.abs(a),O="",P=!1,Q=!1,R="";if(0===a&&null!==B)return B;if(!isFinite(a))return""+a;if(0===c.indexOf("{")){var S=c.indexOf("}");if(-1===S)throw Error('Format should also contain a "}"');q=c.slice(1,S),c=c.slice(S+1)}else q="";if(c.indexOf("}")===c.length-1){var T=c.indexOf("{");
13if(-1===T)throw Error('Format should also contain a "{"');r=c.slice(T+1,-1),c=c.slice(0,T+1)}else r="";var U;for(U=c.match(-1===c.indexOf(".")?/([0-9]+).*/:/([0-9]+)\..*/),w=null===U?-1:U[1].length,-1!==c.indexOf("-")&&(P=!0),c.indexOf("(")>-1?(C=!0,c=c.slice(1,-1)):c.indexOf("+")>-1&&(D=!0,c=c.replace(/\+/g,"")),c.indexOf("a")>-1&&(o=c.split(".")[0].match(/[0-9]+/g)||["0"],o=parseInt(o[0],10),G=c.indexOf("aK")>=0,H=c.indexOf("aM")>=0,I=c.indexOf("aB")>=0,J=c.indexOf("aT")>=0,K=G||H||I||J,c.indexOf(" a")>-1?(F=" ",c=c.replace(" a","")):c=c.replace("a",""),i=Math.floor(Math.log(N)/Math.LN10)+1,k=i%3,k=0===k?3:k,o&&0!==N&&(j=Math.floor(Math.log(N)/Math.LN10)+1-o,m=3*~~((Math.min(o,i)-k)/3),N/=Math.pow(10,m),-1===c.indexOf(".")&&o>3&&(c+="[.]",u=0===j?0:3*~~(j/3)-j,u=0>u?u+3:u,c+=b(u))),Math.floor(Math.log(Math.abs(a))/Math.LN10)+1!==o&&(N>=Math.pow(10,12)&&!K||J?(F+=y[A].abbreviations.trillion,a/=Math.pow(10,12)):N<Math.pow(10,12)&&N>=Math.pow(10,9)&&!K||I?(F+=y[A].abbreviations.billion,a/=Math.pow(10,9)):N<Math.pow(10,9)&&N>=Math.pow(10,6)&&!K||H?(F+=y[A].abbreviations.million,a/=Math.pow(10,6)):(N<Math.pow(10,6)&&N>=Math.pow(10,3)&&!K||G)&&(F+=y[A].abbreviations.thousand,a/=Math.pow(10,3)))),z=0;z<x.length;++z)if(g=x[z],c.indexOf(g.marker)>-1){c.indexOf(" "+g.marker)>-1&&(L=" "),c=c.replace(L+g.marker,""),h=l(a,g.suffixes,g.scale),a=h.value,L+=h.suffix;break}if(c.indexOf("o")>-1&&(c.indexOf(" o")>-1?(M=" ",c=c.replace(" o","")):c=c.replace("o",""),y[A].ordinal&&(M+=y[A].ordinal(a))),c.indexOf("[.]")>-1&&(E=!0,c=c.replace("[.]",".")),n=a.toString().split(".")[0],p=c.split(".")[1],s=c.indexOf(","),p){if(-1!==p.indexOf("*")?O=d(a,a.toString().split(".")[1].length,e):p.indexOf("[")>-1?(p=p.replace("]",""),p=p.split("["),O=d(a,p[0].length+p[1].length,e,p[1].length)):O=d(a,p.length,e),n=O.split(".")[0],O.split(".")[1].length){var V=f?F+f:y[A].delimiters.decimal;O=V+O.split(".")[1]}else O="";E&&0===Number(O.slice(1))&&(O="")}else n=d(a,0,e);return n.indexOf("-")>-1&&(n=n.slice(1),Q=!0),n.length<w&&(n=b(w-n.length)+n),s>-1&&(n=n.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+y[A].delimiters.thousands)),0===c.indexOf(".")&&(n=""),t=c.indexOf("("),v=c.indexOf("-"),R=v>t?(C&&Q?"(":"")+(P&&Q||!C&&Q?"-":""):(P&&Q||!C&&Q?"-":"")+(C&&Q?"(":""),q+R+(!Q&&D&&0!==a?"+":"")+n+O+(M?M:"")+(F&&!f?F:"")+(L?L:"")+(C&&Q?")":"")+r}function n(a,b){y[a]=b}function o(a){A=a;var b=y[a].defaults;b&&b.format&&s.defaultFormat(b.format),b&&b.currencyFormat&&s.defaultCurrencyFormat(b.currencyFormat)}function p(){return"undefined"!=typeof process&&void 0===process.browser&&process.title&&(0===process.title.indexOf("node")||process.title.indexOf("meteor-tool")>0||"grunt"===process.title||"gulp"===process.title)&&"undefined"!=typeof require}function q(a){var b=a.toString().split(".");return b.length<2?1:Math.pow(10,b[1].length)}function r(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(a,b){var c=q(a),d=q(b);return c>d?c:d},-(1/0))}var s,t="1.9.3",u=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],v=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],w={general:{scale:1024,suffixes:v,marker:"bd"},binary:{scale:1024,suffixes:u,marker:"b"},decimal:{scale:1e3,suffixes:v,marker:"d"}},x=[w.general,w.binary,w.decimal],y={},z=y,A="en-US",B=null,C="0,0",D="0$",E="undefined"!=typeof module&&module.exports,F={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}};s=function(b){return s.isNumbro(b)?b=b.value():0===b||"undefined"==typeof b?b=0:Number(b)||(b=s.fn.unformat(b)),new a(Number(b))},s.version=t,s.isNumbro=function(b){return b instanceof a},s.setLanguage=function(a,b){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var c=a,d=a.split("-")[0],e=null;z[c]||(Object.keys(z).forEach(function(a){e||a.split("-")[0]!==d||(e=a)}),c=e||b||"en-US"),o(c)},s.setCulture=function(a,b){var c=a,d=a.split("-")[1],e=null;
13y[c]||(d&&Object.keys(y).forEach(function(a){e||a.split("-")[1]!==d||(e=a)}),c=e||b||"en-US"),o(c)},s.language=function(a,b){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!a)return A;if(a&&!b){if(!z[a])throw new Error("Unknown language : "+a);o(a)}return(b||!z[a])&&n(a,b),s},s.culture=function(a,b){if(!a)return A;if(a&&!b){if(!y[a])throw new Error("Unknown culture : "+a);o(a)}return(b||!y[a])&&n(a,b),s},s.languageData=function(a){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!a)return z[A];if(!z[a])throw new Error("Unknown language : "+a);return z[a]},s.cultureData=function(a){if(!a)return y[A];if(!y[a])throw new Error("Unknown culture : "+a);return y[a]},s.culture("en-US",F),s.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),z},s.cultures=function(){return y},s.zeroFormat=function(a){B="string"==typeof a?a:null},s.defaultFormat=function(a){C="string"==typeof a?a:"0.0"},s.defaultCurrencyFormat=function(a){D="string"==typeof a?a:"0$"},s.validate=function(a,b){var c,d,e,f,g,h,i,j;if("string"!=typeof a&&(a+="",console.warn&&console.warn("Numbro.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a=a.replace(/^[+-]?/,""),a.match(/^\d+$/))return!0;if(""===a)return!1;try{i=s.cultureData(b)}catch(k){i=s.cultureData(s.culture())}return e=i.currency.symbol,g=i.abbreviations,c=i.delimiters.decimal,d="."===i.delimiters.thousands?"\\.":i.delimiters.thousands,j=a.match(/^[^\d\.\,]+/),null!==j&&(a=a.substr(1),j[0]!==e)?!1:(j=a.match(/[^\d]+$/),null!==j&&(a=a.slice(0,-1),j[0]!==g.thousand&&j[0]!==g.million&&j[0]!==g.billion&&j[0]!==g.trillion)?!1:(h=new RegExp(d+"{2}"),a.match(/[^\d.,]/g)?!1:(f=a.split(c),f.length>2?!1:f.length<2?!!f[0].match(/^\d+.*\d$/)&&!f[0].match(h):""===f[0]?!f[0].match(h)&&!!f[1].match(/^\d+$/):1===f[0].length?!!f[0].match(/^\d+$/)&&!f[0].match(h)&&!!f[1].match(/^\d+$/):!!f[0].match(/^\d+.*\d$/)&&!f[0].match(h)&&!!f[1].match(/^\d+$/))))},s.loadLanguagesInNode=function(){console.warn("`loadLanguagesInNode` is deprecated since version 1.6.0. Use `loadCulturesInNode` instead"),s.loadCulturesInNode()},s.loadCulturesInNode=function(){var a=require("./languages");for(var b in a)b&&s.culture(b,a[b])},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(a,b){if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof a)throw new TypeError(a+" is not a function");var c,d,e=this.length>>>0,f=!1;for(1<arguments.length&&(d=b,f=!0),c=0;e>c;++c)this.hasOwnProperty(c)&&(f?d=a(d,this[c],c,this):(d=this[c],f=!0));if(!f)throw new TypeError("Reduce of empty array with no initial value");return d}),s.fn=a.prototype={clone:function(){return s(this)},format:function(a,b){return e(this,a?a:C,void 0!==b?b:Math.round)},formatCurrency:function(a,b){return g(this,y[A].currency.symbol,a?a:D,void 0!==b?b:Math.round)},formatForeignCurrency:function(a,b,c){return h(this,a,b?b:D,void 0!==c?c:Math.round)},unformat:function(a){if("number"==typeof a)return a;if("string"==typeof a){var b=f(this,a);return isNaN(b)?void 0:b}return void 0},binaryByteUnits:function(){return l(this._value,w.binary.suffixes,w.binary.scale).suffix},byteUnits:function(){return l(this._value,w.general.suffixes,w.general.scale).suffix},decimalByteUnits:function(){return l(this._value,w.decimal.suffixes,w.decimal.scale).suffix},value:function(){return this._value},valueOf:function(){return this._value},set:function(a){return this._value=Number(a),this},add:function(a){function b(a,b){return a+c*b}var c=r.call(null,this._value,a);return this._value=[this._value,a].reduce(b,0)/c,this},subtract:function(a){function b(a,b){return a-c*b}var c=r.call(null,this._value,a);return this._value=[a].reduce(b,this._value*c)/c,this},multiply:function(a){function b(a,b){var c=r(a,b),d=a*c;return d*=b*c,d/=c*c}return this._value=[this._value,a].reduce(b,1),this},divide:function(a){function b(a,b){var c=r(a,b);return a*c/(b*c)}return this._value=[this._value,a].reduce(b),this},difference:function(a){return Math.abs(s(this._value).subtract(a).value(
13))}},p()&&s.loadCulturesInNode(),E?module.exports=s:("undefined"==typeof ender&&(this.numbro=s),"function"==typeof define&&define.amd&&define([],function(){return s}))}.call("undefined"==typeof window?this:window),function(a,b){"use strict";var c;if("object"==typeof exports){try{c=require("moment")}catch(d){}module.exports=b(c)}else"function"==typeof define&&define.amd?define(function(a){var d="moment";try{c=a(d)}catch(e){}return b(c)}):a.Pikaday=b(a.moment)}(this,function(a){"use strict";var b="function"==typeof a,c=!!window.addEventListener,d=window.document,e=window.setTimeout,f=function(a,b,d,e){c?a.addEventListener(b,d,!!e):a.attachEvent("on"+b,d)},g=function(a,b,d,e){c?a.removeEventListener(b,d,!!e):a.detachEvent("on"+b,d)},h=function(a,b,c){var e;d.createEvent?(e=d.createEvent("HTMLEvents"),e.initEvent(b,!0,!1),e=t(e,c),a.dispatchEvent(e)):d.createEventObject&&(e=d.createEventObject(),e=t(e,c),a.fireEvent("on"+b,e))},i=function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")},j=function(a,b){return-1!==(" "+a.className+" ").indexOf(" "+b+" ")},k=function(a,b){j(a,b)||(a.className=""===a.className?b:a.className+" "+b)},l=function(a,b){a.className=i((" "+a.className+" ").replace(" "+b+" "," "))},m=function(a){return/Array/.test(Object.prototype.toString.call(a))},n=function(a){return/Date/.test(Object.prototype.toString.call(a))&&!isNaN(a.getTime())},o=function(a){var b=a.getDay();return 0===b||6===b},p=function(a){return a%4===0&&a%100!==0||a%400===0},q=function(a,b){return[31,p(a)?29:28,31,30,31,30,31,31,30,31,30,31][b]},r=function(a){n(a)&&a.setHours(0,0,0,0)},s=function(a,b){return a.getTime()===b.getTime()},t=function(a,b,c){var d,e;for(d in b)e=void 0!==a[d],e&&"object"==typeof b[d]&&null!==b[d]&&void 0===b[d].nodeName?n(b[d])?c&&(a[d]=new Date(b[d].getTime())):m(b[d])?c&&(a[d]=b[d].slice(0)):a[d]=t({},b[d],c):(c||!e)&&(a[d]=b[d]);return a},u=function(a){return a.month<0&&(a.year-=Math.ceil(Math.abs(a.month)/12),a.month+=12),a.month>11&&(a.year+=Math.floor(Math.abs(a.month)/12),a.month-=12),a},v={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},w=function(a,b,c){for(b+=a.firstDay;b>=7;)b-=7;return c?a.i18n.weekdaysShort[b]:a.i18n.weekdays[b]},x=function(a){if(a.isEmpty)return'<td class="is-empty"></td>';var b=[];return a.isDisabled&&b.push("is-disabled"),a.isToday&&b.push("is-today"),a.isSelected&&b.push("is-selected"), 14a.isInRange&&b.push("is-inrange"),a.isStartRange&&b.push("is-startrange"),a.isEndRange&&b.push("is-endrange"),'<td data-day="'+a.day+'" class="'+b.join(" ")+'"><button class="pika-button pika-day" type="button" data-pika-year="'+a.year+'" data-pika-month="'+a.month+'" data-pika-day="'+a.day+'">'+a.day+"</button></td>"},y=function(a,b,c){var d=new Date(c,0,1),e=Math.ceil(((new Date(c,b,a)-d)/864e5+d.getDay()+1)/7);return'<td class="pika-week">'+e+"</td>"},z=function(a,b){return"<tr>"+(b?a.reverse():a).join("")+"</tr>"},A=function(a){return"<tbody>"+a.join("")+"</tbody>"},B=function(a){var b,c=[];for(a.showWeekNumber&&c.push("<th></th>"),b=0;7>b;b++)c.push('<th scope="col"><abbr title="'+w(a,b)+'">'+w(a,b,!0)+"</abbr></th>");return"<thead>"+(a.isRTL?c.reverse():c).join("")+"</thead>"},C=function(a,b,c,d,e){var f,g,h,i,j,k=a._o,l=c===k.minYear,n=c===k.maxYear,o='<div class="pika-title">',p=!0,q=!0;for(h=[],f=0;12>f;f++)h.push('<option value="'+(c===e?f-b:12+f-b)+'"'+(f===d?" selected":"")+(l&&f<k.minMonth||n&&f>k.maxMonth?"disabled":"")+">"+k.i18n.months[f]+"</option>");for(i='<div class="pika-label">'+k.i18n.months[d]+'<select class="pika-select pika-select-month" tabindex="-1">'+h.join("")+"</select></div>",m(k.yearRange)?(f=k.yearRange[0],g=k.yearRange[1]+1):(f=c-k.yearRange,g=1+c+k.yearRange),h=[];g>f&&f<=k.maxYear;f++)f>=k.minYear&&h.push('<option value="'+f+'"'+(f===c?" selected":"")+">"+f+"</option>");return j='<div class="pika-label">'+c+k.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+h.join("")+"</select></div>",o+=k.showMonthAfterYear?j+i:i+j,l&&(0===d||k.minMonth>=d)&&(p=!1),n&&(11===d||k.maxMonth<=d)&&(q=!1),0===b&&(o+='<button class="pika-prev'+(p?"":" is-disabled")+'" type="button">'+k.i18n.previousMonth+"</button>"),b===a._o.numberOfMonths-1&&(o+='<button class="pika-next'+(q?"":" is-disabled")+'" type="button">'+k.i18n.nextMonth+"</button>"),o+="</div>"},D=function(a,b){return'<table cellpadding="0" cellspacing="0" class="pika-table">'+B(a)+A(b)+"</table>"},E=function(g){var h=this,i=h.config(g);
14h._onMouseDown=function(a){if(h._v){a=a||window.event;var b=a.target||a.srcElement;if(b)if(j(b,"is-disabled")||(j(b,"pika-button")&&!j(b,"is-empty")?(h.setDate(new Date(b.getAttribute("data-pika-year"),b.getAttribute("data-pika-month"),b.getAttribute("data-pika-day"))),i.bound&&e(function(){h.hide(),i.field&&i.field.blur()},100)):j(b,"pika-prev")?h.prevMonth():j(b,"pika-next")&&h.nextMonth()),j(b,"pika-select"))h._c=!0;else{if(!a.preventDefault)return a.returnValue=!1,!1;a.preventDefault()}}},h._onChange=function(a){a=a||window.event;var b=a.target||a.srcElement;b&&(j(b,"pika-select-month")?h.gotoMonth(b.value):j(b,"pika-select-year")&&h.gotoYear(b.value))},h._onInputChange=function(c){var d;c.firedBy!==h&&(b?(d=a(i.field.value,i.format),d=d&&d.isValid()?d.toDate():null):d=new Date(Date.parse(i.field.value)),n(d)&&h.setDate(d),h._v||h.show())},h._onInputFocus=function(){h.show()},h._onInputClick=function(){h.show()},h._onInputBlur=function(){var a=d.activeElement;do if(j(a,"pika-single"))return;while(a=a.parentNode);h._c||(h._b=e(function(){h.hide()},50)),h._c=!1},h._onClick=function(a){a=a||window.event;var b=a.target||a.srcElement,d=b;if(b){!c&&j(b,"pika-select")&&(b.onchange||(b.setAttribute("onchange","return;"),f(b,"change",h._onChange)));do if(j(d,"pika-single")||d===i.trigger)return;while(d=d.parentNode);h._v&&b!==i.trigger&&d!==i.trigger&&h.hide()}},h.el=d.createElement("div"),h.el.className="pika-single"+(i.isRTL?" is-rtl":"")+(i.theme?" "+i.theme:""),f(h.el,"mousedown",h._onMouseDown,!0),f(h.el,"touchend",h._onMouseDown,!0),f(h.el,"change",h._onChange),i.field&&(i.container?i.container.appendChild(h.el):i.bound?d.body.appendChild(h.el):i.field.parentNode.insertBefore(h.el,i.field.nextSibling),f(i.field,"change",h._onInputChange),i.defaultDate||(i.defaultDate=b&&i.field.value?a(i.field.value,i.format).toDate():new Date(Date.parse(i.field.value)),i.setDefaultDate=!0));var k=i.defaultDate;n(k)?i.setDefaultDate?h.setDate(k,!0):h.gotoDate(k):h.gotoDate(new Date),i.bound?(this.hide(),h.el.className+=" is-bound",f(i.trigger,"click",h._onInputClick),f(i.trigger,"focus",h._onInputFocus),f(i.trigger,"blur",h._onInputBlur)):this.show()};return E.prototype={config:function(a){this._o||(this._o=t({},v,!0));var b=t(this._o,a,!0);b.isRTL=!!b.isRTL,b.field=b.field&&b.field.nodeName?b.field:null,b.theme="string"==typeof b.theme&&b.theme?b.theme:null,b.bound=!!(void 0!==b.bound?b.field&&b.bound:b.field),b.trigger=b.trigger&&b.trigger.nodeName?b.trigger:b.field,b.disableWeekends=!!b.disableWeekends,b.disableDayFn="function"==typeof b.disableDayFn?b.disableDayFn:null;var c=parseInt(b.numberOfMonths,10)||1;if(b.numberOfMonths=c>4?4:c,n(b.minDate)||(b.minDate=!1),n(b.maxDate)||(b.maxDate=!1),b.minDate&&b.maxDate&&b.maxDate<b.minDate&&(b.maxDate=b.minDate=!1),b.minDate&&this.setMinDate(b.minDate),b.maxDate&&this.setMaxDate(b.maxDate),m(b.yearRange)){var d=(new Date).getFullYear()-10;b.yearRange[0]=parseInt(b.yearRange[0],10)||d,b.yearRange[1]=parseInt(b.yearRange[1],10)||d}else b.yearRange=Math.abs(parseInt(b.yearRange,10))||v.yearRange,b.yearRange>100&&(b.yearRange=100);return b},toString:function(c){return n(this._d)?b?a(this._d).format(c||this._o.format):this._d.toDateString():""},getMoment:function(){return b?a(this._d):null},setMoment:function(c,d){b&&a.isMoment(c)&&this.setDate(c.toDate(),d)},getDate:function(){return n(this._d)?new Date(this._d.getTime()):null},setDate:function(a,b){if(!a)return this._d=null,this._o.field&&(this._o.field.value="",h(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof a&&(a=new Date(Date.parse(a))),n(a)){var c=this._o.minDate,d=this._o.maxDate;n(c)&&c>a?a=c:n(d)&&a>d&&(a=d),this._d=new Date(a.getTime()),r(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),h(this._o.field,"change",{firedBy:this})),b||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(a){var b=!0;if(n(a)){if(this.calendars){var c=new Date(this.calendars[0].year,this.calendars[0].month,1),d=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),e=a.getTime();d.setMonth(d.getMonth()+1),d.setDate(d.getDate()-1),b=e<c.getTime()||d.getTime()<e}b&&(this.calendars=[{month:a.getMonth(),year:a.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustCalendars:function(){this.calendars[0]=u(this.calendars[0]);for(var a=1;a<this._o.numberOfMonths;a++)this.calendars[a]=u({month:this.calendars[0].month+a,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)}
14,gotoMonth:function(a){isNaN(a)||(this.calendars[0].month=parseInt(a,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(a){isNaN(a)||(this.calendars[0].year=parseInt(a,10),this.adjustCalendars())},setMinDate:function(a){r(a),this._o.minDate=a,this._o.minYear=a.getFullYear(),this._o.minMonth=a.getMonth(),this.draw()},setMaxDate:function(a){r(a),this._o.maxDate=a,this._o.maxYear=a.getFullYear(),this._o.maxMonth=a.getMonth(),this.draw()},setStartRange:function(a){this._o.startRange=a},setEndRange:function(a){this._o.endRange=a},draw:function(a){if(this._v||a){var b=this._o,c=b.minYear,d=b.maxYear,f=b.minMonth,g=b.maxMonth,h="";this._y<=c&&(this._y=c,!isNaN(f)&&this._m<f&&(this._m=f)),this._y>=d&&(this._y=d,!isNaN(g)&&this._m>g&&(this._m=g));for(var i=0;i<b.numberOfMonths;i++)h+='<div class="pika-lendar">'+C(this,i,this.calendars[i].year,this.calendars[i].month,this.calendars[0].year)+this.render(this.calendars[i].year,this.calendars[i].month)+"</div>";if(this.el.innerHTML=h,b.bound&&"hidden"!==b.field.type&&e(function(){b.trigger.focus()},1),"function"==typeof this._o.onDraw){var j=this;e(function(){j._o.onDraw.call(j)},0)}}},adjustPosition:function(){var a,b,c,e,f,g,h,i,j,k;if(!this._o.container){if(this.el.style.position="absolute",a=this._o.trigger,b=a,c=this.el.offsetWidth,e=this.el.offsetHeight,f=window.innerWidth||d.documentElement.clientWidth,g=window.innerHeight||d.documentElement.clientHeight,h=window.pageYOffset||d.body.scrollTop||d.documentElement.scrollTop,"function"==typeof a.getBoundingClientRect)k=a.getBoundingClientRect(),i=k.left+window.pageXOffset,j=k.bottom+window.pageYOffset;else for(i=b.offsetLeft,j=b.offsetTop+b.offsetHeight;b=b.offsetParent;)i+=b.offsetLeft,j+=b.offsetTop;(this._o.reposition&&i+c>f||this._o.position.indexOf("right")>-1&&i-c+a.offsetWidth>0)&&(i=i-c+a.offsetWidth),(this._o.reposition&&j+e>g+h||this._o.position.indexOf("top")>-1&&j-e-a.offsetHeight>0)&&(j=j-e-a.offsetHeight),this.el.style.left=i+"px",this.el.style.top=j+"px"}},render:function(a,b){var c=this._o,d=new Date,e=q(a,b),f=new Date(a,b,1).getDay(),g=[],h=[];r(d),c.firstDay>0&&(f-=c.firstDay,0>f&&(f+=7));for(var i=e+f,j=i;j>7;)j-=7;i+=7-j;for(var k=0,l=0;i>k;k++){var m=new Date(a,b,1+(k-f)),p=n(this._d)?s(m,this._d):!1,t=s(m,d),u=f>k||k>=e+f,v=c.startRange&&s(c.startRange,m),w=c.endRange&&s(c.endRange,m),A=c.startRange&&c.endRange&&c.startRange<m&&m<c.endRange,B=c.minDate&&m<c.minDate||c.maxDate&&m>c.maxDate||c.disableWeekends&&o(m)||c.disableDayFn&&c.disableDayFn(m),C={day:1+(k-f),month:b,year:a,isSelected:p,isToday:t,isDisabled:B,isEmpty:u,isStartRange:v,isEndRange:w,isInRange:A};h.push(x(C)),7===++l&&(c.showWeekNumber&&h.unshift(y(k-f,b,a)),g.push(z(h,c.isRTL)),h=[],l=0)}return D(c,g)},isVisible:function(){return this._v},show:function(){this._v||(l(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(f(d,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var a=this._v;a!==!1&&(this._o.bound&&g(d,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",k(this.el,"is-hidden"),this._v=!1,void 0!==a&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),g(this.el,"mousedown",this._onMouseDown,!0),g(this.el,"touchend",this._onMouseDown,!0),g(this.el,"change",this._onChange),this._o.field&&(g(this._o.field,"change",this._onInputChange),this._o.bound&&(g(this._o.trigger,"click",this._onInputClick),g(this._o.trigger,"focus",this._onInputFocus),g(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},E}),function(a,b){"use strict";var c,d,e,f=a,g=f.document,h=f.navigator,i=f.setTimeout,j=f.clearTimeout,k=f.setInterval,l=f.clearInterval,m=f.getComputedStyle,n=f.encodeURIComponent,o=f.ActiveXObject,p=f.Error,q=f.Number.parseInt||f.parseInt,r=f.Number.parseFloat||f.parseFloat,s=f.Number.isNaN||f.isNaN,t=f.Date.now,u=f.Object.keys,v=f.Object.defineProperty,w=f.Object.prototype.hasOwnProperty,x=f.Array.prototype.slice,y=function(){var a=function(a){return a};if("function"==typeof f.wrap&&"function"==typeof f.unwrap)try{var b=g.createElement("div"),c=f.unwrap(b);1===b.nodeType&&c&&1===c.nodeType&&(a=f.unwrap)}catch(d){}return a}(),z=function(a){return x.call(a,0)},A=function(){var a,c,d,e,f,g,h=z(arguments),i=h[0]||{};for(a=1,c=h.length;c>a;
14a++)if(null!=(d=h[a]))for(e in d)w.call(d,e)&&(f=i[e],g=d[e],i!==g&&g!==b&&(i[e]=g));return i},B=function(a){var b,c,d,e;if("object"!=typeof a||null==a||"number"==typeof a.nodeType)b=a;else if("number"==typeof a.length)for(b=[],c=0,d=a.length;d>c;c++)w.call(a,c)&&(b[c]=B(a[c]));else{b={};for(e in a)w.call(a,e)&&(b[e]=B(a[e]))}return b},C=function(a,b){for(var c={},d=0,e=b.length;e>d;d++)b[d]in a&&(c[b[d]]=a[b[d]]);return c},D=function(a,b){var c={};for(var d in a)-1===b.indexOf(d)&&(c[d]=a[d]);return c},E=function(a){if(a)for(var b in a)w.call(a,b)&&delete a[b];return a},F=function(a,b){if(a&&1===a.nodeType&&a.ownerDocument&&b&&(1===b.nodeType&&b.ownerDocument&&b.ownerDocument===a.ownerDocument||9===b.nodeType&&!b.ownerDocument&&b===a.ownerDocument))do{if(a===b)return!0;a=a.parentNode}while(a);return!1},G=function(a){var b;return"string"==typeof a&&a&&(b=a.split("#")[0].split("?")[0],b=a.slice(0,a.lastIndexOf("/")+1)),b},H=function(a){var b,c;return"string"==typeof a&&a&&(c=a.match(/^(?:|[^:@]*@|.+\)@(?=http[s]?|file)|.+?\s+(?: at |@)(?:[^:\(]+ )*[\(]?)((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),c&&c[1]?b=c[1]:(c=a.match(/\)@((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),c&&c[1]&&(b=c[1]))),b},I=function(){var a,b;try{throw new p}catch(c){b=c}return b&&(a=b.sourceURL||b.fileName||H(b.stack)),a},J=function(){var a,c,d;if(g.currentScript&&(a=g.currentScript.src))return a;if(c=g.getElementsByTagName("script"),1===c.length)return c[0].src||b;if("readyState"in c[0])for(d=c.length;d--;)if("interactive"===c[d].readyState&&(a=c[d].src))return a;return"loading"===g.readyState&&(a=c[c.length-1].src)?a:(a=I())?a:b},K=function(){var a,c,d,e=g.getElementsByTagName("script");for(a=e.length;a--;){if(!(d=e[a].src)){c=null;break}if(d=G(d),null==c)c=d;else if(c!==d){c=null;break}}return c||b},L=function(){var a=G(J())||K()||"";return a+"ZeroClipboard.swf"},M=function(){return null==a.opener&&(!!a.top&&a!=a.top||!!a.parent&&a!=a.parent)}(),N={bridge:null,version:"0.0.0",pluginType:"unknown",disabled:null,outdated:null,sandboxed:null,unavailable:null,degraded:null,deactivated:null,overdue:null,ready:null},O="11.0.0",P={},Q={},R=null,S=0,T=0,U={ready:"Flash communication is established",error:{"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-sandboxed":"Attempting to run Flash in a sandboxed iframe, which is impossible","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 c
14ould 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"}},V=["flash-unavailable","flash-degraded","flash-overdue","version-mismatch","config-mismatch","clipboard-error"],W=["flash-disabled","flash-outdated","flash-sandboxed","flash-unavailable","flash-degraded","flash-deactivated","flash-overdue"],X=new RegExp("^flash-("+W.map(function(a){return a.replace(/^flash-/,"")}).join("|")+")$"),Y=new RegExp("^flash-("+W.slice(1).map(function(a){return a.replace(/^flash-/,"")}).join("|")+")$"),Z={swfPath:L(),trustedDomains:a.location.host?[a.location.host]:[],cacheBust:!0,forceEnhancedClipboard:!1,flashLoadTimeout:3e4,autoActivate:!0,bubbleEvents:!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},$=function(a){if("object"==typeof a&&null!==a)for(var b in a)if(w.call(a,b))if(/^(?:forceHandCursor|title|zIndex|bubbleEvents)$/.test(b))Z[b]=a[b];else if(null==N.bridge)if("containerId"===b||"swfObjectId"===b){if(!na(a[b]))throw new Error("The specified `"+b+"` value is not valid as an HTML4 Element ID");Z[b]=a[b]}else Z[b]=a[b];{if("string"!=typeof a||!a)return B(Z);if(w.call(Z,a))return Z[a]}},_=function(){return Ta(),{browser:C(h,["userAgent","platform","appName"]),flash:D(N,["bridge"]),zeroclipboard:{version:Va.version,config:Va.config()}}},aa=function(){return!!(N.disabled||N.outdated||N.sandboxed||N.unavailable||N.degraded||N.deactivated)},ba=function(a,d){var e,f,g,h={};if("string"==typeof a&&a)g=a.toLowerCase().split(/\s+/);else if("object"==typeof a&&a&&"undefined"==typeof d)for(e in a)w.call(a,e)&&"string"==typeof e&&e&&"function"==typeof a[e]&&Va.on(e,a[e]);if(g&&g.length){for(e=0,f=g.length;f>e;e++)a=g[e].replace(/^on/,""),h[a]=!0,P[a]||(P[a]=[]),P[a].push(d);if(h.ready&&N.ready&&Va.emit({type:"ready"}),h.error){for(e=0,f=W.length;f>e;e++)if(N[W[e].replace(/^flash-/,"")]===!0){Va.emit({type:"error",name:W[e]});break}c!==b&&Va.version!==c&&Va.emit({type:"error",name:"version-mismatch",jsVersion:Va.version,swfVersion:c})}}return Va},ca=function(a,b){var c,d,e,f,g;if(0===arguments.length)f=u(P);else if("string"==typeof a&&a)f=a.split(/\s+/);else if("object"==typeof a&&a&&"undefined"==typeof b)for(c in a)w.call(a,c)&&"string"==typeof c&&c&&"function"==typeof a[c]&&Va.off(c,a[c]);if(f&&f.length)for(c=0,d=f.length;d>c;c++)if(a=f[c].toLowerCase().replace(/^on/,""),g=P[a],g&&g.length)if(b)for(e=g.indexOf(b);-1!==e;)g.splice(e,1),e=g.indexOf(b,e);else g.length=0;return Va},da=function(a){var b;return b="string"==typeof a&&a?B(P[a])||null:B(P)},ea=function(a){var b,c,d;return a=oa(a),a&&!va(a)?"ready"===a.type&&N.overdue===!0?Va.emit({type:"error",name:"flash-overdue"}):(b=A({},a),ta.call(this,b),"copy"===a.type&&(d=Da(Q),c=d.data,R=d.formatMap),c):void 0},fa=function(){var a=N.sandboxed;if(Ta(),"boolean"!=typeof N.ready&&(N.ready=!1),N.sandboxed!==a&&N.sandboxed===!0)N.ready=!1,Va.emit({type:"error",name:"flash-sandboxed"});else if(!Va.isFlashUnusable()&&null===N.bridge){var b=Z.flashLoadTimeout;"number"==typeof b&&b>=0&&(S=i(function(){"boolean"!=typeof N.deactivated&&(N.deactivated=!0),N.deactivated===!0&&Va.emit({type:"error",name:"flash-deactivated"})},b)),N.overdue=!1,Ba()}},ga=function(){Va.clearData(),Va.blur(),Va.emit("destroy"),Ca(),Va.off()},ha=function(a,b){var c;if("object"==typeof a&&a&&"undefined"==typeof b)c=a,Va.clearData();else{if("string"!=typeof a||!a)return;c={},c[a]=b}for(var d in c)"string"==typeof d&&d&&w.call(c,d)&&"string"==typeof c[d]&&c[d]&&(Q[d]=c[d])},ia=function(a){"undefined"==typeof a?(E(Q),R=null):"string"==typeof a&&w.call(Q,a)&&delete Q[a]},ja=function(a){return"undefined"==typeof a?B(Q):"string"==typeof a&&w.call(Q,a)?Q[a]:void 0}
14,ka=function(a){if(a&&1===a.nodeType){d&&(La(d,Z.activeClass),d!==a&&La(d,Z.hoverClass)),d=a,Ka(a,Z.hoverClass);var b=a.getAttribute("title")||Z.title;if("string"==typeof b&&b){var c=Aa(N.bridge);c&&c.setAttribute("title",b)}var e=Z.forceHandCursor===!0||"pointer"===Ma(a,"cursor");Ra(e),Qa()}},la=function(){var a=Aa(N.bridge);a&&(a.removeAttribute("title"),a.style.left="0px",a.style.top="-9999px",a.style.width="1px",a.style.height="1px"),d&&(La(d,Z.hoverClass),La(d,Z.activeClass),d=null)},ma=function(){return d||null},na=function(a){return"string"==typeof a&&a&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(a)},oa=function(a){var b;if("string"==typeof a&&a?(b=a,a={}):"object"==typeof a&&a&&"string"==typeof a.type&&a.type&&(b=a.type),b){b=b.toLowerCase(),!a.target&&(/^(copy|aftercopy|_click)$/.test(b)||"error"===b&&"clipboard-error"===a.name)&&(a.target=e),A(a,{type:b,target:a.target||d||null,relatedTarget:a.relatedTarget||null,currentTarget:N&&N.bridge||null,timeStamp:a.timeStamp||t()||null});var c=U[a.type];return"error"===a.type&&a.name&&c&&(c=c[a.name]),c&&(a.message=c),"ready"===a.type&&A(a,{target:null,version:N.version}),"error"===a.type&&(X.test(a.name)&&A(a,{target:null,minimumVersion:O}),Y.test(a.name)&&A(a,{version:N.version})),"copy"===a.type&&(a.clipboardData={setData:Va.setData,clearData:Va.clearData}),"aftercopy"===a.type&&(a=Ea(a,R)),a.target&&!a.relatedTarget&&(a.relatedTarget=pa(a.target)),qa(a)}},pa=function(a){var b=a&&a.getAttribute&&a.getAttribute("data-clipboard-target");return b?g.getElementById(b):null},qa=function(a){if(a&&/^_(?:click|mouse(?:over|out|down|up|move))$/.test(a.type)){var c=a.target,d="_mouseover"===a.type&&a.relatedTarget?a.relatedTarget:b,e="_mouseout"===a.type&&a.relatedTarget?a.relatedTarget:b,h=Na(c),i=f.screenLeft||f.screenX||0,j=f.screenTop||f.screenY||0,k=g.body.scrollLeft+g.documentElement.scrollLeft,l=g.body.scrollTop+g.documentElement.scrollTop,m=h.left+("number"==typeof a._stageX?a._stageX:0),n=h.top+("number"==typeof a._stageY?a._stageY:0),o=m-k,p=n-l,q=i+o,r=j+p,s="number"==typeof a.movementX?a.movementX:0,t="number"==typeof a.movementY?a.movementY:0;delete a._stageX,delete a._stageY,A(a,{srcElement:c,fromElement:d,toElement:e,screenX:q,screenY:r,pageX:m,pageY:n,clientX:o,clientY:p,x:o,y:p,movementX:s,movementY:t,offsetX:0,offsetY:0,layerX:0,layerY:0})}return a},ra=function(a){var b=a&&"string"==typeof a.type&&a.type||"";return!/^(?:(?:before)?copy|destroy)$/.test(b)},sa=function(a,b,c,d){d?i(function(){a.apply(b,c)},0):a.apply(b,c)},ta=function(a){if("object"==typeof a&&a&&a.type){var b=ra(a),c=P["*"]||[],d=P[a.type]||[],e=c.
14concat(d);if(e&&e.length){var g,h,i,j,k,l=this;for(g=0,h=e.length;h>g;g++)i=e[g],j=l,"string"==typeof i&&"function"==typeof f[i]&&(i=f[i]),"object"==typeof i&&i&&"function"==typeof i.handleEvent&&(j=i,i=i.handleEvent),"function"==typeof i&&(k=A({},a),sa(i,j,[k],b))}return this}},ua=function(a){var b=null;return(M===!1||a&&"error"===a.type&&a.name&&-1!==V.indexOf(a.name))&&(b=!1),b},va=function(a){var b=a.target||d||null,f="swf"===a._source;switch(delete a._source,a.type){case"error":var g="flash-sandboxed"===a.name||ua(a);"boolean"==typeof g&&(N.sandboxed=g),-1!==W.indexOf(a.name)?A(N,{disabled:"flash-disabled"===a.name,outdated:"flash-outdated"===a.name,unavailable:"flash-unavailable"===a.name,degraded:"flash-degraded"===a.name,deactivated:"flash-deactivated"===a.name,overdue:"flash-overdue"===a.name,ready:!1}):"version-mismatch"===a.name&&(c=a.swfVersion,A(N,{disabled:!1,outdated:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:!1,ready:!1})),Pa();break;case"ready":c=a.swfVersion;var h=N.deactivated===!0;A(N,{disabled:!1,outdated:!1,sandboxed:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:h,ready:!h}),Pa();break;case"beforecopy":e=b;break;case"copy":var i,j,k=a.relatedTarget;!Q["text/html"]&&!Q["text/plain"]&&k&&(j=k.value||k.outerHTML||k.innerHTML)&&(i=k.value||k.textContent||k.innerText)?(a.clipboardData.clearData(),a.clipboardData.setData("text/plain",i),j!==i&&a.clipboardData.setData("text/html",j)):!Q["text/plain"]&&a.target&&(i=a.target.getAttribute("data-clipboard-text"))&&(a.clipboardData.clearData(),a.clipboardData.setData("text/plain",i));break;case"aftercopy":wa(a),Va.clearData(),b&&b!==Ja()&&b.focus&&b.focus();break;case"_mouseover":Va.focus(b),Z.bubbleEvents===!0&&f&&(b&&b!==a.relatedTarget&&!F(a.relatedTarget,b)&&xa(A({},a,{type:"mouseenter",bubbles:!1,cancelable:!1})),xa(A({},a,{type:"mouseover"})));break;case"_mouseout":Va.blur(),Z.bubbleEvents===!0&&f&&(b&&b!==a.relatedTarget&&!F(a.relatedTarget,b)&&xa(A({},a,{type:"mouseleave",bubbles:!1,cancelable:!1})),xa(A({},a,{type:"mouseout"})));break;case"_mousedown":Ka(b,Z.activeClass),Z.bubbleEvents===!0&&f&&xa(A({},a,{type:a.type.slice(1)}));break;case"_mouseup":La(b,Z.activeClass),Z.bubbleEvents===!0&&f&&xa(A({},a,{type:a.type.slice(1)}));break;case"_click":e=null,Z.bubbleEvents===!0&&f&&xa(A({},a,{type:a.type.slice(1)}));break;case"_mousemove":Z.bubbleEvents===!0&&f&&xa(A({},a,{type:a.type.slice(1)}))}return/^_(?:click|mouse(?:over|out|down|up|move))$/.test(a.type)?!0:void 0},wa=function(a){if(a.errors&&a.errors.length>0){var b=B(a);A(b,{type:"error",name:"clipboard-error"}),delete b.success,i(function(){Va.emit(b)},0)}},xa=function(a){if(a&&"string"==typeof a.type&&a){var b,c=a.target||null,d=c&&c.ownerDocument||g,e={view:d.defaultView||f,canBubble:!0,cancelable:!0,detail:"click"===a.type?1:0,button:"number"==typeof a.which?a.which-1:"number"==typeof a.button?a.button:d.createEvent?0:1},h=A(e,a);c&&d.createEvent&&c.dispatchEvent&&(h=[h.type,h.canBubble,h.cancelable,h.view,h.detail,h.screenX,h.screenY,h.clientX,h.clientY,h.ctrlKey,h.altKey,h.shiftKey,h.metaKey,h.button,h.relatedTarget],b=d.createEvent("MouseEvents"),b.initMouseEvent&&(b.initMouseEvent.apply(b,h),b._source="js",c.dispatchEvent(b)))}},ya=function(){var a=Z.flashLoadTimeout;if("number"==typeof a&&a>=0){var b=Math.min(1e3,a/10),c=Z.swfObjectId+"_fallbackContent";T=k(function(){var a=g.getElementById(c);Oa(a)&&(Pa(),N.deactivated=null,Va.emit({type:"error",name:"swf-not-found"}))},b)}},za=function(){var a=g.createElement("div");return a.id=Z.containerId,a.className=Z.containerClass,a.style.position="absolute",a.style.left="0px",a.style.top="-9999px",a.style.width="1px",a.style.height="1px",a.style.zIndex=""+Sa(Z.zIndex),a},Aa=function(a){for(var b=a&&a.parentNode;b&&"OBJECT"===b.nodeName&&b.parentNode;)b=b.parentNode;return b||null},Ba=function(){var a,b=N.bridge,c=Aa(b);if(!b){var d=Ia(f.location.host,Z),e="never"===d?"none":"all",h=Ga(A({jsVersion:Va.version},Z)),i=Z.swfPath+Fa(Z.swfPath,Z);c=za();var j=g.createElement("div");c.appendChild(j),g.body.appendChild(c);var k=g.createElement("div"),l="activex"===N.pluginType;k.innerHTML='<object id="'+Z.swfObjectId+'" name="'+Z.swfObjectId+'" width="100%" height="100%" '+(l?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"':'type="application/x-shockwave-flash" data="'+i+'"')+">"+(l?'<param name="movie" value="'+i+'"/>':"")+'<param name="allowScriptAccess" value="'+d+'"/><param name="allowNetworking" value="'+e+'"/><param name="menu" value="false"/><param name="wmode" value="transparent"/><param name="flashvars" value="'+h+'"/><div id="'+Z.swfObjectId+'_fallbackContent"> </div></object>',b=k.firstChild,k=null,y(b).ZeroClipboard=Va,c.replaceChild(b,j),ya()}return b||(b=g[Z.swfObjectId],b&&(a=b.length)&&(b=b[a-1]),!b&&c&&(b=c.firstChild)),N.bridge=b||null,b},Ca=function(){var a=N.bridge;if(a){var d=Aa(a);d&&("activex"===N.pluginType&&"readyState"in a?(a.style.display="none",function e(){if(4===a.readyState){for(var b in a)"function"==typeof a[b]&&(a[b]=null);a.parentNode&&a.parentNode.removeChild(a),d.parentNode&&d.parentNode.removeChild(d)}else i(e,10)}()):(a.parentNode&&a.parentNode.removeChild(a),d.parentNode&&d.parentNode.removeChild(d))),Pa(),N.ready=null,N.bridge=null,N.deactivated=null,c=b}},Da=function(a){var b={},c={};if("object"==typeof a&&a){for(var d in a)if(d&&w.call(a,d)&&"string"==typeof a[d]&&a[d])switch(d.toLowerCase()){case"text/plain":case"text":case"air:text":case"flash:text":b.text=a[d],c.text=d;break;case"text/html":case"html":case"air:html":case"flash:html":b.html=a[d],c.html=d;break;case"application/rtf":case"text/rtf":case"rtf":case"richtext":case"air:rtf":case"flash:rtf":b.rtf=a[d],c.rtf=d}return{data:b,formatMap:c}}},Ea=function(a,b){if("object"!=typeof a||!a||"object"!=typeof b||!b)return a;var c={};for(var d in a)if(w.call(a,d))if("errors"===d){c[d]=a[d]?a[d].slice():[];for(var e=0,f=c[d].length;f>e;e++)c[d][e].format=b[c[d][e].format]}else if("success"!==d&&"data"!==d)c[d]=a[d];else{c[d]={};var g=a[d];for(var h in g)h&&w.call(g,h)&&w.call(b,h)&&(c[d][b[h]]=g[h])}return c},Fa=function(a,b){var c=null==b||b&&b.cacheBust===!0;return c?(-1===a.indexOf("?")?"?":"&")+"noCache="+t():""}
14,Ga=function(a){var b,c,d,e,g="",h=[];if(a.trustedDomains&&("string"==typeof a.trustedDomains?e=[a.trustedDomains]:"object"==typeof a.trustedDomains&&"length"in a.trustedDomains&&(e=a.trustedDomains)),e&&e.length)for(b=0,c=e.length;c>b;b++)if(w.call(e,b)&&e[b]&&"string"==typeof e[b]){if(d=Ha(e[b]),!d)continue;if("*"===d){h.length=0,h.push(d);break}h.push.apply(h,[d,"//"+d,f.location.protocol+"//"+d])}return h.length&&(g+="trustedOrigins="+n(h.join(","))),a.forceEnhancedClipboard===!0&&(g+=(g?"&":"")+"forceEnhancedClipboard=true"),"string"==typeof a.swfObjectId&&a.swfObjectId&&(g+=(g?"&":"")+"swfObjectId="+n(a.swfObjectId)),"string"==typeof a.jsVersion&&a.jsVersion&&(g+=(g?"&":"")+"jsVersion="+n(a.jsVersion)),g},Ha=function(a){if(null==a||""===a)return null;if(a=a.replace(/^\s+|\s+$/g,""),""===a)return null;var b=a.indexOf("//");a=-1===b?a:a.slice(b+2);var c=a.indexOf("/");return a=-1===c?a:-1===b||0===c?null:a.slice(0,c),a&&".swf"===a.slice(-4).toLowerCase()?null:a||null},Ia=function(){var a=function(a){var b,c,d,e=[];
14if("string"==typeof a&&(a=[a]),"object"!=typeof a||!a||"number"!=typeof a.length)return e;for(b=0,c=a.length;c>b;b++)if(w.call(a,b)&&(d=Ha(a[b]))){if("*"===d){e.length=0,e.push("*");break}-1===e.indexOf(d)&&e.push(d)}return e};return function(b,c){var d=Ha(c.swfPath);null===d&&(d=b);var e=a(c.trustedDomains),f=e.length;if(f>0){if(1===f&&"*"===e[0])return"always";if(-1!==e.indexOf(b))return 1===f&&b===d?"sameDomain":"always"}return"never"}}(),Ja=function(){try{return g.activeElement}catch(a){return null}},Ka=function(a,b){var c,d,e,f=[];if("string"==typeof b&&b&&(f=b.split(/\s+/)),a&&1===a.nodeType&&f.length>0)if(a.classList)for(c=0,d=f.length;d>c;c++)a.classList.add(f[c]);else if(a.hasOwnProperty("className")){for(e=" "+a.className+" ",c=0,d=f.length;d>c;c++)-1===e.indexOf(" "+f[c]+" ")&&(e+=f[c]+" ");a.className=e.replace(/^\s+|\s+$/g,"")}return a},La=function(a,b){var c,d,e,f=[];if("string"==typeof b&&b&&(f=b.split(/\s+/)),a&&1===a.nodeType&&f.length>0)if(a.classList&&a.classList.length>0)for(c=0,d=f.length;d>c;c++)a.classList.remove(f[c]);else if(a.className){for(e=(" "+a.className+" ").replace(/[\r\n\t]/g," "),c=0,d=f.length;d>c;c++)e=e.replace(" "+f[c]+" "," ");a.className=e.replace(/^\s+|\s+$/g,"")}return a},Ma=function(a,b){var c=m(a,null).getPropertyValue(b);return"cursor"!==b||c&&"auto"!==c||"A"!==a.nodeName?c:"pointer"},Na=function(a){var b={left:0,top:0,width:0,height:0};if(a.getBoundingClientRect){var c=a.getBoundingClientRect(),d=f.pageXOffset,e=f.pageYOffset,h=g.documentElement.clientLeft||0,i=g.documentElement.clientTop||0,j=0,k=0;if("relative"===Ma(g.body,"position")){var l=g.body.getBoundingClientRect(),m=g.documentElement.getBoundingClientRect();j=l.left-m.left||0,k=l.top-m.top||0}b.left=c.left+d-h-j,b.top=c.top+e-i-k,b.width="width"in c?c.width:c.right-c.left,b.height="height"in c?c.height:c.bottom-c.top}return b},Oa=function(a){if(!a)return!1;var b=m(a,null),c=r(b.height)>0,d=r(b.width)>0,e=r(b.top)>=0,f=r(b.left)>=0,g=c&&d&&e&&f,h=g?null:Na(a),i="none"!==b.display&&"collapse"!==b.visibility&&(g||!!h&&(c||h.height>0)&&(d||h.width>0)&&(e||h.top>=0)&&(f||h.left>=0));return i},Pa=function(){j(S),S=0,l(T),T=0},Qa=function(){var a;if(d&&(a=Aa(N.bridge))){var b=Na(d);A(a.style,{width:b.width+"px",height:b.height+"px",top:b.top+"px",left:b.left+"px",zIndex:""+Sa(Z.zIndex)})}},Ra=function(a){N.ready===!0&&(N.bridge&&"function"==typeof N.bridge.setHandCursor?N.bridge.setHandCursor(a):N.ready=!1)},Sa=function(a){if(/^(?:auto|inherit)$/.test(a))return a;var b;return"number"!=typeof a||s(a)?"string"==typeof a&&(b=Sa(q(a,10))):b=a,"number"==typeof b?b:"auto"},Ta=function(b){var c,d,e,f=N.sandboxed,g=null;if(b=b===!0,M===!1)g=!1;else{try{d=a.frameElement||null}catch(h){e={name:h.name,message:h.message}}if(d&&1===d.nodeType&&"IFRAME"===d.nodeName)try{g=d.hasAttribute("sandbox")}catch(h){g=null}else{try{c=document.domain||null}catch(h){c=null}(null===c||e&&"SecurityError"===e.name&&/(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(e.message.toLowerCase()))&&(g=!0)}}return N.sandboxed=g,f===g||b||Ua(o),g},Ua=function(a){function b(a){var b=a.match(/[\d]+/g);return b.length=3,b.join(".")}function c(a){return!!a&&(a=a.toLowerCase())&&(/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(a)||"chrome.plugin"===a.slice(-13))}function d(a){a&&(i=!0,a.version&&(l=b(a.version)),!l&&a.description&&(l=b(a.description)),a.filename&&(k=c(a.filename)))}var e,f,g,i=!1,j=!1,k=!1,l=""; 15 16if(h.plugins&&h.plugins.length)e=h.plugins["Shockwave Flash"],d(e),h.plugins["Shockwave Flash 2.0"]&&(i=!0,l="2.0.0.11");else if(h.mimeTypes&&h.mimeTypes.length)g=h.mimeTypes["application/x-shockwave-flash"],e=g&&g.enabledPlugin,d(e);else if("undefined"!=typeof a){j=!0;try{f=new a("ShockwaveFlash.ShockwaveFlash.7"),i=!0,l=b(f.GetVariable("$version"))}catch(m){try{f=new a("ShockwaveFlash.ShockwaveFlash.6"),i=!0,l="6.0.21"}catch(n){try{f=new a("ShockwaveFlash.ShockwaveFlash"),i=!0,l=b(f.GetVariable("$version"))}catch(o){j=!1}}}}N.disabled=i!==!0,N.outdated=l&&r(l)<r(O),N.version=l||"0.0.0",N.pluginType=k?"pepper":j?"activex":i?"netscape":"unknown"};Ua(o),Ta(!0);var Va=function(){return this instanceof Va?void("function"==typeof Va._createClient&&Va._createClient.apply(this,z(arguments))):new Va};
16v(Va,"version",{value:"2.2.0",writable:!1,configurable:!0,enumerable:!0}),Va.config=function(){return $.apply(this,z(arguments))},Va.state=function(){return _.apply(this,z(arguments))},Va.isFlashUnusable=function(){return aa.apply(this,z(arguments))},Va.on=function(){return ba.apply(this,z(arguments))},Va.off=function(){return ca.apply(this,z(arguments))},Va.handlers=function(){return da.apply(this,z(arguments))},Va.emit=function(){return ea.apply(this,z(arguments))},Va.create=function(){return fa.apply(this,z(arguments))},Va.destroy=function(){return ga.apply(this,z(arguments))},Va.setData=function(){return ha.apply(this,z(arguments))},Va.clearData=function(){return ia.apply(this,z(arguments))},Va.getData=function(){return ja.apply(this,z(arguments))},Va.focus=Va.activate=function(){return ka.apply(this,z(arguments))},Va.blur=Va.deactivate=function(){return la.apply(this,z(arguments))},Va.activeElement=function(){return ma.apply(this,z(arguments))};var Wa=0,Xa={},Ya=0,Za={},$a={};A(Z,{autoActivate:!0});var _a=function(a){var b=this;b.id=""+Wa++,Xa[b.id]={instance:b,elements:[],handlers:{}},a&&b.clip(a),Va.on("*",function(a){return b.emit(a)}),Va.on("destroy",function(){b.destroy()}),Va.create()},ab=function(a,d){var e,f,g,h={},i=Xa[this.id],j=i&&i.handlers;if(!i)throw new Error("Attempted to add new listener(s) to a destroyed ZeroClipboard client instance");if("string"==typeof a&&a)g=a.toLowerCase().split(/\s+/);else if("object"==typeof a&&a&&"undefined"==typeof d)for(e in a)w.call(a,e)&&"string"==typeof e&&e&&"function"==typeof a[e]&&this.on(e,a[e]);if(g&&g.length){for(e=0,f=g.length;f>e;e++)a=g[e].replace(/^on/,""),h[a]=!0,j[a]||(j[a]=[]),j[a].push(d);if(h.ready&&N.ready&&this.emit({type:"ready",client:this}),h.error){for(e=0,f=W.length;f>e;e++)if(N[W[e].replace(/^flash-/,"")]){this.emit({type:"error",name:W[e],client:this});break}c!==b&&Va.version!==c&&this.emit({type:"error",name:"version-mismatch",jsVersion:Va.version,swfVersion:c})}}return this},bb=function(a,b){var c,d,e,f,g,h=Xa[this.id],i=h&&h.handlers;if(!i)return this;if(0===arguments.length)f=u(i);else if("string"==typeof a&&a)f=a.split(/\s+/);else if("object"==typeof a&&a&&"undefined"==typeof b)for(c in a)w.call(a,c)&&"string"==typeof c&&c&&"function"==typeof a[c]&&this.off(c,a[c]);if(f&&f.length)for(c=0,d=f.length;d>c;c++)if(a=f[c].toLowerCase().replace(/^on/,""),g=i[a],g&&g.length)if(b)for(e=g.indexOf(b);-1!==e;)g.splice(e,1),e=g.indexOf(b,e);else g.length=0;return this},cb=function(a){var b=null,c=Xa[this.id]&&Xa[this.id].handlers;return c&&(b="string"==typeof a&&a?c[a]?c[a].slice(0):[]:B(c)),b},db=function(a){if(ib.call(this,a)){"object"==typeof a&&a&&"string"==typeof a.type&&a.type&&(a=A({},a));var b=A({},oa(a),{client:this});jb.call(this,b)}return this},eb=function(a){if(!Xa[this.id])throw new Error("Attempted to clip element(s) to a destroyed ZeroClipboard client instance");a=kb(a);for(var b=0;b<a.length;b++)if(w.call(a,b)&&a[b]&&1===a[b].nodeType){a[b].zcClippingId?-1===Za[a[b].zcClippingId].indexOf(this.id)&&Za[a[b].zcClippingId].push(this.id):(a[b].zcClippingId="zcClippingId_"+Ya++,Za[a[b].zcClippingId]=[this.id],Z.autoActivate===!0&&lb(a[b]));var c=Xa[this.id]&&Xa[this.id].elements;-1===c.indexOf(a[b])&&c.push(a[b])}return this},fb=function(a){var b=Xa[this.id];if(!b)return this;var c,d=b.elements;a="undefined"==typeof a?d.slice(0):kb(a);for(var e=a.length;e--;)if(w.call(a,e)&&a[e]&&1===a[e].nodeType){for(c=0;-1!==(c=d.indexOf(a[e],c));)d.splice(c,1);var f=Za[a[e].zcClippingId];if(f){for(c=0;-1!==(c=f.indexOf(this.id,c));)f.splice(c,1);0===f.length&&(Z.autoActivate===!0&&mb(a[e]),delete a[e].zcClippingId)}}return this},gb=function(){var a=Xa[this.id];return a&&a.elements?a.elements.slice(0):[]},hb=function(){Xa[this.id]&&(this.unclip(),this.off(),delete Xa[this.id])},ib=function(a){if(!a||!a.type)return!1;if(a.client&&a.client!==this)return!1;var b=Xa[this.id],c=b&&b.elements,d=!!c&&c.length>0,e=!a.target||d&&-1!==c.indexOf(a.target),f=a.relatedTarget&&d&&-1!==c.indexOf(a.relatedTarget),g=a.client&&a.client===this;return b&&(e||f||g)?!0:!1},jb=function(a){var b=Xa[this.id];if("object"==typeof a&&a&&a.type&&b){var c=ra(a),d=b&&b.handlers["*"]||[],e=b&&b.handlers[a.type]||[],g=d.concat(e);
16if(g&&g.length){var h,i,j,k,l,m=this;for(h=0,i=g.length;i>h;h++)j=g[h],k=m,"string"==typeof j&&"function"==typeof f[j]&&(j=f[j]),"object"==typeof j&&j&&"function"==typeof j.handleEvent&&(k=j,j=j.handleEvent),"function"==typeof j&&(l=A({},a),sa(j,k,[l],c))}}},kb=function(a){return"string"==typeof a&&(a=[]),"number"!=typeof a.length?[a]:a},lb=function(a){if(a&&1===a.nodeType){var b=function(a){(a||(a=f.event))&&("js"!==a._source&&(a.stopImmediatePropagation(),a.preventDefault()),delete a._source)},c=function(c){(c||(c=f.event))&&(b(c),Va.focus(a))};a.addEventListener("mouseover",c,!1),a.addEventListener("mouseout",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),a.addEventListener("mousemove",b,!1),$a[a.zcClippingId]={mouseover:c,mouseout:b,mouseenter:b,mouseleave:b,mousemove:b}}},mb=function(a){if(a&&1===a.nodeType){var b=$a[a.zcClippingId];if("object"==typeof b&&b){for(var c,d,e=["move","leave","enter","out","over"],f=0,g=e.length;g>f;f++)c="mouse"+e[f],d=b[c],"function"==typeof d&&a.removeEventListener(c,d,!1);delete $a[a.zcClippingId]}}};Va._createClient=function(){_a.apply(this,z(arguments))},Va.prototype.on=function(){return ab.apply(this,z(arguments))},Va.prototype.off=function(){return bb.apply(this,z(arguments))},Va.prototype.handlers=function(){return cb.apply(this,z(arguments))},Va.prototype.emit=function(){return db.apply(this,z(arguments))},Va.prototype.clip=function(){return eb.apply(this,z(arguments))},Va.prototype.unclip=function(){return fb.apply(this,z(arguments))},Va.prototype.elements=function(){return gb.apply(this,z(arguments))},Va.prototype.destroy=function(){return hb.apply(this,z(arguments))},Va.prototype.setText=function(a){if(!Xa[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Va.setData("text/plain",a),this},Va.prototype.setHtml=function(a){if(!Xa[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Va.setData("text/html",a),this},Va.prototype.setRichText=function(a){if(!Xa[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Va.setData("application/rtf",a),this},Va.prototype.setData=function(){if(!Xa[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Va.setData.apply(this,z(arguments)),this},Va.prototype.clearData=function(){if(!Xa[this.id])throw new Error("Attempted to clear pending clipboard data from a destroyed ZeroClipboard client instance");return Va.clearData.apply(this,z(arguments)),this},Va.prototype.getData=function(){if(!Xa[this.id])throw new Error("Attempted to get pending clipboard data from a destroyed ZeroClipboard client instance");return Va.getData.apply(this,z(arguments))},"function"==typeof define&&define.amd?define(function(){return Va}):"object"==typeof module&&module&&"object"==typeof module.exports&&module.exports?module.exports=Va:a.ZeroClipboard=Va}(function(){return this||window}()),function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.Handsontable=a()}}(function(){return function a(b,c,d){function e(h,i){if(!c[h]){if(!b[h]){var j="function"==typeof require&&require;if(!i&&j)return j(h,!0);if(f)return f(h,!0);if(g[h]&&"undefined"!=typeof window[g[h]])return window[g[h]];var k=new Error("Cannot find module '"+h+"'");throw k.code="MODULE_NOT_FOUND",k}var l=c[h]={exports:{}};b[h][0].call(l.exports,function(a){var c=b[h][1][a];return e(c?c:a)},l,l.exports,a,b,c,d)}return c[h].exports}for(var f="function"==typeof require&&require,g=JSON.parse('{"zeroclipboard":"ZeroClipboard","moment":"moment","numbro":"numbro","pikaday":"Pikaday"}')||{},h=0;h<d.length;h++)e(d[h]);return e}({1:[function(){window.jQuery&&!function(a){a.fn.handsontable=function(a){var b,c,d,e,f,g=this.first(),h=g.data("handsontable");if("string"!=typeof a)return f=a||{},h?h.updateSettings(f):(h=new Handsontable.Core(g[0],f),g.data("handsontable",h),h.init()),g;if(d=[],arguments.length>1)for(b=1,c=arguments.length;c>b;b++)d.push(arguments[b]);if(h){if("undefined"==typeof h[a])throw new Error("Handsontable do not provide action: "+a);e=h[a].apply(h,d),"destroy"===a&&g.removeData()}return e}}(window.jQuery)},{}],2:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableBorder:{get:function(){return v}},__esModule:{value:!0}});var d,e,f,g,h,i,j=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),k=j.getComputedStyle,l=j.getTrimmingContainer,m=j.innerWidth,n=j.innerHeight,o=j.offset,p=j.outerHeight,q=j.outerWidth,r=(e=a("helpers/dom/event"),e&&e.__esMo
16dule&&e||{"default":e}).stopImmediatePropagation,s=(f=a("helpers/browser"),f&&f.__esModule&&f||{"default":f}).isMobileBrowser,t=(g=a("eventManager"),g&&g.__esModule&&g||{"default":g}).EventManager,u=(h=a("cell/coords"),h&&h.__esModule&&h||{"default":h}).WalkontableCellCoords,v=((i=a("overlay/_base.js"),i&&i.__esModule&&i||{"default":i}).WalkontableOverlay,function(a,b){b&&(this.eventManager=new t(a),this.instance=a,this.wot=a,this.settings=b,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(b),this.registerListeners())});$traceurRuntime.createClass(v,{registerListeners:function(){var a=this;this.eventManager.addEventListener(document.body,"mousedown",function(){return a.onMouseDown()}),this.eventManager.addEventListener(document.body,"mouseup",function(){return a.onMouseUp()});for(var b=this,c=function(c){b.eventManager.addEventListener(b.main.childNodes[c],"mouseenter",function(b){return a.onMouseEnter(b,a.main.childNodes[c])})},d=0,e=this.main.childNodes.length;e>d;d++)c(d,e)},onMouseDown:function(){this.mouseDown=!0},onMouseUp:function(){this.mouseDown=!1},onMouseEnter:function(a,b){function c(a){return a.clientY<Math.floor(f.top)?!0:a.clientY>Math.ceil(f.top+f.height)?!0:a.clientX<Math.floor(f.left)?!0:a.clientX>Math.ceil(f.left+f.width)?!0:void 0}function d(a){c(a)&&(e.eventManager.removeEventListener(document.body,"mousemove",d),b.style.display="block")}if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){a.preventDefault(),r(a);var e=this,f=b.getBoundingClientRect();b.style.display="none",this.eventManager.addEventListener(document.body,"mousemove",d)}},createBorders:function(a){this.main=document.createElement("div");var b=["top","left","bottom","right","corner"],c=this.main.style;c.position="absolute",c.top=0,c.left=0;for(var d=0;5>d;d++){var e=b[d],f=document.createElement("div");f.className="wtBorder "+(this.settings.className||""),this.settings[e]&&this.settings[e].hide&&(f.className+=" hidden"),c=f.style,c.backgroundColor=this.settings[e]&&this.settings[e].color?this.settings[e].color:a.border.color,c.height=this.settings[e]&&this.settings[e].width?this.settings[e].width+"px":a.border.width+"px",c.width=this.settings[e]&&this.settings[e].width?this.settings[e].width+"px":a.border.width+"px",this.main.appendChild(f)}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(" "),s()&&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)},createMultipleSelectorHandles:function(){this.selectionHandles={topLeft:document.createElement("DIV"),topLeftHitArea:document.createElement("DIV"),bottomRight:document.createElement("DIV"),bottomRightHitArea:document.createElement("DIV")};var a=10,b=40;this.selectionHandles.topLeft.className="topLeftSelectionHandle",this.selectionHandles.topLeftHitArea.className="topLeftSelectionHandle-HitArea",this.selectionHandles.bottomRight.className="bottomRightSelectionHandle",this.selectionHandles.bottomRightHitArea.className="bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={topLeft:this.selectionHandles.topLeft.style,topLeftHitArea:this.selectionHandles.topLeftHitArea.style,bottomRight:this.selectionHandles.bottomRight.style,bottomRightHitArea:this.selectionHandles.bottomRightHitArea.style};var c={position:"absolute",height:b+"px",width:b+"px","border-radius":parseInt(b/1.5,10)+"px"};for(var d in c)c.hasOwnProperty(d)&&(this.selectionHandles.styles.bottomRightHitArea[d]=c[d],this.selectionHandles.styles.topLeftHitArea[d]=c[d]);var e={position:"absolute",height:a+"px",width:a+"px","border-radius":parseInt(a
16/1.5,10)+"px",background:"#F5F5FF",border:"1px solid #4285c8"};for(var f in e)e.hasOwnProperty(f)&&(this.selectionHandles.styles.bottomRight[f]=e[f],this.selectionHandles.styles.topLeft[f]=e[f]);this.main.appendChild(this.selectionHandles.topLeft),this.main.appendChild(this.selectionHandles.bottomRight),this.main.appendChild(this.selectionHandles.topLeftHitArea),this.main.appendChild(this.selectionHandles.bottomRightHitArea)},isPartRange:function(a,b){return!this.wot.selections.area.cellRange||a==this.wot.selections.area.cellRange.to.row&&b==this.wot.selections.area.cellRange.to.col?!1:!0},updateMultipleSelectionHandlesPosition:function(a,b,c,d,e,f){var g=parseInt(this.selectionHandles.styles.topLeft.width,10),h=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top=parseInt(c-g,10)+"px",this.selectionHandles.styles.topLeft.left=parseInt(d-g,10)+"px",this.selectionHandles.styles.topLeftHitArea.top=parseInt(c-h/4*3,10)+"px",this.selectionHandles.styles.topLeftHitArea.left
16=parseInt(d-h/4*3,10)+"px",this.selectionHandles.styles.bottomRight.top=parseInt(c+f,10)+"px",this.selectionHandles.styles.bottomRight.left=parseInt(d+e,10)+"px",this.selectionHandles.styles.bottomRightHitArea.top=parseInt(c+f-h/4,10)+"px",this.selectionHandles.styles.bottomRightHitArea.left=parseInt(d+e-h/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(a,b)?(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"),a==this.wot.wtSettings.getSetting("fixedRowsTop")||b==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="")},appear:function(a){if(!this.disabled){var b,c,d,e,f,g,h,i,j,r,t,v,w,x,y,z,A,B,C;C=this.wot.wtTable.getRenderedRowsCount();for(var D=0;C>D;D++){var E=this.wot.wtTable.rowFilter.renderedToSource(D);if(E>=a[0]&&E<=a[2]){w=E;break}}for(var F=C-1;F>=0;F--){var G=this.wot.wtTable.rowFilter.renderedToSource(F);if(G>=a[0]&&G<=a[2]){y=G;break}}C=this.wot.wtTable.getRenderedColumnsCount();for(var H=0;C>H;H++){var I=this.wot.wtTable.columnFilter.renderedToSource(H);if(I>=a[1]&&I<=a[3]){x=I;break}}for(var J=C-1;J>=0;J--){var K=this.wot.wtTable.columnFilter.renderedToSource(J);
16if(K>=a[1]&&K<=a[3]){z=K;break}}if(void 0===w||void 0===x)return void this.disappear();b=w!==y||x!==z,c=this.wot.wtTable.getCell(new u(w,x)),d=b?this.wot.wtTable.getCell(new u(y,z)):c,e=o(c),f=b?o(d):e,g=o(this.wot.wtTable.TABLE),i=e.top,t=f.top+p(d)-i,r=e.left,v=f.left+q(d)-r,h=i-g.top-1,j=r-g.left-1;var L=k(c);parseInt(L.borderTopWidth,10)>0&&(h+=1,t=t>0?t-1:0),parseInt(L.borderLeftWidth,10)>0&&(j+=1,v=v>0?v-1:0),this.topStyle.top=h+"px",this.topStyle.left=j+"px",this.topStyle.width=v+"px",this.topStyle.display="block",this.leftStyle.top=h+"px",this.leftStyle.left=j+"px",this.leftStyle.height=t+"px",this.leftStyle.display="block";var M=Math.floor(this.settings.border.width/2);this.bottomStyle.top=h+t-M+"px",this.bottomStyle.left=j+"px",this.bottomStyle.width=v+"px",this.bottomStyle.display="block",this.rightStyle.top=h+"px",this.rightStyle.left=j+v-M+"px",this.rightStyle.height=t+1+"px",this.rightStyle.display="block",s()||!this.hasSetting(this.settings.border.cornerVisible)||this.isPartRange(y,z)?this.cornerStyle.display="none":(this.cornerStyle.top=h+t-4+"px",this.cornerStyle.left=j+v-4+"px",this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="block",A=l(this.wot.wtTable.TABLE),z===this.wot.getSetting("totalColumns")-1&&(B=d.offsetLeft+q(d)>=m(A),B&&(this.cornerStyle.left=Math.floor(j+v-3-parseInt(this.cornerDefaultStyle.width)/2)+"px",this.cornerStyle.borderRightWidth=0)),y===this.wot.getSetting("totalRows")-1&&(B=d.offsetTop+p(d)>=n(A),B&&(this.cornerStyle.top=Math.floor(h+t-3-parseInt(this.cornerDefaultStyle.height)/2)+"px",this.cornerStyle.borderBottomWidth=0))),s()&&this.updateMultipleSelectionHandlesPosition(w,x,h,j,v,t)}},disappear:function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",s()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")},hasSetting:function(a){return"function"==typeof a?a():!!a}},{}),window.WalkontableBorder=v},{"cell/coords":5,eventManager:41,"helpers/browser":43,"helpers/dom/element":46,"helpers/dom/event":47,"overlay/_base.js":11}],3:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableViewportColumnsCalculator:{get:function(){return e}},__esModule:{value:!0}});var d=new WeakMap,e=function(a,b,c,e,f,g,h){var i=void 0!==arguments[7]?arguments[7]:function(a){return a};d.set(this,{viewportWidth:a,scrollOffset:b,totalColumns:c,columnWidthFn:e,overrideFn:f,onlyFullyVisible:g,stretchingColumnWidthFn:i}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=h,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()},f=e;$traceurRuntime.createClass(e,{calculate:function(){for(var a,b=0,c=!0,e=[],f=d.get(this),g=f.onlyFullyVisible,h=f.overrideFn,i=f.scrollOffset,j=f.totalColumns,k=f.viewportWidth,l=0;j>l;l++)if(a=this._getColumnWidth(l),i>=b&&!g&&(this.startColumn=l),b>=i&&i+k>=b+a&&(null==this.startColumn&&(this.startColumn=l),this.endColumn=l),e.push(b),b+=a,g||(this.endColumn=l),b>=i+k){c=!1;break}if(this.endColumn===j-1&&c)for(this.startColumn=this.endColumn;this.startColumn>0;){var m=e[this.endColumn]+a-e[this.startColumn-1];if((k>=m||!g)&&this.startColumn--,m>k)break}null!==this.startColumn&&h&&h(this),this.startPosition=e[this.startColumn],void 0==this.startPosition&&(this.startPosition=null),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)},refreshStretching:function(a){if("none"!==this.stretch){this.totalTargetWidth=a;for(var b=d.get(this),c=b.totalColumns,e=0,f=0;c>f;f++){var g=this._getColumnWidth(f),h=b.stretchingColumnWidthFn(void 0,f);"number"==typeof h?a-=h:e+=g}var i=a-e;if("all"===this.stretch&&i>0)this.stretchAllRatio=a/e,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&a!==1/0){var j=this._getColumnWidth(c-1),k=i+j;this.stretchLastWidth=k>=0?k:j}}},getStretchedColumnWidth:function(a,b){var c=null;return"all"===this.stretch&&0!==this.stretchAllRatio?c=this._getStretchedAllColumnWidth(a,b):"last"===this.stretch&&0!==this.stretchLastWidth&&(c=this._getStretchedLastColumnWidth(a)),c},_getStretchedAllColumnWidth:function(a,b){var c=0,e=d.get(this),f=e.totalColumns;if(!this.stretchAllColumnsWidth[a]){var g=Math.round(b*this.stretchAllRatio),h=e.stretchingColumnWidthFn(g,a);this.stretchAllColumnsWidth[a]=void 0===h?g:isNaN(h)?this._getColumnWidth(a):h}if(this.stretchAllColumnsWidth.length===f&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var i=0;i<this.stretchAllColumnsWidth.length;i++)c+=this.stretchAllColumnsWidth[i];c!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-c)}return this.stretchAllColumnsWidth[a]},_getStretchedLastColumnWidth:function(a){var b=d.get(this),c=b.totalColumns;return a===c-1?this.stretchLastWidth:null},_getColumnWidth:function(a){var b=d.get(this).columnWidthFn(a);return void 0===b&&(b=f.DEFAULT_WIDTH),b}},{get DEFAULT_WIDTH(){return 50}}),window.WalkontableViewportColumnsCalculator=e},{}],4:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableViewportRowsCalculator:{get:function(){return e}},__esModule:{value:!0}});var d=new WeakMap,e=function(a,b,c,e,f,g,h){d.set(this,{viewportHe
16ight:a,scrollOffset:b,totalRows:c,rowHeightFn:e,overrideFn:f,onlyFullyVisible:g,horizontalScrollbarHeight:h}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()},f=e;$traceurRuntime.createClass(e,{calculate:function(){for(var a=0,b=!0,c=[],e=d.get(this),g=e.onlyFullyVisible,h=e.overrideFn,i=e.rowHeightFn,j=e.scrollOffset,k=e.totalRows,l=e.viewportHeight,m=e.horizontalScrollbarHeight||0,n=0;k>n;n++){var o=i(n);if(void 0===o&&(o=f.DEFAULT_HEIGHT),j>=a&&!g&&(this.startRow=n),a>=j&&j+l-m>=a+o&&(null===this.startRow&&(this.startRow=n),this.endRow=n),c.push(a),a+=o,g||(this.endRow=n),a>=j+l-m){b=!1;break}}if(this.endRow===k-1&&b)for(this.startRow=this.endRow;this.startRow>0;){var p=c[this.endRow]+o-c[this.startRow-1];if((l-m>=p||!g)&&this.startRow--,p>=l-m)break}null!==this.startRow&&h&&h(this),this.startPosition=c[this.startRow],void 0==this.startPosition&&(this.startPosition=null),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}},{get DEFAULT_HEIGHT(){return 23}}),window.WalkontableViewportRowsCalculator=e},{}],5:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableCellCoords:{get:function(){return d}},__esModule:{value:!0}});var d=function(a,b){"undefined"!=typeof a&&"undefined"!=typeof b?(this.row=a,this.col=b):(this.row=null,this.col=null)};$traceurRuntime.createClass(d,{isValid:function(a){return this.row<0||this.col<0?!1:this.row>=a.getSetting("totalRows")||this.col>=a.getSetting("totalColumns")?!1:!0},isEqual:function(a){return a===this?!0:this.row===a.row&&this.col===a.col},isSouthEastOf:function(a){return this.row>=a.row&&this.col>=a.col},isNorthWestOf:function(a){return this.row<=a.row&&this.col<=a.col},isSouthWestOf:function(a){return this.row>=a.row&&this.col<=a.col},isNorthEastOf:function(a){return this.row<=a.row&&this.col>=a.col}},{}),window.WalkontableCellCoords=d},{}],6:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableCellRange:{get:function(){return f}},__esModule:{value:!0}});var d,e=(d=a("cell/coords"),d&&d.__esModule&&d||{"default":d}).WalkontableCellCoords,f=function(a,b,c){this.highlight=a,this.from=b,this.to=c},g=f;$traceurRuntime.createClass(f,{isValid:function(a){return this.from.isValid(a)&&this.to.isValid(a)},isSingle:function(){return this.from.row===this.to.row&&this.from.col===this.to.col},getHeight:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1},getWidth:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1},includes:function(a){var b=a,c=b.row,d=b.col,e=this.getTopLeftCorner(),f=this.getBottomRightCorner();return e.row<=c&&f.row>=c&&e.col<=d&&f.col>=d},includesRange:function(a){return this.includes(a.getTopLeftCorner())&&this.includes(a.getBottomRightCorner())},isEqual:function(a){return Math.min(this.from.row,this.to.row)==Math.min(a.from.row,a.to.row)&&Math.max(this.from.row,this.to.row)==Math.max(a.from.row,a.to.row)&&Math.min(this.from.col,this.to.col)==Math.min(a.from.col,a.to.col)&&Math.max(this.from.col,this.to.col)==Math.max(a.from.col,a.to.col)},overlaps:function(a){return a.isSouthEastOf(this.getTopLeftCorner())&&a.isNorthWestOf(this.getBottomRightCorner())},isSouthEastOf:function(a){return this.getTopLeftCorner().isSouthEastOf(a)||this.getBottomRightCorner().isSouthEastOf(a)},isNorthWestOf:function(a){return this.getTopLeftCorner().isNorthWestOf(a)||this.getBottomRightCorner().isNorthWestOf(a)},expand:function(a){var b=this.getTopLeftCorner(),c=this.getBottomRightCorner();return a.row<b.row||a.col<b.col||a.row>c.row||a.col>c.col?(this.from=new e(Math.min(b.row,a.row),Math.min(b.col,a.col)),this.to=new e(Math.max(c.row,a.row),Math.max(c.col,a.col)),!0):!1},expandByRange:function(a){if(this.includesRange(a)||!this.overlaps(a))return!1;var b=this.getTopLeftCorner(),c=this.getBottomRightCorner(),d=(this.getTopRightCorner(),this.getBottomLeftCorner(),a.getTopLeftCorner()),f=a.getBottomRightCorner(),h=Math.min(b.row,d.row),i=Math.min(b.col,d.col),j=Math.max(c.row,f.row),k=Math.max(c.col,f.col),l=new e(h,i),m=new e(j,k),n=new g(l,l,m).isCorner(this.from,a),o=a.isEqual(new g(l,l,m));return n&&!o&&(this.from.col>l.col&&(l.col=k,m.col=i),this.from.row>
16l.row&&(l.row=j,m.row=h)),this.from=l,this.to=m,!0},getDirection: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},setDirection:function(a){switch(a){case"NW-SE":this.from=this.getTopLeftCorner(),this.to=this.getBottomRightCorner();break;case"NE-SW":this.from=this.getTopRightCorner(),this.to=this.getBottomLeftCorner();break;case"SE-NW":this.from=this.getBottomRightCorner(),this.to=this.getTopLeftCorner();break;case"SW-NE":this.from=this.getBottomLeftCorner(),this.to=this.getTopRightCorner()}},getTopLeftCorner:function(){return new e(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))},getBottomRightCorner:function(){return new e(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))},getTopRightCorner:function(){return new e(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))},getBottomLeftCorner:function(){return new e(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))},isCorner:function(a,b){return b&&b.includes(a)&&(this.getTopLeftCorner().isEqual(new e(b.from.row,b.from.col))||this.getTopRightCorner().isEqual(new e(b.from.row,b.to.col))||this.getBottomLeftCorner().isEqual(new e(b.to.row,b.from.col))||this.getBottomRightCorner().isEqual(new e(b.to.row,b.to.col)))?!0:a.isEqual(this.getTopLeftCorner())||a.isEqual(this.getTopRightCorner())||a.isEqual(this.getBottomLeftCorner())||a.isEqual(this.getBottomRightCorner())},getOppositeCorner:function(a,b){if(!(a instanceof e))return!1;if(b&&b.includes(a)){if(this.getTopLeftCorner().isEqual(new e(b.from.row,b.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new e(b.from.row,b.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new e(b.to.row,b.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new e(b.to.row,b.to.col)))return this.getTopLeftCorner()}return a.isEqual(this.getBottomRightCorner())?this.getTopLeftCorner():a.isEqual(this.getTopLeftCorner())?this.getBottomRightCorner():a.isEqual(this.getTopRightCorner())?this.getBottomLeftCorner():a.isEqual(this.getBottomLeftCorner())?this.getTopRightCorner():void 0},getBordersSharedWith:function(a){if(!this.includesRange(a))return[];var b={top:Math.min(this.from.row,this.to.row),bottom:Math.max(this.from.row,this.to.row),left:Math.min(this.from.col,this.to.col),right:Math.max(this.from.col,this.to.col)},c={top:Math.min(a.from.row,a.to.row),bottom:Math.max(a.from.row,a.to.row),left:Math.min(a.from.col,a.to.col),right:Math.max(a.from.col,a.to.col)},d=[];return b.top==c.top&&d.push("top"),b.right==c.right&&d.push("right"),b.bottom==c.bottom&&d.push("bottom"),b.left==c.left&&d.push("left"),d},getInner:function(){for(var a=this.getTopLeftCorner(),b=this.getBottomRightCorner(),c=[],d=a.row;d<=b.row;d++)for(var f=a.col;f<=b.col;f++)this.from.row===d&&this.from.col===f||this.to.row===d&&this.to.col===f||c.push(new e(d,f));return c},getAll:function(){for(var a=this.getTopLeftCorner(),b=this.getBottomRightCorner(),c=[],d=a.row;d<=b.row;d++)for(var f=a.col;f<=b.col;f++)c.push(a.row===d&&a.col===f?a:b.row===d&&b.col===f?b:new e(d,f));return c},forAll:function(a){for(var b=this.getTopLeftCorner(),c=this.getBottomRightCorner(),d=b.row;d<=c.row;d++)for(var e=b.col;e<=c.col;e++){var f=a(d,e);if(f===!1)return}}},{}),window.WalkontableCellRange=f},{"cell/coords":5}],7:[function(a,b,c){"use strict";Object.defineProperties(c,{Walkontable:{get:function(){return G}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),s=r.addClass,t=r.fastInnerText,u=r.isVisible,v=r.removeClass,w=(e=a("helpers/object"),e&&e.__esModule&&e||{"default":e}).objectEach,x=(f=a("helpers/string"),f&&f.__esModule&&f||{"default":f}),y=x.toUpperCaseFirst,z=x.randomString,A=(g=a("event"),g&&g.__esModule&&g||{"default":g}).WalkontableEvent,B=(h=a("overlays"),h&&h.__esModule&&h||{"default":h}).WalkontableOverlays,C=(i=a("scroll"),i&&i.__esModule&&i||{"default":i}).WalkontableScroll,D=(j=a("settings"),j&&j.__esModule&&j||{"default":j}
16).WalkontableSettings,E=(k=a("table"),k&&k.__esModule&&k||{"default":k}).WalkontableTable,F=(l=a("viewport"),l&&l.__esModule&&l||{"default":l}).WalkontableViewport,G=((m=a("overlay/_base.js"),m&&m.__esModule&&m||{"default":m}).WalkontableOverlay,(n=a("overlay/top.js"),n&&n.__esModule&&n||{"default":n}).WalkontableTopOverlay,(o=a("overlay/left.js"),o&&o.__esModule&&o||{"default":o}).WalkontableLeftOverlay,(p=a("overlay/debug.js"), 17p&&p.__esModule&&p||{"default":p}).WalkontableDebugOverlay,(q=a("overlay/topLeftCorner.js"),q&&q.__esModule&&q||{"default":q}).WalkontableTopLeftCornerOverlay,function(a){var b=[];if(this.guid="wt_"+z(),a.cloneSource?(this.cloneSource=a.cloneSource,this.cloneOverlay=a.cloneOverlay,this.wtSettings=a.cloneSource.wtSettings,this.wtTable=new E(this,a.table,a.wtRootElement),this.wtScroll=new C(this),this.wtViewport=a.cloneSource.wtViewport,this.wtEvent=new A(this),this.selections=this.cloneSource.selections):(this.wtSettings=new D(this,a),this.wtTable=new E(this,a.table),this.wtScroll=new C(this),this.wtViewport=new F(this),this.wtEvent=new A(this),this.selections=this.getSetting("selections"),this.wtOverlays=new B(this),this.exportSettingsAsClassNames()),this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var c=0,d=this.wtTable.THEAD.childNodes[0].childNodes.length;d>c;c++)b.push(this.wtTable.THEAD.childNodes[0].childNodes[c].innerHTML);this.getSetting("columnHeaders").length||this.update("columnHeaders",[function(a,c){t(c,b[a])}])}this.drawn=!1,this.drawInterrupted=!1});$traceurRuntime.createClass(G,{draw:function(){var a=void 0!==arguments[0]?arguments[0]:!1;return this.drawInterrupted=!1,a||u(this.wtTable.TABLE)?this.wtTable.draw(a):this.drawInterrupted=!0,this},getCell:function(a){var b=void 0!==arguments[1]?arguments[1]:!1;if(!b)return this.wtTable.getCell(a);var c=this.wtSettings.getSetting("totalRows"),d=this.wtSettings.getSetting("fixedRowsTop"),e=this.wtSettings.getSetting("fixedRowsBottom"),f=this.wtSettings.getSetting("fixedColumnsLeft");if(a.row<d&&a.col<f)return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(a);if(a.row<d)return this.wtOverlays.topOverlay.clone.wtTable.getCell(a);if(a.col<f&&a.row>=c-e){if(this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(a)}else{if(a.col<f)return this.wtOverlays.leftOverlay.clone.wtTable.getCell(a);if(a.row<c&&a.row>c-e&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(a)}return this.wtTable.getCell(a)},update:function(a,b){return this.wtSettings.update(a,b)},scrollVertical:function(a){return this.wtOverlays.topOverlay.scrollTo(a),this.getSetting("onScrollVertically"),this},scrollHorizontal:function(a){return this.wtOverlays.leftOverlay.scrollTo(a),this.getSetting("onScrollHorizontally"),this},scrollViewport:function(a){return this.wtScroll.scrollViewport(a),this},getViewport:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]},getOverlayName:function(){return this.cloneOverlay?this.cloneOverlay.type:"master"},isOverlayName:function(a){return this.cloneOverlay?this.cloneOverlay.type===a:!1},exportSettingsAsClassNames:function(){var a=this,b={rowHeaders:["array"],columnHeaders:["array"]},c=[],d=[];w(b,function(b,e){b.indexOf("array")>-1&&a.getSetting(e).length&&d.push("ht"+y(e)),c.push("ht"+y(e))}),v(this.wtTable.wtRootElement.parentNode,c),s(this.wtTable.wtRootElement.parentNode,d)},getSetting:function(a,b,c,d,e){return this.wtSettings.getSetting(a,b,c,d,e)},hasSetting:function(a){return this.wtSettings.has(a)},destroy:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}},{}),window.Walkontable=G},{event:8,"helpers/dom/element":46,"helpers/object":52,"helpers/string":54,"overlay/_base.js":11,"overlay/debug.js":12,"overlay/left.js":13,"overlay/top.js":14,"overlay/topLeftCorner.js":15,overlays:16,scroll:17,settings:19,table:20,viewport:22}],8:[function(a,b,c){"use strict";function d(a){var b=this,c=m(a);this.instance=a;var d=[null,null];
17this.dblClickTimeout=[null,null];var e,f=function(a){var c=b.parentCell(a.realTarget);j(a.realTarget,"corner")?b.instance.getSetting("onCellCornerMouseDown",a,a.realTarget):c.TD&&b.instance.hasSetting("onCellMouseDown")&&b.instance.getSetting("onCellMouseDown",a,c.coords,c.TD,b.instance),2!==a.button&&c.TD&&(d[0]=c.TD,clearTimeout(b.dblClickTimeout[0]),b.dblClickTimeout[0]=setTimeout(function(){d[0]=null},1e3))},g=function(){b.instance.touchMoving=!0},h=function(a){c.addEventListener(this,"touchmove",g),b.checkIfTouchMove=setTimeout(function(){return b.instance.touchMoving===!0?(b.instance.touchMoving=void 0,void c.removeEventListener("touchmove",g,!1)):void f(a)},30)},n=function(a){var c,d,e;b.instance.hasSetting("onCellMouseOver")&&(c=b.instance.wtTable.TABLE,d=i(a.realTarget,["TD","TH"],c),e=b.instance.cloneSource||b.instance,d&&d!==e.lastMouseOver&&k(d,c)&&(e.lastMouseOver=d,b.instance.getSetting("onCellMouseOver",a,b.instance.wtTable.getCoords(d),d,b.instance)))},o=function(a){if(2!==a.button){var c=b.parentCell(a.realTarget);c.TD===d[0]&&c.TD===d[1]?(j(a.realTarget,"corner")?b.instance.getSetting("onCellCornerDblClick",a,c.coords,c.TD,b.instance):b.instance.getSetting("onCellDblClick",a,c.coords,c.TD,b.instance),d[0]=null,d[1]=null):c.TD===d[0]&&(d[1]=c.TD,clearTimeout(b.dblClickTimeout[1]),b.dblClickTimeout[1]=setTimeout(function(){d[1]=null},500))}},p=function(a){clearTimeout(e),a.preventDefault(),o(a)};if(c.addEventListener(this.instance.wtTable.holder,"mousedown",f),c.addEventListener(this.instance.wtTable.TABLE,"mouseover",n),c.addEventListener(this.instance.wtTable.holder,"mouseup",o),this.instance.wtTable.holder.parentNode.parentNode&&l()&&!b.instance.wtTable.isWorkingOnClone()){var q="."+this.instance.wtTable.holder.parentNode.className.split(" ").join(".");c.addEventListener(this.instance.wtTable.holder,"touchstart",function(a){b.instance.touchApplied=!0,k(a.target,q)&&h.call(a.target,a)}),c.addEventListener(this.instance.wtTable.holder,"touchend",function(a){b.instance.touchApplied=!1,k(a.target,q)&&p.call(a.target,a)}),b.instance.momentumScrolling||(b.instance.momentumScrolling={}),c.addEventListener(this.instance.wtTable.holder,"scroll",function(){clearTimeout(b.instance.momentumScrolling._timeout),b.instance.momentumScrolling.ongoing||b.instance.getSetting("onBeforeTouchScroll"),b.instance.momentumScrolling.ongoing=!0,b.instance.momentumScrolling._timeout=setTimeout(function(){b.instance.touchApplied||(b.instance.momentumScrolling.ongoing=!1,b.instance.getSetting("onAfterMomentumScroll"))},200)})}c.addEventListener(window,"resize",function(){"none"!==b.instance.getSetting("stretchH")&&b.instance.draw()}),this.destroy=function(){clearTimeout(this.dblClickTimeout[0]),clearTimeout(this.dblClickTimeout[1]),c.destroy()}}Object.defineProperties(c,{WalkontableEvent:{get:function(){return d}},__esModule:{value:!0}});var e,f,g,h=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),i=h.closestDown,j=h.hasClass,k=h.isChildOf,l=(f=a("helpers/browser"),f&&f.__esModule&&f||{"default":f}).isMobileBrowser,m=(g=a("eventManager"),g&&g.__esModule&&g||{"default":g}).eventManager;d.prototype.parentCell=function(a){var b={},c=this.instance.wtTable.TABLE,d=i(a,["TD","TH"],c);return d?(b.coords=this.instance.wtTable.getCoords(d),b.TD=d):j(a,"wtBorder")&&j(a,"current")?(b.coords=this.instance.selections.current.cellRange.highlight,b.TD=this.instance.wtTable.getCell(b.coords)):j(a,"wtBorder")&&j(a,"area")&&this.instance.selections.area.cellRange&&(b.coords=this.instance.selections.area.cellRange.to,b.TD=this.instance.wtTable.getCell(b.coords)),b},window.WalkontableEvent=d},{eventManager:41,"helpers/browser":43,"helpers/dom/element":46}],9:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableColumnFilter:{get:function(){return d}},__esModule:{value:!0}});var d=function(a,b,c){this.offset=a,this.total=b,this.countTH=c};$traceurRuntime.createClass(d,{offsetted:function(a){return a+this.offset},unOffsetted:function(a){return a-this.offset},renderedToSource:function(a){return this.offsetted(a)},sourceToRendered:function(a){return this.unOffsetted(a)},offsettedTH:function(a){return a-this.countTH},unOffsettedTH:function(a){return a+this.countTH},visibleRowHeadedColumnToSourceColumn:function(a){return this.renderedToSource(this.offsettedTH(a))},sourceColumnToVisibleRowHeadedColumn:function(a){return this.unOffsettedTH(this.sourceToRendered(a))}},{}),window.WalkontableColumnFilter=d},{}],10:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableRowFilter:{get:function(){return d}},__esModule:{value:!0}});var d=function(a,b,c){this.offset=a,this.total=b,this.countTH=c};$traceurRuntime.createClass(d,{offsetted:function(a){return a+this.offset},unOffsetted:function(a){return a-this.offset},renderedToSource:function(a){return this.offsetted(a)},sourceToRendered:function(a){return this.unOffsetted(a)},offsettedTH:function(a){return a-this.countTH},unOffsettedTH:function(a){return a+this.countTH},visibleColHeadedRowToSourceRow:function(a){return this.renderedToSource(this.offsettedTH(a))},sourceRowToVisibleColHeadedRow:function(a){return this.unOffsettedTH(this.sourceToRendered(a))}},{}),window.WalkontableRowFilter=d},{}],11:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableOverlay:{get:function(){return m}},__esModule:{value:!0}});var d,e,f,g=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),h=g.getScrollableElement,i=g.getTrimmingContainer,j=(e=a("helpers/object"),e&&e.__esMo
17dule&&e||{"default":e}).defineGetter,k=(f=a("eventManager"),f&&f.__esModule&&f||{"default":f}).eventManager,l={},m=function(a){j(this,"wot",a,{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=i(this.hider.parentNode.parentNode),this.needFullRender=this.shouldBeRendered(),this.areElementSizesAdjusted=!1},n=m;$traceurRuntime.createClass(m,{shouldBeRendered:function(){return!0},updateTrimmingContainer:function(){this.trimmingContainer=i(this.hider.parentNode.parentNode)},updateMainScrollableElement:function(){this.mainTableScrollableElement=h(this.wot.wtTable.TABLE)},makeClone:function(a){if(-1===n.CLONE_TYPES.indexOf(a))throw new Error('Clone type "'+a+'" is not supported.');var b=document.createElement("DIV"),c=document.createElement("TABLE");b.className="ht_clone_"+a+" handsontable",b.style.position="absolute",b.style.top=0,b.style.left=0,b.style.overflow="hidden",c.className=this.wot.wtTable.TABLE.className,b.appendChild(c),this.type=a,this.wot.wtTable.wtRootElement.parentNode.appendChild(b);var d=this.wot.getSetting("preventOverflow");return this.mainTableScrollableElement=d===!0||"horizontal"===d&&this.type===n.CLONE_TOP||"vertical"===d&&this.type===n.CLONE_LEFT?window:h(this.wot.wtTable.TABLE),new Walkontable({cloneSource:this.wot,cloneOverlay:this,table:c})},refresh:function(){var a=void 0!==arguments[0]?arguments[0]:!1,b=this.shouldBeRendered();this.clone&&(this.needFullRender||b)&&this.clone.draw(a),this.needFullRender=b},destroy:function(){k(this.clone).destroy()}},{get CLONE_TOP(){return"top"},get CLONE_BOTTOM(){return"bottom"},get CLONE_LEFT(){return"left"},get CLONE_TOP_LEFT_CORNER(){return"top_left_corner"},get CLONE_BOTTOM_LEFT_CORNER(){return"bottom_left_corner"},get CLONE_DEBUG(){return"debug"},get CLONE_TYPES(){return[n.CLONE_TOP,n.CLONE_BOTTOM,n.CLONE_LEFT,n.CLONE_TOP_LEFT_CORNER,n.CLONE_BOTTOM_LEFT_CORNER,n.CLONE_DEBUG]},registerOverlay:function(a,b){if(-1===n.CLONE_TYPES.indexOf(a))throw new Error("Unsupported overlay ("+a+").");l[a]=b},createOverlay:function(a,b){return new l[a](b)},isOverlayTypeOf:function(a,b){return a&&l[b]?a instanceof l[b]:!1}}),window.WalkontableOverlay=m},{eventManager:41,"helpers/dom/element":46,"helpers/object":52}],12:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableDebugOverlay:{get:function(){return h}},__esModule:{value:!0}});var d,e,f=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}).addClass,g=(e=a("_base"),e&&e.__esModule&&e||{"default":e}).WalkontableOverlay,h=function(a){$traceurRuntime.superConstructor(i).call(this,a),this.clone=this.makeClone(g.CLONE_DEBUG),this.clone.wtTable.holder.style.opacity=.4,this.clone.wtTable.holder.style.textShadow="0 0 2px #ff0000",f(this.clone.wtTable.holder.parentNode,"wtDebugVisible")},i=h;$traceurRuntime.createClass(h,{},{},g),window.WalkontableDebugOverlay=h,g.registerOverlay(g.CLONE_DEBUG,h)},{_base:11,"helpers/dom/element":46}],13:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableLeftOverlay:{get:function(){return r}},__esModule:{value:!0}});var d,e,f=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),g=f.addClass,h=f.getScrollbarWidth,i=f.getScrollLeft,j=f.getWindowScrollTop,k=f.hasClass,l=f.outerWidth,m=f.innerHeight,n=f.removeClass,o=f.setOverlayPosition,p=f.resetCssTransform,q=(e=a("_base"),e&&e.__esModule&&e||{"default":e}).WalkontableOverlay,r=function(a){$traceurRuntime.superConstructor(s).call(this,a),this.clone=this.makeClone(q.CLONE_LEFT)},s=r;$traceurRuntime.createClass(r,{shouldBeRendered:function(){return this.wot.getSetting("fixedColumnsLeft")||this.wot.getSetting("rowHeaders").length?!0:!1},resetFixedPosition:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var a=this.clone.wtTable.holder.parentNode,b=0,c=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||c&&"horizontal"===c)b=this.getScrollPosition(),p(a);else{var d,e,f=this.wot.wtTable.hider.getBoundingClientRect(),g=Math.ceil(f.left),h=Math.ceil(f.right);e=this.wot.wtTable.hider.style.top,e=""===e?0:e,d=0>g&&h-a.offsetWidth>0?-g:0,b=d,d+="px",o(a,d,e)}this.adjustHeaderBordersPosition(b),this.adjustElementsSize()}},setScrollPosition:function(a){this.mainTableScrollableElement===window?window.scrollTo(a,j()):this.mainTableScrollableElement.scrollLeft=a},onScroll:function(){this.wot.getSetting("onScrollVertically")},sumCellSizes:function(a,b){for(var c=0,d=this.wot.wtSettings.defaultColumnWidth;b>a;)c+=this.wot.wtTable.getStretchedColumnWidth(a)||d,a++;return c},adjustElementsSize:function(){var a=void 0!==arguments[0]?arguments[0]:!1;this.updateTrimmingContainer(),(this.needFullRender||a)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),a||(this.areElementSizesAdjusted=!0))},adjustRootElementSize:function(){var a,b=this.wot.wtTable.holder,c=b.clientHeight===b.offsetHeight?0:h(),d=this.clone.wtTable.holder.parentNode,e=d.style,f=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"vertical"===f){var g=this.wot.wtViewport.getWorkspaceHeight()-c;g=Math.min(g,m(this.wot.wtTable.wtRootElement)),e.height=g+"px"}else e.height="";this.clone.wtTable.holder.style.height=e.height,a=l(this.clone.wtTable.TABLE),e.width=(0===a?a:a+4)+"px"},adjustRootChildrenSize:function(){var a=h();this.clone.wtTable.hider.style.height=this.hider.style.height,this.clone.wtTable.holder.style.height=this.clone.wtTable.holder.parentNode.style.height,0===a&&(a=30),this.clone.wtTable.holder.style.width=parseInt(this.clone.wtTable.holder.parentNode.style.width,10)+a+"px"},applyToDOM:function(){var a=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!==a)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style.left="0"}this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()},syncOverlayOffset:function(){this.clone.wtTable.spreader.style.top="number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.wot.wtViewport.rowsRenderCalculator.startPosition+"px":""},scrollTo:function(a,b){var c=this.getTableParentOffset(),d=this.wot.cloneSource?this.wot.cloneSource:this.wot,e=d.wtTable.holder,f=0;b&&e.offsetWidth!==e.clientWidth&&(f=h()),b?(c+=this.sumCellSizes(0,a+1),c-=this.wot.wtViewport.getViewportWidth()):c+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),a),c+=f,this.setScrollPosition(c)},getTableParentOffset:function(){var a=this.wot.getSetting("preventOverflow"),b=0;return a||this.trimmingContainer!==window||(b=this.wot.wtTable.holderOffset.left),b}
17,getScrollPosition:function(){return i(this.mainTableScrollableElement)},adjustHeaderBordersPosition:function(a){var b=this.wot.wtTable.holder.parentNode,c=this.wot.getSetting("rowHeaders"),d=this.wot.getSetting("fixedColumnsLeft"),e=this.wot.getSetting("totalRows");if(e?n(b,"emptyRows"):g(b,"emptyRows"),d&&!c.length)g(b,"innerBorderLeft");else if(!d&&c.length){var f=k(b,"innerBorderLeft");a?g(b,"innerBorderLeft"):n(b,"innerBorderLeft"),(!f&&a||f&&!a)&&this.wot.wtOverlays.adjustElementsSize()}}},{},q),window.WalkontableLeftOverlay=r,q.registerOverlay(q.CLONE_LEFT,r)},{_base:11,"helpers/dom/element":46}],14:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableTopOverlay:{get:function(){return r}},__esModule:{value:!0}});var d,e,f=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),g=f.addClass,h=f.getScrollbarWidth,i=f.getScrollTop,j=f.getWindowScrollLeft,k=f.hasClass,l=f.outerHeight,m=f.innerWidth,n=f.removeClass,o=f.setOverlayPosition,p=f.resetCssTransform,q=(e=a("_base"),e&&e.__esModule&&e||{"default":e}).WalkontableOverlay,r=function(a){$traceurRuntime.superConstructor(s).call(this,a),this.clone=this.makeClone(q.CLONE_TOP)},s=r;$traceurRuntime.createClass(r,{shouldBeRendered:function(){return this.wot.getSetting("fixedRowsTop")||this.wot.getSetting("columnHeaders").length?!0:!1},resetFixedPosition:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var a=this.clone.wtTable.holder.parentNode,b=0,c=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||c&&"vertical"===c)b=this.getScrollPosition(),p(a);else{var d,e,f=this.wot.wtTable.hider.getBoundingClientRect(),g=Math.ceil(f.top),h=Math.ceil(f.bottom);d=this.wot.wtTable.hider.style.left,d=""===d?0:d,e=0>g&&h-a.offsetHeight>0?-g:0,b=e,e+="px",o(a,d,e)}this.adjustHeaderBordersPosition(b),this.adjustElementsSize()}},setScrollPosition:function(a){this.mainTableScrollableElement===window?window.scrollTo(j(),a):this.mainTableScrollableElement.scrollTop=a},onScroll:function(){this.wot.getSetting("onScrollHorizontally")},sumCellSizes:function(a,b){for(var c=0,d=this.wot.wtSettings.settings.defaultRowHeight;b>a;){var e=this.wot.wtTable.getRowHeight(a);c+=void 0===e?d:e,a++}return c},adjustElementsSize:function(){var a=void 0!==arguments[0]?arguments[0]:!1;this.updateTrimmingContainer(),(this.needFullRender||a)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),a||(this.areElementSizesAdjusted=!0))},adjustRootElementSize:function(){var a,b=this.wot.wtTable.holder,c=b.clientWidth===b.offsetWidth?0:h(),d=this.clone.wtTable.holder.parentNode,e=d.style,f=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"horizontal"===f){var g=this.wot.wtViewport.getWorkspaceWidth()-c;g=Math.min(g,m(this.wot.wtTable.wtRootElement)),e.width=g+"px"}else e.width="";this.clone.wtTable.holder.style.width=e.width,a=l(this.clone.wtTable.TABLE),e.height=(0===a?a:a+4)+"px"},adjustRootChildrenSize:function(){var a=h();this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===a&&(a=30),this.clone.wtTable.holder.style.height=parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+a+"px"},applyToDOM:function(){var a=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!==a)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()},syncOverlayOffset:function(){this.clone.wtTable.spreader.style.left="number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.wot.wtViewport.columnsRenderCalculator.startPosition+"px":""},scrollTo:function(a,b){var c=this.getTableParentOffset(),d=this.wot.cloneSource?this.wot.cloneSource:this.wot,e=d.wtTable.holder,f=0;if(b&&e.offsetHeight!==e.clientHeight&&(f=h()),b){var g=this.wot.getSetting("fixedRowsBottom"),i=(this.wot.getSetting("fixedRowsTop"),this.wot.getSetting("totalRows"));c+=this.sumCellSizes(0,a+1),c-=this.wot.wtViewport.getViewportHe
17ight()-this.sumCellSizes(i-g,i),c+=1}else c+=this.sumCellSizes(this.wot.getSetting("fixedRowsTop"),a);c+=f,this.setScrollPosition(c)},getTableParentOffset:function(){return this.mainTableScrollableElement===window?this.wot.wtTable.holderOffset.top:0},getScrollPosition:function(){return i(this.mainTableScrollableElement)},adjustHeaderBordersPosition:function(a){var b=this.wot.wtTable.holder.parentNode,c=this.wot.getSetting("totalColumns");if(c?n(b,"emptyColumns"):g(b,"emptyColumns"),0===this.wot.getSetting("fixedRowsTop")&&this.wot.getSetting("columnHeaders").length>0){var d=k(b,"innerBorderTop");a||0===this.wot.getSetting("totalRows")?g(b,"innerBorderTop"):n(b,"innerBorderTop"),(!d&&a||d&&!a)&&this.wot.wtOverlays.adjustElementsSize()}if(0===this.wot.getSetting("rowHeaders").length){var e=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(e)for(var f=0;f<e.length;f++)e[f].style["border-left-width"]=0}}},{},q),window.WalkontableTopOverlay=r,q.registerOverlay(q.CLONE_TOP,r)},{_base:11,"helpers/dom/element":46}],15:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableTopLeftCornerOverlay:{get:function(){return l}},__esModule:{value:!0}});var d,e,f=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),g=f.outerHeight,h=f.outerWidth,i=f.setOverlayPosition,j=f.resetCssTransform,k=(e=a("_base"),e&&e.__esModule&&e||{"default":e}).WalkontableOverlay,l=function(a){$traceurRuntime.superConstructor(m).call(this,a),this.clone=this.makeClone(k.CLONE_TOP_LEFT_CORNER)},m=l;$traceurRuntime.createClass(l,{shouldBeRendered:function(){return(this.wot.getSetting("fixedRowsTop")||this.wot.getSetting("columnHeaders").length)&&(this.wot.getSetting("fixedColumnsLeft")||this.wot.getSetting("rowHeaders").length)?!0:!1},resetFixedPosition:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var a=this.clone.wtTable.holder.parentNode,b=g(this.clone.wtTable.TABLE),c=h(this.clone.wtTable.TABLE),d=this.wot.getSetting("preventOverflow");if(this.trimmingContainer===window){var e=this.wot.wtTable.hider.getBoundingClientRect(),f=Math.ceil(e.top),k=Math.ceil(e.left),l=Math.ceil(e.bottom),m=Math.ceil(e.right),n="0",o="0";d&&"vertical"!==d||0>k&&m-a.offsetWidth>0&&(n=-k+"px"),d&&"horizontal"!==d||0>f&&l-a.offsetHeight>0&&(o=-f+"px"),i(a,n,o)}else j(a);a.style.height=(0===b?b:b+4)+"px",a.style.width=(0===c?c:c+4)+"px"}}},{},k),window.WalkontableTopLeftCornerOverlay=l,k.registerOverlay(k.CLONE_TOP_LEFT_CORNER,l)},{_base:11,"helpers/dom/element":46}],16:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableOverlays:{get:function(){return r}},__esModule:{value:!0}});var d,e,f,g,h,i=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),j=i.getScrollableElement,k=i.getScrollbarWidth,l=i.getScrollLeft,m=i.getScrollTop,n=(e=a("helpers/array"),e&&e.__esModule&&e||{"default":e}).arrayEach,o=(f=a("helpers/unicode"),f&&f.__esModule&&f||{"default":f}).isKey,p=(g=a("helpers/browser"),g&&g.__esModule&&g||{"default":g}).isMobileBrowser,q=(h=a("eventManager"),h&&h.__esModule&&h||{"default":h}).EventManager,r=function(a){this.wot=a,this.instance=this.wot,this.eventManager=new q(this.wot),this.wot.update("scrollbarWidth",k()),this.wot.update("scrollbarHeight",k()),this.scrollableElement=j(this.wot.wtTable.TABLE),this.topOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_TOP,this.wot),this.bottomOverlay="undefined"==typeof WalkontableBottomOverlay?{needFullRender:!1}:WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_BOTTOM,this.wot),this.leftOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_LEFT,this.wot),this.topOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.topLeftCornerOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_TOP_LEFT_CORNER,this.wot)),this.bottomLeftCornerOverlay=this.bottomOverlay.needFullRender&&this.leftOverlay.needFullRender&&"undefined"!=typeof WalkontableBottomLeftCornerOverlay?WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER,this.wot):{needFullRender:!1},this.wot.getSetting("debug")&&(this.debug=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_DEBUG,this.wot)),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={
17width: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()};$traceurRuntime.createClass(r,{refreshAll:function(){if(this.wot.drawn){if(!this.wot.wtTable.holder.parentNode)return void this.destroy();this.wot.draw(!0),this.verticalScrolling&&this.leftOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1}},registerListeners:function(){var a=this,b=this.topOverlay.mainTableScrollableElement,c=this.leftOverlay.mainTableScrollableElement,d=[];for(d.push([document.documentElement,"keydown",function(b){return a.onKeyDown(b)}]),d.push([document.documentElement,"keyup",function(){return a.onKeyUp()}]),d.push([document,"visibilitychange",function(){return a.onKeyUp()}]),d.push([b,"scroll",function(b){return a.onTableScroll(b)}]),b!==c&&d.push([c,"scroll",function(b){return a.onTableScroll(b)}]),this.topOverlay.needFullRender&&(d.push([this.topOverlay.clone.wtTable.holder,"scroll",function(b){return a.onTableScroll(b)}]),d.push([this.topOverlay.clone.wtTable.holder,"wheel",function(b){return a.onTableScroll(b)}])),this.bottomOverlay.needFullRender&&(d.push([this.bottomOverlay.clone.wtTable.holder,"scroll",function(b){return a.onTableScroll(b)}]),d.push([this.bottomOverlay.clone.wtTable.holder,"wheel",function(b){return a.onTableScroll(b)}])),this.leftOverlay.needFullRender&&(d.push([this.leftOverlay.clone.wtTable.holder,"scroll",function(b){return a.onTableScroll(b)}]),d.push([this.leftOverlay.clone.wtTable.holder,"wheel",function(b){return a.onTableScroll(b)}])),this.topOverlay.trimmingContainer!==window&&this.leftOverlay.trimmingContainer!==window&&d.push([window,"wheel",function(b){var c,d=b.wheelDeltaY||b.deltaY,e=b.wheelDeltaX||b.deltaX;a.topOverlay.clone.wtTable.holder.contains(b.realTarget)?c="top":a.bottomOverlay.clone&&a.bottomOverlay.clone.wtTable.holder.contains(b.realTarget)?c="bottom":a.leftOverlay.clone.wtTable.holder.contains(b.realTarget)&&(c="left"),"top"==c&&0!==d?b.preventDefault():"left"==c&&0!==e?b.preventDefault():"bottom"==c&&0!==d&&b.preventDefault()}]);d.length;){var e=d.pop();this.eventManager.addEventListener(e[0],e[1],e[2]),this.registeredListeners.push(e)}},deregisterListeners:function(){for(;this.registeredListeners.length;){var a=this.registeredListeners.pop();this.eventManager.removeEventListener(a[0],a[1],a[2])}},onTableScroll:function(a){if(!p()){var b=this.leftOverlay.mainTableScrollableElement,c=this.topOverlay.mainTableScrollableElement,d=a.target;this.keyPressed&&(c!==window&&d!==window&&!a.target.contains(c)||b!==window&&d!==window&&!a.target.contains(b))||("scroll"===a.type?this.syncScrollPositions(a):this.translateMouseWheelToScroll(a))}},onKeyDown:function(a){this.keyPressed=o(a.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")},onKeyUp:function(){this.keyPressed=!1},translateMouseWheelToScroll:function(a){var b,c=this.topOverlay.clone.wtTable.holder,d=this.bottomOverlay.clone?this.bottomOverlay.clone.wtTable.holder:null,e=this.leftOverlay.clone.wtTable.holder,f={type:"wheel"},g=a.target,h=a.wheelDeltaY||-1*a.deltaY,i=a.wheelDeltaX||-1*a.deltaX;for(1===a.deltaMode&&(h=120*h,i=120*i);g!=document&&null!=g;){if(g.className.indexOf("wtHolder")>-1){b=g;break}g=g.parentNode}return f.target=b,b==c?this.syncScrollPositions(f,-.2*h):b==d?this.syncScrollPositions(f,-.2*h):b==e&&this.syncScrollPositions(f,-.2*i),!1},syncScrollPositions:function(a){var b=void 0!==arguments[1]?arguments[1]:null;if(!this.destroyed){if(0===arguments.length)return void this.syncScrollWithMaster();var c,d,e,f=this.leftOverlay.mainTableScrollableElement,g=this.topOverlay.mainTableScrollableElement,h=a.target,i=0,j=!1,k=!1,n=this.wot.getSetting("preventOverflow");this.topOverlay.needFullRender&&(c=this.topOverlay.clone.wtTable.holder),this.bottomOverlay.needFullRender&&(e=this.bottomOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&(d=this.leftOverlay.clone.wtTable.holder),h===document&&(h=window),h===f||h===g?(i=l(n?this.scrollableElement:h),this.horizontalScrolling=!0,this.overlayScrollPositions.master.left=i,j=!0,this.pendingScrollCallbacks.master.left>0?this.pendingScrollCallbacks.master.left--:(c&&c.scrollLeft!==i&&(null==b&&this.pendingScrollCallbacks.top.left++,c.scrollLeft=i,k=f!==window),e&&e.scrollLeft!==i&&(null==b&&this.pendingScrollCallbacks.bottom.left++,e.scrollLeft=i,k=f!==window)),i=m(h),this.verticalScrolling=!0,this.overlayScrollPositions.master.top=i,j=!0,this.pendingScrollCallbacks.master.top>0?this.pendingScrollCallbacks.master.top--:d&&d.scrollTop!==i&&(null==b&&this.pendingScrollCallbacks.left.top++,d.scrollTop=i,k=g!==window)):h===e?(i=l(h),this.horizontalScrolling=!0,this.overlayScrollPositions.bottom.left=i,j=!0,this.pendingScrollCallbacks.bottom.left>0?this.pendingScrollCallbacks.bottom.left--:(null==b&&this.pendingScrollCallbacks.master.left++,f.scrollLeft=i,c&&c.scrollLeft!==i&&(null==b&&this.pendingScrollCallbacks.top.left++,c.scrollLeft=i,k=g!==window)),null!==b&&(j=!0,g.scrollTop+=b)):h===c?(i=l(h),this.horizontalScrolling=!0,this.overlayScrollPositions.top.left=i,j=!0,this.pendingScrollCallbacks.top.left>0?this.pendingScrollCallbacks.top.left--:(null==b&&this.pendingScrollCallbacks.master.left++,f.scrollLeft=i),null!==b&&(j=!0,g.scrollTop+=b),e&&e.scrollLeft!==i&&(null==b&&this.pendingScrollCallbacks.bottom.left++,e.scrollLeft=i,k=g!==window)):h===d&&(i=m(h),this.overlayScrollPositions.left.top!==i&&(this.verticalScrolling=!0,this.overlayScrollPositions.left.top=i,j=!0,this.pendingScrollCallbacks.left.top>0?this.pendingScrollCallbacks.left.top--:(null==b&&this.pendingScrollCallbacks.master.top++,g.scrollTop=i)),null!==b&&(j=!0,g.scrollLeft+=b)),!this.keyPressed&&j&&"scroll"===a.type&&(this.delegatedScrollCallback?this.delegatedScrollCallback=!1:this.refreshAll(),k&&(this.delegatedScrollCallback=!0))}},syncScrollWithMaster:function(){var a=this.topOverlay.mainTableScrollableElement;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=a.scrollLeft),this.leftOverlay.needFullRender&&(this.leftOverlay.clone.wtTable.holder.scrollTop=a.scrollTop)},updateMainScrollableElements:function(){this.deregisterListeners(),this.leftOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement(),this.scrollableElement=j(this.wot.wtTable.TABLE),this.registerListeners()},destroy: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},refresh:function(){var a=void 0!==arguments[0]?arguments[0]:!1;if(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted){ 18var b=this.wot.wtTable.wtRootElement.parentNode||this.wot.wtTable.wtRootElement,c=b.clientWidth,d=b.clientHeight;(c!==this.spreaderLastSize.width||d!==this.spreaderLastSize.height)&&(this.spreaderLastSize.width=c,this.spreaderLastSize.height=d,this.adjustElementsSize())}this.bottomOverlay.clone&&this.bottomOverlay.refresh(a),this.leftOverlay.refresh(a),this.topOverlay.refresh(a),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.refresh(a),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.refresh(a),this.debug&&this.debug.refresh(a)},adjustElementsSize:function(){var a=void 0!==arguments[0]?arguments[0]:!1,b=this.wot.getSetting("totalColumns"),c=this.wot.getSetting("totalRows"),d=this.wot.wtViewport.getRowHeaderWidth(),e=this.wot.wtViewport.getColumnHeaderHeight(),f=this.wot.wtTable.hider.style;f.width=d+this.leftOverlay.sumCellSizes(0,b)+"px",f.height=e+this.topOverlay.sumCellSizes(0,c)+1+"px",this.topOverlay.adjustElementsSize(a),this.leftOverlay.adjustElementsSize(a),this.bottomOverlay.clone&&this.bottomOverlay.adjustElementsSize(a)},applyToDOM:function(){this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted||this.adjustElementsSize(),this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.leftOverlay.applyToDOM()}
18,getParentOverlay:function(a){if(!a)return null;var b=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay],c=null;return n(b,function(b){b&&b.clone&&b.clone.wtTable.TABLE.contains(a)&&(c=b.clone)}),c}},{}),window.WalkontableOverlays=r},{eventManager:41,"helpers/array":42,"helpers/browser":43,"helpers/dom/element":46,"helpers/unicode":55}],17:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableScroll:{get:function(){return o}},__esModule:{value:!0}});var d,e,f=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),g=f.innerHeight,h=f.innerWidth,i=f.getScrollLeft,j=f.getScrollTop,k=f.offset,l=(e=a("helpers/number"),e&&e.__esModule&&e||{"default":e}),m=l.rangeEach,n=l.rangeEachReverse,o=function(a){this.wot=a,this.instance=a};$traceurRuntime.createClass(o,{scrollViewport:function(a){if(this.wot.drawn){var b=this._getVariables(),c=b.topOverlay,d=b.leftOverlay,e=b.totalRows,f=b.totalColumns,g=b.fixedRowsTop,h=b.fixedRowsBottom,i=b.fixedColumnsLeft;if(a.row<0||a.row>Math.max(e-1,0))throw new Error("row "+a.row+" does not exist");if(a.col<0||a.col>Math.max(f-1,0))throw new Error("column "+a.col+" does not exist");a.row>=g&&a.row<this.getFirstVisibleRow()?c.scrollTo(a.row):a.row>this.getLastVisibleRow()&&a.row<e-h&&c.scrollTo(a.row,!0),a.col>=i&&a.col<this.getFirstVisibleColumn()?d.scrollTo(a.col):a.col>this.getLastVisibleColumn()&&d.scrollTo(a.col,!0)}},getFirstVisibleRow:function(){var a=this._getVariables(),b=a.topOverlay,c=a.wtTable,d=a.wtViewport,e=a.totalRows,f=a.fixedRowsTop,h=c.getFirstVisibleRow();if(b.mainTableScrollableElement===window){var i=k(c.wtRootElement),l=g(c.hider),m=g(window),o=j(window);if(i.top+l-m<=o){var p=d.getColumnHeaderHeight();p+=b.sumCellSizes(0,f),n(e,1,function(a){return p+=b.sumCellSizes(a-1,a),i.top+l-p<=o?(h=a,!1):void 0})}}return h},getLastVisibleRow:function(){var a=this._getVariables(),b=a.topOverlay,c=a.wtTable,d=a.wtViewport,e=a.totalRows,f=c.getLastVisibleRow();if(b.mainTableScrollableElement===window){var h=k(c.wtRootElement),i=g(window),l=j(window);if(h.top>l){var n=d.getColumnHeaderHeight();m(1,e,function(a){return n+=b.sumCellSizes(a-1,a),h.top+n-l>=i?(f=a-2,!1):void 0})}}return f},getFirstVisibleColumn:function(){var a=this._getVariables(),b=a.leftOverlay,c=a.wtTable,d=a.wtViewport,e=a.totalColumns,f=(a.fixedColumnsLeft,c.getFirstVisibleColumn());if(b.mainTableScrollableElement===window){var g=k(c.wtRootElement),j=h(c.hider),l=h(window),m=i(window);if(g.left+j-l<=m){var o=d.getRowHeaderWidth();n(e,1,function(a){return o+=b.sumCellSizes(a-1,a),g.left+j-o<=m?(f=a,!1):void 0})}}return f},getLastVisibleColumn:function(){var a=this._getVariables(),b=a.leftOverlay,c=a.wtTable,d=a.wtViewport,e=a.totalColumns,f=c.getLastVisibleColumn();if(b.mainTableScrollableElement===window){var g=k(c.wtRootElement),j=h(window),l=i(window);if(g.left>l){var n=d.getRowHeaderWidth();m(1,e,function(a){return n+=b.sumCellSizes(a-1,a),g.left+n-l>=j?(f=a-2,!1):void 0})}}return f},_getVariables:function(){var a=this.wot,b=a.wtOverlays.topOverlay,c=a.wtOverlays.leftOverlay,d=a.wtTable,e=a.wtViewport,f=a.getSetting("totalRows"),g=a.getSetting("totalColumns"),h=a.getSetting("fixedRowsTop"),i=a.getSetting("fixedRowsBottom"),j=a.getSetting("fixedColumnsLeft");return{topOverlay:b,leftOverlay:c,wtTable:d,wtViewport:e,totalRows:f,totalColumns:g,fixedRowsTop:h,fixedRowsBottom:i,fixedColumnsLeft:j}}},{}),window.WalkontableScroll=o},{"helpers/dom/element":46,"helpers/number":51}],18:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableSelection:{get:function(){return l}},__esModule:{value:!0}});var d,e,f,g,h=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}).addClass,i=(e=a("border"),e&&e.__esModule&&e||{"default":e}).WalkontableBorder,j=(f=a("cell/coords"),f&&f.__esModule&&f||{"default":f}).WalkontableCellCoords,k=(g=a("cell/range"),g&&g.__esModule&&g||{"default":g}).WalkontableCellRange,l=function(a,b){this.settings=a,this.cellRange=b||null,this.instanceBorders={}};$traceurRuntime.createClass(l,{getBorder:function(a){return this.instanceBorders[a.guid]?this.instanceBorders[a.guid]:void(this.instanceBorders[a.guid]=new i(a,this.settings))},isEmpty:function(){return null===this.cellRange},add:function(a){this.isEmpty()?this.cellRange=new k(a,a,a):this.cellRange.expand(a)},replace:function(a,b){if(!this.isEmpty()){if(this.cellRange.from.isEqual(a))return this.cellRange.from=b,!0;if(this.cellRange.to.isEqual(a))return this.cellRange.to=b,!0}return!1},clear:function(){this.cellRange=null},getCorners:function(){var a=this.cellRange.getTopLeftCorner(),b=this.cellRange.getBottomRightCorner();return[a.row,a.col,b.row,b.col]},addClassAtCoords:function(a,b,c,d){var e=a.wtTable.getCell(new j(b,c));"object"==typeof e&&h(e,d)}
18,draw:function(a){if(this.isEmpty()){if(this.settings.border){var b=this.getBorder(a);b&&b.disappear()}}else{for(var c,d,e,f=a.wtTable.getRenderedRowsCount(),g=a.wtTable.getRenderedColumnsCount(),i=this.getCorners(),j=0;g>j;j++)d=a.wtTable.columnFilter.renderedToSource(j),d>=i[1]&&d<=i[3]&&(e=a.wtTable.getColumnHeader(d),e&&this.settings.highlightColumnClassName&&h(e,this.settings.highlightColumnClassName));for(var k=0;f>k;k++){c=a.wtTable.rowFilter.renderedToSource(k),c>=i[0]&&c<=i[2]&&(e=a.wtTable.getRowHeader(c),e&&this.settings.highlightRowClassName&&h(e,this.settings.highlightRowClassName));for(var l=0;g>l;l++)d=a.wtTable.columnFilter.renderedToSource(l),c>=i[0]&&c<=i[2]&&d>=i[1]&&d<=i[3]?this.settings.className&&this.addClassAtCoords(a,c,d,this.settings.className):c>=i[0]&&c<=i[2]?this.settings.highlightRowClassName&&this.addClassAtCoords(a,c,d,this.settings.highlightRowClassName):d>=i[1]&&d<=i[3]&&this.settings.highlightColumnClassName&&this.addClassAtCoords(a,c,d,this.settings.highlightColumnClassName)}if(a.getSetting("onBeforeDrawBorders",i,this.settings.className),this.settings.border){var m=this.getBorder(a);m&&m.appear(i)}}}},{}),window.WalkontableSelection=l},{border:2,"cell/coords":5,"cell/range":6,"helpers/dom/element":46}],19:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableSettings:{get:function(){return f}},__esModule:{value:!0}});var d,e=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}).fastInnerText,f=function(a,b){var c=this;this.wot=a,this.instance=a,this.defaults={table:void 0,debug:!1,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},data:void 0,fixedColumnsLeft:0,fixedRowsTop:0,fixedRowsBottom:0,minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(a,b,d){var f=c.getSetting("data",a,b);e(d,void 0===f||null===f?"":f)},columnWidth:function(){},rowHeight:function(){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellMouseOver:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(a){return a},scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null},this.settings={};for(var d in this.defaults)if(this.defaults.hasOwnProperty(d))if(void 0!==b[d])this.settings[d]=b[d];else{if(void 0===this.defaults[d])throw new Error('A required setting "'+d+'" was not provided');this.settings[d]=this.defaults[d]}};$traceurRuntime.createClass(f,{update:function(a,b){if(void 0===b)for(var c in a)a.hasOwnProperty(c)&&(this.settings[c]=a[c]);else this.settings[a]=b;return this.wot},getSetting:function(a,b,c,d,e){return"function"==typeof this.settings[a]?this.settings[a](b,c,d,e):void 0!==b&&Array.isArray(this.settings[a])?this.settings[a][b]:this.settings[a]},has:function(a){return!!this.settings[a]}},{}),window.WalkontableSettings=f},{"helpers/dom/element":46}],20:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableTable:{get:function(){return x}},__esModule:{value:!0}});var d,e,f,g,h,i,j=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),k=j.getStyle,l=j.getTrimmingContainer,m=j.hasClass,n=j.index,o=j.offset,p=j.removeClass,q=j.removeTextNodes,r=j.overlayContainsElement,s=j.closest,t=(e=a("cell/coords"),e&&e.__esModule&&e||{"default":e}).WalkontableCellCoords,u=((f=a("cell/range"),f&&f.__esModule&&f||{"default":f}).WalkontableCellRange,(g=a("filter/column"),g&&g.__esModule&&g||{"default":g}).WalkontableColumnFilter),v=(h=a("filter/row"),h&&h.__esModule&&h||{"default":h}).WalkontableRowFilter,w=(i=a("tableRenderer"),i&&i.__esModule&&i||{"default":i}).WalkontableTableRenderer,x=function(a,b){this.wot=a,this.instance=this.wot,this.TABLE=b,this.TBODY=null,this.THEAD=null,this.COLGROUP=null,this.tableOffset=0,this.holderOffset=0,q(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};$traceurRuntime.createClass(x,{fixTableDomTree: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"))},createSpreader:function(a){var b,c=a.parentNode;return c&&1===c.nodeType&&m(c,"wtHolder")||(b=document.createElement("div"),b.className="wtSpreader",c&&c.insertBefore(b,a),b.appendChild(a)),b.style.position="relative",b},createHider:function(a){var b,c=a.parentNode;return c&&1===c.nodeType&&m(c,"wtHolder")||(b=document.createElement("div"),b.className="wtHider",c&&c.insertBefore(b,a),b.appendChild(a)),b},createHolder:function(a){var b,c=a.parentNode;return c&&1===c.nodeType&&m(c,"wtHolder")||(b=document.createElement("div"),b.style.position="relative",b.className="wtHolder",c&&c.insertBefore(b,a),this.isWorkingOnClone()||(b.parentNode.className+="ht_master handsontable"),b.appendChild(a)),b},alignOverlaysWithTrimmingContainer:function(){var a=l(this.wtRootElement);if(!this.isWorkingOnClone())if(this.holder.parentNode.style.position="relative",a===window){var b=this.wot.getSetting("preventOverflow");b||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else this.holder.style.width=k(a,"width"),this.holder.style.height=k(a,"height"),this.holder.style.overflow=""},isWorkingOnClone:function(){return!!this.wot.cloneSource},draw:function(a){var b=this.instance.getSetting("totalRows");if(this.isWorkingOnClone()||(this.holderOffset=o(this.holder),a=this.wot.wtViewport.createRenderCalculators(a)),a)this.isWorkingOnClone()||this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays&&this.wot.wtOverlays.refresh(!0);else{this.tableOffset=this.isWorkingOnClone()?this.wot.cloneSource.wtTable.tableOffset:o(this.TABLE);var c;c=WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_DEBUG)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_TOP)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_TOP_LEFT_CORNER)?0:WalkontableOverlay.isOverlayTypeOf(this.instance.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM)||WalkontableOverlay.isOverlayTypeOf(this.instance.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER)?Math.max(b-this.wot.getSetting("fixedRowsBottom"),0):this.wot.wtViewport.rowsRenderCalculator.startRow;var d;d=WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_DEBUG)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_LEFT)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_TOP_LEFT_CORNER)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER)?0:this.wot.wtViewport.columnsRenderCalculator.startColumn,this.rowFilter=new v(c,b,this.wot.getSetting("columnHeaders").length),this.columnFilter=new u(d,this.wot.getSetting("totalColumns"),this.wot.getSetting("rowHeaders").length),this.alignOverlaysWithTrimmingContainer(),this._doDraw()}return this.refreshSelections(a),this.isWorkingOnClone()||(this.wot.wtOverlays.topOverlay.resetFixedPosition(),this.wot.wtOverlays.bottomOverlay.clone&&this.wot.wtOverlays.bottomOverlay.resetFixedPosition(),this.wot.wtOverlays.leftOverlay.resetFixedPosition(),this.wot.wtOverlays.topLeftCornerOverlay&&this.wot.wtOverlays.topLeftCornerOverlay.resetFixedPosition(),this.instance.wtOverlays.bottomLeftCornerOverlay&&this.instance.wtOverlays.bottomLeftCornerOverlay.clone&&this.wot.wtOverlays.bottomLeftCornerOverlay.resetFixedPosition()),this.wot.drawn=!0,this},_doDraw:function(){var a=new w(this);a.render()},removeClassFromCells:function(a){for(var b=this.TABLE.querySelectorAll("."+a),c=0,d=b.length;d>c;c++)p(b[c],a)}
18,refreshSelections:function(a){if(this.wot.selections){var b=this.wot.selections.length;if(a)for(var c=0;b>c;c++)this.wot.selections[c].settings.className&&this.removeClassFromCells(this.wot.selections[c].settings.className),this.wot.selections[c].settings.highlightRowClassName&&this.removeClassFromCells(this.wot.selections[c].settings.highlightRowClassName),this.wot.selections[c].settings.highlightColumnClassName&&this.removeClassFromCells(this.wot.selections[c].settings.highlightColumnClassName);for(var d=0;b>d;d++)this.wot.selections[d].draw(this.wot,a)}},getCell:function(a){if(this.isRowBeforeRenderedRows(a.row))return-1;if(this.isRowAfterRenderedRows(a.row))return-2;var b=this.TBODY.childNodes[this.rowFilter.sourceToRendered(a.row)];return b?b.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(a.col)]:void 0},getColumnHeader:function(a){var b=void 0!==arguments[1]?arguments[1]:0,c=this.THEAD.childNodes[b];return c?c.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(a)]:void 0},getRowHeader:function(a){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var b=this.TBODY.childNodes[this.rowFilter.sourceToRendered(a)];return b?b.childNodes[0]:void 0},getCoords:function(a){"TD"!==a.nodeName&&"TH"!==a.nodeName&&(a=s(a,["TD","TH"]));var b=a.parentNode,c=b.parentNode,d=n(b),e=a.cellIndex;return r(WalkontableOverlay.CLONE_TOP_LEFT_CORNER,a)||r(WalkontableOverlay.CLONE_TOP,a)?"THEAD"===c.nodeName&&(d-=c.childNodes.length):d=c===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(d):this.rowFilter.renderedToSource(d),e=r(WalkontableOverlay.CLONE_TOP_LEFT_CORNER,a)||r(WalkontableOverlay.CLONE_LEFT,a)?this.columnFilter.offsettedTH(e):this.columnFilter.visibleRowHeadedColumnToSourceColumn(e),new t(d,e)},getTrForRow:function(a){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(a)]},getFirstRenderedRow:function(){return this.wot.wtViewport.rowsRenderCalculator.startRow},getFirstVisibleRow:function(){return this.wot.wtViewport.rowsVisibleCalculator.startRow},getFirstRenderedColumn:function(){return this.wot.wtViewport.columnsRenderCalculator.startColumn},getFirstVisibleColumn:function(){return this.wot.wtViewport.columnsVisibleCalculator.startColumn},getLastRenderedRow:function(){return this.wot.wtViewport.rowsRenderCalculator.endRow},getLastVisibleRow:function(){return this.wot.wtViewport.rowsVisibleCalculator.endRow},getLastRenderedColumn:function(){return this.wot.wtViewport.columnsRenderCalculator.endColumn},getLastVisibleColumn:function(){return this.wot.wtViewport.columnsVisibleCalculator.endColumn},isRowBeforeRenderedRows:function(a){return this.rowFilter.sourceToRendered(a)<0&&a>=0},isRowAfterViewport:function(a){return this.rowFilter.sourceToRendered(a)>this.getLastVisibleRow()},isRowAfterRenderedRows:function(a){return this.rowFilter.sourceToRendered(a)>this.getLastRenderedRow()},isColumnBeforeViewport:function(a){return this.columnFilter.sourceToRendered(a)<0&&a>=0},isColumnAfterViewport:function(a){return this.columnFilter.sourceToRendered(a)>this.getLastVisibleColumn()},isLastRowFullyVisible:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()},isLastColumnFullyVisible:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()},getRenderedColumnsCount:function(){var a=this.wot.wtViewport.columnsRenderCalculator.count,b=this.wot.getSetting("totalColumns");if(this.wot.isOverlayName(WalkontableOverlay.CLONE_DEBUG))a=b;else if(this.wot.isOverlayName(WalkontableOverlay.CLONE_LEFT)||this.wot.isOverlayName(WalkontableOverlay.CLONE_TOP_LEFT_CORNER)||this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER))return Math.min(this.wot.getSetting("fixedColumnsLeft"),b);return a},getRenderedRowsCount:function(){var a=this.wot.wtViewport.rowsRenderCalculator.count,b=this.wot.getSetting("totalRows");return this.wot.isOverlayName(WalkontableOverlay.CLONE_DEBUG)?a=b:this.wot.isOverlayName(WalkontableOverlay.CLONE_TOP)||this.wot.isOverlayName(WalkontableOverlay.CLONE_TOP_LEFT_CORNER)?a=Math.min(this.wot.getSetting("fixedRowsTop"),b):(this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM)||this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER))&&(a=Math.min(this.wot.getSetting("fixedRowsBottom"),b)),a},getVisibleRowsCount:function(){return this.wot.wtViewport.rowsVisibleCalculator.count},allRowsInViewport:function(){return this.wot.getSetting("totalRows")==this.getVisibleRowsCount()},getRowHeight:function(a){var b=this.wot.wtSettings.settings.rowHeight(
18a),c=this.wot.wtViewport.oversizedRows[a];return void 0!==c&&(b=void 0===b?c:Math.max(b,c)),b},getColumnHeaderHeight:function(a){var b=this.wot.wtSettings.settings.defaultRowHeight,c=this.wot.wtViewport.oversizedColumnHeaders[a];return void 0!==c&&(b=b?Math.max(b,c):c),b},getVisibleColumnsCount:function(){return this.wot.wtViewport.columnsVisibleCalculator.count},allColumnsInViewport:function(){return this.wot.getSetting("totalColumns")==this.getVisibleColumnsCount()},getColumnWidth:function(a){var b=this.wot.wtSettings.settings.columnWidth;return"function"==typeof b?b=b(a):"object"==typeof b&&(b=b[a]),b||this.wot.wtSettings.settings.defaultColumnWidth},getStretchedColumnWidth:function(a){var b=this.getColumnWidth(a),c=null==b?this.instance.wtSettings.settings.defaultColumnWidth:b,d=this.wot.wtViewport.columnsRenderCalculator;if(d){var e=d.getStretchedColumnWidth(a,c);e&&(c=e)}return c}},{}),window.WalkontableTable=x},{"cell/coords":5,"cell/range":6,"filter/column":9,"filter/row":10,"helpers/dom/element":46,tableRenderer:21}],21:[function(a,b,c){"use strict";function d(a,b){var c=document.createElement("TH");return b.insertBefore(c,a),b.removeChild(a),c}function e(a,b){var c=document.createElement("TD");return b.insertBefore(c,a),b.removeChild(a),c}Object.defineProperties(c,{WalkontableTableRenderer:{get:function(){return o}},__esModule:{value:!0}});var f,g=(f=a("helpers/dom/element"),f&&f.__esModule&&f||{"default":f}),h=g.addClass,i=g.empty,j=g.getScrollbarWidth,k=g.hasClass,l=g.innerHeight,m=g.outerWidth,n=!1,o=function(a){this.wtTable=a,this.wot=a.instance,this.instance=a.instance,this.rowFilter=a.rowFilter,this.columnFilter=a.columnFilter,this.TABLE=a.TABLE,this.THEAD=a.THEAD,this.TBODY=a.TBODY,this.COLGROUP=a.COLGROUP,this.rowHeaders=[],this.rowHeaderCount=0,this.columnHeaders=[],this.columnHeaderCount=0,this.fixedRowsTop=0,this.fixedRowsBottom=0};$traceurRuntime.createClass(o,{render:function(){this.wtTable.isWorkingOnClone()||this.wot.getSetting("beforeDraw",!0),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 a,b=this.wtTable.getRenderedColumnsCount(),c=this.wtTable.getRenderedRowsCount(),d=this.wot.getSetting("totalColumns"),e=this.wot.getSetting("totalRows"),f=!1;if((WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER))&&(this.columnHeaders=[],this.columnHeaderCount=0),d>=0&&(this.adjustAvailableNodes(),f=!0,this.renderColumnHeaders(),this.renderRows(e,c,b),this.wtTable.isWorkingOnClone()||(a=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null),this.adjustColumnWidths(b),this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights()),f||this.adjustAvailableNodes(),this.removeRedundantRows(c),(!this.wtTable.isWorkingOnClone()||this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM))&&this.markOversizedRows(),this.wtTable.isWorkingOnClone())this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize();else{this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1);var g=m(this.wtTable.hider),h=m(this.wtTable.TABLE);if(0!==g&&h!==g&&this.adjustColumnWidths(b),this.wot.wtOverlays.applyToDOM(),a!==this.wot.wtViewport.getWorkspaceWidth()){this.wot.wtViewport.containerWidth=null;var i=this.wtTable.getFirstRenderedColumn(),j=this.wtTable.getLastRenderedColumn(),k=this.wot.getSetting("rowHeaderWidth");if(null!=k)for(var l=0;l<this.rowHeaderCount;l++)this.COLGROUP.childNodes[l].style.width=(isNaN(k)?k[l]:k)+"px";for(var n=i;j>n;n++){var o=this.wtTable.getStretchedColumnWidth(n),p=this.columnFilter.sourceToRendered(n);this.COLGROUP.childNodes[p+this.rowHeaderCount].style.width=o+"px"}}this.wot.getSetting("onDraw",!0)}},removeRedundantRows:function(a){for(;this.wtTable.tbodyChildrenLength>a;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--},renderRows:function(a,b,c){for(var d,e,f=0,g=this.rowFilter.renderedToSource(f),h=this.wtTable.isWorkingOnClone();a>g&&g>=0&&(!n&&f>1e3&&(n=!0,console.warn('Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.')),void 0===b||f!==b);){if(e=this.getOrCreateTrForRow(f,e),this.renderRowHeaders(g,e),this.adjustColumns(e,c+this.rowHeaderCount),d=this.renderCells(g,e,c),(!h||this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM))&&this.resetOversizedRow(g),e.firstChild){var i=this.wot.wtTable.getRowHeight(g);i?(i--,e.firstChild.style.height=i+"px"):e.firstChild.style.height=""}f++,g=this.rowFilter.renderedToSource(f)}},resetOversizedRow:function(a){this.wot.getSetting("externalRowCalculator")||this.wot.wtViewport.oversizedRows&&this.wot.wtViewport.oversizedRows[a]&&(this.wot.wtViewport.oversizedRows[a]=void 0)},markOversizedRows:function(){if(!this.wot.getSetting("externalRowCalculator")){{var a,b,c,d,e,f=this.instance.wtTable.TBODY.childNodes.length,g=f*this.instance.wtSettings.settings.defaultRowHeight,h=l(this.instance.wtTable.TBODY)-1;this.instance.getSetting("totalRows")}if(g!==h||this.instance.getSetting("fixedRowsBottom"))for(;f;)f--,c=this.instance.wtTable.rowFilter.renderedToSource(f),a=this.instance.wtTable.getRowHeight(c),d=this.instance.wtTable.getTrForRow(c),e=d.querySelector("th"),b=e?l(e):l(d)-1,(!a&&this.instance.wtSettings.settings.defaultRowHeight<b||b>a)&&(this.instance.wtViewport.oversizedRows[c]=++b)}},markOversizedColumnHeaders:function(){var a=this.wot.getOverlayName();if(this.columnHeaderCount&&!this.wot.wtViewport.hasOversizedColumnHeadersMarked[a]&&!this.wtTable.isWorkingOnClone()){for(var b=this.wtTable.getRenderedColumnsCount(),c=0;c<this.columnHeaderCount;c++)for(var d=-1*this.rowHeaderCount;b>d;d++)this.markIfOversizedColumnHeader(d);this.wot.wtViewport.hasOversizedColumnHeadersMarked[a]=!0}},adjustColumnHeaderHeights:function(){for(var a=this.wot.getSetting("columnHeaders"),b=this.wot.wtTable.THEAD.childNodes,c=this.wot.wtViewport.oversizedColumnHeaders,d=0,e=a.length;e>d;d++)if(c[d]){if(0===b[d].childNodes.length)return;b[d].childNodes[0].style.height=c[d]+"px"}},markIfOversizedColumnHeader:function(a){for(var b,c,d,e=this.wot.wtTable.columnFilter.renderedToSource(a),f=this.columnHeaderCount,g=this.wot.wtSettings.settings.defaultRowHeight,h=this.wot.getSetting("columnHeaderHeight")||[];f;)f--,b=this.wot.wtTable.getColumnHeaderHeight(f),c=this.wot.wtTable.getColumnHeader(e,f),c&&(d=l(c),(!b&&d>g||d>b)&&(this.wot.wtViewport.oversizedColumnHeaders[f]=d),Array.isArray(h)?null!=h[f]&&(this.wot.wtViewport.oversizedColumnHeaders[f]=h[f]):isNaN(h)||(this.wot.wtViewport.oversizedColumnHeaders[f]=h),this.wot.wtViewport.oversizedColumnHeaders[f]<(h[f]||h)&&(this.wot.wtViewport.oversizedColumnHeaders[f]=h[f]||h))},renderCells:function(a,b,c){for(var d,f,g=0;c>g;g++)f=this.columnFilter.renderedToSource(g),d=0===g?b.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(f)]:d.nextSibling,"TH"==d.nodeName&&(d=e(d,b)),k(d,"hide")||(d.className=""),d.removeAttribute("style"),this.wot.wtSettings.settings.cellRenderer(a,f,d);return d}
18,adjustColumnWidths:function(a){var b=0,c=this.wot.cloneSource?this.wot.cloneSource:this.wot,d=c.wtTable.holder;d.offsetHeight<d.scrollHeight&&(b=j()),this.wot.wtViewport.columnsRenderCalculator.refreshStretching(this.wot.wtViewport.getViewportWidth()-b);var e=this.wot.getSetting("rowHeaderWidth");if(null!=e)for(var f=0;f<this.rowHeaderCount;f++)this.COLGROUP.childNodes[f].style.width=(isNaN(e)?e[f]:e)+"px";for(var g=0;a>g;g++){var h=this.wtTable.getStretchedColumnWidth(this.columnFilter.renderedToSource(g));this.COLGROUP.childNodes[g+this.rowHeaderCount].style.width=h+"px"}},appendToTbody:function(a){this.TBODY.appendChild(a),this.wtTable.tbodyChildrenLength++},getOrCreateTrForRow:function(a,b){var c;return a>=this.wtTable.tbodyChildrenLength?(c=this.createRow(),this.appendToTbody(c)):c=0===a?this.TBODY.firstChild:b.nextSibling,c.className&&c.removeAttribute("class"),c},createRow:function(){for(var a=document.createElement("TR"),b=0;b<this.rowHeaderCount;b++)a.appendChild(document.createElement("TH"));return a},renderRowHeader:function(a,b,c){c.className="",c.removeAttribute("style"),this.rowHeaders[b](a,c,b)},renderRowHeaders:function(a,b){for(var c=b.firstChild,e=0;e<this.rowHeaderCount;e++)c?"TD"==c.nodeName&&(c=d(c,b)):(c=document.createElement("TH"),b.appendChild(c)),this.renderRowHeader(a,e,c),c=c.nextSibling},adjustAvailableNodes:function(){this.adjustColGroups(),this.adjustThead()},renderColumnHeaders:function(){if(this.columnHeaderCount)for(var a=this.wtTable.getRenderedColumnsCount(),b=0;b<this.columnHeaderCount;b++)for(var c=this.getTrForColumnHeaders(b),d=-1*this.rowHeaderCount;a>d;d++){var e=this.columnFilter.renderedToSource(d);this.renderColumnHeader(b,e,c.childNodes[d+this.rowHeaderCount])}},adjustColGroups:function(){for(var a=this.wtTable.getRenderedColumnsCount();this.wtTable.colgroupChildrenLength<a+this.rowHeaderCount;)this.COLGROUP.appendChild(document.createElement("COL")),this.wtTable.colgroupChildrenLength++;for(;this.wtTable.colgroupChildrenLength>a+this.rowHeaderCount;)this.COLGROUP.removeChild(this.COLGROUP.lastChild),this.wtTable.colgroupChildrenLength--;this.rowHeaderCount&&h(this.COLGROUP.childNodes[0],"rowHeader")},adjustThead:function(){var a=this.wtTable.getRenderedColumnsCount(),b=this.THEAD.firstChild;if(this.columnHeaders.length){for(var c=0,d=this.columnHeaders.length;d>c;c++){for(b=this.THEAD.childNodes[c],b||(b=document.createElement("TR"),this.THEAD.appendChild(b)),this.theadChildrenLength=b.childNodes.length;this.theadChildrenLength<a+this.rowHeaderCount;)b.appendChild(document.createElement("TH")),this.theadChildrenLength++;for(;this.theadChildrenLength>a+this.rowHeaderCount;)b.removeChild(b.lastChild),this.theadChildrenLength--}var e=this.THEAD.childNodes.length;if(e>this.columnHeaders.length)for(var f=this.columnHeaders.length;e>f;f++)this.THEAD.removeChild(this.THEAD.lastChild)}else b&&i(b)},getTrForColumnHeaders:function(a){return this.THEAD.childNodes[a]},renderColumnHeader:function(a,b,c){return c.className="",c.removeAttribute("style"),this.columnHeaders[a](b,c,a)},adjustColumns:function(a,b){for(var c=a.childNodes.length;b>c;){var d=document.createElement("TD");a.appendChild(d),c++}for(;c>b;)a.removeChild(a.lastChild),c--},removeRedundantColumns:function(a){for(;this.wtTable.tbodyChildrenLength>a;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--}},{}),window.WalkontableTableRenderer=o},{"helpers/dom/element":46}],22:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableViewport:{get:function(){return s}},__esModule:{value:!0}});var d,e,f,g,h,i=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],j=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),k=j.getScrollbarWidth,l=(j.getScrollTop,j.getStyle),m=j.offset,n=j.outerHeight,o=j.outerWidth,p=(f=a("eventManager"),f&&f.__esModule&&f||{"default":f}).EventManager,q=(g=a("calculator/viewportColumns"),g&&g.__esModule&&g||{"default":g}).WalkontableViewportColumnsCalculator,r=(h=a("calculator/viewportRows"),h&&h.__esModule&&h||{"default":h}).WalkontableViewportRowsCalculator,s=function(a){var b=this;this.wot=a,this.instance=this.wot,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=0/0,this.rowHeaderWidth=0/0,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=new p(this.wot),this.eventManager.addEventListener(window,"resize",function(){b.clientHeight=b.getWorkspaceHeight()})};$traceurRuntime.createClass(s,{getWorkspaceHeight:function(){var a,b=this.instance.wtOverlays.topOverlay.trimmingContainer,c=0;return b===window?c=document.documentElement.clientHeight:(a=n(b),c=a>0&&b.clientHeight>0?b.clientHeight:1/0),c},getWorkspaceWidth:function(){var a,b,c=this.wot.getSetting("totalColumns"),d=this.instance.wtOverlays.leftOverlay.trimmingContainer,e=this.wot.getSetting("stretchH"),f=document.documentElement.offsetWidth,g=this.wot.getSetting("preventOverflow"); 19 20return g?o(this.instance.wtTable.wtRootElement):(a=i.freezeOverlays?Math.min(f-this.getWorkspaceOffset().left,f):Math.min(this.getContainerFillWidth(),f-this.getWorkspaceOffset().left,f),d===window&&c>0&&this.sumColumnWidths(0,c-1)>a?document.documentElement.clientWidth:d!==window&&(b=l(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow"),"scroll"==b||"hidden"==b||"auto"==b)?Math.max(a,d.clientWidth):"none"!==e&&e?a:Math.max(a,o(this.instance.wtTable.TABLE)))},hasVerticalScroll:function(){return this.getWorkspaceActualHeight()>this.getWorkspaceHeight()},hasHorizontalScroll:function(){return this.getWorkspaceActualWidth()>this.getWorkspaceWidth()},sumColumnWidths:function(a,b){for(var c=0;b>a;)c+=this.wot.wtTable.getColumnWidth(a),a++;return c},getContainerFillWidth:function(){if(this.containerWidth)return this.containerWidth;var a,b,c=this.instance.wtTable.holder;return b=document.createElement("div"),b.style.width="100%",b.style.height="1px",c.appendChild(b),a=b.offsetWidth,this.containerWidth=a,c.removeChild(b),a},getWorkspaceOffset:function(){return m(this.wot.wtTable.TABLE)},getWorkspaceActualHeight:function(){return n(this.wot.wtTable.TABLE)},getWorkspaceActualWidth:function(){return o(this.wot.wtTable.TABLE)||o(this.wot.wtTable.TBODY)||o(this.wot.wtTable.THEAD)},getColumnHeaderHeight:function(){return isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=n(this.wot.wtTable.THEAD)),this.columnHeaderHeight}
20,getViewportHeight:function(){var a,b=this.getWorkspaceHeight();return b===1/0?b:(a=this.getColumnHeaderHeight(),a>0&&(b-=a),b)},getRowHeaderWidth:function(){var a=this.instance.getSetting("rowHeaderWidth"),b=this.instance.getSetting("rowHeaders");if(a){this.rowHeaderWidth=0;for(var c=0,d=b.length;d>c;c++)this.rowHeaderWidth+=a[c]||a}if(this.wot.cloneSource)return this.wot.cloneSource.wtViewport.getRowHeaderWidth();if(isNaN(this.rowHeaderWidth))if(b.length){var e=this.instance.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var f=0,g=b.length;g>f;f++)e?(this.rowHeaderWidth+=o(e),e=e.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth},getViewportWidth:function(){var a,b=this.getWorkspaceWidth();return b===1/0?b:(a=this.getRowHeaderWidth(),a>0?b-a:b)},createRowsCalculator:function(){var a,b,c,d,e,f,g,h=void 0!==arguments[0]?arguments[0]:!1,i=this;return this.rowHeaderWidth=0/0,a=this.wot.wtSettings.settings.renderAllRows?1/0:this.getViewportHeight(),b=this.wot.wtOverlays.topOverlay.getScrollPosition()-this.wot.wtOverlays.topOverlay.getTableParentOffset(),0>b&&(b=0),c=this.wot.getSetting("fixedRowsTop"),e=this.wot.getSetting("fixedRowsBottom"),g=this.wot.getSetting("totalRows"),c&&(f=this.wot.wtOverlays.topOverlay.sumCellSizes(0,c),b+=f,a-=f),e&&this.wot.wtOverlays.bottomOverlay.clone&&(f=this.wot.wtOverlays.bottomOverlay.sumCellSizes(g-e,g),a-=f),d=this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight?0:k(),new r(a,b,this.wot.getSetting("totalRows"),function(a){return i.wot.wtTable.getRowHeight(a)},h?null:this.wot.wtSettings.settings.viewportRowCalculatorOverride,h,d)},createColumnsCalculator:function(){var a,b,c=void 0!==arguments[0]?arguments[0]:!1,d=this,e=this.getViewportWidth();if(this.columnHeaderHeight=0/0,a=this.wot.wtOverlays.leftOverlay.getScrollPosition()-this.wot.wtOverlays.leftOverlay.getTableParentOffset(),0>a&&(a=0),b=this.wot.getSetting("fixedColumnsLeft")){var f=this.wot.wtOverlays.leftOverlay.sumCellSizes(0,b);a+=f,e-=f}return this.wot.wtTable.holder.clientWidth!==this.wot.wtTable.holder.offsetWidth&&(e-=k()),new q(e,a,this.wot.getSetting("totalColumns"),function(a){return d.wot.wtTable.getColumnWidth(a)},c?null:this.wot.wtSettings.settings.viewportColumnCalculatorOverride,c,this.wot.getSetting("stretchH"),function(a,b){return d.wot.getSetting("onBeforeStretchingColumnWidth",a,b)})},createRenderCalculators:function(){var a=void 0!==arguments[0]?arguments[0]:!1;if(a){var b=this.createRowsCalculator(!0),c=this.createColumnsCalculator(!0);this.areAllProposedVisibleRowsAlreadyRendered(b)&&this.areAllProposedVisibleColumnsAlreadyRendered(c)||(a=!1)}return a||(this.rowsRenderCalculator=this.createRowsCalculator(),this.columnsRenderCalculator=this.createColumnsCalculator()),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,a},createVisibleCalculators:function(){this.rowsVisibleCalculator=this.createRowsCalculator(!0),this.columnsVisibleCalculator=this.createColumnsCalculator(!0)},areAllProposedVisibleRowsAlreadyRendered:function(a){return this.rowsVisibleCalculator?a.startRow<this.rowsRenderCalculator.startRow||a.startRow===this.rowsRenderCalculator.startRow&&a.startRow>0?!1:a.endRow>this.rowsRenderCalculator.endRow||a.endRow===this.rowsRenderCalculator.endRow&&a.endRow<this.wot.getSetting("totalRows")-1?!1:!0:!1},areAllProposedVisibleColumnsAlreadyRendered:function(a){return this.columnsVisibleCalculator?a.startColumn<this.columnsRenderCalculator.startColumn||a.startColumn===this.columnsRenderCalculator.startColumn&&a.startColumn>0?!1:a.endColumn>this.columnsRenderCalculator.endColumn||a.endColumn===this.columnsRenderCalculator.endColumn&&a.endColumn<this.wot.getSetting("totalColumns")-1?!1:!0:!1}},{}),window.WalkontableViewport=s},{browser:23,"calculator/viewportColumns":3,"calculator/viewportRows":4,eventManager:41,"helpers/dom/element":46}],23:[function(a,b){"use strict";function c(a,b){var d=new c.Core(a,b||{});return d.init(),d}var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A;b.exports=c,c.utils={},d=a("shims/runtime"),d&&d.__esModule&&d||{"default":d}
20,e=a("es6collections"),e&&e.__esModule&&e||{"default":e};var B=(f=a("pluginHooks"),f&&f.__esModule&&f||{"default":f}).Hooks,C=(g=a("numbro"),g&&g.__esModule&&g||{"default":g})["default"],D=(h=a("moment"),h&&h.__esModule&&h||{"default":h})["default"];"object"==typeof window&&("undefined"==typeof window.numbro&&(window.numbro=C),"undefined"==typeof window.moment&&(window.moment=D)),c.hooks||(c.hooks=new B),c.utils.Hooks=B,i=a("core"),i&&i.__esModule&&i||{"default":i},j=a("renderers/_cellDecorator"),j&&j.__esModule&&j||{"default":j},k=a("cellTypes"),k&&k.__esModule&&k||{"default":k},l=a("plugins/jqueryHandsontable"),l&&l.__esModule&&l||{"default":l};var E=(m=a("helpers/array"),m&&m.__esModule&&m||{"default":m}),F=(n=a("helpers/browser"),n&&n.__esModule&&n||{"default":n}),G=(o=a("helpers/data"),o&&o.__esModule&&o||{"default":o}),H=(p=a("helpers/date"),p&&p.__esModule&&p||{"default":p}),I=(q=a("helpers/feature"),q&&q.__esModule&&q||{"default":q}),J=(r=a("helpers/function"),r&&r.__esModule&&r||{"default":r}),K=(s=a("helpers/mixed"),s&&s.__esModule&&s||{"default":s}),L=(t=a("helpers/number"),t&&t.__esModule&&t||{"default":t}),M=(u=a("helpers/object"),u&&u.__esModule&&u||{"default":u}),N=(v=a("helpers/setting"),v&&v.__esModule&&v||{"default":v}),O=(w=a("helpers/string"),w&&w.__esModule&&w||{"default":w}),P=(x=a("helpers/unicode"),x&&x.__esModule&&x||{"default":x}),Q=(y=a("helpers/dom/element"),y&&y.__esModule&&y||{"default":y}),R=(z=a("helpers/dom/event"),z&&z.__esModule&&z||{"default":z}),S=[E,F,G,H,I,J,K,L,M,N,O,P],T=[Q,R];c.buildDate="Wed Jul 27 2016 12:03:17 GMT+0200 (CEST)",c.packageName="handsontable",c.version="0.26.1";var U="@@baseVersion";/^@@/.test(U)||(c.baseVersion=U),c.plugins={};var V=(A=a("plugins"),A&&A.__esModule&&A||{"default":A}).registerPlugin;c.plugins.registerPlugin=V,c.helper={},c.dom={},c.Dom=c.dom,E.arrayEach(S,function(a){E.arrayEach(Object.getOwnPropertyNames(a),function(b){"_"!==b.charAt(0)&&(c.helper[b]=a[b])})}),E.arrayEach(T,function(a){E.arrayEach(Object.getOwnPropertyNames(a),function(b){"_"!==b.charAt(0)&&(c.dom[b]=a[b])})})},{cellTypes:24,core:25,es6collections:"es6collections","helpers/array":42,"helpers/browser":43,"helpers/data":44,"helpers/date":45,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/feature":48,"helpers/function":49,"helpers/mixed":50,"helpers/number":51,"helpers/object":52,"helpers/setting":53,"helpers/string":54,"helpers/unicode":55,moment:void 0,numbro:void 0,pluginHooks:58,plugins:59,"plugins/jqueryHandsontable":1,"renderers/_cellDecorator":105,"shims/runtime":112}],24:[function(a){"use strict";var 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=(b=a("helpers/browser"),b&&b.__esModule&&b||{"default":b}).isMobileBrowser,A=(c=a("editors"),c&&c.__esModule&&c||{"default":c}).getEditorConstructor,B=(d=a("renderers"),d&&d.__esModule&&d||{"default":d}).getRenderer,C=((e=a("editors/autocompleteEditor"),e&&e.__esModule&&e||{"default":e}).AutocompleteEditor,(f=a("editors/checkboxEditor"),f&&f.__esModule&&f||{"default":f}).CheckboxEditor,(g=a("editors/dateEditor"),g&&g.__esModule&&g||{"default":g}).DateEditor,(h=a("editors/dropdownEditor"),h&&h.__esModule&&h||{"default":h}).DropdownEditor,(i=a("editors/handsontableEditor"),i&&i.__esModule&&i||{"default":i}).HandsontableEditor,(j=a("editors/mobileTextEditor"),j&&j.__esModule&&j||{"default":j}).MobileTextEditor,(k=a("editors/numericEditor"),k&&k.__esModule&&k||{"default":k}).NumericEditor,(l=a("editors/passwordEditor"),l&&l.__esModule&&l||{"default":l}).PasswordEditor,(m=a("editors/selectEditor"),m&&m.__esModule&&m||{"default":m}).SelectEditor,(n=a("editors/textEditor"),n&&n.__esModule&&n||{"default":n}).TextEditor,(o=a("renderers/autocompleteRenderer"),o&&o.__esModule&&o||{"default":o}).AutocompleteRenderer,(p=a("renderers/checkboxRenderer"),p&&p.__esModule&&p||{"default":p}).CheckboxRenderer,(q=a("renderers/htmlRenderer"),q&&q.__esModule&&q||{"default":q}).HtmlRenderer,(r=a("renderers/numericRenderer"),r&&r.__esModule&&r||{"default":r}).NumericRenderer,(s=a("renderers/passwordRenderer"),s&&s.__esModule&&s||{"default":s}).PasswordRenderer,(t=a("renderers/textRenderer"),t&&t.__esModule&&t||{"default":t}).TextRenderer,(u=a("validators/autocompleteValidator"),u&&u.__esMo
20dule&&u||{"default":u}).AutocompleteValidator,(v=a("validators/dateValidator"),v&&v.__esModule&&v||{"default":v}).DateValidator,(w=a("validators/timeValidator"),w&&w.__esModule&&w||{"default":w}).TimeValidator,(x=a("validators/numericValidator"),x&&x.__esModule&&x||{"default":x}).NumericValidator,(y=a("browser"),y&&y.__esModule&&y||{"default":y})["default"]);C.AutocompleteCell={editor:A("autocomplete"),renderer:B("autocomplete"),validator:C.AutocompleteValidator},C.CheckboxCell={editor:A("checkbox"),renderer:B("checkbox")},C.TextCell={editor:A(z()?"mobile":"text"),renderer:B("text")},C.NumericCell={editor:A("numeric"),renderer:B("numeric"),validator:C.NumericValidator,dataType:"number"},C.DateCell={editor:A("date"),validator:C.DateValidator,renderer:B("autocomplete")},C.TimeCell={editor:A("text"),validator:C.TimeValidator,renderer:B("text")},C.HandsontableCell={editor:A("handsontable"),renderer:B("autocomplete")},C.PasswordCell={editor:A("password"),renderer:B("password"),copyable:!1},C.DropdownCell={editor:A("dropdown"),renderer:B("autocomplete"),validator:C.AutocompleteValidator},C.cellTypes={text:C.TextCell,date:C.DateCell,time:C.TimeCell,numeric:C.NumericCell,checkbox:C.CheckboxCell,autocomplete:C.AutocompleteCell,handsontable:C.HandsontableCell,password:C.PasswordCell,dropdown:C.DropdownCell},C.cellLookup={validator:{numeric:C.NumericValidator,autocomplete:C.AutocompleteValidator}}},{browser:23,editors:29,"editors/autocompleteEditor":31,"editors/checkboxEditor":32,"editors/dateEditor":33,"editors/dropdownEditor":34,"editors/handsontableEditor":35,"editors/mobileTextEditor":36,"editors/numericEditor":37,"editors/passwordEditor":38,"editors/selectEditor":39,"editors/textEditor":40,"helpers/browser":43,renderers:104,"renderers/autocompleteRenderer":106,"renderers/checkboxRenderer":107,"renderers/htmlRenderer":108,"renderers/numericRenderer":109,"renderers/passwordRenderer":110,"renderers/textRenderer":111,"validators/autocompleteValidator":117,"validators/dateValidator":118,"validators/numericValidator":119,"validators/timeValidator":120}],25:[function(a){"use strict";var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x=(b=a("browser"),b&&b.__esModule&&b||{"default":b})["default"],y=(c=a("numbro"),c&&c.__esModule&&c||{"default":c})["default"],z=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),A=z.addClass,B=z.empty,C=z.isChildOfWebComponentTable,D=z.removeClass,E=(e=a("helpers/setting"),e&&e.__esModule&&e||{"default":e}).columnFactory,F=(f=a("helpers/function"),f&&f.__esModule&&f||{"default":f}).isFunction,G=(g=a("helpers/mixed"),g&&g.__esModule&&g||{"default":g}),H=G.isDefined,I=G.isUndefined,J=(h=a("helpers/browser"),h&&h.__esModule&&h||{"default":h}).isMobileBrowser,K=(i=a("dataMap"),i&&i.__esModule&&i||{"default":i}).DataMap,L=(j=a("editorManager"),j&&j.__esModule&&j||{"default":j}).EditorManager,M=(k=a("eventManager"),k&&k.__esModule&&k||{"default":k}).eventManager,N=(l=a("helpers/object"),l&&l.__esModule&&l||{"default":l}),O=N.deepClone,P=N.duckSchema,Q=N.extend,R=N.isObject,S=N.isObjectEquals,T=N.deepObjectSize,U=(m=a("helpers/array"),m&&m.__esModule&&m||{"default":m}),V=U.arrayFlatten,W=U.arrayMap,X=(n=a("plugins"),n&&n.__esModule&&n||{"default":n}).getPlugin,Y=(o=a("renderers"),o&&o.__esModule&&o||{"default":o}).getRenderer,Z=(p=a("helpers/string"),p&&p.__esModule&&p||{"default":p}).randomString,$=(q=a("helpers/number"),q&&q.__esModule&&q||{"default":q}).rangeEach,_=(r=a("tableView"),r&&r.__esModule&&r||{"default":r}).TableView,aa=(s=a("dataSource"),s&&s.__esModule&&s||{"default":s}).DataSource,ba=(t=a("helpers/data"),t&&t.__esModule&&t||{"default":t}),ca=ba.translateRowsToColumns,da=ba.cellMethodLookupFactory,ea=ba.spreadsheetColumnLabel,fa=(u=a("3rdparty/walkontable/src/cell/coords"),u&&u.__esModule&&u||{"default":u}).WalkontableCellCoords,ga=(v=a("3rdparty/walkontable/src/cell/range"),v&&v.__esModule&&v||{"default":v}).WalkontableCellRange,ha=(w=a("3rdparty/walkontable/src/calculator/viewportColumns"),w&&w.__esModule&&w||{"default":w}).WalkontableViewportColumnsCalculator;x.activeGuid=null,x.Core=function(a,b){function c(){var a=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue++,a=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0==this.validatorsInQueue&&0==a&&(a=!0,this.onQueueEmpty(this.valid))}}}function d(a,b,d){function e(){var c;a.length&&(c=x.hooks.run(q,"beforeChange",a,b),F(c)?console.warn("Your beforeChange callback returns a function. It's not supported since Handsontable 0.12.1 (and the returned function will not be executed)."):c===!1&&a.splice(0,a.length)),d()}var f=new c;f.onQueueEmpty=e;for(var g=a.length-1;g>=0;g--)if(null===a[g])a.splice(g,1);else{var h=a[g][0],i=l.propToCol(a[g][1]),j=q.getCellMeta(h,i);if("numeric"===j.type&&"string"==typeof a[g][3]&&a[g][3].length>0&&(/^-?[\d\s]*(\.|\,)?\d*$/.test(a[g][3])||j.format)){var k=a[g][3].length;y.culture(I(j.language)?"en-US":a[g][3].indexOf(".")===k-3&&-1===a[g][3].indexOf(",")?"en-US":j.language);var m=y.cultureData(y.culture()).delimiters;new RegExp("^\\"+m.decimal+"[0-9]+$").test(a[g][3]+"")&&(a[g][3]="0"+a[g][3]),(y.validate(a[g][3])||!isNaN(parseFloat(a[g][3])))&&(a[g][3]=y().unformat(a[g][3]))}q.getCellValidator(j)&&(f.addValidatorToQueue(),q.validateCell(a[g][3],j,function(b,c){return function(d){if("boolean"!=typeof d)throw new Error("Validation error: result is not boolean");d===!1&&c.allowInvalid===!1&&(a.splice(b,1),c.valid=!0,--b),f.removeValidatorFormQueue()}}(g,j),b))}f.checkIfQueueIsEmpty()}function e(a,b){var c=a.length-1;if(!(0>c)){for(;c>=0;
20c--)if(null!==a[c]){if(null!=a[c][2]||null!=a[c][3]){if(k.settings.allowInsertRow)for(;a[c][0]>q.countRows()-1;)l.createRow();if("array"===q.dataType&&(!k.settings.columns||0===k.settings.columns.length)&&k.settings.allowInsertColumn)for(;l.propToCol(a[c][1])>q.countCols()-1;)l.createCol();l.set(a[c][0],a[c][1],a[c][3])}}else a.splice(c,1);q.forceFullRender=!0,n.adjustRowsAndCols(),x.hooks.run(q,"beforeChangeRender",a,b),o.refreshBorders(null,!0),q.view.wt.wtOverlays.adjustElementsSize(),x.hooks.run(q,"afterChange",a,b||"edit")}}function f(a,b,c){return"object"==typeof a?a:[[a,b,c]]}function g(a){if(a.hasOwnProperty("type")){var b,c={};if("object"==typeof a.type)b=a.type;else if("string"==typeof a.type&&(b=x.cellTypes[a.type],void 0===b))throw new Error('You declared cell type "'+a.type+'" as a string that is not mapped to a known object. Cell type must be an object or a string mapped to an object in Handsontable.cellTypes');for(var d in b)b.hasOwnProperty(d)&&!a.hasOwnProperty(d)&&(c[d]=b[d]);return c}}function h(a){return x.hooks.run(q,"modifyRow",a)}function i(a){return x.hooks.run(q,"modifyCol",a)}function j(){throw new Error("This method cannot be called because this Handsontable instance has been destroyed")}var k,l,m,n,o,p,q=this,r=function(){},s=M(q);Q(r.prototype,ia.prototype),Q(r.prototype,b),Q(r.prototype,g(b)),this.rootElement=a,this.isHotTableEnv=C(this.rootElement),x.eventManager.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("DIV"),this.renderCall=!1,a.insertBefore(this.container,a.firstChild),this.guid="ht_"+Z(),m=new aa(q),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),k={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new r,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},n={alter:function(a,b,c,d,e){function f(a,b,c,d){var e=function(){var a;return"array"===d?a=[]:"object"===d&&(a={}),a},f=W(new Array(c),function(){return e()});f.unshift(b,0),a.splice.apply(a,f)}var g;switch(c=c||1,a){case"insert_row":if(q.getSettings().maxRows===q.countSourceRows())return;g=l.createRow(b,c),f(k.cellSettings,b,c,"array"),g&&(o.isSelected()&&k.selRange.from.row>=b?(k.selRange.from.row=k.selRange.from.row+g,o.transformEnd(g,0)):o.refreshBorders());break;case"insert_col":g=l.createCol(b,c);for(var h=0,j=q.countSourceRows();j>h;h++)k.cellSettings[h]&&f(k.cellSettings[h],b,c);if(g){if(Array.isArray(q.getSettings().colHeaders)){var m=[b,0];m.length+=g,Array.prototype.splice.apply(q.getSettings().colHeaders,m)}o.isSelected()&&k.selRange.from.col>=b?(k.selRange.from.col=k.selRange.from.col+g,o.transformEnd(0,g)):o.refreshBorders()}break;case"remove_row":l.removeRow(b,c),k.cellSettings.splice(b,c);var p=q.countRows(),r=q.getSettings().fixedRowsTop;r>=b+1&&(q.getSettings().fixedRowsTop-=Math.min(c,r-b));var s=q.getSettings().fixedRowsBottom;s&&b>=p-s&&(q.getSettings().fixedRowsBottom-=Math.min(c,s)),n.adjustRowsAndCols(),o.refreshBorders();break;case"remove_col":var t=i(b);l.removeCol(b,c);for(var u=0,v=q.countSourceRows();v>u;u++)k.cellSettings[u]&&k.cellSettings[u].splice(t,c);var w=q.getSettings().fixedColumnsLeft;w>=b+1&&(q.getSettings().fixedColumnsLeft-=Math.min(c,w-b)),Array.isArray(q.getSettings().colHeaders)&&("undefined"==typeof t&&(t=-1),q.getSettings().colHeaders.splice(t,c)),n.adjustRowsAndCols(),o.refreshBorders();break;default:throw new Error('There is no such action "'+a+'"')}e||n.adjustRowsAndCols()},adjustRowsAndCols:function(){if(k.settings.minRows){var a=q.countRows();if(a<k.settings.minRows)for(var b=0,c=k.settings.minRows;c-a>b;b++)l.createRow(q.countRows(),1,!0)}if(k.settings.minSpareRows){var d=q.countEmptyRows(!0);if(d<k.settings.minSpareRows)for(;d<k.settings.minSpareRows&&q.countRows()<k.settings.maxRows;d++)l.createRow(q.countRows(),1,!0)}var e;if((k.settings.minCols||k.settings.minSpareCols)&&(e=q.countEmptyCols(!0)),k.settings.minCols&&!k.settings.columns&&q.countCols()<k.settings.minCols)for(;q.countCols()<k.settings.minCols;e++)l.createCol(q.countCols(),1,!0);if(k.settings.minSpareCols&&!k.settings.columns&&"array"===q.dataType&&e<k.settings.minSpareCols)for(;e<k.settings.minSpareCols&&q.countCols()<k.settings.maxCols;e++)l.createCol(q.countCols(),1,!0);var f=q.countRows(),g=q.countCols();if((0===f||0===g)&&o.deselect(),o.isSelected()){var h=!1,i=k.selRange.from.row,j=k.selRange.from.col,m=k.selRange.to.row,n=k.selRange.to.col;i>f-1?(i=f-1,h=!0,m>i&&(m=i)):m>f-1&&(m=f-1,h=!0,i>m&&(i=m)),j>g-1?(j=g-1,h=!0,n>j&&(n=j)):n>g-1&&(n=g-1,h=!0,j>n&&(j=n)),h&&q.selectCell(i,j,m,n)}q.view&&q.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(a,b,c,d,e,f,g){var h,i,j,l,m=[],n={};if(i=b.length,0===i)return!1;{var o,p,r,s;
20({row:null===c?null:c.row,col:null===c?null:c.col})}switch(e){case"shift_down":for(o=c?c.col-a.col+1:0,p=c?c.row-a.row+1:0,b=ca(b),j=0,l=b.length,r=Math.max(l,o);r>j;j++)if(l>j){for(h=0,i=b[j].length;p-i>h;h++)b[j].push(b[j][h%i]);b[j].unshift(a.col+j,a.row,0),q.spliceCol.apply(q,b[j])}else b[j%l][0]=a.col+j,q.spliceCol.apply(q,b[j%l]);break;case"shift_right":for(o=c?c.col-a.col+1:0,p=c?c.row-a.row+1:0,h=0,i=b.length,s=Math.max(i,p);s>h;h++)if(i>h){for(j=0,l=b[h].length;o-l>j;j++)b[h].push(b[h][j%l]);b[h].unshift(a.row+h,a.col,0),q.spliceRow.apply(q,b[h])}else b[h%i][0]=a.row+h,q.spliceRow.apply(q,b[h%i]);break;case"overwrite":default:n.row=a.row,n.col=a.col;var t,u={row:c&&a?c.row-a.row+1:1,col:c&&a?c.col-a.col+1:1},v=0,w=0,x=!0,y=function(a){var c=void 0!==arguments[1]?arguments[1]:null,d=b[a%b.length];return null!==c?d[c%d.length]:d},z=b.length,A=c?c.row-a.row+1:0;for(i=c?A:Math.max(z,A),h=0;i>h&&!(c&&n.row>c.row&&A>z||!k.settings.allowInsertRow&&n.row>q.countRows()-1||n.row>=k.settings.maxRows);h++){var B=h-v,C=y(B).length,D=c?c.col-a.col+1:0;if(l=c?D:Math.max(C,D),n.col=a.col,t=q.getCellMeta(n.row,n.col),"paste"!==d&&"autofill"!==d||!t.skipRowOnPaste){for(w=0,j=0;l>j&&!(c&&n.col>c.col&&D>C||!k.settings.allowInsertColumn&&n.col>q.countCols()-1||n.col>=k.settings.maxCols);j++)if(t=q.getCellMeta(n.row,n.col),"paste"!==d&&"autofill"!==d||!t.skipColumnOnPaste)if(t.readOnly)n.col++;else{var E=j-w,F=y(B,E),G=q.getDataAtCell(n.row,n.col),H={row:B,col:E};if("autofill"===d){var J=q.runHooks("beforeAutofillInsidePopulate",H,f,b,g,{},u);J&&(F=I(J.value)?F:J.value)}if(null!==F&&"object"==typeof F)if(null===G||"object"!=typeof G)x=!1;else{var K=P(G[0]||G),L=P(F[0]||F);S(K,L)?F=O(F):x=!1}else null!==G&&"object"==typeof G&&(x=!1);x&&m.push([n.row,n.col,F]),x=!0,n.col++}else w++,n.col++,l++;n.row++}else v++,n.row++,i++}q.setDataAtCell(m,null,null,d||"populateFromArray")}}},this.selection=o={inProgress:!1,selectedHeader:{cols:!1,rows:!1},setSelectedHeaders:function(){var a=void 0!==arguments[0]?arguments[0]:!1,b=void 0!==arguments[1]?arguments[1]:!1,c=void 0!==arguments[2]?arguments[2]:!1;q.selection.selectedHeader.rows=a,q.selection.selectedHeader.cols=b,q.selection.selectedHeader.corner=c},begin:function(){q.selection.inProgress=!0},finish:function(){var a=q.getSelected();x.hooks.run(q,"afterSelectionEnd",a[0],a[1],a[2],a[3]),x.hooks.run(q,"afterSelectionEndByProp",a[0],q.colToProp(a[1]),a[2],q.colToProp(a[3])),q.selection.inProgress=!1},isInProgress:function(){return q.selection.inProgress},setRangeStart:function(a,b){x.hooks.run(q,"beforeSetRangeStart",a),k.selRange=new ga(a,a,a),o.setRangeEnd(a,null,b)},setRangeStartOnly:function(a){x.hooks.run(q,"beforeSetRangeStartOnly",a),k.selRange=new ga(a,a,a)},setRangeEnd:function(a,b,c){if(null!==k.selRange){var d,e=!1,f=!0,g=q.view.wt.wtTable.getFirstVisibleRow(),h=q.view.wt.wtTable.getFirstVisibleColumn(),i={row:null,col:null};x.hooks.run(q,"beforeSetRangeEnd",a),q.selection.begin(),i.row=a.row<0?g:a.row,i.col=a.col<0?h:a.col,k.selRange.to=new fa(i.row,i.col),k.settings.multiSelect||(k.selRange.from=a),q.view.wt.selections.current.clear(),d=q.getCellMeta(k.selRange.highlight.row,k.selRange.highlight.col).disableVisualSelection,"string"==typeof d&&(d=[d]),(d===!1||Array.isArray(d)&&-1===d.indexOf("current"))&&q.view.wt.selections.current.add(k.selRange.highlight),q.view.wt.selections.area.clear(),(d===!1||Array.isArray(d)&&-1===d.indexOf("area"))&&o.isMultiple()&&(q.view.wt.selections.area.add(k.selRange.from),q.view.wt.selections.area.add(k.selRange.to)),(k.settings.currentRowClassName||k.settings.currentColClassName)&&(q.view.wt.selections.highlight.clear(),q.view.wt.selections.highlight.add(k.selRange.from),q.view.wt.selections.highlight.add(k.selRange.to)),x.hooks.run(q,"afterSelection",k.selRange.from.row,k.selRange.from.col,k.selRange.to.row,k.selRange.to.col),x.hooks.run(q,"afterSelectionByProp",k.selRange.from.row,l.colToProp(k.selRange.from.col),k.selRange.to.row,l.colToProp(k.selRange.to.col)),(0===k.selRange.from.row&&k.selRange.to.row===q.countRows()-1&&q.countRows()>1||0===k.selRange.from.col&&k.selRange.to.col===q.countCols()-1&&q.countCols()>1)&&(e=!0),(a.row<0||a.col<0)&&(f=!1),b!==!1&&!e&&f&&q.view.scrollViewport(k.selRange.from&&!o.isMultiple()?k.selRange.from:a),o.refreshBorders(null,c)}},refreshBorders:function(a,b){b||p.destroyEditor(a),q.view.render(),o.isSelected()&&!b&&p.prepareEditor()},isMultiple:function(){var a=!(k.selRange.to.col===k.selRange.from.col&&k.selRange.to.row===k.selRange.from.row),b=x.hooks.run(q,"afterIsMultipleSelection",a);return a?b:void 0},transformStart:function(a,b,c,d){var e,f,g,h,i=new fa(a,b),j=0,l=0;q.runHooks("modifyTransformStart",i),e=q.countRows(),f=q.countCols(),h=q.getSettings().fixedRowsBottom,k.selRange.highlight.row+a>e-1?c&&k.settings.minSpareRows>0&&!(h&&k.selRange.highlight.row>=e-h-1)?(q.alter("insert_row",e),e=q.countRows()):k.settings.autoWrapCol&&(i.row=1-e,i.col=k.selRange.highlight.col+i.col==f-1?1-f:1):k.settings.autoWrapCol&&k.selRange.highlight.row+i.row<0&&k.selRange.highlight.col+i.col>=0&&(i.row=e-1,i.col=k.selRange.highlight.col+i.col==0?f-1:-1),k.selRange.highlight.col+i.col>f-1?c&&k.settings.minSpareCols>0?(q.alter("insert_col",f),f=q.countCols()):k.settings.autoWrapRow&&(i.row=k.selRange.highlight.row+i.row==e-1?1-e:1,i.col=1-f):k.settings.autoWrapRow&&k.selRange.highlight.col+i.col<0&&k.selRange.highlight.row+i.row>=0&&(i.row=k.selRange.highlight.row+i.row==0?e-1:-1,i.col=f-1),g=new fa(k.selRange.highlight.row+i.row,k.selRange.highlight.col+i.col),g.row<0?(j=-1,g.row=0):g.row>0&&g.row>=e&&(j=1,g.row=e-1),g.col<0?(l=-1,g.col=0):g.col>0&&g.col>=f&&(l=1,g.col=f-1),q.runHooks("afterModifyTransformStart",g,j,l),o.setRangeStart(g,d)},transformEnd:function(a,b){var c,d,e,f=new fa(a,b),g=0,h=0;q.runHooks("modifyTransformEnd",f),c=q.countRows(),d=q.countCols(),e=new fa(k.selRange.to.row+f.row,k.selRange.to.col+f.col),e.row<0?(g=-1,e.row=0):e.row>0&&e.row>=c&&(g=1,e.row=c-1),e.col<0?(h=-1,e.col=0):e.col>0&&e.col>=d&&(h=1,e.col=d-1),q.runHooks("afterModifyTransformEnd",e,g,h),o.setRangeEnd(e,!0)},isSelected:function(){return null!==k.selRange},inInSelection:function(a){return o.isSelected()?k.selRange.includes(a):!1},deselect:function(){o.isSelected()&&(q.selection.inProgress=!1,k.selRange=null,q.view.wt.selections.current.clear(),q.view.wt.selections.area.clear(),(k.settings.currentRowClassName||k.settings.currentColClassName)&&q.view.wt.selections.highlight.clear(),p.destroyEditor(),o.refreshBorders(),x.hooks.run(q,"afterDeselect"))},selectAll:function(){k.settings.multiSelect&&(o.setRangeStart(new fa(0,0)),o.setRangeEnd(new fa(q.countRows()-1,q.countCols()-1),!1))},empty:function(){if(o.isSelected()){var a,b,c=k.selRange.getTopLeftCorner(),d=k.selRange.getBottomRightCorner(),e=[];for(a=c.row;a<=d.row;a++)for(b=c.col;b<=d.col;b++)q.getCellMeta(a,b).readOnly||e.push([a,b,""]);q.setDataAtCell(e)}}},this.init=function(){m.setData(k.settings.data),x.hooks.run(q,"beforeInit"),J()&&A(q.rootElement,"mobile"),this.updateSettings(k.settings,!0),this.view=new _(this),p=new L(q,k,o,l),this.forceFullRender=!0,x.hooks.run(q,"init"),this.view.render(),"object"==typeof k.firstRun&&(x.hooks.run(q,"afterChange",k.firstRun[0],k.firstRun[1]),k.firstRun=!1),x.hooks.run(q,"afterInit")},this.validateCell=function(a,b,c,d){function e(a){var d=b.visualCol,e=b.visualRow,f=q.getCell(e,d,!0);f&&"TH"!=f.nodeName&&q.view.wt.wtSettings.settings.cellRenderer(e,d,f),c(a)}var f=q.getCellValidator(b);"[object RegExp]"===Object.prototype.toString.call(f)&&(f=function(a){return function(b,c){c(a.test(b))}}(f)),F(f)?(a=x.hooks.run(q,"beforeValidate",a,b.visualRow,b.prop,d),q._registerTimeout(setTimeout(function(){f.call(b,a,function(c){c=x.hooks.run(q,"afterValidate",c,a,b.visualRow,b.prop,d),b.valid=c,e(c),x.hooks.run(q,"postAfterValidate",c,a,b.visualRow,b.prop,d)})}
20,0))):q._registerTimeout(setTimeout(function(){b.valid=!0,e(b.valid)},0))},this.setDataAtCell=function(a,b,c,g){var h,i,j,k=f(a,b,c),m=[];for(h=0,i=k.length;i>h;h++){if("object"!=typeof k[h])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof k[h][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`");j=l.colToProp(k[h][1]),m.push([k[h][0],j,l.get(k[h][0],j),k[h][2]])}g||"object"!=typeof a||(g=b),d(m,g,function(){e(m,g)})},this.setDataAtRowProp=function(a,b,c,g){var h,i,j=f(a,b,c),k=[];for(h=0,i=j.length;i>h;h++)k.push([j[h][0],j[h][1],l.get(j[h][0],j[h][1]),j[h][2]]);g||"object"!=typeof a||(g=b),d(k,g,function(){e(k,g)})},this.listen=function(){x.activeGuid=q.guid},this.unlisten=function(){x.activeGuid=null},this.isListening=function(){return x.activeGuid===q.guid},this.destroyEditor=function(a){o.refreshBorders(a)},this.populateFromArray=function(a,b,c,d,e,f,g,h,i){var j;if("object"!=typeof c||"object"!=typeof c[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");return j="number"==typeof d?new fa(d,e):null,n.populateFromArray(new fa(a,b),c,j,f,g,h,i)},this.spliceCol=function(){return l.spliceCol.apply(l,arguments)},this.spliceRow=function(){return l.spliceRow.apply(l,arguments)},this.getSelected=function(){return o.isSelected()?[k.selRange.from.row,k.selRange.from.col,k.selRange.to.row,k.selRange.to.col]:void 0}
20,this.getSelectedRange=function(){return o.isSelected()?k.selRange:void 0},this.render=function(){q.view&&(q.renderCall=!0,q.forceFullRender=!0,o.refreshBorders(null,!0))},this.loadData=function(a){function b(){k.cellSettings.length=0}if("object"==typeof a&&null!==a)a.push&&a.splice||(a=[a]);else{if(null!==a)throw new Error("loadData only accepts array of objects or array of arrays ("+typeof a+" given)");a=[];for(var c,d=0,e=k.settings.startRows;e>d;d++){c=[];for(var f=0,g=k.settings.startCols;g>f;f++)c.push(null);a.push(c)}}k.isPopulated=!1,r.prototype.data=a,q.dataType=Array.isArray(k.settings.dataSchema)||Array.isArray(a[0])?"array":F(k.settings.dataSchema)?"function":"object",l&&l.destroy(),l=new K(q,k,r),m.data=a,m.dataType=q.dataType,m.colToProp=l.colToProp.bind(l),m.propToCol=l.propToCol.bind(l),b(),n.adjustRowsAndCols(),x.hooks.run(q,"afterLoadData",k.firstRun),k.firstRun?k.firstRun=[null,"loadData"]:(x.hooks.run(q,"afterChange",null,"loadData"),q.render()),k.isPopulated=!0},this.getData=function(a,b,c,d){return I(a)?l.getAll():l.getRange(new fa(a,b),new fa(c,d),l.DESTINATION_RENDERER)},this.getCopyableText=function(a,b,c,d){return l.getCopyableText(new fa(a,b),new fa(c,d))},this.getCopyableData=function(a,b){return l.getCopyable(a,l.colToProp(b))}
20,this.getSchema=function(){return l.getSchema()},this.updateSettings=function(a,b){var c,d,e,f=!1;if(H(a.rows))throw new Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if(H(a.cols))throw new Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(c in a)"data"!==c&&(x.hooks.getRegistered().indexOf(c)>-1?(F(a[c])||Array.isArray(a[c]))&&q.addHook(c,a[c]):!b&&a.hasOwnProperty(c)&&(r.prototype[c]=a[c]));if(void 0===a.data&&void 0===k.settings.data?q.loadData(null):void 0!==a.data?q.loadData(a.data):void 0!==a.columns&&l.createMap(),e=q.countCols(),a.columns&&F(a.columns)&&(e=q.countSourceCols(),f=!0),(void 0!==a.cell||void 0!==a.cells||void 0!==a.columns)&&(k.cellSettings.length=0),e>0){var h,i;for(c=0,d=0;e>c;c++)(!f||a.columns(c))&&(k.columnSettings[d]=E(r,k.columnsSettingConflicts),h=k.columnSettings[d].prototype,r.prototype.columns&&(i=f?r.prototype.columns(c):r.prototype.columns[d], 21i&&(Q(h,i),Q(h,g(i)))),d++)}if(H(a.cell))for(var j in a.cell)if(a.cell.hasOwnProperty(j)){var m=a.cell[j];q.setCellMetaObject(m.row,m.col,m)}x.hooks.run(q,"afterCellMetaReset"),H(a.className)&&(r.prototype.className&&D(q.rootElement,r.prototype.className),a.className&&A(q.rootElement,a.className));var p=q.rootElement.style.height;""!==p&&(p=parseInt(q.rootElement.style.height,10));var s=a.height;if(F(s)&&(s=s()),b){var t=q.rootElement.getAttribute("style");t&&q.rootElement.setAttribute("data-initialstyle",q.rootElement.getAttribute("style"))}if(null===s){var u=q.rootElement.getAttribute("data-initialstyle");u&&(u.indexOf("height")>-1||u.indexOf("overflow")>-1)?q.rootElement.setAttribute("style",u):(q.rootElement.style.height="",q.rootElement.style.overflow="")}else void 0!==s&&(q.rootElement.style.height=s+"px",q.rootElement.style.overflow="hidden");if("undefined"!=typeof a.width){var v=a.width;F(v)&&(v=v()),q.rootElement.style.width=v+"px"}b||(l.clearLengthCache(),x.hooks.run(q,"afterUpdateSettings")),n.adjustRowsAndCols(),q.view&&!k.firstRun&&(q.forceFullRender=!0,o.refreshBorders(null,!0)),b||!q.view||""!==p&&""!==s&&void 0!==s||p===s||q.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var a=q.getSelected();if(r.prototype.getValue){if(F(r.prototype.getValue))return r.prototype.getValue.call(q);if(a)return q.getData()[a[0]][r.prototype.getValue]}else if(a)return q.getDataAtCell(a[0],a[1])},this.getSettings=function(){return k.settings},this.clear=function(){o.selectAll(),o.empty()},this.alter=function(a,b,c,d,e){n.alter(a,b,c,d,e)},this.getCell=function(a,b,c){return q.view.getCellAtCoords(new fa(a,b),c)},this.getCoords=function(a){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,a)},this.colToProp=function(a){return l.colToProp(a)},this.propToCol=function(a){return l.propToCol(a)},this.getDataAtCell=function(a,b){return l.get(a,l.colToProp(b))},this.getDataAtRowProp=function(a,b){return l.get(a,b)},this.getDataAtCol=function(a){var b=[];return b.concat.apply(b,l.getRange(new fa(0,a),new fa(k.settings.data.length-1,a),l.DESTINATION_RENDERER))},this.getDataAtProp=function(a){var b,c=[];return b=l.getRange(new fa(0,l.propToCol(a)),new fa(k.settings.data.length-1,l.propToCol(a)),l.DESTINATION_RENDERER),c.concat.apply(c,b)},this.getSourceData=function(a,b,c,d){var e;return e=void 0===a?m.getData():m.getByRange(new fa(a,b),new fa(c,d))},this.getSourceDataAtCol=function(a){return m.getAtColumn(a)},this.getSourceDataAtRow=function(a){return m.getAtRow(a)},this.getSourceDataAtCell=function(a,b){return m.getAtCell(a,b)},this.getDataAtRow=function(a){var b=l.getRange(new fa(a,0),new fa(a,this.countCols()-1),l.DESTINATION_RENDERER);return b[0]},this.getDataType=function(a,b,c,d){var e=this,f=null,g=null;void 0===a&&(a=0,c=this.countRows(),b=0,d=this.countCols()),void 0===c&&(c=a),void 0===d&&(d=b);var h="mixed";return $(Math.min(a,c),Math.max(a,c),function(a){var c=!0;return $(Math.min(b,d),Math.max(b,d),function(b){var d=e.getCellMeta(a,b);return g=d.type,f?c=f===g:f=g,c}),h=c?g:"mixed",c}),h},this.removeCellMeta=function(a,b,c){var d=q.getCellMeta(a,b);void 0!=d[c]&&delete k.cellSettings[a][b][c]},this.setCellMetaObject=function(a,b,c){if("object"==typeof c)for(var d in c)if(c.hasOwnProperty(d)){var e=c[d];this.setCellMeta(a,b,d,e)}},this.setCellMeta=function(a,b,c,d){k.cellSettings[a]||(k.cellSettings[a]=[]),k.cellSettings[a][b]||(k.cellSettings[a][b]=new k.columnSettings[b]),k.cellSettings[a][b][c]=d,x.hooks.run(q,"afterSetCellMeta",a,b,c,d)},this.getCellsMeta=function(){return V(k.cellSettings)},this.getCellMeta=function(a,b){var c,d=l.colToProp(b),e=a,f=b;if(a=h(a),b=i(b),k.columnSettings[b]||(k.columnSettings[b]=E(r,k.columnsSettingConflicts)),k.cellSettings[a]||(k.cellSettings[a]=[]),k.cellSettings[a][b]||(k.cellSettings[a][b]=new k.columnSettings[b]),c=k.cellSettings[a][b],c.row=a,c.col=b,c.visualRow=e,c.visualCol=f,c.prop=d,c.instance=q,x.hooks.run(q,"beforeGetCellMeta",a,b,c),Q(c,g(c)),c.cells){var j=c.cells.call(c,a,b,d);j&&(Q(c,j),Q(c,g(j)))}return x.hooks.run(q,"afterGetCellMeta",a,b,c),c},this.isColumnModificationAllowed=function(){return!("object"===q.dataType||q.getSettings().columns)};var t=da("renderer");this.getCellRenderer=function(a,b){var c=t.call(this,a,b);return Y(c)},this.getCellEditor=da("editor"),this.getCellValidator=da("validator"),this.validateCells=function(a){var b=new c;a&&(b.onQueueEmpty=a);for(var d=q.countRows()-1;d>=0;){for(var e=q.countCols()-1;e>=0;)b.addValidatorToQueue(),q.validateCell(q.getDataAtCell(d,e),q.getCellMeta(d,e),function(a){if
21("boolean"!=typeof a)throw new Error("Validation error: result is not boolean");a===!1&&(b.valid=!1),b.removeValidatorFormQueue()},"validateCells"),e--;d--}b.checkIfQueueIsEmpty()},this.getRowHeader=function(a){var b=k.settings.rowHeaders;return void 0!==a&&(a=x.hooks.run(q,"modifyRowHeader",a)),void 0===a?(b=[],$(q.countRows()-1,function(a){b.push(q.getRowHeader(a))})):Array.isArray(b)&&void 0!==b[a]?b=b[a]:F(b)?b=b(a):b&&"string"!=typeof b&&"number"!=typeof b&&(b=a+1),b},this.hasRowHeaders=function(){return!!k.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==k.settings.colHeaders&&null!==k.settings.colHeaders)return!!k.settings.colHeaders;for(var a=0,b=q.countCols();b>a;a++)if(q.getColHeader(a))return!0;return!1},this.getColHeader=function(a){var b=k.settings.columns&&F(k.settings.columns),c=k.settings.colHeaders;if(a=x.hooks.run(q,"modifyColHeader",a),void 0===a){for(var d=[],e=b?q.countSourceCols():q.countCols(),f=0;e>f;f++)d.push(q.getColHeader(f));c=d}else{var g=function(a){for(var b=[],c=q.countSourceCols(),d=0;c>d;d++)F(q.getSettings().columns)&&q.getSettings().columns(d)&&b.push(d);return b[a]},h=a;a=x.hooks.run(q,"modifyCol",a);var i=g(a);k.settings.columns&&F(k.settings.columns)&&k.settings.columns(i)&&k.settings.columns(i).title?c=k.settings.columns(i).title:k.settings.columns&&k.settings.columns[a]&&k.settings.columns[a].title?c=k.settings.columns[a].title:Array.isArray(k.settings.colHeaders)&&void 0!==k.settings.colHeaders[a]?c=k.settings.colHeaders[a]:F(k.settings.colHeaders)?c=k.settings.colHeaders(a):k.settings.colHeaders&&"string"!=typeof k.settings.colHeaders&&"number"!=typeof k.settings.colHeaders&&(c=ea(h))}return c},this._getColWidthFromSettings=function(a){var b=q.getCellMeta(0,a),c=b.width;if((void 0===c||c===k.settings.width)&&(c=b.colWidths),void 0!==c&&null!==c){switch(typeof c){case"object":c=c[a];break;case"function":c=c(a)}"string"==typeof c&&(c=parseInt(c,10))}return c},this.getColWidth=function(a){var b=q._getColWidthFromSettings(a);return b=x.hooks.run(q,"modifyColWidth",b,a),void 0===b&&(b=ha.DEFAULT_WIDTH),b},this._getRowHeightFromSettings=function(a){var b=k.settings.rowHeights;if(void 0!==b&&null!==b){switch(typeof b){case"object":b=b[a];break;case"function":b=b(a)}"string"==typeof b&&(b=parseInt(b,10))}return b},this.getRowHeight=function(a){var b=q._getRowHeightFromSettings(a);return b=x.hooks.run(q,"modifyRowHeight",b,a)},this.countSourceRows=function(){return q.getSourceData()?q.getSourceData().length:0},this.countSourceCols=function(){var a=0,b=q.getSourceData()&&q.getSourceData()[0]?q.getSourceData()[0]:[];return a=R(b)?T(b):b.length||0},this.countRows=function(){return l.getLength()},this.countCols=function(){var a=!1,b=0;if("array"===q.dataType&&(a=k.settings.data&&k.settings.data[0]&&k.settings.data[0].length),a&&(b=k.settings.data[0].length),k.settings.columns){var c=F(k.settings.columns);if(c)if("array"===q.dataType){for(var d=0,e=0;b>e;e++)k.settings.columns(e)&&d++;b=d}else("object"===q.dataType||"function"===q.dataType)&&(b=l.colToPropCache.length);else b=k.settings.columns.length}else("object"===q.dataType||"function"===q.dataType)&&(b=l.colToPropCache.length);return b},this.rowOffset=function(){return q.view.wt.wtTable.getFirstRenderedRow()},this.colOffset=function(){return q.view.wt.wtTable.getFirstRenderedColumn()},this.countRenderedRows=function(){return q.view.wt.drawn?q.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return q.view.wt.drawn?q.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return q.view.wt.drawn?q.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return q.view.wt.drawn?q.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(a){for(var b,c=q.countRows()-1,d=0;c>=0;){if(b=x.hooks.run(this,"modifyRow",c),q.isEmptyRow(b))d++;else if(a)break;c--}return d},this.countEmptyCols=function(a){if(q.countRows()<1)return 0;for(var b=q.countCols()-1,c=0;b>=0;){if(q.isEmptyCol(b))c++;else if(a)break;b--}return c},this.isEmptyRow=function(a){return k.settings.isEmptyRow.call(q,a)},this.isEmptyCol=function(a){return k.settings.isEmptyCol.call(q,a)},this.selectCell=function(a,b,c,d,e,f){var g;if(f=I(f)||f===!0,"number"!=typeof a||0>a||a>=q.countRows())return!1;if("number"!=typeof b||0>b||b>=q.countCols())return!1;if(H(c)){if("number"!=typeof c||0>c||c>=q.countRows())return!1;if("number"!=typeof d||0>d||d>=q.countCols())return!1}return g=new fa(a,b),k.selRange=new ga(g,g,g),f&&q.listen(),I(c)?o.setRangeEnd(k.selRange.from,e):o.setRangeEnd(new fa(c,d),e),q.selection.finish(),!0},this.selectCellByProp=function(){return arguments[1]=l.propToCol(arguments[1]),H(arguments[3])&&(arguments[3]=l.propToCol(arguments[3])),q.selectCell.apply(q,arguments)},this.deselectCell=function(){o.deselect()},this.scrollViewportTo=function(a,b){if(void 0!==a&&(0>a||a>=q.countRows()))return!1;if(void 0!==b&&(0>
21b||b>=q.countCols()))return!1;var c=!1;return void 0!==a&&void 0!==b&&(q.view.wt.scrollVertical(a),q.view.wt.scrollHorizontal(b),c=!0),"number"==typeof a&&"number"!=typeof b&&(q.view.wt.scrollVertical(a),c=!0),"number"==typeof b&&"number"!=typeof a&&(q.view.wt.scrollHorizontal(b),c=!0),c},this.destroy=function(){q._clearTimeouts(),q.view&&q.view.destroy(),m&&m.destroy(),m=null,B(q.rootElement),s.destroy(),x.hooks.run(q,"afterDestroy"),x.hooks.destroy(q);for(var a in q)q.hasOwnProperty(a)&&(F(q[a])?q[a]=j:"guid"!==a&&(q[a]=null));l&&l.destroy(),l=null,k=null,n=null,o=null,p=null,q=null,r=null},this.getActiveEditor=function(){return p.getActiveEditor()},this.getPlugin=function(a){return X(this,a)},this.getInstance=function(){return q},this.addHook=function(a,b){x.hooks.add(a,b,q)},this.hasHook=function(a){return x.hooks.has(a,q)},this.addHookOnce=function(a,b){x.hooks.once(a,b,q)},this.removeHook=function(a,b){x.hooks.remove(a,b,q)},this.runHooks=function(a,b,c,d,e,f,g){return x.hooks.run(q,a,b,c,d,e,f,g)},this.timeouts=[],this._registerTimeout=function(a){this.timeouts.push(a)},this._clearTimeouts=function(){for(var a=0,b=this.timeouts.length;b>a;a++)clearTimeout(this.timeouts[a])},this.version=x.version,x.hooks.run(q,"construct")};var ia=function(){};ia.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,className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(a){var b,c,d,e;for(b=0,c=this.countCols();c>b;b++)if(d=this.getDataAtCell(a,b),""!==d&&null!==d&&H(d))return"object"==typeof d?(e=this.getCellMeta(a,b),S(this.getSchema()[e.prop],d)):!1;return!0},isEmptyCol:function(a){var b,c,d;for(b=0,c=this.countRows();c>b;b++)if(d=this.getDataAtCell(b,a),""!==d&&null!==d&&H(d))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,renderAllRows:void 0,preventOverflow:!1,bindRowsWithHeaders:void 0,collapsibleColumns:void 0,columnSummary:void 0,dropdownMenu:void 0,filters: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},x.DefaultSettings=ia},{"3rdparty/walkontable/src/calculator/viewportColumns":3,"3rdparty/walkontable/src/cell/coords":5,"3rdparty/walkontable/src/cell/range":6,browser:23,dataMap:26,dataSource:27,editorManager:28,eventManager:41,"helpers/array":42,"helpers/browser":43,"helpers/data":44,"helpers/dom/element":46,"helpers/function":49,"helpers/mixed":50,"helpers/number":51,"helpers/object":52,"helpers/setting":53,"helpers/string":54,numbro:void 0,plugins:59,renderers:104,tableView:113}],26:[function(a,b,c){"use strict";function d(a,b,c){var d=this;this.instance=a,this.priv=b,this.GridSettings=c,this.dataSource=this.instance.getSettings().data,this.cachedLength=null,this.latestSourceRowsCount=0,this.duckSchema=this.dataSource[0]?this.recursiveDuckSchema(this.dataSource[0]):{},this.createMap(),this.interval=A.create(function(){return d.clearLengthCache()},"15fps")}Object.defineProperties(c,{DataMap:{get:function(){return d}},__esModule:{value:!0}});
21var e,f,g,h,i,j,k,l,m,n=(e=a("browser"),e&&e.__esModule&&e||{"default":e})["default"],o=(f=a("SheetClip"),f&&f.__esModule&&f||{"default":f})["default"],p=(g=a("helpers/data"),g&&g.__esModule&&g||{"default":g}).cellMethodLookupFactory,q=(h=a("helpers/setting"),h&&h.__esModule&&h||{"default":h}).columnFactory,r=(i=a("helpers/object"),i&&i.__esModule&&i||{"default":i}),s=r.duckSchema,t=r.deepExtend,u=r.deepClone,v=r.isObject,w=r.deepObjectSize,x=(j=a("helpers/array"),j&&j.__esModule&&j||{"default":j}),y=x.extendArray,z=x.to2dArray,A=(k=a("utils/interval"),k&&k.__esModule&&k||{"default":k}).Interval,B=(l=a("helpers/number"),l&&l.__esModule&&l||{"default":l}).rangeEach,C=(m=a("multiMap"),m&&m.__esModule&&m||{"default":m}).MultiMap;d.prototype.DESTINATION_RENDERER=1,d.prototype.DESTINATION_CLIPBOARD_GENERATOR=2,d.prototype.recursiveDuckSchema=function(a){return s(a)},d.prototype.recursiveDuckColumns=function(a,b,c){var d,e;if("undefined"==typeof b&&(b=0,c=""),"object"==typeof a&&!Array.isArray(a))for(e in a)a.hasOwnProperty(e)&&(null===a[e]?(d=c+e,this.colToPropCache.push(d),this.propToColCache.set(d,b),b++):b=this.recursiveDuckColumns(a[e],b,e+"."));return b},d.prototype.createMap=function(){var a,b=this.getSchema();if("undefined"==typeof b)throw new Error("trying to create `columns` definition but you didnt' provide `schema` nor `data`");this.colToPropCache=[],this.propToColCache=new C;var c=this.instance.getSettings().columns;if(c){var d=c.length,e=0,f=!1,g=w(b);for("function"==typeof c&&(d=g>0?g:this.instance.countSourceCols(),f=!0),a=0;d>a;a++){var h=f?c(a):c[a];if(v(h)){if("undefined"!=typeof h.data){var i=f?e:a;this.colToPropCache[i]=h.data,this.propToColCache.set(h.data,i)}e++}}}else this.recursiveDuckColumns(b)},d.prototype.colToProp=function(a){return a=n.hooks.run(this.instance,"modifyCol",a),this.colToPropCache&&"undefined"!=typeof this.colToPropCache[a]?this.colToPropCache[a]:a},d.prototype.propToCol=function(a){var b;return b="undefined"==typeof this.propToColCache.get(a)?a:this.propToColCache.get(a),b=n.hooks.run(this.instance,"unmodifyCol",b)},d.prototype.getSchema=function(){var a=this.instance.getSettings().dataSchema;return a?"function"==typeof a?a():a:this.duckSchema},d.prototype.createRow=function(a,b,c){var d,e,f=this.instance.countCols(),g=0;b||(b=1),("number"!=typeof a||a>=this.instance.countSourceRows())&&(a=this.instance.countSourceRows()),e=a;for(var h=this.instance.getSettings().maxRows;b>g&&this.instance.countSourceRows()<h;)"array"===this.instance.dataType?this.instance.getSettings().dataSchema?d=u(this.getSchema()):(d=[],B(f-1,function(){return d.push(null)})):"function"===this.instance.dataType?d=this.instance.getSettings().dataSchema(a):(d={},t(d,this.getSchema())),a===this.instance.countSourceRows()?this.dataSource.push(d):this.dataSource.splice(a,0,d),g++,e++;return n.hooks.run(this.instance,"afterCreateRow",a,g,c),this.instance.forceFullRender=!0,g},d.prototype.createCol=function(a,b,c){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 d,e,f=this.instance.countSourceRows(),g=this.dataSource,h=0;b||(b=1),("number"!=typeof a||a>=this.instance.countCols())&&(a=this.instance.countCols()),e=a;for(var i=this.instance.getSettings().maxCols;b>h&&this.instance.countCols()<i;){if(d=q(this.GridSettings,this.priv.columnsSettingConflicts),"number"!=typeof a||a>=this.instance.countCols()){if(f>0)for(var j=0;f>j;j++)"undefined"==typeof g[j]&&(g[j]=[]),g[j].push(null);else g.push([null]);this.priv.columnSettings.push(d)}else{for(var j=0;f>j;j++)g[j].splice(e,0,null);this.priv.columnSettings.splice(e,0,d)}h++,e++}return n.hooks.run(this.instance,"afterCreateCol",a,h,c),this.instance.forceFullRender=!0,h},d.prototype.removeRow=function(a,b){b||(b=1),"number"!=typeof a&&(a=-b),a=(this.instance.countSourceRows()+a)%this.instance.countSourceRows();var c=this.physicalRowsToLogical(a,b),d=(c.slice(0).sort(function(a,b){return b-
21a}),n.hooks.run(this.instance,"beforeRemoveRow",a,b,c));if(d!==!1){var e,f=this.dataSource;e=f.filter(function(a,b){return-1==c.indexOf(b)}),f.length=0,Array.prototype.push.apply(f,e),n.hooks.run(this.instance,"afterRemoveRow",a,b,c),this.instance.forceFullRender=!0}},d.prototype.removeCol=function(a,b){if("object"===this.instance.dataType||this.instance.getSettings().columns)throw new Error("cannot remove column with object data source or columns option specified");b||(b=1),"number"!=typeof a&&(a=-b),a=(this.instance.countCols()+a)%this.instance.countCols();var c=this.physicalColumnsToLogical(a,b),d=c.slice(0).sort(function(a,b){return b-a}),e=n.hooks.run(this.instance,"beforeRemoveCol",a,b,c);if(e!==!1){for(var f=!0,g=d.length,h=this.dataSource,i=0;g>i;i++)f&&c[0]!==c[i]-i&&(f=!1);if(f)for(var j=0,k=this.instance.countSourceRows();k>j;j++)h[j].splice(c[0],b);else{for(var l=0,m=this.instance.countSourceRows();m>l;l++)for(var o=0;g>o;o++)h[l].splice(d[o],1);for(var p=0;g>p;p++)this.priv.columnSettings.splice(c[p],1)}n.hooks.run(this.instance,"afterRemoveCol",a,b),this.instance.forceFullRender=!0}},d.prototype.spliceCol=function(a,b,c){var d=4<=arguments.length?[].slice.call(arguments,3):[],e=this.instance.getDataAtCol(a),f=e.slice(b,b+c),g=e.slice(b+c);y(d,g);for(var h=0;c>h;)d.push(null),h++;return z(d),this.instance.populateFromArray(b,a,d,null,null,"spliceCol"),f},d.prototype.spliceRow=function(a,b,c){var d=4<=arguments.length?[].slice.call(arguments,3):[],e=this.instance.getSourceDataAtRow(a),f=e.slice(b,b+c),g=e.slice(b+c);y(d,g);for(var h=0;c>h;)d.push(null),h++;return this.instance.populateFromArray(a,b,[d],null,null,"spliceRow"),f},d.prototype.get=function(a,b){a=n.hooks.run(this.instance,"modifyRow",a);var c=this.dataSource[a];if(c&&c.hasOwnProperty&&c.hasOwnProperty(b))return c[b];if("string"==typeof b&&b.indexOf(".")>-1){var d=b.split("."),e=c;if(!e)return null;for(var f=0,g=d.length;g>f;f++)if(e=e[d[f]],"undefined"==typeof e)return null;return e}return"function"==typeof b?b(this.dataSource.slice(a,a+1)[0]):null};var D=p("copyable",!1);d.prototype.getCopyable=function(a,b){return D.call(this.instance,a,this.propToCol(b))?this.get(a,b):""},d.prototype.set=function(a,b,c,d){a=n.hooks.run(this.instance,"modifyRow",a,d||"datamapGet");var e=this.dataSource[a];if(e&&e.hasOwnProperty&&e.hasOwnProperty(b))e[b]=c;else if("string"==typeof b&&b.indexOf(".")>-1){for(var f=b.split("."),g=e,h=0,i=f.length-1;i>h;h++)"undefined"==typeof g[f[h]]&&(g[f[h]]={}),g=g[f[h]];g[f[h]]=c}else"function"==typeof b?b(this.dataSource.slice(a,a+1)[0],c):e[b]=c},d.prototype.physicalRowsToLogical=function(a,b){for(var c,d=this.instance.countSourceRows(),e=(d+a)%d,f=[],g=b;d>e&&g;)c=n.hooks.run(this.instance,"modifyRow",e),f.push(c),g--,e++;return f},d.prototype.physicalColumnsToLogical=function(a,b){for(var c=this.instance.countCols(),d=(c+a)%c,e=[],f=b;c>d&&f;){var g=n.hooks.run(this.instance,"modifyCol",d);e.push(g),f--,d++}return e},d.prototype.clear=function(){for(var a=0;a<this.instance.countSourceRows();a++)for(var b=0;b<this.instance.countCols();b++)this.set(a,this.colToProp(b),"")},d.prototype.clearLengthCache=function(){this.cachedLength=null},d.prototype.getLength=function(){var a=this,b=this.instance.countSourceRows();if(n.hooks.has("modifyRow",this.instance)){var c=!1;this.interval.start(),b!==this.latestSourceRowsCount&&(c=!0),this.latestSourceRowsCount=b,null===this.cachedLength||c?(B(b-1,function(c){c=n.hooks.run(a.instance,"modifyRow",c),null===c&&--b}),this.cachedLength=b):b=this.cachedLength}else this.interval.stop();return b},d.prototype.getAll=function(){var a={row:0,col:0},b={row:Math.max(this.instance.countSourceRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return a.row-b.row!==0||this.instance.countSourceRows()?this.getRange(a,b,d.prototype.DESTINATION_RENDERER):[]},d.prototype.getRange=function(a,b,c){var d,e,f,g,h,i=[],j=c===this.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get;for(e=Math.max(a.row,b.row),g=Math.max(a.col,b.col),d=Math.min(a.row,b.row);e>=d;d++){h=[];var k=n.hooks.run(this.instance,"modifyRow",d);for(f=Math.min(a.col,b.col);g>=f;f++){if(null===k)break;h.push(j.call(this,d,this.colToProp(f)))}null!==k&&i.push(h)}return i},d.prototype.getText=function(a,b){return o.stringify(this.getRange(a,b,this.DESTINATION_RENDERER))},d.prototype.getCopyableText=function(a,b){return o.stringify(this.getRange(a,b,this.DESTINATION_CLIPBOARD_GENERATOR))},d.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}},{SheetClip:"SheetClip",browser:23,"helpers/array":42,"helpers/data":44,"helpers/number":51,"helpers/object":52,"helpers/setting":53,multiMap:57,"utils/interval":115}],27:[function(a,b,c){"use strict";Object.defineProperties(c,{DataSource:{get:function(){return n}},__esModule:{value:!0}});var d,e,f,g,h,i=((d=a("helpers/data"),d&&d.__esModule&&d||{"default":d}
21).cellMethodLookupFactory,(e=a("helpers/setting"),e&&e.__esModule&&e||{"default":e}).columnFactory,f=a("helpers/object"),f&&f.__esModule&&f||{"default":f}),j=(i.duckSchema,i.deepExtend,i.getProperty),k=(g=a("helpers/array"),g&&g.__esModule&&g||{"default":g}),l=(k.extendArray,k.arrayEach),m=(h=a("helpers/number"),h&&h.__esModule&&h||{"default":h}).rangeEach,n=function(a){var b=void 0!==arguments[1]?arguments[1]:[];this.hot=a,this.data=b,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}};$traceurRuntime.createClass(n,{getData:function(){return this.data},setData:function(a){this.data=a},getAtColumn:function(a){var b=this,c=[];return l(this.data,function(d){var e=b.colToProp(a);d="string"==typeof e?j(d,e):d[e],c.push(d)}),c},getAtRow:function(a){return this.data[a]},getAtCell:function(a,b){return this.data[a][this.colToProp(b)]},getByRange:function(a,b){var c=this,d=Math.min(a.row,b.row),e=Math.min(a.col,b.col),f=Math.max(a.row,b.row),g=Math.max(a.col,b.col),h=[];return m(d,f,function(a){var b,d=c.getAtRow(a);"array"===c.dataType?b=d.slice(e,g):"object"===c.dataType&&(b={},m(e,g,function(a){var e=c.colToProp(a);b[e]=d[e]})),h.push(b)}),h},destroy:function(){this.data=null,this.hot=null}},{})},{"helpers/array":42,"helpers/data":44,"helpers/number":51,"helpers/object":52,"helpers/setting":53}],28:[function(a,b,c){"use strict";function d(a,b,c){function d(a){var d="function"==typeof b.settings.enterMoves?b.settings.enterMoves(event):b.settings.enterMoves;a?c.transformStart(-d.row,-d.col):c.transformStart(d.row,d.col,!0)}function e(a){a?c.transformEnd(-1,0):c.transformStart(-1,0)}function f(a){a?c.transformEnd(1,0):c.transformStart(1,0)}function g(a){a?c.transformEnd(0,1):c.transformStart(0,1)}function h(a){a?c.transformEnd(0,-1):c.transformStart(0,-1)}function i(i){var j,m;if(a.isListening()&&(k.hooks.run(a,"beforeKeyDown",i),!w&&!t(i)&&(b.lastKeyCode=i.keyCode,c.isSelected()))){if(j=(i.ctrlKey||i.metaKey)&&!i.altKey,q&&!q.isWaiting()&&!(o(i.keyCode)||p(i.keyCode)||j||v.isEditorOpened()))return void v.openEditor("",i);switch(m=i.shiftKey?c.setRangeEnd:c.setRangeStart,i.keyCode){case n.A:!v.isEditorOpened()&&j&&(c.selectAll(),i.preventDefault(),r(i));break;case n.ARROW_UP:v.isEditorOpened()&&!q.isWaiting()&&v.closeEditorAndSaveChanges(j),e(i.shiftKey),i.preventDefault(),r(i);break;case n.ARROW_DOWN:v.isEditorOpened()&&!q.isWaiting()&&v.closeEditorAndSaveChanges(j),f(i.shiftKey),i.preventDefault(),r(i);break;case n.ARROW_RIGHT:v.isEditorOpened()&&!q.isWaiting()&&v.closeEditorAndSaveChanges(j),g(i.shiftKey),i.preventDefault(),r(i);break;case n.ARROW_LEFT:v.isEditorOpened()&&!q.isWaiting()&&v.closeEditorAndSaveChanges(j),h(i.shiftKey),i.preventDefault(),r(i);break;case n.TAB:var u="function"==typeof b.settings.tabMoves?b.settings.tabMoves(i):b.settings.tabMoves;i.shiftKey?c.transformStart(-u.row,-u.col):c.transformStart(u.row,u.col,!0),i.preventDefault(),r(i);break;case n.BACKSPACE:case n.DELETE:c.empty(i),v.prepareEditor(),i.preventDefault();break;case n.F2:v.openEditor(null,i),q&&q.enableFullEditMode(),i.preventDefault();break;case n.ENTER:v.isEditorOpened()?(q&&q.state!==k.EditorState.WAITING&&v.closeEditorAndSaveChanges(j),d(i.shiftKey)):a.getSettings().enterBeginsEditing?(v.openEditor(null,i),q&&q.enableFullEditMode()):d(i.shiftKey),i.preventDefault(),s(i);break;case n.ESCAPE:v.isEditorOpened()&&v.closeEditorAndRestoreOriginalValue(j),i.preventDefault();break;case n.HOME:m(i.ctrlKey||i.metaKey?new l(0,b.selRange.from.col):new l(b.selRange.from.row,0)),i.preventDefault(),r(i);break;case n.END:m(i.ctrlKey||i.metaKey?new l(a.countRows()-1,b.selRange.from.col):new l(b.selRange.from.row,a.countCols()-1)),i.preventDefault(),r(i);break;case n.PAGE_UP:c.transformStart(-a.countVisibleRows(),0),i.preventDefault(),r(i);break;case n.PAGE_DOWN:c.transformStart(a.countVisibleRows(),0),i.preventDefault(),r(i)}}}function j(){function b(a,b,c){"TD"==c.nodeName&&(v.openEditor(),q&&q.enableFullEditMode())}a.addHook("afterDocumentKeyDown",i),m.addEventListener(document.documentElement,"keydown",function(b){a.runHooks("afterDocumentKeyDown",b)}),a.view.wt.update("onCellDblClick",b),a.addHook("afterDestroy",function(){w=!0})}var m,q,v=this,w=!1;m=u(a),this.destroyEditor=function(a){this.closeEditor(a)},this.getActiveEditor=function(){return q},this.prepareEditor=function(){var c,d,e,f,g,h,i;
21return q&&q.isWaiting()?void this.closeEditor(!1,!1,function(a){a&&v.prepareEditor()}):(c=b.selRange.highlight.row,d=b.selRange.highlight.col,e=a.colToProp(d),f=a.getCell(c,d),g=a.getDataAtCell(c,d),h=a.getCellMeta(c,d),i=a.getCellEditor(h),void(i?(q=k.editors.getEditor(i,a),q.prepare(c,d,e,f,g,h)):q=void 0))},this.isEditorOpened=function(){return q&&q.isOpened()},this.openEditor=function(a,b){q&&!q.cellProperties.readOnly?q.beginEditing(a,b):q&&q.cellProperties.readOnly&&b&&b.keyCode===n.ENTER&&d()},this.closeEditor=function(a,b,c){q?q.finishEditing(a,b,c):c&&c(!1)},this.closeEditorAndSaveChanges=function(a){return this.closeEditor(!1,a)},this.closeEditorAndRestoreOriginalValue=function(a){return this.closeEditor(!0,a)},j()}Object.defineProperties(c,{EditorManager:{get:function(){return d}},__esModule:{value:!0}});var e,f,g,h,i,j,k=(e=a("browser"),e&&e.__esModule&&e||{"default":e})["default"],l=(f=a("3rdparty/walkontable/src/cell/coords"),f&&f.__esModule&&f||{"default":f}).WalkontableCellCoords,m=(g=a("helpers/unicode"),g&&g.__esModule&&g||{"default":g}),n=m.KEY_CODES,o=m.isMetaKey,p=m.isCtrlKey,q=(h=a("helpers/dom/event"),h&&h.__esModule&&h||{"default":h}),r=q.stopPropagation,s=q.stopImmediatePropagation,t=q.isImmediatePropagationStopped,u=((i=a("editors"),i&&i.__esModule&&i||{"default":i}).getEditor,(j=a("eventManager"),j&&j.__esModule&&j||{"default":j}).eventManager);k.EditorManager=d},{"3rdparty/walkontable/src/cell/coords":5,browser:23,editors:29,eventManager:41,"helpers/dom/event":47,"helpers/unicode":55}],29:[function(a,b,c){"use strict";function d(a){var b,c;c={},b=a,this.getConstructor=function(){return a},this.getInstance=function(a){return a.guid in c||(c[a.guid]=new b(a)),c[a.guid]}}function e(a,b){var c=new d(b);"string"==typeof a&&(m[a]=c,k.editors[l(a)+"Editor"]=b),n.set(b,c)}function f(a,b){var c;if("function"==typeof a)n.get(a)||e(null,a),c=n.get(a);else{if("string"!=typeof a)throw Error('Only strings and functions can be passed as "editor" parameter ');c=m[a]}if(!c)throw Error('No editor registered under name "'+a+'"');return c.getInstance(b)}function g(a){var b;if("string"!=typeof a)throw Error('Only strings and functions can be passed as "editor" parameter ');if(b=m[a],!b)throw Error('No editor registered under name "'+a+'"');return b.getConstructor()}function h(a){return m[a]?!0:!1}Object.defineProperties(c,{registerEditor:{get:function(){return e}},getEditor:{get:function(){return f}},hasEditor:{get:function(){return h}},getEditorConstructor:{get:function(){return g}},__esModule:{value:!0}});var i,j,k=(i=a("browser"),i&&i.__esModule&&i||{"default":i})["default"],l=(j=a("helpers/string"),j&&j.__esModule&&j||{"default":j}).toUpperCaseFirst,m={},n=new WeakMap;k.editors=k.editors||{},k.editors.registerEditor=e,k.editors.getEditor=f},{browser:23,"helpers/string":54}],30:[function(a,b,c){"use strict";function d(a){this.instance=a,this.state=h.EditorState.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}Object.defineProperties(c,{BaseEditor:{get:function(){return d}},__esModule:{value:!0}});var e,f,g,h=(e=a("browser"),e&&e.__esModule&&e||{"default":e})["default"],i=(f=a("helpers/mixed"),f&&f.__esModule&&f||{"default":f}).stringify,j=(g=a("3rdparty/walkontable/src/cell/coords"),g&&g.__esModule&&g||{"default":g}).WalkontableCellCoords;h.editors=h.editors||{},h.editors.BaseEditor=d,h.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"},d.prototype._fireCallbacks=function(a){this._closeCallback&&(this._closeCallback(a),this._closeCallback=null)},d.prototype.init=function(){},d.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},d.prototype.setValue=function(){throw Error("Editor setValue() method unimplemented")},d.prototype.open=function(){throw Error("Editor open() method unimplemented")},d.prototype.close=function(){throw Error("Editor close() method unimplemented")},d.prototype.prepare=function(a,b,c,d,e,f){this.TD=d,this.row=a,this.col=b, 22this.prop=c,this.originalValue=e,this.cellProperties=f,this.instance.view.isMouseDown()&&document.activeElement&&document.activeElement!==document.body?document.activeElement.blur():document.activeElement||document.body.focus(),this.state=h.EditorState.VIRGIN},d.prototype.extend=function(){function a(){c.apply(this,arguments)}function b(a,b){function c(){}return c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a,a}var c=this.constructor;return b(a,c)},d.prototype.saveValue=function(a,b){var c,d;b?(c=this.instance.getSelected(),c[0]>c[2]&&(d=c[0],c[0]=c[2],c[2]=d),c[1]>c[3]&&(d=c[1],c[1]=c[3],c[3]=d),this.instance.populateFromArray(c[0],c[1],a,c[2],c[3],"edit")):this.instance.populateFromArray(this.row,this.col,a,null,null,"edit")},d.prototype.beginEditing=function(a,b){this.state==h.EditorState.VIRGIN&&(this.instance.view.scrollViewport(new j(this.row,this.col)),this.instance.view.render(),this.state=h.EditorState.EDITING,a="string"==typeof a?a:this.originalValue,this.setValue(i(a)),this.open(b),this._opened=!0,this.focus(),this.instance.view.render())},d.prototype.finishEditing=function(a,b,c){var d,e=this;if(c){var f=this._closeCallback;this._closeCallback=function(a){f&&f(a),c(a)}}
22if(!this.isWaiting()){if(this.state==h.EditorState.VIRGIN)return void this.instance._registerTimeout(setTimeout(function(){e._fireCallbacks(!0)},0));if(this.state==h.EditorState.EDITING){if(a)return this.cancelChanges(),void this.instance.view.render();var g=this.getValue();d=this.instance.getSettings().trimWhitespace?[["string"==typeof g?String.prototype.trim.call(g||""):g]]:[[g]],this.state=h.EditorState.WAITING,this.saveValue(d,b),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(a){e.state=h.EditorState.FINISHED,e.discardEditor(a)}):(this.state=h.EditorState.FINISHED,this.discardEditor(!0))}}},d.prototype.cancelChanges=function(){this.state=h.EditorState.FINISHED,this.discardEditor()},d.prototype.discardEditor=function(a){this.state===h.EditorState.FINISHED&&(a===!1&&this.cellProperties.allowInvalid!==!0?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=h.EditorState.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=h.EditorState.VIRGIN,this._fireCallbacks(!0)))},d.prototype.enableFullEditMode=function(){this._fullEditMode=!0},d.prototype.isInFullEditMode=function(){return this._fullEditMode},d.prototype.isOpened=function(){return this._opened},d.prototype.isWaiting=function(){return this.state===h.EditorState.WAITING},d.prototype.checkEditorSection=function(){var a=this.instance.countRows(),b="";return this.row<this.instance.getSettings().fixedRowsTop?b=this.col<this.instance.getSettings().fixedColumnsLeft?"top-left-corner":"top":this.instance.getSettings().fixedRowsBottom&&this.row>=a-this.instance.getSettings().fixedRowsBottom?b=this.col<this.instance.getSettings().fixedColumnsLeft?"bottom-left-corner":"bottom":this.col<this.instance.getSettings().fixedColumnsLeft&&(b="left"),b}},{"3rdparty/walkontable/src/cell/coords":5,browser:23,"helpers/mixed":50}],31:[function(a,b,c){"use strict";function d(a){D=!1;var b=this.getActiveEditor();if(n(a.keyCode)||a.keyCode===m.BACKSPACE||a.keyCode===m.DELETE||a.keyCode===m.INSERT){var c=0;if(a.keyCode===m.C&&(a.ctrlKey||a.metaKey))return;b.isOpened()||(c+=10),b.htEditor&&b.instance._registerTimeout(setTimeout(function(){b.queryChoices(b.TEXTAREA.value),D=!0},c))}}Object.defineProperties(c,{AutocompleteEditor:{get:function(){return C}},__esModule:{value:!0}});var e,f,g,h,i,j,k,l=((e=a("browser"),e&&e.__esModule&&e||{"default":e})["default"],f=a("helpers/unicode"),f&&f.__esModule&&f||{"default":f}),m=l.KEY_CODES,n=l.isPrintableChar,o=(g=a("helpers/mixed"),g&&g.__esModule&&g||{"default":g}).stringify,p=(h=a("helpers/array"),h&&h.__esModule&&h||{"default":h}).pivot,q=(i=a("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}),r=q.addClass,s=q.getCaretPosition,t=q.getScrollbarWidth,u=q.getSelectionEndPosition,v=q.outerWidth,w=q.outerHeight,x=q.offset,y=q.getTrimmingContainer,z=q.setCaretPosition,A=(j=a("editors"),j&&j.__esModule&&j||{"default":j}).registerEditor,B=(k=a("handsontableEditor"),k&&k.__esModule&&k||{"default":k}).HandsontableEditor,C=B.prototype.extend();C.prototype.init=function(){B.prototype.init.apply(this,arguments),this.query=null,this.choices=[]},C.prototype.createElements=function(){B.prototype.createElements.apply(this,arguments),r(this.htContainer,"autocompleteEditor"),r(this.htContainer,-1===window.navigator.platform.indexOf("Mac")?"":"htMacScroll")};var D=!1;C.prototype.prepare=function(){this.instance.addHook("beforeKeyDown",d),B.prototype.prepare.apply(this,arguments)},C.prototype.open=function(){this.TEXTAREA_PARENT.style.overflow="auto",B.prototype.open.apply(this,arguments),this.TEXTAREA_PARENT.style.overflow="";var a=this.htEditor.getInstance(),b=this,c=void 0===this.cellProperties.trimDropdown?!0:this.cellProperties.trimDropdown;this.TEXTAREA.style.visibility="visible",this.focus(),a.updateSettings({colWidths:c?[v(this.TEXTAREA)-2]:void 0,width:c?v(this.TEXTAREA)+t()+2:void 0,afterRenderer:function(a,c,d,e,f){var g,h,i=this.getCellMeta(c,d).filteringCaseSensitive===!0;f=o(f),f&&(g=i?f.indexOf(this.query):f.toLowerCase().indexOf(b.query.toLowerCase()),-1!=g&&(h=f.substr(g,b.query.length),a.innerHTML=f.replace(h,"<strong>"+h+"</strong>")))},autoColumnSize:!0,modifyColWidth:function(a,b){var d=this.getPlugin("autoColumnSize").widths;return d[b]&&(a=d[b]),c?a:a+15}}),this.htEditor.view.wt.wtTable.holder.parentNode.style["padding-right"]=t()+2+"px",D&&(D=!1),b.instance._registerTimeout(setTimeout(function(){b.queryChoices(b.TEXTAREA.value)},0))},C.prototype.close=function(){B.prototype.close.apply(this,arguments)},C.prototype.queryChoices=function(a){this.query=a;var b=this.cellProperties.source,c=this.cellProperties.filter,d=this.cellProperties.filteringCaseSensitive;if("function"==typeof b){var e=this;b.call(this.cellProperties,a,function(a){e.updateChoicesList(a)})}else if(Array.isArray(b)){var f;if(a&&c!==!1){var g=a.toLowerCase();
22f=b.filter(function(b){return d?-1!=b.indexOf(a):-1!=b.toLowerCase().indexOf(g)})}else f=b;this.updateChoicesList(f)}else this.updateChoicesList([])},C.prototype.updateChoicesList=function(a){var b=s(this.TEXTAREA),c=u(this.TEXTAREA),d=this.cellProperties.sortByRelevance,e=this.cellProperties.filter,f=null,g=null;if(d&&(f=C.sortByRelevance(this.getValue(),a,this.cellProperties.filteringCaseSensitive)),e===!1)g=f?f[0]:0;else{for(var h=[],i=0,j=a.length;j>i;i++)h.push(f?a[f[i]]:a[i]);g=0,a=h}this.choices=a,this.htEditor.loadData(p([a])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),this.cellProperties.strict===!0&&this.highlightBestMatchingChoice(g),this.instance.listen(),this.TEXTAREA.focus(),z(this.TEXTAREA,b,b===c?void 0:c)},C.prototype.flipDropdownIfNeeded=function(){var a=x(this.TEXTAREA),b=w(this.TEXTAREA),c=this.getDropdownHeight(),d=y(this.instance.view.wt.wtTable.TABLE),e={row:0,col:0};d!==window&&(e=x(d));var f=e.top+(d.scrollHeight-d.scrollTop),g=e.top+d.scrollHeight,h=a.top+b+c>f;h&&g>f?this.flipDropdown(c):this.unflipDropdown()},C.prototype.flipDropdown=function(a){var b=this.htEditor.rootElement.style;b.position="absolute",b.top=-a+"px",this.htEditor.flipped=!0},C.prototype.unflipDropdown=function(){var a=this.htEditor.rootElement.style;"absolute"===a.position&&(a.position="",a.top=""),this.htEditor.flipped=void 0},C.prototype.updateDropdownHeight=function(){var a=this.htEditor.getColWidth(0)+t()+2,b=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:b?void 0:a}),this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer()},C.prototype.finishEditing=function(a){a||this.instance.removeHook("beforeKeyDown",d),B.prototype.finishEditing.a
22pply(this,arguments)},C.prototype.highlightBestMatchingChoice=function(a){"number"==typeof a?this.htEditor.selectCell(a,0):this.htEditor.deselectCell()},C.sortByRelevance=function(a,b,c){var d,e,f,g,h=[],i=a.length,j=[],k=b.length;if(0===i){for(g=0;k>g;g++)j.push(g);return j}for(g=0;k>g;g++)d=o(b[g]),e=c?d.indexOf(a):d.toLowerCase().indexOf(a.toLowerCase()),-1!=e&&(f=d.length-e-i,h.push({baseIndex:g,index:e,charsLeft:f,value:d}));for(h.sort(function(a,b){return-1===b.index?-1:-1===a.index?1:a.index<b.index?-1:b.index<a.index?1:a.index===b.index?a.charsLeft<b.charsLeft?-1:a.charsLeft>b.charsLeft?1:0:void 0}),g=0,k=h.length;k>g;g++)j.push(h[g].baseIndex);return j},C.prototype.getDropdownHeight=function(){var a=this.htEditor.getInstance().getRowHeight(0)||23,b=this.cellProperties.visibleRows;return this.choices.length>=b?b*a:this.choices.length*a+8},C.prototype.allowKeyEventPropagation=function(a){var b={row:this.htEditor.getSelectedRange()?this.htEditor.getSelectedRange().from.row:-1},c=!1;return a===m.ARROW_DOWN&&b.row>0&&b.row<this.htEditor.countRows()-1&&(c=!0),a===m.ARROW_UP&&b.row>-1&&(c=!0),c},A("autocomplete",C)},{browser:23,editors:29,handsontableEditor:35,"helpers/array":42,"helpers/dom/element":46,"helpers/mixed":50,"helpers/unicode":55}],32:[function(a,b,c){"use strict";Object.defineProperties(c,{CheckboxEditor:{get:function(){return j}},__esModule:{value:!0}});var d,e,f,g=(d=a("editors"),d&&d.__esModule&&d||{"default":d}).registerEditor,h=(e=a("_baseEditor"),e&&e.__esModule&&e||{"default":e}).BaseEditor,i=(f=a("helpers/dom/element"),f&&f.__esModule&&f||{"default":f}).hasClass,j=function(){$traceurRuntime.superConstructor(k).apply(this,arguments)},k=j;$traceurRuntime.createClass(j,{beginEditing:function(a,b){if(void 0===b){var c=this.TD.querySelector('input[type="checkbox"]');i(c,"htBadValue")||c.click()}},finishEditing:function(){},init:function(){},open:function(){},close:function(){},getValue:function(){},setValue:function(){},focus:function(){}},{},h),g("checkbox",j)},{_baseEditor:30,editors:29,"helpers/dom/element":46}],33:[function(a,b,c){"use strict";Object.defineProperties(c,{DateEditor:{get:function(){return A}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k,l,m,n=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],o=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),p=o.addClass,q=o.outerHeight,r=(f=a("helpers/object"),f&&f.__esModule&&f||{"default":f}).deepExtend,s=(g=a("eventManager"),g&&g.__esModule&&g||{"default":g}).EventManager,t=(h=a("editors"),h&&h.__esModule&&h||{"default":h}),u=(t.getEditor,t.registerEditor),v=(i=a("helpers/unicode"),i&&i.__esModule&&i||{"default":i}).isMetaKey,w=(j=a("helpers/dom/event"),j&&j.__esModule&&j||{"default":j}).stopPropagation,x=(k=a("textEditor"),k&&k.__esModule&&k||{"default":k}).TextEditor,y=(l=a("moment"),l&&l.__esModule&&l||{"default":l})["default"],z=(m=a("pikaday"),m&&m.__esModule&&m||{"default":m})["default"];n.editors=n.editors||{},n.editors.DateEditor=A;var A=function(a){this.$datePicker=null,this.datePicker=null,this.datePickerStyle=null,this.defaultDateFormat="DD/MM/YYYY",this.isCellEdited=!1,this.parentDestroyed=!1,$traceurRuntime.superConstructor(B).call(this,a)},B=A;$traceurRuntime.createClass(A,{init:function(){var a=this;if("function"!=typeof y)throw new Error("You need to include moment.js to your project.");if("function"!=typeof z)throw new Error("You need to include Pikaday to your project.");$traceurRuntime.superGet(this,B.prototype,"init").call(this),this.instance.addHook("afterDestroy",function(){a.parentDestroyed=!0,a.destroyElements()})},createElements:function(){$traceurRuntime.superGet(this,B.prototype,"createElements").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,p(this.datePicker,"htDatepickerHolder"),document.body.appendChild(this.datePicker),this.$datePicker=new z(this.getDatePickerConfig());var a=new s(this);a.addEventListener(this.datePicker,"mousedown",function(a){return w(a)}),this.hideDatepicker()},destroyElements:function(){this.$datePicker.destroy()},prepare:function(a,b,c,d,e,f){this._opened=!1,$traceurRuntime.superGet(this,B.prototype,"prepare").call(this,a,b,c,d,e,f)},open:function(){var a=void 0!==arguments[0]?arguments[0]:null;$traceurRuntime.superGet(this,B.prototype,"open").call(this),this.showDatepicker(a)},close:function(){var a=this;this._opened=!1,this.instance._registerTimeout(setTimeout(function(){a.instance.selection.refreshBorders()},0)),$traceurRuntime.superGet(this,B.prototype,"close").call(this)},finishEditing:function(){var a=void 0!==arguments[0]?arguments[0]:!1,b=void 0!==arguments[1]?arguments[1]:!1;if(a){var c=this.originalValue;void 0!==c&&this.setValue(c)}this.hideDatepicker(),$traceurRuntime.superGet(this,B.prototype,"finishEditing").
22call(this,a,b)},showDatepicker:function(a){this.$datePicker.config(this.getDatePickerConfig());var b,c=this.TD.getBoundingClientRect(),d=this.cellProperties.dateFormat||this.defaultDateFormat,e=this.$datePicker.config(),f=this.instance.view.isMouseDown(),g=a?v(a.keyCode):!1;this.datePickerStyle.top=window.pageYOffset+c.top+q(this.TD)+"px",this.datePickerStyle.left=window.pageXOffset+c.left+"px",this.$datePicker._onInputFocus=function(){},e.format=d,this.originalValue?(b=this.originalValue,y(b,d,!0).isValid()&&this.$datePicker.setMoment(y(b,d),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),g||f||this.setValue("")):this.cellProperties.defaultDate?(b=this.cellProperties.defaultDate,e.defaultDate=b,y(b,d,!0).isValid()&&this.$datePicker.setMoment(y(b,d),!0),g||f||this.setValue("")):this.$datePicker.gotoToday(),this.datePickerStyle.display="block",this.$datePicker.show()},hideDatepicker:function(){this.datePickerStyle.display="none",this.$datePicker.hide()},getDatePickerConfig:function(){var a=this,b=this.TEXTAREA,c={};this.cellProperties&&this.cellProperties.datePickerConfig&&r(c,this.cellProperties.datePickerConfig);var d=c.onSelect,e=c.onClose;return c.field=b,c.trigger=b,c.container=this.datePicker,c.bound=!1,c.format=c.format||this.defaultDateFormat,c.reposition=c.reposition||!1,c.onSelect=function(b){isNaN(b.getTime())||(b=y(b).format(a.cellProperties.dateFormat||a.defaultDateFormat)),a.setValue(b),a.hideDatepicker(),d&&d()},c.onClose=function(){a.parentDestroyed||a.finishEditing(!1),e&&e()},c}},{},x),u("date",A)},{browser:23,editors:29,eventManager:41,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/object":52,"helpers/unicode":55,moment:void 0,pikaday:void 0,textEditor:40}],34:[function(a,b,c){"use strict";Object.defineProperties(c,{DropdownEditor:{get:function(){return k}},__esModule:{value:!0}});var d,e,f,g=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],h=(e=a("editors"),e&&e.__esModule&&e||{"default":e}),i=(h.getEditor,h.registerEditor),j=(h.getEditorConstructor,(f=a("autocompleteEditor"),f&&f.__esModule&&f||{"default":f}).AutocompleteEditor),k=function(){$traceurRuntime.superConstructor(l).apply(this,arguments)},l=k;$traceurRuntime.createClass(k,{prepare:function(a,b,c,d,e,f){$traceurRuntime.superGet(this,l.prototype,"prepare").call(this,a,b,c,d,e,f),this.cellProperties.filter=!1,this.cellProperties.strict=!0}},{},j),g.hooks.add("beforeValidate",function(a,b,c){var d=this.getCellMeta(b,this.propToCol(c));d.editor===g.editors.DropdownEditor&&void 0===d.strict&&(d.filter=!1,d.strict=!0)}),i("dropdown",k)},{autocompleteEditor:31,browser:23,editors:29}],35:[function(a,b,c){"use strict";Object.defineProperties(c,{HandsontableEditor:{get:function(){return u}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],l=(e=a("helpers/unicode"),e&&e.__esModule&&e||{"default":e}).KEY_CODES,m=(f=a("helpers/object"),f&&f.__esModule&&f||{"default":f}).extend,n=(g=a("helpers/dom/element"),g&&g.__esModule&&g||{"default":g}).setCaretPosition,o=(h=a("helpers/dom/event"),h&&h.__esModule&&h||{"default":h}),p=o.stopImmediatePropagation,q=o.isImmediatePropagationStopped,r=(i=a("editors"),i&&i.__esModule&&i||{"default":i}),s=(r.getEditor,r.registerEditor),t=(j=a("textEditor"),j&&j.__esModule&&j||{"default":j}).TextEditor,u=t.prototype.extend();u.prototype.createElements=function(){t.prototype.createElements.apply(this,arguments);var a=document.createElement("DIV");a.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(a),this.htContainer=a,this.assignHooks()},u.prototype.prepare=function(a,b,c,d,e,f){t.prototype.prepare.apply(this,arguments);var g=this,h={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,afterOnCellMouseDown:function(){var a=this.getValue();void 0!==a&&g.setValue(a),g.instance.destroyEditor()}};this.cellProperties.handsontable&&m(h,f.handsontable),this.htOptions=h};var v=function(a){if(!q(a)){var b,c=this.getActiveEditor(),d=c.htEditor.getInstance();if(a.keyCode==l.ARROW_DOWN)if(d.getSelected()||d.flipped){if(d.getSelected())if(d.flipped)b=d.getSelected()[0]+1;else if(!d.flipped){var e=d.getSelected()[0],f=d.countRows()-1;
22b=Math.min(f,e+1)}}else b=0;else if(a.keyCode==l.ARROW_UP)if(!d.getSelected()&&d.flipped)b=d.countRows()-1;else if(d.getSelected())if(d.flipped){var e=d.getSelected()[0];b=Math.max(0,e-1)}else{var e=d.getSelected()[0];b=e-1}void 0!==b&&(0>b||d.flipped&&b>d.countRows()-1?d.deselectCell():d.selectCell(b,0),d.getData().length&&(a.preventDefault(),p(a),c.instance.listen(),c.TEXTAREA.focus()))}};u.prototype.open=function(){this.instance.addHook("beforeKeyDown",v),t.prototype.open.apply(this,arguments),this.htEditor&&this.htEditor.destroy(),this.htEditor=new k(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"),n(this.TEXTAREA,0,this.TEXTAREA.value.length)},u.prototype.close=function(){this.instance.removeHook("beforeKeyDown",v),this.instance.listen(),t.prototype.close.apply(this,arguments)},u.prototype.focus=function(){this.instance.listen(),t.prototype.focus.apply(this,arguments)},u.prototype.beginEditing=function(){var a=this.instance.getSettings().onBeginEditing;a&&a()===!1||t.prototype.beginEditing.apply(this,arguments)},u.prototype.finishEditing=function(){if(this.htEditor&&this.htEditor.isListening()&&this.instance.listen(),this.htEditor&&this.htEditor.getSelected()){var a=this.htEditor.getInstance().getValue();void 0!==a&&this.setValue(a)}
22return t.prototype.finishEditing.apply(this,arguments)},u.prototype.assignHooks=function(){var a=this;this.instance.addHook("afterDestroy",function(){a.htEditor&&a.htEditor.destroy()})},s("handsontable",u)},{browser:23,editors:29,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/object":52,"helpers/unicode":55,textEditor:40}],36:[function(a,b,c){"use strict";Object.defineProperties(c,{MobileTextEditor:{get:function(){return D}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k=((d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],(e=a("helpers/unicode"),e&&e.__esModule&&e||{"default":e}).KEY_CODES),l=(f=a("helpers/dom/event"),f&&f.__esModule&&f||{"default":f}),m=l.stopImmediatePropagation,n=l.isImmediatePropagationStopped,o=(g=a("helpers/dom/element"),g&&g.__esModule&&g||{"default":g}),p=o.addClass,q=o.getScrollLeft,r=o.getScrollTop,s=o.hasClass,t=o.isChildOf,u=o.offset,v=o.outerHeight,w=o.outerWidth,x=o.removeClass,y=o.setCaretPosition,z=(h=a("editors"),h&&h.__esModule&&h||{"default":h}),A=(z.getEditor,z.registerEditor),B=(i=a("_baseEditor"),i&&i.__esModule&&i||{"default":i}).BaseEditor,C=(j=a("eventManager"),j&&j.__esModule&&j||{"default":j}).eventManager,D=B.prototype.extend(),E={},F=function(){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";for(var a in this.controls)this.controls.hasOwnProperty(a)&&this.positionControls.appendChild(this.controls[a])};D.prototype.valueChanged=function(){return this.initValue!=this.getValue()},D.prototype.init=function(){var a=this;this.eventManager=C(this.instance),this.createElements(),this.bindEvents(),this.instance.addHook("afterDestroy",function(){a.destroy()})},D.prototype.getValue=function(){return this.TEXTAREA.value},D.prototype.setValue=function(a){this.initValue=a,this.TEXTAREA.value=a},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"),p(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),F.call(this),document.body.appendChild(this.editorContainer)},D.prototype.onBeforeKeyDown=function(a){var b=this,c=b.getActiveEditor();if(a.target===c.TEXTAREA&&!n(a))switch(a.keyCode){case k.ENTER:c.close(),a.preventDefault();break;case k.BACKSPACE:m(a)}},D.prototype.open=function(){this.instance.addHook("beforeKeyDown",this.onBeforeKeyDown),p(this.editorContainer,"active"),x(this.cellPointer,"hidden"),this.updateEditorPosition()},D.prototype.focus=function(){this.TEXTAREA.focus(),y(this.TEXTAREA,this.TEXTAREA.value.length)},D.prototype.close=function(){this.TEXTAREA.blur(),this.instance.removeHook("beforeKeyDown",this.onBeforeKeyDown),x(this.editorContainer,"active")},D.prototype.scrollToView=function(){var a=this.instance.getSelectedRange().highlight;this.instance.view.scrollViewport(a)},D.prototype.hideCellPointer=function(){s(this.cellPointer,"hidden")||p(this.cellPointer,"hidden")},D.prototype.updateEditorPosition=function(a,b){if(a&&b)a=parseInt(a,10),b=parseInt(b,10),this.editorContainer.style.top=b+"px",this.editorContainer.style.left=a+"px";else{var c=this.instance.getSelected(),d=this.instance.getCell(c[0],c[1]);if(E.cellPointer||(E.cellPointer={height:v(this.cellPointer),width:w(this.cellPointer)}),E.editorContainer||(E.editorContainer={width:w(this.editorContainer)}),void 0!==d){var e=this.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer==window?0:q(this.instance.view.wt.wtOverlays.leftOverlay.holder),f=this.instance.view.wt.wtOverlays.topOverlay.trimmingContainer==window?0:r(this.instance.view.wt.wtOverlays.topOverlay.holder),g=u(d),h=w(d),i={x:e,y:f};this.editorContainer.style.top=parseInt(g.top+v(d)-i.y+E.cellPointer.height,10)+"px",this.editorContainer.style.left=parseInt(window.innerWidth/2-E.editorContainer.width/2,10)+"px",g.left+h/2>parseInt(this.editorContainer.style.left,10)+E.editorContainer.width?this.editorContainer.style.left=window.innerWidth-E.editorContainer.width+"px":g.left+h/2<parseInt(this.editorContainer.style.left,10)+20&&(this.editorContainer.style.left="0px"),this.cellPointer.style.left=parseInt(g.left-E.cellPointer.width/2-u(this.editorContainer).left+h/2-i.x,10)+"px"}}},D.prototype.updateEditorData=function(){var a=this.instance.getSelected(),b=this.instance.getDataAtCell(a[0],a[1]);this.row=a[0],this.col=a[1],this.setValue(b),this.updateEditorPosition()},D.prototype.prepareAndSave=function(){var a;return this.valueChanged()?(a=this.instance.getSettings().trimWhitespace?[[String.prototype.trim.call(this.getValue())]]:[[this.getValue()]],void this.saveValue(a)):!0},D.prototype.bindEvents=function(){var a=this;this.eventManager.addEventListener(this.controls.leftButton,"touchend",function(b){a.prepareAndSave(),a.instance.selection.transformStart(0,-1,null,!0),a.updateEditorData(),b.preventDefault()}),this.eventManager.addEventListener(this.controls.rightButton,"touchend",function(b){a.prepareAndSave(),a.instance.selection.transformStart(0,1,null,!0),a.updateEditorData(),b.preventDefault()}),this.eventManager.addEventListener(this.controls.upButton,"touchend",function(b){a.prepareAndSave(),a.instance.selection.transformStart(-1,0,null,!0),a.updateEditorData(),b.preventDefault()}),this.eventManager.addEventListener(this.controls.downButton,"touchend",function(b){a.prepareAndSave(),a.instance.selection.transformStart(1,0,null,!0),a.updateEditorData(),b.preventDefault()}),this.eventManager.addEventListener(this.moveHandle,"touchstart",function(b){if(1==b.touches.length){var c=b.touches[0],d={x:a.editorContainer.offsetLeft,y:a.editorContainer.offsetTop},e={x:c.pageX-d.x,y:c.pageY-d.y};a.eventManager.addEventListener(this,"touchmove",function(b){var c=b.touches[0];a.updateEditorPosition(c.pageX-e.x,c.pageY-e.y),a.hideCellPointer(),b.preventDefault()})}}),this.eventManager.addEventListener(document.body,"touchend",function(b){t(b.target,a.editorContainer)||t(b.target,a.instance.rootElement)||a.close()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.leftOverlay.holder,"scroll",function(){a.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer!=window&&a.hideCellPointer()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.topOverlay.holder,"scroll",function(){a.instance.view.wt.wtOverlays.topOverlay.trimmingContainer!=window&&a.hideCellPointer()})},D.prototype.destroy=function(){this.eventManager.clear(),this.editorContainer.parentNode.removeChild(this.editorContainer)},A("mobile",D)},{_baseEditor:30,browser:23,editors:29,eventManager:41,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/unicode":55}],37:[function(a,b,c){"use strict";Object.defineProperties(c,{NumericEditor:{get:function(){return j}},__esModule:{value:!0}});var d,e,f,g=(d=a("numbro"),d&&d.__esModule&&d||{"default":d}
22)["default"],h=(e=a("editors"),e&&e.__esModule&&e||{"default":e}).registerEditor,i=(f=a("textEditor"),f&&f.__esModule&&f||{"default":f}).TextEditor,j=function(){$traceurRuntime.superConstructor(k).apply(this,arguments)},k=j;$traceurRuntime.createClass(j,{beginEditing:function(a){if("undefined"==typeof a&&this.originalValue){"undefined"!=typeof this.cellProperties.language&&g.culture(this.cellProperties.language);var b=g.cultureData().delimiters.decimal;a=(""+this.originalValue).replace(".",b)}$traceurRuntime.superGet(this,k.prototype,"beginEditing").call(this,a)}},{},i),h("numeric",j)},{editors:29,numbro:void 0,textEditor:40}],38:[function(a,b,c){"use strict";Object.defineProperties(c,{PasswordEditor:{get:function(){return l}},__esModule:{value:!0}});var d,e,f,g,h=((d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}).empty),i=(f=a("editors"),f&&f.__esModule&&f||{"default":f}),j=(i.getEditor,i.registerEditor),k=(g=a("textEditor"),g&&g.__esModule&&g||{"default":g}).TextEditor,l=function(){$traceurRuntime.superConstructor(m).apply(this,arguments)},m=l;$traceurRuntime.createClass(l,{createElements:function(){$traceurRuntime.superGet(this,m.prototype,"createElements").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,h(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}},{},k),j("password",l)},{browser:23,editors:29,"helpers/dom/element":46,textEditor:40}],39:[function(a,b,c){"use strict";Object.defineProperties(c,{SelectEditor:{get:function(){return A}},__esModule:{value:!0}});var d,e,f,g,h,i,j=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],k=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),l=k.addClass,m=k.empty,n=k.fastInnerHTML,o=k.getComputedStyle,p=k.getCssTransform,q=k.getScrollableElement,r=k.offset,s=k.outerHeight,t=k.outerWidth,u=k.resetCssTransform,v=(f=a("helpers/dom/event"),f&&f.__esModule&&f||{"default":f}).stopImmediatePropagation,w=(g=a("helpers/unicode"),g&&g.__esModule&&g||{"default":g}).KEY_CODES,x=(h=a("editors"),h&&h.__esModule&&h||{"default":h}
22),y=(x.getEditor,x.registerEditor),z=(i=a("_baseEditor"),i&&i.__esModule&&i||{"default":i}).BaseEditor,A=z.prototype.extend();A.prototype.init=function(){this.select=document.createElement("SELECT"),l(this.select,"htSelectEditor"),this.select.style.display="none",this.instance.rootElement.appendChild(this.select),this.registerHooks()},A.prototype.registerHooks=function(){var a=this;this.instance.addHook("afterScrollHorizontally",function(){return a.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){return a.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){return a.refreshDimensions()}),this.instance.addHook("afterRowResize",function(){return a.refreshDimensions()})},A.prototype.prepare=function(){z.prototype.prepare.apply(this,arguments);var a,b=this.cellProperties.selectOptions;a=this.prepareOptions("function"==typeof b?b(this.row,this.col,this.prop):b),m(this.select);for(var c in a)if(a.hasOwnProperty(c)){var d=document.createElement("OPTION");d.value=c,n(d,a[c]),this.select.appendChild(d)}},A.prototype.prepareOptions=function(a){var b={};if(Array.isArray(a))for(var c=0,d=a.length;d>c;c++)b[a[c]]=a[c];else"object"==typeof a&&(b=a);return b},A.prototype.getValue=function(){return this.select.value},A.prototype.setValue=function(a){this.select.value=a};var B=function(a){var b=this,c=b.getActiveEditor();switch(a.keyCode){case w.ARROW_UP:var d=c.select.selectedIndex-1;d>=0&&(c.select[d].selected=!0),v(a),a.preventDefault();break;case w.ARROW_DOWN:var e=c.select.selectedIndex+1;e<=c.select.length-1&&(c.select[e].selected=!0),v(a),a.preventDefault()}};A.prototype.open=function(){this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.instance.addHook("beforeKeyDown",B)},A.prototype.close=function(){this._opened=!1,this.select.style.display="none",this.instance.removeHook("beforeKeyDown",B)},A.prototype.focus=function(){this.select.focus()},A.prototype.refreshDimensions=function(){if(this.state===j.EditorState.EDITING){if(this.TD=this.getEditedCell(),!this.TD)return void this.close();{var a,b=t(this.TD)+1,c=s(this.TD)+1,d=r(this.TD),e=r(this.instance.rootElement),f=q(this.TD),g=d.top-e.top-1-(f.scrollTop||0),h=d.left-e.left-1-(f.scrollLeft||0),i=this.checkEditorSection(),k=this.instance.getSettings();k.rowHeaders?1:0,k.colHeaders?1:0}switch(i){case"top":a=p(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":a=p(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":a=p(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":a=p(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":a=p(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}0===this.instance.getSelected()[0]&&(g+=1),0===this.instance.getSelected()[1]&&(h+=1);var l=this.select.style;a&&-1!=a?l[a[0]]=a[1]:u(this.select);var m=o(this.TD);parseInt(m.borderTopWidth,10)>0&&(c-=1),parseInt(m.borderLeftWidth,10)>0&&(b-=1),l.height=c+"px",l.minWidth=b+"px",l.top=g+"px",l.left=h+"px",l.margin="0px"}},A.prototype.getEditedCell=function(){var a,b=this.checkEditorSection();switch(b){case"top":a=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=101; 23 24break;case"corner":a=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=103;break;case"left":a=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=102;break;default:a=this.instance.getCell(this.row,this.col),this.select.style.zIndex=""}return-1!=a&&-2!=a?a:void 0},y("select",A)},{_baseEditor:30,browser:23,editors:29,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/unicode":55}],40:[function(a,b,c){"use strict";Object.defineProperties(c,{TextEditor:{get:function(){return J}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k,l=(d=a("browser"),d&&d.__esModule&&d||{"default":d}
24)["default"],m=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),n=m.addClass,o=m.getCaretPosition,p=m.getComputedStyle,q=m.getCssTransform,r=m.getScrollableElement,s=m.getScrollbarWidth,t=m.innerWidth,u=m.offset,v=m.resetCssTransform,w=m.setCaretPosition,x=m.hasVerticalScrollbar,y=m.hasHorizontalScrollbar,z=(f=a("autoResize"),f&&f.__esModule&&f||{"default":f})["default"],A=(g=a("_baseEditor"),g&&g.__esModule&&g||{"default":g}).BaseEditor,B=(h=a("eventManager"),h&&h.__esModule&&h||{"default":h}).eventManager,C=(i=a("editors"),i&&i.__esModule&&i||{"default":i}),D=(C.getEditor,C.registerEditor),E=(j=a("helpers/unicode"),j&&j.__esModule&&j||{"default":j}).KEY_CODES,F=(k=a("helpers/dom/event"),k&&k.__esModule&&k||{"default":k}),G=F.stopPropagation,H=F.stopImmediatePropagation,I=F.isImmediatePropagationStopped,J=A.prototype.extend();J.prototype.init=function(){var a=this;this.createElements(),this.eventManager=B(this),this.bindEvents(),this.autoResize=z(),this.instance.addHook("afterDestroy",function(){a.destroy()})},J.prototype.getValue=function(){return this.TEXTAREA.value},J.prototype.setValue=function(a){this.TEXTAREA.value=a};var K=function(a){var b,c=this,d=c.getActiveEditor();if(b=(a.ctrlKey||a.metaKey)&&!a.altKey,a.target===d.TEXTAREA&&!I(a)){if(17===a.keyCode||224===a.keyCode||91===a.keyCode||93===a.keyCode)return void H(a);switch(a.keyCode){case E.ARROW_RIGHT:d.isInFullEditMode()&&(!d.isWaiting()&&!d.allowKeyEventPropagation||!d.isWaiting()&&d.allowKeyEventPropagation&&!d.allowKeyEventPropagation(a.keyCode))&&H(a);break;case E.ARROW_LEFT:d.isInFullEditMode()&&(!d.isWaiting()&&!d.allowKeyEventPropagation||!d.isWaiting()&&d.allowKeyEventPropagation&&!d.allowKeyEventPropagation(a.keyCode))&&H(a);break;case E.ARROW_UP:case E.ARROW_DOWN:d.isInFullEditMode()&&(!d.isWaiting()&&!d.allowKeyEventPropagation||!d.isWaiting()&&d.allowKeyEventPropagation&&!d.allowKeyEventPropagation(a.keyCode))&&H(a);break;case E.ENTER:var e=d.instance.getSelected(),f=!(e[0]===e[2]&&e[1]===e[3]);if(b&&!f||a.altKey){if(d.isOpened()){var g=o(d.TEXTAREA),h=d.getValue(),i=h.slice(0,g)+"\n"+h.slice(g);d.setValue(i),w(d.TEXTAREA,g+1)}else d.beginEditing(d.originalValue+"\n");H(a)}a.preventDefault();break;case E.A:case E.X:case E.C:case E.V:b&&H(a);break;case E.BACKSPACE:case E.DELETE:case E.HOME:case E.END:H(a)}-1===[E.ARROW_UP,E.ARROW_RIGHT,E.ARROW_DOWN,E.ARROW_LEFT].indexOf(a.keyCode)&&d.autoResize.resize(String.fromCharCode(a.keyCode))}};J.prototype.open=function(){this.refreshDimensions(),this.instance.addHook("beforeKeyDown",K)},J.prototype.close=function(){this.textareaParentStyle.display="none",this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.instance.removeHook("beforeKeyDown",K)},J.prototype.focus=function(){this.TEXTAREA.focus(),w(this.TEXTAREA,this.TEXTAREA.value.length)},J.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),n(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),n(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 a=this;this.instance._registerTimeout(setTimeout(function(){a.refreshDimensions()},0))},J.prototype.getEditedCell=function(){var a,b=this.checkEditorSection();switch(b){case"top":a=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=101;break;case"top-left-corner":a=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"bottom-left-corner":a=this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"left":a=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;case"bottom":a=this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;default:a=this.instance.getCell(this.row,this.col),this.textareaParentStyle.zIndex=""}
24return-1!=a&&-2!=a?a:void 0},J.prototype.refreshDimensions=function(){if(this.state===l.EditorState.EDITING){if(this.TD=this.getEditedCell(),!this.TD)return void this.close(!0);var a,b=u(this.TD),c=u(this.instance.rootElement),d=r(this.TD),e=this.instance.countRows(),f=b.top-c.top-1-(d.scrollTop||0),g=b.left-c.left-1-(d.scrollLeft||0),h=this.instance.getSettings(),i=(this.instance.hasRowHeaders(),this.instance.hasColHeaders()),j=this.checkEditorSection(),k=this.TD.style.backgroundColor;switch(j){case"top":a=q(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":a=q(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":a=q(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":a=q(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":a=q(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(i&&0===this.instance.getSelected()[0]||h.fixedRowsBottom&&this.instance.getSelected()[0]===e-h.fixedRowsBottom)&&(f+=1),0===this.instance.getSelected()[1]&&(g+=1),a&&-1!=a?this.textareaParentStyle[a[0]]=a[1]:v(this.TEXTAREA_PARENT),this.textareaParentStyle.top=f+"px",this.textareaParentStyle.left=g+"px";var m=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,n=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,o=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),w=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),z=s(),A=this.TD.offsetTop+m-w,B=this.TD.offsetLeft+n-o,C=t(this.TD)-8,D=x(d)?z:0,E=y(d)?z:0,F=this.instance.view.maximumVisibleElementWidth(B)-9-D,G=this.TD.scrollHeight+1,H=Math.max(this.instance.view.maximumVisibleElementHeight(A)-E,23),I=p(this.TD);this.TEXTAREA.style.fontSize=I.fontSize,this.TEXTAREA.style.fontFamily=I.fontFamily,this.TEXTAREA.style.backgroundColor="",this.TEXTAREA.style.backgroundColor=k?k:p(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(G,H),maxHeight:H,minWidth:Math.min(C,F),maxWidth:F},!0),this.textareaParentStyle.display="block"}},J.prototype.bindEvents=function(){var a=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(a){G(a)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(a){G(a)}),this.instance.addHook("afterScrollHorizontally",function(){a.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){a.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){a.refreshDimensions(),a.focus()}),this.instance.addHook("afterRowResize",function(){a.refreshDimensions(),a.focus()}),this.instance.addHook("afterDestroy",function(){a.eventManager.destroy()})},J.prototype.destroy=function(){this.eventManager.destroy()},D("text",J)},{_baseEditor:30,autoResize:"autoResize",browser:23,editors:29,eventManager:41,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/unicode":55}],41:[function(a,b,c){"use strict";function d(a,b){var c,d,e,f,g,h,i="HOT-TABLE";if(b.isTargetWebComponent=!1,b.realTarget=b.target,h=b.stopImmediatePropagation,b.stopImmediatePropagation=function(){h.apply(this),o(this)},!j.eventManager.isHotTableEnv)return b;for(b=l(b),g=b.path?b.path.length:0;g--;){if(b.path[g].nodeName===i)c=!0;else if(c&&b.path[g].shadowRoot){f=b.path[g];break}0!==g||f||(f=b.path[g])}return f||(f=b.target),b.isTargetWebComponent=!0,n()?b.realTarget=b.srcElement||b.toElement:(a instanceof j.Core||a instanceof Walkontable)&&(a instanceof j.Core?d=a.view?a.view.wt.wtTable.TABLE:null:a instanceof Walkontable&&(d=a.wtTable.TABLE.parentNode.parentNode),e=m(b.target,[i],d),b.realTarget=e?d.querySelector(i)||b.target:b.target),Object.defineProperty(b,"target",{get:function(){return l(f)},enumerable:!0,configurable:!0}),b}function e(a){return new p(a)}Object.defineProperties(c,{EventManager:{get:function(){return p}},eventManager:{get:function(){return e}},__esModule:{value:!0}});var f,g,h,i,j=(f=a("browser"),f&&f.__esModule&&f||{"default":f})["default"],k=(g=a("helpers/dom/element"),g&&g.__esModule&&g||{"default":g}),l=k.polymerWrap,m=k.closest,n=(h=a("helpers/feature"),h&&h.__esModule&&h||{"default":h}).isWebComponentSupportedNatively,o=(i=a("helpers/dom/event"),i&&i.__esModule&&i||{"default":i}).stopImmediatePropagation,p=function(){var a=void 0!==arguments[0]?arguments[0]:null;this.context=a||this,this.context.eventListeners||(this.context.eventListeners=[])};$traceurRuntime.createClass(p,{addEventListener:function(a,b,c){function e(a){a=d(g,a),c.call(this,a)}var f=this,g=this.context;return this.context.eventListeners.push({element:a,event:b,callback:c,callbackProxy:e}),window.addEventListener?a.addEventListener(b,e,!1):a.attachEvent("on"+b,e),j.countEventManagerListeners++,function(){f.removeEventListener(a,b,c)}},removeEventListener:function(a,b,c){for(var d,e=this.context.eventListeners.length;e--;)if(d=this.context.eventListeners[e],d.event==b&&d.element==a){if(c&&c!=d.callback)continue;this.context.eventListeners.splice(e,1),d.element.removeEventListener?d.element.removeEventListener(d.event,d.callbackProxy,!1):d.element.detachEvent("on"+d.event,d.callbackProxy),j.countEventManagerListeners--}},clearEvents:function(){if(this.context)for(var a=this.context.eventListeners.length;a--;){var b=this.context.eventListeners[a];b&&this.removeEventListener(b.element,b.event,b.callback)}},clear:function(){this.clearEvents()},destroy:function(){this.clearEvents(),this.context=null},fireEvent:function(a,b){var c,d={bubbles:!0,cancelable:"mousemove"!==b,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?(c=document.createEvent("MouseEvents"),c.initMouseEvent(b,d.bubbles,d.cancelable,d.view,d.detail,d.screenX,d.screenY,d.
24clientX,d.clientY,d.ctrlKey,d.altKey,d.shiftKey,d.metaKey,d.button,d.relatedTarget||document.body.parentNode)):c=document.createEventObject(),a.dispatchEvent?a.dispatchEvent(c):a.fireEvent("on"+b,c)}},{}),j.countEventManagerListeners=0,j.eventManager=e},{browser:23,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/feature":48}],42:[function(a,b,c){"use strict";function d(a){for(var b=0,c=a.length;c>b;)a[b]=[a[b]],b++}function e(a,b){for(var c=0,d=b.length;d>c;)a.push(b[c]),c++}function f(a){var b=[];if(!a||0===a.length||!a[0]||0===a[0].length)return b;for(var c=a.length,d=a[0].length,e=0;c>e;e++)for(var f=0;d>f;f++)b[f]||(b[f]=[]),b[f][e]=a[e][f];return b}function g(a,b,c,d){var e=-1,f=a.length;for(d&&f&&(c=a[++e]);++e<f;)c=b(c,a[e],e,a);return c}function h(a,b){for(var c=-1,d=a.length,e=-1,f=[];++c<d;){var g=a[c];b(g,c,a)&&(f[++e]=g)}return f}function i(a,b){for(var c=-1,d=a.length,e=-1,f=[];++c<d;){var g=a[c];f[++e]=b(g,c,a)}return f}function j(a,b){for(var c=-1,d=a.length;++c<d&&b(a[c],c,a)!==!1;);return a}function k(a){return g(a,function(a,b){return a+b},0)}function l(a){return g(a,function(a,b){return a>b?a:b},Array.isArray(a)?a[0]:void 0)}function m(a){return g(a,function(a,b){return b>a?a:b},Array.isArray(a)?a[0]:void 0)}function n(a){return a.length?k(a)/a.length:0}function o(a){return g(a,function(a,b){return a.concat(Array.isArray(b)?o(b):b)},[])}function p(a){var b=[];return j(a,function(a){-1===b.indexOf(a)&&b.push(a)}),b}Object.defineProperties(c,{to2dArray:{get:function(){return d}},extendArray:{get:function(){return e}},pivot:{get:function(){return f}},arrayReduce:{get:function(){return g}},arrayFilter:{get:function(){return h}},arrayMap:{get:function(){return i}},arrayEach:{get:function(){return j}},arraySum:{get:function(){return k}},arrayMax:{get:function(){return l}},arrayMin:{get:function(){return m}},arrayAvg:{get:function(){return n}},arrayFlatten:{get:function(){return o}},arrayUnique:{get:function(){return p}},__esModule:{value:!0}})},{}],43:[function(a,b,c){"use strict";function d(){return i}function e(){return j}function f(){return k}function g(){return l}function h(a){return a||(a=navigator.userAgent),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)}Object.defineProperties(c,{isIE8:{get:function(){return d}},isIE9:{get:function(){return e}},isSafari:{get:function(){return f}},isChrome:{get:function(){return g}},isMobileBrowser:{get:function(){return h}},__esModule:{value:!0}});var i=!document.createTextNode("test").textContent,j=!!document.documentMode,k=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),l=/Chrome/.test(navigator.userAgent)&&/Google/.test(navigator.vendor)},{}],44:[function(a,b,c){"use strict";function d(a){for(var b,c=a+1,d="";c>0;)b=(c-1)%26,d=String.fromCharCode(65+b)+d,c=parseInt((c-b)/26,10);return d}function e(a,b){a="number"==typeof a?a:100,b="number"==typeof b?b:4;var c,e,f=[];for(c=0;a>c;c++){var g=[];for(e=0;b>e;e++)g.push(d(e)+(c+1));f.push(g)}return f}function f(a,b){a="number"==typeof a?a:100,b="number"==typeof b?b:4;var c,e,f=[];for(c=0;a>c;c++){var g={};for(e=0;b>e;e++)g["prop"+e]=d(e)+(c+1);f.push(g)}return f}function g(a,b){for(var c,d=[],e=0;a>e;e++){c=[];for(var f=0;b>f;f++)c.push("");d.push(c)}return d}function h(a){var b,c,d,e,f=[],g=0;for(b=0,c=a.length;c>b;b++)for(d=0,e=a[b].length;e>d;d++)d==g&&(f.push([]),g++),f[d].push(a[b][d]);return f}function i(a,b){function c(a){var b=l.cellTypes[a];if("undefined"==typeof b)throw new Error('You declared cell type "'+a+'" as a string that is not mapped to a known object. Cell type must be an object or a string mapped to an object in Handsontable.cellTypes');return b}return b="undefined"==typeof b?!0:b,function(d,e){return function f(d){if(d){if(d.hasOwnProperty(a)&&void 0!==d[a])return d[a];if(d.hasOwnProperty("type")&&d.type){var e;if("string"!=typeof d.type)throw new Error("Cell type must be a string ");if(e=c(d.type),e.hasOwnProperty(a))return e[a];if(b)return}return f(m(d))}}("number"==typeof d?this.getCellMeta(d,e):d)}}Object.defineProperties(c,{spreadsheetColumnLabel:{get:function(){return d}},createSpreadsheetData:{get:function(){return e}},createSpreadsheetObjectData:{get:function(){return f}},createEmptySpreadsheetData:{get:function(){return g}},translateRowsToColumns:{get:function(){return h}},cellMethodLookupFactory:{get:function(){return i}},__esModule:{value:!0}});var j,k,l=(j=a("browser"),j&&j.__esModule&&j||{"default":j}
24)["default"],m=(k=a("object"),k&&k.__esModule&&k||{"default":k}).getPrototypeOf},{browser:23,object:52}],45:[function(a,b,c){"use strict";function d(a){var b=new Date(a);return isNaN(new Date(a+"T00:00").getDate())?b:new Date(b.getTime()+6e4*b.getTimezoneOffset())}Object.defineProperties(c,{getNormalizedDate:{get:function(){return d}},__esModule:{value:!0}})},{}],46:[function(a,b,c){"use strict";function d(a,b,c){for(;null!=a&&a!==c;){if(a.nodeType===Node.ELEMENT_NODE&&(b.indexOf(a.nodeName)>-1||b.indexOf(a)>-1))return a;a=a.host&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE?a.host:a.parentNode}return null}function e(a,b,c){for(var e=[];a&&(a=d(a,b,c),a&&(!c||c.contains(a)));)e.push(a),a=a.host&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE?a.host:a.parentNode;var f=e.length;return f?e[f-1]:null}function f(a,b){var c=a.parentNode,d=[];for("string"==typeof b?d=Array.prototype.slice.call(document.querySelectorAll(b),0):d.push(b);null!=c;){if(d.indexOf(c)>-1)return!0;c=c.parentNode}return!1}function g(a){function b(a){return a.nodeType===Node.ELEMENT_NODE&&a.nodeName===d.toUpperCase()}var c,d="hot-table",e=!1;for(c=h(a);null!=c;){if(b(c)){e=!0;break}if(c.host&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(e=b(c.host))break;c=c.host}c=c.parentNode}return e}function h(a){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(a):a}function i(a){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(a):a}function j(a){var b=0;if(a.previousSibling)for(;a=a.previousSibling;)++b;return b}function k(a,b){var c=document.querySelector(".ht_clone_"+a);return c?c.contains(b):null}function l(a){var b=0,c=[];if(!a||!a.length)return c;for(;a[b];)c.push(a[b]),b++;return c}function m(a,b){return Y(a,b)}function n(a,b){return Z(a,b)}function o(a,b){return $(a,b)}function p(a,b){if(3===a.nodeType)b.removeChild(a);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(a.nodeName)>-1)for(var c=a.childNodes,d=c.length-1;d>=0;d--)p(c[d],a)}function q(a){for(var b;b=a.lastChild;)a.removeChild(b)}function r(a,b){ia.test(b)?a.innerHTML=b:s(a,b)}function s(a,b){var c=a.firstChild;c&&3===c.nodeType&&null===c.nextSibling?ja?c.textContent=b:c.data=b:(q(a),a.appendChild(document.createTextNode(b)))}function t(a){for(var b=a;i(b)!==document.documentElement;){if(null===b)return!1;if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(b.host){if(b.host.impl)return t(b.host.impl);if(b.host)return t(b.host);throw new Error("Lost in Web Components world")}return!1}if("none"===b.style.display)return!1;b=b.parentNode}return!0}function u(a){var b,c,d,e,f;if(e=document.documentElement,da()&&a.firstChild&&"CAPTION"===a.firstChild.nodeName)return f=a.getBoundingClientRect(),{top:f.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||0),left:f.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)};for(b=a.offsetLeft,c=a.offsetTop,d=a;(a=a.offsetParent)&&a!==document.body;)b+=a.offsetLeft,c+=a.offsetTop,d=a;return d&&"fixed"===d.style.position&&(b+=window.pageXOffset||e.scrollLeft,c+=window.pageYOffset||e.scrollTop),{left:b,top:c}}function v(){var a=window.scrollY;return void 0===a&&(a=document.documentElement.scrollTop),a}function w(){var a=window.scrollX;return void 0===a&&(a=document.documentElement.scrollLeft),a}function x(a){return a===window?v():a.scrollTop}function y(a){return a===window?w():a.scrollLeft}function z(a){for(var b,c,d,e=a.parentNode,f=["auto","scroll"],g="",h="",i="",j="";e&&e.style&&document.body!==e;){if(b=e.style.overflow,c=e.style.overflowX,d=e.style.overflowY,"scroll"==b||"scroll"==c||"scroll"==d)return e;if(window.getComputedStyle&&(g=window.getComputedStyle(e),h=g.getPropertyValue("overflow"),i=g.getPropertyValue("overflow-y"),j=g.getPropertyValue("overflow-x"),"scroll"===h||"scroll"===j||"scroll"===i))return e;if(e.clientHeight<=e.scrollHeight&&(-1!==f.indexOf(d)||-1!==f.indexOf(b)||-1!==f.indexOf(h)||-1!==f.indexOf(i)))return e;if(e.clientWidth<=e.scrollWidth&&(-1!==f.indexOf(c)||-1!==f.indexOf(b)||-1!==f.indexOf(h)||-1!==f.indexOf(j)))return e;e=e.parentNode}return window}function A(a){for(var b=a.parentNode;b&&b.style&&document.body!==b;){if("visible"!==b.style.overflow&&""!==b.style.overflow)return b;if(window.getComputedStyle){var c=window.getComputedStyle(b);if("visible"!==c.getPropertyValue("overflow")&&""!==c.getPropertyValue("overflow"))return b}b=b.parentNode}return window}
24function B(a,b){if(a){if(a!==window){var c,d=a.style[b];return""!==d&&void 0!==d?d:(c=C(a),""!==c[b]&&void 0!==c[b]?c[b]:void 0)}if("width"===b)return window.innerWidth+"px";if("height"===b)return window.innerHeight+"px"}}function C(a){return a.currentStyle||document.defaultView.getComputedStyle(a)}function D(a){return a.offsetWidth}function E(a){return da()&&a.firstChild&&"CAPTION"===a.firstChild.nodeName?a.offsetHeight+a.firstChild.offsetHeight:a.offsetHeight}function F(a){return a.clientHeight||a.innerHeight}function G(a){return a.clientWidth||a.innerWidth}function H(a,b,c){window.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c)}function I(a,b,c){window.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent("on"+b,c)}function J(a){if(a.selectionStart)return a.selectionStart;if(document.selection){a.focus();var b=document.selection.createRange();if(null==b)return 0;var c=a.createTextRange(),d=c.duplicate();return c.moveToBookmark(b.getBookmark()),d.setEndPoint("EndToStart",c),d.text.length}return 0}function K(a){if(a.selectionEnd)return a.selectionEnd;if(document.selection){var b=document.selection.createRange();if(null==b)return 0;var c=a.createTextRange();return c.text.indexOf(b.text)+b.text.length}}function L(){var a="";return window.getSelection?a=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(a=document.selection.createRange().text),a}function M(a,b,c){if(void 0===c&&(c=b),a.setSelectionRange){a.focus();try{a.setSelectionRange(b,c)}catch(d){var e=a.parentNode,f=e.style.display;e.style.display="block",a.setSelectionRange(b,c),e.style.display=f}}else if(a.createTextRange){var g=a.createTextRange();g.collapse(!0),g.moveEnd("character",c),g.moveStart("character",b),g.select()}}function N(){var a=document.createElement("p");a.style.width="100%",a.style.height="200px";var b=document.createElement("div");b.style.position="absolute",b.style.top="0px",b.style.left="0px",b.style.visibility="hidden",b.style.width="200px",b.style.height="150px",b.style.overflow="hidden",b.appendChild(a),(document.body||document.documentElement).appendChild(b);var c=a.offsetWidth;b.style.overflow="scroll";var d=a.offsetWidth;return c==d&&(d=b.clientWidth),(document.body||document.documentElement).removeChild(b),c-d}function O(){return void 0===ha&&(ha=N()),ha}function P(a){return a.offsetWidth!==a.clientWidth}function Q(a){return a.offsetHeight!==a.clientHeight}function R(a,b,c){aa()||ba()?(a.style.top=c,a.style.left=b):ca()?a.style["-webkit-transform"]="translate3d("+b+","+c+",0)":a.style.transform="translate3d("+b+","+c+",0)"}function S(a){var b;return a.style.transform&&""!==(b=a.style.transform)?["transform",b]:a.style["-webkit-transform"]&&""!==(b=a.style["-webkit-transform"])?["-webkit-transform",b]:-1}function T(a){a.style.transform&&""!==a.style.transform?a.style.transform="":a.style["-webkit-transform"]&&""!==a.style["-webkit-transform"]&&(a.style["-webkit-transform"]="")}function U(a){var b=["INPUT","SELECT","TEXTAREA"];return a&&(b.indexOf(a.nodeName)>-1||"true"===a.contentEditable)}function V(a){return U(a)&&-1==a.className.indexOf("handsontableInput")&&-1==a.className.indexOf("copyPaste")}Object.defineProperties(c,{closest:{get:function(){return d}},closestDown:{get:function(){return e}},isChildOf:{get:function(){return f}},isChildOfWebComponentTable:{get:function(){return g}},polymerWrap:{get:function(){return h}},polymerUnwrap:{get:function(){return i}},index:{get:function(){return j}},overlayContainsElement:{get:function(){return k}},hasClass:{get:function(){return m}},addClass:{get:function(){return n}},removeClass:{get:function(){return o}},removeTextNodes:{get:function(){return p}},empty:{get:function(){return q}},HTML_CHARACTERS:{get:function(){return ia}},fastInnerHTML:{get:function(){return r}},fastInnerText:{get:function(){return s}},isVisible:{get:function(){return t}},offset:{get:function(){return u}},getWindowScrollTop:{get:function(){return v}},getWindowScrollLeft:{get:function(){return w}},getScrollTop:{get:function(){return x}},getScrollLeft:{get:function(){return y}},getScrollableElement:{get:function(){return z}},getTrimmingContainer:{get:function(){return A}},getStyle:{get:function(){return B}},getComputedStyle:{get:function(){return C}},outerWidth:{get:function(){return D}},outerHeight:{get:function(){return E}},innerHeight:{get:function(){return F}},innerWidth:{get:function(){return G}},addEvent:{get:function(){return H}},removeEvent:{get:function(){return I}},getCaretPosition:{get:function(){return J}},getSelectionEndPosition:{get:function(){return K}},getSelectionText:{get:function(){return L}},setCaretPosition:{get:function(){return M}},getScrollbarWidth:{get:function(){return O}},hasVerticalScrollbar:{get:function(){return P}},hasHorizontalScrollbar:{get:function(){return Q}},setOverlayPosition:{get:function(){return R}},getCssTransform:{get:function(){return S}},resetCssTransform:{get:function(){return T}}
24,isInput:{get:function(){return U}},isOutsideInput:{get:function(){return V}},__esModule:{value:!0}});var W,X,Y,Z,$,_=(W=a("../browser"),W&&W.__esModule&&W||{"default":W}),aa=_.isIE8,ba=_.isIE9,ca=_.isSafari,da=(X=a("../feature"),X&&X.__esModule&&X||{"default":X}).hasCaptionProblem,ea=document.documentElement.classList?!0:!1;if(ea){var fa=function(){var a=document.createElement("div");return a.classList.add("test","test2"),a.classList.contains("test2")}();Y=function(a,b){return""===b?!1:a.classList.contains(b)},Z=function(a,b){var c=0;if("string"==typeof b&&(b=b.split(" ")),b=l(b),fa)a.classList.add.apply(a.classList,b);else for(;b&&b[c];)a.classList.add(b[c]),c++},$=function(a,b){var c=0;if("string"==typeof b&&(b=b.split(" ")),b=l(b),fa)a.classList.remove.apply(a.classList,b);else for(;b&&b[c];)a.classList.remove(b[c]),c++}}else{var ga=function(a){return new RegExp("(\\s|^)"+a+"(\\s|$)")};Y=function(a,b){return a.className.match(ga(b))?!0:!1},Z=function(a,b){var c=0,d=a.className;if("string"==typeof b&&(b=b.split(" ")),""===d)d=b.join(" ");else for(;b&&b[c];)ga(b[c]).test(d)||(d+=" "+b[c]),c++;a.className=d},$=function(a,b){var c=0,d=a.className;for("string"==typeof b&&(b=b.split(" "));b&&b[c];)d=d.replace(ga(b[c])," ").trim(),c++;a.className!==d&&(a.className=d)}}var ha,ia=/(<(.*)>|&(.*);)/,ja=document.createTextNode("test").textContent?!0:!1},{"../browser":43,"../feature":48}],47:[function(a,b,c){"use strict";function d(a){a.isImmediatePropagationEnabled=!1,a.cancelBubble=!0}function e(a){return a.isImmediatePropagationEnabled===!1}function f(a){"function"==typeof a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function g(a){return a.pageX?a.pageX:a.clientX+n()}function h(a){return a.pageY?a.pageY:a.clientY+m()}function i(a){return 2===a.button}function j(a){return 0===a.button}Object.defineProperties(c,{stopImmediatePropagation:{get:function(){return d}},isImmediatePropagationStopped:{get:function(){return e}},stopPropagation:{get:function(){return f}},pageX:{get:function(){return g}},pageY:{get:function(){return h}},isRightClick:{get:function(){return i}},isLeftClick:{get:function(){return j}},__esModule:{value:!0}});var k,l=(k=a("element"),k&&k.__esModule&&k||{"default":k}),m=l.getWindowScrollTop,n=l.getWindowScrollLeft},{element:46}],48:[function(a,b,c){"use strict";function d(a){return m.call(window,a)}function e(a){n.call(window,a)}function f(){return"ontouchstart"in window}function g(){var a=document.createElement("div");return a.createShadowRoot&&a.createShadowRoot.toString().match(/\[native code\]/)?!0:!1}function h(){var a=document.createElement("TABLE");a.style.borderSpacing=0,a.style.borderWidth=0,a.style.padding=0;var b=document.createElement("TBODY");a.appendChild(b),b.appendChild(document.createElement("TR")),b.firstChild.appendChild(document.createElement("TD")),b.firstChild.firstChild.innerHTML="<tr><td>t<br>t</td></tr>";var c=document.createElement("CAPTION");c.innerHTML="c<br>c<br>c<br>c",c.style.padding=0,c.style.margin=0,a.insertBefore(c,b),document.body.appendChild(a),p=a.offsetHeight<2*a.lastChild.offsetHeight,document.body.removeChild(a)}function i(){return void 0===p&&h(),p}function j(a){var b=void 0!==arguments[1]?arguments[1]:{};return q?q:q="object"==typeof Intl?new Intl.Collator(a,b).compare:"function"==typeof String.prototype.localeCompare?function(a,b){return(a+"").localeCompare(b)}:function(a,b){return a===b?0:a>b?-1:1}}Object.defineProperties(c,{requestAnimationFrame:{get:function(){return d}},cancelAnimationFrame:{get:function(){return e}},isTouchSupported:{get:function(){return f}},isWebComponentSupportedNatively:{get:function(){return g}},hasCaptionProblem:{get:function(){return i}},getComparisonFunction:{get:function(){return j}},__esModule:{value:!0}});for(var k=0,l=["ms","moz","webkit","o"],m=window.requestAnimationFrame,n=window.cancelAnimationFrame,o=0;o<l.length&&!m;++o)m=window[l[o]+"RequestAnimationFrame"],n=window[l[o]+"CancelAnimationFrame"]||window[l[o]+"CancelRequestAnimationFrame"];m||(m=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-k)),d=window.setTimeout(function(){a(b+c)},c);return k=b+c,d}),n||(n=function(a){clearTimeout(a)});var p,q},{}],49:[function(a,b,c){"use strict";function d(a){return"function"==typeof a}function e(a,b){return function(){return a.apply(b,arguments)}}function f(a){function b(){var b=this,g=arguments,h=Date.now(),i=!1;e.lastCallThrottled=!0,d||(d=h,i=!0);var j=c-(h-d);return i?(e.lastCallThrottled=!1,a.apply(this,g)):(f&&clearTimeout(f),f=setTimeout(function(){e.lastCallThrottled=!1,a.apply(b,g),d=0,f=void 0},j)),e}var c=void 0!==arguments[1]?arguments[1]:200,d=0,e={lastCallThrottled:!0},f=null;return b}
24function g(a){function b(){h=e}function c(){return h?(h--,a.apply(this,arguments)):g.apply(this,arguments)}var d=void 0!==arguments[1]?arguments[1]:200,e=void 0!==arguments[2]?arguments[2]:10,g=f(a,d),h=e;return c.clearHits=b,c}function h(a){function b(){var b=this,f=arguments;return e&&clearTimeout(e),e=setTimeout(function(){c=a.apply(b,f)},d),c}var c,d=void 0!==arguments[1]?arguments[1]:200,e=null;return b}function i(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=a,d=c[0],e=Array.prototype.slice.call(c,1);return function(){return n(e,function(a,b){return b(a)},d.apply(this,arguments))}}function j(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];return function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return a.apply(this,b.concat(c))}}function k(a){function b(d){return function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];var g,h=d.concat(e);return g=h.length>=c?a.apply(this,h):b(h)}}var c=a.length;return b([])}function l(a){function b(d){return function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];var g,h=d.concat(e.reverse());return g=h.length>=c?a.apply(this,h):b(h)}}var c=a.length;return b([])}Object.defineProperties(c,{isFunction:{get:function(){return d}},proxy:{get:function(){return e}},throttle:{get:function(){return f}},throttleAfterHits:{get:function(){return g}},debounce:{get:function(){return h}},pipe:{get:function(){return i}},partial:{get:function(){return j}},curry:{get:function(){return k}},curryRight:{get:function(){return l}},__esModule:{value:!0}});var m,n=(m=a("array"),m&&m.__esModule&&m||{"default":m}).arrayReduce},{array:42}],50:[function(a,b,c){"use strict";function d(a){switch(typeof a){case"string":case"number":return a+"";case"object":return null===a?"":a.toString();case"undefined":return"";default:return a.toString()}}function e(a){return"undefined"!=typeof a}function f(a){return"undefined"==typeof a}Object.defineProperties(c,{stringify:{get:function(){return d}},isDefined:{get:function(){return e}},isUndefined:{get:function(){return f}},__esModule:{value:!0}})},{}],51:[function(a,b,c){"use strict";function d(a){var b=typeof a;return"number"==b?!isNaN(a)&&isFinite(a):"string"==b?a.length?1==a.length?/\d/.test(a):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(a):!1:"object"==b?!(!a||"number"!=typeof a.valueOf()||a instanceof Date):!1; 25 26}function e(a,b,c){var d=-1;for("function"==typeof b?(c=b,b=a):d=a-1;++d<=b&&c(d)!==!1;);}function f(a,b,c){var d=a+1;for("function"==typeof b&&(c=b,b=0);--d>=b&&c(d)!==!1;);}function g(a,b){return b=parseInt(b.toString().replace("%",""),10),b=parseInt(a*b/100)}Object.defineProperties(c,{isNumeric:{get:function(){return d}},rangeEach:{get:function(){return e}},rangeEachReverse:{get:function(){return f}},valueAccordingPercent:{get:function(){return g}},__esModule:{value:!0}})},{}],52:[function(a,b,c){"use strict";function d(a){var b;return Array.isArray(a)?b=[]:(b={},o(a,function(a,c){b[c]=a&&"object"==typeof a&&!Array.isArray(a)?d(a):Array.isArray(a)?a.length&&"object"==typeof a[0]&&!Array.isArray(a[0])?[d(a[0])]:[]:null})),b}function e(a,b){return b.prototype.constructor=b,a.prototype=new b,a.prototype.constructor=a,a}function f(a,b){return o(b,function(b,c){a[c]=b}),a}function g(a,b){o(b,function(c,d){b[d]&&"object"==typeof b[d]?(a[d]||(a[d]=Array.isArray(b[d])?[]:"[object Date]"===Object.prototype.toString.call(b[d])?b[d]:{}),g(a[d],b[d])):a[d]=b[d]})}function h(a){return"object"==typeof a?JSON.parse(JSON.stringify(a)):a}function i(a){var b={};return o(a,function(a,c){b[c]=a}),b}function j(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];return a.MIXINS||(a.MIXINS=[]),s(b,function(b){a.MIXINS.push(b.MIXIN_NAME),o(b,function(b,c){if(void 0!==a.prototype[c])throw new Error("Mixin conflict. Property '"+c+"' already exist and cannot be overwritten.");if("function"==typeof b)a.prototype[c]=b;else{var d=function(a,b){a="_"+a;var c=function(a){return(Array.isArray(a)||l(a))&&(a=h(a)),a};return function(){return void 0===this[a]&&(this[a]=c(b)),this[a]}},e=function(a){return a="_"+a,function(b){this[a]=b}};Object.defineProperty(a.prototype,c,{get:d(c,b),set:e(c),configurable:!0})}})}),a}function k(a,b){return JSON.stringify(a)===JSON.stringify(b)}function l(a){return"[object Object]"==Object.prototype.toString.call(a)}function m(a){var b;if("object"==typeof a.__proto__)b=a.__proto__;else{var c,d=a.constructor;"function"==typeof a.constructor&&(c=d,delete a.constructor&&(d=a.constructor,a.constructor=c)),b=d?d.prototype:null}return b}function n(a,b,c,d){d.value=c,d.writable=d.writable!==!1,d.enumerable=d.enumerable!==!1,d.configurable=d.configurable!==!1,Object.defineProperty(a,b,d)}function o(a,b){for(var c in a)if((!a.hasOwnProperty||a.hasOwnProperty&&a.hasOwnProperty(c))&&b(a[c],c,a)===!1)break;return a}function p(a,b){var c=b.split("."),d=a;return o(c,function(a){return d=d[a],void 0===d?(d=void 0,!1):void 0}),d}function q(a){if(!l(a))return 0;var b=function(a){var c=0;return l(a)?o(a,function(a){c+=b(a)}):c++,c};return b(a)}Object.defineProperties(c,{duckSchema:{get:function(){return d}},inherit:{get:function(){return e}},extend:{get:function(){return f}},deepExtend:{get:function(){return g}},deepClone:{get:function(){return h}},clone:{get:function(){return i}},mixin:{get:function(){return j}},isObjectEquals:{get:function(){return k}},isObject:{get:function(){return l}},getPrototypeOf:{get:function(){return m}},defineGetter:{get:function(){return n}},objectEach:{get:function(){return o}},getProperty:{get:function(){return p}},deepObjectSize:{get:function(){return q}},__esModule:{value:!0}});var r,s=(r=a("array"),r&&r.__esModule&&r||{"default":r}).arrayEach},{array:42}],53:[function(a,b,c){"use strict";function d(a,b){function c(){}f(c,a);for(var d=0,e=b.length;e>d;d++)c.prototype[b[d]]=void 0;return c}Object.defineProperties(c,{columnFactory:{get:function(){return d}},__esModule:{value:!0}});
26var e,f=(e=a("object"),e&&e.__esModule&&e||{"default":e}).inherit},{object:52}],54:[function(a,b,c){"use strict";function d(a){return a[0].toUpperCase()+a.substr(1)}function e(a,b){var c=!0;return o(b.length-1,function(d){return a.charAt(d)!==b.charAt(d)?(c=!1,!1):void 0}),c}function f(a,b){var c=!0,d=b.length-1,e=a.length-1;return o(d,function(f){var g=e-f,h=d-f;return a.charAt(g)!==b.charAt(h)?(c=!1,!1):void 0}),c}function g(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];for(var c=[],d=a.length;d--;){var e=n(a[d]).toLowerCase();-1===c.indexOf(e)&&c.push(e)}return 1===c.length}function h(){function a(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return a()+a()+a()+a()}function i(a){return/^([0-9][0-9]?\%$)|(^100\%$)/.test(a)}function j(a){var b=void 0!==arguments[1]?arguments[1]:{};return(a+"").replace(/(?:\\)?\[([^\[\]]+)]/g,function(a,c){return"\\"===a.charAt(0)?a.substr(1,a.length-1):void 0===b[c]?"":b[c]})}function k(a,b){var c=void 0!==arguments[2]?arguments[2]:" ";if(a+="",a.length>=b)return a;c=String(c);var d=c.length;d||(c=" ");var e=b-a.length,f=Math.ceil(e/c.length),g="";return o(f,function(){g+=c}),g=g.slice(0,e),g+a}Object.defineProperties(c,{toUpperCaseFirst:{get:function(){return d}},startsWith:{get:function(){return e}},endsWith:{get:function(){return f}},equalsIgnoreCase:{get:function(){return g}},randomString:{get:function(){return h}},isPercentValue:{get:function(){return i}},substitute:{get:function(){return j}},padStart:{get:function(){return k}},__esModule:{value:!0}});var l,m,n=(l=a("mixed"),l&&l.__esModule&&l||{"default":l}).stringify,o=(m=a("number"),m&&m.__esModule&&m||{"default":m}).rangeEach},{mixed:50,number:51}],55:[function(a,b,c){"use strict";function d(a){return 32==a||a>=48&&57>=a||a>=96&&111>=a||a>=186&&192>=a||a>=219&&222>=a||a>=226||a>=65&&90>=a}function e(a){var b=[j.ARROW_DOWN,j.ARROW_UP,j.ARROW_LEFT,j.ARROW_RIGHT,j.HOME,j.END,j.DELETE,j.BACKSPACE,j.F1,j.F2,j.F3,j.F4,j.F5,j.F6,j.F7,j.F8,j.F9,j.F10,j.F11,j.F12,j.TAB,j.PAGE_DOWN,j.PAGE_UP,j.ENTER,j.ESCAPE,j.SHIFT,j.CAPS_LOCK,j.ALT];return-1!==b.indexOf(a)}function f(a){return-1!==[j.CONTROL_LEFT,224,j.COMMAND_LEFT,j.COMMAND_RIGHT].indexOf(a)}function g(a,b){var c=b.split("|"),d=!1;return i(c,function(b){return a===j[b]?(d=!0,!1):void 0}),d}Object.defineProperties(c,{KEY_CODES:{get:function(){return j}},isPrintableChar:{get:function(){return d}},isMetaKey:{get:function(){return e}},isCtrlKey:{get:function(){return f}},isKey:{get:function(){return g}},__esModule:{value:!0}});var h,i=(h=a("array"),h&&h.__esModule&&h||{"default":h}).arrayEach,j={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}},{array:42}],56:[function(a,b,c){"use strict";Object.defineProperties(c,{localHooks:{get:function(){return k}},__esModule:{value:!0}});var d,e,f,g=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],h=(e=a("helpers/array"),e&&e.__esModule&&e||{"default":e}).arrayEach,i=(f=a("helpers/object"),f&&f.__esModule&&f||{"default":f}).defineGetter,j="localHooks",k={_localHooks:Object.create(null),addLocalHook:function(a,b){this._localHooks[a]||(this._localHooks[a]=[]),this._localHooks[a].push(b)},runLocalHooks:function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];var d=this;this._localHooks[a]&&h(this._localHooks[a],function(a){return a.apply(d,b)})},clearLocalHooks:function(){this._localHooks={}}};i(k,"MIXIN_NAME",j,{writable:!1,enumerable:!1}),g.utils.localHooks=k},{browser:23,"helpers/array":42,"helpers/object":52}],57:[function(a,b,c){"use strict";function d(){function a(a){return null!==a&&!c(a)&&("string"==typeof a||"number"==typeof a)}function b(a){return null!==a&&("object"==typeof a||"function"==typeof a)}function c(a){return a!==a}var d={arrayMap:[],weakMap:new WeakMap};return{get:function(c){return a(c)?d.arrayMap[c]:b(c)?d.weakMap.get(c):void 0},set:function(c,e){if(a(c))d.arrayMap[c]=e;else{if(!b(c))throw new Error("Invalid key type");d.weakMap.set(c,e)}},"delete":function(c){a(c)?delete d.arrayMap[c]:b(c)&&d.weakMap["delete"](c)}}}Object.defineProperties(c,{MultiMap:{get:function(){return d}},__esModule:{value:!0}}),window.MultiMap=d},{}],58:[function(a,b,c){"use strict";Object.defineProperties(c,{Hooks:{get:function(){return i}},__esModule:{value:!0}});var d,e,f=["afterCellMetaReset","afterChange","afterChangesObserved","afterContextMenuDefaultOptions","afterContextMenuHide","afterContextMenuShow","afterCopyLimit","afterCreateCol","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellMouseDown","afterOnCellMouseOver","afterRemoveCol","afterRemoveRow","afterRe
26nder","beforeRenderer","afterRenderer","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterUpdateSettings","afterValidate","beforeAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeInit","beforeInitWalkontable","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseOver","beforeRemoveCol","beforeRemoveRow","beforeRender","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","construct","init","modifyCol","unmodifyCol","modifyColHeader","modifyColWidth","modifyRow","modifyRowHeader","modifyRowHeight","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","afterAutofillApplyValues","modifyCopyableRange","beforeColumnMove","afterColumnMove","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","modifyColumnHeaderHeight"],g=(d=a("helpers/array"),d&&d.__esModule&&d||{"default":d}).arrayEach,h=(e=a("helpers/object"),e&&e.__esModule&&e||{"default":e}).objectEach,i=function(){this.globalBucket=this.createEmptyBucket()};$traceurRuntime.createClass(i,{createEmptyBucket:function(){var a=Object.create(null);return g(f,function(b){return a[b]=[]}),a},getBucket:function(){var a=void 0!==arguments[0]?arguments[0]:null;return a?(a.pluginHookBucket||(a.pluginHookBucket=this.createEmptyBucket()),a.pluginHookBucket):this.globalBucket},add:function(a,b){var c=void 0!==arguments[2]?arguments[2]:null,d=this;if(Array.isArray(b))g(b,function(b){return d.add(a,b,c)});else{var e=this.getBucket(c);"undefined"==typeof e[a]&&(this.register(a),e[a]=[]),b.skip=!1,-1===e[a].indexOf(b)&&e[a].push(b)}return this},once:function(a,b){var c=void 0!==arguments[2]?arguments[2]:null,d=this;Array.isArray(b)?g(b,function(b){return d.once(a,b,c)}):(b.runOnce=!0,this.add(a,b,c))},remove:function(a,b){var c=void 0!==arguments[2]?arguments[2]:null,d=this.getBucket(c);return"undefined"!=typeof d[a]&&d[a].indexOf(b)>=0?(b.skip=!0,!0):!1},has:function(a){var b=void 0!==arguments[1]?arguments[1]:null,c=this.getBucket(b);return void 0!==c[a]&&c[a].length?!0:!1},run:function(a,b,c,d,e,f,g,h){var i=this.globalBucket[b],j=-1,k=i?i.length:0;if(k)for(;++j<k;)if(i[j]&&!i[j].skip){var l=i[j].call(a,c,d,e,f,g,h);void 0!==l&&(c=l),i[j]&&i[j].runOnce&&this.remove(b,i[j])}var m=this.getBucket(a)[b],n=-1,o=m?m.length:0;if(o)for(;++n<o;)if(m[n]&&!m[n].skip){var p=m[n].call(a,c,d,e,f,g,h);void 0!==p&&(c=p),m[n]&&m[n].runOnce&&this.remove(b,m[n],a)}return c},destroy:function(){var a=void 0!==arguments[0]?arguments[0]:null;h(this.getBucket(a),function(a,b,c){return c[b].length=0})},register:function(a){this.isRegistered(a)||f.push(a)},deregister:function(a){this.isRegistered(a)&&f.splice(f.indexOf(a),1)},isRegistered:function(a){return f.indexOf(a)>=0},getRegistered:function(){return f}},{})},{"helpers/array":42,"helpers/object":52}],59:[function(a,b,c){"use strict";function d(a,b){a=m(a),k.plugins[a]=b,k.hooks.add("construct",function(){var c;n.has(this)||n.set(this,{}),c=n.get(this),c[a]||(c[a]=new b(this))}),k.hooks.add("afterDestroy",function(){if(n.has(this)){var a=n.get(this);l(a,function(a){return a.destroy()}),n["delete"](this)}})}function e(a,b){if("string"!=typeof b)throw Error('Only strings can be passed as "plugin" parameter');var c=m(b);return n.has(a)&&n.get(a)[c]?n.get(a)[c]:void 0}function f(a){return n.has(a)?Object.keys(n.get(a)):[]}function g(a,b){var c=null;return n.has(a)&&l(n.get(a),function(a,d){a===b&&(c=d)}),c}Object.defineProperties(c,{registerPlugin:{get:function(){return d}},getPlugin:{get:function(){return e}},getRegistredPluginNames:{get:function(){return f}},getPluginName:{get:function(){return g}},__esModule:{value:!0}});var h,i,j,k=(h=a("browser"),h&&h.__esModule&&h||{"default":h})["default"],l=(i=a("helpers/object"),i&&i.__esModule&&i||{"default":i}).objectEach,m=(j=a("helpers/string"),j&&j.__esModule&&j||{"default":j}
26).toUpperCaseFirst,n=new WeakMap},{browser:23,"helpers/object":52,"helpers/string":54}],60:[function(a,b,c){"use strict";Object.defineProperties(c,{"default":{get:function(){return s}},__esModule:{value:!0}});var d,e,f,g,h=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],i=(e=a("helpers/object"),e&&e.__esModule&&e||{"default":e}),j=i.defineGetter,k=i.objectEach,l=(f=a("helpers/array"),f&&f.__esModule&&f||{"default":f}).arrayEach,m=(g=a("plugins"),g&&g.__esModule&&g||{"default":g}),n=m.getRegistredPluginNames,o=m.getPluginName,p=new WeakMap,q=null,r=function(a){var b=this;j(this,"hot",a,{writable:!1}),p.set(this,{hooks:{}}),q=null,this.pluginName=null,this.pluginsInitializedCallbacks=[],this.isPluginsReady=!1,this.enabled=!1,this.initialized=!1,this.hot.addHook("afterPluginsInitialized",function(){return b.onAfterPluginsInitialized()}),this.hot.addHook("afterUpdateSettings",function(){return b.onUpdateSettings()}),this.hot.addHook("beforeInit",function(){return b.init()})};$traceurRuntime.createClass(r,{init:function(){this.pluginName=o(this.hot,this),this.isEnabled&&this.isEnabled()&&this.enablePlugin(),q||(q=n(this.hot)),q.indexOf(this.pluginName)>=0&&q.splice(q.indexOf(this.pluginName),1),q.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0},enablePlugin:function(){this.enabled=!0},disablePlugin:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1},addHook:function(a,b){var c=p.get(this).hooks[a]=p.get(this).hooks[a]||[];this.hot.addHook(a,b),c.push(b),p.get(this).hooks[a]=c},removeHooks:function(a){var b=this;l(p.get(this).hooks[a]||[],function(c){b.hot.removeHook(a,c)})},clearHooks:function(){var a=this,b=p.get(this).hooks;k(b,function(b,c){return a.removeHooks(c)}),b.length=0},callOnPluginsReady:function(a){this.isPluginsReady?a():this.pluginsInitializedCallbacks.push(a)},onAfterPluginsInitialized:function(){l(this.pluginsInitializedCallbacks,function(a){return a()}),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0},onUpdateSettings:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())},updatePlugin:function(){},destroy:function(){var a=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),k(this,function(b,c){"hot"!==c&&(a[c]=null)}),delete this.hot}},{});var s=r;h.plugins.BasePlugin=r},{browser:23,"helpers/array":42,"helpers/object":52,plugins:59}],61:[function(a,b,c){"use strict";Object.defineProperties(c,{AutoColumnSize:{get:function(){return G}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k,l,m,n,o=(d=a("_base"),d&&d.__esModule&&d||{"default":d})["default"],p=(e=a("helpers/array"),e&&e.__esModule&&e||{"default":e}),q=p.arrayEach,r=p.arrayFilter,s=(f=a("helpers/feature"),f&&f.__esModule&&f||{"default":f}),t=s.cancelAnimationFrame,u=s.requestAnimationFrame,v=(g=a("helpers/dom/element"),g&&g.__esModule&&g||{"default":g}).isVisible,w=(h=a("utils/ghostTable"),h&&h.__esModule&&h||{"default":h}).GhostTable,x=(i=a("helpers/object"),i&&i.__esModule&&i||{"default":i}),y=x.isObject,z=(x.objectEach,j=a("helpers/number"),j&&j.__esModule&&j||{"default":j}),A=z.valueAccordingPercent,B=z.rangeEach,C=(k=a("plugins"),k&&k.__esModule&&k||{"default":k}).registerPlugin,D=(l=a("utils/samplesGenerator"),l&&l.__esModule&&l||{"default":l}).SamplesGenerator,E=(m=a("helpers/string"),m&&m.__esModule&&m||{"default":m}).isPercentValue,F=(n=a("3rdparty/walkontable/src/calculator/viewportColumns"),n&&n.__esModule&&n||{"default":n}).WalkontableViewportColumnsCalculator,G=function(a){var b=this;$traceurRuntime.superConstructor(H).call(this,a),this.widths=[],this.ghostTable=new w(this.hot),this.samplesGenerator=new D(function(a,c){return b.hot.getDataAtCell(a,c)}),this.firstCalculation=!0,this.inProgress=!1,this.addHook("beforeColumnResize",function(a,c,d){return b.onBeforeColumnResize(a,c,d)})},H=G;$traceurRuntime.createClass(G,{isEnabled:function(){return this.hot.getSettings().autoColumnSize!==!1&&!this.hot.getSettings().colWidths},enablePlugin:function(){var a=this;if(!this.enabled){var b=this.hot.getSettings().autoColumnSize,c=b&&b.hasOwnProperty("samplingRatio")?this.hot.getSettings().autoColumnSize.samplingRatio:void 0;
26c&&!isNaN(c)&&(this.samplesGenerator.customSampleCount=parseInt(c,10)),b&&null!=b.useHeaders&&this.ghostTable.setSetting("useHeaders",b.useHeaders),this.addHook("afterLoadData",function(){return a.onAfterLoadData()}),this.addHook("beforeChange",function(b){return a.onBeforeChange(b)}),this.addHook("beforeRender",function(b){return a.onBeforeRender(b)}),this.addHook("modifyColWidth",function(b,c){return a.getColumnWidth(c,b)}),$traceurRuntime.superGet(this,H.prototype,"enablePlugin").call(this)}},disablePlugin:function(){$traceurRuntime.superGet(this,H.prototype,"disablePlugin").call(this)},calculateColumnsWidth:function(){var a=void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},b=void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},c=void 0!==arguments[2]?arguments[2]:!1,d=this;"number"==typeof a&&(a={from:a,to:a}),"number"==typeof b&&(b={from:b,to:b}),B(a.from,a.to,function(a){if(c||void 0===d.widths[a]&&!d.hot._getColWidthFromSettings(a)){var e=d.samplesGenerator.generateColumnSamples(a,b);e.forEach(function(a,b){return d.ghostTable.addColumn(b,a)})}}),this.ghostTable.columns.length&&(this.ghostTable.getWidths(function(a,b){return d.widths[a]=b}),this.ghostTable.clean())},calculateAllColumnsWidth:function(){var a=void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},b=this,c=0,d=this.hot.countCols()-1,e=null;this.inProgress=!0;var f=function(){return b.hot?(b.calculateColumnsWidth({from:c,to:Math.min(c+H.CALCULATION_STEP,d)},a),c=c+H.CALCULATION_STEP+1,void(d>c?e=u(f):(t(e),b.inProgress=!1,b.hot.view.wt.wtOverlays.adjustElementsSize(!0),b.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&b.hot.view.wt.wtOverlays.leftOverlay.clone.draw()))):(t(e),void(b.inProgress=!1))};this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateColumnsWidth({from:0,to:this.getSyncCalculationLimit()},a),this.firstCalculation=!1,c=this.getSyncCalculationLimit()+1),d>c?f():this.inProgress=!1},recalculateAllColumnsWidth:function(){this.hot.view&&v(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllColumnsWidth())},getSyncCalculationLimit:function(){var a=H.SYNC_CALCULATION_LIMIT,b=this.hot.countCols()-1;return y(this.hot.getSettings().autoColumnSize)&&(a=this.hot.getSettings().autoColumnSize.syncLimit,E(a)?a=A(b,a):a>>=0),Math.min(a,b)},getColumnWidth:function(a){var b=arguments[1],c=void 0!==arguments[2]?arguments[2]:!0,d=b;return void 0===d&&(d=this.widths[a],c&&"number"==typeof d&&(d=Math.max(d,F.DEFAULT_WIDTH))),d},getFirstVisibleColumn:function(){var a=this.hot.view.wt;return a.wtViewport.columnsVisibleCalculator?a.wtTable.getFirstVisibleColumn():a.wtViewport.columnsRenderCalculator?a.wtTable.getFirstRenderedColumn():-1},getLastVisibleColumn:function(){var a=this.hot.view.wt;return a.wtViewport.columnsVisibleCalculator?a.wtTable.getLastVisibleColumn():a.wtViewport.columnsRenderCalculator?a.wtTable.getLastRenderedColumn():-1},clearCache:function(){this.widths.length=0},isNeedRecalculate:function(){return r(this.widths,function(a){return void 0===a}).length?!0:!1},onBeforeRender:function(){var a=this.hot.renderCall,b=this.hot.countRows();b&&(this.calculateColumnsWidth({from:this.getFirstVisibleColumn(),to:this.getLastVisibleColumn()},void 0,a),this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth())},onAfterLoadData:function(){var a=this;this.hot.view?this.recalculateAllColumnsWidth():setTimeout(function(){a.hot&&a.recalculateAllColumnsWidth()},0)},onBeforeChange:function(a){var b=this;q(a,function(a){return b.widths[b.hot.propToCol(a[1])]=void 0})},onBeforeColumnResize:function(a,b,c){return c&&(this.calculateColumnsWidth(a,void 0,!0),b=this.getColumnWidth(a,void 0,!1)),b},destroy:function(){this.ghostTable.clean(),$traceurRuntime.superGet(this,H.prototype,"destroy").call(this)}},{get CALCULATION_STEP(){return 50},get SYNC_CALCULATION_LIMIT(){return 50}},o),C("autoColumnSize",G)},{"3rdparty/walkontable/src/calculator/viewportColumns":3,_base:60,"helpers/array":42,"helpers/dom/element":46,"helpers/feature":48,"helpers/number":51,"helpers/object":52,"helpers/string":54,plugins:59,"utils/ghostTable":114,"utils/samplesGenerator":116}],62:[function(a,b,c){"use strict";Object.defineProperties(c,{AutoRowSize:{get:function(){return D}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k,l,m,n=(d=a("_base"),d&&d.__esModule&&d||{"default":d}
26)["default"],o=(e=a("helpers/array"),e&&e.__esModule&&e||{"default":e}),p=(o.arrayEach,o.arrayFilter),q=(f=a("helpers/feature"),f&&f.__esModule&&f||{"default":f}),r=q.cancelAnimationFrame,s=q.requestAnimationFrame,t=(g=a("helpers/dom/element"),g&&g.__esModule&&g||{"default":g}).isVisible,u=(h=a("utils/ghostTable"),h&&h.__esModule&&h||{"default":h}).GhostTable,v=(i=a("helpers/object"),i&&i.__esModule&&i||{"default":i}),w=v.isObject,x=(v.objectEach,j=a("helpers/number"),j&&j.__esModule&&j||{"default":j}),y=x.valueAccordingPercent,z=x.rangeEach,A=(k=a("plugins"),k&&k.__esModule&&k||{"default":k}).registerPlugin,B=(l=a("utils/samplesGenerator"),l&&l.__esModule&&l||{"default":l}).SamplesGenerator,C=(m=a("helpers/string"),m&&m.__esModule&&m||{"default":m}).isPercentValue,D=function(a){var b=this;$traceurRuntime.superConstructor(E).call(this,a),this.heights=[],this.ghostTable=new u(this.hot),this.samplesGenerator=new B(function(a,c){return a>=0?b.hot.getDataAtCell(a,c):-1===a?b.hot.getColHeader(c):null}),this.firstCalculation=!0,this.inProgress=!1,this.addHook("beforeRowResize",function(a,c,d){return b.onBeforeRowResize(a,c,d)})},E=D;$traceurRuntime.createClass(D,{isEnabled:function(){return this.hot.getSettings().autoRowSize===!0||w(this.hot.getSettings().autoRowSize)},enablePlugin:function(){var a=this;if(!this.enabled){var b=this.hot.getSettings().autoRowSize,c=b&&b.hasOwnProperty("samplingRatio")?this.hot.getSettings().autoRowSize.samplingRatio:void 0;c&&!isNaN(c)&&(this.samplesGenerator.customSampleCount=parseInt(c,10)),this.addHook("afterLoadData",function(){return a.onAfterLoadData()}),this.addHook("beforeChange",function(b){return a.onBeforeChange(b)}),this.addHook("beforeColumnMove",function(){return a.recalculateAllRowsHeight()}),this.addHook("beforeColumnResize",function(){return a.recalculateAllRowsHeight()}),this.addHook("beforeColumnSort",function(){return a.clearCache()}),this.addHook("beforeRender",function(b){return a.onBeforeRender(b)}),this.addHook("beforeRowMove",function(b,c){return a.onBeforeRowMove(b,c)}),this.addHook("modifyRowHeight",function(b,c){return a.getRowHeight(c,b)}),this.addHook("modifyColumnHeaderHeight",function(){return a.getColumnHeaderHeight()}),$traceurRuntime.superGet(this,E.prototype,"enablePlugin").call(this)}},disablePlugin:function(){$traceurRuntime.superGet(this,E.prototype,"disablePlugin").call(this)},calculateRowsHeight:function(){var a=void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},b=void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},c=void 0!==arguments[2]?arguments[2]:!1,d=this;if("number"==typeof a&&(a={from:a,to:a}),"number"==typeof b&&(b={from:b,to:b}),null!==this.hot.getColHeader(0)){var e=this.samplesGenerator.generateRowSamples(-1,b);this.ghostTable.addColumnHeadersRow(e.get(-1))}z(a.from,a.to,function(a){if(c||void 0===d.heights[a]){var e=d.samplesGenerator.generateRowSamples(a,b);e.forEach(function(a,b){return d.ghostTable.addRow(b,a)})}}),this.ghostTable.rows.length&&(this.ghostTable.getHeights(function(a,b){return d.heights[a]=b}),this.ghostTable.clean())},calculateAllRowsHeight:function(){var a=void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},b=this,c=0,d=this.hot.countRows()-1,e=null;this.inProgress=!0;var f=function(){return b.hot?(b.calculateRowsHeight({from:c,to:Math.min(c+E.CALCULATION_STEP,d)},a),c=c+E.CALCULATION_STEP+1,void(d>c?e=s(f):(r(e),b.inProgress=!1,b.hot.view.wt.wtOverlays.adjustElementsSize(!0),b.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&b.hot.view.wt.wtOverlays.leftOverlay.clone.draw()))):(r(e),void(b.inProgress=!1))};this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateRowsHeight({from:0,to:this.getSyncCalculationLimit()},a),this.firstCalculation=!1,c=this.getSyncCalculationLimit()+1),d>c?f():this.inProgress=!1},recalculateAllRowsHeight:function(){t(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())},getSyncCalculationLimit:function(){var a=E.SYNC_CALCULATION_LIMIT,b=this.hot.countRows()-1;return w(this.hot.getSettings().autoRowSize)&&(a=this.hot.getSettings().autoRowSize.syncLimit,C(a)?a=y(b,a):a>>=0),Math.min(a,b)},getRowHeight:function(a){var b=arguments[1],c=b;return void 0!==this.heights[a]&&this.heights[a]>(b||0)&&(c=this.heights[a]),c},getColumnHeaderHeight:function(){return this.heights[-1]},getFirstVisibleRow:function(){var a=this.hot.view.wt;return a.wtViewport.rowsVisibleCalculator?a.wtTable.getFirstVisibleRow():a.wtViewport.rowsRenderCalculator?a.wtTable.getFirstRenderedRow():-1},getLastVisibleRow:function(){var a=this.hot.view.wt;return a.wtViewport.rowsVisibleCalculator?a.wtTable.getLastVisibleRow():a.wtViewport.rowsRenderCalculator?a.wtTable.getLastRenderedRow():-1},clearCache:function(){this.heights.length=0,this.heights[-1]=void 0},clearCacheByRange:function(a){var b=this;"number"==typeof a&&(a={from:a,to:a}),z(Math.min(a.from,a.to),Math.max(a.from,a.to),function(a){return b.heights[a]=void 0})},isNeedRecalculate:function(){return p(this.heights,function(a){return void 0===a}).length?!0:!1},onBeforeRender:function(){var a=this.hot.renderCall;this.calculateRowsHeight({from:this.getFirstVisibleRow(),to:this.getLastVisibleRow()},void 0,a);var b=this.hot.getSettings().fixedRowsBottom;if(b){var c=this.hot.countRows()-1;this.calculateRowsHeight({from:c-b,to:c})}this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllRowsHeight()},onBeforeRowMove:function(a,b){this.clearCacheByRange({from:a,to:b}),this.calculateAllRowsHeight()},onBeforeRowResize:function(a,b,c){return c&&(this.calculateRowsHeight(
26a,void 0,!0),b=this.getRowHeight(a)),b},onAfterLoadData:function(){var a=this;this.hot.view?this.recalculateAllRowsHeight():setTimeout(function(){a.hot&&a.recalculateAllRowsHeight()},0)},onBeforeChange:function(a){var b=null;1===a.length?b=a[0][0]:a.length>1&&(b={from:a[0][0],to:a[a.length-1][0]}),null!==b&&this.clearCacheByRange(b)},destroy:function(){this.ghostTable.clean(),$traceurRuntime.superGet(this,E.prototype,"destroy").call(this)}},{get CALCULATION_STEP(){return 50},get SYNC_CALCULATION_LIMIT(){return 500}},n),A("autoRowSize",D)},{_base:60,"helpers/array":42,"helpers/dom/element":46,"helpers/feature":48,"helpers/number":51,"helpers/object":52,"helpers/string":54,plugins:59,"utils/ghostTable":114,"utils/samplesGenerator":116}],63:[function(a,b,c){"use strict";function d(a,b,c,d){var e,f,g,h,i,j=c.length,k=c?c[0].length:0,l=[],m=[];if(e=b.row-a.row,f=b.col-a.col,-1!==["down","up"].indexOf(d)){for(var n=0;f>=n;n++)g=parseInt(c[0][n],10),h=parseInt(c[j-1][n],10),i=("down"===d?h-g:g-h)/(j-1)||0,m.push(i);l.push(m)}if(-1!==["right","left"].indexOf(d))for(var o=0;e>=o;o++)g=parseInt(c[o][0],10),h=parseInt(c[o][k-1],10),i=("right"===d?h-g:g-h)/(k-1)||0,m=[],m.push(i),l.push(m);return l}function e(a){function b(){return a.autofill?void(a.autofill.handle&&a.autofill.handle.isDragged&&(a.autofill.handle.isDragged>1&&a.autofill.apply(),a.autofill.handle.isDragged=0,h=!1)):!0}function c(a){var b,c;return g.instance.autofill?(b=n(g.instance.table).top-(window.pageYOffset||document.documentElement.scrollTop)+o(g.instance.table),c=n(g.instance.table).left-(window.pageXOffset||document.documentElement.scrollLeft)+p(g.instance.table),g.addingStarted===!1&&g.instance.autofill.handle.isDragged>0&&a.clientY>b&&a.clientX<=c?(g.instance.mouseDragOutside=!0,g.addingStarted=!0):g.instance.mouseDragOutside=!1,void(g.instance.mouseDragOutside&&s("autoInsertRow")&&setTimeout(function(){g.addingStarted=!1,g.instance.alter("insert_row")},200))):!1}var d,e,f,g=this,h=!1;this.instance=a,this.addingStarted=!1,f=q(a),f.addEventListener(document,"mouseup",b),f.addEventListener(document,"mousemove",c),d=this.instance.view.wt.wtSettings.settings.onCellCornerMouseDown,this.instance.view.wt.wtSettings.settings.onCellCornerMouseDown=function(b){a.autofill.handle.isDragged=1,h=!0,d(b)},e=this.instance.view.wt.wtSettings.settings.onCellMouseOver,this.instance.view.wt.wtSettings.settings.onCellMouseOver=function(b,c,d,f){a.autofill&&h&&!a.view.isMouseDown()&&a.autofill.handle&&a.autofill.handle.isDragged&&(a.autofill.handle.isDragged++,a.autofill.showBorder(c),a.autofill.checkIfNewRowNeeded()),e(b,c,d,f)},this.instance.view.wt.wtSettings.settings.onCellCornerDblClick=function(){a.autofill.selectAdjacent()}}function f(a){return function(b){var c;return"direction"===b?c="string"==typeof a?a:"object"==typeof a&&void 0!==a[b]?a[b]:!0:"autoInsertRow"===b?c="object"==typeof a&&void 0!==a[b]?a[b]:!0:"fillHandle"===b&&(c=a?!0:!1),c}}Object.defineProperties(c,{Autofill:{get:function(){return e}},__esModule:{value:!0}});var g,h,i,j,k,l=(g=a("browser"),g&&g.__esModule&&g||{"default":g})["default"],m=(h=a("helpers/dom/element"),h&&h.__esModule&&h||{"default":h}),n=m.offset,o=m.outerHeight,p=m.outerWidth,q=(i=a("eventManager"),i&&i.__esModule&&i||{"default":i}).eventManager,r=((j=a("plugins"),j&&j.__esModule&&j||{"default":j}).registerPlugin,(k=a("3rdparty/walkontable/src/cell/coords"),k&&k.__esModule&&k||{"default":k}).WalkontableCellCoords);e.prototype.init=function(){this.handle={}},e.prototype.disable=function(){this.handle.disabled=!0},e.prototype.selectAdjacent=function(){var a,b,c,d,e;a=this.instance.selection.isMultiple()?this.instance.view.wt.selections.area.getCorners():this.instance.view.wt.selections.current.getCorners(),b=this.instance.getData();a:for(c=a[2]+1;c<this.instance.countRows();c++){for(e=a[1];e<=a[3];e++)if(b[c][e])break a;(b[c][a[1]-1]||b[c][a[3]+1])&&(d=c)}d&&(this.instance.view.wt.selections.fill.clear(),this.instance.view.wt.selections.fill.add(new r(a[0],a[1])),this.instance.view.wt.selections.fill.add(new r(d,a[3])),this.apply())},e.prototype.apply=function(){var a,b,c,e,f,g,h,i;this.handle.isDragged=0,this.instance.view.wt.selections.fill.isEmpty()||(a=this.instance.view.wt.selections.fill.getCorners(),this.instance.view.wt.selections.fill.clear(),b=this.instance.selection.isMultiple()?this.instance.view.wt.selections.area.getCorners():this.instance.view.wt.selections.current.getCorners(),l.hooks.run(this.instance,"afterAutofillApplyValues",b,a),a[0]===b[0]&&a[1]<b[1]?(g="left",c=new r(a[0],a[1]),e=new r(a[2],b[1]-1)):a[0]===b[0]&&a[3]>b[3]?(g="right",c=new r(a[0],b[3]+1),e=new r(a[2],a[3])):a[0]<b[0]&&a[1]===b[1]?(g="up",c=new r(a[0],a[1]),e=new r(b[0]-1,a[3])):a[2]>b[2]&&a[1]===b[1]&&(g="down",c=new r(b[2]+1,a[1]),e=new r(a[2],a[3])),c&&c.row>-1&&c.col>-1?(i={ 27from:this.instance.getSelectedRange().from,to:this.instance.getSelectedRange().to},f=this.instance.getData(i.from.row,i.from.col,i.to.row,i.to.col),h=d(c,e,f,g),l.hooks.run(this.instance,"beforeAutofill",c,e,f),this.instance.populateFromArray(c.row,c.col,f,e.row,e.col,"autofill",null,g,h),this.instance.selection.setRangeStart(new r(a[0],a[1])),this.instance.selection.setRangeEnd(new r(a[2],a[3]))):this.instance.selection.refreshBorders())},e.prototype.showBorder=function(a){var b=this.instance.getSelectedRange().getTopLeftCorner(),c=this.instance.getSelectedRange().getBottomRightCorner();if("horizontal"!==s("direction")&&(c.row<a.row||b.row>a.row))a=new r(a.row,c.col);else{if("vertical"===s("direction"))return;a=new r(c.row,a.col)}this.instance.view.wt.selections.fill.clear(),this.instance.view.wt.selections.fill.add(this.instance.getSelectedRange().from),this.instance.view.wt.selections.fill.add(this.instance.getSelectedRange().to),this.instance.view.wt.selections.fill.add(a),this.instance.view.render()},e.prototype.checkIfNewRowNeeded=function(){var a,b,c=this.instance.countRows(),d=this;this.instance.view.wt.selections.fill.cellRange&&this.addingStarted===!1&&s("autoInsertRow")&&(b=this.instance.getSelected(),a=this.instance.view.wt.selections.fill.getCorners(),b[2]<c-1&&a[2]===c-1&&(this.addingStarted=!0,this.instance._registerTimeout(setTimeout(function(){d.instance.alter("insert_row"),d.addingStarted=!1},200))))},l.hooks.add("afterInit",function(){var a=new e(this);s=f(this.getSettings().fillHandle),void 0!==s("fillHandle")&&(a.handle&&s("fillHandle")===!1?a.disable():a.handle||s("fillHandle")===!1||(this.autofill=a,this.autofill.init()))});var s;l.Autofill=e},{"3rdparty/walkontable/src/cell/coords":5,browser:23,eventManager:41,"helpers/dom/element":46,plugins:59}],64:[function(a,b,c){"use strict";Object.defineProperties(c,{ColumnSorting:{get:function(){return w}},__esModule:{value:!0}});var d,e,f,g,h,i,j=(d=a("browser"),d&&d.__esModule&&d||{"default":d}
27)["default"],k=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),l=k.addClass,m=k.closest,n=k.hasClass,o=k.index,p=k.removeClass,q=(f=a("helpers/array"),f&&f.__esModule&&f||{"default":f}),r=(q.arrayEach,q.arrayMap),s=q.arrayReduce,t=(g=a("eventManager"),g&&g.__esModule&&g||{"default":g}).eventManager,u=(h=a("_base"),h&&h.__esModule&&h||{"default":h})["default"],v=(i=a("plugins"),i&&i.__esModule&&i||{"default":i}).registerPlugin;j.hooks.register("beforeColumnSort"),j.hooks.register("afterColumnSort");var w=function(a){$traceurRuntime.superConstructor(x).call(this,a),this.sortIndicators=[],this.lastSortedColumn=null},x=w;$traceurRuntime.createClass(w,{isEnabled:function(){return!!this.hot.getSettings().columnSorting},enablePlugin:function(){var a=this;if(!this.enabled){var b=this;this.hot.sortIndex=[],this.hot.sort=function(){var a=Array.prototype.slice.call(arguments);return b.sortByColumn.apply(b,a)},"undefined"==typeof this.hot.getSettings().observeChanges&&this.enableObserveChangesPlugin(),this.bindColumnSortingAfterClick(),this.addHook("afterTrimRow",function(){return a.sort()}),this.addHook("afterUntrimRow",function(){return a.sort()}),this.addHook("modifyRow",function(b){return a.translateRow(b)}),this.addHook("afterUpdateSettings",function(){return a.onAfterUpdateSettings()}),this.addHook("afterGetColHeader",function(b,c){return a.getColHeader(b,c)}),this.addHook("afterCreateRow",function(){b.afterCreateRow.apply(b,arguments)}),this.addHook("afterRemoveRow",function(){b.afterRemoveRow.apply(b,arguments)}),this.addHook("afterInit",function(){return a.sortBySettings()}),this.addHook("afterLoadData",function(){a.hot.sortIndex=[],a.hot.view&&a.sortBySettings()}),this.hot.view&&this.sortBySettings(),$traceurRuntime.superGet(this,x.prototype,"enablePlugin").call(this)}},disablePlugin:function(){this.hot.sort=void 0,$traceurRuntime.superGet(this,x.prototype,"disablePlugin").call(this)},onAfterUpdateSettings:function(){this.sortBySettings()},sortBySettings:function(){var a,b,c=this.hot.getSettings().columnSorting,d=this.loadSortingState();"undefined"==typeof d?(a=c.column,b=c.sortOrder):(a=d.sortColumn,b=d.sortOrder),"number"==typeof a&&(this.lastSortedColumn=a,this.sortByColumn(a,b))},setSortingColumn:function(a,b){return"undefined"==typeof a?(this.hot.sortColumn=void 0,void(this.hot.sortOrder=void 0)):(this.hot.sortOrder=this.hot.sortColumn===a&&"undefined"==typeof b?this.hot.sortOrder===!1?void 0:!this.hot.sortOrder:"undefined"==typeof b?!0:b,void(this.hot.sortColumn=a))},sortByColumn:function(a,b){if(this.setSortingColumn(a,b),"undefined"!=typeof this.hot.sortColumn){var c=j.hooks.run(this.hot,"beforeColumnSort",this.hot.sortColumn,this.hot.sortOrder);c!==!1&&this.sort(),this.updateOrderClass(),this.updateSortIndicator(),this.hot.render(),this.saveSortingState(),j.hooks.run(this.hot,"afterColumnSort",this.hot.sortColumn,this.hot.sortOrder)}},saveSortingState:function(){var a={};"undefined"!=typeof this.hot.sortColumn&&(a.sortColumn=this.hot.sortColumn),"undefined"!=typeof this.hot.sortOrder&&(a.sortOrder=this.hot.sortOrder),(a.hasOwnProperty("sortColumn")||a.hasOwnProperty("sortOrder"))&&j.hooks.run(this.hot,"persistentStateSave","columnSorting",a)},loadSortingState:function(){var a={};return j.hooks.run(this.hot,"persistentStateLoad","columnSorting",a),a.value},updateOrderClass:function(){var a;this.hot.sortOrder===!0?a="ascending":this.hot.sortOrder===!1&&(a="descending"),this.sortOrderClass=a},bindColumnSortingAfterClick:function(){function a(){var a=e.hot.view.TBODY.querySelector("tr"),b=1;return a&&(b=a.querySelectorAll("th").length),b}function b(b){var c=m(b,"TH");return e.hot.view.wt.wtTable.getFirstRenderedColumn()+o(c)-a()}var c=this;if(!this.bindedSortEvent){var d=t(this.hot),e=this;this.bindedSortEvent=!0,d.addEventListener(this.hot.rootElement,"click",function(a){if(n(a.target,"columnSorting")){var d=b(a.target);d!==c.lastSortedColumn&&(c.hot.sortOrder=!0),c.lastSortedColumn=d,c.sortByColumn(d)}})}},enableObserveChangesPlugin:function(){var a=this;this.hot._registerTimeout(setTimeout(function(){a.hot.updateSettings({observeChanges:!0})},0))},defaultSort:function(a){return function(b,c){return"string"==typeof b[1]&&(b[1]=b[1].toLowerCase()),"string"==typeof c[1]&&(c[1]=c[1].toLowerCase()),b[1]===c[1]?0:null===b[1]||""===b[1]?1:null===c[1]||""===c[1]?-1:isNaN(b[1])&&!isNaN(c[1])?a?1:-1:!isNaN(b[1])&&isNaN(c[1])?a?-1:1:(isNaN(b[1])||isNaN(c[1])||(b[1]=parseFloat(b[1]),c[1]=parseFloat(c[1])),b[1]<c[1]?a?-1:1:b[1]>c[1]?a?1:-1:0)}},dateSort:function(a){return function(b,c){if(b[1]===c[1])return 0;if(null===b[1]||""===b[1])return 1;if(null===c[1]||""===c[1])return-1;var d=new Date(b[1]),e=new Date(c[1]);return e>d?a?-1:1:d>e?a?1:-1:0}},numericSort:function(a){return function(b,c){var d=parseFloat(b[1]),e=parseFloat(c[1]);return d===e||isNaN(d)&&isNaN(e)?0:isNaN(d)?1:isNaN(e)?-1:e>d?a?-1:1:d>e?a?1:-1:0}},sort:function(){if("undefined"==typeof this.hot.sortOrder)return void(this.hot.sortIndex.length=0);var a,b;this.hot.sortingEnabled=!1,this.hot.sortIndex.length=0;for(var c=0,d=this.hot.countRows()-this.hot.getSettings().minSpareRows;d>c;c++)this.hot.sortIndex.push([c,this.hot.getDataAtCell(c,this.hot.sortColumn)]);if(a=this.hot.getCellMeta(0,this.hot.sortColumn),a.sortFunction)b=a.sortFunction;else switch(a.type){case"date":b=this.dateSort;break;case"numeric":b=this.numericSort;break;default:b=this.defaultSort}this.hot.sortIndex.sort(b(this.hot.sortOrder));for(var e=this.hot.sortIndex.length;e<this.hot.countRows();e++)this.hot.sortIndex.push([e,this.hot.getDataAtCell(e,this.hot.sortColumn)]);this.hot.sortingEnabled=!0},updateSortIndicator:function(){if("undefined"!=typeof this.hot.sortOrder){var a=this.hot.getCellMeta(0,this.hot.sortColumn);this.sortIndicators[this.hot.sortColumn]=a.sortIndicator}},translateRow:function(a){return this.hot.sortingEnabled&&"undefined"!=typeof this.hot.sortOrder&&this.hot.sortIndex&&this.hot.sortIndex.length&&this.hot.sortIndex[a]?this.hot.sortIndex[a][0]:a}
27,untranslateRow:function(a){if(this.hot.sortingEnabled&&this.hot.sortIndex&&this.hot.sortIndex.length)for(var b=0;b<this.hot.sortIndex.length;b++)if(this.hot.sortIndex[b][0]==a)return b},getColHeader:function(a,b){if(0>a||!b.parentNode)return!1;var c=b.querySelector(".colHeader"),d=(b.getAttribute("colspan"),b.parentNode.parentNode.childNodes),e=Array.prototype.indexOf.call(d,b.parentNode);e-=d.length,c&&(this.hot.getSettings().columnSorting&&a>=0&&-1===e&&l(c,"columnSorting"),p(c,"descending"),p(c,"ascending"),this.sortIndicators[a]&&a===this.hot.sortColumn&&("ascending"===this.sortOrderClass?l(c,"ascending"):"descending"===this.sortOrderClass&&l(c,"descending")))},isSorted:function(){return"undefined"!=typeof this.hot.sortColumn},afterCreateRow:function(a,b){if(this.isSorted()){for(var c=0;c<this.hot.sortIndex.length;c++)this.hot.sortIndex[c][0]>=a&&(this.hot.sortIndex[c][0]+=b);for(var c=0;b>c;c++)this.hot.sortIndex.splice(a+c,0,[a+c,this.hot.getSourceData()[a+c][this.hot.sortColumn+this.hot.colOffset()]]);this.saveSortingState()}},afterRemoveRow:function(a,b){function c(a){return s(d,function(b,c){return a>c&&b++,b},0)}if(this.isSorted()){var d=this.hot.sortIndex.splice(a,b);d=r(d,function(a){return a[0]}),this.hot.sortIndex=r(this.hot.sortIndex,function(a){var b=c(a[0]);return b&&(a[0]-=b),a}),this.saveSortingState()}}},{},u),v("columnSorting",w)},{_base:60,browser:23,eventManager:41,"helpers/array":42,"helpers/dom/element":46,plugins:59}],65:[function(a,b,c){"use strict";Object.defineProperties(c,{CommentEditor:{get:function(){return f}},__esModule:{value:!0}});var d,e=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}).addClass,f=function(){this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.editorStyle.position="absolute",this.editorStyle.zIndex=100,this.hide()},g=f;$traceurRuntime.createClass(f,{setPosition:function(a,b){this.editorStyle.left=a+"px",this.editorStyle.top=b+"px"},show:function(){this.editorStyle.display="block"},hide:function(){this.editorStyle.display="none"},isVisible:function(){return"block"===this.editorStyle.display},setValue:function(){var a=void 0!==arguments[0]?arguments[0]:"";a=a||"",this.getInputElement().value=a},getValue:function(){return this.getInputElement().value},isFocused:function(){return document.activeElement===this.getInputElement()},focus:function(){this.getInputElement().focus()},createEditor:function(){var a,b,c=document.querySelector("."+g.CLASS_EDITOR_CONTAINER);return c||(c=document.createElement("div"),e(c,g.CLASS_EDITOR_CONTAINER),document.body.appendChild(c)),a=document.createElement("div"),e(a,g.CLASS_EDITOR),b=document.createElement("textarea"),e(b,g.CLASS_INPUT),a.appendChild(b),c.appendChild(a),a},getInputElement:function(){return this.editor.querySelector("."+g.CLASS_INPUT)},destroy:function(){this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null}},{get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"},get CLASS_EDITOR(){return"htComments"},get CLASS_INPUT(){return"htCommentTextArea"},get CLASS_CELL(){return"htCommentCell"}})},{"helpers/dom/element":46}],66:[function(a,b,c){"use strict";Object.defineProperties(c,{Comments:{get:function(){return x}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],l=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),m=l.addClass,n=l.closest,o=l.getWindowScrollLeft,p=l.getWindowScrollTop,q=l.hasClass,r=l.offset,s=(f=a("eventManager"),f&&f.__esModule&&f||{"default":f}).EventManager,t=(g=a("3rdparty/walkontable/src/cell/coords"),g&&g.__esModule&&g||{"default":g}).WalkontableCellCoords,u=(h=a("plugins"),h&&h.__esModule&&h||{"default":h}).registerPlugin,v=(i=a("_base"),i&&i.__esModule&&i||{"default":i})["default"],w=(j=a("commentEditor"),j&&j.__esModule&&j||{"default":j}).CommentEditor,x=function(a){$traceurRuntime.superConstructor(y).call(this,a),this.editor=null,this.eventManager=null,this.range={},this.mouseDown=!1,this.contextMenuEvent=!1,this.timer=null},y=x;$traceurRuntime.createClass(x,{isEnabled:function(){return this.hot.getSettings().comments},enablePlugin:function(){var a=this;this.enabled||(this.editor||(this.editor=new w),this.eventManager||(this.eventManager=new s(this)),this.addHook("afterContextMenuDefaultOptions",function(b){return a.addToContextMenu(b)}),this.addHook("afterRenderer",function(b,c,d,e,f,g){return a.onAfterRenderer(b,g)}),this.addHook("afterScrollHorizontally",function(){return a.refreshEditorPosition()}),this.addHook("afterScrollVertically",function(){return a.refreshEditorPosition()}),this.addHook("afterColumnResize",function(){return a.refreshEditorPosition()}),this.addHook("afterRowResize",function(){return a.refreshEditorPosition()}),this.registerListeners(),$traceurRuntime.superGet(this,y.prototype,"enablePlugin").call(this))},disablePlugin:function(){$traceurRuntime.superGet(this,y.prototype,"disablePlugin").call(this)},registerListeners:function(){var a=this;this.eventManager.addEventListener(document,"mouseover",function(b){return a.onMouseOver(b)}),this.eventManager.addEventListener(document,"mousedown",function(b){return a.onMouseDown(b)}),this.eventManager.addEventListener(document,"mousemove",function(b){return a.onMouseMove(b)}),this.eventManager.addEventListener(document,"mouseup",function(b){return a.onMouseUp(b)}
27),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",function(b){return a.onEditorBlur(b)})},setRange:function(a){this.range=a},clearRange:function(){this.range={}},targetIsCellWithComment:function(a){return q(a.target,"htCommentCell")&&n(a.target,[this.hot.rootElement])?!0:!1},targetIsCommentTextArea:function(a){return this.editor.getInputElement()===a.target},saveComment:function(){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var a=this.editor.getValue(),b=this.range.from.row,c=this.range.from.col;this.hot.setCellMeta(b,c,"comment",a),this.hot.render()},saveCommentAtCell:function(a,b){this.setRange({from:new t(a,b)}),this.saveComment()},removeComment:function(){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.removeCellMeta(this.range.from.row,this.range.from.col,"comment"),this.hot.render(),this.hide()},removeCommentAtCell:function(a,b){this.setRange({from:new t(a,b)}),this.removeComment()},show:function(){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var a=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.refreshEditorPosition(!0),this.editor.setValue(a.comment||""),this.editor.show(),!0},showAtCell:function(a,b){return this.setRange({from:new t(a,b)}),this.show()},hide:function(){this.editor.hide()},refreshEditorPosition:function(){var a=void 0!==arguments[0]?arguments[0]:!1;if(a||this.range.from&&this.editor.isVisible()){var b=this.hot.view.wt.wtTable.getCell(this.range.from),c=r(b),d=this.hot.getColWidth(this.range.from.col),e=c.top,f=c.left,g=0,h=0;this.hot.view.wt.wtViewport.hasVerticalScroll()&&(e-=this.hot.view.wt.wtOverlays.topOverlay.getScrollPosition(),g=20),this.hot.view.wt.wtViewport.hasHorizontalScroll()&&(f-=this.hot.view.wt.wtOverlays.leftOverlay.getScrollPosition(),h=20);var i=f+d,j=e,k=this.hot.view.wt.wtTable.holder.getBoundingClientRect(),l={left:k.left+o()+h,right:k.right+o()-15,top:k.top+p()+g,bottom:k.bottom+p()};i<=l.left||i>l.right||j<=l.top||j>l.bottom?this.hide():this.editor.setPosition(i,j)}},onMouseDown:function(a){this.mouseDown=!0,this.hot.view&&this.hot.view.wt&&(this.contextMenuEvent||this.targetIsCommentTextArea(a)||this.targetIsCellWithComment(a)||this.hide(),this.contextMenuEvent=!1)},onMouseOver:function(a){if(!this.mouseDown&&!this.editor.isFocused())if(this.targetIsCellWithComment(a)){var b=this.hot.view.wt.wtTable.getCoords(a.target),c={from:new t(b.row,b.col)};this.setRange(c),this.show()}else this.targetIsCommentTextArea(a)||this.editor.isFocused()||this.hide()},onMouseMove:function(a){var b=this;this.targetIsCommentTextArea(a)&&(this.mouseDown=!0,clearTimeout(this.timer),this.timer=setTimeout(function(){b.mouseDown=!1},200))},onMouseUp:function(){this.mouseDown=!1},onAfterRenderer:function(a,b){b.comment&&m(a,b.commentedCellClassName)},onEditorBlur:function(){this.saveComment()},checkSelectionCommentsConsistency:function(){var a=this.hot.getSelectedRange();if(!a)return!1;var b=!1,c=a.from;return this.hot.getCellMeta(c.row,c.col).comment&&(b=!0),b},onContextMenuAddComment:function(){var a=this,b=this.hot.getSelectedRange();this.contextMenuEvent=!0,this.setRange({from:b.from}),this.show(),setTimeout(function(){a.hot&&(a.hot.deselectCell(),a.editor.focus())},10)},onContextMenuRemoveComment:function(a,b){this.contextMenuEvent=!0,this.removeCommentAtCell(b.start.row,b.start.col)},addToContextMenu:function(a){var b=this;a.items.push(k.plugins.ContextMenu.SEPARATOR,{key:"commentsAddEdit",name:function(){return b.checkSelectionCommentsConsistency()?"Edit Comment":"Add Comment"},callback:function(){return b.onContextMenuAddComment()},disabled:function(){return this.getSelected()&&!this.selection.selectedHeader.corner?!1:!0}},{key:"commentsRemove",name:function(){return"Delete Comment"},callback:function(a,c){return b.onContextMenuRemoveComment(a,c)},disabled:function(){return b.hot.selection.selectedHeader.corner||!b.checkSelectionCommentsConsistency()}})},destroy:function(){this.editor&&this.editor.destroy(),$traceurRuntime.superGet(this,y.prototype,"destroy").call(this)}},{},v),u("comments",x)},{"3rdparty/walkontable/src/cell/coords":5,_base:60,browser:23,commentEditor:65,eventManager:41,"helpers/dom/element":46,plugins:59}],67:[function(a,b,c){"use strict";function d(a,b){var c;return f(b,function(b){var d=b.key?b.key.split(":"):null;return Array.isArray(d)&&d[1]===a?(c=b,!1):void 0}),c}Object.defineProperties(c,{CommandExecutor:{get:function(){return g}},__esModule:{value:!0}});
27var e,f=(e=a("helpers/array"),e&&e.__esModule&&e||{"default":e}).arrayEach,g=function(a){this.hot=a,this.commands={},this.commonCallback=null};$traceurRuntime.createClass(g,{registerCommand:function(a,b){this.commands[a]=b},setCommonCallback:function(a){this.commonCallback=a},execute:function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];var e=this,g=a.split(":");a=g[0];var h=2===g.length?g[1]:null,i=this.commands[a];if(!i)throw new Error("Menu command '"+a+"' not exists.");if(h&&i.submenu&&(i=d(h,i.submenu.items)),i.disabled!==!0&&("function"!=typeof i.disabled||i.disabled.call(this.hot)!==!0)&&!i.hasOwnProperty("submenu")){var j=[];"function"==typeof i.callback&&j.push(i.callback),"function"==typeof this.commonCallback&&j.push(this.commonCallback),b.unshift(g.join(":")),f(j,function(a){return a.apply(e.hot,b)})}}},{})},{"helpers/array":42}],68:[function(a,b,c){"use strict";Object.defineProperties(c,{ContextMenu:{get:function(){return Q}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k,l,m,i,n,o=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],p=(e=a("_base"),e&&e.__esModule&&e||{"default":e})["default"],q=(f=a("helpers/array"),f&&f.__esModule&&f||{"default":f}).arrayEach,r=(g=a("commandExecutor"),g&&g.__esModule&&g||{"default":g}).CommandExecutor,s=(h=a("eventManager"),h&&h.__esModule&&h||{"default":h}).EventManager,t=(i=a("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}).hasClass,u=(j=a("itemsFactory"),j&&j.__esModule&&j||{"default":j}).ItemsFactory,v=(k=a("menu"),k&&k.__esModule&&k||{"default":k}).Menu,w=(l=a("plugins"),l&&l.__esModule&&l||{"default":l}).registerPlugin,x=(m=a("helpers/dom/event"),m&&m.__esModule&&m||{"default":m}),y=x.stopPropagation,z=x.pageX,A=x.pageY,B=(i=a("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}),C=B.getWindowScrollLeft,D=B.getWindowScrollTop,E=(n=a("predefinedItems"),n&&n.__esModule&&n||{"default":n}),F=E.ROW_ABOVE,G=E.ROW_BELOW,H=E.COLUMN_LEFT,I=E.COLUMN_RIGHT,J=E.REMOVE_ROW,K=E.REMOVE_COLUMN,L=E.UNDO,M=E.REDO,N=E.READ_ONLY,O=E.ALIGNMENT,P=E.SEPARATOR,Q=function(a){$traceurRuntime.superConstructor(R).call(this,a),this.eventManager=new s(this),this.commandExecutor=new r(this.hot),this.itemsFactory=null,this.menu=null},R=Q;$traceurRuntime.createClass(Q,{isEnabled:function(){return this.hot.getSettings().contextMenu},enablePlugin:function(){var a=this;if(!this.enabled){this.itemsFactory=new u(this.hot,R.DEFAULT_ITEMS);var b=this.hot.getSettings().contextMenu,c={items:this.itemsFactory.getItems(b)};this.registerEvents(),"function"==typeof b.callback&&this.commandExecutor.setCommonCallback(b.callback),$traceurRuntime.superGet(this,R.prototype,"enablePlugin").call(this),this.callOnPluginsReady(function(){a.hot.runHooks("afterContextMenuDefaultOptions",c),a.itemsFactory.setPredefinedItems(c.items);var d=a.itemsFactory.getItems(b);a.menu=new v(a.hot,{className:"htContextMenu",keepInViewport:!0}),a.menu.setMenuItems(d),a.menu.addLocalHook("afterOpen",function(){return a.onMenuAfterOpen()}),a.menu.addLocalHook("afterClose",function(){return a.onMenuAfterClose()}),a.menu.addLocalHook("executeCommand",function(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];return a.executeCommand.apply(a,b)}),q(d,function(b){return a.commandExecutor.registerCommand(b.key,b)})})}},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,R.prototype,"updatePlugin").call(this)},disablePlugin:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),$traceurRuntime.superGet(this,R.prototype,"disablePlugin").call(this)},registerEvents:function(){var a=this;this.eventManager.addEventListener(this.hot.rootElement,"contextmenu",function(b){return a.onContextMenu(b)})},open:function(a){this.menu&&(this.menu.open(),this.menu.setPosition({top:parseInt(A(a),10)-D(),left:parseInt(z(a),10)-C()}),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv,o.eventManager.isHotTableEnv=this.hot.isHotTableEnv)},close:function(){this.menu&&this.menu.close()},executeCommand:function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];this.commandExecutor.execute.apply(this.commandExecutor,a)},onContextMenu:function(a){function b(a){return"TD"===a.nodeName||"TD"===a.parentNode.nodeName}var c=this.hot.getSettings(),d=c.rowHeaders,e=c.colHeaders,f=a.realTarget;this.close(),a.preventDefault(),y(a),(d||e||b(f)||t(f,"current")&&t(f,"wtBorder"))&&this.open(a)},onMenuAfterOpen:function(){this.hot.runHooks("afterContextMenuShow",this)},onMenuAfterClose:function(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)},destroy:function(){this.close(),this.menu&&this.menu.destroy(),$traceurRuntime.superGet(this,R.prototype,"destroy").call(this)}},{get DEFAULT_ITEMS(){return[F,G,P,H,I,P,J,K,P,L,M,P,N,P,O]}},p),Q.SEPARATOR={name:P},o.hooks.register("afterContextMenuDefaultOptions"),o.hooks.register("afterContextMenuShow"),o.hooks.register("afterContextMenuHide"),o.hooks.register("afterContextMenuExecute"),w("contextMenu",Q)},{_base:60,browser:23,commandExecutor:67,eventManager:41,"helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,itemsFactory:70,menu:71,plugins:59,predefinedItems:72}],69:[function(a,b,c){"use strict";Object.defineProperties(c,{Cursor:{get:function(){return n}},__esModule:{value:!0}});var d,e,f,g=(d=a("browser"),d&&d.__esModule&&d||{"default":d}
27)["default"],h=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),i=h.getWindowScrollLeft,j=h.getWindowScrollTop,k=(f=a("helpers/dom/event"),f&&f.__esModule&&f||{"default":f}),l=k.pageX,m=k.pageY,n=function(a){var b,c,d,e,f,g,h=j(),k=i();this.type=this.getSourceType(a),"literal"===this.type?(b=parseInt(a.top,10),d=parseInt(a.left,10),f=a.height||0,g=a.width||0,c=b,e=d,b+=h,d+=k):"event"===this.type&&(b=parseInt(m(a),10),d=parseInt(l(a),10),f=a.target.clientHeight,g=a.target.clientWidth,c=b-h,e=d-k),this.top=b,this.topRelative=c,this.left=d,this.leftRelative=e,this.scrollTop=h,this.scrollLeft=k,this.cellHeight=f,this.cellWidth=g};$traceurRuntime.createClass(n,{getSourceType:function(a){var b="literal";return a instanceof Event&&(b="event"),b},fitsAbove:function(a){return this.topRelative>=a.offsetHeight},fitsBelow:function(a){var b=void 0!==arguments[1]?arguments[1]:window.innerHeight;return this.topRelative+a.offsetHeight<=b},fitsOnRight:function(a){var b=void 0!==arguments[1]?arguments[1]:window.innerWidth;return this.leftRelative+this.cellWidth+a.offsetWidth<=b},fitsOnLeft:function(a){return this.leftRelative>=a.offsetWidth}},{}),g.plugins.utils=g.plugins.utils||{},g.plugins.utils.Cursor=n},{browser:23,"helpers/dom/element":46,"helpers/dom/event":47}],70:[function(a,b,c){"use strict";function d(){var a=void 0!==arguments[0]?arguments[0]:null,b=void 0!==arguments[1]?arguments[1]:[],c=void 0!==arguments[2]?arguments[2]:{},d=[];return a&&a.items?a=a.items:Array.isArray(a)||(a=b),j(a)?i(a,function(a,b){var e=c["string"==typeof a?a:b];e||(e=a),j(a)?k(e,a):"string"==typeof e&&(e={name:e}),void 0===e.key&&(e.key=b),d.push(e)}):l(a,function(a,b){var e=c[a];!e&&o.indexOf(a)>=0||(e||(e={name:a,key:b+""}),j(a)&&k(e,a),void 0===e.key&&(e.key=b),d.push(e))}),d}Object.defineProperties(c,{ItemsFactory:{get:function(){return q}},__esModule:{value:!0}});var e,f,g,h=(e=a("helpers/object"),e&&e.__esModule&&e||{"default":e}),i=h.objectEach,j=h.isObject,k=h.extend,l=(f=a("helpers/array"),f&&f.__esModule&&f||{"default":f}).arrayEach,m=(g=a("predefinedItems"),g&&g.__esModule&&g||{"default":g}),n=m.SEPARATOR,o=m.ITEMS,p=m.predefinedItems,q=function(a){var b=void 0!==arguments[1]?arguments[1]:null;this.hot=a,this.predefinedItems=p(),this.defaultOrderPattern=b};$traceurRuntime.createClass(q,{setPredefinedItems:function(a){var b=this,c={};this.defaultOrderPattern.length=0,i(a,function(a,d){var e="";a.name===n?(c[n]=a,e=n):isNaN(parseInt(d,10))?(a.key=void 0===a.key?d:a.key,c[d]=a,e=a.key):(c[a.key]=a,e=a.key),b.defaultOrderPattern.push(e)}),this.predefinedItems=c},getItems:function(){var a=void 0!==arguments[0]?arguments[0]:null;return d(a,this.defaultOrderPattern,this.predefinedItems)}},{})},{"helpers/array":42,"helpers/object":52,predefinedItems:72}],71:[function(a,b,c){"use strict";Object.defineProperties(c,{Menu:{get:function(){return R}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k,l,m,n,o,p=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],q=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),r=q.addClass,s=q.empty,t=q.fastInnerHTML,u=q.getScrollbarWidth,v=q.isChildOf,w=q.removeClass,x=(f=a("helpers/array"),f&&f.__esModule&&f||{"default":f}),y=x.arrayEach,z=x.arrayFilter,A=x.arrayReduce,B=(g=a("cursor"),g&&g.__esModule&&g||{"default":g}).Cursor,C=(h=a("eventManager"),h&&h.__esModule&&h||{"default":h}).EventManager,D=(i=a("helpers/object"),i&&i.__esModule&&i||{"default":i}).mixin,E=(j=a("helpers/function"),j&&j.__esModule&&j||{"default":j}).debounce,F=(k=a("utils"),k&&k.__esModule&&k||{"default":k}),G=F.filterSeparators,H=F.hasSubMenu,I=F.isDisabled,J=F.isItemHidden,K=F.isSeparator,L=F.isSelectionDisabled,M=F.normalizeSelection,N=(l=a("helpers/unicode"),l&&l.__esModule&&l||{"default":l}).KEY_CODES,O=(m=a("mixins/localHooks"),m&&m.__esModule&&m||{"default":m}).localHooks,P=(n=a("predefinedItems"),n&&n.__esModule&&n||{"default":n}).SEPARATOR,Q=(o=a("helpers/dom/event"),o&&o.__esModule&&o||{"default":o}).stopImmediatePropagation,R=function(a,b){this.hot=a,this.options=b||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1},this.eventManager=new C(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.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()},S=R;$traceurRuntime.createClass(R,{registerEvents:function(){var a=this;this.eventManager.addEventListener(document.documentElement,"mousedown",function(b){return a.onDocumentMouseDown(b)})},setMenuItems:function(a){this.menuItems=a},setOffset:function(a){var b=void 0!==arguments[1]?arguments[1]:0;this.offset[a]=b},isSubMenu:function(){return null!==this.parentMenu},open:function(){var a=this;this.container.removeAttribute("style"),this.container.style.display="block";var b=E(function(b){return a.openSubMenu(b)},300),c=z(this.menuItems,function(b){return J(b,a.hot)});c=G(c,P);var d={data:c,colHeaders:!1,colWidths:[200],autoRowSize:!1,readOnly:!0,copyPaste:!1,columns:[{data:"name",renderer:function(b,c,d,e,f,g){return a.menuItemRenderer(b,c,d,e,f,g)}}],renderAllRows:!0,fragmentSelection:"cell",disableVisualSelection:"area",beforeKeyDown:function(b){return a.onBeforeKeyDown(b)},afterOnCellMouseOver:function(c,d){a.isAllSubMenusClosed()?b(d.row):a.openSubMenu(d.row)}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new p.C
27ore(this.container,d),this.hotMenu.addHook("afterInit",function(){return a.onAfterInit()}),this.hotMenu.init(),this.hotMenu.listen(),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")},close:function(){var a=void 0!==arguments[0]?arguments[0]:!1;this.isOpened()&&(a&&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")))},openSubMenu:function(a){if(!this.hotMenu)return!1;var b=this.hotMenu.getCell(a,0);if(this.closeAllSubMenus(),!b||!H(b))return!1;var c=this.hotMenu.getSourceDataAtRow(a),d=new S(this.hot,{parent:this,name:c.name,className:this.options.className,keepInViewport:!0});return d.setMenuItems(c.submenu.items),d.open(),d.setPosition(b.getBoundingClientRect()),this.hotSubMenus[c.key]=d,d},closeSubMenu:function(a){var b=this.hotMenu.getSourceDataAtRow(a),c=this.hotSubMenus[b.key];c&&(c.destroy(),delete this.hotSubMenus[b.key])},closeAllSubMenus:function(){var a=this;y(this.hotMenu.getData(),function(b,c){return a.closeSubMenu(c)})},isAllSubMenusClosed:function(){return 0===Object.keys(this.hotSubMenus).length},destroy:function(){this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy()},isOpened:function(){return null!==this.hotMenu},executeCommand:function(a){if(this.isOpened()&&this.hotMenu.getSelected()){var b=this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelected()[0]);if(this.runLocalHooks("select",b,a),b.isCommand!==!1&&b.name!==P){var c=this.hot.getSelectedRange(),d=c?M(c):{},e=!0;(b.disabled===!0||"function"==typeof b.disabled&&b.disabled.call(this.hot)===!0||b.submenu)&&(e=!1),this.runLocalHooks("executeCommand",b.key,d,a),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",b.key,d,a),e&&this.close(!0)}}},setPosition:function(a){var b=new B(a);this.options.keepInViewport?(b.fitsBelow(this.container)?this.setPositionBelowCursor(b):b.fitsAbove(this.container)?this.setPositionAboveCursor(b):this.setPositionBelowCursor(b),b.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(b):this.setPositionOnLeftOfCurs
27or(b)):(this.setPositionBelowCursor(b),this.setPositionOnRightOfCursor(b))},setPositionAboveCursor:function(a){var b=this.offset.above+a.top-this.container.offsetHeight;this.isSubMenu()&&(b=a.top+a.cellHeight-this.container.offsetHeight+3),this.container.style.top=b+"px"},setPositionBelowCursor:function(a){var b=this.offset.below+a.top;this.isSubMenu()&&(b=a.top-1),this.container.style.top=b+"px"},setPositionOnRightOfCursor:function(a){var b;b=this.isSubMenu()?1+a.left+a.cellWidth:this.offset.right+1+a.left,this.container.style.left=b+"px"},setPositionOnLeftOfCursor:function(a){var b=this.offset.left+a.left-this.container.offsetWidth+u()+4;this.container.style.left=b+"px"},selectFirstCell:function(){var a=this.hotMenu.getCell(0,0); 28 29K(a)||I(a)||L(a)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)},selectLastCell:function(){var a=this.hotMenu.countRows()-1,b=this.hotMenu.getCell(a,0);K(b)||I(b)||L(b)?this.selectPrevCell(a,0):this.hotMenu.selectCell(a,0)},selectNextCell:function(a,b){var c=a+1,d=c<this.hotMenu.countRows()?this.hotMenu.getCell(c,b):null;d&&(K(d)||I(d)||L(d)?this.selectNextCell(c,b):this.hotMenu.selectCell(c,b))},selectPrevCell:function(a,b){var c=a-1,d=c>=0?this.hotMenu.getCell(c,b):null;d&&(K(d)||I(d)||L(d)?this.selectPrevCell(c,b):this.hotMenu.selectCell(c,b))},menuItemRenderer:function(a,b,c,d,e,f){var g=this,h=a.getSourceDataAtRow(c),i=document.createElement("div"),j=function(a){return a.hasOwnProperty("submenu")},k=function(a){return new RegExp(P,"i").test(a.name)},l=function(a){return a.disabled===!0||"function"==typeof a.disabled&&a.disabled.call(g.hot)===!0},m=function(a){return a.disableSelection};"function"==typeof f&&(f=f.call(this.hot)),s(b),r(i,"htItemWrapper"),b.appendChild(i),k(h)?r(b,"htSeparator"):"function"==typeof h.renderer?(r(b,"htCustomMenuRenderer"),b.appendChild(h.renderer(a,i,c,d,e,f))):t(i,f),l(h)?(r(b,"htDisabled"),this.eventManager.addEventListener(b,"mouseenter",function(){return a.deselectCell()})):m(h)?(r(b,"htSelectionDisabled"),this.eventManager.addEventListener(b,"mouseenter",function(){return a.deselectCell()})):j(h)?(r(b,"htSubmenu"),m(h)?this.eventManager.addEventListener(b,"mouseenter",function(){return a.deselectCell()}):this.eventManager.addEventListener(b,"mouseenter",function(){return a.selectCell(c,d,void 0,void 0,!1,!1)})):(w(b,"htSubmenu"),w(b,"htDisabled"),m(h)?this.eventManager.addEventListener(b,"mouseenter",function(){return a.deselectCell()}):this.eventManager.addEventListener(b,"mouseenter",function(){return a.selectCell(c,d,void 0,void 0,!1,!1)}))},createContainer:function(){var a=void 0!==arguments[0]?arguments[0]:null;a&&(a=a.replace(/ /g,"_"),a=this.options.className+"Sub_"+a);var b;return b=document.querySelector(a?"."+this.options.className+"."+a:"."+this.options.className),b||(b=document.createElement("div"),r(b,"htMenu "+this.options.className),a&&r(b,a),document.getElementsByTagName("body")[0].appendChild(b)),b},blockMainTableCallbacks:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)},releaseMainTableCallbacks:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)},onBeforeKeyDown:function(a){var b=this.hotMenu.getSelected(),c=!1;switch(a.keyCode){case N.ESCAPE:this.close(),c=!0;break;case N.ENTER:b&&(this.hotMenu.getSourceDataAtRow(b[0]).submenu?c=!0:(this.executeCommand(a),this.close(!0)));break;case N.ARROW_DOWN:b?this.selectNextCell(b[0],b[1]):this.selectFirstCell(),c=!0;break;case N.ARROW_UP:b?this.selectPrevCell(b[0],b[1]):this.selectLastCell(),c=!0;break;case N.ARROW_RIGHT:if(b){var d=this.openSubMenu(b[0]);d&&d.selectFirstCell()}c=!0;break;case N.ARROW_LEFT:b&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),c=!0)}c&&(a.preventDefault(),Q(a))},onAfterInit:function(){var a=this.hotMenu.getSettings().data,b=this.hotMenu.view.wt.wtTable.hider.style,c=this.hotMenu.view.wt.wtTable.holder.style,d=parseInt(b.width,10),e=A(a,function(a,b){return a+(b.name===P?1:26)},0);c.width=d+22+"px",c.height=e+4+"px"},onDocumentMouseDown:function(a){this.isOpened()&&(this.container&&v(a.target,this.container)&&this.executeCommand(a),this.options.standalone&&this.hotMenu&&!v(a.target,this.hotMenu.rootElement)?this.close(!0):(this.isAllSubMenusClosed()||this.isSubMenu())&&!v(a.target,".htMenu")&&v(a.target,document)&&this.close(!0))}},{}),D(R,O)},{browser:23,cursor:69,eventManager:41,"helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/function":49,"helpers/object":52,"helpers/unicode":55,"mixins/localHooks":56,predefinedItems:72,utils:85}],72:[function(a,b,c){"use strict";function d(){var a={};
29return t(da,function(b,c){return a[c]=b()}),a}function e(a,b){-1===ca.indexOf(a)&&(da[a]=b)}var f;Object.defineProperties(c,{ALIGNMENT:{get:function(){return h.KEY}},CLEAR_COLUMN:{get:function(){return i.KEY}},COLUMN_LEFT:{get:function(){return j.KEY}},COLUMN_RIGHT:{get:function(){return k.KEY}},READ_ONLY:{get:function(){return l.KEY}},REDO:{get:function(){return m.KEY}},REMOVE_COLUMN:{get:function(){return n.KEY}},REMOVE_ROW:{get:function(){return o.KEY}},ROW_ABOVE:{get:function(){return p.KEY}},ROW_BELOW:{get:function(){return q.KEY}},SEPARATOR:{get:function(){return r.KEY}},UNDO:{get:function(){return s.KEY}},ITEMS:{get:function(){return ca}},predefinedItems:{get:function(){return d}},addItem:{get:function(){return e}},__esModule:{value:!0}});var g,h,i,j,k,l,m,n,o,p,q,r,s,h,i,j,k,l,m,n,o,p,q,r,s,t=(g=a("helpers/object"),g&&g.__esModule&&g||{"default":g}).objectEach,u=(h=a("predefinedItems/alignment"),h&&h.__esModule&&h||{"default":h}),v=u.alignmentItem,w=u.KEY,x=(i=a("predefinedItems/clearColumn"),i&&i.__esModule&&i||{"default":i}),y=x.clearColumnItem,z=x.KEY,A=(j=a("predefinedItems/columnLeft"),j&&j.__esModule&&j||{"default":j}),B=A.columnLeftItem,C=A.KEY,D=(k=a("predefinedItems/columnRight"),k&&k.__esModule&&k||{"default":k}),E=D.columnRightItem,F=D.KEY,G=(l=a("predefinedItems/readOnly"),l&&l.__esModule&&l||{"default":l}),H=G.readOnlyItem,I=G.KEY,J=(m=a("predefinedItems/redo"),m&&m.__esModule&&m||{"default":m}),K=J.redoItem,L=J.KEY,M=(n=a("predefinedItems/removeColumn"),n&&n.__esModule&&n||{"default":n}),N=M.removeColumnItem,O=M.KEY,P=(o=a("predefinedItems/removeRow"),o&&o.__esModule&&o||{"default":o}),Q=P.removeRowItem,R=P.KEY,S=(p=a("predefinedItems/rowAbove"),p&&p.__esModule&&p||{"default":p}),T=S.rowAboveItem,U=S.KEY,V=(q=a("predefinedItems/rowBelow"),q&&q.__esModule&&q||{"default":q}),W=V.rowBelowItem,X=V.KEY,Y=(r=a("predefinedItems/separator"),r&&r.__esModule&&r||{"default":r}),Z=Y.separatorItem,$=Y.KEY,_=(s=a("predefinedItems/undo"),s&&s.__esModule&&s||{"default":s}),aa=_.undoItem,ba=_.KEY,h=(h=a("predefinedItems/alignment"),h&&h.__esModule&&h||{"default":h}),i=(i=a("predefinedItems/clearColumn"),i&&i.__esModule&&i||{"default":i}),j=(j=a("predefinedItems/columnLeft"),j&&j.__esModule&&j||{"default":j}),k=(k=a("predefinedItems/columnRight"),k&&k.__esModule&&k||{"default":k}),l=(l=a("predefinedItems/readOnly"),l&&l.__esModule&&l||{"default":l}),m=(m=a("predefinedItems/redo"),m&&m.__esModule&&m||{"default":m}),n=(n=a("predefinedItems/removeColumn"),n&&n.__esModule&&n||{"default":n}),o=(o=a("predefinedItems/removeRow"),o&&o.__esModule&&o||{"default":o}),p=(p=a("predefinedItems/rowAbove"),p&&p.__esModule&&p||{"default":p}),q=(q=a("predefinedItems/rowBelow"),q&&q.__esModule&&q||{"default":q}),r=(r=a("predefinedItems/separator"),r&&r.__esModule&&r||{"default":r}),s=(s=a("predefinedItems/undo"),s&&s.__esModule&&s||{"default":s}),ca=[U,X,C,F,z,R,O,ba,L,I,w,$],da=(f={},Object.defineProperty(f,$,{value:Z,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(f,U,{value:T,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(f,X,{value:W,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(f,C,{value:B,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(f,F,{value:E,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(f,z,{value:y,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(f,R,{value:Q,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(f,O,{value:N,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(f,ba,{value:aa,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(f,L,{value:K,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(f,I,{value:H,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(f,w,{value:v,configurable:!0,enumerable:!0,writable:!0}),f)},{"helpers/object":52,"predefinedItems/alignment":73,"predefinedItems/clearColumn":74,"predefinedItems/columnLeft":75,"predefinedItems/columnRight":76,"predefinedItems/readOnly":77,"predefinedItems/redo":78,"predefinedItems/removeC
29olumn":79,"predefinedItems/removeRow":80,"predefinedItems/rowAbove":81,"predefinedItems/rowBelow":82,"predefinedItems/separator":83,"predefinedItems/undo":84}],73:[function(a,b,c){"use strict";function d(){return{key:m,name:"Alignment",disabled:function(){return this.getSelectedRange()&&!this.selection.selectedHeader.corner?!1:!0},submenu:{items:[{key:m+":left",name:function(){var a=this,b="Left",c=j(this.getSelectedRange(),function(b,c){var d=a.getCellMeta(b,c).className;return d&&-1!==d.indexOf("htLeft")?!0:void 0});return c&&(b=k(b)),b},callback:function(){var a=this,b=this.getSelectedRange(),c=i(b,function(b,c){return a.getCellMeta(b,c).className}),d="horizontal",e="htLeft";this.runHooks("beforeCellAlignment",c,b,d,e),h(b,d,e,function(b,c){return a.getCellMeta(b,c)}),this.render()},disabled:!1},{key:m+":center",name:function(){var a=this,b="Center",c=j(this.getSelectedRange(),function(b,c){var d=a.getCellMeta(b,c).className;return d&&-1!==d.indexOf("htCenter")?!0:void 0});return c&&(b=k(b)),b},callback:function(){var a=this,b=this.getSelectedRange(),c=i(b,function(b,c){return a.getCellMeta(b,c).className}),d="horizontal",e="htCenter";this.runHooks("beforeCellAlignment",c,b,d,e),h(b,d,e,function(b,c){return a.getCellMeta(b,c)}),this.render()},disabled:!1},{key:m+":right",name:function(){var a=this,b="Right",c=j(this.getSelectedRange(),function(b,c){var d=a.getCellMeta(b,c).className;return d&&-1!==d.indexOf("htRight")?!0:void 0});return c&&(b=k(b)),b},callback:function(){var a=this,b=this.getSelectedRange(),c=i(b,function(b,c){return a.getCellMeta(b,c).className}),d="horizontal",e="htRight";this.runHooks("beforeCellAlignment",c,b,d,e),h(b,d,e,function(b,c){return a.getCellMeta(b,c)}),this.render()},disabled:!1},{key:m+":justify",name:function(){var a=this,b="Justify",c=j(this.getSelectedRange(),function(b,c){var d=a.getCellMeta(b,c).className;return d&&-1!==d.indexOf("htJustify")?!0:void 0});return c&&(b=k(b)),b},callback:function(){var a=this,b=this.getSelectedRange(),c=i(b,function(b,c){return a.getCellMeta(b,c).className}),d="horizontal",e="htJustify";this.runHooks("beforeCellAlignment",c,b,d,e),h(b,d,e,function(b,c){return a.getCellMeta(b,c)}),this.render()},disabled:!1},{name:l},{key:m+":top",name:function(){var a=this,b="Top",c=j(this.getSelectedRange(),function(b,c){var d=a.getCellMeta(b,c).className;return d&&-1!==d.indexOf("htTop")?!0:void 0});return c&&(b=k(b)),b},callback:function(){var a=this,b=this.getSelectedRange(),c=i(b,function(b,c){return a.getCellMeta(b,c).className}),d="vertical",e="htTop";this.runHooks("beforeCellAlignment",c,b,d,e),h(b,d,e,function(b,c){return a.getCellMeta(b,c)}),this.render()},disabled:!1},{key:m+":middle",name:function(){var a=this,b="Middle",c=j(this.getSelectedRange(),function(b,c){var d=a.getCellMeta(b,c).className;return d&&-1!==d.indexOf("htMiddle")?!0:void 0});return c&&(b=k(b)),b},callback:function(){var a=this,b=this.getSelectedRange(),c=i(b,function(b,c){return a.getCellMeta(b,c).className}),d="vertical",e="htMiddle";this.runHooks("beforeCellAlignment",c,b,d,e),h(b,d,e,function(b,c){return a.getCellMeta(b,c)}),this.render()},disabled:!1},{key:m+":bottom",name:function(){var a=this,b="Bottom",c=j(this.getSelectedRange(),function(b,c){var d=a.getCellMeta(b,c).className;return d&&-1!==d.indexOf("htBottom")?!0:void 0});return c&&(b=k(b)),b},callback:function(){var a=this,b=this.getSelectedRange(),c=i(b,function(b,c){return a.getCellMeta(b,c).className}),d="vertical",e="htBottom";this.runHooks("beforeCellAlignment",c,b,d,e),h(b,d,e,function(b,c){return a.getCellMeta(b,c)}),this.render()},disabled:!1}]}}}Object.defineProperties(c,{KEY:{get:function(){return m}},alignmentItem:{get:function(){return d}},__esModule:{value:!0}});var e,f,g=(e=a("utils"),e&&e.__esModule&&e||{"default":e}),h=g.align,i=g.getAlignmentClasses,j=g.checkSelectionConsistency,k=g.markLabelAsSelected,l=(f=a("separator"),f&&f.__esModule&&f||{"default":f}).KEY,m="alignment"},{separator:83,utils:85}],74:[function(a,b,c){"use strict";function d(){return{key:g,name:"Clear column",callback:function(a,b){var c=b.start.col;this.countRows()&&this.populateFromArray(0,c,[[null]],Math.max(b.start.row,b.end.row),c)},disabled:function(){var a=f(this);if(!a)return!0;var b=[a[0],0,a[0],this.countCols()-1],c=b.join(",")==a.join(",");return a[1]<0||this.countCols()>=this.getSettings().maxCols||c}}}Object.defineProperties(c,{KEY:{get:function(){return g}},clearColumnItem:{get:function(){return d}},__esModule:{value:!0}});
29var e,f=(e=a("utils"),e&&e.__esModule&&e||{"default":e}).getValidSelection,g="clear_column"},{utils:85}],75:[function(a,b,c){"use strict";function d(){return{key:g,name:"Insert column on the left",callback:function(a,b){this.alter("insert_col",b.start.col)},disabled:function(){var a=f(this);if(!a)return!0;if(!this.isColumnModificationAllowed())return!0;var b=[a[0],0,a[0],this.countCols()-1],c=b.join(",")==a.join(","),d=1===this.countCols();return a[1]<0||this.countCols()>=this.getSettings().maxCols||!d&&c},hidden:function(){return!this.getSettings().allowInsertColumn}}}Object.defineProperties(c,{KEY:{get:function(){return g}},columnLeftItem:{get:function(){return d}},__esModule:{value:!0}});var e,f=(e=a("utils"),e&&e.__esModule&&e||{"default":e}).getValidSelection,g="col_left"},{utils:85}],76:[function(a,b,c){"use strict";function d(){return{key:g,name:"Insert column on the right",callback:function(a,b){this.alter("insert_col",b.end.col+1)},disabled:function(){var a=f(this);if(!a)return!0;if(!this.isColumnModificationAllowed())return!0;var b=[a[0],0,a[0],this.countCols()-1],c=b.join(",")==a.join(","),d=1===this.countCols();return a[1]<0||this.countCols()>=this.getSettings().maxCols||!d&&c},hidden:function(){return!this.getSettings().allowInsertColumn}}}Object.defineProperties(c,{KEY:{get:function(){return g}},columnRightItem:{get:function(){return d}},__esModule:{value:!0}});var e,f=(e=a("utils"),e&&e.__esModule&&e||{"default":e}).getValidSelection,g="col_right"},{utils:85}],77:[function(a,b,c){"use strict";function d(){return{key:i,name:function(){var a=this,b="Read only",c=g(this.getSelectedRange(),function(b,c){return a.getCellMeta(b,c).readOnly});return c&&(b=h(b)),b},callback:function(){var a=this,b=this.getSelectedRange(),c=g(b,function(b,c){return a.getCellMeta(b,c).readOnly});b.forAll(function(b,d){a.getCellMeta(b,d).readOnly=c?!1:!0}),this.render()},disabled:function(){return this.getSelectedRange()&&!this.selection.selectedHeader.corner?!1:!0}}}Object.defineProperties(c,{KEY:{get:function(){return i}},readOnlyItem:{get:function(){return d}},__esModule:{value:!0}});var e,f=(e=a("utils"),e&&e.__esModule&&e||{"default":e}),g=f.checkSelectionConsistency,h=f.markLabelAsSelected,i="make_read_only"},{utils:85}],78:[function(a,b,c){"use strict";function d(){return{key:e,name:"Redo",callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}}}Object.defineProperties(c,{KEY:{get:function(){return e}},redoItem:{get:function(){return d}},__esModule:{value:!0}});var e="redo"},{}],79:[function(a,b,c){"use strict";function d(){return{key:g,name:"Remove column",callback:function(a,b){var c=b.end.col-b.start.col+1;this.alter("remove_col",b.start.col,c)},disabled:function(){var a=f(this),b=this.countCols();return!a||this.selection.selectedHeader.rows||this.selection.selectedHeader.corner||!this.isColumnModificationAllowed()||!b},hidden:function(){return!this.getSettings().allowRemoveColumn}}}Object.defineProperties(c,{KEY:{get:function(){return g}},removeColumnItem:{get:function(){return d}},__esModule:{value:!0}});var e,f=(e=a("utils"),e&&e.__esModule&&e||{"default":e}).getValidSelection,g="remove_col"},{utils:85}],80:[function(a,b,c){"use strict";function d(){return{key:g,name:"Remove row",callback:function(a,b){var c=b.end.row-b.start.row+1;this.alter("remove_row",b.start.row,c)},disabled:function(){var a=f(this),b=this.countRows();return!a||this.selection.selectedHeader.cols||this.selection.selectedHeader.corner||!b},hidden:function(){return!this.getSettings().allowRemoveRow}}}Object.defineProperties(c,{KEY:{get:function(){return g}},removeRowItem:{get:function(){return d}},__esModule:{value:!0}});var e,f=(e=a("utils"),e&&e.__esModule&&e||{"default":e}).getValidSelection,g="remove_row"},{utils:85}],81:[function(a,b,c){"use strict";function d(){return{key:g,name:"Insert row above",callback:function(a,b){this.alter("insert_row",b.start.row)},disabled:function(){var a=f(this);return!a||this.selection.selectedHeader.cols||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}Object.defineProperties(c,{KEY:{get:function(){return g}},rowAboveItem:{get:function(){return d}},__esModule:{value:!0}});
29var e,f=(e=a("utils"),e&&e.__esModule&&e||{"default":e}).getValidSelection,g="row_above"},{utils:85}],82:[function(a,b,c){"use strict";function d(){return{key:g,name:"Insert row below",callback:function(a,b){this.alter("insert_row",b.end.row+1)},disabled:function(){var a=f(this);return!a||this.selection.selectedHeader.cols||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}Object.defineProperties(c,{KEY:{get:function(){return g}},rowBelowItem:{get:function(){return d}},__esModule:{value:!0}});var e,f=(e=a("utils"),e&&e.__esModule&&e||{"default":e}).getValidSelection,g="row_below"},{utils:85}],83:[function(a,b,c){"use strict";function d(){return{name:e}}Object.defineProperties(c,{KEY:{get:function(){return e}},separatorItem:{get:function(){return d}},__esModule:{value:!0}});var e="---------"},{}],84:[function(a,b,c){"use strict";function d(){return{key:e,name:"Undo",callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}}}Object.defineProperties(c,{KEY:{get:function(){return e}},undoItem:{get:function(){return d}},__esModule:{value:!0}});var e="undo"},{}],85:[function(a,b,c){"use strict";function d(a){return{start:a.getTopLeftCorner(),end:a.getBottomRightCorner()}}function e(a){return z(a,"htSeparator")}function f(a){return z(a,"htSubmenu")}function g(a){return z(a,"htDisabled")}function h(a){return z(a,"htSelectionDisabled")}function i(a){var b=a.getSelected();return b?b[0]<0?null:b:null}function j(a,b){return-1!=a.indexOf(b)?a:(a=a.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ",""),a+=" "+b)}function k(a,b){return-1!=a.indexOf(b)?a:(a=a.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ",""),a+=" "+b)}function l(a,b){for(var c={},d=a.from.row;d<=a.to.row;d++)for(var e=a.from.col;e<=a.to.col;e++)c[d]||(c[d]=[]),c[d][e]=b(d,e);return c}function m(a,b,c,d){if(a.from.row==a.to.row&&a.from.col==a.to.col)n(a.from.row,a.from.col,b,c,d);else for(var e=a.from.row;e<=a.to.row;e++)for(var f=a.from.col;f<=a.to.col;f++)n(e,f,b,c,d)}function n(a,b,c,d,e){var f=e(a,b),g=d;f.className&&(g="vertical"===c?j(f.className,d):k(f.className,d)),f.className=g}function o(a,b){var c=!1;return a&&a.forAll(function(a,d){return b(a,d)?(c=!0,!1):void 0}),c}function p(a){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+a}function q(a,b){return!a.hidden||!("function"==typeof a.hidden&&a.hidden.call(b))}function r(a,b){for(var c=a.slice(0),d=0;d<c.length&&c[d].name===b;)c.shift();return c}function s(a,b){var c=a.slice(0);return c.reverse(),c=r(c,b),c.reverse(),c}function t(a){var b=[];return y(a,function(a,c){c>0?b[b.length-1].name!==a.name&&b.push(a):b.push(a)}),b}function u(a){var b=void 0!==arguments[1]?arguments[1]:A,c=a.slice(0);return c=r(c,b),c=s(c,b),c=t(c)}Object.defineProperties(c,{normalizeSelection:{get:function(){return d}},isSeparator:{get:function(){return e}},hasSubMenu:{get:function(){return f}},isDisabled:{get:function(){return g}},isSelectionDisabled:{get:function(){return h}},getValidSelection:{get:function(){return i}},prepareVerticalAlignClass:{get:function(){return j}},prepareHorizontalAlignClass:{get:function(){return k}},getAlignmentClasses:{get:function(){return l}},align:{get:function(){return m}},checkSelectionConsistency:{get:function(){return o}},markLabelAsSelected:{get:function(){return p}},isItemHidden:{get:function(){return q}},filterSeparators:{get:function(){return u}},__esModule:{value:!0}});var v,w,x,y=(v=a("helpers/array"),v&&v.__esModule&&v||{"default":v}).arrayEach,z=(w=a("helpers/dom/element"),w&&w.__esModule&&w||{"default":w}).hasClass,A=(x=a("predefinedItems/separator"),x&&x.__esModule&&x||{"default":x}).KEY},{"helpers/array":42,"helpers/dom/element":46,"predefinedItems/separator":83}],86:[function(a,b,c){"use strict";Object.defineProperties(c,{ContextMenuCopyPaste:{get:function(){return r}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k=(d=a("browser"),d&&d.__esModule&&d||{"default":d}
29)["default"],l=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}).removeClass,m=(f=a("helpers/array"),f&&f.__esModule&&f||{"default":f}).arrayEach,n=(g=a("eventManager"),g&&g.__esModule&&g||{"default":g}).EventManager,o=(h=a("plugins"),h&&h.__esModule&&h||{"default":h}).registerPlugin,p=(i=a("_base"),i&&i.__esModule&&i||{"default":i})["default"],q=(j=a("zeroclipboard"),j&&j.__esModule&&j||{"default":j})["default"],r=function(a){$traceurRuntime.superConstructor(s).call(this,a),this.eventManager=new n(this),this.swfPath=null,this.outsideClickDeselectsCache=null},s=r;$traceurRuntime.createClass(r,{isEnabled:function(){return this.hot.getSettings().contextMenuCopyPaste},enablePlugin:function(){var a=this;if(!this.enabled){"object"==typeof this.hot.getSettings().contextMenuCopyPaste&&(this.swfPath=this.hot.getSettings().contextMenuCopyPaste.swfPath),"undefined"==typeof q&&console.error("To be able to use the Copy/Paste feature from the context menu, you need to manually include ZeroClipboard.js file to your website.");try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(b){"undefined"==typeof navigator.mimeTypes["application/x-shockwave-flash"]&&console.error("To be able to use the Copy/Paste feature from the context menu, your browser needs to have Flash Plugin installed.")}this.swfPath&&q.config({swfPath:this.swfPath}),this.hot.addHook("afterContextMenuShow",function(){return a.onAfterContextMenuShow()}),this.hot.addHook("afterContextMenuDefaultOptions",function(b){return a.onAfterContextMenuDefaultOptions(b)}),this.registerEvents(),$traceurRuntime.superGet(this,s.prototype,"enablePlugin").call(this)}},disablePlugin:function(){$traceurRuntime.superGet(this,s.prototype,"disablePlugin").call(this)},registerEvents:function(){var a=this;this.eventManager.addEventListener(document,"mouseenter",function(){return a.removeCurrentClass()}),this.eventManager.addEventListener(document,"mouseleave",function(){return a.removeZeroClipboardClass()})},getCopyValue:function(){return this.hot.copyPaste.setCopyableText(),this.hot.copyPaste.copyPasteInstance.elTextarea.value},onAfterContextMenuDefaultOptions:function(a){a.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}},k.plugins.ContextMenu.SEPARATOR)},onAfterContextMenuShow:function(){var a=this,b=this.hot.getPlugin("contextMenu"),c=b.menu.hotMenu.getSourceData();m(c,function(c,d){if("copy"===c.key){var e=new q(b.menu.hotMenu.getCell(d,0));return e.off(),e.on("copy",function(b){var c=b.clipboardData;c.setData("text/plain",a.getCopyValue()),a.hot.getSettings().outsideClickDeselects=a.outsideClickDeselectsCache}),!1}})},removeCurrentClass:function(){var a=this.hot.getPlugin("contextMenu");if(a.menu.isOpened()){var b=a.menu.hotMenu.rootElement.querySelector("td.current");b&&l(b,"current")}this.outsideClickDeselectsCache=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1},removeZeroClipboardClass:function(){var a=this.hot.getPlugin("contextMenu");if(a.menu.isOpened()){var b=a.menu.hotMenu.rootElement.querySelector("td.zeroclipboard-is-hover");b&&l(b,"zeroclipboard-is-hover")}this.hot.getSettings().outsideClickDeselects=this.outsideClickDeselectsCache}},{},p),o("contextMenuCopyPaste",r)},{_base:60,browser:23,eventManager:41,"helpers/array":42,"helpers/dom/element":46,plugins:59,zeroclipboard:void 0}],87:[function(a,b,c){"use strict";function d(a){function b(){a.isListening()&&a.selection.empty()}function c(b){var c,d,e,f,g,h,i,j,k,l;if(a.isListening()&&a.selection.isSelected()){c=b,d=t.parse(c),e=a.getSelected(),f=new E(e[0],e[1]),g=new E(e[2],e[3]),h=new F(f,f,g),i=h.getTopLeftCorner(),j=h.getBottomRightCorner(),k=i,l=new E(Math.max(j.row,d.length-1+i.row),Math.max(j.col,d[0].length-1+i.col));var m=g.row-f.row>=d.length-1,n=g.col-f.col>=d[0].length-1;a.addHookOnce("afterChange",function(b){var c=b?b.length:0;if(c){var d={row:0,col:0},e=-1;x(b,function(a,f){var g=c>f+1?b[f+1]:null;g&&(m||(d.row=d.row+Math.max(g[0]-a[0]-1,0)),!n&&a[1]>e&&(e=a[1],d.col=d.col+Math.max(g[1]-a[1]-1,0)))}),a.selectCell(k.row,k.col,l.row+d.row,l.col+d.col)}}),a.populateFromArray(k.row,k.col,d,l.row,l.col,"paste",a.getSettings().pasteMode)}}function d(b){if(a.getSelected()&&!(a.getActiveEditor()&&a.getActiveEditor().isOpened()||B(b))){if(w(b.keyCode)){if(a.getSettings().fragmentSelection&&C())return;return e.setCopyableText(),void A(b)}var c=(b.ctrlKey||b.metaKey)&&!b.altKey;b.keyCode==v.A&&c&&a._registerTimeout(setTimeout(D(e.setCopyableText,e),0))}}var e=this;this.copyPasteInstance=s(),this.copyPasteInstance.onCut(b),this.copyPasteInstance.onPaste(c),this.onPaste=c,a.addHook("beforeKeyDown",d),this.destroy=function(){this.copyPasteInstance&&(this.copyPasteInstance.removeCallback(b),this.copyPasteInstance.removeCallback(c),this.copyPasteInstance.destroy(),this.copyPasteInstance=null),a.removeHook("beforeKeyDown",d)},a.addHook("afterDestroy",D(this.destroy,this)),this.triggerPaste=D(this.copyPasteInstance.triggerPaste,this.copyPasteInstance),this.triggerCut=D(this.copyPasteInstance.triggerCut,this.copyPasteInstance),this.setCopyableText=function(){var b=a.getSettings(),c=b.copyRowsLimit,d=b.copyColsLimit,e=a.getSelectedRange(),f=e.getTopLeftCorner(),g=e.getBottomRightCorner(),h=f.row,i=f.col,j=g.row,k=g.col,l=Math.min(j,h+c-1),m=Math.min(k,i+d-1),n=[];n.push({startRow:h,startCol:i,endRow:l,endCol:m}),n=r.hooks.run(a,"modifyCopyableRange",n);var o=this.getRangedCopyableData(n);a.copyPaste.copyPasteInstance.copyable(o),(j!==l||k!==m)&&r.hooks.run(a,"afterCopyLimit",j-h+1,k-i+1,c,d)},this.getRangedCopyableData=function(b){var c=[],d=[],e=[];return x(b,function(a){y(a.startRow,a.endRow,function(a){-1===d.indexOf(a)&&d.push(a)}),y(a.startCol,a.endCol,function(a){-1===e.indexOf(a)&&e.push(a)})}),x(d,function(b){var d=[];x(e,function(c){d.push(a.getCopyableData(b,c))}),c.push(d)}),t.stringify(c)}}function e(){var a=this,b=a.getSettings().copyPaste!==!1;b&&!a.copyPaste?a.copyPaste=new d(a):!b&&a.copyPaste&&(a.copyPaste.destroy(),a.copyPaste=null)}Object.defineProperties(c,{CopyPastePlugin:{get:function(){return d}},__esModule:{value:!0}});var f,g,h,i,j,k,l,m,n,o,p,q,r=(f=a("browser"),f&&f.__esModule&&f||{"default":f})["default"],s=(g=a("copyPaste"),g&&g.__esModule&&g||{"default":g})["default"],t=(h=a("SheetClip"),h&&h.__esModule&&h||{"default":h})["default"],u=(i=a("helpers/unicode"),i&&i.__esModule&&i||{"default":i}),v=u.KEY_CODES,w=u.isCtrlKey,x=(j=a("helpers/array"),j&&j.__esModule&&j||{"default":j}
29).arrayEach,y=(k=a("helpers/number"),k&&k.__esModule&&k||{"default":k}).rangeEach,z=(l=a("helpers/dom/event"),l&&l.__esModule&&l||{"default":l}),A=z.stopImmediatePropagation,B=z.isImmediatePropagationStopped,C=(m=a("helpers/dom/element"),m&&m.__esModule&&m||{"default":m}).getSelectionText,D=(n=a("helpers/function"),n&&n.__esModule&&n||{"default":n}).proxy,E=((o=a("plugins"),o&&o.__esModule&&o||{"default":o}).registerPlugin,(p=a("3rdparty/walkontable/src/cell/coords"),p&&p.__esModule&&p||{"default":p}).WalkontableCellCoords),F=(q=a("3rdparty/walkontable/src/cell/range"),q&&q.__esModule&&q||{"default":q}).WalkontableCellRange;r.hooks.add("afterInit",e),r.hooks.add("afterUpdateSettings",e),r.hooks.register("afterCopyLimit"),r.hooks.register("modifyCopyableRange")},{"3rdparty/walkontable/src/cell/coords":5,"3rdparty/walkontable/src/cell/range":6,SheetClip:"SheetClip",browser:23,copyPaste:"copyPaste","helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/function":49,"helpers/number":51,"helpers/unicode":55,plugins:59}],88:[function(a){"use strict";function b(){}var c,d,e,f,g,h=(c=a("browser"),c&&c.__esModule&&c||{"default":c})["default"],i=((d=a("plugins"),d&&d.__esModule&&d||{"default":d}).registerPlugin,(e=a("3rdparty/walkontable/src/cell/range"),e&&e.__esModule&&e||{"default":e}).WalkontableCellRange),j=(f=a("3rdparty/walkontable/src/selection"),f&&f.__esModule&&f||{"default":f}).WalkontableSelection,k=function(a){return"boolean"==typeof a&&a===!0?!0:"object"==typeof a&&a.length>0?!0:!1},l=function(){k(this.getSettings().customBorders)&&(this.customBorders||(g=this,this.customBorders=new b))},m=function(a){for(var b=0;b<g.view.wt.selections.length;b++)if(g.view.wt.selections[b].settings.className==a)return b;return-1},n=function(a){var b={row:a.row,col:a.col},c=new j(a,new i(b,b,b)),d=m(a.className);d>=0?g.view.wt.selections[d]=c:g.view.wt.selections.push(c)},o=function(a,b,c){var d=u(a,b);d=v(d,c),this.setCellMeta(a,b,"borders",d),n(d)},p=function(a){for(var b=a.range,c=b.from.row;c<=b.to.row;c++)for(var d=b.from.col;d<=b.to.col;d++){var e=u(c,d),f=0;c==b.from.row&&(f++,a.hasOwnProperty("top")&&(e.top=a.top)),c==b.to.row&&(f++,a.hasOwnProperty("bottom")&&(e.bottom=a.bottom)),d==b.from.col&&(f++,a.hasOwnProperty("left")&&(e.left=a.left)),d==b.to.col&&(f++,a.hasOwnProperty("right")&&(e.right=a.right)),f>0&&(this.setCellMeta(c,d,"borders",e),n(e))}},q=function(a,b){return"border_row"+a+"col"+b},r=function(){return{width:1,color:"#000"}},s=function(){return{hide:!0}},t=function(){return{width:1,color:"#000",cornerVisible:!1}},u=function(a,b){return{className:q(a,b),border:t(),row:a,col:b,top:s(),right:s(),bottom:s(),left:s()}},v=function(a,b){return b.hasOwnProperty("border")&&(a.border=b.border),b.hasOwnProperty("top")&&(a.top=b.top),b.hasOwnProperty("right")&&(a.right=b.right),b.hasOwnProperty("bottom")&&(a.bottom=b.bottom),b.hasOwnProperty("left")&&(a.left=b.left),a},w=function(a){for(var b=document.querySelectorAll("."+a),c=0;c<b.length;c++)if(b[c]&&"TD"!=b[c].nodeName){var d=b[c].parentNode;d.parentNode&&d.parentNode.removeChild(d)}},x=function(a,b){var c=q(a,b);w(c),this.removeCellMeta(a,b,"borders")},y=function(a,b,c,d){var e=this.getCellMeta(a,b).borders;e&&void 0!=e.border||(e=u(a,b)),e[c]=d?s():r(),this.setCellMeta(a,b,"borders",e);var f=q(a,b);w(f),n(e),this.render()},z=function(a,b,c){if(a.from.row==a.to.row&&a.from.col==a.to.col)"noBorders"==b?x.call(this,a.from.row,a.from.col):y.call(this,a.from.row,a.from.col,b,c);else switch(b){case"noBorders":for(var d=a.from.col;d<=a.to.col;d++)for(var e=a.from.row;e<=a.to.row;e++)x.call(this,e,d);break;case"top":for(var f=a.from.col;f<=a.to.col;f++)y.call(this,a.from.row,f,b,c);break;case"right":for(var g=a.from.row;g<=a.to.row;g++)y.call(this,g,a.to.col,b);break;case"bottom":for(var h=a.from.col;h<=a.to.col;h++)y.call(this,a.to.row,h,b);break;case"left":for(var i=a.from.row;i<=a.to.row;i++)y.call(this,i,a.from.col,b)}},A=function(a,b){var c=!1;return a.getSelectedRange().forAll(function(d,e){var f=a.getCellMeta(d,e).borders;if(f){if(!b)return c=!0,!1;if(!f[b].hasOwnProperty("hide"))return c=!0,!1}}),c},B=function(a){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+a; 30 31}
31,C=function(a){this.getSettings().customBorders&&(a.items.push(h.plugins.ContextMenu.SEPARATOR),a.items.push({key:"borders",name:"Borders",disabled:function(){return this.selection.selectedHeader.corner},submenu:{items:[{key:"borders:top",name:function(){var a="Top",b=A(this,"top");return b&&(a=B(a)),a},callback:function(){var a=A(this,"top");z.call(this,this.getSelectedRange(),"top",a)}},{key:"borders:right",name:function(){var a="Right",b=A(this,"right");return b&&(a=B(a)),a},callback:function(){var a=A(this,"right");z.call(this,this.getSelectedRange(),"right",a)}},{key:"borders:bottom",name:function(){var a="Bottom",b=A(this,"bottom");return b&&(a=B(a)),a},callback:function(){var a=A(this,"bottom");z.call(this,this.getSelectedRange(),"bottom",a)}},{key:"borders:left",name:function(){var a="Left",b=A(this,"left");return b&&(a=B(a)),a},callback:function(){var a=A(this,"left");z.call(this,this.getSelectedRange(),"left",a)}},{key:"borders:no_borders",name:"Remove border(s)",callback:function(){z.call(this,this.getSelectedRange(),"noBorders")},disabled:function(){return!A(this)}}]}}))};h.hooks.add("beforeInit",l),h.hooks.add("afterContextMenuDefaultOptions",C),h.hooks.add("afterInit",function(){var a=this.getSettings().customBorders;if(a){for(var b=0;b<a.length;b++)a[b].range?p.call(this,a[b]):o.call(this,a[b].row,a[b].col,a[b]);this.render(),this.view.wt.draw(!0)}}),h.CustomBorders=b},{"3rdparty/walkontable/src/cell/range":6,"3rdparty/walkontable/src/selection":18,browser:23,plugins:59}],89:[function(a,b,c){"use strict";function d(){this.boundaries=null,this.callback=null}Object.defineProperties(c,{DragToScroll:{get:function(){return d}},__esModule:{value:!0}});{var e,f,g,h=(e=a("browser"),e&&e.__esModule&&e||{"default":e})["default"],i=(f=a("eventManager"),f&&f.__esModule&&f||{"default":f}).eventManager;(g=a("plugins"),g&&g.__esModule&&g||{"default":g}).registerPlugin}h.plugins.DragToScroll=d,d.prototype.setBoundaries=function(a){this.boundaries=a},d.prototype.setCallback=function(a){this.callback=a},d.prototype.check=function(a,b){var c=0,d=0;b<this.boundaries.top?d=b-this.boundaries.top:b>this.boundaries.bottom&&(d=b-this.boundaries.bottom),a<this.boundaries.left?c=a-this.boundaries.left:a>this.boundaries.right&&(c=a-this.boundaries.right),this.callback(c,d)};var j,k=function(a){a.dragToScrollListening=!1;var b=a.view.wt.wtTable.holder;j=new d,b!==window&&(j.setBoundaries(b.getBoundingClientRect()),j.setCallback(function(a,c){0>a?b.scrollLeft-=50:a>0&&(b.scrollLeft+=50),0>c?b.scrollTop-=20:c>0&&(b.scrollTop+=20)}),a.dragToScrollListening=!0)};h.hooks.add("afterInit",function(){var a=this,b=i(this);b.addEventListener(document,"mouseup",function(){a.dragToScrollListening=!1}),b.addEventListener(document,"mousemove",function(b){a.dragToScrollListening&&j.check(b.clientX,b.clientY)})}),h.hooks.add("afterDestroy",function(){i(this).clear()}),h.hooks.add("afterOnCellMouseDown",function(){k(this)}),h.hooks.add("afterOnCellCornerMouseDown",function(){k(this)}),h.plugins.DragToScroll=d},{browser:23,eventManager:41,plugins:59}],90:[function(a,b,c){"use strict";Object.defineProperties(c,{ManualColumnFreeze:{get:function(){return j}},__esModule:{value:!0}});var d,e,f,g=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],h=(e=a("_base"),e&&e.__esModule&&e||{"default":e})["default"],i=(f=a("plugins"),f&&f.__esModule&&f||{"default":f}).registerPlugin,j=function(a){$traceurRuntime.superConstructor(k).call(this,a),this.manualColumnMovePlugin=null,this.frozenColumnsBasePositions=[]},k=j;$traceurRuntime.createClass(j,{isEnabled:function(){return!!this.hot.getSettings().manualColumnFreeze},enablePlugin:function(){var a=this;this.enabled||(this.addHook("modifyCol",function(b){return a.onModifyCol(b)}),this.addHook("afterContextMenuDefaultOptions",function(b){return a.addContextMenuEntry(b)}),$traceurRuntime.superGet(this,k.prototype,"enablePlugin").call(this))},init:function(){$traceurRuntime.superGet(this,k.prototype,"init").call(this),this.fixedColumnsCount=this.hot.getSettings().fixedColumnsLeft},getManualColumnMovePlugin:function(){return this.manualColumnMovePlugin||(this.manualColumnMovePlugin=this.hot.getPlugin("manualColumnMove")),this.manualColumnMovePlugin},onModifyCol:function(a){return this.getManualColumnMovePlugin().isEnabled()?a:this.getLogicalColumnIndex(a)},addContextMenuEntry:function(a){var b=this;a.items.push(g.plugins.ContextMenu.SEPARATOR,{key:"freeze_column",name:function(){var a=b.hot.getSelected()[1];return a>b.fixedColumnsCount-1?"Freeze this column":"Unfreeze this column"},disabled:function(){var a=b.hot.getSelected();return a[1]!==a[3]},callback:function(){var a=b.hot.getSelected()[1];a>b.fixedColumnsCount-1?b.freezeColumn(a):b.unfreezeColumn(a)}})},freezeColumn:function(a){a<=this.fixedColumnsCount-1||(a!==this.getLogicalColumnIndex(a)&&(this.frozenColumnsBasePositions[this.fixedColumnsCount]=a),this.changeColumnPositions(a,this.fixedColumnsCount),this.addFixedColumn(),this.hot.view.wt.wtOverlays.leftOverlay.refresh(),this.hot.view.wt.wtOverlays.adjustElementsSize())}
31,unfreezeColumn:function(a){if(!(a>this.fixedColumnsCount-1)){var b=this.getBestColumnReturnPosition(a);this.changeColumnPositions(a,b),this.removeFixedColumn(),this.hot.view.wt.wtOverlays.leftOverlay.refresh(),this.hot.view.wt.wtOverlays.adjustElementsSize()}},addFixedColumn:function(){this.hot.updateSettings({fixedColumnsLeft:this.fixedColumnsCount+1}),this.fixedColumnsCount++},removeFixedColumn:function(){this.hot.updateSettings({fixedColumnsLeft:this.fixedColumnsCount-1}),this.fixedColumnsCount--},getBestColumnReturnPosition:function(a){var b,c=this.fixedColumnsCount,d=this.getLogicalColumnIndex(c);if(null==this.frozenColumnsBasePositions[a])for(b=this.getLogicalColumnIndex(a);b>d;)c++,d=this.getLogicalColumnIndex(c);else{for(b=this.frozenColumnsBasePositions[a],this.frozenColumnsBasePositions[a]=void 0;b>=d;)c++,d=this.getLogicalColumnIndex(c);c=d}return c-1},getVisibleColumnIndex:function(a){return this.getManualColumnMovePlugin().getVisibleColumnIndex(a)},getLogicalColumnIndex:function(a){return this.getManualColumnMovePlugin().getLogicalColumnIndex(a)},changeColumnPositions:function(a,b){this.getManualColumnMovePlugin().changeColumnPositions(a,b)}},{},h),i("manualColumnFreeze",j)},{_base:60,browser:23,plugins:59}],91:[function(a,b,c){"use strict";Object.defineProperties(c,{ManualColumnMove:{get:function(){return A}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k,l=(d=a("_base.js"),d&&d.__esModule&&d||{"default":d})["default"],m=(e=a("browser"),e&&e.__esModule&&e||{"default":e})["default"],n=(f=a("helpers/dom/element"),f&&f.__esModule&&f||{"default":f}),o=n.addClass,p=n.hasClass,q=n.removeClass,r=n.outerHeight,s=(g=a("helpers/array"),g&&g.__esModule&&g||{"default":g}),t=s.arrayEach,u=s.arrayMap,v=(h=a("helpers/number"),h&&h.__esModule&&h||{"default":h}).rangeEach,w=(i=a("eventManager"),i&&i.__esModule&&i||{"default":i}).eventManager,x=(j=a("helpers/dom/event"),j&&j.__esModule&&j||{"default":j}).pageX,y=(k=a("plugins"),k&&k.__esModule&&k||{"default":k}).registerPlugin,z=new WeakMap,A=function(a){var b=this;$traceurRuntime.superConstructor(B).call(this,a),z.set(this,{guideClassName:"manualColumnMoverGuide",handleClassName:"manualColumnMover",startOffset:null,pressed:null,startCol:null,endCol:null,currentCol:null,startX:null,startY:null}),this.guideElement=null,this.handleElement=null,this.currentTH=null,this.columnPositions=[],this.eventManager=w(this),this.addHook("init",function(){return b.onInit()})},B=A;$traceurRuntime.createClass(A,{isEnabled:function(){return!!this.hot.getSettings().manualColumnMove},enablePlugin:function(){var a=this,b=z.get(this),c=this.hot.getSettings().manualColumnMove,d=this.loadManualColumnPositions();this.handleElement=document.createElement("DIV"),this.handleElement.className=b.handleClassName,this.guideElement=document.createElement("DIV"),this.guideElement.className=b.guideClassName,this.addHook("modifyCol",function(b){return a.onModifyCol(b)}),this.addHook("unmodifyCol",function(b){return a.onUnmodifyCol(b)}),this.addHook("afterRemoveCol",function(b,c){return a.onAfterRemoveCol(b,c)}),this.addHook("afterCreateCol",function(b,c){return a.onAfterCreateCol(b,c)}),this.registerEvents(),"undefined"!=typeof d?this.columnPositions=d:Array.isArray(c)?this.columnPositions=c:c&&void 0!==this.columnPositions||(this.columnPositions=[]),$traceurRuntime.superGet(this,B.prototype,"enablePlugin").call(this)},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,B.prototype,"updatePlugin").call(this)},disablePlugin:function(){var a=this.hot.getSettings().manualColumnMove;Array.isArray(a)&&(this.unregisterEvents(),this.columnPositions=[]),$traceurRuntime.superGet(this,B.prototype,"disablePlugin").call(this)},registerEvents:function(){var a=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(b){return a.onMouseOver(b)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(b){return a.onMouseDown(b)}),this.eventManager.addEventListener(window,"mousemove",function(b){return a.onMouseMove(b)}),this.eventManager.addEventListener(window,"mouseup",function(b){return a.onMouseUp(b)})},unregisterEvents:function(){this.eventManager.clear()},saveManualColumnPositions:function(){m.hooks.run(this.hot,"persistentStateSave","manualColumnPositions",this.columnPositions)},loadManualColumnPositions:function(){var a={};return m.hooks.run(this.hot,"persistentStateLoad","manualColumnPositions",a),a.value},completeSettingsArray:function(){var a=this,b=this.hot.countCols();this.columnPositions.length!==b&&v(0,b-1,function(b){-1===a.columnPositions.indexOf(b)&&a.columnPositions.push(b)})},setupHandlePosition:function(a){this.currentTH=a;var b=z.get(this),c=this.hot.view.wt.wtTable.getCoords(a).col,d=r(this.currentTH);if(c>=0){var e=this.currentTH.getBoundingClientRect();b.currentCol=c,b.startOffset=e.left,this.handleElement.style.top=e.top+"px",this.handleElement.style.left=b.startOffset+"px",this.handleElement.style.height=d+"px",this.hot.rootElement.appendChild(this.handleElement)}},refreshHandlePosition:function(a,b){var c=a.getBoundingClientRect(),d=6;this.handleElement.style.left=b>0?c.left+c.width-d+"px":c.left+"px"},setupGuidePosition:function(){var a=this.currentTH.getBoundingClientRect(),b=z.get(this),c=parseInt(r(this.handleElement),10),d=parseInt(this.handleElement.style.top,10)+c,e=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);o(this.handleElement,"active"),o(this.guideElement,"active"),this.guideElement.style.width=a.width+"px",this.guideElement.style.height=e-c+"px",this.guideElement.style.top=d+"px",this.guideElement.style.left=b.startOffset+"px",this.hot.rootElement.appendChild(this.guideElement)},refreshGuidePosition:function(a){var b=z.get(this);this.guideElement.style.left=b.startOffset+a+"px"}
31,hideHandleAndGuide:function(){q(this.handleElement,"active"),q(this.guideElement,"active")},checkColumnHeader:function(a){if(a!=this.hot.rootElement){var b=a.parentNode;return"THEAD"===b.tagName?!0:this.checkColumnHeader(b)}return!1},createPositionData:function(a){var b=this.columnPositions;b.length<a&&v(b.length,a-1,function(a){b[a]=a})},getTHFromTargetElement:function(a){return"TABLE"!=a.tagName?"TH"==a.tagName?a:this.getTHFromTargetElement(a.parentNode):null},changeColumnPositions:function(a,b){var c=Math.max(a,b);c>this.columnPositions.length-1&&this.createPositionData(c+1),this.columnPositions.splice(b,0,this.columnPositions.splice(a,1)[0])},getVisibleColumnIndex:function(a){var b=this.columnPositions.indexOf(a);return-1===b?void 0:b},getLogicalColumnIndex:function(a){return this.columnPositions[a]},onMouseOver:function(a){var b=z.get(this);if(this.checkColumnHeader(a.target)){var c=this.getTHFromTargetElement(a.target);if(c)if(b.pressed){var d=this.hot.view.wt.wtTable.getCoords(c).col;d>=0&&(b.endCol=d,this.refreshHandlePosition(c,b.endCol-b.startCol))}else this.setupHandlePosition(c)}},onMouseDown:function(a){var b=z.get(this);p(a.target,b.handleClassName)&&(b.startX=x(a),this.setupGuidePosition(),b.pressed=this.hot,b.startCol=b.currentCol,b.endCol=b.currentCol)},onMouseMove:function(a){var b=z.get(this);b.pressed&&this.refreshGuidePosition(x(a)-b.startX)},onMouseUp:function(){var a=z.get(this);a.pressed&&(this.hideHandleAndGuide(),a.pressed=!1,this.createPositionData(this.hot.countCols()),this.changeColumnPositions(a.startCol,a.endCol),m.hooks.run(this.hot,"beforeColumnMove",a.startCol,a.endCol),this.hot.forceFullRender=!0,this.hot.view.render(),this.saveManualColumnPositions(),m.hooks.run(this.hot,"afterColumnMove",a.startCol,a.endCol),this.setupHandlePosition(this.currentTH))},onModifyCol:function(a){return this.getLogicalColumnIndex(a)},onUnmodifyCol:function(a){return this.getVisibleColumnIndex(a)},onAfterRemoveCol:function(a,b){if(this.isEnabled()){var c,d=this.columnPositions;c=d.splice(a,b),d=u(d,function(a){var b=a;return t(c,function(c){a>c&&b--}),b}),this.columnPositions=d}},onAfterCreateCol:function(a,b){if(this.isEnabled()){var c=this.columnPositions;if(c.length){var d=[];v(0,b-1,function(b){d.push(a+b)}),a>=c.length?c=c.concat(d):(c=u(c,function(c){return c>=a?c+b:c}),c.splice.apply(c,[a,0].concat(d))),this.columnPositions=c}}},onInit:function(){this.completeSettingsArray()}},{},l),y("manualColumnMove",A),m.hooks.register("beforeColumnMove"),m.hooks.register("afterColumnMove"),m.hooks.register("unmodifyCol")},{"_base.js":60,browser:23,eventManager:41,"helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/number":51,plugins:59}],92:[function(a,b,c){"use strict";Object.defineProperties(c,{ManualColumnResize:{get:function(){return y}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k,l=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],m=(e=a("_base.js"),e&&e.__esModule&&e||{"default":e})["default"],n=(f=a("helpers/dom/element"),f&&f.__esModule&&f||{"default":f}),o=n.addClass,p=n.hasClass,q=n.removeClass,r=n.outerHeight,s=(g=a("eventManager"),g&&g.__esModule&&g||{"default":g}).eventManager,t=(h=a("helpers/dom/event"),h&&h.__esModule&&h||{"default":h}),u=t.pageX,v=(t.pageY,(i=a("helpers/array"),i&&i.__esModule&&i||{"default":i}).arrayEach),w=(j=a("helpers/number"),j&&j.__esModule&&j||{"default":j}).rangeEach,x=(k=a("plugins"),k&&k.__esModule&&k||{"default":k}).registerPlugin,y=function(a){$traceurRuntime.superConstructor(z).call(this,a),this.currentTH=null,this.currentCol=null,this.selectedCols=[],this.currentWidth=null,this.newSize=null,this.startY=null,this.startWidth=null,this.startOffset=null,this.handle=document.createElement("DIV"),this.guide=document.createElement("DIV"),this.eventManager=s(this),this.pressed=null,this.dblclick=0,this.autoresizeTimeout=null,this.manualColumnWidths=[],o(this.handle,"manualColumnResizer"),o(this.guide,"manualColumnResizerGuide")},z=y;$traceurRuntime.createClass(y,{isEnabled:function(){return this.hot.getSettings().manualColumnResize},enablePlugin:function(){var a=this;if(!this.enabled){this.manualColumnWidths=[];var b=this.hot.getSettings().manualColumnResize,c=this.loadManualColumnWidths();this.addHook("modifyColWidth",function(b,c){return a.onModifyColWidth(b,c)}),this.addHook("beforeStretchingColumnWidth",function(b,c){return a.onBeforeStretchingColumnWidth(b,c)}),this.addHook("beforeColumnResize",function(b,c,d){return a.onBeforeColumnResize(b,c,d)}),this.manualColumnWidths="undefined"!=typeof c?c:Array.isArray(b)?b:[],l.hooks.register("beforeColumnResize"),l.hooks.register("afterColumnResize"),this.bindEvents(),$traceurRuntime.superGet(this,z.prototype,"enablePlugin").call(this)}},updatePlugin:function(){var a=this.hot.getSettings().manualColumnResize;Array.isArray(a)?this.manualColumnWidths=a:a||(this.manualColumnWidths=[])},disablePlugin:function(){$traceurRuntime.superGet(this,z.prototype,"disablePlugin").call(this)},saveManualColumnWidths:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.manualColumnWidths)},loadManualColumnWidths:function(){var a={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",a),a.value},setupHandlePosition:function(a){var b=this;if(!a.parentNode)return!1;this.currentTH=a;var c=this.hot.view.wt.wtTable.getCoords(a).col,d=r(this.currentTH);if(c>=0){var e=this.currentTH.getBoundingClientRect();if(this.currentCol=c,this.selectedCols=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.cols){var f=this.hot.getSelectedRange(),g=f.from,h=f.to,i=g.col,j=h.col;i>=j&&(i=h.col,j=g.col),this.currentCol>=i&&this.currentCol<=j?w(i,j,function(a){return b.selectedCols.push(a)}):this.selectedCols.push(this.currentCol)}else this.selectedCols.push(this.currentCol);this.startOffset=e.left-6,this.startWidth=parseInt(e.width,10),this.handle.style.top=e.top+"px",this.handle.style.left=this.startOffset+this.startWidth+"px",this.handle.style.height=d+"px",this.hot.rootElement.appendChild(this.handle)}},refreshHandlePosition:function(){this.handle.style.left=this.startOffset+this.currentWidth+"px"},setupGuidePosition:function(){var a=parseInt(r(this.handle),10),b=parseInt(this.handle.style.top,10)+a,c=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);o(this.handle,"active"),o(this.guide,"active"),this.guide.style.top=b+"px",this.guide.style.left=this.handle.style.left,this.guide.style.height=c-a+"px",this.hot.rootElement.appendChild(this.guide)},refreshGuidePosition:function(){this.guide.style.left=this.handle.style.left}
31,hideHandleAndGuide:function(){q(this.handle,"active"),q(this.guide,"active")},checkIfColumnHeader:function(a){if(a!=this.hot.rootElement){var b=a.parentNode;return"THEAD"===b.tagName?!0:this.checkIfColumnHeader(b)}return!1},getTHFromTargetElement:function(a){return"TABLE"!=a.tagName?"TH"==a.tagName?a:this.getTHFromTargetElement(a.parentNode):null},onMouseOver:function(a){if(this.checkIfColumnHeader(a.target)){var b=this.getTHFromTargetElement(a.target);if(!b)return;var c=b.getAttribute("colspan");!b||null!==c&&1!==c||this.pressed||this.setupHandlePosition(b)}},afterMouseDownTimeout:function(){var a=this,b=function(){a.hot.forceFullRender=!0,a.hot.view.render(),a.hot.view.wt.wtOverlays.adjustElementsSize(!0)},c=function(c,d){var e=a.hot.runHooks("beforeColumnResize",c,a.newSize,!0);void 0!==e&&(a.newSize=e),"all"===a.hot.getSettings().stretchH?a.clearManualSize(c):a.setManualSize(c,a.newSize),d&&b(),a.saveManualColumnWidths(),a.hot.runHooks("afterColumnResize",c,a.newSize,!0)};if(this.dblclick>=2){var d=this.selectedCols.length;d>1?(v(this.selectedCols,function(a){c(a)}),b()):v(this.selectedCols,function(a){c(a,!0)})}this.dblclick=0,this.autoresizeTimeout=null},onMouseDown:function(a){var b=this;p(a.target,"manualColumnResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return b.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick++,this.startX=u(a),this.newSize=this.startWidth)},onMouseMove:function(a){var b=this;this.pressed&&(this.currentWidth=this.startWidth+(u(a)-this.startX),v(this.selectedCols,function(a){b.newSize=b.setManualSize(a,b.currentWidth)}),this.refreshHandlePosition(),this.refreshGuidePosition())},onMouseUp:function(){var a=this,b=function(){a.hot.forceFullRender=!0,a.hot.view.render(),a.hot.view.wt.wtOverlays.adjustElementsSize(!0)},c=function(c,d){a.hot.runHooks("beforeColumnResize",c,a.newSize),d&&b(),a.saveManualColumnWidths(),a.hot.runHooks("afterColumnResize",c,a.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startWidth){var d=this.selectedCols.length;d>1?(v(this.selectedCols,function(a){c(a)}),b()):v(this.selectedCols,function(a){c(a,!0)})}this.setupHandlePosition(this.currentTH)}},bindEvents:function(){var a=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(b){return a.onMouseOver(b)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(b){return a.onMouseDown(b)}),this.eventManager.addEventListener(window,"mousemove",function(b){return a.onMouseMove(b)}),this.eventManager.addEventListener(window,"mouseup",function(b){return a.onMouseUp(b)})},setManualSize:function(a,b){return b=Math.max(b,20),a=this.hot.runHooks("modifyCol",a),this.manualColumnWidths[a]=b,b},clearManualSize:function(a){a=this.hot.runHooks("modifyCol",a),this.manualColumnWidths[a]=void 0},onModifyColWidth:function(a,b){return this.enabled&&(b=this.hot.runHooks("modifyCol",b),this.hot.getSettings().manualColumnResize&&this.manualColumnWidths[b])?this.manualColumnWidths[b]:a},onBeforeStretchingColumnWidth:function(a,b){var c=this.manualColumnWidths[b];return void 0===c&&(c=a),c},onBeforeColumnResize:function(){this.hot.view.wt.wtViewport.hasOversizedColumnHeadersMarked={}}},{},m),x("manualColumnResize",y)},{"_base.js":60,browser:23,eventManager:41,"helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/number":51,plugins:59}],93:[function(a,b,c){"use strict";Object.defineProperties(c,{ManualRowMove:{get:function(){return A}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k,l=(d=a("_base.js"),d&&d.__esModule&&d||{"default":d})["default"],m=(e=a("browser"),e&&e.__esModule&&e||{"default":e})["default"],n=(f=a("helpers/dom/element"),f&&f.__esModule&&f||{"default":f}),o=n.addClass,p=n.hasClass,q=n.removeClass,r=n.outerWidth,s=(g=a("helpers/array"),g&&g.__esModule&&g||{"default":g}),t=s.arrayEach,u=s.arrayMap,v=(h=a("helpers/number"),h&&h.__esModule&&h||{"default":h}).rangeEach,w=(i=a("eventManager"),i&&i.__esModule&&i||{"default":i}).eventManager,x=(j=a("helpers/dom/event"),j&&j.__esModule&&j||{"default":j}
31).pageY,y=(k=a("plugins"),k&&k.__esModule&&k||{"default":k}).registerPlugin,z=new WeakMap,A=function(a){$traceurRuntime.superConstructor(B).call(this,a),z.set(this,{guideClassName:"manualRowMoverGuide",handleClassName:"manualRowMover",startOffset:null,pressed:null,startRow:null,endRow:null,currentRow:null,startX:null,startY:null}),this.guideElement=null,this.handleElement=null,this.currentTH=null,this.rowPositions=[],this.eventManager=w(this)},B=A;$traceurRuntime.createClass(A,{isEnabled:function(){return!!this.hot.getSettings().manualRowMove},enablePlugin:function(){var a=this,b=z.get(this),c=this.hot.getSettings().manualRowMove,d=this.loadManualRowPositions();this.handleElement=document.createElement("DIV"),this.handleElement.className=b.handleClassName,this.guideElement=document.createElement("DIV"),this.guideElement.className=b.guideClassName,this.addHook("modifyRow",function(b){return a.onModifyRow(b)}),this.addHook("afterRemoveRow",function(b,c){return a.onAfterRemoveRow(b,c)}),this.addHook("afterCreateRow",function(b,c){return a.onAfterCreateRow(b,c)}),this.addHook("init",function(){return a.onInit()}),this.registerEvents(),"undefined"!=typeof d?this.rowPositions=d:Array.isArray(c)?this.rowPositions=c:c&&void 0!==this.rowPositions||(this.rowPositions=[]),$traceurRuntime.superGet(this,B.prototype,"enablePlugin").call(this)},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,B.prototype,"updatePlugin").call(this)},disablePlugin:function(){var a=this.hot.getSettings().manualRowMove;Array.isArray(a)&&(this.unregisterEvents(),this.rowPositions=[]),$traceurRuntime.superGet(this,B.prototype,"disablePlugin").call(this)},registerEvents:function(){var a=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(b){return a.onMouseOver(b)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(b){return a.onMouseDown(b)}),this.eventManager.addEventListener(window,"mousemove",function(b){return a.onMouseMove(b)}),this.eventManager.addEventListener(window,"mouseup",function(b){return a.onMouseUp(b)})},unregisterEvents:function(){this.eventManager.clear()},saveManualRowPositions:function(){m.hooks.run(this.hot,"persistentStateSave","manualRowPositions",this.rowPositions)},loadManualRowPositions:function(){var a={};return m.hooks.run(this.hot,"persistentStateLoad","manualRowPositions",a),a.value},completeSettingsArray:function(){var a=this,b=this.hot.countRows();this.rowPositions.length!==b&&v(0,b-1,function(b){-1===a.rowPositions.indexOf(b)&&a.rowPositions.push(b)})},setupHandlePosition:function(a){this.currentTH=a;var b=z.get(this),c=this.hot.view.wt.wtTable.getCoords(a).row,d=r(this.currentTH);if(c>=0){var e=this.currentTH.getBoundingClientRect();b.currentRow=c,b.startOffset=e.top,this.handleElement.style.top=b.startOffset+"px",this.handleElement.style.left=e.left+"px",this.handleElement.style.width=d+"px",this.hot.rootElement.appendChild(this.handleElement)}},refreshHandlePosition:function(a,b){var c=a.getBoundingClientRect(),d=6;this.handleElement.style.top=b>0?c.top+c.height-d+"px":c.top+"px"},setupGuidePosition:function(){var a=this.currentTH.getBoundingClientRect(),b=z.get(this),c=parseInt(r(this.handleElement),10),d=parseInt(this.handleElement.style.left,10)+c,e=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);o(this.handleElement,"active"),o(this.guideElement,"active"),this.guideElement.style.height=a.height+"px",this.guideElement.style.width=e-c+"px",this.guideElement.style.top=b.startOffset+"px",this.guideElement.style.left=d+"px",this.hot.rootElement.appendChild(this.guideElement)},refreshGuidePosition:function(a){var b=z.get(this);this.guideElement.style.top=b.startOffset+a+"px"},hideHandleAndGuide:function(){q(this.handleElement,"active"),q(this.guideElement,"active")},checkRowHeader:function(a){if(a!=this.hot.rootElement){var b=a.parentNode;return"TBODY"===b.tagName?!0:this.checkRowHeader(b)}return!1},createPositionData:function(a){var b=this.rowPositions;b.length<a&&v(b.length,a-1,function(a){b[a]=a})},getTHFromTargetElement:function(a){return"TABLE"!=a.tagName?"TH"==a.tagName?a:this.getTHFromTargetElement(a.parentNode):null},changeRowPositions:function(a,b){var c=Math.max(a,b);c>this.rowPositions.length-1&&this.createPositionData(c+1),this.rowPositions.splice(b,0,this.rowPositions.splice(a,1)[0])},getVisibleRowIndex:function(a){var b=this.rowPositions.indexOf(a);return-1===b?void 0:b}
31,getLogicalRowIndex:function(a){return this.rowPositions[a]},onMouseOver:function(a){var b=z.get(this);if(this.checkRowHeader(a.target)){var c=this.getTHFromTargetElement(a.target);c&&(b.pressed?(b.endRow=this.hot.view.wt.wtTable.getCoords(c).row,this.refreshHandlePosition(c,b.endRow-b.startRow)):this.setupHandlePosition(c))}},onMouseDown:function(a){var b=z.get(this);p(a.target,b.handleClassName)&&(b.startY=x(a),this.setupGuidePosition(),b.pressed=this.hot,b.startRow=b.currentRow,b.endRow=b.currentRow)},onMouseMove:function(a){var b=z.get(this);b.pressed&&this.refreshGuidePosition(x(a)-b.startY)},onMouseUp:function(){var a=z.get(this);a.pressed&&(this.hideHandleAndGuide(),a.pressed=!1,this.createPositionData(this.hot.countRows()),this.changeRowPositions(a.startRow,a.endRow),m.hooks.run(this.hot,"beforeRowMove",a.startRow,a.endRow),this.hot.forceFullRender=!0,this.hot.view.render(),this.saveManualRowPositions(),m.hooks.run(this.hot,"afterRowMove",a.startRow,a.endRow),this.setupHandlePosition(this.currentTH))},onModifyRow:function(a){return this.getLogicalRowIndex(a)},onAfterRemoveRow:function(a,b){if(this.isEnabled()){var c,d=this.rowPositions;c=d.splice(a,b),d=u(d,function(a){var b=a;return t(c,function(c){a>c&&b--}),b}),this.rowPositions=d}},onAfterCreateRow:function(a,b){if(this.isEnabled()){var c=this.rowPositions;if(c.length){for(var d=[],e=0;b>e;e++)d.push(a+e);a>=c.length?c=c.concat(d):(c=u(c,function(c){return c>=a?c+b:c}),c.splice.apply(c,[a,0].concat(d))),this.rowPositions=c}}},onInit:function(){this.completeSettingsArray()}},{},l),y("ManualRowMove",A),m.hooks.register("beforeRowMove"),m.hooks.register("afterRowMove")},{"_base.js":60,browser:23,eventManager:41,"helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/number":51,plugins:59}],94:[function(a,b,c){"use strict";Object.defineProperties(c,{ManualRowResize:{get:function(){return y}},__esModule:{value:!0}});var d,e,f,g,h,i,j,k,l=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],m=(e=a("_base.js"),e&&e.__esModule&&e||{"default":e})["default"],n=(f=a("helpers/dom/element"),f&&f.__esModule&&f||{"default":f}),o=n.addClass,p=n.hasClass,q=n.removeClass,r=n.outerWidth,s=(g=a("eventManager"),g&&g.__esModule&&g||{"default":g}).eventManager,t=(h=a("helpers/dom/event"),h&&h.__esModule&&h||{"default":h}),u=(t.pageX,t.pageY),v=(i=a("helpers/array"),i&&i.__esModule&&i||{"default":i}).arrayEach,w=(j=a("helpers/number"),j&&j.__esModule&&j||{"default":j}).rangeEach,x=(k=a("plugins"),k&&k.__esModule&&k||{"default":k}).registerPlugin,y=function(a){$traceurRuntime.superConstructor(z).call(this,a),this.currentTH=null,this.currentRow=null,this.selectedRows=[],this.currentHeight=null,this.newSize=null,this.startY=null,this.startHeight=null,this.startOffset=null,this.handle=document.createElement("DIV"),this.guide=document.createElement("DIV"),this.eventManager=s(this),this.pressed=null,this.dblclick=0,this.autoresizeTimeout=null,this.manualRowHeights=[],o(this.handle,"manualRowResizer"),o(this.guide,"manualRowResizerGuide")},z=y;$traceurRuntime.createClass(y,{isEnabled:function(){return this.hot.getSettings().manualRowResize},enablePlugin:function(){var a=this;if(!this.enabled){this.manualRowHeights=[];var b=this.hot.getSettings().manualRowResize,c=this.loadManualRowHeights();this.manualRowHeights="undefined"!=typeof c?c:Array.isArray(b)?b:[],this.addHook("modifyRowHeight",function(b,c){return a.onModifyRowHeight(b,c)}),l.hooks.register("beforeRowResize"),l.hooks.register("afterRowResize"),this.bindEvents(),$traceurRuntime.superGet(this,z.prototype,"enablePlugin").call(this)}},updatePlugin:function(){var a=this.hot.getSettings().manualRowResize;Array.isArray(a)?this.manualRowHeights=a:a||(this.manualRowHeights=[])},disablePlugin:function(){$traceurRuntime.superGet(this,z.prototype,"disablePlugin").call(this)},saveManualRowHeights:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.manualRowHeights)},loadManualRowHeights:function(){var a={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",a),a.value},setupHandlePosition:function(a){var b=this;this.currentTH=a;var c=this.hot.view.wt.wtTable.getCoords(a).row,d=r(this.currentTH);if(c>=0){var e=this.currentTH.getBoundingClientRect();if(this.currentRow=c,this.selectedRows=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.rows){var f=this.hot.getSelectedRange(),g=f.from,h=f.to,i=g.row,j=h.row;i>=j&&(i=h.row,j=g.row),this.currentRow>=i&&this.currentRow<=j?w(i,j,function(a){return b.selectedRows.push(a)}):this.selectedRows.push(this.currentRow)}else this.selectedRows.push(this.currentRow);this.startOffset=e.top-6,this.startHeight=parseInt(e.height,10),this.handle.style.left=e.left+"px",this.handle.style.top=this.startOffset+this.startHeight+"px",this.handle.style.width=d+"px",this.hot.rootElement.appendChild(this.handle)}},refreshHandlePosition:function(){this.handle.style.top=this.startOffset+this.currentHeight+"px"},setupGuidePosition:function(){var a=parseInt(r(this.handle),10),b=parseInt(this.handle.style.left,10)+a,c=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);o(this.handle,"active"),o(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style.left=b+"px",this.guide.style.width=c-a+"px",this.hot.rootElement.appendChild(this.guide)},refreshGuidePosition:function(){this.guide.style.top=this.handle.style.top}
31,hideHandleAndGuide:function(){q(this.handle,"active"),q(this.guide,"active")},checkIfRowHeader:function(a){if(a!=this.hot.rootElement){var b=a.parentNode;return"TBODY"===b.tagName?!0:this.checkIfRowHeader(b)}return!1},getTHFromTargetElement:function(a){return"TABLE"!=a.tagName?"TH"==a.tagName?a:this.getTHFromTargetElement(a.parentNode):null},onMouseOver:function(a){if(this.checkIfRowHeader(a.target)){ 32var b=this.getTHFromTargetElement(a.target);b&&(this.pressed||this.setupHandlePosition(b))}},afterMouseDownTimeout:function(){var a=this,b=function(){a.hot.forceFullRender=!0,a.hot.view.render(),a.hot.view.wt.wtOverlays.adjustElementsSize(!0)},c=function(c,d){var e=a.hot.runHooks("beforeRowResize",c,a.newSize,!0);void 0!==e&&(a.newSize=e),a.setManualSize(c,a.newSize),d&&b(),a.hot.runHooks("afterRowResize",c,a.newSize,!0)};if(this.dblclick>=2){var d=this.selectedRows.length;d>1?(v(this.selectedRows,function(a){c(a)}),b()):v(this.selectedRows,function(a){c(a,!0)})}this.dblclick=0,this.autoresizeTimeout=null},onMouseDown:function(a){var b=this;p(a.target,"manualRowResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null==this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return b.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick++,this.startY=u(a),this.newSize=this.startHeight)},onMouseMove:function(a){var b=this;this.pressed&&(this.currentHeight=this.startHeight+(u(a)-this.startY),v(this.selectedRows,function(a){b.newSize=b.setManualSize(a,b.currentHeight)}),this.refreshHandlePosition(),this.refreshGuidePosition())},onMouseUp:function(){var a=this,b=function(){a.hot.forceFullRender=!0,a.hot.view.render(),a.hot.view.wt.wtOverlays.adjustElementsSize(!0)},c=function(c,d){a.hot.runHooks("beforeRowResize",c,a.newSize),d&&b(),a.saveManualRowHeights(),a.hot.runHooks("afterRowResize",c,a.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startHeight){var d=this.selectedRows.length;d>1?(v(this.selectedRows,function(a){c(a)}),b()):v(this.selectedRows,function(a){c(a,!0)})}this.setupHandlePosition(this.currentTH)}},bindEvents:function(){var a=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(b){return a.onMouseOver(b)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(b){return a.onMouseDown(b)}),this.eventManager.addEventListener(window,"mousemove",function(b){return a.onMouseMove(b)}),this.eventManager.addEventListener(window,"mouseup",function(b){return a.onMouseUp(b)})},setManualSize:function(a,b){return a=this.hot.runHooks("modifyRow",a),this.manualRowHeights[a]=b,b},onModifyRowHeight:function(a,b){if(this.enabled){var c=this.hot.getPlugin("autoRowSize"),d=c?c.heights[b]:null;b=this.hot.runHooks("modifyRow",b);var e=this.manualRowHeights[b];if(void 0!==e&&(e===d||e>(a||0)))return e}return a}},{},m),x("manualRowResize",y)},{"_base.js":60,browser:23,eventManager:41,"helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/number":51,plugins:59}],95:[function(a,b,c){"use strict";function d(){var a=[];return a.getInfo=function(a,b){for(var c=0,d=this.length;d>c;c++)if(this[c].row<=a&&this[c].row+this[c].rowspan-1>=a&&this[c].col<=b&&this[c].col+this[c].colspan-1>=b)return this[c]},a.setInfo=function(a){for(var b=0,c=this.length;c>b;b++)if(this[b].row===a.row&&this[b].col===a.col)return void(this[b]=a);this.push(a)},a.removeInfo=function(a,b){for(var c=0,d=this.length;d>c;c++)if(this[c].row===a&&this[c].col===b){this.splice(c,1);break}},a}function e(a){if(this.mergedCellInfoCollection=new d,Array.isArray(a))for(var b=0,c=a.length;c>b;b++)this.mergedCellInfoCollection.setInfo(a[b])}function f(a){var b=this.getSettings().mergeCells;if(b&&!this.selection.isMultiple()){var c=this.mergeCells.mergedCellInfoCollection.getInfo(a[0],a[1]);c&&(a[0]=c.row,a[1]=c.col,a[2]=c.row+c.rowspan-1,a[3]=c.col+c.colspan-1)}}function g(a,b){this.mergeCells&&this.mergeCells.shiftCollection("right",a,b)}function h(a,b){this.mergeCells&&this.mergeCells.shiftCollection("left",a,b)}function i(a,b){this.mergeCells&&this.mergeCells.shiftCollection("down",a,b)}function j(a,b){this.mergeCells&&this.mergeCells.shiftCollection("up",a,b)}Object.defineProperties(c,{MergeCells:{get:function(){return e}},__esModule:{value:!0}});var k,l,m,n,o,p,q=(k=a("browser"),k&&k.__esModule&&k||{"default":k}
32)["default"],r=((l=a("plugins"),l&&l.__esModule&&l||{"default":l}).registerPlugin,(m=a("helpers/dom/event"),m&&m.__esModule&&m||{"default":m}).stopImmediatePropagation),s=(n=a("3rdparty/walkontable/src/cell/coords"),n&&n.__esModule&&n||{"default":n}).WalkontableCellCoords,t=(o=a("3rdparty/walkontable/src/cell/range"),o&&o.__esModule&&o||{"default":o}).WalkontableCellRange,u=(p=a("3rdparty/walkontable/src/table"),p&&p.__esModule&&p||{"default":p}).WalkontableTable;e.prototype.canMergeRange=function(a){return!a.isSingle()},e.prototype.mergeRange=function(a){if(this.canMergeRange(a)){var b=a.getTopLeftCorner(),c=a.getBottomRightCorner(),d={};d.row=b.row,d.col=b.col,d.rowspan=c.row-b.row+1,d.colspan=c.col-b.col+1,this.mergedCellInfoCollection.setInfo(d)}},e.prototype.mergeOrUnmergeSelection=function(a){var b=this.mergedCellInfoCollection.getInfo(a.from.row,a.from.col);b?this.unmergeSelection(a.from):this.mergeSelection(a)},e.prototype.mergeSelection=function(a){this.mergeRange(a)},e.prototype.unmergeSelection=function(a){var b=this.mergedCellInfoCollection.getInfo(a.row,a.col);this.mergedCellInfoCollection.removeInfo(b.row,b.col)},e.prototype.applySpanProperties=function(a,b,c){var d=this.mergedCellInfoCollection.getInfo(b,c);d?d.row===b&&d.col===c?(a.setAttribute("rowspan",d.rowspan),a.setAttribute("colspan",d.colspan)):(a.removeAttribute("rowspan"),a.removeAttribute("colspan"),a.style.display="none"):(a.removeAttribute("rowspan"),a.removeAttribute("colspan"))},e.prototype.modifyTransform=function(a,b,c){var d=function(a,b){return b.row>=a.row&&b.row<=a.row+a.rowspan-1?!0:!1},e=function(a,b){return b.col>=a.col&&b.col<=a.col+a.colspan-1?!0:!1},f=function(a){return new s(b.to.row+a.row,b.to.col+a.col)},g={row:c.row,col:c.col};if("modifyTransformStart"==a){this.lastDesiredCoords||(this.lastDesiredCoords=new s(null,null));for(var h,i=new s(b.highlight.row,b.highlight.col),j=this.mergedCellInfoCollection.getInfo(i.row,i.col),k=0,l=this.mergedCellInfoCollection.length;l>k;k++){var m=this.mergedCellInfoCollection[k];if(m=new s(m.row+m.rowspan-1,m.col+m.colspan-1),b.includes(m)){h=!0;break}}if(j){var n=new s(j.row,j.col),o=new s(j.row+j.rowspan-1,j.col+j.colspan-1),p=new t(n,n,o);p.includes(this.lastDesiredCoords)||(this.lastDesiredCoords=new s(null,null)),g.row=this.lastDesiredCoords.row?this.lastDesiredCoords.row-i.row:g.row,g.col=this.lastDesiredCoords.col?this.lastDesiredCoords.col-i.col:g.col,c.row>0?g.row=j.row+j.rowspan-1-i.row+c.row:c.row<0&&(g.row=i.row-j.row+c.row),c.col>0?g.col=j.col+j.colspan-1-i.col+c.col:c.col<0&&(g.col=i.col-j.col+c.col)}var q=new s(b.highlight.row+g.row,b.highlight.col+g.col),r=this.mergedCellInfoCollection.getInfo(q.row,q.col);r&&(this.lastDesiredCoords=q,g={row:r.row-i.row,col:r.col-i.col})}else if("modifyTransformEnd"==a)for(var k=0,l=this.mergedCellInfoCollection.length;l>k;k++){var u=this.mergedCellInfoCollection[k],n=new s(u.row,u.col),o=new s(u.row+u.rowspan-1,u.col+u.colspan-1),v=new t(n,n,o),w=b.getBordersSharedWith(v);if(v.isEqual(b))b.setDirection("NW-SE");else if(w.length>0){var x=b.highlight.isEqual(v.from);w.indexOf("top")>-1?b.to.isSouthEastOf(v.from)&&x?b.setDirection("NW-SE"):b.to.isSouthWestOf(v.from)&&x&&b.setDirection("NE-SW"):w.indexOf("bottom")>-1&&(b.to.isNorthEastOf(v.from)&&x?b.setDirection("SW-NE"):b.to.isNorthWestOf(v.from)&&x&&b.setDirection("SE-NW"))}var q=f(g),y=d(u,q),z=e(u,q);b.includesRange(v)&&(v.includes(q)||y||z)&&(y&&(g.row<0?g.row-=u.rowspan-1:g.row>0&&(g.row+=u.rowspan-1)),z&&(g.col<0?g.col-=u.colspan-1:g.col>0&&(g.col+=u.colspan-1)))}0!==g.row&&(c.row=g.row),0!==g.col&&(c.col=g.col)},e.prototype.shiftCollection=function(a,b){var c=[0,0];switch(a){case"right":c[0]+=1;break;case"left":c[0]-=1;break;case"down":c[1]+=1;break;case"up":c[1]-=1}for(var d=0;d<this.mergedCellInfoCollection.length;d++){var e=this.mergedCellInfoCollection[d];"right"===a||"left"===a?b<=e.col&&(e.col+=c[0]):b<=e.row&&(e.row+=c[1])}};var v=function(){var a=this,b=a.getSettings().mergeCells;b&&(a.mergeCells||(a.mergeCells=new e(b)))},w=function(){var a=this;a.mergeCells&&(a.view.wt.wtTable.getCell=function(b){if(a.getSettings().mergeCells){var c=a.mergeCells.mergedCellInfoCollection.getInfo(b.row,b.col);c&&(b=c)}return u.prototype.getCell.call(this,b)})},x=function(){var a=this,b=a.getSettings().mergeCells;if(b)if(a.mergeCells){if(a.mergeCells.mergedCellInfoCollection=new d,Array.isArray(b))for(var c=0,f=b.length;f>c;c++)a.mergeCells.mergedCellInfoCollection.setInfo(b[c])}else a.mergeCells=new e(b);else a.mergeCells&&(a.mergeCells.mergedCellInfoCollection=new d)}
32,y=function(a){if(this.mergeCells){var b=(a.ctrlKey||a.metaKey)&&!a.altKey;b&&77===a.keyCode&&(this.mergeCells.mergeOrUnmergeSelection(this.getSelectedRange()),this.render(),r(a))}},z=function(a){this.getSettings().mergeCells&&(a.items.push(q.plugins.ContextMenu.SEPARATOR),a.items.push({key:"mergeCells",name:function(){var a=this.getSelected(),b=this.mergeCells.mergedCellInfoCollection.getInfo(a[0],a[1]);return b?"Unmerge cells":"Merge cells"},callback:function(){this.mergeCells.mergeOrUnmergeSelection(this.getSelectedRange()),this.render()},disabled:function(){return this.selection.selectedHeader.corner}}))},A=function(a,b,c){this.mergeCells&&this.mergeCells.applySpanProperties(a,b,c)},B=function(a){return function(b){var c=this.getSettings().mergeCells;if(c){var d=this.getSelectedRange();if(this.mergeCells.modifyTransform(a,d,b),"modifyTransformEnd"===a){var e=this.countRows(),f=this.countCols();d.from.row<0?d.from.row=0:d.from.row>0&&d.from.row>=e&&(d.from.row=d.from-1),d.from.col<0?d.from.col=0:d.from.col>0&&d.from.col>=f&&(d.from.col=f-1)}}}},C=function(a){this.lastDesiredCoords=null;var b=this.getSettings().mergeCells;if(b){var c=this.getSelectedRange();c.highlight=new s(c.highlight.row,c.highlight.col),c.to=a;var d=!1;do{d=!1;for(var e=0,f=this.mergeCells.mergedCellInfoCollection.length;f>e;e++){var g=this.mergeCells.mergedCellInfoCollection[e],h=new s(g.row,g.col),i=new s(g.row+g.rowspan-1,g.col+g.colspan-1),j=new t(h,h,i);c.expandByRange(j)&&(a.row=c.to.row,a.col=c.to.col,d=!0)}}while(d)}},D=function(a,b){if(b&&"area"==b){var c=this.getSettings().mergeCells;if(c)for(var d=this.getSelectedRange(),e=new t(d.from,d.from,d.from),f=new t(d.to,d.to,d.to),g=0,h=this.mergeCells.mergedCellInfoCollection.length;h>g;g++){var i=this.mergeCells.mergedCellInfoCollection[g],j=new s(i.row,i.col),k=new s(i.row+i.rowspan-1,i.col+i.colspan-1),l=new t(j,j,k);e.expandByRange(l)&&(a[0]=e.from.row,a[1]=e.from.col),f.expandByRange(l)&&(a[2]=f.from.row,a[3]=f.from.col)}}},E=function(a,b,c){var d=this.getSettings().mergeCells;if(d){var e=this.mergeCells.mergedCellInfoCollection.getInfo(a,b);!e||e.row==a&&e.col==b||(c.copyable=!1)}},F=function(a){var b=this.getSettings().mergeCells;if(b)for(var c,d=this.countCols(),e=0;d>e;e++){if(c=this.mergeCells.mergedCellInfoCollection.getInfo(a.startRow,e),c&&c.row<a.startRow)return a.startRow=c.row,F.call(this,a);if(c=this.mergeCells.mergedCellInfoCollection.getInfo(a.endRow,e)){var f=c.row+c.rowspan-1;if(f>a.endRow)return a.endRow=f,F.call(this,a)}}},G=function(a){var b=this.getSettings().mergeCells;if(b)for(var c,d=this.countRows(),e=0;d>e;e++){if(c=this.mergeCells.mergedCellInfoCollection.getInfo(e,a.startColumn),c&&c.col<a.startColumn)return a.startColumn=c.col,G.call(this,a);if(c=this.mergeCells.mergedCellInfoCollection.getInfo(e,a.endColumn)){var f=c.col+c.colspan-1;if(f>a.endColumn)return a.endColumn=f,G.call(this,a)}}},H=function(a){if(a&&this.mergeCells){var b=this.mergeCells.mergedCellInfoCollection,c=this.getSelectedRange();for(var d in b)if(c.highlight.row==b[d].row&&c.highlight.col==b[d].col&&c.to.row==b[d].row+b[d].rowspan-1&&c.to.col==b[d].col+b[d].colspan-1)return!1}return a};q.hooks.add("beforeInit",v),q.hooks.add("afterInit",w),q.hooks.add("afterUpdateSettings",x),q.hooks.add("beforeKeyDown",y),q.hooks.add("modifyTransformStart",B("modifyTransformStart")),q.hooks.add("modifyTransformEnd",B("modifyTransformEnd")),q.hooks.add("beforeSetRangeEnd",C),q.hooks.add("beforeDrawBorders",D),q.hooks.add("afterIsMultipleSelection",H),q.hooks.add("afterRenderer",A),q.hooks.add("afterContextMenuDefaultOptions",z),q.hooks.add("afterGetCellMeta",E),q.hooks.add("afterViewportRowCalculatorOverride",F),q.hooks.add("afterViewportColumnCalculatorOverride",G),q.hooks.add("afterAutofillApplyValues",f),q.hooks.add("afterCreateCol",g),q.hooks.add("afterRemoveCol",h),q.hooks.add("afterCreateRow",i),q.hooks.add("afterRemoveRow",j),q.MergeCells=e},{"3rdparty/walkontable/src/cell/coords":5,"3rdparty/walkontable/src/cell/range":6,"3rdparty/walkontable/src/table":20,browser:23,"helpers/dom/event":47,plugins:59}],96:[function(a,b,c){"use strict";Object.defineProperties(c,{MultipleSelectionHandles:{get:function(){return r}},__esModule:{value:!0}});var d,e,f,g,h,i,j=((d=a("browser"),d&&d.__esModule&&d||{"default":d}
32)["default"],e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),k=j.getWindowScrollTop,l=j.hasClass,m=j.getWindowScrollLeft,n=(f=a("helpers/browser"),f&&f.__esModule&&f||{"default":f}).isMobileBrowser,o=(g=a("_base"),g&&g.__esModule&&g||{"default":g})["default"],p=(h=a("eventManager"),h&&h.__esModule&&h||{"default":h}).EventManager,q=(i=a("plugins"),i&&i.__esModule&&i||{"default":i}).registerPlugin,r=function(a){$traceurRuntime.superConstructor(s).call(this,a),this.dragged=[],this.eventManager=null,this.lastSetCell=null},s=r;$traceurRuntime.createClass(r,{isEnabled:function(){return n()},enablePlugin:function(){this.enabled||(this.eventManager||(this.eventManager=new p(this)),this.registerListeners(),$traceurRuntime.superGet(this,s.prototype,"enablePlugin").call(this))},registerListeners:function(){function a(a){if(1===b.dragged.length)return b.dragged.splice(0,b.dragged.length),!0;var c=b.dragged.indexOf(a);return-1==c?!1:void(0===c?b.dragged=b.dragged.slice(0,1):1==c&&(b.dragged=b.dragged.slice(-1)))}var b=this;this.eventManager.addEventListener(this.hot.rootElement,"touchstart",function(a){var c;return l(a.target,"topLeftSelectionHandle-HitArea")?(c=b.hot.getSelectedRange(),b.dragged.push("topLeft"),b.touchStartRange={width:c.getWidth(),height:c.getHeight(),direction:c.getDirection()},a.preventDefault(),!1):l(a.target,"bottomRightSelectionHandle-HitArea")?(c=b.hot.getSelectedRange(),b.dragged.push("bottomRight"),b.touchStartRange={width:c.getWidth(),height:c.getHeight(),direction:c.getDirection()},a.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchend",function(c){return l(c.target,"topLeftSelectionHandle-HitArea")?(a.call(b,"topLeft"),b.touchStartRange=void 0,c.preventDefault(),!1):l(c.target,"bottomRightSelectionHandle-HitArea")?(a.call(b,"bottomRight"),b.touchStartRange=void 0,c.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchmove",function(a){var c,d,e,f,g,h,i,j=k(),l=m();0!==b.dragged.length&&(c=document.elementFromPoint(a.touches[0].screenX-l,a.touches[0].screenY-j),c&&c!==b.lastSetCell&&(("TD"==c.nodeName||"TH"==c.nodeName)&&(d=b.hot.getCoords(c),-1==d.col&&(d.col=0),e=b.hot.getSelectedRange(),f=e.getWidth(),g=e.getHeight(),h=e.getDirection(),1==f&&1==g&&b.hot.selection.setRangeEnd(d),i=b.getCurrentRangeCoords(e,d,b.touchStartRange.direction,h,b.dragged[0]),null!==i.start&&b.hot.selection.setRangeStart(i.start),b.hot.selection.setRangeEnd(i.end),b.lastSetCell=c),a.preventDefault()))})},getCurrentRangeCoords:function(a,b,c,d,e){var f=a.getTopLeftCorner(),g=a.getBottomRightCorner(),h=a.getBottomLeftCorner(),i=a.getTopRightCorner(),j={start:null,end:null};switch(c){case"NE-SW":switch(d){case"NE-SW":case"NW-SE":j="topLeft"==e?{start:new WalkontableCellCoords(b.row,a.highlight.col),end:new WalkontableCellCoords(h.row,b.col)}:{start:new WalkontableCellCoords(a.highlight.row,b.col),end:new WalkontableCellCoords(b.row,f.col)};break;case"SE-NW":"bottomRight"==e&&(j={start:new WalkontableCellCoords(g.row,b.col),end:new WalkontableCellCoords(b.row,f.col)})}break;case"NW-SE":switch(d){case"NE-SW":"topLeft"==e?j={start:b,end:h}:j.end=b;break;case"NW-SE":"topLeft"==e?j={start:b,end:g}:j.end=b;break;case"SE-NW":"topLeft"==e?j={start:b,end:f}:j.end=b;break;case"SW-NE":"topLeft"==e?j={start:b,end:i}:j.end=b}break;case"SW-NE":switch(d){case"NW-SE":j="bottomRight"==e?{start:new WalkontableCellCoords(b.row,f.col),end:new WalkontableCellCoords(h.row,b.col)}:{start:new WalkontableCellCoords(f.row,b.col),end:new WalkontableCellCoords(b.row,g.col)};break;case"SW-NE":j="topLeft"==e?{start:new WalkontableCellCoords(a.highlight.row,b.col),end:new WalkontableCellCoords(b.row,g.col)}:{start:new WalkontableCellCoords(b.row,f.col),end:new WalkontableCellCoords(f.row,b.col)};break;case"SE-NW":"bottomRight"==e?j={start:new WalkontableCellCoords(b.row,i.col),end:new WalkontableCellCoords(f.row,b.col)}:"topLeft"==e&&(j={start:h,end:b})}break;case"SE-NW":switch(d){case"NW-SE":case"NE-SW":case"SW-NE":"topLeft"==e&&(j.end=b);break;case"SE-NW":"topLeft"==e?j.end=b:j={start:b,end:f}}}return j},isDragged:function(){return this.dragged.length>0}},{},o),q("multipleSelectionHandles",r)},{_base:60,browser:23,eventManager:41,"helpers/browser":43,"helpers/dom/element":46,plugins:59}],97:[function(a,b,c){"use strict";Object.defineProperties(c,{DataObserver:{get:function(){return l}},__esModule:{value:!0}});var d,e,f,g,h=(d=a("jsonpatch"),d&&d.__esModule&&d||{"default":d}
32)["default"],i=(e=a("../../mixins/localHooks"),e&&e.__esModule&&e||{"default":e}).localHooks,j=(f=a("../../helpers/object"),f&&f.__esModule&&f||{"default":f}).mixin,k=(g=a("utils"),g&&g.__esModule&&g||{"default":g}).cleanPatches,l=function(a){this.observedData=null,this.observer=null,this.paused=!1,this.setObservedData(a)};$traceurRuntime.createClass(l,{setObservedData:function(a){var b=this;this.observer&&h.unobserve(this.observedData,this.observer),this.observedData=a,this.observer=h.observe(this.observedData,function(a){return b.onChange(a)})},isPaused:function(){return this.paused},pause:function(){this.paused=!0},resume:function(){this.paused=!1},onChange:function(a){this.runLocalHooks("change",k(a))},destroy:function(){h.unobserve(this.observedData,this.observer),this.observedData=null,this.observer=null}},{}),j(l,i)},{"../../helpers/object":52,"../../mixins/localHooks":56,jsonpatch:"jsonpatch",utils:99}],98:[function(a,b,c){"use strict";Object.defineProperties(c,{ObserveChanges:{get:function(){return o}},__esModule:{value:!0}});var d,e,f,g,h,i,j=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],k=(e=a("_base"),e&&e.__esModule&&e||{"default":e})["default"],l=((f=a("jsonpatch"),f&&f.__esModule&&f||{"default":f})["default"],(g=a("dataObserver"),g&&g.__esModule&&g||{"default":g}).DataObserver),m=(h=a("helpers/array"),h&&h.__esModule&&h||{"default":h}).arrayEach,n=(i=a("plugins"),i&&i.__esModule&&i||{"default":i}).registerPlugin;j.hooks.register("afterChangesObserved");var o=function(a){$traceurRuntime.superConstructor(p).call(this,a),this.observer=null},p=o;$traceurRuntime.createClass(o,{isEnabled:function(){return this.hot.getSettings().observeChanges},enablePlugin:function(){var a=this;this.enabled||(this.observer||(this.observer=new l(this.hot.getSourceData()),this._exposePublicApi()),this.observer.addLocalHook("change",function(b){return a.onDataChange(b)}),this.addHook("afterCreateRow",function(){return a.onAfterTableAlter()}),this.addHook("afterRemoveRow",function(){return a.onAfterTableAlter()}),this.addHook("afterCreateCol",function(){return a.onAfterTableAlter()}),this.addHook("afterRemoveCol",function(){return a.onAfterTableAlter()}),this.addHook("afterChange",function(b,c){return a.onAfterTableAlter(c)}),this.addHook("afterLoadData",function(b){return a.onAfterLoadData(b)}),$traceurRuntime.superGet(this,p.prototype,"enablePlugin").call(this))},disablePlugin:function(){this.observer&&(this.observer.destroy(),this.observer=null,this._deletePublicApi()),$traceurRuntime.superGet(this,p.prototype,"disablePlugin").call(this)},onDataChange:function(a){var b=this;if(!this.observer.isPaused()){var c={add:function(a){isNaN(a.col)?b.hot.runHooks("afterCreateRow",a.row):b.hot.runHooks("afterCreateCol",a.col)},remove:function(a){isNaN(a.col)?b.hot.runHooks("afterRemoveRow",a.row,1):b.hot.runHooks("afterRemoveCol",a.col,1)},replace:function(a){b.hot.runHooks("afterChange",[a.row,a.col,null,a.value],"external")}};m(a,function(a){c[a.op]&&c[a.op](a)}),this.hot.render()}this.hot.runHooks("afterChangesObserved")},onAfterTableAlter:function(a){var b=this;"loadData"!==a&&(this.observer.pause(),this.hot.addHookOnce("afterChangesObserved",function(){return b.observer.resume()}))},onAfterLoadData:function(a){a||this.observer.setObservedData(this.hot.getSourceData())},destroy:function(){this.observer&&(this.observer.destroy(),this._deletePublicApi()),$traceurRuntime.superGet(this,p.prototype,"destroy").call(this)},_exposePublicApi:function(){var a=this,b=this.hot;b.pauseObservingChanges=function(){return a.observer.pause()},b.resumeObservingChanges=function(){return a.observer.resume()},b.isPausedObservingChanges=function(){return a.observer.isPaused()}},_deletePublicApi:function(){var a=this.hot;delete a.pauseObservingChanges,delete a.resumeObservingChanges,delete a.isPausedObservingChanges}},{},k),n("observeChanges",o)},{_base:60,browser:23,dataObserver:97,"helpers/array":42,jsonpatch:"jsonpatch",plugins:59}],99:[function(a,b,c){"use strict";function d(a){var b=[];return a=h(a,function(a){return/[\/]length/gi.test(a.path)?!1:e(a.path)?!0:!1}),a=i(a,function(a){var b=e(a.path);return a.row=b.row,a.col=b.col,a}
32),a=h(a,function(a){if(-1!==["add","remove"].indexOf(a.op)&&!isNaN(a.col)){if(-1!==b.indexOf(a.col))return!1;b.push(a.col)}return!0}),b.length=0,a}function e(a){var b=a.match(/^\/(\d+)\/?(.*)?$/);if(!b)return null;var c=b,d=c[1],e=c[2];return{row:parseInt(d,10),col:/^\d*$/.test(e)?parseInt(e,10):e}}Object.defineProperties(c,{cleanPatches:{get:function(){return d}},parsePath:{get:function(){return e}},__esModule:{value:!0}});var f,g=(f=a("../../helpers/array"),f&&f.__esModule&&f||{"default":f}),h=g.arrayFilter,i=g.arrayMap},{"../../helpers/array":42}],100:[function(a,b,c){"use strict";function d(a){var b,c=function(){window.localStorage[a+"__persistentStateKeys"]=JSON.stringify(b)},d=function(){var c=window.localStorage[a+"__persistentStateKeys"],d="string"==typeof c?JSON.parse(c):void 0;b=d?d:[]},e=function(){b=[],c()};d(),this.saveValue=function(d,e){window.localStorage[a+"_"+d]=JSON.stringify(e),-1==b.indexOf(d)&&(b.push(d),c())},this.loadValue=function(b,c){b="undefined"==typeof b?c:b;var d=window.localStorage[a+"_"+b];return"undefined"==typeof d?void 0:JSON.parse(d)},this.reset=function(b){window.localStorage.removeItem(a+"_"+b)},this.resetAll=function(){for(var c=0;c<b.length;c++)window.localStorage.removeItem(a+"_"+b[c]);e()}}function e(){function a(){var a=this;for(var b in e)e.hasOwnProperty(b)&&a.addHook(b,e[b])}function b(){var a=this;for(var b in e)e.hasOwnProperty(b)&&a.removeHook(b,e[b])}var c=this;this.init=function(){var e=this,f=e.getSettings().persistentState;return c.enabled=!!f,c.enabled?(e.storage||(e.storage=new d(e.rootElement.id)),e.resetState=c.resetValue,void a.call(e)):void b.call(e)},this.saveValue=function(a,b){var c=this;c.storage.saveValue(a,b)},this.loadValue=function(a,b){var c=this;b.value=c.storage.loadValue(a)},this.resetValue=function(a){var b=this;"undefined"==typeof a?b.storage.resetAll():b.storage.reset(a)};var e={persistentStateSave:c.saveValue,persistentStateLoad:c.loadValue,persistentStateReset:c.resetValue};for(var f in e)e.hasOwnProperty(f)&&h.hooks.register(f)}Object.defineProperties(c,{HandsontablePersistentState:{get:function(){return e}},__esModule:{value:!0}});var f,g,h=(f=a("browser"),f&&f.__esModule&&f||{"default":f})["default"],i=((g=a("plugins"),g&&g.__esModule&&g||{"default":g}).registerPlugin,new e);h.hooks.add("beforeInit",i.init),h.hooks.add("afterUpdateSettings",i.init)},{browser:23,plugins:59}],101:[function(a){"use strict";function b(){var a=this,b=!!a.getSettings().search;b?a.search=new f.Search(a):delete a.search}var c,d,e,f=(c=a("browser"),c&&c.__esModule&&c||{"default":c})["default"],g=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),h=g.addClass,i=g.removeClass,j=(e=a("renderers"),e&&e.__esModule&&e||{"default":e}),k=j.registerRenderer,l=j.getRenderer;f.Search=function(a){this.query=function(b,c,d){var e=a.countRows(),g=a.countCols(),h=[];c||(c=f.Search.global.getDefaultCallback()),d||(d=f.Search.global.getDefaultQueryMethod());for(var i=0;e>i;i++)for(var j=0;g>j;j++){var k=a.getDataAtCell(i,j),l=a.getCellMeta(i,j),m=l.search.callback||c,n=l.search.queryMethod||d,o=n(b,k);if(o){var p={row:i,col:j,data:k};h.push(p)}m&&m(a,i,j,k,o)}return h}},f.Search.DEFAULT_CALLBACK=function(a,b,c,d,e){a.getCellMeta(b,c).isSearchResult=e},f.Search.DEFAULT_QUERY_METHOD=function(a,b){return"undefined"!=typeof a&&null!=a&&a.toLowerCase&&0!==a.length?"undefined"==typeof b||null==b?!1:-1!=b.toString().toLowerCase().indexOf(a.toLowerCase()):!1},f.Search.DEFAULT_SEARCH_RESULT_CLASS="htSearchResult",f.Search.global=function(){var a=f.Search.DEFAULT_CALLBACK,b=f.Search.DEFAULT_QUERY_METHOD,c=f.Search.DEFAULT_SEARCH_RESULT_CLASS;return{getDefaultCallback:function(){return a},setDefaultCallback:function(b){a=b},getDefaultQueryMethod:function(){return b},setDefaultQueryMethod:function(a){b=a},getDefaultSearchResultClass:function(){return c},setDefaultSearchResultClass:function(a){c=a}}}(),f.SearchCellDecorator=function(a,b,c,d,e,g,j){var k=null!==j.search&&"object"==typeof j.search&&j.search.searchResultClass||f.Search.global.getDefaultSearchResultClass();j.isSearchResult?h(b,k):i(b,k)};var m=l("base");k("base",function(){m.apply(this,arguments),f.SearchCellDecorator.apply(this,arguments)}),f.hooks.add("afterInit",b),f.hooks.add("afterUpdateSettings",b)},{browser:23,"helpers/dom/element":46,renderers:104}],102:[function(a,b,c){"use strict";Object.defineProperties(c,{TouchScroll:{get:function(){return n}},__esModule:{value:!0}});var d,e,f,g,h=(d=a("browser"),d&&d.__esModule&&d||{"default":d}
32)["default"],i=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),j=i.addClass,k=i.removeClass,l=(f=a("_base"),f&&f.__esModule&&f||{"default":f})["default"],m=(g=a("plugins"),g&&g.__esModule&&g||{"default":g}).registerPlugin,n=function(a){var b=this;$traceurRuntime.superConstructor(o).call(this,a),this.hot.addHook("afterInit",function(){return b.afterInit()}),this.hot.addHook("afterUpdateSettings",function(){return b.onAfterUpdateSettings()}),this.scrollbars=[],this.clones=[]},o=n;$traceurRuntime.createClass(n,{afterInit:function(){this.registerEvents(),this.onAfterUpdateSettings()},onAfterUpdateSettings:function(){var a=this;this.hot.addHookOnce("afterRender",function(){var b=a.hot.view.wt.wtOverlays;a.scrollbars=[],a.scrollbars.push(b.topOverlay),b.bottomOverlay.clone&&a.scrollbars.push(b.bottomOverlay),a.scrollbars.push(b.leftOverlay),b.topLeftCornerOverlay&&a.scrollbars.push(b.topLeftCornerOverlay),b.bottomLeftCornerOverlay&&b.bottomLeftCornerOverlay.clone&&a.scrollbars.push(b.bottomLeftCornerOverlay),a.clones=[],b.topOverlay.needFullRender&&a.clones.push(b.topOverlay.clone.wtTable.holder.parentNode),b.bottomOverlay.needFullRender&&a.clones.push(b.bottomOverlay.clone.wtTable.holder.parentNode),b.leftOverlay.needFullRender&&a.clones.push(b.leftOverlay.clone.wtTable.holder.parentNode),b.topLeftCornerOverlay&&a.clones.push(b.topLeftCornerOverlay.clone.wtTable.holder.parentNode),b.bottomLeftCornerOverlay&&b.bottomLeftCornerOverlay.clone&&a.clones.push(b.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode)})},registerEvents:function(){var a=this;this.hot.addHook("beforeTouchScroll",function(){return a.onBeforeTouchScroll()}),this.hot.addHook("afterMomentumScroll",function(){return a.onAfterMomentumScroll()})},onBeforeTouchScroll:function(){h.freezeOverlays=!0;for(var a=0,b=this.clones.length;b>a;a++)j(this.clones[a],"hide-tween")},onAfterMomentumScroll:function(){h.freezeOverlays=!1;for(var a=this,b=0,c=this.clones.length;c>b;b++)k(this.clones[b],"hide-tween");for(var d=0,e=this.clones.length;e>d;d++)j(this.clones[d],"show-tween");setTimeout(function(){for(var b=0,c=a.clones.length;c>b;b++)k(a.clones[b],"show-tween")},400);for(var f=0,g=this.scrollbars.length;g>f;f++)this.scrollbars[f].refresh(),this.scrollbars[f].resetFixedPosition();this.hot.view.wt.wtOverlays.syncScrollWithMaster()}},{},l),m("touchScroll",n)},{_base:60,browser:23,"helpers/dom/element":46,plugins:59}],103:[function(a){"use strict";function b(){var a=this,b="undefined"==typeof a.getSettings().undo||a.getSettings().undo;b?a.undoRedo||(a.undoRedo=new l.UndoRedo(a),e(a),a.addHook("beforeKeyDown",c),a.addHook("afterChange",d)):a.undoRedo&&(delete a.undoRedo,f(a),a.removeHook("beforeKeyDown",c),a.removeHook("afterChange",d))}function c(a){var b=this,c=(a.ctrlKey||a.metaKey)&&!a.altKey;c&&(89===a.keyCode||a.shiftKey&&90===a.keyCode?(b.undoRedo.redo(),r(a)):90===a.keyCode&&(b.undoRedo.undo(),r(a)))}function d(a,b){var c=this;return"loadData"==b?c.undoRedo.clear():void 0}function e(a){a.undo=function(){return a.undoRedo.undo()},a.redo=function(){return a.undoRedo.redo()},a.isUndoAvailable=function(){return a.undoRedo.isUndoAvailable()},a.isRedoAvailable=function(){return a.undoRedo.isRedoAvailable()},a.clearUndo=function(){return a.undoRedo.clear()}}function f(a){delete a.undo,delete a.redo,delete a.isUndoAvailable,delete a.isRedoAvailable,delete a.clearUndo}var g,h,i,j,k,l=(g=a("browser"),g&&g.__esModule&&g||{"default":g})["default"],m=(h=a("helpers/array"),h&&h.__esModule&&h||{"default":h}).arrayMap,n=(i=a("helpers/number"),i&&i.__esModule&&i||{"default":i}).rangeEach,o=(j=a("helpers/object"),j&&j.__esModule&&j||{"default":j}),p=o.inherit,q=o.deepClone,r=(k=a("helpers/dom/event"),k&&k.__esModule&&k||{"default":k}).stopImmediatePropagation;l.UndoRedo=function(a){var b=this;this.instance=a,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,a.addHook("afterChange",function(a){if(a){var c=new l.UndoRedo.ChangeAction(a);b.done(c)}}),a.addHook("afterCreateRow",function(a,c,d){if(!d){var e=new l.UndoRedo.CreateRowAction(a,c);b.done(e)}}),a.addHook("beforeRemoveRow",function(a,c){var d=b.instance.getSourceData();a=(d.length+a)%d.length;var e=d.slice(a,a+c),f=new l.UndoRedo.RemoveRowAction(a,e);b.done(f)}),a.addHook("afterCreateCol",function(a,c,d){if(!d){var e=new l.UndoRedo.CreateColumnAction(a,c);b.done(e)}}),a.addHook("beforeRemoveCol",function(c,d){var e=b.instance.getData();c=(b.instance.countCols()+c)%b.instance.countCols();var f=[],g=[],h=[];n(0,e.length-1,function(a){f[a]=e[a].slice(c,c+d)}),n(0,d-1,function(b){h.push(a.runHooks("modifyCol",c+b))}),Array.isArray(a.getSettings().colHeaders)&&n(0,d-1,function(b){g.push(a.getSettings().colHeaders[a.runHooks("modifyCol",c+b)]||null)});var i=b.instance.getPlugin("manualColumnMove"),j=new l.UndoRedo.RemoveColumnAction(h,f,g,i?i.columnPositions:[]);b.done(j)}),a.addHook("beforeCellAlignment",function(a,c,d,e){var f=new l.UndoRedo.CellAlignmentAction(a,c,d,e);b.done(f)}),a.addHook("beforeFilter",function(a){b.done(new l.UndoRedo.FiltersAction(a))})},l.UndoRedo.prototype.done=function(a){this.ignoreNewActions||(this.doneActions.push(a),this.undoneActions.length=0)},l.UndoRedo.prototype.undo=function(){if(this.isUndoAvailable()){var a=this.doneActions.pop();this.ignoreNewActions=!0;var b=this;a.undo(this.instance,function(){b.ignoreNewActions=!1,b.undoneActions.push(a)})}},l.UndoRedo.prototype.redo=function(){if(this.isRedoAvailable()){var a=this.undoneActions.pop();this.ignoreNewActions=!0;var b=this;a.redo(this.instance,function(){b.ignoreNewActions=!1,b.doneActions.push(a)})}},l.UndoRedo.prototype.isUndoAvailable=function(){return this.doneActions.length>0},l.UndoRedo.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},l.UndoRedo.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},l.UndoRedo.Action=function(){}, 33l.UndoRedo.Action.prototype.undo=function(){},l.UndoRedo.Action.prototype.redo=function(){},l.UndoRedo.ChangeAction=function(a){this.changes=a},p(l.UndoRedo.ChangeAction,l.UndoRedo.Action),l.UndoRedo.ChangeAction.prototype.undo=function(a,b){for(var c=q(this.changes),d=a.countEmptyRows(!0),e=a.countEmptyCols(!0),f=0,g=c.length;g>f;f++)c[f].splice(3,1);
33a.addHookOnce("afterChange",b),a.setDataAtRowProp(c,null,null,"undo");for(var f=0,g=c.length;g>f;f++)a.getSettings().minSpareRows&&c[f][0]+1+a.getSettings().minSpareRows===a.countRows()&&d==a.getSettings().minSpareRows&&(a.alter("remove_row",parseInt(c[f][0]+1,10),a.getSettings().minSpareRows),a.undoRedo.doneActions.pop()),a.getSettings().minSpareCols&&c[f][1]+1+a.getSettings().minSpareCols===a.countCols()&&e==a.getSettings().minSpareCols&&(a.alter("remove_col",parseInt(c[f][1]+1,10),a.getSettings().minSpareCols),a.undoRedo.doneActions.pop())},l.UndoRedo.ChangeAction.prototype.redo=function(a,b){for(var c=q(this.changes),d=0,e=c.length;e>d;d++)c[d].splice(2,1);a.addHookOnce("afterChange",b),a.setDataAtRowProp(c,null,null,"redo")},l.UndoRedo.CreateRowAction=function(a,b){this.index=a,this.amount=b},p(l.UndoRedo.CreateRowAction,l.UndoRedo.Action),l.UndoRedo.CreateRowAction.prototype.undo=function(a,b){var c=a.countRows(),d=a.getSettings().minSpareRows;this.index>=c&&this.index-d<c&&(this.index-=d),a.addHookOnce("afterRemoveRow",b),a.alter("remove_row",this.index,this.amount)},l.UndoRedo.CreateRowAction.prototype.redo=function(a,b){a.addHookOnce("afterCreateRow",b),a.alter("insert_row",this.index+1,this.amount)},l.UndoRedo.RemoveRowAction=function(a,b){this.index=a,this.data=b},p(l.UndoRedo.RemoveRowAction,l.UndoRedo.Action),l.UndoRedo.RemoveRowAction.prototype.undo=function(a,b){var c=[this.index,0];Array.prototype.push.apply(c,this.data),Array.prototype.splice.apply(a.getSourceData(),c),a.addHookOnce("afterRender",b),a.render()},l.UndoRedo.RemoveRowAction.prototype.redo=function(a,b){a.addHookOnce("afterRemoveRow",b),a.alter("remove_row",this.index,this.data.length)},l.UndoRedo.CreateColumnAction=function(a,b){this.index=a,this.amount=b},p(l.UndoRedo.CreateColumnAction,l.UndoRedo.Action),l.UndoRedo.CreateColumnAction.prototype.undo=function(a,b){a.addHookOnce("afterRemoveCol",b),a.alter("remove_col",this.index,this.amount)},l.UndoRedo.CreateColumnAction.prototype.redo=function(a,b){a.addHookOnce("afterCreateCol",b),a.alter("insert_col",this.index+1,this.amount)},l.UndoRedo.CellAlignmentAction=function(a,b,c,d){this.stateBefore=a,this.range=b,this.type=c,this.alignment=d},l.UndoRedo.CellAlignmentAction.prototype.undo=function(a,b){if(a.getPlugin("contextMenu").isEnabled()){for(var c=this.range.from.row;c<=this.range.to.row;c++)for(var d=this.range.from.col;d<=this.range.to.col;d++)a.setCellMeta(c,d,"className",this.stateBefore[c][d]||" htLeft");a.addHookOnce("afterRender",b),a.render()}},l.UndoRedo.CellAlignmentAction.prototype.redo=function(a,b){a.getPlugin("contextMenu").isEnabled()&&(a.selectCell(this.range.from.row,this.range.from.col,this.range.to.row,this.range.to.col),a.getPlugin("contextMenu").executeCommand("alignment:"+this.alignment.replace("ht","").toLowerCase()),a.addHookOnce("afterRender",b),a.render())},l.UndoRedo.RemoveColumnAction=function(a,b,c,d){this.indexes=a,this.data=b,this.amount=this.data[0].length,this.headers=c,this.columnPositions=d.slice(0)},p(l.UndoRedo.RemoveColumnAction,l.UndoRedo.Action),l.UndoRedo.RemoveColumnAction.prototype.undo=function(a,b){var c,d=this,e=this.indexes.slice(0).sort(),f=function(a,b,c){return c[d.indexes.indexOf(e[b])]},g=[];n(0,this.data.length-1,function(a){g[a]=m(d.data[a],f)});var h=[];h=m(this.headers,f),n(0,this.data.length-1,function(b){c=a.getSourceDataAtRow(b),n(0,e.length-1,function(a){c.splice(e[a],0,g[b][a])})}),"undefined"!=typeof this.headers&&n(0,h.length-1,function(b){a.getSettings().colHeaders.splice(e[b],0,h[b])}),a.getPlugin("manualColumnMove")&&(a.getPlugin("manualColumnMove").columnPositions=this.columnPositions),a.addHookOnce("afterRender",b),a.render()},l.UndoRedo.RemoveColumnAction.prototype.redo=function(a,b){a.addHookOnce("afterRemoveCol",b),a.alter("remove_col",a.runHooks("unmodifyCol",this.indexes[0]),this.amount)},l.UndoRedo.FiltersAction=function(a){this.formulaStacks=a},p(l.UndoRedo.FiltersAction,l.UndoRedo.Action),l.UndoRedo.FiltersAction.prototype.undo=function(a,b){var c=a.getPlugin("filters");a.addHookOnce("afterRender",b),c.formulaCollection.importAllFormulas(this.formulaStacks.slice(0,this.formulaStacks.length-1)),c.filter()},l.UndoRedo.FiltersAction.prototype.redo=function(a,b){var c=a.getPlugin("filters");a.addHookOnce("afterRender",b),c.formulaCollection.importAllFormulas(this.formulaStacks),c.filter()},l.hooks.add("afterInit",b),l.hooks.add("afterUpdateSettings",b)},{browser:23,"helpers/array":42,"helpers/dom/event":47,"helpers/number":51,"helpers/object":52}],104:[function(a,b,c){"use strict";function d(a,b){var c;k[a]=b,c=j(a)+"Renderer",i.renderers[c]=b,i[c]=b,"base"===a&&(i.renderers.cellDecorator=b)}function e(a){if("function"==typeof a)return a;
33if("string"!=typeof a)throw Error('Only strings and functions can be passed as "renderer" parameter');if(!(a in k))throw Error('No editor registered under name "'+a+'"');return k[a]}function f(a){return a in k}Object.defineProperties(c,{registerRenderer:{get:function(){return d}},getRenderer:{get:function(){return e}},hasRenderer:{get:function(){return f}},__esModule:{value:!0}});var g,h,i=(g=a("browser"),g&&g.__esModule&&g||{"default":g})["default"],j=(h=a("helpers/string"),h&&h.__esModule&&h||{"default":h}).toUpperCaseFirst,k={};i.renderers=i.renderers||{},i.renderers.registerRenderer=d,i.renderers.getRenderer=e},{browser:23,"helpers/string":54}],105:[function(a,b,c){"use strict";function d(a,b,c,d,e,f,g){g.className&&(b.className=b.className?b.className+" "+g.className:g.className),g.readOnly&&h(b,g.readOnlyCellClassName),g.valid===!1&&g.invalidCellClassName?h(b,g.invalidCellClassName):i(b,g.invalidCellClassName),g.wordWrap===!1&&g.noWordWrapClassName&&h(b,g.noWordWrapClassName),!f&&g.placeholder&&h(b,g.placeholderCellClassName)}Object.defineProperties(c,{cellDecorator:{get:function(){return d}},__esModule:{value:!0}});var e,f,g=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),h=g.addClass,i=g.removeClass,j=(f=a("renderers"),f&&f.__esModule&&f||{"default":f}).registerRenderer;j("base",d)},{"helpers/dom/element":46,renderers:104}],106:[function(a,b,c){"use strict";function d(a,b,c,d,e,f,g){var h=(q.cloneNode(!0),r.cloneNode(!0));if(n("text")(a,b,c,d,e,f,g),b.appendChild(h),j(b,"htAutocomplete"),b.firstChild||b.appendChild(document.createTextNode(String.fromCharCode(160))),!a.acArrowListener){var i=l(a);a.acArrowListener=function(e){k(e.target,"htAutocompleteArrow")&&a.view.wt.getSetting("onCellDblClick",null,new p(c,d),b)},i.addEventListener(a.rootElement,"mousedown",a.acArrowListener),a.addHookOnce("afterDestroy",function(){i.destroy()})}}Object.defineProperties(c,{autocompleteRenderer:{get:function(){return d}},__esModule:{value:!0}});var e,f,g,h,i=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),j=i.addClass,k=i.hasClass,l=(i.empty,(f=a("eventManager"),f&&f.__esModule&&f||{"default":f}).eventManager),m=(g=a("renderers"),g&&g.__esModule&&g||{"default":g}),n=m.getRenderer,o=m.registerRenderer,p=(h=a("3rdparty/walkontable/src/cell/coords"),h&&h.__esModule&&h||{"default":h}).WalkontableCellCoords,q=document.createElement("DIV");q.className="htAutocompleteWrapper";var r=document.createElement("DIV");r.className="htAutocompleteArrow",r.appendChild(document.createTextNode(String.fromCharCode(9660)));o("autocomplete",d)},{"3rdparty/walkontable/src/cell/coords":5,eventManager:41,"helpers/dom/element":46,renderers:104}],107:[function(a,b,c){"use strict";function d(a,b,c,d,h,i,j){function k(a){var b="SPACE|ENTER",c="DELETE|BACKSPACE",d=C(B,a.keyCode);d(b+"|"+c)&&!F(a)&&n(function(){E(a),a.preventDefault()}),d(b)&&l(),d(c)&&l(!1)}function l(){var a=void 0!==arguments[0]?arguments[0]:null;n(function(b){for(var c=0,d=b.length;d>c;c++){if(v(b[c],I)&&null===a)return;m(b[c],a)}})}function m(a){var b=void 0!==arguments[1]?arguments[1]:null;a.checked=null===b?!a.checked:b,o.fireEvent(a,"change")}function n(b){var c=a.getSelectedRange();if(c)for(var d=c.getTopLeftCorner(),e=c.getBottomRightCorner(),f=d.row;f<=e.row;f++)for(var g=d.col;g<=e.col;g++){var h=a.getCell(f,g),i=a.getCellMeta(f,g),j=h.querySelectorAll("input[type=checkbox]");j.length>0&&!i.readOnly&&b(j)}}z("base").apply(this,arguments);var o=e(a),p=f(),q=j.label,r=!1;if("undefined"==typeof j.checkedTemplate&&(j.checkedTemplate=!0),"undefined"==typeof j.uncheckedTemplate&&(j.uncheckedTemplate=!1),t(b),i===j.checkedTemplate||w(i,j.checkedTemplate)?p.checked=!0:i===j.uncheckedTemplate||w(i,j.uncheckedTemplate)?p.checked=!1:null===i?u(p,"noValue"):(p.style.display="none",u(p,I),r=!0),p.setAttribute("data-row",c),p.setAttribute("data-col",d),!r&&q){var s="";q.value?s="function"==typeof q.value?q.value.call(this,c,d,h,i):q.value:q.property&&(s=a.getDataAtRowProp(c,q.property));var x=g(s);"before"===q.position?x.appendChild(p):x.insertBefore(p,x.firstChild),p=x}b.appendChild(p),r&&b.appendChild(document.createTextNode("#bad-value#")),G.has(a)||(G.set(a,!0),a.addHook("beforeKeyDown",k))}function e(a){var b=H.get(a);return b||(b=new x(a),b.addEventListener(a.rootElement,"click",function(b){return i(b,a)}),b.addEventListener(a.rootElement,"mouseup",function(b){return h(b,a)}),b.addEventListener(a.rootElement,"change",function(b){return j(b,a)}),H.set(a,b)),b}function f(){var a=document.createElement("input");return a.className="htCheckboxRendererInput",a.type="checkbox",a.setAttribute("autocomplete","off"),a.setAttribute("tabindex","-1"),a.cloneNode(!1)}
33function g(a){var b=document.createElement("label");return b.className="htCheckboxRendererLabel",b.appendChild(document.createTextNode(a)),b.cloneNode(!0)}function h(a,b){k(a.target)&&setTimeout(b.listen,10)}function i(a,b){if(!k(a.target))return!1;var c=parseInt(a.target.getAttribute("data-row"),10),d=parseInt(a.target.getAttribute("data-col"),10),e=b.getCellMeta(c,d);e.readOnly&&a.preventDefault()}function j(a,b){if(!k(a.target))return!1;var c=parseInt(a.target.getAttribute("data-row"),10),d=parseInt(a.target.getAttribute("data-col"),10),e=b.getCellMeta(c,d);e.readOnly||b.setDataAtCell(c,d,a.target.checked?e.checkedTemplate||!0:e.uncheckedTemplate||!1)}function k(a){return"INPUT"===a.tagName&&"checkbox"===a.getAttribute("type")}Object.defineProperties(c,{checkboxRenderer:{get:function(){return d}},__esModule:{value:!0}});var l,m,n,o,p,q,r,s=(l=a("helpers/dom/element"),l&&l.__esModule&&l||{"default":l}),t=s.empty,u=s.addClass,v=s.hasClass,w=(m=a("helpers/string"),m&&m.__esModule&&m||{"default":m}).equalsIgnoreCase,x=(n=a("eventManager"),n&&n.__esModule&&n||{"default":n}).EventManager,y=(o=a("renderers"),o&&o.__esModule&&o||{"default":o}),z=y.getRenderer,A=y.registerRenderer,B=(p=a("helpers/unicode"),p&&p.__esModule&&p||{"default":p}).isKey,C=(q=a("helpers/function"),q&&q.__esModule&&q||{"default":q}).partial,D=(r=a("helpers/dom/event"),r&&r.__esModule&&r||{"default":r}),E=D.stopImmediatePropagation,F=D.isImmediatePropagationStopped,G=new WeakMap,H=new WeakMap,I="htBadValue";A("checkbox",d)},{eventManager:41,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/function":49,"helpers/string":54,"helpers/unicode":55,renderers:104}],108:[function(a,b,c){"use strict";function d(a,b,c,d,e,f){i("base").apply(this,arguments),(null===f||void 0===f)&&(f=""),g(b,f)}Object.defineProperties(c,{htmlRenderer:{get:function(){return d}},__esModule:{value:!0}});var e,f,g=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}).fastInnerHTML,h=(f=a("renderers"),f&&f.__esModule&&f||{"default":f}),i=h.getRenderer,j=h.registerRenderer;j("html",d)},{"helpers/dom/element":46,renderers:104}],109:[function(a,b,c){"use strict";function d(a,b,c,d,e,f,g){if(l(f)){"undefined"!=typeof g.language&&h.culture(g.language),f=h(f).format(g.format||"0");var i=g.className||"",k=i.length?i.split(" "):[];k.indexOf("htLeft")<0&&k.indexOf("htCenter")<0&&k.indexOf("htRight")<0&&k.indexOf("htJustify")<0&&k.push("htRight"),k.indexOf("htNumeric")<0&&k.push("htNumeric"),g.className=k.join(" ")}j("text")(a,b,c,d,e,f,g)}Object.defineProperties(c,{numericRenderer:{get:function(){return d}},__esModule:{value:!0}});var e,f,g,h=(e=a("numbro"),e&&e.__esModule&&e||{"default":e})["default"],i=(f=a("renderers"),f&&f.__esModule&&f||{"default":f}),j=i.getRenderer,k=i.registerRenderer,l=(g=a("helpers/number"),g&&g.__esModule&&g||{"default":g}).isNumeric;k("numeric",d)},{"helpers/number":51,numbro:void 0,renderers:104}],110:[function(a,b,c){"use strict";function d(a,b,c,d,e,f,h){i("text").apply(this,arguments),f=b.innerHTML;var j,k=h.hashLength||f.length,l=h.hashSymbol||"*";for(j="";j.split(l).length-1<k;j+=l);g(b,j)}Object.defineProperties(c,{passwordRenderer:{get:function(){return d}},__esModule:{value:!0}});var e,f,g=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}).fastInnerHTML,h=(f=a("renderers"),f&&f.__esModule&&f||{"default":f}),i=h.getRenderer,j=h.registerRenderer;j("password",d)},{"helpers/dom/element":46,renderers:104}],111:[function(a,b,c){"use strict";function d(a,b,c,d,e,f,g){m("base").apply(this,arguments),!f&&g.placeholder&&(f=g.placeholder);var h=k(f);if(a.getSettings().trimWhitespace||(h=h.replace(/ /g,String.fromCharCode(160))),g.rendererTemplate){i(b);var l=document.createElement("TEMPLATE");l.setAttribute("bind","{{}}"),l.innerHTML=g.rendererTemplate,HTMLTemplateElement.decorate(l),l.model=a.getSourceDataAtRow(c),b.appendChild(l)}else j(b,h)}Object.defineProperties(c,{textRenderer:{get:function(){return d}},__esModule:{value:!0}});var e,f,g,h=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),i=h.empty,j=h.fastInnerText,k=(f=a("helpers/mixed"),f&&f.__esModule&&f||{"default":f}).stringify,l=(g=a("renderers"),g&&g.__esModule&&g||{"default":g}),m=l.getRenderer,n=l.registerRenderer;n("text",d)},{"helpers/dom/element":46,"helpers/mixed":50,renderers:104}],112:[function(){!function(a){"use strict";function b(a){return{configurable:!0,enumerable:!1,value:a,writable:!0}}function c(){return"__$"+Math.floor(1e9*Math.random())+"$"+ ++G+"$__"}function d(a){return L[a]}function e(){var a=c();return L[a]=!0,a}function f(a){return"object"==typeof a&&a instanceof i}
33function g(a){return f(a)?"symbol":typeof a}function h(a){var b=new i(a);if(!(this instanceof h))return b;throw new TypeError("Symbol cannot be new'ed")}function i(a){var b=c();z(this,J,{value:this}),z(this,H,{value:b}),z(this,I,{value:a}),k(this),K[b]=this}function j(a){var b=a[M];return b&&b.self===a?b:E(a)?(O.hash.value=P++,O.self.value=a,N.value=x(null,O),z(a,M,N),N.value):void 0}function k(a){return j(a),A.apply(this,arguments)}function l(a){return K[a]||L[a]}function m(a){return f(a)?a[H]:a}function n(a){for(var b=[],c=C(a),d=0;d<c.length;d++){var e=K[c[d]];e&&b.push(e)}return b}function o(b){return a.traceur&&a.traceur.options[b]}function p(a){for(var b=1;b<arguments.length;b++)for(var c=C(arguments[b]),d=0;d<c.length;d++){var e=c[d];l(e)||!function(b,c){z(a,c,{get:function(){return b[c]},enumerable:!0})}(arguments[b],c[d])}return a}function q(a){return null!=a&&("object"==typeof a||"function"==typeof a)}function r(a){if(null==a)throw w();return v(a)}function s(a){if(null==a)throw new TypeError("Value cannot be converted to an Object");return a}function t(a,b){a.Symbol||(a.Symbol=b,Object.getOwnPropertySymbols=n),a.Symbol.iterator||(a.Symbol.iterator=b("Symbol.iterator"))}function u(a){t(a,h),a.Reflect=a.Reflect||{},a.Reflect.global=a.Reflect.global||a}if(!a.$traceurRuntime){var v=Object,w=TypeError,x=v.create,y=v.defineProperties,z=v.defineProperty,A=v.freeze,B=v.getOwnPropertyDescriptor,C=v.getOwnPropertyNames,D=v.keys,E=Object.isExtensible,F=b,G=0,H=c(),I=c(),J=c(),K=x(null),L=x(null);z(h.prototype,"constructor",b(h)),z(h.prototype,"toString",F(function(){var a=this[J];if(!o("symbols"))return a[H];if(!a)throw TypeError("Conversion from symbol to string");var b=a[I];return void 0===b&&(b=""),"Symbol("+b+")"})),z(h.prototype,"valueOf",F(function(){var a=this[J];if(!a)throw TypeError("Conversion from symbol to string");return o("symbols")?a:a[H]})),z(i.prototype,"constructor",b(h)),z(i.prototype,"toString",{value:h.prototype.toString,enumerable:!1}),z(i.prototype,"valueOf",{value:h.prototype.valueOf,enumerable:!1});var M=e(),N={value:void 0},O={hash:{value:void 0},self:{value:void 0}},P=0;k(i.prototype),u(a),a.$traceurRuntime={checkObjectCoercible:s,createPrivateName:e,defineProperties:y,defineProperty:z,exportStar:p,getOwnHashObject:j,getOwnPropertyDescriptor:B,getOwnPropertyNames:C,isObject:q,isPrivateName:d,isSymbolString:l,keys:D,setupGlobals:u,toObject:r,toProperty:m,"typeof":g}}}(window),function(){"use strict";function a(){for(var a,c=[],d=0,e=0;e<arguments.length;e++){var f=$traceurRuntime.checkObjectCoercible(arguments[e]);"function"!=typeof f[b(Symbol.iterator)]&&(f[b(Symbol.iterator)]=function(){var a=this,b=a.length,c=0;return{next:function(){var d={done:!0};return b>c&&(d.done=!1,d.value=a[c],++c),d}}});for(var g=f[b(Symbol.iterator)]();!(a=g.next()).done;)c[d++]=a.value}return c}var b=$traceurRuntime.toProperty;$traceurRuntime.spread=a}(),function(){"use strict";function a(a,b){var c=p(a);do{var d=o(c,b);if(d)return d;c=p(c)}while(c);return void 0}function b(a){return a.__proto__}function c(a,b,c,e){return d(a,b,c).apply(a,e)}function d(b,c,d){var e=a(c,d);return e?e.get?e.get.call(b):e.value:void 0}function e(b,c,d,e){var f=a(c,d);if(f&&f.set)return f.set.call(b,e),e;throw k("super has no setter '"+d+"'.")}function f(a){for(var b={},c=s(a),d=0;d<c.length;d++){var e=c[d];b[e]=o(a,e)}for(var f=t(a),d=0;d<f.length;d++){var g=f[d];b[q(g)]=o(a,q(g))}return b}function g(a,b,c,d){return n(b,"constructor",{value:a,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof d&&(a.__proto__=d),a.prototype=l(h(d),f(b))):a.prototype=b,n(a,"prototype",{configurable:!1,writable:!1}),m(a,f(c))}function h(a){if("function"==typeof a){var b=a.prototype;if(j(b)===b||null===b)return a.prototype;throw new k("super prototype must be an Object or null")}if(null===a)return null;throw new k("Super expression must either be null or a function, not "+typeof a+".")}function i(a,b,d){null!==p(b)&&c(a,b,"constructor",d)}var j=Object,k=TypeError,l=j.create,m=$traceurRuntime.defineProperties,n=$traceurRuntime.defineProperty,o=$traceurRuntime.getOwnPropertyDescriptor,p=Object.getPrototypeOf,q=$traceurRuntime.toProperty,r=Object,s=r.getOwnPropertyNames,t=r.getOwnPropertySymbols;$traceurRuntime.createClass=g,$traceurRuntime.defaultSuperCall=i,$traceurRuntime.superCall=c,$traceurRuntime.superConstructor=b,$traceurRuntime.superGet=d,$traceurRuntime.superSet=e}()},{}],113:[function(a,b,c){"use strict";function d(a){var b=this,c=this;this.eventManager=w(a),this.instance=a,this.settings=a.getSettings(),this.selectionMouseDown=!1;var d=a.rootElement.getAttribute("style");d&&a.rootElement.setAttribute("data-originalstyle",d),n(a.rootElement,"handsontable");var e=document.createElement("TABLE");n(e,"htCore"),a.getSettings().tableClassName&&n(e,a.getSettings().tableClassName),this.THEAD=document.createElement("THEAD"),e.appendChild(this.THEAD),this.TBODY=document.createElement("TBODY"),e.appendChild(this.TBODY),a.table=e,a.container.insertBefore(e,a.container.firstChild),this.eventManager.addEventListener(a.rootElement,"mousedown",function(a){this.selectionMouseDown=!0,c.isTextSelectionAllowed(a.target)||(g(),a.preventDefault(),window.focus())}),this.eventManager.addEventListener(a.rootElement,"mouseup",function(){this.selectionMouseDown=!1}),this.eventManager.addEventListener(a.rootElement,"mousemove",function(a){this.selectionMouseDown&&!c.isTextSelectionAllowed(a.target)&&(g(),a.preventDefault())}),this.eventManager.addEventListener(document.documentElement,"keyup",function(b){a.selection.isInProgress()&&!b.shiftKey&&a.selection.finish()});var f;this.isMouseDown=function(){return f},this.eventManager.addEventListener(document.documentElement,"mouseup",function(b){a.selection.isInProgress()&&1===b.which&&a.selection.finish(),f=!1,v(document.activeElement)&&a.unlisten()}),this.eventManager.addEventListener(document.documentElement,"mousedown",function(b){var d=b.target,e=b.target,g=b.x||b.clientX,h=b.y||b.clientY;if(!f&&a.rootElement){if(e===a.view.wt.wtTable.holder){var i=r();if(document.elementFromPoint(g+i,h)!==a.view.wt.wtTable.holder||document.elementFromPoint(g,h+i)!==a.view.wt.wtTable.holder)return}else for(;e!==document.documentElement;){if(null===e){if(b.isTargetWebComponent)break;return}if(e===a.rootElement)return;e=e.parentNode}var j="function"==typeof c.settings.outsideClickDeselects?c.settings.outsideClickDeselects(d):c.settings.outsideClickDeselects;j?a.deselectCell():a.destroyEditor()}}),this.eventManager.addEventListener(e,"selectstart",function(a){c.settings.fragmentSelection||u(a.target)||a.preventDefault()});var g=function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},h=[new D({className:"current",border:{width:2,color:"#5292F7",cornerVisible:function(){return c.settings.fillHandle&&!c.isCellEdited()&&!a.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!c.isCellEdited()&&!a.selection.isMultiple()}}}),new D({className:"area",border:{width:1,color:"#89AFF9",cornerVisible:function(){return c.settings.fillHandle&&!c.isCellEdited()&&a.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!c.isCellEdited()&&a.selection.isMultiple()}}}),new D({className:"highlight",highlightRowClassName:c.settings.currentRowClassName,highlightColumnClassName:c.settings.currentColClassName}),new D({className:"fill",border:{width:1,color:"red"}})];h.current=h[0],h.area=h[1],h.highlight=h[2],h.fill=h[3];var i={debug:function(){return c.settings.debug},externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:e,preventOverflow:function(){return b.settings.preventOverflow},stretchH:function(){return c.settings.stretchH},data:a.getDataAtCell,totalRows:function(){return a.countRows()},totalColumns:function(){return a.countCols()},fixedColumnsLeft:function(){return c.settings.fixedColumnsLeft},fixedRowsTop:function(){return c.settings.fixedRowsTop},fixedRowsBottom:function(){return c.settings.fixedRowsBottom},minSpareRows:function(){return c.settings.minSpareRows},renderAllRows:c.settings.renderAllRows,rowHeaders:function(){var b=[];return a.hasRowHeaders()&&b.push(function(a,b){c.appendRowHeader(a,b)}),l.hooks.run(a,"afterGetRowHeaderRenderers",b),b},columnHeaders:function(){var b=[];return a.hasColHeaders()&&b.push(function(a,b){c.appendColHeader(a,b)}),l.hooks.run(a,"afterGetColumnHeaderRenderers",b),b},columnWidth:a.getColWidth,rowHeight:a.getRowHeight,cellRenderer:function(a,b,d){var e=c.instance.getCellMeta(a,b),f=c.instance.colToProp(b),g=c.instance.getDataAtRowProp(a,f);l.hooks.run(c.instance,"beforeRenderer",d,a,b,f,g,e),c.instance.getCellRenderer(e)(c.instance,d,a,b,f,g,e),l.hooks.run(c.instance,"afterRe
33nderer",d,a,b,f,g,e)},selections:h,hideBorderOnMouseDownOver:function(){return c.settings.fragmentSelection},onCellMouseDown:function(b,d,e,g){if(a.listen(),c.activeWt=g,f=!0,l.hooks.run(a,"beforeOnCellMouseDown",b,d,e),!z(b)){var h=a.getSelectedRange(),i=a.selection,j=i.selectedHeader;if(b.shiftKey&&h)d.row>=0&&d.col>=0?(i.setRangeEnd(d),i.setSelectedHeaders(!1,!1)):(j.cols||j.rows)&&d.row>=0&&d.col>=0?(i.setRangeEnd(new C(d.row,d.col)),i.setSelectedHeaders(!1,!1)):j.cols&&d.row<0?i.setRangeEnd(new C(h.to.row,d.col)):j.rows&&d.col<0?i.setRangeEnd(new C(d.row,h.to.col)):!j.cols&&!j.rows&&d.col<0||j.cols&&d.col<0?(i.setRangeStartOnly(new C(h.from.row,0)),i.setRangeEnd(new C(d.row,a.countCols()-1)),i.setSelectedHeaders(!0,!1)):(!j.cols&&!j.rows&&d.row<0||j.rows&&d.row<0)&&(i.setRangeStartOnly(new C(0,h.from.col)),i.setRangeEnd(new C(a.countRows()-1,d.col)),i.setSelectedHeaders(!1,!0));else{var k=!0;if(h){var m=h,n=m.from,o=m.to,p=!i.inInSelection(d);if(d.row<0&&j.cols){var q=Math.min(n.col,o.col),r=Math.max(n.col,o.col);k=d.col<q||d.col>r}else if(d.col<0&&j.rows){var s=Math.min(n.row,o.row),t=Math.max(n.row,o.row);k=d.row<s||d.row>t}else k=p}var u=A(b),v=B(b);d.row<0&&d.col>=0?(i.setSelectedHeaders(!1,!0),(v||u&&k)&&(i.setRangeStartOnly(new C(0,d.col)),i.setRangeEnd(new C(Math.max(a.countRows()-1,0),d.col),!1))):d.col<0&&d.row>=0?(i.setSelectedHeaders(!0,!1),(v||u&&k)&&(i.setRangeStartOnly(new C(d.row,0)),i.setRangeEnd(new C(d.row,Math.max(a.countCols()-1,0)),!1))):(i.setSelectedHeaders(!1,!1,d.col<0&&d.row<0),d.row=d.row<0?0:d.row,d.col=d.col<0?0:d.col,(v||u&&k)&&i.setRangeStart(d))}l.hooks.run(a,"afterOnCellMouseDown",b,d,e),c.activeWt=c.wt}},onCellMouseOver:function(b,d,e,g){var h={row:!1,column:!1};c.activeWt=g,l.hooks.run(a,"beforeOnCellMouseOver",b,d,e,h),z(b)||(0===b.button&&(d.row>=0&&d.col>=0?f&&a.selection.setRangeEnd(d):f&&(d.row<0&&!h.column&&(a.selection.selectedHeader.cols?(a.selection.setRangeEnd(new C(a.countRows()-1,d.col),!1),a.selection.setSelectedHeaders(!1,!0)):a.selection.setRangeEnd(new C(d.row,d.col),!1)),d.col<0&&!h.row&&(a.selection.selectedHeader.rows?(a.selection.setRangeEnd(new C(d.row,a.countCols()-1),!1),a.selection.setSelectedHeaders(!0,!1)):a.selection.setRangeEnd(new C(d.row,d.col),!1)))),l.hooks.run(a,"afterOnCellMouseOver",b,d,e),c.activeWt=c.wt)},onCellCornerMouseDown:function(b){b.preventDefault(),l.hooks.run(a,"afterOnCellCornerMouseDown",b)},beforeDraw:function(a){c.beforeRender(a)},onDraw:function(a){c.onDraw(a)},onScrollVertically:function(){a.runHooks("afterScrollVertically")},onScrollHorizontally:function(){a.runHooks("afterScrollHorizontally")},onBeforeDrawBorders:function(b,c){a.runHooks("beforeDrawBorders",b,c)},onBeforeTouchScroll:function(){a.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){a.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(b,c){return a.runHooks("beforeStretchingColumnWidth",b,c)},viewportRowCalculatorOverride:function(b){var d=a.countRows(),e=c.settings.viewportRowRenderingOffset;if("auto"===e&&c.settings.fixedRowsTop&&(e=10),"number"==typeof e&&(b.startRow=Math.max(b.startRow-e,0),b.endRow=Math.min(b.endRow+e,d-1)),"auto"===e){var f=b.startRow+b.endRow-b.startRow,g=Math.ceil(f/d*12);b.startRow=Math.max(b.startRow-g,0),b.endRow=Math.min(b.endRow+g,d-1)}a.runHooks("afterViewportRowCalculatorOverride",b)},viewportColumnCalculatorOverride:function(b){var d=a.countCols(),e=c.settings.viewportColumnRenderingOffset;if("auto"===e&&c.settings.fixedColumnsLeft&&(e=10),"number"==typeof e&&(b.startColumn=Math.max(b.startColumn-e,0),b.endColumn=Math.min(b.endColumn+e,d-1)),"auto"===e){var f=b.startColumn+b.endColumn-b.startColumn,g=Math.ceil(f/d*12);b.startRow=Math.max(b.startColumn-g,0),b.endColumn=Math.min(b.endColumn+g,d-1)}a.runHooks("afterViewportColumnCalculatorOverride",b)},rowHeaderWidth:function(){return c.settings.rowHeaderWidth},columnHeaderHeight:function(){var b=a.runHooks("modifyColumnHeaderHeight");return c.settings.columnHeaderHeight||b}};l.hooks.run(a,"beforeInitWalkontable",i),this.wt=new E(i),this.activeWt=this.wt,this.eventManager.addEventListener(c.wt.wtTable.spreader,"mousedown",function(a){a.target===c.wt.wtTable.spreader&&3===a.which&&y(a)}),this.eventManager.addEventListener(c.wt.wtTable.spreader,"contextmenu",function(a){a.target===c.wt.wtTable.spreader&&3===a.which&&y(a)}),this.eventManager.addEventListener(document.documentElement,"click",function(){c.settings.observeDOMVisibility&&c.wt.drawInterrupted&&(c.instance.forceFullRender=!0,c.render())})}Object.defineProperties(c,{TableView:{get:function(){return d}},__esModule:{value:!0}});
33var e,f,g,h,i,j,k,l=(e=a("browser"),e&&e.__esModule&&e||{"default":e})["default"],m=(f=a("helpers/dom/element"),f&&f.__esModule&&f||{"default":f}),n=m.addClass,o=m.empty,p=m.fastInnerHTML,q=m.fastInnerText,r=m.getScrollbarWidth,s=m.hasClass,t=m.isChildOf,u=m.isInput,v=m.isOutsideInput,w=(g=a("eventManager"),g&&g.__esModule&&g||{"default":g}).eventManager,x=(h=a("helpers/dom/event"),h&&h.__esModule&&h||{"default":h}),y=x.stopPropagation,z=x.isImmediatePropagationStopped,A=x.isRightClick,B=x.isLeftClick,C=(i=a("3rdparty/walkontable/src/cell/coords"),i&&i.__esModule&&i||{"default":i}).WalkontableCellCoords,D=(j=a("3rdparty/walkontable/src/selection"),j&&j.__esModule&&j||{"default":j}).WalkontableSelection,E=(k=a("3rdparty/walkontable/src/core"),k&&k.__esModule&&k||{"default":k}).Walkontable;l.TableView=d,d.prototype.isTextSelectionAllowed=function(a){if(u(a))return!0;var b=t(a,this.instance.view.wt.wtTable.spreader);return this.settings.fragmentSelection===!0&&b?!0:"cell"===this.settings.fragmentSelection&&this.isSelectedOnlyCell()&&b?!0:!this.settings.fragmentSelection&&this.isCellEdited()&&this.isSelectedOnlyCell()?!0:!1},d.prototype.isSelectedOnlyCell=function(){var a=this.instance.getSelected()||[],b=a[0],c=a[1],d=a[2],e=a[3];return void 0!==b&&b===d&&c===e},d.prototype.isCellEdited=function(){var a=this.instance.getActiveEditor();return a&&a.isOpened()},d.prototype.beforeRender=function(a){a&&l.hooks.run(this.instance,"beforeRender",this.instance.forceFullRender)},d.prototype.onDraw=function(a){a&&l.hooks.run(this.instance,"afterRender",this.instance.forceFullRender)},d.prototype.render=function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1},d.prototype.getCellAtCoords=function(a,b){var c=this.wt.getCell(a,b);return 0>c?null:c},d.prototype.scrollViewport=function(a){this.wt.scrollViewport(a)},d.prototype.appendRowHeader=function(a,b){if(b.firstChild){var c=b.firstChild;if(!s(c,"relative"))return o(b),void this.appendRowHeader(a,b);this.updateCellHeader(c.querySelector(".rowHeader"),a,this.instance.getRowHeader)}else{var d=document.createElement("div"),e=document.createElement("span");d.className="relative",e.className="rowHeader",this.updateCellHeader(e,a,this.instance.getRowHeader),d.appendChild(e),b.appendChild(d)}l.hooks.run(this.instance,"afterGetRowHeader",a,b)},d.prototype.appendColHeader=function(a,b){if(b.firstChild){var c=b.firstChild;s(c,"relative")?this.updateCellHeader(c.querySelector(".colHeader"),a,this.instance.getColHeader):(o(b),this.appendColHeader(a,b))}else{var d=document.createElement("div"),e=document.createElement("span");d.className="relative",e.className="colHeader",this.updateCellHeader(e,a,this.instance.getColHeader),d.appendChild(e),b.appendChild(d)}l.hooks.run(this.instance,"afterGetColHeader",a,b)},d.prototype.updateCellHeader=function(a,b,c){var d=b,e=this.wt.wtOverlays.getParentOverlay(a)||this.wt;a.parentNode&&(s(a,"colHeader")?d=e.wtTable.columnFilter.sourceToRendered(b):s(a,"rowHeader")&&(d=e.wtTable.rowFilter.sourceToRendered(b))),d>-1?p(a,c(b)):(q(a,String.fromCharCode(160)),n(a,"cornerHeader"))},d.prototype.maximumVisibleElementWidth=function(a){var b=this.wt.wtViewport.getWorkspaceWidth(),c=b-a;return c>0?c:0},d.prototype.maximumVisibleElementHeight=function(a){var b=this.wt.wtViewport.getWorkspaceHeight(),c=b-a;return c>0?c:0},d.prototype.mainViewIsActive=function(){return this.wt===this.activeWt},d.prototype.destroy=function(){this.wt.destroy(),this.eventManager.destroy()}},{"3rdparty/walkontable/src/cell/coords":5,"3rdparty/walkontable/src/core":7,"3rdparty/walkontable/src/selection":18,browser:23,eventManager:41,"helpers/dom/element":46,"helpers/dom/event":47}],114:[function(a,b,c){"use strict";Object.defineProperties(c,{GhostTable:{get:function(){return p}},__esModule:{value:!0}});var d,e,f,g,h,i,j=(d=a("browser"),d&&d.__esModule&&d||{"default":d})["default"],k=(e=a("helpers/dom/element"),e&&e.__esModule&&e||{"default":e}),l=k.addClass,m=k.outerHeight,n=k.outerWidth,o=(f=a("helpers/array"), 34f&&f.__esModule&&f||{"default":f}).arrayEach,p=((g=a("helpers/object"),g&&g.__esModule&&g||{"default":g}).objectEach,(h=a("helpers/number"),h&&h.__esModule&&h||{"default":h}).rangeEach,(i=a("helpers/mixed"),i&&i.__esModule&&i||{"default":i}).stringify,function(a){this.hot=a,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}});$traceurRuntime.createClass(p,{addRow:function(a,b){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 c={row:a};this.rows.push(c),this.samples=b,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(a)),this.container.container.appendChild(this.table.fragment),c.table=this.table.table}
34,addColumnHeadersRow:function(a){if(null!=this.hot.getColHeader(0)){var b={row:-1};this.rows.push(b),this.container=this.createContainer(this.hot.rootElement.className),this.samples=a,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),b.table=this.table.table}},addColumn:function(a,b){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 c={col:a};this.columns.push(c),this.samples=b,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(a)&&this.hot.view.appendColHeader(a,this.table.th),this.table.tBody.appendChild(this.createCol(a)),this.container.container.appendChild(this.table.fragment),c.table=this.table.table},getHeights:function(a){this.injected||this.injectTable(),o(this.rows,function(b){a(b.row,m(b.table)-1)})},getWidths:function(a){this.injected||this.injectTable(),o(this.columns,function(b){a(b.col,n(b.table))})},setSettings:function(a){this.settings=a},setSetting:function(a,b){this.settings||(this.settings={}),this.settings[a]=b},getSettings:function(){return this.settings},getSetting:function(a){return this.settings?this.settings[a]:null},createColGroupsCol:function(){var a=this,b=document,c=b.createDocumentFragment();return this.hot.hasRowHeaders()&&c.appendChild(this.createColElement(-1)),this.samples.forEach(function(b){o(b.strings,function(b){c.appendChild(a.createColElement(b.col))})}),c},createRow:function(a){var b=this,c=document,d=c.createDocumentFragment(),e=c.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(a,e),d.appendChild(e)),this.samples.forEach(function(e){o(e.strings,function(e){var f=e.col,g=b.hot.getCellMeta(a,f);g.col=f,g.row=a;var h=b.hot.getCellRenderer(g),i=c.createElement("td");h(b.hot,i,a,f,b.hot.colToProp(f),e.value,g),d.appendChild(i)})}),d},createColumnHeadersRow:function(){var a=this,b=document,c=b.createDocumentFragment();if(this.hot.hasRowHeaders()){var d=b.createElement("th");this.hot.view.appendColHeader(-1,d),c.appendChild(d)}return this.samples.forEach(function(d){o(d.strings,function(d){var e=d.col,f=b.createElement("th");a.hot.view.appendColHeader(e,f),c.appendChild(f)})}),c},createCol:function(a){var b=this,c=document,d=c.createDocumentFragment();return this.samples.forEach(function(e){o(e.strings,function(e){var f=e.row,g=b.hot.getCellMeta(f,a);g.col=a,g.row=f;var h=b.hot.getCellRenderer(g),i=c.createElement("td"),j=c.createElement("tr");h(b.hot,i,f,a,b.hot.colToProp(a),e.value,g),j.appendChild(i),d.appendChild(j)})}),d},clean:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()},injectTable:function(){var a=void 0!==arguments[0]?arguments[0]:null;this.injected||((a||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)},removeTable:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)},createColElement:function(a){var b=document,c=b.createElement("col");return c.style.width=this.hot.view.wt.wtTable.getStretchedColumnWidth(a)+"px",c},createTable:function(){var a=void 0!==arguments[0]?arguments[0]:"",b=document,c=b.createDocumentFragment(),d=b.createElement("table"),e=b.createElement("thead"),f=b.createElement("tbody"),g=b.createElement("colgroup"),h=b.createElement("tr"),i=b.createElement("th");return this.isVertical()&&d.appendChild(g),this.isHorizontal()&&(h.appendChild(i),e.appendChild(h),d.style.tableLayout="auto",d.style.width="auto"),d.appendChild(e),this.isVertical()&&f.appendChild(h),d.appendChild(f),l(d,a),c.appendChild(d),{fragment:c,table:d,tHead:e,tBody:f,colGroup:g,tr:h,th:i}},createContainer:function(){var a=void 0!==arguments[0]?arguments[0]:"",b=document,c=b.createDocumentFragment(),d=b.createElement("div");return a="htGhostTable htAutoSize "+a.trim(),l(d,a),c.appendChild(d),{fragment:c,container:d}},isVertical:function(){return this.rows.length&&!this.columns.length?!0:!1},isHorizontal:function(){return this.columns.length&&!this.rows.length?!0:!1}},{}),j.utils.GhostTable=p},{browser:23,"helpers/array":42,"helpers/dom/element":46,"helpers/mixed":50,"helpers/number":51,"helpers/object":52}],115:[function(a,b,c){"use strict";function d(a){return"string"==typeof a&&/fps$/.test(a)&&(a=1e3/parseInt(a.replace("fps","")||0,10)),a}Object.defineProperties(c,{Interval:{get:function(){return o}},__esModule:{value:!0}});
34var e,f,g,h,i,j,k=(e=a("browser"),e&&e.__esModule&&e||{"default":e})["default"],l=(f=a("helpers/feature"),f&&f.__esModule&&f||{"default":f}),m=l.requestAnimationFrame,n=l.cancelAnimationFrame,o=((g=a("helpers/array"),g&&g.__esModule&&g||{"default":g}).arrayEach,(h=a("helpers/object"),h&&h.__esModule&&h||{"default":h}).objectEach,(i=a("helpers/number"),i&&i.__esModule&&i||{"default":i}).rangeEach,(j=a("helpers/mixed"),j&&j.__esModule&&j||{"default":j}).stringify,function(a,b){var c=this;this.timer=null,this.func=a,this.delay=d(b),this.stopped=!0,this._then=null,this._callback=function(){return c.__callback()}}),p=o;$traceurRuntime.createClass(o,{start:function(){return this.stopped&&(this._then=Date.now(),this.stopped=!1,this.timer=m(this._callback)),this},stop:function(){return this.stopped||(this.stopped=!0,n(this.timer),this.timer=null),this},__callback:function(){if(this.timer=m(this._callback),this.delay){var a=Date.now(),b=a-this._then;b>this.delay&&(this._then=a-b%this.delay,this.func())}else this.func()}},{create:function(a,b){return new p(a,b)}}),k.utils.Interval=o},{browser:23,"helpers/array":42,"helpers/feature":48,"helpers/mixed":50,"helpers/number":51,"helpers/object":52}],116:[function(a,b,c){"use strict";var d;Object.defineProperties(c,{SamplesGenerator:{get:function(){return q}},__esModule:{value:!0}});var e,f,g,h,i,j,k=(e=a("browser"),e&&e.__esModule&&e||{"default":e})["default"],l=(f=a("helpers/dom/element"),f&&f.__esModule&&f||{"default":f}),m=(l.addClass,l.outerHeight,l.outerWidth,(g=a("helpers/array"),g&&g.__esModule&&g||{"default":g}).arrayEach,h=a("helpers/object"),h&&h.__esModule&&h||{"default":h}),n=(m.objectEach,m.isObject),o=(i=a("helpers/number"),i&&i.__esModule&&i||{"default":i}).rangeEach,p=(j=a("helpers/mixed"),j&&j.__esModule&&j||{"default":j}).stringify,q=function(a){this.samples=null,this.dataFactory=a,this.customSampleCount=null},r=q;$traceurRuntime.createClass(q,(d={},Object.defineProperty(d,"getSampleCount",{value:function(){return this.customSampleCount?this.customSampleCount:r.SAMPLE_COUNT},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(d,"generateRowSamples",{value:function(a,b){return this.generateSamples("row",b,a)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(d,"generateColumnSamples",{value:function(a,b){return this.generateSamples("col",b,a)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(d,"generateSamples",{value:function(a,b,c){var d=this,e=new Map;return"number"==typeof c&&(c={from:c,to:c}),o(c.from,c.to,function(c){var f=d.generateSample(a,b,c);e.set(c,f)}),e},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(d,"generateSample",{value:function(a,b,c){var d,e=this,f=new Map,g=[];return o(b.from,b.to,function(b){var h,i;if("row"===a)i=e.dataFactory(c,b);else{if("col"!==a)throw new Error("Unsupported sample type");i=e.dataFactory(b,c)}d=n(i)?Object.keys(i).length:Array.isArray(i)?i.length:p(i).length,f.has(d)||f.set(d,{needed:e.getSampleCount(),strings:[]});var j=f.get(d);if(j.needed){var k=g.indexOf(i)>-1;if(!k){var l="row"===a?"col":"row";j.strings.push((h={},Object.defineProperty(h,"value",{value:i,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(h,l,{value:b,configurable:!0,enumerable:!0,writable:!0}),h)),g.push(i),j.needed--}}}),f},configurable:!0,enumerable:!0,writable:!0}),d),{get SAMPLE_COUNT(){return 3}}),k.utils.SamplesGenerator=q},{browser:23,"helpers/array":42,"helpers/dom/element":46,"helpers/mixed":50,"helpers/number":51,"helpers/object":52}],117:[function(a){"use strict";function b(a,b){var c=a,d="string"==typeof c?c.toLowerCase():null;return function(a){for(var e=!1,g=0,h=a.length;h>g;g++){if(c===a[g]){e=!0;break}if(d===f(a[g]).toLowerCase()){e=!0;break}}b(e)}}var c,d,e=(c=a("browser"),c&&c.__esModule&&c||{"default":c})["default"],f=(d=a("helpers/mixed"),d&&d.__esModule&&d||{"default":d}).stringify;e.AutocompleteValidator=function(a,c){return null==a&&(a=""),this.allowEmpty&&""===a?void c(!0):void(this.strict&&this.source?"function"==typeof this.source?this.source(a,b(a,c)):b(a,c)(this.source):c(!0))}},{browser:23,"helpers/mixed":50}],118:[function(a){"use strict";var b,c,d,e,f=(b=a("browser"),b&&b.__esModule&&b||{"default":b})["default"],g=(c=a("moment"),c&&c.__esModule&&c||{"default":c}
34)["default"],h=(d=a("../helpers/date"),d&&d.__esModule&&d||{"default":d}).getNormalizedDate,i=(e=a("editors"),e&&e.__esModule&&e||{"default":e}).getEditor;f.DateValidator=function(a,b){var c=!0,d=i("date",this.instance);null==a&&(a="");var e=g(new Date(a)).isValid(),f=g(a,this.dateFormat||d.defaultDateFormat,!0).isValid();if(this.allowEmpty&&""===a&&(e=!0,f=!0),e||(c=!1),!e&&f&&(c=!0),e&&!f)if(this.correctFormat===!0){var h=j(a,this.dateFormat);this.instance.setDataAtCell(this.row,this.col,h,"dateValidator"),c=!0}else c=!1;b(c)};var j=function(a,b){var c=g(h(a)),d=c.format("YYYY"),e=g().format("YYYY");return d.substr(0,2)!==e.substr(0,2)?a.match(new RegExp(d))||c.year(d.replace(d.substr(0,2),e.substr(0,2))):d.length>4&&c.year((c.year()+"").substr(0,4)),c.format(b)}},{"../helpers/date":45,browser:23,editors:29,moment:void 0}],119:[function(a){"use strict";var b,c=(b=a("browser"),b&&b.__esModule&&b||{"default":b})["default"];c.NumericValidator=function(a,b){null==a&&(a=""),b(this.allowEmpty&&""===a?!0:""===a?!1:/^-?\d*(\.|\,)?\d*$/.test(a))}},{browser:23}],120:[function(a){"use strict";var b,c,d=(b=a("browser"),b&&b.__esModule&&b||{"default":b})["default"],e=(c=a("moment"),c&&c.__esModule&&c||{"default":c})["default"],f=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"];d.TimeValidator=function(a,b){var c=!0,d=this.timeFormat||"h:mm:ss a";null===a&&(a=""),a=/^\d{3,}$/.test(a)?parseInt(a,10):a;var g=/^\d{1,2}$/.test(a);g&&(a+=":00");var h=e(a,f,!0).isValid()?e(a):e(a,d),i=h.isValid(),j=e(a,d,!0).isValid()&&!g;if(this.allowEmpty&&""===a&&(i=!0,j=!0),i||(c=!1),!i&&j&&(c=!0),i&&!j)if(this.correctFormat===!0){var k=h.format(d);this.instance.setDataAtCell(this.row,this.col,k,"timeValidator"),c=!0}else c=!1;b(c)}},{browser:23,moment:void 0}],SheetClip:[function(a,b,c){!function(a){"use strict";function b(a){return a.split('"').length-1}var d={parse:function(a){var c,d,e,f,g,h,i,j=[],k=0;for(e=a.split("\n"),e.length>1&&""===e[e.length-1]&&e.pop(),c=0,d=e.length;d>c;c+=1){for(e[c]=e[c].split(" "),f=0,g=e[c].length;g>f;f+=1)j[k]||(j[k]=[]),h&&0===f?(i=j[k].length-1,j[k][i]=j[k][i]+"\n"+e[c][0],h&&1&b(e[c][0])&&(h=!1,j[k][i]=j[k][i].substring(0,j[k][i].length-1).replace(/""/g,'"'))):f===g-1&&0===e[c][f].indexOf('"')&&1&b(e[c][f])?(j[k].push(e[c][f].substring(1).replace(/""/g,'"')),h=!0):(j[k].push(e[c][f].replace(/""/g,'"')),h=!1);h||(k+=1)}return j},stringify:function(a){var b,c,d,e,f,g="";for(b=0,c=a.length;c>b;b+=1){for(e=a[b].length,d=0;e>d;d+=1)d>0&&(g+=" "),f=a[b][d],g+="string"==typeof f?f.indexOf("\n")>-1?'"'+f.replace(/"/g,'""')+'"':f:null===f||void 0===f?"":f;g+="\n"}return g}};"undefined"!=typeof c?(c.parse=d.parse,c.stringify=d.stringify):a.SheetClip=d}(window)},{}],autoResize:[function(a,b,c){function d(){function a(a){return a.currentStyle||document.defaultView.getComputedStyle(a)}var b,c={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},d=document.body,e=document.createTextNode(""),f=document.createElement("SPAN"),g=function(a,b,c){window.attachEvent?a.attachEvent("on"+b,c):a.addEventListener(b,c,!1)},h=function(a,b,c){window.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent("on"+b,c)},i=function(g){var h,i;g?/^[a-zA-Z \.,\\\/\|0-9]$/.test(g)||(g="."):g="",void 0!==e.textContent?e.textContent=b.value+g:e.data=b.value+g,f.style.fontSize=a(b).fontSize,f.style.fontFamily=a(b).fontFamily,f.style.whiteSpace="pre",d.appendChild(f),h=f.clientWidth+2,d.removeChild(f),b.style.height=c.minHeight+"px",b.style.width=c.minWidth>h?c.minWidth+"px":h>c.maxWidth?c.maxWidth+"px":h+"px",i=b.scrollHeight?b.scrollHeight-1:0,c.minHeight>i?b.style.height=c.minHeight+"px":c.maxHeight<i?(b.style.height=c.maxHeight+"px",b.style.overflowY="visible"):b.style.height=i+"px"},j=function(){window.setTimeout(i,0)},k=function(a){if(a&&a.minHeight)if("inherit"==a.minHeight)c.minHeight=b.clientHeight;else{var d=parseInt(a.minHeight);isNaN(d)||(c.minHeight=d)}if(a&&a.maxHeight)if("inherit"==a.maxHeight)c.maxHeight=b.clientHeight;else{var g=parseInt(a.maxHeight);isNaN(g)||(c.maxHeight=g)}if(a&&a.minWidth)if("inherit"==a.minWidth)c.minWidth=b.clientWidth;else{var h=parseInt(a.minWidth);isNaN(h)||(c.minWidth=h)}if(a&&a.maxWidth)if("inherit"==a.maxWidth)c.maxWidth=b.clientWidth;else{var i=parseInt(a.maxWidth);isNaN(i)||(c.maxWidth=i)}f.firstChild||(f.className="autoResize",f.style.display="inline-block",f.appendChild(e))}
34,l=function(a,d,e){b=a,k(d),"TEXTAREA"==b.nodeName&&(b.style.resize="none",b.style.overflowY="",b.style.height=c.minHeight+"px",b.style.minWidth=c.minWidth+"px",b.style.maxWidth=c.maxWidth+"px",b.style.overflowY="hidden"),e&&(g(b,"change",i),g(b,"cut",j),g(b,"paste",j),g(b,"drop",j),g(b,"keydown",j),g(b,"focus",i)),i()};return{init:function(a,b,c){l(a,b,c)},unObserve:function(){h(b,"change",i),h(b,"cut",j),h(b,"paste",j),h(b,"drop",j),h(b,"keydown",j),h(b,"focus",i)},resize:i}}"undefined"!=typeof c&&(b.exports=d)},{}],copyPaste:[function(a,b,c){function d(){return f?f.hasBeenDestroyed()&&f.init():f=new e,f.refCounter++,f}function e(){this.refCounter=0,this.init()}var f;"undefined"!=typeof c&&(b.exports=d),e.prototype.init=function(){var a,b;this.copyCallbacks=[],this.cutCallbacks=[],this.pasteCallbacks=[],b=document.body,document.getElementById("CopyPasteDiv")?(this.elDiv=document.getElementById("CopyPasteDiv"),this.elTextarea=this.elDiv.firstChild):(this.elDiv=document.createElement("div"),this.elDiv.id="CopyPasteDiv",a=this.elDiv.style,a.position="fixed",a.top="-10000px",a.left="-10000px",b.appendChild(this.elDiv),this.elTextarea=document.createElement("textarea"),this.elTextarea.className="copyPaste",this.elTextarea.onpaste=function(a){var b,c;"WebkitAppearance"in document.documentElement.style&&(b=a.clipboardData.getData("Text"),-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&(c=b.split("\n"),""===c[c.length-1]&&c.pop(),b=c.join("\n")),this.value=b,a.preventDefault())},a=this.elTextarea.style,a.width="10000px",a.height="10000px",a.overflow="hidden",this.elDiv.appendChild(this.elTextarea),"undefined"!=typeof a.opacity&&(a.opacity=0)),this.onKeyDownRef=this.onKeyDown.bind(this),document.documentElement.addEventListener("keydown",this.onKeyDownRef,!1)},e.prototype.onKeyDown=function(a){function b(){var a=document.activeElement;return a.shadowRoot&&a.shadowRoot.activeElement&&(a=a.shadowRoot.activeElement),["INPUT","SELECT","TEXTAREA"].indexOf(a.nodeName)>-1||"true"===a.contentEditable}var c=this,d=!1;if(a.metaKey?d=!0:a.ctrlKey&&-1===navigator.userAgent.indexOf("Mac")&&(d=!0),d){if(document.activeElement!==this.elTextarea&&(""!==this.getSelectionText()||b()))return;this.selectNodeText(this.elTextarea),setTimeout(function(){document.activeElement!==c.elTextarea&&c.selectNodeText(c.elTextarea)},0)}a.isImmediatePropagationEnabled===!1||!d||67!==a.keyCode&&86!==a.keyCode&&88!==a.keyCode||(88===a.keyCode?setTimeout(function(){c.triggerCut(a)},0):86===a.keyCode&&setTimeout(function(){c.triggerPaste(a)},0))},e.prototype.selectNodeText=function(a){a&&a.select()},e.prototype.getSelectionText=function(){var a="";return window.getSelection?a=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(a=document.selection.createRange().text),a},e.prototype.copyable=function(a){if("string"!=typeof a&&void 0===a.toString)throw new Error("copyable requires string parameter");this.elTextarea.value=a,this.selectNodeText(this.elTextarea)},e.prototype.onCut=function(a){this.cutCallbacks.push(a)},e.prototype.onPaste=function(a){this.pasteCallbacks.push(a)},e.prototype.removeCallback=function(a){var b,c;for(b=0,c=this.copyCallbacks.length;c>b;b++)if(this.copyCallbacks[b]===a)return this.copyCallbacks.splice(b,1),!0;for(b=0,c=this.cutCallbacks.length;c>b;b++)if(this.cutCallbacks[b]===a)return this.cutCallbacks.splice(b,1),!0;for(b=0,c=this.pasteCallbacks.length;c>b;b++)if(this.pasteCallbacks[b]===a)return this.pasteCallbacks.splice(b,1),!0;return!1},e.prototype.triggerCut=function(a){var b=this;b.cutCallbacks&&setTimeout(function(){for(var c=0,d=b.cutCallbacks.length;d>c;c++)b.cutCallbacks[c](a)},50)},e.prototype.triggerPaste=function(a,b){var c=this;c.pasteCallbacks&&setTimeout(function(){for(var d=b||c.elTextarea.value,e=0,f=c.pasteCallbacks.length;f>e;e++)c.pasteCallbacks[e](d,a)},50)},e.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)},e.prototype.hasBeenDestroyed=function(){return!this.refCounter}},{}],es6collections:[function(a,b,c){!function(a){"use strict";function b(a,b){function d(a){return this&&this.constructor===d?(this._keys=[],this._values=[],this._itp=[],this.objectOnly=b,void(a&&c.c
34all(this,a))):new d(a)}return b||t(a,"size",{get:q}),a.constructor=d,d.prototype=a,d}function c(a){this.add?a.forEach(this.add,this):a.forEach(function(a){this.set(a[0],a[1])},this)}function d(a){return this.has(a)&&(this._keys.splice(s,1),this._values.splice(s,1),this._itp.forEach(function(a){s<a[0]&&a[0]--})),s>-1}function e(a){return this.has(a)?this._values[s]:void 0}function f(a,b){if(this.objectOnly&&b!==Object(b))throw new TypeError("Invalid value used as weak collection key");if(b!=b||0===b)for(s=a.length;s--&&!u(a[s],b););else s=a.indexOf(b);return s>-1}function g(a){return f.call(this,this._values,a)}function h(a){return f.call(this,this._keys,a)}function i(a,b){return this.has(a)?this._values[s]=b:this._values[this._keys.push(a)-1]=b,this}function j(a){return this.has(a)||this._values.push(a),this}function k(){this._values.length=0}function l(){return p(this._itp,this._keys)}function m(){return p(this._itp,this._values)}function n(){return p(this._itp,this._keys,this._values)}function o(){return p(this._itp,this._values,this._values)}function p(a,b,c){var d=[0],e=!1;return a.push(d),{next:function(){var f,g=d[0];return!e&&g<b.length?(f=c?[b[g],c[g]]:b[g],d[0]++):(e=!0,a.splice(a.indexOf(d),1)),{done:e,value:f}}}}function q(){return this._values.length}function r(a,b){for(var c=this.entries();;){var d=c.next();if(d.done)break;a.call(b,d.value[1],d.value[0],this)}}var s,t=Object.defineProperty,u=function(a,b){return isNaN(a)?isNaN(b):a===b};"undefined"==typeof WeakMap&&(a.WeakMap=b({"delete":d,clear:k,get:e,has:h,set:i},!0)),"undefined"==typeof Map&&(a.Map=b({"delete":d,has:h,get:e,set:i,keys:l,values:m,entries:n,forEach:r,clear:k})),"undefined"==typeof Set&&(a.Set=b({has:g,add:j,"delete":d,clear:k,keys:m,values:m,entries:o,forEach:r})),"undefined"==typeof WeakSet&&(a.WeakSet=b({"delete":d,add:j,clear:k,has:g},!0))}("undefined"!=typeof c&&"undefined"!=typeof global?global:window)},{}],jsonpatch:[function(a,b,c){var d,e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=Error;!function(a){function b(a,c){switch(typeof a){case"undefined":case"boolean":case"string":case"number":return a===c;case"object":if(null===a)return null===c;if(A(a)){if(!A(c)||a.length!==c.length)return!1;for(var d=0,e=a.length;e>d;d++)if(!b(a[d],c[d]))return!1;return!0}var f=t(c),g=f.length;if(t(a).length!==g)return!1;for(var d=0;g>d;d++)if(!b(a[d],c[d]))return!1;return!0;default:return!1}}function c(a){return-1===a.indexOf("/")&&-1===a.indexOf("~")?a:a.replace(/~/g,"~0").replace(/\//g,"~1")}function d(a){for(var b=0,c=x.length;c>b;b++)if(x[b].obj===a)return x[b]}function g(a,b){for(var c=0,d=a.observers.length;d>c;c++)if(a.observers[c].callback===b)return a.observers[c].observer}function h(a,b){for(var c=0,d=a.observers.length;d>c;c++)if(a.observers[c].observer===b)return void a.observers.splice(c,1)}function i(a,b){b.unobserve()}function j(a){return"object"==typeof a?JSON.parse(JSON.stringify(a)):a}function k(a,b){var c,e=[],i=d(a);if(i?c=g(i,b):(i=new y(a),x.push(i)),c)return c;if(c={},i.value=j(a),b){c.callback=b,c.next=null;var k=this.intervals||[100,1e3,1e4,6e4];if(void 0===k.push)throw new f("jsonpatch.intervals must be an array");var m=0,n=function(){l(c)},o=function(){clearTimeout(c.next),c.next=setTimeout(function(){n(),m=0,c.next=setTimeout(p,k[m++])},0)},p=function(){n(),m==k.length&&(m=k.length-1),c.next=setTimeout(p,k[m++])};"undefined"!=typeof window&&(window.addEventListener?(window.addEventListener("mousedown",o),window.addEventListener("mouseup",o),window.addEventListener("keydown",o)):(document.documentElement.attachEvent("onmousedown",o),document.documentElement.attachEvent("onmouseup",o),document.documentElement.attachEvent("onkeydown",o))),c.next=setTimeout(p,k[m++])}return c.patches=e,c.object=a,c.unobserve=function(){l(c),clearTimeout(c.next),h(i,c),"undefined"!=typeof window&&(window.removeEventListener?(window.removeEventListener("mousedown",o),window.removeEventListener("mouseup",o),window.removeEventListener("keydown",o)):(document.documentElement.detachEvent("onmousedown",o),document.documentElement.detachEvent("onmouseup",o),document.documentElement.detachEvent("onkeydown",o)))},i.observers.push(new z(b,c)),c}function l(a){for(var b,c=0,d=x.length;d>c;c++)if(x[c].obj===a.object){b=x[c];break}m(b.value,a.object,a.patches,""),a.patches.length&&o(b.value,a.patches);var e=a.patches;return e.length>0&&(a.patches=[],a.callback&&a.callback(e)),e}function m(a,b,d,e){for(var f=t(b),g=t(a),h=!1,i=!1,k=g.length-1;k>=0;k--){var l=g[k],n=a[l];if(b.hasOwnProperty(l)){var o=b[l];"object"==typeof n&&null!=n&&"object"==typeof o&&null!=o?m(n,o,d,e+"/"+c(l)):n!=o&&(h=!0,d.push({op:"replace",path:e+"/"+c(l),value:j(o)}))}else d.push({op:"remove",path:e+"/"+c(l)}),i=!0}if(i||f.length!=g.length)for(var k=0;k<f.length;k++){var l=f[k];a.hasOwnProperty(l)||d.push({op:"add",path:e+"/"+c(l),value:j(b[l])})}}function n(a){for(var b,c=0,d=a.length;d>c;
34){b=a.charCodeAt(c);{if(!(b>=48&&57>=b))return!1;c++}}return!0}function o(a,b,c){for(var d,e,f=!1,g=0,h=b.length;h>g;){d=b[g],g++;for(var i=d.path||"",j=i.split("/"),k=a,l=1,m=j.length,o=void 0;;){if(e=j[l],c&&void 0===o&&(void 0===k[e]?o=j.slice(0,l).join("/"):l==m-1&&(o=d.path),void 0!==o&&this.validator(d,g-1,a,o)),l++,void 0===e&&l>=m){f=w[d.op].call(d,k,e,a);break}if(A(k)){if("-"===e)e=k.length;else{if(c&&!n(e))throw new B("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",g-1,d.path,d);e=parseInt(e,10)}if(l>=m){if(c&&"add"===d.op&&e>k.length)throw new B("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",g-1,d.path,d);f=v[d.op].call(d,k,e,a);break}}else if(e&&-1!=e.indexOf("~")&&(e=e.replace(/~1/g,"/").replace(/~0/g,"~")),l>=m){f=u[d.op].call(d,k,e,a);break}k=k[e]}}return f}function p(a,b){var c=[];return m(a,b,c,""),c}function q(a){if(void 0===a)return!0;if("array"==typeof a||"object"==typeof a)for(var b in a)if(q(a[b]))return!0;return!1}function r(b,c,d,e){if("object"!=typeof b||null===b||A(b))throw new B("Operation is not an object","OPERATION_NOT_AN_OBJECT",c,b,d);if(!u[b.op])throw new B("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",c,b,d);if("string"!=typeof b.path)throw new B("Operation `path` property is not a string","OPERATION_PATH_INVALID",c,b,d);if(("move"===b.op||"copy"===b.op)&&"string"!=typeof b.from)throw new B("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",c,b,d);if(("add"===b.op||"replace"===b.op||"test"===b.op)&&void 0===b.value)throw new B("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",c,b,d);if(("add"===b.op||"replace"===b.op||"test"===b.op)&&q(b.value))throw new B("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",c,b,d);if(d)if("add"==b.op){var f=b.path.split("/").length,g=e.split("/").length;if(f!==g+1&&f!==g)throw new B("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",c,b,d)}else if("replace"===b.op||"remove"===b.op||"_get"===b.op){if(b.path!==e)throw new B("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",c,b,d)}else if("move"===b.op||"copy"===b.op){var h={op:"_get",path:b.from,value:void 0},i=a.validate([h],d);if(i&&"OPERATION_PATH_UNRESOLVABLE"===i.name)throw new B("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",c,b,d)}}function s(a,b){try{if(!A(a))throw new B("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(b)b=JSON.parse(JSON.stringify(b)),o.call(this,b,a,!0);else for(var c=0;c<a.length;c++)this.validator(a[c],c)}catch(d){if(d instanceof B)return d;throw d}}var t=function(a){if(A(a)){for(var b=new Array(a.length),c=0;c<b.length;c++)b[c]=""+c;return b}if(Object.keys)return Object.keys(a);var b=[];for(var d in a)a.hasOwnProperty(d)&&b.push(d);return b},u={add:function(a,b){return a[b]=this.value,!0},remove:function(a,b){return delete a[b],!0},replace:function(a,b){return a[b]=this.value,!0},move:function(a,b,c){var d={op:"_get",path:this.from};return o(c,[d]),o(c,[{op:"remove",path:this.from}]),o(c,[{op:"add",path:this.path,value:d.value}]),!0},copy:function(a,b,c){var d={op:"_get",path:this.from};return o(c,[d]),o(c,[{op:"add",path:this.path,value:d.value}]),!0},test:function(a,c){return b(a[c],this.value)},_get:function(a,b){this.value=a[b]}},v={add:function(a,b){return a.splice(b,0,this.value),!0},remove:function(a,b){return a.splice(b,1),!0},replace:function(a,b){return a[b]=this.value,!0},move:u.move,copy:u.copy,test:u.test,_get:u._get},w={add:function(a){w.remove.call(this,a);for(var b in this.value)this.value.hasOwnProperty(b)&&(a[b]=this.value[b]);return!0},remove:function(a){for(var b in a)a.hasOwnProperty(b)&&u.remove.call(this,a,b);return!0},replace:function(a){return o(a,[{op:"remove",path:this.path}]),o(a,[{op:"add",path:this.path,value:this.value}]),!0},move:u.move,copy:u.copy,test:function(a){return JSON.stringify(a)===JSON.stringify(this.value)},_get:function(a){this.value=a}},x=[],y=function(){function a(a){this.observers=[],this.obj=a}return a}(),z=function(){function a(a,b){this.callback=a,this.observer=b}return a}();a.unobserve=i,a.observe=k,a.generate=l;var A;A=Array.isArray?Array.isArray:function(a){return a.push&&"number"==typeof a.length},a.apply=o,a.compare=p;var B=function(a){function b(b,c,d,e,f){a.call(this,b),this.message=b,this.name=c,this.index=d,this.operation=e,this.tree=f}return e(b,a),b}(f);a.JsonPatchError=B,a.Error=B,a.validator=r,a.validate=s}(d||(d={})),"undefined"!=typeof c&&(c.apply=d.apply,c.observe=d.observe,c.unobserve=d.unobserve,c.generate=d.generate,c.compare=d.compare,c.val
34idate=d.validate,c.validator=d.validator,c.JsonPatchError=d.JsonPatchError,c.Error=d.Error)},{}]},{},[23,61,63,62,64,97,98,99,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,100,101,102,103,117,118,119,120,106,107,108,109,110,111,31,35,32,33,40,34,36,37,38,39])(23)});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.